vzcode 1.44.0 → 1.45.0

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.
@@ -1,70 +1,70 @@
1
1
  (function(){"use strict";/*
2
2
  @license
3
- Rollup.js v4.46.1
4
- Mon, 28 Jul 2025 04:48:09 GMT - commit 244dc20bab1cd59221b70cd759e0a0ec15044c2e
3
+ Rollup.js v4.46.2
4
+ Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
8
8
  Released under the MIT License.
9
- */var Jo="4.46.1",Pu=44,im=59,rm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$u=new Uint8Array(64),Nu=new Uint8Array(128);for(let t=0;t<64;t++){const e=rm.charCodeAt(t);$u[t]=e,Nu[e]=t}function Us(t,e){let n=0,s=0,i=0;do{const a=t.next();i=Nu[a],n|=(31&i)<<s,s+=5}while(32&i);const r=1&n;return n>>>=1,r&&(n=-2147483648|-n),e+n}function qs(t,e,n){let s=e-n;s=s<0?-s<<1|1:s<<1;do{let i=31&s;s>>>=5,s>0&&(i|=32),t.write($u[i])}while(s>0);return e}function Cu(t,e){return!(t.pos>=e)&&t.peek()!==Pu}var Tu=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode:t=>Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}:{decode(t){let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e}},om=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(16384)}write(e){const{buffer:n}=this;n[this.pos++]=e,this.pos===16384&&(this.out+=Tu.decode(n),this.pos=0)}flush(){const{buffer:e,out:n,pos:s}=this;return s>0?n+Tu.decode(e.subarray(0,s)):n}},am=class{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:e,pos:n}=this,s=e.indexOf(t,n);return s===-1?e.length:s}};function lm(t){t.sort(cm)}function cm(t,e){return t[0]-e[0]}function Ru(t){const e=new om;let n=0,s=0,i=0,r=0;for(let a=0;a<t.length;a++){const l=t[a];if(a>0&&e.write(im),l.length===0)continue;let c=0;for(let u=0;u<l.length;u++){const d=l[u];u>0&&e.write(Pu),c=qs(e,d[0],c),d.length!==1&&(n=qs(e,d[1],n),s=qs(e,d[2],s),i=qs(e,d[3],i),d.length!==4&&(r=qs(e,d[4],r)))}}return e.flush()}class Qi{constructor(e){this.bits=e instanceof Qi?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(31&e)}has(e){return!!(this.bits[e>>5]&1<<(31&e))}}let Du=class _u{constructor(e,n,s){this.start=e,this.end=n,this.original=s,this.intro="",this.outro="",this.content=s,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){const e=new _u(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let n=this;for(;n;)e(n),n=n.next}eachPrevious(e){let n=this;for(;n;)e(n),n=n.previous}edit(e,n,s){return this.content=e,s||(this.intro="",this.outro=""),this.storeName=n,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){const n=e-this.start,s=this.original.slice(0,n),i=this.original.slice(n);this.original=s;const r=new _u(e,this.end,i);return r.outro=this.outro,this.outro="",this.end=e,this.edited?(r.edit("",!1),this.content=""):this.content=s,r.next=this.next,r.next&&(r.next.previous=r),r.previous=this,this.next=r,r}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;const n=this.content.replace(e,"");return n.length?(n!==this.content&&(this.split(this.start+n.length).edit("",void 0,!0),this.edited&&this.edit(n,this.storeName,!0)),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;const n=this.content.replace(e,"");if(n.length){if(n!==this.content){const s=this.split(this.end-n.length);this.edited&&s.edit(n,this.storeName,!0),this.edit("",void 0,!0)}return!0}return this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0}};function um(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?t=>globalThis.btoa(unescape(encodeURIComponent(t))):typeof Buffer=="function"?t=>Buffer.from(t,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const hm=um();let Zi=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=Ru(e.mappings),e.x_google_ignoreList!==void 0&&(this.x_google_ignoreList=e.x_google_ignoreList),e.debugId!==void 0&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+hm(this.toString())}};function Ou(t,e){const n=t.split(/[/\\]/),s=e.split(/[/\\]/);for(n.pop();n[0]===s[0];)n.shift(),s.shift();if(n.length){let i=n.length;for(;i--;)n[i]=".."}return n.concat(s).join("/")}const dm=Object.prototype.toString;function Lu(t){return dm.call(t)==="[object Object]"}function Yo(t){const e=t.split(`
10
- `),n=[];for(let s=0,i=0;s<e.length;s++)n.push(i),i+=e[s].length+1;return function(s){let i=0,r=n.length;for(;i<r;){const l=i+r>>1;s<n[l]?r=l:i=l+1}const a=i-1;return{line:a,column:s-n[a]}}}const pm=/\w/;let Mu=class{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,n,s,i){if(n.length){const r=n.length-1;let a=n.indexOf(`
11
- `,0),l=-1;for(;a>=0&&r>a;){const u=[this.generatedCodeColumn,e,s.line,s.column];i>=0&&u.push(i),this.rawSegments.push(u),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,l=a,a=n.indexOf(`
12
- `,a+1)}const c=[this.generatedCodeColumn,e,s.line,s.column];i>=0&&c.push(i),this.rawSegments.push(c),this.advance(n.slice(l+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(n));this.pending=null}addUneditedChunk(e,n,s,i,r){let a=n.start,l=!0,c=!1;for(;a<n.end;){if(s[a]===`
13
- `)i.line+=1,i.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,l=!0,c=!1;else{if(this.hires||l||r.has(a)){const u=[this.generatedCodeColumn,e,i.line,i.column];this.hires==="boundary"?pm.test(s[a])?c||(this.rawSegments.push(u),c=!0):(this.rawSegments.push(u),c=!1):this.rawSegments.push(u)}i.column+=1,this.generatedCodeColumn+=1,l=!1}a+=1}this.pending=null}advance(e){if(!e)return;const n=e.split(`
14
- `);if(n.length>1){for(let s=0;s<n.length-1;s++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=n[n.length-1].length}};const Hs=`
15
- `,hs={insertLeft:!1,insertRight:!1,storeName:!1};let Gs=class nm{constructor(e,n={}){const s=new Du(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:s},lastChunk:{writable:!0,value:s},lastSearchedChunk:{writable:!0,value:s},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:n.filename},indentExclusionRanges:{writable:!0,value:n.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new Qi},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:n.ignoreList},offset:{writable:!0,value:n.offset||0}}),this.byStart[0]=s,this.byEnd[e.length]=s}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.outro+=e,this}appendLeft(e,n){if(e+=this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const s=this.byEnd[e];return s?s.appendLeft(n):this.intro+=n,this}appendRight(e,n){if(e+=this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const s=this.byStart[e];return s?s.appendRight(n):this.outro+=n,this}clone(){const e=new nm(this.original,{filename:this.filename,offset:this.offset});let n=this.firstChunk,s=e.firstChunk=e.lastSearchedChunk=n.clone();for(;n;){e.byStart[s.start]=s,e.byEnd[s.end]=s;const i=n.next,r=i&&i.clone();r&&(s.next=r,r.previous=s,s=r),n=i}return e.lastChunk=s,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new Qi(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};const n=Object.keys(this.storedNames),s=new Mu(e.hires),i=Yo(this.original);return this.intro&&s.advance(this.intro),this.firstChunk.eachNext(r=>{const a=i(r.start);r.intro.length&&s.advance(r.intro),r.edited?s.addEdit(0,r.content,a,r.storeName?n.indexOf(r.original):-1):s.addUneditedChunk(0,r,this.original,a,this.sourcemapLocations),r.outro.length&&s.advance(r.outro)}),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?Ou(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:n,mappings:s.raw,x_google_ignoreList:this.ignoreList?[0]:void 0}}generateMap(e){return new Zi(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=function(e){const n=e.split(`
16
- `),s=n.filter(a=>/^\t+/.test(a)),i=n.filter(a=>/^ {2,}/.test(a));if(s.length===0&&i.length===0)return null;if(s.length>=i.length)return" ";const r=i.reduce((a,l)=>{const c=/^ +/.exec(l)[0].length;return Math.min(c,a)},1/0);return new Array(r+1).join(" ")}(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(e,n){const s=/^[^\r\n]/gm;if(Lu(e)&&(n=e,e=void 0),e===void 0&&(this._ensureindentStr(),e=this.indentStr||" "),e==="")return this;const i={};(n=n||{}).exclude&&(typeof n.exclude[0]=="number"?[n.exclude]:n.exclude).forEach(u=>{for(let d=u[0];d<u[1];d+=1)i[d]=!0});let r=n.indentStart!==!1;const a=u=>r?`${e}${u}`:(r=!0,u);this.intro=this.intro.replace(s,a);let l=0,c=this.firstChunk;for(;c;){const u=c.end;if(c.edited)i[l]||(c.content=c.content.replace(s,a),c.content.length&&(r=c.content[c.content.length-1]===`
17
- `));else for(l=c.start;l<u;){if(!i[l]){const d=this.original[l];d===`
18
- `?r=!0:d!=="\r"&&r&&(r=!1,l===c.start||(this._splitChunk(c,l),c=c.next),c.prependRight(e))}l+=1}l=c.end,c=c.next}return this.outro=this.outro.replace(s,a),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,n){return hs.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),hs.insertLeft=!0),this.appendLeft(e,n)}insertRight(e,n){return hs.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),hs.insertRight=!0),this.prependRight(e,n)}move(e,n,s){if(e+=this.offset,n+=this.offset,(s+=this.offset)>=e&&s<=n)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(n),this._split(s);const i=this.byStart[e],r=this.byEnd[n],a=i.previous,l=r.next,c=this.byStart[s];if(!c&&r===this.lastChunk)return this;const u=c?c.previous:this.lastChunk;return a&&(a.next=l),l&&(l.previous=a),u&&(u.next=i),c&&(c.previous=r),i.previous||(this.firstChunk=r.next),r.next||(this.lastChunk=i.previous,this.lastChunk.next=null),i.previous=u,r.next=c||null,u||(this.firstChunk=i),c||(this.lastChunk=r),this}overwrite(e,n,s,i){return i=i||{},this.update(e,n,s,{...i,overwrite:!i.contentOnly})}update(e,n,s,i){if(e+=this.offset,n+=this.offset,typeof s!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}if(n>this.original.length)throw new Error("end is out of bounds");if(e===n)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(n),i===!0&&(hs.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),hs.storeName=!0),i={storeName:!0});const r=i!==void 0&&i.storeName,a=i!==void 0&&i.overwrite;if(r){const u=this.original.slice(e,n);Object.defineProperty(this.storedNames,u,{writable:!0,value:!0,enumerable:!0})}const l=this.byStart[e],c=this.byEnd[n];if(l){let u=l;for(;u!==c;){if(u.next!==this.byStart[u.end])throw new Error("Cannot overwrite across a split point");u=u.next,u.edit("",!1)}l.edit(s,r,!a)}else{const u=new Du(e,n,"").edit(s,r);c.next=u,u.previous=c}return this}prepend(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this}prependLeft(e,n){if(e+=this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const s=this.byEnd[e];return s?s.prependLeft(n):this.intro=n+this.intro,this}prependRight(e,n){if(e+=this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const s=this.byStart[e];return s?s.prependRight(n):this.outro=n+this.outro,this}remove(e,n){if(e+=this.offset,n+=this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}if(e===n)return this;if(e<0||n>this.original.length)throw new Error("Character is out of bounds");if(e>n)throw new Error("end must be greater than start");this._split(e),this._split(n);let s=this.byStart[e];for(;s;)s.intro="",s.outro="",s.edit(""),s=n>s.end?this.byStart[s.end]:null;return this}reset(e,n){if(e+=this.offset,n+=this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}if(e===n)return this;if(e<0||n>this.original.length)throw new Error("Character is out of bounds");if(e>n)throw new Error("end must be greater than start");this._split(e),this._split(n);let s=this.byStart[e];for(;s;)s.reset(),s=n>s.end?this.byStart[s.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(Hs);if(e!==-1)return this.outro.substr(e+1);let n=this.outro,s=this.lastChunk;do{if(s.outro.length>0){if(e=s.outro.lastIndexOf(Hs),e!==-1)return s.outro.substr(e+1)+n;n=s.outro+n}if(s.content.length>0){if(e=s.content.lastIndexOf(Hs),e!==-1)return s.content.substr(e+1)+n;n=s.content+n}if(s.intro.length>0){if(e=s.intro.lastIndexOf(Hs),e!==-1)return s.intro.substr(e+1)+n;n=s.intro+n}}while(s=s.previous);return e=this.intro.lastIndexOf(Hs),e!==-1?this.intro.substr(e+1)+n:this.intro+n}slice(e=0,n=this.original.length-this.offset){if(e+=this.offset,n+=this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}let s="",i=this.firstChunk;for(;i&&(i.start>e||i.end<=e);){if(i.start<n&&i.end>=n)return s;i=i.next}if(i&&i.edited&&i.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);const r=i;for(;i;){!i.intro||r===i&&i.start!==e||(s+=i.intro);const a=i.start<n&&i.end>=n;if(a&&i.edited&&i.end!==n)throw new Error(`Cannot use replaced character ${n} as slice end anchor.`);const l=r===i?e-i.start:0,c=a?i.content.length+n-i.end:i.content.length;if(s+=i.content.slice(l,c),!i.outro||a&&i.end!==n||(s+=i.outro),a)break;i=i.next}return s}snip(e,n){const s=this.clone();return s.remove(0,e),s.remove(n,s.original.length),s}_split(e){if(this.byStart[e]||this.byEnd[e])return;let n=this.lastSearchedChunk;const s=e>n.end;for(;n;){if(n.contains(e))return this._splitChunk(n,e);n=s?this.byStart[n.end]:this.byEnd[n.start]}}_splitChunk(e,n){if(e.edited&&e.content.length){const i=Yo(this.original)(n);throw new Error(`Cannot split a chunk that has already been edited (${i.line}:${i.column} – "${e.original}")`)}const s=e.split(n);return this.byEnd[n]=e,this.byStart[n]=s,this.byEnd[s.end]=s,e===this.lastChunk&&(this.lastChunk=s),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,n=this.firstChunk;for(;n;)e+=n.toString(),n=n.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;while(e=e.next);return!0}length(){let e=this.firstChunk,n=0;do n+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return n}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){const n=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(n,""),this.outro.length)return!0;let s=this.lastChunk;do{const i=s.end,r=s.trimEnd(n);if(s.end!==i&&(this.lastChunk===s&&(this.lastChunk=s.next),this.byEnd[s.end]=s,this.byStart[s.next.start]=s.next,this.byEnd[s.next.end]=s.next),r)return!0;s=s.previous}while(s);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){const n=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(n,""),this.intro.length)return!0;let s=this.firstChunk;do{const i=s.end,r=s.trimStart(n);if(s.end!==i&&(s===this.lastChunk&&(this.lastChunk=s.next),this.byEnd[s.end]=s,this.byStart[s.next.start]=s.next,this.byEnd[s.next.end]=s.next),r)return!0;s=s.next}while(s);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,n){function s(i,r){return typeof n=="string"?n.replace(/\$(\$|&|\d+)/g,(a,l)=>l==="$"?"$":l==="&"?i[0]:+l<i.length?i[+l]:`$${l}`):n(...i,i.index,r,i.groups)}if(e.global)(function(i,r){let a;const l=[];for(;a=i.exec(r);)l.push(a);return l})(e,this.original).forEach(i=>{if(i.index!=null){const r=s(i,this.original);r!==i[0]&&this.overwrite(i.index,i.index+i[0].length,r)}});else{const i=this.original.match(e);if(i&&i.index!=null){const r=s(i,this.original);r!==i[0]&&this.overwrite(i.index,i.index+i[0].length,r)}}return this}_replaceString(e,n){const{original:s}=this,i=s.indexOf(e);return i!==-1&&this.overwrite(i,i+e.length,n),this}replace(e,n){return typeof e=="string"?this._replaceString(e,n):this._replaceRegexp(e,n)}_replaceAllString(e,n){const{original:s}=this,i=e.length;for(let r=s.indexOf(e);r!==-1;r=s.indexOf(e,r+i))s.slice(r,r+i)!==n&&this.overwrite(r,r+i,n);return this}replaceAll(e,n){if(typeof e=="string")return this._replaceAllString(e,n);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(e,n)}};const Fu=Object.prototype.hasOwnProperty;let fm=class sm{constructor(e={}){this.intro=e.intro||"",this.separator=e.separator!==void 0?e.separator:`
19
- `,this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}}addSource(e){if(e instanceof Gs)return this.addSource({content:e,filename:e.filename,separator:this.separator});if(!Lu(e)||!e.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","ignoreList","indentExclusionRanges","separator"].forEach(n=>{Fu.call(e,n)||(e[n]=e.content[n])}),e.separator===void 0&&(e.separator=this.separator),e.filename)if(Fu.call(this.uniqueSourceIndexByFilename,e.filename)){const n=this.uniqueSources[this.uniqueSourceIndexByFilename[e.filename]];if(e.content.original!==n.content)throw new Error(`Illegal source: same filename (${e.filename}), different contents`)}else this.uniqueSourceIndexByFilename[e.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:e.filename,content:e.content.original});return this.sources.push(e),this}append(e,n){return this.addSource({content:new Gs(e),separator:n&&n.separator||""}),this}clone(){const e=new sm({intro:this.intro,separator:this.separator});return this.sources.forEach(n=>{e.addSource({filename:n.filename,content:n.content.clone(),separator:n.separator})}),e}generateDecodedMap(e={}){const n=[];let s;this.sources.forEach(r=>{Object.keys(r.content.storedNames).forEach(a=>{~n.indexOf(a)||n.push(a)})});const i=new Mu(e.hires);return this.intro&&i.advance(this.intro),this.sources.forEach((r,a)=>{a>0&&i.advance(this.separator);const l=r.filename?this.uniqueSourceIndexByFilename[r.filename]:-1,c=r.content,u=Yo(c.original);c.intro&&i.advance(c.intro),c.firstChunk.eachNext(d=>{const m=u(d.start);d.intro.length&&i.advance(d.intro),r.filename?d.edited?i.addEdit(l,d.content,m,d.storeName?n.indexOf(d.original):-1):i.addUneditedChunk(l,d,c.original,m,c.sourcemapLocations):i.advance(d.content),d.outro.length&&i.advance(d.outro)}),c.outro&&i.advance(c.outro),r.ignoreList&&l!==-1&&(s===void 0&&(s=[]),s.push(l))}),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:this.uniqueSources.map(r=>e.file?Ou(e.file,r.filename):r.filename),sourcesContent:this.uniqueSources.map(r=>e.includeContent?r.content:null),names:n,mappings:i.raw,x_google_ignoreList:s}}generateMap(e){return new Zi(this.generateDecodedMap(e))}getIndentString(){const e={};return this.sources.forEach(n=>{const s=n.content._getRawIndentString();s!==null&&(e[s]||(e[s]=0),e[s]+=1)}),Object.keys(e).sort((n,s)=>e[n]-e[s])[0]||" "}indent(e){if(arguments.length||(e=this.getIndentString()),e==="")return this;let n=!this.intro||this.intro.slice(-1)===`
20
- `;return this.sources.forEach((s,i)=>{const r=s.separator!==void 0?s.separator:this.separator,a=n||i>0&&/\r?\n$/.test(r);s.content.indent(e,{exclude:s.indentExclusionRanges,indentStart:a}),n=s.content.lastChar()===`
21
- `}),this.intro&&(this.intro=e+this.intro.replace(/^[^\n]/gm,(s,i)=>i>0?e+s:s)),this}prepend(e){return this.intro=e+this.intro,this}toString(){const e=this.sources.map((n,s)=>{const i=n.separator!==void 0?n.separator:this.separator;return(s>0?i:"")+n.content.toString()}).join("");return this.intro+e}isEmpty(){return(!this.intro.length||!this.intro.trim())&&!this.sources.some(e=>!e.content.isEmpty())}length(){return this.sources.reduce((e,n)=>e+n.content.length(),this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimStart(e){const n=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(n,""),!this.intro){let s,i=0;do if(s=this.sources[i++],!s)break;while(!s.content.trimStartAborted(e))}return this}trimEnd(e){const n=new RegExp((e||"\\s")+"+$");let s,i=this.sources.length-1;do if(s=this.sources[i--],!s){this.intro=this.intro.replace(n,"");break}while(!s.content.trimEndAborted(e));return this}};const mm=/^(?:\/|(?:[A-Za-z]:)?[/\\|])/,gm=/^\.?\.\//,ym=/\\/g,ds=/[/\\]/,bm=/\.[^.]+$/;function Ht(t){return mm.test(t)}function Qo(t){return gm.test(t)}function an(t){return t.replace(ym,"/")}function Gt(t){return t.split(ds).pop()||""}function ln(t){const e=/[/\\][^/\\]*$/.exec(t);return e?t.slice(0,-e[0].length)||"/":"."}function xn(t){const e=bm.exec(Gt(t));return e?e[0]:""}function Rn(t,e){const n=t.split(ds).filter(Boolean),s=e.split(ds).filter(Boolean);for(n[0]==="."&&n.shift(),s[0]==="."&&s.shift();n[0]&&s[0]&&n[0]===s[0];)n.shift(),s.shift();for(;s[0]===".."&&n.length>0;)s.shift(),n.pop();for(;n.pop();)s.unshift("..");return s.join("/")}function At(...t){const e=t.shift();if(!e)return"/";let n=e.split(ds);for(const s of t)if(Ht(s))n=s.split(ds);else{const i=s.split(ds);for(;i[0]==="."||i[0]==="..";)i.shift()===".."&&n.pop();n.push(...i)}return n.join("/")}function ps(t,e,n,s){e.remove(n,s),t.removeAnnotations(e)}const Dn={isNoStatement:!0};function ht(t,e,n=0){let s,i;for(s=t.indexOf(e,n);;){if((n=t.indexOf("/",n))===-1||n>=s)return s;i=t.charCodeAt(++n),++n,(n=i===47?t.indexOf(`
22
- `,n)+1:t.indexOf("*/",n)+2)>s&&(s=t.indexOf(e,n))}}const Bu=/\S/g;function kn(t,e){return Bu.lastIndex=e,Bu.exec(t).index}const xm=/\s/;function Ws(t){let e,n,s=0;for(e=t.indexOf(`
9
+ */var Jo="4.46.2",Nu=44,om=59,am="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Cu=new Uint8Array(64),Tu=new Uint8Array(128);for(let t=0;t<64;t++){const e=am.charCodeAt(t);Cu[t]=e,Tu[e]=t}function qs(t,e){let n=0,s=0,r=0;do{const a=t.next();r=Tu[a],n|=(31&r)<<s,s+=5}while(32&r);const i=1&n;return n>>>=1,i&&(n=-2147483648|-n),e+n}function Hs(t,e,n){let s=e-n;s=s<0?-s<<1|1:s<<1;do{let r=31&s;s>>>=5,s>0&&(r|=32),t.write(Cu[r])}while(s>0);return e}function Ru(t,e){return!(t.pos>=e)&&t.peek()!==Nu}var Du=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode:t=>Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}:{decode(t){let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e}},lm=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(16384)}write(e){const{buffer:n}=this;n[this.pos++]=e,this.pos===16384&&(this.out+=Du.decode(n),this.pos=0)}flush(){const{buffer:e,out:n,pos:s}=this;return s>0?n+Du.decode(e.subarray(0,s)):n}},cm=class{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:e,pos:n}=this,s=e.indexOf(t,n);return s===-1?e.length:s}};function um(t){t.sort(hm)}function hm(t,e){return t[0]-e[0]}function Ou(t){const e=new lm;let n=0,s=0,r=0,i=0;for(let a=0;a<t.length;a++){const l=t[a];if(a>0&&e.write(om),l.length===0)continue;let c=0;for(let u=0;u<l.length;u++){const d=l[u];u>0&&e.write(Nu),c=Hs(e,d[0],c),d.length!==1&&(n=Hs(e,d[1],n),s=Hs(e,d[2],s),r=Hs(e,d[3],r),d.length!==4&&(i=Hs(e,d[4],i)))}}return e.flush()}class Zr{constructor(e){this.bits=e instanceof Zr?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(31&e)}has(e){return!!(this.bits[e>>5]&1<<(31&e))}}let Lu=class $u{constructor(e,n,s){this.start=e,this.end=n,this.original=s,this.intro="",this.outro="",this.content=s,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){const e=new $u(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let n=this;for(;n;)e(n),n=n.next}eachPrevious(e){let n=this;for(;n;)e(n),n=n.previous}edit(e,n,s){return this.content=e,s||(this.intro="",this.outro=""),this.storeName=n,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){const n=e-this.start,s=this.original.slice(0,n),r=this.original.slice(n);this.original=s;const i=new $u(e,this.end,r);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=s,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;const n=this.content.replace(e,"");return n.length?(n!==this.content&&(this.split(this.start+n.length).edit("",void 0,!0),this.edited&&this.edit(n,this.storeName,!0)),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;const n=this.content.replace(e,"");if(n.length){if(n!==this.content){const s=this.split(this.end-n.length);this.edited&&s.edit(n,this.storeName,!0),this.edit("",void 0,!0)}return!0}return this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0}};function dm(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?t=>globalThis.btoa(unescape(encodeURIComponent(t))):typeof Buffer=="function"?t=>Buffer.from(t,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const pm=dm();let ei=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=Ou(e.mappings),e.x_google_ignoreList!==void 0&&(this.x_google_ignoreList=e.x_google_ignoreList),e.debugId!==void 0&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+pm(this.toString())}};function Mu(t,e){const n=t.split(/[/\\]/),s=e.split(/[/\\]/);for(n.pop();n[0]===s[0];)n.shift(),s.shift();if(n.length){let r=n.length;for(;r--;)n[r]=".."}return n.concat(s).join("/")}const fm=Object.prototype.toString;function Fu(t){return fm.call(t)==="[object Object]"}function Yo(t){const e=t.split(`
10
+ `),n=[];for(let s=0,r=0;s<e.length;s++)n.push(r),r+=e[s].length+1;return function(s){let r=0,i=n.length;for(;r<i;){const l=r+i>>1;s<n[l]?i=l:r=l+1}const a=r-1;return{line:a,column:s-n[a]}}}const mm=/\w/;let Bu=class{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,n,s,r){if(n.length){const i=n.length-1;let a=n.indexOf(`
11
+ `,0),l=-1;for(;a>=0&&i>a;){const u=[this.generatedCodeColumn,e,s.line,s.column];r>=0&&u.push(r),this.rawSegments.push(u),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,l=a,a=n.indexOf(`
12
+ `,a+1)}const c=[this.generatedCodeColumn,e,s.line,s.column];r>=0&&c.push(r),this.rawSegments.push(c),this.advance(n.slice(l+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(n));this.pending=null}addUneditedChunk(e,n,s,r,i){let a=n.start,l=!0,c=!1;for(;a<n.end;){if(s[a]===`
13
+ `)r.line+=1,r.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,l=!0,c=!1;else{if(this.hires||l||i.has(a)){const u=[this.generatedCodeColumn,e,r.line,r.column];this.hires==="boundary"?mm.test(s[a])?c||(this.rawSegments.push(u),c=!0):(this.rawSegments.push(u),c=!1):this.rawSegments.push(u)}r.column+=1,this.generatedCodeColumn+=1,l=!1}a+=1}this.pending=null}advance(e){if(!e)return;const n=e.split(`
14
+ `);if(n.length>1){for(let s=0;s<n.length-1;s++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=n[n.length-1].length}};const Gs=`
15
+ `,ds={insertLeft:!1,insertRight:!1,storeName:!1};let Ws=class rm{constructor(e,n={}){const s=new Lu(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:s},lastChunk:{writable:!0,value:s},lastSearchedChunk:{writable:!0,value:s},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:n.filename},indentExclusionRanges:{writable:!0,value:n.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new Zr},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:n.ignoreList},offset:{writable:!0,value:n.offset||0}}),this.byStart[0]=s,this.byEnd[e.length]=s}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.outro+=e,this}appendLeft(e,n){if(e+=this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const s=this.byEnd[e];return s?s.appendLeft(n):this.intro+=n,this}appendRight(e,n){if(e+=this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const s=this.byStart[e];return s?s.appendRight(n):this.outro+=n,this}clone(){const e=new rm(this.original,{filename:this.filename,offset:this.offset});let n=this.firstChunk,s=e.firstChunk=e.lastSearchedChunk=n.clone();for(;n;){e.byStart[s.start]=s,e.byEnd[s.end]=s;const r=n.next,i=r&&r.clone();i&&(s.next=i,i.previous=s,s=i),n=r}return e.lastChunk=s,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new Zr(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};const n=Object.keys(this.storedNames),s=new Bu(e.hires),r=Yo(this.original);return this.intro&&s.advance(this.intro),this.firstChunk.eachNext(i=>{const a=r(i.start);i.intro.length&&s.advance(i.intro),i.edited?s.addEdit(0,i.content,a,i.storeName?n.indexOf(i.original):-1):s.addUneditedChunk(0,i,this.original,a,this.sourcemapLocations),i.outro.length&&s.advance(i.outro)}),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?Mu(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:n,mappings:s.raw,x_google_ignoreList:this.ignoreList?[0]:void 0}}generateMap(e){return new ei(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=function(e){const n=e.split(`
16
+ `),s=n.filter(a=>/^\t+/.test(a)),r=n.filter(a=>/^ {2,}/.test(a));if(s.length===0&&r.length===0)return null;if(s.length>=r.length)return" ";const i=r.reduce((a,l)=>{const c=/^ +/.exec(l)[0].length;return Math.min(c,a)},1/0);return new Array(i+1).join(" ")}(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(e,n){const s=/^[^\r\n]/gm;if(Fu(e)&&(n=e,e=void 0),e===void 0&&(this._ensureindentStr(),e=this.indentStr||" "),e==="")return this;const r={};(n=n||{}).exclude&&(typeof n.exclude[0]=="number"?[n.exclude]:n.exclude).forEach(u=>{for(let d=u[0];d<u[1];d+=1)r[d]=!0});let i=n.indentStart!==!1;const a=u=>i?`${e}${u}`:(i=!0,u);this.intro=this.intro.replace(s,a);let l=0,c=this.firstChunk;for(;c;){const u=c.end;if(c.edited)r[l]||(c.content=c.content.replace(s,a),c.content.length&&(i=c.content[c.content.length-1]===`
17
+ `));else for(l=c.start;l<u;){if(!r[l]){const d=this.original[l];d===`
18
+ `?i=!0:d!=="\r"&&i&&(i=!1,l===c.start||(this._splitChunk(c,l),c=c.next),c.prependRight(e))}l+=1}l=c.end,c=c.next}return this.outro=this.outro.replace(s,a),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,n){return ds.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),ds.insertLeft=!0),this.appendLeft(e,n)}insertRight(e,n){return ds.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),ds.insertRight=!0),this.prependRight(e,n)}move(e,n,s){if(e+=this.offset,n+=this.offset,(s+=this.offset)>=e&&s<=n)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(n),this._split(s);const r=this.byStart[e],i=this.byEnd[n],a=r.previous,l=i.next,c=this.byStart[s];if(!c&&i===this.lastChunk)return this;const u=c?c.previous:this.lastChunk;return a&&(a.next=l),l&&(l.previous=a),u&&(u.next=r),c&&(c.previous=i),r.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=r.previous,this.lastChunk.next=null),r.previous=u,i.next=c||null,u||(this.firstChunk=r),c||(this.lastChunk=i),this}overwrite(e,n,s,r){return r=r||{},this.update(e,n,s,{...r,overwrite:!r.contentOnly})}update(e,n,s,r){if(e+=this.offset,n+=this.offset,typeof s!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}if(n>this.original.length)throw new Error("end is out of bounds");if(e===n)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(n),r===!0&&(ds.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),ds.storeName=!0),r={storeName:!0});const i=r!==void 0&&r.storeName,a=r!==void 0&&r.overwrite;if(i){const u=this.original.slice(e,n);Object.defineProperty(this.storedNames,u,{writable:!0,value:!0,enumerable:!0})}const l=this.byStart[e],c=this.byEnd[n];if(l){let u=l;for(;u!==c;){if(u.next!==this.byStart[u.end])throw new Error("Cannot overwrite across a split point");u=u.next,u.edit("",!1)}l.edit(s,i,!a)}else{const u=new Lu(e,n,"").edit(s,i);c.next=u,u.previous=c}return this}prepend(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this}prependLeft(e,n){if(e+=this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const s=this.byEnd[e];return s?s.prependLeft(n):this.intro=n+this.intro,this}prependRight(e,n){if(e+=this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const s=this.byStart[e];return s?s.prependRight(n):this.outro=n+this.outro,this}remove(e,n){if(e+=this.offset,n+=this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}if(e===n)return this;if(e<0||n>this.original.length)throw new Error("Character is out of bounds");if(e>n)throw new Error("end must be greater than start");this._split(e),this._split(n);let s=this.byStart[e];for(;s;)s.intro="",s.outro="",s.edit(""),s=n>s.end?this.byStart[s.end]:null;return this}reset(e,n){if(e+=this.offset,n+=this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}if(e===n)return this;if(e<0||n>this.original.length)throw new Error("Character is out of bounds");if(e>n)throw new Error("end must be greater than start");this._split(e),this._split(n);let s=this.byStart[e];for(;s;)s.reset(),s=n>s.end?this.byStart[s.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(Gs);if(e!==-1)return this.outro.substr(e+1);let n=this.outro,s=this.lastChunk;do{if(s.outro.length>0){if(e=s.outro.lastIndexOf(Gs),e!==-1)return s.outro.substr(e+1)+n;n=s.outro+n}if(s.content.length>0){if(e=s.content.lastIndexOf(Gs),e!==-1)return s.content.substr(e+1)+n;n=s.content+n}if(s.intro.length>0){if(e=s.intro.lastIndexOf(Gs),e!==-1)return s.intro.substr(e+1)+n;n=s.intro+n}}while(s=s.previous);return e=this.intro.lastIndexOf(Gs),e!==-1?this.intro.substr(e+1)+n:this.intro+n}slice(e=0,n=this.original.length-this.offset){if(e+=this.offset,n+=this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}let s="",r=this.firstChunk;for(;r&&(r.start>e||r.end<=e);){if(r.start<n&&r.end>=n)return s;r=r.next}if(r&&r.edited&&r.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);const i=r;for(;r;){!r.intro||i===r&&r.start!==e||(s+=r.intro);const a=r.start<n&&r.end>=n;if(a&&r.edited&&r.end!==n)throw new Error(`Cannot use replaced character ${n} as slice end anchor.`);const l=i===r?e-r.start:0,c=a?r.content.length+n-r.end:r.content.length;if(s+=r.content.slice(l,c),!r.outro||a&&r.end!==n||(s+=r.outro),a)break;r=r.next}return s}snip(e,n){const s=this.clone();return s.remove(0,e),s.remove(n,s.original.length),s}_split(e){if(this.byStart[e]||this.byEnd[e])return;let n=this.lastSearchedChunk;const s=e>n.end;for(;n;){if(n.contains(e))return this._splitChunk(n,e);n=s?this.byStart[n.end]:this.byEnd[n.start]}}_splitChunk(e,n){if(e.edited&&e.content.length){const r=Yo(this.original)(n);throw new Error(`Cannot split a chunk that has already been edited (${r.line}:${r.column} – "${e.original}")`)}const s=e.split(n);return this.byEnd[n]=e,this.byStart[n]=s,this.byEnd[s.end]=s,e===this.lastChunk&&(this.lastChunk=s),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,n=this.firstChunk;for(;n;)e+=n.toString(),n=n.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;while(e=e.next);return!0}length(){let e=this.firstChunk,n=0;do n+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return n}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){const n=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(n,""),this.outro.length)return!0;let s=this.lastChunk;do{const r=s.end,i=s.trimEnd(n);if(s.end!==r&&(this.lastChunk===s&&(this.lastChunk=s.next),this.byEnd[s.end]=s,this.byStart[s.next.start]=s.next,this.byEnd[s.next.end]=s.next),i)return!0;s=s.previous}while(s);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){const n=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(n,""),this.intro.length)return!0;let s=this.firstChunk;do{const r=s.end,i=s.trimStart(n);if(s.end!==r&&(s===this.lastChunk&&(this.lastChunk=s.next),this.byEnd[s.end]=s,this.byStart[s.next.start]=s.next,this.byEnd[s.next.end]=s.next),i)return!0;s=s.next}while(s);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,n){function s(r,i){return typeof n=="string"?n.replace(/\$(\$|&|\d+)/g,(a,l)=>l==="$"?"$":l==="&"?r[0]:+l<r.length?r[+l]:`$${l}`):n(...r,r.index,i,r.groups)}if(e.global)(function(r,i){let a;const l=[];for(;a=r.exec(i);)l.push(a);return l})(e,this.original).forEach(r=>{if(r.index!=null){const i=s(r,this.original);i!==r[0]&&this.overwrite(r.index,r.index+r[0].length,i)}});else{const r=this.original.match(e);if(r&&r.index!=null){const i=s(r,this.original);i!==r[0]&&this.overwrite(r.index,r.index+r[0].length,i)}}return this}_replaceString(e,n){const{original:s}=this,r=s.indexOf(e);return r!==-1&&this.overwrite(r,r+e.length,n),this}replace(e,n){return typeof e=="string"?this._replaceString(e,n):this._replaceRegexp(e,n)}_replaceAllString(e,n){const{original:s}=this,r=e.length;for(let i=s.indexOf(e);i!==-1;i=s.indexOf(e,i+r))s.slice(i,i+r)!==n&&this.overwrite(i,i+r,n);return this}replaceAll(e,n){if(typeof e=="string")return this._replaceAllString(e,n);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(e,n)}};const ju=Object.prototype.hasOwnProperty;let gm=class im{constructor(e={}){this.intro=e.intro||"",this.separator=e.separator!==void 0?e.separator:`
19
+ `,this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}}addSource(e){if(e instanceof Ws)return this.addSource({content:e,filename:e.filename,separator:this.separator});if(!Fu(e)||!e.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","ignoreList","indentExclusionRanges","separator"].forEach(n=>{ju.call(e,n)||(e[n]=e.content[n])}),e.separator===void 0&&(e.separator=this.separator),e.filename)if(ju.call(this.uniqueSourceIndexByFilename,e.filename)){const n=this.uniqueSources[this.uniqueSourceIndexByFilename[e.filename]];if(e.content.original!==n.content)throw new Error(`Illegal source: same filename (${e.filename}), different contents`)}else this.uniqueSourceIndexByFilename[e.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:e.filename,content:e.content.original});return this.sources.push(e),this}append(e,n){return this.addSource({content:new Ws(e),separator:n&&n.separator||""}),this}clone(){const e=new im({intro:this.intro,separator:this.separator});return this.sources.forEach(n=>{e.addSource({filename:n.filename,content:n.content.clone(),separator:n.separator})}),e}generateDecodedMap(e={}){const n=[];let s;this.sources.forEach(i=>{Object.keys(i.content.storedNames).forEach(a=>{~n.indexOf(a)||n.push(a)})});const r=new Bu(e.hires);return this.intro&&r.advance(this.intro),this.sources.forEach((i,a)=>{a>0&&r.advance(this.separator);const l=i.filename?this.uniqueSourceIndexByFilename[i.filename]:-1,c=i.content,u=Yo(c.original);c.intro&&r.advance(c.intro),c.firstChunk.eachNext(d=>{const m=u(d.start);d.intro.length&&r.advance(d.intro),i.filename?d.edited?r.addEdit(l,d.content,m,d.storeName?n.indexOf(d.original):-1):r.addUneditedChunk(l,d,c.original,m,c.sourcemapLocations):r.advance(d.content),d.outro.length&&r.advance(d.outro)}),c.outro&&r.advance(c.outro),i.ignoreList&&l!==-1&&(s===void 0&&(s=[]),s.push(l))}),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:this.uniqueSources.map(i=>e.file?Mu(e.file,i.filename):i.filename),sourcesContent:this.uniqueSources.map(i=>e.includeContent?i.content:null),names:n,mappings:r.raw,x_google_ignoreList:s}}generateMap(e){return new ei(this.generateDecodedMap(e))}getIndentString(){const e={};return this.sources.forEach(n=>{const s=n.content._getRawIndentString();s!==null&&(e[s]||(e[s]=0),e[s]+=1)}),Object.keys(e).sort((n,s)=>e[n]-e[s])[0]||" "}indent(e){if(arguments.length||(e=this.getIndentString()),e==="")return this;let n=!this.intro||this.intro.slice(-1)===`
20
+ `;return this.sources.forEach((s,r)=>{const i=s.separator!==void 0?s.separator:this.separator,a=n||r>0&&/\r?\n$/.test(i);s.content.indent(e,{exclude:s.indentExclusionRanges,indentStart:a}),n=s.content.lastChar()===`
21
+ `}),this.intro&&(this.intro=e+this.intro.replace(/^[^\n]/gm,(s,r)=>r>0?e+s:s)),this}prepend(e){return this.intro=e+this.intro,this}toString(){const e=this.sources.map((n,s)=>{const r=n.separator!==void 0?n.separator:this.separator;return(s>0?r:"")+n.content.toString()}).join("");return this.intro+e}isEmpty(){return(!this.intro.length||!this.intro.trim())&&!this.sources.some(e=>!e.content.isEmpty())}length(){return this.sources.reduce((e,n)=>e+n.content.length(),this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimStart(e){const n=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(n,""),!this.intro){let s,r=0;do if(s=this.sources[r++],!s)break;while(!s.content.trimStartAborted(e))}return this}trimEnd(e){const n=new RegExp((e||"\\s")+"+$");let s,r=this.sources.length-1;do if(s=this.sources[r--],!s){this.intro=this.intro.replace(n,"");break}while(!s.content.trimEndAborted(e));return this}};const ym=/^(?:\/|(?:[A-Za-z]:)?[/\\|])/,bm=/^\.?\.\//,xm=/\\/g,ps=/[/\\]/,km=/\.[^.]+$/;function Ht(t){return ym.test(t)}function Qo(t){return bm.test(t)}function an(t){return t.replace(xm,"/")}function Gt(t){return t.split(ps).pop()||""}function ln(t){const e=/[/\\][^/\\]*$/.exec(t);return e?t.slice(0,-e[0].length)||"/":"."}function xn(t){const e=km.exec(Gt(t));return e?e[0]:""}function Rn(t,e){const n=t.split(ps).filter(Boolean),s=e.split(ps).filter(Boolean);for(n[0]==="."&&n.shift(),s[0]==="."&&s.shift();n[0]&&s[0]&&n[0]===s[0];)n.shift(),s.shift();for(;s[0]===".."&&n.length>0;)s.shift(),n.pop();for(;n.pop();)s.unshift("..");return s.join("/")}function At(...t){const e=t.shift();if(!e)return"/";let n=e.split(ps);for(const s of t)if(Ht(s))n=s.split(ps);else{const r=s.split(ps);for(;r[0]==="."||r[0]==="..";)r.shift()===".."&&n.pop();n.push(...r)}return n.join("/")}function fs(t,e,n,s){e.remove(n,s),t.removeAnnotations(e)}const Dn={isNoStatement:!0};function ht(t,e,n=0){let s,r;for(s=t.indexOf(e,n);;){if((n=t.indexOf("/",n))===-1||n>=s)return s;r=t.charCodeAt(++n),++n,(n=r===47?t.indexOf(`
22
+ `,n)+1:t.indexOf("*/",n)+2)>s&&(s=t.indexOf(e,n))}}const zu=/\S/g;function kn(t,e){return zu.lastIndex=e,zu.exec(t).index}const Em=/\s/;function Xs(t){let e,n,s=0;for(e=t.indexOf(`
23
23
  `,s);;){if(s=t.indexOf("/",s),s===-1||s>e)return[e,e+1];if(n=t.charCodeAt(s+1),n===47)return[s,e+1];s=t.indexOf("*/",s+2)+2,s>e&&(e=t.indexOf(`
24
- `,s))}}function Xs(t,e,n,s,i){let r,a,l,c,u=t[0],d=!u.included||u.needsBoundaries;d&&(c=n+Ws(e.original.slice(n,u.start))[1]);for(let m=1;m<=t.length;m++)r=u,a=c,l=d,u=t[m],d=u!==void 0&&(!u.included||u.needsBoundaries),l||d?(c=r.end+Ws(e.original.slice(r.end,u===void 0?s:u.start))[1],r.included?l?r.render(e,i,{end:c,start:a}):r.render(e,i):ps(r,e,a,c)):r.render(e,i)}function er(t,e,n,s){const i=[];let r,a,l,c,u=n-1;for(const d of t){for(r!==void 0&&(u=r.end+ht(e.original.slice(r.end,d.start),",")),a=l=u+1+Ws(e.original.slice(u+1,d.start))[1];c=e.original.charCodeAt(a),c===32||c===9||c===10||c===13;)a++;r!==void 0&&i.push({contentEnd:l,end:a,node:r,separator:u,start:n}),r=d,n=a}return i.push({contentEnd:s,end:s,node:r,separator:null,start:n}),i}function tr(t,e,n){for(;;){const[s,i]=Ws(t.original.slice(e,n));if(s===-1)break;t.remove(e+s,e+=i)}}function On(t,{exportNamesByVariable:e,snippets:{_:n,getObject:s,getPropertyAccess:i}},r=""){if(t.length===1&&e.get(t[0]).length===1){const a=t[0];return`exports(${JSON.stringify(e.get(a)[0])},${n}${a.getName(i)}${r})`}{const a=[];for(const l of t)for(const c of e.get(l))a.push([c,l.getName(i)+r]);return`exports(${s(a,{lineBreakIndent:null})})`}}function Zo(t,e,n,s,{exportNamesByVariable:i,snippets:{_:r}}){s.prependRight(e,`exports(${JSON.stringify(i.get(t)[0])},${r}`),s.appendLeft(n,")")}function ju(t,e,n,s,i,r){const{_:a,getPropertyAccess:l}=r.snippets;i.appendLeft(n,`,${a}${On([t],r)},${a}${t.getName(l)}`),s&&(i.prependRight(e,"("),i.appendLeft(n,")"))}const pt=Object.freeze(Object.create(null)),ft=Object.freeze({}),Qe=Object.freeze([]),zu=Object.freeze(new class extends Set{add(){throw new Error("Cannot add to empty set")}});function bt(t,e,n){const s=t.get(e);if(s!==void 0)return s;const i=n();return t.set(e,i),i}function Ln(){return new Set}function Vu(){return[]}const _e=Symbol("Unknown Key"),nr=Symbol("Unknown Non-Accessor Key"),fs=Symbol("Unknown Integer"),ea=Symbol("Symbol.toStringTag"),ue=[],le=[_e],km=[nr],ta=[fs],ms=Symbol("Entities");let gs=class{constructor(){this.entityPaths=Object.create(null,{[ms]:{value:new Set}})}trackEntityAtPathAndGetIfTracked(e,n){const s=this.getEntities(e);return!!s.has(n)||(s.add(n),!1)}withTrackedEntityAtPath(e,n,s,i){const r=this.getEntities(e);if(r.has(n))return i;r.add(n);const a=s();return r.delete(n),a}getEntities(e){let n=this.entityPaths;for(const s of e)n=n[s]||=Object.create(null,{[ms]:{value:new Set}});return n[ms]}};const Ge=new gs;class Uu{constructor(){this.entityPaths=Object.create(null,{[ms]:{value:new Map}})}trackEntityAtPathAndGetIfTracked(e,n,s){let i=this.entityPaths;for(const a of e)i=i[a]||=Object.create(null,{[ms]:{value:new Map}});const r=bt(i[ms],n,Ln);return!!r.has(s)||(r.add(s),!1)}}const Em=Object.freeze({[_e]:ft});let Am=class{constructor(){this.includedPaths=null}includePathAndGetIfIncluded(e){let n=!0,s=this,i="includedPaths",r=this.includedPaths||=(n=!1,Object.create(null));for(const a of e){if(r[_e])return!0;if(typeof a=="symbol")return s[i]=Em,!1;s=r,i=a,r=r[a]||=(n=!1,Object.create(null))}return n}};const wm=Object.freeze({[_e]:!0});class Sm{constructor(){this.includedPaths=null}includePathAndGetIfIncluded(e){let n=!0;const s=this.includedPaths||=(n=!1,Object.create(null));if(s[_e])return!0;const[i,r]=e;return i?typeof i=="symbol"?(this.includedPaths=wm,!1):r?s[i]===_e||(s[i]=_e,!1):!!s[i]||(s[i]=!0,!1):n}includeAllPaths(e,n,s){const{includedPaths:i}=this;if(i)if(i[_e])e.includePath([...s,_e],n);else{const r=Object.entries(i);if(r.length===0)e.includePath(s,n);else for(const[a,l]of r)e.includePath(l===_e?[...s,a,_e]:[...s,a],n)}}}function qu(t,e){if(t.type==="MemberExpression")return!t.computed&&qu(t.object,t);if(t.type!=="Identifier")return!1;switch(e?.type){case"MemberExpression":return e.computed||t===e.object;case"MethodDefinition":return e.computed;case"MetaProperty":return e.meta===t;case"PropertyDefinition":case"Property":return e.computed||t===e.value;case"ExportSpecifier":case"ImportSpecifier":return t===e.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}function Lt(){return{brokenFlow:!1,hasBreak:!1,hasContinue:!1,includedCallArguments:new Set,includedLabels:new Set}}function Mn(){return{accessed:new gs,assigned:new gs,brokenFlow:!1,called:new Uu,hasBreak:!1,hasContinue:!1,ignore:{breaks:!1,continues:!1,labels:new Set,returnYield:!1,this:!1},includedLabels:new Set,instantiated:new Uu,replacedVariableInits:new Map}}function Le(t,e){return(t&e)!==0}function Me(t,e,n){return t&~e|-n&e}const Ce=Symbol("Unknown Value"),sr=Symbol("Unknown Truthy Value"),ir=Symbol("Unknown Falsy Value");class Pt{constructor(){this.flags=0}get included(){return Le(this.flags,1)}set included(e){this.flags=Me(this.flags,1,e)}deoptimizeArgumentsOnInteractionAtPath(e,n,s){En(e)}deoptimizePath(e){}getLiteralValueAtPath(e,n,s){return Ce}getReturnExpressionWhenCalledAtPath(e,n,s,i){return rt}hasEffectsOnInteractionAtPath(e,n,s){return!0}include(e,n,s){this.included||this.includeNode(e)}includeNode(e){this.included=!0}includePath(e,n){this.included||this.includeNode(n)}includeCallArguments(e,n){na(e,n)}shouldBeIncluded(e){return!0}}const Pe=new class extends Pt{},rt=[Pe,!1],En=t=>{for(const e of t.args)e?.deoptimizePath(le)},na=(t,e)=>{t.args[0]?.includePath(le,e),Hu(t,e)},Hu=({args:t},e)=>{for(let n=1;n<t.length;n++){const s=t[n];s&&(s.includePath(le,e),s.include(e,!1))}},An={args:[null],type:0},sa={args:[null,Pe],type:1},Ks={args:[null],type:2,withNew:!1},ia="ArrowFunctionExpression",Js="CallExpression",Gu="ExportDefaultDeclaration",Wt="ExpressionStatement",ra="Identifier",rr="Program",Wu="Property";function Im(t,e){return t.start<=e&&e<t.end}function oa(t,e,n){return function(s,i={}){const{offsetLine:r=0,offsetColumn:a=0}=i;let l=0;const c=s.split(`
25
- `).map((d,m)=>{const f=l+d.length+1,g={start:l,end:f,line:m};return l=f,g});let u=0;return function(d,m){if(typeof d=="string"&&(d=s.indexOf(d,m??0)),d===-1)return;let f=c[u];const g=d>=f.end?1:-1;for(;f;){if(Im(f,d))return{line:r+f.line,column:a+d-f.start,character:d};u+=g,f=c[u]}}}(t,n)(e,n&&n.startIndex)}function aa(t){return t.replace(/^\t+/,e=>e.split(" ").join(" "))}const vm="...";function Xu(t,e,n){let s=t.split(`
26
- `);if(e>s.length)return"";const i=Math.max(aa(s[e-1].slice(0,n)).length+10+3,120),r=Math.max(0,e-3);let a=Math.min(e+2,s.length);for(s=s.slice(r,a);!/\S/.test(s[s.length-1]);)s.pop(),a-=1;const l=String(a).length;return s.map((c,u)=>{const d=r+u+1===e;let m=String(u+r+1);for(;m.length<l;)m=` ${m}`;let f=aa(c);if(f.length>i&&(f=`${f.slice(0,i-3)}${vm}`),d){const g=function(E){let k="";for(;E--;)k+=" ";return k}(l+2+aa(c.slice(0,n)).length)+"^";return`${m}: ${f}
24
+ `,s))}}function Ks(t,e,n,s,r){let i,a,l,c,u=t[0],d=!u.included||u.needsBoundaries;d&&(c=n+Xs(e.original.slice(n,u.start))[1]);for(let m=1;m<=t.length;m++)i=u,a=c,l=d,u=t[m],d=u!==void 0&&(!u.included||u.needsBoundaries),l||d?(c=i.end+Xs(e.original.slice(i.end,u===void 0?s:u.start))[1],i.included?l?i.render(e,r,{end:c,start:a}):i.render(e,r):fs(i,e,a,c)):i.render(e,r)}function ti(t,e,n,s){const r=[];let i,a,l,c,u=n-1;for(const d of t){for(i!==void 0&&(u=i.end+ht(e.original.slice(i.end,d.start),",")),a=l=u+1+Xs(e.original.slice(u+1,d.start))[1];c=e.original.charCodeAt(a),c===32||c===9||c===10||c===13;)a++;i!==void 0&&r.push({contentEnd:l,end:a,node:i,separator:u,start:n}),i=d,n=a}return r.push({contentEnd:s,end:s,node:i,separator:null,start:n}),r}function ni(t,e,n){for(;;){const[s,r]=Xs(t.original.slice(e,n));if(s===-1)break;t.remove(e+s,e+=r)}}function On(t,{exportNamesByVariable:e,snippets:{_:n,getObject:s,getPropertyAccess:r}},i=""){if(t.length===1&&e.get(t[0]).length===1){const a=t[0];return`exports(${JSON.stringify(e.get(a)[0])},${n}${a.getName(r)}${i})`}{const a=[];for(const l of t)for(const c of e.get(l))a.push([c,l.getName(r)+i]);return`exports(${s(a,{lineBreakIndent:null})})`}}function Zo(t,e,n,s,{exportNamesByVariable:r,snippets:{_:i}}){s.prependRight(e,`exports(${JSON.stringify(r.get(t)[0])},${i}`),s.appendLeft(n,")")}function Vu(t,e,n,s,r,i){const{_:a,getPropertyAccess:l}=i.snippets;r.appendLeft(n,`,${a}${On([t],i)},${a}${t.getName(l)}`),s&&(r.prependRight(e,"("),r.appendLeft(n,")"))}const pt=Object.freeze(Object.create(null)),ft=Object.freeze({}),Qe=Object.freeze([]),Uu=Object.freeze(new class extends Set{add(){throw new Error("Cannot add to empty set")}});function bt(t,e,n){const s=t.get(e);if(s!==void 0)return s;const r=n();return t.set(e,r),r}function Ln(){return new Set}function qu(){return[]}const _e=Symbol("Unknown Key"),si=Symbol("Unknown Non-Accessor Key"),ms=Symbol("Unknown Integer"),ea=Symbol("Symbol.toStringTag"),ue=[],le=[_e],Am=[si],ta=[ms],gs=Symbol("Entities");let ys=class{constructor(){this.entityPaths=Object.create(null,{[gs]:{value:new Set}})}trackEntityAtPathAndGetIfTracked(e,n){const s=this.getEntities(e);return!!s.has(n)||(s.add(n),!1)}withTrackedEntityAtPath(e,n,s,r){const i=this.getEntities(e);if(i.has(n))return r;i.add(n);const a=s();return i.delete(n),a}getEntities(e){let n=this.entityPaths;for(const s of e)n=n[s]||=Object.create(null,{[gs]:{value:new Set}});return n[gs]}};const Ge=new ys;let Hu=class{constructor(){this.entityPaths=Object.create(null,{[gs]:{value:new Map}})}trackEntityAtPathAndGetIfTracked(e,n,s){let r=this.entityPaths;for(const a of e)r=r[a]||=Object.create(null,{[gs]:{value:new Map}});const i=bt(r[gs],n,Ln);return!!i.has(s)||(i.add(s),!1)}};const wm=Object.freeze({[_e]:ft});let Sm=class{constructor(){this.includedPaths=null}includePathAndGetIfIncluded(e){let n=!0,s=this,r="includedPaths",i=this.includedPaths||=(n=!1,Object.create(null));for(const a of e){if(i[_e])return!0;if(typeof a=="symbol")return s[r]=wm,!1;s=i,r=a,i=i[a]||=(n=!1,Object.create(null))}return n}};const Im=Object.freeze({[_e]:!0});class vm{constructor(){this.includedPaths=null}includePathAndGetIfIncluded(e){let n=!0;const s=this.includedPaths||=(n=!1,Object.create(null));if(s[_e])return!0;const[r,i]=e;return r?typeof r=="symbol"?(this.includedPaths=Im,!1):i?s[r]===_e||(s[r]=_e,!1):!!s[r]||(s[r]=!0,!1):n}includeAllPaths(e,n,s){const{includedPaths:r}=this;if(r)if(r[_e])e.includePath([...s,_e],n);else{const i=Object.entries(r);if(i.length===0)e.includePath(s,n);else for(const[a,l]of i)e.includePath(l===_e?[...s,a,_e]:[...s,a],n)}}}function Gu(t,e){if(t.type==="MemberExpression")return!t.computed&&Gu(t.object,t);if(t.type!=="Identifier")return!1;switch(e?.type){case"MemberExpression":return e.computed||t===e.object;case"MethodDefinition":return e.computed;case"MetaProperty":return e.meta===t;case"PropertyDefinition":case"Property":return e.computed||t===e.value;case"ExportSpecifier":case"ImportSpecifier":return t===e.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}function Lt(){return{brokenFlow:!1,hasBreak:!1,hasContinue:!1,includedCallArguments:new Set,includedLabels:new Set}}function Mn(){return{accessed:new ys,assigned:new ys,brokenFlow:!1,called:new Hu,hasBreak:!1,hasContinue:!1,ignore:{breaks:!1,continues:!1,labels:new Set,returnYield:!1,this:!1},includedLabels:new Set,instantiated:new Hu,replacedVariableInits:new Map}}function Le(t,e){return(t&e)!==0}function Me(t,e,n){return t&~e|-n&e}const Ce=Symbol("Unknown Value"),ri=Symbol("Unknown Truthy Value"),ii=Symbol("Unknown Falsy Value");class Pt{constructor(){this.flags=0}get included(){return Le(this.flags,1)}set included(e){this.flags=Me(this.flags,1,e)}deoptimizeArgumentsOnInteractionAtPath(e,n,s){En(e)}deoptimizePath(e){}getLiteralValueAtPath(e,n,s){return Ce}getReturnExpressionWhenCalledAtPath(e,n,s,r){return it}hasEffectsOnInteractionAtPath(e,n,s){return!0}include(e,n,s){this.included||this.includeNode(e)}includeNode(e){this.included=!0}includePath(e,n){this.included||this.includeNode(n)}includeCallArguments(e,n){na(e,n)}shouldBeIncluded(e){return!0}}const Pe=new class extends Pt{},it=[Pe,!1],En=t=>{for(const e of t.args)e?.deoptimizePath(le)},na=(t,e)=>{t.args[0]?.includePath(le,e),Wu(t,e)},Wu=({args:t},e)=>{for(let n=1;n<t.length;n++){const s=t[n];s&&(s.includePath(le,e),s.include(e,!1))}},An={args:[null],type:0},sa={args:[null,Pe],type:1},Js={args:[null],type:2,withNew:!1},ra="ArrowFunctionExpression",Ys="CallExpression",Xu="ExportDefaultDeclaration",Wt="ExpressionStatement",ia="Identifier",oi="Program",Ku="Property";function _m(t,e){return t.start<=e&&e<t.end}function oa(t,e,n){return function(s,r={}){const{offsetLine:i=0,offsetColumn:a=0}=r;let l=0;const c=s.split(`
25
+ `).map((d,m)=>{const f=l+d.length+1,g={start:l,end:f,line:m};return l=f,g});let u=0;return function(d,m){if(typeof d=="string"&&(d=s.indexOf(d,m??0)),d===-1)return;let f=c[u];const g=d>=f.end?1:-1;for(;f;){if(_m(f,d))return{line:i+f.line,column:a+d-f.start,character:d};u+=g,f=c[u]}}}(t,n)(e,n&&n.startIndex)}function aa(t){return t.replace(/^\t+/,e=>e.split(" ").join(" "))}const Pm="...";function Ju(t,e,n){let s=t.split(`
26
+ `);if(e>s.length)return"";const r=Math.max(aa(s[e-1].slice(0,n)).length+10+3,120),i=Math.max(0,e-3);let a=Math.min(e+2,s.length);for(s=s.slice(i,a);!/\S/.test(s[s.length-1]);)s.pop(),a-=1;const l=String(a).length;return s.map((c,u)=>{const d=i+u+1===e;let m=String(u+i+1);for(;m.length<l;)m=` ${m}`;let f=aa(c);if(f.length>r&&(f=`${f.slice(0,r-3)}${Pm}`),d){const g=function(w){let k="";for(;w--;)k+=" ";return k}(l+2+aa(c.slice(0,n)).length)+"^";return`${m}: ${f}
27
27
  ${g}`}return`${m}: ${f}`}).join(`
28
- `)}const _m="silent",Ee="warn",Fn="info",Ys="debug",Bn={[Ys]:0,[Fn]:1,[_m]:3,[Ee]:2};function cn(t,e){const n=t.length<=1,s=t.map(r=>`"${r}"`);let i=n?s[0]:`${s.slice(0,-1).join(", ")} and ${s.slice(-1)[0]}`;return e&&(i+=` ${n?e[0]:e[1]}`),i}function la(t){const e=Gt(t);return e.slice(0,Math.max(0,e.length-xn(t).length))}function Ae(t){return Ht(t)?Rn(At(),t):t}function or(t){return t[0]==="/"||t[0]==="."&&(t[1]==="/"||t[1]===".")||Ht(t)}const Pm=/^(\.\.\/)*\.\.$/;function Ku(t,e,n,s){for(;e.startsWith("../");)e=e.slice(3),t="_/"+t;let i=an(Rn(ln(t),e));if(n&&i.endsWith(".js")&&(i=i.slice(0,-3)),s){if(i==="")return"../"+Gt(e);if(Pm.test(i))return[...i.split("/"),"..",Gt(e)].join("/")}return i?i.startsWith("..")?i:"./"+i:"."}function ot(t){return`https://rollupjs.org/${t}`}const Ju="troubleshooting/#error-name-is-not-exported-by-module",ar="configuration-options/#jsx",Yu="configuration-options/#output-amd-id",Qs="configuration-options/#output-dir",ca="configuration-options/#output-exports",Qu="configuration-options/#output-format",Zu="configuration-options/#output-inlinedynamicimports",ua="configuration-options/#output-interop",eh="configuration-options/#output-manualchunks",th="configuration-options/#output-name",$m="configuration-options/#output-sourcemapfile",ys="plugin-development/#generatebundle";function oe(t){throw t instanceof Error?t:bs(t)}function bs(t){sh(t);const e=Object.assign(new Error(t.message),t);return Object.defineProperty(e,"name",{value:"RollupError",writable:!0}),e}function lr(t,e,n,s){if(typeof e=="object"){const{line:i,column:r}=e;t.loc={column:r,file:s,line:i}}else{t.pos=e;const i=oa(n,e,{offsetLine:1});if(!i)return;const{line:r,column:a}=i;t.loc={column:a,file:s,line:r}}if(t.frame===void 0){const{line:i,column:r}=t.loc;t.frame=Xu(n,i,r)}}const nh=Symbol("augmented");function sh(t){if(!t.plugin&&!t.loc||t[nh])return;t[nh]=!0;let e="";t.plugin&&(e+=`[plugin ${t.plugin}] `);const n=t.id||t.loc?.file;if(n){const i=t.loc?` (${t.loc.line}:${t.loc.column})`:"";e+=`${Ae(n)}${i}: `}const s=t.message;t.message=e+t.message,yh(t,s)}const ih="INVALID_EXPORT_OPTION",rh="INVALID_IMPORT_ATTRIBUTE",oh="INVALID_PLUGIN_HOOK",ah="MISSING_EXPORT",ha="MISSING_IMPLICIT_DEPENDANT",lh="MISSING_NAME_OPTION_FOR_IIFE_EXPORT",ch="PARSE_ERROR",uh="SOURCEMAP_BROKEN",hh="UNEXPECTED_NAMED_IMPORT",dh="UNRESOLVED_ENTRY",ph="UNRESOLVED_IMPORT";function Nm(t){return{code:"ASSET_SOURCE_MISSING",message:`Plugin error creating asset "${t}" - no asset source set.`}}function fh(t){return{code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ("${t}").`}}function Cm({fileName:t,code:e},{pos:n,message:s}){const i={code:"CHUNK_INVALID",message:`Chunk "${t}" is not valid JavaScript: ${s}.`};return lr(i,n,e,t),i}function Tm(t){return{code:"CIRCULAR_DEPENDENCY",ids:t,message:`Circular dependency: ${t.map(Ae).join(" -> ")}`}}function Rm(t,e,n,s,i){return{code:"CYCLIC_CROSS_CHUNK_REEXPORT",exporter:e,id:s,message:`Export "${t}" of module "${Ae(e)}" was reexported through module "${Ae(n)}" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.
29
- Either change the import in "${Ae(s)}" to point directly to the exporting module or ${i?'do not use "output.preserveModules"':'reconfigure "output.manualChunks"'} to ensure these modules end up in the same chunk.`,reexporter:n}}function Dm(t,e,{line:n,column:s}){return{code:"FIRST_SIDE_EFFECT",message:`First side effect in ${Ae(e)} is at (${n}:${s})
30
- ${Xu(t,n,s)}`}}function mh(t,e){return{code:"ILLEGAL_REASSIGNMENT",message:`Illegal reassignment of import "${t}" in "${Ae(e)}".`}}function cr(t,e,n,s){return{code:"INCONSISTENT_IMPORT_ATTRIBUTES",message:`Module "${Ae(s)}" tried to import "${Ae(n)}" with ${gh(e)} attributes, but it was already imported elsewhere with ${gh(t)} attributes. Please ensure that import attributes for the same module are always consistent.`}}const gh=t=>{const e=Object.entries(t);return e.length===0?"no":e.map(([n,s])=>`"${n}": "${s}"`).join(", ")};function Om(t,e,n){return{code:"INVALID_ANNOTATION",id:e,message:`A comment
28
+ `)}const $m="silent",Ee="warn",Fn="info",Qs="debug",Bn={[Qs]:0,[Fn]:1,[$m]:3,[Ee]:2};function cn(t,e){const n=t.length<=1,s=t.map(i=>`"${i}"`);let r=n?s[0]:`${s.slice(0,-1).join(", ")} and ${s.slice(-1)[0]}`;return e&&(r+=` ${n?e[0]:e[1]}`),r}function la(t){const e=Gt(t);return e.slice(0,Math.max(0,e.length-xn(t).length))}function Ae(t){return Ht(t)?Rn(At(),t):t}function ai(t){return t[0]==="/"||t[0]==="."&&(t[1]==="/"||t[1]===".")||Ht(t)}const Nm=/^(\.\.\/)*\.\.$/;function Yu(t,e,n,s){for(;e.startsWith("../");)e=e.slice(3),t="_/"+t;let r=an(Rn(ln(t),e));if(n&&r.endsWith(".js")&&(r=r.slice(0,-3)),s){if(r==="")return"../"+Gt(e);if(Nm.test(r))return[...r.split("/"),"..",Gt(e)].join("/")}return r?r.startsWith("..")?r:"./"+r:"."}function ot(t){return`https://rollupjs.org/${t}`}const Qu="troubleshooting/#error-name-is-not-exported-by-module",li="configuration-options/#jsx",Zu="configuration-options/#output-amd-id",Zs="configuration-options/#output-dir",ca="configuration-options/#output-exports",eh="configuration-options/#output-format",th="configuration-options/#output-inlinedynamicimports",ua="configuration-options/#output-interop",nh="configuration-options/#output-manualchunks",sh="configuration-options/#output-name",Cm="configuration-options/#output-sourcemapfile",bs="plugin-development/#generatebundle";function oe(t){throw t instanceof Error?t:xs(t)}function xs(t){ih(t);const e=Object.assign(new Error(t.message),t);return Object.defineProperty(e,"name",{value:"RollupError",writable:!0}),e}function ci(t,e,n,s){if(typeof e=="object"){const{line:r,column:i}=e;t.loc={column:i,file:s,line:r}}else{t.pos=e;const r=oa(n,e,{offsetLine:1});if(!r)return;const{line:i,column:a}=r;t.loc={column:a,file:s,line:i}}if(t.frame===void 0){const{line:r,column:i}=t.loc;t.frame=Ju(n,r,i)}}const rh=Symbol("augmented");function ih(t){if(!t.plugin&&!t.loc||t[rh])return;t[rh]=!0;let e="";t.plugin&&(e+=`[plugin ${t.plugin}] `);const n=t.id||t.loc?.file;if(n){const r=t.loc?` (${t.loc.line}:${t.loc.column})`:"";e+=`${Ae(n)}${r}: `}const s=t.message;t.message=e+t.message,xh(t,s)}const oh="INVALID_EXPORT_OPTION",ah="INVALID_IMPORT_ATTRIBUTE",lh="INVALID_PLUGIN_HOOK",ch="MISSING_EXPORT",ha="MISSING_IMPLICIT_DEPENDANT",uh="MISSING_NAME_OPTION_FOR_IIFE_EXPORT",hh="PARSE_ERROR",dh="SOURCEMAP_BROKEN",ph="UNEXPECTED_NAMED_IMPORT",fh="UNRESOLVED_ENTRY",mh="UNRESOLVED_IMPORT";function Tm(t){return{code:"ASSET_SOURCE_MISSING",message:`Plugin error creating asset "${t}" - no asset source set.`}}function gh(t){return{code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ("${t}").`}}function Rm({fileName:t,code:e},{pos:n,message:s}){const r={code:"CHUNK_INVALID",message:`Chunk "${t}" is not valid JavaScript: ${s}.`};return ci(r,n,e,t),r}function Dm(t){return{code:"CIRCULAR_DEPENDENCY",ids:t,message:`Circular dependency: ${t.map(Ae).join(" -> ")}`}}function Om(t,e,n,s,r){return{code:"CYCLIC_CROSS_CHUNK_REEXPORT",exporter:e,id:s,message:`Export "${t}" of module "${Ae(e)}" was reexported through module "${Ae(n)}" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.
29
+ Either change the import in "${Ae(s)}" to point directly to the exporting module or ${r?'do not use "output.preserveModules"':'reconfigure "output.manualChunks"'} to ensure these modules end up in the same chunk.`,reexporter:n}}function Lm(t,e,{line:n,column:s}){return{code:"FIRST_SIDE_EFFECT",message:`First side effect in ${Ae(e)} is at (${n}:${s})
30
+ ${Ju(t,n,s)}`}}function yh(t,e){return{code:"ILLEGAL_REASSIGNMENT",message:`Illegal reassignment of import "${t}" in "${Ae(e)}".`}}function ui(t,e,n,s){return{code:"INCONSISTENT_IMPORT_ATTRIBUTES",message:`Module "${Ae(s)}" tried to import "${Ae(n)}" with ${bh(e)} attributes, but it was already imported elsewhere with ${bh(t)} attributes. Please ensure that import attributes for the same module are always consistent.`}}const bh=t=>{const e=Object.entries(t);return e.length===0?"no":e.map(([n,s])=>`"${n}": "${s}"`).join(", ")};function Mm(t,e,n){return{code:"INVALID_ANNOTATION",id:e,message:`A comment
31
31
 
32
32
  "${t}"
33
33
 
34
- in "${Ae(e)}" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.`,url:ot(n==="noSideEffects"?"configuration-options/#no-side-effects":"configuration-options/#pure")}}function Lm(t,e){return{code:"INPUT_HOOK_IN_OUTPUT_PLUGIN",message:`The "${e}" hook used by the output plugin ${t} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`}}function yh(t,e){return t.stack&&(t.stack=t.stack.replace(e,t.message)),t}function bh(t,e,n){return{code:ih,message:`"${t}" was specified for "output.exports", but entry module "${Ae(n)}" has the following exports: ${cn(e)}`,url:ot(ca)}}function xh(t){return{code:rh,message:`Rollup could not statically analyze an import attribute of a dynamic import in "${Ae(t)}". Import attributes need to have string keys and values. The attribute will be removed.`}}function nt(t,e,n,s){return{code:"INVALID_OPTION",message:`Invalid value ${s===void 0?"":`${JSON.stringify(s)} `}for option "${t}" - ${n}.`,url:ot(e)}}function Mm(t,e){return{binding:t,code:ah,exporter:e,message:`Exported variable "${t}" is not defined in "${Ae(e)}".`,url:ot(Ju)}}function ur(t,e,n,s){const i={binding:t,code:ah,exporter:n,id:e,url:ot(Ju)};if(s)return{...i,message:`Exported variable "${t}" is not defined in "${Ae(n)}", but it is imported by "${Ae(e)}".`};const r=xn(n)===".json";return{...i,message:`"${t}" is not exported by "${Ae(n)}", imported by "${Ae(e)}".${r?" (Note that you need @rollup/plugin-json to import JSON files)":""}`}}function Fm(t){const e=[...t.implicitlyLoadedBefore].map(n=>Ae(n.id)).sort();return{code:ha,message:`Module "${Ae(t.id)}" that should be implicitly loaded before ${cn(e)} is not included in the module graph. Either it was not imported by an included module or only via a tree-shaken dynamic import, or no imported bindings were used and it had otherwise no side-effects.`}}function kh(t,e,n){return{code:"OPTIMIZE_CHUNK_STATUS",message:`${n}, there are
34
+ in "${Ae(e)}" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.`,url:ot(n==="noSideEffects"?"configuration-options/#no-side-effects":"configuration-options/#pure")}}function Fm(t,e){return{code:"INPUT_HOOK_IN_OUTPUT_PLUGIN",message:`The "${e}" hook used by the output plugin ${t} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`}}function xh(t,e){return t.stack&&(t.stack=t.stack.replace(e,t.message)),t}function kh(t,e,n){return{code:oh,message:`"${t}" was specified for "output.exports", but entry module "${Ae(n)}" has the following exports: ${cn(e)}`,url:ot(ca)}}function Eh(t){return{code:ah,message:`Rollup could not statically analyze an import attribute of a dynamic import in "${Ae(t)}". Import attributes need to have string keys and values. The attribute will be removed.`}}function nt(t,e,n,s){return{code:"INVALID_OPTION",message:`Invalid value ${s===void 0?"":`${JSON.stringify(s)} `}for option "${t}" - ${n}.`,url:ot(e)}}function Bm(t,e){return{binding:t,code:ch,exporter:e,message:`Exported variable "${t}" is not defined in "${Ae(e)}".`,url:ot(Qu)}}function hi(t,e,n,s){const r={binding:t,code:ch,exporter:n,id:e,url:ot(Qu)};if(s)return{...r,message:`Exported variable "${t}" is not defined in "${Ae(n)}", but it is imported by "${Ae(e)}".`};const i=xn(n)===".json";return{...r,message:`"${t}" is not exported by "${Ae(n)}", imported by "${Ae(e)}".${i?" (Note that you need @rollup/plugin-json to import JSON files)":""}`}}function jm(t){const e=[...t.implicitlyLoadedBefore].map(n=>Ae(n.id)).sort();return{code:ha,message:`Module "${Ae(t.id)}" that should be implicitly loaded before ${cn(e)} is not included in the module graph. Either it was not imported by an included module or only via a tree-shaken dynamic import, or no imported bindings were used and it had otherwise no side-effects.`}}function Ah(t,e,n){return{code:"OPTIMIZE_CHUNK_STATUS",message:`${n}, there are
35
35
  ${t} chunks, of which
36
- ${e} are below minChunkSize.`}}function hr(t,e){return{code:ch,message:t,pos:e}}function xs(t){return{code:"REDECLARATION_ERROR",message:`Identifier "${t}" has already been declared`}}function Eh(t){return{code:"RESERVED_NAMESPACE",message:`You have overridden reserved namespace "${t}"`}}function da(t,e){let n=t.message.replace(/ \(\d+:\d+\)$/,"");return e.endsWith(".json")?n+=" (Note that you need @rollup/plugin-json to import JSON files)":e.endsWith(".js")||(n+=" (Note that you need plugins to import files that are not JavaScript)"),yh({cause:t,code:ch,id:e,message:n,stack:t.stack},t.message)}function Zs(t,e,{hook:n,id:s}={}){const i=t.code;return t.pluginCode||i==null||typeof i=="string"&&i.startsWith("PLUGIN_")||(t.pluginCode=i),t.code="PLUGIN_ERROR",t.plugin=e,n&&(t.hook=n),s&&(t.id=s),t}function Bm(t){return{code:uh,message:`Multiple conflicting contents for sourcemap source ${t}`}}function Ah(t,e,n){const s=n?"reexport":"import";return{code:hh,exporter:t,message:`The named export "${e}" was ${s}ed from the external module "${Ae(t)}" even though its interop type is "defaultOnly". Either remove or change this ${s} or change the value of the "output.interop" option.`,url:ot(ua)}}function jm(t){return{code:hh,exporter:t,message:`There was a namespace "*" reexport from the external module "${Ae(t)}" even though its interop type is "defaultOnly". This will be ignored as namespace reexports only reexport named exports. If this is not intended, either remove or change this reexport or change the value of the "output.interop" option.`,url:ot(ua)}}function wt(t){return{code:"VALIDATION_ERROR",message:t}}function jn(t,e,n,s,i){(function(r,a,l,c,u){if(l||u){const d=function(m,f){return{code:"DEPRECATED_FEATURE",message:m,url:ot(f)}}(r,a);if(u)return oe(d);c(Ee,d)}})(t,e,n,s.onLog,s.strictDeprecations)}const pa=Symbol("PureFunction");class zn extends Pt{markReassigned(){this.isReassigned=!0}constructor(e){super(),this.name=e,this.alwaysRendered=!1,this.forbiddenNames=null,this.globalName=null,this.initReached=!1,this.isId=!1,this.kind=null,this.renderBaseName=null,this.renderName=null,this.isReassigned=!1,this.onlyFunctionCallUsed=!0}addReference(e){}getOnlyFunctionCallUsed(){return this.onlyFunctionCallUsed}addUsedPlace(e){e.parent.type===Js&&e.parent.callee===e||e.parent.type===Gu||(this.onlyFunctionCallUsed=!1)}forbidName(e){(this.forbiddenNames||=new Set).add(e)}getBaseVariableName(){return this.renderedLikeHoisted?.getBaseVariableName()||this.renderBaseName||this.renderName||this.name}getName(e,n){if(this.globalName)return this.globalName;if(n?.(this))return this.name;if(this.renderedLikeHoisted)return this.renderedLikeHoisted.getName(e,n);const s=this.renderName||this.name;return this.renderBaseName?`${this.renderBaseName}${e(s)}`:s}hasEffectsOnInteractionAtPath(e,{type:n},s){return n!==0||e.length>0}includePath(e,n){this.included=!0,this.renderedLikeHoisted?.includePath(e,n)}renderLikeHoisted(e){this.renderedLikeHoisted=e}markCalledFromTryStatement(){}setRenderNames(e,n){this.renderBaseName=e,this.renderName=n}}class dr extends zn{constructor(e,n){super(n),this.referenced=!1,this.module=e,this.isNamespace=n==="*"}addReference(e){this.referenced=!0,this.name!=="default"&&this.name!=="*"||this.module.suggestName(e.name)}hasEffectsOnInteractionAtPath(e,{type:n}){return n!==0||e.length>(this.isNamespace?1:0)}includePath(e,n){super.includePath(e,n),this.module.used=!0}}function wh(t,e){for(const n of e){const s=Object.getOwnPropertyDescriptor(t,n).get;Object.defineProperty(t,n,{get(){const i=s.call(t);return Object.defineProperty(t,n,{value:i}),i}})}}const pr=new Set(["await","break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","eval","export","extends","false","finally","for","function","if","implements","import","in","instanceof","interface","let","NaN","new","null","package","private","protected","public","return","static","super","switch","this","throw","true","try","typeof","undefined","var","void","while","with","yield"]),Sh=/[^\w$]/g,Ih=t=>(e=>/\d/.test(e[0]))(t)||pr.has(t)||t==="arguments";function fr(t){return t=t.replace(/-(\w)/g,(e,n)=>n.toUpperCase()).replace(Sh,"_"),Ih(t)&&(t=`_${t}`),t||"_"}const mr=/^[$_\p{ID_Start}][$\u200C\u200D\p{ID_Continue}]*$/u,zm=/^(?:0|[1-9]\d*)$/;function gr(t){return mr.test(t)?t==="__proto__"?'["__proto__"]':t:zm.test(t)&&+t<=Number.MAX_SAFE_INTEGER?t:JSON.stringify(t)}function ks(t){return mr.test(t)?t:JSON.stringify(t)}class Ze{constructor(e,n,s,i,r,a){this.options=e,this.id=n,this.renormalizeRenderPath=r,this.dynamicImporters=[],this.execIndex=1/0,this.exportedVariables=new Map,this.importers=[],this.reexported=!1,this.used=!1,this.declarations=new Map,this.mostCommonSuggestion=0,this.nameSuggestions=new Map,this.suggestedVariableName=fr(n.split(/[/\\]/).pop());const{importers:l,dynamicImporters:c}=this;this.info={ast:null,attributes:a,code:null,dynamicallyImportedIdResolutions:Qe,dynamicallyImportedIds:Qe,get dynamicImporters(){return c.sort()},exportedBindings:null,exports:null,hasDefaultExport:null,id:n,implicitlyLoadedAfterOneOf:Qe,implicitlyLoadedBefore:Qe,importedIdResolutions:Qe,importedIds:Qe,get importers(){return l.sort()},isEntry:!1,isExternal:!0,isIncluded:null,meta:i,moduleSideEffects:s,syntheticNamedExports:!1}}cacheInfoGetters(){wh(this.info,["dynamicImporters","importers"])}getVariableForExportName(e){const n=this.declarations.get(e);if(n)return[n];const s=new dr(this,e);return this.declarations.set(e,s),this.exportedVariables.set(s,e),[s]}suggestName(e){const n=(this.nameSuggestions.get(e)??0)+1;this.nameSuggestions.set(e,n),n>this.mostCommonSuggestion&&(this.mostCommonSuggestion=n,this.suggestedVariableName=e)}warnUnusedImports(){const e=[...this.declarations].filter(([l,c])=>l!=="*"&&!c.included&&!this.reexported&&!c.referenced).map(([l])=>l);if(e.length===0)return;const n=new Set;for(const l of e)for(const c of this.declarations.get(l).module.importers)n.add(c);const s=[...n];var i,r,a;this.options.onLog(Ee,{code:"UNUSED_EXTERNAL_IMPORT",exporter:i=this.id,ids:a=s,message:`${cn(r=e,["is","are"])} imported from external module "${i}" but never used in ${cn(a.map(l=>Ae(l)))}.`,names:r})}}function Es(t){t.isExecuted=!0;const e=[t],n=new Set;for(const s of e)for(const i of[...s.dependencies,...s.implicitlyLoadedBefore])i instanceof Ze||i.isExecuted||!i.info.moduleSideEffects&&!s.implicitlyLoadedBefore.has(i)||n.has(i.id)||(i.isExecuted=!0,n.add(i.id),e.push(i))}const Mt=()=>{};var yt=["var","let","const","init","get","set","constructor","method","-","+","!","~","typeof","void","delete","++","--","==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","||","&&","in","instanceof","**","??","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&=","**=","&&=","||=","??=","pure","noSideEffects","sourcemap","using","await using"];const As="_rollupAnnotations",vh="_rollupRemoved",Rt=(t,e)=>{if(t===0)return Qe;const n=e[t++],s=new Array(n);for(let i=0;i<n;i++)s[i]=Vm(e[t++],e);return s},Vm=(t,e)=>{const n=e[t++];return{end:e[t++],start:n,type:yt[e[t]]}},Vn={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["decorators","id","superClass","body"],ClassExpression:["decorators","id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],Decorator:["expression"],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["exported","source","attributes"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["specifiers","source","attributes","declaration"],ExportSpecifier:["local","exported"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportAttribute:["key","value"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportExpression:["source","options"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["decorators","key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PanicError:[],ParseError:[],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["decorators","key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],YieldExpression:["argument"]},_h="variables",Xt=Symbol("IS_SKIPPED_CHAIN");class te extends Pt{get deoptimized(){return Le(this.flags,2)}set deoptimized(e){this.flags=Me(this.flags,2,e)}constructor(e,n){super(),this.parent=e,this.scope=n,this.createScope(n)}addExportedVariables(e,n){}bind(){for(const e of Vn[this.type]){const n=this[e];if(Array.isArray(n))for(const s of n)s?.bind();else n&&n.bind()}}createScope(e){this.scope=e}hasEffects(e){this.deoptimized||this.applyDeoptimizations();for(const n of Vn[this.type]){const s=this[n];if(s!==null){if(Array.isArray(s)){for(const i of s)if(i?.hasEffects(e))return!0}else if(s.hasEffects(e))return!0}}return!1}hasEffectsAsAssignmentTarget(e,n){return this.hasEffects(e)||this.hasEffectsOnInteractionAtPath(ue,this.assignmentInteraction,e)}include(e,n,s){this.included||this.includeNode(e);for(const i of Vn[this.type]){const r=this[i];if(r!==null)if(Array.isArray(r))for(const a of r)a?.include(e,n);else r.include(e,n)}}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations();for(const n of Vn[this.type]){const s=this[n];if(s!==null)if(Array.isArray(s))for(const i of s)i?.includePath(le,e);else s.includePath(le,e)}}includeAsAssignmentTarget(e,n,s){this.include(e,n)}initialise(){this.scope.context.magicString.addSourcemapLocation(this.start),this.scope.context.magicString.addSourcemapLocation(this.end)}parseNode(e){for(const[n,s]of Object.entries(e))if(!this.hasOwnProperty(n))if(n.charCodeAt(0)===95)n===As?this.annotations=s:n===vh&&(this.invalidAnnotations=s);else if(typeof s!="object"||s===null)this[n]=s;else if(Array.isArray(s)){this[n]=new Array(s.length);let i=0;for(const r of s)this[n][i++]=r===null?null:new(this.scope.context.getNodeConstructor(r.type))(this,this.scope).parseNode(r)}else this[n]=new(this.scope.context.getNodeConstructor(s.type))(this,this.scope).parseNode(s);return Vn[e.type]||=function(n){return Object.keys(n).filter(s=>typeof n[s]=="object"&&s.charCodeAt(0)!==95)}(e),this.initialise(),this}removeAnnotations(e){if(this.annotations)for(const n of this.annotations)e.remove(n.start,n.end)}render(e,n){for(const s of Vn[this.type]){const i=this[s];if(i!==null)if(Array.isArray(i))for(const r of i)r?.render(e,n);else i.render(e,n)}}setAssignedValue(e){this.assignmentInteraction={args:[null,e],type:1}}shouldBeIncluded(e){return this.included||!e.brokenFlow&&this.hasEffects(Mn())}applyDeoptimizations(){this.deoptimized=!0;for(const e of Vn[this.type]){const n=this[e];if(n!==null)if(Array.isArray(n))for(const s of n)s?.deoptimizePath(le);else n.deoptimizePath(le)}this.scope.context.requestTreeshakingPass()}}function dt(){this.included=!0,this.deoptimized||this.applyDeoptimizations()}function ze(){this.included=!0}function Te(){this.deoptimized=!0}function Um(t){return t instanceof te&&t.type===ia}function qm(t){return t instanceof te&&t.type==="FunctionExpression"}function Hm(t){return t instanceof te&&t.type===Js}function Gm(t){return t instanceof te&&t.type==="MemberExpression"}function fa(t){return t instanceof te&&t.type==="ImportExpression"}function Wm(t){return t instanceof te&&t.type===ra}function ei(t,e=null){return Object.create(e,t)}const un=new class extends Pt{getLiteralValueAtPath(t){return t.length>0?Ce:void 0}},Un={value:{hasEffectsWhenCalled:null,returns:Pe}},ma=new class extends Pt{getReturnExpressionWhenCalledAtPath(t){return t.length===1?si(ya,t[0]):rt}hasEffectsOnInteractionAtPath(t,e,n){return e.type===0?t.length>1:e.type!==2||t.length!==1||ni(ya,t[0],e,n)}},wn={value:{hasEffectsWhenCalled:null,returns:ma}},ws=new class extends Pt{getReturnExpressionWhenCalledAtPath(t){return t.length===1?si(ba,t[0]):rt}hasEffectsOnInteractionAtPath(t,e,n){return e.type===0?t.length>1:e.type!==2||t.length!==1||ni(ba,t[0],e,n)}},Ss={value:{hasEffectsWhenCalled:null,returns:ws}},ga=new class extends Pt{getReturnExpressionWhenCalledAtPath(t){return t.length===1?si(ti,t[0]):rt}hasEffectsOnInteractionAtPath(t,e,n){return e.type===0?t.length>1:e.type!==2||t.length!==1||ni(ti,t[0],e,n)}},Re={value:{hasEffectsWhenCalled:null,returns:ga}},Ph={value:{hasEffectsWhenCalled({args:t},e){const n=t[2];return t.length<3||typeof n.getLiteralValueAtPath(ue,Ge,{deoptimizeCache(){}})=="symbol"&&n.hasEffectsOnInteractionAtPath(ue,Ks,e)},returns:ga}},yr=ei({hasOwnProperty:wn,isPrototypeOf:wn,propertyIsEnumerable:wn,toLocaleString:Re,toString:Re,valueOf:Un}),ya=ei({valueOf:wn},yr),ba=ei({toExponential:Re,toFixed:Re,toLocaleString:Re,toPrecision:Re,valueOf:Ss},yr),Xm=ei({exec:Un,test:wn},yr),ti=ei({anchor:Re,at:Un,big:Re,blink:Re,bold:Re,charAt:Re,charCodeAt:Ss,codePointAt:Un,concat:Re,endsWith:wn,fixed:Re,fontcolor:Re,fontsize:Re,includes:wn,indexOf:Ss,italics:Re,lastIndexOf:Ss,link:Re,localeCompare:Ss,match:Un,matchAll:Un,normalize:Re,padEnd:Re,padStart:Re,repeat:Re,replace:Ph,replaceAll:Ph,search:Ss,slice:Re,small:Re,split:Un,startsWith:wn,strike:Re,sub:Re,substr:Re,substring:Re,sup:Re,toLocaleLowerCase:Re,toLocaleUpperCase:Re,toLowerCase:Re,toString:Re,toUpperCase:Re,trim:Re,trimEnd:Re,trimLeft:Re,trimRight:Re,trimStart:Re,valueOf:Re},yr);function ni(t,e,n,s){return typeof e!="string"||!t[e]||t[e].hasEffectsWhenCalled?.(n,s)||!1}function si(t,e){return typeof e=="string"&&t[e]?[t[e].returns,!1]:rt}class xt extends Pt{constructor(e){super(),this.description=e}deoptimizeArgumentsOnInteractionAtPath({args:e,type:n},s){if(n===2&&s.length===0&&(this.description.mutatesSelfAsArray&&e[0]?.deoptimizePath(ta),this.description.mutatesArgs))for(let i=1;i<e.length;i++)e[i].deoptimizePath(le)}getReturnExpressionWhenCalledAtPath(e,{args:n}){return e.length>0?rt:[this.description.returnsPrimitive||(this.description.returns==="self"?n[0]||Pe:this.description.returns()),!1]}hasEffectsOnInteractionAtPath(e,{args:n,type:s},i){if(e.length>(s===0?1:0))return!0;if(s===2){if(this.description.mutatesSelfAsArray===!0&&n[0]?.hasEffectsOnInteractionAtPath(ta,sa,i))return!0;if(this.description.callsArgs){for(const r of this.description.callsArgs)if(n[r+1]?.hasEffectsOnInteractionAtPath(ue,Ks,i))return!0}}return!1}}const br=[new xt({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:ma})],ii=[new xt({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:ga})],$h=[new xt({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:ws})],Nh=[new xt({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:Pe})],ri=/^\d+$/;class $t extends Pt{get hasLostTrack(){return Le(this.flags,2048)}set hasLostTrack(e){this.flags=Me(this.flags,2048,e)}get hasUnknownDeoptimizedInteger(){return Le(this.flags,4096)}set hasUnknownDeoptimizedInteger(e){this.flags=Me(this.flags,4096,e)}get hasUnknownDeoptimizedProperty(){return Le(this.flags,8192)}set hasUnknownDeoptimizedProperty(e){this.flags=Me(this.flags,8192,e)}constructor(e,n,s=!1){if(super(),this.prototypeExpression=n,this.immutable=s,this.additionalExpressionsToBeDeoptimized=new Set,this.allProperties=[],this.deoptimizedPaths=Object.create(null),this.expressionsToBeDeoptimizedByKey=Object.create(null),this.gettersByKey=Object.create(null),this.propertiesAndGettersByKey=Object.create(null),this.propertiesAndSettersByKey=Object.create(null),this.settersByKey=Object.create(null),this.unknownIntegerProps=[],this.unmatchableGetters=[],this.unmatchablePropertiesAndGetters=[],this.unmatchablePropertiesAndSetters=[],this.unmatchableSetters=[],Array.isArray(e))this.buildPropertyMaps(e);else{this.propertiesAndGettersByKey=this.propertiesAndSettersByKey=e;for(const i of Object.values(e))this.allProperties.push(...i)}}deoptimizeAllProperties(e){const n=this.hasLostTrack||this.hasUnknownDeoptimizedProperty;if(e?this.hasUnknownDeoptimizedProperty=!0:this.hasLostTrack=!0,!n){for(const s of[...Object.values(this.propertiesAndGettersByKey),...Object.values(this.settersByKey)])for(const i of s)i.deoptimizePath(le);this.prototypeExpression?.deoptimizePath([_e,_e]),this.deoptimizeCachedEntities()}}deoptimizeArgumentsOnInteractionAtPath(e,n,s){const[i,...r]=n,{args:a,type:l}=e;if(this.hasLostTrack||(l===2||n.length>1)&&(this.hasUnknownDeoptimizedProperty||typeof i=="string"&&this.deoptimizedPaths[i]))return void En(e);const[c,u,d]=l===2||n.length>1?[this.propertiesAndGettersByKey,this.propertiesAndGettersByKey,this.unmatchablePropertiesAndGetters]:l===0?[this.propertiesAndGettersByKey,this.gettersByKey,this.unmatchableGetters]:[this.propertiesAndSettersByKey,this.settersByKey,this.unmatchableSetters];if(typeof i=="string"){if(c[i]){const m=u[i];if(m)for(const f of m)f.deoptimizeArgumentsOnInteractionAtPath(e,r,s);if(!this.immutable)for(const f of a)f&&this.additionalExpressionsToBeDeoptimized.add(f);return}for(const m of d)m.deoptimizeArgumentsOnInteractionAtPath(e,r,s);if(ri.test(i))for(const m of this.unknownIntegerProps)m.deoptimizeArgumentsOnInteractionAtPath(e,r,s)}else{for(const m of[...Object.values(u),d])for(const f of m)f.deoptimizeArgumentsOnInteractionAtPath(e,r,s);for(const m of this.unknownIntegerProps)m.deoptimizeArgumentsOnInteractionAtPath(e,r,s)}if(!this.immutable)for(const m of a)m&&this.additionalExpressionsToBeDeoptimized.add(m);this.prototypeExpression?.deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizeIntegerProperties(){if(!(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||this.hasUnknownDeoptimizedInteger)){this.hasUnknownDeoptimizedInteger=!0;for(const[e,n]of Object.entries(this.propertiesAndGettersByKey))if(ri.test(e))for(const s of n)s.deoptimizePath(le);this.deoptimizeCachedIntegerEntities()}}deoptimizePath(e){if(this.hasLostTrack||this.immutable)return;const n=e[0];if(e.length===1){if(n===fs)return this.deoptimizeIntegerProperties();if(typeof n!="string")return this.deoptimizeAllProperties(n===nr);if(!this.deoptimizedPaths[n]){this.deoptimizedPaths[n]=!0;const i=this.expressionsToBeDeoptimizedByKey[n];if(i)for(const r of i)r.deoptimizeCache()}}const s=e.length===1?le:e.slice(1);for(const i of typeof n=="string"?[...this.propertiesAndGettersByKey[n]||this.unmatchablePropertiesAndGetters,...this.settersByKey[n]||this.unmatchableSetters]:this.allProperties)i.deoptimizePath(s);this.prototypeExpression?.deoptimizePath(e.length===1?[e[0],_e]:e)}getLiteralValueAtPath(e,n,s){if(e.length===0)return Ce;const i=e[0],r=this.getMemberExpressionAndTrackDeopt(i,s);return r?r.getLiteralValueAtPath(e.slice(1),n,s):this.prototypeExpression?this.prototypeExpression.getLiteralValueAtPath(e,n,s):e.length!==1?Ce:void 0}getReturnExpressionWhenCalledAtPath(e,n,s,i){if(e.length===0)return rt;const[r,...a]=e,l=this.getMemberExpressionAndTrackDeopt(r,i);return l?l.getReturnExpressionWhenCalledAtPath(a,n,s,i):this.prototypeExpression?this.prototypeExpression.getReturnExpressionWhenCalledAtPath(e,n,s,i):rt}hasEffectsOnInteractionAtPath(e,n,s){const[i,...r]=e;if(r.length>0||n.type===2){const u=this.getMemberExpression(i);return u?u.hasEffectsOnInteractionAtPath(r,n,s):!this.prototypeExpression||this.prototypeExpression.hasEffectsOnInteractionAtPath(e,n,s)}if(i===nr)return!1;if(this.hasLostTrack)return!0;const[a,l,c]=n.type===0?[this.propertiesAndGettersByKey,this.gettersByKey,this.unmatchableGetters]:[this.propertiesAndSettersByKey,this.settersByKey,this.unmatchableSetters];if(typeof i=="string"){if(a[i]){const u=l[i];if(u){for(const d of u)if(d.hasEffectsOnInteractionAtPath(r,n,s))return!0}return!1}for(const u of c)if(u.hasEffectsOnInteractionAtPath(r,n,s))return!0}else for(const u of[...Object.values(l),c])for(const d of u)if(d.hasEffectsOnInteractionAtPath(r,n,s))return!0;return!!this.prototypeExpression&&this.prototypeExpression.hasEffectsOnInteractionAtPath(e,n,s)}include(e,n){this.included=!0;for(const s of this.allProperties)(n||s.shouldBeIncluded(e))&&s.include(e,n);this.prototypeExpression?.include(e,n)}includePath(e,n){if(this.included=!0,e.length===0)return;const[s,...i]=e,[r,a]=typeof s=="string"?[new Set([...this.propertiesAndGettersByKey[s]||this.unmatchablePropertiesAndGetters,...this.propertiesAndSettersByKey[s]||this.unmatchablePropertiesAndSetters]),i]:[this.allProperties,le];for(const l of r)l.includePath(a,n);this.prototypeExpression?.includePath(e,n)}buildPropertyMaps(e){const{allProperties:n,propertiesAndGettersByKey:s,propertiesAndSettersByKey:i,settersByKey:r,gettersByKey:a,unknownIntegerProps:l,unmatchablePropertiesAndGetters:c,unmatchablePropertiesAndSetters:u,unmatchableGetters:d,unmatchableSetters:m}=this;for(let f=e.length-1;f>=0;f--){const{key:g,kind:E,property:k}=e[f];if(n.push(k),typeof g=="string")E==="set"?i[g]||(i[g]=[k,...u],r[g]=[k,...m]):E==="get"?s[g]||(s[g]=[k,...c],a[g]=[k,...d]):(i[g]||(i[g]=[k,...u]),s[g]||(s[g]=[k,...c]));else{if(g===fs){l.push(k);continue}E==="set"&&m.push(k),E==="get"&&d.push(k),E!=="get"&&u.push(k),E!=="set"&&c.push(k)}}}deoptimizeCachedEntities(){for(const e of Object.values(this.expressionsToBeDeoptimizedByKey))for(const n of e)n.deoptimizeCache();for(const e of this.additionalExpressionsToBeDeoptimized)e.deoptimizePath(le)}deoptimizeCachedIntegerEntities(){for(const[e,n]of Object.entries(this.expressionsToBeDeoptimizedByKey))if(ri.test(e))for(const s of n)s.deoptimizeCache();for(const e of this.additionalExpressionsToBeDeoptimized)e.deoptimizePath(ta)}getMemberExpression(e){if(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||typeof e!="string"||this.hasUnknownDeoptimizedInteger&&ri.test(e)||this.deoptimizedPaths[e])return Pe;const n=this.propertiesAndGettersByKey[e];return n?.length===1?n[0]:n||this.unmatchablePropertiesAndGetters.length>0||this.unknownIntegerProps.length>0&&ri.test(e)?Pe:null}getMemberExpressionAndTrackDeopt(e,n){if(typeof e!="string")return Pe;const s=this.getMemberExpression(e);return s!==Pe&&!this.immutable&&(this.expressionsToBeDeoptimizedByKey[e]=this.expressionsToBeDeoptimizedByKey[e]||[]).push(n),s}}const Ch=t=>typeof t=="string"&&/^\d+$/.test(t),Km=new class extends Pt{deoptimizeArgumentsOnInteractionAtPath(t,e){t.type!==2||e.length!==1||Ch(e[0])||En(t)}getLiteralValueAtPath(t){return t.length===1&&Ch(t[0])?void 0:Ce}hasEffectsOnInteractionAtPath(t,{type:e}){return t.length>1||e===2}},Sn=new $t({__proto__:null,hasOwnProperty:br,isPrototypeOf:br,propertyIsEnumerable:br,toLocaleString:ii,toString:ii,valueOf:Nh},Km,!0),xa=[{key:fs,kind:"init",property:Pe},{key:"length",kind:"init",property:ws}],Th=[new xt({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:ma})],Rh=[new xt({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:ws})],Jm=[new xt({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!0,returns:()=>new $t(xa,kr),returnsPrimitive:null})],xr=[new xt({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:()=>new $t(xa,kr),returnsPrimitive:null})],ka=[new xt({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:()=>new $t(xa,kr),returnsPrimitive:null})],Dh=[new xt({callsArgs:null,mutatesArgs:!0,mutatesSelfAsArray:!0,returns:null,returnsPrimitive:ws})],Oh=[new xt({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!0,returns:null,returnsPrimitive:Pe})],Lh=[new xt({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:Pe})],oi=[new xt({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:Pe})],Ea=[new xt({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!0,returns:"self",returnsPrimitive:null})],Ym=[new xt({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:!0,returns:"self",returnsPrimitive:null})],kr=new $t({__proto__:null,at:Lh,concat:xr,copyWithin:Ea,entries:xr,every:Th,fill:Ea,filter:ka,find:oi,findIndex:Rh,findLast:oi,findLastIndex:Rh,flat:xr,flatMap:ka,forEach:oi,includes:br,indexOf:$h,join:ii,keys:Nh,lastIndexOf:$h,map:ka,pop:Oh,push:Dh,reduce:oi,reduceRight:oi,reverse:Ea,shift:Oh,slice:xr,some:Th,sort:Ym,splice:Jm,toLocaleString:ii,toString:ii,unshift:Dh,values:Lh},Sn,!0);class qn extends te{deoptimizeArgumentsOnInteractionAtPath(e,n,s){n.length>0&&this.argument.deoptimizeArgumentsOnInteractionAtPath(e,le,s)}hasEffects(e){this.deoptimized||this.applyDeoptimizations();const{propertyReadSideEffects:n}=this.scope.context.options.treeshake;return this.argument.hasEffects(e)||n&&(n==="always"||this.argument.hasEffectsOnInteractionAtPath(le,An,e))}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.argument.includePath(le,e)}applyDeoptimizations(){this.deoptimized=!0,this.argument.deoptimizePath([_e,_e]),this.scope.context.requestTreeshakingPass()}}class Aa extends te{constructor(){super(...arguments),this.objectEntity=null}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizePath(e){this.getObjectEntity().deoptimizePath(e)}getLiteralValueAtPath(e,n,s){return this.getObjectEntity().getLiteralValueAtPath(e,n,s)}getReturnExpressionWhenCalledAtPath(e,n,s,i){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(e,n,s,i)}hasEffectsOnInteractionAtPath(e,n,s){return this.getObjectEntity().hasEffectsOnInteractionAtPath(e,n,s)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations();for(const n of this.elements)n&&n?.includePath(le,e)}applyDeoptimizations(){this.deoptimized=!0;let e=!1;for(let n=0;n<this.elements.length;n++){const s=this.elements[n];s&&(e||s instanceof qn)&&(e=!0,s.deoptimizePath(le))}this.scope.context.requestTreeshakingPass()}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;const e=[{key:"length",kind:"init",property:ws}];let n=!1;for(let s=0;s<this.elements.length;s++){const i=this.elements[s];n||i instanceof qn?i&&(n=!0,e.unshift({key:fs,kind:"init",property:i})):i?e.push({key:String(s),kind:"init",property:i}):e.push({key:String(s),kind:"init",property:un})}return this.objectEntity=new $t(e,kr)}}const Ke=Symbol("Value Properties"),Hn=()=>Ce,Mh=()=>!1,wa=()=>!0,Kt={deoptimizeArgumentsOnCall:Mt,getLiteralValue:Hn,hasEffectsWhenCalled:Mh},hn={deoptimizeArgumentsOnCall:Mt,getLiteralValue:Hn,hasEffectsWhenCalled:wa},Qm={deoptimizeArgumentsOnCall:Mt,getLiteralValue:Hn,hasEffectsWhenCalled:({args:t})=>t.length>1&&!(t[1]instanceof Aa)},Zm={deoptimizeArgumentsOnCall:Mt,getLiteralValue:Hn,hasEffectsWhenCalled({args:t},e){const[n,s]=t;return!(s instanceof Pt)||s.hasEffectsOnInteractionAtPath(le,An,e)}},W={__proto__:null,[Ke]:hn},pe={__proto__:null,[Ke]:Kt},Fh={__proto__:null,[Ke]:Zm},Sa={__proto__:null,[Ke]:{deoptimizeArgumentsOnCall({args:[,t]}){t?.deoptimizePath(le)},getLiteralValue:Hn,hasEffectsWhenCalled:({args:t},e)=>t.length<=1||t[1].hasEffectsOnInteractionAtPath(km,sa,e)}},p={__proto__:null,[Ke]:hn,prototype:W},Ft={__proto__:null,[Ke]:Kt,prototype:W},ai={__proto__:null,[Ke]:Qm,prototype:W},dn={__proto__:null,[Ke]:Kt,from:W,of:pe,prototype:W},pn={__proto__:null,[Ke]:Kt,supportedLocalesOf:Ft},Ia={global:W,globalThis:W,self:W,window:W,__proto__:null,[Ke]:hn,Array:{__proto__:null,[Ke]:hn,from:W,isArray:pe,of:pe,prototype:W},ArrayBuffer:{__proto__:null,[Ke]:Kt,isView:pe,prototype:W},AggregateError:ai,Atomics:W,BigInt:p,BigInt64Array:p,BigUint64Array:p,Boolean:Ft,constructor:p,DataView:Ft,Date:{__proto__:null,[Ke]:Kt,now:pe,parse:pe,prototype:W,UTC:pe},decodeURI:pe,decodeURIComponent:pe,encodeURI:pe,encodeURIComponent:pe,Error:Ft,escape:pe,eval:W,EvalError:Ft,FinalizationRegistry:p,Float32Array:dn,Float64Array:dn,Function:p,hasOwnProperty:W,Infinity:W,Int16Array:dn,Int32Array:dn,Int8Array:dn,isFinite:pe,isNaN:pe,isPrototypeOf:W,JSON:W,Map:ai,Math:{__proto__:null,[Ke]:hn,abs:pe,acos:pe,acosh:pe,asin:pe,asinh:pe,atan:pe,atan2:pe,atanh:pe,cbrt:pe,ceil:pe,clz32:pe,cos:pe,cosh:pe,exp:pe,expm1:pe,floor:pe,fround:pe,hypot:pe,imul:pe,log:pe,log10:pe,log1p:pe,log2:pe,max:pe,min:pe,pow:pe,random:pe,round:pe,sign:pe,sin:pe,sinh:pe,sqrt:pe,tan:pe,tanh:pe,trunc:pe},NaN:W,Number:{__proto__:null,[Ke]:Kt,isFinite:pe,isInteger:pe,isNaN:pe,isSafeInteger:pe,parseFloat:pe,parseInt:pe,prototype:W},Object:{__proto__:null,[Ke]:Kt,create:pe,defineProperty:Sa,defineProperties:Sa,freeze:Sa,getOwnPropertyDescriptor:pe,getOwnPropertyDescriptors:pe,getOwnPropertyNames:pe,getOwnPropertySymbols:pe,getPrototypeOf:pe,hasOwn:pe,is:pe,isExtensible:pe,isFrozen:pe,isSealed:pe,keys:pe,fromEntries:W,entries:Fh,values:Fh,prototype:W},parseFloat:pe,parseInt:pe,Promise:{__proto__:null,[Ke]:hn,all:W,allSettled:W,any:W,prototype:W,race:W,reject:W,resolve:W},propertyIsEnumerable:W,Proxy:{__proto__:null,[Ke]:{deoptimizeArgumentsOnCall:({args:[,t,e]})=>{if((n=e)instanceof te&&n.type==="ObjectExpression"&&!e.properties.some(i=>!function(r){return r instanceof te&&r.type===Wu}(i))){for(const i of e.properties)i.deoptimizeArgumentsOnInteractionAtPath({args:[null,t],type:2,withNew:!1},ue,Ge);return}var n;t.deoptimizePath(le)},getLiteralValue:Hn,hasEffectsWhenCalled:wa}},RangeError:Ft,ReferenceError:Ft,Reflect:W,RegExp:Ft,Set:ai,SharedArrayBuffer:p,String:{__proto__:null,[Ke]:Kt,fromCharCode:pe,fromCodePoint:pe,prototype:W,raw:pe},Symbol:{__proto__:null,[Ke]:Kt,for:pe,keyFor:pe,prototype:W,toStringTag:{__proto__:null,[Ke]:{deoptimizeArgumentsOnCall:Mt,getLiteralValue:()=>ea,hasEffectsWhenCalled:wa}}},SyntaxError:Ft,toLocaleString:W,toString:W,TypeError:Ft,Uint16Array:dn,Uint32Array:dn,Uint8Array:dn,Uint8ClampedArray:dn,unescape:pe,URIError:Ft,valueOf:W,WeakMap:ai,WeakRef:p,WeakSet:ai,clearInterval:p,clearTimeout:p,console:{__proto__:null,[Ke]:hn,assert:p,clear:p,count:p,countReset:p,debug:p,dir:p,dirxml:p,error:p,exception:p,group:p,groupCollapsed:p,groupEnd:p,info:p,log:p,table:p,time:p,timeEnd:p,timeLog:p,trace:p,warn:p},Intl:{__proto__:null,[Ke]:hn,Collator:pn,DateTimeFormat:pn,DisplayNames:pn,ListFormat:pn,Locale:pn,NumberFormat:pn,PluralRules:pn,RelativeTimeFormat:pn,Segmenter:pn},setInterval:p,setTimeout:p,TextDecoder:p,TextEncoder:p,URL:{__proto__:null,[Ke]:hn,prototype:W,canParse:pe},URLSearchParams:p,AbortController:p,AbortSignal:p,addEventListener:W,alert:W,AnalyserNode:p,Animation:p,AnimationEvent:p,applicationCache:W,ApplicationCache:p,ApplicationCacheErrorEvent:p,atob:W,Attr:p,Audio:p,AudioBuffer:p,AudioBufferSourceNode:p,AudioContext:p,AudioDestinationNode:p,AudioListener:p,AudioNode:p,AudioParam:p,AudioProcessingEvent:p,AudioScheduledSourceNode:p,AudioWorkletNode:p,BarProp:p,BaseAudioContext:p,BatteryManager:p,BeforeUnloadEvent:p,BiquadFilterNode:p,Blob:p,BlobEvent:p,blur:W,BroadcastChannel:p,btoa:W,ByteLengthQueuingStrategy:p,Cache:p,caches:W,CacheStorage:p,cancelAnimationFrame:W,cancelIdleCallback:W,CanvasCaptureMediaStreamTrack:p,CanvasGradient:p,CanvasPattern:p,CanvasRenderingContext2D:p,ChannelMergerNode:p,ChannelSplitterNode:p,CharacterData:p,clientInformation:W,ClipboardEvent:p,close:W,closed:W,CloseEvent:p,Comment:p,CompositionEvent:p,confirm:W,ConstantSourceNode:p,ConvolverNode:p,CountQueuingStrategy:p,createImageBitmap:W,Credential:p,CredentialsContainer:p,crypto:W,Crypto:p,CryptoKey:p,CSS:p,CSSConditionRule:p,CSSFontFaceRule:p,CSSGroupingRule:p,CSSImportRule:p,CSSKeyframeRule:p,CSSKeyframesRule:p,CSSMediaRule:p,CSSNamespaceRule:p,CSSPageRule:p,CSSRule:p,CSSRuleList:p,CSSStyleDeclaration:p,CSSStyleRule:p,CSSStyleSheet:p,CSSSupportsRule:p,CustomElementRegistry:p,customElements:W,CustomEvent:{__proto__:null,[Ke]:{deoptimizeArgumentsOnCall({args:t}){t[2]?.deoptimizePath(["detail"])},getLiteralValue:Hn,hasEffectsWhenCalled:Mh},prototype:W},DataTransfer:p,DataTransferItem:p,DataTransferItemList:p,defaultstatus:W,defaultStatus:W,DelayNode:p,DeviceMotionEvent:p,DeviceOrientationEvent:p,devicePixelRatio:W,dispatchEvent:W,document:W,Document:p,DocumentFragment:p,DocumentType:p,DOMError:p,DOMException:p,DOMImplementation:p,DOMMatrix:p,DOMMatrixReadOnly:p,DOMParser:p,DOMPoint:p,DOMPointReadOnly:p,DOMQuad:p,DOMRect:p,DOMRectReadOnly:p,DOMStringList:p,DOMStringMap:p,DOMTokenList:p,DragEvent:p,DynamicsCompressorNode:p,Element:p,ErrorEvent:p,Event:p,EventSource:p,EventTarget:p,external:W,fetch:W,File:p,FileList:p,FileReader:p,find:W,focus:W,FocusEvent:p,FontFace:p,FontFaceSetLoadEvent:p,FormData:p,frames:W,GainNode:p,Gamepad:p,GamepadButton:p,GamepadEvent:p,getComputedStyle:W,getSelection:W,HashChangeEvent:p,Headers:p,history:W,History:p,HTMLAllCollection:p,HTMLAnchorElement:p,HTMLAreaElement:p,HTMLAudioElement:p,HTMLBaseElement:p,HTMLBodyElement:p,HTMLBRElement:p,HTMLButtonElement:p,HTMLCanvasElement:p,HTMLCollection:p,HTMLContentElement:p,HTMLDataElement:p,HTMLDataListElement:p,HTMLDetailsElement:p,HTMLDialogElement:p,HTMLDirectoryElement:p,HTMLDivElement:p,HTMLDListElement:p,HTMLDocument:p,HTMLElement:p,HTMLEmbedElement:p,HTMLFieldSetElement:p,HTMLFontElement:p,HTMLFormControlsCollection:p,HTMLFormElement:p,HTMLFrameElement:p,HTMLFrameSetElement:p,HTMLHeadElement:p,HTMLHeadingElement:p,HTMLHRElement:p,HTMLHtmlElement:p,HTMLIFrameElement:p,HTMLImageElement:p,HTMLInputElement:p,HTMLLabelElement:p,HTMLLegendElement:p,HTMLLIElement:p,HTMLLinkElement:p,HTMLMapElement:p,HTMLMarqueeElement:p,HTMLMediaElement:p,HTMLMenuElement:p,HTMLMetaElement:p,HTMLMeterElement:p,HTMLModElement:p,HTMLObjectElement:p,HTMLOListElement:p,HTMLOptGroupElement:p,HTMLOptionElement:p,HTMLOptionsCollection:p,HTMLOutputElement:p,HTMLParagraphElement:p,HTMLParamElement:p,HTMLPictureElement:p,HTMLPreElement:p,HTMLProgressElement:p,HTMLQuoteElement:p,HTMLScriptElement:p,HTMLSelectElement:p,HTMLShadowElement:p,HTMLSlotElement:p,HTMLSourceElement:p,HTMLSpanElement:p,HTMLStyleElement:p,HTMLTableCaptionElement:p,HTMLTableCellElement:p,HTMLTableColElement:p,HTMLTableElement:p,HTMLTableRowElement:p,HTMLTableSectionElement:p,HTMLTemplateElement:p,HTMLTextAreaElement:p,HTMLTimeElement:p,HTMLTitleElement:p,HTMLTrackElement:p,HTMLUListElement:p,HTMLUnknownElement:p,HTMLVideoElement:p,IDBCursor:p,IDBCursorWithValue:p,IDBDatabase:p,IDBFactory:p,IDBIndex:p,IDBKeyRange:p,IDBObjectStore:p,IDBOpenDBRequest:p,IDBRequest:p,IDBTransaction:p,IDBVersionChangeEvent:p,IdleDeadline:p,IIRFilterNode:p,Image:p,ImageBitmap:p,ImageBitmapRenderingContext:p,ImageCapture:p,ImageData:p,indexedDB:W,innerHeight:W,innerWidth:W,InputEvent:p,IntersectionObserver:p,IntersectionObserverEntry:p,isSecureContext:W,KeyboardEvent:p,KeyframeEffect:p,length:W,localStorage:W,location:W,Location:p,locationbar:W,matchMedia:W,MediaDeviceInfo:p,MediaDevices:p,MediaElementAudioSourceNode:p,MediaEncryptedEvent:p,MediaError:p,MediaKeyMessageEvent:p,MediaKeySession:p,MediaKeyStatusMap:p,MediaKeySystemAccess:p,MediaList:p,MediaQueryList:p,MediaQueryListEvent:p,MediaRecorder:p,MediaSettingsRange:p,MediaSource:p,MediaStream:p,MediaStreamAudioDestinationNode:p,MediaStreamAudioSourceNode:p,MediaStreamEvent:p,MediaStreamTrack:p,MediaStreamTrackEvent:p,menubar:W,MessageChannel:p,MessageEvent:p,MessagePort:p,MIDIAccess:p,MIDIConnectionEvent:p,MIDIInput:p,MIDIInputMap:p,MIDIMessageEvent:p,MIDIOutput:p,MIDIOutputMap:p,MIDIPort:p,MimeType:p,MimeTypeArray:p,MouseEvent:p,moveBy:W,moveTo:W,MutationEvent:p,MutationObserver:p,MutationRecord:p,name:W,NamedNodeMap:p,NavigationPreloadManager:p,navigator:W,Navigator:p,NetworkInformation:p,Node:p,NodeFilter:W,NodeIterator:p,NodeList:p,Notification:p,OfflineAudioCompletionEvent:p,OfflineAudioContext:p,offscreenBuffering:W,OffscreenCanvas:p,open:W,openDatabase:W,Option:p,origin:W,OscillatorNode:p,outerHeight:W,outerWidth:W,PageTransitionEvent:p,pageXOffset:W,pageYOffset:W,PannerNode:p,parent:W,Path2D:p,PaymentAddress:p,PaymentRequest:p,PaymentRequestUpdateEvent:p,PaymentResponse:p,performance:W,Performance:p,PerformanceEntry:p,PerformanceLongTaskTiming:p,PerformanceMark:p,PerformanceMeasure:p,PerformanceNavigation:p,PerformanceNavigationTiming:p,PerformanceObserver:p,PerformanceObserverEntryList:p,PerformancePaintTiming:p,PerformanceResourceTiming:p,PerformanceTiming:p,PeriodicWave:p,Permissions:p,PermissionStatus:p,personalbar:W,PhotoCapabilities:p,Plugin:p,PluginArray:p,PointerEvent:p,PopStateEvent:p,postMessage:W,Presentation:p,PresentationAvailability:p,PresentationConnection:p,PresentationConnectionAvailableEvent:p,PresentationConnectionCloseEvent:p,PresentationConnectionList:p,PresentationReceiver:p,PresentationRequest:p,print:W,ProcessingInstruction:p,ProgressEvent:p,PromiseRejectionEvent:p,prompt:W,PushManager:p,PushSubscription:p,PushSubscriptionOptions:p,queueMicrotask:W,RadioNodeList:p,Range:p,ReadableStream:p,RemotePlayback:p,removeEventListener:W,Request:p,requestAnimationFrame:W,requestIdleCallback:W,resizeBy:W,ResizeObserver:p,ResizeObserverEntry:p,resizeTo:W,Response:p,RTCCertificate:p,RTCDataChannel:p,RTCDataChannelEvent:p,RTCDtlsTransport:p,RTCIceCandidate:p,RTCIceTransport:p,RTCPeerConnection:p,RTCPeerConnectionIceEvent:p,RTCRtpReceiver:p,RTCRtpSender:p,RTCSctpTransport:p,RTCSessionDescription:p,RTCStatsReport:p,RTCTrackEvent:p,screen:W,Screen:p,screenLeft:W,ScreenOrientation:p,screenTop:W,screenX:W,screenY:W,ScriptProcessorNode:p,scroll:W,scrollbars:W,scrollBy:W,scrollTo:W,scrollX:W,scrollY:W,SecurityPolicyViolationEvent:p,Selection:p,ServiceWorker:p,ServiceWorkerContainer:p,ServiceWorkerRegistration:p,sessionStorage:W,ShadowRoot:p,SharedWorker:p,SourceBuffer:p,SourceBufferList:p,speechSynthesis:W,SpeechSynthesisEvent:p,SpeechSynthesisUtterance:p,StaticRange:p,status:W,statusbar:W,StereoPannerNode:p,stop:W,Storage:p,StorageEvent:p,StorageManager:p,styleMedia:W,StyleSheet:p,StyleSheetList:p,SubtleCrypto:p,SVGAElement:p,SVGAngle:p,SVGAnimatedAngle:p,SVGAnimatedBoolean:p,SVGAnimatedEnumeration:p,SVGAnimatedInteger:p,SVGAnimatedLength:p,SVGAnimatedLengthList:p,SVGAnimatedNumber:p,SVGAnimatedNumberList:p,SVGAnimatedPreserveAspectRatio:p,SVGAnimatedRect:p,SVGAnimatedString:p,SVGAnimatedTransformList:p,SVGAnimateElement:p,SVGAnimateMotionElement:p,SVGAnimateTransformElement:p,SVGAnimationElement:p,SVGCircleElement:p,SVGClipPathElement:p,SVGComponentTransferFunctionElement:p,SVGDefsElement:p,SVGDescElement:p,SVGDiscardElement:p,SVGElement:p,SVGEllipseElement:p,SVGFEBlendElement:p,SVGFEColorMatrixElement:p,SVGFEComponentTransferElement:p,SVGFECompositeElement:p,SVGFEConvolveMatrixElement:p,SVGFEDiffuseLightingElement:p,SVGFEDisplacementMapElement:p,SVGFEDistantLightElement:p,SVGFEDropShadowElement:p,SVGFEFloodElement:p,SVGFEFuncAElement:p,SVGFEFuncBElement:p,SVGFEFuncGElement:p,SVGFEFuncRElement:p,SVGFEGaussianBlurElement:p,SVGFEImageElement:p,SVGFEMergeElement:p,SVGFEMergeNodeElement:p,SVGFEMorphologyElement:p,SVGFEOffsetElement:p,SVGFEPointLightElement:p,SVGFESpecularLightingElement:p,SVGFESpotLightElement:p,SVGFETileElement:p,SVGFETurbulenceElement:p,SVGFilterElement:p,SVGForeignObjectElement:p,SVGGElement:p,SVGGeometryElement:p,SVGGradientElement:p,SVGGraphicsElement:p,SVGImageElement:p,SVGLength:p,SVGLengthList:p,SVGLinearGradientElement:p,SVGLineElement:p,SVGMarkerElement:p,SVGMaskElement:p,SVGMatrix:p,SVGMetadataElement:p,SVGMPathElement:p,SVGNumber:p,SVGNumberList:p,SVGPathElement:p,SVGPatternElement:p,SVGPoint:p,SVGPointList:p,SVGPolygonElement:p,SVGPolylineElement:p,SVGPreserveAspectRatio:p,SVGRadialGradientElement:p,SVGRect:p,SVGRectElement:p,SVGScriptElement:p,SVGSetElement:p,SVGStopElement:p,SVGStringList:p,SVGStyleElement:p,SVGSVGElement:p,SVGSwitchElement:p,SVGSymbolElement:p,SVGTextContentElement:p,SVGTextElement:p,SVGTextPathElement:p,SVGTextPositioningElement:p,SVGTitleElement:p,SVGTransform:p,SVGTransformList:p,SVGTSpanElement:p,SVGUnitTypes:p,SVGUseElement:p,SVGViewElement:p,TaskAttributionTiming:p,Text:p,TextEvent:p,TextMetrics:p,TextTrack:p,TextTrackCue:p,TextTrackCueList:p,TextTrackList:p,TimeRanges:p,toolbar:W,top:W,Touch:p,TouchEvent:p,TouchList:p,TrackEvent:p,TransitionEvent:p,TreeWalker:p,UIEvent:p,ValidityState:p,visualViewport:W,VisualViewport:p,VTTCue:p,WaveShaperNode:p,WebAssembly:W,WebGL2RenderingContext:p,WebGLActiveInfo:p,WebGLBuffer:p,WebGLContextEvent:p,WebGLFramebuffer:p,WebGLProgram:p,WebGLQuery:p,WebGLRenderbuffer:p,WebGLRenderingContext:p,WebGLSampler:p,WebGLShader:p,WebGLShaderPrecisionFormat:p,WebGLSync:p,WebGLTexture:p,WebGLTransformFeedback:p,WebGLUniformLocation:p,WebGLVertexArrayObject:p,WebSocket:p,WheelEvent:p,Window:p,Worker:p,WritableStream:p,XMLDocument:p,XMLHttpRequest:p,XMLHttpRequestEventTarget:p,XMLHttpRequestUpload:p,XMLSerializer:p,XPathEvaluator:p,XPathExpression:p,XPathResult:p,XSLTProcessor:p};for(const t of["window","global","self","globalThis"])Ia[t]=Ia;function Is(t){let e=Ia;for(const n of t)if(typeof n!="string"||(e=e[n],!e))return null;return e[Ke]}class va extends zn{constructor(e){super(e),this.markReassigned()}deoptimizeArgumentsOnInteractionAtPath(e,n,s){switch(e.type){case 0:case 1:return void(Is([this.name,...n].slice(0,-1))||super.deoptimizeArgumentsOnInteractionAtPath(e,n,s));case 2:{const i=Is([this.name,...n]);return void(i?i.deoptimizeArgumentsOnCall(e):super.deoptimizeArgumentsOnInteractionAtPath(e,n,s))}}}getLiteralValueAtPath(e,n,s){const i=Is([this.name,...e]);return i?i.getLiteralValue():Ce}hasEffectsOnInteractionAtPath(e,n,s){switch(n.type){case 0:return e.length===0?this.name!=="undefined"&&!Is([this.name]):!Is([this.name,...e].slice(0,-1));case 1:return!0;case 2:{const i=Is([this.name,...e]);return!i||i.hasEffectsWhenCalled(n,s)}}}}const Bh=(t,e)=>{const{length:n}=t,{length:s}=e;return n===0?e:s===0?t:n+s>6?[...t,...e.slice(0,5-t.length),"UnknownKey"]:[...t,...e]};class Dt extends zn{constructor(e,n,s,i,r,a){super(e),this.init=s,this.initPath=i,this.kind=a,this.calledFromTryStatement=!1,this.additionalInitializers=null,this.includedPathTracker=new Am,this.expressionsToBeDeoptimized=[],this.declarations=n?[n]:[],this.deoptimizationTracker=r.deoptimizationTracker,this.module=r.module}addDeclaration(e,n){this.declarations.push(e),this.markInitializersForDeoptimization().push(n)}consolidateInitializers(){if(this.additionalInitializers)for(const e of this.additionalInitializers)e.deoptimizePath(le)}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.isReassigned||n.length+this.initPath.length>6?En(e):s.withTrackedEntityAtPath(n,this.init,()=>{this.init.deoptimizeArgumentsOnInteractionAtPath(e,[...this.initPath,...n],s)},void 0)}deoptimizePath(e){if(!this.isReassigned&&!this.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(e,this))if(e.length===0){this.markReassigned();const n=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=Qe;for(const s of n)s.deoptimizeCache();this.init.deoptimizePath([...this.initPath,_e])}else this.init.deoptimizePath(Bh(this.initPath,e))}getLiteralValueAtPath(e,n,s){return this.isReassigned||e.length+this.initPath.length>6?Ce:n.withTrackedEntityAtPath(e,this.init,()=>(this.expressionsToBeDeoptimized.push(s),this.init.getLiteralValueAtPath([...this.initPath,...e],n,s)),Ce)}getReturnExpressionWhenCalledAtPath(e,n,s,i){return this.isReassigned||e.length+this.initPath.length>6?rt:s.withTrackedEntityAtPath(e,this.init,()=>(this.expressionsToBeDeoptimized.push(i),this.init.getReturnExpressionWhenCalledAtPath([...this.initPath,...e],n,s,i)),rt)}hasEffectsOnInteractionAtPath(e,n,s){if(e.length+this.initPath.length>6)return!0;switch(n.type){case 0:return!!this.isReassigned||!s.accessed.trackEntityAtPathAndGetIfTracked(e,this)&&this.init.hasEffectsOnInteractionAtPath([...this.initPath,...e],n,s);case 1:return!!this.included||e.length!==0&&(!!this.isReassigned||!s.assigned.trackEntityAtPathAndGetIfTracked(e,this)&&this.init.hasEffectsOnInteractionAtPath([...this.initPath,...e],n,s));case 2:return!!this.isReassigned||!(n.withNew?s.instantiated:s.called).trackEntityAtPathAndGetIfTracked(e,n.args,this)&&this.init.hasEffectsOnInteractionAtPath([...this.initPath,...e],n,s)}}includePath(e,n){if(!this.includedPathTracker.includePathAndGetIfIncluded(e)){this.module.scope.context.requestTreeshakingPass(),this.included||this.module.scope.context.newlyIncludedVariableInits.add(this.init),super.includePath(e,n);for(const s of this.declarations){s.included||s.include(n,!1);let i=s.parent;for(;!i.included&&(i.includeNode(n),i.type!==rr);)i=i.parent;this.kind==="parameter"&&(Um(s.parent)||qm(s.parent))&&Hm(s.parent.parent)&&Gm(s.parent.parent.callee)&&Wm(s.parent.parent.callee.property)&&s.parent.parent.callee.property.name==="then"&&fa(s.parent.parent.callee.object)&&s.parent.parent.callee.object.includePath(e)}e.length>0&&(this.init.includePath(Bh(this.initPath,e),n),this.additionalInitializers?.forEach(s=>s.includePath(le,n)))}}includeCallArguments(e,n){this.isReassigned||n.includedCallArguments.has(this.init)||this.initPath.length>0?na(e,n):(n.includedCallArguments.add(this.init),this.init.includeCallArguments(e,n),n.includedCallArguments.delete(this.init))}markCalledFromTryStatement(){this.calledFromTryStatement=!0}markInitializersForDeoptimization(){return this.additionalInitializers===null&&(this.additionalInitializers=[this.init],this.init=Pe,this.markReassigned()),this.additionalInitializers}}const eg=new Set(["class","const","let","var","using","await using"]);class jh extends te{constructor(){super(...arguments),this.variable=null,this.isVariableReference=!1}get isTDZAccess(){return Le(this.flags,4)?Le(this.flags,8):null}set isTDZAccess(e){this.flags=Me(this.flags,4,!0),this.flags=Me(this.flags,8,e)}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.variable.deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizePath(e){e.length!==0||this.scope.contains(this.name)||this.disallowImportReassignment(),this.variable?.deoptimizePath(e)}getLiteralValueAtPath(e,n,s){return this.getVariableRespectingTDZ().getLiteralValueAtPath(e,n,s)}getReturnExpressionWhenCalledAtPath(e,n,s,i){const[r,a]=this.getVariableRespectingTDZ().getReturnExpressionWhenCalledAtPath(e,n,s,i);return[r,a||this.isPureFunction(e)]}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),!(!this.isPossibleTDZ()||this.variable.kind==="var")||this.scope.context.options.treeshake.unknownGlobalSideEffects&&this.variable instanceof va&&!this.isPureFunction(ue)&&this.variable.hasEffectsOnInteractionAtPath(ue,An,e)}hasEffectsOnInteractionAtPath(e,n,s){switch(n.type){case 0:return this.variable!==null&&!this.isPureFunction(e)&&this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(e,n,s);case 1:return(e.length>0?this.getVariableRespectingTDZ():this.variable).hasEffectsOnInteractionAtPath(e,n,s);case 2:return!this.isPureFunction(e)&&this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(e,n,s)}}include(e,n){this.included||this.includeNode(e),n&&this.variable?.includePath(le,e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.variable!==null&&this.scope.context.includeVariableInModule(this.variable,ue,e)}includePath(e,n){this.included?e.length>0&&this.variable?.includePath(e,n):(this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.variable!==null&&this.scope.context.includeVariableInModule(this.variable,e,n))}includeCallArguments(e,n){this.variable.includeCallArguments(e,n)}isPossibleTDZ(){const e=this.isTDZAccess;if(e!==null)return e;if(!(this.variable instanceof Dt&&this.variable.kind&&eg.has(this.variable.kind)&&this.variable.module.hasTreeShakingPassStarted))return this.isTDZAccess=!1;let n;return this.variable.declarations&&this.variable.declarations.length===1&&(n=this.variable.declarations[0])&&this.start<n.start&&zh(this)===zh(n)?this.isTDZAccess=!0:this.variable.initReached?this.isTDZAccess=!1:this.isTDZAccess=!0}applyDeoptimizations(){this.deoptimized=!0,this.variable instanceof Dt&&(this.variable.module.isExecuted||Es(this.variable.module),this.variable.consolidateInitializers(),this.scope.context.requestTreeshakingPass()),this.isVariableReference&&(this.variable.addUsedPlace(this),this.scope.context.requestTreeshakingPass())}disallowImportReassignment(){return this.scope.context.error(mh(this.name,this.scope.context.module.id),this.start)}getVariableRespectingTDZ(){return this.isPossibleTDZ()?Pe:this.variable}isPureFunction(e){let n=this.scope.context.manualPureFunctions[this.name];for(const s of e){if(!n)return!1;if(n[pa])return!0;n=n[s]}return n?.[pa]}}function zh(t){for(;t&&!/^Program|Function/.test(t.type);)t=t.parent;return t}class Vh extends Pt{constructor(e,n){super(),this.object=e,this.path=n}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.object.deoptimizeArgumentsOnInteractionAtPath(e,[...this.path,...n],s)}deoptimizePath(e){this.object.deoptimizePath([...this.path,...e])}getLiteralValueAtPath(e,n,s){return this.object.getLiteralValueAtPath([...this.path,...e],n,s)}getReturnExpressionWhenCalledAtPath(e,n,s,i){return this.object.getReturnExpressionWhenCalledAtPath([...this.path,...e],n,s,i)}hasEffectsOnInteractionAtPath(e,n,s){return this.object.hasEffectsOnInteractionAtPath([...this.path,...e],n,s)}}class Fe extends jh{constructor(){super(...arguments),this.variable=null}get isDestructuringDeoptimized(){return Le(this.flags,16777216)}set isDestructuringDeoptimized(e){this.flags=Me(this.flags,16777216,e)}addExportedVariables(e,n){n.has(this.variable)&&e.push(this.variable)}bind(){!this.variable&&qu(this,this.parent)&&(this.variable=this.scope.findVariable(this.name),this.variable.addReference(this),this.isVariableReference=!0)}declare(e,n,s){let i;const{treeshake:r}=this.scope.context.options;return e==="parameter"?i=this.scope.addParameterDeclaration(this,n):(i=this.scope.addDeclaration(this,this.scope.context,s,n,e),e==="var"&&r&&r.correctVarValueBeforeDeclaration&&i.markInitializersForDeoptimization()),[this.variable=i]}deoptimizeAssignment(e,n){this.deoptimizePath(ue),n.deoptimizePath([...e,_e])}hasEffectsWhenDestructuring(e,n,s){return n.length>0&&s.hasEffectsOnInteractionAtPath(n,An,e)}includeDestructuredIfNecessary(e,n,s){n.length>0&&!this.isDestructuringDeoptimized&&(this.isDestructuringDeoptimized=!0,s.deoptimizeArgumentsOnInteractionAtPath({args:[new Vh(s,n.slice(0,-1))],type:0},n,Ge));const{propertyReadSideEffects:i}=this.scope.context.options.treeshake;return!!(this.included||=n.length>0&&!e.brokenFlow&&i&&(i==="always"||s.hasEffectsOnInteractionAtPath(n,An,Mn())))&&(this.variable&&!this.variable.included&&this.scope.context.includeVariableInModule(this.variable,ue,e),s.includePath(n,e),!0)}markDeclarationReached(){this.variable.initReached=!0}render(e,{snippets:{getPropertyAccess:n},useOriginalName:s},{renderedParentType:i,isCalleeOfRenderedParent:r,isShorthandProperty:a}=pt){if(this.variable){const l=this.variable.getName(n,s);l!==this.name&&(e.overwrite(this.start,this.end,l,{contentOnly:!0,storeName:!0}),a&&e.prependRight(this.start,`${this.name}: `)),l==="eval"&&i===Js&&r&&e.appendRight(this.start,"0, ")}}}function Er(t){let e="";do{const n=t%64;t=t/64|0,e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$"[n]+e}while(t!==0);return e}function Jt(t,e,n){let s=t,i=1;for(;e.has(s)||pr.has(s)||n?.has(s);)s=`${t}$${Er(i++)}`;return e.add(s),s}class Uh{constructor(){this.children=[],this.variables=new Map}addDeclaration(e,n,s,i,r){const a=e.name,l=this.hoistedVariables?.get(a)||this.variables.get(a);if(l){if(r==="var"&&l.kind==="var")return l.addDeclaration(e,s),l;n.error(xs(a),e.start)}const c=new Dt(e.name,e,s,i,n,r);return this.variables.set(a,c),c}addHoistedVariable(e,n){(this.hoistedVariables||=new Map).set(e,n)}contains(e){return this.variables.has(e)}findVariable(e){throw new Error("Internal Error: findVariable needs to be implemented by a subclass")}}class St extends Uh{constructor(e,n){super(),this.parent=e,this.context=n,this.accessedOutsideVariables=new Map,e.children.push(this)}addAccessedDynamicImport(e){(this.accessedDynamicImports||(this.accessedDynamicImports=new Set)).add(e),this.parent instanceof St&&this.parent.addAccessedDynamicImport(e)}addAccessedGlobals(e,n){const s=n.get(this)||new Set;for(const i of e)s.add(i);n.set(this,s),this.parent instanceof St&&this.parent.addAccessedGlobals(e,n)}addNamespaceMemberAccess(e,n){this.accessedOutsideVariables.set(e,n),this.parent.addNamespaceMemberAccess(e,n)}addReturnExpression(e){this.parent instanceof St&&this.parent.addReturnExpression(e)}addUsedOutsideNames(e,n,s,i){for(const a of this.accessedOutsideVariables.values())a.included&&(e.add(a.getBaseVariableName()),n==="system"&&s.has(a)&&e.add("exports"));const r=i.get(this);if(r)for(const a of r)e.add(a)}contains(e){return this.variables.has(e)||this.parent.contains(e)}deconflict(e,n,s){const i=new Set;if(this.addUsedOutsideNames(i,e,n,s),this.accessedDynamicImports)for(const r of this.accessedDynamicImports)r.inlineNamespace&&i.add(r.inlineNamespace.getBaseVariableName());for(const[r,a]of this.variables)(a.included||a.alwaysRendered)&&a.setRenderNames(null,Jt(r,i,a.forbiddenNames));for(const r of this.children)r.deconflict(e,n,s)}findLexicalBoundary(){return this.parent.findLexicalBoundary()}findGlobal(e){const n=this.parent.findVariable(e);return this.accessedOutsideVariables.set(e,n),n}findVariable(e){const n=this.variables.get(e)||this.accessedOutsideVariables.get(e);if(n)return n;const s=this.parent.findVariable(e);return this.accessedOutsideVariables.set(e,s),s}}function _a(t,e){for(const n of t)if(n.hasEffects(e))return!0;return!1}class Ar extends te{constructor(){super(...arguments),this.accessedValue=null}get computed(){return Le(this.flags,1024)}set computed(e){this.flags=Me(this.flags,1024,e)}deoptimizeArgumentsOnInteractionAtPath(e,n,s){return e.type===0&&this.kind==="get"&&n.length===0||e.type===1&&this.kind==="set"&&n.length===0?this.value.deoptimizeArgumentsOnInteractionAtPath({args:e.args,type:2,withNew:!1},ue,s):void this.getAccessedValue()[0].deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizeCache(){}deoptimizePath(e){this.getAccessedValue()[0].deoptimizePath(e)}getLiteralValueAtPath(e,n,s){return this.getAccessedValue()[0].getLiteralValueAtPath(e,n,s)}getReturnExpressionWhenCalledAtPath(e,n,s,i){return this.getAccessedValue()[0].getReturnExpressionWhenCalledAtPath(e,n,s,i)}hasEffects(e){return this.key.hasEffects(e)}hasEffectsOnInteractionAtPath(e,n,s){return this.kind==="get"&&n.type===0&&e.length===0||this.kind==="set"&&n.type===1?this.value.hasEffectsOnInteractionAtPath(ue,{args:n.args,type:2,withNew:!1},s):this.getAccessedValue()[0].hasEffectsOnInteractionAtPath(e,n,s)}getAccessedValue(){return this.accessedValue===null?this.kind==="get"?(this.accessedValue=rt,this.accessedValue=this.value.getReturnExpressionWhenCalledAtPath(ue,Ks,Ge,this)):this.accessedValue=[this.value,!1]:this.accessedValue}}Ar.prototype.includeNode=ze,Ar.prototype.applyDeoptimizations=Te;class wr extends Ar{hasEffects(e){return super.hasEffects(e)||_a(this.decorators,e)}}class Gn extends St{constructor(e){super(e,e.context)}addDeclaration(e,n,s,i,r){if(r==="var"){const a=e.name,l=this.hoistedVariables?.get(a)||this.variables.get(a);if(l)return l.kind==="var"||r==="var"&&l.kind==="parameter"?(l.addDeclaration(e,s),l):n.error(xs(a),e.start);const c=this.parent.addDeclaration(e,n,s,i,r);return c.markInitializersForDeoptimization(),this.addHoistedVariable(a,c),c}return super.addDeclaration(e,n,s,i,r)}}class Sr extends te{createScope(e){this.scope=new Gn(e)}hasEffects(e){for(const n of this.body)if(n.hasEffects(e))return!0;return!1}include(e,n){this.included=!0;for(const s of this.body)(n||s.shouldBeIncluded(e))&&s.include(e,n)}render(e,n){if(this.body.length>0){const s=ht(e.original.slice(this.start,this.end),"{")+1;Xs(this.body,e,this.start+s,this.end-1,n)}else super.render(e,n)}}function qh(t){return t.type==="StaticBlock"}Sr.prototype.includeNode=ze,Sr.prototype.applyDeoptimizations=Te;class Pa extends te{constructor(){super(...arguments),this.objectEntity=null}createScope(e){this.scope=new St(e,e.context)}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizeCache(){this.getObjectEntity().deoptimizeAllProperties()}deoptimizePath(e){this.getObjectEntity().deoptimizePath(e)}getLiteralValueAtPath(e,n,s){return this.getObjectEntity().getLiteralValueAtPath(e,n,s)}getReturnExpressionWhenCalledAtPath(e,n,s,i){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(e,n,s,i)}hasEffects(e){this.deoptimized||this.applyDeoptimizations();const n=this.superClass?.hasEffects(e)||this.body.hasEffects(e);return this.id?.markDeclarationReached(),n||super.hasEffects(e)||_a(this.decorators,e)}hasEffectsOnInteractionAtPath(e,n,s){return n.type===2&&e.length===0?!n.withNew||(this.classConstructor===null?this.superClass?.hasEffectsOnInteractionAtPath(e,n,s):this.classConstructor.hasEffectsOnInteractionAtPath(e,n,s))||!1:this.getObjectEntity().hasEffectsOnInteractionAtPath(e,n,s)}include(e,n){this.included||this.includeNode(e),this.superClass?.include(e,n),this.body.include(e,n);for(const s of this.decorators)s.include(e,n);this.id&&(this.id.markDeclarationReached(),this.id.include(e,n))}initialise(){super.initialise(),this.id?.declare("class",ue,this);for(const e of this.body.body)if(e instanceof wr&&e.kind==="constructor")return void(this.classConstructor=e);this.classConstructor=null}applyDeoptimizations(){this.deoptimized=!0;for(const e of this.body.body)qh(e)||e.static||e instanceof wr&&e.kind==="constructor"||e.deoptimizePath(le);this.scope.context.requestTreeshakingPass()}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;const e=[],n=[];for(const s of this.body.body){if(qh(s))continue;const i=s.static?e:n,r=s.kind;if(i===n&&!r)continue;const a=r==="set"||r==="get"?r:"init";let l;if(s.computed){const c=s.key.getLiteralValueAtPath(ue,Ge,this);if(typeof c=="symbol"){i.push({key:_e,kind:a,property:s});continue}l=String(c)}else l=s.key instanceof Fe?s.key.name:String(s.key.value);i.push({key:l,kind:a,property:s})}return e.unshift({key:"prototype",kind:"init",property:new $t(n,this.superClass?new Vh(this.superClass,["prototype"]):Sn)}),this.objectEntity=new $t(e,this.superClass||Sn)}}Pa.prototype.includeNode=dt;class vs extends Pa{initialise(){super.initialise(),this.id!==null&&(this.id.variable.isId=!0)}parseNode(e){return e.id!==null&&(this.id=new Fe(this,this.scope.parent).parseNode(e.id)),super.parseNode(e)}render(e,n){const{exportNamesByVariable:s,format:i,snippets:{_:r,getPropertyAccess:a}}=n;if(this.id){const{variable:l,name:c}=this.id;i==="system"&&s.has(l)&&e.appendLeft(this.end,`${r}${On([l],n)};`);const u=l.getName(a);if(u!==c)return this.decorators.map(d=>d.render(e,n)),this.superClass?.render(e,n),this.body.render(e,{...n,useOriginalName:d=>d===l}),e.prependRight(this.start,`let ${u}${r}=${r}`),void e.prependLeft(this.end,";")}super.render(e,n)}applyDeoptimizations(){super.applyDeoptimizations();const{id:e,scope:n}=this;if(e){const{name:s,variable:i}=e;for(const r of n.accessedOutsideVariables.values())r!==i&&r.forbidName(s)}}}class tg extends Dt{constructor(e){super("arguments",null,Pe,ue,e,"other")}addArgumentToBeDeoptimized(e){}addReference(){this.deoptimizedArguments=[],this.addArgumentToBeDeoptimized=ng}hasEffectsOnInteractionAtPath(e,{type:n}){return n!==0||e.length>1}includePath(e,n){super.includePath(e,n);for(const s of this.deoptimizedArguments)s.deoptimizePath(le);this.deoptimizedArguments.length=0}}function ng(t){this.included?t.deoptimizePath(le):this.deoptimizedArguments?.push(t)}const Hh=Qe,sg=new Set([_e]),ig=new gs,rg=new Set([Pe]);class Gh extends Dt{constructor(e,n,s,i){super(e,n,Pe,s,i,"parameter"),this.includedPathTracker=new Sm,this.argumentsToBeDeoptimized=new Set,this.deoptimizationInteractions=[],this.deoptimizations=new gs,this.deoptimizedFields=new Set,this.expressionsDependingOnKnownValue=[],this.knownValue=null,this.knownValueLiteral=Ce}addArgumentForDeoptimization(e){if(this.updateKnownValue(e),e===Pe){if(!this.argumentsToBeDeoptimized.has(Pe)){this.argumentsToBeDeoptimized.add(Pe);for(const{interaction:n}of this.deoptimizationInteractions)En(n);this.deoptimizationInteractions=Hh}}else if(this.deoptimizedFields.has(_e))e.deoptimizePath([...this.initPath,_e]);else if(!this.argumentsToBeDeoptimized.has(e)){this.argumentsToBeDeoptimized.add(e);for(const n of this.deoptimizedFields)e.deoptimizePath([...this.initPath,n]);for(const{interaction:n,path:s}of this.deoptimizationInteractions)e.deoptimizeArgumentsOnInteractionAtPath(n,[...this.initPath,...s],Ge)}}markReassigned(){if(!this.isReassigned){super.markReassigned();for(const e of this.expressionsDependingOnKnownValue)e.deoptimizeCache();this.expressionsDependingOnKnownValue=Qe}}deoptimizeCache(){this.markReassigned()}updateKnownValue(e){if(this.isReassigned)return;if(this.knownValue===null)return this.knownValue=e,void(this.knownValueLiteral=e.getLiteralValueAtPath(this.initPath,Ge,this));if(this.knownValue===e||this.knownValue instanceof Fe&&e instanceof Fe&&this.knownValue.variable===e.variable)return;const{knownValueLiteral:n}=this;typeof n!="symbol"&&e.getLiteralValueAtPath(this.initPath,Ge,this)===n||this.markReassigned()}getKnownValue(){return this.knownValue||Pe}getLiteralValueAtPath(e,n,s){if(this.isReassigned||e.length+this.initPath.length>6)return Ce;const i=this.getKnownValue();return this.expressionsDependingOnKnownValue.push(s),n.withTrackedEntityAtPath(e,i,()=>i.getLiteralValueAtPath([...this.initPath,...e],n,s),Ce)}hasEffectsOnInteractionAtPath(e,n,s){const{type:i}=n;return this.isReassigned||i===1||e.length+this.initPath.length>6?super.hasEffectsOnInteractionAtPath(e,n,s):!(i===2?(n.withNew?s.instantiated:s.called).trackEntityAtPathAndGetIfTracked(e,n.args,this):s.accessed.trackEntityAtPathAndGetIfTracked(e,this))&&this.getKnownValue().hasEffectsOnInteractionAtPath([...this.initPath,...e],n,s)}deoptimizeArgumentsOnInteractionAtPath(e,n){if(n.length>=2||this.argumentsToBeDeoptimized.has(Pe)||this.deoptimizationInteractions.length>=20||n.length===1&&(this.deoptimizedFields.has(_e)||e.type===2&&this.deoptimizedFields.has(n[0]))||this.initPath.length+n.length>6)En(e);else if(!this.deoptimizations.trackEntityAtPathAndGetIfTracked(n,e.args)){for(const s of this.argumentsToBeDeoptimized)s.deoptimizeArgumentsOnInteractionAtPath(e,[...this.initPath,...n],Ge);this.argumentsToBeDeoptimized.has(Pe)||this.deoptimizationInteractions.push({interaction:e,path:n})}}deoptimizePath(e){if(e.length===0)return void this.markReassigned();if(this.deoptimizedFields.has(_e))return;const n=e[0];if(!this.deoptimizedFields.has(n)){this.deoptimizedFields.add(n);for(const s of this.argumentsToBeDeoptimized)s.deoptimizePath([...this.initPath,n]);n===_e&&(this.deoptimizationInteractions=Hh,this.deoptimizations=ig,this.deoptimizedFields=sg,this.argumentsToBeDeoptimized=rg)}}getReturnExpressionWhenCalledAtPath(e){return e.length===0?this.deoptimizePath(le):this.deoptimizedFields.has(e[0])||this.deoptimizePath([e[0]]),rt}includeArgumentPaths(e,n){this.includedPathTracker.includeAllPaths(e,n,this.initPath)}}class Wh extends Gh{constructor(e){super("this",null,ue,e)}hasEffectsOnInteractionAtPath(e,n,s){return(s.replacedVariableInits.get(this)||Pe).hasEffectsOnInteractionAtPath(e,n,s)}}class og extends St{constructor(e){super(e,e.context),this.parent=e}addDeclaration(e,n,s,i,r){if(r==="var"){const a=e.name,l=this.hoistedVariables?.get(a)||this.variables.get(a);if(l){const u=l.kind;if(u==="parameter"&&l.declarations[0].parent.type==="CatchClause"){const d=this.parent.parent.addDeclaration(e,n,un,i,r);return l.renderLikeHoisted(d),this.addHoistedVariable(a,d),d}return u==="var"?(l.addDeclaration(e,s),l):n.error(xs(a),e.start)}const c=this.parent.parent.addDeclaration(e,n,s,i,r);return c.markInitializersForDeoptimization(),this.addHoistedVariable(a,c),c}return super.addDeclaration(e,n,s,i,r)}}class ag extends St{constructor(e){super(e,e.context)}addDeclaration(e,n,s,i,r){const a=e.name,l=this.hoistedVariables?.get(a)||this.variables.get(a);if(l){const u=l.kind;if(!(r!=="var"&&r!=="function"||u!=="var"&&u!=="function"&&u!=="parameter"))return l.addDeclaration(e,s),l;n.error(xs(a),e.start)}const c=new Dt(e.name,e,s,i,n,r);return this.variables.set(a,c),c}}class Xh extends St{constructor(e,n){super(e,e.context),this.hasRest=!1,this.parameters=[],this.bodyScope=n?new og(this):new ag(this)}addParameterDeclaration(e,n){const{name:s,start:i}=e;if(this.variables.get(s))return this.context.error(function(a){return{code:"DUPLICATE_ARGUMENT_NAME",message:`Duplicate argument name "${a}"`}}(s),i);const r=new Gh(s,e,n,this.context);return this.variables.set(s,r),this.bodyScope.addHoistedVariable(s,r),r}addParameterVariables(e,n){this.parameters=e;for(const s of e)for(const i of s)i.alwaysRendered=!0;this.hasRest=n}includeCallArguments({args:e},n){let s=!1,i=!1;const r=this.hasRest&&this.parameters[this.parameters.length-1];let a=e.length-1;for(let l=1;l<e.length;l++){const c=e[l];c instanceof qn&&!i&&(i=!0,a=l-1),i&&(c.includePath(le,n),c.include(n,!1))}for(let l=a;l>=1;l--){const c=this.parameters[l-1]||r,u=e[l];if(c)if(s=!1,c.length===0)i=!0;else for(const d of c)d.calledFromTryStatement&&(s=!0),d.included&&(i=!0,s?u.include(n,!0):(d.includeArgumentPaths(u,n),u.include(n,!1)));(i||u.shouldBeIncluded(n))&&(i=!0,u.include(n,s))}}}class Kh extends Xh{constructor(){super(...arguments),this.returnExpression=null,this.returnExpressions=[]}addReturnExpression(e){this.returnExpressions.push(e)}deoptimizeArgumentsOnCall({args:e}){const{parameters:n}=this;let s=0;for(;s<e.length-1;s++){const r=e[s+1];if(r instanceof qn){for(;s<n.length;s++){e[s+1]?.deoptimizePath(le);for(const a of n[s])a.markReassigned()}break}if(this.hasRest&&s>=n.length-1)r.deoptimizePath(le);else{const a=n[s];if(a)for(const l of a)l.addArgumentForDeoptimization(r);this.addArgumentToBeDeoptimized(r)}}const i=this.hasRest?n.length-1:n.length;for(;s<i;s++)for(const r of n[s])r.addArgumentForDeoptimization(un)}getReturnExpression(){return this.returnExpression===null&&this.updateReturnExpression(),this.returnExpression}deoptimizeAllParameters(){for(const e of this.parameters)for(const n of e)n.deoptimizePath(le),n.markReassigned()}reassignAllParameters(){for(const e of this.parameters)for(const n of e)n.markReassigned()}addArgumentToBeDeoptimized(e){}updateReturnExpression(){if(this.returnExpressions.length===1)this.returnExpression=this.returnExpressions[0];else{this.returnExpression=Pe;for(const e of this.returnExpressions)e.deoptimizePath(le)}}}class Jh extends Kh{constructor(e,n){super(e,!1),this.functionNode=n;const{context:s}=e;this.variables.set("arguments",this.argumentsVariable=new tg(s)),this.variables.set("this",this.thisVariable=new Wh(s))}findLexicalBoundary(){return this}includeCallArguments(e,n){if(super.includeCallArguments(e,n),this.argumentsVariable.included){const{args:s}=e;for(let i=1;i<s.length;i++){const r=s[i];r&&(r.includePath(le,n),r.include(n,!1))}}}addArgumentToBeDeoptimized(e){this.argumentsVariable.addArgumentToBeDeoptimized(e)}}class Bt extends te{initialise(){var e,n;super.initialise(),this.directive&&this.directive!=="use strict"&&this.parent.type===rr&&this.scope.context.log(Ee,(e=this.directive,{code:"MODULE_LEVEL_DIRECTIVE",id:n=this.scope.context.module.id,message:`Module level directives cause errors when bundled, "${e}" in "${Ae(n)}" was ignored.`}),this.start)}removeAnnotations(e){this.expression.removeAnnotations(e)}render(e,n){super.render(e,n),e.original[this.end-1]!==";"&&e.appendLeft(this.end,";")}shouldBeIncluded(e){return this.directive&&this.directive!=="use strict"?this.parent.type!==rr:super.shouldBeIncluded(e)}}Bt.prototype.includeNode=ze,Bt.prototype.applyDeoptimizations=Te;class Wn extends te{get deoptimizeBody(){return Le(this.flags,32768)}set deoptimizeBody(e){this.flags=Me(this.flags,32768,e)}get directlyIncluded(){return Le(this.flags,16384)}set directlyIncluded(e){this.flags=Me(this.flags,16384,e)}addImplicitReturnExpressionToScope(){const e=this.body[this.body.length-1];e&&e.type==="ReturnStatement"||this.scope.addReturnExpression(Pe)}createScope(e){this.scope=this.parent.preventChildBlockScope?e:new Gn(e)}hasEffects(e){if(this.deoptimizeBody)return!0;for(const n of this.body){if(e.brokenFlow)break;if(n.hasEffects(e))return!0}return!1}include(e,n){if(!this.deoptimizeBody||!this.directlyIncluded){this.included=!0,this.directlyIncluded=!0,this.deoptimizeBody&&(n=!0);for(const s of this.body)(n||s.shouldBeIncluded(e))&&s.include(e,n)}}initialise(){super.initialise(),this.scope.context.magicString.addSourcemapLocation(this.end-1);const e=this.body[0];this.deoptimizeBody=e instanceof Bt&&e.directive==="use asm"}render(e,n){this.body.length>0?Xs(this.body,e,this.start+1,this.end-1,n):super.render(e,n)}}Wn.prototype.includeNode=ze,Wn.prototype.applyDeoptimizations=Te;class Xn extends te{constructor(){super(...arguments),this.declarationInit=null}addExportedVariables(e,n){this.argument.addExportedVariables(e,n)}declare(e,n,s){return this.declarationInit=s,this.argument.declare(e,Ir(n),s)}deoptimizeAssignment(e,n){this.argument.deoptimizeAssignment(Ir(e),n)}deoptimizePath(e){e.length===0&&this.argument.deoptimizePath(ue)}hasEffectsOnInteractionAtPath(e,n,s){return e.length>0||this.argument.hasEffectsOnInteractionAtPath(ue,n,s)}hasEffectsWhenDestructuring(e,n,s){return this.argument.hasEffectsWhenDestructuring(e,Ir(n),s)}includeDestructuredIfNecessary(e,n,s){return this.included=this.argument.includeDestructuredIfNecessary(e,Ir(n),s)||this.included}include(e,n){this.included||this.includeNode(e),this.argument.include(e,n)}markDeclarationReached(){this.argument.markDeclarationReached()}applyDeoptimizations(){this.deoptimized=!0,this.declarationInit!==null&&(this.declarationInit.deoptimizePath([_e,_e]),this.scope.context.requestTreeshakingPass())}}Xn.prototype.includeNode=dt;const Ir=t=>t.at(-1)===_e?t:[...t,_e];class li extends te{constructor(){super(...arguments),this.parameterVariableValuesDeoptimized=!1,this.includeCallArguments=this.scope.includeCallArguments.bind(this.scope)}get async(){return Le(this.flags,256)}set async(e){this.flags=Me(this.flags,256,e)}get deoptimizedReturn(){return Le(this.flags,512)}set deoptimizedReturn(e){this.flags=Me(this.flags,512,e)}get generator(){return Le(this.flags,4194304)}set generator(e){this.flags=Me(this.flags,4194304,e)}get hasCachedEffects(){return Le(this.flags,67108864)}set hasCachedEffects(e){this.flags=Me(this.flags,67108864,e)}deoptimizeArgumentsOnInteractionAtPath(e,n,s){e.type===2&&n.length===0?this.scope.deoptimizeArgumentsOnCall(e):this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizePath(e){this.getObjectEntity().deoptimizePath(e),e.length===1&&e[0]===_e&&(this.scope.getReturnExpression().deoptimizePath(le),this.scope.deoptimizeAllParameters())}getLiteralValueAtPath(e,n,s){return this.getObjectEntity().getLiteralValueAtPath(e,n,s)}getReturnExpressionWhenCalledAtPath(e,n,s,i){return e.length>0?this.getObjectEntity().getReturnExpressionWhenCalledAtPath(e,n,s,i):this.async?(this.deoptimizedReturn||(this.deoptimizedReturn=!0,this.scope.getReturnExpression().deoptimizePath(le),this.scope.context.requestTreeshakingPass()),rt):[this.scope.getReturnExpression(),!1]}hasEffectsOnInteractionAtPath(e,n,s){if(e.length>0||n.type!==2)return this.getObjectEntity().hasEffectsOnInteractionAtPath(e,n,s);if(this.hasCachedEffects)return!0;if(this.async){const{propertyReadSideEffects:r}=this.scope.context.options.treeshake,a=this.scope.getReturnExpression();if(a.hasEffectsOnInteractionAtPath(["then"],Ks,s)||r&&(r==="always"||a.hasEffectsOnInteractionAtPath(["then"],An,s)))return this.hasCachedEffects=!0,!0}const{propertyReadSideEffects:i}=this.scope.context.options.treeshake;for(let r=0;r<this.params.length;r++){const a=this.params[r];if(a.hasEffects(s)||i&&a.hasEffectsWhenDestructuring(s,ue,n.args[r+1]||un))return this.hasCachedEffects=!0,!0}return!1}onlyFunctionCallUsed(){let e=null;return this.parent.type==="VariableDeclarator"&&(e=this.parent.id.variable??null),this.parent.type===Gu&&(e=this.parent.variable),e?.getOnlyFunctionCallUsed()??!1}include(e,n){this.included||this.includeNode(e),this.parameterVariableValuesDeoptimized||this.onlyFunctionCallUsed()||(this.parameterVariableValuesDeoptimized=!0,this.scope.reassignAllParameters());const{brokenFlow:s}=e;e.brokenFlow=!1,this.body.include(e,n),e.brokenFlow=s}initialise(){super.initialise(),this.body instanceof Wn?this.body.addImplicitReturnExpressionToScope():this.scope.addReturnExpression(this.body),this.annotations&&this.scope.context.options.treeshake.annotations&&(this.annotationNoSideEffects=this.annotations.some(e=>e.type==="noSideEffects"))}parseNode(e){const{body:n,params:s}=e,{scope:i}=this,{bodyScope:r,context:a}=i,l=this.params=s.map(c=>new(a.getNodeConstructor(c.type))(this,i).parseNode(c));return i.addParameterVariables(l.map(c=>c.declare("parameter",ue,Pe)),l[l.length-1]instanceof Xn),this.body=new(a.getNodeConstructor(n.type))(this,r).parseNode(n),super.parseNode(e)}}li.prototype.preventChildBlockScope=!0,li.prototype.includeNode=ze,li.prototype.applyDeoptimizations=Te;class vr extends li{constructor(){super(...arguments),this.objectEntity=null}createScope(e){this.scope=new Jh(e,this),this.constructedEntity=new $t(Object.create(null),Sn),this.scope.thisVariable.addArgumentForDeoptimization(this.constructedEntity)}deoptimizeArgumentsOnInteractionAtPath(e,n,s){super.deoptimizeArgumentsOnInteractionAtPath(e,n,s),e.type===2&&n.length===0&&e.args[0]&&this.scope.thisVariable.addArgumentForDeoptimization(e.args[0])}hasEffects(e){return!this.annotationNoSideEffects&&!!this.id?.hasEffects(e)}hasEffectsOnInteractionAtPath(e,n,s){if(this.annotationNoSideEffects&&e.length===0&&n.type===2)return!1;if(super.hasEffectsOnInteractionAtPath(e,n,s))return!0;if(e.length===0&&n.type===2){const i=s.replacedVariableInits.get(this.scope.thisVariable);s.replacedVariableInits.set(this.scope.thisVariable,n.withNew?this.constructedEntity:Pe);const{brokenFlow:r,ignore:a,replacedVariableInits:l}=s;if(s.ignore={breaks:!1,continues:!1,labels:new Set,returnYield:!0,this:n.withNew},this.body.hasEffects(s))return this.hasCachedEffects=!0,!0;s.brokenFlow=r,i?l.set(this.scope.thisVariable,i):l.delete(this.scope.thisVariable),s.ignore=a}return!1}include(e,n){super.include(e,n),this.id?.include(e,n);const s=this.scope.argumentsVariable.included;for(const i of this.params)i instanceof Fe&&!s||i.include(e,n)}includeNode(e){this.included=!0;const n=this.scope.argumentsVariable.included;for(const s of this.params)s instanceof Fe&&!n||s.includePath(le,e)}initialise(){super.initialise(),this.id?.declare("function",ue,this)}getObjectEntity(){return this.objectEntity!==null?this.objectEntity:this.objectEntity=new $t([{key:"prototype",kind:"init",property:new $t([],Sn)}],Sn)}}class _s extends vr{initialise(){super.initialise(),this.id!==null&&(this.id.variable.isId=!0)}onlyFunctionCallUsed(){return this.id?.variable.getOnlyFunctionCallUsed()??super.onlyFunctionCallUsed()}parseNode(e){return e.id!==null&&(this.id=new Fe(this,this.scope.parent).parseNode(e.id)),super.parseNode(e)}}class Kn extends te{include(e,n){this.included=!0,this.declaration.include(e,n),n&&this.scope.context.includeVariableInModule(this.variable,le,e)}includePath(e,n){this.included=!0,this.declaration.includePath(e,n)}initialise(){super.initialise();const e=this.declaration;this.declarationName=e.id&&e.id.name||this.declaration.name,this.variable=this.scope.addExportDefaultDeclaration(this.declarationName||this.scope.context.getModuleName(),this,this.scope.context),this.scope.context.addExport(this)}removeAnnotations(e){this.declaration.removeAnnotations(e)}render(e,n,s){const{start:i,end:r}=s,a=function(l,c){return kn(l,ht(l,"default",c)+7)}(e.original,this.start);if(this.declaration instanceof _s)this.renderNamedDeclaration(e,a,this.declaration.id===null?function(l,c){const u=ht(l,"function",c)+8;l=l.slice(u,ht(l,"(",u));const d=ht(l,"*");return d===-1?u:u+d+1}(e.original,a):null,n);else if(this.declaration instanceof vs)this.renderNamedDeclaration(e,a,this.declaration.id===null?ht(e.original,"class",i)+5:null,n);else{if(this.variable.getOriginalVariable()!==this.variable)return void ps(this,e,i,r);if(!this.variable.included)return e.remove(this.start,a),this.declaration.render(e,n,{renderedSurroundingElement:Wt}),void(e.original[this.end-1]!==";"&&e.appendLeft(this.end,";"));this.renderVariableDeclaration(e,a,n)}this.declaration.render(e,n)}renderNamedDeclaration(e,n,s,i){const{exportNamesByVariable:r,format:a,snippets:{getPropertyAccess:l}}=i,c=this.variable.getName(l);e.remove(this.start,n),s!==null&&e.appendLeft(s,` ${c}`),a==="system"&&this.declaration instanceof vs&&r.has(this.variable)&&e.appendLeft(this.end,` ${On([this.variable],i)};`)}renderVariableDeclaration(e,n,{format:s,exportNamesByVariable:i,snippets:{cnst:r,getPropertyAccess:a}}){const l=e.original.charCodeAt(this.end-1)===59,c=s==="system"&&i.get(this.variable);c?(e.overwrite(this.start,n,`${r} ${this.variable.getName(a)} = exports(${JSON.stringify(c[0])}, `),e.appendRight(l?this.end-1:this.end,")"+(l?"":";"))):(e.overwrite(this.start,n,`${r} ${this.variable.getName(a)} = `),l||e.appendLeft(this.end,";"))}}Kn.prototype.needsBoundaries=!0,Kn.prototype.includeNode=ze,Kn.prototype.applyDeoptimizations=Te;const lg=/[\n\r'\\\u2028\u2029]/,cg=/([\n\r'\u2028\u2029])/g,ug=/\\/g;function In(t){return lg.test(t)?t.replace(ug,"\\\\").replace(cg,"\\$1"):t}const $a="_interopDefault",Na="_interopDefaultCompat",_r="_interopNamespace",Pr="_interopNamespaceCompat",Jn="_interopNamespaceDefault",ci="_interopNamespaceDefaultOnly",$r="_mergeNamespaces",fn="_documentCurrentScript",Nr={auto:$a,compat:Na,default:null,defaultOnly:null,esModule:null},Cr=(t,e)=>t==="esModule"||e&&(t==="auto"||t==="compat"),ui={auto:_r,compat:Pr,default:Jn,defaultOnly:ci,esModule:null},hg=(t,e)=>t!=="esModule"&&Cr(t,e),Ca=(t,e,n,s,i,r,a)=>{const l=new Set(t);for(const c of Oa)e.has(c)&&l.add(c);return Oa.map(c=>l.has(c)?Yh[c](n,s,i,r,a,l):"").join("")},Yh={[fn]:(t,{_:e,n})=>`var ${fn}${e}=${e}typeof document${e}!==${e}'undefined'${e}?${e}document.currentScript${e}:${e}null;${n}`,[Na](t,e,n){const{_:s,getDirectReturnFunction:i,n:r}=e,[a,l]=i(["e"],{functionReturn:!0,lineBreakIndent:null,name:Na});return`${a}${Ta(e)}${s}?${s}${n?Qh(e):Zh(e)}${l}${r}${r}`},[$a](t,e,n){const{_:s,getDirectReturnFunction:i,n:r}=e,[a,l]=i(["e"],{functionReturn:!0,lineBreakIndent:null,name:$a});return`${a}e${s}&&${s}e.__esModule${s}?${s}${n?Qh(e):Zh(e)}${l}${r}${r}`},[Pr](t,e,n,s,i,r){const{_:a,getDirectReturnFunction:l,n:c}=e;if(r.has(Jn)){const[u,d]=l(["e"],{functionReturn:!0,lineBreakIndent:null,name:Pr});return`${u}${Ta(e)}${a}?${a}e${a}:${a}${Jn}(e)${d}${c}${c}`}return`function ${Pr}(e)${a}{${c}${t}if${a}(${Ta(e)})${a}return e;${c}`+Ra(t,t,e,n,s,i)+`}${c}${c}`},[ci](t,e,n,s,i){const{getDirectReturnFunction:r,getObject:a,n:l,_:c}=e,[u,d]=r(["e"],{functionReturn:!0,lineBreakIndent:null,name:ci});return`${u}${Da(s,nd(i,a([[null,`__proto__:${c}null`],["default","e"]],{lineBreakIndent:null}),e))}${d}${l}${l}`},[Jn](t,e,n,s,i){const{_:r,n:a}=e;return`function ${Jn}(e)${r}{${a}`+Ra(t,t,e,n,s,i)+`}${a}${a}`},[_r](t,e,n,s,i,r){const{_:a,getDirectReturnFunction:l,n:c}=e;if(r.has(Jn)){const[u,d]=l(["e"],{functionReturn:!0,lineBreakIndent:null,name:_r});return`${u}e${a}&&${a}e.__esModule${a}?${a}e${a}:${a}${Jn}(e)${d}${c}${c}`}return`function ${_r}(e)${a}{${c}${t}if${a}(e${a}&&${a}e.__esModule)${a}return e;${c}`+Ra(t,t,e,n,s,i)+`}${c}${c}`},[$r](t,e,n,s,i){const{_:r,cnst:a,n:l}=e,c=a==="var"&&n;return`function ${$r}(n, m)${r}{${l}${t}${pg(`{${l}${t}${t}${t}if${r}(k${r}!==${r}'default'${r}&&${r}!(k in n))${r}{${l}`+(n?c?ed:mg:td)(t,t+t+t+t,e)+`${t}${t}${t}}${l}${t}${t}}`,c,t,e)}${l}${t}return ${Da(s,nd(i,"n",e))};${l}}${l}${l}`}},Qh=({_:t,getObject:e})=>`e${t}:${t}${e([["default","e"]],{lineBreakIndent:null})}`,Zh=({_:t,getPropertyAccess:e})=>`e${e("default")}${t}:${t}e`,Ta=({_:t})=>`e${t}&&${t}typeof e${t}===${t}'object'${t}&&${t}'default'${t}in e`,Ra=(t,e,n,s,i,r)=>{const{_:a,cnst:l,getObject:c,getPropertyAccess:u,n:d,s:m}=n,f=`{${d}`+(s?fg:td)(t,e+t+t,n)+`${e}${t}}`;return`${e}${l} n${a}=${a}Object.create(null${r?`,${a}{${a}[Symbol.toStringTag]:${a}${hi(c)}${a}}`:""});${d}${e}if${a}(e)${a}{${d}${e}${t}${dg(f,!s,n)}${d}${e}}${d}${e}n${u("default")}${a}=${a}e;${d}${e}return ${Da(i,"n")}${m}${d}`},dg=(t,e,{_:n,cnst:s,getFunctionIntro:i,s:r})=>s!=="var"||e?`for${n}(${s} k in e)${n}${t}`:`Object.keys(e).forEach(${i(["k"],{isAsync:!1,name:null})}${t})${r}`,pg=(t,e,n,{_:s,cnst:i,getDirectReturnFunction:r,getFunctionIntro:a,n:l})=>{if(e){const[c,u]=r(["e"],{functionReturn:!1,lineBreakIndent:{base:n,t:n},name:null});return`m.forEach(${c}e${s}&&${s}typeof e${s}!==${s}'string'${s}&&${s}!Array.isArray(e)${s}&&${s}Object.keys(e).forEach(${a(["k"],{isAsync:!1,name:null})}${t})${u});`}return`for${s}(var i${s}=${s}0;${s}i${s}<${s}m.length;${s}i++)${s}{${l}${n}${n}${i} e${s}=${s}m[i];${l}${n}${n}if${s}(typeof e${s}!==${s}'string'${s}&&${s}!Array.isArray(e))${s}{${s}for${s}(${i} k in e)${s}${t}${s}}${l}${n}}`},fg=(t,e,n)=>{const{_:s,n:i}=n;return`${e}if${s}(k${s}!==${s}'default')${s}{${i}`+ed(t,e+t,n)+`${e}}${i}`},ed=(t,e,{_:n,cnst:s,getDirectReturnFunction:i,n:r})=>{const[a,l]=i([],{functionReturn:!0,lineBreakIndent:null,name:null});return`${e}${s} d${n}=${n}Object.getOwnPropertyDescriptor(e,${n}k);${r}${e}Object.defineProperty(n,${n}k,${n}d.get${n}?${n}d${n}:${n}{${r}${e}${t}enumerable:${n}true,${r}${e}${t}get:${n}${a}e[k]${l}${r}${e}});${r}`},mg=(t,e,{_:n,cnst:s,getDirectReturnFunction:i,n:r})=>{const[a,l]=i([],{functionReturn:!0,lineBreakIndent:null,name:null});return`${e}${s} d${n}=${n}Object.getOwnPropertyDescriptor(e,${n}k);${r}${e}if${n}(d)${n}{${r}${e}${t}Object.defineProperty(n,${n}k,${n}d.get${n}?${n}d${n}:${n}{${r}${e}${t}${t}enumerable:${n}true,${r}${e}${t}${t}get:${n}${a}e[k]${l}${r}${e}${t}});${r}${e}}${r}`},td=(t,e,{_:n,n:s})=>`${e}n[k]${n}=${n}e[k];${s}`,Da=(t,e)=>t?`Object.freeze(${e})`:e,nd=(t,e,{_:n,getObject:s})=>t?`Object.defineProperty(${e},${n}Symbol.toStringTag,${n}${hi(s)})`:e,Oa=Object.keys(Yh);function hi(t){return t([["value","'Module'"]],{lineBreakIndent:null})}class It extends te{deoptimizeArgumentsOnInteractionAtPath(){}getLiteralValueAtPath(e){return e.length>0||this.value===null&&this.scope.context.code.charCodeAt(this.start)!==110||typeof this.value=="bigint"||this.scope.context.code.charCodeAt(this.start)===47?Ce:this.value}getReturnExpressionWhenCalledAtPath(e){return e.length!==1?rt:si(this.members,e[0])}hasEffectsOnInteractionAtPath(e,n,s){switch(n.type){case 0:return e.length>(this.value===null?0:1);case 1:return!0;case 2:return!!(this.included&&this.value instanceof RegExp&&(this.value.global||this.value.sticky))||e.length!==1||ni(this.members,e[0],n,s)}}initialise(){super.initialise(),this.members=function(e){if(e instanceof RegExp)return Xm;switch(typeof e){case"boolean":return ya;case"number":return ba;case"string":return ti}return Object.create(null)}(this.value)}parseNode(e){return this.value=e.value,this.regex=e.regex,super.parseNode(e)}render(e){typeof this.value=="string"&&e.indentExclusionRanges.push([this.start+1,this.end-1])}}function sd(t,e,n,s,i){if("getLiteralValueAtPathAsChainElement"in e){const r=e.getLiteralValueAtPathAsChainElement(ue,Ge,i);if(r===Xt||t.optional&&r==null)return Xt}else if(t.optional&&e.getLiteralValueAtPath(ue,Ge,i)==null)return Xt;return t.getLiteralValueAtPath(n,s,i)}function gg(t){return t.computed?function(e){return e instanceof It?String(e.value):null}(t.property):t.property.name}function id(t){const e=t.propertyKey,n=t.object;if(typeof e=="string"){if(n instanceof Fe)return[{key:n.name,pos:n.start},{key:e,pos:t.property.start}];if(n instanceof mn){const s=id(n);return s&&[...s,{key:e,pos:t.property.start}]}}return null}It.prototype.includeNode=dt;class mn extends te{constructor(){super(...arguments),this.variable=null,this.expressionsToBeDeoptimized=[]}get computed(){return Le(this.flags,1024)}set computed(e){this.flags=Me(this.flags,1024,e)}get optional(){return Le(this.flags,128)}set optional(e){this.flags=Me(this.flags,128,e)}get assignmentDeoptimized(){return Le(this.flags,16)}set assignmentDeoptimized(e){this.flags=Me(this.flags,16,e)}get bound(){return Le(this.flags,32)}set bound(e){this.flags=Me(this.flags,32,e)}get isUndefined(){return Le(this.flags,64)}set isUndefined(e){this.flags=Me(this.flags,64,e)}bind(){this.bound=!0;const e=id(this),n=e&&this.scope.findVariable(e[0].key);if(n?.isNamespace){const s=rd(n,e.slice(1),this.scope.context);s?s==="undefined"?this.isUndefined=!0:(this.variable=s,this.scope.addNamespaceMemberAccess(function(i){let r=i[0].key;for(let a=1;a<i.length;a++)r+="."+i[a].key;return r}(e),s)):super.bind()}else super.bind()}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.variable?this.variable.deoptimizeArgumentsOnInteractionAtPath(e,n,s):this.isUndefined||(n.length<6?this.object.deoptimizeArgumentsOnInteractionAtPath(e,this.propertyKey===_e?le:[this.propertyKey,...n],s):En(e))}deoptimizeAssignment(e,n){this.deoptimizePath(ue),n.deoptimizePath([...e,_e])}deoptimizeCache(){if(this.propertyKey===this.dynamicPropertyKey)return;const{expressionsToBeDeoptimized:e,object:n}=this;this.expressionsToBeDeoptimized=Qe,this.dynamicPropertyKey=this.propertyKey,n.deoptimizePath(le),this.included&&n.includePath(le,Lt());for(const s of e)s.deoptimizeCache()}deoptimizePath(e){if(e.length===0&&this.disallowNamespaceReassignment(),this.variable)this.variable.deoptimizePath(e);else if(!this.isUndefined){const{propertyKey:n}=this;this.object.deoptimizePath([n===_e?nr:n,...e.length<6?e:[...e.slice(0,6),_e]])}}getLiteralValueAtPath(e,n,s){if(this.variable)return this.variable.getLiteralValueAtPath(e,n,s);if(this.isUndefined)return;const i=this.getDynamicPropertyKey();return i!==_e&&e.length<6?(i!==this.propertyKey&&this.expressionsToBeDeoptimized.push(s),this.object.getLiteralValueAtPath([i,...e],n,s)):Ce}getLiteralValueAtPathAsChainElement(e,n,s){return this.variable?this.variable.getLiteralValueAtPath(e,n,s):this.isUndefined?void 0:sd(this,this.object,e,n,s)}getReturnExpressionWhenCalledAtPath(e,n,s,i){if(this.variable)return this.variable.getReturnExpressionWhenCalledAtPath(e,n,s,i);if(this.isUndefined)return[un,!1];const r=this.getDynamicPropertyKey();return r!==_e&&e.length<6?(r!==this.propertyKey&&this.expressionsToBeDeoptimized.push(i),this.object.getReturnExpressionWhenCalledAtPath([r,...e],n,s,i)):rt}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),this.property.hasEffects(e)||this.object.hasEffects(e)||this.hasAccessEffect(e)}hasEffectsAsChainElement(e){if(this.variable||this.isUndefined)return this.hasEffects(e);const n="hasEffectsAsChainElement"in this.object?this.object.hasEffectsAsChainElement(e):this.object.hasEffects(e);return n===Xt?Xt:this.optional&&this.object.getLiteralValueAtPath(ue,Ge,this)==null?n||Xt:(this.deoptimized||this.applyDeoptimizations(),n||this.property.hasEffects(e)||this.hasAccessEffect(e))}hasEffectsAsAssignmentTarget(e,n){return n&&!this.deoptimized&&this.applyDeoptimizations(),this.assignmentDeoptimized||this.applyAssignmentDeoptimization(),this.property.hasEffects(e)||this.object.hasEffects(e)||n&&this.hasAccessEffect(e)||this.hasEffectsOnInteractionAtPath(ue,this.assignmentInteraction,e)}hasEffectsOnInteractionAtPath(e,n,s){return this.variable?this.variable.hasEffectsOnInteractionAtPath(e,n,s):!!this.isUndefined||!(e.length<6)||this.object.hasEffectsOnInteractionAtPath([this.getDynamicPropertyKey(),...e],n,s)}hasEffectsWhenDestructuring(e,n,s){return n.length>0&&s.hasEffectsOnInteractionAtPath(n,An,e)}include(e,n){this.included||this.includeNode(e),this.object.include(e,n),this.property.include(e,n)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.variable?this.scope.context.includeVariableInModule(this.variable,ue,e):this.isUndefined||this.object.includePath([this.propertyKey],e)}includeNodeAsAssignmentTarget(e){this.included=!0,this.assignmentDeoptimized||this.applyAssignmentDeoptimization(),this.variable?this.scope.context.includeVariableInModule(this.variable,ue,e):this.isUndefined||this.object.includePath([this.propertyKey],e)}includePath(e,n){this.included||this.includeNode(n),this.variable?this.variable?.includePath(e,n):this.isUndefined||this.object.includePath([this.propertyKey,...e.length<6?e:[...e.slice(0,6),_e]],n)}includeAsAssignmentTarget(e,n,s){this.included||this.includeNodeAsAssignmentTarget(e),s&&!this.deoptimized&&this.applyDeoptimizations(),this.object.include(e,n),this.property.include(e,n)}includeCallArguments(e,n){var s;this.variable?this.variable.includeCallArguments(e,n):fa(this.object)||this.object.variable&&!this.object.variable.isReassigned&&this.object.variable instanceof Dt&&(s=this.object.variable.init)instanceof te&&s.type==="AwaitExpression"&&fa(this.object.variable.init.argument)?Hu(e,n):na(e,n)}includeDestructuredIfNecessary(e,n,s){return!!(this.included||=n.length>0&&!e.brokenFlow&&s.hasEffectsOnInteractionAtPath(n,An,Mn()))&&(s.include(e,!1),!0)}initialise(){super.initialise(),this.dynamicPropertyKey=gg(this),this.propertyKey=this.dynamicPropertyKey===null?_e:this.dynamicPropertyKey,this.accessInteraction={args:[this.object],type:0}}render(e,n,{renderedParentType:s,isCalleeOfRenderedParent:i,renderedSurroundingElement:r}=pt){if(this.variable||this.isUndefined){const{snippets:{getPropertyAccess:a}}=n;let l=this.variable?this.variable.getName(a):"undefined";s&&i&&(l="0, "+l),e.overwrite(this.start,this.end,l,{contentOnly:!0,storeName:!0})}else s&&i&&e.appendRight(this.start,"0, "),this.object.render(e,n,{renderedSurroundingElement:r}),this.property.render(e,n)}setAssignedValue(e){this.assignmentInteraction={args:[this.object,e],type:1}}applyDeoptimizations(){this.deoptimized=!0;const{propertyReadSideEffects:e}=this.scope.context.options.treeshake;this.bound&&e&&!this.variable&&!this.isUndefined&&(this.object.deoptimizeArgumentsOnInteractionAtPath(this.accessInteraction,[this.propertyKey],Ge),this.scope.context.requestTreeshakingPass()),this.variable&&(this.variable.addUsedPlace(this),this.scope.context.requestTreeshakingPass())}applyAssignmentDeoptimization(){this.assignmentDeoptimized=!0;const{propertyReadSideEffects:e}=this.scope.context.options.treeshake;this.bound&&e&&!this.variable&&!this.isUndefined&&(this.object.deoptimizeArgumentsOnInteractionAtPath(this.assignmentInteraction,[this.propertyKey],Ge),this.scope.context.requestTreeshakingPass())}disallowNamespaceReassignment(){this.object instanceof Fe&&this.scope.findVariable(this.object.name).isNamespace&&(this.variable&&this.scope.context.includeVariableInModule(this.variable,le,Lt()),this.scope.context.log(Ee,mh(this.object.name,this.scope.context.module.id),this.start))}getDynamicPropertyKey(){if(this.dynamicPropertyKey===null){this.dynamicPropertyKey=this.propertyKey;const e=this.property.getLiteralValueAtPath(ue,Ge,this);return this.dynamicPropertyKey=e===ea?e:typeof e=="symbol"?_e:String(e)}return this.dynamicPropertyKey}hasAccessEffect(e){const{propertyReadSideEffects:n}=this.scope.context.options.treeshake;return!(this.variable||this.isUndefined)&&n&&(n==="always"||this.object.hasEffectsOnInteractionAtPath([this.getDynamicPropertyKey()],this.accessInteraction,e))}}function rd(t,e,n){if(e.length===0)return t;if(!t.isNamespace||t instanceof dr)return null;const s=e[0].key,[i,r]=t.context.traceExport(s);if(!i){if(e.length===1){const a=t.context.fileName;return n.log(Ee,ur(s,n.module.id,a,!!r?.missingButExportExists),e[0].pos),"undefined"}return null}return rd(i,e.slice(1),n)}const La="ROLLUP_FILE_URL_",Ma="import";class od extends te{constructor(){super(...arguments),this.metaProperty=null,this.preliminaryChunkId=null,this.referenceId=null}getReferencedFileName(e){const{meta:{name:n},metaProperty:s}=this;return n===Ma&&s?.startsWith(La)?e.getFileName(s.slice(16)):null}hasEffects(){return!1}hasEffectsOnInteractionAtPath(e,{type:n}){return e.length>1||n!==0}include(){this.included||this.includeNode()}includeNode(){if(this.included=!0,this.meta.name===Ma){this.scope.context.addImportMeta(this);const e=this.parent,n=this.metaProperty=e instanceof mn&&typeof e.propertyKey=="string"?e.propertyKey:null;n?.startsWith(La)&&(this.referenceId=n.slice(16))}}render(e,n){const{format:s,pluginDriver:i,snippets:r}=n,{scope:{context:{module:a}},meta:{name:l},metaProperty:c,parent:u,preliminaryChunkId:d,referenceId:m,start:f,end:g}=this,{id:E}=a;if(l!==Ma)return;const k=d;if(m){const A=i.getFileName(m),x=an(Rn(ln(k),A)),w=i.hookFirstSync("resolveFileUrl",[{chunkId:k,fileName:A,format:s,moduleId:E,referenceId:m,relativePath:x}])||xg[s](x);return void e.overwrite(u.start,u.end,w,{contentOnly:!0})}let I=i.hookFirstSync("resolveImportMeta",[c,{chunkId:k,format:s,moduleId:E}]);I||(I=kg[s]?.(c,{chunkId:k,snippets:r}),n.accessedDocumentCurrentScript||=ad.includes(s)&&I!=="undefined"),typeof I=="string"&&(u instanceof mn?e.overwrite(u.start,u.end,I,{contentOnly:!0}):e.overwrite(f,g,I,{contentOnly:!0}))}setResolution(e,n,s){this.preliminaryChunkId=s;const i=(this.metaProperty?.startsWith(La)?bg:yg)[e];i.length>0&&this.scope.addAccessedGlobals(i,n)}}const ad=["cjs","iife","umd"],yg={amd:["document","module","URL"],cjs:["document","require","URL",fn],es:[],iife:["document","URL",fn],system:["module"],umd:["document","require","URL",fn]},bg={amd:["document","require","URL"],cjs:["document","require","URL"],es:[],iife:["document","URL"],system:["module","URL"],umd:["document","require","URL"]},di=(t,e="URL")=>`new ${e}(${t}).href`,Fa=(t,e=!1)=>di(`'${In(t)}', ${e?"typeof document === 'undefined' ? location.href : ":""}document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI`),Tr=t=>(e,{chunkId:n})=>{const s=t(n);return e===null?`({ url: ${s} })`:e==="url"?s:"undefined"},Ba=t=>`require('u' + 'rl').pathToFileURL(${t}).href`,ld=t=>Ba(`__dirname + '/${In(t)}'`),ja=(t,e=!1)=>`${e?"typeof document === 'undefined' ? location.href : ":""}(${fn} && ${fn}.tagName.toUpperCase() === 'SCRIPT' && ${fn}.src || new URL('${In(t)}', document.baseURI).href)`,xg={amd:t=>(t[0]!=="."&&(t="./"+t),di(`require.toUrl('${In(t)}'), document.baseURI`)),cjs:t=>`(typeof document === 'undefined' ? ${ld(t)} : ${Fa(t)})`,es:t=>di(`'${In(t)}', import.meta.url`),iife:t=>Fa(t),system:t=>di(`'${In(t)}', module.meta.url`),umd:t=>`(typeof document === 'undefined' && typeof location === 'undefined' ? ${ld(t)} : ${Fa(t,!0)})`},kg={amd:Tr(()=>di("module.uri, document.baseURI")),cjs:Tr(t=>`(typeof document === 'undefined' ? ${Ba("__filename")} : ${ja(t)})`),iife:Tr(t=>ja(t)),system:(t,{snippets:{getPropertyAccess:e}})=>t===null?"module.meta":`module.meta${e(t)}`,umd:Tr(t=>`(typeof document === 'undefined' && typeof location === 'undefined' ? ${Ba("__filename")} : ${ja(t,!0)})`)};class cd extends zn{constructor(){super("undefined")}getLiteralValueAtPath(){}}class Yt extends Dt{constructor(e,n,s){super(e,n,n.declaration,ue,s,"other"),this.hasId=!1,this.originalId=null,this.originalVariable=null;const i=n.declaration;(i instanceof _s||i instanceof vs)&&i.id?(this.hasId=!0,this.originalId=i.id):i instanceof Fe&&(this.originalId=i)}addReference(e){this.hasId||(this.name=e.name)}addUsedPlace(e){const n=this.getOriginalVariable();n===this?super.addUsedPlace(e):n.addUsedPlace(e)}forbidName(e){const n=this.getOriginalVariable();n===this?super.forbidName(e):n.forbidName(e)}getAssignedVariableName(){return this.originalId&&this.originalId.name||null}getBaseVariableName(){const e=this.getOriginalVariable();return e===this?super.getBaseVariableName():e.getBaseVariableName()}getDirectOriginalVariable(){return!this.originalId||!this.hasId&&(this.originalId.isPossibleTDZ()||this.originalId.variable.isReassigned||this.originalId.variable instanceof cd||"syntheticNamespace"in this.originalId.variable)?null:this.originalId.variable}getName(e){const n=this.getOriginalVariable();return n===this?super.getName(e):n.getName(e)}getOriginalVariable(){if(this.originalVariable)return this.originalVariable;let e,n=this;const s=new Set;do s.add(n),e=n,n=e.getDirectOriginalVariable();while(n instanceof Yt&&!s.has(n));return this.originalVariable=n||e}}class Ps extends zn{constructor(e){super(e.getModuleName()),this.memberVariables=null,this.mergedNamespaces=[],this.referencedEarly=!1,this.references=[],this.context=e,this.module=e.module}addReference(e){this.references.push(e),this.name=e.name}deoptimizeArgumentsOnInteractionAtPath(e,n,s){if(n.length>1||n.length===1&&e.type===2){const i=n[0];typeof i=="string"?this.getMemberVariables()[i]?.deoptimizeArgumentsOnInteractionAtPath(e,n.slice(1),s):En(e)}}deoptimizePath(e){if(e.length>1){const n=e[0];typeof n=="string"&&this.getMemberVariables()[n]?.deoptimizePath(e.slice(1))}}getLiteralValueAtPath(e){return e[0]===ea?"Module":Ce}getMemberVariables(){if(this.memberVariables)return this.memberVariables;const e=Object.create(null),n=[...this.context.getExports(),...this.context.getReexports()].sort();for(const s of n)if(s[0]!=="*"&&s!==this.module.info.syntheticNamedExports){const[i]=this.context.traceExport(s);i&&(e[s]=i)}return this.memberVariables=e}hasEffectsOnInteractionAtPath(e,n,s){const{type:i}=n;if(e.length===0)return!0;if(e.length===1&&i!==2)return i===1;const r=e[0];if(typeof r!="string")return!0;const a=this.getMemberVariables()[r];return!a||a.hasEffectsOnInteractionAtPath(e.slice(1),n,s)}includePath(e,n){super.includePath(e,n),this.context.includeAllExports()}prepare(e){this.mergedNamespaces.length>0&&this.module.scope.addAccessedGlobals([$r],e)}renderBlock(e){const{exportNamesByVariable:n,format:s,freeze:i,indent:r,symbols:a,snippets:{_:l,cnst:c,getObject:u,getPropertyAccess:d,n:m,s:f}}=e,g=this.getMemberVariables(),E=Object.entries(g).filter(([I,A])=>A.included).map(([I,A])=>this.referencedEarly||A.isReassigned||A===this?[null,`get ${gr(I)}${l}()${l}{${l}return ${A.getName(d)}${f}${l}}`]:[I,A.getName(d)]);E.unshift([null,`__proto__:${l}null`]);let k=u(E,{lineBreakIndent:{base:"",t:r}});if(this.mergedNamespaces.length>0){const I=this.mergedNamespaces.map(A=>A.getName(d));k=`/*#__PURE__*/${$r}(${k},${l}[${I.join(`,${l}`)}])`}else a&&(k=`/*#__PURE__*/Object.defineProperty(${k},${l}Symbol.toStringTag,${l}${hi(u)})`),i&&(k=`/*#__PURE__*/Object.freeze(${k})`);return k=`${c} ${this.getName(d)}${l}=${l}${k};`,s==="system"&&n.has(this)&&(k+=`${m}${On([this],e)};`),k}renderFirst(){return this.referencedEarly}setMergedNamespaces(e){this.mergedNamespaces=e;const n=this.context.getModuleExecIndex();for(const s of this.references){const{context:i}=s.scope;if(i.getModuleExecIndex()<=n){this.referencedEarly=!0;break}}}}Ps.prototype.isNamespace=!0;class vt extends zn{constructor(e,n,s){super(n),this.baseVariable=null,this.context=e,this.module=e.module,this.syntheticNamespace=s}getBaseVariable(){if(this.baseVariable)return this.baseVariable;let e=this.syntheticNamespace;for(;e instanceof Yt||e instanceof vt;){if(e instanceof Yt){const n=e.getOriginalVariable();if(n===e)break;e=n}e instanceof vt&&(e=e.syntheticNamespace)}return this.baseVariable=e}getBaseVariableName(){return this.syntheticNamespace.getBaseVariableName()}getName(e){return`${this.syntheticNamespace.getName(e)}${e(this.name)}`}includePath(e,n){super.includePath(e,n),this.context.includeVariableInModule(this.syntheticNamespace,e,n)}setRenderNames(e,n){super.setRenderNames(e,n)}}class Yn{constructor(e,n,s){this.options=n,this.inputBase=s,this.defaultVariableName="",this.namespaceVariableName="",this.variableName="",this.fileName=null,this.importAttributes=null,this.id=e.id,this.moduleInfo=e.info,this.renormalizeRenderPath=e.renormalizeRenderPath,this.suggestedVariableName=e.suggestedVariableName}getFileName(){if(this.fileName)return this.fileName;const{paths:e}=this.options;return this.fileName=(typeof e=="function"?e(this.id):e[this.id])||(this.renormalizeRenderPath?an(Rn(this.inputBase,this.id)):this.id)}getImportAttributes(e){return this.importAttributes||=ud(["es","cjs"].includes(this.options.format)&&this.options.externalImportAttributes&&this.moduleInfo.attributes,e)}getImportPath(e){return In(this.renormalizeRenderPath?Ku(e,this.getFileName(),this.options.format==="amd",!1):this.getFileName())}}function ud(t,{getObject:e}){if(!t)return null;const n=Object.entries(t).map(([s,i])=>[s,`'${i}'`]);return n.length>0?e(n,{lineBreakIndent:null}):null}function hd(t){return t.endsWith(".js")?t.slice(0,-3):t}function dd(t,e){return t.autoId?`${t.basePath?t.basePath+"/":""}${hd(e)}`:t.id??""}function Rr(t,e,n,s,i,r,a,l,c="return "){const{_:u,getDirectReturnFunction:d,getFunctionIntro:m,getPropertyAccess:f,n:g,s:E}=i;if(!n)return`${g}${g}${c}${function(I,A,x,w,v){if(I.length>0)return I[0].local;for(const{defaultVariableName:$,importPath:D,isChunk:j,name:V,namedExportsMode:U,namespaceVariableName:O,reexports:_}of A)if(_)return pd(V,_[0].imported,U,j,$,O,x,D,w,v)}(t,e,s,a,f)};`;let k="";if(n){for(const{defaultVariableName:I,importPath:A,isChunk:x,name:w,namedExportsMode:v,namespaceVariableName:$,reexports:D}of e)if(D){for(const j of D)if(j.reexported!=="*"){const V=pd(w,j.imported,v,x,I,$,s,A,a,f);if(k&&(k+=g),j.imported!=="*"&&j.needsLiveBinding){const[U,O]=d([],{functionReturn:!0,lineBreakIndent:null,name:null});k+=`Object.defineProperty(exports,${u}${JSON.stringify(j.reexported)},${u}{${g}${r}enumerable:${u}true,${g}${r}get:${u}${U}${V}${O}${g}});`}else j.reexported==="__proto__"?k+=`Object.defineProperty(exports,${u}"__proto__",${u}{${g}${r}enumerable:${u}true,${g}${r}value:${u}${V}${g}});`:k+=`exports${f(j.reexported)}${u}=${u}${V};`}}}for(const{exported:I,local:A}of t){const x=`exports${f(I)}`;x!==A&&(k&&(k+=g),k+=I==="__proto__"?`Object.defineProperty(exports,${u}"__proto__",${u}{${g}${r}enumerable:${u}true,${g}${r}value:${u}${A}${g}});`:`${x}${u}=${u}${A};`)}if(n){for(const{name:I,reexports:A}of e)if(A){for(const x of A)if(x.reexported==="*"){if(k&&(k+=g),!x.needsLiveBinding&&l){const v="'__proto__'";k+=`Object.prototype.hasOwnProperty.call(${I},${u}${v})${u}&&${g}${r}!Object.prototype.hasOwnProperty.call(exports,${u}${v})${u}&&${g}${r}Object.defineProperty(exports,${u}${v},${u}{${g}${r}${r}enumerable:${u}true,${g}${r}${r}value:${u}${I}[${v}]${g}${r}});${g}${g}`}const w=`{${g}${r}if${u}(k${u}!==${u}'default'${u}&&${u}!Object.prototype.hasOwnProperty.call(exports,${u}k))${u}${Eg(I,x.needsLiveBinding,r,i)}${E}${g}}`;k+=`Object.keys(${I}).forEach(${m(["k"],{isAsync:!1,name:null})}${w});`}}}return k?`${g}${g}${k}`:""}function pd(t,e,n,s,i,r,a,l,c,u){if(e==="default"){if(!s){const d=a(l),m=Nr[d]?i:t;return Cr(d,c)?`${m}${u("default")}`:m}return n?`${t}${u("default")}`:t}return e==="*"?(s?!n:ui[a(l)])?r:t:`${t}${u(e)}`}function fd(t){return t([["value","true"]],{lineBreakIndent:null})}function Dr(t,e,n,{_:s,getObject:i}){if(t){if(e)return n?`Object.defineProperties(exports,${s}${i([["__esModule",fd(i)],[null,`[Symbol.toStringTag]:${s}${hi(i)}`]],{lineBreakIndent:null})});`:`Object.defineProperty(exports,${s}'__esModule',${s}${fd(i)});`;if(n)return`Object.defineProperty(exports,${s}Symbol.toStringTag,${s}${hi(i)});`}return""}const Eg=(t,e,n,{_:s,getDirectReturnFunction:i,n:r})=>{if(e){const[a,l]=i([],{functionReturn:!0,lineBreakIndent:null,name:null});return`Object.defineProperty(exports,${s}k,${s}{${r}${n}${n}enumerable:${s}true,${r}${n}${n}get:${s}${a}${t}[k]${l}${r}${n}})`}return`exports[k]${s}=${s}${t}[k]`};function Or(t,e,n,s,i,r,a,l){const{_:c,cnst:u,n:d}=l,m=new Set,f=[],g=(E,k,I)=>{m.add(k),f.push(`${u} ${E}${c}=${c}/*#__PURE__*/${k}(${I});`)};for(const{defaultVariableName:E,imports:k,importPath:I,isChunk:A,name:x,namedExportsMode:w,namespaceVariableName:v,reexports:$}of t)if(A){for(const{imported:D,reexported:j}of[...k||[],...$||[]])if(D==="*"&&j!=="*"){w||g(v,ci,x);break}}else{const D=e(I);let j=!1,V=!1;for(const{imported:U,reexported:O}of[...k||[],...$||[]]){let _,N;U==="default"?j||(j=!0,E!==v&&(N=E,_=Nr[D])):U!=="*"||O==="*"||V||(V=!0,_=ui[D],N=v),_&&g(N,_,x)}}return`${Ca(m,r,a,l,n,s,i)}${f.length>0?`${f.join(d)}${d}${d}`:""}`}function md(t,e){return t[0]!=="."?t:e?(n=t).endsWith(".js")?n:n+".js":hd(t);var n}const Ag=new Set(["node:assert","assert","node:assert/strict","assert/strict","node:async_hooks","async_hooks","node:buffer","buffer","node:child_process","child_process","node:cluster","cluster","node:console","console","node:constants","constants","node:crypto","crypto","node:dgram","dgram","node:diagnostics_channel","diagnostics_channel","node:dns","dns","node:dns/promises","dns/promises","node:domain","domain","node:events","events","node:fs","fs","node:fs/promises","fs/promises","node:http","http","node:http2","http2","node:https","https","node:inspector","inspector","node:inspector/promises","inspector/promises","node:module","module","node:net","net","node:os","os","node:path","path","node:path/posix","path/posix","node:path/win32","path/win32","node:perf_hooks","perf_hooks","node:process","process","node:querystring","querystring","node:quic","node:readline","readline","node:readline/promises","readline/promises","node:repl","repl","node:sea","node:sqlite","node:stream","stream","node:stream/consumers","stream/consumers","node:stream/promises","stream/promises","node:stream/web","stream/web","node:string_decoder","string_decoder","node:test","node:test/reporters","node:timers","timers","node:timers/promises","timers/promises","node:tls","tls","node:trace_events","trace_events","node:tty","tty","node:url","url","node:util","util","node:util/types","util/types","node:v8","v8","node:vm","vm","node:wasi","wasi","node:worker_threads","worker_threads","node:zlib","zlib"]);function za(t,e){const n=e.map(({importPath:s})=>s).filter(s=>Ag.has(s)||s.startsWith("node:"));n.length!==0&&t(Ee,function(s){return{code:"MISSING_NODE_BUILTINS",ids:s,message:`Creating a browser bundle that depends on Node.js built-in modules (${cn(s)}). You might need to include https://github.com/FredKSchott/rollup-plugin-polyfill-node`}}(n))}const Lr=(t,e)=>t.split(".").map(e).join("");function Va(t,e,n,s,{_:i,getPropertyAccess:r},a){const l=t.split("."),c=l[0]in Object.prototype;a&&c&&a(Ee,Eh(l[0])),l[0]=(typeof n=="function"?n(l[0]):c?l[0]:n[l[0]])||l[0];const u=l.pop();let d=e,m=[...l.map(f=>(d+=r(f),`${d}${i}=${i}${d}${i}||${i}{}`)),`${d}${r(u)}`].join(`,${i}`)+`${i}=${i}${s}`;return l.length>0&&(m=`(${m})`),m}function gd(t){let e=t.length;for(;e--;){const{imports:n,reexports:s}=t[e];if(n||s)return t.slice(0,e+1)}return[]}const $s="_missingExportShim",wg=({dependencies:t,exports:e})=>{const n=new Set(e.map(s=>s.exported));n.add("default");for(const{reexports:s}of t)if(s)for(const i of s)i.reexported!=="*"&&n.add(i.reexported);return n},Sg=(t,e,{_:n,cnst:s,getObject:i,n:r})=>{if(t){const a=[...t].map(l=>[l,"1"]);return a.unshift([null,`__proto__:${n}null`]),`${r}${e}${s} _starExcludes${n}=${n}${i(a,{lineBreakIndent:{base:e,t:e}})};`}return""},Ig=(t,e,{_:n,n:s})=>t.length>0?`${s}${e}var ${t.join(`,${n}`)};`:"",vg=(t,e,n)=>Ua(t.filter(s=>s.hoisted).map(s=>({name:s.exported,value:s.local})),e,n);function Ua(t,e,{_:n,n:s}){return t.length===0?"":t.length===1?`exports(${JSON.stringify(t[0].name)},${n}${t[0].value});${s}${s}`:`exports({${s}`+t.map(({name:i,value:r})=>`${e}${gr(i)}:${n}${r}`).join(`,${s}`)+`${s}});${s}${s}`}const _g=(t,e,n)=>Ua(t.filter(s=>s.expression).map(s=>({name:s.exported,value:s.local})),e,n),Pg=(t,e,n)=>Ua(t.filter(s=>s.local===$s).map(s=>({name:s.exported,value:$s})),e,n);function qa(t,e,n){return t?`${e}${Lr(t,n)}`:"null"}var $g={amd:function(t,{accessedGlobals:e,dependencies:n,exports:s,hasDefaultExport:i,hasExports:r,id:a,indent:l,intro:c,isEntryFacade:u,isModuleFacade:d,namedExportsMode:m,log:f,outro:g,snippets:E},{amd:k,esModule:I,externalLiveBindings:A,freeze:x,generatedCode:{symbols:w},interop:v,reexportProtoFromExternal:$,strict:D}){za(f,n);const j=n.map(K=>`'${md(K.importPath,k.forceJsExtensionForImports)}'`),V=n.map(K=>K.name),{n:U,getNonArrowFunctionIntro:O,_}=E;r&&(m||s[0]?.local==="exports.default")&&(V.unshift("exports"),j.unshift("'exports'")),e.has("require")&&(V.unshift("require"),j.unshift("'require'")),e.has("module")&&(V.unshift("module"),j.unshift("'module'"));const N=dd(k,a),C=(N?`'${N}',${_}`:"")+(j.length>0?`[${j.join(`,${_}`)}],${_}`:""),R=D?`${_}'use strict';`:"";t.prepend(`${c}${Or(n,v,A,x,w,e,l,E)}`);const M=Rr(s,n,m,v,E,l,A,$);let q=Dr(m&&r,u&&(I===!0||I==="if-default-prop"&&i),d&&w,E);q&&(q=U+U+q),t.append(`${M}${q}${g}`).indent(l).prepend(`${k.define}(${C}(${O(V,{isAsync:!1,name:null})}{${R}${U}${U}`).append(`${U}${U}}));`)},cjs:function(t,{accessedGlobals:e,dependencies:n,exports:s,hasDefaultExport:i,hasExports:r,indent:a,intro:l,isEntryFacade:c,isModuleFacade:u,namedExportsMode:d,outro:m,snippets:f},{compact:g,esModule:E,externalLiveBindings:k,freeze:I,interop:A,generatedCode:{symbols:x},reexportProtoFromExternal:w,strict:v}){const{_:$,n:D}=f,j=v?`'use strict';${D}${D}`:"";let V=Dr(d&&r,c&&(E===!0||E==="if-default-prop"&&i),u&&x,f);V&&(V+=D+D);const U=function(N,{_:C,cnst:R,n:M},q){let K="",X=!1;for(const{importPath:ae,name:T,reexports:de,imports:he}of N)de||he?(K+=q&&X?",":`${K?`;${M}`:""}${R} `,X=!0,K+=`${T}${C}=${C}require('${ae}')`):(K&&(K+=q&&!X?",":`;${M}`),X=!1,K+=`require('${ae}')`);return K?`${K};${M}${M}`:""}(n,f,g),O=Or(n,A,k,I,x,e,a,f);t.prepend(`${j}${l}${V}${U}${O}`);const _=Rr(s,n,d,A,f,a,k,w,`module.exports${$}=${$}`);t.append(`${_}${m}`)},es:function(t,{accessedGlobals:e,indent:n,intro:s,outro:i,dependencies:r,exports:a,snippets:l},{externalLiveBindings:c,freeze:u,generatedCode:{symbols:d},importAttributesKey:m}){const{n:f}=l,g=function(k,I,{_:A}){const x=[];for(const{importPath:w,reexports:v,imports:$,name:D,attributes:j}of k){const V=`'${w}'${j?`${A}${I}${A}${j}`:""};`;if(v||$){if($){let U=null,O=null;const _=[];for(const N of $)N.imported==="default"?U=N:N.imported==="*"?O=N:_.push(N);O&&x.push(`import${A}*${A}as ${O.local} from${A}${V}`),U&&_.length===0?x.push(`import ${U.local} from${A}${V}`):_.length>0&&x.push(`import ${U?`${U.local},${A}`:""}{${A}${_.map(N=>N.imported===N.local?N.imported:`${ks(N.imported)} as ${N.local}`).join(`,${A}`)}${A}}${A}from${A}${V}`)}if(v){let U=null;const O=[],_=[];for(const N of v)N.reexported==="*"?U=N:N.imported==="*"?O.push(N):_.push(N);if(U&&x.push(`export${A}*${A}from${A}${V}`),O.length>0){$&&$.some(N=>N.imported==="*"&&N.local===D)||x.push(`import${A}*${A}as ${D} from${A}${V}`);for(const N of O)x.push(`export${A}{${A}${D===N.reexported?D:`${D} as ${ks(N.reexported)}`} };`)}_.length>0&&x.push(`export${A}{${A}${_.map(N=>N.imported===N.reexported?ks(N.imported):`${ks(N.imported)} as ${ks(N.reexported)}`).join(`,${A}`)}${A}}${A}from${A}${V}`)}}else x.push(`import${A}${V}`)}return x}(r,m,l);g.length>0&&(s+=g.join(f)+f+f),(s+=Ca(null,e,n,l,c,u,d))&&t.prepend(s);const E=function(k,{_:I,cnst:A}){const x=[],w=new Array(k.length);let v=0;for(const $ of k)$.expression&&x.push(`${A} ${$.local}${I}=${I}${$.expression};`),w[v++]=$.exported===$.local?$.local:`${$.local} as ${ks($.exported)}`;return w.length>0&&x.push(`export${I}{${I}${w.join(`,${I}`)}${I}};`),x}(a,l);E.length>0&&t.append(f+f+E.join(f).trim()),i&&t.append(i),t.trim()},iife:function(t,{accessedGlobals:e,dependencies:n,exports:s,hasDefaultExport:i,hasExports:r,indent:a,intro:l,namedExportsMode:c,log:u,outro:d,snippets:m},{compact:f,esModule:g,extend:E,freeze:k,externalLiveBindings:I,reexportProtoFromExternal:A,globals:x,interop:w,name:v,generatedCode:{symbols:$},strict:D}){const{_:j,getNonArrowFunctionIntro:V,getPropertyAccess:U,n:O}=m,_=v&&v.includes("."),N=!E&&!_;if(v&&N&&(Ih(C=v)||Sh.test(C)))return oe(function(ce){return{code:"ILLEGAL_IDENTIFIER_AS_NAME",message:`Given name "${ce}" is not a legal JS identifier. If you need this, you can try "output.extend: true".`,url:ot("configuration-options/#output-extend")}}(v));var C;za(u,n);const R=gd(n),M=R.map(ce=>ce.globalName||"null"),q=R.map(ce=>ce.name);r&&!v&&u(Ee,{code:lh,message:'If you do not supply "output.name", you may not be able to access the exports of an IIFE bundle.',url:ot(th)}),r&&(c||s[0]?.local==="exports.default")&&(E?(M.unshift(`this${Lr(v,U)}${j}=${j}this${Lr(v,U)}${j}||${j}{}`),q.unshift("exports")):(M.unshift("{}"),q.unshift("exports")));const K=D?`${a}'use strict';${O}`:"",X=Or(n,w,I,k,$,e,a,m);t.prepend(`${l}${X}`);let ae=`(${V(q,{isAsync:!1,name:null})}{${O}${K}${O}`;r&&(!v||E&&c||(ae=(N?`var ${v}`:`this${Lr(v,U)}`)+`${j}=${j}${ae}`),_&&(ae=function(ce,L,b,{_:F,getPropertyAccess:B,s:J},ee,re){const se=ce.split("."),ke=se[0]in Object.prototype;re&&ke&&re(Ee,Eh(se[0])),se[0]=(typeof b=="function"?b(se[0]):ke?se[0]:b[se[0]])||se[0],se.pop();let ye=L;return se.map(be=>(ye+=B(be),`${ye}${F}=${F}${ye}${F}||${F}{}${J}`)).join(ee?",":`
36
+ ${e} are below minChunkSize.`}}function di(t,e){return{code:hh,message:t,pos:e}}function ks(t){return{code:"REDECLARATION_ERROR",message:`Identifier "${t}" has already been declared`}}function wh(t){return{code:"RESERVED_NAMESPACE",message:`You have overridden reserved namespace "${t}"`}}function da(t,e){let n=t.message.replace(/ \(\d+:\d+\)$/,"");return e.endsWith(".json")?n+=" (Note that you need @rollup/plugin-json to import JSON files)":e.endsWith(".js")||(n+=" (Note that you need plugins to import files that are not JavaScript)"),xh({cause:t,code:hh,id:e,message:n,stack:t.stack},t.message)}function er(t,e,{hook:n,id:s}={}){const r=t.code;return t.pluginCode||r==null||typeof r=="string"&&r.startsWith("PLUGIN_")||(t.pluginCode=r),t.code="PLUGIN_ERROR",t.plugin=e,n&&(t.hook=n),s&&(t.id=s),t}function zm(t){return{code:dh,message:`Multiple conflicting contents for sourcemap source ${t}`}}function Sh(t,e,n){const s=n?"reexport":"import";return{code:ph,exporter:t,message:`The named export "${e}" was ${s}ed from the external module "${Ae(t)}" even though its interop type is "defaultOnly". Either remove or change this ${s} or change the value of the "output.interop" option.`,url:ot(ua)}}function Vm(t){return{code:ph,exporter:t,message:`There was a namespace "*" reexport from the external module "${Ae(t)}" even though its interop type is "defaultOnly". This will be ignored as namespace reexports only reexport named exports. If this is not intended, either remove or change this reexport or change the value of the "output.interop" option.`,url:ot(ua)}}function wt(t){return{code:"VALIDATION_ERROR",message:t}}function jn(t,e,n,s,r){(function(i,a,l,c,u){if(l||u){const d=function(m,f){return{code:"DEPRECATED_FEATURE",message:m,url:ot(f)}}(i,a);if(u)return oe(d);c(Ee,d)}})(t,e,n,s.onLog,s.strictDeprecations)}const pa=Symbol("PureFunction");class zn extends Pt{markReassigned(){this.isReassigned=!0}constructor(e){super(),this.name=e,this.alwaysRendered=!1,this.forbiddenNames=null,this.globalName=null,this.initReached=!1,this.isId=!1,this.kind=null,this.renderBaseName=null,this.renderName=null,this.isReassigned=!1,this.onlyFunctionCallUsed=!0}addReference(e){}getOnlyFunctionCallUsed(){return this.onlyFunctionCallUsed}addUsedPlace(e){e.parent.type===Ys&&e.parent.callee===e||e.parent.type===Xu||(this.onlyFunctionCallUsed=!1)}forbidName(e){(this.forbiddenNames||=new Set).add(e)}getBaseVariableName(){return this.renderedLikeHoisted?.getBaseVariableName()||this.renderBaseName||this.renderName||this.name}getName(e,n){if(this.globalName)return this.globalName;if(n?.(this))return this.name;if(this.renderedLikeHoisted)return this.renderedLikeHoisted.getName(e,n);const s=this.renderName||this.name;return this.renderBaseName?`${this.renderBaseName}${e(s)}`:s}hasEffectsOnInteractionAtPath(e,{type:n},s){return n!==0||e.length>0}includePath(e,n){this.included=!0,this.renderedLikeHoisted?.includePath(e,n)}renderLikeHoisted(e){this.renderedLikeHoisted=e}markCalledFromTryStatement(){}setRenderNames(e,n){this.renderBaseName=e,this.renderName=n}}class tr extends zn{constructor(e,n){super(n),this.referenced=!1,this.module=e,this.isNamespace=n==="*"}addReference(e){this.referenced=!0,this.name!=="default"&&this.name!=="*"||this.module.suggestName(e.name)}hasEffectsOnInteractionAtPath(e,{type:n}){return n!==0||e.length>(this.isNamespace?1:0)}includePath(e,n){super.includePath(e,n),this.module.used=!0}}function Ih(t,e){for(const n of e){const s=Object.getOwnPropertyDescriptor(t,n).get;Object.defineProperty(t,n,{get(){const r=s.call(t);return Object.defineProperty(t,n,{value:r}),r}})}}const pi=new Set(["await","break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","eval","export","extends","false","finally","for","function","if","implements","import","in","instanceof","interface","let","NaN","new","null","package","private","protected","public","return","static","super","switch","this","throw","true","try","typeof","undefined","var","void","while","with","yield"]),vh=/[^\w$]/g,_h=t=>(e=>/\d/.test(e[0]))(t)||pi.has(t)||t==="arguments";function fi(t){return t=t.replace(/-(\w)/g,(e,n)=>n.toUpperCase()).replace(vh,"_"),_h(t)&&(t=`_${t}`),t||"_"}const mi=/^[$_\p{ID_Start}][$\u200C\u200D\p{ID_Continue}]*$/u,Um=/^(?:0|[1-9]\d*)$/;function gi(t){return mi.test(t)?t==="__proto__"?'["__proto__"]':t:Um.test(t)&&+t<=Number.MAX_SAFE_INTEGER?t:JSON.stringify(t)}function Es(t){return mi.test(t)?t:JSON.stringify(t)}class Ze{constructor(e,n,s,r,i,a){this.options=e,this.id=n,this.renormalizeRenderPath=i,this.dynamicImporters=[],this.execIndex=1/0,this.exportedVariables=new Map,this.importers=[],this.reexported=!1,this.used=!1,this.declarations=new Map,this.mostCommonSuggestion=0,this.nameSuggestions=new Map,this.suggestedVariableName=fi(n.split(/[/\\]/).pop());const{importers:l,dynamicImporters:c}=this;this.info={ast:null,attributes:a,code:null,dynamicallyImportedIdResolutions:Qe,dynamicallyImportedIds:Qe,get dynamicImporters(){return c.sort()},exportedBindings:null,exports:null,hasDefaultExport:null,id:n,implicitlyLoadedAfterOneOf:Qe,implicitlyLoadedBefore:Qe,importedIdResolutions:Qe,importedIds:Qe,get importers(){return l.sort()},isEntry:!1,isExternal:!0,isIncluded:null,meta:r,moduleSideEffects:s,syntheticNamedExports:!1}}cacheInfoGetters(){Ih(this.info,["dynamicImporters","importers"])}getVariableForExportName(e){const n=this.declarations.get(e);if(n)return[n];const s=new tr(this,e);return this.declarations.set(e,s),this.exportedVariables.set(s,e),[s]}suggestName(e){const n=(this.nameSuggestions.get(e)??0)+1;this.nameSuggestions.set(e,n),n>this.mostCommonSuggestion&&(this.mostCommonSuggestion=n,this.suggestedVariableName=e)}warnUnusedImports(){const e=[...this.declarations].filter(([l,c])=>l!=="*"&&!c.included&&!this.reexported&&!c.referenced).map(([l])=>l);if(e.length===0)return;const n=new Set;for(const l of e)for(const c of this.declarations.get(l).module.importers)n.add(c);const s=[...n];var r,i,a;this.options.onLog(Ee,{code:"UNUSED_EXTERNAL_IMPORT",exporter:r=this.id,ids:a=s,message:`${cn(i=e,["is","are"])} imported from external module "${r}" but never used in ${cn(a.map(l=>Ae(l)))}.`,names:i})}}function As(t){t.isExecuted=!0;const e=[t],n=new Set;for(const s of e)for(const r of[...s.dependencies,...s.implicitlyLoadedBefore])r instanceof Ze||r.isExecuted||!r.info.moduleSideEffects&&!s.implicitlyLoadedBefore.has(r)||n.has(r.id)||(r.isExecuted=!0,n.add(r.id),e.push(r))}const Mt=()=>{};var yt=["var","let","const","init","get","set","constructor","method","-","+","!","~","typeof","void","delete","++","--","==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","||","&&","in","instanceof","**","??","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&=","**=","&&=","||=","??=","pure","noSideEffects","sourcemap","using","await using"];const ws="_rollupAnnotations",Ph="_rollupRemoved",Rt=(t,e)=>{if(t===0)return Qe;const n=e[t++],s=new Array(n);for(let r=0;r<n;r++)s[r]=qm(e[t++],e);return s},qm=(t,e)=>{const n=e[t++];return{end:e[t++],start:n,type:yt[e[t]]}},Vn={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["decorators","id","superClass","body"],ClassExpression:["decorators","id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],Decorator:["expression"],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["exported","source","attributes"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["specifiers","source","attributes","declaration"],ExportSpecifier:["local","exported"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportAttribute:["key","value"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportExpression:["source","options"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["decorators","key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PanicError:[],ParseError:[],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["decorators","key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],YieldExpression:["argument"]},$h="variables",Xt=Symbol("IS_SKIPPED_CHAIN");class te extends Pt{get deoptimized(){return Le(this.flags,2)}set deoptimized(e){this.flags=Me(this.flags,2,e)}constructor(e,n){super(),this.parent=e,this.scope=n,this.createScope(n)}addExportedVariables(e,n){}bind(){for(const e of Vn[this.type]){const n=this[e];if(Array.isArray(n))for(const s of n)s?.bind();else n&&n.bind()}}createScope(e){this.scope=e}hasEffects(e){this.deoptimized||this.applyDeoptimizations();for(const n of Vn[this.type]){const s=this[n];if(s!==null){if(Array.isArray(s)){for(const r of s)if(r?.hasEffects(e))return!0}else if(s.hasEffects(e))return!0}}return!1}hasEffectsAsAssignmentTarget(e,n){return this.hasEffects(e)||this.hasEffectsOnInteractionAtPath(ue,this.assignmentInteraction,e)}include(e,n,s){this.included||this.includeNode(e);for(const r of Vn[this.type]){const i=this[r];if(i!==null)if(Array.isArray(i))for(const a of i)a?.include(e,n);else i.include(e,n)}}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations();for(const n of Vn[this.type]){const s=this[n];if(s!==null)if(Array.isArray(s))for(const r of s)r?.includePath(le,e);else s.includePath(le,e)}}includeAsAssignmentTarget(e,n,s){this.include(e,n)}initialise(){this.scope.context.magicString.addSourcemapLocation(this.start),this.scope.context.magicString.addSourcemapLocation(this.end)}parseNode(e){for(const[n,s]of Object.entries(e))if(!this.hasOwnProperty(n))if(n.charCodeAt(0)===95)n===ws?this.annotations=s:n===Ph&&(this.invalidAnnotations=s);else if(typeof s!="object"||s===null)this[n]=s;else if(Array.isArray(s)){this[n]=new Array(s.length);let r=0;for(const i of s)this[n][r++]=i===null?null:new(this.scope.context.getNodeConstructor(i.type))(this,this.scope).parseNode(i)}else this[n]=new(this.scope.context.getNodeConstructor(s.type))(this,this.scope).parseNode(s);return Vn[e.type]||=function(n){return Object.keys(n).filter(s=>typeof n[s]=="object"&&s.charCodeAt(0)!==95)}(e),this.initialise(),this}removeAnnotations(e){if(this.annotations)for(const n of this.annotations)e.remove(n.start,n.end)}render(e,n){for(const s of Vn[this.type]){const r=this[s];if(r!==null)if(Array.isArray(r))for(const i of r)i?.render(e,n);else r.render(e,n)}}setAssignedValue(e){this.assignmentInteraction={args:[null,e],type:1}}shouldBeIncluded(e){return this.included||!e.brokenFlow&&this.hasEffects(Mn())}applyDeoptimizations(){this.deoptimized=!0;for(const e of Vn[this.type]){const n=this[e];if(n!==null)if(Array.isArray(n))for(const s of n)s?.deoptimizePath(le);else n.deoptimizePath(le)}this.scope.context.requestTreeshakingPass()}}function dt(){this.included=!0,this.deoptimized||this.applyDeoptimizations()}function ze(){this.included=!0}function Te(){this.deoptimized=!0}function Hm(t){return t instanceof te&&t.type===ra}function Gm(t){return t instanceof te&&t.type==="FunctionExpression"}function Wm(t){return t instanceof te&&t.type===Ys}function Xm(t){return t instanceof te&&t.type==="MemberExpression"}function fa(t){return t instanceof te&&t.type==="ImportExpression"}function Km(t){return t instanceof te&&t.type===ia}function nr(t,e=null){return Object.create(e,t)}const un=new class extends Pt{getLiteralValueAtPath(t){return t.length>0?Ce:void 0}},Un={value:{hasEffectsWhenCalled:null,returns:Pe}},ma=new class extends Pt{getReturnExpressionWhenCalledAtPath(t){return t.length===1?ir(ya,t[0]):it}hasEffectsOnInteractionAtPath(t,e,n){return e.type===0?t.length>1:e.type!==2||t.length!==1||rr(ya,t[0],e,n)}},wn={value:{hasEffectsWhenCalled:null,returns:ma}},Ss=new class extends Pt{getReturnExpressionWhenCalledAtPath(t){return t.length===1?ir(ba,t[0]):it}hasEffectsOnInteractionAtPath(t,e,n){return e.type===0?t.length>1:e.type!==2||t.length!==1||rr(ba,t[0],e,n)}},Is={value:{hasEffectsWhenCalled:null,returns:Ss}},ga=new class extends Pt{getReturnExpressionWhenCalledAtPath(t){return t.length===1?ir(sr,t[0]):it}hasEffectsOnInteractionAtPath(t,e,n){return e.type===0?t.length>1:e.type!==2||t.length!==1||rr(sr,t[0],e,n)}},Re={value:{hasEffectsWhenCalled:null,returns:ga}},Nh={value:{hasEffectsWhenCalled({args:t},e){const n=t[2];return t.length<3||typeof n.getLiteralValueAtPath(ue,Ge,{deoptimizeCache(){}})=="symbol"&&n.hasEffectsOnInteractionAtPath(ue,Js,e)},returns:ga}},yi=nr({hasOwnProperty:wn,isPrototypeOf:wn,propertyIsEnumerable:wn,toLocaleString:Re,toString:Re,valueOf:Un}),ya=nr({valueOf:wn},yi),ba=nr({toExponential:Re,toFixed:Re,toLocaleString:Re,toPrecision:Re,valueOf:Is},yi),Jm=nr({exec:Un,test:wn},yi),sr=nr({anchor:Re,at:Un,big:Re,blink:Re,bold:Re,charAt:Re,charCodeAt:Is,codePointAt:Un,concat:Re,endsWith:wn,fixed:Re,fontcolor:Re,fontsize:Re,includes:wn,indexOf:Is,italics:Re,lastIndexOf:Is,link:Re,localeCompare:Is,match:Un,matchAll:Un,normalize:Re,padEnd:Re,padStart:Re,repeat:Re,replace:Nh,replaceAll:Nh,search:Is,slice:Re,small:Re,split:Un,startsWith:wn,strike:Re,sub:Re,substr:Re,substring:Re,sup:Re,toLocaleLowerCase:Re,toLocaleUpperCase:Re,toLowerCase:Re,toString:Re,toUpperCase:Re,trim:Re,trimEnd:Re,trimLeft:Re,trimRight:Re,trimStart:Re,valueOf:Re},yi);function rr(t,e,n,s){return typeof e!="string"||!t[e]||t[e].hasEffectsWhenCalled?.(n,s)||!1}function ir(t,e){return typeof e=="string"&&t[e]?[t[e].returns,!1]:it}class xt extends Pt{constructor(e){super(),this.description=e}deoptimizeArgumentsOnInteractionAtPath({args:e,type:n},s){if(n===2&&s.length===0&&(this.description.mutatesSelfAsArray&&e[0]?.deoptimizePath(ta),this.description.mutatesArgs))for(let r=1;r<e.length;r++)e[r].deoptimizePath(le)}getReturnExpressionWhenCalledAtPath(e,{args:n}){return e.length>0?it:[this.description.returnsPrimitive||(this.description.returns==="self"?n[0]||Pe:this.description.returns()),!1]}hasEffectsOnInteractionAtPath(e,{args:n,type:s},r){if(e.length>(s===0?1:0))return!0;if(s===2){if(this.description.mutatesSelfAsArray===!0&&n[0]?.hasEffectsOnInteractionAtPath(ta,sa,r))return!0;if(this.description.callsArgs){for(const i of this.description.callsArgs)if(n[i+1]?.hasEffectsOnInteractionAtPath(ue,Js,r))return!0}}return!1}}const bi=[new xt({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:ma})],or=[new xt({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:ga})],Ch=[new xt({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:Ss})],Th=[new xt({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:Pe})],ar=/^\d+$/;class $t extends Pt{get hasLostTrack(){return Le(this.flags,2048)}set hasLostTrack(e){this.flags=Me(this.flags,2048,e)}get hasUnknownDeoptimizedInteger(){return Le(this.flags,4096)}set hasUnknownDeoptimizedInteger(e){this.flags=Me(this.flags,4096,e)}get hasUnknownDeoptimizedProperty(){return Le(this.flags,8192)}set hasUnknownDeoptimizedProperty(e){this.flags=Me(this.flags,8192,e)}constructor(e,n,s=!1){if(super(),this.prototypeExpression=n,this.immutable=s,this.additionalExpressionsToBeDeoptimized=new Set,this.allProperties=[],this.deoptimizedPaths=Object.create(null),this.expressionsToBeDeoptimizedByKey=Object.create(null),this.gettersByKey=Object.create(null),this.propertiesAndGettersByKey=Object.create(null),this.propertiesAndSettersByKey=Object.create(null),this.settersByKey=Object.create(null),this.unknownIntegerProps=[],this.unmatchableGetters=[],this.unmatchablePropertiesAndGetters=[],this.unmatchablePropertiesAndSetters=[],this.unmatchableSetters=[],Array.isArray(e))this.buildPropertyMaps(e);else{this.propertiesAndGettersByKey=this.propertiesAndSettersByKey=e;for(const r of Object.values(e))this.allProperties.push(...r)}}deoptimizeAllProperties(e){const n=this.hasLostTrack||this.hasUnknownDeoptimizedProperty;if(e?this.hasUnknownDeoptimizedProperty=!0:this.hasLostTrack=!0,!n){for(const s of[...Object.values(this.propertiesAndGettersByKey),...Object.values(this.settersByKey)])for(const r of s)r.deoptimizePath(le);this.prototypeExpression?.deoptimizePath([_e,_e]),this.deoptimizeCachedEntities()}}deoptimizeArgumentsOnInteractionAtPath(e,n,s){const[r,...i]=n,{args:a,type:l}=e;if(this.hasLostTrack||(l===2||n.length>1)&&(this.hasUnknownDeoptimizedProperty||typeof r=="string"&&this.deoptimizedPaths[r]))return void En(e);const[c,u,d]=l===2||n.length>1?[this.propertiesAndGettersByKey,this.propertiesAndGettersByKey,this.unmatchablePropertiesAndGetters]:l===0?[this.propertiesAndGettersByKey,this.gettersByKey,this.unmatchableGetters]:[this.propertiesAndSettersByKey,this.settersByKey,this.unmatchableSetters];if(typeof r=="string"){if(c[r]){const m=u[r];if(m)for(const f of m)f.deoptimizeArgumentsOnInteractionAtPath(e,i,s);if(!this.immutable)for(const f of a)f&&this.additionalExpressionsToBeDeoptimized.add(f);return}for(const m of d)m.deoptimizeArgumentsOnInteractionAtPath(e,i,s);if(ar.test(r))for(const m of this.unknownIntegerProps)m.deoptimizeArgumentsOnInteractionAtPath(e,i,s)}else{for(const m of[...Object.values(u),d])for(const f of m)f.deoptimizeArgumentsOnInteractionAtPath(e,i,s);for(const m of this.unknownIntegerProps)m.deoptimizeArgumentsOnInteractionAtPath(e,i,s)}if(!this.immutable)for(const m of a)m&&this.additionalExpressionsToBeDeoptimized.add(m);this.prototypeExpression?.deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizeIntegerProperties(){if(!(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||this.hasUnknownDeoptimizedInteger)){this.hasUnknownDeoptimizedInteger=!0;for(const[e,n]of Object.entries(this.propertiesAndGettersByKey))if(ar.test(e))for(const s of n)s.deoptimizePath(le);this.deoptimizeCachedIntegerEntities()}}deoptimizePath(e){if(this.hasLostTrack||this.immutable)return;const n=e[0];if(e.length===1){if(n===ms)return this.deoptimizeIntegerProperties();if(typeof n!="string")return this.deoptimizeAllProperties(n===si);if(!this.deoptimizedPaths[n]){this.deoptimizedPaths[n]=!0;const r=this.expressionsToBeDeoptimizedByKey[n];if(r)for(const i of r)i.deoptimizeCache()}}const s=e.length===1?le:e.slice(1);for(const r of typeof n=="string"?[...this.propertiesAndGettersByKey[n]||this.unmatchablePropertiesAndGetters,...this.settersByKey[n]||this.unmatchableSetters]:this.allProperties)r.deoptimizePath(s);this.prototypeExpression?.deoptimizePath(e.length===1?[e[0],_e]:e)}getLiteralValueAtPath(e,n,s){if(e.length===0)return Ce;const r=e[0],i=this.getMemberExpressionAndTrackDeopt(r,s);return i?i.getLiteralValueAtPath(e.slice(1),n,s):this.prototypeExpression?this.prototypeExpression.getLiteralValueAtPath(e,n,s):e.length!==1?Ce:void 0}getReturnExpressionWhenCalledAtPath(e,n,s,r){if(e.length===0)return it;const[i,...a]=e,l=this.getMemberExpressionAndTrackDeopt(i,r);return l?l.getReturnExpressionWhenCalledAtPath(a,n,s,r):this.prototypeExpression?this.prototypeExpression.getReturnExpressionWhenCalledAtPath(e,n,s,r):it}hasEffectsOnInteractionAtPath(e,n,s){const[r,...i]=e;if(i.length>0||n.type===2){const u=this.getMemberExpression(r);return u?u.hasEffectsOnInteractionAtPath(i,n,s):!this.prototypeExpression||this.prototypeExpression.hasEffectsOnInteractionAtPath(e,n,s)}if(r===si)return!1;if(this.hasLostTrack)return!0;const[a,l,c]=n.type===0?[this.propertiesAndGettersByKey,this.gettersByKey,this.unmatchableGetters]:[this.propertiesAndSettersByKey,this.settersByKey,this.unmatchableSetters];if(typeof r=="string"){if(a[r]){const u=l[r];if(u){for(const d of u)if(d.hasEffectsOnInteractionAtPath(i,n,s))return!0}return!1}for(const u of c)if(u.hasEffectsOnInteractionAtPath(i,n,s))return!0}else for(const u of[...Object.values(l),c])for(const d of u)if(d.hasEffectsOnInteractionAtPath(i,n,s))return!0;return!!this.prototypeExpression&&this.prototypeExpression.hasEffectsOnInteractionAtPath(e,n,s)}include(e,n){this.included=!0;for(const s of this.allProperties)(n||s.shouldBeIncluded(e))&&s.include(e,n);this.prototypeExpression?.include(e,n)}includePath(e,n){if(this.included=!0,e.length===0)return;const[s,...r]=e,[i,a]=typeof s=="string"?[new Set([...this.propertiesAndGettersByKey[s]||this.unmatchablePropertiesAndGetters,...this.propertiesAndSettersByKey[s]||this.unmatchablePropertiesAndSetters]),r]:[this.allProperties,le];for(const l of i)l.includePath(a,n);this.prototypeExpression?.includePath(e,n)}buildPropertyMaps(e){const{allProperties:n,propertiesAndGettersByKey:s,propertiesAndSettersByKey:r,settersByKey:i,gettersByKey:a,unknownIntegerProps:l,unmatchablePropertiesAndGetters:c,unmatchablePropertiesAndSetters:u,unmatchableGetters:d,unmatchableSetters:m}=this;for(let f=e.length-1;f>=0;f--){const{key:g,kind:w,property:k}=e[f];if(n.push(k),typeof g=="string")w==="set"?r[g]||(r[g]=[k,...u],i[g]=[k,...m]):w==="get"?s[g]||(s[g]=[k,...c],a[g]=[k,...d]):(r[g]||(r[g]=[k,...u]),s[g]||(s[g]=[k,...c]));else{if(g===ms){l.push(k);continue}w==="set"&&m.push(k),w==="get"&&d.push(k),w!=="get"&&u.push(k),w!=="set"&&c.push(k)}}}deoptimizeCachedEntities(){for(const e of Object.values(this.expressionsToBeDeoptimizedByKey))for(const n of e)n.deoptimizeCache();for(const e of this.additionalExpressionsToBeDeoptimized)e.deoptimizePath(le)}deoptimizeCachedIntegerEntities(){for(const[e,n]of Object.entries(this.expressionsToBeDeoptimizedByKey))if(ar.test(e))for(const s of n)s.deoptimizeCache();for(const e of this.additionalExpressionsToBeDeoptimized)e.deoptimizePath(ta)}getMemberExpression(e){if(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||typeof e!="string"||this.hasUnknownDeoptimizedInteger&&ar.test(e)||this.deoptimizedPaths[e])return Pe;const n=this.propertiesAndGettersByKey[e];return n?.length===1?n[0]:n||this.unmatchablePropertiesAndGetters.length>0||this.unknownIntegerProps.length>0&&ar.test(e)?Pe:null}getMemberExpressionAndTrackDeopt(e,n){if(typeof e!="string")return Pe;const s=this.getMemberExpression(e);return s!==Pe&&!this.immutable&&(this.expressionsToBeDeoptimizedByKey[e]=this.expressionsToBeDeoptimizedByKey[e]||[]).push(n),s}}const Rh=t=>typeof t=="string"&&/^\d+$/.test(t),Ym=new class extends Pt{deoptimizeArgumentsOnInteractionAtPath(t,e){t.type!==2||e.length!==1||Rh(e[0])||En(t)}getLiteralValueAtPath(t){return t.length===1&&Rh(t[0])?void 0:Ce}hasEffectsOnInteractionAtPath(t,{type:e}){return t.length>1||e===2}},Sn=new $t({__proto__:null,hasOwnProperty:bi,isPrototypeOf:bi,propertyIsEnumerable:bi,toLocaleString:or,toString:or,valueOf:Th},Ym,!0),xa=[{key:ms,kind:"init",property:Pe},{key:"length",kind:"init",property:Ss}],Dh=[new xt({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:ma})],Oh=[new xt({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:Ss})],Qm=[new xt({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!0,returns:()=>new $t(xa,ki),returnsPrimitive:null})],xi=[new xt({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:()=>new $t(xa,ki),returnsPrimitive:null})],ka=[new xt({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:()=>new $t(xa,ki),returnsPrimitive:null})],Lh=[new xt({callsArgs:null,mutatesArgs:!0,mutatesSelfAsArray:!0,returns:null,returnsPrimitive:Ss})],Mh=[new xt({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!0,returns:null,returnsPrimitive:Pe})],Fh=[new xt({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:Pe})],lr=[new xt({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:Pe})],Ea=[new xt({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!0,returns:"self",returnsPrimitive:null})],Zm=[new xt({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:!0,returns:"self",returnsPrimitive:null})],ki=new $t({__proto__:null,at:Fh,concat:xi,copyWithin:Ea,entries:xi,every:Dh,fill:Ea,filter:ka,find:lr,findIndex:Oh,findLast:lr,findLastIndex:Oh,flat:xi,flatMap:ka,forEach:lr,includes:bi,indexOf:Ch,join:or,keys:Th,lastIndexOf:Ch,map:ka,pop:Mh,push:Lh,reduce:lr,reduceRight:lr,reverse:Ea,shift:Mh,slice:xi,some:Dh,sort:Zm,splice:Qm,toLocaleString:or,toString:or,unshift:Lh,values:Fh},Sn,!0);class qn extends te{deoptimizeArgumentsOnInteractionAtPath(e,n,s){n.length>0&&this.argument.deoptimizeArgumentsOnInteractionAtPath(e,le,s)}hasEffects(e){this.deoptimized||this.applyDeoptimizations();const{propertyReadSideEffects:n}=this.scope.context.options.treeshake;return this.argument.hasEffects(e)||n&&(n==="always"||this.argument.hasEffectsOnInteractionAtPath(le,An,e))}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.argument.includePath(le,e)}applyDeoptimizations(){this.deoptimized=!0,this.argument.deoptimizePath([_e,_e]),this.scope.context.requestTreeshakingPass()}}class Aa extends te{constructor(){super(...arguments),this.objectEntity=null}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizePath(e){this.getObjectEntity().deoptimizePath(e)}getLiteralValueAtPath(e,n,s){return this.getObjectEntity().getLiteralValueAtPath(e,n,s)}getReturnExpressionWhenCalledAtPath(e,n,s,r){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(e,n,s,r)}hasEffectsOnInteractionAtPath(e,n,s){return this.getObjectEntity().hasEffectsOnInteractionAtPath(e,n,s)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations();for(const n of this.elements)n&&n?.includePath(le,e)}applyDeoptimizations(){this.deoptimized=!0;let e=!1;for(let n=0;n<this.elements.length;n++){const s=this.elements[n];s&&(e||s instanceof qn)&&(e=!0,s.deoptimizePath(le))}this.scope.context.requestTreeshakingPass()}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;const e=[{key:"length",kind:"init",property:Ss}];let n=!1;for(let s=0;s<this.elements.length;s++){const r=this.elements[s];n||r instanceof qn?r&&(n=!0,e.unshift({key:ms,kind:"init",property:r})):r?e.push({key:String(s),kind:"init",property:r}):e.push({key:String(s),kind:"init",property:un})}return this.objectEntity=new $t(e,ki)}}const Ke=Symbol("Value Properties"),Hn=()=>Ce,Bh=()=>!1,wa=()=>!0,Kt={deoptimizeArgumentsOnCall:Mt,getLiteralValue:Hn,hasEffectsWhenCalled:Bh},hn={deoptimizeArgumentsOnCall:Mt,getLiteralValue:Hn,hasEffectsWhenCalled:wa},eg={deoptimizeArgumentsOnCall:Mt,getLiteralValue:Hn,hasEffectsWhenCalled:({args:t})=>t.length>1&&!(t[1]instanceof Aa)},tg={deoptimizeArgumentsOnCall:Mt,getLiteralValue:Hn,hasEffectsWhenCalled({args:t},e){const[n,s]=t;return!(s instanceof Pt)||s.hasEffectsOnInteractionAtPath(le,An,e)}},W={__proto__:null,[Ke]:hn},pe={__proto__:null,[Ke]:Kt},jh={__proto__:null,[Ke]:tg},Sa={__proto__:null,[Ke]:{deoptimizeArgumentsOnCall({args:[,t]}){t?.deoptimizePath(le)},getLiteralValue:Hn,hasEffectsWhenCalled:({args:t},e)=>t.length<=1||t[1].hasEffectsOnInteractionAtPath(Am,sa,e)}},p={__proto__:null,[Ke]:hn,prototype:W},Ft={__proto__:null,[Ke]:Kt,prototype:W},cr={__proto__:null,[Ke]:eg,prototype:W},dn={__proto__:null,[Ke]:Kt,from:W,of:pe,prototype:W},pn={__proto__:null,[Ke]:Kt,supportedLocalesOf:Ft},Ia={global:W,globalThis:W,self:W,window:W,__proto__:null,[Ke]:hn,Array:{__proto__:null,[Ke]:hn,from:W,isArray:pe,of:pe,prototype:W},ArrayBuffer:{__proto__:null,[Ke]:Kt,isView:pe,prototype:W},AggregateError:cr,Atomics:W,BigInt:p,BigInt64Array:p,BigUint64Array:p,Boolean:Ft,constructor:p,DataView:Ft,Date:{__proto__:null,[Ke]:Kt,now:pe,parse:pe,prototype:W,UTC:pe},decodeURI:pe,decodeURIComponent:pe,encodeURI:pe,encodeURIComponent:pe,Error:Ft,escape:pe,eval:W,EvalError:Ft,FinalizationRegistry:p,Float32Array:dn,Float64Array:dn,Function:p,hasOwnProperty:W,Infinity:W,Int16Array:dn,Int32Array:dn,Int8Array:dn,isFinite:pe,isNaN:pe,isPrototypeOf:W,JSON:W,Map:cr,Math:{__proto__:null,[Ke]:hn,abs:pe,acos:pe,acosh:pe,asin:pe,asinh:pe,atan:pe,atan2:pe,atanh:pe,cbrt:pe,ceil:pe,clz32:pe,cos:pe,cosh:pe,exp:pe,expm1:pe,floor:pe,fround:pe,hypot:pe,imul:pe,log:pe,log10:pe,log1p:pe,log2:pe,max:pe,min:pe,pow:pe,random:pe,round:pe,sign:pe,sin:pe,sinh:pe,sqrt:pe,tan:pe,tanh:pe,trunc:pe},NaN:W,Number:{__proto__:null,[Ke]:Kt,isFinite:pe,isInteger:pe,isNaN:pe,isSafeInteger:pe,parseFloat:pe,parseInt:pe,prototype:W},Object:{__proto__:null,[Ke]:Kt,create:pe,defineProperty:Sa,defineProperties:Sa,freeze:Sa,getOwnPropertyDescriptor:pe,getOwnPropertyDescriptors:pe,getOwnPropertyNames:pe,getOwnPropertySymbols:pe,getPrototypeOf:pe,hasOwn:pe,is:pe,isExtensible:pe,isFrozen:pe,isSealed:pe,keys:pe,fromEntries:W,entries:jh,values:jh,prototype:W},parseFloat:pe,parseInt:pe,Promise:{__proto__:null,[Ke]:hn,all:W,allSettled:W,any:W,prototype:W,race:W,reject:W,resolve:W},propertyIsEnumerable:W,Proxy:{__proto__:null,[Ke]:{deoptimizeArgumentsOnCall:({args:[,t,e]})=>{if((n=e)instanceof te&&n.type==="ObjectExpression"&&!e.properties.some(r=>!function(i){return i instanceof te&&i.type===Ku}(r))){for(const r of e.properties)r.deoptimizeArgumentsOnInteractionAtPath({args:[null,t],type:2,withNew:!1},ue,Ge);return}var n;t.deoptimizePath(le)},getLiteralValue:Hn,hasEffectsWhenCalled:wa}},RangeError:Ft,ReferenceError:Ft,Reflect:W,RegExp:Ft,Set:cr,SharedArrayBuffer:p,String:{__proto__:null,[Ke]:Kt,fromCharCode:pe,fromCodePoint:pe,prototype:W,raw:pe},Symbol:{__proto__:null,[Ke]:Kt,for:pe,keyFor:pe,prototype:W,toStringTag:{__proto__:null,[Ke]:{deoptimizeArgumentsOnCall:Mt,getLiteralValue:()=>ea,hasEffectsWhenCalled:wa}}},SyntaxError:Ft,toLocaleString:W,toString:W,TypeError:Ft,Uint16Array:dn,Uint32Array:dn,Uint8Array:dn,Uint8ClampedArray:dn,unescape:pe,URIError:Ft,valueOf:W,WeakMap:cr,WeakRef:p,WeakSet:cr,clearInterval:p,clearTimeout:p,console:{__proto__:null,[Ke]:hn,assert:p,clear:p,count:p,countReset:p,debug:p,dir:p,dirxml:p,error:p,exception:p,group:p,groupCollapsed:p,groupEnd:p,info:p,log:p,table:p,time:p,timeEnd:p,timeLog:p,trace:p,warn:p},Intl:{__proto__:null,[Ke]:hn,Collator:pn,DateTimeFormat:pn,DisplayNames:pn,ListFormat:pn,Locale:pn,NumberFormat:pn,PluralRules:pn,RelativeTimeFormat:pn,Segmenter:pn},setInterval:p,setTimeout:p,TextDecoder:p,TextEncoder:p,URL:{__proto__:null,[Ke]:hn,prototype:W,canParse:pe},URLSearchParams:p,AbortController:p,AbortSignal:p,addEventListener:W,alert:W,AnalyserNode:p,Animation:p,AnimationEvent:p,applicationCache:W,ApplicationCache:p,ApplicationCacheErrorEvent:p,atob:W,Attr:p,Audio:p,AudioBuffer:p,AudioBufferSourceNode:p,AudioContext:p,AudioDestinationNode:p,AudioListener:p,AudioNode:p,AudioParam:p,AudioProcessingEvent:p,AudioScheduledSourceNode:p,AudioWorkletNode:p,BarProp:p,BaseAudioContext:p,BatteryManager:p,BeforeUnloadEvent:p,BiquadFilterNode:p,Blob:p,BlobEvent:p,blur:W,BroadcastChannel:p,btoa:W,ByteLengthQueuingStrategy:p,Cache:p,caches:W,CacheStorage:p,cancelAnimationFrame:W,cancelIdleCallback:W,CanvasCaptureMediaStreamTrack:p,CanvasGradient:p,CanvasPattern:p,CanvasRenderingContext2D:p,ChannelMergerNode:p,ChannelSplitterNode:p,CharacterData:p,clientInformation:W,ClipboardEvent:p,close:W,closed:W,CloseEvent:p,Comment:p,CompositionEvent:p,confirm:W,ConstantSourceNode:p,ConvolverNode:p,CountQueuingStrategy:p,createImageBitmap:W,Credential:p,CredentialsContainer:p,crypto:W,Crypto:p,CryptoKey:p,CSS:p,CSSConditionRule:p,CSSFontFaceRule:p,CSSGroupingRule:p,CSSImportRule:p,CSSKeyframeRule:p,CSSKeyframesRule:p,CSSMediaRule:p,CSSNamespaceRule:p,CSSPageRule:p,CSSRule:p,CSSRuleList:p,CSSStyleDeclaration:p,CSSStyleRule:p,CSSStyleSheet:p,CSSSupportsRule:p,CustomElementRegistry:p,customElements:W,CustomEvent:{__proto__:null,[Ke]:{deoptimizeArgumentsOnCall({args:t}){t[2]?.deoptimizePath(["detail"])},getLiteralValue:Hn,hasEffectsWhenCalled:Bh},prototype:W},DataTransfer:p,DataTransferItem:p,DataTransferItemList:p,defaultstatus:W,defaultStatus:W,DelayNode:p,DeviceMotionEvent:p,DeviceOrientationEvent:p,devicePixelRatio:W,dispatchEvent:W,document:W,Document:p,DocumentFragment:p,DocumentType:p,DOMError:p,DOMException:p,DOMImplementation:p,DOMMatrix:p,DOMMatrixReadOnly:p,DOMParser:p,DOMPoint:p,DOMPointReadOnly:p,DOMQuad:p,DOMRect:p,DOMRectReadOnly:p,DOMStringList:p,DOMStringMap:p,DOMTokenList:p,DragEvent:p,DynamicsCompressorNode:p,Element:p,ErrorEvent:p,Event:p,EventSource:p,EventTarget:p,external:W,fetch:W,File:p,FileList:p,FileReader:p,find:W,focus:W,FocusEvent:p,FontFace:p,FontFaceSetLoadEvent:p,FormData:p,frames:W,GainNode:p,Gamepad:p,GamepadButton:p,GamepadEvent:p,getComputedStyle:W,getSelection:W,HashChangeEvent:p,Headers:p,history:W,History:p,HTMLAllCollection:p,HTMLAnchorElement:p,HTMLAreaElement:p,HTMLAudioElement:p,HTMLBaseElement:p,HTMLBodyElement:p,HTMLBRElement:p,HTMLButtonElement:p,HTMLCanvasElement:p,HTMLCollection:p,HTMLContentElement:p,HTMLDataElement:p,HTMLDataListElement:p,HTMLDetailsElement:p,HTMLDialogElement:p,HTMLDirectoryElement:p,HTMLDivElement:p,HTMLDListElement:p,HTMLDocument:p,HTMLElement:p,HTMLEmbedElement:p,HTMLFieldSetElement:p,HTMLFontElement:p,HTMLFormControlsCollection:p,HTMLFormElement:p,HTMLFrameElement:p,HTMLFrameSetElement:p,HTMLHeadElement:p,HTMLHeadingElement:p,HTMLHRElement:p,HTMLHtmlElement:p,HTMLIFrameElement:p,HTMLImageElement:p,HTMLInputElement:p,HTMLLabelElement:p,HTMLLegendElement:p,HTMLLIElement:p,HTMLLinkElement:p,HTMLMapElement:p,HTMLMarqueeElement:p,HTMLMediaElement:p,HTMLMenuElement:p,HTMLMetaElement:p,HTMLMeterElement:p,HTMLModElement:p,HTMLObjectElement:p,HTMLOListElement:p,HTMLOptGroupElement:p,HTMLOptionElement:p,HTMLOptionsCollection:p,HTMLOutputElement:p,HTMLParagraphElement:p,HTMLParamElement:p,HTMLPictureElement:p,HTMLPreElement:p,HTMLProgressElement:p,HTMLQuoteElement:p,HTMLScriptElement:p,HTMLSelectElement:p,HTMLShadowElement:p,HTMLSlotElement:p,HTMLSourceElement:p,HTMLSpanElement:p,HTMLStyleElement:p,HTMLTableCaptionElement:p,HTMLTableCellElement:p,HTMLTableColElement:p,HTMLTableElement:p,HTMLTableRowElement:p,HTMLTableSectionElement:p,HTMLTemplateElement:p,HTMLTextAreaElement:p,HTMLTimeElement:p,HTMLTitleElement:p,HTMLTrackElement:p,HTMLUListElement:p,HTMLUnknownElement:p,HTMLVideoElement:p,IDBCursor:p,IDBCursorWithValue:p,IDBDatabase:p,IDBFactory:p,IDBIndex:p,IDBKeyRange:p,IDBObjectStore:p,IDBOpenDBRequest:p,IDBRequest:p,IDBTransaction:p,IDBVersionChangeEvent:p,IdleDeadline:p,IIRFilterNode:p,Image:p,ImageBitmap:p,ImageBitmapRenderingContext:p,ImageCapture:p,ImageData:p,indexedDB:W,innerHeight:W,innerWidth:W,InputEvent:p,IntersectionObserver:p,IntersectionObserverEntry:p,isSecureContext:W,KeyboardEvent:p,KeyframeEffect:p,length:W,localStorage:W,location:W,Location:p,locationbar:W,matchMedia:W,MediaDeviceInfo:p,MediaDevices:p,MediaElementAudioSourceNode:p,MediaEncryptedEvent:p,MediaError:p,MediaKeyMessageEvent:p,MediaKeySession:p,MediaKeyStatusMap:p,MediaKeySystemAccess:p,MediaList:p,MediaQueryList:p,MediaQueryListEvent:p,MediaRecorder:p,MediaSettingsRange:p,MediaSource:p,MediaStream:p,MediaStreamAudioDestinationNode:p,MediaStreamAudioSourceNode:p,MediaStreamEvent:p,MediaStreamTrack:p,MediaStreamTrackEvent:p,menubar:W,MessageChannel:p,MessageEvent:p,MessagePort:p,MIDIAccess:p,MIDIConnectionEvent:p,MIDIInput:p,MIDIInputMap:p,MIDIMessageEvent:p,MIDIOutput:p,MIDIOutputMap:p,MIDIPort:p,MimeType:p,MimeTypeArray:p,MouseEvent:p,moveBy:W,moveTo:W,MutationEvent:p,MutationObserver:p,MutationRecord:p,name:W,NamedNodeMap:p,NavigationPreloadManager:p,navigator:W,Navigator:p,NetworkInformation:p,Node:p,NodeFilter:W,NodeIterator:p,NodeList:p,Notification:p,OfflineAudioCompletionEvent:p,OfflineAudioContext:p,offscreenBuffering:W,OffscreenCanvas:p,open:W,openDatabase:W,Option:p,origin:W,OscillatorNode:p,outerHeight:W,outerWidth:W,PageTransitionEvent:p,pageXOffset:W,pageYOffset:W,PannerNode:p,parent:W,Path2D:p,PaymentAddress:p,PaymentRequest:p,PaymentRequestUpdateEvent:p,PaymentResponse:p,performance:W,Performance:p,PerformanceEntry:p,PerformanceLongTaskTiming:p,PerformanceMark:p,PerformanceMeasure:p,PerformanceNavigation:p,PerformanceNavigationTiming:p,PerformanceObserver:p,PerformanceObserverEntryList:p,PerformancePaintTiming:p,PerformanceResourceTiming:p,PerformanceTiming:p,PeriodicWave:p,Permissions:p,PermissionStatus:p,personalbar:W,PhotoCapabilities:p,Plugin:p,PluginArray:p,PointerEvent:p,PopStateEvent:p,postMessage:W,Presentation:p,PresentationAvailability:p,PresentationConnection:p,PresentationConnectionAvailableEvent:p,PresentationConnectionCloseEvent:p,PresentationConnectionList:p,PresentationReceiver:p,PresentationRequest:p,print:W,ProcessingInstruction:p,ProgressEvent:p,PromiseRejectionEvent:p,prompt:W,PushManager:p,PushSubscription:p,PushSubscriptionOptions:p,queueMicrotask:W,RadioNodeList:p,Range:p,ReadableStream:p,RemotePlayback:p,removeEventListener:W,Request:p,requestAnimationFrame:W,requestIdleCallback:W,resizeBy:W,ResizeObserver:p,ResizeObserverEntry:p,resizeTo:W,Response:p,RTCCertificate:p,RTCDataChannel:p,RTCDataChannelEvent:p,RTCDtlsTransport:p,RTCIceCandidate:p,RTCIceTransport:p,RTCPeerConnection:p,RTCPeerConnectionIceEvent:p,RTCRtpReceiver:p,RTCRtpSender:p,RTCSctpTransport:p,RTCSessionDescription:p,RTCStatsReport:p,RTCTrackEvent:p,screen:W,Screen:p,screenLeft:W,ScreenOrientation:p,screenTop:W,screenX:W,screenY:W,ScriptProcessorNode:p,scroll:W,scrollbars:W,scrollBy:W,scrollTo:W,scrollX:W,scrollY:W,SecurityPolicyViolationEvent:p,Selection:p,ServiceWorker:p,ServiceWorkerContainer:p,ServiceWorkerRegistration:p,sessionStorage:W,ShadowRoot:p,SharedWorker:p,SourceBuffer:p,SourceBufferList:p,speechSynthesis:W,SpeechSynthesisEvent:p,SpeechSynthesisUtterance:p,StaticRange:p,status:W,statusbar:W,StereoPannerNode:p,stop:W,Storage:p,StorageEvent:p,StorageManager:p,styleMedia:W,StyleSheet:p,StyleSheetList:p,SubtleCrypto:p,SVGAElement:p,SVGAngle:p,SVGAnimatedAngle:p,SVGAnimatedBoolean:p,SVGAnimatedEnumeration:p,SVGAnimatedInteger:p,SVGAnimatedLength:p,SVGAnimatedLengthList:p,SVGAnimatedNumber:p,SVGAnimatedNumberList:p,SVGAnimatedPreserveAspectRatio:p,SVGAnimatedRect:p,SVGAnimatedString:p,SVGAnimatedTransformList:p,SVGAnimateElement:p,SVGAnimateMotionElement:p,SVGAnimateTransformElement:p,SVGAnimationElement:p,SVGCircleElement:p,SVGClipPathElement:p,SVGComponentTransferFunctionElement:p,SVGDefsElement:p,SVGDescElement:p,SVGDiscardElement:p,SVGElement:p,SVGEllipseElement:p,SVGFEBlendElement:p,SVGFEColorMatrixElement:p,SVGFEComponentTransferElement:p,SVGFECompositeElement:p,SVGFEConvolveMatrixElement:p,SVGFEDiffuseLightingElement:p,SVGFEDisplacementMapElement:p,SVGFEDistantLightElement:p,SVGFEDropShadowElement:p,SVGFEFloodElement:p,SVGFEFuncAElement:p,SVGFEFuncBElement:p,SVGFEFuncGElement:p,SVGFEFuncRElement:p,SVGFEGaussianBlurElement:p,SVGFEImageElement:p,SVGFEMergeElement:p,SVGFEMergeNodeElement:p,SVGFEMorphologyElement:p,SVGFEOffsetElement:p,SVGFEPointLightElement:p,SVGFESpecularLightingElement:p,SVGFESpotLightElement:p,SVGFETileElement:p,SVGFETurbulenceElement:p,SVGFilterElement:p,SVGForeignObjectElement:p,SVGGElement:p,SVGGeometryElement:p,SVGGradientElement:p,SVGGraphicsElement:p,SVGImageElement:p,SVGLength:p,SVGLengthList:p,SVGLinearGradientElement:p,SVGLineElement:p,SVGMarkerElement:p,SVGMaskElement:p,SVGMatrix:p,SVGMetadataElement:p,SVGMPathElement:p,SVGNumber:p,SVGNumberList:p,SVGPathElement:p,SVGPatternElement:p,SVGPoint:p,SVGPointList:p,SVGPolygonElement:p,SVGPolylineElement:p,SVGPreserveAspectRatio:p,SVGRadialGradientElement:p,SVGRect:p,SVGRectElement:p,SVGScriptElement:p,SVGSetElement:p,SVGStopElement:p,SVGStringList:p,SVGStyleElement:p,SVGSVGElement:p,SVGSwitchElement:p,SVGSymbolElement:p,SVGTextContentElement:p,SVGTextElement:p,SVGTextPathElement:p,SVGTextPositioningElement:p,SVGTitleElement:p,SVGTransform:p,SVGTransformList:p,SVGTSpanElement:p,SVGUnitTypes:p,SVGUseElement:p,SVGViewElement:p,TaskAttributionTiming:p,Text:p,TextEvent:p,TextMetrics:p,TextTrack:p,TextTrackCue:p,TextTrackCueList:p,TextTrackList:p,TimeRanges:p,toolbar:W,top:W,Touch:p,TouchEvent:p,TouchList:p,TrackEvent:p,TransitionEvent:p,TreeWalker:p,UIEvent:p,ValidityState:p,visualViewport:W,VisualViewport:p,VTTCue:p,WaveShaperNode:p,WebAssembly:W,WebGL2RenderingContext:p,WebGLActiveInfo:p,WebGLBuffer:p,WebGLContextEvent:p,WebGLFramebuffer:p,WebGLProgram:p,WebGLQuery:p,WebGLRenderbuffer:p,WebGLRenderingContext:p,WebGLSampler:p,WebGLShader:p,WebGLShaderPrecisionFormat:p,WebGLSync:p,WebGLTexture:p,WebGLTransformFeedback:p,WebGLUniformLocation:p,WebGLVertexArrayObject:p,WebSocket:p,WheelEvent:p,Window:p,Worker:p,WritableStream:p,XMLDocument:p,XMLHttpRequest:p,XMLHttpRequestEventTarget:p,XMLHttpRequestUpload:p,XMLSerializer:p,XPathEvaluator:p,XPathExpression:p,XPathResult:p,XSLTProcessor:p};for(const t of["window","global","self","globalThis"])Ia[t]=Ia;function vs(t){let e=Ia;for(const n of t)if(typeof n!="string"||(e=e[n],!e))return null;return e[Ke]}class va extends zn{constructor(e){super(e),this.markReassigned()}deoptimizeArgumentsOnInteractionAtPath(e,n,s){switch(e.type){case 0:case 1:return void(vs([this.name,...n].slice(0,-1))||super.deoptimizeArgumentsOnInteractionAtPath(e,n,s));case 2:{const r=vs([this.name,...n]);return void(r?r.deoptimizeArgumentsOnCall(e):super.deoptimizeArgumentsOnInteractionAtPath(e,n,s))}}}getLiteralValueAtPath(e,n,s){const r=vs([this.name,...e]);return r?r.getLiteralValue():Ce}hasEffectsOnInteractionAtPath(e,n,s){switch(n.type){case 0:return e.length===0?this.name!=="undefined"&&!vs([this.name]):!vs([this.name,...e].slice(0,-1));case 1:return!0;case 2:{const r=vs([this.name,...e]);return!r||r.hasEffectsWhenCalled(n,s)}}}}const zh=(t,e)=>{const{length:n}=t,{length:s}=e;return n===0?e:s===0?t:n+s>6?[...t,...e.slice(0,5-t.length),"UnknownKey"]:[...t,...e]};class Dt extends zn{constructor(e,n,s,r,i,a){super(e),this.init=s,this.initPath=r,this.kind=a,this.calledFromTryStatement=!1,this.additionalInitializers=null,this.includedPathTracker=new Sm,this.expressionsToBeDeoptimized=[],this.declarations=n?[n]:[],this.deoptimizationTracker=i.deoptimizationTracker,this.module=i.module}addDeclaration(e,n){this.declarations.push(e),this.markInitializersForDeoptimization().push(n)}consolidateInitializers(){if(this.additionalInitializers)for(const e of this.additionalInitializers)e.deoptimizePath(le)}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.isReassigned||n.length+this.initPath.length>6?En(e):s.withTrackedEntityAtPath(n,this.init,()=>{this.init.deoptimizeArgumentsOnInteractionAtPath(e,[...this.initPath,...n],s)},void 0)}deoptimizePath(e){if(!this.isReassigned&&!this.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(e,this))if(e.length===0){this.markReassigned();const n=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=Qe;for(const s of n)s.deoptimizeCache();this.init.deoptimizePath([...this.initPath,_e])}else this.init.deoptimizePath(zh(this.initPath,e))}getLiteralValueAtPath(e,n,s){return this.isReassigned||e.length+this.initPath.length>6?Ce:n.withTrackedEntityAtPath(e,this.init,()=>(this.expressionsToBeDeoptimized.push(s),this.init.getLiteralValueAtPath([...this.initPath,...e],n,s)),Ce)}getReturnExpressionWhenCalledAtPath(e,n,s,r){return this.isReassigned||e.length+this.initPath.length>6?it:s.withTrackedEntityAtPath(e,this.init,()=>(this.expressionsToBeDeoptimized.push(r),this.init.getReturnExpressionWhenCalledAtPath([...this.initPath,...e],n,s,r)),it)}hasEffectsOnInteractionAtPath(e,n,s){if(e.length+this.initPath.length>6)return!0;switch(n.type){case 0:return!!this.isReassigned||!s.accessed.trackEntityAtPathAndGetIfTracked(e,this)&&this.init.hasEffectsOnInteractionAtPath([...this.initPath,...e],n,s);case 1:return!!this.included||e.length!==0&&(!!this.isReassigned||!s.assigned.trackEntityAtPathAndGetIfTracked(e,this)&&this.init.hasEffectsOnInteractionAtPath([...this.initPath,...e],n,s));case 2:return!!this.isReassigned||!(n.withNew?s.instantiated:s.called).trackEntityAtPathAndGetIfTracked(e,n.args,this)&&this.init.hasEffectsOnInteractionAtPath([...this.initPath,...e],n,s)}}includePath(e,n){if(!this.includedPathTracker.includePathAndGetIfIncluded(e)){this.module.scope.context.requestTreeshakingPass(),this.included||this.module.scope.context.newlyIncludedVariableInits.add(this.init),super.includePath(e,n);for(const s of this.declarations){s.included||s.include(n,!1);let r=s.parent;for(;!r.included&&(r.includeNode(n),r.type!==oi);)r=r.parent;this.kind==="parameter"&&(Hm(s.parent)||Gm(s.parent))&&Wm(s.parent.parent)&&Xm(s.parent.parent.callee)&&Km(s.parent.parent.callee.property)&&s.parent.parent.callee.property.name==="then"&&fa(s.parent.parent.callee.object)&&s.parent.parent.callee.object.includePath(e)}e.length>0&&(this.init.includePath(zh(this.initPath,e),n),this.additionalInitializers?.forEach(s=>s.includePath(le,n)))}}includeCallArguments(e,n){this.isReassigned||n.includedCallArguments.has(this.init)||this.initPath.length>0?na(e,n):(n.includedCallArguments.add(this.init),this.init.includeCallArguments(e,n),n.includedCallArguments.delete(this.init))}markCalledFromTryStatement(){this.calledFromTryStatement=!0}markInitializersForDeoptimization(){return this.additionalInitializers===null&&(this.additionalInitializers=[this.init],this.init=Pe,this.markReassigned()),this.additionalInitializers}}const ng=new Set(["class","const","let","var","using","await using"]);class Vh extends te{constructor(){super(...arguments),this.variable=null,this.isVariableReference=!1}get isTDZAccess(){return Le(this.flags,4)?Le(this.flags,8):null}set isTDZAccess(e){this.flags=Me(this.flags,4,!0),this.flags=Me(this.flags,8,e)}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.variable.deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizePath(e){e.length!==0||this.scope.contains(this.name)||this.disallowImportReassignment(),this.variable?.deoptimizePath(e)}getLiteralValueAtPath(e,n,s){return this.getVariableRespectingTDZ().getLiteralValueAtPath(e,n,s)}getReturnExpressionWhenCalledAtPath(e,n,s,r){const[i,a]=this.getVariableRespectingTDZ().getReturnExpressionWhenCalledAtPath(e,n,s,r);return[i,a||this.isPureFunction(e)]}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),!(!this.isPossibleTDZ()||this.variable.kind==="var")||this.scope.context.options.treeshake.unknownGlobalSideEffects&&this.variable instanceof va&&!this.isPureFunction(ue)&&this.variable.hasEffectsOnInteractionAtPath(ue,An,e)}hasEffectsOnInteractionAtPath(e,n,s){switch(n.type){case 0:return this.variable!==null&&!this.isPureFunction(e)&&this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(e,n,s);case 1:return(e.length>0?this.getVariableRespectingTDZ():this.variable).hasEffectsOnInteractionAtPath(e,n,s);case 2:return!this.isPureFunction(e)&&this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(e,n,s)}}include(e,n){this.included||this.includeNode(e),n&&this.variable?.includePath(le,e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.variable!==null&&this.scope.context.includeVariableInModule(this.variable,ue,e)}includePath(e,n){this.included?e.length>0&&this.variable?.includePath(e,n):(this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.variable!==null&&this.scope.context.includeVariableInModule(this.variable,e,n))}includeCallArguments(e,n){this.variable.includeCallArguments(e,n)}isPossibleTDZ(){const e=this.isTDZAccess;if(e!==null)return e;if(!(this.variable instanceof Dt&&this.variable.kind&&ng.has(this.variable.kind)&&this.variable.module.hasTreeShakingPassStarted))return this.isTDZAccess=!1;let n;return this.variable.declarations&&this.variable.declarations.length===1&&(n=this.variable.declarations[0])&&this.start<n.start&&Uh(this)===Uh(n)?this.isTDZAccess=!0:this.variable.initReached?this.isTDZAccess=!1:this.isTDZAccess=!0}applyDeoptimizations(){this.deoptimized=!0,this.variable instanceof Dt&&(this.variable.module.isExecuted||As(this.variable.module),this.variable.consolidateInitializers(),this.scope.context.requestTreeshakingPass()),this.isVariableReference&&(this.variable.addUsedPlace(this),this.scope.context.requestTreeshakingPass())}disallowImportReassignment(){return this.scope.context.error(yh(this.name,this.scope.context.module.id),this.start)}getVariableRespectingTDZ(){return this.isPossibleTDZ()?Pe:this.variable}isPureFunction(e){let n=this.scope.context.manualPureFunctions[this.name];for(const s of e){if(!n)return!1;if(n[pa])return!0;n=n[s]}return n?.[pa]}}function Uh(t){for(;t&&!/^Program|Function/.test(t.type);)t=t.parent;return t}class qh extends Pt{constructor(e,n){super(),this.object=e,this.path=n}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.object.deoptimizeArgumentsOnInteractionAtPath(e,[...this.path,...n],s)}deoptimizePath(e){this.object.deoptimizePath([...this.path,...e])}getLiteralValueAtPath(e,n,s){return this.object.getLiteralValueAtPath([...this.path,...e],n,s)}getReturnExpressionWhenCalledAtPath(e,n,s,r){return this.object.getReturnExpressionWhenCalledAtPath([...this.path,...e],n,s,r)}hasEffectsOnInteractionAtPath(e,n,s){return this.object.hasEffectsOnInteractionAtPath([...this.path,...e],n,s)}}class Fe extends Vh{constructor(){super(...arguments),this.variable=null}get isDestructuringDeoptimized(){return Le(this.flags,16777216)}set isDestructuringDeoptimized(e){this.flags=Me(this.flags,16777216,e)}addExportedVariables(e,n){n.has(this.variable)&&e.push(this.variable)}bind(){!this.variable&&Gu(this,this.parent)&&(this.variable=this.scope.findVariable(this.name),this.variable.addReference(this),this.isVariableReference=!0)}declare(e,n,s){let r;const{treeshake:i}=this.scope.context.options;return e==="parameter"?r=this.scope.addParameterDeclaration(this,n):(r=this.scope.addDeclaration(this,this.scope.context,s,n,e),e==="var"&&i&&i.correctVarValueBeforeDeclaration&&r.markInitializersForDeoptimization()),[this.variable=r]}deoptimizeAssignment(e,n){this.deoptimizePath(ue),n.deoptimizePath([...e,_e])}hasEffectsWhenDestructuring(e,n,s){return n.length>0&&s.hasEffectsOnInteractionAtPath(n,An,e)}includeDestructuredIfNecessary(e,n,s){n.length>0&&!this.isDestructuringDeoptimized&&(this.isDestructuringDeoptimized=!0,s.deoptimizeArgumentsOnInteractionAtPath({args:[new qh(s,n.slice(0,-1))],type:0},n,Ge));const{propertyReadSideEffects:r}=this.scope.context.options.treeshake;return!!(this.included||=n.length>0&&!e.brokenFlow&&r&&(r==="always"||s.hasEffectsOnInteractionAtPath(n,An,Mn())))&&(this.variable&&!this.variable.included&&this.scope.context.includeVariableInModule(this.variable,ue,e),s.includePath(n,e),!0)}markDeclarationReached(){this.variable.initReached=!0}render(e,{snippets:{getPropertyAccess:n},useOriginalName:s},{renderedParentType:r,isCalleeOfRenderedParent:i,isShorthandProperty:a}=pt){if(this.variable){const l=this.variable.getName(n,s);l!==this.name&&(e.overwrite(this.start,this.end,l,{contentOnly:!0,storeName:!0}),a&&e.prependRight(this.start,`${this.name}: `)),l==="eval"&&r===Ys&&i&&e.appendRight(this.start,"0, ")}}}function Ei(t){let e="";do{const n=t%64;t=t/64|0,e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$"[n]+e}while(t!==0);return e}function Jt(t,e,n){let s=t,r=1;for(;e.has(s)||pi.has(s)||n?.has(s);)s=`${t}$${Ei(r++)}`;return e.add(s),s}class Hh{constructor(){this.children=[],this.variables=new Map}addDeclaration(e,n,s,r,i){const a=e.name,l=this.hoistedVariables?.get(a)||this.variables.get(a);if(l){if(i==="var"&&l.kind==="var")return l.addDeclaration(e,s),l;n.error(ks(a),e.start)}const c=new Dt(e.name,e,s,r,n,i);return this.variables.set(a,c),c}addHoistedVariable(e,n){(this.hoistedVariables||=new Map).set(e,n)}contains(e){return this.variables.has(e)}findVariable(e){throw new Error("Internal Error: findVariable needs to be implemented by a subclass")}}class St extends Hh{constructor(e,n){super(),this.parent=e,this.context=n,this.accessedOutsideVariables=new Map,e.children.push(this)}addAccessedDynamicImport(e){(this.accessedDynamicImports||(this.accessedDynamicImports=new Set)).add(e),this.parent instanceof St&&this.parent.addAccessedDynamicImport(e)}addAccessedGlobals(e,n){const s=n.get(this)||new Set;for(const r of e)s.add(r);n.set(this,s),this.parent instanceof St&&this.parent.addAccessedGlobals(e,n)}addNamespaceMemberAccess(e,n){this.accessedOutsideVariables.set(e,n),this.parent.addNamespaceMemberAccess(e,n)}addReturnExpression(e){this.parent instanceof St&&this.parent.addReturnExpression(e)}addUsedOutsideNames(e,n,s,r){for(const a of this.accessedOutsideVariables.values())a.included&&(e.add(a.getBaseVariableName()),n==="system"&&s.has(a)&&e.add("exports"));const i=r.get(this);if(i)for(const a of i)e.add(a)}contains(e){return this.variables.has(e)||this.parent.contains(e)}deconflict(e,n,s){const r=new Set;if(this.addUsedOutsideNames(r,e,n,s),this.accessedDynamicImports)for(const i of this.accessedDynamicImports)i.inlineNamespace&&r.add(i.inlineNamespace.getBaseVariableName());for(const[i,a]of this.variables)(a.included||a.alwaysRendered)&&a.setRenderNames(null,Jt(i,r,a.forbiddenNames));for(const i of this.children)i.deconflict(e,n,s)}findLexicalBoundary(){return this.parent.findLexicalBoundary()}findGlobal(e){const n=this.parent.findVariable(e);return this.accessedOutsideVariables.set(e,n),n}findVariable(e){const n=this.variables.get(e)||this.accessedOutsideVariables.get(e);if(n)return n;const s=this.parent.findVariable(e);return this.accessedOutsideVariables.set(e,s),s}}function _a(t,e){for(const n of t)if(n.hasEffects(e))return!0;return!1}class Ai extends te{constructor(){super(...arguments),this.accessedValue=null}get computed(){return Le(this.flags,1024)}set computed(e){this.flags=Me(this.flags,1024,e)}deoptimizeArgumentsOnInteractionAtPath(e,n,s){return e.type===0&&this.kind==="get"&&n.length===0||e.type===1&&this.kind==="set"&&n.length===0?this.value.deoptimizeArgumentsOnInteractionAtPath({args:e.args,type:2,withNew:!1},ue,s):void this.getAccessedValue()[0].deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizeCache(){}deoptimizePath(e){this.getAccessedValue()[0].deoptimizePath(e)}getLiteralValueAtPath(e,n,s){return this.getAccessedValue()[0].getLiteralValueAtPath(e,n,s)}getReturnExpressionWhenCalledAtPath(e,n,s,r){return this.getAccessedValue()[0].getReturnExpressionWhenCalledAtPath(e,n,s,r)}hasEffects(e){return this.key.hasEffects(e)}hasEffectsOnInteractionAtPath(e,n,s){return this.kind==="get"&&n.type===0&&e.length===0||this.kind==="set"&&n.type===1?this.value.hasEffectsOnInteractionAtPath(ue,{args:n.args,type:2,withNew:!1},s):this.getAccessedValue()[0].hasEffectsOnInteractionAtPath(e,n,s)}getAccessedValue(){return this.accessedValue===null?this.kind==="get"?(this.accessedValue=it,this.accessedValue=this.value.getReturnExpressionWhenCalledAtPath(ue,Js,Ge,this)):this.accessedValue=[this.value,!1]:this.accessedValue}}Ai.prototype.includeNode=ze,Ai.prototype.applyDeoptimizations=Te;class wi extends Ai{hasEffects(e){return super.hasEffects(e)||_a(this.decorators,e)}}class Gn extends St{constructor(e){super(e,e.context)}addDeclaration(e,n,s,r,i){if(i==="var"){const a=e.name,l=this.hoistedVariables?.get(a)||this.variables.get(a);if(l)return l.kind==="var"||i==="var"&&l.kind==="parameter"?(l.addDeclaration(e,s),l):n.error(ks(a),e.start);const c=this.parent.addDeclaration(e,n,s,r,i);return c.markInitializersForDeoptimization(),this.addHoistedVariable(a,c),c}return super.addDeclaration(e,n,s,r,i)}}class Si extends te{createScope(e){this.scope=new Gn(e)}hasEffects(e){for(const n of this.body)if(n.hasEffects(e))return!0;return!1}include(e,n){this.included=!0;for(const s of this.body)(n||s.shouldBeIncluded(e))&&s.include(e,n)}render(e,n){if(this.body.length>0){const s=ht(e.original.slice(this.start,this.end),"{")+1;Ks(this.body,e,this.start+s,this.end-1,n)}else super.render(e,n)}}function Gh(t){return t.type==="StaticBlock"}Si.prototype.includeNode=ze,Si.prototype.applyDeoptimizations=Te;class Pa extends te{constructor(){super(...arguments),this.objectEntity=null}createScope(e){this.scope=new St(e,e.context)}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizeCache(){this.getObjectEntity().deoptimizeAllProperties()}deoptimizePath(e){this.getObjectEntity().deoptimizePath(e)}getLiteralValueAtPath(e,n,s){return this.getObjectEntity().getLiteralValueAtPath(e,n,s)}getReturnExpressionWhenCalledAtPath(e,n,s,r){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(e,n,s,r)}hasEffects(e){this.deoptimized||this.applyDeoptimizations();const n=this.superClass?.hasEffects(e)||this.body.hasEffects(e);return this.id?.markDeclarationReached(),n||super.hasEffects(e)||_a(this.decorators,e)}hasEffectsOnInteractionAtPath(e,n,s){return n.type===2&&e.length===0?!n.withNew||(this.classConstructor===null?this.superClass?.hasEffectsOnInteractionAtPath(e,n,s):this.classConstructor.hasEffectsOnInteractionAtPath(e,n,s))||!1:this.getObjectEntity().hasEffectsOnInteractionAtPath(e,n,s)}include(e,n){this.included||this.includeNode(e),this.superClass?.include(e,n),this.body.include(e,n);for(const s of this.decorators)s.include(e,n);this.id&&(this.id.markDeclarationReached(),this.id.include(e,n))}initialise(){super.initialise(),this.id?.declare("class",ue,this);for(const e of this.body.body)if(e instanceof wi&&e.kind==="constructor")return void(this.classConstructor=e);this.classConstructor=null}applyDeoptimizations(){this.deoptimized=!0;for(const e of this.body.body)Gh(e)||e.static||e instanceof wi&&e.kind==="constructor"||e.deoptimizePath(le);this.scope.context.requestTreeshakingPass()}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;const e=[],n=[];for(const s of this.body.body){if(Gh(s))continue;const r=s.static?e:n,i=s.kind;if(r===n&&!i)continue;const a=i==="set"||i==="get"?i:"init";let l;if(s.computed){const c=s.key.getLiteralValueAtPath(ue,Ge,this);if(typeof c=="symbol"){r.push({key:_e,kind:a,property:s});continue}l=String(c)}else l=s.key instanceof Fe?s.key.name:String(s.key.value);r.push({key:l,kind:a,property:s})}return e.unshift({key:"prototype",kind:"init",property:new $t(n,this.superClass?new qh(this.superClass,["prototype"]):Sn)}),this.objectEntity=new $t(e,this.superClass||Sn)}}Pa.prototype.includeNode=dt;class _s extends Pa{initialise(){super.initialise(),this.id!==null&&(this.id.variable.isId=!0)}parseNode(e){return e.id!==null&&(this.id=new Fe(this,this.scope.parent).parseNode(e.id)),super.parseNode(e)}render(e,n){const{exportNamesByVariable:s,format:r,snippets:{_:i,getPropertyAccess:a}}=n;if(this.id){const{variable:l,name:c}=this.id;r==="system"&&s.has(l)&&e.appendLeft(this.end,`${i}${On([l],n)};`);const u=l.getName(a);if(u!==c)return this.decorators.map(d=>d.render(e,n)),this.superClass?.render(e,n),this.body.render(e,{...n,useOriginalName:d=>d===l}),e.prependRight(this.start,`let ${u}${i}=${i}`),void e.prependLeft(this.end,";")}super.render(e,n)}applyDeoptimizations(){super.applyDeoptimizations();const{id:e,scope:n}=this;if(e){const{name:s,variable:r}=e;for(const i of n.accessedOutsideVariables.values())i!==r&&i.forbidName(s)}}}class sg extends Dt{constructor(e){super("arguments",null,Pe,ue,e,"other")}addArgumentToBeDeoptimized(e){}addReference(){this.deoptimizedArguments=[],this.addArgumentToBeDeoptimized=rg}hasEffectsOnInteractionAtPath(e,{type:n}){return n!==0||e.length>1}includePath(e,n){super.includePath(e,n);for(const s of this.deoptimizedArguments)s.deoptimizePath(le);this.deoptimizedArguments.length=0}}function rg(t){this.included?t.deoptimizePath(le):this.deoptimizedArguments?.push(t)}const Wh=Qe,ig=new Set([_e]),og=new ys,ag=new Set([Pe]);class Xh extends Dt{constructor(e,n,s,r){super(e,n,Pe,s,r,"parameter"),this.includedPathTracker=new vm,this.argumentsToBeDeoptimized=new Set,this.deoptimizationInteractions=[],this.deoptimizations=new ys,this.deoptimizedFields=new Set,this.expressionsDependingOnKnownValue=[],this.knownValue=null,this.knownValueLiteral=Ce}addArgumentForDeoptimization(e){if(this.updateKnownValue(e),e===Pe){if(!this.argumentsToBeDeoptimized.has(Pe)){this.argumentsToBeDeoptimized.add(Pe);for(const{interaction:n}of this.deoptimizationInteractions)En(n);this.deoptimizationInteractions=Wh}}else if(this.deoptimizedFields.has(_e))e.deoptimizePath([...this.initPath,_e]);else if(!this.argumentsToBeDeoptimized.has(e)){this.argumentsToBeDeoptimized.add(e);for(const n of this.deoptimizedFields)e.deoptimizePath([...this.initPath,n]);for(const{interaction:n,path:s}of this.deoptimizationInteractions)e.deoptimizeArgumentsOnInteractionAtPath(n,[...this.initPath,...s],Ge)}}markReassigned(){if(!this.isReassigned){super.markReassigned();for(const e of this.expressionsDependingOnKnownValue)e.deoptimizeCache();this.expressionsDependingOnKnownValue=Qe}}deoptimizeCache(){this.markReassigned()}updateKnownValue(e){if(this.isReassigned)return;if(this.knownValue===null)return this.knownValue=e,void(this.knownValueLiteral=e.getLiteralValueAtPath(this.initPath,Ge,this));if(this.knownValue===e||this.knownValue instanceof Fe&&e instanceof Fe&&this.knownValue.variable===e.variable)return;const{knownValueLiteral:n}=this;typeof n!="symbol"&&e.getLiteralValueAtPath(this.initPath,Ge,this)===n||this.markReassigned()}getKnownValue(){return this.knownValue||Pe}getLiteralValueAtPath(e,n,s){if(this.isReassigned||e.length+this.initPath.length>6)return Ce;const r=this.getKnownValue();return this.expressionsDependingOnKnownValue.push(s),n.withTrackedEntityAtPath(e,r,()=>r.getLiteralValueAtPath([...this.initPath,...e],n,s),Ce)}hasEffectsOnInteractionAtPath(e,n,s){const{type:r}=n;return this.isReassigned||r===1||e.length+this.initPath.length>6?super.hasEffectsOnInteractionAtPath(e,n,s):!(r===2?(n.withNew?s.instantiated:s.called).trackEntityAtPathAndGetIfTracked(e,n.args,this):s.accessed.trackEntityAtPathAndGetIfTracked(e,this))&&this.getKnownValue().hasEffectsOnInteractionAtPath([...this.initPath,...e],n,s)}deoptimizeArgumentsOnInteractionAtPath(e,n){if(n.length>=2||this.argumentsToBeDeoptimized.has(Pe)||this.deoptimizationInteractions.length>=20||n.length===1&&(this.deoptimizedFields.has(_e)||e.type===2&&this.deoptimizedFields.has(n[0]))||this.initPath.length+n.length>6)En(e);else if(!this.deoptimizations.trackEntityAtPathAndGetIfTracked(n,e.args)){for(const s of this.argumentsToBeDeoptimized)s.deoptimizeArgumentsOnInteractionAtPath(e,[...this.initPath,...n],Ge);this.argumentsToBeDeoptimized.has(Pe)||this.deoptimizationInteractions.push({interaction:e,path:n})}}deoptimizePath(e){if(e.length===0)return void this.markReassigned();if(this.deoptimizedFields.has(_e))return;const n=e[0];if(!this.deoptimizedFields.has(n)){this.deoptimizedFields.add(n);for(const s of this.argumentsToBeDeoptimized)s.deoptimizePath([...this.initPath,n]);n===_e&&(this.deoptimizationInteractions=Wh,this.deoptimizations=og,this.deoptimizedFields=ig,this.argumentsToBeDeoptimized=ag)}}getReturnExpressionWhenCalledAtPath(e){return e.length===0?this.deoptimizePath(le):this.deoptimizedFields.has(e[0])||this.deoptimizePath([e[0]]),it}includeArgumentPaths(e,n){this.includedPathTracker.includeAllPaths(e,n,this.initPath)}}class Kh extends Xh{constructor(e){super("this",null,ue,e)}hasEffectsOnInteractionAtPath(e,n,s){return(s.replacedVariableInits.get(this)||Pe).hasEffectsOnInteractionAtPath(e,n,s)}}class lg extends St{constructor(e){super(e,e.context),this.parent=e}addDeclaration(e,n,s,r,i){if(i==="var"){const a=e.name,l=this.hoistedVariables?.get(a)||this.variables.get(a);if(l){const u=l.kind;if(u==="parameter"&&l.declarations[0].parent.type==="CatchClause"){const d=this.parent.parent.addDeclaration(e,n,un,r,i);return l.renderLikeHoisted(d),this.addHoistedVariable(a,d),d}return u==="var"?(l.addDeclaration(e,s),l):n.error(ks(a),e.start)}const c=this.parent.parent.addDeclaration(e,n,s,r,i);return c.markInitializersForDeoptimization(),this.addHoistedVariable(a,c),c}return super.addDeclaration(e,n,s,r,i)}}class cg extends St{constructor(e){super(e,e.context)}addDeclaration(e,n,s,r,i){const a=e.name,l=this.hoistedVariables?.get(a)||this.variables.get(a);if(l){const u=l.kind;if(!(i!=="var"&&i!=="function"||u!=="var"&&u!=="function"&&u!=="parameter"))return l.addDeclaration(e,s),l;n.error(ks(a),e.start)}const c=new Dt(e.name,e,s,r,n,i);return this.variables.set(a,c),c}}class Jh extends St{constructor(e,n){super(e,e.context),this.hasRest=!1,this.parameters=[],this.bodyScope=n?new lg(this):new cg(this)}addParameterDeclaration(e,n){const{name:s,start:r}=e;if(this.variables.get(s))return this.context.error(function(a){return{code:"DUPLICATE_ARGUMENT_NAME",message:`Duplicate argument name "${a}"`}}(s),r);const i=new Xh(s,e,n,this.context);return this.variables.set(s,i),this.bodyScope.addHoistedVariable(s,i),i}addParameterVariables(e,n){this.parameters=e;for(const s of e)for(const r of s)r.alwaysRendered=!0;this.hasRest=n}includeCallArguments({args:e},n){let s=!1,r=!1;const i=this.hasRest&&this.parameters[this.parameters.length-1];let a=e.length-1;for(let l=1;l<e.length;l++){const c=e[l];c instanceof qn&&!r&&(r=!0,a=l-1),r&&(c.includePath(le,n),c.include(n,!1))}for(let l=a;l>=1;l--){const c=this.parameters[l-1]||i,u=e[l];if(c)if(s=!1,c.length===0)r=!0;else for(const d of c)d.calledFromTryStatement&&(s=!0),d.included&&(r=!0,s?u.include(n,!0):(d.includeArgumentPaths(u,n),u.include(n,!1)));(r||u.shouldBeIncluded(n))&&(r=!0,u.include(n,s))}}}class Yh extends Jh{constructor(){super(...arguments),this.returnExpression=null,this.returnExpressions=[]}addReturnExpression(e){this.returnExpressions.push(e)}deoptimizeArgumentsOnCall({args:e}){const{parameters:n}=this;let s=0;for(;s<e.length-1;s++){const i=e[s+1];if(i instanceof qn){for(;s<n.length;s++){e[s+1]?.deoptimizePath(le);for(const a of n[s])a.markReassigned()}break}if(this.hasRest&&s>=n.length-1)i.deoptimizePath(le);else{const a=n[s];if(a)for(const l of a)l.addArgumentForDeoptimization(i);this.addArgumentToBeDeoptimized(i)}}const r=this.hasRest?n.length-1:n.length;for(;s<r;s++)for(const i of n[s])i.addArgumentForDeoptimization(un)}getReturnExpression(){return this.returnExpression===null&&this.updateReturnExpression(),this.returnExpression}deoptimizeAllParameters(){for(const e of this.parameters)for(const n of e)n.deoptimizePath(le),n.markReassigned()}reassignAllParameters(){for(const e of this.parameters)for(const n of e)n.markReassigned()}addArgumentToBeDeoptimized(e){}updateReturnExpression(){if(this.returnExpressions.length===1)this.returnExpression=this.returnExpressions[0];else{this.returnExpression=Pe;for(const e of this.returnExpressions)e.deoptimizePath(le)}}}class Qh extends Yh{constructor(e,n){super(e,!1),this.functionNode=n;const{context:s}=e;this.variables.set("arguments",this.argumentsVariable=new sg(s)),this.variables.set("this",this.thisVariable=new Kh(s))}findLexicalBoundary(){return this}includeCallArguments(e,n){if(super.includeCallArguments(e,n),this.argumentsVariable.included){const{args:s}=e;for(let r=1;r<s.length;r++){const i=s[r];i&&(i.includePath(le,n),i.include(n,!1))}}}addArgumentToBeDeoptimized(e){this.argumentsVariable.addArgumentToBeDeoptimized(e)}}class Bt extends te{initialise(){var e,n;super.initialise(),this.directive&&this.directive!=="use strict"&&this.parent.type===oi&&this.scope.context.log(Ee,(e=this.directive,{code:"MODULE_LEVEL_DIRECTIVE",id:n=this.scope.context.module.id,message:`Module level directives cause errors when bundled, "${e}" in "${Ae(n)}" was ignored.`}),this.start)}removeAnnotations(e){this.expression.removeAnnotations(e)}render(e,n){super.render(e,n),e.original[this.end-1]!==";"&&e.appendLeft(this.end,";")}shouldBeIncluded(e){return this.directive&&this.directive!=="use strict"?this.parent.type!==oi:super.shouldBeIncluded(e)}}Bt.prototype.includeNode=ze,Bt.prototype.applyDeoptimizations=Te;class Wn extends te{get deoptimizeBody(){return Le(this.flags,32768)}set deoptimizeBody(e){this.flags=Me(this.flags,32768,e)}get directlyIncluded(){return Le(this.flags,16384)}set directlyIncluded(e){this.flags=Me(this.flags,16384,e)}addImplicitReturnExpressionToScope(){const e=this.body[this.body.length-1];e&&e.type==="ReturnStatement"||this.scope.addReturnExpression(Pe)}createScope(e){this.scope=this.parent.preventChildBlockScope?e:new Gn(e)}hasEffects(e){if(this.deoptimizeBody)return!0;for(const n of this.body){if(e.brokenFlow)break;if(n.hasEffects(e))return!0}return!1}include(e,n){if(!this.deoptimizeBody||!this.directlyIncluded){this.included=!0,this.directlyIncluded=!0,this.deoptimizeBody&&(n=!0);for(const s of this.body)(n||s.shouldBeIncluded(e))&&s.include(e,n)}}initialise(){super.initialise(),this.scope.context.magicString.addSourcemapLocation(this.end-1);const e=this.body[0];this.deoptimizeBody=e instanceof Bt&&e.directive==="use asm"}render(e,n){this.body.length>0?Ks(this.body,e,this.start+1,this.end-1,n):super.render(e,n)}}Wn.prototype.includeNode=ze,Wn.prototype.applyDeoptimizations=Te;class Xn extends te{constructor(){super(...arguments),this.declarationInit=null}addExportedVariables(e,n){this.argument.addExportedVariables(e,n)}declare(e,n,s){return this.declarationInit=s,this.argument.declare(e,Ii(n),s)}deoptimizeAssignment(e,n){this.argument.deoptimizeAssignment(Ii(e),n)}deoptimizePath(e){e.length===0&&this.argument.deoptimizePath(ue)}hasEffectsOnInteractionAtPath(e,n,s){return e.length>0||this.argument.hasEffectsOnInteractionAtPath(ue,n,s)}hasEffectsWhenDestructuring(e,n,s){return this.argument.hasEffectsWhenDestructuring(e,Ii(n),s)}includeDestructuredIfNecessary(e,n,s){return this.included=this.argument.includeDestructuredIfNecessary(e,Ii(n),s)||this.included}include(e,n){this.included||this.includeNode(e),this.argument.include(e,n)}markDeclarationReached(){this.argument.markDeclarationReached()}applyDeoptimizations(){this.deoptimized=!0,this.declarationInit!==null&&(this.declarationInit.deoptimizePath([_e,_e]),this.scope.context.requestTreeshakingPass())}}Xn.prototype.includeNode=dt;const Ii=t=>t.at(-1)===_e?t:[...t,_e];class ur extends te{constructor(){super(...arguments),this.parameterVariableValuesDeoptimized=!1,this.includeCallArguments=this.scope.includeCallArguments.bind(this.scope)}get async(){return Le(this.flags,256)}set async(e){this.flags=Me(this.flags,256,e)}get deoptimizedReturn(){return Le(this.flags,512)}set deoptimizedReturn(e){this.flags=Me(this.flags,512,e)}get generator(){return Le(this.flags,4194304)}set generator(e){this.flags=Me(this.flags,4194304,e)}get hasCachedEffects(){return Le(this.flags,67108864)}set hasCachedEffects(e){this.flags=Me(this.flags,67108864,e)}deoptimizeArgumentsOnInteractionAtPath(e,n,s){e.type===2&&n.length===0?this.scope.deoptimizeArgumentsOnCall(e):this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizePath(e){this.getObjectEntity().deoptimizePath(e),e.length===1&&e[0]===_e&&(this.scope.getReturnExpression().deoptimizePath(le),this.scope.deoptimizeAllParameters())}getLiteralValueAtPath(e,n,s){return this.getObjectEntity().getLiteralValueAtPath(e,n,s)}getReturnExpressionWhenCalledAtPath(e,n,s,r){return e.length>0?this.getObjectEntity().getReturnExpressionWhenCalledAtPath(e,n,s,r):this.async?(this.deoptimizedReturn||(this.deoptimizedReturn=!0,this.scope.getReturnExpression().deoptimizePath(le),this.scope.context.requestTreeshakingPass()),it):[this.scope.getReturnExpression(),!1]}hasEffectsOnInteractionAtPath(e,n,s){if(e.length>0||n.type!==2)return this.getObjectEntity().hasEffectsOnInteractionAtPath(e,n,s);if(this.hasCachedEffects)return!0;if(this.async){const{propertyReadSideEffects:i}=this.scope.context.options.treeshake,a=this.scope.getReturnExpression();if(a.hasEffectsOnInteractionAtPath(["then"],Js,s)||i&&(i==="always"||a.hasEffectsOnInteractionAtPath(["then"],An,s)))return this.hasCachedEffects=!0,!0}const{propertyReadSideEffects:r}=this.scope.context.options.treeshake;for(let i=0;i<this.params.length;i++){const a=this.params[i];if(a.hasEffects(s)||r&&a.hasEffectsWhenDestructuring(s,ue,n.args[i+1]||un))return this.hasCachedEffects=!0,!0}return!1}onlyFunctionCallUsed(){let e=null;return this.parent.type==="VariableDeclarator"&&(e=this.parent.id.variable??null),this.parent.type===Xu&&(e=this.parent.variable),e?.getOnlyFunctionCallUsed()??!1}include(e,n){this.included||this.includeNode(e),this.parameterVariableValuesDeoptimized||this.onlyFunctionCallUsed()||(this.parameterVariableValuesDeoptimized=!0,this.scope.reassignAllParameters());const{brokenFlow:s}=e;e.brokenFlow=!1,this.body.include(e,n),e.brokenFlow=s}initialise(){super.initialise(),this.body instanceof Wn?this.body.addImplicitReturnExpressionToScope():this.scope.addReturnExpression(this.body),this.annotations&&this.scope.context.options.treeshake.annotations&&(this.annotationNoSideEffects=this.annotations.some(e=>e.type==="noSideEffects"))}parseNode(e){const{body:n,params:s}=e,{scope:r}=this,{bodyScope:i,context:a}=r,l=this.params=s.map(c=>new(a.getNodeConstructor(c.type))(this,r).parseNode(c));return r.addParameterVariables(l.map(c=>c.declare("parameter",ue,Pe)),l[l.length-1]instanceof Xn),this.body=new(a.getNodeConstructor(n.type))(this,i).parseNode(n),super.parseNode(e)}}ur.prototype.preventChildBlockScope=!0,ur.prototype.includeNode=ze,ur.prototype.applyDeoptimizations=Te;class vi extends ur{constructor(){super(...arguments),this.objectEntity=null}createScope(e){this.scope=new Qh(e,this),this.constructedEntity=new $t(Object.create(null),Sn),this.scope.thisVariable.addArgumentForDeoptimization(this.constructedEntity)}deoptimizeArgumentsOnInteractionAtPath(e,n,s){super.deoptimizeArgumentsOnInteractionAtPath(e,n,s),e.type===2&&n.length===0&&e.args[0]&&this.scope.thisVariable.addArgumentForDeoptimization(e.args[0])}hasEffects(e){return!this.annotationNoSideEffects&&!!this.id?.hasEffects(e)}hasEffectsOnInteractionAtPath(e,n,s){if(this.annotationNoSideEffects&&e.length===0&&n.type===2)return!1;if(super.hasEffectsOnInteractionAtPath(e,n,s))return!0;if(e.length===0&&n.type===2){const r=s.replacedVariableInits.get(this.scope.thisVariable);s.replacedVariableInits.set(this.scope.thisVariable,n.withNew?this.constructedEntity:Pe);const{brokenFlow:i,ignore:a,replacedVariableInits:l}=s;if(s.ignore={breaks:!1,continues:!1,labels:new Set,returnYield:!0,this:n.withNew},this.body.hasEffects(s))return this.hasCachedEffects=!0,!0;s.brokenFlow=i,r?l.set(this.scope.thisVariable,r):l.delete(this.scope.thisVariable),s.ignore=a}return!1}include(e,n){super.include(e,n),this.id?.include(e,n);const s=this.scope.argumentsVariable.included;for(const r of this.params)r instanceof Fe&&!s||r.include(e,n)}includeNode(e){this.included=!0;const n=this.scope.argumentsVariable.included;for(const s of this.params)s instanceof Fe&&!n||s.includePath(le,e)}initialise(){super.initialise(),this.id?.declare("function",ue,this)}getObjectEntity(){return this.objectEntity!==null?this.objectEntity:this.objectEntity=new $t([{key:"prototype",kind:"init",property:new $t([],Sn)}],Sn)}}class Ps extends vi{initialise(){super.initialise(),this.id!==null&&(this.id.variable.isId=!0)}onlyFunctionCallUsed(){return this.id?.variable.getOnlyFunctionCallUsed()??super.onlyFunctionCallUsed()}parseNode(e){return e.id!==null&&(this.id=new Fe(this,this.scope.parent).parseNode(e.id)),super.parseNode(e)}}class Kn extends te{include(e,n){this.included=!0,this.declaration.include(e,n),n&&this.scope.context.includeVariableInModule(this.variable,le,e)}includePath(e,n){this.included=!0,this.declaration.includePath(e,n)}initialise(){super.initialise();const e=this.declaration;this.declarationName=e.id&&e.id.name||this.declaration.name,this.variable=this.scope.addExportDefaultDeclaration(this.declarationName||this.scope.context.getModuleName(),this,this.scope.context),this.scope.context.addExport(this)}removeAnnotations(e){this.declaration.removeAnnotations(e)}render(e,n,s){const{start:r,end:i}=s,a=function(l,c){return kn(l,ht(l,"default",c)+7)}(e.original,this.start);if(this.declaration instanceof Ps)this.renderNamedDeclaration(e,a,this.declaration.id===null?function(l,c){const u=ht(l,"function",c)+8;l=l.slice(u,ht(l,"(",u));const d=ht(l,"*");return d===-1?u:u+d+1}(e.original,a):null,n);else if(this.declaration instanceof _s)this.renderNamedDeclaration(e,a,this.declaration.id===null?ht(e.original,"class",r)+5:null,n);else{if(this.variable.getOriginalVariable()!==this.variable)return void fs(this,e,r,i);if(!this.variable.included)return e.remove(this.start,a),this.declaration.render(e,n,{renderedSurroundingElement:Wt}),void(e.original[this.end-1]!==";"&&e.appendLeft(this.end,";"));this.renderVariableDeclaration(e,a,n)}this.declaration.render(e,n)}renderNamedDeclaration(e,n,s,r){const{exportNamesByVariable:i,format:a,snippets:{getPropertyAccess:l}}=r,c=this.variable.getName(l);e.remove(this.start,n),s!==null&&e.appendLeft(s,` ${c}`),a==="system"&&this.declaration instanceof _s&&i.has(this.variable)&&e.appendLeft(this.end,` ${On([this.variable],r)};`)}renderVariableDeclaration(e,n,{format:s,exportNamesByVariable:r,snippets:{cnst:i,getPropertyAccess:a}}){const l=e.original.charCodeAt(this.end-1)===59,c=s==="system"&&r.get(this.variable);c?(e.overwrite(this.start,n,`${i} ${this.variable.getName(a)} = exports(${JSON.stringify(c[0])}, `),e.appendRight(l?this.end-1:this.end,")"+(l?"":";"))):(e.overwrite(this.start,n,`${i} ${this.variable.getName(a)} = `),l||e.appendLeft(this.end,";"))}}Kn.prototype.needsBoundaries=!0,Kn.prototype.includeNode=ze,Kn.prototype.applyDeoptimizations=Te;const ug=/[\n\r'\\\u2028\u2029]/,hg=/([\n\r'\u2028\u2029])/g,dg=/\\/g;function In(t){return ug.test(t)?t.replace(dg,"\\\\").replace(hg,"\\$1"):t}const $a="_interopDefault",Na="_interopDefaultCompat",_i="_interopNamespace",Pi="_interopNamespaceCompat",Jn="_interopNamespaceDefault",hr="_interopNamespaceDefaultOnly",$i="_mergeNamespaces",fn="_documentCurrentScript",Ni={auto:$a,compat:Na,default:null,defaultOnly:null,esModule:null},Ci=(t,e)=>t==="esModule"||e&&(t==="auto"||t==="compat"),dr={auto:_i,compat:Pi,default:Jn,defaultOnly:hr,esModule:null},pg=(t,e)=>t!=="esModule"&&Ci(t,e),Ca=(t,e,n,s,r,i,a)=>{const l=new Set(t);for(const c of Oa)e.has(c)&&l.add(c);return Oa.map(c=>l.has(c)?Zh[c](n,s,r,i,a,l):"").join("")},Zh={[fn]:(t,{_:e,n})=>`var ${fn}${e}=${e}typeof document${e}!==${e}'undefined'${e}?${e}document.currentScript${e}:${e}null;${n}`,[Na](t,e,n){const{_:s,getDirectReturnFunction:r,n:i}=e,[a,l]=r(["e"],{functionReturn:!0,lineBreakIndent:null,name:Na});return`${a}${Ta(e)}${s}?${s}${n?ed(e):td(e)}${l}${i}${i}`},[$a](t,e,n){const{_:s,getDirectReturnFunction:r,n:i}=e,[a,l]=r(["e"],{functionReturn:!0,lineBreakIndent:null,name:$a});return`${a}e${s}&&${s}e.__esModule${s}?${s}${n?ed(e):td(e)}${l}${i}${i}`},[Pi](t,e,n,s,r,i){const{_:a,getDirectReturnFunction:l,n:c}=e;if(i.has(Jn)){const[u,d]=l(["e"],{functionReturn:!0,lineBreakIndent:null,name:Pi});return`${u}${Ta(e)}${a}?${a}e${a}:${a}${Jn}(e)${d}${c}${c}`}return`function ${Pi}(e)${a}{${c}${t}if${a}(${Ta(e)})${a}return e;${c}`+Ra(t,t,e,n,s,r)+`}${c}${c}`},[hr](t,e,n,s,r){const{getDirectReturnFunction:i,getObject:a,n:l,_:c}=e,[u,d]=i(["e"],{functionReturn:!0,lineBreakIndent:null,name:hr});return`${u}${Da(s,rd(r,a([[null,`__proto__:${c}null`],["default","e"]],{lineBreakIndent:null}),e))}${d}${l}${l}`},[Jn](t,e,n,s,r){const{_:i,n:a}=e;return`function ${Jn}(e)${i}{${a}`+Ra(t,t,e,n,s,r)+`}${a}${a}`},[_i](t,e,n,s,r,i){const{_:a,getDirectReturnFunction:l,n:c}=e;if(i.has(Jn)){const[u,d]=l(["e"],{functionReturn:!0,lineBreakIndent:null,name:_i});return`${u}e${a}&&${a}e.__esModule${a}?${a}e${a}:${a}${Jn}(e)${d}${c}${c}`}return`function ${_i}(e)${a}{${c}${t}if${a}(e${a}&&${a}e.__esModule)${a}return e;${c}`+Ra(t,t,e,n,s,r)+`}${c}${c}`},[$i](t,e,n,s,r){const{_:i,cnst:a,n:l}=e,c=a==="var"&&n;return`function ${$i}(n, m)${i}{${l}${t}${mg(`{${l}${t}${t}${t}if${i}(k${i}!==${i}'default'${i}&&${i}!(k in n))${i}{${l}`+(n?c?nd:yg:sd)(t,t+t+t+t,e)+`${t}${t}${t}}${l}${t}${t}}`,c,t,e)}${l}${t}return ${Da(s,rd(r,"n",e))};${l}}${l}${l}`}},ed=({_:t,getObject:e})=>`e${t}:${t}${e([["default","e"]],{lineBreakIndent:null})}`,td=({_:t,getPropertyAccess:e})=>`e${e("default")}${t}:${t}e`,Ta=({_:t})=>`e${t}&&${t}typeof e${t}===${t}'object'${t}&&${t}'default'${t}in e`,Ra=(t,e,n,s,r,i)=>{const{_:a,cnst:l,getObject:c,getPropertyAccess:u,n:d,s:m}=n,f=`{${d}`+(s?gg:sd)(t,e+t+t,n)+`${e}${t}}`;return`${e}${l} n${a}=${a}Object.create(null${i?`,${a}{${a}[Symbol.toStringTag]:${a}${pr(c)}${a}}`:""});${d}${e}if${a}(e)${a}{${d}${e}${t}${fg(f,!s,n)}${d}${e}}${d}${e}n${u("default")}${a}=${a}e;${d}${e}return ${Da(r,"n")}${m}${d}`},fg=(t,e,{_:n,cnst:s,getFunctionIntro:r,s:i})=>s!=="var"||e?`for${n}(${s} k in e)${n}${t}`:`Object.keys(e).forEach(${r(["k"],{isAsync:!1,name:null})}${t})${i}`,mg=(t,e,n,{_:s,cnst:r,getDirectReturnFunction:i,getFunctionIntro:a,n:l})=>{if(e){const[c,u]=i(["e"],{functionReturn:!1,lineBreakIndent:{base:n,t:n},name:null});return`m.forEach(${c}e${s}&&${s}typeof e${s}!==${s}'string'${s}&&${s}!Array.isArray(e)${s}&&${s}Object.keys(e).forEach(${a(["k"],{isAsync:!1,name:null})}${t})${u});`}return`for${s}(var i${s}=${s}0;${s}i${s}<${s}m.length;${s}i++)${s}{${l}${n}${n}${r} e${s}=${s}m[i];${l}${n}${n}if${s}(typeof e${s}!==${s}'string'${s}&&${s}!Array.isArray(e))${s}{${s}for${s}(${r} k in e)${s}${t}${s}}${l}${n}}`},gg=(t,e,n)=>{const{_:s,n:r}=n;return`${e}if${s}(k${s}!==${s}'default')${s}{${r}`+nd(t,e+t,n)+`${e}}${r}`},nd=(t,e,{_:n,cnst:s,getDirectReturnFunction:r,n:i})=>{const[a,l]=r([],{functionReturn:!0,lineBreakIndent:null,name:null});return`${e}${s} d${n}=${n}Object.getOwnPropertyDescriptor(e,${n}k);${i}${e}Object.defineProperty(n,${n}k,${n}d.get${n}?${n}d${n}:${n}{${i}${e}${t}enumerable:${n}true,${i}${e}${t}get:${n}${a}e[k]${l}${i}${e}});${i}`},yg=(t,e,{_:n,cnst:s,getDirectReturnFunction:r,n:i})=>{const[a,l]=r([],{functionReturn:!0,lineBreakIndent:null,name:null});return`${e}${s} d${n}=${n}Object.getOwnPropertyDescriptor(e,${n}k);${i}${e}if${n}(d)${n}{${i}${e}${t}Object.defineProperty(n,${n}k,${n}d.get${n}?${n}d${n}:${n}{${i}${e}${t}${t}enumerable:${n}true,${i}${e}${t}${t}get:${n}${a}e[k]${l}${i}${e}${t}});${i}${e}}${i}`},sd=(t,e,{_:n,n:s})=>`${e}n[k]${n}=${n}e[k];${s}`,Da=(t,e)=>t?`Object.freeze(${e})`:e,rd=(t,e,{_:n,getObject:s})=>t?`Object.defineProperty(${e},${n}Symbol.toStringTag,${n}${pr(s)})`:e,Oa=Object.keys(Zh);function pr(t){return t([["value","'Module'"]],{lineBreakIndent:null})}class It extends te{deoptimizeArgumentsOnInteractionAtPath(){}getLiteralValueAtPath(e){return e.length>0||this.value===null&&this.scope.context.code.charCodeAt(this.start)!==110||typeof this.value=="bigint"||this.scope.context.code.charCodeAt(this.start)===47?Ce:this.value}getReturnExpressionWhenCalledAtPath(e){return e.length!==1?it:ir(this.members,e[0])}hasEffectsOnInteractionAtPath(e,n,s){switch(n.type){case 0:return e.length>(this.value===null?0:1);case 1:return!0;case 2:return!!(this.included&&this.value instanceof RegExp&&(this.value.global||this.value.sticky))||e.length!==1||rr(this.members,e[0],n,s)}}initialise(){super.initialise(),this.members=function(e){if(e instanceof RegExp)return Jm;switch(typeof e){case"boolean":return ya;case"number":return ba;case"string":return sr}return Object.create(null)}(this.value)}parseNode(e){return this.value=e.value,this.regex=e.regex,super.parseNode(e)}render(e){typeof this.value=="string"&&e.indentExclusionRanges.push([this.start+1,this.end-1])}}function id(t,e,n,s,r){if("getLiteralValueAtPathAsChainElement"in e){const i=e.getLiteralValueAtPathAsChainElement(ue,Ge,r);if(i===Xt||t.optional&&i==null)return Xt}else if(t.optional&&e.getLiteralValueAtPath(ue,Ge,r)==null)return Xt;return t.getLiteralValueAtPath(n,s,r)}function bg(t){return t.computed?function(e){return e instanceof It?String(e.value):null}(t.property):t.property.name}function od(t){const e=t.propertyKey,n=t.object;if(typeof e=="string"){if(n instanceof Fe)return[{key:n.name,pos:n.start},{key:e,pos:t.property.start}];if(n instanceof mn){const s=od(n);return s&&[...s,{key:e,pos:t.property.start}]}}return null}It.prototype.includeNode=dt;class mn extends te{constructor(){super(...arguments),this.variable=null,this.expressionsToBeDeoptimized=[]}get computed(){return Le(this.flags,1024)}set computed(e){this.flags=Me(this.flags,1024,e)}get optional(){return Le(this.flags,128)}set optional(e){this.flags=Me(this.flags,128,e)}get assignmentDeoptimized(){return Le(this.flags,16)}set assignmentDeoptimized(e){this.flags=Me(this.flags,16,e)}get bound(){return Le(this.flags,32)}set bound(e){this.flags=Me(this.flags,32,e)}get isUndefined(){return Le(this.flags,64)}set isUndefined(e){this.flags=Me(this.flags,64,e)}bind(){this.bound=!0;const e=od(this),n=e&&this.scope.findVariable(e[0].key);if(n?.isNamespace){const s=ad(n,e.slice(1),this.scope.context);s?s==="undefined"?this.isUndefined=!0:(this.variable=s,this.scope.addNamespaceMemberAccess(function(r){let i=r[0].key;for(let a=1;a<r.length;a++)i+="."+r[a].key;return i}(e),s)):super.bind()}else super.bind()}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.variable?this.variable.deoptimizeArgumentsOnInteractionAtPath(e,n,s):this.isUndefined||(n.length<6?this.object.deoptimizeArgumentsOnInteractionAtPath(e,this.propertyKey===_e?le:[this.propertyKey,...n],s):En(e))}deoptimizeAssignment(e,n){this.deoptimizePath(ue),n.deoptimizePath([...e,_e])}deoptimizeCache(){if(this.propertyKey===this.dynamicPropertyKey)return;const{expressionsToBeDeoptimized:e,object:n}=this;this.expressionsToBeDeoptimized=Qe,this.dynamicPropertyKey=this.propertyKey,n.deoptimizePath(le),this.included&&n.includePath(le,Lt());for(const s of e)s.deoptimizeCache()}deoptimizePath(e){if(e.length===0&&this.disallowNamespaceReassignment(),this.variable)this.variable.deoptimizePath(e);else if(!this.isUndefined){const{propertyKey:n}=this;this.object.deoptimizePath([n===_e?si:n,...e.length<6?e:[...e.slice(0,6),_e]])}}getLiteralValueAtPath(e,n,s){if(this.variable)return this.variable.getLiteralValueAtPath(e,n,s);if(this.isUndefined)return;const r=this.getDynamicPropertyKey();return r!==_e&&e.length<6?(r!==this.propertyKey&&this.expressionsToBeDeoptimized.push(s),this.object.getLiteralValueAtPath([r,...e],n,s)):Ce}getLiteralValueAtPathAsChainElement(e,n,s){return this.variable?this.variable.getLiteralValueAtPath(e,n,s):this.isUndefined?void 0:id(this,this.object,e,n,s)}getReturnExpressionWhenCalledAtPath(e,n,s,r){if(this.variable)return this.variable.getReturnExpressionWhenCalledAtPath(e,n,s,r);if(this.isUndefined)return[un,!1];const i=this.getDynamicPropertyKey();return i!==_e&&e.length<6?(i!==this.propertyKey&&this.expressionsToBeDeoptimized.push(r),this.object.getReturnExpressionWhenCalledAtPath([i,...e],n,s,r)):it}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),this.property.hasEffects(e)||this.object.hasEffects(e)||this.hasAccessEffect(e)}hasEffectsAsChainElement(e){if(this.variable||this.isUndefined)return this.hasEffects(e);const n="hasEffectsAsChainElement"in this.object?this.object.hasEffectsAsChainElement(e):this.object.hasEffects(e);return n===Xt?Xt:this.optional&&this.object.getLiteralValueAtPath(ue,Ge,this)==null?n||Xt:(this.deoptimized||this.applyDeoptimizations(),n||this.property.hasEffects(e)||this.hasAccessEffect(e))}hasEffectsAsAssignmentTarget(e,n){return n&&!this.deoptimized&&this.applyDeoptimizations(),this.assignmentDeoptimized||this.applyAssignmentDeoptimization(),this.property.hasEffects(e)||this.object.hasEffects(e)||n&&this.hasAccessEffect(e)||this.hasEffectsOnInteractionAtPath(ue,this.assignmentInteraction,e)}hasEffectsOnInteractionAtPath(e,n,s){return this.variable?this.variable.hasEffectsOnInteractionAtPath(e,n,s):!!this.isUndefined||!(e.length<6)||this.object.hasEffectsOnInteractionAtPath([this.getDynamicPropertyKey(),...e],n,s)}hasEffectsWhenDestructuring(e,n,s){return n.length>0&&s.hasEffectsOnInteractionAtPath(n,An,e)}include(e,n){this.included||this.includeNode(e),this.object.include(e,n),this.property.include(e,n)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.variable?this.scope.context.includeVariableInModule(this.variable,ue,e):this.isUndefined||this.object.includePath([this.propertyKey],e)}includeNodeAsAssignmentTarget(e){this.included=!0,this.assignmentDeoptimized||this.applyAssignmentDeoptimization(),this.variable?this.scope.context.includeVariableInModule(this.variable,ue,e):this.isUndefined||this.object.includePath([this.propertyKey],e)}includePath(e,n){this.included||this.includeNode(n),this.variable?this.variable?.includePath(e,n):this.isUndefined||this.object.includePath([this.propertyKey,...e.length<6?e:[...e.slice(0,6),_e]],n)}includeAsAssignmentTarget(e,n,s){this.included||this.includeNodeAsAssignmentTarget(e),s&&!this.deoptimized&&this.applyDeoptimizations(),this.object.include(e,n),this.property.include(e,n)}includeCallArguments(e,n){var s;this.variable?this.variable.includeCallArguments(e,n):fa(this.object)||this.object.variable&&!this.object.variable.isReassigned&&this.object.variable instanceof Dt&&(s=this.object.variable.init)instanceof te&&s.type==="AwaitExpression"&&fa(this.object.variable.init.argument)?Wu(e,n):na(e,n)}includeDestructuredIfNecessary(e,n,s){return!!(this.included||=n.length>0&&!e.brokenFlow&&s.hasEffectsOnInteractionAtPath(n,An,Mn()))&&(s.include(e,!1),!0)}initialise(){super.initialise(),this.dynamicPropertyKey=bg(this),this.propertyKey=this.dynamicPropertyKey===null?_e:this.dynamicPropertyKey,this.accessInteraction={args:[this.object],type:0}}render(e,n,{renderedParentType:s,isCalleeOfRenderedParent:r,renderedSurroundingElement:i}=pt){if(this.variable||this.isUndefined){const{snippets:{getPropertyAccess:a}}=n;let l=this.variable?this.variable.getName(a):"undefined";s&&r&&(l="0, "+l),e.overwrite(this.start,this.end,l,{contentOnly:!0,storeName:!0})}else s&&r&&e.appendRight(this.start,"0, "),this.object.render(e,n,{renderedSurroundingElement:i}),this.property.render(e,n)}setAssignedValue(e){this.assignmentInteraction={args:[this.object,e],type:1}}applyDeoptimizations(){this.deoptimized=!0;const{propertyReadSideEffects:e}=this.scope.context.options.treeshake;this.bound&&e&&!this.variable&&!this.isUndefined&&(this.object.deoptimizeArgumentsOnInteractionAtPath(this.accessInteraction,[this.propertyKey],Ge),this.scope.context.requestTreeshakingPass()),this.variable&&(this.variable.addUsedPlace(this),this.scope.context.requestTreeshakingPass())}applyAssignmentDeoptimization(){this.assignmentDeoptimized=!0;const{propertyReadSideEffects:e}=this.scope.context.options.treeshake;this.bound&&e&&!this.variable&&!this.isUndefined&&(this.object.deoptimizeArgumentsOnInteractionAtPath(this.assignmentInteraction,[this.propertyKey],Ge),this.scope.context.requestTreeshakingPass())}disallowNamespaceReassignment(){this.object instanceof Fe&&this.scope.findVariable(this.object.name).isNamespace&&(this.variable&&this.scope.context.includeVariableInModule(this.variable,le,Lt()),this.scope.context.log(Ee,yh(this.object.name,this.scope.context.module.id),this.start))}getDynamicPropertyKey(){if(this.dynamicPropertyKey===null){this.dynamicPropertyKey=this.propertyKey;const e=this.property.getLiteralValueAtPath(ue,Ge,this);return this.dynamicPropertyKey=e===ea?e:typeof e=="symbol"?_e:String(e)}return this.dynamicPropertyKey}hasAccessEffect(e){const{propertyReadSideEffects:n}=this.scope.context.options.treeshake;return!(this.variable||this.isUndefined)&&n&&(n==="always"||this.object.hasEffectsOnInteractionAtPath([this.getDynamicPropertyKey()],this.accessInteraction,e))}}function ad(t,e,n){if(e.length===0)return t;if(!t.isNamespace||t instanceof tr)return null;const s=e[0].key,[r,i]=t.context.traceExport(s);if(!r){if(e.length===1){const a=t.context.fileName;return n.log(Ee,hi(s,n.module.id,a,!!i?.missingButExportExists),e[0].pos),"undefined"}return null}return ad(r,e.slice(1),n)}const La="ROLLUP_FILE_URL_",Ma="import";class ld extends te{constructor(){super(...arguments),this.metaProperty=null,this.preliminaryChunkId=null,this.referenceId=null}getReferencedFileName(e){const{meta:{name:n},metaProperty:s}=this;return n===Ma&&s?.startsWith(La)?e.getFileName(s.slice(16)):null}hasEffects(){return!1}hasEffectsOnInteractionAtPath(e,{type:n}){return e.length>1||n!==0}include(){this.included||this.includeNode()}includeNode(){if(this.included=!0,this.meta.name===Ma){this.scope.context.addImportMeta(this);const e=this.parent,n=this.metaProperty=e instanceof mn&&typeof e.propertyKey=="string"?e.propertyKey:null;n?.startsWith(La)&&(this.referenceId=n.slice(16))}}render(e,n){const{format:s,pluginDriver:r,snippets:i}=n,{scope:{context:{module:a}},meta:{name:l},metaProperty:c,parent:u,preliminaryChunkId:d,referenceId:m,start:f,end:g}=this,{id:w}=a;if(l!==Ma)return;const k=d;if(m){const E=r.getFileName(m),b=an(Rn(ln(k),E)),A=r.hookFirstSync("resolveFileUrl",[{chunkId:k,fileName:E,format:s,moduleId:w,referenceId:m,relativePath:b}])||Eg[s](b);return void e.overwrite(u.start,u.end,A,{contentOnly:!0})}let I=r.hookFirstSync("resolveImportMeta",[c,{chunkId:k,format:s,moduleId:w}]);I||(I=Ag[s]?.(c,{chunkId:k,snippets:i}),n.accessedDocumentCurrentScript||=cd.includes(s)&&I!=="undefined"),typeof I=="string"&&(u instanceof mn?e.overwrite(u.start,u.end,I,{contentOnly:!0}):e.overwrite(f,g,I,{contentOnly:!0}))}setResolution(e,n,s){this.preliminaryChunkId=s;const r=(this.metaProperty?.startsWith(La)?kg:xg)[e];r.length>0&&this.scope.addAccessedGlobals(r,n)}}const cd=["cjs","iife","umd"],xg={amd:["document","module","URL"],cjs:["document","require","URL",fn],es:[],iife:["document","URL",fn],system:["module"],umd:["document","require","URL",fn]},kg={amd:["document","require","URL"],cjs:["document","require","URL"],es:[],iife:["document","URL"],system:["module","URL"],umd:["document","require","URL"]},fr=(t,e="URL")=>`new ${e}(${t}).href`,Fa=(t,e=!1)=>fr(`'${In(t)}', ${e?"typeof document === 'undefined' ? location.href : ":""}document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI`),Ti=t=>(e,{chunkId:n})=>{const s=t(n);return e===null?`({ url: ${s} })`:e==="url"?s:"undefined"},Ba=t=>`require('u' + 'rl').pathToFileURL(${t}).href`,ud=t=>Ba(`__dirname + '/${In(t)}'`),ja=(t,e=!1)=>`${e?"typeof document === 'undefined' ? location.href : ":""}(${fn} && ${fn}.tagName.toUpperCase() === 'SCRIPT' && ${fn}.src || new URL('${In(t)}', document.baseURI).href)`,Eg={amd:t=>(t[0]!=="."&&(t="./"+t),fr(`require.toUrl('${In(t)}'), document.baseURI`)),cjs:t=>`(typeof document === 'undefined' ? ${ud(t)} : ${Fa(t)})`,es:t=>fr(`'${In(t)}', import.meta.url`),iife:t=>Fa(t),system:t=>fr(`'${In(t)}', module.meta.url`),umd:t=>`(typeof document === 'undefined' && typeof location === 'undefined' ? ${ud(t)} : ${Fa(t,!0)})`},Ag={amd:Ti(()=>fr("module.uri, document.baseURI")),cjs:Ti(t=>`(typeof document === 'undefined' ? ${Ba("__filename")} : ${ja(t)})`),iife:Ti(t=>ja(t)),system:(t,{snippets:{getPropertyAccess:e}})=>t===null?"module.meta":`module.meta${e(t)}`,umd:Ti(t=>`(typeof document === 'undefined' && typeof location === 'undefined' ? ${Ba("__filename")} : ${ja(t,!0)})`)};class hd extends zn{constructor(){super("undefined")}getLiteralValueAtPath(){}}class Yt extends Dt{constructor(e,n,s){super(e,n,n.declaration,ue,s,"other"),this.hasId=!1,this.originalId=null,this.originalVariable=null;const r=n.declaration;(r instanceof Ps||r instanceof _s)&&r.id?(this.hasId=!0,this.originalId=r.id):r instanceof Fe&&(this.originalId=r)}addReference(e){this.hasId||(this.name=e.name)}addUsedPlace(e){const n=this.getOriginalVariable();n===this?super.addUsedPlace(e):n.addUsedPlace(e)}forbidName(e){const n=this.getOriginalVariable();n===this?super.forbidName(e):n.forbidName(e)}getAssignedVariableName(){return this.originalId&&this.originalId.name||null}getBaseVariableName(){const e=this.getOriginalVariable();return e===this?super.getBaseVariableName():e.getBaseVariableName()}getDirectOriginalVariable(){return!this.originalId||!this.hasId&&(this.originalId.isPossibleTDZ()||this.originalId.variable.isReassigned||this.originalId.variable instanceof hd||"syntheticNamespace"in this.originalId.variable)?null:this.originalId.variable}getName(e){const n=this.getOriginalVariable();return n===this?super.getName(e):n.getName(e)}getOriginalVariable(){if(this.originalVariable)return this.originalVariable;let e,n=this;const s=new Set;do s.add(n),e=n,n=e.getDirectOriginalVariable();while(n instanceof Yt&&!s.has(n));return this.originalVariable=n||e}}class Yn extends zn{constructor(e){super(e.getModuleName()),this.memberVariables=null,this.mergedNamespaces=[],this.referencedEarly=!1,this.references=[],this.context=e,this.module=e.module}addReference(e){this.references.push(e),this.name=e.name}deoptimizeArgumentsOnInteractionAtPath(e,n,s){if(n.length>1||n.length===1&&e.type===2){const r=n[0];typeof r=="string"?this.getMemberVariables()[r]?.deoptimizeArgumentsOnInteractionAtPath(e,n.slice(1),s):En(e)}}deoptimizePath(e){if(e.length>1){const n=e[0];typeof n=="string"&&this.getMemberVariables()[n]?.deoptimizePath(e.slice(1))}}getLiteralValueAtPath(e){return e[0]===ea?"Module":Ce}getMemberVariables(){if(this.memberVariables)return this.memberVariables;const e=Object.create(null),n=[...this.context.getExports(),...this.context.getReexports()].sort();for(const s of n)if(s[0]!=="*"&&s!==this.module.info.syntheticNamedExports){const[r]=this.context.traceExport(s);r&&(e[s]=r)}return this.memberVariables=e}hasEffectsOnInteractionAtPath(e,n,s){const{type:r}=n;if(e.length===0)return!0;if(e.length===1&&r!==2)return r===1;const i=e[0];if(typeof i!="string")return!0;const a=this.getMemberVariables()[i];return!a||a.hasEffectsOnInteractionAtPath(e.slice(1),n,s)}includePath(e,n){super.includePath(e,n),this.context.includeAllExports()}prepare(e){this.mergedNamespaces.length>0&&this.module.scope.addAccessedGlobals([$i],e)}renderBlock(e){const{exportNamesByVariable:n,format:s,freeze:r,indent:i,symbols:a,snippets:{_:l,cnst:c,getObject:u,getPropertyAccess:d,n:m,s:f}}=e,g=this.getMemberVariables(),w=Object.entries(g).filter(([I,E])=>E.included).map(([I,E])=>this.referencedEarly||E.isReassigned||E===this?[null,`get ${gi(I)}${l}()${l}{${l}return ${E.getName(d)}${f}${l}}`]:[I,E.getName(d)]);w.unshift([null,`__proto__:${l}null`]);let k=u(w,{lineBreakIndent:{base:"",t:i}});if(this.mergedNamespaces.length>0){const I=this.mergedNamespaces.map(E=>E.getName(d));k=`/*#__PURE__*/${$i}(${k},${l}[${I.join(`,${l}`)}])`}else a&&(k=`/*#__PURE__*/Object.defineProperty(${k},${l}Symbol.toStringTag,${l}${pr(u)})`),r&&(k=`/*#__PURE__*/Object.freeze(${k})`);return k=`${c} ${this.getName(d)}${l}=${l}${k};`,s==="system"&&n.has(this)&&(k+=`${m}${On([this],e)};`),k}renderFirst(){return this.referencedEarly}setMergedNamespaces(e){this.mergedNamespaces=e;const n=this.context.getModuleExecIndex();for(const s of this.references){const{context:r}=s.scope;if(r.getModuleExecIndex()<=n){this.referencedEarly=!0;break}}}}Yn.prototype.isNamespace=!0;class vt extends zn{constructor(e,n,s){super(n),this.baseVariable=null,this.context=e,this.module=e.module,this.syntheticNamespace=s}getBaseVariable(){if(this.baseVariable)return this.baseVariable;let e=this.syntheticNamespace;for(;e instanceof Yt||e instanceof vt;){if(e instanceof Yt){const n=e.getOriginalVariable();if(n===e)break;e=n}e instanceof vt&&(e=e.syntheticNamespace)}return this.baseVariable=e}getBaseVariableName(){return this.syntheticNamespace.getBaseVariableName()}getName(e){return`${this.syntheticNamespace.getName(e)}${e(this.name)}`}includePath(e,n){super.includePath(e,n),this.context.includeVariableInModule(this.syntheticNamespace,e,n)}setRenderNames(e,n){super.setRenderNames(e,n)}}class Qn{constructor(e,n,s){this.options=n,this.inputBase=s,this.defaultVariableName="",this.namespaceVariableName="",this.variableName="",this.fileName=null,this.importAttributes=null,this.id=e.id,this.moduleInfo=e.info,this.renormalizeRenderPath=e.renormalizeRenderPath,this.suggestedVariableName=e.suggestedVariableName}getFileName(){if(this.fileName)return this.fileName;const{paths:e}=this.options;return this.fileName=(typeof e=="function"?e(this.id):e[this.id])||(this.renormalizeRenderPath?an(Rn(this.inputBase,this.id)):this.id)}getImportAttributes(e){return this.importAttributes||=dd(["es","cjs"].includes(this.options.format)&&this.options.externalImportAttributes&&this.moduleInfo.attributes,e)}getImportPath(e){return In(this.renormalizeRenderPath?Yu(e,this.getFileName(),this.options.format==="amd",!1):this.getFileName())}}function dd(t,{getObject:e}){if(!t)return null;const n=Object.entries(t).map(([s,r])=>[s,`'${r}'`]);return n.length>0?e(n,{lineBreakIndent:null}):null}function pd(t){return t.endsWith(".js")?t.slice(0,-3):t}function fd(t,e){return t.autoId?`${t.basePath?t.basePath+"/":""}${pd(e)}`:t.id??""}function Ri(t,e,n,s,r,i,a,l,c="return "){const{_:u,getDirectReturnFunction:d,getFunctionIntro:m,getPropertyAccess:f,n:g,s:w}=r;if(!n)return`${g}${g}${c}${function(I,E,b,A,v){if(I.length>0)return I[0].local;for(const{defaultVariableName:$,importPath:D,isChunk:j,name:V,namedExportsMode:U,namespaceVariableName:O,reexports:_}of E)if(_)return md(V,_[0].imported,U,j,$,O,b,D,A,v)}(t,e,s,a,f)};`;let k="";if(n){for(const{defaultVariableName:I,importPath:E,isChunk:b,name:A,namedExportsMode:v,namespaceVariableName:$,reexports:D}of e)if(D){for(const j of D)if(j.reexported!=="*"){const V=md(A,j.imported,v,b,I,$,s,E,a,f);if(k&&(k+=g),j.imported!=="*"&&j.needsLiveBinding){const[U,O]=d([],{functionReturn:!0,lineBreakIndent:null,name:null});k+=`Object.defineProperty(exports,${u}${JSON.stringify(j.reexported)},${u}{${g}${i}enumerable:${u}true,${g}${i}get:${u}${U}${V}${O}${g}});`}else j.reexported==="__proto__"?k+=`Object.defineProperty(exports,${u}"__proto__",${u}{${g}${i}enumerable:${u}true,${g}${i}value:${u}${V}${g}});`:k+=`exports${f(j.reexported)}${u}=${u}${V};`}}}for(const{exported:I,local:E}of t){const b=`exports${f(I)}`;b!==E&&(k&&(k+=g),k+=I==="__proto__"?`Object.defineProperty(exports,${u}"__proto__",${u}{${g}${i}enumerable:${u}true,${g}${i}value:${u}${E}${g}});`:`${b}${u}=${u}${E};`)}if(n){for(const{name:I,reexports:E}of e)if(E){for(const b of E)if(b.reexported==="*"){if(k&&(k+=g),!b.needsLiveBinding&&l){const v="'__proto__'";k+=`Object.prototype.hasOwnProperty.call(${I},${u}${v})${u}&&${g}${i}!Object.prototype.hasOwnProperty.call(exports,${u}${v})${u}&&${g}${i}Object.defineProperty(exports,${u}${v},${u}{${g}${i}${i}enumerable:${u}true,${g}${i}${i}value:${u}${I}[${v}]${g}${i}});${g}${g}`}const A=`{${g}${i}if${u}(k${u}!==${u}'default'${u}&&${u}!Object.prototype.hasOwnProperty.call(exports,${u}k))${u}${wg(I,b.needsLiveBinding,i,r)}${w}${g}}`;k+=`Object.keys(${I}).forEach(${m(["k"],{isAsync:!1,name:null})}${A});`}}}return k?`${g}${g}${k}`:""}function md(t,e,n,s,r,i,a,l,c,u){if(e==="default"){if(!s){const d=a(l),m=Ni[d]?r:t;return Ci(d,c)?`${m}${u("default")}`:m}return n?`${t}${u("default")}`:t}return e==="*"?(s?!n:dr[a(l)])?i:t:`${t}${u(e)}`}function gd(t){return t([["value","true"]],{lineBreakIndent:null})}function Di(t,e,n,{_:s,getObject:r}){if(t){if(e)return n?`Object.defineProperties(exports,${s}${r([["__esModule",gd(r)],[null,`[Symbol.toStringTag]:${s}${pr(r)}`]],{lineBreakIndent:null})});`:`Object.defineProperty(exports,${s}'__esModule',${s}${gd(r)});`;if(n)return`Object.defineProperty(exports,${s}Symbol.toStringTag,${s}${pr(r)});`}return""}const wg=(t,e,n,{_:s,getDirectReturnFunction:r,n:i})=>{if(e){const[a,l]=r([],{functionReturn:!0,lineBreakIndent:null,name:null});return`Object.defineProperty(exports,${s}k,${s}{${i}${n}${n}enumerable:${s}true,${i}${n}${n}get:${s}${a}${t}[k]${l}${i}${n}})`}return`exports[k]${s}=${s}${t}[k]`};function Oi(t,e,n,s,r,i,a,l){const{_:c,cnst:u,n:d}=l,m=new Set,f=[],g=(w,k,I)=>{m.add(k),f.push(`${u} ${w}${c}=${c}/*#__PURE__*/${k}(${I});`)};for(const{defaultVariableName:w,imports:k,importPath:I,isChunk:E,name:b,namedExportsMode:A,namespaceVariableName:v,reexports:$}of t)if(E){for(const{imported:D,reexported:j}of[...k||[],...$||[]])if(D==="*"&&j!=="*"){A||g(v,hr,b);break}}else{const D=e(I);let j=!1,V=!1;for(const{imported:U,reexported:O}of[...k||[],...$||[]]){let _,N;U==="default"?j||(j=!0,w!==v&&(N=w,_=Ni[D])):U!=="*"||O==="*"||V||(V=!0,_=dr[D],N=v),_&&g(N,_,b)}}return`${Ca(m,i,a,l,n,s,r)}${f.length>0?`${f.join(d)}${d}${d}`:""}`}function yd(t,e){return t[0]!=="."?t:e?(n=t).endsWith(".js")?n:n+".js":pd(t);var n}const Sg=new Set(["node:assert","assert","node:assert/strict","assert/strict","node:async_hooks","async_hooks","node:buffer","buffer","node:child_process","child_process","node:cluster","cluster","node:console","console","node:constants","constants","node:crypto","crypto","node:dgram","dgram","node:diagnostics_channel","diagnostics_channel","node:dns","dns","node:dns/promises","dns/promises","node:domain","domain","node:events","events","node:fs","fs","node:fs/promises","fs/promises","node:http","http","node:http2","http2","node:https","https","node:inspector","inspector","node:inspector/promises","inspector/promises","node:module","module","node:net","net","node:os","os","node:path","path","node:path/posix","path/posix","node:path/win32","path/win32","node:perf_hooks","perf_hooks","node:process","process","node:querystring","querystring","node:quic","node:readline","readline","node:readline/promises","readline/promises","node:repl","repl","node:sea","node:sqlite","node:stream","stream","node:stream/consumers","stream/consumers","node:stream/promises","stream/promises","node:stream/web","stream/web","node:string_decoder","string_decoder","node:test","node:test/reporters","node:timers","timers","node:timers/promises","timers/promises","node:tls","tls","node:trace_events","trace_events","node:tty","tty","node:url","url","node:util","util","node:util/types","util/types","node:v8","v8","node:vm","vm","node:wasi","wasi","node:worker_threads","worker_threads","node:zlib","zlib"]);function za(t,e){const n=e.map(({importPath:s})=>s).filter(s=>Sg.has(s)||s.startsWith("node:"));n.length!==0&&t(Ee,function(s){return{code:"MISSING_NODE_BUILTINS",ids:s,message:`Creating a browser bundle that depends on Node.js built-in modules (${cn(s)}). You might need to include https://github.com/FredKSchott/rollup-plugin-polyfill-node`}}(n))}const Li=(t,e)=>t.split(".").map(e).join("");function Va(t,e,n,s,{_:r,getPropertyAccess:i},a){const l=t.split("."),c=l[0]in Object.prototype;a&&c&&a(Ee,wh(l[0])),l[0]=(typeof n=="function"?n(l[0]):c?l[0]:n[l[0]])||l[0];const u=l.pop();let d=e,m=[...l.map(f=>(d+=i(f),`${d}${r}=${r}${d}${r}||${r}{}`)),`${d}${i(u)}`].join(`,${r}`)+`${r}=${r}${s}`;return l.length>0&&(m=`(${m})`),m}function bd(t){let e=t.length;for(;e--;){const{imports:n,reexports:s}=t[e];if(n||s)return t.slice(0,e+1)}return[]}const $s="_missingExportShim",Ig=({dependencies:t,exports:e})=>{const n=new Set(e.map(s=>s.exported));n.add("default");for(const{reexports:s}of t)if(s)for(const r of s)r.reexported!=="*"&&n.add(r.reexported);return n},vg=(t,e,{_:n,cnst:s,getObject:r,n:i})=>{if(t){const a=[...t].map(l=>[l,"1"]);return a.unshift([null,`__proto__:${n}null`]),`${i}${e}${s} _starExcludes${n}=${n}${r(a,{lineBreakIndent:{base:e,t:e}})};`}return""},_g=(t,e,{_:n,n:s})=>t.length>0?`${s}${e}var ${t.join(`,${n}`)};`:"",Pg=(t,e,n)=>Ua(t.filter(s=>s.hoisted).map(s=>({name:s.exported,value:s.local})),e,n);function Ua(t,e,{_:n,n:s}){return t.length===0?"":t.length===1?`exports(${JSON.stringify(t[0].name)},${n}${t[0].value});${s}${s}`:`exports({${s}`+t.map(({name:r,value:i})=>`${e}${gi(r)}:${n}${i}`).join(`,${s}`)+`${s}});${s}${s}`}const $g=(t,e,n)=>Ua(t.filter(s=>s.expression).map(s=>({name:s.exported,value:s.local})),e,n),Ng=(t,e,n)=>Ua(t.filter(s=>s.local===$s).map(s=>({name:s.exported,value:$s})),e,n);function qa(t,e,n){return t?`${e}${Li(t,n)}`:"null"}var Cg={amd:function(t,{accessedGlobals:e,dependencies:n,exports:s,hasDefaultExport:r,hasExports:i,id:a,indent:l,intro:c,isEntryFacade:u,isModuleFacade:d,namedExportsMode:m,log:f,outro:g,snippets:w},{amd:k,esModule:I,externalLiveBindings:E,freeze:b,generatedCode:{symbols:A},interop:v,reexportProtoFromExternal:$,strict:D}){za(f,n);const j=n.map(K=>`'${yd(K.importPath,k.forceJsExtensionForImports)}'`),V=n.map(K=>K.name),{n:U,getNonArrowFunctionIntro:O,_}=w;i&&(m||s[0]?.local==="exports.default")&&(V.unshift("exports"),j.unshift("'exports'")),e.has("require")&&(V.unshift("require"),j.unshift("'require'")),e.has("module")&&(V.unshift("module"),j.unshift("'module'"));const N=fd(k,a),C=(N?`'${N}',${_}`:"")+(j.length>0?`[${j.join(`,${_}`)}],${_}`:""),R=D?`${_}'use strict';`:"";t.prepend(`${c}${Oi(n,v,E,b,A,e,l,w)}`);const M=Ri(s,n,m,v,w,l,E,$);let q=Di(m&&i,u&&(I===!0||I==="if-default-prop"&&r),d&&A,w);q&&(q=U+U+q),t.append(`${M}${q}${g}`).indent(l).prepend(`${k.define}(${C}(${O(V,{isAsync:!1,name:null})}{${R}${U}${U}`).append(`${U}${U}}));`)},cjs:function(t,{accessedGlobals:e,dependencies:n,exports:s,hasDefaultExport:r,hasExports:i,indent:a,intro:l,isEntryFacade:c,isModuleFacade:u,namedExportsMode:d,outro:m,snippets:f},{compact:g,esModule:w,externalLiveBindings:k,freeze:I,interop:E,generatedCode:{symbols:b},reexportProtoFromExternal:A,strict:v}){const{_:$,n:D}=f,j=v?`'use strict';${D}${D}`:"";let V=Di(d&&i,c&&(w===!0||w==="if-default-prop"&&r),u&&b,f);V&&(V+=D+D);const U=function(N,{_:C,cnst:R,n:M},q){let K="",X=!1;for(const{importPath:ae,name:T,reexports:de,imports:he}of N)de||he?(K+=q&&X?",":`${K?`;${M}`:""}${R} `,X=!0,K+=`${T}${C}=${C}require('${ae}')`):(K&&(K+=q&&!X?",":`;${M}`),X=!1,K+=`require('${ae}')`);return K?`${K};${M}${M}`:""}(n,f,g),O=Oi(n,E,k,I,b,e,a,f);t.prepend(`${j}${l}${V}${U}${O}`);const _=Ri(s,n,d,E,f,a,k,A,`module.exports${$}=${$}`);t.append(`${_}${m}`)},es:function(t,{accessedGlobals:e,indent:n,intro:s,outro:r,dependencies:i,exports:a,snippets:l},{externalLiveBindings:c,freeze:u,generatedCode:{symbols:d},importAttributesKey:m}){const{n:f}=l,g=function(k,I,{_:E}){const b=[];for(const{importPath:A,reexports:v,imports:$,name:D,attributes:j}of k){const V=`'${A}'${j?`${E}${I}${E}${j}`:""};`;if(v||$){if($){let U=null,O=null;const _=[];for(const N of $)N.imported==="default"?U=N:N.imported==="*"?O=N:_.push(N);O&&b.push(`import${E}*${E}as ${O.local} from${E}${V}`),U&&_.length===0?b.push(`import ${U.local} from${E}${V}`):_.length>0&&b.push(`import ${U?`${U.local},${E}`:""}{${E}${_.map(N=>N.imported===N.local?N.imported:`${Es(N.imported)} as ${N.local}`).join(`,${E}`)}${E}}${E}from${E}${V}`)}if(v){let U=null;const O=[],_=[];for(const N of v)N.reexported==="*"?U=N:N.imported==="*"?O.push(N):_.push(N);if(U&&b.push(`export${E}*${E}from${E}${V}`),O.length>0){$&&$.some(N=>N.imported==="*"&&N.local===D)||b.push(`import${E}*${E}as ${D} from${E}${V}`);for(const N of O)b.push(`export${E}{${E}${D===N.reexported?D:`${D} as ${Es(N.reexported)}`} };`)}_.length>0&&b.push(`export${E}{${E}${_.map(N=>N.imported===N.reexported?Es(N.imported):`${Es(N.imported)} as ${Es(N.reexported)}`).join(`,${E}`)}${E}}${E}from${E}${V}`)}}else b.push(`import${E}${V}`)}return b}(i,m,l);g.length>0&&(s+=g.join(f)+f+f),(s+=Ca(null,e,n,l,c,u,d))&&t.prepend(s);const w=function(k,{_:I,cnst:E}){const b=[],A=new Array(k.length);let v=0;for(const $ of k)$.expression&&b.push(`${E} ${$.local}${I}=${I}${$.expression};`),A[v++]=$.exported===$.local?$.local:`${$.local} as ${Es($.exported)}`;return A.length>0&&b.push(`export${I}{${I}${A.join(`,${I}`)}${I}};`),b}(a,l);w.length>0&&t.append(f+f+w.join(f).trim()),r&&t.append(r),t.trim()},iife:function(t,{accessedGlobals:e,dependencies:n,exports:s,hasDefaultExport:r,hasExports:i,indent:a,intro:l,namedExportsMode:c,log:u,outro:d,snippets:m},{compact:f,esModule:g,extend:w,freeze:k,externalLiveBindings:I,reexportProtoFromExternal:E,globals:b,interop:A,name:v,generatedCode:{symbols:$},strict:D}){const{_:j,getNonArrowFunctionIntro:V,getPropertyAccess:U,n:O}=m,_=v&&v.includes("."),N=!w&&!_;if(v&&N&&(_h(C=v)||vh.test(C)))return oe(function(ce){return{code:"ILLEGAL_IDENTIFIER_AS_NAME",message:`Given name "${ce}" is not a legal JS identifier. If you need this, you can try "output.extend: true".`,url:ot("configuration-options/#output-extend")}}(v));var C;za(u,n);const R=bd(n),M=R.map(ce=>ce.globalName||"null"),q=R.map(ce=>ce.name);i&&!v&&u(Ee,{code:uh,message:'If you do not supply "output.name", you may not be able to access the exports of an IIFE bundle.',url:ot(sh)}),i&&(c||s[0]?.local==="exports.default")&&(w?(M.unshift(`this${Li(v,U)}${j}=${j}this${Li(v,U)}${j}||${j}{}`),q.unshift("exports")):(M.unshift("{}"),q.unshift("exports")));const K=D?`${a}'use strict';${O}`:"",X=Oi(n,A,I,k,$,e,a,m);t.prepend(`${l}${X}`);let ae=`(${V(q,{isAsync:!1,name:null})}{${O}${K}${O}`;i&&(!v||w&&c||(ae=(N?`var ${v}`:`this${Li(v,U)}`)+`${j}=${j}${ae}`),_&&(ae=function(ce,L,x,{_:F,getPropertyAccess:B,s:J},ee,ie){const se=ce.split("."),ke=se[0]in Object.prototype;ie&&ke&&ie(Ee,wh(se[0])),se[0]=(typeof x=="function"?x(se[0]):ke?se[0]:x[se[0]])||se[0],se.pop();let ye=L;return se.map(be=>(ye+=B(be),`${ye}${F}=${F}${ye}${F}||${F}{}${J}`)).join(ee?",":`
37
37
  `)+(ee&&se.length>0?";":`
38
- `)}(v,"this",x,m,f,u)+ae));let T=`${O}${O}})(${M.join(`,${j}`)});`;r&&!E&&c&&(T=`${O}${O}${a}return exports;${T}`);const de=Rr(s,n,c,w,m,a,I,A);let he=Dr(c&&r,g===!0||g==="if-default-prop"&&i,$,m);he&&(he=O+O+he),t.append(`${de}${he}${d}`).indent(a).prepend(ae).append(T)},system:function(t,{accessedGlobals:e,dependencies:n,exports:s,hasExports:i,indent:r,intro:a,snippets:l,outro:c,usesTopLevelAwait:u},{externalLiveBindings:d,freeze:m,name:f,generatedCode:{symbols:g},strict:E,systemNullSetters:k}){const{_:I,getFunctionIntro:A,getNonArrowFunctionIntro:x,n:w,s:v}=l,{importBindings:$,setters:D,starExcludes:j}=function(N,C,R,{_:M,cnst:q,getObject:K,getPropertyAccess:X,n:ae}){const T=[],de=[];let he=null;for(const{imports:ce,reexports:L}of N){const b=[];if(ce)for(const F of ce)T.push(F.local),F.imported==="*"?b.push(`${F.local}${M}=${M}module;`):b.push(`${F.local}${M}=${M}module${X(F.imported)};`);if(L){const F=[];let B=!1;for(const{imported:J,reexported:ee}of L)ee==="*"?B=!0:F.push([ee,J==="*"?"module":`module${X(J)}`]);if(F.length>1||B)if(B){he||(he=wg({dependencies:N,exports:C})),F.unshift([null,`__proto__:${M}null`]);const J=K(F,{lineBreakIndent:null});b.push(`${q} setter${M}=${M}${J};`,`for${M}(${q} name in module)${M}{`,`${R}if${M}(!_starExcludes[name])${M}setter[name]${M}=${M}module[name];`,"}","exports(setter);")}else{const J=K(F,{lineBreakIndent:null});b.push(`exports(${J});`)}else{const[J,ee]=F[0];b.push(`exports(${JSON.stringify(J)},${M}${ee});`)}}de.push(b.join(`${ae}${R}${R}${R}`))}return{importBindings:T,setters:de,starExcludes:he}}(n,s,r,l),V=f?`'${f}',${I}`:"",U=e.has("module")?["exports","module"]:i?["exports"]:[];let O=`System.register(${V}[`+n.map(({importPath:N})=>`'${N}'`).join(`,${I}`)+`],${I}(${x(U,{isAsync:!1,name:null})}{${w}${r}${E?"'use strict';":""}`+Sg(j,r,l)+Ig($,r,l)+`${w}${r}return${I}{${D.length>0?`${w}${r}${r}setters:${I}[${D.map(N=>N?`${A(["module"],{isAsync:!1,name:null})}{${w}${r}${r}${r}${N}${w}${r}${r}}`:k?"null":`${A([],{isAsync:!1,name:null})}{}`).join(`,${I}`)}],`:""}${w}`;O+=`${r}${r}execute:${I}(${x([],{isAsync:u,name:null})}{${w}${w}`;const _=`${r}${r}})${w}${r}}${v}${w}}));`;t.prepend(a+Ca(null,e,r,l,d,m,g)+vg(s,r,l)).append(`${c}${w}${w}`+_g(s,r,l)+Pg(s,r,l)).indent(`${r}${r}${r}`).append(_).prepend(O)},umd:function(t,{accessedGlobals:e,dependencies:n,exports:s,hasDefaultExport:i,hasExports:r,id:a,indent:l,intro:c,namedExportsMode:u,log:d,outro:m,snippets:f},{amd:g,compact:E,esModule:k,extend:I,externalLiveBindings:A,freeze:x,interop:w,name:v,generatedCode:{symbols:$},globals:D,noConflict:j,reexportProtoFromExternal:V,strict:U}){const{_:O,cnst:_,getFunctionIntro:N,getNonArrowFunctionIntro:C,getPropertyAccess:R,n:M,s:q}=f,K=E?"f":"factory",X=E?"g":"global";if(r&&!v)return oe({code:lh,message:'You must supply "output.name" for UMD bundles that have exports so that the exports are accessible in environments without a module loader.',url:ot(th)});za(d,n);const ae=n.map(Z=>`'${md(Z.importPath,g.forceJsExtensionForImports)}'`),T=n.map(Z=>`require('${Z.importPath}')`),de=gd(n),he=de.map(Z=>qa(Z.globalName,X,R)),ce=de.map(Z=>Z.name);(r||j)&&(u||r&&s[0]?.local==="exports.default")&&(ae.unshift("'exports'"),T.unshift("exports"),he.unshift(Va(v,X,D,(I?`${qa(v,X,R)}${O}||${O}`:"")+"{}",f,d)),ce.unshift("exports"));const L=dd(g,a),b=(L?`'${L}',${O}`:"")+(ae.length>0?`[${ae.join(`,${O}`)}],${O}`:""),F=g.define,B=!u&&r?`module.exports${O}=${O}`:"",J=U?`${O}'use strict';${M}`:"";let ee;if(j){const Z=E?"e":"exports";let Se;!u&&r?Se=`${_} ${Z}${O}=${O}${Va(v,X,D,`${K}(${he.join(`,${O}`)})`,f,d)};`:Se=`${_} ${Z}${O}=${O}${he.shift()};${M}${l}${l}${K}(${[Z,...he].join(`,${O}`)});`,ee=`(${N([],{isAsync:!1,name:null})}{${M}${l}${l}${_} current${O}=${O}${function(Xe,lt,{_:Ye,getPropertyAccess:bn}){let on=lt;return Xe.split(".").map(Yi=>on+=bn(Yi)).join(`${Ye}&&${Ye}`)}(v,X,f)};${M}${l}${l}${Se}${M}${l}${l}${Z}.noConflict${O}=${O}${N([],{isAsync:!1,name:null})}{${O}${qa(v,X,R)}${O}=${O}current;${O}return ${Z}${q}${O}};${M}${l}})()`}else ee=`${K}(${he.join(`,${O}`)})`,!u&&r&&(ee=Va(v,X,D,ee,f,d));const re=r||j&&u||he.length>0,se=[K];re&&se.unshift(X);const ke=re?`this,${O}`:"",ye=re?`(${X}${O}=${O}typeof globalThis${O}!==${O}'undefined'${O}?${O}globalThis${O}:${O}${X}${O}||${O}self,${O}`:"",be=re?")":"",fe=re?`${l}typeof exports${O}===${O}'object'${O}&&${O}typeof module${O}!==${O}'undefined'${O}?${O}${B}${K}(${T.join(`,${O}`)})${O}:${M}`:"",Oe=`(${C(se,{isAsync:!1,name:null})}{${M}`+fe+`${l}typeof ${F}${O}===${O}'function'${O}&&${O}${F}.amd${O}?${O}${F}(${b}${K})${O}:${M}${l}${ye}${ee}${be};${M}})(${ke}(${C(ce,{isAsync:!1,name:null})}{${J}${M}`,qe=M+M+"}));";t.prepend(`${c}${Or(n,w,A,x,$,e,l,f)}`);const ne=Rr(s,n,u,w,f,l,A,V);let we=Dr(u&&r,k===!0||k==="if-default-prop"&&i,$,f);we&&(we=M+M+we),t.append(`${ne}${we}${m}`).trim().indent(l).append(qe).prepend(Oe)}};function Ng(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ha,yd,bd,Ga,xd,kd,Ed,Ad,wd,Sd,Id,vd={};function Mr(){if(yd)return Ha;yd=1;const t="\\\\/",e=`[^${t}]`,n="\\.",s="\\/",i="[^/]",r=`(?:${s}|$)`,a=`(?:^|${s})`,l=`${n}{1,2}${r}`,c={DOT_LITERAL:n,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:s,ONE_CHAR:"(?=.)",QMARK:i,END_ANCHOR:r,DOTS_SLASH:l,NO_DOT:`(?!${n})`,NO_DOTS:`(?!${a}${l})`,NO_DOT_SLASH:`(?!${n}{0,1}${r})`,NO_DOTS_SLASH:`(?!${l})`,QMARK_NO_DOT:`[^.${s}]`,STAR:`${i}*?`,START_ANCHOR:a,SEP:"/"},u={...c,SLASH_LITERAL:`[${t}]`,QMARK:e,STAR:`${e}*?`,DOTS_SLASH:`${n}{1,2}(?:[${t}]|$)`,NO_DOT:`(?!${n})`,NO_DOTS:`(?!(?:^|[${t}])${n}{1,2}(?:[${t}]|$))`,NO_DOT_SLASH:`(?!${n}{0,1}(?:[${t}]|$))`,NO_DOTS_SLASH:`(?!${n}{1,2}(?:[${t}]|$))`,QMARK_NO_DOT:`[^.${t}]`,START_ANCHOR:`(?:^|[${t}])`,END_ANCHOR:`(?:[${t}]|$)`,SEP:"\\"};return Ha={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars:d=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${d.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:d=>d===!0?u:c},Ha}function Fr(){return bd||(bd=1,function(t){const{REGEX_BACKSLASH:e,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:i}=Mr();t.isObject=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),t.hasRegexChars=r=>s.test(r),t.isRegexChar=r=>r.length===1&&t.hasRegexChars(r),t.escapeRegex=r=>r.replace(i,"\\$1"),t.toPosixSlashes=r=>r.replace(e,"/"),t.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const r=navigator.platform.toLowerCase();return r==="win32"||r==="windows"}return!(typeof process>"u"||!process.platform)&&process.platform==="win32"},t.removeBackslashes=r=>r.replace(n,a=>a==="\\"?"":a),t.escapeLast=(r,a,l)=>{const c=r.lastIndexOf(a,l);return c===-1?r:r[c-1]==="\\"?t.escapeLast(r,a,c-1):`${r.slice(0,c)}\\${r.slice(c)}`},t.removePrefix=(r,a={})=>{let l=r;return l.startsWith("./")&&(l=l.slice(2),a.prefix="./"),l},t.wrapOutput=(r,a={},l={})=>{let c=`${l.contains?"":"^"}(?:${r})${l.contains?"":"$"}`;return a.negated===!0&&(c=`(?:^(?!${c}).*$)`),c},t.basename=(r,{windows:a}={})=>{const l=r.split(a?/[\\/]/:"/"),c=l[l.length-1];return c===""?l[l.length-2]:c}}(vd)),vd}function Cg(){if(xd)return Ga;xd=1;const t=Fr(),{CHAR_ASTERISK:e,CHAR_AT:n,CHAR_BACKWARD_SLASH:s,CHAR_COMMA:i,CHAR_DOT:r,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:c,CHAR_LEFT_PARENTHESES:u,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_PLUS:m,CHAR_QUESTION_MARK:f,CHAR_RIGHT_CURLY_BRACE:g,CHAR_RIGHT_PARENTHESES:E,CHAR_RIGHT_SQUARE_BRACKET:k}=Mr(),I=x=>x===l||x===s,A=x=>{x.isPrefix!==!0&&(x.depth=x.isGlobstar?1/0:1)};return Ga=(x,w)=>{const v=w||{},$=x.length-1,D=v.parts===!0||v.scanToEnd===!0,j=[],V=[],U=[];let O,_,N=x,C=-1,R=0,M=0,q=!1,K=!1,X=!1,ae=!1,T=!1,de=!1,he=!1,ce=!1,L=!1,b=!1,F=0,B={value:"",depth:0,isGlob:!1};const J=()=>C>=$,ee=()=>N.charCodeAt(C+1),re=()=>(O=_,N.charCodeAt(++C));for(;C<$;){let fe;if(_=re(),_!==s){if(de===!0||_===c){for(F++;J()!==!0&&(_=re());)if(_!==s)if(_!==c){if(de!==!0&&_===r&&(_=re())===r){if(q=B.isBrace=!0,X=B.isGlob=!0,b=!0,D===!0)continue;break}if(de!==!0&&_===i){if(q=B.isBrace=!0,X=B.isGlob=!0,b=!0,D===!0)continue;break}if(_===g&&(F--,F===0)){de=!1,q=B.isBrace=!0,b=!0;break}}else F++;else he=B.backslashes=!0,re();if(D===!0)continue;break}if(_!==l){if(v.noext!==!0&&(_===m||_===n||_===e||_===f||_===a)&&ee()===u){if(X=B.isGlob=!0,ae=B.isExtglob=!0,b=!0,_===a&&C===R&&(L=!0),D===!0){for(;J()!==!0&&(_=re());)if(_!==s){if(_===E){X=B.isGlob=!0,b=!0;break}}else he=B.backslashes=!0,_=re();continue}break}if(_===e){if(O===e&&(T=B.isGlobstar=!0),X=B.isGlob=!0,b=!0,D===!0)continue;break}if(_===f){if(X=B.isGlob=!0,b=!0,D===!0)continue;break}if(_===d){for(;J()!==!0&&(fe=re());)if(fe!==s){if(fe===k){K=B.isBracket=!0,X=B.isGlob=!0,b=!0;break}}else he=B.backslashes=!0,re();if(D===!0)continue;break}if(v.nonegate===!0||_!==a||C!==R){if(v.noparen!==!0&&_===u){if(X=B.isGlob=!0,D===!0){for(;J()!==!0&&(_=re());)if(_!==u){if(_===E){b=!0;break}}else he=B.backslashes=!0,_=re();continue}break}if(X===!0){if(b=!0,D===!0)continue;break}}else ce=B.negated=!0,R++}else{if(j.push(C),V.push(B),B={value:"",depth:0,isGlob:!1},b===!0)continue;if(O===r&&C===R+1){R+=2;continue}M=C+1}}else he=B.backslashes=!0,_=re(),_===c&&(de=!0)}v.noext===!0&&(ae=!1,X=!1);let se=N,ke="",ye="";R>0&&(ke=N.slice(0,R),N=N.slice(R),M-=R),se&&X===!0&&M>0?(se=N.slice(0,M),ye=N.slice(M)):X===!0?(se="",ye=N):se=N,se&&se!==""&&se!=="/"&&se!==N&&I(se.charCodeAt(se.length-1))&&(se=se.slice(0,-1)),v.unescape===!0&&(ye&&(ye=t.removeBackslashes(ye)),se&&he===!0&&(se=t.removeBackslashes(se)));const be={prefix:ke,input:x,start:R,base:se,glob:ye,isBrace:q,isBracket:K,isGlob:X,isExtglob:ae,isGlobstar:T,negated:ce,negatedExtglob:L};if(v.tokens===!0&&(be.maxDepth=0,I(_)||V.push(B),be.tokens=V),v.parts===!0||v.tokens===!0){let fe;for(let Oe=0;Oe<j.length;Oe++){const qe=fe?fe+1:R,ne=j[Oe],we=x.slice(qe,ne);v.tokens&&(Oe===0&&R!==0?(V[Oe].isPrefix=!0,V[Oe].value=ke):V[Oe].value=we,A(V[Oe]),be.maxDepth+=V[Oe].depth),Oe===0&&we===""||U.push(we),fe=ne}if(fe&&fe+1<x.length){const Oe=x.slice(fe+1);U.push(Oe),v.tokens&&(V[V.length-1].value=Oe,A(V[V.length-1]),be.maxDepth+=V[V.length-1].depth)}be.slashes=j,be.parts=U}return be},Ga}function Tg(){if(Ed)return kd;Ed=1;const t=Mr(),e=Fr(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:s,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:r,REPLACEMENTS:a}=t,l=(d,m)=>typeof m.expandRange=="function"?m.expandRange(...d,m):(d.sort(),`[${d.join("-")}]`),c=(d,m)=>`Missing ${d}: "${m}" - use "\\\\${m}" to match literal characters`,u=(d,m)=>{if(typeof d!="string")throw new TypeError("Expected a string");d=a[d]||d;const f={...m},g=typeof f.maxLength=="number"?Math.min(n,f.maxLength):n;let E=d.length;if(E>g)throw new SyntaxError(`Input length: ${E}, exceeds maximum allowed length: ${g}`);const k={type:"bos",value:"",output:f.prepend||""},I=[k],A=f.capture?"":"?:",x=t.globChars(f.windows),w=t.extglobChars(x),{DOT_LITERAL:v,PLUS_LITERAL:$,SLASH_LITERAL:D,ONE_CHAR:j,DOTS_SLASH:V,NO_DOT:U,NO_DOT_SLASH:O,NO_DOTS_SLASH:_,QMARK:N,QMARK_NO_DOT:C,STAR:R,START_ANCHOR:M}=x,q=ne=>`(${A}(?:(?!${M}${ne.dot?V:v}).)*?)`,K=f.dot?"":U,X=f.dot?N:C;let ae=f.bash===!0?q(f):R;f.capture&&(ae=`(${ae})`),typeof f.noext=="boolean"&&(f.noextglob=f.noext);const T={input:d,index:-1,start:0,dot:f.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:I};d=e.removePrefix(d,T),E=d.length;const de=[],he=[],ce=[];let L,b=k;const F=()=>T.index===E-1,B=T.peek=(ne=1)=>d[T.index+ne],J=T.advance=()=>d[++T.index]||"",ee=()=>d.slice(T.index+1),re=(ne="",we=0)=>{T.consumed+=ne,T.index+=we},se=ne=>{T.output+=ne.output!=null?ne.output:ne.value,re(ne.value)},ke=()=>{let ne=1;for(;B()==="!"&&(B(2)!=="("||B(3)==="?");)J(),T.start++,ne++;return ne%2!=0&&(T.negated=!0,T.start++,!0)},ye=ne=>{T[ne]++,ce.push(ne)},be=ne=>{T[ne]--,ce.pop()},fe=ne=>{if(b.type==="globstar"){const we=T.braces>0&&(ne.type==="comma"||ne.type==="brace"),Z=ne.extglob===!0||de.length&&(ne.type==="pipe"||ne.type==="paren");ne.type==="slash"||ne.type==="paren"||we||Z||(T.output=T.output.slice(0,-b.output.length),b.type="star",b.value="*",b.output=ae,T.output+=b.output)}if(de.length&&ne.type!=="paren"&&(de[de.length-1].inner+=ne.value),(ne.value||ne.output)&&se(ne),b&&b.type==="text"&&ne.type==="text")return b.output=(b.output||b.value)+ne.value,void(b.value+=ne.value);ne.prev=b,I.push(ne),b=ne},Oe=(ne,we)=>{const Z={...w[we],conditions:1,inner:""};Z.prev=b,Z.parens=T.parens,Z.output=T.output;const Se=(f.capture?"(":"")+Z.open;ye("parens"),fe({type:ne,value:we,output:T.output?"":j}),fe({type:"paren",extglob:!0,value:J(),output:Se}),de.push(Z)},qe=ne=>{let we,Z=ne.close+(f.capture?")":"");if(ne.type==="negate"){let Se=ae;if(ne.inner&&ne.inner.length>1&&ne.inner.includes("/")&&(Se=q(f)),(Se!==ae||F()||/^\)+$/.test(ee()))&&(Z=ne.close=`)$))${Se}`),ne.inner.includes("*")&&(we=ee())&&/^\.[^\\/.]+$/.test(we)){const Xe=u(we,{...m,fastpaths:!1}).output;Z=ne.close=`)${Xe})${Se})`}ne.prev.type==="bos"&&(T.negatedExtglob=!0)}fe({type:"paren",extglob:!0,value:L,output:Z}),be("parens")};if(f.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(d)){let ne=!1,we=d.replace(r,(Z,Se,Xe,lt,Ye,bn)=>lt==="\\"?(ne=!0,Z):lt==="?"?Se?Se+lt+(Ye?N.repeat(Ye.length):""):bn===0?X+(Ye?N.repeat(Ye.length):""):N.repeat(Xe.length):lt==="."?v.repeat(Xe.length):lt==="*"?Se?Se+lt+(Ye?ae:""):ae:Se?Z:`\\${Z}`);return ne===!0&&(we=f.unescape===!0?we.replace(/\\/g,""):we.replace(/\\+/g,Z=>Z.length%2==0?"\\\\":Z?"\\":"")),we===d&&f.contains===!0?(T.output=d,T):(T.output=e.wrapOutput(we,T,m),T)}for(;!F();){if(L=J(),L==="\0")continue;if(L==="\\"){const Z=B();if(Z==="/"&&f.bash!==!0||Z==="."||Z===";")continue;if(!Z){L+="\\",fe({type:"text",value:L});continue}const Se=/^\\+/.exec(ee());let Xe=0;if(Se&&Se[0].length>2&&(Xe=Se[0].length,T.index+=Xe,Xe%2!=0&&(L+="\\")),f.unescape===!0?L=J():L+=J(),T.brackets===0){fe({type:"text",value:L});continue}}if(T.brackets>0&&(L!=="]"||b.value==="["||b.value==="[^")){if(f.posix!==!1&&L===":"){const Z=b.value.slice(1);if(Z.includes("[")&&(b.posix=!0,Z.includes(":"))){const Se=b.value.lastIndexOf("["),Xe=b.value.slice(0,Se),lt=b.value.slice(Se+2),Ye=s[lt];if(Ye){b.value=Xe+Ye,T.backtrack=!0,J(),k.output||I.indexOf(b)!==1||(k.output=j);continue}}}(L==="["&&B()!==":"||L==="-"&&B()==="]")&&(L=`\\${L}`),L!=="]"||b.value!=="["&&b.value!=="[^"||(L=`\\${L}`),f.posix===!0&&L==="!"&&b.value==="["&&(L="^"),b.value+=L,se({value:L});continue}if(T.quotes===1&&L!=='"'){L=e.escapeRegex(L),b.value+=L,se({value:L});continue}if(L==='"'){T.quotes=T.quotes===1?0:1,f.keepQuotes===!0&&fe({type:"text",value:L});continue}if(L==="("){ye("parens"),fe({type:"paren",value:L});continue}if(L===")"){if(T.parens===0&&f.strictBrackets===!0)throw new SyntaxError(c("opening","("));const Z=de[de.length-1];if(Z&&T.parens===Z.parens+1){qe(de.pop());continue}fe({type:"paren",value:L,output:T.parens?")":"\\)"}),be("parens");continue}if(L==="["){if(f.nobracket!==!0&&ee().includes("]"))ye("brackets");else{if(f.nobracket!==!0&&f.strictBrackets===!0)throw new SyntaxError(c("closing","]"));L=`\\${L}`}fe({type:"bracket",value:L});continue}if(L==="]"){if(f.nobracket===!0||b&&b.type==="bracket"&&b.value.length===1){fe({type:"text",value:L,output:`\\${L}`});continue}if(T.brackets===0){if(f.strictBrackets===!0)throw new SyntaxError(c("opening","["));fe({type:"text",value:L,output:`\\${L}`});continue}be("brackets");const Z=b.value.slice(1);if(b.posix===!0||Z[0]!=="^"||Z.includes("/")||(L=`/${L}`),b.value+=L,se({value:L}),f.literalBrackets===!1||e.hasRegexChars(Z))continue;const Se=e.escapeRegex(b.value);if(T.output=T.output.slice(0,-b.value.length),f.literalBrackets===!0){T.output+=Se,b.value=Se;continue}b.value=`(${A}${Se}|${b.value})`,T.output+=b.value;continue}if(L==="{"&&f.nobrace!==!0){ye("braces");const Z={type:"brace",value:L,output:"(",outputIndex:T.output.length,tokensIndex:T.tokens.length};he.push(Z),fe(Z);continue}if(L==="}"){const Z=he[he.length-1];if(f.nobrace===!0||!Z){fe({type:"text",value:L,output:L});continue}let Se=")";if(Z.dots===!0){const Xe=I.slice(),lt=[];for(let Ye=Xe.length-1;Ye>=0&&(I.pop(),Xe[Ye].type!=="brace");Ye--)Xe[Ye].type!=="dots"&&lt.unshift(Xe[Ye].value);Se=l(lt,f),T.backtrack=!0}if(Z.comma!==!0&&Z.dots!==!0){const Xe=T.output.slice(0,Z.outputIndex),lt=T.tokens.slice(Z.tokensIndex);Z.value=Z.output="\\{",L=Se="\\}",T.output=Xe;for(const Ye of lt)T.output+=Ye.output||Ye.value}fe({type:"brace",value:L,output:Se}),be("braces"),he.pop();continue}if(L==="|"){de.length>0&&de[de.length-1].conditions++,fe({type:"text",value:L});continue}if(L===","){let Z=L;const Se=he[he.length-1];Se&&ce[ce.length-1]==="braces"&&(Se.comma=!0,Z="|"),fe({type:"comma",value:L,output:Z});continue}if(L==="/"){if(b.type==="dot"&&T.index===T.start+1){T.start=T.index+1,T.consumed="",T.output="",I.pop(),b=k;continue}fe({type:"slash",value:L,output:D});continue}if(L==="."){if(T.braces>0&&b.type==="dot"){b.value==="."&&(b.output=v);const Z=he[he.length-1];b.type="dots",b.output+=L,b.value+=L,Z.dots=!0;continue}if(T.braces+T.parens===0&&b.type!=="bos"&&b.type!=="slash"){fe({type:"text",value:L,output:v});continue}fe({type:"dot",value:L,output:v});continue}if(L==="?"){if(!(b&&b.value==="(")&&f.noextglob!==!0&&B()==="("&&B(2)!=="?"){Oe("qmark",L);continue}if(b&&b.type==="paren"){const Z=B();let Se=L;(b.value==="("&&!/[!=<:]/.test(Z)||Z==="<"&&!/<([!=]|\w+>)/.test(ee()))&&(Se=`\\${L}`),fe({type:"text",value:L,output:Se});continue}if(f.dot!==!0&&(b.type==="slash"||b.type==="bos")){fe({type:"qmark",value:L,output:C});continue}fe({type:"qmark",value:L,output:N});continue}if(L==="!"){if(f.noextglob!==!0&&B()==="("&&(B(2)!=="?"||!/[!=<:]/.test(B(3)))){Oe("negate",L);continue}if(f.nonegate!==!0&&T.index===0){ke();continue}}if(L==="+"){if(f.noextglob!==!0&&B()==="("&&B(2)!=="?"){Oe("plus",L);continue}if(b&&b.value==="("||f.regex===!1){fe({type:"plus",value:L,output:$});continue}if(b&&(b.type==="bracket"||b.type==="paren"||b.type==="brace")||T.parens>0){fe({type:"plus",value:L});continue}fe({type:"plus",value:$});continue}if(L==="@"){if(f.noextglob!==!0&&B()==="("&&B(2)!=="?"){fe({type:"at",extglob:!0,value:L,output:""});continue}fe({type:"text",value:L});continue}if(L!=="*"){L!=="$"&&L!=="^"||(L=`\\${L}`);const Z=i.exec(ee());Z&&(L+=Z[0],T.index+=Z[0].length),fe({type:"text",value:L});continue}if(b&&(b.type==="globstar"||b.star===!0)){b.type="star",b.star=!0,b.value+=L,b.output=ae,T.backtrack=!0,T.globstar=!0,re(L);continue}let ne=ee();if(f.noextglob!==!0&&/^\([^?]/.test(ne)){Oe("star",L);continue}if(b.type==="star"){if(f.noglobstar===!0){re(L);continue}const Z=b.prev,Se=Z.prev,Xe=Z.type==="slash"||Z.type==="bos",lt=Se&&(Se.type==="star"||Se.type==="globstar");if(f.bash===!0&&(!Xe||ne[0]&&ne[0]!=="/")){fe({type:"star",value:L,output:""});continue}const Ye=T.braces>0&&(Z.type==="comma"||Z.type==="brace"),bn=de.length&&(Z.type==="pipe"||Z.type==="paren");if(!Xe&&Z.type!=="paren"&&!Ye&&!bn){fe({type:"star",value:L,output:""});continue}for(;ne.slice(0,3)==="/**";){const on=d[T.index+4];if(on&&on!=="/")break;ne=ne.slice(3),re("/**",3)}if(Z.type==="bos"&&F()){b.type="globstar",b.value+=L,b.output=q(f),T.output=b.output,T.globstar=!0,re(L);continue}if(Z.type==="slash"&&Z.prev.type!=="bos"&&!lt&&F()){T.output=T.output.slice(0,-(Z.output+b.output).length),Z.output=`(?:${Z.output}`,b.type="globstar",b.output=q(f)+(f.strictSlashes?")":"|$)"),b.value+=L,T.globstar=!0,T.output+=Z.output+b.output,re(L);continue}if(Z.type==="slash"&&Z.prev.type!=="bos"&&ne[0]==="/"){const on=ne[1]!==void 0?"|$":"";T.output=T.output.slice(0,-(Z.output+b.output).length),Z.output=`(?:${Z.output}`,b.type="globstar",b.output=`${q(f)}${D}|${D}${on})`,b.value+=L,T.output+=Z.output+b.output,T.globstar=!0,re(L+J()),fe({type:"slash",value:"/",output:""});continue}if(Z.type==="bos"&&ne[0]==="/"){b.type="globstar",b.value+=L,b.output=`(?:^|${D}|${q(f)}${D})`,T.output=b.output,T.globstar=!0,re(L+J()),fe({type:"slash",value:"/",output:""});continue}T.output=T.output.slice(0,-b.output.length),b.type="globstar",b.output=q(f),b.value+=L,T.output+=b.output,T.globstar=!0,re(L);continue}const we={type:"star",value:L,output:ae};f.bash!==!0?!b||b.type!=="bracket"&&b.type!=="paren"||f.regex!==!0?(T.index!==T.start&&b.type!=="slash"&&b.type!=="dot"||(b.type==="dot"?(T.output+=O,b.output+=O):f.dot===!0?(T.output+=_,b.output+=_):(T.output+=K,b.output+=K),B()!=="*"&&(T.output+=j,b.output+=j)),fe(we)):(we.output=L,fe(we)):(we.output=".*?",b.type!=="bos"&&b.type!=="slash"||(we.output=K+we.output),fe(we))}for(;T.brackets>0;){if(f.strictBrackets===!0)throw new SyntaxError(c("closing","]"));T.output=e.escapeLast(T.output,"["),be("brackets")}for(;T.parens>0;){if(f.strictBrackets===!0)throw new SyntaxError(c("closing",")"));T.output=e.escapeLast(T.output,"("),be("parens")}for(;T.braces>0;){if(f.strictBrackets===!0)throw new SyntaxError(c("closing","}"));T.output=e.escapeLast(T.output,"{"),be("braces")}if(f.strictSlashes===!0||b.type!=="star"&&b.type!=="bracket"||fe({type:"maybe_slash",value:"",output:`${D}?`}),T.backtrack===!0){T.output="";for(const ne of T.tokens)T.output+=ne.output!=null?ne.output:ne.value,ne.suffix&&(T.output+=ne.suffix)}return T};return u.fastpaths=(d,m)=>{const f={...m},g=typeof f.maxLength=="number"?Math.min(n,f.maxLength):n,E=d.length;if(E>g)throw new SyntaxError(`Input length: ${E}, exceeds maximum allowed length: ${g}`);d=a[d]||d;const{DOT_LITERAL:k,SLASH_LITERAL:I,ONE_CHAR:A,DOTS_SLASH:x,NO_DOT:w,NO_DOTS:v,NO_DOTS_SLASH:$,STAR:D,START_ANCHOR:j}=t.globChars(f.windows),V=f.dot?v:w,U=f.dot?$:w,O=f.capture?"":"?:";let _=f.bash===!0?".*?":D;f.capture&&(_=`(${_})`);const N=q=>q.noglobstar===!0?_:`(${O}(?:(?!${j}${q.dot?x:k}).)*?)`,C=q=>{switch(q){case"*":return`${V}${A}${_}`;case".*":return`${k}${A}${_}`;case"*.*":return`${V}${_}${k}${A}${_}`;case"*/*":return`${V}${_}${I}${A}${U}${_}`;case"**":return V+N(f);case"**/*":return`(?:${V}${N(f)}${I})?${U}${A}${_}`;case"**/*.*":return`(?:${V}${N(f)}${I})?${U}${_}${k}${A}${_}`;case"**/.*":return`(?:${V}${N(f)}${I})?${k}${A}${_}`;default:{const K=/^(.*?)\.(\w+)$/.exec(q);if(!K)return;const X=C(K[1]);return X?X+k+K[2]:void 0}}},R=e.removePrefix(d,{negated:!1,prefix:""});let M=C(R);return M&&f.strictSlashes!==!0&&(M+=`${I}?`),M},kd=u}function Rg(){if(wd)return Ad;wd=1;const t=Cg(),e=Tg(),n=Fr(),s=Mr(),i=(r,a,l=!1)=>{if(Array.isArray(r)){const I=r.map(x=>i(x,a,l));return x=>{for(const w of I){const v=w(x);if(v)return v}return!1}}const c=(u=r)&&typeof u=="object"&&!Array.isArray(u)&&r.tokens&&r.input;var u;if(r===""||typeof r!="string"&&!c)throw new TypeError("Expected pattern to be a non-empty string");const d=a||{},m=d.windows,f=c?i.compileRe(r,a):i.makeRe(r,a,!1,!0),g=f.state;delete f.state;let E=()=>!1;if(d.ignore){const I={...a,ignore:null,onMatch:null,onResult:null};E=i(d.ignore,I,l)}const k=(I,A=!1)=>{const{isMatch:x,match:w,output:v}=i.test(I,f,a,{glob:r,posix:m}),$={glob:r,state:g,regex:f,posix:m,input:I,output:v,match:w,isMatch:x};return typeof d.onResult=="function"&&d.onResult($),x===!1?($.isMatch=!1,!!A&&$):E(I)?(typeof d.onIgnore=="function"&&d.onIgnore($),$.isMatch=!1,!!A&&$):(typeof d.onMatch=="function"&&d.onMatch($),!A||$)};return l&&(k.state=g),k};return i.test=(r,a,l,{glob:c,posix:u}={})=>{if(typeof r!="string")throw new TypeError("Expected input to be a string");if(r==="")return{isMatch:!1,output:""};const d=l||{},m=d.format||(u?n.toPosixSlashes:null);let f=r===c,g=f&&m?m(r):r;return f===!1&&(g=m?m(r):r,f=g===c),f!==!1&&d.capture!==!0||(f=d.matchBase===!0||d.basename===!0?i.matchBase(r,a,l,u):a.exec(g)),{isMatch:!!f,match:f,output:g}},i.matchBase=(r,a,l)=>(a instanceof RegExp?a:i.makeRe(a,l)).test(n.basename(r)),i.isMatch=(r,a,l)=>i(a,l)(r),i.parse=(r,a)=>Array.isArray(r)?r.map(l=>i.parse(l,a)):e(r,{...a,fastpaths:!1}),i.scan=(r,a)=>t(r,a),i.compileRe=(r,a,l=!1,c=!1)=>{if(l===!0)return r.output;const u=a||{},d=u.contains?"":"^",m=u.contains?"":"$";let f=`${d}(?:${r.output})${m}`;r&&r.negated===!0&&(f=`^(?!${f}).*$`);const g=i.toRegex(f,a);return c===!0&&(g.state=r),g},i.makeRe=(r,a={},l=!1,c=!1)=>{if(!r||typeof r!="string")throw new TypeError("Expected a non-empty string");let u={negated:!1,fastpaths:!0};return a.fastpaths===!1||r[0]!=="."&&r[0]!=="*"||(u.output=e.fastpaths(r,a)),u.output||(u=e(r,a)),i.compileRe(u,a,l,c)},i.toRegex=(r,a)=>{try{const l=a||{};return new RegExp(r,l.flags||(l.nocase?"i":""))}catch(l){if(a&&a.debug===!0)throw l;return/$^/}},i.constants=s,Ad=i}function Dg(){if(Id)return Sd;Id=1;const t=Rg(),e=Fr();function n(s,i,r=!1){return!i||i.windows!==null&&i.windows!==void 0||(i={...i,windows:e.isWindows()}),t(s,i,r)}return Object.assign(n,t),Sd=n}var Og=Ng(Dg());const Ns={ArrayPattern(t,e){for(const n of e.elements)n&&Ns[n.type](t,n)},AssignmentPattern(t,e){Ns[e.left.type](t,e.left)},Identifier(t,e){t.push(e.name)},MemberExpression(){},ObjectPattern(t,e){for(const n of e.properties)n.type==="RestElement"?Ns.RestElement(t,n):Ns[n.value.type](t,n.value)},RestElement(t,e){Ns[e.argument.type](t,e.argument)}},Lg=function(t){const e=[];return Ns[t.type](e,t),e};let He;new Set("break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" ")).add("");const gn=new Array(128).fill(void 0);function Qn(t){return gn[t]}gn.push(void 0,null,!0,!1);let pi=gn.length;function Zn(t){pi===gn.length&&gn.push(gn.length+1);const e=pi;return pi=gn[e],gn[e]=t,e}const _d=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&_d.decode();let fi=null;function mi(){return fi!==null&&fi.byteLength!==0||(fi=new Uint8Array(He.memory.buffer)),fi}function gi(t,e){return t>>>=0,_d.decode(mi().subarray(t,t+e))}let Br=0;const jr=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},Mg=typeof jr.encodeInto=="function"?function(t,e){return jr.encodeInto(t,e)}:function(t,e){const n=jr.encode(t);return e.set(n),{read:t.length,written:n.length}};function Pd(t,e,n){if(n===void 0){const l=jr.encode(t),c=e(l.length,1)>>>0;return mi().subarray(c,c+l.length).set(l),Br=l.length,c}let s=t.length,i=e(s,1)>>>0;const r=mi();let a=0;for(;a<s;a++){const l=t.charCodeAt(a);if(l>127)break;r[i+a]=l}if(a!==s){a!==0&&(t=t.slice(a)),i=n(i,s,s=a+3*t.length,1)>>>0;const l=mi().subarray(i+a,i+s);a+=Mg(t,l).written,i=n(i,s,a,1)>>>0}return Br=a,i}let es=null;function Qt(){return(es===null||es.buffer.detached===!0||es.buffer.detached===void 0&&es.buffer!==He.memory.buffer)&&(es=new DataView(He.memory.buffer)),es}function Fg(t){const e=Qn(t);return function(n){n<132||(gn[n]=pi,pi=n)}(t),e}function $d(t,e,n){try{const c=He.__wbindgen_add_to_stack_pointer(-16),u=Pd(t,He.__wbindgen_export_1,He.__wbindgen_export_2),d=Br;He.parse(c,u,d,e,n);var s=Qt().getInt32(c+0,!0),i=Qt().getInt32(c+4,!0),r=(a=s,l=i,a>>>=0,mi().subarray(a/1,a/1+l)).slice();return He.__wbindgen_export_0(s,1*i,1),r}finally{He.__wbindgen_add_to_stack_pointer(16)}var a,l}async function Nd(t){if(He!==void 0)return He;t!==void 0&&(Object.getPrototypeOf(t)===Object.prototype?{module_or_path:t}=t:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),t===void 0&&(t=new URL("/assets/bindings_wasm_bg-CH5ekNIA.wasm",self.location.href));const e=function(){const i={wbg:{}};return i.wbg.__wbg_buffer_609cc3eee51ed158=function(r){return Zn(Qn(r).buffer)},i.wbg.__wbg_error_7534b8e9a36f1ab4=function(r,a){let l,c;try{l=r,c=a,console.error(gi(r,a))}finally{He.__wbindgen_export_0(l,c,1)}},i.wbg.__wbg_length_a446193dc22c12f8=function(r){return Qn(r).length},i.wbg.__wbg_new_8a6f238a6ece86ea=function(){return Zn(new Error)},i.wbg.__wbg_new_a12002a7f91c75be=function(r){return Zn(new Uint8Array(Qn(r)))},i.wbg.__wbg_set_65595bdd868b3009=function(r,a,l){Qn(r).set(Qn(a),l>>>0)},i.wbg.__wbg_stack_0ed75d68575b0f3c=function(r,a){const l=Pd(Qn(a).stack,He.__wbindgen_export_1,He.__wbindgen_export_2),c=Br;Qt().setInt32(r+4,c,!0),Qt().setInt32(r+0,l,!0)},i.wbg.__wbindgen_memory=function(){return Zn(He.memory)},i.wbg.__wbindgen_object_drop_ref=function(r){Fg(r)},i.wbg.__wbindgen_throw=function(r,a){throw new Error(gi(r,a))},i}();(typeof t=="string"||typeof Request=="function"&&t instanceof Request||typeof URL=="function"&&t instanceof URL)&&(t=fetch(t));const{instance:n,module:s}=await async function(i,r){if(typeof Response=="function"&&i instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(i,r)}catch(l){if(i.headers.get("Content-Type")=="application/wasm")throw l;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",l)}const a=await i.arrayBuffer();return await WebAssembly.instantiate(a,r)}{const a=await WebAssembly.instantiate(i,r);return a instanceof WebAssembly.Instance?{instance:a,module:i}:a}}(await t,e);return function(i,r){return He=i.exports,Nd.__wbindgen_wasm_module=r,es=null,fi=null,He}(n,s)}const Bg=[function(t,e){return{type:"PanicError",start:e[t],end:e[t+1],message:e.convertString(e[t+2])}},function(t,e){return{type:"ParseError",start:e[t],end:e[t+1],message:e.convertString(e[t+2])}},function(t,e){return{type:"ArrayExpression",start:e[t],end:e[t+1],elements:Ve(e[t+2],e)}},function(t,e){return{type:"ArrayPattern",start:e[t],end:e[t+1],elements:Ve(e[t+2],e)}},function(t,e){const n=e[t+2],s=Rt(e[t+3],e);return{type:"ArrowFunctionExpression",start:e[t],end:e[t+1],async:!(1&~n),expression:!(2&~n),generator:!(4&~n),...s.length>0?{[As]:s}:{},params:Ve(e[t+4],e),body:Y(e[t+5],e),id:null}},function(t,e){return{type:"AssignmentExpression",start:e[t],end:e[t+1],operator:yt[e[t+2]],left:Y(e[t+3],e),right:Y(e[t+4],e)}},function(t,e){return{type:"AssignmentPattern",start:e[t],end:e[t+1],left:Y(e[t+2],e),right:Y(e[t+3],e)}},function(t,e){return{type:"AwaitExpression",start:e[t],end:e[t+1],argument:Y(e[t+2],e)}},function(t,e){return{type:"BinaryExpression",start:e[t],end:e[t+1],operator:yt[e[t+2]],left:Y(e[t+3],e),right:Y(e[t+4],e)}},function(t,e){return{type:"BlockStatement",start:e[t],end:e[t+1],body:Ve(e[t+2],e)}},function(t,e){const n=e[t+2];return{type:"BreakStatement",start:e[t],end:e[t+1],label:n===0?null:Y(n,e)}},function(t,e){const n=e[t+2],s=Rt(e[t+3],e);return{type:"CallExpression",start:e[t],end:e[t+1],optional:!(1&~n),...s.length>0?{[As]:s}:{},callee:Y(e[t+4],e),arguments:Ve(e[t+5],e)}},function(t,e){const n=e[t+2];return{type:"CatchClause",start:e[t],end:e[t+1],param:n===0?null:Y(n,e),body:Y(e[t+3],e)}},function(t,e){return{type:"ChainExpression",start:e[t],end:e[t+1],expression:Y(e[t+2],e)}},function(t,e){return{type:"ClassBody",start:e[t],end:e[t+1],body:Ve(e[t+2],e)}},function(t,e){const n=e[t+3],s=e[t+4];return{type:"ClassDeclaration",start:e[t],end:e[t+1],decorators:Ve(e[t+2],e),id:n===0?null:Y(n,e),superClass:s===0?null:Y(s,e),body:Y(e[t+5],e)}},function(t,e){const n=e[t+3],s=e[t+4];return{type:"ClassExpression",start:e[t],end:e[t+1],decorators:Ve(e[t+2],e),id:n===0?null:Y(n,e),superClass:s===0?null:Y(s,e),body:Y(e[t+5],e)}},function(t,e){return{type:"ConditionalExpression",start:e[t],end:e[t+1],test:Y(e[t+2],e),consequent:Y(e[t+3],e),alternate:Y(e[t+4],e)}},function(t,e){const n=e[t+2];return{type:"ContinueStatement",start:e[t],end:e[t+1],label:n===0?null:Y(n,e)}},function(t,e){return{type:"DebuggerStatement",start:e[t],end:e[t+1]}},function(t,e){return{type:"Decorator",start:e[t],end:e[t+1],expression:Y(e[t+2],e)}},function(t,e){return{type:"ExpressionStatement",start:e[t],end:e[t+1],directive:e.convertString(e[t+2]),expression:Y(e[t+3],e)}},function(t,e){return{type:"DoWhileStatement",start:e[t],end:e[t+1],body:Y(e[t+2],e),test:Y(e[t+3],e)}},function(t,e){return{type:"EmptyStatement",start:e[t],end:e[t+1]}},function(t,e){const n=e[t+2];return{type:"ExportAllDeclaration",start:e[t],end:e[t+1],exported:n===0?null:Y(n,e),source:Y(e[t+3],e),attributes:Ve(e[t+4],e)}},function(t,e){return{type:"ExportDefaultDeclaration",start:e[t],end:e[t+1],declaration:Y(e[t+2],e)}},function(t,e){const n=e[t+3],s=e[t+5];return{type:"ExportNamedDeclaration",start:e[t],end:e[t+1],specifiers:Ve(e[t+2],e),source:n===0?null:Y(n,e),attributes:Ve(e[t+4],e),declaration:s===0?null:Y(s,e)}},function(t,e){const n=Y(e[t+2],e),s=e[t+3];return{type:"ExportSpecifier",start:e[t],end:e[t+1],local:n,exported:s===0?{...n}:Y(s,e)}},function(t,e){return{type:"ExpressionStatement",start:e[t],end:e[t+1],expression:Y(e[t+2],e)}},function(t,e){return{type:"ForInStatement",start:e[t],end:e[t+1],left:Y(e[t+2],e),right:Y(e[t+3],e),body:Y(e[t+4],e)}},function(t,e){const n=e[t+2];return{type:"ForOfStatement",start:e[t],end:e[t+1],await:!(1&~n),left:Y(e[t+3],e),right:Y(e[t+4],e),body:Y(e[t+5],e)}},function(t,e){const n=e[t+2],s=e[t+3],i=e[t+4];return{type:"ForStatement",start:e[t],end:e[t+1],init:n===0?null:Y(n,e),test:s===0?null:Y(s,e),update:i===0?null:Y(i,e),body:Y(e[t+5],e)}},function(t,e){const n=e[t+2],s=Rt(e[t+3],e),i=e[t+4];return{type:"FunctionDeclaration",start:e[t],end:e[t+1],async:!(1&~n),generator:!(2&~n),...s.length>0?{[As]:s}:{},id:i===0?null:Y(i,e),params:Ve(e[t+5],e),body:Y(e[t+6],e),expression:!1}},function(t,e){const n=e[t+2],s=Rt(e[t+3],e),i=e[t+4];return{type:"FunctionExpression",start:e[t],end:e[t+1],async:!(1&~n),generator:!(2&~n),...s.length>0?{[As]:s}:{},id:i===0?null:Y(i,e),params:Ve(e[t+5],e),body:Y(e[t+6],e),expression:!1}},function(t,e){return{type:"Identifier",start:e[t],end:e[t+1],name:e.convertString(e[t+2])}},function(t,e){const n=e[t+4];return{type:"IfStatement",start:e[t],end:e[t+1],test:Y(e[t+2],e),consequent:Y(e[t+3],e),alternate:n===0?null:Y(n,e)}},function(t,e){return{type:"ImportAttribute",start:e[t],end:e[t+1],key:Y(e[t+2],e),value:Y(e[t+3],e)}},function(t,e){return{type:"ImportDeclaration",start:e[t],end:e[t+1],specifiers:Ve(e[t+2],e),source:Y(e[t+3],e),attributes:Ve(e[t+4],e)}},function(t,e){return{type:"ImportDefaultSpecifier",start:e[t],end:e[t+1],local:Y(e[t+2],e)}},function(t,e){const n=e[t+3];return{type:"ImportExpression",start:e[t],end:e[t+1],source:Y(e[t+2],e),options:n===0?null:Y(n,e)}},function(t,e){return{type:"ImportNamespaceSpecifier",start:e[t],end:e[t+1],local:Y(e[t+2],e)}},function(t,e){const n=e[t+2],s=Y(e[t+3],e);return{type:"ImportSpecifier",start:e[t],end:e[t+1],imported:n===0?{...s}:Y(n,e),local:s}},function(t,e){const n=e[t+3];return{type:"JSXAttribute",start:e[t],end:e[t+1],name:Y(e[t+2],e),value:n===0?null:Y(n,e)}},function(t,e){return{type:"JSXClosingElement",start:e[t],end:e[t+1],name:Y(e[t+2],e)}},function(t,e){return{type:"JSXClosingFragment",start:e[t],end:e[t+1]}},function(t,e){const n=e[t+4];return{type:"JSXElement",start:e[t],end:e[t+1],openingElement:Y(e[t+2],e),children:Ve(e[t+3],e),closingElement:n===0?null:Y(n,e)}},function(t,e){return{type:"JSXEmptyExpression",start:e[t],end:e[t+1]}},function(t,e){return{type:"JSXExpressionContainer",start:e[t],end:e[t+1],expression:Y(e[t+2],e)}},function(t,e){return{type:"JSXFragment",start:e[t],end:e[t+1],openingFragment:Y(e[t+2],e),children:Ve(e[t+3],e),closingFragment:Y(e[t+4],e)}},function(t,e){return{type:"JSXIdentifier",start:e[t],end:e[t+1],name:e.convertString(e[t+2])}},function(t,e){return{type:"JSXMemberExpression",start:e[t],end:e[t+1],object:Y(e[t+2],e),property:Y(e[t+3],e)}},function(t,e){return{type:"JSXNamespacedName",start:e[t],end:e[t+1],namespace:Y(e[t+2],e),name:Y(e[t+3],e)}},function(t,e){const n=e[t+2];return{type:"JSXOpeningElement",start:e[t],end:e[t+1],selfClosing:!(1&~n),name:Y(e[t+3],e),attributes:Ve(e[t+4],e)}},function(t,e){return{type:"JSXOpeningFragment",start:e[t],end:e[t+1],attributes:[],selfClosing:!1}},function(t,e){return{type:"JSXSpreadAttribute",start:e[t],end:e[t+1],argument:Y(e[t+2],e)}},function(t,e){return{type:"JSXSpreadChild",start:e[t],end:e[t+1],expression:Y(e[t+2],e)}},function(t,e){return{type:"JSXText",start:e[t],end:e[t+1],value:e.convertString(e[t+2]),raw:e.convertString(e[t+3])}},function(t,e){return{type:"LabeledStatement",start:e[t],end:e[t+1],label:Y(e[t+2],e),body:Y(e[t+3],e)}},function(t,e){const n=e.convertString(e[t+2]);return{type:"Literal",start:e[t],end:e[t+1],bigint:n,raw:e.convertString(e[t+3]),value:BigInt(n)}},function(t,e){const n=!(1&~e[t+2]);return{type:"Literal",start:e[t],end:e[t+1],value:n,raw:n?"true":"false"}},function(t,e){return{type:"Literal",start:e[t],end:e[t+1],raw:"null",value:null}},function(t,e){const n=e[t+2];return{type:"Literal",start:e[t],end:e[t+1],raw:n===0?void 0:e.convertString(n),value:new DataView(e.buffer).getFloat64(t+3<<2,!0)}},function(t,e){const n=e.convertString(e[t+2]),s=e.convertString(e[t+3]);return{type:"Literal",start:e[t],end:e[t+1],raw:`/${s}/${n}`,regex:{flags:n,pattern:s},value:new RegExp(s,n)}},function(t,e){const n=e[t+3];return{type:"Literal",start:e[t],end:e[t+1],value:e.convertString(e[t+2]),raw:n===0?void 0:e.convertString(n)}},function(t,e){return{type:"LogicalExpression",start:e[t],end:e[t+1],operator:yt[e[t+2]],left:Y(e[t+3],e),right:Y(e[t+4],e)}},function(t,e){const n=e[t+2];return{type:"MemberExpression",start:e[t],end:e[t+1],computed:!(1&~n),optional:!(2&~n),object:Y(e[t+3],e),property:Y(e[t+4],e)}},function(t,e){return{type:"MetaProperty",start:e[t],end:e[t+1],meta:Y(e[t+2],e),property:Y(e[t+3],e)}},function(t,e){const n=e[t+2];return{type:"MethodDefinition",start:e[t],end:e[t+1],static:!(1&~n),computed:!(2&~n),decorators:Ve(e[t+3],e),key:Y(e[t+4],e),value:Y(e[t+5],e),kind:yt[e[t+6]]}},function(t,e){const n=Rt(e[t+2],e);return{type:"NewExpression",start:e[t],end:e[t+1],...n.length>0?{[As]:n}:{},callee:Y(e[t+3],e),arguments:Ve(e[t+4],e)}},function(t,e){return{type:"ObjectExpression",start:e[t],end:e[t+1],properties:Ve(e[t+2],e)}},function(t,e){return{type:"ObjectPattern",start:e[t],end:e[t+1],properties:Ve(e[t+2],e)}},function(t,e){return{type:"PrivateIdentifier",start:e[t],end:e[t+1],name:e.convertString(e[t+2])}},function(t,e){const n=Rt(e[t+3],e);return{type:"Program",start:e[t],end:e[t+1],body:Ve(e[t+2],e),...n.length>0?{[vh]:n}:{},sourceType:"module"}},function(t,e){const n=e[t+2],s=e[t+3],i=Y(e[t+4],e);return{type:"Property",start:e[t],end:e[t+1],method:!(1&~n),shorthand:!(2&~n),computed:!(4&~n),key:s===0?{...i}:Y(s,e),value:i,kind:yt[e[t+5]]}},function(t,e){const n=e[t+2],s=e[t+5];return{type:"PropertyDefinition",start:e[t],end:e[t+1],static:!(1&~n),computed:!(2&~n),decorators:Ve(e[t+3],e),key:Y(e[t+4],e),value:s===0?null:Y(s,e)}},function(t,e){return{type:"RestElement",start:e[t],end:e[t+1],argument:Y(e[t+2],e)}},function(t,e){const n=e[t+2];return{type:"ReturnStatement",start:e[t],end:e[t+1],argument:n===0?null:Y(n,e)}},function(t,e){return{type:"SequenceExpression",start:e[t],end:e[t+1],expressions:Ve(e[t+2],e)}},function(t,e){return{type:"SpreadElement",start:e[t],end:e[t+1],argument:Y(e[t+2],e)}},function(t,e){return{type:"StaticBlock",start:e[t],end:e[t+1],body:Ve(e[t+2],e)}},function(t,e){return{type:"Super",start:e[t],end:e[t+1]}},function(t,e){const n=e[t+2];return{type:"SwitchCase",start:e[t],end:e[t+1],test:n===0?null:Y(n,e),consequent:Ve(e[t+3],e)}},function(t,e){return{type:"SwitchStatement",start:e[t],end:e[t+1],discriminant:Y(e[t+2],e),cases:Ve(e[t+3],e)}},function(t,e){return{type:"TaggedTemplateExpression",start:e[t],end:e[t+1],tag:Y(e[t+2],e),quasi:Y(e[t+3],e)}},function(t,e){const n=e[t+2],s=e[t+3],i=s===0?void 0:e.convertString(s),r=e.convertString(e[t+4]);return{type:"TemplateElement",start:e[t],end:e[t+1],tail:!(1&~n),value:{cooked:i,raw:r}}},function(t,e){return{type:"TemplateLiteral",start:e[t],end:e[t+1],quasis:Ve(e[t+2],e),expressions:Ve(e[t+3],e)}},function(t,e){return{type:"ThisExpression",start:e[t],end:e[t+1]}},function(t,e){return{type:"ThrowStatement",start:e[t],end:e[t+1],argument:Y(e[t+2],e)}},function(t,e){const n=e[t+3],s=e[t+4];return{type:"TryStatement",start:e[t],end:e[t+1],block:Y(e[t+2],e),handler:n===0?null:Y(n,e),finalizer:s===0?null:Y(s,e)}},function(t,e){return{type:"UnaryExpression",start:e[t],end:e[t+1],operator:yt[e[t+2]],argument:Y(e[t+3],e),prefix:!0}},function(t,e){const n=e[t+2];return{type:"UpdateExpression",start:e[t],end:e[t+1],prefix:!(1&~n),operator:yt[e[t+3]],argument:Y(e[t+4],e)}},function(t,e){return{type:"VariableDeclaration",start:e[t],end:e[t+1],kind:yt[e[t+2]],declarations:Ve(e[t+3],e)}},function(t,e){const n=e[t+3];return{type:"VariableDeclarator",start:e[t],end:e[t+1],id:Y(e[t+2],e),init:n===0?null:Y(n,e)}},function(t,e){return{type:"WhileStatement",start:e[t],end:e[t+1],test:Y(e[t+2],e),body:Y(e[t+3],e)}},function(t,e){const n=e[t+2],s=e[t+3];return{type:"YieldExpression",start:e[t],end:e[t+1],delegate:!(1&~n),argument:s===0?null:Y(s,e)}}];function Y(t,e){const n=e[t],s=Bg[n];if(!s)throw console.trace(),new Error(`Unknown node type: ${n}`);return s(t+1,e)}function Ve(t,e){if(t===0)return Qe;const n=e[t++],s=new Array(n);for(let i=0;i<n;i++){const r=e[t++];s[i]=r?Y(r,e):null}return s}function Cd(t){const e=new Uint32Array(t.buffer);let n;if(typeof Buffer<"u"&&t instanceof Buffer)n=s=>{const i=e[s++],r=s<<2;return t.toString("utf8",r,r+i)};else{const s=new TextDecoder;n=i=>{const r=e[i++],a=i<<2;return s.decode(t.subarray(a,a+r))}}return Object.assign(e,{convertString:n})}class zr extends te{addExportedVariables(e,n){for(const s of this.elements)s?.addExportedVariables(e,n)}declare(e,n,s){const i=[],r=Vr(n);for(const a of this.elements)a!==null&&i.push(...a.declare(e,r,s));return i}deoptimizeAssignment(e,n){const s=Vr(e);for(const i of this.elements)i?.deoptimizeAssignment(s,n)}deoptimizePath(){for(const e of this.elements)e?.deoptimizePath(ue)}hasEffectsWhenDestructuring(e,n,s){const i=Vr(n);for(const r of this.elements)if(r?.hasEffectsWhenDestructuring(e,i,s))return!0;return!1}hasEffectsOnInteractionAtPath(e,n,s){for(const i of this.elements)if(i?.hasEffectsOnInteractionAtPath(ue,n,s))return!0;return!1}includeDestructuredIfNecessary(e,n,s){let i=!1;const r=Vr(n);for(const a of this.elements)a&&(a.included||=i,i=a.includeDestructuredIfNecessary(e,r,s)||i);if(i)for(const a of this.elements)a&&!a.included&&(a.included=!0,a.includeDestructuredIfNecessary(e,r,s));return this.included||=i}markDeclarationReached(){for(const e of this.elements)e?.markDeclarationReached()}}zr.prototype.includeNode=dt;const Vr=t=>t.at(-1)===_e?t:[...t,fs];class yi extends li{constructor(){super(...arguments),this.objectEntity=null}get expression(){return Le(this.flags,8388608)}set expression(e){this.flags=Me(this.flags,8388608,e)}createScope(e){this.scope=new Kh(e,!1)}hasEffects(){return!1}hasEffectsOnInteractionAtPath(e,n,s){if(this.annotationNoSideEffects&&e.length===0&&n.type===2)return!1;if(super.hasEffectsOnInteractionAtPath(e,n,s))return!0;if(n.type===2){const{ignore:i,brokenFlow:r}=s;if(s.ignore={breaks:!1,continues:!1,labels:new Set,returnYield:!0,this:!1},this.body.hasEffects(s))return!0;s.ignore=i,s.brokenFlow=r}return!1}onlyFunctionCallUsed(){return this.parent.type===Js&&this.parent.callee===this||super.onlyFunctionCallUsed()}include(e,n){super.include(e,n);for(const s of this.params)s instanceof Fe||s.include(e,n)}includeNode(e){this.included=!0,this.body.includePath(le,e);for(const n of this.params)n instanceof Fe||n.includePath(le,e)}getObjectEntity(){return this.objectEntity!==null?this.objectEntity:this.objectEntity=new $t([],Sn)}}class vn extends te{addExportedVariables(e,n){for(const s of this.properties)s.type===Wu?s.value.addExportedVariables(e,n):s.argument.addExportedVariables(e,n)}declare(e,n,s){const i=[];for(const r of this.properties)i.push(...r.declare(e,n,s));return i}deoptimizeAssignment(e,n){for(const s of this.properties)s.deoptimizeAssignment(e,n)}deoptimizePath(e){if(e.length===0)for(const n of this.properties)n.deoptimizePath(e)}hasEffectsOnInteractionAtPath(e,n,s){for(const i of this.properties)if(i.hasEffectsOnInteractionAtPath(ue,n,s))return!0;return!1}hasEffectsWhenDestructuring(e,n,s){for(const i of this.properties)if(i.hasEffectsWhenDestructuring(e,n,s))return!0;return!1}includeDestructuredIfNecessary(e,n,s){if(!this.properties.length)return!1;const i=this.properties.at(-1),r=i.includeDestructuredIfNecessary(e,n,s),a=i.type==="RestElement";let l=!!a&&r;for(const c of this.properties.slice(0,-1))a&&r&&c.includeNode(e),l=c.includeDestructuredIfNecessary(e,n,s)||l;return this.included||=l}markDeclarationReached(){for(const e of this.properties)e.markDeclarationReached()}render(e,n){if(this.properties.length>0){const s=er(this.properties,e,this.start+1,this.end-1);let i=null;for(const{node:r,separator:a,start:l,end:c}of s)r.included?(i=a,r.render(e,n)):ps(r,e,l,c);i&&e.remove(i,this.end-1)}}}vn.prototype.includeNode=ze,vn.prototype.applyDeoptimizations=Te;class Td extends te{constructor(){super(...arguments),this.isConstReassignment=!1}hasEffects(e){const{deoptimized:n,isConstReassignment:s,left:i,operator:r,right:a}=this;return n||this.applyDeoptimizations(),s||a.hasEffects(e)||i.hasEffectsAsAssignmentTarget(e,r!=="=")||this.left.hasEffectsWhenDestructuring?.(e,ue,a)}hasEffectsOnInteractionAtPath(e,n,s){return this.right.hasEffectsOnInteractionAtPath(e,n,s)}include(e,n){const{deoptimized:s,isConstReassignment:i,left:r,right:a,operator:l}=this;s||this.applyDeoptimizations(),this.included||this.includeNode(e);const c=Mn();(n||i||l!=="="||r.included||r.hasEffectsAsAssignmentTarget(c,!1)||r.hasEffectsWhenDestructuring?.(c,ue,a))&&r.includeAsAssignmentTarget(e,n,l!=="="),a.include(e,n)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.right.includePath(le,e)}initialise(){super.initialise(),this.left instanceof Fe&&this.scope.variables.get(this.left.name)?.kind==="const"&&(this.isConstReassignment=!0,this.scope.context.log(Ee,{code:"CONST_REASSIGN",message:"Cannot reassign a variable declared with `const`"},this.left.start)),this.left.setAssignedValue(this.right)}render(e,n,{preventASI:s,renderedParentType:i,renderedSurroundingElement:r}=pt){const{left:a,right:l,start:c,end:u,parent:d}=this;if(a.included)a.render(e,n),l.render(e,n);else{const m=kn(e.original,ht(e.original,"=",a.end)+1);e.remove(c,m),s&&tr(e,m,l.start),l.render(e,n,{renderedParentType:i||d.type,renderedSurroundingElement:r||d.type})}if(n.format==="system")if(a instanceof Fe){const m=a.variable,f=n.exportNamesByVariable.get(m);if(f)return void(f.length===1?Zo(m,c,u,e,n):ju(m,c,u,d.type!==Wt,e,n))}else{const m=[];if(a.addExportedVariables(m,n.exportNamesByVariable),m.length>0)return void function(f,g,E,k,I,A){const{_:x,getDirectReturnIifeLeft:w}=A.snippets;I.prependRight(g,w(["v"],`${On(f,A)},${x}v`,{needsArrowReturnParens:!0,needsWrappedFunction:k})),I.appendLeft(E,")")}(m,c,u,r===Wt,e,n)}a.included&&a instanceof vn&&(r===Wt||r===ia)&&(e.appendRight(c,"("),e.prependLeft(u,")"))}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizeAssignment(ue,this.right),this.scope.context.requestTreeshakingPass()}}class Rd extends te{addExportedVariables(e,n){this.left.addExportedVariables(e,n)}declare(e,n,s){return this.left.declare(e,n,s)}deoptimizeAssignment(e,n){this.left.deoptimizeAssignment(e,n)}deoptimizePath(e){e.length===0&&this.left.deoptimizePath(e)}hasEffectsOnInteractionAtPath(e,n,s){return e.length>0||this.left.hasEffectsOnInteractionAtPath(ue,n,s)}hasEffectsWhenDestructuring(e,n,s){return this.left.hasEffectsWhenDestructuring(e,n,s)}includeDestructuredIfNecessary(e,n,s){let i=this.left.includeDestructuredIfNecessary(e,n,s)||this.included;return(i||=this.right.shouldBeIncluded(e))&&(this.right.include(e,!1),this.left.included||(this.left.included=!0,this.left.includeDestructuredIfNecessary(e,n,s))),this.included=i}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.right.includePath(le,e)}markDeclarationReached(){this.left.markDeclarationReached()}render(e,n,{isShorthandProperty:s}=pt){this.left.render(e,n,{isShorthandProperty:s}),this.right.render(e,n)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(ue),this.right.deoptimizePath(le),this.scope.context.requestTreeshakingPass()}}class Ur extends te{hasEffects(){return this.deoptimized||this.applyDeoptimizations(),!0}initialise(){super.initialise();let e=this.parent;do if(e instanceof vr||e instanceof yi)return;while(e=e.parent);this.scope.context.usesTopLevelAwait=!0}include(e,n){this.included||this.includeNode(e),this.argument.include(e,n)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.argument.includePath(jg,e)}includePath(e,n){this.deoptimized||this.applyDeoptimizations(),this.included||this.includeNode(n),this.argument.includePath(e,n)}}const jg=["then"];function Dd(t){return t===void 0?"void 0":typeof t=="boolean"?String(t):typeof t=="string"?JSON.stringify(t):typeof t=="number"?function(e){if(Object.is(-0,e))return"-0";const n=e.toExponential(),[s,i]=n.split("e"),r=s.split(".")[1]?.length||0,a=`${s.replace(".","")}e${parseInt(i)-r}`,l=String(e).replace("+","");return a.length<l.length?a:l}(t):Ce}const zg={"!=":(t,e)=>t!=e,"!==":(t,e)=>t!==e,"%":(t,e)=>t%e,"&":(t,e)=>t&e,"*":(t,e)=>t*e,"**":(t,e)=>t**e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"/":(t,e)=>t/e,"<":(t,e)=>t<e,"<<":(t,e)=>t<<e,"<=":(t,e)=>t<=e,"==":(t,e)=>t==e,"===":(t,e)=>t===e,">":(t,e)=>t>e,">=":(t,e)=>t>=e,">>":(t,e)=>t>>e,">>>":(t,e)=>t>>>e,"^":(t,e)=>t^e,"|":(t,e)=>t|e},Od=Symbol("Unassigned");class Wa extends te{constructor(){super(...arguments),this.renderedLiteralValue=Od}deoptimizeCache(){this.renderedLiteralValue=Ce}getLiteralValueAtPath(e,n,s){if(e.length>0)return Ce;const i=this.left.getLiteralValueAtPath(ue,n,s);if(typeof i=="symbol")return Ce;if(this.operator==="in"&&this.right.variable instanceof Ps)return this.right.variable.context.traceExport(String(i))[0]!=null;const r=this.right.getLiteralValueAtPath(ue,n,s);if(typeof r=="symbol")return Ce;const a=zg[this.operator];return a?a(i,r):Ce}getRenderedLiteralValue(){return this.operator==="in"&&this.right.variable?.isNamespace?this.renderedLiteralValue!==Od?this.renderedLiteralValue:this.renderedLiteralValue=Dd(this.getLiteralValueAtPath(ue,Ge,this)):Ce}hasEffects(e){return this.operator==="+"&&this.parent instanceof Bt&&this.left.getLiteralValueAtPath(ue,Ge,this)===""||super.hasEffects(e)}hasEffectsOnInteractionAtPath(e,{type:n}){return n!==0||e.length>1}include(e,n,s){this.included=!0,typeof this.getRenderedLiteralValue()=="symbol"&&super.include(e,n,s)}includeNode(e){this.included=!0,this.operator==="in"&&typeof this.getRenderedLiteralValue()=="symbol"&&this.right.includePath(le,e)}removeAnnotations(e){this.left.removeAnnotations(e)}render(e,n,{renderedSurroundingElement:s}=pt){const i=this.getRenderedLiteralValue();typeof i!="symbol"?e.overwrite(this.start,this.end,i):(this.left.render(e,n,{renderedSurroundingElement:s}),this.right.render(e,n))}}Wa.prototype.applyDeoptimizations=Te;class qr extends te{hasEffects(e){if(this.label){if(!e.ignore.labels.has(this.label.name))return!0;e.includedLabels.add(this.label.name)}else{if(!e.ignore.breaks)return!0;e.hasBreak=!0}return e.brokenFlow=!0,!1}include(e,n){this.included=!0,this.label?(this.label.include(e,n),e.includedLabels.add(this.label.name)):e.hasBreak=!0,e.brokenFlow=!0}}function Ld(t,e,n){if(n.arguments.length>0)if(n.arguments[n.arguments.length-1].included)for(const s of n.arguments)s.render(t,e);else{let s=n.arguments.length-2;for(;s>=0&&!n.arguments[s].included;)s--;if(s>=0){for(let i=0;i<=s;i++)n.arguments[i].render(t,e);t.remove(ht(t.original,",",n.arguments[s].end),n.end-1)}else t.remove(ht(t.original,"(",n.callee.end)+1,n.end-1)}}qr.prototype.includeNode=ze,qr.prototype.applyDeoptimizations=Te;class Md extends te{constructor(){super(...arguments),this.returnExpression=null,this.deoptimizableDependentExpressions=[],this.expressionsToBeDeoptimized=new Set}deoptimizeArgumentsOnInteractionAtPath(e,n,s){const{args:i}=e,[r,a]=this.getReturnExpression(s);if(a)return;const l=i.filter(c=>!!c&&c!==Pe);if(l.length!==0)if(r===Pe)for(const c of l)c.deoptimizePath(le);else s.withTrackedEntityAtPath(n,r,()=>{for(const c of l)this.expressionsToBeDeoptimized.add(c);r.deoptimizeArgumentsOnInteractionAtPath(e,n,s)},null)}deoptimizeCache(){if(this.returnExpression?.[0]!==Pe){this.returnExpression=rt;const{deoptimizableDependentExpressions:e,expressionsToBeDeoptimized:n}=this;this.expressionsToBeDeoptimized=zu,this.deoptimizableDependentExpressions=Qe;for(const s of e)s.deoptimizeCache();for(const s of n)s.deoptimizePath(le)}}deoptimizePath(e){if(e.length===0||this.scope.context.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(e,this))return;const[n]=this.getReturnExpression();n!==Pe&&n.deoptimizePath(e)}getLiteralValueAtPath(e,n,s){const[i]=this.getReturnExpression(n);return i===Pe?Ce:n.withTrackedEntityAtPath(e,i,()=>(this.deoptimizableDependentExpressions.push(s),i.getLiteralValueAtPath(e,n,s)),Ce)}getReturnExpressionWhenCalledAtPath(e,n,s,i){const r=this.getReturnExpression(s);return r[0]===Pe?r:s.withTrackedEntityAtPath(e,r,()=>{this.deoptimizableDependentExpressions.push(i);const[a,l]=r[0].getReturnExpressionWhenCalledAtPath(e,n,s,i);return[a,l||r[1]]},rt)}hasEffectsOnInteractionAtPath(e,n,s){const{type:i}=n;if(i===2){const{args:l,withNew:c}=n;if((c?s.instantiated:s.called).trackEntityAtPathAndGetIfTracked(e,l,this))return!1}else if((i===1?s.assigned:s.accessed).trackEntityAtPathAndGetIfTracked(e,this))return!1;const[r,a]=this.getReturnExpression();return(i===1||!a)&&r.hasEffectsOnInteractionAtPath(e,n,s)}}class Xa extends Md{get hasCheckedForWarnings(){return Le(this.flags,268435456)}set hasCheckedForWarnings(e){this.flags=Me(this.flags,268435456,e)}get optional(){return Le(this.flags,128)}set optional(e){this.flags=Me(this.flags,128,e)}bind(){super.bind(),this.interaction={args:[this.callee instanceof mn&&!this.callee.variable?this.callee.object:null,...this.arguments],type:2,withNew:!1}}getLiteralValueAtPathAsChainElement(e,n,s){return sd(this,this.callee,e,n,s)}hasEffects(e){this.deoptimized||this.applyDeoptimizations();for(const n of this.arguments)if(n.hasEffects(e))return!0;return!this.annotationPure&&(this.callee.hasEffects(e)||this.callee.hasEffectsOnInteractionAtPath(ue,this.interaction,e))}hasEffectsAsChainElement(e){const n="hasEffectsAsChainElement"in this.callee?this.callee.hasEffectsAsChainElement(e):this.callee.hasEffects(e);if(n===Xt)return Xt;if(this.optional&&this.callee.getLiteralValueAtPath(ue,Ge,this)==null)return!this.annotationPure&&n||Xt;this.deoptimized||this.applyDeoptimizations();for(const s of this.arguments)if(s.hasEffects(e))return!0;return!this.annotationPure&&(n||this.callee.hasEffectsOnInteractionAtPath(ue,this.interaction,e))}include(e,n){this.included||this.includeNode(e),n?(super.include(e,!0),n===_h&&this.callee instanceof Fe&&this.callee.variable&&this.callee.variable.markCalledFromTryStatement()):(this.callee.include(e,!1),this.callee.includeCallArguments(this.interaction,e))}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.callee.includePath(le,e)}initialise(){super.initialise(),this.annotations&&this.scope.context.options.treeshake.annotations&&(this.annotationPure=this.annotations.some(e=>e.type==="pure"))}render(e,n,{renderedSurroundingElement:s}=pt){this.callee.render(e,n,{isCalleeOfRenderedParent:!0,renderedSurroundingElement:s}),Ld(e,n,this),this.callee instanceof Fe&&!this.hasCheckedForWarnings&&(this.hasCheckedForWarnings=!0,this.scope.findVariable(this.callee.name).isNamespace&&this.scope.context.log(Ee,fh(this.callee.name),this.start),this.callee.name==="eval"&&this.scope.context.log(Ee,{code:"EVAL",id:i=this.scope.context.module.id,message:`Use of eval in "${Ae(i)}" is strongly discouraged as it poses security risks and may cause issues with minification.`,url:ot("troubleshooting/#avoiding-eval")},this.start));var i}applyDeoptimizations(){this.deoptimized=!0,this.callee.deoptimizeArgumentsOnInteractionAtPath(this.interaction,ue,Ge),this.scope.context.requestTreeshakingPass()}getReturnExpression(e=Ge){return this.returnExpression===null?(this.returnExpression=rt,this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(ue,this.interaction,e,this)):this.returnExpression}}class Hr extends te{createScope(e){this.scope=new Xh(e,!0)}parseNode(e){const{body:n,param:s,type:i}=e;return this.type=i,s&&(this.param=new(this.scope.context.getNodeConstructor(s.type))(this,this.scope).parseNode(s),this.param.declare("parameter",ue,Pe)),this.body=new Wn(this,this.scope.bodyScope).parseNode(n),super.parseNode(e)}}Hr.prototype.preventChildBlockScope=!0,Hr.prototype.includeNode=dt;class Gr extends te{deoptimizeCache(){}getLiteralValueAtPath(e,n,s){const i=this.expression.getLiteralValueAtPathAsChainElement(e,n,s);return i===Xt?void 0:i}hasEffects(e){return this.expression.hasEffectsAsChainElement(e)===!0}includePath(e,n){this.included=!0,this.expression.includePath(e,n)}removeAnnotations(e){this.expression.removeAnnotations(e)}}Gr.prototype.includeNode=ze,Gr.prototype.applyDeoptimizations=Te;class Vg extends St{constructor(e,n){const{context:s}=e;super(e,s),this.variables.set("this",this.thisVariable=new Dt("this",null,n,ue,s,"other")),this.instanceScope=new St(this,s),this.instanceScope.variables.set("this",new Wh(s))}findLexicalBoundary(){return this}}class Wr extends te{createScope(e){this.scope=new Vg(e,this.parent)}include(e,n){this.included=!0,this.scope.context.includeVariableInModule(this.scope.thisVariable,le,e);for(const s of this.body)s.include(e,n)}parseNode(e){const n=this.body=new Array(e.body.length);let s=0;for(const i of e.body)n[s++]=new(this.scope.context.getNodeConstructor(i.type))(this,i.static?this.scope:this.scope.instanceScope).parseNode(i);return super.parseNode(e)}}Wr.prototype.includeNode=ze,Wr.prototype.applyDeoptimizations=Te;class Xr extends Pa{render(e,n,{renderedSurroundingElement:s}=pt){super.render(e,n),s===Wt&&(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}}function Cs(t){return typeof t=="symbol"?t!==ir&&(t===sr||Ce):!!t}class Kr extends Pt{constructor(e){super(),this.expressions=e}deoptimizePath(e){for(const n of this.expressions)n.deoptimizePath(e)}getReturnExpressionWhenCalledAtPath(e,n,s,i){return[new Kr(this.expressions.map(r=>r.getReturnExpressionWhenCalledAtPath(e,n,s,i)[0])),!1]}hasEffectsOnInteractionAtPath(e,n,s){for(const i of this.expressions)if(i.hasEffectsOnInteractionAtPath(e,n,s))return!0;return!1}}class Jr extends te{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.usedBranch=null}get isBranchResolutionAnalysed(){return Le(this.flags,65536)}set isBranchResolutionAnalysed(e){this.flags=Me(this.flags,65536,e)}get hasDeoptimizedCache(){return Le(this.flags,33554432)}set hasDeoptimizedCache(e){this.flags=Me(this.flags,33554432,e)}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.consequent.deoptimizeArgumentsOnInteractionAtPath(e,n,s),this.alternate.deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizeCache(){if(!this.hasDeoptimizedCache&&(this.hasDeoptimizedCache=!0,this.usedBranch!==null)){const e=this.usedBranch===this.consequent?this.alternate:this.consequent;this.usedBranch=null,e.deoptimizePath(le),this.included&&e.includePath(le,Lt());const{expressionsToBeDeoptimized:n}=this;this.expressionsToBeDeoptimized=Qe;for(const s of n)s.deoptimizeCache()}}deoptimizePath(e){const n=this.getUsedBranch();n?n.deoptimizePath(e):(this.consequent.deoptimizePath(e),this.alternate.deoptimizePath(e))}getLiteralValueAtPath(e,n,s){const i=this.getUsedBranch();if(!i){if(this.hasDeoptimizedCache)return Ce;const r=this.consequent.getLiteralValueAtPath(e,n,s),a=Cs(r);if(a===Ce)return Ce;const l=this.alternate.getLiteralValueAtPath(e,n,s);return a!==Cs(l)?Ce:(this.expressionsToBeDeoptimized.push(s),r!==l?a?sr:ir:r)}return this.expressionsToBeDeoptimized.push(s),i.getLiteralValueAtPath(e,n,s)}getReturnExpressionWhenCalledAtPath(e,n,s,i){const r=this.getUsedBranch();return r?(this.expressionsToBeDeoptimized.push(i),r.getReturnExpressionWhenCalledAtPath(e,n,s,i)):[new Kr([this.consequent.getReturnExpressionWhenCalledAtPath(e,n,s,i)[0],this.alternate.getReturnExpressionWhenCalledAtPath(e,n,s,i)[0]]),!1]}hasEffects(e){if(this.test.hasEffects(e))return!0;const n=this.getUsedBranch();return n?n.hasEffects(e):this.consequent.hasEffects(e)||this.alternate.hasEffects(e)}hasEffectsOnInteractionAtPath(e,n,s){const i=this.getUsedBranch();return i?i.hasEffectsOnInteractionAtPath(e,n,s):this.consequent.hasEffectsOnInteractionAtPath(e,n,s)||this.alternate.hasEffectsOnInteractionAtPath(e,n,s)}include(e,n){this.included=!0;const s=this.getUsedBranch();s===null||n||this.test.shouldBeIncluded(e)?(this.test.include(e,n),this.consequent.include(e,n),this.alternate.include(e,n)):s.include(e,n)}includePath(e,n){this.included=!0;const s=this.getUsedBranch();s===null||this.test.shouldBeIncluded(n)?(this.consequent.includePath(e,n),this.alternate.includePath(e,n)):s.includePath(e,n)}includeCallArguments(e,n){const s=this.getUsedBranch();s?s.includeCallArguments(e,n):(this.consequent.includeCallArguments(e,n),this.alternate.includeCallArguments(e,n))}removeAnnotations(e){this.test.removeAnnotations(e)}render(e,n,{isCalleeOfRenderedParent:s,preventASI:i,renderedParentType:r,renderedSurroundingElement:a}=pt){if(this.test.included)this.test.render(e,n,{renderedSurroundingElement:a}),this.consequent.render(e,n),this.alternate.render(e,n);else{const l=this.getUsedBranch(),c=ht(e.original,":",this.consequent.end),u=kn(e.original,(this.consequent.included?ht(e.original,"?",this.test.end):c)+1);i&&tr(e,u,l.start),e.remove(this.start,u),this.consequent.included&&e.remove(c,this.end),this.test.removeAnnotations(e),l.render(e,n,{isCalleeOfRenderedParent:s,preventASI:!0,renderedParentType:r||this.parent.type,renderedSurroundingElement:a||this.parent.type})}}getUsedBranch(){if(this.isBranchResolutionAnalysed)return this.usedBranch;this.isBranchResolutionAnalysed=!0;const e=Cs(this.test.getLiteralValueAtPath(ue,Ge,this));return typeof e=="symbol"?null:this.usedBranch=e?this.consequent:this.alternate}}Jr.prototype.includeNode=ze,Jr.prototype.applyDeoptimizations=Te;class Yr extends te{hasEffects(e){if(this.label){if(!e.ignore.labels.has(this.label.name))return!0;e.includedLabels.add(this.label.name)}else{if(!e.ignore.continues)return!0;e.hasContinue=!0}return e.brokenFlow=!0,!1}include(e,n){this.included=!0,this.label?(this.label.include(e,n),e.includedLabels.add(this.label.name)):e.hasContinue=!0,e.brokenFlow=!0}}Yr.prototype.includeNode=ze,Yr.prototype.applyDeoptimizations=Te;class Ka extends te{hasEffects(){return!0}}Ka.prototype.includeNode=dt;class Ja extends te{hasEffects(e){return this.expression.hasEffects(e)||this.expression.hasEffectsOnInteractionAtPath(ue,Ks,e)}}function Qr(t,e){const{brokenFlow:n,hasBreak:s,hasContinue:i,ignore:r}=t,{breaks:a,continues:l}=r;return r.breaks=!0,r.continues=!0,t.hasBreak=!1,t.hasContinue=!1,!!e.hasEffects(t)||(r.breaks=a,r.continues=l,t.hasBreak=s,t.hasContinue=i,t.brokenFlow=n,!1)}function bi(t,e,n){const{brokenFlow:s,hasBreak:i,hasContinue:r}=t;t.hasBreak=!1,t.hasContinue=!1,e.include(t,n,{asSingleStatement:!0}),t.hasBreak=i,t.hasContinue=r,t.brokenFlow=s}Ja.prototype.includeNode=dt;class Zr extends te{hasEffects(e){return!!this.test.hasEffects(e)||Qr(e,this.body)}include(e,n){this.included=!0,this.test.include(e,n),bi(e,this.body,n)}}Zr.prototype.includeNode=ze,Zr.prototype.applyDeoptimizations=Te;class Ya extends te{hasEffects(){return!1}}Ya.prototype.includeNode=dt;class Ts extends te{hasEffects(){return!1}initialise(){super.initialise(),this.scope.context.addExport(this)}render(e,n,s){e.remove(s.start,s.end)}}Ts.prototype.needsBoundaries=!0,Ts.prototype.includeNode=ze,Ts.prototype.applyDeoptimizations=Te;class xi extends te{bind(){this.declaration?.bind()}hasEffects(e){return!!this.declaration?.hasEffects(e)}initialise(){super.initialise(),this.scope.context.addExport(this)}removeAnnotations(e){this.declaration?.removeAnnotations(e)}render(e,n,s){const{start:i,end:r}=s;if(this.declaration===null)e.remove(i,r);else{let a=this.declaration.start;if(this.declaration instanceof vs){const l=this.declaration.decorators;for(const c of l)a=Math.min(a,c.start);a<=this.start&&(a=this.declaration.start)}e.remove(this.start,a),this.declaration.render(e,n,{end:r,start:i})}}}xi.prototype.needsBoundaries=!0,xi.prototype.includeNode=ze,xi.prototype.applyDeoptimizations=Te;class eo extends te{}eo.prototype.includeNode=ze,eo.prototype.applyDeoptimizations=Te;class Fd extends te{createScope(e){this.scope=new Gn(e)}hasEffects(e){const{body:n,deoptimized:s,left:i,right:r}=this;return s||this.applyDeoptimizations(),!(!i.hasEffectsAsAssignmentTarget(e,!1)&&!r.hasEffects(e))||Qr(e,n)}include(e,n){const{body:s,deoptimized:i,left:r,right:a}=this;i||this.applyDeoptimizations(),this.included||this.includeNode(e),r.includeAsAssignmentTarget(e,n||!0,!1),a.include(e,n),bi(e,s,n)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.right.includePath(le,e)}initialise(){super.initialise(),this.left.setAssignedValue(Pe)}render(e,n){this.left.render(e,n,Dn),this.right.render(e,n,Dn),e.original.charCodeAt(this.right.start-1)===110&&e.prependLeft(this.right.start," "),this.body.render(e,n)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(ue),this.scope.context.requestTreeshakingPass()}}class Bd extends te{get await(){return Le(this.flags,131072)}set await(e){this.flags=Me(this.flags,131072,e)}createScope(e){this.scope=new Gn(e)}hasEffects(){return this.deoptimized||this.applyDeoptimizations(),!0}include(e,n){const{body:s,deoptimized:i,left:r,right:a}=this;i||this.applyDeoptimizations(),this.included||this.includeNode(e),r.includeAsAssignmentTarget(e,n||!0,!1),a.include(e,n),bi(e,s,n)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.right.includePath(le,e)}initialise(){super.initialise(),this.left.setAssignedValue(Pe)}render(e,n){this.left.render(e,n,Dn),this.right.render(e,n,Dn),e.original.charCodeAt(this.right.start-1)===102&&e.prependLeft(this.right.start," "),this.body.render(e,n)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(ue),this.right.deoptimizePath(le),this.scope.context.requestTreeshakingPass()}}class to extends te{createScope(e){this.scope=new Gn(e)}hasEffects(e){return!!(this.init?.hasEffects(e)||this.test?.hasEffects(e)||this.update?.hasEffects(e))||Qr(e,this.body)}include(e,n){this.included=!0,this.init?.include(e,n,{asSingleStatement:!0}),this.test?.include(e,n),this.update?.include(e,n),bi(e,this.body,n)}render(e,n){this.init?.render(e,n,Dn),this.test?.render(e,n,Dn),this.update?.render(e,n,Dn),this.body.render(e,n)}}to.prototype.includeNode=ze,to.prototype.applyDeoptimizations=Te;class Qa extends vr{createScope(e){super.createScope(this.idScope=new St(e,e.context))}parseNode(e){return e.id!==null&&(this.id=new Fe(this,this.idScope).parseNode(e.id)),super.parseNode(e)}onlyFunctionCallUsed(){return this.parent.type===Js&&this.parent.callee===this&&(this.id===null||this.id.variable.getOnlyFunctionCallUsed())||super.onlyFunctionCallUsed()}render(e,n,{renderedSurroundingElement:s}=pt){super.render(e,n),s===Wt&&(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}}class no extends Gn{constructor(){super(...arguments),this.hoistedDeclarations=[]}addDeclaration(e,n,s,i,r){return this.hoistedDeclarations.push(e),super.addDeclaration(e,n,s,i,r)}}const jd=Symbol("unset");class Rs extends te{constructor(){super(...arguments),this.testValue=jd}deoptimizeCache(){this.testValue=Ce}hasEffects(e){if(this.test.hasEffects(e))return!0;const n=this.getTestValue();if(typeof n=="symbol"){const{brokenFlow:s}=e;if(this.consequent.hasEffects(e))return!0;const i=e.brokenFlow;return e.brokenFlow=s,this.alternate===null?!1:!!this.alternate.hasEffects(e)||(e.brokenFlow=e.brokenFlow&&i,!1)}return n?this.consequent.hasEffects(e):!!this.alternate?.hasEffects(e)}include(e,n){if(this.included=!0,n)this.includeRecursively(n,e);else{const s=this.getTestValue();typeof s=="symbol"?this.includeUnknownTest(e):this.includeKnownTest(e,s)}}parseNode(e){return this.consequent=new(this.scope.context.getNodeConstructor(e.consequent.type))(this,this.consequentScope=new no(this.scope)).parseNode(e.consequent),e.alternate&&(this.alternate=new(this.scope.context.getNodeConstructor(e.alternate.type))(this,this.alternateScope=new no(this.scope)).parseNode(e.alternate)),super.parseNode(e)}render(e,n){const{snippets:{getPropertyAccess:s}}=n,i=this.getTestValue(),r=[],a=this.test.included,l=!this.scope.context.options.treeshake;a?this.test.render(e,n):e.remove(this.start,this.consequent.start),this.consequent.included&&(l||typeof i=="symbol"||i)?this.consequent.render(e,n):(e.overwrite(this.consequent.start,this.consequent.end,a?";":""),r.push(...this.consequentScope.hoistedDeclarations)),this.alternate&&(!this.alternate.included||!l&&typeof i!="symbol"&&i?(a&&this.shouldKeepAlternateBranch()?e.overwrite(this.alternate.start,this.end,";"):e.remove(this.consequent.end,this.end),r.push(...this.alternateScope.hoistedDeclarations)):(a?e.original.charCodeAt(this.alternate.start-1)===101&&e.prependLeft(this.alternate.start," "):e.remove(this.consequent.end,this.alternate.start),this.alternate.render(e,n))),this.renderHoistedDeclarations(r,e,s)}getTestValue(){return this.testValue===jd?this.testValue=Cs(this.test.getLiteralValueAtPath(ue,Ge,this)):this.testValue}includeKnownTest(e,n){this.test.shouldBeIncluded(e)&&this.test.include(e,!1),n&&this.consequent.shouldBeIncluded(e)&&this.consequent.include(e,!1,{asSingleStatement:!0}),!n&&this.alternate?.shouldBeIncluded(e)&&this.alternate.include(e,!1,{asSingleStatement:!0})}includeRecursively(e,n){this.test.include(n,e),this.consequent.include(n,e),this.alternate?.include(n,e)}includeUnknownTest(e){this.test.include(e,!1);const{brokenFlow:n}=e;let s=!1;this.consequent.shouldBeIncluded(e)&&(this.consequent.include(e,!1,{asSingleStatement:!0}),s=e.brokenFlow,e.brokenFlow=n),this.alternate?.shouldBeIncluded(e)&&(this.alternate.include(e,!1,{asSingleStatement:!0}),e.brokenFlow=e.brokenFlow&&s)}renderHoistedDeclarations(e,n,s){const i=[...new Set(e.map(r=>{const a=r.variable;return a.included?a.getName(s):""}))].filter(Boolean).join(", ");if(i){const r=this.parent.type,a=r!==rr&&r!=="BlockStatement";n.prependRight(this.start,`${a?"{ ":""}var ${i}; `),a&&n.appendLeft(this.end," }")}}shouldKeepAlternateBranch(){let e=this.parent;do{if(e instanceof Rs&&e.alternate)return!0;if(e instanceof Wn)return!1;e=e.parent}while(e);return!1}}Rs.prototype.includeNode=ze,Rs.prototype.applyDeoptimizations=Te;class zd extends te{}class ki extends te{bind(){}hasEffects(){return!1}initialise(){super.initialise(),this.scope.context.addImport(this)}render(e,n,s){e.remove(s.start,s.end)}}ki.prototype.needsBoundaries=!0,ki.prototype.includeNode=ze,ki.prototype.applyDeoptimizations=Te;class Ei extends te{}function Vd(t,e){return t.renderBaseName!==null&&e.has(t)&&t.isReassigned}Ei.prototype.includeNode=ze,Ei.prototype.applyDeoptimizations=Te;class so extends te{declareDeclarator(e,n){this.isUsingDeclaration=n,this.id.declare(e,ue,this.init||un)}deoptimizePath(e){this.id.deoptimizePath(e)}hasEffects(e){const n=this.init?.hasEffects(e);return this.id.markDeclarationReached(),n||this.isUsingDeclaration||this.id.hasEffects(e)||this.scope.context.options.treeshake.propertyReadSideEffects&&this.id.hasEffectsWhenDestructuring(e,ue,this.init||un)}include(e,n){const{id:s,init:i}=this;this.included||this.includeNode(),i?.include(e,n),s.markDeclarationReached(),n?s.include(e,n):s.includeDestructuredIfNecessary(e,ue,i||un)}removeAnnotations(e){this.init?.removeAnnotations(e)}render(e,n){const{exportNamesByVariable:s,snippets:{_:i,getPropertyAccess:r}}=n,{end:a,id:l,init:c,start:u}=this,d=l.included||this.isUsingDeclaration;if(d)l.render(e,n);else{const m=ht(e.original,"=",l.end);e.remove(u,kn(e.original,m+1))}c?(l instanceof Fe&&c instanceof Xr&&!c.id&&l.variable.getName(r)!==l.name&&e.appendLeft(c.start+5,` ${l.name}`),c.render(e,n,d?pt:{renderedSurroundingElement:Wt})):l instanceof Fe&&Vd(l.variable,s)&&e.appendLeft(a,`${i}=${i}void 0`)}includeNode(){this.included=!0;const{id:e,init:n}=this;if(n&&e instanceof Fe&&n instanceof Xr&&!n.id){const{name:s,variable:i}=e;for(const r of n.scope.accessedOutsideVariables.values())r!==i&&r.forbidName(s)}}}function Ud(t){return{fileName:t.getFileName(),...t.getPreRenderedChunkInfo()}}so.prototype.applyDeoptimizations=Te;class Za extends te{constructor(){super(...arguments),this.inlineNamespace=null,this.hasUnknownAccessedKey=!1,this.accessedPropKey=new Set,this.attributes=null,this.mechanism=null,this.namespaceExportName=void 0,this.resolution=null,this.resolutionString=null}get withinTopLevelAwait(){return Le(this.flags,134217728)}set withinTopLevelAwait(e){this.flags=Me(this.flags,134217728,e)}bind(){this.source.bind()}getDeterministicImportedNames(){const e=this.parent;if(e instanceof Bt)return Qe;if(e instanceof Ur){const n=e.parent;if(n instanceof Bt)return Qe;if(n instanceof so){const s=n.id;if(s instanceof Fe)return this.hasUnknownAccessedKey?void 0:[...this.accessedPropKey];if(s instanceof vn)return Hd(s)}if(n instanceof mn){const s=n.property;if(!n.computed&&s instanceof Fe)return[s.name]}return}if(e instanceof mn){const n=e.parent,s=e.property;if(!(n instanceof Xa&&s instanceof Fe))return;const i=s.name;if(n.parent instanceof Bt&&["catch","finally"].includes(i))return Qe;if(i!=="then")return;if(n.arguments.length===0)return Qe;const r=n.arguments[0];if(n.arguments.length!==1||!(r instanceof yi||r instanceof Qa))return;if(r.params.length===0)return Qe;const a=r.params[0];return r.params.length===1&&a instanceof vn?Hd(a):this.hasUnknownAccessedKey?void 0:[...this.accessedPropKey]}}hasEffects(){return!0}include(e,n){this.included||this.includeNode(),this.source.include(e,n)}includeNode(){this.included=!0,this.scope.context.includeDynamicImport(this),this.scope.addAccessedDynamicImport(this)}includePath(e){this.included||this.includeNode(),this.hasUnknownAccessedKey||(e[0]===_e?this.hasUnknownAccessedKey=!0:typeof e[0]=="string"&&this.accessedPropKey.add(e[0]),this.scope.context.includeDynamicImport(this))}initialise(){super.initialise(),this.scope.context.addDynamicImport(this);let e=this.parent,n=!1,s=!1;do n&&(e instanceof vr||e instanceof yi)&&(s=!1),e instanceof Ur&&(n=!0,s=!0);while(e=e.parent);n&&s&&(this.withinTopLevelAwait=!0)}parseNode(e){return this.sourceAstNode=e.source,super.parseNode(e)}render(e,n){const{snippets:{_:s,getDirectReturnFunction:i,getObject:r,getPropertyAccess:a},importAttributesKey:l}=n;if(this.inlineNamespace){const[c,u]=i([],{functionReturn:!0,lineBreakIndent:null,name:null});return void e.overwrite(this.start,this.end,`Promise.resolve().then(${c}${this.inlineNamespace.getName(a)}${u})`)}if(this.mechanism&&(e.overwrite(this.start,ht(e.original,"(",this.start+6)+1,this.mechanism.left),e.overwrite(this.end-1,this.end,this.mechanism.right)),this.resolutionString){if(e.overwrite(this.source.start,this.source.end,this.resolutionString),this.namespaceExportName){const[c,u]=i(["n"],{functionReturn:!0,lineBreakIndent:null,name:null});e.prependLeft(this.end,`.then(${c}n.${this.namespaceExportName}${u})`)}}else this.source.render(e,n);this.attributes!==!0&&(this.options&&e.overwrite(this.source.end,this.end-1,"",{contentOnly:!0}),this.attributes&&e.appendLeft(this.end-1,`,${s}${r([[l,this.attributes]],{lineBreakIndent:null})}`))}setExternalResolution(e,n,s,i,r,a,l,c,u,d,m){const{format:f}=s;this.inlineNamespace=null,this.resolution=n,this.resolutionString=l,this.namespaceExportName=c,this.attributes=u;const g=[...Ug[f]||[]];let E;({helper:E,mechanism:this.mechanism}=this.getDynamicImportMechanismAndHelper(n,e,s,i,r,d,m)),E&&g.push(E),g.length>0&&this.scope.addAccessedGlobals(g,a)}setInternalResolution(e){this.inlineNamespace=e}getDynamicImportMechanismAndHelper(e,n,{compact:s,dynamicImportInCjs:i,format:r,generatedCode:{arrowFunctions:a},interop:l},{_:c,getDirectReturnFunction:u,getDirectReturnIifeLeft:d},m,f,g){const E=m.hookFirstSync("renderDynamicImport",[{chunk:Ud(f),customResolution:typeof this.resolution=="string"?this.resolution:null,format:r,getTargetChunkImports(){if(g===null)return null;const I=[],A=f.getFileName();for(const x of g.dependencies){const w=`'${x.getImportPath(A)}'`;x instanceof Yn?I.push({fileName:x.getFileName(),resolvedImportPath:w,type:"external"}):I.push({chunk:x.getPreRenderedChunkInfo(),fileName:x.getFileName(),resolvedImportPath:w,type:"internal"})}return I},moduleId:this.scope.context.module.id,targetChunk:g?Ud(g):null,targetModuleId:this.resolution&&typeof this.resolution!="string"?this.resolution.id:null}]);if(E)return{helper:null,mechanism:E};const k=!this.resolution||typeof this.resolution=="string";switch(r){case"cjs":{if(i&&(!e||typeof e=="string"||e instanceof Ze))return{helper:null,mechanism:null};const I=qd(e,n,l);let A="require(",x=")";I&&(A=`/*#__PURE__*/${I}(${A}`,x+=")");const[w,v]=u([],{functionReturn:!0,lineBreakIndent:null,name:null});return A=`Promise.resolve().then(${w}${A}`,x+=`${v})`,!a&&k&&(A=d(["t"],`${A}t${x}`,{needsArrowReturnParens:!1,needsWrappedFunction:!0}),x=")"),{helper:I,mechanism:{left:A,right:x}}}case"amd":{const I=s?"c":"resolve",A=s?"e":"reject",x=qd(e,n,l),[w,v]=u(["m"],{functionReturn:!1,lineBreakIndent:null,name:null}),$=x?`${w}${I}(/*#__PURE__*/${x}(m))${v}`:I,[D,j]=u([I,A],{functionReturn:!1,lineBreakIndent:null,name:null});let V=`new Promise(${D}require([`,U=`],${c}${$},${c}${A})${j})`;return!a&&k&&(V=d(["t"],`${V}t${U}`,{needsArrowReturnParens:!1,needsWrappedFunction:!0}),U=")"),{helper:x,mechanism:{left:V,right:U}}}case"system":return{helper:null,mechanism:{left:"module.import(",right:")"}}}return{helper:null,mechanism:null}}}function qd(t,e,n){return e==="external"?ui[n(t instanceof Ze?t.id:null)]:e==="default"?ci:null}Za.prototype.applyDeoptimizations=Te;const Ug={amd:["require"],cjs:["require"],system:["module"]};function Hd(t){const e=[];for(const n of t.properties){if(n.type==="RestElement"||n.computed||n.key.type!=="Identifier")return;e.push(n.key.name)}return e}class Ai extends te{}Ai.prototype.includeNode=ze,Ai.prototype.applyDeoptimizations=Te;class io extends te{}io.prototype.includeNode=ze,io.prototype.applyDeoptimizations=Te;class el extends jh{constructor(){super(...arguments),this.isNativeElement=!1}bind(){const e=this.getType();e===0?(this.variable=this.scope.findVariable(this.name),this.variable.addReference(this)):e===1&&(this.isNativeElement=!0)}include(e){this.included||this.includeNode(e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.variable!==null&&this.scope.context.includeVariableInModule(this.variable,ue,e)}includePath(e,n){this.included?e.length>0&&this.variable?.includePath(e,n):(this.included=!0,this.variable!==null&&this.scope.context.includeVariableInModule(this.variable,e,n))}render(e,{snippets:{getPropertyAccess:n},useOriginalName:s}){if(this.variable){const i=this.variable.getName(n,s);i!==this.name&&e.overwrite(this.start,this.end,i,{contentOnly:!0,storeName:!0})}else this.isNativeElement&&this.scope.context.options.jsx.mode!=="preserve"&&e.update(this.start,this.end,JSON.stringify(this.name))}getType(){switch(this.parent.type){case"JSXOpeningElement":case"JSXClosingElement":return this.name.startsWith(this.name.charAt(0).toUpperCase())?0:1;case"JSXMemberExpression":return this.parent.object===this?0:2;case"JSXAttribute":case"JSXNamespacedName":return 2;default:throw new Error(`Unexpected parent node type for JSXIdentifier: ${this.parent.type}`)}}}class ro extends te{render(e,n,{jsxMode:s}=pt){if(super.render(e,n),["classic","automatic"].includes(s)){const{name:i,value:r}=this,a=i instanceof el?i.name:`${i.namespace.name}:${i.name.name}`;if(s!=="automatic"||a!=="key"){const l=gr(a);a!==l&&e.overwrite(i.start,i.end,l,{contentOnly:!0}),r?e.overwrite(i.end,r.start,": ",{contentOnly:!0}):e.appendLeft(i.end,": true")}}}}ro.prototype.includeNode=dt;class tl extends te{render(e,n){const{mode:s}=this.scope.context.options.jsx;s!=="preserve"?e.overwrite(this.start,this.end,")",{contentOnly:!0}):super.render(e,n)}}tl.prototype.includeNode=dt;class Gd extends tl{}class Wd extends tl{}class oo extends te{render(e,n){this.argument.render(e,n);const{mode:s}=this.scope.context.options.jsx;s!=="preserve"&&(e.overwrite(this.start,this.argument.start,"",{contentOnly:!0}),e.overwrite(this.argument.end,this.end,"",{contentOnly:!0}))}}class wi extends te{}wi.prototype.includeNode=dt;class ao extends te{includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.expression.includePath(le,e)}render(e,n){const{mode:s}=this.scope.context.options.jsx;s!=="preserve"&&(e.remove(this.start,this.expression.start),e.remove(this.expression.end,this.end)),this.expression.render(e,n)}}function qg(t){let e=0;for(const n of t)n instanceof ao&&n.expression instanceof wi||e++;return e}function nl(t,e,n,s,i){const[r,a]=t.split(".");let l;return n?(l=s.scope.context.getImportedJsxFactoryVariable(a?"default":r,s.start,n),e&&(s.scope.findGlobal(r).includePath(le,i),l.globalName=r)):l=s.scope.findGlobal(r),s.scope.context.includeVariableInModule(l,le,i),l instanceof Dt&&(l.consolidateInitializers(),l.addUsedPlace(s),s.scope.context.requestTreeshakingPass()),l}class sl extends te{constructor(){super(...arguments),this.factoryVariable=null,this.factory=null}initialise(){super.initialise();const{importSource:e}=this.jsxMode=this.getRenderingMode();e&&this.scope.context.addImportSource(e)}include(e,n){this.included||this.includeNode(e);for(const s of this.children)s.include(e,n)}includeNode(e){this.included=!0;const{factory:n,importSource:s,mode:i}=this.jsxMode;n&&(this.factory=n,this.factoryVariable=nl(n,i==="preserve",s,this,e))}getRenderingMode(){const e=this.scope.context.options.jsx,{mode:n,factory:s,importSource:i}=e;return n==="automatic"?{factory:qg(this.children)>1?"jsxs":"jsx",importSource:e.jsxImportSource,mode:n}:{factory:s,importSource:i,mode:n}}renderChildren(e,n,s){const{children:i}=this;let r=!1,a=s,l=null;for(const c of i)c instanceof ao&&c.expression instanceof wi?e.remove(a,c.end):(e.appendLeft(a,", "),c.render(e,n),l?r=!0:l=c),a=c.end;return{childrenEnd:a,firstChild:l,hasMultipleChildren:r}}}sl.prototype.applyDeoptimizations=Te;class Xd extends sl{include(e,n){super.include(e,n),this.openingElement.include(e,n),this.closingElement?.include(e,n)}render(e,n){switch(this.jsxMode.mode){case"classic":this.renderClassicMode(e,n);break;case"automatic":this.renderAutomaticMode(e,n);break;default:super.render(e,n)}}getRenderingMode(){const e=this.scope.context.options.jsx,{mode:n,factory:s,importSource:i}=e;if(n==="automatic"){let r=!1;for(const a of this.openingElement.attributes)if(a instanceof oo)r=!0;else if(r&&a.name.name==="key")return{factory:s,importSource:i,mode:"classic"}}return super.getRenderingMode()}renderClassicMode(e,n){const{snippets:{getPropertyAccess:s},useOriginalName:i}=n,{closingElement:r,end:a,factory:l,factoryVariable:c,openingElement:{end:u,selfClosing:d}}=this,[,...m]=l.split("."),{firstAttribute:f,hasAttributes:g,hasSpread:E,inObject:k,previousEnd:I}=this.renderAttributes(e,n,[c.getName(s,i),...m].join("."),!1);this.wrapAttributes(e,k,g,E,f,"null",I),this.renderChildren(e,n,u),d?e.appendLeft(a,")"):r.render(e,n)}renderAutomaticMode(e,n){const{snippets:{getPropertyAccess:s},useOriginalName:i}=n,{closingElement:r,end:a,factoryVariable:l,openingElement:{end:c,selfClosing:u}}=this;let{firstAttribute:d,hasAttributes:m,hasSpread:f,inObject:g,keyAttribute:E,previousEnd:k}=this.renderAttributes(e,n,l.getName(s,i),!0);const{firstChild:I,hasMultipleChildren:A,childrenEnd:x}=this.renderChildren(e,n,c);if(I&&(e.prependRight(I.start,"children: "+(A?"[":"")),g||(e.prependRight(I.start,"{ "),g=!0),k=r.start,A&&e.appendLeft(k,"]")),this.wrapAttributes(e,g,m||!!I,f,d||I,"{}",x),E){const{value:w}=E;e.appendLeft(x,", "),w?e.move(w.start,w.end,x):e.appendLeft(x,"true")}u?e.appendLeft(E?.value?.end||a,")"):r.render(e,n)}renderAttributes(e,n,s,i){const{jsxMode:{mode:r},openingElement:a}=this,{attributes:l,end:c,start:u,name:{start:d,end:m}}=a;e.update(u,d,`/*#__PURE__*/${s}(`),a.render(e,n,{jsxMode:r});let f=null,g=!1,E=!1,k=m,I=!1,A=null;for(const x of l){if(x instanceof ro){if(i&&x.name.name==="key"){f=x,e.remove(k,x.value?.start||x.end);continue}e.appendLeft(k,","),E||(e.prependRight(x.start,"{ "),E=!0),I=!0}else E?(I&&e.appendLeft(k," "),e.appendLeft(k,"},"),E=!1):e.appendLeft(k,","),g=!0;k=x.end,A||(A=x)}return e.remove(l.at(-1)?.end||k,c),{firstAttribute:A,hasAttributes:I,hasSpread:g,inObject:E,keyAttribute:f,previousEnd:k}}wrapAttributes(e,n,s,i,r,a,l){if(n&&e.appendLeft(l," }"),i){if(s){const{start:c}=r;r instanceof oo&&e.prependRight(c,"{}, "),e.prependRight(c,"Object.assign("),e.appendLeft(l,")")}}else s||e.appendLeft(l,`, ${a}`)}}class Kd extends sl{include(e,n){super.include(e,n),this.openingFragment.include(e,n),this.closingFragment.include(e,n)}render(e,n){switch(this.jsxMode.mode){case"classic":this.renderClassicMode(e,n);break;case"automatic":this.renderAutomaticMode(e,n);break;default:super.render(e,n)}}renderClassicMode(e,n){const{snippets:{getPropertyAccess:s},useOriginalName:i}=n,{closingFragment:r,factory:a,factoryVariable:l,openingFragment:c,start:u}=this,[,...d]=a.split(".");c.render(e,n),e.prependRight(u,`/*#__PURE__*/${[l.getName(s,i),...d].join(".")}(`),e.appendLeft(c.end,", null"),this.renderChildren(e,n,c.end),r.render(e,n)}renderAutomaticMode(e,n){const{snippets:{getPropertyAccess:s},useOriginalName:i}=n,{closingFragment:r,factoryVariable:a,openingFragment:l,start:c}=this;l.render(e,n),e.prependRight(c,`/*#__PURE__*/${a.getName(s,i)}(`);const{firstChild:u,hasMultipleChildren:d,childrenEnd:m}=this.renderChildren(e,n,l.end);u?(e.prependRight(u.start,"{ children: "+(d?"[":"")),d&&e.appendLeft(r.start,"]"),e.appendLeft(m," }")):e.appendLeft(l.end,", {}"),r.render(e,n)}}class Jd extends te{includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.object.includePath([this.property.name],e)}includePath(e,n){this.included||this.includeNode(n),this.object.includePath([this.property.name,...e],n)}}class il extends te{}il.prototype.includeNode=dt;class rl extends te{render(e,n,{jsxMode:s=this.scope.context.options.jsx.mode}={}){this.name.render(e,n);for(const i of this.attributes)i.render(e,n,{jsxMode:s})}}rl.prototype.includeNode=dt;class Yd extends te{constructor(){super(...arguments),this.fragment=null,this.fragmentVariable=null}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations();const n=this.scope.context.options.jsx;if(n.mode==="automatic")this.fragment="Fragment",this.fragmentVariable=nl("Fragment",!1,n.jsxImportSource,this,e);else{const{fragment:s,importSource:i,mode:r}=n;s!=null&&(this.fragment=s,this.fragmentVariable=nl(s,r==="preserve",i,this,e))}}render(e,n){const{mode:s}=this.scope.context.options.jsx;if(s!=="preserve"){const{snippets:{getPropertyAccess:i},useOriginalName:r}=n,[,...a]=this.fragment.split("."),l=[this.fragmentVariable.getName(i,r),...a].join(".");e.update(this.start,this.end,l)}}}class Qd extends te{render(e,n){super.render(e,n);const{mode:s}=this.scope.context.options.jsx;s!=="preserve"&&(e.overwrite(this.start,this.expression.start,"...",{contentOnly:!0}),e.overwrite(this.expression.end,this.end,"",{contentOnly:!0}))}}class ol extends te{render(e){const{mode:n}=this.scope.context.options.jsx;n!=="preserve"&&e.overwrite(this.start,this.end,JSON.stringify(this.value),{contentOnly:!0})}}ol.prototype.includeNode=dt;class al extends te{hasEffects(e){const{brokenFlow:n,includedLabels:s}=e;e.ignore.labels.add(this.label.name),e.includedLabels=new Set;let i=!1;return this.body.hasEffects(e)?i=!0:(e.ignore.labels.delete(this.label.name),e.includedLabels.has(this.label.name)&&(e.includedLabels.delete(this.label.name),e.brokenFlow=n)),e.includedLabels=new Set([...s,...e.includedLabels]),i}include(e,n){this.included||this.includeNode(e);const{brokenFlow:s,includedLabels:i}=e;e.includedLabels=new Set,this.body.include(e,n),(n||e.includedLabels.has(this.label.name))&&(this.label.include(e,n),e.includedLabels.delete(this.label.name),e.brokenFlow=s),e.includedLabels=new Set([...i,...e.includedLabels])}includeNode(e){this.included=!0,this.body.includePath(le,e)}render(e,n){this.label.included?this.label.render(e,n):e.remove(this.start,kn(e.original,ht(e.original,":",this.label.end)+1)),this.body.render(e,n)}}al.prototype.applyDeoptimizations=Te;class lo extends te{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.usedBranch=null}get isBranchResolutionAnalysed(){return Le(this.flags,65536)}set isBranchResolutionAnalysed(e){this.flags=Me(this.flags,65536,e)}get hasDeoptimizedCache(){return Le(this.flags,33554432)}set hasDeoptimizedCache(e){this.flags=Me(this.flags,33554432,e)}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.left.deoptimizeArgumentsOnInteractionAtPath(e,n,s),this.right.deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizeCache(){if(this.hasDeoptimizedCache)return;if(this.hasDeoptimizedCache=!0,this.usedBranch){const s=this.usedBranch===this.left?this.right:this.left;this.usedBranch=null,s.deoptimizePath(le),this.included&&s.includePath(le,Lt())}const{scope:{context:e},expressionsToBeDeoptimized:n}=this;this.expressionsToBeDeoptimized=Qe;for(const s of n)s.deoptimizeCache();e.requestTreeshakingPass()}deoptimizePath(e){const n=this.getUsedBranch();n?n.deoptimizePath(e):(this.left.deoptimizePath(e),this.right.deoptimizePath(e))}getLiteralValueAtPath(e,n,s){if(s===this)return Ce;const i=this.getUsedBranch();if(i)return this.expressionsToBeDeoptimized.push(s),i.getLiteralValueAtPath(e,n,s);if(!this.hasDeoptimizedCache&&!e.length){const r=Cs(this.right.getLiteralValueAtPath(e,n,s));if(typeof r!="symbol"){if(!r&&this.operator==="&&")return this.expressionsToBeDeoptimized.push(s),ir;if(r&&this.operator==="||")return this.expressionsToBeDeoptimized.push(s),sr}}return Ce}getReturnExpressionWhenCalledAtPath(e,n,s,i){const r=this.getUsedBranch();return r?(this.expressionsToBeDeoptimized.push(i),r.getReturnExpressionWhenCalledAtPath(e,n,s,i)):[new Kr([this.left.getReturnExpressionWhenCalledAtPath(e,n,s,i)[0],this.right.getReturnExpressionWhenCalledAtPath(e,n,s,i)[0]]),!1]}hasEffects(e){return!!this.left.hasEffects(e)||this.getUsedBranch()!==this.left&&this.right.hasEffects(e)}hasEffectsOnInteractionAtPath(e,n,s){const i=this.getUsedBranch();return i?i.hasEffectsOnInteractionAtPath(e,n,s):this.left.hasEffectsOnInteractionAtPath(e,n,s)||this.right.hasEffectsOnInteractionAtPath(e,n,s)}include(e,n){this.included=!0;const s=this.getUsedBranch();n||!s||s===this.right&&this.left.shouldBeIncluded(e)?(this.left.include(e,n),this.right.include(e,n)):s.include(e,n)}includePath(e,n){this.included=!0;const s=this.getUsedBranch();!s||s===this.right&&this.left.shouldBeIncluded(n)?(this.left.includePath(e,n),this.right.includePath(e,n)):s.includePath(e,n)}removeAnnotations(e){this.left.removeAnnotations(e)}render(e,n,{isCalleeOfRenderedParent:s,preventASI:i,renderedParentType:r,renderedSurroundingElement:a}=pt){if(this.left.included&&this.right.included)this.left.render(e,n,{preventASI:i,renderedSurroundingElement:a}),this.right.render(e,n);else{const l=ht(e.original,this.operator,this.left.end);if(this.right.included){const c=kn(e.original,l+2);e.remove(this.start,c),i&&tr(e,c,this.right.start),this.left.removeAnnotations(e)}else e.remove(function(c,u,d){for(;;){if(u>=d||!xm.test(c[d-1]))return d;d--}}(e.original,this.left.end,l),this.end);this.getUsedBranch().render(e,n,{isCalleeOfRenderedParent:s,preventASI:i,renderedParentType:r||this.parent.type,renderedSurroundingElement:a||this.parent.type})}}getUsedBranch(){if(!this.isBranchResolutionAnalysed){this.isBranchResolutionAnalysed=!0;const e=this.left.getLiteralValueAtPath(ue,Ge,this),n=Cs(e);if(typeof n=="symbol")return null;this.usedBranch=this.operator==="||"&&n||this.operator==="&&"&&!n||this.operator==="??"&&e!=null?this.left:this.right}return this.usedBranch}}lo.prototype.includeNode=ze,lo.prototype.applyDeoptimizations=Te;class Zd extends te{hasEffects(e){this.deoptimized||this.applyDeoptimizations();for(const n of this.arguments)if(n.hasEffects(e))return!0;return!this.annotationPure&&(this.callee.hasEffects(e)||this.callee.hasEffectsOnInteractionAtPath(ue,this.interaction,e))}hasEffectsOnInteractionAtPath(e,{type:n}){return e.length>0||n!==0}include(e,n){this.included||this.includeNode(e),n?super.include(e,!0):(this.callee.include(e,!1),this.callee.includeCallArguments(this.interaction,e))}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.callee.includePath(le,e)}initialise(){super.initialise(),this.interaction={args:[null,...this.arguments],type:2,withNew:!0},this.annotations&&this.scope.context.options.treeshake.annotations&&(this.annotationPure=this.annotations.some(e=>e.type==="pure"))}render(e,n){this.callee.render(e,n),Ld(e,n,this)}applyDeoptimizations(){this.deoptimized=!0,this.callee.deoptimizeArgumentsOnInteractionAtPath(this.interaction,ue,Ge),this.scope.context.requestTreeshakingPass()}}class Ds extends te{constructor(){super(...arguments),this.objectEntity=null,this.protoProp=null}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizeCache(){this.getObjectEntity().deoptimizeAllProperties()}deoptimizePath(e){this.getObjectEntity().deoptimizePath(e)}getLiteralValueAtPath(e,n,s){return this.getObjectEntity().getLiteralValueAtPath(e,n,s)}getReturnExpressionWhenCalledAtPath(e,n,s,i){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(e,n,s,i)}hasEffectsOnInteractionAtPath(e,n,s){return this.getObjectEntity().hasEffectsOnInteractionAtPath(e,n,s)}include(e,n){this.included||this.includeNode(e),this.getObjectEntity().include(e,n),this.protoProp?.include(e,n)}includeNode(e){this.included=!0,this.protoProp?.includePath(le,e)}includePath(e,n){this.included||this.includeNode(n),this.getObjectEntity().includePath(e,n)}render(e,n,{renderedSurroundingElement:s}=pt){if(s!==Wt&&s!==ia||(e.appendRight(this.start,"("),e.prependLeft(this.end,")")),this.properties.length>0){const i=er(this.properties,e,this.start+1,this.end-1);let r=null;for(const{node:a,separator:l,start:c,end:u}of i)a.included?(r=l,a.render(e,n)):ps(a,e,c,u);r&&e.remove(r,this.end-1)}}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;let e=Sn;const n=[];for(const s of this.properties){if(s instanceof qn){n.push({key:_e,kind:"init",property:s});continue}let i;if(s.computed){const r=s.key.getLiteralValueAtPath(ue,Ge,this);if(typeof r=="symbol"){n.push({key:_e,kind:s.kind,property:s});continue}i=String(r)}else if(i=s.key instanceof Fe?s.key.name:String(s.key.value),i==="__proto__"&&s.kind==="init"){this.protoProp=s,e=s.value instanceof It&&s.value.value===null?null:s.value;continue}n.push({key:i,kind:s.kind,property:s})}return this.objectEntity=new $t(n,e)}}Ds.prototype.applyDeoptimizations=Te;class ep extends te{initialise(){const e=this.scope.context.module.id;return oe(da(bs(hr(this.message)),e))}}class tp extends te{initialise(){const e=this.start,n=this.scope.context.module.id,s=da(bs(hr(this.message,e)),n);this.scope.context.error(s,e)}}class ll extends te{}ll.prototype.includeNode=dt;class co extends te{constructor(){super(...arguments),this.hasCachedEffect=null,this.hasLoggedEffect=!1}hasCachedEffects(){return!!this.included&&(this.hasCachedEffect===null?this.hasCachedEffect=this.hasEffects(Mn()):this.hasCachedEffect)}hasEffects(e){for(const n of this.body)if(n.hasEffects(e)){if(this.scope.context.options.experimentalLogSideEffects&&!this.hasLoggedEffect){this.hasLoggedEffect=!0;const{code:s,log:i,module:r}=this.scope.context;i(Fn,Dm(s,r.id,oa(s,n.start,{offsetLine:1})),n.start)}return this.hasCachedEffect=!0}return!1}include(e,n){this.included=!0;for(const s of this.body)(n||s.shouldBeIncluded(e))&&s.include(e,n)}initialise(){if(super.initialise(),this.invalidAnnotations)for(const{start:e,end:n,type:s}of this.invalidAnnotations)this.scope.context.magicString.remove(e,n),s!=="pure"&&s!=="noSideEffects"||this.scope.context.log(Ee,Om(this.scope.context.code.slice(e,n),this.scope.context.module.id,s),e)}render(e,n){let s=this.start;if(e.original.startsWith("#!")&&(s=Math.min(e.original.indexOf(`
39
- `)+1,this.end),e.remove(0,s)),this.body.length>0){for(;e.original[s]==="/"&&/[*/]/.test(e.original[s+1]);){const i=Ws(e.original.slice(s,this.body[0].start));if(i[0]===-1)break;s+=i[1]}Xs(this.body,e,s,this.end,n)}else super.render(e,n)}}co.prototype.includeNode=ze,co.prototype.applyDeoptimizations=Te;class Si extends Ar{get method(){return Le(this.flags,262144)}set method(e){this.flags=Me(this.flags,262144,e)}get shorthand(){return Le(this.flags,524288)}set shorthand(e){this.flags=Me(this.flags,524288,e)}declare(e,n,s){return this.value.declare(e,this.getPathInProperty(n),s)}deoptimizeAssignment(e,n){this.value.deoptimizeAssignment?.(this.getPathInProperty(e),n)}hasEffects(e){return this.key.hasEffects(e)||this.value.hasEffects(e)}hasEffectsWhenDestructuring(e,n,s){return this.value.hasEffectsWhenDestructuring?.(e,this.getPathInProperty(n),s)}includeDestructuredIfNecessary(e,n,s){const i=this.getPathInProperty(n);let r=this.value.includeDestructuredIfNecessary(e,i,s)||this.included;return(r||=this.key.hasEffects(Mn()))&&(this.key.include(e,!1),this.value.included||(this.value.included=!0,this.value.includeDestructuredIfNecessary(e,i,s))),this.included=r}include(e,n){this.included=!0,this.key.include(e,n),this.value.include(e,n)}includePath(e,n){this.included=!0,this.value.includePath(e,n)}markDeclarationReached(){this.value.markDeclarationReached()}render(e,n){this.shorthand||this.key.render(e,n),this.value.render(e,n,{isShorthandProperty:this.shorthand})}getPathInProperty(e){return e.at(-1)===_e?e:this.computed?[...e,_e]:this.key instanceof Fe?[...e,this.key.name]:[...e,String(this.key.value)]}}Si.prototype.includeNode=ze,Si.prototype.applyDeoptimizations=Te;class cl extends te{get computed(){return Le(this.flags,1024)}set computed(e){this.flags=Me(this.flags,1024,e)}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.value?.deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizePath(e){this.value?.deoptimizePath(e)}getLiteralValueAtPath(e,n,s){return this.value?this.value.getLiteralValueAtPath(e,n,s):Ce}getReturnExpressionWhenCalledAtPath(e,n,s,i){return this.value?this.value.getReturnExpressionWhenCalledAtPath(e,n,s,i):rt}hasEffects(e){return this.key.hasEffects(e)||this.static&&!!this.value?.hasEffects(e)||_a(this.decorators,e)}hasEffectsOnInteractionAtPath(e,n,s){return!this.value||this.value.hasEffectsOnInteractionAtPath(e,n,s)}includeNode(e){this.included=!0,this.value?.includePath(le,e);for(const n of this.decorators)n.includePath(le,e)}}cl.prototype.applyDeoptimizations=Te;class ul extends te{hasEffects(e){return!(e.ignore.returnYield&&!this.argument?.hasEffects(e))||(e.brokenFlow=!0,!1)}include(e,n){this.included||this.includeNode(e),this.argument?.include(e,n),e.brokenFlow=!0}includeNode(e){this.included=!0,this.argument?.includePath(le,e)}initialise(){super.initialise(),this.scope.addReturnExpression(this.argument||Pe)}render(e,n){this.argument&&(this.argument.render(e,n,{preventASI:!0}),this.argument.start===this.start+6&&e.prependLeft(this.start+6," "))}}ul.prototype.applyDeoptimizations=Te;class uo extends te{deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.expressions[this.expressions.length-1].deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizePath(e){this.expressions[this.expressions.length-1].deoptimizePath(e)}getLiteralValueAtPath(e,n,s){return this.expressions[this.expressions.length-1].getLiteralValueAtPath(e,n,s)}hasEffects(e){for(const n of this.expressions)if(n.hasEffects(e))return!0;return!1}hasEffectsOnInteractionAtPath(e,n,s){return this.expressions[this.expressions.length-1].hasEffectsOnInteractionAtPath(e,n,s)}include(e,n){this.included=!0;const s=this.expressions[this.expressions.length-1];for(const i of this.expressions)(n||i===s&&!(this.parent instanceof Bt)||i.shouldBeIncluded(e))&&i.include(e,n)}includePath(e,n){this.included=!0,this.expressions[this.expressions.length-1].includePath(e,n)}removeAnnotations(e){this.expressions[0].removeAnnotations(e)}render(e,n,{renderedParentType:s,isCalleeOfRenderedParent:i,preventASI:r}=pt){let a=0,l=null;const c=this.expressions[this.expressions.length-1];for(const{node:u,separator:d,start:m,end:f}of er(this.expressions,e,this.start,this.end))if(u.included)if(a++,l=d,a===1&&r&&tr(e,m,u.start),a===1){const g=s||this.parent.type;u.render(e,n,{isCalleeOfRenderedParent:i&&u===c,renderedParentType:g,renderedSurroundingElement:g})}else u.render(e,n);else ps(u,e,m,f);l&&e.remove(l,this.end)}}uo.prototype.includeNode=ze,uo.prototype.applyDeoptimizations=Te;class np extends te{bind(){this.variable=this.scope.findVariable("this")}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.variable.deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizePath(e){this.variable.deoptimizePath(e)}include(e){this.included||this.includeNode(e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.scope.context.includeVariableInModule(this.variable,ue,e)}}class Ii extends te{hasEffects(e){if(this.test?.hasEffects(e))return!0;for(const n of this.consequent){if(e.brokenFlow)break;if(n.hasEffects(e))return!0}return!1}include(e,n){this.included=!0,this.test?.include(e,n);for(const s of this.consequent)(n||s.shouldBeIncluded(e))&&s.include(e,n)}render(e,n,s){if(this.test&&(this.test.render(e,n),this.test.start===this.start+4&&e.prependLeft(this.test.start," ")),this.consequent.length>0){const i=this.test?this.test.end:ht(e.original,"default",this.start)+7,r=ht(e.original,":",i)+1;Xs(this.consequent,e,r,s.end,n)}}}Ii.prototype.needsBoundaries=!0,Ii.prototype.includeNode=ze,Ii.prototype.applyDeoptimizations=Te;class ho extends te{createScope(e){this.parentScope=e,this.scope=new Gn(e)}hasEffects(e){if(this.discriminant.hasEffects(e))return!0;const{brokenFlow:n,hasBreak:s,ignore:i}=e,{breaks:r}=i;i.breaks=!0,e.hasBreak=!1;let a=!0;for(const l of this.cases){if(l.hasEffects(e))return!0;a&&=e.brokenFlow&&!e.hasBreak,e.hasBreak=!1,e.brokenFlow=n}return this.defaultCase!==null&&(e.brokenFlow=a),i.breaks=r,e.hasBreak=s,!1}include(e,n){this.included=!0,this.discriminant.include(e,n);const{brokenFlow:s,hasBreak:i}=e;e.hasBreak=!1;let r=!0,a=n||this.defaultCase!==null&&this.defaultCase<this.cases.length-1;for(let l=this.cases.length-1;l>=0;l--){const c=this.cases[l];if(c.included&&(a=!0),!a){const u=Mn();u.ignore.breaks=!0,a=c.hasEffects(u)}a?(c.include(e,n),r&&=e.brokenFlow&&!e.hasBreak,e.hasBreak=!1,e.brokenFlow=s):r=s}a&&this.defaultCase!==null&&(e.brokenFlow=r),e.hasBreak=i}initialise(){super.initialise();for(let e=0;e<this.cases.length;e++)if(this.cases[e].test===null)return void(this.defaultCase=e);this.defaultCase=null}parseNode(e){return this.discriminant=new(this.scope.context.getNodeConstructor(e.discriminant.type))(this,this.parentScope).parseNode(e.discriminant),super.parseNode(e)}render(e,n){this.discriminant.render(e,n),this.cases.length>0&&Xs(this.cases,e,this.cases[0].start,this.end-1,n)}}ho.prototype.includeNode=ze,ho.prototype.applyDeoptimizations=Te;class hl extends Md{get hasCheckedForWarnings(){return Le(this.flags,268435456)}set hasCheckedForWarnings(e){this.flags=Me(this.flags,268435456,e)}bind(){super.bind()}hasEffects(e){this.deoptimized||this.applyDeoptimizations();for(const n of this.quasi.expressions)if(n.hasEffects(e))return!0;return this.tag.hasEffects(e)||this.tag.hasEffectsOnInteractionAtPath(ue,this.interaction,e)}include(e,n){this.included||this.includeNode(e),n?super.include(e,!0):(this.quasi.include(e,!1),this.tag.include(e,!1),this.tag.includeCallArguments(this.interaction,e))}initialise(){super.initialise(),this.args=[Pe,...this.quasi.expressions],this.interaction={args:[this.tag instanceof mn&&!this.tag.variable?this.tag.object:null,...this.args],type:2,withNew:!1}}render(e,n){if(this.tag.render(e,n,{isCalleeOfRenderedParent:!0}),this.quasi.render(e,n),!this.hasCheckedForWarnings&&this.tag.type===ra){this.hasCheckedForWarnings=!0;const s=this.tag.name;this.scope.findVariable(s).isNamespace&&this.scope.context.log(Ee,fh(s),this.start)}}applyDeoptimizations(){this.deoptimized=!0,this.tag.deoptimizeArgumentsOnInteractionAtPath(this.interaction,ue,Ge),this.scope.context.requestTreeshakingPass()}getReturnExpression(e=Ge){return this.returnExpression===null?(this.returnExpression=rt,this.returnExpression=this.tag.getReturnExpressionWhenCalledAtPath(ue,this.interaction,e,this)):this.returnExpression}}hl.prototype.includeNode=dt;class dl extends te{get tail(){return Le(this.flags,1048576)}set tail(e){this.flags=Me(this.flags,1048576,e)}bind(){}hasEffects(){return!1}parseNode(e){return this.value=e.value,super.parseNode(e)}render(){}}dl.prototype.includeNode=dt;class sp extends te{deoptimizeArgumentsOnInteractionAtPath(){}getLiteralValueAtPath(e){return e.length>0||this.quasis.length!==1?Ce:this.quasis[0].value.cooked}getReturnExpressionWhenCalledAtPath(e){return e.length!==1?rt:si(ti,e[0])}hasEffectsOnInteractionAtPath(e,n,s){return n.type===0?e.length>1:n.type!==2||e.length!==1||ni(ti,e[0],n,s)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations();for(const n of this.expressions)n.includePath(le,e)}render(e,n){e.indentExclusionRanges.push([this.start,this.end]),super.render(e,n)}}class ip extends St{constructor(e,n){super(e,n),this.variables.set("this",new Dt("this",null,un,ue,n,"other"))}addDeclaration(e,n,s,i,r){return this.context.module.importDescriptions.has(e.name)&&n.error(xs(e.name),e.start),super.addDeclaration(e,n,s,i,r)}addExportDefaultDeclaration(e,n,s){const i=new Yt(e,n,s);return this.variables.set("default",i),i}addNamespaceMemberAccess(){}deconflict(e,n,s){for(const i of this.children)i.deconflict(e,n,s)}findLexicalBoundary(){return this}findVariable(e){const n=this.variables.get(e)||this.accessedOutsideVariables.get(e);if(n)return n;const s=this.context.traceVariable(e)||this.parent.findVariable(e);return s instanceof va&&this.accessedOutsideVariables.set(e,s),s}}class rp extends te{bind(){this.variable=this.scope.findVariable("this")}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.variable.deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizePath(e){this.variable.deoptimizePath(e)}hasEffectsOnInteractionAtPath(e,n,s){return e.length===0?n.type!==0:this.variable.hasEffectsOnInteractionAtPath(e,n,s)}include(e){this.included||this.includeNode(e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.scope.context.includeVariableInModule(this.variable,ue,e)}includePath(e,n){this.included?e.length>0&&this.variable.includePath(e,n):(this.included=!0,this.scope.context.includeVariableInModule(this.variable,e,n));const s=function(i,r){for(;!(i instanceof Jh&&i.thisVariable===r);){if(!(i instanceof St))return null;i=i.parent}return i}(this.scope,this.variable);s&&s.functionNode.parent instanceof Si&&s.functionNode.parent.parent instanceof Ds&&s.functionNode.parent.parent.includePath(e,n)}initialise(){super.initialise(),this.alias=this.scope.findLexicalBoundary()instanceof ip?this.scope.context.moduleContext:null,this.alias==="undefined"&&this.scope.context.log(Ee,{code:"THIS_IS_UNDEFINED",message:"The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten",url:ot("troubleshooting/#error-this-is-undefined")},this.start)}render(e){this.alias!==null&&e.overwrite(this.start,this.end,this.alias,{contentOnly:!1,storeName:!0})}}class op extends te{hasEffects(){return!0}include(e,n){this.included||this.includeNode(e),this.argument.include(e,n),e.brokenFlow=!0}includeNode(e){this.included||(this.included=!0,this.argument.includePath(le,e))}render(e,n){this.argument.render(e,n,{preventASI:!0}),this.argument.start===this.start+5&&e.prependLeft(this.start+5," ")}}class po extends te{constructor(){super(...arguments),this.directlyIncluded=!1,this.includedLabelsAfterBlock=null}hasEffects(e){return(this.scope.context.options.treeshake.tryCatchDeoptimization?this.block.body.length>0:this.block.hasEffects(e))||!!this.finalizer?.hasEffects(e)}include(e,n){const s=this.scope.context.options.treeshake?.tryCatchDeoptimization,{brokenFlow:i,includedLabels:r}=e;if(this.directlyIncluded&&s){if(this.includedLabelsAfterBlock)for(const a of this.includedLabelsAfterBlock)r.add(a)}else this.included=!0,this.directlyIncluded=!0,this.block.include(e,s?_h:n),r.size>0&&(this.includedLabelsAfterBlock=[...r]),e.brokenFlow=i;this.handler!==null&&(this.handler.include(e,n),e.brokenFlow=i),this.finalizer?.include(e,n)}}po.prototype.includeNode=ze,po.prototype.applyDeoptimizations=Te;const Hg={"!":t=>!t,"+":t=>+t,"-":t=>-t,delete:()=>Ce,typeof:t=>typeof t,void:()=>{},"~":t=>~t},ap=Symbol("Unassigned");class pl extends te{constructor(){super(...arguments),this.renderedLiteralValue=ap}get prefix(){return Le(this.flags,2097152)}set prefix(e){this.flags=Me(this.flags,2097152,e)}deoptimizeCache(){this.renderedLiteralValue=Ce}getLiteralValueAtPath(e,n,s){if(e.length>0)return Ce;const i=this.argument.getLiteralValueAtPath(ue,n,s);if(typeof i=="symbol"){if(this.operator==="void")return;if(this.operator==="!"){if(i===ir)return!0;if(i===sr)return!1}return Ce}return Hg[this.operator](i)}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),!(this.operator==="typeof"&&this.argument instanceof Fe)&&(this.argument.hasEffects(e)||this.operator==="delete"&&this.argument.hasEffectsOnInteractionAtPath(ue,sa,e))}hasEffectsOnInteractionAtPath(e,{type:n}){return n!==0||e.length>(this.operator==="void"?0:1)}applyDeoptimizations(){this.deoptimized=!0,this.operator==="delete"&&(this.argument.deoptimizePath(ue),this.scope.context.requestTreeshakingPass())}getRenderedLiteralValue(e){return this.renderedLiteralValue!==ap?this.renderedLiteralValue:this.renderedLiteralValue=e?Ce:Dd(this.getLiteralValueAtPath(ue,Ge,this))}include(e,n,s){this.deoptimized||this.applyDeoptimizations(),this.included=!0;const i=this.argument instanceof Fe&&this.argument.variable?.included;(typeof this.getRenderedLiteralValue(n)=="symbol"||this.argument.shouldBeIncluded(e)||i)&&(this.argument.include(e,n),this.renderedLiteralValue=Ce)}render(e,n){if(typeof this.renderedLiteralValue=="symbol")super.render(e,n);else{let s=this.renderedLiteralValue;Gg.test(e.original[this.start-1])||(s=` ${s}`),e.overwrite(this.start,this.end,s)}}}const Gg=/[\s([=%&*+-/<>^|,?:;]/;pl.prototype.includeNode=dt;class fl extends te{hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),this.argument.hasEffectsAsAssignmentTarget(e,!0)}hasEffectsOnInteractionAtPath(e,{type:n}){return e.length>1||n!==0}include(e,n){this.included||this.includeNode(e),this.argument.includeAsAssignmentTarget(e,n,!0)}initialise(){super.initialise(),this.argument.setAssignedValue(Pe)}render(e,n){const{exportNamesByVariable:s,format:i,snippets:{_:r}}=n;if(this.argument.render(e,n),i==="system"){const a=this.argument.variable,l=s.get(a);if(l)if(this.prefix)l.length===1?Zo(a,this.start,this.end,e,n):ju(a,this.start,this.end,this.parent.type!==Wt,e,n);else{const c=this.operator[0];(function(u,d,m,f,g,E,k){const{_:I}=E.snippets;g.prependRight(d,`${On([u],E,k)},${I}`),f&&(g.prependRight(d,"("),g.appendLeft(m,")"))})(a,this.start,this.end,this.parent.type!==Wt,e,n,`${r}${c}${r}1`)}}}applyDeoptimizations(){this.deoptimized=!0,this.argument.deoptimizePath(ue),this.argument instanceof Fe&&this.scope.findVariable(this.argument.name).markReassigned(),this.scope.context.requestTreeshakingPass()}}fl.prototype.includeNode=dt;class vi extends te{deoptimizePath(){for(const e of this.declarations)e.deoptimizePath(ue)}hasEffectsOnInteractionAtPath(){return!1}include(e,n,{asSingleStatement:s}=pt){this.included=!0;for(const i of this.declarations){(n||i.shouldBeIncluded(e))&&i.include(e,n);const{id:r,init:a}=i;s&&r.include(e,n),a&&r.included&&!a.included&&(r instanceof vn||r instanceof zr)&&a.include(e,n)}}initialise(){super.initialise(),this.isUsingDeclaration=this.kind==="await using"||this.kind==="using";for(const e of this.declarations)e.declareDeclarator(this.kind,this.isUsingDeclaration)}removeAnnotations(e){this.declarations[0].removeAnnotations(e)}render(e,n,s=pt){if(this.isUsingDeclaration||function(i,r){for(const a of i){if(!a.id.included)return!1;if(a.id.type===ra){if(r.has(a.id.variable))return!1}else{const l=[];if(a.id.addExportedVariables(l,r),l.length>0)return!1}}return!0}(this.declarations,n.exportNamesByVariable)){for(const i of this.declarations)i.render(e,n);s.isNoStatement||e.original.charCodeAt(this.end-1)===59||e.appendLeft(this.end,";")}else this.renderReplacedDeclarations(e,n)}renderDeclarationEnd(e,n,s,i,r,a,l){e.original.charCodeAt(this.end-1)===59&&e.remove(this.end-1,this.end),n+=";",s===null?e.appendLeft(r,n):(e.original.charCodeAt(i-1)!==10||e.original.charCodeAt(this.end)!==10&&e.original.charCodeAt(this.end)!==13||(i--,e.original.charCodeAt(i)===13&&i--),i===s+1?e.overwrite(s,r,n):(e.overwrite(s,s+1,n),e.remove(i,r))),a.length>0&&e.appendLeft(r,` ${On(a,l)};`)}renderReplacedDeclarations(e,n){const s=er(this.declarations,e,this.start+this.kind.length,this.end-(e.original.charCodeAt(this.end-1)===59?1:0));let i,r;r=kn(e.original,this.start+this.kind.length);let a=r-1;e.remove(this.start,a);let l,c=!1,u=!1,d="";const m=[],f=function(g,E,k){let I=null;if(E.format==="system"){for(const{node:A}of g)A.id instanceof Fe&&A.init&&k.length===0&&E.exportNamesByVariable.get(A.id.variable)?.length===1?(I=A.id.variable,k.push(I)):A.id.addExportedVariables(k,E.exportNamesByVariable);k.length>1?I=null:I&&(k.length=0)}return I}(s,n,m);for(const{node:g,start:E,separator:k,contentEnd:I,end:A}of s)if(g.included){if(g.render(e,n),l="",!g.id.included||g.id instanceof Fe&&Vd(g.id.variable,n.exportNamesByVariable))u&&(d+=";"),c=!1;else{if(f&&f===g.id.variable){const x=ht(e.original,"=",g.id.end);Zo(f,kn(e.original,x+1),k===null?I:k,e,n)}c?d+=",":(u&&(d+=";"),l+=`${this.kind} `,c=!0)}r===a+1?e.overwrite(a,r,d+l):(e.overwrite(a,a+1,d),e.appendLeft(r,l)),i=I,r=A,u=!0,a=k,d=""}else ps(g,e,E,A);this.renderDeclarationEnd(e,d,a,i,r,m,n)}}vi.prototype.includeNode=ze,vi.prototype.applyDeoptimizations=Te;class fo extends te{hasEffects(e){return!!this.test.hasEffects(e)||Qr(e,this.body)}include(e,n){this.included=!0,this.test.include(e,n),bi(e,this.body,n)}}fo.prototype.includeNode=ze,fo.prototype.applyDeoptimizations=Te;class lp extends te{applyDeoptimizations(){this.deoptimized=!0,this.argument?.deoptimizePath(le)}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),!(e.ignore.returnYield&&!this.argument?.hasEffects(e))}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.argument?.includePath(le,e)}render(e,n){this.argument&&(this.argument.render(e,n,{preventASI:!0}),this.argument.start===this.start+5&&e.prependLeft(this.start+5," "))}}const Wg=["PanicError","ParseError","ArrayExpression","ArrayPattern","ArrowFunctionExpression","AssignmentExpression","AssignmentPattern","AwaitExpression","BinaryExpression","BlockStatement","BreakStatement","CallExpression","CatchClause","ChainExpression","ClassBody","ClassDeclaration","ClassExpression","ConditionalExpression","ContinueStatement","DebuggerStatement","Decorator","ExpressionStatement","DoWhileStatement","EmptyStatement","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportSpecifier","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","FunctionExpression","Identifier","IfStatement","ImportAttribute","ImportDeclaration","ImportDefaultSpecifier","ImportExpression","ImportNamespaceSpecifier","ImportSpecifier","JSXAttribute","JSXClosingElement","JSXClosingFragment","JSXElement","JSXEmptyExpression","JSXExpressionContainer","JSXFragment","JSXIdentifier","JSXMemberExpression","JSXNamespacedName","JSXOpeningElement","JSXOpeningFragment","JSXSpreadAttribute","JSXSpreadChild","JSXText","LabeledStatement","Literal","Literal","Literal","Literal","Literal","Literal","LogicalExpression","MemberExpression","MetaProperty","MethodDefinition","NewExpression","ObjectExpression","ObjectPattern","PrivateIdentifier","Program","Property","PropertyDefinition","RestElement","ReturnStatement","SequenceExpression","SpreadElement","StaticBlock","Super","SwitchCase","SwitchStatement","TaggedTemplateExpression","TemplateElement","TemplateLiteral","ThisExpression","ThrowStatement","TryStatement","UnaryExpression","UpdateExpression","VariableDeclaration","VariableDeclarator","WhileStatement","YieldExpression"],Xg=[ep,tp,Aa,zr,yi,Td,Rd,Ur,Wa,Wn,qr,Xa,Hr,Gr,Wr,vs,Xr,Jr,Yr,Ka,Ja,Bt,Zr,Ya,Ts,Kn,xi,eo,Bt,Fd,Bd,to,_s,Qa,Fe,Rs,zd,ki,Ei,Za,Ai,io,ro,Gd,Wd,Xd,wi,ao,Kd,el,Jd,il,rl,Yd,oo,Qd,ol,al,It,It,It,It,It,It,lo,mn,od,wr,Zd,Ds,vn,ll,co,Si,cl,Xn,ul,uo,qn,Sr,np,Ii,ho,hl,dl,sp,rp,op,po,pl,fl,vi,so,fo,lp],Kg=[function(t,e,n){t.message=n.convertString(n[e])},function(t,e,n){t.message=n.convertString(n[e])},function(t,e,n){const{scope:s}=t;t.elements=Ue(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.elements=Ue(t,s,n[e],n)},function(t,e,n){const{scope:s}=t,i=n[e];t.async=!(1&~i),t.expression=!(2&~i),t.generator=!(4&~i);const r=t.annotations=Rt(n[e+1],n);t.annotationNoSideEffects=r.some(l=>l.type==="noSideEffects");const a=t.params=Ue(t,s,n[e+2],n);s.addParameterVariables(a.map(l=>l.declare("parameter",ue,Pe)),a[a.length-1]instanceof Xn),t.body=Q(t,s.bodyScope,n[e+3],n)},function(t,e,n){const{scope:s}=t;t.operator=yt[n[e]],t.left=Q(t,s,n[e+1],n),t.right=Q(t,s,n[e+2],n)},function(t,e,n){const{scope:s}=t;t.left=Q(t,s,n[e],n),t.right=Q(t,s,n[e+1],n)},function(t,e,n){const{scope:s}=t;t.argument=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.operator=yt[n[e]],t.left=Q(t,s,n[e+1],n),t.right=Q(t,s,n[e+2],n)},function(t,e,n){const{scope:s}=t;t.body=Ue(t,s,n[e],n)},function(t,e,n){const{scope:s}=t,i=n[e];t.label=i===0?null:Q(t,s,i,n)},function(t,e,n){const{scope:s}=t,i=n[e];t.optional=!(1&~i),t.annotations=Rt(n[e+1],n),t.callee=Q(t,s,n[e+2],n),t.arguments=Ue(t,s,n[e+3],n)},function(t,e,n){const{scope:s}=t,i=n[e];(t.param=i===0?null:Q(t,s,i,n))?.declare("parameter",ue,Pe),t.body=Q(t,s.bodyScope,n[e+1],n)},function(t,e,n){const{scope:s}=t;t.expression=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t,i=n[e];if(i){const r=n[i],a=t.body=new Array(r);for(let l=0;l<r;l++){const c=n[i+1+l];a[l]=Q(t,n[c]===79||1&n[c+3]?s:s.instanceScope,c,n)}}else t.body=[]},function(t,e,n){const{scope:s}=t;t.decorators=Ue(t,s,n[e],n);const i=n[e+1];t.id=i===0?null:Q(t,s.parent,i,n);const r=n[e+2];t.superClass=r===0?null:Q(t,s,r,n),t.body=Q(t,s,n[e+3],n)},function(t,e,n){const{scope:s}=t;t.decorators=Ue(t,s,n[e],n);const i=n[e+1];t.id=i===0?null:Q(t,s,i,n);const r=n[e+2];t.superClass=r===0?null:Q(t,s,r,n),t.body=Q(t,s,n[e+3],n)},function(t,e,n){const{scope:s}=t;t.test=Q(t,s,n[e],n),t.consequent=Q(t,s,n[e+1],n),t.alternate=Q(t,s,n[e+2],n)},function(t,e,n){const{scope:s}=t,i=n[e];t.label=i===0?null:Q(t,s,i,n)},function(){},function(t,e,n){const{scope:s}=t;t.expression=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.directive=n.convertString(n[e]),t.expression=Q(t,s,n[e+1],n)},function(t,e,n){const{scope:s}=t;t.body=Q(t,s,n[e],n),t.test=Q(t,s,n[e+1],n)},function(){},function(t,e,n){const{scope:s}=t,i=n[e];t.exported=i===0?null:Q(t,s,i,n),t.source=Q(t,s,n[e+1],n),t.attributes=Ue(t,s,n[e+2],n)},function(t,e,n){const{scope:s}=t;t.declaration=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.specifiers=Ue(t,s,n[e],n);const i=n[e+1];t.source=i===0?null:Q(t,s,i,n),t.attributes=Ue(t,s,n[e+2],n);const r=n[e+3];t.declaration=r===0?null:Q(t,s,r,n)},function(t,e,n){const{scope:s}=t;t.local=Q(t,s,n[e],n);const i=n[e+1];t.exported=i===0?t.local:Q(t,s,i,n)},function(t,e,n){const{scope:s}=t;t.expression=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.left=Q(t,s,n[e],n),t.right=Q(t,s,n[e+1],n),t.body=Q(t,s,n[e+2],n)},function(t,e,n){const{scope:s}=t,i=n[e];t.await=!(1&~i),t.left=Q(t,s,n[e+1],n),t.right=Q(t,s,n[e+2],n),t.body=Q(t,s,n[e+3],n)},function(t,e,n){const{scope:s}=t,i=n[e];t.init=i===0?null:Q(t,s,i,n);const r=n[e+1];t.test=r===0?null:Q(t,s,r,n);const a=n[e+2];t.update=a===0?null:Q(t,s,a,n),t.body=Q(t,s,n[e+3],n)},function(t,e,n){const{scope:s}=t,i=n[e];t.async=!(1&~i),t.generator=!(2&~i);const r=t.annotations=Rt(n[e+1],n);t.annotationNoSideEffects=r.some(c=>c.type==="noSideEffects");const a=n[e+2];t.id=a===0?null:Q(t,s.parent,a,n);const l=t.params=Ue(t,s,n[e+3],n);s.addParameterVariables(l.map(c=>c.declare("parameter",ue,Pe)),l[l.length-1]instanceof Xn),t.body=Q(t,s.bodyScope,n[e+4],n)},function(t,e,n){const{scope:s}=t,i=n[e];t.async=!(1&~i),t.generator=!(2&~i);const r=t.annotations=Rt(n[e+1],n);t.annotationNoSideEffects=r.some(c=>c.type==="noSideEffects");const a=n[e+2];t.id=a===0?null:Q(t,t.idScope,a,n);const l=t.params=Ue(t,s,n[e+3],n);s.addParameterVariables(l.map(c=>c.declare("parameter",ue,Pe)),l[l.length-1]instanceof Xn),t.body=Q(t,s.bodyScope,n[e+4],n)},function(t,e,n){t.name=n.convertString(n[e])},function(t,e,n){const{scope:s}=t;t.test=Q(t,s,n[e],n),t.consequent=Q(t,t.consequentScope=new no(s),n[e+1],n);const i=n[e+2];t.alternate=i===0?null:Q(t,t.alternateScope=new no(s),i,n)},function(t,e,n){const{scope:s}=t;t.key=Q(t,s,n[e],n),t.value=Q(t,s,n[e+1],n)},function(t,e,n){const{scope:s}=t;t.specifiers=Ue(t,s,n[e],n),t.source=Q(t,s,n[e+1],n),t.attributes=Ue(t,s,n[e+2],n)},function(t,e,n){const{scope:s}=t;t.local=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.source=Q(t,s,n[e],n),t.sourceAstNode=Y(n[e],n);const i=n[e+1];t.options=i===0?null:Q(t,s,i,n)},function(t,e,n){const{scope:s}=t;t.local=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t,i=n[e];t.local=Q(t,s,n[e+1],n),t.imported=i===0?t.local:Q(t,s,i,n)},function(t,e,n){const{scope:s}=t;t.name=Q(t,s,n[e],n);const i=n[e+1];t.value=i===0?null:Q(t,s,i,n)},function(t,e,n){const{scope:s}=t;t.name=Q(t,s,n[e],n)},function(){},function(t,e,n){const{scope:s}=t;t.openingElement=Q(t,s,n[e],n),t.children=Ue(t,s,n[e+1],n);const i=n[e+2];t.closingElement=i===0?null:Q(t,s,i,n)},function(){},function(t,e,n){const{scope:s}=t;t.expression=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.openingFragment=Q(t,s,n[e],n),t.children=Ue(t,s,n[e+1],n),t.closingFragment=Q(t,s,n[e+2],n)},function(t,e,n){t.name=n.convertString(n[e])},function(t,e,n){const{scope:s}=t;t.object=Q(t,s,n[e],n),t.property=Q(t,s,n[e+1],n)},function(t,e,n){const{scope:s}=t;t.namespace=Q(t,s,n[e],n),t.name=Q(t,s,n[e+1],n)},function(t,e,n){const{scope:s}=t,i=n[e];t.selfClosing=!(1&~i),t.name=Q(t,s,n[e+1],n),t.attributes=Ue(t,s,n[e+2],n)},function(t){t.attributes=[],t.selfClosing=!1},function(t,e,n){const{scope:s}=t;t.argument=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.expression=Q(t,s,n[e],n)},function(t,e,n){t.value=n.convertString(n[e]),t.raw=n.convertString(n[e+1])},function(t,e,n){const{scope:s}=t;t.label=Q(t,s,n[e],n),t.body=Q(t,s,n[e+1],n)},function(t,e,n){const s=t.bigint=n.convertString(n[e]);t.raw=n.convertString(n[e+1]),t.value=BigInt(s)},function(t,e,n){const s=n[e],i=t.value=!(1&~s);t.raw=i?"true":"false"},function(t){t.value=null},function(t,e,n){const s=n[e];t.raw=s===0?void 0:n.convertString(s),t.value=new DataView(n.buffer).getFloat64(e+1<<2,!0)},function(t,e,n){const s=n.convertString(n[e]),i=n.convertString(n[e+1]);t.raw=`/${i}/${s}`,t.regex={flags:s,pattern:i},t.value=new RegExp(i,s)},function(t,e,n){t.value=n.convertString(n[e]);const s=n[e+1];t.raw=s===0?void 0:n.convertString(s)},function(t,e,n){const{scope:s}=t;t.operator=yt[n[e]],t.left=Q(t,s,n[e+1],n),t.right=Q(t,s,n[e+2],n)},function(t,e,n){const{scope:s}=t,i=n[e];t.computed=!(1&~i),t.optional=!(2&~i),t.object=Q(t,s,n[e+1],n),t.property=Q(t,s,n[e+2],n)},function(t,e,n){const{scope:s}=t;t.meta=Q(t,s,n[e],n),t.property=Q(t,s,n[e+1],n)},function(t,e,n){const{scope:s}=t,i=n[e];t.static=!(1&~i),t.computed=!(2&~i),t.decorators=Ue(t,s,n[e+1],n),t.key=Q(t,s,n[e+2],n),t.value=Q(t,s,n[e+3],n),t.kind=yt[n[e+4]]},function(t,e,n){const{scope:s}=t;t.annotations=Rt(n[e],n),t.callee=Q(t,s,n[e+1],n),t.arguments=Ue(t,s,n[e+2],n)},function(t,e,n){const{scope:s}=t;t.properties=Ue(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.properties=Ue(t,s,n[e],n)},function(t,e,n){t.name=n.convertString(n[e])},function(t,e,n){const{scope:s}=t;t.body=Ue(t,s,n[e],n),t.invalidAnnotations=Rt(n[e+1],n)},function(t,e,n){const{scope:s}=t,i=n[e];t.method=!(1&~i),t.shorthand=!(2&~i),t.computed=!(4&~i);const r=n[e+1];t.value=Q(t,s,n[e+2],n),t.kind=yt[n[e+3]],t.key=r===0?t.value:Q(t,s,r,n)},function(t,e,n){const{scope:s}=t,i=n[e];t.static=!(1&~i),t.computed=!(2&~i),t.decorators=Ue(t,s,n[e+1],n),t.key=Q(t,s,n[e+2],n);const r=n[e+3];t.value=r===0?null:Q(t,s,r,n)},function(t,e,n){const{scope:s}=t;t.argument=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t,i=n[e];t.argument=i===0?null:Q(t,s,i,n)},function(t,e,n){const{scope:s}=t;t.expressions=Ue(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.argument=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.body=Ue(t,s,n[e],n)},function(){},function(t,e,n){const{scope:s}=t,i=n[e];t.test=i===0?null:Q(t,s,i,n),t.consequent=Ue(t,s,n[e+1],n)},function(t,e,n){const{scope:s}=t;t.discriminant=Q(t,t.parentScope,n[e],n),t.cases=Ue(t,s,n[e+1],n)},function(t,e,n){const{scope:s}=t;t.tag=Q(t,s,n[e],n),t.quasi=Q(t,s,n[e+1],n)},function(t,e,n){const s=n[e];t.tail=!(1&~s);const i=n[e+1],r=i===0?void 0:n.convertString(i),a=n.convertString(n[e+2]);t.value={cooked:r,raw:a}},function(t,e,n){const{scope:s}=t;t.quasis=Ue(t,s,n[e],n),t.expressions=Ue(t,s,n[e+1],n)},function(){},function(t,e,n){const{scope:s}=t;t.argument=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.block=Q(t,s,n[e],n);const i=n[e+1];t.handler=i===0?null:Q(t,s,i,n);const r=n[e+2];t.finalizer=r===0?null:Q(t,s,r,n)},function(t,e,n){const{scope:s}=t;t.operator=yt[n[e]],t.argument=Q(t,s,n[e+1],n)},function(t,e,n){const{scope:s}=t,i=n[e];t.prefix=!(1&~i),t.operator=yt[n[e+1]],t.argument=Q(t,s,n[e+2],n)},function(t,e,n){const{scope:s}=t;t.kind=yt[n[e]],t.declarations=Ue(t,s,n[e+1],n)},function(t,e,n){const{scope:s}=t;t.id=Q(t,s,n[e],n);const i=n[e+1];t.init=i===0?null:Q(t,s,i,n)},function(t,e,n){const{scope:s}=t;t.test=Q(t,s,n[e],n),t.body=Q(t,s,n[e+1],n)},function(t,e,n){const{scope:s}=t,i=n[e];t.delegate=!(1&~i);const r=n[e+1];t.argument=r===0?null:Q(t,s,r,n)}];function Q(t,e,n,s){const i=s[n],r=Xg[i];if(!r)throw console.trace(),new Error(`Unknown node type: ${i}`);const a=new r(t,e);return a.type=Wg[i],a.start=s[n+1],a.end=s[n+2],Kg[i](a,n+3,s),a.initialise(),a}function Ue(t,e,n,s){if(n===0)return Qe;const i=s[n++],r=new Array(i);for(let a=0;a<i;a++){const l=s[n++];r[a]=l?Q(t,e,l,s):null}return r}const ml={ArrayExpression:Aa,ArrayPattern:zr,ArrowFunctionExpression:yi,AssignmentExpression:Td,AssignmentPattern:Rd,AwaitExpression:Ur,BinaryExpression:Wa,BlockStatement:Wn,BreakStatement:qr,CallExpression:Xa,CatchClause:Hr,ChainExpression:Gr,ClassBody:Wr,ClassDeclaration:vs,ClassExpression:Xr,ConditionalExpression:Jr,ContinueStatement:Yr,DebuggerStatement:Ka,Decorator:Ja,DoWhileStatement:Zr,EmptyStatement:Ya,ExportAllDeclaration:Ts,ExportDefaultDeclaration:Kn,ExportNamedDeclaration:xi,ExportSpecifier:eo,ExpressionStatement:Bt,ForInStatement:Fd,ForOfStatement:Bd,ForStatement:to,FunctionDeclaration:_s,FunctionExpression:Qa,Identifier:Fe,IfStatement:Rs,ImportAttribute:zd,ImportDeclaration:ki,ImportDefaultSpecifier:Ei,ImportExpression:Za,ImportNamespaceSpecifier:Ai,ImportSpecifier:io,JSXAttribute:ro,JSXClosingElement:Gd,JSXClosingFragment:Wd,JSXElement:Xd,JSXEmptyExpression:wi,JSXExpressionContainer:ao,JSXFragment:Kd,JSXIdentifier:el,JSXMemberExpression:Jd,JSXNamespacedName:il,JSXOpeningElement:rl,JSXOpeningFragment:Yd,JSXSpreadAttribute:oo,JSXSpreadChild:Qd,JSXText:ol,LabeledStatement:al,Literal:It,LogicalExpression:lo,MemberExpression:mn,MetaProperty:od,MethodDefinition:wr,NewExpression:Zd,ObjectExpression:Ds,ObjectPattern:vn,PanicError:ep,ParseError:tp,PrivateIdentifier:ll,Program:co,Property:Si,PropertyDefinition:cl,RestElement:Xn,ReturnStatement:ul,SequenceExpression:uo,SpreadElement:qn,StaticBlock:Sr,Super:np,SwitchCase:Ii,SwitchStatement:ho,TaggedTemplateExpression:hl,TemplateElement:dl,TemplateLiteral:sp,ThisExpression:rp,ThrowStatement:op,TryStatement:po,UnaryExpression:pl,UnknownNode:class extends te{hasEffects(){return!0}include(t){super.include(t,!0)}},UpdateExpression:fl,VariableDeclaration:vi,VariableDeclarator:so,WhileStatement:fo,YieldExpression:lp};class Jg extends zn{constructor(e){super($s),this.module=e}includePath(e,n){super.includePath(e,n),this.module.needsExportShim=!0}}var ts;(function(t){t[t.LOAD_AND_PARSE=0]="LOAD_AND_PARSE",t[t.ANALYSE=1]="ANALYSE",t[t.GENERATE=2]="GENERATE"})(ts||(ts={}));const cp=new WeakMap;function gl(t,e){if(t){const n=cp.get(t);n&&function(s){s.encodedMappings===void 0&&s.decodedMappings&&(s.encodedMappings=Ru(s.decodedMappings)),s.decodedMappings=void 0}(n)}if(e)for(const n of e)n.missing||gl(n)}function Os(t){if(!t)return null;if(typeof t=="string"&&(t=JSON.parse(t)),!t.mappings)return{mappings:[],names:[],sources:[],version:3};const e=t.mappings,n=Array.isArray(e),s={decodedMappings:n?e:void 0,encodedMappings:n?void 0:e},i={...t,get mappings(){return s.decodedMappings||(s.decodedMappings=s.encodedMappings?function(r){const{length:a}=r,l=new am(r),c=[];let u=0,d=0,m=0,f=0,g=0;do{const E=l.indexOf(";"),k=[];let I=!0,A=0;for(u=0;l.pos<E;){let x;u=Us(l,u),u<A&&(I=!1),A=u,Cu(l,E)?(d=Us(l,d),m=Us(l,m),f=Us(l,f),Cu(l,E)?(g=Us(l,g),x=[u,d,m,f,g]):x=[u,d,m,f]):x=[u],k.push(x),l.pos++}I||lm(k),c.push(k),l.pos=E+1}while(l.pos<=a);return c}(s.encodedMappings):[],s.encodedMappings=void 0),s.decodedMappings}};return cp.set(i,s),i}function yl(t){return t.id}const bl=(t,{allowReturnOutsideFunction:e=!1,jsx:n=!1}={})=>function(s){const i=Y(0,s);switch(i.type){case"PanicError":return oe(bs(hr(i.message)));case"ParseError":return oe(bs(hr(i.message,i.start)));default:return i}}(Cd($d(t,e,n))),Yg=new Set(["assert","with"]);function up(t){const{scope:{context:e},options:n,start:s}=t;if(!(n instanceof Ds))return n&&e.module.log(Ee,xh(e.module.id),s),ft;const i=n.properties.find(l=>Yg.has(xl(l)))?.value;if(!i)return ft;if(!(i instanceof Ds))return e.module.log(Ee,(r=e.module.id,{code:rh,message:`Rollup could not statically analyze the options argument of a dynamic import in "${Ae(r)}". Dynamic import options need to be an object with a nested attributes object.`}),s),ft;var r;const a=i.properties.map(l=>{const c=xl(l);return typeof c=="string"&&typeof l.value.value=="string"?[c,l.value.value]:(e.module.log(Ee,xh(e.module.id),l.start),null)}).filter(l=>!!l);return a.length>0?Object.fromEntries(a):ft}const xl=t=>{const e=t.key;return e&&!t.computed&&(e.name||e.value)};function mo(t,e){const n=Object.keys(t);return n.length!==Object.keys(e).length||n.some(s=>t[s]!==e[s])}var hp="performance"in(typeof globalThis>"u"?typeof window>"u"?{}:window:globalThis)?performance:{now:()=>0},dp={memoryUsage:()=>({heapUsed:0})};let _i=new Map;function pp(t,e){switch(e){case 1:return`# ${t}`;case 2:return`## ${t}`;case 3:return t;default:return`- ${t}`}}function Qg(t,e=3){t=pp(t,e);const n=dp.memoryUsage().heapUsed,s=hp.now(),i=_i.get(t);i===void 0?_i.set(t,{memory:0,startMemory:n,startTime:s,time:0,totalMemory:0}):(i.startMemory=n,i.startTime=s)}function Zg(t,e=3){t=pp(t,e);const n=_i.get(t);if(n!==void 0){const s=dp.memoryUsage().heapUsed;n.memory+=s-n.startMemory,n.time+=hp.now()-n.startTime,n.totalMemory=Math.max(n.totalMemory,s)}}function ey(){const t={};for(const[e,{memory:n,time:s,totalMemory:i}]of _i)t[e]=[s,n,i];return t}let ct=Mt,at=Mt;const ty=["augmentChunkHash","buildEnd","buildStart","generateBundle","load","moduleParsed","options","outputOptions","renderChunk","renderDynamicImport","renderStart","resolveDynamicImport","resolveFileUrl","resolveId","resolveImportMeta","shouldTransformCachedModule","transform","writeBundle"];function ny(t,e){if(t._hasTimer)return t;t._hasTimer=!0;for(const n of ty)if(n in t){let s=`plugin ${e}`;t.name&&(s+=` (${t.name})`),s+=` - ${n}`;const i=function(...a){ct(s,4);const l=r.apply(this,a);return at(s,4),l};let r;typeof t[n].handler=="function"?(r=t[n].handler,t[n].handler=i):(r=t[n],t[n]=i)}return t}const fp={identifier:null,localName:$s};function kl(t,e,n,s,i=new Map){const r=i.get(e);if(r){if(r.has(t))return s?[null]:oe((a=e,{code:"CIRCULAR_REEXPORT",exporter:l=t.id,message:`"${a}" cannot be exported from "${Ae(l)}" as it is a reexport that references itself.`}));r.add(t)}else i.set(e,new Set([t]));var a,l;return t.getVariableForExportName(e,{importerForSideEffects:n,isExportAllSearch:s,searchedNamesAndModules:i})}function mp(t,e){const n=bt(e.sideEffectDependenciesByVariable,t,Ln);let s=t;const i=new Set([s]);for(;;){const r=s.module;if(s=s instanceof Yt?s.getDirectOriginalVariable():s instanceof vt?s.syntheticNamespace:null,!s||i.has(s))break;i.add(s),n.add(r);const a=r.sideEffectDependenciesByVariable.get(s);if(a)for(const l of a)n.add(l)}return n}class st{constructor(e,n,s,i,r,a,l,c){this.graph=e,this.id=n,this.options=s,this.alternativeReexportModules=new Map,this.chunkFileNames=new Set,this.chunkNames=[],this.cycles=new Set,this.dependencies=new Set,this.dynamicDependencies=new Set,this.dynamicImporters=[],this.dynamicImports=[],this.execIndex=1/0,this.hasTreeShakingPassStarted=!1,this.implicitlyLoadedAfter=new Set,this.implicitlyLoadedBefore=new Set,this.importDescriptions=new Map,this.importMetas=[],this.importedFromNotTreeshaken=!1,this.importers=[],this.includedDynamicImporters=[],this.includedDirectTopLevelAwaitingDynamicImporters=new Set,this.includedImports=new Set,this.isExecuted=!1,this.isUserDefinedEntryPoint=!1,this.needsExportShim=!1,this.sideEffectDependenciesByVariable=new Map,this.sourcesWithAttributes=new Map,this.allExportNames=null,this.allExportsIncluded=!1,this.ast=null,this.exportAllModules=[],this.exportAllSources=new Set,this.exportNamesByVariable=null,this.exportShimVariable=new Jg(this),this.exports=new Map,this.namespaceReexportsByName=new Map,this.reexportDescriptions=new Map,this.relevantDependencies=null,this.syntheticExports=new Map,this.syntheticNamespace=null,this.transformDependencies=[],this.transitiveReexports=null,this.excludeFromSourcemap=/\0/.test(n),this.context=s.moduleContext(n),this.preserveSignature=this.options.preserveEntrySignatures;const u=this,{dynamicImports:d,dynamicImporters:m,exportAllSources:f,exports:g,implicitlyLoadedAfter:E,implicitlyLoadedBefore:k,importers:I,reexportDescriptions:A,sourcesWithAttributes:x}=this;this.info={ast:null,attributes:c,code:null,get dynamicallyImportedIdResolutions(){return d.map(({argument:w})=>typeof w=="string"&&u.resolvedIds[w]).filter(Boolean)},get dynamicallyImportedIds(){return d.map(({id:w})=>w).filter(w=>w!=null)},get dynamicImporters(){return m.sort()},get exportedBindings(){const w={".":[...g.keys()]};for(const[v,{source:$}]of A)(w[$]??=[]).push(v);for(const v of f)(w[v]??=[]).push("*");return w},get exports(){return[...g.keys(),...A.keys(),...[...f].map(()=>"*")]},get hasDefaultExport(){return u.ast?u.exports.has("default")||A.has("default"):null},id:n,get implicitlyLoadedAfterOneOf(){return Array.from(E,yl).sort()},get implicitlyLoadedBefore(){return Array.from(k,yl).sort()},get importedIdResolutions(){return Array.from(x.keys(),w=>u.resolvedIds[w]).filter(Boolean)},get importedIds(){return Array.from(x.keys(),w=>u.resolvedIds[w]?.id).filter(Boolean)},get importers(){return I.sort()},isEntry:i,isExternal:!1,get isIncluded(){return e.phase!==ts.GENERATE?null:u.isIncluded()},meta:{...l},moduleSideEffects:r,syntheticNamedExports:a}}basename(){const e=Gt(this.id),n=xn(this.id);return fr(n?e.slice(0,-n.length):e)}bindReferences(){this.ast.bind()}cacheInfoGetters(){wh(this.info,["dynamicallyImportedIdResolutions","dynamicallyImportedIds","dynamicImporters","exportedBindings","exports","hasDefaultExport","implicitlyLoadedAfterOneOf","implicitlyLoadedBefore","importedIdResolutions","importedIds","importers"])}error(e,n){return n!==void 0&&this.addLocationToLogProps(e,n),oe(e)}estimateSize(){let e=0;for(const n of this.ast.body)n.included&&(e+=n.end-n.start);return e}getAllExportNames(){if(this.allExportNames)return this.allExportNames;this.allExportNames=new Set([...this.exports.keys(),...this.reexportDescriptions.keys()]);for(const e of this.exportAllModules)if(e instanceof Ze)this.allExportNames.add(`*${e.id}`);else for(const n of e.getAllExportNames())n!=="default"&&this.allExportNames.add(n);return typeof this.info.syntheticNamedExports=="string"&&this.allExportNames.delete(this.info.syntheticNamedExports),this.allExportNames}getDependenciesToBeIncluded(){if(this.relevantDependencies)return this.relevantDependencies;this.relevantDependencies=new Set;const e=new Set,n=new Set,s=new Set(this.includedImports);if(this.info.isEntry||this.includedDynamicImporters.length>0||this.namespace.included||this.implicitlyLoadedAfter.size>0)for(const i of[...this.getReexports(),...this.getExports()]){const[r]=this.getVariableForExportName(i);r?.included&&s.add(r)}for(let i of s){const r=this.sideEffectDependenciesByVariable.get(i);if(r)for(const a of r)n.add(a);i instanceof vt?i=i.getBaseVariable():i instanceof Yt&&(i=i.getOriginalVariable()),e.add(i.module)}if(this.options.treeshake&&this.info.moduleSideEffects!=="no-treeshake")this.addRelevantSideEffectDependencies(this.relevantDependencies,e,n);else for(const i of this.dependencies)this.relevantDependencies.add(i);for(const i of e)this.relevantDependencies.add(i);return this.relevantDependencies}getExportNamesByVariable(){if(this.exportNamesByVariable)return this.exportNamesByVariable;const e=new Map;for(const n of this.getAllExportNames()){let[s]=this.getVariableForExportName(n);if(s instanceof Yt&&(s=s.getOriginalVariable()),!s||!(s.included||s instanceof dr))continue;const i=e.get(s);i?i.push(n):e.set(s,[n])}return this.exportNamesByVariable=e}getExports(){return[...this.exports.keys()]}getReexports(){if(this.transitiveReexports)return this.transitiveReexports;this.transitiveReexports=[];const e=new Set(this.reexportDescriptions.keys());for(const n of this.exportAllModules)if(n instanceof Ze)e.add(`*${n.id}`);else for(const s of[...n.getReexports(),...n.getExports()])s!=="default"&&e.add(s);return this.transitiveReexports=[...e]}getRenderedExports(){const e=[],n=[];for(const s of this.exports.keys()){const[i]=this.getVariableForExportName(s);(i?.included?e:n).push(s)}return{removedExports:n,renderedExports:e}}getSyntheticNamespace(){return this.syntheticNamespace===null&&(this.syntheticNamespace=void 0,[this.syntheticNamespace]=this.getVariableForExportName(typeof this.info.syntheticNamedExports=="string"?this.info.syntheticNamedExports:"default",{onlyExplicit:!0})),this.syntheticNamespace?this.syntheticNamespace:oe((e=this.id,n=this.info.syntheticNamedExports,{code:"SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT",exporter:e,message:`Module "${Ae(e)}" that is marked with \`syntheticNamedExports: ${JSON.stringify(n)}\` needs ${typeof n=="string"&&n!=="default"?`an explicit export named "${n}"`:"a default export"} that does not reexport an unresolved named export of the same module.`}));var e,n}getVariableForExportName(e,{importerForSideEffects:n,isExportAllSearch:s,onlyExplicit:i,searchedNamesAndModules:r}=ft){if(e[0]==="*")return e.length===1?[this.namespace]:this.graph.modulesById.get(e.slice(1)).getVariableForExportName("*");const a=this.reexportDescriptions.get(e);if(a){const[c,u]=kl(a.module,a.localName,n,!1,r);return c?(n&&(gp(c,n,this),this.info.moduleSideEffects&&bt(n.sideEffectDependenciesByVariable,c,Ln).add(this)),[c]):this.error(ur(a.localName,this.id,a.module.id,!!u?.missingButExportExists),a.start)}const l=this.exports.get(e);if(l){if(l===fp)return[this.exportShimVariable];const c=l.localName,u=this.traceVariable(c,{importerForSideEffects:n,searchedNamesAndModules:r});return u?(n&&(gp(u,n,this),bt(n.sideEffectDependenciesByVariable,u,Ln).add(this)),[u]):[null,{missingButExportExists:!0}]}if(i)return[null];if(e!=="default"){const c=this.namespaceReexportsByName.get(e)??this.getVariableFromNamespaceReexports(e,n,r);if(this.namespaceReexportsByName.set(e,c),c[0])return c}return this.info.syntheticNamedExports?[bt(this.syntheticExports,e,()=>new vt(this.astContext,e,this.getSyntheticNamespace()))]:!s&&this.options.shimMissingExports?(this.shimMissingExport(e),[this.exportShimVariable]):[null]}hasEffects(){return this.info.moduleSideEffects==="no-treeshake"||this.ast.hasCachedEffects()}include(){const e=Lt();this.ast.shouldBeIncluded(e)&&this.ast.include(e,!1)}includeAllExports(e){if(e&&this.namespace.setMergedNamespaces(this.includeAndGetAdditionalMergedNamespaces()),this.allExportsIncluded)return;this.allExportsIncluded=!0,this.isExecuted||(Es(this),this.graph.needsTreeshakingPass=!0);const n=Lt();for(const s of this.exports.keys())if(e||s!==this.info.syntheticNamedExports){const i=this.getVariableForExportName(s)[0];if(!i)return oe(Mm(s,this.id));this.includeVariable(i,le,n),i.deoptimizePath(le)}for(const s of this.getReexports()){const[i]=this.getVariableForExportName(s);i&&(i.deoptimizePath(le),this.includeVariable(i,le,n),i instanceof dr&&(i.module.reexported=!0))}}includeAllInBundle(){this.ast.include(Lt(),!0),this.includeAllExports(!1)}includeExportsByNames(e){this.isExecuted||(Es(this),this.graph.needsTreeshakingPass=!0);let n=!1;const s=Lt();for(const i of e){const r=this.getVariableForExportName(i)[0];r&&(r.deoptimizePath(le),this.includeVariable(r,le,s)),this.exports.has(i)||this.reexportDescriptions.has(i)||(n=!0)}n&&this.namespace.setMergedNamespaces(this.includeAndGetAdditionalMergedNamespaces())}isIncluded(){return this.ast&&(this.ast.included||this.namespace.included||this.importedFromNotTreeshaken||this.exportShimVariable.included)}linkImports(){this.addModulesToImportDescriptions(this.importDescriptions),this.addModulesToImportDescriptions(this.reexportDescriptions);const e=[];for(const n of this.exportAllSources){const s=this.graph.modulesById.get(this.resolvedIds[n].id);s instanceof Ze?e.push(s):this.exportAllModules.push(s)}this.exportAllModules.push(...e)}log(e,n,s){this.addLocationToLogProps(n,s),this.options.onLog(e,n)}render(e){const n=this.magicString.clone();this.ast.render(n,e),n.trim();const{usesTopLevelAwait:s}=this.astContext;return s&&e.format!=="es"&&e.format!=="system"?oe((i=this.id,r=e.format,{code:"INVALID_TLA_FORMAT",id:i,message:`Module format "${r}" does not support top-level await. Use the "es" or "system" output formats rather.`})):{source:n,usesTopLevelAwait:s};var i,r}async setSource({ast:e,code:n,customTransformCache:s,originalCode:i,originalSourcemap:r,resolvedIds:a,sourcemapChain:l,transformDependencies:c,transformFiles:u,...d}){if(ct("generate ast",3),n.startsWith("#!")){const I=n.indexOf(`
40
- `);this.shebang=n.slice(2,I)}this.info.code=n,this.originalCode=i,this.originalSourcemap=Os(r),this.sourcemapChain=l.map(I=>I.missing?I:Os(I)),gl(this.originalSourcemap,this.sourcemapChain),u&&(this.transformFiles=u),this.transformDependencies=c,this.customTransformCache=s,this.updateOptions(d),this.resolvedIds=a??Object.create(null);const m=this.id;this.magicString=new Gs(n,{filename:this.excludeFromSourcemap?null:m,indentExclusionRanges:[]}),this.astContext={addDynamicImport:this.addDynamicImport.bind(this),addExport:this.addExport.bind(this),addImport:this.addImport.bind(this),addImportMeta:this.addImportMeta.bind(this),addImportSource:this.addImportSource.bind(this),code:n,deoptimizationTracker:this.graph.deoptimizationTracker,error:this.error.bind(this),fileName:m,getExports:this.getExports.bind(this),getImportedJsxFactoryVariable:this.getImportedJsxFactoryVariable.bind(this),getModuleExecIndex:()=>this.execIndex,getModuleName:this.basename.bind(this),getNodeConstructor:I=>ml[I]||ml.UnknownNode,getReexports:this.getReexports.bind(this),importDescriptions:this.importDescriptions,includeAllExports:()=>this.includeAllExports(!0),includeDynamicImport:this.includeDynamicImport.bind(this),includeVariableInModule:this.includeVariableInModule.bind(this),log:this.log.bind(this),magicString:this.magicString,manualPureFunctions:this.graph.pureFunctions,module:this,moduleContext:this.context,newlyIncludedVariableInits:this.graph.newlyIncludedVariableInits,options:this.options,requestTreeshakingPass:()=>this.graph.needsTreeshakingPass=!0,traceExport:I=>this.getVariableForExportName(I),traceVariable:this.traceVariable.bind(this),usesTopLevelAwait:!1},this.scope=new ip(this.graph.scope,this.astContext),this.namespace=new Ps(this.astContext);const f={context:this.astContext,type:"Module"};if(e)this.ast=new ml[e.type](f,this.scope).parseNode(e),this.info.ast=e;else{at("generate ast",3);const I=await async function(A,x,w){return $d(A,x,w)}(n,!1,this.options.jsx!==!1);ct("generate ast",3),this.ast=(g=I,E=f,k=this.scope,Q(E,k,0,Cd(g))),Object.defineProperty(this.info,"ast",{get:()=>{if(this.graph.astLru.has(m))return this.graph.astLru.get(m);{const A=this.tryParse();return this.options.cache!==!1?(Object.defineProperty(this.info,"ast",{value:A}),A):(this.graph.astLru.set(m,A),A)}}})}var g,E,k;at("generate ast",3)}toJSON(){return{ast:this.info.ast,attributes:this.info.attributes,code:this.info.code,customTransformCache:this.customTransformCache,dependencies:Array.from(this.dependencies,yl),id:this.id,meta:this.info.meta,moduleSideEffects:this.info.moduleSideEffects,originalCode:this.originalCode,originalSourcemap:this.originalSourcemap,resolvedIds:this.resolvedIds,sourcemapChain:this.sourcemapChain,syntheticNamedExports:this.info.syntheticNamedExports,transformDependencies:this.transformDependencies,transformFiles:this.transformFiles}}traceVariable(e,{importerForSideEffects:n,isExportAllSearch:s,searchedNamesAndModules:i}=ft){const r=this.scope.variables.get(e);if(r)return r;const a=this.importDescriptions.get(e);if(a){const l=a.module;if(l instanceof st&&a.name==="*")return l.namespace;const[c,u]=kl(l,a.name,n||this,s,i);return c||this.error(ur(a.name,this.id,l.id,!!u?.missingButExportExists),a.start)}return null}updateOptions({meta:e,moduleSideEffects:n,syntheticNamedExports:s}){n!=null&&(this.info.moduleSideEffects=n),s!=null&&(this.info.syntheticNamedExports=s),e!=null&&Object.assign(this.info.meta,e)}addDynamicImport(e){let n=e.sourceAstNode;n.type==="TemplateLiteral"?n.quasis.length===1&&typeof n.quasis[0].value.cooked=="string"&&(n=n.quasis[0].value.cooked):n.type==="Literal"&&typeof n.value=="string"&&(n=n.value),this.dynamicImports.push({argument:n,id:null,node:e,resolution:null})}assertUniqueExportName(e,n){(this.exports.has(e)||this.reexportDescriptions.has(e))&&this.error(function(s){return{code:"DUPLICATE_EXPORT",message:`Duplicate export "${s}"`}}(e),n)}addExport(e){if(e instanceof Kn)this.assertUniqueExportName("default",e.start),this.exports.set("default",{identifier:e.variable.getAssignedVariableName(),localName:"default"});else if(e instanceof Ts){const n=e.source.value;if(this.addSource(n,e),e.exported){const s=e.exported instanceof It?e.exported.value:e.exported.name;this.assertUniqueExportName(s,e.exported.start),this.reexportDescriptions.set(s,{localName:"*",module:null,source:n,start:e.start})}else this.exportAllSources.add(n)}else if(e.source instanceof It){const n=e.source.value;this.addSource(n,e);for(const{exported:s,local:i,start:r}of e.specifiers){const a=s instanceof It?s.value:s.name;this.assertUniqueExportName(a,r),this.reexportDescriptions.set(a,{localName:i instanceof It?i.value:i.name,module:null,source:n,start:r})}}else if(e.declaration){const n=e.declaration;if(n instanceof vi)for(const s of n.declarations)for(const i of Lg(s.id))this.assertUniqueExportName(i,s.id.start),this.exports.set(i,{identifier:null,localName:i});else{const s=n.id.name;this.assertUniqueExportName(s,n.id.start),this.exports.set(s,{identifier:null,localName:s})}}else for(const{local:n,exported:s}of e.specifiers){const i=n.name,r=s instanceof Fe?s.name:s.value;this.assertUniqueExportName(r,s.start),this.exports.set(r,{identifier:null,localName:i})}}addImport(e){const n=e.source.value;this.addSource(n,e);for(const s of e.specifiers){const i=s.local.name;(this.scope.variables.has(i)||this.importDescriptions.has(i))&&this.error(xs(i),s.local.start);const r=s instanceof Ei?"default":s instanceof Ai?"*":s.imported instanceof Fe?s.imported.name:s.imported.value;this.importDescriptions.set(i,{module:null,name:r,source:n,start:s.start})}}addImportSource(e){e&&!this.sourcesWithAttributes.has(e)&&this.sourcesWithAttributes.set(e,ft)}addImportMeta(e){this.importMetas.push(e)}addLocationToLogProps(e,n){e.id=this.id,e.pos=n;let s=this.info.code;const i=oa(s,n,{offsetLine:1});if(i){let{column:r,line:a}=i;try{({column:r,line:a}=function(l,c){const u=l.filter(d=>!d.missing);e:for(;u.length>0;){const d=u.pop().mappings[c.line-1];if(d){const m=d.filter(E=>E.length>1),f=m[m.length-1];let g=m[0];for(let E of m){if(E[0]>=c.column||E===f){E=E[0]!==c.column?g:E,c={column:E[3],line:E[2]+1};continue e}g=E}}throw new Error("Can't resolve original location of error.")}return c}(this.sourcemapChain,{column:r,line:a})),s=this.originalCode}catch(l){this.options.onLog(Ee,function(c,u,d,m,f){return{cause:c,code:"SOURCEMAP_ERROR",id:u,loc:{column:d,file:u,line:m},message:`Error when using sourcemap for reporting an error: ${c.message}`,pos:f}}(l,this.id,r,a,n))}lr(e,{column:r,line:a},s,this.id)}}addModulesToImportDescriptions(e){for(const n of e.values()){const{id:s}=this.resolvedIds[n.source];n.module=this.graph.modulesById.get(s)}}addRelevantSideEffectDependencies(e,n,s){const i=new Set,r=a=>{for(const l of a)i.has(l)||(i.add(l),n.has(l)?e.add(l):(l.info.moduleSideEffects||s.has(l))&&(l instanceof Ze||l.hasEffects()?e.add(l):r(l.dependencies)))};r(this.dependencies),r(s)}addSource(e,n){const s=(i=n.attributes,i?.length?Object.fromEntries(i.map(a=>[xl(a),a.value.value])):ft);var i;const r=this.sourcesWithAttributes.get(e);r?mo(r,s)&&this.log(Ee,cr(r,s,e,this.id),n.start):this.sourcesWithAttributes.set(e,s)}getImportedJsxFactoryVariable(e,n,s){const{id:i}=this.resolvedIds[s],r=this.graph.modulesById.get(i),[a]=r.getVariableForExportName(e);return a||this.error((l=e,c=i,u=this.id,{code:"MISSING_JSX_EXPORT",exporter:c,id:u,message:`Export "${l}" is not defined in module "${Ae(c)}" even though it is needed in "${Ae(u)}" to provide JSX syntax. Please check your "jsx" option.`,names:[l],url:ot(ar)}),n);var l,c,u}getVariableFromNamespaceReexports(e,n,s){let i=null;const r=new Map,a=new Set;for(const d of this.exportAllModules){if(d.info.syntheticNamedExports===e)continue;const[m,f]=kl(d,e,n,!0,sy(s));d instanceof Ze||f?.indirectExternal?a.add(m):m instanceof vt?i||(i=m):m&&r.set(m,d)}if(r.size>0){const d=[...r],m=d[0][0];return d.length===1?[m]:(this.options.onLog(Ee,(l=e,c=this.id,u=d.map(([,f])=>f.id),{binding:l,code:"NAMESPACE_CONFLICT",ids:u,message:`Conflicting namespaces: "${Ae(c)}" re-exports "${l}" from one of the modules ${cn(u.map(f=>Ae(f)))} (will be ignored).`,reexporter:c})),[null])}var l,c,u;if(a.size>0){const d=[...a],m=d[0];return d.length>1&&this.options.onLog(Ee,function(f,g,E,k){return{binding:f,code:"AMBIGUOUS_EXTERNAL_NAMESPACES",ids:k,message:`Ambiguous external namespace resolution: "${Ae(g)}" re-exports "${f}" from one of the external modules ${cn(k.map(I=>Ae(I)))}, guessing "${Ae(E)}".`,reexporter:g}}(e,this.id,m.module.id,d.map(f=>f.module.id))),[m,{indirectExternal:!0}]}return i?[i]:[null]}includeAndGetAdditionalMergedNamespaces(){const e=new Set,n=new Set;for(const s of[this,...this.exportAllModules])if(s instanceof Ze){const[i]=s.getVariableForExportName("*");i.includePath(le,Lt()),this.includedImports.add(i),e.add(i)}else if(s.info.syntheticNamedExports){const i=s.getSyntheticNamespace();i.includePath(le,Lt()),this.includedImports.add(i),n.add(i)}return[...n,...e]}includeDynamicImport(e){const n=this.dynamicImports.find(s=>s.node===e).resolution;if(n instanceof st){n.includedDynamicImporters.includes(this)||(n.includedDynamicImporters.push(this),e.withinTopLevelAwait&&n.includedDirectTopLevelAwaitingDynamicImporters.add(this));const s=this.options.treeshake?e.getDeterministicImportedNames():void 0;s?n.includeExportsByNames(s):n.includeAllExports(!0)}}includeVariable(e,n,s){const{included:i,module:r}=e;if(e.includePath(n,s),i)r instanceof st&&r!==this&&mp(e,this);else if(this.graph.needsTreeshakingPass=!0,r instanceof st&&(r.isExecuted||Es(r),r!==this)){const a=mp(e,this);for(const l of a)l.isExecuted||Es(l)}}includeVariableInModule(e,n,s){this.includeVariable(e,n,s);const i=e.module;i&&i!==this&&this.includedImports.add(e)}shimMissingExport(e){var n,s;this.options.onLog(Ee,(n=this.id,{binding:s=e,code:"SHIMMED_EXPORT",exporter:n,message:`Missing export "${s}" has been shimmed in module "${Ae(n)}".`})),this.exports.set(e,fp)}tryParse(){try{return bl(this.info.code,{jsx:this.options.jsx!==!1})}catch(e){return this.error(da(e,this.id),e.pos)}}}function gp(t,e,n){if(t.module instanceof st&&t.module!==n){const s=t.module.cycles;if(s.size>0){const i=n.cycles;for(const r of i)if(s.has(r)){e.alternativeReexportModules.set(t,n);break}}}}const sy=t=>t&&new Map(Array.from(t,([e,n])=>[e,new Set(n)])),yp=(t,e)=>e?`${t}
41
- ${e}`:t,bp=(t,e)=>e?`${t}
38
+ `)}(v,"this",b,m,f,u)+ae));let T=`${O}${O}})(${M.join(`,${j}`)});`;i&&!w&&c&&(T=`${O}${O}${a}return exports;${T}`);const de=Ri(s,n,c,A,m,a,I,E);let he=Di(c&&i,g===!0||g==="if-default-prop"&&r,$,m);he&&(he=O+O+he),t.append(`${de}${he}${d}`).indent(a).prepend(ae).append(T)},system:function(t,{accessedGlobals:e,dependencies:n,exports:s,hasExports:r,indent:i,intro:a,snippets:l,outro:c,usesTopLevelAwait:u},{externalLiveBindings:d,freeze:m,name:f,generatedCode:{symbols:g},strict:w,systemNullSetters:k}){const{_:I,getFunctionIntro:E,getNonArrowFunctionIntro:b,n:A,s:v}=l,{importBindings:$,setters:D,starExcludes:j}=function(N,C,R,{_:M,cnst:q,getObject:K,getPropertyAccess:X,n:ae}){const T=[],de=[];let he=null;for(const{imports:ce,reexports:L}of N){const x=[];if(ce)for(const F of ce)T.push(F.local),F.imported==="*"?x.push(`${F.local}${M}=${M}module;`):x.push(`${F.local}${M}=${M}module${X(F.imported)};`);if(L){const F=[];let B=!1;for(const{imported:J,reexported:ee}of L)ee==="*"?B=!0:F.push([ee,J==="*"?"module":`module${X(J)}`]);if(F.length>1||B)if(B){he||(he=Ig({dependencies:N,exports:C})),F.unshift([null,`__proto__:${M}null`]);const J=K(F,{lineBreakIndent:null});x.push(`${q} setter${M}=${M}${J};`,`for${M}(${q} name in module)${M}{`,`${R}if${M}(!_starExcludes[name])${M}setter[name]${M}=${M}module[name];`,"}","exports(setter);")}else{const J=K(F,{lineBreakIndent:null});x.push(`exports(${J});`)}else{const[J,ee]=F[0];x.push(`exports(${JSON.stringify(J)},${M}${ee});`)}}de.push(x.join(`${ae}${R}${R}${R}`))}return{importBindings:T,setters:de,starExcludes:he}}(n,s,i,l),V=f?`'${f}',${I}`:"",U=e.has("module")?["exports","module"]:r?["exports"]:[];let O=`System.register(${V}[`+n.map(({importPath:N})=>`'${N}'`).join(`,${I}`)+`],${I}(${b(U,{isAsync:!1,name:null})}{${A}${i}${w?"'use strict';":""}`+vg(j,i,l)+_g($,i,l)+`${A}${i}return${I}{${D.length>0?`${A}${i}${i}setters:${I}[${D.map(N=>N?`${E(["module"],{isAsync:!1,name:null})}{${A}${i}${i}${i}${N}${A}${i}${i}}`:k?"null":`${E([],{isAsync:!1,name:null})}{}`).join(`,${I}`)}],`:""}${A}`;O+=`${i}${i}execute:${I}(${b([],{isAsync:u,name:null})}{${A}${A}`;const _=`${i}${i}})${A}${i}}${v}${A}}));`;t.prepend(a+Ca(null,e,i,l,d,m,g)+Pg(s,i,l)).append(`${c}${A}${A}`+$g(s,i,l)+Ng(s,i,l)).indent(`${i}${i}${i}`).append(_).prepend(O)},umd:function(t,{accessedGlobals:e,dependencies:n,exports:s,hasDefaultExport:r,hasExports:i,id:a,indent:l,intro:c,namedExportsMode:u,log:d,outro:m,snippets:f},{amd:g,compact:w,esModule:k,extend:I,externalLiveBindings:E,freeze:b,interop:A,name:v,generatedCode:{symbols:$},globals:D,noConflict:j,reexportProtoFromExternal:V,strict:U}){const{_:O,cnst:_,getFunctionIntro:N,getNonArrowFunctionIntro:C,getPropertyAccess:R,n:M,s:q}=f,K=w?"f":"factory",X=w?"g":"global";if(i&&!v)return oe({code:uh,message:'You must supply "output.name" for UMD bundles that have exports so that the exports are accessible in environments without a module loader.',url:ot(sh)});za(d,n);const ae=n.map(Z=>`'${yd(Z.importPath,g.forceJsExtensionForImports)}'`),T=n.map(Z=>`require('${Z.importPath}')`),de=bd(n),he=de.map(Z=>qa(Z.globalName,X,R)),ce=de.map(Z=>Z.name);(i||j)&&(u||i&&s[0]?.local==="exports.default")&&(ae.unshift("'exports'"),T.unshift("exports"),he.unshift(Va(v,X,D,(I?`${qa(v,X,R)}${O}||${O}`:"")+"{}",f,d)),ce.unshift("exports"));const L=fd(g,a),x=(L?`'${L}',${O}`:"")+(ae.length>0?`[${ae.join(`,${O}`)}],${O}`:""),F=g.define,B=!u&&i?`module.exports${O}=${O}`:"",J=U?`${O}'use strict';${M}`:"";let ee;if(j){const Z=w?"e":"exports";let Se;!u&&i?Se=`${_} ${Z}${O}=${O}${Va(v,X,D,`${K}(${he.join(`,${O}`)})`,f,d)};`:Se=`${_} ${Z}${O}=${O}${he.shift()};${M}${l}${l}${K}(${[Z,...he].join(`,${O}`)});`,ee=`(${N([],{isAsync:!1,name:null})}{${M}${l}${l}${_} current${O}=${O}${function(Xe,lt,{_:Ye,getPropertyAccess:bn}){let on=lt;return Xe.split(".").map(Qr=>on+=bn(Qr)).join(`${Ye}&&${Ye}`)}(v,X,f)};${M}${l}${l}${Se}${M}${l}${l}${Z}.noConflict${O}=${O}${N([],{isAsync:!1,name:null})}{${O}${qa(v,X,R)}${O}=${O}current;${O}return ${Z}${q}${O}};${M}${l}})()`}else ee=`${K}(${he.join(`,${O}`)})`,!u&&i&&(ee=Va(v,X,D,ee,f,d));const ie=i||j&&u||he.length>0,se=[K];ie&&se.unshift(X);const ke=ie?`this,${O}`:"",ye=ie?`(${X}${O}=${O}typeof globalThis${O}!==${O}'undefined'${O}?${O}globalThis${O}:${O}${X}${O}||${O}self,${O}`:"",be=ie?")":"",fe=ie?`${l}typeof exports${O}===${O}'object'${O}&&${O}typeof module${O}!==${O}'undefined'${O}?${O}${B}${K}(${T.join(`,${O}`)})${O}:${M}`:"",Oe=`(${C(se,{isAsync:!1,name:null})}{${M}`+fe+`${l}typeof ${F}${O}===${O}'function'${O}&&${O}${F}.amd${O}?${O}${F}(${x}${K})${O}:${M}${l}${ye}${ee}${be};${M}})(${ke}(${C(ce,{isAsync:!1,name:null})}{${J}${M}`,qe=M+M+"}));";t.prepend(`${c}${Oi(n,A,E,b,$,e,l,f)}`);const ne=Ri(s,n,u,A,f,l,E,V);let we=Di(u&&i,k===!0||k==="if-default-prop"&&r,$,f);we&&(we=M+M+we),t.append(`${ne}${we}${m}`).trim().indent(l).append(qe).prepend(Oe)}};function Tg(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ha,xd,kd,Ga,Ed,Ad,wd,Sd,Id,vd,_d,Pd={};function Mi(){if(xd)return Ha;xd=1;const t="\\\\/",e=`[^${t}]`,n="\\.",s="\\/",r="[^/]",i=`(?:${s}|$)`,a=`(?:^|${s})`,l=`${n}{1,2}${i}`,c={DOT_LITERAL:n,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:s,ONE_CHAR:"(?=.)",QMARK:r,END_ANCHOR:i,DOTS_SLASH:l,NO_DOT:`(?!${n})`,NO_DOTS:`(?!${a}${l})`,NO_DOT_SLASH:`(?!${n}{0,1}${i})`,NO_DOTS_SLASH:`(?!${l})`,QMARK_NO_DOT:`[^.${s}]`,STAR:`${r}*?`,START_ANCHOR:a,SEP:"/"},u={...c,SLASH_LITERAL:`[${t}]`,QMARK:e,STAR:`${e}*?`,DOTS_SLASH:`${n}{1,2}(?:[${t}]|$)`,NO_DOT:`(?!${n})`,NO_DOTS:`(?!(?:^|[${t}])${n}{1,2}(?:[${t}]|$))`,NO_DOT_SLASH:`(?!${n}{0,1}(?:[${t}]|$))`,NO_DOTS_SLASH:`(?!${n}{1,2}(?:[${t}]|$))`,QMARK_NO_DOT:`[^.${t}]`,START_ANCHOR:`(?:^|[${t}])`,END_ANCHOR:`(?:[${t}]|$)`,SEP:"\\"};return Ha={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars:d=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${d.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:d=>d===!0?u:c},Ha}function Fi(){return kd||(kd=1,function(t){const{REGEX_BACKSLASH:e,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:r}=Mi();t.isObject=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),t.hasRegexChars=i=>s.test(i),t.isRegexChar=i=>i.length===1&&t.hasRegexChars(i),t.escapeRegex=i=>i.replace(r,"\\$1"),t.toPosixSlashes=i=>i.replace(e,"/"),t.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const i=navigator.platform.toLowerCase();return i==="win32"||i==="windows"}return!(typeof process>"u"||!process.platform)&&process.platform==="win32"},t.removeBackslashes=i=>i.replace(n,a=>a==="\\"?"":a),t.escapeLast=(i,a,l)=>{const c=i.lastIndexOf(a,l);return c===-1?i:i[c-1]==="\\"?t.escapeLast(i,a,c-1):`${i.slice(0,c)}\\${i.slice(c)}`},t.removePrefix=(i,a={})=>{let l=i;return l.startsWith("./")&&(l=l.slice(2),a.prefix="./"),l},t.wrapOutput=(i,a={},l={})=>{let c=`${l.contains?"":"^"}(?:${i})${l.contains?"":"$"}`;return a.negated===!0&&(c=`(?:^(?!${c}).*$)`),c},t.basename=(i,{windows:a}={})=>{const l=i.split(a?/[\\/]/:"/"),c=l[l.length-1];return c===""?l[l.length-2]:c}}(Pd)),Pd}function Rg(){if(Ed)return Ga;Ed=1;const t=Fi(),{CHAR_ASTERISK:e,CHAR_AT:n,CHAR_BACKWARD_SLASH:s,CHAR_COMMA:r,CHAR_DOT:i,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:c,CHAR_LEFT_PARENTHESES:u,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_PLUS:m,CHAR_QUESTION_MARK:f,CHAR_RIGHT_CURLY_BRACE:g,CHAR_RIGHT_PARENTHESES:w,CHAR_RIGHT_SQUARE_BRACKET:k}=Mi(),I=b=>b===l||b===s,E=b=>{b.isPrefix!==!0&&(b.depth=b.isGlobstar?1/0:1)};return Ga=(b,A)=>{const v=A||{},$=b.length-1,D=v.parts===!0||v.scanToEnd===!0,j=[],V=[],U=[];let O,_,N=b,C=-1,R=0,M=0,q=!1,K=!1,X=!1,ae=!1,T=!1,de=!1,he=!1,ce=!1,L=!1,x=!1,F=0,B={value:"",depth:0,isGlob:!1};const J=()=>C>=$,ee=()=>N.charCodeAt(C+1),ie=()=>(O=_,N.charCodeAt(++C));for(;C<$;){let fe;if(_=ie(),_!==s){if(de===!0||_===c){for(F++;J()!==!0&&(_=ie());)if(_!==s)if(_!==c){if(de!==!0&&_===i&&(_=ie())===i){if(q=B.isBrace=!0,X=B.isGlob=!0,x=!0,D===!0)continue;break}if(de!==!0&&_===r){if(q=B.isBrace=!0,X=B.isGlob=!0,x=!0,D===!0)continue;break}if(_===g&&(F--,F===0)){de=!1,q=B.isBrace=!0,x=!0;break}}else F++;else he=B.backslashes=!0,ie();if(D===!0)continue;break}if(_!==l){if(v.noext!==!0&&(_===m||_===n||_===e||_===f||_===a)&&ee()===u){if(X=B.isGlob=!0,ae=B.isExtglob=!0,x=!0,_===a&&C===R&&(L=!0),D===!0){for(;J()!==!0&&(_=ie());)if(_!==s){if(_===w){X=B.isGlob=!0,x=!0;break}}else he=B.backslashes=!0,_=ie();continue}break}if(_===e){if(O===e&&(T=B.isGlobstar=!0),X=B.isGlob=!0,x=!0,D===!0)continue;break}if(_===f){if(X=B.isGlob=!0,x=!0,D===!0)continue;break}if(_===d){for(;J()!==!0&&(fe=ie());)if(fe!==s){if(fe===k){K=B.isBracket=!0,X=B.isGlob=!0,x=!0;break}}else he=B.backslashes=!0,ie();if(D===!0)continue;break}if(v.nonegate===!0||_!==a||C!==R){if(v.noparen!==!0&&_===u){if(X=B.isGlob=!0,D===!0){for(;J()!==!0&&(_=ie());)if(_!==u){if(_===w){x=!0;break}}else he=B.backslashes=!0,_=ie();continue}break}if(X===!0){if(x=!0,D===!0)continue;break}}else ce=B.negated=!0,R++}else{if(j.push(C),V.push(B),B={value:"",depth:0,isGlob:!1},x===!0)continue;if(O===i&&C===R+1){R+=2;continue}M=C+1}}else he=B.backslashes=!0,_=ie(),_===c&&(de=!0)}v.noext===!0&&(ae=!1,X=!1);let se=N,ke="",ye="";R>0&&(ke=N.slice(0,R),N=N.slice(R),M-=R),se&&X===!0&&M>0?(se=N.slice(0,M),ye=N.slice(M)):X===!0?(se="",ye=N):se=N,se&&se!==""&&se!=="/"&&se!==N&&I(se.charCodeAt(se.length-1))&&(se=se.slice(0,-1)),v.unescape===!0&&(ye&&(ye=t.removeBackslashes(ye)),se&&he===!0&&(se=t.removeBackslashes(se)));const be={prefix:ke,input:b,start:R,base:se,glob:ye,isBrace:q,isBracket:K,isGlob:X,isExtglob:ae,isGlobstar:T,negated:ce,negatedExtglob:L};if(v.tokens===!0&&(be.maxDepth=0,I(_)||V.push(B),be.tokens=V),v.parts===!0||v.tokens===!0){let fe;for(let Oe=0;Oe<j.length;Oe++){const qe=fe?fe+1:R,ne=j[Oe],we=b.slice(qe,ne);v.tokens&&(Oe===0&&R!==0?(V[Oe].isPrefix=!0,V[Oe].value=ke):V[Oe].value=we,E(V[Oe]),be.maxDepth+=V[Oe].depth),Oe===0&&we===""||U.push(we),fe=ne}if(fe&&fe+1<b.length){const Oe=b.slice(fe+1);U.push(Oe),v.tokens&&(V[V.length-1].value=Oe,E(V[V.length-1]),be.maxDepth+=V[V.length-1].depth)}be.slashes=j,be.parts=U}return be},Ga}function Dg(){if(wd)return Ad;wd=1;const t=Mi(),e=Fi(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:s,REGEX_NON_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_BACKREF:i,REPLACEMENTS:a}=t,l=(d,m)=>typeof m.expandRange=="function"?m.expandRange(...d,m):(d.sort(),`[${d.join("-")}]`),c=(d,m)=>`Missing ${d}: "${m}" - use "\\\\${m}" to match literal characters`,u=(d,m)=>{if(typeof d!="string")throw new TypeError("Expected a string");d=a[d]||d;const f={...m},g=typeof f.maxLength=="number"?Math.min(n,f.maxLength):n;let w=d.length;if(w>g)throw new SyntaxError(`Input length: ${w}, exceeds maximum allowed length: ${g}`);const k={type:"bos",value:"",output:f.prepend||""},I=[k],E=f.capture?"":"?:",b=t.globChars(f.windows),A=t.extglobChars(b),{DOT_LITERAL:v,PLUS_LITERAL:$,SLASH_LITERAL:D,ONE_CHAR:j,DOTS_SLASH:V,NO_DOT:U,NO_DOT_SLASH:O,NO_DOTS_SLASH:_,QMARK:N,QMARK_NO_DOT:C,STAR:R,START_ANCHOR:M}=b,q=ne=>`(${E}(?:(?!${M}${ne.dot?V:v}).)*?)`,K=f.dot?"":U,X=f.dot?N:C;let ae=f.bash===!0?q(f):R;f.capture&&(ae=`(${ae})`),typeof f.noext=="boolean"&&(f.noextglob=f.noext);const T={input:d,index:-1,start:0,dot:f.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:I};d=e.removePrefix(d,T),w=d.length;const de=[],he=[],ce=[];let L,x=k;const F=()=>T.index===w-1,B=T.peek=(ne=1)=>d[T.index+ne],J=T.advance=()=>d[++T.index]||"",ee=()=>d.slice(T.index+1),ie=(ne="",we=0)=>{T.consumed+=ne,T.index+=we},se=ne=>{T.output+=ne.output!=null?ne.output:ne.value,ie(ne.value)},ke=()=>{let ne=1;for(;B()==="!"&&(B(2)!=="("||B(3)==="?");)J(),T.start++,ne++;return ne%2!=0&&(T.negated=!0,T.start++,!0)},ye=ne=>{T[ne]++,ce.push(ne)},be=ne=>{T[ne]--,ce.pop()},fe=ne=>{if(x.type==="globstar"){const we=T.braces>0&&(ne.type==="comma"||ne.type==="brace"),Z=ne.extglob===!0||de.length&&(ne.type==="pipe"||ne.type==="paren");ne.type==="slash"||ne.type==="paren"||we||Z||(T.output=T.output.slice(0,-x.output.length),x.type="star",x.value="*",x.output=ae,T.output+=x.output)}if(de.length&&ne.type!=="paren"&&(de[de.length-1].inner+=ne.value),(ne.value||ne.output)&&se(ne),x&&x.type==="text"&&ne.type==="text")return x.output=(x.output||x.value)+ne.value,void(x.value+=ne.value);ne.prev=x,I.push(ne),x=ne},Oe=(ne,we)=>{const Z={...A[we],conditions:1,inner:""};Z.prev=x,Z.parens=T.parens,Z.output=T.output;const Se=(f.capture?"(":"")+Z.open;ye("parens"),fe({type:ne,value:we,output:T.output?"":j}),fe({type:"paren",extglob:!0,value:J(),output:Se}),de.push(Z)},qe=ne=>{let we,Z=ne.close+(f.capture?")":"");if(ne.type==="negate"){let Se=ae;if(ne.inner&&ne.inner.length>1&&ne.inner.includes("/")&&(Se=q(f)),(Se!==ae||F()||/^\)+$/.test(ee()))&&(Z=ne.close=`)$))${Se}`),ne.inner.includes("*")&&(we=ee())&&/^\.[^\\/.]+$/.test(we)){const Xe=u(we,{...m,fastpaths:!1}).output;Z=ne.close=`)${Xe})${Se})`}ne.prev.type==="bos"&&(T.negatedExtglob=!0)}fe({type:"paren",extglob:!0,value:L,output:Z}),be("parens")};if(f.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(d)){let ne=!1,we=d.replace(i,(Z,Se,Xe,lt,Ye,bn)=>lt==="\\"?(ne=!0,Z):lt==="?"?Se?Se+lt+(Ye?N.repeat(Ye.length):""):bn===0?X+(Ye?N.repeat(Ye.length):""):N.repeat(Xe.length):lt==="."?v.repeat(Xe.length):lt==="*"?Se?Se+lt+(Ye?ae:""):ae:Se?Z:`\\${Z}`);return ne===!0&&(we=f.unescape===!0?we.replace(/\\/g,""):we.replace(/\\+/g,Z=>Z.length%2==0?"\\\\":Z?"\\":"")),we===d&&f.contains===!0?(T.output=d,T):(T.output=e.wrapOutput(we,T,m),T)}for(;!F();){if(L=J(),L==="\0")continue;if(L==="\\"){const Z=B();if(Z==="/"&&f.bash!==!0||Z==="."||Z===";")continue;if(!Z){L+="\\",fe({type:"text",value:L});continue}const Se=/^\\+/.exec(ee());let Xe=0;if(Se&&Se[0].length>2&&(Xe=Se[0].length,T.index+=Xe,Xe%2!=0&&(L+="\\")),f.unescape===!0?L=J():L+=J(),T.brackets===0){fe({type:"text",value:L});continue}}if(T.brackets>0&&(L!=="]"||x.value==="["||x.value==="[^")){if(f.posix!==!1&&L===":"){const Z=x.value.slice(1);if(Z.includes("[")&&(x.posix=!0,Z.includes(":"))){const Se=x.value.lastIndexOf("["),Xe=x.value.slice(0,Se),lt=x.value.slice(Se+2),Ye=s[lt];if(Ye){x.value=Xe+Ye,T.backtrack=!0,J(),k.output||I.indexOf(x)!==1||(k.output=j);continue}}}(L==="["&&B()!==":"||L==="-"&&B()==="]")&&(L=`\\${L}`),L!=="]"||x.value!=="["&&x.value!=="[^"||(L=`\\${L}`),f.posix===!0&&L==="!"&&x.value==="["&&(L="^"),x.value+=L,se({value:L});continue}if(T.quotes===1&&L!=='"'){L=e.escapeRegex(L),x.value+=L,se({value:L});continue}if(L==='"'){T.quotes=T.quotes===1?0:1,f.keepQuotes===!0&&fe({type:"text",value:L});continue}if(L==="("){ye("parens"),fe({type:"paren",value:L});continue}if(L===")"){if(T.parens===0&&f.strictBrackets===!0)throw new SyntaxError(c("opening","("));const Z=de[de.length-1];if(Z&&T.parens===Z.parens+1){qe(de.pop());continue}fe({type:"paren",value:L,output:T.parens?")":"\\)"}),be("parens");continue}if(L==="["){if(f.nobracket!==!0&&ee().includes("]"))ye("brackets");else{if(f.nobracket!==!0&&f.strictBrackets===!0)throw new SyntaxError(c("closing","]"));L=`\\${L}`}fe({type:"bracket",value:L});continue}if(L==="]"){if(f.nobracket===!0||x&&x.type==="bracket"&&x.value.length===1){fe({type:"text",value:L,output:`\\${L}`});continue}if(T.brackets===0){if(f.strictBrackets===!0)throw new SyntaxError(c("opening","["));fe({type:"text",value:L,output:`\\${L}`});continue}be("brackets");const Z=x.value.slice(1);if(x.posix===!0||Z[0]!=="^"||Z.includes("/")||(L=`/${L}`),x.value+=L,se({value:L}),f.literalBrackets===!1||e.hasRegexChars(Z))continue;const Se=e.escapeRegex(x.value);if(T.output=T.output.slice(0,-x.value.length),f.literalBrackets===!0){T.output+=Se,x.value=Se;continue}x.value=`(${E}${Se}|${x.value})`,T.output+=x.value;continue}if(L==="{"&&f.nobrace!==!0){ye("braces");const Z={type:"brace",value:L,output:"(",outputIndex:T.output.length,tokensIndex:T.tokens.length};he.push(Z),fe(Z);continue}if(L==="}"){const Z=he[he.length-1];if(f.nobrace===!0||!Z){fe({type:"text",value:L,output:L});continue}let Se=")";if(Z.dots===!0){const Xe=I.slice(),lt=[];for(let Ye=Xe.length-1;Ye>=0&&(I.pop(),Xe[Ye].type!=="brace");Ye--)Xe[Ye].type!=="dots"&&lt.unshift(Xe[Ye].value);Se=l(lt,f),T.backtrack=!0}if(Z.comma!==!0&&Z.dots!==!0){const Xe=T.output.slice(0,Z.outputIndex),lt=T.tokens.slice(Z.tokensIndex);Z.value=Z.output="\\{",L=Se="\\}",T.output=Xe;for(const Ye of lt)T.output+=Ye.output||Ye.value}fe({type:"brace",value:L,output:Se}),be("braces"),he.pop();continue}if(L==="|"){de.length>0&&de[de.length-1].conditions++,fe({type:"text",value:L});continue}if(L===","){let Z=L;const Se=he[he.length-1];Se&&ce[ce.length-1]==="braces"&&(Se.comma=!0,Z="|"),fe({type:"comma",value:L,output:Z});continue}if(L==="/"){if(x.type==="dot"&&T.index===T.start+1){T.start=T.index+1,T.consumed="",T.output="",I.pop(),x=k;continue}fe({type:"slash",value:L,output:D});continue}if(L==="."){if(T.braces>0&&x.type==="dot"){x.value==="."&&(x.output=v);const Z=he[he.length-1];x.type="dots",x.output+=L,x.value+=L,Z.dots=!0;continue}if(T.braces+T.parens===0&&x.type!=="bos"&&x.type!=="slash"){fe({type:"text",value:L,output:v});continue}fe({type:"dot",value:L,output:v});continue}if(L==="?"){if(!(x&&x.value==="(")&&f.noextglob!==!0&&B()==="("&&B(2)!=="?"){Oe("qmark",L);continue}if(x&&x.type==="paren"){const Z=B();let Se=L;(x.value==="("&&!/[!=<:]/.test(Z)||Z==="<"&&!/<([!=]|\w+>)/.test(ee()))&&(Se=`\\${L}`),fe({type:"text",value:L,output:Se});continue}if(f.dot!==!0&&(x.type==="slash"||x.type==="bos")){fe({type:"qmark",value:L,output:C});continue}fe({type:"qmark",value:L,output:N});continue}if(L==="!"){if(f.noextglob!==!0&&B()==="("&&(B(2)!=="?"||!/[!=<:]/.test(B(3)))){Oe("negate",L);continue}if(f.nonegate!==!0&&T.index===0){ke();continue}}if(L==="+"){if(f.noextglob!==!0&&B()==="("&&B(2)!=="?"){Oe("plus",L);continue}if(x&&x.value==="("||f.regex===!1){fe({type:"plus",value:L,output:$});continue}if(x&&(x.type==="bracket"||x.type==="paren"||x.type==="brace")||T.parens>0){fe({type:"plus",value:L});continue}fe({type:"plus",value:$});continue}if(L==="@"){if(f.noextglob!==!0&&B()==="("&&B(2)!=="?"){fe({type:"at",extglob:!0,value:L,output:""});continue}fe({type:"text",value:L});continue}if(L!=="*"){L!=="$"&&L!=="^"||(L=`\\${L}`);const Z=r.exec(ee());Z&&(L+=Z[0],T.index+=Z[0].length),fe({type:"text",value:L});continue}if(x&&(x.type==="globstar"||x.star===!0)){x.type="star",x.star=!0,x.value+=L,x.output=ae,T.backtrack=!0,T.globstar=!0,ie(L);continue}let ne=ee();if(f.noextglob!==!0&&/^\([^?]/.test(ne)){Oe("star",L);continue}if(x.type==="star"){if(f.noglobstar===!0){ie(L);continue}const Z=x.prev,Se=Z.prev,Xe=Z.type==="slash"||Z.type==="bos",lt=Se&&(Se.type==="star"||Se.type==="globstar");if(f.bash===!0&&(!Xe||ne[0]&&ne[0]!=="/")){fe({type:"star",value:L,output:""});continue}const Ye=T.braces>0&&(Z.type==="comma"||Z.type==="brace"),bn=de.length&&(Z.type==="pipe"||Z.type==="paren");if(!Xe&&Z.type!=="paren"&&!Ye&&!bn){fe({type:"star",value:L,output:""});continue}for(;ne.slice(0,3)==="/**";){const on=d[T.index+4];if(on&&on!=="/")break;ne=ne.slice(3),ie("/**",3)}if(Z.type==="bos"&&F()){x.type="globstar",x.value+=L,x.output=q(f),T.output=x.output,T.globstar=!0,ie(L);continue}if(Z.type==="slash"&&Z.prev.type!=="bos"&&!lt&&F()){T.output=T.output.slice(0,-(Z.output+x.output).length),Z.output=`(?:${Z.output}`,x.type="globstar",x.output=q(f)+(f.strictSlashes?")":"|$)"),x.value+=L,T.globstar=!0,T.output+=Z.output+x.output,ie(L);continue}if(Z.type==="slash"&&Z.prev.type!=="bos"&&ne[0]==="/"){const on=ne[1]!==void 0?"|$":"";T.output=T.output.slice(0,-(Z.output+x.output).length),Z.output=`(?:${Z.output}`,x.type="globstar",x.output=`${q(f)}${D}|${D}${on})`,x.value+=L,T.output+=Z.output+x.output,T.globstar=!0,ie(L+J()),fe({type:"slash",value:"/",output:""});continue}if(Z.type==="bos"&&ne[0]==="/"){x.type="globstar",x.value+=L,x.output=`(?:^|${D}|${q(f)}${D})`,T.output=x.output,T.globstar=!0,ie(L+J()),fe({type:"slash",value:"/",output:""});continue}T.output=T.output.slice(0,-x.output.length),x.type="globstar",x.output=q(f),x.value+=L,T.output+=x.output,T.globstar=!0,ie(L);continue}const we={type:"star",value:L,output:ae};f.bash!==!0?!x||x.type!=="bracket"&&x.type!=="paren"||f.regex!==!0?(T.index!==T.start&&x.type!=="slash"&&x.type!=="dot"||(x.type==="dot"?(T.output+=O,x.output+=O):f.dot===!0?(T.output+=_,x.output+=_):(T.output+=K,x.output+=K),B()!=="*"&&(T.output+=j,x.output+=j)),fe(we)):(we.output=L,fe(we)):(we.output=".*?",x.type!=="bos"&&x.type!=="slash"||(we.output=K+we.output),fe(we))}for(;T.brackets>0;){if(f.strictBrackets===!0)throw new SyntaxError(c("closing","]"));T.output=e.escapeLast(T.output,"["),be("brackets")}for(;T.parens>0;){if(f.strictBrackets===!0)throw new SyntaxError(c("closing",")"));T.output=e.escapeLast(T.output,"("),be("parens")}for(;T.braces>0;){if(f.strictBrackets===!0)throw new SyntaxError(c("closing","}"));T.output=e.escapeLast(T.output,"{"),be("braces")}if(f.strictSlashes===!0||x.type!=="star"&&x.type!=="bracket"||fe({type:"maybe_slash",value:"",output:`${D}?`}),T.backtrack===!0){T.output="";for(const ne of T.tokens)T.output+=ne.output!=null?ne.output:ne.value,ne.suffix&&(T.output+=ne.suffix)}return T};return u.fastpaths=(d,m)=>{const f={...m},g=typeof f.maxLength=="number"?Math.min(n,f.maxLength):n,w=d.length;if(w>g)throw new SyntaxError(`Input length: ${w}, exceeds maximum allowed length: ${g}`);d=a[d]||d;const{DOT_LITERAL:k,SLASH_LITERAL:I,ONE_CHAR:E,DOTS_SLASH:b,NO_DOT:A,NO_DOTS:v,NO_DOTS_SLASH:$,STAR:D,START_ANCHOR:j}=t.globChars(f.windows),V=f.dot?v:A,U=f.dot?$:A,O=f.capture?"":"?:";let _=f.bash===!0?".*?":D;f.capture&&(_=`(${_})`);const N=q=>q.noglobstar===!0?_:`(${O}(?:(?!${j}${q.dot?b:k}).)*?)`,C=q=>{switch(q){case"*":return`${V}${E}${_}`;case".*":return`${k}${E}${_}`;case"*.*":return`${V}${_}${k}${E}${_}`;case"*/*":return`${V}${_}${I}${E}${U}${_}`;case"**":return V+N(f);case"**/*":return`(?:${V}${N(f)}${I})?${U}${E}${_}`;case"**/*.*":return`(?:${V}${N(f)}${I})?${U}${_}${k}${E}${_}`;case"**/.*":return`(?:${V}${N(f)}${I})?${k}${E}${_}`;default:{const K=/^(.*?)\.(\w+)$/.exec(q);if(!K)return;const X=C(K[1]);return X?X+k+K[2]:void 0}}},R=e.removePrefix(d,{negated:!1,prefix:""});let M=C(R);return M&&f.strictSlashes!==!0&&(M+=`${I}?`),M},Ad=u}function Og(){if(Id)return Sd;Id=1;const t=Rg(),e=Dg(),n=Fi(),s=Mi(),r=(i,a,l=!1)=>{if(Array.isArray(i)){const I=i.map(b=>r(b,a,l));return b=>{for(const A of I){const v=A(b);if(v)return v}return!1}}const c=(u=i)&&typeof u=="object"&&!Array.isArray(u)&&i.tokens&&i.input;var u;if(i===""||typeof i!="string"&&!c)throw new TypeError("Expected pattern to be a non-empty string");const d=a||{},m=d.windows,f=c?r.compileRe(i,a):r.makeRe(i,a,!1,!0),g=f.state;delete f.state;let w=()=>!1;if(d.ignore){const I={...a,ignore:null,onMatch:null,onResult:null};w=r(d.ignore,I,l)}const k=(I,E=!1)=>{const{isMatch:b,match:A,output:v}=r.test(I,f,a,{glob:i,posix:m}),$={glob:i,state:g,regex:f,posix:m,input:I,output:v,match:A,isMatch:b};return typeof d.onResult=="function"&&d.onResult($),b===!1?($.isMatch=!1,!!E&&$):w(I)?(typeof d.onIgnore=="function"&&d.onIgnore($),$.isMatch=!1,!!E&&$):(typeof d.onMatch=="function"&&d.onMatch($),!E||$)};return l&&(k.state=g),k};return r.test=(i,a,l,{glob:c,posix:u}={})=>{if(typeof i!="string")throw new TypeError("Expected input to be a string");if(i==="")return{isMatch:!1,output:""};const d=l||{},m=d.format||(u?n.toPosixSlashes:null);let f=i===c,g=f&&m?m(i):i;return f===!1&&(g=m?m(i):i,f=g===c),f!==!1&&d.capture!==!0||(f=d.matchBase===!0||d.basename===!0?r.matchBase(i,a,l,u):a.exec(g)),{isMatch:!!f,match:f,output:g}},r.matchBase=(i,a,l)=>(a instanceof RegExp?a:r.makeRe(a,l)).test(n.basename(i)),r.isMatch=(i,a,l)=>r(a,l)(i),r.parse=(i,a)=>Array.isArray(i)?i.map(l=>r.parse(l,a)):e(i,{...a,fastpaths:!1}),r.scan=(i,a)=>t(i,a),r.compileRe=(i,a,l=!1,c=!1)=>{if(l===!0)return i.output;const u=a||{},d=u.contains?"":"^",m=u.contains?"":"$";let f=`${d}(?:${i.output})${m}`;i&&i.negated===!0&&(f=`^(?!${f}).*$`);const g=r.toRegex(f,a);return c===!0&&(g.state=i),g},r.makeRe=(i,a={},l=!1,c=!1)=>{if(!i||typeof i!="string")throw new TypeError("Expected a non-empty string");let u={negated:!1,fastpaths:!0};return a.fastpaths===!1||i[0]!=="."&&i[0]!=="*"||(u.output=e.fastpaths(i,a)),u.output||(u=e(i,a)),r.compileRe(u,a,l,c)},r.toRegex=(i,a)=>{try{const l=a||{};return new RegExp(i,l.flags||(l.nocase?"i":""))}catch(l){if(a&&a.debug===!0)throw l;return/$^/}},r.constants=s,Sd=r}function Lg(){if(_d)return vd;_d=1;const t=Og(),e=Fi();function n(s,r,i=!1){return!r||r.windows!==null&&r.windows!==void 0||(r={...r,windows:e.isWindows()}),t(s,r,i)}return Object.assign(n,t),vd=n}var Mg=Tg(Lg());const Ns={ArrayPattern(t,e){for(const n of e.elements)n&&Ns[n.type](t,n)},AssignmentPattern(t,e){Ns[e.left.type](t,e.left)},Identifier(t,e){t.push(e.name)},MemberExpression(){},ObjectPattern(t,e){for(const n of e.properties)n.type==="RestElement"?Ns.RestElement(t,n):Ns[n.value.type](t,n.value)},RestElement(t,e){Ns[e.argument.type](t,e.argument)}},Fg=function(t){const e=[];return Ns[t.type](e,t),e};let He;new Set("break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" ")).add("");const gn=new Array(128).fill(void 0);function Zn(t){return gn[t]}gn.push(void 0,null,!0,!1);let mr=gn.length;function es(t){mr===gn.length&&gn.push(gn.length+1);const e=mr;return mr=gn[e],gn[e]=t,e}const $d=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&$d.decode();let gr=null;function yr(){return gr!==null&&gr.byteLength!==0||(gr=new Uint8Array(He.memory.buffer)),gr}function br(t,e){return t>>>=0,$d.decode(yr().subarray(t,t+e))}let Bi=0;const ji=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},Bg=typeof ji.encodeInto=="function"?function(t,e){return ji.encodeInto(t,e)}:function(t,e){const n=ji.encode(t);return e.set(n),{read:t.length,written:n.length}};function Nd(t,e,n){if(n===void 0){const l=ji.encode(t),c=e(l.length,1)>>>0;return yr().subarray(c,c+l.length).set(l),Bi=l.length,c}let s=t.length,r=e(s,1)>>>0;const i=yr();let a=0;for(;a<s;a++){const l=t.charCodeAt(a);if(l>127)break;i[r+a]=l}if(a!==s){a!==0&&(t=t.slice(a)),r=n(r,s,s=a+3*t.length,1)>>>0;const l=yr().subarray(r+a,r+s);a+=Bg(t,l).written,r=n(r,s,a,1)>>>0}return Bi=a,r}let ts=null;function Qt(){return(ts===null||ts.buffer.detached===!0||ts.buffer.detached===void 0&&ts.buffer!==He.memory.buffer)&&(ts=new DataView(He.memory.buffer)),ts}function jg(t){const e=Zn(t);return function(n){n<132||(gn[n]=mr,mr=n)}(t),e}function Cd(t,e,n){try{const c=He.__wbindgen_add_to_stack_pointer(-16),u=Nd(t,He.__wbindgen_export_1,He.__wbindgen_export_2),d=Bi;He.parse(c,u,d,e,n);var s=Qt().getInt32(c+0,!0),r=Qt().getInt32(c+4,!0),i=(a=s,l=r,a>>>=0,yr().subarray(a/1,a/1+l)).slice();return He.__wbindgen_export_0(s,1*r,1),i}finally{He.__wbindgen_add_to_stack_pointer(16)}var a,l}async function Td(t){if(He!==void 0)return He;t!==void 0&&(Object.getPrototypeOf(t)===Object.prototype?{module_or_path:t}=t:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),t===void 0&&(t=new URL("/assets/bindings_wasm_bg-CH5ekNIA.wasm",self.location.href));const e=function(){const r={wbg:{}};return r.wbg.__wbg_buffer_609cc3eee51ed158=function(i){return es(Zn(i).buffer)},r.wbg.__wbg_error_7534b8e9a36f1ab4=function(i,a){let l,c;try{l=i,c=a,console.error(br(i,a))}finally{He.__wbindgen_export_0(l,c,1)}},r.wbg.__wbg_length_a446193dc22c12f8=function(i){return Zn(i).length},r.wbg.__wbg_new_8a6f238a6ece86ea=function(){return es(new Error)},r.wbg.__wbg_new_a12002a7f91c75be=function(i){return es(new Uint8Array(Zn(i)))},r.wbg.__wbg_set_65595bdd868b3009=function(i,a,l){Zn(i).set(Zn(a),l>>>0)},r.wbg.__wbg_stack_0ed75d68575b0f3c=function(i,a){const l=Nd(Zn(a).stack,He.__wbindgen_export_1,He.__wbindgen_export_2),c=Bi;Qt().setInt32(i+4,c,!0),Qt().setInt32(i+0,l,!0)},r.wbg.__wbindgen_memory=function(){return es(He.memory)},r.wbg.__wbindgen_object_drop_ref=function(i){jg(i)},r.wbg.__wbindgen_throw=function(i,a){throw new Error(br(i,a))},r}();(typeof t=="string"||typeof Request=="function"&&t instanceof Request||typeof URL=="function"&&t instanceof URL)&&(t=fetch(t));const{instance:n,module:s}=await async function(r,i){if(typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,i)}catch(l){if(r.headers.get("Content-Type")=="application/wasm")throw l;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",l)}const a=await r.arrayBuffer();return await WebAssembly.instantiate(a,i)}{const a=await WebAssembly.instantiate(r,i);return a instanceof WebAssembly.Instance?{instance:a,module:r}:a}}(await t,e);return function(r,i){return He=r.exports,Td.__wbindgen_wasm_module=i,ts=null,gr=null,He}(n,s)}const zg=[function(t,e){return{type:"PanicError",start:e[t],end:e[t+1],message:e.convertString(e[t+2])}},function(t,e){return{type:"ParseError",start:e[t],end:e[t+1],message:e.convertString(e[t+2])}},function(t,e){return{type:"ArrayExpression",start:e[t],end:e[t+1],elements:Ve(e[t+2],e)}},function(t,e){return{type:"ArrayPattern",start:e[t],end:e[t+1],elements:Ve(e[t+2],e)}},function(t,e){const n=e[t+2],s=Rt(e[t+3],e);return{type:"ArrowFunctionExpression",start:e[t],end:e[t+1],async:!(1&~n),expression:!(2&~n),generator:!(4&~n),...s.length>0?{[ws]:s}:{},params:Ve(e[t+4],e),body:Y(e[t+5],e),id:null}},function(t,e){return{type:"AssignmentExpression",start:e[t],end:e[t+1],operator:yt[e[t+2]],left:Y(e[t+3],e),right:Y(e[t+4],e)}},function(t,e){return{type:"AssignmentPattern",start:e[t],end:e[t+1],left:Y(e[t+2],e),right:Y(e[t+3],e)}},function(t,e){return{type:"AwaitExpression",start:e[t],end:e[t+1],argument:Y(e[t+2],e)}},function(t,e){return{type:"BinaryExpression",start:e[t],end:e[t+1],operator:yt[e[t+2]],left:Y(e[t+3],e),right:Y(e[t+4],e)}},function(t,e){return{type:"BlockStatement",start:e[t],end:e[t+1],body:Ve(e[t+2],e)}},function(t,e){const n=e[t+2];return{type:"BreakStatement",start:e[t],end:e[t+1],label:n===0?null:Y(n,e)}},function(t,e){const n=e[t+2],s=Rt(e[t+3],e);return{type:"CallExpression",start:e[t],end:e[t+1],optional:!(1&~n),...s.length>0?{[ws]:s}:{},callee:Y(e[t+4],e),arguments:Ve(e[t+5],e)}},function(t,e){const n=e[t+2];return{type:"CatchClause",start:e[t],end:e[t+1],param:n===0?null:Y(n,e),body:Y(e[t+3],e)}},function(t,e){return{type:"ChainExpression",start:e[t],end:e[t+1],expression:Y(e[t+2],e)}},function(t,e){return{type:"ClassBody",start:e[t],end:e[t+1],body:Ve(e[t+2],e)}},function(t,e){const n=e[t+3],s=e[t+4];return{type:"ClassDeclaration",start:e[t],end:e[t+1],decorators:Ve(e[t+2],e),id:n===0?null:Y(n,e),superClass:s===0?null:Y(s,e),body:Y(e[t+5],e)}},function(t,e){const n=e[t+3],s=e[t+4];return{type:"ClassExpression",start:e[t],end:e[t+1],decorators:Ve(e[t+2],e),id:n===0?null:Y(n,e),superClass:s===0?null:Y(s,e),body:Y(e[t+5],e)}},function(t,e){return{type:"ConditionalExpression",start:e[t],end:e[t+1],test:Y(e[t+2],e),consequent:Y(e[t+3],e),alternate:Y(e[t+4],e)}},function(t,e){const n=e[t+2];return{type:"ContinueStatement",start:e[t],end:e[t+1],label:n===0?null:Y(n,e)}},function(t,e){return{type:"DebuggerStatement",start:e[t],end:e[t+1]}},function(t,e){return{type:"Decorator",start:e[t],end:e[t+1],expression:Y(e[t+2],e)}},function(t,e){return{type:"ExpressionStatement",start:e[t],end:e[t+1],directive:e.convertString(e[t+2]),expression:Y(e[t+3],e)}},function(t,e){return{type:"DoWhileStatement",start:e[t],end:e[t+1],body:Y(e[t+2],e),test:Y(e[t+3],e)}},function(t,e){return{type:"EmptyStatement",start:e[t],end:e[t+1]}},function(t,e){const n=e[t+2];return{type:"ExportAllDeclaration",start:e[t],end:e[t+1],exported:n===0?null:Y(n,e),source:Y(e[t+3],e),attributes:Ve(e[t+4],e)}},function(t,e){return{type:"ExportDefaultDeclaration",start:e[t],end:e[t+1],declaration:Y(e[t+2],e)}},function(t,e){const n=e[t+3],s=e[t+5];return{type:"ExportNamedDeclaration",start:e[t],end:e[t+1],specifiers:Ve(e[t+2],e),source:n===0?null:Y(n,e),attributes:Ve(e[t+4],e),declaration:s===0?null:Y(s,e)}},function(t,e){const n=Y(e[t+2],e),s=e[t+3];return{type:"ExportSpecifier",start:e[t],end:e[t+1],local:n,exported:s===0?{...n}:Y(s,e)}},function(t,e){return{type:"ExpressionStatement",start:e[t],end:e[t+1],expression:Y(e[t+2],e)}},function(t,e){return{type:"ForInStatement",start:e[t],end:e[t+1],left:Y(e[t+2],e),right:Y(e[t+3],e),body:Y(e[t+4],e)}},function(t,e){const n=e[t+2];return{type:"ForOfStatement",start:e[t],end:e[t+1],await:!(1&~n),left:Y(e[t+3],e),right:Y(e[t+4],e),body:Y(e[t+5],e)}},function(t,e){const n=e[t+2],s=e[t+3],r=e[t+4];return{type:"ForStatement",start:e[t],end:e[t+1],init:n===0?null:Y(n,e),test:s===0?null:Y(s,e),update:r===0?null:Y(r,e),body:Y(e[t+5],e)}},function(t,e){const n=e[t+2],s=Rt(e[t+3],e),r=e[t+4];return{type:"FunctionDeclaration",start:e[t],end:e[t+1],async:!(1&~n),generator:!(2&~n),...s.length>0?{[ws]:s}:{},id:r===0?null:Y(r,e),params:Ve(e[t+5],e),body:Y(e[t+6],e),expression:!1}},function(t,e){const n=e[t+2],s=Rt(e[t+3],e),r=e[t+4];return{type:"FunctionExpression",start:e[t],end:e[t+1],async:!(1&~n),generator:!(2&~n),...s.length>0?{[ws]:s}:{},id:r===0?null:Y(r,e),params:Ve(e[t+5],e),body:Y(e[t+6],e),expression:!1}},function(t,e){return{type:"Identifier",start:e[t],end:e[t+1],name:e.convertString(e[t+2])}},function(t,e){const n=e[t+4];return{type:"IfStatement",start:e[t],end:e[t+1],test:Y(e[t+2],e),consequent:Y(e[t+3],e),alternate:n===0?null:Y(n,e)}},function(t,e){return{type:"ImportAttribute",start:e[t],end:e[t+1],key:Y(e[t+2],e),value:Y(e[t+3],e)}},function(t,e){return{type:"ImportDeclaration",start:e[t],end:e[t+1],specifiers:Ve(e[t+2],e),source:Y(e[t+3],e),attributes:Ve(e[t+4],e)}},function(t,e){return{type:"ImportDefaultSpecifier",start:e[t],end:e[t+1],local:Y(e[t+2],e)}},function(t,e){const n=e[t+3];return{type:"ImportExpression",start:e[t],end:e[t+1],source:Y(e[t+2],e),options:n===0?null:Y(n,e)}},function(t,e){return{type:"ImportNamespaceSpecifier",start:e[t],end:e[t+1],local:Y(e[t+2],e)}},function(t,e){const n=e[t+2],s=Y(e[t+3],e);return{type:"ImportSpecifier",start:e[t],end:e[t+1],imported:n===0?{...s}:Y(n,e),local:s}},function(t,e){const n=e[t+3];return{type:"JSXAttribute",start:e[t],end:e[t+1],name:Y(e[t+2],e),value:n===0?null:Y(n,e)}},function(t,e){return{type:"JSXClosingElement",start:e[t],end:e[t+1],name:Y(e[t+2],e)}},function(t,e){return{type:"JSXClosingFragment",start:e[t],end:e[t+1]}},function(t,e){const n=e[t+4];return{type:"JSXElement",start:e[t],end:e[t+1],openingElement:Y(e[t+2],e),children:Ve(e[t+3],e),closingElement:n===0?null:Y(n,e)}},function(t,e){return{type:"JSXEmptyExpression",start:e[t],end:e[t+1]}},function(t,e){return{type:"JSXExpressionContainer",start:e[t],end:e[t+1],expression:Y(e[t+2],e)}},function(t,e){return{type:"JSXFragment",start:e[t],end:e[t+1],openingFragment:Y(e[t+2],e),children:Ve(e[t+3],e),closingFragment:Y(e[t+4],e)}},function(t,e){return{type:"JSXIdentifier",start:e[t],end:e[t+1],name:e.convertString(e[t+2])}},function(t,e){return{type:"JSXMemberExpression",start:e[t],end:e[t+1],object:Y(e[t+2],e),property:Y(e[t+3],e)}},function(t,e){return{type:"JSXNamespacedName",start:e[t],end:e[t+1],namespace:Y(e[t+2],e),name:Y(e[t+3],e)}},function(t,e){const n=e[t+2];return{type:"JSXOpeningElement",start:e[t],end:e[t+1],selfClosing:!(1&~n),name:Y(e[t+3],e),attributes:Ve(e[t+4],e)}},function(t,e){return{type:"JSXOpeningFragment",start:e[t],end:e[t+1],attributes:[],selfClosing:!1}},function(t,e){return{type:"JSXSpreadAttribute",start:e[t],end:e[t+1],argument:Y(e[t+2],e)}},function(t,e){return{type:"JSXSpreadChild",start:e[t],end:e[t+1],expression:Y(e[t+2],e)}},function(t,e){return{type:"JSXText",start:e[t],end:e[t+1],value:e.convertString(e[t+2]),raw:e.convertString(e[t+3])}},function(t,e){return{type:"LabeledStatement",start:e[t],end:e[t+1],label:Y(e[t+2],e),body:Y(e[t+3],e)}},function(t,e){const n=e.convertString(e[t+2]);return{type:"Literal",start:e[t],end:e[t+1],bigint:n,raw:e.convertString(e[t+3]),value:BigInt(n)}},function(t,e){const n=!(1&~e[t+2]);return{type:"Literal",start:e[t],end:e[t+1],value:n,raw:n?"true":"false"}},function(t,e){return{type:"Literal",start:e[t],end:e[t+1],raw:"null",value:null}},function(t,e){const n=e[t+2];return{type:"Literal",start:e[t],end:e[t+1],raw:n===0?void 0:e.convertString(n),value:new DataView(e.buffer).getFloat64(t+3<<2,!0)}},function(t,e){const n=e.convertString(e[t+2]),s=e.convertString(e[t+3]);return{type:"Literal",start:e[t],end:e[t+1],raw:`/${s}/${n}`,regex:{flags:n,pattern:s},value:new RegExp(s,n)}},function(t,e){const n=e[t+3];return{type:"Literal",start:e[t],end:e[t+1],value:e.convertString(e[t+2]),raw:n===0?void 0:e.convertString(n)}},function(t,e){return{type:"LogicalExpression",start:e[t],end:e[t+1],operator:yt[e[t+2]],left:Y(e[t+3],e),right:Y(e[t+4],e)}},function(t,e){const n=e[t+2];return{type:"MemberExpression",start:e[t],end:e[t+1],computed:!(1&~n),optional:!(2&~n),object:Y(e[t+3],e),property:Y(e[t+4],e)}},function(t,e){return{type:"MetaProperty",start:e[t],end:e[t+1],meta:Y(e[t+2],e),property:Y(e[t+3],e)}},function(t,e){const n=e[t+2];return{type:"MethodDefinition",start:e[t],end:e[t+1],static:!(1&~n),computed:!(2&~n),decorators:Ve(e[t+3],e),key:Y(e[t+4],e),value:Y(e[t+5],e),kind:yt[e[t+6]]}},function(t,e){const n=Rt(e[t+2],e);return{type:"NewExpression",start:e[t],end:e[t+1],...n.length>0?{[ws]:n}:{},callee:Y(e[t+3],e),arguments:Ve(e[t+4],e)}},function(t,e){return{type:"ObjectExpression",start:e[t],end:e[t+1],properties:Ve(e[t+2],e)}},function(t,e){return{type:"ObjectPattern",start:e[t],end:e[t+1],properties:Ve(e[t+2],e)}},function(t,e){return{type:"PrivateIdentifier",start:e[t],end:e[t+1],name:e.convertString(e[t+2])}},function(t,e){const n=Rt(e[t+3],e);return{type:"Program",start:e[t],end:e[t+1],body:Ve(e[t+2],e),...n.length>0?{[Ph]:n}:{},sourceType:"module"}},function(t,e){const n=e[t+2],s=e[t+3],r=Y(e[t+4],e);return{type:"Property",start:e[t],end:e[t+1],method:!(1&~n),shorthand:!(2&~n),computed:!(4&~n),key:s===0?{...r}:Y(s,e),value:r,kind:yt[e[t+5]]}},function(t,e){const n=e[t+2],s=e[t+5];return{type:"PropertyDefinition",start:e[t],end:e[t+1],static:!(1&~n),computed:!(2&~n),decorators:Ve(e[t+3],e),key:Y(e[t+4],e),value:s===0?null:Y(s,e)}},function(t,e){return{type:"RestElement",start:e[t],end:e[t+1],argument:Y(e[t+2],e)}},function(t,e){const n=e[t+2];return{type:"ReturnStatement",start:e[t],end:e[t+1],argument:n===0?null:Y(n,e)}},function(t,e){return{type:"SequenceExpression",start:e[t],end:e[t+1],expressions:Ve(e[t+2],e)}},function(t,e){return{type:"SpreadElement",start:e[t],end:e[t+1],argument:Y(e[t+2],e)}},function(t,e){return{type:"StaticBlock",start:e[t],end:e[t+1],body:Ve(e[t+2],e)}},function(t,e){return{type:"Super",start:e[t],end:e[t+1]}},function(t,e){const n=e[t+2];return{type:"SwitchCase",start:e[t],end:e[t+1],test:n===0?null:Y(n,e),consequent:Ve(e[t+3],e)}},function(t,e){return{type:"SwitchStatement",start:e[t],end:e[t+1],discriminant:Y(e[t+2],e),cases:Ve(e[t+3],e)}},function(t,e){return{type:"TaggedTemplateExpression",start:e[t],end:e[t+1],tag:Y(e[t+2],e),quasi:Y(e[t+3],e)}},function(t,e){const n=e[t+2],s=e[t+3],r=s===0?void 0:e.convertString(s),i=e.convertString(e[t+4]);return{type:"TemplateElement",start:e[t],end:e[t+1],tail:!(1&~n),value:{cooked:r,raw:i}}},function(t,e){return{type:"TemplateLiteral",start:e[t],end:e[t+1],quasis:Ve(e[t+2],e),expressions:Ve(e[t+3],e)}},function(t,e){return{type:"ThisExpression",start:e[t],end:e[t+1]}},function(t,e){return{type:"ThrowStatement",start:e[t],end:e[t+1],argument:Y(e[t+2],e)}},function(t,e){const n=e[t+3],s=e[t+4];return{type:"TryStatement",start:e[t],end:e[t+1],block:Y(e[t+2],e),handler:n===0?null:Y(n,e),finalizer:s===0?null:Y(s,e)}},function(t,e){return{type:"UnaryExpression",start:e[t],end:e[t+1],operator:yt[e[t+2]],argument:Y(e[t+3],e),prefix:!0}},function(t,e){const n=e[t+2];return{type:"UpdateExpression",start:e[t],end:e[t+1],prefix:!(1&~n),operator:yt[e[t+3]],argument:Y(e[t+4],e)}},function(t,e){return{type:"VariableDeclaration",start:e[t],end:e[t+1],kind:yt[e[t+2]],declarations:Ve(e[t+3],e)}},function(t,e){const n=e[t+3];return{type:"VariableDeclarator",start:e[t],end:e[t+1],id:Y(e[t+2],e),init:n===0?null:Y(n,e)}},function(t,e){return{type:"WhileStatement",start:e[t],end:e[t+1],test:Y(e[t+2],e),body:Y(e[t+3],e)}},function(t,e){const n=e[t+2],s=e[t+3];return{type:"YieldExpression",start:e[t],end:e[t+1],delegate:!(1&~n),argument:s===0?null:Y(s,e)}}];function Y(t,e){const n=e[t],s=zg[n];if(!s)throw console.trace(),new Error(`Unknown node type: ${n}`);return s(t+1,e)}function Ve(t,e){if(t===0)return Qe;const n=e[t++],s=new Array(n);for(let r=0;r<n;r++){const i=e[t++];s[r]=i?Y(i,e):null}return s}function Rd(t){const e=new Uint32Array(t.buffer);let n;if(typeof Buffer<"u"&&t instanceof Buffer)n=s=>{const r=e[s++],i=s<<2;return t.toString("utf8",i,i+r)};else{const s=new TextDecoder;n=r=>{const i=e[r++],a=r<<2;return s.decode(t.subarray(a,a+i))}}return Object.assign(e,{convertString:n})}class zi extends te{addExportedVariables(e,n){for(const s of this.elements)s?.addExportedVariables(e,n)}declare(e,n,s){const r=[],i=Vi(n);for(const a of this.elements)a!==null&&r.push(...a.declare(e,i,s));return r}deoptimizeAssignment(e,n){const s=Vi(e);for(const r of this.elements)r?.deoptimizeAssignment(s,n)}deoptimizePath(){for(const e of this.elements)e?.deoptimizePath(ue)}hasEffectsWhenDestructuring(e,n,s){const r=Vi(n);for(const i of this.elements)if(i?.hasEffectsWhenDestructuring(e,r,s))return!0;return!1}hasEffectsOnInteractionAtPath(e,n,s){for(const r of this.elements)if(r?.hasEffectsOnInteractionAtPath(ue,n,s))return!0;return!1}includeDestructuredIfNecessary(e,n,s){let r=!1;const i=Vi(n);for(const a of this.elements)a&&(a.included||=r,r=a.includeDestructuredIfNecessary(e,i,s)||r);if(r)for(const a of this.elements)a&&!a.included&&(a.included=!0,a.includeDestructuredIfNecessary(e,i,s));return this.included||=r}markDeclarationReached(){for(const e of this.elements)e?.markDeclarationReached()}}zi.prototype.includeNode=dt;const Vi=t=>t.at(-1)===_e?t:[...t,ms];class xr extends ur{constructor(){super(...arguments),this.objectEntity=null}get expression(){return Le(this.flags,8388608)}set expression(e){this.flags=Me(this.flags,8388608,e)}createScope(e){this.scope=new Yh(e,!1)}hasEffects(){return!1}hasEffectsOnInteractionAtPath(e,n,s){if(this.annotationNoSideEffects&&e.length===0&&n.type===2)return!1;if(super.hasEffectsOnInteractionAtPath(e,n,s))return!0;if(n.type===2){const{ignore:r,brokenFlow:i}=s;if(s.ignore={breaks:!1,continues:!1,labels:new Set,returnYield:!0,this:!1},this.body.hasEffects(s))return!0;s.ignore=r,s.brokenFlow=i}return!1}onlyFunctionCallUsed(){return this.parent.type===Ys&&this.parent.callee===this||super.onlyFunctionCallUsed()}include(e,n){super.include(e,n);for(const s of this.params)s instanceof Fe||s.include(e,n)}includeNode(e){this.included=!0,this.body.includePath(le,e);for(const n of this.params)n instanceof Fe||n.includePath(le,e)}getObjectEntity(){return this.objectEntity!==null?this.objectEntity:this.objectEntity=new $t([],Sn)}}class vn extends te{addExportedVariables(e,n){for(const s of this.properties)s.type===Ku?s.value.addExportedVariables(e,n):s.argument.addExportedVariables(e,n)}declare(e,n,s){const r=[];for(const i of this.properties)r.push(...i.declare(e,n,s));return r}deoptimizeAssignment(e,n){for(const s of this.properties)s.deoptimizeAssignment(e,n)}deoptimizePath(e){if(e.length===0)for(const n of this.properties)n.deoptimizePath(e)}hasEffectsOnInteractionAtPath(e,n,s){for(const r of this.properties)if(r.hasEffectsOnInteractionAtPath(ue,n,s))return!0;return!1}hasEffectsWhenDestructuring(e,n,s){for(const r of this.properties)if(r.hasEffectsWhenDestructuring(e,n,s))return!0;return!1}includeDestructuredIfNecessary(e,n,s){if(!this.properties.length)return!1;const r=this.properties.at(-1),i=r.includeDestructuredIfNecessary(e,n,s),a=r.type==="RestElement";let l=!!a&&i;for(const c of this.properties.slice(0,-1))a&&i&&c.includeNode(e),l=c.includeDestructuredIfNecessary(e,n,s)||l;return this.included||=l}markDeclarationReached(){for(const e of this.properties)e.markDeclarationReached()}render(e,n){if(this.properties.length>0){const s=ti(this.properties,e,this.start+1,this.end-1);let r=null;for(const{node:i,separator:a,start:l,end:c}of s)i.included?(r=a,i.render(e,n)):fs(i,e,l,c);r&&e.remove(r,this.end-1)}}}vn.prototype.includeNode=ze,vn.prototype.applyDeoptimizations=Te;class Dd extends te{constructor(){super(...arguments),this.isConstReassignment=!1}hasEffects(e){const{deoptimized:n,isConstReassignment:s,left:r,operator:i,right:a}=this;return n||this.applyDeoptimizations(),s||a.hasEffects(e)||r.hasEffectsAsAssignmentTarget(e,i!=="=")||this.left.hasEffectsWhenDestructuring?.(e,ue,a)}hasEffectsOnInteractionAtPath(e,n,s){return this.right.hasEffectsOnInteractionAtPath(e,n,s)}include(e,n){const{deoptimized:s,isConstReassignment:r,left:i,right:a,operator:l}=this;s||this.applyDeoptimizations(),this.included||this.includeNode(e);const c=Mn();(n||r||l!=="="||i.included||i.hasEffectsAsAssignmentTarget(c,!1)||i.hasEffectsWhenDestructuring?.(c,ue,a))&&i.includeAsAssignmentTarget(e,n,l!=="="),a.include(e,n)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.right.includePath(le,e)}initialise(){super.initialise(),this.left instanceof Fe&&this.scope.variables.get(this.left.name)?.kind==="const"&&(this.isConstReassignment=!0,this.scope.context.log(Ee,{code:"CONST_REASSIGN",message:"Cannot reassign a variable declared with `const`"},this.left.start)),this.left.setAssignedValue(this.right)}render(e,n,{preventASI:s,renderedParentType:r,renderedSurroundingElement:i}=pt){const{left:a,right:l,start:c,end:u,parent:d}=this;if(a.included)a.render(e,n),l.render(e,n);else{const m=kn(e.original,ht(e.original,"=",a.end)+1);e.remove(c,m),s&&ni(e,m,l.start),l.render(e,n,{renderedParentType:r||d.type,renderedSurroundingElement:i||d.type})}if(n.format==="system")if(a instanceof Fe){const m=a.variable,f=n.exportNamesByVariable.get(m);if(f)return void(f.length===1?Zo(m,c,u,e,n):Vu(m,c,u,d.type!==Wt,e,n))}else{const m=[];if(a.addExportedVariables(m,n.exportNamesByVariable),m.length>0)return void function(f,g,w,k,I,E){const{_:b,getDirectReturnIifeLeft:A}=E.snippets;I.prependRight(g,A(["v"],`${On(f,E)},${b}v`,{needsArrowReturnParens:!0,needsWrappedFunction:k})),I.appendLeft(w,")")}(m,c,u,i===Wt,e,n)}a.included&&a instanceof vn&&(i===Wt||i===ra)&&(e.appendRight(c,"("),e.prependLeft(u,")"))}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizeAssignment(ue,this.right),this.scope.context.requestTreeshakingPass()}}class Od extends te{addExportedVariables(e,n){this.left.addExportedVariables(e,n)}declare(e,n,s){return this.left.declare(e,n,s)}deoptimizeAssignment(e,n){this.left.deoptimizeAssignment(e,n)}deoptimizePath(e){e.length===0&&this.left.deoptimizePath(e)}hasEffectsOnInteractionAtPath(e,n,s){return e.length>0||this.left.hasEffectsOnInteractionAtPath(ue,n,s)}hasEffectsWhenDestructuring(e,n,s){return this.left.hasEffectsWhenDestructuring(e,n,s)}includeDestructuredIfNecessary(e,n,s){let r=this.left.includeDestructuredIfNecessary(e,n,s)||this.included;return(r||=this.right.shouldBeIncluded(e))&&(this.right.include(e,!1),this.left.included||(this.left.included=!0,this.left.includeDestructuredIfNecessary(e,n,s))),this.included=r}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.right.includePath(le,e)}markDeclarationReached(){this.left.markDeclarationReached()}render(e,n,{isShorthandProperty:s}=pt){this.left.render(e,n,{isShorthandProperty:s}),this.right.render(e,n)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(ue),this.right.deoptimizePath(le),this.scope.context.requestTreeshakingPass()}}class Ui extends te{hasEffects(){return this.deoptimized||this.applyDeoptimizations(),!0}initialise(){super.initialise();let e=this.parent;do if(e instanceof vi||e instanceof xr)return;while(e=e.parent);this.scope.context.usesTopLevelAwait=!0}include(e,n){this.included||this.includeNode(e),this.argument.include(e,n)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.argument.includePath(Vg,e)}includePath(e,n){this.deoptimized||this.applyDeoptimizations(),this.included||this.includeNode(n),this.argument.includePath(e,n)}}const Vg=["then"];function Ld(t){return t===void 0?"void 0":typeof t=="boolean"?String(t):typeof t=="string"?JSON.stringify(t):typeof t=="number"?function(e){if(Object.is(-0,e))return"-0";const n=e.toExponential(),[s,r]=n.split("e"),i=s.split(".")[1]?.length||0,a=`${s.replace(".","")}e${parseInt(r)-i}`,l=String(e).replace("+","");return a.length<l.length?a:l}(t):Ce}const Ug={"!=":(t,e)=>t!=e,"!==":(t,e)=>t!==e,"%":(t,e)=>t%e,"&":(t,e)=>t&e,"*":(t,e)=>t*e,"**":(t,e)=>t**e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"/":(t,e)=>t/e,"<":(t,e)=>t<e,"<<":(t,e)=>t<<e,"<=":(t,e)=>t<=e,"==":(t,e)=>t==e,"===":(t,e)=>t===e,">":(t,e)=>t>e,">=":(t,e)=>t>=e,">>":(t,e)=>t>>e,">>>":(t,e)=>t>>>e,"^":(t,e)=>t^e,"|":(t,e)=>t|e},Md=Symbol("Unassigned");class Wa extends te{constructor(){super(...arguments),this.renderedLiteralValue=Md}deoptimizeCache(){this.renderedLiteralValue=Ce}getLiteralValueAtPath(e,n,s){if(e.length>0)return Ce;const r=this.left.getLiteralValueAtPath(ue,n,s);if(typeof r=="symbol")return Ce;if(this.operator==="in"&&this.right.variable instanceof Yn){const[l]=this.right.variable.context.traceExport(String(r));return l instanceof tr?Ce:!!l}const i=this.right.getLiteralValueAtPath(ue,n,s);if(typeof i=="symbol")return Ce;const a=Ug[this.operator];return a?a(r,i):Ce}getRenderedLiteralValue(){return this.operator==="in"&&this.right.variable instanceof Yn?this.renderedLiteralValue!==Md?this.renderedLiteralValue:this.renderedLiteralValue=Ld(this.getLiteralValueAtPath(ue,Ge,this)):Ce}hasEffects(e){return this.operator==="+"&&this.parent instanceof Bt&&this.left.getLiteralValueAtPath(ue,Ge,this)===""||super.hasEffects(e)}hasEffectsOnInteractionAtPath(e,{type:n}){return n!==0||e.length>1}include(e,n,s){this.included||this.includeNode(e),typeof this.getRenderedLiteralValue()=="symbol"&&(this.left.include(e,n,s),this.right.include(e,n,s))}includeNode(e){this.included=!0,this.operator==="in"&&typeof this.getRenderedLiteralValue()=="symbol"&&this.right.includePath(le,e)}removeAnnotations(e){this.left.removeAnnotations(e)}render(e,n,{renderedSurroundingElement:s}=pt){const r=this.getRenderedLiteralValue();typeof r!="symbol"?e.overwrite(this.start,this.end,r):(this.left.render(e,n,{renderedSurroundingElement:s}),this.right.render(e,n))}}Wa.prototype.applyDeoptimizations=Te;class qi extends te{hasEffects(e){if(this.label){if(!e.ignore.labels.has(this.label.name))return!0;e.includedLabels.add(this.label.name)}else{if(!e.ignore.breaks)return!0;e.hasBreak=!0}return e.brokenFlow=!0,!1}include(e,n){this.included=!0,this.label?(this.label.include(e,n),e.includedLabels.add(this.label.name)):e.hasBreak=!0,e.brokenFlow=!0}}function Fd(t,e,n){if(n.arguments.length>0)if(n.arguments[n.arguments.length-1].included)for(const s of n.arguments)s.render(t,e);else{let s=n.arguments.length-2;for(;s>=0&&!n.arguments[s].included;)s--;if(s>=0){for(let r=0;r<=s;r++)n.arguments[r].render(t,e);t.remove(ht(t.original,",",n.arguments[s].end),n.end-1)}else t.remove(ht(t.original,"(",n.callee.end)+1,n.end-1)}}qi.prototype.includeNode=ze,qi.prototype.applyDeoptimizations=Te;class Bd extends te{constructor(){super(...arguments),this.returnExpression=null,this.deoptimizableDependentExpressions=[],this.expressionsToBeDeoptimized=new Set}deoptimizeArgumentsOnInteractionAtPath(e,n,s){const{args:r}=e,[i,a]=this.getReturnExpression(s);if(a)return;const l=r.filter(c=>!!c&&c!==Pe);if(l.length!==0)if(i===Pe)for(const c of l)c.deoptimizePath(le);else s.withTrackedEntityAtPath(n,i,()=>{for(const c of l)this.expressionsToBeDeoptimized.add(c);i.deoptimizeArgumentsOnInteractionAtPath(e,n,s)},null)}deoptimizeCache(){if(this.returnExpression?.[0]!==Pe){this.returnExpression=it;const{deoptimizableDependentExpressions:e,expressionsToBeDeoptimized:n}=this;this.expressionsToBeDeoptimized=Uu,this.deoptimizableDependentExpressions=Qe;for(const s of e)s.deoptimizeCache();for(const s of n)s.deoptimizePath(le)}}deoptimizePath(e){if(e.length===0||this.scope.context.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(e,this))return;const[n]=this.getReturnExpression();n!==Pe&&n.deoptimizePath(e)}getLiteralValueAtPath(e,n,s){const[r]=this.getReturnExpression(n);return r===Pe?Ce:n.withTrackedEntityAtPath(e,r,()=>(this.deoptimizableDependentExpressions.push(s),r.getLiteralValueAtPath(e,n,s)),Ce)}getReturnExpressionWhenCalledAtPath(e,n,s,r){const i=this.getReturnExpression(s);return i[0]===Pe?i:s.withTrackedEntityAtPath(e,i,()=>{this.deoptimizableDependentExpressions.push(r);const[a,l]=i[0].getReturnExpressionWhenCalledAtPath(e,n,s,r);return[a,l||i[1]]},it)}hasEffectsOnInteractionAtPath(e,n,s){const{type:r}=n;if(r===2){const{args:l,withNew:c}=n;if((c?s.instantiated:s.called).trackEntityAtPathAndGetIfTracked(e,l,this))return!1}else if((r===1?s.assigned:s.accessed).trackEntityAtPathAndGetIfTracked(e,this))return!1;const[i,a]=this.getReturnExpression();return(r===1||!a)&&i.hasEffectsOnInteractionAtPath(e,n,s)}}class Xa extends Bd{get hasCheckedForWarnings(){return Le(this.flags,268435456)}set hasCheckedForWarnings(e){this.flags=Me(this.flags,268435456,e)}get optional(){return Le(this.flags,128)}set optional(e){this.flags=Me(this.flags,128,e)}bind(){super.bind(),this.interaction={args:[this.callee instanceof mn&&!this.callee.variable?this.callee.object:null,...this.arguments],type:2,withNew:!1}}getLiteralValueAtPathAsChainElement(e,n,s){return id(this,this.callee,e,n,s)}hasEffects(e){this.deoptimized||this.applyDeoptimizations();for(const n of this.arguments)if(n.hasEffects(e))return!0;return!this.annotationPure&&(this.callee.hasEffects(e)||this.callee.hasEffectsOnInteractionAtPath(ue,this.interaction,e))}hasEffectsAsChainElement(e){const n="hasEffectsAsChainElement"in this.callee?this.callee.hasEffectsAsChainElement(e):this.callee.hasEffects(e);if(n===Xt)return Xt;if(this.optional&&this.callee.getLiteralValueAtPath(ue,Ge,this)==null)return!this.annotationPure&&n||Xt;this.deoptimized||this.applyDeoptimizations();for(const s of this.arguments)if(s.hasEffects(e))return!0;return!this.annotationPure&&(n||this.callee.hasEffectsOnInteractionAtPath(ue,this.interaction,e))}include(e,n){this.included||this.includeNode(e),n?(super.include(e,!0),n===$h&&this.callee instanceof Fe&&this.callee.variable&&this.callee.variable.markCalledFromTryStatement()):(this.callee.include(e,!1),this.callee.includeCallArguments(this.interaction,e))}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.callee.includePath(le,e)}initialise(){super.initialise(),this.annotations&&this.scope.context.options.treeshake.annotations&&(this.annotationPure=this.annotations.some(e=>e.type==="pure"))}render(e,n,{renderedSurroundingElement:s}=pt){this.callee.render(e,n,{isCalleeOfRenderedParent:!0,renderedSurroundingElement:s}),Fd(e,n,this),this.callee instanceof Fe&&!this.hasCheckedForWarnings&&(this.hasCheckedForWarnings=!0,this.scope.findVariable(this.callee.name).isNamespace&&this.scope.context.log(Ee,gh(this.callee.name),this.start),this.callee.name==="eval"&&this.scope.context.log(Ee,{code:"EVAL",id:r=this.scope.context.module.id,message:`Use of eval in "${Ae(r)}" is strongly discouraged as it poses security risks and may cause issues with minification.`,url:ot("troubleshooting/#avoiding-eval")},this.start));var r}applyDeoptimizations(){this.deoptimized=!0,this.callee.deoptimizeArgumentsOnInteractionAtPath(this.interaction,ue,Ge),this.scope.context.requestTreeshakingPass()}getReturnExpression(e=Ge){return this.returnExpression===null?(this.returnExpression=it,this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(ue,this.interaction,e,this)):this.returnExpression}}class Hi extends te{createScope(e){this.scope=new Jh(e,!0)}parseNode(e){const{body:n,param:s,type:r}=e;return this.type=r,s&&(this.param=new(this.scope.context.getNodeConstructor(s.type))(this,this.scope).parseNode(s),this.param.declare("parameter",ue,Pe)),this.body=new Wn(this,this.scope.bodyScope).parseNode(n),super.parseNode(e)}}Hi.prototype.preventChildBlockScope=!0,Hi.prototype.includeNode=dt;class Gi extends te{deoptimizeCache(){}getLiteralValueAtPath(e,n,s){const r=this.expression.getLiteralValueAtPathAsChainElement(e,n,s);return r===Xt?void 0:r}hasEffects(e){return this.expression.hasEffectsAsChainElement(e)===!0}includePath(e,n){this.included=!0,this.expression.includePath(e,n)}removeAnnotations(e){this.expression.removeAnnotations(e)}}Gi.prototype.includeNode=ze,Gi.prototype.applyDeoptimizations=Te;class qg extends St{constructor(e,n){const{context:s}=e;super(e,s),this.variables.set("this",this.thisVariable=new Dt("this",null,n,ue,s,"other")),this.instanceScope=new St(this,s),this.instanceScope.variables.set("this",new Kh(s))}findLexicalBoundary(){return this}}class Wi extends te{createScope(e){this.scope=new qg(e,this.parent)}include(e,n){this.included=!0,this.scope.context.includeVariableInModule(this.scope.thisVariable,le,e);for(const s of this.body)s.include(e,n)}parseNode(e){const n=this.body=new Array(e.body.length);let s=0;for(const r of e.body)n[s++]=new(this.scope.context.getNodeConstructor(r.type))(this,r.static?this.scope:this.scope.instanceScope).parseNode(r);return super.parseNode(e)}}Wi.prototype.includeNode=ze,Wi.prototype.applyDeoptimizations=Te;class Xi extends Pa{render(e,n,{renderedSurroundingElement:s}=pt){super.render(e,n),s===Wt&&(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}}function Cs(t){return typeof t=="symbol"?t!==ii&&(t===ri||Ce):!!t}class Ki extends Pt{constructor(e){super(),this.expressions=e}deoptimizePath(e){for(const n of this.expressions)n.deoptimizePath(e)}getReturnExpressionWhenCalledAtPath(e,n,s,r){return[new Ki(this.expressions.map(i=>i.getReturnExpressionWhenCalledAtPath(e,n,s,r)[0])),!1]}hasEffectsOnInteractionAtPath(e,n,s){for(const r of this.expressions)if(r.hasEffectsOnInteractionAtPath(e,n,s))return!0;return!1}}class Ji extends te{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.usedBranch=null}get isBranchResolutionAnalysed(){return Le(this.flags,65536)}set isBranchResolutionAnalysed(e){this.flags=Me(this.flags,65536,e)}get hasDeoptimizedCache(){return Le(this.flags,33554432)}set hasDeoptimizedCache(e){this.flags=Me(this.flags,33554432,e)}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.consequent.deoptimizeArgumentsOnInteractionAtPath(e,n,s),this.alternate.deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizeCache(){if(!this.hasDeoptimizedCache&&(this.hasDeoptimizedCache=!0,this.usedBranch!==null)){const e=this.usedBranch===this.consequent?this.alternate:this.consequent;this.usedBranch=null,e.deoptimizePath(le),this.included&&e.includePath(le,Lt());const{expressionsToBeDeoptimized:n}=this;this.expressionsToBeDeoptimized=Qe;for(const s of n)s.deoptimizeCache()}}deoptimizePath(e){const n=this.getUsedBranch();n?n.deoptimizePath(e):(this.consequent.deoptimizePath(e),this.alternate.deoptimizePath(e))}getLiteralValueAtPath(e,n,s){const r=this.getUsedBranch();if(!r){if(this.hasDeoptimizedCache)return Ce;const i=this.consequent.getLiteralValueAtPath(e,n,s),a=Cs(i);if(a===Ce)return Ce;const l=this.alternate.getLiteralValueAtPath(e,n,s);return a!==Cs(l)?Ce:(this.expressionsToBeDeoptimized.push(s),i!==l?a?ri:ii:i)}return this.expressionsToBeDeoptimized.push(s),r.getLiteralValueAtPath(e,n,s)}getReturnExpressionWhenCalledAtPath(e,n,s,r){const i=this.getUsedBranch();return i?(this.expressionsToBeDeoptimized.push(r),i.getReturnExpressionWhenCalledAtPath(e,n,s,r)):[new Ki([this.consequent.getReturnExpressionWhenCalledAtPath(e,n,s,r)[0],this.alternate.getReturnExpressionWhenCalledAtPath(e,n,s,r)[0]]),!1]}hasEffects(e){if(this.test.hasEffects(e))return!0;const n=this.getUsedBranch();return n?n.hasEffects(e):this.consequent.hasEffects(e)||this.alternate.hasEffects(e)}hasEffectsOnInteractionAtPath(e,n,s){const r=this.getUsedBranch();return r?r.hasEffectsOnInteractionAtPath(e,n,s):this.consequent.hasEffectsOnInteractionAtPath(e,n,s)||this.alternate.hasEffectsOnInteractionAtPath(e,n,s)}include(e,n){this.included=!0;const s=this.getUsedBranch();s===null||n||this.test.shouldBeIncluded(e)?(this.test.include(e,n),this.consequent.include(e,n),this.alternate.include(e,n)):s.include(e,n)}includePath(e,n){this.included=!0;const s=this.getUsedBranch();s===null||this.test.shouldBeIncluded(n)?(this.consequent.includePath(e,n),this.alternate.includePath(e,n)):s.includePath(e,n)}includeCallArguments(e,n){const s=this.getUsedBranch();s?s.includeCallArguments(e,n):(this.consequent.includeCallArguments(e,n),this.alternate.includeCallArguments(e,n))}removeAnnotations(e){this.test.removeAnnotations(e)}render(e,n,{isCalleeOfRenderedParent:s,preventASI:r,renderedParentType:i,renderedSurroundingElement:a}=pt){if(this.test.included)this.test.render(e,n,{renderedSurroundingElement:a}),this.consequent.render(e,n),this.alternate.render(e,n);else{const l=this.getUsedBranch(),c=ht(e.original,":",this.consequent.end),u=kn(e.original,(this.consequent.included?ht(e.original,"?",this.test.end):c)+1);r&&ni(e,u,l.start),e.remove(this.start,u),this.consequent.included&&e.remove(c,this.end),this.test.removeAnnotations(e),l.render(e,n,{isCalleeOfRenderedParent:s,preventASI:!0,renderedParentType:i||this.parent.type,renderedSurroundingElement:a||this.parent.type})}}getUsedBranch(){if(this.isBranchResolutionAnalysed)return this.usedBranch;this.isBranchResolutionAnalysed=!0;const e=Cs(this.test.getLiteralValueAtPath(ue,Ge,this));return typeof e=="symbol"?null:this.usedBranch=e?this.consequent:this.alternate}}Ji.prototype.includeNode=ze,Ji.prototype.applyDeoptimizations=Te;class Yi extends te{hasEffects(e){if(this.label){if(!e.ignore.labels.has(this.label.name))return!0;e.includedLabels.add(this.label.name)}else{if(!e.ignore.continues)return!0;e.hasContinue=!0}return e.brokenFlow=!0,!1}include(e,n){this.included=!0,this.label?(this.label.include(e,n),e.includedLabels.add(this.label.name)):e.hasContinue=!0,e.brokenFlow=!0}}Yi.prototype.includeNode=ze,Yi.prototype.applyDeoptimizations=Te;class Ka extends te{hasEffects(){return!0}}Ka.prototype.includeNode=dt;class Ja extends te{hasEffects(e){return this.expression.hasEffects(e)||this.expression.hasEffectsOnInteractionAtPath(ue,Js,e)}}function Qi(t,e){const{brokenFlow:n,hasBreak:s,hasContinue:r,ignore:i}=t,{breaks:a,continues:l}=i;return i.breaks=!0,i.continues=!0,t.hasBreak=!1,t.hasContinue=!1,!!e.hasEffects(t)||(i.breaks=a,i.continues=l,t.hasBreak=s,t.hasContinue=r,t.brokenFlow=n,!1)}function kr(t,e,n){const{brokenFlow:s,hasBreak:r,hasContinue:i}=t;t.hasBreak=!1,t.hasContinue=!1,e.include(t,n,{asSingleStatement:!0}),t.hasBreak=r,t.hasContinue=i,t.brokenFlow=s}Ja.prototype.includeNode=dt;class Zi extends te{hasEffects(e){return!!this.test.hasEffects(e)||Qi(e,this.body)}include(e,n){this.included=!0,this.test.include(e,n),kr(e,this.body,n)}}Zi.prototype.includeNode=ze,Zi.prototype.applyDeoptimizations=Te;class Ya extends te{hasEffects(){return!1}}Ya.prototype.includeNode=dt;class Ts extends te{hasEffects(){return!1}initialise(){super.initialise(),this.scope.context.addExport(this)}render(e,n,s){e.remove(s.start,s.end)}}Ts.prototype.needsBoundaries=!0,Ts.prototype.includeNode=ze,Ts.prototype.applyDeoptimizations=Te;class Er extends te{bind(){this.declaration?.bind()}hasEffects(e){return!!this.declaration?.hasEffects(e)}initialise(){super.initialise(),this.scope.context.addExport(this)}removeAnnotations(e){this.declaration?.removeAnnotations(e)}render(e,n,s){const{start:r,end:i}=s;if(this.declaration===null)e.remove(r,i);else{let a=this.declaration.start;if(this.declaration instanceof _s){const l=this.declaration.decorators;for(const c of l)a=Math.min(a,c.start);a<=this.start&&(a=this.declaration.start)}e.remove(this.start,a),this.declaration.render(e,n,{end:i,start:r})}}}Er.prototype.needsBoundaries=!0,Er.prototype.includeNode=ze,Er.prototype.applyDeoptimizations=Te;class eo extends te{}eo.prototype.includeNode=ze,eo.prototype.applyDeoptimizations=Te;class jd extends te{createScope(e){this.scope=new Gn(e)}hasEffects(e){const{body:n,deoptimized:s,left:r,right:i}=this;return s||this.applyDeoptimizations(),!(!r.hasEffectsAsAssignmentTarget(e,!1)&&!i.hasEffects(e))||Qi(e,n)}include(e,n){const{body:s,deoptimized:r,left:i,right:a}=this;r||this.applyDeoptimizations(),this.included||this.includeNode(e),i.includeAsAssignmentTarget(e,n||!0,!1),a.include(e,n),kr(e,s,n)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.right.includePath(le,e)}initialise(){super.initialise(),this.left.setAssignedValue(Pe)}render(e,n){this.left.render(e,n,Dn),this.right.render(e,n,Dn),e.original.charCodeAt(this.right.start-1)===110&&e.prependLeft(this.right.start," "),this.body.render(e,n)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(ue),this.scope.context.requestTreeshakingPass()}}class zd extends te{get await(){return Le(this.flags,131072)}set await(e){this.flags=Me(this.flags,131072,e)}createScope(e){this.scope=new Gn(e)}hasEffects(){return this.deoptimized||this.applyDeoptimizations(),!0}include(e,n){const{body:s,deoptimized:r,left:i,right:a}=this;r||this.applyDeoptimizations(),this.included||this.includeNode(e),i.includeAsAssignmentTarget(e,n||!0,!1),a.include(e,n),kr(e,s,n)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.right.includePath(le,e)}initialise(){super.initialise(),this.left.setAssignedValue(Pe)}render(e,n){this.left.render(e,n,Dn),this.right.render(e,n,Dn),e.original.charCodeAt(this.right.start-1)===102&&e.prependLeft(this.right.start," "),this.body.render(e,n)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(ue),this.right.deoptimizePath(le),this.scope.context.requestTreeshakingPass()}}class to extends te{createScope(e){this.scope=new Gn(e)}hasEffects(e){return!!(this.init?.hasEffects(e)||this.test?.hasEffects(e)||this.update?.hasEffects(e))||Qi(e,this.body)}include(e,n){this.included=!0,this.init?.include(e,n,{asSingleStatement:!0}),this.test?.include(e,n),this.update?.include(e,n),kr(e,this.body,n)}render(e,n){this.init?.render(e,n,Dn),this.test?.render(e,n,Dn),this.update?.render(e,n,Dn),this.body.render(e,n)}}to.prototype.includeNode=ze,to.prototype.applyDeoptimizations=Te;class Qa extends vi{createScope(e){super.createScope(this.idScope=new St(e,e.context))}parseNode(e){return e.id!==null&&(this.id=new Fe(this,this.idScope).parseNode(e.id)),super.parseNode(e)}onlyFunctionCallUsed(){return this.parent.type===Ys&&this.parent.callee===this&&(this.id===null||this.id.variable.getOnlyFunctionCallUsed())||super.onlyFunctionCallUsed()}render(e,n,{renderedSurroundingElement:s}=pt){super.render(e,n),s===Wt&&(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}}class no extends Gn{constructor(){super(...arguments),this.hoistedDeclarations=[]}addDeclaration(e,n,s,r,i){return this.hoistedDeclarations.push(e),super.addDeclaration(e,n,s,r,i)}}const Vd=Symbol("unset");class Rs extends te{constructor(){super(...arguments),this.testValue=Vd}deoptimizeCache(){this.testValue=Ce}hasEffects(e){if(this.test.hasEffects(e))return!0;const n=this.getTestValue();if(typeof n=="symbol"){const{brokenFlow:s}=e;if(this.consequent.hasEffects(e))return!0;const r=e.brokenFlow;return e.brokenFlow=s,this.alternate===null?!1:!!this.alternate.hasEffects(e)||(e.brokenFlow=e.brokenFlow&&r,!1)}return n?this.consequent.hasEffects(e):!!this.alternate?.hasEffects(e)}include(e,n){if(this.included=!0,n)this.includeRecursively(n,e);else{const s=this.getTestValue();typeof s=="symbol"?this.includeUnknownTest(e):this.includeKnownTest(e,s)}}parseNode(e){return this.consequent=new(this.scope.context.getNodeConstructor(e.consequent.type))(this,this.consequentScope=new no(this.scope)).parseNode(e.consequent),e.alternate&&(this.alternate=new(this.scope.context.getNodeConstructor(e.alternate.type))(this,this.alternateScope=new no(this.scope)).parseNode(e.alternate)),super.parseNode(e)}render(e,n){const{snippets:{getPropertyAccess:s}}=n,r=this.getTestValue(),i=[],a=this.test.included,l=!this.scope.context.options.treeshake;a?this.test.render(e,n):e.remove(this.start,this.consequent.start),this.consequent.included&&(l||typeof r=="symbol"||r)?this.consequent.render(e,n):(e.overwrite(this.consequent.start,this.consequent.end,a?";":""),i.push(...this.consequentScope.hoistedDeclarations)),this.alternate&&(!this.alternate.included||!l&&typeof r!="symbol"&&r?(a&&this.shouldKeepAlternateBranch()?e.overwrite(this.alternate.start,this.end,";"):e.remove(this.consequent.end,this.end),i.push(...this.alternateScope.hoistedDeclarations)):(a?e.original.charCodeAt(this.alternate.start-1)===101&&e.prependLeft(this.alternate.start," "):e.remove(this.consequent.end,this.alternate.start),this.alternate.render(e,n))),this.renderHoistedDeclarations(i,e,s)}getTestValue(){return this.testValue===Vd?this.testValue=Cs(this.test.getLiteralValueAtPath(ue,Ge,this)):this.testValue}includeKnownTest(e,n){this.test.shouldBeIncluded(e)&&this.test.include(e,!1),n&&this.consequent.shouldBeIncluded(e)&&this.consequent.include(e,!1,{asSingleStatement:!0}),!n&&this.alternate?.shouldBeIncluded(e)&&this.alternate.include(e,!1,{asSingleStatement:!0})}includeRecursively(e,n){this.test.include(n,e),this.consequent.include(n,e),this.alternate?.include(n,e)}includeUnknownTest(e){this.test.include(e,!1);const{brokenFlow:n}=e;let s=!1;this.consequent.shouldBeIncluded(e)&&(this.consequent.include(e,!1,{asSingleStatement:!0}),s=e.brokenFlow,e.brokenFlow=n),this.alternate?.shouldBeIncluded(e)&&(this.alternate.include(e,!1,{asSingleStatement:!0}),e.brokenFlow=e.brokenFlow&&s)}renderHoistedDeclarations(e,n,s){const r=[...new Set(e.map(i=>{const a=i.variable;return a.included?a.getName(s):""}))].filter(Boolean).join(", ");if(r){const i=this.parent.type,a=i!==oi&&i!=="BlockStatement";n.prependRight(this.start,`${a?"{ ":""}var ${r}; `),a&&n.appendLeft(this.end," }")}}shouldKeepAlternateBranch(){let e=this.parent;do{if(e instanceof Rs&&e.alternate)return!0;if(e instanceof Wn)return!1;e=e.parent}while(e);return!1}}Rs.prototype.includeNode=ze,Rs.prototype.applyDeoptimizations=Te;class Ud extends te{}class Ar extends te{bind(){}hasEffects(){return!1}initialise(){super.initialise(),this.scope.context.addImport(this)}render(e,n,s){e.remove(s.start,s.end)}}Ar.prototype.needsBoundaries=!0,Ar.prototype.includeNode=ze,Ar.prototype.applyDeoptimizations=Te;class wr extends te{}function qd(t,e){return t.renderBaseName!==null&&e.has(t)&&t.isReassigned}wr.prototype.includeNode=ze,wr.prototype.applyDeoptimizations=Te;class so extends te{declareDeclarator(e,n){this.isUsingDeclaration=n,this.id.declare(e,ue,this.init||un)}deoptimizePath(e){this.id.deoptimizePath(e)}hasEffects(e){const n=this.init?.hasEffects(e);return this.id.markDeclarationReached(),n||this.isUsingDeclaration||this.id.hasEffects(e)||this.scope.context.options.treeshake.propertyReadSideEffects&&this.id.hasEffectsWhenDestructuring(e,ue,this.init||un)}include(e,n){const{id:s,init:r}=this;this.included||this.includeNode(),r?.include(e,n),s.markDeclarationReached(),n?s.include(e,n):s.includeDestructuredIfNecessary(e,ue,r||un)}removeAnnotations(e){this.init?.removeAnnotations(e)}render(e,n){const{exportNamesByVariable:s,snippets:{_:r,getPropertyAccess:i}}=n,{end:a,id:l,init:c,start:u}=this,d=l.included||this.isUsingDeclaration;if(d)l.render(e,n);else{const m=ht(e.original,"=",l.end);e.remove(u,kn(e.original,m+1))}c?(l instanceof Fe&&c instanceof Xi&&!c.id&&l.variable.getName(i)!==l.name&&e.appendLeft(c.start+5,` ${l.name}`),c.render(e,n,d?pt:{renderedSurroundingElement:Wt})):l instanceof Fe&&qd(l.variable,s)&&e.appendLeft(a,`${r}=${r}void 0`)}includeNode(){this.included=!0;const{id:e,init:n}=this;if(n&&e instanceof Fe&&n instanceof Xi&&!n.id){const{name:s,variable:r}=e;for(const i of n.scope.accessedOutsideVariables.values())i!==r&&i.forbidName(s)}}}function Hd(t){return{fileName:t.getFileName(),...t.getPreRenderedChunkInfo()}}so.prototype.applyDeoptimizations=Te;class Za extends te{constructor(){super(...arguments),this.inlineNamespace=null,this.hasUnknownAccessedKey=!1,this.accessedPropKey=new Set,this.attributes=null,this.mechanism=null,this.namespaceExportName=void 0,this.resolution=null,this.resolutionString=null}get withinTopLevelAwait(){return Le(this.flags,134217728)}set withinTopLevelAwait(e){this.flags=Me(this.flags,134217728,e)}bind(){this.source.bind()}getDeterministicImportedNames(){const e=this.parent;if(e instanceof Bt)return Qe;if(e instanceof Ui){const n=e.parent;if(n instanceof Bt)return Qe;if(n instanceof so){const s=n.id;if(s instanceof Fe)return this.hasUnknownAccessedKey?void 0:[...this.accessedPropKey];if(s instanceof vn)return Wd(s)}if(n instanceof mn){const s=n.property;if(!n.computed&&s instanceof Fe)return[s.name]}return}if(e instanceof mn){const n=e.parent,s=e.property;if(!(n instanceof Xa&&s instanceof Fe))return;const r=s.name;if(n.parent instanceof Bt&&["catch","finally"].includes(r))return Qe;if(r!=="then")return;if(n.arguments.length===0)return Qe;const i=n.arguments[0];if(n.arguments.length!==1||!(i instanceof xr||i instanceof Qa))return;if(i.params.length===0)return Qe;const a=i.params[0];return i.params.length===1&&a instanceof vn?Wd(a):this.hasUnknownAccessedKey?void 0:[...this.accessedPropKey]}}hasEffects(){return!0}include(e,n){this.included||this.includeNode(),this.source.include(e,n)}includeNode(){this.included=!0,this.scope.context.includeDynamicImport(this),this.scope.addAccessedDynamicImport(this)}includePath(e){this.included||this.includeNode(),this.hasUnknownAccessedKey||(e[0]===_e?this.hasUnknownAccessedKey=!0:typeof e[0]=="string"&&this.accessedPropKey.add(e[0]),this.scope.context.includeDynamicImport(this))}initialise(){super.initialise(),this.scope.context.addDynamicImport(this);let e=this.parent,n=!1,s=!1;do n&&(e instanceof vi||e instanceof xr)&&(s=!1),e instanceof Ui&&(n=!0,s=!0);while(e=e.parent);n&&s&&(this.withinTopLevelAwait=!0)}parseNode(e){return this.sourceAstNode=e.source,super.parseNode(e)}render(e,n){const{snippets:{_:s,getDirectReturnFunction:r,getObject:i,getPropertyAccess:a},importAttributesKey:l}=n;if(this.inlineNamespace){const[c,u]=r([],{functionReturn:!0,lineBreakIndent:null,name:null});return void e.overwrite(this.start,this.end,`Promise.resolve().then(${c}${this.inlineNamespace.getName(a)}${u})`)}if(this.mechanism&&(e.overwrite(this.start,ht(e.original,"(",this.start+6)+1,this.mechanism.left),e.overwrite(this.end-1,this.end,this.mechanism.right)),this.resolutionString){if(e.overwrite(this.source.start,this.source.end,this.resolutionString),this.namespaceExportName){const[c,u]=r(["n"],{functionReturn:!0,lineBreakIndent:null,name:null});e.prependLeft(this.end,`.then(${c}n.${this.namespaceExportName}${u})`)}}else this.source.render(e,n);this.attributes!==!0&&(this.options&&e.overwrite(this.source.end,this.end-1,"",{contentOnly:!0}),this.attributes&&e.appendLeft(this.end-1,`,${s}${i([[l,this.attributes]],{lineBreakIndent:null})}`))}setExternalResolution(e,n,s,r,i,a,l,c,u,d,m){const{format:f}=s;this.inlineNamespace=null,this.resolution=n,this.resolutionString=l,this.namespaceExportName=c,this.attributes=u;const g=[...Hg[f]||[]];let w;({helper:w,mechanism:this.mechanism}=this.getDynamicImportMechanismAndHelper(n,e,s,r,i,d,m)),w&&g.push(w),g.length>0&&this.scope.addAccessedGlobals(g,a)}setInternalResolution(e){this.inlineNamespace=e}getDynamicImportMechanismAndHelper(e,n,{compact:s,dynamicImportInCjs:r,format:i,generatedCode:{arrowFunctions:a},interop:l},{_:c,getDirectReturnFunction:u,getDirectReturnIifeLeft:d},m,f,g){const w=m.hookFirstSync("renderDynamicImport",[{chunk:Hd(f),customResolution:typeof this.resolution=="string"?this.resolution:null,format:i,getTargetChunkImports(){if(g===null)return null;const I=[],E=f.getFileName();for(const b of g.dependencies){const A=`'${b.getImportPath(E)}'`;b instanceof Qn?I.push({fileName:b.getFileName(),resolvedImportPath:A,type:"external"}):I.push({chunk:b.getPreRenderedChunkInfo(),fileName:b.getFileName(),resolvedImportPath:A,type:"internal"})}return I},moduleId:this.scope.context.module.id,targetChunk:g?Hd(g):null,targetModuleId:this.resolution&&typeof this.resolution!="string"?this.resolution.id:null}]);if(w)return{helper:null,mechanism:w};const k=!this.resolution||typeof this.resolution=="string";switch(i){case"cjs":{if(r&&(!e||typeof e=="string"||e instanceof Ze))return{helper:null,mechanism:null};const I=Gd(e,n,l);let E="require(",b=")";I&&(E=`/*#__PURE__*/${I}(${E}`,b+=")");const[A,v]=u([],{functionReturn:!0,lineBreakIndent:null,name:null});return E=`Promise.resolve().then(${A}${E}`,b+=`${v})`,!a&&k&&(E=d(["t"],`${E}t${b}`,{needsArrowReturnParens:!1,needsWrappedFunction:!0}),b=")"),{helper:I,mechanism:{left:E,right:b}}}case"amd":{const I=s?"c":"resolve",E=s?"e":"reject",b=Gd(e,n,l),[A,v]=u(["m"],{functionReturn:!1,lineBreakIndent:null,name:null}),$=b?`${A}${I}(/*#__PURE__*/${b}(m))${v}`:I,[D,j]=u([I,E],{functionReturn:!1,lineBreakIndent:null,name:null});let V=`new Promise(${D}require([`,U=`],${c}${$},${c}${E})${j})`;return!a&&k&&(V=d(["t"],`${V}t${U}`,{needsArrowReturnParens:!1,needsWrappedFunction:!0}),U=")"),{helper:b,mechanism:{left:V,right:U}}}case"system":return{helper:null,mechanism:{left:"module.import(",right:")"}}}return{helper:null,mechanism:null}}}function Gd(t,e,n){return e==="external"?dr[n(t instanceof Ze?t.id:null)]:e==="default"?hr:null}Za.prototype.applyDeoptimizations=Te;const Hg={amd:["require"],cjs:["require"],system:["module"]};function Wd(t){const e=[];for(const n of t.properties){if(n.type==="RestElement"||n.computed||n.key.type!=="Identifier")return;e.push(n.key.name)}return e}class Sr extends te{}Sr.prototype.includeNode=ze,Sr.prototype.applyDeoptimizations=Te;class ro extends te{}ro.prototype.includeNode=ze,ro.prototype.applyDeoptimizations=Te;class el extends Vh{constructor(){super(...arguments),this.isNativeElement=!1}bind(){const e=this.getType();e===0?(this.variable=this.scope.findVariable(this.name),this.variable.addReference(this)):e===1&&(this.isNativeElement=!0)}include(e){this.included||this.includeNode(e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.variable!==null&&this.scope.context.includeVariableInModule(this.variable,ue,e)}includePath(e,n){this.included?e.length>0&&this.variable?.includePath(e,n):(this.included=!0,this.variable!==null&&this.scope.context.includeVariableInModule(this.variable,e,n))}render(e,{snippets:{getPropertyAccess:n},useOriginalName:s}){if(this.variable){const r=this.variable.getName(n,s);r!==this.name&&e.overwrite(this.start,this.end,r,{contentOnly:!0,storeName:!0})}else this.isNativeElement&&this.scope.context.options.jsx.mode!=="preserve"&&e.update(this.start,this.end,JSON.stringify(this.name))}getType(){switch(this.parent.type){case"JSXOpeningElement":case"JSXClosingElement":return this.name.startsWith(this.name.charAt(0).toUpperCase())?0:1;case"JSXMemberExpression":return this.parent.object===this?0:2;case"JSXAttribute":case"JSXNamespacedName":return 2;default:throw new Error(`Unexpected parent node type for JSXIdentifier: ${this.parent.type}`)}}}class io extends te{render(e,n,{jsxMode:s}=pt){if(super.render(e,n),["classic","automatic"].includes(s)){const{name:r,value:i}=this,a=r instanceof el?r.name:`${r.namespace.name}:${r.name.name}`;if(s!=="automatic"||a!=="key"){const l=gi(a);a!==l&&e.overwrite(r.start,r.end,l,{contentOnly:!0}),i?e.overwrite(r.end,i.start,": ",{contentOnly:!0}):e.appendLeft(r.end,": true")}}}}io.prototype.includeNode=dt;class tl extends te{render(e,n){const{mode:s}=this.scope.context.options.jsx;s!=="preserve"?e.overwrite(this.start,this.end,")",{contentOnly:!0}):super.render(e,n)}}tl.prototype.includeNode=dt;class Xd extends tl{}class Kd extends tl{}class oo extends te{render(e,n){this.argument.render(e,n);const{mode:s}=this.scope.context.options.jsx;s!=="preserve"&&(e.overwrite(this.start,this.argument.start,"",{contentOnly:!0}),e.overwrite(this.argument.end,this.end,"",{contentOnly:!0}))}}class Ir extends te{}Ir.prototype.includeNode=dt;class ao extends te{includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.expression.includePath(le,e)}render(e,n){const{mode:s}=this.scope.context.options.jsx;s!=="preserve"&&(e.remove(this.start,this.expression.start),e.remove(this.expression.end,this.end)),this.expression.render(e,n)}}function Gg(t){let e=0;for(const n of t)n instanceof ao&&n.expression instanceof Ir||e++;return e}function nl(t,e,n,s,r){const[i,a]=t.split(".");let l;return n?(l=s.scope.context.getImportedJsxFactoryVariable(a?"default":i,s.start,n),e&&(s.scope.findGlobal(i).includePath(le,r),l.globalName=i)):l=s.scope.findGlobal(i),s.scope.context.includeVariableInModule(l,le,r),l instanceof Dt&&(l.consolidateInitializers(),l.addUsedPlace(s),s.scope.context.requestTreeshakingPass()),l}class sl extends te{constructor(){super(...arguments),this.factoryVariable=null,this.factory=null}initialise(){super.initialise();const{importSource:e}=this.jsxMode=this.getRenderingMode();e&&this.scope.context.addImportSource(e)}include(e,n){this.included||this.includeNode(e);for(const s of this.children)s.include(e,n)}includeNode(e){this.included=!0;const{factory:n,importSource:s,mode:r}=this.jsxMode;n&&(this.factory=n,this.factoryVariable=nl(n,r==="preserve",s,this,e))}getRenderingMode(){const e=this.scope.context.options.jsx,{mode:n,factory:s,importSource:r}=e;return n==="automatic"?{factory:Gg(this.children)>1?"jsxs":"jsx",importSource:e.jsxImportSource,mode:n}:{factory:s,importSource:r,mode:n}}renderChildren(e,n,s){const{children:r}=this;let i=!1,a=s,l=null;for(const c of r)c instanceof ao&&c.expression instanceof Ir?e.remove(a,c.end):(e.appendLeft(a,", "),c.render(e,n),l?i=!0:l=c),a=c.end;return{childrenEnd:a,firstChild:l,hasMultipleChildren:i}}}sl.prototype.applyDeoptimizations=Te;class Jd extends sl{include(e,n){super.include(e,n),this.openingElement.include(e,n),this.closingElement?.include(e,n)}render(e,n){switch(this.jsxMode.mode){case"classic":this.renderClassicMode(e,n);break;case"automatic":this.renderAutomaticMode(e,n);break;default:super.render(e,n)}}getRenderingMode(){const e=this.scope.context.options.jsx,{mode:n,factory:s,importSource:r}=e;if(n==="automatic"){let i=!1;for(const a of this.openingElement.attributes)if(a instanceof oo)i=!0;else if(i&&a.name.name==="key")return{factory:s,importSource:r,mode:"classic"}}return super.getRenderingMode()}renderClassicMode(e,n){const{snippets:{getPropertyAccess:s},useOriginalName:r}=n,{closingElement:i,end:a,factory:l,factoryVariable:c,openingElement:{end:u,selfClosing:d}}=this,[,...m]=l.split("."),{firstAttribute:f,hasAttributes:g,hasSpread:w,inObject:k,previousEnd:I}=this.renderAttributes(e,n,[c.getName(s,r),...m].join("."),!1);this.wrapAttributes(e,k,g,w,f,"null",I),this.renderChildren(e,n,u),d?e.appendLeft(a,")"):i.render(e,n)}renderAutomaticMode(e,n){const{snippets:{getPropertyAccess:s},useOriginalName:r}=n,{closingElement:i,end:a,factoryVariable:l,openingElement:{end:c,selfClosing:u}}=this;let{firstAttribute:d,hasAttributes:m,hasSpread:f,inObject:g,keyAttribute:w,previousEnd:k}=this.renderAttributes(e,n,l.getName(s,r),!0);const{firstChild:I,hasMultipleChildren:E,childrenEnd:b}=this.renderChildren(e,n,c);if(I&&(e.prependRight(I.start,"children: "+(E?"[":"")),g||(e.prependRight(I.start,"{ "),g=!0),k=i.start,E&&e.appendLeft(k,"]")),this.wrapAttributes(e,g,m||!!I,f,d||I,"{}",b),w){const{value:A}=w;e.appendLeft(b,", "),A?e.move(A.start,A.end,b):e.appendLeft(b,"true")}u?e.appendLeft(w?.value?.end||a,")"):i.render(e,n)}renderAttributes(e,n,s,r){const{jsxMode:{mode:i},openingElement:a}=this,{attributes:l,end:c,start:u,name:{start:d,end:m}}=a;e.update(u,d,`/*#__PURE__*/${s}(`),a.render(e,n,{jsxMode:i});let f=null,g=!1,w=!1,k=m,I=!1,E=null;for(const b of l){if(b instanceof io){if(r&&b.name.name==="key"){f=b,e.remove(k,b.value?.start||b.end);continue}e.appendLeft(k,","),w||(e.prependRight(b.start,"{ "),w=!0),I=!0}else w?(I&&e.appendLeft(k," "),e.appendLeft(k,"},"),w=!1):e.appendLeft(k,","),g=!0;k=b.end,E||(E=b)}return e.remove(l.at(-1)?.end||k,c),{firstAttribute:E,hasAttributes:I,hasSpread:g,inObject:w,keyAttribute:f,previousEnd:k}}wrapAttributes(e,n,s,r,i,a,l){if(n&&e.appendLeft(l," }"),r){if(s){const{start:c}=i;i instanceof oo&&e.prependRight(c,"{}, "),e.prependRight(c,"Object.assign("),e.appendLeft(l,")")}}else s||e.appendLeft(l,`, ${a}`)}}class Yd extends sl{include(e,n){super.include(e,n),this.openingFragment.include(e,n),this.closingFragment.include(e,n)}render(e,n){switch(this.jsxMode.mode){case"classic":this.renderClassicMode(e,n);break;case"automatic":this.renderAutomaticMode(e,n);break;default:super.render(e,n)}}renderClassicMode(e,n){const{snippets:{getPropertyAccess:s},useOriginalName:r}=n,{closingFragment:i,factory:a,factoryVariable:l,openingFragment:c,start:u}=this,[,...d]=a.split(".");c.render(e,n),e.prependRight(u,`/*#__PURE__*/${[l.getName(s,r),...d].join(".")}(`),e.appendLeft(c.end,", null"),this.renderChildren(e,n,c.end),i.render(e,n)}renderAutomaticMode(e,n){const{snippets:{getPropertyAccess:s},useOriginalName:r}=n,{closingFragment:i,factoryVariable:a,openingFragment:l,start:c}=this;l.render(e,n),e.prependRight(c,`/*#__PURE__*/${a.getName(s,r)}(`);const{firstChild:u,hasMultipleChildren:d,childrenEnd:m}=this.renderChildren(e,n,l.end);u?(e.prependRight(u.start,"{ children: "+(d?"[":"")),d&&e.appendLeft(i.start,"]"),e.appendLeft(m," }")):e.appendLeft(l.end,", {}"),i.render(e,n)}}class Qd extends te{includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.object.includePath([this.property.name],e)}includePath(e,n){this.included||this.includeNode(n),this.object.includePath([this.property.name,...e],n)}}class rl extends te{}rl.prototype.includeNode=dt;class il extends te{render(e,n,{jsxMode:s=this.scope.context.options.jsx.mode}={}){this.name.render(e,n);for(const r of this.attributes)r.render(e,n,{jsxMode:s})}}il.prototype.includeNode=dt;class Zd extends te{constructor(){super(...arguments),this.fragment=null,this.fragmentVariable=null}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations();const n=this.scope.context.options.jsx;if(n.mode==="automatic")this.fragment="Fragment",this.fragmentVariable=nl("Fragment",!1,n.jsxImportSource,this,e);else{const{fragment:s,importSource:r,mode:i}=n;s!=null&&(this.fragment=s,this.fragmentVariable=nl(s,i==="preserve",r,this,e))}}render(e,n){const{mode:s}=this.scope.context.options.jsx;if(s!=="preserve"){const{snippets:{getPropertyAccess:r},useOriginalName:i}=n,[,...a]=this.fragment.split("."),l=[this.fragmentVariable.getName(r,i),...a].join(".");e.update(this.start,this.end,l)}}}class ep extends te{render(e,n){super.render(e,n);const{mode:s}=this.scope.context.options.jsx;s!=="preserve"&&(e.overwrite(this.start,this.expression.start,"...",{contentOnly:!0}),e.overwrite(this.expression.end,this.end,"",{contentOnly:!0}))}}class ol extends te{render(e){const{mode:n}=this.scope.context.options.jsx;n!=="preserve"&&e.overwrite(this.start,this.end,JSON.stringify(this.value),{contentOnly:!0})}}ol.prototype.includeNode=dt;class al extends te{hasEffects(e){const{brokenFlow:n,includedLabels:s}=e;e.ignore.labels.add(this.label.name),e.includedLabels=new Set;let r=!1;return this.body.hasEffects(e)?r=!0:(e.ignore.labels.delete(this.label.name),e.includedLabels.has(this.label.name)&&(e.includedLabels.delete(this.label.name),e.brokenFlow=n)),e.includedLabels=new Set([...s,...e.includedLabels]),r}include(e,n){this.included||this.includeNode(e);const{brokenFlow:s,includedLabels:r}=e;e.includedLabels=new Set,this.body.include(e,n),(n||e.includedLabels.has(this.label.name))&&(this.label.include(e,n),e.includedLabels.delete(this.label.name),e.brokenFlow=s),e.includedLabels=new Set([...r,...e.includedLabels])}includeNode(e){this.included=!0,this.body.includePath(le,e)}render(e,n){this.label.included?this.label.render(e,n):e.remove(this.start,kn(e.original,ht(e.original,":",this.label.end)+1)),this.body.render(e,n)}}al.prototype.applyDeoptimizations=Te;class lo extends te{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.usedBranch=null}get isBranchResolutionAnalysed(){return Le(this.flags,65536)}set isBranchResolutionAnalysed(e){this.flags=Me(this.flags,65536,e)}get hasDeoptimizedCache(){return Le(this.flags,33554432)}set hasDeoptimizedCache(e){this.flags=Me(this.flags,33554432,e)}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.left.deoptimizeArgumentsOnInteractionAtPath(e,n,s),this.right.deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizeCache(){if(this.hasDeoptimizedCache)return;if(this.hasDeoptimizedCache=!0,this.usedBranch){const s=this.usedBranch===this.left?this.right:this.left;this.usedBranch=null,s.deoptimizePath(le),this.included&&s.includePath(le,Lt())}const{scope:{context:e},expressionsToBeDeoptimized:n}=this;this.expressionsToBeDeoptimized=Qe;for(const s of n)s.deoptimizeCache();e.requestTreeshakingPass()}deoptimizePath(e){const n=this.getUsedBranch();n?n.deoptimizePath(e):(this.left.deoptimizePath(e),this.right.deoptimizePath(e))}getLiteralValueAtPath(e,n,s){if(s===this)return Ce;const r=this.getUsedBranch();if(r)return this.expressionsToBeDeoptimized.push(s),r.getLiteralValueAtPath(e,n,s);if(!this.hasDeoptimizedCache&&!e.length){const i=Cs(this.right.getLiteralValueAtPath(e,n,s));if(typeof i!="symbol"){if(!i&&this.operator==="&&")return this.expressionsToBeDeoptimized.push(s),ii;if(i&&this.operator==="||")return this.expressionsToBeDeoptimized.push(s),ri}}return Ce}getReturnExpressionWhenCalledAtPath(e,n,s,r){const i=this.getUsedBranch();return i?(this.expressionsToBeDeoptimized.push(r),i.getReturnExpressionWhenCalledAtPath(e,n,s,r)):[new Ki([this.left.getReturnExpressionWhenCalledAtPath(e,n,s,r)[0],this.right.getReturnExpressionWhenCalledAtPath(e,n,s,r)[0]]),!1]}hasEffects(e){return!!this.left.hasEffects(e)||this.getUsedBranch()!==this.left&&this.right.hasEffects(e)}hasEffectsOnInteractionAtPath(e,n,s){const r=this.getUsedBranch();return r?r.hasEffectsOnInteractionAtPath(e,n,s):this.left.hasEffectsOnInteractionAtPath(e,n,s)||this.right.hasEffectsOnInteractionAtPath(e,n,s)}include(e,n){this.included=!0;const s=this.getUsedBranch();n||!s||s===this.right&&this.left.shouldBeIncluded(e)?(this.left.include(e,n),this.right.include(e,n)):s.include(e,n)}includePath(e,n){this.included=!0;const s=this.getUsedBranch();!s||s===this.right&&this.left.shouldBeIncluded(n)?(this.left.includePath(e,n),this.right.includePath(e,n)):s.includePath(e,n)}removeAnnotations(e){this.left.removeAnnotations(e)}render(e,n,{isCalleeOfRenderedParent:s,preventASI:r,renderedParentType:i,renderedSurroundingElement:a}=pt){if(this.left.included&&this.right.included)this.left.render(e,n,{preventASI:r,renderedSurroundingElement:a}),this.right.render(e,n);else{const l=ht(e.original,this.operator,this.left.end);if(this.right.included){const c=kn(e.original,l+2);e.remove(this.start,c),r&&ni(e,c,this.right.start),this.left.removeAnnotations(e)}else e.remove(function(c,u,d){for(;;){if(u>=d||!Em.test(c[d-1]))return d;d--}}(e.original,this.left.end,l),this.end);this.getUsedBranch().render(e,n,{isCalleeOfRenderedParent:s,preventASI:r,renderedParentType:i||this.parent.type,renderedSurroundingElement:a||this.parent.type})}}getUsedBranch(){if(!this.isBranchResolutionAnalysed){this.isBranchResolutionAnalysed=!0;const e=this.left.getLiteralValueAtPath(ue,Ge,this),n=Cs(e);if(typeof n=="symbol")return null;this.usedBranch=this.operator==="||"&&n||this.operator==="&&"&&!n||this.operator==="??"&&e!=null?this.left:this.right}return this.usedBranch}}lo.prototype.includeNode=ze,lo.prototype.applyDeoptimizations=Te;class tp extends te{hasEffects(e){this.deoptimized||this.applyDeoptimizations();for(const n of this.arguments)if(n.hasEffects(e))return!0;return!this.annotationPure&&(this.callee.hasEffects(e)||this.callee.hasEffectsOnInteractionAtPath(ue,this.interaction,e))}hasEffectsOnInteractionAtPath(e,{type:n}){return e.length>0||n!==0}include(e,n){this.included||this.includeNode(e),n?super.include(e,!0):(this.callee.include(e,!1),this.callee.includeCallArguments(this.interaction,e))}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.callee.includePath(le,e)}initialise(){super.initialise(),this.interaction={args:[null,...this.arguments],type:2,withNew:!0},this.annotations&&this.scope.context.options.treeshake.annotations&&(this.annotationPure=this.annotations.some(e=>e.type==="pure"))}render(e,n){this.callee.render(e,n),Fd(e,n,this)}applyDeoptimizations(){this.deoptimized=!0,this.callee.deoptimizeArgumentsOnInteractionAtPath(this.interaction,ue,Ge),this.scope.context.requestTreeshakingPass()}}class Ds extends te{constructor(){super(...arguments),this.objectEntity=null,this.protoProp=null}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizeCache(){this.getObjectEntity().deoptimizeAllProperties()}deoptimizePath(e){this.getObjectEntity().deoptimizePath(e)}getLiteralValueAtPath(e,n,s){return this.getObjectEntity().getLiteralValueAtPath(e,n,s)}getReturnExpressionWhenCalledAtPath(e,n,s,r){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(e,n,s,r)}hasEffectsOnInteractionAtPath(e,n,s){return this.getObjectEntity().hasEffectsOnInteractionAtPath(e,n,s)}include(e,n){this.included||this.includeNode(e),this.getObjectEntity().include(e,n),this.protoProp?.include(e,n)}includeNode(e){this.included=!0,this.protoProp?.includePath(le,e)}includePath(e,n){this.included||this.includeNode(n),this.getObjectEntity().includePath(e,n)}render(e,n,{renderedSurroundingElement:s}=pt){if(s!==Wt&&s!==ra||(e.appendRight(this.start,"("),e.prependLeft(this.end,")")),this.properties.length>0){const r=ti(this.properties,e,this.start+1,this.end-1);let i=null;for(const{node:a,separator:l,start:c,end:u}of r)a.included?(i=l,a.render(e,n)):fs(a,e,c,u);i&&e.remove(i,this.end-1)}}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;let e=Sn;const n=[];for(const s of this.properties){if(s instanceof qn){n.push({key:_e,kind:"init",property:s});continue}let r;if(s.computed){const i=s.key.getLiteralValueAtPath(ue,Ge,this);if(typeof i=="symbol"){n.push({key:_e,kind:s.kind,property:s});continue}r=String(i)}else if(r=s.key instanceof Fe?s.key.name:String(s.key.value),r==="__proto__"&&s.kind==="init"){this.protoProp=s,e=s.value instanceof It&&s.value.value===null?null:s.value;continue}n.push({key:r,kind:s.kind,property:s})}return this.objectEntity=new $t(n,e)}}Ds.prototype.applyDeoptimizations=Te;class np extends te{initialise(){const e=this.scope.context.module.id;return oe(da(xs(di(this.message)),e))}}class sp extends te{initialise(){const e=this.start,n=this.scope.context.module.id,s=da(xs(di(this.message,e)),n);this.scope.context.error(s,e)}}class ll extends te{}ll.prototype.includeNode=dt;class co extends te{constructor(){super(...arguments),this.hasCachedEffect=null,this.hasLoggedEffect=!1}hasCachedEffects(){return!!this.included&&(this.hasCachedEffect===null?this.hasCachedEffect=this.hasEffects(Mn()):this.hasCachedEffect)}hasEffects(e){for(const n of this.body)if(n.hasEffects(e)){if(this.scope.context.options.experimentalLogSideEffects&&!this.hasLoggedEffect){this.hasLoggedEffect=!0;const{code:s,log:r,module:i}=this.scope.context;r(Fn,Lm(s,i.id,oa(s,n.start,{offsetLine:1})),n.start)}return this.hasCachedEffect=!0}return!1}include(e,n){this.included=!0;for(const s of this.body)(n||s.shouldBeIncluded(e))&&s.include(e,n)}initialise(){if(super.initialise(),this.invalidAnnotations)for(const{start:e,end:n,type:s}of this.invalidAnnotations)this.scope.context.magicString.remove(e,n),s!=="pure"&&s!=="noSideEffects"||this.scope.context.log(Ee,Mm(this.scope.context.code.slice(e,n),this.scope.context.module.id,s),e)}render(e,n){let s=this.start;if(e.original.startsWith("#!")&&(s=Math.min(e.original.indexOf(`
39
+ `)+1,this.end),e.remove(0,s)),this.body.length>0){for(;e.original[s]==="/"&&/[*/]/.test(e.original[s+1]);){const r=Xs(e.original.slice(s,this.body[0].start));if(r[0]===-1)break;s+=r[1]}Ks(this.body,e,s,this.end,n)}else super.render(e,n)}}co.prototype.includeNode=ze,co.prototype.applyDeoptimizations=Te;class vr extends Ai{get method(){return Le(this.flags,262144)}set method(e){this.flags=Me(this.flags,262144,e)}get shorthand(){return Le(this.flags,524288)}set shorthand(e){this.flags=Me(this.flags,524288,e)}declare(e,n,s){return this.value.declare(e,this.getPathInProperty(n),s)}deoptimizeAssignment(e,n){this.value.deoptimizeAssignment?.(this.getPathInProperty(e),n)}hasEffects(e){return this.key.hasEffects(e)||this.value.hasEffects(e)}hasEffectsWhenDestructuring(e,n,s){return this.value.hasEffectsWhenDestructuring?.(e,this.getPathInProperty(n),s)}includeDestructuredIfNecessary(e,n,s){const r=this.getPathInProperty(n);let i=this.value.includeDestructuredIfNecessary(e,r,s)||this.included;return(i||=this.key.hasEffects(Mn()))&&(this.key.include(e,!1),this.value.included||(this.value.included=!0,this.value.includeDestructuredIfNecessary(e,r,s))),this.included=i}include(e,n){this.included=!0,this.key.include(e,n),this.value.include(e,n)}includePath(e,n){this.included=!0,this.value.includePath(e,n)}markDeclarationReached(){this.value.markDeclarationReached()}render(e,n){this.shorthand||this.key.render(e,n),this.value.render(e,n,{isShorthandProperty:this.shorthand})}getPathInProperty(e){return e.at(-1)===_e?e:this.computed?[...e,_e]:this.key instanceof Fe?[...e,this.key.name]:[...e,String(this.key.value)]}}vr.prototype.includeNode=ze,vr.prototype.applyDeoptimizations=Te;class cl extends te{get computed(){return Le(this.flags,1024)}set computed(e){this.flags=Me(this.flags,1024,e)}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.value?.deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizePath(e){this.value?.deoptimizePath(e)}getLiteralValueAtPath(e,n,s){return this.value?this.value.getLiteralValueAtPath(e,n,s):Ce}getReturnExpressionWhenCalledAtPath(e,n,s,r){return this.value?this.value.getReturnExpressionWhenCalledAtPath(e,n,s,r):it}hasEffects(e){return this.key.hasEffects(e)||this.static&&!!this.value?.hasEffects(e)||_a(this.decorators,e)}hasEffectsOnInteractionAtPath(e,n,s){return!this.value||this.value.hasEffectsOnInteractionAtPath(e,n,s)}includeNode(e){this.included=!0,this.value?.includePath(le,e);for(const n of this.decorators)n.includePath(le,e)}}cl.prototype.applyDeoptimizations=Te;class ul extends te{hasEffects(e){return!(e.ignore.returnYield&&!this.argument?.hasEffects(e))||(e.brokenFlow=!0,!1)}include(e,n){this.included||this.includeNode(e),this.argument?.include(e,n),e.brokenFlow=!0}includeNode(e){this.included=!0,this.argument?.includePath(le,e)}initialise(){super.initialise(),this.scope.addReturnExpression(this.argument||Pe)}render(e,n){this.argument&&(this.argument.render(e,n,{preventASI:!0}),this.argument.start===this.start+6&&e.prependLeft(this.start+6," "))}}ul.prototype.applyDeoptimizations=Te;class uo extends te{deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.expressions[this.expressions.length-1].deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizePath(e){this.expressions[this.expressions.length-1].deoptimizePath(e)}getLiteralValueAtPath(e,n,s){return this.expressions[this.expressions.length-1].getLiteralValueAtPath(e,n,s)}hasEffects(e){for(const n of this.expressions)if(n.hasEffects(e))return!0;return!1}hasEffectsOnInteractionAtPath(e,n,s){return this.expressions[this.expressions.length-1].hasEffectsOnInteractionAtPath(e,n,s)}include(e,n){this.included=!0;const s=this.expressions[this.expressions.length-1];for(const r of this.expressions)(n||r===s&&!(this.parent instanceof Bt)||r.shouldBeIncluded(e))&&r.include(e,n)}includePath(e,n){this.included=!0,this.expressions[this.expressions.length-1].includePath(e,n)}removeAnnotations(e){this.expressions[0].removeAnnotations(e)}render(e,n,{renderedParentType:s,isCalleeOfRenderedParent:r,preventASI:i}=pt){let a=0,l=null;const c=this.expressions[this.expressions.length-1];for(const{node:u,separator:d,start:m,end:f}of ti(this.expressions,e,this.start,this.end))if(u.included)if(a++,l=d,a===1&&i&&ni(e,m,u.start),a===1){const g=s||this.parent.type;u.render(e,n,{isCalleeOfRenderedParent:r&&u===c,renderedParentType:g,renderedSurroundingElement:g})}else u.render(e,n);else fs(u,e,m,f);l&&e.remove(l,this.end)}}uo.prototype.includeNode=ze,uo.prototype.applyDeoptimizations=Te;class rp extends te{bind(){this.variable=this.scope.findVariable("this")}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.variable.deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizePath(e){this.variable.deoptimizePath(e)}include(e){this.included||this.includeNode(e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.scope.context.includeVariableInModule(this.variable,ue,e)}}class _r extends te{hasEffects(e){if(this.test?.hasEffects(e))return!0;for(const n of this.consequent){if(e.brokenFlow)break;if(n.hasEffects(e))return!0}return!1}include(e,n){this.included=!0,this.test?.include(e,n);for(const s of this.consequent)(n||s.shouldBeIncluded(e))&&s.include(e,n)}render(e,n,s){if(this.test&&(this.test.render(e,n),this.test.start===this.start+4&&e.prependLeft(this.test.start," ")),this.consequent.length>0){const r=this.test?this.test.end:ht(e.original,"default",this.start)+7,i=ht(e.original,":",r)+1;Ks(this.consequent,e,i,s.end,n)}}}_r.prototype.needsBoundaries=!0,_r.prototype.includeNode=ze,_r.prototype.applyDeoptimizations=Te;class ho extends te{createScope(e){this.parentScope=e,this.scope=new Gn(e)}hasEffects(e){if(this.discriminant.hasEffects(e))return!0;const{brokenFlow:n,hasBreak:s,ignore:r}=e,{breaks:i}=r;r.breaks=!0,e.hasBreak=!1;let a=!0;for(const l of this.cases){if(l.hasEffects(e))return!0;a&&=e.brokenFlow&&!e.hasBreak,e.hasBreak=!1,e.brokenFlow=n}return this.defaultCase!==null&&(e.brokenFlow=a),r.breaks=i,e.hasBreak=s,!1}include(e,n){this.included=!0,this.discriminant.include(e,n);const{brokenFlow:s,hasBreak:r}=e;e.hasBreak=!1;let i=!0,a=n||this.defaultCase!==null&&this.defaultCase<this.cases.length-1;for(let l=this.cases.length-1;l>=0;l--){const c=this.cases[l];if(c.included&&(a=!0),!a){const u=Mn();u.ignore.breaks=!0,a=c.hasEffects(u)}a?(c.include(e,n),i&&=e.brokenFlow&&!e.hasBreak,e.hasBreak=!1,e.brokenFlow=s):i=s}a&&this.defaultCase!==null&&(e.brokenFlow=i),e.hasBreak=r}initialise(){super.initialise();for(let e=0;e<this.cases.length;e++)if(this.cases[e].test===null)return void(this.defaultCase=e);this.defaultCase=null}parseNode(e){return this.discriminant=new(this.scope.context.getNodeConstructor(e.discriminant.type))(this,this.parentScope).parseNode(e.discriminant),super.parseNode(e)}render(e,n){this.discriminant.render(e,n),this.cases.length>0&&Ks(this.cases,e,this.cases[0].start,this.end-1,n)}}ho.prototype.includeNode=ze,ho.prototype.applyDeoptimizations=Te;class hl extends Bd{get hasCheckedForWarnings(){return Le(this.flags,268435456)}set hasCheckedForWarnings(e){this.flags=Me(this.flags,268435456,e)}bind(){super.bind()}hasEffects(e){this.deoptimized||this.applyDeoptimizations();for(const n of this.quasi.expressions)if(n.hasEffects(e))return!0;return this.tag.hasEffects(e)||this.tag.hasEffectsOnInteractionAtPath(ue,this.interaction,e)}include(e,n){this.included||this.includeNode(e),n?super.include(e,!0):(this.quasi.include(e,!1),this.tag.include(e,!1),this.tag.includeCallArguments(this.interaction,e))}initialise(){super.initialise(),this.args=[Pe,...this.quasi.expressions],this.interaction={args:[this.tag instanceof mn&&!this.tag.variable?this.tag.object:null,...this.args],type:2,withNew:!1}}render(e,n){if(this.tag.render(e,n,{isCalleeOfRenderedParent:!0}),this.quasi.render(e,n),!this.hasCheckedForWarnings&&this.tag.type===ia){this.hasCheckedForWarnings=!0;const s=this.tag.name;this.scope.findVariable(s).isNamespace&&this.scope.context.log(Ee,gh(s),this.start)}}applyDeoptimizations(){this.deoptimized=!0,this.tag.deoptimizeArgumentsOnInteractionAtPath(this.interaction,ue,Ge),this.scope.context.requestTreeshakingPass()}getReturnExpression(e=Ge){return this.returnExpression===null?(this.returnExpression=it,this.returnExpression=this.tag.getReturnExpressionWhenCalledAtPath(ue,this.interaction,e,this)):this.returnExpression}}hl.prototype.includeNode=dt;class dl extends te{get tail(){return Le(this.flags,1048576)}set tail(e){this.flags=Me(this.flags,1048576,e)}bind(){}hasEffects(){return!1}parseNode(e){return this.value=e.value,super.parseNode(e)}render(){}}dl.prototype.includeNode=dt;class ip extends te{deoptimizeArgumentsOnInteractionAtPath(){}getLiteralValueAtPath(e){return e.length>0||this.quasis.length!==1?Ce:this.quasis[0].value.cooked}getReturnExpressionWhenCalledAtPath(e){return e.length!==1?it:ir(sr,e[0])}hasEffectsOnInteractionAtPath(e,n,s){return n.type===0?e.length>1:n.type!==2||e.length!==1||rr(sr,e[0],n,s)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations();for(const n of this.expressions)n.includePath(le,e)}render(e,n){e.indentExclusionRanges.push([this.start,this.end]),super.render(e,n)}}class op extends St{constructor(e,n){super(e,n),this.variables.set("this",new Dt("this",null,un,ue,n,"other"))}addDeclaration(e,n,s,r,i){return this.context.module.importDescriptions.has(e.name)&&n.error(ks(e.name),e.start),super.addDeclaration(e,n,s,r,i)}addExportDefaultDeclaration(e,n,s){const r=new Yt(e,n,s);return this.variables.set("default",r),r}addNamespaceMemberAccess(){}deconflict(e,n,s){for(const r of this.children)r.deconflict(e,n,s)}findLexicalBoundary(){return this}findVariable(e){const n=this.variables.get(e)||this.accessedOutsideVariables.get(e);if(n)return n;const s=this.context.traceVariable(e)||this.parent.findVariable(e);return s instanceof va&&this.accessedOutsideVariables.set(e,s),s}}class ap extends te{bind(){this.variable=this.scope.findVariable("this")}deoptimizeArgumentsOnInteractionAtPath(e,n,s){this.variable.deoptimizeArgumentsOnInteractionAtPath(e,n,s)}deoptimizePath(e){this.variable.deoptimizePath(e)}hasEffectsOnInteractionAtPath(e,n,s){return e.length===0?n.type!==0:this.variable.hasEffectsOnInteractionAtPath(e,n,s)}include(e){this.included||this.includeNode(e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.scope.context.includeVariableInModule(this.variable,ue,e)}includePath(e,n){this.included?e.length>0&&this.variable.includePath(e,n):(this.included=!0,this.scope.context.includeVariableInModule(this.variable,e,n));const s=function(r,i){for(;!(r instanceof Qh&&r.thisVariable===i);){if(!(r instanceof St))return null;r=r.parent}return r}(this.scope,this.variable);s&&s.functionNode.parent instanceof vr&&s.functionNode.parent.parent instanceof Ds&&s.functionNode.parent.parent.includePath(e,n)}initialise(){super.initialise(),this.alias=this.scope.findLexicalBoundary()instanceof op?this.scope.context.moduleContext:null,this.alias==="undefined"&&this.scope.context.log(Ee,{code:"THIS_IS_UNDEFINED",message:"The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten",url:ot("troubleshooting/#error-this-is-undefined")},this.start)}render(e){this.alias!==null&&e.overwrite(this.start,this.end,this.alias,{contentOnly:!1,storeName:!0})}}class lp extends te{hasEffects(){return!0}include(e,n){this.included||this.includeNode(e),this.argument.include(e,n),e.brokenFlow=!0}includeNode(e){this.included||(this.included=!0,this.argument.includePath(le,e))}render(e,n){this.argument.render(e,n,{preventASI:!0}),this.argument.start===this.start+5&&e.prependLeft(this.start+5," ")}}class po extends te{constructor(){super(...arguments),this.directlyIncluded=!1,this.includedLabelsAfterBlock=null}hasEffects(e){return(this.scope.context.options.treeshake.tryCatchDeoptimization?this.block.body.length>0:this.block.hasEffects(e))||!!this.finalizer?.hasEffects(e)}include(e,n){const s=this.scope.context.options.treeshake?.tryCatchDeoptimization,{brokenFlow:r,includedLabels:i}=e;if(this.directlyIncluded&&s){if(this.includedLabelsAfterBlock)for(const a of this.includedLabelsAfterBlock)i.add(a)}else this.included=!0,this.directlyIncluded=!0,this.block.include(e,s?$h:n),i.size>0&&(this.includedLabelsAfterBlock=[...i]),e.brokenFlow=r;this.handler!==null&&(this.handler.include(e,n),e.brokenFlow=r),this.finalizer?.include(e,n)}}po.prototype.includeNode=ze,po.prototype.applyDeoptimizations=Te;const Wg={"!":t=>!t,"+":t=>+t,"-":t=>-t,delete:()=>Ce,typeof:t=>typeof t,void:()=>{},"~":t=>~t},cp=Symbol("Unassigned");class pl extends te{constructor(){super(...arguments),this.renderedLiteralValue=cp}get prefix(){return Le(this.flags,2097152)}set prefix(e){this.flags=Me(this.flags,2097152,e)}deoptimizeCache(){this.renderedLiteralValue=Ce}getLiteralValueAtPath(e,n,s){if(e.length>0)return Ce;const r=this.argument.getLiteralValueAtPath(ue,n,s);if(typeof r=="symbol"){if(this.operator==="void")return;if(this.operator==="!"){if(r===ii)return!0;if(r===ri)return!1}return Ce}return Wg[this.operator](r)}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),!(this.operator==="typeof"&&this.argument instanceof Fe)&&(this.argument.hasEffects(e)||this.operator==="delete"&&this.argument.hasEffectsOnInteractionAtPath(ue,sa,e))}hasEffectsOnInteractionAtPath(e,{type:n}){return n!==0||e.length>(this.operator==="void"?0:1)}applyDeoptimizations(){this.deoptimized=!0,this.operator==="delete"&&(this.argument.deoptimizePath(ue),this.scope.context.requestTreeshakingPass())}getRenderedLiteralValue(e){return this.renderedLiteralValue!==cp?this.renderedLiteralValue:this.renderedLiteralValue=e?Ce:Ld(this.getLiteralValueAtPath(ue,Ge,this))}include(e,n,s){this.deoptimized||this.applyDeoptimizations(),this.included=!0;const r=this.argument instanceof Fe&&this.argument.variable?.included;(typeof this.getRenderedLiteralValue(n)=="symbol"||this.argument.shouldBeIncluded(e)||r)&&(this.argument.include(e,n),this.renderedLiteralValue=Ce)}render(e,n){if(typeof this.renderedLiteralValue=="symbol")super.render(e,n);else{let s=this.renderedLiteralValue;Xg.test(e.original[this.start-1])||(s=` ${s}`),e.overwrite(this.start,this.end,s)}}}const Xg=/[\s([=%&*+-/<>^|,?:;]/;pl.prototype.includeNode=dt;class fl extends te{hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),this.argument.hasEffectsAsAssignmentTarget(e,!0)}hasEffectsOnInteractionAtPath(e,{type:n}){return e.length>1||n!==0}include(e,n){this.included||this.includeNode(e),this.argument.includeAsAssignmentTarget(e,n,!0)}initialise(){super.initialise(),this.argument.setAssignedValue(Pe)}render(e,n){const{exportNamesByVariable:s,format:r,snippets:{_:i}}=n;if(this.argument.render(e,n),r==="system"){const a=this.argument.variable,l=s.get(a);if(l)if(this.prefix)l.length===1?Zo(a,this.start,this.end,e,n):Vu(a,this.start,this.end,this.parent.type!==Wt,e,n);else{const c=this.operator[0];(function(u,d,m,f,g,w,k){const{_:I}=w.snippets;g.prependRight(d,`${On([u],w,k)},${I}`),f&&(g.prependRight(d,"("),g.appendLeft(m,")"))})(a,this.start,this.end,this.parent.type!==Wt,e,n,`${i}${c}${i}1`)}}}applyDeoptimizations(){this.deoptimized=!0,this.argument.deoptimizePath(ue),this.argument instanceof Fe&&this.scope.findVariable(this.argument.name).markReassigned(),this.scope.context.requestTreeshakingPass()}}fl.prototype.includeNode=dt;class Pr extends te{deoptimizePath(){for(const e of this.declarations)e.deoptimizePath(ue)}hasEffectsOnInteractionAtPath(){return!1}include(e,n,{asSingleStatement:s}=pt){this.included=!0;for(const r of this.declarations){(n||r.shouldBeIncluded(e))&&r.include(e,n);const{id:i,init:a}=r;s&&i.include(e,n),a&&i.included&&!a.included&&(i instanceof vn||i instanceof zi)&&a.include(e,n)}}initialise(){super.initialise(),this.isUsingDeclaration=this.kind==="await using"||this.kind==="using";for(const e of this.declarations)e.declareDeclarator(this.kind,this.isUsingDeclaration)}removeAnnotations(e){this.declarations[0].removeAnnotations(e)}render(e,n,s=pt){if(this.isUsingDeclaration||function(r,i){for(const a of r){if(!a.id.included)return!1;if(a.id.type===ia){if(i.has(a.id.variable))return!1}else{const l=[];if(a.id.addExportedVariables(l,i),l.length>0)return!1}}return!0}(this.declarations,n.exportNamesByVariable)){for(const r of this.declarations)r.render(e,n);s.isNoStatement||e.original.charCodeAt(this.end-1)===59||e.appendLeft(this.end,";")}else this.renderReplacedDeclarations(e,n)}renderDeclarationEnd(e,n,s,r,i,a,l){e.original.charCodeAt(this.end-1)===59&&e.remove(this.end-1,this.end),n+=";",s===null?e.appendLeft(i,n):(e.original.charCodeAt(r-1)!==10||e.original.charCodeAt(this.end)!==10&&e.original.charCodeAt(this.end)!==13||(r--,e.original.charCodeAt(r)===13&&r--),r===s+1?e.overwrite(s,i,n):(e.overwrite(s,s+1,n),e.remove(r,i))),a.length>0&&e.appendLeft(i,` ${On(a,l)};`)}renderReplacedDeclarations(e,n){const s=ti(this.declarations,e,this.start+this.kind.length,this.end-(e.original.charCodeAt(this.end-1)===59?1:0));let r,i;i=kn(e.original,this.start+this.kind.length);let a=i-1;e.remove(this.start,a);let l,c=!1,u=!1,d="";const m=[],f=function(g,w,k){let I=null;if(w.format==="system"){for(const{node:E}of g)E.id instanceof Fe&&E.init&&k.length===0&&w.exportNamesByVariable.get(E.id.variable)?.length===1?(I=E.id.variable,k.push(I)):E.id.addExportedVariables(k,w.exportNamesByVariable);k.length>1?I=null:I&&(k.length=0)}return I}(s,n,m);for(const{node:g,start:w,separator:k,contentEnd:I,end:E}of s)if(g.included){if(g.render(e,n),l="",!g.id.included||g.id instanceof Fe&&qd(g.id.variable,n.exportNamesByVariable))u&&(d+=";"),c=!1;else{if(f&&f===g.id.variable){const b=ht(e.original,"=",g.id.end);Zo(f,kn(e.original,b+1),k===null?I:k,e,n)}c?d+=",":(u&&(d+=";"),l+=`${this.kind} `,c=!0)}i===a+1?e.overwrite(a,i,d+l):(e.overwrite(a,a+1,d),e.appendLeft(i,l)),r=I,i=E,u=!0,a=k,d=""}else fs(g,e,w,E);this.renderDeclarationEnd(e,d,a,r,i,m,n)}}Pr.prototype.includeNode=ze,Pr.prototype.applyDeoptimizations=Te;class fo extends te{hasEffects(e){return!!this.test.hasEffects(e)||Qi(e,this.body)}include(e,n){this.included=!0,this.test.include(e,n),kr(e,this.body,n)}}fo.prototype.includeNode=ze,fo.prototype.applyDeoptimizations=Te;class up extends te{applyDeoptimizations(){this.deoptimized=!0,this.argument?.deoptimizePath(le)}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),!(e.ignore.returnYield&&!this.argument?.hasEffects(e))}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.argument?.includePath(le,e)}render(e,n){this.argument&&(this.argument.render(e,n,{preventASI:!0}),this.argument.start===this.start+5&&e.prependLeft(this.start+5," "))}}const Kg=["PanicError","ParseError","ArrayExpression","ArrayPattern","ArrowFunctionExpression","AssignmentExpression","AssignmentPattern","AwaitExpression","BinaryExpression","BlockStatement","BreakStatement","CallExpression","CatchClause","ChainExpression","ClassBody","ClassDeclaration","ClassExpression","ConditionalExpression","ContinueStatement","DebuggerStatement","Decorator","ExpressionStatement","DoWhileStatement","EmptyStatement","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportSpecifier","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","FunctionExpression","Identifier","IfStatement","ImportAttribute","ImportDeclaration","ImportDefaultSpecifier","ImportExpression","ImportNamespaceSpecifier","ImportSpecifier","JSXAttribute","JSXClosingElement","JSXClosingFragment","JSXElement","JSXEmptyExpression","JSXExpressionContainer","JSXFragment","JSXIdentifier","JSXMemberExpression","JSXNamespacedName","JSXOpeningElement","JSXOpeningFragment","JSXSpreadAttribute","JSXSpreadChild","JSXText","LabeledStatement","Literal","Literal","Literal","Literal","Literal","Literal","LogicalExpression","MemberExpression","MetaProperty","MethodDefinition","NewExpression","ObjectExpression","ObjectPattern","PrivateIdentifier","Program","Property","PropertyDefinition","RestElement","ReturnStatement","SequenceExpression","SpreadElement","StaticBlock","Super","SwitchCase","SwitchStatement","TaggedTemplateExpression","TemplateElement","TemplateLiteral","ThisExpression","ThrowStatement","TryStatement","UnaryExpression","UpdateExpression","VariableDeclaration","VariableDeclarator","WhileStatement","YieldExpression"],Jg=[np,sp,Aa,zi,xr,Dd,Od,Ui,Wa,Wn,qi,Xa,Hi,Gi,Wi,_s,Xi,Ji,Yi,Ka,Ja,Bt,Zi,Ya,Ts,Kn,Er,eo,Bt,jd,zd,to,Ps,Qa,Fe,Rs,Ud,Ar,wr,Za,Sr,ro,io,Xd,Kd,Jd,Ir,ao,Yd,el,Qd,rl,il,Zd,oo,ep,ol,al,It,It,It,It,It,It,lo,mn,ld,wi,tp,Ds,vn,ll,co,vr,cl,Xn,ul,uo,qn,Si,rp,_r,ho,hl,dl,ip,ap,lp,po,pl,fl,Pr,so,fo,up],Yg=[function(t,e,n){t.message=n.convertString(n[e])},function(t,e,n){t.message=n.convertString(n[e])},function(t,e,n){const{scope:s}=t;t.elements=Ue(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.elements=Ue(t,s,n[e],n)},function(t,e,n){const{scope:s}=t,r=n[e];t.async=!(1&~r),t.expression=!(2&~r),t.generator=!(4&~r);const i=t.annotations=Rt(n[e+1],n);t.annotationNoSideEffects=i.some(l=>l.type==="noSideEffects");const a=t.params=Ue(t,s,n[e+2],n);s.addParameterVariables(a.map(l=>l.declare("parameter",ue,Pe)),a[a.length-1]instanceof Xn),t.body=Q(t,s.bodyScope,n[e+3],n)},function(t,e,n){const{scope:s}=t;t.operator=yt[n[e]],t.left=Q(t,s,n[e+1],n),t.right=Q(t,s,n[e+2],n)},function(t,e,n){const{scope:s}=t;t.left=Q(t,s,n[e],n),t.right=Q(t,s,n[e+1],n)},function(t,e,n){const{scope:s}=t;t.argument=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.operator=yt[n[e]],t.left=Q(t,s,n[e+1],n),t.right=Q(t,s,n[e+2],n)},function(t,e,n){const{scope:s}=t;t.body=Ue(t,s,n[e],n)},function(t,e,n){const{scope:s}=t,r=n[e];t.label=r===0?null:Q(t,s,r,n)},function(t,e,n){const{scope:s}=t,r=n[e];t.optional=!(1&~r),t.annotations=Rt(n[e+1],n),t.callee=Q(t,s,n[e+2],n),t.arguments=Ue(t,s,n[e+3],n)},function(t,e,n){const{scope:s}=t,r=n[e];(t.param=r===0?null:Q(t,s,r,n))?.declare("parameter",ue,Pe),t.body=Q(t,s.bodyScope,n[e+1],n)},function(t,e,n){const{scope:s}=t;t.expression=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t,r=n[e];if(r){const i=n[r],a=t.body=new Array(i);for(let l=0;l<i;l++){const c=n[r+1+l];a[l]=Q(t,n[c]===79||1&n[c+3]?s:s.instanceScope,c,n)}}else t.body=[]},function(t,e,n){const{scope:s}=t;t.decorators=Ue(t,s,n[e],n);const r=n[e+1];t.id=r===0?null:Q(t,s.parent,r,n);const i=n[e+2];t.superClass=i===0?null:Q(t,s,i,n),t.body=Q(t,s,n[e+3],n)},function(t,e,n){const{scope:s}=t;t.decorators=Ue(t,s,n[e],n);const r=n[e+1];t.id=r===0?null:Q(t,s,r,n);const i=n[e+2];t.superClass=i===0?null:Q(t,s,i,n),t.body=Q(t,s,n[e+3],n)},function(t,e,n){const{scope:s}=t;t.test=Q(t,s,n[e],n),t.consequent=Q(t,s,n[e+1],n),t.alternate=Q(t,s,n[e+2],n)},function(t,e,n){const{scope:s}=t,r=n[e];t.label=r===0?null:Q(t,s,r,n)},function(){},function(t,e,n){const{scope:s}=t;t.expression=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.directive=n.convertString(n[e]),t.expression=Q(t,s,n[e+1],n)},function(t,e,n){const{scope:s}=t;t.body=Q(t,s,n[e],n),t.test=Q(t,s,n[e+1],n)},function(){},function(t,e,n){const{scope:s}=t,r=n[e];t.exported=r===0?null:Q(t,s,r,n),t.source=Q(t,s,n[e+1],n),t.attributes=Ue(t,s,n[e+2],n)},function(t,e,n){const{scope:s}=t;t.declaration=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.specifiers=Ue(t,s,n[e],n);const r=n[e+1];t.source=r===0?null:Q(t,s,r,n),t.attributes=Ue(t,s,n[e+2],n);const i=n[e+3];t.declaration=i===0?null:Q(t,s,i,n)},function(t,e,n){const{scope:s}=t;t.local=Q(t,s,n[e],n);const r=n[e+1];t.exported=r===0?t.local:Q(t,s,r,n)},function(t,e,n){const{scope:s}=t;t.expression=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.left=Q(t,s,n[e],n),t.right=Q(t,s,n[e+1],n),t.body=Q(t,s,n[e+2],n)},function(t,e,n){const{scope:s}=t,r=n[e];t.await=!(1&~r),t.left=Q(t,s,n[e+1],n),t.right=Q(t,s,n[e+2],n),t.body=Q(t,s,n[e+3],n)},function(t,e,n){const{scope:s}=t,r=n[e];t.init=r===0?null:Q(t,s,r,n);const i=n[e+1];t.test=i===0?null:Q(t,s,i,n);const a=n[e+2];t.update=a===0?null:Q(t,s,a,n),t.body=Q(t,s,n[e+3],n)},function(t,e,n){const{scope:s}=t,r=n[e];t.async=!(1&~r),t.generator=!(2&~r);const i=t.annotations=Rt(n[e+1],n);t.annotationNoSideEffects=i.some(c=>c.type==="noSideEffects");const a=n[e+2];t.id=a===0?null:Q(t,s.parent,a,n);const l=t.params=Ue(t,s,n[e+3],n);s.addParameterVariables(l.map(c=>c.declare("parameter",ue,Pe)),l[l.length-1]instanceof Xn),t.body=Q(t,s.bodyScope,n[e+4],n)},function(t,e,n){const{scope:s}=t,r=n[e];t.async=!(1&~r),t.generator=!(2&~r);const i=t.annotations=Rt(n[e+1],n);t.annotationNoSideEffects=i.some(c=>c.type==="noSideEffects");const a=n[e+2];t.id=a===0?null:Q(t,t.idScope,a,n);const l=t.params=Ue(t,s,n[e+3],n);s.addParameterVariables(l.map(c=>c.declare("parameter",ue,Pe)),l[l.length-1]instanceof Xn),t.body=Q(t,s.bodyScope,n[e+4],n)},function(t,e,n){t.name=n.convertString(n[e])},function(t,e,n){const{scope:s}=t;t.test=Q(t,s,n[e],n),t.consequent=Q(t,t.consequentScope=new no(s),n[e+1],n);const r=n[e+2];t.alternate=r===0?null:Q(t,t.alternateScope=new no(s),r,n)},function(t,e,n){const{scope:s}=t;t.key=Q(t,s,n[e],n),t.value=Q(t,s,n[e+1],n)},function(t,e,n){const{scope:s}=t;t.specifiers=Ue(t,s,n[e],n),t.source=Q(t,s,n[e+1],n),t.attributes=Ue(t,s,n[e+2],n)},function(t,e,n){const{scope:s}=t;t.local=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.source=Q(t,s,n[e],n),t.sourceAstNode=Y(n[e],n);const r=n[e+1];t.options=r===0?null:Q(t,s,r,n)},function(t,e,n){const{scope:s}=t;t.local=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t,r=n[e];t.local=Q(t,s,n[e+1],n),t.imported=r===0?t.local:Q(t,s,r,n)},function(t,e,n){const{scope:s}=t;t.name=Q(t,s,n[e],n);const r=n[e+1];t.value=r===0?null:Q(t,s,r,n)},function(t,e,n){const{scope:s}=t;t.name=Q(t,s,n[e],n)},function(){},function(t,e,n){const{scope:s}=t;t.openingElement=Q(t,s,n[e],n),t.children=Ue(t,s,n[e+1],n);const r=n[e+2];t.closingElement=r===0?null:Q(t,s,r,n)},function(){},function(t,e,n){const{scope:s}=t;t.expression=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.openingFragment=Q(t,s,n[e],n),t.children=Ue(t,s,n[e+1],n),t.closingFragment=Q(t,s,n[e+2],n)},function(t,e,n){t.name=n.convertString(n[e])},function(t,e,n){const{scope:s}=t;t.object=Q(t,s,n[e],n),t.property=Q(t,s,n[e+1],n)},function(t,e,n){const{scope:s}=t;t.namespace=Q(t,s,n[e],n),t.name=Q(t,s,n[e+1],n)},function(t,e,n){const{scope:s}=t,r=n[e];t.selfClosing=!(1&~r),t.name=Q(t,s,n[e+1],n),t.attributes=Ue(t,s,n[e+2],n)},function(t){t.attributes=[],t.selfClosing=!1},function(t,e,n){const{scope:s}=t;t.argument=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.expression=Q(t,s,n[e],n)},function(t,e,n){t.value=n.convertString(n[e]),t.raw=n.convertString(n[e+1])},function(t,e,n){const{scope:s}=t;t.label=Q(t,s,n[e],n),t.body=Q(t,s,n[e+1],n)},function(t,e,n){const s=t.bigint=n.convertString(n[e]);t.raw=n.convertString(n[e+1]),t.value=BigInt(s)},function(t,e,n){const s=n[e],r=t.value=!(1&~s);t.raw=r?"true":"false"},function(t){t.value=null},function(t,e,n){const s=n[e];t.raw=s===0?void 0:n.convertString(s),t.value=new DataView(n.buffer).getFloat64(e+1<<2,!0)},function(t,e,n){const s=n.convertString(n[e]),r=n.convertString(n[e+1]);t.raw=`/${r}/${s}`,t.regex={flags:s,pattern:r},t.value=new RegExp(r,s)},function(t,e,n){t.value=n.convertString(n[e]);const s=n[e+1];t.raw=s===0?void 0:n.convertString(s)},function(t,e,n){const{scope:s}=t;t.operator=yt[n[e]],t.left=Q(t,s,n[e+1],n),t.right=Q(t,s,n[e+2],n)},function(t,e,n){const{scope:s}=t,r=n[e];t.computed=!(1&~r),t.optional=!(2&~r),t.object=Q(t,s,n[e+1],n),t.property=Q(t,s,n[e+2],n)},function(t,e,n){const{scope:s}=t;t.meta=Q(t,s,n[e],n),t.property=Q(t,s,n[e+1],n)},function(t,e,n){const{scope:s}=t,r=n[e];t.static=!(1&~r),t.computed=!(2&~r),t.decorators=Ue(t,s,n[e+1],n),t.key=Q(t,s,n[e+2],n),t.value=Q(t,s,n[e+3],n),t.kind=yt[n[e+4]]},function(t,e,n){const{scope:s}=t;t.annotations=Rt(n[e],n),t.callee=Q(t,s,n[e+1],n),t.arguments=Ue(t,s,n[e+2],n)},function(t,e,n){const{scope:s}=t;t.properties=Ue(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.properties=Ue(t,s,n[e],n)},function(t,e,n){t.name=n.convertString(n[e])},function(t,e,n){const{scope:s}=t;t.body=Ue(t,s,n[e],n),t.invalidAnnotations=Rt(n[e+1],n)},function(t,e,n){const{scope:s}=t,r=n[e];t.method=!(1&~r),t.shorthand=!(2&~r),t.computed=!(4&~r);const i=n[e+1];t.value=Q(t,s,n[e+2],n),t.kind=yt[n[e+3]],t.key=i===0?t.value:Q(t,s,i,n)},function(t,e,n){const{scope:s}=t,r=n[e];t.static=!(1&~r),t.computed=!(2&~r),t.decorators=Ue(t,s,n[e+1],n),t.key=Q(t,s,n[e+2],n);const i=n[e+3];t.value=i===0?null:Q(t,s,i,n)},function(t,e,n){const{scope:s}=t;t.argument=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t,r=n[e];t.argument=r===0?null:Q(t,s,r,n)},function(t,e,n){const{scope:s}=t;t.expressions=Ue(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.argument=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.body=Ue(t,s,n[e],n)},function(){},function(t,e,n){const{scope:s}=t,r=n[e];t.test=r===0?null:Q(t,s,r,n),t.consequent=Ue(t,s,n[e+1],n)},function(t,e,n){const{scope:s}=t;t.discriminant=Q(t,t.parentScope,n[e],n),t.cases=Ue(t,s,n[e+1],n)},function(t,e,n){const{scope:s}=t;t.tag=Q(t,s,n[e],n),t.quasi=Q(t,s,n[e+1],n)},function(t,e,n){const s=n[e];t.tail=!(1&~s);const r=n[e+1],i=r===0?void 0:n.convertString(r),a=n.convertString(n[e+2]);t.value={cooked:i,raw:a}},function(t,e,n){const{scope:s}=t;t.quasis=Ue(t,s,n[e],n),t.expressions=Ue(t,s,n[e+1],n)},function(){},function(t,e,n){const{scope:s}=t;t.argument=Q(t,s,n[e],n)},function(t,e,n){const{scope:s}=t;t.block=Q(t,s,n[e],n);const r=n[e+1];t.handler=r===0?null:Q(t,s,r,n);const i=n[e+2];t.finalizer=i===0?null:Q(t,s,i,n)},function(t,e,n){const{scope:s}=t;t.operator=yt[n[e]],t.argument=Q(t,s,n[e+1],n)},function(t,e,n){const{scope:s}=t,r=n[e];t.prefix=!(1&~r),t.operator=yt[n[e+1]],t.argument=Q(t,s,n[e+2],n)},function(t,e,n){const{scope:s}=t;t.kind=yt[n[e]],t.declarations=Ue(t,s,n[e+1],n)},function(t,e,n){const{scope:s}=t;t.id=Q(t,s,n[e],n);const r=n[e+1];t.init=r===0?null:Q(t,s,r,n)},function(t,e,n){const{scope:s}=t;t.test=Q(t,s,n[e],n),t.body=Q(t,s,n[e+1],n)},function(t,e,n){const{scope:s}=t,r=n[e];t.delegate=!(1&~r);const i=n[e+1];t.argument=i===0?null:Q(t,s,i,n)}];function Q(t,e,n,s){const r=s[n],i=Jg[r];if(!i)throw console.trace(),new Error(`Unknown node type: ${r}`);const a=new i(t,e);return a.type=Kg[r],a.start=s[n+1],a.end=s[n+2],Yg[r](a,n+3,s),a.initialise(),a}function Ue(t,e,n,s){if(n===0)return Qe;const r=s[n++],i=new Array(r);for(let a=0;a<r;a++){const l=s[n++];i[a]=l?Q(t,e,l,s):null}return i}const ml={ArrayExpression:Aa,ArrayPattern:zi,ArrowFunctionExpression:xr,AssignmentExpression:Dd,AssignmentPattern:Od,AwaitExpression:Ui,BinaryExpression:Wa,BlockStatement:Wn,BreakStatement:qi,CallExpression:Xa,CatchClause:Hi,ChainExpression:Gi,ClassBody:Wi,ClassDeclaration:_s,ClassExpression:Xi,ConditionalExpression:Ji,ContinueStatement:Yi,DebuggerStatement:Ka,Decorator:Ja,DoWhileStatement:Zi,EmptyStatement:Ya,ExportAllDeclaration:Ts,ExportDefaultDeclaration:Kn,ExportNamedDeclaration:Er,ExportSpecifier:eo,ExpressionStatement:Bt,ForInStatement:jd,ForOfStatement:zd,ForStatement:to,FunctionDeclaration:Ps,FunctionExpression:Qa,Identifier:Fe,IfStatement:Rs,ImportAttribute:Ud,ImportDeclaration:Ar,ImportDefaultSpecifier:wr,ImportExpression:Za,ImportNamespaceSpecifier:Sr,ImportSpecifier:ro,JSXAttribute:io,JSXClosingElement:Xd,JSXClosingFragment:Kd,JSXElement:Jd,JSXEmptyExpression:Ir,JSXExpressionContainer:ao,JSXFragment:Yd,JSXIdentifier:el,JSXMemberExpression:Qd,JSXNamespacedName:rl,JSXOpeningElement:il,JSXOpeningFragment:Zd,JSXSpreadAttribute:oo,JSXSpreadChild:ep,JSXText:ol,LabeledStatement:al,Literal:It,LogicalExpression:lo,MemberExpression:mn,MetaProperty:ld,MethodDefinition:wi,NewExpression:tp,ObjectExpression:Ds,ObjectPattern:vn,PanicError:np,ParseError:sp,PrivateIdentifier:ll,Program:co,Property:vr,PropertyDefinition:cl,RestElement:Xn,ReturnStatement:ul,SequenceExpression:uo,SpreadElement:qn,StaticBlock:Si,Super:rp,SwitchCase:_r,SwitchStatement:ho,TaggedTemplateExpression:hl,TemplateElement:dl,TemplateLiteral:ip,ThisExpression:ap,ThrowStatement:lp,TryStatement:po,UnaryExpression:pl,UnknownNode:class extends te{hasEffects(){return!0}include(t){super.include(t,!0)}},UpdateExpression:fl,VariableDeclaration:Pr,VariableDeclarator:so,WhileStatement:fo,YieldExpression:up};class Qg extends zn{constructor(e){super($s),this.module=e}includePath(e,n){super.includePath(e,n),this.module.needsExportShim=!0}}var ns;(function(t){t[t.LOAD_AND_PARSE=0]="LOAD_AND_PARSE",t[t.ANALYSE=1]="ANALYSE",t[t.GENERATE=2]="GENERATE"})(ns||(ns={}));const hp=new WeakMap;function gl(t,e){if(t){const n=hp.get(t);n&&function(s){s.encodedMappings===void 0&&s.decodedMappings&&(s.encodedMappings=Ou(s.decodedMappings)),s.decodedMappings=void 0}(n)}if(e)for(const n of e)n.missing||gl(n)}function Os(t){if(!t)return null;if(typeof t=="string"&&(t=JSON.parse(t)),!t.mappings)return{mappings:[],names:[],sources:[],version:3};const e=t.mappings,n=Array.isArray(e),s={decodedMappings:n?e:void 0,encodedMappings:n?void 0:e},r={...t,get mappings(){return s.decodedMappings||(s.decodedMappings=s.encodedMappings?function(i){const{length:a}=i,l=new cm(i),c=[];let u=0,d=0,m=0,f=0,g=0;do{const w=l.indexOf(";"),k=[];let I=!0,E=0;for(u=0;l.pos<w;){let b;u=qs(l,u),u<E&&(I=!1),E=u,Ru(l,w)?(d=qs(l,d),m=qs(l,m),f=qs(l,f),Ru(l,w)?(g=qs(l,g),b=[u,d,m,f,g]):b=[u,d,m,f]):b=[u],k.push(b),l.pos++}I||um(k),c.push(k),l.pos=w+1}while(l.pos<=a);return c}(s.encodedMappings):[],s.encodedMappings=void 0),s.decodedMappings}};return hp.set(r,s),r}function yl(t){return t.id}const bl=(t,{allowReturnOutsideFunction:e=!1,jsx:n=!1}={})=>function(s){const r=Y(0,s);switch(r.type){case"PanicError":return oe(xs(di(r.message)));case"ParseError":return oe(xs(di(r.message,r.start)));default:return r}}(Rd(Cd(t,e,n))),Zg=new Set(["assert","with"]);function dp(t){const{scope:{context:e},options:n,start:s}=t;if(!(n instanceof Ds))return n&&e.module.log(Ee,Eh(e.module.id),s),ft;const r=n.properties.find(l=>Zg.has(xl(l)))?.value;if(!r)return ft;if(!(r instanceof Ds))return e.module.log(Ee,(i=e.module.id,{code:ah,message:`Rollup could not statically analyze the options argument of a dynamic import in "${Ae(i)}". Dynamic import options need to be an object with a nested attributes object.`}),s),ft;var i;const a=r.properties.map(l=>{const c=xl(l);return typeof c=="string"&&typeof l.value.value=="string"?[c,l.value.value]:(e.module.log(Ee,Eh(e.module.id),l.start),null)}).filter(l=>!!l);return a.length>0?Object.fromEntries(a):ft}const xl=t=>{const e=t.key;return e&&!t.computed&&(e.name||e.value)};function mo(t,e){const n=Object.keys(t);return n.length!==Object.keys(e).length||n.some(s=>t[s]!==e[s])}var pp="performance"in(typeof globalThis>"u"?typeof window>"u"?{}:window:globalThis)?performance:{now:()=>0},fp={memoryUsage:()=>({heapUsed:0})};let $r=new Map;function mp(t,e){switch(e){case 1:return`# ${t}`;case 2:return`## ${t}`;case 3:return t;default:return`- ${t}`}}function ey(t,e=3){t=mp(t,e);const n=fp.memoryUsage().heapUsed,s=pp.now(),r=$r.get(t);r===void 0?$r.set(t,{memory:0,startMemory:n,startTime:s,time:0,totalMemory:0}):(r.startMemory=n,r.startTime=s)}function ty(t,e=3){t=mp(t,e);const n=$r.get(t);if(n!==void 0){const s=fp.memoryUsage().heapUsed;n.memory+=s-n.startMemory,n.time+=pp.now()-n.startTime,n.totalMemory=Math.max(n.totalMemory,s)}}function ny(){const t={};for(const[e,{memory:n,time:s,totalMemory:r}]of $r)t[e]=[s,n,r];return t}let ct=Mt,at=Mt;const sy=["augmentChunkHash","buildEnd","buildStart","generateBundle","load","moduleParsed","options","outputOptions","renderChunk","renderDynamicImport","renderStart","resolveDynamicImport","resolveFileUrl","resolveId","resolveImportMeta","shouldTransformCachedModule","transform","writeBundle"];function ry(t,e){if(t._hasTimer)return t;t._hasTimer=!0;for(const n of sy)if(n in t){let s=`plugin ${e}`;t.name&&(s+=` (${t.name})`),s+=` - ${n}`;const r=function(...a){ct(s,4);const l=i.apply(this,a);return at(s,4),l};let i;typeof t[n].handler=="function"?(i=t[n].handler,t[n].handler=r):(i=t[n],t[n]=r)}return t}const gp={identifier:null,localName:$s};function kl(t,e,n,s,r=new Map){const i=r.get(e);if(i){if(i.has(t))return s?[null]:oe((a=e,{code:"CIRCULAR_REEXPORT",exporter:l=t.id,message:`"${a}" cannot be exported from "${Ae(l)}" as it is a reexport that references itself.`}));i.add(t)}else r.set(e,new Set([t]));var a,l;return t.getVariableForExportName(e,{importerForSideEffects:n,isExportAllSearch:s,searchedNamesAndModules:r})}function yp(t,e){const n=bt(e.sideEffectDependenciesByVariable,t,Ln);let s=t;const r=new Set([s]);for(;;){const i=s.module;if(s=s instanceof Yt?s.getDirectOriginalVariable():s instanceof vt?s.syntheticNamespace:null,!s||r.has(s))break;r.add(s),n.add(i);const a=i.sideEffectDependenciesByVariable.get(s);if(a)for(const l of a)n.add(l)}return n}class st{constructor(e,n,s,r,i,a,l,c){this.graph=e,this.id=n,this.options=s,this.alternativeReexportModules=new Map,this.chunkFileNames=new Set,this.chunkNames=[],this.cycles=new Set,this.dependencies=new Set,this.dynamicDependencies=new Set,this.dynamicImporters=[],this.dynamicImports=[],this.execIndex=1/0,this.hasTreeShakingPassStarted=!1,this.implicitlyLoadedAfter=new Set,this.implicitlyLoadedBefore=new Set,this.importDescriptions=new Map,this.importMetas=[],this.importedFromNotTreeshaken=!1,this.importers=[],this.includedDynamicImporters=[],this.includedDirectTopLevelAwaitingDynamicImporters=new Set,this.includedImports=new Set,this.isExecuted=!1,this.isUserDefinedEntryPoint=!1,this.needsExportShim=!1,this.sideEffectDependenciesByVariable=new Map,this.sourcesWithAttributes=new Map,this.allExportNames=null,this.allExportsIncluded=!1,this.ast=null,this.exportAllModules=[],this.exportAllSources=new Set,this.exportNamesByVariable=null,this.exportShimVariable=new Qg(this),this.exports=new Map,this.namespaceReexportsByName=new Map,this.reexportDescriptions=new Map,this.relevantDependencies=null,this.syntheticExports=new Map,this.syntheticNamespace=null,this.transformDependencies=[],this.transitiveReexports=null,this.excludeFromSourcemap=/\0/.test(n),this.context=s.moduleContext(n),this.preserveSignature=this.options.preserveEntrySignatures;const u=this,{dynamicImports:d,dynamicImporters:m,exportAllSources:f,exports:g,implicitlyLoadedAfter:w,implicitlyLoadedBefore:k,importers:I,reexportDescriptions:E,sourcesWithAttributes:b}=this;this.info={ast:null,attributes:c,code:null,get dynamicallyImportedIdResolutions(){return d.map(({argument:A})=>typeof A=="string"&&u.resolvedIds[A]).filter(Boolean)},get dynamicallyImportedIds(){return d.map(({id:A})=>A).filter(A=>A!=null)},get dynamicImporters(){return m.sort()},get exportedBindings(){const A={".":[...g.keys()]};for(const[v,{source:$}]of E)(A[$]??=[]).push(v);for(const v of f)(A[v]??=[]).push("*");return A},get exports(){return[...g.keys(),...E.keys(),...[...f].map(()=>"*")]},get hasDefaultExport(){return u.ast?u.exports.has("default")||E.has("default"):null},id:n,get implicitlyLoadedAfterOneOf(){return Array.from(w,yl).sort()},get implicitlyLoadedBefore(){return Array.from(k,yl).sort()},get importedIdResolutions(){return Array.from(b.keys(),A=>u.resolvedIds[A]).filter(Boolean)},get importedIds(){return Array.from(b.keys(),A=>u.resolvedIds[A]?.id).filter(Boolean)},get importers(){return I.sort()},isEntry:r,isExternal:!1,get isIncluded(){return e.phase!==ns.GENERATE?null:u.isIncluded()},meta:{...l},moduleSideEffects:i,syntheticNamedExports:a}}basename(){const e=Gt(this.id),n=xn(this.id);return fi(n?e.slice(0,-n.length):e)}bindReferences(){this.ast.bind()}cacheInfoGetters(){Ih(this.info,["dynamicallyImportedIdResolutions","dynamicallyImportedIds","dynamicImporters","exportedBindings","exports","hasDefaultExport","implicitlyLoadedAfterOneOf","implicitlyLoadedBefore","importedIdResolutions","importedIds","importers"])}error(e,n){return n!==void 0&&this.addLocationToLogProps(e,n),oe(e)}estimateSize(){let e=0;for(const n of this.ast.body)n.included&&(e+=n.end-n.start);return e}getAllExportNames(){if(this.allExportNames)return this.allExportNames;this.allExportNames=new Set([...this.exports.keys(),...this.reexportDescriptions.keys()]);for(const e of this.exportAllModules)if(e instanceof Ze)this.allExportNames.add(`*${e.id}`);else for(const n of e.getAllExportNames())n!=="default"&&this.allExportNames.add(n);return typeof this.info.syntheticNamedExports=="string"&&this.allExportNames.delete(this.info.syntheticNamedExports),this.allExportNames}getDependenciesToBeIncluded(){if(this.relevantDependencies)return this.relevantDependencies;this.relevantDependencies=new Set;const e=new Set,n=new Set,s=new Set(this.includedImports);if(this.info.isEntry||this.includedDynamicImporters.length>0||this.namespace.included||this.implicitlyLoadedAfter.size>0)for(const r of[...this.getReexports(),...this.getExports()]){const[i]=this.getVariableForExportName(r);i?.included&&s.add(i)}for(let r of s){const i=this.sideEffectDependenciesByVariable.get(r);if(i)for(const a of i)n.add(a);r instanceof vt?r=r.getBaseVariable():r instanceof Yt&&(r=r.getOriginalVariable()),e.add(r.module)}if(this.options.treeshake&&this.info.moduleSideEffects!=="no-treeshake")this.addRelevantSideEffectDependencies(this.relevantDependencies,e,n);else for(const r of this.dependencies)this.relevantDependencies.add(r);for(const r of e)this.relevantDependencies.add(r);return this.relevantDependencies}getExportNamesByVariable(){if(this.exportNamesByVariable)return this.exportNamesByVariable;const e=new Map;for(const n of this.getAllExportNames()){let[s]=this.getVariableForExportName(n);if(s instanceof Yt&&(s=s.getOriginalVariable()),!s||!(s.included||s instanceof tr))continue;const r=e.get(s);r?r.push(n):e.set(s,[n])}return this.exportNamesByVariable=e}getExports(){return[...this.exports.keys()]}getReexports(){if(this.transitiveReexports)return this.transitiveReexports;this.transitiveReexports=[];const e=new Set(this.reexportDescriptions.keys());for(const n of this.exportAllModules)if(n instanceof Ze)e.add(`*${n.id}`);else for(const s of[...n.getReexports(),...n.getExports()])s!=="default"&&e.add(s);return this.transitiveReexports=[...e]}getRenderedExports(){const e=[],n=[];for(const s of this.exports.keys()){const[r]=this.getVariableForExportName(s);(r?.included?e:n).push(s)}return{removedExports:n,renderedExports:e}}getSyntheticNamespace(){return this.syntheticNamespace===null&&(this.syntheticNamespace=void 0,[this.syntheticNamespace]=this.getVariableForExportName(typeof this.info.syntheticNamedExports=="string"?this.info.syntheticNamedExports:"default",{onlyExplicit:!0})),this.syntheticNamespace?this.syntheticNamespace:oe((e=this.id,n=this.info.syntheticNamedExports,{code:"SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT",exporter:e,message:`Module "${Ae(e)}" that is marked with \`syntheticNamedExports: ${JSON.stringify(n)}\` needs ${typeof n=="string"&&n!=="default"?`an explicit export named "${n}"`:"a default export"} that does not reexport an unresolved named export of the same module.`}));var e,n}getVariableForExportName(e,{importerForSideEffects:n,isExportAllSearch:s,onlyExplicit:r,searchedNamesAndModules:i}=ft){if(e[0]==="*")return e.length===1?[this.namespace]:this.graph.modulesById.get(e.slice(1)).getVariableForExportName("*");const a=this.reexportDescriptions.get(e);if(a){const[c,u]=kl(a.module,a.localName,n,!1,i);return c?(n&&(bp(c,n,this),this.info.moduleSideEffects&&bt(n.sideEffectDependenciesByVariable,c,Ln).add(this)),[c]):this.error(hi(a.localName,this.id,a.module.id,!!u?.missingButExportExists),a.start)}const l=this.exports.get(e);if(l){if(l===gp)return[this.exportShimVariable];const c=l.localName,u=this.traceVariable(c,{importerForSideEffects:n,searchedNamesAndModules:i});return u?(n&&(bp(u,n,this),bt(n.sideEffectDependenciesByVariable,u,Ln).add(this)),[u]):[null,{missingButExportExists:!0}]}if(r)return[null];if(e!=="default"){const c=this.namespaceReexportsByName.get(e)??this.getVariableFromNamespaceReexports(e,n,i);if(this.namespaceReexportsByName.set(e,c),c[0])return c}return this.info.syntheticNamedExports?[bt(this.syntheticExports,e,()=>new vt(this.astContext,e,this.getSyntheticNamespace()))]:!s&&this.options.shimMissingExports?(this.shimMissingExport(e),[this.exportShimVariable]):[null]}hasEffects(){return this.info.moduleSideEffects==="no-treeshake"||this.ast.hasCachedEffects()}include(){const e=Lt();this.ast.shouldBeIncluded(e)&&this.ast.include(e,!1)}includeAllExports(e){if(e&&this.namespace.setMergedNamespaces(this.includeAndGetAdditionalMergedNamespaces()),this.allExportsIncluded)return;this.allExportsIncluded=!0,this.isExecuted||(As(this),this.graph.needsTreeshakingPass=!0);const n=Lt();for(const s of this.exports.keys())if(e||s!==this.info.syntheticNamedExports){const r=this.getVariableForExportName(s)[0];if(!r)return oe(Bm(s,this.id));this.includeVariable(r,le,n),r.deoptimizePath(le)}for(const s of this.getReexports()){const[r]=this.getVariableForExportName(s);r&&(r.deoptimizePath(le),this.includeVariable(r,le,n),r instanceof tr&&(r.module.reexported=!0))}}includeAllInBundle(){this.ast.include(Lt(),!0),this.includeAllExports(!1)}includeExportsByNames(e){this.isExecuted||(As(this),this.graph.needsTreeshakingPass=!0);let n=!1;const s=Lt();for(const r of e){const i=this.getVariableForExportName(r)[0];i&&(i.deoptimizePath(le),this.includeVariable(i,le,s)),this.exports.has(r)||this.reexportDescriptions.has(r)||(n=!0)}n&&this.namespace.setMergedNamespaces(this.includeAndGetAdditionalMergedNamespaces())}isIncluded(){return this.ast&&(this.ast.included||this.namespace.included||this.importedFromNotTreeshaken||this.exportShimVariable.included)}linkImports(){this.addModulesToImportDescriptions(this.importDescriptions),this.addModulesToImportDescriptions(this.reexportDescriptions);const e=[];for(const n of this.exportAllSources){const s=this.graph.modulesById.get(this.resolvedIds[n].id);s instanceof Ze?e.push(s):this.exportAllModules.push(s)}this.exportAllModules.push(...e)}log(e,n,s){this.addLocationToLogProps(n,s),this.options.onLog(e,n)}render(e){const n=this.magicString.clone();this.ast.render(n,e),n.trim();const{usesTopLevelAwait:s}=this.astContext;return s&&e.format!=="es"&&e.format!=="system"?oe((r=this.id,i=e.format,{code:"INVALID_TLA_FORMAT",id:r,message:`Module format "${i}" does not support top-level await. Use the "es" or "system" output formats rather.`})):{source:n,usesTopLevelAwait:s};var r,i}async setSource({ast:e,code:n,customTransformCache:s,originalCode:r,originalSourcemap:i,resolvedIds:a,sourcemapChain:l,transformDependencies:c,transformFiles:u,...d}){if(ct("generate ast",3),n.startsWith("#!")){const I=n.indexOf(`
40
+ `);this.shebang=n.slice(2,I)}this.info.code=n,this.originalCode=r,this.originalSourcemap=Os(i),this.sourcemapChain=l.map(I=>I.missing?I:Os(I)),gl(this.originalSourcemap,this.sourcemapChain),u&&(this.transformFiles=u),this.transformDependencies=c,this.customTransformCache=s,this.updateOptions(d),this.resolvedIds=a??Object.create(null);const m=this.id;this.magicString=new Ws(n,{filename:this.excludeFromSourcemap?null:m,indentExclusionRanges:[]}),this.astContext={addDynamicImport:this.addDynamicImport.bind(this),addExport:this.addExport.bind(this),addImport:this.addImport.bind(this),addImportMeta:this.addImportMeta.bind(this),addImportSource:this.addImportSource.bind(this),code:n,deoptimizationTracker:this.graph.deoptimizationTracker,error:this.error.bind(this),fileName:m,getExports:this.getExports.bind(this),getImportedJsxFactoryVariable:this.getImportedJsxFactoryVariable.bind(this),getModuleExecIndex:()=>this.execIndex,getModuleName:this.basename.bind(this),getNodeConstructor:I=>ml[I]||ml.UnknownNode,getReexports:this.getReexports.bind(this),importDescriptions:this.importDescriptions,includeAllExports:()=>this.includeAllExports(!0),includeDynamicImport:this.includeDynamicImport.bind(this),includeVariableInModule:this.includeVariableInModule.bind(this),log:this.log.bind(this),magicString:this.magicString,manualPureFunctions:this.graph.pureFunctions,module:this,moduleContext:this.context,newlyIncludedVariableInits:this.graph.newlyIncludedVariableInits,options:this.options,requestTreeshakingPass:()=>this.graph.needsTreeshakingPass=!0,traceExport:I=>this.getVariableForExportName(I),traceVariable:this.traceVariable.bind(this),usesTopLevelAwait:!1},this.scope=new op(this.graph.scope,this.astContext),this.namespace=new Yn(this.astContext);const f={context:this.astContext,type:"Module"};if(e)this.ast=new ml[e.type](f,this.scope).parseNode(e),this.info.ast=e;else{at("generate ast",3);const I=await async function(E,b,A){return Cd(E,b,A)}(n,!1,this.options.jsx!==!1);ct("generate ast",3),this.ast=(g=I,w=f,k=this.scope,Q(w,k,0,Rd(g))),Object.defineProperty(this.info,"ast",{get:()=>{if(this.graph.astLru.has(m))return this.graph.astLru.get(m);{const E=this.tryParse();return this.options.cache!==!1?(Object.defineProperty(this.info,"ast",{value:E}),E):(this.graph.astLru.set(m,E),E)}}})}var g,w,k;at("generate ast",3)}toJSON(){return{ast:this.info.ast,attributes:this.info.attributes,code:this.info.code,customTransformCache:this.customTransformCache,dependencies:Array.from(this.dependencies,yl),id:this.id,meta:this.info.meta,moduleSideEffects:this.info.moduleSideEffects,originalCode:this.originalCode,originalSourcemap:this.originalSourcemap,resolvedIds:this.resolvedIds,sourcemapChain:this.sourcemapChain,syntheticNamedExports:this.info.syntheticNamedExports,transformDependencies:this.transformDependencies,transformFiles:this.transformFiles}}traceVariable(e,{importerForSideEffects:n,isExportAllSearch:s,searchedNamesAndModules:r}=ft){const i=this.scope.variables.get(e);if(i)return i;const a=this.importDescriptions.get(e);if(a){const l=a.module;if(l instanceof st&&a.name==="*")return l.namespace;const[c,u]=kl(l,a.name,n||this,s,r);return c||this.error(hi(a.name,this.id,l.id,!!u?.missingButExportExists),a.start)}return null}updateOptions({meta:e,moduleSideEffects:n,syntheticNamedExports:s}){n!=null&&(this.info.moduleSideEffects=n),s!=null&&(this.info.syntheticNamedExports=s),e!=null&&Object.assign(this.info.meta,e)}addDynamicImport(e){let n=e.sourceAstNode;n.type==="TemplateLiteral"?n.quasis.length===1&&typeof n.quasis[0].value.cooked=="string"&&(n=n.quasis[0].value.cooked):n.type==="Literal"&&typeof n.value=="string"&&(n=n.value),this.dynamicImports.push({argument:n,id:null,node:e,resolution:null})}assertUniqueExportName(e,n){(this.exports.has(e)||this.reexportDescriptions.has(e))&&this.error(function(s){return{code:"DUPLICATE_EXPORT",message:`Duplicate export "${s}"`}}(e),n)}addExport(e){if(e instanceof Kn)this.assertUniqueExportName("default",e.start),this.exports.set("default",{identifier:e.variable.getAssignedVariableName(),localName:"default"});else if(e instanceof Ts){const n=e.source.value;if(this.addSource(n,e),e.exported){const s=e.exported instanceof It?e.exported.value:e.exported.name;this.assertUniqueExportName(s,e.exported.start),this.reexportDescriptions.set(s,{localName:"*",module:null,source:n,start:e.start})}else this.exportAllSources.add(n)}else if(e.source instanceof It){const n=e.source.value;this.addSource(n,e);for(const{exported:s,local:r,start:i}of e.specifiers){const a=s instanceof It?s.value:s.name;this.assertUniqueExportName(a,i),this.reexportDescriptions.set(a,{localName:r instanceof It?r.value:r.name,module:null,source:n,start:i})}}else if(e.declaration){const n=e.declaration;if(n instanceof Pr)for(const s of n.declarations)for(const r of Fg(s.id))this.assertUniqueExportName(r,s.id.start),this.exports.set(r,{identifier:null,localName:r});else{const s=n.id.name;this.assertUniqueExportName(s,n.id.start),this.exports.set(s,{identifier:null,localName:s})}}else for(const{local:n,exported:s}of e.specifiers){const r=n.name,i=s instanceof Fe?s.name:s.value;this.assertUniqueExportName(i,s.start),this.exports.set(i,{identifier:null,localName:r})}}addImport(e){const n=e.source.value;this.addSource(n,e);for(const s of e.specifiers){const r=s.local.name;(this.scope.variables.has(r)||this.importDescriptions.has(r))&&this.error(ks(r),s.local.start);const i=s instanceof wr?"default":s instanceof Sr?"*":s.imported instanceof Fe?s.imported.name:s.imported.value;this.importDescriptions.set(r,{module:null,name:i,source:n,start:s.start})}}addImportSource(e){e&&!this.sourcesWithAttributes.has(e)&&this.sourcesWithAttributes.set(e,ft)}addImportMeta(e){this.importMetas.push(e)}addLocationToLogProps(e,n){e.id=this.id,e.pos=n;let s=this.info.code;const r=oa(s,n,{offsetLine:1});if(r){let{column:i,line:a}=r;try{({column:i,line:a}=function(l,c){const u=l.filter(d=>!d.missing);e:for(;u.length>0;){const d=u.pop().mappings[c.line-1];if(d){const m=d.filter(w=>w.length>1),f=m[m.length-1];let g=m[0];for(let w of m){if(w[0]>=c.column||w===f){w=w[0]!==c.column?g:w,c={column:w[3],line:w[2]+1};continue e}g=w}}throw new Error("Can't resolve original location of error.")}return c}(this.sourcemapChain,{column:i,line:a})),s=this.originalCode}catch(l){this.options.onLog(Ee,function(c,u,d,m,f){return{cause:c,code:"SOURCEMAP_ERROR",id:u,loc:{column:d,file:u,line:m},message:`Error when using sourcemap for reporting an error: ${c.message}`,pos:f}}(l,this.id,i,a,n))}ci(e,{column:i,line:a},s,this.id)}}addModulesToImportDescriptions(e){for(const n of e.values()){const{id:s}=this.resolvedIds[n.source];n.module=this.graph.modulesById.get(s)}}addRelevantSideEffectDependencies(e,n,s){const r=new Set,i=a=>{for(const l of a)r.has(l)||(r.add(l),n.has(l)?e.add(l):(l.info.moduleSideEffects||s.has(l))&&(l instanceof Ze||l.hasEffects()?e.add(l):i(l.dependencies)))};i(this.dependencies),i(s)}addSource(e,n){const s=(r=n.attributes,r?.length?Object.fromEntries(r.map(a=>[xl(a),a.value.value])):ft);var r;const i=this.sourcesWithAttributes.get(e);i?mo(i,s)&&this.log(Ee,ui(i,s,e,this.id),n.start):this.sourcesWithAttributes.set(e,s)}getImportedJsxFactoryVariable(e,n,s){const{id:r}=this.resolvedIds[s],i=this.graph.modulesById.get(r),[a]=i.getVariableForExportName(e);return a||this.error((l=e,c=r,u=this.id,{code:"MISSING_JSX_EXPORT",exporter:c,id:u,message:`Export "${l}" is not defined in module "${Ae(c)}" even though it is needed in "${Ae(u)}" to provide JSX syntax. Please check your "jsx" option.`,names:[l],url:ot(li)}),n);var l,c,u}getVariableFromNamespaceReexports(e,n,s){let r=null;const i=new Map,a=new Set;for(const d of this.exportAllModules){if(d.info.syntheticNamedExports===e)continue;const[m,f]=kl(d,e,n,!0,iy(s));d instanceof Ze||f?.indirectExternal?a.add(m):m instanceof vt?r||(r=m):m&&i.set(m,d)}if(i.size>0){const d=[...i],m=d[0][0];return d.length===1?[m]:(this.options.onLog(Ee,(l=e,c=this.id,u=d.map(([,f])=>f.id),{binding:l,code:"NAMESPACE_CONFLICT",ids:u,message:`Conflicting namespaces: "${Ae(c)}" re-exports "${l}" from one of the modules ${cn(u.map(f=>Ae(f)))} (will be ignored).`,reexporter:c})),[null])}var l,c,u;if(a.size>0){const d=[...a],m=d[0];return d.length>1&&this.options.onLog(Ee,function(f,g,w,k){return{binding:f,code:"AMBIGUOUS_EXTERNAL_NAMESPACES",ids:k,message:`Ambiguous external namespace resolution: "${Ae(g)}" re-exports "${f}" from one of the external modules ${cn(k.map(I=>Ae(I)))}, guessing "${Ae(w)}".`,reexporter:g}}(e,this.id,m.module.id,d.map(f=>f.module.id))),[m,{indirectExternal:!0}]}return r?[r]:[null]}includeAndGetAdditionalMergedNamespaces(){const e=new Set,n=new Set;for(const s of[this,...this.exportAllModules])if(s instanceof Ze){const[r]=s.getVariableForExportName("*");r.includePath(le,Lt()),this.includedImports.add(r),e.add(r)}else if(s.info.syntheticNamedExports){const r=s.getSyntheticNamespace();r.includePath(le,Lt()),this.includedImports.add(r),n.add(r)}return[...n,...e]}includeDynamicImport(e){const n=this.dynamicImports.find(s=>s.node===e).resolution;if(n instanceof st){n.includedDynamicImporters.includes(this)||(n.includedDynamicImporters.push(this),e.withinTopLevelAwait&&n.includedDirectTopLevelAwaitingDynamicImporters.add(this));const s=this.options.treeshake?e.getDeterministicImportedNames():void 0;s?n.includeExportsByNames(s):n.includeAllExports(!0)}}includeVariable(e,n,s){const{included:r,module:i}=e;if(e.includePath(n,s),r)i instanceof st&&i!==this&&yp(e,this);else if(this.graph.needsTreeshakingPass=!0,i instanceof st&&(i.isExecuted||As(i),i!==this)){const a=yp(e,this);for(const l of a)l.isExecuted||As(l)}}includeVariableInModule(e,n,s){this.includeVariable(e,n,s);const r=e.module;r&&r!==this&&this.includedImports.add(e)}shimMissingExport(e){var n,s;this.options.onLog(Ee,(n=this.id,{binding:s=e,code:"SHIMMED_EXPORT",exporter:n,message:`Missing export "${s}" has been shimmed in module "${Ae(n)}".`})),this.exports.set(e,gp)}tryParse(){try{return bl(this.info.code,{jsx:this.options.jsx!==!1})}catch(e){return this.error(da(e,this.id),e.pos)}}}function bp(t,e,n){if(t.module instanceof st&&t.module!==n){const s=t.module.cycles;if(s.size>0){const r=n.cycles;for(const i of r)if(s.has(i)){e.alternativeReexportModules.set(t,n);break}}}}const iy=t=>t&&new Map(Array.from(t,([e,n])=>[e,new Set(n)])),xp=(t,e)=>e?`${t}
41
+ ${e}`:t,kp=(t,e)=>e?`${t}
42
42
 
43
- ${e}`:t,iy={amd:go,cjs:go,es:xp,iife:go,system:xp,umd:go};function ry(t,e,n,s,i,r,a,l,c,u,d,m,f,g){const E=[...t].reverse();for(const k of E)k.scope.addUsedOutsideNames(s,i,m,f);(function(k,I,A){for(const x of I){for(const w of x.scope.variables.values())w.included&&!(w.renderBaseName||w instanceof Yt&&w.getOriginalVariable()!==w)&&w.setRenderNames(null,Jt(w.name,k,w.forbiddenNames));if(A.has(x)){const w=x.namespace;w.setRenderNames(null,Jt(w.name,k,w.forbiddenNames))}}})(s,E,g),iy[i](s,n,e,r,a,l,c,u,d);for(const k of E)k.scope.deconflict(i,m,f)}function xp(t,e,n,s,i,r,a,l,c){for(const u of n.dependencies)(i||u instanceof Yn)&&(u.variableName=Jt(u.suggestedVariableName,t,null));for(const u of e){const d=u.module,m=u.name;u.isNamespace&&(i||d instanceof Ze)?u.setRenderNames(null,(d instanceof Ze?l.get(d):a.get(d)).variableName):d instanceof Ze&&m==="default"?u.setRenderNames(null,Jt([...d.exportedVariables].some(([f,g])=>g==="*"&&f.included)?d.suggestedVariableName+"__default":d.suggestedVariableName,t,u.forbiddenNames)):u.setRenderNames(null,Jt(fr(m),t,u.forbiddenNames))}for(const u of c)u.setRenderNames(null,Jt(u.name,t,u.forbiddenNames))}function go(t,e,{deconflictedDefault:n,deconflictedNamespace:s,dependencies:i},r,a,l,c,u){for(const d of i)d.variableName=Jt(d.suggestedVariableName,t,null);for(const d of s)d.namespaceVariableName=Jt(`${d.suggestedVariableName}__namespace`,t,null);for(const d of n)d.defaultVariableName=s.has(d)&&hg(r(d.id),l)?d.namespaceVariableName:Jt(`${d.suggestedVariableName}__default`,t,null);for(const d of e){const m=d.module;if(m instanceof Ze){const f=u.get(m),g=d.name;if(g==="default"){const E=r(m.id),k=Nr[E]?f.defaultVariableName:f.variableName;Cr(E,l)?d.setRenderNames(k,"default"):d.setRenderNames(null,k)}else g==="*"?d.setRenderNames(null,ui[r(m.id)]?f.namespaceVariableName:f.variableName):d.setRenderNames(f.variableName,null)}else{const f=c.get(m);a&&d.isNamespace?d.setRenderNames(null,f.exportMode==="default"?f.namespaceVariableName:f.variableName):f.exportMode==="default"?d.setRenderNames(null,f.variableName):d.setRenderNames(f.variableName,f.getVariableExportName(d))}}}function oy(t,{exports:e,name:n,format:s},i,r){const a=t.getExportNames();if(e==="default"){if(a.length!==1||a[0]!=="default")return oe(bh("default",a,i))}else if(e==="none"&&a.length>0)return oe(bh("none",a,i));return e==="auto"&&(a.length===0?e="none":a.length===1&&a[0]==="default"?e="default":(s!=="es"&&s!=="system"&&a.includes("default")&&r(Ee,function(l,c){return{code:"MIXED_EXPORTS",id:l,message:`Entry module "${Ae(l)}" is using named and default exports together. Consumers of your bundle will have to use \`${c||"chunk"}.default\` to access the default export, which may not be what you want. Use \`output.exports: "named"\` to disable this warning.`,url:ot(ca)}}(i,n)),e="named")),e}function ay(t){const e=t.split(`
44
- `),n=e.filter(r=>/^\t+/.test(r)),s=e.filter(r=>/^ {2,}/.test(r));if(n.length===0&&s.length===0)return null;if(n.length>=s.length)return" ";const i=s.reduce((r,a)=>{const l=/^ +/.exec(a)[0].length;return Math.min(l,r)},1/0);return" ".repeat(i)}function kp(t,e,n,s,i,r){const a=t.getDependenciesToBeIncluded();for(const l of a){if(l instanceof Ze){e.push(r.get(l));continue}const c=i.get(l);c===s?n.has(l)||(n.add(l),kp(l,e,n,s,i,r)):e.push(c)}}const El="!~{",Al="}~",wl=new RegExp(`${El}[0-9a-zA-Z_$]{1,16}${Al}`,"g"),ns=(t,e)=>t.replace(wl,n=>e.get(n)||n),ly=(t,e,n)=>t.replace(wl,s=>s===e?n:s),yo=Symbol("bundleKeys"),Sl={type:"placeholder"};function Il(t,e,n){return or(t)?oe(wt(`Invalid pattern "${t}" for "${e}", patterns can be neither absolute nor relative paths. If you want your files to be stored in a subdirectory, write its name without a leading slash like this: subdirectory/pattern.`)):t.replace(/\[(\w+)(:\d+)?]/g,(s,i,r)=>{if(!n.hasOwnProperty(i)||r&&i!=="hash")return oe(wt(`"[${i}${r||""}]" is not a valid placeholder in the "${e}" pattern.`));const a=n[i](r&&Number.parseInt(r.slice(1)));return or(a)?oe(wt(`Invalid substitution "${a}" for placeholder "[${i}]" in "${e}" pattern, can be neither absolute nor relative path.`)):a})}function vl(t,{[yo]:e}){if(!e.has(t.toLowerCase()))return t;const n=xn(t);t=t.slice(0,Math.max(0,t.length-n.length));let s,i=1;for(;e.has((s=t+ ++i+n).toLowerCase()););return s}const cy=new Set([".js",".jsx",".ts",".tsx",".mjs",".mts",".cjs",".cts"]);function uy(t,e,n,s){return(typeof e=="function"?e(t.id):e[t.id])||(n?(s(Ee,(r=t.id,a=t.variableName,{code:"MISSING_GLOBAL_NAME",id:r,message:`No name was provided for external module "${r}" in "output.globals" – guessing "${a}".`,names:[a],url:ot("configuration-options/#output-globals")})),t.variableName):void 0);var r,a}class _n{constructor(e,n,s,i,r,a,l,c,u,d,m,f,g,E,k){this.orderedModules=e,this.inputOptions=n,this.outputOptions=s,this.unsetOptions=i,this.pluginDriver=r,this.modulesById=a,this.chunkByModule=l,this.externalChunkByModule=c,this.facadeChunkByModule=u,this.includedNamespaces=d,this.manualChunkAlias=m,this.getPlaceholder=f,this.bundle=g,this.inputBase=E,this.snippets=k,this.dependencies=new Set,this.entryModules=[],this.exportMode="named",this.facadeModule=null,this.namespaceVariableName="",this.variableName="",this.accessedGlobalsByScope=new Map,this.dynamicEntryModules=[],this.dynamicName=null,this.exportNamesByVariable=new Map,this.exports=new Set,this.exportsByName=new Map,this.fileName=null,this.implicitEntryModules=[],this.implicitlyLoadedBefore=new Set,this.imports=new Set,this.includedDynamicImports=null,this.includedReexportsByModule=new Map,this.isEmpty=!0,this.name=null,this.needsExportsShim=!1,this.preRenderedChunkInfo=null,this.preliminaryFileName=null,this.preliminarySourcemapFileName=null,this.renderedChunkInfo=null,this.renderedDependencies=null,this.renderedModules=Object.create(null),this.sortedExportNames=null,this.strictFacade=!1,this.allowExtensionModules=new Set,this.execIndex=e.length>0?e[0].execIndex:1/0;const I=new Set(e);for(const A of e){l.set(A,this),A.namespace.included&&!s.preserveModules&&d.add(A),this.isEmpty&&A.isIncluded()&&(this.isEmpty=!1),(A.info.isEntry||s.preserveModules)&&this.entryModules.push(A);for(const x of A.includedDynamicImporters)I.has(x)||(this.dynamicEntryModules.push(A),A.info.syntheticNamedExports&&(d.add(A),this.exports.add(A.namespace)));A.implicitlyLoadedAfter.size>0&&this.implicitEntryModules.push(A)}this.suggestedVariableName=fr(this.generateVariableName())}static generateFacade(e,n,s,i,r,a,l,c,u,d,m,f,g,E,k){const I=new _n([],e,n,s,i,r,a,l,c,u,null,f,g,E,k);I.assignFacadeName(m,d),c.has(d)||c.set(d,I);for(const A of d.getDependenciesToBeIncluded())I.dependencies.add(A instanceof st?a.get(A):l.get(A));return!I.dependencies.has(a.get(d))&&d.info.moduleSideEffects&&d.hasEffects()&&I.dependencies.add(a.get(d)),I.ensureReexportsAreAvailableForModule(d),I.facadeModule=d,I.strictFacade=!0,I}canModuleBeFacade(e,n){const s=e.getExportNamesByVariable();for(const i of this.exports)if(!s.has(i))return!1;for(const i of n)if(!(i.module===e||s.has(i)||i instanceof vt&&s.has(i.getBaseVariable())))return!1;return!0}finalizeChunk(e,n,s,i){const r=this.getRenderedChunkInfo(),a=u=>ns(u,i),l=r.fileName,c=this.fileName=a(l);return{...r,code:e,dynamicImports:r.dynamicImports.map(a),fileName:c,implicitlyLoadedBefore:r.implicitlyLoadedBefore.map(a),importedBindings:Object.fromEntries(Object.entries(r.importedBindings).map(([u,d])=>[a(u),d])),imports:r.imports.map(a),map:n,preliminaryFileName:l,referencedFiles:r.referencedFiles.map(a),sourcemapFileName:s}}generateExports(){this.sortedExportNames=null;const e=new Set(this.exports);if(this.facadeModule!==null&&(this.facadeModule.preserveSignature!==!1||this.strictFacade)){const n=this.facadeModule.getExportNamesByVariable();for(const[s,i]of n){this.exportNamesByVariable.set(s,[...i]);for(const r of i)this.exportsByName.set(r,s);e.delete(s)}}for(const n of this.allowExtensionModules){const s=n.getExportNamesByVariable();for(const[i,r]of s){this.exportNamesByVariable.set(i,[...r]);for(const a of r)this.exportsByName.set(a,i);e.delete(i)}}this.outputOptions.minifyInternalExports?function(n,s,i){let r=0;for(const a of n){let[l]=a.name;if(s.has(l))do l=Er(++r),l.charCodeAt(0)===49&&(r+=9*64**(l.length-1),l=Er(r));while(pr.has(l)||s.has(l));s.set(l,a),i.set(a,[l])}}(e,this.exportsByName,this.exportNamesByVariable):function(n,s,i){for(const r of n){let a=0,l=r.name;for(;s.has(l);)l=r.name+"$"+ ++a;s.set(l,r),i.set(r,[l])}}(e,this.exportsByName,this.exportNamesByVariable),(this.outputOptions.preserveModules||this.facadeModule&&this.facadeModule.info.isEntry)&&(this.exportMode=oy(this,this.outputOptions,this.facadeModule.id,this.inputOptions.onLog))}generateFacades(){const e=[],n=new Set([...this.entryModules,...this.implicitEntryModules]),s=new Set(this.dynamicEntryModules.map(({namespace:i})=>i));for(const i of n){if(i.preserveSignature==="allow-extension"&&this.canPreserveModuleExports(i)&&!i.chunkFileNames.size&&i.chunkNames.every(({isUserDefined:a})=>!a)){this.allowExtensionModules.add(i),this.facadeModule||(this.facadeModule=i,this.strictFacade=!1,this.assignFacadeName({},i,this.outputOptions.preserveModules)),this.facadeChunkByModule.set(i,this);continue}const r=Array.from(new Set(i.chunkNames.filter(({isUserDefined:a})=>a).map(({name:a})=>a)),a=>({name:a}));if(r.length===0&&i.isUserDefinedEntryPoint&&r.push({}),r.push(...Array.from(i.chunkFileNames,a=>({fileName:a}))),r.length===0&&r.push({}),!this.facadeModule){const a=!this.outputOptions.preserveModules&&(i.preserveSignature==="strict"||i.preserveSignature==="exports-only"&&i.getExportNamesByVariable().size>0);a&&!this.canModuleBeFacade(i,s)||(this.facadeModule=i,this.facadeChunkByModule.set(i,this),i.preserveSignature&&(this.strictFacade=a),this.assignFacadeName(r.shift(),i,this.outputOptions.preserveModules))}for(const a of r)e.push(_n.generateFacade(this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.modulesById,this.chunkByModule,this.externalChunkByModule,this.facadeChunkByModule,this.includedNamespaces,i,a,this.getPlaceholder,this.bundle,this.inputBase,this.snippets))}for(const i of this.dynamicEntryModules)i.info.syntheticNamedExports||(!this.facadeModule&&this.canModuleBeFacade(i,s)?(this.facadeModule=i,this.facadeChunkByModule.set(i,this),this.strictFacade=!0,this.dynamicName=_l(i)):this.facadeModule===i&&!this.strictFacade&&this.canModuleBeFacade(i,s)?this.strictFacade=!0:this.facadeChunkByModule.get(i)?.strictFacade||(this.includedNamespaces.add(i),this.exports.add(i.namespace)));return this.outputOptions.preserveModules||this.addNecessaryImportsForFacades(),e}canPreserveModuleExports(e){const n=e.getExportNamesByVariable();for(const[s,i]of n)for(const r of i){const a=this.exportsByName.get(r);if(a&&a!==s)return!1}for(const[s,i]of n)for(const r of i)this.exportsByName.set(r,s);return!0}getChunkName(){return this.name??=this.outputOptions.sanitizeFileName(this.getFallbackChunkName())}getExportNames(){return this.sortedExportNames??=[...this.exportsByName.keys()].sort()}getFileName(){return this.fileName||this.getPreliminaryFileName().fileName}getImportPath(e){return In(Ku(e,this.getFileName(),this.outputOptions.format==="amd"&&!this.outputOptions.amd.forceJsExtensionForImports,!0))}getPreliminaryFileName(){if(this.preliminaryFileName)return this.preliminaryFileName;let e,n=null;const{chunkFileNames:s,entryFileNames:i,file:r,format:a,preserveModules:l}=this.outputOptions;if(r)e=Gt(r);else if(this.fileName===null){const[c,u]=l||this.facadeModule?.isUserDefinedEntryPoint?[i,"output.entryFileNames"]:[s,"output.chunkFileNames"];e=Il(typeof c=="function"?c(this.getPreRenderedChunkInfo()):c,u,{format:()=>a,hash:d=>n||(n=this.getPlaceholder(u,d||8)),name:()=>this.getChunkName()}),n||(e=vl(e,this.bundle))}else e=this.fileName;return n||(this.bundle[e]=Sl),this.preliminaryFileName={fileName:e,hashPlaceholder:n}}getPreliminarySourcemapFileName(){if(this.preliminarySourcemapFileName)return this.preliminarySourcemapFileName;let e=null,n=null;const{sourcemapFileNames:s,format:i}=this.outputOptions;if(!s)return null;{const[r,a]=[s,"output.sourcemapFileNames"];e=Il(typeof r=="function"?r(this.getPreRenderedChunkInfo()):r,a,{chunkhash:()=>this.getPreliminaryFileName().hashPlaceholder||"",format:()=>i,hash:l=>n||(n=this.getPlaceholder(a,l||8)),name:()=>this.getChunkName()}),n||(e=vl(e,this.bundle))}return this.preliminarySourcemapFileName={fileName:e,hashPlaceholder:n}}getRenderedChunkInfo(){return this.renderedChunkInfo?this.renderedChunkInfo:this.renderedChunkInfo={...this.getPreRenderedChunkInfo(),dynamicImports:this.getDynamicDependencies().map(bo),fileName:this.getFileName(),implicitlyLoadedBefore:Array.from(this.implicitlyLoadedBefore,bo),importedBindings:hy(this.getRenderedDependencies(),bo),imports:Array.from(this.dependencies,bo),modules:this.renderedModules,referencedFiles:this.getReferencedFiles()}}getVariableExportName(e){return this.outputOptions.preserveModules&&e instanceof Ps?"*":this.exportNamesByVariable.get(e)[0]}link(){this.dependencies=function(e,n,s,i){const r=[],a=new Set;for(let c=n.length-1;c>=0;c--){const u=n[c];if(!a.has(u)){const d=[];kp(u,d,a,e,s,i),r.unshift(d)}}const l=new Set;for(const c of r)for(const u of c)l.add(u);return l}(this,this.orderedModules,this.chunkByModule,this.externalChunkByModule);for(const e of this.orderedModules)this.addImplicitlyLoadedBeforeFromModule(e),this.setUpChunkImportsAndExportsForModule(e)}inlineTransitiveImports(){const{facadeModule:e,dependencies:n,outputOptions:s}=this,{hoistTransitiveImports:i,preserveModules:r}=s;if(i&&!r&&e!==null)for(const a of n)a instanceof _n&&this.inlineChunkDependencies(a)}async render(){const{exportMode:e,facadeModule:n,inputOptions:{onLog:s},outputOptions:i,pluginDriver:r,snippets:a}=this,{format:l,preserveModules:c}=i,u=this.getPreliminaryFileName(),d=this.getPreliminarySourcemapFileName(),{accessedGlobals:m,indent:f,magicString:g,renderedSource:E,usedModules:k,usesTopLevelAwait:I}=this.renderModules(u.fileName),A=[...this.getRenderedDependencies().values()],x=e==="none"?[]:this.getChunkExportDeclarations(l);let w=x.length>0,v=!1;for(const U of A){const{reexports:O}=U;O?.length&&(w=!0,!v&&O.some(_=>_.reexported==="default")&&(v=!0),l==="es"&&(U.reexports=O.filter(({reexported:_})=>!x.find(({exported:N})=>N===_))))}if(!v){for(const{exported:U}of x)if(U==="default"){v=!0;break}}const{intro:$,outro:D,banner:j,footer:V}=await async function(U,O,_){try{let[C,R,M,q]=await Promise.all([O.hookReduceValue("banner",U.banner(_),[_],yp),O.hookReduceValue("footer",U.footer(_),[_],yp),O.hookReduceValue("intro",U.intro(_),[_],bp),O.hookReduceValue("outro",U.outro(_),[_],bp)]);return M&&(M+=`
43
+ ${e}`:t,oy={amd:go,cjs:go,es:Ep,iife:go,system:Ep,umd:go};function ay(t,e,n,s,r,i,a,l,c,u,d,m,f,g){const w=[...t].reverse();for(const k of w)k.scope.addUsedOutsideNames(s,r,m,f);(function(k,I,E){for(const b of I){for(const A of b.scope.variables.values())A.included&&!(A.renderBaseName||A instanceof Yt&&A.getOriginalVariable()!==A)&&A.setRenderNames(null,Jt(A.name,k,A.forbiddenNames));if(E.has(b)){const A=b.namespace;A.setRenderNames(null,Jt(A.name,k,A.forbiddenNames))}}})(s,w,g),oy[r](s,n,e,i,a,l,c,u,d);for(const k of w)k.scope.deconflict(r,m,f)}function Ep(t,e,n,s,r,i,a,l,c){for(const u of n.dependencies)(r||u instanceof Qn)&&(u.variableName=Jt(u.suggestedVariableName,t,null));for(const u of e){const d=u.module,m=u.name;u.isNamespace&&(r||d instanceof Ze)?u.setRenderNames(null,(d instanceof Ze?l.get(d):a.get(d)).variableName):d instanceof Ze&&m==="default"?u.setRenderNames(null,Jt([...d.exportedVariables].some(([f,g])=>g==="*"&&f.included)?d.suggestedVariableName+"__default":d.suggestedVariableName,t,u.forbiddenNames)):u.setRenderNames(null,Jt(fi(m),t,u.forbiddenNames))}for(const u of c)u.setRenderNames(null,Jt(u.name,t,u.forbiddenNames))}function go(t,e,{deconflictedDefault:n,deconflictedNamespace:s,dependencies:r},i,a,l,c,u){for(const d of r)d.variableName=Jt(d.suggestedVariableName,t,null);for(const d of s)d.namespaceVariableName=Jt(`${d.suggestedVariableName}__namespace`,t,null);for(const d of n)d.defaultVariableName=s.has(d)&&pg(i(d.id),l)?d.namespaceVariableName:Jt(`${d.suggestedVariableName}__default`,t,null);for(const d of e){const m=d.module;if(m instanceof Ze){const f=u.get(m),g=d.name;if(g==="default"){const w=i(m.id),k=Ni[w]?f.defaultVariableName:f.variableName;Ci(w,l)?d.setRenderNames(k,"default"):d.setRenderNames(null,k)}else g==="*"?d.setRenderNames(null,dr[i(m.id)]?f.namespaceVariableName:f.variableName):d.setRenderNames(f.variableName,null)}else{const f=c.get(m);a&&d.isNamespace?d.setRenderNames(null,f.exportMode==="default"?f.namespaceVariableName:f.variableName):f.exportMode==="default"?d.setRenderNames(null,f.variableName):d.setRenderNames(f.variableName,f.getVariableExportName(d))}}}function ly(t,{exports:e,name:n,format:s},r,i){const a=t.getExportNames();if(e==="default"){if(a.length!==1||a[0]!=="default")return oe(kh("default",a,r))}else if(e==="none"&&a.length>0)return oe(kh("none",a,r));return e==="auto"&&(a.length===0?e="none":a.length===1&&a[0]==="default"?e="default":(s!=="es"&&s!=="system"&&a.includes("default")&&i(Ee,function(l,c){return{code:"MIXED_EXPORTS",id:l,message:`Entry module "${Ae(l)}" is using named and default exports together. Consumers of your bundle will have to use \`${c||"chunk"}.default\` to access the default export, which may not be what you want. Use \`output.exports: "named"\` to disable this warning.`,url:ot(ca)}}(r,n)),e="named")),e}function cy(t){const e=t.split(`
44
+ `),n=e.filter(i=>/^\t+/.test(i)),s=e.filter(i=>/^ {2,}/.test(i));if(n.length===0&&s.length===0)return null;if(n.length>=s.length)return" ";const r=s.reduce((i,a)=>{const l=/^ +/.exec(a)[0].length;return Math.min(l,i)},1/0);return" ".repeat(r)}function Ap(t,e,n,s,r,i){const a=t.getDependenciesToBeIncluded();for(const l of a){if(l instanceof Ze){e.push(i.get(l));continue}const c=r.get(l);c===s?n.has(l)||(n.add(l),Ap(l,e,n,s,r,i)):e.push(c)}}const El="!~{",Al="}~",wl=new RegExp(`${El}[0-9a-zA-Z_$]{1,16}${Al}`,"g"),ss=(t,e)=>t.replace(wl,n=>e.get(n)||n),uy=(t,e,n)=>t.replace(wl,s=>s===e?n:s),yo=Symbol("bundleKeys"),Sl={type:"placeholder"};function Il(t,e,n){return ai(t)?oe(wt(`Invalid pattern "${t}" for "${e}", patterns can be neither absolute nor relative paths. If you want your files to be stored in a subdirectory, write its name without a leading slash like this: subdirectory/pattern.`)):t.replace(/\[(\w+)(:\d+)?]/g,(s,r,i)=>{if(!n.hasOwnProperty(r)||i&&r!=="hash")return oe(wt(`"[${r}${i||""}]" is not a valid placeholder in the "${e}" pattern.`));const a=n[r](i&&Number.parseInt(i.slice(1)));return ai(a)?oe(wt(`Invalid substitution "${a}" for placeholder "[${r}]" in "${e}" pattern, can be neither absolute nor relative path.`)):a})}function vl(t,{[yo]:e}){if(!e.has(t.toLowerCase()))return t;const n=xn(t);t=t.slice(0,Math.max(0,t.length-n.length));let s,r=1;for(;e.has((s=t+ ++r+n).toLowerCase()););return s}const hy=new Set([".js",".jsx",".ts",".tsx",".mjs",".mts",".cjs",".cts"]);function dy(t,e,n,s){return(typeof e=="function"?e(t.id):e[t.id])||(n?(s(Ee,(i=t.id,a=t.variableName,{code:"MISSING_GLOBAL_NAME",id:i,message:`No name was provided for external module "${i}" in "output.globals" – guessing "${a}".`,names:[a],url:ot("configuration-options/#output-globals")})),t.variableName):void 0);var i,a}class _n{constructor(e,n,s,r,i,a,l,c,u,d,m,f,g,w,k){this.orderedModules=e,this.inputOptions=n,this.outputOptions=s,this.unsetOptions=r,this.pluginDriver=i,this.modulesById=a,this.chunkByModule=l,this.externalChunkByModule=c,this.facadeChunkByModule=u,this.includedNamespaces=d,this.manualChunkAlias=m,this.getPlaceholder=f,this.bundle=g,this.inputBase=w,this.snippets=k,this.dependencies=new Set,this.entryModules=[],this.exportMode="named",this.facadeModule=null,this.namespaceVariableName="",this.variableName="",this.accessedGlobalsByScope=new Map,this.dynamicEntryModules=[],this.dynamicName=null,this.exportNamesByVariable=new Map,this.exports=new Set,this.exportsByName=new Map,this.fileName=null,this.implicitEntryModules=[],this.implicitlyLoadedBefore=new Set,this.imports=new Set,this.includedDynamicImports=null,this.includedReexportsByModule=new Map,this.isEmpty=!0,this.name=null,this.needsExportsShim=!1,this.preRenderedChunkInfo=null,this.preliminaryFileName=null,this.preliminarySourcemapFileName=null,this.renderedChunkInfo=null,this.renderedDependencies=null,this.renderedModules=Object.create(null),this.sortedExportNames=null,this.strictFacade=!1,this.allowExtensionModules=new Set,this.execIndex=e.length>0?e[0].execIndex:1/0;const I=new Set(e);for(const E of e){l.set(E,this),E.namespace.included&&!s.preserveModules&&d.add(E),this.isEmpty&&E.isIncluded()&&(this.isEmpty=!1),(E.info.isEntry||s.preserveModules)&&this.entryModules.push(E);for(const b of E.includedDynamicImporters)I.has(b)||(this.dynamicEntryModules.push(E),E.info.syntheticNamedExports&&(d.add(E),this.exports.add(E.namespace)));E.implicitlyLoadedAfter.size>0&&this.implicitEntryModules.push(E)}this.suggestedVariableName=fi(this.generateVariableName())}static generateFacade(e,n,s,r,i,a,l,c,u,d,m,f,g,w,k){const I=new _n([],e,n,s,r,i,a,l,c,u,null,f,g,w,k);I.assignFacadeName(m,d),c.has(d)||c.set(d,I);for(const E of d.getDependenciesToBeIncluded())I.dependencies.add(E instanceof st?a.get(E):l.get(E));return!I.dependencies.has(a.get(d))&&d.info.moduleSideEffects&&d.hasEffects()&&I.dependencies.add(a.get(d)),I.ensureReexportsAreAvailableForModule(d),I.facadeModule=d,I.strictFacade=!0,I}canModuleBeFacade(e,n){const s=e.getExportNamesByVariable();for(const r of this.exports)if(!s.has(r))return!1;for(const r of n)if(!(r.module===e||s.has(r)||r instanceof vt&&s.has(r.getBaseVariable())))return!1;return!0}finalizeChunk(e,n,s,r){const i=this.getRenderedChunkInfo(),a=u=>ss(u,r),l=i.fileName,c=this.fileName=a(l);return{...i,code:e,dynamicImports:i.dynamicImports.map(a),fileName:c,implicitlyLoadedBefore:i.implicitlyLoadedBefore.map(a),importedBindings:Object.fromEntries(Object.entries(i.importedBindings).map(([u,d])=>[a(u),d])),imports:i.imports.map(a),map:n,preliminaryFileName:l,referencedFiles:i.referencedFiles.map(a),sourcemapFileName:s}}generateExports(){this.sortedExportNames=null;const e=new Set(this.exports);if(this.facadeModule!==null&&(this.facadeModule.preserveSignature!==!1||this.strictFacade)){const n=this.facadeModule.getExportNamesByVariable();for(const[s,r]of n){this.exportNamesByVariable.set(s,[...r]);for(const i of r)this.exportsByName.set(i,s);e.delete(s)}}for(const n of this.allowExtensionModules){const s=n.getExportNamesByVariable();for(const[r,i]of s){this.exportNamesByVariable.set(r,[...i]);for(const a of i)this.exportsByName.set(a,r);e.delete(r)}}this.outputOptions.minifyInternalExports?function(n,s,r){let i=0;for(const a of n){let[l]=a.name;if(s.has(l))do l=Ei(++i),l.charCodeAt(0)===49&&(i+=9*64**(l.length-1),l=Ei(i));while(pi.has(l)||s.has(l));s.set(l,a),r.set(a,[l])}}(e,this.exportsByName,this.exportNamesByVariable):function(n,s,r){for(const i of n){let a=0,l=i.name;for(;s.has(l);)l=i.name+"$"+ ++a;s.set(l,i),r.set(i,[l])}}(e,this.exportsByName,this.exportNamesByVariable),(this.outputOptions.preserveModules||this.facadeModule&&this.facadeModule.info.isEntry)&&(this.exportMode=ly(this,this.outputOptions,this.facadeModule.id,this.inputOptions.onLog))}generateFacades(){const e=[],n=new Set([...this.entryModules,...this.implicitEntryModules]),s=new Set(this.dynamicEntryModules.map(({namespace:r})=>r));for(const r of n){if(r.preserveSignature==="allow-extension"&&this.canPreserveModuleExports(r)&&!r.chunkFileNames.size&&r.chunkNames.every(({isUserDefined:a})=>!a)){this.allowExtensionModules.add(r),this.facadeModule||(this.facadeModule=r,this.strictFacade=!1,this.assignFacadeName({},r,this.outputOptions.preserveModules)),this.facadeChunkByModule.set(r,this);continue}const i=Array.from(new Set(r.chunkNames.filter(({isUserDefined:a})=>a).map(({name:a})=>a)),a=>({name:a}));if(i.length===0&&r.isUserDefinedEntryPoint&&i.push({}),i.push(...Array.from(r.chunkFileNames,a=>({fileName:a}))),i.length===0&&i.push({}),!this.facadeModule){const a=!this.outputOptions.preserveModules&&(r.preserveSignature==="strict"||r.preserveSignature==="exports-only"&&r.getExportNamesByVariable().size>0);a&&!this.canModuleBeFacade(r,s)||(this.facadeModule=r,this.facadeChunkByModule.set(r,this),r.preserveSignature&&(this.strictFacade=a),this.assignFacadeName(i.shift(),r,this.outputOptions.preserveModules))}for(const a of i)e.push(_n.generateFacade(this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.modulesById,this.chunkByModule,this.externalChunkByModule,this.facadeChunkByModule,this.includedNamespaces,r,a,this.getPlaceholder,this.bundle,this.inputBase,this.snippets))}for(const r of this.dynamicEntryModules)r.info.syntheticNamedExports||(!this.facadeModule&&this.canModuleBeFacade(r,s)?(this.facadeModule=r,this.facadeChunkByModule.set(r,this),this.strictFacade=!0,this.dynamicName=_l(r)):this.facadeModule===r&&!this.strictFacade&&this.canModuleBeFacade(r,s)?this.strictFacade=!0:this.facadeChunkByModule.get(r)?.strictFacade||(this.includedNamespaces.add(r),this.exports.add(r.namespace)));return this.outputOptions.preserveModules||this.addNecessaryImportsForFacades(),e}canPreserveModuleExports(e){const n=e.getExportNamesByVariable();for(const[s,r]of n)for(const i of r){const a=this.exportsByName.get(i);if(a&&a!==s)return!1}for(const[s,r]of n)for(const i of r)this.exportsByName.set(i,s);return!0}getChunkName(){return this.name??=this.outputOptions.sanitizeFileName(this.getFallbackChunkName())}getExportNames(){return this.sortedExportNames??=[...this.exportsByName.keys()].sort()}getFileName(){return this.fileName||this.getPreliminaryFileName().fileName}getImportPath(e){return In(Yu(e,this.getFileName(),this.outputOptions.format==="amd"&&!this.outputOptions.amd.forceJsExtensionForImports,!0))}getPreliminaryFileName(){if(this.preliminaryFileName)return this.preliminaryFileName;let e,n=null;const{chunkFileNames:s,entryFileNames:r,file:i,format:a,preserveModules:l}=this.outputOptions;if(i)e=Gt(i);else if(this.fileName===null){const[c,u]=l||this.facadeModule?.isUserDefinedEntryPoint?[r,"output.entryFileNames"]:[s,"output.chunkFileNames"];e=Il(typeof c=="function"?c(this.getPreRenderedChunkInfo()):c,u,{format:()=>a,hash:d=>n||(n=this.getPlaceholder(u,d||8)),name:()=>this.getChunkName()}),n||(e=vl(e,this.bundle))}else e=this.fileName;return n||(this.bundle[e]=Sl),this.preliminaryFileName={fileName:e,hashPlaceholder:n}}getPreliminarySourcemapFileName(){if(this.preliminarySourcemapFileName)return this.preliminarySourcemapFileName;let e=null,n=null;const{sourcemapFileNames:s,format:r}=this.outputOptions;if(!s)return null;{const[i,a]=[s,"output.sourcemapFileNames"];e=Il(typeof i=="function"?i(this.getPreRenderedChunkInfo()):i,a,{chunkhash:()=>this.getPreliminaryFileName().hashPlaceholder||"",format:()=>r,hash:l=>n||(n=this.getPlaceholder(a,l||8)),name:()=>this.getChunkName()}),n||(e=vl(e,this.bundle))}return this.preliminarySourcemapFileName={fileName:e,hashPlaceholder:n}}getRenderedChunkInfo(){return this.renderedChunkInfo?this.renderedChunkInfo:this.renderedChunkInfo={...this.getPreRenderedChunkInfo(),dynamicImports:this.getDynamicDependencies().map(bo),fileName:this.getFileName(),implicitlyLoadedBefore:Array.from(this.implicitlyLoadedBefore,bo),importedBindings:py(this.getRenderedDependencies(),bo),imports:Array.from(this.dependencies,bo),modules:this.renderedModules,referencedFiles:this.getReferencedFiles()}}getVariableExportName(e){return this.outputOptions.preserveModules&&e instanceof Yn?"*":this.exportNamesByVariable.get(e)[0]}link(){this.dependencies=function(e,n,s,r){const i=[],a=new Set;for(let c=n.length-1;c>=0;c--){const u=n[c];if(!a.has(u)){const d=[];Ap(u,d,a,e,s,r),i.unshift(d)}}const l=new Set;for(const c of i)for(const u of c)l.add(u);return l}(this,this.orderedModules,this.chunkByModule,this.externalChunkByModule);for(const e of this.orderedModules)this.addImplicitlyLoadedBeforeFromModule(e),this.setUpChunkImportsAndExportsForModule(e)}inlineTransitiveImports(){const{facadeModule:e,dependencies:n,outputOptions:s}=this,{hoistTransitiveImports:r,preserveModules:i}=s;if(r&&!i&&e!==null)for(const a of n)a instanceof _n&&this.inlineChunkDependencies(a)}async render(){const{exportMode:e,facadeModule:n,inputOptions:{onLog:s},outputOptions:r,pluginDriver:i,snippets:a}=this,{format:l,preserveModules:c}=r,u=this.getPreliminaryFileName(),d=this.getPreliminarySourcemapFileName(),{accessedGlobals:m,indent:f,magicString:g,renderedSource:w,usedModules:k,usesTopLevelAwait:I}=this.renderModules(u.fileName),E=[...this.getRenderedDependencies().values()],b=e==="none"?[]:this.getChunkExportDeclarations(l);let A=b.length>0,v=!1;for(const U of E){const{reexports:O}=U;O?.length&&(A=!0,!v&&O.some(_=>_.reexported==="default")&&(v=!0),l==="es"&&(U.reexports=O.filter(({reexported:_})=>!b.find(({exported:N})=>N===_))))}if(!v){for(const{exported:U}of b)if(U==="default"){v=!0;break}}const{intro:$,outro:D,banner:j,footer:V}=await async function(U,O,_){try{let[C,R,M,q]=await Promise.all([O.hookReduceValue("banner",U.banner(_),[_],xp),O.hookReduceValue("footer",U.footer(_),[_],xp),O.hookReduceValue("intro",U.intro(_),[_],kp),O.hookReduceValue("outro",U.outro(_),[_],kp)]);return M&&(M+=`
45
45
 
46
46
  `),q&&(q=`
47
47
 
48
48
  ${q}`),C&&(C+=`
49
49
  `),R&&(R=`
50
50
  `+R),{banner:C,footer:R,intro:M,outro:q}}catch(C){return oe((N=C.message,{code:"ADDON_ERROR",message:`Could not retrieve "${C.hook}". Check configuration of plugin "${C.plugin}".
51
- Error Message: ${N}`}))}var N}(i,r,this.getRenderedChunkInfo());if($g[l](E,{accessedGlobals:m,dependencies:A,exports:x,hasDefaultExport:v,hasExports:w,id:u.fileName,indent:f,intro:$,isEntryFacade:c||n!==null&&n.info.isEntry,isModuleFacade:n!==null,log:s,namedExportsMode:e!=="default",outro:D,snippets:a,usesTopLevelAwait:I},i),j&&g.prepend(j),l==="es"||l==="cjs"){const U=n!==null&&n.info.isEntry&&n.shebang;U&&g.prepend(`#!${U}
52
- `)}return V&&g.append(V),{chunk:this,magicString:g,preliminaryFileName:u,preliminarySourcemapFileName:d,usedModules:k}}addImplicitlyLoadedBeforeFromModule(e){const{chunkByModule:n,implicitlyLoadedBefore:s}=this;for(const i of e.implicitlyLoadedBefore){const r=n.get(i);r&&r!==this&&s.add(r)}}addNecessaryImportsForFacades(){for(const[e,n]of this.includedReexportsByModule)if(this.includedNamespaces.has(e))for(const s of n)this.imports.add(s)}assignFacadeName({fileName:e,name:n},s,i){e?this.fileName=e:this.name=this.outputOptions.sanitizeFileName(n||(i?this.getPreserveModulesChunkNameFromModule(s):_l(s)))}checkCircularDependencyImport(e,n){const s=e.module;if(s instanceof st){const i=this.chunkByModule.get(s);let r;do r=n.alternativeReexportModules.get(e),r&&(this.chunkByModule.get(r)!==i&&this.inputOptions.onLog(Ee,Rm(s.getExportNamesByVariable().get(e)?.[0]||"*",s.id,r.id,n.id,this.outputOptions.preserveModules)),n=r);while(r)}}ensureReexportsAreAvailableForModule(e){const n=[],s=e.getExportNamesByVariable();for(const i of s.keys()){const r=i instanceof vt,a=r?i.getBaseVariable():i;if(this.checkCircularDependencyImport(a,e),!(a instanceof Ps&&this.outputOptions.preserveModules)){const l=a.module;if(l instanceof st){const c=this.chunkByModule.get(l);c&&c!==this&&(c.exports.add(a),n.push(a),r&&this.imports.add(a))}}}n.length>0&&this.includedReexportsByModule.set(e,n)}generateVariableName(){if(this.manualChunkAlias)return this.manualChunkAlias;const e=this.entryModules[0]||this.implicitEntryModules[0]||this.dynamicEntryModules[0]||this.orderedModules[this.orderedModules.length-1];return e?_l(e):"chunk"}getChunkExportDeclarations(e){const n=[];for(const s of this.getExportNames()){if(s[0]==="*")continue;const i=this.exportsByName.get(s);if(!(i instanceof vt)){const c=i.module;if(c){const u=this.chunkByModule.get(c);if(u!==this){if(!u||e!=="es")continue;const d=this.renderedDependencies.get(u);if(!d)continue;const{imports:m,reexports:f}=d,g=f?.find(({reexported:k})=>k===s);if(!m?.find(({imported:k})=>k===g?.imported))continue}}}let r=null,a=!1,l=i.getName(this.snippets.getPropertyAccess);if(i instanceof Dt){for(const c of i.declarations)if(c.parent instanceof _s||c instanceof Kn&&c.declaration instanceof _s){a=!0;break}}else i instanceof vt&&(r=l,e==="es"&&(l=i.renderName));n.push({exported:s,expression:r,hoisted:a,local:l})}return n}getDependenciesToBeDeconflicted(e,n,s){const i=new Set,r=new Set,a=new Set;for(const l of[...this.exportNamesByVariable.keys(),...this.imports])if(e||l.isNamespace){const c=l.module;if(c instanceof Ze){const u=this.externalChunkByModule.get(c);i.add(u),e&&(l.name==="default"?Nr[s(c.id)]&&r.add(u):l.isNamespace&&ui[s(c.id)]&&(this.imports.has(l)||!this.exportNamesByVariable.get(l)?.every(d=>d.startsWith("*")))&&a.add(u))}else{const u=this.chunkByModule.get(c);u!==this&&(i.add(u),e&&u.exportMode==="default"&&l.isNamespace&&a.add(u))}}if(n)for(const l of this.dependencies)i.add(l);return{deconflictedDefault:r,deconflictedNamespace:a,dependencies:i}}getDynamicDependencies(){return this.getIncludedDynamicImports().map(e=>e.facadeChunk||e.chunk||e.externalChunk||e.resolution).filter(e=>e!==this&&(e instanceof _n||e instanceof Yn))}getDynamicImportStringAndAttributes(e,n,s){if(e instanceof Ze){const r=this.externalChunkByModule.get(e);return[`'${r.getImportPath(n)}'`,r.getImportAttributes(this.snippets)]}let i=null;if(["es","cjs"].includes(this.outputOptions.format)&&this.outputOptions.externalImportAttributes){const r=up(s);i=r===ft||ud(r,this.snippets)}return[e||"",i]}getFallbackChunkName(){return this.manualChunkAlias?this.manualChunkAlias:this.dynamicName?this.dynamicName:this.fileName?la(this.fileName):la(this.orderedModules[this.orderedModules.length-1].id)}getImportSpecifiers(){const{interop:e}=this.outputOptions,n=new Map;for(const s of this.imports){const i=s.module;let r,a;if(i instanceof Ze){if(r=this.externalChunkByModule.get(i),a=s.name,a!=="default"&&a!=="*"&&e(i.id)==="defaultOnly")return oe(Ah(i.id,a,!1))}else r=this.chunkByModule.get(i),a=r.getVariableExportName(s);bt(n,r,Vu).push({imported:a,local:s.getName(this.snippets.getPropertyAccess)})}return n}getIncludedDynamicImports(){if(this.includedDynamicImports)return this.includedDynamicImports;const e=[];for(const n of this.orderedModules)for(const{node:s,resolution:i}of n.dynamicImports)s.included&&e.push(i instanceof st?{chunk:this.chunkByModule.get(i),externalChunk:null,facadeChunk:this.facadeChunkByModule.get(i),node:s,resolution:i}:i instanceof Ze?{chunk:null,externalChunk:this.externalChunkByModule.get(i),facadeChunk:null,node:s,resolution:i}:{chunk:null,externalChunk:null,facadeChunk:null,node:s,resolution:i});return this.includedDynamicImports=e}getPreRenderedChunkInfo(){if(this.preRenderedChunkInfo)return this.preRenderedChunkInfo;const{dynamicEntryModules:e,facadeModule:n,implicitEntryModules:s,orderedModules:i}=this;return this.preRenderedChunkInfo={exports:this.getExportNames(),facadeModuleId:n&&n.id,isDynamicEntry:e.length>0,isEntry:!!n?.info.isEntry,isImplicitEntry:s.length>0,moduleIds:i.map(({id:r})=>r),name:this.getChunkName(),type:"chunk"}}getPreserveModulesChunkNameFromModule(e){const n=Ep(e);if(n)return n;const{preserveModulesRoot:s,sanitizeFileName:i}=this.outputOptions,r=i(an(e.id.split(dy,1)[0])),a=xn(r),l=cy.has(a)?r.slice(0,-a.length):r;return Ht(l)?s&&At(l).startsWith(s)?l.slice(s.length).replace(/^[/\\]/,""):this.inputBase!=="/"||l.startsWith("/")?Rn(this.inputBase,l):Rn(this.inputBase,l.replace(/^[a-zA-Z]:[/\\]/,"/")):this.outputOptions.virtualDirname.replace(/\/$/,"")+"/"+Gt(l)}getReexportSpecifiers(){const{externalLiveBindings:e,interop:n}=this.outputOptions,s=new Map;for(let i of this.getExportNames()){let r,a,l=!1;if(i[0]==="*"){const c=i.slice(1);n(c)==="defaultOnly"&&this.inputOptions.onLog(Ee,jm(c)),l=e,r=this.externalChunkByModule.get(this.modulesById.get(c)),a=i="*"}else{const c=this.exportsByName.get(i);if(c instanceof vt)continue;const u=c.module;if(u instanceof st){if(r=this.chunkByModule.get(u),r===this)continue;a=r.getVariableExportName(c),l=c.isReassigned}else{if(r=this.externalChunkByModule.get(u),a=c.name,a!=="default"&&a!=="*"&&n(u.id)==="defaultOnly")return oe(Ah(u.id,a,!0));l=e&&(a!=="default"||Cr(n(u.id),!0))}}bt(s,r,Vu).push({imported:a,needsLiveBinding:l,reexported:i})}return s}getReferencedFiles(){const e=new Set;for(const n of this.orderedModules)for(const s of n.importMetas){const i=s.getReferencedFileName(this.pluginDriver);i&&e.add(i)}return[...e]}getRenderedDependencies(){if(this.renderedDependencies)return this.renderedDependencies;const e=this.getImportSpecifiers(),n=this.getReexportSpecifiers(),s=new Map,i=this.getFileName();for(const r of this.dependencies){const a=e.get(r)||null,l=n.get(r)||null,c=r instanceof Yn||r.exportMode!=="default",u=r.getImportPath(i);s.set(r,{attributes:r instanceof Yn?r.getImportAttributes(this.snippets):null,defaultVariableName:r.defaultVariableName,globalName:r instanceof Yn&&(this.outputOptions.format==="umd"||this.outputOptions.format==="iife")&&uy(r,this.outputOptions.globals,(a||l)!==null,this.inputOptions.onLog),importPath:u,imports:a,isChunk:r instanceof _n,name:r.variableName,namedExportsMode:c,namespaceVariableName:r.namespaceVariableName,reexports:l})}return this.renderedDependencies=s}inlineChunkDependencies(e){for(const n of e.dependencies)this.dependencies.has(n)||(this.dependencies.add(n),n instanceof _n&&this.inlineChunkDependencies(n))}renderModules(e){const{accessedGlobalsByScope:n,dependencies:s,exportNamesByVariable:i,includedNamespaces:r,inputOptions:{onLog:a},isEmpty:l,orderedModules:c,outputOptions:u,pluginDriver:d,renderedModules:m,snippets:f}=this,{compact:g,format:E,freeze:k,generatedCode:{symbols:I},importAttributesKey:A}=u,{_:x,cnst:w,n:v}=f;this.setDynamicImportResolutions(e),this.setImportMetaResolutions(e),this.setIdentifierRenderResolutions();const $=new fm({separator:`${v}${v}`}),D=function(M,q){if(q.indent!==!0)return q.indent;for(const K of M){const X=ay(K.originalCode);if(X!==null)return X}return" "}(c,u),j=[];let V="";const U=new Set,O=new Map,_={accessedDocumentCurrentScript:!1,exportNamesByVariable:i,format:E,freeze:k,importAttributesKey:A,indent:D,pluginDriver:d,snippets:f,symbols:I,useOriginalName:null};let N=!1;for(const M of c){let q,K=0;if(M.isIncluded()||r.has(M)){const T=M.render(_);!_.accessedDocumentCurrentScript&&ad.includes(E)&&this.accessedGlobalsByScope.get(M.scope)?.delete(fn),_.accessedDocumentCurrentScript=!1,{source:q}=T,N||=T.usesTopLevelAwait,K=q.length(),K&&(g&&q.lastLine().includes("//")&&q.append(`
53
- `),O.set(M,q),$.addSource(q),j.push(M));const de=M.namespace;if(r.has(M)){const ce=de.renderBlock(_);de.renderFirst()?V+=v+ce:$.addSource(new Gs(ce))}const he=n.get(M.scope);if(he)for(const ce of he)U.add(ce)}const{renderedExports:X,removedExports:ae}=M.getRenderedExports();m[M.id]={get code(){return q?.toString()??null},originalLength:M.originalCode.length,removedExports:ae,renderedExports:X,renderedLength:K}}V&&$.prepend(V+v+v),this.needsExportsShim&&$.prepend(`${v}${w} ${$s}${x}=${x}void 0;${v}${v}`);const C=g?$:$.trim();var R;return l&&this.getExportNames().length===0&&s.size===0&&a(Ee,{code:"EMPTY_BUNDLE",message:`Generated an empty chunk: "${R=this.getChunkName()}".`,names:[R]}),{accessedGlobals:U,indent:D,magicString:$,renderedSource:C,usedModules:j,usesTopLevelAwait:N}}setDynamicImportResolutions(e){const{accessedGlobalsByScope:n,outputOptions:s,pluginDriver:i,snippets:r}=this;for(const a of this.getIncludedDynamicImports())if(a.chunk){const{chunk:l,facadeChunk:c,node:u,resolution:d}=a;l===this?u.setInternalResolution(d.namespace):u.setExternalResolution((c||l).exportMode,d,s,r,i,n,`'${(c||l).getImportPath(e)}'`,!c?.strictFacade&&l.exportNamesByVariable.get(d.namespace)[0],null,this,c||l)}else{const{node:l,resolution:c}=a,[u,d]=this.getDynamicImportStringAndAttributes(c,e,l);l.setExternalResolution("external",c,s,r,i,n,u,!1,d,this,null)}}setIdentifierRenderResolutions(){const{format:e,generatedCode:{symbols:n},interop:s,preserveModules:i,externalLiveBindings:r}=this.outputOptions,a=new Set;for(const c of this.getExportNames()){const u=this.exportsByName.get(c);e!=="es"&&e!=="system"&&u.isReassigned&&!u.isId?u.setRenderNames("exports",c):u instanceof vt?a.add(u):u.setRenderNames(null,null)}for(const c of this.orderedModules)if(c.needsExportShim){this.needsExportsShim=!0;break}const l=new Set(["Object","Promise"]);switch(this.needsExportsShim&&l.add($s),n&&l.add("Symbol"),e){case"system":l.add("module").add("exports");break;case"es":break;case"cjs":l.add("module").add("require").add("__filename").add("__dirname");default:l.add("exports");for(const c of Oa)l.add(c)}ry(this.orderedModules,this.getDependenciesToBeDeconflicted(e!=="es"&&e!=="system",e==="amd"||e==="umd"||e==="iife",s),this.imports,l,e,s,i,r,this.chunkByModule,this.externalChunkByModule,a,this.exportNamesByVariable,this.accessedGlobalsByScope,this.includedNamespaces)}setImportMetaResolutions(e){const{accessedGlobalsByScope:n,includedNamespaces:s,orderedModules:i,outputOptions:{format:r}}=this;for(const a of i){for(const l of a.importMetas)l.setResolution(r,n,e);s.has(a)&&a.namespace.prepare(n)}}setUpChunkImportsAndExportsForModule(e){const n=new Set(e.includedImports);if(!this.outputOptions.preserveModules&&this.includedNamespaces.has(e)){const s=e.namespace.getMemberVariables();for(const i of Object.values(s))i.included&&n.add(i)}for(let s of n){s instanceof Yt&&(s=s.getOriginalVariable()),s instanceof vt&&(s=s.getBaseVariable());const i=this.chunkByModule.get(s.module);i!==this&&(this.imports.add(s),s.module instanceof st&&(this.checkCircularDependencyImport(s,e),s instanceof Ps&&this.outputOptions.preserveModules||i.exports.add(s)))}(this.includedNamespaces.has(e)||e.info.isEntry&&e.preserveSignature!==!1||e.includedDynamicImporters.some(s=>this.chunkByModule.get(s)!==this))&&this.ensureReexportsAreAvailableForModule(e);for(const{node:s,resolution:i}of e.dynamicImports)s.included&&i instanceof st&&this.chunkByModule.get(i)===this&&!this.includedNamespaces.has(i)&&(this.includedNamespaces.add(i),this.ensureReexportsAreAvailableForModule(i))}}function _l(t){return Ep(t)??la(t.id)}function Ep(t){return t.chunkNames.find(({isUserDefined:e})=>e)?.name??t.chunkNames[0]?.name}function hy(t,e){const n={};for(const[s,i]of t){const r=new Set;if(i.imports)for(const{imported:a}of i.imports)r.add(a);if(i.reexports)for(const{imported:a}of i.reexports)r.add(a);n[e(s)]=[...r]}return n}const dy=/[#?]/,bo=t=>t.getFileName();function*Ap(t){for(const e of t)yield*e}function py(t,e,n,s){const{chunkDefinitions:i,modulesInManualChunks:r}=function(x){const w=new Set(x.keys()),v=Object.create(null);for(const[V,U]of x)fy(V,v[U]||=[],w);const $=Object.entries(v),D=new Array($.length);let j=0;for(const[V,U]of $)D[j++]={alias:V,modules:U};return{chunkDefinitions:D,modulesInManualChunks:w}}(e),{allEntries:a,dependentEntriesByModule:l,dynamicallyDependentEntriesByDynamicEntry:c,dynamicImportsByEntry:u,dynamicallyDependentEntriesByAwaitedDynamicEntry:d,awaitedDynamicImportsByEntry:m}=function(x){const w=new Set,v=new Set,$=new Map,D=new Set(x),j=new Array(D.size),V=new Array(D.size);let U=0;for(const M of D){const q=new Set,K=new Set;j[U]=q,V[U]=K;const X=new Set([M]);for(const ae of X){bt($,ae,Ln).add(U);for(const T of ae.getDependenciesToBeIncluded())T instanceof Ze||X.add(T);for(const{resolution:T}of ae.dynamicImports)if(T instanceof st&&T.includedDynamicImporters.length>0&&!D.has(T)){w.add(T),D.add(T),q.add(T);for(const de of T.includedDirectTopLevelAwaitingDynamicImporters)if(X.has(de)){v.add(T),K.add(T);break}}for(const T of ae.implicitlyLoadedBefore)D.has(T)||(w.add(T),D.add(T))}U++}const O=[...D],{awaitedDynamicEntries:_,awaitedDynamicImportsByEntry:N,dynamicEntries:C,dynamicImportsByEntry:R}=function(M,q,K,X,ae){const T=new Map,de=new Set,he=new Set;for(const[b,F]of M.entries())T.set(F,b),q.has(F)&&de.add(b),X.has(F)&&he.add(b);const ce=wp(K,T),L=wp(ae,T);return{awaitedDynamicEntries:he,awaitedDynamicImportsByEntry:L,dynamicEntries:de,dynamicImportsByEntry:ce}}(O,w,j,v,V);return{allEntries:O,awaitedDynamicImportsByEntry:N,dependentEntriesByModule:$,dynamicallyDependentEntriesByAwaitedDynamicEntry:Sp($,_,O,M=>M.includedDirectTopLevelAwaitingDynamicImporters),dynamicallyDependentEntriesByDynamicEntry:Sp($,C,O,M=>M.includedDynamicImporters),dynamicImportsByEntry:R}}(t),f=function(x){const w=Object.create(null);for(const{dependentEntries:v,modules:$}of x){let D=0n;for(const j of v)D|=1n<<BigInt(j);(w[String(D)]||={dependentEntries:new Set(v),modules:[]}).modules.push(...$)}return Object.values(w)}(function*(x,w){for(const[v,$]of x)w.has(v)||(yield{dependentEntries:$,modules:[v]})}(l,r)),g=function(x,w){const v=x.map(()=>0n);let $=1n;for(const{dependentEntries:D}of w){for(const j of D)v[j]|=$;$<<=1n}return v}(a,f),E=Ip(g,c,u,a);(function(x,w,v){let $=1n;for(const{dependentEntries:D}of x){for(const j of D)(w[j]&$)===$&&(v[j]&$)===0n&&D.delete(j);$<<=1n}})(f,E,Ip(g,d,m,a));const{chunks:k,sideEffectAtoms:I,sizeByAtom:A}=function(x,w,v,$){const D=Object.create(null),j=new Map,V=new Array(x.length);let U=0n,O=1n,_=0;for(const{dependentEntries:C,modules:R}of x){let M=0n,q=-1n;for(const T of C)M|=1n<<BigInt(T),q&=w[T]|v[T];const K=D[String(M)]||={containedAtoms:0n,correlatedAtoms:q,dependencies:new Set,dependentChunks:new Set,dependentEntries:new Set(C),modules:[],pure:!0,size:0};let X=0,ae=!0;for(const T of R)j.set(T,K),T.isIncluded()&&(ae&&=!T.hasEffects(),X+=$>1?T.estimateSize():1);ae||(U|=O),V[_++]=X,K.containedAtoms|=O,K.modules.push(...R),K.pure&&=ae,K.size+=X,O<<=1n}const N=Object.values(D);return U|=function(C,R,M){const q=new Map;let K=0n;for(const X of C){const{dependencies:ae,modules:T}=X;for(const de of T)for(const he of de.getDependenciesToBeIncluded())if(he instanceof Ze){if(he.info.moduleSideEffects){const ce=bt(q,he,()=>{const L=M;return M<<=1n,K|=L,L});X.containedAtoms|=ce,X.correlatedAtoms|=ce}}else{const ce=R.get(he);ce&&ce!==X&&(ae.add(ce),ce.dependentChunks.add(X))}}return K}(N,j,O),{chunks:N,sideEffectAtoms:U,sizeByAtom:V}}(f,g,E,n);return i.push(...function(x,w,v,$,D){ct("optimize chunks",3);const j=function(V,U){const O=[],_=[];for(const N of V)(N.size<U?O:_).push(N);return O.length===0?null:(O.sort(vp),_.sort(vp),{big:new Set(_),small:new Set(O)})}(x,w);return j?(w>1&&D("info",kh(x.length,j.small.size,"Initially")),function(V,U,O,_){const{small:N}=V;for(const C of N){const R=my(C,V,O,_,U<=1?1:1/0);if(R){const{containedAtoms:M,correlatedAtoms:q,modules:K,pure:X,size:ae}=C;N.delete(C),Pp(R,U,V).delete(R),R.modules.push(...K),R.size+=ae,R.pure&&=X;const{dependencies:T,dependentChunks:de,dependentEntries:he}=R;R.correlatedAtoms&=q,R.containedAtoms|=M;for(const ce of C.dependentEntries)he.add(ce);for(const ce of C.dependencies)T.add(ce),ce.dependentChunks.delete(C),ce.dependentChunks.add(R);for(const ce of C.dependentChunks)de.add(ce),ce.dependencies.delete(C),ce.dependencies.add(R);T.delete(R),de.delete(R),Pp(R,U,V).add(R)}}}(j,w,v,$),w>1&&D("info",kh(j.small.size+j.big.size,j.small.size,"After merging chunks")),at("optimize chunks",3),[...j.small,...j.big]):(at("optimize chunks",3),x)}(k,n,I,A,s).map(({modules:x})=>({alias:null,modules:x}))),i}function fy(t,e,n){const s=new Set([t]);for(const i of s){n.add(i),e.push(i);for(const r of i.dependencies)r instanceof Ze||n.has(r)||s.add(r)}}function wp(t,e){const n=new Array(t.length);let s=0;for(const i of t){const r=new Set;for(const a of i)r.add(e.get(a));n[s++]=r}return n}function Sp(t,e,n,s){const i=new Map;for(const r of e){const a=bt(i,r,Ln),l=n[r];for(const c of Ap([s(l),l.implicitlyLoadedAfter]))for(const u of t.get(c))a.add(u)}return i}function Ip(t,e,n,s){const i=s.map((r,a)=>e.has(a)?-1n:0n);for(const[r,a]of e){e.delete(r);const l=i[r];let c=l;for(const u of a)c&=t[u]|i[u];if(c!==l){i[r]=c;for(const u of n[r])bt(e,u,Ln).add(r)}}return i}function vp({size:t},{size:e}){return t-e}function my(t,{big:e,small:n},s,i,r){let a=null;for(const l of Ap([n,e])){if(t===l)continue;const c=gy(t,l,r,s,i);if(c<r){if(a=l,c===0)break;r=c}}return a}function gy(t,e,n,s,i){const r=_p(t,e,n,s,i);return r<n?r+_p(e,t,n-r,s,i):1/0}function _p(t,e,n,s,i){const{correlatedAtoms:r}=e;let a=t.containedAtoms;const l=a&s;if((r&l)!==l)return 1/0;const c=new Set(t.dependencies);for(const{dependencies:u,containedAtoms:d}of c){a|=d;const m=d&s;if((r&m)!==m)return 1/0;for(const f of u){if(f===e)return 1/0;c.add(f)}}return function(u,d,m){let f=0,g=0,E=1n;const{length:k}=m;for(;g<k;g++)if((u&E)===E&&(f+=m[g]),E<<=1n,f>=d)return 1/0;return f}(a&~r,n,i)}function Pp(t,e,n){return t.size<e?n.small:n.big}const yy=(t,e)=>t.execIndex>e.execIndex?1:-1;function by(t){t.sort(yy)}function xy(t){let e=0;const n=[],s=new Set,i=new Set,r=new Map,a=[],l=(u,d)=>{r.has(u)?s.has(u)||n.push(function(m,f,g){const E=Symbol(m.id),k=[m.id];let I=f;for(m.cycles.add(E);I!==m;)I.cycles.add(E),k.push(I.id),I=g.get(I);return k.push(k[0]),k.reverse(),k}(u,d,r)):(r.set(u,d),c(u))},c=u=>{if(u instanceof st){for(const d of u.dependencies)l(d,u);for(const d of u.implicitlyLoadedBefore)i.add(d);for(const{resolution:d,node:m}of u.dynamicImports)d instanceof st&&(m.withinTopLevelAwait?l(d,u):i.add(d));a.push(u)}u.execIndex=e++,s.add(u)};for(const u of t)r.has(u)||(r.set(u,null),c(u));for(const u of i)r.has(u)||(r.set(u,null),c(u));return{cyclePaths:n,orderedModules:a}}const $p=(t,e)=>e?`(${t})`:t;class Np{constructor(e,n){this.isOriginal=!0,this.filename=e,this.content=n}traceSegment(e,n,s){return{column:n,line:e,name:s,source:this}}}class xo{constructor(e,n){this.sources=n,this.names=e.names,this.mappings=e.mappings}traceMappings(){const e=[],n=new Map,s=[],i=[],r=new Map,a=[];for(const l of this.mappings){const c=[];for(const u of l){if(u.length===1)continue;const d=this.sources[u[1]];if(!d)continue;const m=d.traceSegment(u[2],u[3],u.length===5?this.names[u[4]]:"");if(m){const{column:f,line:g,name:E,source:{content:k,filename:I}}=m;let A=n.get(I);if(A===void 0)A=e.length,e.push(I),n.set(I,A),s[A]=k;else if(s[A]==null)s[A]=k;else if(k!=null&&s[A]!==k)return oe(Bm(I));const x=[u[0],A,g,f];if(E){let w=r.get(E);w===void 0&&(w=i.length,i.push(E),r.set(E,w)),x[4]=w}c.push(x)}}a.push(c)}return{mappings:a,names:i,sources:e,sourcesContent:s}}traceSegment(e,n,s){const i=this.mappings[e];if(!i)return null;let r=0,a=i.length-1;for(;r<=a;){const l=r+a>>1;let c=i[l];if(c[0]!==n&&r===a){let u=0;for(let d=0;d<i.length&&!(i[d][0]>n);d++)u=d;c=i[u]}if(c[0]===n||r===a){if(c.length==1)return null;const u=this.sources[c[1]];return u?u.traceSegment(c[2],c[3],c.length===5?this.names[c[4]]:s):null}c[0]>n?a=l-1:r=l+1}return null}}function Cp(t){return function(e,n){return n.missing?(t(Ee,(s=n.plugin,{code:uh,message:`Sourcemap is likely to be incorrect: a plugin (${s}) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help`,plugin:s,url:ot("troubleshooting/#warning-sourcemap-is-likely-to-be-incorrect")})),new xo({mappings:[],names:[]},[e])):new xo(n,[e]);var s}}function Tp(t,e,n,s,i){let r;if(n){const a=n.sources,l=n.sourcesContent||[],c=ln(t)||".",u=n.sourceRoot||".",d=a.map((m,f)=>new Np(At(c,u,m),l[f]));r=new xo(n,d)}else r=new Np(t,e);return s.reduce(i,r)}let Rp;const Dp=t=>function(e){let n,s;try{const a=He.__wbindgen_add_to_stack_pointer(-16);He.xxhashBase64Url(a,Zn(e));var i=Qt().getInt32(a+0,!0),r=Qt().getInt32(a+4,!0);return n=i,s=r,gi(i,r)}finally{He.__wbindgen_add_to_stack_pointer(16),He.__wbindgen_export_0(n,s,1)}}($l(t)),Pl={base36:t=>function(e){let n,s;try{const a=He.__wbindgen_add_to_stack_pointer(-16);He.xxhashBase36(a,Zn(e));var i=Qt().getInt32(a+0,!0),r=Qt().getInt32(a+4,!0);return n=i,s=r,gi(i,r)}finally{He.__wbindgen_add_to_stack_pointer(16),He.__wbindgen_export_0(n,s,1)}}($l(t)),base64:Dp,hex:t=>function(e){let n,s;try{const a=He.__wbindgen_add_to_stack_pointer(-16);He.xxhashBase16(a,Zn(e));var i=Qt().getInt32(a+0,!0),r=Qt().getInt32(a+4,!0);return n=i,s=r,gi(i,r)}finally{He.__wbindgen_add_to_stack_pointer(16),He.__wbindgen_export_0(n,s,1)}}($l(t))};function $l(t){return typeof t=="string"?typeof Buffer>"u"?(Rp??=new TextEncoder,Rp.encode(t)):Buffer.from(t):t}async function ky(t,e,n,s,i){ct("render chunks",2),function(E){for(const k of E)k.facadeModule&&k.facadeModule.isUserDefinedEntryPoint&&k.getPreliminaryFileName()}(t);const r=await Promise.all(t.map(E=>E.render()));at("render chunks",2),ct("transform chunks",2);const a=Pl[s.hashCharacters],l=function(E){return Object.fromEntries(E.map(k=>{const I=k.getRenderedChunkInfo();return[I.fileName,I]}))}(t),{hashDependenciesByPlaceholder:c,initialHashesByPlaceholder:u,nonHashedChunksWithPlaceholders:d,placeholders:m,renderedChunksByPlaceholder:f}=await async function(E,k,I,A,x,w){const v=[],$=new Map,D=new Map,j=new Map,V=new Set;for(const{preliminaryFileName:{hashPlaceholder:U}}of E)U&&V.add(U);return await Promise.all(E.map(async({chunk:U,preliminaryFileName:{fileName:O,hashPlaceholder:_},preliminarySourcemapFileName:N,magicString:C,usedModules:R})=>{const M={chunk:U,fileName:O,sourcemapFileName:N?.fileName??null,...await Ey(C,O,R,k,I,A,w)},{code:q,map:K}=M;if(_){const{containedPlaceholders:ae,transformedCode:T}=((ce,L)=>{const b=new Set,F=ce.replace(wl,B=>L.has(B)?(b.add(B),`${El}${"0".repeat(B.length-5)}${Al}`):B);return{containedPlaceholders:b,transformedCode:F}})(q,V);let de=T;const he=A.hookReduceValueSync("augmentChunkHash","",[U.getRenderedChunkInfo()],(ce,L)=>(L&&(ce+=L),ce));he&&(de+=he),$.set(_,M),D.set(_,{containedPlaceholders:ae,contentHash:x(de)})}else v.push(M);const X=N?.hashPlaceholder;K&&X&&j.set(N.hashPlaceholder,x(K.toString()).slice(0,N.hashPlaceholder.length))})),{hashDependenciesByPlaceholder:D,initialHashesByPlaceholder:j,nonHashedChunksWithPlaceholders:v,placeholders:V,renderedChunksByPlaceholder:$}}(r,l,s,n,a,i),g=function(E,k,I,A,x,w){const v=new Map(I);for(const $ of A){const{fileName:D}=E.get($);let j="";const V=new Set([$]);for(const _ of V){const{containedPlaceholders:N,contentHash:C}=k.get(_);j+=C;for(const R of N)V.add(R)}let U,O;do O&&(j=O),O=w(j).slice(0,$.length),U=ly(D,$,O);while(x[yo].has(U.toLowerCase()));x[U]=Sl,v.set($,O)}return v}(f,c,u,m,e,a);(function(E,k,I,A,x,w){for(const{chunk:v,code:$,fileName:D,sourcemapFileName:j,map:V}of E.values()){let U=ns($,k);const O=ns(D,k);let _=null;V&&(w.sourcemapDebugIds&&(U+=Lp(U,V)),_=j?ns(j,k):`${O}.map`,V.file=ns(V.file,k),U+=Op(_,V,x,w)),I[O]=v.finalizeChunk(U,V,_,k)}for(const{chunk:v,code:$,fileName:D,sourcemapFileName:j,map:V}of A){let U=k.size>0?ns($,k):$,O=null;V&&(w.sourcemapDebugIds&&(U+=Lp(U,V)),O=j?ns(j,k):`${D}.map`,U+=Op(O,V,x,w)),I[D]=v.finalizeChunk(U,V,O,k)}})(f,g,e,d,n,s),at("transform chunks",2)}async function Ey(t,e,n,s,i,r,a){let l=null;const c=[];let u=await r.hookReduceArg0("renderChunk",[t.toString(),s[e],i,{chunks:s}],(x,w,v)=>{if(w==null)return x;if(typeof w=="string"&&(w={code:w,map:void 0}),w.map!==null){const $=Os(w.map);c.push($||{missing:!0,plugin:v.name})}return w.code});const{compact:d,dir:m,file:f,sourcemap:g,sourcemapExcludeSources:E,sourcemapFile:k,sourcemapPathTransform:I,sourcemapIgnoreList:A}=i;if(d||u[u.length-1]===`
51
+ Error Message: ${N}`}))}var N}(r,i,this.getRenderedChunkInfo());if(Cg[l](w,{accessedGlobals:m,dependencies:E,exports:b,hasDefaultExport:v,hasExports:A,id:u.fileName,indent:f,intro:$,isEntryFacade:c||n!==null&&n.info.isEntry,isModuleFacade:n!==null,log:s,namedExportsMode:e!=="default",outro:D,snippets:a,usesTopLevelAwait:I},r),j&&g.prepend(j),l==="es"||l==="cjs"){const U=n!==null&&n.info.isEntry&&n.shebang;U&&g.prepend(`#!${U}
52
+ `)}return V&&g.append(V),{chunk:this,magicString:g,preliminaryFileName:u,preliminarySourcemapFileName:d,usedModules:k}}addImplicitlyLoadedBeforeFromModule(e){const{chunkByModule:n,implicitlyLoadedBefore:s}=this;for(const r of e.implicitlyLoadedBefore){const i=n.get(r);i&&i!==this&&s.add(i)}}addNecessaryImportsForFacades(){for(const[e,n]of this.includedReexportsByModule)if(this.includedNamespaces.has(e))for(const s of n)this.imports.add(s)}assignFacadeName({fileName:e,name:n},s,r){e?this.fileName=e:this.name=this.outputOptions.sanitizeFileName(n||(r?this.getPreserveModulesChunkNameFromModule(s):_l(s)))}checkCircularDependencyImport(e,n){const s=e.module;if(s instanceof st){const r=this.chunkByModule.get(s);let i;do i=n.alternativeReexportModules.get(e),i&&(this.chunkByModule.get(i)!==r&&this.inputOptions.onLog(Ee,Om(s.getExportNamesByVariable().get(e)?.[0]||"*",s.id,i.id,n.id,this.outputOptions.preserveModules)),n=i);while(i)}}ensureReexportsAreAvailableForModule(e){const n=[],s=e.getExportNamesByVariable();for(const r of s.keys()){const i=r instanceof vt,a=i?r.getBaseVariable():r;if(this.checkCircularDependencyImport(a,e),!(a instanceof Yn&&this.outputOptions.preserveModules)){const l=a.module;if(l instanceof st){const c=this.chunkByModule.get(l);c&&c!==this&&(c.exports.add(a),n.push(a),i&&this.imports.add(a))}}}n.length>0&&this.includedReexportsByModule.set(e,n)}generateVariableName(){if(this.manualChunkAlias)return this.manualChunkAlias;const e=this.entryModules[0]||this.implicitEntryModules[0]||this.dynamicEntryModules[0]||this.orderedModules[this.orderedModules.length-1];return e?_l(e):"chunk"}getChunkExportDeclarations(e){const n=[];for(const s of this.getExportNames()){if(s[0]==="*")continue;const r=this.exportsByName.get(s);if(!(r instanceof vt)){const c=r.module;if(c){const u=this.chunkByModule.get(c);if(u!==this){if(!u||e!=="es")continue;const d=this.renderedDependencies.get(u);if(!d)continue;const{imports:m,reexports:f}=d,g=f?.find(({reexported:k})=>k===s);if(!m?.find(({imported:k})=>k===g?.imported))continue}}}let i=null,a=!1,l=r.getName(this.snippets.getPropertyAccess);if(r instanceof Dt){for(const c of r.declarations)if(c.parent instanceof Ps||c instanceof Kn&&c.declaration instanceof Ps){a=!0;break}}else r instanceof vt&&(i=l,e==="es"&&(l=r.renderName));n.push({exported:s,expression:i,hoisted:a,local:l})}return n}getDependenciesToBeDeconflicted(e,n,s){const r=new Set,i=new Set,a=new Set;for(const l of[...this.exportNamesByVariable.keys(),...this.imports])if(e||l.isNamespace){const c=l.module;if(c instanceof Ze){const u=this.externalChunkByModule.get(c);r.add(u),e&&(l.name==="default"?Ni[s(c.id)]&&i.add(u):l.isNamespace&&dr[s(c.id)]&&(this.imports.has(l)||!this.exportNamesByVariable.get(l)?.every(d=>d.startsWith("*")))&&a.add(u))}else{const u=this.chunkByModule.get(c);u!==this&&(r.add(u),e&&u.exportMode==="default"&&l.isNamespace&&a.add(u))}}if(n)for(const l of this.dependencies)r.add(l);return{deconflictedDefault:i,deconflictedNamespace:a,dependencies:r}}getDynamicDependencies(){return this.getIncludedDynamicImports().map(e=>e.facadeChunk||e.chunk||e.externalChunk||e.resolution).filter(e=>e!==this&&(e instanceof _n||e instanceof Qn))}getDynamicImportStringAndAttributes(e,n,s){if(e instanceof Ze){const i=this.externalChunkByModule.get(e);return[`'${i.getImportPath(n)}'`,i.getImportAttributes(this.snippets)]}let r=null;if(["es","cjs"].includes(this.outputOptions.format)&&this.outputOptions.externalImportAttributes){const i=dp(s);r=i===ft||dd(i,this.snippets)}return[e||"",r]}getFallbackChunkName(){return this.manualChunkAlias?this.manualChunkAlias:this.dynamicName?this.dynamicName:this.fileName?la(this.fileName):la(this.orderedModules[this.orderedModules.length-1].id)}getImportSpecifiers(){const{interop:e}=this.outputOptions,n=new Map;for(const s of this.imports){const r=s.module;let i,a;if(r instanceof Ze){if(i=this.externalChunkByModule.get(r),a=s.name,a!=="default"&&a!=="*"&&e(r.id)==="defaultOnly")return oe(Sh(r.id,a,!1))}else i=this.chunkByModule.get(r),a=i.getVariableExportName(s);bt(n,i,qu).push({imported:a,local:s.getName(this.snippets.getPropertyAccess)})}return n}getIncludedDynamicImports(){if(this.includedDynamicImports)return this.includedDynamicImports;const e=[];for(const n of this.orderedModules)for(const{node:s,resolution:r}of n.dynamicImports)s.included&&e.push(r instanceof st?{chunk:this.chunkByModule.get(r),externalChunk:null,facadeChunk:this.facadeChunkByModule.get(r),node:s,resolution:r}:r instanceof Ze?{chunk:null,externalChunk:this.externalChunkByModule.get(r),facadeChunk:null,node:s,resolution:r}:{chunk:null,externalChunk:null,facadeChunk:null,node:s,resolution:r});return this.includedDynamicImports=e}getPreRenderedChunkInfo(){if(this.preRenderedChunkInfo)return this.preRenderedChunkInfo;const{dynamicEntryModules:e,facadeModule:n,implicitEntryModules:s,orderedModules:r}=this;return this.preRenderedChunkInfo={exports:this.getExportNames(),facadeModuleId:n&&n.id,isDynamicEntry:e.length>0,isEntry:!!n?.info.isEntry,isImplicitEntry:s.length>0,moduleIds:r.map(({id:i})=>i),name:this.getChunkName(),type:"chunk"}}getPreserveModulesChunkNameFromModule(e){const n=wp(e);if(n)return n;const{preserveModulesRoot:s,sanitizeFileName:r}=this.outputOptions,i=r(an(e.id.split(fy,1)[0])),a=xn(i),l=hy.has(a)?i.slice(0,-a.length):i;return Ht(l)?s&&At(l).startsWith(s)?l.slice(s.length).replace(/^[/\\]/,""):this.inputBase!=="/"||l.startsWith("/")?Rn(this.inputBase,l):Rn(this.inputBase,l.replace(/^[a-zA-Z]:[/\\]/,"/")):this.outputOptions.virtualDirname.replace(/\/$/,"")+"/"+Gt(l)}getReexportSpecifiers(){const{externalLiveBindings:e,interop:n}=this.outputOptions,s=new Map;for(let r of this.getExportNames()){let i,a,l=!1;if(r[0]==="*"){const c=r.slice(1);n(c)==="defaultOnly"&&this.inputOptions.onLog(Ee,Vm(c)),l=e,i=this.externalChunkByModule.get(this.modulesById.get(c)),a=r="*"}else{const c=this.exportsByName.get(r);if(c instanceof vt)continue;const u=c.module;if(u instanceof st){if(i=this.chunkByModule.get(u),i===this)continue;a=i.getVariableExportName(c),l=c.isReassigned}else{if(i=this.externalChunkByModule.get(u),a=c.name,a!=="default"&&a!=="*"&&n(u.id)==="defaultOnly")return oe(Sh(u.id,a,!0));l=e&&(a!=="default"||Ci(n(u.id),!0))}}bt(s,i,qu).push({imported:a,needsLiveBinding:l,reexported:r})}return s}getReferencedFiles(){const e=new Set;for(const n of this.orderedModules)for(const s of n.importMetas){const r=s.getReferencedFileName(this.pluginDriver);r&&e.add(r)}return[...e]}getRenderedDependencies(){if(this.renderedDependencies)return this.renderedDependencies;const e=this.getImportSpecifiers(),n=this.getReexportSpecifiers(),s=new Map,r=this.getFileName();for(const i of this.dependencies){const a=e.get(i)||null,l=n.get(i)||null,c=i instanceof Qn||i.exportMode!=="default",u=i.getImportPath(r);s.set(i,{attributes:i instanceof Qn?i.getImportAttributes(this.snippets):null,defaultVariableName:i.defaultVariableName,globalName:i instanceof Qn&&(this.outputOptions.format==="umd"||this.outputOptions.format==="iife")&&dy(i,this.outputOptions.globals,(a||l)!==null,this.inputOptions.onLog),importPath:u,imports:a,isChunk:i instanceof _n,name:i.variableName,namedExportsMode:c,namespaceVariableName:i.namespaceVariableName,reexports:l})}return this.renderedDependencies=s}inlineChunkDependencies(e){for(const n of e.dependencies)this.dependencies.has(n)||(this.dependencies.add(n),n instanceof _n&&this.inlineChunkDependencies(n))}renderModules(e){const{accessedGlobalsByScope:n,dependencies:s,exportNamesByVariable:r,includedNamespaces:i,inputOptions:{onLog:a},isEmpty:l,orderedModules:c,outputOptions:u,pluginDriver:d,renderedModules:m,snippets:f}=this,{compact:g,format:w,freeze:k,generatedCode:{symbols:I},importAttributesKey:E}=u,{_:b,cnst:A,n:v}=f;this.setDynamicImportResolutions(e),this.setImportMetaResolutions(e),this.setIdentifierRenderResolutions();const $=new gm({separator:`${v}${v}`}),D=function(M,q){if(q.indent!==!0)return q.indent;for(const K of M){const X=cy(K.originalCode);if(X!==null)return X}return" "}(c,u),j=[];let V="";const U=new Set,O=new Map,_={accessedDocumentCurrentScript:!1,exportNamesByVariable:r,format:w,freeze:k,importAttributesKey:E,indent:D,pluginDriver:d,snippets:f,symbols:I,useOriginalName:null};let N=!1;for(const M of c){let q,K=0;if(M.isIncluded()||i.has(M)){const T=M.render(_);!_.accessedDocumentCurrentScript&&cd.includes(w)&&this.accessedGlobalsByScope.get(M.scope)?.delete(fn),_.accessedDocumentCurrentScript=!1,{source:q}=T,N||=T.usesTopLevelAwait,K=q.length(),K&&(g&&q.lastLine().includes("//")&&q.append(`
53
+ `),O.set(M,q),$.addSource(q),j.push(M));const de=M.namespace;if(i.has(M)){const ce=de.renderBlock(_);de.renderFirst()?V+=v+ce:$.addSource(new Ws(ce))}const he=n.get(M.scope);if(he)for(const ce of he)U.add(ce)}const{renderedExports:X,removedExports:ae}=M.getRenderedExports();m[M.id]={get code(){return q?.toString()??null},originalLength:M.originalCode.length,removedExports:ae,renderedExports:X,renderedLength:K}}V&&$.prepend(V+v+v),this.needsExportsShim&&$.prepend(`${v}${A} ${$s}${b}=${b}void 0;${v}${v}`);const C=g?$:$.trim();var R;return l&&this.getExportNames().length===0&&s.size===0&&a(Ee,{code:"EMPTY_BUNDLE",message:`Generated an empty chunk: "${R=this.getChunkName()}".`,names:[R]}),{accessedGlobals:U,indent:D,magicString:$,renderedSource:C,usedModules:j,usesTopLevelAwait:N}}setDynamicImportResolutions(e){const{accessedGlobalsByScope:n,outputOptions:s,pluginDriver:r,snippets:i}=this;for(const a of this.getIncludedDynamicImports())if(a.chunk){const{chunk:l,facadeChunk:c,node:u,resolution:d}=a;l===this?u.setInternalResolution(d.namespace):u.setExternalResolution((c||l).exportMode,d,s,i,r,n,`'${(c||l).getImportPath(e)}'`,!c?.strictFacade&&l.exportNamesByVariable.get(d.namespace)[0],null,this,c||l)}else{const{node:l,resolution:c}=a,[u,d]=this.getDynamicImportStringAndAttributes(c,e,l);l.setExternalResolution("external",c,s,i,r,n,u,!1,d,this,null)}}setIdentifierRenderResolutions(){const{format:e,generatedCode:{symbols:n},interop:s,preserveModules:r,externalLiveBindings:i}=this.outputOptions,a=new Set;for(const c of this.getExportNames()){const u=this.exportsByName.get(c);e!=="es"&&e!=="system"&&u.isReassigned&&!u.isId?u.setRenderNames("exports",c):u instanceof vt?a.add(u):u.setRenderNames(null,null)}for(const c of this.orderedModules)if(c.needsExportShim){this.needsExportsShim=!0;break}const l=new Set(["Object","Promise"]);switch(this.needsExportsShim&&l.add($s),n&&l.add("Symbol"),e){case"system":l.add("module").add("exports");break;case"es":break;case"cjs":l.add("module").add("require").add("__filename").add("__dirname");default:l.add("exports");for(const c of Oa)l.add(c)}ay(this.orderedModules,this.getDependenciesToBeDeconflicted(e!=="es"&&e!=="system",e==="amd"||e==="umd"||e==="iife",s),this.imports,l,e,s,r,i,this.chunkByModule,this.externalChunkByModule,a,this.exportNamesByVariable,this.accessedGlobalsByScope,this.includedNamespaces)}setImportMetaResolutions(e){const{accessedGlobalsByScope:n,includedNamespaces:s,orderedModules:r,outputOptions:{format:i}}=this;for(const a of r){for(const l of a.importMetas)l.setResolution(i,n,e);s.has(a)&&a.namespace.prepare(n)}}setUpChunkImportsAndExportsForModule(e){const n=new Set(e.includedImports);if(!this.outputOptions.preserveModules&&this.includedNamespaces.has(e)){const s=e.namespace.getMemberVariables();for(const r of Object.values(s))r.included&&n.add(r)}for(let s of n){s instanceof Yt&&(s=s.getOriginalVariable()),s instanceof vt&&(s=s.getBaseVariable());const r=this.chunkByModule.get(s.module);r!==this&&(this.imports.add(s),s.module instanceof st&&(this.checkCircularDependencyImport(s,e),s instanceof Yn&&this.outputOptions.preserveModules||r.exports.add(s)))}(this.includedNamespaces.has(e)||e.info.isEntry&&e.preserveSignature!==!1||e.includedDynamicImporters.some(s=>this.chunkByModule.get(s)!==this))&&this.ensureReexportsAreAvailableForModule(e);for(const{node:s,resolution:r}of e.dynamicImports)s.included&&r instanceof st&&this.chunkByModule.get(r)===this&&!this.includedNamespaces.has(r)&&(this.includedNamespaces.add(r),this.ensureReexportsAreAvailableForModule(r))}}function _l(t){return wp(t)??la(t.id)}function wp(t){return t.chunkNames.find(({isUserDefined:e})=>e)?.name??t.chunkNames[0]?.name}function py(t,e){const n={};for(const[s,r]of t){const i=new Set;if(r.imports)for(const{imported:a}of r.imports)i.add(a);if(r.reexports)for(const{imported:a}of r.reexports)i.add(a);n[e(s)]=[...i]}return n}const fy=/[#?]/,bo=t=>t.getFileName();function*Sp(t){for(const e of t)yield*e}function my(t,e,n,s){const{chunkDefinitions:r,modulesInManualChunks:i}=function(b){const A=new Set(b.keys()),v=Object.create(null);for(const[V,U]of b)gy(V,v[U]||=[],A);const $=Object.entries(v),D=new Array($.length);let j=0;for(const[V,U]of $)D[j++]={alias:V,modules:U};return{chunkDefinitions:D,modulesInManualChunks:A}}(e),{allEntries:a,dependentEntriesByModule:l,dynamicallyDependentEntriesByDynamicEntry:c,dynamicImportsByEntry:u,dynamicallyDependentEntriesByAwaitedDynamicEntry:d,awaitedDynamicImportsByEntry:m}=function(b){const A=new Set,v=new Set,$=new Map,D=new Set(b),j=new Array(D.size),V=new Array(D.size);let U=0;for(const M of D){const q=new Set,K=new Set;j[U]=q,V[U]=K;const X=new Set([M]);for(const ae of X){bt($,ae,Ln).add(U);for(const T of ae.getDependenciesToBeIncluded())T instanceof Ze||X.add(T);for(const{resolution:T}of ae.dynamicImports)if(T instanceof st&&T.includedDynamicImporters.length>0&&!D.has(T)){A.add(T),D.add(T),q.add(T);for(const de of T.includedDirectTopLevelAwaitingDynamicImporters)if(X.has(de)){v.add(T),K.add(T);break}}for(const T of ae.implicitlyLoadedBefore)D.has(T)||(A.add(T),D.add(T))}U++}const O=[...D],{awaitedDynamicEntries:_,awaitedDynamicImportsByEntry:N,dynamicEntries:C,dynamicImportsByEntry:R}=function(M,q,K,X,ae){const T=new Map,de=new Set,he=new Set;for(const[x,F]of M.entries())T.set(F,x),q.has(F)&&de.add(x),X.has(F)&&he.add(x);const ce=Ip(K,T),L=Ip(ae,T);return{awaitedDynamicEntries:he,awaitedDynamicImportsByEntry:L,dynamicEntries:de,dynamicImportsByEntry:ce}}(O,A,j,v,V);return{allEntries:O,awaitedDynamicImportsByEntry:N,dependentEntriesByModule:$,dynamicallyDependentEntriesByAwaitedDynamicEntry:vp($,_,O,M=>M.includedDirectTopLevelAwaitingDynamicImporters),dynamicallyDependentEntriesByDynamicEntry:vp($,C,O,M=>M.includedDynamicImporters),dynamicImportsByEntry:R}}(t),f=function(b){const A=Object.create(null);for(const{dependentEntries:v,modules:$}of b){let D=0n;for(const j of v)D|=1n<<BigInt(j);(A[String(D)]||={dependentEntries:new Set(v),modules:[]}).modules.push(...$)}return Object.values(A)}(function*(b,A){for(const[v,$]of b)A.has(v)||(yield{dependentEntries:$,modules:[v]})}(l,i)),g=function(b,A){const v=b.map(()=>0n);let $=1n;for(const{dependentEntries:D}of A){for(const j of D)v[j]|=$;$<<=1n}return v}(a,f),w=_p(g,c,u,a);(function(b,A,v){let $=1n;for(const{dependentEntries:D}of b){for(const j of D)(A[j]&$)===$&&(v[j]&$)===0n&&D.delete(j);$<<=1n}})(f,w,_p(g,d,m,a));const{chunks:k,sideEffectAtoms:I,sizeByAtom:E}=function(b,A,v,$){const D=Object.create(null),j=new Map,V=new Array(b.length);let U=0n,O=1n,_=0;for(const{dependentEntries:C,modules:R}of b){let M=0n,q=-1n;for(const T of C)M|=1n<<BigInt(T),q&=A[T]|v[T];const K=D[String(M)]||={containedAtoms:0n,correlatedAtoms:q,dependencies:new Set,dependentChunks:new Set,dependentEntries:new Set(C),modules:[],pure:!0,size:0};let X=0,ae=!0;for(const T of R)j.set(T,K),T.isIncluded()&&(ae&&=!T.hasEffects(),X+=$>1?T.estimateSize():1);ae||(U|=O),V[_++]=X,K.containedAtoms|=O,K.modules.push(...R),K.pure&&=ae,K.size+=X,O<<=1n}const N=Object.values(D);return U|=function(C,R,M){const q=new Map;let K=0n;for(const X of C){const{dependencies:ae,modules:T}=X;for(const de of T)for(const he of de.getDependenciesToBeIncluded())if(he instanceof Ze){if(he.info.moduleSideEffects){const ce=bt(q,he,()=>{const L=M;return M<<=1n,K|=L,L});X.containedAtoms|=ce,X.correlatedAtoms|=ce}}else{const ce=R.get(he);ce&&ce!==X&&(ae.add(ce),ce.dependentChunks.add(X))}}return K}(N,j,O),{chunks:N,sideEffectAtoms:U,sizeByAtom:V}}(f,g,w,n);return r.push(...function(b,A,v,$,D){ct("optimize chunks",3);const j=function(V,U){const O=[],_=[];for(const N of V)(N.size<U?O:_).push(N);return O.length===0?null:(O.sort(Pp),_.sort(Pp),{big:new Set(_),small:new Set(O)})}(b,A);return j?(A>1&&D("info",Ah(b.length,j.small.size,"Initially")),function(V,U,O,_){const{small:N}=V;for(const C of N){const R=yy(C,V,O,_,U<=1?1:1/0);if(R){const{containedAtoms:M,correlatedAtoms:q,modules:K,pure:X,size:ae}=C;N.delete(C),Np(R,U,V).delete(R),R.modules.push(...K),R.size+=ae,R.pure&&=X;const{dependencies:T,dependentChunks:de,dependentEntries:he}=R;R.correlatedAtoms&=q,R.containedAtoms|=M;for(const ce of C.dependentEntries)he.add(ce);for(const ce of C.dependencies)T.add(ce),ce.dependentChunks.delete(C),ce.dependentChunks.add(R);for(const ce of C.dependentChunks)de.add(ce),ce.dependencies.delete(C),ce.dependencies.add(R);T.delete(R),de.delete(R),Np(R,U,V).add(R)}}}(j,A,v,$),A>1&&D("info",Ah(j.small.size+j.big.size,j.small.size,"After merging chunks")),at("optimize chunks",3),[...j.small,...j.big]):(at("optimize chunks",3),b)}(k,n,I,E,s).map(({modules:b})=>({alias:null,modules:b}))),r}function gy(t,e,n){const s=new Set([t]);for(const r of s){n.add(r),e.push(r);for(const i of r.dependencies)i instanceof Ze||n.has(i)||s.add(i)}}function Ip(t,e){const n=new Array(t.length);let s=0;for(const r of t){const i=new Set;for(const a of r)i.add(e.get(a));n[s++]=i}return n}function vp(t,e,n,s){const r=new Map;for(const i of e){const a=bt(r,i,Ln),l=n[i];for(const c of Sp([s(l),l.implicitlyLoadedAfter]))for(const u of t.get(c))a.add(u)}return r}function _p(t,e,n,s){const r=s.map((i,a)=>e.has(a)?-1n:0n);for(const[i,a]of e){e.delete(i);const l=r[i];let c=l;for(const u of a)c&=t[u]|r[u];if(c!==l){r[i]=c;for(const u of n[i])bt(e,u,Ln).add(i)}}return r}function Pp({size:t},{size:e}){return t-e}function yy(t,{big:e,small:n},s,r,i){let a=null;for(const l of Sp([n,e])){if(t===l)continue;const c=by(t,l,i,s,r);if(c<i){if(a=l,c===0)break;i=c}}return a}function by(t,e,n,s,r){const i=$p(t,e,n,s,r);return i<n?i+$p(e,t,n-i,s,r):1/0}function $p(t,e,n,s,r){const{correlatedAtoms:i}=e;let a=t.containedAtoms;const l=a&s;if((i&l)!==l)return 1/0;const c=new Set(t.dependencies);for(const{dependencies:u,containedAtoms:d}of c){a|=d;const m=d&s;if((i&m)!==m)return 1/0;for(const f of u){if(f===e)return 1/0;c.add(f)}}return function(u,d,m){let f=0,g=0,w=1n;const{length:k}=m;for(;g<k;g++)if((u&w)===w&&(f+=m[g]),w<<=1n,f>=d)return 1/0;return f}(a&~i,n,r)}function Np(t,e,n){return t.size<e?n.small:n.big}const xy=(t,e)=>t.execIndex>e.execIndex?1:-1;function ky(t){t.sort(xy)}function Ey(t){let e=0;const n=[],s=new Set,r=new Set,i=new Map,a=[],l=(u,d)=>{i.has(u)?s.has(u)||n.push(function(m,f,g){const w=Symbol(m.id),k=[m.id];let I=f;for(m.cycles.add(w);I!==m;)I.cycles.add(w),k.push(I.id),I=g.get(I);return k.push(k[0]),k.reverse(),k}(u,d,i)):(i.set(u,d),c(u))},c=u=>{if(u instanceof st){for(const d of u.dependencies)l(d,u);for(const d of u.implicitlyLoadedBefore)r.add(d);for(const{resolution:d,node:m}of u.dynamicImports)d instanceof st&&(m.withinTopLevelAwait?l(d,u):r.add(d));a.push(u)}u.execIndex=e++,s.add(u)};for(const u of t)i.has(u)||(i.set(u,null),c(u));for(const u of r)i.has(u)||(i.set(u,null),c(u));return{cyclePaths:n,orderedModules:a}}const Cp=(t,e)=>e?`(${t})`:t;class Tp{constructor(e,n){this.isOriginal=!0,this.filename=e,this.content=n}traceSegment(e,n,s){return{column:n,line:e,name:s,source:this}}}class xo{constructor(e,n){this.sources=n,this.names=e.names,this.mappings=e.mappings}traceMappings(){const e=[],n=new Map,s=[],r=[],i=new Map,a=[];for(const l of this.mappings){const c=[];for(const u of l){if(u.length===1)continue;const d=this.sources[u[1]];if(!d)continue;const m=d.traceSegment(u[2],u[3],u.length===5?this.names[u[4]]:"");if(m){const{column:f,line:g,name:w,source:{content:k,filename:I}}=m;let E=n.get(I);if(E===void 0)E=e.length,e.push(I),n.set(I,E),s[E]=k;else if(s[E]==null)s[E]=k;else if(k!=null&&s[E]!==k)return oe(zm(I));const b=[u[0],E,g,f];if(w){let A=i.get(w);A===void 0&&(A=r.length,r.push(w),i.set(w,A)),b[4]=A}c.push(b)}}a.push(c)}return{mappings:a,names:r,sources:e,sourcesContent:s}}traceSegment(e,n,s){const r=this.mappings[e];if(!r)return null;let i=0,a=r.length-1;for(;i<=a;){const l=i+a>>1;let c=r[l];if(c[0]!==n&&i===a){let u=0;for(let d=0;d<r.length&&!(r[d][0]>n);d++)u=d;c=r[u]}if(c[0]===n||i===a){if(c.length==1)return null;const u=this.sources[c[1]];return u?u.traceSegment(c[2],c[3],c.length===5?this.names[c[4]]:s):null}c[0]>n?a=l-1:i=l+1}return null}}function Rp(t){return function(e,n){return n.missing?(t(Ee,(s=n.plugin,{code:dh,message:`Sourcemap is likely to be incorrect: a plugin (${s}) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help`,plugin:s,url:ot("troubleshooting/#warning-sourcemap-is-likely-to-be-incorrect")})),new xo({mappings:[],names:[]},[e])):new xo(n,[e]);var s}}function Dp(t,e,n,s,r){let i;if(n){const a=n.sources,l=n.sourcesContent||[],c=ln(t)||".",u=n.sourceRoot||".",d=a.map((m,f)=>new Tp(At(c,u,m),l[f]));i=new xo(n,d)}else i=new Tp(t,e);return s.reduce(r,i)}let Op;const Lp=t=>function(e){let n,s;try{const a=He.__wbindgen_add_to_stack_pointer(-16);He.xxhashBase64Url(a,es(e));var r=Qt().getInt32(a+0,!0),i=Qt().getInt32(a+4,!0);return n=r,s=i,br(r,i)}finally{He.__wbindgen_add_to_stack_pointer(16),He.__wbindgen_export_0(n,s,1)}}($l(t)),Pl={base36:t=>function(e){let n,s;try{const a=He.__wbindgen_add_to_stack_pointer(-16);He.xxhashBase36(a,es(e));var r=Qt().getInt32(a+0,!0),i=Qt().getInt32(a+4,!0);return n=r,s=i,br(r,i)}finally{He.__wbindgen_add_to_stack_pointer(16),He.__wbindgen_export_0(n,s,1)}}($l(t)),base64:Lp,hex:t=>function(e){let n,s;try{const a=He.__wbindgen_add_to_stack_pointer(-16);He.xxhashBase16(a,es(e));var r=Qt().getInt32(a+0,!0),i=Qt().getInt32(a+4,!0);return n=r,s=i,br(r,i)}finally{He.__wbindgen_add_to_stack_pointer(16),He.__wbindgen_export_0(n,s,1)}}($l(t))};function $l(t){return typeof t=="string"?typeof Buffer>"u"?(Op??=new TextEncoder,Op.encode(t)):Buffer.from(t):t}async function Ay(t,e,n,s,r){ct("render chunks",2),function(w){for(const k of w)k.facadeModule&&k.facadeModule.isUserDefinedEntryPoint&&k.getPreliminaryFileName()}(t);const i=await Promise.all(t.map(w=>w.render()));at("render chunks",2),ct("transform chunks",2);const a=Pl[s.hashCharacters],l=function(w){return Object.fromEntries(w.map(k=>{const I=k.getRenderedChunkInfo();return[I.fileName,I]}))}(t),{hashDependenciesByPlaceholder:c,initialHashesByPlaceholder:u,nonHashedChunksWithPlaceholders:d,placeholders:m,renderedChunksByPlaceholder:f}=await async function(w,k,I,E,b,A){const v=[],$=new Map,D=new Map,j=new Map,V=new Set;for(const{preliminaryFileName:{hashPlaceholder:U}}of w)U&&V.add(U);return await Promise.all(w.map(async({chunk:U,preliminaryFileName:{fileName:O,hashPlaceholder:_},preliminarySourcemapFileName:N,magicString:C,usedModules:R})=>{const M={chunk:U,fileName:O,sourcemapFileName:N?.fileName??null,...await wy(C,O,R,k,I,E,A)},{code:q,map:K}=M;if(_){const{containedPlaceholders:ae,transformedCode:T}=((ce,L)=>{const x=new Set,F=ce.replace(wl,B=>L.has(B)?(x.add(B),`${El}${"0".repeat(B.length-5)}${Al}`):B);return{containedPlaceholders:x,transformedCode:F}})(q,V);let de=T;const he=E.hookReduceValueSync("augmentChunkHash","",[U.getRenderedChunkInfo()],(ce,L)=>(L&&(ce+=L),ce));he&&(de+=he),$.set(_,M),D.set(_,{containedPlaceholders:ae,contentHash:b(de)})}else v.push(M);const X=N?.hashPlaceholder;K&&X&&j.set(N.hashPlaceholder,b(K.toString()).slice(0,N.hashPlaceholder.length))})),{hashDependenciesByPlaceholder:D,initialHashesByPlaceholder:j,nonHashedChunksWithPlaceholders:v,placeholders:V,renderedChunksByPlaceholder:$}}(i,l,s,n,a,r),g=function(w,k,I,E,b,A){const v=new Map(I);for(const $ of E){const{fileName:D}=w.get($);let j="";const V=new Set([$]);for(const _ of V){const{containedPlaceholders:N,contentHash:C}=k.get(_);j+=C;for(const R of N)V.add(R)}let U,O;do O&&(j=O),O=A(j).slice(0,$.length),U=uy(D,$,O);while(b[yo].has(U.toLowerCase()));b[U]=Sl,v.set($,O)}return v}(f,c,u,m,e,a);(function(w,k,I,E,b,A){for(const{chunk:v,code:$,fileName:D,sourcemapFileName:j,map:V}of w.values()){let U=ss($,k);const O=ss(D,k);let _=null;V&&(A.sourcemapDebugIds&&(U+=Fp(U,V)),_=j?ss(j,k):`${O}.map`,V.file=ss(V.file,k),U+=Mp(_,V,b,A)),I[O]=v.finalizeChunk(U,V,_,k)}for(const{chunk:v,code:$,fileName:D,sourcemapFileName:j,map:V}of E){let U=k.size>0?ss($,k):$,O=null;V&&(A.sourcemapDebugIds&&(U+=Fp(U,V)),O=j?ss(j,k):`${D}.map`,U+=Mp(O,V,b,A)),I[D]=v.finalizeChunk(U,V,O,k)}})(f,g,e,d,n,s),at("transform chunks",2)}async function wy(t,e,n,s,r,i,a){let l=null;const c=[];let u=await i.hookReduceArg0("renderChunk",[t.toString(),s[e],r,{chunks:s}],(b,A,v)=>{if(A==null)return b;if(typeof A=="string"&&(A={code:A,map:void 0}),A.map!==null){const $=Os(A.map);c.push($||{missing:!0,plugin:v.name})}return A.code});const{compact:d,dir:m,file:f,sourcemap:g,sourcemapExcludeSources:w,sourcemapFile:k,sourcemapPathTransform:I,sourcemapIgnoreList:E}=r;if(d||u[u.length-1]===`
54
54
  `||(u+=`
55
- `),g){let x;ct("sourcemaps",3),x=f?At(k||f):m?At(m,e):At(e),l=function(w,v,$,D,j,V){const U=Cp(V),O=$.filter(K=>!K.excludeFromSourcemap).map(K=>Tp(K.id,K.originalCode,K.originalSourcemap,K.sourcemapChain,U)),_=new xo(v,O),N=D.reduce(U,_);let{sources:C,sourcesContent:R,names:M,mappings:q}=N.traceMappings();if(w){const K=ln(w);C=C.map(X=>Rn(K,X)),w=Gt(w)}R=j?null:R;for(const K of $)gl(K.originalSourcemap,K.sourcemapChain);return new Zi({file:w,mappings:q,names:M,sources:C,sourcesContent:R})}(x,t.generateDecodedMap({}),n,c,E,a);for(let w=0;w<l.sources.length;++w){let v=l.sources[w];const $=`${x}.map`,D=A(v,$);typeof D!="boolean"&&oe(wt("sourcemapIgnoreList function must return a boolean.")),D&&(l.x_google_ignoreList===void 0&&(l.x_google_ignoreList=[]),l.x_google_ignoreList.includes(w)||l.x_google_ignoreList.push(w)),I&&(v=I(v,$),typeof v!="string"&&oe(wt("sourcemapPathTransform function must return a string."))),l.sources[w]=an(v)}at("sourcemaps",3)}return{code:u,map:l}}function Op(t,e,n,{sourcemap:s,sourcemapBaseUrl:i}){let r;if(s==="inline")r=e.toUrl();else{const a=Gt(t);r=i?new URL(a,i).toString():a,n.emitFile({fileName:t,originalFileName:null,source:e.toString(),type:"asset"})}return s==="hidden"?"":`//# sourceMappingURL=${r}
56
- `}function Lp(t,e){const n=Pl.hex(t),s=[n.slice(0,8),n.slice(8,12),"4"+n.slice(12,15),(3&parseInt(n.slice(15,16),16)|8).toString(16)+n.slice(17,20),n.slice(20,32)].join("-");return e.debugId=s,"//# debugId="+s+`
57
- `}class Ay{constructor(e,n,s,i,r){this.outputOptions=e,this.unsetOptions=n,this.inputOptions=s,this.pluginDriver=i,this.graph=r,this.facadeChunkByModule=new Map,this.includedNamespaces=new Set}async generate(e){ct("GENERATE",1);const n=Object.create(null),s=(i=>{const r=new Set;return new Proxy(i,{deleteProperty:(a,l)=>(typeof l=="string"&&r.delete(l.toLowerCase()),Reflect.deleteProperty(a,l)),get:(a,l)=>l===yo?r:Reflect.get(a,l),set:(a,l,c)=>(typeof l=="string"&&r.add(l.toLowerCase()),Reflect.set(a,l,c))})})(n);this.pluginDriver.setOutputBundle(s,this.outputOptions);try{ct("initialize render",2),await this.pluginDriver.hookParallel("renderStart",[this.outputOptions,this.inputOptions]),at("initialize render",2),ct("generate chunks",2);const i=(()=>{let a=0;return(l,c)=>{if(c>21)return oe(wt(`Hashes cannot be longer than 21 characters, received ${c}. Check the "${l}" option.`));const u=`${El}${Er(++a).padStart(c-5,"0")}${Al}`;return u.length>c?oe(wt(`To generate hashes for this number of chunks (currently ${a}), you need a minimum hash size of ${u.length}, received ${c}. Check the "${l}" option.`)):u}})(),r=await this.generateChunks(s,i);r.length>1&&function(a,l){if(a.format==="umd"||a.format==="iife")return oe(nt("output.format",Qu,"UMD and IIFE output formats are not supported for code-splitting builds",a.format));if(typeof a.file=="string")return oe(nt("output.file",Qs,'when building multiple chunks, the "output.dir" option must be used, not "output.file". To inline dynamic imports, set the "inlineDynamicImports" option'));if(a.sourcemapFile)return oe(nt("output.sourcemapFile",$m,'"output.sourcemapFile" is only supported for single-file builds'));!a.amd.autoId&&a.amd.id&&l(Ee,nt("output.amd.id",Yu,'this option is only properly supported for single-file builds. Use "output.amd.autoId" and "output.amd.basePath" instead'))}(this.outputOptions,this.inputOptions.onLog),this.pluginDriver.setChunkInformation(this.facadeChunkByModule);for(const a of r)a.generateExports(),a.inlineTransitiveImports();at("generate chunks",2),await ky(r,s,this.pluginDriver,this.outputOptions,this.inputOptions.onLog)}catch(i){throw await this.pluginDriver.hookParallel("renderError",[i]),i}return(i=>{const r=new Set,a=Object.values(i);for(const l of a)l.type==="asset"&&l.needsCodeReference&&r.add(l.fileName);for(const l of a)if(l.type==="chunk")for(const c of l.referencedFiles)r.has(c)&&r.delete(c);for(const l of r)delete i[l]})(s),ct("generate bundle",2),await this.pluginDriver.hookSeq("generateBundle",[this.outputOptions,s,e]),this.finaliseAssets(s),at("generate bundle",2),at("GENERATE",1),n}async addManualChunks(e){const n=new Map,s=await Promise.all(Object.entries(e).map(async([i,r])=>({alias:i,entries:await this.graph.moduleLoader.addAdditionalModules(r,!0)})));for(const{alias:i,entries:r}of s)for(const a of r)Mp(i,a,n);return n}assignManualChunks(e){const n=[],s={getModuleIds:()=>this.graph.modulesById.keys(),getModuleInfo:this.graph.getModuleInfo};for(const r of this.graph.modulesById.values())if(r instanceof st){const a=e(r.id,s);typeof a=="string"&&n.push([a,r])}n.sort(([r],[a])=>r>a?1:r<a?-1:0);const i=new Map;for(const[r,a]of n)Mp(r,a,i);return i}finaliseAssets(e){if(this.outputOptions.validate){for(const n of Object.values(e))if("code"in n)try{bl(n.code,{jsx:this.inputOptions.jsx!==!1})}catch(s){this.inputOptions.onLog(Ee,Cm(n,s))}}this.pluginDriver.finaliseAssets()}async generateChunks(e,n){const{experimentalMinChunkSize:s,inlineDynamicImports:i,manualChunks:r,preserveModules:a}=this.outputOptions,l=typeof r=="object"?await this.addManualChunks(r):this.assignManualChunks(r),c=function({compact:A,generatedCode:{arrowFunctions:x,constBindings:w,objectShorthand:v,reservedNamesAsProps:$}}){const{_:D,n:j,s:V}=A?{_:"",n:"",s:""}:{_:" ",n:`
58
- `,s:";"},U=w?"const":"var",O=(R,{isAsync:M,name:q})=>`${M?"async ":""}function${q?` ${q}`:""}${D}(${R.join(`,${D}`)})${D}`,_=x?(R,{isAsync:M,name:q})=>{const K=R.length===1;return`${q?`${U} ${q}${D}=${D}`:""}${M?`async${K?" ":D}`:""}${K?R[0]:`(${R.join(`,${D}`)})`}${D}=>${D}`}:O,N=(R,{functionReturn:M,lineBreakIndent:q,name:K})=>[`${_(R,{isAsync:!1,name:K})}${x?q?`${j}${q.base}${q.t}`:"":`{${q?`${j}${q.base}${q.t}`:D}${M?"return ":""}`}`,x?`${K?";":""}${q?`${j}${q.base}`:""}`:`${V}${q?`${j}${q.base}`:D}}`],C=$?R=>mr.test(R):R=>!pr.has(R)&&mr.test(R);return{_:D,cnst:U,getDirectReturnFunction:N,getDirectReturnIifeLeft:(R,M,{needsArrowReturnParens:q,needsWrappedFunction:K})=>{const[X,ae]=N(R,{functionReturn:!0,lineBreakIndent:null,name:null});return`${$p(`${X}${$p(M,x&&q)}${ae}`,x||K)}(`},getFunctionIntro:_,getNonArrowFunctionIntro:O,getObject(R,{lineBreakIndent:M}){const q=M?`${j}${M.base}${M.t}`:D;return`{${R.map(([K,X])=>{if(K===null)return`${q}${X}`;const ae=gr(K);return K===X&&v&&K===ae?q+K:`${q}${ae}:${D}${X}`}).join(",")}${R.length===0?"":M?`${j}${M.base}`:D}}`},getPropertyAccess:R=>C(R)?`.${R}`:`[${JSON.stringify(R)}]`,n:j,s:V}}(this.outputOptions),u=function(A){const x=[];for(const w of A.values())w instanceof st&&(w.isIncluded()||w.info.isEntry||w.includedDynamicImporters.length>0)&&x.push(w);return x}(this.graph.modulesById),d=function(A){if(A.length===0)return"/";if(A.length===1)return ln(A[0]);const x=A.slice(1).reduce((w,v)=>{const $=v.split(/\/+|\\+/);let D;for(D=0;w[D]===$[D]&&D<Math.min(w.length,$.length);D++);return w.slice(0,D)},A[0].split(/\/+|\\+/));return x.length>1?x.join("/"):"/"}(function(A,x){const w=[];for(const v of A)(v.info.isEntry||x)&&Ht(v.id)&&w.push(v.id);return w}(u,a)),m=function(A,x,w){const v=new Map;for(const $ of A.values())$ instanceof Ze&&v.set($,new Yn($,x,w));return v}(this.graph.modulesById,this.outputOptions,d),f=i?[{alias:null,modules:u}]:a?u.map(A=>({alias:null,modules:[A]})):py(this.graph.entryModules,l,s,this.inputOptions.onLog),g=new Array(f.length),E=new Map;let k=0;for(const{alias:A,modules:x}of f){by(x);const w=new _n(x,this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.graph.modulesById,E,m,this.facadeChunkByModule,this.includedNamespaces,A,n,e,d,c);g[k++]=w}for(const A of g)A.link();const I=[];for(const A of g)I.push(...A.generateFacades());return[...g,...I]}}function Mp(t,e,n){const s=n.get(e);if(typeof s=="string"&&s!==t)return oe((i=e.id,r=t,a=s,{code:"INVALID_CHUNK",message:`Cannot assign "${Ae(i)}" to the "${r}" chunk as it is already in the "${a}" chunk.`}));var i,r,a;n.set(e,t)}class wy extends Uh{constructor(){super(),this.parent=null,this.variables.set("undefined",new cd)}findVariable(e){let n=this.variables.get(e);return n||(n=new va(e),this.variables.set(e,n)),n}}async function Fp(t,e,n,s,i,r,a,l,c,u){const d=await function(m,f,g,E,k,I,A,x){let w=null,v=null;if(k){w=new Set;for(const $ of k)m===$.source&&f===$.importer&&w.add($.plugin);v=($,D)=>({...$,resolve:(j,V,{attributes:U,custom:O,isEntry:_,skipSelf:N}=pt)=>(N??=!0,N&&k.findIndex(C=>C.plugin===D&&C.source===j&&C.importer===V)!==-1?Promise.resolve(null):E(j,V,O,_,U||ft,N?[...k,{importer:V,plugin:D,source:j}]:k))})}return g.hookFirstAndGetPlugin("resolveId",[m,f,{attributes:x,custom:I,isEntry:A}],v,w)}(t,e,s,i,r,a,l,c);if(d!=null){const[m,f]=d;return typeof m!="object"||m.resolvedBy?typeof m=="string"?{id:m,resolvedBy:f.name}:m:{...m,resolvedBy:f.name}}return e===void 0||Ht(t)||t[0]==="."?async function(m,f,g){return await ko(m,f,g)??await ko(m+".mjs",f,g)??await ko(m+".js",f,g)}(e?At(ln(e),t):At(t),n,u):null}async function ko(t,e,n){try{const s=await n.lstat(t);if(!e&&s.isSymbolicLink())return await ko(await n.realpath(t),e,n);if(e&&s.isSymbolicLink()||s.isFile()){const i=Gt(t);if((await n.readdir(ln(t))).includes(i))return t}}catch{}}function Bp(t){return t.charCodeAt(0)===65279?Bp(t.slice(1)):t}const Nl="at position ",Cl="at output position ",Sy={delete:()=>!1,get(){},has:()=>!1,set(){}};function Eo(t){return t.startsWith(Nl)||t.startsWith(Cl)?oe({code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."}):oe({code:"DUPLICATE_PLUGIN_NAME",message:`The plugin name ${t} is being used twice in the same build. Plugin names must be distinct or provide a cacheKey (please post an issue to the plugin if you are a plugin user).`})}const jp=(t,e,n=vy)=>{const{onwarn:s,onLog:i}=t,r=Iy(n,s);if(i){const a=Bn[e];return(l,c)=>i(l,zp(c),(u,d)=>{if(u==="error")return oe(Zt(d));Bn[u]>=a&&r(u,Zt(d))})}return r},Iy=(t,e)=>e?(n,s)=>{n===Ee?e(zp(s),i=>t(Ee,Zt(i))):t(n,s)}:t,zp=t=>(Object.defineProperty(t,"toString",{value:()=>t.message,writable:!0}),t),Zt=t=>typeof t=="string"?{message:t}:typeof t=="function"?Zt(t()):t,vy=(t,{message:e})=>{switch(t){case Ee:return console.warn(e);case Ys:return console.debug(e);default:return console.info(e)}};function Vp(t,e,n,s,i=/$./){const r=new Set(e),a=Object.keys(t).filter(l=>!(r.has(l)||i.test(l)));a.length>0&&s(Ee,function(l,c,u){return{code:"UNKNOWN_OPTION",message:`Unknown ${l}: ${c.join(", ")}. Allowed options: ${u.join(", ")}`}}(n,a,[...r].sort()))}const _y={recommended:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:Qe,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!1},safest:{annotations:!0,correctVarValueBeforeDeclaration:!0,manualPureFunctions:Qe,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!0},smallest:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:Qe,moduleSideEffects:()=>!1,propertyReadSideEffects:!1,tryCatchDeoptimization:!1,unknownGlobalSideEffects:!1}},Py={preserve:{factory:null,fragment:null,importSource:null,mode:"preserve"},"preserve-react":{factory:"React.createElement",fragment:"React.Fragment",importSource:"react",mode:"preserve"},react:{factory:"React.createElement",fragment:"React.Fragment",importSource:"react",mode:"classic"},"react-jsx":{factory:"React.createElement",importSource:"react",jsxImportSource:"react/jsx-runtime",mode:"automatic"}},$y={es2015:{arrowFunctions:!0,constBindings:!0,objectShorthand:!0,reservedNamesAsProps:!0,symbols:!0},es5:{arrowFunctions:!1,constBindings:!1,objectShorthand:!1,reservedNamesAsProps:!0,symbols:!1}},Tl=(t,e,n,s,i)=>{const r=t?.preset;if(r){const a=e[r];if(a)return{...a,...t};oe(nt(`${n}.preset`,s,`valid values are ${cn(Object.keys(e))}`,r))}return((a,l,c,u)=>d=>{if(typeof d=="string"){const m=a[d];if(m)return m;oe(nt(l,c,`valid values are ${u}${cn(Object.keys(a))}. You can also supply an object for more fine-grained control`,d))}return(m=>m&&typeof m=="object"?m:{})(d)})(e,n,s,i)(t)},Ao=async t=>(await async function(e){do e=(await Promise.all(e)).flat(1/0);while(e.some(n=>n?.then));return e}([t])).filter(Boolean);async function Ny(t,e,n,s){const i=e.id,r=[];let a=t.map===null?null:Os(t.map);const l=t.code;let c=t.ast;const u=[],d=[];let m=!1;const f=()=>m=!0;let g="",E=t.code;const k=A=>(x,w)=>{x=Zt(x),w&&lr(x,w,E,i),x.id=i,x.hook="transform",A(x)};let I;try{I=await n.hookReduceArg0("transform",[E,i],function(A,x,w){let v,$;if(typeof x=="string")v=x;else{if(!x||typeof x!="object")return A;if(e.updateOptions(x),x.code==null)return(x.map||x.ast)&&s(Ee,function(D){return{code:"NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE",message:`The plugin "${D}" returned a "map" or "ast" without returning a "code". This will be ignored.`}}(w.name)),A;({code:v,map:$,ast:c}=x)}return $!==null&&r.push(Os(typeof $=="string"?JSON.parse($):$)||{missing:!0,plugin:w.name}),E=v,v},(A,x)=>{return g=x.name,{...A,addWatchFile($){u.push($),A.addWatchFile($)},cache:m?A.cache:(w=A.cache,v=f,{delete:$=>(v(),w.delete($)),get:$=>(v(),w.get($)),has:$=>(v(),w.has($)),set:($,D)=>(v(),w.set($,D))}),debug:k(A.debug),emitFile:$=>(d.push($),n.emitFile($)),error:($,D)=>(typeof $=="string"&&($={message:$}),D&&lr($,D,E,i),$.id=i,$.hook="transform",A.error($)),getCombinedSourcemap(){const $=function(D,j,V,U,O){return U.length===0?V:Os({version:3,...Tp(D,j,V,U,Cp(O)).traceMappings()})}(i,l,a,r,s);return $?(a!==$&&(a=$,r.length=0),new Zi({...$,file:null,sourcesContent:$.sourcesContent})):new Gs(l).generateMap({hires:!0,includeContent:!0,source:i})},info:k(A.info),setAssetSource(){return this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitFile with a source, or call setAssetSource in another hook."})},warn:k(A.warn)};var w,v})}catch(A){return oe(Zs(A,g,{hook:"transform",id:i}))}return!m&&d.length>0&&(e.transformFiles=d),{ast:c,code:I,customTransformCache:m,originalCode:l,originalSourcemap:a,sourcemapChain:r,transformDependencies:u}}const Rl="resolveDependencies";class Cy{constructor(e,n,s,i){this.graph=e,this.modulesById=n,this.options=s,this.pluginDriver=i,this.implicitEntryModules=new Set,this.indexedEntryModules=[],this.latestLoadModulesPromise=Promise.resolve(),this.moduleLoadPromises=new Map,this.modulesWithLoadedDependencies=new Set,this.nextChunkNamePriority=0,this.nextEntryModuleIndex=0,this.resolveId=async(r,a,l,c,u,d=null)=>this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(!this.options.external(r,a,!1)&&await Fp(r,a,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,d,l,typeof c=="boolean"?c:!a,u,this.options.fs),a,r),u),this.hasModuleSideEffects=s.treeshake?s.treeshake.moduleSideEffects:()=>!0}async addAdditionalModules(e,n){const s=this.extendLoadModulesPromise(Promise.all(e.map(i=>this.loadEntryModule(i,!1,void 0,null,n))));return await this.awaitLoadModulesPromise(),s}async addEntryModules(e,n){const s=this.nextEntryModuleIndex;this.nextEntryModuleIndex+=e.length;const i=this.nextChunkNamePriority;this.nextChunkNamePriority+=e.length;const r=await this.extendLoadModulesPromise(Promise.all(e.map(({id:a,importer:l})=>this.loadEntryModule(a,!0,l,null))).then(a=>{for(const[l,c]of a.entries()){c.isUserDefinedEntryPoint=c.isUserDefinedEntryPoint||n,qp(c,e[l],n,i+l);const u=this.indexedEntryModules.find(d=>d.module===c);u?u.index=Math.min(u.index,s+l):this.indexedEntryModules.push({index:s+l,module:c})}return this.indexedEntryModules.sort(({index:l},{index:c})=>l>c?1:-1),a}));return await this.awaitLoadModulesPromise(),{entryModules:this.indexedEntryModules.map(({module:a})=>a),implicitEntryModules:[...this.implicitEntryModules],newEntryModules:r}}async emitChunk({fileName:e,id:n,importer:s,name:i,implicitlyLoadedAfterOneOf:r,preserveSignature:a}){const l={fileName:e||null,id:n,importer:s,name:i||null},c=r?await this.addEntryWithImplicitDependants(l,r):(await this.addEntryModules([l],!1)).newEntryModules[0];return a!=null&&(c.preserveSignature=a),c}async preloadModule(e){return(await this.fetchModule(this.getResolvedIdWithDefaults(e,ft),void 0,!1,!e.resolveDependencies||Rl)).info}addEntryWithImplicitDependants(e,n){const s=this.nextChunkNamePriority++;return this.extendLoadModulesPromise(this.loadEntryModule(e.id,!1,e.importer,null).then(async i=>{if(qp(i,e,!1,s),!i.info.isEntry){const r=await Promise.all(n.map(a=>this.loadEntryModule(a,!1,e.importer,i.id)));if(!i.info.isEntry){this.implicitEntryModules.add(i);for(const a of r)i.implicitlyLoadedAfter.add(a);for(const a of i.implicitlyLoadedAfter)a.implicitlyLoadedBefore.add(i)}}return i}))}async addModuleSource(e,n,s){let i;try{i=await this.graph.fileOperationQueue.run(async()=>{const l=await this.pluginDriver.hookFirst("load",[e]);return l!==null?l:(this.graph.watchFiles[e]=!0,await this.options.fs.readFile(e,{encoding:"utf8"}))})}catch(l){let c=`Could not load ${e}`;throw n&&(c+=` (imported by ${Ae(n)})`),c+=`: ${l.message}`,l.message=c,l}const r=typeof i=="string"?{code:i}:i!=null&&typeof i=="object"&&typeof i.code=="string"?i:oe(function(l){return{code:"BAD_LOADER",message:`Error loading "${Ae(l)}": plugin load hook should return a string, a { code, map } object, or nothing/null.`}}(e));r.code=Bp(r.code);const a=this.graph.cachedModules.get(e);if(!a||a.customTransformCache||a.originalCode!==r.code||await this.pluginDriver.hookFirst("shouldTransformCachedModule",[{ast:a.ast,code:a.code,id:a.id,meta:a.meta,moduleSideEffects:a.moduleSideEffects,resolvedSources:a.resolvedIds,syntheticNamedExports:a.syntheticNamedExports}]))s.updateOptions(r),await s.setSource(await Ny(r,s,this.pluginDriver,this.options.onLog));else{if(a.transformFiles)for(const l of a.transformFiles)this.pluginDriver.emitFile(l);await s.setSource(a)}}async awaitLoadModulesPromise(){let e;do e=this.latestLoadModulesPromise,await e;while(e!==this.latestLoadModulesPromise)}extendLoadModulesPromise(e){return this.latestLoadModulesPromise=Promise.all([e,this.latestLoadModulesPromise]),this.latestLoadModulesPromise.catch(()=>{}),e}async fetchDynamicDependencies(e,n){const s=await Promise.all(n.map(i=>i.then(async([r,a])=>a===null?null:typeof a=="string"?(r.resolution=a,null):r.resolution=await this.fetchResolvedDependency(Ae(a.id),e.id,a))));for(const i of s)i&&(e.dynamicDependencies.add(i),i.dynamicImporters.push(e.id))}async fetchModule({attributes:e,id:n,meta:s,moduleSideEffects:i,syntheticNamedExports:r},a,l,c){const u=this.modulesById.get(n);if(u instanceof st)return a&&mo(e,u.info.attributes)&&this.options.onLog(Ee,cr(u.info.attributes,e,n,a)),await this.handleExistingModule(u,l,c),u;if(u instanceof Ze)return oe({code:"EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES",message:`${u.id} is resolved as a module now, but it was an external module before. Please check whether there are conflicts in your Rollup options "external" and "manualChunks", manualChunks cannot include external modules.`});const d=new st(this.graph,n,this.options,l,i,r,s,e);this.modulesById.set(n,d);const m=this.addModuleSource(n,a,d).then(()=>[this.getResolveStaticDependencyPromises(d),this.getResolveDynamicImportPromises(d),f]),f=Hp(m).then(()=>this.pluginDriver.hookParallel("moduleParsed",[d.info]));f.catch(()=>{}),this.moduleLoadPromises.set(d,m);const g=await m;return c?c===Rl&&await f:await this.fetchModuleDependencies(d,...g),d}async fetchModuleDependencies(e,n,s,i){this.modulesWithLoadedDependencies.has(e)||(this.modulesWithLoadedDependencies.add(e),await Promise.all([this.fetchStaticDependencies(e,n),this.fetchDynamicDependencies(e,s)]),e.linkImports(),await i)}fetchResolvedDependency(e,n,s){if(s.external){const{attributes:i,external:r,id:a,moduleSideEffects:l,meta:c}=s;let u=this.modulesById.get(a);if(u){if(!(u instanceof Ze))return oe(function(d,m){return{code:"INVALID_EXTERNAL_ID",message:`"${d}" is imported as an external by "${Ae(m)}", but is already an existing non-external module id.`}}(e,n));mo(u.info.attributes,i)&&this.options.onLog(Ee,cr(u.info.attributes,i,e,n))}else u=new Ze(this.options,a,l,c,r!=="absolute"&&Ht(a),i),this.modulesById.set(a,u);return Promise.resolve(u)}return this.fetchModule(s,n,!1,!1)}async fetchStaticDependencies(e,n){for(const s of await Promise.all(n.map(i=>i.then(([r,a])=>this.fetchResolvedDependency(r,e.id,a)))))e.dependencies.add(s),s.importers.push(e.id);if(!this.options.treeshake||e.info.moduleSideEffects==="no-treeshake")for(const s of e.dependencies)s instanceof st&&(s.importedFromNotTreeshaken=!0)}getNormalizedResolvedIdWithoutDefaults(e,n,s){const{makeAbsoluteExternalsRelative:i}=this.options;if(e){if(typeof e=="object"){const l=e.external||this.options.external(e.id,n,!0);return{...e,external:l&&(l==="relative"||!Ht(e.id)||l===!0&&Dl(e.id,s,i)||"absolute")}}const a=this.options.external(e,n,!0);return{external:a&&(Dl(e,s,i)||"absolute"),id:a&&i?Up(e,n):e}}const r=i?Up(s,n):s;return e===!1||this.options.external(r,n,!0)?{external:Dl(r,s,i)||"absolute",id:r}:null}getResolveDynamicImportPromises(e){return e.dynamicImports.map(async n=>{const s=await this.resolveDynamicImport(e,n.argument,e.id,up(n.node));return s&&typeof s=="object"&&(n.id=s.id),[n,s]})}getResolveStaticDependencyPromises(e){return Array.from(e.sourcesWithAttributes,async([n,s])=>[n,e.resolvedIds[n]=e.resolvedIds[n]||this.handleInvalidResolvedId(await this.resolveId(n,e.id,ft,!1,s),n,e.id,s)])}getResolvedIdWithDefaults(e,n){if(!e)return null;const s=e.external||!1;return{attributes:e.attributes||n,external:s,id:e.id,meta:e.meta||{},moduleSideEffects:e.moduleSideEffects??this.hasModuleSideEffects(e.id,!!s),resolvedBy:e.resolvedBy??"rollup",syntheticNamedExports:e.syntheticNamedExports??!1}}async handleExistingModule(e,n,s){const i=this.moduleLoadPromises.get(e);if(s)return s===Rl?Hp(i):i;if(n){e.info.isEntry=!0,this.implicitEntryModules.delete(e);for(const r of e.implicitlyLoadedAfter)r.implicitlyLoadedBefore.delete(e);e.implicitlyLoadedAfter.clear()}return this.fetchModuleDependencies(e,...await i)}handleInvalidResolvedId(e,n,s,i){return e===null?Qo(n)?oe(function(r,a){return{code:ph,exporter:r,id:a,message:`Could not resolve "${r}" from "${Ae(a)}"`}}(n,s)):(this.options.onLog(Ee,function(r,a){return{code:ph,exporter:r,id:a,message:`"${r}" is imported by "${Ae(a)}", but could not be resolved – treating it as an external dependency.`,url:ot("troubleshooting/#warning-treating-module-as-external-dependency")}}(n,s)),{attributes:i,external:!0,id:n,meta:{},moduleSideEffects:this.hasModuleSideEffects(n,!0),resolvedBy:"rollup",syntheticNamedExports:!1}):(e.external&&e.syntheticNamedExports&&this.options.onLog(Ee,function(r,a){return{code:"EXTERNAL_SYNTHETIC_EXPORTS",exporter:r,message:`External "${r}" cannot have "syntheticNamedExports" enabled (imported by "${Ae(a)}").`}}(n,s)),e)}async loadEntryModule(e,n,s,i,r=!1){const a=await Fp(e,s,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,null,ft,!0,ft,this.options.fs);if(a==null)return oe(i===null?function(c){return{code:dh,message:`Could not resolve entry module "${Ae(c)}".`}}(e):function(c,u){return{code:ha,message:`Module "${Ae(c)}" that should be implicitly loaded before "${Ae(u)}" could not be resolved.`}}(e,i));const l=typeof a=="object"&&a.external;return a===!1||l?oe(i===null?l&&r?{code:"EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS",message:`"${e}" cannot be included in manualChunks because it is resolved as an external module by the "external" option or plugins.`}:function(c){return{code:dh,message:`Entry module "${Ae(c)}" cannot be external.`}}(e):function(c,u){return{code:ha,message:`Module "${Ae(c)}" that should be implicitly loaded before "${Ae(u)}" cannot be external.`}}(e,i)):this.fetchModule(this.getResolvedIdWithDefaults(typeof a=="object"?a:{id:a},ft),void 0,n,!1)}async resolveDynamicImport(e,n,s,i){const r=await this.pluginDriver.hookFirst("resolveDynamicImport",[n,s,{attributes:i}]);if(typeof n!="string")return typeof r=="string"?r:r?this.getResolvedIdWithDefaults(r,i):null;if(r==null){const a=e.resolvedIds[n];return a?(mo(a.attributes,i)&&this.options.onLog(Ee,cr(a.attributes,i,n,s)),a):e.resolvedIds[n]=this.handleInvalidResolvedId(await this.resolveId(n,e.id,ft,!1,i),n,e.id,i)}return this.handleInvalidResolvedId(this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(r,s,n),i),n,s,i)}}function Up(t,e){return Qo(t)?e?At(e,"..",t):At(t):t}function qp(t,{fileName:e,name:n},s,i){if(e!==null)t.chunkFileNames.add(e);else if(n!==null){let r=0;for(;t.chunkNames[r]?.priority<i;)r++;t.chunkNames.splice(r,0,{isUserDefined:s,name:n,priority:i})}}function Dl(t,e,n){return n===!0||n==="ifRelativeSource"&&Qo(e)||!Ht(t)}async function Hp(t){const[e,n]=await t;return Promise.all([...e,...n])}function Gp(t,e,n,s,i,r,a,l,c){const u=a.sanitizeFileName(t||"asset");return vl(Il(typeof a.assetFileNames=="function"?a.assetFileNames({get name(){return jn('Accessing the "name" property of emitted assets when generating the file name is deprecated. Use the "names" property instead.',ys,!1,c),t},names:e,get originalFileName(){return jn('Accessing the "originalFileName" property of emitted assets when generating the file name is deprecated. Use the "originalFileNames" property instead.',ys,!1,c),s},originalFileNames:i,source:n,type:"asset"}):a.assetFileNames,"output.assetFileNames",{ext:()=>xn(u).slice(1),extname:()=>xn(u),hash:d=>r.slice(0,Math.min(Math.max(0,d||8),21)),name:()=>u.slice(0,Math.max(0,u.length-xn(u).length))}),l)}function Wp(t,{bundle:e},n){e[yo].has(t.toLowerCase())?n(Ee,function(s){return{code:"FILE_NAME_CONFLICT",message:`The emitted file "${s}" overwrites a previously emitted file of the same name.`}}(t)):e[t]=Sl}const Ty=new Set(["chunk","asset","prebuilt-chunk"]);function Xp(t,e,n){if(!(typeof t=="string"||t instanceof Uint8Array)){const s=e.fileName||e.name||n;return oe(wt(`Could not set source for ${typeof s=="string"?`asset "${s}"`:"unnamed asset"}, asset source needs to be a string, Uint8Array or Buffer.`))}return t}class Ry{constructor(e,n,s){this.graph=e,this.options=n,this.facadeChunkByModule=null,this.nextIdBase=1,this.output=null,this.outputFileEmitters=[],this.emitFile=i=>function(r){return!!(r&&Ty.has(r.type))}(i)?i.type==="prebuilt-chunk"?this.emitPrebuiltChunk(i):function(r){const a=r.fileName||r.name;return!a||typeof a=="string"&&!or(a)}(i)?i.type==="chunk"?this.emitChunk(i):this.emitAsset(i):oe(wt(`The "fileName" or "name" properties of emitted chunks and assets must be strings that are neither absolute nor relative paths, received "${i.fileName||i.name}".`)):oe(wt(`Emitted files must be of type "asset", "chunk" or "prebuilt-chunk", received "${i&&i.type}".`)),this.finaliseAssets=()=>{for(const[i,r]of this.filesByReferenceId)if(r.type==="asset"&&typeof r.fileName!="string")return oe(Nm(r.name||i))},this.getFileName=i=>{const r=this.filesByReferenceId.get(i);return r?r.type==="chunk"?(a=r,l=this.facadeChunkByModule,a.fileName?a.fileName:l?l.get(a.module).getFileName():oe({code:"CHUNK_NOT_GENERATED",message:`Plugin error - Unable to get file name for emitted chunk "${a.fileName||a.name}". You can only get file names once chunks have been generated after the "renderStart" hook.`})):r.type==="prebuilt-chunk"?r.fileName:function(c,u){return typeof c.fileName!="string"?oe({code:"ASSET_NOT_FINALISED",message:`Plugin error - Unable to get file name for asset "${c.name||u}". Ensure that the source is set and that generate is called first. If you reference assets via import.meta.ROLLUP_FILE_URL_<referenceId>, you need to either have set their source after "renderStart" or need to provide an explicit "fileName" when emitting them.`}):c.fileName}(r,i):oe({code:"FILE_NOT_FOUND",message:`Plugin error - Unable to get file name for unknown file "${i}".`});var a,l},this.setAssetSource=(i,r)=>{const a=this.filesByReferenceId.get(i);if(!a)return oe({code:"ASSET_NOT_FOUND",message:`Plugin error - Unable to set the source for unknown asset "${i}".`});if(a.type!=="asset")return oe(wt(`Asset sources can only be set for emitted assets but "${i}" is an emitted chunk.`));if(a.source!==void 0)return oe({code:"ASSET_SOURCE_ALREADY_SET",message:`Unable to set the source for asset "${a.name||i}", source already set.`});const l=Xp(r,a,i);if(this.output)this.finalizeAdditionalAsset(a,l,this.output);else{a.source=l;for(const c of this.outputFileEmitters)c.finalizeAdditionalAsset(a,l,c.output)}},this.setChunkInformation=i=>{this.facadeChunkByModule=i},this.setOutputBundle=(i,r)=>{const a=Pl[r.hashCharacters],l=this.output={bundle:i,fileNamesBySourceHash:new Map,getHash:a,outputOptions:r};for(const u of this.filesByReferenceId.values())u.fileName&&Wp(u.fileName,l,this.options.onLog);const c=new Map;for(const u of this.filesByReferenceId.values())u.type==="asset"&&u.source!==void 0?u.fileName?this.finalizeAdditionalAsset(u,u.source,l):bt(c,a(u.source),()=>[]).push(u):u.type==="prebuilt-chunk"&&(this.output.bundle[u.fileName]=this.createPrebuiltChunk(u));for(const[u,d]of c)this.finalizeAssetsWithSameSource(d,u,l)},this.filesByReferenceId=s?new Map(s.filesByReferenceId):new Map,s?.addOutputFileEmitter(this)}addOutputFileEmitter(e){this.outputFileEmitters.push(e)}assignReferenceId(e,n){let s=n;do s=Dp(s).slice(0,8).replaceAll("-","$");while(this.filesByReferenceId.has(s)||this.outputFileEmitters.some(({filesByReferenceId:i})=>i.has(s)));e.referenceId=s,this.filesByReferenceId.set(s,e);for(const{filesByReferenceId:i}of this.outputFileEmitters)i.set(s,e);return s}createPrebuiltChunk(e){return{code:e.code,dynamicImports:[],exports:e.exports||[],facadeModuleId:null,fileName:e.fileName,implicitlyLoadedBefore:[],importedBindings:{},imports:[],isDynamicEntry:!1,isEntry:!1,isImplicitEntry:!1,map:e.map||null,moduleIds:[],modules:{},name:e.fileName,preliminaryFileName:e.fileName,referencedFiles:[],sourcemapFileName:e.sourcemapFileName||null,type:"chunk"}}emitAsset(e){const n=e.source===void 0?void 0:Xp(e.source,e,null),s=e.originalFileName||null;typeof s=="string"&&(this.graph.watchFiles[s]=!0);const i={fileName:e.fileName,name:e.name,needsCodeReference:!!e.needsCodeReference,originalFileName:s,referenceId:"",source:n,type:"asset"},r=this.assignReferenceId(i,e.fileName||e.name||String(this.nextIdBase++));if(this.output)this.emitAssetWithReferenceId(i,this.output);else for(const a of this.outputFileEmitters)a.emitAssetWithReferenceId(i,a.output);return r}emitAssetWithReferenceId(e,n){const{fileName:s,source:i}=e;s&&Wp(s,n,this.options.onLog),i!==void 0&&this.finalizeAdditionalAsset(e,i,n)}emitChunk(e){if(this.graph.phase>ts.LOAD_AND_PARSE)return oe({code:"INVALID_ROLLUP_PHASE",message:"Cannot emit chunks after module loading has finished."});if(typeof e.id!="string")return oe(wt(`Emitted chunks need to have a valid string id, received "${e.id}"`));const n={fileName:e.fileName,module:null,name:e.name||e.id,referenceId:"",type:"chunk"};return this.graph.moduleLoader.emitChunk(e).then(s=>n.module=s).catch(()=>{}),this.assignReferenceId(n,e.id)}emitPrebuiltChunk(e){if(typeof e.code!="string")return oe(wt(`Emitted prebuilt chunks need to have a valid string code, received "${e.code}".`));if(typeof e.fileName!="string"||or(e.fileName))return oe(wt(`The "fileName" property of emitted prebuilt chunks must be strings that are neither absolute nor relative paths, received "${e.fileName}".`));const n={code:e.code,exports:e.exports,fileName:e.fileName,map:e.map,referenceId:"",type:"prebuilt-chunk"},s=this.assignReferenceId(n,n.fileName);return this.output&&(this.output.bundle[n.fileName]=this.createPrebuiltChunk(n)),s}finalizeAdditionalAsset(e,n,{bundle:s,fileNamesBySourceHash:i,getHash:r,outputOptions:a}){let{fileName:l,name:c,needsCodeReference:u,originalFileName:d,referenceId:m}=e;if(!l){const E=r(n);l=i.get(E),l||(l=Gp(c,c?[c]:[],n,d,d?[d]:[],E,a,s,this.options),i.set(E,l))}const f={...e,fileName:l,source:n};this.filesByReferenceId.set(m,f);const g=s[l];if(g?.type==="asset")g.needsCodeReference&&=u,c&&g.names.push(c),d&&g.originalFileNames.push(d);else{const{options:E}=this;s[l]={fileName:l,get name(){return jn('Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.',ys,!1,E),c},names:c?[c]:[],needsCodeReference:u,get originalFileName(){return jn('Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.',ys,!1,E),d},originalFileNames:d?[d]:[],source:n,type:"asset"}}}finalizeAssetsWithSameSource(e,n,{bundle:s,fileNamesBySourceHash:i,outputOptions:r}){const{names:a,originalFileNames:l}=function(f){const g=[],E=[];for(const{name:k,originalFileName:I}of f)typeof k=="string"&&g.push(k),I&&E.push(I);return E.sort(),g.sort((k,I)=>k.length-I.length||(k>I?1:k===I?0:-1)),{names:g,originalFileNames:E}}(e);let c,u="",d=!0;for(const f of e){d&&=f.needsCodeReference;const g=Gp(f.name,a,f.source,f.originalFileName,l,n,r,s,this.options);(!u||g.length<u.length||g.length===u.length&&g<u)&&(u=g,c=f)}i.set(n,u);for(const f of e){const g={...f,fileName:u};this.filesByReferenceId.set(f.referenceId,g)}const{options:m}=this;s[u]={fileName:u,get name(){return jn('Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.',ys,!1,m),c.name},names:a,needsCodeReference:d,get originalFileName(){return jn('Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.',ys,!1,m),c.originalFileName},originalFileNames:l,source:c.source,type:"asset"}}}function Ls(t,e,n,s,i){return Bn[t]<Bn[i]?Mt:(r,a)=>{a!=null&&n(Ee,{code:"INVALID_LOG_POSITION",message:`Plugin "${s}" tried to add a file position to a log or warning. This is only supported in the "transform" hook at the moment and will be ignored.`}),(r=Zt(r)).code&&!r.pluginCode&&(r.pluginCode=r.code),r.code=e,r.plugin=s,n(t,r)}}function Dy(t,e,n,s,i,r){const{logLevel:a,onLog:l}=s;let c,u=!0;if(typeof t.cacheKey!="string"&&(t.name.startsWith(Nl)||t.name.startsWith(Cl)||r.has(t.name)?u=!1:r.add(t.name)),e)if(u){const f=t.cacheKey||t.name;m=e[f]||(e[f]=Object.create(null)),c={delete:g=>delete m[g],get(g){const E=m[g];if(E)return E[0]=0,E[1]},has(g){const E=m[g];return!!E&&(E[0]=0,!0)},set(g,E){m[g]=[0,E]}}}else d=t.name,c={delete:()=>Eo(d),get:()=>Eo(d),has:()=>Eo(d),set:()=>Eo(d)};else c=Sy;var d,m;return{addWatchFile(f){n.watchFiles[f]=!0},cache:c,debug:Ls(Ys,"PLUGIN_LOG",l,t.name,a),emitFile:i.emitFile.bind(i),error:f=>oe(Zs(Zt(f),t.name)),fs:s.fs,getFileName:i.getFileName,getModuleIds:()=>n.modulesById.keys(),getModuleInfo:n.getModuleInfo,getWatchFiles:()=>Object.keys(n.watchFiles),info:Ls(Fn,"PLUGIN_LOG",l,t.name,a),load:f=>n.moduleLoader.preloadModule(f),meta:{rollupVersion:Jo,watchMode:n.watchMode},parse:bl,resolve:(f,g,{attributes:E,custom:k,isEntry:I,skipSelf:A}=pt)=>(A??=!0,n.moduleLoader.resolveId(f,g,k,I,E||ft,A?[{importer:g,plugin:t,source:f}]:null)),setAssetSource:i.setAssetSource,warn:Ls(Ee,"PLUGIN_WARNING",l,t.name,a)}}function Ol(t){return Array.isArray(t)?t.filter(Boolean):t?[t]:[]}function Kp(t){if(t instanceof RegExp)return i=>{const r=an(i),a=t.test(r);return t.lastIndex=0,a};const e=process.cwd(),n=function(i,r){return i.startsWith("**")||Ht(i)?an(i):an(At(r,i))}(t,e),s=Og(n,{dot:!0});return i=>{const r=an(i);return s(r)}}function Jp(t){return t instanceof RegExp?e=>{const n=t.test(e);return t.lastIndex=0,n}:e=>e.includes(t)}function Yp(t,e){if(t||e)return n=>!t?.some(s=>s(n))&&(!!e?.some(s=>s(n))||!(e&&e.length>0))}function Qp(t){return typeof t=="string"||t instanceof RegExp?{include:[t]}:Array.isArray(t)?{include:t}:{exclude:t.exclude?Ol(t.exclude):void 0,include:t.include?Ol(t.include):void 0}}function Zp(t){if(!t)return;const{exclude:e,include:n}=Qp(t),s=e?.map(Kp),i=n?.map(Kp);return Yp(s,i)}function Oy(t,e){if(!t&&!e)return;const n=Zp(t),s=function(i){if(!i)return;const{exclude:r,include:a}=Qp(i),l=r?.map(Jp),c=a?.map(Jp);return Yp(l,c)}(e);return(i,r)=>{let a=!0;return n&&(a&&=n(i)),!!a&&(s&&(a&&=s(r)),a)}}const Ly=Object.keys({buildEnd:1,buildStart:1,closeBundle:1,closeWatcher:1,load:1,moduleParsed:1,onLog:1,options:1,resolveDynamicImport:1,resolveId:1,shouldTransformCachedModule:1,transform:1,watchChange:1});class Ll{constructor(e,n,s,i,r){this.graph=e,this.options=n,this.pluginCache=i,this.sortedPlugins=new Map,this.unfulfilledActions=new Set,this.compiledPluginFilters={idOnlyFilter:new WeakMap,transformFilter:new WeakMap},this.fileEmitter=new Ry(e,n,r&&r.fileEmitter),this.emitFile=this.fileEmitter.emitFile.bind(this.fileEmitter),this.getFileName=this.fileEmitter.getFileName.bind(this.fileEmitter),this.finaliseAssets=this.fileEmitter.finaliseAssets.bind(this.fileEmitter),this.setChunkInformation=this.fileEmitter.setChunkInformation.bind(this.fileEmitter),this.setOutputBundle=this.fileEmitter.setOutputBundle.bind(this.fileEmitter),this.plugins=[...r?r.plugins:[],...s];const a=new Set;if(this.pluginContexts=new Map(this.plugins.map(l=>[l,Dy(l,i,e,n,this.fileEmitter,a)])),r)for(const l of s)for(const c of Ly)c in l&&n.onLog(Ee,Lm(l.name,c))}createOutputPluginDriver(e){return new Ll(this.graph,this.options,e,this.pluginCache,this)}getUnfulfilledHookActions(){return this.unfulfilledActions}hookFirst(e,n,s,i){return this.hookFirstAndGetPlugin(e,n,s,i).then(r=>r&&r[0])}async hookFirstAndGetPlugin(e,n,s,i){for(const r of this.getSortedPlugins(e)){if(i?.has(r))continue;const a=await this.runHook(e,n,r,s);if(a!=null)return[a,r]}return null}hookFirstSync(e,n,s){for(const i of this.getSortedPlugins(e)){const r=this.runHookSync(e,n,i,s);if(r!=null)return r}return null}async hookParallel(e,n,s){const i=[];for(const r of this.getSortedPlugins(e))r[e].sequential?(await Promise.all(i),i.length=0,await this.runHook(e,n,r,s)):i.push(this.runHook(e,n,r,s));await Promise.all(i)}hookReduceArg0(e,[n,...s],i,r){let a=Promise.resolve(n);for(const l of this.getSortedPlugins(e))a=a.then(c=>this.runHook(e,[c,...s],l,r).then(u=>i.call(this.pluginContexts.get(l),c,u,l)));return a}hookReduceArg0Sync(e,[n,...s],i,r){for(const a of this.getSortedPlugins(e)){const l=[n,...s],c=this.runHookSync(e,l,a,r);n=i.call(this.pluginContexts.get(a),n,c,a)}return n}async hookReduceValue(e,n,s,i){const r=[],a=[];for(const l of this.getSortedPlugins(e,Fy))l[e].sequential?(r.push(...await Promise.all(a)),a.length=0,r.push(await this.runHook(e,s,l))):a.push(this.runHook(e,s,l));return r.push(...await Promise.all(a)),r.reduce(i,await n)}hookReduceValueSync(e,n,s,i,r){let a=n;for(const l of this.getSortedPlugins(e)){const c=this.runHookSync(e,s,l,r);a=i.call(this.pluginContexts.get(l),a,c,l)}return a}hookSeq(e,n,s){let i=Promise.resolve();for(const r of this.getSortedPlugins(e))i=i.then(()=>this.runHook(e,n,r,s));return i.then(By)}getSortedPlugins(e,n){return bt(this.sortedPlugins,e,()=>Ml(e,this.plugins,n))}runHook(e,n,s,i){const r=s[e],a=typeof r=="object"?r.handler:r;if(typeof r=="object"&&"filter"in r&&r.filter){if(e==="transform"){const u=r.filter,d=n,m=bt(this.compiledPluginFilters.transformFilter,u,()=>Oy(u.id,u.code));if(m&&!m(d[1],d[0]))return Promise.resolve()}else if(e==="resolveId"||e==="load"){const u=r.filter,d=n,m=bt(this.compiledPluginFilters.idOnlyFilter,u,()=>function(f){const g=Zp(f);return g?E=>!!g(E):void 0}(u.id));if(m&&!m(d[0]))return Promise.resolve()}}let l=this.pluginContexts.get(s);i&&(l=i(l,s));let c=null;return Promise.resolve().then(()=>{if(typeof a!="function")return a;const u=a.apply(l,n);return u?.then?(c=[s.name,e,n],this.unfulfilledActions.add(c),Promise.resolve(u).then(d=>(this.unfulfilledActions.delete(c),d))):u}).catch(u=>(c!==null&&this.unfulfilledActions.delete(c),oe(Zs(u,s.name,{hook:e}))))}runHookSync(e,n,s,i){const r=s[e],a=typeof r=="object"?r.handler:r;let l=this.pluginContexts.get(s);i&&(l=i(l,s));try{return a.apply(l,n)}catch(c){return oe(Zs(c,s.name,{hook:e}))}}}function Ml(t,e,n=My){const s=[],i=[],r=[];for(const a of e){const l=a[t];if(l){if(typeof l=="object"){if(n(l.handler,t,a),l.order==="pre"){s.push(a);continue}if(l.order==="post"){r.push(a);continue}}else n(l,t,a);i.push(a)}}return[...s,...i,...r]}function My(t,e,n){typeof t!="function"&&oe(function(s,i){return{code:oh,hook:s,message:`Error running plugin hook "${s}" for plugin "${i}", expected a function hook or an object with a "handler" function.`,plugin:i}}(e,n.name))}function Fy(t,e,n){if(typeof t!="string"&&typeof t!="function")return oe(function(s,i){return{code:oh,hook:s,message:`Error running plugin hook "${s}" for plugin "${i}", expected a string, a function hook or an object with a "handler" string or function.`,plugin:i}}(e,n.name))}function By(){}class jy{constructor(e){this.maxParallel=e,this.queue=[],this.workerCount=0}run(e){return new Promise((n,s)=>{this.queue.push({reject:s,resolve:n,task:e}),this.work()})}async work(){if(this.workerCount>=this.maxParallel)return;let e;for(this.workerCount++;e=this.queue.shift();){const{reject:n,resolve:s,task:i}=e;try{s(await i())}catch(r){n(r)}}this.workerCount--}}class zy{constructor(e,n){if(this.options=e,this.astLru=function(s){var i,r,a,l=s;function c(d,m){++i>l&&(a=r,u(1),++i),r[d]=m}function u(d){i=0,r=Object.create(null),d||(a=Object.create(null))}return u(),{clear:u,has:function(d){return r[d]!==void 0||a[d]!==void 0},get:function(d){var m=r[d];return m!==void 0?m:(m=a[d])!==void 0?(c(d,m),m):void 0},set:function(d,m){r[d]!==void 0?r[d]=m:c(d,m)}}}(5),this.cachedModules=new Map,this.deoptimizationTracker=new gs,this.entryModules=[],this.modulesById=new Map,this.needsTreeshakingPass=!1,this.newlyIncludedVariableInits=new Set,this.phase=ts.LOAD_AND_PARSE,this.scope=new wy,this.watchFiles=Object.create(null),this.watchMode=!1,this.externalModules=[],this.implicitEntryModules=[],this.modules=[],this.getModuleInfo=s=>{const i=this.modulesById.get(s);return i?i.info:null},e.cache!==!1){if(e.cache?.modules)for(const s of e.cache.modules)this.cachedModules.set(s.id,s);this.pluginCache=e.cache?.plugins||Object.create(null);for(const s in this.pluginCache){const i=this.pluginCache[s];for(const r of Object.values(i))r[0]++}}if(n){this.watchMode=!0;const s=(...r)=>this.pluginDriver.hookParallel("watchChange",r),i=()=>this.pluginDriver.hookParallel("closeWatcher",[]);n.onCurrentRun("change",s),n.onCurrentRun("close",i)}this.pluginDriver=new Ll(this,e,e.plugins,this.pluginCache),this.moduleLoader=new Cy(this,this.modulesById,this.options,this.pluginDriver),this.fileOperationQueue=new jy(e.maxParallelFileOps),this.pureFunctions=(({treeshake:s})=>{const i=Object.create(null);for(const r of s?s.manualPureFunctions:[]){let a=i;for(const l of r.split("."))a=a[l]||=Object.create(null);a[pa]=!0}return i})(e)}async build(){ct("generate module graph",2),await this.generateModuleGraph(),at("generate module graph",2),ct("sort and bind modules",2),this.phase=ts.ANALYSE,this.sortModules(),at("sort and bind modules",2),ct("mark included statements",2),this.includeStatements(),at("mark included statements",2),this.phase=ts.GENERATE}getCache(){for(const e in this.pluginCache){const n=this.pluginCache[e];let s=!0;for(const[i,r]of Object.entries(n))r[0]>=this.options.experimentalCacheExpiry?delete n[i]:s=!1;s&&delete this.pluginCache[e]}return{modules:this.modules.map(e=>e.toJSON()),plugins:this.pluginCache}}async generateModuleGraph(){var e;if({entryModules:this.entryModules,implicitEntryModules:this.implicitEntryModules}=await this.moduleLoader.addEntryModules((e=this.options.input,Array.isArray(e)?e.map(n=>({fileName:null,id:n,implicitlyLoadedAfter:[],importer:void 0,name:null})):Object.entries(e).map(([n,s])=>({fileName:null,id:s,implicitlyLoadedAfter:[],importer:void 0,name:n}))),!0),this.entryModules.length===0)throw new Error("You must supply options.input to rollup");for(const n of this.modulesById.values())n.cacheInfoGetters(),n instanceof st?this.modules.push(n):this.externalModules.push(n)}includeStatements(){const e=[...this.entryModules,...this.implicitEntryModules];for(const n of e)Es(n);if(this.options.treeshake){let n=1;this.newlyIncludedVariableInits.clear();do{ct(`treeshaking pass ${n}`,3),this.needsTreeshakingPass=!1;for(const s of this.modules)if(s.isExecuted){s.hasTreeShakingPassStarted=!0,s.info.moduleSideEffects==="no-treeshake"?s.includeAllInBundle():s.include();for(const i of this.newlyIncludedVariableInits)this.newlyIncludedVariableInits.delete(i),i.include(Lt(),!1)}if(n===1)for(const s of e)s.preserveSignature!==!1&&(s.includeAllExports(!1),this.needsTreeshakingPass=!0);at("treeshaking pass "+n++,3)}while(this.needsTreeshakingPass)}else for(const n of this.modules)n.includeAllInBundle();for(const n of this.externalModules)n.warnUnusedImports();for(const n of this.implicitEntryModules)for(const s of n.implicitlyLoadedAfter)s.info.isEntry||s.isIncluded()||oe(Fm(s))}sortModules(){const{orderedModules:e,cyclePaths:n}=xy(this.entryModules);for(const s of n)this.options.onLog(Ee,Tm(s));this.modules=e;for(const s of this.modules)s.bindReferences();this.warnForMissingExports()}warnForMissingExports(){for(const e of this.modules)for(const n of e.importDescriptions.values())if(n.name!=="*"){const[s,i]=n.module.getVariableForExportName(n.name);s||e.log(Ee,ur(n.name,e.id,n.module.id,!!i?.missingButExportExists),n.start)}}}function e1(t,e){return e()}function t1(t,e,n,s){t=Ml("onLog",t);const i=Bn[s],r=(a,l,c=zu)=>{if(sh(l),!(Bn[a]<i)){for(const u of t){if(c.has(u))continue;const{onLog:d}=u,m=f=>Bn[f]<i?Mt:g=>r(f,Zt(g),new Set(c).add(u));if(("handler"in d?d.handler:d).call({debug:m(Ys),error:f=>oe(Zt(f)),info:m(Fn),meta:{rollupVersion:Jo,watchMode:n},warn:m(Ee)},a,l)===!1)return}e(a,l)}};return r}const Nt=t=>()=>oe(function(e){return{code:"NO_FS_IN_BROWSER",message:`Cannot access the file system (via "${e}") when using the browser build of Rollup. Make sure you supply a plugin with custom resolveId and load hooks to Rollup.`,url:ot("plugin-development/#a-simple-example")}}(t)),Vy=Nt("fs.appendFile"),Uy=Nt("fs.copyFile"),qy=Nt("fs.mkdir"),Hy=Nt("fs.mkdtemp"),Gy=Nt("fs.readdir"),Wy=Nt("fs.readFile"),Xy=Nt("fs.realpath"),Ky=Nt("fs.rename"),Jy=Nt("fs.rmdir"),Yy=Nt("fs.stat"),Qy=Nt("fs.lstat"),Zy=Nt("fs.unlink"),eb=Nt("fs.writeFile");var tb=Object.freeze({__proto__:null,appendFile:Vy,copyFile:Uy,lstat:Qy,mkdir:qy,mkdtemp:Hy,readFile:Wy,readdir:Gy,realpath:Xy,rename:Ky,rmdir:Jy,stat:Yy,unlink:Zy,writeFile:eb});const nb=t=>t.cache===!0?void 0:t.cache?.cache||t.cache,sb=t=>{if(t===!0)return()=>!0;if(typeof t=="function")return(e,...n)=>!e.startsWith("\0")&&t(e,...n)||!1;if(t){const e=new Set,n=[];for(const s of Ol(t))s instanceof RegExp?n.push(s):e.add(s);return(s,...i)=>e.has(s)||n.some(r=>r.test(s))}return()=>!1},ib=t=>{const e=t.input;return e==null?[]:typeof e=="string"?[e]:e},rb=t=>{const e=t.jsx;if(!e)return!1;const n=Tl(e,Py,"jsx",ar,"false, "),{factory:s,importSource:i,mode:r}=n;switch(r){case"automatic":return{factory:s||"React.createElement",importSource:i||"react",jsxImportSource:n.jsxImportSource||"react/jsx-runtime",mode:"automatic"};case"preserve":return!i||s||n.fragment||oe(nt("jsx",ar,"when preserving JSX and specifying an importSource, you also need to specify a factory or fragment")),{factory:s||null,fragment:n.fragment||null,importSource:i||null,mode:"preserve"};default:return r&&r!=="classic"&&oe(nt("jsx.mode",ar,'mode must be "automatic", "classic" or "preserve"',r)),{factory:s||"React.createElement",fragment:n.fragment||"React.Fragment",importSource:i||null,mode:"classic"}}},ob=t=>{const e=t.maxParallelFileOps;return typeof e=="number"?e<=0?1/0:e:1e3},ab=(t,e)=>{const n=t.moduleContext;if(typeof n=="function")return s=>n(s)??e;if(n){const s=Object.create(null);for(const[i,r]of Object.entries(n))s[At(i)]=r;return i=>s[i]??e}return()=>e},lb=t=>{if(t.treeshake===!1)return!1;const e=Tl(t.treeshake,_y,"treeshake","configuration-options/#treeshake","false, true, ");return{annotations:e.annotations!==!1,correctVarValueBeforeDeclaration:e.correctVarValueBeforeDeclaration===!0,manualPureFunctions:e.manualPureFunctions??Qe,moduleSideEffects:cb(e.moduleSideEffects),propertyReadSideEffects:e.propertyReadSideEffects==="always"?"always":e.propertyReadSideEffects!==!1,tryCatchDeoptimization:e.tryCatchDeoptimization!==!1,unknownGlobalSideEffects:e.unknownGlobalSideEffects!==!1}},cb=t=>{if(typeof t=="boolean")return()=>t;if(t==="no-external")return(e,n)=>!n;if(typeof t=="function")return(e,n)=>!!e.startsWith("\0")||t(e,n)!==!1;if(Array.isArray(t)){const e=new Set(t);return n=>e.has(n)}return t&&oe(nt("treeshake.moduleSideEffects","configuration-options/#treeshake-modulesideeffects",'please use one of false, "no-external", a function or an array')),()=>!0},ub=/[\u0000-\u001F"#$%&*+,:;<=>?[\]^`{|}\u007F]/g,hb=/^[a-z]:/i;function db(t){const e=hb.exec(t),n=e?e[0]:"";return n+t.slice(n.length).replace(ub,"_")}const pb=(t,e,n)=>{const{file:s}=t;if(typeof s=="string"){if(e)return oe(nt("output.file",Qs,'you must set "output.dir" instead of "output.file" when using the "output.preserveModules" option'));if(!Array.isArray(n.input))return oe(nt("output.file",Qs,'you must set "output.dir" instead of "output.file" when providing named inputs'))}return s},fb=t=>{const e=t.format;switch(e){case void 0:case"es":case"esm":case"module":return"es";case"cjs":case"commonjs":return"cjs";case"system":case"systemjs":return"system";case"amd":case"iife":case"umd":return e;default:return oe(nt("output.format",Qu,'Valid values are "amd", "cjs", "system", "es", "iife" or "umd"',e))}},mb=(t,e)=>{const n=t.inlineDynamicImports||!1,{input:s}=e;return n&&(Array.isArray(s)?s:Object.keys(s)).length>1?oe(nt("output.inlineDynamicImports",Zu,'multiple inputs are not supported when "output.inlineDynamicImports" is true')):n},gb=(t,e,n)=>{const s=t.preserveModules||!1;if(s){if(e)return oe(nt("output.inlineDynamicImports",Zu,'this option is not supported for "output.preserveModules"'));if(n.preserveEntrySignatures===!1)return oe(nt("preserveEntrySignatures","configuration-options/#preserveentrysignatures",'setting this option to false is not supported for "output.preserveModules"'))}return s},yb=t=>{const{preserveModulesRoot:e}=t;if(e!=null)return At(e)},bb=t=>{const e={autoId:!1,basePath:"",define:"define",forceJsExtensionForImports:!1,...t.amd};return(e.autoId||e.basePath)&&e.id?oe(nt("output.amd.id",Yu,'this option cannot be used together with "output.amd.autoId"/"output.amd.basePath"')):e.basePath&&!e.autoId?oe(nt("output.amd.basePath","configuration-options/#output-amd-basepath",'this option only works with "output.amd.autoId"')):e.autoId?{autoId:!0,basePath:e.basePath,define:e.define,forceJsExtensionForImports:e.forceJsExtensionForImports}:{autoId:!1,define:e.define,forceJsExtensionForImports:e.forceJsExtensionForImports,id:e.id}},wo=(t,e)=>{const n=t[e];return typeof n=="function"?n:()=>n||""},xb=(t,e)=>{const{dir:n}=t;return typeof n=="string"&&typeof e=="string"?oe(nt("output.dir",Qs,'you must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks')):n},kb=(t,e)=>{const n=t.entryFileNames;return n==null&&e.add("entryFileNames"),n??"[name].js"};function Eb(t,e){const n=t.exports;if(n==null)e.add("exports");else if(!["default","named","none","auto"].includes(n))return oe({code:ih,message:`"output.exports" must be "default", "named", "none", "auto", or left unspecified (defaults to "auto"), received "${n}".`,url:ot(ca)});return n||"auto"}const Ab=(t,e)=>(t.externalImportAssertions!=null&&jn('The "output.externalImportAssertions" option is deprecated. Use the "output.externalImportAttributes" option instead.',"configuration-options/#output-externalimportattributes",!0,e),t.externalImportAttributes??t.externalImportAssertions??!0),wb=t=>{const e=Tl(t.generatedCode,$y,"output.generatedCode","configuration-options/#output-generatedcode","");return{arrowFunctions:e.arrowFunctions===!0,constBindings:e.constBindings===!0,objectShorthand:e.objectShorthand===!0,reservedNamesAsProps:e.reservedNamesAsProps!==!1,symbols:e.symbols===!0}},Sb=(t,e)=>{if(e)return"";const n=t.indent;return n===!1?"":n??!0},n1=new Set(["compat","auto","esModule","default","defaultOnly"]),Ib=t=>{const e=t.interop;if(typeof e=="function"){const n=Object.create(null);let s=null;return i=>i===null?s||Fl(s=e(i)):i in n?n[i]:Fl(n[i]=e(i))}return e===void 0?()=>"default":()=>Fl(e)},Fl=t=>n1.has(t)?t:oe(nt("output.interop",ua,`use one of ${Array.from(n1,e=>JSON.stringify(e)).join(", ")}`,t)),vb=(t,e,n)=>{const s=t.manualChunks;if(s){if(e)return oe(nt("output.manualChunks",eh,'this option is not supported for "output.inlineDynamicImports"'));if(n)return oe(nt("output.manualChunks",eh,'this option is not supported for "output.preserveModules"'))}return s||{}},_b=(t,e,n)=>t.minifyInternalExports??(n||e==="es"||e==="system"),Pb=(t,e)=>{const n=t.sourcemapFileNames;return n==null&&e.add("sourcemapFileNames"),n},$b=t=>{const{sourcemapBaseUrl:e}=t;if(e)return function(s){try{new URL(s)}catch{return!1}return!0}(e)?(n=e).endsWith("/")?n:n+"/":oe(nt("output.sourcemapBaseUrl","configuration-options/#output-sourcemapbaseurl",`must be a valid URL, received ${JSON.stringify(e)}`));var n};function Nb(t){return async function(e,n){const{options:s,unsetOptions:i}=await async function(c,u){if(!c)throw new Error("You must supply an options object to rollup");const d=await async function(g,E){const k=Ml("options",await Ao(g.plugins)),I=g.logLevel||Fn,A=t1(k,jp(g,I),E,I);for(const x of k){const{name:w,options:v}=x,$="handler"in v?v.handler:v,D=await $.call({debug:Ls(Ys,"PLUGIN_LOG",A,w,I),error:j=>oe(Zs(Zt(j),w,{hook:"onLog"})),info:Ls(Fn,"PLUGIN_LOG",A,w,I),meta:{rollupVersion:Jo,watchMode:E},warn:Ls(Ee,"PLUGIN_WARNING",A,w,I)},g);D&&(g=D)}return g}(c,u),{options:m,unsetOptions:f}=await async function(g,E){const k=new Set,I=g.context??"undefined",A=await Ao(g.plugins),x=g.logLevel||Fn,w=t1(A,jp(g,x),E,x),v=g.strictDeprecations||!1,$=ob(g),D={cache:nb(g),context:I,experimentalCacheExpiry:g.experimentalCacheExpiry??10,experimentalLogSideEffects:g.experimentalLogSideEffects||!1,external:sb(g.external),fs:g.fs??tb,input:ib(g),jsx:rb(g),logLevel:x,makeAbsoluteExternalsRelative:g.makeAbsoluteExternalsRelative??"ifRelativeSource",maxParallelFileOps:$,moduleContext:ab(g,I),onLog:w,perf:g.perf||!1,plugins:A,preserveEntrySignatures:g.preserveEntrySignatures??"exports-only",preserveSymlinks:g.preserveSymlinks||!1,shimMissingExports:g.shimMissingExports||!1,strictDeprecations:v,treeshake:lb(g)};return Vp(g,[...Object.keys(D),"onwarn","watch"],"input options",w,/^(output)$/),{options:D,unsetOptions:k}}(d,u);return s1(m.plugins,Nl),{options:m,unsetOptions:f}}(e,n!==null);(function(c){c.perf?(_i=new Map,ct=Qg,at=Zg,c.plugins=c.plugins.map(ny)):(ct=Mt,at=Mt)})(s),await async function(){await Nd()}();const r=new zy(s,n),a=e.cache!==!1;e.cache&&(s.cache=void 0,e.cache=void 0),ct("BUILD",1),await e1(r.pluginDriver,async()=>{try{ct("initialize",2),await r.pluginDriver.hookParallel("buildStart",[s]),at("initialize",2),await r.build()}catch(c){const u=Object.keys(r.watchFiles);u.length>0&&(c.watchFiles=u);try{await r.pluginDriver.hookParallel("buildEnd",[c])}catch(d){const m=bs({...c,message:`There was an error during the build:
55
+ `),g){let b;ct("sourcemaps",3),b=f?At(k||f):m?At(m,e):At(e),l=function(A,v,$,D,j,V){const U=Rp(V),O=$.filter(K=>!K.excludeFromSourcemap).map(K=>Dp(K.id,K.originalCode,K.originalSourcemap,K.sourcemapChain,U)),_=new xo(v,O),N=D.reduce(U,_);let{sources:C,sourcesContent:R,names:M,mappings:q}=N.traceMappings();if(A){const K=ln(A);C=C.map(X=>Rn(K,X)),A=Gt(A)}R=j?null:R;for(const K of $)gl(K.originalSourcemap,K.sourcemapChain);return new ei({file:A,mappings:q,names:M,sources:C,sourcesContent:R})}(b,t.generateDecodedMap({}),n,c,w,a);for(let A=0;A<l.sources.length;++A){let v=l.sources[A];const $=`${b}.map`,D=E(v,$);typeof D!="boolean"&&oe(wt("sourcemapIgnoreList function must return a boolean.")),D&&(l.x_google_ignoreList===void 0&&(l.x_google_ignoreList=[]),l.x_google_ignoreList.includes(A)||l.x_google_ignoreList.push(A)),I&&(v=I(v,$),typeof v!="string"&&oe(wt("sourcemapPathTransform function must return a string."))),l.sources[A]=an(v)}at("sourcemaps",3)}return{code:u,map:l}}function Mp(t,e,n,{sourcemap:s,sourcemapBaseUrl:r}){let i;if(s==="inline")i=e.toUrl();else{const a=Gt(t);i=r?new URL(a,r).toString():a,n.emitFile({fileName:t,originalFileName:null,source:e.toString(),type:"asset"})}return s==="hidden"?"":`//# sourceMappingURL=${i}
56
+ `}function Fp(t,e){const n=Pl.hex(t),s=[n.slice(0,8),n.slice(8,12),"4"+n.slice(12,15),(3&parseInt(n.slice(15,16),16)|8).toString(16)+n.slice(17,20),n.slice(20,32)].join("-");return e.debugId=s,"//# debugId="+s+`
57
+ `}class Sy{constructor(e,n,s,r,i){this.outputOptions=e,this.unsetOptions=n,this.inputOptions=s,this.pluginDriver=r,this.graph=i,this.facadeChunkByModule=new Map,this.includedNamespaces=new Set}async generate(e){ct("GENERATE",1);const n=Object.create(null),s=(r=>{const i=new Set;return new Proxy(r,{deleteProperty:(a,l)=>(typeof l=="string"&&i.delete(l.toLowerCase()),Reflect.deleteProperty(a,l)),get:(a,l)=>l===yo?i:Reflect.get(a,l),set:(a,l,c)=>(typeof l=="string"&&i.add(l.toLowerCase()),Reflect.set(a,l,c))})})(n);this.pluginDriver.setOutputBundle(s,this.outputOptions);try{ct("initialize render",2),await this.pluginDriver.hookParallel("renderStart",[this.outputOptions,this.inputOptions]),at("initialize render",2),ct("generate chunks",2);const r=(()=>{let a=0;return(l,c)=>{if(c>21)return oe(wt(`Hashes cannot be longer than 21 characters, received ${c}. Check the "${l}" option.`));const u=`${El}${Ei(++a).padStart(c-5,"0")}${Al}`;return u.length>c?oe(wt(`To generate hashes for this number of chunks (currently ${a}), you need a minimum hash size of ${u.length}, received ${c}. Check the "${l}" option.`)):u}})(),i=await this.generateChunks(s,r);i.length>1&&function(a,l){if(a.format==="umd"||a.format==="iife")return oe(nt("output.format",eh,"UMD and IIFE output formats are not supported for code-splitting builds",a.format));if(typeof a.file=="string")return oe(nt("output.file",Zs,'when building multiple chunks, the "output.dir" option must be used, not "output.file". To inline dynamic imports, set the "inlineDynamicImports" option'));if(a.sourcemapFile)return oe(nt("output.sourcemapFile",Cm,'"output.sourcemapFile" is only supported for single-file builds'));!a.amd.autoId&&a.amd.id&&l(Ee,nt("output.amd.id",Zu,'this option is only properly supported for single-file builds. Use "output.amd.autoId" and "output.amd.basePath" instead'))}(this.outputOptions,this.inputOptions.onLog),this.pluginDriver.setChunkInformation(this.facadeChunkByModule);for(const a of i)a.generateExports(),a.inlineTransitiveImports();at("generate chunks",2),await Ay(i,s,this.pluginDriver,this.outputOptions,this.inputOptions.onLog)}catch(r){throw await this.pluginDriver.hookParallel("renderError",[r]),r}return(r=>{const i=new Set,a=Object.values(r);for(const l of a)l.type==="asset"&&l.needsCodeReference&&i.add(l.fileName);for(const l of a)if(l.type==="chunk")for(const c of l.referencedFiles)i.has(c)&&i.delete(c);for(const l of i)delete r[l]})(s),ct("generate bundle",2),await this.pluginDriver.hookSeq("generateBundle",[this.outputOptions,s,e]),this.finaliseAssets(s),at("generate bundle",2),at("GENERATE",1),n}async addManualChunks(e){const n=new Map,s=await Promise.all(Object.entries(e).map(async([r,i])=>({alias:r,entries:await this.graph.moduleLoader.addAdditionalModules(i,!0)})));for(const{alias:r,entries:i}of s)for(const a of i)Bp(r,a,n);return n}assignManualChunks(e){const n=[],s={getModuleIds:()=>this.graph.modulesById.keys(),getModuleInfo:this.graph.getModuleInfo};for(const i of this.graph.modulesById.values())if(i instanceof st){const a=e(i.id,s);typeof a=="string"&&n.push([a,i])}n.sort(([i],[a])=>i>a?1:i<a?-1:0);const r=new Map;for(const[i,a]of n)Bp(i,a,r);return r}finaliseAssets(e){if(this.outputOptions.validate){for(const n of Object.values(e))if("code"in n)try{bl(n.code,{jsx:this.inputOptions.jsx!==!1})}catch(s){this.inputOptions.onLog(Ee,Rm(n,s))}}this.pluginDriver.finaliseAssets()}async generateChunks(e,n){const{experimentalMinChunkSize:s,inlineDynamicImports:r,manualChunks:i,preserveModules:a}=this.outputOptions,l=typeof i=="object"?await this.addManualChunks(i):this.assignManualChunks(i),c=function({compact:E,generatedCode:{arrowFunctions:b,constBindings:A,objectShorthand:v,reservedNamesAsProps:$}}){const{_:D,n:j,s:V}=E?{_:"",n:"",s:""}:{_:" ",n:`
58
+ `,s:";"},U=A?"const":"var",O=(R,{isAsync:M,name:q})=>`${M?"async ":""}function${q?` ${q}`:""}${D}(${R.join(`,${D}`)})${D}`,_=b?(R,{isAsync:M,name:q})=>{const K=R.length===1;return`${q?`${U} ${q}${D}=${D}`:""}${M?`async${K?" ":D}`:""}${K?R[0]:`(${R.join(`,${D}`)})`}${D}=>${D}`}:O,N=(R,{functionReturn:M,lineBreakIndent:q,name:K})=>[`${_(R,{isAsync:!1,name:K})}${b?q?`${j}${q.base}${q.t}`:"":`{${q?`${j}${q.base}${q.t}`:D}${M?"return ":""}`}`,b?`${K?";":""}${q?`${j}${q.base}`:""}`:`${V}${q?`${j}${q.base}`:D}}`],C=$?R=>mi.test(R):R=>!pi.has(R)&&mi.test(R);return{_:D,cnst:U,getDirectReturnFunction:N,getDirectReturnIifeLeft:(R,M,{needsArrowReturnParens:q,needsWrappedFunction:K})=>{const[X,ae]=N(R,{functionReturn:!0,lineBreakIndent:null,name:null});return`${Cp(`${X}${Cp(M,b&&q)}${ae}`,b||K)}(`},getFunctionIntro:_,getNonArrowFunctionIntro:O,getObject(R,{lineBreakIndent:M}){const q=M?`${j}${M.base}${M.t}`:D;return`{${R.map(([K,X])=>{if(K===null)return`${q}${X}`;const ae=gi(K);return K===X&&v&&K===ae?q+K:`${q}${ae}:${D}${X}`}).join(",")}${R.length===0?"":M?`${j}${M.base}`:D}}`},getPropertyAccess:R=>C(R)?`.${R}`:`[${JSON.stringify(R)}]`,n:j,s:V}}(this.outputOptions),u=function(E){const b=[];for(const A of E.values())A instanceof st&&(A.isIncluded()||A.info.isEntry||A.includedDynamicImporters.length>0)&&b.push(A);return b}(this.graph.modulesById),d=function(E){if(E.length===0)return"/";if(E.length===1)return ln(E[0]);const b=E.slice(1).reduce((A,v)=>{const $=v.split(/\/+|\\+/);let D;for(D=0;A[D]===$[D]&&D<Math.min(A.length,$.length);D++);return A.slice(0,D)},E[0].split(/\/+|\\+/));return b.length>1?b.join("/"):"/"}(function(E,b){const A=[];for(const v of E)(v.info.isEntry||b)&&Ht(v.id)&&A.push(v.id);return A}(u,a)),m=function(E,b,A){const v=new Map;for(const $ of E.values())$ instanceof Ze&&v.set($,new Qn($,b,A));return v}(this.graph.modulesById,this.outputOptions,d),f=r?[{alias:null,modules:u}]:a?u.map(E=>({alias:null,modules:[E]})):my(this.graph.entryModules,l,s,this.inputOptions.onLog),g=new Array(f.length),w=new Map;let k=0;for(const{alias:E,modules:b}of f){ky(b);const A=new _n(b,this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.graph.modulesById,w,m,this.facadeChunkByModule,this.includedNamespaces,E,n,e,d,c);g[k++]=A}for(const E of g)E.link();const I=[];for(const E of g)I.push(...E.generateFacades());return[...g,...I]}}function Bp(t,e,n){const s=n.get(e);if(typeof s=="string"&&s!==t)return oe((r=e.id,i=t,a=s,{code:"INVALID_CHUNK",message:`Cannot assign "${Ae(r)}" to the "${i}" chunk as it is already in the "${a}" chunk.`}));var r,i,a;n.set(e,t)}class Iy extends Hh{constructor(){super(),this.parent=null,this.variables.set("undefined",new hd)}findVariable(e){let n=this.variables.get(e);return n||(n=new va(e),this.variables.set(e,n)),n}}async function jp(t,e,n,s,r,i,a,l,c,u){const d=await function(m,f,g,w,k,I,E,b){let A=null,v=null;if(k){A=new Set;for(const $ of k)m===$.source&&f===$.importer&&A.add($.plugin);v=($,D)=>({...$,resolve:(j,V,{attributes:U,custom:O,isEntry:_,skipSelf:N}=pt)=>(N??=!0,N&&k.findIndex(C=>C.plugin===D&&C.source===j&&C.importer===V)!==-1?Promise.resolve(null):w(j,V,O,_,U||ft,N?[...k,{importer:V,plugin:D,source:j}]:k))})}return g.hookFirstAndGetPlugin("resolveId",[m,f,{attributes:b,custom:I,isEntry:E}],v,A)}(t,e,s,r,i,a,l,c);if(d!=null){const[m,f]=d;return typeof m!="object"||m.resolvedBy?typeof m=="string"?{id:m,resolvedBy:f.name}:m:{...m,resolvedBy:f.name}}return e===void 0||Ht(t)||t[0]==="."?async function(m,f,g){return await ko(m,f,g)??await ko(m+".mjs",f,g)??await ko(m+".js",f,g)}(e?At(ln(e),t):At(t),n,u):null}async function ko(t,e,n){try{const s=await n.lstat(t);if(!e&&s.isSymbolicLink())return await ko(await n.realpath(t),e,n);if(e&&s.isSymbolicLink()||s.isFile()){const r=Gt(t);if((await n.readdir(ln(t))).includes(r))return t}}catch{}}function zp(t){return t.charCodeAt(0)===65279?zp(t.slice(1)):t}const Nl="at position ",Cl="at output position ",vy={delete:()=>!1,get(){},has:()=>!1,set(){}};function Eo(t){return t.startsWith(Nl)||t.startsWith(Cl)?oe({code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."}):oe({code:"DUPLICATE_PLUGIN_NAME",message:`The plugin name ${t} is being used twice in the same build. Plugin names must be distinct or provide a cacheKey (please post an issue to the plugin if you are a plugin user).`})}const Vp=(t,e,n=Py)=>{const{onwarn:s,onLog:r}=t,i=_y(n,s);if(r){const a=Bn[e];return(l,c)=>r(l,Up(c),(u,d)=>{if(u==="error")return oe(Zt(d));Bn[u]>=a&&i(u,Zt(d))})}return i},_y=(t,e)=>e?(n,s)=>{n===Ee?e(Up(s),r=>t(Ee,Zt(r))):t(n,s)}:t,Up=t=>(Object.defineProperty(t,"toString",{value:()=>t.message,writable:!0}),t),Zt=t=>typeof t=="string"?{message:t}:typeof t=="function"?Zt(t()):t,Py=(t,{message:e})=>{switch(t){case Ee:return console.warn(e);case Qs:return console.debug(e);default:return console.info(e)}};function qp(t,e,n,s,r=/$./){const i=new Set(e),a=Object.keys(t).filter(l=>!(i.has(l)||r.test(l)));a.length>0&&s(Ee,function(l,c,u){return{code:"UNKNOWN_OPTION",message:`Unknown ${l}: ${c.join(", ")}. Allowed options: ${u.join(", ")}`}}(n,a,[...i].sort()))}const $y={recommended:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:Qe,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!1},safest:{annotations:!0,correctVarValueBeforeDeclaration:!0,manualPureFunctions:Qe,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!0},smallest:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:Qe,moduleSideEffects:()=>!1,propertyReadSideEffects:!1,tryCatchDeoptimization:!1,unknownGlobalSideEffects:!1}},Ny={preserve:{factory:null,fragment:null,importSource:null,mode:"preserve"},"preserve-react":{factory:"React.createElement",fragment:"React.Fragment",importSource:"react",mode:"preserve"},react:{factory:"React.createElement",fragment:"React.Fragment",importSource:"react",mode:"classic"},"react-jsx":{factory:"React.createElement",importSource:"react",jsxImportSource:"react/jsx-runtime",mode:"automatic"}},Cy={es2015:{arrowFunctions:!0,constBindings:!0,objectShorthand:!0,reservedNamesAsProps:!0,symbols:!0},es5:{arrowFunctions:!1,constBindings:!1,objectShorthand:!1,reservedNamesAsProps:!0,symbols:!1}},Tl=(t,e,n,s,r)=>{const i=t?.preset;if(i){const a=e[i];if(a)return{...a,...t};oe(nt(`${n}.preset`,s,`valid values are ${cn(Object.keys(e))}`,i))}return((a,l,c,u)=>d=>{if(typeof d=="string"){const m=a[d];if(m)return m;oe(nt(l,c,`valid values are ${u}${cn(Object.keys(a))}. You can also supply an object for more fine-grained control`,d))}return(m=>m&&typeof m=="object"?m:{})(d)})(e,n,s,r)(t)},Ao=async t=>(await async function(e){do e=(await Promise.all(e)).flat(1/0);while(e.some(n=>n?.then));return e}([t])).filter(Boolean);async function Ty(t,e,n,s){const r=e.id,i=[];let a=t.map===null?null:Os(t.map);const l=t.code;let c=t.ast;const u=[],d=[];let m=!1;const f=()=>m=!0;let g="",w=t.code;const k=E=>(b,A)=>{b=Zt(b),A&&ci(b,A,w,r),b.id=r,b.hook="transform",E(b)};let I;try{I=await n.hookReduceArg0("transform",[w,r],function(E,b,A){let v,$;if(typeof b=="string")v=b;else{if(!b||typeof b!="object")return E;if(e.updateOptions(b),b.code==null)return(b.map||b.ast)&&s(Ee,function(D){return{code:"NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE",message:`The plugin "${D}" returned a "map" or "ast" without returning a "code". This will be ignored.`}}(A.name)),E;({code:v,map:$,ast:c}=b)}return $!==null&&i.push(Os(typeof $=="string"?JSON.parse($):$)||{missing:!0,plugin:A.name}),w=v,v},(E,b)=>{return g=b.name,{...E,addWatchFile($){u.push($),E.addWatchFile($)},cache:m?E.cache:(A=E.cache,v=f,{delete:$=>(v(),A.delete($)),get:$=>(v(),A.get($)),has:$=>(v(),A.has($)),set:($,D)=>(v(),A.set($,D))}),debug:k(E.debug),emitFile:$=>(d.push($),n.emitFile($)),error:($,D)=>(typeof $=="string"&&($={message:$}),D&&ci($,D,w,r),$.id=r,$.hook="transform",E.error($)),getCombinedSourcemap(){const $=function(D,j,V,U,O){return U.length===0?V:Os({version:3,...Dp(D,j,V,U,Rp(O)).traceMappings()})}(r,l,a,i,s);return $?(a!==$&&(a=$,i.length=0),new ei({...$,file:null,sourcesContent:$.sourcesContent})):new Ws(l).generateMap({hires:!0,includeContent:!0,source:r})},info:k(E.info),setAssetSource(){return this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitFile with a source, or call setAssetSource in another hook."})},warn:k(E.warn)};var A,v})}catch(E){return oe(er(E,g,{hook:"transform",id:r}))}return!m&&d.length>0&&(e.transformFiles=d),{ast:c,code:I,customTransformCache:m,originalCode:l,originalSourcemap:a,sourcemapChain:i,transformDependencies:u}}const Rl="resolveDependencies";class Ry{constructor(e,n,s,r){this.graph=e,this.modulesById=n,this.options=s,this.pluginDriver=r,this.implicitEntryModules=new Set,this.indexedEntryModules=[],this.latestLoadModulesPromise=Promise.resolve(),this.moduleLoadPromises=new Map,this.modulesWithLoadedDependencies=new Set,this.nextChunkNamePriority=0,this.nextEntryModuleIndex=0,this.resolveId=async(i,a,l,c,u,d=null)=>this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(!this.options.external(i,a,!1)&&await jp(i,a,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,d,l,typeof c=="boolean"?c:!a,u,this.options.fs),a,i),u),this.hasModuleSideEffects=s.treeshake?s.treeshake.moduleSideEffects:()=>!0}async addAdditionalModules(e,n){const s=this.extendLoadModulesPromise(Promise.all(e.map(r=>this.loadEntryModule(r,!1,void 0,null,n))));return await this.awaitLoadModulesPromise(),s}async addEntryModules(e,n){const s=this.nextEntryModuleIndex;this.nextEntryModuleIndex+=e.length;const r=this.nextChunkNamePriority;this.nextChunkNamePriority+=e.length;const i=await this.extendLoadModulesPromise(Promise.all(e.map(({id:a,importer:l})=>this.loadEntryModule(a,!0,l,null))).then(a=>{for(const[l,c]of a.entries()){c.isUserDefinedEntryPoint=c.isUserDefinedEntryPoint||n,Gp(c,e[l],n,r+l);const u=this.indexedEntryModules.find(d=>d.module===c);u?u.index=Math.min(u.index,s+l):this.indexedEntryModules.push({index:s+l,module:c})}return this.indexedEntryModules.sort(({index:l},{index:c})=>l>c?1:-1),a}));return await this.awaitLoadModulesPromise(),{entryModules:this.indexedEntryModules.map(({module:a})=>a),implicitEntryModules:[...this.implicitEntryModules],newEntryModules:i}}async emitChunk({fileName:e,id:n,importer:s,name:r,implicitlyLoadedAfterOneOf:i,preserveSignature:a}){const l={fileName:e||null,id:n,importer:s,name:r||null},c=i?await this.addEntryWithImplicitDependants(l,i):(await this.addEntryModules([l],!1)).newEntryModules[0];return a!=null&&(c.preserveSignature=a),c}async preloadModule(e){return(await this.fetchModule(this.getResolvedIdWithDefaults(e,ft),void 0,!1,!e.resolveDependencies||Rl)).info}addEntryWithImplicitDependants(e,n){const s=this.nextChunkNamePriority++;return this.extendLoadModulesPromise(this.loadEntryModule(e.id,!1,e.importer,null).then(async r=>{if(Gp(r,e,!1,s),!r.info.isEntry){const i=await Promise.all(n.map(a=>this.loadEntryModule(a,!1,e.importer,r.id)));if(!r.info.isEntry){this.implicitEntryModules.add(r);for(const a of i)r.implicitlyLoadedAfter.add(a);for(const a of r.implicitlyLoadedAfter)a.implicitlyLoadedBefore.add(r)}}return r}))}async addModuleSource(e,n,s){let r;try{r=await this.graph.fileOperationQueue.run(async()=>{const l=await this.pluginDriver.hookFirst("load",[e]);return l!==null?l:(this.graph.watchFiles[e]=!0,await this.options.fs.readFile(e,{encoding:"utf8"}))})}catch(l){let c=`Could not load ${e}`;throw n&&(c+=` (imported by ${Ae(n)})`),c+=`: ${l.message}`,l.message=c,l}const i=typeof r=="string"?{code:r}:r!=null&&typeof r=="object"&&typeof r.code=="string"?r:oe(function(l){return{code:"BAD_LOADER",message:`Error loading "${Ae(l)}": plugin load hook should return a string, a { code, map } object, or nothing/null.`}}(e));i.code=zp(i.code);const a=this.graph.cachedModules.get(e);if(!a||a.customTransformCache||a.originalCode!==i.code||await this.pluginDriver.hookFirst("shouldTransformCachedModule",[{ast:a.ast,code:a.code,id:a.id,meta:a.meta,moduleSideEffects:a.moduleSideEffects,resolvedSources:a.resolvedIds,syntheticNamedExports:a.syntheticNamedExports}]))s.updateOptions(i),await s.setSource(await Ty(i,s,this.pluginDriver,this.options.onLog));else{if(a.transformFiles)for(const l of a.transformFiles)this.pluginDriver.emitFile(l);await s.setSource(a)}}async awaitLoadModulesPromise(){let e;do e=this.latestLoadModulesPromise,await e;while(e!==this.latestLoadModulesPromise)}extendLoadModulesPromise(e){return this.latestLoadModulesPromise=Promise.all([e,this.latestLoadModulesPromise]),this.latestLoadModulesPromise.catch(()=>{}),e}async fetchDynamicDependencies(e,n){const s=await Promise.all(n.map(r=>r.then(async([i,a])=>a===null?null:typeof a=="string"?(i.resolution=a,null):i.resolution=await this.fetchResolvedDependency(Ae(a.id),e.id,a))));for(const r of s)r&&(e.dynamicDependencies.add(r),r.dynamicImporters.push(e.id))}async fetchModule({attributes:e,id:n,meta:s,moduleSideEffects:r,syntheticNamedExports:i},a,l,c){const u=this.modulesById.get(n);if(u instanceof st)return a&&mo(e,u.info.attributes)&&this.options.onLog(Ee,ui(u.info.attributes,e,n,a)),await this.handleExistingModule(u,l,c),u;if(u instanceof Ze)return oe({code:"EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES",message:`${u.id} is resolved as a module now, but it was an external module before. Please check whether there are conflicts in your Rollup options "external" and "manualChunks", manualChunks cannot include external modules.`});const d=new st(this.graph,n,this.options,l,r,i,s,e);this.modulesById.set(n,d);const m=this.addModuleSource(n,a,d).then(()=>[this.getResolveStaticDependencyPromises(d),this.getResolveDynamicImportPromises(d),f]),f=Wp(m).then(()=>this.pluginDriver.hookParallel("moduleParsed",[d.info]));f.catch(()=>{}),this.moduleLoadPromises.set(d,m);const g=await m;return c?c===Rl&&await f:await this.fetchModuleDependencies(d,...g),d}async fetchModuleDependencies(e,n,s,r){this.modulesWithLoadedDependencies.has(e)||(this.modulesWithLoadedDependencies.add(e),await Promise.all([this.fetchStaticDependencies(e,n),this.fetchDynamicDependencies(e,s)]),e.linkImports(),await r)}fetchResolvedDependency(e,n,s){if(s.external){const{attributes:r,external:i,id:a,moduleSideEffects:l,meta:c}=s;let u=this.modulesById.get(a);if(u){if(!(u instanceof Ze))return oe(function(d,m){return{code:"INVALID_EXTERNAL_ID",message:`"${d}" is imported as an external by "${Ae(m)}", but is already an existing non-external module id.`}}(e,n));mo(u.info.attributes,r)&&this.options.onLog(Ee,ui(u.info.attributes,r,e,n))}else u=new Ze(this.options,a,l,c,i!=="absolute"&&Ht(a),r),this.modulesById.set(a,u);return Promise.resolve(u)}return this.fetchModule(s,n,!1,!1)}async fetchStaticDependencies(e,n){for(const s of await Promise.all(n.map(r=>r.then(([i,a])=>this.fetchResolvedDependency(i,e.id,a)))))e.dependencies.add(s),s.importers.push(e.id);if(!this.options.treeshake||e.info.moduleSideEffects==="no-treeshake")for(const s of e.dependencies)s instanceof st&&(s.importedFromNotTreeshaken=!0)}getNormalizedResolvedIdWithoutDefaults(e,n,s){const{makeAbsoluteExternalsRelative:r}=this.options;if(e){if(typeof e=="object"){const l=e.external||this.options.external(e.id,n,!0);return{...e,external:l&&(l==="relative"||!Ht(e.id)||l===!0&&Dl(e.id,s,r)||"absolute")}}const a=this.options.external(e,n,!0);return{external:a&&(Dl(e,s,r)||"absolute"),id:a&&r?Hp(e,n):e}}const i=r?Hp(s,n):s;return e===!1||this.options.external(i,n,!0)?{external:Dl(i,s,r)||"absolute",id:i}:null}getResolveDynamicImportPromises(e){return e.dynamicImports.map(async n=>{const s=await this.resolveDynamicImport(e,n.argument,e.id,dp(n.node));return s&&typeof s=="object"&&(n.id=s.id),[n,s]})}getResolveStaticDependencyPromises(e){return Array.from(e.sourcesWithAttributes,async([n,s])=>[n,e.resolvedIds[n]=e.resolvedIds[n]||this.handleInvalidResolvedId(await this.resolveId(n,e.id,ft,!1,s),n,e.id,s)])}getResolvedIdWithDefaults(e,n){if(!e)return null;const s=e.external||!1;return{attributes:e.attributes||n,external:s,id:e.id,meta:e.meta||{},moduleSideEffects:e.moduleSideEffects??this.hasModuleSideEffects(e.id,!!s),resolvedBy:e.resolvedBy??"rollup",syntheticNamedExports:e.syntheticNamedExports??!1}}async handleExistingModule(e,n,s){const r=this.moduleLoadPromises.get(e);if(s)return s===Rl?Wp(r):r;if(n){e.info.isEntry=!0,this.implicitEntryModules.delete(e);for(const i of e.implicitlyLoadedAfter)i.implicitlyLoadedBefore.delete(e);e.implicitlyLoadedAfter.clear()}return this.fetchModuleDependencies(e,...await r)}handleInvalidResolvedId(e,n,s,r){return e===null?Qo(n)?oe(function(i,a){return{code:mh,exporter:i,id:a,message:`Could not resolve "${i}" from "${Ae(a)}"`}}(n,s)):(this.options.onLog(Ee,function(i,a){return{code:mh,exporter:i,id:a,message:`"${i}" is imported by "${Ae(a)}", but could not be resolved – treating it as an external dependency.`,url:ot("troubleshooting/#warning-treating-module-as-external-dependency")}}(n,s)),{attributes:r,external:!0,id:n,meta:{},moduleSideEffects:this.hasModuleSideEffects(n,!0),resolvedBy:"rollup",syntheticNamedExports:!1}):(e.external&&e.syntheticNamedExports&&this.options.onLog(Ee,function(i,a){return{code:"EXTERNAL_SYNTHETIC_EXPORTS",exporter:i,message:`External "${i}" cannot have "syntheticNamedExports" enabled (imported by "${Ae(a)}").`}}(n,s)),e)}async loadEntryModule(e,n,s,r,i=!1){const a=await jp(e,s,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,null,ft,!0,ft,this.options.fs);if(a==null)return oe(r===null?function(c){return{code:fh,message:`Could not resolve entry module "${Ae(c)}".`}}(e):function(c,u){return{code:ha,message:`Module "${Ae(c)}" that should be implicitly loaded before "${Ae(u)}" could not be resolved.`}}(e,r));const l=typeof a=="object"&&a.external;return a===!1||l?oe(r===null?l&&i?{code:"EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS",message:`"${e}" cannot be included in manualChunks because it is resolved as an external module by the "external" option or plugins.`}:function(c){return{code:fh,message:`Entry module "${Ae(c)}" cannot be external.`}}(e):function(c,u){return{code:ha,message:`Module "${Ae(c)}" that should be implicitly loaded before "${Ae(u)}" cannot be external.`}}(e,r)):this.fetchModule(this.getResolvedIdWithDefaults(typeof a=="object"?a:{id:a},ft),void 0,n,!1)}async resolveDynamicImport(e,n,s,r){const i=await this.pluginDriver.hookFirst("resolveDynamicImport",[n,s,{attributes:r}]);if(typeof n!="string")return typeof i=="string"?i:i?this.getResolvedIdWithDefaults(i,r):null;if(i==null){const a=e.resolvedIds[n];return a?(mo(a.attributes,r)&&this.options.onLog(Ee,ui(a.attributes,r,n,s)),a):e.resolvedIds[n]=this.handleInvalidResolvedId(await this.resolveId(n,e.id,ft,!1,r),n,e.id,r)}return this.handleInvalidResolvedId(this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(i,s,n),r),n,s,r)}}function Hp(t,e){return Qo(t)?e?At(e,"..",t):At(t):t}function Gp(t,{fileName:e,name:n},s,r){if(e!==null)t.chunkFileNames.add(e);else if(n!==null){let i=0;for(;t.chunkNames[i]?.priority<r;)i++;t.chunkNames.splice(i,0,{isUserDefined:s,name:n,priority:r})}}function Dl(t,e,n){return n===!0||n==="ifRelativeSource"&&Qo(e)||!Ht(t)}async function Wp(t){const[e,n]=await t;return Promise.all([...e,...n])}function Xp(t,e,n,s,r,i,a,l,c){const u=a.sanitizeFileName(t||"asset");return vl(Il(typeof a.assetFileNames=="function"?a.assetFileNames({get name(){return jn('Accessing the "name" property of emitted assets when generating the file name is deprecated. Use the "names" property instead.',bs,!1,c),t},names:e,get originalFileName(){return jn('Accessing the "originalFileName" property of emitted assets when generating the file name is deprecated. Use the "originalFileNames" property instead.',bs,!1,c),s},originalFileNames:r,source:n,type:"asset"}):a.assetFileNames,"output.assetFileNames",{ext:()=>xn(u).slice(1),extname:()=>xn(u),hash:d=>i.slice(0,Math.min(Math.max(0,d||8),21)),name:()=>u.slice(0,Math.max(0,u.length-xn(u).length))}),l)}function Kp(t,{bundle:e},n){e[yo].has(t.toLowerCase())?n(Ee,function(s){return{code:"FILE_NAME_CONFLICT",message:`The emitted file "${s}" overwrites a previously emitted file of the same name.`}}(t)):e[t]=Sl}const Dy=new Set(["chunk","asset","prebuilt-chunk"]);function Jp(t,e,n){if(!(typeof t=="string"||t instanceof Uint8Array)){const s=e.fileName||e.name||n;return oe(wt(`Could not set source for ${typeof s=="string"?`asset "${s}"`:"unnamed asset"}, asset source needs to be a string, Uint8Array or Buffer.`))}return t}class Oy{constructor(e,n,s){this.graph=e,this.options=n,this.facadeChunkByModule=null,this.nextIdBase=1,this.output=null,this.outputFileEmitters=[],this.emitFile=r=>function(i){return!!(i&&Dy.has(i.type))}(r)?r.type==="prebuilt-chunk"?this.emitPrebuiltChunk(r):function(i){const a=i.fileName||i.name;return!a||typeof a=="string"&&!ai(a)}(r)?r.type==="chunk"?this.emitChunk(r):this.emitAsset(r):oe(wt(`The "fileName" or "name" properties of emitted chunks and assets must be strings that are neither absolute nor relative paths, received "${r.fileName||r.name}".`)):oe(wt(`Emitted files must be of type "asset", "chunk" or "prebuilt-chunk", received "${r&&r.type}".`)),this.finaliseAssets=()=>{for(const[r,i]of this.filesByReferenceId)if(i.type==="asset"&&typeof i.fileName!="string")return oe(Tm(i.name||r))},this.getFileName=r=>{const i=this.filesByReferenceId.get(r);return i?i.type==="chunk"?(a=i,l=this.facadeChunkByModule,a.fileName?a.fileName:l?l.get(a.module).getFileName():oe({code:"CHUNK_NOT_GENERATED",message:`Plugin error - Unable to get file name for emitted chunk "${a.fileName||a.name}". You can only get file names once chunks have been generated after the "renderStart" hook.`})):i.type==="prebuilt-chunk"?i.fileName:function(c,u){return typeof c.fileName!="string"?oe({code:"ASSET_NOT_FINALISED",message:`Plugin error - Unable to get file name for asset "${c.name||u}". Ensure that the source is set and that generate is called first. If you reference assets via import.meta.ROLLUP_FILE_URL_<referenceId>, you need to either have set their source after "renderStart" or need to provide an explicit "fileName" when emitting them.`}):c.fileName}(i,r):oe({code:"FILE_NOT_FOUND",message:`Plugin error - Unable to get file name for unknown file "${r}".`});var a,l},this.setAssetSource=(r,i)=>{const a=this.filesByReferenceId.get(r);if(!a)return oe({code:"ASSET_NOT_FOUND",message:`Plugin error - Unable to set the source for unknown asset "${r}".`});if(a.type!=="asset")return oe(wt(`Asset sources can only be set for emitted assets but "${r}" is an emitted chunk.`));if(a.source!==void 0)return oe({code:"ASSET_SOURCE_ALREADY_SET",message:`Unable to set the source for asset "${a.name||r}", source already set.`});const l=Jp(i,a,r);if(this.output)this.finalizeAdditionalAsset(a,l,this.output);else{a.source=l;for(const c of this.outputFileEmitters)c.finalizeAdditionalAsset(a,l,c.output)}},this.setChunkInformation=r=>{this.facadeChunkByModule=r},this.setOutputBundle=(r,i)=>{const a=Pl[i.hashCharacters],l=this.output={bundle:r,fileNamesBySourceHash:new Map,getHash:a,outputOptions:i};for(const u of this.filesByReferenceId.values())u.fileName&&Kp(u.fileName,l,this.options.onLog);const c=new Map;for(const u of this.filesByReferenceId.values())u.type==="asset"&&u.source!==void 0?u.fileName?this.finalizeAdditionalAsset(u,u.source,l):bt(c,a(u.source),()=>[]).push(u):u.type==="prebuilt-chunk"&&(this.output.bundle[u.fileName]=this.createPrebuiltChunk(u));for(const[u,d]of c)this.finalizeAssetsWithSameSource(d,u,l)},this.filesByReferenceId=s?new Map(s.filesByReferenceId):new Map,s?.addOutputFileEmitter(this)}addOutputFileEmitter(e){this.outputFileEmitters.push(e)}assignReferenceId(e,n){let s=n;do s=Lp(s).slice(0,8).replaceAll("-","$");while(this.filesByReferenceId.has(s)||this.outputFileEmitters.some(({filesByReferenceId:r})=>r.has(s)));e.referenceId=s,this.filesByReferenceId.set(s,e);for(const{filesByReferenceId:r}of this.outputFileEmitters)r.set(s,e);return s}createPrebuiltChunk(e){return{code:e.code,dynamicImports:[],exports:e.exports||[],facadeModuleId:null,fileName:e.fileName,implicitlyLoadedBefore:[],importedBindings:{},imports:[],isDynamicEntry:!1,isEntry:!1,isImplicitEntry:!1,map:e.map||null,moduleIds:[],modules:{},name:e.fileName,preliminaryFileName:e.fileName,referencedFiles:[],sourcemapFileName:e.sourcemapFileName||null,type:"chunk"}}emitAsset(e){const n=e.source===void 0?void 0:Jp(e.source,e,null),s=e.originalFileName||null;typeof s=="string"&&(this.graph.watchFiles[s]=!0);const r={fileName:e.fileName,name:e.name,needsCodeReference:!!e.needsCodeReference,originalFileName:s,referenceId:"",source:n,type:"asset"},i=this.assignReferenceId(r,e.fileName||e.name||String(this.nextIdBase++));if(this.output)this.emitAssetWithReferenceId(r,this.output);else for(const a of this.outputFileEmitters)a.emitAssetWithReferenceId(r,a.output);return i}emitAssetWithReferenceId(e,n){const{fileName:s,source:r}=e;s&&Kp(s,n,this.options.onLog),r!==void 0&&this.finalizeAdditionalAsset(e,r,n)}emitChunk(e){if(this.graph.phase>ns.LOAD_AND_PARSE)return oe({code:"INVALID_ROLLUP_PHASE",message:"Cannot emit chunks after module loading has finished."});if(typeof e.id!="string")return oe(wt(`Emitted chunks need to have a valid string id, received "${e.id}"`));const n={fileName:e.fileName,module:null,name:e.name||e.id,referenceId:"",type:"chunk"};return this.graph.moduleLoader.emitChunk(e).then(s=>n.module=s).catch(()=>{}),this.assignReferenceId(n,e.id)}emitPrebuiltChunk(e){if(typeof e.code!="string")return oe(wt(`Emitted prebuilt chunks need to have a valid string code, received "${e.code}".`));if(typeof e.fileName!="string"||ai(e.fileName))return oe(wt(`The "fileName" property of emitted prebuilt chunks must be strings that are neither absolute nor relative paths, received "${e.fileName}".`));const n={code:e.code,exports:e.exports,fileName:e.fileName,map:e.map,referenceId:"",type:"prebuilt-chunk"},s=this.assignReferenceId(n,n.fileName);return this.output&&(this.output.bundle[n.fileName]=this.createPrebuiltChunk(n)),s}finalizeAdditionalAsset(e,n,{bundle:s,fileNamesBySourceHash:r,getHash:i,outputOptions:a}){let{fileName:l,name:c,needsCodeReference:u,originalFileName:d,referenceId:m}=e;if(!l){const w=i(n);l=r.get(w),l||(l=Xp(c,c?[c]:[],n,d,d?[d]:[],w,a,s,this.options),r.set(w,l))}const f={...e,fileName:l,source:n};this.filesByReferenceId.set(m,f);const g=s[l];if(g?.type==="asset")g.needsCodeReference&&=u,c&&g.names.push(c),d&&g.originalFileNames.push(d);else{const{options:w}=this;s[l]={fileName:l,get name(){return jn('Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.',bs,!1,w),c},names:c?[c]:[],needsCodeReference:u,get originalFileName(){return jn('Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.',bs,!1,w),d},originalFileNames:d?[d]:[],source:n,type:"asset"}}}finalizeAssetsWithSameSource(e,n,{bundle:s,fileNamesBySourceHash:r,outputOptions:i}){const{names:a,originalFileNames:l}=function(f){const g=[],w=[];for(const{name:k,originalFileName:I}of f)typeof k=="string"&&g.push(k),I&&w.push(I);return w.sort(),g.sort((k,I)=>k.length-I.length||(k>I?1:k===I?0:-1)),{names:g,originalFileNames:w}}(e);let c,u="",d=!0;for(const f of e){d&&=f.needsCodeReference;const g=Xp(f.name,a,f.source,f.originalFileName,l,n,i,s,this.options);(!u||g.length<u.length||g.length===u.length&&g<u)&&(u=g,c=f)}r.set(n,u);for(const f of e){const g={...f,fileName:u};this.filesByReferenceId.set(f.referenceId,g)}const{options:m}=this;s[u]={fileName:u,get name(){return jn('Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.',bs,!1,m),c.name},names:a,needsCodeReference:d,get originalFileName(){return jn('Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.',bs,!1,m),c.originalFileName},originalFileNames:l,source:c.source,type:"asset"}}}function Ls(t,e,n,s,r){return Bn[t]<Bn[r]?Mt:(i,a)=>{a!=null&&n(Ee,{code:"INVALID_LOG_POSITION",message:`Plugin "${s}" tried to add a file position to a log or warning. This is only supported in the "transform" hook at the moment and will be ignored.`}),(i=Zt(i)).code&&!i.pluginCode&&(i.pluginCode=i.code),i.code=e,i.plugin=s,n(t,i)}}function Ly(t,e,n,s,r,i){const{logLevel:a,onLog:l}=s;let c,u=!0;if(typeof t.cacheKey!="string"&&(t.name.startsWith(Nl)||t.name.startsWith(Cl)||i.has(t.name)?u=!1:i.add(t.name)),e)if(u){const f=t.cacheKey||t.name;m=e[f]||(e[f]=Object.create(null)),c={delete:g=>delete m[g],get(g){const w=m[g];if(w)return w[0]=0,w[1]},has(g){const w=m[g];return!!w&&(w[0]=0,!0)},set(g,w){m[g]=[0,w]}}}else d=t.name,c={delete:()=>Eo(d),get:()=>Eo(d),has:()=>Eo(d),set:()=>Eo(d)};else c=vy;var d,m;return{addWatchFile(f){n.watchFiles[f]=!0},cache:c,debug:Ls(Qs,"PLUGIN_LOG",l,t.name,a),emitFile:r.emitFile.bind(r),error:f=>oe(er(Zt(f),t.name)),fs:s.fs,getFileName:r.getFileName,getModuleIds:()=>n.modulesById.keys(),getModuleInfo:n.getModuleInfo,getWatchFiles:()=>Object.keys(n.watchFiles),info:Ls(Fn,"PLUGIN_LOG",l,t.name,a),load:f=>n.moduleLoader.preloadModule(f),meta:{rollupVersion:Jo,watchMode:n.watchMode},parse:bl,resolve:(f,g,{attributes:w,custom:k,isEntry:I,skipSelf:E}=pt)=>(E??=!0,n.moduleLoader.resolveId(f,g,k,I,w||ft,E?[{importer:g,plugin:t,source:f}]:null)),setAssetSource:r.setAssetSource,warn:Ls(Ee,"PLUGIN_WARNING",l,t.name,a)}}function Ol(t){return Array.isArray(t)?t.filter(Boolean):t?[t]:[]}function Yp(t){if(t instanceof RegExp)return r=>{const i=an(r),a=t.test(i);return t.lastIndex=0,a};const e=process.cwd(),n=function(r,i){return r.startsWith("**")||Ht(r)?an(r):an(At(i,r))}(t,e),s=Mg(n,{dot:!0});return r=>{const i=an(r);return s(i)}}function Qp(t){return t instanceof RegExp?e=>{const n=t.test(e);return t.lastIndex=0,n}:e=>e.includes(t)}function Zp(t,e){if(t||e)return n=>!t?.some(s=>s(n))&&(!!e?.some(s=>s(n))||!(e&&e.length>0))}function e1(t){return typeof t=="string"||t instanceof RegExp?{include:[t]}:Array.isArray(t)?{include:t}:{exclude:t.exclude?Ol(t.exclude):void 0,include:t.include?Ol(t.include):void 0}}function t1(t){if(!t)return;const{exclude:e,include:n}=e1(t),s=e?.map(Yp),r=n?.map(Yp);return Zp(s,r)}function My(t,e){if(!t&&!e)return;const n=t1(t),s=function(r){if(!r)return;const{exclude:i,include:a}=e1(r),l=i?.map(Qp),c=a?.map(Qp);return Zp(l,c)}(e);return(r,i)=>{let a=!0;return n&&(a&&=n(r)),!!a&&(s&&(a&&=s(i)),a)}}const Fy=Object.keys({buildEnd:1,buildStart:1,closeBundle:1,closeWatcher:1,load:1,moduleParsed:1,onLog:1,options:1,resolveDynamicImport:1,resolveId:1,shouldTransformCachedModule:1,transform:1,watchChange:1});class Ll{constructor(e,n,s,r,i){this.graph=e,this.options=n,this.pluginCache=r,this.sortedPlugins=new Map,this.unfulfilledActions=new Set,this.compiledPluginFilters={idOnlyFilter:new WeakMap,transformFilter:new WeakMap},this.fileEmitter=new Oy(e,n,i&&i.fileEmitter),this.emitFile=this.fileEmitter.emitFile.bind(this.fileEmitter),this.getFileName=this.fileEmitter.getFileName.bind(this.fileEmitter),this.finaliseAssets=this.fileEmitter.finaliseAssets.bind(this.fileEmitter),this.setChunkInformation=this.fileEmitter.setChunkInformation.bind(this.fileEmitter),this.setOutputBundle=this.fileEmitter.setOutputBundle.bind(this.fileEmitter),this.plugins=[...i?i.plugins:[],...s];const a=new Set;if(this.pluginContexts=new Map(this.plugins.map(l=>[l,Ly(l,r,e,n,this.fileEmitter,a)])),i)for(const l of s)for(const c of Fy)c in l&&n.onLog(Ee,Fm(l.name,c))}createOutputPluginDriver(e){return new Ll(this.graph,this.options,e,this.pluginCache,this)}getUnfulfilledHookActions(){return this.unfulfilledActions}hookFirst(e,n,s,r){return this.hookFirstAndGetPlugin(e,n,s,r).then(i=>i&&i[0])}async hookFirstAndGetPlugin(e,n,s,r){for(const i of this.getSortedPlugins(e)){if(r?.has(i))continue;const a=await this.runHook(e,n,i,s);if(a!=null)return[a,i]}return null}hookFirstSync(e,n,s){for(const r of this.getSortedPlugins(e)){const i=this.runHookSync(e,n,r,s);if(i!=null)return i}return null}async hookParallel(e,n,s){const r=[];for(const i of this.getSortedPlugins(e))i[e].sequential?(await Promise.all(r),r.length=0,await this.runHook(e,n,i,s)):r.push(this.runHook(e,n,i,s));await Promise.all(r)}hookReduceArg0(e,[n,...s],r,i){let a=Promise.resolve(n);for(const l of this.getSortedPlugins(e))a=a.then(c=>this.runHook(e,[c,...s],l,i).then(u=>r.call(this.pluginContexts.get(l),c,u,l)));return a}hookReduceArg0Sync(e,[n,...s],r,i){for(const a of this.getSortedPlugins(e)){const l=[n,...s],c=this.runHookSync(e,l,a,i);n=r.call(this.pluginContexts.get(a),n,c,a)}return n}async hookReduceValue(e,n,s,r){const i=[],a=[];for(const l of this.getSortedPlugins(e,jy))l[e].sequential?(i.push(...await Promise.all(a)),a.length=0,i.push(await this.runHook(e,s,l))):a.push(this.runHook(e,s,l));return i.push(...await Promise.all(a)),i.reduce(r,await n)}hookReduceValueSync(e,n,s,r,i){let a=n;for(const l of this.getSortedPlugins(e)){const c=this.runHookSync(e,s,l,i);a=r.call(this.pluginContexts.get(l),a,c,l)}return a}hookSeq(e,n,s){let r=Promise.resolve();for(const i of this.getSortedPlugins(e))r=r.then(()=>this.runHook(e,n,i,s));return r.then(zy)}getSortedPlugins(e,n){return bt(this.sortedPlugins,e,()=>Ml(e,this.plugins,n))}runHook(e,n,s,r){const i=s[e],a=typeof i=="object"?i.handler:i;if(typeof i=="object"&&"filter"in i&&i.filter){if(e==="transform"){const u=i.filter,d=n,m=bt(this.compiledPluginFilters.transformFilter,u,()=>My(u.id,u.code));if(m&&!m(d[1],d[0]))return Promise.resolve()}else if(e==="resolveId"||e==="load"){const u=i.filter,d=n,m=bt(this.compiledPluginFilters.idOnlyFilter,u,()=>function(f){const g=t1(f);return g?w=>!!g(w):void 0}(u.id));if(m&&!m(d[0]))return Promise.resolve()}}let l=this.pluginContexts.get(s);r&&(l=r(l,s));let c=null;return Promise.resolve().then(()=>{if(typeof a!="function")return a;const u=a.apply(l,n);return u?.then?(c=[s.name,e,n],this.unfulfilledActions.add(c),Promise.resolve(u).then(d=>(this.unfulfilledActions.delete(c),d))):u}).catch(u=>(c!==null&&this.unfulfilledActions.delete(c),oe(er(u,s.name,{hook:e}))))}runHookSync(e,n,s,r){const i=s[e],a=typeof i=="object"?i.handler:i;let l=this.pluginContexts.get(s);r&&(l=r(l,s));try{return a.apply(l,n)}catch(c){return oe(er(c,s.name,{hook:e}))}}}function Ml(t,e,n=By){const s=[],r=[],i=[];for(const a of e){const l=a[t];if(l){if(typeof l=="object"){if(n(l.handler,t,a),l.order==="pre"){s.push(a);continue}if(l.order==="post"){i.push(a);continue}}else n(l,t,a);r.push(a)}}return[...s,...r,...i]}function By(t,e,n){typeof t!="function"&&oe(function(s,r){return{code:lh,hook:s,message:`Error running plugin hook "${s}" for plugin "${r}", expected a function hook or an object with a "handler" function.`,plugin:r}}(e,n.name))}function jy(t,e,n){if(typeof t!="string"&&typeof t!="function")return oe(function(s,r){return{code:lh,hook:s,message:`Error running plugin hook "${s}" for plugin "${r}", expected a string, a function hook or an object with a "handler" string or function.`,plugin:r}}(e,n.name))}function zy(){}class Vy{constructor(e){this.maxParallel=e,this.queue=[],this.workerCount=0}run(e){return new Promise((n,s)=>{this.queue.push({reject:s,resolve:n,task:e}),this.work()})}async work(){if(this.workerCount>=this.maxParallel)return;let e;for(this.workerCount++;e=this.queue.shift();){const{reject:n,resolve:s,task:r}=e;try{s(await r())}catch(i){n(i)}}this.workerCount--}}class Uy{constructor(e,n){if(this.options=e,this.astLru=function(s){var r,i,a,l=s;function c(d,m){++r>l&&(a=i,u(1),++r),i[d]=m}function u(d){r=0,i=Object.create(null),d||(a=Object.create(null))}return u(),{clear:u,has:function(d){return i[d]!==void 0||a[d]!==void 0},get:function(d){var m=i[d];return m!==void 0?m:(m=a[d])!==void 0?(c(d,m),m):void 0},set:function(d,m){i[d]!==void 0?i[d]=m:c(d,m)}}}(5),this.cachedModules=new Map,this.deoptimizationTracker=new ys,this.entryModules=[],this.modulesById=new Map,this.needsTreeshakingPass=!1,this.newlyIncludedVariableInits=new Set,this.phase=ns.LOAD_AND_PARSE,this.scope=new Iy,this.watchFiles=Object.create(null),this.watchMode=!1,this.externalModules=[],this.implicitEntryModules=[],this.modules=[],this.getModuleInfo=s=>{const r=this.modulesById.get(s);return r?r.info:null},e.cache!==!1){if(e.cache?.modules)for(const s of e.cache.modules)this.cachedModules.set(s.id,s);this.pluginCache=e.cache?.plugins||Object.create(null);for(const s in this.pluginCache){const r=this.pluginCache[s];for(const i of Object.values(r))i[0]++}}if(n){this.watchMode=!0;const s=(...i)=>this.pluginDriver.hookParallel("watchChange",i),r=()=>this.pluginDriver.hookParallel("closeWatcher",[]);n.onCurrentRun("change",s),n.onCurrentRun("close",r)}this.pluginDriver=new Ll(this,e,e.plugins,this.pluginCache),this.moduleLoader=new Ry(this,this.modulesById,this.options,this.pluginDriver),this.fileOperationQueue=new Vy(e.maxParallelFileOps),this.pureFunctions=(({treeshake:s})=>{const r=Object.create(null);for(const i of s?s.manualPureFunctions:[]){let a=r;for(const l of i.split("."))a=a[l]||=Object.create(null);a[pa]=!0}return r})(e)}async build(){ct("generate module graph",2),await this.generateModuleGraph(),at("generate module graph",2),ct("sort and bind modules",2),this.phase=ns.ANALYSE,this.sortModules(),at("sort and bind modules",2),ct("mark included statements",2),this.includeStatements(),at("mark included statements",2),this.phase=ns.GENERATE}getCache(){for(const e in this.pluginCache){const n=this.pluginCache[e];let s=!0;for(const[r,i]of Object.entries(n))i[0]>=this.options.experimentalCacheExpiry?delete n[r]:s=!1;s&&delete this.pluginCache[e]}return{modules:this.modules.map(e=>e.toJSON()),plugins:this.pluginCache}}async generateModuleGraph(){var e;if({entryModules:this.entryModules,implicitEntryModules:this.implicitEntryModules}=await this.moduleLoader.addEntryModules((e=this.options.input,Array.isArray(e)?e.map(n=>({fileName:null,id:n,implicitlyLoadedAfter:[],importer:void 0,name:null})):Object.entries(e).map(([n,s])=>({fileName:null,id:s,implicitlyLoadedAfter:[],importer:void 0,name:n}))),!0),this.entryModules.length===0)throw new Error("You must supply options.input to rollup");for(const n of this.modulesById.values())n.cacheInfoGetters(),n instanceof st?this.modules.push(n):this.externalModules.push(n)}includeStatements(){const e=[...this.entryModules,...this.implicitEntryModules];for(const n of e)As(n);if(this.options.treeshake){let n=1;this.newlyIncludedVariableInits.clear();do{ct(`treeshaking pass ${n}`,3),this.needsTreeshakingPass=!1;for(const s of this.modules)if(s.isExecuted){s.hasTreeShakingPassStarted=!0,s.info.moduleSideEffects==="no-treeshake"?s.includeAllInBundle():s.include();for(const r of this.newlyIncludedVariableInits)this.newlyIncludedVariableInits.delete(r),r.include(Lt(),!1)}if(n===1)for(const s of e)s.preserveSignature!==!1&&(s.includeAllExports(!1),this.needsTreeshakingPass=!0);at("treeshaking pass "+n++,3)}while(this.needsTreeshakingPass)}else for(const n of this.modules)n.includeAllInBundle();for(const n of this.externalModules)n.warnUnusedImports();for(const n of this.implicitEntryModules)for(const s of n.implicitlyLoadedAfter)s.info.isEntry||s.isIncluded()||oe(jm(s))}sortModules(){const{orderedModules:e,cyclePaths:n}=Ey(this.entryModules);for(const s of n)this.options.onLog(Ee,Dm(s));this.modules=e;for(const s of this.modules)s.bindReferences();this.warnForMissingExports()}warnForMissingExports(){for(const e of this.modules)for(const n of e.importDescriptions.values())if(n.name!=="*"){const[s,r]=n.module.getVariableForExportName(n.name);s||e.log(Ee,hi(n.name,e.id,n.module.id,!!r?.missingButExportExists),n.start)}}}function n1(t,e){return e()}function s1(t,e,n,s){t=Ml("onLog",t);const r=Bn[s],i=(a,l,c=Uu)=>{if(ih(l),!(Bn[a]<r)){for(const u of t){if(c.has(u))continue;const{onLog:d}=u,m=f=>Bn[f]<r?Mt:g=>i(f,Zt(g),new Set(c).add(u));if(("handler"in d?d.handler:d).call({debug:m(Qs),error:f=>oe(Zt(f)),info:m(Fn),meta:{rollupVersion:Jo,watchMode:n},warn:m(Ee)},a,l)===!1)return}e(a,l)}};return i}const Nt=t=>()=>oe(function(e){return{code:"NO_FS_IN_BROWSER",message:`Cannot access the file system (via "${e}") when using the browser build of Rollup. Make sure you supply a plugin with custom resolveId and load hooks to Rollup.`,url:ot("plugin-development/#a-simple-example")}}(t)),qy=Nt("fs.appendFile"),Hy=Nt("fs.copyFile"),Gy=Nt("fs.mkdir"),Wy=Nt("fs.mkdtemp"),Xy=Nt("fs.readdir"),Ky=Nt("fs.readFile"),Jy=Nt("fs.realpath"),Yy=Nt("fs.rename"),Qy=Nt("fs.rmdir"),Zy=Nt("fs.stat"),eb=Nt("fs.lstat"),tb=Nt("fs.unlink"),nb=Nt("fs.writeFile");var sb=Object.freeze({__proto__:null,appendFile:qy,copyFile:Hy,lstat:eb,mkdir:Gy,mkdtemp:Wy,readFile:Ky,readdir:Xy,realpath:Jy,rename:Yy,rmdir:Qy,stat:Zy,unlink:tb,writeFile:nb});const rb=t=>t.cache===!0?void 0:t.cache?.cache||t.cache,ib=t=>{if(t===!0)return()=>!0;if(typeof t=="function")return(e,...n)=>!e.startsWith("\0")&&t(e,...n)||!1;if(t){const e=new Set,n=[];for(const s of Ol(t))s instanceof RegExp?n.push(s):e.add(s);return(s,...r)=>e.has(s)||n.some(i=>i.test(s))}return()=>!1},ob=t=>{const e=t.input;return e==null?[]:typeof e=="string"?[e]:e},ab=t=>{const e=t.jsx;if(!e)return!1;const n=Tl(e,Ny,"jsx",li,"false, "),{factory:s,importSource:r,mode:i}=n;switch(i){case"automatic":return{factory:s||"React.createElement",importSource:r||"react",jsxImportSource:n.jsxImportSource||"react/jsx-runtime",mode:"automatic"};case"preserve":return!r||s||n.fragment||oe(nt("jsx",li,"when preserving JSX and specifying an importSource, you also need to specify a factory or fragment")),{factory:s||null,fragment:n.fragment||null,importSource:r||null,mode:"preserve"};default:return i&&i!=="classic"&&oe(nt("jsx.mode",li,'mode must be "automatic", "classic" or "preserve"',i)),{factory:s||"React.createElement",fragment:n.fragment||"React.Fragment",importSource:r||null,mode:"classic"}}},lb=t=>{const e=t.maxParallelFileOps;return typeof e=="number"?e<=0?1/0:e:1e3},cb=(t,e)=>{const n=t.moduleContext;if(typeof n=="function")return s=>n(s)??e;if(n){const s=Object.create(null);for(const[r,i]of Object.entries(n))s[At(r)]=i;return r=>s[r]??e}return()=>e},ub=t=>{if(t.treeshake===!1)return!1;const e=Tl(t.treeshake,$y,"treeshake","configuration-options/#treeshake","false, true, ");return{annotations:e.annotations!==!1,correctVarValueBeforeDeclaration:e.correctVarValueBeforeDeclaration===!0,manualPureFunctions:e.manualPureFunctions??Qe,moduleSideEffects:hb(e.moduleSideEffects),propertyReadSideEffects:e.propertyReadSideEffects==="always"?"always":e.propertyReadSideEffects!==!1,tryCatchDeoptimization:e.tryCatchDeoptimization!==!1,unknownGlobalSideEffects:e.unknownGlobalSideEffects!==!1}},hb=t=>{if(typeof t=="boolean")return()=>t;if(t==="no-external")return(e,n)=>!n;if(typeof t=="function")return(e,n)=>!!e.startsWith("\0")||t(e,n)!==!1;if(Array.isArray(t)){const e=new Set(t);return n=>e.has(n)}return t&&oe(nt("treeshake.moduleSideEffects","configuration-options/#treeshake-modulesideeffects",'please use one of false, "no-external", a function or an array')),()=>!0},db=/[\u0000-\u001F"#$%&*+,:;<=>?[\]^`{|}\u007F]/g,pb=/^[a-z]:/i;function fb(t){const e=pb.exec(t),n=e?e[0]:"";return n+t.slice(n.length).replace(db,"_")}const mb=(t,e,n)=>{const{file:s}=t;if(typeof s=="string"){if(e)return oe(nt("output.file",Zs,'you must set "output.dir" instead of "output.file" when using the "output.preserveModules" option'));if(!Array.isArray(n.input))return oe(nt("output.file",Zs,'you must set "output.dir" instead of "output.file" when providing named inputs'))}return s},gb=t=>{const e=t.format;switch(e){case void 0:case"es":case"esm":case"module":return"es";case"cjs":case"commonjs":return"cjs";case"system":case"systemjs":return"system";case"amd":case"iife":case"umd":return e;default:return oe(nt("output.format",eh,'Valid values are "amd", "cjs", "system", "es", "iife" or "umd"',e))}},yb=(t,e)=>{const n=t.inlineDynamicImports||!1,{input:s}=e;return n&&(Array.isArray(s)?s:Object.keys(s)).length>1?oe(nt("output.inlineDynamicImports",th,'multiple inputs are not supported when "output.inlineDynamicImports" is true')):n},bb=(t,e,n)=>{const s=t.preserveModules||!1;if(s){if(e)return oe(nt("output.inlineDynamicImports",th,'this option is not supported for "output.preserveModules"'));if(n.preserveEntrySignatures===!1)return oe(nt("preserveEntrySignatures","configuration-options/#preserveentrysignatures",'setting this option to false is not supported for "output.preserveModules"'))}return s},xb=t=>{const{preserveModulesRoot:e}=t;if(e!=null)return At(e)},kb=t=>{const e={autoId:!1,basePath:"",define:"define",forceJsExtensionForImports:!1,...t.amd};return(e.autoId||e.basePath)&&e.id?oe(nt("output.amd.id",Zu,'this option cannot be used together with "output.amd.autoId"/"output.amd.basePath"')):e.basePath&&!e.autoId?oe(nt("output.amd.basePath","configuration-options/#output-amd-basepath",'this option only works with "output.amd.autoId"')):e.autoId?{autoId:!0,basePath:e.basePath,define:e.define,forceJsExtensionForImports:e.forceJsExtensionForImports}:{autoId:!1,define:e.define,forceJsExtensionForImports:e.forceJsExtensionForImports,id:e.id}},wo=(t,e)=>{const n=t[e];return typeof n=="function"?n:()=>n||""},Eb=(t,e)=>{const{dir:n}=t;return typeof n=="string"&&typeof e=="string"?oe(nt("output.dir",Zs,'you must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks')):n},Ab=(t,e)=>{const n=t.entryFileNames;return n==null&&e.add("entryFileNames"),n??"[name].js"};function wb(t,e){const n=t.exports;if(n==null)e.add("exports");else if(!["default","named","none","auto"].includes(n))return oe({code:oh,message:`"output.exports" must be "default", "named", "none", "auto", or left unspecified (defaults to "auto"), received "${n}".`,url:ot(ca)});return n||"auto"}const Sb=(t,e)=>(t.externalImportAssertions!=null&&jn('The "output.externalImportAssertions" option is deprecated. Use the "output.externalImportAttributes" option instead.',"configuration-options/#output-externalimportattributes",!0,e),t.externalImportAttributes??t.externalImportAssertions??!0),Ib=t=>{const e=Tl(t.generatedCode,Cy,"output.generatedCode","configuration-options/#output-generatedcode","");return{arrowFunctions:e.arrowFunctions===!0,constBindings:e.constBindings===!0,objectShorthand:e.objectShorthand===!0,reservedNamesAsProps:e.reservedNamesAsProps!==!1,symbols:e.symbols===!0}},vb=(t,e)=>{if(e)return"";const n=t.indent;return n===!1?"":n??!0},r1=new Set(["compat","auto","esModule","default","defaultOnly"]),_b=t=>{const e=t.interop;if(typeof e=="function"){const n=Object.create(null);let s=null;return r=>r===null?s||Fl(s=e(r)):r in n?n[r]:Fl(n[r]=e(r))}return e===void 0?()=>"default":()=>Fl(e)},Fl=t=>r1.has(t)?t:oe(nt("output.interop",ua,`use one of ${Array.from(r1,e=>JSON.stringify(e)).join(", ")}`,t)),Pb=(t,e,n)=>{const s=t.manualChunks;if(s){if(e)return oe(nt("output.manualChunks",nh,'this option is not supported for "output.inlineDynamicImports"'));if(n)return oe(nt("output.manualChunks",nh,'this option is not supported for "output.preserveModules"'))}return s||{}},$b=(t,e,n)=>t.minifyInternalExports??(n||e==="es"||e==="system"),Nb=(t,e)=>{const n=t.sourcemapFileNames;return n==null&&e.add("sourcemapFileNames"),n},Cb=t=>{const{sourcemapBaseUrl:e}=t;if(e)return function(s){try{new URL(s)}catch{return!1}return!0}(e)?(n=e).endsWith("/")?n:n+"/":oe(nt("output.sourcemapBaseUrl","configuration-options/#output-sourcemapbaseurl",`must be a valid URL, received ${JSON.stringify(e)}`));var n};function Tb(t){return async function(e,n){const{options:s,unsetOptions:r}=await async function(c,u){if(!c)throw new Error("You must supply an options object to rollup");const d=await async function(g,w){const k=Ml("options",await Ao(g.plugins)),I=g.logLevel||Fn,E=s1(k,Vp(g,I),w,I);for(const b of k){const{name:A,options:v}=b,$="handler"in v?v.handler:v,D=await $.call({debug:Ls(Qs,"PLUGIN_LOG",E,A,I),error:j=>oe(er(Zt(j),A,{hook:"onLog"})),info:Ls(Fn,"PLUGIN_LOG",E,A,I),meta:{rollupVersion:Jo,watchMode:w},warn:Ls(Ee,"PLUGIN_WARNING",E,A,I)},g);D&&(g=D)}return g}(c,u),{options:m,unsetOptions:f}=await async function(g,w){const k=new Set,I=g.context??"undefined",E=await Ao(g.plugins),b=g.logLevel||Fn,A=s1(E,Vp(g,b),w,b),v=g.strictDeprecations||!1,$=lb(g),D={cache:rb(g),context:I,experimentalCacheExpiry:g.experimentalCacheExpiry??10,experimentalLogSideEffects:g.experimentalLogSideEffects||!1,external:ib(g.external),fs:g.fs??sb,input:ob(g),jsx:ab(g),logLevel:b,makeAbsoluteExternalsRelative:g.makeAbsoluteExternalsRelative??"ifRelativeSource",maxParallelFileOps:$,moduleContext:cb(g,I),onLog:A,perf:g.perf||!1,plugins:E,preserveEntrySignatures:g.preserveEntrySignatures??"exports-only",preserveSymlinks:g.preserveSymlinks||!1,shimMissingExports:g.shimMissingExports||!1,strictDeprecations:v,treeshake:ub(g)};return qp(g,[...Object.keys(D),"onwarn","watch"],"input options",A,/^(output)$/),{options:D,unsetOptions:k}}(d,u);return i1(m.plugins,Nl),{options:m,unsetOptions:f}}(e,n!==null);(function(c){c.perf?($r=new Map,ct=ey,at=ty,c.plugins=c.plugins.map(ry)):(ct=Mt,at=Mt)})(s),await async function(){await Td()}();const i=new Uy(s,n),a=e.cache!==!1;e.cache&&(s.cache=void 0,e.cache=void 0),ct("BUILD",1),await n1(i.pluginDriver,async()=>{try{ct("initialize",2),await i.pluginDriver.hookParallel("buildStart",[s]),at("initialize",2),await i.build()}catch(c){const u=Object.keys(i.watchFiles);u.length>0&&(c.watchFiles=u);try{await i.pluginDriver.hookParallel("buildEnd",[c])}catch(d){const m=xs({...c,message:`There was an error during the build:
59
59
  ${c.message}
60
60
  Additionally, handling the error in the 'buildEnd' hook caused the following error:
61
- ${d.message}`});throw await r.pluginDriver.hookParallel("closeBundle",[m]),m}throw await r.pluginDriver.hookParallel("closeBundle",[c]),c}try{await r.pluginDriver.hookParallel("buildEnd",[])}catch(c){throw await r.pluginDriver.hookParallel("closeBundle",[c]),c}}),at("BUILD",1);const l={cache:a?r.getCache():void 0,async close(){l.closed||(l.closed=!0,await r.pluginDriver.hookParallel("closeBundle",[]))},closed:!1,async[Symbol.asyncDispose](){await this.close()},generate:async c=>l.closed?oe({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):i1(!1,s,i,c,r),get watchFiles(){return Object.keys(r.watchFiles)},write:async c=>l.closed?oe({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):i1(!0,s,i,c,r)};return s.perf&&(l.getTimings=ey),l}(t,null)}function s1(t,e){for(const[n,s]of t.entries())s.name||(s.name=`${e}${n+1}`)}async function i1(t,e,n,s,i){const{options:r,outputPluginDriver:a,unsetOptions:l}=await async function(c,u,d,m){if(!c)throw new Error("You must supply an options object");const f=await Ao(c.plugins);s1(f,Cl);const g=u.createOutputPluginDriver(f);return{...await Cb(d,m,c,g),outputPluginDriver:g}}(s,i.pluginDriver,e,n);return e1(0,async()=>{const c=new Ay(r,l,e,a,i),u=await c.generate(t);if(t){if(ct("WRITE",1),!r.dir&&!r.file)return oe({code:"MISSING_OPTION",message:'You must specify "output.file" or "output.dir" for the build.',url:ot(Qs)});await Promise.all(Object.values(u).map(m=>i.fileOperationQueue.run(()=>async function(f,g,{fs:{mkdir:E,writeFile:k}}){const I=At(g.dir||ln(g.file),f.fileName);return await E(ln(I),{recursive:!0}),k(I,f.type==="asset"?f.source:f.code)}(m,r,e)))),await a.hookParallel("writeBundle",[r,u]),at("WRITE",1)}return d=u,{output:Object.values(d).filter(m=>Object.keys(m).length>0).sort((m,f)=>r1(m)-r1(f))};var d})}function Cb(t,e,n,s){return async function(i,r,a){const l=new Set(a),c=i.compact||!1,u=fb(i),d=mb(i,r),m=gb(i,d,r),f=pb(i,m,r),g=wb(i),E=Ab(i,r),k={amd:bb(i),assetFileNames:i.assetFileNames??"assets/[name]-[hash][extname]",banner:wo(i,"banner"),chunkFileNames:i.chunkFileNames??"[name]-[hash].js",compact:c,dir:xb(i,f),dynamicImportInCjs:i.dynamicImportInCjs??!0,entryFileNames:kb(i,l),esModule:i.esModule??"if-default-prop",experimentalMinChunkSize:i.experimentalMinChunkSize??1,exports:Eb(i,l),extend:i.extend||!1,externalImportAssertions:E,externalImportAttributes:E,externalLiveBindings:i.externalLiveBindings??!0,file:f,footer:wo(i,"footer"),format:u,freeze:i.freeze??!0,generatedCode:g,globals:i.globals||{},hashCharacters:i.hashCharacters??"base64",hoistTransitiveImports:i.hoistTransitiveImports??!0,importAttributesKey:i.importAttributesKey??"assert",indent:Sb(i,c),inlineDynamicImports:d,interop:Ib(i),intro:wo(i,"intro"),manualChunks:vb(i,d,m),minifyInternalExports:_b(i,u,c),name:i.name,noConflict:i.noConflict||!1,outro:wo(i,"outro"),paths:i.paths||{},plugins:await Ao(i.plugins),preserveModules:m,preserveModulesRoot:yb(i),reexportProtoFromExternal:i.reexportProtoFromExternal??!0,sanitizeFileName:typeof i.sanitizeFileName=="function"?i.sanitizeFileName:i.sanitizeFileName===!1?I=>I:db,sourcemap:i.sourcemap||!1,sourcemapBaseUrl:$b(i),sourcemapDebugIds:i.sourcemapDebugIds||!1,sourcemapExcludeSources:i.sourcemapExcludeSources||!1,sourcemapFile:i.sourcemapFile,sourcemapFileNames:Pb(i,l),sourcemapIgnoreList:typeof i.sourcemapIgnoreList=="function"?i.sourcemapIgnoreList:i.sourcemapIgnoreList===!1?()=>!1:I=>I.includes("node_modules"),sourcemapPathTransform:i.sourcemapPathTransform,strict:i.strict??!0,systemNullSetters:i.systemNullSetters??!0,validate:i.validate||!1,virtualDirname:i.virtualDirname||"_virtual"};return Vp(i,Object.keys(k),"output options",r.onLog),{options:k,unsetOptions:l}}(s.hookReduceArg0Sync("outputOptions",[n],(i,r)=>r||i,i=>{const r=()=>i.error({code:"CANNOT_EMIT_FROM_OPTIONS_HOOK",message:'Cannot emit files or set asset sources in the "outputOptions" hook, use the "renderStart" hook instead.'});return{...i,emitFile:r,setAssetSource:r}}),t,e)}var Pi;function r1(t){return t.type==="asset"?Pi.ASSET:t.isEntry?Pi.ENTRY_CHUNK:Pi.SECONDARY_CHUNK}Symbol.asyncDispose??=Symbol("Symbol.asyncDispose"),function(t){t[t.ENTRY_CHUNK=0]="ENTRY_CHUNK",t[t.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",t[t.ASSET=2]="ASSET"}(Pi||(Pi={}));const Tb=t=>t.length!==32||!/^[0-9a-f]{32}$/i.test(t)?!1:t[12]==="4",Rb=()=>typeof globalThis.crypto<"u"?globalThis.crypto:require("node:crypto").webcrypto,Db=Rb(),o1=()=>{const t=new Uint8Array(16);return Db.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128,Array.from(t,e=>e.toString(16).padStart(2,"0")).join("")},Ob=()=>o1().substring(0,8),a1=(t,e)=>{if(t&&t.files)for(const n of Object.keys(t.files)){const s=t.files[n];if(s.name===e)return s.text}return null},Lb=t=>{const e={};if(!t)return e;for(const n of Object.values(t))e[n.name]=n.text;return e},Mb=t=>Object.entries(t).reduce((e,[n,s])=>(e[Ob()]={name:n,text:s},e),{});var S;(function(t){t[t.NONE=0]="NONE";const n=1;t[t._abstract=n]="_abstract";const s=n+1;t[t._accessor=s]="_accessor";const i=s+1;t[t._as=i]="_as";const r=i+1;t[t._assert=r]="_assert";const a=r+1;t[t._asserts=a]="_asserts";const l=a+1;t[t._async=l]="_async";const c=l+1;t[t._await=c]="_await";const u=c+1;t[t._checks=u]="_checks";const d=u+1;t[t._constructor=d]="_constructor";const m=d+1;t[t._declare=m]="_declare";const f=m+1;t[t._enum=f]="_enum";const g=f+1;t[t._exports=g]="_exports";const E=g+1;t[t._from=E]="_from";const k=E+1;t[t._get=k]="_get";const I=k+1;t[t._global=I]="_global";const A=I+1;t[t._implements=A]="_implements";const x=A+1;t[t._infer=x]="_infer";const w=x+1;t[t._interface=w]="_interface";const v=w+1;t[t._is=v]="_is";const $=v+1;t[t._keyof=$]="_keyof";const D=$+1;t[t._mixins=D]="_mixins";const j=D+1;t[t._module=j]="_module";const V=j+1;t[t._namespace=V]="_namespace";const U=V+1;t[t._of=U]="_of";const O=U+1;t[t._opaque=O]="_opaque";const _=O+1;t[t._out=_]="_out";const N=_+1;t[t._override=N]="_override";const C=N+1;t[t._private=C]="_private";const R=C+1;t[t._protected=R]="_protected";const M=R+1;t[t._proto=M]="_proto";const q=M+1;t[t._public=q]="_public";const K=q+1;t[t._readonly=K]="_readonly";const X=K+1;t[t._require=X]="_require";const ae=X+1;t[t._satisfies=ae]="_satisfies";const T=ae+1;t[t._set=T]="_set";const de=T+1;t[t._static=de]="_static";const he=de+1;t[t._symbol=he]="_symbol";const ce=he+1;t[t._type=ce]="_type";const L=ce+1;t[t._unique=L]="_unique";const b=L+1;t[t._using=b]="_using"})(S||(S={}));var o;(function(t){t[t.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";const n=16;t[t.IS_KEYWORD=n]="IS_KEYWORD";const s=32;t[t.IS_ASSIGN=s]="IS_ASSIGN";const i=64;t[t.IS_RIGHT_ASSOCIATIVE=i]="IS_RIGHT_ASSOCIATIVE";const r=128;t[t.IS_PREFIX=r]="IS_PREFIX";const a=256;t[t.IS_POSTFIX=a]="IS_POSTFIX";const l=512;t[t.IS_EXPRESSION_START=l]="IS_EXPRESSION_START";const c=512;t[t.num=c]="num";const u=1536;t[t.bigint=u]="bigint";const d=2560;t[t.decimal=d]="decimal";const m=3584;t[t.regexp=m]="regexp";const f=4608;t[t.string=f]="string";const g=5632;t[t.name=g]="name";const E=6144;t[t.eof=E]="eof";const k=7680;t[t.bracketL=k]="bracketL";const I=8192;t[t.bracketR=I]="bracketR";const A=9728;t[t.braceL=A]="braceL";const x=10752;t[t.braceBarL=x]="braceBarL";const w=11264;t[t.braceR=w]="braceR";const v=12288;t[t.braceBarR=v]="braceBarR";const $=13824;t[t.parenL=$]="parenL";const D=14336;t[t.parenR=D]="parenR";const j=15360;t[t.comma=j]="comma";const V=16384;t[t.semi=V]="semi";const U=17408;t[t.colon=U]="colon";const O=18432;t[t.doubleColon=O]="doubleColon";const _=19456;t[t.dot=_]="dot";const N=20480;t[t.question=N]="question";const C=21504;t[t.questionDot=C]="questionDot";const R=22528;t[t.arrow=R]="arrow";const M=23552;t[t.template=M]="template";const q=24576;t[t.ellipsis=q]="ellipsis";const K=25600;t[t.backQuote=K]="backQuote";const X=27136;t[t.dollarBraceL=X]="dollarBraceL";const ae=27648;t[t.at=ae]="at";const T=29184;t[t.hash=T]="hash";const de=29728;t[t.eq=de]="eq";const he=30752;t[t.assign=he]="assign";const ce=32640;t[t.preIncDec=ce]="preIncDec";const L=33664;t[t.postIncDec=L]="postIncDec";const b=34432;t[t.bang=b]="bang";const F=35456;t[t.tilde=F]="tilde";const B=35841;t[t.pipeline=B]="pipeline";const J=36866;t[t.nullishCoalescing=J]="nullishCoalescing";const ee=37890;t[t.logicalOR=ee]="logicalOR";const re=38915;t[t.logicalAND=re]="logicalAND";const se=39940;t[t.bitwiseOR=se]="bitwiseOR";const ke=40965;t[t.bitwiseXOR=ke]="bitwiseXOR";const ye=41990;t[t.bitwiseAND=ye]="bitwiseAND";const be=43015;t[t.equality=be]="equality";const fe=44040;t[t.lessThan=fe]="lessThan";const Oe=45064;t[t.greaterThan=Oe]="greaterThan";const qe=46088;t[t.relationalOrEqual=qe]="relationalOrEqual";const ne=47113;t[t.bitShiftL=ne]="bitShiftL";const we=48137;t[t.bitShiftR=we]="bitShiftR";const Z=49802;t[t.plus=Z]="plus";const Se=50826;t[t.minus=Se]="minus";const Xe=51723;t[t.modulo=Xe]="modulo";const lt=52235;t[t.star=lt]="star";const Ye=53259;t[t.slash=Ye]="slash";const bn=54348;t[t.exponent=bn]="exponent";const on=55296;t[t.jsxName=on]="jsxName";const Yi=56320;t[t.jsxText=Yi]="jsxText";const jc=57344;t[t.jsxEmptyText=jc]="jsxEmptyText";const zc=58880;t[t.jsxTagStart=zc]="jsxTagStart";const Vc=59392;t[t.jsxTagEnd=Vc]="jsxTagEnd";const Uc=60928;t[t.typeParameterStart=Uc]="typeParameterStart";const qc=61440;t[t.nonNullAssertion=qc]="nonNullAssertion";const Hc=62480;t[t._break=Hc]="_break";const Gc=63504;t[t._case=Gc]="_case";const Wc=64528;t[t._catch=Wc]="_catch";const Xc=65552;t[t._continue=Xc]="_continue";const Kc=66576;t[t._debugger=Kc]="_debugger";const Jc=67600;t[t._default=Jc]="_default";const Yc=68624;t[t._do=Yc]="_do";const Qc=69648;t[t._else=Qc]="_else";const Zc=70672;t[t._finally=Zc]="_finally";const eu=71696;t[t._for=eu]="_for";const tu=73232;t[t._function=tu]="_function";const nu=73744;t[t._if=nu]="_if";const su=74768;t[t._return=su]="_return";const iu=75792;t[t._switch=iu]="_switch";const ru=77456;t[t._throw=ru]="_throw";const ou=77840;t[t._try=ou]="_try";const au=78864;t[t._var=au]="_var";const lu=79888;t[t._let=lu]="_let";const cu=80912;t[t._const=cu]="_const";const uu=81936;t[t._while=uu]="_while";const hu=82960;t[t._with=hu]="_with";const du=84496;t[t._new=du]="_new";const pu=85520;t[t._this=pu]="_this";const fu=86544;t[t._super=fu]="_super";const mu=87568;t[t._class=mu]="_class";const gu=88080;t[t._extends=gu]="_extends";const yu=89104;t[t._export=yu]="_export";const bu=90640;t[t._import=bu]="_import";const xu=91664;t[t._yield=xu]="_yield";const ku=92688;t[t._null=ku]="_null";const Eu=93712;t[t._true=Eu]="_true";const Au=94736;t[t._false=Au]="_false";const wu=95256;t[t._in=wu]="_in";const Su=96280;t[t._instanceof=Su]="_instanceof";const Iu=97936;t[t._typeof=Iu]="_typeof";const vu=98960;t[t._void=vu]="_void";const _S=99984;t[t._delete=_S]="_delete";const PS=100880;t[t._async=PS]="_async";const $S=101904;t[t._get=$S]="_get";const NS=102928;t[t._set=NS]="_set";const CS=103952;t[t._declare=CS]="_declare";const TS=104976;t[t._readonly=TS]="_readonly";const RS=106e3;t[t._abstract=RS]="_abstract";const DS=107024;t[t._static=DS]="_static";const OS=107536;t[t._public=OS]="_public";const LS=108560;t[t._private=LS]="_private";const MS=109584;t[t._protected=MS]="_protected";const FS=110608;t[t._override=FS]="_override";const BS=112144;t[t._as=BS]="_as";const jS=113168;t[t._enum=jS]="_enum";const zS=114192;t[t._type=zS]="_type";const VS=115216;t[t._implements=VS]="_implements"})(o||(o={}));function Fb(t){switch(t){case o.num:return"num";case o.bigint:return"bigint";case o.decimal:return"decimal";case o.regexp:return"regexp";case o.string:return"string";case o.name:return"name";case o.eof:return"eof";case o.bracketL:return"[";case o.bracketR:return"]";case o.braceL:return"{";case o.braceBarL:return"{|";case o.braceR:return"}";case o.braceBarR:return"|}";case o.parenL:return"(";case o.parenR:return")";case o.comma:return",";case o.semi:return";";case o.colon:return":";case o.doubleColon:return"::";case o.dot:return".";case o.question:return"?";case o.questionDot:return"?.";case o.arrow:return"=>";case o.template:return"template";case o.ellipsis:return"...";case o.backQuote:return"`";case o.dollarBraceL:return"${";case o.at:return"@";case o.hash:return"#";case o.eq:return"=";case o.assign:return"_=";case o.preIncDec:return"++/--";case o.postIncDec:return"++/--";case o.bang:return"!";case o.tilde:return"~";case o.pipeline:return"|>";case o.nullishCoalescing:return"??";case o.logicalOR:return"||";case o.logicalAND:return"&&";case o.bitwiseOR:return"|";case o.bitwiseXOR:return"^";case o.bitwiseAND:return"&";case o.equality:return"==/!=";case o.lessThan:return"<";case o.greaterThan:return">";case o.relationalOrEqual:return"<=/>=";case o.bitShiftL:return"<<";case o.bitShiftR:return">>/>>>";case o.plus:return"+";case o.minus:return"-";case o.modulo:return"%";case o.star:return"*";case o.slash:return"/";case o.exponent:return"**";case o.jsxName:return"jsxName";case o.jsxText:return"jsxText";case o.jsxEmptyText:return"jsxEmptyText";case o.jsxTagStart:return"jsxTagStart";case o.jsxTagEnd:return"jsxTagEnd";case o.typeParameterStart:return"typeParameterStart";case o.nonNullAssertion:return"nonNullAssertion";case o._break:return"break";case o._case:return"case";case o._catch:return"catch";case o._continue:return"continue";case o._debugger:return"debugger";case o._default:return"default";case o._do:return"do";case o._else:return"else";case o._finally:return"finally";case o._for:return"for";case o._function:return"function";case o._if:return"if";case o._return:return"return";case o._switch:return"switch";case o._throw:return"throw";case o._try:return"try";case o._var:return"var";case o._let:return"let";case o._const:return"const";case o._while:return"while";case o._with:return"with";case o._new:return"new";case o._this:return"this";case o._super:return"super";case o._class:return"class";case o._extends:return"extends";case o._export:return"export";case o._import:return"import";case o._yield:return"yield";case o._null:return"null";case o._true:return"true";case o._false:return"false";case o._in:return"in";case o._instanceof:return"instanceof";case o._typeof:return"typeof";case o._void:return"void";case o._delete:return"delete";case o._async:return"async";case o._get:return"get";case o._set:return"set";case o._declare:return"declare";case o._readonly:return"readonly";case o._abstract:return"abstract";case o._static:return"static";case o._public:return"public";case o._private:return"private";case o._protected:return"protected";case o._override:return"override";case o._as:return"as";case o._enum:return"enum";case o._type:return"type";case o._implements:return"implements";default:return""}}class en{constructor(e,n,s){this.startTokenIndex=e,this.endTokenIndex=n,this.isFunctionScope=s}}class Bb{constructor(e,n,s,i,r,a,l,c,u,d,m,f,g){this.potentialArrowAt=e,this.noAnonFunctionType=n,this.inDisallowConditionalTypesContext=s,this.tokensLength=i,this.scopesLength=r,this.pos=a,this.type=l,this.contextualKeyword=c,this.start=u,this.end=d,this.isType=m,this.scopeDepth=f,this.error=g}}class kt{constructor(){kt.prototype.__init.call(this),kt.prototype.__init2.call(this),kt.prototype.__init3.call(this),kt.prototype.__init4.call(this),kt.prototype.__init5.call(this),kt.prototype.__init6.call(this),kt.prototype.__init7.call(this),kt.prototype.__init8.call(this),kt.prototype.__init9.call(this),kt.prototype.__init10.call(this),kt.prototype.__init11.call(this),kt.prototype.__init12.call(this),kt.prototype.__init13.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.inDisallowConditionalTypesContext=!1}__init4(){this.tokens=[]}__init5(){this.scopes=[]}__init6(){this.pos=0}__init7(){this.type=o.eof}__init8(){this.contextualKeyword=S.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new Bb(this.potentialArrowAt,this.noAnonFunctionType,this.inDisallowConditionalTypesContext,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(e){this.potentialArrowAt=e.potentialArrowAt,this.noAnonFunctionType=e.noAnonFunctionType,this.inDisallowConditionalTypesContext=e.inDisallowConditionalTypesContext,this.tokens.length=e.tokensLength,this.scopes.length=e.scopesLength,this.pos=e.pos,this.type=e.type,this.contextualKeyword=e.contextualKeyword,this.start=e.start,this.end=e.end,this.isType=e.isType,this.scopeDepth=e.scopeDepth,this.error=e.error}}var P;(function(t){t[t.backSpace=8]="backSpace";const n=10;t[t.lineFeed=n]="lineFeed";const s=9;t[t.tab=s]="tab";const i=13;t[t.carriageReturn=i]="carriageReturn";const r=14;t[t.shiftOut=r]="shiftOut";const a=32;t[t.space=a]="space";const l=33;t[t.exclamationMark=l]="exclamationMark";const c=34;t[t.quotationMark=c]="quotationMark";const u=35;t[t.numberSign=u]="numberSign";const d=36;t[t.dollarSign=d]="dollarSign";const m=37;t[t.percentSign=m]="percentSign";const f=38;t[t.ampersand=f]="ampersand";const g=39;t[t.apostrophe=g]="apostrophe";const E=40;t[t.leftParenthesis=E]="leftParenthesis";const k=41;t[t.rightParenthesis=k]="rightParenthesis";const I=42;t[t.asterisk=I]="asterisk";const A=43;t[t.plusSign=A]="plusSign";const x=44;t[t.comma=x]="comma";const w=45;t[t.dash=w]="dash";const v=46;t[t.dot=v]="dot";const $=47;t[t.slash=$]="slash";const D=48;t[t.digit0=D]="digit0";const j=49;t[t.digit1=j]="digit1";const V=50;t[t.digit2=V]="digit2";const U=51;t[t.digit3=U]="digit3";const O=52;t[t.digit4=O]="digit4";const _=53;t[t.digit5=_]="digit5";const N=54;t[t.digit6=N]="digit6";const C=55;t[t.digit7=C]="digit7";const R=56;t[t.digit8=R]="digit8";const M=57;t[t.digit9=M]="digit9";const q=58;t[t.colon=q]="colon";const K=59;t[t.semicolon=K]="semicolon";const X=60;t[t.lessThan=X]="lessThan";const ae=61;t[t.equalsTo=ae]="equalsTo";const T=62;t[t.greaterThan=T]="greaterThan";const de=63;t[t.questionMark=de]="questionMark";const he=64;t[t.atSign=he]="atSign";const ce=65;t[t.uppercaseA=ce]="uppercaseA";const L=66;t[t.uppercaseB=L]="uppercaseB";const b=67;t[t.uppercaseC=b]="uppercaseC";const F=68;t[t.uppercaseD=F]="uppercaseD";const B=69;t[t.uppercaseE=B]="uppercaseE";const J=70;t[t.uppercaseF=J]="uppercaseF";const ee=71;t[t.uppercaseG=ee]="uppercaseG";const re=72;t[t.uppercaseH=re]="uppercaseH";const se=73;t[t.uppercaseI=se]="uppercaseI";const ke=74;t[t.uppercaseJ=ke]="uppercaseJ";const ye=75;t[t.uppercaseK=ye]="uppercaseK";const be=76;t[t.uppercaseL=be]="uppercaseL";const fe=77;t[t.uppercaseM=fe]="uppercaseM";const Oe=78;t[t.uppercaseN=Oe]="uppercaseN";const qe=79;t[t.uppercaseO=qe]="uppercaseO";const ne=80;t[t.uppercaseP=ne]="uppercaseP";const we=81;t[t.uppercaseQ=we]="uppercaseQ";const Z=82;t[t.uppercaseR=Z]="uppercaseR";const Se=83;t[t.uppercaseS=Se]="uppercaseS";const Xe=84;t[t.uppercaseT=Xe]="uppercaseT";const lt=85;t[t.uppercaseU=lt]="uppercaseU";const Ye=86;t[t.uppercaseV=Ye]="uppercaseV";const bn=87;t[t.uppercaseW=bn]="uppercaseW";const on=88;t[t.uppercaseX=on]="uppercaseX";const Yi=89;t[t.uppercaseY=Yi]="uppercaseY";const jc=90;t[t.uppercaseZ=jc]="uppercaseZ";const zc=91;t[t.leftSquareBracket=zc]="leftSquareBracket";const Vc=92;t[t.backslash=Vc]="backslash";const Uc=93;t[t.rightSquareBracket=Uc]="rightSquareBracket";const qc=94;t[t.caret=qc]="caret";const Hc=95;t[t.underscore=Hc]="underscore";const Gc=96;t[t.graveAccent=Gc]="graveAccent";const Wc=97;t[t.lowercaseA=Wc]="lowercaseA";const Xc=98;t[t.lowercaseB=Xc]="lowercaseB";const Kc=99;t[t.lowercaseC=Kc]="lowercaseC";const Jc=100;t[t.lowercaseD=Jc]="lowercaseD";const Yc=101;t[t.lowercaseE=Yc]="lowercaseE";const Qc=102;t[t.lowercaseF=Qc]="lowercaseF";const Zc=103;t[t.lowercaseG=Zc]="lowercaseG";const eu=104;t[t.lowercaseH=eu]="lowercaseH";const tu=105;t[t.lowercaseI=tu]="lowercaseI";const nu=106;t[t.lowercaseJ=nu]="lowercaseJ";const su=107;t[t.lowercaseK=su]="lowercaseK";const iu=108;t[t.lowercaseL=iu]="lowercaseL";const ru=109;t[t.lowercaseM=ru]="lowercaseM";const ou=110;t[t.lowercaseN=ou]="lowercaseN";const au=111;t[t.lowercaseO=au]="lowercaseO";const lu=112;t[t.lowercaseP=lu]="lowercaseP";const cu=113;t[t.lowercaseQ=cu]="lowercaseQ";const uu=114;t[t.lowercaseR=uu]="lowercaseR";const hu=115;t[t.lowercaseS=hu]="lowercaseS";const du=116;t[t.lowercaseT=du]="lowercaseT";const pu=117;t[t.lowercaseU=pu]="lowercaseU";const fu=118;t[t.lowercaseV=fu]="lowercaseV";const mu=119;t[t.lowercaseW=mu]="lowercaseW";const gu=120;t[t.lowercaseX=gu]="lowercaseX";const yu=121;t[t.lowercaseY=yu]="lowercaseY";const bu=122;t[t.lowercaseZ=bu]="lowercaseZ";const xu=123;t[t.leftCurlyBrace=xu]="leftCurlyBrace";const ku=124;t[t.verticalBar=ku]="verticalBar";const Eu=125;t[t.rightCurlyBrace=Eu]="rightCurlyBrace";const Au=126;t[t.tilde=Au]="tilde";const wu=160;t[t.nonBreakingSpace=wu]="nonBreakingSpace";const Su=5760;t[t.oghamSpaceMark=Su]="oghamSpaceMark";const Iu=8232;t[t.lineSeparator=Iu]="lineSeparator";const vu=8233;t[t.paragraphSeparator=vu]="paragraphSeparator"})(P||(P={}));let So,De,Be,h,ie,l1;function $i(){return l1++}function jb(t){if("pos"in t){const e=Vb(t.pos);t.message+=` (${e.line}:${e.column})`,t.loc=e}return t}class zb{constructor(e,n){this.line=e,this.column=n}}function Vb(t){let e=1,n=1;for(let s=0;s<t;s++)ie.charCodeAt(s)===P.lineFeed?(e++,n=1):n++;return new zb(e,n)}function Ub(t,e,n,s){ie=t,h=new kt,l1=1,So=e,De=n,Be=s}function me(t){return h.contextualKeyword===t}function Bl(t){const e=Ci();return e.type===o.name&&e.contextualKeyword===t}function ut(t){return h.contextualKeyword===t&&z(o.name)}function it(t){ut(t)||Ie()}function Ct(){return y(o.eof)||y(o.braceR)||Et()}function Et(){const t=h.tokens[h.tokens.length-1],e=t?t.end:0;for(let n=e;n<h.start;n++){const s=ie.charCodeAt(n);if(s===P.lineFeed||s===P.carriageReturn||s===8232||s===8233)return!0}return!1}function c1(){const t=jl();for(let e=h.end;e<t;e++){const n=ie.charCodeAt(e);if(n===P.lineFeed||n===P.carriageReturn||n===8232||n===8233)return!0}return!1}function tn(){return z(o.semi)||Ct()}function Je(){tn()||Ie('Unexpected token, expected ";"')}function H(t){z(t)||Ie(`Unexpected token, expected "${Fb(t)}"`)}function Ie(t="Unexpected token",e=h.start){if(h.error)return;const n=new SyntaxError(t);n.pos=e,h.error=n,h.pos=ie.length,ve(o.eof)}const u1=[9,11,12,P.space,P.nonBreakingSpace,P.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],h1=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,d1=new Uint8Array(65536);for(const t of u1)d1[t]=1;function qb(t){if(t<48)return t===36;if(t<58)return!0;if(t<65)return!1;if(t<91)return!0;if(t<97)return t===95;if(t<123)return!0;if(t<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const jt=new Uint8Array(65536);for(let t=0;t<128;t++)jt[t]=qb(t)?1:0;for(let t=128;t<65536;t++)jt[t]=1;for(const t of u1)jt[t]=0;jt[8232]=0,jt[8233]=0;const Ni=jt.slice();for(let t=P.digit0;t<=P.digit9;t++)Ni[t]=0;const p1=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,189,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,216,-1,-1,-1,-1,-1,-1,S._abstract<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,270,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,297,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,324,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,351,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,378,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,405,-1,-1,-1,-1,-1,-1,-1,-1,S._accessor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._as<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,459,-1,-1,-1,-1,-1,594,-1,-1,-1,-1,-1,-1,486,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,513,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,540,-1,-1,-1,-1,-1,-1,S._assert<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,567,-1,-1,-1,-1,-1,-1,-1,S._asserts<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,621,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,648,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._async<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,702,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,729,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,756,-1,-1,-1,-1,-1,-1,S._await<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,810,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,837,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,864,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,891,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._break<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,945,-1,-1,-1,-1,-1,-1,1107,-1,-1,-1,1242,-1,-1,1350,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,972,1026,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,999,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._case<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1053,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1080,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._catch<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1134,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1161,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1188,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1215,-1,-1,-1,-1,-1,-1,-1,S._checks<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1269,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1296,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1323,-1,-1,-1,-1,-1,-1,-1,(o._class<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1377,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1404,1620,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1431,-1,-1,-1,-1,-1,-1,(o._const<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1458,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1485,-1,-1,-1,-1,-1,-1,-1,-1,1512,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1539,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1566,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1593,-1,-1,-1,-1,-1,-1,-1,-1,S._constructor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1647,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1674,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1701,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1728,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._continue<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1782,-1,-1,-1,-1,-1,-1,-1,-1,-1,2349,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1809,1971,-1,-1,2106,-1,-1,-1,-1,-1,2241,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1836,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1863,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1890,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1917,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1944,-1,-1,-1,-1,-1,-1,-1,-1,(o._debugger<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1998,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2025,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2052,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2079,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._declare<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2133,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2160,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2187,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2214,-1,-1,-1,-1,-1,-1,(o._default<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2268,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2295,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2322,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._delete<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._do<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2403,-1,2484,-1,-1,-1,-1,-1,-1,-1,-1,-1,2565,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2430,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2457,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._else<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2511,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2538,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._enum<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2592,-1,-1,-1,2727,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2619,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2646,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2673,-1,-1,-1,-1,-1,-1,(o._export<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2700,-1,-1,-1,-1,-1,-1,-1,S._exports<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2754,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2781,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2808,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2835,-1,-1,-1,-1,-1,-1,-1,(o._extends<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2889,-1,-1,-1,-1,-1,-1,-1,2997,-1,-1,-1,-1,-1,3159,-1,-1,3213,-1,-1,3294,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2916,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2943,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2970,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._false<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3024,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3051,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3078,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3105,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3132,-1,(o._finally<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3186,-1,-1,-1,-1,-1,-1,-1,-1,(o._for<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3240,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3267,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._from<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3321,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3348,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3375,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3402,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3429,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3456,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._function<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3510,-1,-1,-1,-1,-1,-1,3564,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3537,-1,-1,-1,-1,-1,-1,S._get<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3591,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3618,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3645,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3672,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._global<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3726,-1,-1,-1,-1,-1,-1,3753,4077,-1,-1,-1,-1,4590,-1,-1,-1,-1,-1,-1,-1,(o._if<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3780,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3807,-1,-1,3996,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3834,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3861,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3888,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3915,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3942,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3969,-1,-1,-1,-1,-1,-1,-1,S._implements<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4023,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4050,-1,-1,-1,-1,-1,-1,(o._import<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._in<<1)+1,-1,-1,-1,-1,-1,4104,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4185,4401,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4131,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4158,-1,-1,-1,-1,-1,-1,-1,-1,S._infer<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4212,-1,-1,-1,-1,-1,-1,-1,4239,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4266,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4293,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4320,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4347,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4374,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._instanceof<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4428,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4455,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4482,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4509,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4536,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4563,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._interface<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._is<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4644,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4671,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4698,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4725,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._keyof<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4779,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4806,-1,-1,-1,-1,-1,-1,(o._let<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4860,-1,-1,-1,-1,-1,4995,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4887,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4914,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4941,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4968,-1,-1,-1,-1,-1,-1,-1,S._mixins<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5022,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5049,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5076,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5103,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._module<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5157,-1,-1,-1,5373,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5427,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5184,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5211,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5238,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5265,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5292,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5319,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5346,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._namespace<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5400,-1,-1,-1,(o._new<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5454,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5481,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._null<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5535,-1,-1,-1,-1,-1,-1,-1,-1,-1,5562,-1,-1,-1,-1,5697,5751,-1,-1,-1,-1,S._of<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5589,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5616,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5643,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5670,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._opaque<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5724,-1,-1,-1,-1,-1,-1,S._out<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5778,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5805,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5832,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5859,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5886,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5913,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._override<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5967,-1,-1,6345,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5994,-1,-1,-1,-1,-1,6129,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6021,-1,-1,-1,-1,-1,6048,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6075,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6102,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._private<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6156,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6183,-1,-1,-1,-1,-1,-1,-1,-1,-1,6318,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6210,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6237,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6264,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6291,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._protected<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._proto<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6372,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6399,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6426,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6453,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._public<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6507,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6534,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6696,-1,-1,6831,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6561,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6588,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6615,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6642,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6669,-1,S._readonly<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6723,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6750,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6777,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6804,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._require<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6858,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6885,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6912,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._return<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6966,-1,-1,-1,7182,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7236,7371,-1,7479,-1,7614,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6993,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7020,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7047,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7074,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7101,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7128,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7155,-1,-1,-1,-1,-1,-1,-1,S._satisfies<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7209,-1,-1,-1,-1,-1,-1,S._set<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7263,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7290,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7317,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7344,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._static<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7398,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7425,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7452,-1,-1,-1,-1,-1,-1,-1,-1,(o._super<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7506,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7533,-1,-1,-1,-1,-1,-1,-1,-1,-1,7560,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7587,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._switch<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7641,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7668,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7695,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7722,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._symbol<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7776,-1,-1,-1,-1,-1,-1,-1,-1,-1,7938,-1,-1,-1,-1,-1,-1,8046,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7803,-1,-1,-1,-1,-1,-1,-1,-1,7857,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7830,-1,-1,-1,-1,-1,-1,-1,(o._this<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7884,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7911,-1,-1,-1,(o._throw<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7965,-1,-1,-1,8019,-1,-1,-1,-1,-1,-1,7992,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._true<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._try<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8073,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8100,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._type<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8127,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8154,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._typeof<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8208,-1,-1,-1,-1,8343,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8235,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8262,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8289,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8316,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._unique<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8370,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8397,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8424,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._using<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8478,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8532,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8505,-1,-1,-1,-1,-1,-1,-1,-1,(o._var<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8559,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8586,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._void<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8640,8748,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8667,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8694,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8721,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._while<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8775,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8802,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._with<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8856,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8883,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._yield<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);function Hb(){let t=0,e=0,n=h.pos;for(;n<ie.length&&(e=ie.charCodeAt(n),!(e<P.lowercaseA||e>P.lowercaseZ));){const i=p1[t+(e-P.lowercaseA)+1];if(i===-1)break;t=i,n++}const s=p1[t];if(s>-1&&!jt[e]){h.pos=n,s&1?ve(s>>>1):ve(o.name,s>>>1);return}for(;n<ie.length;){const i=ie.charCodeAt(n);if(jt[i])n++;else if(i===P.backslash){if(n+=2,ie.charCodeAt(n)===P.leftCurlyBrace){for(;n<ie.length&&ie.charCodeAt(n)!==P.rightCurlyBrace;)n++;n++}}else if(i===P.atSign&&ie.charCodeAt(n+1)===P.atSign)n+=2;else break}h.pos=n,ve(o.name)}var ge;(function(t){t[t.Access=0]="Access";const n=1;t[t.ExportAccess=n]="ExportAccess";const s=n+1;t[t.TopLevelDeclaration=s]="TopLevelDeclaration";const i=s+1;t[t.FunctionScopedDeclaration=i]="FunctionScopedDeclaration";const r=i+1;t[t.BlockScopedDeclaration=r]="BlockScopedDeclaration";const a=r+1;t[t.ObjectShorthandTopLevelDeclaration=a]="ObjectShorthandTopLevelDeclaration";const l=a+1;t[t.ObjectShorthandFunctionScopedDeclaration=l]="ObjectShorthandFunctionScopedDeclaration";const c=l+1;t[t.ObjectShorthandBlockScopedDeclaration=c]="ObjectShorthandBlockScopedDeclaration";const u=c+1;t[t.ObjectShorthand=u]="ObjectShorthand";const d=u+1;t[t.ImportDeclaration=d]="ImportDeclaration";const m=d+1;t[t.ObjectKey=m]="ObjectKey";const f=m+1;t[t.ImportAccess=f]="ImportAccess"})(ge||(ge={}));var zt;(function(t){t[t.NoChildren=0]="NoChildren";const n=1;t[t.OneChild=n]="OneChild";const s=n+1;t[t.StaticChildren=s]="StaticChildren";const i=s+1;t[t.KeyAfterPropSpread=i]="KeyAfterPropSpread"})(zt||(zt={}));function f1(t){const e=t.identifierRole;return e===ge.TopLevelDeclaration||e===ge.FunctionScopedDeclaration||e===ge.BlockScopedDeclaration||e===ge.ObjectShorthandTopLevelDeclaration||e===ge.ObjectShorthandFunctionScopedDeclaration||e===ge.ObjectShorthandBlockScopedDeclaration}function Gb(t){const e=t.identifierRole;return e===ge.FunctionScopedDeclaration||e===ge.BlockScopedDeclaration||e===ge.ObjectShorthandFunctionScopedDeclaration||e===ge.ObjectShorthandBlockScopedDeclaration}function m1(t){const e=t.identifierRole;return e===ge.TopLevelDeclaration||e===ge.ObjectShorthandTopLevelDeclaration||e===ge.ImportDeclaration}function Wb(t){const e=t.identifierRole;return e===ge.TopLevelDeclaration||e===ge.BlockScopedDeclaration||e===ge.ObjectShorthandTopLevelDeclaration||e===ge.ObjectShorthandBlockScopedDeclaration}function Xb(t){const e=t.identifierRole;return e===ge.FunctionScopedDeclaration||e===ge.ObjectShorthandFunctionScopedDeclaration}function Kb(t){return t.identifierRole===ge.ObjectShorthandTopLevelDeclaration||t.identifierRole===ge.ObjectShorthandBlockScopedDeclaration||t.identifierRole===ge.ObjectShorthandFunctionScopedDeclaration}class Io{constructor(){this.type=h.type,this.contextualKeyword=h.contextualKeyword,this.start=h.start,this.end=h.end,this.scopeDepth=h.scopeDepth,this.isType=h.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}}function G(){h.tokens.push(new Io),x1()}function Pn(){h.tokens.push(new Io),h.start=h.pos,dx()}function Jb(){h.type===o.assign&&--h.pos,cx()}function Ne(t){for(let n=h.tokens.length-t;n<h.tokens.length;n++)h.tokens[n].isType=!0;const e=h.isType;return h.isType=!0,e}function $e(t){h.isType=t}function z(t){return y(t)?(G(),!0):!1}function g1(t){const e=h.isType;h.isType=!0,z(t),h.isType=e}function y(t){return h.type===t}function et(){const t=h.snapshot();G();const e=h.type;return h.restoreFromSnapshot(t),e}class Yb{constructor(e,n){this.type=e,this.contextualKeyword=n}}function Ci(){const t=h.snapshot();G();const e=h.type,n=h.contextualKeyword;return h.restoreFromSnapshot(t),new Yb(e,n)}function jl(){return y1(h.pos)}function y1(t){h1.lastIndex=t;const e=h1.exec(ie);return t+e[0].length}function b1(){return ie.charCodeAt(jl())}function x1(){if(E1(),h.start=h.pos,h.pos>=ie.length){const t=h.tokens;t.length>=2&&t[t.length-1].start>=ie.length&&t[t.length-2].start>=ie.length&&Ie("Unexpectedly reached the end of input."),ve(o.eof);return}Qb(ie.charCodeAt(h.pos))}function Qb(t){Ni[t]||t===P.backslash||t===P.atSign&&ie.charCodeAt(h.pos+1)===P.atSign?Hb():S1(t)}function Zb(){for(;ie.charCodeAt(h.pos)!==P.asterisk||ie.charCodeAt(h.pos+1)!==P.slash;)if(h.pos++,h.pos>ie.length){Ie("Unterminated comment",h.pos-2);return}h.pos+=2}function k1(t){let e=ie.charCodeAt(h.pos+=t);if(h.pos<ie.length)for(;e!==P.lineFeed&&e!==P.carriageReturn&&e!==P.lineSeparator&&e!==P.paragraphSeparator&&++h.pos<ie.length;)e=ie.charCodeAt(h.pos)}function E1(){for(;h.pos<ie.length;){const t=ie.charCodeAt(h.pos);switch(t){case P.carriageReturn:ie.charCodeAt(h.pos+1)===P.lineFeed&&++h.pos;case P.lineFeed:case P.lineSeparator:case P.paragraphSeparator:++h.pos;break;case P.slash:switch(ie.charCodeAt(h.pos+1)){case P.asterisk:h.pos+=2,Zb();break;case P.slash:k1(2);break;default:return}break;default:if(d1[t])++h.pos;else return}}}function ve(t,e=S.NONE){h.end=h.pos,h.type=t,h.contextualKeyword=e}function ex(){const t=ie.charCodeAt(h.pos+1);if(t>=P.digit0&&t<=P.digit9){I1(!0);return}t===P.dot&&ie.charCodeAt(h.pos+2)===P.dot?(h.pos+=3,ve(o.ellipsis)):(++h.pos,ve(o.dot))}function tx(){ie.charCodeAt(h.pos+1)===P.equalsTo?je(o.assign,2):je(o.slash,1)}function nx(t){let e=t===P.asterisk?o.star:o.modulo,n=1,s=ie.charCodeAt(h.pos+1);t===P.asterisk&&s===P.asterisk&&(n++,s=ie.charCodeAt(h.pos+2),e=o.exponent),s===P.equalsTo&&ie.charCodeAt(h.pos+2)!==P.greaterThan&&(n++,e=o.assign),je(e,n)}function sx(t){const e=ie.charCodeAt(h.pos+1);if(e===t){ie.charCodeAt(h.pos+2)===P.equalsTo?je(o.assign,3):je(t===P.verticalBar?o.logicalOR:o.logicalAND,2);return}if(t===P.verticalBar){if(e===P.greaterThan){je(o.pipeline,2);return}else if(e===P.rightCurlyBrace&&Be){je(o.braceBarR,2);return}}if(e===P.equalsTo){je(o.assign,2);return}je(t===P.verticalBar?o.bitwiseOR:o.bitwiseAND,1)}function ix(){ie.charCodeAt(h.pos+1)===P.equalsTo?je(o.assign,2):je(o.bitwiseXOR,1)}function rx(t){const e=ie.charCodeAt(h.pos+1);if(e===t){je(o.preIncDec,2);return}e===P.equalsTo?je(o.assign,2):t===P.plusSign?je(o.plus,1):je(o.minus,1)}function ox(){const t=ie.charCodeAt(h.pos+1);if(t===P.lessThan){if(ie.charCodeAt(h.pos+2)===P.equalsTo){je(o.assign,3);return}h.isType?je(o.lessThan,1):je(o.bitShiftL,2);return}t===P.equalsTo?je(o.relationalOrEqual,2):je(o.lessThan,1)}function A1(){if(h.isType){je(o.greaterThan,1);return}const t=ie.charCodeAt(h.pos+1);if(t===P.greaterThan){const e=ie.charCodeAt(h.pos+2)===P.greaterThan?3:2;if(ie.charCodeAt(h.pos+e)===P.equalsTo){je(o.assign,e+1);return}je(o.bitShiftR,e);return}t===P.equalsTo?je(o.relationalOrEqual,2):je(o.greaterThan,1)}function w1(){h.type===o.greaterThan&&(h.pos-=1,A1())}function ax(t){const e=ie.charCodeAt(h.pos+1);if(e===P.equalsTo){je(o.equality,ie.charCodeAt(h.pos+2)===P.equalsTo?3:2);return}if(t===P.equalsTo&&e===P.greaterThan){h.pos+=2,ve(o.arrow);return}je(t===P.equalsTo?o.eq:o.bang,1)}function lx(){const t=ie.charCodeAt(h.pos+1),e=ie.charCodeAt(h.pos+2);t===P.questionMark&&!(Be&&h.isType)?e===P.equalsTo?je(o.assign,3):je(o.nullishCoalescing,2):t===P.dot&&!(e>=P.digit0&&e<=P.digit9)?(h.pos+=2,ve(o.questionDot)):(++h.pos,ve(o.question))}function S1(t){switch(t){case P.numberSign:++h.pos,ve(o.hash);return;case P.dot:ex();return;case P.leftParenthesis:++h.pos,ve(o.parenL);return;case P.rightParenthesis:++h.pos,ve(o.parenR);return;case P.semicolon:++h.pos,ve(o.semi);return;case P.comma:++h.pos,ve(o.comma);return;case P.leftSquareBracket:++h.pos,ve(o.bracketL);return;case P.rightSquareBracket:++h.pos,ve(o.bracketR);return;case P.leftCurlyBrace:Be&&ie.charCodeAt(h.pos+1)===P.verticalBar?je(o.braceBarL,2):(++h.pos,ve(o.braceL));return;case P.rightCurlyBrace:++h.pos,ve(o.braceR);return;case P.colon:ie.charCodeAt(h.pos+1)===P.colon?je(o.doubleColon,2):(++h.pos,ve(o.colon));return;case P.questionMark:lx();return;case P.atSign:++h.pos,ve(o.at);return;case P.graveAccent:++h.pos,ve(o.backQuote);return;case P.digit0:{const e=ie.charCodeAt(h.pos+1);if(e===P.lowercaseX||e===P.uppercaseX||e===P.lowercaseO||e===P.uppercaseO||e===P.lowercaseB||e===P.uppercaseB){ux();return}}case P.digit1:case P.digit2:case P.digit3:case P.digit4:case P.digit5:case P.digit6:case P.digit7:case P.digit8:case P.digit9:I1(!1);return;case P.quotationMark:case P.apostrophe:hx(t);return;case P.slash:tx();return;case P.percentSign:case P.asterisk:nx(t);return;case P.verticalBar:case P.ampersand:sx(t);return;case P.caret:ix();return;case P.plusSign:case P.dash:rx(t);return;case P.lessThan:ox();return;case P.greaterThan:A1();return;case P.equalsTo:case P.exclamationMark:ax(t);return;case P.tilde:je(o.tilde,1);return}Ie(`Unexpected character '${String.fromCharCode(t)}'`,h.pos)}function je(t,e){h.pos+=e,ve(t)}function cx(){const t=h.pos;let e=!1,n=!1;for(;;){if(h.pos>=ie.length){Ie("Unterminated regular expression",t);return}const s=ie.charCodeAt(h.pos);if(e)e=!1;else{if(s===P.leftSquareBracket)n=!0;else if(s===P.rightSquareBracket&&n)n=!1;else if(s===P.slash&&!n)break;e=s===P.backslash}++h.pos}++h.pos,px(),ve(o.regexp)}function zl(){for(;;){const t=ie.charCodeAt(h.pos);if(t>=P.digit0&&t<=P.digit9||t===P.underscore)h.pos++;else break}}function ux(){for(h.pos+=2;;){const e=ie.charCodeAt(h.pos);if(e>=P.digit0&&e<=P.digit9||e>=P.lowercaseA&&e<=P.lowercaseF||e>=P.uppercaseA&&e<=P.uppercaseF||e===P.underscore)h.pos++;else break}ie.charCodeAt(h.pos)===P.lowercaseN?(++h.pos,ve(o.bigint)):ve(o.num)}function I1(t){let e=!1,n=!1;t||zl();let s=ie.charCodeAt(h.pos);if(s===P.dot&&(++h.pos,zl(),s=ie.charCodeAt(h.pos)),(s===P.uppercaseE||s===P.lowercaseE)&&(s=ie.charCodeAt(++h.pos),(s===P.plusSign||s===P.dash)&&++h.pos,zl(),s=ie.charCodeAt(h.pos)),s===P.lowercaseN?(++h.pos,e=!0):s===P.lowercaseM&&(++h.pos,n=!0),e){ve(o.bigint);return}if(n){ve(o.decimal);return}ve(o.num)}function hx(t){for(h.pos++;;){if(h.pos>=ie.length){Ie("Unterminated string constant");return}const e=ie.charCodeAt(h.pos);if(e===P.backslash)h.pos++;else if(e===t)break;h.pos++}h.pos++,ve(o.string)}function dx(){for(;;){if(h.pos>=ie.length){Ie("Unterminated template");return}const t=ie.charCodeAt(h.pos);if(t===P.graveAccent||t===P.dollarSign&&ie.charCodeAt(h.pos+1)===P.leftCurlyBrace){if(h.pos===h.start&&y(o.template))if(t===P.dollarSign){h.pos+=2,ve(o.dollarBraceL);return}else{++h.pos,ve(o.backQuote);return}ve(o.template);return}t===P.backslash&&h.pos++,h.pos++}}function px(){for(;h.pos<ie.length;){const t=ie.charCodeAt(h.pos);if(jt[t])h.pos++;else if(t===P.backslash){if(h.pos+=2,ie.charCodeAt(h.pos)===P.leftCurlyBrace){for(;h.pos<ie.length&&ie.charCodeAt(h.pos)!==P.rightCurlyBrace;)h.pos++;h.pos++}}else break}}function Ti(t,e=t.currentIndex()){let n=e+1;if(vo(t,n)){const s=t.identifierNameAtIndex(e);return{isType:!1,leftName:s,rightName:s,endIndex:n}}if(n++,vo(t,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};if(n++,vo(t,n))return{isType:!1,leftName:t.identifierNameAtIndex(e),rightName:t.identifierNameAtIndex(e+2),endIndex:n};if(n++,vo(t,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};throw new Error(`Unexpected import/export specifier at ${e}`)}function vo(t,e){const n=t.tokens[e];return n.type===o.braceR||n.type===o.comma}var fx=new Map([["quot",'"'],["amp","&"],["apos","'"],["lt","<"],["gt",">"],["nbsp"," "],["iexcl","¡"],["cent","¢"],["pound","£"],["curren","¤"],["yen","¥"],["brvbar","¦"],["sect","§"],["uml","¨"],["copy","©"],["ordf","ª"],["laquo","«"],["not","¬"],["shy","­"],["reg","®"],["macr","¯"],["deg","°"],["plusmn","±"],["sup2","²"],["sup3","³"],["acute","´"],["micro","µ"],["para","¶"],["middot","·"],["cedil","¸"],["sup1","¹"],["ordm","º"],["raquo","»"],["frac14","¼"],["frac12","½"],["frac34","¾"],["iquest","¿"],["Agrave","À"],["Aacute","Á"],["Acirc","Â"],["Atilde","Ã"],["Auml","Ä"],["Aring","Å"],["AElig","Æ"],["Ccedil","Ç"],["Egrave","È"],["Eacute","É"],["Ecirc","Ê"],["Euml","Ë"],["Igrave","Ì"],["Iacute","Í"],["Icirc","Î"],["Iuml","Ï"],["ETH","Ð"],["Ntilde","Ñ"],["Ograve","Ò"],["Oacute","Ó"],["Ocirc","Ô"],["Otilde","Õ"],["Ouml","Ö"],["times","×"],["Oslash","Ø"],["Ugrave","Ù"],["Uacute","Ú"],["Ucirc","Û"],["Uuml","Ü"],["Yacute","Ý"],["THORN","Þ"],["szlig","ß"],["agrave","à"],["aacute","á"],["acirc","â"],["atilde","ã"],["auml","ä"],["aring","å"],["aelig","æ"],["ccedil","ç"],["egrave","è"],["eacute","é"],["ecirc","ê"],["euml","ë"],["igrave","ì"],["iacute","í"],["icirc","î"],["iuml","ï"],["eth","ð"],["ntilde","ñ"],["ograve","ò"],["oacute","ó"],["ocirc","ô"],["otilde","õ"],["ouml","ö"],["divide","÷"],["oslash","ø"],["ugrave","ù"],["uacute","ú"],["ucirc","û"],["uuml","ü"],["yacute","ý"],["thorn","þ"],["yuml","ÿ"],["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","♦"]]);function v1(t){const[e,n]=_1(t.jsxPragma||"React.createElement"),[s,i]=_1(t.jsxFragmentPragma||"React.Fragment");return{base:e,suffix:n,fragmentBase:s,fragmentSuffix:i}}function _1(t){let e=t.indexOf(".");return e===-1&&(e=t.length),[t.slice(0,e),t.slice(e)]}class Vt{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}class ss extends Vt{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(e,n,s,i,r){super(),this.rootTransformer=e,this.tokens=n,this.importProcessor=s,this.nameManager=i,this.options=r,ss.prototype.__init.call(this),ss.prototype.__init2.call(this),ss.prototype.__init3.call(this),ss.prototype.__init4.call(this),ss.prototype.__init5.call(this),this.jsxPragmaInfo=v1(r),this.isAutomaticRuntime=r.jsxRuntime==="automatic",this.jsxImportSource=r.jsxImportSource||"react"}process(){return this.tokens.matches1(o.jsxTagStart)?(this.processJSXTag(),!0):!1}getPrefixCode(){let e="";if(this.filenameVarName&&(e+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime)if(this.importProcessor)for(const[n,s]of Object.entries(this.cjsAutomaticModuleNameResolutions))e+=`var ${s} = require("${n}");`;else{const{createElement:n,...s}=this.esmAutomaticImportNameResolutions;n&&(e+=`import {createElement as ${n}} from "${this.jsxImportSource}";`);const i=Object.entries(s).map(([r,a])=>`${r} as ${a}`).join(", ");if(i){const r=this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime");e+=`import {${i}} from "${r}";`}}return e}processJSXTag(){const{jsxRole:e,start:n}=this.tokens.currentToken(),s=this.options.production?null:this.getElementLocationCode(n);this.isAutomaticRuntime&&e!==zt.KeyAfterPropSpread?this.transformTagToJSXFunc(s,e):this.transformTagToCreateElement(s)}getElementLocationCode(e){return`lineNumber: ${this.getLineNumberForIndex(e)}`}getLineNumberForIndex(e){const n=this.tokens.code;for(;this.lastIndex<e&&this.lastIndex<n.length;)n[this.lastIndex]===`
62
- `&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(e,n){const s=n===zt.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(s));let i=null;if(this.tokens.matches1(o.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(n);else{if(this.processTagIntro(),this.tokens.appendCode(", {"),i=this.processProps(!0),this.tokens.matches2(o.slash,o.jsxTagEnd))this.tokens.appendCode("}");else if(this.tokens.matches1(o.jsxTagEnd))this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(n);else throw new Error("Expected either /> or > at the end of the tag.");i&&this.tokens.appendCode(`, ${i}`)}for(this.options.production||(i===null&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${s}, ${this.getDevSource(e)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(o.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(e){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(o.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(e),!this.tokens.matches2(o.slash,o.jsxTagEnd))if(this.tokens.matches1(o.jsxTagEnd))this.tokens.removeToken(),this.processChildren(!0);else throw new Error("Expected either /> or > at the end of the tag.");for(this.tokens.removeInitialToken();!this.tokens.matches1(o.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(e){return this.options.production?e?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{const{jsxPragmaInfo:e}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.base)||e.base}${e.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{const{jsxPragmaInfo:e}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.fragmentBase)||e.fragmentBase)+e.fragmentSuffix}}claimAutoImportedFuncInvocation(e,n){const s=this.claimAutoImportedName(e,n);return this.importProcessor?`${s}.call(void 0, `:`${s}(`}claimAutoImportedName(e,n){if(this.importProcessor){const s=this.jsxImportSource+n;return this.cjsAutomaticModuleNameResolutions[s]||(this.cjsAutomaticModuleNameResolutions[s]=this.importProcessor.getFreeIdentifierForPath(s)),`${this.cjsAutomaticModuleNameResolutions[s]}.${e}`}else return this.esmAutomaticImportNameResolutions[e]||(this.esmAutomaticImportNameResolutions[e]=this.nameManager.claimFreeName(`_${e}`)),this.esmAutomaticImportNameResolutions[e]}processTagIntro(){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType||!this.tokens.matches2AtIndex(e-1,o.jsxName,o.jsxName)&&!this.tokens.matches2AtIndex(e-1,o.greaterThan,o.jsxName)&&!this.tokens.matches1AtIndex(e,o.braceL)&&!this.tokens.matches1AtIndex(e,o.jsxTagEnd)&&!this.tokens.matches2AtIndex(e,o.slash,o.jsxTagEnd);)e++;if(e===this.tokens.currentIndex()+1){const n=this.tokens.identifierName();P1(n)&&this.tokens.replaceToken(`'${n}'`)}for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(e){const n=this.options.production?"":`__self: this, __source: ${this.getDevSource(e)}`;if(!this.tokens.matches1(o.jsxName)&&!this.tokens.matches1(o.braceL)){n?this.tokens.appendCode(`, {${n}}`):this.tokens.appendCode(", null");return}this.tokens.appendCode(", {"),this.processProps(!1),n?this.tokens.appendCode(` ${n}}`):this.tokens.appendCode("}")}processProps(e){let n=null;for(;;){if(this.tokens.matches2(o.jsxName,o.eq)){const s=this.tokens.identifierName();if(e&&s==="key"){n!==null&&this.tokens.appendCode(n.replace(/[^\n]/g,"")),this.tokens.removeToken(),this.tokens.removeToken();const i=this.tokens.snapshot();this.processPropValue(),n=this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(i);continue}else this.processPropName(s),this.tokens.replaceToken(": "),this.processPropValue()}else if(this.tokens.matches1(o.jsxName)){const s=this.tokens.identifierName();this.processPropName(s),this.tokens.appendCode(": true")}else if(this.tokens.matches1(o.braceL))this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("");else break;this.tokens.appendCode(",")}return n}processPropName(e){e.includes("-")?this.tokens.replaceToken(`'${e}'`):this.tokens.copyToken()}processPropValue(){this.tokens.matches1(o.braceL)?(this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")):this.tokens.matches1(o.jsxTagStart)?this.processJSXTag():this.processStringPropValue()}processStringPropValue(){const e=this.tokens.currentToken(),n=this.tokens.code.slice(e.start+1,e.end-1),s=$1(n),i=gx(n);this.tokens.replaceToken(i+s)}processAutomaticChildrenAndEndProps(e){e===zt.StaticChildren?(this.tokens.appendCode(" children: ["),this.processChildren(!1),this.tokens.appendCode("]}")):(e===zt.OneChild&&this.tokens.appendCode(" children: "),this.processChildren(!1),this.tokens.appendCode("}"))}processChildren(e){let n=e;for(;;){if(this.tokens.matches2(o.jsxTagStart,o.slash))return;let s=!1;if(this.tokens.matches1(o.braceL))this.tokens.matches2(o.braceL,o.braceR)?(this.tokens.replaceToken(""),this.tokens.replaceToken("")):(this.tokens.replaceToken(n?", ":""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(""),s=!0);else if(this.tokens.matches1(o.jsxTagStart))this.tokens.appendCode(n?", ":""),this.processJSXTag(),s=!0;else if(this.tokens.matches1(o.jsxText)||this.tokens.matches1(o.jsxEmptyText))s=this.processChildTextElement(n);else throw new Error("Unexpected token when processing JSX children.");s&&(n=!0)}}processChildTextElement(e){const n=this.tokens.currentToken(),s=this.tokens.code.slice(n.start,n.end),i=$1(s),r=mx(s);return r==='""'?(this.tokens.replaceToken(i),!1):(this.tokens.replaceToken(`${e?", ":""}${r}${i}`),!0)}getDevSource(e){return`{fileName: ${this.getFilenameVarName()}, ${e}}`}getFilenameVarName(){return this.filenameVarName||(this.filenameVarName=this.nameManager.claimFreeName("_jsxFileName")),this.filenameVarName}}function P1(t){const e=t.charCodeAt(0);return e>=P.lowercaseA&&e<=P.lowercaseZ}function mx(t){let e="",n="",s=!1,i=!1;for(let r=0;r<t.length;r++){const a=t[r];if(a===" "||a===" "||a==="\r")s||(n+=a);else if(a===`
63
- `)n="",s=!0;else{if(i&&s&&(e+=" "),e+=n,n="",a==="&"){const{entity:l,newI:c}=N1(t,r+1);r=c-1,e+=l}else e+=a;i=!0,s=!1}}return s||(e+=n),JSON.stringify(e)}function $1(t){let e=0,n=0;for(const s of t)s===`
61
+ ${d.message}`});throw await i.pluginDriver.hookParallel("closeBundle",[m]),m}throw await i.pluginDriver.hookParallel("closeBundle",[c]),c}try{await i.pluginDriver.hookParallel("buildEnd",[])}catch(c){throw await i.pluginDriver.hookParallel("closeBundle",[c]),c}}),at("BUILD",1);const l={cache:a?i.getCache():void 0,async close(){l.closed||(l.closed=!0,await i.pluginDriver.hookParallel("closeBundle",[]))},closed:!1,async[Symbol.asyncDispose](){await this.close()},generate:async c=>l.closed?oe({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):o1(!1,s,r,c,i),get watchFiles(){return Object.keys(i.watchFiles)},write:async c=>l.closed?oe({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):o1(!0,s,r,c,i)};return s.perf&&(l.getTimings=ny),l}(t,null)}function i1(t,e){for(const[n,s]of t.entries())s.name||(s.name=`${e}${n+1}`)}async function o1(t,e,n,s,r){const{options:i,outputPluginDriver:a,unsetOptions:l}=await async function(c,u,d,m){if(!c)throw new Error("You must supply an options object");const f=await Ao(c.plugins);i1(f,Cl);const g=u.createOutputPluginDriver(f);return{...await Rb(d,m,c,g),outputPluginDriver:g}}(s,r.pluginDriver,e,n);return n1(0,async()=>{const c=new Sy(i,l,e,a,r),u=await c.generate(t);if(t){if(ct("WRITE",1),!i.dir&&!i.file)return oe({code:"MISSING_OPTION",message:'You must specify "output.file" or "output.dir" for the build.',url:ot(Zs)});await Promise.all(Object.values(u).map(m=>r.fileOperationQueue.run(()=>async function(f,g,{fs:{mkdir:w,writeFile:k}}){const I=At(g.dir||ln(g.file),f.fileName);return await w(ln(I),{recursive:!0}),k(I,f.type==="asset"?f.source:f.code)}(m,i,e)))),await a.hookParallel("writeBundle",[i,u]),at("WRITE",1)}return d=u,{output:Object.values(d).filter(m=>Object.keys(m).length>0).sort((m,f)=>a1(m)-a1(f))};var d})}function Rb(t,e,n,s){return async function(r,i,a){const l=new Set(a),c=r.compact||!1,u=gb(r),d=yb(r,i),m=bb(r,d,i),f=mb(r,m,i),g=Ib(r),w=Sb(r,i),k={amd:kb(r),assetFileNames:r.assetFileNames??"assets/[name]-[hash][extname]",banner:wo(r,"banner"),chunkFileNames:r.chunkFileNames??"[name]-[hash].js",compact:c,dir:Eb(r,f),dynamicImportInCjs:r.dynamicImportInCjs??!0,entryFileNames:Ab(r,l),esModule:r.esModule??"if-default-prop",experimentalMinChunkSize:r.experimentalMinChunkSize??1,exports:wb(r,l),extend:r.extend||!1,externalImportAssertions:w,externalImportAttributes:w,externalLiveBindings:r.externalLiveBindings??!0,file:f,footer:wo(r,"footer"),format:u,freeze:r.freeze??!0,generatedCode:g,globals:r.globals||{},hashCharacters:r.hashCharacters??"base64",hoistTransitiveImports:r.hoistTransitiveImports??!0,importAttributesKey:r.importAttributesKey??"assert",indent:vb(r,c),inlineDynamicImports:d,interop:_b(r),intro:wo(r,"intro"),manualChunks:Pb(r,d,m),minifyInternalExports:$b(r,u,c),name:r.name,noConflict:r.noConflict||!1,outro:wo(r,"outro"),paths:r.paths||{},plugins:await Ao(r.plugins),preserveModules:m,preserveModulesRoot:xb(r),reexportProtoFromExternal:r.reexportProtoFromExternal??!0,sanitizeFileName:typeof r.sanitizeFileName=="function"?r.sanitizeFileName:r.sanitizeFileName===!1?I=>I:fb,sourcemap:r.sourcemap||!1,sourcemapBaseUrl:Cb(r),sourcemapDebugIds:r.sourcemapDebugIds||!1,sourcemapExcludeSources:r.sourcemapExcludeSources||!1,sourcemapFile:r.sourcemapFile,sourcemapFileNames:Nb(r,l),sourcemapIgnoreList:typeof r.sourcemapIgnoreList=="function"?r.sourcemapIgnoreList:r.sourcemapIgnoreList===!1?()=>!1:I=>I.includes("node_modules"),sourcemapPathTransform:r.sourcemapPathTransform,strict:r.strict??!0,systemNullSetters:r.systemNullSetters??!0,validate:r.validate||!1,virtualDirname:r.virtualDirname||"_virtual"};return qp(r,Object.keys(k),"output options",i.onLog),{options:k,unsetOptions:l}}(s.hookReduceArg0Sync("outputOptions",[n],(r,i)=>i||r,r=>{const i=()=>r.error({code:"CANNOT_EMIT_FROM_OPTIONS_HOOK",message:'Cannot emit files or set asset sources in the "outputOptions" hook, use the "renderStart" hook instead.'});return{...r,emitFile:i,setAssetSource:i}}),t,e)}var Nr;function a1(t){return t.type==="asset"?Nr.ASSET:t.isEntry?Nr.ENTRY_CHUNK:Nr.SECONDARY_CHUNK}Symbol.asyncDispose??=Symbol("Symbol.asyncDispose"),function(t){t[t.ENTRY_CHUNK=0]="ENTRY_CHUNK",t[t.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",t[t.ASSET=2]="ASSET"}(Nr||(Nr={}));const Db=t=>t.length!==32||!/^[0-9a-f]{32}$/i.test(t)?!1:t[12]==="4",Ob=()=>typeof globalThis.crypto<"u"?globalThis.crypto:require("node:crypto").webcrypto,Lb=Ob(),l1=()=>{const t=new Uint8Array(16);return Lb.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128,Array.from(t,e=>e.toString(16).padStart(2,"0")).join("")},Mb=()=>l1().substring(0,8),c1=(t,e)=>{if(t&&t.files)for(const n of Object.keys(t.files)){const s=t.files[n];if(s.name===e)return s.text}return null},Fb=t=>{const e={};if(!t)return e;for(const n of Object.values(t))e[n.name]=n.text;return e},Bb=t=>Object.entries(t).reduce((e,[n,s])=>(e[Mb()]={name:n,text:s},e),{});var S;(function(t){t[t.NONE=0]="NONE";const n=1;t[t._abstract=n]="_abstract";const s=n+1;t[t._accessor=s]="_accessor";const r=s+1;t[t._as=r]="_as";const i=r+1;t[t._assert=i]="_assert";const a=i+1;t[t._asserts=a]="_asserts";const l=a+1;t[t._async=l]="_async";const c=l+1;t[t._await=c]="_await";const u=c+1;t[t._checks=u]="_checks";const d=u+1;t[t._constructor=d]="_constructor";const m=d+1;t[t._declare=m]="_declare";const f=m+1;t[t._enum=f]="_enum";const g=f+1;t[t._exports=g]="_exports";const w=g+1;t[t._from=w]="_from";const k=w+1;t[t._get=k]="_get";const I=k+1;t[t._global=I]="_global";const E=I+1;t[t._implements=E]="_implements";const b=E+1;t[t._infer=b]="_infer";const A=b+1;t[t._interface=A]="_interface";const v=A+1;t[t._is=v]="_is";const $=v+1;t[t._keyof=$]="_keyof";const D=$+1;t[t._mixins=D]="_mixins";const j=D+1;t[t._module=j]="_module";const V=j+1;t[t._namespace=V]="_namespace";const U=V+1;t[t._of=U]="_of";const O=U+1;t[t._opaque=O]="_opaque";const _=O+1;t[t._out=_]="_out";const N=_+1;t[t._override=N]="_override";const C=N+1;t[t._private=C]="_private";const R=C+1;t[t._protected=R]="_protected";const M=R+1;t[t._proto=M]="_proto";const q=M+1;t[t._public=q]="_public";const K=q+1;t[t._readonly=K]="_readonly";const X=K+1;t[t._require=X]="_require";const ae=X+1;t[t._satisfies=ae]="_satisfies";const T=ae+1;t[t._set=T]="_set";const de=T+1;t[t._static=de]="_static";const he=de+1;t[t._symbol=he]="_symbol";const ce=he+1;t[t._type=ce]="_type";const L=ce+1;t[t._unique=L]="_unique";const x=L+1;t[t._using=x]="_using"})(S||(S={}));var o;(function(t){t[t.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";const n=16;t[t.IS_KEYWORD=n]="IS_KEYWORD";const s=32;t[t.IS_ASSIGN=s]="IS_ASSIGN";const r=64;t[t.IS_RIGHT_ASSOCIATIVE=r]="IS_RIGHT_ASSOCIATIVE";const i=128;t[t.IS_PREFIX=i]="IS_PREFIX";const a=256;t[t.IS_POSTFIX=a]="IS_POSTFIX";const l=512;t[t.IS_EXPRESSION_START=l]="IS_EXPRESSION_START";const c=512;t[t.num=c]="num";const u=1536;t[t.bigint=u]="bigint";const d=2560;t[t.decimal=d]="decimal";const m=3584;t[t.regexp=m]="regexp";const f=4608;t[t.string=f]="string";const g=5632;t[t.name=g]="name";const w=6144;t[t.eof=w]="eof";const k=7680;t[t.bracketL=k]="bracketL";const I=8192;t[t.bracketR=I]="bracketR";const E=9728;t[t.braceL=E]="braceL";const b=10752;t[t.braceBarL=b]="braceBarL";const A=11264;t[t.braceR=A]="braceR";const v=12288;t[t.braceBarR=v]="braceBarR";const $=13824;t[t.parenL=$]="parenL";const D=14336;t[t.parenR=D]="parenR";const j=15360;t[t.comma=j]="comma";const V=16384;t[t.semi=V]="semi";const U=17408;t[t.colon=U]="colon";const O=18432;t[t.doubleColon=O]="doubleColon";const _=19456;t[t.dot=_]="dot";const N=20480;t[t.question=N]="question";const C=21504;t[t.questionDot=C]="questionDot";const R=22528;t[t.arrow=R]="arrow";const M=23552;t[t.template=M]="template";const q=24576;t[t.ellipsis=q]="ellipsis";const K=25600;t[t.backQuote=K]="backQuote";const X=27136;t[t.dollarBraceL=X]="dollarBraceL";const ae=27648;t[t.at=ae]="at";const T=29184;t[t.hash=T]="hash";const de=29728;t[t.eq=de]="eq";const he=30752;t[t.assign=he]="assign";const ce=32640;t[t.preIncDec=ce]="preIncDec";const L=33664;t[t.postIncDec=L]="postIncDec";const x=34432;t[t.bang=x]="bang";const F=35456;t[t.tilde=F]="tilde";const B=35841;t[t.pipeline=B]="pipeline";const J=36866;t[t.nullishCoalescing=J]="nullishCoalescing";const ee=37890;t[t.logicalOR=ee]="logicalOR";const ie=38915;t[t.logicalAND=ie]="logicalAND";const se=39940;t[t.bitwiseOR=se]="bitwiseOR";const ke=40965;t[t.bitwiseXOR=ke]="bitwiseXOR";const ye=41990;t[t.bitwiseAND=ye]="bitwiseAND";const be=43015;t[t.equality=be]="equality";const fe=44040;t[t.lessThan=fe]="lessThan";const Oe=45064;t[t.greaterThan=Oe]="greaterThan";const qe=46088;t[t.relationalOrEqual=qe]="relationalOrEqual";const ne=47113;t[t.bitShiftL=ne]="bitShiftL";const we=48137;t[t.bitShiftR=we]="bitShiftR";const Z=49802;t[t.plus=Z]="plus";const Se=50826;t[t.minus=Se]="minus";const Xe=51723;t[t.modulo=Xe]="modulo";const lt=52235;t[t.star=lt]="star";const Ye=53259;t[t.slash=Ye]="slash";const bn=54348;t[t.exponent=bn]="exponent";const on=55296;t[t.jsxName=on]="jsxName";const Qr=56320;t[t.jsxText=Qr]="jsxText";const Vc=57344;t[t.jsxEmptyText=Vc]="jsxEmptyText";const Uc=58880;t[t.jsxTagStart=Uc]="jsxTagStart";const qc=59392;t[t.jsxTagEnd=qc]="jsxTagEnd";const Hc=60928;t[t.typeParameterStart=Hc]="typeParameterStart";const Gc=61440;t[t.nonNullAssertion=Gc]="nonNullAssertion";const Wc=62480;t[t._break=Wc]="_break";const Xc=63504;t[t._case=Xc]="_case";const Kc=64528;t[t._catch=Kc]="_catch";const Jc=65552;t[t._continue=Jc]="_continue";const Yc=66576;t[t._debugger=Yc]="_debugger";const Qc=67600;t[t._default=Qc]="_default";const Zc=68624;t[t._do=Zc]="_do";const eu=69648;t[t._else=eu]="_else";const tu=70672;t[t._finally=tu]="_finally";const nu=71696;t[t._for=nu]="_for";const su=73232;t[t._function=su]="_function";const ru=73744;t[t._if=ru]="_if";const iu=74768;t[t._return=iu]="_return";const ou=75792;t[t._switch=ou]="_switch";const au=77456;t[t._throw=au]="_throw";const lu=77840;t[t._try=lu]="_try";const cu=78864;t[t._var=cu]="_var";const uu=79888;t[t._let=uu]="_let";const hu=80912;t[t._const=hu]="_const";const du=81936;t[t._while=du]="_while";const pu=82960;t[t._with=pu]="_with";const fu=84496;t[t._new=fu]="_new";const mu=85520;t[t._this=mu]="_this";const gu=86544;t[t._super=gu]="_super";const yu=87568;t[t._class=yu]="_class";const bu=88080;t[t._extends=bu]="_extends";const xu=89104;t[t._export=xu]="_export";const ku=90640;t[t._import=ku]="_import";const Eu=91664;t[t._yield=Eu]="_yield";const Au=92688;t[t._null=Au]="_null";const wu=93712;t[t._true=wu]="_true";const Su=94736;t[t._false=Su]="_false";const Iu=95256;t[t._in=Iu]="_in";const vu=96280;t[t._instanceof=vu]="_instanceof";const _u=97936;t[t._typeof=_u]="_typeof";const Pu=98960;t[t._void=Pu]="_void";const NS=99984;t[t._delete=NS]="_delete";const CS=100880;t[t._async=CS]="_async";const TS=101904;t[t._get=TS]="_get";const RS=102928;t[t._set=RS]="_set";const DS=103952;t[t._declare=DS]="_declare";const OS=104976;t[t._readonly=OS]="_readonly";const LS=106e3;t[t._abstract=LS]="_abstract";const MS=107024;t[t._static=MS]="_static";const FS=107536;t[t._public=FS]="_public";const BS=108560;t[t._private=BS]="_private";const jS=109584;t[t._protected=jS]="_protected";const zS=110608;t[t._override=zS]="_override";const VS=112144;t[t._as=VS]="_as";const US=113168;t[t._enum=US]="_enum";const qS=114192;t[t._type=qS]="_type";const HS=115216;t[t._implements=HS]="_implements"})(o||(o={}));function jb(t){switch(t){case o.num:return"num";case o.bigint:return"bigint";case o.decimal:return"decimal";case o.regexp:return"regexp";case o.string:return"string";case o.name:return"name";case o.eof:return"eof";case o.bracketL:return"[";case o.bracketR:return"]";case o.braceL:return"{";case o.braceBarL:return"{|";case o.braceR:return"}";case o.braceBarR:return"|}";case o.parenL:return"(";case o.parenR:return")";case o.comma:return",";case o.semi:return";";case o.colon:return":";case o.doubleColon:return"::";case o.dot:return".";case o.question:return"?";case o.questionDot:return"?.";case o.arrow:return"=>";case o.template:return"template";case o.ellipsis:return"...";case o.backQuote:return"`";case o.dollarBraceL:return"${";case o.at:return"@";case o.hash:return"#";case o.eq:return"=";case o.assign:return"_=";case o.preIncDec:return"++/--";case o.postIncDec:return"++/--";case o.bang:return"!";case o.tilde:return"~";case o.pipeline:return"|>";case o.nullishCoalescing:return"??";case o.logicalOR:return"||";case o.logicalAND:return"&&";case o.bitwiseOR:return"|";case o.bitwiseXOR:return"^";case o.bitwiseAND:return"&";case o.equality:return"==/!=";case o.lessThan:return"<";case o.greaterThan:return">";case o.relationalOrEqual:return"<=/>=";case o.bitShiftL:return"<<";case o.bitShiftR:return">>/>>>";case o.plus:return"+";case o.minus:return"-";case o.modulo:return"%";case o.star:return"*";case o.slash:return"/";case o.exponent:return"**";case o.jsxName:return"jsxName";case o.jsxText:return"jsxText";case o.jsxEmptyText:return"jsxEmptyText";case o.jsxTagStart:return"jsxTagStart";case o.jsxTagEnd:return"jsxTagEnd";case o.typeParameterStart:return"typeParameterStart";case o.nonNullAssertion:return"nonNullAssertion";case o._break:return"break";case o._case:return"case";case o._catch:return"catch";case o._continue:return"continue";case o._debugger:return"debugger";case o._default:return"default";case o._do:return"do";case o._else:return"else";case o._finally:return"finally";case o._for:return"for";case o._function:return"function";case o._if:return"if";case o._return:return"return";case o._switch:return"switch";case o._throw:return"throw";case o._try:return"try";case o._var:return"var";case o._let:return"let";case o._const:return"const";case o._while:return"while";case o._with:return"with";case o._new:return"new";case o._this:return"this";case o._super:return"super";case o._class:return"class";case o._extends:return"extends";case o._export:return"export";case o._import:return"import";case o._yield:return"yield";case o._null:return"null";case o._true:return"true";case o._false:return"false";case o._in:return"in";case o._instanceof:return"instanceof";case o._typeof:return"typeof";case o._void:return"void";case o._delete:return"delete";case o._async:return"async";case o._get:return"get";case o._set:return"set";case o._declare:return"declare";case o._readonly:return"readonly";case o._abstract:return"abstract";case o._static:return"static";case o._public:return"public";case o._private:return"private";case o._protected:return"protected";case o._override:return"override";case o._as:return"as";case o._enum:return"enum";case o._type:return"type";case o._implements:return"implements";default:return""}}class en{constructor(e,n,s){this.startTokenIndex=e,this.endTokenIndex=n,this.isFunctionScope=s}}class zb{constructor(e,n,s,r,i,a,l,c,u,d,m,f,g){this.potentialArrowAt=e,this.noAnonFunctionType=n,this.inDisallowConditionalTypesContext=s,this.tokensLength=r,this.scopesLength=i,this.pos=a,this.type=l,this.contextualKeyword=c,this.start=u,this.end=d,this.isType=m,this.scopeDepth=f,this.error=g}}class kt{constructor(){kt.prototype.__init.call(this),kt.prototype.__init2.call(this),kt.prototype.__init3.call(this),kt.prototype.__init4.call(this),kt.prototype.__init5.call(this),kt.prototype.__init6.call(this),kt.prototype.__init7.call(this),kt.prototype.__init8.call(this),kt.prototype.__init9.call(this),kt.prototype.__init10.call(this),kt.prototype.__init11.call(this),kt.prototype.__init12.call(this),kt.prototype.__init13.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.inDisallowConditionalTypesContext=!1}__init4(){this.tokens=[]}__init5(){this.scopes=[]}__init6(){this.pos=0}__init7(){this.type=o.eof}__init8(){this.contextualKeyword=S.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new zb(this.potentialArrowAt,this.noAnonFunctionType,this.inDisallowConditionalTypesContext,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(e){this.potentialArrowAt=e.potentialArrowAt,this.noAnonFunctionType=e.noAnonFunctionType,this.inDisallowConditionalTypesContext=e.inDisallowConditionalTypesContext,this.tokens.length=e.tokensLength,this.scopes.length=e.scopesLength,this.pos=e.pos,this.type=e.type,this.contextualKeyword=e.contextualKeyword,this.start=e.start,this.end=e.end,this.isType=e.isType,this.scopeDepth=e.scopeDepth,this.error=e.error}}var P;(function(t){t[t.backSpace=8]="backSpace";const n=10;t[t.lineFeed=n]="lineFeed";const s=9;t[t.tab=s]="tab";const r=13;t[t.carriageReturn=r]="carriageReturn";const i=14;t[t.shiftOut=i]="shiftOut";const a=32;t[t.space=a]="space";const l=33;t[t.exclamationMark=l]="exclamationMark";const c=34;t[t.quotationMark=c]="quotationMark";const u=35;t[t.numberSign=u]="numberSign";const d=36;t[t.dollarSign=d]="dollarSign";const m=37;t[t.percentSign=m]="percentSign";const f=38;t[t.ampersand=f]="ampersand";const g=39;t[t.apostrophe=g]="apostrophe";const w=40;t[t.leftParenthesis=w]="leftParenthesis";const k=41;t[t.rightParenthesis=k]="rightParenthesis";const I=42;t[t.asterisk=I]="asterisk";const E=43;t[t.plusSign=E]="plusSign";const b=44;t[t.comma=b]="comma";const A=45;t[t.dash=A]="dash";const v=46;t[t.dot=v]="dot";const $=47;t[t.slash=$]="slash";const D=48;t[t.digit0=D]="digit0";const j=49;t[t.digit1=j]="digit1";const V=50;t[t.digit2=V]="digit2";const U=51;t[t.digit3=U]="digit3";const O=52;t[t.digit4=O]="digit4";const _=53;t[t.digit5=_]="digit5";const N=54;t[t.digit6=N]="digit6";const C=55;t[t.digit7=C]="digit7";const R=56;t[t.digit8=R]="digit8";const M=57;t[t.digit9=M]="digit9";const q=58;t[t.colon=q]="colon";const K=59;t[t.semicolon=K]="semicolon";const X=60;t[t.lessThan=X]="lessThan";const ae=61;t[t.equalsTo=ae]="equalsTo";const T=62;t[t.greaterThan=T]="greaterThan";const de=63;t[t.questionMark=de]="questionMark";const he=64;t[t.atSign=he]="atSign";const ce=65;t[t.uppercaseA=ce]="uppercaseA";const L=66;t[t.uppercaseB=L]="uppercaseB";const x=67;t[t.uppercaseC=x]="uppercaseC";const F=68;t[t.uppercaseD=F]="uppercaseD";const B=69;t[t.uppercaseE=B]="uppercaseE";const J=70;t[t.uppercaseF=J]="uppercaseF";const ee=71;t[t.uppercaseG=ee]="uppercaseG";const ie=72;t[t.uppercaseH=ie]="uppercaseH";const se=73;t[t.uppercaseI=se]="uppercaseI";const ke=74;t[t.uppercaseJ=ke]="uppercaseJ";const ye=75;t[t.uppercaseK=ye]="uppercaseK";const be=76;t[t.uppercaseL=be]="uppercaseL";const fe=77;t[t.uppercaseM=fe]="uppercaseM";const Oe=78;t[t.uppercaseN=Oe]="uppercaseN";const qe=79;t[t.uppercaseO=qe]="uppercaseO";const ne=80;t[t.uppercaseP=ne]="uppercaseP";const we=81;t[t.uppercaseQ=we]="uppercaseQ";const Z=82;t[t.uppercaseR=Z]="uppercaseR";const Se=83;t[t.uppercaseS=Se]="uppercaseS";const Xe=84;t[t.uppercaseT=Xe]="uppercaseT";const lt=85;t[t.uppercaseU=lt]="uppercaseU";const Ye=86;t[t.uppercaseV=Ye]="uppercaseV";const bn=87;t[t.uppercaseW=bn]="uppercaseW";const on=88;t[t.uppercaseX=on]="uppercaseX";const Qr=89;t[t.uppercaseY=Qr]="uppercaseY";const Vc=90;t[t.uppercaseZ=Vc]="uppercaseZ";const Uc=91;t[t.leftSquareBracket=Uc]="leftSquareBracket";const qc=92;t[t.backslash=qc]="backslash";const Hc=93;t[t.rightSquareBracket=Hc]="rightSquareBracket";const Gc=94;t[t.caret=Gc]="caret";const Wc=95;t[t.underscore=Wc]="underscore";const Xc=96;t[t.graveAccent=Xc]="graveAccent";const Kc=97;t[t.lowercaseA=Kc]="lowercaseA";const Jc=98;t[t.lowercaseB=Jc]="lowercaseB";const Yc=99;t[t.lowercaseC=Yc]="lowercaseC";const Qc=100;t[t.lowercaseD=Qc]="lowercaseD";const Zc=101;t[t.lowercaseE=Zc]="lowercaseE";const eu=102;t[t.lowercaseF=eu]="lowercaseF";const tu=103;t[t.lowercaseG=tu]="lowercaseG";const nu=104;t[t.lowercaseH=nu]="lowercaseH";const su=105;t[t.lowercaseI=su]="lowercaseI";const ru=106;t[t.lowercaseJ=ru]="lowercaseJ";const iu=107;t[t.lowercaseK=iu]="lowercaseK";const ou=108;t[t.lowercaseL=ou]="lowercaseL";const au=109;t[t.lowercaseM=au]="lowercaseM";const lu=110;t[t.lowercaseN=lu]="lowercaseN";const cu=111;t[t.lowercaseO=cu]="lowercaseO";const uu=112;t[t.lowercaseP=uu]="lowercaseP";const hu=113;t[t.lowercaseQ=hu]="lowercaseQ";const du=114;t[t.lowercaseR=du]="lowercaseR";const pu=115;t[t.lowercaseS=pu]="lowercaseS";const fu=116;t[t.lowercaseT=fu]="lowercaseT";const mu=117;t[t.lowercaseU=mu]="lowercaseU";const gu=118;t[t.lowercaseV=gu]="lowercaseV";const yu=119;t[t.lowercaseW=yu]="lowercaseW";const bu=120;t[t.lowercaseX=bu]="lowercaseX";const xu=121;t[t.lowercaseY=xu]="lowercaseY";const ku=122;t[t.lowercaseZ=ku]="lowercaseZ";const Eu=123;t[t.leftCurlyBrace=Eu]="leftCurlyBrace";const Au=124;t[t.verticalBar=Au]="verticalBar";const wu=125;t[t.rightCurlyBrace=wu]="rightCurlyBrace";const Su=126;t[t.tilde=Su]="tilde";const Iu=160;t[t.nonBreakingSpace=Iu]="nonBreakingSpace";const vu=5760;t[t.oghamSpaceMark=vu]="oghamSpaceMark";const _u=8232;t[t.lineSeparator=_u]="lineSeparator";const Pu=8233;t[t.paragraphSeparator=Pu]="paragraphSeparator"})(P||(P={}));let So,De,Be,h,re,u1;function Cr(){return u1++}function Vb(t){if("pos"in t){const e=qb(t.pos);t.message+=` (${e.line}:${e.column})`,t.loc=e}return t}class Ub{constructor(e,n){this.line=e,this.column=n}}function qb(t){let e=1,n=1;for(let s=0;s<t;s++)re.charCodeAt(s)===P.lineFeed?(e++,n=1):n++;return new Ub(e,n)}function Hb(t,e,n,s){re=t,h=new kt,u1=1,So=e,De=n,Be=s}function me(t){return h.contextualKeyword===t}function Bl(t){const e=Rr();return e.type===o.name&&e.contextualKeyword===t}function ut(t){return h.contextualKeyword===t&&z(o.name)}function rt(t){ut(t)||Ie()}function Ct(){return y(o.eof)||y(o.braceR)||Et()}function Et(){const t=h.tokens[h.tokens.length-1],e=t?t.end:0;for(let n=e;n<h.start;n++){const s=re.charCodeAt(n);if(s===P.lineFeed||s===P.carriageReturn||s===8232||s===8233)return!0}return!1}function h1(){const t=jl();for(let e=h.end;e<t;e++){const n=re.charCodeAt(e);if(n===P.lineFeed||n===P.carriageReturn||n===8232||n===8233)return!0}return!1}function tn(){return z(o.semi)||Ct()}function Je(){tn()||Ie('Unexpected token, expected ";"')}function H(t){z(t)||Ie(`Unexpected token, expected "${jb(t)}"`)}function Ie(t="Unexpected token",e=h.start){if(h.error)return;const n=new SyntaxError(t);n.pos=e,h.error=n,h.pos=re.length,ve(o.eof)}const d1=[9,11,12,P.space,P.nonBreakingSpace,P.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],p1=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,f1=new Uint8Array(65536);for(const t of d1)f1[t]=1;function Gb(t){if(t<48)return t===36;if(t<58)return!0;if(t<65)return!1;if(t<91)return!0;if(t<97)return t===95;if(t<123)return!0;if(t<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const jt=new Uint8Array(65536);for(let t=0;t<128;t++)jt[t]=Gb(t)?1:0;for(let t=128;t<65536;t++)jt[t]=1;for(const t of d1)jt[t]=0;jt[8232]=0,jt[8233]=0;const Tr=jt.slice();for(let t=P.digit0;t<=P.digit9;t++)Tr[t]=0;const m1=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,189,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,216,-1,-1,-1,-1,-1,-1,S._abstract<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,270,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,297,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,324,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,351,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,378,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,405,-1,-1,-1,-1,-1,-1,-1,-1,S._accessor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._as<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,459,-1,-1,-1,-1,-1,594,-1,-1,-1,-1,-1,-1,486,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,513,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,540,-1,-1,-1,-1,-1,-1,S._assert<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,567,-1,-1,-1,-1,-1,-1,-1,S._asserts<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,621,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,648,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._async<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,702,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,729,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,756,-1,-1,-1,-1,-1,-1,S._await<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,810,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,837,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,864,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,891,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._break<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,945,-1,-1,-1,-1,-1,-1,1107,-1,-1,-1,1242,-1,-1,1350,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,972,1026,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,999,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._case<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1053,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1080,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._catch<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1134,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1161,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1188,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1215,-1,-1,-1,-1,-1,-1,-1,S._checks<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1269,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1296,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1323,-1,-1,-1,-1,-1,-1,-1,(o._class<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1377,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1404,1620,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1431,-1,-1,-1,-1,-1,-1,(o._const<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1458,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1485,-1,-1,-1,-1,-1,-1,-1,-1,1512,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1539,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1566,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1593,-1,-1,-1,-1,-1,-1,-1,-1,S._constructor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1647,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1674,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1701,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1728,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._continue<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1782,-1,-1,-1,-1,-1,-1,-1,-1,-1,2349,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1809,1971,-1,-1,2106,-1,-1,-1,-1,-1,2241,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1836,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1863,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1890,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1917,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1944,-1,-1,-1,-1,-1,-1,-1,-1,(o._debugger<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1998,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2025,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2052,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2079,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._declare<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2133,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2160,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2187,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2214,-1,-1,-1,-1,-1,-1,(o._default<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2268,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2295,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2322,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._delete<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._do<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2403,-1,2484,-1,-1,-1,-1,-1,-1,-1,-1,-1,2565,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2430,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2457,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._else<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2511,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2538,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._enum<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2592,-1,-1,-1,2727,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2619,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2646,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2673,-1,-1,-1,-1,-1,-1,(o._export<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2700,-1,-1,-1,-1,-1,-1,-1,S._exports<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2754,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2781,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2808,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2835,-1,-1,-1,-1,-1,-1,-1,(o._extends<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2889,-1,-1,-1,-1,-1,-1,-1,2997,-1,-1,-1,-1,-1,3159,-1,-1,3213,-1,-1,3294,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2916,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2943,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2970,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._false<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3024,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3051,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3078,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3105,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3132,-1,(o._finally<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3186,-1,-1,-1,-1,-1,-1,-1,-1,(o._for<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3240,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3267,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._from<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3321,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3348,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3375,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3402,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3429,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3456,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._function<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3510,-1,-1,-1,-1,-1,-1,3564,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3537,-1,-1,-1,-1,-1,-1,S._get<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3591,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3618,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3645,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3672,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._global<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3726,-1,-1,-1,-1,-1,-1,3753,4077,-1,-1,-1,-1,4590,-1,-1,-1,-1,-1,-1,-1,(o._if<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3780,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3807,-1,-1,3996,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3834,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3861,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3888,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3915,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3942,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3969,-1,-1,-1,-1,-1,-1,-1,S._implements<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4023,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4050,-1,-1,-1,-1,-1,-1,(o._import<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._in<<1)+1,-1,-1,-1,-1,-1,4104,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4185,4401,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4131,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4158,-1,-1,-1,-1,-1,-1,-1,-1,S._infer<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4212,-1,-1,-1,-1,-1,-1,-1,4239,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4266,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4293,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4320,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4347,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4374,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._instanceof<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4428,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4455,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4482,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4509,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4536,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4563,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._interface<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._is<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4644,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4671,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4698,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4725,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._keyof<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4779,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4806,-1,-1,-1,-1,-1,-1,(o._let<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4860,-1,-1,-1,-1,-1,4995,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4887,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4914,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4941,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4968,-1,-1,-1,-1,-1,-1,-1,S._mixins<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5022,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5049,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5076,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5103,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._module<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5157,-1,-1,-1,5373,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5427,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5184,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5211,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5238,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5265,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5292,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5319,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5346,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._namespace<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5400,-1,-1,-1,(o._new<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5454,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5481,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._null<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5535,-1,-1,-1,-1,-1,-1,-1,-1,-1,5562,-1,-1,-1,-1,5697,5751,-1,-1,-1,-1,S._of<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5589,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5616,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5643,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5670,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._opaque<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5724,-1,-1,-1,-1,-1,-1,S._out<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5778,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5805,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5832,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5859,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5886,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5913,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._override<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5967,-1,-1,6345,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5994,-1,-1,-1,-1,-1,6129,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6021,-1,-1,-1,-1,-1,6048,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6075,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6102,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._private<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6156,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6183,-1,-1,-1,-1,-1,-1,-1,-1,-1,6318,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6210,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6237,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6264,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6291,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._protected<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._proto<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6372,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6399,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6426,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6453,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._public<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6507,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6534,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6696,-1,-1,6831,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6561,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6588,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6615,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6642,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6669,-1,S._readonly<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6723,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6750,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6777,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6804,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._require<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6858,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6885,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6912,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._return<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6966,-1,-1,-1,7182,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7236,7371,-1,7479,-1,7614,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6993,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7020,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7047,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7074,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7101,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7128,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7155,-1,-1,-1,-1,-1,-1,-1,S._satisfies<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7209,-1,-1,-1,-1,-1,-1,S._set<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7263,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7290,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7317,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7344,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._static<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7398,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7425,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7452,-1,-1,-1,-1,-1,-1,-1,-1,(o._super<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7506,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7533,-1,-1,-1,-1,-1,-1,-1,-1,-1,7560,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7587,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._switch<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7641,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7668,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7695,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7722,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._symbol<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7776,-1,-1,-1,-1,-1,-1,-1,-1,-1,7938,-1,-1,-1,-1,-1,-1,8046,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7803,-1,-1,-1,-1,-1,-1,-1,-1,7857,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7830,-1,-1,-1,-1,-1,-1,-1,(o._this<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7884,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7911,-1,-1,-1,(o._throw<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7965,-1,-1,-1,8019,-1,-1,-1,-1,-1,-1,7992,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._true<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._try<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8073,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8100,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._type<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8127,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8154,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._typeof<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8208,-1,-1,-1,-1,8343,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8235,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8262,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8289,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8316,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._unique<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8370,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8397,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8424,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,S._using<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8478,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8532,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8505,-1,-1,-1,-1,-1,-1,-1,-1,(o._var<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8559,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8586,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._void<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8640,8748,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8667,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8694,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8721,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._while<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8775,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8802,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._with<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8856,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8883,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._yield<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);function Wb(){let t=0,e=0,n=h.pos;for(;n<re.length&&(e=re.charCodeAt(n),!(e<P.lowercaseA||e>P.lowercaseZ));){const r=m1[t+(e-P.lowercaseA)+1];if(r===-1)break;t=r,n++}const s=m1[t];if(s>-1&&!jt[e]){h.pos=n,s&1?ve(s>>>1):ve(o.name,s>>>1);return}for(;n<re.length;){const r=re.charCodeAt(n);if(jt[r])n++;else if(r===P.backslash){if(n+=2,re.charCodeAt(n)===P.leftCurlyBrace){for(;n<re.length&&re.charCodeAt(n)!==P.rightCurlyBrace;)n++;n++}}else if(r===P.atSign&&re.charCodeAt(n+1)===P.atSign)n+=2;else break}h.pos=n,ve(o.name)}var ge;(function(t){t[t.Access=0]="Access";const n=1;t[t.ExportAccess=n]="ExportAccess";const s=n+1;t[t.TopLevelDeclaration=s]="TopLevelDeclaration";const r=s+1;t[t.FunctionScopedDeclaration=r]="FunctionScopedDeclaration";const i=r+1;t[t.BlockScopedDeclaration=i]="BlockScopedDeclaration";const a=i+1;t[t.ObjectShorthandTopLevelDeclaration=a]="ObjectShorthandTopLevelDeclaration";const l=a+1;t[t.ObjectShorthandFunctionScopedDeclaration=l]="ObjectShorthandFunctionScopedDeclaration";const c=l+1;t[t.ObjectShorthandBlockScopedDeclaration=c]="ObjectShorthandBlockScopedDeclaration";const u=c+1;t[t.ObjectShorthand=u]="ObjectShorthand";const d=u+1;t[t.ImportDeclaration=d]="ImportDeclaration";const m=d+1;t[t.ObjectKey=m]="ObjectKey";const f=m+1;t[t.ImportAccess=f]="ImportAccess"})(ge||(ge={}));var zt;(function(t){t[t.NoChildren=0]="NoChildren";const n=1;t[t.OneChild=n]="OneChild";const s=n+1;t[t.StaticChildren=s]="StaticChildren";const r=s+1;t[t.KeyAfterPropSpread=r]="KeyAfterPropSpread"})(zt||(zt={}));function g1(t){const e=t.identifierRole;return e===ge.TopLevelDeclaration||e===ge.FunctionScopedDeclaration||e===ge.BlockScopedDeclaration||e===ge.ObjectShorthandTopLevelDeclaration||e===ge.ObjectShorthandFunctionScopedDeclaration||e===ge.ObjectShorthandBlockScopedDeclaration}function Xb(t){const e=t.identifierRole;return e===ge.FunctionScopedDeclaration||e===ge.BlockScopedDeclaration||e===ge.ObjectShorthandFunctionScopedDeclaration||e===ge.ObjectShorthandBlockScopedDeclaration}function y1(t){const e=t.identifierRole;return e===ge.TopLevelDeclaration||e===ge.ObjectShorthandTopLevelDeclaration||e===ge.ImportDeclaration}function Kb(t){const e=t.identifierRole;return e===ge.TopLevelDeclaration||e===ge.BlockScopedDeclaration||e===ge.ObjectShorthandTopLevelDeclaration||e===ge.ObjectShorthandBlockScopedDeclaration}function Jb(t){const e=t.identifierRole;return e===ge.FunctionScopedDeclaration||e===ge.ObjectShorthandFunctionScopedDeclaration}function Yb(t){return t.identifierRole===ge.ObjectShorthandTopLevelDeclaration||t.identifierRole===ge.ObjectShorthandBlockScopedDeclaration||t.identifierRole===ge.ObjectShorthandFunctionScopedDeclaration}class Io{constructor(){this.type=h.type,this.contextualKeyword=h.contextualKeyword,this.start=h.start,this.end=h.end,this.scopeDepth=h.scopeDepth,this.isType=h.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}}function G(){h.tokens.push(new Io),E1()}function Pn(){h.tokens.push(new Io),h.start=h.pos,fx()}function Qb(){h.type===o.assign&&--h.pos,hx()}function Ne(t){for(let n=h.tokens.length-t;n<h.tokens.length;n++)h.tokens[n].isType=!0;const e=h.isType;return h.isType=!0,e}function $e(t){h.isType=t}function z(t){return y(t)?(G(),!0):!1}function b1(t){const e=h.isType;h.isType=!0,z(t),h.isType=e}function y(t){return h.type===t}function et(){const t=h.snapshot();G();const e=h.type;return h.restoreFromSnapshot(t),e}class Zb{constructor(e,n){this.type=e,this.contextualKeyword=n}}function Rr(){const t=h.snapshot();G();const e=h.type,n=h.contextualKeyword;return h.restoreFromSnapshot(t),new Zb(e,n)}function jl(){return x1(h.pos)}function x1(t){p1.lastIndex=t;const e=p1.exec(re);return t+e[0].length}function k1(){return re.charCodeAt(jl())}function E1(){if(w1(),h.start=h.pos,h.pos>=re.length){const t=h.tokens;t.length>=2&&t[t.length-1].start>=re.length&&t[t.length-2].start>=re.length&&Ie("Unexpectedly reached the end of input."),ve(o.eof);return}ex(re.charCodeAt(h.pos))}function ex(t){Tr[t]||t===P.backslash||t===P.atSign&&re.charCodeAt(h.pos+1)===P.atSign?Wb():v1(t)}function tx(){for(;re.charCodeAt(h.pos)!==P.asterisk||re.charCodeAt(h.pos+1)!==P.slash;)if(h.pos++,h.pos>re.length){Ie("Unterminated comment",h.pos-2);return}h.pos+=2}function A1(t){let e=re.charCodeAt(h.pos+=t);if(h.pos<re.length)for(;e!==P.lineFeed&&e!==P.carriageReturn&&e!==P.lineSeparator&&e!==P.paragraphSeparator&&++h.pos<re.length;)e=re.charCodeAt(h.pos)}function w1(){for(;h.pos<re.length;){const t=re.charCodeAt(h.pos);switch(t){case P.carriageReturn:re.charCodeAt(h.pos+1)===P.lineFeed&&++h.pos;case P.lineFeed:case P.lineSeparator:case P.paragraphSeparator:++h.pos;break;case P.slash:switch(re.charCodeAt(h.pos+1)){case P.asterisk:h.pos+=2,tx();break;case P.slash:A1(2);break;default:return}break;default:if(f1[t])++h.pos;else return}}}function ve(t,e=S.NONE){h.end=h.pos,h.type=t,h.contextualKeyword=e}function nx(){const t=re.charCodeAt(h.pos+1);if(t>=P.digit0&&t<=P.digit9){_1(!0);return}t===P.dot&&re.charCodeAt(h.pos+2)===P.dot?(h.pos+=3,ve(o.ellipsis)):(++h.pos,ve(o.dot))}function sx(){re.charCodeAt(h.pos+1)===P.equalsTo?je(o.assign,2):je(o.slash,1)}function rx(t){let e=t===P.asterisk?o.star:o.modulo,n=1,s=re.charCodeAt(h.pos+1);t===P.asterisk&&s===P.asterisk&&(n++,s=re.charCodeAt(h.pos+2),e=o.exponent),s===P.equalsTo&&re.charCodeAt(h.pos+2)!==P.greaterThan&&(n++,e=o.assign),je(e,n)}function ix(t){const e=re.charCodeAt(h.pos+1);if(e===t){re.charCodeAt(h.pos+2)===P.equalsTo?je(o.assign,3):je(t===P.verticalBar?o.logicalOR:o.logicalAND,2);return}if(t===P.verticalBar){if(e===P.greaterThan){je(o.pipeline,2);return}else if(e===P.rightCurlyBrace&&Be){je(o.braceBarR,2);return}}if(e===P.equalsTo){je(o.assign,2);return}je(t===P.verticalBar?o.bitwiseOR:o.bitwiseAND,1)}function ox(){re.charCodeAt(h.pos+1)===P.equalsTo?je(o.assign,2):je(o.bitwiseXOR,1)}function ax(t){const e=re.charCodeAt(h.pos+1);if(e===t){je(o.preIncDec,2);return}e===P.equalsTo?je(o.assign,2):t===P.plusSign?je(o.plus,1):je(o.minus,1)}function lx(){const t=re.charCodeAt(h.pos+1);if(t===P.lessThan){if(re.charCodeAt(h.pos+2)===P.equalsTo){je(o.assign,3);return}h.isType?je(o.lessThan,1):je(o.bitShiftL,2);return}t===P.equalsTo?je(o.relationalOrEqual,2):je(o.lessThan,1)}function S1(){if(h.isType){je(o.greaterThan,1);return}const t=re.charCodeAt(h.pos+1);if(t===P.greaterThan){const e=re.charCodeAt(h.pos+2)===P.greaterThan?3:2;if(re.charCodeAt(h.pos+e)===P.equalsTo){je(o.assign,e+1);return}je(o.bitShiftR,e);return}t===P.equalsTo?je(o.relationalOrEqual,2):je(o.greaterThan,1)}function I1(){h.type===o.greaterThan&&(h.pos-=1,S1())}function cx(t){const e=re.charCodeAt(h.pos+1);if(e===P.equalsTo){je(o.equality,re.charCodeAt(h.pos+2)===P.equalsTo?3:2);return}if(t===P.equalsTo&&e===P.greaterThan){h.pos+=2,ve(o.arrow);return}je(t===P.equalsTo?o.eq:o.bang,1)}function ux(){const t=re.charCodeAt(h.pos+1),e=re.charCodeAt(h.pos+2);t===P.questionMark&&!(Be&&h.isType)?e===P.equalsTo?je(o.assign,3):je(o.nullishCoalescing,2):t===P.dot&&!(e>=P.digit0&&e<=P.digit9)?(h.pos+=2,ve(o.questionDot)):(++h.pos,ve(o.question))}function v1(t){switch(t){case P.numberSign:++h.pos,ve(o.hash);return;case P.dot:nx();return;case P.leftParenthesis:++h.pos,ve(o.parenL);return;case P.rightParenthesis:++h.pos,ve(o.parenR);return;case P.semicolon:++h.pos,ve(o.semi);return;case P.comma:++h.pos,ve(o.comma);return;case P.leftSquareBracket:++h.pos,ve(o.bracketL);return;case P.rightSquareBracket:++h.pos,ve(o.bracketR);return;case P.leftCurlyBrace:Be&&re.charCodeAt(h.pos+1)===P.verticalBar?je(o.braceBarL,2):(++h.pos,ve(o.braceL));return;case P.rightCurlyBrace:++h.pos,ve(o.braceR);return;case P.colon:re.charCodeAt(h.pos+1)===P.colon?je(o.doubleColon,2):(++h.pos,ve(o.colon));return;case P.questionMark:ux();return;case P.atSign:++h.pos,ve(o.at);return;case P.graveAccent:++h.pos,ve(o.backQuote);return;case P.digit0:{const e=re.charCodeAt(h.pos+1);if(e===P.lowercaseX||e===P.uppercaseX||e===P.lowercaseO||e===P.uppercaseO||e===P.lowercaseB||e===P.uppercaseB){dx();return}}case P.digit1:case P.digit2:case P.digit3:case P.digit4:case P.digit5:case P.digit6:case P.digit7:case P.digit8:case P.digit9:_1(!1);return;case P.quotationMark:case P.apostrophe:px(t);return;case P.slash:sx();return;case P.percentSign:case P.asterisk:rx(t);return;case P.verticalBar:case P.ampersand:ix(t);return;case P.caret:ox();return;case P.plusSign:case P.dash:ax(t);return;case P.lessThan:lx();return;case P.greaterThan:S1();return;case P.equalsTo:case P.exclamationMark:cx(t);return;case P.tilde:je(o.tilde,1);return}Ie(`Unexpected character '${String.fromCharCode(t)}'`,h.pos)}function je(t,e){h.pos+=e,ve(t)}function hx(){const t=h.pos;let e=!1,n=!1;for(;;){if(h.pos>=re.length){Ie("Unterminated regular expression",t);return}const s=re.charCodeAt(h.pos);if(e)e=!1;else{if(s===P.leftSquareBracket)n=!0;else if(s===P.rightSquareBracket&&n)n=!1;else if(s===P.slash&&!n)break;e=s===P.backslash}++h.pos}++h.pos,mx(),ve(o.regexp)}function zl(){for(;;){const t=re.charCodeAt(h.pos);if(t>=P.digit0&&t<=P.digit9||t===P.underscore)h.pos++;else break}}function dx(){for(h.pos+=2;;){const e=re.charCodeAt(h.pos);if(e>=P.digit0&&e<=P.digit9||e>=P.lowercaseA&&e<=P.lowercaseF||e>=P.uppercaseA&&e<=P.uppercaseF||e===P.underscore)h.pos++;else break}re.charCodeAt(h.pos)===P.lowercaseN?(++h.pos,ve(o.bigint)):ve(o.num)}function _1(t){let e=!1,n=!1;t||zl();let s=re.charCodeAt(h.pos);if(s===P.dot&&(++h.pos,zl(),s=re.charCodeAt(h.pos)),(s===P.uppercaseE||s===P.lowercaseE)&&(s=re.charCodeAt(++h.pos),(s===P.plusSign||s===P.dash)&&++h.pos,zl(),s=re.charCodeAt(h.pos)),s===P.lowercaseN?(++h.pos,e=!0):s===P.lowercaseM&&(++h.pos,n=!0),e){ve(o.bigint);return}if(n){ve(o.decimal);return}ve(o.num)}function px(t){for(h.pos++;;){if(h.pos>=re.length){Ie("Unterminated string constant");return}const e=re.charCodeAt(h.pos);if(e===P.backslash)h.pos++;else if(e===t)break;h.pos++}h.pos++,ve(o.string)}function fx(){for(;;){if(h.pos>=re.length){Ie("Unterminated template");return}const t=re.charCodeAt(h.pos);if(t===P.graveAccent||t===P.dollarSign&&re.charCodeAt(h.pos+1)===P.leftCurlyBrace){if(h.pos===h.start&&y(o.template))if(t===P.dollarSign){h.pos+=2,ve(o.dollarBraceL);return}else{++h.pos,ve(o.backQuote);return}ve(o.template);return}t===P.backslash&&h.pos++,h.pos++}}function mx(){for(;h.pos<re.length;){const t=re.charCodeAt(h.pos);if(jt[t])h.pos++;else if(t===P.backslash){if(h.pos+=2,re.charCodeAt(h.pos)===P.leftCurlyBrace){for(;h.pos<re.length&&re.charCodeAt(h.pos)!==P.rightCurlyBrace;)h.pos++;h.pos++}}else break}}function Dr(t,e=t.currentIndex()){let n=e+1;if(vo(t,n)){const s=t.identifierNameAtIndex(e);return{isType:!1,leftName:s,rightName:s,endIndex:n}}if(n++,vo(t,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};if(n++,vo(t,n))return{isType:!1,leftName:t.identifierNameAtIndex(e),rightName:t.identifierNameAtIndex(e+2),endIndex:n};if(n++,vo(t,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};throw new Error(`Unexpected import/export specifier at ${e}`)}function vo(t,e){const n=t.tokens[e];return n.type===o.braceR||n.type===o.comma}var gx=new Map([["quot",'"'],["amp","&"],["apos","'"],["lt","<"],["gt",">"],["nbsp"," "],["iexcl","¡"],["cent","¢"],["pound","£"],["curren","¤"],["yen","¥"],["brvbar","¦"],["sect","§"],["uml","¨"],["copy","©"],["ordf","ª"],["laquo","«"],["not","¬"],["shy","­"],["reg","®"],["macr","¯"],["deg","°"],["plusmn","±"],["sup2","²"],["sup3","³"],["acute","´"],["micro","µ"],["para","¶"],["middot","·"],["cedil","¸"],["sup1","¹"],["ordm","º"],["raquo","»"],["frac14","¼"],["frac12","½"],["frac34","¾"],["iquest","¿"],["Agrave","À"],["Aacute","Á"],["Acirc","Â"],["Atilde","Ã"],["Auml","Ä"],["Aring","Å"],["AElig","Æ"],["Ccedil","Ç"],["Egrave","È"],["Eacute","É"],["Ecirc","Ê"],["Euml","Ë"],["Igrave","Ì"],["Iacute","Í"],["Icirc","Î"],["Iuml","Ï"],["ETH","Ð"],["Ntilde","Ñ"],["Ograve","Ò"],["Oacute","Ó"],["Ocirc","Ô"],["Otilde","Õ"],["Ouml","Ö"],["times","×"],["Oslash","Ø"],["Ugrave","Ù"],["Uacute","Ú"],["Ucirc","Û"],["Uuml","Ü"],["Yacute","Ý"],["THORN","Þ"],["szlig","ß"],["agrave","à"],["aacute","á"],["acirc","â"],["atilde","ã"],["auml","ä"],["aring","å"],["aelig","æ"],["ccedil","ç"],["egrave","è"],["eacute","é"],["ecirc","ê"],["euml","ë"],["igrave","ì"],["iacute","í"],["icirc","î"],["iuml","ï"],["eth","ð"],["ntilde","ñ"],["ograve","ò"],["oacute","ó"],["ocirc","ô"],["otilde","õ"],["ouml","ö"],["divide","÷"],["oslash","ø"],["ugrave","ù"],["uacute","ú"],["ucirc","û"],["uuml","ü"],["yacute","ý"],["thorn","þ"],["yuml","ÿ"],["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","♦"]]);function P1(t){const[e,n]=$1(t.jsxPragma||"React.createElement"),[s,r]=$1(t.jsxFragmentPragma||"React.Fragment");return{base:e,suffix:n,fragmentBase:s,fragmentSuffix:r}}function $1(t){let e=t.indexOf(".");return e===-1&&(e=t.length),[t.slice(0,e),t.slice(e)]}class Vt{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}class rs extends Vt{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(e,n,s,r,i){super(),this.rootTransformer=e,this.tokens=n,this.importProcessor=s,this.nameManager=r,this.options=i,rs.prototype.__init.call(this),rs.prototype.__init2.call(this),rs.prototype.__init3.call(this),rs.prototype.__init4.call(this),rs.prototype.__init5.call(this),this.jsxPragmaInfo=P1(i),this.isAutomaticRuntime=i.jsxRuntime==="automatic",this.jsxImportSource=i.jsxImportSource||"react"}process(){return this.tokens.matches1(o.jsxTagStart)?(this.processJSXTag(),!0):!1}getPrefixCode(){let e="";if(this.filenameVarName&&(e+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime)if(this.importProcessor)for(const[n,s]of Object.entries(this.cjsAutomaticModuleNameResolutions))e+=`var ${s} = require("${n}");`;else{const{createElement:n,...s}=this.esmAutomaticImportNameResolutions;n&&(e+=`import {createElement as ${n}} from "${this.jsxImportSource}";`);const r=Object.entries(s).map(([i,a])=>`${i} as ${a}`).join(", ");if(r){const i=this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime");e+=`import {${r}} from "${i}";`}}return e}processJSXTag(){const{jsxRole:e,start:n}=this.tokens.currentToken(),s=this.options.production?null:this.getElementLocationCode(n);this.isAutomaticRuntime&&e!==zt.KeyAfterPropSpread?this.transformTagToJSXFunc(s,e):this.transformTagToCreateElement(s)}getElementLocationCode(e){return`lineNumber: ${this.getLineNumberForIndex(e)}`}getLineNumberForIndex(e){const n=this.tokens.code;for(;this.lastIndex<e&&this.lastIndex<n.length;)n[this.lastIndex]===`
62
+ `&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(e,n){const s=n===zt.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(s));let r=null;if(this.tokens.matches1(o.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(n);else{if(this.processTagIntro(),this.tokens.appendCode(", {"),r=this.processProps(!0),this.tokens.matches2(o.slash,o.jsxTagEnd))this.tokens.appendCode("}");else if(this.tokens.matches1(o.jsxTagEnd))this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(n);else throw new Error("Expected either /> or > at the end of the tag.");r&&this.tokens.appendCode(`, ${r}`)}for(this.options.production||(r===null&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${s}, ${this.getDevSource(e)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(o.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(e){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(o.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(e),!this.tokens.matches2(o.slash,o.jsxTagEnd))if(this.tokens.matches1(o.jsxTagEnd))this.tokens.removeToken(),this.processChildren(!0);else throw new Error("Expected either /> or > at the end of the tag.");for(this.tokens.removeInitialToken();!this.tokens.matches1(o.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(e){return this.options.production?e?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{const{jsxPragmaInfo:e}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.base)||e.base}${e.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{const{jsxPragmaInfo:e}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.fragmentBase)||e.fragmentBase)+e.fragmentSuffix}}claimAutoImportedFuncInvocation(e,n){const s=this.claimAutoImportedName(e,n);return this.importProcessor?`${s}.call(void 0, `:`${s}(`}claimAutoImportedName(e,n){if(this.importProcessor){const s=this.jsxImportSource+n;return this.cjsAutomaticModuleNameResolutions[s]||(this.cjsAutomaticModuleNameResolutions[s]=this.importProcessor.getFreeIdentifierForPath(s)),`${this.cjsAutomaticModuleNameResolutions[s]}.${e}`}else return this.esmAutomaticImportNameResolutions[e]||(this.esmAutomaticImportNameResolutions[e]=this.nameManager.claimFreeName(`_${e}`)),this.esmAutomaticImportNameResolutions[e]}processTagIntro(){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType||!this.tokens.matches2AtIndex(e-1,o.jsxName,o.jsxName)&&!this.tokens.matches2AtIndex(e-1,o.greaterThan,o.jsxName)&&!this.tokens.matches1AtIndex(e,o.braceL)&&!this.tokens.matches1AtIndex(e,o.jsxTagEnd)&&!this.tokens.matches2AtIndex(e,o.slash,o.jsxTagEnd);)e++;if(e===this.tokens.currentIndex()+1){const n=this.tokens.identifierName();N1(n)&&this.tokens.replaceToken(`'${n}'`)}for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(e){const n=this.options.production?"":`__self: this, __source: ${this.getDevSource(e)}`;if(!this.tokens.matches1(o.jsxName)&&!this.tokens.matches1(o.braceL)){n?this.tokens.appendCode(`, {${n}}`):this.tokens.appendCode(", null");return}this.tokens.appendCode(", {"),this.processProps(!1),n?this.tokens.appendCode(` ${n}}`):this.tokens.appendCode("}")}processProps(e){let n=null;for(;;){if(this.tokens.matches2(o.jsxName,o.eq)){const s=this.tokens.identifierName();if(e&&s==="key"){n!==null&&this.tokens.appendCode(n.replace(/[^\n]/g,"")),this.tokens.removeToken(),this.tokens.removeToken();const r=this.tokens.snapshot();this.processPropValue(),n=this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(r);continue}else this.processPropName(s),this.tokens.replaceToken(": "),this.processPropValue()}else if(this.tokens.matches1(o.jsxName)){const s=this.tokens.identifierName();this.processPropName(s),this.tokens.appendCode(": true")}else if(this.tokens.matches1(o.braceL))this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("");else break;this.tokens.appendCode(",")}return n}processPropName(e){e.includes("-")?this.tokens.replaceToken(`'${e}'`):this.tokens.copyToken()}processPropValue(){this.tokens.matches1(o.braceL)?(this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")):this.tokens.matches1(o.jsxTagStart)?this.processJSXTag():this.processStringPropValue()}processStringPropValue(){const e=this.tokens.currentToken(),n=this.tokens.code.slice(e.start+1,e.end-1),s=C1(n),r=bx(n);this.tokens.replaceToken(r+s)}processAutomaticChildrenAndEndProps(e){e===zt.StaticChildren?(this.tokens.appendCode(" children: ["),this.processChildren(!1),this.tokens.appendCode("]}")):(e===zt.OneChild&&this.tokens.appendCode(" children: "),this.processChildren(!1),this.tokens.appendCode("}"))}processChildren(e){let n=e;for(;;){if(this.tokens.matches2(o.jsxTagStart,o.slash))return;let s=!1;if(this.tokens.matches1(o.braceL))this.tokens.matches2(o.braceL,o.braceR)?(this.tokens.replaceToken(""),this.tokens.replaceToken("")):(this.tokens.replaceToken(n?", ":""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(""),s=!0);else if(this.tokens.matches1(o.jsxTagStart))this.tokens.appendCode(n?", ":""),this.processJSXTag(),s=!0;else if(this.tokens.matches1(o.jsxText)||this.tokens.matches1(o.jsxEmptyText))s=this.processChildTextElement(n);else throw new Error("Unexpected token when processing JSX children.");s&&(n=!0)}}processChildTextElement(e){const n=this.tokens.currentToken(),s=this.tokens.code.slice(n.start,n.end),r=C1(s),i=yx(s);return i==='""'?(this.tokens.replaceToken(r),!1):(this.tokens.replaceToken(`${e?", ":""}${i}${r}`),!0)}getDevSource(e){return`{fileName: ${this.getFilenameVarName()}, ${e}}`}getFilenameVarName(){return this.filenameVarName||(this.filenameVarName=this.nameManager.claimFreeName("_jsxFileName")),this.filenameVarName}}function N1(t){const e=t.charCodeAt(0);return e>=P.lowercaseA&&e<=P.lowercaseZ}function yx(t){let e="",n="",s=!1,r=!1;for(let i=0;i<t.length;i++){const a=t[i];if(a===" "||a===" "||a==="\r")s||(n+=a);else if(a===`
63
+ `)n="",s=!0;else{if(r&&s&&(e+=" "),e+=n,n="",a==="&"){const{entity:l,newI:c}=T1(t,i+1);i=c-1,e+=l}else e+=a;r=!0,s=!1}}return s||(e+=n),JSON.stringify(e)}function C1(t){let e=0,n=0;for(const s of t)s===`
64
64
  `?(e++,n=0):s===" "&&n++;return`
65
- `.repeat(e)+" ".repeat(n)}function gx(t){let e="";for(let n=0;n<t.length;n++){const s=t[n];if(s===`
65
+ `.repeat(e)+" ".repeat(n)}function bx(t){let e="";for(let n=0;n<t.length;n++){const s=t[n];if(s===`
66
66
  `)if(/\s/.test(t[n+1]))for(e+=" ";n<t.length&&/\s/.test(t[n+1]);)n++;else e+=`
67
- `;else if(s==="&"){const{entity:i,newI:r}=N1(t,n+1);e+=i,n=r-1}else e+=s}return JSON.stringify(e)}function N1(t,e){let n="",s=0,i,r=e;if(t[r]==="#"){let a=10;r++;let l;if(t[r]==="x")for(a=16,r++,l=r;r<t.length&&bx(t.charCodeAt(r));)r++;else for(l=r;r<t.length&&yx(t.charCodeAt(r));)r++;if(t[r]===";"){const c=t.slice(l,r);c&&(r++,i=String.fromCodePoint(parseInt(c,a)))}}else for(;r<t.length&&s++<10;){const a=t[r];if(r++,a===";"){i=fx.get(n);break}n+=a}return i?{entity:i,newI:r}:{entity:"&",newI:e}}function yx(t){return t>=P.digit0&&t<=P.digit9}function bx(t){return t>=P.digit0&&t<=P.digit9||t>=P.lowercaseA&&t<=P.lowercaseF||t>=P.uppercaseA&&t<=P.uppercaseF}function C1(t,e){const n=v1(e),s=new Set;for(let i=0;i<t.tokens.length;i++){const r=t.tokens[i];if(r.type===o.name&&!r.isType&&(r.identifierRole===ge.Access||r.identifierRole===ge.ObjectShorthand||r.identifierRole===ge.ExportAccess)&&!r.shadowsGlobal&&s.add(t.identifierNameForToken(r)),r.type===o.jsxTagStart&&s.add(n.base),r.type===o.jsxTagStart&&i+1<t.tokens.length&&t.tokens[i+1].type===o.jsxTagEnd&&(s.add(n.base),s.add(n.fragmentBase)),r.type===o.jsxName&&r.identifierRole===ge.Access){const a=t.identifierNameForToken(r);(!P1(a)||t.tokens[i+1].type===o.dot)&&s.add(t.identifierNameForToken(r))}}return s}class is{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(e,n,s,i,r,a,l){this.nameManager=e,this.tokens=n,this.enableLegacyTypeScriptModuleInterop=s,this.options=i,this.isTypeScriptTransformEnabled=r,this.keepUnusedImports=a,this.helperManager=l,is.prototype.__init.call(this),is.prototype.__init2.call(this),is.prototype.__init3.call(this),is.prototype.__init4.call(this),is.prototype.__init5.call(this)}preprocessTokens(){for(let e=0;e<this.tokens.tokens.length;e++)this.tokens.matches1AtIndex(e,o._import)&&!this.tokens.matches3AtIndex(e,o._import,o.name,o.eq)&&this.preprocessImportAtIndex(e),this.tokens.matches1AtIndex(e,o._export)&&!this.tokens.matches2AtIndex(e,o._export,o.eq)&&this.preprocessExportAtIndex(e);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=C1(this.tokens,this.options);for(const[e,n]of this.importInfoByPath.entries()){if(n.hasBareImport||n.hasStarExport||n.exportStarNames.length>0||n.namedExports.length>0)continue;[...n.defaultNames,...n.wildcardNames,...n.namedImports.map(({localName:i})=>i)].every(i=>this.shouldAutomaticallyElideImportedName(i))&&this.importsToReplace.set(e,"")}}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}generateImportReplacements(){for(const[e,n]of this.importInfoByPath.entries()){const{defaultNames:s,wildcardNames:i,namedImports:r,namedExports:a,exportStarNames:l,hasStarExport:c}=n;if(s.length===0&&i.length===0&&r.length===0&&a.length===0&&l.length===0&&!c){this.importsToReplace.set(e,`require('${e}');`);continue}const u=this.getFreeIdentifierForPath(e);let d;this.enableLegacyTypeScriptModuleInterop?d=u:d=i.length>0?i[0]:this.getFreeIdentifierForPath(e);let m=`var ${u} = require('${e}');`;if(i.length>0)for(const f of i){const g=this.enableLegacyTypeScriptModuleInterop?u:`${this.helperManager.getHelperName("interopRequireWildcard")}(${u})`;m+=` var ${f} = ${g};`}else l.length>0&&d!==u?m+=` var ${d} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${u});`:s.length>0&&d!==u&&(m+=` var ${d} = ${this.helperManager.getHelperName("interopRequireDefault")}(${u});`);for(const{importedName:f,localName:g}of a)m+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${u}, '${g}', '${f}');`;for(const f of l)m+=` exports.${f} = ${d};`;c&&(m+=` ${this.helperManager.getHelperName("createStarExport")}(${u});`),this.importsToReplace.set(e,m);for(const f of s)this.identifierReplacements.set(f,`${d}.default`);for(const{importedName:f,localName:g}of r)this.identifierReplacements.set(g,`${u}.${f}`)}}getFreeIdentifierForPath(e){const n=e.split("/"),i=n[n.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${i}`)}preprocessImportAtIndex(e){const n=[],s=[],i=[];if(e++,(this.tokens.matchesContextualAtIndex(e,S._type)||this.tokens.matches1AtIndex(e,o._typeof))&&!this.tokens.matches1AtIndex(e+1,o.comma)&&!this.tokens.matchesContextualAtIndex(e+1,S._from)||this.tokens.matches1AtIndex(e,o.parenL))return;if(this.tokens.matches1AtIndex(e,o.name)&&(n.push(this.tokens.identifierNameAtIndex(e)),e++,this.tokens.matches1AtIndex(e,o.comma)&&e++),this.tokens.matches1AtIndex(e,o.star)&&(e+=2,s.push(this.tokens.identifierNameAtIndex(e)),e++),this.tokens.matches1AtIndex(e,o.braceL)){const l=this.getNamedImports(e+1);e=l.newIndex;for(const c of l.namedImports)c.importedName==="default"?n.push(c.localName):i.push(c)}if(this.tokens.matchesContextualAtIndex(e,S._from)&&e++,!this.tokens.matches1AtIndex(e,o.string))throw new Error("Expected string token at the end of import statement.");const r=this.tokens.stringValueAtIndex(e),a=this.getImportInfo(r);a.defaultNames.push(...n),a.wildcardNames.push(...s),a.namedImports.push(...i),n.length===0&&s.length===0&&i.length===0&&(a.hasBareImport=!0)}preprocessExportAtIndex(e){if(this.tokens.matches2AtIndex(e,o._export,o._var)||this.tokens.matches2AtIndex(e,o._export,o._let)||this.tokens.matches2AtIndex(e,o._export,o._const))this.preprocessVarExportAtIndex(e);else if(this.tokens.matches2AtIndex(e,o._export,o._function)||this.tokens.matches2AtIndex(e,o._export,o._class)){const n=this.tokens.identifierNameAtIndex(e+2);this.addExportBinding(n,n)}else if(this.tokens.matches3AtIndex(e,o._export,o.name,o._function)){const n=this.tokens.identifierNameAtIndex(e+3);this.addExportBinding(n,n)}else this.tokens.matches2AtIndex(e,o._export,o.braceL)?this.preprocessNamedExportAtIndex(e):this.tokens.matches2AtIndex(e,o._export,o.star)&&this.preprocessExportStarAtIndex(e)}preprocessVarExportAtIndex(e){let n=0;for(let s=e+2;;s++)if(this.tokens.matches1AtIndex(s,o.braceL)||this.tokens.matches1AtIndex(s,o.dollarBraceL)||this.tokens.matches1AtIndex(s,o.bracketL))n++;else if(this.tokens.matches1AtIndex(s,o.braceR)||this.tokens.matches1AtIndex(s,o.bracketR))n--;else{if(n===0&&!this.tokens.matches1AtIndex(s,o.name))break;if(this.tokens.matches1AtIndex(1,o.eq)){const i=this.tokens.currentToken().rhsEndIndex;if(i==null)throw new Error("Expected = token with an end index.");s=i-1}else{const i=this.tokens.tokens[s];if(f1(i)){const r=this.tokens.identifierNameAtIndex(s);this.identifierReplacements.set(r,`exports.${r}`)}}}}preprocessNamedExportAtIndex(e){e+=2;const{newIndex:n,namedImports:s}=this.getNamedImports(e);if(e=n,this.tokens.matchesContextualAtIndex(e,S._from))e++;else{for(const{importedName:a,localName:l}of s)this.addExportBinding(a,l);return}if(!this.tokens.matches1AtIndex(e,o.string))throw new Error("Expected string token at the end of import statement.");const i=this.tokens.stringValueAtIndex(e);this.getImportInfo(i).namedExports.push(...s)}preprocessExportStarAtIndex(e){let n=null;if(this.tokens.matches3AtIndex(e,o._export,o.star,o._as)?(e+=3,n=this.tokens.identifierNameAtIndex(e),e+=2):e+=3,!this.tokens.matches1AtIndex(e,o.string))throw new Error("Expected string token at the end of star export statement.");const s=this.tokens.stringValueAtIndex(e),i=this.getImportInfo(s);n!==null?i.exportStarNames.push(n):i.hasStarExport=!0}getNamedImports(e){const n=[];for(;;){if(this.tokens.matches1AtIndex(e,o.braceR)){e++;break}const s=Ti(this.tokens,e);if(e=s.endIndex,s.isType||n.push({importedName:s.leftName,localName:s.rightName}),this.tokens.matches2AtIndex(e,o.comma,o.braceR)){e+=2;break}else if(this.tokens.matches1AtIndex(e,o.braceR)){e++;break}else if(this.tokens.matches1AtIndex(e,o.comma))e++;else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[e])}`)}return{newIndex:e,namedImports:n}}getImportInfo(e){const n=this.importInfoByPath.get(e);if(n)return n;const s={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(e,s),s}addExportBinding(e,n){this.exportBindingsByLocalName.has(e)||this.exportBindingsByLocalName.set(e,[]),this.exportBindingsByLocalName.get(e).push(n)}claimImportCode(e){const n=this.importsToReplace.get(e);return this.importsToReplace.set(e,""),n||""}getIdentifierReplacement(e){return this.identifierReplacements.get(e)||null}resolveExportBinding(e){const n=this.exportBindingsByLocalName.get(e);return!n||n.length===0?null:n.map(s=>`exports.${s}`).join(" = ")}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}var Ri={exports:{}},xx=Ri.exports,T1;function kx(){return T1||(T1=1,function(t,e){(function(n,s){s(e)})(xx,function(n){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=new Uint8Array(64),l=new Uint8Array(128);for(let _=0;_<r.length;_++){const N=r.charCodeAt(_);a[_]=N,l[N]=_}function c(_,N){let C=0,R=0,M=0;do{const K=_.next();M=l[K],C|=(M&31)<<R,R+=5}while(M&32);const q=C&1;return C>>>=1,q&&(C=-2147483648|-C),N+C}function u(_,N,C){let R=N-C;R=R<0?-R<<1|1:R<<1;do{let M=R&31;R>>>=5,R>0&&(M|=32),_.write(a[M])}while(R>0);return N}function d(_,N){return _.pos>=N?!1:_.peek()!==44}const m=1024*16,f=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(_){return Buffer.from(_.buffer,_.byteOffset,_.byteLength).toString()}}:{decode(_){let N="";for(let C=0;C<_.length;C++)N+=String.fromCharCode(_[C]);return N}};class g{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(m)}write(N){const{buffer:C}=this;C[this.pos++]=N,this.pos===m&&(this.out+=f.decode(C),this.pos=0)}flush(){const{buffer:N,out:C,pos:R}=this;return R>0?C+f.decode(N.subarray(0,R)):C}}class E{constructor(N){this.pos=0,this.buffer=N}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(N){const{buffer:C,pos:R}=this,M=C.indexOf(N,R);return M===-1?C.length:M}}const k=[];function I(_){const{length:N}=_,C=new E(_),R=[],M=[];let q=0;for(;C.pos<N;C.pos++){q=c(C,q);const K=c(C,0);if(!d(C,N)){const ce=M.pop();ce[2]=q,ce[3]=K;continue}const X=c(C,0),de=c(C,0)&1?[q,K,0,0,X,c(C,0)]:[q,K,0,0,X];let he=k;if(d(C,N)){he=[];do{const ce=c(C,0);he.push(ce)}while(d(C,N))}de.vars=he,R.push(de),M.push(de)}return R}function A(_){const N=new g;for(let C=0;C<_.length;)C=x(_,C,N,[0]);return N.flush()}function x(_,N,C,R){const M=_[N],{0:q,1:K,2:X,3:ae,4:T,vars:de}=M;N>0&&C.write(44),R[0]=u(C,q,R[0]),u(C,K,0),u(C,T,0);const he=M.length===6?1:0;u(C,he,0),M.length===6&&u(C,M[5],0);for(const ce of de)u(C,ce,0);for(N++;N<_.length;){const ce=_[N],{0:L,1:b}=ce;if(L>X||L===X&&b>=ae)break;N=x(_,N,C,R)}return C.write(44),R[0]=u(C,X,R[0]),u(C,ae,0),N}function w(_){const{length:N}=_,C=new E(_),R=[],M=[];let q=0,K=0,X=0,ae=0,T=0,de=0,he=0,ce=0;do{const L=C.indexOf(";");let b=0;for(;C.pos<L;C.pos++){if(b=c(C,b),!d(C,L)){const ye=M.pop();ye[2]=q,ye[3]=b;continue}const F=c(C,0),B=F&1,J=F&2,ee=F&4;let re=null,se=k,ke;if(B){const ye=c(C,K);X=c(C,K===ye?X:0),K=ye,ke=[q,b,0,0,ye,X]}else ke=[q,b,0,0];if(ke.isScope=!!ee,J){const ye=ae,be=T;ae=c(C,ae);const fe=ye===ae;T=c(C,fe?T:0),de=c(C,fe&&be===T?de:0),re=[ae,T,de]}if(ke.callsite=re,d(C,L)){se=[];do{he=q,ce=b;const ye=c(C,0);let be;if(ye<-1){be=[[c(C,0)]];for(let fe=-1;fe>ye;fe--){const Oe=he;he=c(C,he),ce=c(C,he===Oe?ce:0);const qe=c(C,0);be.push([qe,he,ce])}}else be=[[ye]];se.push(be)}while(d(C,L))}ke.bindings=se,R.push(ke),M.push(ke)}q++,C.pos=L+1}while(C.pos<N);return R}function v(_){if(_.length===0)return"";const N=new g;for(let C=0;C<_.length;)C=$(_,C,N,[0,0,0,0,0,0,0]);return N.flush()}function $(_,N,C,R){const M=_[N],{0:q,1:K,2:X,3:ae,isScope:T,callsite:de,bindings:he}=M;R[0]<q?(D(C,R[0],q),R[0]=q,R[1]=0):N>0&&C.write(44),R[1]=u(C,M[1],R[1]);const ce=(M.length===6?1:0)|(de?2:0)|(T?4:0);if(u(C,ce,0),M.length===6){const{4:L,5:b}=M;L!==R[2]&&(R[3]=0),R[2]=u(C,L,R[2]),R[3]=u(C,b,R[3])}if(de){const{0:L,1:b,2:F}=M.callsite;L!==R[4]?(R[5]=0,R[6]=0):b!==R[5]&&(R[6]=0),R[4]=u(C,L,R[4]),R[5]=u(C,b,R[5]),R[6]=u(C,F,R[6])}if(he)for(const L of he){L.length>1&&u(C,-L.length,0);const b=L[0][0];u(C,b,0);let F=q,B=K;for(let J=1;J<L.length;J++){const ee=L[J];F=u(C,ee[1],F),B=u(C,ee[2],B),u(C,ee[0],0)}}for(N++;N<_.length;){const L=_[N],{0:b,1:F}=L;if(b>X||b===X&&F>=ae)break;N=$(_,N,C,R)}return R[0]<X?(D(C,R[0],X),R[0]=X,R[1]=0):C.write(44),R[1]=u(C,ae,R[1]),N}function D(_,N,C){do _.write(59);while(++N<C)}function j(_){const{length:N}=_,C=new E(_),R=[];let M=0,q=0,K=0,X=0,ae=0;do{const T=C.indexOf(";"),de=[];let he=!0,ce=0;for(M=0;C.pos<T;){let L;M=c(C,M),M<ce&&(he=!1),ce=M,d(C,T)?(q=c(C,q),K=c(C,K),X=c(C,X),d(C,T)?(ae=c(C,ae),L=[M,q,K,X,ae]):L=[M,q,K,X]):L=[M],de.push(L),C.pos++}he||V(de),R.push(de),C.pos=T+1}while(C.pos<=N);return R}function V(_){_.sort(U)}function U(_,N){return _[0]-N[0]}function O(_){const N=new g;let C=0,R=0,M=0,q=0;for(let K=0;K<_.length;K++){const X=_[K];if(K>0&&N.write(59),X.length===0)continue;let ae=0;for(let T=0;T<X.length;T++){const de=X[T];T>0&&N.write(44),ae=u(N,de[0],ae),de.length!==1&&(C=u(N,de[1],C),R=u(N,de[2],R),M=u(N,de[3],M),de.length!==4&&(q=u(N,de[4],q)))}}return N.flush()}n.decode=j,n.decodeGeneratedRanges=w,n.decodeOriginalScopes=I,n.encode=O,n.encodeGeneratedRanges=v,n.encodeOriginalScopes=A,Object.defineProperty(n,"__esModule",{value:!0})})}(Ri,Ri.exports)),Ri.exports}var Ex=kx(),_o={exports:{}},Ax=_o.exports,R1;function wx(){return R1||(R1=1,function(t,e){(function(n,s){t.exports=s()})(Ax,function(){const n=/^[\w+.-]+:\/\//,s=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,i=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function r(x){return n.test(x)}function a(x){return x.startsWith("//")}function l(x){return x.startsWith("/")}function c(x){return x.startsWith("file:")}function u(x){return/^[.?#]/.test(x)}function d(x){const w=s.exec(x);return f(w[1],w[2]||"",w[3],w[4]||"",w[5]||"/",w[6]||"",w[7]||"")}function m(x){const w=i.exec(x),v=w[2];return f("file:","",w[1]||"","",l(v)?v:"/"+v,w[3]||"",w[4]||"")}function f(x,w,v,$,D,j,V){return{scheme:x,user:w,host:v,port:$,path:D,query:j,hash:V,type:7}}function g(x){if(a(x)){const v=d("http:"+x);return v.scheme="",v.type=6,v}if(l(x)){const v=d("http://foo.com"+x);return v.scheme="",v.host="",v.type=5,v}if(c(x))return m(x);if(r(x))return d(x);const w=d("http://foo.com/"+x);return w.scheme="",w.host="",w.type=x?x.startsWith("?")?3:x.startsWith("#")?2:4:1,w}function E(x){if(x.endsWith("/.."))return x;const w=x.lastIndexOf("/");return x.slice(0,w+1)}function k(x,w){I(w,w.type),x.path==="/"?x.path=w.path:x.path=E(w.path)+x.path}function I(x,w){const v=w<=4,$=x.path.split("/");let D=1,j=0,V=!1;for(let O=1;O<$.length;O++){const _=$[O];if(!_){V=!0;continue}if(V=!1,_!=="."){if(_===".."){j?(V=!0,j--,D--):v&&($[D++]=_);continue}$[D++]=_,j++}}let U="";for(let O=1;O<D;O++)U+="/"+$[O];(!U||V&&!U.endsWith("/.."))&&(U+="/"),x.path=U}function A(x,w){if(!x&&!w)return"";const v=g(x);let $=v.type;if(w&&$!==7){const j=g(w),V=j.type;switch($){case 1:v.hash=j.hash;case 2:v.query=j.query;case 3:case 4:k(v,j);case 5:v.user=j.user,v.host=j.host,v.port=j.port;case 6:v.scheme=j.scheme}V>$&&($=V)}I(v,$);const D=v.query+v.hash;switch($){case 2:case 3:return D;case 4:{const j=v.path.slice(1);return j?u(w||x)&&!u(j)?"./"+j+D:j+D:D||"."}case 5:return v.path+D;default:return v.scheme+"//"+v.user+v.host+v.port+v.path+D}}return A})}(_o)),_o.exports}wx();var Vl=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function US(t){return t}function Sx(t,e){return t._indexes[e]}function Ix(t,e){const n=Sx(t,e);if(n!==void 0)return n;const{array:s,_indexes:i}=t,r=s.push(e);return i[e]=r-1}var vx=0,_x=1,Px=2,$x=3,Nx=4,D1=-1,Cx=class{constructor({file:t,sourceRoot:e}={}){this._names=new Vl,this._sources=new Vl,this._sourcesContent=[],this._mappings=[],this.file=t,this.sourceRoot=e,this._ignoreList=new Vl}};function qS(t){return t}var Ul=(t,e,n,s,i,r,a,l)=>Dx(!0,t,e,n,s,i,r);function Tx(t){const{_mappings:e,_sources:n,_sourcesContent:s,_names:i,_ignoreList:r}=t;return Mx(e),{version:3,file:t.file||void 0,names:i.array,sourceRoot:t.sourceRoot||void 0,sources:n.array,sourcesContent:s,mappings:e,ignoreList:r.array}}function Rx(t){const e=Tx(t);return Object.assign({},e,{mappings:Ex.encode(e.mappings)})}function Dx(t,e,n,s,i,r,a,l,c){const{_mappings:u,_sources:d,_sourcesContent:m,_names:f}=e,g=Ox(u,n),E=Lx(g,s);if(!i)return Fx(g,E)?void 0:O1(g,E,[s]);const k=Ix(d,i),I=D1;if(k===m.length&&(m[k]=null),!Bx(g,E,k,r,a,I))return O1(g,E,[s,k,r,a])}function Ox(t,e){for(let n=t.length;n<=e;n++)t[n]=[];return t[e]}function Lx(t,e){let n=t.length;for(let s=n-1;s>=0;n=s--){const i=t[s];if(e>=i[vx])break}return n}function O1(t,e,n){for(let s=t.length;s>e;s--)t[s]=t[s-1];t[e]=n}function Mx(t){const{length:e}=t;let n=e;for(let s=n-1;s>=0&&!(t[s].length>0);n=s,s--);n<e&&(t.length=n)}function Fx(t,e){return e===0?!0:t[e-1].length===1}function Bx(t,e,n,s,i,r){if(e===0)return!1;const a=t[e-1];return a.length===1?!1:n===a[_x]&&s===a[Px]&&i===a[$x]&&r===(a.length===5?a[Nx]:D1)}function jx({code:t,mappings:e},n,s,i,r){const a=zx(i,r),l=new Cx({file:s.compiledFilename});let c=0,u=e[0];for(;u===void 0&&c<e.length-1;)c++,u=e[c];let d=0,m=0;u!==m&&Ul(l,d,0,n,d,0);for(let k=0;k<t.length;k++){if(k===u){const I=u-m,A=a[c];for(Ul(l,d,I,n,d,A);(u===k||u===void 0)&&c<e.length-1;)c++,u=e[c]}t.charCodeAt(k)===P.lineFeed&&(d++,m=k+1,u!==m&&Ul(l,d,0,n,d,0))}const{sourceRoot:f,sourcesContent:g,...E}=Rx(l);return E}function zx(t,e){const n=new Array(e.length);let s=0,i=e[s].start,r=0;for(let a=0;a<t.length;a++)a===i&&(n[s]=i-r,s++,i=e[s].start),t.charCodeAt(a)===P.lineFeed&&(r=a+1);return n}const Vx={require:`
67
+ `;else if(s==="&"){const{entity:r,newI:i}=T1(t,n+1);e+=r,n=i-1}else e+=s}return JSON.stringify(e)}function T1(t,e){let n="",s=0,r,i=e;if(t[i]==="#"){let a=10;i++;let l;if(t[i]==="x")for(a=16,i++,l=i;i<t.length&&kx(t.charCodeAt(i));)i++;else for(l=i;i<t.length&&xx(t.charCodeAt(i));)i++;if(t[i]===";"){const c=t.slice(l,i);c&&(i++,r=String.fromCodePoint(parseInt(c,a)))}}else for(;i<t.length&&s++<10;){const a=t[i];if(i++,a===";"){r=gx.get(n);break}n+=a}return r?{entity:r,newI:i}:{entity:"&",newI:e}}function xx(t){return t>=P.digit0&&t<=P.digit9}function kx(t){return t>=P.digit0&&t<=P.digit9||t>=P.lowercaseA&&t<=P.lowercaseF||t>=P.uppercaseA&&t<=P.uppercaseF}function R1(t,e){const n=P1(e),s=new Set;for(let r=0;r<t.tokens.length;r++){const i=t.tokens[r];if(i.type===o.name&&!i.isType&&(i.identifierRole===ge.Access||i.identifierRole===ge.ObjectShorthand||i.identifierRole===ge.ExportAccess)&&!i.shadowsGlobal&&s.add(t.identifierNameForToken(i)),i.type===o.jsxTagStart&&s.add(n.base),i.type===o.jsxTagStart&&r+1<t.tokens.length&&t.tokens[r+1].type===o.jsxTagEnd&&(s.add(n.base),s.add(n.fragmentBase)),i.type===o.jsxName&&i.identifierRole===ge.Access){const a=t.identifierNameForToken(i);(!N1(a)||t.tokens[r+1].type===o.dot)&&s.add(t.identifierNameForToken(i))}}return s}class is{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(e,n,s,r,i,a,l){this.nameManager=e,this.tokens=n,this.enableLegacyTypeScriptModuleInterop=s,this.options=r,this.isTypeScriptTransformEnabled=i,this.keepUnusedImports=a,this.helperManager=l,is.prototype.__init.call(this),is.prototype.__init2.call(this),is.prototype.__init3.call(this),is.prototype.__init4.call(this),is.prototype.__init5.call(this)}preprocessTokens(){for(let e=0;e<this.tokens.tokens.length;e++)this.tokens.matches1AtIndex(e,o._import)&&!this.tokens.matches3AtIndex(e,o._import,o.name,o.eq)&&this.preprocessImportAtIndex(e),this.tokens.matches1AtIndex(e,o._export)&&!this.tokens.matches2AtIndex(e,o._export,o.eq)&&this.preprocessExportAtIndex(e);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=R1(this.tokens,this.options);for(const[e,n]of this.importInfoByPath.entries()){if(n.hasBareImport||n.hasStarExport||n.exportStarNames.length>0||n.namedExports.length>0)continue;[...n.defaultNames,...n.wildcardNames,...n.namedImports.map(({localName:r})=>r)].every(r=>this.shouldAutomaticallyElideImportedName(r))&&this.importsToReplace.set(e,"")}}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}generateImportReplacements(){for(const[e,n]of this.importInfoByPath.entries()){const{defaultNames:s,wildcardNames:r,namedImports:i,namedExports:a,exportStarNames:l,hasStarExport:c}=n;if(s.length===0&&r.length===0&&i.length===0&&a.length===0&&l.length===0&&!c){this.importsToReplace.set(e,`require('${e}');`);continue}const u=this.getFreeIdentifierForPath(e);let d;this.enableLegacyTypeScriptModuleInterop?d=u:d=r.length>0?r[0]:this.getFreeIdentifierForPath(e);let m=`var ${u} = require('${e}');`;if(r.length>0)for(const f of r){const g=this.enableLegacyTypeScriptModuleInterop?u:`${this.helperManager.getHelperName("interopRequireWildcard")}(${u})`;m+=` var ${f} = ${g};`}else l.length>0&&d!==u?m+=` var ${d} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${u});`:s.length>0&&d!==u&&(m+=` var ${d} = ${this.helperManager.getHelperName("interopRequireDefault")}(${u});`);for(const{importedName:f,localName:g}of a)m+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${u}, '${g}', '${f}');`;for(const f of l)m+=` exports.${f} = ${d};`;c&&(m+=` ${this.helperManager.getHelperName("createStarExport")}(${u});`),this.importsToReplace.set(e,m);for(const f of s)this.identifierReplacements.set(f,`${d}.default`);for(const{importedName:f,localName:g}of i)this.identifierReplacements.set(g,`${u}.${f}`)}}getFreeIdentifierForPath(e){const n=e.split("/"),r=n[n.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${r}`)}preprocessImportAtIndex(e){const n=[],s=[],r=[];if(e++,(this.tokens.matchesContextualAtIndex(e,S._type)||this.tokens.matches1AtIndex(e,o._typeof))&&!this.tokens.matches1AtIndex(e+1,o.comma)&&!this.tokens.matchesContextualAtIndex(e+1,S._from)||this.tokens.matches1AtIndex(e,o.parenL))return;if(this.tokens.matches1AtIndex(e,o.name)&&(n.push(this.tokens.identifierNameAtIndex(e)),e++,this.tokens.matches1AtIndex(e,o.comma)&&e++),this.tokens.matches1AtIndex(e,o.star)&&(e+=2,s.push(this.tokens.identifierNameAtIndex(e)),e++),this.tokens.matches1AtIndex(e,o.braceL)){const l=this.getNamedImports(e+1);e=l.newIndex;for(const c of l.namedImports)c.importedName==="default"?n.push(c.localName):r.push(c)}if(this.tokens.matchesContextualAtIndex(e,S._from)&&e++,!this.tokens.matches1AtIndex(e,o.string))throw new Error("Expected string token at the end of import statement.");const i=this.tokens.stringValueAtIndex(e),a=this.getImportInfo(i);a.defaultNames.push(...n),a.wildcardNames.push(...s),a.namedImports.push(...r),n.length===0&&s.length===0&&r.length===0&&(a.hasBareImport=!0)}preprocessExportAtIndex(e){if(this.tokens.matches2AtIndex(e,o._export,o._var)||this.tokens.matches2AtIndex(e,o._export,o._let)||this.tokens.matches2AtIndex(e,o._export,o._const))this.preprocessVarExportAtIndex(e);else if(this.tokens.matches2AtIndex(e,o._export,o._function)||this.tokens.matches2AtIndex(e,o._export,o._class)){const n=this.tokens.identifierNameAtIndex(e+2);this.addExportBinding(n,n)}else if(this.tokens.matches3AtIndex(e,o._export,o.name,o._function)){const n=this.tokens.identifierNameAtIndex(e+3);this.addExportBinding(n,n)}else this.tokens.matches2AtIndex(e,o._export,o.braceL)?this.preprocessNamedExportAtIndex(e):this.tokens.matches2AtIndex(e,o._export,o.star)&&this.preprocessExportStarAtIndex(e)}preprocessVarExportAtIndex(e){let n=0;for(let s=e+2;;s++)if(this.tokens.matches1AtIndex(s,o.braceL)||this.tokens.matches1AtIndex(s,o.dollarBraceL)||this.tokens.matches1AtIndex(s,o.bracketL))n++;else if(this.tokens.matches1AtIndex(s,o.braceR)||this.tokens.matches1AtIndex(s,o.bracketR))n--;else{if(n===0&&!this.tokens.matches1AtIndex(s,o.name))break;if(this.tokens.matches1AtIndex(1,o.eq)){const r=this.tokens.currentToken().rhsEndIndex;if(r==null)throw new Error("Expected = token with an end index.");s=r-1}else{const r=this.tokens.tokens[s];if(g1(r)){const i=this.tokens.identifierNameAtIndex(s);this.identifierReplacements.set(i,`exports.${i}`)}}}}preprocessNamedExportAtIndex(e){e+=2;const{newIndex:n,namedImports:s}=this.getNamedImports(e);if(e=n,this.tokens.matchesContextualAtIndex(e,S._from))e++;else{for(const{importedName:a,localName:l}of s)this.addExportBinding(a,l);return}if(!this.tokens.matches1AtIndex(e,o.string))throw new Error("Expected string token at the end of import statement.");const r=this.tokens.stringValueAtIndex(e);this.getImportInfo(r).namedExports.push(...s)}preprocessExportStarAtIndex(e){let n=null;if(this.tokens.matches3AtIndex(e,o._export,o.star,o._as)?(e+=3,n=this.tokens.identifierNameAtIndex(e),e+=2):e+=3,!this.tokens.matches1AtIndex(e,o.string))throw new Error("Expected string token at the end of star export statement.");const s=this.tokens.stringValueAtIndex(e),r=this.getImportInfo(s);n!==null?r.exportStarNames.push(n):r.hasStarExport=!0}getNamedImports(e){const n=[];for(;;){if(this.tokens.matches1AtIndex(e,o.braceR)){e++;break}const s=Dr(this.tokens,e);if(e=s.endIndex,s.isType||n.push({importedName:s.leftName,localName:s.rightName}),this.tokens.matches2AtIndex(e,o.comma,o.braceR)){e+=2;break}else if(this.tokens.matches1AtIndex(e,o.braceR)){e++;break}else if(this.tokens.matches1AtIndex(e,o.comma))e++;else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[e])}`)}return{newIndex:e,namedImports:n}}getImportInfo(e){const n=this.importInfoByPath.get(e);if(n)return n;const s={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(e,s),s}addExportBinding(e,n){this.exportBindingsByLocalName.has(e)||this.exportBindingsByLocalName.set(e,[]),this.exportBindingsByLocalName.get(e).push(n)}claimImportCode(e){const n=this.importsToReplace.get(e);return this.importsToReplace.set(e,""),n||""}getIdentifierReplacement(e){return this.identifierReplacements.get(e)||null}resolveExportBinding(e){const n=this.exportBindingsByLocalName.get(e);return!n||n.length===0?null:n.map(s=>`exports.${s}`).join(" = ")}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}var Or={exports:{}},Ex=Or.exports,D1;function Ax(){return D1||(D1=1,function(t,e){(function(n,s){s(e)})(Ex,function(n){const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=new Uint8Array(64),l=new Uint8Array(128);for(let _=0;_<i.length;_++){const N=i.charCodeAt(_);a[_]=N,l[N]=_}function c(_,N){let C=0,R=0,M=0;do{const K=_.next();M=l[K],C|=(M&31)<<R,R+=5}while(M&32);const q=C&1;return C>>>=1,q&&(C=-2147483648|-C),N+C}function u(_,N,C){let R=N-C;R=R<0?-R<<1|1:R<<1;do{let M=R&31;R>>>=5,R>0&&(M|=32),_.write(a[M])}while(R>0);return N}function d(_,N){return _.pos>=N?!1:_.peek()!==44}const m=1024*16,f=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(_){return Buffer.from(_.buffer,_.byteOffset,_.byteLength).toString()}}:{decode(_){let N="";for(let C=0;C<_.length;C++)N+=String.fromCharCode(_[C]);return N}};class g{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(m)}write(N){const{buffer:C}=this;C[this.pos++]=N,this.pos===m&&(this.out+=f.decode(C),this.pos=0)}flush(){const{buffer:N,out:C,pos:R}=this;return R>0?C+f.decode(N.subarray(0,R)):C}}class w{constructor(N){this.pos=0,this.buffer=N}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(N){const{buffer:C,pos:R}=this,M=C.indexOf(N,R);return M===-1?C.length:M}}const k=[];function I(_){const{length:N}=_,C=new w(_),R=[],M=[];let q=0;for(;C.pos<N;C.pos++){q=c(C,q);const K=c(C,0);if(!d(C,N)){const ce=M.pop();ce[2]=q,ce[3]=K;continue}const X=c(C,0),de=c(C,0)&1?[q,K,0,0,X,c(C,0)]:[q,K,0,0,X];let he=k;if(d(C,N)){he=[];do{const ce=c(C,0);he.push(ce)}while(d(C,N))}de.vars=he,R.push(de),M.push(de)}return R}function E(_){const N=new g;for(let C=0;C<_.length;)C=b(_,C,N,[0]);return N.flush()}function b(_,N,C,R){const M=_[N],{0:q,1:K,2:X,3:ae,4:T,vars:de}=M;N>0&&C.write(44),R[0]=u(C,q,R[0]),u(C,K,0),u(C,T,0);const he=M.length===6?1:0;u(C,he,0),M.length===6&&u(C,M[5],0);for(const ce of de)u(C,ce,0);for(N++;N<_.length;){const ce=_[N],{0:L,1:x}=ce;if(L>X||L===X&&x>=ae)break;N=b(_,N,C,R)}return C.write(44),R[0]=u(C,X,R[0]),u(C,ae,0),N}function A(_){const{length:N}=_,C=new w(_),R=[],M=[];let q=0,K=0,X=0,ae=0,T=0,de=0,he=0,ce=0;do{const L=C.indexOf(";");let x=0;for(;C.pos<L;C.pos++){if(x=c(C,x),!d(C,L)){const ye=M.pop();ye[2]=q,ye[3]=x;continue}const F=c(C,0),B=F&1,J=F&2,ee=F&4;let ie=null,se=k,ke;if(B){const ye=c(C,K);X=c(C,K===ye?X:0),K=ye,ke=[q,x,0,0,ye,X]}else ke=[q,x,0,0];if(ke.isScope=!!ee,J){const ye=ae,be=T;ae=c(C,ae);const fe=ye===ae;T=c(C,fe?T:0),de=c(C,fe&&be===T?de:0),ie=[ae,T,de]}if(ke.callsite=ie,d(C,L)){se=[];do{he=q,ce=x;const ye=c(C,0);let be;if(ye<-1){be=[[c(C,0)]];for(let fe=-1;fe>ye;fe--){const Oe=he;he=c(C,he),ce=c(C,he===Oe?ce:0);const qe=c(C,0);be.push([qe,he,ce])}}else be=[[ye]];se.push(be)}while(d(C,L))}ke.bindings=se,R.push(ke),M.push(ke)}q++,C.pos=L+1}while(C.pos<N);return R}function v(_){if(_.length===0)return"";const N=new g;for(let C=0;C<_.length;)C=$(_,C,N,[0,0,0,0,0,0,0]);return N.flush()}function $(_,N,C,R){const M=_[N],{0:q,1:K,2:X,3:ae,isScope:T,callsite:de,bindings:he}=M;R[0]<q?(D(C,R[0],q),R[0]=q,R[1]=0):N>0&&C.write(44),R[1]=u(C,M[1],R[1]);const ce=(M.length===6?1:0)|(de?2:0)|(T?4:0);if(u(C,ce,0),M.length===6){const{4:L,5:x}=M;L!==R[2]&&(R[3]=0),R[2]=u(C,L,R[2]),R[3]=u(C,x,R[3])}if(de){const{0:L,1:x,2:F}=M.callsite;L!==R[4]?(R[5]=0,R[6]=0):x!==R[5]&&(R[6]=0),R[4]=u(C,L,R[4]),R[5]=u(C,x,R[5]),R[6]=u(C,F,R[6])}if(he)for(const L of he){L.length>1&&u(C,-L.length,0);const x=L[0][0];u(C,x,0);let F=q,B=K;for(let J=1;J<L.length;J++){const ee=L[J];F=u(C,ee[1],F),B=u(C,ee[2],B),u(C,ee[0],0)}}for(N++;N<_.length;){const L=_[N],{0:x,1:F}=L;if(x>X||x===X&&F>=ae)break;N=$(_,N,C,R)}return R[0]<X?(D(C,R[0],X),R[0]=X,R[1]=0):C.write(44),R[1]=u(C,ae,R[1]),N}function D(_,N,C){do _.write(59);while(++N<C)}function j(_){const{length:N}=_,C=new w(_),R=[];let M=0,q=0,K=0,X=0,ae=0;do{const T=C.indexOf(";"),de=[];let he=!0,ce=0;for(M=0;C.pos<T;){let L;M=c(C,M),M<ce&&(he=!1),ce=M,d(C,T)?(q=c(C,q),K=c(C,K),X=c(C,X),d(C,T)?(ae=c(C,ae),L=[M,q,K,X,ae]):L=[M,q,K,X]):L=[M],de.push(L),C.pos++}he||V(de),R.push(de),C.pos=T+1}while(C.pos<=N);return R}function V(_){_.sort(U)}function U(_,N){return _[0]-N[0]}function O(_){const N=new g;let C=0,R=0,M=0,q=0;for(let K=0;K<_.length;K++){const X=_[K];if(K>0&&N.write(59),X.length===0)continue;let ae=0;for(let T=0;T<X.length;T++){const de=X[T];T>0&&N.write(44),ae=u(N,de[0],ae),de.length!==1&&(C=u(N,de[1],C),R=u(N,de[2],R),M=u(N,de[3],M),de.length!==4&&(q=u(N,de[4],q)))}}return N.flush()}n.decode=j,n.decodeGeneratedRanges=A,n.decodeOriginalScopes=I,n.encode=O,n.encodeGeneratedRanges=v,n.encodeOriginalScopes=E,Object.defineProperty(n,"__esModule",{value:!0})})}(Or,Or.exports)),Or.exports}var wx=Ax(),_o={exports:{}},Sx=_o.exports,O1;function Ix(){return O1||(O1=1,function(t,e){(function(n,s){t.exports=s()})(Sx,function(){const n=/^[\w+.-]+:\/\//,s=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function i(b){return n.test(b)}function a(b){return b.startsWith("//")}function l(b){return b.startsWith("/")}function c(b){return b.startsWith("file:")}function u(b){return/^[.?#]/.test(b)}function d(b){const A=s.exec(b);return f(A[1],A[2]||"",A[3],A[4]||"",A[5]||"/",A[6]||"",A[7]||"")}function m(b){const A=r.exec(b),v=A[2];return f("file:","",A[1]||"","",l(v)?v:"/"+v,A[3]||"",A[4]||"")}function f(b,A,v,$,D,j,V){return{scheme:b,user:A,host:v,port:$,path:D,query:j,hash:V,type:7}}function g(b){if(a(b)){const v=d("http:"+b);return v.scheme="",v.type=6,v}if(l(b)){const v=d("http://foo.com"+b);return v.scheme="",v.host="",v.type=5,v}if(c(b))return m(b);if(i(b))return d(b);const A=d("http://foo.com/"+b);return A.scheme="",A.host="",A.type=b?b.startsWith("?")?3:b.startsWith("#")?2:4:1,A}function w(b){if(b.endsWith("/.."))return b;const A=b.lastIndexOf("/");return b.slice(0,A+1)}function k(b,A){I(A,A.type),b.path==="/"?b.path=A.path:b.path=w(A.path)+b.path}function I(b,A){const v=A<=4,$=b.path.split("/");let D=1,j=0,V=!1;for(let O=1;O<$.length;O++){const _=$[O];if(!_){V=!0;continue}if(V=!1,_!=="."){if(_===".."){j?(V=!0,j--,D--):v&&($[D++]=_);continue}$[D++]=_,j++}}let U="";for(let O=1;O<D;O++)U+="/"+$[O];(!U||V&&!U.endsWith("/.."))&&(U+="/"),b.path=U}function E(b,A){if(!b&&!A)return"";const v=g(b);let $=v.type;if(A&&$!==7){const j=g(A),V=j.type;switch($){case 1:v.hash=j.hash;case 2:v.query=j.query;case 3:case 4:k(v,j);case 5:v.user=j.user,v.host=j.host,v.port=j.port;case 6:v.scheme=j.scheme}V>$&&($=V)}I(v,$);const D=v.query+v.hash;switch($){case 2:case 3:return D;case 4:{const j=v.path.slice(1);return j?u(A||b)&&!u(j)?"./"+j+D:j+D:D||"."}case 5:return v.path+D;default:return v.scheme+"//"+v.user+v.host+v.port+v.path+D}}return E})}(_o)),_o.exports}Ix();var Vl=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function GS(t){return t}function vx(t,e){return t._indexes[e]}function _x(t,e){const n=vx(t,e);if(n!==void 0)return n;const{array:s,_indexes:r}=t,i=s.push(e);return r[e]=i-1}var Px=0,$x=1,Nx=2,Cx=3,Tx=4,L1=-1,Rx=class{constructor({file:t,sourceRoot:e}={}){this._names=new Vl,this._sources=new Vl,this._sourcesContent=[],this._mappings=[],this.file=t,this.sourceRoot=e,this._ignoreList=new Vl}};function WS(t){return t}var Ul=(t,e,n,s,r,i,a,l)=>Lx(!0,t,e,n,s,r,i);function Dx(t){const{_mappings:e,_sources:n,_sourcesContent:s,_names:r,_ignoreList:i}=t;return Bx(e),{version:3,file:t.file||void 0,names:r.array,sourceRoot:t.sourceRoot||void 0,sources:n.array,sourcesContent:s,mappings:e,ignoreList:i.array}}function Ox(t){const e=Dx(t);return Object.assign({},e,{mappings:wx.encode(e.mappings)})}function Lx(t,e,n,s,r,i,a,l,c){const{_mappings:u,_sources:d,_sourcesContent:m,_names:f}=e,g=Mx(u,n),w=Fx(g,s);if(!r)return jx(g,w)?void 0:M1(g,w,[s]);const k=_x(d,r),I=L1;if(k===m.length&&(m[k]=null),!zx(g,w,k,i,a,I))return M1(g,w,[s,k,i,a])}function Mx(t,e){for(let n=t.length;n<=e;n++)t[n]=[];return t[e]}function Fx(t,e){let n=t.length;for(let s=n-1;s>=0;n=s--){const r=t[s];if(e>=r[Px])break}return n}function M1(t,e,n){for(let s=t.length;s>e;s--)t[s]=t[s-1];t[e]=n}function Bx(t){const{length:e}=t;let n=e;for(let s=n-1;s>=0&&!(t[s].length>0);n=s,s--);n<e&&(t.length=n)}function jx(t,e){return e===0?!0:t[e-1].length===1}function zx(t,e,n,s,r,i){if(e===0)return!1;const a=t[e-1];return a.length===1?!1:n===a[$x]&&s===a[Nx]&&r===a[Cx]&&i===(a.length===5?a[Tx]:L1)}function Vx({code:t,mappings:e},n,s,r,i){const a=Ux(r,i),l=new Rx({file:s.compiledFilename});let c=0,u=e[0];for(;u===void 0&&c<e.length-1;)c++,u=e[c];let d=0,m=0;u!==m&&Ul(l,d,0,n,d,0);for(let k=0;k<t.length;k++){if(k===u){const I=u-m,E=a[c];for(Ul(l,d,I,n,d,E);(u===k||u===void 0)&&c<e.length-1;)c++,u=e[c]}t.charCodeAt(k)===P.lineFeed&&(d++,m=k+1,u!==m&&Ul(l,d,0,n,d,0))}const{sourceRoot:f,sourcesContent:g,...w}=Ox(l);return w}function Ux(t,e){const n=new Array(e.length);let s=0,r=e[s].start,i=0;for(let a=0;a<t.length;a++)a===r&&(n[s]=r-i,s++,r=e[s].start),t.charCodeAt(a)===P.lineFeed&&(i=a+1);return n}const qx={require:`
68
68
  import {createRequire as CREATE_REQUIRE_NAME} from "module";
69
69
  const require = CREATE_REQUIRE_NAME(import.meta.url);
70
70
  `,interopRequireWildcard:`
@@ -173,26 +173,26 @@ Additionally, handling the error in the 'buildEnd' hook caused the following err
173
173
  const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);
174
174
  return result == null ? true : result;
175
175
  }
176
- `};class Po{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(e){this.nameManager=e,Po.prototype.__init.call(this),Po.prototype.__init2.call(this)}getHelperName(e){let n=this.helperNames[e];return n||(n=this.nameManager.claimFreeName(`_${e}`),this.helperNames[e]=n,n)}emitHelpers(){let e="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[n,s]of Object.entries(Vx)){const i=this.helperNames[n];let r=s;n==="optionalChainDelete"?r=r.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):n==="asyncOptionalChainDelete"?r=r.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):n==="require"&&(this.createRequireName===null&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),r=r.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),i&&(e+=" ",e+=r.replace(n,i).replace(/\s+/g," ").trim())}return e}}function L1(t,e,n){Ux(t,n)&&qx(t,e,n)}function Ux(t,e){for(const n of t.tokens)if(n.type===o.name&&!n.isType&&Gb(n)&&e.has(t.identifierNameForToken(n)))return!0;return!1}function qx(t,e,n){const s=[];let i=e.length-1;for(let r=t.tokens.length-1;;r--){for(;s.length>0&&s[s.length-1].startTokenIndex===r+1;)s.pop();for(;i>=0&&e[i].endTokenIndex===r+1;)s.push(e[i]),i--;if(r<0)break;const a=t.tokens[r],l=t.identifierNameForToken(a);if(s.length>1&&!a.isType&&a.type===o.name&&n.has(l)){if(Wb(a))M1(s[s.length-1],t,l);else if(Xb(a)){let c=s.length-1;for(;c>0&&!s[c].isFunctionScope;)c--;if(c<0)throw new Error("Did not find parent function scope.");M1(s[c],t,l)}}}if(s.length>0)throw new Error("Expected empty scope stack after processing file.")}function M1(t,e,n){for(let s=t.startTokenIndex;s<t.endTokenIndex;s++){const i=e.tokens[s];(i.type===o.name||i.type===o.jsxName)&&e.identifierNameForToken(i)===n&&(i.shadowsGlobal=!0)}}function Hx(t,e){const n=[];for(const s of e)s.type===o.name&&n.push(t.slice(s.start,s.end));return n}class ql{__init(){this.usedNames=new Set}constructor(e,n){ql.prototype.__init.call(this),this.usedNames=new Set(Hx(e,n))}claimFreeName(e){const n=this.findFreeName(e);return this.usedNames.add(n),n}findFreeName(e){if(!this.usedNames.has(e))return e;let n=2;for(;this.usedNames.has(e+String(n));)n++;return e+String(n)}}var Di={},Oi={},Ut={},F1;function Hl(){if(F1)return Ut;F1=1;var t=Ut&&Ut.__extends||function(){var r=function(a,l){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,u){c.__proto__=u}||function(c,u){for(var d in u)u.hasOwnProperty(d)&&(c[d]=u[d])},r(a,l)};return function(a,l){r(a,l);function c(){this.constructor=a}a.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}();Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.DetailContext=Ut.NoopContext=Ut.VError=void 0;var e=function(r){t(a,r);function a(l,c){var u=r.call(this,c)||this;return u.path=l,Object.setPrototypeOf(u,a.prototype),u}return a}(Error);Ut.VError=e;var n=function(){function r(){}return r.prototype.fail=function(a,l,c){return!1},r.prototype.unionResolver=function(){return this},r.prototype.createContext=function(){return this},r.prototype.resolveUnion=function(a){},r}();Ut.NoopContext=n;var s=function(){function r(){this._propNames=[""],this._messages=[null],this._score=0}return r.prototype.fail=function(a,l,c){return this._propNames.push(a),this._messages.push(l),this._score+=c,!1},r.prototype.unionResolver=function(){return new i},r.prototype.resolveUnion=function(a){for(var l,c,u=a,d=null,m=0,f=u.contexts;m<f.length;m++){var g=f[m];(!d||g._score>=d._score)&&(d=g)}d&&d._score>0&&((l=this._propNames).push.apply(l,d._propNames),(c=this._messages).push.apply(c,d._messages))},r.prototype.getError=function(a){for(var l=[],c=this._propNames.length-1;c>=0;c--){var u=this._propNames[c];a+=typeof u=="number"?"["+u+"]":u?"."+u:"";var d=this._messages[c];d&&l.push(a+" "+d)}return new e(a,l.join("; "))},r.prototype.getErrorDetail=function(a){for(var l=[],c=this._propNames.length-1;c>=0;c--){var u=this._propNames[c];a+=typeof u=="number"?"["+u+"]":u?"."+u:"";var d=this._messages[c];d&&l.push({path:a,message:d})}for(var m=null,c=l.length-1;c>=0;c--)m&&(l[c].nested=[m]),m=l[c];return m},r}();Ut.DetailContext=s;var i=function(){function r(){this.contexts=[]}return r.prototype.createContext=function(){var a=new s;return this.contexts.push(a),a},r}();return Ut}var B1;function j1(){return B1||(B1=1,function(t){var e=Oi&&Oi.__extends||function(){var b=function(F,B){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,ee){J.__proto__=ee}||function(J,ee){for(var re in ee)ee.hasOwnProperty(re)&&(J[re]=ee[re])},b(F,B)};return function(F,B){b(F,B);function J(){this.constructor=F}F.prototype=B===null?Object.create(B):(J.prototype=B.prototype,new J)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.basicTypes=t.BasicType=t.TParamList=t.TParam=t.param=t.TFunc=t.func=t.TProp=t.TOptional=t.opt=t.TIface=t.iface=t.TEnumLiteral=t.enumlit=t.TEnumType=t.enumtype=t.TIntersection=t.intersection=t.TUnion=t.union=t.TTuple=t.tuple=t.TArray=t.array=t.TLiteral=t.lit=t.TName=t.name=t.TType=void 0;var n=Hl(),s=function(){function b(){}return b}();t.TType=s;function i(b){return typeof b=="string"?a(b):b}function r(b,F){var B=b[F];if(!B)throw new Error("Unknown type "+F);return B}function a(b){return new l(b)}t.name=a;var l=function(b){e(F,b);function F(B){var J=b.call(this)||this;return J.name=B,J._failMsg="is not a "+B,J}return F.prototype.getChecker=function(B,J,ee){var re=this,se=r(B,this.name),ke=se.getChecker(B,J,ee);return se instanceof X||se instanceof F?ke:function(ye,be){return ke(ye,be)?!0:be.fail(null,re._failMsg,0)}},F}(s);t.TName=l;function c(b){return new u(b)}t.lit=c;var u=function(b){e(F,b);function F(B){var J=b.call(this)||this;return J.value=B,J.name=JSON.stringify(B),J._failMsg="is not "+J.name,J}return F.prototype.getChecker=function(B,J){var ee=this;return function(re,se){return re===ee.value?!0:se.fail(null,ee._failMsg,-1)}},F}(s);t.TLiteral=u;function d(b){return new m(i(b))}t.array=d;var m=function(b){e(F,b);function F(B){var J=b.call(this)||this;return J.ttype=B,J}return F.prototype.getChecker=function(B,J){var ee=this.ttype.getChecker(B,J);return function(re,se){if(!Array.isArray(re))return se.fail(null,"is not an array",0);for(var ke=0;ke<re.length;ke++){var ye=ee(re[ke],se);if(!ye)return se.fail(ke,null,1)}return!0}},F}(s);t.TArray=m;function f(){for(var b=[],F=0;F<arguments.length;F++)b[F]=arguments[F];return new g(b.map(function(B){return i(B)}))}t.tuple=f;var g=function(b){e(F,b);function F(B){var J=b.call(this)||this;return J.ttypes=B,J}return F.prototype.getChecker=function(B,J){var ee=this.ttypes.map(function(se){return se.getChecker(B,J)}),re=function(se,ke){if(!Array.isArray(se))return ke.fail(null,"is not an array",0);for(var ye=0;ye<ee.length;ye++){var be=ee[ye](se[ye],ke);if(!be)return ke.fail(ye,null,1)}return!0};return J?function(se,ke){return re(se,ke)?se.length<=ee.length?!0:ke.fail(ee.length,"is extraneous",2):!1}:re},F}(s);t.TTuple=g;function E(){for(var b=[],F=0;F<arguments.length;F++)b[F]=arguments[F];return new k(b.map(function(B){return i(B)}))}t.union=E;var k=function(b){e(F,b);function F(B){var J=b.call(this)||this;J.ttypes=B;var ee=B.map(function(se){return se instanceof l||se instanceof u?se.name:null}).filter(function(se){return se}),re=B.length-ee.length;return ee.length?(re>0&&ee.push(re+" more"),J._failMsg="is none of "+ee.join(", ")):J._failMsg="is none of "+re+" types",J}return F.prototype.getChecker=function(B,J){var ee=this,re=this.ttypes.map(function(se){return se.getChecker(B,J)});return function(se,ke){for(var ye=ke.unionResolver(),be=0;be<re.length;be++){var fe=re[be](se,ye.createContext());if(fe)return!0}return ke.resolveUnion(ye),ke.fail(null,ee._failMsg,0)}},F}(s);t.TUnion=k;function I(){for(var b=[],F=0;F<arguments.length;F++)b[F]=arguments[F];return new A(b.map(function(B){return i(B)}))}t.intersection=I;var A=function(b){e(F,b);function F(B){var J=b.call(this)||this;return J.ttypes=B,J}return F.prototype.getChecker=function(B,J){var ee=new Set,re=this.ttypes.map(function(se){return se.getChecker(B,J,ee)});return function(se,ke){var ye=re.every(function(be){return be(se,ke)});return ye?!0:ke.fail(null,null,0)}},F}(s);t.TIntersection=A;function x(b){return new w(b)}t.enumtype=x;var w=function(b){e(F,b);function F(B){var J=b.call(this)||this;return J.members=B,J.validValues=new Set,J._failMsg="is not a valid enum value",J.validValues=new Set(Object.keys(B).map(function(ee){return B[ee]})),J}return F.prototype.getChecker=function(B,J){var ee=this;return function(re,se){return ee.validValues.has(re)?!0:se.fail(null,ee._failMsg,0)}},F}(s);t.TEnumType=w;function v(b,F){return new $(b,F)}t.enumlit=v;var $=function(b){e(F,b);function F(B,J){var ee=b.call(this)||this;return ee.enumName=B,ee.prop=J,ee._failMsg="is not "+B+"."+J,ee}return F.prototype.getChecker=function(B,J){var ee=this,re=r(B,this.enumName);if(!(re instanceof w))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var se=re.members[this.prop];if(!re.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(ke,ye){return ke===se?!0:ye.fail(null,ee._failMsg,-1)}},F}(s);t.TEnumLiteral=$;function D(b){return Object.keys(b).map(function(F){return j(F,b[F])})}function j(b,F){return F instanceof _?new N(b,F.ttype,!0):new N(b,i(F),!1)}function V(b,F){return new U(b,D(F))}t.iface=V;var U=function(b){e(F,b);function F(B,J){var ee=b.call(this)||this;return ee.bases=B,ee.props=J,ee.propSet=new Set(J.map(function(re){return re.name})),ee}return F.prototype.getChecker=function(B,J,ee){var re=this,se=this.bases.map(function(qe){return r(B,qe).getChecker(B,J)}),ke=this.props.map(function(qe){return qe.ttype.getChecker(B,J)}),ye=new n.NoopContext,be=this.props.map(function(qe,ne){return!qe.isOpt&&!ke[ne](void 0,ye)}),fe=function(qe,ne){if(typeof qe!="object"||qe===null)return ne.fail(null,"is not an object",0);for(var we=0;we<se.length;we++)if(!se[we](qe,ne))return!1;for(var we=0;we<ke.length;we++){var Z=re.props[we].name,Se=qe[Z];if(Se===void 0){if(be[we])return ne.fail(Z,"is missing",1)}else{var Xe=ke[we](Se,ne);if(!Xe)return ne.fail(Z,null,1)}}return!0};if(!J)return fe;var Oe=this.propSet;return ee&&(this.propSet.forEach(function(qe){return ee.add(qe)}),Oe=ee),function(qe,ne){if(!fe(qe,ne))return!1;for(var we in qe)if(!Oe.has(we))return ne.fail(we,"is extraneous",2);return!0}},F}(s);t.TIface=U;function O(b){return new _(i(b))}t.opt=O;var _=function(b){e(F,b);function F(B){var J=b.call(this)||this;return J.ttype=B,J}return F.prototype.getChecker=function(B,J){var ee=this.ttype.getChecker(B,J);return function(re,se){return re===void 0||ee(re,se)}},F}(s);t.TOptional=_;var N=function(){function b(F,B,J){this.name=F,this.ttype=B,this.isOpt=J}return b}();t.TProp=N;function C(b){for(var F=[],B=1;B<arguments.length;B++)F[B-1]=arguments[B];return new R(new K(F),i(b))}t.func=C;var R=function(b){e(F,b);function F(B,J){var ee=b.call(this)||this;return ee.paramList=B,ee.result=J,ee}return F.prototype.getChecker=function(B,J){return function(ee,re){return typeof ee=="function"?!0:re.fail(null,"is not a function",0)}},F}(s);t.TFunc=R;function M(b,F,B){return new q(b,i(F),!!B)}t.param=M;var q=function(){function b(F,B,J){this.name=F,this.ttype=B,this.isOpt=J}return b}();t.TParam=q;var K=function(b){e(F,b);function F(B){var J=b.call(this)||this;return J.params=B,J}return F.prototype.getChecker=function(B,J){var ee=this,re=this.params.map(function(be){return be.ttype.getChecker(B,J)}),se=new n.NoopContext,ke=this.params.map(function(be,fe){return!be.isOpt&&!re[fe](void 0,se)}),ye=function(be,fe){if(!Array.isArray(be))return fe.fail(null,"is not an array",0);for(var Oe=0;Oe<re.length;Oe++){var qe=ee.params[Oe];if(be[Oe]===void 0){if(ke[Oe])return fe.fail(qe.name,"is missing",1)}else{var ne=re[Oe](be[Oe],fe);if(!ne)return fe.fail(qe.name,null,1)}}return!0};return J?function(be,fe){return ye(be,fe)?be.length<=re.length?!0:fe.fail(re.length,"is extraneous",2):!1}:ye},F}(s);t.TParamList=K;var X=function(b){e(F,b);function F(B,J){var ee=b.call(this)||this;return ee.validator=B,ee.message=J,ee}return F.prototype.getChecker=function(B,J){var ee=this;return function(re,se){return ee.validator(re)?!0:se.fail(null,ee.message,0)}},F}(s);t.BasicType=X,t.basicTypes={any:new X(function(b){return!0},"is invalid"),number:new X(function(b){return typeof b=="number"},"is not a number"),object:new X(function(b){return typeof b=="object"&&b},"is not an object"),boolean:new X(function(b){return typeof b=="boolean"},"is not a boolean"),string:new X(function(b){return typeof b=="string"},"is not a string"),symbol:new X(function(b){return typeof b=="symbol"},"is not a symbol"),void:new X(function(b){return b==null},"is not void"),undefined:new X(function(b){return b===void 0},"is not undefined"),null:new X(function(b){return b===null},"is not null"),never:new X(function(b){return!1},"is unexpected"),Date:new X(T("[object Date]"),"is not a Date"),RegExp:new X(T("[object RegExp]"),"is not a RegExp")};var ae=Object.prototype.toString;function T(b){return function(F){return typeof F=="object"&&F&&ae.call(F)===b}}typeof Buffer<"u"&&(t.basicTypes.Buffer=new X(function(b){return Buffer.isBuffer(b)},"is not a Buffer"));for(var de=function(b){t.basicTypes[b.name]=new X(function(F){return F instanceof b},"is not a "+b.name)},he=0,ce=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];he<ce.length;he++){var L=ce[he];de(L)}}(Oi)),Oi}var z1;function Gx(){return z1||(z1=1,function(t){var e=Di&&Di.__spreadArrays||function(){for(var c=0,u=0,d=arguments.length;u<d;u++)c+=arguments[u].length;for(var m=Array(c),f=0,u=0;u<d;u++)for(var g=arguments[u],E=0,k=g.length;E<k;E++,f++)m[f]=g[E];return m};Object.defineProperty(t,"__esModule",{value:!0}),t.Checker=t.createCheckers=void 0;var n=j1(),s=Hl(),i=j1();Object.defineProperty(t,"TArray",{enumerable:!0,get:function(){return i.TArray}}),Object.defineProperty(t,"TEnumType",{enumerable:!0,get:function(){return i.TEnumType}}),Object.defineProperty(t,"TEnumLiteral",{enumerable:!0,get:function(){return i.TEnumLiteral}}),Object.defineProperty(t,"TFunc",{enumerable:!0,get:function(){return i.TFunc}}),Object.defineProperty(t,"TIface",{enumerable:!0,get:function(){return i.TIface}}),Object.defineProperty(t,"TLiteral",{enumerable:!0,get:function(){return i.TLiteral}}),Object.defineProperty(t,"TName",{enumerable:!0,get:function(){return i.TName}}),Object.defineProperty(t,"TOptional",{enumerable:!0,get:function(){return i.TOptional}}),Object.defineProperty(t,"TParam",{enumerable:!0,get:function(){return i.TParam}}),Object.defineProperty(t,"TParamList",{enumerable:!0,get:function(){return i.TParamList}}),Object.defineProperty(t,"TProp",{enumerable:!0,get:function(){return i.TProp}}),Object.defineProperty(t,"TTuple",{enumerable:!0,get:function(){return i.TTuple}}),Object.defineProperty(t,"TType",{enumerable:!0,get:function(){return i.TType}}),Object.defineProperty(t,"TUnion",{enumerable:!0,get:function(){return i.TUnion}}),Object.defineProperty(t,"TIntersection",{enumerable:!0,get:function(){return i.TIntersection}}),Object.defineProperty(t,"array",{enumerable:!0,get:function(){return i.array}}),Object.defineProperty(t,"enumlit",{enumerable:!0,get:function(){return i.enumlit}}),Object.defineProperty(t,"enumtype",{enumerable:!0,get:function(){return i.enumtype}}),Object.defineProperty(t,"func",{enumerable:!0,get:function(){return i.func}}),Object.defineProperty(t,"iface",{enumerable:!0,get:function(){return i.iface}}),Object.defineProperty(t,"lit",{enumerable:!0,get:function(){return i.lit}}),Object.defineProperty(t,"name",{enumerable:!0,get:function(){return i.name}}),Object.defineProperty(t,"opt",{enumerable:!0,get:function(){return i.opt}}),Object.defineProperty(t,"param",{enumerable:!0,get:function(){return i.param}}),Object.defineProperty(t,"tuple",{enumerable:!0,get:function(){return i.tuple}}),Object.defineProperty(t,"union",{enumerable:!0,get:function(){return i.union}}),Object.defineProperty(t,"intersection",{enumerable:!0,get:function(){return i.intersection}}),Object.defineProperty(t,"BasicType",{enumerable:!0,get:function(){return i.BasicType}});var r=Hl();Object.defineProperty(t,"VError",{enumerable:!0,get:function(){return r.VError}});function a(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];for(var d=Object.assign.apply(Object,e([{},n.basicTypes],c)),m={},f=0,g=c;f<g.length;f++)for(var E=g[f],k=0,I=Object.keys(E);k<I.length;k++){var A=I[k];m[A]=new l(d,E[A])}return m}t.createCheckers=a;var l=function(){function c(u,d,m){if(m===void 0&&(m="value"),this.suite=u,this.ttype=d,this._path=m,this.props=new Map,d instanceof n.TIface)for(var f=0,g=d.props;f<g.length;f++){var E=g[f];this.props.set(E.name,E.ttype)}this.checkerPlain=this.ttype.getChecker(u,!1),this.checkerStrict=this.ttype.getChecker(u,!0)}return c.prototype.setReportedPath=function(u){this._path=u},c.prototype.check=function(u){return this._doCheck(this.checkerPlain,u)},c.prototype.test=function(u){return this.checkerPlain(u,new s.NoopContext)},c.prototype.validate=function(u){return this._doValidate(this.checkerPlain,u)},c.prototype.strictCheck=function(u){return this._doCheck(this.checkerStrict,u)},c.prototype.strictTest=function(u){return this.checkerStrict(u,new s.NoopContext)},c.prototype.strictValidate=function(u){return this._doValidate(this.checkerStrict,u)},c.prototype.getProp=function(u){var d=this.props.get(u);if(!d)throw new Error("Type has no property "+u);return new c(this.suite,d,this._path+"."+u)},c.prototype.methodArgs=function(u){var d=this._getMethod(u);return new c(this.suite,d.paramList)},c.prototype.methodResult=function(u){var d=this._getMethod(u);return new c(this.suite,d.result)},c.prototype.getArgs=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getArgs() applied to non-function");return new c(this.suite,this.ttype.paramList)},c.prototype.getResult=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getResult() applied to non-function");return new c(this.suite,this.ttype.result)},c.prototype.getType=function(){return this.ttype},c.prototype._doCheck=function(u,d){var m=new s.NoopContext;if(!u(d,m)){var f=new s.DetailContext;throw u(d,f),f.getError(this._path)}},c.prototype._doValidate=function(u,d){var m=new s.NoopContext;if(u(d,m))return null;var f=new s.DetailContext;return u(d,f),f.getErrorDetail(this._path)},c.prototype._getMethod=function(u){var d=this.props.get(u);if(!d)throw new Error("Type has no property "+u);if(!(d instanceof n.TFunc))throw new Error("Property "+u+" is not a method");return d},c}();t.Checker=l}(Di)),Di}var We=Gx();const Wx=We.union(We.lit("jsx"),We.lit("typescript"),We.lit("flow"),We.lit("imports"),We.lit("react-hot-loader"),We.lit("jest")),Xx=We.iface([],{compiledFilename:"string"}),Kx=We.iface([],{transforms:We.array("Transform"),disableESTransforms:We.opt("boolean"),jsxRuntime:We.opt(We.union(We.lit("classic"),We.lit("automatic"),We.lit("preserve"))),production:We.opt("boolean"),jsxImportSource:We.opt("string"),jsxPragma:We.opt("string"),jsxFragmentPragma:We.opt("string"),keepUnusedImports:We.opt("boolean"),preserveDynamicImport:We.opt("boolean"),injectCreateRequireForImportRequire:We.opt("boolean"),enableLegacyTypeScriptModuleInterop:We.opt("boolean"),enableLegacyBabel5ModuleInterop:We.opt("boolean"),sourceMapOptions:We.opt("SourceMapOptions"),filePath:We.opt("string")}),Jx={Transform:Wx,SourceMapOptions:Xx,Options:Kx},{Options:Yx}=We.createCheckers(Jx);function Qx(t){Yx.strictCheck(t)}function V1(){G(),gt(!1)}function U1(t){G(),No(t)}function $n(t){xe(),Gl(t)}function $o(){xe(),h.tokens[h.tokens.length-1].identifierRole=ge.ImportDeclaration}function Gl(t){let e;h.scopeDepth===0?e=ge.TopLevelDeclaration:t?e=ge.BlockScopedDeclaration:e=ge.FunctionScopedDeclaration,h.tokens[h.tokens.length-1].identifierRole=e}function No(t){switch(h.type){case o._this:{const e=Ne(0);G(),$e(e);return}case o._yield:case o.name:{h.type=o.name,$n(t);return}case o.bracketL:{G(),Wl(o.bracketR,t,!0);return}case o.braceL:hc(!0,t);return;default:Ie()}}function Wl(t,e,n=!1,s=!1,i=0){let r=!0,a=!1;const l=h.tokens.length;for(;!z(t)&&!h.error;)if(r?r=!1:(H(o.comma),h.tokens[h.tokens.length-1].contextId=i,!a&&h.tokens[l].isType&&(h.tokens[h.tokens.length-1].isType=!0,a=!0)),!(n&&y(o.comma))){if(z(t))break;if(y(o.ellipsis)){U1(e),q1(),z(o.comma),H(t);break}else Zx(s,e)}}function Zx(t,e){t&&Kl([S._public,S._protected,S._private,S._readonly,S._override]),Co(e),q1(),Co(e,!0)}function q1(){Be?yA():De&&aE()}function Co(t,e=!1){if(e||No(t),!z(o.eq))return;const n=h.tokens.length-1;gt(),h.tokens[n].rhsEndIndex=h.tokens.length}function Xl(){return y(o.name)}function ek(){return y(o.name)||!!(h.type&o.IS_KEYWORD)||y(o.string)||y(o.num)||y(o.bigint)||y(o.decimal)}function H1(){const t=h.snapshot();return G(),(y(o.bracketL)||y(o.braceL)||y(o.star)||y(o.ellipsis)||y(o.hash)||ek())&&!Et()?!0:(h.restoreFromSnapshot(t),!1)}function Kl(t){for(;G1(t)!==null;);}function G1(t){if(!y(o.name))return null;const e=h.contextualKeyword;if(t.indexOf(e)!==-1&&H1()){switch(e){case S._readonly:h.tokens[h.tokens.length-1].type=o._readonly;break;case S._abstract:h.tokens[h.tokens.length-1].type=o._abstract;break;case S._static:h.tokens[h.tokens.length-1].type=o._static;break;case S._public:h.tokens[h.tokens.length-1].type=o._public;break;case S._private:h.tokens[h.tokens.length-1].type=o._private;break;case S._protected:h.tokens[h.tokens.length-1].type=o._protected;break;case S._override:h.tokens[h.tokens.length-1].type=o._override;break;case S._declare:h.tokens[h.tokens.length-1].type=o._declare;break}return e}return null}function Li(){for(xe();z(o.dot);)xe()}function tk(){Li(),!Et()&&y(o.lessThan)&&Bs()}function nk(){G(),Fi()}function sk(){G()}function ik(){H(o._typeof),y(o._import)?W1():Li(),!Et()&&y(o.lessThan)&&Bs()}function W1(){H(o._import),H(o.parenL),H(o.string),H(o.parenR),z(o.dot)&&Li(),y(o.lessThan)&&Bs()}function rk(){z(o._const);const t=z(o._in),e=ut(S._out);z(o._const),(t||e)&&!y(o.name)?h.tokens[h.tokens.length-1].type=o.name:xe(),z(o._extends)&&tt(),z(o.eq)&&tt()}function rs(){y(o.lessThan)&&To()}function To(){const t=Ne(0);for(y(o.lessThan)||y(o.typeParameterStart)?G():Ie();!z(o.greaterThan)&&!h.error;)rk(),z(o.comma);$e(t)}function Jl(t){const e=t===o.arrow;rs(),H(o.parenL),h.scopeDepth++,ok(!1),h.scopeDepth--,(e||y(t))&&Mi(t)}function ok(t){Wl(o.parenR,t)}function Ro(){z(o.comma)||Je()}function X1(){Jl(o.colon),Ro()}function ak(){const t=h.snapshot();G();const e=z(o.name)&&y(o.colon);return h.restoreFromSnapshot(t),e}function K1(){if(!(y(o.bracketL)&&ak()))return!1;const t=Ne(0);return H(o.bracketL),xe(),Fi(),H(o.bracketR),Ms(),Ro(),$e(t),!0}function J1(t){z(o.question),!t&&(y(o.parenL)||y(o.lessThan))?(Jl(o.colon),Ro()):(Ms(),Ro())}function lk(){if(y(o.parenL)||y(o.lessThan)){X1();return}if(y(o._new)){G(),y(o.parenL)||y(o.lessThan)?X1():J1(!1);return}const t=!!G1([S._readonly]);K1()||((me(S._get)||me(S._set))&&H1(),ji(-1),J1(t))}function ck(){Y1()}function Y1(){for(H(o.braceL);!z(o.braceR)&&!h.error;)lk()}function uk(){const t=h.snapshot(),e=hk();return h.restoreFromSnapshot(t),e}function hk(){return G(),z(o.plus)||z(o.minus)?me(S._readonly):(me(S._readonly)&&G(),!y(o.bracketL)||(G(),!Xl())?!1:(G(),y(o._in)))}function dk(){xe(),H(o._in),tt()}function pk(){H(o.braceL),y(o.plus)||y(o.minus)?(G(),it(S._readonly)):ut(S._readonly),H(o.bracketL),dk(),ut(S._as)&&tt(),H(o.bracketR),y(o.plus)||y(o.minus)?(G(),H(o.question)):z(o.question),_k(),Je(),H(o.braceR)}function fk(){for(H(o.bracketL);!z(o.bracketR)&&!h.error;)mk(),z(o.comma)}function mk(){z(o.ellipsis)?tt():(tt(),z(o.question)),z(o.colon)&&tt()}function gk(){H(o.parenL),tt(),H(o.parenR)}function yk(){for(Pn(),Pn();!y(o.backQuote)&&!h.error;)H(o.dollarBraceL),tt(),Pn(),Pn();G()}var Nn;(function(t){t[t.TSFunctionType=0]="TSFunctionType";const n=1;t[t.TSConstructorType=n]="TSConstructorType";const s=n+1;t[t.TSAbstractConstructorType=s]="TSAbstractConstructorType"})(Nn||(Nn={}));function Yl(t){t===Nn.TSAbstractConstructorType&&it(S._abstract),(t===Nn.TSConstructorType||t===Nn.TSAbstractConstructorType)&&H(o._new);const e=h.inDisallowConditionalTypesContext;h.inDisallowConditionalTypesContext=!1,Jl(o.arrow),h.inDisallowConditionalTypesContext=e}function bk(){switch(h.type){case o.name:tk();return;case o._void:case o._null:G();return;case o.string:case o.num:case o.bigint:case o.decimal:case o._true:case o._false:zs();return;case o.minus:G(),zs();return;case o._this:{sk(),me(S._is)&&!Et()&&nk();return}case o._typeof:ik();return;case o._import:W1();return;case o.braceL:uk()?pk():ck();return;case o.bracketL:fk();return;case o.parenL:gk();return;case o.backQuote:yk();return;default:if(h.type&o.IS_KEYWORD){G(),h.tokens[h.tokens.length-1].type=o.name;return}break}Ie()}function xk(){for(bk();!Et()&&z(o.bracketL);)z(o.bracketR)||(tt(),H(o.bracketR))}function kk(){if(it(S._infer),xe(),y(o._extends)){const t=h.snapshot();H(o._extends);const e=h.inDisallowConditionalTypesContext;h.inDisallowConditionalTypesContext=!0,tt(),h.inDisallowConditionalTypesContext=e,(h.error||!h.inDisallowConditionalTypesContext&&y(o.question))&&h.restoreFromSnapshot(t)}}function Ql(){if(me(S._keyof)||me(S._unique)||me(S._readonly))G(),Ql();else if(me(S._infer))kk();else{const t=h.inDisallowConditionalTypesContext;h.inDisallowConditionalTypesContext=!1,xk(),h.inDisallowConditionalTypesContext=t}}function Q1(){if(z(o.bitwiseAND),Ql(),y(o.bitwiseAND))for(;z(o.bitwiseAND);)Ql()}function Ek(){if(z(o.bitwiseOR),Q1(),y(o.bitwiseOR))for(;z(o.bitwiseOR);)Q1()}function Ak(){return y(o.lessThan)?!0:y(o.parenL)&&Sk()}function wk(){if(y(o.name)||y(o._this))return G(),!0;if(y(o.braceL)||y(o.bracketL)){let t=1;for(G();t>0&&!h.error;)y(o.braceL)||y(o.bracketL)?t++:(y(o.braceR)||y(o.bracketR))&&t--,G();return!0}return!1}function Sk(){const t=h.snapshot(),e=Ik();return h.restoreFromSnapshot(t),e}function Ik(){return G(),!!(y(o.parenR)||y(o.ellipsis)||wk()&&(y(o.colon)||y(o.comma)||y(o.question)||y(o.eq)||y(o.parenR)&&(G(),y(o.arrow))))}function Mi(t){const e=Ne(0);H(t),Pk()||tt(),$e(e)}function vk(){y(o.colon)&&Mi(o.colon)}function Ms(){y(o.colon)&&Fi()}function _k(){z(o.colon)&&tt()}function Pk(){const t=h.snapshot();return me(S._asserts)?(G(),ut(S._is)?(tt(),!0):Xl()||y(o._this)?(G(),ut(S._is)&&tt(),!0):(h.restoreFromSnapshot(t),!1)):Xl()||y(o._this)?(G(),me(S._is)&&!Et()?(G(),tt(),!0):(h.restoreFromSnapshot(t),!1)):!1}function Fi(){const t=Ne(0);H(o.colon),tt(),$e(t)}function tt(){if(Z1(),h.inDisallowConditionalTypesContext||Et()||!z(o._extends))return;const t=h.inDisallowConditionalTypesContext;h.inDisallowConditionalTypesContext=!0,Z1(),h.inDisallowConditionalTypesContext=t,H(o.question),tt(),H(o.colon),tt()}function $k(){return me(S._abstract)&&et()===o._new}function Z1(){if(Ak()){Yl(Nn.TSFunctionType);return}if(y(o._new)){Yl(Nn.TSConstructorType);return}else if($k()){Yl(Nn.TSAbstractConstructorType);return}Ek()}function Nk(){const t=Ne(1);tt(),H(o.greaterThan),$e(t),Bi()}function Ck(){if(z(o.jsxTagStart)){h.tokens[h.tokens.length-1].type=o.typeParameterStart;const t=Ne(1);for(;!y(o.greaterThan)&&!h.error;)tt(),z(o.comma);Ot(),$e(t)}}function ef(){for(;!y(o.braceL)&&!h.error;)Tk(),z(o.comma)}function Tk(){Li(),y(o.lessThan)&&Bs()}function Rk(){$n(!1),rs(),z(o._extends)&&ef(),Y1()}function Dk(){$n(!1),rs(),H(o.eq),tt(),Je()}function Ok(){if(y(o.string)?zs():xe(),z(o.eq)){const t=h.tokens.length-1;gt(),h.tokens[t].rhsEndIndex=h.tokens.length}}function Zl(){for($n(!1),H(o.braceL);!z(o.braceR)&&!h.error;)Ok(),z(o.comma)}function ec(){H(o.braceL),Uo(o.braceR)}function tc(){$n(!1),z(o.dot)?tc():ec()}function tf(){me(S._global)?xe():y(o.string)?yn():Ie(),y(o.braceL)?ec():Je()}function nc(){$o(),H(o.eq),Mk(),Je()}function Lk(){return me(S._require)&&et()===o.parenL}function Mk(){Lk()?Fk():Li()}function Fk(){it(S._require),H(o.parenL),y(o.string)||Ie(),zs(),H(o.parenR)}function Bk(){if(tn())return!1;switch(h.type){case o._function:{const t=Ne(1);G();const e=h.start;return ls(e,!0),$e(t),!0}case o._class:{const t=Ne(1);return cs(!0,!1),$e(t),!0}case o._const:if(y(o._const)&&Bl(S._enum)){const t=Ne(1);return H(o._const),it(S._enum),h.tokens[h.tokens.length-1].type=o._enum,Zl(),$e(t),!0}case o._var:case o._let:{const t=Ne(1);return Vo(h.type!==o._var),$e(t),!0}case o.name:{const t=Ne(1),e=h.contextualKeyword;let n=!1;return e===S._global?(tf(),n=!0):n=Do(e,!0),$e(t),n}default:return!1}}function nf(){return Do(h.contextualKeyword,!0)}function jk(t){switch(t){case S._declare:{const e=h.tokens.length-1;if(Bk())return h.tokens[e].type=o._declare,!0;break}case S._global:if(y(o.braceL))return ec(),!0;break;default:return Do(t,!1)}return!1}function Do(t,e){switch(t){case S._abstract:if(Fs(e)&&y(o._class))return h.tokens[h.tokens.length-1].type=o._abstract,cs(!0,!1),!0;break;case S._enum:if(Fs(e)&&y(o.name))return h.tokens[h.tokens.length-1].type=o._enum,Zl(),!0;break;case S._interface:if(Fs(e)&&y(o.name)){const n=Ne(e?2:1);return Rk(),$e(n),!0}break;case S._module:if(Fs(e)){if(y(o.string)){const n=Ne(e?2:1);return tf(),$e(n),!0}else if(y(o.name)){const n=Ne(e?2:1);return tc(),$e(n),!0}}break;case S._namespace:if(Fs(e)&&y(o.name)){const n=Ne(e?2:1);return tc(),$e(n),!0}break;case S._type:if(Fs(e)&&y(o.name)){const n=Ne(e?2:1);return Dk(),$e(n),!0}break}return!1}function Fs(t){return t?(G(),!0):!tn()}function zk(){const t=h.snapshot();return To(),Vs(),vk(),H(o.arrow),h.error?(h.restoreFromSnapshot(t),!1):(Vi(!0),!0)}function sc(){h.type===o.bitShiftL&&(h.pos-=1,ve(o.lessThan)),Bs()}function Bs(){const t=Ne(0);for(H(o.lessThan);!y(o.greaterThan)&&!h.error;)tt(),z(o.comma);t?(H(o.greaterThan),$e(t)):($e(t),w1(),H(o.greaterThan),h.tokens[h.tokens.length-1].isType=!0)}function sf(){if(y(o.name))switch(h.contextualKeyword){case S._abstract:case S._declare:case S._enum:case S._interface:case S._module:case S._namespace:case S._type:return!0}return!1}function Vk(t,e){if(y(o.colon)&&Mi(o.colon),!y(o.braceL)&&tn()){let n=h.tokens.length-1;for(;n>=0&&(h.tokens[n].start>=t||h.tokens[n].type===o._default||h.tokens[n].type===o._export);)h.tokens[n].isType=!0,n--;return}Vi(!1,e)}function Uk(t,e,n){if(!Et()&&z(o.bang)){h.tokens[h.tokens.length-1].type=o.nonNullAssertion;return}if(y(o.lessThan)||y(o.bitShiftL)){const s=h.snapshot();if(!e&&df()&&zk())return;if(sc(),!e&&z(o.parenL)?(h.tokens[h.tokens.length-1].subscriptStartIndex=t,Cn()):y(o.backQuote)?uc():(h.type===o.greaterThan||h.type!==o.parenL&&h.type&o.IS_EXPRESSION_START&&!Et())&&Ie(),h.error)h.restoreFromSnapshot(s);else return}else!e&&y(o.questionDot)&&et()===o.lessThan&&(G(),h.tokens[t].isOptionalChainStart=!0,h.tokens[h.tokens.length-1].subscriptStartIndex=t,Bs(),H(o.parenL),Cn());oc(t,e,n)}function qk(){if(z(o._import))return me(S._type)&&et()!==o.eq&&it(S._type),nc(),!0;if(z(o.eq))return mt(),Je(),!0;if(ut(S._as))return it(S._namespace),xe(),Je(),!0;if(me(S._type)){const t=et();(t===o.braceL||t===o.star)&&G()}return!1}function Hk(){if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-1].identifierRole=ge.ImportDeclaration;return}if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-1].identifierRole=ge.ImportDeclaration,h.tokens[h.tokens.length-2].isType=!0,h.tokens[h.tokens.length-1].isType=!0;return}if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-3].identifierRole=ge.ImportAccess,h.tokens[h.tokens.length-1].identifierRole=ge.ImportDeclaration;return}xe(),h.tokens[h.tokens.length-3].identifierRole=ge.ImportAccess,h.tokens[h.tokens.length-1].identifierRole=ge.ImportDeclaration,h.tokens[h.tokens.length-4].isType=!0,h.tokens[h.tokens.length-3].isType=!0,h.tokens[h.tokens.length-2].isType=!0,h.tokens[h.tokens.length-1].isType=!0}function Gk(){if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-1].identifierRole=ge.ExportAccess;return}if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-1].identifierRole=ge.ExportAccess,h.tokens[h.tokens.length-2].isType=!0,h.tokens[h.tokens.length-1].isType=!0;return}if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-3].identifierRole=ge.ExportAccess;return}xe(),h.tokens[h.tokens.length-3].identifierRole=ge.ExportAccess,h.tokens[h.tokens.length-4].isType=!0,h.tokens[h.tokens.length-3].isType=!0,h.tokens[h.tokens.length-2].isType=!0,h.tokens[h.tokens.length-1].isType=!0}function Wk(){if(me(S._abstract)&&et()===o._class)return h.type=o._abstract,G(),cs(!0,!0),!0;if(me(S._interface)){const t=Ne(2);return Do(S._interface,!0),$e(t),!0}return!1}function Xk(){if(h.type===o._const){const t=Ci();if(t.type===o.name&&t.contextualKeyword===S._enum)return H(o._const),it(S._enum),h.tokens[h.tokens.length-1].type=o._enum,Zl(),!0}return!1}function Kk(t){const e=h.tokens.length;Kl([S._abstract,S._readonly,S._declare,S._static,S._override]);const n=h.tokens.length;if(K1()){const i=t?e-1:e;for(let r=i;r<n;r++)h.tokens[r].isType=!0;return!0}return!1}function Jk(t){jk(t)||Je()}function Yk(){const t=ut(S._declare);t&&(h.tokens[h.tokens.length-1].type=o._declare);let e=!1;if(y(o.name))if(t){const n=Ne(2);e=nf(),$e(n)}else e=nf();if(!e)if(t){const n=Ne(2);Tt(!0),$e(n)}else Tt(!0)}function Qk(t){if(t&&(y(o.lessThan)||y(o.bitShiftL))&&sc(),ut(S._implements)){h.tokens[h.tokens.length-1].type=o._implements;const e=Ne(1);ef(),$e(e)}}function Zk(){rs()}function eE(){rs()}function tE(){const t=Ne(0);Et()||z(o.bang),Ms(),$e(t)}function nE(){y(o.colon)&&Fi()}function sE(t,e){return So?iE(t,e):rE(t,e)}function iE(t,e){if(!y(o.lessThan))return nn(t,e);const n=h.snapshot();let s=nn(t,e);if(h.error)h.restoreFromSnapshot(n);else return s;return h.type=o.typeParameterStart,To(),s=nn(t,e),s||Ie(),s}function rE(t,e){if(!y(o.lessThan))return nn(t,e);const n=h.snapshot();To();const s=nn(t,e);if(s||Ie(),h.error)h.restoreFromSnapshot(n);else return s;return nn(t,e)}function oE(){if(y(o.colon)){const t=h.snapshot();Mi(o.colon),Ct()&&Ie(),y(o.arrow)||Ie(),h.error&&h.restoreFromSnapshot(t)}return z(o.arrow)}function aE(){const t=Ne(0);z(o.question),Ms(),$e(t)}function lE(){(y(o.lessThan)||y(o.bitShiftL))&&sc(),_f()}function cE(){let t=!1,e=!1;for(;;){if(h.pos>=ie.length){Ie("Unterminated JSX contents");return}const n=ie.charCodeAt(h.pos);if(n===P.lessThan||n===P.leftCurlyBrace){if(h.pos===h.start){if(n===P.lessThan){h.pos++,ve(o.jsxTagStart);return}S1(n);return}ve(t&&!e?o.jsxEmptyText:o.jsxText);return}n===P.lineFeed?t=!0:n!==P.space&&n!==P.carriageReturn&&n!==P.tab&&(e=!0),h.pos++}}function uE(t){for(h.pos++;;){if(h.pos>=ie.length){Ie("Unterminated string constant");return}if(ie.charCodeAt(h.pos)===t){h.pos++;break}h.pos++}ve(o.string)}function hE(){let t;do{if(h.pos>ie.length){Ie("Unexpectedly reached the end of input.");return}t=ie.charCodeAt(++h.pos)}while(jt[t]||t===P.dash);ve(o.jsxName)}function ic(){Ot()}function rf(t){if(ic(),!z(o.colon)){h.tokens[h.tokens.length-1].identifierRole=t;return}ic()}function of(){const t=h.tokens.length;rf(ge.Access);let e=!1;for(;y(o.dot);)e=!0,Ot(),ic();if(!e){const n=h.tokens[t],s=ie.charCodeAt(n.start);s>=P.lowercaseA&&s<=P.lowercaseZ&&(n.identifierRole=null)}}function dE(){switch(h.type){case o.braceL:G(),mt(),Ot();return;case o.jsxTagStart:lf(),Ot();return;case o.string:Ot();return;default:Ie("JSX value should be either an expression or a quoted JSX text")}}function pE(){H(o.ellipsis),mt()}function fE(t){if(y(o.jsxTagEnd))return!1;of(),De&&Ck();let e=!1;for(;!y(o.slash)&&!y(o.jsxTagEnd)&&!h.error;){if(z(o.braceL)){e=!0,H(o.ellipsis),gt(),Ot();continue}e&&h.end-h.start===3&&ie.charCodeAt(h.start)===P.lowercaseK&&ie.charCodeAt(h.start+1)===P.lowercaseE&&ie.charCodeAt(h.start+2)===P.lowercaseY&&(h.tokens[t].jsxRole=zt.KeyAfterPropSpread),rf(ge.ObjectKey),y(o.eq)&&(Ot(),dE())}const n=y(o.slash);return n&&Ot(),n}function mE(){y(o.jsxTagEnd)||of()}function af(){const t=h.tokens.length-1;h.tokens[t].jsxRole=zt.NoChildren;let e=0;if(!fE(t))for(js();;)switch(h.type){case o.jsxTagStart:if(Ot(),y(o.slash)){Ot(),mE(),h.tokens[t].jsxRole!==zt.KeyAfterPropSpread&&(e===1?h.tokens[t].jsxRole=zt.OneChild:e>1&&(h.tokens[t].jsxRole=zt.StaticChildren));return}e++,af(),js();break;case o.jsxText:e++,js();break;case o.jsxEmptyText:js();break;case o.braceL:G(),y(o.ellipsis)?(pE(),js(),e+=2):(y(o.braceR)||(e++,mt()),js());break;default:Ie();return}}function lf(){Ot(),af()}function Ot(){h.tokens.push(new Io),E1(),h.start=h.pos;const t=ie.charCodeAt(h.pos);if(Ni[t])hE();else if(t===P.quotationMark||t===P.apostrophe)uE(t);else switch(++h.pos,t){case P.greaterThan:ve(o.jsxTagEnd);break;case P.lessThan:ve(o.jsxTagStart);break;case P.slash:ve(o.slash);break;case P.equalsTo:ve(o.eq);break;case P.leftCurlyBrace:ve(o.braceL);break;case P.dot:ve(o.dot);break;case P.colon:ve(o.colon);break;default:Ie()}}function js(){h.tokens.push(new Io),h.start=h.pos,cE()}function gE(t){if(y(o.question)){const e=et();if(e===o.colon||e===o.comma||e===o.parenR)return}cf(t)}function yE(){g1(o.question),y(o.colon)&&(De?Fi():Be&&as())}class bE{constructor(e){this.stop=e}}function mt(t=!1){if(gt(t),y(o.comma))for(;z(o.comma);)gt(t)}function gt(t=!1,e=!1){return De?sE(t,e):Be?wA(t,e):nn(t,e)}function nn(t,e){if(y(o._yield))return DE(),!1;(y(o.parenL)||y(o.name)||y(o._yield))&&(h.potentialArrowAt=h.start);const n=xE(t);return e&&cc(),h.type&o.IS_ASSIGN?(G(),gt(t),!1):n}function xE(t){return EE(t)?!0:(kE(t),!1)}function kE(t){De||Be?gE(t):cf(t)}function cf(t){z(o.question)&&(gt(),H(o.colon),gt(t))}function EE(t){const e=h.tokens.length;return Bi()?!0:(Oo(e,-1,t),!1)}function Oo(t,e,n){if(De&&(o._in&o.PRECEDENCE_MASK)>e&&!Et()&&(ut(S._as)||ut(S._satisfies))){const i=Ne(1);tt(),$e(i),w1(),Oo(t,e,n);return}const s=h.type&o.PRECEDENCE_MASK;if(s>0&&(!n||!y(o._in))&&s>e){const i=h.type;G(),i===o.nullishCoalescing&&(h.tokens[h.tokens.length-1].nullishStartIndex=t);const r=h.tokens.length;Bi(),Oo(r,i&o.IS_RIGHT_ASSOCIATIVE?s-1:s,n),i===o.nullishCoalescing&&(h.tokens[t].numNullishCoalesceStarts++,h.tokens[h.tokens.length-1].numNullishCoalesceEnds++),Oo(t,e,n)}}function Bi(){if(De&&!So&&z(o.lessThan))return Nk(),!1;if(me(S._module)&&b1()===P.leftCurlyBrace&&!c1())return OE(),!1;if(h.type&o.IS_PREFIX)return G(),Bi(),!1;if(uf())return!0;for(;h.type&o.IS_POSTFIX&&!Ct();)h.type===o.preIncDec&&(h.type=o.postIncDec),G();return!1}function uf(){const t=h.tokens.length;return yn()?!0:(rc(t),h.tokens.length>t&&h.tokens[t].isOptionalChainStart&&(h.tokens[h.tokens.length-1].isOptionalChainEnd=!0),!1)}function rc(t,e=!1){Be?IA(t,e):hf(t,e)}function hf(t,e=!1){const n=new bE(!1);do AE(t,e,n);while(!n.stop&&!h.error)}function AE(t,e,n){De?Uk(t,e,n):Be?rA(t,e,n):oc(t,e,n)}function oc(t,e,n){if(!e&&z(o.doubleColon))ac(),n.stop=!0,rc(t,e);else if(y(o.questionDot)){if(h.tokens[t].isOptionalChainStart=!0,e&&et()===o.parenL){n.stop=!0;return}G(),h.tokens[h.tokens.length-1].subscriptStartIndex=t,z(o.bracketL)?(mt(),H(o.bracketR)):z(o.parenL)?Cn():Lo()}else if(z(o.dot))h.tokens[h.tokens.length-1].subscriptStartIndex=t,Lo();else if(z(o.bracketL))h.tokens[h.tokens.length-1].subscriptStartIndex=t,mt(),H(o.bracketR);else if(!e&&y(o.parenL))if(df()){const s=h.snapshot(),i=h.tokens.length;G(),h.tokens[h.tokens.length-1].subscriptStartIndex=t;const r=$i();h.tokens[h.tokens.length-1].contextId=r,Cn(),h.tokens[h.tokens.length-1].contextId=r,wE()&&(h.restoreFromSnapshot(s),n.stop=!0,h.scopeDepth++,Vs(),SE(i))}else{G(),h.tokens[h.tokens.length-1].subscriptStartIndex=t;const s=$i();h.tokens[h.tokens.length-1].contextId=s,Cn(),h.tokens[h.tokens.length-1].contextId=s}else y(o.backQuote)?uc():n.stop=!0}function df(){return h.tokens[h.tokens.length-1].contextualKeyword===S._async&&!Ct()}function Cn(){let t=!0;for(;!z(o.parenR)&&!h.error;){if(t)t=!1;else if(H(o.comma),z(o.parenR))break;gf(!1)}}function wE(){return y(o.colon)||y(o.arrow)}function SE(t){De?nE():Be&&AA(),H(o.arrow),zi(t)}function ac(){const t=h.tokens.length;yn(),rc(t,!0)}function yn(){if(z(o.modulo))return xe(),!1;if(y(o.jsxText)||y(o.jsxEmptyText))return zs(),!1;if(y(o.lessThan)&&So)return h.type=o.jsxTagStart,lf(),G(),!1;const t=h.potentialArrowAt===h.start;switch(h.type){case o.slash:case o.assign:Jb();case o._super:case o._this:case o.regexp:case o.num:case o.bigint:case o.decimal:case o.string:case o._null:case o._true:case o._false:return G(),!1;case o._import:return G(),y(o.dot)&&(h.tokens[h.tokens.length-1].type=o.name,G(),xe()),!1;case o.name:{const e=h.tokens.length,n=h.start,s=h.contextualKeyword;return xe(),s===S._await?(RE(),!1):s===S._async&&y(o._function)&&!Ct()?(G(),ls(n,!1),!1):t&&s===S._async&&!Ct()&&y(o.name)?(h.scopeDepth++,$n(!1),H(o.arrow),zi(e),!0):y(o._do)&&!Ct()?(G(),Tn(),!1):t&&!Ct()&&y(o.arrow)?(h.scopeDepth++,Gl(!1),H(o.arrow),zi(e),!0):(h.tokens[h.tokens.length-1].identifierRole=ge.Access,!1)}case o._do:return G(),Tn(),!1;case o.parenL:return pf(t);case o.bracketL:return G(),mf(o.bracketR,!0),!1;case o.braceL:return hc(!1,!1),!1;case o._function:return IE(),!1;case o.at:wc();case o._class:return cs(!1),!1;case o._new:return _E(),!1;case o.backQuote:return uc(),!1;case o.doubleColon:return G(),ac(),!1;case o.hash:{const e=b1();return Ni[e]||e===P.backslash?Lo():G(),!1}default:return Ie(),!1}}function Lo(){z(o.hash),xe()}function IE(){const t=h.start;xe(),z(o.dot)&&xe(),ls(t,!1)}function zs(){G()}function Mo(){H(o.parenL),mt(),H(o.parenR)}function pf(t){const e=h.snapshot(),n=h.tokens.length;H(o.parenL);let s=!0;for(;!y(o.parenR)&&!h.error;){if(s)s=!1;else if(H(o.comma),y(o.parenR))break;if(y(o.ellipsis)){U1(!1),cc();break}else gt(!1,!0)}return H(o.parenR),t&&vE()&&lc()?(h.restoreFromSnapshot(e),h.scopeDepth++,Vs(),lc(),zi(n),h.error?(h.restoreFromSnapshot(e),pf(!1),!1):!0):!1}function vE(){return y(o.colon)||!Ct()}function lc(){return De?oE():Be?SA():z(o.arrow)}function cc(){(De||Be)&&yE()}function _E(){if(H(o._new),z(o.dot)){xe();return}PE(),Be&&oA(),z(o.parenL)&&mf(o.parenR)}function PE(){ac(),z(o.questionDot)}function uc(){for(Pn(),Pn();!y(o.backQuote)&&!h.error;)H(o.dollarBraceL),mt(),Pn(),Pn();G()}function hc(t,e){const n=$i();let s=!0;for(G(),h.tokens[h.tokens.length-1].contextId=n;!z(o.braceR)&&!h.error;){if(s)s=!1;else if(H(o.comma),z(o.braceR))break;let i=!1;if(y(o.ellipsis)){const r=h.tokens.length;if(V1(),t&&(h.tokens.length===r+2&&Gl(e),z(o.braceR)))break;continue}t||(i=z(o.star)),!t&&me(S._async)?(i&&Ie(),xe(),y(o.colon)||y(o.parenL)||y(o.braceR)||y(o.eq)||y(o.comma)||(y(o.star)&&(G(),i=!0),ji(n))):ji(n),TE(t,e,n)}h.tokens[h.tokens.length-1].contextId=n}function $E(t){return!t&&(y(o.string)||y(o.num)||y(o.bracketL)||y(o.name)||!!(h.type&o.IS_KEYWORD))}function NE(t,e){const n=h.start;return y(o.parenL)?(t&&Ie(),dc(n,!1),!0):$E(t)?(ji(e),dc(n,!1),!0):!1}function CE(t,e){if(z(o.colon)){t?Co(e):gt(!1);return}let n;t?h.scopeDepth===0?n=ge.ObjectShorthandTopLevelDeclaration:e?n=ge.ObjectShorthandBlockScopedDeclaration:n=ge.ObjectShorthandFunctionScopedDeclaration:n=ge.ObjectShorthand,h.tokens[h.tokens.length-1].identifierRole=n,Co(e,!0)}function TE(t,e,n){De?Zk():Be&&gA(),NE(t,n)||CE(t,e)}function ji(t){Be&&Ac(),z(o.bracketL)?(h.tokens[h.tokens.length-1].contextId=t,gt(),H(o.bracketR),h.tokens[h.tokens.length-1].contextId=t):(y(o.num)||y(o.string)||y(o.bigint)||y(o.decimal)?yn():Lo(),h.tokens[h.tokens.length-1].identifierRole=ge.ObjectKey,h.tokens[h.tokens.length-1].contextId=t)}function dc(t,e){const n=$i();h.scopeDepth++;const s=h.tokens.length;Vs(e,n),ff(t,n);const r=h.tokens.length;h.scopes.push(new en(s,r,!0)),h.scopeDepth--}function zi(t){Vi(!0);const e=h.tokens.length;h.scopes.push(new en(t,e,!0)),h.scopeDepth--}function ff(t,e=0){De?Vk(t,e):Be?iA(e):Vi(!1,e)}function Vi(t,e=0){t&&!y(o.braceL)?gt():Tn(!0,e)}function mf(t,e=!1){let n=!0;for(;!z(t)&&!h.error;){if(n)n=!1;else if(H(o.comma),z(t))break;gf(e)}}function gf(t){t&&y(o.comma)||(y(o.ellipsis)?(V1(),cc()):y(o.question)?G():gt(!1,!0))}function xe(){G(),h.tokens[h.tokens.length-1].type=o.name}function RE(){Bi()}function DE(){G(),!y(o.semi)&&!Ct()&&(z(o.star),gt())}function OE(){it(S._module),H(o.braceL),Uo(o.braceR)}function LE(t){return(t.type===o.name||!!(t.type&o.IS_KEYWORD))&&t.contextualKeyword!==S._from}function sn(t){const e=Ne(0);H(t||o.colon),_t(),$e(e)}function yf(){H(o.modulo),it(S._checks),z(o.parenL)&&(mt(),H(o.parenR))}function pc(){const t=Ne(0);H(o.colon),y(o.modulo)?yf():(_t(),y(o.modulo)&&yf()),$e(t)}function ME(){G(),mc(!0)}function FE(){G(),xe(),y(o.lessThan)&&qt(),H(o.parenL),Ec(),H(o.parenR),pc(),Je()}function fc(){y(o._class)?ME():y(o._function)?FE():y(o._var)?BE():ut(S._module)?z(o.dot)?VE():jE():me(S._type)?UE():me(S._opaque)?qE():me(S._interface)?HE():y(o._export)?zE():Ie()}function BE(){G(),wf(),Je()}function jE(){for(y(o.string)?yn():xe(),H(o.braceL);!y(o.braceR)&&!h.error;)y(o._import)?(G(),Of()):Ie();H(o.braceR)}function zE(){H(o._export),z(o._default)?y(o._function)||y(o._class)?fc():(_t(),Je()):y(o._var)||y(o._function)||y(o._class)||me(S._opaque)?fc():y(o.star)||y(o.braceL)||me(S._interface)||me(S._type)||me(S._opaque)?Rf():Ie()}function VE(){it(S._exports),as(),Je()}function UE(){G(),yc()}function qE(){G(),bc(!0)}function HE(){G(),mc()}function mc(t=!1){if(Bo(),y(o.lessThan)&&qt(),z(o._extends))do Fo();while(!t&&z(o.comma));if(me(S._mixins)){G();do Fo();while(z(o.comma))}if(me(S._implements)){G();do Fo();while(z(o.comma))}jo(t,!1,t)}function Fo(){bf(!1),y(o.lessThan)&&os()}function gc(){mc()}function Bo(){xe()}function yc(){Bo(),y(o.lessThan)&&qt(),sn(o.eq),Je()}function bc(t){it(S._type),Bo(),y(o.lessThan)&&qt(),y(o.colon)&&sn(o.colon),t||sn(o.eq),Je()}function GE(){Ac(),wf(),z(o.eq)&&_t()}function qt(){const t=Ne(0);y(o.lessThan)||y(o.typeParameterStart)?G():Ie();do GE(),y(o.greaterThan)||H(o.comma);while(!y(o.greaterThan)&&!h.error);H(o.greaterThan),$e(t)}function os(){const t=Ne(0);for(H(o.lessThan);!y(o.greaterThan)&&!h.error;)_t(),y(o.greaterThan)||H(o.comma);H(o.greaterThan),$e(t)}function WE(){if(it(S._interface),z(o._extends))do Fo();while(z(o.comma));jo(!1,!1,!1)}function xc(){y(o.num)||y(o.string)?yn():xe()}function XE(){et()===o.colon?(xc(),sn()):_t(),H(o.bracketR),sn()}function KE(){xc(),H(o.bracketR),H(o.bracketR),y(o.lessThan)||y(o.parenL)?kc():(z(o.question),sn())}function kc(){for(y(o.lessThan)&&qt(),H(o.parenL);!y(o.parenR)&&!y(o.ellipsis)&&!h.error;)zo(),y(o.parenR)||H(o.comma);z(o.ellipsis)&&zo(),H(o.parenR),sn()}function JE(){kc()}function jo(t,e,n){let s;for(e&&y(o.braceBarL)?(H(o.braceBarL),s=o.braceBarR):(H(o.braceL),s=o.braceR);!y(s)&&!h.error;){if(n&&me(S._proto)){const i=et();i!==o.colon&&i!==o.question&&(G(),t=!1)}if(t&&me(S._static)){const i=et();i!==o.colon&&i!==o.question&&G()}if(Ac(),z(o.bracketL))z(o.bracketL)?KE():XE();else if(y(o.parenL)||y(o.lessThan))JE();else{if(me(S._get)||me(S._set)){const i=et();(i===o.name||i===o.string||i===o.num)&&G()}YE()}QE()}H(s)}function YE(){if(y(o.ellipsis)){if(H(o.ellipsis),z(o.comma)||z(o.semi),y(o.braceR))return;_t()}else xc(),y(o.lessThan)||y(o.parenL)?kc():(z(o.question),sn())}function QE(){!z(o.semi)&&!z(o.comma)&&!y(o.braceR)&&!y(o.braceBarR)&&Ie()}function bf(t){for(t||xe();z(o.dot);)xe()}function ZE(){bf(!0),y(o.lessThan)&&os()}function eA(){H(o._typeof),xf()}function tA(){for(H(o.bracketL);h.pos<ie.length&&!y(o.bracketR)&&(_t(),!y(o.bracketR));)H(o.comma);H(o.bracketR)}function zo(){const t=et();t===o.colon||t===o.question?(xe(),z(o.question),sn()):_t()}function Ec(){for(;!y(o.parenR)&&!y(o.ellipsis)&&!h.error;)zo(),y(o.parenR)||H(o.comma);z(o.ellipsis)&&zo()}function xf(){let t=!1;const e=h.noAnonFunctionType;switch(h.type){case o.name:{if(me(S._interface)){WE();return}xe(),ZE();return}case o.braceL:jo(!1,!1,!1);return;case o.braceBarL:jo(!1,!0,!1);return;case o.bracketL:tA();return;case o.lessThan:qt(),H(o.parenL),Ec(),H(o.parenR),H(o.arrow),_t();return;case o.parenL:if(G(),!y(o.parenR)&&!y(o.ellipsis))if(y(o.name)){const n=et();t=n!==o.question&&n!==o.colon}else t=!0;if(t)if(h.noAnonFunctionType=!1,_t(),h.noAnonFunctionType=e,h.noAnonFunctionType||!(y(o.comma)||y(o.parenR)&&et()===o.arrow)){H(o.parenR);return}else z(o.comma);Ec(),H(o.parenR),H(o.arrow),_t();return;case o.minus:G(),zs();return;case o.string:case o.num:case o._true:case o._false:case o._null:case o._this:case o._void:case o.star:G();return;default:if(h.type===o._typeof){eA();return}else if(h.type&o.IS_KEYWORD){G(),h.tokens[h.tokens.length-1].type=o.name;return}}Ie()}function nA(){for(xf();!Ct()&&(y(o.bracketL)||y(o.questionDot));)z(o.questionDot),H(o.bracketL),z(o.bracketR)||(_t(),H(o.bracketR))}function kf(){z(o.question)?kf():nA()}function Ef(){kf(),!h.noAnonFunctionType&&z(o.arrow)&&_t()}function Af(){for(z(o.bitwiseAND),Ef();z(o.bitwiseAND);)Ef()}function sA(){for(z(o.bitwiseOR),Af();z(o.bitwiseOR);)Af()}function _t(){sA()}function as(){sn()}function wf(){xe(),y(o.colon)&&as()}function Ac(){(y(o.plus)||y(o.minus))&&(G(),h.tokens[h.tokens.length-1].isType=!0)}function iA(t){y(o.colon)&&pc(),Vi(!1,t)}function rA(t,e,n){if(y(o.questionDot)&&et()===o.lessThan){if(e){n.stop=!0;return}G(),os(),H(o.parenL),Cn();return}else if(!e&&y(o.lessThan)){const s=h.snapshot();if(os(),H(o.parenL),Cn(),h.error)h.restoreFromSnapshot(s);else return}oc(t,e,n)}function oA(){if(y(o.lessThan)){const t=h.snapshot();os(),h.error&&h.restoreFromSnapshot(t)}}function aA(){if(y(o.name)&&h.contextualKeyword===S._interface){const t=Ne(0);return G(),gc(),$e(t),!0}else if(me(S._enum))return Sf(),!0;return!1}function lA(){return me(S._enum)?(Sf(),!0):!1}function cA(t){if(t===S._declare){if(y(o._class)||y(o.name)||y(o._function)||y(o._var)||y(o._export)){const e=Ne(1);fc(),$e(e)}}else if(y(o.name)){if(t===S._interface){const e=Ne(1);gc(),$e(e)}else if(t===S._type){const e=Ne(1);yc(),$e(e)}else if(t===S._opaque){const e=Ne(1);bc(!1),$e(e)}}Je()}function uA(){return me(S._type)||me(S._interface)||me(S._opaque)||me(S._enum)}function hA(){return y(o.name)&&(h.contextualKeyword===S._type||h.contextualKeyword===S._interface||h.contextualKeyword===S._opaque||h.contextualKeyword===S._enum)}function dA(){if(me(S._type)){const t=Ne(1);G(),y(o.braceL)?(vc(),Hi()):yc(),$e(t)}else if(me(S._opaque)){const t=Ne(1);G(),bc(!1),$e(t)}else if(me(S._interface)){const t=Ne(1);G(),gc(),$e(t)}else Tt(!0)}function pA(){return y(o.star)||me(S._type)&&et()===o.star}function fA(){if(ut(S._type)){const t=Ne(2);Ic(),$e(t)}else Ic()}function mA(t){if(t&&y(o.lessThan)&&os(),me(S._implements)){const e=Ne(0);G(),h.tokens[h.tokens.length-1].type=o._implements;do Bo(),y(o.lessThan)&&os();while(z(o.comma));$e(e)}}function gA(){y(o.lessThan)&&(qt(),y(o.parenL)||Ie())}function yA(){const t=Ne(0);z(o.question),y(o.colon)&&as(),$e(t)}function bA(){if(y(o._typeof)||me(S._type)){const t=Ci();(LE(t)||t.type===o.braceL||t.type===o.star)&&G()}}function xA(){const t=h.contextualKeyword===S._type||h.type===o._typeof;t?G():xe(),me(S._as)&&!Bl(S._as)?(xe(),t&&!y(o.name)&&!(h.type&o.IS_KEYWORD)||xe()):(t&&(y(o.name)||h.type&o.IS_KEYWORD)&&xe(),ut(S._as)&&xe())}function kA(){if(y(o.lessThan)){const t=Ne(0);qt(),$e(t)}}function EA(){y(o.colon)&&as()}function AA(){if(y(o.colon)){const t=h.noAnonFunctionType;h.noAnonFunctionType=!0,as(),h.noAnonFunctionType=t}}function wA(t,e){if(y(o.lessThan)){const n=h.snapshot();let s=nn(t,e);if(h.error)h.restoreFromSnapshot(n),h.type=o.typeParameterStart;else return s;const i=Ne(0);if(qt(),$e(i),s=nn(t,e),s)return!0;Ie()}return nn(t,e)}function SA(){if(y(o.colon)){const t=Ne(0),e=h.snapshot(),n=h.noAnonFunctionType;h.noAnonFunctionType=!0,pc(),h.noAnonFunctionType=n,Ct()&&Ie(),y(o.arrow)||Ie(),h.error&&h.restoreFromSnapshot(e),$e(t)}return z(o.arrow)}function IA(t,e=!1){if(h.tokens[h.tokens.length-1].contextualKeyword===S._async&&y(o.lessThan)){const n=h.snapshot();if(vA()&&!h.error)return;h.restoreFromSnapshot(n)}hf(t,e)}function vA(){h.scopeDepth++;const t=h.tokens.length;return Vs(),lc()?(zi(t),!0):!1}function Sf(){it(S._enum),h.tokens[h.tokens.length-1].type=o._enum,xe(),_A()}function _A(){ut(S._of)&&G(),H(o.braceL),PA(),H(o.braceR)}function PA(){for(;!y(o.braceR)&&!h.error&&!z(o.ellipsis);)$A(),y(o.braceR)||H(o.comma)}function $A(){xe(),z(o.eq)&&G()}function NA(){if(Uo(o.eof),h.scopes.push(new en(0,h.tokens.length,!0)),h.scopeDepth!==0)throw new Error(`Invalid scope depth at end of file: ${h.scopeDepth}`);return new gw(h.tokens,h.scopes)}function Tt(t){Be&&aA()||(y(o.at)&&wc(),CA(t))}function CA(t){if(De&&Xk())return;const e=h.type;switch(e){case o._break:case o._continue:RA();return;case o._debugger:DA();return;case o._do:OA();return;case o._for:LA();return;case o._function:if(et()===o.dot)break;t||Ie(),BA();return;case o._class:t||Ie(),cs(!0);return;case o._if:jA();return;case o._return:zA();return;case o._switch:VA();return;case o._throw:UA();return;case o._try:HA();return;case o._let:case o._const:t||Ie();case o._var:Vo(e!==o._var);return;case o._while:GA();return;case o.braceL:Tn();return;case o.semi:WA();return;case o._export:case o._import:{const i=et();if(i===o.parenL||i===o.dot)break;G(),e===o._import?Of():Rf();return}case o.name:if(h.contextualKeyword===S._async){const i=h.start,r=h.snapshot();if(G(),y(o._function)&&!Ct()){H(o._function),ls(i,!0);return}else h.restoreFromSnapshot(r)}else if(h.contextualKeyword===S._using&&!c1()&&et()===o.name){Vo(!0);return}else if(If()){it(S._await),Vo(!0);return}}const n=h.tokens.length;mt();let s=null;if(h.tokens.length===n+1){const i=h.tokens[h.tokens.length-1];i.type===o.name&&(s=i.contextualKeyword)}if(s==null){Je();return}z(o.colon)?XA():KA(s)}function If(){if(!me(S._await))return!1;const t=h.snapshot();return G(),!me(S._using)||Et()||(G(),!y(o.name)||Et())?(h.restoreFromSnapshot(t),!1):(h.restoreFromSnapshot(t),!0)}function wc(){for(;y(o.at);)vf()}function vf(){if(G(),z(o.parenL))mt(),H(o.parenR);else{for(xe();z(o.dot);)xe();TA()}}function TA(){De?lE():_f()}function _f(){z(o.parenL)&&Cn()}function RA(){G(),tn()||(xe(),Je())}function DA(){G(),Je()}function OA(){G(),Tt(!1),H(o._while),Mo(),z(o.semi)}function LA(){h.scopeDepth++;const t=h.tokens.length;FA();const e=h.tokens.length;h.scopes.push(new en(t,e,!1)),h.scopeDepth--}function MA(){return!(!me(S._using)||Bl(S._of))}function FA(){G();let t=!1;if(me(S._await)&&(t=!0,G()),H(o.parenL),y(o.semi)){t&&Ie(),Sc();return}const e=If();if(e||y(o._var)||y(o._let)||y(o._const)||MA()){if(e&&it(S._await),G(),$f(!0,h.type!==o._var),y(o._in)||me(S._of)){Pf(t);return}Sc();return}if(mt(!0),y(o._in)||me(S._of)){Pf(t);return}t&&Ie(),Sc()}function BA(){const t=h.start;G(),ls(t,!0)}function jA(){G(),Mo(),Tt(!1),z(o._else)&&Tt(!1)}function zA(){G(),tn()||(mt(),Je())}function VA(){G(),Mo(),h.scopeDepth++;const t=h.tokens.length;for(H(o.braceL);!y(o.braceR)&&!h.error;)if(y(o._case)||y(o._default)){const n=y(o._case);G(),n&&mt(),H(o.colon)}else Tt(!0);G();const e=h.tokens.length;h.scopes.push(new en(t,e,!1)),h.scopeDepth--}function UA(){G(),mt(),Je()}function qA(){No(!0),De&&Ms()}function HA(){if(G(),Tn(),y(o._catch)){G();let t=null;if(y(o.parenL)&&(h.scopeDepth++,t=h.tokens.length,H(o.parenL),qA(),H(o.parenR)),Tn(),t!=null){const e=h.tokens.length;h.scopes.push(new en(t,e,!1)),h.scopeDepth--}}z(o._finally)&&Tn()}function Vo(t){G(),$f(!1,t),Je()}function GA(){G(),Mo(),Tt(!1)}function WA(){G()}function XA(){Tt(!0)}function KA(t){De?Jk(t):Be?cA(t):Je()}function Tn(t=!1,e=0){const n=h.tokens.length;h.scopeDepth++,H(o.braceL),e&&(h.tokens[h.tokens.length-1].contextId=e),Uo(o.braceR),e&&(h.tokens[h.tokens.length-1].contextId=e);const s=h.tokens.length;h.scopes.push(new en(n,s,t)),h.scopeDepth--}function Uo(t){for(;!z(t)&&!h.error;)Tt(!0)}function Sc(){H(o.semi),y(o.semi)||mt(),H(o.semi),y(o.parenR)||mt(),H(o.parenR),Tt(!1)}function Pf(t){t?ut(S._of):G(),mt(),H(o.parenR),Tt(!1)}function $f(t,e){for(;;){if(JA(e),z(o.eq)){const n=h.tokens.length-1;gt(t),h.tokens[n].rhsEndIndex=h.tokens.length}if(!z(o.comma))break}}function JA(t){No(t),De?tE():Be&&EA()}function ls(t,e,n=!1){y(o.star)&&G(),e&&!n&&!y(o.name)&&!y(o._yield)&&Ie();let s=null;y(o.name)&&(e||(s=h.tokens.length,h.scopeDepth++),$n(!1));const i=h.tokens.length;h.scopeDepth++,Vs(),ff(t);const r=h.tokens.length;h.scopes.push(new en(i,r,!0)),h.scopeDepth--,s!==null&&(h.scopes.push(new en(s,r,!0)),h.scopeDepth--)}function Vs(t=!1,e=0){De?eE():Be&&kA(),H(o.parenL),e&&(h.tokens[h.tokens.length-1].contextId=e),Wl(o.parenR,!1,!1,t,e),e&&(h.tokens[h.tokens.length-1].contextId=e)}function cs(t,e=!1){const n=$i();G(),h.tokens[h.tokens.length-1].contextId=n,h.tokens[h.tokens.length-1].isExpression=!t;let s=null;t||(s=h.tokens.length,h.scopeDepth++),ew(t,e),tw();const i=h.tokens.length;if(YA(n),!h.error&&(h.tokens[i].contextId=n,h.tokens[h.tokens.length-1].contextId=n,s!==null)){const r=h.tokens.length;h.scopes.push(new en(s,r,!1)),h.scopeDepth--}}function Nf(){return y(o.eq)||y(o.semi)||y(o.braceR)||y(o.bang)||y(o.colon)}function Cf(){return y(o.parenL)||y(o.lessThan)}function YA(t){for(H(o.braceL);!z(o.braceR)&&!h.error;){if(z(o.semi))continue;if(y(o.at)){vf();continue}const e=h.start;QA(e,t)}}function QA(t,e){De&&Kl([S._declare,S._public,S._protected,S._private,S._override]);let n=!1;if(y(o.name)&&h.contextualKeyword===S._static){if(xe(),Cf()){Ui(t,!1);return}else if(Nf()){qo();return}if(h.tokens[h.tokens.length-1].type=o._static,n=!0,y(o.braceL)){h.tokens[h.tokens.length-1].contextId=e,Tn();return}}ZA(t,n,e)}function ZA(t,e,n){if(De&&Kk(e))return;if(z(o.star)){qi(n),Ui(t,!1);return}qi(n);let s=!1;const i=h.tokens[h.tokens.length-1];i.contextualKeyword===S._constructor&&(s=!0),Tf(),Cf()?Ui(t,s):Nf()?qo():i.contextualKeyword===S._async&&!tn()?(h.tokens[h.tokens.length-1].type=o._async,y(o.star)&&G(),qi(n),Tf(),Ui(t,!1)):(i.contextualKeyword===S._get||i.contextualKeyword===S._set)&&!(tn()&&y(o.star))?(i.contextualKeyword===S._get?h.tokens[h.tokens.length-1].type=o._get:h.tokens[h.tokens.length-1].type=o._set,qi(n),Ui(t,!1)):i.contextualKeyword===S._accessor&&!tn()?(qi(n),qo()):tn()?qo():Ie()}function Ui(t,e){De?rs():Be&&y(o.lessThan)&&qt(),dc(t,e)}function qi(t){ji(t)}function Tf(){if(De){const t=Ne(0);z(o.question),$e(t)}}function qo(){if(De?(g1(o.bang),Ms()):Be&&y(o.colon)&&as(),y(o.eq)){const t=h.tokens.length;G(),gt(),h.tokens[t].rhsEndIndex=h.tokens.length}Je()}function ew(t,e=!1){De&&(!t||e)&&me(S._implements)||(y(o.name)&&$n(!0),De?rs():Be&&y(o.lessThan)&&qt())}function tw(){let t=!1;z(o._extends)?(uf(),t=!0):t=!1,De?Qk(t):Be&&mA(t)}function Rf(){const t=h.tokens.length-1;De&&qk()||(rw()?ow():iw()?(xe(),y(o.comma)&&et()===o.star?(H(o.comma),H(o.star),it(S._as),xe()):Df(),Hi()):z(o._default)?nw():lw()?sw():(vc(),Hi()),h.tokens[t].rhsEndIndex=h.tokens.length)}function nw(){if(De&&Wk()||Be&&lA())return;const t=h.start;z(o._function)?ls(t,!0,!0):me(S._async)&&et()===o._function?(ut(S._async),z(o._function),ls(t,!0,!0)):y(o._class)?cs(!0,!0):y(o.at)?(wc(),cs(!0,!0)):(gt(),Je())}function sw(){De?Yk():Be?dA():Tt(!0)}function iw(){if(De&&sf())return!1;if(Be&&hA())return!1;if(y(o.name))return h.contextualKeyword!==S._async;if(!y(o._default))return!1;const t=jl(),e=Ci(),n=e.type===o.name&&e.contextualKeyword===S._from;if(e.type===o.comma)return!0;if(n){const s=ie.charCodeAt(y1(t+4));return s===P.quotationMark||s===P.apostrophe}return!1}function Df(){z(o.comma)&&vc()}function Hi(){ut(S._from)&&(yn(),Mf()),Je()}function rw(){return Be?pA():y(o.star)}function ow(){Be?fA():Ic()}function Ic(){H(o.star),me(S._as)?aw():Hi()}function aw(){G(),h.tokens[h.tokens.length-1].type=o._as,xe(),Df(),Hi()}function lw(){return De&&sf()||Be&&uA()||h.type===o._var||h.type===o._const||h.type===o._let||h.type===o._function||h.type===o._class||me(S._async)||y(o.at)}function vc(){let t=!0;for(H(o.braceL);!z(o.braceR)&&!h.error;){if(t)t=!1;else if(H(o.comma),z(o.braceR))break;cw()}}function cw(){if(De){Gk();return}xe(),h.tokens[h.tokens.length-1].identifierRole=ge.ExportAccess,ut(S._as)&&xe()}function uw(){const t=h.snapshot();return it(S._module),ut(S._from)?me(S._from)?(h.restoreFromSnapshot(t),!0):(h.restoreFromSnapshot(t),!1):y(o.comma)?(h.restoreFromSnapshot(t),!1):(h.restoreFromSnapshot(t),!0)}function hw(){me(S._module)&&uw()&&G()}function Of(){if(De&&y(o.name)&&et()===o.eq){nc();return}if(De&&me(S._type)){const t=Ci();if(t.type===o.name&&t.contextualKeyword!==S._from){if(it(S._type),et()===o.eq){nc();return}}else(t.type===o.star||t.type===o.braceL)&&it(S._type)}y(o.string)||(hw(),pw(),it(S._from)),yn(),Mf(),Je()}function dw(){return y(o.name)}function Lf(){$o()}function pw(){Be&&bA();let t=!0;if(!(dw()&&(Lf(),!z(o.comma)))){if(y(o.star)){G(),it(S._as),Lf();return}for(H(o.braceL);!z(o.braceR)&&!h.error;){if(t)t=!1;else if(z(o.colon)&&Ie("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),H(o.comma),z(o.braceR))break;fw()}}}function fw(){if(De){Hk();return}if(Be){xA();return}$o(),me(S._as)&&(h.tokens[h.tokens.length-1].identifierRole=ge.ImportAccess,G(),$o())}function Mf(){(y(o._with)||me(S._assert)&&!Et())&&(G(),hc(!1,!1))}function mw(){return h.pos===0&&ie.charCodeAt(0)===P.numberSign&&ie.charCodeAt(1)===P.exclamationMark&&k1(2),x1(),NA()}class gw{constructor(e,n){this.tokens=e,this.scopes=n}}function yw(t,e,n,s){if(s&&n)throw new Error("Cannot combine flow and typescript plugins.");Ub(t,e,n,s);const i=mw();if(h.error)throw jb(h.error);return i}function bw(t){let e=t.currentIndex(),n=0;const s=t.currentToken();do{const i=t.tokens[e];if(i.isOptionalChainStart&&n++,i.isOptionalChainEnd&&n--,n+=i.numNullishCoalesceStarts,n-=i.numNullishCoalesceEnds,i.contextualKeyword===S._await&&i.identifierRole==null&&i.scopeDepth===s.scopeDepth)return!0;e+=1}while(n>0&&e<t.tokens.length);return!1}class Gi{__init(){this.resultCode=""}__init2(){this.resultMappings=new Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(e,n,s,i,r){this.code=e,this.tokens=n,this.isFlowEnabled=s,this.disableESTransforms=i,this.helperManager=r,Gi.prototype.__init.call(this),Gi.prototype.__init2.call(this),Gi.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(e){this.resultCode=e.resultCode,this.tokenIndex=e.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(e){const n=this.resultCode.slice(e.resultCode.length);return this.resultCode=e.resultCode,n}reset(){this.resultCode="",this.resultMappings=new Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(e,n){return this.matches1AtIndex(e,o.name)&&this.tokens[e].contextualKeyword===n}identifierNameAtIndex(e){return this.identifierNameForToken(this.tokens[e])}identifierNameAtRelativeIndex(e){return this.identifierNameForToken(this.tokenAtRelativeIndex(e))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(e){return this.code.slice(e.start,e.end)}rawCodeForToken(e){return this.code.slice(e.start,e.end)}stringValueAtIndex(e){return this.stringValueForToken(this.tokens[e])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(e){return this.code.slice(e.start+1,e.end-1)}matches1AtIndex(e,n){return this.tokens[e].type===n}matches2AtIndex(e,n,s){return this.tokens[e].type===n&&this.tokens[e+1].type===s}matches3AtIndex(e,n,s,i){return this.tokens[e].type===n&&this.tokens[e+1].type===s&&this.tokens[e+2].type===i}matches1(e){return this.tokens[this.tokenIndex].type===e}matches2(e,n){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===n}matches3(e,n,s){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===s}matches4(e,n,s,i){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===s&&this.tokens[this.tokenIndex+3].type===i}matches5(e,n,s,i,r){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===s&&this.tokens[this.tokenIndex+3].type===i&&this.tokens[this.tokenIndex+4].type===r}matchesContextual(e){return this.matchesContextualAtIndex(this.tokenIndex,e)}matchesContextIdAndLabel(e,n){return this.matches1(e)&&this.currentToken().contextId===n}previousWhitespaceAndComments(){let e=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);return this.isFlowEnabled&&(e=e.replace(/@flow/g,"")),e}replaceToken(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(e){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,""),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken("")}removeToken(){this.replaceTokenTrimmingLeftWhitespace("")}removeBalancedCode(){let e=0;for(;!this.isAtEnd();){if(this.matches1(o.braceL))e++;else if(this.matches1(o.braceR)){if(e===0)return;e--}this.removeToken()}}copyExpectedToken(e){if(this.tokens[this.tokenIndex].type!==e)throw new Error(`Expected token ${e}`);this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}copyTokenWithPrefix(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=e,this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}appendTokenPrefix(){const e=this.currentToken();if((e.numNullishCoalesceStarts||e.isOptionalChainStart)&&(e.isAsyncOperation=bw(this)),!this.disableESTransforms){if(e.numNullishCoalesceStarts)for(let n=0;n<e.numNullishCoalesceStarts;n++)e.isAsyncOperation?(this.resultCode+="await ",this.resultCode+=this.helperManager.getHelperName("asyncNullishCoalesce")):this.resultCode+=this.helperManager.getHelperName("nullishCoalesce"),this.resultCode+="(";e.isOptionalChainStart&&(e.isAsyncOperation&&(this.resultCode+="await "),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===o._delete?e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){const e=this.currentToken();if(e.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),e.numNullishCoalesceEnds&&!this.disableESTransforms)for(let n=0;n<e.numNullishCoalesceEnds;n++)this.resultCode+="))"}appendCode(e){this.resultCode+=e}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){const e=this.currentToken();return this.code.slice(e.start,e.end)}tokenAtRelativeIndex(e){return this.tokens[this.tokenIndex+e]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length)throw new Error("Unexpectedly reached end of input.");this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length)throw new Error("Tried to finish processing tokens before reaching the end.");return this.resultCode+=this.previousWhitespaceAndComments(),{code:this.resultCode,mappings:this.resultMappings}}isAtEnd(){return this.tokenIndex===this.tokens.length}}function xw(t,e,n,s){const i=e.snapshot(),r=kw(e);let a=[];const l=[],c=[];let u=null;const d=[],m=[],f=e.currentToken().contextId;if(f==null)throw new Error("Expected non-null class context ID on class open-brace.");for(e.nextToken();!e.matchesContextIdAndLabel(o.braceR,f);)if(e.matchesContextual(S._constructor)&&!e.currentToken().isType)({constructorInitializerStatements:a,constructorInsertPos:u}=Ff(e));else if(e.matches1(o.semi))s||m.push({start:e.currentIndex(),end:e.currentIndex()+1}),e.nextToken();else if(e.currentToken().isType)e.nextToken();else{const g=e.currentIndex();let E=!1,k=!1,I=!1;for(;Ho(e.currentToken());)e.matches1(o._static)&&(E=!0),e.matches1(o.hash)&&(k=!0),(e.matches1(o._declare)||e.matches1(o._abstract))&&(I=!0),e.nextToken();if(E&&e.matches1(o.braceL)){_c(e,f);continue}if(k){_c(e,f);continue}if(e.matchesContextual(S._constructor)&&!e.currentToken().isType){({constructorInitializerStatements:a,constructorInsertPos:u}=Ff(e));continue}const A=e.currentIndex();if(Ew(e),e.matches1(o.lessThan)||e.matches1(o.parenL)){_c(e,f);continue}for(;e.currentToken().isType;)e.nextToken();if(e.matches1(o.eq)){const x=e.currentIndex(),w=e.currentToken().rhsEndIndex;if(w==null)throw new Error("Expected rhsEndIndex on class field assignment.");for(e.nextToken();e.currentIndex()<w;)t.processToken();let v;E?(v=n.claimFreeName("__initStatic"),c.push(v)):(v=n.claimFreeName("__init"),l.push(v)),d.push({initializerName:v,equalsIndex:x,start:A,end:e.currentIndex()})}else(!s||I)&&m.push({start:g,end:e.currentIndex()})}return e.restoreToSnapshot(i),s?{headerInfo:r,constructorInitializerStatements:a,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:u,fields:[],rangesToRemove:m}:{headerInfo:r,constructorInitializerStatements:a,instanceInitializerNames:l,staticInitializerNames:c,constructorInsertPos:u,fields:d,rangesToRemove:m}}function _c(t,e){for(t.nextToken();t.currentToken().contextId!==e;)t.nextToken();for(;Ho(t.tokenAtRelativeIndex(-1));)t.previousToken()}function kw(t){const e=t.currentToken(),n=e.contextId;if(n==null)throw new Error("Expected context ID on class token.");const s=e.isExpression;if(s==null)throw new Error("Expected isExpression on class token.");let i=null,r=!1;for(t.nextToken(),t.matches1(o.name)&&(i=t.identifierName());!t.matchesContextIdAndLabel(o.braceL,n);)t.matches1(o._extends)&&!t.currentToken().isType&&(r=!0),t.nextToken();return{isExpression:s,className:i,hasSuperclass:r}}function Ff(t){const e=[];t.nextToken();const n=t.currentToken().contextId;if(n==null)throw new Error("Expected context ID on open-paren starting constructor params.");for(;!t.matchesContextIdAndLabel(o.parenR,n);)if(t.currentToken().contextId===n){if(t.nextToken(),Ho(t.currentToken())){for(t.nextToken();Ho(t.currentToken());)t.nextToken();const r=t.currentToken();if(r.type!==o.name)throw new Error("Expected identifier after access modifiers in constructor arg.");const a=t.identifierNameForToken(r);e.push(`this.${a} = ${a}`)}}else t.nextToken();for(t.nextToken();t.currentToken().isType;)t.nextToken();let s=t.currentIndex(),i=!1;for(;!t.matchesContextIdAndLabel(o.braceR,n);){if(!i&&t.matches2(o._super,o.parenL)){t.nextToken();const r=t.currentToken().contextId;if(r==null)throw new Error("Expected a context ID on the super call");for(;!t.matchesContextIdAndLabel(o.parenR,r);)t.nextToken();s=t.currentIndex(),i=!0}t.nextToken()}return t.nextToken(),{constructorInitializerStatements:e,constructorInsertPos:s}}function Ho(t){return[o._async,o._get,o._set,o.plus,o.minus,o._readonly,o._static,o._public,o._private,o._protected,o._override,o._abstract,o.star,o._declare,o.hash].includes(t.type)}function Ew(t){if(t.matches1(o.bracketL)){const n=t.currentToken().contextId;if(n==null)throw new Error("Expected class context ID on computed name open bracket.");for(;!t.matchesContextIdAndLabel(o.bracketR,n);)t.nextToken();t.nextToken()}else t.nextToken()}function Bf(t){if(t.removeInitialToken(),t.removeToken(),t.removeToken(),t.removeToken(),t.matches1(o.parenL))t.removeToken(),t.removeToken(),t.removeToken();else for(;t.matches1(o.dot);)t.removeToken(),t.removeToken()}const jf={typeDeclarations:new Set,valueDeclarations:new Set};function zf(t){const e=new Set,n=new Set;for(let s=0;s<t.tokens.length;s++){const i=t.tokens[s];i.type===o.name&&m1(i)&&(i.isType?e.add(t.identifierNameForToken(i)):n.add(t.identifierNameForToken(i)))}return{typeDeclarations:e,valueDeclarations:n}}function Vf(t){let e=t.currentIndex();for(;!t.matches1AtIndex(e,o.braceR);)e++;return t.matchesContextualAtIndex(e+1,S._from)&&t.matches1AtIndex(e+2,o.string)}function us(t){(t.matches2(o._with,o.braceL)||t.matches2(o.name,o.braceL)&&t.matchesContextual(S._assert))&&(t.removeToken(),t.removeToken(),t.removeBalancedCode(),t.removeToken())}function Uf(t,e,n,s){if(!t||e)return!1;const i=n.currentToken();if(i.rhsEndIndex==null)throw new Error("Expected non-null rhsEndIndex on export token.");const r=i.rhsEndIndex-n.currentIndex();if(r!==3&&!(r===4&&n.matches1AtIndex(i.rhsEndIndex-1,o.semi)))return!1;const a=n.tokenAtRelativeIndex(2);if(a.type!==o.name)return!1;const l=n.identifierNameForToken(a);return s.typeDeclarations.has(l)&&!s.valueDeclarations.has(l)}class Wi extends Vt{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(e,n,s,i,r,a,l,c,u,d,m,f){super(),this.rootTransformer=e,this.tokens=n,this.importProcessor=s,this.nameManager=i,this.helperManager=r,this.reactHotLoaderTransformer=a,this.enableLegacyBabel5ModuleInterop=l,this.enableLegacyTypeScriptModuleInterop=c,this.isTypeScriptTransformEnabled=u,this.isFlowTransformEnabled=d,this.preserveDynamicImport=m,this.keepUnusedImports=f,Wi.prototype.__init.call(this),Wi.prototype.__init2.call(this),Wi.prototype.__init3.call(this),this.declarationInfo=u?zf(n):jf}getPrefixCode(){let e="";return this.hadExport&&(e+='Object.defineProperty(exports, "__esModule", {value: true});'),e}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?`
176
+ `};class Po{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(e){this.nameManager=e,Po.prototype.__init.call(this),Po.prototype.__init2.call(this)}getHelperName(e){let n=this.helperNames[e];return n||(n=this.nameManager.claimFreeName(`_${e}`),this.helperNames[e]=n,n)}emitHelpers(){let e="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[n,s]of Object.entries(qx)){const r=this.helperNames[n];let i=s;n==="optionalChainDelete"?i=i.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):n==="asyncOptionalChainDelete"?i=i.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):n==="require"&&(this.createRequireName===null&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),i=i.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),r&&(e+=" ",e+=i.replace(n,r).replace(/\s+/g," ").trim())}return e}}function F1(t,e,n){Hx(t,n)&&Gx(t,e,n)}function Hx(t,e){for(const n of t.tokens)if(n.type===o.name&&!n.isType&&Xb(n)&&e.has(t.identifierNameForToken(n)))return!0;return!1}function Gx(t,e,n){const s=[];let r=e.length-1;for(let i=t.tokens.length-1;;i--){for(;s.length>0&&s[s.length-1].startTokenIndex===i+1;)s.pop();for(;r>=0&&e[r].endTokenIndex===i+1;)s.push(e[r]),r--;if(i<0)break;const a=t.tokens[i],l=t.identifierNameForToken(a);if(s.length>1&&!a.isType&&a.type===o.name&&n.has(l)){if(Kb(a))B1(s[s.length-1],t,l);else if(Jb(a)){let c=s.length-1;for(;c>0&&!s[c].isFunctionScope;)c--;if(c<0)throw new Error("Did not find parent function scope.");B1(s[c],t,l)}}}if(s.length>0)throw new Error("Expected empty scope stack after processing file.")}function B1(t,e,n){for(let s=t.startTokenIndex;s<t.endTokenIndex;s++){const r=e.tokens[s];(r.type===o.name||r.type===o.jsxName)&&e.identifierNameForToken(r)===n&&(r.shadowsGlobal=!0)}}function Wx(t,e){const n=[];for(const s of e)s.type===o.name&&n.push(t.slice(s.start,s.end));return n}class ql{__init(){this.usedNames=new Set}constructor(e,n){ql.prototype.__init.call(this),this.usedNames=new Set(Wx(e,n))}claimFreeName(e){const n=this.findFreeName(e);return this.usedNames.add(n),n}findFreeName(e){if(!this.usedNames.has(e))return e;let n=2;for(;this.usedNames.has(e+String(n));)n++;return e+String(n)}}var Lr={},Mr={},Ut={},j1;function Hl(){if(j1)return Ut;j1=1;var t=Ut&&Ut.__extends||function(){var i=function(a,l){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,u){c.__proto__=u}||function(c,u){for(var d in u)u.hasOwnProperty(d)&&(c[d]=u[d])},i(a,l)};return function(a,l){i(a,l);function c(){this.constructor=a}a.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}();Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.DetailContext=Ut.NoopContext=Ut.VError=void 0;var e=function(i){t(a,i);function a(l,c){var u=i.call(this,c)||this;return u.path=l,Object.setPrototypeOf(u,a.prototype),u}return a}(Error);Ut.VError=e;var n=function(){function i(){}return i.prototype.fail=function(a,l,c){return!1},i.prototype.unionResolver=function(){return this},i.prototype.createContext=function(){return this},i.prototype.resolveUnion=function(a){},i}();Ut.NoopContext=n;var s=function(){function i(){this._propNames=[""],this._messages=[null],this._score=0}return i.prototype.fail=function(a,l,c){return this._propNames.push(a),this._messages.push(l),this._score+=c,!1},i.prototype.unionResolver=function(){return new r},i.prototype.resolveUnion=function(a){for(var l,c,u=a,d=null,m=0,f=u.contexts;m<f.length;m++){var g=f[m];(!d||g._score>=d._score)&&(d=g)}d&&d._score>0&&((l=this._propNames).push.apply(l,d._propNames),(c=this._messages).push.apply(c,d._messages))},i.prototype.getError=function(a){for(var l=[],c=this._propNames.length-1;c>=0;c--){var u=this._propNames[c];a+=typeof u=="number"?"["+u+"]":u?"."+u:"";var d=this._messages[c];d&&l.push(a+" "+d)}return new e(a,l.join("; "))},i.prototype.getErrorDetail=function(a){for(var l=[],c=this._propNames.length-1;c>=0;c--){var u=this._propNames[c];a+=typeof u=="number"?"["+u+"]":u?"."+u:"";var d=this._messages[c];d&&l.push({path:a,message:d})}for(var m=null,c=l.length-1;c>=0;c--)m&&(l[c].nested=[m]),m=l[c];return m},i}();Ut.DetailContext=s;var r=function(){function i(){this.contexts=[]}return i.prototype.createContext=function(){var a=new s;return this.contexts.push(a),a},i}();return Ut}var z1;function V1(){return z1||(z1=1,function(t){var e=Mr&&Mr.__extends||function(){var x=function(F,B){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,ee){J.__proto__=ee}||function(J,ee){for(var ie in ee)ee.hasOwnProperty(ie)&&(J[ie]=ee[ie])},x(F,B)};return function(F,B){x(F,B);function J(){this.constructor=F}F.prototype=B===null?Object.create(B):(J.prototype=B.prototype,new J)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.basicTypes=t.BasicType=t.TParamList=t.TParam=t.param=t.TFunc=t.func=t.TProp=t.TOptional=t.opt=t.TIface=t.iface=t.TEnumLiteral=t.enumlit=t.TEnumType=t.enumtype=t.TIntersection=t.intersection=t.TUnion=t.union=t.TTuple=t.tuple=t.TArray=t.array=t.TLiteral=t.lit=t.TName=t.name=t.TType=void 0;var n=Hl(),s=function(){function x(){}return x}();t.TType=s;function r(x){return typeof x=="string"?a(x):x}function i(x,F){var B=x[F];if(!B)throw new Error("Unknown type "+F);return B}function a(x){return new l(x)}t.name=a;var l=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.name=B,J._failMsg="is not a "+B,J}return F.prototype.getChecker=function(B,J,ee){var ie=this,se=i(B,this.name),ke=se.getChecker(B,J,ee);return se instanceof X||se instanceof F?ke:function(ye,be){return ke(ye,be)?!0:be.fail(null,ie._failMsg,0)}},F}(s);t.TName=l;function c(x){return new u(x)}t.lit=c;var u=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.value=B,J.name=JSON.stringify(B),J._failMsg="is not "+J.name,J}return F.prototype.getChecker=function(B,J){var ee=this;return function(ie,se){return ie===ee.value?!0:se.fail(null,ee._failMsg,-1)}},F}(s);t.TLiteral=u;function d(x){return new m(r(x))}t.array=d;var m=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.ttype=B,J}return F.prototype.getChecker=function(B,J){var ee=this.ttype.getChecker(B,J);return function(ie,se){if(!Array.isArray(ie))return se.fail(null,"is not an array",0);for(var ke=0;ke<ie.length;ke++){var ye=ee(ie[ke],se);if(!ye)return se.fail(ke,null,1)}return!0}},F}(s);t.TArray=m;function f(){for(var x=[],F=0;F<arguments.length;F++)x[F]=arguments[F];return new g(x.map(function(B){return r(B)}))}t.tuple=f;var g=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.ttypes=B,J}return F.prototype.getChecker=function(B,J){var ee=this.ttypes.map(function(se){return se.getChecker(B,J)}),ie=function(se,ke){if(!Array.isArray(se))return ke.fail(null,"is not an array",0);for(var ye=0;ye<ee.length;ye++){var be=ee[ye](se[ye],ke);if(!be)return ke.fail(ye,null,1)}return!0};return J?function(se,ke){return ie(se,ke)?se.length<=ee.length?!0:ke.fail(ee.length,"is extraneous",2):!1}:ie},F}(s);t.TTuple=g;function w(){for(var x=[],F=0;F<arguments.length;F++)x[F]=arguments[F];return new k(x.map(function(B){return r(B)}))}t.union=w;var k=function(x){e(F,x);function F(B){var J=x.call(this)||this;J.ttypes=B;var ee=B.map(function(se){return se instanceof l||se instanceof u?se.name:null}).filter(function(se){return se}),ie=B.length-ee.length;return ee.length?(ie>0&&ee.push(ie+" more"),J._failMsg="is none of "+ee.join(", ")):J._failMsg="is none of "+ie+" types",J}return F.prototype.getChecker=function(B,J){var ee=this,ie=this.ttypes.map(function(se){return se.getChecker(B,J)});return function(se,ke){for(var ye=ke.unionResolver(),be=0;be<ie.length;be++){var fe=ie[be](se,ye.createContext());if(fe)return!0}return ke.resolveUnion(ye),ke.fail(null,ee._failMsg,0)}},F}(s);t.TUnion=k;function I(){for(var x=[],F=0;F<arguments.length;F++)x[F]=arguments[F];return new E(x.map(function(B){return r(B)}))}t.intersection=I;var E=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.ttypes=B,J}return F.prototype.getChecker=function(B,J){var ee=new Set,ie=this.ttypes.map(function(se){return se.getChecker(B,J,ee)});return function(se,ke){var ye=ie.every(function(be){return be(se,ke)});return ye?!0:ke.fail(null,null,0)}},F}(s);t.TIntersection=E;function b(x){return new A(x)}t.enumtype=b;var A=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.members=B,J.validValues=new Set,J._failMsg="is not a valid enum value",J.validValues=new Set(Object.keys(B).map(function(ee){return B[ee]})),J}return F.prototype.getChecker=function(B,J){var ee=this;return function(ie,se){return ee.validValues.has(ie)?!0:se.fail(null,ee._failMsg,0)}},F}(s);t.TEnumType=A;function v(x,F){return new $(x,F)}t.enumlit=v;var $=function(x){e(F,x);function F(B,J){var ee=x.call(this)||this;return ee.enumName=B,ee.prop=J,ee._failMsg="is not "+B+"."+J,ee}return F.prototype.getChecker=function(B,J){var ee=this,ie=i(B,this.enumName);if(!(ie instanceof A))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var se=ie.members[this.prop];if(!ie.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(ke,ye){return ke===se?!0:ye.fail(null,ee._failMsg,-1)}},F}(s);t.TEnumLiteral=$;function D(x){return Object.keys(x).map(function(F){return j(F,x[F])})}function j(x,F){return F instanceof _?new N(x,F.ttype,!0):new N(x,r(F),!1)}function V(x,F){return new U(x,D(F))}t.iface=V;var U=function(x){e(F,x);function F(B,J){var ee=x.call(this)||this;return ee.bases=B,ee.props=J,ee.propSet=new Set(J.map(function(ie){return ie.name})),ee}return F.prototype.getChecker=function(B,J,ee){var ie=this,se=this.bases.map(function(qe){return i(B,qe).getChecker(B,J)}),ke=this.props.map(function(qe){return qe.ttype.getChecker(B,J)}),ye=new n.NoopContext,be=this.props.map(function(qe,ne){return!qe.isOpt&&!ke[ne](void 0,ye)}),fe=function(qe,ne){if(typeof qe!="object"||qe===null)return ne.fail(null,"is not an object",0);for(var we=0;we<se.length;we++)if(!se[we](qe,ne))return!1;for(var we=0;we<ke.length;we++){var Z=ie.props[we].name,Se=qe[Z];if(Se===void 0){if(be[we])return ne.fail(Z,"is missing",1)}else{var Xe=ke[we](Se,ne);if(!Xe)return ne.fail(Z,null,1)}}return!0};if(!J)return fe;var Oe=this.propSet;return ee&&(this.propSet.forEach(function(qe){return ee.add(qe)}),Oe=ee),function(qe,ne){if(!fe(qe,ne))return!1;for(var we in qe)if(!Oe.has(we))return ne.fail(we,"is extraneous",2);return!0}},F}(s);t.TIface=U;function O(x){return new _(r(x))}t.opt=O;var _=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.ttype=B,J}return F.prototype.getChecker=function(B,J){var ee=this.ttype.getChecker(B,J);return function(ie,se){return ie===void 0||ee(ie,se)}},F}(s);t.TOptional=_;var N=function(){function x(F,B,J){this.name=F,this.ttype=B,this.isOpt=J}return x}();t.TProp=N;function C(x){for(var F=[],B=1;B<arguments.length;B++)F[B-1]=arguments[B];return new R(new K(F),r(x))}t.func=C;var R=function(x){e(F,x);function F(B,J){var ee=x.call(this)||this;return ee.paramList=B,ee.result=J,ee}return F.prototype.getChecker=function(B,J){return function(ee,ie){return typeof ee=="function"?!0:ie.fail(null,"is not a function",0)}},F}(s);t.TFunc=R;function M(x,F,B){return new q(x,r(F),!!B)}t.param=M;var q=function(){function x(F,B,J){this.name=F,this.ttype=B,this.isOpt=J}return x}();t.TParam=q;var K=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.params=B,J}return F.prototype.getChecker=function(B,J){var ee=this,ie=this.params.map(function(be){return be.ttype.getChecker(B,J)}),se=new n.NoopContext,ke=this.params.map(function(be,fe){return!be.isOpt&&!ie[fe](void 0,se)}),ye=function(be,fe){if(!Array.isArray(be))return fe.fail(null,"is not an array",0);for(var Oe=0;Oe<ie.length;Oe++){var qe=ee.params[Oe];if(be[Oe]===void 0){if(ke[Oe])return fe.fail(qe.name,"is missing",1)}else{var ne=ie[Oe](be[Oe],fe);if(!ne)return fe.fail(qe.name,null,1)}}return!0};return J?function(be,fe){return ye(be,fe)?be.length<=ie.length?!0:fe.fail(ie.length,"is extraneous",2):!1}:ye},F}(s);t.TParamList=K;var X=function(x){e(F,x);function F(B,J){var ee=x.call(this)||this;return ee.validator=B,ee.message=J,ee}return F.prototype.getChecker=function(B,J){var ee=this;return function(ie,se){return ee.validator(ie)?!0:se.fail(null,ee.message,0)}},F}(s);t.BasicType=X,t.basicTypes={any:new X(function(x){return!0},"is invalid"),number:new X(function(x){return typeof x=="number"},"is not a number"),object:new X(function(x){return typeof x=="object"&&x},"is not an object"),boolean:new X(function(x){return typeof x=="boolean"},"is not a boolean"),string:new X(function(x){return typeof x=="string"},"is not a string"),symbol:new X(function(x){return typeof x=="symbol"},"is not a symbol"),void:new X(function(x){return x==null},"is not void"),undefined:new X(function(x){return x===void 0},"is not undefined"),null:new X(function(x){return x===null},"is not null"),never:new X(function(x){return!1},"is unexpected"),Date:new X(T("[object Date]"),"is not a Date"),RegExp:new X(T("[object RegExp]"),"is not a RegExp")};var ae=Object.prototype.toString;function T(x){return function(F){return typeof F=="object"&&F&&ae.call(F)===x}}typeof Buffer<"u"&&(t.basicTypes.Buffer=new X(function(x){return Buffer.isBuffer(x)},"is not a Buffer"));for(var de=function(x){t.basicTypes[x.name]=new X(function(F){return F instanceof x},"is not a "+x.name)},he=0,ce=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];he<ce.length;he++){var L=ce[he];de(L)}}(Mr)),Mr}var U1;function Xx(){return U1||(U1=1,function(t){var e=Lr&&Lr.__spreadArrays||function(){for(var c=0,u=0,d=arguments.length;u<d;u++)c+=arguments[u].length;for(var m=Array(c),f=0,u=0;u<d;u++)for(var g=arguments[u],w=0,k=g.length;w<k;w++,f++)m[f]=g[w];return m};Object.defineProperty(t,"__esModule",{value:!0}),t.Checker=t.createCheckers=void 0;var n=V1(),s=Hl(),r=V1();Object.defineProperty(t,"TArray",{enumerable:!0,get:function(){return r.TArray}}),Object.defineProperty(t,"TEnumType",{enumerable:!0,get:function(){return r.TEnumType}}),Object.defineProperty(t,"TEnumLiteral",{enumerable:!0,get:function(){return r.TEnumLiteral}}),Object.defineProperty(t,"TFunc",{enumerable:!0,get:function(){return r.TFunc}}),Object.defineProperty(t,"TIface",{enumerable:!0,get:function(){return r.TIface}}),Object.defineProperty(t,"TLiteral",{enumerable:!0,get:function(){return r.TLiteral}}),Object.defineProperty(t,"TName",{enumerable:!0,get:function(){return r.TName}}),Object.defineProperty(t,"TOptional",{enumerable:!0,get:function(){return r.TOptional}}),Object.defineProperty(t,"TParam",{enumerable:!0,get:function(){return r.TParam}}),Object.defineProperty(t,"TParamList",{enumerable:!0,get:function(){return r.TParamList}}),Object.defineProperty(t,"TProp",{enumerable:!0,get:function(){return r.TProp}}),Object.defineProperty(t,"TTuple",{enumerable:!0,get:function(){return r.TTuple}}),Object.defineProperty(t,"TType",{enumerable:!0,get:function(){return r.TType}}),Object.defineProperty(t,"TUnion",{enumerable:!0,get:function(){return r.TUnion}}),Object.defineProperty(t,"TIntersection",{enumerable:!0,get:function(){return r.TIntersection}}),Object.defineProperty(t,"array",{enumerable:!0,get:function(){return r.array}}),Object.defineProperty(t,"enumlit",{enumerable:!0,get:function(){return r.enumlit}}),Object.defineProperty(t,"enumtype",{enumerable:!0,get:function(){return r.enumtype}}),Object.defineProperty(t,"func",{enumerable:!0,get:function(){return r.func}}),Object.defineProperty(t,"iface",{enumerable:!0,get:function(){return r.iface}}),Object.defineProperty(t,"lit",{enumerable:!0,get:function(){return r.lit}}),Object.defineProperty(t,"name",{enumerable:!0,get:function(){return r.name}}),Object.defineProperty(t,"opt",{enumerable:!0,get:function(){return r.opt}}),Object.defineProperty(t,"param",{enumerable:!0,get:function(){return r.param}}),Object.defineProperty(t,"tuple",{enumerable:!0,get:function(){return r.tuple}}),Object.defineProperty(t,"union",{enumerable:!0,get:function(){return r.union}}),Object.defineProperty(t,"intersection",{enumerable:!0,get:function(){return r.intersection}}),Object.defineProperty(t,"BasicType",{enumerable:!0,get:function(){return r.BasicType}});var i=Hl();Object.defineProperty(t,"VError",{enumerable:!0,get:function(){return i.VError}});function a(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];for(var d=Object.assign.apply(Object,e([{},n.basicTypes],c)),m={},f=0,g=c;f<g.length;f++)for(var w=g[f],k=0,I=Object.keys(w);k<I.length;k++){var E=I[k];m[E]=new l(d,w[E])}return m}t.createCheckers=a;var l=function(){function c(u,d,m){if(m===void 0&&(m="value"),this.suite=u,this.ttype=d,this._path=m,this.props=new Map,d instanceof n.TIface)for(var f=0,g=d.props;f<g.length;f++){var w=g[f];this.props.set(w.name,w.ttype)}this.checkerPlain=this.ttype.getChecker(u,!1),this.checkerStrict=this.ttype.getChecker(u,!0)}return c.prototype.setReportedPath=function(u){this._path=u},c.prototype.check=function(u){return this._doCheck(this.checkerPlain,u)},c.prototype.test=function(u){return this.checkerPlain(u,new s.NoopContext)},c.prototype.validate=function(u){return this._doValidate(this.checkerPlain,u)},c.prototype.strictCheck=function(u){return this._doCheck(this.checkerStrict,u)},c.prototype.strictTest=function(u){return this.checkerStrict(u,new s.NoopContext)},c.prototype.strictValidate=function(u){return this._doValidate(this.checkerStrict,u)},c.prototype.getProp=function(u){var d=this.props.get(u);if(!d)throw new Error("Type has no property "+u);return new c(this.suite,d,this._path+"."+u)},c.prototype.methodArgs=function(u){var d=this._getMethod(u);return new c(this.suite,d.paramList)},c.prototype.methodResult=function(u){var d=this._getMethod(u);return new c(this.suite,d.result)},c.prototype.getArgs=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getArgs() applied to non-function");return new c(this.suite,this.ttype.paramList)},c.prototype.getResult=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getResult() applied to non-function");return new c(this.suite,this.ttype.result)},c.prototype.getType=function(){return this.ttype},c.prototype._doCheck=function(u,d){var m=new s.NoopContext;if(!u(d,m)){var f=new s.DetailContext;throw u(d,f),f.getError(this._path)}},c.prototype._doValidate=function(u,d){var m=new s.NoopContext;if(u(d,m))return null;var f=new s.DetailContext;return u(d,f),f.getErrorDetail(this._path)},c.prototype._getMethod=function(u){var d=this.props.get(u);if(!d)throw new Error("Type has no property "+u);if(!(d instanceof n.TFunc))throw new Error("Property "+u+" is not a method");return d},c}();t.Checker=l}(Lr)),Lr}var We=Xx();const Kx=We.union(We.lit("jsx"),We.lit("typescript"),We.lit("flow"),We.lit("imports"),We.lit("react-hot-loader"),We.lit("jest")),Jx=We.iface([],{compiledFilename:"string"}),Yx=We.iface([],{transforms:We.array("Transform"),disableESTransforms:We.opt("boolean"),jsxRuntime:We.opt(We.union(We.lit("classic"),We.lit("automatic"),We.lit("preserve"))),production:We.opt("boolean"),jsxImportSource:We.opt("string"),jsxPragma:We.opt("string"),jsxFragmentPragma:We.opt("string"),keepUnusedImports:We.opt("boolean"),preserveDynamicImport:We.opt("boolean"),injectCreateRequireForImportRequire:We.opt("boolean"),enableLegacyTypeScriptModuleInterop:We.opt("boolean"),enableLegacyBabel5ModuleInterop:We.opt("boolean"),sourceMapOptions:We.opt("SourceMapOptions"),filePath:We.opt("string")}),Qx={Transform:Kx,SourceMapOptions:Jx,Options:Yx},{Options:Zx}=We.createCheckers(Qx);function ek(t){Zx.strictCheck(t)}function q1(){G(),gt(!1)}function H1(t){G(),No(t)}function $n(t){xe(),Gl(t)}function $o(){xe(),h.tokens[h.tokens.length-1].identifierRole=ge.ImportDeclaration}function Gl(t){let e;h.scopeDepth===0?e=ge.TopLevelDeclaration:t?e=ge.BlockScopedDeclaration:e=ge.FunctionScopedDeclaration,h.tokens[h.tokens.length-1].identifierRole=e}function No(t){switch(h.type){case o._this:{const e=Ne(0);G(),$e(e);return}case o._yield:case o.name:{h.type=o.name,$n(t);return}case o.bracketL:{G(),Wl(o.bracketR,t,!0);return}case o.braceL:hc(!0,t);return;default:Ie()}}function Wl(t,e,n=!1,s=!1,r=0){let i=!0,a=!1;const l=h.tokens.length;for(;!z(t)&&!h.error;)if(i?i=!1:(H(o.comma),h.tokens[h.tokens.length-1].contextId=r,!a&&h.tokens[l].isType&&(h.tokens[h.tokens.length-1].isType=!0,a=!0)),!(n&&y(o.comma))){if(z(t))break;if(y(o.ellipsis)){H1(e),G1(),z(o.comma),H(t);break}else tk(s,e)}}function tk(t,e){t&&Kl([S._public,S._protected,S._private,S._readonly,S._override]),Co(e),G1(),Co(e,!0)}function G1(){Be?xA():De&&cE()}function Co(t,e=!1){if(e||No(t),!z(o.eq))return;const n=h.tokens.length-1;gt(),h.tokens[n].rhsEndIndex=h.tokens.length}function Xl(){return y(o.name)}function nk(){return y(o.name)||!!(h.type&o.IS_KEYWORD)||y(o.string)||y(o.num)||y(o.bigint)||y(o.decimal)}function W1(){const t=h.snapshot();return G(),(y(o.bracketL)||y(o.braceL)||y(o.star)||y(o.ellipsis)||y(o.hash)||nk())&&!Et()?!0:(h.restoreFromSnapshot(t),!1)}function Kl(t){for(;X1(t)!==null;);}function X1(t){if(!y(o.name))return null;const e=h.contextualKeyword;if(t.indexOf(e)!==-1&&W1()){switch(e){case S._readonly:h.tokens[h.tokens.length-1].type=o._readonly;break;case S._abstract:h.tokens[h.tokens.length-1].type=o._abstract;break;case S._static:h.tokens[h.tokens.length-1].type=o._static;break;case S._public:h.tokens[h.tokens.length-1].type=o._public;break;case S._private:h.tokens[h.tokens.length-1].type=o._private;break;case S._protected:h.tokens[h.tokens.length-1].type=o._protected;break;case S._override:h.tokens[h.tokens.length-1].type=o._override;break;case S._declare:h.tokens[h.tokens.length-1].type=o._declare;break}return e}return null}function Fr(){for(xe();z(o.dot);)xe()}function sk(){Fr(),!Et()&&y(o.lessThan)&&Bs()}function rk(){G(),jr()}function ik(){G()}function ok(){H(o._typeof),y(o._import)?K1():Fr(),!Et()&&y(o.lessThan)&&Bs()}function K1(){H(o._import),H(o.parenL),H(o.string),H(o.parenR),z(o.dot)&&Fr(),y(o.lessThan)&&Bs()}function ak(){z(o._const);const t=z(o._in),e=ut(S._out);z(o._const),(t||e)&&!y(o.name)?h.tokens[h.tokens.length-1].type=o.name:xe(),z(o._extends)&&tt(),z(o.eq)&&tt()}function os(){y(o.lessThan)&&To()}function To(){const t=Ne(0);for(y(o.lessThan)||y(o.typeParameterStart)?G():Ie();!z(o.greaterThan)&&!h.error;)ak(),z(o.comma);$e(t)}function Jl(t){const e=t===o.arrow;os(),H(o.parenL),h.scopeDepth++,lk(!1),h.scopeDepth--,(e||y(t))&&Br(t)}function lk(t){Wl(o.parenR,t)}function Ro(){z(o.comma)||Je()}function J1(){Jl(o.colon),Ro()}function ck(){const t=h.snapshot();G();const e=z(o.name)&&y(o.colon);return h.restoreFromSnapshot(t),e}function Y1(){if(!(y(o.bracketL)&&ck()))return!1;const t=Ne(0);return H(o.bracketL),xe(),jr(),H(o.bracketR),Ms(),Ro(),$e(t),!0}function Q1(t){z(o.question),!t&&(y(o.parenL)||y(o.lessThan))?(Jl(o.colon),Ro()):(Ms(),Ro())}function uk(){if(y(o.parenL)||y(o.lessThan)){J1();return}if(y(o._new)){G(),y(o.parenL)||y(o.lessThan)?J1():Q1(!1);return}const t=!!X1([S._readonly]);Y1()||((me(S._get)||me(S._set))&&W1(),Vr(-1),Q1(t))}function hk(){Z1()}function Z1(){for(H(o.braceL);!z(o.braceR)&&!h.error;)uk()}function dk(){const t=h.snapshot(),e=pk();return h.restoreFromSnapshot(t),e}function pk(){return G(),z(o.plus)||z(o.minus)?me(S._readonly):(me(S._readonly)&&G(),!y(o.bracketL)||(G(),!Xl())?!1:(G(),y(o._in)))}function fk(){xe(),H(o._in),tt()}function mk(){H(o.braceL),y(o.plus)||y(o.minus)?(G(),rt(S._readonly)):ut(S._readonly),H(o.bracketL),fk(),ut(S._as)&&tt(),H(o.bracketR),y(o.plus)||y(o.minus)?(G(),H(o.question)):z(o.question),$k(),Je(),H(o.braceR)}function gk(){for(H(o.bracketL);!z(o.bracketR)&&!h.error;)yk(),z(o.comma)}function yk(){z(o.ellipsis)?tt():(tt(),z(o.question)),z(o.colon)&&tt()}function bk(){H(o.parenL),tt(),H(o.parenR)}function xk(){for(Pn(),Pn();!y(o.backQuote)&&!h.error;)H(o.dollarBraceL),tt(),Pn(),Pn();G()}var Nn;(function(t){t[t.TSFunctionType=0]="TSFunctionType";const n=1;t[t.TSConstructorType=n]="TSConstructorType";const s=n+1;t[t.TSAbstractConstructorType=s]="TSAbstractConstructorType"})(Nn||(Nn={}));function Yl(t){t===Nn.TSAbstractConstructorType&&rt(S._abstract),(t===Nn.TSConstructorType||t===Nn.TSAbstractConstructorType)&&H(o._new);const e=h.inDisallowConditionalTypesContext;h.inDisallowConditionalTypesContext=!1,Jl(o.arrow),h.inDisallowConditionalTypesContext=e}function kk(){switch(h.type){case o.name:sk();return;case o._void:case o._null:G();return;case o.string:case o.num:case o.bigint:case o.decimal:case o._true:case o._false:zs();return;case o.minus:G(),zs();return;case o._this:{ik(),me(S._is)&&!Et()&&rk();return}case o._typeof:ok();return;case o._import:K1();return;case o.braceL:dk()?mk():hk();return;case o.bracketL:gk();return;case o.parenL:bk();return;case o.backQuote:xk();return;default:if(h.type&o.IS_KEYWORD){G(),h.tokens[h.tokens.length-1].type=o.name;return}break}Ie()}function Ek(){for(kk();!Et()&&z(o.bracketL);)z(o.bracketR)||(tt(),H(o.bracketR))}function Ak(){if(rt(S._infer),xe(),y(o._extends)){const t=h.snapshot();H(o._extends);const e=h.inDisallowConditionalTypesContext;h.inDisallowConditionalTypesContext=!0,tt(),h.inDisallowConditionalTypesContext=e,(h.error||!h.inDisallowConditionalTypesContext&&y(o.question))&&h.restoreFromSnapshot(t)}}function Ql(){if(me(S._keyof)||me(S._unique)||me(S._readonly))G(),Ql();else if(me(S._infer))Ak();else{const t=h.inDisallowConditionalTypesContext;h.inDisallowConditionalTypesContext=!1,Ek(),h.inDisallowConditionalTypesContext=t}}function ef(){if(z(o.bitwiseAND),Ql(),y(o.bitwiseAND))for(;z(o.bitwiseAND);)Ql()}function wk(){if(z(o.bitwiseOR),ef(),y(o.bitwiseOR))for(;z(o.bitwiseOR);)ef()}function Sk(){return y(o.lessThan)?!0:y(o.parenL)&&vk()}function Ik(){if(y(o.name)||y(o._this))return G(),!0;if(y(o.braceL)||y(o.bracketL)){let t=1;for(G();t>0&&!h.error;)y(o.braceL)||y(o.bracketL)?t++:(y(o.braceR)||y(o.bracketR))&&t--,G();return!0}return!1}function vk(){const t=h.snapshot(),e=_k();return h.restoreFromSnapshot(t),e}function _k(){return G(),!!(y(o.parenR)||y(o.ellipsis)||Ik()&&(y(o.colon)||y(o.comma)||y(o.question)||y(o.eq)||y(o.parenR)&&(G(),y(o.arrow))))}function Br(t){const e=Ne(0);H(t),Nk()||tt(),$e(e)}function Pk(){y(o.colon)&&Br(o.colon)}function Ms(){y(o.colon)&&jr()}function $k(){z(o.colon)&&tt()}function Nk(){const t=h.snapshot();return me(S._asserts)?(G(),ut(S._is)?(tt(),!0):Xl()||y(o._this)?(G(),ut(S._is)&&tt(),!0):(h.restoreFromSnapshot(t),!1)):Xl()||y(o._this)?(G(),me(S._is)&&!Et()?(G(),tt(),!0):(h.restoreFromSnapshot(t),!1)):!1}function jr(){const t=Ne(0);H(o.colon),tt(),$e(t)}function tt(){if(tf(),h.inDisallowConditionalTypesContext||Et()||!z(o._extends))return;const t=h.inDisallowConditionalTypesContext;h.inDisallowConditionalTypesContext=!0,tf(),h.inDisallowConditionalTypesContext=t,H(o.question),tt(),H(o.colon),tt()}function Ck(){return me(S._abstract)&&et()===o._new}function tf(){if(Sk()){Yl(Nn.TSFunctionType);return}if(y(o._new)){Yl(Nn.TSConstructorType);return}else if(Ck()){Yl(Nn.TSAbstractConstructorType);return}wk()}function Tk(){const t=Ne(1);tt(),H(o.greaterThan),$e(t),zr()}function Rk(){if(z(o.jsxTagStart)){h.tokens[h.tokens.length-1].type=o.typeParameterStart;const t=Ne(1);for(;!y(o.greaterThan)&&!h.error;)tt(),z(o.comma);Ot(),$e(t)}}function nf(){for(;!y(o.braceL)&&!h.error;)Dk(),z(o.comma)}function Dk(){Fr(),y(o.lessThan)&&Bs()}function Ok(){$n(!1),os(),z(o._extends)&&nf(),Z1()}function Lk(){$n(!1),os(),H(o.eq),tt(),Je()}function Mk(){if(y(o.string)?zs():xe(),z(o.eq)){const t=h.tokens.length-1;gt(),h.tokens[t].rhsEndIndex=h.tokens.length}}function Zl(){for($n(!1),H(o.braceL);!z(o.braceR)&&!h.error;)Mk(),z(o.comma)}function ec(){H(o.braceL),Uo(o.braceR)}function tc(){$n(!1),z(o.dot)?tc():ec()}function sf(){me(S._global)?xe():y(o.string)?yn():Ie(),y(o.braceL)?ec():Je()}function nc(){$o(),H(o.eq),Bk(),Je()}function Fk(){return me(S._require)&&et()===o.parenL}function Bk(){Fk()?jk():Fr()}function jk(){rt(S._require),H(o.parenL),y(o.string)||Ie(),zs(),H(o.parenR)}function zk(){if(tn())return!1;switch(h.type){case o._function:{const t=Ne(1);G();const e=h.start;return cs(e,!0),$e(t),!0}case o._class:{const t=Ne(1);return us(!0,!1),$e(t),!0}case o._const:if(y(o._const)&&Bl(S._enum)){const t=Ne(1);return H(o._const),rt(S._enum),h.tokens[h.tokens.length-1].type=o._enum,Zl(),$e(t),!0}case o._var:case o._let:{const t=Ne(1);return Vo(h.type!==o._var),$e(t),!0}case o.name:{const t=Ne(1),e=h.contextualKeyword;let n=!1;return e===S._global?(sf(),n=!0):n=Do(e,!0),$e(t),n}default:return!1}}function rf(){return Do(h.contextualKeyword,!0)}function Vk(t){switch(t){case S._declare:{const e=h.tokens.length-1;if(zk())return h.tokens[e].type=o._declare,!0;break}case S._global:if(y(o.braceL))return ec(),!0;break;default:return Do(t,!1)}return!1}function Do(t,e){switch(t){case S._abstract:if(Fs(e)&&y(o._class))return h.tokens[h.tokens.length-1].type=o._abstract,us(!0,!1),!0;break;case S._enum:if(Fs(e)&&y(o.name))return h.tokens[h.tokens.length-1].type=o._enum,Zl(),!0;break;case S._interface:if(Fs(e)&&y(o.name)){const n=Ne(e?2:1);return Ok(),$e(n),!0}break;case S._module:if(Fs(e)){if(y(o.string)){const n=Ne(e?2:1);return sf(),$e(n),!0}else if(y(o.name)){const n=Ne(e?2:1);return tc(),$e(n),!0}}break;case S._namespace:if(Fs(e)&&y(o.name)){const n=Ne(e?2:1);return tc(),$e(n),!0}break;case S._type:if(Fs(e)&&y(o.name)){const n=Ne(e?2:1);return Lk(),$e(n),!0}break}return!1}function Fs(t){return t?(G(),!0):!tn()}function Uk(){const t=h.snapshot();return To(),Vs(),Pk(),H(o.arrow),h.error?(h.restoreFromSnapshot(t),!1):(qr(!0),!0)}function sc(){h.type===o.bitShiftL&&(h.pos-=1,ve(o.lessThan)),Bs()}function Bs(){const t=Ne(0);for(H(o.lessThan);!y(o.greaterThan)&&!h.error;)tt(),z(o.comma);t?(H(o.greaterThan),$e(t)):($e(t),I1(),H(o.greaterThan),h.tokens[h.tokens.length-1].isType=!0)}function of(){if(y(o.name))switch(h.contextualKeyword){case S._abstract:case S._declare:case S._enum:case S._interface:case S._module:case S._namespace:case S._type:return!0}return!1}function qk(t,e){if(y(o.colon)&&Br(o.colon),!y(o.braceL)&&tn()){let n=h.tokens.length-1;for(;n>=0&&(h.tokens[n].start>=t||h.tokens[n].type===o._default||h.tokens[n].type===o._export);)h.tokens[n].isType=!0,n--;return}qr(!1,e)}function Hk(t,e,n){if(!Et()&&z(o.bang)){h.tokens[h.tokens.length-1].type=o.nonNullAssertion;return}if(y(o.lessThan)||y(o.bitShiftL)){const s=h.snapshot();if(!e&&ff()&&Uk())return;if(sc(),!e&&z(o.parenL)?(h.tokens[h.tokens.length-1].subscriptStartIndex=t,Cn()):y(o.backQuote)?uc():(h.type===o.greaterThan||h.type!==o.parenL&&h.type&o.IS_EXPRESSION_START&&!Et())&&Ie(),h.error)h.restoreFromSnapshot(s);else return}else!e&&y(o.questionDot)&&et()===o.lessThan&&(G(),h.tokens[t].isOptionalChainStart=!0,h.tokens[h.tokens.length-1].subscriptStartIndex=t,Bs(),H(o.parenL),Cn());oc(t,e,n)}function Gk(){if(z(o._import))return me(S._type)&&et()!==o.eq&&rt(S._type),nc(),!0;if(z(o.eq))return mt(),Je(),!0;if(ut(S._as))return rt(S._namespace),xe(),Je(),!0;if(me(S._type)){const t=et();(t===o.braceL||t===o.star)&&G()}return!1}function Wk(){if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-1].identifierRole=ge.ImportDeclaration;return}if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-1].identifierRole=ge.ImportDeclaration,h.tokens[h.tokens.length-2].isType=!0,h.tokens[h.tokens.length-1].isType=!0;return}if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-3].identifierRole=ge.ImportAccess,h.tokens[h.tokens.length-1].identifierRole=ge.ImportDeclaration;return}xe(),h.tokens[h.tokens.length-3].identifierRole=ge.ImportAccess,h.tokens[h.tokens.length-1].identifierRole=ge.ImportDeclaration,h.tokens[h.tokens.length-4].isType=!0,h.tokens[h.tokens.length-3].isType=!0,h.tokens[h.tokens.length-2].isType=!0,h.tokens[h.tokens.length-1].isType=!0}function Xk(){if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-1].identifierRole=ge.ExportAccess;return}if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-1].identifierRole=ge.ExportAccess,h.tokens[h.tokens.length-2].isType=!0,h.tokens[h.tokens.length-1].isType=!0;return}if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-3].identifierRole=ge.ExportAccess;return}xe(),h.tokens[h.tokens.length-3].identifierRole=ge.ExportAccess,h.tokens[h.tokens.length-4].isType=!0,h.tokens[h.tokens.length-3].isType=!0,h.tokens[h.tokens.length-2].isType=!0,h.tokens[h.tokens.length-1].isType=!0}function Kk(){if(me(S._abstract)&&et()===o._class)return h.type=o._abstract,G(),us(!0,!0),!0;if(me(S._interface)){const t=Ne(2);return Do(S._interface,!0),$e(t),!0}return!1}function Jk(){if(h.type===o._const){const t=Rr();if(t.type===o.name&&t.contextualKeyword===S._enum)return H(o._const),rt(S._enum),h.tokens[h.tokens.length-1].type=o._enum,Zl(),!0}return!1}function Yk(t){const e=h.tokens.length;Kl([S._abstract,S._readonly,S._declare,S._static,S._override]);const n=h.tokens.length;if(Y1()){const r=t?e-1:e;for(let i=r;i<n;i++)h.tokens[i].isType=!0;return!0}return!1}function Qk(t){Vk(t)||Je()}function Zk(){const t=ut(S._declare);t&&(h.tokens[h.tokens.length-1].type=o._declare);let e=!1;if(y(o.name))if(t){const n=Ne(2);e=rf(),$e(n)}else e=rf();if(!e)if(t){const n=Ne(2);Tt(!0),$e(n)}else Tt(!0)}function eE(t){if(t&&(y(o.lessThan)||y(o.bitShiftL))&&sc(),ut(S._implements)){h.tokens[h.tokens.length-1].type=o._implements;const e=Ne(1);nf(),$e(e)}}function tE(){os()}function nE(){os()}function sE(){const t=Ne(0);Et()||z(o.bang),Ms(),$e(t)}function rE(){y(o.colon)&&jr()}function iE(t,e){return So?oE(t,e):aE(t,e)}function oE(t,e){if(!y(o.lessThan))return nn(t,e);const n=h.snapshot();let s=nn(t,e);if(h.error)h.restoreFromSnapshot(n);else return s;return h.type=o.typeParameterStart,To(),s=nn(t,e),s||Ie(),s}function aE(t,e){if(!y(o.lessThan))return nn(t,e);const n=h.snapshot();To();const s=nn(t,e);if(s||Ie(),h.error)h.restoreFromSnapshot(n);else return s;return nn(t,e)}function lE(){if(y(o.colon)){const t=h.snapshot();Br(o.colon),Ct()&&Ie(),y(o.arrow)||Ie(),h.error&&h.restoreFromSnapshot(t)}return z(o.arrow)}function cE(){const t=Ne(0);z(o.question),Ms(),$e(t)}function uE(){(y(o.lessThan)||y(o.bitShiftL))&&sc(),$f()}function hE(){let t=!1,e=!1;for(;;){if(h.pos>=re.length){Ie("Unterminated JSX contents");return}const n=re.charCodeAt(h.pos);if(n===P.lessThan||n===P.leftCurlyBrace){if(h.pos===h.start){if(n===P.lessThan){h.pos++,ve(o.jsxTagStart);return}v1(n);return}ve(t&&!e?o.jsxEmptyText:o.jsxText);return}n===P.lineFeed?t=!0:n!==P.space&&n!==P.carriageReturn&&n!==P.tab&&(e=!0),h.pos++}}function dE(t){for(h.pos++;;){if(h.pos>=re.length){Ie("Unterminated string constant");return}if(re.charCodeAt(h.pos)===t){h.pos++;break}h.pos++}ve(o.string)}function pE(){let t;do{if(h.pos>re.length){Ie("Unexpectedly reached the end of input.");return}t=re.charCodeAt(++h.pos)}while(jt[t]||t===P.dash);ve(o.jsxName)}function rc(){Ot()}function af(t){if(rc(),!z(o.colon)){h.tokens[h.tokens.length-1].identifierRole=t;return}rc()}function lf(){const t=h.tokens.length;af(ge.Access);let e=!1;for(;y(o.dot);)e=!0,Ot(),rc();if(!e){const n=h.tokens[t],s=re.charCodeAt(n.start);s>=P.lowercaseA&&s<=P.lowercaseZ&&(n.identifierRole=null)}}function fE(){switch(h.type){case o.braceL:G(),mt(),Ot();return;case o.jsxTagStart:uf(),Ot();return;case o.string:Ot();return;default:Ie("JSX value should be either an expression or a quoted JSX text")}}function mE(){H(o.ellipsis),mt()}function gE(t){if(y(o.jsxTagEnd))return!1;lf(),De&&Rk();let e=!1;for(;!y(o.slash)&&!y(o.jsxTagEnd)&&!h.error;){if(z(o.braceL)){e=!0,H(o.ellipsis),gt(),Ot();continue}e&&h.end-h.start===3&&re.charCodeAt(h.start)===P.lowercaseK&&re.charCodeAt(h.start+1)===P.lowercaseE&&re.charCodeAt(h.start+2)===P.lowercaseY&&(h.tokens[t].jsxRole=zt.KeyAfterPropSpread),af(ge.ObjectKey),y(o.eq)&&(Ot(),fE())}const n=y(o.slash);return n&&Ot(),n}function yE(){y(o.jsxTagEnd)||lf()}function cf(){const t=h.tokens.length-1;h.tokens[t].jsxRole=zt.NoChildren;let e=0;if(!gE(t))for(js();;)switch(h.type){case o.jsxTagStart:if(Ot(),y(o.slash)){Ot(),yE(),h.tokens[t].jsxRole!==zt.KeyAfterPropSpread&&(e===1?h.tokens[t].jsxRole=zt.OneChild:e>1&&(h.tokens[t].jsxRole=zt.StaticChildren));return}e++,cf(),js();break;case o.jsxText:e++,js();break;case o.jsxEmptyText:js();break;case o.braceL:G(),y(o.ellipsis)?(mE(),js(),e+=2):(y(o.braceR)||(e++,mt()),js());break;default:Ie();return}}function uf(){Ot(),cf()}function Ot(){h.tokens.push(new Io),w1(),h.start=h.pos;const t=re.charCodeAt(h.pos);if(Tr[t])pE();else if(t===P.quotationMark||t===P.apostrophe)dE(t);else switch(++h.pos,t){case P.greaterThan:ve(o.jsxTagEnd);break;case P.lessThan:ve(o.jsxTagStart);break;case P.slash:ve(o.slash);break;case P.equalsTo:ve(o.eq);break;case P.leftCurlyBrace:ve(o.braceL);break;case P.dot:ve(o.dot);break;case P.colon:ve(o.colon);break;default:Ie()}}function js(){h.tokens.push(new Io),h.start=h.pos,hE()}function bE(t){if(y(o.question)){const e=et();if(e===o.colon||e===o.comma||e===o.parenR)return}hf(t)}function xE(){b1(o.question),y(o.colon)&&(De?jr():Be&&ls())}class kE{constructor(e){this.stop=e}}function mt(t=!1){if(gt(t),y(o.comma))for(;z(o.comma);)gt(t)}function gt(t=!1,e=!1){return De?iE(t,e):Be?IA(t,e):nn(t,e)}function nn(t,e){if(y(o._yield))return LE(),!1;(y(o.parenL)||y(o.name)||y(o._yield))&&(h.potentialArrowAt=h.start);const n=EE(t);return e&&cc(),h.type&o.IS_ASSIGN?(G(),gt(t),!1):n}function EE(t){return wE(t)?!0:(AE(t),!1)}function AE(t){De||Be?bE(t):hf(t)}function hf(t){z(o.question)&&(gt(),H(o.colon),gt(t))}function wE(t){const e=h.tokens.length;return zr()?!0:(Oo(e,-1,t),!1)}function Oo(t,e,n){if(De&&(o._in&o.PRECEDENCE_MASK)>e&&!Et()&&(ut(S._as)||ut(S._satisfies))){const r=Ne(1);tt(),$e(r),I1(),Oo(t,e,n);return}const s=h.type&o.PRECEDENCE_MASK;if(s>0&&(!n||!y(o._in))&&s>e){const r=h.type;G(),r===o.nullishCoalescing&&(h.tokens[h.tokens.length-1].nullishStartIndex=t);const i=h.tokens.length;zr(),Oo(i,r&o.IS_RIGHT_ASSOCIATIVE?s-1:s,n),r===o.nullishCoalescing&&(h.tokens[t].numNullishCoalesceStarts++,h.tokens[h.tokens.length-1].numNullishCoalesceEnds++),Oo(t,e,n)}}function zr(){if(De&&!So&&z(o.lessThan))return Tk(),!1;if(me(S._module)&&k1()===P.leftCurlyBrace&&!h1())return ME(),!1;if(h.type&o.IS_PREFIX)return G(),zr(),!1;if(df())return!0;for(;h.type&o.IS_POSTFIX&&!Ct();)h.type===o.preIncDec&&(h.type=o.postIncDec),G();return!1}function df(){const t=h.tokens.length;return yn()?!0:(ic(t),h.tokens.length>t&&h.tokens[t].isOptionalChainStart&&(h.tokens[h.tokens.length-1].isOptionalChainEnd=!0),!1)}function ic(t,e=!1){Be?_A(t,e):pf(t,e)}function pf(t,e=!1){const n=new kE(!1);do SE(t,e,n);while(!n.stop&&!h.error)}function SE(t,e,n){De?Hk(t,e,n):Be?aA(t,e,n):oc(t,e,n)}function oc(t,e,n){if(!e&&z(o.doubleColon))ac(),n.stop=!0,ic(t,e);else if(y(o.questionDot)){if(h.tokens[t].isOptionalChainStart=!0,e&&et()===o.parenL){n.stop=!0;return}G(),h.tokens[h.tokens.length-1].subscriptStartIndex=t,z(o.bracketL)?(mt(),H(o.bracketR)):z(o.parenL)?Cn():Lo()}else if(z(o.dot))h.tokens[h.tokens.length-1].subscriptStartIndex=t,Lo();else if(z(o.bracketL))h.tokens[h.tokens.length-1].subscriptStartIndex=t,mt(),H(o.bracketR);else if(!e&&y(o.parenL))if(ff()){const s=h.snapshot(),r=h.tokens.length;G(),h.tokens[h.tokens.length-1].subscriptStartIndex=t;const i=Cr();h.tokens[h.tokens.length-1].contextId=i,Cn(),h.tokens[h.tokens.length-1].contextId=i,IE()&&(h.restoreFromSnapshot(s),n.stop=!0,h.scopeDepth++,Vs(),vE(r))}else{G(),h.tokens[h.tokens.length-1].subscriptStartIndex=t;const s=Cr();h.tokens[h.tokens.length-1].contextId=s,Cn(),h.tokens[h.tokens.length-1].contextId=s}else y(o.backQuote)?uc():n.stop=!0}function ff(){return h.tokens[h.tokens.length-1].contextualKeyword===S._async&&!Ct()}function Cn(){let t=!0;for(;!z(o.parenR)&&!h.error;){if(t)t=!1;else if(H(o.comma),z(o.parenR))break;bf(!1)}}function IE(){return y(o.colon)||y(o.arrow)}function vE(t){De?rE():Be&&SA(),H(o.arrow),Ur(t)}function ac(){const t=h.tokens.length;yn(),ic(t,!0)}function yn(){if(z(o.modulo))return xe(),!1;if(y(o.jsxText)||y(o.jsxEmptyText))return zs(),!1;if(y(o.lessThan)&&So)return h.type=o.jsxTagStart,uf(),G(),!1;const t=h.potentialArrowAt===h.start;switch(h.type){case o.slash:case o.assign:Qb();case o._super:case o._this:case o.regexp:case o.num:case o.bigint:case o.decimal:case o.string:case o._null:case o._true:case o._false:return G(),!1;case o._import:return G(),y(o.dot)&&(h.tokens[h.tokens.length-1].type=o.name,G(),xe()),!1;case o.name:{const e=h.tokens.length,n=h.start,s=h.contextualKeyword;return xe(),s===S._await?(OE(),!1):s===S._async&&y(o._function)&&!Ct()?(G(),cs(n,!1),!1):t&&s===S._async&&!Ct()&&y(o.name)?(h.scopeDepth++,$n(!1),H(o.arrow),Ur(e),!0):y(o._do)&&!Ct()?(G(),Tn(),!1):t&&!Ct()&&y(o.arrow)?(h.scopeDepth++,Gl(!1),H(o.arrow),Ur(e),!0):(h.tokens[h.tokens.length-1].identifierRole=ge.Access,!1)}case o._do:return G(),Tn(),!1;case o.parenL:return mf(t);case o.bracketL:return G(),yf(o.bracketR,!0),!1;case o.braceL:return hc(!1,!1),!1;case o._function:return _E(),!1;case o.at:wc();case o._class:return us(!1),!1;case o._new:return $E(),!1;case o.backQuote:return uc(),!1;case o.doubleColon:return G(),ac(),!1;case o.hash:{const e=k1();return Tr[e]||e===P.backslash?Lo():G(),!1}default:return Ie(),!1}}function Lo(){z(o.hash),xe()}function _E(){const t=h.start;xe(),z(o.dot)&&xe(),cs(t,!1)}function zs(){G()}function Mo(){H(o.parenL),mt(),H(o.parenR)}function mf(t){const e=h.snapshot(),n=h.tokens.length;H(o.parenL);let s=!0;for(;!y(o.parenR)&&!h.error;){if(s)s=!1;else if(H(o.comma),y(o.parenR))break;if(y(o.ellipsis)){H1(!1),cc();break}else gt(!1,!0)}return H(o.parenR),t&&PE()&&lc()?(h.restoreFromSnapshot(e),h.scopeDepth++,Vs(),lc(),Ur(n),h.error?(h.restoreFromSnapshot(e),mf(!1),!1):!0):!1}function PE(){return y(o.colon)||!Ct()}function lc(){return De?lE():Be?vA():z(o.arrow)}function cc(){(De||Be)&&xE()}function $E(){if(H(o._new),z(o.dot)){xe();return}NE(),Be&&lA(),z(o.parenL)&&yf(o.parenR)}function NE(){ac(),z(o.questionDot)}function uc(){for(Pn(),Pn();!y(o.backQuote)&&!h.error;)H(o.dollarBraceL),mt(),Pn(),Pn();G()}function hc(t,e){const n=Cr();let s=!0;for(G(),h.tokens[h.tokens.length-1].contextId=n;!z(o.braceR)&&!h.error;){if(s)s=!1;else if(H(o.comma),z(o.braceR))break;let r=!1;if(y(o.ellipsis)){const i=h.tokens.length;if(q1(),t&&(h.tokens.length===i+2&&Gl(e),z(o.braceR)))break;continue}t||(r=z(o.star)),!t&&me(S._async)?(r&&Ie(),xe(),y(o.colon)||y(o.parenL)||y(o.braceR)||y(o.eq)||y(o.comma)||(y(o.star)&&(G(),r=!0),Vr(n))):Vr(n),DE(t,e,n)}h.tokens[h.tokens.length-1].contextId=n}function CE(t){return!t&&(y(o.string)||y(o.num)||y(o.bracketL)||y(o.name)||!!(h.type&o.IS_KEYWORD))}function TE(t,e){const n=h.start;return y(o.parenL)?(t&&Ie(),dc(n,!1),!0):CE(t)?(Vr(e),dc(n,!1),!0):!1}function RE(t,e){if(z(o.colon)){t?Co(e):gt(!1);return}let n;t?h.scopeDepth===0?n=ge.ObjectShorthandTopLevelDeclaration:e?n=ge.ObjectShorthandBlockScopedDeclaration:n=ge.ObjectShorthandFunctionScopedDeclaration:n=ge.ObjectShorthand,h.tokens[h.tokens.length-1].identifierRole=n,Co(e,!0)}function DE(t,e,n){De?tE():Be&&bA(),TE(t,n)||RE(t,e)}function Vr(t){Be&&Ac(),z(o.bracketL)?(h.tokens[h.tokens.length-1].contextId=t,gt(),H(o.bracketR),h.tokens[h.tokens.length-1].contextId=t):(y(o.num)||y(o.string)||y(o.bigint)||y(o.decimal)?yn():Lo(),h.tokens[h.tokens.length-1].identifierRole=ge.ObjectKey,h.tokens[h.tokens.length-1].contextId=t)}function dc(t,e){const n=Cr();h.scopeDepth++;const s=h.tokens.length;Vs(e,n),gf(t,n);const i=h.tokens.length;h.scopes.push(new en(s,i,!0)),h.scopeDepth--}function Ur(t){qr(!0);const e=h.tokens.length;h.scopes.push(new en(t,e,!0)),h.scopeDepth--}function gf(t,e=0){De?qk(t,e):Be?oA(e):qr(!1,e)}function qr(t,e=0){t&&!y(o.braceL)?gt():Tn(!0,e)}function yf(t,e=!1){let n=!0;for(;!z(t)&&!h.error;){if(n)n=!1;else if(H(o.comma),z(t))break;bf(e)}}function bf(t){t&&y(o.comma)||(y(o.ellipsis)?(q1(),cc()):y(o.question)?G():gt(!1,!0))}function xe(){G(),h.tokens[h.tokens.length-1].type=o.name}function OE(){zr()}function LE(){G(),!y(o.semi)&&!Ct()&&(z(o.star),gt())}function ME(){rt(S._module),H(o.braceL),Uo(o.braceR)}function FE(t){return(t.type===o.name||!!(t.type&o.IS_KEYWORD))&&t.contextualKeyword!==S._from}function sn(t){const e=Ne(0);H(t||o.colon),_t(),$e(e)}function xf(){H(o.modulo),rt(S._checks),z(o.parenL)&&(mt(),H(o.parenR))}function pc(){const t=Ne(0);H(o.colon),y(o.modulo)?xf():(_t(),y(o.modulo)&&xf()),$e(t)}function BE(){G(),mc(!0)}function jE(){G(),xe(),y(o.lessThan)&&qt(),H(o.parenL),Ec(),H(o.parenR),pc(),Je()}function fc(){y(o._class)?BE():y(o._function)?jE():y(o._var)?zE():ut(S._module)?z(o.dot)?qE():VE():me(S._type)?HE():me(S._opaque)?GE():me(S._interface)?WE():y(o._export)?UE():Ie()}function zE(){G(),If(),Je()}function VE(){for(y(o.string)?yn():xe(),H(o.braceL);!y(o.braceR)&&!h.error;)y(o._import)?(G(),Mf()):Ie();H(o.braceR)}function UE(){H(o._export),z(o._default)?y(o._function)||y(o._class)?fc():(_t(),Je()):y(o._var)||y(o._function)||y(o._class)||me(S._opaque)?fc():y(o.star)||y(o.braceL)||me(S._interface)||me(S._type)||me(S._opaque)?Of():Ie()}function qE(){rt(S._exports),ls(),Je()}function HE(){G(),yc()}function GE(){G(),bc(!0)}function WE(){G(),mc()}function mc(t=!1){if(Bo(),y(o.lessThan)&&qt(),z(o._extends))do Fo();while(!t&&z(o.comma));if(me(S._mixins)){G();do Fo();while(z(o.comma))}if(me(S._implements)){G();do Fo();while(z(o.comma))}jo(t,!1,t)}function Fo(){kf(!1),y(o.lessThan)&&as()}function gc(){mc()}function Bo(){xe()}function yc(){Bo(),y(o.lessThan)&&qt(),sn(o.eq),Je()}function bc(t){rt(S._type),Bo(),y(o.lessThan)&&qt(),y(o.colon)&&sn(o.colon),t||sn(o.eq),Je()}function XE(){Ac(),If(),z(o.eq)&&_t()}function qt(){const t=Ne(0);y(o.lessThan)||y(o.typeParameterStart)?G():Ie();do XE(),y(o.greaterThan)||H(o.comma);while(!y(o.greaterThan)&&!h.error);H(o.greaterThan),$e(t)}function as(){const t=Ne(0);for(H(o.lessThan);!y(o.greaterThan)&&!h.error;)_t(),y(o.greaterThan)||H(o.comma);H(o.greaterThan),$e(t)}function KE(){if(rt(S._interface),z(o._extends))do Fo();while(z(o.comma));jo(!1,!1,!1)}function xc(){y(o.num)||y(o.string)?yn():xe()}function JE(){et()===o.colon?(xc(),sn()):_t(),H(o.bracketR),sn()}function YE(){xc(),H(o.bracketR),H(o.bracketR),y(o.lessThan)||y(o.parenL)?kc():(z(o.question),sn())}function kc(){for(y(o.lessThan)&&qt(),H(o.parenL);!y(o.parenR)&&!y(o.ellipsis)&&!h.error;)zo(),y(o.parenR)||H(o.comma);z(o.ellipsis)&&zo(),H(o.parenR),sn()}function QE(){kc()}function jo(t,e,n){let s;for(e&&y(o.braceBarL)?(H(o.braceBarL),s=o.braceBarR):(H(o.braceL),s=o.braceR);!y(s)&&!h.error;){if(n&&me(S._proto)){const r=et();r!==o.colon&&r!==o.question&&(G(),t=!1)}if(t&&me(S._static)){const r=et();r!==o.colon&&r!==o.question&&G()}if(Ac(),z(o.bracketL))z(o.bracketL)?YE():JE();else if(y(o.parenL)||y(o.lessThan))QE();else{if(me(S._get)||me(S._set)){const r=et();(r===o.name||r===o.string||r===o.num)&&G()}ZE()}eA()}H(s)}function ZE(){if(y(o.ellipsis)){if(H(o.ellipsis),z(o.comma)||z(o.semi),y(o.braceR))return;_t()}else xc(),y(o.lessThan)||y(o.parenL)?kc():(z(o.question),sn())}function eA(){!z(o.semi)&&!z(o.comma)&&!y(o.braceR)&&!y(o.braceBarR)&&Ie()}function kf(t){for(t||xe();z(o.dot);)xe()}function tA(){kf(!0),y(o.lessThan)&&as()}function nA(){H(o._typeof),Ef()}function sA(){for(H(o.bracketL);h.pos<re.length&&!y(o.bracketR)&&(_t(),!y(o.bracketR));)H(o.comma);H(o.bracketR)}function zo(){const t=et();t===o.colon||t===o.question?(xe(),z(o.question),sn()):_t()}function Ec(){for(;!y(o.parenR)&&!y(o.ellipsis)&&!h.error;)zo(),y(o.parenR)||H(o.comma);z(o.ellipsis)&&zo()}function Ef(){let t=!1;const e=h.noAnonFunctionType;switch(h.type){case o.name:{if(me(S._interface)){KE();return}xe(),tA();return}case o.braceL:jo(!1,!1,!1);return;case o.braceBarL:jo(!1,!0,!1);return;case o.bracketL:sA();return;case o.lessThan:qt(),H(o.parenL),Ec(),H(o.parenR),H(o.arrow),_t();return;case o.parenL:if(G(),!y(o.parenR)&&!y(o.ellipsis))if(y(o.name)){const n=et();t=n!==o.question&&n!==o.colon}else t=!0;if(t)if(h.noAnonFunctionType=!1,_t(),h.noAnonFunctionType=e,h.noAnonFunctionType||!(y(o.comma)||y(o.parenR)&&et()===o.arrow)){H(o.parenR);return}else z(o.comma);Ec(),H(o.parenR),H(o.arrow),_t();return;case o.minus:G(),zs();return;case o.string:case o.num:case o._true:case o._false:case o._null:case o._this:case o._void:case o.star:G();return;default:if(h.type===o._typeof){nA();return}else if(h.type&o.IS_KEYWORD){G(),h.tokens[h.tokens.length-1].type=o.name;return}}Ie()}function rA(){for(Ef();!Ct()&&(y(o.bracketL)||y(o.questionDot));)z(o.questionDot),H(o.bracketL),z(o.bracketR)||(_t(),H(o.bracketR))}function Af(){z(o.question)?Af():rA()}function wf(){Af(),!h.noAnonFunctionType&&z(o.arrow)&&_t()}function Sf(){for(z(o.bitwiseAND),wf();z(o.bitwiseAND);)wf()}function iA(){for(z(o.bitwiseOR),Sf();z(o.bitwiseOR);)Sf()}function _t(){iA()}function ls(){sn()}function If(){xe(),y(o.colon)&&ls()}function Ac(){(y(o.plus)||y(o.minus))&&(G(),h.tokens[h.tokens.length-1].isType=!0)}function oA(t){y(o.colon)&&pc(),qr(!1,t)}function aA(t,e,n){if(y(o.questionDot)&&et()===o.lessThan){if(e){n.stop=!0;return}G(),as(),H(o.parenL),Cn();return}else if(!e&&y(o.lessThan)){const s=h.snapshot();if(as(),H(o.parenL),Cn(),h.error)h.restoreFromSnapshot(s);else return}oc(t,e,n)}function lA(){if(y(o.lessThan)){const t=h.snapshot();as(),h.error&&h.restoreFromSnapshot(t)}}function cA(){if(y(o.name)&&h.contextualKeyword===S._interface){const t=Ne(0);return G(),gc(),$e(t),!0}else if(me(S._enum))return vf(),!0;return!1}function uA(){return me(S._enum)?(vf(),!0):!1}function hA(t){if(t===S._declare){if(y(o._class)||y(o.name)||y(o._function)||y(o._var)||y(o._export)){const e=Ne(1);fc(),$e(e)}}else if(y(o.name)){if(t===S._interface){const e=Ne(1);gc(),$e(e)}else if(t===S._type){const e=Ne(1);yc(),$e(e)}else if(t===S._opaque){const e=Ne(1);bc(!1),$e(e)}}Je()}function dA(){return me(S._type)||me(S._interface)||me(S._opaque)||me(S._enum)}function pA(){return y(o.name)&&(h.contextualKeyword===S._type||h.contextualKeyword===S._interface||h.contextualKeyword===S._opaque||h.contextualKeyword===S._enum)}function fA(){if(me(S._type)){const t=Ne(1);G(),y(o.braceL)?(vc(),Wr()):yc(),$e(t)}else if(me(S._opaque)){const t=Ne(1);G(),bc(!1),$e(t)}else if(me(S._interface)){const t=Ne(1);G(),gc(),$e(t)}else Tt(!0)}function mA(){return y(o.star)||me(S._type)&&et()===o.star}function gA(){if(ut(S._type)){const t=Ne(2);Ic(),$e(t)}else Ic()}function yA(t){if(t&&y(o.lessThan)&&as(),me(S._implements)){const e=Ne(0);G(),h.tokens[h.tokens.length-1].type=o._implements;do Bo(),y(o.lessThan)&&as();while(z(o.comma));$e(e)}}function bA(){y(o.lessThan)&&(qt(),y(o.parenL)||Ie())}function xA(){const t=Ne(0);z(o.question),y(o.colon)&&ls(),$e(t)}function kA(){if(y(o._typeof)||me(S._type)){const t=Rr();(FE(t)||t.type===o.braceL||t.type===o.star)&&G()}}function EA(){const t=h.contextualKeyword===S._type||h.type===o._typeof;t?G():xe(),me(S._as)&&!Bl(S._as)?(xe(),t&&!y(o.name)&&!(h.type&o.IS_KEYWORD)||xe()):(t&&(y(o.name)||h.type&o.IS_KEYWORD)&&xe(),ut(S._as)&&xe())}function AA(){if(y(o.lessThan)){const t=Ne(0);qt(),$e(t)}}function wA(){y(o.colon)&&ls()}function SA(){if(y(o.colon)){const t=h.noAnonFunctionType;h.noAnonFunctionType=!0,ls(),h.noAnonFunctionType=t}}function IA(t,e){if(y(o.lessThan)){const n=h.snapshot();let s=nn(t,e);if(h.error)h.restoreFromSnapshot(n),h.type=o.typeParameterStart;else return s;const r=Ne(0);if(qt(),$e(r),s=nn(t,e),s)return!0;Ie()}return nn(t,e)}function vA(){if(y(o.colon)){const t=Ne(0),e=h.snapshot(),n=h.noAnonFunctionType;h.noAnonFunctionType=!0,pc(),h.noAnonFunctionType=n,Ct()&&Ie(),y(o.arrow)||Ie(),h.error&&h.restoreFromSnapshot(e),$e(t)}return z(o.arrow)}function _A(t,e=!1){if(h.tokens[h.tokens.length-1].contextualKeyword===S._async&&y(o.lessThan)){const n=h.snapshot();if(PA()&&!h.error)return;h.restoreFromSnapshot(n)}pf(t,e)}function PA(){h.scopeDepth++;const t=h.tokens.length;return Vs(),lc()?(Ur(t),!0):!1}function vf(){rt(S._enum),h.tokens[h.tokens.length-1].type=o._enum,xe(),$A()}function $A(){ut(S._of)&&G(),H(o.braceL),NA(),H(o.braceR)}function NA(){for(;!y(o.braceR)&&!h.error&&!z(o.ellipsis);)CA(),y(o.braceR)||H(o.comma)}function CA(){xe(),z(o.eq)&&G()}function TA(){if(Uo(o.eof),h.scopes.push(new en(0,h.tokens.length,!0)),h.scopeDepth!==0)throw new Error(`Invalid scope depth at end of file: ${h.scopeDepth}`);return new bw(h.tokens,h.scopes)}function Tt(t){Be&&cA()||(y(o.at)&&wc(),RA(t))}function RA(t){if(De&&Jk())return;const e=h.type;switch(e){case o._break:case o._continue:OA();return;case o._debugger:LA();return;case o._do:MA();return;case o._for:FA();return;case o._function:if(et()===o.dot)break;t||Ie(),zA();return;case o._class:t||Ie(),us(!0);return;case o._if:VA();return;case o._return:UA();return;case o._switch:qA();return;case o._throw:HA();return;case o._try:WA();return;case o._let:case o._const:t||Ie();case o._var:Vo(e!==o._var);return;case o._while:XA();return;case o.braceL:Tn();return;case o.semi:KA();return;case o._export:case o._import:{const r=et();if(r===o.parenL||r===o.dot)break;G(),e===o._import?Mf():Of();return}case o.name:if(h.contextualKeyword===S._async){const r=h.start,i=h.snapshot();if(G(),y(o._function)&&!Ct()){H(o._function),cs(r,!0);return}else h.restoreFromSnapshot(i)}else if(h.contextualKeyword===S._using&&!h1()&&et()===o.name){Vo(!0);return}else if(_f()){rt(S._await),Vo(!0);return}}const n=h.tokens.length;mt();let s=null;if(h.tokens.length===n+1){const r=h.tokens[h.tokens.length-1];r.type===o.name&&(s=r.contextualKeyword)}if(s==null){Je();return}z(o.colon)?JA():YA(s)}function _f(){if(!me(S._await))return!1;const t=h.snapshot();return G(),!me(S._using)||Et()||(G(),!y(o.name)||Et())?(h.restoreFromSnapshot(t),!1):(h.restoreFromSnapshot(t),!0)}function wc(){for(;y(o.at);)Pf()}function Pf(){if(G(),z(o.parenL))mt(),H(o.parenR);else{for(xe();z(o.dot);)xe();DA()}}function DA(){De?uE():$f()}function $f(){z(o.parenL)&&Cn()}function OA(){G(),tn()||(xe(),Je())}function LA(){G(),Je()}function MA(){G(),Tt(!1),H(o._while),Mo(),z(o.semi)}function FA(){h.scopeDepth++;const t=h.tokens.length;jA();const e=h.tokens.length;h.scopes.push(new en(t,e,!1)),h.scopeDepth--}function BA(){return!(!me(S._using)||Bl(S._of))}function jA(){G();let t=!1;if(me(S._await)&&(t=!0,G()),H(o.parenL),y(o.semi)){t&&Ie(),Sc();return}const e=_f();if(e||y(o._var)||y(o._let)||y(o._const)||BA()){if(e&&rt(S._await),G(),Cf(!0,h.type!==o._var),y(o._in)||me(S._of)){Nf(t);return}Sc();return}if(mt(!0),y(o._in)||me(S._of)){Nf(t);return}t&&Ie(),Sc()}function zA(){const t=h.start;G(),cs(t,!0)}function VA(){G(),Mo(),Tt(!1),z(o._else)&&Tt(!1)}function UA(){G(),tn()||(mt(),Je())}function qA(){G(),Mo(),h.scopeDepth++;const t=h.tokens.length;for(H(o.braceL);!y(o.braceR)&&!h.error;)if(y(o._case)||y(o._default)){const n=y(o._case);G(),n&&mt(),H(o.colon)}else Tt(!0);G();const e=h.tokens.length;h.scopes.push(new en(t,e,!1)),h.scopeDepth--}function HA(){G(),mt(),Je()}function GA(){No(!0),De&&Ms()}function WA(){if(G(),Tn(),y(o._catch)){G();let t=null;if(y(o.parenL)&&(h.scopeDepth++,t=h.tokens.length,H(o.parenL),GA(),H(o.parenR)),Tn(),t!=null){const e=h.tokens.length;h.scopes.push(new en(t,e,!1)),h.scopeDepth--}}z(o._finally)&&Tn()}function Vo(t){G(),Cf(!1,t),Je()}function XA(){G(),Mo(),Tt(!1)}function KA(){G()}function JA(){Tt(!0)}function YA(t){De?Qk(t):Be?hA(t):Je()}function Tn(t=!1,e=0){const n=h.tokens.length;h.scopeDepth++,H(o.braceL),e&&(h.tokens[h.tokens.length-1].contextId=e),Uo(o.braceR),e&&(h.tokens[h.tokens.length-1].contextId=e);const s=h.tokens.length;h.scopes.push(new en(n,s,t)),h.scopeDepth--}function Uo(t){for(;!z(t)&&!h.error;)Tt(!0)}function Sc(){H(o.semi),y(o.semi)||mt(),H(o.semi),y(o.parenR)||mt(),H(o.parenR),Tt(!1)}function Nf(t){t?ut(S._of):G(),mt(),H(o.parenR),Tt(!1)}function Cf(t,e){for(;;){if(QA(e),z(o.eq)){const n=h.tokens.length-1;gt(t),h.tokens[n].rhsEndIndex=h.tokens.length}if(!z(o.comma))break}}function QA(t){No(t),De?sE():Be&&wA()}function cs(t,e,n=!1){y(o.star)&&G(),e&&!n&&!y(o.name)&&!y(o._yield)&&Ie();let s=null;y(o.name)&&(e||(s=h.tokens.length,h.scopeDepth++),$n(!1));const r=h.tokens.length;h.scopeDepth++,Vs(),gf(t);const i=h.tokens.length;h.scopes.push(new en(r,i,!0)),h.scopeDepth--,s!==null&&(h.scopes.push(new en(s,i,!0)),h.scopeDepth--)}function Vs(t=!1,e=0){De?nE():Be&&AA(),H(o.parenL),e&&(h.tokens[h.tokens.length-1].contextId=e),Wl(o.parenR,!1,!1,t,e),e&&(h.tokens[h.tokens.length-1].contextId=e)}function us(t,e=!1){const n=Cr();G(),h.tokens[h.tokens.length-1].contextId=n,h.tokens[h.tokens.length-1].isExpression=!t;let s=null;t||(s=h.tokens.length,h.scopeDepth++),nw(t,e),sw();const r=h.tokens.length;if(ZA(n),!h.error&&(h.tokens[r].contextId=n,h.tokens[h.tokens.length-1].contextId=n,s!==null)){const i=h.tokens.length;h.scopes.push(new en(s,i,!1)),h.scopeDepth--}}function Tf(){return y(o.eq)||y(o.semi)||y(o.braceR)||y(o.bang)||y(o.colon)}function Rf(){return y(o.parenL)||y(o.lessThan)}function ZA(t){for(H(o.braceL);!z(o.braceR)&&!h.error;){if(z(o.semi))continue;if(y(o.at)){Pf();continue}const e=h.start;ew(e,t)}}function ew(t,e){De&&Kl([S._declare,S._public,S._protected,S._private,S._override]);let n=!1;if(y(o.name)&&h.contextualKeyword===S._static){if(xe(),Rf()){Hr(t,!1);return}else if(Tf()){qo();return}if(h.tokens[h.tokens.length-1].type=o._static,n=!0,y(o.braceL)){h.tokens[h.tokens.length-1].contextId=e,Tn();return}}tw(t,n,e)}function tw(t,e,n){if(De&&Yk(e))return;if(z(o.star)){Gr(n),Hr(t,!1);return}Gr(n);let s=!1;const r=h.tokens[h.tokens.length-1];r.contextualKeyword===S._constructor&&(s=!0),Df(),Rf()?Hr(t,s):Tf()?qo():r.contextualKeyword===S._async&&!tn()?(h.tokens[h.tokens.length-1].type=o._async,y(o.star)&&G(),Gr(n),Df(),Hr(t,!1)):(r.contextualKeyword===S._get||r.contextualKeyword===S._set)&&!(tn()&&y(o.star))?(r.contextualKeyword===S._get?h.tokens[h.tokens.length-1].type=o._get:h.tokens[h.tokens.length-1].type=o._set,Gr(n),Hr(t,!1)):r.contextualKeyword===S._accessor&&!tn()?(Gr(n),qo()):tn()?qo():Ie()}function Hr(t,e){De?os():Be&&y(o.lessThan)&&qt(),dc(t,e)}function Gr(t){Vr(t)}function Df(){if(De){const t=Ne(0);z(o.question),$e(t)}}function qo(){if(De?(b1(o.bang),Ms()):Be&&y(o.colon)&&ls(),y(o.eq)){const t=h.tokens.length;G(),gt(),h.tokens[t].rhsEndIndex=h.tokens.length}Je()}function nw(t,e=!1){De&&(!t||e)&&me(S._implements)||(y(o.name)&&$n(!0),De?os():Be&&y(o.lessThan)&&qt())}function sw(){let t=!1;z(o._extends)?(df(),t=!0):t=!1,De?eE(t):Be&&yA(t)}function Of(){const t=h.tokens.length-1;De&&Gk()||(aw()?lw():ow()?(xe(),y(o.comma)&&et()===o.star?(H(o.comma),H(o.star),rt(S._as),xe()):Lf(),Wr()):z(o._default)?rw():uw()?iw():(vc(),Wr()),h.tokens[t].rhsEndIndex=h.tokens.length)}function rw(){if(De&&Kk()||Be&&uA())return;const t=h.start;z(o._function)?cs(t,!0,!0):me(S._async)&&et()===o._function?(ut(S._async),z(o._function),cs(t,!0,!0)):y(o._class)?us(!0,!0):y(o.at)?(wc(),us(!0,!0)):(gt(),Je())}function iw(){De?Zk():Be?fA():Tt(!0)}function ow(){if(De&&of())return!1;if(Be&&pA())return!1;if(y(o.name))return h.contextualKeyword!==S._async;if(!y(o._default))return!1;const t=jl(),e=Rr(),n=e.type===o.name&&e.contextualKeyword===S._from;if(e.type===o.comma)return!0;if(n){const s=re.charCodeAt(x1(t+4));return s===P.quotationMark||s===P.apostrophe}return!1}function Lf(){z(o.comma)&&vc()}function Wr(){ut(S._from)&&(yn(),Bf()),Je()}function aw(){return Be?mA():y(o.star)}function lw(){Be?gA():Ic()}function Ic(){H(o.star),me(S._as)?cw():Wr()}function cw(){G(),h.tokens[h.tokens.length-1].type=o._as,xe(),Lf(),Wr()}function uw(){return De&&of()||Be&&dA()||h.type===o._var||h.type===o._const||h.type===o._let||h.type===o._function||h.type===o._class||me(S._async)||y(o.at)}function vc(){let t=!0;for(H(o.braceL);!z(o.braceR)&&!h.error;){if(t)t=!1;else if(H(o.comma),z(o.braceR))break;hw()}}function hw(){if(De){Xk();return}xe(),h.tokens[h.tokens.length-1].identifierRole=ge.ExportAccess,ut(S._as)&&xe()}function dw(){const t=h.snapshot();return rt(S._module),ut(S._from)?me(S._from)?(h.restoreFromSnapshot(t),!0):(h.restoreFromSnapshot(t),!1):y(o.comma)?(h.restoreFromSnapshot(t),!1):(h.restoreFromSnapshot(t),!0)}function pw(){me(S._module)&&dw()&&G()}function Mf(){if(De&&y(o.name)&&et()===o.eq){nc();return}if(De&&me(S._type)){const t=Rr();if(t.type===o.name&&t.contextualKeyword!==S._from){if(rt(S._type),et()===o.eq){nc();return}}else(t.type===o.star||t.type===o.braceL)&&rt(S._type)}y(o.string)||(pw(),mw(),rt(S._from)),yn(),Bf(),Je()}function fw(){return y(o.name)}function Ff(){$o()}function mw(){Be&&kA();let t=!0;if(!(fw()&&(Ff(),!z(o.comma)))){if(y(o.star)){G(),rt(S._as),Ff();return}for(H(o.braceL);!z(o.braceR)&&!h.error;){if(t)t=!1;else if(z(o.colon)&&Ie("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),H(o.comma),z(o.braceR))break;gw()}}}function gw(){if(De){Wk();return}if(Be){EA();return}$o(),me(S._as)&&(h.tokens[h.tokens.length-1].identifierRole=ge.ImportAccess,G(),$o())}function Bf(){(y(o._with)||me(S._assert)&&!Et())&&(G(),hc(!1,!1))}function yw(){return h.pos===0&&re.charCodeAt(0)===P.numberSign&&re.charCodeAt(1)===P.exclamationMark&&A1(2),E1(),TA()}class bw{constructor(e,n){this.tokens=e,this.scopes=n}}function xw(t,e,n,s){if(s&&n)throw new Error("Cannot combine flow and typescript plugins.");Hb(t,e,n,s);const r=yw();if(h.error)throw Vb(h.error);return r}function kw(t){let e=t.currentIndex(),n=0;const s=t.currentToken();do{const r=t.tokens[e];if(r.isOptionalChainStart&&n++,r.isOptionalChainEnd&&n--,n+=r.numNullishCoalesceStarts,n-=r.numNullishCoalesceEnds,r.contextualKeyword===S._await&&r.identifierRole==null&&r.scopeDepth===s.scopeDepth)return!0;e+=1}while(n>0&&e<t.tokens.length);return!1}class Xr{__init(){this.resultCode=""}__init2(){this.resultMappings=new Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(e,n,s,r,i){this.code=e,this.tokens=n,this.isFlowEnabled=s,this.disableESTransforms=r,this.helperManager=i,Xr.prototype.__init.call(this),Xr.prototype.__init2.call(this),Xr.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(e){this.resultCode=e.resultCode,this.tokenIndex=e.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(e){const n=this.resultCode.slice(e.resultCode.length);return this.resultCode=e.resultCode,n}reset(){this.resultCode="",this.resultMappings=new Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(e,n){return this.matches1AtIndex(e,o.name)&&this.tokens[e].contextualKeyword===n}identifierNameAtIndex(e){return this.identifierNameForToken(this.tokens[e])}identifierNameAtRelativeIndex(e){return this.identifierNameForToken(this.tokenAtRelativeIndex(e))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(e){return this.code.slice(e.start,e.end)}rawCodeForToken(e){return this.code.slice(e.start,e.end)}stringValueAtIndex(e){return this.stringValueForToken(this.tokens[e])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(e){return this.code.slice(e.start+1,e.end-1)}matches1AtIndex(e,n){return this.tokens[e].type===n}matches2AtIndex(e,n,s){return this.tokens[e].type===n&&this.tokens[e+1].type===s}matches3AtIndex(e,n,s,r){return this.tokens[e].type===n&&this.tokens[e+1].type===s&&this.tokens[e+2].type===r}matches1(e){return this.tokens[this.tokenIndex].type===e}matches2(e,n){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===n}matches3(e,n,s){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===s}matches4(e,n,s,r){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===s&&this.tokens[this.tokenIndex+3].type===r}matches5(e,n,s,r,i){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===s&&this.tokens[this.tokenIndex+3].type===r&&this.tokens[this.tokenIndex+4].type===i}matchesContextual(e){return this.matchesContextualAtIndex(this.tokenIndex,e)}matchesContextIdAndLabel(e,n){return this.matches1(e)&&this.currentToken().contextId===n}previousWhitespaceAndComments(){let e=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);return this.isFlowEnabled&&(e=e.replace(/@flow/g,"")),e}replaceToken(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(e){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,""),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken("")}removeToken(){this.replaceTokenTrimmingLeftWhitespace("")}removeBalancedCode(){let e=0;for(;!this.isAtEnd();){if(this.matches1(o.braceL))e++;else if(this.matches1(o.braceR)){if(e===0)return;e--}this.removeToken()}}copyExpectedToken(e){if(this.tokens[this.tokenIndex].type!==e)throw new Error(`Expected token ${e}`);this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}copyTokenWithPrefix(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=e,this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}appendTokenPrefix(){const e=this.currentToken();if((e.numNullishCoalesceStarts||e.isOptionalChainStart)&&(e.isAsyncOperation=kw(this)),!this.disableESTransforms){if(e.numNullishCoalesceStarts)for(let n=0;n<e.numNullishCoalesceStarts;n++)e.isAsyncOperation?(this.resultCode+="await ",this.resultCode+=this.helperManager.getHelperName("asyncNullishCoalesce")):this.resultCode+=this.helperManager.getHelperName("nullishCoalesce"),this.resultCode+="(";e.isOptionalChainStart&&(e.isAsyncOperation&&(this.resultCode+="await "),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===o._delete?e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){const e=this.currentToken();if(e.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),e.numNullishCoalesceEnds&&!this.disableESTransforms)for(let n=0;n<e.numNullishCoalesceEnds;n++)this.resultCode+="))"}appendCode(e){this.resultCode+=e}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){const e=this.currentToken();return this.code.slice(e.start,e.end)}tokenAtRelativeIndex(e){return this.tokens[this.tokenIndex+e]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length)throw new Error("Unexpectedly reached end of input.");this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length)throw new Error("Tried to finish processing tokens before reaching the end.");return this.resultCode+=this.previousWhitespaceAndComments(),{code:this.resultCode,mappings:this.resultMappings}}isAtEnd(){return this.tokenIndex===this.tokens.length}}function Ew(t,e,n,s){const r=e.snapshot(),i=Aw(e);let a=[];const l=[],c=[];let u=null;const d=[],m=[],f=e.currentToken().contextId;if(f==null)throw new Error("Expected non-null class context ID on class open-brace.");for(e.nextToken();!e.matchesContextIdAndLabel(o.braceR,f);)if(e.matchesContextual(S._constructor)&&!e.currentToken().isType)({constructorInitializerStatements:a,constructorInsertPos:u}=jf(e));else if(e.matches1(o.semi))s||m.push({start:e.currentIndex(),end:e.currentIndex()+1}),e.nextToken();else if(e.currentToken().isType)e.nextToken();else{const g=e.currentIndex();let w=!1,k=!1,I=!1;for(;Ho(e.currentToken());)e.matches1(o._static)&&(w=!0),e.matches1(o.hash)&&(k=!0),(e.matches1(o._declare)||e.matches1(o._abstract))&&(I=!0),e.nextToken();if(w&&e.matches1(o.braceL)){_c(e,f);continue}if(k){_c(e,f);continue}if(e.matchesContextual(S._constructor)&&!e.currentToken().isType){({constructorInitializerStatements:a,constructorInsertPos:u}=jf(e));continue}const E=e.currentIndex();if(ww(e),e.matches1(o.lessThan)||e.matches1(o.parenL)){_c(e,f);continue}for(;e.currentToken().isType;)e.nextToken();if(e.matches1(o.eq)){const b=e.currentIndex(),A=e.currentToken().rhsEndIndex;if(A==null)throw new Error("Expected rhsEndIndex on class field assignment.");for(e.nextToken();e.currentIndex()<A;)t.processToken();let v;w?(v=n.claimFreeName("__initStatic"),c.push(v)):(v=n.claimFreeName("__init"),l.push(v)),d.push({initializerName:v,equalsIndex:b,start:E,end:e.currentIndex()})}else(!s||I)&&m.push({start:g,end:e.currentIndex()})}return e.restoreToSnapshot(r),s?{headerInfo:i,constructorInitializerStatements:a,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:u,fields:[],rangesToRemove:m}:{headerInfo:i,constructorInitializerStatements:a,instanceInitializerNames:l,staticInitializerNames:c,constructorInsertPos:u,fields:d,rangesToRemove:m}}function _c(t,e){for(t.nextToken();t.currentToken().contextId!==e;)t.nextToken();for(;Ho(t.tokenAtRelativeIndex(-1));)t.previousToken()}function Aw(t){const e=t.currentToken(),n=e.contextId;if(n==null)throw new Error("Expected context ID on class token.");const s=e.isExpression;if(s==null)throw new Error("Expected isExpression on class token.");let r=null,i=!1;for(t.nextToken(),t.matches1(o.name)&&(r=t.identifierName());!t.matchesContextIdAndLabel(o.braceL,n);)t.matches1(o._extends)&&!t.currentToken().isType&&(i=!0),t.nextToken();return{isExpression:s,className:r,hasSuperclass:i}}function jf(t){const e=[];t.nextToken();const n=t.currentToken().contextId;if(n==null)throw new Error("Expected context ID on open-paren starting constructor params.");for(;!t.matchesContextIdAndLabel(o.parenR,n);)if(t.currentToken().contextId===n){if(t.nextToken(),Ho(t.currentToken())){for(t.nextToken();Ho(t.currentToken());)t.nextToken();const i=t.currentToken();if(i.type!==o.name)throw new Error("Expected identifier after access modifiers in constructor arg.");const a=t.identifierNameForToken(i);e.push(`this.${a} = ${a}`)}}else t.nextToken();for(t.nextToken();t.currentToken().isType;)t.nextToken();let s=t.currentIndex(),r=!1;for(;!t.matchesContextIdAndLabel(o.braceR,n);){if(!r&&t.matches2(o._super,o.parenL)){t.nextToken();const i=t.currentToken().contextId;if(i==null)throw new Error("Expected a context ID on the super call");for(;!t.matchesContextIdAndLabel(o.parenR,i);)t.nextToken();s=t.currentIndex(),r=!0}t.nextToken()}return t.nextToken(),{constructorInitializerStatements:e,constructorInsertPos:s}}function Ho(t){return[o._async,o._get,o._set,o.plus,o.minus,o._readonly,o._static,o._public,o._private,o._protected,o._override,o._abstract,o.star,o._declare,o.hash].includes(t.type)}function ww(t){if(t.matches1(o.bracketL)){const n=t.currentToken().contextId;if(n==null)throw new Error("Expected class context ID on computed name open bracket.");for(;!t.matchesContextIdAndLabel(o.bracketR,n);)t.nextToken();t.nextToken()}else t.nextToken()}function zf(t){if(t.removeInitialToken(),t.removeToken(),t.removeToken(),t.removeToken(),t.matches1(o.parenL))t.removeToken(),t.removeToken(),t.removeToken();else for(;t.matches1(o.dot);)t.removeToken(),t.removeToken()}const Vf={typeDeclarations:new Set,valueDeclarations:new Set};function Uf(t){const e=new Set,n=new Set;for(let s=0;s<t.tokens.length;s++){const r=t.tokens[s];r.type===o.name&&y1(r)&&(r.isType?e.add(t.identifierNameForToken(r)):n.add(t.identifierNameForToken(r)))}return{typeDeclarations:e,valueDeclarations:n}}function qf(t){let e=t.currentIndex();for(;!t.matches1AtIndex(e,o.braceR);)e++;return t.matchesContextualAtIndex(e+1,S._from)&&t.matches1AtIndex(e+2,o.string)}function hs(t){(t.matches2(o._with,o.braceL)||t.matches2(o.name,o.braceL)&&t.matchesContextual(S._assert))&&(t.removeToken(),t.removeToken(),t.removeBalancedCode(),t.removeToken())}function Hf(t,e,n,s){if(!t||e)return!1;const r=n.currentToken();if(r.rhsEndIndex==null)throw new Error("Expected non-null rhsEndIndex on export token.");const i=r.rhsEndIndex-n.currentIndex();if(i!==3&&!(i===4&&n.matches1AtIndex(r.rhsEndIndex-1,o.semi)))return!1;const a=n.tokenAtRelativeIndex(2);if(a.type!==o.name)return!1;const l=n.identifierNameForToken(a);return s.typeDeclarations.has(l)&&!s.valueDeclarations.has(l)}class Kr extends Vt{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(e,n,s,r,i,a,l,c,u,d,m,f){super(),this.rootTransformer=e,this.tokens=n,this.importProcessor=s,this.nameManager=r,this.helperManager=i,this.reactHotLoaderTransformer=a,this.enableLegacyBabel5ModuleInterop=l,this.enableLegacyTypeScriptModuleInterop=c,this.isTypeScriptTransformEnabled=u,this.isFlowTransformEnabled=d,this.preserveDynamicImport=m,this.keepUnusedImports=f,Kr.prototype.__init.call(this),Kr.prototype.__init2.call(this),Kr.prototype.__init3.call(this),this.declarationInfo=u?Uf(n):Vf}getPrefixCode(){let e="";return this.hadExport&&(e+='Object.defineProperty(exports, "__esModule", {value: true});'),e}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?`
177
177
  module.exports = exports.default;
178
- `:""}process(){return this.tokens.matches3(o._import,o.name,o.eq)?this.processImportEquals():this.tokens.matches1(o._import)?(this.processImport(),!0):this.tokens.matches2(o._export,o.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(o._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):this.tokens.matches2(o.name,o.postIncDec)&&this.processPostIncDec()?!0:this.tokens.matches1(o.name)||this.tokens.matches1(o.jsxName)?this.processIdentifier():this.tokens.matches1(o.eq)?this.processAssignment():this.tokens.matches1(o.assign)?this.processComplexAssignment():this.tokens.matches1(o.preIncDec)?this.processPreIncDec():!1}processImportEquals(){const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(e)?Bf(this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(o._import,o.parenL)){if(this.preserveDynamicImport){this.tokens.copyToken();return}const n=this.enableLegacyTypeScriptModuleInterop?"":`${this.helperManager.getHelperName("interopRequireWildcard")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${n}require`);const s=this.tokens.currentToken().contextId;if(s==null)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(o.parenR,s);)this.rootTransformer.processToken();this.tokens.replaceToken(n?")))":"))");return}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{const n=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(n)),this.tokens.appendCode(this.importProcessor.claimImportCode(n))}us(this.tokens),this.tokens.matches1(o.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(S._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,o.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,S._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(o.name)||this.tokens.matches1(o.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(o.string))return!1;let e=!1,n=!1;for(;!this.tokens.matches1(o.string);)(!e&&this.tokens.matches1(o.braceL)||this.tokens.matches1(o.comma))&&(this.tokens.removeToken(),this.tokens.matches1(o.braceR)||(n=!0),(this.tokens.matches2(o.name,o.comma)||this.tokens.matches2(o.name,o.braceR)||this.tokens.matches4(o.name,o.name,o.name,o.comma)||this.tokens.matches4(o.name,o.name,o.name,o.braceR))&&(e=!0)),this.tokens.removeToken();return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!e:this.isFlowTransformEnabled?n&&!e:!1}removeRemainingImport(){for(;!this.tokens.matches1(o.string);)this.tokens.removeToken()}processIdentifier(){const e=this.tokens.currentToken();if(e.shadowsGlobal)return!1;if(e.identifierRole===ge.ObjectShorthand)return this.processObjectShorthand();if(e.identifierRole!==ge.Access)return!1;const n=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(e));if(!n)return!1;let s=this.tokens.currentIndex()+1;for(;s<this.tokens.tokens.length&&this.tokens.tokens[s].type===o.parenR;)s++;return this.tokens.tokens[s].type===o.parenL?this.tokens.tokenAtRelativeIndex(1).type===o.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==o._new?(this.tokens.replaceToken(`${n}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR)):this.tokens.replaceToken(`(0, ${n})`):this.tokens.replaceToken(n),!0}processObjectShorthand(){const e=this.tokens.identifierName(),n=this.importProcessor.getIdentifierReplacement(e);return n?(this.tokens.replaceToken(`${e}: ${n}`),!0):!1}processExport(){if(this.tokens.matches2(o._export,o._enum)||this.tokens.matches3(o._export,o._const,o._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(o._export,o._default))return this.tokens.matches3(o._export,o._default,o._enum)?(this.hadDefaultExport=!0,!1):(this.processExportDefault(),!0);if(this.tokens.matches2(o._export,o.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(o._export,o.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,S._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(o.braceL)){for(;!this.tokens.matches1(o.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(o._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(S._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,o.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),us(this.tokens)),!0}if(this.hadNamedExport=!0,this.tokens.matches2(o._export,o._var)||this.tokens.matches2(o._export,o._let)||this.tokens.matches2(o._export,o._const))return this.processExportVar(),!0;if(this.tokens.matches2(o._export,o._function)||this.tokens.matches3(o._export,o.name,o._function))return this.processExportFunction(),!0;if(this.tokens.matches2(o._export,o._class)||this.tokens.matches3(o._export,o._abstract,o._class)||this.tokens.matches2(o._export,o.at))return this.processExportClass(),!0;if(this.tokens.matches2(o._export,o.star))return this.processExportStar(),!0;throw new Error("Unrecognized export syntax.")}processAssignment(){const e=this.tokens.currentIndex(),n=this.tokens.tokens[e-1];if(n.isType||n.type!==o.name||n.shadowsGlobal||e>=2&&this.tokens.matches1AtIndex(e-2,o.dot)||e>=2&&[o._var,o._let,o._const].includes(this.tokens.tokens[e-2].type))return!1;const s=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(n));return s?(this.tokens.copyToken(),this.tokens.appendCode(` ${s} =`),!0):!1}processComplexAssignment(){const e=this.tokens.currentIndex(),n=this.tokens.tokens[e-1];if(n.type!==o.name||n.shadowsGlobal||e>=2&&this.tokens.matches1AtIndex(e-2,o.dot))return!1;const s=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(n));return s?(this.tokens.appendCode(` = ${s}`),this.tokens.copyToken(),!0):!1}processPreIncDec(){const e=this.tokens.currentIndex(),n=this.tokens.tokens[e+1];if(n.type!==o.name||n.shadowsGlobal||e+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(e+2,o.dot)||this.tokens.matches1AtIndex(e+2,o.bracketL)||this.tokens.matches1AtIndex(e+2,o.parenL)))return!1;const s=this.tokens.identifierNameForToken(n),i=this.importProcessor.resolveExportBinding(s);return i?(this.tokens.appendCode(`${i} = `),this.tokens.copyToken(),!0):!1}processPostIncDec(){const e=this.tokens.currentIndex(),n=this.tokens.tokens[e],s=this.tokens.tokens[e+1];if(n.type!==o.name||n.shadowsGlobal||e>=1&&this.tokens.matches1AtIndex(e-1,o.dot))return!1;const i=this.tokens.identifierNameForToken(n),r=this.importProcessor.resolveExportBinding(i);if(!r)return!1;const a=this.tokens.rawCodeForToken(s),l=this.importProcessor.getIdentifierReplacement(i)||i;if(a==="++")this.tokens.replaceToken(`(${l} = ${r} = ${l} + 1, ${l} - 1)`);else if(a==="--")this.tokens.replaceToken(`(${l} = ${r} = ${l} - 1, ${l} + 1)`);else throw new Error(`Unexpected operator: ${a}`);return this.tokens.removeToken(),!0}processExportDefault(){let e=!0;if(this.tokens.matches4(o._export,o._default,o._function,o.name)||this.tokens.matches5(o._export,o._default,o.name,o._function,o.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,S._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();const n=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${n};`)}else if(this.tokens.matches4(o._export,o._default,o._class,o.name)||this.tokens.matches5(o._export,o._default,o._abstract,o._class,o.name)||this.tokens.matches3(o._export,o._default,o.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(o._abstract)&&this.tokens.removeToken();const n=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${n};`)}else if(Uf(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))e=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){const n=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${n}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${n} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(n)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");e&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(o.at);)if(this.tokens.copyToken(),this.tokens.matches1(o.parenL))this.tokens.copyExpectedToken(o.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR);else{for(this.tokens.copyExpectedToken(o.name);this.tokens.matches1(o.dot);)this.tokens.copyExpectedToken(o.dot),this.tokens.copyExpectedToken(o.name);this.tokens.matches1(o.parenL)&&(this.tokens.copyExpectedToken(o.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let e=this.tokens.currentIndex();if(e++,e++,!this.tokens.matches1AtIndex(e,o.name))return!1;for(e++;e<this.tokens.tokens.length&&this.tokens.tokens[e].isType;)e++;return!!this.tokens.matches1AtIndex(e,o.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();const e=this.tokens.identifierName();for(;!this.tokens.matches1(o.eq);)this.rootTransformer.processToken();const n=this.tokens.currentToken().rhsEndIndex;if(n==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<n;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${e} = ${e}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.tokens.matches1(o.braceL);e&&this.tokens.appendCode("(");let n=0;for(;;)if(this.tokens.matches1(o.braceL)||this.tokens.matches1(o.dollarBraceL)||this.tokens.matches1(o.bracketL))n++,this.tokens.copyToken();else if(this.tokens.matches1(o.braceR)||this.tokens.matches1(o.bracketR))n--,this.tokens.copyToken();else{if(n===0&&!this.tokens.matches1(o.name)&&!this.tokens.currentToken().isType)break;if(this.tokens.matches1(o.eq)){const s=this.tokens.currentToken().rhsEndIndex;if(s==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<s;)this.rootTransformer.processToken()}else{const s=this.tokens.currentToken();if(f1(s)){const i=this.tokens.identifierName();let r=this.importProcessor.getIdentifierReplacement(i);if(r===null)throw new Error(`Expected a replacement for ${i} in \`export var\` syntax.`);Kb(s)&&(r=`${i}: ${r}`),this.tokens.replaceToken(r)}else this.rootTransformer.processToken()}}if(e){const s=this.tokens.currentToken().rhsEndIndex;if(s==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<s;)this.rootTransformer.processToken();this.tokens.appendCode(")")}}processExportFunction(){this.tokens.replaceToken("");const e=this.processNamedFunction();this.tokens.appendCode(` exports.${e} = ${e};`)}processNamedFunction(){if(this.tokens.matches1(o._function))this.tokens.copyToken();else if(this.tokens.matches2(o.name,o._function)){if(!this.tokens.matchesContextual(S._async))throw new Error("Expected async keyword in function export.");this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(o.star)&&this.tokens.copyToken(),!this.tokens.matches1(o.name))throw new Error("Expected identifier for exported function name.");const e=this.tokens.identifierName();if(this.tokens.copyToken(),this.tokens.currentToken().isType)for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return this.tokens.copyExpectedToken(o.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(o.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.braceR),e}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(o._abstract)&&this.tokens.removeToken();const e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${e} = ${e};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=Vf(this.tokens),n=[];for(;;){if(this.tokens.matches1(o.braceR)){this.tokens.removeToken();break}const s=Ti(this.tokens);for(;this.tokens.currentIndex()<s.endIndex;)this.tokens.removeToken();if(!(s.isType||!e&&this.shouldElideExportedIdentifier(s.leftName))){const r=s.rightName;r==="default"?this.hadDefaultExport=!0:this.hadNamedExport=!0;const a=s.leftName,l=this.importProcessor.getIdentifierReplacement(a);n.push(`exports.${r} = ${l||a};`)}if(this.tokens.matches1(o.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(o.comma,o.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}else if(this.tokens.matches1(o.comma))this.tokens.removeToken();else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`)}if(this.tokens.matchesContextual(S._from)){this.tokens.removeToken();const s=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(s)),us(this.tokens)}else this.tokens.appendCode(n.join(" "));this.tokens.matches1(o.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(o.string);)this.tokens.removeToken();const e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),us(this.tokens),this.tokens.matches1(o.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.declarationInfo.valueDeclarations.has(e)}}class Aw extends Vt{constructor(e,n,s,i,r,a,l,c){super(),this.tokens=e,this.nameManager=n,this.helperManager=s,this.reactHotLoaderTransformer=i,this.isTypeScriptTransformEnabled=r,this.isFlowTransformEnabled=a,this.keepUnusedImports=l,this.nonTypeIdentifiers=r&&!l?C1(e,c):new Set,this.declarationInfo=r&&!l?zf(e):jf,this.injectCreateRequireForImportRequire=!!c.injectCreateRequireForImportRequire}process(){if(this.tokens.matches3(o._import,o.name,o.eq))return this.processImportEquals();if(this.tokens.matches4(o._import,o.name,o.name,o.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,S._type)){this.tokens.removeInitialToken();for(let e=0;e<7;e++)this.tokens.removeToken();return!0}if(this.tokens.matches2(o._export,o.eq))return this.tokens.replaceToken("module.exports"),!0;if(this.tokens.matches5(o._export,o._import,o.name,o.name,o.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,S._type)){this.tokens.removeInitialToken();for(let e=0;e<8;e++)this.tokens.removeToken();return!0}if(this.tokens.matches1(o._import))return this.processImport();if(this.tokens.matches2(o._export,o._default))return this.processExportDefault();if(this.tokens.matches2(o._export,o.braceL))return this.processNamedExports();if(this.tokens.matches2(o._export,o.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,S._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(o.braceL)){for(;!this.tokens.matches1(o.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(o._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(S._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,o.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),us(this.tokens)),!0}return!1}processImportEquals(){const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.shouldAutomaticallyElideImportedName(e)?Bf(this.tokens):this.injectCreateRequireForImportRequire?(this.tokens.replaceToken("const"),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.replaceToken(this.helperManager.getHelperName("require"))):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(o._import,o.parenL))return!1;const e=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(e);!this.tokens.matches1(o.string);)this.tokens.removeToken();this.tokens.removeToken(),us(this.tokens),this.tokens.matches1(o.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(o._import),this.tokens.matchesContextual(S._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,o.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,S._from))return!0;if(this.tokens.matches1(o.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(S._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,S._from)&&this.tokens.copyToken();let e=!1,n=!1,s=!1;if(this.tokens.matches1(o.name)&&(this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(o.comma)&&this.tokens.removeToken()):(e=!0,this.tokens.copyToken(),this.tokens.matches1(o.comma)&&(s=!0,this.tokens.removeToken()))),this.tokens.matches1(o.star))this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(s&&this.tokens.appendCode(","),e=!0,this.tokens.copyExpectedToken(o.star),this.tokens.copyExpectedToken(o.name),this.tokens.copyExpectedToken(o.name));else if(this.tokens.matches1(o.braceL)){for(s&&this.tokens.appendCode(","),this.tokens.copyToken();!this.tokens.matches1(o.braceR);){n=!0;const i=Ti(this.tokens);if(i.isType||this.shouldAutomaticallyElideImportedName(i.rightName)){for(;this.tokens.currentIndex()<i.endIndex;)this.tokens.removeToken();this.tokens.matches1(o.comma)&&this.tokens.removeToken()}else{for(e=!0;this.tokens.currentIndex()<i.endIndex;)this.tokens.copyToken();this.tokens.matches1(o.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(o.braceR)}return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!e:this.isFlowTransformEnabled?n&&!e:!1}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}processExportDefault(){if(Uf(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(o._export,o._default,o._function,o.name)||this.tokens.matches5(o._export,o._default,o.name,o._function,o.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,S._async)||this.tokens.matches4(o._export,o._default,o._class,o.name)||this.tokens.matches5(o._export,o._default,o._abstract,o._class,o.name))&&this.reactHotLoaderTransformer){const n=this.nameManager.claimFreeName("_default");return this.tokens.replaceToken(`let ${n}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${n} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(n),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;this.tokens.copyExpectedToken(o._export),this.tokens.copyExpectedToken(o.braceL);const e=Vf(this.tokens);let n=!1;for(;!this.tokens.matches1(o.braceR);){const s=Ti(this.tokens);if(s.isType||!e&&this.shouldElideExportedName(s.leftName)){for(;this.tokens.currentIndex()<s.endIndex;)this.tokens.removeToken();this.tokens.matches1(o.comma)&&this.tokens.removeToken()}else{for(n=!0;this.tokens.currentIndex()<s.endIndex;)this.tokens.copyToken();this.tokens.matches1(o.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(o.braceR),!this.keepUnusedImports&&e&&!n&&(this.tokens.removeToken(),this.tokens.removeToken(),us(this.tokens)),!0}shouldElideExportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&this.declarationInfo.typeDeclarations.has(e)&&!this.declarationInfo.valueDeclarations.has(e)}}class ww extends Vt{constructor(e,n,s){super(),this.rootTransformer=e,this.tokens=n,this.isImportsTransformEnabled=s}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(o._enum)?(this.processEnum(),!0):this.tokens.matches2(o._export,o._enum)?(this.processNamedExportEnum(),!0):this.tokens.matches3(o._export,o._default,o._enum)?(this.processDefaultExportEnum(),!0):!1}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();const e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${e} = ${e};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${e};`):this.tokens.appendCode(` export default ${e};`)}processEnum(){this.tokens.replaceToken("const"),this.tokens.copyExpectedToken(o.name);let e=!1;this.tokens.matchesContextual(S._of)&&(this.tokens.removeToken(),e=this.tokens.matchesContextual(S._symbol),this.tokens.removeToken());const n=this.tokens.matches3(o.braceL,o.name,o.eq);this.tokens.appendCode(' = require("flow-enums-runtime")');const s=!e&&!n;for(this.tokens.replaceTokenTrimmingLeftWhitespace(s?".Mirrored([":"({");!this.tokens.matches1(o.braceR);){if(this.tokens.matches1(o.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(e,n),this.tokens.matches1(o.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(s?"]);":"});")}processEnumElement(e,n){if(e){const s=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol("${s}")`)}else n?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(":"),this.tokens.copyToken()):this.tokens.replaceToken(`"${this.tokens.identifierName()}"`)}}function Sw(t){let e,n=t[0],s=1;for(;s<t.length;){const i=t[s],r=t[s+1];if(s+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(e=n,n=r(n)):(i==="call"||i==="optionalCall")&&(n=r((...a)=>n.call(e,...a)),e=void 0)}return n}const Go="jest",Iw=["mock","unmock","enableAutomock","disableAutomock"];class Pc extends Vt{__init(){this.hoistedFunctionNames=[]}constructor(e,n,s,i){super(),this.rootTransformer=e,this.tokens=n,this.nameManager=s,this.importProcessor=i,Pc.prototype.__init.call(this)}process(){return this.tokens.currentToken().scopeDepth===0&&this.tokens.matches4(o.name,o.dot,o.name,o.parenL)&&this.tokens.identifierName()===Go?Sw([this,"access",e=>e.importProcessor,"optionalAccess",e=>e.getGlobalNames,"call",e=>e(),"optionalAccess",e=>e.has,"call",e=>e(Go)])?!1:this.extractHoistedCalls():!1}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map(e=>`${e}();`).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let e=!1;for(;this.tokens.matches3(o.dot,o.name,o.parenL);){const n=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(Iw.includes(n)){const i=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(i),this.tokens.replaceToken(`function ${i}(){${Go}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR),this.tokens.appendCode(";}"),e=!1}else e?this.tokens.copyToken():this.tokens.replaceToken(`${Go}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR),e=!0}return!0}}class vw extends Vt{constructor(e){super(),this.tokens=e}process(){if(this.tokens.matches1(o.num)){const e=this.tokens.currentTokenCode();if(e.includes("_"))return this.tokens.replaceToken(e.replace(/_/g,"")),!0}return!1}}class _w extends Vt{constructor(e,n){super(),this.tokens=e,this.nameManager=n}process(){return this.tokens.matches2(o._catch,o.braceL)?(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0):!1}}class Pw extends Vt{constructor(e,n){super(),this.tokens=e,this.nameManager=n}process(){if(this.tokens.matches1(o.nullishCoalescing)){const s=this.tokens.currentToken();return this.tokens.tokens[s.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(o._delete)&&this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0;const n=this.tokens.currentToken().subscriptStartIndex;if(n!=null&&this.tokens.tokens[n].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==o._super){const s=this.nameManager.claimFreeName("_");let i;if(n>0&&this.tokens.matches1AtIndex(n-1,o._delete)&&this.isLastSubscriptInChain()?i=`${s} => delete ${s}`:i=`${s} => ${s}`,this.tokens.tokens[n].isAsyncOperation&&(i=`async ${i}`),this.tokens.matches2(o.questionDot,o.parenL)||this.tokens.matches2(o.questionDot,o.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${i}`);else if(this.tokens.matches2(o.questionDot,o.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${i}`);else if(this.tokens.matches1(o.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${i}.`);else if(this.tokens.matches1(o.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${i}.`);else if(this.tokens.matches1(o.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${i}[`);else if(this.tokens.matches1(o.parenL))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${i}(`);else throw new Error("Unexpected subscript operator in optional chain.");return!0}return!1}isLastSubscriptInChain(){let e=0;for(let n=this.tokens.currentIndex()+1;;n++){if(n>=this.tokens.tokens.length)throw new Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[n].isOptionalChainStart?e++:this.tokens.tokens[n].isOptionalChainEnd&&e--,e<0)return!0;if(e===0&&this.tokens.tokens[n].subscriptStartIndex!=null)return!1}}justSkippedSuper(){let e=0,n=this.tokens.currentIndex()-1;for(;;){if(n<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[n].isOptionalChainStart?e--:this.tokens.tokens[n].isOptionalChainEnd&&e++,e<0)return!1;if(e===0&&this.tokens.tokens[n].subscriptStartIndex!=null)return this.tokens.tokens[n-1].type===o._super;n--}}}class $w extends Vt{constructor(e,n,s,i){super(),this.rootTransformer=e,this.tokens=n,this.importProcessor=s,this.options=i}process(){const e=this.tokens.currentIndex();if(this.tokens.identifierName()==="createReactClass"){const n=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return n?this.tokens.replaceToken(`(0, ${n})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}if(this.tokens.matches3(o.name,o.dot,o.name)&&this.tokens.identifierName()==="React"&&this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)==="createClass"){const n=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return n?(this.tokens.replaceToken(n),this.tokens.copyToken(),this.tokens.copyToken()):(this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.copyToken()),this.tryProcessCreateClassCall(e),!0}return!1}tryProcessCreateClassCall(e){const n=this.findDisplayName(e);n&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(o.parenL),this.tokens.copyExpectedToken(o.braceL),this.tokens.appendCode(`displayName: '${n}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.braceR),this.tokens.copyExpectedToken(o.parenR))}findDisplayName(e){return e<2?null:this.tokens.matches2AtIndex(e-2,o.name,o.eq)?this.tokens.identifierNameAtIndex(e-2):e>=2&&this.tokens.tokens[e-2].identifierRole===ge.ObjectKey?this.tokens.identifierNameAtIndex(e-2):this.tokens.matches2AtIndex(e-2,o._export,o._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){const n=(this.options.filePath||"unknown").split("/"),s=n[n.length-1],i=s.lastIndexOf("."),r=i===-1?s:s.slice(0,i);return r==="index"&&n[n.length-2]?n[n.length-2]:r}classNeedsDisplayName(){let e=this.tokens.currentIndex();if(!this.tokens.matches2(o.parenL,o.braceL))return!1;const n=e+1,s=this.tokens.tokens[n].contextId;if(s==null)throw new Error("Expected non-null context ID on object open-brace.");for(;e<this.tokens.tokens.length;e++){const i=this.tokens.tokens[e];if(i.type===o.braceR&&i.contextId===s){e++;break}if(this.tokens.identifierNameAtIndex(e)==="displayName"&&this.tokens.tokens[e].identifierRole===ge.ObjectKey&&i.contextId===s)return!1}if(e===this.tokens.tokens.length)throw new Error("Unexpected end of input when processing React class.");return this.tokens.matches1AtIndex(e,o.parenR)||this.tokens.matches2AtIndex(e,o.comma,o.parenR)}}class $c extends Vt{__init(){this.extractedDefaultExportName=null}constructor(e,n){super(),this.tokens=e,this.filePath=n,$c.prototype.__init.call(this)}setExtractedDefaultExportName(e){this.extractedDefaultExportName=e}getPrefixCode(){return`
178
+ `:""}process(){return this.tokens.matches3(o._import,o.name,o.eq)?this.processImportEquals():this.tokens.matches1(o._import)?(this.processImport(),!0):this.tokens.matches2(o._export,o.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(o._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):this.tokens.matches2(o.name,o.postIncDec)&&this.processPostIncDec()?!0:this.tokens.matches1(o.name)||this.tokens.matches1(o.jsxName)?this.processIdentifier():this.tokens.matches1(o.eq)?this.processAssignment():this.tokens.matches1(o.assign)?this.processComplexAssignment():this.tokens.matches1(o.preIncDec)?this.processPreIncDec():!1}processImportEquals(){const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(e)?zf(this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(o._import,o.parenL)){if(this.preserveDynamicImport){this.tokens.copyToken();return}const n=this.enableLegacyTypeScriptModuleInterop?"":`${this.helperManager.getHelperName("interopRequireWildcard")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${n}require`);const s=this.tokens.currentToken().contextId;if(s==null)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(o.parenR,s);)this.rootTransformer.processToken();this.tokens.replaceToken(n?")))":"))");return}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{const n=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(n)),this.tokens.appendCode(this.importProcessor.claimImportCode(n))}hs(this.tokens),this.tokens.matches1(o.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(S._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,o.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,S._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(o.name)||this.tokens.matches1(o.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(o.string))return!1;let e=!1,n=!1;for(;!this.tokens.matches1(o.string);)(!e&&this.tokens.matches1(o.braceL)||this.tokens.matches1(o.comma))&&(this.tokens.removeToken(),this.tokens.matches1(o.braceR)||(n=!0),(this.tokens.matches2(o.name,o.comma)||this.tokens.matches2(o.name,o.braceR)||this.tokens.matches4(o.name,o.name,o.name,o.comma)||this.tokens.matches4(o.name,o.name,o.name,o.braceR))&&(e=!0)),this.tokens.removeToken();return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!e:this.isFlowTransformEnabled?n&&!e:!1}removeRemainingImport(){for(;!this.tokens.matches1(o.string);)this.tokens.removeToken()}processIdentifier(){const e=this.tokens.currentToken();if(e.shadowsGlobal)return!1;if(e.identifierRole===ge.ObjectShorthand)return this.processObjectShorthand();if(e.identifierRole!==ge.Access)return!1;const n=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(e));if(!n)return!1;let s=this.tokens.currentIndex()+1;for(;s<this.tokens.tokens.length&&this.tokens.tokens[s].type===o.parenR;)s++;return this.tokens.tokens[s].type===o.parenL?this.tokens.tokenAtRelativeIndex(1).type===o.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==o._new?(this.tokens.replaceToken(`${n}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR)):this.tokens.replaceToken(`(0, ${n})`):this.tokens.replaceToken(n),!0}processObjectShorthand(){const e=this.tokens.identifierName(),n=this.importProcessor.getIdentifierReplacement(e);return n?(this.tokens.replaceToken(`${e}: ${n}`),!0):!1}processExport(){if(this.tokens.matches2(o._export,o._enum)||this.tokens.matches3(o._export,o._const,o._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(o._export,o._default))return this.tokens.matches3(o._export,o._default,o._enum)?(this.hadDefaultExport=!0,!1):(this.processExportDefault(),!0);if(this.tokens.matches2(o._export,o.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(o._export,o.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,S._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(o.braceL)){for(;!this.tokens.matches1(o.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(o._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(S._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,o.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),hs(this.tokens)),!0}if(this.hadNamedExport=!0,this.tokens.matches2(o._export,o._var)||this.tokens.matches2(o._export,o._let)||this.tokens.matches2(o._export,o._const))return this.processExportVar(),!0;if(this.tokens.matches2(o._export,o._function)||this.tokens.matches3(o._export,o.name,o._function))return this.processExportFunction(),!0;if(this.tokens.matches2(o._export,o._class)||this.tokens.matches3(o._export,o._abstract,o._class)||this.tokens.matches2(o._export,o.at))return this.processExportClass(),!0;if(this.tokens.matches2(o._export,o.star))return this.processExportStar(),!0;throw new Error("Unrecognized export syntax.")}processAssignment(){const e=this.tokens.currentIndex(),n=this.tokens.tokens[e-1];if(n.isType||n.type!==o.name||n.shadowsGlobal||e>=2&&this.tokens.matches1AtIndex(e-2,o.dot)||e>=2&&[o._var,o._let,o._const].includes(this.tokens.tokens[e-2].type))return!1;const s=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(n));return s?(this.tokens.copyToken(),this.tokens.appendCode(` ${s} =`),!0):!1}processComplexAssignment(){const e=this.tokens.currentIndex(),n=this.tokens.tokens[e-1];if(n.type!==o.name||n.shadowsGlobal||e>=2&&this.tokens.matches1AtIndex(e-2,o.dot))return!1;const s=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(n));return s?(this.tokens.appendCode(` = ${s}`),this.tokens.copyToken(),!0):!1}processPreIncDec(){const e=this.tokens.currentIndex(),n=this.tokens.tokens[e+1];if(n.type!==o.name||n.shadowsGlobal||e+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(e+2,o.dot)||this.tokens.matches1AtIndex(e+2,o.bracketL)||this.tokens.matches1AtIndex(e+2,o.parenL)))return!1;const s=this.tokens.identifierNameForToken(n),r=this.importProcessor.resolveExportBinding(s);return r?(this.tokens.appendCode(`${r} = `),this.tokens.copyToken(),!0):!1}processPostIncDec(){const e=this.tokens.currentIndex(),n=this.tokens.tokens[e],s=this.tokens.tokens[e+1];if(n.type!==o.name||n.shadowsGlobal||e>=1&&this.tokens.matches1AtIndex(e-1,o.dot))return!1;const r=this.tokens.identifierNameForToken(n),i=this.importProcessor.resolveExportBinding(r);if(!i)return!1;const a=this.tokens.rawCodeForToken(s),l=this.importProcessor.getIdentifierReplacement(r)||r;if(a==="++")this.tokens.replaceToken(`(${l} = ${i} = ${l} + 1, ${l} - 1)`);else if(a==="--")this.tokens.replaceToken(`(${l} = ${i} = ${l} - 1, ${l} + 1)`);else throw new Error(`Unexpected operator: ${a}`);return this.tokens.removeToken(),!0}processExportDefault(){let e=!0;if(this.tokens.matches4(o._export,o._default,o._function,o.name)||this.tokens.matches5(o._export,o._default,o.name,o._function,o.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,S._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();const n=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${n};`)}else if(this.tokens.matches4(o._export,o._default,o._class,o.name)||this.tokens.matches5(o._export,o._default,o._abstract,o._class,o.name)||this.tokens.matches3(o._export,o._default,o.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(o._abstract)&&this.tokens.removeToken();const n=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${n};`)}else if(Hf(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))e=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){const n=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${n}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${n} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(n)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");e&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(o.at);)if(this.tokens.copyToken(),this.tokens.matches1(o.parenL))this.tokens.copyExpectedToken(o.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR);else{for(this.tokens.copyExpectedToken(o.name);this.tokens.matches1(o.dot);)this.tokens.copyExpectedToken(o.dot),this.tokens.copyExpectedToken(o.name);this.tokens.matches1(o.parenL)&&(this.tokens.copyExpectedToken(o.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let e=this.tokens.currentIndex();if(e++,e++,!this.tokens.matches1AtIndex(e,o.name))return!1;for(e++;e<this.tokens.tokens.length&&this.tokens.tokens[e].isType;)e++;return!!this.tokens.matches1AtIndex(e,o.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();const e=this.tokens.identifierName();for(;!this.tokens.matches1(o.eq);)this.rootTransformer.processToken();const n=this.tokens.currentToken().rhsEndIndex;if(n==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<n;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${e} = ${e}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.tokens.matches1(o.braceL);e&&this.tokens.appendCode("(");let n=0;for(;;)if(this.tokens.matches1(o.braceL)||this.tokens.matches1(o.dollarBraceL)||this.tokens.matches1(o.bracketL))n++,this.tokens.copyToken();else if(this.tokens.matches1(o.braceR)||this.tokens.matches1(o.bracketR))n--,this.tokens.copyToken();else{if(n===0&&!this.tokens.matches1(o.name)&&!this.tokens.currentToken().isType)break;if(this.tokens.matches1(o.eq)){const s=this.tokens.currentToken().rhsEndIndex;if(s==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<s;)this.rootTransformer.processToken()}else{const s=this.tokens.currentToken();if(g1(s)){const r=this.tokens.identifierName();let i=this.importProcessor.getIdentifierReplacement(r);if(i===null)throw new Error(`Expected a replacement for ${r} in \`export var\` syntax.`);Yb(s)&&(i=`${r}: ${i}`),this.tokens.replaceToken(i)}else this.rootTransformer.processToken()}}if(e){const s=this.tokens.currentToken().rhsEndIndex;if(s==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<s;)this.rootTransformer.processToken();this.tokens.appendCode(")")}}processExportFunction(){this.tokens.replaceToken("");const e=this.processNamedFunction();this.tokens.appendCode(` exports.${e} = ${e};`)}processNamedFunction(){if(this.tokens.matches1(o._function))this.tokens.copyToken();else if(this.tokens.matches2(o.name,o._function)){if(!this.tokens.matchesContextual(S._async))throw new Error("Expected async keyword in function export.");this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(o.star)&&this.tokens.copyToken(),!this.tokens.matches1(o.name))throw new Error("Expected identifier for exported function name.");const e=this.tokens.identifierName();if(this.tokens.copyToken(),this.tokens.currentToken().isType)for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return this.tokens.copyExpectedToken(o.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(o.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.braceR),e}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(o._abstract)&&this.tokens.removeToken();const e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${e} = ${e};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=qf(this.tokens),n=[];for(;;){if(this.tokens.matches1(o.braceR)){this.tokens.removeToken();break}const s=Dr(this.tokens);for(;this.tokens.currentIndex()<s.endIndex;)this.tokens.removeToken();if(!(s.isType||!e&&this.shouldElideExportedIdentifier(s.leftName))){const i=s.rightName;i==="default"?this.hadDefaultExport=!0:this.hadNamedExport=!0;const a=s.leftName,l=this.importProcessor.getIdentifierReplacement(a);n.push(`exports.${i} = ${l||a};`)}if(this.tokens.matches1(o.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(o.comma,o.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}else if(this.tokens.matches1(o.comma))this.tokens.removeToken();else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`)}if(this.tokens.matchesContextual(S._from)){this.tokens.removeToken();const s=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(s)),hs(this.tokens)}else this.tokens.appendCode(n.join(" "));this.tokens.matches1(o.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(o.string);)this.tokens.removeToken();const e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),hs(this.tokens),this.tokens.matches1(o.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.declarationInfo.valueDeclarations.has(e)}}class Sw extends Vt{constructor(e,n,s,r,i,a,l,c){super(),this.tokens=e,this.nameManager=n,this.helperManager=s,this.reactHotLoaderTransformer=r,this.isTypeScriptTransformEnabled=i,this.isFlowTransformEnabled=a,this.keepUnusedImports=l,this.nonTypeIdentifiers=i&&!l?R1(e,c):new Set,this.declarationInfo=i&&!l?Uf(e):Vf,this.injectCreateRequireForImportRequire=!!c.injectCreateRequireForImportRequire}process(){if(this.tokens.matches3(o._import,o.name,o.eq))return this.processImportEquals();if(this.tokens.matches4(o._import,o.name,o.name,o.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,S._type)){this.tokens.removeInitialToken();for(let e=0;e<7;e++)this.tokens.removeToken();return!0}if(this.tokens.matches2(o._export,o.eq))return this.tokens.replaceToken("module.exports"),!0;if(this.tokens.matches5(o._export,o._import,o.name,o.name,o.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,S._type)){this.tokens.removeInitialToken();for(let e=0;e<8;e++)this.tokens.removeToken();return!0}if(this.tokens.matches1(o._import))return this.processImport();if(this.tokens.matches2(o._export,o._default))return this.processExportDefault();if(this.tokens.matches2(o._export,o.braceL))return this.processNamedExports();if(this.tokens.matches2(o._export,o.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,S._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(o.braceL)){for(;!this.tokens.matches1(o.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(o._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(S._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,o.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),hs(this.tokens)),!0}return!1}processImportEquals(){const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.shouldAutomaticallyElideImportedName(e)?zf(this.tokens):this.injectCreateRequireForImportRequire?(this.tokens.replaceToken("const"),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.replaceToken(this.helperManager.getHelperName("require"))):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(o._import,o.parenL))return!1;const e=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(e);!this.tokens.matches1(o.string);)this.tokens.removeToken();this.tokens.removeToken(),hs(this.tokens),this.tokens.matches1(o.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(o._import),this.tokens.matchesContextual(S._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,o.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,S._from))return!0;if(this.tokens.matches1(o.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(S._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,S._from)&&this.tokens.copyToken();let e=!1,n=!1,s=!1;if(this.tokens.matches1(o.name)&&(this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(o.comma)&&this.tokens.removeToken()):(e=!0,this.tokens.copyToken(),this.tokens.matches1(o.comma)&&(s=!0,this.tokens.removeToken()))),this.tokens.matches1(o.star))this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(s&&this.tokens.appendCode(","),e=!0,this.tokens.copyExpectedToken(o.star),this.tokens.copyExpectedToken(o.name),this.tokens.copyExpectedToken(o.name));else if(this.tokens.matches1(o.braceL)){for(s&&this.tokens.appendCode(","),this.tokens.copyToken();!this.tokens.matches1(o.braceR);){n=!0;const r=Dr(this.tokens);if(r.isType||this.shouldAutomaticallyElideImportedName(r.rightName)){for(;this.tokens.currentIndex()<r.endIndex;)this.tokens.removeToken();this.tokens.matches1(o.comma)&&this.tokens.removeToken()}else{for(e=!0;this.tokens.currentIndex()<r.endIndex;)this.tokens.copyToken();this.tokens.matches1(o.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(o.braceR)}return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!e:this.isFlowTransformEnabled?n&&!e:!1}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}processExportDefault(){if(Hf(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(o._export,o._default,o._function,o.name)||this.tokens.matches5(o._export,o._default,o.name,o._function,o.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,S._async)||this.tokens.matches4(o._export,o._default,o._class,o.name)||this.tokens.matches5(o._export,o._default,o._abstract,o._class,o.name))&&this.reactHotLoaderTransformer){const n=this.nameManager.claimFreeName("_default");return this.tokens.replaceToken(`let ${n}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${n} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(n),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;this.tokens.copyExpectedToken(o._export),this.tokens.copyExpectedToken(o.braceL);const e=qf(this.tokens);let n=!1;for(;!this.tokens.matches1(o.braceR);){const s=Dr(this.tokens);if(s.isType||!e&&this.shouldElideExportedName(s.leftName)){for(;this.tokens.currentIndex()<s.endIndex;)this.tokens.removeToken();this.tokens.matches1(o.comma)&&this.tokens.removeToken()}else{for(n=!0;this.tokens.currentIndex()<s.endIndex;)this.tokens.copyToken();this.tokens.matches1(o.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(o.braceR),!this.keepUnusedImports&&e&&!n&&(this.tokens.removeToken(),this.tokens.removeToken(),hs(this.tokens)),!0}shouldElideExportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&this.declarationInfo.typeDeclarations.has(e)&&!this.declarationInfo.valueDeclarations.has(e)}}class Iw extends Vt{constructor(e,n,s){super(),this.rootTransformer=e,this.tokens=n,this.isImportsTransformEnabled=s}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(o._enum)?(this.processEnum(),!0):this.tokens.matches2(o._export,o._enum)?(this.processNamedExportEnum(),!0):this.tokens.matches3(o._export,o._default,o._enum)?(this.processDefaultExportEnum(),!0):!1}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();const e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${e} = ${e};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${e};`):this.tokens.appendCode(` export default ${e};`)}processEnum(){this.tokens.replaceToken("const"),this.tokens.copyExpectedToken(o.name);let e=!1;this.tokens.matchesContextual(S._of)&&(this.tokens.removeToken(),e=this.tokens.matchesContextual(S._symbol),this.tokens.removeToken());const n=this.tokens.matches3(o.braceL,o.name,o.eq);this.tokens.appendCode(' = require("flow-enums-runtime")');const s=!e&&!n;for(this.tokens.replaceTokenTrimmingLeftWhitespace(s?".Mirrored([":"({");!this.tokens.matches1(o.braceR);){if(this.tokens.matches1(o.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(e,n),this.tokens.matches1(o.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(s?"]);":"});")}processEnumElement(e,n){if(e){const s=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol("${s}")`)}else n?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(":"),this.tokens.copyToken()):this.tokens.replaceToken(`"${this.tokens.identifierName()}"`)}}function vw(t){let e,n=t[0],s=1;for(;s<t.length;){const r=t[s],i=t[s+1];if(s+=2,(r==="optionalAccess"||r==="optionalCall")&&n==null)return;r==="access"||r==="optionalAccess"?(e=n,n=i(n)):(r==="call"||r==="optionalCall")&&(n=i((...a)=>n.call(e,...a)),e=void 0)}return n}const Go="jest",_w=["mock","unmock","enableAutomock","disableAutomock"];class Pc extends Vt{__init(){this.hoistedFunctionNames=[]}constructor(e,n,s,r){super(),this.rootTransformer=e,this.tokens=n,this.nameManager=s,this.importProcessor=r,Pc.prototype.__init.call(this)}process(){return this.tokens.currentToken().scopeDepth===0&&this.tokens.matches4(o.name,o.dot,o.name,o.parenL)&&this.tokens.identifierName()===Go?vw([this,"access",e=>e.importProcessor,"optionalAccess",e=>e.getGlobalNames,"call",e=>e(),"optionalAccess",e=>e.has,"call",e=>e(Go)])?!1:this.extractHoistedCalls():!1}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map(e=>`${e}();`).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let e=!1;for(;this.tokens.matches3(o.dot,o.name,o.parenL);){const n=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(_w.includes(n)){const r=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(r),this.tokens.replaceToken(`function ${r}(){${Go}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR),this.tokens.appendCode(";}"),e=!1}else e?this.tokens.copyToken():this.tokens.replaceToken(`${Go}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR),e=!0}return!0}}class Pw extends Vt{constructor(e){super(),this.tokens=e}process(){if(this.tokens.matches1(o.num)){const e=this.tokens.currentTokenCode();if(e.includes("_"))return this.tokens.replaceToken(e.replace(/_/g,"")),!0}return!1}}class $w extends Vt{constructor(e,n){super(),this.tokens=e,this.nameManager=n}process(){return this.tokens.matches2(o._catch,o.braceL)?(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0):!1}}class Nw extends Vt{constructor(e,n){super(),this.tokens=e,this.nameManager=n}process(){if(this.tokens.matches1(o.nullishCoalescing)){const s=this.tokens.currentToken();return this.tokens.tokens[s.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(o._delete)&&this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0;const n=this.tokens.currentToken().subscriptStartIndex;if(n!=null&&this.tokens.tokens[n].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==o._super){const s=this.nameManager.claimFreeName("_");let r;if(n>0&&this.tokens.matches1AtIndex(n-1,o._delete)&&this.isLastSubscriptInChain()?r=`${s} => delete ${s}`:r=`${s} => ${s}`,this.tokens.tokens[n].isAsyncOperation&&(r=`async ${r}`),this.tokens.matches2(o.questionDot,o.parenL)||this.tokens.matches2(o.questionDot,o.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${r}`);else if(this.tokens.matches2(o.questionDot,o.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${r}`);else if(this.tokens.matches1(o.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${r}.`);else if(this.tokens.matches1(o.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${r}.`);else if(this.tokens.matches1(o.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${r}[`);else if(this.tokens.matches1(o.parenL))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${r}(`);else throw new Error("Unexpected subscript operator in optional chain.");return!0}return!1}isLastSubscriptInChain(){let e=0;for(let n=this.tokens.currentIndex()+1;;n++){if(n>=this.tokens.tokens.length)throw new Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[n].isOptionalChainStart?e++:this.tokens.tokens[n].isOptionalChainEnd&&e--,e<0)return!0;if(e===0&&this.tokens.tokens[n].subscriptStartIndex!=null)return!1}}justSkippedSuper(){let e=0,n=this.tokens.currentIndex()-1;for(;;){if(n<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[n].isOptionalChainStart?e--:this.tokens.tokens[n].isOptionalChainEnd&&e++,e<0)return!1;if(e===0&&this.tokens.tokens[n].subscriptStartIndex!=null)return this.tokens.tokens[n-1].type===o._super;n--}}}class Cw extends Vt{constructor(e,n,s,r){super(),this.rootTransformer=e,this.tokens=n,this.importProcessor=s,this.options=r}process(){const e=this.tokens.currentIndex();if(this.tokens.identifierName()==="createReactClass"){const n=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return n?this.tokens.replaceToken(`(0, ${n})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}if(this.tokens.matches3(o.name,o.dot,o.name)&&this.tokens.identifierName()==="React"&&this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)==="createClass"){const n=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return n?(this.tokens.replaceToken(n),this.tokens.copyToken(),this.tokens.copyToken()):(this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.copyToken()),this.tryProcessCreateClassCall(e),!0}return!1}tryProcessCreateClassCall(e){const n=this.findDisplayName(e);n&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(o.parenL),this.tokens.copyExpectedToken(o.braceL),this.tokens.appendCode(`displayName: '${n}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.braceR),this.tokens.copyExpectedToken(o.parenR))}findDisplayName(e){return e<2?null:this.tokens.matches2AtIndex(e-2,o.name,o.eq)?this.tokens.identifierNameAtIndex(e-2):e>=2&&this.tokens.tokens[e-2].identifierRole===ge.ObjectKey?this.tokens.identifierNameAtIndex(e-2):this.tokens.matches2AtIndex(e-2,o._export,o._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){const n=(this.options.filePath||"unknown").split("/"),s=n[n.length-1],r=s.lastIndexOf("."),i=r===-1?s:s.slice(0,r);return i==="index"&&n[n.length-2]?n[n.length-2]:i}classNeedsDisplayName(){let e=this.tokens.currentIndex();if(!this.tokens.matches2(o.parenL,o.braceL))return!1;const n=e+1,s=this.tokens.tokens[n].contextId;if(s==null)throw new Error("Expected non-null context ID on object open-brace.");for(;e<this.tokens.tokens.length;e++){const r=this.tokens.tokens[e];if(r.type===o.braceR&&r.contextId===s){e++;break}if(this.tokens.identifierNameAtIndex(e)==="displayName"&&this.tokens.tokens[e].identifierRole===ge.ObjectKey&&r.contextId===s)return!1}if(e===this.tokens.tokens.length)throw new Error("Unexpected end of input when processing React class.");return this.tokens.matches1AtIndex(e,o.parenR)||this.tokens.matches2AtIndex(e,o.comma,o.parenR)}}class $c extends Vt{__init(){this.extractedDefaultExportName=null}constructor(e,n){super(),this.tokens=e,this.filePath=n,$c.prototype.__init.call(this)}setExtractedDefaultExportName(e){this.extractedDefaultExportName=e}getPrefixCode(){return`
179
179
  (function () {
180
180
  var enterModule = require('react-hot-loader').enterModule;
181
181
  enterModule && enterModule(module);
182
- })();`.replace(/\s+/g," ").trim()}getSuffixCode(){const e=new Set;for(const s of this.tokens.tokens)!s.isType&&m1(s)&&s.identifierRole!==ge.ImportDeclaration&&e.add(this.tokens.identifierNameForToken(s));const n=Array.from(e).map(s=>({variableName:s,uniqueLocalName:s}));return this.extractedDefaultExportName&&n.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"}),`
182
+ })();`.replace(/\s+/g," ").trim()}getSuffixCode(){const e=new Set;for(const s of this.tokens.tokens)!s.isType&&y1(s)&&s.identifierRole!==ge.ImportDeclaration&&e.add(this.tokens.identifierNameForToken(s));const n=Array.from(e).map(s=>({variableName:s,uniqueLocalName:s}));return this.extractedDefaultExportName&&n.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"}),`
183
183
  ;(function () {
184
184
  var reactHotLoader = require('react-hot-loader').default;
185
185
  var leaveModule = require('react-hot-loader').leaveModule;
186
186
  if (!reactHotLoader) {
187
187
  return;
188
188
  }
189
- ${n.map(({variableName:s,uniqueLocalName:i})=>` reactHotLoader.register(${s}, "${i}", ${JSON.stringify(this.filePath||"")});`).join(`
189
+ ${n.map(({variableName:s,uniqueLocalName:r})=>` reactHotLoader.register(${s}, "${r}", ${JSON.stringify(this.filePath||"")});`).join(`
190
190
  `)}
191
191
  leaveModule(module);
192
- })();`}process(){return!1}}const Nw=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","await","false","null","true"]);function qf(t){if(t.length===0||!Ni[t.charCodeAt(0)])return!1;for(let e=1;e<t.length;e++)if(!jt[t.charCodeAt(e)])return!1;return!Nw.has(t)}class Cw extends Vt{constructor(e,n,s){super(),this.rootTransformer=e,this.tokens=n,this.isImportsTransformEnabled=s}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(o._public)||this.tokens.matches1(o._protected)||this.tokens.matches1(o._private)||this.tokens.matches1(o._abstract)||this.tokens.matches1(o._readonly)||this.tokens.matches1(o._override)||this.tokens.matches1(o.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(o._enum)||this.tokens.matches2(o._const,o._enum)?(this.processEnum(),!0):this.tokens.matches2(o._export,o._enum)||this.tokens.matches3(o._export,o._const,o._enum)?(this.processEnum(!0),!0):!1}processEnum(e=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(o._const)||this.tokens.matches1(o._enum);)this.tokens.removeToken();const n=this.tokens.identifierName();this.tokens.removeToken(),e&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode(`var ${n}; (function (${n})`),this.tokens.copyExpectedToken(o.braceL),this.processEnumBody(n),this.tokens.copyExpectedToken(o.braceR),e&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${n} || (exports.${n} = ${n} = {}));`):this.tokens.appendCode(`)(${n} || (${n} = {}));`)}processEnumBody(e){let n=null;for(;!this.tokens.matches1(o.braceR);){const{nameStringCode:s,variableName:i}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(o.eq,o.string,o.comma)||this.tokens.matches3(o.eq,o.string,o.braceR)?this.processStringLiteralEnumMember(e,s,i):this.tokens.matches1(o.eq)?this.processExplicitValueEnumMember(e,s,i):this.processImplicitValueEnumMember(e,s,i,n),this.tokens.matches1(o.comma)&&this.tokens.removeToken(),i!=null?n=i:n=`${e}[${s}]`}}extractEnumKeyInfo(e){if(e.type===o.name){const n=this.tokens.identifierNameForToken(e);return{nameStringCode:`"${n}"`,variableName:qf(n)?n:null}}else if(e.type===o.string){const n=this.tokens.stringValueForToken(e);return{nameStringCode:this.tokens.code.slice(e.start,e.end),variableName:qf(n)?n:null}}else throw new Error("Expected name or string at beginning of enum element.")}processStringLiteralEnumMember(e,n,s){s!=null?(this.tokens.appendCode(`const ${s}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${e}[${n}] = ${s};`)):(this.tokens.appendCode(`${e}[${n}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}processExplicitValueEnumMember(e,n,s){const i=this.tokens.currentToken().rhsEndIndex;if(i==null)throw new Error("Expected rhsEndIndex on enum assign.");if(s!=null){for(this.tokens.appendCode(`const ${s}`),this.tokens.copyToken();this.tokens.currentIndex()<i;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${e}[${e}[${n}] = ${s}] = ${n};`)}else{for(this.tokens.appendCode(`${e}[${e}[${n}]`),this.tokens.copyToken();this.tokens.currentIndex()<i;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${n};`)}}processImplicitValueEnumMember(e,n,s,i){let r=i!=null?`${i} + 1`:"0";s!=null&&(this.tokens.appendCode(`const ${s} = ${r}; `),r=s),this.tokens.appendCode(`${e}[${e}[${n}] = ${r}] = ${n};`)}}class Wo{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(e,n,s,i){Wo.prototype.__init.call(this),Wo.prototype.__init2.call(this),this.nameManager=e.nameManager,this.helperManager=e.helperManager;const{tokenProcessor:r,importProcessor:a}=e;this.tokens=r,this.isImportsTransformEnabled=n.includes("imports"),this.isReactHotLoaderTransformEnabled=n.includes("react-hot-loader"),this.disableESTransforms=!!i.disableESTransforms,i.disableESTransforms||(this.transformers.push(new Pw(r,this.nameManager)),this.transformers.push(new vw(r)),this.transformers.push(new _w(r,this.nameManager))),n.includes("jsx")&&(i.jsxRuntime!=="preserve"&&this.transformers.push(new ss(this,r,a,this.nameManager,i)),this.transformers.push(new $w(this,r,a,i)));let l=null;if(n.includes("react-hot-loader")){if(!i.filePath)throw new Error("filePath is required when using the react-hot-loader transform.");l=new $c(r,i.filePath),this.transformers.push(l)}if(n.includes("imports")){if(a===null)throw new Error("Expected non-null importProcessor with imports transform enabled.");this.transformers.push(new Wi(this,r,a,this.nameManager,this.helperManager,l,s,!!i.enableLegacyTypeScriptModuleInterop,n.includes("typescript"),n.includes("flow"),!!i.preserveDynamicImport,!!i.keepUnusedImports))}else this.transformers.push(new Aw(r,this.nameManager,this.helperManager,l,n.includes("typescript"),n.includes("flow"),!!i.keepUnusedImports,i));n.includes("flow")&&this.transformers.push(new ww(this,r,n.includes("imports"))),n.includes("typescript")&&this.transformers.push(new Cw(this,r,n.includes("imports"))),n.includes("jest")&&this.transformers.push(new Pc(this,r,this.nameManager,a))}transform(){this.tokens.reset(),this.processBalancedCode();let n=this.isImportsTransformEnabled?'"use strict";':"";for(const a of this.transformers)n+=a.getPrefixCode();n+=this.helperManager.emitHelpers(),n+=this.generatedVariables.map(a=>` var ${a};`).join("");for(const a of this.transformers)n+=a.getHoistedCode();let s="";for(const a of this.transformers)s+=a.getSuffixCode();const i=this.tokens.finish();let{code:r}=i;if(r.startsWith("#!")){let a=r.indexOf(`
193
- `);return a===-1&&(a=r.length,r+=`
194
- `),{code:r.slice(0,a+1)+n+r.slice(a+1)+s,mappings:this.shiftMappings(i.mappings,n.length)}}else return{code:n+r+s,mappings:this.shiftMappings(i.mappings,n.length)}}processBalancedCode(){let e=0,n=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(o.braceL)||this.tokens.matches1(o.dollarBraceL))e++;else if(this.tokens.matches1(o.braceR)){if(e===0)return;e--}if(this.tokens.matches1(o.parenL))n++;else if(this.tokens.matches1(o.parenR)){if(n===0)return;n--}this.processToken()}}processToken(){if(this.tokens.matches1(o._class)){this.processClass();return}for(const e of this.transformers)if(e.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(o._class,o.name))throw new Error("Expected identifier for exported class name.");const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),e}processClass(){const e=xw(this,this.tokens,this.nameManager,this.disableESTransforms),n=(e.headerInfo.isExpression||!e.headerInfo.className)&&e.staticInitializerNames.length+e.instanceInitializerNames.length>0;let s=e.headerInfo.className;n&&(s=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(s),this.tokens.appendCode(` (${s} =`));const r=this.tokens.currentToken().contextId;if(r==null)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(o._class);!this.tokens.matchesContextIdAndLabel(o.braceL,r);)this.processToken();this.processClassBody(e,s);const a=e.staticInitializerNames.map(l=>`${s}.${l}()`);n?this.tokens.appendCode(`, ${a.map(l=>`${l}, `).join("")}${s})`):e.staticInitializerNames.length>0&&this.tokens.appendCode(` ${a.map(l=>`${l};`).join(" ")}`)}processClassBody(e,n){const{headerInfo:s,constructorInsertPos:i,constructorInitializerStatements:r,fields:a,instanceInitializerNames:l,rangesToRemove:c}=e;let u=0,d=0;const m=this.tokens.currentToken().contextId;if(m==null)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(o.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const f=r.length+l.length>0;if(i===null&&f){const g=this.makeConstructorInitCode(r,l,n);if(s.hasSuperclass){const E=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${E}) { super(...${E}); ${g}; }`)}else this.tokens.appendCode(`constructor() { ${g}; }`)}for(;!this.tokens.matchesContextIdAndLabel(o.braceR,m);)if(u<a.length&&this.tokens.currentIndex()===a[u].start){let g=!1;for(this.tokens.matches1(o.bracketL)?this.tokens.copyTokenWithPrefix(`${a[u].initializerName}() {this`):this.tokens.matches1(o.string)||this.tokens.matches1(o.num)?(this.tokens.copyTokenWithPrefix(`${a[u].initializerName}() {this[`),g=!0):this.tokens.copyTokenWithPrefix(`${a[u].initializerName}() {this.`);this.tokens.currentIndex()<a[u].end;)g&&this.tokens.currentIndex()===a[u].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),u++}else if(d<c.length&&this.tokens.currentIndex()>=c[d].start){for(this.tokens.currentIndex()<c[d].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<c[d].end;)this.tokens.removeToken();d++}else this.tokens.currentIndex()===i?(this.tokens.copyToken(),f&&this.tokens.appendCode(`;${this.makeConstructorInitCode(r,l,n)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(o.braceR)}makeConstructorInitCode(e,n,s){return[...e,...n.map(i=>`${s}.prototype.${i}.call(this)`)].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(o.parenR,o.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType;)e++;if(this.tokens.matches1AtIndex(e,o.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<e;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(S._async)&&!this.tokens.matches1(o._async))return!1;const e=this.tokens.tokenAtRelativeIndex(1);if(e.type!==o.lessThan||!e.isType)return!1;let n=this.tokens.currentIndex()+1;for(;this.tokens.tokens[n].isType;)n++;if(this.tokens.matches1AtIndex(n,o.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()<n;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(e,n){for(let s=0;s<e.length;s++){const i=e[s];i!==void 0&&(e[s]=i+n)}return e}}var Nc={},Hf;function Tw(){return Hf||(Hf=1,function(t){t.__esModule=!0,t.LinesAndColumns=void 0;var e=`
195
- `,n="\r",s=function(){function i(r){this.string=r;for(var a=[0],l=0;l<r.length;)switch(r[l]){case e:l+=e.length,a.push(l);break;case n:l+=n.length,r[l]===e&&(l+=e.length),a.push(l);break;default:l++;break}this.offsets=a}return i.prototype.locationForIndex=function(r){if(r<0||r>this.string.length)return null;for(var a=0,l=this.offsets;l[a+1]<=r;)a++;var c=r-l[a];return{line:a,column:c}},i.prototype.indexForLocation=function(r){var a=r.line,l=r.column;return a<0||a>=this.offsets.length||l<0||l>this.lengthOfLine(a)?null:this.offsets[a]+l},i.prototype.lengthOfLine=function(r){var a=this.offsets[r],l=r===this.offsets.length-1?this.string.length:this.offsets[r+1];return l-a},i}();t.LinesAndColumns=s,t.default=s}(Nc)),Nc}Tw();function Rw(t){const e=new Set;for(let n=0;n<t.tokens.length;n++)t.matches1AtIndex(n,o._import)&&!t.matches3AtIndex(n,o._import,o.name,o.eq)&&Dw(t,n,e);return e}function Dw(t,e,n){e++,!t.matches1AtIndex(e,o.parenL)&&(t.matches1AtIndex(e,o.name)&&(n.add(t.identifierNameAtIndex(e)),e++,t.matches1AtIndex(e,o.comma)&&e++),t.matches1AtIndex(e,o.star)&&(e+=2,n.add(t.identifierNameAtIndex(e)),e++),t.matches1AtIndex(e,o.braceL)&&(e++,Ow(t,e,n)))}function Ow(t,e,n){for(;;){if(t.matches1AtIndex(e,o.braceR))return;const s=Ti(t,e);if(e=s.endIndex,s.isType||n.add(s.rightName),t.matches2AtIndex(e,o.comma,o.braceR))return;if(t.matches1AtIndex(e,o.braceR))return;if(t.matches1AtIndex(e,o.comma))e++;else throw new Error(`Unexpected token: ${JSON.stringify(t.tokens[e])}`)}}function Lw(t,e){Qx(e);try{const n=Mw(t,e),i=new Wo(n,e.transforms,!!e.enableLegacyBabel5ModuleInterop,e).transform();let r={code:i.code};if(e.sourceMapOptions){if(!e.filePath)throw new Error("filePath must be specified when generating a source map.");r={...r,sourceMap:jx(i,e.filePath,e.sourceMapOptions,t,n.tokenProcessor.tokens)}}return r}catch(n){throw e.filePath&&(n.message=`Error transforming ${e.filePath}: ${n.message}`),n}}function Mw(t,e){const n=e.transforms.includes("jsx"),s=e.transforms.includes("typescript"),i=e.transforms.includes("flow"),r=e.disableESTransforms===!0,a=yw(t,n,s,i),l=a.tokens,c=a.scopes,u=new ql(t,l),d=new Po(u),m=new Gi(t,l,i,r,d),f=!!e.enableLegacyTypeScriptModuleInterop;let g=null;return e.transforms.includes("imports")?(g=new is(u,m,f,e,e.transforms.includes("typescript"),!!e.keepUnusedImports,d),g.preprocessTokens(),L1(m,c,g.getGlobalNames()),e.transforms.includes("typescript")&&!e.keepUnusedImports&&g.pruneTypeOnlyImports()):e.transforms.includes("typescript")&&!e.keepUnusedImports&&L1(m,c,Rw(m)),{tokenProcessor:m,scopes:c,nameManager:u,importProcessor:g,helperManager:d}}function Fw(t){return t=t.replace(/<link.*?href=["']\/\/.*?["'].*?>/g,e=>e.replace("//","https://")),t=t.replace(/<script.*?src=["']\/\/.*?["'].*?>/g,e=>e.replace("//","https://")),t}function Bw(t,e){return`<script>
192
+ })();`}process(){return!1}}const Tw=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","await","false","null","true"]);function Gf(t){if(t.length===0||!Tr[t.charCodeAt(0)])return!1;for(let e=1;e<t.length;e++)if(!jt[t.charCodeAt(e)])return!1;return!Tw.has(t)}class Rw extends Vt{constructor(e,n,s){super(),this.rootTransformer=e,this.tokens=n,this.isImportsTransformEnabled=s}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(o._public)||this.tokens.matches1(o._protected)||this.tokens.matches1(o._private)||this.tokens.matches1(o._abstract)||this.tokens.matches1(o._readonly)||this.tokens.matches1(o._override)||this.tokens.matches1(o.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(o._enum)||this.tokens.matches2(o._const,o._enum)?(this.processEnum(),!0):this.tokens.matches2(o._export,o._enum)||this.tokens.matches3(o._export,o._const,o._enum)?(this.processEnum(!0),!0):!1}processEnum(e=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(o._const)||this.tokens.matches1(o._enum);)this.tokens.removeToken();const n=this.tokens.identifierName();this.tokens.removeToken(),e&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode(`var ${n}; (function (${n})`),this.tokens.copyExpectedToken(o.braceL),this.processEnumBody(n),this.tokens.copyExpectedToken(o.braceR),e&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${n} || (exports.${n} = ${n} = {}));`):this.tokens.appendCode(`)(${n} || (${n} = {}));`)}processEnumBody(e){let n=null;for(;!this.tokens.matches1(o.braceR);){const{nameStringCode:s,variableName:r}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(o.eq,o.string,o.comma)||this.tokens.matches3(o.eq,o.string,o.braceR)?this.processStringLiteralEnumMember(e,s,r):this.tokens.matches1(o.eq)?this.processExplicitValueEnumMember(e,s,r):this.processImplicitValueEnumMember(e,s,r,n),this.tokens.matches1(o.comma)&&this.tokens.removeToken(),r!=null?n=r:n=`${e}[${s}]`}}extractEnumKeyInfo(e){if(e.type===o.name){const n=this.tokens.identifierNameForToken(e);return{nameStringCode:`"${n}"`,variableName:Gf(n)?n:null}}else if(e.type===o.string){const n=this.tokens.stringValueForToken(e);return{nameStringCode:this.tokens.code.slice(e.start,e.end),variableName:Gf(n)?n:null}}else throw new Error("Expected name or string at beginning of enum element.")}processStringLiteralEnumMember(e,n,s){s!=null?(this.tokens.appendCode(`const ${s}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${e}[${n}] = ${s};`)):(this.tokens.appendCode(`${e}[${n}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}processExplicitValueEnumMember(e,n,s){const r=this.tokens.currentToken().rhsEndIndex;if(r==null)throw new Error("Expected rhsEndIndex on enum assign.");if(s!=null){for(this.tokens.appendCode(`const ${s}`),this.tokens.copyToken();this.tokens.currentIndex()<r;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${e}[${e}[${n}] = ${s}] = ${n};`)}else{for(this.tokens.appendCode(`${e}[${e}[${n}]`),this.tokens.copyToken();this.tokens.currentIndex()<r;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${n};`)}}processImplicitValueEnumMember(e,n,s,r){let i=r!=null?`${r} + 1`:"0";s!=null&&(this.tokens.appendCode(`const ${s} = ${i}; `),i=s),this.tokens.appendCode(`${e}[${e}[${n}] = ${i}] = ${n};`)}}class Wo{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(e,n,s,r){Wo.prototype.__init.call(this),Wo.prototype.__init2.call(this),this.nameManager=e.nameManager,this.helperManager=e.helperManager;const{tokenProcessor:i,importProcessor:a}=e;this.tokens=i,this.isImportsTransformEnabled=n.includes("imports"),this.isReactHotLoaderTransformEnabled=n.includes("react-hot-loader"),this.disableESTransforms=!!r.disableESTransforms,r.disableESTransforms||(this.transformers.push(new Nw(i,this.nameManager)),this.transformers.push(new Pw(i)),this.transformers.push(new $w(i,this.nameManager))),n.includes("jsx")&&(r.jsxRuntime!=="preserve"&&this.transformers.push(new rs(this,i,a,this.nameManager,r)),this.transformers.push(new Cw(this,i,a,r)));let l=null;if(n.includes("react-hot-loader")){if(!r.filePath)throw new Error("filePath is required when using the react-hot-loader transform.");l=new $c(i,r.filePath),this.transformers.push(l)}if(n.includes("imports")){if(a===null)throw new Error("Expected non-null importProcessor with imports transform enabled.");this.transformers.push(new Kr(this,i,a,this.nameManager,this.helperManager,l,s,!!r.enableLegacyTypeScriptModuleInterop,n.includes("typescript"),n.includes("flow"),!!r.preserveDynamicImport,!!r.keepUnusedImports))}else this.transformers.push(new Sw(i,this.nameManager,this.helperManager,l,n.includes("typescript"),n.includes("flow"),!!r.keepUnusedImports,r));n.includes("flow")&&this.transformers.push(new Iw(this,i,n.includes("imports"))),n.includes("typescript")&&this.transformers.push(new Rw(this,i,n.includes("imports"))),n.includes("jest")&&this.transformers.push(new Pc(this,i,this.nameManager,a))}transform(){this.tokens.reset(),this.processBalancedCode();let n=this.isImportsTransformEnabled?'"use strict";':"";for(const a of this.transformers)n+=a.getPrefixCode();n+=this.helperManager.emitHelpers(),n+=this.generatedVariables.map(a=>` var ${a};`).join("");for(const a of this.transformers)n+=a.getHoistedCode();let s="";for(const a of this.transformers)s+=a.getSuffixCode();const r=this.tokens.finish();let{code:i}=r;if(i.startsWith("#!")){let a=i.indexOf(`
193
+ `);return a===-1&&(a=i.length,i+=`
194
+ `),{code:i.slice(0,a+1)+n+i.slice(a+1)+s,mappings:this.shiftMappings(r.mappings,n.length)}}else return{code:n+i+s,mappings:this.shiftMappings(r.mappings,n.length)}}processBalancedCode(){let e=0,n=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(o.braceL)||this.tokens.matches1(o.dollarBraceL))e++;else if(this.tokens.matches1(o.braceR)){if(e===0)return;e--}if(this.tokens.matches1(o.parenL))n++;else if(this.tokens.matches1(o.parenR)){if(n===0)return;n--}this.processToken()}}processToken(){if(this.tokens.matches1(o._class)){this.processClass();return}for(const e of this.transformers)if(e.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(o._class,o.name))throw new Error("Expected identifier for exported class name.");const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),e}processClass(){const e=Ew(this,this.tokens,this.nameManager,this.disableESTransforms),n=(e.headerInfo.isExpression||!e.headerInfo.className)&&e.staticInitializerNames.length+e.instanceInitializerNames.length>0;let s=e.headerInfo.className;n&&(s=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(s),this.tokens.appendCode(` (${s} =`));const i=this.tokens.currentToken().contextId;if(i==null)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(o._class);!this.tokens.matchesContextIdAndLabel(o.braceL,i);)this.processToken();this.processClassBody(e,s);const a=e.staticInitializerNames.map(l=>`${s}.${l}()`);n?this.tokens.appendCode(`, ${a.map(l=>`${l}, `).join("")}${s})`):e.staticInitializerNames.length>0&&this.tokens.appendCode(` ${a.map(l=>`${l};`).join(" ")}`)}processClassBody(e,n){const{headerInfo:s,constructorInsertPos:r,constructorInitializerStatements:i,fields:a,instanceInitializerNames:l,rangesToRemove:c}=e;let u=0,d=0;const m=this.tokens.currentToken().contextId;if(m==null)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(o.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const f=i.length+l.length>0;if(r===null&&f){const g=this.makeConstructorInitCode(i,l,n);if(s.hasSuperclass){const w=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${w}) { super(...${w}); ${g}; }`)}else this.tokens.appendCode(`constructor() { ${g}; }`)}for(;!this.tokens.matchesContextIdAndLabel(o.braceR,m);)if(u<a.length&&this.tokens.currentIndex()===a[u].start){let g=!1;for(this.tokens.matches1(o.bracketL)?this.tokens.copyTokenWithPrefix(`${a[u].initializerName}() {this`):this.tokens.matches1(o.string)||this.tokens.matches1(o.num)?(this.tokens.copyTokenWithPrefix(`${a[u].initializerName}() {this[`),g=!0):this.tokens.copyTokenWithPrefix(`${a[u].initializerName}() {this.`);this.tokens.currentIndex()<a[u].end;)g&&this.tokens.currentIndex()===a[u].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),u++}else if(d<c.length&&this.tokens.currentIndex()>=c[d].start){for(this.tokens.currentIndex()<c[d].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<c[d].end;)this.tokens.removeToken();d++}else this.tokens.currentIndex()===r?(this.tokens.copyToken(),f&&this.tokens.appendCode(`;${this.makeConstructorInitCode(i,l,n)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(o.braceR)}makeConstructorInitCode(e,n,s){return[...e,...n.map(r=>`${s}.prototype.${r}.call(this)`)].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(o.parenR,o.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType;)e++;if(this.tokens.matches1AtIndex(e,o.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<e;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(S._async)&&!this.tokens.matches1(o._async))return!1;const e=this.tokens.tokenAtRelativeIndex(1);if(e.type!==o.lessThan||!e.isType)return!1;let n=this.tokens.currentIndex()+1;for(;this.tokens.tokens[n].isType;)n++;if(this.tokens.matches1AtIndex(n,o.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()<n;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(e,n){for(let s=0;s<e.length;s++){const r=e[s];r!==void 0&&(e[s]=r+n)}return e}}var Nc={},Wf;function Dw(){return Wf||(Wf=1,function(t){t.__esModule=!0,t.LinesAndColumns=void 0;var e=`
195
+ `,n="\r",s=function(){function r(i){this.string=i;for(var a=[0],l=0;l<i.length;)switch(i[l]){case e:l+=e.length,a.push(l);break;case n:l+=n.length,i[l]===e&&(l+=e.length),a.push(l);break;default:l++;break}this.offsets=a}return r.prototype.locationForIndex=function(i){if(i<0||i>this.string.length)return null;for(var a=0,l=this.offsets;l[a+1]<=i;)a++;var c=i-l[a];return{line:a,column:c}},r.prototype.indexForLocation=function(i){var a=i.line,l=i.column;return a<0||a>=this.offsets.length||l<0||l>this.lengthOfLine(a)?null:this.offsets[a]+l},r.prototype.lengthOfLine=function(i){var a=this.offsets[i],l=i===this.offsets.length-1?this.string.length:this.offsets[i+1];return l-a},r}();t.LinesAndColumns=s,t.default=s}(Nc)),Nc}Dw();function Ow(t){const e=new Set;for(let n=0;n<t.tokens.length;n++)t.matches1AtIndex(n,o._import)&&!t.matches3AtIndex(n,o._import,o.name,o.eq)&&Lw(t,n,e);return e}function Lw(t,e,n){e++,!t.matches1AtIndex(e,o.parenL)&&(t.matches1AtIndex(e,o.name)&&(n.add(t.identifierNameAtIndex(e)),e++,t.matches1AtIndex(e,o.comma)&&e++),t.matches1AtIndex(e,o.star)&&(e+=2,n.add(t.identifierNameAtIndex(e)),e++),t.matches1AtIndex(e,o.braceL)&&(e++,Mw(t,e,n)))}function Mw(t,e,n){for(;;){if(t.matches1AtIndex(e,o.braceR))return;const s=Dr(t,e);if(e=s.endIndex,s.isType||n.add(s.rightName),t.matches2AtIndex(e,o.comma,o.braceR))return;if(t.matches1AtIndex(e,o.braceR))return;if(t.matches1AtIndex(e,o.comma))e++;else throw new Error(`Unexpected token: ${JSON.stringify(t.tokens[e])}`)}}function Fw(t,e){ek(e);try{const n=Bw(t,e),r=new Wo(n,e.transforms,!!e.enableLegacyBabel5ModuleInterop,e).transform();let i={code:r.code};if(e.sourceMapOptions){if(!e.filePath)throw new Error("filePath must be specified when generating a source map.");i={...i,sourceMap:Vx(r,e.filePath,e.sourceMapOptions,t,n.tokenProcessor.tokens)}}return i}catch(n){throw e.filePath&&(n.message=`Error transforming ${e.filePath}: ${n.message}`),n}}function Bw(t,e){const n=e.transforms.includes("jsx"),s=e.transforms.includes("typescript"),r=e.transforms.includes("flow"),i=e.disableESTransforms===!0,a=xw(t,n,s,r),l=a.tokens,c=a.scopes,u=new ql(t,l),d=new Po(u),m=new Xr(t,l,r,i,d),f=!!e.enableLegacyTypeScriptModuleInterop;let g=null;return e.transforms.includes("imports")?(g=new is(u,m,f,e,e.transforms.includes("typescript"),!!e.keepUnusedImports,d),g.preprocessTokens(),F1(m,c,g.getGlobalNames()),e.transforms.includes("typescript")&&!e.keepUnusedImports&&g.pruneTypeOnlyImports()):e.transforms.includes("typescript")&&!e.keepUnusedImports&&F1(m,c,Ow(m)),{tokenProcessor:m,scopes:c,nameManager:u,importProcessor:g,helperManager:d}}function jw(t){return t=t.replace(/<link.*?href=["']\/\/.*?["'].*?>/g,e=>e.replace("//","https://")),t=t.replace(/<script.*?src=["']\/\/.*?["'].*?>/g,e=>e.replace("//","https://")),t}function zw(t,e){return`<script>
196
196
  (function() {
197
197
  // Store file data for interception
198
198
  const __filesURI = "${e}";
@@ -364,7 +364,7 @@ ${n.map(({variableName:s,uniqueLocalName:i})=>` reactHotLoader.register(${s}, "
364
364
  return originalFetch(input, init);
365
365
  };
366
366
  })();
367
- <\/script>`}function Gf(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Cc(t){let e=t["index.html"]||"";const{"index.html":n,...s}=t;e=Fw(e);const i={};for(const[m,f]of Object.entries(s))if(f){if(m.endsWith(".js")){const g=new RegExp(`<script(.*?)src=["']${Gf(m)}["'](.*?)>[\\s\\S]*?<\\/script>`,"g");if(e.match(g)){const E=f.replace(/\$/g,"$$$$");e=e.replace(g,`<script$1$2>${E}<\/script>`);continue}}if(m.endsWith(".css")){const g=new RegExp(`<link.*?href=["']${Gf(m)}["'].*?>`,"g");if(e.match(g)){e=e.replace(g,`<style>${f}</style>`);continue}}m.endsWith(".html")||(i[m]=f)}const r=Object.keys(i),a=encodeURIComponent(JSON.stringify(i)),c=`<meta charset="utf-8">${Bw(r,a)}`;let u="";const d=e.match(/<!DOCTYPE[^>]*>/i);if(d&&(u=d[0],e=e.replace(d[0],"")),e.includes("<head>"))e=e.replace("<head>",`<head>${c}`);else if(e.includes("<html>"))e=e.replace("<html>",`<html><head>${c}</head>`);else return`${u}<html><head>${c}</head><body>${e}</body></html>`;return`${u}${e}`}const jw=()=>(Math.random()+"").slice(2);function Tc(t={}){return{name:"sucrase",transform(e,n){if(!n.match(/\.(?:js|[jt]sx)$/))return null;const s=Lw(e,{transforms:["jsx","typescript"],filePath:n,sourceMapOptions:{compiledFilename:"bundle.js"},production:!0,...t});return{code:s.code,map:s.sourceMap}}}}const Wf={dependencies:{},vizhub:{},license:"MIT"},zw=!1,Xo=t=>{const e=t["package.json"];try{const n=e?JSON.parse(e):Wf;return zw&&console.log("[packageJSON] pkg:",JSON.stringify(n,null,2)),n}catch{return Wf}},Rc=t=>Xo(t).dependencies||{},Dc=t=>(Xo(t).vizhub||{}).libraries||{},Oc=({name:t,version:e},n,s="jsdelivr")=>{const i=n[t]&&n[t].path||"";return s==="jsdelivr"?`https://cdn.jsdelivr.net/npm/${t}@${e}${i}`:`https://unpkg.com/${t}@${e}${i}`},Vw=t=>{const e=t?.vizhub?.libraries;return e?Object.entries(e).reduce((n,[s,i])=>(i.global&&(n[s]=i.global),n),{}):{}},Uw={d3:"d3",react:"React","react-dom":"ReactDOM"},Xf=t=>{const e=Vw(t);return{...Uw,...e}},Xi=t=>{const[e,...n]=t.split("/"),s=n.join("/");return{vizId:e,fileName:s}},qw=`var EOL = {},
367
+ <\/script>`}function Xf(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Cc(t){let e=t["index.html"]||"";const{"index.html":n,...s}=t;e=jw(e);const r={};for(const[m,f]of Object.entries(s))if(f){if(m.endsWith(".js")){const g=new RegExp(`<script(.*?)src=["']${Xf(m)}["'](.*?)>[\\s\\S]*?<\\/script>`,"g");if(e.match(g)){const w=f.replace(/\$/g,"$$$$");e=e.replace(g,`<script$1$2>${w}<\/script>`);continue}}if(m.endsWith(".css")){const g=new RegExp(`<link.*?href=["']${Xf(m)}["'].*?>`,"g");if(e.match(g)){e=e.replace(g,`<style>${f}</style>`);continue}}m.endsWith(".html")||(r[m]=f)}const i=Object.keys(r),a=encodeURIComponent(JSON.stringify(r)),c=`<meta charset="utf-8">${zw(i,a)}`;let u="";const d=e.match(/<!DOCTYPE[^>]*>/i);if(d&&(u=d[0],e=e.replace(d[0],"")),e.includes("<head>"))e=e.replace("<head>",`<head>${c}`);else if(e.includes("<html>"))e=e.replace("<html>",`<html><head>${c}</head>`);else return`${u}<html><head>${c}</head><body>${e}</body></html>`;return`${u}${e}`}const Vw=()=>(Math.random()+"").slice(2);function Tc(t={}){return{name:"sucrase",transform(e,n){if(!n.match(/\.(?:js|[jt]sx)$/))return null;const s=Fw(e,{transforms:["jsx","typescript"],filePath:n,sourceMapOptions:{compiledFilename:"bundle.js"},production:!0,...t});return{code:s.code,map:s.sourceMap}}}}const Kf={dependencies:{},vizhub:{},license:"MIT"},Uw=!1,Xo=t=>{const e=t["package.json"];try{const n=e?JSON.parse(e):Kf;return Uw&&console.log("[packageJSON] pkg:",JSON.stringify(n,null,2)),n}catch{return Kf}},Rc=t=>Xo(t).dependencies||{},Dc=t=>(Xo(t).vizhub||{}).libraries||{},Oc=({name:t,version:e},n,s="jsdelivr")=>{const r=n[t]&&n[t].path||"";return s==="jsdelivr"?`https://cdn.jsdelivr.net/npm/${t}@${e}${r}`:`https://unpkg.com/${t}@${e}${r}`},qw=t=>{const e=t?.vizhub?.libraries;return e?Object.entries(e).reduce((n,[s,r])=>(r.global&&(n[s]=r.global),n),{}):{}},Hw={d3:"d3",react:"React","react-dom":"ReactDOM"},Jf=t=>{const e=qw(t);return{...Hw,...e}},Jr=t=>{const[e,...n]=t.split("/"),s=n.join("/");return{vizId:e,fileName:s}},Gw=`var EOL = {},
368
368
  EOF = {},
369
369
  QUOTE = 34,
370
370
  NEWLINE = 10,
@@ -484,26 +484,31 @@ var tsv = dsv(' ');
484
484
 
485
485
  var tsvParse = tsv.parse;
486
486
 
487
- export { csvParse, tsvParse };`,Hw=t=>t.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Gw=()=>({name:"transformDSV",transform:async(t,e)=>{const{fileName:n}=Xi(e),s=n.endsWith(".csv"),i=n.endsWith(".tsv");if(s||i)return{code:`
488
- ${qw}
489
- const data = ${s?"csvParse":"tsvParse"}(\`${Hw(t)}\`);
487
+ export { csvParse, tsvParse };`,Ww=t=>t.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Xw=()=>({name:"transformDSV",transform:async(t,e)=>{const{fileName:n}=Jr(e),s=n.endsWith(".csv"),r=n.endsWith(".tsv");if(s||r)return{code:`
488
+ ${Gw}
489
+ const data = ${s?"csvParse":"tsvParse"}(\`${Ww(t)}\`);
490
490
  export default data;
491
- `,map:{mappings:""}}}}),Ww=t=>{const e=/^@([a-zA-Z0-9_-]+)\/([a-zA-Z0-9_-]+)$/,n=t.match(e);return n?{userName:n[1],idOrSlug:n[2]}:null},Xw=({vizId:t,slugCache:e})=>({name:"vizResolve",resolveId:async(n,s)=>{if(n.startsWith("./")&&!s?.startsWith("https://")){let r=n.substring(2);if(!r.endsWith(".js")&&!r.endsWith(".css")&&!r.endsWith(".csv")&&!r.endsWith(".svelte")&&(r+=".js"),s){const{vizId:a,fileName:l}=Xi(s),c=l.split("/").slice(0,-1).join("/"),u=c?`${c}/${r}`:r;return`${a}/${u}`}return t+"/"+r}const i=Ww(n);if(i){let r;if(Tb(i.idOrSlug))r=i.idOrSlug;else{if(!e)throw new Error("slugCache is required to import by slug in v3 runtime");r=await e.get(`${i.userName}/${i.idOrSlug}`)}return r+"/index.js"}}}),Kw=({vizCache:t,trackCSSImport:e,vizId:n,files:s})=>({name:"vizLoad",load:async i=>{const r=Xi(i),a=r.vizId,l=r.fileName;if(l.endsWith(".css"))return e(i),"";let c=null;if(a===n&&s)c=s[l]||null;else{const u=await t.get(a);c=a1(u,l)}if(c===null)throw new Error(`Imported file "${l}" not found.`);return c}}),Kf=new Map;let Lc;const Ki="https://cdn.jsdelivr.net/npm/svelte@5",Jw=`${Ki}/compiler.cjs`,Yw=({getSvelteCompiler:t})=>({name:"transformSvelte",load:async e=>{if(!e.startsWith(Ki))return;const n=Kf.get(e);if(n)return n;const s=await fetch(e).then(i=>i.text());return Kf.set(e,s),s},resolveId:async(e,n)=>{if(e==="svelte")return`${Ki}/src/runtime/index.js`;if(e.startsWith("svelte/")){const s=e.slice(7);return`${Ki}/src/runtime/${s}/index.js`}if(/^https?:/.test(e))return e;if(e.startsWith(".")&&n&&n.startsWith(Ki)){const s=new URL(e,n).href;return new URL(e,n).href,s}},transform:async(e,n)=>{const{fileName:s}=Xi(n);if(s.endsWith(".svelte")){if(!Lc){if(!t)throw new Error("Svelte compiler not available");Lc=await t()}const i=Lc(e,{filename:s,generate:"client",css:"external",dev:!1});let r=i.js.code;return i.css&&i.css.code&&(r=`
491
+ `,map:{mappings:""}}}}),Kw=t=>{const e=/^@([a-zA-Z0-9_-]+)\/([a-zA-Z0-9_-]+)$/,n=t.match(e);return n?{userName:n[1],idOrSlug:n[2]}:null},Jw=({vizId:t,slugCache:e})=>({name:"vizResolve",resolveId:async(n,s)=>{if(n.startsWith("./")&&!s?.startsWith("https://")){let i=n.substring(2);if(!i.endsWith(".js")&&!i.endsWith(".css")&&!i.endsWith(".csv")&&!i.endsWith(".svelte")&&(i+=".js"),s){const{vizId:a,fileName:l}=Jr(s),c=l.split("/").slice(0,-1).join("/"),u=c?`${c}/${i}`:i;return`${a}/${u}`}return t+"/"+i}const r=Kw(n);if(r){let i;if(Db(r.idOrSlug))i=r.idOrSlug;else{if(!e)throw new Error("slugCache is required to import by slug in v3 runtime");i=await e.get(`${r.userName}/${r.idOrSlug}`)}return i+"/index.js"}}}),Yw=({vizCache:t,trackCSSImport:e,vizId:n,files:s})=>({name:"vizLoad",load:async r=>{const i=Jr(r),a=i.vizId,l=i.fileName;if(l.endsWith(".css"))return e(r),"";let c=null;if(a===n&&s)c=s[l]||null;else{const u=await t.get(a);c=c1(u,l)}if(c===null)throw new Error(`Imported file "${l}" not found.`);return c}}),Yf=new Map,Lc=new Map;let Mc;const Us="https://cdn.jsdelivr.net/npm/svelte@5.37.1",Qw=`${Us}/compiler/index.js`;async function Qf(t){const e=Lc.get(t);if(e)return e;const n=[".js","/index.js"];for(const r of n){const i=`${t}${r}`;try{if((await fetch(i,{method:"HEAD"})).ok)return Lc.set(t,i),i}catch{continue}}const s=`${t}.js`;return Lc.set(t,s),s}const Zw=({getSvelteCompiler:t})=>({name:"transformSvelte",load:async e=>{if(e==="virtual:esm-env")return`
492
+ export const BROWSER = true;
493
+ export const DEV = true;
494
+ export const NODE = false;
495
+ export const PROD = false;
496
+ `;if(!e.startsWith(Us))return;const n=Yf.get(e);if(n)return n;const s=await fetch(e).then(r=>r.text());return Yf.set(e,s),s},resolveId:async(e,n)=>{if(e==="esm-env")return"virtual:esm-env";if(e==="svelte")return`${Us}/src/index-client.js`;if(e.startsWith("svelte/")){const s=e.slice(7),r=`${Us}/src/${s}`;return await Qf(r)}if(e.startsWith("#client/")){const s=e.slice(8),r=`${Us}/src/internal/client/${s}`;return await Qf(r)}if(/^https?:/.test(e))return e;if(e.startsWith(".")&&n&&n.startsWith(Us)){const s=new URL(e,n).href;return new URL(e,n).href,s}},transform:async(e,n)=>{const{fileName:s}=Jr(n);if(s.endsWith(".svelte")){if(!Mc){if(!t)throw new Error("Svelte compiler not available");Mc=await t()}const r=Mc(e,{filename:s,generate:"client",css:"external",dev:!1});let i=r.js.code;return r.css&&r.css.code&&(i=`
492
497
  // Auto-inject CSS for Svelte component
493
498
  (function() {
494
499
  if (typeof document !== 'undefined') {
495
500
  const style = document.createElement('style');
496
- style.textContent = ${JSON.stringify(i.css.code)};
501
+ style.textContent = ${JSON.stringify(r.css.code)};
497
502
  document.head.appendChild(style);
498
503
  }
499
504
  })();
500
- `+r),r}}}),Qw=async({files:t,rollup:e,enableSourcemap:n=!0,vizCache:s,vizId:i,slugCache:r,getSvelteCompiler:a})=>{const l=new Set,c=E=>{l.add(E)};if(!t["index.js"])throw new Error("Missing index.js");const u={input:"./index.js",plugins:[...i?[Xw({vizId:i,slugCache:r})]:[],Gw(),Tc(),Yw({getSvelteCompiler:a}),...s?[Kw({vizCache:s,trackCSSImport:c,vizId:i,files:t})]:[]],onwarn(E,k){E.code!=="UNRESOLVED_IMPORT"&&k(E)}},d={format:"umd",name:"Viz",sourcemap:!!n,compact:!0},m=Xo(t);if(m){const E=Xf(m);E&&(u.external=Object.keys(E),d.globals=E)}const f=await e(u),{output:g}=await f.generate(d);return{src:g[0].code,cssFiles:Array.from(l)}},Zw=t=>{if(t instanceof Error){const e=t.stack||"",n=t.message||"Unknown error";return`${t.name||"Error"}: ${n}
501
- ${e}`}else if("error"in t&&t.error instanceof Error){const e=t.error,n=e.stack||"",s=e.message||"Unknown error",i="filename"in t?t.filename:"",r="lineno"in t?t.lineno:"",a="colno"in t?t.colno:"";let l="";return i&&r&&(l=` at ${i}:${r}`,a&&(l+=`:${a}`)),`${e.name||"Error"}: ${s}${l}
505
+ `+i),i}}}),eS=async({files:t,rollup:e,enableSourcemap:n=!0,vizCache:s,vizId:r,slugCache:i,getSvelteCompiler:a})=>{const l=new Set,c=k=>{l.add(k)};if(!t["index.js"])throw new Error("Missing index.js");const u={name:"replace",transform(k,I){let E=!1,b=k;return b.includes("process.env.NODE_ENV")&&(b=b.replace(/\bprocess\.env\.NODE_ENV\b/g,JSON.stringify("production")),E=!0),E?{code:b,map:null}:null}},d={input:"./index.js",plugins:[...r?[Jw({vizId:r,slugCache:i})]:[],Xw(),Tc(),Zw({getSvelteCompiler:a}),u,...s?[Yw({vizCache:s,trackCSSImport:c,vizId:r,files:t})]:[]],onwarn(k,I){k.code!=="UNRESOLVED_IMPORT"&&I(k)}},m={format:"umd",name:"Viz",sourcemap:!!n,compact:!0},f=Xo(t);if(f){const k=Jf(f);k&&(d.external=Object.keys(k),m.globals=k)}d.external||(d.external=[]),m.globals||(m.globals={}),Array.isArray(d.external)&&(d.external=d.external.filter(k=>typeof k=="string"&&!k.startsWith("#client/")));const g=await e(d),{output:w}=await g.generate(m);return{src:w[0].code,cssFiles:Array.from(l)}},tS=t=>{if(t instanceof Error){const e=t.stack||"",n=t.message||"Unknown error";return`${t.name||"Error"}: ${n}
506
+ ${e}`}else if("error"in t&&t.error instanceof Error){const e=t.error,n=e.stack||"",s=e.message||"Unknown error",r="filename"in t?t.filename:"",i="lineno"in t?t.lineno:"",a="colno"in t?t.colno:"";let l="";return r&&i&&(l=` at ${r}:${i}`,a&&(l+=`:${a}`)),`${e.name||"Error"}: ${s}${l}
502
507
  ${n}`}else if("reason"in t){const e=t.reason;if(e instanceof Error){const n=e.stack||"",s=e.message||"Unknown error";return`Unhandled Promise Rejection - ${e.name||"Error"}: ${s}
503
508
  ${n}`}else return`Unhandled Promise Rejection: ${String(e)}`}else return`Unknown runtime error: ${String(t)}`},Ko=()=>`
504
509
  // Global error handling for runtime errors
505
510
  (() => {
506
- const formatRuntimeError = ${Zw.toString()};
511
+ const formatRuntimeError = ${tS.toString()};
507
512
 
508
513
  // Handle uncaught JavaScript errors
509
514
  window.addEventListener('error', (event) => {
@@ -523,7 +528,7 @@ ${n}`}else return`Unhandled Promise Rejection: ${String(e)}`}else return`Unknown
523
528
  }, "*");
524
529
  });
525
530
  })();
526
- `;function eS(){return Math.random().toString().slice(2,7)}const tS=({cdn:t,src:e,styles:n})=>{const s=`viz-container-${eS()}`;return`<!DOCTYPE html>
531
+ `;function nS(){return Math.random().toString().slice(2,7)}const sS=({cdn:t,src:e,styles:n})=>{const s=`viz-container-${nS()}`;return`<!DOCTYPE html>
527
532
  <html>
528
533
  <head>
529
534
  <meta charset="utf-8">${t}${n}
@@ -547,7 +552,7 @@ ${n}`}else return`Unhandled Promise Rejection: ${String(e)}`}else return`Unknown
547
552
  const render = () => {
548
553
  const container = document.getElementById('${s}');
549
554
  typeof cleanup === 'function' && cleanup();
550
- cleanup = Viz.main(container, { state: window.state, setState, writeFile });
555
+ cleanup = (Viz.viz || Viz.main)(container, { state: window.state, setState, writeFile });
551
556
  };
552
557
  const setState = (next) => {
553
558
  window.state = next(window.state);
@@ -602,20 +607,76 @@ ${n}`}else return`Unhandled Promise Rejection: ${String(e)}`}else return`Unknown
602
607
  })();
603
608
  <\/script>
604
609
  </body>
605
- </html>`},nS=async({files:t,rollup:e,enableSourcemap:n=!0,vizCache:s,vizId:i,slugCache:r,getSvelteCompiler:a})=>{const{src:l,cssFiles:c}=await Qw({files:t,rollup:e,enableSourcemap:n,vizCache:s,vizId:i,slugCache:r,getSvelteCompiler:a});let u=[];if(c.length>0)for(let E=0;E<c.length;E++){const k=c[E],I=Xi(k),A=I.vizId,x=I.fileName;let w=null;if(A===i&&t)w=t[x]||null;else{const v=await s.get(A);w=a1(v,x)}w&&u.push(w)}const d=u.join(`
610
+ </html>`},rS=async({files:t,rollup:e,enableSourcemap:n=!0,vizCache:s,vizId:r,slugCache:i,getSvelteCompiler:a})=>{const{src:l,cssFiles:c}=await eS({files:t,rollup:e,enableSourcemap:n,vizCache:s,vizId:r,slugCache:i,getSvelteCompiler:a});let u=[];if(c.length>0)for(let w=0;w<c.length;w++){const k=c[w],I=Jr(k),E=I.vizId,b=I.fileName;let A=null;if(E===r&&t)A=t[b]||null;else{const v=await s.get(E);A=c1(v,b)}A&&u.push(A)}const d=u.join(`
606
611
  `),m=`
607
- <style id="injected-style">${d}</style>`;let f="";const g=Object.entries(Rc(t));if(g.length>0){const E=Dc(t);f=g.map(([k,I],A)=>{const x=Oc({name:k,version:I},E);return`${A>0?" ":`
608
- `}<script src="${x}"><\/script>`}).join("")}return{html:tS({cdn:f,src:l,styles:m}),css:d,js:l,runtimeVersion:"v3"}},Jf=({initialContents:t,handleCacheMiss:e})=>{const n=new Map(t.map(s=>[s.id,s]));return{get:async s=>{const i=n.get(s);if(i!==void 0)return i;if(!e)throw new Error(`Unresolved import from vizId ${s}, cache miss handler not provided.`);const r=await e(s);if(r)return n.set(s,r),r;throw new Error(`Unresolved import from vizId ${s}`)},set:s=>{n.set(s.id,s)},invalidate:s=>{n.delete(s)}}},sS=({initialMappings:t={},handleCacheMiss:e})=>({get:async n=>{const s=t[n];if(s!==void 0)return s;if(!e)throw new Error(`Unresolved slug ${n}, cache miss handler not provided.`);const i=await e(n);if(i)return t[n]=i,i;throw new Error(`Unresolved slug ${n}`)},set:(n,s)=>{t[n]=s},invalidate:n=>{delete t[n]}}),iS=(t,e="Sample Content for Exporting",n=o1())=>({id:n,files:Mb(t),title:e}),rS=t=>{if(Object.keys(t).length===0)return null;const e="index.html"in t,n="index.js"in t,s="index.jsx"in t;return e?t["index.html"].includes('type="module"')?"v4":n||s?"v2":"v1":!e&&n?"v3":null},Mc=(t,e)=>new RegExp(`<${e}\\b`,"i").test(t)&&new RegExp(`</${e}>`,"i").test(t),oS=t=>{const e=t.trim();return Mc(e,"html")&&Mc(e,"head")&&Mc(e,"body")?e:`<html><head></head><body>${e}</body></html>`},aS=(t,e)=>t.replace(new RegExp(`<script[^>]*src=["'][^"']*${e.source}[^"']*["'][^>]*>\\s*<\/script>`,"gi"),""),Fc=(t,e,n)=>t.replace(new RegExp(e,"i"),`${n}${e}`),lS=(t,e)=>{let n=oS(t);const s=Object.entries(Rc(e));if(s.length){const r=Dc(e);s.forEach(([l])=>{n=aS(n,new RegExp(`${l}@`))});const a=s.map(([l,c])=>Oc({name:l,version:c},r)).map(l=>`<script src="${l}"><\/script>`).join(`
609
- `);n=Fc(n,"</head>",a+`
610
- `)}if(e["bundle.js"]!==void 0||e["index.js"]!==void 0){const r='<script src="bundle.js"><\/script>',a=/<script\b[^>]*\bsrc=["']bundle\.js["'][^>]*>\s*<\/script>/gi,l=[...n.matchAll(a)];l.length===1&&(()=>{const c=l[0].index??-1;if(c===-1)return!1;const u=n.search(/<body\b[^>]*>/i),d=n.search(/<\/body>/i);return u!==-1&&d!==-1&&c>u&&c<d})()||(n=n.replace(a,""),n=Fc(n,"</body>",r))}const i=`<script>${Ko()}<\/script>
611
- `;return n=Fc(n,"</head>",i),/^\s*<!DOCTYPE/i.test(n)?n:`<!DOCTYPE html>${n}`},cS=t=>{const e=t["index.html"];return!e&&!t["index.js"]&&!t["bundle.js"]?"":lS(e||"<!DOCTYPE html><html><head></head><body></body></html>",t)};function uS(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yf,Qf;function hS(){return Qf||(Qf=1,Yf={d3:"d3","d3-array":"d3","d3-axis":"d3","d3-brush":"d3","d3-chord":"d3","d3-collection":"d3","d3-color":"d3","d3-contour":"d3","d3-dispatch":"d3","d3-drag":"d3","d3-dsv":"d3","d3-ease":"d3","d3-fetch":"d3","d3-force":"d3","d3-format":"d3","d3-geo":"d3","d3-hierarchy":"d3","d3-interpolate":"d3","d3-path":"d3","d3-polygon":"d3","d3-quadtree":"d3","d3-random":"d3","d3-scale":"d3","d3-scale-chromatic":"d3","d3-selection":"d3","d3-shape":"d3","d3-tile":"d3","d3-time":"d3","d3-time-format":"d3","d3-timer":"d3","d3-transition":"d3","d3-voronoi":"d3","d3-zoom":"d3",react:"React","react-dom":"ReactDOM","react-dropdown-browser":"ReactDropdown","react-dropdown":"ReactDropdown",three:"THREE",vega:"vega","vega-embed":"vegaEmbed","vega-lite":"vegaLite","vega-lite-api":"vl","vega-tooltip":"vegaTooltip","vega-themes":"vegaThemes","vizhub-vega-lite-config":"vizhubVegaLiteConfig",semiotic:"Semiotic","viz.js":"Viz"}),Yf}var dS=hS();const pS=uS(dS),rn="\0virtual:",fS=t=>{let e=t.replace(/^\.\//,"");return e=e.replace(/\/+/g,"/"),e=e.replace(/\/$/,""),e},mS=(t,e)=>{const n=t.includes("/")?t.slice(0,t.lastIndexOf("/")):"",s=e.split("/"),i=n?n.split("/"):[];for(const r of s)r===".."?i.pop():r!=="."&&r!==""&&i.push(r);return i.join("/")},Zf=t=>({name:"virtual-file-system",resolveId(e,n){const s=n?.startsWith(rn)?n.slice(rn.length):n;if(e.startsWith("./")||e.startsWith("../")){const r=fS(s?mS(s,e):e);if(t[r])return rn+r;const a=[".js",".jsx",".ts",".tsx"];for(const l of a){const c=r+l;if(t[c])return rn+c}}if(t[e])return rn+e;const i=[".js",".jsx",".ts",".tsx"];for(const r of i){const a=e+r;if(t[a])return rn+a}return null},load(e){if(e.startsWith(rn)){const n=e.slice(rn.length);if(t[n])return t[n]}return null}}),gS=async({files:t,rollup:e,enableSourcemap:n=!0})=>{let s="index.js";if(!t[s]&&(s="index.jsx",!t[s]))throw new Error("Missing entry point, can't find index.js or index.jsx");const i={input:"./"+s,plugins:[Zf(t),Tc()],onwarn(u,d){u.code!=="UNRESOLVED_IMPORT"&&d(u)}},r={format:"iife",sourcemap:n},a=Xo(t);if(a){const u={...pS,...Xf(a)};u&&(i.external=Object.keys(u),r.globals=u)}const l=await e(i),{output:c}=await l.generate(r);return c[0].code},yS=async({files:t,rollup:e,enableSourcemap:n})=>({...t,"bundle.js":await gS({files:t,rollup:e,enableSourcemap:n}),"index.html":cS(t)}),bS=t=>{const e=[],n=[],s=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi;let i,r=0;for(;(i=s.exec(t))!==null;){const a=i[1],l=i[2];if(!/\btype\s*=\s*["']module["']/i.test(a))continue;const c=a.match(/\bsrc\s*=\s*["']([^"']+)["']/i);if(c)e.push(c[1]);else if(l.trim()){const u=`__inline_script_${r++}.js`;n.push({id:u,content:l.trim()}),e.push(u)}}return{entryPoints:e,inlineScripts:n}},xS=()=>({name:"catch-all-prevent-fs",resolveId(t,e){return{id:t,external:!0}}}),kS=async({entryPoint:t,files:e,rollup:n,enableSourcemap:s=!0})=>{const i={input:t.startsWith("./")?t:`./${t}`,plugins:[Zf(e),Tc({jsxRuntime:"automatic"}),xS()],onwarn(l,c){}},r=await n(i),{output:a}=await r.generate({format:"es",sourcemap:s});return a[0].code},Bc=(t,e)=>new RegExp(`<${e}\\b`,"i").test(t)&&new RegExp(`</${e}>`,"i").test(t),ES=t=>{const e=t.trim();return Bc(e,"html")&&Bc(e,"head")&&Bc(e,"body")?e:`<html><head></head><body>${e}</body></html>`},em=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),tm=(t,e,n)=>t.replace(new RegExp(e,"i"),`${n}${e}`),AS=t=>{const e=Rc(t);if(Object.keys(e).length===0)return null;const n=Dc(t),s={};for(const[i,r]of Object.entries(e))s[i]=Oc({name:i,version:r},n);return JSON.stringify({imports:s},null,2)},wS=(t,e,n=[])=>{if(!t["index.html"])return"";let s=ES(t["index.html"]);e.forEach((a,l)=>{if(n.some(c=>c.id===l)){const c=n.find(m=>m.id===l)?.content||"",u=em(c),d=new RegExp(`<script\\b[^>]*\\btype=["']module["'][^>]*>\\s*${u}\\s*<\/script>`,"gi");s=s.replace(d,`<script type="module">
612
- ${a}
613
- <\/script>`)}else{const c=new RegExp(`<script\\b[^>]*\\bsrc=["']${em(l)}["'][^>]*>[^<]*<\/script>`,"gi");s=s.replace(c,`<script type="module">
614
- ${a}
615
- <\/script>`)}});const i=AS(t);if(i&&!/<script\b[^>]*type=["']importmap["'][^>]*>/i.test(s)){const a=`<script type="importmap">
612
+ <style id="injected-style">${d}</style>`;let f="";const g=Object.entries(Rc(t));if(g.length>0){const w=Dc(t);f=g.map(([k,I],E)=>{const b=Oc({name:k,version:I},w);return`${E>0?" ":`
613
+ `}<script src="${b}"><\/script>`}).join("")}return{html:sS({cdn:f,src:l,styles:m}),css:d,js:l,runtimeVersion:"v3"}},Zf=({initialContents:t,handleCacheMiss:e})=>{const n=new Map(t.map(s=>[s.id,s]));return{get:async s=>{const r=n.get(s);if(r!==void 0)return r;if(!e)throw new Error(`Unresolved import from vizId ${s}, cache miss handler not provided.`);const i=await e(s);if(i)return n.set(s,i),i;throw new Error(`Unresolved import from vizId ${s}`)},set:s=>{n.set(s.id,s)},invalidate:s=>{n.delete(s)}}},iS=({initialMappings:t={},handleCacheMiss:e})=>({get:async n=>{const s=t[n];if(s!==void 0)return s;if(!e)throw new Error(`Unresolved slug ${n}, cache miss handler not provided.`);const r=await e(n);if(r)return t[n]=r,r;throw new Error(`Unresolved slug ${n}`)},set:(n,s)=>{t[n]=s},invalidate:n=>{delete t[n]}}),oS=(t,e="Sample Content for Exporting",n=l1())=>({id:n,files:Bb(t),title:e}),aS=t=>{if(Object.keys(t).length===0)return null;const e="index.html"in t,n="index.js"in t,s="index.jsx"in t;return e?t["index.html"].includes('type="module"')?"v4":n||s?"v2":"v1":!e&&n?"v3":null},Fc=(t,e)=>new RegExp(`<${e}\\b`,"i").test(t)&&new RegExp(`</${e}>`,"i").test(t),lS=t=>{const e=t.trim();return Fc(e,"html")&&Fc(e,"head")&&Fc(e,"body")?e:`<html><head></head><body>${e}</body></html>`},cS=(t,e)=>t.replace(new RegExp(`<script[^>]*src=["'][^"']*${e.source}[^"']*["'][^>]*>\\s*<\/script>`,"gi"),""),Bc=(t,e,n)=>t.replace(new RegExp(e,"i"),`${n}${e}`),uS=(t,e)=>{let n=lS(t);const s=Object.entries(Rc(e));if(s.length){const i=Dc(e);s.forEach(([l])=>{n=cS(n,new RegExp(`${l}@`))});const a=s.map(([l,c])=>Oc({name:l,version:c},i)).map(l=>`<script src="${l}"><\/script>`).join(`
614
+ `);n=Bc(n,"</head>",a+`
615
+ `)}if(e["bundle.js"]!==void 0||e["index.js"]!==void 0){const i='<script src="bundle.js"><\/script>',a=/<script\b[^>]*\bsrc=["']bundle\.js["'][^>]*>\s*<\/script>/gi,l=[...n.matchAll(a)];l.length===1&&(()=>{const c=l[0].index??-1;if(c===-1)return!1;const u=n.search(/<body\b[^>]*>/i),d=n.search(/<\/body>/i);return u!==-1&&d!==-1&&c>u&&c<d})()||(n=n.replace(a,""),n=Bc(n,"</body>",i))}const r=`<script>${Ko()}<\/script>
616
+ `;return n=Bc(n,"</head>",r),/^\s*<!DOCTYPE/i.test(n)?n:`<!DOCTYPE html>${n}`},hS=t=>{const e=t["index.html"];return!e&&!t["index.js"]&&!t["bundle.js"]?"":uS(e||"<!DOCTYPE html><html><head></head><body></body></html>",t)};function dS(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var em,tm;function pS(){return tm||(tm=1,em={d3:"d3","d3-array":"d3","d3-axis":"d3","d3-brush":"d3","d3-chord":"d3","d3-collection":"d3","d3-color":"d3","d3-contour":"d3","d3-dispatch":"d3","d3-drag":"d3","d3-dsv":"d3","d3-ease":"d3","d3-fetch":"d3","d3-force":"d3","d3-format":"d3","d3-geo":"d3","d3-hierarchy":"d3","d3-interpolate":"d3","d3-path":"d3","d3-polygon":"d3","d3-quadtree":"d3","d3-random":"d3","d3-scale":"d3","d3-scale-chromatic":"d3","d3-selection":"d3","d3-shape":"d3","d3-tile":"d3","d3-time":"d3","d3-time-format":"d3","d3-timer":"d3","d3-transition":"d3","d3-voronoi":"d3","d3-zoom":"d3",react:"React","react-dom":"ReactDOM","react-dropdown-browser":"ReactDropdown","react-dropdown":"ReactDropdown",three:"THREE",vega:"vega","vega-embed":"vegaEmbed","vega-lite":"vegaLite","vega-lite-api":"vl","vega-tooltip":"vegaTooltip","vega-themes":"vegaThemes","vizhub-vega-lite-config":"vizhubVegaLiteConfig",semiotic:"Semiotic","viz.js":"Viz"}),em}var fS=pS();const mS=dS(fS),rn="\0virtual:",gS=t=>{let e=t.replace(/^\.\//,"");return e=e.replace(/\/+/g,"/"),e=e.replace(/\/$/,""),e},yS=(t,e)=>{const n=t.includes("/")?t.slice(0,t.lastIndexOf("/")):"",s=e.split("/"),r=n?n.split("/"):[];for(const i of s)i===".."?r.pop():i!=="."&&i!==""&&r.push(i);return r.join("/")},nm=t=>({name:"virtual-file-system",resolveId(e,n){const s=n?.startsWith(rn)?n.slice(rn.length):n;if(e.startsWith("./")||e.startsWith("../")){const i=gS(s?yS(s,e):e);if(t[i])return rn+i;const a=[".js",".jsx",".ts",".tsx"];for(const l of a){const c=i+l;if(t[c])return rn+c}}if(t[e])return rn+e;const r=[".js",".jsx",".ts",".tsx"];for(const i of r){const a=e+i;if(t[a])return rn+a}return null},load(e){if(e.startsWith(rn)){const n=e.slice(rn.length);if(t[n])return t[n]}return null}}),bS=async({files:t,rollup:e,enableSourcemap:n=!0})=>{let s="index.js";if(!t[s]&&(s="index.jsx",!t[s]))throw new Error("Missing entry point, can't find index.js or index.jsx");const r={input:"./"+s,plugins:[nm(t),Tc()],onwarn(u,d){u.code!=="UNRESOLVED_IMPORT"&&d(u)}},i={format:"iife",sourcemap:n},a=Xo(t);if(a){const u={...mS,...Jf(a)};u&&(r.external=Object.keys(u),i.globals=u)}const l=await e(r),{output:c}=await l.generate(i);return c[0].code},xS=async({files:t,rollup:e,enableSourcemap:n})=>({...t,"bundle.js":await bS({files:t,rollup:e,enableSourcemap:n}),"index.html":hS(t)}),kS=t=>{const e=[],n=[],s=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi;let r,i=0;for(;(r=s.exec(t))!==null;){const a=r[1],l=r[2];if(!/\btype\s*=\s*["']module["']/i.test(a))continue;const c=a.match(/\bsrc\s*=\s*["']([^"']+)["']/i);if(c)e.push(c[1]);else if(l.trim()){const u=`__inline_script_${i++}.js`;n.push({id:u,content:l.trim()}),e.push(u)}}return{entryPoints:e,inlineScripts:n}},ES=()=>({name:"catch-all-prevent-fs",resolveId(t,e){return{id:t,external:!0}}}),AS=async({entryPoint:t,files:e,rollup:n,enableSourcemap:s=!0})=>{const r={input:t.startsWith("./")?t:`./${t}`,plugins:[nm(e),Tc({jsxRuntime:"automatic"}),ES()],onwarn(l,c){}},i=await n(r),{output:a}=await i.generate({format:"es",sourcemap:s});return a[0].code},jc=(t,e)=>new RegExp(`<${e}\\b`,"i").test(t)&&new RegExp(`</${e}>`,"i").test(t),wS=t=>{const e=t.trim();return jc(e,"html")&&jc(e,"head")&&jc(e,"body")?e:`<html><head></head><body>${e}</body></html>`},sm=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),zc=(t,e,n)=>t.replace(new RegExp(e,"i"),`${n}${e}`),SS=t=>{const e=Rc(t);if(Object.keys(e).length===0)return null;const n=Dc(t),s={};for(const[r,i]of Object.entries(e))s[r]=Oc({name:r,version:i},n);return JSON.stringify({imports:s},null,2)},IS=()=>`
617
+ // V4 Hot Reloading Support
618
+ (() => {
619
+ const runJS = (js) => {
620
+ // Remove all existing bundled module scripts
621
+ const existingScripts = document.querySelectorAll('script[type="module"]');
622
+ existingScripts.forEach(script => {
623
+ // Only remove scripts that contain bundled code (not import maps or external scripts)
624
+ if (script.textContent && script.textContent.trim()) {
625
+ script.remove();
626
+ }
627
+ });
628
+
629
+ // Create new script with updated bundled code
630
+ const script = document.createElement('script');
631
+ script.type = 'module';
632
+ script.textContent = js;
633
+ document.body.appendChild(script);
634
+ };
635
+
636
+ const runCSS = (css) => {
637
+ let style = document.getElementById('v4-injected-style');
638
+ if (!style) {
639
+ style = document.createElement('style');
640
+ style.type = 'text/css';
641
+ style.id = 'v4-injected-style';
642
+ document.head.appendChild(style);
643
+ }
644
+ style.textContent = css;
645
+ };
646
+
647
+ // Listen for hot reload messages
648
+ window.addEventListener('message', (message) => {
649
+ switch (message.data.type) {
650
+ case 'runJS':
651
+ try {
652
+ runJS(message.data.js);
653
+ parent.postMessage({ type: 'runDone' }, "*");
654
+ } catch (error) {
655
+ console.error('V4 Hot reload error:', error);
656
+ parent.postMessage({ type: 'runError', error }, "*");
657
+ }
658
+ break;
659
+ case 'runCSS':
660
+ runCSS(message.data.css);
661
+ break;
662
+ case 'ping':
663
+ parent.postMessage({ type: 'pong' }, "*");
664
+ break;
665
+ default:
666
+ break;
667
+ }
668
+ });
669
+ })();
670
+ `,vS=(t,e,n=[],s=!1)=>{if(!t["index.html"])return"";let r=wS(t["index.html"]);e.forEach((l,c)=>{if(n.some(u=>u.id===c)){const u=n.find(f=>f.id===c)?.content||"",d=sm(u),m=new RegExp(`<script\\b[^>]*\\btype=["']module["'][^>]*>\\s*${d}\\s*<\/script>`,"gi");r=r.replace(m,`<script type="module">
671
+ ${l}
672
+ <\/script>`)}else{const u=new RegExp(`<script\\b[^>]*\\bsrc=["']${sm(c)}["'][^>]*>[^<]*<\/script>`,"gi");r=r.replace(u,`<script type="module">
673
+ ${l}
674
+ <\/script>`)}});const i=SS(t);if(i&&!/<script\b[^>]*type=["']importmap["'][^>]*>/i.test(r)){const l=`<script type="importmap">
616
675
  ${i}
617
676
  <\/script>
618
- `;s=tm(s,"</head>",a)}const r=`<script>${Ko()}<\/script>
619
- `;return s=tm(s,"</head>",r),/^\s*<!DOCTYPE/i.test(s)?s:`<!DOCTYPE html>${s}`},SS=async({files:t,rollup:e,enableSourcemap:n=!0})=>{const s=t["index.html"]||"",{entryPoints:i,inlineScripts:r}=bS(s);if(i.length===0)return t;const a={...t};for(const u of r)a[u.id]=u.content;const l=new Map;for(const u of i){const d=await kS({entryPoint:u,files:a,rollup:e,enableSourcemap:n});l.set(u,d)}const c=wS(a,l,r);return{...t,"index.html":c}},Ji=!1,IS=t=>{const e=`<script>${Ko()}<\/script>`;return t.includes("</head>")?t.replace("</head>",`${e}
677
+ `;r=zc(r,"</head>",l)}const a=`<script>${Ko()}<\/script>
678
+ `;if(r=zc(r,"</head>",a),s){const l=`<script>${IS()}<\/script>
679
+ `;r=zc(r,"</body>",l)}return/^\s*<!DOCTYPE/i.test(r)?r:`<!DOCTYPE html>${r}`},_S=async({files:t,rollup:e,enableSourcemap:n=!0})=>{const s=t["index.html"]||"",{entryPoints:r,inlineScripts:i}=kS(s);if(r.length===0)return{files:t,bundledJS:""};const a={...t};for(const m of i)a[m.id]=m.content;const l=new Map,c=[];for(const m of r){const f=await AS({entryPoint:m,files:a,rollup:e,enableSourcemap:n});l.set(m,f),c.push(f)}const u=vS(a,l,i,!0),d=c.join(`
680
+ `);return{files:{...t,"index.html":u},bundledJS:d}},Yr=!1,PS=t=>{const e=`<script>${Ko()}<\/script>`;return t.includes("</head>")?t.replace("</head>",`${e}
620
681
  </head>`):t.includes("</body>")?t.replace("</body>",`${e}
621
- </body>`):t+e},vS=async({files:t,rollup:e,enableSourcemap:n=!0,vizCache:s,vizId:i,slugCache:r,getSvelteCompiler:a})=>{try{if(Ji&&console.log("[build] files:",t?JSON.stringify(t).substring(0,100):void 0),Ji&&console.log("[build] vizCache:",s),Ji&&console.log("[build] vizId:",i),!t&&!s)throw new Error("Either files or vizCache is required");if(!t&&s&&!i)throw new Error("vizId is required when using vizCache");if(!t&&s&&i&&(t=Lb((await s.get(i))?.files)),!t)throw new Error("Upable to extract viz files");const l=rS(t);if(Ji&&console.log("[build] version:",l),l==="v1")return{html:IS(Cc(t)),runtimeVersion:l};if(l==="v2"){if(!e)throw new Error("Rollup is required for v2 runtime");return{html:Cc(await yS({files:t,rollup:e,enableSourcemap:n})),runtimeVersion:l}}if(l==="v3"){if(!e)throw new Error("Rollup is required for v3 runtime");if(!s&&!i){const c=iS(t);i=c.id,s=Jf({initialContents:[c],handleCacheMiss:async()=>{throw new Error("Cache miss handler not implemented")}})}if(!s)throw new Error("vizCache is required for v3 runtime");if(!i)throw new Error("vizId is required for v3 runtime if vizCache is provided");return await nS({files:t,rollup:e,vizCache:s,vizId:i,slugCache:r,getSvelteCompiler:a})}if(l==="v4"){if(!e)throw new Error("Rollup is required for v4 runtime");return Ji&&console.log("[build] v4Build",{files:t,rollup:e,enableSourcemap:n}),{html:Cc(await SS({files:t,rollup:e,enableSourcemap:n})),runtimeVersion:l}}throw new Error(`Unsupported runtime version: ${l}`)}catch(l){throw l instanceof Error&&l.message.indexOf(rn)&&(l.message=l.message.replace(rn,"")),l}};(()=>{const t=async()=>{const r=await fetch(Jw).then(a=>a.text());return(0,eval)(r),self.svelte.compile},e=new Map,n=new Map,s=Jf({initialContents:[],handleCacheMiss:async r=>(postMessage({type:"contentRequest",vizId:r}),new Promise(a=>{e.set(r,a)}))}),i=sS({initialMappings:{},handleCacheMiss:async r=>{const a=jw();return postMessage({type:"resolveSlugRequest",slugKey:r,requestId:a}),new Promise(l=>{n.set(a,l)})}});addEventListener("message",async r=>{const a=r.data;switch(a.type){case"buildRequest":{const{files:l,enableSourcemap:c,requestId:u,vizId:d}=a;try{const m={type:"buildResponse",buildResult:await vS({files:l,enableSourcemap:c,rollup:Nb,getSvelteCompiler:t,vizCache:s,vizId:d,slugCache:i}),requestId:u};postMessage(m)}catch(m){const f={type:"buildResponse",error:""+m,requestId:u};postMessage(f)}break}case"contentResponse":{const l=e.get(a.vizId);l&&(l(a.content),e.delete(a.vizId));break}case"invalidateVizCacheRequest":{const{changedVizIds:l}=a;for(const c of l)s.invalidate(c);postMessage({type:"invalidateVizCacheResponse"});break}case"resolveSlugResponse":{const l=n.get(a.requestId);l&&(l(a.vizId),n.delete(a.requestId));break}}})})()})();
682
+ </body>`):t+e},$S=async({files:t,rollup:e,enableSourcemap:n=!0,vizCache:s,vizId:r,slugCache:i,getSvelteCompiler:a})=>{try{if(Yr&&console.log("[build] files:",t?JSON.stringify(t).substring(0,100):void 0),Yr&&console.log("[build] vizCache:",s),Yr&&console.log("[build] vizId:",r),!t&&!s)throw new Error("Either files or vizCache is required");if(!t&&s&&!r)throw new Error("vizId is required when using vizCache");if(!t&&s&&r&&(t=Fb((await s.get(r))?.files)),!t)throw new Error("Upable to extract viz files");const l=aS(t);if(Yr&&console.log("[build] version:",l),l==="v1")return{html:PS(Cc(t)),runtimeVersion:l};if(l==="v2"){if(!e)throw new Error("Rollup is required for v2 runtime");return{html:Cc(await xS({files:t,rollup:e,enableSourcemap:n})),runtimeVersion:l}}if(l==="v3"){if(!e)throw new Error("Rollup is required for v3 runtime");if(!s&&!r){const c=oS(t);r=c.id,s=Zf({initialContents:[c],handleCacheMiss:async()=>{throw new Error("Cache miss handler not implemented")}})}if(!s)throw new Error("vizCache is required for v3 runtime");if(!r)throw new Error("vizId is required for v3 runtime if vizCache is provided");return await rS({files:t,rollup:e,vizCache:s,vizId:r,slugCache:i,getSvelteCompiler:a})}if(l==="v4"){if(!e)throw new Error("Rollup is required for v4 runtime");Yr&&console.log("[build] v4Build",{files:t,rollup:e,enableSourcemap:n});const c=await _S({files:t,rollup:e,enableSourcemap:n});return{html:Cc(c.files),js:c.bundledJS,runtimeVersion:l}}throw new Error(`Unsupported runtime version: ${l}`)}catch(l){throw l instanceof Error&&l.message.indexOf(rn)&&(l.message=l.message.replace(rn,"")),l}};(()=>{const t=async()=>{const i=await fetch(Qw).then(a=>a.text());return(0,eval)(i),self.svelte.compile},e=new Map,n=new Map,s=Zf({initialContents:[],handleCacheMiss:async i=>(postMessage({type:"contentRequest",vizId:i}),new Promise(a=>{e.set(i,a)}))}),r=iS({initialMappings:{},handleCacheMiss:async i=>{const a=Vw();return postMessage({type:"resolveSlugRequest",slugKey:i,requestId:a}),new Promise(l=>{n.set(a,l)})}});addEventListener("message",async i=>{const a=i.data;switch(a.type){case"buildRequest":{const{files:l,enableSourcemap:c,requestId:u,vizId:d}=a;try{const m={type:"buildResponse",buildResult:await $S({files:l,enableSourcemap:c,rollup:Tb,getSvelteCompiler:t,vizCache:s,vizId:d,slugCache:r}),requestId:u};postMessage(m)}catch(m){const f={type:"buildResponse",error:""+m,requestId:u};postMessage(f)}break}case"contentResponse":{const l=e.get(a.vizId);l&&(l(a.content),e.delete(a.vizId));break}case"invalidateVizCacheRequest":{const{changedVizIds:l}=a;for(const c of l)s.invalidate(c);postMessage({type:"invalidateVizCacheResponse"});break}case"resolveSlugResponse":{const l=n.get(a.requestId);l&&(l(a.vizId),n.delete(a.requestId));break}}})})()})();