/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@ewen-lbh/houdini@1.3.1/build/lib-cjs/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";var import_streams,POOL_SIZE,_Blob,Blob3,fetch_blob_default,__create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__esm=(e,t)=>function(){return e&&(t=(0,e[__getOwnPropNames(e)[0]])(e=0)),t},__commonJS=(e,t)=>function(){return t||(0,e[__getOwnPropNames(e)[0]])((t={exports:{}}).exports,t),t.exports},__export=(e,t)=>{for(var r in t)__defProp(e,r,{get:t[r],enumerable:!0})},__copyProps=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of __getOwnPropNames(t))__hasOwnProp.call(e,i)||i===r||__defProp(e,i,{get:()=>t[i],enumerable:!(n=__getOwnPropDesc(t,i))||n.enumerable});return e},__toESM=(e,t,r)=>(r=null!=e?__create(__getProtoOf(e)):{},__copyProps(!t&&e&&e.__esModule?r:__defProp(r,"default",{value:e,enumerable:!0}),e)),__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),require_path=__commonJS({"../../node_modules/.pnpm/minimatch@5.1.2/node_modules/minimatch/lib/path.js"(e,t){var r="object"==typeof process&&process&&"win32"===process.platform;t.exports=r?{sep:"\\"}:{sep:"/"}}}),require_balanced_match=__commonJS({"../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(e,t){function r(e,t,r){e instanceof RegExp&&(e=n(e,r)),t instanceof RegExp&&(t=n(t,r));var s=i(e,t,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+e.length,s[1]),post:r.slice(s[1]+t.length)}}function n(e,t){var r=t.match(e);return r?r[0]:null}function i(e,t,r){var n,i,s,a,o,l=r.indexOf(e),c=r.indexOf(t,l+1),u=l;if(l>=0&&c>0){if(e===t)return[l,c];for(n=[],s=r.length;u>=0&&!o;)u==l?(n.push(u),l=r.indexOf(e,u+1)):1==n.length?o=[n.pop(),c]:((i=n.pop())<s&&(s=i,a=c),c=r.indexOf(t,u+1)),u=l<c&&l>=0?l:c;n.length&&(o=[s,a])}return o}t.exports=r,r.range=i}}),require_brace_expansion=__commonJS({"../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js"(e,t){var r=require_balanced_match();t.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return m(function(e){return e.split("\\\\").join(n).split("\\{").join(i).split("\\}").join(s).split("\\,").join(a).split("\\.").join(o)}(e),!0).map(c)};var n="\0SLASH"+Math.random()+"\0",i="\0OPEN"+Math.random()+"\0",s="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",o="\0PERIOD"+Math.random()+"\0";function l(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function c(e){return e.split(n).join("\\").split(i).join("{").split(s).join("}").split(a).join(",").split(o).join(".")}function u(e){if(!e)return[""];var t=[],n=r("{","}",e);if(!n)return e.split(",");var i=n.pre,s=n.body,a=n.post,o=i.split(",");o[o.length-1]+="{"+s+"}";var l=u(a);return a.length&&(o[o.length-1]+=l.shift(),o.push.apply(o,l)),t.push.apply(t,o),t}function p(e){return"{"+e+"}"}function d(e){return/^-?0\d/.test(e)}function h(e,t){return e<=t}function f(e,t){return e>=t}function m(e,t){var n=[],i=r("{","}",e);if(!i)return[e];var a=i.pre,o=i.post.length?m(i.post,!1):[""];if(/\$$/.test(i.pre))for(var c=0;c<o.length;c++){var y=a+"{"+i.body+"}"+o[c];n.push(y)}else{var g,b,S=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),T=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),v=S||T,E=i.body.indexOf(",")>=0;if(!v&&!E)return i.post.match(/,.*\}/)?m(e=i.pre+"{"+i.body+s+i.post):[e];if(v)g=i.body.split(/\.\./);else if(1===(g=u(i.body)).length&&1===(g=m(g[0],!1).map(p)).length)return o.map((function(e){return i.pre+g[0]+e}));if(v){var x=l(g[0]),_=l(g[1]),A=Math.max(g[0].length,g[1].length),P=3==g.length?Math.abs(l(g[2])):1,w=h;_<x&&(P*=-1,w=f);var D=g.some(d);b=[];for(var C=x;w(C,_);C+=P){var I;if(T)"\\"===(I=String.fromCharCode(C))&&(I="");else if(I=String(C),D){var N=A-I.length;if(N>0){var k=new Array(N+1).join("0");I=C<0?"-"+k+I.slice(1):k+I}}b.push(I)}}else{b=[];for(var O=0;O<g.length;O++)b.push.apply(b,m(g[O],!1))}for(O=0;O<b.length;O++)for(c=0;c<o.length;c++){y=a+b[O]+o[c];(!t||v||y)&&n.push(y)}}return n}}}),require_minimatch=__commonJS({"../../node_modules/.pnpm/minimatch@5.1.2/node_modules/minimatch/minimatch.js"(e,t){var r=t.exports=(e,t,r={})=>(m(t),!(!r.nocomment&&"#"===t.charAt(0))&&new b(t,r).match(e));t.exports=r;var n=require_path();r.sep=n.sep;var i=Symbol("globstar **");r.GLOBSTAR=i;var s=require_brace_expansion(),a={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},o="[^/]",l=o+"*?",c=e=>e.split("").reduce(((e,t)=>(e[t]=!0,e)),{}),u=c("().*{}+?[]^$\\!"),p=c("[.("),d=/\/+/;r.filter=(e,t={})=>(n,i,s)=>r(n,e,t);var h=(e,t={})=>{const r={};return Object.keys(e).forEach((t=>r[t]=e[t])),Object.keys(t).forEach((e=>r[e]=t[e])),r};r.defaults=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return r;const t=r,n=(r,n,i)=>t(r,n,h(e,i));return(n.Minimatch=class extends t.Minimatch{constructor(t,r){super(t,h(e,r))}}).defaults=r=>t.defaults(h(e,r)).Minimatch,n.filter=(r,n)=>t.filter(r,h(e,n)),n.defaults=r=>t.defaults(h(e,r)),n.makeRe=(r,n)=>t.makeRe(r,h(e,n)),n.braceExpand=(r,n)=>t.braceExpand(r,h(e,n)),n.match=(r,n,i)=>t.match(r,n,h(e,i)),n},r.braceExpand=(e,t)=>f(e,t);var f=(e,t={})=>(m(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:s(e)),m=e=>{if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},y=Symbol("subparse");r.makeRe=(e,t)=>new b(e,t||{}).makeRe(),r.match=(e,t,r={})=>{const n=new b(t,r);return e=e.filter((e=>n.match(e))),n.options.nonull&&!e.length&&e.push(t),e};var g=e=>e.replace(/[[\]\\]/g,"\\$&"),b=class{constructor(e,t){m(e),t||(t={}),this.options=t,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}debug(){}make(){const e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();let r=this.globSet=this.braceExpand();t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,r),r=this.globParts=r.map((e=>e.split(d))),this.debug(this.pattern,r),r=r.map(((e,t,r)=>e.map(this.parse,this))),this.debug(this.pattern,r),r=r.filter((e=>-1===e.indexOf(!1))),this.debug(this.pattern,r),this.set=r}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let t=!1,r=0;for(let n=0;n<e.length&&"!"===e.charAt(n);n++)t=!t,r++;r&&(this.pattern=e.slice(r)),this.negate=t}matchOne(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var s=0,a=0,o=e.length,l=t.length;s<o&&a<l;s++,a++){this.debug("matchOne loop");var c,u=t[a],p=e[s];if(this.debug(t,u,p),!1===u)return!1;if(u===i){this.debug("GLOBSTAR",[t,u,p]);var d=s,h=a+1;if(h===l){for(this.debug("** at the end");s<o;s++)if("."===e[s]||".."===e[s]||!n.dot&&"."===e[s].charAt(0))return!1;return!0}for(;d<o;){var f=e[d];if(this.debug("\nglobstar while",e,d,t,h,f),this.matchOne(e.slice(d),t.slice(h),r))return this.debug("globstar found match!",d,o,f),!0;if("."===f||".."===f||!n.dot&&"."===f.charAt(0)){this.debug("dot detected!",e,d,t,h);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!r||(this.debug("\n>>> no match, partial?",e,d,t,h),d!==o))}if("string"==typeof u?(c=p===u,this.debug("string match",u,p,c)):(c=p.match(u),this.debug("pattern match",u,p,c)),!c)return!1}if(s===o&&a===l)return!0;if(s===o)return r;if(a===l)return s===o-1&&""===e[s];throw new Error("wtf?")}braceExpand(){return f(this.pattern,this.options)}parse(e,t){m(e);const r=this.options;if("**"===e){if(!r.noglobstar)return i;e="*"}if(""===e)return"";let n="",s=!!r.nocase,c=!1;const d=[],h=[];let f,b,S,T,v=!1,E=-1,x=-1;const _="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",A=()=>{if(f){switch(f){case"*":n+=l,s=!0;break;case"?":n+=o,s=!0;break;default:n+="\\"+f}this.debug("clearStateChar %j %j",f,n),f=!1}};for(let t,i=0;i<e.length&&(t=e.charAt(i));i++)if(this.debug("%s\t%s %s %j",e,i,n,t),c){if("/"===t)return!1;u[t]&&(n+="\\"),n+=t,c=!1}else switch(t){case"/":return!1;case"\\":if(v&&"-"===e.charAt(i+1)){n+=t;continue}A(),c=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,i,n,t),v){this.debug("  in class"),"!"===t&&i===x+1&&(t="^"),n+=t;continue}this.debug("call clearStateChar %j",f),A(),f=t,r.noext&&A();continue;case"(":if(v){n+="(";continue}if(!f){n+="\\(";continue}d.push({type:f,start:i-1,reStart:n.length,open:a[f].open,close:a[f].close}),n+="!"===f?"(?:(?!(?:":"(?:",this.debug("plType %j %j",f,n),f=!1;continue;case")":if(v||!d.length){n+="\\)";continue}A(),s=!0,S=d.pop(),n+=S.close,"!"===S.type&&h.push(S),S.reEnd=n.length;continue;case"|":if(v||!d.length){n+="\\|";continue}A(),n+="|";continue;case"[":if(A(),v){n+="\\"+t;continue}v=!0,x=i,E=n.length,n+=t;continue;case"]":if(i===x+1||!v){n+="\\"+t;continue}b=e.substring(x+1,i);try{RegExp("["+g(b.replace(/\\([^-\]])/g,"$1"))+"]"),n+=t}catch(e){n=n.substring(0,E)+"(?:$.)"}s=!0,v=!1;continue;default:A(),!u[t]||"^"===t&&v||(n+="\\"),n+=t}for(v&&(b=e.slice(x+1),T=this.parse(b,y),n=n.substring(0,E)+"\\["+T[0],s=s||T[1]),S=d.pop();S;S=d.pop()){let e;e=n.slice(S.reStart+S.open.length),this.debug("setting tail",n,S),e=e.replace(/((?:\\{2}){0,64})(\\?)\|/g,((e,t,r)=>(r||(r="\\"),t+t+r+"|"))),this.debug("tail=%j\n   %s",e,e,S,n);const t="*"===S.type?l:"?"===S.type?o:"\\"+S.type;s=!0,n=n.slice(0,S.reStart)+t+"\\("+e}A(),c&&(n+="\\\\");const P=p[n.charAt(0)];for(let e=h.length-1;e>-1;e--){const r=h[e],i=n.slice(0,r.reStart),s=n.slice(r.reStart,r.reEnd-8);let a=n.slice(r.reEnd);const o=n.slice(r.reEnd-8,r.reEnd)+a,l=i.split("(").length-1;let c=a;for(let e=0;e<l;e++)c=c.replace(/\)[+*?]?/,"");a=c;n=i+s+a+(""===a&&t!==y?"$":"")+o}if(""!==n&&s&&(n="(?=.)"+n),P&&(n=_+n),t===y)return[n,s];if(!s)return(e=>e.replace(/\\(.)/g,"$1"))(e);const w=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",w),{_glob:e,_src:n})}catch(e){return new RegExp("$.")}}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const t=this.options,r=t.noglobstar?l:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=t.nocase?"i":"";let s=e.map((e=>((e=e.map((e=>"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e===i?i:e._src)).reduce(((e,t)=>(e[e.length-1]===i&&t===i||e.push(t),e)),[])).forEach(((t,n)=>{t===i&&e[n-1]!==i&&(0===n?e.length>1?e[n+1]="(?:\\/|"+r+"\\/)?"+e[n+1]:e[n]=r:n===e.length-1?e[n-1]+="(?:\\/|"+r+")?":(e[n-1]+="(?:\\/|\\/"+r+"\\/)"+e[n+1],e[n+1]=i))})),e.filter((e=>e!==i)).join("/")))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch(e){this.regexp=!1}return this.regexp}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;const r=this.options;"/"!==n.sep&&(e=e.split(n.sep).join("/")),e=e.split(d),this.debug(this.pattern,"split",e);const i=this.set;let s;this.debug(this.pattern,"set",i);for(let t=e.length-1;t>=0&&(s=e[t],!s);t--);for(let n=0;n<i.length;n++){const a=i[n];let o=e;r.matchBase&&1===a.length&&(o=[s]);if(this.matchOne(o,a,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate}static defaults(e){return r.defaults(e).Minimatch}};r.Minimatch=b}}),require_universalify=__commonJS({"../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js"(e){e.fromCallback=function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((r,n)=>{e.call(this,...t,((e,t)=>null!=e?n(e):r(t)))}));e.apply(this,t)}),"name",{value:e.name})},e.fromPromise=function(e){return Object.defineProperty((function(...t){const r=t[t.length-1];if("function"!=typeof r)return e.apply(this,t);e.apply(this,t.slice(0,-1)).then((e=>r(null,e)),r)}),"name",{value:e.name})}}}),require_polyfills=__commonJS({"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js"(e,t){var r,n=require("constants"),i=process.cwd,s=null,a=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return s||(s=i.call(process)),s};try{process.cwd()}catch(e){}"function"==typeof process.chdir&&(r=process.chdir,process.chdir=function(e){s=null,r.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,r)),t.exports=function(e){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&((t=e).lchmod=function(e,r,i){t.open(e,n.O_WRONLY|n.O_SYMLINK,r,(function(e,n){e?i&&i(e):t.fchmod(n,r,(function(e){t.close(n,(function(t){i&&i(e||t)}))}))}))},t.lchmodSync=function(e,r){var i,s=t.openSync(e,n.O_WRONLY|n.O_SYMLINK,r),a=!0;try{i=t.fchmodSync(s,r),a=!1}finally{if(a)try{t.closeSync(s)}catch(e){}else t.closeSync(s)}return i});var t;e.lutimes||function(e){n.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,r,i,s){e.open(t,n.O_SYMLINK,(function(t,n){t?s&&s(t):e.futimes(n,r,i,(function(t){e.close(n,(function(e){s&&s(t||e)}))}))}))},e.lutimesSync=function(t,r,i){var s,a=e.openSync(t,n.O_SYMLINK),o=!0;try{s=e.futimesSync(a,r,i),o=!1}finally{if(o)try{e.closeSync(a)}catch(e){}else e.closeSync(a)}return s}):e.futimes&&(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}(e);e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=l(e.stat),e.fstat=l(e.fstat),e.lstat=l(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){});e.chown&&!e.lchown&&(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){});"win32"===a&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function r(r,n,i){var s=Date.now(),a=0;t(r,n,(function o(l){if(l&&("EACCES"===l.code||"EPERM"===l.code)&&Date.now()-s<6e4)return setTimeout((function(){e.stat(n,(function(e,s){e&&"ENOENT"===e.code?t(r,n,o):i(l)}))}),a),void(a<100&&(a+=10));i&&i(l)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.rename));function r(t){return t?function(r,n,i){return t.call(e,r,n,(function(e){u(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function i(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!u(e))throw e}}:t}function s(t){return t?function(r,n,i,s){return t.call(e,r,n,i,(function(e){u(e)&&(e=null),s&&s.apply(this,arguments)}))}:t}function o(t){return t?function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!u(e))throw e}}:t}function l(t){return t?function(r,n,i){function s(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?t.call(e,r,n,s):t.call(e,r,s)}:t}function c(t){return t?function(r,n){var i=n?t.call(e,r,n):t.call(e,r);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:t}function u(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read="function"!=typeof e.read?e.read:function(t){function r(r,n,i,s,a,o){var l;if(o&&"function"==typeof o){var c=0;l=function(u,p,d){if(u&&"EAGAIN"===u.code&&c<10)return c++,t.call(e,r,n,i,s,a,l);o.apply(this,arguments)}}return t.call(e,r,n,i,s,a,l)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(p=e.readSync,function(t,r,n,i,s){for(var a=0;;)try{return p.call(e,t,r,n,i,s)}catch(e){if("EAGAIN"===e.code&&a<10){a++;continue}throw e}});var p}}}),require_legacy_streams=__commonJS({"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js"(e,t){var r=require("stream").Stream;t.exports=function(e){return{ReadStream:function t(n,i){if(!(this instanceof t))return new t(n,i);r.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,i=i||{};for(var a=Object.keys(i),o=0,l=a.length;o<l;o++){var c=a[o];this[c]=i[c]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){s._read()}));e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return s.emit("error",e),void(s.readable=!1);s.fd=t,s.emit("open",t),s._read()}))},WriteStream:function t(n,i){if(!(this instanceof t))return new t(n,i);r.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),a=0,o=s.length;a<o;a++){var l=s[a];this[l]=i[l]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}}}),require_clone=__commonJS({"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js"(e,t){t.exports=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var t={__proto__:r(e)};else t=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})),t};var r=Object.getPrototypeOf||function(e){return e.__proto__}}}),require_graceful_fs=__commonJS({"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js"(e,t){var r,n,i=require("fs"),s=require_polyfills(),a=require_legacy_streams(),o=require_clone(),l=require("util");function c(e,t){Object.defineProperty(e,r,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(r=Symbol.for("graceful-fs.queue"),n=Symbol.for("graceful-fs.previous")):(r="___graceful-fs.queue",n="___graceful-fs.previous");var u,p,d=function(){};function h(e){s(e),e.gracefulify=h,e.createReadStream=function(t,r){return new e.ReadStream(t,r)},e.createWriteStream=function(t,r){return new e.WriteStream(t,r)};var t=e.readFile;e.readFile=function(e,r,n){"function"==typeof r&&(n=r,r=null);return function e(r,n,i,s){return t(r,n,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):f([e,[r,n,i],t,s||Date.now(),Date.now()])}))}(e,r,n)};var r=e.writeFile;e.writeFile=function(e,t,n,i){"function"==typeof n&&(i=n,n=null);return function e(t,n,i,s,a){return r(t,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof s&&s.apply(this,arguments):f([e,[t,n,i,s],r,a||Date.now(),Date.now()])}))}(e,t,n,i)};var n=e.appendFile;n&&(e.appendFile=function(e,t,r,i){"function"==typeof r&&(i=r,r=null);return function e(t,r,i,s,a){return n(t,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof s&&s.apply(this,arguments):f([e,[t,r,i,s],n,a||Date.now(),Date.now()])}))}(e,t,r,i)});var i=e.copyFile;i&&(e.copyFile=function(e,t,r,n){"function"==typeof r&&(n=r,r=0);return function e(t,r,n,s,a){return i(t,r,n,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof s&&s.apply(this,arguments):f([e,[t,r,n,s],i,a||Date.now(),Date.now()])}))}(e,t,r,n)});var o=e.readdir;e.readdir=function(e,t,r){"function"==typeof t&&(r=t,t=null);var n=l.test(process.version)?function(e,t,r,n){return o(e,i(e,t,r,n))}:function(e,t,r,n){return o(e,t,i(e,t,r,n))};return n(e,t,r);function i(e,t,r,i){return function(s,a){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?(a&&a.sort&&a.sort(),"function"==typeof r&&r.call(this,s,a)):f([n,[e,t,r],s,i||Date.now(),Date.now()])}}};var l=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var c=a(e);y=c.ReadStream,g=c.WriteStream}var u=e.ReadStream;u&&(y.prototype=Object.create(u.prototype),y.prototype.open=function(){var e=this;S(e.path,e.flags,e.mode,(function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())}))});var p=e.WriteStream;p&&(g.prototype=Object.create(p.prototype),g.prototype.open=function(){var e=this;S(e.path,e.flags,e.mode,(function(t,r){t?(e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return y},set:function(e){y=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return g},set:function(e){g=e},enumerable:!0,configurable:!0});var d=y;Object.defineProperty(e,"FileReadStream",{get:function(){return d},set:function(e){d=e},enumerable:!0,configurable:!0});var m=g;function y(e,t){return this instanceof y?(u.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function g(e,t){return this instanceof g?(p.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return m},set:function(e){m=e},enumerable:!0,configurable:!0});var b=e.open;function S(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,i,s){return b(t,r,n,(function(a,o){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof i&&i.apply(this,arguments):f([e,[t,r,n,i],a,s||Date.now(),Date.now()])}))}(e,t,r,n)}return e.open=S,e}function f(e){d("ENQUEUE",e[0].name,e[1]),i[r].push(e),y()}function m(){for(var e=Date.now(),t=0;t<i[r].length;++t)i[r][t].length>2&&(i[r][t][3]=e,i[r][t][4]=e);y()}function y(){if(clearTimeout(p),p=void 0,0!==i[r].length){var e=i[r].shift(),t=e[0],n=e[1],s=e[2],a=e[3],o=e[4];if(void 0===a)d("RETRY",t.name,n),t.apply(null,n);else if(Date.now()-a>=6e4){d("TIMEOUT",t.name,n);var l=n.pop();"function"==typeof l&&l.call(null,s)}else{var c=Date.now()-o,u=Math.max(o-a,1);c>=Math.min(1.2*u,100)?(d("RETRY",t.name,n),t.apply(null,n.concat([a]))):i[r].push(e)}void 0===p&&(p=setTimeout(y,0))}}l.debuglog?d=l.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(d=function(){var e=l.format.apply(l,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),i[r]||(u=global[r]||[],c(i,u),i.close=function(e){function t(t,r){return e.call(i,t,(function(e){e||m(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(t,n,{value:e}),t}(i.close),i.closeSync=function(e){function t(t){e.apply(i,arguments),m()}return Object.defineProperty(t,n,{value:e}),t}(i.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){d(i[r]),require("assert").equal(i[r].length,0)}))),global[r]||c(global,i[r]),t.exports=h(o(i)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!i.__patched&&(t.exports=h(i),i.__patched=!0)}}),require_fs=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/fs/index.js"(e){var t=require_universalify().fromCallback,r=require_graceful_fs(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>"function"==typeof r[e]));Object.assign(e,r),n.forEach((n=>{e[n]=t(r[n])})),e.exists=function(e,t){return"function"==typeof t?r.exists(e,t):new Promise((t=>r.exists(e,t)))},e.read=function(e,t,n,i,s,a){return"function"==typeof a?r.read(e,t,n,i,s,a):new Promise(((a,o)=>{r.read(e,t,n,i,s,((e,t,r)=>{if(e)return o(e);a({bytesRead:t,buffer:r})}))}))},e.write=function(e,t,...n){return"function"==typeof n[n.length-1]?r.write(e,t,...n):new Promise(((i,s)=>{r.write(e,t,...n,((e,t,r)=>{if(e)return s(e);i({bytesWritten:t,buffer:r})}))}))},"function"==typeof r.writev&&(e.writev=function(e,t,...n){return"function"==typeof n[n.length-1]?r.writev(e,t,...n):new Promise(((i,s)=>{r.writev(e,t,...n,((e,t,r)=>{if(e)return s(e);i({bytesWritten:t,buffers:r})}))}))}),"function"==typeof r.realpath.native?e.realpath.native=t(r.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}}),require_utils=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/mkdirs/utils.js"(e,t){var r=require("path");t.exports.checkPath=function(e){if("win32"===process.platform){if(/[<>:"|?*]/.test(e.replace(r.parse(e).root,""))){const t=new Error(`Path contains invalid characters: ${e}`);throw t.code="EINVAL",t}}}}}),require_make_dir=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/mkdirs/make-dir.js"(e,t){var r=require_fs(),{checkPath:n}=require_utils(),i=e=>"number"==typeof e?e:{mode:511,...e}.mode;t.exports.makeDir=async(e,t)=>(n(e),r.mkdir(e,{mode:i(t),recursive:!0})),t.exports.makeDirSync=(e,t)=>(n(e),r.mkdirSync(e,{mode:i(t),recursive:!0}))}}),require_mkdirs=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/mkdirs/index.js"(e,t){var r=require_universalify().fromPromise,{makeDir:n,makeDirSync:i}=require_make_dir(),s=r(n);t.exports={mkdirs:s,mkdirsSync:i,mkdirp:s,mkdirpSync:i,ensureDir:s,ensureDirSync:i}}}),require_path_exists=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/path-exists/index.js"(e,t){var r=require_universalify().fromPromise,n=require_fs();t.exports={pathExists:r((function(e){return n.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:n.existsSync}}}),require_utimes=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/util/utimes.js"(e,t){var r=require_graceful_fs();t.exports={utimesMillis:function(e,t,n,i){r.open(e,"r+",((e,s)=>{if(e)return i(e);r.futimes(s,t,n,(e=>{r.close(s,(t=>{i&&i(e||t)}))}))}))},utimesMillisSync:function(e,t,n){const i=r.openSync(e,"r+");return r.futimesSync(i,t,n),r.closeSync(i)}}}}),require_stat=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/util/stat.js"(e,t){var r=require_fs(),n=require("path"),i=require("util");function s(e,t,n){const i=n.dereference?e=>r.stat(e,{bigint:!0}):e=>r.lstat(e,{bigint:!0});return Promise.all([i(e),i(t).catch((e=>{if("ENOENT"===e.code)return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}function a(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function o(e,t){const r=n.resolve(e).split(n.sep).filter((e=>e)),i=n.resolve(t).split(n.sep).filter((e=>e));return r.reduce(((e,t,r)=>e&&i[r]===t),!0)}function l(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}t.exports={checkPaths:function(e,t,r,c,u){i.callbackify(s)(e,t,c,((i,s)=>{if(i)return u(i);const{srcStat:c,destStat:p}=s;if(p){if(a(c,p)){const i=n.basename(e),s=n.basename(t);return"move"===r&&i!==s&&i.toLowerCase()===s.toLowerCase()?u(null,{srcStat:c,destStat:p,isChangingCase:!0}):u(new Error("Source and destination must not be the same."))}if(c.isDirectory()&&!p.isDirectory())return u(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!c.isDirectory()&&p.isDirectory())return u(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return c.isDirectory()&&o(e,t)?u(new Error(l(e,t,r))):u(null,{srcStat:c,destStat:p})}))},checkPathsSync:function(e,t,i,s){const{srcStat:c,destStat:u}=function(e,t,n){let i;const s=n.dereference?e=>r.statSync(e,{bigint:!0}):e=>r.lstatSync(e,{bigint:!0}),a=s(e);try{i=s(t)}catch(e){if("ENOENT"===e.code)return{srcStat:a,destStat:null};throw e}return{srcStat:a,destStat:i}}(e,t,s);if(u){if(a(c,u)){const r=n.basename(e),s=n.basename(t);if("move"===i&&r!==s&&r.toLowerCase()===s.toLowerCase())return{srcStat:c,destStat:u,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(c.isDirectory()&&!u.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!c.isDirectory()&&u.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(c.isDirectory()&&o(e,t))throw new Error(l(e,t,i));return{srcStat:c,destStat:u}},checkParentPaths:function e(t,i,s,o,c){const u=n.resolve(n.dirname(t)),p=n.resolve(n.dirname(s));if(p===u||p===n.parse(p).root)return c();r.stat(p,{bigint:!0},((r,n)=>r?"ENOENT"===r.code?c():c(r):a(i,n)?c(new Error(l(t,s,o))):e(t,i,p,o,c)))},checkParentPathsSync:function e(t,i,s,o){const c=n.resolve(n.dirname(t)),u=n.resolve(n.dirname(s));if(u===c||u===n.parse(u).root)return;let p;try{p=r.statSync(u,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(a(i,p))throw new Error(l(t,s,o));return e(t,i,u,o)},isSrcSubdir:o,areIdentical:a}}}),require_copy=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/copy/copy.js"(e,t){var r=require_graceful_fs(),n=require("path"),i=require_mkdirs().mkdirs,s=require_path_exists().pathExists,a=require_utimes().utimesMillis,o=require_stat();function l(e,t,r,a,o){const l=n.dirname(r);s(l,((n,s)=>n?o(n):s?u(e,t,r,a,o):void i(l,(n=>n?o(n):u(e,t,r,a,o)))))}function c(e,t,r,n,i,s){Promise.resolve(i.filter(r,n)).then((a=>a?e(t,r,n,i,s):s()),(e=>s(e)))}function u(e,t,i,s,a){(s.dereference?r.stat:r.lstat)(t,((l,c)=>l?a(l):c.isDirectory()?function(e,t,n,i,s,a){return t?f(n,i,s,a):function(e,t,n,i,s){r.mkdir(n,(r=>{if(r)return s(r);f(t,n,i,(t=>t?s(t):h(n,e,s)))}))}(e.mode,n,i,s,a)}(c,e,t,i,s,a):c.isFile()||c.isCharacterDevice()||c.isBlockDevice()?function(e,t,n,i,s,a){return t?function(e,t,n,i,s){if(!i.overwrite)return i.errorOnExist?s(new Error(`'${n}' already exists`)):s();r.unlink(n,(r=>r?s(r):p(e,t,n,i,s)))}(e,n,i,s,a):p(e,n,i,s,a)}(c,e,t,i,s,a):c.isSymbolicLink()?function(e,t,i,s,a){r.readlink(t,((t,l)=>t?a(t):(s.dereference&&(l=n.resolve(process.cwd(),l)),e?void r.readlink(i,((t,c)=>t?"EINVAL"===t.code||"UNKNOWN"===t.code?r.symlink(l,i,a):a(t):(s.dereference&&(c=n.resolve(process.cwd(),c)),o.isSrcSubdir(l,c)?a(new Error(`Cannot copy '${l}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&o.isSrcSubdir(c,l)?a(new Error(`Cannot overwrite '${c}' with '${l}'.`)):function(e,t,n){r.unlink(t,(i=>i?n(i):r.symlink(e,t,n)))}(l,i,a)))):r.symlink(l,i,a))))}(e,t,i,s,a):c.isSocket()?a(new Error(`Cannot copy a socket file: ${t}`)):c.isFIFO()?a(new Error(`Cannot copy a FIFO pipe: ${t}`)):a(new Error(`Unknown file: ${t}`))))}function p(e,t,n,i,s){r.copyFile(t,n,(r=>r?s(r):i.preserveTimestamps?function(e,t,r,n){if(function(e){return!(128&e)}(e))return function(e,t,r){return h(e,128|t,r)}(r,e,(i=>i?n(i):d(e,t,r,n)));return d(e,t,r,n)}(e.mode,t,n,s):h(n,e.mode,s)))}function d(e,t,n,i){!function(e,t,n){r.stat(e,((e,r)=>e?n(e):a(t,r.atime,r.mtime,n)))}(t,n,(t=>t?i(t):h(n,e,i)))}function h(e,t,n){return r.chmod(e,t,n)}function f(e,t,n,i){r.readdir(e,((r,s)=>r?i(r):m(s,e,t,n,i)))}function m(e,t,r,i,s){const a=e.pop();return a?function(e,t,r,i,s,a){const l=n.join(r,t),p=n.join(i,t);o.checkPaths(l,p,"copy",s,((t,n)=>{if(t)return a(t);const{destStat:o}=n;!function(e,t,r,n,i){n.filter?c(u,e,t,r,n,i):u(e,t,r,n,i)}(o,l,p,s,(t=>t?a(t):m(e,r,i,s,a)))}))}(e,a,t,r,i,s):s()}t.exports=function(e,t,r,n){"function"!=typeof r||n?"function"==typeof r&&(r={filter:r}):(n=r,r={}),n=n||function(){},(r=r||{}).clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0001"),o.checkPaths(e,t,"copy",r,((i,s)=>{if(i)return n(i);const{srcStat:a,destStat:u}=s;o.checkParentPaths(e,a,t,"copy",(i=>i?n(i):r.filter?c(l,u,e,t,r,n):l(u,e,t,r,n)))}))}}}),require_copy_sync=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/copy/copy-sync.js"(e,t){var r=require_graceful_fs(),n=require("path"),i=require_mkdirs().mkdirsSync,s=require_utimes().utimesMillisSync,a=require_stat();function o(e,t,i,s){const o=(s.dereference?r.statSync:r.lstatSync)(t);if(o.isDirectory())return function(e,t,n,i,s){return t?u(n,i,s):function(e,t,n,i){return r.mkdirSync(n),u(t,n,i),c(n,e)}(e.mode,n,i,s)}(o,e,t,i,s);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return function(e,t,n,i,s){return t?function(e,t,n,i){if(i.overwrite)return r.unlinkSync(n),l(e,t,n,i);if(i.errorOnExist)throw new Error(`'${n}' already exists`)}(e,n,i,s):l(e,n,i,s)}(o,e,t,i,s);if(o.isSymbolicLink())return function(e,t,i,s){let o=r.readlinkSync(t);s.dereference&&(o=n.resolve(process.cwd(),o));if(e){let e;try{e=r.readlinkSync(i)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return r.symlinkSync(o,i);throw e}if(s.dereference&&(e=n.resolve(process.cwd(),e)),a.isSrcSubdir(o,e))throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${e}'.`);if(r.statSync(i).isDirectory()&&a.isSrcSubdir(e,o))throw new Error(`Cannot overwrite '${e}' with '${o}'.`);return function(e,t){return r.unlinkSync(t),r.symlinkSync(e,t)}(o,i)}return r.symlinkSync(o,i)}(e,t,i,s);if(o.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(o.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}function l(e,t,n,i){return r.copyFileSync(t,n),i.preserveTimestamps&&function(e,t,n){(function(e){return!(128&e)})(e)&&function(e,t){c(e,128|t)}(n,e);(function(e,t){const n=r.statSync(e);s(t,n.atime,n.mtime)})(t,n)}(e.mode,t,n),c(n,e.mode)}function c(e,t){return r.chmodSync(e,t)}function u(e,t,i){r.readdirSync(e).forEach((r=>function(e,t,r,i){const s=n.join(t,e),l=n.join(r,e),{destStat:c}=a.checkPathsSync(s,l,"copy",i);return function(e,t,r,n){if(!n.filter||n.filter(t,r))return o(e,t,r,n)}(c,s,l,i)}(r,e,t,i)))}t.exports=function(e,t,s){"function"==typeof s&&(s={filter:s}),(s=s||{}).clobber=!("clobber"in s)||!!s.clobber,s.overwrite="overwrite"in s?!!s.overwrite:s.clobber,s.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0002");const{srcStat:l,destStat:c}=a.checkPathsSync(e,t,"copy",s);return a.checkParentPathsSync(e,l,t,"copy"),function(e,t,s,a){if(a.filter&&!a.filter(t,s))return;const l=n.dirname(s);r.existsSync(l)||i(l);return o(e,t,s,a)}(c,e,t,s)}}}),require_copy2=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/copy/index.js"(e,t){var r=require_universalify().fromCallback;t.exports={copy:r(require_copy()),copySync:require_copy_sync()}}}),require_rimraf=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/remove/rimraf.js"(e,t){var r=require_graceful_fs(),n=require("path"),i=require("assert"),s="win32"===process.platform;function a(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach((t=>{e[t]=e[t]||r[t],e[t+="Sync"]=e[t]||r[t]})),e.maxBusyTries=e.maxBusyTries||3}function o(e,t,r){let n=0;"function"==typeof t&&(r=t,t={}),i(e,"rimraf: missing path"),i.strictEqual(typeof e,"string","rimraf: path should be a string"),i.strictEqual(typeof r,"function","rimraf: callback function required"),i(t,"rimraf: invalid options argument provided"),i.strictEqual(typeof t,"object","rimraf: options should be object"),a(t),l(e,t,(function i(s){if(s){if(("EBUSY"===s.code||"ENOTEMPTY"===s.code||"EPERM"===s.code)&&n<t.maxBusyTries){n++;return setTimeout((()=>l(e,t,i)),100*n)}"ENOENT"===s.code&&(s=null)}r(s)}))}function l(e,t,r){i(e),i(t),i("function"==typeof r),t.lstat(e,((n,i)=>n&&"ENOENT"===n.code?r(null):n&&"EPERM"===n.code&&s?c(e,t,n,r):i&&i.isDirectory()?p(e,t,n,r):void t.unlink(e,(n=>{if(n){if("ENOENT"===n.code)return r(null);if("EPERM"===n.code)return s?c(e,t,n,r):p(e,t,n,r);if("EISDIR"===n.code)return p(e,t,n,r)}return r(n)}))))}function c(e,t,r,n){i(e),i(t),i("function"==typeof n),t.chmod(e,438,(i=>{i?n("ENOENT"===i.code?null:r):t.stat(e,((i,s)=>{i?n("ENOENT"===i.code?null:r):s.isDirectory()?p(e,t,r,n):t.unlink(e,n)}))}))}function u(e,t,r){let n;i(e),i(t);try{t.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;throw r}try{n=t.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw r}n.isDirectory()?h(e,t,r):t.unlinkSync(e)}function p(e,t,r,s){i(e),i(t),i("function"==typeof s),t.rmdir(e,(a=>{!a||"ENOTEMPTY"!==a.code&&"EEXIST"!==a.code&&"EPERM"!==a.code?a&&"ENOTDIR"===a.code?s(r):s(a):function(e,t,r){i(e),i(t),i("function"==typeof r),t.readdir(e,((i,s)=>{if(i)return r(i);let a,l=s.length;if(0===l)return t.rmdir(e,r);s.forEach((i=>{o(n.join(e,i),t,(n=>{if(!a)return n?r(a=n):void(0==--l&&t.rmdir(e,r))}))}))}))}(e,t,s)}))}function d(e,t){let r;a(t=t||{}),i(e,"rimraf: missing path"),i.strictEqual(typeof e,"string","rimraf: path should be a string"),i(t,"rimraf: missing options"),i.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(r){if("ENOENT"===r.code)return;"EPERM"===r.code&&s&&u(e,t,r)}try{r&&r.isDirectory()?h(e,t,null):t.unlinkSync(e)}catch(r){if("ENOENT"===r.code)return;if("EPERM"===r.code)return s?u(e,t,r):h(e,t,r);if("EISDIR"!==r.code)throw r;h(e,t,r)}}function h(e,t,r){i(e),i(t);try{t.rmdirSync(e)}catch(a){if("ENOTDIR"===a.code)throw r;if("ENOTEMPTY"===a.code||"EEXIST"===a.code||"EPERM"===a.code)!function(e,t){if(i(e),i(t),t.readdirSync(e).forEach((r=>d(n.join(e,r),t))),!s){return t.rmdirSync(e,t)}{const r=Date.now();do{try{return t.rmdirSync(e,t)}catch{}}while(Date.now()-r<500)}}(e,t);else if("ENOENT"!==a.code)throw a}}t.exports=o,o.sync=d}}),require_remove=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/remove/index.js"(e,t){var r=require_graceful_fs(),n=require_universalify().fromCallback,i=require_rimraf();t.exports={remove:n((function(e,t){if(r.rm)return r.rm(e,{recursive:!0,force:!0},t);i(e,t)})),removeSync:function(e){if(r.rmSync)return r.rmSync(e,{recursive:!0,force:!0});i.sync(e)}}}}),require_empty=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/empty/index.js"(e,t){var r=require_universalify().fromPromise,n=require_fs(),i=require("path"),s=require_mkdirs(),a=require_remove(),o=r((async function(e){let t;try{t=await n.readdir(e)}catch{return s.mkdirs(e)}return Promise.all(t.map((t=>a.remove(i.join(e,t)))))}));function l(e){let t;try{t=n.readdirSync(e)}catch{return s.mkdirsSync(e)}t.forEach((t=>{t=i.join(e,t),a.removeSync(t)}))}t.exports={emptyDirSync:l,emptydirSync:l,emptyDir:o,emptydir:o}}}),require_file=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/ensure/file.js"(e,t){var r=require_universalify().fromCallback,n=require("path"),i=require_graceful_fs(),s=require_mkdirs();t.exports={createFile:r((function(e,t){function r(){i.writeFile(e,"",(e=>{if(e)return t(e);t()}))}i.stat(e,((a,o)=>{if(!a&&o.isFile())return t();const l=n.dirname(e);i.stat(l,((e,n)=>{if(e)return"ENOENT"===e.code?s.mkdirs(l,(e=>{if(e)return t(e);r()})):t(e);n.isDirectory()?r():i.readdir(l,(e=>{if(e)return t(e)}))}))}))})),createFileSync:function(e){let t;try{t=i.statSync(e)}catch{}if(t&&t.isFile())return;const r=n.dirname(e);try{i.statSync(r).isDirectory()||i.readdirSync(r)}catch(e){if(!e||"ENOENT"!==e.code)throw e;s.mkdirsSync(r)}i.writeFileSync(e,"")}}}}),require_link=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/ensure/link.js"(e,t){var r=require_universalify().fromCallback,n=require("path"),i=require_graceful_fs(),s=require_mkdirs(),a=require_path_exists().pathExists,{areIdentical:o}=require_stat();t.exports={createLink:r((function(e,t,r){function l(e,t){i.link(e,t,(e=>{if(e)return r(e);r(null)}))}i.lstat(t,((c,u)=>{i.lstat(e,((i,c)=>{if(i)return i.message=i.message.replace("lstat","ensureLink"),r(i);if(u&&o(c,u))return r(null);const p=n.dirname(t);a(p,((n,i)=>n?r(n):i?l(e,t):void s.mkdirs(p,(n=>{if(n)return r(n);l(e,t)}))))}))}))})),createLinkSync:function(e,t){let r;try{r=i.lstatSync(t)}catch{}try{const t=i.lstatSync(e);if(r&&o(t,r))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const a=n.dirname(t);return i.existsSync(a)||s.mkdirsSync(a),i.linkSync(e,t)}}}}),require_symlink_paths=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(e,t){var r=require("path"),n=require_graceful_fs(),i=require_path_exists().pathExists;t.exports={symlinkPaths:function(e,t,s){if(r.isAbsolute(e))return n.lstat(e,(t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),s(t)):s(null,{toCwd:e,toDst:e})));{const a=r.dirname(t),o=r.join(a,e);return i(o,((t,i)=>t?s(t):i?s(null,{toCwd:o,toDst:e}):n.lstat(e,(t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),s(t)):s(null,{toCwd:e,toDst:r.relative(a,e)})))))}},symlinkPathsSync:function(e,t){let i;if(r.isAbsolute(e)){if(i=n.existsSync(e),!i)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}{const s=r.dirname(t),a=r.join(s,e);if(i=n.existsSync(a),i)return{toCwd:a,toDst:e};if(i=n.existsSync(e),!i)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:r.relative(s,e)}}}}}}),require_symlink_type=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/ensure/symlink-type.js"(e,t){var r=require_graceful_fs();t.exports={symlinkType:function(e,t,n){if(n="function"==typeof t?t:n,t="function"!=typeof t&&t)return n(null,t);r.lstat(e,((e,r)=>{if(e)return n(null,"file");t=r&&r.isDirectory()?"dir":"file",n(null,t)}))},symlinkTypeSync:function(e,t){let n;if(t)return t;try{n=r.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}}}}),require_symlink=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/ensure/symlink.js"(e,t){var r=require_universalify().fromCallback,n=require("path"),i=require_fs(),s=require_mkdirs(),a=s.mkdirs,o=s.mkdirsSync,l=require_symlink_paths(),c=l.symlinkPaths,u=l.symlinkPathsSync,p=require_symlink_type(),d=p.symlinkType,h=p.symlinkTypeSync,f=require_path_exists().pathExists,{areIdentical:m}=require_stat();function y(e,t,r,s){c(e,t,((o,l)=>{if(o)return s(o);e=l.toDst,d(l.toCwd,r,((r,o)=>{if(r)return s(r);const l=n.dirname(t);f(l,((r,n)=>r?s(r):n?i.symlink(e,t,o,s):void a(l,(r=>{if(r)return s(r);i.symlink(e,t,o,s)}))))}))}))}t.exports={createSymlink:r((function(e,t,r,n){n="function"==typeof r?r:n,r="function"!=typeof r&&r,i.lstat(t,((s,a)=>{!s&&a.isSymbolicLink()?Promise.all([i.stat(e),i.stat(t)]).then((([i,s])=>{if(m(i,s))return n(null);y(e,t,r,n)})):y(e,t,r,n)}))})),createSymlinkSync:function(e,t,r){let s;try{s=i.lstatSync(t)}catch{}if(s&&s.isSymbolicLink()){const r=i.statSync(e),n=i.statSync(t);if(m(r,n))return}const a=u(e,t);e=a.toDst,r=h(a.toCwd,r);const l=n.dirname(t);return i.existsSync(l)||o(l),i.symlinkSync(e,t,r)}}}}),require_ensure=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/ensure/index.js"(e,t){var{createFile:r,createFileSync:n}=require_file(),{createLink:i,createLinkSync:s}=require_link(),{createSymlink:a,createSymlinkSync:o}=require_symlink();t.exports={createFile:r,createFileSync:n,ensureFile:r,ensureFileSync:n,createLink:i,createLinkSync:s,ensureLink:i,ensureLinkSync:s,createSymlink:a,createSymlinkSync:o,ensureSymlink:a,ensureSymlinkSync:o}}}),require_utils2=__commonJS({"../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(e,t){t.exports={stringify:function(e,{EOL:t="\n",finalEOL:r=!0,replacer:n=null,spaces:i}={}){const s=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+s},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}}}}),require_jsonfile=__commonJS({"../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/index.js"(e,t){var r;try{r=require_graceful_fs()}catch(e){r=require("fs")}var n=require_universalify(),{stringify:i,stripBom:s}=require_utils2();var a={readFile:n.fromPromise((async function(e,t={}){"string"==typeof t&&(t={encoding:t});const i=t.fs||r,a=!("throws"in t)||t.throws;let o,l=await n.fromCallback(i.readFile)(e,t);l=s(l);try{o=JSON.parse(l,t?t.reviver:null)}catch(t){if(a)throw t.message=`${e}: ${t.message}`,t;return null}return o})),readFileSync:function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||r,i=!("throws"in t)||t.throws;try{let r=n.readFileSync(e,t);return r=s(r),JSON.parse(r,t.reviver)}catch(t){if(i)throw t.message=`${e}: ${t.message}`,t;return null}},writeFile:n.fromPromise((async function(e,t,s={}){const a=s.fs||r,o=i(t,s);await n.fromCallback(a.writeFile)(e,o,s)})),writeFileSync:function(e,t,n={}){const s=n.fs||r,a=i(t,n);return s.writeFileSync(e,a,n)}};t.exports=a}}),require_jsonfile2=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/json/jsonfile.js"(e,t){var r=require_jsonfile();t.exports={readJson:r.readFile,readJsonSync:r.readFileSync,writeJson:r.writeFile,writeJsonSync:r.writeFileSync}}}),require_output_file=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/output-file/index.js"(e,t){var r=require_universalify().fromCallback,n=require_graceful_fs(),i=require("path"),s=require_mkdirs(),a=require_path_exists().pathExists;t.exports={outputFile:r((function(e,t,r,o){"function"==typeof r&&(o=r,r="utf8");const l=i.dirname(e);a(l,((i,a)=>i?o(i):a?n.writeFile(e,t,r,o):void s.mkdirs(l,(i=>{if(i)return o(i);n.writeFile(e,t,r,o)}))))})),outputFileSync:function(e,...t){const r=i.dirname(e);if(n.existsSync(r))return n.writeFileSync(e,...t);s.mkdirsSync(r),n.writeFileSync(e,...t)}}}}),require_output_json=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/json/output-json.js"(e,t){var{stringify:r}=require_utils2(),{outputFile:n}=require_output_file();t.exports=async function(e,t,i={}){const s=r(t,i);await n(e,s,i)}}}),require_output_json_sync=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/json/output-json-sync.js"(e,t){var{stringify:r}=require_utils2(),{outputFileSync:n}=require_output_file();t.exports=function(e,t,i){const s=r(t,i);n(e,s,i)}}}),require_json=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/json/index.js"(e,t){var r=require_universalify().fromPromise,n=require_jsonfile2();n.outputJson=r(require_output_json()),n.outputJsonSync=require_output_json_sync(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,t.exports=n}}),require_move=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/move/move.js"(e,t){var r=require_graceful_fs(),n=require("path"),i=require_copy2().copy,s=require_remove().remove,a=require_mkdirs().mkdirp,o=require_path_exists().pathExists,l=require_stat();function c(e,t,r,n,i){return n?u(e,t,r,i):r?s(t,(n=>n?i(n):u(e,t,r,i))):void o(t,((n,s)=>n?i(n):s?i(new Error("dest already exists.")):u(e,t,r,i)))}function u(e,t,n,a){r.rename(e,t,(r=>r?"EXDEV"!==r.code?a(r):function(e,t,r,n){const a={overwrite:r,errorOnExist:!0};i(e,t,a,(t=>t?n(t):s(e,n)))}(e,t,n,a):a()))}t.exports=function(e,t,r,i){"function"==typeof r&&(i=r,r={});const s=(r=r||{}).overwrite||r.clobber||!1;l.checkPaths(e,t,"move",r,((r,o)=>{if(r)return i(r);const{srcStat:u,isChangingCase:p=!1}=o;l.checkParentPaths(e,u,t,"move",(r=>r?i(r):function(e){const t=n.dirname(e);return n.parse(t).root===t}(t)?c(e,t,s,p,i):void a(n.dirname(t),(r=>r?i(r):c(e,t,s,p,i)))))}))}}}),require_move_sync=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/move/move-sync.js"(e,t){var r=require_graceful_fs(),n=require("path"),i=require_copy2().copySync,s=require_remove().removeSync,a=require_mkdirs().mkdirpSync,o=require_stat();function l(e,t,n){try{r.renameSync(e,t)}catch(r){if("EXDEV"!==r.code)throw r;return function(e,t,r){const n={overwrite:r,errorOnExist:!0};return i(e,t,n),s(e)}(e,t,n)}}t.exports=function(e,t,i){const c=(i=i||{}).overwrite||i.clobber||!1,{srcStat:u,isChangingCase:p=!1}=o.checkPathsSync(e,t,"move",i);return o.checkParentPathsSync(e,u,t,"move"),function(e){const t=n.dirname(e);return n.parse(t).root===t}(t)||a(n.dirname(t)),function(e,t,n,i){if(i)return l(e,t,n);if(n)return s(t),l(e,t,n);if(r.existsSync(t))throw new Error("dest already exists.");return l(e,t,n)}(e,t,c,p)}}}),require_move2=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/move/index.js"(e,t){var r=require_universalify().fromCallback;t.exports={move:r(require_move()),moveSync:require_move_sync()}}}),require_lib=__commonJS({"../../node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/index.js"(e,t){t.exports={...require_fs(),...require_copy2(),...require_empty(),...require_ensure(),...require_json(),...require_mkdirs(),...require_move2(),...require_output_file(),...require_path_exists(),...require_remove()}}}),require_old=__commonJS({"../../node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/old.js"(e){var t=require("path"),r="win32"===process.platform,n=require("fs"),i=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function s(e){return"function"==typeof e?e:function(){var e;if(i){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}()}var a,o;t.normalize;a=r?/(.*?)(?:[\/\\]+|$)/g:/(.*?)(?:[\/]+|$)/g,o=r?/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:/^[\/]*/,e.realpathSync=function(e,i){if(e=t.resolve(e),i&&Object.prototype.hasOwnProperty.call(i,e))return i[e];var s,l,c,u,p=e,d={},h={};function f(){var t=o.exec(e);s=t[0].length,l=t[0],c=t[0],u="",r&&!h[c]&&(n.lstatSync(c),h[c]=!0)}for(f();s<e.length;){a.lastIndex=s;var m=a.exec(e);if(u=l,l+=m[0],c=u+m[1],s=a.lastIndex,!(h[c]||i&&i[c]===c)){var y;if(i&&Object.prototype.hasOwnProperty.call(i,c))y=i[c];else{var g=n.lstatSync(c);if(!g.isSymbolicLink()){h[c]=!0,i&&(i[c]=c);continue}var b=null;if(!r){var S=g.dev.toString(32)+":"+g.ino.toString(32);d.hasOwnProperty(S)&&(b=d[S])}null===b&&(n.statSync(c),b=n.readlinkSync(c)),y=t.resolve(u,b),i&&(i[c]=y),r||(d[S]=b)}e=t.resolve(y,e.slice(s)),f()}}return i&&(i[p]=e),e},e.realpath=function(e,i,l){if("function"!=typeof l&&(l=s(i),i=null),e=t.resolve(e),i&&Object.prototype.hasOwnProperty.call(i,e))return process.nextTick(l.bind(null,null,i[e]));var c,u,p,d,h=e,f={},m={};function y(){var t=o.exec(e);c=t[0].length,u=t[0],p=t[0],d="",r&&!m[p]?n.lstat(p,(function(e){if(e)return l(e);m[p]=!0,g()})):process.nextTick(g)}function g(){if(c>=e.length)return i&&(i[h]=e),l(null,e);a.lastIndex=c;var t=a.exec(e);return d=u,u+=t[0],p=d+t[1],c=a.lastIndex,m[p]||i&&i[p]===p?process.nextTick(g):i&&Object.prototype.hasOwnProperty.call(i,p)?T(i[p]):n.lstat(p,b)}function b(e,t){if(e)return l(e);if(!t.isSymbolicLink())return m[p]=!0,i&&(i[p]=p),process.nextTick(g);if(!r){var s=t.dev.toString(32)+":"+t.ino.toString(32);if(f.hasOwnProperty(s))return S(null,f[s],p)}n.stat(p,(function(e){if(e)return l(e);n.readlink(p,(function(e,t){r||(f[s]=t),S(e,t)}))}))}function S(e,r,n){if(e)return l(e);var s=t.resolve(d,r);i&&(i[n]=s),T(s)}function T(r){e=t.resolve(r,e.slice(c)),y()}y()}}}),require_fs2=__commonJS({"../../node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/index.js"(e,t){t.exports=c,c.realpath=c,c.sync=u,c.realpathSync=u,c.monkeypatch=function(){r.realpath=c,r.realpathSync=u},c.unmonkeypatch=function(){r.realpath=n,r.realpathSync=i};var r=require("fs"),n=r.realpath,i=r.realpathSync,s=process.version,a=/^v[0-5]\./.test(s),o=require_old();function l(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function c(e,t,r){if(a)return n(e,t,r);"function"==typeof t&&(r=t,t=null),n(e,t,(function(n,i){l(n)?o.realpath(e,t,r):r(n,i)}))}function u(e,t){if(a)return i(e,t);try{return i(e,t)}catch(r){if(l(r))return o.realpathSync(e,t);throw r}}}}),require_inherits_browser=__commonJS({"../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js"(e,t){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}}),require_inherits=__commonJS({"../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js"(e,t){try{if("function"!=typeof(r=require("util")).inherits)throw"";t.exports=r.inherits}catch(e){t.exports=require_inherits_browser()}var r}}),require_common=__commonJS({"../../node_modules/.pnpm/glob@8.0.3/node_modules/glob/common.js"(e){function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.setopts=function(e,i,o){o||(o={});if(o.matchBase&&-1===i.indexOf("/")){if(o.noglobstar)throw new Error("base matching requires globstar");i="**/"+i}e.silent=!!o.silent,e.pattern=i,e.strict=!1!==o.strict,e.realpath=!!o.realpath,e.realpathCache=o.realpathCache||Object.create(null),e.follow=!!o.follow,e.dot=!!o.dot,e.mark=!!o.mark,e.nodir=!!o.nodir,e.nodir&&(e.mark=!0);e.sync=!!o.sync,e.nounique=!!o.nounique,e.nonull=!!o.nonull,e.nosort=!!o.nosort,e.nocase=!!o.nocase,e.stat=!!o.stat,e.noprocess=!!o.noprocess,e.absolute=!!o.absolute,e.fs=o.fs||r,e.maxLength=o.maxLength||1/0,e.cache=o.cache||Object.create(null),e.statCache=o.statCache||Object.create(null),e.symlinks=o.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]);e.ignore.length&&(e.ignore=e.ignore.map(l))}(e,o),e.changedCwd=!1;var u=process.cwd();t(o,"cwd")?(e.cwd=n.resolve(o.cwd),e.changedCwd=e.cwd!==u):e.cwd=n.resolve(u);e.root=o.root||n.resolve(e.cwd,"/"),e.root=n.resolve(e.root),e.cwdAbs=s(e.cwd)?e.cwd:c(e,e.cwd),e.nomount=!!o.nomount,"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/"),e.cwd=e.cwd.replace(/\\/g,"/"),e.cwdAbs=e.cwdAbs.replace(/\\/g,"/"));o.nonegate=!0,o.nocomment=!0,o.allowWindowsEscape=!0,e.minimatch=new a(i,o),e.options=e.minimatch.options},e.ownProp=t,e.makeAbs=c,e.finish=function(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,i=e.matches.length;n<i;n++){var s=e.matches[n];if(s&&0!==Object.keys(s).length){var a=Object.keys(s);t?r.push.apply(r,a):a.forEach((function(e){r[e]=!0}))}else if(e.nonull){var l=e.minimatch.globSet[n];t?r.push(l):r[l]=!0}}t||(r=Object.keys(r));e.nosort||(r=r.sort(o));if(e.mark){for(n=0;n<r.length;n++)r[n]=e._mark(r[n]);e.nodir&&(r=r.filter((function(t){var r=!/\/$/.test(t),n=e.cache[t]||e.cache[c(e,t)];return r&&n&&(r="DIR"!==n&&!Array.isArray(n)),r})))}e.ignore.length&&(r=r.filter((function(t){return!u(e,t)})));e.found=r},e.mark=function(e,t){var r=c(e,t),n=e.cache[r],i=t;if(n){var s="DIR"===n||Array.isArray(n),a="/"===t.slice(-1);if(s&&!a?i+="/":!s&&a&&(i=i.slice(0,-1)),i!==t){var o=c(e,i);e.statCache[o]=e.statCache[r],e.cache[o]=e.cache[r]}}return i},e.isIgnored=u,e.childrenIgnored=function(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return!(!e.gmatcher||!e.gmatcher.match(t))}))};var r=require("fs"),n=require("path"),i=require_minimatch(),s=require("path").isAbsolute,a=i.Minimatch;function o(e,t){return e.localeCompare(t,"en")}function l(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new a(r,{dot:!0})}return{matcher:new a(e,{dot:!0}),gmatcher:t}}function c(e,t){var r=t;return r="/"===t.charAt(0)?n.join(e.root,t):s(t)||""===t?t:e.changedCwd?n.resolve(e.cwd,t):n.resolve(t),"win32"===process.platform&&(r=r.replace(/\\/g,"/")),r}function u(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))}))}}}),require_sync=__commonJS({"../../node_modules/.pnpm/glob@8.0.3/node_modules/glob/sync.js"(e,t){t.exports=d,d.GlobSync=h;var r=require_fs2(),n=require_minimatch(),i=(n.Minimatch,require_glob().Glob,require("util"),require("path")),s=require("assert"),a=require("path").isAbsolute,o=require_common(),l=o.setopts,c=o.ownProp,u=o.childrenIgnored,p=o.isIgnored;function d(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new h(e,t).found}function h(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof h))return new h(e,t);if(l(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}h.prototype._finish=function(){if(s.ok(this instanceof h),this.realpath){var e=this;this.matches.forEach((function(t,n){var i=e.matches[n]=Object.create(null);for(var s in t)try{s=e._makeAbs(s),i[r.realpathSync(s,e.realpathCache)]=!0}catch(t){if("stat"!==t.syscall)throw t;i[e._makeAbs(s)]=!0}}))}o.finish(this)},h.prototype._process=function(e,t,r){s.ok(this instanceof h);for(var i,o=0;"string"==typeof e[o];)o++;switch(o){case e.length:return void this._processSimple(e.join("/"),t);case 0:i=null;break;default:i=e.slice(0,o).join("/")}var l,c=e.slice(o);null===i?l=".":a(i)||a(e.map((function(e){return"string"==typeof e?e:"[*]"})).join("/"))?(i&&a(i)||(i="/"+i),l=i):l=i;var p=this._makeAbs(l);u(this,l)||(c[0]===n.GLOBSTAR?this._processGlobStar(i,l,p,c,t,r):this._processReaddir(i,l,p,c,t,r))},h.prototype._processReaddir=function(e,t,r,n,s,a){var o=this._readdir(r,a);if(o){for(var l=n[0],c=!!this.minimatch.negate,u=l._glob,p=this.dot||"."===u.charAt(0),d=[],h=0;h<o.length;h++){if("."!==(y=o[h]).charAt(0)||p)(c&&!e?!y.match(l):y.match(l))&&d.push(y)}var f=d.length;if(0!==f)if(1!==n.length||this.mark||this.stat){n.shift();for(h=0;h<f;h++){var m;y=d[h];m=e?[e,y]:[y],this._process(m.concat(n),s,a)}}else{this.matches[s]||(this.matches[s]=Object.create(null));for(var h=0;h<f;h++){var y=d[h];e&&(y="/"!==e.slice(-1)?e+"/"+y:e+y),"/"!==y.charAt(0)||this.nomount||(y=i.join(this.root,y)),this._emitMatch(s,y)}}}},h.prototype._emitMatch=function(e,t){if(!p(this,t)){var r=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}},h.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r;try{r=this.fs.lstatSync(e)}catch(e){if("ENOENT"===e.code)return null}var n=r&&r.isSymbolicLink();return this.symlinks[e]=n,n||!r||r.isDirectory()?t=this._readdir(e,!1):this.cache[e]="FILE",t},h.prototype._readdir=function(e,t){if(t&&!c(this.symlinks,e))return this._readdirInGlobStar(e);if(c(this.cache,e)){var r=this.cache[e];if(!r||"FILE"===r)return null;if(Array.isArray(r))return r}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(t){return this._readdirError(e,t),null}},h.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var n=t[r];n="/"===e?e+n:e+"/"+n,this.cache[n]=!0}return this.cache[e]=t,t},h.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);throw n.path=this.cwd,n.code=t.code,n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t)}},h.prototype._processGlobStar=function(e,t,r,n,i,s){var a=this._readdir(r,s);if(a){var o=n.slice(1),l=e?[e]:[],c=l.concat(o);this._process(c,i,!1);var u=a.length;if(!this.symlinks[r]||!s)for(var p=0;p<u;p++){if("."!==a[p].charAt(0)||this.dot){var d=l.concat(a[p],o);this._process(d,i,!0);var h=l.concat(a[p],n);this._process(h,i,!0)}}}},h.prototype._processSimple=function(e,t){var r=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),r){if(e&&a(e)&&!this.nomount){var n=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=i.join(this.root,e):(e=i.resolve(this.root,e),n&&(e+="/"))}"win32"===process.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}},h.prototype._stat=function(e){var t=this._makeAbs(e),r="/"===e.slice(-1);if(e.length>this.maxLength)return!1;if(!this.stat&&c(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!r||"DIR"===n)return n;if(r&&"FILE"===n)return!1}var i=this.statCache[t];if(!i){var s;try{s=this.fs.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(s&&s.isSymbolicLink())try{i=this.fs.statSync(t)}catch(e){i=s}else i=s}this.statCache[t]=i;n=!0;return i&&(n=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!r||"FILE"!==n)&&n},h.prototype._mark=function(e){return o.mark(this,e)},h.prototype._makeAbs=function(e){return o.makeAbs(this,e)}}}),require_wrappy=__commonJS({"../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js"(e,t){t.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),i=e[e.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach((function(e){n[e]=i[e]})),n}}}}),require_once=__commonJS({"../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js"(e,t){var r=require_wrappy();function n(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function i(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}t.exports=r(n),t.exports.strict=r(i),n.proto=n((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})}))}}),require_inflight=__commonJS({"../../node_modules/.pnpm/inflight@1.0.6/node_modules/inflight/inflight.js"(e,t){var r=require_wrappy(),n=Object.create(null),i=require_once();t.exports=r((function(e,t){return n[e]?(n[e].push(t),null):(n[e]=[t],function(e){return i((function t(){var r=n[e],i=r.length,s=function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n]=e[n];return r}(arguments);try{for(var a=0;a<i;a++)r[a].apply(null,s)}finally{r.length>i?(r.splice(0,i),process.nextTick((function(){t.apply(null,s)}))):delete n[e]}}))}(e))}))}}),require_glob=__commonJS({"../../node_modules/.pnpm/glob@8.0.3/node_modules/glob/glob.js"(e,t){t.exports=g;var r=require_fs2(),n=require_minimatch(),i=(n.Minimatch,require_inherits()),s=require("events").EventEmitter,a=require("path"),o=require("assert"),l=require("path").isAbsolute,c=require_sync(),u=require_common(),p=u.setopts,d=u.ownProp,h=require_inflight(),f=(require("util"),u.childrenIgnored),m=u.isIgnored,y=require_once();function g(e,t,r){if("function"==typeof t&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return c(e,t)}return new S(e,t,r)}g.sync=c;var b=g.GlobSync=c.GlobSync;function S(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new b(e,t)}if(!(this instanceof S))return new S(e,t,r);p(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=y(r),this.on("error",r),this.on("end",(function(e){r(null,e)})));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return o();for(var s=!0,a=0;a<n;a++)this._process(this.minimatch.set[a],a,!1,o);function o(){--i._processing,i._processing<=0&&(s?process.nextTick((function(){i._finish()})):i._finish())}s=!1}g.glob=g,g.hasMagic=function(e,t){var r=function(e,t){if(null===t||"object"!=typeof t)return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}({},t);r.noprocess=!0;var n=new S(e,r).minimatch.set;if(!e)return!1;if(n.length>1)return!0;for(var i=0;i<n[0].length;i++)if("string"!=typeof n[0][i])return!0;return!1},g.Glob=S,i(S,s),S.prototype._finish=function(){if(o(this instanceof S),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();u.finish(this),this.emit("end",this.found)}},S.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var e=this.matches.length;if(0===e)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n)}function n(){0==--e&&t._finish()}},S.prototype._realpathSet=function(e,t){var n=this.matches[e];if(!n)return t();var i=Object.keys(n),s=this,a=i.length;if(0===a)return t();var o=this.matches[e]=Object.create(null);i.forEach((function(n,i){n=s._makeAbs(n),r.realpath(n,s.realpathCache,(function(r,i){r?"stat"===r.syscall?o[n]=!0:s.emit("error",r):o[i]=!0,0==--a&&(s.matches[e]=o,t())}))}))},S.prototype._mark=function(e){return u.mark(this,e)},S.prototype._makeAbs=function(e){return u.makeAbs(this,e)},S.prototype.abort=function(){this.aborted=!0,this.emit("abort")},S.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},S.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(t=0;t<n.length;t++){var i=n[t];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}},S.prototype._process=function(e,t,r,i){if(o(this instanceof S),o("function"==typeof i),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([e,t,r,i]);else{for(var s,a=0;"string"==typeof e[a];)a++;switch(a){case e.length:return void this._processSimple(e.join("/"),t,i);case 0:s=null;break;default:s=e.slice(0,a).join("/")}var c,u=e.slice(a);null===s?c=".":l(s)||l(e.map((function(e){return"string"==typeof e?e:"[*]"})).join("/"))?(s&&l(s)||(s="/"+s),c=s):c=s;var p=this._makeAbs(c);if(f(this,c))return i();u[0]===n.GLOBSTAR?this._processGlobStar(s,c,p,u,t,r,i):this._processReaddir(s,c,p,u,t,r,i)}},S.prototype._processReaddir=function(e,t,r,n,i,s,a){var o=this;this._readdir(r,s,(function(l,c){return o._processReaddir2(e,t,r,n,i,s,c,a)}))},S.prototype._processReaddir2=function(e,t,r,n,i,s,o,l){if(!o)return l();for(var c=n[0],u=!!this.minimatch.negate,p=c._glob,d=this.dot||"."===p.charAt(0),h=[],f=0;f<o.length;f++){if("."!==(y=o[f]).charAt(0)||d)(u&&!e?!y.match(c):y.match(c))&&h.push(y)}var m=h.length;if(0===m)return l();if(1===n.length&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(f=0;f<m;f++){var y=h[f];e&&(y="/"!==e?e+"/"+y:e+y),"/"!==y.charAt(0)||this.nomount||(y=a.join(this.root,y)),this._emitMatch(i,y)}return l()}n.shift();for(f=0;f<m;f++){y=h[f];e&&(y="/"!==e?e+"/"+y:e+y),this._process([y].concat(n),i,s,l)}l()},S.prototype._emitMatch=function(e,t){if(!this.aborted&&!m(this,t))if(this.paused)this._emitQueue.push([e,t]);else{var r=l(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0;var i=this.statCache[r];i&&this.emit("stat",t,i),this.emit("match",t)}}},S.prototype._readdirInGlobStar=function(e,t){if(!this.aborted){if(this.follow)return this._readdir(e,!1,t);var r=this,n=h("lstat\0"+e,(function(n,i){if(n&&"ENOENT"===n.code)return t();var s=i&&i.isSymbolicLink();r.symlinks[e]=s,s||!i||i.isDirectory()?r._readdir(e,!1,t):(r.cache[e]="FILE",t())}));n&&r.fs.lstat(e,n)}},S.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=h("readdir\0"+e+"\0"+t,r))){if(t&&!d(this.symlinks,e))return this._readdirInGlobStar(e,r);if(d(this.cache,e)){var n=this.cache[e];if(!n||"FILE"===n)return r();if(Array.isArray(n))return r(null,n)}this.fs.readdir(e,function(e,t,r){return function(n,i){n?e._readdirError(t,n,r):e._readdirEntries(t,i,r)}}(this,e,r))}},S.prototype._readdirEntries=function(e,t,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var i=t[n];i="/"===e?e+i:e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,r(null,t)}},S.prototype._readdirError=function(e,t,r){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=t.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t)}return r()}},S.prototype._processGlobStar=function(e,t,r,n,i,s,a){var o=this;this._readdir(r,s,(function(l,c){o._processGlobStar2(e,t,r,n,i,s,c,a)}))},S.prototype._processGlobStar2=function(e,t,r,n,i,s,a,o){if(!a)return o();var l=n.slice(1),c=e?[e]:[],u=c.concat(l);this._process(u,i,!1,o);var p=this.symlinks[r],d=a.length;if(p&&s)return o();for(var h=0;h<d;h++){if("."!==a[h].charAt(0)||this.dot){var f=c.concat(a[h],l);this._process(f,i,!0,o);var m=c.concat(a[h],n);this._process(m,i,!0,o)}}o()},S.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,(function(i,s){n._processSimple2(e,t,i,s,r)}))},S.prototype._processSimple2=function(e,t,r,n,i){if(this.matches[t]||(this.matches[t]=Object.create(null)),!n)return i();if(e&&l(e)&&!this.nomount){var s=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=a.join(this.root,e):(e=a.resolve(this.root,e),s&&(e+="/"))}"win32"===process.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),i()},S.prototype._stat=function(e,t){var r=this._makeAbs(e),n="/"===e.slice(-1);if(e.length>this.maxLength)return t();if(!this.stat&&d(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||"DIR"===i)return t(null,i);if(n&&"FILE"===i)return t()}var s=this.statCache[r];if(void 0!==s){if(!1===s)return t(null,s);var a=s.isDirectory()?"DIR":"FILE";return n&&"FILE"===a?t():t(null,a,s)}var o=this,l=h("stat\0"+r,(function(n,i){if(i&&i.isSymbolicLink())return o.fs.stat(r,(function(n,s){n?o._stat2(e,r,null,i,t):o._stat2(e,r,n,s,t)}));o._stat2(e,r,n,i,t)}));l&&o.fs.lstat(r,l)},S.prototype._stat2=function(e,t,r,n,i){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,i();var s="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return i(null,!1,n);var a=!0;return n&&(a=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||a,s&&"FILE"===a?i():i(null,a,n)}}}),require_constants=__commonJS({"../../node_modules/.pnpm/memfs@3.4.12/node_modules/memfs/lib/constants.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.constants=void 0,e.constants={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:64,O_EXCL:128,O_NOCTTY:256,O_TRUNC:512,O_APPEND:1024,O_DIRECTORY:65536,O_NOATIME:262144,O_NOFOLLOW:131072,O_SYNC:1052672,O_DIRECT:16384,O_NONBLOCK:2048,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_SYMLINK_DIR:1,UV_FS_SYMLINK_JUNCTION:2,UV_FS_COPYFILE_EXCL:1,UV_FS_COPYFILE_FICLONE:2,UV_FS_COPYFILE_FICLONE_FORCE:4,COPYFILE_EXCL:1,COPYFILE_FICLONE:2,COPYFILE_FICLONE_FORCE:4}}}),require_getBigInt=__commonJS({"../../node_modules/.pnpm/memfs@3.4.12/node_modules/memfs/lib/getBigInt.js"(e){"function"==typeof BigInt?e.default=BigInt:e.default=function(){throw new Error("BigInt is not supported in this environment.")}}}),require_Stats=__commonJS({"../../node_modules/.pnpm/memfs@3.4.12/node_modules/memfs/lib/Stats.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Stats=void 0;var t=require_constants(),r=require_getBigInt(),n=t.constants.S_IFMT,i=t.constants.S_IFDIR,s=t.constants.S_IFREG,a=t.constants.S_IFBLK,o=t.constants.S_IFCHR,l=t.constants.S_IFLNK,c=t.constants.S_IFIFO,u=t.constants.S_IFSOCK,p=function(){function e(){}return e.build=function(t,n){void 0===n&&(n=!1);var i=new e,s=t.uid,a=t.gid,o=t.atime,l=t.mtime,c=t.ctime,u=n?r.default:function(e){return e};i.uid=u(s),i.gid=u(a),i.rdev=u(0),i.blksize=u(4096),i.ino=u(t.ino),i.size=u(t.getSize()),i.blocks=u(1),i.atime=o,i.mtime=l,i.ctime=c,i.birthtime=c,i.atimeMs=u(o.getTime()),i.mtimeMs=u(l.getTime());var p=u(c.getTime());return i.ctimeMs=p,i.birthtimeMs=p,i.dev=u(0),i.mode=u(t.mode),i.nlink=u(t.nlink),i},e.prototype._checkModeProperty=function(e){return(Number(this.mode)&n)===e},e.prototype.isDirectory=function(){return this._checkModeProperty(i)},e.prototype.isFile=function(){return this._checkModeProperty(s)},e.prototype.isBlockDevice=function(){return this._checkModeProperty(a)},e.prototype.isCharacterDevice=function(){return this._checkModeProperty(o)},e.prototype.isSymbolicLink=function(){return this._checkModeProperty(l)},e.prototype.isFIFO=function(){return this._checkModeProperty(c)},e.prototype.isSocket=function(){return this._checkModeProperty(u)},e}();e.Stats=p,e.default=p}}),require_buffer=__commonJS({"../../node_modules/.pnpm/memfs@3.4.12/node_modules/memfs/lib/internal/buffer.js"(e){var t=e&&e.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,s=t.length;i<s;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.bufferFrom=e.bufferAllocUnsafe=e.Buffer=void 0;var r=require("buffer");function n(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return new(r.Buffer.bind.apply(r.Buffer,t([void 0,e],n,!1)))}Object.defineProperty(e,"Buffer",{enumerable:!0,get:function(){return r.Buffer}});var i=r.Buffer.allocUnsafe||n;e.bufferAllocUnsafe=i;var s=r.Buffer.from||n;e.bufferFrom=s}}),require_errors=__commonJS({"../../node_modules/.pnpm/memfs@3.4.12/node_modules/memfs/lib/internal/errors.js"(e){var t,r=e&&e.__extends||(t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.E=e.AssertionError=e.message=e.RangeError=e.TypeError=e.Error=void 0;var n=require("assert"),i=require("util"),s="undefined"==typeof Symbol?"_kCode":Symbol("code"),a={};function o(e){return function(e){function t(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=e.call(this,u(t,r))||this;return i.code=t,i[s]=t,i.name="".concat(e.prototype.name," [").concat(i[s],"]"),i}return r(t,e),t}(e)}var l="undefined"!=typeof globalThis?globalThis:global,c=function(t){function n(r){var n=this;if("object"!=typeof r||null===r)throw new e.TypeError("ERR_INVALID_ARG_TYPE","options","object");return(n=r.message?t.call(this,r.message)||this:t.call(this,"".concat(i.inspect(r.actual).slice(0,128)," ")+"".concat(r.operator," ").concat(i.inspect(r.expected).slice(0,128)))||this).generatedMessage=!r.message,n.name="AssertionError [ERR_ASSERTION]",n.code="ERR_ASSERTION",n.actual=r.actual,n.expected=r.expected,n.operator=r.operator,e.Error.captureStackTrace(n,r.stackStartFunction),n}return r(n,t),n}(l.Error);function u(e,t){n.strictEqual(typeof e,"string");var r,s=a[e];if(n(s,"An invalid error message key was used: ".concat(e,".")),"function"==typeof s)r=s;else{if(r=i.format,void 0===t||0===t.length)return s;t.unshift(s)}return String(r.apply(null,t))}function p(e,t){a[e]="function"==typeof t?t:String(t)}function d(e,t){if(n(e,"expected is required"),n("string"==typeof t,"thing is required"),Array.isArray(e)){var r=e.length;return n(r>0,"At least one expected value needs to be specified"),e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}e.AssertionError=c,e.message=u,e.E=p,e.Error=o(l.Error),e.TypeError=o(l.TypeError),e.RangeError=o(l.RangeError),p("ERR_ARG_NOT_ITERABLE","%s must be iterable"),p("ERR_ASSERTION","%s"),p("ERR_BUFFER_OUT_OF_BOUNDS",(function(e,t){return t?"Attempt to write outside buffer bounds":'"'.concat(e,'" is outside of buffer bounds')})),p("ERR_CHILD_CLOSED_BEFORE_REPLY","Child closed before reply received"),p("ERR_CONSOLE_WRITABLE_STREAM","Console expects a writable stream instance for %s"),p("ERR_CPU_USAGE","Unable to obtain cpu usage %s"),p("ERR_DNS_SET_SERVERS_FAILED",(function(e,t){return'c-ares failed to set servers: "'.concat(e,'" [').concat(t,"]")})),p("ERR_FALSY_VALUE_REJECTION","Promise was rejected with falsy value"),p("ERR_ENCODING_NOT_SUPPORTED",(function(e){return'The "'.concat(e,'" encoding is not supported')})),p("ERR_ENCODING_INVALID_ENCODED_DATA",(function(e){return"The encoded data was not valid for encoding ".concat(e)})),p("ERR_HTTP_HEADERS_SENT","Cannot render headers after they are sent to the client"),p("ERR_HTTP_INVALID_STATUS_CODE","Invalid status code: %s"),p("ERR_HTTP_TRAILER_INVALID","Trailers are invalid with this transfer encoding"),p("ERR_INDEX_OUT_OF_RANGE","Index out of range"),p("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,s;n(e,"name is required"),t.includes("not ")?(i="must not be",t=t.split("not ")[1]):i="must be";if(Array.isArray(e)){var a=e.map((function(e){return'"'.concat(e,'"')})).join(", ");s="The ".concat(a," arguments ").concat(i," ").concat(d(t,"type"))}else if(e.includes(" argument"))s="The ".concat(e," ").concat(i," ").concat(d(t,"type"));else{var o=e.includes(".")?"property":"argument";s='The "'.concat(e,'" ').concat(o," ").concat(i," ").concat(d(t,"type"))}arguments.length>=3&&(s+=". Received type ".concat(null!==r?typeof r:"null"));return s})),p("ERR_INVALID_ARRAY_LENGTH",(function(e,t,r){return n.strictEqual(typeof r,"number"),'The array "'.concat(e,'" (length ').concat(r,") must be of length ").concat(t,".")})),p("ERR_INVALID_BUFFER_SIZE","Buffer size must be a multiple of %s"),p("ERR_INVALID_CALLBACK","Callback must be a function"),p("ERR_INVALID_CHAR","Invalid character in %s"),p("ERR_INVALID_CURSOR_POS","Cannot set cursor row without setting its column"),p("ERR_INVALID_FD",'"fd" must be a positive integer: %s'),p("ERR_INVALID_FILE_URL_HOST",'File URL host must be "localhost" or empty on %s'),p("ERR_INVALID_FILE_URL_PATH","File URL path %s"),p("ERR_INVALID_HANDLE_TYPE","This handle type cannot be sent"),p("ERR_INVALID_IP_ADDRESS","Invalid IP address: %s"),p("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'.concat(String(t),'" is invalid for option "').concat(e,'"')})),p("ERR_INVALID_OPT_VALUE_ENCODING",(function(e){return'The value "'.concat(String(e),'" is invalid for option "encoding"')})),p("ERR_INVALID_REPL_EVAL_CONFIG",'Cannot specify both "breakEvalOnSigint" and "eval" for REPL'),p("ERR_INVALID_SYNC_FORK_INPUT","Asynchronous forks do not support Buffer, Uint8Array or string input: %s"),p("ERR_INVALID_THIS",'Value of "this" must be of type %s'),p("ERR_INVALID_TUPLE","%s must be an iterable %s tuple"),p("ERR_INVALID_URL","Invalid URL: %s"),p("ERR_INVALID_URL_SCHEME",(function(e){return"The URL must be ".concat(d(e,"scheme"))})),p("ERR_IPC_CHANNEL_CLOSED","Channel closed"),p("ERR_IPC_DISCONNECTED","IPC channel is already disconnected"),p("ERR_IPC_ONE_PIPE","Child process can have only one IPC pipe"),p("ERR_IPC_SYNC_FORK","IPC cannot be used with synchronous forks"),p("ERR_MISSING_ARGS",(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n(e.length>0,"At least one arg needs to be specified");var r="The ",i=e.length;switch(e=e.map((function(e){return'"'.concat(e,'"')})),i){case 1:r+="".concat(e[0]," argument");break;case 2:r+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:r+=e.slice(0,i-1).join(", "),r+=", and ".concat(e[i-1]," arguments")}return"".concat(r," must be specified")})),p("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),p("ERR_NAPI_CONS_FUNCTION","Constructor must be a function"),p("ERR_NAPI_CONS_PROTOTYPE_OBJECT","Constructor.prototype must be an object"),p("ERR_NO_CRYPTO","Node.js is not compiled with OpenSSL crypto support"),p("ERR_NO_LONGER_SUPPORTED","%s is no longer supported"),p("ERR_PARSE_HISTORY_DATA","Could not parse history data in %s"),p("ERR_SOCKET_ALREADY_BOUND","Socket is already bound"),p("ERR_SOCKET_BAD_PORT","Port should be > 0 and < 65536"),p("ERR_SOCKET_BAD_TYPE","Bad socket type specified. Valid types are: udp4, udp6"),p("ERR_SOCKET_CANNOT_SEND","Unable to send data"),p("ERR_SOCKET_CLOSED","Socket is closed"),p("ERR_SOCKET_DGRAM_NOT_RUNNING","Not running"),p("ERR_STDERR_CLOSE","process.stderr cannot be closed"),p("ERR_STDOUT_CLOSE","process.stdout cannot be closed"),p("ERR_STREAM_WRAP","Stream has StringDecoder set or is in objectMode"),p("ERR_TLS_CERT_ALTNAME_INVALID","Hostname/IP does not match certificate's altnames: %s"),p("ERR_TLS_DH_PARAM_SIZE",(function(e){return"DH parameter size ".concat(e," is less than 2048")})),p("ERR_TLS_HANDSHAKE_TIMEOUT","TLS handshake timeout"),p("ERR_TLS_RENEGOTIATION_FAILED","Failed to renegotiate"),p("ERR_TLS_REQUIRED_SERVER_NAME",'"servername" is required parameter for Server.addContext'),p("ERR_TLS_SESSION_ATTACK","TSL session renegotiation attack detected"),p("ERR_TRANSFORM_ALREADY_TRANSFORMING","Calling transform done when still transforming"),p("ERR_TRANSFORM_WITH_LENGTH_0","Calling transform done when writableState.length != 0"),p("ERR_UNKNOWN_ENCODING","Unknown encoding: %s"),p("ERR_UNKNOWN_SIGNAL","Unknown signal: %s"),p("ERR_UNKNOWN_STDIN_TYPE","Unknown stdin file type"),p("ERR_UNKNOWN_STREAM_TYPE","Unknown stream file type"),p("ERR_V8BREAKITERATOR","Full ICU data not installed. See https://github.com/nodejs/node/wiki/Intl")}}),require_encoding=__commonJS({"../../node_modules/.pnpm/memfs@3.4.12/node_modules/memfs/lib/encoding.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.strToEncoding=e.assertEncoding=e.ENCODING_UTF8=void 0;var t=require_buffer(),r=require_errors();e.ENCODING_UTF8="utf8",e.assertEncoding=function(e){if(e&&!t.Buffer.isEncoding(e))throw new r.TypeError("ERR_INVALID_OPT_VALUE_ENCODING",e)},e.strToEncoding=function(r,n){return n&&n!==e.ENCODING_UTF8?"buffer"===n?new t.Buffer(r):new t.Buffer(r).toString(n):r}}}),require_Dirent=__commonJS({"../../node_modules/.pnpm/memfs@3.4.12/node_modules/memfs/lib/Dirent.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Dirent=void 0;var t=require_constants(),r=require_encoding(),n=t.constants.S_IFMT,i=t.constants.S_IFDIR,s=t.constants.S_IFREG,a=t.constants.S_IFBLK,o=t.constants.S_IFCHR,l=t.constants.S_IFLNK,c=t.constants.S_IFIFO,u=t.constants.S_IFSOCK,p=function(){function e(){this.name="",this.mode=0}return e.build=function(t,n){var i=new e,s=t.getNode().mode;return i.name=(0,r.strToEncoding)(t.getName(),n),i.mode=s,i},e.prototype._checkModeProperty=function(e){return(this.mode&n)===e},e.prototype.isDirectory=function(){return this._checkModeProperty(i)},e.prototype.isFile=function(){return this._checkModeProperty(s)},e.prototype.isBlockDevice=function(){return this._checkModeProperty(a)},e.prototype.isCharacterDevice=function(){return this._checkModeProperty(o)},e.prototype.isSymbolicLink=function(){return this._checkModeProperty(l)},e.prototype.isFIFO=function(){return this._checkModeProperty(c)},e.prototype.isSocket=function(){return this._checkModeProperty(u)},e}();e.Dirent=p,e.default=p}}),require_setImmediate=__commonJS({"../../node_modules/.pnpm/memfs@3.4.12/node_modules/memfs/lib/setImmediate.js"(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),t="function"==typeof setImmediate?setImmediate.bind("undefined"!=typeof globalThis?globalThis:global):setTimeout.bind("undefined"!=typeof globalThis?globalThis:global),e.default=t}}),require_process=__commonJS({"../../node_modules/.pnpm/memfs@3.4.12/node_modules/memfs/lib/process.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createProcess=void 0;function t(){var e=function(){if("undefined"!=typeof process)return process;try{return require("process")}catch(e){return}}()||{};return e.cwd||(e.cwd=function(){return"/"}),e.nextTick||(e.nextTick=require_setImmediate().default),e.emitWarning||(e.emitWarning=function(e,t){console.warn("".concat(t).concat(t?": ":"").concat(e))}),e.env||(e.env={}),e}e.createProcess=t,e.default=t()}}),require_node=__commonJS({"../../node_modules/.pnpm/memfs@3.4.12/node_modules/memfs/lib/node.js"(e){var t,r=e&&e.__extends||(t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.File=e.Link=e.Node=e.SEP=void 0;var n=require_process(),i=require_buffer(),s=require_constants(),a=require("events"),o=require_Stats(),l=s.constants.S_IFMT,c=s.constants.S_IFDIR,u=s.constants.S_IFREG,p=s.constants.S_IFLNK,d=s.constants.O_APPEND,h=function(){var e,t;return null!==(t=null===(e=n.default.getuid)||void 0===e?void 0:e.call(n.default))&&void 0!==t?t:0},f=function(){var e,t;return null!==(t=null===(e=n.default.getgid)||void 0===e?void 0:e.call(n.default))&&void 0!==t?t:0};e.SEP="/";var m=function(e){function t(t,r){void 0===r&&(r=438);var n=e.call(this)||this;return n.uid=h(),n.gid=f(),n.atime=new Date,n.mtime=new Date,n.ctime=new Date,n.perm=438,n.mode=u,n.nlink=1,n.perm=r,n.mode|=r,n.ino=t,n}return r(t,e),t.prototype.getString=function(e){return void 0===e&&(e="utf8"),this.getBuffer().toString(e)},t.prototype.setString=function(e){this.buf=(0,i.bufferFrom)(e,"utf8"),this.touch()},t.prototype.getBuffer=function(){return this.buf||this.setBuffer((0,i.bufferAllocUnsafe)(0)),(0,i.bufferFrom)(this.buf)},t.prototype.setBuffer=function(e){this.buf=(0,i.bufferFrom)(e),this.touch()},t.prototype.getSize=function(){return this.buf?this.buf.length:0},t.prototype.setModeProperty=function(e){this.mode=this.mode&~l|e},t.prototype.setIsFile=function(){this.setModeProperty(u)},t.prototype.setIsDirectory=function(){this.setModeProperty(c)},t.prototype.setIsSymlink=function(){this.setModeProperty(p)},t.prototype.isFile=function(){return(this.mode&l)===u},t.prototype.isDirectory=function(){return(this.mode&l)===c},t.prototype.isSymlink=function(){return(this.mode&l)===p},t.prototype.makeSymlink=function(e){this.symlink=e,this.setIsSymlink()},t.prototype.write=function(e,t,r,n){if(void 0===t&&(t=0),void 0===r&&(r=e.length),void 0===n&&(n=0),this.buf||(this.buf=(0,i.bufferAllocUnsafe)(0)),n+r>this.buf.length){var s=(0,i.bufferAllocUnsafe)(n+r);this.buf.copy(s,0,0,this.buf.length),this.buf=s}return e.copy(this.buf,n,t,t+r),this.touch(),r},t.prototype.read=function(e,t,r,n){void 0===t&&(t=0),void 0===r&&(r=e.byteLength),void 0===n&&(n=0),this.buf||(this.buf=(0,i.bufferAllocUnsafe)(0));var s=r;return s>e.byteLength&&(s=e.byteLength),s+n>this.buf.length&&(s=this.buf.length-n),this.buf.copy(e,t,n,n+s),s},t.prototype.truncate=function(e){if(void 0===e&&(e=0),e)if(this.buf||(this.buf=(0,i.bufferAllocUnsafe)(0)),e<=this.buf.length)this.buf=this.buf.slice(0,e);else{var t=(0,i.bufferAllocUnsafe)(e);this.buf.copy(t),t.fill(0,this.buf.length),this.buf=t}else this.buf=(0,i.bufferAllocUnsafe)(0);this.touch()},t.prototype.chmod=function(e){this.perm=e,this.mode=-512&this.mode|e,this.touch()},t.prototype.chown=function(e,t){this.uid=e,this.gid=t,this.touch()},t.prototype.touch=function(){this.mtime=new Date,this.emit("change",this)},t.prototype.canRead=function(e,t){return void 0===e&&(e=h()),void 0===t&&(t=f()),!!(4&this.perm)||(!!(t===this.gid&&32&this.perm)||!!(e===this.uid&&256&this.perm))},t.prototype.canWrite=function(e,t){return void 0===e&&(e=h()),void 0===t&&(t=f()),!!(2&this.perm)||(!!(t===this.gid&&16&this.perm)||!!(e===this.uid&&128&this.perm))},t.prototype.del=function(){this.emit("delete",this)},t.prototype.toJSON=function(){return{ino:this.ino,uid:this.uid,gid:this.gid,atime:this.atime.getTime(),mtime:this.mtime.getTime(),ctime:this.ctime.getTime(),perm:this.perm,mode:this.mode,nlink:this.nlink,symlink:this.symlink,data:this.getString()}},t}(a.EventEmitter);e.Node=m;var y=function(t){function n(e,r,n){var i=t.call(this)||this;return i.children={},i._steps=[],i.ino=0,i.length=0,i.vol=e,i.parent=r,i.name=n,i.syncSteps(),i}return r(n,t),Object.defineProperty(n.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e;for(var t=0,r=Object.values(this.children);t<r.length;t++){var n=r[t];null==n||n.syncSteps()}},enumerable:!1,configurable:!0}),n.prototype.setNode=function(e){this.node=e,this.ino=e.ino},n.prototype.getNode=function(){return this.node},n.prototype.createChild=function(e,t){void 0===t&&(t=this.vol.createNode());var r=new n(this.vol,this,e);return r.setNode(t),t.isDirectory(),this.setChild(e,r),r},n.prototype.setChild=function(e,t){return void 0===t&&(t=new n(this.vol,this,e)),this.children[e]=t,t.parent=this,this.length++,this.emit("child:add",t,this),t},n.prototype.deleteChild=function(e){delete this.children[e.getName()],this.length--,this.emit("child:delete",e,this)},n.prototype.getChild=function(e){if(Object.hasOwnProperty.call(this.children,e))return this.children[e]},n.prototype.getPath=function(){return this.steps.join(e.SEP)},n.prototype.getName=function(){return this.steps[this.steps.length-1]},n.prototype.walk=function(e,t,r){if(void 0===t&&(t=e.length),void 0===r&&(r=0),r>=e.length)return this;if(r>=t)return this;var n=e[r],i=this.getChild(n);return i?i.walk(e,t,r+1):null},n.prototype.toJSON=function(){return{steps:this.steps,ino:this.ino,children:Object.keys(this.children)}},n.prototype.syncSteps=function(){this.steps=this.parent?this.parent.steps.concat([this.name]):[this.name]},n}(a.EventEmitter);e.Link=y;var g=function(){function e(e,t,r,n){this.position=0,this.link=e,this.node=t,this.flags=r,this.fd=n}return e.prototype.getString=function(e){return void 0===e&&(e="utf8"),this.node.getString()},e.prototype.setString=function(e){this.node.setString(e)},e.prototype.getBuffer=function(){return this.node.getBuffer()},e.prototype.setBuffer=function(e){this.node.setBuffer(e)},e.prototype.getSize=function(){return this.node.getSize()},e.prototype.truncate=function(e){this.node.truncate(e)},e.prototype.seekTo=function(e){this.position=e},e.prototype.stats=function(){return o.default.build(this.node)},e.prototype.write=function(e,t,r,n){void 0===t&&(t=0),void 0===r&&(r=e.length),"number"!=typeof n&&(n=this.position),this.flags&d&&(n=this.getSize());var i=this.node.write(e,t,r,n);return this.position=n+i,i},e.prototype.read=function(e,t,r,n){void 0===t&&(t=0),void 0===r&&(r=e.byteLength),"number"!=typeof n&&(n=this.position);var i=this.node.read(e,t,r,n);return this.position=n+i,i},e.prototype.chmod=function(e){this.node.chmod(e)},e.prototype.chown=function(e,t){this.node.chown(e,t)},e}();e.File=g}}),require_setTimeoutUnref=__commonJS({"../../node_modules/.pnpm/memfs@3.4.12/node_modules/memfs/lib/setTimeoutUnref.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t,r){var n=setTimeout.apply("undefined"!=typeof globalThis?globalThis:global,arguments);return n&&"object"==typeof n&&"function"==typeof n.unref&&n.unref(),n}}}),require_promises=__commonJS({"../../node_modules/.pnpm/memfs@3.4.12/node_modules/memfs/lib/promises.js"(e){var t=e&&e.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,s=t.length;i<s;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};function r(e,r,n){return void 0===n&&(n=function(e){return e}),function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new Promise((function(s,a){e[r].bind(e).apply(void 0,t(t([],i,!1),[function(e,t){return e?a(e):s(n(t))}],!1))}))}}Object.defineProperty(e,"__esModule",{value:!0}),e.FileHandle=void 0;var n=function(){function e(e,t){this.vol=e,this.fd=t}return e.prototype.appendFile=function(e,t){return r(this.vol,"appendFile")(this.fd,e,t)},e.prototype.chmod=function(e){return r(this.vol,"fchmod")(this.fd,e)},e.prototype.chown=function(e,t){return r(this.vol,"fchown")(this.fd,e,t)},e.prototype.close=function(){return r(this.vol,"close")(this.fd)},e.prototype.datasync=function(){return r(this.vol,"fdatasync")(this.fd)},e.prototype.read=function(e,t,n,i){return r(this.vol,"read",(function(t){return{bytesRead:t,buffer:e}}))(this.fd,e,t,n,i)},e.prototype.readFile=function(e){return r(this.vol,"readFile")(this.fd,e)},e.prototype.stat=function(e){return r(this.vol,"fstat")(this.fd,e)},e.prototype.sync=function(){return r(this.vol,"fsync")(this.fd)},e.prototype.truncate=function(e){return r(this.vol,"ftruncate")(this.fd,e)},e.prototype.utimes=function(e,t){return r(this.vol,"futimes")(this.fd,e,t)},e.prototype.write=function(e,t,n,i){return r(this.vol,"write",(function(t){return{bytesWritten:t,buffer:e}}))(this.fd,e,t,n,i)},e.prototype.writeFile=function(e,t){return r(this.vol,"writeFile")(this.fd,e,t)},e}();e.FileHandle=n,e.default=function(e){return"undefined"==typeof Promise?null:{FileHandle:n,access:function(t,n){return r(e,"access")(t,n)},appendFile:function(t,i,s){return r(e,"appendFile")(t instanceof n?t.fd:t,i,s)},chmod:function(t,n){return r(e,"chmod")(t,n)},chown:function(t,n,i){return r(e,"chown")(t,n,i)},copyFile:function(t,n,i){return r(e,"copyFile")(t,n,i)},lchmod:function(t,n){return r(e,"lchmod")(t,n)},lchown:function(t,n,i){return r(e,"lchown")(t,n,i)},link:function(t,n){return r(e,"link")(t,n)},lstat:function(t,n){return r(e,"lstat")(t,n)},mkdir:function(t,n){return r(e,"mkdir")(t,n)},mkdtemp:function(t,n){return r(e,"mkdtemp")(t,n)},open:function(t,i,s){return r(e,"open",(function(t){return new n(e,t)}))(t,i,s)},readdir:function(t,n){return r(e,"readdir")(t,n)},readFile:function(t,i){return r(e,"readFile")(t instanceof n?t.fd:t,i)},readlink:function(t,n){return r(e,"readlink")(t,n)},realpath:function(t,n){return r(e,"realpath")(t,n)},rename:function(t,n){return r(e,"rename")(t,n)},rmdir:function(t){return r(e,"rmdir")(t)},rm:function(t,n){return r(e,"rm")(t,n)},stat:function(t,n){return r(e,"stat")(t,n)},symlink:function(t,n,i){return r(e,"symlink")(t,n,i)},truncate:function(t,n){return r(e,"truncate")(t,n)},unlink:function(t){return r(e,"unlink")(t)},utimes:function(t,n,i){return r(e,"utimes")(t,n,i)},writeFile:function(t,i,s){return r(e,"writeFile")(t instanceof n?t.fd:t,i,s)}}}}}),require_correctPath=__commonJS({"../../node_modules/.pnpm/fs-monkey@1.0.3/node_modules/fs-monkey/lib/correctPath.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.unixify=i,e.correctPath=function(e){return i(e.replace(/^\\\\\?\\.:\\/,"\\"))};var t="win32"===process.platform;function r(e,r){var n=e[r];return r>0&&("/"===n||t&&"\\"===n)}function n(e,t){if("string"!=typeof e)throw new TypeError("expected a string");return e=e.replace(/[\\\/]+/g,"/"),!1!==t&&(e=function(e){var t=e.length-1;if(t<2)return e;for(;r(e,t);)t--;return e.substr(0,t+1)}(e)),e}function i(e){return t?(e=n(e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1])).replace(/^([a-zA-Z]+:|\.\/)/,""):e}}}),require_volume=__commonJS({"../../node_modules/.pnpm/memfs@3.4.12/node_modules/memfs/lib/volume.js"(e){var t,r=e&&e.__extends||(t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),n=e&&e.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,s=t.length;i<s;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.FSWatcher=e.StatWatcher=e.Volume=e.toUnixTimestamp=e.bufferToEncoding=e.dataToBuffer=e.dataToStr=e.pathToSteps=e.filenameToSteps=e.pathToFilename=e.flagsToNumber=e.FLAGS=void 0;var i,s,a=require("path"),o=require_node(),l=require_Stats(),c=require_Dirent(),u=require_buffer(),p=require_setImmediate(),d=require_process(),h=require_setTimeoutUnref(),f=require("stream"),m=require_constants(),y=require("events"),g=require_encoding(),b=require_errors(),S=require("util"),T=require_promises(),v=a.resolve,E=m.constants.O_RDONLY,x=m.constants.O_WRONLY,_=m.constants.O_RDWR,A=m.constants.O_CREAT,P=m.constants.O_EXCL,w=m.constants.O_TRUNC,D=m.constants.O_APPEND,C=m.constants.O_SYNC,I=m.constants.O_DIRECTORY,N=m.constants.F_OK,k=m.constants.COPYFILE_EXCL,O=m.constants.COPYFILE_FICLONE_FORCE,F=a.posix?a.posix:a,L=F.sep,j=F.relative,M=F.join,B=F.dirname,R="win32"===d.default.platform,q="path must be a string or Buffer",U="fd must be a file descriptor",K="mode must be an int",J="callback must be a function",V="uid must be an unsigned int",W="gid must be an unsigned int",z="ENOENT",Y="EBADF",X="EINVAL",$="EEXIST",H="ENOTDIR",G="EMFILE",Q="EACCES",Z="EISDIR",ee="ENOTEMPTY",te="ENOSYS",re="ERR_FS_EISDIR";function ne(e,t,r,n,i){void 0===t&&(t=""),void 0===r&&(r=""),void 0===n&&(n=""),void 0===i&&(i=Error);var s=new i(function(e,t,r,n){void 0===t&&(t=""),void 0===r&&(r=""),void 0===n&&(n="");var i="";switch(r&&(i=" '".concat(r,"'")),n&&(i+=" -> '".concat(n,"'")),e){case z:return"ENOENT: no such file or directory, ".concat(t).concat(i);case Y:return"EBADF: bad file descriptor, ".concat(t).concat(i);case X:return"EINVAL: invalid argument, ".concat(t).concat(i);case"EPERM":return"EPERM: operation not permitted, ".concat(t).concat(i);case"EPROTO":return"EPROTO: protocol error, ".concat(t).concat(i);case $:return"EEXIST: file already exists, ".concat(t).concat(i);case H:return"ENOTDIR: not a directory, ".concat(t).concat(i);case Z:return"EISDIR: illegal operation on a directory, ".concat(t).concat(i);case Q:return"EACCES: permission denied, ".concat(t).concat(i);case ee:return"ENOTEMPTY: directory not empty, ".concat(t).concat(i);case G:return"EMFILE: too many open files, ".concat(t).concat(i);case te:return"ENOSYS: function not implemented, ".concat(t).concat(i);case re:return"[ERR_FS_EISDIR]: Path is a directory: ".concat(t," returned EISDIR (is a directory) ").concat(r);default:return"".concat(e,": error occurred, ").concat(t).concat(i)}}(e,t,r,n));return s.code=e,s}function ie(e){if("number"==typeof e)return e;if("string"==typeof e){var t=i[e];if(void 0!==t)return t}throw new b.TypeError("ERR_INVALID_OPT_VALUE","flags",e)}function se(e,t){var r;if(!t)return e;var n=typeof t;switch(n){case"string":r=Object.assign({},e,{encoding:t});break;case"object":r=Object.assign({},e,t);break;default:throw TypeError(function(e){return"Expected options to be either an object or a string, but got ".concat(e," instead")}(n))}return"buffer"!==r.encoding&&(0,g.assertEncoding)(r.encoding),r}function ae(e){return function(t){return se(e,t)}}function oe(e){if("function"!=typeof e)throw TypeError(J);return e}function le(e){return function(t,r){return"function"==typeof t?[e(),t]:[e(t),oe(r)]}}(s=i=e.FLAGS||(e.FLAGS={}))[s.r=E]="r",s[s["r+"]=_]="r+",s[s.rs=E|C]="rs",s[s.sr=s.rs]="sr",s[s["rs+"]=_|C]="rs+",s[s["sr+"]=s["rs+"]]="sr+",s[s.w=x|A|w]="w",s[s.wx=x|A|w|P]="wx",s[s.xw=s.wx]="xw",s[s["w+"]=_|A|w]="w+",s[s["wx+"]=_|A|w|P]="wx+",s[s["xw+"]=s["wx+"]]="xw+",s[s.a=x|D|A]="a",s[s.ax=x|D|A|P]="ax",s[s.xa=s.ax]="xa",s[s["a+"]=_|D|A]="a+",s[s["ax+"]=_|D|A|P]="ax+",s[s["xa+"]=s["ax+"]]="xa+",e.flagsToNumber=ie;var ce={encoding:"utf8"},ue=ae(ce),pe=le(ue),de=ae({flag:"r"}),he={encoding:"utf8",mode:438,flag:i[i.w]},fe=ae(he),me={encoding:"utf8",mode:438,flag:i[i.a]},ye=ae(me),ge=le(ye),be=ae(ce),Se=le(be),Te={mode:511,recursive:!1},ve=function(e){return"number"==typeof e?Object.assign({},Te,{mode:e}):Object.assign({},Te,e)},Ee={recursive:!1},xe=function(e){return Object.assign({},Ee,e)},_e=le(ae(ce)),Ae=ae({encoding:"utf8",withFileTypes:!1}),Pe=le(Ae),we={bigint:!1},De=function(e){return void 0===e&&(e={}),Object.assign({},we,e)},Ce=function(e,t){return"function"==typeof e?[De(),e]:[De(e),oe(t)]};function Ie(e){if("string"!=typeof e&&!u.Buffer.isBuffer(e)){try{if(!(e instanceof require("url").URL))throw new TypeError(q)}catch(e){throw new TypeError(q)}e=function(e){if(""!==e.hostname)throw new b.TypeError("ERR_INVALID_FILE_URL_HOST",d.default.platform);for(var t=e.pathname,r=0;r<t.length;r++)if("%"===t[r]){var n=32|t.codePointAt(r+2);if("2"===t[r+1]&&102===n)throw new b.TypeError("ERR_INVALID_FILE_URL_PATH","must not include encoded / characters")}return decodeURIComponent(t)}(e)}var t=String(e);return Me(t),t}e.pathToFilename=Ie;var Ne,ke,Oe=function(e,t){return void 0===t&&(t=d.default.cwd()),v(t,e)};function Fe(e,t){var r=Oe(e,t).substring(1);return r?r.split(L):[]}function Le(e,t){return void 0===t&&(t=g.ENCODING_UTF8),u.Buffer.isBuffer(e)?e:e instanceof Uint8Array?(0,u.bufferFrom)(e):(0,u.bufferFrom)(String(e),t)}function je(e,t){return t&&"buffer"!==t?e.toString(t):e}function Me(e,t){if(-1!==(""+e).indexOf("\0")){var r=new Error("Path must be a string without null bytes");if(r.code=z,"function"!=typeof t)throw r;return d.default.nextTick(t,r),!1}return!0}function Be(e,t){var r=function(e,t){return"number"==typeof e?e:"string"==typeof e?parseInt(e,8):t?Be(t):void 0}(e,t);if("number"!=typeof r||isNaN(r))throw new TypeError(K);return r}function Re(e){return e>>>0===e}function qe(e){if(!Re(e))throw TypeError(U)}function Ue(e){if("string"==typeof e&&+e==e)return+e;if(e instanceof Date)return e.getTime()/1e3;if(isFinite(e))return e<0?Date.now()/1e3:e;throw new Error("Cannot parse time: "+e)}function Ke(e){if("number"!=typeof e)throw TypeError(V)}function Je(e){if("number"!=typeof e)throw TypeError(W)}R&&(Ne=Oe,ke=require_correctPath().unixify,Oe=function(e,t){return ke(Ne(e,t))}),e.filenameToSteps=Fe,e.pathToSteps=function(e){return Fe(Ie(e))},e.dataToStr=function(e,t){return void 0===t&&(t=g.ENCODING_UTF8),u.Buffer.isBuffer(e)?e.toString(t):e instanceof Uint8Array?(0,u.bufferFrom)(e).toString(t):String(e)},e.dataToBuffer=Le,e.bufferToEncoding=je,e.toUnixTimestamp=Ue;var Ve=function(){function e(e){void 0===e&&(e={}),this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.maxFiles=1e4,this.openFiles=0,this.promisesApi=(0,T.default)(this),this.statWatchers={},this.props=Object.assign({Node:o.Node,Link:o.Link,File:o.File},e);var t=this.createLink();t.setNode(this.createNode(!0));var i=this;this.StatWatcher=function(e){function t(){return e.call(this,i)||this}return r(t,e),t}(Ye);var s=Xe;this.ReadStream=function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.apply(this,n([i],t,!1))||this}return r(t,e),t}(s);var a=He;this.WriteStream=function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.apply(this,n([i],t,!1))||this}return r(t,e),t}(a),this.FSWatcher=function(e){function t(){return e.call(this,i)||this}return r(t,e),t}(Ge),this.root=t}return e.fromJSON=function(t,r){var n=new e;return n.fromJSON(t,r),n},e.fromNestedJSON=function(t,r){var n=new e;return n.fromNestedJSON(t,r),n},Object.defineProperty(e.prototype,"promises",{get:function(){if(null===this.promisesApi)throw new Error("Promise is not supported in this environment.");return this.promisesApi},enumerable:!1,configurable:!0}),e.prototype.createLink=function(e,t,r,n){if(void 0===r&&(r=!1),!e)return new this.props.Link(this,null,"");if(!t)throw new Error("createLink: name cannot be empty");return e.createChild(t,this.createNode(r,n))},e.prototype.deleteLink=function(e){var t=e.parent;return!!t&&(t.deleteChild(e),!0)},e.prototype.newInoNumber=function(){var e=this.releasedInos.pop();return e||(this.ino=(this.ino+1)%4294967295,this.ino)},e.prototype.newFdNumber=function(){var t=this.releasedFds.pop();return"number"==typeof t?t:e.fd--},e.prototype.createNode=function(e,t){void 0===e&&(e=!1);var r=new this.props.Node(this.newInoNumber(),t);return e&&r.setIsDirectory(),this.inodes[r.ino]=r,r},e.prototype.getNode=function(e){return this.inodes[e]},e.prototype.deleteNode=function(e){e.del(),delete this.inodes[e.ino],this.releasedInos.push(e.ino)},e.prototype.genRndStr=function(){var e=(Math.random()+1).toString(36).substring(2,8);return 6===e.length?e:this.genRndStr()},e.prototype.getLink=function(e){return this.root.walk(e)},e.prototype.getLinkOrThrow=function(e,t){var r=Fe(e),n=this.getLink(r);if(!n)throw ne(z,t,e);return n},e.prototype.getResolvedLink=function(e){for(var t="string"==typeof e?Fe(e):e,r=this.root,n=0;n<t.length;){var i=t[n];if(!(r=r.getChild(i)))return null;var s=r.getNode();s.isSymlink()?(t=s.symlink.concat(t.slice(n+1)),r=this.root,n=0):n++}return r},e.prototype.getResolvedLinkOrThrow=function(e,t){var r=this.getResolvedLink(e);if(!r)throw ne(z,t,e);return r},e.prototype.resolveSymlinks=function(e){return this.getResolvedLink(e.steps.slice(1))},e.prototype.getLinkAsDirOrThrow=function(e,t){var r=this.getLinkOrThrow(e,t);if(!r.getNode().isDirectory())throw ne(H,t,e);return r},e.prototype.getLinkParent=function(e){return this.root.walk(e,e.length-1)},e.prototype.getLinkParentAsDirOrThrow=function(e,t){var r=e instanceof Array?e:Fe(e),n=this.getLinkParent(r);if(!n)throw ne(z,t,L+r.join(L));if(!n.getNode().isDirectory())throw ne(H,t,L+r.join(L));return n},e.prototype.getFileByFd=function(e){return this.fds[String(e)]},e.prototype.getFileByFdOrThrow=function(e,t){if(!Re(e))throw TypeError(U);var r=this.getFileByFd(e);if(!r)throw ne(Y,t);return r},e.prototype.wrapAsync=function(e,t,r){var n=this;oe(r),(0,p.default)((function(){var i;try{i=e.apply(n,t)}catch(e){return void r(e)}r(null,i)}))},e.prototype._toJSON=function(e,t,r){var n;void 0===e&&(e=this.root),void 0===t&&(t={});var i=!0,s=e.children;for(var a in e.getNode().isFile()&&((n={})[e.getName()]=e.parent.getChild(e.getName()),s=n,e=e.parent),s){i=!1;var o=e.getChild(a);if(!o)throw new Error("_toJSON: unexpected undefined");var l=o.getNode();if(l.isFile()){var c=o.getPath();r&&(c=j(r,c)),t[c]=l.getString()}else l.isDirectory()&&this._toJSON(o,t,r)}var u=e.getPath();return r&&(u=j(r,u)),u&&i&&(t[u]=null),t},e.prototype.toJSON=function(e,t,r){void 0===t&&(t={}),void 0===r&&(r=!1);var n=[];if(e){e instanceof Array||(e=[e]);for(var i=0,s=e;i<s.length;i++){var a=Ie(s[i]);(c=this.getResolvedLink(a))&&n.push(c)}}else n.push(this.root);if(!n.length)return t;for(var o=0,l=n;o<l.length;o++){var c=l[o];this._toJSON(c,t,r?c.getPath():"")}return t},e.prototype.fromJSON=function(e,t){for(var r in void 0===t&&(t=d.default.cwd()),e){var n=e[r];if(r=Oe(r,t),"string"==typeof n){var i=B(r);this.mkdirpBase(i,511),this.writeFileSync(r,n)}else this.mkdirpBase(r,511)}},e.prototype.fromNestedJSON=function(e,t){var r;this.fromJSON((r={},function e(t,n){for(var i in n){var s=n[i],a=M(t,i);"string"==typeof s?r[a]=s:"object"==typeof s&&null!==s&&Object.keys(s).length>0?e(a,s):r[a]=null}}("",e),r),t)},e.prototype.reset=function(){this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.openFiles=0,this.root=this.createLink(),this.root.setNode(this.createNode(!0))},e.prototype.mountSync=function(e,t){this.fromJSON(t,e)},e.prototype.openLink=function(e,t,r){if(void 0===r&&(r=!0),this.openFiles>=this.maxFiles)throw ne(G,"open",e.getPath());var n=e;if(r&&(n=this.resolveSymlinks(e)),!n)throw ne(z,"open",e.getPath());var i=n.getNode();if(i.isDirectory()){if((t&(E|_|x))!==E)throw ne(Z,"open",e.getPath())}else if(t&I)throw ne(H,"open",e.getPath());if(!(t&x||i.canRead()))throw ne(Q,"open",e.getPath());var s=new this.props.File(e,i,t,this.newFdNumber());return this.fds[s.fd]=s,this.openFiles++,t&w&&s.truncate(),s},e.prototype.openFile=function(e,t,r,n){void 0===n&&(n=!0);var i=Fe(e),s=n?this.getResolvedLink(i):this.getLink(i);if(s&&t&P)throw ne($,"open",e);if(!s&&t&A){var a=this.getResolvedLink(i.slice(0,i.length-1));if(!a)throw ne(z,"open",L+i.join(L));t&A&&"number"==typeof r&&(s=this.createLink(a,i[i.length-1],!1,r))}if(s)return this.openLink(s,t,n);throw ne(z,"open",e)},e.prototype.openBase=function(e,t,r,n){void 0===n&&(n=!0);var i=this.openFile(e,t,r,n);if(!i)throw ne(z,"open",e);return i.fd},e.prototype.openSync=function(e,t,r){void 0===r&&(r=438);var n=Be(r),i=Ie(e),s=ie(t);return this.openBase(i,s,n)},e.prototype.open=function(e,t,r,n){var i=r,s=n;"function"==typeof r&&(i=438,s=r);var a=Be(i=i||438),o=Ie(e),l=ie(t);this.wrapAsync(this.openBase,[o,l,a],s)},e.prototype.closeFile=function(e){this.fds[e.fd]&&(this.openFiles--,delete this.fds[e.fd],this.releasedFds.push(e.fd))},e.prototype.closeSync=function(e){qe(e);var t=this.getFileByFdOrThrow(e,"close");this.closeFile(t)},e.prototype.close=function(e,t){qe(e),this.wrapAsync(this.closeSync,[e],t)},e.prototype.openFileOrGetById=function(e,t,r){if("number"==typeof e){var n=this.fds[e];if(!n)throw ne(z);return n}return this.openFile(Ie(e),t,r)},e.prototype.readBase=function(e,t,r,n,i){return this.getFileByFdOrThrow(e).read(t,Number(r),Number(n),i)},e.prototype.readSync=function(e,t,r,n,i){return qe(e),this.readBase(e,t,r,n,i)},e.prototype.read=function(e,t,r,n,i,s){var a=this;if(oe(s),0===n)return d.default.nextTick((function(){s&&s(null,0,t)}));(0,p.default)((function(){try{var o=a.readBase(e,t,r,n,i);s(null,o,t)}catch(e){s(e)}}))},e.prototype.readFileBase=function(e,t,r){var n,i,s="number"==typeof e&&Re(e);if(s)i=e;else{var a=Fe(Ie(e)),o=this.getResolvedLink(a);if(o)if(o.getNode().isDirectory())throw ne(Z,"open",o.getPath());i=this.openSync(e,t)}try{n=je(this.getFileByFdOrThrow(i).getBuffer(),r)}finally{s||this.closeSync(i)}return n},e.prototype.readFileSync=function(e,t){var r=de(t),n=ie(r.flag);return this.readFileBase(e,n,r.encoding)},e.prototype.readFile=function(e,t,r){var n=le(de)(t,r),i=n[0],s=n[1],a=ie(i.flag);this.wrapAsync(this.readFileBase,[e,a,i.encoding],s)},e.prototype.writeBase=function(e,t,r,n,i){return this.getFileByFdOrThrow(e,"write").write(t,r,n,i)},e.prototype.writeSync=function(e,t,r,n,i){var s,a,o,l;qe(e);var c="string"!=typeof t;c?(a=0|(r||0),o=n,l=i):(l=r,s=n);var u=Le(t,s);return c?void 0===o&&(o=u.length):(a=0,o=u.length),this.writeBase(e,u,a,o,l)},e.prototype.write=function(e,t,r,n,i,s){var a,o,l,c,u,d=this;qe(e);var h=typeof t,f=typeof r,m=typeof n,y=typeof i;"string"!==h?"function"===f?u=r:"function"===m?(a=0|r,u=n):"function"===y?(a=0|r,o=n,u=i):(a=0|r,o=n,l=i,u=s):"function"===f?u=r:"function"===m?(l=r,u=n):"function"===y&&(l=r,c=n,u=i);var g=Le(t,c);"string"!==h?void 0===o&&(o=g.length):(a=0,o=g.length);var b=oe(u);(0,p.default)((function(){try{var r=d.writeBase(e,g,a,o,l);b(null,r,"string"!==h?g:t)}catch(e){b(e)}}))},e.prototype.writeFileBase=function(e,t,r,n){var i,s="number"==typeof e;i=s?e:this.openBase(Ie(e),r,n);var a=0,o=t.length,l=r&D?void 0:0;try{for(;o>0;){var c=this.writeSync(i,t,a,o,l);a+=c,o-=c,void 0!==l&&(l+=c)}}finally{s||this.closeSync(i)}},e.prototype.writeFileSync=function(e,t,r){var n=fe(r),i=ie(n.flag),s=Be(n.mode),a=Le(t,n.encoding);this.writeFileBase(e,a,i,s)},e.prototype.writeFile=function(e,t,r,n){var i=r,s=n;"function"==typeof r&&(i=he,s=r);var a=oe(s),o=fe(i),l=ie(o.flag),c=Be(o.mode),u=Le(t,o.encoding);this.wrapAsync(this.writeFileBase,[e,u,l,c],a)},e.prototype.linkBase=function(e,t){var r=Fe(e),n=this.getLink(r);if(!n)throw ne(z,"link",e,t);var i=Fe(t),s=this.getLinkParent(i);if(!s)throw ne(z,"link",e,t);var a=i[i.length-1];if(s.getChild(a))throw ne($,"link",e,t);var o=n.getNode();o.nlink++,s.createChild(a,o)},e.prototype.copyFileBase=function(e,t,r){var n=this.readFileSync(e);if(r&k&&this.existsSync(t))throw ne($,"copyFile",e,t);if(r&O)throw ne(te,"copyFile",e,t);this.writeFileBase(t,n,i.w,438)},e.prototype.copyFileSync=function(e,t,r){var n=Ie(e),i=Ie(t);return this.copyFileBase(n,i,0|(r||0))},e.prototype.copyFile=function(e,t,r,n){var i,s,a=Ie(e),o=Ie(t);"function"==typeof r?(i=0,s=r):(i=r,s=n),oe(s),this.wrapAsync(this.copyFileBase,[a,o,i],s)},e.prototype.linkSync=function(e,t){var r=Ie(e),n=Ie(t);this.linkBase(r,n)},e.prototype.link=function(e,t,r){var n=Ie(e),i=Ie(t);this.wrapAsync(this.linkBase,[n,i],r)},e.prototype.unlinkBase=function(e){var t=Fe(e),r=this.getLink(t);if(!r)throw ne(z,"unlink",e);if(r.length)throw Error("Dir not empty...");this.deleteLink(r);var n=r.getNode();n.nlink--,n.nlink<=0&&this.deleteNode(n)},e.prototype.unlinkSync=function(e){var t=Ie(e);this.unlinkBase(t)},e.prototype.unlink=function(e,t){var r=Ie(e);this.wrapAsync(this.unlinkBase,[r],t)},e.prototype.symlinkBase=function(e,t){var r=Fe(t),n=this.getLinkParent(r);if(!n)throw ne(z,"symlink",e,t);var i=r[r.length-1];if(n.getChild(i))throw ne($,"symlink",e,t);var s=n.createChild(i);return s.getNode().makeSymlink(Fe(e)),s},e.prototype.symlinkSync=function(e,t,r){var n=Ie(e),i=Ie(t);this.symlinkBase(n,i)},e.prototype.symlink=function(e,t,r,n){var i=oe("function"==typeof r?r:n),s=Ie(e),a=Ie(t);this.wrapAsync(this.symlinkBase,[s,a],i)},e.prototype.realpathBase=function(e,t){var r=Fe(e),n=this.getResolvedLink(r);if(!n)throw ne(z,"realpath",e);return(0,g.strToEncoding)(n.getPath()||"/",t)},e.prototype.realpathSync=function(e,t){return this.realpathBase(Ie(e),be(t).encoding)},e.prototype.realpath=function(e,t,r){var n=Se(t,r),i=n[0],s=n[1],a=Ie(e);this.wrapAsync(this.realpathBase,[a,i.encoding],s)},e.prototype.lstatBase=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=this.getLink(Fe(e));if(n)return l.default.build(n.getNode(),t);if(r)throw ne(z,"lstat",e)},e.prototype.lstatSync=function(e,t){var r=De(t),n=r.throwIfNoEntry,i=void 0===n||n,s=r.bigint,a=void 0!==s&&s;return this.lstatBase(Ie(e),a,i)},e.prototype.lstat=function(e,t,r){var n=Ce(t,r),i=n[0],s=i.throwIfNoEntry,a=void 0===s||s,o=i.bigint,l=void 0!==o&&o,c=n[1];this.wrapAsync(this.lstatBase,[Ie(e),l,a],c)},e.prototype.statBase=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0);var n=this.getResolvedLink(Fe(e));if(n)return l.default.build(n.getNode(),t);if(r)throw ne(z,"stat",e)},e.prototype.statSync=function(e,t){var r=De(t),n=r.bigint,i=void 0===n||n,s=r.throwIfNoEntry,a=void 0===s||s;return this.statBase(Ie(e),i,a)},e.prototype.stat=function(e,t,r){var n=Ce(t,r),i=n[0],s=i.bigint,a=void 0!==s&&s,o=i.throwIfNoEntry,l=void 0===o||o,c=n[1];this.wrapAsync(this.statBase,[Ie(e),a,l],c)},e.prototype.fstatBase=function(e,t){void 0===t&&(t=!1);var r=this.getFileByFd(e);if(!r)throw ne(Y,"fstat");return l.default.build(r.node,t)},e.prototype.fstatSync=function(e,t){return this.fstatBase(e,De(t).bigint)},e.prototype.fstat=function(e,t,r){var n=Ce(t,r),i=n[0],s=n[1];this.wrapAsync(this.fstatBase,[e,i.bigint],s)},e.prototype.renameBase=function(e,t){var r=this.getLink(Fe(e));if(!r)throw ne(z,"rename",e,t);var i=Fe(t),s=this.getLinkParent(i);if(!s)throw ne(z,"rename",e,t);var a=r.parent;a&&a.deleteChild(r);var o=i[i.length-1];r.name=o,r.steps=n(n([],s.steps,!0),[o],!1),s.setChild(r.getName(),r)},e.prototype.renameSync=function(e,t){var r=Ie(e),n=Ie(t);this.renameBase(r,n)},e.prototype.rename=function(e,t,r){var n=Ie(e),i=Ie(t);this.wrapAsync(this.renameBase,[n,i],r)},e.prototype.existsBase=function(e){return!!this.statBase(e)},e.prototype.existsSync=function(e){try{return this.existsBase(Ie(e))}catch(e){return!1}},e.prototype.exists=function(e,t){var r=this,n=Ie(e);if("function"!=typeof t)throw Error(J);(0,p.default)((function(){try{t(r.existsBase(n))}catch(e){t(!1)}}))},e.prototype.accessBase=function(e,t){this.getLinkOrThrow(e,"access")},e.prototype.accessSync=function(e,t){void 0===t&&(t=N);var r=Ie(e);t|=0,this.accessBase(r,t)},e.prototype.access=function(e,t,r){var n,i=N;"function"!=typeof t?(i=0|t,n=oe(r)):n=t;var s=Ie(e);this.wrapAsync(this.accessBase,[s,i],n)},e.prototype.appendFileSync=function(e,t,r){void 0===r&&(r=me);var n=ye(r);n.flag&&!Re(e)||(n.flag="a"),this.writeFileSync(e,t,n)},e.prototype.appendFile=function(e,t,r,n){var i=ge(r,n),s=i[0],a=i[1];s.flag&&!Re(e)||(s.flag="a"),this.writeFile(e,t,s,a)},e.prototype.readdirBase=function(e,t){var r=Fe(e),n=this.getResolvedLink(r);if(!n)throw ne(z,"readdir",e);if(!n.getNode().isDirectory())throw ne(H,"scandir",e);if(t.withFileTypes){var i=[];for(var s in n.children){var a=n.getChild(s);a&&i.push(c.default.build(a,t.encoding))}return R||"buffer"===t.encoding||i.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0})),i}var o=[];for(var l in n.children)o.push((0,g.strToEncoding)(l,t.encoding));return R||"buffer"===t.encoding||o.sort(),o},e.prototype.readdirSync=function(e,t){var r=Ae(t),n=Ie(e);return this.readdirBase(n,r)},e.prototype.readdir=function(e,t,r){var n=Pe(t,r),i=n[0],s=n[1],a=Ie(e);this.wrapAsync(this.readdirBase,[a,i],s)},e.prototype.readlinkBase=function(e,t){var r=this.getLinkOrThrow(e,"readlink").getNode();if(!r.isSymlink())throw ne(X,"readlink",e);var n=L+r.symlink.join(L);return(0,g.strToEncoding)(n,t)},e.prototype.readlinkSync=function(e,t){var r=ue(t),n=Ie(e);return this.readlinkBase(n,r.encoding)},e.prototype.readlink=function(e,t,r){var n=pe(t,r),i=n[0],s=n[1],a=Ie(e);this.wrapAsync(this.readlinkBase,[a,i.encoding],s)},e.prototype.fsyncBase=function(e){this.getFileByFdOrThrow(e,"fsync")},e.prototype.fsyncSync=function(e){this.fsyncBase(e)},e.prototype.fsync=function(e,t){this.wrapAsync(this.fsyncBase,[e],t)},e.prototype.fdatasyncBase=function(e){this.getFileByFdOrThrow(e,"fdatasync")},e.prototype.fdatasyncSync=function(e){this.fdatasyncBase(e)},e.prototype.fdatasync=function(e,t){this.wrapAsync(this.fdatasyncBase,[e],t)},e.prototype.ftruncateBase=function(e,t){this.getFileByFdOrThrow(e,"ftruncate").truncate(t)},e.prototype.ftruncateSync=function(e,t){this.ftruncateBase(e,t)},e.prototype.ftruncate=function(e,t,r){var n="number"==typeof t?t:0,i=oe("number"==typeof t?r:t);this.wrapAsync(this.ftruncateBase,[e,n],i)},e.prototype.truncateBase=function(e,t){var r=this.openSync(e,"r+");try{this.ftruncateSync(r,t)}finally{this.closeSync(r)}},e.prototype.truncateSync=function(e,t){if(Re(e))return this.ftruncateSync(e,t);this.truncateBase(e,t)},e.prototype.truncate=function(e,t,r){var n="number"==typeof t?t:0,i=oe("number"==typeof t?r:t);if(Re(e))return this.ftruncate(e,n,i);this.wrapAsync(this.truncateBase,[e,n],i)},e.prototype.futimesBase=function(e,t,r){var n=this.getFileByFdOrThrow(e,"futimes").node;n.atime=new Date(1e3*t),n.mtime=new Date(1e3*r)},e.prototype.futimesSync=function(e,t,r){this.futimesBase(e,Ue(t),Ue(r))},e.prototype.futimes=function(e,t,r,n){this.wrapAsync(this.futimesBase,[e,Ue(t),Ue(r)],n)},e.prototype.utimesBase=function(e,t,r){var n=this.openSync(e,"r");try{this.futimesBase(n,t,r)}finally{this.closeSync(n)}},e.prototype.utimesSync=function(e,t,r){this.utimesBase(Ie(e),Ue(t),Ue(r))},e.prototype.utimes=function(e,t,r,n){this.wrapAsync(this.utimesBase,[Ie(e),Ue(t),Ue(r)],n)},e.prototype.mkdirBase=function(e,t){var r=Fe(e);if(!r.length)throw ne($,"mkdir",e);var n=this.getLinkParentAsDirOrThrow(e,"mkdir"),i=r[r.length-1];if(n.getChild(i))throw ne($,"mkdir",e);n.createChild(i,this.createNode(!0,t))},e.prototype.mkdirpBase=function(e,t){for(var r=Oe(e),n=r.substring(1),i=n?n.split(L):[],s=this.root,a=!1,o=0;o<i.length;o++){var l=i[o];if(!s.getNode().isDirectory())throw ne(H,"mkdir",s.getPath());var c=s.getChild(l);if(c){if(!c.getNode().isDirectory())throw ne(H,"mkdir",c.getPath());s=c}else s=s.createChild(l,this.createNode(!0,t)),a=!0}return a?r:void 0},e.prototype.mkdirSync=function(e,t){var r=ve(t),n=Be(r.mode,511),i=Ie(e);if(r.recursive)return this.mkdirpBase(i,n);this.mkdirBase(i,n)},e.prototype.mkdir=function(e,t,r){var n=ve(t),i=oe("function"==typeof t?t:r),s=Be(n.mode,511),a=Ie(e);n.recursive?this.wrapAsync(this.mkdirpBase,[a,s],i):this.wrapAsync(this.mkdirBase,[a,s],i)},e.prototype.mkdirpSync=function(e,t){return this.mkdirSync(e,{mode:t,recursive:!0})},e.prototype.mkdirp=function(e,t,r){var n="function"==typeof t?void 0:t,i=oe("function"==typeof t?t:r);this.mkdir(e,{mode:n,recursive:!0},i)},e.prototype.mkdtempBase=function(e,t,r){void 0===r&&(r=5);var n=e+this.genRndStr();try{return this.mkdirBase(n,511),(0,g.strToEncoding)(n,t)}catch(n){if(n.code===$){if(r>1)return this.mkdtempBase(e,t,r-1);throw Error("Could not create temp dir.")}throw n}},e.prototype.mkdtempSync=function(e,t){var r=ue(t).encoding;if(!e||"string"!=typeof e)throw new TypeError("filename prefix is required");return Me(e),this.mkdtempBase(e,r)},e.prototype.mkdtemp=function(e,t,r){var n=pe(t,r),i=n[0].encoding,s=n[1];if(!e||"string"!=typeof e)throw new TypeError("filename prefix is required");Me(e)&&this.wrapAsync(this.mkdtempBase,[e,i],s)},e.prototype.rmdirBase=function(e,t){var r=xe(t),n=this.getLinkAsDirOrThrow(e,"rmdir");if(n.length&&!r.recursive)throw ne(ee,"rmdir",e);this.deleteLink(n)},e.prototype.rmdirSync=function(e,t){this.rmdirBase(Ie(e),t)},e.prototype.rmdir=function(e,t,r){var n=xe(t),i=oe("function"==typeof t?t:r);this.wrapAsync(this.rmdirBase,[Ie(e),n],i)},e.prototype.rmBase=function(e,t){void 0===t&&(t={});var r=this.getResolvedLink(e);if(r){if(r.getNode().isDirectory()&&!t.recursive)throw ne(re,"rm",e);this.deleteLink(r)}else if(!t.force)throw ne(z,"stat",e)},e.prototype.rmSync=function(e,t){this.rmBase(Ie(e),t)},e.prototype.rm=function(e,t,r){var n=_e(t,r),i=n[0],s=n[1];this.wrapAsync(this.rmBase,[Ie(e),i],s)},e.prototype.fchmodBase=function(e,t){this.getFileByFdOrThrow(e,"fchmod").chmod(t)},e.prototype.fchmodSync=function(e,t){this.fchmodBase(e,Be(t))},e.prototype.fchmod=function(e,t,r){this.wrapAsync(this.fchmodBase,[e,Be(t)],r)},e.prototype.chmodBase=function(e,t){var r=this.openSync(e,"r");try{this.fchmodBase(r,t)}finally{this.closeSync(r)}},e.prototype.chmodSync=function(e,t){var r=Be(t),n=Ie(e);this.chmodBase(n,r)},e.prototype.chmod=function(e,t,r){var n=Be(t),i=Ie(e);this.wrapAsync(this.chmodBase,[i,n],r)},e.prototype.lchmodBase=function(e,t){var r=this.openBase(e,_,0,!1);try{this.fchmodBase(r,t)}finally{this.closeSync(r)}},e.prototype.lchmodSync=function(e,t){var r=Be(t),n=Ie(e);this.lchmodBase(n,r)},e.prototype.lchmod=function(e,t,r){var n=Be(t),i=Ie(e);this.wrapAsync(this.lchmodBase,[i,n],r)},e.prototype.fchownBase=function(e,t,r){this.getFileByFdOrThrow(e,"fchown").chown(t,r)},e.prototype.fchownSync=function(e,t,r){Ke(t),Je(r),this.fchownBase(e,t,r)},e.prototype.fchown=function(e,t,r,n){Ke(t),Je(r),this.wrapAsync(this.fchownBase,[e,t,r],n)},e.prototype.chownBase=function(e,t,r){this.getResolvedLinkOrThrow(e,"chown").getNode().chown(t,r)},e.prototype.chownSync=function(e,t,r){Ke(t),Je(r),this.chownBase(Ie(e),t,r)},e.prototype.chown=function(e,t,r,n){Ke(t),Je(r),this.wrapAsync(this.chownBase,[Ie(e),t,r],n)},e.prototype.lchownBase=function(e,t,r){this.getLinkOrThrow(e,"lchown").getNode().chown(t,r)},e.prototype.lchownSync=function(e,t,r){Ke(t),Je(r),this.lchownBase(Ie(e),t,r)},e.prototype.lchown=function(e,t,r,n){Ke(t),Je(r),this.wrapAsync(this.lchownBase,[Ie(e),t,r],n)},e.prototype.watchFile=function(e,t,r){var n=Ie(e),i=t,s=r;if("function"==typeof i&&(s=t,i=null),"function"!=typeof s)throw Error('"watchFile()" requires a listener function');var a=5007,o=!0;i&&"object"==typeof i&&("number"==typeof i.interval&&(a=i.interval),"boolean"==typeof i.persistent&&(o=i.persistent));var l=this.statWatchers[n];return l||((l=new this.StatWatcher).start(n,o,a),this.statWatchers[n]=l),l.addListener("change",s),l},e.prototype.unwatchFile=function(e,t){var r=Ie(e),n=this.statWatchers[r];n&&("function"==typeof t?n.removeListener("change",t):n.removeAllListeners("change"),0===n.listenerCount("change")&&(n.stop(),delete this.statWatchers[r]))},e.prototype.createReadStream=function(e,t){return new this.ReadStream(e,t)},e.prototype.createWriteStream=function(e,t){return new this.WriteStream(e,t)},e.prototype.watch=function(e,t,r){var n=Ie(e),i=t;"function"==typeof t&&(r=t,i=null);var s=ue(i),a=s.persistent,o=s.recursive,l=s.encoding;void 0===a&&(a=!0),void 0===o&&(o=!1);var c=new this.FSWatcher;return c.start(n,a,o,l),r&&c.addListener("change",r),c},e.fd=2147483647,e}();function We(e){e.emit("stop")}e.Volume=Ve;var ze,Ye=function(e){function t(t){var r=e.call(this)||this;return r.onInterval=function(){try{var e=r.vol.statSync(r.filename);r.hasChanged(e)&&(r.emit("change",e,r.prev),r.prev=e)}finally{r.loop()}},r.vol=t,r}return r(t,e),t.prototype.loop=function(){this.timeoutRef=this.setTimeout(this.onInterval,this.interval)},t.prototype.hasChanged=function(e){return e.mtimeMs>this.prev.mtimeMs||e.nlink!==this.prev.nlink},t.prototype.start=function(e,t,r){void 0===t&&(t=!0),void 0===r&&(r=5007),this.filename=Ie(e),this.setTimeout=t?setTimeout.bind("undefined"!=typeof globalThis?globalThis:global):h.default,this.interval=r,this.prev=this.vol.statSync(this.filename),this.loop()},t.prototype.stop=function(){clearTimeout(this.timeoutRef),d.default.nextTick(We,this)},t}(y.EventEmitter);function Xe(e,t,r){if(!(this instanceof Xe))return new Xe(e,t,r);if(this._vol=e,void 0===(r=Object.assign({},se(r,{}))).highWaterMark&&(r.highWaterMark=65536),f.Readable.call(this,r),this.path=Ie(t),this.fd=void 0===r.fd?null:r.fd,this.flags=void 0===r.flags?"r":r.flags,this.mode=void 0===r.mode?438:r.mode,this.start=r.start,this.end=r.end,this.autoClose=void 0===r.autoClose||r.autoClose,this.pos=void 0,this.bytesRead=0,void 0!==this.start){if("number"!=typeof this.start)throw new TypeError('"start" option must be a Number');if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw new TypeError('"end" option must be a Number');if(this.start>this.end)throw new Error('"start" option must be <= "end" option');this.pos=this.start}"number"!=typeof this.fd&&this.open(),this.on("end",(function(){this.autoClose&&this.destroy&&this.destroy()}))}function $e(e){this.close()}function He(e,t,r){if(!(this instanceof He))return new He(e,t,r);if(this._vol=e,r=Object.assign({},se(r,{})),f.Writable.call(this,r),this.path=Ie(t),this.fd=void 0===r.fd?null:r.fd,this.flags=void 0===r.flags?"w":r.flags,this.mode=void 0===r.mode?438:r.mode,this.start=r.start,this.autoClose=void 0===r.autoClose||!!r.autoClose,this.pos=void 0,this.bytesWritten=0,void 0!==this.start){if("number"!=typeof this.start)throw new TypeError('"start" option must be a Number');if(this.start<0)throw new Error('"start" must be >= zero');this.pos=this.start}r.encoding&&this.setDefaultEncoding(r.encoding),"number"!=typeof this.fd&&this.open(),this.once("finish",(function(){this.autoClose&&this.close()}))}e.StatWatcher=Ye,S.inherits(Xe,f.Readable),e.ReadStream=Xe,Xe.prototype.open=function(){var e=this;this._vol.open(this.path,this.flags,this.mode,(function(t,r){if(t)return e.autoClose&&e.destroy&&e.destroy(),void e.emit("error",t);e.fd=r,e.emit("open",r),e.read()}))},Xe.prototype._read=function(e){if("number"!=typeof this.fd)return this.once("open",(function(){this._read(e)}));if(!this.destroyed){var t;(!ze||ze.length-ze.used<128)&&(t=this._readableState.highWaterMark,(ze=(0,u.bufferAllocUnsafe)(t)).used=0);var r=ze,n=Math.min(ze.length-ze.used,e),i=ze.used;if(void 0!==this.pos&&(n=Math.min(this.end-this.pos+1,n)),n<=0)return this.push(null);var s=this;this._vol.read(this.fd,ze,ze.used,n,this.pos,(function(e,t){if(e)s.autoClose&&s.destroy&&s.destroy(),s.emit("error",e);else{var n=null;t>0&&(s.bytesRead+=t,n=r.slice(i,i+t)),s.push(n)}})),void 0!==this.pos&&(this.pos+=n),ze.used+=n}},Xe.prototype._destroy=function(e,t){this.close((function(r){t(e||r)}))},Xe.prototype.close=function(e){var t,r=this;if(e&&this.once("close",e),this.closed||"number"!=typeof this.fd)return"number"!=typeof this.fd?void this.once("open",$e):d.default.nextTick((function(){return r.emit("close")}));"boolean"==typeof(null===(t=this._readableState)||void 0===t?void 0:t.closed)?this._readableState.closed=!0:this.closed=!0,this._vol.close(this.fd,(function(e){e?r.emit("error",e):r.emit("close")})),this.fd=null},S.inherits(He,f.Writable),e.WriteStream=He,He.prototype.open=function(){this._vol.open(this.path,this.flags,this.mode,function(e,t){if(e)return this.autoClose&&this.destroy&&this.destroy(),void this.emit("error",e);this.fd=t,this.emit("open",t)}.bind(this))},He.prototype._write=function(e,t,r){if(!(e instanceof u.Buffer||e instanceof Uint8Array))return this.emit("error",new Error("Invalid data"));if("number"!=typeof this.fd)return this.once("open",(function(){this._write(e,t,r)}));var n=this;this._vol.write(this.fd,e,0,e.length,this.pos,(function(e,t){if(e)return n.autoClose&&n.destroy&&n.destroy(),r(e);n.bytesWritten+=t,r()})),void 0!==this.pos&&(this.pos+=e.length)},He.prototype._writev=function(e,t){if("number"!=typeof this.fd)return this.once("open",(function(){this._writev(e,t)}));for(var r=this,n=e.length,i=new Array(n),s=0,a=0;a<n;a++){var o=e[a].chunk;i[a]=o,s+=o.length}var l=u.Buffer.concat(i);this._vol.write(this.fd,l,0,l.length,this.pos,(function(e,n){if(e)return r.destroy&&r.destroy(),t(e);r.bytesWritten+=n,t()})),void 0!==this.pos&&(this.pos+=s)},He.prototype.close=function(e){var t,r=this;if(e&&this.once("close",e),this.closed||"number"!=typeof this.fd)return"number"!=typeof this.fd?void this.once("open",$e):d.default.nextTick((function(){return r.emit("close")}));"boolean"==typeof(null===(t=this._writableState)||void 0===t?void 0:t.closed)?this._writableState.closed=!0:this.closed=!0,this._vol.close(this.fd,(function(e){e?r.emit("error",e):r.emit("close")})),this.fd=null},He.prototype._destroy=Xe.prototype._destroy,He.prototype.destroySoon=He.prototype.end;var Ge=function(e){function t(t){var r=e.call(this)||this;return r._filename="",r._filenameEncoded="",r._recursive=!1,r._encoding=g.ENCODING_UTF8,r._onNodeChange=function(){r._emit("change")},r._onParentChild=function(e){e.getName()===r._getName()&&r._emit("rename")},r._emit=function(e){r.emit("change",e,r._filenameEncoded)},r._persist=function(){r._timer=setTimeout(r._persist,1e6)},r._vol=t,r}return r(t,e),t.prototype._getName=function(){return this._steps[this._steps.length-1]},t.prototype.start=function(e,t,r,n){void 0===t&&(t=!0),void 0===r&&(r=!1),void 0===n&&(n=g.ENCODING_UTF8),this._filename=Ie(e),this._steps=Fe(this._filename),this._filenameEncoded=(0,g.strToEncoding)(this._filename),this._recursive=r,this._encoding=n;try{this._link=this._vol.getLinkOrThrow(this._filename,"FSWatcher")}catch(e){var i=new Error("watch ".concat(this._filename," ").concat(e.code));throw i.code=e.code,i.errno=e.code,i}this._link.getNode().on("change",this._onNodeChange),this._link.on("child:add",this._onNodeChange),this._link.on("child:delete",this._onNodeChange);var s=this._link.parent;s&&(s.setMaxListeners(s.getMaxListeners()+1),s.on("child:delete",this._onParentChild)),t&&this._persist()},t.prototype.close=function(){clearTimeout(this._timer),this._link.getNode().removeListener("change",this._onNodeChange);var e=this._link.parent;e&&e.removeListener("child:delete",this._onParentChild)},t}(y.EventEmitter);e.FSWatcher=Ge}}),require_lists=__commonJS({"../../node_modules/.pnpm/fs-monkey@1.0.3/node_modules/fs-monkey/lib/util/lists.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.fsAsyncMethods=e.fsSyncMethods=e.fsProps=void 0;e.fsProps=["constants","F_OK","R_OK","W_OK","X_OK","Stats"];e.fsSyncMethods=["renameSync","ftruncateSync","truncateSync","chownSync","fchownSync","lchownSync","chmodSync","fchmodSync","lchmodSync","statSync","lstatSync","fstatSync","linkSync","symlinkSync","readlinkSync","realpathSync","unlinkSync","rmdirSync","mkdirSync","mkdirpSync","readdirSync","closeSync","openSync","utimesSync","futimesSync","fsyncSync","writeSync","readSync","readFileSync","writeFileSync","appendFileSync","existsSync","accessSync","fdatasyncSync","mkdtempSync","copyFileSync","createReadStream","createWriteStream"];e.fsAsyncMethods=["rename","ftruncate","truncate","chown","fchown","lchown","chmod","fchmod","lchmod","stat","lstat","fstat","link","symlink","readlink","realpath","unlink","rmdir","mkdir","mkdirp","readdir","close","open","utimes","futimes","fsync","write","read","readFile","writeFile","appendFile","exists","access","fdatasync","mkdtemp","copyFile","watchFile","unwatchFile","watch"]}}),require_lib2=__commonJS({"../../node_modules/.pnpm/memfs@3.4.12/node_modules/memfs/lib/index.js"(e,t){var r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.fs=e.createFsFromVolume=e.vol=e.Volume=void 0;var n=require_Stats(),i=require_Dirent(),s=require_volume(),a=require_lists(),o=a.fsSyncMethods,l=a.fsAsyncMethods,c=require_constants(),u=c.constants.F_OK,p=c.constants.R_OK,d=c.constants.W_OK,h=c.constants.X_OK;function f(e){for(var t={F_OK:u,R_OK:p,W_OK:d,X_OK:h,constants:c.constants,Stats:n.default,Dirent:i.default},r=0,a=o;r<a.length;r++){"function"==typeof e[y=a[r]]&&(t[y]=e[y].bind(e))}for(var f=0,m=l;f<m.length;f++){var y;"function"==typeof e[y=m[f]]&&(t[y]=e[y].bind(e))}return t.StatWatcher=e.StatWatcher,t.FSWatcher=e.FSWatcher,t.WriteStream=e.WriteStream,t.ReadStream=e.ReadStream,t.promises=e.promises,t._toUnixTimestamp=s.toUnixTimestamp,t}e.Volume=s.Volume,e.vol=new s.Volume,e.createFsFromVolume=f,e.fs=f(e.vol),t.exports=r(r({},t.exports),e.fs),t.exports.semantic=!0}}),require_ponyfill_es2018=__commonJS({"../../node_modules/.pnpm/web-streams-polyfill@3.2.1/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js"(e,t){var r,n;r=e,n=function(e){const t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:e=>`Symbol(${e})`;function r(){}const n="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0;function i(e){return"object"==typeof e&&null!==e||"function"==typeof e}const s=r,a=Promise,o=Promise.prototype.then,l=Promise.resolve.bind(a),c=Promise.reject.bind(a);function u(e){return new a(e)}function p(e){return l(e)}function d(e){return c(e)}function h(e,t,r){return o.call(e,t,r)}function f(e,t,r){h(h(e,t,r),void 0,s)}function m(e,t){f(e,t)}function y(e,t){f(e,void 0,t)}function g(e,t,r){return h(e,t,r)}function b(e){h(e,void 0,s)}const S=(()=>{const e=n&&n.queueMicrotask;if("function"==typeof e)return e;const t=p(void 0);return e=>h(t,e)})();function T(e,t,r){if("function"!=typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}function v(e,t,r){try{return p(T(e,t,r))}catch(e){return d(e)}}class E{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(e){const t=this._back;let r=t;16383===t._elements.length&&(r={_elements:[],_next:void 0}),t._elements.push(e),r!==t&&(this._back=r,t._next=r),++this._size}shift(){const e=this._front;let t=e;const r=this._cursor;let n=r+1;const i=e._elements,s=i[r];return 16384===n&&(t=e._next,n=0),--this._size,this._cursor=n,e!==t&&(this._front=t),i[r]=void 0,s}forEach(e){let t=this._cursor,r=this._front,n=r._elements;for(;!(t===n.length&&void 0===r._next||t===n.length&&(r=r._next,n=r._elements,t=0,0===n.length));)e(n[t]),++t}peek(){const e=this._front,t=this._cursor;return e._elements[t]}}function x(e,t){e._ownerReadableStream=t,t._reader=e,"readable"===t._state?w(e):"closed"===t._state?function(e){w(e),I(e)}(e):D(e,t._storedError)}function _(e,t){return Er(e._ownerReadableStream,t)}function A(e){"readable"===e._ownerReadableStream._state?C(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):function(e,t){D(e,t)}(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function P(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function w(e){e._closedPromise=u(((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r}))}function D(e,t){w(e),C(e,t)}function C(e,t){void 0!==e._closedPromise_reject&&(b(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function I(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}const N=t("[[AbortSteps]]"),k=t("[[ErrorSteps]]"),O=t("[[CancelSteps]]"),F=t("[[PullSteps]]"),L=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},j=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function M(e,t){if(void 0!==e&&"object"!=typeof(r=e)&&"function"!=typeof r)throw new TypeError(`${t} is not an object.`);var r}function B(e,t){if("function"!=typeof e)throw new TypeError(`${t} is not a function.`)}function R(e,t){if(!function(e){return"object"==typeof e&&null!==e||"function"==typeof e}(e))throw new TypeError(`${t} is not an object.`)}function q(e,t,r){if(void 0===e)throw new TypeError(`Parameter ${t} is required in '${r}'.`)}function U(e,t,r){if(void 0===e)throw new TypeError(`${t} is required in '${r}'.`)}function K(e){return Number(e)}function J(e){return 0===e?0:e}function V(e,t){const r=Number.MAX_SAFE_INTEGER;let n=Number(e);if(n=J(n),!L(n))throw new TypeError(`${t} is not a finite number`);if(n=function(e){return J(j(e))}(n),n<0||n>r)throw new TypeError(`${t} is outside the accepted range of 0 to ${r}, inclusive`);return L(n)&&0!==n?n:0}function W(e,t){if(!Tr(e))throw new TypeError(`${t} is not a ReadableStream.`)}function z(e){return new G(e)}function Y(e,t){e._reader._readRequests.push(t)}function X(e,t,r){const n=e._reader._readRequests.shift();r?n._closeSteps():n._chunkSteps(t)}function $(e){return e._reader._readRequests.length}function H(e){const t=e._reader;return void 0!==t&&!!Q(t)}class G{constructor(e){if(q(e,1,"ReadableStreamDefaultReader"),W(e,"First parameter"),vr(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");x(this,e),this._readRequests=new E}get closed(){return Q(this)?this._closedPromise:d(ee("closed"))}cancel(e=void 0){return Q(this)?void 0===this._ownerReadableStream?d(P("cancel")):_(this,e):d(ee("cancel"))}read(){if(!Q(this))return d(ee("read"));if(void 0===this._ownerReadableStream)return d(P("read from"));let e,t;const r=u(((r,n)=>{e=r,t=n}));return Z(this,{_chunkSteps:t=>e({value:t,done:!1}),_closeSteps:()=>e({value:void 0,done:!0}),_errorSteps:e=>t(e)}),r}releaseLock(){if(!Q(this))throw ee("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");A(this)}}}function Q(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")&&e instanceof G}function Z(e,t){const r=e._ownerReadableStream;r._disturbed=!0,"closed"===r._state?t._closeSteps():"errored"===r._state?t._errorSteps(r._storedError):r._readableStreamController[F](t)}function ee(e){return new TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`)}Object.defineProperties(G.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(G.prototype,t.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});const te=Object.getPrototypeOf(Object.getPrototypeOf((async function*(){})).prototype);class re{constructor(e,t){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=e,this._preventCancel=t}next(){const e=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?g(this._ongoingPromise,e,e):e(),this._ongoingPromise}return(e){const t=()=>this._returnSteps(e);return this._ongoingPromise?g(this._ongoingPromise,t,t):t()}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});const e=this._reader;if(void 0===e._ownerReadableStream)return d(P("iterate"));let t,r;const n=u(((e,n)=>{t=e,r=n}));return Z(e,{_chunkSteps:e=>{this._ongoingPromise=void 0,S((()=>t({value:e,done:!1})))},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,A(e),t({value:void 0,done:!0})},_errorSteps:t=>{this._ongoingPromise=void 0,this._isFinished=!0,A(e),r(t)}}),n}_returnSteps(e){if(this._isFinished)return Promise.resolve({value:e,done:!0});this._isFinished=!0;const t=this._reader;if(void 0===t._ownerReadableStream)return d(P("finish iterating"));if(!this._preventCancel){const r=_(t,e);return A(t),g(r,(()=>({value:e,done:!0})))}return A(t),p({value:e,done:!0})}}const ne={next(){return ie(this)?this._asyncIteratorImpl.next():d(se("next"))},return(e){return ie(this)?this._asyncIteratorImpl.return(e):d(se("return"))}};function ie(e){if(!i(e))return!1;if(!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorImpl"))return!1;try{return e._asyncIteratorImpl instanceof re}catch(e){return!1}}function se(e){return new TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`)}void 0!==te&&Object.setPrototypeOf(ne,te);const ae=Number.isNaN||function(e){return e!=e};function oe(e){return e.slice()}function le(e,t,r,n,i){new Uint8Array(e).set(new Uint8Array(r,n,i),t)}function ce(e,t,r){if(e.slice)return e.slice(t,r);const n=r-t,i=new ArrayBuffer(n);return le(i,0,e,t,n),i}function ue(e){const t=ce(e.buffer,e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}function pe(e){const t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function de(e,t,r){if("number"!=typeof(n=r)||ae(n)||n<0||r===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");var n;e._queue.push({value:t,size:r}),e._queueTotalSize+=r}function he(e){e._queue=new E,e._queueTotalSize=0}class fe{constructor(){throw new TypeError("Illegal constructor")}get view(){if(!ge(this))throw Re("view");return this._view}respond(e){if(!ge(this))throw Re("respond");if(q(e,1,"respond"),e=V(e,"First parameter"),void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");this._view.buffer,je(this._associatedReadableByteStreamController,e)}respondWithNewView(e){if(!ge(this))throw Re("respondWithNewView");if(q(e,1,"respondWithNewView"),!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");e.buffer,Me(this._associatedReadableByteStreamController,e)}}Object.defineProperties(fe.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(fe.prototype,t.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class me{constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!ye(this))throw qe("byobRequest");return Fe(this)}get desiredSize(){if(!ye(this))throw qe("desiredSize");return Le(this)}close(){if(!ye(this))throw qe("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");const e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError(`The stream (in ${e} state) is not in the readable state and cannot be closed`);Ne(this)}enqueue(e){if(!ye(this))throw qe("enqueue");if(q(e,1,"enqueue"),!ArrayBuffer.isView(e))throw new TypeError("chunk must be an array buffer view");if(0===e.byteLength)throw new TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");const t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError(`The stream (in ${t} state) is not in the readable state and cannot be enqueued to`);ke(this,e)}error(e=void 0){if(!ye(this))throw qe("error");Oe(this,e)}[O](e){Se(this),he(this);const t=this._cancelAlgorithm(e);return Ie(this),t}[F](e){const t=this._controlledReadableByteStream;if(this._queueTotalSize>0){const t=this._queue.shift();this._queueTotalSize-=t.byteLength,Ae(this);const r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);return void e._chunkSteps(r)}const r=this._autoAllocateChunkSize;if(void 0!==r){let t;try{t=new ArrayBuffer(r)}catch(t){return void e._errorSteps(t)}const n={buffer:t,bufferByteLength:r,byteOffset:0,byteLength:r,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(n)}Y(t,e),be(this)}}function ye(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")&&e instanceof me}function ge(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")&&e instanceof fe}function be(e){const t=function(e){const t=e._controlledReadableByteStream;if("readable"!==t._state)return!1;if(e._closeRequested)return!1;if(!e._started)return!1;if(H(t)&&$(t)>0)return!0;if(Ve(t)&&Je(t)>0)return!0;const r=Le(e);return r>0}(e);t&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,f(e._pullAlgorithm(),(()=>{e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,be(e))}),(t=>{Oe(e,t)}))))}function Se(e){Pe(e),e._pendingPullIntos=new E}function Te(e,t){let r=!1;"closed"===e._state&&(r=!0);const n=ve(t);"default"===t.readerType?X(e,n,r):function(e,t,r){const n=e._reader,i=n._readIntoRequests.shift();r?i._closeSteps(t):i._chunkSteps(t)}(e,n,r)}function ve(e){const t=e.bytesFilled,r=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,t/r)}function Ee(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function xe(e,t){const r=t.elementSize,n=t.bytesFilled-t.bytesFilled%r,i=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),s=t.bytesFilled+i,a=s-s%r;let o=i,l=!1;a>n&&(o=a-t.bytesFilled,l=!0);const c=e._queue;for(;o>0;){const r=c.peek(),n=Math.min(o,r.byteLength),i=t.byteOffset+t.bytesFilled;le(t.buffer,i,r.buffer,r.byteOffset,n),r.byteLength===n?c.shift():(r.byteOffset+=n,r.byteLength-=n),e._queueTotalSize-=n,_e(0,n,t),o-=n}return l}function _e(e,t,r){r.bytesFilled+=t}function Ae(e){0===e._queueTotalSize&&e._closeRequested?(Ie(e),xr(e._controlledReadableByteStream)):be(e)}function Pe(e){null!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}function we(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;const t=e._pendingPullIntos.peek();xe(e,t)&&(Ce(e),Te(e._controlledReadableByteStream,t))}}function De(e,t){const r=e._pendingPullIntos.peek();Pe(e),"closed"===e._controlledReadableByteStream._state?function(e){const t=e._controlledReadableByteStream;if(Ve(t))for(;Je(t)>0;)Te(t,Ce(e))}(e):function(e,t,r){if(_e(0,t,r),r.bytesFilled<r.elementSize)return;Ce(e);const n=r.bytesFilled%r.elementSize;if(n>0){const t=r.byteOffset+r.bytesFilled,i=ce(r.buffer,t-n,t);Ee(e,i,0,i.byteLength)}r.bytesFilled-=n,Te(e._controlledReadableByteStream,r),we(e)}(e,t,r),be(e)}function Ce(e){return e._pendingPullIntos.shift()}function Ie(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function Ne(e){const t=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===t._state)if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0&&e._pendingPullIntos.peek().bytesFilled>0){const t=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Oe(e,t),t}Ie(e),xr(t)}}function ke(e,t){const r=e._controlledReadableByteStream;if(e._closeRequested||"readable"!==r._state)return;const n=t.buffer,i=t.byteOffset,s=t.byteLength,a=n;if(e._pendingPullIntos.length>0){const t=e._pendingPullIntos.peek();t.buffer,t.buffer=t.buffer}Pe(e),H(r)?0===$(r)?Ee(e,a,i,s):(e._pendingPullIntos.length>0&&Ce(e),X(r,new Uint8Array(a,i,s),!1)):Ve(r)?(Ee(e,a,i,s),we(e)):Ee(e,a,i,s),be(e)}function Oe(e,t){const r=e._controlledReadableByteStream;"readable"===r._state&&(Se(e),he(e),Ie(e),_r(r,t))}function Fe(e){if(null===e._byobRequest&&e._pendingPullIntos.length>0){const t=e._pendingPullIntos.peek(),r=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),n=Object.create(fe.prototype);!function(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}(n,e,r),e._byobRequest=n}return e._byobRequest}function Le(e){const t=e._controlledReadableByteStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function je(e,t){const r=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(0===t)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range")}r.buffer=r.buffer,De(e,t)}function Me(e,t){const r=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t.byteLength)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(0===t.byteLength)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.bufferByteLength!==t.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(r.bytesFilled+t.byteLength>r.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");const n=t.byteLength;r.buffer=t.buffer,De(e,n)}function Be(e,t,r,n,i,s,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=null,t._queue=t._queueTotalSize=void 0,he(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=s,t._pullAlgorithm=n,t._cancelAlgorithm=i,t._autoAllocateChunkSize=a,t._pendingPullIntos=new E,e._readableStreamController=t,f(p(r()),(()=>{t._started=!0,be(t)}),(e=>{Oe(t,e)}))}function Re(e){return new TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`)}function qe(e){return new TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`)}function Ue(e){return new We(e)}function Ke(e,t){e._reader._readIntoRequests.push(t)}function Je(e){return e._reader._readIntoRequests.length}function Ve(e){const t=e._reader;return void 0!==t&&!!ze(t)}Object.defineProperties(me.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(me.prototype,t.toStringTag,{value:"ReadableByteStreamController",configurable:!0});class We{constructor(e){if(q(e,1,"ReadableStreamBYOBReader"),W(e,"First parameter"),vr(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!ye(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");x(this,e),this._readIntoRequests=new E}get closed(){return ze(this)?this._closedPromise:d(Xe("closed"))}cancel(e=void 0){return ze(this)?void 0===this._ownerReadableStream?d(P("cancel")):_(this,e):d(Xe("cancel"))}read(e){if(!ze(this))return d(Xe("read"));if(!ArrayBuffer.isView(e))return d(new TypeError("view must be an array buffer view"));if(0===e.byteLength)return d(new TypeError("view must have non-zero byteLength"));if(0===e.buffer.byteLength)return d(new TypeError("view's buffer must have non-zero byteLength"));if(e.buffer,void 0===this._ownerReadableStream)return d(P("read from"));let t,r;const n=u(((e,n)=>{t=e,r=n}));return Ye(this,e,{_chunkSteps:e=>t({value:e,done:!1}),_closeSteps:e=>t({value:e,done:!0}),_errorSteps:e=>r(e)}),n}releaseLock(){if(!ze(this))throw Xe("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");A(this)}}}function ze(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")&&e instanceof We}function Ye(e,t,r){const n=e._ownerReadableStream;n._disturbed=!0,"errored"===n._state?r._errorSteps(n._storedError):function(e,t,r){const n=e._controlledReadableByteStream;let i=1;t.constructor!==DataView&&(i=t.constructor.BYTES_PER_ELEMENT);const s=t.constructor,a=t.buffer,o={buffer:a,bufferByteLength:a.byteLength,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:i,viewConstructor:s,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(o),void Ke(n,r);if("closed"!==n._state){if(e._queueTotalSize>0){if(xe(e,o)){const t=ve(o);return Ae(e),void r._chunkSteps(t)}if(e._closeRequested){const t=new TypeError("Insufficient bytes to fill elements in the given buffer");return Oe(e,t),void r._errorSteps(t)}}e._pendingPullIntos.push(o),Ke(n,r),be(e)}else{const e=new s(o.buffer,o.byteOffset,0);r._closeSteps(e)}}(n._readableStreamController,t,r)}function Xe(e){return new TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`)}function $e(e,t){const{highWaterMark:r}=e;if(void 0===r)return t;if(ae(r)||r<0)throw new RangeError("Invalid highWaterMark");return r}function He(e){const{size:t}=e;return t||(()=>1)}function Ge(e,t){M(e,t);const r=null==e?void 0:e.highWaterMark,n=null==e?void 0:e.size;return{highWaterMark:void 0===r?void 0:K(r),size:void 0===n?void 0:Qe(n,`${t} has member 'size' that`)}}function Qe(e,t){return B(e,t),t=>K(e(t))}function Ze(e,t,r){return B(e,r),r=>v(e,t,[r])}function et(e,t,r){return B(e,r),()=>v(e,t,[])}function tt(e,t,r){return B(e,r),r=>T(e,t,[r])}function rt(e,t,r){return B(e,r),(r,n)=>v(e,t,[r,n])}function nt(e,t){if(!lt(e))throw new TypeError(`${t} is not a WritableStream.`)}Object.defineProperties(We.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(We.prototype,t.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});const it="function"==typeof AbortController;class st{constructor(e={},t={}){void 0===e?e=null:R(e,"First parameter");const r=Ge(t,"Second parameter"),n=function(e,t){M(e,t);const r=null==e?void 0:e.abort,n=null==e?void 0:e.close,i=null==e?void 0:e.start,s=null==e?void 0:e.type,a=null==e?void 0:e.write;return{abort:void 0===r?void 0:Ze(r,e,`${t} has member 'abort' that`),close:void 0===n?void 0:et(n,e,`${t} has member 'close' that`),start:void 0===i?void 0:tt(i,e,`${t} has member 'start' that`),write:void 0===a?void 0:rt(a,e,`${t} has member 'write' that`),type:s}}(e,"First parameter");if(ot(this),void 0!==n.type)throw new RangeError("Invalid type is specified");const i=He(r);!function(e,t,r,n){const i=Object.create(Pt.prototype);let s=()=>{},a=()=>p(void 0),o=()=>p(void 0),l=()=>p(void 0);void 0!==t.start&&(s=()=>t.start(i)),void 0!==t.write&&(a=e=>t.write(e,i)),void 0!==t.close&&(o=()=>t.close()),void 0!==t.abort&&(l=e=>t.abort(e)),Dt(e,i,s,a,o,l,r,n)}(this,n,$e(r,1),i)}get locked(){if(!lt(this))throw Lt("locked");return ct(this)}abort(e=void 0){return lt(this)?ct(this)?d(new TypeError("Cannot abort a stream that already has a writer")):ut(this,e):d(Lt("abort"))}close(){return lt(this)?ct(this)?d(new TypeError("Cannot close a stream that already has a writer")):mt(this)?d(new TypeError("Cannot close an already-closing stream")):pt(this):d(Lt("close"))}getWriter(){if(!lt(this))throw Lt("getWriter");return at(this)}}function at(e){return new bt(e)}function ot(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new E,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function lt(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")&&e instanceof st}function ct(e){return void 0!==e._writer}function ut(e,t){var r;if("closed"===e._state||"errored"===e._state)return p(void 0);e._writableStreamController._abortReason=t,null===(r=e._writableStreamController._abortController)||void 0===r||r.abort();const n=e._state;if("closed"===n||"errored"===n)return p(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;let i=!1;"erroring"===n&&(i=!0,t=void 0);const s=u(((r,n)=>{e._pendingAbortRequest={_promise:void 0,_resolve:r,_reject:n,_reason:t,_wasAlreadyErroring:i}}));return e._pendingAbortRequest._promise=s,i||ht(e,t),s}function pt(e){const t=e._state;if("closed"===t||"errored"===t)return d(new TypeError(`The stream (in ${t} state) is not in the writable state and cannot be closed`));const r=u(((t,r)=>{const n={_resolve:t,_reject:r};e._closeRequest=n})),n=e._writer;var i;return void 0!==n&&e._backpressure&&"writable"===t&&Yt(n),de(i=e._writableStreamController,At,0),Nt(i),r}function dt(e,t){"writable"!==e._state?ft(e):ht(e,t)}function ht(e,t){const r=e._writableStreamController;e._state="erroring",e._storedError=t;const n=e._writer;void 0!==n&&Et(n,t),!function(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}(e)&&r._started&&ft(e)}function ft(e){e._state="errored",e._writableStreamController[k]();const t=e._storedError;if(e._writeRequests.forEach((e=>{e._reject(t)})),e._writeRequests=new E,void 0===e._pendingAbortRequest)return void yt(e);const r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,r._wasAlreadyErroring)return r._reject(t),void yt(e);f(e._writableStreamController[N](r._reason),(()=>{r._resolve(),yt(e)}),(t=>{r._reject(t),yt(e)}))}function mt(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function yt(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);const t=e._writer;void 0!==t&&Ut(t,e._storedError)}function gt(e,t){const r=e._writer;void 0!==r&&t!==e._backpressure&&(t?function(e){Jt(e)}(r):Yt(r)),e._backpressure=t}Object.defineProperties(st.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(st.prototype,t.toStringTag,{value:"WritableStream",configurable:!0});class bt{constructor(e){if(q(e,1,"WritableStreamDefaultWriter"),nt(e,"First parameter"),ct(e))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;const t=e._state;if("writable"===t)!mt(e)&&e._backpressure?Jt(this):Wt(this),Rt(this);else if("erroring"===t)Vt(this,e._storedError),Rt(this);else if("closed"===t)Wt(this),Rt(r=this),Kt(r);else{const t=e._storedError;Vt(this,t),qt(this,t)}var r}get closed(){return St(this)?this._closedPromise:d(Mt("closed"))}get desiredSize(){if(!St(this))throw Mt("desiredSize");if(void 0===this._ownerWritableStream)throw Bt("desiredSize");return function(e){const t=e._ownerWritableStream,r=t._state;return"errored"===r||"erroring"===r?null:"closed"===r?0:It(t._writableStreamController)}(this)}get ready(){return St(this)?this._readyPromise:d(Mt("ready"))}abort(e=void 0){return St(this)?void 0===this._ownerWritableStream?d(Bt("abort")):function(e,t){return ut(e._ownerWritableStream,t)}(this,e):d(Mt("abort"))}close(){if(!St(this))return d(Mt("close"));const e=this._ownerWritableStream;return void 0===e?d(Bt("close")):mt(e)?d(new TypeError("Cannot close an already-closing stream")):Tt(this)}releaseLock(){if(!St(this))throw Mt("releaseLock");void 0!==this._ownerWritableStream&&xt(this)}write(e=void 0){return St(this)?void 0===this._ownerWritableStream?d(Bt("write to")):_t(this,e):d(Mt("write"))}}function St(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")&&e instanceof bt}function Tt(e){return pt(e._ownerWritableStream)}function vt(e,t){"pending"===e._closedPromiseState?Ut(e,t):function(e,t){qt(e,t)}(e,t)}function Et(e,t){"pending"===e._readyPromiseState?zt(e,t):function(e,t){Vt(e,t)}(e,t)}function xt(e){const t=e._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");Et(e,r),vt(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function _t(e,t){const r=e._ownerWritableStream,n=r._writableStreamController,i=function(e,t){try{return e._strategySizeAlgorithm(t)}catch(t){return kt(e,t),1}}(n,t);if(r!==e._ownerWritableStream)return d(Bt("write to"));const s=r._state;if("errored"===s)return d(r._storedError);if(mt(r)||"closed"===s)return d(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===s)return d(r._storedError);const a=function(e){return u(((t,r)=>{const n={_resolve:t,_reject:r};e._writeRequests.push(n)}))}(r);return function(e,t,r){try{de(e,t,r)}catch(t){return void kt(e,t)}const n=e._controlledWritableStream;mt(n)||"writable"!==n._state||gt(n,Ot(e)),Nt(e)}(n,t,i),a}Object.defineProperties(bt.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(bt.prototype,t.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});const At={};class Pt{constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!wt(this))throw jt("abortReason");return this._abortReason}get signal(){if(!wt(this))throw jt("signal");if(void 0===this._abortController)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(e=void 0){if(!wt(this))throw jt("error");"writable"===this._controlledWritableStream._state&&Ft(this,e)}[N](e){const t=this._abortAlgorithm(e);return Ct(this),t}[k](){he(this)}}function wt(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")&&e instanceof Pt}function Dt(e,t,r,n,i,s,a,o){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,he(t),t._abortReason=void 0,t._abortController=function(){if(it)return new AbortController}(),t._started=!1,t._strategySizeAlgorithm=o,t._strategyHWM=a,t._writeAlgorithm=n,t._closeAlgorithm=i,t._abortAlgorithm=s;const l=Ot(t);gt(e,l),f(p(r()),(()=>{t._started=!0,Nt(t)}),(r=>{t._started=!0,dt(e,r)}))}function Ct(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function It(e){return e._strategyHWM-e._queueTotalSize}function Nt(e){const t=e._controlledWritableStream;if(!e._started)return;if(void 0!==t._inFlightWriteRequest)return;if("erroring"===t._state)return void ft(t);if(0===e._queue.length)return;const r=e._queue.peek().value;r===At?function(e){const t=e._controlledWritableStream;(function(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0})(t),pe(e);const r=e._closeAlgorithm();Ct(e),f(r,(()=>{!function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";const t=e._writer;void 0!==t&&Kt(t)}(t)}),(e=>{!function(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),dt(e,t)}(t,e)}))}(e):function(e,t){const r=e._controlledWritableStream;!function(e){e._inFlightWriteRequest=e._writeRequests.shift()}(r);const n=e._writeAlgorithm(t);f(n,(()=>{!function(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}(r);const t=r._state;if(pe(e),!mt(r)&&"writable"===t){const t=Ot(e);gt(r,t)}Nt(e)}),(t=>{"writable"===r._state&&Ct(e),function(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,dt(e,t)}(r,t)}))}(e,r)}function kt(e,t){"writable"===e._controlledWritableStream._state&&Ft(e,t)}function Ot(e){return It(e)<=0}function Ft(e,t){const r=e._controlledWritableStream;Ct(e),ht(r,t)}function Lt(e){return new TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`)}function jt(e){return new TypeError(`WritableStreamDefaultController.prototype.${e} can only be used on a WritableStreamDefaultController`)}function Mt(e){return new TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`)}function Bt(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function Rt(e){e._closedPromise=u(((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"}))}function qt(e,t){Rt(e),Ut(e,t)}function Ut(e,t){void 0!==e._closedPromise_reject&&(b(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected")}function Kt(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved")}function Jt(e){e._readyPromise=u(((t,r)=>{e._readyPromise_resolve=t,e._readyPromise_reject=r})),e._readyPromiseState="pending"}function Vt(e,t){Jt(e),zt(e,t)}function Wt(e){Jt(e),Yt(e)}function zt(e,t){void 0!==e._readyPromise_reject&&(b(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected")}function Yt(e){void 0!==e._readyPromise_resolve&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled")}Object.defineProperties(Pt.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(Pt.prototype,t.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});const Xt="undefined"!=typeof DOMException?DOMException:void 0,$t=function(e){if("function"!=typeof e&&"object"!=typeof e)return!1;try{return new e,!0}catch(e){return!1}}(Xt)?Xt:function(){const e=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e}();function Ht(e,t,n,i,s,a){const o=z(e),l=at(t);e._disturbed=!0;let c=!1,g=p(void 0);return u(((S,T)=>{let v;if(void 0!==a){if(v=()=>{const r=new $t("Aborted","AbortError"),n=[];i||n.push((()=>"writable"===t._state?ut(t,r):p(void 0))),s||n.push((()=>"readable"===e._state?Er(e,r):p(void 0))),D((()=>Promise.all(n.map((e=>e())))),!0,r)},a.aborted)return void v();a.addEventListener("abort",v)}var E,x,_;if(w(e,o._closedPromise,(e=>{i?C(!0,e):D((()=>ut(t,e)),!0,e)})),w(t,l._closedPromise,(t=>{s?C(!0,t):D((()=>Er(e,t)),!0,t)})),E=e,x=o._closedPromise,_=()=>{n?C():D((()=>function(e){const t=e._ownerWritableStream,r=t._state;return mt(t)||"closed"===r?p(void 0):"errored"===r?d(t._storedError):Tt(e)}(l)))},"closed"===E._state?_():m(x,_),mt(t)||"closed"===t._state){const t=new TypeError("the destination writable stream closed before all data could be piped to it");s?C(!0,t):D((()=>Er(e,t)),!0,t)}function P(){const e=g;return h(g,(()=>e!==g?P():void 0))}function w(e,t,r){"errored"===e._state?r(e._storedError):y(t,r)}function D(e,r,n){function i(){f(e(),(()=>I(r,n)),(e=>I(!0,e)))}c||(c=!0,"writable"!==t._state||mt(t)?i():m(P(),i))}function C(e,r){c||(c=!0,"writable"!==t._state||mt(t)?I(e,r):m(P(),(()=>I(e,r))))}function I(e,t){xt(l),A(o),void 0!==a&&a.removeEventListener("abort",v),e?T(t):S(void 0)}b(u(((e,t)=>{!function n(i){i?e():h(c?p(!0):h(l._readyPromise,(()=>u(((e,t)=>{Z(o,{_chunkSteps:t=>{g=h(_t(l,t),void 0,r),e(!1)},_closeSteps:()=>e(!0),_errorSteps:t})})))),n,t)}(!1)})))}))}class Gt{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Qt(this))throw lr("desiredSize");return sr(this)}close(){if(!Qt(this))throw lr("close");if(!ar(this))throw new TypeError("The stream is not in a state that permits close");rr(this)}enqueue(e=void 0){if(!Qt(this))throw lr("enqueue");if(!ar(this))throw new TypeError("The stream is not in a state that permits enqueue");return nr(this,e)}error(e=void 0){if(!Qt(this))throw lr("error");ir(this,e)}[O](e){he(this);const t=this._cancelAlgorithm(e);return tr(this),t}[F](e){const t=this._controlledReadableStream;if(this._queue.length>0){const r=pe(this);this._closeRequested&&0===this._queue.length?(tr(this),xr(t)):Zt(this),e._chunkSteps(r)}else Y(t,e),Zt(this)}}function Qt(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")&&e instanceof Gt}function Zt(e){er(e)&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,f(e._pullAlgorithm(),(()=>{e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,Zt(e))}),(t=>{ir(e,t)}))))}function er(e){const t=e._controlledReadableStream;return!!ar(e)&&(!!e._started&&(!!(vr(t)&&$(t)>0)||sr(e)>0))}function tr(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function rr(e){if(!ar(e))return;const t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(tr(e),xr(t))}function nr(e,t){if(!ar(e))return;const r=e._controlledReadableStream;if(vr(r)&&$(r)>0)X(r,t,!1);else{let r;try{r=e._strategySizeAlgorithm(t)}catch(t){throw ir(e,t),t}try{de(e,t,r)}catch(t){throw ir(e,t),t}}Zt(e)}function ir(e,t){const r=e._controlledReadableStream;"readable"===r._state&&(he(e),tr(e),_r(r,t))}function sr(e){const t=e._controlledReadableStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function ar(e){const t=e._controlledReadableStream._state;return!e._closeRequested&&"readable"===t}function or(e,t,r,n,i,s,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,he(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=a,t._strategyHWM=s,t._pullAlgorithm=n,t._cancelAlgorithm=i,e._readableStreamController=t,f(p(r()),(()=>{t._started=!0,Zt(t)}),(e=>{ir(t,e)}))}function lr(e){return new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`)}function cr(e,t){return ye(e._readableStreamController)?function(e){let t,r,n,i,s,a=z(e),o=!1,l=!1,c=!1,d=!1,h=!1;const f=u((e=>{s=e}));function m(e){y(e._closedPromise,(t=>{e===a&&(Oe(n._readableStreamController,t),Oe(i._readableStreamController,t),d&&h||s(void 0))}))}function g(){ze(a)&&(A(a),a=z(e),m(a)),Z(a,{_chunkSteps:t=>{S((()=>{l=!1,c=!1;const r=t;let a=t;if(!d&&!h)try{a=ue(t)}catch(t){return Oe(n._readableStreamController,t),Oe(i._readableStreamController,t),void s(Er(e,t))}d||ke(n._readableStreamController,r),h||ke(i._readableStreamController,a),o=!1,l?T():c&&v()}))},_closeSteps:()=>{o=!1,d||Ne(n._readableStreamController),h||Ne(i._readableStreamController),n._readableStreamController._pendingPullIntos.length>0&&je(n._readableStreamController,0),i._readableStreamController._pendingPullIntos.length>0&&je(i._readableStreamController,0),d&&h||s(void 0)},_errorSteps:()=>{o=!1}})}function b(t,r){Q(a)&&(A(a),a=Ue(e),m(a));const u=r?i:n,p=r?n:i;Ye(a,t,{_chunkSteps:t=>{S((()=>{l=!1,c=!1;const n=r?h:d;if(r?d:h)n||Me(u._readableStreamController,t);else{let r;try{r=ue(t)}catch(t){return Oe(u._readableStreamController,t),Oe(p._readableStreamController,t),void s(Er(e,t))}n||Me(u._readableStreamController,t),ke(p._readableStreamController,r)}o=!1,l?T():c&&v()}))},_closeSteps:e=>{o=!1;const t=r?h:d,n=r?d:h;t||Ne(u._readableStreamController),n||Ne(p._readableStreamController),void 0!==e&&(t||Me(u._readableStreamController,e),!n&&p._readableStreamController._pendingPullIntos.length>0&&je(p._readableStreamController,0)),t&&n||s(void 0)},_errorSteps:()=>{o=!1}})}function T(){if(o)return l=!0,p(void 0);o=!0;const e=Fe(n._readableStreamController);return null===e?g():b(e._view,!1),p(void 0)}function v(){if(o)return c=!0,p(void 0);o=!0;const e=Fe(i._readableStreamController);return null===e?g():b(e._view,!0),p(void 0)}function E(n){if(d=!0,t=n,h){const n=oe([t,r]),i=Er(e,n);s(i)}return f}function x(n){if(h=!0,r=n,d){const n=oe([t,r]),i=Er(e,n);s(i)}return f}function _(){}return n=br(_,T,E),i=br(_,v,x),m(a),[n,i]}(e):function(e){const t=z(e);let r,n,i,s,a,o=!1,l=!1,c=!1,d=!1;const h=u((e=>{a=e}));function f(){return o?(l=!0,p(void 0)):(o=!0,Z(t,{_chunkSteps:e=>{S((()=>{l=!1;const t=e,r=e;c||nr(i._readableStreamController,t),d||nr(s._readableStreamController,r),o=!1,l&&f()}))},_closeSteps:()=>{o=!1,c||rr(i._readableStreamController),d||rr(s._readableStreamController),c&&d||a(void 0)},_errorSteps:()=>{o=!1}}),p(void 0))}function m(t){if(c=!0,r=t,d){const t=oe([r,n]),i=Er(e,t);a(i)}return h}function g(t){if(d=!0,n=t,c){const t=oe([r,n]),i=Er(e,t);a(i)}return h}function b(){}return i=gr(b,f,m),s=gr(b,f,g),y(t._closedPromise,(e=>{ir(i._readableStreamController,e),ir(s._readableStreamController,e),c&&d||a(void 0)})),[i,s]}(e)}function ur(e,t,r){return B(e,r),r=>v(e,t,[r])}function pr(e,t,r){return B(e,r),r=>v(e,t,[r])}function dr(e,t,r){return B(e,r),r=>T(e,t,[r])}function hr(e,t){if("bytes"!=(e=`${e}`))throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamType`);return e}function fr(e,t){if("byob"!=(e=`${e}`))throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);return e}function mr(e,t){M(e,t);const r=null==e?void 0:e.preventAbort,n=null==e?void 0:e.preventCancel,i=null==e?void 0:e.preventClose,s=null==e?void 0:e.signal;return void 0!==s&&function(e,t){if(!function(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted}catch(e){return!1}}(e))throw new TypeError(`${t} is not an AbortSignal.`)}(s,`${t} has member 'signal' that`),{preventAbort:Boolean(r),preventCancel:Boolean(n),preventClose:Boolean(i),signal:s}}Object.defineProperties(Gt.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(Gt.prototype,t.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});class yr{constructor(e={},t={}){void 0===e?e=null:R(e,"First parameter");const r=Ge(t,"Second parameter"),n=function(e,t){M(e,t);const r=e,n=null==r?void 0:r.autoAllocateChunkSize,i=null==r?void 0:r.cancel,s=null==r?void 0:r.pull,a=null==r?void 0:r.start,o=null==r?void 0:r.type;return{autoAllocateChunkSize:void 0===n?void 0:V(n,`${t} has member 'autoAllocateChunkSize' that`),cancel:void 0===i?void 0:ur(i,r,`${t} has member 'cancel' that`),pull:void 0===s?void 0:pr(s,r,`${t} has member 'pull' that`),start:void 0===a?void 0:dr(a,r,`${t} has member 'start' that`),type:void 0===o?void 0:hr(o,`${t} has member 'type' that`)}}(e,"First parameter");if(Sr(this),"bytes"===n.type){if(void 0!==r.size)throw new RangeError("The strategy for a byte stream cannot have a size function");!function(e,t,r){const n=Object.create(me.prototype);let i=()=>{},s=()=>p(void 0),a=()=>p(void 0);void 0!==t.start&&(i=()=>t.start(n)),void 0!==t.pull&&(s=()=>t.pull(n)),void 0!==t.cancel&&(a=e=>t.cancel(e));const o=t.autoAllocateChunkSize;if(0===o)throw new TypeError("autoAllocateChunkSize must be greater than 0");Be(e,n,i,s,a,r,o)}(this,n,$e(r,0))}else{const e=He(r);!function(e,t,r,n){const i=Object.create(Gt.prototype);let s=()=>{},a=()=>p(void 0),o=()=>p(void 0);void 0!==t.start&&(s=()=>t.start(i)),void 0!==t.pull&&(a=()=>t.pull(i)),void 0!==t.cancel&&(o=e=>t.cancel(e)),or(e,i,s,a,o,r,n)}(this,n,$e(r,1),e)}}get locked(){if(!Tr(this))throw Ar("locked");return vr(this)}cancel(e=void 0){return Tr(this)?vr(this)?d(new TypeError("Cannot cancel a stream that already has a reader")):Er(this,e):d(Ar("cancel"))}getReader(e=void 0){if(!Tr(this))throw Ar("getReader");return void 0===function(e,t){M(e,t);const r=null==e?void 0:e.mode;return{mode:void 0===r?void 0:fr(r,`${t} has member 'mode' that`)}}(e,"First parameter").mode?z(this):Ue(this)}pipeThrough(e,t={}){if(!Tr(this))throw Ar("pipeThrough");q(e,1,"pipeThrough");const r=function(e,t){M(e,t);const r=null==e?void 0:e.readable;U(r,"readable","ReadableWritablePair"),W(r,`${t} has member 'readable' that`);const n=null==e?void 0:e.writable;return U(n,"writable","ReadableWritablePair"),nt(n,`${t} has member 'writable' that`),{readable:r,writable:n}}(e,"First parameter"),n=mr(t,"Second parameter");if(vr(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(ct(r.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return b(Ht(this,r.writable,n.preventClose,n.preventAbort,n.preventCancel,n.signal)),r.readable}pipeTo(e,t={}){if(!Tr(this))return d(Ar("pipeTo"));if(void 0===e)return d("Parameter 1 is required in 'pipeTo'.");if(!lt(e))return d(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let r;try{r=mr(t,"Second parameter")}catch(e){return d(e)}return vr(this)?d(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):ct(e)?d(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Ht(this,e,r.preventClose,r.preventAbort,r.preventCancel,r.signal)}tee(){if(!Tr(this))throw Ar("tee");return oe(cr(this))}values(e=void 0){if(!Tr(this))throw Ar("values");return function(e,t){const r=z(e),n=new re(r,t),i=Object.create(ne);return i._asyncIteratorImpl=n,i}(this,function(e,t){M(e,t);const r=null==e?void 0:e.preventCancel;return{preventCancel:Boolean(r)}}(e,"First parameter").preventCancel)}}function gr(e,t,r,n=1,i=()=>1){const s=Object.create(yr.prototype);return Sr(s),or(s,Object.create(Gt.prototype),e,t,r,n,i),s}function br(e,t,r){const n=Object.create(yr.prototype);return Sr(n),Be(n,Object.create(me.prototype),e,t,r,0,void 0),n}function Sr(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function Tr(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")&&e instanceof yr}function vr(e){return void 0!==e._reader}function Er(e,t){if(e._disturbed=!0,"closed"===e._state)return p(void 0);if("errored"===e._state)return d(e._storedError);xr(e);const n=e._reader;return void 0!==n&&ze(n)&&(n._readIntoRequests.forEach((e=>{e._closeSteps(void 0)})),n._readIntoRequests=new E),g(e._readableStreamController[O](t),r)}function xr(e){e._state="closed";const t=e._reader;void 0!==t&&(I(t),Q(t)&&(t._readRequests.forEach((e=>{e._closeSteps()})),t._readRequests=new E))}function _r(e,t){e._state="errored",e._storedError=t;const r=e._reader;void 0!==r&&(C(r,t),Q(r)?(r._readRequests.forEach((e=>{e._errorSteps(t)})),r._readRequests=new E):(r._readIntoRequests.forEach((e=>{e._errorSteps(t)})),r._readIntoRequests=new E))}function Ar(e){return new TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`)}function Pr(e,t){M(e,t);const r=null==e?void 0:e.highWaterMark;return U(r,"highWaterMark","QueuingStrategyInit"),{highWaterMark:K(r)}}Object.defineProperties(yr.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(yr.prototype,t.toStringTag,{value:"ReadableStream",configurable:!0}),"symbol"==typeof t.asyncIterator&&Object.defineProperty(yr.prototype,t.asyncIterator,{value:yr.prototype.values,writable:!0,configurable:!0});const wr=e=>e.byteLength;try{Object.defineProperty(wr,"name",{value:"size",configurable:!0})}catch(e){}class Dr{constructor(e){q(e,1,"ByteLengthQueuingStrategy"),e=Pr(e,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!Ir(this))throw Cr("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!Ir(this))throw Cr("size");return wr}}function Cr(e){return new TypeError(`ByteLengthQueuingStrategy.prototype.${e} can only be used on a ByteLengthQueuingStrategy`)}function Ir(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_byteLengthQueuingStrategyHighWaterMark")&&e instanceof Dr}Object.defineProperties(Dr.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(Dr.prototype,t.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});const Nr=()=>1;try{Object.defineProperty(Nr,"name",{value:"size",configurable:!0})}catch(e){}class kr{constructor(e){q(e,1,"CountQueuingStrategy"),e=Pr(e,"First parameter"),this._countQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!Fr(this))throw Or("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!Fr(this))throw Or("size");return Nr}}function Or(e){return new TypeError(`CountQueuingStrategy.prototype.${e} can only be used on a CountQueuingStrategy`)}function Fr(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_countQueuingStrategyHighWaterMark")&&e instanceof kr}function Lr(e,t,r){return B(e,r),r=>v(e,t,[r])}function jr(e,t,r){return B(e,r),r=>T(e,t,[r])}function Mr(e,t,r){return B(e,r),(r,n)=>v(e,t,[r,n])}Object.defineProperties(kr.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(kr.prototype,t.toStringTag,{value:"CountQueuingStrategy",configurable:!0});class Br{constructor(e={},t={},r={}){void 0===e&&(e=null);const n=Ge(t,"Second parameter"),i=Ge(r,"Third parameter"),s=function(e,t){M(e,t);const r=null==e?void 0:e.flush,n=null==e?void 0:e.readableType,i=null==e?void 0:e.start,s=null==e?void 0:e.transform,a=null==e?void 0:e.writableType;return{flush:void 0===r?void 0:Lr(r,e,`${t} has member 'flush' that`),readableType:n,start:void 0===i?void 0:jr(i,e,`${t} has member 'start' that`),transform:void 0===s?void 0:Mr(s,e,`${t} has member 'transform' that`),writableType:a}}(e,"First parameter");if(void 0!==s.readableType)throw new RangeError("Invalid readableType specified");if(void 0!==s.writableType)throw new RangeError("Invalid writableType specified");const a=$e(i,0),o=He(i),l=$e(n,1),c=He(n);let h;!function(e,t,r,n,i,s){function a(){return t}function o(t){return function(e,t){const r=e._transformStreamController;return e._backpressure?g(e._backpressureChangePromise,(()=>{const n=e._writable;if("erroring"===n._state)throw n._storedError;return Yr(r,t)})):Yr(r,t)}(e,t)}function l(t){return function(e,t){return qr(e,t),p(void 0)}(e,t)}function c(){return function(e){const t=e._readable,r=e._transformStreamController,n=r._flushAlgorithm();return Wr(r),g(n,(()=>{if("errored"===t._state)throw t._storedError;rr(t._readableStreamController)}),(r=>{throw qr(e,r),t._storedError}))}(e)}function u(){return function(e){return Kr(e,!1),e._backpressureChangePromise}(e)}function d(t){return Ur(e,t),p(void 0)}e._writable=function(e,t,r,n,i=1,s=()=>1){const a=Object.create(st.prototype);return ot(a),Dt(a,Object.create(Pt.prototype),e,t,r,n,i,s),a}(a,o,c,l,r,n),e._readable=gr(a,u,d,i,s),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,Kr(e,!0),e._transformStreamController=void 0}(this,u((e=>{h=e})),l,c,a,o),function(e,t){const r=Object.create(Jr.prototype);let n=e=>{try{return zr(r,e),p(void 0)}catch(e){return d(e)}},i=()=>p(void 0);void 0!==t.transform&&(n=e=>t.transform(e,r)),void 0!==t.flush&&(i=()=>t.flush(r)),function(e,t,r,n){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=n}(e,r,n,i)}(this,s),void 0!==s.start?h(s.start(this._transformStreamController)):h(void 0)}get readable(){if(!Rr(this))throw $r("readable");return this._readable}get writable(){if(!Rr(this))throw $r("writable");return this._writable}}function Rr(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")&&e instanceof Br}function qr(e,t){ir(e._readable._readableStreamController,t),Ur(e,t)}function Ur(e,t){Wr(e._transformStreamController),kt(e._writable._writableStreamController,t),e._backpressure&&Kr(e,!1)}function Kr(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=u((t=>{e._backpressureChangePromise_resolve=t})),e._backpressure=t}Object.defineProperties(Br.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(Br.prototype,t.toStringTag,{value:"TransformStream",configurable:!0});class Jr{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Vr(this))throw Xr("desiredSize");return sr(this._controlledTransformStream._readable._readableStreamController)}enqueue(e=void 0){if(!Vr(this))throw Xr("enqueue");zr(this,e)}error(e=void 0){if(!Vr(this))throw Xr("error");var t;t=e,qr(this._controlledTransformStream,t)}terminate(){if(!Vr(this))throw Xr("terminate");!function(e){const t=e._controlledTransformStream;rr(t._readable._readableStreamController);const r=new TypeError("TransformStream terminated");Ur(t,r)}(this)}}function Vr(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")&&e instanceof Jr}function Wr(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function zr(e,t){const r=e._controlledTransformStream,n=r._readable._readableStreamController;if(!ar(n))throw new TypeError("Readable side is not in a state that permits enqueue");try{nr(n,t)}catch(e){throw Ur(r,e),r._readable._storedError}const i=function(e){return!er(e)}(n);i!==r._backpressure&&Kr(r,!0)}function Yr(e,t){return g(e._transformAlgorithm(t),void 0,(t=>{throw qr(e._controlledTransformStream,t),t}))}function Xr(e){return new TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`)}function $r(e){return new TypeError(`TransformStream.prototype.${e} can only be used on a TransformStream`)}Object.defineProperties(Jr.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(Jr.prototype,t.toStringTag,{value:"TransformStreamDefaultController",configurable:!0}),e.ByteLengthQueuingStrategy=Dr,e.CountQueuingStrategy=kr,e.ReadableByteStreamController=me,e.ReadableStream=yr,e.ReadableStreamBYOBReader=We,e.ReadableStreamBYOBRequest=fe,e.ReadableStreamDefaultController=Gt,e.ReadableStreamDefaultReader=G,e.TransformStream=Br,e.TransformStreamDefaultController=Jr,e.WritableStream=st,e.WritableStreamDefaultController=Pt,e.WritableStreamDefaultWriter=bt,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof e&&void 0!==t?n(e):"function"==typeof define&&define.amd?define(["exports"],n):n((r="undefined"!=typeof globalThis?globalThis:r||self).WebStreamsPolyfill={})}}),require_streams=__commonJS({"../../node_modules/.pnpm/fetch-blob@3.2.0/node_modules/fetch-blob/streams.cjs"(){if(!globalThis.ReadableStream)try{const e=require("node:process"),{emitWarning:t}=e;try{e.emitWarning=()=>{},Object.assign(globalThis,require("node:stream/web")),e.emitWarning=t}catch(r){throw e.emitWarning=t,r}}catch(e){Object.assign(globalThis,require_ponyfill_es2018())}try{const{Blob:e}=require("buffer");e&&!e.prototype.stream&&(e.prototype.stream=function(e){let t=0;const r=this;return new ReadableStream({type:"bytes",async pull(e){const n=r.slice(t,Math.min(r.size,t+65536)),i=await n.arrayBuffer();t+=i.byteLength,e.enqueue(new Uint8Array(i)),t===r.size&&e.close()}})})}catch(e){}}});async function*toIterator(e,t=!0){for(const r of e)if("stream"in r)yield*r.stream();else if(ArrayBuffer.isView(r))if(t){let e=r.byteOffset;const t=r.byteOffset+r.byteLength;for(;e!==t;){const n=Math.min(t-e,POOL_SIZE),i=r.buffer.slice(e,e+n);e+=i.byteLength,yield new Uint8Array(i)}}else yield r;else{let e=0,t=r;for(;e!==t.size;){const r=t.slice(e,Math.min(t.size,e+POOL_SIZE)),n=await r.arrayBuffer();e+=n.byteLength,yield new Uint8Array(n)}}}var _File,File3,file_default,t,i,h,r,m,f,e,x,FormData2,init_fetch_blob=__esm({"../../node_modules/.pnpm/fetch-blob@3.2.0/node_modules/fetch-blob/index.js"(){import_streams=__toESM(require_streams(),1),POOL_SIZE=65536,_Blob=class e{#e=[];#t="";#r=0;#n="transparent";constructor(t=[],r={}){if("object"!=typeof t||null===t)throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");if("function"!=typeof t[Symbol.iterator])throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");if("object"!=typeof r&&"function"!=typeof r)throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");null===r&&(r={});const n=new TextEncoder;for(const r of t){let t;t=ArrayBuffer.isView(r)?new Uint8Array(r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)):r instanceof ArrayBuffer?new Uint8Array(r.slice(0)):r instanceof e?r:n.encode(`${r}`),this.#r+=ArrayBuffer.isView(t)?t.byteLength:t.size,this.#e.push(t)}this.#n=`${void 0===r.endings?"transparent":r.endings}`;const i=void 0===r.type?"":String(r.type);this.#t=/^[\x20-\x7E]*$/.test(i)?i:""}get size(){return this.#r}get type(){return this.#t}async text(){const e=new TextDecoder;let t="";for await(const r of toIterator(this.#e,!1))t+=e.decode(r,{stream:!0});return t+=e.decode(),t}async arrayBuffer(){const e=new Uint8Array(this.size);let t=0;for await(const r of toIterator(this.#e,!1))e.set(r,t),t+=r.length;return e.buffer}stream(){const e=toIterator(this.#e,!0);return new globalThis.ReadableStream({type:"bytes",async pull(t){const r=await e.next();r.done?t.close():t.enqueue(r.value)},async cancel(){await e.return()}})}slice(t=0,r=this.size,n=""){const{size:i}=this;let s=t<0?Math.max(i+t,0):Math.min(t,i),a=r<0?Math.max(i+r,0):Math.min(r,i);const o=Math.max(a-s,0),l=this.#e,c=[];let u=0;for(const e of l){if(u>=o)break;const t=ArrayBuffer.isView(e)?e.byteLength:e.size;if(s&&t<=s)s-=t,a-=t;else{let r;ArrayBuffer.isView(e)?(r=e.subarray(s,Math.min(t,a)),u+=r.byteLength):(r=e.slice(s,Math.min(t,a)),u+=r.size),a-=t,c.push(r),s=0}}const p=new e([],{type:String(n).toLowerCase()});return p.#r=o,p.#e=c,p}get[Symbol.toStringTag](){return"Blob"}static[Symbol.hasInstance](e){return e&&"object"==typeof e&&"function"==typeof e.constructor&&("function"==typeof e.stream||"function"==typeof e.arrayBuffer)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}},Object.defineProperties(_Blob.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}}),fetch_blob_default=Blob3=_Blob}}),init_file=__esm({"../../node_modules/.pnpm/fetch-blob@3.2.0/node_modules/fetch-blob/file.js"(){init_fetch_blob(),_File=class extends fetch_blob_default{#i=0;#s="";constructor(e,t,r={}){if(arguments.length<2)throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);super(e,r),null===r&&(r={});const n=void 0===r.lastModified?Date.now():Number(r.lastModified);Number.isNaN(n)||(this.#i=n),this.#s=String(t)}get name(){return this.#s}get lastModified(){return this.#i}get[Symbol.toStringTag](){return"File"}static[Symbol.hasInstance](e){return!!e&&e instanceof fetch_blob_default&&/^(File)$/.test(e[Symbol.toStringTag])}},file_default=File3=_File}});function formDataToBlob(t,n=fetch_blob_default){var i=`${r()}${r()}`.replace(/\./g,"").slice(-28).padStart(32,"-"),s=[],a=`--${i}\r\nContent-Disposition: form-data; name="`;return t.forEach(((t,r)=>"string"==typeof t?s.push(a+e(r)+`"\r\n\r\n${t.replace(/\r(?!\n)|(?<!\r)\n/g,"\r\n")}\r\n`):s.push(a+e(r)+`"; filename="${e(t.name,1)}"\r\nContent-Type: ${t.type||"application/octet-stream"}\r\n\r\n`,t,"\r\n"))),s.push(`--${i}--`),new n(s,{type:"multipart/form-data; boundary="+i})}var import_node_fs,import_node_domexception,stat2,BlobDataItem,s,S,f2,F,LF,CR,SPACE,HYPHEN,COLON,A,Z,lower,noop2,MultipartParser,init_esm_min=__esm({"../../node_modules/.pnpm/formdata-polyfill@4.0.10/node_modules/formdata-polyfill/esm.min.js"(){init_fetch_blob(),init_file(),({toStringTag:t,iterator:i,hasInstance:h}=Symbol),r=Math.random,m="append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(","),f=(e,r,n)=>(e+="",/^(Blob|File)$/.test(r&&r[t])?[(n=void 0!==n?n+"":"File"==r[t]?r.name:"blob",e),r.name!==n||"blob"==r[t]?new file_default([r],n,r):r]:[e,r+""]),e=(e,t)=>(t?e:e.replace(/\r?\n|\r/g,"\r\n")).replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),x=(e,t,r)=>{if(t.length<r)throw new TypeError(`Failed to execute '${e}' on 'FormData': ${r} arguments required, but only ${t.length} present.`)},FormData2=class{#a=[];constructor(...e){if(e.length)throw new TypeError("Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.")}get[t](){return"FormData"}[i](){return this.entries()}static[h](e){return e&&"object"==typeof e&&"FormData"===e[t]&&!m.some((t=>"function"!=typeof e[t]))}append(...e){x("append",arguments,2),this.#a.push(f(...e))}delete(e){x("delete",arguments,1),e+="",this.#a=this.#a.filter((([t])=>t!==e))}get(e){x("get",arguments,1),e+="";for(var t=this.#a,r=t.length,n=0;n<r;n++)if(t[n][0]===e)return t[n][1];return null}getAll(e,t){return x("getAll",arguments,1),t=[],e+="",this.#a.forEach((r=>r[0]===e&&t.push(r[1]))),t}has(e){return x("has",arguments,1),e+="",this.#a.some((t=>t[0]===e))}forEach(e,t){for(var[r,n]of(x("forEach",arguments,1),this))e.call(t,n,r,this)}set(...e){x("set",arguments,2);var t=[],r=!0;e=f(...e),this.#a.forEach((n=>{n[0]===e[0]?r&&(r=!t.push(e)):t.push(n)})),r&&t.push(e),this.#a=t}*entries(){yield*this.#a}*keys(){for(var[e]of this)yield e}*values(){for(var[,e]of this)yield e}}}}),require_node_domexception=__commonJS({"../../node_modules/.pnpm/node-domexception@1.0.0/node_modules/node-domexception/index.js"(e,t){if(!globalThis.DOMException)try{const{MessageChannel:e}=require("worker_threads"),t=(new e).port1,r=new ArrayBuffer;t.postMessage(r,[r,r])}catch(e){"DOMException"===e.constructor.name&&(globalThis.DOMException=e.constructor)}t.exports=globalThis.DOMException}}),init_from=__esm({"../../node_modules/.pnpm/fetch-blob@3.2.0/node_modules/fetch-blob/from.js"(){import_node_fs=require("node:fs"),import_node_domexception=__toESM(require_node_domexception(),1),init_file(),init_fetch_blob(),({stat:stat2}=import_node_fs.promises),BlobDataItem=class{#o;#l;constructor(e){this.#o=e.path,this.#l=e.start,this.size=e.size,this.lastModified=e.lastModified}slice(e,t){return new BlobDataItem({path:this.#o,lastModified:this.lastModified,size:t-e,start:this.#l+e})}async*stream(){const{mtimeMs:e}=await stat2(this.#o);if(e>this.lastModified)throw new import_node_domexception.default("The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.","NotReadableError");yield*(0,import_node_fs.createReadStream)(this.#o,{start:this.#l,end:this.#l+this.size-1})}get[Symbol.toStringTag](){return"Blob"}}}}),multipart_parser_exports={};function _fileName(e){const t=e.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(!t)return;const r=t[2]||t[3]||"";let n=r.slice(r.lastIndexOf("\\")+1);return n=n.replace(/%22/g,'"'),n=n.replace(/&#(\d{4});/g,((e,t)=>String.fromCharCode(t))),n}async function toFormData(e,t){if(!/multipart/i.test(t))throw new TypeError("Failed to fetch");const r=t.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!r)throw new TypeError("no or bad content-type header, no multipart boundary");const n=new MultipartParser(r[1]||r[2]);let i,s,a,o,l,c;const u=[],p=new FormData2,d=e=>{a+=y.decode(e,{stream:!0})},h=e=>{u.push(e)},f=()=>{const e=new file_default(u,c,{type:l});p.append(o,e)},m=()=>{p.append(o,a)},y=new TextDecoder("utf-8");y.decode(),n.onPartBegin=function(){n.onPartData=d,n.onPartEnd=m,i="",s="",a="",o="",l="",c=null,u.length=0},n.onHeaderField=function(e){i+=y.decode(e,{stream:!0})},n.onHeaderValue=function(e){s+=y.decode(e,{stream:!0})},n.onHeaderEnd=function(){if(s+=y.decode(),i=i.toLowerCase(),"content-disposition"===i){const e=s.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);e&&(o=e[2]||e[3]||""),c=_fileName(s),c&&(n.onPartData=h,n.onPartEnd=f)}else"content-type"===i&&(l=s);s="",i=""};for await(const t of e)n.write(t);return n.end(),p}__export(multipart_parser_exports,{toFormData:()=>toFormData});var init_multipart_parser=__esm({"../../node_modules/.pnpm/node-fetch@3.3.0/node_modules/node-fetch/src/utils/multipart-parser.js"(){init_from(),init_esm_min(),s=0,S={START_BOUNDARY:s++,HEADER_FIELD_START:s++,HEADER_FIELD:s++,HEADER_VALUE_START:s++,HEADER_VALUE:s++,HEADER_VALUE_ALMOST_DONE:s++,HEADERS_ALMOST_DONE:s++,PART_DATA_START:s++,PART_DATA:s++,END:s++},F={PART_BOUNDARY:f2=1,LAST_BOUNDARY:f2*=2},LF=10,CR=13,SPACE=32,HYPHEN=45,COLON=58,A=97,Z=122,lower=e=>32|e,noop2=()=>{},MultipartParser=class{constructor(e){this.index=0,this.flags=0,this.onHeaderEnd=noop2,this.onHeaderField=noop2,this.onHeadersEnd=noop2,this.onHeaderValue=noop2,this.onPartBegin=noop2,this.onPartData=noop2,this.onPartEnd=noop2,this.boundaryChars={},e="\r\n--"+e;const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r),this.boundaryChars[t[r]]=!0;this.boundary=t,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=S.START_BOUNDARY}write(e){let t=0;const r=e.length;let n=this.index,{lookbehind:i,boundary:s,boundaryChars:a,index:o,state:l,flags:c}=this;const u=this.boundary.length,p=u-1,d=e.length;let h,f;const m=e=>{this[e+"Mark"]=t},y=e=>{delete this[e+"Mark"]},g=(e,t,r,n)=>{void 0!==t&&t===r||this[e](n&&n.subarray(t,r))},b=(r,n)=>{const i=r+"Mark";i in this&&(n?(g(r,this[i],t,e),delete this[i]):(g(r,this[i],e.length,e),this[i]=0))};for(t=0;t<r;t++)switch(h=e[t],l){case S.START_BOUNDARY:if(o===s.length-2){if(h===HYPHEN)c|=F.LAST_BOUNDARY;else if(h!==CR)return;o++;break}if(o-1==s.length-2){if(c&F.LAST_BOUNDARY&&h===HYPHEN)l=S.END,c=0;else{if(c&F.LAST_BOUNDARY||h!==LF)return;o=0,g("onPartBegin"),l=S.HEADER_FIELD_START}break}h!==s[o+2]&&(o=-2),h===s[o+2]&&o++;break;case S.HEADER_FIELD_START:l=S.HEADER_FIELD,m("onHeaderField"),o=0;case S.HEADER_FIELD:if(h===CR){y("onHeaderField"),l=S.HEADERS_ALMOST_DONE;break}if(o++,h===HYPHEN)break;if(h===COLON){if(1===o)return;b("onHeaderField",!0),l=S.HEADER_VALUE_START;break}if(f=lower(h),f<A||f>Z)return;break;case S.HEADER_VALUE_START:if(h===SPACE)break;m("onHeaderValue"),l=S.HEADER_VALUE;case S.HEADER_VALUE:h===CR&&(b("onHeaderValue",!0),g("onHeaderEnd"),l=S.HEADER_VALUE_ALMOST_DONE);break;case S.HEADER_VALUE_ALMOST_DONE:if(h!==LF)return;l=S.HEADER_FIELD_START;break;case S.HEADERS_ALMOST_DONE:if(h!==LF)return;g("onHeadersEnd"),l=S.PART_DATA_START;break;case S.PART_DATA_START:l=S.PART_DATA,m("onPartData");case S.PART_DATA:if(n=o,0===o){for(t+=p;t<d&&!(e[t]in a);)t+=u;t-=p,h=e[t]}if(o<s.length)s[o]===h?(0===o&&b("onPartData",!0),o++):o=0;else if(o===s.length)o++,h===CR?c|=F.PART_BOUNDARY:h===HYPHEN?c|=F.LAST_BOUNDARY:o=0;else if(o-1===s.length)if(c&F.PART_BOUNDARY){if(o=0,h===LF){c&=~F.PART_BOUNDARY,g("onPartEnd"),g("onPartBegin"),l=S.HEADER_FIELD_START;break}}else c&F.LAST_BOUNDARY&&h===HYPHEN?(g("onPartEnd"),l=S.END,c=0):o=0;if(o>0)i[o-1]=h;else if(n>0){const e=new Uint8Array(i.buffer,i.byteOffset,i.byteLength);g("onPartData",0,n,e),n=0,m("onPartData"),t--}break;case S.END:break;default:throw new Error(`Unexpected state entered: ${l}`)}b("onHeaderField"),b("onHeaderValue"),b("onPartData"),this.index=o,this.state=l,this.flags=c}end(){if(this.state===S.HEADER_FIELD_START&&0===this.index||this.state===S.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==S.END)throw new Error("MultipartParser.end(): stream ended unexpectedly")}}}}),require_shallowEqual=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/utils/shallowEqual.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){const r=Object.keys(t);for(const n of r)if(e[n]!==t[n])return!1;return!0}}}),require_deprecationWarning=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/utils/deprecationWarning.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r,n=""){if(t.has(e))return;t.add(e);const{internal:i,trace:s}=function(e,t){const{stackTraceLimit:r,prepareStackTrace:n}=Error;let i;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(e,t){i=t},(new Error).stack,Error.stackTraceLimit=r,Error.prepareStackTrace=n,!i)return{internal:!1,trace:""};const s=i.slice(1+e,1+e+t);return{internal:/[\\/]@babel[\\/]/.test(s[1].getFileName()),trace:s.map((e=>`    at ${e}`)).join("\n")}}(1,2);if(i)return;console.warn(`${n}\`${e}\` has been deprecated, please migrate to \`${r}\`\n${s}`)};var t=new Set}}),require_generated=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/validators/generated/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isAccessor=function(e,r){if(!e)return!1;if("ClassAccessorProperty"!==e.type)return!1;return null==r||(0,t.default)(e,r)},e.isAnyTypeAnnotation=function(e,r){return!!e&&("AnyTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isArgumentPlaceholder=function(e,r){return!!e&&("ArgumentPlaceholder"===e.type&&(null==r||(0,t.default)(e,r)))},e.isArrayExpression=function(e,r){return!!e&&("ArrayExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isArrayPattern=function(e,r){return!!e&&("ArrayPattern"===e.type&&(null==r||(0,t.default)(e,r)))},e.isArrayTypeAnnotation=function(e,r){return!!e&&("ArrayTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isArrowFunctionExpression=function(e,r){return!!e&&("ArrowFunctionExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isAssignmentExpression=function(e,r){return!!e&&("AssignmentExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isAssignmentPattern=function(e,r){return!!e&&("AssignmentPattern"===e.type&&(null==r||(0,t.default)(e,r)))},e.isAwaitExpression=function(e,r){return!!e&&("AwaitExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isBigIntLiteral=function(e,r){return!!e&&("BigIntLiteral"===e.type&&(null==r||(0,t.default)(e,r)))},e.isBinary=function(e,r){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isBinaryExpression=function(e,r){return!!e&&("BinaryExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isBindExpression=function(e,r){return!!e&&("BindExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isBlock=function(e,r){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"!==e.expectedNode)return!1;break;default:return!1}return null==r||(0,t.default)(e,r)},e.isBlockParent=function(e,r){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"!==e.expectedNode)return!1;break;default:return!1}return null==r||(0,t.default)(e,r)},e.isBlockStatement=function(e,r){return!!e&&("BlockStatement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isBooleanLiteral=function(e,r){return!!e&&("BooleanLiteral"===e.type&&(null==r||(0,t.default)(e,r)))},e.isBooleanLiteralTypeAnnotation=function(e,r){return!!e&&("BooleanLiteralTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isBooleanTypeAnnotation=function(e,r){return!!e&&("BooleanTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isBreakStatement=function(e,r){return!!e&&("BreakStatement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isCallExpression=function(e,r){return!!e&&("CallExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isCatchClause=function(e,r){return!!e&&("CatchClause"===e.type&&(null==r||(0,t.default)(e,r)))},e.isClass=function(e,r){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isClassAccessorProperty=function(e,r){return!!e&&("ClassAccessorProperty"===e.type&&(null==r||(0,t.default)(e,r)))},e.isClassBody=function(e,r){return!!e&&("ClassBody"===e.type&&(null==r||(0,t.default)(e,r)))},e.isClassDeclaration=function(e,r){return!!e&&("ClassDeclaration"===e.type&&(null==r||(0,t.default)(e,r)))},e.isClassExpression=function(e,r){return!!e&&("ClassExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isClassImplements=function(e,r){return!!e&&("ClassImplements"===e.type&&(null==r||(0,t.default)(e,r)))},e.isClassMethod=function(e,r){return!!e&&("ClassMethod"===e.type&&(null==r||(0,t.default)(e,r)))},e.isClassPrivateMethod=function(e,r){return!!e&&("ClassPrivateMethod"===e.type&&(null==r||(0,t.default)(e,r)))},e.isClassPrivateProperty=function(e,r){return!!e&&("ClassPrivateProperty"===e.type&&(null==r||(0,t.default)(e,r)))},e.isClassProperty=function(e,r){return!!e&&("ClassProperty"===e.type&&(null==r||(0,t.default)(e,r)))},e.isCompletionStatement=function(e,r){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isConditional=function(e,r){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isConditionalExpression=function(e,r){return!!e&&("ConditionalExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isContinueStatement=function(e,r){return!!e&&("ContinueStatement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isDebuggerStatement=function(e,r){return!!e&&("DebuggerStatement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isDecimalLiteral=function(e,r){return!!e&&("DecimalLiteral"===e.type&&(null==r||(0,t.default)(e,r)))},e.isDeclaration=function(e,r){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":break;case"Placeholder":if("Declaration"!==e.expectedNode)return!1;break;default:return!1}return null==r||(0,t.default)(e,r)},e.isDeclareClass=function(e,r){return!!e&&("DeclareClass"===e.type&&(null==r||(0,t.default)(e,r)))},e.isDeclareExportAllDeclaration=function(e,r){return!!e&&("DeclareExportAllDeclaration"===e.type&&(null==r||(0,t.default)(e,r)))},e.isDeclareExportDeclaration=function(e,r){return!!e&&("DeclareExportDeclaration"===e.type&&(null==r||(0,t.default)(e,r)))},e.isDeclareFunction=function(e,r){return!!e&&("DeclareFunction"===e.type&&(null==r||(0,t.default)(e,r)))},e.isDeclareInterface=function(e,r){return!!e&&("DeclareInterface"===e.type&&(null==r||(0,t.default)(e,r)))},e.isDeclareModule=function(e,r){return!!e&&("DeclareModule"===e.type&&(null==r||(0,t.default)(e,r)))},e.isDeclareModuleExports=function(e,r){return!!e&&("DeclareModuleExports"===e.type&&(null==r||(0,t.default)(e,r)))},e.isDeclareOpaqueType=function(e,r){return!!e&&("DeclareOpaqueType"===e.type&&(null==r||(0,t.default)(e,r)))},e.isDeclareTypeAlias=function(e,r){return!!e&&("DeclareTypeAlias"===e.type&&(null==r||(0,t.default)(e,r)))},e.isDeclareVariable=function(e,r){return!!e&&("DeclareVariable"===e.type&&(null==r||(0,t.default)(e,r)))},e.isDeclaredPredicate=function(e,r){return!!e&&("DeclaredPredicate"===e.type&&(null==r||(0,t.default)(e,r)))},e.isDecorator=function(e,r){return!!e&&("Decorator"===e.type&&(null==r||(0,t.default)(e,r)))},e.isDirective=function(e,r){return!!e&&("Directive"===e.type&&(null==r||(0,t.default)(e,r)))},e.isDirectiveLiteral=function(e,r){return!!e&&("DirectiveLiteral"===e.type&&(null==r||(0,t.default)(e,r)))},e.isDoExpression=function(e,r){return!!e&&("DoExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isDoWhileStatement=function(e,r){return!!e&&("DoWhileStatement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isEmptyStatement=function(e,r){return!!e&&("EmptyStatement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isEmptyTypeAnnotation=function(e,r){return!!e&&("EmptyTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isEnumBody=function(e,r){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isEnumBooleanBody=function(e,r){return!!e&&("EnumBooleanBody"===e.type&&(null==r||(0,t.default)(e,r)))},e.isEnumBooleanMember=function(e,r){return!!e&&("EnumBooleanMember"===e.type&&(null==r||(0,t.default)(e,r)))},e.isEnumDeclaration=function(e,r){return!!e&&("EnumDeclaration"===e.type&&(null==r||(0,t.default)(e,r)))},e.isEnumDefaultedMember=function(e,r){return!!e&&("EnumDefaultedMember"===e.type&&(null==r||(0,t.default)(e,r)))},e.isEnumMember=function(e,r){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isEnumNumberBody=function(e,r){return!!e&&("EnumNumberBody"===e.type&&(null==r||(0,t.default)(e,r)))},e.isEnumNumberMember=function(e,r){return!!e&&("EnumNumberMember"===e.type&&(null==r||(0,t.default)(e,r)))},e.isEnumStringBody=function(e,r){return!!e&&("EnumStringBody"===e.type&&(null==r||(0,t.default)(e,r)))},e.isEnumStringMember=function(e,r){return!!e&&("EnumStringMember"===e.type&&(null==r||(0,t.default)(e,r)))},e.isEnumSymbolBody=function(e,r){return!!e&&("EnumSymbolBody"===e.type&&(null==r||(0,t.default)(e,r)))},e.isExistsTypeAnnotation=function(e,r){return!!e&&("ExistsTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isExportAllDeclaration=function(e,r){return!!e&&("ExportAllDeclaration"===e.type&&(null==r||(0,t.default)(e,r)))},e.isExportDeclaration=function(e,r){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isExportDefaultDeclaration=function(e,r){return!!e&&("ExportDefaultDeclaration"===e.type&&(null==r||(0,t.default)(e,r)))},e.isExportDefaultSpecifier=function(e,r){return!!e&&("ExportDefaultSpecifier"===e.type&&(null==r||(0,t.default)(e,r)))},e.isExportNamedDeclaration=function(e,r){return!!e&&("ExportNamedDeclaration"===e.type&&(null==r||(0,t.default)(e,r)))},e.isExportNamespaceSpecifier=function(e,r){return!!e&&("ExportNamespaceSpecifier"===e.type&&(null==r||(0,t.default)(e,r)))},e.isExportSpecifier=function(e,r){return!!e&&("ExportSpecifier"===e.type&&(null==r||(0,t.default)(e,r)))},e.isExpression=function(e,r){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return null==r||(0,t.default)(e,r)},e.isExpressionStatement=function(e,r){return!!e&&("ExpressionStatement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isExpressionWrapper=function(e,r){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isFile=function(e,r){return!!e&&("File"===e.type&&(null==r||(0,t.default)(e,r)))},e.isFlow=function(e,r){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isFlowBaseAnnotation=function(e,r){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isFlowDeclaration=function(e,r){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isFlowPredicate=function(e,r){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isFlowType=function(e,r){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isFor=function(e,r){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isForInStatement=function(e,r){return!!e&&("ForInStatement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isForOfStatement=function(e,r){return!!e&&("ForOfStatement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isForStatement=function(e,r){return!!e&&("ForStatement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isForXStatement=function(e,r){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isFunction=function(e,r){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isFunctionDeclaration=function(e,r){return!!e&&("FunctionDeclaration"===e.type&&(null==r||(0,t.default)(e,r)))},e.isFunctionExpression=function(e,r){return!!e&&("FunctionExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isFunctionParent=function(e,r){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isFunctionTypeAnnotation=function(e,r){return!!e&&("FunctionTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isFunctionTypeParam=function(e,r){return!!e&&("FunctionTypeParam"===e.type&&(null==r||(0,t.default)(e,r)))},e.isGenericTypeAnnotation=function(e,r){return!!e&&("GenericTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isIdentifier=function(e,r){return!!e&&("Identifier"===e.type&&(null==r||(0,t.default)(e,r)))},e.isIfStatement=function(e,r){return!!e&&("IfStatement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isImmutable=function(e,r){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"!==e.expectedNode)return!1;break;default:return!1}return null==r||(0,t.default)(e,r)},e.isImport=function(e,r){return!!e&&("Import"===e.type&&(null==r||(0,t.default)(e,r)))},e.isImportAttribute=function(e,r){return!!e&&("ImportAttribute"===e.type&&(null==r||(0,t.default)(e,r)))},e.isImportDeclaration=function(e,r){return!!e&&("ImportDeclaration"===e.type&&(null==r||(0,t.default)(e,r)))},e.isImportDefaultSpecifier=function(e,r){return!!e&&("ImportDefaultSpecifier"===e.type&&(null==r||(0,t.default)(e,r)))},e.isImportNamespaceSpecifier=function(e,r){return!!e&&("ImportNamespaceSpecifier"===e.type&&(null==r||(0,t.default)(e,r)))},e.isImportOrExportDeclaration=n,e.isImportSpecifier=function(e,r){return!!e&&("ImportSpecifier"===e.type&&(null==r||(0,t.default)(e,r)))},e.isIndexedAccessType=function(e,r){return!!e&&("IndexedAccessType"===e.type&&(null==r||(0,t.default)(e,r)))},e.isInferredPredicate=function(e,r){return!!e&&("InferredPredicate"===e.type&&(null==r||(0,t.default)(e,r)))},e.isInterfaceDeclaration=function(e,r){return!!e&&("InterfaceDeclaration"===e.type&&(null==r||(0,t.default)(e,r)))},e.isInterfaceExtends=function(e,r){return!!e&&("InterfaceExtends"===e.type&&(null==r||(0,t.default)(e,r)))},e.isInterfaceTypeAnnotation=function(e,r){return!!e&&("InterfaceTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isInterpreterDirective=function(e,r){return!!e&&("InterpreterDirective"===e.type&&(null==r||(0,t.default)(e,r)))},e.isIntersectionTypeAnnotation=function(e,r){return!!e&&("IntersectionTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isJSX=function(e,r){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isJSXAttribute=function(e,r){return!!e&&("JSXAttribute"===e.type&&(null==r||(0,t.default)(e,r)))},e.isJSXClosingElement=function(e,r){return!!e&&("JSXClosingElement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isJSXClosingFragment=function(e,r){return!!e&&("JSXClosingFragment"===e.type&&(null==r||(0,t.default)(e,r)))},e.isJSXElement=function(e,r){return!!e&&("JSXElement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isJSXEmptyExpression=function(e,r){return!!e&&("JSXEmptyExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isJSXExpressionContainer=function(e,r){return!!e&&("JSXExpressionContainer"===e.type&&(null==r||(0,t.default)(e,r)))},e.isJSXFragment=function(e,r){return!!e&&("JSXFragment"===e.type&&(null==r||(0,t.default)(e,r)))},e.isJSXIdentifier=function(e,r){return!!e&&("JSXIdentifier"===e.type&&(null==r||(0,t.default)(e,r)))},e.isJSXMemberExpression=function(e,r){return!!e&&("JSXMemberExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isJSXNamespacedName=function(e,r){return!!e&&("JSXNamespacedName"===e.type&&(null==r||(0,t.default)(e,r)))},e.isJSXOpeningElement=function(e,r){return!!e&&("JSXOpeningElement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isJSXOpeningFragment=function(e,r){return!!e&&("JSXOpeningFragment"===e.type&&(null==r||(0,t.default)(e,r)))},e.isJSXSpreadAttribute=function(e,r){return!!e&&("JSXSpreadAttribute"===e.type&&(null==r||(0,t.default)(e,r)))},e.isJSXSpreadChild=function(e,r){return!!e&&("JSXSpreadChild"===e.type&&(null==r||(0,t.default)(e,r)))},e.isJSXText=function(e,r){return!!e&&("JSXText"===e.type&&(null==r||(0,t.default)(e,r)))},e.isLVal=function(e,r){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==r||(0,t.default)(e,r)},e.isLabeledStatement=function(e,r){return!!e&&("LabeledStatement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isLiteral=function(e,r){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"!==e.expectedNode)return!1;break;default:return!1}return null==r||(0,t.default)(e,r)},e.isLogicalExpression=function(e,r){return!!e&&("LogicalExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isLoop=function(e,r){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isMemberExpression=function(e,r){return!!e&&("MemberExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isMetaProperty=function(e,r){return!!e&&("MetaProperty"===e.type&&(null==r||(0,t.default)(e,r)))},e.isMethod=function(e,r){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isMiscellaneous=function(e,r){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isMixedTypeAnnotation=function(e,r){return!!e&&("MixedTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isModuleDeclaration=function(e,t){return(0,r.default)("isModuleDeclaration","isImportOrExportDeclaration"),n(e,t)},e.isModuleExpression=function(e,r){return!!e&&("ModuleExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isModuleSpecifier=function(e,r){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isNewExpression=function(e,r){return!!e&&("NewExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isNoop=function(e,r){return!!e&&("Noop"===e.type&&(null==r||(0,t.default)(e,r)))},e.isNullLiteral=function(e,r){return!!e&&("NullLiteral"===e.type&&(null==r||(0,t.default)(e,r)))},e.isNullLiteralTypeAnnotation=function(e,r){return!!e&&("NullLiteralTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isNullableTypeAnnotation=function(e,r){return!!e&&("NullableTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isNumberLiteral=function(e,n){return(0,r.default)("isNumberLiteral","isNumericLiteral"),!!e&&("NumberLiteral"===e.type&&(null==n||(0,t.default)(e,n)))},e.isNumberLiteralTypeAnnotation=function(e,r){return!!e&&("NumberLiteralTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isNumberTypeAnnotation=function(e,r){return!!e&&("NumberTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isNumericLiteral=function(e,r){return!!e&&("NumericLiteral"===e.type&&(null==r||(0,t.default)(e,r)))},e.isObjectExpression=function(e,r){return!!e&&("ObjectExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isObjectMember=function(e,r){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isObjectMethod=function(e,r){return!!e&&("ObjectMethod"===e.type&&(null==r||(0,t.default)(e,r)))},e.isObjectPattern=function(e,r){return!!e&&("ObjectPattern"===e.type&&(null==r||(0,t.default)(e,r)))},e.isObjectProperty=function(e,r){return!!e&&("ObjectProperty"===e.type&&(null==r||(0,t.default)(e,r)))},e.isObjectTypeAnnotation=function(e,r){return!!e&&("ObjectTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isObjectTypeCallProperty=function(e,r){return!!e&&("ObjectTypeCallProperty"===e.type&&(null==r||(0,t.default)(e,r)))},e.isObjectTypeIndexer=function(e,r){return!!e&&("ObjectTypeIndexer"===e.type&&(null==r||(0,t.default)(e,r)))},e.isObjectTypeInternalSlot=function(e,r){return!!e&&("ObjectTypeInternalSlot"===e.type&&(null==r||(0,t.default)(e,r)))},e.isObjectTypeProperty=function(e,r){return!!e&&("ObjectTypeProperty"===e.type&&(null==r||(0,t.default)(e,r)))},e.isObjectTypeSpreadProperty=function(e,r){return!!e&&("ObjectTypeSpreadProperty"===e.type&&(null==r||(0,t.default)(e,r)))},e.isOpaqueType=function(e,r){return!!e&&("OpaqueType"===e.type&&(null==r||(0,t.default)(e,r)))},e.isOptionalCallExpression=function(e,r){return!!e&&("OptionalCallExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isOptionalIndexedAccessType=function(e,r){return!!e&&("OptionalIndexedAccessType"===e.type&&(null==r||(0,t.default)(e,r)))},e.isOptionalMemberExpression=function(e,r){return!!e&&("OptionalMemberExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isParenthesizedExpression=function(e,r){return!!e&&("ParenthesizedExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isPattern=function(e,r){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if("Pattern"!==e.expectedNode)return!1;break;default:return!1}return null==r||(0,t.default)(e,r)},e.isPatternLike=function(e,r){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==r||(0,t.default)(e,r)},e.isPipelineBareFunction=function(e,r){return!!e&&("PipelineBareFunction"===e.type&&(null==r||(0,t.default)(e,r)))},e.isPipelinePrimaryTopicReference=function(e,r){return!!e&&("PipelinePrimaryTopicReference"===e.type&&(null==r||(0,t.default)(e,r)))},e.isPipelineTopicExpression=function(e,r){return!!e&&("PipelineTopicExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isPlaceholder=function(e,r){return!!e&&("Placeholder"===e.type&&(null==r||(0,t.default)(e,r)))},e.isPrivate=function(e,r){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isPrivateName=function(e,r){return!!e&&("PrivateName"===e.type&&(null==r||(0,t.default)(e,r)))},e.isProgram=function(e,r){return!!e&&("Program"===e.type&&(null==r||(0,t.default)(e,r)))},e.isProperty=function(e,r){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isPureish=function(e,r){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"!==e.expectedNode)return!1;break;default:return!1}return null==r||(0,t.default)(e,r)},e.isQualifiedTypeIdentifier=function(e,r){return!!e&&("QualifiedTypeIdentifier"===e.type&&(null==r||(0,t.default)(e,r)))},e.isRecordExpression=function(e,r){return!!e&&("RecordExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isRegExpLiteral=function(e,r){return!!e&&("RegExpLiteral"===e.type&&(null==r||(0,t.default)(e,r)))},e.isRegexLiteral=function(e,n){return(0,r.default)("isRegexLiteral","isRegExpLiteral"),!!e&&("RegexLiteral"===e.type&&(null==n||(0,t.default)(e,n)))},e.isRestElement=function(e,r){return!!e&&("RestElement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isRestProperty=function(e,n){return(0,r.default)("isRestProperty","isRestElement"),!!e&&("RestProperty"===e.type&&(null==n||(0,t.default)(e,n)))},e.isReturnStatement=function(e,r){return!!e&&("ReturnStatement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isScopable=function(e,r){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"!==e.expectedNode)return!1;break;default:return!1}return null==r||(0,t.default)(e,r)},e.isSequenceExpression=function(e,r){return!!e&&("SequenceExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isSpreadElement=function(e,r){return!!e&&("SpreadElement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isSpreadProperty=function(e,n){return(0,r.default)("isSpreadProperty","isSpreadElement"),!!e&&("SpreadProperty"===e.type&&(null==n||(0,t.default)(e,n)))},e.isStandardized=function(e,r){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return null==r||(0,t.default)(e,r)},e.isStatement=function(e,r){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return null==r||(0,t.default)(e,r)},e.isStaticBlock=function(e,r){return!!e&&("StaticBlock"===e.type&&(null==r||(0,t.default)(e,r)))},e.isStringLiteral=function(e,r){return!!e&&("StringLiteral"===e.type&&(null==r||(0,t.default)(e,r)))},e.isStringLiteralTypeAnnotation=function(e,r){return!!e&&("StringLiteralTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isStringTypeAnnotation=function(e,r){return!!e&&("StringTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isSuper=function(e,r){return!!e&&("Super"===e.type&&(null==r||(0,t.default)(e,r)))},e.isSwitchCase=function(e,r){return!!e&&("SwitchCase"===e.type&&(null==r||(0,t.default)(e,r)))},e.isSwitchStatement=function(e,r){return!!e&&("SwitchStatement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isSymbolTypeAnnotation=function(e,r){return!!e&&("SymbolTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSAnyKeyword=function(e,r){return!!e&&("TSAnyKeyword"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSArrayType=function(e,r){return!!e&&("TSArrayType"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSAsExpression=function(e,r){return!!e&&("TSAsExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSBaseType=function(e,r){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSLiteralType":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isTSBigIntKeyword=function(e,r){return!!e&&("TSBigIntKeyword"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSBooleanKeyword=function(e,r){return!!e&&("TSBooleanKeyword"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSCallSignatureDeclaration=function(e,r){return!!e&&("TSCallSignatureDeclaration"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSConditionalType=function(e,r){return!!e&&("TSConditionalType"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSConstructSignatureDeclaration=function(e,r){return!!e&&("TSConstructSignatureDeclaration"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSConstructorType=function(e,r){return!!e&&("TSConstructorType"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSDeclareFunction=function(e,r){return!!e&&("TSDeclareFunction"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSDeclareMethod=function(e,r){return!!e&&("TSDeclareMethod"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSEntityName=function(e,r){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if("Identifier"!==e.expectedNode)return!1;break;default:return!1}return null==r||(0,t.default)(e,r)},e.isTSEnumDeclaration=function(e,r){return!!e&&("TSEnumDeclaration"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSEnumMember=function(e,r){return!!e&&("TSEnumMember"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSExportAssignment=function(e,r){return!!e&&("TSExportAssignment"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSExpressionWithTypeArguments=function(e,r){return!!e&&("TSExpressionWithTypeArguments"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSExternalModuleReference=function(e,r){return!!e&&("TSExternalModuleReference"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSFunctionType=function(e,r){return!!e&&("TSFunctionType"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSImportEqualsDeclaration=function(e,r){return!!e&&("TSImportEqualsDeclaration"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSImportType=function(e,r){return!!e&&("TSImportType"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSIndexSignature=function(e,r){return!!e&&("TSIndexSignature"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSIndexedAccessType=function(e,r){return!!e&&("TSIndexedAccessType"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSInferType=function(e,r){return!!e&&("TSInferType"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSInstantiationExpression=function(e,r){return!!e&&("TSInstantiationExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSInterfaceBody=function(e,r){return!!e&&("TSInterfaceBody"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSInterfaceDeclaration=function(e,r){return!!e&&("TSInterfaceDeclaration"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSIntersectionType=function(e,r){return!!e&&("TSIntersectionType"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSIntrinsicKeyword=function(e,r){return!!e&&("TSIntrinsicKeyword"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSLiteralType=function(e,r){return!!e&&("TSLiteralType"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSMappedType=function(e,r){return!!e&&("TSMappedType"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSMethodSignature=function(e,r){return!!e&&("TSMethodSignature"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSModuleBlock=function(e,r){return!!e&&("TSModuleBlock"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSModuleDeclaration=function(e,r){return!!e&&("TSModuleDeclaration"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSNamedTupleMember=function(e,r){return!!e&&("TSNamedTupleMember"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSNamespaceExportDeclaration=function(e,r){return!!e&&("TSNamespaceExportDeclaration"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSNeverKeyword=function(e,r){return!!e&&("TSNeverKeyword"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSNonNullExpression=function(e,r){return!!e&&("TSNonNullExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSNullKeyword=function(e,r){return!!e&&("TSNullKeyword"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSNumberKeyword=function(e,r){return!!e&&("TSNumberKeyword"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSObjectKeyword=function(e,r){return!!e&&("TSObjectKeyword"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSOptionalType=function(e,r){return!!e&&("TSOptionalType"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSParameterProperty=function(e,r){return!!e&&("TSParameterProperty"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSParenthesizedType=function(e,r){return!!e&&("TSParenthesizedType"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSPropertySignature=function(e,r){return!!e&&("TSPropertySignature"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSQualifiedName=function(e,r){return!!e&&("TSQualifiedName"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSRestType=function(e,r){return!!e&&("TSRestType"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSSatisfiesExpression=function(e,r){return!!e&&("TSSatisfiesExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSStringKeyword=function(e,r){return!!e&&("TSStringKeyword"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSSymbolKeyword=function(e,r){return!!e&&("TSSymbolKeyword"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSThisType=function(e,r){return!!e&&("TSThisType"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSTupleType=function(e,r){return!!e&&("TSTupleType"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSType=function(e,r){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isTSTypeAliasDeclaration=function(e,r){return!!e&&("TSTypeAliasDeclaration"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSTypeAnnotation=function(e,r){return!!e&&("TSTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSTypeAssertion=function(e,r){return!!e&&("TSTypeAssertion"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSTypeElement=function(e,r){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isTSTypeLiteral=function(e,r){return!!e&&("TSTypeLiteral"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSTypeOperator=function(e,r){return!!e&&("TSTypeOperator"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSTypeParameter=function(e,r){return!!e&&("TSTypeParameter"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSTypeParameterDeclaration=function(e,r){return!!e&&("TSTypeParameterDeclaration"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSTypeParameterInstantiation=function(e,r){return!!e&&("TSTypeParameterInstantiation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSTypePredicate=function(e,r){return!!e&&("TSTypePredicate"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSTypeQuery=function(e,r){return!!e&&("TSTypeQuery"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSTypeReference=function(e,r){return!!e&&("TSTypeReference"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSUndefinedKeyword=function(e,r){return!!e&&("TSUndefinedKeyword"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSUnionType=function(e,r){return!!e&&("TSUnionType"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSUnknownKeyword=function(e,r){return!!e&&("TSUnknownKeyword"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTSVoidKeyword=function(e,r){return!!e&&("TSVoidKeyword"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTaggedTemplateExpression=function(e,r){return!!e&&("TaggedTemplateExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTemplateElement=function(e,r){return!!e&&("TemplateElement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTemplateLiteral=function(e,r){return!!e&&("TemplateLiteral"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTerminatorless=function(e,r){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isThisExpression=function(e,r){return!!e&&("ThisExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isThisTypeAnnotation=function(e,r){return!!e&&("ThisTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isThrowStatement=function(e,r){return!!e&&("ThrowStatement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTopicReference=function(e,r){return!!e&&("TopicReference"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTryStatement=function(e,r){return!!e&&("TryStatement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTupleExpression=function(e,r){return!!e&&("TupleExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTupleTypeAnnotation=function(e,r){return!!e&&("TupleTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTypeAlias=function(e,r){return!!e&&("TypeAlias"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTypeAnnotation=function(e,r){return!!e&&("TypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTypeCastExpression=function(e,r){return!!e&&("TypeCastExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTypeParameter=function(e,r){return!!e&&("TypeParameter"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTypeParameterDeclaration=function(e,r){return!!e&&("TypeParameterDeclaration"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTypeParameterInstantiation=function(e,r){return!!e&&("TypeParameterInstantiation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isTypeScript=function(e,r){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isTypeofTypeAnnotation=function(e,r){return!!e&&("TypeofTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isUnaryExpression=function(e,r){return!!e&&("UnaryExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isUnaryLike=function(e,r){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isUnionTypeAnnotation=function(e,r){return!!e&&("UnionTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isUpdateExpression=function(e,r){return!!e&&("UpdateExpression"===e.type&&(null==r||(0,t.default)(e,r)))},e.isUserWhitespacable=function(e,r){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isV8IntrinsicIdentifier=function(e,r){return!!e&&("V8IntrinsicIdentifier"===e.type&&(null==r||(0,t.default)(e,r)))},e.isVariableDeclaration=function(e,r){return!!e&&("VariableDeclaration"===e.type&&(null==r||(0,t.default)(e,r)))},e.isVariableDeclarator=function(e,r){return!!e&&("VariableDeclarator"===e.type&&(null==r||(0,t.default)(e,r)))},e.isVariance=function(e,r){return!!e&&("Variance"===e.type&&(null==r||(0,t.default)(e,r)))},e.isVoidTypeAnnotation=function(e,r){return!!e&&("VoidTypeAnnotation"===e.type&&(null==r||(0,t.default)(e,r)))},e.isWhile=function(e,r){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return null==r||(0,t.default)(e,r)},e.isWhileStatement=function(e,r){return!!e&&("WhileStatement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isWithStatement=function(e,r){return!!e&&("WithStatement"===e.type&&(null==r||(0,t.default)(e,r)))},e.isYieldExpression=function(e,r){return!!e&&("YieldExpression"===e.type&&(null==r||(0,t.default)(e,r)))};var t=require_shallowEqual(),r=require_deprecationWarning();function n(e,r){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return null==r||(0,t.default)(e,r)}}}),require_matchesPattern=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/validators/matchesPattern.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r,n){if(!(0,t.isMemberExpression)(e))return!1;const i=Array.isArray(r)?r:r.split("."),s=[];let a;for(a=e;(0,t.isMemberExpression)(a);a=a.object)s.push(a.property);if(s.push(a),s.length<i.length)return!1;if(!n&&s.length>i.length)return!1;for(let e=0,r=s.length-1;e<i.length;e++,r--){const n=s[r];let a;if((0,t.isIdentifier)(n))a=n.name;else if((0,t.isStringLiteral)(n))a=n.value;else{if(!(0,t.isThisExpression)(n))return!1;a="this"}if(i[e]!==a)return!1}return!0};var t=require_generated()}}),require_buildMatchMemberExpression=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r){const n=e.split(".");return e=>(0,t.default)(e,n,r)};var t=require_matchesPattern()}}),require_isReactComponent=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/validators/react/isReactComponent.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(0,require_buildMatchMemberExpression().default)("React.Component");e.default=t}}),require_isCompatTag=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/validators/react/isCompatTag.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return!!e&&/^[a-z]/.test(e)}}}),require_to_fast_properties=__commonJS({"../../node_modules/.pnpm/to-fast-properties@2.0.0/node_modules/to-fast-properties/index.js"(e,t){var r=null;function n(e){if(null!==r&&(r.property,1)){const e=r;return r=n.prototype=null,e}return r=n.prototype=null==e?Object.create(null):e,new n}n(),t.exports=function(e){return n(e)}}}),require_isType=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/validators/isType.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r){if(e===r)return!0;if(t.ALIAS_KEYS[r])return!1;const n=t.FLIPPED_ALIAS_KEYS[r];if(n){if(n[0]===e)return!0;for(const t of n)if(e===t)return!0}return!1};var t=require_definitions()}}),require_isPlaceholderType=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/validators/isPlaceholderType.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r){if(e===r)return!0;const n=t.PLACEHOLDERS_ALIAS[e];if(n)for(const e of n)if(r===e)return!0;return!1};var t=require_definitions()}}),require_is=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/validators/is.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,s,a){if(!s)return!1;if(!(0,r.default)(s.type,e))return!a&&"Placeholder"===s.type&&e in i.FLIPPED_ALIAS_KEYS&&(0,n.default)(s.expectedNode,e);return void 0===a||(0,t.default)(s,a)};var t=require_shallowEqual(),r=require_isType(),n=require_isPlaceholderType(),i=require_definitions()}}),require_identifier=__commonJS({"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.19.1/node_modules/@babel/helper-validator-identifier/lib/identifier.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isIdentifierChar=c,e.isIdentifierName=function(e){let t=!0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(55296==(64512&n)&&r+1<e.length){const t=e.charCodeAt(++r);56320==(64512&t)&&(n=65536+((1023&n)<<10)+(1023&t))}if(t){if(t=!1,!l(n))return!1}else if(!c(n))return!1}return!t},e.isIdentifierStart=l;var t="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼＡ-Ｚａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ",r="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏０-９＿",n=new RegExp("["+t+"]"),i=new RegExp("["+t+r+"]");t=r=null;var s=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],a=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function o(e,t){let r=65536;for(let n=0,i=t.length;n<i;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function l(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&n.test(String.fromCharCode(e)):o(e,s)))}function c(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&i.test(String.fromCharCode(e)):o(e,s)||o(e,a))))}}}),require_keyword=__commonJS({"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.19.1/node_modules/@babel/helper-validator-identifier/lib/keyword.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isKeyword=function(e){return n.has(e)},e.isReservedWord=a,e.isStrictBindOnlyReservedWord=l,e.isStrictBindReservedWord=function(e,t){return o(e,t)||l(e)},e.isStrictReservedWord=o;var t=["implements","interface","let","package","private","protected","public","static","yield"],r=["eval","arguments"],n=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),i=new Set(t),s=new Set(r);function a(e,t){return t&&"await"===e||"enum"===e}function o(e,t){return a(e,t)||i.has(e)}function l(e){return s.has(e)}}}),require_lib3=__commonJS({"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.19.1/node_modules/@babel/helper-validator-identifier/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return r.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return r.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return r.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return r.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return r.isStrictReservedWord}});var t=require_identifier(),r=require_keyword()}}),require_isValidIdentifier=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/validators/isValidIdentifier.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r=!0){if("string"!=typeof e)return!1;if(r&&((0,t.isKeyword)(e)||(0,t.isStrictReservedWord)(e,!0)))return!1;return(0,t.isIdentifierName)(e)};var t=require_lib3()}}),require_lib4=__commonJS({"../../node_modules/.pnpm/@babel+helper-string-parser@7.21.5/node_modules/@babel/helper-string-parser/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.readCodePoint=l,e.readInt=o,e.readStringContents=function(e,t,r,n,a,o){const l=r,c=n,u=a;let p="",d=null,h=r;const{length:f}=t;for(;;){if(r>=f){o.unterminated(l,c,u),p+=t.slice(h,r);break}const m=t.charCodeAt(r);if(i(e,m,t,r)){p+=t.slice(h,r);break}if(92===m){p+=t.slice(h,r);const i=s(t,r,n,a,"template"===e,o);null!==i.ch||d?p+=i.ch:d={pos:r,lineStart:n,curLine:a},({pos:r,lineStart:n,curLine:a}=i),h=r}else 8232===m||8233===m?(++a,n=++r):10===m||13===m?"template"===e?(p+=t.slice(h,r)+"\n",++r,13===m&&10===t.charCodeAt(r)&&++r,++a,h=n=r):o.unterminated(l,c,u):++r}return{pos:r,str:p,firstInvalidLoc:d,lineStart:n,curLine:a,containsInvalid:!!d}};var t=function(e){return e>=48&&e<=57},r={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},n={bin:e=>48===e||49===e,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function i(e,t,r,n){return"template"===e?96===t||36===t&&123===r.charCodeAt(n+1):t===("double"===e?34:39)}function s(e,t,r,n,i,s){const o=!i;t++;const c=e=>({pos:t,ch:e,lineStart:r,curLine:n}),u=e.charCodeAt(t++);switch(u){case 110:return c("\n");case 114:return c("\r");case 120:{let i;return({code:i,pos:t}=a(e,t,r,n,2,!1,o,s)),c(null===i?null:String.fromCharCode(i))}case 117:{let i;return({code:i,pos:t}=l(e,t,r,n,o,s)),c(null===i?null:String.fromCodePoint(i))}case 116:return c("\t");case 98:return c("\b");case 118:return c("\v");case 102:return c("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:r=t,++n;case 8232:case 8233:return c("");case 56:case 57:if(i)return c(null);s.strictNumericEscape(t-1,r,n);default:if(u>=48&&u<=55){const a=t-1;let o=e.slice(a,t+2).match(/^[0-7]+/)[0],l=parseInt(o,8);l>255&&(o=o.slice(0,-1),l=parseInt(o,8)),t+=o.length-1;const u=e.charCodeAt(t);if("0"!==o||56===u||57===u){if(i)return c(null);s.strictNumericEscape(a,r,n)}return c(String.fromCharCode(l))}return c(String.fromCharCode(u))}}function a(e,t,r,n,i,s,a,l){const c=t;let u;return({n:u,pos:t}=o(e,t,r,n,16,i,s,!1,l,!a)),null===u&&(a?l.invalidEscapeSequence(c,r,n):t=c-1),{code:u,pos:t}}function o(e,i,s,a,o,l,c,u,p,d){const h=i,f=16===o?r.hex:r.decBinOct,m=16===o?n.hex:10===o?n.dec:8===o?n.oct:n.bin;let y=!1,g=0;for(let r=0,n=null==l?1/0:l;r<n;++r){const r=e.charCodeAt(i);let n;if(95!==r||"bail"===u){if(n=r>=97?r-97+10:r>=65?r-65+10:t(r)?r-48:1/0,n>=o){if(n<=9&&d)return{n:null,pos:i};if(n<=9&&p.invalidDigit(i,s,a,o))n=0;else{if(!c)break;n=0,y=!0}}++i,g=g*o+n}else{const t=e.charCodeAt(i-1),r=e.charCodeAt(i+1);if(u){if(Number.isNaN(r)||!m(r)||f.has(t)||f.has(r)){if(d)return{n:null,pos:i};p.unexpectedNumericSeparator(i,s,a)}}else{if(d)return{n:null,pos:i};p.numericSeparatorInEscapeSequence(i,s,a)}++i}}return i===h||null!=l&&i-h!==l||y?{n:null,pos:i}:{n:g,pos:i}}function l(e,t,r,n,i,s){let o;if(123===e.charCodeAt(t)){if(++t,({code:o,pos:t}=a(e,t,r,n,e.indexOf("}",t)-t,!0,i,s)),++t,null!==o&&o>1114111){if(!i)return{code:null,pos:t};s.invalidCodePoint(t,r,n)}}else({code:o,pos:t}=a(e,t,r,n,4,!1,i,s));return{code:o,pos:t}}}}),require_constants2=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/constants/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UPDATE_OPERATORS=e.UNARY_OPERATORS=e.STRING_UNARY_OPERATORS=e.STATEMENT_OR_BLOCK_KEYS=e.NUMBER_UNARY_OPERATORS=e.NUMBER_BINARY_OPERATORS=e.NOT_LOCAL_BINDING=e.LOGICAL_OPERATORS=e.INHERIT_KEYS=e.FOR_INIT_KEYS=e.FLATTENABLE_KEYS=e.EQUALITY_BINARY_OPERATORS=e.COMPARISON_BINARY_OPERATORS=e.COMMENT_KEYS=e.BOOLEAN_UNARY_OPERATORS=e.BOOLEAN_NUMBER_BINARY_OPERATORS=e.BOOLEAN_BINARY_OPERATORS=e.BLOCK_SCOPED_SYMBOL=e.BINARY_OPERATORS=e.ASSIGNMENT_OPERATORS=void 0;e.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"];e.FLATTENABLE_KEYS=["body","expressions"];e.FOR_INIT_KEYS=["left","init"];e.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];var t=["||","&&","??"];e.LOGICAL_OPERATORS=t;e.UPDATE_OPERATORS=["++","--"];var r=[">","<",">=","<="];e.BOOLEAN_NUMBER_BINARY_OPERATORS=r;var n=["==","===","!=","!=="];e.EQUALITY_BINARY_OPERATORS=n;var i=[...n,"in","instanceof"];e.COMPARISON_BINARY_OPERATORS=i;var s=[...i,...r];e.BOOLEAN_BINARY_OPERATORS=s;var a=["-","/","%","*","**","&","|",">>",">>>","<<","^"];e.NUMBER_BINARY_OPERATORS=a;var o=["+",...a,...s,"|>"];e.BINARY_OPERATORS=o;var l=["=","+=",...a.map((e=>e+"=")),...t.map((e=>e+"="))];e.ASSIGNMENT_OPERATORS=l;var c=["delete","!"];e.BOOLEAN_UNARY_OPERATORS=c;var u=["+","-","~"];e.NUMBER_UNARY_OPERATORS=u;var p=["typeof"];e.STRING_UNARY_OPERATORS=p;var d=["void","throw",...c,...u,...p];e.UNARY_OPERATORS=d;e.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};var h=Symbol.for("var used to be block scoped");e.BLOCK_SCOPED_SYMBOL=h;var f=Symbol.for("should not be considered a local binding");e.NOT_LOCAL_BINDING=f}}),require_utils3=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/definitions/utils.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.VISITOR_KEYS=e.NODE_PARENT_VALIDATIONS=e.NODE_FIELDS=e.FLIPPED_ALIAS_KEYS=e.DEPRECATED_KEYS=e.BUILDER_KEYS=e.ALIAS_KEYS=void 0,e.arrayOf=h,e.arrayOfType=f,e.assertEach=m,e.assertNodeOrValueType=function(...e){function n(n,i,s){for(const a of e)if(u(s)===a||(0,t.default)(a,s))return void(0,r.validateChild)(n,i,s);throw new TypeError(`Property ${i} of ${n.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(null==s?void 0:s.type)}`)}return n.oneOfNodeOrValueTypes=e,n},e.assertNodeType=y,e.assertOneOf=function(...e){function t(t,r,n){if(e.indexOf(n)<0)throw new TypeError(`Property ${r} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(n)}`)}return t.oneOf=e,t},e.assertOptionalChainStart=function(){return function(e){var t;let r=e;for(;e;){const{type:e}=r;if("OptionalCallExpression"!==e){if("OptionalMemberExpression"!==e)break;if(r.optional)return;r=r.object}else{if(r.optional)return;r=r.callee}}throw new TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${null==(t=r)?void 0:t.type}`)}},e.assertShape=function(e){function t(t,n,i){const s=[];for(const n of Object.keys(e))try{(0,r.validateField)(t,n,i[n],e[n])}catch(e){if(e instanceof TypeError){s.push(e.message);continue}throw e}if(s.length)throw new TypeError(`Property ${n} of ${t.type} expected to have the following:\n${s.join("\n")}`)}return t.shapeOf=e,t},e.assertValueType=g,e.chain=b,e.default=E,e.defineAliasedType=function(...e){return(t,r={})=>{let n=r.aliases;var i;n||(r.inherits&&(n=null==(i=v[r.inherits].aliases)?void 0:i.slice()),null!=n||(n=[]),r.aliases=n);const s=e.filter((e=>!n.includes(e)));n.unshift(...s),E(t,r)}},e.typeIs=d,e.validate=p,e.validateArrayOfType=function(e){return p(f(e))},e.validateOptional=function(e){return{validate:e,optional:!0}},e.validateOptionalType=function(e){return{validate:d(e),optional:!0}},e.validateType=function(e){return p(d(e))};var t=require_is(),r=require_validate(),n={};e.VISITOR_KEYS=n;var i={};e.ALIAS_KEYS=i;var s={};e.FLIPPED_ALIAS_KEYS=s;var a={};e.NODE_FIELDS=a;var o={};e.BUILDER_KEYS=o;var l={};e.DEPRECATED_KEYS=l;var c={};function u(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function p(e){return{validate:e}}function d(e){return"string"==typeof e?y(e):y(...e)}function h(e){return b(g("array"),m(e))}function f(e){return h(d(e))}function m(e){function t(t,n,i){if(Array.isArray(i))for(let s=0;s<i.length;s++){const a=`${n}[${s}]`,o=i[s];e(t,a,o),process.env.BABEL_TYPES_8_BREAKING&&(0,r.validateChild)(t,a,o)}}return t.each=e,t}function y(...e){function n(n,i,s){for(const a of e)if((0,t.default)(a,s))return void(0,r.validateChild)(n,i,s);throw new TypeError(`Property ${i} of ${n.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(null==s?void 0:s.type)}`)}return n.oneOfNodeTypes=e,n}function g(e){function t(t,r,n){if(!(u(n)===e))throw new TypeError(`Property ${r} expected type of ${e} but got ${u(n)}`)}return t.type=e,t}function b(...e){function t(...t){for(const r of e)r(...t)}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&"array"===e[0].type&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}e.NODE_PARENT_VALIDATIONS=c;var S=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],T=["default","optional","validate"],v={};function E(e,t={}){const r=t.inherits&&v[t.inherits]||{};let p=t.fields;if(!p&&(p={},r.fields)){const e=Object.getOwnPropertyNames(r.fields);for(const t of e){const e=r.fields[t],n=e.default;if(Array.isArray(n)?n.length>0:n&&"object"==typeof n)throw new Error("field defaults can only be primitives or empty arrays currently");p[t]={default:Array.isArray(n)?[]:n,optional:e.optional,validate:e.validate}}}const d=t.visitor||r.visitor||[],h=t.aliases||r.aliases||[],f=t.builder||r.builder||t.visitor||[];for(const r of Object.keys(t))if(-1===S.indexOf(r))throw new Error(`Unknown type option "${r}" on ${e}`);t.deprecatedAlias&&(l[t.deprecatedAlias]=e);for(const e of d.concat(f))p[e]=p[e]||{};for(const t of Object.keys(p)){const r=p[t];void 0!==r.default&&-1===f.indexOf(t)&&(r.optional=!0),void 0===r.default?r.default=null:r.validate||null==r.default||(r.validate=g(u(r.default)));for(const n of Object.keys(r))if(-1===T.indexOf(n))throw new Error(`Unknown field key "${n}" on ${e}.${t}`)}n[e]=t.visitor=d,o[e]=t.builder=f,a[e]=t.fields=p,i[e]=t.aliases=h,h.forEach((t=>{s[t]=s[t]||[],s[t].push(e)})),t.validate&&(c[e]=t.validate),v[e]=t}}}),require_core=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/definitions/core.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.patternLikeCommon=e.functionTypeAnnotationCommon=e.functionDeclarationCommon=e.functionCommon=e.classMethodOrPropertyCommon=e.classMethodOrDeclareMethodCommon=void 0;var t=require_is(),r=require_isValidIdentifier(),n=require_lib3(),i=require_lib4(),s=require_constants2(),a=require_utils3(),o=(0,a.defineAliasedType)("Standardized");o("ArrayExpression",{fields:{elements:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeOrValueType)("null","Expression","SpreadElement"))),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),o("AssignmentExpression",{fields:{operator:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,a.assertValueType)("string");const e=(0,a.assertOneOf)(...s.ASSIGNMENT_OPERATORS),r=(0,a.assertOneOf)("=");return function(n,i,s){((0,t.default)("Pattern",n.left)?r:e)(n,i,s)}}()},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,a.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,a.assertNodeType)("LVal")},right:{validate:(0,a.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),o("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,a.assertOneOf)(...s.BINARY_OPERATORS)},left:{validate:function(){const e=(0,a.assertNodeType)("Expression"),t=(0,a.assertNodeType)("Expression","PrivateName");return Object.assign((function(r,n,i){("in"===r.operator?t:e)(r,n,i)}),{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0,a.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),o("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}}}),o("Directive",{visitor:["value"],fields:{value:{validate:(0,a.assertNodeType)("DirectiveLiteral")}}}),o("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}}}),o("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Directive"))),default:[]},body:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block","Statement"]}),o("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,a.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),o("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,a.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Expression","SpreadElement","JSXNamespacedName","ArgumentPlaceholder")))}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,a.assertOneOf)(!0,!1),optional:!0}},{typeArguments:{validate:(0,a.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,a.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),o("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,a.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,a.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),o("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},consequent:{validate:(0,a.assertNodeType)("Expression")},alternate:{validate:(0,a.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),o("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,a.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),o("DebuggerStatement",{aliases:["Statement"]}),o("DoWhileStatement",{visitor:["test","body"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),o("EmptyStatement",{aliases:["Statement"]}),o("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,a.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),o("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,a.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,a.assertEach)((0,a.assertNodeType)("CommentBlock","CommentLine")):Object.assign((()=>{}),{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,a.assertEach)(Object.assign((()=>{}),{type:"any"})),optional:!0}}}),o("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,a.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,a.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}}}),o("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,a.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,a.assertNodeType)("Expression"),optional:!0},update:{validate:(0,a.assertNodeType)("Expression"),optional:!0},body:{validate:(0,a.assertNodeType)("Statement")}}});var l=()=>({params:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Identifier","Pattern","RestElement")))},generator:{default:!1},async:{default:!1}});e.functionCommon=l;var c=()=>({returnType:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,a.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});e.functionTypeAnnotationCommon=c;var u=()=>Object.assign({},l(),{declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},id:{validate:(0,a.assertNodeType)("Identifier"),optional:!0}});e.functionDeclarationCommon=u,o("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","params","body","returnType","typeParameters"],fields:Object.assign({},u(),c(),{body:{validate:(0,a.assertNodeType)("BlockStatement")},predicate:{validate:(0,a.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return()=>{};const e=(0,a.assertNodeType)("Identifier");return function(r,n,i){(0,t.default)("ExportDefaultDeclaration",r)||e(i,"id",i.id)}}()}),o("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},l(),c(),{id:{validate:(0,a.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,a.assertNodeType)("BlockStatement")},predicate:{validate:(0,a.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var p=()=>({typeAnnotation:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,a.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Decorator"))),optional:!0}});e.patternLikeCommon=p,o("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},p(),{name:{validate:(0,a.chain)((0,a.assertValueType)("string"),Object.assign((function(e,t,n){if(process.env.BABEL_TYPES_8_BREAKING&&!(0,r.default)(n,!1))throw new TypeError(`"${n}" is not a valid identifier name`)}),{type:"string"}))}}),validate(e,r,i){if(!process.env.BABEL_TYPES_8_BREAKING)return;const s=/\.(\w+)$/.exec(r);if(!s)return;const[,a]=s,o={computed:!1};if("property"===a){if((0,t.default)("MemberExpression",e,o))return;if((0,t.default)("OptionalMemberExpression",e,o))return}else if("key"===a){if((0,t.default)("Property",e,o))return;if((0,t.default)("Method",e,o))return}else if("exported"===a){if((0,t.default)("ExportSpecifier",e))return}else if("imported"===a){if((0,t.default)("ImportSpecifier",e,{imported:i}))return}else if("meta"===a&&(0,t.default)("MetaProperty",e,{meta:i}))return;if(((0,n.isKeyword)(i.name)||(0,n.isReservedWord)(i.name,!1))&&"this"!==i.name)throw new TypeError(`"${i.name}" is not a valid identifier`)}}),o("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},consequent:{validate:(0,a.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,a.assertNodeType)("Statement")}}}),o("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,a.assertNodeType)("Identifier")},body:{validate:(0,a.assertNodeType)("Statement")}}}),o("StringLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),o("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,a.assertValueType)("number")}},aliases:["Expression","Pureish","Literal","Immutable"]}),o("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),o("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),o("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,a.assertValueType)("string")},flags:{validate:(0,a.chain)((0,a.assertValueType)("string"),Object.assign((function(e,t,r){if(!process.env.BABEL_TYPES_8_BREAKING)return;const n=/[^gimsuy]/.exec(r);if(n)throw new TypeError(`"${n[0]}" is not a valid RegExp flag`)}),{type:"string"})),default:""}}}),o("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,a.assertOneOf)(...s.LOGICAL_OPERATORS)},left:{validate:(0,a.assertNodeType)("Expression")},right:{validate:(0,a.assertNodeType)("Expression")}}}),o("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:(0,a.assertNodeType)("Expression","Super")},property:{validate:function(){const e=(0,a.assertNodeType)("Identifier","PrivateName"),t=(0,a.assertNodeType)("Expression"),r=function(r,n,i){(r.computed?t:e)(r,n,i)};return r.oneOfNodeTypes=["Expression","Identifier","PrivateName"],r}()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,a.assertOneOf)(!0,!1),optional:!0}})}),o("NewExpression",{inherits:"CallExpression"}),o("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceFile:{validate:(0,a.assertValueType)("string")},sourceType:{validate:(0,a.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,a.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Directive"))),default:[]},body:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block"]}),o("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("ObjectMethod","ObjectProperty","SpreadElement")))}}}),o("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],fields:Object.assign({},l(),c(),{kind:Object.assign({validate:(0,a.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){const e=(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,a.assertNodeType)("Expression"),r=function(r,n,i){(r.computed?t:e)(r,n,i)};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],r}()},decorators:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Decorator"))),optional:!0},body:{validate:(0,a.assertNodeType)("BlockStatement")}}),visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),o("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){const e=(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0,a.assertNodeType)("Expression");return Object.assign((function(r,n,i){(r.computed?t:e)(r,n,i)}),{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0,a.assertNodeType)("Expression","PatternLike")},shorthand:{validate:(0,a.chain)((0,a.assertValueType)("boolean"),Object.assign((function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&e.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true")}),{type:"boolean"}),(function(e,r,n){if(process.env.BABEL_TYPES_8_BREAKING&&n&&!(0,t.default)("Identifier",e.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")})),default:!1},decorators:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Decorator"))),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:function(){const e=(0,a.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),r=(0,a.assertNodeType)("Expression");return function(n,i,s){if(!process.env.BABEL_TYPES_8_BREAKING)return;((0,t.default)("ObjectPattern",n)?e:r)(s,"value",s.value)}}()}),o("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},p(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,a.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,a.assertNodeType)("LVal")}}),validate(e,t){if(!process.env.BABEL_TYPES_8_BREAKING)return;const r=/(\w+)\[(\d+)\]/.exec(t);if(!r)throw new Error("Internal Babel error: malformed key.");const[,n,i]=r;if(e[n].length>+i+1)throw new TypeError(`RestElement must be last element of ${n}`)}}),o("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,a.assertNodeType)("Expression"),optional:!0}}}),o("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Expression")))}},aliases:["Expression"]}),o("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,a.assertNodeType)("Expression")}}}),o("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,a.assertNodeType)("Expression"),optional:!0},consequent:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Statement")))}}}),o("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,a.assertNodeType)("Expression")},cases:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("SwitchCase")))}}}),o("ThisExpression",{aliases:["Expression"]}),o("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,a.assertNodeType)("Expression")}}}),o("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:(0,a.chain)((0,a.assertNodeType)("BlockStatement"),Object.assign((function(e){if(process.env.BABEL_TYPES_8_BREAKING&&!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")}),{oneOfNodeTypes:["BlockStatement"]}))},handler:{optional:!0,validate:(0,a.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,a.assertNodeType)("BlockStatement")}}}),o("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,a.assertNodeType)("Expression")},operator:{validate:(0,a.assertOneOf)(...s.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),o("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,a.assertNodeType)("Identifier","MemberExpression"):(0,a.assertNodeType)("Expression")},operator:{validate:(0,a.assertOneOf)(...s.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),o("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},kind:{validate:(0,a.assertOneOf)("var","let","const","using")},declarations:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("VariableDeclarator")))}},validate(e,r,n){if(process.env.BABEL_TYPES_8_BREAKING&&(0,t.default)("ForXStatement",e,{left:n})&&1!==n.declarations.length)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${e.type}`)}}),o("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,a.assertNodeType)("LVal");const e=(0,a.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),t=(0,a.assertNodeType)("Identifier");return function(r,n,i){(r.init?e:t)(r,n,i)}}()},definite:{optional:!0,validate:(0,a.assertValueType)("boolean")},init:{optional:!0,validate:(0,a.assertNodeType)("Expression")}}}),o("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}}}),o("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}}}),o("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},p(),{left:{validate:(0,a.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,a.assertNodeType)("Expression")},decorators:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Decorator"))),optional:!0}})}),o("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},p(),{elements:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeOrValueType)("null","PatternLike","LVal")))}})}),o("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType","typeParameters"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},l(),c(),{expression:{validate:(0,a.assertValueType)("boolean")},body:{validate:(0,a.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,a.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})}),o("ClassBody",{visitor:["body"],fields:{body:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")))}}}),o("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,a.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,a.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,a.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,a.assertNodeType)("Expression")},superTypeParameters:{validate:(0,a.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,a.assertNodeType)("InterfaceExtends"),optional:!0}}}),o("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,a.assertNodeType)("Identifier")},typeParameters:{validate:(0,a.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,a.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,a.assertNodeType)("Expression")},superTypeParameters:{validate:(0,a.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,a.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,a.assertValueType)("boolean"),optional:!0}},validate:function(){const e=(0,a.assertNodeType)("Identifier");return function(r,n,i){process.env.BABEL_TYPES_8_BREAKING&&((0,t.default)("ExportDefaultDeclaration",r)||e(i,"id",i.id))}}()}),o("ExportAllDeclaration",{visitor:["source"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{source:{validate:(0,a.assertNodeType)("StringLiteral")},exportKind:(0,a.validateOptional)((0,a.assertOneOf)("type","value")),assertions:{optional:!0,validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("ImportAttribute")))}}}),o("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0,a.assertNodeType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression")},exportKind:(0,a.validateOptional)((0,a.assertOneOf)("value"))}}),o("ExportNamedDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:(0,a.chain)((0,a.assertNodeType)("Declaration"),Object.assign((function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration")}),{oneOfNodeTypes:["Declaration"]}),(function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&e.source)throw new TypeError("Cannot export a declaration from a source")}))},assertions:{optional:!0,validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("ImportAttribute")))},specifiers:{default:[],validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)(function(){const e=(0,a.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,a.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?function(r,n,i){(r.source?e:t)(r,n,i)}:e}()))},source:{validate:(0,a.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,a.validateOptional)((0,a.assertOneOf)("type","value"))}}),o("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,a.assertNodeType)("Identifier")},exported:{validate:(0,a.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,a.assertOneOf)("type","value"),optional:!0}}}),o("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,a.assertNodeType)("VariableDeclaration","LVal");const e=(0,a.assertNodeType)("VariableDeclaration"),r=(0,a.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return function(n,i,s){(0,t.default)("VariableDeclaration",s)?e(n,i,s):r(n,i,s)}}()},right:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")},await:{default:!1}}}),o("ImportDeclaration",{visitor:["specifiers","source"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:{assertions:{optional:!0,validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("ImportAttribute")))},module:{optional:!0,validate:(0,a.assertValueType)("boolean")},specifiers:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:(0,a.assertNodeType)("StringLiteral")},importKind:{validate:(0,a.assertOneOf)("type","typeof","value"),optional:!0}}}),o("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,a.assertNodeType)("Identifier")}}}),o("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,a.assertNodeType)("Identifier")}}}),o("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,a.assertNodeType)("Identifier")},imported:{validate:(0,a.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,a.assertOneOf)("type","typeof","value"),optional:!0}}}),o("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:(0,a.chain)((0,a.assertNodeType)("Identifier"),Object.assign((function(e,r,n){if(!process.env.BABEL_TYPES_8_BREAKING)return;let i;switch(n.name){case"function":i="sent";break;case"new":i="target";break;case"import":i="meta"}if(!(0,t.default)("Identifier",e.property,{name:i}))throw new TypeError("Unrecognised MetaProperty")}),{oneOfNodeTypes:["Identifier"]}))},property:{validate:(0,a.assertNodeType)("Identifier")}}});var d=()=>({abstract:{validate:(0,a.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,a.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,a.assertValueType)("boolean"),optional:!0},key:{validate:(0,a.chain)(function(){const e=(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),t=(0,a.assertNodeType)("Expression");return function(r,n,i){(r.computed?t:e)(r,n,i)}}(),(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});e.classMethodOrPropertyCommon=d;var h=()=>Object.assign({},l(),d(),{params:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Identifier","Pattern","RestElement","TSParameterProperty")))},kind:{validate:(0,a.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,a.chain)((0,a.assertValueType)("string"),(0,a.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Decorator"))),optional:!0}});e.classMethodOrDeclareMethodCommon=h,o("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["key","params","body","decorators","returnType","typeParameters"],fields:Object.assign({},h(),c(),{body:{validate:(0,a.assertNodeType)("BlockStatement")}})}),o("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},p(),{properties:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("RestElement","ObjectProperty")))}})}),o("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,a.assertNodeType)("Expression")}}}),o("Super",{aliases:["Expression"]}),o("TaggedTemplateExpression",{visitor:["tag","quasi","typeParameters"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,a.assertNodeType)("Expression")},quasi:{validate:(0,a.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,a.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),o("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,a.chain)((0,a.assertShape)({raw:{validate:(0,a.assertValueType)("string")},cooked:{validate:(0,a.assertValueType)("string"),optional:!0}}),(function(e){const t=e.value.raw;let r=!1;const n=()=>{throw new Error("Internal @babel/types error.")},{str:s,firstInvalidLoc:a}=(0,i.readStringContents)("template",t,0,0,0,{unterminated(){r=!0},strictNumericEscape:n,invalidEscapeSequence:n,numericSeparatorInEscapeSequence:n,unexpectedNumericSeparator:n,invalidDigit:n,invalidCodePoint:n});if(!r)throw new Error("Invalid raw");e.value.cooked=a?null:s}))},tail:{default:!1}}}),o("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("TemplateElement")))},expressions:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Expression","TSType")),(function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.\nExpected ${r.length+1} quasis but got ${e.quasis.length}`)}))}}}),o("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0,a.chain)((0,a.assertValueType)("boolean"),Object.assign((function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")}),{type:"boolean"})),default:!1},argument:{optional:!0,validate:(0,a.assertNodeType)("Expression")}}}),o("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,a.assertNodeType)("Expression")}}}),o("Import",{aliases:["Expression"]}),o("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),o("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,a.assertNodeType)("Identifier")}}}),o("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,a.assertNodeType)("Expression")},property:{validate:function(){const e=(0,a.assertNodeType)("Identifier"),t=(0,a.assertNodeType)("Expression");return Object.assign((function(r,n,i){(r.computed?t:e)(r,n,i)}),{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertValueType)("boolean"),(0,a.assertOptionalChainStart)()):(0,a.assertValueType)("boolean")}}}),o("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:(0,a.assertNodeType)("Expression")},arguments:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Expression","SpreadElement","JSXNamespacedName","ArgumentPlaceholder")))},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertValueType)("boolean"),(0,a.assertOptionalChainStart)()):(0,a.assertValueType)("boolean")},typeArguments:{validate:(0,a.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,a.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}}}),o("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},d(),{value:{validate:(0,a.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,a.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,a.assertValueType)("boolean"),optional:!0},declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},variance:{validate:(0,a.assertNodeType)("Variance"),optional:!0}})}),o("ClassAccessorProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},d(),{key:{validate:(0,a.chain)(function(){const e=(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,a.assertNodeType)("Expression");return function(r,n,i){(r.computed?t:e)(r,n,i)}}(),(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,a.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,a.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,a.assertValueType)("boolean"),optional:!0},declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},variance:{validate:(0,a.assertNodeType)("Variance"),optional:!0}})}),o("ClassPrivateProperty",{visitor:["key","value","decorators","typeAnnotation"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,a.assertNodeType)("PrivateName")},value:{validate:(0,a.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Decorator"))),optional:!0},static:{validate:(0,a.assertValueType)("boolean"),default:!1},readonly:{validate:(0,a.assertValueType)("boolean"),optional:!0},definite:{validate:(0,a.assertValueType)("boolean"),optional:!0},variance:{validate:(0,a.assertNodeType)("Variance"),optional:!0}}}),o("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},h(),c(),{kind:{validate:(0,a.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,a.assertNodeType)("PrivateName")},body:{validate:(0,a.assertNodeType)("BlockStatement")}})}),o("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,a.assertNodeType)("Identifier")}}}),o("StaticBlock",{visitor:["body"],fields:{body:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","FunctionParent"]})}}),require_flow=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/definitions/flow.js"(){var e=require_utils3(),t=(0,e.defineAliasedType)("Flow"),r=r=>{const n="DeclareClass"===r;t(r,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...n?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),extends:(0,e.validateOptional)((0,e.arrayOfType)("InterfaceExtends"))},n?{mixins:(0,e.validateOptional)((0,e.arrayOfType)("InterfaceExtends")),implements:(0,e.validateOptional)((0,e.arrayOfType)("ClassImplements"))}:{},{body:(0,e.validateType)("ObjectTypeAnnotation")})})};t("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,e.validateType)("FlowType")}}),t("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterInstantiation")}}),r("DeclareClass"),t("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier"),predicate:(0,e.validateOptionalType)("DeclaredPredicate")}}),r("DeclareInterface"),t("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)(["Identifier","StringLiteral"]),body:(0,e.validateType)("BlockStatement"),kind:(0,e.validateOptional)((0,e.assertOneOf)("CommonJS","ES"))}}),t("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,e.validateType)("TypeAnnotation")}}),t("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),right:(0,e.validateType)("FlowType")}}),t("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,e.validateOptionalType)("FlowType"),impltype:(0,e.validateOptionalType)("FlowType")}}),t("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier")}}),t("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:(0,e.validateOptionalType)("Flow"),specifiers:(0,e.validateOptional)((0,e.arrayOfType)(["ExportSpecifier","ExportNamespaceSpecifier"])),source:(0,e.validateOptionalType)("StringLiteral"),default:(0,e.validateOptional)((0,e.assertValueType)("boolean"))}}),t("DeclareExportAllDeclaration",{visitor:["source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:(0,e.validateType)("StringLiteral"),exportKind:(0,e.validateOptional)((0,e.assertOneOf)("type","value"))}}),t("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,e.validateType)("Flow")}}),t("ExistsTypeAnnotation",{aliases:["FlowType"]}),t("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),params:(0,e.validate)((0,e.arrayOfType)("FunctionTypeParam")),rest:(0,e.validateOptionalType)("FunctionTypeParam"),this:(0,e.validateOptionalType)("FunctionTypeParam"),returnType:(0,e.validateType)("FlowType")}}),t("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,e.validateOptionalType)("Identifier"),typeAnnotation:(0,e.validateType)("FlowType"),optional:(0,e.validateOptional)((0,e.assertValueType)("boolean"))}}),t("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,e.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,e.validateOptionalType)("TypeParameterInstantiation")}}),t("InferredPredicate",{aliases:["FlowPredicate"]}),t("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,e.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,e.validateOptionalType)("TypeParameterInstantiation")}}),r("InterfaceDeclaration"),t("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,e.validateOptional)((0,e.arrayOfType)("InterfaceExtends")),body:(0,e.validateType)("ObjectTypeAnnotation")}}),t("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,e.validate)((0,e.arrayOfType)("FlowType"))}}),t("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,e.validateType)("FlowType")}}),t("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,e.validate)((0,e.assertValueType)("number"))}}),t("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,e.validate)((0,e.arrayOfType)(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:{validate:(0,e.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,e.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,e.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,e.assertValueType)("boolean"),default:!1},inexact:(0,e.validateOptional)((0,e.assertValueType)("boolean"))}}),t("ObjectTypeInternalSlot",{visitor:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,e.validateType)("Identifier"),value:(0,e.validateType)("FlowType"),optional:(0,e.validate)((0,e.assertValueType)("boolean")),static:(0,e.validate)((0,e.assertValueType)("boolean")),method:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,e.validateType)("FlowType"),static:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("ObjectTypeIndexer",{visitor:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,e.validateOptionalType)("Identifier"),key:(0,e.validateType)("FlowType"),value:(0,e.validateType)("FlowType"),static:(0,e.validate)((0,e.assertValueType)("boolean")),variance:(0,e.validateOptionalType)("Variance")}}),t("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,e.validateType)(["Identifier","StringLiteral"]),value:(0,e.validateType)("FlowType"),kind:(0,e.validate)((0,e.assertOneOf)("init","get","set")),static:(0,e.validate)((0,e.assertValueType)("boolean")),proto:(0,e.validate)((0,e.assertValueType)("boolean")),optional:(0,e.validate)((0,e.assertValueType)("boolean")),variance:(0,e.validateOptionalType)("Variance"),method:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,e.validateType)("FlowType")}}),t("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,e.validateOptionalType)("FlowType"),impltype:(0,e.validateType)("FlowType")}}),t("QualifiedTypeIdentifier",{visitor:["id","qualification"],fields:{id:(0,e.validateType)("Identifier"),qualification:(0,e.validateType)(["Identifier","QualifiedTypeIdentifier"])}}),t("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,e.validate)((0,e.assertValueType)("string"))}}),t("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,e.validate)((0,e.arrayOfType)("FlowType"))}}),t("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,e.validateType)("FlowType")}}),t("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),right:(0,e.validateType)("FlowType")}}),t("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("FlowType")}}),t("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,e.validateType)("Expression"),typeAnnotation:(0,e.validateType)("TypeAnnotation")}}),t("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,e.validate)((0,e.assertValueType)("string")),bound:(0,e.validateOptionalType)("TypeAnnotation"),default:(0,e.validateOptionalType)("FlowType"),variance:(0,e.validateOptionalType)("Variance")}}),t("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,e.validate)((0,e.arrayOfType)("TypeParameter"))}}),t("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,e.validate)((0,e.arrayOfType)("FlowType"))}}),t("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,e.validate)((0,e.arrayOfType)("FlowType"))}}),t("Variance",{builder:["kind"],fields:{kind:(0,e.validate)((0,e.assertOneOf)("minus","plus"))}}),t("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,e.validateType)("Identifier"),body:(0,e.validateType)(["EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody"])}}),t("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,e.validate)((0,e.assertValueType)("boolean")),members:(0,e.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,e.validate)((0,e.assertValueType)("boolean")),members:(0,e.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,e.validate)((0,e.assertValueType)("boolean")),members:(0,e.validateArrayOfType)(["EnumStringMember","EnumDefaultedMember"]),hasUnknownMembers:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,e.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,e.validateType)("Identifier"),init:(0,e.validateType)("BooleanLiteral")}}),t("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,e.validateType)("Identifier"),init:(0,e.validateType)("NumericLiteral")}}),t("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,e.validateType)("Identifier"),init:(0,e.validateType)("StringLiteral")}}),t("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,e.validateType)("Identifier")}}),t("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,e.validateType)("FlowType"),indexType:(0,e.validateType)("FlowType")}}),t("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,e.validateType)("FlowType"),indexType:(0,e.validateType)("FlowType"),optional:(0,e.validate)((0,e.assertValueType)("boolean"))}})}}),require_jsx=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/definitions/jsx.js"(){var e=require_utils3(),t=(0,e.defineAliasedType)("JSX");t("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,e.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,e.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),t("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,e.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),t("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,e.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,e.assertNodeType)("JSXClosingElement")},children:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}},{selfClosing:{validate:(0,e.assertValueType)("boolean"),optional:!0}})}),t("JSXEmptyExpression",{}),t("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,e.assertNodeType)("Expression","JSXEmptyExpression")}}}),t("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,e.assertNodeType)("Expression")}}}),t("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,e.assertValueType)("string")}}}),t("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,e.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,e.assertNodeType)("JSXIdentifier")}}}),t("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,e.assertNodeType)("JSXIdentifier")},name:{validate:(0,e.assertNodeType)("JSXIdentifier")}}}),t("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:(0,e.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("JSXAttribute","JSXSpreadAttribute")))},typeParameters:{validate:(0,e.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),t("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,e.assertNodeType)("Expression")}}}),t("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,e.assertValueType)("string")}}}),t("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,e.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,e.assertNodeType)("JSXClosingFragment")},children:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}}),t("JSXOpeningFragment",{aliases:["Immutable"]}),t("JSXClosingFragment",{aliases:["Immutable"]})}}),require_placeholders=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/definitions/placeholders.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PLACEHOLDERS_FLIPPED_ALIAS=e.PLACEHOLDERS_ALIAS=e.PLACEHOLDERS=void 0;var t=require_utils3(),r=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"];e.PLACEHOLDERS=r;var n={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};e.PLACEHOLDERS_ALIAS=n;for(const e of r){const r=t.ALIAS_KEYS[e];null!=r&&r.length&&(n[e]=r)}var i={};e.PLACEHOLDERS_FLIPPED_ALIAS=i,Object.keys(n).forEach((e=>{n[e].forEach((t=>{Object.hasOwnProperty.call(i,t)||(i[t]=[]),i[t].push(e)}))}))}}),require_misc=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/definitions/misc.js"(){var e=require_utils3(),t=require_placeholders(),r=(0,e.defineAliasedType)("Miscellaneous");r("Noop",{visitor:[]}),r("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:(0,e.assertNodeType)("Identifier")},expectedNode:{validate:(0,e.assertOneOf)(...t.PLACEHOLDERS)}}}),r("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,e.assertValueType)("string")}}})}}),require_experimental=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/definitions/experimental.js"(){var e=require_utils3();(0,e.default)("ArgumentPlaceholder",{}),(0,e.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,e.assertNodeType)("Expression")},callee:{validate:(0,e.assertNodeType)("Expression")}}:{object:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})}}}),(0,e.default)("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,e.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,e.assertNodeType)("StringLiteral")}}}),(0,e.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,e.assertNodeType)("Expression")}}}),(0,e.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,e.assertNodeType)("BlockStatement")},async:{validate:(0,e.assertValueType)("boolean"),default:!1}}}),(0,e.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,e.assertNodeType)("Identifier")}}}),(0,e.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("ObjectProperty","SpreadElement")))}}}),(0,e.default)("TupleExpression",{fields:{elements:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,e.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,e.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,e.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,e.assertNodeType)("Program")}},aliases:["Expression"]}),(0,e.default)("TopicReference",{aliases:["Expression"]}),(0,e.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,e.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,e.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,e.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,e.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]})}}),require_typescript=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/definitions/typescript.js"(){var e=require_utils3(),t=require_core(),r=require_is(),n=(0,e.defineAliasedType)("TypeScript"),i=(0,e.assertValueType)("boolean"),s=()=>({returnType:{validate:(0,e.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,e.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});n("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,e.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,e.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,e.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,e.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("Decorator"))),optional:!0}}}),n("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,t.functionDeclarationCommon)(),s())}),n("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0,t.classMethodOrDeclareMethodCommon)(),s())}),n("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,e.validateType)("TSEntityName"),right:(0,e.validateType)("Identifier")}});var a=()=>({typeParameters:(0,e.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,e.validateArrayOfType)(["Identifier","RestElement"]),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation")}),o={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:a()};n("TSCallSignatureDeclaration",o),n("TSConstructSignatureDeclaration",o);var l=()=>({key:(0,e.validateType)("Expression"),computed:{default:!1},optional:(0,e.validateOptional)(i)});n("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation","initializer"],fields:Object.assign({},l(),{readonly:(0,e.validateOptional)(i),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation"),initializer:(0,e.validateOptionalType)("Expression"),kind:{validate:(0,e.assertOneOf)("get","set")}})}),n("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},a(),l(),{kind:{validate:(0,e.assertOneOf)("method","get","set")}})}),n("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,e.validateOptional)(i),static:(0,e.validateOptional)(i),parameters:(0,e.validateArrayOfType)("Identifier"),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation")}});for(const e of["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"])n(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});n("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var c={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};n("TSFunctionType",Object.assign({},c,{fields:a()})),n("TSConstructorType",Object.assign({},c,{fields:Object.assign({},a(),{abstract:(0,e.validateOptional)(i)})})),n("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,e.validateType)("TSEntityName"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}}),n("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,e.validateType)(["Identifier","TSThisType"]),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation"),asserts:(0,e.validateOptional)(i)}}),n("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,e.validateType)(["TSEntityName","TSImportType"]),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}}),n("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,e.validateArrayOfType)("TSTypeElement")}}),n("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,e.validateType)("TSType")}}),n("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,e.validateArrayOfType)(["TSType","TSNamedTupleMember"])}}),n("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("TSType")}}),n("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("TSType")}}),n("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,e.validateType)("Identifier"),optional:{validate:i,default:!1},elementType:(0,e.validateType)("TSType")}});var u={aliases:["TSType"],visitor:["types"],fields:{types:(0,e.validateArrayOfType)("TSType")}};n("TSUnionType",u),n("TSIntersectionType",u),n("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,e.validateType)("TSType"),extendsType:(0,e.validateType)("TSType"),trueType:(0,e.validateType)("TSType"),falseType:(0,e.validateType)("TSType")}}),n("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,e.validateType)("TSTypeParameter")}}),n("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("TSType")}}),n("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0,e.validate)((0,e.assertValueType)("string")),typeAnnotation:(0,e.validateType)("TSType")}}),n("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,e.validateType)("TSType"),indexType:(0,e.validateType)("TSType")}}),n("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","typeAnnotation","nameType"],fields:{readonly:(0,e.validateOptional)((0,e.assertOneOf)(!0,!1,"+","-")),typeParameter:(0,e.validateType)("TSTypeParameter"),optional:(0,e.validateOptional)((0,e.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,e.validateOptionalType)("TSType"),nameType:(0,e.validateOptionalType)("TSType")}}),n("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){const t=(0,e.assertNodeType)("NumericLiteral","BigIntLiteral"),n=(0,e.assertOneOf)("-"),i=(0,e.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function s(e,s,a){(0,r.default)("UnaryExpression",a)?(n(a,"operator",a.operator),t(a,"argument",a.argument)):i(e,s,a)}return s.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],s}()}}}),n("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,e.validateType)("TSEntityName"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}}),n("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,e.validateOptional)(i),id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,e.validateOptional)((0,e.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,e.validateType)("TSInterfaceBody")}}),n("TSInterfaceBody",{visitor:["body"],fields:{body:(0,e.validateArrayOfType)("TSTypeElement")}}),n("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,e.validateOptional)(i),id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,e.validateType)("TSType")}}),n("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,e.validateType)("Expression"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}});var p={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,e.validateType)("Expression"),typeAnnotation:(0,e.validateType)("TSType")}};n("TSAsExpression",p),n("TSSatisfiesExpression",p),n("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,e.validateType)("TSType"),expression:(0,e.validateType)("Expression")}}),n("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,e.validateOptional)(i),const:(0,e.validateOptional)(i),id:(0,e.validateType)("Identifier"),members:(0,e.validateArrayOfType)("TSEnumMember"),initializer:(0,e.validateOptionalType)("Expression")}}),n("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,e.validateType)(["Identifier","StringLiteral"]),initializer:(0,e.validateOptionalType)("Expression")}}),n("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:(0,e.validateOptional)(i),global:(0,e.validateOptional)(i),id:(0,e.validateType)(["Identifier","StringLiteral"]),body:(0,e.validateType)(["TSModuleBlock","TSModuleDeclaration"])}}),n("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,e.validateArrayOfType)("Statement")}}),n("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:(0,e.validateType)("StringLiteral"),qualifier:(0,e.validateOptionalType)("TSEntityName"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}}),n("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:(0,e.validate)(i),id:(0,e.validateType)("Identifier"),moduleReference:(0,e.validateType)(["TSEntityName","TSExternalModuleReference"]),importKind:{validate:(0,e.assertOneOf)("type","value"),optional:!0}}}),n("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,e.validateType)("StringLiteral")}}),n("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,e.validateType)("Expression")}}),n("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,e.validateType)("Expression")}}),n("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,e.validateType)("Identifier")}}),n("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,e.assertNodeType)("TSType")}}}),n("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("TSType")))}}}),n("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("TSTypeParameter")))}}}),n("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,e.assertValueType)("string")},in:{validate:(0,e.assertValueType)("boolean"),optional:!0},out:{validate:(0,e.assertValueType)("boolean"),optional:!0},const:{validate:(0,e.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,e.assertNodeType)("TSType"),optional:!0},default:{validate:(0,e.assertNodeType)("TSType"),optional:!0}}})}}),require_deprecated_aliases=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/definitions/deprecated-aliases.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DEPRECATED_ALIASES=void 0;e.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}}}),require_definitions=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/definitions/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALIAS_KEYS",{enumerable:!0,get:function(){return r.ALIAS_KEYS}}),Object.defineProperty(e,"BUILDER_KEYS",{enumerable:!0,get:function(){return r.BUILDER_KEYS}}),Object.defineProperty(e,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return i.DEPRECATED_ALIASES}}),Object.defineProperty(e,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return r.DEPRECATED_KEYS}}),Object.defineProperty(e,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return r.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(e,"NODE_FIELDS",{enumerable:!0,get:function(){return r.NODE_FIELDS}}),Object.defineProperty(e,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return r.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(e,"PLACEHOLDERS",{enumerable:!0,get:function(){return n.PLACEHOLDERS}}),Object.defineProperty(e,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return n.PLACEHOLDERS_ALIAS}}),Object.defineProperty(e,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return n.PLACEHOLDERS_FLIPPED_ALIAS}}),e.TYPES=void 0,Object.defineProperty(e,"VISITOR_KEYS",{enumerable:!0,get:function(){return r.VISITOR_KEYS}});var t=require_to_fast_properties();require_core(),require_flow(),require_jsx(),require_misc(),require_experimental(),require_typescript();var r=require_utils3(),n=require_placeholders(),i=require_deprecated_aliases();Object.keys(i.DEPRECATED_ALIASES).forEach((e=>{r.FLIPPED_ALIAS_KEYS[e]=r.FLIPPED_ALIAS_KEYS[i.DEPRECATED_ALIASES[e]]})),t(r.VISITOR_KEYS),t(r.ALIAS_KEYS),t(r.FLIPPED_ALIAS_KEYS),t(r.NODE_FIELDS),t(r.BUILDER_KEYS),t(r.DEPRECATED_KEYS),t(n.PLACEHOLDERS_ALIAS),t(n.PLACEHOLDERS_FLIPPED_ALIAS);var s=[].concat(Object.keys(r.VISITOR_KEYS),Object.keys(r.FLIPPED_ALIAS_KEYS),Object.keys(r.DEPRECATED_KEYS));e.TYPES=s}}),require_validate=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/validators/validate.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,i,s){if(!e)return;const a=t.NODE_FIELDS[e.type];if(!a)return;const o=a[i];r(e,i,s,o),n(e,i,s)},e.validateChild=n,e.validateField=r;var t=require_definitions();function r(e,t,r,n){null!=n&&n.validate&&(n.optional&&null==r||n.validate(e,t,r))}function n(e,r,n){if(null==n)return;const i=t.NODE_PARENT_VALIDATIONS[n.type];i&&i(e,r,n)}}}),require_validateNode=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/builders/validateNode.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){const n=r.BUILDER_KEYS[e.type];for(const r of n)(0,t.default)(e,r,e[r]);return e};var t=require_validate(),r=require_lib5()}}),require_generated2=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/builders/generated/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.anyTypeAnnotation=function(){return{type:"AnyTypeAnnotation"}},e.argumentPlaceholder=function(){return{type:"ArgumentPlaceholder"}},e.arrayExpression=function(e=[]){return(0,t.default)({type:"ArrayExpression",elements:e})},e.arrayPattern=function(e){return(0,t.default)({type:"ArrayPattern",elements:e})},e.arrayTypeAnnotation=function(e){return(0,t.default)({type:"ArrayTypeAnnotation",elementType:e})},e.arrowFunctionExpression=function(e,r,n=!1){return(0,t.default)({type:"ArrowFunctionExpression",params:e,body:r,async:n,expression:null})},e.assignmentExpression=function(e,r,n){return(0,t.default)({type:"AssignmentExpression",operator:e,left:r,right:n})},e.assignmentPattern=function(e,r){return(0,t.default)({type:"AssignmentPattern",left:e,right:r})},e.awaitExpression=function(e){return(0,t.default)({type:"AwaitExpression",argument:e})},e.bigIntLiteral=function(e){return(0,t.default)({type:"BigIntLiteral",value:e})},e.binaryExpression=function(e,r,n){return(0,t.default)({type:"BinaryExpression",operator:e,left:r,right:n})},e.bindExpression=function(e,r){return(0,t.default)({type:"BindExpression",object:e,callee:r})},e.blockStatement=function(e,r=[]){return(0,t.default)({type:"BlockStatement",body:e,directives:r})},e.booleanLiteral=function(e){return(0,t.default)({type:"BooleanLiteral",value:e})},e.booleanLiteralTypeAnnotation=function(e){return(0,t.default)({type:"BooleanLiteralTypeAnnotation",value:e})},e.booleanTypeAnnotation=function(){return{type:"BooleanTypeAnnotation"}},e.breakStatement=function(e=null){return(0,t.default)({type:"BreakStatement",label:e})},e.callExpression=function(e,r){return(0,t.default)({type:"CallExpression",callee:e,arguments:r})},e.catchClause=function(e=null,r){return(0,t.default)({type:"CatchClause",param:e,body:r})},e.classAccessorProperty=function(e,r=null,n=null,i=null,s=!1,a=!1){return(0,t.default)({type:"ClassAccessorProperty",key:e,value:r,typeAnnotation:n,decorators:i,computed:s,static:a})},e.classBody=function(e){return(0,t.default)({type:"ClassBody",body:e})},e.classDeclaration=function(e,r=null,n,i=null){return(0,t.default)({type:"ClassDeclaration",id:e,superClass:r,body:n,decorators:i})},e.classExpression=function(e=null,r=null,n,i=null){return(0,t.default)({type:"ClassExpression",id:e,superClass:r,body:n,decorators:i})},e.classImplements=function(e,r=null){return(0,t.default)({type:"ClassImplements",id:e,typeParameters:r})},e.classMethod=function(e="method",r,n,i,s=!1,a=!1,o=!1,l=!1){return(0,t.default)({type:"ClassMethod",kind:e,key:r,params:n,body:i,computed:s,static:a,generator:o,async:l})},e.classPrivateMethod=function(e="method",r,n,i,s=!1){return(0,t.default)({type:"ClassPrivateMethod",kind:e,key:r,params:n,body:i,static:s})},e.classPrivateProperty=function(e,r=null,n=null,i=!1){return(0,t.default)({type:"ClassPrivateProperty",key:e,value:r,decorators:n,static:i})},e.classProperty=function(e,r=null,n=null,i=null,s=!1,a=!1){return(0,t.default)({type:"ClassProperty",key:e,value:r,typeAnnotation:n,decorators:i,computed:s,static:a})},e.conditionalExpression=function(e,r,n){return(0,t.default)({type:"ConditionalExpression",test:e,consequent:r,alternate:n})},e.continueStatement=function(e=null){return(0,t.default)({type:"ContinueStatement",label:e})},e.debuggerStatement=function(){return{type:"DebuggerStatement"}},e.decimalLiteral=function(e){return(0,t.default)({type:"DecimalLiteral",value:e})},e.declareClass=function(e,r=null,n=null,i){return(0,t.default)({type:"DeclareClass",id:e,typeParameters:r,extends:n,body:i})},e.declareExportAllDeclaration=function(e){return(0,t.default)({type:"DeclareExportAllDeclaration",source:e})},e.declareExportDeclaration=function(e=null,r=null,n=null){return(0,t.default)({type:"DeclareExportDeclaration",declaration:e,specifiers:r,source:n})},e.declareFunction=function(e){return(0,t.default)({type:"DeclareFunction",id:e})},e.declareInterface=function(e,r=null,n=null,i){return(0,t.default)({type:"DeclareInterface",id:e,typeParameters:r,extends:n,body:i})},e.declareModule=function(e,r,n=null){return(0,t.default)({type:"DeclareModule",id:e,body:r,kind:n})},e.declareModuleExports=function(e){return(0,t.default)({type:"DeclareModuleExports",typeAnnotation:e})},e.declareOpaqueType=function(e,r=null,n=null){return(0,t.default)({type:"DeclareOpaqueType",id:e,typeParameters:r,supertype:n})},e.declareTypeAlias=function(e,r=null,n){return(0,t.default)({type:"DeclareTypeAlias",id:e,typeParameters:r,right:n})},e.declareVariable=function(e){return(0,t.default)({type:"DeclareVariable",id:e})},e.declaredPredicate=function(e){return(0,t.default)({type:"DeclaredPredicate",value:e})},e.decorator=function(e){return(0,t.default)({type:"Decorator",expression:e})},e.directive=function(e){return(0,t.default)({type:"Directive",value:e})},e.directiveLiteral=function(e){return(0,t.default)({type:"DirectiveLiteral",value:e})},e.doExpression=function(e,r=!1){return(0,t.default)({type:"DoExpression",body:e,async:r})},e.doWhileStatement=function(e,r){return(0,t.default)({type:"DoWhileStatement",test:e,body:r})},e.emptyStatement=function(){return{type:"EmptyStatement"}},e.emptyTypeAnnotation=function(){return{type:"EmptyTypeAnnotation"}},e.enumBooleanBody=function(e){return(0,t.default)({type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null})},e.enumBooleanMember=function(e){return(0,t.default)({type:"EnumBooleanMember",id:e,init:null})},e.enumDeclaration=function(e,r){return(0,t.default)({type:"EnumDeclaration",id:e,body:r})},e.enumDefaultedMember=function(e){return(0,t.default)({type:"EnumDefaultedMember",id:e})},e.enumNumberBody=function(e){return(0,t.default)({type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null})},e.enumNumberMember=function(e,r){return(0,t.default)({type:"EnumNumberMember",id:e,init:r})},e.enumStringBody=function(e){return(0,t.default)({type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null})},e.enumStringMember=function(e,r){return(0,t.default)({type:"EnumStringMember",id:e,init:r})},e.enumSymbolBody=function(e){return(0,t.default)({type:"EnumSymbolBody",members:e,hasUnknownMembers:null})},e.existsTypeAnnotation=function(){return{type:"ExistsTypeAnnotation"}},e.exportAllDeclaration=function(e){return(0,t.default)({type:"ExportAllDeclaration",source:e})},e.exportDefaultDeclaration=function(e){return(0,t.default)({type:"ExportDefaultDeclaration",declaration:e})},e.exportDefaultSpecifier=function(e){return(0,t.default)({type:"ExportDefaultSpecifier",exported:e})},e.exportNamedDeclaration=function(e=null,r=[],n=null){return(0,t.default)({type:"ExportNamedDeclaration",declaration:e,specifiers:r,source:n})},e.exportNamespaceSpecifier=function(e){return(0,t.default)({type:"ExportNamespaceSpecifier",exported:e})},e.exportSpecifier=function(e,r){return(0,t.default)({type:"ExportSpecifier",local:e,exported:r})},e.expressionStatement=function(e){return(0,t.default)({type:"ExpressionStatement",expression:e})},e.file=function(e,r=null,n=null){return(0,t.default)({type:"File",program:e,comments:r,tokens:n})},e.forInStatement=function(e,r,n){return(0,t.default)({type:"ForInStatement",left:e,right:r,body:n})},e.forOfStatement=function(e,r,n,i=!1){return(0,t.default)({type:"ForOfStatement",left:e,right:r,body:n,await:i})},e.forStatement=function(e=null,r=null,n=null,i){return(0,t.default)({type:"ForStatement",init:e,test:r,update:n,body:i})},e.functionDeclaration=function(e=null,r,n,i=!1,s=!1){return(0,t.default)({type:"FunctionDeclaration",id:e,params:r,body:n,generator:i,async:s})},e.functionExpression=function(e=null,r,n,i=!1,s=!1){return(0,t.default)({type:"FunctionExpression",id:e,params:r,body:n,generator:i,async:s})},e.functionTypeAnnotation=function(e=null,r,n=null,i){return(0,t.default)({type:"FunctionTypeAnnotation",typeParameters:e,params:r,rest:n,returnType:i})},e.functionTypeParam=function(e=null,r){return(0,t.default)({type:"FunctionTypeParam",name:e,typeAnnotation:r})},e.genericTypeAnnotation=function(e,r=null){return(0,t.default)({type:"GenericTypeAnnotation",id:e,typeParameters:r})},e.identifier=function(e){return(0,t.default)({type:"Identifier",name:e})},e.ifStatement=function(e,r,n=null){return(0,t.default)({type:"IfStatement",test:e,consequent:r,alternate:n})},e.import=function(){return{type:"Import"}},e.importAttribute=function(e,r){return(0,t.default)({type:"ImportAttribute",key:e,value:r})},e.importDeclaration=function(e,r){return(0,t.default)({type:"ImportDeclaration",specifiers:e,source:r})},e.importDefaultSpecifier=function(e){return(0,t.default)({type:"ImportDefaultSpecifier",local:e})},e.importNamespaceSpecifier=function(e){return(0,t.default)({type:"ImportNamespaceSpecifier",local:e})},e.importSpecifier=function(e,r){return(0,t.default)({type:"ImportSpecifier",local:e,imported:r})},e.indexedAccessType=function(e,r){return(0,t.default)({type:"IndexedAccessType",objectType:e,indexType:r})},e.inferredPredicate=function(){return{type:"InferredPredicate"}},e.interfaceDeclaration=function(e,r=null,n=null,i){return(0,t.default)({type:"InterfaceDeclaration",id:e,typeParameters:r,extends:n,body:i})},e.interfaceExtends=function(e,r=null){return(0,t.default)({type:"InterfaceExtends",id:e,typeParameters:r})},e.interfaceTypeAnnotation=function(e=null,r){return(0,t.default)({type:"InterfaceTypeAnnotation",extends:e,body:r})},e.interpreterDirective=function(e){return(0,t.default)({type:"InterpreterDirective",value:e})},e.intersectionTypeAnnotation=function(e){return(0,t.default)({type:"IntersectionTypeAnnotation",types:e})},e.jSXAttribute=e.jsxAttribute=function(e,r=null){return(0,t.default)({type:"JSXAttribute",name:e,value:r})},e.jSXClosingElement=e.jsxClosingElement=function(e){return(0,t.default)({type:"JSXClosingElement",name:e})},e.jSXClosingFragment=e.jsxClosingFragment=function(){return{type:"JSXClosingFragment"}},e.jSXElement=e.jsxElement=function(e,r=null,n,i=null){return(0,t.default)({type:"JSXElement",openingElement:e,closingElement:r,children:n,selfClosing:i})},e.jSXEmptyExpression=e.jsxEmptyExpression=function(){return{type:"JSXEmptyExpression"}},e.jSXExpressionContainer=e.jsxExpressionContainer=function(e){return(0,t.default)({type:"JSXExpressionContainer",expression:e})},e.jSXFragment=e.jsxFragment=function(e,r,n){return(0,t.default)({type:"JSXFragment",openingFragment:e,closingFragment:r,children:n})},e.jSXIdentifier=e.jsxIdentifier=function(e){return(0,t.default)({type:"JSXIdentifier",name:e})},e.jSXMemberExpression=e.jsxMemberExpression=function(e,r){return(0,t.default)({type:"JSXMemberExpression",object:e,property:r})},e.jSXNamespacedName=e.jsxNamespacedName=function(e,r){return(0,t.default)({type:"JSXNamespacedName",namespace:e,name:r})},e.jSXOpeningElement=e.jsxOpeningElement=function(e,r,n=!1){return(0,t.default)({type:"JSXOpeningElement",name:e,attributes:r,selfClosing:n})},e.jSXOpeningFragment=e.jsxOpeningFragment=function(){return{type:"JSXOpeningFragment"}},e.jSXSpreadAttribute=e.jsxSpreadAttribute=function(e){return(0,t.default)({type:"JSXSpreadAttribute",argument:e})},e.jSXSpreadChild=e.jsxSpreadChild=function(e){return(0,t.default)({type:"JSXSpreadChild",expression:e})},e.jSXText=e.jsxText=function(e){return(0,t.default)({type:"JSXText",value:e})},e.labeledStatement=function(e,r){return(0,t.default)({type:"LabeledStatement",label:e,body:r})},e.logicalExpression=function(e,r,n){return(0,t.default)({type:"LogicalExpression",operator:e,left:r,right:n})},e.memberExpression=function(e,r,n=!1,i=null){return(0,t.default)({type:"MemberExpression",object:e,property:r,computed:n,optional:i})},e.metaProperty=function(e,r){return(0,t.default)({type:"MetaProperty",meta:e,property:r})},e.mixedTypeAnnotation=function(){return{type:"MixedTypeAnnotation"}},e.moduleExpression=function(e){return(0,t.default)({type:"ModuleExpression",body:e})},e.newExpression=function(e,r){return(0,t.default)({type:"NewExpression",callee:e,arguments:r})},e.noop=function(){return{type:"Noop"}},e.nullLiteral=function(){return{type:"NullLiteral"}},e.nullLiteralTypeAnnotation=function(){return{type:"NullLiteralTypeAnnotation"}},e.nullableTypeAnnotation=function(e){return(0,t.default)({type:"NullableTypeAnnotation",typeAnnotation:e})},e.numberLiteral=function(e){return(0,r.default)("NumberLiteral","NumericLiteral","The node type "),n(e)},e.numberLiteralTypeAnnotation=function(e){return(0,t.default)({type:"NumberLiteralTypeAnnotation",value:e})},e.numberTypeAnnotation=function(){return{type:"NumberTypeAnnotation"}},e.numericLiteral=n,e.objectExpression=function(e){return(0,t.default)({type:"ObjectExpression",properties:e})},e.objectMethod=function(e="method",r,n,i,s=!1,a=!1,o=!1){return(0,t.default)({type:"ObjectMethod",kind:e,key:r,params:n,body:i,computed:s,generator:a,async:o})},e.objectPattern=function(e){return(0,t.default)({type:"ObjectPattern",properties:e})},e.objectProperty=function(e,r,n=!1,i=!1,s=null){return(0,t.default)({type:"ObjectProperty",key:e,value:r,computed:n,shorthand:i,decorators:s})},e.objectTypeAnnotation=function(e,r=[],n=[],i=[],s=!1){return(0,t.default)({type:"ObjectTypeAnnotation",properties:e,indexers:r,callProperties:n,internalSlots:i,exact:s})},e.objectTypeCallProperty=function(e){return(0,t.default)({type:"ObjectTypeCallProperty",value:e,static:null})},e.objectTypeIndexer=function(e=null,r,n,i=null){return(0,t.default)({type:"ObjectTypeIndexer",id:e,key:r,value:n,variance:i,static:null})},e.objectTypeInternalSlot=function(e,r,n,i,s){return(0,t.default)({type:"ObjectTypeInternalSlot",id:e,value:r,optional:n,static:i,method:s})},e.objectTypeProperty=function(e,r,n=null){return(0,t.default)({type:"ObjectTypeProperty",key:e,value:r,variance:n,kind:null,method:null,optional:null,proto:null,static:null})},e.objectTypeSpreadProperty=function(e){return(0,t.default)({type:"ObjectTypeSpreadProperty",argument:e})},e.opaqueType=function(e,r=null,n=null,i){return(0,t.default)({type:"OpaqueType",id:e,typeParameters:r,supertype:n,impltype:i})},e.optionalCallExpression=function(e,r,n){return(0,t.default)({type:"OptionalCallExpression",callee:e,arguments:r,optional:n})},e.optionalIndexedAccessType=function(e,r){return(0,t.default)({type:"OptionalIndexedAccessType",objectType:e,indexType:r,optional:null})},e.optionalMemberExpression=function(e,r,n=!1,i){return(0,t.default)({type:"OptionalMemberExpression",object:e,property:r,computed:n,optional:i})},e.parenthesizedExpression=function(e){return(0,t.default)({type:"ParenthesizedExpression",expression:e})},e.pipelineBareFunction=function(e){return(0,t.default)({type:"PipelineBareFunction",callee:e})},e.pipelinePrimaryTopicReference=function(){return{type:"PipelinePrimaryTopicReference"}},e.pipelineTopicExpression=function(e){return(0,t.default)({type:"PipelineTopicExpression",expression:e})},e.placeholder=function(e,r){return(0,t.default)({type:"Placeholder",expectedNode:e,name:r})},e.privateName=function(e){return(0,t.default)({type:"PrivateName",id:e})},e.program=function(e,r=[],n="script",i=null){return(0,t.default)({type:"Program",body:e,directives:r,sourceType:n,interpreter:i,sourceFile:null})},e.qualifiedTypeIdentifier=function(e,r){return(0,t.default)({type:"QualifiedTypeIdentifier",id:e,qualification:r})},e.recordExpression=function(e){return(0,t.default)({type:"RecordExpression",properties:e})},e.regExpLiteral=i,e.regexLiteral=function(e,t=""){return(0,r.default)("RegexLiteral","RegExpLiteral","The node type "),i(e,t)},e.restElement=s,e.restProperty=function(e){return(0,r.default)("RestProperty","RestElement","The node type "),s(e)},e.returnStatement=function(e=null){return(0,t.default)({type:"ReturnStatement",argument:e})},e.sequenceExpression=function(e){return(0,t.default)({type:"SequenceExpression",expressions:e})},e.spreadElement=a,e.spreadProperty=function(e){return(0,r.default)("SpreadProperty","SpreadElement","The node type "),a(e)},e.staticBlock=function(e){return(0,t.default)({type:"StaticBlock",body:e})},e.stringLiteral=function(e){return(0,t.default)({type:"StringLiteral",value:e})},e.stringLiteralTypeAnnotation=function(e){return(0,t.default)({type:"StringLiteralTypeAnnotation",value:e})},e.stringTypeAnnotation=function(){return{type:"StringTypeAnnotation"}},e.super=function(){return{type:"Super"}},e.switchCase=function(e=null,r){return(0,t.default)({type:"SwitchCase",test:e,consequent:r})},e.switchStatement=function(e,r){return(0,t.default)({type:"SwitchStatement",discriminant:e,cases:r})},e.symbolTypeAnnotation=function(){return{type:"SymbolTypeAnnotation"}},e.taggedTemplateExpression=function(e,r){return(0,t.default)({type:"TaggedTemplateExpression",tag:e,quasi:r})},e.templateElement=function(e,r=!1){return(0,t.default)({type:"TemplateElement",value:e,tail:r})},e.templateLiteral=function(e,r){return(0,t.default)({type:"TemplateLiteral",quasis:e,expressions:r})},e.thisExpression=function(){return{type:"ThisExpression"}},e.thisTypeAnnotation=function(){return{type:"ThisTypeAnnotation"}},e.throwStatement=function(e){return(0,t.default)({type:"ThrowStatement",argument:e})},e.topicReference=function(){return{type:"TopicReference"}},e.tryStatement=function(e,r=null,n=null){return(0,t.default)({type:"TryStatement",block:e,handler:r,finalizer:n})},e.tSAnyKeyword=e.tsAnyKeyword=function(){return{type:"TSAnyKeyword"}},e.tSArrayType=e.tsArrayType=function(e){return(0,t.default)({type:"TSArrayType",elementType:e})},e.tSAsExpression=e.tsAsExpression=function(e,r){return(0,t.default)({type:"TSAsExpression",expression:e,typeAnnotation:r})},e.tSBigIntKeyword=e.tsBigIntKeyword=function(){return{type:"TSBigIntKeyword"}},e.tSBooleanKeyword=e.tsBooleanKeyword=function(){return{type:"TSBooleanKeyword"}},e.tSCallSignatureDeclaration=e.tsCallSignatureDeclaration=function(e=null,r,n=null){return(0,t.default)({type:"TSCallSignatureDeclaration",typeParameters:e,parameters:r,typeAnnotation:n})},e.tSConditionalType=e.tsConditionalType=function(e,r,n,i){return(0,t.default)({type:"TSConditionalType",checkType:e,extendsType:r,trueType:n,falseType:i})},e.tSConstructSignatureDeclaration=e.tsConstructSignatureDeclaration=function(e=null,r,n=null){return(0,t.default)({type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:r,typeAnnotation:n})},e.tSConstructorType=e.tsConstructorType=function(e=null,r,n=null){return(0,t.default)({type:"TSConstructorType",typeParameters:e,parameters:r,typeAnnotation:n})},e.tSDeclareFunction=e.tsDeclareFunction=function(e=null,r=null,n,i=null){return(0,t.default)({type:"TSDeclareFunction",id:e,typeParameters:r,params:n,returnType:i})},e.tSDeclareMethod=e.tsDeclareMethod=function(e=null,r,n=null,i,s=null){return(0,t.default)({type:"TSDeclareMethod",decorators:e,key:r,typeParameters:n,params:i,returnType:s})},e.tSEnumDeclaration=e.tsEnumDeclaration=function(e,r){return(0,t.default)({type:"TSEnumDeclaration",id:e,members:r})},e.tSEnumMember=e.tsEnumMember=function(e,r=null){return(0,t.default)({type:"TSEnumMember",id:e,initializer:r})},e.tSExportAssignment=e.tsExportAssignment=function(e){return(0,t.default)({type:"TSExportAssignment",expression:e})},e.tSExpressionWithTypeArguments=e.tsExpressionWithTypeArguments=function(e,r=null){return(0,t.default)({type:"TSExpressionWithTypeArguments",expression:e,typeParameters:r})},e.tSExternalModuleReference=e.tsExternalModuleReference=function(e){return(0,t.default)({type:"TSExternalModuleReference",expression:e})},e.tSFunctionType=e.tsFunctionType=function(e=null,r,n=null){return(0,t.default)({type:"TSFunctionType",typeParameters:e,parameters:r,typeAnnotation:n})},e.tSImportEqualsDeclaration=e.tsImportEqualsDeclaration=function(e,r){return(0,t.default)({type:"TSImportEqualsDeclaration",id:e,moduleReference:r,isExport:null})},e.tSImportType=e.tsImportType=function(e,r=null,n=null){return(0,t.default)({type:"TSImportType",argument:e,qualifier:r,typeParameters:n})},e.tSIndexSignature=e.tsIndexSignature=function(e,r=null){return(0,t.default)({type:"TSIndexSignature",parameters:e,typeAnnotation:r})},e.tSIndexedAccessType=e.tsIndexedAccessType=function(e,r){return(0,t.default)({type:"TSIndexedAccessType",objectType:e,indexType:r})},e.tSInferType=e.tsInferType=function(e){return(0,t.default)({type:"TSInferType",typeParameter:e})},e.tSInstantiationExpression=e.tsInstantiationExpression=function(e,r=null){return(0,t.default)({type:"TSInstantiationExpression",expression:e,typeParameters:r})},e.tSInterfaceBody=e.tsInterfaceBody=function(e){return(0,t.default)({type:"TSInterfaceBody",body:e})},e.tSInterfaceDeclaration=e.tsInterfaceDeclaration=function(e,r=null,n=null,i){return(0,t.default)({type:"TSInterfaceDeclaration",id:e,typeParameters:r,extends:n,body:i})},e.tSIntersectionType=e.tsIntersectionType=function(e){return(0,t.default)({type:"TSIntersectionType",types:e})},e.tSIntrinsicKeyword=e.tsIntrinsicKeyword=function(){return{type:"TSIntrinsicKeyword"}},e.tSLiteralType=e.tsLiteralType=function(e){return(0,t.default)({type:"TSLiteralType",literal:e})},e.tSMappedType=e.tsMappedType=function(e,r=null,n=null){return(0,t.default)({type:"TSMappedType",typeParameter:e,typeAnnotation:r,nameType:n})},e.tSMethodSignature=e.tsMethodSignature=function(e,r=null,n,i=null){return(0,t.default)({type:"TSMethodSignature",key:e,typeParameters:r,parameters:n,typeAnnotation:i,kind:null})},e.tSModuleBlock=e.tsModuleBlock=function(e){return(0,t.default)({type:"TSModuleBlock",body:e})},e.tSModuleDeclaration=e.tsModuleDeclaration=function(e,r){return(0,t.default)({type:"TSModuleDeclaration",id:e,body:r})},e.tSNamedTupleMember=e.tsNamedTupleMember=function(e,r,n=!1){return(0,t.default)({type:"TSNamedTupleMember",label:e,elementType:r,optional:n})},e.tSNamespaceExportDeclaration=e.tsNamespaceExportDeclaration=function(e){return(0,t.default)({type:"TSNamespaceExportDeclaration",id:e})},e.tSNeverKeyword=e.tsNeverKeyword=function(){return{type:"TSNeverKeyword"}},e.tSNonNullExpression=e.tsNonNullExpression=function(e){return(0,t.default)({type:"TSNonNullExpression",expression:e})},e.tSNullKeyword=e.tsNullKeyword=function(){return{type:"TSNullKeyword"}},e.tSNumberKeyword=e.tsNumberKeyword=function(){return{type:"TSNumberKeyword"}},e.tSObjectKeyword=e.tsObjectKeyword=function(){return{type:"TSObjectKeyword"}},e.tSOptionalType=e.tsOptionalType=function(e){return(0,t.default)({type:"TSOptionalType",typeAnnotation:e})},e.tSParameterProperty=e.tsParameterProperty=function(e){return(0,t.default)({type:"TSParameterProperty",parameter:e})},e.tSParenthesizedType=e.tsParenthesizedType=function(e){return(0,t.default)({type:"TSParenthesizedType",typeAnnotation:e})},e.tSPropertySignature=e.tsPropertySignature=function(e,r=null,n=null){return(0,t.default)({type:"TSPropertySignature",key:e,typeAnnotation:r,initializer:n,kind:null})},e.tSQualifiedName=e.tsQualifiedName=function(e,r){return(0,t.default)({type:"TSQualifiedName",left:e,right:r})},e.tSRestType=e.tsRestType=function(e){return(0,t.default)({type:"TSRestType",typeAnnotation:e})},e.tSSatisfiesExpression=e.tsSatisfiesExpression=function(e,r){return(0,t.default)({type:"TSSatisfiesExpression",expression:e,typeAnnotation:r})},e.tSStringKeyword=e.tsStringKeyword=function(){return{type:"TSStringKeyword"}},e.tSSymbolKeyword=e.tsSymbolKeyword=function(){return{type:"TSSymbolKeyword"}},e.tSThisType=e.tsThisType=function(){return{type:"TSThisType"}},e.tSTupleType=e.tsTupleType=function(e){return(0,t.default)({type:"TSTupleType",elementTypes:e})},e.tSTypeAliasDeclaration=e.tsTypeAliasDeclaration=function(e,r=null,n){return(0,t.default)({type:"TSTypeAliasDeclaration",id:e,typeParameters:r,typeAnnotation:n})},e.tSTypeAnnotation=e.tsTypeAnnotation=function(e){return(0,t.default)({type:"TSTypeAnnotation",typeAnnotation:e})},e.tSTypeAssertion=e.tsTypeAssertion=function(e,r){return(0,t.default)({type:"TSTypeAssertion",typeAnnotation:e,expression:r})},e.tSTypeLiteral=e.tsTypeLiteral=function(e){return(0,t.default)({type:"TSTypeLiteral",members:e})},e.tSTypeOperator=e.tsTypeOperator=function(e){return(0,t.default)({type:"TSTypeOperator",typeAnnotation:e,operator:null})},e.tSTypeParameter=e.tsTypeParameter=function(e=null,r=null,n){return(0,t.default)({type:"TSTypeParameter",constraint:e,default:r,name:n})},e.tSTypeParameterDeclaration=e.tsTypeParameterDeclaration=function(e){return(0,t.default)({type:"TSTypeParameterDeclaration",params:e})},e.tSTypeParameterInstantiation=e.tsTypeParameterInstantiation=function(e){return(0,t.default)({type:"TSTypeParameterInstantiation",params:e})},e.tSTypePredicate=e.tsTypePredicate=function(e,r=null,n=null){return(0,t.default)({type:"TSTypePredicate",parameterName:e,typeAnnotation:r,asserts:n})},e.tSTypeQuery=e.tsTypeQuery=function(e,r=null){return(0,t.default)({type:"TSTypeQuery",exprName:e,typeParameters:r})},e.tSTypeReference=e.tsTypeReference=function(e,r=null){return(0,t.default)({type:"TSTypeReference",typeName:e,typeParameters:r})},e.tSUndefinedKeyword=e.tsUndefinedKeyword=function(){return{type:"TSUndefinedKeyword"}},e.tSUnionType=e.tsUnionType=function(e){return(0,t.default)({type:"TSUnionType",types:e})},e.tSUnknownKeyword=e.tsUnknownKeyword=function(){return{type:"TSUnknownKeyword"}},e.tSVoidKeyword=e.tsVoidKeyword=function(){return{type:"TSVoidKeyword"}},e.tupleExpression=function(e=[]){return(0,t.default)({type:"TupleExpression",elements:e})},e.tupleTypeAnnotation=function(e){return(0,t.default)({type:"TupleTypeAnnotation",types:e})},e.typeAlias=function(e,r=null,n){return(0,t.default)({type:"TypeAlias",id:e,typeParameters:r,right:n})},e.typeAnnotation=function(e){return(0,t.default)({type:"TypeAnnotation",typeAnnotation:e})},e.typeCastExpression=function(e,r){return(0,t.default)({type:"TypeCastExpression",expression:e,typeAnnotation:r})},e.typeParameter=function(e=null,r=null,n=null){return(0,t.default)({type:"TypeParameter",bound:e,default:r,variance:n,name:null})},e.typeParameterDeclaration=function(e){return(0,t.default)({type:"TypeParameterDeclaration",params:e})},e.typeParameterInstantiation=function(e){return(0,t.default)({type:"TypeParameterInstantiation",params:e})},e.typeofTypeAnnotation=function(e){return(0,t.default)({type:"TypeofTypeAnnotation",argument:e})},e.unaryExpression=function(e,r,n=!0){return(0,t.default)({type:"UnaryExpression",operator:e,argument:r,prefix:n})},e.unionTypeAnnotation=function(e){return(0,t.default)({type:"UnionTypeAnnotation",types:e})},e.updateExpression=function(e,r,n=!1){return(0,t.default)({type:"UpdateExpression",operator:e,argument:r,prefix:n})},e.v8IntrinsicIdentifier=function(e){return(0,t.default)({type:"V8IntrinsicIdentifier",name:e})},e.variableDeclaration=function(e,r){return(0,t.default)({type:"VariableDeclaration",kind:e,declarations:r})},e.variableDeclarator=function(e,r=null){return(0,t.default)({type:"VariableDeclarator",id:e,init:r})},e.variance=function(e){return(0,t.default)({type:"Variance",kind:e})},e.voidTypeAnnotation=function(){return{type:"VoidTypeAnnotation"}},e.whileStatement=function(e,r){return(0,t.default)({type:"WhileStatement",test:e,body:r})},e.withStatement=function(e,r){return(0,t.default)({type:"WithStatement",object:e,body:r})},e.yieldExpression=function(e=null,r=!1){return(0,t.default)({type:"YieldExpression",argument:e,delegate:r})};var t=require_validateNode(),r=require_deprecationWarning();function n(e){return(0,t.default)({type:"NumericLiteral",value:e})}function i(e,r=""){return(0,t.default)({type:"RegExpLiteral",pattern:e,flags:r})}function s(e){return(0,t.default)({type:"RestElement",argument:e})}function a(e){return(0,t.default)({type:"SpreadElement",argument:e})}}}),require_cleanJSXElementLiteralChild=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,n){const i=e.value.split(/\r\n|\n|\r/);let s=0;for(let e=0;e<i.length;e++)i[e].match(/[^ \t]/)&&(s=e);let a="";for(let e=0;e<i.length;e++){const t=i[e],r=0===e,n=e===i.length-1,o=e===s;let l=t.replace(/\t/g," ");r||(l=l.replace(/^[ ]+/,"")),n||(l=l.replace(/[ ]+$/,"")),l&&(o||(l+=" "),a+=l)}a&&n.push((0,r.inherits)((0,t.stringLiteral)(a),e))};var t=require_generated2(),r=require_lib5()}}),require_buildChildren=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/builders/react/buildChildren.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){const n=[];for(let i=0;i<e.children.length;i++){let s=e.children[i];(0,t.isJSXText)(s)?(0,r.default)(s,n):((0,t.isJSXExpressionContainer)(s)&&(s=s.expression),(0,t.isJSXEmptyExpression)(s)||n.push(s))}return n};var t=require_generated(),r=require_cleanJSXElementLiteralChild()}}),require_isNode=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/validators/isNode.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return!(!e||!t.VISITOR_KEYS[e.type])};var t=require_definitions()}}),require_assertNode=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/asserts/assertNode.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){if(!(0,t.default)(e)){var r;const t=null!=(r=null==e?void 0:e.type)?r:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${t}"`)}};var t=require_isNode()}}),require_generated3=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/asserts/generated/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.assertAccessor=function(e,t){n("Accessor",e,t)},e.assertAnyTypeAnnotation=function(e,t){n("AnyTypeAnnotation",e,t)},e.assertArgumentPlaceholder=function(e,t){n("ArgumentPlaceholder",e,t)},e.assertArrayExpression=function(e,t){n("ArrayExpression",e,t)},e.assertArrayPattern=function(e,t){n("ArrayPattern",e,t)},e.assertArrayTypeAnnotation=function(e,t){n("ArrayTypeAnnotation",e,t)},e.assertArrowFunctionExpression=function(e,t){n("ArrowFunctionExpression",e,t)},e.assertAssignmentExpression=function(e,t){n("AssignmentExpression",e,t)},e.assertAssignmentPattern=function(e,t){n("AssignmentPattern",e,t)},e.assertAwaitExpression=function(e,t){n("AwaitExpression",e,t)},e.assertBigIntLiteral=function(e,t){n("BigIntLiteral",e,t)},e.assertBinary=function(e,t){n("Binary",e,t)},e.assertBinaryExpression=function(e,t){n("BinaryExpression",e,t)},e.assertBindExpression=function(e,t){n("BindExpression",e,t)},e.assertBlock=function(e,t){n("Block",e,t)},e.assertBlockParent=function(e,t){n("BlockParent",e,t)},e.assertBlockStatement=function(e,t){n("BlockStatement",e,t)},e.assertBooleanLiteral=function(e,t){n("BooleanLiteral",e,t)},e.assertBooleanLiteralTypeAnnotation=function(e,t){n("BooleanLiteralTypeAnnotation",e,t)},e.assertBooleanTypeAnnotation=function(e,t){n("BooleanTypeAnnotation",e,t)},e.assertBreakStatement=function(e,t){n("BreakStatement",e,t)},e.assertCallExpression=function(e,t){n("CallExpression",e,t)},e.assertCatchClause=function(e,t){n("CatchClause",e,t)},e.assertClass=function(e,t){n("Class",e,t)},e.assertClassAccessorProperty=function(e,t){n("ClassAccessorProperty",e,t)},e.assertClassBody=function(e,t){n("ClassBody",e,t)},e.assertClassDeclaration=function(e,t){n("ClassDeclaration",e,t)},e.assertClassExpression=function(e,t){n("ClassExpression",e,t)},e.assertClassImplements=function(e,t){n("ClassImplements",e,t)},e.assertClassMethod=function(e,t){n("ClassMethod",e,t)},e.assertClassPrivateMethod=function(e,t){n("ClassPrivateMethod",e,t)},e.assertClassPrivateProperty=function(e,t){n("ClassPrivateProperty",e,t)},e.assertClassProperty=function(e,t){n("ClassProperty",e,t)},e.assertCompletionStatement=function(e,t){n("CompletionStatement",e,t)},e.assertConditional=function(e,t){n("Conditional",e,t)},e.assertConditionalExpression=function(e,t){n("ConditionalExpression",e,t)},e.assertContinueStatement=function(e,t){n("ContinueStatement",e,t)},e.assertDebuggerStatement=function(e,t){n("DebuggerStatement",e,t)},e.assertDecimalLiteral=function(e,t){n("DecimalLiteral",e,t)},e.assertDeclaration=function(e,t){n("Declaration",e,t)},e.assertDeclareClass=function(e,t){n("DeclareClass",e,t)},e.assertDeclareExportAllDeclaration=function(e,t){n("DeclareExportAllDeclaration",e,t)},e.assertDeclareExportDeclaration=function(e,t){n("DeclareExportDeclaration",e,t)},e.assertDeclareFunction=function(e,t){n("DeclareFunction",e,t)},e.assertDeclareInterface=function(e,t){n("DeclareInterface",e,t)},e.assertDeclareModule=function(e,t){n("DeclareModule",e,t)},e.assertDeclareModuleExports=function(e,t){n("DeclareModuleExports",e,t)},e.assertDeclareOpaqueType=function(e,t){n("DeclareOpaqueType",e,t)},e.assertDeclareTypeAlias=function(e,t){n("DeclareTypeAlias",e,t)},e.assertDeclareVariable=function(e,t){n("DeclareVariable",e,t)},e.assertDeclaredPredicate=function(e,t){n("DeclaredPredicate",e,t)},e.assertDecorator=function(e,t){n("Decorator",e,t)},e.assertDirective=function(e,t){n("Directive",e,t)},e.assertDirectiveLiteral=function(e,t){n("DirectiveLiteral",e,t)},e.assertDoExpression=function(e,t){n("DoExpression",e,t)},e.assertDoWhileStatement=function(e,t){n("DoWhileStatement",e,t)},e.assertEmptyStatement=function(e,t){n("EmptyStatement",e,t)},e.assertEmptyTypeAnnotation=function(e,t){n("EmptyTypeAnnotation",e,t)},e.assertEnumBody=function(e,t){n("EnumBody",e,t)},e.assertEnumBooleanBody=function(e,t){n("EnumBooleanBody",e,t)},e.assertEnumBooleanMember=function(e,t){n("EnumBooleanMember",e,t)},e.assertEnumDeclaration=function(e,t){n("EnumDeclaration",e,t)},e.assertEnumDefaultedMember=function(e,t){n("EnumDefaultedMember",e,t)},e.assertEnumMember=function(e,t){n("EnumMember",e,t)},e.assertEnumNumberBody=function(e,t){n("EnumNumberBody",e,t)},e.assertEnumNumberMember=function(e,t){n("EnumNumberMember",e,t)},e.assertEnumStringBody=function(e,t){n("EnumStringBody",e,t)},e.assertEnumStringMember=function(e,t){n("EnumStringMember",e,t)},e.assertEnumSymbolBody=function(e,t){n("EnumSymbolBody",e,t)},e.assertExistsTypeAnnotation=function(e,t){n("ExistsTypeAnnotation",e,t)},e.assertExportAllDeclaration=function(e,t){n("ExportAllDeclaration",e,t)},e.assertExportDeclaration=function(e,t){n("ExportDeclaration",e,t)},e.assertExportDefaultDeclaration=function(e,t){n("ExportDefaultDeclaration",e,t)},e.assertExportDefaultSpecifier=function(e,t){n("ExportDefaultSpecifier",e,t)},e.assertExportNamedDeclaration=function(e,t){n("ExportNamedDeclaration",e,t)},e.assertExportNamespaceSpecifier=function(e,t){n("ExportNamespaceSpecifier",e,t)},e.assertExportSpecifier=function(e,t){n("ExportSpecifier",e,t)},e.assertExpression=function(e,t){n("Expression",e,t)},e.assertExpressionStatement=function(e,t){n("ExpressionStatement",e,t)},e.assertExpressionWrapper=function(e,t){n("ExpressionWrapper",e,t)},e.assertFile=function(e,t){n("File",e,t)},e.assertFlow=function(e,t){n("Flow",e,t)},e.assertFlowBaseAnnotation=function(e,t){n("FlowBaseAnnotation",e,t)},e.assertFlowDeclaration=function(e,t){n("FlowDeclaration",e,t)},e.assertFlowPredicate=function(e,t){n("FlowPredicate",e,t)},e.assertFlowType=function(e,t){n("FlowType",e,t)},e.assertFor=function(e,t){n("For",e,t)},e.assertForInStatement=function(e,t){n("ForInStatement",e,t)},e.assertForOfStatement=function(e,t){n("ForOfStatement",e,t)},e.assertForStatement=function(e,t){n("ForStatement",e,t)},e.assertForXStatement=function(e,t){n("ForXStatement",e,t)},e.assertFunction=function(e,t){n("Function",e,t)},e.assertFunctionDeclaration=function(e,t){n("FunctionDeclaration",e,t)},e.assertFunctionExpression=function(e,t){n("FunctionExpression",e,t)},e.assertFunctionParent=function(e,t){n("FunctionParent",e,t)},e.assertFunctionTypeAnnotation=function(e,t){n("FunctionTypeAnnotation",e,t)},e.assertFunctionTypeParam=function(e,t){n("FunctionTypeParam",e,t)},e.assertGenericTypeAnnotation=function(e,t){n("GenericTypeAnnotation",e,t)},e.assertIdentifier=function(e,t){n("Identifier",e,t)},e.assertIfStatement=function(e,t){n("IfStatement",e,t)},e.assertImmutable=function(e,t){n("Immutable",e,t)},e.assertImport=function(e,t){n("Import",e,t)},e.assertImportAttribute=function(e,t){n("ImportAttribute",e,t)},e.assertImportDeclaration=function(e,t){n("ImportDeclaration",e,t)},e.assertImportDefaultSpecifier=function(e,t){n("ImportDefaultSpecifier",e,t)},e.assertImportNamespaceSpecifier=function(e,t){n("ImportNamespaceSpecifier",e,t)},e.assertImportOrExportDeclaration=function(e,t){n("ImportOrExportDeclaration",e,t)},e.assertImportSpecifier=function(e,t){n("ImportSpecifier",e,t)},e.assertIndexedAccessType=function(e,t){n("IndexedAccessType",e,t)},e.assertInferredPredicate=function(e,t){n("InferredPredicate",e,t)},e.assertInterfaceDeclaration=function(e,t){n("InterfaceDeclaration",e,t)},e.assertInterfaceExtends=function(e,t){n("InterfaceExtends",e,t)},e.assertInterfaceTypeAnnotation=function(e,t){n("InterfaceTypeAnnotation",e,t)},e.assertInterpreterDirective=function(e,t){n("InterpreterDirective",e,t)},e.assertIntersectionTypeAnnotation=function(e,t){n("IntersectionTypeAnnotation",e,t)},e.assertJSX=function(e,t){n("JSX",e,t)},e.assertJSXAttribute=function(e,t){n("JSXAttribute",e,t)},e.assertJSXClosingElement=function(e,t){n("JSXClosingElement",e,t)},e.assertJSXClosingFragment=function(e,t){n("JSXClosingFragment",e,t)},e.assertJSXElement=function(e,t){n("JSXElement",e,t)},e.assertJSXEmptyExpression=function(e,t){n("JSXEmptyExpression",e,t)},e.assertJSXExpressionContainer=function(e,t){n("JSXExpressionContainer",e,t)},e.assertJSXFragment=function(e,t){n("JSXFragment",e,t)},e.assertJSXIdentifier=function(e,t){n("JSXIdentifier",e,t)},e.assertJSXMemberExpression=function(e,t){n("JSXMemberExpression",e,t)},e.assertJSXNamespacedName=function(e,t){n("JSXNamespacedName",e,t)},e.assertJSXOpeningElement=function(e,t){n("JSXOpeningElement",e,t)},e.assertJSXOpeningFragment=function(e,t){n("JSXOpeningFragment",e,t)},e.assertJSXSpreadAttribute=function(e,t){n("JSXSpreadAttribute",e,t)},e.assertJSXSpreadChild=function(e,t){n("JSXSpreadChild",e,t)},e.assertJSXText=function(e,t){n("JSXText",e,t)},e.assertLVal=function(e,t){n("LVal",e,t)},e.assertLabeledStatement=function(e,t){n("LabeledStatement",e,t)},e.assertLiteral=function(e,t){n("Literal",e,t)},e.assertLogicalExpression=function(e,t){n("LogicalExpression",e,t)},e.assertLoop=function(e,t){n("Loop",e,t)},e.assertMemberExpression=function(e,t){n("MemberExpression",e,t)},e.assertMetaProperty=function(e,t){n("MetaProperty",e,t)},e.assertMethod=function(e,t){n("Method",e,t)},e.assertMiscellaneous=function(e,t){n("Miscellaneous",e,t)},e.assertMixedTypeAnnotation=function(e,t){n("MixedTypeAnnotation",e,t)},e.assertModuleDeclaration=function(e,t){(0,r.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),n("ModuleDeclaration",e,t)},e.assertModuleExpression=function(e,t){n("ModuleExpression",e,t)},e.assertModuleSpecifier=function(e,t){n("ModuleSpecifier",e,t)},e.assertNewExpression=function(e,t){n("NewExpression",e,t)},e.assertNoop=function(e,t){n("Noop",e,t)},e.assertNullLiteral=function(e,t){n("NullLiteral",e,t)},e.assertNullLiteralTypeAnnotation=function(e,t){n("NullLiteralTypeAnnotation",e,t)},e.assertNullableTypeAnnotation=function(e,t){n("NullableTypeAnnotation",e,t)},e.assertNumberLiteral=function(e,t){(0,r.default)("assertNumberLiteral","assertNumericLiteral"),n("NumberLiteral",e,t)},e.assertNumberLiteralTypeAnnotation=function(e,t){n("NumberLiteralTypeAnnotation",e,t)},e.assertNumberTypeAnnotation=function(e,t){n("NumberTypeAnnotation",e,t)},e.assertNumericLiteral=function(e,t){n("NumericLiteral",e,t)},e.assertObjectExpression=function(e,t){n("ObjectExpression",e,t)},e.assertObjectMember=function(e,t){n("ObjectMember",e,t)},e.assertObjectMethod=function(e,t){n("ObjectMethod",e,t)},e.assertObjectPattern=function(e,t){n("ObjectPattern",e,t)},e.assertObjectProperty=function(e,t){n("ObjectProperty",e,t)},e.assertObjectTypeAnnotation=function(e,t){n("ObjectTypeAnnotation",e,t)},e.assertObjectTypeCallProperty=function(e,t){n("ObjectTypeCallProperty",e,t)},e.assertObjectTypeIndexer=function(e,t){n("ObjectTypeIndexer",e,t)},e.assertObjectTypeInternalSlot=function(e,t){n("ObjectTypeInternalSlot",e,t)},e.assertObjectTypeProperty=function(e,t){n("ObjectTypeProperty",e,t)},e.assertObjectTypeSpreadProperty=function(e,t){n("ObjectTypeSpreadProperty",e,t)},e.assertOpaqueType=function(e,t){n("OpaqueType",e,t)},e.assertOptionalCallExpression=function(e,t){n("OptionalCallExpression",e,t)},e.assertOptionalIndexedAccessType=function(e,t){n("OptionalIndexedAccessType",e,t)},e.assertOptionalMemberExpression=function(e,t){n("OptionalMemberExpression",e,t)},e.assertParenthesizedExpression=function(e,t){n("ParenthesizedExpression",e,t)},e.assertPattern=function(e,t){n("Pattern",e,t)},e.assertPatternLike=function(e,t){n("PatternLike",e,t)},e.assertPipelineBareFunction=function(e,t){n("PipelineBareFunction",e,t)},e.assertPipelinePrimaryTopicReference=function(e,t){n("PipelinePrimaryTopicReference",e,t)},e.assertPipelineTopicExpression=function(e,t){n("PipelineTopicExpression",e,t)},e.assertPlaceholder=function(e,t){n("Placeholder",e,t)},e.assertPrivate=function(e,t){n("Private",e,t)},e.assertPrivateName=function(e,t){n("PrivateName",e,t)},e.assertProgram=function(e,t){n("Program",e,t)},e.assertProperty=function(e,t){n("Property",e,t)},e.assertPureish=function(e,t){n("Pureish",e,t)},e.assertQualifiedTypeIdentifier=function(e,t){n("QualifiedTypeIdentifier",e,t)},e.assertRecordExpression=function(e,t){n("RecordExpression",e,t)},e.assertRegExpLiteral=function(e,t){n("RegExpLiteral",e,t)},e.assertRegexLiteral=function(e,t){(0,r.default)("assertRegexLiteral","assertRegExpLiteral"),n("RegexLiteral",e,t)},e.assertRestElement=function(e,t){n("RestElement",e,t)},e.assertRestProperty=function(e,t){(0,r.default)("assertRestProperty","assertRestElement"),n("RestProperty",e,t)},e.assertReturnStatement=function(e,t){n("ReturnStatement",e,t)},e.assertScopable=function(e,t){n("Scopable",e,t)},e.assertSequenceExpression=function(e,t){n("SequenceExpression",e,t)},e.assertSpreadElement=function(e,t){n("SpreadElement",e,t)},e.assertSpreadProperty=function(e,t){(0,r.default)("assertSpreadProperty","assertSpreadElement"),n("SpreadProperty",e,t)},e.assertStandardized=function(e,t){n("Standardized",e,t)},e.assertStatement=function(e,t){n("Statement",e,t)},e.assertStaticBlock=function(e,t){n("StaticBlock",e,t)},e.assertStringLiteral=function(e,t){n("StringLiteral",e,t)},e.assertStringLiteralTypeAnnotation=function(e,t){n("StringLiteralTypeAnnotation",e,t)},e.assertStringTypeAnnotation=function(e,t){n("StringTypeAnnotation",e,t)},e.assertSuper=function(e,t){n("Super",e,t)},e.assertSwitchCase=function(e,t){n("SwitchCase",e,t)},e.assertSwitchStatement=function(e,t){n("SwitchStatement",e,t)},e.assertSymbolTypeAnnotation=function(e,t){n("SymbolTypeAnnotation",e,t)},e.assertTSAnyKeyword=function(e,t){n("TSAnyKeyword",e,t)},e.assertTSArrayType=function(e,t){n("TSArrayType",e,t)},e.assertTSAsExpression=function(e,t){n("TSAsExpression",e,t)},e.assertTSBaseType=function(e,t){n("TSBaseType",e,t)},e.assertTSBigIntKeyword=function(e,t){n("TSBigIntKeyword",e,t)},e.assertTSBooleanKeyword=function(e,t){n("TSBooleanKeyword",e,t)},e.assertTSCallSignatureDeclaration=function(e,t){n("TSCallSignatureDeclaration",e,t)},e.assertTSConditionalType=function(e,t){n("TSConditionalType",e,t)},e.assertTSConstructSignatureDeclaration=function(e,t){n("TSConstructSignatureDeclaration",e,t)},e.assertTSConstructorType=function(e,t){n("TSConstructorType",e,t)},e.assertTSDeclareFunction=function(e,t){n("TSDeclareFunction",e,t)},e.assertTSDeclareMethod=function(e,t){n("TSDeclareMethod",e,t)},e.assertTSEntityName=function(e,t){n("TSEntityName",e,t)},e.assertTSEnumDeclaration=function(e,t){n("TSEnumDeclaration",e,t)},e.assertTSEnumMember=function(e,t){n("TSEnumMember",e,t)},e.assertTSExportAssignment=function(e,t){n("TSExportAssignment",e,t)},e.assertTSExpressionWithTypeArguments=function(e,t){n("TSExpressionWithTypeArguments",e,t)},e.assertTSExternalModuleReference=function(e,t){n("TSExternalModuleReference",e,t)},e.assertTSFunctionType=function(e,t){n("TSFunctionType",e,t)},e.assertTSImportEqualsDeclaration=function(e,t){n("TSImportEqualsDeclaration",e,t)},e.assertTSImportType=function(e,t){n("TSImportType",e,t)},e.assertTSIndexSignature=function(e,t){n("TSIndexSignature",e,t)},e.assertTSIndexedAccessType=function(e,t){n("TSIndexedAccessType",e,t)},e.assertTSInferType=function(e,t){n("TSInferType",e,t)},e.assertTSInstantiationExpression=function(e,t){n("TSInstantiationExpression",e,t)},e.assertTSInterfaceBody=function(e,t){n("TSInterfaceBody",e,t)},e.assertTSInterfaceDeclaration=function(e,t){n("TSInterfaceDeclaration",e,t)},e.assertTSIntersectionType=function(e,t){n("TSIntersectionType",e,t)},e.assertTSIntrinsicKeyword=function(e,t){n("TSIntrinsicKeyword",e,t)},e.assertTSLiteralType=function(e,t){n("TSLiteralType",e,t)},e.assertTSMappedType=function(e,t){n("TSMappedType",e,t)},e.assertTSMethodSignature=function(e,t){n("TSMethodSignature",e,t)},e.assertTSModuleBlock=function(e,t){n("TSModuleBlock",e,t)},e.assertTSModuleDeclaration=function(e,t){n("TSModuleDeclaration",e,t)},e.assertTSNamedTupleMember=function(e,t){n("TSNamedTupleMember",e,t)},e.assertTSNamespaceExportDeclaration=function(e,t){n("TSNamespaceExportDeclaration",e,t)},e.assertTSNeverKeyword=function(e,t){n("TSNeverKeyword",e,t)},e.assertTSNonNullExpression=function(e,t){n("TSNonNullExpression",e,t)},e.assertTSNullKeyword=function(e,t){n("TSNullKeyword",e,t)},e.assertTSNumberKeyword=function(e,t){n("TSNumberKeyword",e,t)},e.assertTSObjectKeyword=function(e,t){n("TSObjectKeyword",e,t)},e.assertTSOptionalType=function(e,t){n("TSOptionalType",e,t)},e.assertTSParameterProperty=function(e,t){n("TSParameterProperty",e,t)},e.assertTSParenthesizedType=function(e,t){n("TSParenthesizedType",e,t)},e.assertTSPropertySignature=function(e,t){n("TSPropertySignature",e,t)},e.assertTSQualifiedName=function(e,t){n("TSQualifiedName",e,t)},e.assertTSRestType=function(e,t){n("TSRestType",e,t)},e.assertTSSatisfiesExpression=function(e,t){n("TSSatisfiesExpression",e,t)},e.assertTSStringKeyword=function(e,t){n("TSStringKeyword",e,t)},e.assertTSSymbolKeyword=function(e,t){n("TSSymbolKeyword",e,t)},e.assertTSThisType=function(e,t){n("TSThisType",e,t)},e.assertTSTupleType=function(e,t){n("TSTupleType",e,t)},e.assertTSType=function(e,t){n("TSType",e,t)},e.assertTSTypeAliasDeclaration=function(e,t){n("TSTypeAliasDeclaration",e,t)},e.assertTSTypeAnnotation=function(e,t){n("TSTypeAnnotation",e,t)},e.assertTSTypeAssertion=function(e,t){n("TSTypeAssertion",e,t)},e.assertTSTypeElement=function(e,t){n("TSTypeElement",e,t)},e.assertTSTypeLiteral=function(e,t){n("TSTypeLiteral",e,t)},e.assertTSTypeOperator=function(e,t){n("TSTypeOperator",e,t)},e.assertTSTypeParameter=function(e,t){n("TSTypeParameter",e,t)},e.assertTSTypeParameterDeclaration=function(e,t){n("TSTypeParameterDeclaration",e,t)},e.assertTSTypeParameterInstantiation=function(e,t){n("TSTypeParameterInstantiation",e,t)},e.assertTSTypePredicate=function(e,t){n("TSTypePredicate",e,t)},e.assertTSTypeQuery=function(e,t){n("TSTypeQuery",e,t)},e.assertTSTypeReference=function(e,t){n("TSTypeReference",e,t)},e.assertTSUndefinedKeyword=function(e,t){n("TSUndefinedKeyword",e,t)},e.assertTSUnionType=function(e,t){n("TSUnionType",e,t)},e.assertTSUnknownKeyword=function(e,t){n("TSUnknownKeyword",e,t)},e.assertTSVoidKeyword=function(e,t){n("TSVoidKeyword",e,t)},e.assertTaggedTemplateExpression=function(e,t){n("TaggedTemplateExpression",e,t)},e.assertTemplateElement=function(e,t){n("TemplateElement",e,t)},e.assertTemplateLiteral=function(e,t){n("TemplateLiteral",e,t)},e.assertTerminatorless=function(e,t){n("Terminatorless",e,t)},e.assertThisExpression=function(e,t){n("ThisExpression",e,t)},e.assertThisTypeAnnotation=function(e,t){n("ThisTypeAnnotation",e,t)},e.assertThrowStatement=function(e,t){n("ThrowStatement",e,t)},e.assertTopicReference=function(e,t){n("TopicReference",e,t)},e.assertTryStatement=function(e,t){n("TryStatement",e,t)},e.assertTupleExpression=function(e,t){n("TupleExpression",e,t)},e.assertTupleTypeAnnotation=function(e,t){n("TupleTypeAnnotation",e,t)},e.assertTypeAlias=function(e,t){n("TypeAlias",e,t)},e.assertTypeAnnotation=function(e,t){n("TypeAnnotation",e,t)},e.assertTypeCastExpression=function(e,t){n("TypeCastExpression",e,t)},e.assertTypeParameter=function(e,t){n("TypeParameter",e,t)},e.assertTypeParameterDeclaration=function(e,t){n("TypeParameterDeclaration",e,t)},e.assertTypeParameterInstantiation=function(e,t){n("TypeParameterInstantiation",e,t)},e.assertTypeScript=function(e,t){n("TypeScript",e,t)},e.assertTypeofTypeAnnotation=function(e,t){n("TypeofTypeAnnotation",e,t)},e.assertUnaryExpression=function(e,t){n("UnaryExpression",e,t)},e.assertUnaryLike=function(e,t){n("UnaryLike",e,t)},e.assertUnionTypeAnnotation=function(e,t){n("UnionTypeAnnotation",e,t)},e.assertUpdateExpression=function(e,t){n("UpdateExpression",e,t)},e.assertUserWhitespacable=function(e,t){n("UserWhitespacable",e,t)},e.assertV8IntrinsicIdentifier=function(e,t){n("V8IntrinsicIdentifier",e,t)},e.assertVariableDeclaration=function(e,t){n("VariableDeclaration",e,t)},e.assertVariableDeclarator=function(e,t){n("VariableDeclarator",e,t)},e.assertVariance=function(e,t){n("Variance",e,t)},e.assertVoidTypeAnnotation=function(e,t){n("VoidTypeAnnotation",e,t)},e.assertWhile=function(e,t){n("While",e,t)},e.assertWhileStatement=function(e,t){n("WhileStatement",e,t)},e.assertWithStatement=function(e,t){n("WithStatement",e,t)},e.assertYieldExpression=function(e,t){n("YieldExpression",e,t)};var t=require_is(),r=require_deprecationWarning();function n(e,r,n){if(!(0,t.default)(e,r,n))throw new Error(`Expected type "${e}" with option ${JSON.stringify(n)}, but instead got "${r.type}".`)}}}),require_createTypeAnnotationBasedOnTypeof=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=require_generated2(),r=function(e){switch(e){case"string":return(0,t.stringTypeAnnotation)();case"number":return(0,t.numberTypeAnnotation)();case"undefined":return(0,t.voidTypeAnnotation)();case"boolean":return(0,t.booleanTypeAnnotation)();case"function":return(0,t.genericTypeAnnotation)((0,t.identifier)("Function"));case"object":return(0,t.genericTypeAnnotation)((0,t.identifier)("Object"));case"symbol":return(0,t.genericTypeAnnotation)((0,t.identifier)("Symbol"));case"bigint":return(0,t.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+e)};e.default=r}}),require_removeTypeDuplicates=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function e(n){const i=Array.from(n),s=new Map,a=new Map,o=new Set,l=[];for(let n=0;n<i.length;n++){const c=i[n];if(c&&!(l.indexOf(c)>=0)){if((0,t.isAnyTypeAnnotation)(c))return[c];if((0,t.isFlowBaseAnnotation)(c))a.set(c.type,c);else if((0,t.isUnionTypeAnnotation)(c))o.has(c.types)||(i.push(...c.types),o.add(c.types));else if((0,t.isGenericTypeAnnotation)(c)){const t=r(c.id);if(s.has(t)){let r=s.get(t);r.typeParameters?c.typeParameters&&(r.typeParameters.params.push(...c.typeParameters.params),r.typeParameters.params=e(r.typeParameters.params)):r=c.typeParameters}else s.set(t,c)}else l.push(c)}}for(const[,e]of a)l.push(e);for(const[,e]of s)l.push(e);return l};var t=require_generated();function r(e){return(0,t.isIdentifier)(e)?e.name:`${e.id.name}.${r(e.qualification)}`}}}),require_createFlowUnionType=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){const n=(0,r.default)(e);return 1===n.length?n[0]:(0,t.unionTypeAnnotation)(n)};var t=require_generated2(),r=require_removeTypeDuplicates()}}),require_removeTypeDuplicates2=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function e(n){const i=Array.from(n),s=new Map,a=new Map,o=new Set,l=[];for(let n=0;n<i.length;n++){const c=i[n];if(c&&!(l.indexOf(c)>=0)){if((0,t.isTSAnyKeyword)(c))return[c];if((0,t.isTSBaseType)(c))a.set(c.type,c);else if((0,t.isTSUnionType)(c))o.has(c.types)||(i.push(...c.types),o.add(c.types));else if((0,t.isTSTypeReference)(c)&&c.typeParameters){const t=r(c.typeName);if(s.has(t)){let r=s.get(t);r.typeParameters?c.typeParameters&&(r.typeParameters.params.push(...c.typeParameters.params),r.typeParameters.params=e(r.typeParameters.params)):r=c.typeParameters}else s.set(t,c)}else l.push(c)}}for(const[,e]of a)l.push(e);for(const[,e]of s)l.push(e);return l};var t=require_generated();function r(e){return(0,t.isIdentifier)(e)?e.name:`${e.right.name}.${r(e.left)}`}}}),require_createTSUnionType=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){const i=e.map((e=>(0,n.isTSTypeAnnotation)(e)?e.typeAnnotation:e)),s=(0,r.default)(i);return 1===s.length?s[0]:(0,t.tsUnionType)(s)};var t=require_generated2(),r=require_removeTypeDuplicates2(),n=require_generated()}}),require_uppercase=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/builders/generated/uppercase.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AnyTypeAnnotation",{enumerable:!0,get:function(){return t.anyTypeAnnotation}}),Object.defineProperty(e,"ArgumentPlaceholder",{enumerable:!0,get:function(){return t.argumentPlaceholder}}),Object.defineProperty(e,"ArrayExpression",{enumerable:!0,get:function(){return t.arrayExpression}}),Object.defineProperty(e,"ArrayPattern",{enumerable:!0,get:function(){return t.arrayPattern}}),Object.defineProperty(e,"ArrayTypeAnnotation",{enumerable:!0,get:function(){return t.arrayTypeAnnotation}}),Object.defineProperty(e,"ArrowFunctionExpression",{enumerable:!0,get:function(){return t.arrowFunctionExpression}}),Object.defineProperty(e,"AssignmentExpression",{enumerable:!0,get:function(){return t.assignmentExpression}}),Object.defineProperty(e,"AssignmentPattern",{enumerable:!0,get:function(){return t.assignmentPattern}}),Object.defineProperty(e,"AwaitExpression",{enumerable:!0,get:function(){return t.awaitExpression}}),Object.defineProperty(e,"BigIntLiteral",{enumerable:!0,get:function(){return t.bigIntLiteral}}),Object.defineProperty(e,"BinaryExpression",{enumerable:!0,get:function(){return t.binaryExpression}}),Object.defineProperty(e,"BindExpression",{enumerable:!0,get:function(){return t.bindExpression}}),Object.defineProperty(e,"BlockStatement",{enumerable:!0,get:function(){return t.blockStatement}}),Object.defineProperty(e,"BooleanLiteral",{enumerable:!0,get:function(){return t.booleanLiteral}}),Object.defineProperty(e,"BooleanLiteralTypeAnnotation",{enumerable:!0,get:function(){return t.booleanLiteralTypeAnnotation}}),Object.defineProperty(e,"BooleanTypeAnnotation",{enumerable:!0,get:function(){return t.booleanTypeAnnotation}}),Object.defineProperty(e,"BreakStatement",{enumerable:!0,get:function(){return t.breakStatement}}),Object.defineProperty(e,"CallExpression",{enumerable:!0,get:function(){return t.callExpression}}),Object.defineProperty(e,"CatchClause",{enumerable:!0,get:function(){return t.catchClause}}),Object.defineProperty(e,"ClassAccessorProperty",{enumerable:!0,get:function(){return t.classAccessorProperty}}),Object.defineProperty(e,"ClassBody",{enumerable:!0,get:function(){return t.classBody}}),Object.defineProperty(e,"ClassDeclaration",{enumerable:!0,get:function(){return t.classDeclaration}}),Object.defineProperty(e,"ClassExpression",{enumerable:!0,get:function(){return t.classExpression}}),Object.defineProperty(e,"ClassImplements",{enumerable:!0,get:function(){return t.classImplements}}),Object.defineProperty(e,"ClassMethod",{enumerable:!0,get:function(){return t.classMethod}}),Object.defineProperty(e,"ClassPrivateMethod",{enumerable:!0,get:function(){return t.classPrivateMethod}}),Object.defineProperty(e,"ClassPrivateProperty",{enumerable:!0,get:function(){return t.classPrivateProperty}}),Object.defineProperty(e,"ClassProperty",{enumerable:!0,get:function(){return t.classProperty}}),Object.defineProperty(e,"ConditionalExpression",{enumerable:!0,get:function(){return t.conditionalExpression}}),Object.defineProperty(e,"ContinueStatement",{enumerable:!0,get:function(){return t.continueStatement}}),Object.defineProperty(e,"DebuggerStatement",{enumerable:!0,get:function(){return t.debuggerStatement}}),Object.defineProperty(e,"DecimalLiteral",{enumerable:!0,get:function(){return t.decimalLiteral}}),Object.defineProperty(e,"DeclareClass",{enumerable:!0,get:function(){return t.declareClass}}),Object.defineProperty(e,"DeclareExportAllDeclaration",{enumerable:!0,get:function(){return t.declareExportAllDeclaration}}),Object.defineProperty(e,"DeclareExportDeclaration",{enumerable:!0,get:function(){return t.declareExportDeclaration}}),Object.defineProperty(e,"DeclareFunction",{enumerable:!0,get:function(){return t.declareFunction}}),Object.defineProperty(e,"DeclareInterface",{enumerable:!0,get:function(){return t.declareInterface}}),Object.defineProperty(e,"DeclareModule",{enumerable:!0,get:function(){return t.declareModule}}),Object.defineProperty(e,"DeclareModuleExports",{enumerable:!0,get:function(){return t.declareModuleExports}}),Object.defineProperty(e,"DeclareOpaqueType",{enumerable:!0,get:function(){return t.declareOpaqueType}}),Object.defineProperty(e,"DeclareTypeAlias",{enumerable:!0,get:function(){return t.declareTypeAlias}}),Object.defineProperty(e,"DeclareVariable",{enumerable:!0,get:function(){return t.declareVariable}}),Object.defineProperty(e,"DeclaredPredicate",{enumerable:!0,get:function(){return t.declaredPredicate}}),Object.defineProperty(e,"Decorator",{enumerable:!0,get:function(){return t.decorator}}),Object.defineProperty(e,"Directive",{enumerable:!0,get:function(){return t.directive}}),Object.defineProperty(e,"DirectiveLiteral",{enumerable:!0,get:function(){return t.directiveLiteral}}),Object.defineProperty(e,"DoExpression",{enumerable:!0,get:function(){return t.doExpression}}),Object.defineProperty(e,"DoWhileStatement",{enumerable:!0,get:function(){return t.doWhileStatement}}),Object.defineProperty(e,"EmptyStatement",{enumerable:!0,get:function(){return t.emptyStatement}}),Object.defineProperty(e,"EmptyTypeAnnotation",{enumerable:!0,get:function(){return t.emptyTypeAnnotation}}),Object.defineProperty(e,"EnumBooleanBody",{enumerable:!0,get:function(){return t.enumBooleanBody}}),Object.defineProperty(e,"EnumBooleanMember",{enumerable:!0,get:function(){return t.enumBooleanMember}}),Object.defineProperty(e,"EnumDeclaration",{enumerable:!0,get:function(){return t.enumDeclaration}}),Object.defineProperty(e,"EnumDefaultedMember",{enumerable:!0,get:function(){return t.enumDefaultedMember}}),Object.defineProperty(e,"EnumNumberBody",{enumerable:!0,get:function(){return t.enumNumberBody}}),Object.defineProperty(e,"EnumNumberMember",{enumerable:!0,get:function(){return t.enumNumberMember}}),Object.defineProperty(e,"EnumStringBody",{enumerable:!0,get:function(){return t.enumStringBody}}),Object.defineProperty(e,"EnumStringMember",{enumerable:!0,get:function(){return t.enumStringMember}}),Object.defineProperty(e,"EnumSymbolBody",{enumerable:!0,get:function(){return t.enumSymbolBody}}),Object.defineProperty(e,"ExistsTypeAnnotation",{enumerable:!0,get:function(){return t.existsTypeAnnotation}}),Object.defineProperty(e,"ExportAllDeclaration",{enumerable:!0,get:function(){return t.exportAllDeclaration}}),Object.defineProperty(e,"ExportDefaultDeclaration",{enumerable:!0,get:function(){return t.exportDefaultDeclaration}}),Object.defineProperty(e,"ExportDefaultSpecifier",{enumerable:!0,get:function(){return t.exportDefaultSpecifier}}),Object.defineProperty(e,"ExportNamedDeclaration",{enumerable:!0,get:function(){return t.exportNamedDeclaration}}),Object.defineProperty(e,"ExportNamespaceSpecifier",{enumerable:!0,get:function(){return t.exportNamespaceSpecifier}}),Object.defineProperty(e,"ExportSpecifier",{enumerable:!0,get:function(){return t.exportSpecifier}}),Object.defineProperty(e,"ExpressionStatement",{enumerable:!0,get:function(){return t.expressionStatement}}),Object.defineProperty(e,"File",{enumerable:!0,get:function(){return t.file}}),Object.defineProperty(e,"ForInStatement",{enumerable:!0,get:function(){return t.forInStatement}}),Object.defineProperty(e,"ForOfStatement",{enumerable:!0,get:function(){return t.forOfStatement}}),Object.defineProperty(e,"ForStatement",{enumerable:!0,get:function(){return t.forStatement}}),Object.defineProperty(e,"FunctionDeclaration",{enumerable:!0,get:function(){return t.functionDeclaration}}),Object.defineProperty(e,"FunctionExpression",{enumerable:!0,get:function(){return t.functionExpression}}),Object.defineProperty(e,"FunctionTypeAnnotation",{enumerable:!0,get:function(){return t.functionTypeAnnotation}}),Object.defineProperty(e,"FunctionTypeParam",{enumerable:!0,get:function(){return t.functionTypeParam}}),Object.defineProperty(e,"GenericTypeAnnotation",{enumerable:!0,get:function(){return t.genericTypeAnnotation}}),Object.defineProperty(e,"Identifier",{enumerable:!0,get:function(){return t.identifier}}),Object.defineProperty(e,"IfStatement",{enumerable:!0,get:function(){return t.ifStatement}}),Object.defineProperty(e,"Import",{enumerable:!0,get:function(){return t.import}}),Object.defineProperty(e,"ImportAttribute",{enumerable:!0,get:function(){return t.importAttribute}}),Object.defineProperty(e,"ImportDeclaration",{enumerable:!0,get:function(){return t.importDeclaration}}),Object.defineProperty(e,"ImportDefaultSpecifier",{enumerable:!0,get:function(){return t.importDefaultSpecifier}}),Object.defineProperty(e,"ImportNamespaceSpecifier",{enumerable:!0,get:function(){return t.importNamespaceSpecifier}}),Object.defineProperty(e,"ImportSpecifier",{enumerable:!0,get:function(){return t.importSpecifier}}),Object.defineProperty(e,"IndexedAccessType",{enumerable:!0,get:function(){return t.indexedAccessType}}),Object.defineProperty(e,"InferredPredicate",{enumerable:!0,get:function(){return t.inferredPredicate}}),Object.defineProperty(e,"InterfaceDeclaration",{enumerable:!0,get:function(){return t.interfaceDeclaration}}),Object.defineProperty(e,"InterfaceExtends",{enumerable:!0,get:function(){return t.interfaceExtends}}),Object.defineProperty(e,"InterfaceTypeAnnotation",{enumerable:!0,get:function(){return t.interfaceTypeAnnotation}}),Object.defineProperty(e,"InterpreterDirective",{enumerable:!0,get:function(){return t.interpreterDirective}}),Object.defineProperty(e,"IntersectionTypeAnnotation",{enumerable:!0,get:function(){return t.intersectionTypeAnnotation}}),Object.defineProperty(e,"JSXAttribute",{enumerable:!0,get:function(){return t.jsxAttribute}}),Object.defineProperty(e,"JSXClosingElement",{enumerable:!0,get:function(){return t.jsxClosingElement}}),Object.defineProperty(e,"JSXClosingFragment",{enumerable:!0,get:function(){return t.jsxClosingFragment}}),Object.defineProperty(e,"JSXElement",{enumerable:!0,get:function(){return t.jsxElement}}),Object.defineProperty(e,"JSXEmptyExpression",{enumerable:!0,get:function(){return t.jsxEmptyExpression}}),Object.defineProperty(e,"JSXExpressionContainer",{enumerable:!0,get:function(){return t.jsxExpressionContainer}}),Object.defineProperty(e,"JSXFragment",{enumerable:!0,get:function(){return t.jsxFragment}}),Object.defineProperty(e,"JSXIdentifier",{enumerable:!0,get:function(){return t.jsxIdentifier}}),Object.defineProperty(e,"JSXMemberExpression",{enumerable:!0,get:function(){return t.jsxMemberExpression}}),Object.defineProperty(e,"JSXNamespacedName",{enumerable:!0,get:function(){return t.jsxNamespacedName}}),Object.defineProperty(e,"JSXOpeningElement",{enumerable:!0,get:function(){return t.jsxOpeningElement}}),Object.defineProperty(e,"JSXOpeningFragment",{enumerable:!0,get:function(){return t.jsxOpeningFragment}}),Object.defineProperty(e,"JSXSpreadAttribute",{enumerable:!0,get:function(){return t.jsxSpreadAttribute}}),Object.defineProperty(e,"JSXSpreadChild",{enumerable:!0,get:function(){return t.jsxSpreadChild}}),Object.defineProperty(e,"JSXText",{enumerable:!0,get:function(){return t.jsxText}}),Object.defineProperty(e,"LabeledStatement",{enumerable:!0,get:function(){return t.labeledStatement}}),Object.defineProperty(e,"LogicalExpression",{enumerable:!0,get:function(){return t.logicalExpression}}),Object.defineProperty(e,"MemberExpression",{enumerable:!0,get:function(){return t.memberExpression}}),Object.defineProperty(e,"MetaProperty",{enumerable:!0,get:function(){return t.metaProperty}}),Object.defineProperty(e,"MixedTypeAnnotation",{enumerable:!0,get:function(){return t.mixedTypeAnnotation}}),Object.defineProperty(e,"ModuleExpression",{enumerable:!0,get:function(){return t.moduleExpression}}),Object.defineProperty(e,"NewExpression",{enumerable:!0,get:function(){return t.newExpression}}),Object.defineProperty(e,"Noop",{enumerable:!0,get:function(){return t.noop}}),Object.defineProperty(e,"NullLiteral",{enumerable:!0,get:function(){return t.nullLiteral}}),Object.defineProperty(e,"NullLiteralTypeAnnotation",{enumerable:!0,get:function(){return t.nullLiteralTypeAnnotation}}),Object.defineProperty(e,"NullableTypeAnnotation",{enumerable:!0,get:function(){return t.nullableTypeAnnotation}}),Object.defineProperty(e,"NumberLiteral",{enumerable:!0,get:function(){return t.numberLiteral}}),Object.defineProperty(e,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return t.numberLiteralTypeAnnotation}}),Object.defineProperty(e,"NumberTypeAnnotation",{enumerable:!0,get:function(){return t.numberTypeAnnotation}}),Object.defineProperty(e,"NumericLiteral",{enumerable:!0,get:function(){return t.numericLiteral}}),Object.defineProperty(e,"ObjectExpression",{enumerable:!0,get:function(){return t.objectExpression}}),Object.defineProperty(e,"ObjectMethod",{enumerable:!0,get:function(){return t.objectMethod}}),Object.defineProperty(e,"ObjectPattern",{enumerable:!0,get:function(){return t.objectPattern}}),Object.defineProperty(e,"ObjectProperty",{enumerable:!0,get:function(){return t.objectProperty}}),Object.defineProperty(e,"ObjectTypeAnnotation",{enumerable:!0,get:function(){return t.objectTypeAnnotation}}),Object.defineProperty(e,"ObjectTypeCallProperty",{enumerable:!0,get:function(){return t.objectTypeCallProperty}}),Object.defineProperty(e,"ObjectTypeIndexer",{enumerable:!0,get:function(){return t.objectTypeIndexer}}),Object.defineProperty(e,"ObjectTypeInternalSlot",{enumerable:!0,get:function(){return t.objectTypeInternalSlot}}),Object.defineProperty(e,"ObjectTypeProperty",{enumerable:!0,get:function(){return t.objectTypeProperty}}),Object.defineProperty(e,"ObjectTypeSpreadProperty",{enumerable:!0,get:function(){return t.objectTypeSpreadProperty}}),Object.defineProperty(e,"OpaqueType",{enumerable:!0,get:function(){return t.opaqueType}}),Object.defineProperty(e,"OptionalCallExpression",{enumerable:!0,get:function(){return t.optionalCallExpression}}),Object.defineProperty(e,"OptionalIndexedAccessType",{enumerable:!0,get:function(){return t.optionalIndexedAccessType}}),Object.defineProperty(e,"OptionalMemberExpression",{enumerable:!0,get:function(){return t.optionalMemberExpression}}),Object.defineProperty(e,"ParenthesizedExpression",{enumerable:!0,get:function(){return t.parenthesizedExpression}}),Object.defineProperty(e,"PipelineBareFunction",{enumerable:!0,get:function(){return t.pipelineBareFunction}}),Object.defineProperty(e,"PipelinePrimaryTopicReference",{enumerable:!0,get:function(){return t.pipelinePrimaryTopicReference}}),Object.defineProperty(e,"PipelineTopicExpression",{enumerable:!0,get:function(){return t.pipelineTopicExpression}}),Object.defineProperty(e,"Placeholder",{enumerable:!0,get:function(){return t.placeholder}}),Object.defineProperty(e,"PrivateName",{enumerable:!0,get:function(){return t.privateName}}),Object.defineProperty(e,"Program",{enumerable:!0,get:function(){return t.program}}),Object.defineProperty(e,"QualifiedTypeIdentifier",{enumerable:!0,get:function(){return t.qualifiedTypeIdentifier}}),Object.defineProperty(e,"RecordExpression",{enumerable:!0,get:function(){return t.recordExpression}}),Object.defineProperty(e,"RegExpLiteral",{enumerable:!0,get:function(){return t.regExpLiteral}}),Object.defineProperty(e,"RegexLiteral",{enumerable:!0,get:function(){return t.regexLiteral}}),Object.defineProperty(e,"RestElement",{enumerable:!0,get:function(){return t.restElement}}),Object.defineProperty(e,"RestProperty",{enumerable:!0,get:function(){return t.restProperty}}),Object.defineProperty(e,"ReturnStatement",{enumerable:!0,get:function(){return t.returnStatement}}),Object.defineProperty(e,"SequenceExpression",{enumerable:!0,get:function(){return t.sequenceExpression}}),Object.defineProperty(e,"SpreadElement",{enumerable:!0,get:function(){return t.spreadElement}}),Object.defineProperty(e,"SpreadProperty",{enumerable:!0,get:function(){return t.spreadProperty}}),Object.defineProperty(e,"StaticBlock",{enumerable:!0,get:function(){return t.staticBlock}}),Object.defineProperty(e,"StringLiteral",{enumerable:!0,get:function(){return t.stringLiteral}}),Object.defineProperty(e,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return t.stringLiteralTypeAnnotation}}),Object.defineProperty(e,"StringTypeAnnotation",{enumerable:!0,get:function(){return t.stringTypeAnnotation}}),Object.defineProperty(e,"Super",{enumerable:!0,get:function(){return t.super}}),Object.defineProperty(e,"SwitchCase",{enumerable:!0,get:function(){return t.switchCase}}),Object.defineProperty(e,"SwitchStatement",{enumerable:!0,get:function(){return t.switchStatement}}),Object.defineProperty(e,"SymbolTypeAnnotation",{enumerable:!0,get:function(){return t.symbolTypeAnnotation}}),Object.defineProperty(e,"TSAnyKeyword",{enumerable:!0,get:function(){return t.tsAnyKeyword}}),Object.defineProperty(e,"TSArrayType",{enumerable:!0,get:function(){return t.tsArrayType}}),Object.defineProperty(e,"TSAsExpression",{enumerable:!0,get:function(){return t.tsAsExpression}}),Object.defineProperty(e,"TSBigIntKeyword",{enumerable:!0,get:function(){return t.tsBigIntKeyword}}),Object.defineProperty(e,"TSBooleanKeyword",{enumerable:!0,get:function(){return t.tsBooleanKeyword}}),Object.defineProperty(e,"TSCallSignatureDeclaration",{enumerable:!0,get:function(){return t.tsCallSignatureDeclaration}}),Object.defineProperty(e,"TSConditionalType",{enumerable:!0,get:function(){return t.tsConditionalType}}),Object.defineProperty(e,"TSConstructSignatureDeclaration",{enumerable:!0,get:function(){return t.tsConstructSignatureDeclaration}}),Object.defineProperty(e,"TSConstructorType",{enumerable:!0,get:function(){return t.tsConstructorType}}),Object.defineProperty(e,"TSDeclareFunction",{enumerable:!0,get:function(){return t.tsDeclareFunction}}),Object.defineProperty(e,"TSDeclareMethod",{enumerable:!0,get:function(){return t.tsDeclareMethod}}),Object.defineProperty(e,"TSEnumDeclaration",{enumerable:!0,get:function(){return t.tsEnumDeclaration}}),Object.defineProperty(e,"TSEnumMember",{enumerable:!0,get:function(){return t.tsEnumMember}}),Object.defineProperty(e,"TSExportAssignment",{enumerable:!0,get:function(){return t.tsExportAssignment}}),Object.defineProperty(e,"TSExpressionWithTypeArguments",{enumerable:!0,get:function(){return t.tsExpressionWithTypeArguments}}),Object.defineProperty(e,"TSExternalModuleReference",{enumerable:!0,get:function(){return t.tsExternalModuleReference}}),Object.defineProperty(e,"TSFunctionType",{enumerable:!0,get:function(){return t.tsFunctionType}}),Object.defineProperty(e,"TSImportEqualsDeclaration",{enumerable:!0,get:function(){return t.tsImportEqualsDeclaration}}),Object.defineProperty(e,"TSImportType",{enumerable:!0,get:function(){return t.tsImportType}}),Object.defineProperty(e,"TSIndexSignature",{enumerable:!0,get:function(){return t.tsIndexSignature}}),Object.defineProperty(e,"TSIndexedAccessType",{enumerable:!0,get:function(){return t.tsIndexedAccessType}}),Object.defineProperty(e,"TSInferType",{enumerable:!0,get:function(){return t.tsInferType}}),Object.defineProperty(e,"TSInstantiationExpression",{enumerable:!0,get:function(){return t.tsInstantiationExpression}}),Object.defineProperty(e,"TSInterfaceBody",{enumerable:!0,get:function(){return t.tsInterfaceBody}}),Object.defineProperty(e,"TSInterfaceDeclaration",{enumerable:!0,get:function(){return t.tsInterfaceDeclaration}}),Object.defineProperty(e,"TSIntersectionType",{enumerable:!0,get:function(){return t.tsIntersectionType}}),Object.defineProperty(e,"TSIntrinsicKeyword",{enumerable:!0,get:function(){return t.tsIntrinsicKeyword}}),Object.defineProperty(e,"TSLiteralType",{enumerable:!0,get:function(){return t.tsLiteralType}}),Object.defineProperty(e,"TSMappedType",{enumerable:!0,get:function(){return t.tsMappedType}}),Object.defineProperty(e,"TSMethodSignature",{enumerable:!0,get:function(){return t.tsMethodSignature}}),Object.defineProperty(e,"TSModuleBlock",{enumerable:!0,get:function(){return t.tsModuleBlock}}),Object.defineProperty(e,"TSModuleDeclaration",{enumerable:!0,get:function(){return t.tsModuleDeclaration}}),Object.defineProperty(e,"TSNamedTupleMember",{enumerable:!0,get:function(){return t.tsNamedTupleMember}}),Object.defineProperty(e,"TSNamespaceExportDeclaration",{enumerable:!0,get:function(){return t.tsNamespaceExportDeclaration}}),Object.defineProperty(e,"TSNeverKeyword",{enumerable:!0,get:function(){return t.tsNeverKeyword}}),Object.defineProperty(e,"TSNonNullExpression",{enumerable:!0,get:function(){return t.tsNonNullExpression}}),Object.defineProperty(e,"TSNullKeyword",{enumerable:!0,get:function(){return t.tsNullKeyword}}),Object.defineProperty(e,"TSNumberKeyword",{enumerable:!0,get:function(){return t.tsNumberKeyword}}),Object.defineProperty(e,"TSObjectKeyword",{enumerable:!0,get:function(){return t.tsObjectKeyword}}),Object.defineProperty(e,"TSOptionalType",{enumerable:!0,get:function(){return t.tsOptionalType}}),Object.defineProperty(e,"TSParameterProperty",{enumerable:!0,get:function(){return t.tsParameterProperty}}),Object.defineProperty(e,"TSParenthesizedType",{enumerable:!0,get:function(){return t.tsParenthesizedType}}),Object.defineProperty(e,"TSPropertySignature",{enumerable:!0,get:function(){return t.tsPropertySignature}}),Object.defineProperty(e,"TSQualifiedName",{enumerable:!0,get:function(){return t.tsQualifiedName}}),Object.defineProperty(e,"TSRestType",{enumerable:!0,get:function(){return t.tsRestType}}),Object.defineProperty(e,"TSSatisfiesExpression",{enumerable:!0,get:function(){return t.tsSatisfiesExpression}}),Object.defineProperty(e,"TSStringKeyword",{enumerable:!0,get:function(){return t.tsStringKeyword}}),Object.defineProperty(e,"TSSymbolKeyword",{enumerable:!0,get:function(){return t.tsSymbolKeyword}}),Object.defineProperty(e,"TSThisType",{enumerable:!0,get:function(){return t.tsThisType}}),Object.defineProperty(e,"TSTupleType",{enumerable:!0,get:function(){return t.tsTupleType}}),Object.defineProperty(e,"TSTypeAliasDeclaration",{enumerable:!0,get:function(){return t.tsTypeAliasDeclaration}}),Object.defineProperty(e,"TSTypeAnnotation",{enumerable:!0,get:function(){return t.tsTypeAnnotation}}),Object.defineProperty(e,"TSTypeAssertion",{enumerable:!0,get:function(){return t.tsTypeAssertion}}),Object.defineProperty(e,"TSTypeLiteral",{enumerable:!0,get:function(){return t.tsTypeLiteral}}),Object.defineProperty(e,"TSTypeOperator",{enumerable:!0,get:function(){return t.tsTypeOperator}}),Object.defineProperty(e,"TSTypeParameter",{enumerable:!0,get:function(){return t.tsTypeParameter}}),Object.defineProperty(e,"TSTypeParameterDeclaration",{enumerable:!0,get:function(){return t.tsTypeParameterDeclaration}}),Object.defineProperty(e,"TSTypeParameterInstantiation",{enumerable:!0,get:function(){return t.tsTypeParameterInstantiation}}),Object.defineProperty(e,"TSTypePredicate",{enumerable:!0,get:function(){return t.tsTypePredicate}}),Object.defineProperty(e,"TSTypeQuery",{enumerable:!0,get:function(){return t.tsTypeQuery}}),Object.defineProperty(e,"TSTypeReference",{enumerable:!0,get:function(){return t.tsTypeReference}}),Object.defineProperty(e,"TSUndefinedKeyword",{enumerable:!0,get:function(){return t.tsUndefinedKeyword}}),Object.defineProperty(e,"TSUnionType",{enumerable:!0,get:function(){return t.tsUnionType}}),Object.defineProperty(e,"TSUnknownKeyword",{enumerable:!0,get:function(){return t.tsUnknownKeyword}}),Object.defineProperty(e,"TSVoidKeyword",{enumerable:!0,get:function(){return t.tsVoidKeyword}}),Object.defineProperty(e,"TaggedTemplateExpression",{enumerable:!0,get:function(){return t.taggedTemplateExpression}}),Object.defineProperty(e,"TemplateElement",{enumerable:!0,get:function(){return t.templateElement}}),Object.defineProperty(e,"TemplateLiteral",{enumerable:!0,get:function(){return t.templateLiteral}}),Object.defineProperty(e,"ThisExpression",{enumerable:!0,get:function(){return t.thisExpression}}),Object.defineProperty(e,"ThisTypeAnnotation",{enumerable:!0,get:function(){return t.thisTypeAnnotation}}),Object.defineProperty(e,"ThrowStatement",{enumerable:!0,get:function(){return t.throwStatement}}),Object.defineProperty(e,"TopicReference",{enumerable:!0,get:function(){return t.topicReference}}),Object.defineProperty(e,"TryStatement",{enumerable:!0,get:function(){return t.tryStatement}}),Object.defineProperty(e,"TupleExpression",{enumerable:!0,get:function(){return t.tupleExpression}}),Object.defineProperty(e,"TupleTypeAnnotation",{enumerable:!0,get:function(){return t.tupleTypeAnnotation}}),Object.defineProperty(e,"TypeAlias",{enumerable:!0,get:function(){return t.typeAlias}}),Object.defineProperty(e,"TypeAnnotation",{enumerable:!0,get:function(){return t.typeAnnotation}}),Object.defineProperty(e,"TypeCastExpression",{enumerable:!0,get:function(){return t.typeCastExpression}}),Object.defineProperty(e,"TypeParameter",{enumerable:!0,get:function(){return t.typeParameter}}),Object.defineProperty(e,"TypeParameterDeclaration",{enumerable:!0,get:function(){return t.typeParameterDeclaration}}),Object.defineProperty(e,"TypeParameterInstantiation",{enumerable:!0,get:function(){return t.typeParameterInstantiation}}),Object.defineProperty(e,"TypeofTypeAnnotation",{enumerable:!0,get:function(){return t.typeofTypeAnnotation}}),Object.defineProperty(e,"UnaryExpression",{enumerable:!0,get:function(){return t.unaryExpression}}),Object.defineProperty(e,"UnionTypeAnnotation",{enumerable:!0,get:function(){return t.unionTypeAnnotation}}),Object.defineProperty(e,"UpdateExpression",{enumerable:!0,get:function(){return t.updateExpression}}),Object.defineProperty(e,"V8IntrinsicIdentifier",{enumerable:!0,get:function(){return t.v8IntrinsicIdentifier}}),Object.defineProperty(e,"VariableDeclaration",{enumerable:!0,get:function(){return t.variableDeclaration}}),Object.defineProperty(e,"VariableDeclarator",{enumerable:!0,get:function(){return t.variableDeclarator}}),Object.defineProperty(e,"Variance",{enumerable:!0,get:function(){return t.variance}}),Object.defineProperty(e,"VoidTypeAnnotation",{enumerable:!0,get:function(){return t.voidTypeAnnotation}}),Object.defineProperty(e,"WhileStatement",{enumerable:!0,get:function(){return t.whileStatement}}),Object.defineProperty(e,"WithStatement",{enumerable:!0,get:function(){return t.withStatement}}),Object.defineProperty(e,"YieldExpression",{enumerable:!0,get:function(){return t.yieldExpression}});var t=require_generated2()}}),require_cloneNode=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/clone/cloneNode.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t=!0,r=!1){return a(e,t,r,new Map)};var t=require_definitions(),r=require_generated(),n=Function.call.bind(Object.prototype.hasOwnProperty);function i(e,t,r,n){return e&&"string"==typeof e.type?a(e,t,r,n):e}function s(e,t,r,n){return Array.isArray(e)?e.map((e=>i(e,t,r,n))):i(e,t,r,n)}function a(e,i=!0,a=!1,l){if(!e)return e;const{type:c}=e,u={type:e.type};if((0,r.isIdentifier)(e))u.name=e.name,n(e,"optional")&&"boolean"==typeof e.optional&&(u.optional=e.optional),n(e,"typeAnnotation")&&(u.typeAnnotation=i?s(e.typeAnnotation,!0,a,l):e.typeAnnotation);else{if(!n(t.NODE_FIELDS,c))throw new Error(`Unknown node type: "${c}"`);for(const p of Object.keys(t.NODE_FIELDS[c]))n(e,p)&&(u[p]=i?(0,r.isFile)(e)&&"comments"===p?o(e.comments,i,a,l):s(e[p],!0,a,l):e[p])}return n(e,"loc")&&(u.loc=a?null:e.loc),n(e,"leadingComments")&&(u.leadingComments=o(e.leadingComments,i,a,l)),n(e,"innerComments")&&(u.innerComments=o(e.innerComments,i,a,l)),n(e,"trailingComments")&&(u.trailingComments=o(e.trailingComments,i,a,l)),n(e,"extra")&&(u.extra=Object.assign({},e.extra)),u}function o(e,t,r,n){return e&&t?e.map((e=>{const t=n.get(e);if(t)return t;const{type:i,value:s,loc:a}=e,o={type:i,value:s,loc:a};return r&&(o.loc=null),n.set(e,o),o})):e}}}),require_clone2=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/clone/clone.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return(0,t.default)(e,!1)};var t=require_cloneNode()}}),require_cloneDeep=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/clone/cloneDeep.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return(0,t.default)(e)};var t=require_cloneNode()}}),require_cloneDeepWithoutLoc=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return(0,t.default)(e,!0,!0)};var t=require_cloneNode()}}),require_cloneWithoutLoc=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return(0,t.default)(e,!1,!0)};var t=require_cloneNode()}}),require_addComments=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/comments/addComments.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t,r){if(!r||!e)return e;const n=`${t}Comments`;e[n]?"leading"===t?e[n]=r.concat(e[n]):e[n].push(...r):e[n]=r;return e}}}),require_addComment=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/comments/addComment.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r,n,i){return(0,t.default)(e,r,[{type:i?"CommentLine":"CommentBlock",value:n}])};var t=require_addComments()}}),require_inherit=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/utils/inherit.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))))}}}),require_inheritInnerComments=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/comments/inheritInnerComments.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r){(0,t.default)("innerComments",e,r)};var t=require_inherit()}}),require_inheritLeadingComments=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/comments/inheritLeadingComments.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r){(0,t.default)("leadingComments",e,r)};var t=require_inherit()}}),require_inheritTrailingComments=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/comments/inheritTrailingComments.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r){(0,t.default)("trailingComments",e,r)};var t=require_inherit()}}),require_inheritsComments=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/comments/inheritsComments.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,i){return(0,t.default)(e,i),(0,r.default)(e,i),(0,n.default)(e,i),e};var t=require_inheritTrailingComments(),r=require_inheritLeadingComments(),n=require_inheritInnerComments()}}),require_removeComments=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/comments/removeComments.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return t.COMMENT_KEYS.forEach((t=>{e[t]=null})),e};var t=require_constants2()}}),require_generated4=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/constants/generated/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WHILE_TYPES=e.USERWHITESPACABLE_TYPES=e.UNARYLIKE_TYPES=e.TYPESCRIPT_TYPES=e.TSTYPE_TYPES=e.TSTYPEELEMENT_TYPES=e.TSENTITYNAME_TYPES=e.TSBASETYPE_TYPES=e.TERMINATORLESS_TYPES=e.STATEMENT_TYPES=e.STANDARDIZED_TYPES=e.SCOPABLE_TYPES=e.PUREISH_TYPES=e.PROPERTY_TYPES=e.PRIVATE_TYPES=e.PATTERN_TYPES=e.PATTERNLIKE_TYPES=e.OBJECTMEMBER_TYPES=e.MODULESPECIFIER_TYPES=e.MODULEDECLARATION_TYPES=e.MISCELLANEOUS_TYPES=e.METHOD_TYPES=e.LVAL_TYPES=e.LOOP_TYPES=e.LITERAL_TYPES=e.JSX_TYPES=e.IMPORTOREXPORTDECLARATION_TYPES=e.IMMUTABLE_TYPES=e.FUNCTION_TYPES=e.FUNCTIONPARENT_TYPES=e.FOR_TYPES=e.FORXSTATEMENT_TYPES=e.FLOW_TYPES=e.FLOWTYPE_TYPES=e.FLOWPREDICATE_TYPES=e.FLOWDECLARATION_TYPES=e.FLOWBASEANNOTATION_TYPES=e.EXPRESSION_TYPES=e.EXPRESSIONWRAPPER_TYPES=e.EXPORTDECLARATION_TYPES=e.ENUMMEMBER_TYPES=e.ENUMBODY_TYPES=e.DECLARATION_TYPES=e.CONDITIONAL_TYPES=e.COMPLETIONSTATEMENT_TYPES=e.CLASS_TYPES=e.BLOCK_TYPES=e.BLOCKPARENT_TYPES=e.BINARY_TYPES=e.ACCESSOR_TYPES=void 0;var t=require_definitions(),r=t.FLIPPED_ALIAS_KEYS.Standardized;e.STANDARDIZED_TYPES=r;var n=t.FLIPPED_ALIAS_KEYS.Expression;e.EXPRESSION_TYPES=n;var i=t.FLIPPED_ALIAS_KEYS.Binary;e.BINARY_TYPES=i;var s=t.FLIPPED_ALIAS_KEYS.Scopable;e.SCOPABLE_TYPES=s;var a=t.FLIPPED_ALIAS_KEYS.BlockParent;e.BLOCKPARENT_TYPES=a;var o=t.FLIPPED_ALIAS_KEYS.Block;e.BLOCK_TYPES=o;var l=t.FLIPPED_ALIAS_KEYS.Statement;e.STATEMENT_TYPES=l;var c=t.FLIPPED_ALIAS_KEYS.Terminatorless;e.TERMINATORLESS_TYPES=c;var u=t.FLIPPED_ALIAS_KEYS.CompletionStatement;e.COMPLETIONSTATEMENT_TYPES=u;var p=t.FLIPPED_ALIAS_KEYS.Conditional;e.CONDITIONAL_TYPES=p;var d=t.FLIPPED_ALIAS_KEYS.Loop;e.LOOP_TYPES=d;var h=t.FLIPPED_ALIAS_KEYS.While;e.WHILE_TYPES=h;var f=t.FLIPPED_ALIAS_KEYS.ExpressionWrapper;e.EXPRESSIONWRAPPER_TYPES=f;var m=t.FLIPPED_ALIAS_KEYS.For;e.FOR_TYPES=m;var y=t.FLIPPED_ALIAS_KEYS.ForXStatement;e.FORXSTATEMENT_TYPES=y;var g=t.FLIPPED_ALIAS_KEYS.Function;e.FUNCTION_TYPES=g;var b=t.FLIPPED_ALIAS_KEYS.FunctionParent;e.FUNCTIONPARENT_TYPES=b;var S=t.FLIPPED_ALIAS_KEYS.Pureish;e.PUREISH_TYPES=S;var T=t.FLIPPED_ALIAS_KEYS.Declaration;e.DECLARATION_TYPES=T;var v=t.FLIPPED_ALIAS_KEYS.PatternLike;e.PATTERNLIKE_TYPES=v;var E=t.FLIPPED_ALIAS_KEYS.LVal;e.LVAL_TYPES=E;var x=t.FLIPPED_ALIAS_KEYS.TSEntityName;e.TSENTITYNAME_TYPES=x;var _=t.FLIPPED_ALIAS_KEYS.Literal;e.LITERAL_TYPES=_;var A=t.FLIPPED_ALIAS_KEYS.Immutable;e.IMMUTABLE_TYPES=A;var P=t.FLIPPED_ALIAS_KEYS.UserWhitespacable;e.USERWHITESPACABLE_TYPES=P;var w=t.FLIPPED_ALIAS_KEYS.Method;e.METHOD_TYPES=w;var D=t.FLIPPED_ALIAS_KEYS.ObjectMember;e.OBJECTMEMBER_TYPES=D;var C=t.FLIPPED_ALIAS_KEYS.Property;e.PROPERTY_TYPES=C;var I=t.FLIPPED_ALIAS_KEYS.UnaryLike;e.UNARYLIKE_TYPES=I;var N=t.FLIPPED_ALIAS_KEYS.Pattern;e.PATTERN_TYPES=N;var k=t.FLIPPED_ALIAS_KEYS.Class;e.CLASS_TYPES=k;var O=t.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;e.IMPORTOREXPORTDECLARATION_TYPES=O;var F=t.FLIPPED_ALIAS_KEYS.ExportDeclaration;e.EXPORTDECLARATION_TYPES=F;var L=t.FLIPPED_ALIAS_KEYS.ModuleSpecifier;e.MODULESPECIFIER_TYPES=L;var j=t.FLIPPED_ALIAS_KEYS.Accessor;e.ACCESSOR_TYPES=j;var M=t.FLIPPED_ALIAS_KEYS.Private;e.PRIVATE_TYPES=M;var B=t.FLIPPED_ALIAS_KEYS.Flow;e.FLOW_TYPES=B;var R=t.FLIPPED_ALIAS_KEYS.FlowType;e.FLOWTYPE_TYPES=R;var q=t.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation;e.FLOWBASEANNOTATION_TYPES=q;var U=t.FLIPPED_ALIAS_KEYS.FlowDeclaration;e.FLOWDECLARATION_TYPES=U;var K=t.FLIPPED_ALIAS_KEYS.FlowPredicate;e.FLOWPREDICATE_TYPES=K;var J=t.FLIPPED_ALIAS_KEYS.EnumBody;e.ENUMBODY_TYPES=J;var V=t.FLIPPED_ALIAS_KEYS.EnumMember;e.ENUMMEMBER_TYPES=V;var W=t.FLIPPED_ALIAS_KEYS.JSX;e.JSX_TYPES=W;var z=t.FLIPPED_ALIAS_KEYS.Miscellaneous;e.MISCELLANEOUS_TYPES=z;var Y=t.FLIPPED_ALIAS_KEYS.TypeScript;e.TYPESCRIPT_TYPES=Y;var X=t.FLIPPED_ALIAS_KEYS.TSTypeElement;e.TSTYPEELEMENT_TYPES=X;var $=t.FLIPPED_ALIAS_KEYS.TSType;e.TSTYPE_TYPES=$;var H=t.FLIPPED_ALIAS_KEYS.TSBaseType;e.TSBASETYPE_TYPES=H;var G=O;e.MODULEDECLARATION_TYPES=G}}),require_toBlock=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/converters/toBlock.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,n){if((0,t.isBlockStatement)(e))return e;let i=[];(0,t.isEmptyStatement)(e)?i=[]:((0,t.isStatement)(e)||(e=(0,t.isFunction)(n)?(0,r.returnStatement)(e):(0,r.expressionStatement)(e)),i=[e]);return(0,r.blockStatement)(i)};var t=require_generated(),r=require_generated2()}}),require_ensureBlock=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/converters/ensureBlock.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r="body"){const n=(0,t.default)(e[r],e);return e[r]=n,n};var t=require_toBlock()}}),require_toIdentifier=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/converters/toIdentifier.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){e+="";let n="";for(const t of e)n+=(0,r.isIdentifierChar)(t.codePointAt(0))?t:"-";n=n.replace(/^[-0-9]+/,""),n=n.replace(/[-\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""})),(0,t.default)(n)||(n=`_${n}`);return n||"_"};var t=require_isValidIdentifier(),r=require_lib3()}}),require_toBindingIdentifierName=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){"eval"!==(e=(0,t.default)(e))&&"arguments"!==e||(e="_"+e);return e};var t=require_toIdentifier()}}),require_toComputedKey=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/converters/toComputedKey.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,n=e.key||e.property){!e.computed&&(0,t.isIdentifier)(n)&&(n=(0,r.stringLiteral)(n.name));return n};var t=require_generated(),r=require_generated2()}}),require_toExpression=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/converters/toExpression.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=require_generated(),r=function(e){(0,t.isExpressionStatement)(e)&&(e=e.expression);if((0,t.isExpression)(e))return e;(0,t.isClass)(e)?e.type="ClassExpression":(0,t.isFunction)(e)&&(e.type="FunctionExpression");if(!(0,t.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e};e.default=r}}),require_traverseFast=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/traverse/traverseFast.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function e(r,n,i){if(!r)return;const s=t.VISITOR_KEYS[r.type];if(!s)return;n(r,i=i||{});for(const t of s){const s=r[t];if(Array.isArray(s))for(const t of s)e(t,n,i);else e(s,n,i)}};var t=require_definitions()}}),require_removeProperties=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/modifications/removeProperties.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t={}){const i=t.preserveComments?r:n;for(const t of i)null!=e[t]&&(e[t]=void 0);for(const t of Object.keys(e))"_"===t[0]&&null!=e[t]&&(e[t]=void 0);const s=Object.getOwnPropertySymbols(e);for(const t of s)e[t]=null};var t=require_constants2(),r=["tokens","start","end","loc","raw","rawValue"],n=[...t.COMMENT_KEYS,"comments",...r]}}),require_removePropertiesDeep=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,n){return(0,t.default)(e,r.default,n),e};var t=require_traverseFast(),r=require_removeProperties()}}),require_toKeyAlias=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/converters/toKeyAlias.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=require_generated(),r=require_cloneNode(),n=require_removePropertiesDeep();function i(e,s=e.key){let a;return"method"===e.kind?i.increment()+"":(a=(0,t.isIdentifier)(s)?s.name:(0,t.isStringLiteral)(s)?JSON.stringify(s.value):JSON.stringify((0,n.default)((0,r.default)(s))),e.computed&&(a=`[${a}]`),e.static&&(a=`static:${a}`),a)}i.uid=0,i.increment=function(){return i.uid>=Number.MAX_SAFE_INTEGER?i.uid=0:i.uid++}}}),require_getBindingIdentifiers=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=require_generated();function r(e,n,i){const s=[].concat(e),a=Object.create(null);for(;s.length;){const e=s.shift();if(!e)continue;const o=r.keys[e.type];if((0,t.isIdentifier)(e))if(n){(a[e.name]=a[e.name]||[]).push(e)}else a[e.name]=e;else if(!(0,t.isExportDeclaration)(e)||(0,t.isExportAllDeclaration)(e)){if(i){if((0,t.isFunctionDeclaration)(e)){s.push(e.id);continue}if((0,t.isFunctionExpression)(e))continue}if(o)for(let t=0;t<o.length;t++){const r=e[o[t]];r&&(Array.isArray(r)?s.push(...r):s.push(r))}}else(0,t.isDeclaration)(e.declaration)&&s.push(e.declaration)}return a}r.keys={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]}}}),require_gatherSequenceExpressions=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function e(s,a,o){const l=[];let c=!0;for(const u of s)if((0,r.isEmptyStatement)(u)||(c=!1),(0,r.isExpression)(u))l.push(u);else if((0,r.isExpressionStatement)(u))l.push(u.expression);else if((0,r.isVariableDeclaration)(u)){if("var"!==u.kind)return;for(const e of u.declarations){const r=(0,t.default)(e);for(const e of Object.keys(r))o.push({kind:u.kind,id:(0,i.default)(r[e])});e.init&&l.push((0,n.assignmentExpression)("=",e.id,e.init))}c=!0}else if((0,r.isIfStatement)(u)){const t=u.consequent?e([u.consequent],a,o):a.buildUndefinedNode(),r=u.alternate?e([u.alternate],a,o):a.buildUndefinedNode();if(!t||!r)return;l.push((0,n.conditionalExpression)(u.test,t,r))}else if((0,r.isBlockStatement)(u)){const t=e(u.body,a,o);if(!t)return;l.push(t)}else{if(!(0,r.isEmptyStatement)(u))return;0===s.indexOf(u)&&(c=!0)}c&&l.push(a.buildUndefinedNode());return 1===l.length?l[0]:(0,n.sequenceExpression)(l)};var t=require_getBindingIdentifiers(),r=require_generated(),n=require_generated2(),i=require_cloneNode()}}),require_toSequenceExpression=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/converters/toSequenceExpression.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r){if(null==e||!e.length)return;const n=[],i=(0,t.default)(e,r,n);if(!i)return;for(const e of n)r.push(e);return i};var t=require_gatherSequenceExpressions()}}),require_toStatement=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/converters/toStatement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=require_generated(),r=require_generated2(),n=function(e,n){if((0,t.isStatement)(e))return e;let i,s=!1;if((0,t.isClass)(e))s=!0,i="ClassDeclaration";else if((0,t.isFunction)(e))s=!0,i="FunctionDeclaration";else if((0,t.isAssignmentExpression)(e))return(0,r.expressionStatement)(e);s&&!e.id&&(i=!1);if(!i){if(n)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=i,e};e.default=n}}),require_valueToNode=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/converters/valueToNode.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=require_isValidIdentifier(),r=require_generated2(),n=function e(n){if(void 0===n)return(0,r.identifier)("undefined");if(!0===n||!1===n)return(0,r.booleanLiteral)(n);if(null===n)return(0,r.nullLiteral)();if("string"==typeof n)return(0,r.stringLiteral)(n);if("number"==typeof n){let e;if(Number.isFinite(n))e=(0,r.numericLiteral)(Math.abs(n));else{let t;t=Number.isNaN(n)?(0,r.numericLiteral)(0):(0,r.numericLiteral)(1),e=(0,r.binaryExpression)("/",t,(0,r.numericLiteral)(0))}return(n<0||Object.is(n,-0))&&(e=(0,r.unaryExpression)("-",e)),e}if(function(e){return"[object RegExp]"===i(e)}(n)){const e=n.source,t=n.toString().match(/\/([a-z]+|)$/)[1];return(0,r.regExpLiteral)(e,t)}if(Array.isArray(n))return(0,r.arrayExpression)(n.map(e));if(function(e){if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(n)){const i=[];for(const s of Object.keys(n)){let a;a=(0,t.default)(s)?(0,r.identifier)(s):(0,r.stringLiteral)(s),i.push((0,r.objectProperty)(a,e(n[s])))}return(0,r.objectExpression)(i)}throw new Error("don't know how to turn this value into a node")};e.default=n;var i=Function.call.bind(Object.prototype.toString)}}),require_appendToMemberExpression=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r,n=!1){return e.object=(0,t.memberExpression)(e.object,e.property,e.computed),e.property=r,e.computed=!!n,e};var t=require_generated2()}}),require_inherits2=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/modifications/inherits.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,n){if(!e||!n)return e;for(const r of t.INHERIT_KEYS.optional)null==e[r]&&(e[r]=n[r]);for(const t of Object.keys(n))"_"===t[0]&&"__clone"!==t&&(e[t]=n[t]);for(const r of t.INHERIT_KEYS.force)e[r]=n[r];return(0,r.default)(e,n),e};var t=require_constants2(),r=require_inheritsComments()}}),require_prependToMemberExpression=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,n){if((0,r.isSuper)(e.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0,t.memberExpression)(n,e.object),e};var t=require_generated2(),r=require_lib5()}}),require_getOuterBindingIdentifiers=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=require_getBindingIdentifiers(),r=function(e,r){return(0,t.default)(e,r,!0)};e.default=r}}),require_traverse=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/traverse/traverse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t,n){"function"==typeof t&&(t={enter:t});const{enter:i,exit:s}=t;r(e,i,s,n,[])};var t=require_definitions();function r(e,n,i,s,a){const o=t.VISITOR_KEYS[e.type];if(o){n&&n(e,a,s);for(const t of o){const o=e[t];if(Array.isArray(o))for(let l=0;l<o.length;l++){const c=o[l];c&&(a.push({node:e,key:t,index:l}),r(c,n,i,s,a),a.pop())}else o&&(a.push({node:e,key:t}),r(o,n,i,s,a),a.pop())}i&&i(e,a,s)}}}}),require_isBinding=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/validators/isBinding.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r,n){if(n&&"Identifier"===e.type&&"ObjectProperty"===r.type&&"ObjectExpression"===n.type)return!1;const i=t.default.keys[r.type];if(i)for(let t=0;t<i.length;t++){const n=r[i[t]];if(Array.isArray(n)){if(n.indexOf(e)>=0)return!0}else if(n===e)return!0}return!1};var t=require_getBindingIdentifiers()}}),require_isLet=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/validators/isLet.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return(0,t.isVariableDeclaration)(e)&&("var"!==e.kind||e[r.BLOCK_SCOPED_SYMBOL])};var t=require_generated(),r=require_constants2()}}),require_isBlockScoped=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/validators/isBlockScoped.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return(0,t.isFunctionDeclaration)(e)||(0,t.isClassDeclaration)(e)||(0,r.default)(e)};var t=require_generated(),r=require_isLet()}}),require_isImmutable=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/validators/isImmutable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){if((0,t.default)(e.type,"Immutable"))return!0;if((0,r.isIdentifier)(e))return"undefined"===e.name;return!1};var t=require_isType(),r=require_generated()}}),require_isNodesEquivalent=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/validators/isNodesEquivalent.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function e(r,n){if("object"!=typeof r||"object"!=typeof n||null==r||null==n)return r===n;if(r.type!==n.type)return!1;const i=Object.keys(t.NODE_FIELDS[r.type]||r.type),s=t.VISITOR_KEYS[r.type];for(const t of i){const i=r[t],a=n[t];if(typeof i!=typeof a)return!1;if(null!=i||null!=a){if(null==i||null==a)return!1;if(Array.isArray(i)){if(!Array.isArray(a))return!1;if(i.length!==a.length)return!1;for(let t=0;t<i.length;t++)if(!e(i[t],a[t]))return!1}else if("object"!=typeof i||null!=s&&s.includes(t)){if(!e(i,a))return!1}else for(const e of Object.keys(i))if(i[e]!==a[e])return!1}}return!0};var t=require_definitions()}}),require_isReferenced=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/validators/isReferenced.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":case"LabeledStatement":case"CatchClause":case"RestElement":case"BreakStatement":case"ContinueStatement":case"FunctionDeclaration":case"FunctionExpression":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportAttribute":case"JSXAttribute":case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e&&!!t.computed;case"ObjectProperty":return t.key===e?!!t.computed:!r||"ObjectPattern"!==r.type;case"ClassProperty":case"ClassAccessorProperty":case"TSPropertySignature":return t.key!==e||!!t.computed;case"ClassPrivateProperty":case"ObjectTypeProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;case"ExportSpecifier":return(null==r||!r.source)&&t.local===e;case"TSEnumMember":return t.id!==e}return!0}}}),require_isScope=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/validators/isScope.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r){if((0,t.isBlockStatement)(e)&&((0,t.isFunction)(r)||(0,t.isCatchClause)(r)))return!1;if((0,t.isPattern)(e)&&((0,t.isFunction)(r)||(0,t.isCatchClause)(r)))return!0;return(0,t.isScopable)(e)};var t=require_generated()}}),require_isSpecifierDefault=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/validators/isSpecifierDefault.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return(0,t.isImportDefaultSpecifier)(e)||(0,t.isIdentifier)(e.imported||e.exported,{name:"default"})};var t=require_generated()}}),require_isValidES3Identifier=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/validators/isValidES3Identifier.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return(0,t.default)(e)&&!r.has(e)};var t=require_isValidIdentifier(),r=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"])}}),require_isVar=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/validators/isVar.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return(0,t.isVariableDeclaration)(e,{kind:"var"})&&!e[r.BLOCK_SCOPED_SYMBOL]};var t=require_generated(),r=require_constants2()}}),require_lib5=__commonJS({"../../node_modules/.pnpm/@babel+types@7.21.5/node_modules/@babel/types/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toSequenceExpression:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(e,"__internal__deprecationWarning",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(e,"addComment",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"addComments",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"appendToMemberExpression",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(e,"assertNode",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"buildMatchMemberExpression",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(e,"clone",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"cloneDeep",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"cloneNode",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"cloneWithoutLoc",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"createFlowUnionType",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"createTSUnionType",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"ensureBlock",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"getBindingIdentifiers",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(e,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(e,"inheritInnerComments",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"inheritLeadingComments",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"inheritTrailingComments",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"inherits",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"inheritsComments",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"is",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(e,"isBinding",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(e,"isBlockScoped",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(e,"isImmutable",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"isLet",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(e,"isNode",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(e,"isNodesEquivalent",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(e,"isPlaceholderType",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(e,"isReferenced",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(e,"isScope",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(e,"isSpecifierDefault",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(e,"isType",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(e,"isValidES3Identifier",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(e,"isValidIdentifier",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(e,"isVar",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(e,"matchesPattern",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(e,"prependToMemberExpression",{enumerable:!0,get:function(){return R.default}}),e.react=void 0,Object.defineProperty(e,"removeComments",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"removeProperties",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(e,"removePropertiesDeep",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(e,"removeTypeDuplicates",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(e,"shallowEqual",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(e,"toBindingIdentifierName",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"toBlock",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(e,"toComputedKey",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"toExpression",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"toIdentifier",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"toKeyAlias",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"toSequenceExpression",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"toStatement",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(e,"traverse",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(e,"traverseFast",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(e,"valueToNode",{enumerable:!0,get:function(){return L.default}});var r=require_isReactComponent(),n=require_isCompatTag(),i=require_buildChildren(),s=require_assertNode(),a=require_generated3();Object.keys(a).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===a[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return a[r]}}))}));var o=require_createTypeAnnotationBasedOnTypeof(),l=require_createFlowUnionType(),c=require_createTSUnionType(),u=require_generated2();Object.keys(u).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===u[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return u[r]}}))}));var p=require_uppercase();Object.keys(p).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===p[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return p[r]}}))}));var d=require_cloneNode(),h=require_clone2(),f=require_cloneDeep(),m=require_cloneDeepWithoutLoc(),y=require_cloneWithoutLoc(),g=require_addComment(),b=require_addComments(),S=require_inheritInnerComments(),T=require_inheritLeadingComments(),v=require_inheritsComments(),E=require_inheritTrailingComments(),x=require_removeComments(),_=require_generated4();Object.keys(_).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===_[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return _[r]}}))}));var A=require_constants2();Object.keys(A).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===A[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[r]}}))}));var P=require_ensureBlock(),w=require_toBindingIdentifierName(),D=require_toBlock(),C=require_toComputedKey(),I=require_toExpression(),N=require_toIdentifier(),k=require_toKeyAlias(),O=require_toSequenceExpression(),F=require_toStatement(),L=require_valueToNode(),j=require_definitions();Object.keys(j).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===j[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return j[r]}}))}));var M=require_appendToMemberExpression(),B=require_inherits2(),R=require_prependToMemberExpression(),q=require_removeProperties(),U=require_removePropertiesDeep(),K=require_removeTypeDuplicates(),J=require_getBindingIdentifiers(),V=require_getOuterBindingIdentifiers(),W=require_traverse();Object.keys(W).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===W[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return W[r]}}))}));var z=require_traverseFast(),Y=require_shallowEqual(),X=require_is(),$=require_isBinding(),H=require_isBlockScoped(),G=require_isImmutable(),Q=require_isLet(),Z=require_isNode(),ee=require_isNodesEquivalent(),te=require_isPlaceholderType(),re=require_isReferenced(),ne=require_isScope(),ie=require_isSpecifierDefault(),se=require_isType(),ae=require_isValidES3Identifier(),oe=require_isValidIdentifier(),le=require_isVar(),ce=require_matchesPattern(),ue=require_validate(),pe=require_buildMatchMemberExpression(),de=require_generated();Object.keys(de).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===de[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return de[r]}}))}));var he=require_deprecationWarning(),fe={isReactComponent:r.default,isCompatTag:n.default,buildChildren:i.default};e.react=fe}}),require_lib6=__commonJS({"../../node_modules/.pnpm/@babel+parser@7.23.9/node_modules/@babel/parser/lib/index.js"(e){function t(e,t){if(null==e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}Object.defineProperty(e,"__esModule",{value:!0});var r=class{constructor(e,t,r){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=r}},n=class{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}};function i(e,t){const{line:n,column:i,index:s}=e;return new r(n,i+t,s+t)}var s="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",a={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:s},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:s}},o={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},l=({type:e,prefix:t})=>"UpdateExpression"===e?o.UpdateExpression[String(t)]:o[e],c={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:e})=>`'import.${e}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${"ForInStatement"===e?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${"BreakStatement"===e?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:e})=>`\`import()\` requires exactly ${1===e?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${l(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${l(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${l(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map((e=>JSON.stringify(e))).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map((e=>JSON.stringify(e))).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},u=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),p={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${l({type:e})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},d=["toMessage"],h=["message"];function f(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function m(e){let{toMessage:n}=e,i=t(e,d);return function e(t,s){const a=new SyntaxError;return Object.assign(a,i,{loc:t,pos:t.index}),"missingPlugin"in s&&Object.assign(a,{missingPlugin:s.missingPlugin}),f(a,"clone",(function(n={}){var i;const{line:a,column:o,index:l}=null!=(i=n.loc)?i:t;return e(new r(a,o,l),Object.assign({},s,n.details))})),f(a,"details",s),Object.defineProperty(a,"message",{configurable:!0,get(){const e=`${n(s)} (${t.line}:${t.column})`;return this.message=e,e},set(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),a}}function y(e,r){if(Array.isArray(e))return t=>y(t,e[0]);const n={};for(const i of Object.keys(e)){const s=e[i],a="string"==typeof s?{message:()=>s}:"function"==typeof s?{message:s}:s,{message:o}=a,l=t(a,h),c="string"==typeof o?()=>o:o;n[i]=m(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:c},r?{syntaxPlugin:r}:{},l))}return n}var g=Object.assign({},y(a),y(c),y({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),y`pipelineOperator`(p)),{defineProperty:b}=Object,S=(e,t)=>b(e,t,{enumerable:!1,value:e[t]});function T(e){return e.loc.start&&S(e.loc.start,"index"),e.loc.end&&S(e.loc.end,"index"),e}var v=class{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}},E={brace:new v("{"),j_oTag:new v("<tag"),j_cTag:new v("</tag"),j_expr:new v("<tag>...</tag>",!0)};E.template=new v("`",!0);var x=!0,_=!0,A=!0,P=!0,w=!0,D=class{constructor(e,t={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null}},C=new Map;function I(e,t={}){t.keyword=e;const r=R(e,t);return C.set(e,r),r}function N(e,t){return R(e,{beforeExpr:x,binop:t})}var k=-1,O=[],F=[],L=[],j=[],M=[],B=[];function R(e,t={}){var r,n,i,s;return++k,F.push(e),L.push(null!=(r=t.binop)?r:-1),j.push(null!=(n=t.beforeExpr)&&n),M.push(null!=(i=t.startsExpr)&&i),B.push(null!=(s=t.prefix)&&s),O.push(new D(e,t)),k}function q(e,t={}){var r,n,i,s;return++k,C.set(e,k),F.push(e),L.push(null!=(r=t.binop)?r:-1),j.push(null!=(n=t.beforeExpr)&&n),M.push(null!=(i=t.startsExpr)&&i),B.push(null!=(s=t.prefix)&&s),O.push(new D("name",t)),k}var U={bracketL:R("[",{beforeExpr:x,startsExpr:_}),bracketHashL:R("#[",{beforeExpr:x,startsExpr:_}),bracketBarL:R("[|",{beforeExpr:x,startsExpr:_}),bracketR:R("]"),bracketBarR:R("|]"),braceL:R("{",{beforeExpr:x,startsExpr:_}),braceBarL:R("{|",{beforeExpr:x,startsExpr:_}),braceHashL:R("#{",{beforeExpr:x,startsExpr:_}),braceR:R("}"),braceBarR:R("|}"),parenL:R("(",{beforeExpr:x,startsExpr:_}),parenR:R(")"),comma:R(",",{beforeExpr:x}),semi:R(";",{beforeExpr:x}),colon:R(":",{beforeExpr:x}),doubleColon:R("::",{beforeExpr:x}),dot:R("."),question:R("?",{beforeExpr:x}),questionDot:R("?."),arrow:R("=>",{beforeExpr:x}),template:R("template"),ellipsis:R("...",{beforeExpr:x}),backQuote:R("`",{startsExpr:_}),dollarBraceL:R("${",{beforeExpr:x,startsExpr:_}),templateTail:R("...`",{startsExpr:_}),templateNonTail:R("...${",{beforeExpr:x,startsExpr:_}),at:R("@"),hash:R("#",{startsExpr:_}),interpreterDirective:R("#!..."),eq:R("=",{beforeExpr:x,isAssign:P}),assign:R("_=",{beforeExpr:x,isAssign:P}),slashAssign:R("_=",{beforeExpr:x,isAssign:P}),xorAssign:R("_=",{beforeExpr:x,isAssign:P}),moduloAssign:R("_=",{beforeExpr:x,isAssign:P}),incDec:R("++/--",{prefix:w,postfix:!0,startsExpr:_}),bang:R("!",{beforeExpr:x,prefix:w,startsExpr:_}),tilde:R("~",{beforeExpr:x,prefix:w,startsExpr:_}),doubleCaret:R("^^",{startsExpr:_}),doubleAt:R("@@",{startsExpr:_}),pipeline:N("|>",0),nullishCoalescing:N("??",1),logicalOR:N("||",1),logicalAND:N("&&",2),bitwiseOR:N("|",3),bitwiseXOR:N("^",4),bitwiseAND:N("&",5),equality:N("==/!=/===/!==",6),lt:N("</>/<=/>=",7),gt:N("</>/<=/>=",7),relational:N("</>/<=/>=",7),bitShift:N("<</>>/>>>",8),bitShiftL:N("<</>>/>>>",8),bitShiftR:N("<</>>/>>>",8),plusMin:R("+/-",{beforeExpr:x,binop:9,prefix:w,startsExpr:_}),modulo:R("%",{binop:10,startsExpr:_}),star:R("*",{binop:10}),slash:N("/",10),exponent:R("**",{beforeExpr:x,binop:11,rightAssociative:!0}),_in:I("in",{beforeExpr:x,binop:7}),_instanceof:I("instanceof",{beforeExpr:x,binop:7}),_break:I("break"),_case:I("case",{beforeExpr:x}),_catch:I("catch"),_continue:I("continue"),_debugger:I("debugger"),_default:I("default",{beforeExpr:x}),_else:I("else",{beforeExpr:x}),_finally:I("finally"),_function:I("function",{startsExpr:_}),_if:I("if"),_return:I("return",{beforeExpr:x}),_switch:I("switch"),_throw:I("throw",{beforeExpr:x,prefix:w,startsExpr:_}),_try:I("try"),_var:I("var"),_const:I("const"),_with:I("with"),_new:I("new",{beforeExpr:x,startsExpr:_}),_this:I("this",{startsExpr:_}),_super:I("super",{startsExpr:_}),_class:I("class",{startsExpr:_}),_extends:I("extends",{beforeExpr:x}),_export:I("export"),_import:I("import",{startsExpr:_}),_null:I("null",{startsExpr:_}),_true:I("true",{startsExpr:_}),_false:I("false",{startsExpr:_}),_typeof:I("typeof",{beforeExpr:x,prefix:w,startsExpr:_}),_void:I("void",{beforeExpr:x,prefix:w,startsExpr:_}),_delete:I("delete",{beforeExpr:x,prefix:w,startsExpr:_}),_do:I("do",{isLoop:A,beforeExpr:x}),_for:I("for",{isLoop:A}),_while:I("while",{isLoop:A}),_as:q("as",{startsExpr:_}),_assert:q("assert",{startsExpr:_}),_async:q("async",{startsExpr:_}),_await:q("await",{startsExpr:_}),_defer:q("defer",{startsExpr:_}),_from:q("from",{startsExpr:_}),_get:q("get",{startsExpr:_}),_let:q("let",{startsExpr:_}),_meta:q("meta",{startsExpr:_}),_of:q("of",{startsExpr:_}),_sent:q("sent",{startsExpr:_}),_set:q("set",{startsExpr:_}),_source:q("source",{startsExpr:_}),_static:q("static",{startsExpr:_}),_using:q("using",{startsExpr:_}),_yield:q("yield",{startsExpr:_}),_asserts:q("asserts",{startsExpr:_}),_checks:q("checks",{startsExpr:_}),_exports:q("exports",{startsExpr:_}),_global:q("global",{startsExpr:_}),_implements:q("implements",{startsExpr:_}),_intrinsic:q("intrinsic",{startsExpr:_}),_infer:q("infer",{startsExpr:_}),_is:q("is",{startsExpr:_}),_mixins:q("mixins",{startsExpr:_}),_proto:q("proto",{startsExpr:_}),_require:q("require",{startsExpr:_}),_satisfies:q("satisfies",{startsExpr:_}),_keyof:q("keyof",{startsExpr:_}),_readonly:q("readonly",{startsExpr:_}),_unique:q("unique",{startsExpr:_}),_abstract:q("abstract",{startsExpr:_}),_declare:q("declare",{startsExpr:_}),_enum:q("enum",{startsExpr:_}),_module:q("module",{startsExpr:_}),_namespace:q("namespace",{startsExpr:_}),_interface:q("interface",{startsExpr:_}),_type:q("type",{startsExpr:_}),_opaque:q("opaque",{startsExpr:_}),name:R("name",{startsExpr:_}),string:R("string",{startsExpr:_}),num:R("num",{startsExpr:_}),bigint:R("bigint",{startsExpr:_}),decimal:R("decimal",{startsExpr:_}),regexp:R("regexp",{startsExpr:_}),privateName:R("#name",{startsExpr:_}),eof:R("eof"),jsxName:R("jsxName"),jsxText:R("jsxText",{beforeExpr:!0}),jsxTagStart:R("jsxTagStart",{startsExpr:!0}),jsxTagEnd:R("jsxTagEnd"),placeholder:R("%%",{startsExpr:!0})};function K(e){return e>=93&&e<=132}function J(e){return e>=58&&e<=132}function V(e){return e>=58&&e<=136}function W(e){return M[e]}function z(e){return e>=129&&e<=131}function Y(e){return e>=58&&e<=92}function X(e){return F[e]}function $(e){return L[e]}function H(e){return e>=24&&e<=25}function G(e){return O[e]}O[8].updateContext=e=>{e.pop()},O[5].updateContext=O[7].updateContext=O[23].updateContext=e=>{e.push(E.brace)},O[22].updateContext=e=>{e[e.length-1]===E.template?e.pop():e.push(E.template)},O[142].updateContext=e=>{e.push(E.j_expr,E.j_oTag)};var Q="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼＡ-Ｚａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ",Z="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏０-９＿･",ee=new RegExp("["+Q+"]"),te=new RegExp("["+Q+Z+"]");Q=Z=null;var re=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],ne=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function ie(e,t){let r=65536;for(let n=0,i=t.length;n<i;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function se(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&ee.test(String.fromCharCode(e)):ie(e,re)))}function ae(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&te.test(String.fromCharCode(e)):ie(e,re)||ie(e,ne))))}var oe=["implements","interface","let","package","private","protected","public","static","yield"],le=["eval","arguments"],ce=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),ue=new Set(oe),pe=new Set(le);function de(e,t){return t&&"await"===e||"enum"===e}function he(e,t){return de(e,t)||ue.has(e)}function fe(e){return pe.has(e)}function me(e,t){return he(e,t)||fe(e)}var ye=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);var ge=class{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}},be=class{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){const e=this.currentThisScopeFlags();return(64&e)>0&&!(2&e)}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(128&t)return!0;if(451&t)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new ge(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}declareName(e,t,r){let n=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(n,e,t,r);let i=n.names.get(e)||0;16&t?i|=4:(n.firstLexicalName||(n.firstLexicalName=e),i|=2),n.names.set(e,i),8&t&&this.maybeExportDefined(n,e)}else if(4&t)for(let i=this.scopeStack.length-1;i>=0&&(n=this.scopeStack[i],this.checkRedeclarationInScope(n,e,t,r),n.names.set(e,1|(n.names.get(e)||0)),this.maybeExportDefined(n,e),!(387&n.flags));--i);this.parser.inModule&&1&n.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,n){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(g.VarRedeclaration,n,{identifierName:t})}isRedeclaredInScope(e,t,r){if(!(1&r))return!1;if(8&r)return e.names.has(t);const n=e.names.get(t);return 16&r?(2&n)>0||!this.treatFunctionsAsVarInScope(e)&&(1&n)>0:(2&n)>0&&!(8&e.flags&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(4&n)>0}checkLocalExport(e){const{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(387&t)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(451&t&&!(4&t))return t}}},Se=class extends ge{constructor(...e){super(...e),this.declareFunctions=new Set}},Te=class extends be{createScope(e){return new Se(e)}declareName(e,t,r){const n=this.currentScope();if(2048&t)return this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e),void n.declareFunctions.add(e);super.declareName(e,t,r)}isRedeclaredInScope(e,t,r){if(super.isRedeclaredInScope(e,t,r))return!0;if(2048&r&&!e.declareFunctions.has(t)){const r=e.names.get(t);return(4&r)>0||(2&r)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},ve=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{const[t,r]=e;if(!this.hasPlugin(t))return!1;const n=this.plugins.get(t);for(const e of Object.keys(r))if((null==n?void 0:n[e])!==r[e])return!1;return!0}}getPluginOption(e,t){var r;return null==(r=this.plugins.get(e))?void 0:r[t]}};function Ee(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function xe(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function _e(e,t,r){let n=null,i=t.length;for(;null===n&&i>0;)n=t[--i];null===n||n.start>r.start?xe(e,r.comments):Ee(n,r.comments)}var Ae=class extends ve{addComment(e){this.filename&&(e.loc.filename=this.filename);const{commentsLen:t}=this.state;this.comments.length!=t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){const{commentStack:t}=this.state,r=t.length;if(0===r)return;let n=r-1;const i=t[n];i.start===e.end&&(i.leadingNode=e,n--);const{start:s}=e;for(;n>=0;n--){const r=t[n],i=r.end;if(!(i>s)){i===s&&(r.trailingNode=e);break}r.containingNode=e,this.finalizeComment(r),t.splice(n,1)}}finalizeComment(e){const{comments:t}=e;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&Ee(e.leadingNode,t),null!==e.trailingNode&&function(e,t){void 0===e.leadingComments?e.leadingComments=t:e.leadingComments.unshift(...t)}(e.trailingNode,t);else{const{containingNode:r,start:n}=e;if(44===this.input.charCodeAt(n-1))switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":_e(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":_e(r,r.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":_e(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":_e(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":_e(r,r.specifiers,e);break;default:xe(r,t)}else xe(r,t)}}finalizeRemainingComments(){const{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){const{commentStack:t}=this.state,{length:r}=t;if(0===r)return;const n=t[r-1];n.leadingNode===e&&(n.leadingNode=null)}resetPreviousIdentifierLeadingComments(e){const{commentStack:t}=this.state,{length:r}=t;0!==r&&(t[r-1].trailingNode===e?t[r-1].trailingNode=null:r>=2&&t[r-2].trailingNode===e&&(t[r-2].trailingNode=null))}takeSurroundingComments(e,t,r){const{commentStack:n}=this.state,i=n.length;if(0===i)return;let s=i-1;for(;s>=0;s--){const i=n[s],a=i.end;if(i.start===r)i.leadingNode=e;else if(a===t)i.trailingNode=e;else if(a<t)break}}},Pe=/\r\n?|[\n\u2028\u2029]/,we=new RegExp(Pe.source,"g");function De(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}var Ce=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Ie=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g,Ne=new RegExp("(?=("+Ie.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function ke(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var Oe=class{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[E.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:t,startLine:n,startColumn:i}){this.strict=!1!==e&&(!0===e||"module"===t),this.curLine=n,this.lineStart=-i,this.startLoc=this.endLoc=new r(n,i,0)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}curPosition(){return new r(this.curLine,this.pos-this.lineStart,this.pos)}clone(){const e=new Oe;return e.flags=this.flags,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}},Fe=function(e){return e>=48&&e<=57},Le={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},je={bin:e=>48===e||49===e,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function Me(e,t,r,n,i,s){const a=r,o=n,l=i;let c="",u=null,p=r;const{length:d}=t;for(;;){if(r>=d){s.unterminated(a,o,l),c+=t.slice(p,r);break}const h=t.charCodeAt(r);if(Be(e,h,t,r)){c+=t.slice(p,r);break}if(92===h){c+=t.slice(p,r);const a=Re(t,r,n,i,"template"===e,s);null!==a.ch||u?c+=a.ch:u={pos:r,lineStart:n,curLine:i},({pos:r,lineStart:n,curLine:i}=a),p=r}else 8232===h||8233===h?(++i,n=++r):10===h||13===h?"template"===e?(c+=t.slice(p,r)+"\n",++r,13===h&&10===t.charCodeAt(r)&&++r,++i,p=n=r):s.unterminated(a,o,l):++r}return{pos:r,str:c,firstInvalidLoc:u,lineStart:n,curLine:i,containsInvalid:!!u}}function Be(e,t,r,n){return"template"===e?96===t||36===t&&123===r.charCodeAt(n+1):t===("double"===e?34:39)}function Re(e,t,r,n,i,s){const a=!i;t++;const o=e=>({pos:t,ch:e,lineStart:r,curLine:n}),l=e.charCodeAt(t++);switch(l){case 110:return o("\n");case 114:return o("\r");case 120:{let i;return({code:i,pos:t}=qe(e,t,r,n,2,!1,a,s)),o(null===i?null:String.fromCharCode(i))}case 117:{let i;return({code:i,pos:t}=Ke(e,t,r,n,a,s)),o(null===i?null:String.fromCodePoint(i))}case 116:return o("\t");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);s.strictNumericEscape(t-1,r,n);default:if(l>=48&&l<=55){const a=t-1;let l=e.slice(a,t+2).match(/^[0-7]+/)[0],c=parseInt(l,8);c>255&&(l=l.slice(0,-1),c=parseInt(l,8)),t+=l.length-1;const u=e.charCodeAt(t);if("0"!==l||56===u||57===u){if(i)return o(null);s.strictNumericEscape(a,r,n)}return o(String.fromCharCode(c))}return o(String.fromCharCode(l))}}function qe(e,t,r,n,i,s,a,o){const l=t;let c;return({n:c,pos:t}=Ue(e,t,r,n,16,i,s,!1,o,!a)),null===c&&(a?o.invalidEscapeSequence(l,r,n):t=l-1),{code:c,pos:t}}function Ue(e,t,r,n,i,s,a,o,l,c){const u=t,p=16===i?Le.hex:Le.decBinOct,d=16===i?je.hex:10===i?je.dec:8===i?je.oct:je.bin;let h=!1,f=0;for(let u=0,m=null==s?1/0:s;u<m;++u){const s=e.charCodeAt(t);let u;if(95!==s||"bail"===o){if(u=s>=97?s-97+10:s>=65?s-65+10:Fe(s)?s-48:1/0,u>=i){if(u<=9&&c)return{n:null,pos:t};if(u<=9&&l.invalidDigit(t,r,n,i))u=0;else{if(!a)break;u=0,h=!0}}++t,f=f*i+u}else{const i=e.charCodeAt(t-1),s=e.charCodeAt(t+1);if(o){if(Number.isNaN(s)||!d(s)||p.has(i)||p.has(s)){if(c)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,n)}}else{if(c)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,n)}++t}}return t===u||null!=s&&t-u!==s||h?{n:null,pos:t}:{n:f,pos:t}}function Ke(e,t,r,n,i,s){let a;if(123===e.charCodeAt(t)){if(++t,({code:a,pos:t}=qe(e,t,r,n,e.indexOf("}",t)-t,!0,i,s)),++t,null!==a&&a>1114111){if(!i)return{code:null,pos:t};s.invalidCodePoint(t,r,n)}}else({code:a,pos:t}=qe(e,t,r,n,4,!1,i,s));return{code:a,pos:t}}function Je(e,t,n){return new r(n,e-t,e)}var Ve=new Set([103,109,115,105,121,117,100,118]),We=class{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new n(e.startLoc,e.endLoc)}},ze=class extends Ae{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,r,n)=>!!this.options.errorRecovery&&(this.raise(g.InvalidDigit,Je(e,t,r),{radix:n}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(g.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(g.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(g.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(g.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,r)=>{this.recordStrictModeErrors(g.StrictNumericEscape,Je(e,t,r))},unterminated:(e,t,r)=>{throw this.raise(g.UnterminatedString,Je(e-1,t,r))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(g.StrictNumericEscape),unterminated:(e,t,r)=>{throw this.raise(g.UnterminatedTemplate,Je(e,t,r))}}),this.state=new Oe,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new We(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){const e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Ce.lastIndex=e,Ce.test(this.input)?Ce.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return Ie.lastIndex=e,Ie.test(this.input)?Ie.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if(55296==(64512&t)&&++e<this.input.length){const r=this.input.charCodeAt(e);56320==(64512&r)&&(t=65536+((1023&t)<<10)+(1023&r))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach((([e,t])=>this.raise(e,t))),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(139):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());const r=this.state.pos,i=this.input.indexOf(e,r+2);if(-1===i)throw this.raise(g.UnterminatedComment,this.state.curPosition());for(this.state.pos=i+e.length,we.lastIndex=r+2;we.test(this.input)&&we.lastIndex<=i;)++this.state.curLine,this.state.lineStart=we.lastIndex;if(this.isLookahead)return;const s={type:"CommentBlock",value:this.input.slice(r+2,i),start:r,end:i+e.length,loc:new n(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(s),s}skipLineComment(e){const t=this.state.pos;let r;this.isLookahead||(r=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!De(i)&&++this.state.pos<this.length;)i=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const s=this.state.pos,a={type:"CommentLine",value:this.input.slice(t+e,s),start:t,end:s,loc:new n(r,this.state.curPosition())};return this.options.tokens&&this.pushToken(a),a}skipSpace(){const e=this.state.pos,t=[];e:for(;this.state.pos<this.length;){const r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const e=this.skipBlockComment("*/");void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e));break}case 47:{const e=this.skipLineComment(2);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e));break}default:break e}break;default:if(ke(r))++this.state.pos;else if(45===r&&!this.inModule&&this.options.annexB){const r=this.state.pos;if(45!==this.input.charCodeAt(r+1)||62!==this.input.charCodeAt(r+2)||!(0===e||this.state.lineStart>e))break e;{const e=this.skipLineComment(3);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e))}}else{if(60!==r||this.inModule||!this.options.annexB)break e;{const e=this.state.pos;if(33!==this.input.charCodeAt(e+1)||45!==this.input.charCodeAt(e+2)||45!==this.input.charCodeAt(e+3))break e;{const e=this.skipLineComment(4);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e))}}}}}if(t.length>0){const r={start:e,end:this.state.pos,comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(r)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const r=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(r)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(g.UnexpectedDigitAfterHash,this.state.curPosition());if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?g.RecordExpressionHashIncorrectStartSyntaxType:g.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else se(t)?(++this.state.pos,this.finishToken(138,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;const t=this.state.pos;for(this.state.pos+=1;!De(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);const r=this.input.slice(t+2,this.state.pos);return this.finishToken(28,r),!0}readToken_mult_modulo(e){let t=42===e?55:54,r=1,n=this.input.charCodeAt(this.state.pos+1);42===e&&42===n&&(r++,n=this.input.charCodeAt(this.state.pos+2),t=57),61!==n||this.state.inType||(r++,t=37===e?33:30),this.finishOp(t,r)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);if(t!==e){if(124===e){if(62===t)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(g.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(g.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(4)}}61!==t?this.finishOp(124===e?43:45,1):this.finishOp(30,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===e?41:42,2)}readToken_caret(){const e=this.input.charCodeAt(this.state.pos+1);if(61!==e||this.state.inType)if(94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){this.finishOp(37,2);94===this.input.codePointAt(this.state.pos)&&this.unexpected()}else this.finishOp(44,1);else this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){const t=this.input.charCodeAt(this.state.pos+1);t!==e?61===t?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(60===t)return 61===this.input.charCodeAt(e+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==t?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(62===t){const t=62===this.input.charCodeAt(e+2)?3:2;return 61===this.input.charCodeAt(e+t)?void this.finishOp(30,t+1):void this.finishOp(52,t)}61!==t?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(e){const t=this.input.charCodeAt(this.state.pos+1);if(61!==t)return 61===e&&62===t?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===e?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){const e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(30,3):this.finishOp(40,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(g.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(g.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{const e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(se(e))return void this.readWord(e)}throw this.raise(g.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){const r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}readRegexp(){const e=this.state.startLoc,t=this.state.start+1;let r,n,{pos:s}=this.state;for(;;++s){if(s>=this.length)throw this.raise(g.UnterminatedRegExp,i(e,1));const t=this.input.charCodeAt(s);if(De(t))throw this.raise(g.UnterminatedRegExp,i(e,1));if(r)r=!1;else{if(91===t)n=!0;else if(93===t&&n)n=!1;else if(47===t&&!n)break;r=92===t}}const a=this.input.slice(t,s);++s;let o="";const l=()=>i(e,s+2-t);for(;s<this.length;){const e=this.codePointAtPos(s),t=String.fromCharCode(e);if(Ve.has(e))118===e?o.includes("u")&&this.raise(g.IncompatibleRegExpUVFlags,l()):117===e&&o.includes("v")&&this.raise(g.IncompatibleRegExpUVFlags,l()),o.includes(t)&&this.raise(g.DuplicateRegExpFlags,l());else{if(!ae(e)&&92!==e)break;this.raise(g.MalformedRegExpFlags,l())}++s,o+=t}this.state.pos=s,this.finishToken(137,{pattern:a,flags:o})}readInt(e,t,r=!1,n=!0){const{n:i,pos:s}=Ue(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,r,n,this.errorHandlers_readInt,!1);return this.state.pos=s,i}readRadixNumber(e){const t=this.state.curPosition();let r=!1;this.state.pos+=2;const n=this.readInt(e);null==n&&this.raise(g.InvalidDigit,i(t,2),{radix:e});const s=this.input.charCodeAt(this.state.pos);if(110===s)++this.state.pos,r=!0;else if(109===s)throw this.raise(g.InvalidDecimal,t);if(se(this.codePointAtPos(this.state.pos)))throw this.raise(g.NumberIdentifier,this.state.curPosition());if(r){const e=this.input.slice(t.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,e)}else this.finishToken(134,n)}readNumber(e){const t=this.state.pos,r=this.state.curPosition();let n=!1,s=!1,a=!1,o=!1,l=!1;e||null!==this.readInt(10)||this.raise(g.InvalidNumber,this.state.curPosition());const c=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(c){const e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(g.StrictOctalLiteral,r),!this.state.strict){const t=e.indexOf("_");t>0&&this.raise(g.ZeroDigitNumericSeparator,i(r,t))}l=c&&!/[89]/.test(e)}let u=this.input.charCodeAt(this.state.pos);if(46!==u||l||(++this.state.pos,this.readInt(10),n=!0,u=this.input.charCodeAt(this.state.pos)),69!==u&&101!==u||l||(u=this.input.charCodeAt(++this.state.pos),43!==u&&45!==u||++this.state.pos,null===this.readInt(10)&&this.raise(g.InvalidOrMissingExponent,r),n=!0,o=!0,u=this.input.charCodeAt(this.state.pos)),110===u&&((n||c)&&this.raise(g.InvalidBigIntLiteral,r),++this.state.pos,s=!0),109===u&&(this.expectPlugin("decimal",this.state.curPosition()),(o||c)&&this.raise(g.InvalidDecimal,r),++this.state.pos,a=!0),se(this.codePointAtPos(this.state.pos)))throw this.raise(g.NumberIdentifier,this.state.curPosition());const p=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(s)return void this.finishToken(135,p);if(a)return void this.finishToken(136,p);const d=l?parseInt(p,8):parseFloat(p);this.finishToken(134,d)}readCodePoint(e){const{code:t,pos:r}=Ke(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=r,t}readString(e){const{str:t,pos:r,curLine:n,lineStart:i}=Me(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1,this.state.lineStart=i,this.state.curLine=n,this.finishToken(133,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const e=this.input[this.state.pos],{str:t,firstInvalidLoc:n,pos:i,curLine:s,lineStart:a}=Me("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=a,this.state.curLine=s,n&&(this.state.firstInvalidTemplateEscapePos=new r(n.curLine,n.pos-n.lineStart,n.pos)),96===this.input.codePointAt(i)?this.finishToken(24,n?null:e+t+"`"):(this.state.pos++,this.finishToken(25,n?null:e+t+"${"))}recordStrictModeErrors(e,t){const r=t.index;this.state.strict&&!this.state.strictErrors.has(r)?this.raise(e,t):this.state.strictErrors.set(r,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="";const r=this.state.pos;let n=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){const e=this.codePointAtPos(this.state.pos);if(ae(e))this.state.pos+=e<=65535?1:2;else{if(92!==e)break;{this.state.containsEsc=!0,t+=this.input.slice(n,this.state.pos);const e=this.state.curPosition(),i=this.state.pos===r?se:ae;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(g.MissingUnicodeEscape,this.state.curPosition()),n=this.state.pos-1;continue}++this.state.pos;const s=this.readCodePoint(!0);null!==s&&(i(s)||this.raise(g.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(s)),n=this.state.pos}}}return t+this.input.slice(n,this.state.pos)}readWord(e){const t=this.readWord1(e),r=C.get(t);void 0!==r?this.finishToken(r,X(r)):this.finishToken(132,t)}checkKeywordEscapes(){const{type:e}=this.state;Y(e)&&this.state.containsEsc&&this.raise(g.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:X(e)})}raise(e,t,n={}){const i=e(t instanceof r?t:t.loc.start,n);if(!this.options.errorRecovery)throw i;return this.isLookahead||this.state.errors.push(i),i}raiseOverwrite(e,t,n={}){const i=t instanceof r?t:t.loc.start,s=i.index,a=this.state.errors;for(let t=a.length-1;t>=0;t--){const r=a[t];if(r.loc.index===s)return a[t]=e(i,n);if(r.loc.index<s)break}return this.raise(e,t,n)}updateContext(e){}unexpected(e,t){throw this.raise(g.UnexpectedToken,null!=e?e:this.state.startLoc,{expected:t?X(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(g.MissingPlugin,null!=t?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some((e=>this.hasPlugin(e))))throw this.raise(g.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,r,n)=>{this.raise(e,Je(t,r,n))}}},Ye=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},Xe=class{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Ye)}exit(){const e=this.stack.pop(),t=this.current();for(const[r,n]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(r)||t.undefinedPrivateNames.set(r,n):this.parser.raise(g.InvalidPrivateFieldResolution,n,{identifierName:r})}declarePrivateName(e,t,r){const{privateNames:n,loneAccessors:i,undefinedPrivateNames:s}=this.current();let a=n.has(e);if(3&t){const r=a&&i.get(e);if(r){a=(3&r)===(3&t)||(4&r)!==(4&t),a||i.delete(e)}else a||i.set(e,t)}a&&this.parser.raise(g.PrivateNameRedeclaration,r,{identifierName:e}),n.add(e),s.delete(e)}usePrivateName(e,t){let r;for(r of this.stack)if(r.privateNames.has(e))return;r?r.undefinedPrivateNames.set(e,t):this.parser.raise(g.InvalidPrivateFieldResolution,t,{identifierName:e})}},$e=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}},He=class extends $e{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){const r=t.index;this.declarationErrors.set(r,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},Ge=class{constructor(e){this.parser=void 0,this.stack=[new $e],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const r=t.loc.start,{stack:n}=this;let i=n.length-1,s=n[i];for(;!s.isCertainlyParameterDeclaration();){if(!s.canBeArrowParameterDeclaration())return;s.recordDeclarationError(e,r),s=n[--i]}this.parser.raise(e,r)}recordArrowParameterBindingError(e,t){const{stack:r}=this,n=r[r.length-1],i=t.loc.start;if(n.isCertainlyParameterDeclaration())this.parser.raise(e,i);else{if(!n.canBeArrowParameterDeclaration())return;n.recordDeclarationError(e,i)}}recordAsyncArrowParametersError(e){const{stack:t}=this;let r=t.length-1,n=t[r];for(;n.canBeArrowParameterDeclaration();)2===n.type&&n.recordDeclarationError(g.AwaitBindingIdentifier,e),n=t[--r]}validateAsPattern(){const{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors((([t,r])=>{this.parser.raise(t,r);let n=e.length-2,i=e[n];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(r.index),i=e[--n]}))}};function Qe(){return new $e}var Ze=class{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}};function et(e,t){return(e?2:0)|(t?1:0)}var tt=class extends ze{addExtra(e,t,r,n=!0){if(!e)return;const i=e.extra=e.extra||{};n?i[t]=r:Object.defineProperty(i,t,{enumerable:n,value:r})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){const r=e+t.length;if(this.input.slice(e,r)===t){const e=this.input.charCodeAt(r);return!(ae(e)||55296==(64512&e))}return!1}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Pe.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return Ne.lastIndex=this.state.end,Ne.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(g.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){const r={node:null};try{const n=e(((e=null)=>{throw r.node=e,r}));if(this.state.errors.length>t.errors.length){const e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:n,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const n=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:n};if(e===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:n};throw e}}checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssignLoc:r,doubleProtoLoc:n,privateKeyLoc:i,optionalParametersLoc:s}=e;if(!t)return!!(r||n||s||i);null!=r&&this.raise(g.InvalidCoverInitializedName,r),null!=n&&this.raise(g.DuplicateProto,n),null!=i&&this.raise(g.UnexpectedPrivateField,i),null!=s&&this.unexpected(s)}isLiteralPropertyName(){return V(this.state.type)}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(e="module"===this.options.sourceType){const t=this.state.labels;this.state.labels=[];const r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const n=this.inModule;this.inModule=e;const i=this.scope,s=this.getScopeHandler();this.scope=new s(this,e);const a=this.prodParam;this.prodParam=new Ze;const o=this.classScope;this.classScope=new Xe(this);const l=this.expressionScope;return this.expressionScope=new Ge(this),()=>{this.state.labels=t,this.exportedIdentifiers=r,this.inModule=n,this.scope=i,this.prodParam=a,this.classScope=o,this.expressionScope=l}}enterInitialScopes(){let e=0;this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e)}checkDestructuringPrivate(e){const{privateKeyLoc:t}=e;null!==t&&this.expectPlugin("destructuringPrivate",t)}},rt=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},nt=class{constructor(e,t,r){this.type="",this.start=t,this.end=0,this.loc=new n(r),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}},it=nt.prototype;function st(e){const{type:t,start:r,end:n,loc:i,range:s,extra:a,name:o}=e,l=Object.create(it);return l.type=t,l.start=r,l.end=n,l.loc=i,l.range=s,l.extra=a,l.name=o,"Placeholder"===t&&(l.expectedNode=e.expectedNode),l}function at(e){const{type:t,start:r,end:n,loc:i,range:s,extra:a}=e;if("Placeholder"===t)return function(e){return st(e)}(e);const o=Object.create(it);return o.type=t,o.start=r,o.end=n,o.loc=i,o.range=s,void 0!==e.raw?o.raw=e.raw:o.extra=a,o.value=e.value,o}it.__clone=function(){const e=new nt(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,n=t.length;r<n;r++){const n=t[r];"leadingComments"!==n&&"trailingComments"!==n&&"innerComments"!==n&&(e[n]=this[n])}return e};var ot=class extends tt{startNode(){const e=this.state.startLoc;return new nt(this,e.index,e)}startNodeAt(e){return new nt(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,r){return e.type=t,e.end=r.index,e.loc.end=r,this.options.ranges&&(e.range[1]=r.index),this.options.attachComment&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.options.ranges&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index,e.loc.end=t,this.options.ranges&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}},lt=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),ct=y`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function ut(e){return"type"===e.importKind||"typeof"===e.importKind}var pt={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};var dt=/\*?\s*@((?:no)?flow)\b/,ht={__proto__:null,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:"♦"},ft=y`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function mt(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function yt(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return yt(e.object)+"."+yt(e.property);throw new Error("Node had unexpected type: "+e.type)}var gt=class extends ge{constructor(...e){super(...e),this.tsNames=new Map}},bt=class extends be{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new gt(e)}enter(e){256==e&&this.importsStack.push(new Set),super.enter(e)}exit(){const e=super.exit();return 256==e&&this.importsStack.pop(),e}hasImport(e,t){const r=this.importsStack.length;if(this.importsStack[r-1].has(e))return!0;if(!t&&r>1)for(let t=0;t<r-1;t++)if(this.importsStack[t].has(e))return!0;return!1}declareName(e,t,r){if(4096&t)return this.hasImport(e,!0)&&this.parser.raise(g.VarRedeclaration,r,{identifierName:e}),void this.importsStack[this.importsStack.length-1].add(e);const n=this.currentScope();let i=n.tsNames.get(e)||0;if(1024&t)return this.maybeExportDefined(n,e),void n.tsNames.set(e,16|i);super.declareName(e,t,r),2&t&&(1&t||(this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e)),i|=1),256&t&&(i|=2),512&t&&(i|=4),128&t&&(i|=8),i&&n.tsNames.set(e,i)}isRedeclaredInScope(e,t,r){const n=e.tsNames.get(t);if((2&n)>0){if(256&r){return!!(512&r)!==(4&n)>0}return!0}return 128&r&&(8&n)>0?!!(2&e.names.get(t))&&!!(1&r):!!(2&r&&(1&n)>0)||super.isRedeclaredInScope(e,t,r)}checkLocalExport(e){const{name:t}=e;if(this.hasImport(t))return;for(let e=this.scopeStack.length-1;e>=0;e--){const r=this.scopeStack[e].tsNames.get(t);if((1&r)>0||(16&r)>0)return}super.checkLocalExport(e)}},St=e=>"ParenthesizedExpression"===e.type?St(e.expression):e,Tt=class extends ot{toAssignable(e,t=!1){var r,n;let i;switch(("ParenthesizedExpression"===e.type||null!=(r=e.extra)&&r.parenthesized)&&(i=St(e),t?"Identifier"===i.type?this.expressionScope.recordArrowParameterBindingError(g.InvalidParenthesizedAssignment,e):"MemberExpression"===i.type||this.isOptionalMemberExpression(i)||this.raise(g.InvalidParenthesizedAssignment,e):this.raise(g.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(let r=0,n=e.properties.length,i=n-1;r<n;r++){var s;const n=e.properties[r],a=r===i;this.toAssignableObjectExpressionProp(n,a,t),a&&"RestElement"===n.type&&null!=(s=e.extra)&&s.trailingCommaLoc&&this.raise(g.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:r,value:n}=e;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(n,t);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,null==(n=e.extra)?void 0:n.trailingCommaLoc,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(g.MissingEqInAssignment,e.left.loc.end),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(i,t)}}toAssignableObjectExpressionProp(e,t,r){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?g.PatternHasAccessor:g.PatternHasMethod,e.key);else if("SpreadElement"===e.type){e.type="RestElement";const n=e.argument;this.checkToRestConversion(n,!1),this.toAssignable(n,r),t||this.raise(g.RestTrailingComma,e)}else this.toAssignable(e,r)}toAssignableList(e,t,r){const n=e.length-1;for(let i=0;i<=n;i++){const s=e[i];if(s){if("SpreadElement"===s.type){s.type="RestElement";const e=s.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,r)}else this.toAssignable(s,r);"RestElement"===s.type&&(i<n?this.raise(g.RestTrailingComma,s):t&&this.raise(g.RestTrailingComma,t))}}}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{const t=e.properties.length-1;return e.properties.every(((e,r)=>"ObjectMethod"!==e.type&&(r===t||"SpreadElement"!==e.type)&&this.isAssignable(e)))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every((e=>null===e||this.isAssignable(e)));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(const t of e)"ArrayExpression"===(null==t?void 0:t.type)&&this.toReferencedListDeep(t.elements)}parseSpread(e){const t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){const e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(e,t,r){const n=1&r,i=[];let s=!0;for(;!this.eat(e);)if(s?s=!1:this.expect(12),n&&this.match(12))i.push(null);else{if(this.eat(e))break;if(this.match(21)){if(i.push(this.parseAssignableListItemTypes(this.parseRestBinding(),r)),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{const e=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(g.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());i.push(this.parseAssignableListItem(r,e))}}return i}parseBindingRestProperty(e){return this.next(),e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){const e=this.startNode(),{type:t,startLoc:r}=this.state;return 21===t?this.parseBindingRestProperty(e):(138===t?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),e.key=this.parsePrivateName()):this.parsePropertyName(e),e.method=!1,this.parseObjPropValue(e,r,!1,!1,!0,!1))}parseAssignableListItem(e,t){const r=this.parseMaybeDefault();this.parseAssignableListItemTypes(r,e);const n=this.parseMaybeDefault(r.loc.start,r);return t.length&&(r.decorators=t),n}parseAssignableListItemTypes(e,t){return e}parseMaybeDefault(e,t){var r;if(null!=e||(e=this.state.startLoc),t=null!=(r=t)?r:this.parseBindingAtom(),!this.eat(29))return t;const n=this.startNodeAt(e);return n.left=t,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,"AssignmentPattern")}isValidLVal(e,t,r){return n={AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},i=e,Object.hasOwnProperty.call(n,i)&&n[i];var n,i}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,{in:t,binding:r=64,checkClashes:n=!1,strictModeChanged:i=!1,hasParenthesizedAncestor:s=!1}){var a;const o=e.type;if(this.isObjectMethod(e))return;const l=this.isOptionalMemberExpression(e);if(l||"MemberExpression"===o)return l&&(this.expectPlugin("optionalChainingAssign",e.loc.start),"AssignmentExpression"!==t.type&&this.raise(g.InvalidLhsOptionalChaining,e,{ancestor:t})),void(64!==r&&this.raise(g.InvalidPropertyBindingPattern,e));if("Identifier"===o){this.checkIdentifier(e,r,i);const{name:t}=e;return void(n&&(n.has(t)?this.raise(g.ParamDupe,e):n.add(t)))}const c=this.isValidLVal(o,!(s||null!=(a=e.extra)&&a.parenthesized)&&"AssignmentExpression"===t.type,r);if(!0===c)return;if(!1===c){const n=64===r?g.InvalidLhs:g.InvalidLhsBinding;return void this.raise(n,e,{ancestor:t})}const[u,p]=Array.isArray(c)?c:[c,"ParenthesizedExpression"===o],d="ArrayPattern"===o||"ObjectPattern"===o?{type:o}:t;for(const t of[].concat(e[u]))t&&this.checkLVal(t,{in:d,binding:r,checkClashes:n,strictModeChanged:i,hasParenthesizedAncestor:p})}checkIdentifier(e,t,r=!1){this.state.strict&&(r?me(e.name,this.inModule):fe(e.name))&&(64===t?this.raise(g.StrictEvalArguments,e,{referenceName:e.name}):this.raise(g.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(g.LetInLexicalBinding,e),64&t||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(g.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?g.RestTrailingComma:g.ElementAfterRest,this.state.startLoc),!0)}};function vt(e){if(!e)throw new Error("Assert fail")}var Et=y`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`});function xt(e){return"private"===e||"public"===e||"protected"===e}function _t(e){return"in"===e||"out"===e}function At(e){if("MemberExpression"!==e.type)return!1;const{computed:t,property:r}=e;return(!t||"StringLiteral"===r.type||!("TemplateLiteral"!==r.type||r.expressions.length>0))&&Dt(e.object)}function Pt(e,t){var r;const{type:n}=e;if(null!=(r=e.extra)&&r.parenthesized)return!1;if(t){if("Literal"===n){const{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===n||"BooleanLiteral"===n)return!0;return!(!wt(e,t)&&!function(e,t){if("UnaryExpression"===e.type){const{operator:r,argument:n}=e;if("-"===r&&wt(n,t))return!0}return!1}(e,t))||("TemplateLiteral"===n&&0===e.expressions.length||!!At(e))}function wt(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function Dt(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&Dt(e.object)}var Ct=y`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});function It(e,t){const[r,n]="string"==typeof t?[t,{}]:t,i=Object.keys(n),s=0===i.length;return e.some((e=>{if("string"==typeof e)return s&&e===r;{const[t,s]=e;if(t!==r)return!1;for(const e of i)if(s[e]!==n[e])return!1;return!0}}))}function Nt(e,t,r){const n=e.find((e=>Array.isArray(e)?e[0]===t:e===t));return n&&Array.isArray(n)&&n.length>1?n[1][r]:null}var kt=["minimal","fsharp","hack","smart"],Ot=["^^","@@","^","%","#"],Ft=["hash","bar"];var Lt={estree:e=>class extends e{parse(){const e=T(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(T)),e}parseRegExpLiteral({pattern:e,flags:t}){let r=null;try{r=new RegExp(e,t)}catch(e){}const n=this.estreeParseLiteral(r);return n.regex={pattern:e,flags:t},n}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const r=this.estreeParseLiteral(t);return r.bigint=String(r.value||e),r}parseDecimalLiteral(e){const t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){const t=e.value;delete e.value,t.type="Literal",t.raw=t.extra.raw,t.value=t.extra.expressionValue;const r=e;return r.type="ExpressionStatement",r.expression=t,r.directive=t.extra.rawValue,delete t.extra,r}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(t=e.expression.extra)&&t.parenthesized)}parseBlockBody(e,t,r,n,i){super.parseBlockBody(e,t,r,n,i);const s=e.directives.map((e=>this.directiveToStmt(e)));e.body=s.concat(e.body),delete e.directives}pushClassMethod(e,t,r,n,i,s){this.parseMethod(t,r,n,i,s,"ClassMethod",!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}parsePrivateName(){const e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){const t=super.getPrivateNameSV(e);return delete e.id,e.name=t,e.type="PrivateIdentifier",e}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){const r=super.parseLiteral(e,t);return r.raw=r.extra.raw,delete r.extra,r}parseFunctionBody(e,t,r=!1){super.parseFunctionBody(e,t,r),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,r,n,i,s,a=!1){let o=this.startNode();return o.kind=e.kind,o=super.parseMethod(o,t,r,n,i,s,a),o.type="FunctionExpression",delete o.kind,e.value=o,"ClassPrivateMethod"===s&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}parseClassProperty(...e){const t=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")?(t.type="PropertyDefinition",t):t}parseClassPrivateProperty(...e){const t=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")?(t.type="PropertyDefinition",t.computed=!1,t):t}parseObjectMethod(e,t,r,n,i){const s=super.parseObjectMethod(e,t,r,n,i);return s&&(s.type="Property","method"===s.kind&&(s.kind="init"),s.shorthand=!1),s}parseObjectProperty(e,t,r,n){const i=super.parseObjectProperty(e,t,r,n);return i&&(i.kind="init",i.type="Property"),i}isValidLVal(e,t,r){return"Property"===e?"value":super.isValidLVal(e,t,r)}isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e,t=!1){if(null!=e&&this.isObjectProperty(e)){const{key:r,value:n}=e;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(n,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,r){"get"===e.kind||"set"===e.kind?this.raise(g.PatternHasAccessor,e.key):e.method?this.raise(g.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,r)}finishCallExpression(e,t){const r=super.finishCallExpression(e,t);if("Import"===r.callee.type){var n,i;if(r.type="ImportExpression",r.source=r.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))r.options=null!=(n=r.arguments[1])?n:null,r.attributes=null!=(i=r.arguments[1])?i:null;delete r.arguments,delete r.callee}return r}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){const r=this.state.lastTokStartLoc,n=super.parseExport(e,t);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":1===n.specifiers.length&&"ExportNamespaceSpecifier"===n.specifiers[0].type&&(n.type="ExportAllDeclaration",n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{var i;const{declaration:e}=n;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(i=e.decorators)?void 0:i.length)>0&&e.start===n.start&&this.resetStartLocation(n,r)}}return n}parseSubscript(e,t,r,n){const i=super.parseSubscript(e,t,r,n);if(n.optionalChainMember){if("OptionalMemberExpression"!==i.type&&"OptionalCallExpression"!==i.type||(i.type=i.type.substring(8)),n.stop){const e=this.startNodeAtNode(i);return e.expression=i,this.finishNode(e,"ChainExpression")}}else"MemberExpression"!==i.type&&"CallExpression"!==i.type||(i.optional=!1);return i}isOptionalMemberExpression(e){return"ChainExpression"===e.type?"MemberExpression"===e.expression.type:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return e.method||"get"===e.kind||"set"===e.kind}finishNodeAt(e,t,r){return T(super.finishNodeAt(e,t,r))}resetStartLocation(e,t){super.resetStartLocation(e,t),T(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t),T(e)}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(ft.UnterminatedJsxContent,this.state.startLoc);const r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:return this.state.pos===this.state.start?void(60===r&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(r)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(141,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:De(r)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){const t=this.input.charCodeAt(this.state.pos);let r;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,r=e?"\n":"\r\n"):r=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,r}jsxReadString(e){let t="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(g.UnterminatedString,this.state.startLoc);const n=this.input.charCodeAt(this.state.pos);if(n===e)break;38===n?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):De(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}t+=this.input.slice(r,this.state.pos++),this.finishToken(133,t)}jsxReadEntity(){const e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);const t=this.readInt(e,void 0,!1,"bail");if(null!==t&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(t)}else{let t=0,r=!1;for(;t++<10&&this.state.pos<this.length&&!(r=59==this.codePointAtPos(this.state.pos));)++this.state.pos;if(r){const t=this.input.slice(e,this.state.pos),r=ht[t];if(++this.state.pos,r)return r}}return this.state.pos=e,"&"}jsxReadWord(){let e;const t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(ae(e)||45===e);this.finishToken(140,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();return this.match(140)?e.name=this.state.value:Y(this.state.type)?e.name=X(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;const r=this.startNodeAt(e);return r.namespace=t,r.name=this.jsxParseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.startLoc;let t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){const r=this.startNodeAt(e);r.object=t,r.property=this.jsxParseIdentifier(),t=this.finishNode(r,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(E.brace),this.next(),e=this.jsxParseExpressionContainer(e,E.j_oTag),"JSXEmptyExpression"===e.expression.type&&this.raise(ft.AttributeIsEmpty,e),e;case 142:case 133:return this.parseExprAtom();default:throw this.raise(ft.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(E.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{const t=this.parseExpression();e.expression=t}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.match(5)?(this.setContext(E.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(E.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){const t=this.startNodeAt(e);return this.eat(143)?this.finishNode(t,"JSXOpeningFragment"):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){const t=[];for(;!this.match(56)&&!this.match(143);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(143),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){const t=this.startNodeAt(e);return this.eat(143)?this.finishNode(t,"JSXClosingFragment"):(t.name=this.jsxParseElementName(),this.expect(143),this.finishNode(t,"JSXClosingElement"))}jsxParseElementAt(e){const t=this.startNodeAt(e),r=[],n=this.jsxParseOpeningElementAt(e);let i=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case 142:if(e=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(e);break e}r.push(this.jsxParseElementAt(e));break;case 141:r.push(this.parseExprAtom());break;case 5:{const e=this.startNode();this.setContext(E.brace),this.next(),this.match(21)?r.push(this.jsxParseSpreadChild(e)):r.push(this.jsxParseExpressionContainer(e,E.j_expr));break}default:this.unexpected()}mt(n)&&!mt(i)&&null!==i?this.raise(ft.MissingClosingTagFragment,i):!mt(n)&&mt(i)?this.raise(ft.MissingClosingTagElement,i,{openingTagName:yt(n.name)}):mt(n)||mt(i)||yt(i.name)!==yt(n.name)&&this.raise(ft.MissingClosingTagElement,i,{openingTagName:yt(n.name)})}if(mt(n)?(t.openingFragment=n,t.closingFragment=i):(t.openingElement=n,t.closingElement=i),t.children=r,this.match(47))throw this.raise(ft.UnwrappedAdjacentJSXElements,this.state.startLoc);return mt(n)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){const e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){const{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(141)?this.parseLiteral(this.state.value,"JSXText"):this.match(142)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(142),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){const t=this.curContext();if(t!==E.j_expr){if(t===E.j_oTag||t===E.j_cTag){if(se(e))return void this.jsxReadWord();if(62===e)return++this.state.pos,void this.finishToken(143);if((34===e||39===e)&&t===E.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(142);super.getTokenFromCode(e)}else this.jsxReadToken()}updateContext(e){const{context:t,type:r}=this.state;if(56===r&&142===e)t.splice(-2,2,E.j_cTag),this.state.canStartJSXElement=!1;else if(142===r)t.push(E.j_oTag);else if(143===r){const r=t[t.length-1];r===E.j_oTag&&56===e||r===E.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===E.j_expr):(this.setContext(E.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=j[r]}},flow:e=>class extends e{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return Te}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,t){133!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){const t=dt.exec(e.value);if(t)if("flow"===t[1])this.flowPragma="flow";else{if("noflow"!==t[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}else;}super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=!0,this.expect(e||14);const r=this.flowParseType();return this.state.inType=t,r}flowParsePredicate(){const e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(ct.UnexpectedSpaceBetweenModuloChecks,t),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,r=null;return this.match(54)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(r=this.flowParsePredicate())),[t,r]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier(),r=this.startNode(),n=this.startNode();this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(10);const i=this.flowParseFunctionTypeParams();return r.params=i.params,r.rest=i.rest,r.this=i._this,this.expect(11),[r.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(127)?this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(ct.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e)):this.isContextual(130)?this.flowParseDeclareTypeAlias(e):this.isContextual(131)?this.flowParseDeclareOpaqueType(e):this.isContextual(129)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,t):void this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(133)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();const t=e.body=this.startNode(),r=t.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(ct.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(e)):(this.expectContextual(125,ct.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),r.push(e)}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let n=null,i=!1;return r.forEach((e=>{!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(i&&this.raise(ct.DuplicateDeclareModuleExports,e),"ES"===n&&this.raise(ct.AmbiguousDeclareModuleKind,e),n="CommonJS",i=!0):("CommonJS"===n&&this.raise(ct.AmbiguousDeclareModuleKind,e),n="ES")})),e.kind=n||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){const e=this.state.value;throw this.raise(ct.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:pt[e]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?("ExportNamedDeclaration"===(e=this.parseExport(e,null)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e):void this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();const t=this.flowParseTypeAlias(e);return t.type="DeclareTypeAlias",t}flowParseDeclareOpaqueType(e){this.next();const t=this.flowParseOpaqueType(e,!0);return t.type="DeclareOpaqueType",t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){const e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(ct.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,r){lt.has(e)&&this.raise(r?ct.AssignReservedType:ct.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){const t=this.state.startLoc,r=this.startNode(),n=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return r.name=i.name,r.variance=n,r.bound=i.typeAnnotation,this.match(29)?(this.eat(29),r.default=this.flowParseType()):e&&this.raise(ct.MissingTypeParamDefault,t),this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();let r=!1;do{const e=this.flowParseTypeParameter(r);t.params.push(e),e.default&&(r=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);const r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=r,this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,r){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){const r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:r,allowProto:n,allowInexact:i}){const s=this.state.inType;this.state.inType=!0;const a=this.startNode();let o,l;a.callProperties=[],a.properties=[],a.indexers=[],a.internalSlots=[];let c=!1;for(t&&this.match(6)?(this.expect(6),o=9,l=!0):(this.expect(5),o=8,l=!1),a.exact=l;!this.match(o);){let t=!1,s=null,o=null;const u=this.startNode();if(n&&this.isContextual(118)){const t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),s=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){const e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),t=!0)}const p=this.flowParseVariance();if(this.eat(0))null!=s&&this.unexpected(s),this.eat(0)?(p&&this.unexpected(p.loc.start),a.internalSlots.push(this.flowParseObjectTypeInternalSlot(u,t))):a.indexers.push(this.flowParseObjectTypeIndexer(u,t,p));else if(this.match(10)||this.match(47))null!=s&&this.unexpected(s),p&&this.unexpected(p.loc.start),a.callProperties.push(this.flowParseObjectTypeCallProperty(u,t));else{let e="init";if(this.isContextual(99)||this.isContextual(104)){V(this.lookahead().type)&&(e=this.state.value,this.next())}const n=this.flowParseObjectTypeProperty(u,t,s,p,e,r,null!=i?i:!l);null===n?(c=!0,o=this.state.lastTokStartLoc):a.properties.push(n)}this.flowObjectTypeSemicolon(),!o||this.match(8)||this.match(9)||this.raise(ct.UnexpectedExplicitInexactInObject,o)}this.expect(o),r&&(a.inexact=c);const u=this.finishNode(a,"ObjectTypeAnnotation");return this.state.inType=s,u}flowParseObjectTypeProperty(e,t,r,n,i,s,a){if(this.eat(21)){return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(s?a||this.raise(ct.InexactInsideExact,this.state.lastTokStartLoc):this.raise(ct.InexactInsideNonObject,this.state.lastTokStartLoc),n&&this.raise(ct.InexactVariance,n),null):(s||this.raise(ct.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=r&&this.unexpected(r),n&&this.raise(ct.SpreadVariance,n),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"))}{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=i;let a=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=r&&this.unexpected(r),n&&this.unexpected(n.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),"get"!==i&&"set"!==i||this.flowCheckGetterSetterParams(e),!s&&"constructor"===e.key.name&&e.value.this&&this.raise(ct.ThisParamBannedInConstructor,e.value.this)):("init"!==i&&this.unexpected(),e.method=!1,this.eat(17)&&(a=!0),e.value=this.flowParseTypeInitialiser(),e.variance=n),e.optional=a,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,r=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?ct.GetterMayNotHaveThisParam:ct.SetterMayNotHaveThisParam,e.value.this),r!==t&&this.raise("get"===e.kind?g.BadGetterArity:g.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(g.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){null!=e||(e=this.state.startLoc);let r=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const t=this.startNodeAt(e);t.qualification=r,t.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(t,"QualifiedTypeIdentifier")}return r}flowParseGenericType(e,t){const r=this.startNodeAt(e);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null,r=!1,n=null;const i=this.startNode(),s=this.lookahead(),a=78===this.state.type;return 14===s.type||17===s.type?(a&&!e&&this.raise(ct.ThisParamMustBeFirst,i),t=this.parseIdentifier(a),this.eat(17)&&(r=!0,a&&this.raise(ct.ThisParamMayNotBeOptional,i)),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),i.name=t,i.optional=r,i.typeAnnotation=n,this.finishNode(i,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let t=null,r=null;for(this.match(78)&&(r=this.flowParseFunctionTypeParam(!0),r.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:r}}flowIdentToTypeAnnotation(e,t,r){switch(r.name){case"any":return this.finishNode(t,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(t,"BooleanTypeAnnotation");case"mixed":return this.finishNode(t,"MixedTypeAnnotation");case"empty":return this.finishNode(t,"EmptyTypeAnnotation");case"number":return this.finishNode(t,"NumberTypeAnnotation");case"string":return this.finishNode(t,"StringTypeAnnotation");case"symbol":return this.finishNode(t,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(r.name),this.flowParseGenericType(e,r)}}flowParsePrimaryType(){const e=this.state.startLoc,t=this.startNode();let r,n,i=!1;const s=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,n=this.flowParseTupleType(),this.state.noAnonFunctionType=s,n;case 47:return t.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),r=this.flowParseFunctionTypeParams(),t.params=r.params,t.rest=r.rest,t.this=r._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),this.finishNode(t,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21))if(K(this.state.type)||this.match(78)){const e=this.lookahead().type;i=17!==e&&14!==e}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=s,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),n;this.eat(12)}return r=n?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):this.flowParseFunctionTypeParams(),t.params=r.params,t.rest=r.rest,t.this=r._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation");case 133:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return t.value=this.match(85),this.next(),this.finishNode(t,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(134))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",t);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",t);throw this.raise(ct.UnexpectedSubtractionOperand,this.state.startLoc)}return void this.unexpected();case 134:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 135:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(t,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(t,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(t,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(t,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(Y(this.state.type)){const e=X(this.state.type);return this.next(),super.createIdentifier(t,e)}if(K(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){const e=this.state.startLoc;let t=this.flowParsePrimaryType(),r=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const n=this.startNodeAt(e),i=this.eat(18);r=r||i,this.expect(0),!i&&this.match(3)?(n.elementType=t,this.next(),t=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=t,n.indexType=this.flowParseType(),this.expect(3),r?(n.optional=i,t=this.finishNode(n,"OptionalIndexedAccessType")):t=this.finishNode(n,"IndexedAccessType"))}return t}flowParsePrefixType(){const e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){const e=this.startNode();this.eat(45);const t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(43);const t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){const e=this.state.inType;this.state.inType=!0;const t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(132===this.state.type&&"_"===this.state.value){const e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}return this.flowParseType()}flowParseTypeAnnotation(){const e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){const t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,t,r=!1){t?this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,!0,r))):super.parseFunctionBody(e,!1,r)}parseFunctionBodyAndFinish(e,t,r=!1){if(this.match(14)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,r)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(J(this.lookahead().type)){const e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.shouldParseEnums()&&this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}const t=super.parseStatementLike(e);return void 0!==this.flowPragma||this.isValidDirective(t)||(this.flowPragma=null),t}parseExpressionStatement(e,t,r){if("Identifier"===t.type)if("declare"===t.name){if(this.match(80)||K(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(K(this.state.type)){if("interface"===t.name)return this.flowParseInterface(e);if("type"===t.name)return this.flowParseTypeAlias(e);if("opaque"===t.name)return this.flowParseOpaqueType(e,!1)}return super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){const{type:e}=this.state;return z(e)||this.shouldParseEnums()&&126===e?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:e}=this.state;return z(e)||this.shouldParseEnums()&&126===e?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,r){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(r),e}this.expect(17);const n=this.state.clone(),i=this.state.noArrowAt,s=this.startNodeAt(t);let{consequent:a,failed:o}=this.tryParseConditionalConsequent(),[l,c]=this.getArrowLikeExpressions(a);if(o||c.length>0){const e=[...i];if(c.length>0){this.state=n,this.state.noArrowAt=e;for(let t=0;t<c.length;t++)e.push(c[t].start);({consequent:a,failed:o}=this.tryParseConditionalConsequent()),[l,c]=this.getArrowLikeExpressions(a)}o&&l.length>1&&this.raise(ct.AmbiguousConditionalArrow,n.startLoc),o&&1===l.length&&(this.state=n,e.push(l[0].start),this.state.noArrowAt=e,({consequent:a,failed:o}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(a,!0),this.state.noArrowAt=i,this.expect(14),s.test=e,s.consequent=a,s.alternate=this.forwardNoArrowParamsConversionAt(s,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(s,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const r=[e],n=[];for(;0!==r.length;){const e=r.pop();"ArrowFunctionExpression"===e.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):n.push(e),r.push(e.body)):"ConditionalExpression"===e.type&&(r.push(e.consequent),r.push(e.alternate))}return t?(n.forEach((e=>this.finishArrowValidation(e))),[n,[]]):function(e,t){const r=[],n=[];for(let i=0;i<e.length;i++)(t(e[i],i,e)?r:n).push(e[i]);return[r,n]}(n,(e=>e.params.every((e=>this.isAssignable(e,!0)))))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let r;return-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),r=t(),this.state.noArrowParamsConversionAt.pop()):r=t(),r}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){const r=this.startNodeAt(t);return r.expression=e,r.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(r,"TypeCastExpression")}return e}assertModuleNodeAllowed(e){"ImportDeclaration"===e.type&&("type"===e.importKind||"typeof"===e.importKind)||"ExportNamedDeclaration"===e.type&&"type"===e.exportKind||"ExportAllDeclaration"===e.type&&"type"===e.exportKind||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";const t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual(131)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual(129)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseInterface(t)}if(this.shouldParseEnums()&&this.isContextual(126)){e.exportKind="value";const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(e)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){const{startLoc:t}=this.state,r=super.maybeParseExportNamespaceSpecifier(e);return r&&"type"===e.exportKind&&this.unexpected(t),r}parseClassId(e,t,r){super.parseClassId(e,t,r),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,r){const{startLoc:n}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,r),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type&&"PropertyDefinition"!==t.type?this.raise(ct.DeclareClassElement,n):t.value&&this.raise(ct.DeclareClassFieldInitializer,t.value))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){const e=super.readWord1(),t="@@"+e;this.isIterator(e)&&this.state.inType||this.raise(g.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);123===e&&124===t?this.finishOp(6,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?46===t?this.finishOp(18,2):this.finishOp(17,1):!function(e,t,r){return 64===e&&64===t&&se(r)}(e,t,this.input.charCodeAt(this.state.pos+2))?super.getTokenFromCode(e):(this.state.pos+=2,this.readIterator()):this.finishOp(62===e?48:47,1)}isAssignable(e,t){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e,t=!1){t||"AssignmentExpression"!==e.type||"TypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,r){for(let t=0;t<e.length;t++){const r=e[t];"TypeCastExpression"===(null==r?void 0:r.type)&&(e[t]=this.typeCastToParameter(r))}super.toAssignableList(e,t,r)}toReferencedList(e,t){for(let n=0;n<e.length;n++){var r;const i=e[n];!i||"TypeCastExpression"!==i.type||null!=(r=i.extra)&&r.parenthesized||!(e.length>1)&&t||this.raise(ct.TypeCastInPattern,i.typeAnnotation)}return e}parseArrayLike(e,t,r,n){const i=super.parseArrayLike(e,t,r,n);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}isValidLVal(e,t,r){return"TypeCastExpression"===e||super.isValidLVal(e,t,r)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,r,n,i,s){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,r,n,i,s),t.params&&i){const e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(ct.ThisParamBannedInConstructor,t)}else if("MethodDefinition"===t.type&&i&&t.value.params){const e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(ct.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,r,n){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,r,n)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);const t=this.getObjectOrClassMethodParams(e);if(t.length>0){const r=t[0];this.isThisParam(r)&&"get"===e.kind?this.raise(ct.GetterMayNotHaveThisParam,r):this.isThisParam(r)&&this.raise(ct.SetterMayNotHaveThisParam,r)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,r,n,i,s,a){let o;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!s&&(o=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const l=super.parseObjPropValue(e,t,r,n,i,s,a);return o&&((l.value||l).typeParameters=o),l}parseAssignableListItemTypes(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(ct.PatternIsOptional,e),this.isThisParam(e)&&this.raise(ct.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(ct.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(ct.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){const r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(ct.TypeBeforeInitializer,r.typeAnnotation),r}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(ct.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,r){t.local=ut(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;const t=this.lookaheadCharCode();return 123===t||42===t}return!e&&this.isContextual(87)}applyImportPhase(e,t,r,n){if(super.applyImportPhase(e,t,r,n),t){if(!r&&this.match(65))return;e.exportKind="type"===r?r:"value"}else"type"===r&&this.match(55)&&this.unexpected(),e.importKind="type"===r||"typeof"===r?r:"value"}parseImportSpecifier(e,t,r,n,i){const s=e.imported;let a=null;"Identifier"===s.type&&("type"===s.name?a="type":"typeof"===s.name&&(a="typeof"));let o=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const t=this.parseIdentifier(!0);null===a||J(this.state.type)?(e.imported=s,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=t,e.importKind=a,e.local=st(t))}else{if(null!==a&&J(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=a;else{if(t)throw this.raise(g.ImportBindingIsString,e,{importName:s.value});e.imported=s,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(o=!0,e.local=st(e.imported))}const l=ut(e);return r&&l&&this.raise(ct.ImportTypeShorthandOnlyInPureImport,e),(r||l)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),!o||r||l||this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,t){const r=e.kind;"get"!==r&&"set"!==r&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var r;let n,i=null;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(i=this.state.clone(),n=this.tryParse((()=>super.parseMaybeAssign(e,t)),i),!n.error)return n.node;const{context:r}=this.state,s=r[r.length-1];s!==E.j_oTag&&s!==E.j_expr||r.pop()}if(null!=(r=n)&&r.error||this.match(47)){var s,a;let r;i=i||this.state.clone();const o=this.tryParse((n=>{var i;r=this.flowParseTypeParameterDeclaration();const s=this.forwardNoArrowParamsConversionAt(r,(()=>{const n=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(n,r),n}));null!=(i=s.extra)&&i.parenthesized&&n();const a=this.maybeUnwrapTypeCastExpression(s);return"ArrowFunctionExpression"!==a.type&&n(),a.typeParameters=r,this.resetStartLocationFromNode(a,r),s}),i);let l=null;if(o.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(o.node).type){if(!o.error&&!o.aborted)return o.node.async&&this.raise(ct.UnexpectedTypeParameterBeforeAsyncArrowFunction,r),o.node;l=o.node}if(null!=(s=n)&&s.node)return this.state=n.failState,n.node;if(l)return this.state=o.failState,l;if(null!=(a=n)&&a.thrown)throw n.error;if(o.thrown)throw o.error;throw this.raise(ct.UnexpectedTokenAfterTypeParameter,r)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse((()=>{const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const r=this.startNode();return[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r}));if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,r,n=!0){if(!r||-1===this.state.noArrowParamsConversionAt.indexOf(e.start)){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(ct.ThisParamMustBeFirst,e.params[t]);super.checkParams(e,t,r,n)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(e,t,r){if("Identifier"===e.type&&"async"===e.name&&-1!==this.state.noArrowAt.indexOf(t.index)){this.next();const r=this.startNodeAt(t);r.callee=e,r.arguments=super.parseCallExpressionArguments(11,!1),e=this.finishNode(r,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){const n=this.state.clone(),i=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t)||e()),n);if(!i.error&&!i.aborted)return i.node;const s=this.tryParse((()=>super.parseSubscripts(e,t,r)),n);if(s.node&&!s.error)return s.node;if(i.node)return this.state=i.failState,i.node;if(s.node)return this.state=s.failState,s.node;throw i.error||s.error}return super.parseSubscripts(e,t,r)}parseSubscript(e,t,r,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,r)return n.stop=!0,e;this.next();const i=this.startNodeAt(t);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),i.arguments=this.parseCallExpressionArguments(11,!1),i.optional=!0,this.finishCallExpression(i,!0)}if(!r&&this.shouldParseTypes()&&this.match(47)){const r=this.startNodeAt(t);r.callee=e;const i=this.tryParse((()=>(r.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),r.arguments=super.parseCallExpressionArguments(11,!1),n.optionalChainMember&&(r.optional=!1),this.finishCallExpression(r,n.optionalChainMember))));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(e,t,r,n)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){const t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){const t=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===t&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(e)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);124!==e||125!==t?super.readToken_pipe_amp(e):this.finishOp(9,2)}parseTopLevel(e,t){const r=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(ct.UnterminatedFlowComment,this.state.curPosition()),r}skipBlockComment(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/");{if(this.state.hasFlowComment)throw this.raise(ct.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0)}}skipFlowComment(){const{pos:e}=this.state;let t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;const r=this.input.charCodeAt(t+e),n=this.input.charCodeAt(t+e+1);return 58===r&&58===n?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==n&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(g.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:r}){this.raise(ct.EnumBooleanMemberNotInitialized,e,{memberName:r,enumName:t})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?ct.EnumInvalidMemberInitializerSymbolType:ct.EnumInvalidMemberInitializerPrimaryType:ct.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(ct.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(ct.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){const e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{const r=this.parseNumericLiteral(this.state.value);return t()?{type:"number",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}case 133:{const r=this.parseStringLiteral(this.state.value);return t()?{type:"string",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}case 85:case 86:{const r=this.parseBooleanLiteral(this.match(85));return t()?{type:"boolean",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){const e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,r){const{explicitType:n}=t;null!==n&&n!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){const r=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}const s=this.startNode(),{id:a,init:o}=this.flowEnumMemberRaw(),l=a.name;if(""===l)continue;/^[a-z]/.test(l)&&this.raise(ct.EnumInvalidMemberName,a,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:e}),r.has(l)&&this.raise(ct.EnumDuplicateMemberName,a,{memberName:l,enumName:e}),r.add(l);const c={enumName:e,explicitType:t,memberName:l};switch(s.id=a,o.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"boolean"),s.init=o.value,n.booleanMembers.push(this.finishNode(s,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"number"),s.init=o.value,n.numberMembers.push(this.finishNode(s,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"string"),s.init=o.value,n.stringMembers.push(this.finishNode(s,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(o.loc,c);case"none":switch(t){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.loc,c);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.loc,c);break;default:n.defaultedMembers.push(this.finishNode(s,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:n,hasUnknownMembers:i}}flowEnumStringMembers(e,t,{enumName:r}){if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(const t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:r});return t}for(const e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:r});return e}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!K(this.state.type))throw this.raise(ct.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});const{value:t}=this.state;return this.next(),"boolean"!==t&&"number"!==t&&"string"!==t&&"symbol"!==t&&this.raise(ct.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:t}),t}flowEnumBody(e,t){const r=t.name,n=t.loc.start,i=this.flowEnumParseExplicitType({enumName:r});this.expect(5);const{members:s,hasUnknownMembers:a}=this.flowEnumMembers({enumName:r,explicitType:i});switch(e.hasUnknownMembers=a,i){case"boolean":return e.explicitType=!0,e.members=s.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=s.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(s.stringMembers,s.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=s.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{const t=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const i=s.booleanMembers.length,a=s.numberMembers.length,o=s.stringMembers.length,l=s.defaultedMembers.length;if(i||a||o||l){if(i||a){if(!a&&!o&&i>=l){for(const e of s.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name});return e.members=s.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!i&&!o&&a>=l){for(const e of s.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name});return e.members=s.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(ct.EnumInconsistentMemberValues,n,{enumName:r}),t()}return e.members=this.flowEnumStringMembers(s.stringMembers,s.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(e,"EnumStringBody")}return t()}}}flowParseEnumDeclaration(e){const t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,"EnumDeclaration")}isLookaheadToken_lt(){const e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){const t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}},typescript:e=>class extends e{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:Et.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Et.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Et.InvalidModifierOnTypeParameter})}getScopeHandler(){return bt}tsIsIdentifier(){return K(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(e,t){if(!K(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;const r=this.state.value;if(-1!==e.indexOf(r)){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return r}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:r,errorTemplate:n=Et.InvalidModifierOnTypeMember},i){const s=(e,t,r,n)=>{t===r&&i[n]&&this.raise(Et.InvalidModifiersOrder,e,{orderedModifiers:[r,n]})},a=(e,t,r,n)=>{(i[r]&&t===n||i[n]&&t===r)&&this.raise(Et.IncompatibleModifiers,e,{modifiers:[r,n]})};for(;;){const{startLoc:o}=this.state,l=this.tsParseModifier(e.concat(null!=t?t:[]),r);if(!l)break;xt(l)?i.accessibility?this.raise(Et.DuplicateAccessibilityModifier,o,{modifier:l}):(s(o,l,l,"override"),s(o,l,l,"static"),s(o,l,l,"readonly"),i.accessibility=l):_t(l)?(i[l]&&this.raise(Et.DuplicateModifier,o,{modifier:l}),i[l]=!0,s(o,l,"in","out")):(Object.hasOwnProperty.call(i,l)?this.raise(Et.DuplicateModifier,o,{modifier:l}):(s(o,l,"static","readonly"),s(o,l,"static","override"),s(o,l,"override","readonly"),s(o,l,"abstract","override"),a(o,l,"declare","override"),a(o,l,"static","abstract")),i[l]=!0),null!=t&&t.includes(l)&&this.raise(n,o,{modifier:l})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,t){const r=[];for(;!this.tsIsListTerminator(e);)r.push(t());return r}tsParseDelimitedList(e,t,r){return function(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}(this.tsParseDelimitedListWorker(e,t,!0,r))}tsParseDelimitedListWorker(e,t,r,n){const i=[];let s=-1;for(;!this.tsIsListTerminator(e);){s=-1;const n=t();if(null==n)return;if(i.push(n),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(r&&this.expect(12))}s=this.state.lastTokStartLoc.index}return n&&(n.value=s),i}tsParseBracketedList(e,t,r,n,i){n||(r?this.expect(0):this.expect(47));const s=this.tsParseDelimitedList(e,t,i);return r?this.expect(3):this.expect(48),s}tsParseImportType(){const e=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise(Et.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom(),this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(e=!0){let t=this.parseIdentifier(e);for(;this.eat(16);){const r=this.startNodeAtNode(t);r.left=t,r.right=this.parseIdentifier(e),t=this.finishNode(r,"TSQualifiedName")}return t}tsParseTypeReference(){const e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();const t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){const t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){const t=this.startNode();this.match(47)||this.match(142)?this.next():this.unexpected();const r={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,r),0===t.params.length&&this.raise(Et.EmptyTypeParameters,t),-1!==r.value&&this.addExtra(t,"trailingComma",r.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){const r=19===e,n="typeAnnotation";t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(r||this.match(e))&&(t[n]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){const e=super.parseBindingList(11,41,2);for(const t of e){const{type:e}=t;"AssignmentPattern"!==e&&"TSParameterProperty"!==e||this.raise(Et.UnsupportedSignatureParameterKind,t,{type:e})}return e}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!K(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(e){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];const r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){this.eat(17)&&(e.optional=!0);const r=e;if(this.match(10)||this.match(47)){t&&this.raise(Et.ReadonlyForMethodSignature,e);const n=r;n.kind&&this.match(47)&&this.raise(Et.AccesorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();const i="parameters",s="typeAnnotation";if("get"===n.kind)n[i].length>0&&(this.raise(g.BadGetterArity,this.state.curPosition()),this.isThisParam(n[i][0])&&this.raise(Et.AccesorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===n.kind){if(1!==n[i].length)this.raise(g.BadSetterArity,this.state.curPosition());else{const e=n[i][0];this.isThisParam(e)&&this.raise(Et.AccesorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===e.type&&e.optional&&this.raise(Et.SetAccesorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===e.type&&this.raise(Et.SetAccesorCannotHaveRestParameter,this.state.curPosition())}n[s]&&this.raise(Et.SetAccesorCannotHaveReturnType,n[s])}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}{const e=r;t&&(e.readonly=!0);const n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){const t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);const t=this.tsTryParseIndexSignature(e);return t||(super.parsePropertyName(e),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedTypeParameter(){const e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){const e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach((e=>{const{type:r}=e;!t||"TSRestType"===r||"TSOptionalType"===r||"TSNamedTupleMember"===r&&e.optional||this.raise(Et.OptionalTypeBeforeRequired,e),t||(t="TSNamedTupleMember"===r&&e.optional||"TSOptionalType"===r)})),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const{startLoc:e}=this.state,t=this.eat(21);let r,n,i,s;const a=J(this.state.type)?this.lookaheadCharCode():null;if(58===a)r=!0,i=!1,n=this.parseIdentifier(!0),this.expect(14),s=this.tsParseType();else if(63===a){i=!0;const e=this.state.startLoc,t=this.state.value,a=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(r=!0,n=this.createIdentifier(this.startNodeAt(e),t),this.expect(17),this.expect(14),s=this.tsParseType()):(r=!1,s=a,this.expect(17))}else s=this.tsParseType(),i=this.eat(17),r=this.eat(14);if(r){let e;n?(e=this.startNodeAtNode(n),e.optional=i,e.label=n,e.elementType=s,this.eat(17)&&(e.optional=!0,this.raise(Et.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAtNode(s),e.optional=i,this.raise(Et.InvalidTupleMemberLabel,s),e.label=s,e.elementType=this.tsParseType()),s=this.finishNode(e,"TSNamedTupleMember")}else if(i){const e=this.startNodeAtNode(s);e.typeAnnotation=s,s=this.finishNode(e,"TSOptionalType")}if(t){const t=this.startNodeAt(e);t.typeAnnotation=s,s=this.finishNode(t,"TSRestType")}return s}tsParseParenthesizedType(){const e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){const r=this.startNode();return"TSConstructorType"===e&&(r.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,r))),this.finishNode(r,e)}tsParseLiteralTypeNode(){const e=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){const e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){const e=this.startNode(),t=this.lookahead();return 134!==t.type&&135!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:e}=this.state;if(K(e)||88===e||84===e){const t=88===e?"TSVoidKeyword":84===e?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==t&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const t=this.startNodeAtNode(e);t.elementType=e,this.expect(3),e=this.finishNode(t,"TSArrayType")}else{const t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(t,"TSIndexedAccessType")}return e}tsParseTypeOperator(){const e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(Et.UnexpectedReadonly,e)}}tsParseInferType(){const e=this.startNode();this.expectContextual(115);const t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType())),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const e=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){var e;return(e=this.state.type)>=121&&e<=123&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(e,t,r){const n=this.startNode(),i=this.eat(r),s=[];do{s.push(t())}while(this.eat(r));return 1!==s.length||i?(n.types=s,this.finishNode(n,e)):s[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(K(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch(e){return!1}}if(this.match(0)){this.next();const{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch(e){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{const t=this.startNode();this.expect(e);const r=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(r.parameterName=e,r.asserts=!0,r.typeAnnotation=null,e=this.finishNode(r,"TSTypePredicate")):(this.resetStartLocationFromNode(e,r),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}const i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return n?(r.parameterName=this.parseIdentifier(),r.asserts=n,r.typeAnnotation=null,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);const s=this.tsParseTypeAnnotation(!1);return r.parameterName=i,r.typeAnnotation=s,r.asserts=n,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(109!==this.state.type)return!1;const e=this.state.containsEsc;return this.next(),!(!K(this.state.type)&&!this.match(78))&&(e&&this.raise(g.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType((()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){vt(this.state.inType);const e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;const t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType())),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&77===this.lookahead().type}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Et.ReservedTypeAssertion,this.state.startLoc);const e=this.startNode();return e.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()))),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.startLoc,r=this.tsParseDelimitedList("HeritageClauseElement",(()=>{const e=this.startNode();return e.expression=this.tsParseEntityName(),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}));return r.length||this.raise(Et.EmptyHeritageClauseType,t,{token:e}),r}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),K(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(Et.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));const r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(r,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType((()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&16!==this.lookahead().type){const e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}tsInType(e){const t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType((()=>(this.expect(e),this.tsParseType())))}tsNextThenParseType(){return this.tsInType((()=>(this.next(),this.tsParseType())))}tsParseEnumMember(){const e=this.startNode();return e.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t={}){return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.global=!0,e.id=this.parseIdentifier()):this.match(133)?e.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t,r){e.isExport=r||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);const n=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==n.type&&this.raise(Et.ImportAliasHasImportType,n),e.moduleReference=n,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const t=this.state.clone(),r=e();return this.state=t,r}tsTryParseAndCatch(e){const t=this.tryParse((t=>e()||t()));if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}tsTryParse(e){const t=this.state.clone(),r=e();if(void 0!==r&&!1!==r)return r;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t,r=this.state.type;return this.isContextual(100)&&(r=74,t="let"),this.tsInAmbientContext((()=>{switch(r){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,this.parseVarStatement(e,t||this.state.value,!0));case 129:{const t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if(K(r))return this.tsParseDeclaration(e,this.state.value,!0,null)}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,t,r){switch(t.name){case"declare":{const t=this.tsTryParseDeclare(e);return t&&(t.declare=!0),t}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);const r=e;return r.global=!0,r.id=t,r.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1,r)}}tsParseDeclaration(e,t,r,n){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||K(this.state.type)))return this.tsParseAbstractDeclaration(e,n);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(e);if(K(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&K(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(r)&&K(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;const t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const r=this.tsTryParseAndCatch((()=>{const t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t}));return this.state.maybeInArrowParameters=t,r?super.parseArrowExpression(r,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===e.params.length?this.raise(Et.EmptyTypeArguments,e):this.state.inType||this.curContext()!==E.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return(e=this.state.type)>=124&&e<=130;var e}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){const r=this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);const i=n.accessibility,s=n.override,a=n.readonly;4&e||!(i||a||s)||this.raise(Et.UnexpectedParameterModifier,r);const o=this.parseMaybeDefault();this.parseAssignableListItemTypes(o,e);const l=this.parseMaybeDefault(o.loc.start,o);if(i||a||s){const e=this.startNodeAt(r);return t.length&&(e.decorators=t),i&&(e.accessibility=i),a&&(e.readonly=a),s&&(e.override=s),"Identifier"!==l.type&&"AssignmentPattern"!==l.type&&this.raise(Et.UnsupportedParameterPropertyKind,e),e.parameter=l,this.finishNode(e,"TSParameterProperty")}return t.length&&(o.decorators=t),l}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(const t of e.params)"Identifier"!==t.type&&t.optional&&!this.state.isAmbientContext&&this.raise(Et.PatternIsOptional,t)}setArrowFunctionParameters(e,t,r){super.setArrowFunctionParameters(e,t,r),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,r=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const n="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return n&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,n):"TSDeclareFunction"===n&&this.state.isAmbientContext&&(this.raise(Et.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,n,r):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,r))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach((e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(Et.UnexpectedTypeAnnotation,e.typeAnnotation)}))}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,r,n){const i=super.parseArrayLike(e,t,r,n);return"ArrayExpression"===i.type&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(e,t,r,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const r=this.startNodeAt(t);return r.expression=e,this.finishNode(r,"TSNonNullExpression")}let i=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(r)return n.stop=!0,e;n.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let s;const a=this.tsTryParseAndCatch((()=>{if(!r&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return e}const a=this.tsParseTypeArgumentsInExpression();if(!a)return;if(i&&!this.match(10))return void(s=this.state.curPosition());if(H(this.state.type)){const r=super.parseTaggedTemplateExpression(e,t,n);return r.typeParameters=a,r}if(!r&&this.eat(10)){const r=this.startNodeAt(t);return r.callee=e,r.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(r.arguments),r.typeParameters=a,n.optionalChainMember&&(r.optional=i),this.finishCallExpression(r,n.optionalChainMember)}const o=this.state.type;if(48===o||52===o||10!==o&&W(o)&&!this.hasPrecedingLineBreak())return;const l=this.startNodeAt(t);return l.expression=e,l.typeParameters=a,this.finishNode(l,"TSInstantiationExpression")}));if(s&&this.unexpected(s,10),a)return"TSInstantiationExpression"===a.type&&(this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(Et.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),a}return super.parseSubscript(e,t,r,n)}parseNewCallee(e){var t;super.parseNewCallee(e);const{callee:r}=e;"TSInstantiationExpression"!==r.type||null!=(t=r.extra)&&t.parenthesized||(e.typeParameters=r.typeParameters,e.callee=r.expression)}parseExprOp(e,t,r){let n;if($(58)>r&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){const i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?(n&&this.raise(g.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()))),this.finishNode(i,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,t,r)}return super.parseExprOp(e,t,r)}checkReservedWord(e,t,r,n){this.state.isAmbientContext||super.checkReservedWord(e,t,r,n)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(Et.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){const t=this.lookaheadCharCode();return e?123===t||42===t:61!==t}return!e&&this.isContextual(87)}applyImportPhase(e,t,r,n){super.applyImportPhase(e,t,r,n),t?e.exportKind="type"===r?"type":"value":e.importKind="type"===r||"typeof"===r?r:"value"}parseImport(e){if(this.match(133))return e.importKind="value",super.parseImport(e);let t;if(K(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){const r=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,r);t=super.parseImportSpecifiersAndAfter(e,r)}else t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(Et.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){this.next();let t=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?t=this.parseMaybeImportPhase(e,!1):e.importKind="value",this.tsParseImportEqualsDeclaration(e,t,!0)}if(this.eat(29)){const t=e;return t.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExportAssignment")}if(this.eatContextual(93)){const t=e;return this.expectContextual(128),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&80===this.lookahead().type}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,r=!1){const{isAmbientContext:n}=this.state,i=super.parseVarStatement(e,t,r||n);if(!n)return i;for(const{id:e,init:r}of i.declarations)r&&("const"!==t||e.typeAnnotation?this.raise(Et.InitializerNotAllowedInAmbientContext,r):Pt(r,this.hasPlugin("estree"))||this.raise(Et.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,r));return i}parseStatementContent(e,t){if(this.match(75)&&this.isLookaheadContextual("enum")){const e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some((t=>xt(t)?e.accessibility===t:!!e[t]))}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(e,t,r){const n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Et.InvalidModifierOnTypeParameterPositions},t);const i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,n)&&this.raise(Et.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,r,!!t.static)};t.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(e,t,r,n){const i=this.tsTryParseIndexSignature(t);if(i)return e.body.push(i),t.abstract&&this.raise(Et.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(Et.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(Et.IndexSignatureHasDeclare,t),void(t.override&&this.raise(Et.IndexSignatureHasOverride,t));!this.state.inAbstractClass&&t.abstract&&this.raise(Et.NonAbstractClassHasAbstractMethod,t),t.override&&(r.hadSuperClass||this.raise(Et.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,r,n)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(Et.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(Et.ClassMethodHasDeclare,e)}parseExpressionStatement(e,t,r){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t,r):void 0)||super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,r){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,t,r);const n=this.tryParse((()=>super.parseConditional(e,t)));return n.node?(n.error&&(this.state=n.failState),n.node):(n.error&&super.setOptionalParametersError(r,n.error),e)}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){const r=this.startNodeAt(t);return r.expression=e,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext((()=>this.parseExportDeclaration(e)));const t=this.state.startLoc,r=this.eatContextual(125);if(r&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Et.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const n=K(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return n?(("TSInterfaceDeclaration"===n.type||"TSTypeAliasDeclaration"===n.type||r)&&(e.exportKind="type"),r&&(this.resetStartLocation(n,t),n.declare=!0),n):null}parseClassId(e,t,r,n){if((!t||r)&&this.isContextual(113))return;super.parseClassId(e,t,r,e.declare?1024:8331);const i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));const t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&(!e.readonly||e.typeAnnotation)&&this.match(29)&&this.raise(Et.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){const{key:t}=e;this.raise(Et.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==t.type||e.computed?`[${this.input.slice(t.start,t.end)}]`:t.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(Et.PrivateElementHasAbstract,e),e.accessibility&&this.raise(Et.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(Et.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,r,n,i,s){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&i&&this.raise(Et.ConstructorHasTypeParameters,a);const{declare:o=!1,kind:l}=t;!o||"get"!==l&&"set"!==l||this.raise(Et.DeclareAccessor,t,{kind:l}),a&&(t.typeParameters=a),super.pushClassMethod(e,t,r,n,i,s)}pushClassPrivateMethod(e,t,r,n){const i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,r,n)}declareClassPrivateMethodInScope(e,t){"TSDeclareMethod"!==e.type&&("MethodDefinition"!==e.type||e.value.body)&&super.declareClassPrivateMethodInScope(e,t)}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,t,r,n,i,s,a){const o=this.tsTryParseTypeParameters(this.tsParseConstModifier);return o&&(e.typeParameters=o),super.parseObjPropValue(e,t,r,n,i,s,a)}parseFunctionParams(e,t){const r=this.tsTryParseTypeParameters(this.tsParseConstModifier);r&&(e.typeParameters=r),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);const r=this.tsTryParseTypeAnnotation();r&&(e.id.typeAnnotation=r,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var r,n,i,s,a;let o,l,c,u;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(o=this.state.clone(),l=this.tryParse((()=>super.parseMaybeAssign(e,t)),o),!l.error)return l.node;const{context:r}=this.state,n=r[r.length-1];n!==E.j_oTag&&n!==E.j_expr||r.pop()}if(!(null!=(r=l)&&r.error||this.match(47)))return super.parseMaybeAssign(e,t);o&&o!==this.state||(o=this.state.clone());const p=this.tryParse((r=>{var n,i;u=this.tsParseTypeParameters(this.tsParseConstModifier);const s=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==s.type||null!=(n=s.extra)&&n.parenthesized)&&r(),0!==(null==(i=u)?void 0:i.params.length)&&this.resetStartLocationFromNode(s,u),s.typeParameters=u,s}),o);if(!p.error&&!p.aborted)return u&&this.reportReservedArrowTypeParam(u),p.node;if(!l&&(vt(!this.hasPlugin("jsx")),c=this.tryParse((()=>super.parseMaybeAssign(e,t)),o),!c.error))return c.node;if(null!=(n=l)&&n.node)return this.state=l.failState,l.node;if(p.node)return this.state=p.failState,u&&this.reportReservedArrowTypeParam(u),p.node;if(null!=(i=c)&&i.node)return this.state=c.failState,c.node;throw(null==(s=l)?void 0:s.error)||p.error||(null==(a=c)?void 0:a.error)}reportReservedArrowTypeParam(e){var t;1!==e.params.length||e.params[0].constraint||null!=(t=e.extra)&&t.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(Et.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse((e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(14);return!this.canInsertSemicolon()&&this.match(19)||e(),t}));if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e,t){if(!(2&t))return e;this.eat(17)&&(e.optional=!0);const r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return!0;default:return super.isAssignable(e,t)}}toAssignable(e,t=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":t?this.expressionScope.recordArrowParameterBindingError(Et.UnexpectedTypeCastInParameter,e):this.raise(Et.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case"AssignmentExpression":t||"TSTypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,r){return n={TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(64!==r||!t)&&["expression",!0],TSSatisfiesExpression:(64!==r||!t)&&["expression",!0],TSTypeAssertion:(64!==r||!t)&&["expression",!0]},i=e,Object.hasOwnProperty.call(n,i)&&n[i]||super.isValidLVal(e,t,r);var n,i}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){const t=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const r=super.parseMaybeDecoratorArguments(e);return r.typeParameters=t,r}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){const r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(Et.TypeAnnotationAfterAssign,r.typeAnnotation),r}getTokenFromCode(e){if(this.state.inType){if(62===e)return void this.finishOp(48,1);if(60===e)return void this.finishOp(47,1)}super.getTokenFromCode(e)}reScan_lt_gt(){const{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableList(e,t,r){for(let t=0;t<e.length;t++){const r=e[t];"TSTypeCastExpression"===(null==r?void 0:r.type)&&(e[t]=this.typeCastToParameter(r))}super.toAssignableList(e,t,r)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every((e=>this.isAssignable(e,!0))):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){const t=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e)[0];return r&&this.isThisParam(r)?t+1:t}parseCatchClauseParam(){const e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){const t=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return e()}finally{this.state.isAmbientContext=t}}parseClass(e,t,r){const n=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,r)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(Et.NonClassMethodPropertyHasAbstractModifer,e),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,t,r,n,i,s,a){const o=super.parseMethod(e,t,r,n,i,s,a);if(o.abstract){if(this.hasPlugin("estree")?!!o.value.body:!!o.body){const{key:e}=o;this.raise(Et.AbstractMethodHasImplementation,o,{methodName:"Identifier"!==e.type||o.computed?`[${this.input.slice(e.start,e.end)}]`:e.name})}}return o}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,r,n){return!t&&n?(this.parseTypeOnlyImportExportSpecifier(e,!1,r),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,r,n))}parseImportSpecifier(e,t,r,n,i){return!t&&n?(this.parseTypeOnlyImportExportSpecifier(e,!0,r),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,r,n,r?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,r){const n=t?"imported":"local",i=t?"local":"exported";let s,a=e[n],o=!1,l=!0;const c=a.loc.start;if(this.isContextual(93)){const e=this.parseIdentifier();if(this.isContextual(93)){const r=this.parseIdentifier();J(this.state.type)?(o=!0,a=e,s=t?this.parseIdentifier():this.parseModuleExportName(),l=!1):(s=r,l=!1)}else J(this.state.type)?(l=!1,s=t?this.parseIdentifier():this.parseModuleExportName()):(o=!0,a=e)}else J(this.state.type)&&(o=!0,t?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());o&&r&&this.raise(t?Et.TypeModifierIsUsedInTypeImports:Et.TypeModifierIsUsedInTypeExports,c),e[n]=a,e[i]=s;e[t?"importKind":"exportKind"]=o?"type":"value",l&&this.eatContextual(93)&&(e[i]=t?this.parseIdentifier():this.parseModuleExportName()),e[i]||(e[i]=st(e[n])),t&&this.checkIdentifier(e[i],o?4098:4096)}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(54)){const e=this.state.startLoc,t=this.startNode();if(this.next(),K(this.state.type)){const e=this.parseIdentifierName(),r=this.createIdentifier(t,e);if(r.type="V8IntrinsicIdentifier",this.match(10))return r}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(144)){const t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){const r=!(!e.expectedNode||"Placeholder"!==e.type);return e.expectedNode=t,r?e:this.finishNode(e,"Placeholder")}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(144,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,r,n){void 0!==e&&super.checkReservedWord(e,t,r,n)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,r){return"Placeholder"===e||super.isValidLVal(e,t,r)}toAssignable(e,t){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){if(super.chStartsBindingIdentifier(e,t))return!0;return 144===this.lookahead().type}verifyBreakContinue(e,t){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var r;if("Placeholder"!==t.type||null!=(r=t.extra)&&r.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){const r=e;return r.label=this.finishPlaceholder(t,"Identifier"),this.next(),r.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(r,"LabeledStatement")}return this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement")}parseBlock(e,t,r){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,r)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,r){const n=t?"ClassDeclaration":"ClassExpression";this.next();const i=this.state.strict,s=this.parsePlaceholder("Identifier");if(s){if(!(this.match(81)||this.match(144)||this.match(5))){if(r||!t)return e.id=null,e.body=this.finishPlaceholder(s,"ClassBody"),this.finishNode(e,n);throw this.raise(Ct.ClassNameIsRequired,this.state.startLoc)}e.id=s}else this.parseClassId(e,t,r);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,i),this.finishNode(e,n)}parseExport(e,t){const r=this.parsePlaceholder("Identifier");if(!r)return super.parseExport(e,t);if(!this.isContextual(98)&&!this.match(12))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(r,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const n=this.startNode();return n.exported=r,e.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],super.parseExport(e,t)}isExportDefaultSpecifier(){if(this.match(65)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(X(144),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var r;return!(null==(r=e.specifiers)||!r.length)||super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){const{specifiers:t}=e;null!=t&&t.length&&(e.specifiers=t.filter((e=>"Placeholder"===e.exported.type))),super.checkExport(e),e.specifiers=t}parseImport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const r=this.startNodeAtNode(t);if(r.local=t,e.specifiers.push(this.finishNode(r,"ImportDefaultSpecifier")),this.eat(12)){this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)}return this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(Ct.UnexpectedSpace,this.state.lastTokEndLoc)}}},jt=Object.keys(Lt),Mt={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};var Bt=class extends Tt{checkProto(e,t,r,n){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return;const i=e.key;if("__proto__"===("Identifier"===i.type?i.name:i.value)){if(t)return void this.raise(g.RecordNoProto,i);r.used&&(n?null===n.doubleProtoLoc&&(n.doubleProtoLoc=i.loc.start):this.raise(g.DuplicateProto,i)),r.used=!0}}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&e.start===t}getExpression(){this.enterInitialScopes(),this.nextToken();const e=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd((()=>this.parseExpressionBase(t))):this.allowInAnd((()=>this.parseExpressionBase(t)))}parseExpressionBase(e){const t=this.state.startLoc,r=this.parseMaybeAssign(e);if(this.match(12)){const n=this.startNodeAt(t);for(n.expressions=[r];this.eat(12);)n.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(n.expressions),this.finishNode(n,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t)))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd((()=>this.parseMaybeAssign(e,t)))}setOptionalParametersError(e,t){var r;e.optionalParametersLoc=null!=(r=null==t?void 0:t.loc)?r:this.state.startLoc}parseMaybeAssign(e,t){const r=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let e=this.parseYield();return t&&(e=t.call(this,e,r)),e}let n;e?n=!1:(e=new rt,n=!0);const{type:i}=this.state;(10===i||K(i))&&(this.state.potentialArrowAt=this.state.start);let s=this.parseMaybeConditional(e);if(t&&(s=t.call(this,s,r)),(a=this.state.type)>=29&&a<=33){const t=this.startNodeAt(r),n=this.state.value;if(t.operator=n,this.match(29)){this.toAssignable(s,!0),t.left=s;const n=r.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=n&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=n&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=n&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else t.left=s;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(s,{in:this.finishNode(t,"AssignmentExpression")}),t}var a;return n&&this.checkExpressionErrors(e,!0),s}parseMaybeConditional(e){const t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseExprOps(e);return this.shouldExitDescending(n,r)?n:this.parseConditional(n,t,e)}parseConditional(e,t,r){if(this.eat(17)){const r=this.startNodeAt(t);return r.test=e,r.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),r.alternate=this.parseMaybeAssign(),this.finishNode(r,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){const t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(n,r)?n:this.parseExprOp(n,t,-1)}parseExprOp(e,t,r){if(this.isPrivateName(e)){const t=this.getPrivateNameSV(e);(r>=$(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(g.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}const n=this.state.type;if((i=n)>=39&&i<=59&&(this.prodParam.hasIn||!this.match(58))){let i=$(n);if(i>r){if(39===n){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}const s=this.startNodeAt(t);s.left=e,s.operator=this.state.value;const a=41===n||42===n,o=40===n;if(o&&(i=$(42)),this.next(),39===n&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(g.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);s.right=this.parseExprOpRightExpr(n,i);const l=this.finishNode(s,a||o?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(o&&(41===c||42===c)||a&&40===c)throw this.raise(g.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,t,r)}}var i;return e}parseExprOpRightExpr(e,t){const r=this.state.startLoc;if(39===e)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"smart":return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(g.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),r)}));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){const r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,57===e?t-1:t)}parseHackPipeBody(){var e;const{startLoc:t}=this.state,r=this.parseMaybeAssign();return!u.has(r.type)||null!=(e=r.extra)&&e.parenthesized||this.raise(g.PipeUnparenthesizedBody,t,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(g.PipeTopicUnused,t),r}checkExponentialAfterUnary(e){this.match(57)&&this.raise(g.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){const r=this.state.startLoc,n=this.isContextual(96);if(n&&this.isAwaitAllowed()){this.next();const e=this.parseAwait(r);return t||this.checkExponentialAfterUnary(e),e}const i=this.match(34),s=this.startNode();if(a=this.state.type,B[a]){s.operator=this.state.value,s.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const r=this.match(89);if(this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&r){const e=s.argument;"Identifier"===e.type?this.raise(g.StrictDelete,s):this.hasPropertyAsPrivateName(e)&&this.raise(g.DeletePrivateField,s)}if(!i)return t||this.checkExponentialAfterUnary(s),this.finishNode(s,"UnaryExpression")}var a;const o=this.parseUpdate(s,i,e);if(n){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?W(e):W(e)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(g.AwaitNotInAsyncContext,r),this.parseAwait(r)}return o}parseUpdate(e,t,r){if(t){const t=e;return this.checkLVal(t.argument,{in:this.finishNode(t,"UpdateExpression")}),e}const n=this.state.startLoc;let i=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return i;for(;34===this.state.type&&!this.canInsertSemicolon();){const e=this.startNodeAt(n);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,{in:i=this.finishNode(e,"UpdateExpression")})}return i}parseExprSubscripts(e){const t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseExprAtom(e);return this.shouldExitDescending(n,r)?n:this.parseSubscripts(n,t)}parseSubscripts(e,t,r){const n={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,r,n),n.maybeAsyncArrow=!1}while(!n.stop);return e}parseSubscript(e,t,r,n){const{type:i}=this.state;if(!r&&15===i)return this.parseBind(e,t,r,n);if(H(i))return this.parseTaggedTemplateExpression(e,t,n);let s=!1;if(18===i){if(r&&(this.raise(g.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return n.stop=!0,e;n.optionalChainMember=s=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,n,s);{const r=this.eat(0);return r||s||this.eat(16)?this.parseMember(e,t,n,r,s):(n.stop=!0,e)}}parseMember(e,t,r,n,i){const s=this.startNodeAt(t);return s.object=e,s.computed=n,n?(s.property=this.parseExpression(),this.expect(3)):this.match(138)?("Super"===e.type&&this.raise(g.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),r.optionalChainMember?(s.optional=i,this.finishNode(s,"OptionalMemberExpression")):this.finishNode(s,"MemberExpression")}parseBind(e,t,r,n){const i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),n.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),t,r)}parseCoverCallAndAsyncArrowHead(e,t,r,n){const i=this.state.maybeInArrowParameters;let s=null;this.state.maybeInArrowParameters=!0,this.next();const a=this.startNodeAt(t);a.callee=e;const{maybeAsyncArrow:o,optionalChainMember:l}=r;o&&(this.expressionScope.enter(new He(2)),s=new rt),l&&(a.optional=n),a.arguments=n?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===e.type,"Super"!==e.type,a,s);let c=this.finishCallExpression(a,l);return o&&this.shouldParseAsyncArrow()&&!n?(r.stop=!0,this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),c)):(o&&(this.checkExpressionErrors(s,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=i,c}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r){const n=this.startNodeAt(t);return n.tag=e,n.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(g.OptionalChainingNoTemplate,t),this.finishNode(n,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&e.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(e,t){if("Import"===e.callee.type)if(2===e.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),0===e.arguments.length||e.arguments.length>2)this.raise(g.ImportCallArity,e,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(const t of e.arguments)"SpreadElement"===t.type&&this.raise(g.ImportCallSpreadArgument,t);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r,n,i){const s=[];let a=!0;const o=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){!t||this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(g.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc),n&&this.addTrailingCommaExtraToNode(n),this.next();break}s.push(this.parseExprListItem(!1,i,r))}return this.state.inFSharpPipelineDirectBody=o,s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var r;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(r=t.extra)?void 0:r.trailingCommaLoc),t.innerComments&&xe(e,t.innerComments),t.callee.trailingComments&&xe(e,t.callee.trailingComments),e}parseNoCallExpr(){const e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,r=null;const{type:n}=this.state;switch(n){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(t):this.match(10)?this.options.createImportExpressions?this.parseImportCall(t):this.finishNode(t,"Import"):(this.raise(g.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,"Import"));case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 136:return this.parseDecimalLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 2:case 1:return this.parseArrayLike(2===this.state.type?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,e);case 6:case 7:return this.parseObjectLike(6===this.state.type?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;const e=t.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(t,"BindExpression");throw this.raise(g.UnsupportedBind,e)}case 138:return this.raise(g.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const e=this.getPluginOption("pipelineOperator","proposal");if(e)return this.parseTopicReference(e);this.unexpected();break}case 47:{const e=this.input.codePointAt(this.nextTokenStart());se(e)||62===e?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(K(n)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();const e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,r=this.parseIdentifier();if(!t&&"async"===r.name&&!this.canInsertSemicolon()){const{type:e}=this.state;if(68===e)return this.resetPreviousNodeTrailingComments(r),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(r));if(K(e))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(r)):r;if(90===e)return this.resetPreviousNodeTrailingComments(r),this.parseDo(this.startNodeAtNode(r),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(r),[r],!1)):r}this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){const r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=i(this.state.endLoc,-1),this.parseTopicReference(r);this.unexpected()}parseTopicReference(e){const t=this.startNode(),r=this.state.startLoc,n=this.state.type;return this.next(),this.finishTopicReference(t,r,e,n)}finishTopicReference(e,t,r,n){if(this.testTopicReferenceConfiguration(r,t,n)){const n="smart"===r?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise("smart"===r?g.PrimaryTopicNotAllowed:g.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,n)}throw this.raise(g.PipeTopicUnconfiguredToken,t,{token:X(n)})}testTopicReferenceConfiguration(e,t,r){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:X(r)}]);case"smart":return 27===r;default:throw this.raise(g.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(et(!0,this.prodParam.hasYield));const t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(g.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();const r=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=r,this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(g.UnexpectedSuper,e):this.raise(g.SuperNotAllowed,e),this.match(10)||this.match(0)||this.match(16)||this.raise(g.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){const e=this.startNode(),t=this.startNodeAt(i(this.state.startLoc,1)),r=this.state.value;return this.next(),e.id=this.createIdentifier(t,r),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){const e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,r){e.meta=t;const n=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||n)&&this.raise(g.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:r}),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){const t=this.createIdentifier(this.startNodeAtNode(e),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(g.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){const t=this.isContextual(105);if(t||this.unexpected(),this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(g.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}return this.parseMetaProperty(e,t,"meta")}parseLiteralAtNode(e,t,r){return this.addExtra(r,"rawValue",e),this.addExtra(r,"raw",this.input.slice(r.start,this.state.end)),r.value=e,this.next(),this.finishNode(r,t)}parseLiteral(e,t){const r=this.startNode();return this.parseLiteralAtNode(e,t,r)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){const t=this.parseLiteral(e.value,"RegExpLiteral");return t.pattern=e.pattern,t.flags=e.flags,t}parseBooleanLiteral(e){const t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){const e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){const t=this.state.startLoc;let r;this.next(),this.expressionScope.enter(new He(1));const n=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const s=this.state.startLoc,a=[],o=new rt;let l,c,u=!0;for(;!this.match(11);){if(u)u=!1;else if(this.expect(12,null===o.optionalParametersLoc?null:o.optionalParametersLoc),this.match(11)){c=this.state.startLoc;break}if(this.match(21)){const e=this.state.startLoc;if(l=this.state.startLoc,a.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else a.push(this.parseMaybeAssignAllowIn(o,this.parseParenItem))}const p=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=n,this.state.inFSharpPipelineDirectBody=i;let d=this.startNodeAt(t);return e&&this.shouldParseArrow(a)&&(d=this.parseArrow(d))?(this.checkDestructuringPrivate(o),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(d,a,!1),d):(this.expressionScope.exit(),a.length||this.unexpected(this.state.lastTokStartLoc),c&&this.unexpected(c),l&&this.unexpected(l),this.checkExpressionErrors(o,!0),this.toReferencedListDeep(a,!0),a.length>1?(r=this.startNodeAt(s),r.expressions=a,this.finishNode(r,"SequenceExpression"),this.resetEndLocation(r,p)):r=a[0],this.wrapParenthesis(t,r))}wrapParenthesis(e,t){if(!this.options.createParenthesizedExpressions)return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;const r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const r=this.parseMetaProperty(e,t,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.options.allowNewTargetOutsideFunction||this.raise(g.UnexpectedNewTarget,r),r}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){const t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){const t=this.match(83),r=this.parseNoCallExpr();e.callee=r,!t||"Import"!==r.type&&"ImportExpression"!==r.type||this.raise(g.ImportCallNotNewExpression,r)}parseTemplateElement(e){const{start:t,startLoc:r,end:n,value:s}=this.state,a=t+1,o=this.startNodeAt(i(r,1));null===s&&(e||this.raise(g.InvalidEscapeSequenceTemplate,i(this.state.firstInvalidTemplateEscapePos,1)));const l=this.match(24),c=l?-1:-2,u=n+c;o.value={raw:this.input.slice(a,u).replace(/\r\n?/g,"\n"),cooked:null===s?null:s.slice(1,c)},o.tail=l,this.next();const p=this.finishNode(o,"TemplateElement");return this.resetEndLocation(p,i(this.state.lastTokEndLoc,c)),p}parseTemplate(e){const t=this.startNode();t.expressions=[];let r=this.parseTemplateElement(e);for(t.quasis=[r];!r.tail;)t.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),t.quasis.push(r=this.parseTemplateElement(e));return this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,n){r&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const s=Object.create(null);let a=!0;const o=this.startNode();for(o.properties=[],this.next();!this.match(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(o);break}let i;t?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(n),this.checkProto(i,r,s,n)),r&&!this.isObjectProperty(i)&&"SpreadElement"!==i.type&&this.raise(g.InvalidRecordProperty,i),i.shorthand&&this.addExtra(i,"shorthand",!0),o.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let l="ObjectExpression";return t?l="ObjectPattern":r&&(l="RecordExpression"),this.finishNode(o,l)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(g.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());const r=this.startNode();let n,i=!1,s=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(r.decorators=t,t=[]),r.method=!1,e&&(n=this.state.startLoc);let a=this.eat(55);this.parsePropertyNamePrefixOperator(r);const o=this.state.containsEsc,l=this.parsePropertyName(r,e);if(!a&&!o&&this.maybeAsyncOrAccessorProp(r)){const e=l.name;"async"!==e||this.hasPrecedingLineBreak()||(i=!0,this.resetPreviousNodeTrailingComments(l),a=this.eat(55),this.parsePropertyName(r)),"get"!==e&&"set"!==e||(s=!0,this.resetPreviousNodeTrailingComments(l),r.kind=e,this.match(55)&&(a=!0,this.raise(g.AccessorIsGenerator,this.state.curPosition(),{kind:e}),this.next()),this.parsePropertyName(r))}return this.parseObjPropValue(r,n,a,i,!1,s,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const r=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e);n.length!==r&&this.raise("get"===e.kind?g.BadGetterArity:g.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=n[n.length-1])?void 0:t.type)&&this.raise(g.BadSetterRestParameter,e)}parseObjectMethod(e,t,r,n,i){if(i){const r=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(r),r}if(r||t||this.match(10))return n&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,r,n){if(e.shorthand=!1,this.eat(14))return e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(n),this.finishNode(e,"ObjectProperty");if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),r)e.value=this.parseMaybeDefault(t,st(e.key));else if(this.match(29)){const r=this.state.startLoc;null!=n?null===n.shorthandAssignLoc&&(n.shorthandAssignLoc=r):this.raise(g.InvalidCoverInitializedName,r),e.value=this.parseMaybeDefault(t,st(e.key))}else e.value=st(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}}parseObjPropValue(e,t,r,n,i,s,a){const o=this.parseObjectMethod(e,r,n,i,s)||this.parseObjectProperty(e,t,i,a);return o||this.unexpected(),o}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:r,value:n}=this.state;let i;if(J(r))i=this.parseIdentifier(!0);else switch(r){case 134:i=this.parseNumericLiteral(n);break;case 133:i=this.parseStringLiteral(n);break;case 135:i=this.parseBigIntLiteral(n);break;case 136:i=this.parseDecimalLiteral(n);break;case 138:{const e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(g.UnexpectedPrivateField,e),i=this.parsePrivateName();break}default:this.unexpected()}e.key=i,138!==r&&(e.computed=!1)}return e.key}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,r,n,i,s,a=!1){this.initFunction(e,r),e.generator=t,this.scope.enter(18|(a?64:0)|(i?32:0)),this.prodParam.enter(et(r,e.generator)),this.parseFunctionParams(e,n);const o=this.parseFunctionBodyAndFinish(e,s,!0);return this.prodParam.exit(),this.scope.exit(),o}parseArrayLike(e,t,r,n){r&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const s=this.startNode();return this.next(),s.elements=this.parseExprList(e,!r,n,s),this.state.inFSharpPipelineDirectBody=i,this.finishNode(s,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,n){this.scope.enter(6);let i=et(r,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,r);const s=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,n)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=s,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,r){this.toAssignableList(t,r,!1),e.params=t}parseFunctionBodyAndFinish(e,t,r=!1){return this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}parseFunctionBody(e,t,r=!1){const n=t&&!this.match(5);if(this.expressionScope.enter(Qe()),n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{const n=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,(i=>{const s=!this.isSimpleParamList(e.params);i&&s&&this.raise(g.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);const a=!n&&this.state.strict;this.checkParams(e,!(this.state.strict||t||r||s),t,a),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,a)})),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let t=0,r=e.length;t<r;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,r,n=!0){const i=!t&&new Set,s={type:"FormalParameters"};for(const t of e.params)this.checkLVal(t,{in:s,binding:5,checkClashes:i,strictModeChanged:n})}parseExprList(e,t,r,n){const i=[];let s=!0;for(;!this.eat(e);){if(s)s=!1;else if(this.expect(12),this.match(e)){n&&this.addTrailingCommaExtraToNode(n),this.next();break}i.push(this.parseExprListItem(t,r))}return i}parseExprListItem(e,t,r){let n;if(this.match(12))e||this.raise(g.UnexpectedToken,this.state.curPosition(),{unexpected:","}),n=null;else if(this.match(21)){const e=this.state.startLoc;n=this.parseParenItem(this.parseSpread(t),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),r||this.raise(g.UnexpectedArgumentPlaceholder,this.state.startLoc);const e=this.startNode();this.next(),n=this.finishNode(e,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return n}parseIdentifier(e){const t=this.startNode(),r=this.parseIdentifierName(e);return this.createIdentifier(t,r)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}parseIdentifierName(e){let t;const{startLoc:r,type:n}=this.state;J(n)?t=this.state.value:this.unexpected();const i=n<=92;return e?i&&this.replaceToken(132):this.checkReservedWord(t,r,i,!1),this.next(),t}checkReservedWord(e,t,r,n){if(e.length>10)return;if(!function(e){return ye.has(e)}(e))return;if(r&&function(e){return ce.has(e)}(e))return void this.raise(g.UnexpectedKeyword,t,{keyword:e});if((this.state.strict?n?me:he:de)(e,this.inModule))this.raise(g.UnexpectedReservedWord,t,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(g.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(g.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(g.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(g.ArgumentsInClass,t)}isAwaitAllowed(){return!!this.prodParam.hasAwait||!(!this.options.allowAwaitOutsideFunction||this.scope.inFunction)}parseAwait(e){const t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(g.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(g.ObsoleteAwaitStar,t),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;const{type:e}=this.state;return 53===e||10===e||0===e||H(e)||102===e&&!this.state.containsEsc||137===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}parseYield(){const e=this.startNode();this.expressionScope.recordParameterInitializerError(g.YieldInParameter,e),this.next();let t=!1,r=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:r=this.parseMaybeAssign()}return e.delegate=t,e.argument=r,this.finishNode(e,"YieldExpression")}parseImportCall(e){return this.next(),e.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(e.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(e.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(g.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){const r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}{const r=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),r.expression=e,this.finishNode(r,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(g.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(g.PipelineTopicUnused,e)}withTopicBindingContext(e){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();{const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}}withSoloAwaitPermittingContext(e){const t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){const t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(8|t);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){const t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(-9&t);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const n=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,n}parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const t=this.startNodeAt(this.state.endLoc);this.next();const r=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")}parsePropertyNamePrefixOperator(e){}},Rt={kind:1},qt={kind:2},Ut=/[\uD800-\uDFFF]/u,Kt=/in(?:stanceof)?/y;var Jt=class extends Bt{parseTopLevel(e,t){return e.program=this.parseProgram(t),e.comments=this.comments,this.options.tokens&&(e.tokens=function(e,t){for(let r=0;r<e.length;r++){const n=e[r],{type:s}=n;if("number"==typeof s){if(138===s){const{loc:t,start:s,value:a,end:o}=n,l=s+1,c=i(t.start,1);e.splice(r,1,new We({type:G(27),value:"#",start:s,end:l,startLoc:t.start,endLoc:c}),new We({type:G(132),value:a,start:l,end:o,startLoc:c,endLoc:t.end})),r++;continue}if(H(s)){const{loc:a,start:o,value:l,end:c}=n,u=o+1,p=i(a.start,1);let d,h,f,m,y;d=96===t.charCodeAt(o)?new We({type:G(22),value:"`",start:o,end:u,startLoc:a.start,endLoc:p}):new We({type:G(8),value:"}",start:o,end:u,startLoc:a.start,endLoc:p}),24===s?(f=c-1,m=i(a.end,-1),h=null===l?null:l.slice(1,-1),y=new We({type:G(22),value:"`",start:f,end:c,startLoc:m,endLoc:a.end})):(f=c-2,m=i(a.end,-2),h=null===l?null:l.slice(1,-2),y=new We({type:G(23),value:"${",start:f,end:c,startLoc:m,endLoc:a.end})),e.splice(r,1,d,new We({type:G(20),value:h,start:u,end:f,startLoc:p,endLoc:m}),y),r+=2;continue}n.type=G(s)}}return e}(this.tokens,this.input)),this.finishNode(e,"File")}parseProgram(e,t=139,r=this.options.sourceType){if(e.sourceType=r,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(const[e,t]of Array.from(this.scope.undefinedExports))this.raise(g.ModuleExportUndefined,t,{localName:e});let n;return n=139===t?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",i(this.state.startLoc,-1)),n}stmtToDirective(e){const t=e;t.type="Directive",t.value=t.expression,delete t.expression;const r=t.value,n=r.value,i=this.input.slice(r.start,r.end),s=r.value=i.slice(1,-1);return this.addExtra(r,"raw",i),this.addExtra(r,"rawValue",s),this.addExtra(r,"expressionValue",n),r.type="DirectiveLiteral",t}parseInterpreterDirective(){if(!this.match(28))return null;const e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}chStartsBindingIdentifier(e,t){if(se(e)){if(Kt.lastIndex=t,Kt.test(this.input)){const e=this.codePointAtPos(Kt.lastIndex);if(!ae(e)&&92!==e)return!1}return!0}return 92===e}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){const e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifier(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}startsUsingForOf(){const{type:e,containsEsc:t}=this.lookahead();return!(102===e&&!t)&&(K(e)&&!this.hasFollowingLineBreak()?(this.expectPlugin("explicitResourceManagement"),!0):void 0)}startsAwaitUsing(){let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);const t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){const r=this.state.type,n=this.startNode(),i=!!(2&e),s=!!(4&e),a=1&e;switch(r){case 60:return this.parseBreakContinueStatement(n,!0);case 63:return this.parseBreakContinueStatement(n,!1);case 64:return this.parseDebuggerStatement(n);case 90:return this.parseDoWhileStatement(n);case 91:return this.parseForStatement(n);case 68:if(46===this.lookaheadCharCode())break;return s||this.raise(this.state.strict?g.StrictFunction:this.options.annexB?g.SloppyFunctionAnnexB:g.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(n,!1,!i&&s);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,n),!0);case 69:return this.parseIfStatement(n);case 70:return this.parseReturnStatement(n);case 71:return this.parseSwitchStatement(n);case 72:return this.parseThrowStatement(n);case 73:return this.parseTryStatement(n);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?i||this.raise(g.UnexpectedLexicalDeclaration,n):this.raise(g.AwaitUsingNotInAsyncContext,n),this.next(),this.parseVarStatement(n,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(g.UnexpectedUsingDeclaration,this.state.startLoc):i||this.raise(g.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(n,"using");case 100:{if(this.state.containsEsc)break;const e=this.nextTokenStart(),t=this.codePointAtPos(e);if(91!==t){if(!i&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(t,e)&&123!==t)break}}case 75:i||this.raise(g.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const e=this.state.value;return this.parseVarStatement(n,e)}case 92:return this.parseWhileStatement(n);case 76:return this.parseWithStatement(n);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(n);case 83:{const e=this.lookaheadCharCode();if(40===e||46===e)break}case 82:{let e;return this.options.allowImportExportEverywhere||a||this.raise(g.UnexpectedImportExport,this.state.startLoc),this.next(),83===r?(e=this.parseImport(n),"ImportDeclaration"!==e.type||e.importKind&&"value"!==e.importKind||(this.sawUnambiguousESM=!0)):(e=this.parseExport(n,t),("ExportNamedDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&("ExportAllDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&"ExportDefaultDeclaration"!==e.type||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(g.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(n,!0,!i&&s)}const o=this.state.value,l=this.parseExpression();return K(r)&&"Identifier"===l.type&&this.eat(14)?this.parseLabeledStatement(n,o,l,e):this.parseExpressionStatement(n,l,t)}assertModuleNodeAllowed(e){this.options.allowImportExportEverywhere||this.inModule||this.raise(g.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,t,r){return e&&(t.decorators&&t.decorators.length>0?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(g.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),r&&this.resetStartLocationFromNode(r,t)),t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){const t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(g.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(g.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const e=this.startNode();if(this.next(),this.hasPlugin("decorators")){const t=this.state.startLoc;let r;if(this.match(10)){const t=this.state.startLoc;this.next(),r=this.parseExpression(),this.expect(11),r=this.wrapParenthesis(t,r);const n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(r),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==r&&this.raise(g.DecoratorArgumentsOutsideParentheses,n)}else{for(r=this.parseIdentifier(!1);this.eat(16);){const e=this.startNodeAt(t);e.object=r,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,r=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(r)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(10)){const t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let r;for(r=0;r<this.state.labels.length;++r){const n=this.state.labels[r];if(null==e.label||n.name===e.label.name){if(null!=n.kind&&(t||1===n.kind))break;if(e.label&&t)break}}if(r===this.state.labels.length){const r=t?"BreakStatement":"ContinueStatement";this.raise(g.IllegalBreakContinue,e,{type:r})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(Rt),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(Rt);let t=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(t=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return null!==t&&this.unexpected(t),this.parseFor(e,null);const r=this.isContextual(100);{const n=this.isContextual(96)&&this.startsAwaitUsing(),i=n||this.isContextual(107)&&this.startsUsingForOf(),s=r&&this.hasFollowingBindingAtom()||i;if(this.match(74)||this.match(75)||s){const r=this.startNode();let s;n?(s="await using",this.isAwaitAllowed()||this.raise(g.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):s=this.state.value,this.next(),this.parseVar(r,!0,s);const a=this.finishNode(r,"VariableDeclaration"),o=this.match(58);return o&&i&&this.raise(g.ForInUsing,a),(o||this.isContextual(102))&&1===a.declarations.length?this.parseForIn(e,a,t):(null!==t&&this.unexpected(t),this.parseFor(e,a))}}const n=this.isContextual(95),i=new rt,s=this.parseExpression(!0,i),a=this.isContextual(102);if(a&&(r&&this.raise(g.ForOfLet,s),null===t&&n&&"Identifier"===s.type&&this.raise(g.ForOfAsync,s)),a||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(s,!0);const r=a?"ForOfStatement":"ForInStatement";return this.checkLVal(s,{in:{type:r}}),this.parseForIn(e,s,t)}return this.checkExpressionErrors(i,!0),null!==t&&this.unexpected(t),this.parseFor(e,s)}parseFunctionStatement(e,t,r){return this.next(),this.parseFunction(e,1|(r?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(g.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();const t=e.cases=[];let r;this.expect(5),this.state.labels.push(qt),this.scope.enter(0);for(let e;!this.match(8);)if(this.match(61)||this.match(65)){const n=this.match(61);r&&this.finishNode(r,"SwitchCase"),t.push(r=this.startNode()),r.consequent=[],this.next(),n?r.test=this.parseExpression():(e&&this.raise(g.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,r.test=null),this.expect(14)}else r?r.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),r&&this.finishNode(r,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(g.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===e.type?8:0),this.checkLVal(e,{in:{type:"CatchClause"},binding:9}),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){const t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,e.handler||e.finalizer||this.raise(g.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,t,r=!1){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Rt),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(g.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,r,n){for(const e of this.state.labels)e.name===t&&this.raise(g.LabelRedeclaration,r,{labelName:t});const i=(s=this.state.type)>=90&&s<=92?1:this.match(71)?2:null;var s;for(let t=this.state.labels.length-1;t>=0;t--){const r=this.state.labels[t];if(r.statementStart!==e.start)break;r.statementStart=this.state.start,r.kind=i}return this.state.labels.push({name:t,kind:i,statementStart:this.state.start}),e.body=8&n?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,r){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,r){const n=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(n,e,!1,8,r),t&&this.scope.exit(),this.finishNode(n,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,n,i){const s=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(s,t?a:void 0,r,n,i)}parseBlockOrModuleBlockBody(e,t,r,n,i){const s=this.state.strict;let a=!1,o=!1;for(;!this.match(n);){const n=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(n)){const e=this.stmtToDirective(n);t.push(e),a||"use strict"!==e.value.value||(a=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(n)}null==i||i.call(this,a),s||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,r){const n=this.match(58);return this.next(),n?null!==r&&this.unexpected(r):e.await=null!==r,"VariableDeclaration"!==t.type||null==t.declarations[0].init||n&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(g.ForInOfLoopInitializer,t,{type:n?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(g.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")}parseVar(e,t,r,n=!1){const i=e.declarations=[];for(e.kind=r;;){const e=this.startNode();if(this.parseVarId(e,r),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==e.init||n||("Identifier"===e.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==r||this.match(58)||this.isContextual(102)||this.raise(g.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"const"}):this.raise(g.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),i.push(this.finishNode(e,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){const r=this.parseBindingAtom();this.checkLVal(r,{in:{type:"VariableDeclarator"},binding:"var"===t?5:8201}),e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){const r=2&t,n=!!(1&t),i=n&&!(4&t),s=!!(8&t);this.initFunction(e,s),this.match(55)&&(r&&this.raise(g.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),n&&(e.id=this.parseFunctionId(i));const a=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(et(s,e.generator)),n||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,n?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),n&&!r&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=a,e}parseFunctionId(e){return e||K(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(new $e(3)),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,r){this.next();const n=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,n),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)}parseClassBody(e,t){this.classScope.enter();const r={hadConstructor:!1,hadSuperClass:e};let n=[];const i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(n.length>0)throw this.raise(g.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){n.push(this.parseDecorator());continue}const e=this.startNode();n.length&&(e.decorators=n,this.resetStartLocationFromNode(e,n[0]),n=[]),this.parseClassMember(i,e,r),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(g.DecoratorConstructor,e)}})),this.state.strict=t,this.next(),n.length)throw this.raise(g.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(e,t){const r=this.parseIdentifier(!0);if(this.isClassMethod()){const n=t;return n.kind="method",n.computed=!1,n.key=r,n.static=!1,this.pushClassMethod(e,n,!1,!1,!1,!1),!0}if(this.isClassProperty()){const n=t;return n.computed=!1,n.key=r,n.static=!1,e.body.push(this.parseClassProperty(n)),!0}return this.resetPreviousNodeTrailingComments(r),!1}parseClassMember(e,t,r){const n=this.isContextual(106);if(n){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,r,n)}parseClassMemberWithIsStatic(e,t,r,n){const i=t,s=t,a=t,o=t,l=t,c=i,u=i;if(t.static=n,this.parsePropertyNamePrefixOperator(t),this.eat(55)){c.kind="method";const t=this.match(138);return this.parseClassElementName(c),t?void this.pushClassPrivateMethod(e,s,!0,!1):(this.isNonstaticConstructor(i)&&this.raise(g.ConstructorIsGenerator,i.key),void this.pushClassMethod(e,i,!0,!1,!1,!1))}const p=K(this.state.type)&&!this.state.containsEsc,d=this.match(138),h=this.parseClassElementName(t),f=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(c.kind="method",d)return void this.pushClassPrivateMethod(e,s,!1,!1);const n=this.isNonstaticConstructor(i);let a=!1;n&&(i.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(g.DuplicateConstructor,h),n&&this.hasPlugin("typescript")&&t.override&&this.raise(g.OverrideOnConstructor,h),r.hadConstructor=!0,a=r.hadSuperClass),this.pushClassMethod(e,i,!1,!1,n,a)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a);else if(p&&"async"===h.name&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(h);const t=this.eat(55);u.optional&&this.unexpected(f),c.kind="method";const r=this.match(138);this.parseClassElementName(c),this.parsePostMemberNameModifiers(u),r?this.pushClassPrivateMethod(e,s,t,!0):(this.isNonstaticConstructor(i)&&this.raise(g.ConstructorIsAsync,i.key),this.pushClassMethod(e,i,t,!0,!1,!1))}else if(!p||"get"!==h.name&&"set"!==h.name||this.match(55)&&this.isLineTerminator())if(p&&"accessor"===h.name&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(h);const t=this.match(138);this.parseClassElementName(a),this.pushClassAccessorProperty(e,l,t)}else this.isLineTerminator()?d?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a):this.unexpected();else{this.resetPreviousNodeTrailingComments(h),c.kind=h.name;const t=this.match(138);this.parseClassElementName(i),t?this.pushClassPrivateMethod(e,s,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(g.ConstructorIsAccessor,i.key),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}}parseClassElementName(e){const{type:t,value:r}=this.state;if(132!==t&&133!==t||!e.static||"prototype"!==r||this.raise(g.StaticPrototype,this.state.startLoc),138===t){"constructor"===r&&this.raise(g.ConstructorClassPrivateField,this.state.startLoc);const t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e)}parseClassStaticBlock(e,t){var r;this.scope.enter(208);const n=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=n,e.body.push(this.finishNode(t,"StaticBlock")),null!=(r=t.decorators)&&r.length&&this.raise(g.DecoratorStaticBlock,t)}pushClassProperty(e,t){t.computed||"constructor"!==t.key.name&&"constructor"!==t.key.value||this.raise(g.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){const r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassAccessorProperty(e,t,r){if(!r&&!t.computed){const e=t.key;"constructor"!==e.name&&"constructor"!==e.value||this.raise(g.ConstructorClassField,e)}const n=this.parseClassAccessorProperty(t);e.body.push(n),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassMethod(e,t,r,n,i,s){e.body.push(this.parseMethod(t,r,n,i,s,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,n){const i=this.parseMethod(t,r,n,!1,!1,"ClassPrivateMethod",!0);e.body.push(i);const s="get"===i.kind?i.static?6:2:"set"===i.kind?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,s)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(Qe()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,r,n=8331){if(K(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,n);else{if(!r&&t)throw this.raise(g.MissingClassName,this.state.startLoc);e.id=null}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){const r=this.parseMaybeImportPhase(e,!0),n=this.maybeParseExportDefaultSpecifier(e,r),i=!n||this.eat(12),s=i&&this.eatExportStar(e),a=s&&this.maybeParseExportNamespaceSpecifier(e),o=i&&(!a||this.eat(12)),l=n||s;if(s&&!a){if(n&&this.unexpected(),t)throw this.raise(g.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration")}const c=this.maybeParseExportNamedSpecifiers(e);let u;if(n&&i&&!s&&!c&&this.unexpected(null,5),a&&o&&this.unexpected(null,98),l||c){if(u=!1,t)throw this.raise(g.UnsupportedDecoratorExport,e);this.parseExportFrom(e,l)}else u=this.maybeParseExportDeclaration(e);if(l||c||u){var p;const r=e;if(this.checkExport(r,!0,!1,!!r.source),"ClassDeclaration"===(null==(p=r.declaration)?void 0:p.type))this.maybeTakeDecorators(t,r.declaration,r);else if(t)throw this.raise(g.UnsupportedDecoratorExport,e);return this.finishNode(r,"ExportNamedDeclaration")}if(this.eat(65)){const r=e,n=this.parseExportDefaultExpression();if(r.declaration=n,"ClassDeclaration"===n.type)this.maybeTakeDecorators(t,n,r);else if(t)throw this.raise(g.UnsupportedDecoratorExport,e);return this.checkExport(r,!0,!0),this.finishNode(r,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==t?void 0:t.loc.start);const r=t||this.parseIdentifier(!0),n=this.startNodeAtNode(r);return n.exported=r,e.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){e.specifiers||(e.specifiers=[]);const t=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){e.specifiers||(e.specifiers=[]);const t="type"===e.exportKind;return e.specifiers.push(...this.parseExportSpecifiers(t)),e.source=null,e.declaration=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;const e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(g.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(g.UnsupportedDefaultExport,this.state.startLoc);const t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){if(this.match(80)){return this.parseClass(this.startNode(),!0,!1)}return this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:e}=this.state;if(K(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){const{type:e}=this.lookahead();if(K(e)&&98!==e||5===e)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const t=this.nextTokenStart(),r=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||K(this.state.type)&&r)return!0;if(this.match(65)&&r){const e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){const{type:e}=this.state;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(g.DecoratorBeforeExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,n){var i;if(t)if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var s;const t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!=4||null!=(s=t.extra)&&s.parenthesized||this.raise(g.ExportDefaultFromAsIdentifier,t)}}else if(null!=(i=e.specifiers)&&i.length)for(const t of e.specifiers){const{exported:e}=t,r="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,r),!n&&t.local){const{local:e}=t;"Identifier"!==e.type?this.raise(g.ExportBindingIsString,t,{localName:e.value,exportName:r}):(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration)if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type){const t=e.declaration.id;if(!t)throw new Error("Assertion failure");this.checkDuplicateExports(e,t.name)}else if("VariableDeclaration"===e.declaration.type)for(const t of e.declaration.declarations)this.checkDeclaration(t.id)}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(const t of e.properties)this.checkDeclaration(t);else if("ArrayPattern"===e.type)for(const t of e.elements)t&&this.checkDeclaration(t);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(g.DuplicateDefaultExport,e):this.raise(g.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){const t=[];let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else if(this.expect(12),this.eat(8))break;const n=this.isContextual(130),i=this.match(133),s=this.startNode();s.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(s,i,e,n))}return t}parseExportSpecifier(e,t,r,n){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=at(e.local):e.exported||(e.exported=st(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){const e=this.parseStringLiteral(this.state.value),t=e.value.match(Ut);return t&&this.raise(g.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some((({key:e,value:t})=>"json"===t.value&&("Identifier"===e.type?"type"===e.name:"type"===e.value)))}checkImportReflection(e){const{specifiers:t}=e,r=1===t.length?t[0].type:null;if("source"===e.phase)"ImportDefaultSpecifier"!==r&&this.raise(g.SourcePhaseImportRequiresDefault,t[0].loc.start);else if("defer"===e.phase)"ImportNamespaceSpecifier"!==r&&this.raise(g.DeferImportRequiresNamespace,t[0].loc.start);else if(e.module){var n;"ImportDefaultSpecifier"!==r&&this.raise(g.ImportReflectionNotBinding,t[0].loc.start),(null==(n=e.assertions)?void 0:n.length)>0&&this.raise(g.ImportReflectionHasAssertion,t[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){const{specifiers:t}=e;if(null!=t){const e=t.find((e=>{let t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value}));void 0!==e&&this.raise(g.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(e,t,r,n){t||("module"===r?(this.expectPlugin("importReflection",n),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===r?(this.expectPlugin("sourcePhaseImports",n),e.phase="source"):"defer"===r?(this.expectPlugin("deferredImportEvaluation",n),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;const r=this.parseIdentifier(!0),{type:n}=this.state;return(J(n)?98!==n||102===this.lookaheadCharCode():12!==n)?(this.resetPreviousIdentifierLeadingComments(r),this.applyImportPhase(e,t,r.name,r.loc.start),null):(this.applyImportPhase(e,t,null),r)}isPrecedingIdImportPhase(e){const{type:t}=this.state;return K(t)?98!==t||102===this.lookaheadCharCode():12!==t}parseImport(e){return this.match(133)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];const r=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),n=r&&this.maybeParseStarImportSpecifier(e);return r&&!n&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(133)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,r){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}finishImportSpecifier(e,t,r=8201){return this.checkLVal(e.local,{in:{type:t},binding:r}),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);const e=[],t=new Set;do{if(this.match(8))break;const r=this.startNode(),n=this.state.value;if(t.has(n)&&this.raise(g.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:n}),t.add(n),this.match(133)?r.key=this.parseStringLiteral(n):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(g.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){const e=[],t=new Set;do{const r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(g.ModuleAttributeDifferentFromType,r.key),t.has(r.key.name)&&this.raise(g.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),t.add(r.key.name),this.expect(14),!this.match(133))throw this.raise(g.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t,r=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?t=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),t=this.parseImportAttributes()),r=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(!0!==this.getPluginOption("importAttributes","deprecatedAssertSyntax")&&this.raise(g.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(e,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),t=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))t=[];else{if(!this.hasPlugin("moduleAttributes"))return;t=[]}!r&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){const r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}return!!J(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(55)){const t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(g.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const r=this.startNode(),n=this.match(133),i=this.isContextual(130);r.imported=this.parseModuleExportName();const s=this.parseImportSpecifier(r,n,"type"===e.importKind||"typeof"===e.importKind,i,void 0);e.specifiers.push(s)}}parseImportSpecifier(e,t,r,n,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{const{imported:r}=e;if(t)throw this.raise(g.ImportBindingIsString,e,{importName:r.value});this.checkReservedWord(r.name,e.loc.start,!0,!0),e.local||(e.local=st(r))}return this.finishImportSpecifier(e,"ImportSpecifier",i)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}},Vt=class extends Jt{constructor(e,t){super(e=function(e){if(null==e)return Object.assign({},Mt);if(null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");const t={};for(const n of Object.keys(Mt)){var r;t[n]=null!=(r=e[n])?r:Mt[n]}return t}(e),t),this.options=e,this.initializeScopes(),this.plugins=function(e){const t=new Map;for(const r of e){const[e,n]=Array.isArray(r)?r:[r,{}];t.has(e)||t.set(e,n||{})}return t}(this.options.plugins),this.filename=e.sourceFilename}getScopeHandler(){return be}parse(){this.enterInitialScopes();const e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e}};var Wt=function(e){const t={};for(const r of Object.keys(e))t[r]=G(e[r]);return t}(U);function zt(e,t){let r=Vt;return null!=e&&e.plugins&&(!function(e){if(It(e,"decorators")){if(It(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const t=Nt(e,"decorators","decoratorsBeforeExport");if(null!=t&&"boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const r=Nt(e,"decorators","allowCallParenthesized");if(null!=r&&"boolean"!=typeof r)throw new Error("'allowCallParenthesized' must be a boolean.")}if(It(e,"flow")&&It(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(It(e,"placeholders")&&It(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(It(e,"pipelineOperator")){const t=Nt(e,"pipelineOperator","proposal");if(!kt.includes(t)){const e=kt.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}const r=It(e,["recordAndTuple",{syntaxType:"hash"}]);if("hack"===t){if(It(e,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(It(e,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const t=Nt(e,"pipelineOperator","topicToken");if(!Ot.includes(t)){const e=Ot.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if("#"===t&&r)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if("smart"===t&&r)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(It(e,"moduleAttributes")){if(It(e,"importAssertions")||It(e,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if("may-2020"!==Nt(e,"moduleAttributes","version"))throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(It(e,"importAssertions")&&It(e,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(It(e,"recordAndTuple")&&null!=Nt(e,"recordAndTuple","syntaxType")&&!Ft.includes(Nt(e,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+Ft.map((e=>`'${e}'`)).join(", "));if(It(e,"asyncDoExpressions")&&!It(e,"doExpressions")){const e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(It(e,"optionalChainingAssign")&&"2023-07"!==Nt(e,"optionalChainingAssign","version"))throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}(e.plugins),r=function(e){const t=jt.filter((t=>It(e,t))),r=t.join("/");let n=Yt[r];if(!n){n=Vt;for(const e of t)n=Lt[e](n);Yt[r]=n}return n}(e.plugins)),new r(e,t)}var Yt={};e.parse=function(e,t){var r;if("unambiguous"!==(null==(r=t)?void 0:r.sourceType))return zt(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";const r=zt(t,e),n=r.parse();if(r.sawUnambiguousESM)return n;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",zt(t,e).parse()}catch(e){}else n.program.sourceType="script";return n}catch(r){try{return t.sourceType="script",zt(t,e).parse()}catch(e){}throw r}},e.parseExpression=function(e,t){const r=zt(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()},e.tokTypes=Wt}}),require_tslib=__commonJS({"../../node_modules/.pnpm/tslib@2.5.0/node_modules/tslib/tslib.js"(e,t){var r,n,i,s,a,o,l,c,u,p,d,h,f,m,y,g,b,S,T,v,E,x,_,A,P,w,D,C,I;!function(e){var r="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:{};function n(e,t){return e!==r&&("function"==typeof Object.create?Object.defineProperty(e,"__esModule",{value:!0}):e.__esModule=!0),function(r,n){return e[r]=t?t(r,n):n}}"function"==typeof define&&define.amd?define("tslib",["exports"],(function(t){e(n(r,n(t)))})):"object"==typeof t&&"object"==typeof t.exports?e(n(r,n(t.exports))):e(n(r))}((function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])};r=function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)},n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},s=function(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},a=function(e,t){return function(r,n){t(r,n,e)}},o=function(e,t,r,n,i,s){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=n.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,p=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),d=!1,h=r.length-1;h>=0;h--){var f={};for(var m in n)f[m]="access"===m?{}:n[m];for(var m in n.access)f.access[m]=n.access[m];f.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(e||null))};var y=(0,r[h])("accessor"===l?{get:p.get,set:p.set}:p[c],f);if("accessor"===l){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw new TypeError("Object expected");(o=a(y.get))&&(p.get=o),(o=a(y.set))&&(p.set=o),(o=a(y.init))&&i.push(o)}else(o=a(y))&&("field"===l?i.push(o):p[c]=o)}u&&Object.defineProperty(u,n.name,p),d=!0},l=function(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0},c=function(e){return"symbol"==typeof e?e:"".concat(e)},u=function(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})},p=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e,t,r,n){return new(r||(r=Promise))((function(i,s){function a(e){try{l(n.next(e))}catch(e){s(e)}}function o(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((n=n.apply(e,t||[])).next())}))},h=function(e,t){var r,n,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,o[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}},f=function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||I(t,e,r)},I=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},m=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},y=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a},g=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e},b=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var s=arguments[t],a=0,o=s.length;a<o;a++,i++)n[i]=s[a];return n},S=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,s=t.length;i<s;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},T=function(e){return this instanceof T?(this.v=e,this):new T(e)},v=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),s=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){s.push([e,t,r,n])>1||o(e,t)}))})}function o(e,t){try{(r=i[e](t)).value instanceof T?Promise.resolve(r.value.v).then(l,c):u(s[0][2],r)}catch(e){u(s[0][3],e)}var r}function l(e){o("next",e)}function c(e){o("throw",e)}function u(e,t){e(t),s.shift(),s.length&&o(s[0][0],s[0][1])}},E=function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:T(e[n](t)),done:!1}:i?i(t):t}:i}},x=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=m(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}},_=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};var N=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};A=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&I(t,e,r);return N(t,e),t},P=function(e){return e&&e.__esModule?e:{default:e}},w=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},D=function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},C=function(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)},e("__extends",r),e("__assign",n),e("__rest",i),e("__decorate",s),e("__param",a),e("__esDecorate",o),e("__runInitializers",l),e("__propKey",c),e("__setFunctionName",u),e("__metadata",p),e("__awaiter",d),e("__generator",h),e("__exportStar",f),e("__createBinding",I),e("__values",m),e("__read",y),e("__spread",g),e("__spreadArrays",b),e("__spreadArray",S),e("__await",T),e("__asyncGenerator",v),e("__asyncDelegator",E),e("__asyncValues",x),e("__makeTemplateObject",_),e("__importStar",A),e("__importDefault",P),e("__classPrivateFieldGet",w),e("__classPrivateFieldSet",D),e("__classPrivateFieldIn",C)}))}}),require_shared=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.maybeSetModuleExports=void 0;var t=require_tslib().__importDefault(require_types());e.default=function(e){var r=e.use(t.default),n=r.Type,i=r.builtInTypes,s=i.number,a=n.or(i.string,i.number,i.boolean,i.null,i.undefined);return{geq:function(e){return n.from((function(t){return s.check(t)&&t>=e}),s+" >= "+e)},defaults:{null:function(){return null},emptyArray:function(){return[]},false:function(){return!1},true:function(){return!0},undefined:function(){},"use strict":function(){return"use strict"}},isPrimitive:n.from((function(e){if(null===e)return!0;var t=typeof e;return"object"!==t&&"function"!==t}),a.toString())}},e.maybeSetModuleExports=function(e){try{var t=e(),r=t.exports,n=r.default}catch(e){return}n&&n!==r&&"object"==typeof r&&(Object.assign(n,r,{default:n}),r.__esModule&&Object.defineProperty(n,"__esModule",{value:!0}),t.exports=n)}}}),require_types=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/types.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.Def=void 0;var r=require_tslib(),n=require_shared(),i=Object.prototype,s=i.toString,a=i.hasOwnProperty,o=function(){function e(){}return e.prototype.assert=function(e,t){if(!this.check(e,t)){var r=m(e);throw new Error(r+" does not match type "+this)}return!0},e.prototype.arrayOf=function(){return new l(this)},e}(),l=function(e){function t(t){var r=e.call(this)||this;return r.elemType=t,r.kind="ArrayType",r}return r.__extends(t,e),t.prototype.toString=function(){return"["+this.elemType+"]"},t.prototype.check=function(e,t){var r=this;return Array.isArray(e)&&e.every((function(e){return r.elemType.check(e,t)}))},t}(o),c=function(e){function t(t){var r=e.call(this)||this;return r.value=t,r.kind="IdentityType",r}return r.__extends(t,e),t.prototype.toString=function(){return String(this.value)},t.prototype.check=function(e,t){var r=e===this.value;return r||"function"!=typeof t||t(this,e),r},t}(o),u=function(e){function t(t){var r=e.call(this)||this;return r.fields=t,r.kind="ObjectType",r}return r.__extends(t,e),t.prototype.toString=function(){return"{ "+this.fields.join(", ")+" }"},t.prototype.check=function(e,t){return s.call(e)===s.call({})&&this.fields.every((function(r){return r.type.check(e[r.name],t)}))},t}(o),p=function(e){function t(t){var r=e.call(this)||this;return r.types=t,r.kind="OrType",r}return r.__extends(t,e),t.prototype.toString=function(){return this.types.join(" | ")},t.prototype.check=function(e,t){return!!this.types.some((function(r){return r.check(e,!!t)}))||("function"==typeof t&&t(this,e),!1)},t}(o),d=function(e){function t(t,r){var n=e.call(this)||this;return n.name=t,n.predicate=r,n.kind="PredicateType",n}return r.__extends(t,e),t.prototype.toString=function(){return this.name},t.prototype.check=function(e,t){var r=this.predicate(e,t);return r||"function"!=typeof t||t(this,e),r},t}(o),h=function(){function e(e,t){this.type=e,this.typeName=t,this.baseNames=[],this.ownFields=Object.create(null),this.allSupertypes=Object.create(null),this.supertypeList=[],this.allFields=Object.create(null),this.fieldNames=[],this.finalized=!1,this.buildable=!1,this.buildParams=[]}return e.prototype.isSupertypeOf=function(t){if(t instanceof e){if(!0!==this.finalized||!0!==t.finalized)throw new Error("");return a.call(t.allSupertypes,this.typeName)}throw new Error(t+" is not a Def")},e.prototype.checkAllFields=function(e,t){var r=this.allFields;if(!0!==this.finalized)throw new Error(""+this.typeName);return null!==e&&"object"==typeof e&&Object.keys(r).every((function(n){var i=r[n],s=i.type,a=i.getValue(e);return s.check(a,t)}))},e.prototype.bases=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.baseNames;if(this.finalized){if(e.length!==r.length)throw new Error("");for(var n=0;n<e.length;n++)if(e[n]!==r[n])throw new Error("");return this}return e.forEach((function(e){r.indexOf(e)<0&&r.push(e)})),this},e}();e.Def=h;var f=function(){function e(e,t,r,n){this.name=e,this.type=t,this.defaultFn=r,this.hidden=!!n}return e.prototype.toString=function(){return JSON.stringify(this.name)+": "+this.type},e.prototype.getValue=function(e){var t=e[this.name];return void 0!==t||"function"==typeof this.defaultFn&&(t=this.defaultFn.call(e)),t},e}();function m(e){return Array.isArray(e)?"["+e.map(m).join(", ")+"]":e&&"object"==typeof e?"{ "+Object.keys(e).map((function(t){return t+": "+e[t]})).join(", ")+" }":JSON.stringify(e)}e.default=function(e){var t={or:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new p(e.map((function(e){return t.from(e)})))},from:function(e,r){if(e instanceof l||e instanceof c||e instanceof u||e instanceof p||e instanceof d)return e;if(e instanceof h)return e.type;if(b.check(e)){if(1!==e.length)throw new Error("only one element type is permitted for typed arrays");return new l(t.from(e[0]))}if(S.check(e))return new u(Object.keys(e).map((function(r){return new f(r,t.from(e[r],r))})));if("function"==typeof e){var s=n.indexOf(e);if(s>=0)return i[s];if("string"!=typeof r)throw new Error("missing name");return new d(r,e)}return new c(e)},def:function(e){return a.call(D,e)?D[e]:D[e]=new I(e)},hasDef:function(e){return a.call(D,e)}},n=[],i=[];function o(e,t){var r=s.call(t),a=new d(e,(function(e){return s.call(e)===r}));return t&&"function"==typeof t.constructor&&(n.push(t.constructor),i.push(a)),a}var y=o("string","truthy"),g=o("function",(function(){})),b=o("array",[]),S=o("object",{}),T=o("RegExp",/./),v=o("Date",new Date),E=o("number",3),x=o("boolean",!0),_=o("null",null),A=o("undefined",void 0),P="function"==typeof BigInt?o("BigInt",BigInt(1234)):new d("BigInt",(function(){return!1})),w={string:y,function:g,array:b,object:S,RegExp:T,Date:v,number:E,boolean:x,null:_,undefined:A,BigInt:P},D=Object.create(null);function C(e){if(e&&"object"==typeof e){var t=e.type;if("string"==typeof t&&a.call(D,t)){var r=D[t];if(r.finalized)return r}}return null}var I=function(e){function n(t){var r=e.call(this,new d(t,(function(e,t){return r.check(e,t)})),t)||this;return r}return r.__extends(n,e),n.prototype.check=function(e,t){if(!0!==this.finalized)throw new Error("prematurely checking unfinalized type "+this.typeName);if(null===e||"object"!=typeof e)return!1;var r=C(e);return r?t&&r===this?this.checkAllFields(e,t):!!this.isSupertypeOf(r)&&(!t||r.checkAllFields(e,t)&&this.checkAllFields(e,!1)):("SourceLocation"===this.typeName||"Position"===this.typeName)&&this.checkAllFields(e,t)},n.prototype.build=function(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.buildParams=t,this.buildable)return this;this.field("type",String,(function(){return e.typeName})),this.buildable=!0;var n=function(t,r,n,i){if(!a.call(t,r)){var s=e.allFields;if(!a.call(s,r))throw new Error(""+r);var o,l=s[r],c=l.type;if(i)o=n;else{if(!l.defaultFn){var u="no value or default function given for field "+JSON.stringify(r)+" of "+e.typeName+"("+e.buildParams.map((function(e){return s[e]})).join(", ")+")";throw new Error(u)}o=l.defaultFn.call(t)}if(!c.check(o))throw new Error(m(o)+" does not match field "+l+" of type "+e.typeName);t[r]=o}},i=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=t.length;if(!e.finalized)throw new Error("attempting to instantiate unfinalized type "+e.typeName);var s=Object.create(k);if(e.buildParams.forEach((function(e,r){r<i?n(s,e,t[r],!0):n(s,e,null,!1)})),Object.keys(e.allFields).forEach((function(e){n(s,e,null,!1)})),s.type!==e.typeName)throw new Error("");return s};return i.from=function(t){if(!e.finalized)throw new Error("attempting to instantiate unfinalized type "+e.typeName);var r=Object.create(k);if(Object.keys(e.allFields).forEach((function(e){a.call(t,e)?n(r,e,t[e],!0):n(r,e,null,!1)})),r.type!==e.typeName)throw new Error("");return r},Object.defineProperty(N,O(this.typeName),{enumerable:!0,value:i}),this},n.prototype.field=function(e,r,n,i){return this.finalized?(console.error("Ignoring attempt to redefine field "+JSON.stringify(e)+" of finalized type "+JSON.stringify(this.typeName)),this):(this.ownFields[e]=new f(e,t.from(r),n,i),this)},n.prototype.finalize=function(){var e=this;if(!this.finalized){var t=this.allFields,r=this.allSupertypes;for(var n in this.baseNames.forEach((function(n){var i=D[n];if(!(i instanceof h)){var s="unknown supertype name "+JSON.stringify(n)+" for subtype "+JSON.stringify(e.typeName);throw new Error(s)}i.finalize(),B(t,i.allFields),B(r,i.allSupertypes)})),B(t,this.ownFields),r[this.typeName]=this,this.fieldNames.length=0,t)a.call(t,n)&&!t[n].hidden&&this.fieldNames.push(n);Object.defineProperty(L,this.typeName,{enumerable:!0,value:this.type}),this.finalized=!0,function(e,t){t.length=0,t.push(e);for(var r=Object.create(null),n=0;n<t.length;++n){e=t[n];var i=D[e];if(!0!==i.finalized)throw new Error("");a.call(r,e)&&delete t[r[e]],r[e]=n,t.push.apply(t,i.baseNames)}for(var s=0,o=s,l=t.length;o<l;++o)a.call(t,o)&&(t[s++]=t[o]);t.length=s}(this.typeName,this.supertypeList),this.buildable&&this.supertypeList.lastIndexOf("Expression")>=0&&function(e){var t=F(e);if(N[t])return;var r=N[O(e)];if(!r)return;var n=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return N.expressionStatement(r.apply(N,e))};n.from=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return N.expressionStatement(r.from.apply(N,e))},N[t]=n}(this.typeName)}},n}(h),N=Object.create(null),k={};function O(e){return e.replace(/^[A-Z]+/,(function(e){var t=e.length;switch(t){case 0:return"";case 1:return e.toLowerCase();default:return e.slice(0,t-1).toLowerCase()+e.charAt(t-1)}}))}function F(e){return(e=O(e)).replace(/(Expression)?$/,"Statement")}var L={};function j(e){var t=C(e);if(t)return t.fieldNames.slice(0);if("type"in e)throw new Error("did not recognize object of type "+JSON.stringify(e.type));return Object.keys(e)}function M(e,t){var r=C(e);if(r){var n=r.allFields[t];if(n)return n.getValue(e)}return e&&e[t]}function B(e,t){return Object.keys(t).forEach((function(r){e[r]=t[r]})),e}return{Type:t,builtInTypes:w,getSupertypeNames:function(e){if(!a.call(D,e))throw new Error("");var t=D[e];if(!0!==t.finalized)throw new Error("");return t.supertypeList.slice(1)},computeSupertypeLookupTable:function(e){for(var t={},r=Object.keys(D),n=r.length,i=0;i<n;++i){var s=r[i],o=D[s];if(!0!==o.finalized)throw new Error(""+s);for(var l=0;l<o.supertypeList.length;++l){var c=o.supertypeList[l];if(a.call(e,c)){t[s]=c;break}}}return t},builders:N,defineMethod:function(e,t){var r=k[e];return A.check(t)?delete k[e]:(g.assert(t),Object.defineProperty(k,e,{enumerable:!0,configurable:!0,value:t})),r},getBuilderName:O,getStatementBuilderName:F,namedTypes:L,getFieldNames:j,getFieldValue:M,eachField:function(e,t,r){j(e).forEach((function(r){t.call(this,r,M(e,r))}),r)},someField:function(e,t,r){return j(e).some((function(r){return t.call(this,r,M(e,r))}),r)},finalize:function(){Object.keys(D).forEach((function(e){D[e].finalize()}))}}},(0,n.maybeSetModuleExports)((function(){return t}))}}),require_path2=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/path.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=require_shared(),i=r.__importDefault(require_types()),s=Object.prototype.hasOwnProperty;e.default=function(e){var t=e.use(i.default),r=t.builtInTypes.array,n=t.builtInTypes.number,a=function e(t,r,n){if(!(this instanceof e))throw new Error("Path constructor cannot be invoked without 'new'");if(r){if(!(r instanceof e))throw new Error("")}else r=null,n=null;this.value=t,this.parentPath=r,this.name=n,this.__childCache=null},o=a.prototype;function l(e){return e.__childCache||(e.__childCache=Object.create(null))}function c(e,t){var r=l(e),n=e.getValueProperty(t),i=r[t];return s.call(r,t)&&i.value===n||(i=r[t]=new e.constructor(n,e,t)),i}function u(){}function p(e,t,i,a){if(r.assert(e.value),0===t)return u;var o=e.value.length;if(o<1)return u;var c=arguments.length;2===c?(i=0,a=o):3===c?(i=Math.max(i,0),a=o):(i=Math.max(i,0),a=Math.min(a,o)),n.assert(i),n.assert(a);for(var p=Object.create(null),d=l(e),h=i;h<a;++h)if(s.call(e.value,h)){var f=e.get(h);if(f.name!==h)throw new Error("");var m=h+t;f.name=m,p[m]=f,delete d[h]}return delete d.length,function(){for(var t in p){var r=p[t];if(r.name!==+t)throw new Error("");d[t]=r,e.value[t]=r.value}}}return o.getValueProperty=function(e){return this.value[e]},o.get=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=this,n=e.length,i=0;i<n;++i)r=c(r,e[i]);return r},o.each=function(e,t){var r=[],n=this.value.length,i=0;for(i=0;i<n;++i)s.call(this.value,i)&&(r[i]=this.get(i));for(t=t||this,i=0;i<n;++i)s.call(r,i)&&e.call(t,r[i])},o.map=function(e,t){var r=[];return this.each((function(t){r.push(e.call(this,t))}),t),r},o.filter=function(e,t){var r=[];return this.each((function(t){e.call(this,t)&&r.push(t)}),t),r},o.shift=function(){var e=p(this,-1),t=this.value.shift();return e(),t},o.unshift=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=p(this,e.length),n=this.value.unshift.apply(this.value,e);return r(),n},o.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.assert(this.value),delete l(this).length,this.value.push.apply(this.value,e)},o.pop=function(){r.assert(this.value);var e=l(this);return delete e[this.value.length-1],delete e.length,this.value.pop()},o.insertAt=function(e){var t=arguments.length,r=p(this,t-1,e);if(r===u&&t<=1)return this;e=Math.max(e,0);for(var n=1;n<t;++n)this.value[e+n-1]=arguments[n];return r(),this},o.insertBefore=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=this.parentPath,n=e.length,i=[this.name],s=0;s<n;++s)i.push(e[s]);return r.insertAt.apply(r,i)},o.insertAfter=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=this.parentPath,n=e.length,i=[this.name+1],s=0;s<n;++s)i.push(e[s]);return r.insertAt.apply(r,i)},o.replace=function(e){var t=[],n=this.parentPath.value,i=l(this.parentPath),s=arguments.length;if(function(e){if(!(e instanceof a))throw new Error("");var t=e.parentPath;if(!t)return e;var n=t.value,i=l(t);if(n[e.name]===e.value)i[e.name]=e;else if(r.check(n)){var s=n.indexOf(e.value);s>=0&&(i[e.name=s]=e)}else n[e.name]=e.value,i[e.name]=e;if(n[e.name]!==e.value)throw new Error("");if(e.parentPath.get(e.name)!==e)throw new Error("")}(this),r.check(n)){for(var o=n.length,c=p(this.parentPath,s-1,this.name+1),u=[this.name,1],d=0;d<s;++d)u.push(arguments[d]);if(n.splice.apply(n,u)[0]!==this.value)throw new Error("");if(n.length!==o-1+s)throw new Error("");if(c(),0===s)delete this.value,delete i[this.name],this.__childCache=null;else{if(n[this.name]!==e)throw new Error("");for(this.value!==e&&(this.value=e,this.__childCache=null),d=0;d<s;++d)t.push(this.parentPath.get(this.name+d));if(t[0]!==this)throw new Error("")}}else if(1===s)this.value!==e&&(this.__childCache=null),this.value=n[this.name]=e,t.push(this);else{if(0!==s)throw new Error("Could not replace path");delete n[this.name],delete this.value,this.__childCache=null}return t},a},(0,n.maybeSetModuleExports)((function(){return t}))}}),require_scope=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/scope.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=require_shared(),i=r.__importDefault(require_types()),s=Object.prototype.hasOwnProperty;e.default=function(e){var t=e.use(i.default),r=t.Type,n=t.namedTypes,a=n.Node,o=n.Expression,l=t.builtInTypes.array,c=t.builders,u=function e(t,r){if(!(this instanceof e))throw new Error("Scope constructor cannot be invoked without 'new'");var n;if(d.check(t.value)||p.assert(t.value),r){if(!(r instanceof e))throw new Error("");n=r.depth+1}else r=null,n=0;Object.defineProperties(this,{path:{value:t},node:{value:t.value},isGlobal:{value:!r,enumerable:!0},depth:{value:n},parent:{value:r},bindings:{value:{}},types:{value:{}}})},p=r.or(n.Program,n.Function,n.CatchClause),d=r.or(n.Function,n.ClassDeclaration,n.ClassExpression,n.InterfaceDeclaration,n.TSInterfaceDeclaration,n.TypeAlias,n.TSTypeAliasDeclaration),h=r.or(n.TypeParameter,n.TSTypeParameter);u.isEstablishedBy=function(e){return p.check(e)||d.check(e)};var f=u.prototype;function m(e,r,i){var s=e.value;e.parent&&n.FunctionExpression.check(e.parent.node)&&e.parent.node.id&&g(e.parent.get("id"),r),s&&(l.check(s)?e.each((function(e){y(e,r,i)})):n.Function.check(s)?(e.get("params").each((function(e){g(e,r)})),y(e.get("body"),r,i),m(e.get("typeParameters"),r,i)):n.TypeAlias&&n.TypeAlias.check(s)||n.InterfaceDeclaration&&n.InterfaceDeclaration.check(s)||n.TSTypeAliasDeclaration&&n.TSTypeAliasDeclaration.check(s)||n.TSInterfaceDeclaration&&n.TSInterfaceDeclaration.check(s)?b(e.get("id"),i):n.VariableDeclarator.check(s)?(g(e.get("id"),r),y(e.get("init"),r,i)):"ImportSpecifier"===s.type||"ImportNamespaceSpecifier"===s.type||"ImportDefaultSpecifier"===s.type?g(e.get(s.local?"local":s.name?"name":"id"),r):a.check(s)&&!o.check(s)&&t.eachField(s,(function(t,n){var s=e.get(t);if(!function(e,t){if(e.value===t)return!0;if(Array.isArray(e.value)&&0===e.value.length&&Array.isArray(t)&&0===t.length)return!0;return!1}(s,n))throw new Error("");y(s,r,i)})))}function y(e,t,r){var i=e.value;if(!i||o.check(i));else if(n.FunctionDeclaration.check(i)&&null!==i.id)g(e.get("id"),t);else if(n.ClassDeclaration&&n.ClassDeclaration.check(i)&&null!==i.id)g(e.get("id"),t),m(e.get("typeParameters"),t,r);else if(n.InterfaceDeclaration&&n.InterfaceDeclaration.check(i)||n.TSInterfaceDeclaration&&n.TSInterfaceDeclaration.check(i))b(e.get("id"),r);else if(p.check(i)){if(n.CatchClause.check(i)&&n.Identifier.check(i.param)){var a=i.param.name,l=s.call(t,a);m(e.get("body"),t,r),l||delete t[a]}}else m(e,t,r)}function g(e,t){var r=e.value;n.Pattern.assert(r),n.Identifier.check(r)?s.call(t,r.name)?t[r.name].push(e):t[r.name]=[e]:n.AssignmentPattern&&n.AssignmentPattern.check(r)?g(e.get("left"),t):n.ObjectPattern&&n.ObjectPattern.check(r)?e.get("properties").each((function(e){var r=e.value;n.Pattern.check(r)?g(e,t):n.Property.check(r)||n.ObjectProperty&&n.ObjectProperty.check(r)?g(e.get("value"),t):n.SpreadProperty&&n.SpreadProperty.check(r)&&g(e.get("argument"),t)})):n.ArrayPattern&&n.ArrayPattern.check(r)?e.get("elements").each((function(e){var r=e.value;n.Pattern.check(r)?g(e,t):n.SpreadElement&&n.SpreadElement.check(r)&&g(e.get("argument"),t)})):n.PropertyPattern&&n.PropertyPattern.check(r)?g(e.get("pattern"),t):(n.SpreadElementPattern&&n.SpreadElementPattern.check(r)||n.RestElement&&n.RestElement.check(r)||n.SpreadPropertyPattern&&n.SpreadPropertyPattern.check(r))&&g(e.get("argument"),t)}function b(e,t){var r=e.value;n.Pattern.assert(r),n.Identifier.check(r)&&(s.call(t,r.name)?t[r.name].push(e):t[r.name]=[e])}return f.didScan=!1,f.declares=function(e){return this.scan(),s.call(this.bindings,e)},f.declaresType=function(e){return this.scan(),s.call(this.types,e)},f.declareTemporary=function(e){if(e){if(!/^[a-z$_]/i.test(e))throw new Error("")}else e="t$";e+=this.depth.toString(36)+"$",this.scan();for(var r=0;this.declares(e+r);)++r;var n=e+r;return this.bindings[n]=t.builders.identifier(n)},f.injectTemporary=function(e,t){e||(e=this.declareTemporary());var r=this.path.get("body");return n.BlockStatement.check(r.value)&&(r=r.get("body")),r.unshift(c.variableDeclaration("var",[c.variableDeclarator(e,t||null)])),e},f.scan=function(e){if(e||!this.didScan){for(var t in this.bindings)delete this.bindings[t];for(var t in this.types)delete this.types[t];!function(e,t,r){var i=e.value;if(d.check(i)){var a=e.get("typeParameters","params");l.check(a.value)&&a.each((function(e){var t,n,i;n=r,i=(t=e).value,h.assert(i),s.call(n,i.name)?n[i.name].push(t):n[i.name]=[t]}))}p.check(i)&&(n.CatchClause.check(i)?g(e.get("param"),t):m(e,t,r))}(this.path,this.bindings,this.types),this.didScan=!0}},f.getBindings=function(){return this.scan(),this.bindings},f.getTypes=function(){return this.scan(),this.types},f.lookup=function(e){for(var t=this;t&&!t.declares(e);t=t.parent);return t},f.lookupType=function(e){for(var t=this;t&&!t.declaresType(e);t=t.parent);return t},f.getGlobalScope=function(){for(var e=this;!e.isGlobal;)e=e.parent;return e},u},(0,n.maybeSetModuleExports)((function(){return t}))}}),require_node_path=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/node-path.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=r.__importDefault(require_types()),i=r.__importDefault(require_path2()),s=r.__importDefault(require_scope()),a=require_shared();e.default=function(e){var t=e.use(n.default),r=t.namedTypes,a=t.builders,o=t.builtInTypes.number,l=t.builtInTypes.array,c=e.use(i.default),u=e.use(s.default),p=function e(t,r,n){if(!(this instanceof e))throw new Error("NodePath constructor cannot be invoked without 'new'");c.call(this,t,r,n)},d=p.prototype=Object.create(c.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}});function h(e){return r.BinaryExpression.check(e)||r.LogicalExpression.check(e)}Object.defineProperties(d,{node:{get:function(){return Object.defineProperty(this,"node",{configurable:!0,value:this._computeNode()}),this.node}},parent:{get:function(){return Object.defineProperty(this,"parent",{configurable:!0,value:this._computeParent()}),this.parent}},scope:{get:function(){return Object.defineProperty(this,"scope",{configurable:!0,value:this._computeScope()}),this.scope}}}),d.replace=function(){return delete this.node,delete this.parent,delete this.scope,c.prototype.replace.apply(this,arguments)},d.prune=function(){var e=this.parent;return this.replace(),function(e){if(r.VariableDeclaration.check(e.node)){var t=e.get("declarations").value;if(!t||0===t.length)return e.prune()}else if(r.ExpressionStatement.check(e.node)){if(!e.get("expression").value)return e.prune()}else r.IfStatement.check(e.node)&&function(e){var t=e.get("test").value,n=e.get("alternate").value,i=e.get("consequent").value;if(i||n){if(!i&&n){var s=a.unaryExpression("!",t,!0);r.UnaryExpression.check(t)&&"!"===t.operator&&(s=t.argument),e.get("test").replace(s),e.get("consequent").replace(n),e.get("alternate").replace()}}else{var o=a.expressionStatement(t);e.replace(o)}}(e);return e}(e)},d._computeNode=function(){var e=this.value;if(r.Node.check(e))return e;var t=this.parentPath;return t&&t.node||null},d._computeParent=function(){var e=this.value,t=this.parentPath;if(!r.Node.check(e)){for(;t&&!r.Node.check(t.value);)t=t.parentPath;t&&(t=t.parentPath)}for(;t&&!r.Node.check(t.value);)t=t.parentPath;return t||null},d._computeScope=function(){var e=this.value,t=this.parentPath,n=t&&t.scope;return r.Node.check(e)&&u.isEstablishedBy(e)&&(n=new u(this,n)),n||null},d.getValueProperty=function(e){return t.getFieldValue(this.value,e)},d.needsParens=function(e){var t=this.parentPath;if(!t)return!1;var n=this.value;if(!r.Expression.check(n))return!1;if("Identifier"===n.type)return!1;for(;!r.Node.check(t.value);)if(!(t=t.parentPath))return!1;var i=t.value;switch(n.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return"MemberExpression"===i.type&&"object"===this.name&&i.object===n;case"BinaryExpression":case"LogicalExpression":switch(i.type){case"CallExpression":return"callee"===this.name&&i.callee===n;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return!0;case"MemberExpression":return"object"===this.name&&i.object===n;case"BinaryExpression":case"LogicalExpression":var s=n,a=i.operator,l=f[a],c=s.operator,u=f[c];if(l>u)return!0;if(l===u&&"right"===this.name){if(i.right!==s)throw new Error("Nodes must be equal");return!0}default:return!1}case"SequenceExpression":switch(i.type){case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==this.name;default:return!0}case"YieldExpression":switch(i.type){case"BinaryExpression":case"LogicalExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"CallExpression":case"MemberExpression":case"NewExpression":case"ConditionalExpression":case"YieldExpression":return!0;default:return!1}case"Literal":return"MemberExpression"===i.type&&o.check(n.value)&&"object"===this.name&&i.object===n;case"AssignmentExpression":case"ConditionalExpression":switch(i.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return!0;case"CallExpression":return"callee"===this.name&&i.callee===n;case"ConditionalExpression":return"test"===this.name&&i.test===n;case"MemberExpression":return"object"===this.name&&i.object===n;default:return!1}default:if("NewExpression"===i.type&&"callee"===this.name&&i.callee===n)return m(n)}return!(!0===e||this.canBeFirstInStatement()||!this.firstInStatement())};var f={};function m(e){return!!r.CallExpression.check(e)||(l.check(e)?e.some(m):!!r.Node.check(e)&&t.someField(e,(function(e,t){return m(t)})))}return[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]].forEach((function(e,t){e.forEach((function(e){f[e]=t}))})),d.canBeFirstInStatement=function(){var e=this.node;return!r.FunctionExpression.check(e)&&!r.ObjectExpression.check(e)},d.firstInStatement=function(){return function(e){for(var t,n;e.parent;e=e.parent){if(t=e.node,n=e.parent.node,r.BlockStatement.check(n)&&"body"===e.parent.name&&0===e.name){if(n.body[0]!==t)throw new Error("Nodes must be equal");return!0}if(r.ExpressionStatement.check(n)&&"expression"===e.name){if(n.expression!==t)throw new Error("Nodes must be equal");return!0}if(r.SequenceExpression.check(n)&&"expressions"===e.parent.name&&0===e.name){if(n.expressions[0]!==t)throw new Error("Nodes must be equal")}else if(r.CallExpression.check(n)&&"callee"===e.name){if(n.callee!==t)throw new Error("Nodes must be equal")}else if(r.MemberExpression.check(n)&&"object"===e.name){if(n.object!==t)throw new Error("Nodes must be equal")}else if(r.ConditionalExpression.check(n)&&"test"===e.name){if(n.test!==t)throw new Error("Nodes must be equal")}else if(h(n)&&"left"===e.name){if(n.left!==t)throw new Error("Nodes must be equal")}else{if(!r.UnaryExpression.check(n)||n.prefix||"argument"!==e.name)return!1;if(n.argument!==t)throw new Error("Nodes must be equal")}}return!0}(this)},p},(0,a.maybeSetModuleExports)((function(){return t}))}}),require_path_visitor=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/path-visitor.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=r.__importDefault(require_types()),i=r.__importDefault(require_node_path()),s=require_shared(),a=Object.prototype.hasOwnProperty;e.default=function(e){var t=e.use(n.default),r=e.use(i.default),s=t.builtInTypes.array,o=t.builtInTypes.object,l=t.builtInTypes.function,c=function e(){if(!(this instanceof e))throw new Error("PathVisitor constructor cannot be invoked without 'new'");this._reusableContextStack=[],this._methodNameTable=function(e){var r=Object.create(null);for(var n in e)/^visit[A-Z]/.test(n)&&(r[n.slice(5)]=!0);for(var i=t.computeSupertypeLookupTable(r),s=Object.create(null),a=Object.keys(i),o=a.length,c=0;c<o;++c){var u=a[c];n="visit"+i[u],l.check(e[n])&&(s[u]=n)}return s}(this),this._shouldVisitComments=a.call(this._methodNameTable,"Block")||a.call(this._methodNameTable,"Line"),this.Context=function(e){function t(n){if(!(this instanceof t))throw new Error("");if(!(this instanceof c))throw new Error("");if(!(n instanceof r))throw new Error("");Object.defineProperty(this,"visitor",{value:e,writable:!1,enumerable:!0,configurable:!1}),this.currentPath=n,this.needToCallTraverse=!0,Object.seal(this)}if(!(e instanceof c))throw new Error("");var n=t.prototype=Object.create(e);return n.constructor=t,u(n,h),t}(this),this._visiting=!1,this._changeReported=!1};function u(e,t){for(var r in t)a.call(t,r)&&(e[r]=t[r]);return e}c.fromMethodsObject=function(e){if(e instanceof c)return e;if(!o.check(e))return new c;var t=function e(){if(!(this instanceof e))throw new Error("Visitor constructor cannot be invoked without 'new'");c.call(this)},r=t.prototype=Object.create(p);return r.constructor=t,u(r,e),u(t,c),l.assert(t.fromMethodsObject),l.assert(t.visit),new t},c.visit=function(e,t){return c.fromMethodsObject(t).visit(e)};var p=c.prototype;function d(e,n){if(!(e instanceof r))throw new Error("");if(!(n instanceof c))throw new Error("");var i=e.value;if(s.check(i))e.each(n.visitWithoutReset,n);else if(o.check(i)){var l=t.getFieldNames(i);n._shouldVisitComments&&i.comments&&l.indexOf("comments")<0&&l.push("comments");for(var u=l.length,p=[],d=0;d<u;++d){var h=l[d];a.call(i,h)||(i[h]=t.getFieldValue(i,h)),p.push(e.get(h))}for(d=0;d<u;++d)n.visitWithoutReset(p[d])}else;return e.value}p.visit=function(){if(this._visiting)throw new Error("Recursively calling visitor.visit(path) resets visitor state. Try this.visit(path) or this.traverse(path) instead.");this._visiting=!0,this._changeReported=!1,this._abortRequested=!1;for(var e,t=arguments.length,n=new Array(t),i=0;i<t;++i)n[i]=arguments[i];n[0]instanceof r||(n[0]=new r({root:n[0]}).get("root")),this.reset.apply(this,n);try{var s=this.visitWithoutReset(n[0]);e=!0}finally{if(this._visiting=!1,!e&&this._abortRequested)return n[0].value}return s},p.AbortRequest=function(){},p.abort=function(){var e=this;e._abortRequested=!0;var t=new e.AbortRequest;throw t.cancel=function(){e._abortRequested=!1},t},p.reset=function(e){},p.visitWithoutReset=function(e){if(this instanceof this.Context)return this.visitor.visitWithoutReset(e);if(!(e instanceof r))throw new Error("");var t=e.value,n=t&&"object"==typeof t&&"string"==typeof t.type&&this._methodNameTable[t.type];if(!n)return d(e,this);var i=this.acquireContext(e);try{return i.invokeVisitorMethod(n)}finally{this.releaseContext(i)}},p.acquireContext=function(e){return 0===this._reusableContextStack.length?new this.Context(e):this._reusableContextStack.pop().reset(e)},p.releaseContext=function(e){if(!(e instanceof this.Context))throw new Error("");this._reusableContextStack.push(e),e.currentPath=null},p.reportChanged=function(){this._changeReported=!0},p.wasChangeReported=function(){return this._changeReported};var h=Object.create(null);return h.reset=function(e){if(!(this instanceof this.Context))throw new Error("");if(!(e instanceof r))throw new Error("");return this.currentPath=e,this.needToCallTraverse=!0,this},h.invokeVisitorMethod=function(e){if(!(this instanceof this.Context))throw new Error("");if(!(this.currentPath instanceof r))throw new Error("");var t=this.visitor[e].call(this,this.currentPath);if(!1===t?this.needToCallTraverse=!1:undefined!==t&&(this.currentPath=this.currentPath.replace(t)[0],this.needToCallTraverse&&this.traverse(this.currentPath)),!1!==this.needToCallTraverse)throw new Error("Must either call this.traverse or return false in "+e);var n=this.currentPath;return n&&n.value},h.traverse=function(e,t){if(!(this instanceof this.Context))throw new Error("");if(!(e instanceof r))throw new Error("");if(!(this.currentPath instanceof r))throw new Error("");return this.needToCallTraverse=!1,d(e,c.fromMethodsObject(t||this.visitor))},h.visit=function(e,t){if(!(this instanceof this.Context))throw new Error("");if(!(e instanceof r))throw new Error("");if(!(this.currentPath instanceof r))throw new Error("");return this.needToCallTraverse=!1,c.fromMethodsObject(t||this.visitor).visitWithoutReset(e)},h.reportChanged=function(){this.visitor.reportChanged()},h.abort=function(){this.needToCallTraverse=!1,this.visitor.abort()},c},(0,s.maybeSetModuleExports)((function(){return t}))}}),require_equiv=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/equiv.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=require_shared(),i=r.__importDefault(require_types());e.default=function(e){var t=e.use(i.default),r=t.getFieldNames,n=t.getFieldValue,s=t.builtInTypes.array,a=t.builtInTypes.object,o=t.builtInTypes.Date,l=t.builtInTypes.RegExp,c=Object.prototype.hasOwnProperty;function u(e,t,r){return s.check(r)?r.length=0:r=null,d(e,t,r)}function p(e){return/[_$a-z][_$a-z0-9]*/i.test(e)?"."+e:"["+JSON.stringify(e)+"]"}function d(e,t,i){return e===t||(s.check(e)?function(e,t,r){s.assert(e);var n=e.length;if(!s.check(t)||t.length!==n)return r&&r.push("length"),!1;for(var i=0;i<n;++i){if(r&&r.push(i),i in e!=i in t)return!1;if(!d(e[i],t[i],r))return!1;if(r){var a=r.pop();if(a!==i)throw new Error(""+a)}}return!0}(e,t,i):a.check(e)?function(e,t,i){if(a.assert(e),!a.check(t))return!1;if(e.type!==t.type)return i&&i.push("type"),!1;var s=r(e),o=s.length,l=r(t),u=l.length;if(o===u){for(var p=0;p<o;++p){var h=s[p],f=n(e,h),m=n(t,h);if(i&&i.push(h),!d(f,m,i))return!1;if(i){var y=i.pop();if(y!==h)throw new Error(""+y)}}return!0}if(!i)return!1;var g=Object.create(null);for(p=0;p<o;++p)g[s[p]]=!0;for(p=0;p<u;++p){if(h=l[p],!c.call(g,h))return i.push(h),!1;delete g[h]}for(h in g){i.push(h);break}return!1}(e,t,i):o.check(e)?o.check(t)&&+e==+t:l.check(e)?l.check(t)&&e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.ignoreCase===t.ignoreCase:e==t)}return u.assert=function(e,t){var r=[];if(!u(e,t,r)){if(0!==r.length)throw new Error("Nodes differ in the following path: "+r.map(p).join(""));if(e!==t)throw new Error("Nodes must be equal")}},u},(0,n.maybeSetModuleExports)((function(){return t}))}}),require_fork=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/fork.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=r.__importDefault(require_types()),i=r.__importDefault(require_path_visitor()),s=r.__importDefault(require_equiv()),a=r.__importDefault(require_path2()),o=r.__importDefault(require_node_path()),l=require_shared();e.default=function(e){var t=function(){var e=[],t=[];function r(r){var i=e.indexOf(r);return-1===i&&(i=e.length,e.push(r),t[i]=r(n)),t[i]}var n={use:r};return n}(),r=t.use(n.default);e.forEach(t.use),r.finalize();var l=t.use(i.default);return{Type:r.Type,builtInTypes:r.builtInTypes,namedTypes:r.namedTypes,builders:r.builders,defineMethod:r.defineMethod,getFieldNames:r.getFieldNames,getFieldValue:r.getFieldValue,eachField:r.eachField,someField:r.someField,getSupertypeNames:r.getSupertypeNames,getBuilderName:r.getBuilderName,astNodesAreEquivalent:t.use(s.default),finalize:r.finalize,Path:t.use(a.default),NodePath:t.use(o.default),PathVisitor:l,use:t.use,visit:l.visit}},(0,l.maybeSetModuleExports)((function(){return t}))}}),require_core2=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/core.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_shared();e.default=function(){return{BinaryOperators:["==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","&","|","^","in","instanceof"],AssignmentOperators:["=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&="],LogicalOperators:["||","&&"]}},(0,r.maybeSetModuleExports)((function(){return t}))}}),require_es2016=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/es2016.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=require_shared(),i=r.__importDefault(require_core2());e.default=function(e){var t=e.use(i.default);return t.BinaryOperators.indexOf("**")<0&&t.BinaryOperators.push("**"),t.AssignmentOperators.indexOf("**=")<0&&t.AssignmentOperators.push("**="),t},(0,n.maybeSetModuleExports)((function(){return t}))}}),require_es2020=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/es2020.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=require_shared(),i=r.__importDefault(require_es2016());e.default=function(e){var t=e.use(i.default);return t.LogicalOperators.indexOf("??")<0&&t.LogicalOperators.push("??"),t},(0,n.maybeSetModuleExports)((function(){return t}))}}),require_es2021=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/es2021.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=require_shared(),i=r.__importDefault(require_es2020());e.default=function(e){var t=e.use(i.default);return t.LogicalOperators.forEach((function(e){var r=e+"=";t.AssignmentOperators.indexOf(r)<0&&t.AssignmentOperators.push(r)})),t},(0,n.maybeSetModuleExports)((function(){return t}))}}),require_core3=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/core.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=r.__importDefault(require_core2()),i=r.__importDefault(require_types()),s=r.__importStar(require_shared());e.default=function(e){var t=e.use(i.default).Type,r=t.def,a=t.or,o=e.use(s.default),l=o.defaults,c=o.geq,u=e.use(n.default),p=u.BinaryOperators,d=u.AssignmentOperators,h=u.LogicalOperators;r("Printable").field("loc",a(r("SourceLocation"),null),l.null,!0),r("Node").bases("Printable").field("type",String).field("comments",a([r("Comment")],null),l.null,!0),r("SourceLocation").field("start",r("Position")).field("end",r("Position")).field("source",a(String,null),l.null),r("Position").field("line",c(1)).field("column",c(0)),r("File").bases("Node").build("program","name").field("program",r("Program")).field("name",a(String,null),l.null),r("Program").bases("Node").build("body").field("body",[r("Statement")]),r("Function").bases("Node").field("id",a(r("Identifier"),null),l.null).field("params",[r("Pattern")]).field("body",r("BlockStatement")).field("generator",Boolean,l.false).field("async",Boolean,l.false),r("Statement").bases("Node"),r("EmptyStatement").bases("Statement").build(),r("BlockStatement").bases("Statement").build("body").field("body",[r("Statement")]),r("ExpressionStatement").bases("Statement").build("expression").field("expression",r("Expression")),r("IfStatement").bases("Statement").build("test","consequent","alternate").field("test",r("Expression")).field("consequent",r("Statement")).field("alternate",a(r("Statement"),null),l.null),r("LabeledStatement").bases("Statement").build("label","body").field("label",r("Identifier")).field("body",r("Statement")),r("BreakStatement").bases("Statement").build("label").field("label",a(r("Identifier"),null),l.null),r("ContinueStatement").bases("Statement").build("label").field("label",a(r("Identifier"),null),l.null),r("WithStatement").bases("Statement").build("object","body").field("object",r("Expression")).field("body",r("Statement")),r("SwitchStatement").bases("Statement").build("discriminant","cases","lexical").field("discriminant",r("Expression")).field("cases",[r("SwitchCase")]).field("lexical",Boolean,l.false),r("ReturnStatement").bases("Statement").build("argument").field("argument",a(r("Expression"),null)),r("ThrowStatement").bases("Statement").build("argument").field("argument",r("Expression")),r("TryStatement").bases("Statement").build("block","handler","finalizer").field("block",r("BlockStatement")).field("handler",a(r("CatchClause"),null),(function(){return this.handlers&&this.handlers[0]||null})).field("handlers",[r("CatchClause")],(function(){return this.handler?[this.handler]:[]}),!0).field("guardedHandlers",[r("CatchClause")],l.emptyArray).field("finalizer",a(r("BlockStatement"),null),l.null),r("CatchClause").bases("Node").build("param","guard","body").field("param",r("Pattern")).field("guard",a(r("Expression"),null),l.null).field("body",r("BlockStatement")),r("WhileStatement").bases("Statement").build("test","body").field("test",r("Expression")).field("body",r("Statement")),r("DoWhileStatement").bases("Statement").build("body","test").field("body",r("Statement")).field("test",r("Expression")),r("ForStatement").bases("Statement").build("init","test","update","body").field("init",a(r("VariableDeclaration"),r("Expression"),null)).field("test",a(r("Expression"),null)).field("update",a(r("Expression"),null)).field("body",r("Statement")),r("ForInStatement").bases("Statement").build("left","right","body").field("left",a(r("VariableDeclaration"),r("Expression"))).field("right",r("Expression")).field("body",r("Statement")),r("DebuggerStatement").bases("Statement").build(),r("Declaration").bases("Statement"),r("FunctionDeclaration").bases("Function","Declaration").build("id","params","body").field("id",r("Identifier")),r("FunctionExpression").bases("Function","Expression").build("id","params","body"),r("VariableDeclaration").bases("Declaration").build("kind","declarations").field("kind",a("var","let","const")).field("declarations",[r("VariableDeclarator")]),r("VariableDeclarator").bases("Node").build("id","init").field("id",r("Pattern")).field("init",a(r("Expression"),null),l.null),r("Expression").bases("Node"),r("ThisExpression").bases("Expression").build(),r("ArrayExpression").bases("Expression").build("elements").field("elements",[a(r("Expression"),null)]),r("ObjectExpression").bases("Expression").build("properties").field("properties",[r("Property")]),r("Property").bases("Node").build("kind","key","value").field("kind",a("init","get","set")).field("key",a(r("Literal"),r("Identifier"))).field("value",r("Expression")),r("SequenceExpression").bases("Expression").build("expressions").field("expressions",[r("Expression")]);var f=a("-","+","!","~","typeof","void","delete");r("UnaryExpression").bases("Expression").build("operator","argument","prefix").field("operator",f).field("argument",r("Expression")).field("prefix",Boolean,l.true);var m=a.apply(void 0,p);r("BinaryExpression").bases("Expression").build("operator","left","right").field("operator",m).field("left",r("Expression")).field("right",r("Expression"));var y=a.apply(void 0,d);r("AssignmentExpression").bases("Expression").build("operator","left","right").field("operator",y).field("left",a(r("Pattern"),r("MemberExpression"))).field("right",r("Expression"));var g=a("++","--");r("UpdateExpression").bases("Expression").build("operator","argument","prefix").field("operator",g).field("argument",r("Expression")).field("prefix",Boolean);var b=a.apply(void 0,h);r("LogicalExpression").bases("Expression").build("operator","left","right").field("operator",b).field("left",r("Expression")).field("right",r("Expression")),r("ConditionalExpression").bases("Expression").build("test","consequent","alternate").field("test",r("Expression")).field("consequent",r("Expression")).field("alternate",r("Expression")),r("NewExpression").bases("Expression").build("callee","arguments").field("callee",r("Expression")).field("arguments",[r("Expression")]),r("CallExpression").bases("Expression").build("callee","arguments").field("callee",r("Expression")).field("arguments",[r("Expression")]),r("MemberExpression").bases("Expression").build("object","property","computed").field("object",r("Expression")).field("property",a(r("Identifier"),r("Expression"))).field("computed",Boolean,(function(){var e=this.property.type;return"Literal"===e||"MemberExpression"===e||"BinaryExpression"===e})),r("Pattern").bases("Node"),r("SwitchCase").bases("Node").build("test","consequent").field("test",a(r("Expression"),null)).field("consequent",[r("Statement")]),r("Identifier").bases("Expression","Pattern").build("name").field("name",String).field("optional",Boolean,l.false),r("Literal").bases("Expression").build("value").field("value",a(String,Boolean,null,Number,RegExp,BigInt)),r("Comment").bases("Printable").field("value",String).field("leading",Boolean,l.true).field("trailing",Boolean,l.false)},(0,s.maybeSetModuleExports)((function(){return t}))}}),require_es6=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es6.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=r.__importDefault(require_core3()),i=r.__importDefault(require_types()),s=r.__importStar(require_shared());e.default=function(e){e.use(n.default);var t=e.use(i.default),r=t.Type.def,a=t.Type.or,o=e.use(s.default).defaults;r("Function").field("generator",Boolean,o.false).field("expression",Boolean,o.false).field("defaults",[a(r("Expression"),null)],o.emptyArray).field("rest",a(r("Identifier"),null),o.null),r("RestElement").bases("Pattern").build("argument").field("argument",r("Pattern")).field("typeAnnotation",a(r("TypeAnnotation"),r("TSTypeAnnotation"),null),o.null),r("SpreadElementPattern").bases("Pattern").build("argument").field("argument",r("Pattern")),r("FunctionDeclaration").build("id","params","body","generator","expression").field("id",a(r("Identifier"),null)),r("FunctionExpression").build("id","params","body","generator","expression"),r("ArrowFunctionExpression").bases("Function","Expression").build("params","body","expression").field("id",null,o.null).field("body",a(r("BlockStatement"),r("Expression"))).field("generator",!1,o.false),r("ForOfStatement").bases("Statement").build("left","right","body").field("left",a(r("VariableDeclaration"),r("Pattern"))).field("right",r("Expression")).field("body",r("Statement")),r("YieldExpression").bases("Expression").build("argument","delegate").field("argument",a(r("Expression"),null)).field("delegate",Boolean,o.false),r("GeneratorExpression").bases("Expression").build("body","blocks","filter").field("body",r("Expression")).field("blocks",[r("ComprehensionBlock")]).field("filter",a(r("Expression"),null)),r("ComprehensionExpression").bases("Expression").build("body","blocks","filter").field("body",r("Expression")).field("blocks",[r("ComprehensionBlock")]).field("filter",a(r("Expression"),null)),r("ComprehensionBlock").bases("Node").build("left","right","each").field("left",r("Pattern")).field("right",r("Expression")).field("each",Boolean),r("Property").field("key",a(r("Literal"),r("Identifier"),r("Expression"))).field("value",a(r("Expression"),r("Pattern"))).field("method",Boolean,o.false).field("shorthand",Boolean,o.false).field("computed",Boolean,o.false),r("ObjectProperty").field("shorthand",Boolean,o.false),r("PropertyPattern").bases("Pattern").build("key","pattern").field("key",a(r("Literal"),r("Identifier"),r("Expression"))).field("pattern",r("Pattern")).field("computed",Boolean,o.false),r("ObjectPattern").bases("Pattern").build("properties").field("properties",[a(r("PropertyPattern"),r("Property"))]),r("ArrayPattern").bases("Pattern").build("elements").field("elements",[a(r("Pattern"),null)]),r("SpreadElement").bases("Node").build("argument").field("argument",r("Expression")),r("ArrayExpression").field("elements",[a(r("Expression"),r("SpreadElement"),r("RestElement"),null)]),r("NewExpression").field("arguments",[a(r("Expression"),r("SpreadElement"))]),r("CallExpression").field("arguments",[a(r("Expression"),r("SpreadElement"))]),r("AssignmentPattern").bases("Pattern").build("left","right").field("left",r("Pattern")).field("right",r("Expression")),r("MethodDefinition").bases("Declaration").build("kind","key","value","static").field("kind",a("constructor","method","get","set")).field("key",r("Expression")).field("value",r("Function")).field("computed",Boolean,o.false).field("static",Boolean,o.false);var l=a(r("MethodDefinition"),r("VariableDeclarator"),r("ClassPropertyDefinition"),r("ClassProperty"),r("StaticBlock"));r("ClassProperty").bases("Declaration").build("key").field("key",a(r("Literal"),r("Identifier"),r("Expression"))).field("computed",Boolean,o.false),r("ClassPropertyDefinition").bases("Declaration").build("definition").field("definition",l),r("ClassBody").bases("Declaration").build("body").field("body",[l]),r("ClassDeclaration").bases("Declaration").build("id","body","superClass").field("id",a(r("Identifier"),null)).field("body",r("ClassBody")).field("superClass",a(r("Expression"),null),o.null),r("ClassExpression").bases("Expression").build("id","body","superClass").field("id",a(r("Identifier"),null),o.null).field("body",r("ClassBody")).field("superClass",a(r("Expression"),null),o.null),r("Super").bases("Expression").build(),r("Specifier").bases("Node"),r("ModuleSpecifier").bases("Specifier").field("local",a(r("Identifier"),null),o.null).field("id",a(r("Identifier"),null),o.null).field("name",a(r("Identifier"),null),o.null),r("ImportSpecifier").bases("ModuleSpecifier").build("imported","local").field("imported",r("Identifier")),r("ImportDefaultSpecifier").bases("ModuleSpecifier").build("local"),r("ImportNamespaceSpecifier").bases("ModuleSpecifier").build("local"),r("ImportDeclaration").bases("Declaration").build("specifiers","source","importKind").field("specifiers",[a(r("ImportSpecifier"),r("ImportNamespaceSpecifier"),r("ImportDefaultSpecifier"))],o.emptyArray).field("source",r("Literal")).field("importKind",a("value","type"),(function(){return"value"})),r("ExportNamedDeclaration").bases("Declaration").build("declaration","specifiers","source").field("declaration",a(r("Declaration"),null)).field("specifiers",[r("ExportSpecifier")],o.emptyArray).field("source",a(r("Literal"),null),o.null),r("ExportSpecifier").bases("ModuleSpecifier").build("local","exported").field("exported",r("Identifier")),r("ExportDefaultDeclaration").bases("Declaration").build("declaration").field("declaration",a(r("Declaration"),r("Expression"))),r("ExportAllDeclaration").bases("Declaration").build("source").field("source",r("Literal")),r("TaggedTemplateExpression").bases("Expression").build("tag","quasi").field("tag",r("Expression")).field("quasi",r("TemplateLiteral")),r("TemplateLiteral").bases("Expression").build("quasis","expressions").field("quasis",[r("TemplateElement")]).field("expressions",[r("Expression")]),r("TemplateElement").bases("Node").build("value","tail").field("value",{cooked:String,raw:String}).field("tail",Boolean),r("MetaProperty").bases("Expression").build("meta","property").field("meta",r("Identifier")).field("property",r("Identifier"))},(0,s.maybeSetModuleExports)((function(){return t}))}}),require_es20162=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2016.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=r.__importDefault(require_es2016()),i=r.__importDefault(require_es6()),s=require_shared();e.default=function(e){e.use(n.default),e.use(i.default)},(0,s.maybeSetModuleExports)((function(){return t}))}}),require_es2017=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2017.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=r.__importDefault(require_es20162()),i=r.__importDefault(require_types()),s=r.__importStar(require_shared());e.default=function(e){e.use(n.default);var t=e.use(i.default).Type.def,r=e.use(s.default).defaults;t("Function").field("async",Boolean,r.false),t("AwaitExpression").bases("Expression").build("argument").field("argument",t("Expression"))},(0,s.maybeSetModuleExports)((function(){return t}))}}),require_es2018=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2018.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=r.__importDefault(require_es2017()),i=r.__importDefault(require_types()),s=r.__importStar(require_shared());e.default=function(e){e.use(n.default);var t=e.use(i.default),r=t.Type.def,a=t.Type.or,o=e.use(s.default).defaults;r("ForOfStatement").field("await",Boolean,o.false),r("SpreadProperty").bases("Node").build("argument").field("argument",r("Expression")),r("ObjectExpression").field("properties",[a(r("Property"),r("SpreadProperty"),r("SpreadElement"))]),r("TemplateElement").field("value",{cooked:a(String,null),raw:String}),r("SpreadPropertyPattern").bases("Pattern").build("argument").field("argument",r("Pattern")),r("ObjectPattern").field("properties",[a(r("PropertyPattern"),r("Property"),r("RestElement"),r("SpreadPropertyPattern"))])},(0,s.maybeSetModuleExports)((function(){return t}))}}),require_es2019=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2019.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=r.__importDefault(require_es2018()),i=r.__importDefault(require_types()),s=r.__importStar(require_shared());e.default=function(e){e.use(n.default);var t=e.use(i.default),r=t.Type.def,a=t.Type.or,o=e.use(s.default).defaults;r("CatchClause").field("param",a(r("Pattern"),null),o.null)},(0,s.maybeSetModuleExports)((function(){return t}))}}),require_es20202=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2020.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=r.__importDefault(require_es2020()),i=r.__importDefault(require_es2019()),s=r.__importDefault(require_types()),a=r.__importStar(require_shared());e.default=function(e){e.use(n.default),e.use(i.default);var t=e.use(s.default),r=t.Type.def,o=t.Type.or,l=e.use(a.default).defaults;r("ImportExpression").bases("Expression").build("source").field("source",r("Expression")),r("ExportAllDeclaration").bases("Declaration").build("source","exported").field("source",r("Literal")).field("exported",o(r("Identifier"),null,void 0),l.null),r("ChainElement").bases("Node").field("optional",Boolean,l.false),r("CallExpression").bases("Expression","ChainElement"),r("MemberExpression").bases("Expression","ChainElement"),r("ChainExpression").bases("Expression").build("expression").field("expression",r("ChainElement")),r("OptionalCallExpression").bases("CallExpression").build("callee","arguments","optional").field("optional",Boolean,l.true),r("OptionalMemberExpression").bases("MemberExpression").build("object","property","computed","optional").field("optional",Boolean,l.true)},(0,a.maybeSetModuleExports)((function(){return t}))}}),require_es20212=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2021.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=r.__importDefault(require_es2021()),i=r.__importDefault(require_es20202()),s=require_shared();e.default=function(e){e.use(n.default),e.use(i.default)},(0,s.maybeSetModuleExports)((function(){return t}))}}),require_es2022=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2022.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=r.__importDefault(require_es20212()),i=r.__importDefault(require_types()),s=require_shared();e.default=function(e){e.use(n.default);var t=e.use(i.default).Type.def;t("StaticBlock").bases("Declaration").build("body").field("body",[t("Statement")])},(0,s.maybeSetModuleExports)((function(){return t}))}}),require_es_proposals=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es-proposals.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=r.__importDefault(require_types()),i=r.__importStar(require_shared()),s=r.__importDefault(require_es2022());e.default=function(e){e.use(s.default);var t=e.use(n.default),r=t.Type,a=t.Type.def,o=r.or,l=e.use(i.default).defaults;a("AwaitExpression").build("argument","all").field("argument",o(a("Expression"),null)).field("all",Boolean,l.false),a("Decorator").bases("Node").build("expression").field("expression",a("Expression")),a("Property").field("decorators",o([a("Decorator")],null),l.null),a("MethodDefinition").field("decorators",o([a("Decorator")],null),l.null),a("PrivateName").bases("Expression","Pattern").build("id").field("id",a("Identifier")),a("ClassPrivateProperty").bases("ClassProperty").build("key","value").field("key",a("PrivateName")).field("value",o(a("Expression"),null),l.null),a("ImportAttribute").bases("Node").build("key","value").field("key",o(a("Identifier"),a("Literal"))).field("value",a("Expression")),["ImportDeclaration","ExportAllDeclaration","ExportNamedDeclaration"].forEach((function(e){a(e).field("assertions",[a("ImportAttribute")],l.emptyArray)})),a("RecordExpression").bases("Expression").build("properties").field("properties",[o(a("ObjectProperty"),a("ObjectMethod"),a("SpreadElement"))]),a("TupleExpression").bases("Expression").build("elements").field("elements",[o(a("Expression"),a("SpreadElement"),null)]),a("ModuleExpression").bases("Node").build("body").field("body",a("Program"))},(0,i.maybeSetModuleExports)((function(){return t}))}}),require_jsx2=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/jsx.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=r.__importDefault(require_es_proposals()),i=r.__importDefault(require_types()),s=r.__importStar(require_shared());e.default=function(e){e.use(n.default);var t=e.use(i.default),r=t.Type.def,a=t.Type.or,o=e.use(s.default).defaults;r("JSXAttribute").bases("Node").build("name","value").field("name",a(r("JSXIdentifier"),r("JSXNamespacedName"))).field("value",a(r("Literal"),r("JSXExpressionContainer"),r("JSXElement"),r("JSXFragment"),null),o.null),r("JSXIdentifier").bases("Identifier").build("name").field("name",String),r("JSXNamespacedName").bases("Node").build("namespace","name").field("namespace",r("JSXIdentifier")).field("name",r("JSXIdentifier")),r("JSXMemberExpression").bases("MemberExpression").build("object","property").field("object",a(r("JSXIdentifier"),r("JSXMemberExpression"))).field("property",r("JSXIdentifier")).field("computed",Boolean,o.false);var l=a(r("JSXIdentifier"),r("JSXNamespacedName"),r("JSXMemberExpression"));r("JSXSpreadAttribute").bases("Node").build("argument").field("argument",r("Expression"));var c=[a(r("JSXAttribute"),r("JSXSpreadAttribute"))];r("JSXExpressionContainer").bases("Expression").build("expression").field("expression",a(r("Expression"),r("JSXEmptyExpression")));var u=[a(r("JSXText"),r("JSXExpressionContainer"),r("JSXSpreadChild"),r("JSXElement"),r("JSXFragment"),r("Literal"))];r("JSXElement").bases("Expression").build("openingElement","closingElement","children").field("openingElement",r("JSXOpeningElement")).field("closingElement",a(r("JSXClosingElement"),null),o.null).field("children",u,o.emptyArray).field("name",l,(function(){return this.openingElement.name}),!0).field("selfClosing",Boolean,(function(){return this.openingElement.selfClosing}),!0).field("attributes",c,(function(){return this.openingElement.attributes}),!0),r("JSXOpeningElement").bases("Node").build("name","attributes","selfClosing").field("name",l).field("attributes",c,o.emptyArray).field("selfClosing",Boolean,o.false),r("JSXClosingElement").bases("Node").build("name").field("name",l),r("JSXFragment").bases("Expression").build("openingFragment","closingFragment","children").field("openingFragment",r("JSXOpeningFragment")).field("closingFragment",r("JSXClosingFragment")).field("children",u,o.emptyArray),r("JSXOpeningFragment").bases("Node").build(),r("JSXClosingFragment").bases("Node").build(),r("JSXText").bases("Literal").build("value","raw").field("value",String).field("raw",String,(function(){return this.value})),r("JSXEmptyExpression").bases("Node").build(),r("JSXSpreadChild").bases("Node").build("expression").field("expression",r("Expression"))},(0,s.maybeSetModuleExports)((function(){return t}))}}),require_type_annotations=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/type-annotations.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=r.__importDefault(require_types()),i=r.__importStar(require_shared());e.default=function(e){var t=e.use(n.default),r=t.Type.def,s=t.Type.or,a=e.use(i.default).defaults,o=s(r("TypeAnnotation"),r("TSTypeAnnotation"),null),l=s(r("TypeParameterDeclaration"),r("TSTypeParameterDeclaration"),null);r("Identifier").field("typeAnnotation",o,a.null),r("ObjectPattern").field("typeAnnotation",o,a.null),r("Function").field("returnType",o,a.null).field("typeParameters",l,a.null),r("ClassProperty").build("key","value","typeAnnotation","static").field("value",s(r("Expression"),null)).field("static",Boolean,a.false).field("typeAnnotation",o,a.null),["ClassDeclaration","ClassExpression"].forEach((function(e){r(e).field("typeParameters",l,a.null).field("superTypeParameters",s(r("TypeParameterInstantiation"),r("TSTypeParameterInstantiation"),null),a.null).field("implements",s([r("ClassImplements")],[r("TSExpressionWithTypeArguments")]),a.emptyArray)}))},(0,i.maybeSetModuleExports)((function(){return t}))}}),require_flow2=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/flow.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=r.__importDefault(require_es_proposals()),i=r.__importDefault(require_type_annotations()),s=r.__importDefault(require_types()),a=r.__importStar(require_shared());e.default=function(e){e.use(n.default),e.use(i.default);var t=e.use(s.default),r=t.Type.def,o=t.Type.or,l=e.use(a.default).defaults;r("Flow").bases("Node"),r("FlowType").bases("Flow"),r("AnyTypeAnnotation").bases("FlowType").build(),r("EmptyTypeAnnotation").bases("FlowType").build(),r("MixedTypeAnnotation").bases("FlowType").build(),r("VoidTypeAnnotation").bases("FlowType").build(),r("SymbolTypeAnnotation").bases("FlowType").build(),r("NumberTypeAnnotation").bases("FlowType").build(),r("BigIntTypeAnnotation").bases("FlowType").build(),r("NumberLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),r("NumericLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),r("BigIntLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",null).field("raw",String),r("StringTypeAnnotation").bases("FlowType").build(),r("StringLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",String).field("raw",String),r("BooleanTypeAnnotation").bases("FlowType").build(),r("BooleanLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Boolean).field("raw",String),r("TypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",r("FlowType")),r("NullableTypeAnnotation").bases("FlowType").build("typeAnnotation").field("typeAnnotation",r("FlowType")),r("NullLiteralTypeAnnotation").bases("FlowType").build(),r("NullTypeAnnotation").bases("FlowType").build(),r("ThisTypeAnnotation").bases("FlowType").build(),r("ExistsTypeAnnotation").bases("FlowType").build(),r("ExistentialTypeParam").bases("FlowType").build(),r("FunctionTypeAnnotation").bases("FlowType").build("params","returnType","rest","typeParameters").field("params",[r("FunctionTypeParam")]).field("returnType",r("FlowType")).field("rest",o(r("FunctionTypeParam"),null)).field("typeParameters",o(r("TypeParameterDeclaration"),null)),r("FunctionTypeParam").bases("Node").build("name","typeAnnotation","optional").field("name",o(r("Identifier"),null)).field("typeAnnotation",r("FlowType")).field("optional",Boolean),r("ArrayTypeAnnotation").bases("FlowType").build("elementType").field("elementType",r("FlowType")),r("ObjectTypeAnnotation").bases("FlowType").build("properties","indexers","callProperties").field("properties",[o(r("ObjectTypeProperty"),r("ObjectTypeSpreadProperty"))]).field("indexers",[r("ObjectTypeIndexer")],l.emptyArray).field("callProperties",[r("ObjectTypeCallProperty")],l.emptyArray).field("inexact",o(Boolean,void 0),l[void 0]).field("exact",Boolean,l.false).field("internalSlots",[r("ObjectTypeInternalSlot")],l.emptyArray),r("Variance").bases("Node").build("kind").field("kind",o("plus","minus"));var c=o(r("Variance"),"plus","minus",null);r("ObjectTypeProperty").bases("Node").build("key","value","optional").field("key",o(r("Literal"),r("Identifier"))).field("value",r("FlowType")).field("optional",Boolean).field("variance",c,l.null),r("ObjectTypeIndexer").bases("Node").build("id","key","value").field("id",r("Identifier")).field("key",r("FlowType")).field("value",r("FlowType")).field("variance",c,l.null).field("static",Boolean,l.false),r("ObjectTypeCallProperty").bases("Node").build("value").field("value",r("FunctionTypeAnnotation")).field("static",Boolean,l.false),r("QualifiedTypeIdentifier").bases("Node").build("qualification","id").field("qualification",o(r("Identifier"),r("QualifiedTypeIdentifier"))).field("id",r("Identifier")),r("GenericTypeAnnotation").bases("FlowType").build("id","typeParameters").field("id",o(r("Identifier"),r("QualifiedTypeIdentifier"))).field("typeParameters",o(r("TypeParameterInstantiation"),null)),r("MemberTypeAnnotation").bases("FlowType").build("object","property").field("object",r("Identifier")).field("property",o(r("MemberTypeAnnotation"),r("GenericTypeAnnotation"))),r("IndexedAccessType").bases("FlowType").build("objectType","indexType").field("objectType",r("FlowType")).field("indexType",r("FlowType")),r("OptionalIndexedAccessType").bases("FlowType").build("objectType","indexType","optional").field("objectType",r("FlowType")).field("indexType",r("FlowType")).field("optional",Boolean),r("UnionTypeAnnotation").bases("FlowType").build("types").field("types",[r("FlowType")]),r("IntersectionTypeAnnotation").bases("FlowType").build("types").field("types",[r("FlowType")]),r("TypeofTypeAnnotation").bases("FlowType").build("argument").field("argument",r("FlowType")),r("ObjectTypeSpreadProperty").bases("Node").build("argument").field("argument",r("FlowType")),r("ObjectTypeInternalSlot").bases("Node").build("id","value","optional","static","method").field("id",r("Identifier")).field("value",r("FlowType")).field("optional",Boolean).field("static",Boolean).field("method",Boolean),r("TypeParameterDeclaration").bases("Node").build("params").field("params",[r("TypeParameter")]),r("TypeParameterInstantiation").bases("Node").build("params").field("params",[r("FlowType")]),r("TypeParameter").bases("FlowType").build("name","variance","bound","default").field("name",String).field("variance",c,l.null).field("bound",o(r("TypeAnnotation"),null),l.null).field("default",o(r("FlowType"),null),l.null),r("ClassProperty").field("variance",c,l.null),r("ClassImplements").bases("Node").build("id").field("id",r("Identifier")).field("superClass",o(r("Expression"),null),l.null).field("typeParameters",o(r("TypeParameterInstantiation"),null),l.null),r("InterfaceTypeAnnotation").bases("FlowType").build("body","extends").field("body",r("ObjectTypeAnnotation")).field("extends",o([r("InterfaceExtends")],null),l.null),r("InterfaceDeclaration").bases("Declaration").build("id","body","extends").field("id",r("Identifier")).field("typeParameters",o(r("TypeParameterDeclaration"),null),l.null).field("body",r("ObjectTypeAnnotation")).field("extends",[r("InterfaceExtends")]),r("DeclareInterface").bases("InterfaceDeclaration").build("id","body","extends"),r("InterfaceExtends").bases("Node").build("id").field("id",r("Identifier")).field("typeParameters",o(r("TypeParameterInstantiation"),null),l.null),r("TypeAlias").bases("Declaration").build("id","typeParameters","right").field("id",r("Identifier")).field("typeParameters",o(r("TypeParameterDeclaration"),null)).field("right",r("FlowType")),r("DeclareTypeAlias").bases("TypeAlias").build("id","typeParameters","right"),r("OpaqueType").bases("Declaration").build("id","typeParameters","impltype","supertype").field("id",r("Identifier")).field("typeParameters",o(r("TypeParameterDeclaration"),null)).field("impltype",r("FlowType")).field("supertype",o(r("FlowType"),null)),r("DeclareOpaqueType").bases("OpaqueType").build("id","typeParameters","supertype").field("impltype",o(r("FlowType"),null)),r("TypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",r("Expression")).field("typeAnnotation",r("TypeAnnotation")),r("TupleTypeAnnotation").bases("FlowType").build("types").field("types",[r("FlowType")]),r("DeclareVariable").bases("Statement").build("id").field("id",r("Identifier")),r("DeclareFunction").bases("Statement").build("id").field("id",r("Identifier")).field("predicate",o(r("FlowPredicate"),null),l.null),r("DeclareClass").bases("InterfaceDeclaration").build("id"),r("DeclareModule").bases("Statement").build("id","body").field("id",o(r("Identifier"),r("Literal"))).field("body",r("BlockStatement")),r("DeclareModuleExports").bases("Statement").build("typeAnnotation").field("typeAnnotation",r("TypeAnnotation")),r("DeclareExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",o(r("DeclareVariable"),r("DeclareFunction"),r("DeclareClass"),r("FlowType"),r("TypeAlias"),r("DeclareOpaqueType"),r("InterfaceDeclaration"),null)).field("specifiers",[o(r("ExportSpecifier"),r("ExportBatchSpecifier"))],l.emptyArray).field("source",o(r("Literal"),null),l.null),r("DeclareExportAllDeclaration").bases("Declaration").build("source").field("source",o(r("Literal"),null),l.null),r("ImportDeclaration").field("importKind",o("value","type","typeof"),(function(){return"value"})),r("FlowPredicate").bases("Flow"),r("InferredPredicate").bases("FlowPredicate").build(),r("DeclaredPredicate").bases("FlowPredicate").build("value").field("value",r("Expression")),r("Function").field("predicate",o(r("FlowPredicate"),null),l.null),r("CallExpression").field("typeArguments",o(null,r("TypeParameterInstantiation")),l.null),r("NewExpression").field("typeArguments",o(null,r("TypeParameterInstantiation")),l.null),r("EnumDeclaration").bases("Declaration").build("id","body").field("id",r("Identifier")).field("body",o(r("EnumBooleanBody"),r("EnumNumberBody"),r("EnumStringBody"),r("EnumSymbolBody"))),r("EnumBooleanBody").build("members","explicitType").field("members",[r("EnumBooleanMember")]).field("explicitType",Boolean),r("EnumNumberBody").build("members","explicitType").field("members",[r("EnumNumberMember")]).field("explicitType",Boolean),r("EnumStringBody").build("members","explicitType").field("members",o([r("EnumStringMember")],[r("EnumDefaultedMember")])).field("explicitType",Boolean),r("EnumSymbolBody").build("members").field("members",[r("EnumDefaultedMember")]),r("EnumBooleanMember").build("id","init").field("id",r("Identifier")).field("init",o(r("Literal"),Boolean)),r("EnumNumberMember").build("id","init").field("id",r("Identifier")).field("init",r("Literal")),r("EnumStringMember").build("id","init").field("id",r("Identifier")).field("init",r("Literal")),r("EnumDefaultedMember").build("id").field("id",r("Identifier"))},(0,a.maybeSetModuleExports)((function(){return t}))}}),require_esprima=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/esprima.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=r.__importDefault(require_es_proposals()),i=r.__importDefault(require_types()),s=r.__importStar(require_shared());e.default=function(e){e.use(n.default);var t=e.use(i.default),r=e.use(s.default).defaults,a=t.Type.def,o=t.Type.or;a("VariableDeclaration").field("declarations",[o(a("VariableDeclarator"),a("Identifier"))]),a("Property").field("value",o(a("Expression"),a("Pattern"))),a("ArrayPattern").field("elements",[o(a("Pattern"),a("SpreadElement"),null)]),a("ObjectPattern").field("properties",[o(a("Property"),a("PropertyPattern"),a("SpreadPropertyPattern"),a("SpreadProperty"))]),a("ExportSpecifier").bases("ModuleSpecifier").build("id","name"),a("ExportBatchSpecifier").bases("Specifier").build(),a("ExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",o(a("Declaration"),a("Expression"),null)).field("specifiers",[o(a("ExportSpecifier"),a("ExportBatchSpecifier"))],r.emptyArray).field("source",o(a("Literal"),null),r.null),a("Block").bases("Comment").build("value","leading","trailing"),a("Line").bases("Comment").build("value","leading","trailing")},(0,s.maybeSetModuleExports)((function(){return t}))}}),require_babel_core=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/babel-core.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=r.__importDefault(require_es_proposals()),i=r.__importDefault(require_types()),s=r.__importStar(require_shared());e.default=function(e){var t,r,a,o,l;e.use(n.default);var c=e.use(i.default),u=e.use(s.default).defaults,p=c.Type.def,d=c.Type.or,h=c.builtInTypes.undefined;function f(e,t){return void 0===e&&(e=String),["extra",{rawValue:e,raw:String},function(){var e=c.getFieldValue(this,"value");return{rawValue:e,raw:t?t(e):String(e)}}]}p("Noop").bases("Statement").build(),p("DoExpression").bases("Expression").build("body").field("body",[p("Statement")]),p("BindExpression").bases("Expression").build("object","callee").field("object",d(p("Expression"),null)).field("callee",p("Expression")),p("ParenthesizedExpression").bases("Expression").build("expression").field("expression",p("Expression")),p("ExportNamespaceSpecifier").bases("Specifier").build("exported").field("exported",p("Identifier")),p("ExportDefaultSpecifier").bases("Specifier").build("exported").field("exported",p("Identifier")),p("CommentBlock").bases("Comment").build("value","leading","trailing"),p("CommentLine").bases("Comment").build("value","leading","trailing"),p("Directive").bases("Node").build("value").field("value",p("DirectiveLiteral")),p("DirectiveLiteral").bases("Node","Expression").build("value").field("value",String,u["use strict"]),p("InterpreterDirective").bases("Node").build("value").field("value",String),p("BlockStatement").bases("Statement").build("body").field("body",[p("Statement")]).field("directives",[p("Directive")],u.emptyArray),p("Program").bases("Node").build("body").field("body",[p("Statement")]).field("directives",[p("Directive")],u.emptyArray).field("interpreter",d(p("InterpreterDirective"),null),u.null),(t=p("StringLiteral").bases("Literal").build("value").field("value",String)).field.apply(t,f(String,(function(e){return JSON.stringify(e)}))),(r=p("NumericLiteral").bases("Literal").build("value").field("value",Number).field("raw",d(String,null),u.null)).field.apply(r,f(Number)),(a=p("BigIntLiteral").bases("Literal").build("value").field("value",d(String,Number))).field.apply(a,f(String,(function(e){return e+"n"}))),(o=p("DecimalLiteral").bases("Literal").build("value").field("value",String)).field.apply(o,f(String,(function(e){return e+"m"}))),p("NullLiteral").bases("Literal").build().field("value",null,u.null),p("BooleanLiteral").bases("Literal").build("value").field("value",Boolean),(l=p("RegExpLiteral").bases("Literal").build("pattern","flags").field("pattern",String).field("flags",String).field("value",RegExp,(function(){return new RegExp(this.pattern,this.flags)}))).field.apply(l,f(d(RegExp,h),(function(e){return"/".concat(e.pattern,"/").concat(e.flags||"")}))).field("regex",{pattern:String,flags:String},(function(){return{pattern:this.pattern,flags:this.flags}}));var m=d(p("Property"),p("ObjectMethod"),p("ObjectProperty"),p("SpreadProperty"),p("SpreadElement"));p("ObjectExpression").bases("Expression").build("properties").field("properties",[m]),p("ObjectMethod").bases("Node","Function").build("kind","key","params","body","computed").field("kind",d("method","get","set")).field("key",d(p("Literal"),p("Identifier"),p("Expression"))).field("params",[p("Pattern")]).field("body",p("BlockStatement")).field("computed",Boolean,u.false).field("generator",Boolean,u.false).field("async",Boolean,u.false).field("accessibility",d(p("Literal"),null),u.null).field("decorators",d([p("Decorator")],null),u.null),p("ObjectProperty").bases("Node").build("key","value").field("key",d(p("Literal"),p("Identifier"),p("Expression"))).field("value",d(p("Expression"),p("Pattern"))).field("accessibility",d(p("Literal"),null),u.null).field("computed",Boolean,u.false);var y=d(p("MethodDefinition"),p("VariableDeclarator"),p("ClassPropertyDefinition"),p("ClassProperty"),p("ClassPrivateProperty"),p("ClassMethod"),p("ClassPrivateMethod"),p("ClassAccessorProperty"),p("StaticBlock"));p("ClassBody").bases("Declaration").build("body").field("body",[y]),p("ClassMethod").bases("Declaration","Function").build("kind","key","params","body","computed","static").field("key",d(p("Literal"),p("Identifier"),p("Expression"))),p("ClassPrivateMethod").bases("Declaration","Function").build("key","params","body","kind","computed","static").field("key",p("PrivateName")),p("ClassAccessorProperty").bases("Declaration").build("key","value","decorators","computed","static").field("key",d(p("Literal"),p("Identifier"),p("PrivateName"),p("Expression"))).field("value",d(p("Expression"),null),u.null),["ClassMethod","ClassPrivateMethod"].forEach((function(e){p(e).field("kind",d("get","set","method","constructor"),(function(){return"method"})).field("body",p("BlockStatement")).field("access",d("public","private","protected",null),u.null)})),["ClassMethod","ClassPrivateMethod","ClassAccessorProperty"].forEach((function(e){p(e).field("computed",Boolean,u.false).field("static",Boolean,u.false).field("abstract",Boolean,u.false).field("accessibility",d("public","private","protected",null),u.null).field("decorators",d([p("Decorator")],null),u.null).field("definite",Boolean,u.false).field("optional",Boolean,u.false).field("override",Boolean,u.false).field("readonly",Boolean,u.false)}));var g=d(p("Property"),p("PropertyPattern"),p("SpreadPropertyPattern"),p("SpreadProperty"),p("ObjectProperty"),p("RestProperty"),p("RestElement"));p("ObjectPattern").bases("Pattern").build("properties").field("properties",[g]).field("decorators",d([p("Decorator")],null),u.null),p("SpreadProperty").bases("Node").build("argument").field("argument",p("Expression")),p("RestProperty").bases("Node").build("argument").field("argument",p("Expression")),p("ForAwaitStatement").bases("Statement").build("left","right","body").field("left",d(p("VariableDeclaration"),p("Expression"))).field("right",p("Expression")).field("body",p("Statement")),p("Import").bases("Expression").build()},(0,s.maybeSetModuleExports)((function(){return t}))}}),require_babel=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/babel.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=r.__importDefault(require_types()),i=r.__importDefault(require_babel_core()),s=r.__importDefault(require_flow2()),a=require_shared();e.default=function(e){var t=e.use(n.default).Type.def;e.use(i.default),e.use(s.default),t("V8IntrinsicIdentifier").bases("Expression").build("name").field("name",String),t("TopicReference").bases("Expression").build()},(0,a.maybeSetModuleExports)((function(){return t}))}}),require_typescript2=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/typescript.js"(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=require_tslib(),n=r.__importDefault(require_babel_core()),i=r.__importDefault(require_type_annotations()),s=r.__importDefault(require_types()),a=r.__importStar(require_shared());e.default=function(e){e.use(n.default),e.use(i.default);var t=e.use(s.default),r=t.namedTypes,o=t.Type.def,l=t.Type.or,c=e.use(a.default).defaults,u=t.Type.from((function(e,t){return!(!r.StringLiteral||!r.StringLiteral.check(e,t))||!(!r.Literal||!r.Literal.check(e,t)||"string"!=typeof e.value)}),"StringLiteral");o("TSType").bases("Node");var p=l(o("Identifier"),o("TSQualifiedName"));o("TSTypeReference").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("typeName","typeParameters").field("typeName",p),o("TSHasOptionalTypeParameterInstantiation").field("typeParameters",l(o("TSTypeParameterInstantiation"),null),c.null),o("TSHasOptionalTypeParameters").field("typeParameters",l(o("TSTypeParameterDeclaration"),null,void 0),c.null),o("TSHasOptionalTypeAnnotation").field("typeAnnotation",l(o("TSTypeAnnotation"),null),c.null),o("TSQualifiedName").bases("Node").build("left","right").field("left",p).field("right",p),o("TSAsExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",o("Expression")).field("typeAnnotation",o("TSType")).field("extra",l({parenthesized:Boolean},null),c.null),o("TSTypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",o("Expression")).field("typeAnnotation",o("TSType")),o("TSSatisfiesExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",o("Expression")).field("typeAnnotation",o("TSType")),o("TSNonNullExpression").bases("Expression","Pattern").build("expression").field("expression",o("Expression")),["TSAnyKeyword","TSBigIntKeyword","TSBooleanKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword","TSIntrinsicKeyword","TSThisType"].forEach((function(e){o(e).bases("TSType").build()})),o("TSArrayType").bases("TSType").build("elementType").field("elementType",o("TSType")),o("TSLiteralType").bases("TSType").build("literal").field("literal",l(o("NumericLiteral"),o("StringLiteral"),o("BooleanLiteral"),o("TemplateLiteral"),o("UnaryExpression"),o("BigIntLiteral"))),o("TemplateLiteral").field("expressions",l([o("Expression")],[o("TSType")])),["TSUnionType","TSIntersectionType"].forEach((function(e){o(e).bases("TSType").build("types").field("types",[o("TSType")])})),o("TSConditionalType").bases("TSType").build("checkType","extendsType","trueType","falseType").field("checkType",o("TSType")).field("extendsType",o("TSType")).field("trueType",o("TSType")).field("falseType",o("TSType")),o("TSInferType").bases("TSType").build("typeParameter").field("typeParameter",o("TSTypeParameter")),o("TSParenthesizedType").bases("TSType").build("typeAnnotation").field("typeAnnotation",o("TSType"));var d=[l(o("Identifier"),o("RestElement"),o("ArrayPattern"),o("ObjectPattern"))];["TSFunctionType","TSConstructorType"].forEach((function(e){o(e).bases("TSType","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters").field("parameters",d)})),o("TSDeclareFunction").bases("Declaration","TSHasOptionalTypeParameters").build("id","params","returnType").field("declare",Boolean,c.false).field("async",Boolean,c.false).field("generator",Boolean,c.false).field("id",l(o("Identifier"),null),c.null).field("params",[o("Pattern")]).field("returnType",l(o("TSTypeAnnotation"),o("Noop"),null),c.null),o("TSDeclareMethod").bases("Declaration","TSHasOptionalTypeParameters").build("key","params","returnType").field("async",Boolean,c.false).field("generator",Boolean,c.false).field("params",[o("Pattern")]).field("abstract",Boolean,c.false).field("accessibility",l("public","private","protected",void 0),c[void 0]).field("static",Boolean,c.false).field("computed",Boolean,c.false).field("optional",Boolean,c.false).field("key",l(o("Identifier"),o("StringLiteral"),o("NumericLiteral"),o("Expression"))).field("kind",l("get","set","method","constructor"),(function(){return"method"})).field("access",l("public","private","protected",void 0),c[void 0]).field("decorators",l([o("Decorator")],null),c.null).field("returnType",l(o("TSTypeAnnotation"),o("Noop"),null),c.null),o("TSMappedType").bases("TSType").build("typeParameter","typeAnnotation").field("readonly",l(Boolean,"+","-"),c.false).field("typeParameter",o("TSTypeParameter")).field("optional",l(Boolean,"+","-"),c.false).field("typeAnnotation",l(o("TSType"),null),c.null),o("TSTupleType").bases("TSType").build("elementTypes").field("elementTypes",[l(o("TSType"),o("TSNamedTupleMember"))]),o("TSNamedTupleMember").bases("TSType").build("label","elementType","optional").field("label",o("Identifier")).field("optional",Boolean,c.false).field("elementType",o("TSType")),o("TSRestType").bases("TSType").build("typeAnnotation").field("typeAnnotation",o("TSType")),o("TSOptionalType").bases("TSType").build("typeAnnotation").field("typeAnnotation",o("TSType")),o("TSIndexedAccessType").bases("TSType").build("objectType","indexType").field("objectType",o("TSType")).field("indexType",o("TSType")),o("TSTypeOperator").bases("TSType").build("operator").field("operator",String).field("typeAnnotation",o("TSType")),o("TSTypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",l(o("TSType"),o("TSTypeAnnotation"))),o("TSIndexSignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",[o("Identifier")]).field("readonly",Boolean,c.false),o("TSPropertySignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("key","typeAnnotation","optional").field("key",o("Expression")).field("computed",Boolean,c.false).field("readonly",Boolean,c.false).field("optional",Boolean,c.false).field("initializer",l(o("Expression"),null),c.null),o("TSMethodSignature").bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("key","parameters","typeAnnotation").field("key",o("Expression")).field("computed",Boolean,c.false).field("optional",Boolean,c.false).field("parameters",d),o("TSTypePredicate").bases("TSTypeAnnotation","TSType").build("parameterName","typeAnnotation","asserts").field("parameterName",l(o("Identifier"),o("TSThisType"))).field("typeAnnotation",l(o("TSTypeAnnotation"),null),c.null).field("asserts",Boolean,c.false),["TSCallSignatureDeclaration","TSConstructSignatureDeclaration"].forEach((function(e){o(e).bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",d)})),o("TSEnumMember").bases("Node").build("id","initializer").field("id",l(o("Identifier"),u)).field("initializer",l(o("Expression"),null),c.null),o("TSTypeQuery").bases("TSType").build("exprName").field("exprName",l(p,o("TSImportType")));var h=l(o("TSCallSignatureDeclaration"),o("TSConstructSignatureDeclaration"),o("TSIndexSignature"),o("TSMethodSignature"),o("TSPropertySignature"));o("TSTypeLiteral").bases("TSType").build("members").field("members",[h]),o("TSTypeParameter").bases("Identifier").build("name","constraint","default").field("name",l(o("Identifier"),String)).field("constraint",l(o("TSType"),void 0),c[void 0]).field("default",l(o("TSType"),void 0),c[void 0]),o("TSTypeAssertion").bases("Expression","Pattern").build("typeAnnotation","expression").field("typeAnnotation",o("TSType")).field("expression",o("Expression")).field("extra",l({parenthesized:Boolean},null),c.null),o("TSTypeParameterDeclaration").bases("Declaration").build("params").field("params",[o("TSTypeParameter")]),o("TSInstantiationExpression").bases("Expression","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",o("Expression")),o("TSTypeParameterInstantiation").bases("Node").build("params").field("params",[o("TSType")]),o("TSEnumDeclaration").bases("Declaration").build("id","members").field("id",o("Identifier")).field("const",Boolean,c.false).field("declare",Boolean,c.false).field("members",[o("TSEnumMember")]).field("initializer",l(o("Expression"),null),c.null),o("TSTypeAliasDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","typeAnnotation").field("id",o("Identifier")).field("declare",Boolean,c.false).field("typeAnnotation",o("TSType")),o("TSModuleBlock").bases("Node").build("body").field("body",[o("Statement")]),o("TSModuleDeclaration").bases("Declaration").build("id","body").field("id",l(u,p)).field("declare",Boolean,c.false).field("global",Boolean,c.false).field("body",l(o("TSModuleBlock"),o("TSModuleDeclaration"),null),c.null),o("TSImportType").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("argument","qualifier","typeParameters").field("argument",u).field("qualifier",l(p,void 0),c[void 0]),o("TSImportEqualsDeclaration").bases("Declaration").build("id","moduleReference").field("id",o("Identifier")).field("isExport",Boolean,c.false).field("moduleReference",l(p,o("TSExternalModuleReference"))),o("TSExternalModuleReference").bases("Declaration").build("expression").field("expression",u),o("TSExportAssignment").bases("Statement").build("expression").field("expression",o("Expression")),o("TSNamespaceExportDeclaration").bases("Declaration").build("id").field("id",o("Identifier")),o("TSInterfaceBody").bases("Node").build("body").field("body",[h]),o("TSExpressionWithTypeArguments").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",p),o("TSInterfaceDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","body").field("id",p).field("declare",Boolean,c.false).field("extends",l([o("TSExpressionWithTypeArguments")],null),c.null).field("body",o("TSInterfaceBody")),o("TSParameterProperty").bases("Pattern").build("parameter").field("accessibility",l("public","private","protected",void 0),c[void 0]).field("readonly",Boolean,c.false).field("parameter",l(o("Identifier"),o("AssignmentPattern"))),o("ClassProperty").field("access",l("public","private","protected",void 0),c[void 0]),o("ClassAccessorProperty").bases("Declaration","TSHasOptionalTypeAnnotation"),o("ClassBody").field("body",[l(o("MethodDefinition"),o("VariableDeclarator"),o("ClassPropertyDefinition"),o("ClassProperty"),o("ClassPrivateProperty"),o("ClassAccessorProperty"),o("ClassMethod"),o("ClassPrivateMethod"),o("StaticBlock"),o("TSDeclareMethod"),h)])},(0,a.maybeSetModuleExports)((function(){return t}))}}),require_namedTypes=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/gen/namedTypes.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.namedTypes=void 0,e.namedTypes||(e.namedTypes={})}}),require_main=__commonJS({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/main.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.visit=e.use=e.Type=e.someField=e.PathVisitor=e.Path=e.NodePath=e.namedTypes=e.getSupertypeNames=e.getFieldValue=e.getFieldNames=e.getBuilderName=e.finalize=e.eachField=e.defineMethod=e.builtInTypes=e.builders=e.astNodesAreEquivalent=void 0;var t=require_tslib(),r=t.__importDefault(require_fork()),n=t.__importDefault(require_es_proposals()),i=t.__importDefault(require_jsx2()),s=t.__importDefault(require_flow2()),a=t.__importDefault(require_esprima()),o=t.__importDefault(require_babel()),l=t.__importDefault(require_typescript2()),c=require_namedTypes();Object.defineProperty(e,"namedTypes",{enumerable:!0,get:function(){return c.namedTypes}});var u=(0,r.default)([n.default,i.default,s.default,a.default,o.default,l.default]),p=u.astNodesAreEquivalent,d=u.builders,h=u.builtInTypes,f=u.defineMethod,m=u.eachField,y=u.finalize,g=u.getBuilderName,b=u.getFieldNames,S=u.getFieldValue,T=u.getSupertypeNames,v=u.namedTypes,E=u.NodePath,x=u.Path,_=u.PathVisitor,A=u.someField,P=u.Type,w=u.use,D=u.visit;e.astNodesAreEquivalent=p,e.builders=d,e.builtInTypes=h,e.defineMethod=f,e.eachField=m,e.finalize=y,e.getBuilderName=g,e.getFieldNames=b,e.getFieldValue=S,e.getSupertypeNames=T,e.NodePath=E,e.Path=x,e.PathVisitor=_,e.someField=A,e.Type=P,e.use=w,e.visit=D,Object.assign(c.namedTypes,v)}}),require_base64=__commonJS({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js"(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(e){if(0<=e&&e<t.length)return t[e];throw new TypeError("Must be between 0 and 63: "+e)},e.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}}}),require_base64_vlq=__commonJS({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js"(e){var t=require_base64();e.encode=function(e){var r,n="",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{r=31&i,(i>>>=5)>0&&(r|=32),n+=t.encode(r)}while(i>0);return n},e.decode=function(e,r,n){var i,s,a,o,l=e.length,c=0,u=0;do{if(r>=l)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(s=t.decode(e.charCodeAt(r++))))throw new Error("Invalid base64 digit: "+e.charAt(r-1));i=!!(32&s),c+=(s&=31)<<u,u+=5}while(i);n.value=(o=(a=c)>>1,1&~a?o:-o),n.rest=r}}}),require_util=__commonJS({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js"(e){e.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function n(e){var r=e.match(t);return r?{scheme:r[1],auth:r[2],host:r[3],port:r[4],path:r[5]}:null}function i(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function s(t){var r=t,s=n(t);if(s){if(!s.path)return t;r=s.path}for(var a,o=e.isAbsolute(r),l=r.split(/\/+/),c=0,u=l.length-1;u>=0;u--)"."===(a=l[u])?l.splice(u,1):".."===a?c++:c>0&&(""===a?(l.splice(u+1,c),c=0):(l.splice(u,2),c--));return""===(r=l.join("/"))&&(r=o?"/":"."),s?(s.path=r,i(s)):r}function a(e,t){""===e&&(e="."),""===t&&(t=".");var a=n(t),o=n(e);if(o&&(e=o.path||"/"),a&&!a.scheme)return o&&(a.scheme=o.scheme),i(a);if(a||t.match(r))return t;if(o&&!o.host&&!o.path)return o.host=t,i(o);var l="/"===t.charAt(0)?t:s(e.replace(/\/+$/,"")+"/"+t);return o?(o.path=l,i(o)):l}e.urlParse=n,e.urlGenerate=i,e.normalize=s,e.join=a,e.isAbsolute=function(e){return"/"===e.charAt(0)||t.test(e)},e.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var o=!("__proto__"in Object.create(null));function l(e){return e}function c(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function u(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}e.toSetString=o?l:function(e){return c(e)?"$"+e:e},e.fromSetString=o?l:function(e){return c(e)?e.slice(1):e},e.compareByOriginalPositions=function(e,t,r){var n=u(e.source,t.source);return 0!==n||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)||r||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=e.generatedLine-t.generatedLine)?n:u(e.name,t.name)},e.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||r||0!==(n=u(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:u(e.name,t.name)},e.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=u(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:u(e.name,t.name)},e.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var o=n(r);if(!o)throw new Error("sourceMapURL could not be parsed");if(o.path){var l=o.path.lastIndexOf("/");l>=0&&(o.path=o.path.substring(0,l+1))}t=a(i(o),t)}return s(t)}}}),require_array_set=__commonJS({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js"(e){var t=require_util(),r=Object.prototype.hasOwnProperty,n="undefined"!=typeof Map;function i(){this._array=[],this._set=n?new Map:Object.create(null)}i.fromArray=function(e,t){for(var r=new i,n=0,s=e.length;n<s;n++)r.add(e[n],t);return r},i.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(e,i){var s=n?e:t.toSetString(e),a=n?this.has(e):r.call(this._set,s),o=this._array.length;a&&!i||this._array.push(e),a||(n?this._set.set(e,o):this._set[s]=o)},i.prototype.has=function(e){if(n)return this._set.has(e);var i=t.toSetString(e);return r.call(this._set,i)},i.prototype.indexOf=function(e){if(n){var i=this._set.get(e);if(i>=0)return i}else{var s=t.toSetString(e);if(r.call(this._set,s))return this._set[s]}throw new Error('"'+e+'" is not in the set.')},i.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},i.prototype.toArray=function(){return this._array.slice()},e.ArraySet=i}}),require_mapping_list=__commonJS({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js"(e){var t=require_util();function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},r.prototype.add=function(e){var r,n,i,s,a,o;r=this._last,n=e,i=r.generatedLine,s=n.generatedLine,a=r.generatedColumn,o=n.generatedColumn,s>i||s==i&&o>=a||t.compareByGeneratedPositionsInflated(r,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=r}}),require_source_map_generator=__commonJS({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js"(e){var t=require_base64_vlq(),r=require_util(),n=require_array_set().ArraySet,i=require_mapping_list().MappingList;function s(e){e||(e={}),this._file=r.getArg(e,"file",null),this._sourceRoot=r.getArg(e,"sourceRoot",null),this._skipValidation=r.getArg(e,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new i,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,n=new s({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var i={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(i.source=e.source,null!=t&&(i.source=r.relative(t,i.source)),i.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(i.name=e.name)),n.addMapping(i)})),e.sources.forEach((function(i){var s=i;null!==t&&(s=r.relative(t,i)),n._sources.has(s)||n._sources.add(s);var a=e.sourceContentFor(i);null!=a&&n.setSourceContent(i,a)})),n},s.prototype.addMapping=function(e){var t=r.getArg(e,"generated"),n=r.getArg(e,"original",null),i=r.getArg(e,"source",null),s=r.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,i,s),null!=i&&(i=String(i),this._sources.has(i)||this._sources.add(i)),null!=s&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:i,name:s})},s.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=r.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[r.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[r.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,i){var s=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');s=e.file}var a=this._sourceRoot;null!=a&&(s=r.relative(a,s));var o=new n,l=new n;this._mappings.unsortedForEach((function(t){if(t.source===s&&null!=t.originalLine){var n=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=n.source&&(t.source=n.source,null!=i&&(t.source=r.join(i,t.source)),null!=a&&(t.source=r.relative(a,t.source)),t.originalLine=n.line,t.originalColumn=n.column,null!=n.name&&(t.name=n.name))}var c=t.source;null==c||o.has(c)||o.add(c);var u=t.name;null==u||l.has(u)||l.add(u)}),this),this._sources=o,this._names=l,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=i&&(t=r.join(i,t)),null!=a&&(t=r.relative(a,t)),this.setSourceContent(t,n))}),this)},s.prototype._validateMapping=function(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},s.prototype._serializeMappings=function(){for(var e,n,i,s,a=0,o=1,l=0,c=0,u=0,p=0,d="",h=this._mappings.toArray(),f=0,m=h.length;f<m;f++){if(e="",(n=h[f]).generatedLine!==o)for(a=0;n.generatedLine!==o;)e+=";",o++;else if(f>0){if(!r.compareByGeneratedPositionsInflated(n,h[f-1]))continue;e+=","}e+=t.encode(n.generatedColumn-a),a=n.generatedColumn,null!=n.source&&(s=this._sources.indexOf(n.source),e+=t.encode(s-p),p=s,e+=t.encode(n.originalLine-1-c),c=n.originalLine-1,e+=t.encode(n.originalColumn-l),l=n.originalColumn,null!=n.name&&(i=this._names.indexOf(n.name),e+=t.encode(i-u),u=i)),d+=e}return d},s.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=r.relative(t,e));var n=r.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=s}}),require_binary_search=__commonJS({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js"(e){function t(r,n,i,s,a,o){var l=Math.floor((n-r)/2)+r,c=a(i,s[l],!0);return 0===c?l:c>0?n-l>1?t(l,n,i,s,a,o):o==e.LEAST_UPPER_BOUND?n<s.length?n:-1:l:l-r>1?t(r,l,i,s,a,o):o==e.LEAST_UPPER_BOUND?l:r<0?-1:r}e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(r,n,i,s){if(0===n.length)return-1;var a=t(-1,n.length,r,n,i,s||e.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&0===i(n[a],n[a-1],!0);)--a;return a}}}),require_quick_sort=__commonJS({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js"(e){function t(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function r(e,n,i,s){if(i<s){var a=i-1;t(e,(u=i,p=s,Math.round(u+Math.random()*(p-u))),s);for(var o=e[s],l=i;l<s;l++)n(e[l],o)<=0&&t(e,a+=1,l);t(e,a+1,l);var c=a+1;r(e,n,i,c-1),r(e,n,c+1,s)}var u,p}e.quickSort=function(e,t){r(e,t,0,e.length-1)}}}),require_source_map_consumer=__commonJS({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js"(e){var t=require_util(),r=require_binary_search(),n=require_array_set().ArraySet,i=require_base64_vlq(),s=require_quick_sort().quickSort;function a(e,r){var n=e;return"string"==typeof e&&(n=t.parseSourceMapInput(e)),null!=n.sections?new c(n,r):new o(n,r)}function o(e,r){var i=e;"string"==typeof e&&(i=t.parseSourceMapInput(e));var s=t.getArg(i,"version"),a=t.getArg(i,"sources"),o=t.getArg(i,"names",[]),l=t.getArg(i,"sourceRoot",null),c=t.getArg(i,"sourcesContent",null),u=t.getArg(i,"mappings"),p=t.getArg(i,"file",null);if(s!=this._version)throw new Error("Unsupported version: "+s);l&&(l=t.normalize(l)),a=a.map(String).map(t.normalize).map((function(e){return l&&t.isAbsolute(l)&&t.isAbsolute(e)?t.relative(l,e):e})),this._names=n.fromArray(o.map(String),!0),this._sources=n.fromArray(a,!0),this._absoluteSources=this._sources.toArray().map((function(e){return t.computeSourceURL(l,e,r)})),this.sourceRoot=l,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=r,this.file=p}function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function c(e,r){var i=e;"string"==typeof e&&(i=t.parseSourceMapInput(e));var s=t.getArg(i,"version"),o=t.getArg(i,"sections");if(s!=this._version)throw new Error("Unsupported version: "+s);this._sources=new n,this._names=new n;var l={line:-1,column:0};this._sections=o.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var n=t.getArg(e,"offset"),i=t.getArg(n,"line"),s=t.getArg(n,"column");if(i<l.line||i===l.line&&s<l.column)throw new Error("Section offsets must be ordered and non-overlapping.");return l=n,{generatedOffset:{generatedLine:i+1,generatedColumn:s+1},consumer:new a(t.getArg(e,"map"),r)}}))}a.fromSourceMap=function(e,t){return o.fromSourceMap(e,t)},a.prototype._version=3,a.prototype.__generatedMappings=null,Object.defineProperty(a.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),a.prototype.__originalMappings=null,Object.defineProperty(a.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),a.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return";"===r||","===r},a.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},a.GENERATED_ORDER=1,a.ORIGINAL_ORDER=2,a.GREATEST_LOWER_BOUND=1,a.LEAST_UPPER_BOUND=2,a.prototype.eachMapping=function(e,r,n){var i,s=r||null;switch(n||a.GENERATED_ORDER){case a.GENERATED_ORDER:i=this._generatedMappings;break;case a.ORIGINAL_ORDER:i=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var o=this.sourceRoot;i.map((function(e){var r=null===e.source?null:this._sources.at(e.source);return{source:r=t.computeSourceURL(o,r,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,s)},a.prototype.allGeneratedPositionsFor=function(e){var n=t.getArg(e,"line"),i={source:t.getArg(e,"source"),originalLine:n,originalColumn:t.getArg(e,"column",0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var s=[],a=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",t.compareByOriginalPositions,r.LEAST_UPPER_BOUND);if(a>=0){var o=this._originalMappings[a];if(void 0===e.column)for(var l=o.originalLine;o&&o.originalLine===l;)s.push({line:t.getArg(o,"generatedLine",null),column:t.getArg(o,"generatedColumn",null),lastColumn:t.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++a];else for(var c=o.originalColumn;o&&o.originalLine===n&&o.originalColumn==c;)s.push({line:t.getArg(o,"generatedLine",null),column:t.getArg(o,"generatedColumn",null),lastColumn:t.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++a]}return s},e.SourceMapConsumer=a,o.prototype=Object.create(a.prototype),o.prototype.consumer=a,o.prototype._findSourceIndex=function(e){var r,n=e;if(null!=this.sourceRoot&&(n=t.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1},o.fromSourceMap=function(e,r){var i=Object.create(o.prototype),a=i._names=n.fromArray(e._names.toArray(),!0),c=i._sources=n.fromArray(e._sources.toArray(),!0);i.sourceRoot=e._sourceRoot,i.sourcesContent=e._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=e._file,i._sourceMapURL=r,i._absoluteSources=i._sources.toArray().map((function(e){return t.computeSourceURL(i.sourceRoot,e,r)}));for(var u=e._mappings.toArray().slice(),p=i.__generatedMappings=[],d=i.__originalMappings=[],h=0,f=u.length;h<f;h++){var m=u[h],y=new l;y.generatedLine=m.generatedLine,y.generatedColumn=m.generatedColumn,m.source&&(y.source=c.indexOf(m.source),y.originalLine=m.originalLine,y.originalColumn=m.originalColumn,m.name&&(y.name=a.indexOf(m.name)),d.push(y)),p.push(y)}return s(i.__originalMappings,t.compareByOriginalPositions),i},o.prototype._version=3,Object.defineProperty(o.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),o.prototype._parseMappings=function(e,r){for(var n,a,o,c,u,p=1,d=0,h=0,f=0,m=0,y=0,g=e.length,b=0,S={},T={},v=[],E=[];b<g;)if(";"===e.charAt(b))p++,b++,d=0;else if(","===e.charAt(b))b++;else{for((n=new l).generatedLine=p,c=b;c<g&&!this._charIsMappingSeparator(e,c);c++);if(o=S[a=e.slice(b,c)])b+=a.length;else{for(o=[];b<c;)i.decode(e,b,T),u=T.value,b=T.rest,o.push(u);if(2===o.length)throw new Error("Found a source, but no line and column");if(3===o.length)throw new Error("Found a source and line, but no column");S[a]=o}n.generatedColumn=d+o[0],d=n.generatedColumn,o.length>1&&(n.source=m+o[1],m+=o[1],n.originalLine=h+o[2],h=n.originalLine,n.originalLine+=1,n.originalColumn=f+o[3],f=n.originalColumn,o.length>4&&(n.name=y+o[4],y+=o[4])),E.push(n),"number"==typeof n.originalLine&&v.push(n)}s(E,t.compareByGeneratedPositionsDeflated),this.__generatedMappings=E,s(v,t.compareByOriginalPositions),this.__originalMappings=v},o.prototype._findMapping=function(e,t,n,i,s,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return r.search(e,t,s,a)},o.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},o.prototype.originalPositionFor=function(e){var r={generatedLine:t.getArg(e,"line"),generatedColumn:t.getArg(e,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",t.compareByGeneratedPositionsDeflated,t.getArg(e,"bias",a.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=t.getArg(i,"source",null);null!==s&&(s=this._sources.at(s),s=t.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=t.getArg(i,"name",null);return null!==o&&(o=this._names.at(o)),{source:s,line:t.getArg(i,"originalLine",null),column:t.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},o.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},o.prototype.sourceContentFor=function(e,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var i,s=e;if(null!=this.sourceRoot&&(s=t.relative(this.sourceRoot,s)),null!=this.sourceRoot&&(i=t.urlParse(this.sourceRoot))){var a=s.replace(/^file:\/\//,"");if("file"==i.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!i.path||"/"==i.path)&&this._sources.has("/"+s))return this.sourcesContent[this._sources.indexOf("/"+s)]}if(r)return null;throw new Error('"'+s+'" is not in the SourceMap.')},o.prototype.generatedPositionFor=function(e){var r=t.getArg(e,"source");if((r=this._findSourceIndex(r))<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:t.getArg(e,"line"),originalColumn:t.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",t.compareByOriginalPositions,t.getArg(e,"bias",a.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:t.getArg(s,"generatedLine",null),column:t.getArg(s,"generatedColumn",null),lastColumn:t.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},e.BasicSourceMapConsumer=o,c.prototype=Object.create(a.prototype),c.prototype.constructor=a,c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}}),c.prototype.originalPositionFor=function(e){var n={generatedLine:t.getArg(e,"line"),generatedColumn:t.getArg(e,"column")},i=r.search(n,this._sections,(function(e,t){var r=e.generatedLine-t.generatedOffset.generatedLine;return r||e.generatedColumn-t.generatedOffset.generatedColumn})),s=this._sections[i];return s?s.consumer.originalPositionFor({line:n.generatedLine-(s.generatedOffset.generatedLine-1),column:n.generatedColumn-(s.generatedOffset.generatedLine===n.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},c.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r].consumer.sourceContentFor(e,!0);if(n)return n}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(e){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(-1!==n.consumer._findSourceIndex(t.getArg(e,"source"))){var i=n.consumer.generatedPositionFor(e);if(i)return{line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},c.prototype._parseMappings=function(e,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],a=i.consumer._generatedMappings,o=0;o<a.length;o++){var l=a[o],c=i.consumer._sources.at(l.source);c=t.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var u=null;l.name&&(u=i.consumer._names.at(l.name),this._names.add(u),u=this._names.indexOf(u));var p={source:c,generatedLine:l.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(i.generatedOffset.generatedLine===l.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:u};this.__generatedMappings.push(p),"number"==typeof p.originalLine&&this.__originalMappings.push(p)}s(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),s(this.__originalMappings,t.compareByOriginalPositions)},e.IndexedSourceMapConsumer=c}}),require_source_node=__commonJS({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js"(e){var t=require_source_map_generator().SourceMapGenerator,r=require_util(),n=/(\r?\n)/,i="$$$isSourceNode$$$";function s(e,t,r,n,s){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==s?null:s,this[i]=!0,null!=n&&this.add(n)}s.fromStringWithSourceMap=function(e,t,i){var a=new s,o=e.split(n),l=0,c=function(){return e()+(e()||"");function e(){return l<o.length?o[l++]:void 0}},u=1,p=0,d=null;return t.eachMapping((function(e){if(null!==d){if(!(u<e.generatedLine)){var t=(r=o[l]||"").substr(0,e.generatedColumn-p);return o[l]=r.substr(e.generatedColumn-p),p=e.generatedColumn,h(d,t),void(d=e)}h(d,c()),u++,p=0}for(;u<e.generatedLine;)a.add(c()),u++;if(p<e.generatedColumn){var r=o[l]||"";a.add(r.substr(0,e.generatedColumn)),o[l]=r.substr(e.generatedColumn),p=e.generatedColumn}d=e}),this),l<o.length&&(d&&h(d,c()),a.add(o.splice(l).join(""))),t.sources.forEach((function(e){var n=t.sourceContentFor(e);null!=n&&(null!=i&&(e=r.join(i,e)),a.setSourceContent(e,n))})),a;function h(e,t){if(null===e||void 0===e.source)a.add(t);else{var n=i?r.join(i,e.source):e.source;a.add(new s(e.originalLine,e.originalColumn,n,t,e.name))}}},s.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[i]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},s.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[i]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r<n;r++)(t=this.children[r])[i]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},s.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[i]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},s.prototype.setSourceContent=function(e,t){this.sourceContents[r.toSetString(e)]=t},s.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][i]&&this.children[t].walkSourceContents(e);var s=Object.keys(this.sourceContents);for(t=0,n=s.length;t<n;t++)e(r.fromSetString(s[t]),this.sourceContents[s[t]])},s.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},s.prototype.toStringWithSourceMap=function(e){var r={code:"",line:1,column:0},n=new t(e),i=!1,s=null,a=null,o=null,l=null;return this.walk((function(e,t){r.code+=e,null!==t.source&&null!==t.line&&null!==t.column?(s===t.source&&a===t.line&&o===t.column&&l===t.name||n.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:r.line,column:r.column},name:t.name}),s=t.source,a=t.line,o=t.column,l=t.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var c=0,u=e.length;c<u;c++)10===e.charCodeAt(c)?(r.line++,r.column=0,c+1===u?(s=null,i=!1):i&&n.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:r.line,column:r.column},name:t.name})):r.column++})),this.walkSourceContents((function(e,t){n.setSourceContent(e,t)})),{code:r.code,map:n}},e.SourceNode=s}}),require_source_map=__commonJS({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js"(e){e.SourceMapGenerator=require_source_map_generator().SourceMapGenerator,e.SourceMapConsumer=require_source_map_consumer().SourceMapConsumer,e.SourceNode=require_source_node().SourceNode}}),require_util2=__commonJS({"../../node_modules/.pnpm/recast@0.23.1/node_modules/recast/lib/util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isTrailingCommaEnabled=e.getParentExportDeclaration=e.isExportDeclaration=e.fixFaultyLocations=e.getTrueLoc=e.composeSourceMaps=e.copyPos=e.comparePos=e.getUnionOfKeys=e.getOption=e.isBrowser=e.getLineTerminator=void 0;var t=require_tslib(),r=t.__importDefault(require("assert")),n=t.__importStar(require_main()).namedTypes,i=t.__importDefault(require_source_map()),s=i.default.SourceMapConsumer,a=i.default.SourceMapGenerator,o=Object.prototype.hasOwnProperty;function l(){return"undefined"!=typeof window&&void 0!==window.document}function c(e,t){return e.line-t.line||e.column-t.column}function u(e){return{line:e.line,column:e.column}}function p(e,t){e&&t&&(c(t.start,e.start)<0&&(e.start=t.start),c(e.end,t.end)<0&&(e.end=t.end))}function d(e){if(e)switch(e.type){case"ExportDeclaration":case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return!0}return!1}e.getLineTerminator=function(){return l()?"\n":require("os").EOL||"\n"},e.isBrowser=l,e.getOption=function(e,t,r){return e&&o.call(e,t)?e[t]:r},e.getUnionOfKeys=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r={},n=e.length,i=0;i<n;++i)for(var s=Object.keys(e[i]),a=s.length,o=0;o<a;++o)r[s[o]]=!0;return r},e.comparePos=c,e.copyPos=u,e.composeSourceMaps=function(e,t){if(!e)return t||null;if(!t)return e;var r=new s(e),n=new s(t),i=new a({file:t.file,sourceRoot:t.sourceRoot}),l={};return n.eachMapping((function(e){var t=r.originalPositionFor({line:e.originalLine,column:e.originalColumn}),n=t.source;if(null!==n){i.addMapping({source:n,original:u(t),generated:{line:e.generatedLine,column:e.generatedColumn},name:e.name});var s=r.sourceContentFor(n);s&&!o.call(l,n)&&(l[n]=s,i.setSourceContent(n,s))}})),i.toJSON()},e.getTrueLoc=function(e,t){if(!e.loc)return null;var r={start:e.loc.start,end:e.loc.end};function n(e){p(r,e.loc)}return e.declaration&&e.declaration.decorators&&d(e)&&e.declaration.decorators.forEach(n),c(r.start,r.end)<0&&(r.start=u(r.start),t.skipSpaces(r.start,!1,!0),c(r.start,r.end)<0&&(r.end=u(r.end),t.skipSpaces(r.end,!0,!0))),e.comments&&e.comments.forEach(n),r},e.fixFaultyLocations=function(e,t){var i=e.loc;if(i&&(i.start.line<1&&(i.start.line=1),i.end.line<1&&(i.end.line=1)),"File"===e.type&&(i.start=t.firstPos(),i.end=t.lastPos()),function(e,t){if("ForStatement"!==e.type)return;function r(e){for(var r=e&&e.loc,n=r&&r.start,i=r&&u(r.end);n&&i&&c(n,i)<0&&(t.prevPos(i),";"===t.charAt(i));)r.end.line=i.line,r.end.column=i.column}r(e.init),r(e.test),r(e.update)}(e,t),function(e,t){if("TemplateLiteral"!==e.type)return;if(0===e.quasis.length)return;if(e.loc){var n=u(e.loc.start);r.default.strictEqual(t.charAt(n),"`"),r.default.ok(t.nextPos(n));var i=e.quasis[0];c(i.loc.start,n)<0&&(i.loc.start=n);var s=u(e.loc.end);r.default.ok(t.prevPos(s)),r.default.strictEqual(t.charAt(s),"`");var a=e.quasis[e.quasis.length-1];c(s,a.loc.end)<0&&(a.loc.end=s)}e.expressions.forEach((function(n,i){var s=t.skipSpaces(n.loc.start,!0,!1);if(t.prevPos(s)&&"{"===t.charAt(s)&&t.prevPos(s)&&"$"===t.charAt(s)){var a=e.quasis[i];c(s,a.loc.end)<0&&(a.loc.end=s)}var o=t.skipSpaces(n.loc.end,!1,!1);if("}"===t.charAt(o)){r.default.ok(t.nextPos(o));var l=e.quasis[i+1];c(l.loc.start,o)<0&&(l.loc.start=o)}}))}(e,t),i&&e.decorators)e.decorators.forEach((function(e){p(i,e.loc)}));else if(e.declaration&&d(e)){e.declaration.loc=null;var s=e.declaration.decorators;s&&s.forEach((function(e){p(i,e.loc)}))}else if(n.MethodDefinition&&n.MethodDefinition.check(e)||n.Property.check(e)&&(e.method||e.shorthand))e.value.loc=null,n.FunctionExpression.check(e.value)&&(e.value.id=null);else if("ObjectTypeProperty"===e.type){var a=e.loc,o=a&&a.end;o&&(o=u(o),t.prevPos(o)&&","===t.charAt(o)&&(o=t.skipSpaces(o,!0,!0))&&(a.end=o))}},e.isExportDeclaration=d,e.getParentExportDeclaration=function(e){var t=e.getParentNode();return"declaration"===e.getName()&&d(t)?t:null},e.isTrailingCommaEnabled=function(e,t){var r=e.trailingComma;return"object"==typeof r?!!r[t]:!!r}}}),require_esprima2=__commonJS({"../../node_modules/.pnpm/esprima@4.0.1/node_modules/esprima/dist/esprima.js"(e,t){var r,n;r=e,n=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),i=r(3),s=r(8),a=r(15);function o(e,t,r){var a=null,o=function(e,t){r&&r(e,t),a&&a.visit(e,t)},l="function"==typeof r?o:null,c=!1;if(t){c="boolean"==typeof t.comment&&t.comment;var u="boolean"==typeof t.attachComment&&t.attachComment;(c||u)&&((a=new n.CommentHandler).attach=u,t.comment=!0,l=o)}var p,d=!1;t&&"string"==typeof t.sourceType&&(d="module"===t.sourceType),p=t&&"boolean"==typeof t.jsx&&t.jsx?new i.JSXParser(e,t,l):new s.Parser(e,t,l);var h=d?p.parseModule():p.parseScript();return c&&a&&(h.comments=a.comments),p.config.tokens&&(h.tokens=p.tokens),p.config.tolerant&&(h.errors=p.errorHandler.errors),h}t.parse=o,t.parseModule=function(e,t,r){var n=t||{};return n.sourceType="module",o(e,n,r)},t.parseScript=function(e,t,r){var n=t||{};return n.sourceType="script",o(e,n,r)},t.tokenize=function(e,t,r){var n,i=new a.Tokenizer(e,t);n=[];try{for(;;){var s=i.getNextToken();if(!s)break;r&&(s=r(s)),n.push(s)}}catch(e){i.errorHandler.tolerate(e)}return i.errorHandler.tolerant&&(n.errors=i.errors()),n};var l=r(2);t.Syntax=l.Syntax,t.version="4.0.1"},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),i=function(){function e(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return e.prototype.insertInnerComments=function(e,t){if(e.type===n.Syntax.BlockStatement&&0===e.body.length){for(var r=[],i=this.leading.length-1;i>=0;--i){var s=this.leading[i];t.end.offset>=s.start&&(r.unshift(s.comment),this.leading.splice(i,1),this.trailing.splice(i,1))}r.length&&(e.innerComments=r)}},e.prototype.findTrailingComments=function(e){var t=[];if(this.trailing.length>0){for(var r=this.trailing.length-1;r>=0;--r){var n=this.trailing[r];n.start>=e.end.offset&&t.unshift(n.comment)}return this.trailing.length=0,t}var i=this.stack[this.stack.length-1];if(i&&i.node.trailingComments){var s=i.node.trailingComments[0];s&&s.range[0]>=e.end.offset&&(t=i.node.trailingComments,delete i.node.trailingComments)}return t},e.prototype.findLeadingComments=function(e){for(var t,r=[];this.stack.length>0&&((s=this.stack[this.stack.length-1])&&s.start>=e.start.offset);)t=s.node,this.stack.pop();if(t){for(var n=(t.leadingComments?t.leadingComments.length:0)-1;n>=0;--n){var i=t.leadingComments[n];i.range[1]<=e.start.offset&&(r.unshift(i),t.leadingComments.splice(n,1))}return t.leadingComments&&0===t.leadingComments.length&&delete t.leadingComments,r}for(n=this.leading.length-1;n>=0;--n){var s;(s=this.leading[n]).start<=e.start.offset&&(r.unshift(s.comment),this.leading.splice(n,1))}return r},e.prototype.visitNode=function(e,t){if(!(e.type===n.Syntax.Program&&e.body.length>0)){this.insertInnerComments(e,t);var r=this.findTrailingComments(t),i=this.findLeadingComments(t);i.length>0&&(e.leadingComments=i),r.length>0&&(e.trailingComments=r),this.stack.push({node:e,start:t.start.offset})}},e.prototype.visitComment=function(e,t){var r="L"===e.type[0]?"Line":"Block",n={type:r,value:e.value};if(e.range&&(n.range=e.range),e.loc&&(n.loc=e.loc),this.comments.push(n),this.attach){var i={comment:{type:r,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(i.comment.loc=e.loc),e.type=r,this.leading.push(i),this.trailing.push(i)}},e.prototype.visit=function(e,t){"LineComment"===e.type||"BlockComment"===e.type?this.visitComment(e,t):this.attach&&this.visitNode(e,t)},e}();t.CommentHandler=i},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(e,t,r){var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var s=r(4),a=r(5),o=r(6),l=r(7),c=r(8),u=r(13),p=r(14);function d(e){var t;switch(e.type){case o.JSXSyntax.JSXIdentifier:t=e.name;break;case o.JSXSyntax.JSXNamespacedName:var r=e;t=d(r.namespace)+":"+d(r.name);break;case o.JSXSyntax.JSXMemberExpression:var n=e;t=d(n.object)+"."+d(n.property)}return t}u.TokenName[100]="JSXIdentifier",u.TokenName[101]="JSXText";var h=function(e){function t(t,r,n){return e.call(this,t,r,n)||this}return i(t,e),t.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(e){for(var t="&",r=!0,n=!1,i=!1,a=!1;!this.scanner.eof()&&r&&!n;){var o=this.scanner.source[this.scanner.index];if(o===e)break;if(n=";"===o,t+=o,++this.scanner.index,!n)switch(t.length){case 2:i="#"===o;break;case 3:i&&(r=(a="x"===o)||s.Character.isDecimalDigit(o.charCodeAt(0)),i=i&&!a);break;default:r=(r=r&&!(i&&!s.Character.isDecimalDigit(o.charCodeAt(0))))&&!(a&&!s.Character.isHexDigit(o.charCodeAt(0)))}}if(r&&n&&t.length>2){var l=t.substr(1,t.length-2);i&&l.length>1?t=String.fromCharCode(parseInt(l.substr(1),10)):a&&l.length>2?t=String.fromCharCode(parseInt("0"+l.substr(1),16)):i||a||!p.XHTMLEntities[l]||(t=p.XHTMLEntities[l])}return t},t.prototype.lexJSX=function(){var e=this.scanner.source.charCodeAt(this.scanner.index);if(60===e||62===e||47===e||58===e||61===e||123===e||125===e)return{type:7,value:o=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===e||39===e){for(var t=this.scanner.index,r=this.scanner.source[this.scanner.index++],n="";!this.scanner.eof()&&(l=this.scanner.source[this.scanner.index++])!==r;)n+="&"===l?this.scanXHTMLEntity(r):l;return{type:8,value:n,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(46===e){var i=this.scanner.source.charCodeAt(this.scanner.index+1),a=this.scanner.source.charCodeAt(this.scanner.index+2),o=46===i&&46===a?"...":".";return t=this.scanner.index,this.scanner.index+=o.length,{type:7,value:o,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(96===e)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(s.Character.isIdentifierStart(e)&&92!==e){for(t=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var l=this.scanner.source.charCodeAt(this.scanner.index);if(s.Character.isIdentifierPart(l)&&92!==l)++this.scanner.index;else{if(45!==l)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(t,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var e=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(e)),e},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var e=this.scanner.index,t="";!this.scanner.eof();){var r=this.scanner.source[this.scanner.index];if("{"===r||"<"===r)break;++this.scanner.index,t+=r,s.Character.isLineTerminator(r.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===r&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var n={type:101,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index};return t.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(n)),n},t.prototype.peekJSXToken=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.lexJSX();return this.scanner.restoreState(e),t},t.prototype.expectJSX=function(e){var t=this.nextJSXToken();7===t.type&&t.value===e||this.throwUnexpectedToken(t)},t.prototype.matchJSX=function(e){var t=this.peekJSXToken();return 7===t.type&&t.value===e},t.prototype.parseJSXIdentifier=function(){var e=this.createJSXNode(),t=this.nextJSXToken();return 100!==t.type&&this.throwUnexpectedToken(t),this.finalize(e,new a.JSXIdentifier(t.value))},t.prototype.parseJSXElementName=function(){var e=this.createJSXNode(),t=this.parseJSXIdentifier();if(this.matchJSX(":")){var r=t;this.expectJSX(":");var n=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXNamespacedName(r,n))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var i=t;this.expectJSX(".");var s=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXMemberExpression(i,s))}return t},t.prototype.parseJSXAttributeName=function(){var e,t=this.createJSXNode(),r=this.parseJSXIdentifier();if(this.matchJSX(":")){var n=r;this.expectJSX(":");var i=this.parseJSXIdentifier();e=this.finalize(t,new a.JSXNamespacedName(n,i))}else e=r;return e},t.prototype.parseJSXStringLiteralAttribute=function(){var e=this.createJSXNode(),t=this.nextJSXToken();8!==t.type&&this.throwUnexpectedToken(t);var r=this.getTokenRaw(t);return this.finalize(e,new l.Literal(t.value,r))},t.prototype.parseJSXExpressionAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new a.JSXExpressionContainer(t))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var e=this.createJSXNode(),t=this.parseJSXAttributeName(),r=null;return this.matchJSX("=")&&(this.expectJSX("="),r=this.parseJSXAttributeValue()),this.finalize(e,new a.JSXAttribute(t,r))},t.prototype.parseJSXSpreadAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new a.JSXSpreadAttribute(t))},t.prototype.parseJSXAttributes=function(){for(var e=[];!this.matchJSX("/")&&!this.matchJSX(">");){var t=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();e.push(t)}return e},t.prototype.parseJSXOpeningElement=function(){var e=this.createJSXNode();this.expectJSX("<");var t=this.parseJSXElementName(),r=this.parseJSXAttributes(),n=this.matchJSX("/");return n&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new a.JSXOpeningElement(t,n,r))},t.prototype.parseJSXBoundaryElement=function(){var e=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var t=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(e,new a.JSXClosingElement(t))}var r=this.parseJSXElementName(),n=this.parseJSXAttributes(),i=this.matchJSX("/");return i&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new a.JSXOpeningElement(r,i,n))},t.prototype.parseJSXEmptyExpression=function(){var e=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(e,new a.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var e,t=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(e=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),e=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(t,new a.JSXExpressionContainer(e))},t.prototype.parseJSXChildren=function(){for(var e=[];!this.scanner.eof();){var t=this.createJSXChildNode(),r=this.nextJSXText();if(r.start<r.end){var n=this.getTokenRaw(r),i=this.finalize(t,new a.JSXText(r.value,n));e.push(i)}if("{"!==this.scanner.source[this.scanner.index])break;var s=this.parseJSXExpressionContainer();e.push(s)}return e},t.prototype.parseComplexJSXElement=function(e){for(var t=[];!this.scanner.eof();){e.children=e.children.concat(this.parseJSXChildren());var r=this.createJSXChildNode(),n=this.parseJSXBoundaryElement();if(n.type===o.JSXSyntax.JSXOpeningElement){var i=n;if(i.selfClosing){var s=this.finalize(r,new a.JSXElement(i,[],null));e.children.push(s)}else t.push(e),e={node:r,opening:i,closing:null,children:[]}}if(n.type===o.JSXSyntax.JSXClosingElement){e.closing=n;var l=d(e.opening.name);if(l!==d(e.closing.name)&&this.tolerateError("Expected corresponding JSX closing tag for %0",l),!(t.length>0))break;s=this.finalize(e.node,new a.JSXElement(e.opening,e.children,e.closing)),(e=t[t.length-1]).children.push(s),t.pop()}}return e},t.prototype.parseJSXElement=function(){var e=this.createJSXNode(),t=this.parseJSXOpeningElement(),r=[],n=null;if(!t.selfClosing){var i=this.parseComplexJSXElement({node:e,opening:t,closing:n,children:r});r=i.children,n=i.closing}return this.finalize(e,new a.JSXElement(t,r,n))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var e=this.parseJSXElement();return this.finishJSX(),e},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match("<")},t}(c.Parser);t.JSXParser=h},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};t.Character={fromCodePoint:function(e){return e<65536?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&r.NonAsciiIdentifierStart.test(t.Character.fromCodePoint(e))},isIdentifierPart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&r.NonAsciiIdentifierPart.test(t.Character.fromCodePoint(e))},isDecimalDigit:function(e){return e>=48&&e<=57},isHexDigit:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},isOctalDigit:function(e){return e>=48&&e<=55}}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(6),i=function(e){this.type=n.JSXSyntax.JSXClosingElement,this.name=e};t.JSXClosingElement=i;var s=function(e,t,r){this.type=n.JSXSyntax.JSXElement,this.openingElement=e,this.children=t,this.closingElement=r};t.JSXElement=s;var a=function(){this.type=n.JSXSyntax.JSXEmptyExpression};t.JSXEmptyExpression=a;var o=function(e){this.type=n.JSXSyntax.JSXExpressionContainer,this.expression=e};t.JSXExpressionContainer=o;var l=function(e){this.type=n.JSXSyntax.JSXIdentifier,this.name=e};t.JSXIdentifier=l;var c=function(e,t){this.type=n.JSXSyntax.JSXMemberExpression,this.object=e,this.property=t};t.JSXMemberExpression=c;var u=function(e,t){this.type=n.JSXSyntax.JSXAttribute,this.name=e,this.value=t};t.JSXAttribute=u;var p=function(e,t){this.type=n.JSXSyntax.JSXNamespacedName,this.namespace=e,this.name=t};t.JSXNamespacedName=p;var d=function(e,t,r){this.type=n.JSXSyntax.JSXOpeningElement,this.name=e,this.selfClosing=t,this.attributes=r};t.JSXOpeningElement=d;var h=function(e){this.type=n.JSXSyntax.JSXSpreadAttribute,this.argument=e};t.JSXSpreadAttribute=h;var f=function(e,t){this.type=n.JSXSyntax.JSXText,this.value=e,this.raw=t};t.JSXText=f},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),i=function(e){this.type=n.Syntax.ArrayExpression,this.elements=e};t.ArrayExpression=i;var s=function(e){this.type=n.Syntax.ArrayPattern,this.elements=e};t.ArrayPattern=s;var a=function(e,t,r){this.type=n.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=r,this.async=!1};t.ArrowFunctionExpression=a;var o=function(e,t,r){this.type=n.Syntax.AssignmentExpression,this.operator=e,this.left=t,this.right=r};t.AssignmentExpression=o;var l=function(e,t){this.type=n.Syntax.AssignmentPattern,this.left=e,this.right=t};t.AssignmentPattern=l;var c=function(e,t,r){this.type=n.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=r,this.async=!0};t.AsyncArrowFunctionExpression=c;var u=function(e,t,r){this.type=n.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=r,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionDeclaration=u;var p=function(e,t,r){this.type=n.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=r,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionExpression=p;var d=function(e){this.type=n.Syntax.AwaitExpression,this.argument=e};t.AwaitExpression=d;var h=function(e,t,r){var i="||"===e||"&&"===e;this.type=i?n.Syntax.LogicalExpression:n.Syntax.BinaryExpression,this.operator=e,this.left=t,this.right=r};t.BinaryExpression=h;var f=function(e){this.type=n.Syntax.BlockStatement,this.body=e};t.BlockStatement=f;var m=function(e){this.type=n.Syntax.BreakStatement,this.label=e};t.BreakStatement=m;var y=function(e,t){this.type=n.Syntax.CallExpression,this.callee=e,this.arguments=t};t.CallExpression=y;var g=function(e,t){this.type=n.Syntax.CatchClause,this.param=e,this.body=t};t.CatchClause=g;var b=function(e){this.type=n.Syntax.ClassBody,this.body=e};t.ClassBody=b;var S=function(e,t,r){this.type=n.Syntax.ClassDeclaration,this.id=e,this.superClass=t,this.body=r};t.ClassDeclaration=S;var T=function(e,t,r){this.type=n.Syntax.ClassExpression,this.id=e,this.superClass=t,this.body=r};t.ClassExpression=T;var v=function(e,t){this.type=n.Syntax.MemberExpression,this.computed=!0,this.object=e,this.property=t};t.ComputedMemberExpression=v;var E=function(e,t,r){this.type=n.Syntax.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=r};t.ConditionalExpression=E;var x=function(e){this.type=n.Syntax.ContinueStatement,this.label=e};t.ContinueStatement=x;var _=function(){this.type=n.Syntax.DebuggerStatement};t.DebuggerStatement=_;var A=function(e,t){this.type=n.Syntax.ExpressionStatement,this.expression=e,this.directive=t};t.Directive=A;var P=function(e,t){this.type=n.Syntax.DoWhileStatement,this.body=e,this.test=t};t.DoWhileStatement=P;var w=function(){this.type=n.Syntax.EmptyStatement};t.EmptyStatement=w;var D=function(e){this.type=n.Syntax.ExportAllDeclaration,this.source=e};t.ExportAllDeclaration=D;var C=function(e){this.type=n.Syntax.ExportDefaultDeclaration,this.declaration=e};t.ExportDefaultDeclaration=C;var I=function(e,t,r){this.type=n.Syntax.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=r};t.ExportNamedDeclaration=I;var N=function(e,t){this.type=n.Syntax.ExportSpecifier,this.exported=t,this.local=e};t.ExportSpecifier=N;var k=function(e){this.type=n.Syntax.ExpressionStatement,this.expression=e};t.ExpressionStatement=k;var O=function(e,t,r){this.type=n.Syntax.ForInStatement,this.left=e,this.right=t,this.body=r,this.each=!1};t.ForInStatement=O;var F=function(e,t,r){this.type=n.Syntax.ForOfStatement,this.left=e,this.right=t,this.body=r};t.ForOfStatement=F;var L=function(e,t,r,i){this.type=n.Syntax.ForStatement,this.init=e,this.test=t,this.update=r,this.body=i};t.ForStatement=L;var j=function(e,t,r,i){this.type=n.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=r,this.generator=i,this.expression=!1,this.async=!1};t.FunctionDeclaration=j;var M=function(e,t,r,i){this.type=n.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=r,this.generator=i,this.expression=!1,this.async=!1};t.FunctionExpression=M;var B=function(e){this.type=n.Syntax.Identifier,this.name=e};t.Identifier=B;var R=function(e,t,r){this.type=n.Syntax.IfStatement,this.test=e,this.consequent=t,this.alternate=r};t.IfStatement=R;var q=function(e,t){this.type=n.Syntax.ImportDeclaration,this.specifiers=e,this.source=t};t.ImportDeclaration=q;var U=function(e){this.type=n.Syntax.ImportDefaultSpecifier,this.local=e};t.ImportDefaultSpecifier=U;var K=function(e){this.type=n.Syntax.ImportNamespaceSpecifier,this.local=e};t.ImportNamespaceSpecifier=K;var J=function(e,t){this.type=n.Syntax.ImportSpecifier,this.local=e,this.imported=t};t.ImportSpecifier=J;var V=function(e,t){this.type=n.Syntax.LabeledStatement,this.label=e,this.body=t};t.LabeledStatement=V;var W=function(e,t){this.type=n.Syntax.Literal,this.value=e,this.raw=t};t.Literal=W;var z=function(e,t){this.type=n.Syntax.MetaProperty,this.meta=e,this.property=t};t.MetaProperty=z;var Y=function(e,t,r,i,s){this.type=n.Syntax.MethodDefinition,this.key=e,this.computed=t,this.value=r,this.kind=i,this.static=s};t.MethodDefinition=Y;var X=function(e){this.type=n.Syntax.Program,this.body=e,this.sourceType="module"};t.Module=X;var $=function(e,t){this.type=n.Syntax.NewExpression,this.callee=e,this.arguments=t};t.NewExpression=$;var H=function(e){this.type=n.Syntax.ObjectExpression,this.properties=e};t.ObjectExpression=H;var G=function(e){this.type=n.Syntax.ObjectPattern,this.properties=e};t.ObjectPattern=G;var Q=function(e,t,r,i,s,a){this.type=n.Syntax.Property,this.key=t,this.computed=r,this.value=i,this.kind=e,this.method=s,this.shorthand=a};t.Property=Q;var Z=function(e,t,r,i){this.type=n.Syntax.Literal,this.value=e,this.raw=t,this.regex={pattern:r,flags:i}};t.RegexLiteral=Z;var ee=function(e){this.type=n.Syntax.RestElement,this.argument=e};t.RestElement=ee;var te=function(e){this.type=n.Syntax.ReturnStatement,this.argument=e};t.ReturnStatement=te;var re=function(e){this.type=n.Syntax.Program,this.body=e,this.sourceType="script"};t.Script=re;var ne=function(e){this.type=n.Syntax.SequenceExpression,this.expressions=e};t.SequenceExpression=ne;var ie=function(e){this.type=n.Syntax.SpreadElement,this.argument=e};t.SpreadElement=ie;var se=function(e,t){this.type=n.Syntax.MemberExpression,this.computed=!1,this.object=e,this.property=t};t.StaticMemberExpression=se;var ae=function(){this.type=n.Syntax.Super};t.Super=ae;var oe=function(e,t){this.type=n.Syntax.SwitchCase,this.test=e,this.consequent=t};t.SwitchCase=oe;var le=function(e,t){this.type=n.Syntax.SwitchStatement,this.discriminant=e,this.cases=t};t.SwitchStatement=le;var ce=function(e,t){this.type=n.Syntax.TaggedTemplateExpression,this.tag=e,this.quasi=t};t.TaggedTemplateExpression=ce;var ue=function(e,t){this.type=n.Syntax.TemplateElement,this.value=e,this.tail=t};t.TemplateElement=ue;var pe=function(e,t){this.type=n.Syntax.TemplateLiteral,this.quasis=e,this.expressions=t};t.TemplateLiteral=pe;var de=function(){this.type=n.Syntax.ThisExpression};t.ThisExpression=de;var he=function(e){this.type=n.Syntax.ThrowStatement,this.argument=e};t.ThrowStatement=he;var fe=function(e,t,r){this.type=n.Syntax.TryStatement,this.block=e,this.handler=t,this.finalizer=r};t.TryStatement=fe;var me=function(e,t){this.type=n.Syntax.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0};t.UnaryExpression=me;var ye=function(e,t,r){this.type=n.Syntax.UpdateExpression,this.operator=e,this.argument=t,this.prefix=r};t.UpdateExpression=ye;var ge=function(e,t){this.type=n.Syntax.VariableDeclaration,this.declarations=e,this.kind=t};t.VariableDeclaration=ge;var be=function(e,t){this.type=n.Syntax.VariableDeclarator,this.id=e,this.init=t};t.VariableDeclarator=be;var Se=function(e,t){this.type=n.Syntax.WhileStatement,this.test=e,this.body=t};t.WhileStatement=Se;var Te=function(e,t){this.type=n.Syntax.WithStatement,this.object=e,this.body=t};t.WithStatement=Te;var ve=function(e,t){this.type=n.Syntax.YieldExpression,this.argument=e,this.delegate=t};t.YieldExpression=ve},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(9),i=r(10),s=r(11),a=r(7),o=r(12),l=r(2),c=r(13),u="ArrowParameterPlaceHolder",p=function(){function e(e,t,r){void 0===t&&(t={}),this.config={range:"boolean"==typeof t.range&&t.range,loc:"boolean"==typeof t.loc&&t.loc,source:null,tokens:"boolean"==typeof t.tokens&&t.tokens,comment:"boolean"==typeof t.comment&&t.comment,tolerant:"boolean"==typeof t.tolerant&&t.tolerant},this.config.loc&&t.source&&null!==t.source&&(this.config.source=String(t.source)),this.delegate=r,this.errorHandler=new i.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new o.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return e.prototype.throwError=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.prototype.slice.call(arguments,1),s=e.replace(/%(\d)/g,(function(e,t){return n.assert(t<i.length,"Message reference must be in range"),i[t]})),a=this.lastMarker.index,o=this.lastMarker.line,l=this.lastMarker.column+1;throw this.errorHandler.createError(a,o,l,s)},e.prototype.tolerateError=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.prototype.slice.call(arguments,1),s=e.replace(/%(\d)/g,(function(e,t){return n.assert(t<i.length,"Message reference must be in range"),i[t]})),a=this.lastMarker.index,o=this.scanner.lineNumber,l=this.lastMarker.column+1;this.errorHandler.tolerateError(a,o,l,s)},e.prototype.unexpectedTokenError=function(e,t){var r,n=t||s.Messages.UnexpectedToken;if(e?(t||(n=2===e.type?s.Messages.UnexpectedEOS:3===e.type?s.Messages.UnexpectedIdentifier:6===e.type?s.Messages.UnexpectedNumber:8===e.type?s.Messages.UnexpectedString:10===e.type?s.Messages.UnexpectedTemplate:s.Messages.UnexpectedToken,4===e.type&&(this.scanner.isFutureReservedWord(e.value)?n=s.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(e.value)&&(n=s.Messages.StrictReservedWord))),r=e.value):r="ILLEGAL",n=n.replace("%0",r),e&&"number"==typeof e.lineNumber){var i=e.start,a=e.lineNumber,o=this.lastMarker.index-this.lastMarker.column,l=e.start-o+1;return this.errorHandler.createError(i,a,l,n)}return i=this.lastMarker.index,a=this.lastMarker.line,l=this.lastMarker.column+1,this.errorHandler.createError(i,a,l,n)},e.prototype.throwUnexpectedToken=function(e,t){throw this.unexpectedTokenError(e,t)},e.prototype.tolerateUnexpectedToken=function(e,t){this.errorHandler.tolerate(this.unexpectedTokenError(e,t))},e.prototype.collectComments=function(){if(this.config.comment){var e=this.scanner.scanComments();if(e.length>0&&this.delegate)for(var t=0;t<e.length;++t){var r=e[t],n=void 0;n={type:r.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(r.slice[0],r.slice[1])},this.config.range&&(n.range=r.range),this.config.loc&&(n.loc=r.loc);var i={start:{line:r.loc.start.line,column:r.loc.start.column,offset:r.range[0]},end:{line:r.loc.end.line,column:r.loc.end.column,offset:r.range[1]}};this.delegate(n,i)}}else this.scanner.scanComments()},e.prototype.getTokenRaw=function(e){return this.scanner.source.slice(e.start,e.end)},e.prototype.convertToken=function(e){var t={type:c.TokenName[e.type],value:this.getTokenRaw(e)};if(this.config.range&&(t.range=[e.start,e.end]),this.config.loc&&(t.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),9===e.type){var r=e.pattern,n=e.flags;t.regex={pattern:r,flags:n}}return t},e.prototype.nextToken=function(){var e=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var t=this.scanner.lex();return this.hasLineTerminator=e.lineNumber!==t.lineNumber,t&&this.context.strict&&3===t.type&&this.scanner.isStrictModeReservedWord(t.value)&&(t.type=4),this.lookahead=t,this.config.tokens&&2!==t.type&&this.tokens.push(this.convertToken(t)),e},e.prototype.nextRegexToken=function(){this.collectComments();var e=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(e))),this.lookahead=e,this.nextToken(),e},e.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},e.prototype.startNode=function(e,t){void 0===t&&(t=0);var r=e.start-e.lineStart,n=e.lineNumber;return r<0&&(r+=t,n--),{index:e.start,line:n,column:r}},e.prototype.finalize=function(e,t){if(this.config.range&&(t.range=[e.index,this.lastMarker.index]),this.config.loc&&(t.loc={start:{line:e.line,column:e.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(t.loc.source=this.config.source)),this.delegate){var r={start:{line:e.line,column:e.column,offset:e.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(t,r)}return t},e.prototype.expect=function(e){var t=this.nextToken();7===t.type&&t.value===e||this.throwUnexpectedToken(t)},e.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var e=this.lookahead;7===e.type&&","===e.value?this.nextToken():7===e.type&&";"===e.value?(this.nextToken(),this.tolerateUnexpectedToken(e)):this.tolerateUnexpectedToken(e,s.Messages.UnexpectedToken)}else this.expect(",")},e.prototype.expectKeyword=function(e){var t=this.nextToken();4===t.type&&t.value===e||this.throwUnexpectedToken(t)},e.prototype.match=function(e){return 7===this.lookahead.type&&this.lookahead.value===e},e.prototype.matchKeyword=function(e){return 4===this.lookahead.type&&this.lookahead.value===e},e.prototype.matchContextualKeyword=function(e){return 3===this.lookahead.type&&this.lookahead.value===e},e.prototype.matchAssign=function(){if(7!==this.lookahead.type)return!1;var e=this.lookahead.value;return"="===e||"*="===e||"**="===e||"/="===e||"%="===e||"+="===e||"-="===e||"<<="===e||">>="===e||">>>="===e||"&="===e||"^="===e||"|="===e},e.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,r=this.context.isAssignmentTarget,n=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var i=e.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=r,this.context.firstCoverInitializedNameError=n,i},e.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,r=this.context.isAssignmentTarget,n=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var i=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&r,this.context.firstCoverInitializedNameError=n||this.context.firstCoverInitializedNameError,i},e.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},e.prototype.parsePrimaryExpression=function(){var e,t,r,n=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),e=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(n,new a.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,s.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),r=this.getTokenRaw(t),e=this.finalize(n,new a.Literal(t.value,r));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),r=this.getTokenRaw(t),e=this.finalize(n,new a.Literal("true"===t.value,r));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),r=this.getTokenRaw(t),e=this.finalize(n,new a.Literal(null,r));break;case 10:e=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,e=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":e=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":e=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,t=this.nextRegexToken(),r=this.getTokenRaw(t),e=this.finalize(n,new a.RegexLiteral(t.regex,r,t.pattern,t.flags));break;default:e=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?e=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?e=this.finalize(n,new a.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?e=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),e=this.finalize(n,new a.ThisExpression)):e=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:e=this.throwUnexpectedToken(this.nextToken())}return e},e.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect("...");var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new a.SpreadElement(t))},e.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),t.push(null);else if(this.match("...")){var r=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),t.push(r)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(e,new a.ArrayExpression(t))},e.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,r=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var n=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=r,n},e.prototype.parsePropertyMethodFunction=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters(),n=this.parsePropertyMethod(r);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,r.params,n,!1))},e.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,r=this.context.await;this.context.allowYield=!1,this.context.await=!0;var n=this.parseFormalParameters(),i=this.parsePropertyMethod(n);return this.context.allowYield=t,this.context.await=r,this.finalize(e,new a.AsyncFunctionExpression(null,n.params,i))},e.prototype.parseObjectPropertyKey=function(){var e,t=this.createNode(),r=this.nextToken();switch(r.type){case 8:case 6:this.context.strict&&r.octal&&this.tolerateUnexpectedToken(r,s.Messages.StrictOctalLiteral);var n=this.getTokenRaw(r);e=this.finalize(t,new a.Literal(r.value,n));break;case 3:case 1:case 5:case 4:e=this.finalize(t,new a.Identifier(r.value));break;case 7:"["===r.value?(e=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):e=this.throwUnexpectedToken(r);break;default:e=this.throwUnexpectedToken(r)}return e},e.prototype.isPropertyKey=function(e,t){return e.type===l.Syntax.Identifier&&e.name===t||e.type===l.Syntax.Literal&&e.value===t},e.prototype.parseObjectProperty=function(e){var t,r=this.createNode(),n=this.lookahead,i=null,o=null,l=!1,c=!1,u=!1,p=!1;if(3===n.type){var d=n.value;this.nextToken(),l=this.match("["),i=(p=!(this.hasLineTerminator||"async"!==d||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(r,new a.Identifier(d))}else this.match("*")?this.nextToken():(l=this.match("["),i=this.parseObjectPropertyKey());var h=this.qualifiedPropertyName(this.lookahead);if(3===n.type&&!p&&"get"===n.value&&h)t="get",l=this.match("["),i=this.parseObjectPropertyKey(),this.context.allowYield=!1,o=this.parseGetterMethod();else if(3===n.type&&!p&&"set"===n.value&&h)t="set",l=this.match("["),i=this.parseObjectPropertyKey(),o=this.parseSetterMethod();else if(7===n.type&&"*"===n.value&&h)t="init",l=this.match("["),i=this.parseObjectPropertyKey(),o=this.parseGeneratorMethod(),c=!0;else if(i||this.throwUnexpectedToken(this.lookahead),t="init",this.match(":")&&!p)!l&&this.isPropertyKey(i,"__proto__")&&(e.value&&this.tolerateError(s.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),o=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))o=p?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),c=!0;else if(3===n.type)if(d=this.finalize(r,new a.Identifier(n.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),u=!0;var f=this.isolateCoverGrammar(this.parseAssignmentExpression);o=this.finalize(r,new a.AssignmentPattern(d,f))}else u=!0,o=d;else this.throwUnexpectedToken(this.nextToken());return this.finalize(r,new a.Property(t,i,l,o,c,u))},e.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect("{");for(var t=[],r={value:!1};!this.match("}");)t.push(this.parseObjectProperty(r)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(e,new a.ObjectExpression(t))},e.prototype.parseTemplateHead=function(){n.assert(this.lookahead.head,"Template literal must start with a template head");var e=this.createNode(),t=this.nextToken(),r=t.value,i=t.cooked;return this.finalize(e,new a.TemplateElement({raw:r,cooked:i},t.tail))},e.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),r=t.value,n=t.cooked;return this.finalize(e,new a.TemplateElement({raw:r,cooked:n},t.tail))},e.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],r=[],n=this.parseTemplateHead();for(r.push(n);!n.tail;)t.push(this.parseExpression()),n=this.parseTemplateElement(),r.push(n);return this.finalize(e,new a.TemplateLiteral(r,t))},e.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case l.Syntax.Identifier:case l.Syntax.MemberExpression:case l.Syntax.RestElement:case l.Syntax.AssignmentPattern:break;case l.Syntax.SpreadElement:e.type=l.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case l.Syntax.ArrayExpression:e.type=l.Syntax.ArrayPattern;for(var t=0;t<e.elements.length;t++)null!==e.elements[t]&&this.reinterpretExpressionAsPattern(e.elements[t]);break;case l.Syntax.ObjectExpression:for(e.type=l.Syntax.ObjectPattern,t=0;t<e.properties.length;t++)this.reinterpretExpressionAsPattern(e.properties[t].value);break;case l.Syntax.AssignmentExpression:e.type=l.Syntax.AssignmentPattern,delete e.operator,this.reinterpretExpressionAsPattern(e.left)}},e.prototype.parseGroupExpression=function(){var e;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),e={type:u,params:[],async:!1};else{var t=this.lookahead,r=[];if(this.match("..."))e=this.parseRestElement(r),this.expect(")"),this.match("=>")||this.expect("=>"),e={type:u,params:[e],async:!1};else{var n=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var i=[];for(this.context.isAssignmentTarget=!1,i.push(e);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var s=0;s<i.length;s++)this.reinterpretExpressionAsPattern(i[s]);n=!0,e={type:u,params:i,async:!1}}else if(this.match("...")){for(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),i.push(this.parseRestElement(r)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1,s=0;s<i.length;s++)this.reinterpretExpressionAsPattern(i[s]);n=!0,e={type:u,params:i,async:!1}}else i.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(n)break}n||(e=this.finalize(this.startNode(t),new a.SequenceExpression(i)))}if(!n){if(this.expect(")"),this.match("=>")&&(e.type===l.Syntax.Identifier&&"yield"===e.name&&(n=!0,e={type:u,params:[e],async:!1}),!n)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===l.Syntax.SequenceExpression)for(s=0;s<e.expressions.length;s++)this.reinterpretExpressionAsPattern(e.expressions[s]);else this.reinterpretExpressionAsPattern(e);var o=e.type===l.Syntax.SequenceExpression?e.expressions:[e];e={type:u,params:o,async:!1}}this.context.isBindingElement=!1}}}return e},e.prototype.parseArguments=function(){this.expect("(");var e=[];if(!this.match(")"))for(;;){var t=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(e.push(t),this.match(")"))break;if(this.expectCommaSeparator(),this.match(")"))break}return this.expect(")"),e},e.prototype.isIdentifierName=function(e){return 3===e.type||4===e.type||1===e.type||5===e.type},e.prototype.parseIdentifierName=function(){var e=this.createNode(),t=this.nextToken();return this.isIdentifierName(t)||this.throwUnexpectedToken(t),this.finalize(e,new a.Identifier(t.value))},e.prototype.parseNewExpression=function(){var e,t=this.createNode(),r=this.parseIdentifierName();if(n.assert("new"===r.name,"New expression must start with `new`"),this.match("."))if(this.nextToken(),3===this.lookahead.type&&this.context.inFunctionBody&&"target"===this.lookahead.value){var i=this.parseIdentifierName();e=new a.MetaProperty(r,i)}else this.throwUnexpectedToken(this.lookahead);else{var s=this.isolateCoverGrammar(this.parseLeftHandSideExpression),o=this.match("(")?this.parseArguments():[];e=new a.NewExpression(s,o),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(t,e)},e.prototype.parseAsyncArgument=function(){var e=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,e},e.prototype.parseAsyncArguments=function(){this.expect("(");var e=[];if(!this.match(")"))for(;;){var t=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(e.push(t),this.match(")"))break;if(this.expectCommaSeparator(),this.match(")"))break}return this.expect(")"),e},e.prototype.parseLeftHandSideExpressionAllowCall=function(){var e,t=this.lookahead,r=this.matchContextualKeyword("async"),n=this.context.allowIn;for(this.context.allowIn=!0,this.matchKeyword("super")&&this.context.inFunctionBody?(e=this.createNode(),this.nextToken(),e=this.finalize(e,new a.Super),this.match("(")||this.match(".")||this.match("[")||this.throwUnexpectedToken(this.lookahead)):e=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var i=this.parseIdentifierName();e=this.finalize(this.startNode(t),new a.StaticMemberExpression(e,i))}else if(this.match("(")){var s=r&&t.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var o=s?this.parseAsyncArguments():this.parseArguments();if(e=this.finalize(this.startNode(t),new a.CallExpression(e,o)),s&&this.match("=>")){for(var l=0;l<o.length;++l)this.reinterpretExpressionAsPattern(o[l]);e={type:u,params:o,async:!0}}}else if(this.match("["))this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("["),i=this.isolateCoverGrammar(this.parseExpression),this.expect("]"),e=this.finalize(this.startNode(t),new a.ComputedMemberExpression(e,i));else{if(10!==this.lookahead.type||!this.lookahead.head)break;var c=this.parseTemplateLiteral();e=this.finalize(this.startNode(t),new a.TaggedTemplateExpression(e,c))}return this.context.allowIn=n,e},e.prototype.parseSuper=function(){var e=this.createNode();return this.expectKeyword("super"),this.match("[")||this.match(".")||this.throwUnexpectedToken(this.lookahead),this.finalize(e,new a.Super)},e.prototype.parseLeftHandSideExpression=function(){n.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var e=this.startNode(this.lookahead),t=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var r=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),t=this.finalize(e,new a.ComputedMemberExpression(t,r))}else if(this.match("."))this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("."),r=this.parseIdentifierName(),t=this.finalize(e,new a.StaticMemberExpression(t,r));else{if(10!==this.lookahead.type||!this.lookahead.head)break;var i=this.parseTemplateLiteral();t=this.finalize(e,new a.TaggedTemplateExpression(t,i))}return t},e.prototype.parseUpdateExpression=function(){var e,t=this.lookahead;if(this.match("++")||this.match("--")){var r=this.startNode(t),n=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&e.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(s.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(s.Messages.InvalidLHSInAssignment);var i=!0;e=this.finalize(r,new a.UpdateExpression(n.value,e,i)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(e=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&7===this.lookahead.type&&(this.match("++")||this.match("--"))){this.context.strict&&e.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(s.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(s.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var o=this.nextToken().value;i=!1,e=this.finalize(this.startNode(t),new a.UpdateExpression(o,e,i))}return e},e.prototype.parseAwaitExpression=function(){var e=this.createNode();this.nextToken();var t=this.parseUnaryExpression();return this.finalize(e,new a.AwaitExpression(t))},e.prototype.parseUnaryExpression=function(){var e;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var t=this.startNode(this.lookahead),r=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),e=this.finalize(t,new a.UnaryExpression(r.value,e)),this.context.strict&&"delete"===e.operator&&e.argument.type===l.Syntax.Identifier&&this.tolerateError(s.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else e=this.context.await&&this.matchContextualKeyword("await")?this.parseAwaitExpression():this.parseUpdateExpression();return e},e.prototype.parseExponentiationExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseUnaryExpression);if(t.type!==l.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var r=t,n=this.isolateCoverGrammar(this.parseExponentiationExpression);t=this.finalize(this.startNode(e),new a.BinaryExpression("**",r,n))}return t},e.prototype.binaryPrecedence=function(e){var t=e.value;return 7===e.type?this.operatorPrecedence[t]||0:4===e.type&&("instanceof"===t||this.context.allowIn&&"in"===t)?7:0},e.prototype.parseBinaryExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseExponentiationExpression),r=this.lookahead,n=this.binaryPrecedence(r);if(n>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var i=[e,this.lookahead],s=t,o=this.isolateCoverGrammar(this.parseExponentiationExpression),l=[s,r.value,o],c=[n];!((n=this.binaryPrecedence(this.lookahead))<=0);){for(;l.length>2&&n<=c[c.length-1];){o=l.pop();var u=l.pop();c.pop(),s=l.pop(),i.pop();var p=this.startNode(i[i.length-1]);l.push(this.finalize(p,new a.BinaryExpression(u,s,o)))}l.push(this.nextToken().value),c.push(n),i.push(this.lookahead),l.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var d=l.length-1;t=l[d];for(var h=i.pop();d>1;){var f=i.pop(),m=h&&h.lineStart;p=this.startNode(f,m),u=l[d-1],t=this.finalize(p,new a.BinaryExpression(u,l[d-2],t)),d-=2,h=f}}return t},e.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var r=this.context.allowIn;this.context.allowIn=!0;var n=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=r,this.expect(":");var i=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new a.ConditionalExpression(t,n,i)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},e.prototype.checkPatternParam=function(e,t){switch(t.type){case l.Syntax.Identifier:this.validateParam(e,t,t.name);break;case l.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case l.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case l.Syntax.ArrayPattern:for(var r=0;r<t.elements.length;r++)null!==t.elements[r]&&this.checkPatternParam(e,t.elements[r]);break;case l.Syntax.ObjectPattern:for(r=0;r<t.properties.length;r++)this.checkPatternParam(e,t.properties[r].value)}e.simple=e.simple&&t instanceof a.Identifier},e.prototype.reinterpretAsCoverFormalsList=function(e){var t,r=[e],n=!1;switch(e.type){case l.Syntax.Identifier:break;case u:r=e.params,n=e.async;break;default:return null}t={simple:!0,paramSet:{}};for(var i=0;i<r.length;++i)(a=r[i]).type===l.Syntax.AssignmentPattern?a.right.type===l.Syntax.YieldExpression&&(a.right.argument&&this.throwUnexpectedToken(this.lookahead),a.right.type=l.Syntax.Identifier,a.right.name="yield",delete a.right.argument,delete a.right.delegate):n&&a.type===l.Syntax.Identifier&&"await"===a.name&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(t,a),r[i]=a;if(this.context.strict||!this.context.allowYield)for(i=0;i<r.length;++i){var a;(a=r[i]).type===l.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(t.message===s.Messages.StrictParamDupe){var o=this.context.strict?t.stricted:t.firstRestricted;this.throwUnexpectedToken(o,t.message)}return{simple:t.simple,params:r,stricted:t.stricted,firstRestricted:t.firstRestricted,message:t.message}},e.prototype.parseAssignmentExpression=function(){var e;if(!this.context.allowYield&&this.matchKeyword("yield"))e=this.parseYieldExpression();else{var t=this.lookahead,r=t;if(e=this.parseConditionalExpression(),3===r.type&&r.lineNumber===this.lookahead.lineNumber&&"async"===r.value&&(3===this.lookahead.type||this.matchKeyword("yield"))){var n=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(n),e={type:u,params:[n],async:!0}}if(e.type===u||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var i=e.async,o=this.reinterpretAsCoverFormalsList(e);if(o){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var c=this.context.strict,p=this.context.allowStrictDirective;this.context.allowStrictDirective=o.simple;var d=this.context.allowYield,h=this.context.await;this.context.allowYield=!0,this.context.await=i;var f=this.startNode(t);this.expect("=>");var m=void 0;if(this.match("{")){var y=this.context.allowIn;this.context.allowIn=!0,m=this.parseFunctionSourceElements(),this.context.allowIn=y}else m=this.isolateCoverGrammar(this.parseAssignmentExpression);var g=m.type!==l.Syntax.BlockStatement;this.context.strict&&o.firstRestricted&&this.throwUnexpectedToken(o.firstRestricted,o.message),this.context.strict&&o.stricted&&this.tolerateUnexpectedToken(o.stricted,o.message),e=i?this.finalize(f,new a.AsyncArrowFunctionExpression(o.params,m,g)):this.finalize(f,new a.ArrowFunctionExpression(o.params,m,g)),this.context.strict=c,this.context.allowStrictDirective=p,this.context.allowYield=d,this.context.await=h}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(s.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===l.Syntax.Identifier){var b=e;this.scanner.isRestrictedWord(b.name)&&this.tolerateUnexpectedToken(r,s.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(b.name)&&this.tolerateUnexpectedToken(r,s.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var S=(r=this.nextToken()).value,T=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new a.AssignmentExpression(S,e,T)),this.context.firstCoverInitializedNameError=null}}return e},e.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var r=[];for(r.push(t);2!==this.lookahead.type&&this.match(",");)this.nextToken(),r.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new a.SequenceExpression(r))}return t},e.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,s.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,s.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case"const":e=this.parseLexicalDeclaration({inFor:!1});break;case"function":e=this.parseFunctionDeclaration();break;case"class":e=this.parseClassDeclaration();break;case"let":e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement()}else e=this.parseStatement();return e},e.prototype.parseBlock=function(){var e=this.createNode();this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.finalize(e,new a.BlockStatement(t))},e.prototype.parseLexicalBinding=function(e,t){var r=this.createNode(),n=this.parsePattern([],e);this.context.strict&&n.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(s.Messages.StrictVarName);var i=null;return"const"===e?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),i=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(s.Messages.DeclarationMissingInitializer,"const")):(!t.inFor&&n.type!==l.Syntax.Identifier||this.match("="))&&(this.expect("="),i=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(r,new a.VariableDeclarator(n,i))},e.prototype.parseBindingList=function(e,t){for(var r=[this.parseLexicalBinding(e,t)];this.match(",");)this.nextToken(),r.push(this.parseLexicalBinding(e,t));return r},e.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),3===t.type||7===t.type&&"["===t.value||7===t.type&&"{"===t.value||4===t.type&&"let"===t.value||4===t.type&&"yield"===t.value},e.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),r=this.nextToken().value;n.assert("let"===r||"const"===r,"Lexical declaration must be either let or const");var i=this.parseBindingList(r,e);return this.consumeSemicolon(),this.finalize(t,new a.VariableDeclaration(i,r))},e.prototype.parseBindingRestElement=function(e,t){var r=this.createNode();this.expect("...");var n=this.parsePattern(e,t);return this.finalize(r,new a.RestElement(n))},e.prototype.parseArrayPattern=function(e,t){var r=this.createNode();this.expect("[");for(var n=[];!this.match("]");)if(this.match(","))this.nextToken(),n.push(null);else{if(this.match("...")){n.push(this.parseBindingRestElement(e,t));break}n.push(this.parsePatternWithDefault(e,t)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(r,new a.ArrayPattern(n))},e.prototype.parsePropertyPattern=function(e,t){var r,n,i=this.createNode(),s=!1,o=!1;if(3===this.lookahead.type){var l=this.lookahead;r=this.parseVariableIdentifier();var c=this.finalize(i,new a.Identifier(l.value));if(this.match("=")){e.push(l),o=!0,this.nextToken();var u=this.parseAssignmentExpression();n=this.finalize(this.startNode(l),new a.AssignmentPattern(c,u))}else this.match(":")?(this.expect(":"),n=this.parsePatternWithDefault(e,t)):(e.push(l),o=!0,n=c)}else s=this.match("["),r=this.parseObjectPropertyKey(),this.expect(":"),n=this.parsePatternWithDefault(e,t);return this.finalize(i,new a.Property("init",r,s,n,!1,o))},e.prototype.parseObjectPattern=function(e,t){var r=this.createNode(),n=[];for(this.expect("{");!this.match("}");)n.push(this.parsePropertyPattern(e,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(r,new a.ObjectPattern(n))},e.prototype.parsePattern=function(e,t){var r;return this.match("[")?r=this.parseArrayPattern(e,t):this.match("{")?r=this.parseObjectPattern(e,t):(!this.matchKeyword("let")||"const"!==t&&"let"!==t||this.tolerateUnexpectedToken(this.lookahead,s.Messages.LetInLexicalBinding),e.push(this.lookahead),r=this.parseVariableIdentifier(t)),r},e.prototype.parsePatternWithDefault=function(e,t){var r=this.lookahead,n=this.parsePattern(e,t);if(this.match("=")){this.nextToken();var i=this.context.allowYield;this.context.allowYield=!0;var s=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=i,n=this.finalize(this.startNode(r),new a.AssignmentPattern(n,s))}return n},e.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),r=this.nextToken();return 4===r.type&&"yield"===r.value?this.context.strict?this.tolerateUnexpectedToken(r,s.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(r):3!==r.type?this.context.strict&&4===r.type&&this.scanner.isStrictModeReservedWord(r.value)?this.tolerateUnexpectedToken(r,s.Messages.StrictReservedWord):(this.context.strict||"let"!==r.value||"var"!==e)&&this.throwUnexpectedToken(r):(this.context.isModule||this.context.await)&&3===r.type&&"await"===r.value&&this.tolerateUnexpectedToken(r),this.finalize(t,new a.Identifier(r.value))},e.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),r=this.parsePattern([],"var");this.context.strict&&r.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(r.name)&&this.tolerateError(s.Messages.StrictVarName);var n=null;return this.match("=")?(this.nextToken(),n=this.isolateCoverGrammar(this.parseAssignmentExpression)):r.type===l.Syntax.Identifier||e.inFor||this.expect("="),this.finalize(t,new a.VariableDeclarator(r,n))},e.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},r=[];for(r.push(this.parseVariableDeclaration(t));this.match(",");)this.nextToken(),r.push(this.parseVariableDeclaration(t));return r},e.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword("var");var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new a.VariableDeclaration(t,"var"))},e.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(";"),this.finalize(e,new a.EmptyStatement)},e.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new a.ExpressionStatement(t))},e.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(s.Messages.StrictFunction),this.parseStatement()},e.prototype.parseIfStatement=function(){var e,t=this.createNode(),r=null;this.expectKeyword("if"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new a.EmptyStatement)):(this.expect(")"),e=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),r=this.parseIfClause())),this.finalize(t,new a.IfStatement(n,e,r))},e.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword("do");var t=this.context.inIteration;this.context.inIteration=!0;var r=this.parseStatement();this.context.inIteration=t,this.expectKeyword("while"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(e,new a.DoWhileStatement(r,n))},e.prototype.parseWhileStatement=function(){var e,t=this.createNode();this.expectKeyword("while"),this.expect("(");var r=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new a.EmptyStatement);else{this.expect(")");var n=this.context.inIteration;this.context.inIteration=!0,e=this.parseStatement(),this.context.inIteration=n}return this.finalize(t,new a.WhileStatement(r,e))},e.prototype.parseForStatement=function(){var e,t,r,n=null,i=null,o=null,c=!0,u=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){n=this.createNode(),this.nextToken();var p=this.context.allowIn;this.context.allowIn=!1;var d=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=p,1===d.length&&this.matchKeyword("in")){var h=d[0];h.init&&(h.id.type===l.Syntax.ArrayPattern||h.id.type===l.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(s.Messages.ForInOfLoopInitializer,"for-in"),n=this.finalize(n,new a.VariableDeclaration(d,"var")),this.nextToken(),e=n,t=this.parseExpression(),n=null}else 1===d.length&&null===d[0].init&&this.matchContextualKeyword("of")?(n=this.finalize(n,new a.VariableDeclaration(d,"var")),this.nextToken(),e=n,t=this.parseAssignmentExpression(),n=null,c=!1):(n=this.finalize(n,new a.VariableDeclaration(d,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){n=this.createNode();var f=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(p=this.context.allowIn,this.context.allowIn=!1,d=this.parseBindingList(f,{inFor:!0}),this.context.allowIn=p,1===d.length&&null===d[0].init&&this.matchKeyword("in")?(n=this.finalize(n,new a.VariableDeclaration(d,f)),this.nextToken(),e=n,t=this.parseExpression(),n=null):1===d.length&&null===d[0].init&&this.matchContextualKeyword("of")?(n=this.finalize(n,new a.VariableDeclaration(d,f)),this.nextToken(),e=n,t=this.parseAssignmentExpression(),n=null,c=!1):(this.consumeSemicolon(),n=this.finalize(n,new a.VariableDeclaration(d,f)))):(n=this.finalize(n,new a.Identifier(f)),this.nextToken(),e=n,t=this.parseExpression(),n=null)}else{var m=this.lookahead;if(p=this.context.allowIn,this.context.allowIn=!1,n=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=p,this.matchKeyword("in"))this.context.isAssignmentTarget&&n.type!==l.Syntax.AssignmentExpression||this.tolerateError(s.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(n),e=n,t=this.parseExpression(),n=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&n.type!==l.Syntax.AssignmentExpression||this.tolerateError(s.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(n),e=n,t=this.parseAssignmentExpression(),n=null,c=!1;else{if(this.match(",")){for(var y=[n];this.match(",");)this.nextToken(),y.push(this.isolateCoverGrammar(this.parseAssignmentExpression));n=this.finalize(this.startNode(m),new a.SequenceExpression(y))}this.expect(";")}}if(void 0===e&&(this.match(";")||(i=this.parseExpression()),this.expect(";"),this.match(")")||(o=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),r=this.finalize(this.createNode(),new a.EmptyStatement);else{this.expect(")");var g=this.context.inIteration;this.context.inIteration=!0,r=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=g}return void 0===e?this.finalize(u,new a.ForStatement(n,i,o,r)):c?this.finalize(u,new a.ForInStatement(e,t,r)):this.finalize(u,new a.ForOfStatement(e,t,r))},e.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword("continue");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var r=this.parseVariableIdentifier();t=r;var n="$"+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,n)||this.throwError(s.Messages.UnknownLabel,r.name)}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.throwError(s.Messages.IllegalContinue),this.finalize(e,new a.ContinueStatement(t))},e.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword("break");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var r=this.parseVariableIdentifier(),n="$"+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,n)||this.throwError(s.Messages.UnknownLabel,r.name),t=r}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.context.inSwitch||this.throwError(s.Messages.IllegalBreak),this.finalize(e,new a.BreakStatement(t))},e.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(s.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword("return");var t=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new a.ReturnStatement(t))},e.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(s.Messages.StrictModeWith);var e,t=this.createNode();this.expectKeyword("with"),this.expect("(");var r=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new a.EmptyStatement)):(this.expect(")"),e=this.parseStatement()),this.finalize(t,new a.WithStatement(r,e))},e.prototype.parseSwitchCase=function(){var e,t=this.createNode();this.matchKeyword("default")?(this.nextToken(),e=null):(this.expectKeyword("case"),e=this.parseExpression()),this.expect(":");for(var r=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)r.push(this.parseStatementListItem());return this.finalize(t,new a.SwitchCase(e,r))},e.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword("switch"),this.expect("(");var t=this.parseExpression();this.expect(")");var r=this.context.inSwitch;this.context.inSwitch=!0;var n=[],i=!1;for(this.expect("{");!this.match("}");){var o=this.parseSwitchCase();null===o.test&&(i&&this.throwError(s.Messages.MultipleDefaultsInSwitch),i=!0),n.push(o)}return this.expect("}"),this.context.inSwitch=r,this.finalize(e,new a.SwitchStatement(t,n))},e.prototype.parseLabelledStatement=function(){var e,t=this.createNode(),r=this.parseExpression();if(r.type===l.Syntax.Identifier&&this.match(":")){this.nextToken();var n=r,i="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)&&this.throwError(s.Messages.Redeclaration,"Label",n.name),this.context.labelSet[i]=!0;var o=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),o=this.parseClassDeclaration();else if(this.matchKeyword("function")){var c=this.lookahead,u=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(c,s.Messages.StrictFunction):u.generator&&this.tolerateUnexpectedToken(c,s.Messages.GeneratorInLegacyContext),o=u}else o=this.parseStatement();delete this.context.labelSet[i],e=new a.LabeledStatement(n,o)}else this.consumeSemicolon(),e=new a.ExpressionStatement(r);return this.finalize(t,e)},e.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(s.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new a.ThrowStatement(t))},e.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var t=[],r=this.parsePattern(t),n={},i=0;i<t.length;i++){var o="$"+t[i].value;Object.prototype.hasOwnProperty.call(n,o)&&this.tolerateError(s.Messages.DuplicateBinding,t[i].value),n[o]=!0}this.context.strict&&r.type===l.Syntax.Identifier&&this.scanner.isRestrictedWord(r.name)&&this.tolerateError(s.Messages.StrictCatchVariable),this.expect(")");var c=this.parseBlock();return this.finalize(e,new a.CatchClause(r,c))},e.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},e.prototype.parseTryStatement=function(){var e=this.createNode();this.expectKeyword("try");var t=this.parseBlock(),r=this.matchKeyword("catch")?this.parseCatchClause():null,n=this.matchKeyword("finally")?this.parseFinallyClause():null;return r||n||this.throwError(s.Messages.NoCatchOrFinally),this.finalize(e,new a.TryStatement(t,r,n))},e.prototype.parseDebuggerStatement=function(){var e=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(e,new a.DebuggerStatement)},e.prototype.parseStatement=function(){var e;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:e=this.parseExpressionStatement();break;case 7:var t=this.lookahead.value;e="{"===t?this.parseBlock():"("===t?this.parseExpressionStatement():";"===t?this.parseEmptyStatement():this.parseExpressionStatement();break;case 3:e=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":e=this.parseBreakStatement();break;case"continue":e=this.parseContinueStatement();break;case"debugger":e=this.parseDebuggerStatement();break;case"do":e=this.parseDoWhileStatement();break;case"for":e=this.parseForStatement();break;case"function":e=this.parseFunctionDeclaration();break;case"if":e=this.parseIfStatement();break;case"return":e=this.parseReturnStatement();break;case"switch":e=this.parseSwitchStatement();break;case"throw":e=this.parseThrowStatement();break;case"try":e=this.parseTryStatement();break;case"var":e=this.parseVariableStatement();break;case"while":e=this.parseWhileStatement();break;case"with":e=this.parseWithStatement();break;default:e=this.parseExpressionStatement()}break;default:e=this.throwUnexpectedToken(this.lookahead)}return e},e.prototype.parseFunctionSourceElements=function(){var e=this.createNode();this.expect("{");var t=this.parseDirectivePrologues(),r=this.context.labelSet,n=this.context.inIteration,i=this.context.inSwitch,s=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;2!==this.lookahead.type&&!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=r,this.context.inIteration=n,this.context.inSwitch=i,this.context.inFunctionBody=s,this.finalize(e,new a.BlockStatement(t))},e.prototype.validateParam=function(e,t,r){var n="$"+r;this.context.strict?(this.scanner.isRestrictedWord(r)&&(e.stricted=t,e.message=s.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(e.paramSet,n)&&(e.stricted=t,e.message=s.Messages.StrictParamDupe)):e.firstRestricted||(this.scanner.isRestrictedWord(r)?(e.firstRestricted=t,e.message=s.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(r)?(e.firstRestricted=t,e.message=s.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(e.paramSet,n)&&(e.stricted=t,e.message=s.Messages.StrictParamDupe)),"function"==typeof Object.defineProperty?Object.defineProperty(e.paramSet,n,{value:!0,enumerable:!0,writable:!0,configurable:!0}):e.paramSet[n]=!0},e.prototype.parseRestElement=function(e){var t=this.createNode();this.expect("...");var r=this.parsePattern(e);return this.match("=")&&this.throwError(s.Messages.DefaultRestParameter),this.match(")")||this.throwError(s.Messages.ParameterAfterRestParameter),this.finalize(t,new a.RestElement(r))},e.prototype.parseFormalParameter=function(e){for(var t=[],r=this.match("...")?this.parseRestElement(t):this.parsePatternWithDefault(t),n=0;n<t.length;n++)this.validateParam(e,t[n],t[n].value);e.simple=e.simple&&r instanceof a.Identifier,e.params.push(r)},e.prototype.parseFormalParameters=function(e){var t;if(t={simple:!0,params:[],firstRestricted:e},this.expect("("),!this.match(")"))for(t.paramSet={};2!==this.lookahead.type&&(this.parseFormalParameter(t),!this.match(")"))&&(this.expect(","),!this.match(")")););return this.expect(")"),{simple:t.simple,params:t.params,stricted:t.stricted,firstRestricted:t.firstRestricted,message:t.message}},e.prototype.matchAsyncFunction=function(){var e=this.matchContextualKeyword("async");if(e){var t=this.scanner.saveState();this.scanner.scanComments();var r=this.scanner.lex();this.scanner.restoreState(t),e=t.lineNumber===r.lineNumber&&4===r.type&&"function"===r.value}return e},e.prototype.parseFunctionDeclaration=function(e){var t=this.createNode(),r=this.matchContextualKeyword("async");r&&this.nextToken(),this.expectKeyword("function");var n,i=!r&&this.match("*");i&&this.nextToken();var o=null,l=null;if(!e||!this.match("(")){var c=this.lookahead;o=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(c.value)&&this.tolerateUnexpectedToken(c,s.Messages.StrictFunctionName):this.scanner.isRestrictedWord(c.value)?(l=c,n=s.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(c.value)&&(l=c,n=s.Messages.StrictReservedWord)}var u=this.context.await,p=this.context.allowYield;this.context.await=r,this.context.allowYield=!i;var d=this.parseFormalParameters(l),h=d.params,f=d.stricted;l=d.firstRestricted,d.message&&(n=d.message);var m=this.context.strict,y=this.context.allowStrictDirective;this.context.allowStrictDirective=d.simple;var g=this.parseFunctionSourceElements();return this.context.strict&&l&&this.throwUnexpectedToken(l,n),this.context.strict&&f&&this.tolerateUnexpectedToken(f,n),this.context.strict=m,this.context.allowStrictDirective=y,this.context.await=u,this.context.allowYield=p,r?this.finalize(t,new a.AsyncFunctionDeclaration(o,h,g)):this.finalize(t,new a.FunctionDeclaration(o,h,g,i))},e.prototype.parseFunctionExpression=function(){var e=this.createNode(),t=this.matchContextualKeyword("async");t&&this.nextToken(),this.expectKeyword("function");var r,n=!t&&this.match("*");n&&this.nextToken();var i,o=null,l=this.context.await,c=this.context.allowYield;if(this.context.await=t,this.context.allowYield=!n,!this.match("(")){var u=this.lookahead;o=this.context.strict||n||!this.matchKeyword("yield")?this.parseVariableIdentifier():this.parseIdentifierName(),this.context.strict?this.scanner.isRestrictedWord(u.value)&&this.tolerateUnexpectedToken(u,s.Messages.StrictFunctionName):this.scanner.isRestrictedWord(u.value)?(i=u,r=s.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(u.value)&&(i=u,r=s.Messages.StrictReservedWord)}var p=this.parseFormalParameters(i),d=p.params,h=p.stricted;i=p.firstRestricted,p.message&&(r=p.message);var f=this.context.strict,m=this.context.allowStrictDirective;this.context.allowStrictDirective=p.simple;var y=this.parseFunctionSourceElements();return this.context.strict&&i&&this.throwUnexpectedToken(i,r),this.context.strict&&h&&this.tolerateUnexpectedToken(h,r),this.context.strict=f,this.context.allowStrictDirective=m,this.context.await=l,this.context.allowYield=c,t?this.finalize(e,new a.AsyncFunctionExpression(o,d,y)):this.finalize(e,new a.FunctionExpression(o,d,y,n))},e.prototype.parseDirective=function(){var e=this.lookahead,t=this.createNode(),r=this.parseExpression(),n=r.type===l.Syntax.Literal?this.getTokenRaw(e).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(t,n?new a.Directive(r,n):new a.ExpressionStatement(r))},e.prototype.parseDirectivePrologues=function(){for(var e=null,t=[];;){var r=this.lookahead;if(8!==r.type)break;var n=this.parseDirective();t.push(n);var i=n.directive;if("string"!=typeof i)break;"use strict"===i?(this.context.strict=!0,e&&this.tolerateUnexpectedToken(e,s.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(r,s.Messages.IllegalLanguageModeDirective)):!e&&r.octal&&(e=r)}return t},e.prototype.qualifiedPropertyName=function(e){switch(e.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return"["===e.value}return!1},e.prototype.parseGetterMethod=function(){var e=this.createNode(),t=!1,r=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();n.params.length>0&&this.tolerateError(s.Messages.BadGetterArity);var i=this.parsePropertyMethod(n);return this.context.allowYield=r,this.finalize(e,new a.FunctionExpression(null,n.params,i,t))},e.prototype.parseSetterMethod=function(){var e=this.createNode(),t=!1,r=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();1!==n.params.length?this.tolerateError(s.Messages.BadSetterArity):n.params[0]instanceof a.RestElement&&this.tolerateError(s.Messages.BadSetterRestParameter);var i=this.parsePropertyMethod(n);return this.context.allowYield=r,this.finalize(e,new a.FunctionExpression(null,n.params,i,t))},e.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters();this.context.allowYield=!1;var n=this.parsePropertyMethod(r);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,r.params,n,!0))},e.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e="["===t||"("===t||"{"===t||"+"===t||"-"===t||"!"===t||"~"===t||"++"===t||"--"===t||"/"===t||"/="===t;break;case 4:e="class"===t||"delete"===t||"function"===t||"let"===t||"new"===t||"super"===t||"this"===t||"typeof"===t||"void"===t||"yield"===t}return e},e.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword("yield");var t=null,r=!1;if(!this.hasLineTerminator){var n=this.context.allowYield;this.context.allowYield=!1,(r=this.match("*"))?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=n}return this.finalize(e,new a.YieldExpression(t,r))},e.prototype.parseClassElement=function(e){var t=this.lookahead,r=this.createNode(),n="",i=null,o=null,l=!1,c=!1,u=!1,p=!1;if(this.match("*"))this.nextToken();else if(l=this.match("["),"static"===(i=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,u=!0,l=this.match("["),this.match("*")?this.nextToken():i=this.parseObjectPropertyKey()),3===t.type&&!this.hasLineTerminator&&"async"===t.value){var d=this.lookahead.value;":"!==d&&"("!==d&&"*"!==d&&(p=!0,t=this.lookahead,i=this.parseObjectPropertyKey(),3===t.type&&"constructor"===t.value&&this.tolerateUnexpectedToken(t,s.Messages.ConstructorIsAsync))}var h=this.qualifiedPropertyName(this.lookahead);return 3===t.type?"get"===t.value&&h?(n="get",l=this.match("["),i=this.parseObjectPropertyKey(),this.context.allowYield=!1,o=this.parseGetterMethod()):"set"===t.value&&h&&(n="set",l=this.match("["),i=this.parseObjectPropertyKey(),o=this.parseSetterMethod()):7===t.type&&"*"===t.value&&h&&(n="init",l=this.match("["),i=this.parseObjectPropertyKey(),o=this.parseGeneratorMethod(),c=!0),!n&&i&&this.match("(")&&(n="init",o=p?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),c=!0),n||this.throwUnexpectedToken(this.lookahead),"init"===n&&(n="method"),l||(u&&this.isPropertyKey(i,"prototype")&&this.throwUnexpectedToken(t,s.Messages.StaticPrototype),!u&&this.isPropertyKey(i,"constructor")&&(("method"!==n||!c||o&&o.generator)&&this.throwUnexpectedToken(t,s.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,s.Messages.DuplicateConstructor):e.value=!0,n="constructor")),this.finalize(r,new a.MethodDefinition(i,l,o,n,u))},e.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():e.push(this.parseClassElement(t));return this.expect("}"),e},e.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new a.ClassBody(t))},e.prototype.parseClassDeclaration=function(e){var t=this.createNode(),r=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var n=e&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),i=null;this.matchKeyword("extends")&&(this.nextToken(),i=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var s=this.parseClassBody();return this.context.strict=r,this.finalize(t,new a.ClassDeclaration(n,i,s))},e.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var r=3===this.lookahead.type?this.parseVariableIdentifier():null,n=null;this.matchKeyword("extends")&&(this.nextToken(),n=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var i=this.parseClassBody();return this.context.strict=t,this.finalize(e,new a.ClassExpression(r,n,i))},e.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new a.Module(t))},e.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new a.Script(t))},e.prototype.parseModuleSpecifier=function(){var e=this.createNode();8!==this.lookahead.type&&this.throwError(s.Messages.InvalidModuleSpecifier);var t=this.nextToken(),r=this.getTokenRaw(t);return this.finalize(e,new a.Literal(t.value,r))},e.prototype.parseImportSpecifier=function(){var e,t,r=this.createNode();return 3===this.lookahead.type?(t=e=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),t=this.parseVariableIdentifier())):(t=e=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),t=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(r,new a.ImportSpecifier(t,e))},e.prototype.parseNamedImports=function(){this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),e},e.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new a.ImportDefaultSpecifier(t))},e.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(s.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new a.ImportNamespaceSpecifier(t))},e.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(s.Messages.IllegalImportDeclaration);var e,t=this.createNode();this.expectKeyword("import");var r=[];if(8===this.lookahead.type)e=this.parseModuleSpecifier();else{if(this.match("{")?r=r.concat(this.parseNamedImports()):this.match("*")?r.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(r.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?r.push(this.parseImportNamespaceSpecifier()):this.match("{")?r=r.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var n=this.lookahead.value?s.Messages.UnexpectedToken:s.Messages.MissingFromClause;this.throwError(n,this.lookahead.value)}this.nextToken(),e=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(t,new a.ImportDeclaration(r,e))},e.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),r=t;return this.matchContextualKeyword("as")&&(this.nextToken(),r=this.parseIdentifierName()),this.finalize(e,new a.ExportSpecifier(t,r))},e.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(s.Messages.IllegalExportDeclaration);var e,t=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var r=this.parseFunctionDeclaration(!0);e=this.finalize(t,new a.ExportDefaultDeclaration(r))}else this.matchKeyword("class")?(r=this.parseClassDeclaration(!0),e=this.finalize(t,new a.ExportDefaultDeclaration(r))):this.matchContextualKeyword("async")?(r=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),e=this.finalize(t,new a.ExportDefaultDeclaration(r))):(this.matchContextualKeyword("from")&&this.throwError(s.Messages.UnexpectedToken,this.lookahead.value),r=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),e=this.finalize(t,new a.ExportDefaultDeclaration(r)));else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var n=this.lookahead.value?s.Messages.UnexpectedToken:s.Messages.MissingFromClause;this.throwError(n,this.lookahead.value)}this.nextToken();var i=this.parseModuleSpecifier();this.consumeSemicolon(),e=this.finalize(t,new a.ExportAllDeclaration(i))}else if(4===this.lookahead.type){switch(r=void 0,this.lookahead.value){case"let":case"const":r=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":r=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}e=this.finalize(t,new a.ExportNamedDeclaration(r,[],null))}else if(this.matchAsyncFunction())r=this.parseFunctionDeclaration(),e=this.finalize(t,new a.ExportNamedDeclaration(r,[],null));else{var o=[],l=null,c=!1;for(this.expect("{");!this.match("}");)c=c||this.matchKeyword("default"),o.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),l=this.parseModuleSpecifier(),this.consumeSemicolon()):c?(n=this.lookahead.value?s.Messages.UnexpectedToken:s.Messages.MissingFromClause,this.throwError(n,this.lookahead.value)):this.consumeSemicolon(),e=this.finalize(t,new a.ExportNamedDeclaration(null,o,l))}return e},e}();t.Parser=p},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.assert=function(e,t){if(!e)throw new Error("ASSERT: "+t)}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.errors=[],this.tolerant=!1}return e.prototype.recordError=function(e){this.errors.push(e)},e.prototype.tolerate=function(e){if(!this.tolerant)throw e;this.recordError(e)},e.prototype.constructError=function(e,t){var r=new Error(e);try{throw r}catch(e){Object.create&&Object.defineProperty&&(r=Object.create(e),Object.defineProperty(r,"column",{value:t}))}return r},e.prototype.createError=function(e,t,r,n){var i="Line "+t+": "+n,s=this.constructError(i,r);return s.index=e,s.lineNumber=t,s.description=n,s},e.prototype.throwError=function(e,t,r,n){throw this.createError(e,t,r,n)},e.prototype.tolerateError=function(e,t,r,n){var i=this.createError(e,t,r,n);if(!this.tolerant)throw i;this.recordError(i)},e}();t.ErrorHandler=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(9),i=r(4),s=r(11);function a(e){return"0123456789abcdef".indexOf(e.toLowerCase())}function o(e){return"01234567".indexOf(e)}var l=function(){function e(e,t){this.source=e,this.errorHandler=t,this.trackComment=!1,this.isModule=!1,this.length=e.length,this.index=0,this.lineNumber=e.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return e.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},e.prototype.restoreState=function(e){this.index=e.index,this.lineNumber=e.lineNumber,this.lineStart=e.lineStart},e.prototype.eof=function(){return this.index>=this.length},e.prototype.throwUnexpectedToken=function(e){return void 0===e&&(e=s.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.tolerateUnexpectedToken=function(e){void 0===e&&(e=s.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.skipSingleLineComment=function(e){var t,r,n=[];for(this.trackComment&&(n=[],t=this.index-e,r={start:{line:this.lineNumber,column:this.index-this.lineStart-e},end:{}});!this.eof();){var s=this.source.charCodeAt(this.index);if(++this.index,i.Character.isLineTerminator(s)){if(this.trackComment){r.end={line:this.lineNumber,column:this.index-this.lineStart-1};var a={multiLine:!1,slice:[t+e,this.index-1],range:[t,this.index-1],loc:r};n.push(a)}return 13===s&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,n}}return this.trackComment&&(r.end={line:this.lineNumber,column:this.index-this.lineStart},a={multiLine:!1,slice:[t+e,this.index],range:[t,this.index],loc:r},n.push(a)),n},e.prototype.skipMultiLineComment=function(){var e,t,r=[];for(this.trackComment&&(r=[],e=this.index-2,t={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var n=this.source.charCodeAt(this.index);if(i.Character.isLineTerminator(n))13===n&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===n){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){t.end={line:this.lineNumber,column:this.index-this.lineStart};var s={multiLine:!0,slice:[e+2,this.index-2],range:[e,this.index],loc:t};r.push(s)}return r}++this.index}else++this.index}return this.trackComment&&(t.end={line:this.lineNumber,column:this.index-this.lineStart},s={multiLine:!0,slice:[e+2,this.index],range:[e,this.index],loc:t},r.push(s)),this.tolerateUnexpectedToken(),r},e.prototype.scanComments=function(){var e;this.trackComment&&(e=[]);for(var t=0===this.index;!this.eof();){var r=this.source.charCodeAt(this.index);if(i.Character.isWhiteSpace(r))++this.index;else if(i.Character.isLineTerminator(r))++this.index,13===r&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,t=!0;else if(47===r)if(47===(r=this.source.charCodeAt(this.index+1))){this.index+=2;var n=this.skipSingleLineComment(2);this.trackComment&&(e=e.concat(n)),t=!0}else{if(42!==r)break;this.index+=2,n=this.skipMultiLineComment(),this.trackComment&&(e=e.concat(n))}else if(t&&45===r){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,n=this.skipSingleLineComment(3),this.trackComment&&(e=e.concat(n))}else{if(60!==r||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,n=this.skipSingleLineComment(4),this.trackComment&&(e=e.concat(n))}}return e},e.prototype.isFutureReservedWord=function(e){switch(e){case"enum":case"export":case"import":case"super":return!0;default:return!1}},e.prototype.isStrictModeReservedWord=function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},e.prototype.isRestrictedWord=function(e){return"eval"===e||"arguments"===e},e.prototype.isKeyword=function(e){switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}},e.prototype.codePointAt=function(e){var t=this.source.charCodeAt(e);if(t>=55296&&t<=56319){var r=this.source.charCodeAt(e+1);r>=56320&&r<=57343&&(t=1024*(t-55296)+r-56320+65536)}return t},e.prototype.scanHexEscape=function(e){for(var t="u"===e?4:2,r=0,n=0;n<t;++n){if(this.eof()||!i.Character.isHexDigit(this.source.charCodeAt(this.index)))return null;r=16*r+a(this.source[this.index++])}return String.fromCharCode(r)},e.prototype.scanUnicodeCodePointEscape=function(){var e=this.source[this.index],t=0;for("}"===e&&this.throwUnexpectedToken();!this.eof()&&(e=this.source[this.index++],i.Character.isHexDigit(e.charCodeAt(0)));)t=16*t+a(e);return(t>1114111||"}"!==e)&&this.throwUnexpectedToken(),i.Character.fromCodePoint(t)},e.prototype.getIdentifier=function(){for(var e=this.index++;!this.eof();){var t=this.source.charCodeAt(this.index);if(92===t)return this.index=e,this.getComplexIdentifier();if(t>=55296&&t<57343)return this.index=e,this.getComplexIdentifier();if(!i.Character.isIdentifierPart(t))break;++this.index}return this.source.slice(e,this.index)},e.prototype.getComplexIdentifier=function(){var e,t=this.codePointAt(this.index),r=i.Character.fromCodePoint(t);for(this.index+=r.length,92===t&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&i.Character.isIdentifierStart(e.charCodeAt(0))||this.throwUnexpectedToken(),r=e);!this.eof()&&(t=this.codePointAt(this.index),i.Character.isIdentifierPart(t));)r+=e=i.Character.fromCodePoint(t),this.index+=e.length,92===t&&(r=r.substr(0,r.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&i.Character.isIdentifierPart(e.charCodeAt(0))||this.throwUnexpectedToken(),r+=e);return r},e.prototype.octalToDecimal=function(e){var t="0"!==e,r=o(e);return!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,r=8*r+o(this.source[this.index++]),"0123".indexOf(e)>=0&&!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(r=8*r+o(this.source[this.index++]))),{code:r,octal:t}},e.prototype.scanIdentifier=function(){var e,t=this.index,r=92===this.source.charCodeAt(t)?this.getComplexIdentifier():this.getIdentifier();if(3!=(e=1===r.length?3:this.isKeyword(r)?4:"null"===r?5:"true"===r||"false"===r?1:3)&&t+r.length!==this.index){var n=this.index;this.index=t,this.tolerateUnexpectedToken(s.Messages.InvalidEscapedReservedWord),this.index=n}return{type:e,value:r,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.scanPunctuator=function(){var e=this.index,t=this.source[this.index];switch(t){case"(":case"{":"{"===t&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,t="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(t=this.source.substr(this.index,4))?this.index+=4:"==="===(t=t.substr(0,3))||"!=="===t||">>>"===t||"<<="===t||">>="===t||"**="===t?this.index+=3:"&&"===(t=t.substr(0,2))||"||"===t||"=="===t||"!="===t||"+="===t||"-="===t||"*="===t||"/="===t||"++"===t||"--"===t||"<<"===t||">>"===t||"&="===t||"|="===t||"^="===t||"%="===t||"<="===t||">="===t||"=>"===t||"**"===t?this.index+=2:(t=this.source[this.index],"<>=!+-*%&|^/".indexOf(t)>=0&&++this.index)}return this.index===e&&this.throwUnexpectedToken(),{type:7,value:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanHexLiteral=function(e){for(var t="";!this.eof()&&i.Character.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index++];return 0===t.length&&this.throwUnexpectedToken(),i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+t,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanBinaryLiteral=function(e){for(var t,r="";!this.eof()&&("0"===(t=this.source[this.index])||"1"===t);)r+=this.source[this.index++];return 0===r.length&&this.throwUnexpectedToken(),this.eof()||(t=this.source.charCodeAt(this.index),(i.Character.isIdentifierStart(t)||i.Character.isDecimalDigit(t))&&this.throwUnexpectedToken()),{type:6,value:parseInt(r,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanOctalLiteral=function(e,t){var r="",n=!1;for(i.Character.isOctalDigit(e.charCodeAt(0))?(n=!0,r="0"+this.source[this.index++]):++this.index;!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index));)r+=this.source[this.index++];return n||0!==r.length||this.throwUnexpectedToken(),(i.Character.isIdentifierStart(this.source.charCodeAt(this.index))||i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(r,8),octal:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.isImplicitOctalLiteral=function(){for(var e=this.index+1;e<this.length;++e){var t=this.source[e];if("8"===t||"9"===t)return!1;if(!i.Character.isOctalDigit(t.charCodeAt(0)))return!0}return!0},e.prototype.scanNumericLiteral=function(){var e=this.index,t=this.source[e];n.assert(i.Character.isDecimalDigit(t.charCodeAt(0))||"."===t,"Numeric literal must start with a decimal digit or a decimal point");var r="";if("."!==t){if(r=this.source[this.index++],t=this.source[this.index],"0"===r){if("x"===t||"X"===t)return++this.index,this.scanHexLiteral(e);if("b"===t||"B"===t)return++this.index,this.scanBinaryLiteral(e);if("o"===t||"O"===t)return this.scanOctalLiteral(t,e);if(t&&i.Character.isOctalDigit(t.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(t,e)}for(;i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)r+=this.source[this.index++];t=this.source[this.index]}if("."===t){for(r+=this.source[this.index++];i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)r+=this.source[this.index++];t=this.source[this.index]}if("e"===t||"E"===t)if(r+=this.source[this.index++],"+"!==(t=this.source[this.index])&&"-"!==t||(r+=this.source[this.index++]),i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)r+=this.source[this.index++];else this.throwUnexpectedToken();return i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(r),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanStringLiteral=function(){var e=this.index,t=this.source[e];n.assert("'"===t||'"'===t,"String literal must starts with a quote"),++this.index;for(var r=!1,a="";!this.eof();){var o=this.source[this.index++];if(o===t){t="";break}if("\\"===o)if((o=this.source[this.index++])&&i.Character.isLineTerminator(o.charCodeAt(0)))++this.lineNumber,"\r"===o&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(o){case"u":if("{"===this.source[this.index])++this.index,a+=this.scanUnicodeCodePointEscape();else{var l=this.scanHexEscape(o);null===l&&this.throwUnexpectedToken(),a+=l}break;case"x":var c=this.scanHexEscape(o);null===c&&this.throwUnexpectedToken(s.Messages.InvalidHexEscapeSequence),a+=c;break;case"n":a+="\n";break;case"r":a+="\r";break;case"t":a+="\t";break;case"b":a+="\b";break;case"f":a+="\f";break;case"v":a+="\v";break;case"8":case"9":a+=o,this.tolerateUnexpectedToken();break;default:if(o&&i.Character.isOctalDigit(o.charCodeAt(0))){var u=this.octalToDecimal(o);r=u.octal||r,a+=String.fromCharCode(u.code)}else a+=o}else{if(i.Character.isLineTerminator(o.charCodeAt(0)))break;a+=o}}return""!==t&&(this.index=e,this.throwUnexpectedToken()),{type:8,value:a,octal:r,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanTemplate=function(){var e="",t=!1,r=this.index,n="`"===this.source[r],a=!1,o=2;for(++this.index;!this.eof();){var l=this.source[this.index++];if("`"===l){o=1,a=!0,t=!0;break}if("$"===l){if("{"===this.source[this.index]){this.curlyStack.push("${"),++this.index,t=!0;break}e+=l}else if("\\"===l)if(l=this.source[this.index++],i.Character.isLineTerminator(l.charCodeAt(0)))++this.lineNumber,"\r"===l&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(l){case"n":e+="\n";break;case"r":e+="\r";break;case"t":e+="\t";break;case"u":if("{"===this.source[this.index])++this.index,e+=this.scanUnicodeCodePointEscape();else{var c=this.index,u=this.scanHexEscape(l);null!==u?e+=u:(this.index=c,e+=l)}break;case"x":var p=this.scanHexEscape(l);null===p&&this.throwUnexpectedToken(s.Messages.InvalidHexEscapeSequence),e+=p;break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;default:"0"===l?(i.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(s.Messages.TemplateOctalLiteral),e+="\0"):i.Character.isOctalDigit(l.charCodeAt(0))?this.throwUnexpectedToken(s.Messages.TemplateOctalLiteral):e+=l}else i.Character.isLineTerminator(l.charCodeAt(0))?(++this.lineNumber,"\r"===l&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index,e+="\n"):e+=l}return t||this.throwUnexpectedToken(),n||this.curlyStack.pop(),{type:10,value:this.source.slice(r+1,this.index-o),cooked:e,head:n,tail:a,lineNumber:this.lineNumber,lineStart:this.lineStart,start:r,end:this.index}},e.prototype.testRegExp=function(e,t){var r=e,n=this;t.indexOf("u")>=0&&(r=r.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,(function(e,t,r){var i=parseInt(t||r,16);return i>1114111&&n.throwUnexpectedToken(s.Messages.InvalidRegExp),i<=65535?String.fromCharCode(i):"￿"})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"￿"));try{RegExp(r)}catch(e){this.throwUnexpectedToken(s.Messages.InvalidRegExp)}try{return new RegExp(e,t)}catch(e){return null}},e.prototype.scanRegExpBody=function(){var e=this.source[this.index];n.assert("/"===e,"Regular expression literal must start with a slash");for(var t=this.source[this.index++],r=!1,a=!1;!this.eof();)if(t+=e=this.source[this.index++],"\\"===e)e=this.source[this.index++],i.Character.isLineTerminator(e.charCodeAt(0))&&this.throwUnexpectedToken(s.Messages.UnterminatedRegExp),t+=e;else if(i.Character.isLineTerminator(e.charCodeAt(0)))this.throwUnexpectedToken(s.Messages.UnterminatedRegExp);else if(r)"]"===e&&(r=!1);else{if("/"===e){a=!0;break}"["===e&&(r=!0)}return a||this.throwUnexpectedToken(s.Messages.UnterminatedRegExp),t.substr(1,t.length-2)},e.prototype.scanRegExpFlags=function(){for(var e="";!this.eof();){var t=this.source[this.index];if(!i.Character.isIdentifierPart(t.charCodeAt(0)))break;if(++this.index,"\\"!==t||this.eof())e+=t;else if("u"===(t=this.source[this.index])){++this.index;var r=this.index,n=this.scanHexEscape("u");if(null!==n)for(e+=n;r<this.index;++r)this.source[r];else this.index=r,e+="u";this.tolerateUnexpectedToken()}else this.tolerateUnexpectedToken()}return e},e.prototype.scanRegExp=function(){var e=this.index,t=this.scanRegExpBody(),r=this.scanRegExpFlags();return{type:9,value:"",pattern:t,flags:r,regex:this.testRegExp(t,r),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var e=this.source.charCodeAt(this.index);return i.Character.isIdentifierStart(e)?this.scanIdentifier():40===e||41===e||59===e?this.scanPunctuator():39===e||34===e?this.scanStringLiteral():46===e?i.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():i.Character.isDecimalDigit(e)?this.scanNumericLiteral():96===e||125===e&&"${"===this.curlyStack[this.curlyStack.length-1]?this.scanTemplate():e>=55296&&e<57343&&i.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},e}();t.Scanner=l},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TokenName={},t.TokenName[1]="Boolean",t.TokenName[2]="<end>",t.TokenName[3]="Identifier",t.TokenName[4]="Keyword",t.TokenName[5]="Null",t.TokenName[6]="Numeric",t.TokenName[7]="Punctuator",t.TokenName[8]="String",t.TokenName[9]="RegularExpression",t.TokenName[10]="Template"},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.XHTMLEntities={quot:'"',amp:"&",apos:"'",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:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(10),i=r(12),s=r(13),a=function(){function e(){this.values=[],this.curly=this.paren=-1}return e.prototype.beforeFunctionExpression=function(e){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(e)>=0},e.prototype.isRegexStart=function(){var e=this.values[this.values.length-1],t=null!==e;switch(e){case"this":case"]":t=!1;break;case")":var r=this.values[this.paren-1];t="if"===r||"while"===r||"for"===r||"with"===r;break;case"}":if(t=!1,"function"===this.values[this.curly-3])t=!!(n=this.values[this.curly-4])&&!this.beforeFunctionExpression(n);else if("function"===this.values[this.curly-4]){var n;t=!(n=this.values[this.curly-5])||!this.beforeFunctionExpression(n)}}return t},e.prototype.push=function(e){7===e.type||4===e.type?("{"===e.value?this.curly=this.values.length:"("===e.value&&(this.paren=this.values.length),this.values.push(e.value)):this.values.push(null)},e}(),o=function(){function e(e,t){this.errorHandler=new n.ErrorHandler,this.errorHandler.tolerant=!!t&&"boolean"==typeof t.tolerant&&t.tolerant,this.scanner=new i.Scanner(e,this.errorHandler),this.scanner.trackComment=!!t&&"boolean"==typeof t.comment&&t.comment,this.trackRange=!!t&&"boolean"==typeof t.range&&t.range,this.trackLoc=!!t&&"boolean"==typeof t.loc&&t.loc,this.buffer=[],this.reader=new a}return e.prototype.errors=function(){return this.errorHandler.errors},e.prototype.getNextToken=function(){if(0===this.buffer.length){var e=this.scanner.scanComments();if(this.scanner.trackComment)for(var t=0;t<e.length;++t){var r=e[t],n=this.scanner.source.slice(r.slice[0],r.slice[1]),i={type:r.multiLine?"BlockComment":"LineComment",value:n};this.trackRange&&(i.range=r.range),this.trackLoc&&(i.loc=r.loc),this.buffer.push(i)}if(!this.scanner.eof()){var a=void 0;this.trackLoc&&(a={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var o="/"===this.scanner.source[this.scanner.index]&&this.reader.isRegexStart()?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(o);var l={type:s.TokenName[o.type],value:this.scanner.source.slice(o.start,o.end)};if(this.trackRange&&(l.range=[o.start,o.end]),this.trackLoc&&(a.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},l.loc=a),9===o.type){var c=o.pattern,u=o.flags;l.regex={pattern:c,flags:u}}this.buffer.push(l)}}return this.buffer.shift()},e}();t.Tokenizer=o}])},"object"==typeof e&&"object"==typeof t?t.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof e?e.esprima=n():r.esprima=n()}}),require_esprima3=__commonJS({"../../node_modules/.pnpm/recast@0.23.1/node_modules/recast/parsers/esprima.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.parse=void 0;var t=require_util2();e.parse=function(e,r){var n=[],i=require_esprima2().parse(e,{loc:!0,locations:!0,comment:!0,onComment:n,range:(0,t.getOption)(r,"range",!1),tolerant:(0,t.getOption)(r,"tolerant",!0),tokens:!0,jsx:(0,t.getOption)(r,"jsx",!1),sourceType:(0,t.getOption)(r,"sourceType","module")});return Array.isArray(i.comments)||(i.comments=n),i}}}),require_options=__commonJS({"../../node_modules/.pnpm/recast@0.23.1/node_modules/recast/lib/options.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.normalize=void 0;var t=require_util2(),r={parser:require_esprima3(),tabWidth:4,useTabs:!1,reuseWhitespace:!0,lineTerminator:(0,t.getLineTerminator)(),wrapColumn:74,sourceFileName:null,sourceMapName:null,sourceRoot:null,inputSourceMap:null,range:!1,tolerant:!0,quote:null,trailingComma:!1,arrayBracketSpacing:!1,objectCurlySpacing:!0,arrowParensAlways:!1,flowObjectCommas:!0,tokens:!0},n=r.hasOwnProperty;e.normalize=function(e){var t=e||r;function i(e){return n.call(t,e)?t[e]:r[e]}return{tabWidth:+i("tabWidth"),useTabs:!!i("useTabs"),reuseWhitespace:!!i("reuseWhitespace"),lineTerminator:i("lineTerminator"),wrapColumn:Math.max(i("wrapColumn"),0),sourceFileName:i("sourceFileName"),sourceMapName:i("sourceMapName"),sourceRoot:i("sourceRoot"),inputSourceMap:i("inputSourceMap"),parser:i("esprima")||i("parser"),range:i("range"),tolerant:i("tolerant"),quote:i("quote"),trailingComma:i("trailingComma"),arrayBracketSpacing:i("arrayBracketSpacing"),objectCurlySpacing:i("objectCurlySpacing"),arrowParensAlways:i("arrowParensAlways"),flowObjectCommas:i("flowObjectCommas"),tokens:!!i("tokens")}}}}),require_mapping=__commonJS({"../../node_modules/.pnpm/recast@0.23.1/node_modules/recast/lib/mapping.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=require_tslib().__importDefault(require("assert")),r=require_util2(),n=function(){function e(e,t,r){void 0===r&&(r=t),this.sourceLines=e,this.sourceLoc=t,this.targetLoc=r}return e.prototype.slice=function(n,i,a){void 0===a&&(a=n.lastPos());var o=this.sourceLines,l=this.sourceLoc,c=this.targetLoc;function u(e){var s=l[e],u=c[e],p=i;return"end"===e?p=a:t.default.strictEqual(e,"start"),function(e,n,i,s,a){var o,l,c=(0,r.comparePos)(s,a);if(0===c)return n;if(c<0){o=e.skipSpaces(n)||e.lastPos(),l=i.skipSpaces(s)||i.lastPos();var u=a.line-l.line;for(o.line+=u,l.line+=u,u>0?(o.column=0,l.column=0):t.default.strictEqual(u,0);(0,r.comparePos)(l,a)<0&&i.nextPos(l,!0);)t.default.ok(e.nextPos(o,!0)),t.default.strictEqual(e.charAt(o),i.charAt(l))}else{o=e.skipSpaces(n,!0)||e.firstPos(),l=i.skipSpaces(s,!0)||i.firstPos();u=a.line-l.line;for(o.line+=u,l.line+=u,u<0?(o.column=e.getLineLength(o.line),l.column=i.getLineLength(l.line)):t.default.strictEqual(u,0);(0,r.comparePos)(a,l)<0&&i.prevPos(l,!0);)t.default.ok(e.prevPos(o,!0)),t.default.strictEqual(e.charAt(o),i.charAt(l))}return o}(o,s,n,u,p)}if((0,r.comparePos)(i,c.start)<=0)if((0,r.comparePos)(c.end,a)<=0)c={start:s(c.start,i.line,i.column),end:s(c.end,i.line,i.column)};else{if((0,r.comparePos)(a,c.start)<=0)return null;l={start:l.start,end:u("end")},c={start:s(c.start,i.line,i.column),end:s(a,i.line,i.column)}}else{if((0,r.comparePos)(c.end,i)<=0)return null;(0,r.comparePos)(c.end,a)<=0?(l={start:u("start"),end:l.end},c={start:{line:1,column:0},end:s(c.end,i.line,i.column)}):(l={start:u("start"),end:u("end")},c={start:{line:1,column:0},end:s(a,i.line,i.column)})}return new e(this.sourceLines,l,c)},e.prototype.add=function(t,r){return new e(this.sourceLines,this.sourceLoc,{start:i(this.targetLoc.start,t,r),end:i(this.targetLoc.end,t,r)})},e.prototype.subtract=function(t,r){return new e(this.sourceLines,this.sourceLoc,{start:s(this.targetLoc.start,t,r),end:s(this.targetLoc.end,t,r)})},e.prototype.indent=function(t,r,n){if(void 0===r&&(r=!1),void 0===n&&(n=!1),0===t)return this;var i=this.targetLoc,s=i.start.line,a=i.end.line;if(r&&1===s&&1===a)return this;if(i={start:i.start,end:i.end},!r||s>1){var o=i.start.column+t;i.start={line:s,column:n?Math.max(0,o):o}}if(!r||a>1){var l=i.end.column+t;i.end={line:a,column:n?Math.max(0,l):l}}return new e(this.sourceLines,this.sourceLoc,i)},e}();function i(e,t,r){return{line:e.line+t-1,column:1===e.line?e.column+r:e.column}}function s(e,t,r){return{line:e.line-t+1,column:e.line===t?e.column-r:e.column}}e.default=n}}),require_lines=__commonJS({"../../node_modules/.pnpm/recast@0.23.1/node_modules/recast/lib/lines.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.concat=e.fromString=e.countSpaces=e.Lines=void 0;var t=require_tslib(),r=t.__importDefault(require("assert")),n=t.__importDefault(require_source_map()),i=require_options(),s=require_util2(),a=t.__importDefault(require_mapping()),o=function(){function e(e,t){void 0===t&&(t=null),this.infos=e,this.mappings=[],this.cachedSourceMap=null,this.cachedTabWidth=void 0,r.default.ok(e.length>0),this.length=e.length,this.name=t||null,this.name&&this.mappings.push(new a.default(this,{start:this.firstPos(),end:this.lastPos()}))}return e.prototype.toString=function(e){return this.sliceString(this.firstPos(),this.lastPos(),e)},e.prototype.getSourceMap=function(e,t){if(!e)return null;var i=this;function a(r){return(r=r||{}).file=e,t&&(r.sourceRoot=t),r}if(i.cachedSourceMap)return a(i.cachedSourceMap.toJSON());var o=new n.default.SourceMapGenerator(a()),l={};return i.mappings.forEach((function(e){for(var t=e.sourceLines.skipSpaces(e.sourceLoc.start)||e.sourceLines.lastPos(),n=i.skipSpaces(e.targetLoc.start)||i.lastPos();(0,s.comparePos)(t,e.sourceLoc.end)<0&&(0,s.comparePos)(n,e.targetLoc.end)<0;){var a=e.sourceLines.charAt(t),u=i.charAt(n);r.default.strictEqual(a,u);var p=e.sourceLines.name;if(o.addMapping({source:p,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column}}),!c.call(l,p)){var d=e.sourceLines.toString();o.setSourceContent(p,d),l[p]=d}i.nextPos(n,!0),e.sourceLines.nextPos(t,!0)}})),i.cachedSourceMap=o,o.toJSON()},e.prototype.bootstrapCharAt=function(e){r.default.strictEqual(typeof e,"object"),r.default.strictEqual(typeof e.line,"number"),r.default.strictEqual(typeof e.column,"number");var t=e.line,n=e.column,i=this.toString().split(d),s=i[t-1];return void 0===s?"":n===s.length&&t<i.length?"\n":n>=s.length?"":s.charAt(n)},e.prototype.charAt=function(e){r.default.strictEqual(typeof e,"object"),r.default.strictEqual(typeof e.line,"number"),r.default.strictEqual(typeof e.column,"number");var t=e.line,n=e.column,i=this.infos[t-1],s=n;if(void 0===i||s<0)return"";var a=this.getIndentAt(t);return s<a?" ":(s+=i.sliceStart-a)===i.sliceEnd&&t<this.length?"\n":s>=i.sliceEnd?"":i.line.charAt(s)},e.prototype.stripMargin=function(n,i){if(0===n)return this;if(r.default.ok(n>0,"negative margin: "+n),i&&1===this.length)return this;var s=new e(this.infos.map((function(e,r){return e.line&&(r>0||!i)&&(e=t.__assign(t.__assign({},e),{indent:Math.max(0,e.indent-n)})),e})));if(this.mappings.length>0){var a=s.mappings;r.default.strictEqual(a.length,0),this.mappings.forEach((function(e){a.push(e.indent(n,i,!0))}))}return s},e.prototype.indent=function(n){if(0===n)return this;var i=new e(this.infos.map((function(e){return e.line&&!e.locked&&(e=t.__assign(t.__assign({},e),{indent:e.indent+n})),e})));if(this.mappings.length>0){var s=i.mappings;r.default.strictEqual(s.length,0),this.mappings.forEach((function(e){s.push(e.indent(n))}))}return i},e.prototype.indentTail=function(n){if(0===n)return this;if(this.length<2)return this;var i=new e(this.infos.map((function(e,r){return r>0&&e.line&&!e.locked&&(e=t.__assign(t.__assign({},e),{indent:e.indent+n})),e})));if(this.mappings.length>0){var s=i.mappings;r.default.strictEqual(s.length,0),this.mappings.forEach((function(e){s.push(e.indent(n,!0))}))}return i},e.prototype.lockIndentTail=function(){return this.length<2?this:new e(this.infos.map((function(e,r){return t.__assign(t.__assign({},e),{locked:r>0})})))},e.prototype.getIndentAt=function(e){return r.default.ok(e>=1,"no line "+e+" (line numbers start from 1)"),Math.max(this.infos[e-1].indent,0)},e.prototype.guessTabWidth=function(){if("number"==typeof this.cachedTabWidth)return this.cachedTabWidth;for(var e=[],t=0,r=1,n=this.length;r<=n;++r){var i=this.infos[r-1];if(!f(i.line.slice(i.sliceStart,i.sliceEnd))){var s=Math.abs(i.indent-t);e[s]=1+~~e[s],t=i.indent}}for(var a=-1,o=2,l=1;l<e.length;l+=1)c.call(e,l)&&e[l]>a&&(a=e[l],o=l);return this.cachedTabWidth=o},e.prototype.startsWithComment=function(){if(0===this.infos.length)return!1;var e=this.infos[0],t=e.sliceStart,r=e.sliceEnd,n=e.line.slice(t,r).trim();return 0===n.length||"//"===n.slice(0,2)||"/*"===n.slice(0,2)},e.prototype.isOnlyWhitespace=function(){return f(this.toString())},e.prototype.isPrecededOnlyByWhitespace=function(e){var t=this.infos[e.line-1],r=Math.max(t.indent,0),n=e.column-r;if(n<=0)return!0;var i=t.sliceStart,s=Math.min(i+n,t.sliceEnd);return f(t.line.slice(i,s))},e.prototype.getLineLength=function(e){var t=this.infos[e-1];return this.getIndentAt(e)+t.sliceEnd-t.sliceStart},e.prototype.nextPos=function(e,t){void 0===t&&(t=!1);var r=Math.max(e.line,0);return Math.max(e.column,0)<this.getLineLength(r)?(e.column+=1,!t||!!this.skipSpaces(e,!1,!0)):r<this.length&&(e.line+=1,e.column=0,!t||!!this.skipSpaces(e,!1,!0))},e.prototype.prevPos=function(e,t){void 0===t&&(t=!1);var r=e.line,n=e.column;if(n<1){if((r-=1)<1)return!1;n=this.getLineLength(r)}else n=Math.min(n-1,this.getLineLength(r));return e.line=r,e.column=n,!t||!!this.skipSpaces(e,!0,!0)},e.prototype.firstPos=function(){return{line:1,column:0}},e.prototype.lastPos=function(){return{line:this.length,column:this.getLineLength(this.length)}},e.prototype.skipSpaces=function(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=!1),e=e?r?e:{line:e.line,column:e.column}:t?this.lastPos():this.firstPos(),t){for(;this.prevPos(e);)if(!f(this.charAt(e))&&this.nextPos(e))return e;return null}for(;f(this.charAt(e));)if(!this.nextPos(e))return null;return e},e.prototype.trimLeft=function(){var e=this.skipSpaces(this.firstPos(),!1,!0);return e?this.slice(e):y},e.prototype.trimRight=function(){var e=this.skipSpaces(this.lastPos(),!0,!0);return e?this.slice(this.firstPos(),e):y},e.prototype.trim=function(){var e=this.skipSpaces(this.firstPos(),!1,!0);if(null===e)return y;var t=this.skipSpaces(this.lastPos(),!0,!0);return null===t?y:this.slice(e,t)},e.prototype.eachPos=function(e,t,r){void 0===t&&(t=this.firstPos()),void 0===r&&(r=!1);var n=this.firstPos();if(t&&(n.line=t.line,n.column=t.column),!r||this.skipSpaces(n,!1,!0))do{e.call(this,n)}while(this.nextPos(n,r))},e.prototype.bootstrapSlice=function(e,t){var r=this.toString().split(d).slice(e.line-1,t.line);return r.length>0&&(r.push(r.pop().slice(0,t.column)),r[0]=r[0].slice(e.column)),h(r.join("\n"))},e.prototype.slice=function(t,n){if(!n){if(!t)return this;n=this.lastPos()}if(!t)throw new Error("cannot slice with end but not start");var i=this.infos.slice(t.line-1,n.line);t.line===n.line?i[0]=m(i[0],t.column,n.column):(r.default.ok(t.line<n.line),i[0]=m(i[0],t.column),i.push(m(i.pop(),0,n.column)));var s=new e(i);if(this.mappings.length>0){var a=s.mappings;r.default.strictEqual(a.length,0),this.mappings.forEach((function(e){var r=e.slice(this,t,n);r&&a.push(r)}),this)}return s},e.prototype.bootstrapSliceString=function(e,t,r){return this.slice(e,t).toString(r)},e.prototype.sliceString=function(e,t,r){void 0===e&&(e=this.firstPos()),void 0===t&&(t=this.lastPos());for(var n=(0,i.normalize)(r),s=n.tabWidth,a=n.useTabs,o=n.reuseWhitespace,l=n.lineTerminator,c=[],p=e.line;p<=t.line;++p){var d=this.infos[p-1];p===e.line?d=p===t.line?m(d,e.column,t.column):m(d,e.column):p===t.line&&(d=m(d,0,t.column));var h=Math.max(d.indent,0),y=d.line.slice(0,d.sliceStart);if(o&&f(y)&&u(y,s)===h)c.push(d.line.slice(0,d.sliceEnd));else{var g=0,b=h;a&&(b-=(g=Math.floor(h/s))*s);var S="";g>0&&(S+=new Array(g+1).join("\t")),b>0&&(S+=new Array(b+1).join(" ")),S+=d.line.slice(d.sliceStart,d.sliceEnd),c.push(S)}}return c.join(l)},e.prototype.isEmpty=function(){return this.length<2&&this.getLineLength(1)<1},e.prototype.join=function(r){var n,i=this,s=[],a=[];function o(e){if(null!==e){if(n){var r=e.infos[0],i=new Array(r.indent+1).join(" "),o=s.length,l=Math.max(n.indent,0)+n.sliceEnd-n.sliceStart;n.line=n.line.slice(0,n.sliceEnd)+i+r.line.slice(r.sliceStart,r.sliceEnd),n.locked=n.locked||r.locked,n.sliceEnd=n.line.length,e.mappings.length>0&&e.mappings.forEach((function(e){a.push(e.add(o,l))}))}else e.mappings.length>0&&a.push.apply(a,e.mappings);e.infos.forEach((function(e,r){(!n||r>0)&&(n=t.__assign({},e),s.push(n))}))}}if(r.map((function(e){var t=h(e);return t.isEmpty()?null:t})).forEach((function(e,t){i.isEmpty()?o(e):function(e,t){t>0&&o(i),o(e)}(e,t)})),s.length<1)return y;var l=new e(s);return l.mappings=a,l},e.prototype.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[this];return n.push.apply(n,e),r.default.strictEqual(n.length,e.length+1),y.join(n)},e}();e.Lines=o;var l={},c=l.hasOwnProperty;function u(e,t){for(var n=0,i=e.length,s=0;s<i;++s)switch(e.charCodeAt(s)){case 9:r.default.strictEqual(typeof t,"number"),r.default.ok(t>0);var a=Math.ceil(n/t)*t;a===n?n+=t:n=a;break;case 11:case 12:case 13:case 65279:break;default:n+=1}return n}e.countSpaces=u;var p=/^\s*/,d=/\u000D\u000A|\u000D(?!\u000A)|\u000A|\u2028|\u2029/;function h(e,t){if(e instanceof o)return e;e+="";var n=t&&t.tabWidth,s=e.indexOf("\t")<0,a=!t&&s&&e.length<=10;if(r.default.ok(n||s,"No tab width specified but encountered tabs in string\n"+e),a&&c.call(l,e))return l[e];var h=new o(e.split(d).map((function(e){var t=p.exec(e)[0];return{line:e,indent:u(t,n),locked:!1,sliceStart:t.length,sliceEnd:e.length}})),(0,i.normalize)(t).sourceFileName);return a&&(l[e]=h),h}function f(e){return!/\S/.test(e)}function m(e,t,n){var i=e.sliceStart,s=e.sliceEnd,a=Math.max(e.indent,0),o=a+s-i;return void 0===n&&(n=o),t=Math.max(t,0),n=Math.min(n,o),(n=Math.max(n,t))<a?(a=n,s=i):s-=o-n,o=n,o-=t,t<a?a-=t:(t-=a,a=0,i+=t),r.default.ok(a>=0),r.default.ok(i<=s),r.default.strictEqual(o,a+s-i),e.indent===a&&e.sliceStart===i&&e.sliceEnd===s?e:{line:e.line,indent:a,locked:!1,sliceStart:i,sliceEnd:s}}e.fromString=h,e.concat=function(e){return y.join(e)};var y=h("")}}),require_comments=__commonJS({"../../node_modules/.pnpm/recast@0.23.1/node_modules/recast/lib/comments.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printComments=e.attach=void 0;var t=require_tslib(),r=t.__importDefault(require("assert")),n=t.__importStar(require_main()),i=n.namedTypes,s=n.builtInTypes.array,a=n.builtInTypes.object,o=require_lines(),l=require_util2(),c=new WeakMap;function u(e,t,r){if(!e)return r;if((0,l.fixFaultyLocations)(e,t),r){if(i.Node.check(e)&&i.SourceLocation.check(e.loc)){for(var o=r.length-1;o>=0;--o){var p=r[o];if(p&&p.loc&&(0,l.comparePos)(p.loc.end,e.loc.start)<=0)break}return r.splice(o+1,0,e),r}}else{var d=c.get(e);if(d)return d}var h;if(s.check(e))h=Object.keys(e);else{if(!a.check(e))return r;h=n.getFieldNames(e)}r||c.set(e,r=[]);o=0;for(var f=h.length;o<f;++o)u(e[h[o]],t,r);return r}function p(e,t,r){for(var n,i,s=u(e,r),a=0,o=s&&s.length;"number"==typeof o&&a<o;){var c=a+o>>1,d=s[c];if((0,l.comparePos)(d.loc.start,t.loc.start)<=0&&(0,l.comparePos)(t.loc.end,d.loc.end)<=0)return void p(t.enclosingNode=d,t,r);if((0,l.comparePos)(d.loc.end,t.loc.start)<=0)n=d,a=c+1;else{if(!((0,l.comparePos)(t.loc.end,d.loc.start)<=0))throw new Error("Comment location overlaps with node location");i=d,o=c}}n&&(t.precedingNode=n),i&&(t.followingNode=i)}function d(e,t){var n=e.length;if(0!==n){for(var i,s=e[0].precedingNode,a=e[0].followingNode,o=a.loc.start,l=n;l>0;--l){i=e[l-1],r.default.strictEqual(i.precedingNode,s),r.default.strictEqual(i.followingNode,a);var c=t.sliceString(i.loc.end,o);if(/\S/.test(c))break;o=i.loc.start}for(;l<=n&&(i=e[l])&&("Line"===i.type||"CommentLine"===i.type)&&i.loc.start.column>a.loc.start.column;)++l;e.forEach((function(e,t){t<l?m(s,e):f(a,e)})),e.length=0}}function h(e,t){(e.comments||(e.comments=[])).push(t)}function f(e,t){t.leading=!0,t.trailing=!1,h(e,t)}function m(e,t){t.leading=!1,t.trailing=!0,h(e,t)}e.attach=function(e,t,n){if(s.check(e)){var i=[];e.forEach((function(e){e.loc.lines=n,p(t,e,n);var s=e.precedingNode,a=e.enclosingNode,o=e.followingNode;if(s&&o){var l=i.length;if(l>0){var c=i[l-1];r.default.strictEqual(c.precedingNode===e.precedingNode,c.followingNode===e.followingNode),c.followingNode!==e.followingNode&&d(i,n)}i.push(e)}else if(s)d(i,n),m(s,e);else if(o)d(i,n),f(o,e);else{if(!a)throw new Error("AST contains no nodes at all?");d(i,n),function(e,t){t.leading=!1,t.trailing=!1,h(e,t)}(a,e)}})),d(i,n),e.forEach((function(e){delete e.precedingNode,delete e.enclosingNode,delete e.followingNode}))}},e.printComments=function(e,t){var r=e.getValue(),s=t(e),a=i.Node.check(r)&&n.getFieldValue(r,"comments");if(!a||0===a.length)return s;var l=[],c=[s];return e.each((function(e){var s=e.getValue(),a=n.getFieldValue(s,"leading"),u=n.getFieldValue(s,"trailing");a||u&&!i.Statement.check(r)&&"Block"!==s.type&&"CommentBlock"!==s.type?l.push(function(e,t){var r=e.getValue();i.Comment.assert(r);var n=r.loc,s=n&&n.lines,a=[t(e)];if(r.trailing)a.push("\n");else if(s instanceof o.Lines){var l=s.slice(n.end,s.skipSpaces(n.end)||s.lastPos());1===l.length?a.push(l):a.push(new Array(l.length).join("\n"))}else a.push("\n");return(0,o.concat)(a)}(e,t)):u&&c.push(function(e,t){var r=e.getValue(e);i.Comment.assert(r);var n=r.loc,s=n&&n.lines,a=[];if(s instanceof o.Lines){var l=s.skipSpaces(n.start,!0)||s.firstPos(),c=s.slice(l,n.start);1===c.length?a.push(c):a.push(new Array(c.length).join("\n"))}return a.push(t(e)),(0,o.concat)(a)}(e,t))}),"comments"),l.push.apply(l,c),(0,o.concat)(l)}}}),require_parser=__commonJS({"../../node_modules/.pnpm/recast@0.23.1/node_modules/recast/lib/parser.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.parse=void 0;var t=require_tslib(),r=t.__importDefault(require("assert")),n=t.__importStar(require_main()),i=n.builders,s=n.builtInTypes.object,a=n.builtInTypes.array,o=require_options(),l=require_lines(),c=require_comments(),u=t.__importStar(require_util2());e.parse=function(e,t){t=(0,o.normalize)(t);var r,n,s=(0,l.fromString)(e,t),a=s.toString({tabWidth:t.tabWidth,reuseWhitespace:!1,useTabs:!1}),d=[],h=t.parser.parse(a,{jsx:!0,loc:!0,locations:!0,range:t.range,comment:!0,onComment:d,tolerant:u.getOption(t,"tolerant",!0),ecmaVersion:6,sourceType:u.getOption(t,"sourceType","module")}),f=Array.isArray(h.tokens)?h.tokens:require_esprima2().tokenize(a,{loc:!0});delete h.tokens,f.forEach((function(e){"string"!=typeof e.value&&(e.value=s.sliceString(e.loc.start,e.loc.end))})),Array.isArray(h.comments)&&(d=h.comments,delete h.comments),h.loc?u.fixFaultyLocations(h,s):h.loc={start:s.firstPos(),end:s.lastPos()},h.loc.lines=s,h.loc.indent=0,"Program"===h.type?(n=h,(r=i.file(h,t.sourceFileName||null)).loc={start:s.firstPos(),end:s.lastPos(),lines:s,indent:0}):"File"===h.type&&(n=(r=h).program),t.tokens&&(r.tokens=f);var m=u.getTrueLoc({type:n.type,loc:n.loc,body:[],comments:d},s);return n.loc.start=m.start,n.loc.end=m.end,(0,c.attach)(d,n.body.length?r.program:r,s),new p(s,f).copy(r)};var p=function e(t,n){r.default.ok(this instanceof e),this.lines=t,this.tokens=n,this.startTokenIndex=0,this.endTokenIndex=n.length,this.indent=0,this.seen=new Map},d=p.prototype;d.copy=function(e){if(this.seen.has(e))return this.seen.get(e);if(a.check(e)){var t=new Array(e.length);return this.seen.set(e,t),e.forEach((function(e,r){t[r]=this.copy(e)}),this),t}if(!s.check(e))return e;u.fixFaultyLocations(e,this.lines);var r=Object.create(Object.getPrototypeOf(e),{original:{value:e,configurable:!1,enumerable:!1,writable:!0}});this.seen.set(e,r);var n=e.loc,i=this.indent,o=i,l=this.startTokenIndex,c=this.endTokenIndex;n&&(("Block"===e.type||"Line"===e.type||"CommentBlock"===e.type||"CommentLine"===e.type||this.lines.isPrecededOnlyByWhitespace(n.start))&&(o=this.indent=n.start.column),n.lines=this.lines,n.tokens=this.tokens,n.indent=o,this.findTokenRange(n));for(var p=Object.keys(e),d=p.length,h=0;h<d;++h){var f=p[h];"loc"===f||"tokens"===f&&"File"===e.type?r[f]=e[f]:r[f]=this.copy(e[f])}return this.indent=i,this.startTokenIndex=l,this.endTokenIndex=c,r},d.findTokenRange=function(e){for(;this.startTokenIndex>0;){var t=e.tokens[this.startTokenIndex];if(!(u.comparePos(e.start,t.loc.start)<0))break;--this.startTokenIndex}for(;this.endTokenIndex<e.tokens.length;){t=e.tokens[this.endTokenIndex];if(!(u.comparePos(t.loc.end,e.end)<0))break;++this.endTokenIndex}for(;this.startTokenIndex<this.endTokenIndex;){t=e.tokens[this.startTokenIndex];if(!(u.comparePos(t.loc.start,e.start)<0))break;++this.startTokenIndex}for(e.start.token=this.startTokenIndex;this.endTokenIndex>this.startTokenIndex;){t=e.tokens[this.endTokenIndex-1];if(!(u.comparePos(e.end,t.loc.end)<0))break;--this.endTokenIndex}e.end.token=this.endTokenIndex}}}),require_fast_path=__commonJS({"../../node_modules/.pnpm/recast@0.23.1/node_modules/recast/lib/fast-path.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=require_tslib(),r=t.__importDefault(require("assert")),n=t.__importStar(require_main()),i=t.__importStar(require_util2()),s=n.namedTypes,a=n.builtInTypes.array,o=n.builtInTypes.number,l={};[["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((function(e,t){e.forEach((function(e){l[e]=t}))}));var c=function e(t){r.default.ok(this instanceof e),this.stack=[t]},u=c.prototype;function p(e,t){for(var r=e.stack,n=r.length-1;n>=0;n-=2){var i=r[n];if(s.Node.check(i)&&--t<0)return i}return null}function d(e){return s.BinaryExpression.check(e)||s.LogicalExpression.check(e)}function h(e){return!!s.CallExpression.check(e)||(a.check(e)?e.some(h):!!s.Node.check(e)&&n.someField(e,(function(e,t){return h(t)})))}c.from=function(e){if(e instanceof c)return e.copy();if(e instanceof n.NodePath){for(var t=Object.create(c.prototype),r=[e.value],i=void 0;i=e.parentPath;e=i)r.push(e.name,i.value);return t.stack=r.reverse(),t}return new c(e)},u.copy=function(){var e=Object.create(c.prototype);return e.stack=this.stack.slice(0),e},u.getName=function(){var e=this.stack,t=e.length;return t>1?e[t-2]:null},u.getValue=function(){var e=this.stack;return e[e.length-1]},u.valueIsDuplicate=function(){var e=this.stack,t=e.length-1;return e.lastIndexOf(e[t],t-1)>=0},u.getNode=function(e){return void 0===e&&(e=0),p(this,~~e)},u.getParentNode=function(e){return void 0===e&&(e=0),p(this,1+~~e)},u.getRootValue=function(){var e=this.stack;return e.length%2==0?e[1]:e[0]},u.call=function(e){for(var t=this.stack,r=t.length,n=t[r-1],i=arguments.length,s=1;s<i;++s){var a=arguments[s];n=n[a],t.push(a,n)}var o=e(this);return t.length=r,o},u.each=function(e){for(var t=this.stack,r=t.length,n=t[r-1],i=arguments.length,s=1;s<i;++s){var a=arguments[s];n=n[a],t.push(a,n)}for(s=0;s<n.length;++s)s in n&&(t.push(s,n[s]),e(this),t.length-=2);t.length=r},u.map=function(e){for(var t=this.stack,r=t.length,n=t[r-1],i=arguments.length,s=1;s<i;++s){var a=arguments[s];n=n[a],t.push(a,n)}var o=new Array(n.length);for(s=0;s<n.length;++s)s in n&&(t.push(s,n[s]),o[s]=e(this,s),t.length-=2);return t.length=r,o},u.hasParens=function(){var e=this.getNode(),t=this.getPrevToken(e);if(!t)return!1;var r=this.getNextToken(e);if(!r)return!1;if("("===t.value){if(")"===r.value)return!0;if(!this.canBeFirstInStatement()&&this.firstInStatement()&&!this.needsParens(!0))return!0}return!1},u.getPrevToken=function(e){var t=(e=e||this.getNode())&&e.loc,r=t&&t.tokens;if(r&&t.start.token>0){var n=r[t.start.token-1];if(n){var s=this.getRootValue().loc;if(i.comparePos(s.start,n.loc.start)<=0)return n}}return null},u.getNextToken=function(e){var t=(e=e||this.getNode())&&e.loc,r=t&&t.tokens;if(r&&t.end.token<r.length){var n=r[t.end.token];if(n){var s=this.getRootValue().loc;if(i.comparePos(n.loc.end,s.end)<=0)return n}}return null},u.needsParens=function(e){var t=this.getNode();if("AssignmentExpression"===t.type&&"ObjectPattern"===t.left.type)return!0;var n=this.getParentNode(),i=this.getName();if(this.getValue()!==t)return!1;if(s.Statement.check(t))return!1;if("Identifier"===t.type)return!1;if(n&&"ParenthesizedExpression"===n.type)return!1;if(t.extra&&t.extra.parenthesized)return!0;if(!n)return!1;switch(t.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return"MemberExpression"===n.type&&"object"===i&&n.object===t;case"BinaryExpression":case"LogicalExpression":switch(n.type){case"CallExpression":return"callee"===i&&n.callee===t;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return!0;case"MemberExpression":return"object"===i&&n.object===t;case"BinaryExpression":case"LogicalExpression":var a=n.operator,c=l[a],u=t.operator,p=l[u];if(c>p)return!0;if(c===p&&"right"===i)return r.default.strictEqual(n.right,t),!0;break;default:return!1}break;case"SequenceExpression":switch(n.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==i;default:return!0}case"OptionalIndexedAccessType":return t.optional&&"IndexedAccessType"===n.type;case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"NullableTypeAnnotation"===n.type;case"Literal":return"MemberExpression"===n.type&&o.check(t.value)&&"object"===i&&n.object===t;case"NumericLiteral":return"MemberExpression"===n.type&&"object"===i&&n.object===t;case"YieldExpression":case"AwaitExpression":case"AssignmentExpression":case"ConditionalExpression":switch(n.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return!0;case"CallExpression":case"NewExpression":return"callee"===i&&n.callee===t;case"ConditionalExpression":return"test"===i&&n.test===t;case"MemberExpression":return"object"===i&&n.object===t;default:return!1}case"ArrowFunctionExpression":return!(!s.CallExpression.check(n)||"callee"!==i||n.callee!==t)||(!(!s.MemberExpression.check(n)||"object"!==i||n.object!==t)||(!(!s.TSAsExpression||!s.TSAsExpression.check(n)||"expression"!==i||n.expression!==t)||d(n)));case"ObjectExpression":if("ArrowFunctionExpression"===n.type&&"body"===i&&n.body===t)return!0;break;case"TSAsExpression":if("ArrowFunctionExpression"===n.type&&"body"===i&&n.body===t&&"ObjectExpression"===t.expression.type)return!0;break;case"CallExpression":if("declaration"===i&&s.ExportDefaultDeclaration.check(n)&&s.FunctionExpression.check(t.callee))return!0}return"NewExpression"===n.type&&"callee"===i&&n.callee===t?h(t):!(!0===e||this.canBeFirstInStatement()||!this.firstInStatement())},u.canBeFirstInStatement=function(){var e=this.getNode();return!s.FunctionExpression.check(e)&&(!s.ObjectExpression.check(e)&&!s.ClassExpression.check(e))},u.firstInStatement=function(){for(var e,t,n,i,a=this.stack,o=a.length-1;o>=0;o-=2)if(s.Node.check(a[o])&&(n=e,i=t,e=a[o-1],t=a[o]),t&&i){if(s.BlockStatement.check(t)&&"body"===e&&0===n)return r.default.strictEqual(t.body[0],i),!0;if(s.ExpressionStatement.check(t)&&"expression"===n)return r.default.strictEqual(t.expression,i),!0;if(s.AssignmentExpression.check(t)&&"left"===n)return r.default.strictEqual(t.left,i),!0;if(s.ArrowFunctionExpression.check(t)&&"body"===n)return r.default.strictEqual(t.body,i),!0;if(s.SequenceExpression.check(t)&&"expressions"===a[o+1]&&0===n)r.default.strictEqual(t.expressions[0],i);else if(s.CallExpression.check(t)&&"callee"===n)r.default.strictEqual(t.callee,i);else if(s.MemberExpression.check(t)&&"object"===n)r.default.strictEqual(t.object,i);else if(s.ConditionalExpression.check(t)&&"test"===n)r.default.strictEqual(t.test,i);else if(d(t)&&"left"===n)r.default.strictEqual(t.left,i);else{if(!s.UnaryExpression.check(t)||t.prefix||"argument"!==n)return!1;r.default.strictEqual(t.argument,i)}}return!0},e.default=c}}),require_patcher=__commonJS({"../../node_modules/.pnpm/recast@0.23.1/node_modules/recast/lib/patcher.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getReprinter=e.Patcher=void 0;var t=require_tslib(),r=t.__importDefault(require("assert")),n=t.__importStar(require_lines()),i=t.__importStar(require_main()),s=i.namedTypes.Printable,a=i.namedTypes.Expression,o=i.namedTypes.ReturnStatement,l=i.namedTypes.SourceLocation,c=require_util2(),u=t.__importDefault(require_fast_path()),p=i.builtInTypes.object,d=i.builtInTypes.array,h=i.builtInTypes.string,f=/[0-9a-z_$]/i,m=function e(t){r.default.ok(this instanceof e),r.default.ok(t instanceof n.Lines);var i=[];this.replace=function(e,t){h.check(t)&&(t=n.fromString(t)),i.push({lines:t,start:e.start,end:e.end})},this.get=function(e){var s=(e=e||{start:{line:1,column:0},end:{line:t.length,column:t.getLineLength(t.length)}}).start,a=[];function o(e,n){r.default.ok((0,c.comparePos)(e,n)<=0),a.push(t.slice(e,n))}return i.sort((function(e,t){return(0,c.comparePos)(e.start,t.start)})).forEach((function(e){(0,c.comparePos)(s,e.start)>0||(o(s,e.start),a.push(e.lines),s=e.end)})),o(s,e.end),n.concat(a)}};e.Patcher=m;var y=m.prototype;function g(e){var t=[];return e.comments&&e.comments.length>0&&e.comments.forEach((function(e){(e.leading||e.trailing)&&t.push(e)})),t}function b(e,t,r){var n=e.getValue();return n===t.getValue()||(d.check(n)?S(e,t,r):!!p.check(n)&&function(e,t,r){var n=e.getValue();if(p.assert(n),null===n.original)return!1;var i=t.getValue();if(!p.check(i))return!1;if(n===i||e.valueIsDuplicate()||t.valueIsDuplicate())return!0;if(s.check(n)){if(!s.check(i))return!1;var o=e.getParentNode(),l=t.getParentNode();if(null!==l&&"FunctionTypeAnnotation"===l.type&&null!==o&&"FunctionTypeAnnotation"===o.type){var c=1!==l.params.length||!!l.params[0].name,u=1!==o.params.length||!!o.params[0].name;if(!c&&u)return!1}if(n.type===i.type){var d=[];if(T(e,t,d))r.push.apply(r,d);else{if(!i.loc)return!1;r.push({oldPath:t.copy(),newPath:e.copy()})}return!0}return!!(a.check(n)&&a.check(i)&&i.loc)&&(r.push({oldPath:t.copy(),newPath:e.copy()}),!0)}return T(e,t,r)}(e,t,r))}function S(e,t,r){var n=e.getValue(),i=t.getValue();if(n===i||e.valueIsDuplicate()||t.valueIsDuplicate())return!0;d.assert(n);var s=n.length;if(!d.check(i)||i.length!==s)return!1;for(var a=0;a<s;++a){e.stack.push(a,n[a]),t.stack.push(a,i[a]);var o=b(e,t,r);if(e.stack.length-=2,t.stack.length-=2,!o)return!1}return!0}function T(e,t,r){var n=e.getValue(),s=t.getValue();if(p.assert(n),p.assert(s),null===n.original)return!1;if(e.needsParens()&&!t.hasParens())return!1;var a=(0,c.getUnionOfKeys)(s,n);"File"!==s.type&&"File"!==n.type||delete a.tokens,delete a.loc;var l=r.length;for(var u in a)if("_"!==u.charAt(0)){e.stack.push(u,i.getFieldValue(n,u)),t.stack.push(u,i.getFieldValue(s,u));var d=b(e,t,r);if(e.stack.length-=2,t.stack.length-=2,!d)return!1}return!(o.check(e.getNode())&&r.length>l)}y.tryToReprintComments=function(e,t,n){var i=this;if(!e.comments&&!t.comments)return!0;var s=u.default.from(e),a=u.default.from(t);s.stack.push("comments",g(e)),a.stack.push("comments",g(t));var o=[],l=S(s,a,o);return l&&o.length>0&&o.forEach((function(e){var t=e.oldPath.getValue();r.default.ok(t.leading||t.trailing),i.replace(t.loc,n(e.newPath).indentTail(t.loc.indent))})),l},y.deleteComments=function(e){if(e.comments){var t=this;e.comments.forEach((function(r){r.leading?t.replace({start:r.loc.start,end:e.loc.lines.skipSpaces(r.loc.end,!1,!1)},""):r.trailing&&t.replace({start:e.loc.lines.skipSpaces(r.loc.start,!0,!1),end:r.loc.end},"")}))}},e.getReprinter=function(e){r.default.ok(e instanceof u.default);var t=e.getValue();if(s.check(t)){var i=t.original,a=i&&i.loc,o=a&&a.lines,p=[];if(o&&function(e,t){var n=e.getValue();s.assert(n);var i=n.original;if(s.assert(i),r.default.deepEqual(t,[]),n.type!==i.type)return!1;var a=new u.default(i),o=T(e,a,t);o||(t.length=0);return o}(e,p))return function(t){var r=new m(o);p.forEach((function(e){var i=e.newPath.getValue(),s=e.oldPath.getValue();l.assert(s.loc,!0);var a=!r.tryToReprintComments(i,s,t);a&&r.deleteComments(s);var u=t(e.newPath,{includeComments:a,avoidRootParens:s.type===i.type&&e.oldPath.hasParens()}).indentTail(s.loc.indent),p=function(e,t,r){var n=(0,c.copyPos)(t.start),i=e.prevPos(n)&&e.charAt(n),s=r.charAt(r.firstPos());return i&&f.test(i)&&s&&f.test(s)}(o,s.loc,u),d=function(e,t,r){var n=e.charAt(t.end),i=r.lastPos(),s=r.prevPos(i)&&r.charAt(i);return s&&f.test(s)&&n&&f.test(n)}(o,s.loc,u);if(p||d){var h=[];p&&h.push(" "),h.push(u),d&&h.push(" "),u=n.concat(h)}r.replace(s.loc,u)}));var s=r.get(a).indentTail(-i.loc.indent);return e.needsParens()?n.concat(["(",s,")"]):s}}}}}),require_printer=__commonJS({"../../node_modules/.pnpm/recast@0.23.1/node_modules/recast/lib/printer.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Printer=void 0;var t=require_tslib(),r=t.__importDefault(require("assert")),n=t.__importStar(require_main()),i=require_comments(),s=t.__importDefault(require_fast_path()),a=require_lines(),o=require_options(),l=require_patcher(),c=t.__importStar(require_util2()),u=n.namedTypes,p=n.builtInTypes.string,d=n.builtInTypes.object,h=function e(t,n){r.default.ok(this instanceof e),p.assert(t),this.code=t,n&&(d.assert(n),this.map=n)},f=!1;h.prototype.toString=function(){return f||(console.warn("Deprecation warning: recast.print now returns an object with a .code property. You appear to be treating the object as a string, which might still work but is strongly discouraged."),f=!0),this.code};var m=new h("");function y(e,i,o,l){r.default.ok(e instanceof s.default);var p=e.getValue(),d=[],h=function(e,i,s){var o=e.getValue();if(!o)return(0,a.fromString)("");if("string"==typeof o)return(0,a.fromString)(o,i);u.Printable.assert(o);var l=[];switch(o.type){case"File":return e.call(s,"program");case"Program":return o.directives&&e.each((function(e){l.push(s(e),";\n")}),"directives"),o.interpreter&&l.push(e.call(s,"interpreter")),l.push(e.call((function(e){return g(e,i,s)}),"body")),(0,a.concat)(l);case"Noop":case"EmptyStatement":return(0,a.fromString)("");case"ExpressionStatement":return(0,a.concat)([e.call(s,"expression"),";"]);case"ParenthesizedExpression":return(0,a.concat)(["(",e.call(s,"expression"),")"]);case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":return(0,a.fromString)(" ").join([e.call(s,"left"),o.operator,e.call(s,"right")]);case"AssignmentPattern":return(0,a.concat)([e.call(s,"left")," = ",e.call(s,"right")]);case"MemberExpression":case"OptionalMemberExpression":l.push(e.call(s,"object"));var p=e.call(s,"property"),d=n.getFieldValue(o,"optional");return o.computed?l.push(d?"?.[":"[",p,"]"):l.push(d?"?.":".",p),(0,a.concat)(l);case"ChainExpression":return e.call(s,"expression");case"MetaProperty":return(0,a.concat)([e.call(s,"meta"),".",e.call(s,"property")]);case"BindExpression":return o.object&&l.push(e.call(s,"object")),l.push("::",e.call(s,"callee")),(0,a.concat)(l);case"Path":return(0,a.fromString)(".").join(o.body);case"Identifier":return(0,a.concat)([(0,a.fromString)(o.name,i),o.optional?"?":"",e.call(s,"typeAnnotation")]);case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"ObjectTypeSpreadProperty":case"RestElement":return(0,a.concat)(["...",e.call(s,"argument"),e.call(s,"typeAnnotation")]);case"FunctionDeclaration":case"FunctionExpression":case"TSDeclareFunction":return o.declare&&l.push("declare "),o.async&&l.push("async "),l.push("function"),o.generator&&l.push("*"),o.id?l.push(" ",e.call(s,"id"),e.call(s,"typeParameters")):o.typeParameters&&l.push(e.call(s,"typeParameters")),l.push("(",v(e,i,s),")",e.call(s,"returnType")),o.body&&l.push(" ",e.call(s,"body")),(0,a.concat)(l);case"ArrowFunctionExpression":return o.async&&l.push("async "),o.typeParameters&&l.push(e.call(s,"typeParameters")),i.arrowParensAlways||1!==o.params.length||o.rest||"Identifier"!==o.params[0].type||o.params[0].typeAnnotation||o.returnType?l.push("(",v(e,i,s),")",e.call(s,"returnType")):l.push(e.call(s,"params",0)),l.push(" => ",e.call(s,"body")),(0,a.concat)(l);case"MethodDefinition":return S(e,i,s);case"YieldExpression":return l.push("yield"),o.delegate&&l.push("*"),o.argument&&l.push(" ",e.call(s,"argument")),(0,a.concat)(l);case"AwaitExpression":return l.push("await"),o.all&&l.push("*"),o.argument&&l.push(" ",e.call(s,"argument")),(0,a.concat)(l);case"ModuleExpression":return(0,a.concat)(["module {\n",e.call(s,"body").indent(i.tabWidth),"\n}"]);case"ModuleDeclaration":return l.push("module",e.call(s,"id")),o.source?(r.default.ok(!o.body),l.push("from",e.call(s,"source"))):l.push(e.call(s,"body")),(0,a.fromString)(" ").join(l);case"ImportSpecifier":return o.importKind&&"value"!==o.importKind&&l.push(o.importKind+" "),o.imported?(l.push(e.call(s,"imported")),o.local&&o.local.name!==o.imported.name&&l.push(" as ",e.call(s,"local"))):o.id&&(l.push(e.call(s,"id")),o.name&&l.push(" as ",e.call(s,"name"))),(0,a.concat)(l);case"ExportSpecifier":return o.local?(l.push(e.call(s,"local")),o.exported&&o.exported.name!==o.local.name&&l.push(" as ",e.call(s,"exported"))):o.id&&(l.push(e.call(s,"id")),o.name&&l.push(" as ",e.call(s,"name"))),(0,a.concat)(l);case"ExportBatchSpecifier":return(0,a.fromString)("*");case"ImportNamespaceSpecifier":return l.push("* as "),o.local?l.push(e.call(s,"local")):o.id&&l.push(e.call(s,"id")),(0,a.concat)(l);case"ImportDefaultSpecifier":return o.local?e.call(s,"local"):e.call(s,"id");case"TSExportAssignment":return(0,a.concat)(["export = ",e.call(s,"expression")]);case"ExportDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return x(e,i,s);case"ExportAllDeclaration":return l.push("export *"),o.exported&&l.push(" as ",e.call(s,"exported")),l.push(" from ",e.call(s,"source"),";"),(0,a.concat)(l);case"TSNamespaceExportDeclaration":return l.push("export as namespace ",e.call(s,"id")),O((0,a.concat)(l));case"ExportNamespaceSpecifier":return(0,a.concat)(["* as ",e.call(s,"exported")]);case"ExportDefaultSpecifier":return e.call(s,"exported");case"Import":return(0,a.fromString)("import",i);case"ImportExpression":return(0,a.concat)(["import(",e.call(s,"source"),")"]);case"ImportDeclaration":if(l.push("import "),o.importKind&&"value"!==o.importKind&&l.push(o.importKind+" "),o.specifiers&&o.specifiers.length>0){var h=[],f=[];if(e.each((function(e){var t=e.getValue();"ImportSpecifier"===t.type?f.push(s(e)):"ImportDefaultSpecifier"!==t.type&&"ImportNamespaceSpecifier"!==t.type||h.push(s(e))}),"specifiers"),h.forEach((function(e,t){t>0&&l.push(", "),l.push(e)})),f.length>0)(Ae=(0,a.fromString)(", ").join(f)).getLineLength(1)>i.wrapColumn&&(Ae=(0,a.concat)([(0,a.fromString)(",\n").join(f).indent(i.tabWidth),","])),h.length>0&&l.push(", "),Ae.length>1?l.push("{\n",Ae,"\n}"):i.objectCurlySpacing?l.push("{ ",Ae," }"):l.push("{",Ae,"}");l.push(" from ")}return l.push(e.call(s,"source"),E(e,i,s),";"),(0,a.concat)(l);case"ImportAttribute":return(0,a.concat)([e.call(s,"key"),": ",e.call(s,"value")]);case"StaticBlock":l.push("static ");case"BlockStatement":var m=e.call((function(e){return g(e,i,s)}),"body");return!m.isEmpty()||o.directives&&0!==o.directives.length?(l.push("{\n"),o.directives&&e.each((function(e){l.push(O(s(e).indent(i.tabWidth)),o.directives.length>1||!m.isEmpty()?"\n":"")}),"directives"),l.push(m.indent(i.tabWidth)),l.push("\n}"),(0,a.concat)(l)):(l.push("{}"),(0,a.concat)(l));case"ReturnStatement":if(l.push("return"),o.argument){var y=e.call(s,"argument");y.startsWithComment()||y.length>1&&u.JSXElement&&u.JSXElement.check(o.argument)?l.push(" (\n",y.indent(i.tabWidth),"\n)"):l.push(" ",y)}return l.push(";"),(0,a.concat)(l);case"CallExpression":case"OptionalCallExpression":return l.push(e.call(s,"callee")),o.typeParameters&&l.push(e.call(s,"typeParameters")),o.typeArguments&&l.push(e.call(s,"typeArguments")),n.getFieldValue(o,"optional")&&l.push("?."),l.push(T(e,i,s)),(0,a.concat)(l);case"RecordExpression":l.push("#");case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":var C="ObjectTypeAnnotation"===o.type,N=i.flowObjectCommas?",":C?";":",",F=[],L=!1;C&&(F.push("indexers","callProperties"),null!=o.internalSlots&&F.push("internalSlots")),F.push("properties");var j=0;F.forEach((function(e){j+=o[e].length}));var M=C&&1===j||0===j,B=o.exact?"{|":"{",R=o.exact?"|}":"}";l.push(M?B:B+"\n");var q=l.length-1,U=0;if(F.forEach((function(t){e.each((function(e){var t=s(e);M||(t=t.indent(i.tabWidth));var r=!C&&t.length>1;r&&L&&l.push("\n"),l.push(t),U<j-1?(l.push(N+(r?"\n\n":"\n")),L=!r):(1!==j&&C||!M&&c.isTrailingCommaEnabled(i,"objects")&&"RestElement"!==e.getValue().type)&&l.push(N),U++}),t)})),o.inexact){var K=(0,a.fromString)("...",i);M?(j>0&&l.push(N," "),l.push(K)):l.push("\n",K.indent(i.tabWidth))}return l.push(M?R:"\n"+R),0!==U&&M&&i.objectCurlySpacing&&(l[q]=B+" ",l[l.length-1]=" "+R),o.typeAnnotation&&l.push(e.call(s,"typeAnnotation")),(0,a.concat)(l);case"PropertyPattern":return(0,a.concat)([e.call(s,"key"),": ",e.call(s,"pattern")]);case"ObjectProperty":case"Property":if(o.method||"get"===o.kind||"set"===o.kind)return S(e,i,s);if(o.shorthand&&"AssignmentPattern"===o.value.type)return e.call(s,"value");var J=e.call(s,"key");return o.computed?l.push("[",J,"]"):l.push(J),o.shorthand&&o.key.name===o.value.name||l.push(": ",e.call(s,"value")),(0,a.concat)(l);case"ClassMethod":case"ObjectMethod":case"ClassPrivateMethod":case"TSDeclareMethod":return S(e,i,s);case"PrivateName":return(0,a.concat)(["#",e.call(s,"id")]);case"Decorator":return(0,a.concat)(["@",e.call(s,"expression")]);case"TupleExpression":l.push("#");case"ArrayExpression":case"ArrayPattern":var V=o.elements.length,W=e.map(s,"elements"),z=(0,a.fromString)(", ").join(W).getLineLength(1)<=i.wrapColumn;return z?i.arrayBracketSpacing?l.push("[ "):l.push("["):l.push("[\n"),e.each((function(e){var t=e.getName();if(e.getValue()){var r=W[t];z?t>0&&l.push(" "):r=r.indent(i.tabWidth),l.push(r),(t<V-1||!z&&c.isTrailingCommaEnabled(i,"arrays"))&&l.push(","),z||l.push("\n")}else l.push(",")}),"elements"),z&&i.arrayBracketSpacing?l.push(" ]"):l.push("]"),o.typeAnnotation&&l.push(e.call(s,"typeAnnotation")),(0,a.concat)(l);case"SequenceExpression":return(0,a.fromString)(", ").join(e.map(s,"expressions"));case"ThisExpression":return(0,a.fromString)("this");case"Super":return(0,a.fromString)("super");case"NullLiteral":return(0,a.fromString)("null");case"RegExpLiteral":return(0,a.fromString)(I(o)||"/".concat(o.pattern,"/").concat(o.flags||""),i);case"BigIntLiteral":return(0,a.fromString)(I(o)||o.value+"n",i);case"NumericLiteral":return(0,a.fromString)(I(o)||o.value,i);case"DecimalLiteral":return(0,a.fromString)(I(o)||o.value+"m",i);case"StringLiteral":return(0,a.fromString)(k(o.value,i));case"BooleanLiteral":case"Literal":return(0,a.fromString)(I(o)||("string"==typeof o.value?k(o.value,i):o.value),i);case"Directive":return e.call(s,"value");case"DirectiveLiteral":return(0,a.fromString)(I(o)||k(o.value,i),i);case"InterpreterDirective":return(0,a.fromString)("#!".concat(o.value,"\n"),i);case"ModuleSpecifier":if(o.local)throw new Error("The ESTree ModuleSpecifier type should be abstract");return(0,a.fromString)(k(o.value,i),i);case"UnaryExpression":return l.push(o.operator),/[a-z]$/.test(o.operator)&&l.push(" "),l.push(e.call(s,"argument")),(0,a.concat)(l);case"UpdateExpression":return l.push(e.call(s,"argument"),o.operator),o.prefix&&l.reverse(),(0,a.concat)(l);case"ConditionalExpression":return(0,a.concat)([e.call(s,"test")," ? ",e.call(s,"consequent")," : ",e.call(s,"alternate")]);case"NewExpression":return l.push("new ",e.call(s,"callee")),o.typeParameters&&l.push(e.call(s,"typeParameters")),o.typeArguments&&l.push(e.call(s,"typeArguments")),o.arguments&&l.push(T(e,i,s)),(0,a.concat)(l);case"VariableDeclaration":o.declare&&l.push("declare "),l.push(o.kind," ");var Y=0,X=e.map((function(e){var t=s(e);return Y=Math.max(t.length,Y),t}),"declarations");1===Y?l.push((0,a.fromString)(", ").join(X)):X.length>1?l.push((0,a.fromString)(",\n").join(X).indentTail(o.kind.length+1)):l.push(X[0]);var $=e.getParentNode();return u.ForStatement.check($)||u.ForInStatement.check($)||u.ForOfStatement&&u.ForOfStatement.check($)||u.ForAwaitStatement&&u.ForAwaitStatement.check($)||l.push(";"),(0,a.concat)(l);case"VariableDeclarator":return o.init?(0,a.fromString)(" = ").join([e.call(s,"id"),e.call(s,"init")]):e.call(s,"id");case"WithStatement":return(0,a.concat)(["with (",e.call(s,"object"),") ",e.call(s,"body")]);case"IfStatement":var H=P(e.call(s,"consequent"),i);return l.push("if (",e.call(s,"test"),")",H),o.alternate&&l.push(D(H)?" else":"\nelse",P(e.call(s,"alternate"),i)),(0,a.concat)(l);case"ForStatement":var G=e.call(s,"init"),Q=G.length>1?";\n":"; ",Z="for (",ee=(0,a.fromString)(Q).join([G,e.call(s,"test"),e.call(s,"update")]).indentTail(Z.length),te=(0,a.concat)([Z,ee,")"]),re=P(e.call(s,"body"),i);return l.push(te),te.length>1&&(l.push("\n"),re=re.trimLeft()),l.push(re),(0,a.concat)(l);case"WhileStatement":return(0,a.concat)(["while (",e.call(s,"test"),")",P(e.call(s,"body"),i)]);case"ForInStatement":return(0,a.concat)([o.each?"for each (":"for (",e.call(s,"left")," in ",e.call(s,"right"),")",P(e.call(s,"body"),i)]);case"ForOfStatement":case"ForAwaitStatement":return l.push("for "),(o.await||"ForAwaitStatement"===o.type)&&l.push("await "),l.push("(",e.call(s,"left")," of ",e.call(s,"right"),")",P(e.call(s,"body"),i)),(0,a.concat)(l);case"DoWhileStatement":var ne=(0,a.concat)(["do",P(e.call(s,"body"),i)]);return l.push(ne),D(ne)?l.push(" while"):l.push("\nwhile"),l.push(" (",e.call(s,"test"),");"),(0,a.concat)(l);case"DoExpression":var ie=e.call((function(e){return g(e,i,s)}),"body");return(0,a.concat)(["do {\n",ie.indent(i.tabWidth),"\n}"]);case"BreakStatement":return l.push("break"),o.label&&l.push(" ",e.call(s,"label")),l.push(";"),(0,a.concat)(l);case"ContinueStatement":return l.push("continue"),o.label&&l.push(" ",e.call(s,"label")),l.push(";"),(0,a.concat)(l);case"LabeledStatement":return(0,a.concat)([e.call(s,"label"),":\n",e.call(s,"body")]);case"TryStatement":return l.push("try ",e.call(s,"block")),o.handler?l.push(" ",e.call(s,"handler")):o.handlers&&e.each((function(e){l.push(" ",s(e))}),"handlers"),o.finalizer&&l.push(" finally ",e.call(s,"finalizer")),(0,a.concat)(l);case"CatchClause":return l.push("catch "),o.param&&l.push("(",e.call(s,"param")),o.guard&&l.push(" if ",e.call(s,"guard")),o.param&&l.push(") "),l.push(e.call(s,"body")),(0,a.concat)(l);case"ThrowStatement":return(0,a.concat)(["throw ",e.call(s,"argument"),";"]);case"SwitchStatement":return(0,a.concat)(["switch (",e.call(s,"discriminant"),") {\n",(0,a.fromString)("\n").join(e.map(s,"cases")),"\n}"]);case"SwitchCase":return o.test?l.push("case ",e.call(s,"test"),":"):l.push("default:"),o.consequent.length>0&&l.push("\n",e.call((function(e){return g(e,i,s)}),"consequent").indent(i.tabWidth)),(0,a.concat)(l);case"DebuggerStatement":return(0,a.fromString)("debugger;");case"JSXAttribute":return l.push(e.call(s,"name")),o.value&&l.push("=",e.call(s,"value")),(0,a.concat)(l);case"JSXIdentifier":return(0,a.fromString)(o.name,i);case"JSXNamespacedName":return(0,a.fromString)(":").join([e.call(s,"namespace"),e.call(s,"name")]);case"JSXMemberExpression":return(0,a.fromString)(".").join([e.call(s,"object"),e.call(s,"property")]);case"JSXSpreadAttribute":return(0,a.concat)(["{...",e.call(s,"argument"),"}"]);case"JSXSpreadChild":return(0,a.concat)(["{...",e.call(s,"expression"),"}"]);case"JSXExpressionContainer":return(0,a.concat)(["{",e.call(s,"expression"),"}"]);case"JSXElement":case"JSXFragment":var se="opening"+("JSXElement"===o.type?"Element":"Fragment"),ae="closing"+("JSXElement"===o.type?"Element":"Fragment"),oe=e.call(s,se);if(o[se].selfClosing)return r.default.ok(!o[ae],"unexpected "+ae+" element in self-closing "+o.type),oe;var le=(0,a.concat)(e.map((function(e){var t=e.getValue();if(u.Literal.check(t)&&"string"==typeof t.value){if(/\S/.test(t.value))return t.value.replace(/^\s+|\s+$/g,"");if(/\n/.test(t.value))return"\n"}return s(e)}),"children")).indentTail(i.tabWidth),ce=e.call(s,ae);return(0,a.concat)([oe,le,ce]);case"JSXOpeningElement":l.push("<",e.call(s,"name"));var ue=[];e.each((function(e){ue.push(" ",s(e))}),"attributes");var pe=(0,a.concat)(ue);return(pe.length>1||pe.getLineLength(1)>i.wrapColumn)&&(ue.forEach((function(e,t){" "===e&&(r.default.strictEqual(t%2,0),ue[t]="\n")})),pe=(0,a.concat)(ue).indentTail(i.tabWidth)),l.push(pe,o.selfClosing?" />":">"),(0,a.concat)(l);case"JSXClosingElement":return(0,a.concat)(["</",e.call(s,"name"),">"]);case"JSXOpeningFragment":return(0,a.fromString)("<>");case"JSXClosingFragment":return(0,a.fromString)("</>");case"JSXText":return(0,a.fromString)(o.value,i);case"JSXEmptyExpression":return(0,a.fromString)("");case"TypeAnnotatedIdentifier":return(0,a.concat)([e.call(s,"annotation")," ",e.call(s,"identifier")]);case"ClassBody":return 0===o.body.length?(0,a.fromString)("{}"):(0,a.concat)(["{\n",e.call((function(e){return g(e,i,s)}),"body").indent(i.tabWidth),"\n}"]);case"ClassPropertyDefinition":return l.push("static ",e.call(s,"definition")),u.MethodDefinition.check(o.definition)||l.push(";"),(0,a.concat)(l);case"ClassProperty":o.declare&&l.push("declare ");var de=o.accessibility||o.access;"string"==typeof de&&l.push(de," "),o.static&&l.push("static "),o.abstract&&l.push("abstract "),o.readonly&&l.push("readonly ");J=e.call(s,"key");return o.computed&&(J=(0,a.concat)(["[",J,"]"])),o.variance&&(J=(0,a.concat)([A(e,s),J])),l.push(J),o.optional&&l.push("?"),o.definite&&l.push("!"),o.typeAnnotation&&l.push(e.call(s,"typeAnnotation")),o.value&&l.push(" = ",e.call(s,"value")),l.push(";"),(0,a.concat)(l);case"ClassPrivateProperty":return o.static&&l.push("static "),l.push(e.call(s,"key")),o.typeAnnotation&&l.push(e.call(s,"typeAnnotation")),o.value&&l.push(" = ",e.call(s,"value")),l.push(";"),(0,a.concat)(l);case"ClassAccessorProperty":return l.push.apply(l,t.__spreadArray(t.__spreadArray([],b(o),!1),["accessor "],!1)),o.computed?l.push("[",e.call(s,"key"),"]"):l.push(e.call(s,"key")),o.optional&&l.push("?"),o.definite&&l.push("!"),o.typeAnnotation&&l.push(e.call(s,"typeAnnotation")),o.value&&l.push(" = ",e.call(s,"value")),l.push(";"),(0,a.concat)(l);case"ClassDeclaration":case"ClassExpression":case"DeclareClass":return o.declare&&l.push("declare "),o.abstract&&l.push("abstract "),l.push("class"),o.id&&l.push(" ",e.call(s,"id")),o.typeParameters&&l.push(e.call(s,"typeParameters")),o.superClass&&l.push(" extends ",e.call(s,"superClass"),e.call(s,"superTypeParameters")),o.extends&&o.extends.length>0&&l.push(" extends ",(0,a.fromString)(", ").join(e.map(s,"extends"))),o.implements&&o.implements.length>0&&l.push(" implements ",(0,a.fromString)(", ").join(e.map(s,"implements"))),l.push(" ",e.call(s,"body")),"DeclareClass"===o.type?_(e,l):(0,a.concat)(l);case"TemplateElement":return(0,a.fromString)(o.value.raw,i).lockIndentTail();case"TemplateLiteral":var he=e.map(s,"expressions");return l.push("`"),e.each((function(e){var t=e.getName();l.push(s(e)),t<he.length&&l.push("${",he[t],"}")}),"quasis"),l.push("`"),(0,a.concat)(l).lockIndentTail();case"TaggedTemplateExpression":return(0,a.concat)([e.call(s,"tag"),e.call(s,"quasi")]);case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"Flow":case"FlowType":case"FlowPredicate":case"MemberTypeAnnotation":case"Type":case"TSHasOptionalTypeParameterInstantiation":case"TSHasOptionalTypeParameters":case"TSHasOptionalTypeAnnotation":case"ChainElement":throw new Error("unprintable type: "+JSON.stringify(o.type));case"CommentBlock":case"Block":return(0,a.concat)(["/*",(0,a.fromString)(o.value,i),"*/"]);case"CommentLine":case"Line":return(0,a.concat)(["//",(0,a.fromString)(o.value,i)]);case"TypeAnnotation":return o.typeAnnotation?("FunctionTypeAnnotation"!==o.typeAnnotation.type&&l.push(": "),l.push(e.call(s,"typeAnnotation")),(0,a.concat)(l)):(0,a.fromString)("");case"ExistentialTypeParam":case"ExistsTypeAnnotation":return(0,a.fromString)("*",i);case"EmptyTypeAnnotation":return(0,a.fromString)("empty",i);case"AnyTypeAnnotation":return(0,a.fromString)("any",i);case"MixedTypeAnnotation":return(0,a.fromString)("mixed",i);case"ArrayTypeAnnotation":return(0,a.concat)([e.call(s,"elementType"),"[]"]);case"TupleTypeAnnotation":var fe=e.map(s,"types"),me=(0,a.fromString)(", ").join(fe).getLineLength(1)<=i.wrapColumn;return me?i.arrayBracketSpacing?l.push("[ "):l.push("["):l.push("[\n"),e.each((function(e){var t=e.getName();if(e.getValue()){var r=fe[t];me?t>0&&l.push(" "):r=r.indent(i.tabWidth),l.push(r),(t<o.types.length-1||!me&&c.isTrailingCommaEnabled(i,"arrays"))&&l.push(","),me||l.push("\n")}else l.push(",")}),"types"),me&&i.arrayBracketSpacing?l.push(" ]"):l.push("]"),(0,a.concat)(l);case"BooleanTypeAnnotation":return(0,a.fromString)("boolean",i);case"BooleanLiteralTypeAnnotation":return r.default.strictEqual(typeof o.value,"boolean"),(0,a.fromString)(""+o.value,i);case"InterfaceTypeAnnotation":return l.push("interface"),o.extends&&o.extends.length>0&&l.push(" extends ",(0,a.fromString)(", ").join(e.map(s,"extends"))),l.push(" ",e.call(s,"body")),(0,a.concat)(l);case"DeclareFunction":return _(e,["function ",e.call(s,"id"),";"]);case"DeclareModule":return _(e,["module ",e.call(s,"id")," ",e.call(s,"body")]);case"DeclareModuleExports":return _(e,["module.exports",e.call(s,"typeAnnotation")]);case"DeclareVariable":return _(e,["var ",e.call(s,"id"),";"]);case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return(0,a.concat)(["declare ",x(e,i,s)]);case"EnumDeclaration":return(0,a.concat)(["enum ",e.call(s,"id"),e.call(s,"body")]);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":return("EnumSymbolBody"===o.type||o.explicitType)&&l.push(" of ",o.type.slice(4,-4).toLowerCase()),l.push(" {\n",(0,a.fromString)("\n").join(e.map(s,"members")).indent(i.tabWidth),"\n}"),(0,a.concat)(l);case"EnumDefaultedMember":return(0,a.concat)([e.call(s,"id"),","]);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return(0,a.concat)([e.call(s,"id")," = ",e.call(s,"init"),","]);case"InferredPredicate":return(0,a.fromString)("%checks",i);case"DeclaredPredicate":return(0,a.concat)(["%checks(",e.call(s,"value"),")"]);case"FunctionTypeAnnotation":var ye=e.getParentNode(0),ge=!(u.ObjectTypeCallProperty.check(ye)||u.ObjectTypeInternalSlot.check(ye)&&ye.method||u.DeclareFunction.check(e.getParentNode(2)));ge&&!u.FunctionTypeParam.check(ye)&&!u.TypeAlias.check(ye)&&l.push(": ");var be=!!o.typeParameters,Se=be||1!==o.params.length||o.params[0].name;return l.push(be?e.call(s,"typeParameters"):"",Se?"(":"",v(e,i,s),Se?")":""),o.returnType&&l.push(ge?" => ":": ",e.call(s,"returnType")),(0,a.concat)(l);case"FunctionTypeParam":var Te=e.call(s,"name");return l.push(Te),o.optional&&l.push("?"),Te.infos[0].line&&l.push(": "),l.push(e.call(s,"typeAnnotation")),(0,a.concat)(l);case"GenericTypeAnnotation":return(0,a.concat)([e.call(s,"id"),e.call(s,"typeParameters")]);case"DeclareInterface":l.push("declare ");case"InterfaceDeclaration":case"TSInterfaceDeclaration":return o.declare&&l.push("declare "),l.push("interface ",e.call(s,"id"),e.call(s,"typeParameters")," "),o.extends&&o.extends.length>0&&l.push("extends ",(0,a.fromString)(", ").join(e.map(s,"extends"))," "),o.body&&l.push(e.call(s,"body")),(0,a.concat)(l);case"ClassImplements":case"InterfaceExtends":return(0,a.concat)([e.call(s,"id"),e.call(s,"typeParameters")]);case"IntersectionTypeAnnotation":return(0,a.fromString)(" & ").join(e.map(s,"types"));case"NullableTypeAnnotation":return(0,a.concat)(["?",e.call(s,"typeAnnotation")]);case"NullLiteralTypeAnnotation":return(0,a.fromString)("null",i);case"ThisTypeAnnotation":return(0,a.fromString)("this",i);case"NumberTypeAnnotation":return(0,a.fromString)("number",i);case"ObjectTypeCallProperty":return e.call(s,"value");case"ObjectTypeIndexer":return o.static&&l.push("static "),l.push(A(e,s),"["),o.id&&l.push(e.call(s,"id"),": "),l.push(e.call(s,"key"),"]: ",e.call(s,"value")),(0,a.concat)(l);case"ObjectTypeProperty":return(0,a.concat)([A(e,s),e.call(s,"key"),o.optional?"?":"",": ",e.call(s,"value")]);case"ObjectTypeInternalSlot":return(0,a.concat)([o.static?"static ":"","[[",e.call(s,"id"),"]]",o.optional?"?":"","FunctionTypeAnnotation"!==o.value.type?": ":"",e.call(s,"value")]);case"QualifiedTypeIdentifier":return(0,a.concat)([e.call(s,"qualification"),".",e.call(s,"id")]);case"StringLiteralTypeAnnotation":return(0,a.fromString)(k(o.value,i),i);case"NumberLiteralTypeAnnotation":case"NumericLiteralTypeAnnotation":return r.default.strictEqual(typeof o.value,"number"),(0,a.fromString)(JSON.stringify(o.value),i);case"BigIntLiteralTypeAnnotation":return(0,a.fromString)(o.raw,i);case"StringTypeAnnotation":return(0,a.fromString)("string",i);case"DeclareTypeAlias":l.push("declare ");case"TypeAlias":return(0,a.concat)(["type ",e.call(s,"id"),e.call(s,"typeParameters")," = ",e.call(s,"right"),";"]);case"DeclareOpaqueType":l.push("declare ");case"OpaqueType":return l.push("opaque type ",e.call(s,"id"),e.call(s,"typeParameters")),o.supertype&&l.push(": ",e.call(s,"supertype")),o.impltype&&l.push(" = ",e.call(s,"impltype")),l.push(";"),(0,a.concat)(l);case"TypeCastExpression":return(0,a.concat)(["(",e.call(s,"expression"),e.call(s,"typeAnnotation"),")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":return(0,a.concat)(["<",(0,a.fromString)(", ").join(e.map(s,"params")),">"]);case"Variance":return"plus"===o.kind?(0,a.fromString)("+"):"minus"===o.kind?(0,a.fromString)("-"):(0,a.fromString)("");case"TypeParameter":return o.variance&&l.push(A(e,s)),l.push(e.call(s,"name")),o.bound&&l.push(e.call(s,"bound")),o.default&&l.push("=",e.call(s,"default")),(0,a.concat)(l);case"TypeofTypeAnnotation":return(0,a.concat)([(0,a.fromString)("typeof ",i),e.call(s,"argument")]);case"IndexedAccessType":case"OptionalIndexedAccessType":return(0,a.concat)([e.call(s,"objectType"),o.optional?"?.":"","[",e.call(s,"indexType"),"]"]);case"UnionTypeAnnotation":return(0,a.fromString)(" | ").join(e.map(s,"types"));case"VoidTypeAnnotation":return(0,a.fromString)("void",i);case"NullTypeAnnotation":return(0,a.fromString)("null",i);case"SymbolTypeAnnotation":return(0,a.fromString)("symbol",i);case"BigIntTypeAnnotation":return(0,a.fromString)("bigint",i);case"TSType":throw new Error("unprintable type: "+JSON.stringify(o.type));case"TSNumberKeyword":return(0,a.fromString)("number",i);case"TSBigIntKeyword":return(0,a.fromString)("bigint",i);case"TSObjectKeyword":return(0,a.fromString)("object",i);case"TSBooleanKeyword":return(0,a.fromString)("boolean",i);case"TSStringKeyword":return(0,a.fromString)("string",i);case"TSSymbolKeyword":return(0,a.fromString)("symbol",i);case"TSAnyKeyword":return(0,a.fromString)("any",i);case"TSVoidKeyword":return(0,a.fromString)("void",i);case"TSIntrinsicKeyword":return(0,a.fromString)("intrinsic",i);case"TSThisType":return(0,a.fromString)("this",i);case"TSNullKeyword":return(0,a.fromString)("null",i);case"TSUndefinedKeyword":return(0,a.fromString)("undefined",i);case"TSUnknownKeyword":return(0,a.fromString)("unknown",i);case"TSNeverKeyword":return(0,a.fromString)("never",i);case"TSArrayType":return(0,a.concat)([e.call(s,"elementType"),"[]"]);case"TSLiteralType":return e.call(s,"literal");case"TSUnionType":return(0,a.fromString)(" | ").join(e.map(s,"types"));case"TSIntersectionType":return(0,a.fromString)(" & ").join(e.map(s,"types"));case"TSConditionalType":return l.push(e.call(s,"checkType")," extends ",e.call(s,"extendsType")," ? ",e.call(s,"trueType")," : ",e.call(s,"falseType")),(0,a.concat)(l);case"TSInferType":return l.push("infer ",e.call(s,"typeParameter")),(0,a.concat)(l);case"TSParenthesizedType":return(0,a.concat)(["(",e.call(s,"typeAnnotation"),")"]);case"TSFunctionType":return(0,a.concat)([e.call(s,"typeParameters"),"(",v(e,i,s),") => ",e.call(s,"typeAnnotation","typeAnnotation")]);case"TSConstructorType":return(0,a.concat)(["new ",e.call(s,"typeParameters"),"(",v(e,i,s),") => ",e.call(s,"typeAnnotation","typeAnnotation")]);case"TSMappedType":return l.push(o.readonly?"readonly ":"","[",e.call(s,"typeParameter"),"]",o.optional?"?":""),o.typeAnnotation&&l.push(": ",e.call(s,"typeAnnotation"),";"),(0,a.concat)(["{\n",(0,a.concat)(l).indent(i.tabWidth),"\n}"]);case"TSTupleType":return(0,a.concat)(["[",(0,a.fromString)(", ").join(e.map(s,"elementTypes")),"]"]);case"TSNamedTupleMember":return l.push(e.call(s,"label")),o.optional&&l.push("?"),l.push(": ",e.call(s,"elementType")),(0,a.concat)(l);case"TSRestType":return(0,a.concat)(["...",e.call(s,"typeAnnotation")]);case"TSOptionalType":return(0,a.concat)([e.call(s,"typeAnnotation"),"?"]);case"TSIndexedAccessType":return(0,a.concat)([e.call(s,"objectType"),"[",e.call(s,"indexType"),"]"]);case"TSTypeOperator":return(0,a.concat)([e.call(s,"operator")," ",e.call(s,"typeAnnotation")]);case"TSTypeLiteral":var ve=(0,a.fromString)("\n").join(e.map(s,"members").map((function(e){return";"!==w(e)?e.concat(";"):e})));return ve.isEmpty()?(0,a.fromString)("{}",i):(l.push("{\n",ve.indent(i.tabWidth),"\n}"),(0,a.concat)(l));case"TSEnumMember":return l.push(e.call(s,"id")),o.initializer&&l.push(" = ",e.call(s,"initializer")),(0,a.concat)(l);case"TSTypeQuery":return(0,a.concat)(["typeof ",e.call(s,"exprName")]);case"TSParameterProperty":return o.accessibility&&l.push(o.accessibility," "),o.export&&l.push("export "),o.static&&l.push("static "),o.readonly&&l.push("readonly "),l.push(e.call(s,"parameter")),(0,a.concat)(l);case"TSTypeReference":return(0,a.concat)([e.call(s,"typeName"),e.call(s,"typeParameters")]);case"TSQualifiedName":return(0,a.concat)([e.call(s,"left"),".",e.call(s,"right")]);case"TSAsExpression":case"TSSatisfiesExpression":var Ee=e.call(s,"expression");return l.push(Ee,"TSSatisfiesExpression"===o.type?" satisfies ":" as ",e.call(s,"typeAnnotation")),(0,a.concat)(l);case"TSTypeCastExpression":return(0,a.concat)([e.call(s,"expression"),e.call(s,"typeAnnotation")]);case"TSNonNullExpression":return(0,a.concat)([e.call(s,"expression"),"!"]);case"TSTypeAnnotation":return(0,a.concat)([": ",e.call(s,"typeAnnotation")]);case"TSIndexSignature":return(0,a.concat)([o.readonly?"readonly ":"","[",e.map(s,"parameters"),"]",e.call(s,"typeAnnotation")]);case"TSPropertySignature":return l.push(A(e,s),o.readonly?"readonly ":""),o.computed?l.push("[",e.call(s,"key"),"]"):l.push(e.call(s,"key")),l.push(o.optional?"?":"",e.call(s,"typeAnnotation")),(0,a.concat)(l);case"TSMethodSignature":return o.computed?l.push("[",e.call(s,"key"),"]"):l.push(e.call(s,"key")),o.optional&&l.push("?"),l.push(e.call(s,"typeParameters"),"(",v(e,i,s),")",e.call(s,"typeAnnotation")),(0,a.concat)(l);case"TSTypePredicate":return o.asserts&&l.push("asserts "),l.push(e.call(s,"parameterName")),o.typeAnnotation&&l.push(" is ",e.call(s,"typeAnnotation","typeAnnotation")),(0,a.concat)(l);case"TSCallSignatureDeclaration":return(0,a.concat)([e.call(s,"typeParameters"),"(",v(e,i,s),")",e.call(s,"typeAnnotation")]);case"TSConstructSignatureDeclaration":return o.typeParameters?l.push("new",e.call(s,"typeParameters")):l.push("new "),l.push("(",v(e,i,s),")",e.call(s,"typeAnnotation")),(0,a.concat)(l);case"TSTypeAliasDeclaration":return(0,a.concat)([o.declare?"declare ":"","type ",e.call(s,"id"),e.call(s,"typeParameters")," = ",e.call(s,"typeAnnotation"),";"]);case"TSTypeParameter":l.push(e.call(s,"name"));ye=e.getParentNode(0);var xe=u.TSMappedType.check(ye);return o.constraint&&l.push(xe?" in ":" extends ",e.call(s,"constraint")),o.default&&l.push(" = ",e.call(s,"default")),(0,a.concat)(l);case"TSTypeAssertion":return l.push("<",e.call(s,"typeAnnotation"),"> ",e.call(s,"expression")),(0,a.concat)(l);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return(0,a.concat)(["<",(0,a.fromString)(", ").join(e.map(s,"params")),">"]);case"TSEnumDeclaration":l.push(o.declare?"declare ":"",o.const?"const ":"","enum ",e.call(s,"id"));var _e=(0,a.fromString)(",\n").join(e.map(s,"members"));return _e.isEmpty()?l.push(" {}"):l.push(" {\n",_e.indent(i.tabWidth),"\n}"),(0,a.concat)(l);case"TSExpressionWithTypeArguments":return(0,a.concat)([e.call(s,"expression"),e.call(s,"typeParameters")]);case"TSInterfaceBody":var Ae;return(Ae=(0,a.fromString)("\n").join(e.map(s,"body").map((function(e){return";"!==w(e)?e.concat(";"):e})))).isEmpty()?(0,a.fromString)("{}",i):(0,a.concat)(["{\n",Ae.indent(i.tabWidth),"\n}"]);case"TSImportType":return l.push("import(",e.call(s,"argument"),")"),o.qualifier&&l.push(".",e.call(s,"qualifier")),o.typeParameters&&l.push(e.call(s,"typeParameters")),(0,a.concat)(l);case"TSImportEqualsDeclaration":return o.isExport&&l.push("export "),l.push("import ",e.call(s,"id")," = ",e.call(s,"moduleReference")),O((0,a.concat)(l));case"TSExternalModuleReference":return(0,a.concat)(["require(",e.call(s,"expression"),")"]);case"TSModuleDeclaration":if("TSModuleDeclaration"===(ye=e.getParentNode()).type)l.push(".");else if(o.declare&&l.push("declare "),!o.global)if("StringLiteral"===o.id.type||"Literal"===o.id.type&&"string"==typeof o.id.value)l.push("module ");else if(o.loc&&o.loc.lines&&o.id.loc){o.loc.lines.sliceString(o.loc.start,o.id.loc.start).indexOf("module")>=0?l.push("module "):l.push("namespace ")}else l.push("namespace ");return l.push(e.call(s,"id")),o.body&&(l.push(" "),l.push(e.call(s,"body"))),(0,a.concat)(l);case"TSModuleBlock":var Pe=e.call((function(e){return g(e,i,s)}),"body");return Pe.isEmpty()?l.push("{}"):l.push("{\n",Pe.indent(i.tabWidth),"\n}"),(0,a.concat)(l);case"TSInstantiationExpression":return l.push(e.call(s,"expression"),e.call(s,"typeParameters")),(0,a.concat)(l);case"V8IntrinsicIdentifier":return(0,a.concat)(["%",e.call(s,"name")]);case"TopicReference":return(0,a.fromString)("#");default:throw new Error("unknown type: "+JSON.stringify(o.type))}}(e,i,l);if(!p||h.isEmpty())return h;var f=!1,m=function(e,t){var r=[],n=e.getValue();n.decorators&&n.decorators.length>0&&!c.getParentExportDeclaration(e)?e.each((function(e){r.push(t(e),"\n")}),"decorators"):c.isExportDeclaration(n)&&n.declaration&&n.declaration.decorators&&e.each((function(e){r.push(t(e),"\n")}),"declaration","decorators");return(0,a.concat)(r)}(e,l);return m.isEmpty()?o.avoidRootParens||(f=e.needsParens()):d.push(m),f&&d.unshift("("),d.push(h),f&&d.push(")"),(0,a.concat)(d)}function g(e,t,n){var i=[],s=!1,o=!1;e.each((function(e){var t=e.getValue();t&&("EmptyStatement"!==t.type||t.comments&&t.comments.length>0)&&(u.Comment.check(t)?s=!0:u.Statement.check(t)?o=!0:p.assert(t),i.push({node:t,printed:n(e)}))})),s&&r.default.strictEqual(o,!1,"Comments may appear as statements in otherwise empty statement lists, but may not coexist with non-Comment nodes.");var l=null,d=i.length,h=[];return i.forEach((function(e,r){var n,i,s=e.printed,o=e.node,u=s.length>1,p=r>0,f=r<d-1,m=o&&o.loc&&o.loc.lines,y=m&&t.reuseWhitespace&&c.getTrueLoc(o,m);if(p)if(y){var g=m.skipSpaces(y.start,!0),b=g?g.line:1,S=y.start.line-b;n=Array(S+1).join("\n")}else n=u?"\n\n":"\n";else n="";if(f)if(y){var T=m.skipSpaces(y.end),v=(T?T.line:m.length)-y.end.line;i=Array(v+1).join("\n")}else i=u?"\n\n":"\n";else i="";h.push(function(e,t){if(!e&&!t)return(0,a.fromString)("");if(!e)return(0,a.fromString)(t);if(!t)return(0,a.fromString)(e);var r=(0,a.fromString)(e),n=(0,a.fromString)(t);if(n.length>r.length)return n;return r}(l,n),s),f?l=i:i&&h.push(i)})),(0,a.concat)(h)}function b(e){var t=[];e.declare&&t.push("declare ");var r=e.accessibility||e.access;return"string"==typeof r&&t.push(r," "),e.static&&t.push("static "),e.override&&t.push("override "),e.abstract&&t.push("abstract "),e.readonly&&t.push("readonly "),t}function S(e,t,r){var n=e.getNode(),i=n.kind,s=[],o=n.value;u.FunctionExpression.check(o)||(o=n),s.push.apply(s,b(n)),o.async&&s.push("async "),o.generator&&s.push("*"),"get"!==i&&"set"!==i||s.push(i," ");var l=e.call(r,"key");return n.computed&&(l=(0,a.concat)(["[",l,"]"])),s.push(l),n.optional&&s.push("?"),n===o?(s.push(e.call(r,"typeParameters"),"(",v(e,t,r),")",e.call(r,"returnType")),n.body?s.push(" ",e.call(r,"body")):s.push(";")):(s.push(e.call(r,"value","typeParameters"),"(",e.call((function(e){return v(e,t,r)}),"value"),")",e.call(r,"value","returnType")),o.body?s.push(" ",e.call(r,"value","body")):s.push(";")),(0,a.concat)(s)}function T(e,t,r){var n=e.map(r,"arguments"),i=c.isTrailingCommaEnabled(t,"parameters"),s=(0,a.fromString)(", ").join(n);return s.getLineLength(1)>t.wrapColumn?(s=(0,a.fromString)(",\n").join(n),(0,a.concat)(["(\n",s.indent(t.tabWidth),i?",\n)":"\n)"])):(0,a.concat)(["(",s,")"])}function v(e,t,r){var n,i=e.getValue(),s=[];i.params?(n=i.params,s=e.map(r,"params")):i.parameters&&(n=i.parameters,s=e.map(r,"parameters")),i.defaults&&e.each((function(e){var t=e.getName(),n=s[t];n&&e.getValue()&&(s[t]=(0,a.concat)([n," = ",r(e)]))}),"defaults"),i.rest&&s.push((0,a.concat)(["...",e.call(r,"rest")]));var o=(0,a.fromString)(", ").join(s);return o.length>1||o.getLineLength(1)>t.wrapColumn?(o=(0,a.fromString)(",\n").join(s),o=c.isTrailingCommaEnabled(t,"parameters")&&!i.rest&&"RestElement"!==n[n.length-1].type?(0,a.concat)([o,",\n"]):(0,a.concat)([o,"\n"]),(0,a.concat)(["\n",o.indent(t.tabWidth)])):o}function E(e,t,r){var n=e.getValue();if(n.assertions&&n.assertions.length>0){var i=[" assert {"],s=e.map(r,"assertions"),o=(0,a.fromString)(", ").join(s);return o.length>1||o.getLineLength(1)>t.wrapColumn?i.push("\n",(0,a.fromString)(",\n").join(s).indent(t.tabWidth),"\n}"):i.push(" ",o," }"),(0,a.concat)(i)}return(0,a.fromString)("")}function x(e,t,r){var n=e.getValue(),i=["export "];n.exportKind&&"type"===n.exportKind&&(n.declaration||i.push("type "));var s=t.objectCurlySpacing;if(u.Declaration.assert(n),(n.default||"ExportDefaultDeclaration"===n.type)&&i.push("default "),n.declaration)i.push(e.call(r,"declaration"));else if(n.specifiers){if(1===n.specifiers.length&&"ExportBatchSpecifier"===n.specifiers[0].type)i.push("*");else if(0===n.specifiers.length)i.push("{}");else if("ExportDefaultSpecifier"===n.specifiers[0].type){var o=[],l=[];if(e.each((function(e){"ExportDefaultSpecifier"===e.getValue().type?o.push(r(e)):l.push(r(e))}),"specifiers"),o.forEach((function(e,t){t>0&&i.push(", "),i.push(e)})),l.length>0){var c=(0,a.fromString)(", ").join(l);c.getLineLength(1)>t.wrapColumn&&(c=(0,a.concat)([(0,a.fromString)(",\n").join(l).indent(t.tabWidth),","])),o.length>0&&i.push(", "),c.length>1?i.push("{\n",c,"\n}"):t.objectCurlySpacing?i.push("{ ",c," }"):i.push("{",c,"}")}}else i.push(s?"{ ":"{",(0,a.fromString)(", ").join(e.map(r,"specifiers")),s?" }":"}");n.source&&i.push(" from ",e.call(r,"source"),E(e,t,r))}var p=(0,a.concat)(i);return";"===w(p)||n.declaration&&("FunctionDeclaration"===n.declaration.type||"ClassDeclaration"===n.declaration.type||"TSModuleDeclaration"===n.declaration.type||"TSInterfaceDeclaration"===n.declaration.type||"TSEnumDeclaration"===n.declaration.type)||(p=(0,a.concat)([p,";"])),p}function _(e,t){var n=c.getParentExportDeclaration(e);return n?r.default.strictEqual(n.type,"DeclareExportDeclaration"):t.unshift("declare "),(0,a.concat)(t)}function A(e,t){return e.call((function(e){var r=e.getValue();return r?"plus"===r?(0,a.fromString)("+"):"minus"===r?(0,a.fromString)("-"):t(e):(0,a.fromString)("")}),"variance")}function P(e,t){return e.length>1?(0,a.concat)([" ",e]):(0,a.concat)(["\n",O(e).indent(t.tabWidth)])}function w(e){var t=e.lastPos();do{var r=e.charAt(t);if(/\S/.test(r))return r}while(e.prevPos(t))}function D(e){return"}"===w(e)}function C(e){return e.replace(/['"]/g,(function(e){return'"'===e?"'":'"'}))}function I(e){var t=n.getFieldValue(e,"value"),r=n.getFieldValue(e,"extra");if(r&&"string"==typeof r.raw&&t==r.rawValue)return r.raw;if("Literal"===e.type){var i=e.raw;if("string"==typeof i&&t==i)return i}}function N(e){return JSON.stringify(e).replace(/[\u2028\u2029]/g,(function(e){return"\\u"+e.charCodeAt(0).toString(16)}))}function k(e,t){switch(p.assert(e),t.quote){case"auto":var r=N(e),n=C(N(C(e)));return r.length>n.length?n:r;case"single":return C(N(C(e)));default:return N(e)}}function O(e){var t=w(e);return!t||"\n};".indexOf(t)<0?(0,a.concat)([e,";"]):e}e.Printer=function e(t){r.default.ok(this instanceof e);var n=t&&t.tabWidth;function a(e,t){return e=Object.assign({},e,t),function(t){return u(t,e)}}function u(e,o){if(r.default.ok(e instanceof s.default),(o=o||{}).includeComments)return(0,i.printComments)(e,a(o,{includeComments:!1}));var c=t.tabWidth;if(!n){var p=e.getNode().loc;p&&p.lines&&p.lines.guessTabWidth&&(t.tabWidth=p.lines.guessTabWidth())}var d=(0,l.getReprinter)(e),h=d?d(u):y(e,t,o,a(o,{includeComments:!0,avoidRootParens:!1}));return t.tabWidth=c,h}(t=(0,o.normalize)(t)).sourceFileName=null,this.print=function(e){if(!e)return m;var r=u(s.default.from(e),{includeComments:!0,avoidRootParens:!1});return new h(r.toString(t),c.composeSourceMaps(t.inputSourceMap,r.getSourceMap(t.sourceMapName,t.sourceRoot)))},this.printGenerically=function(e){if(!e)return m;var r=s.default.from(e),n=t.reuseWhitespace;t.reuseWhitespace=!1;var a=new h(function e(r){return(0,i.printComments)(r,(function(r){return y(r,t,{includeComments:!0,avoidRootParens:!1},e)}))}(r).toString(t));return t.reuseWhitespace=n,a}}}}),require_main2=__commonJS({"../../node_modules/.pnpm/recast@0.23.1/node_modules/recast/main.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.run=e.prettyPrint=e.print=e.visit=e.types=e.parse=void 0;var t=require_tslib(),r=t.__importDefault(require("fs")),n=t.__importStar(require_main());e.types=n;var i=require_parser();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return i.parse}});var s=require_printer(),a=require_main();function o(e,t){return new s.Printer(t).print(e)}function l(e){process.stdout.write(e)}Object.defineProperty(e,"visit",{enumerable:!0,get:function(){return a.visit}}),e.print=o,e.prettyPrint=function(e,t){return new s.Printer(t).printGenerically(e)},e.run=function(e,t){return function(e,t,n){r.default.readFile(e,"utf-8",(function(e,r){e?console.error(e):function(e,t,r){var n=r&&r.writeback||l;t((0,i.parse)(e,r),(function(e){n(o(e,r).code)}))}(r,t,n)}))}(process.argv[2],e,t)}}}),require_cjs=__commonJS({"../../node_modules/.pnpm/deepmerge@4.2.2/node_modules/deepmerge/dist/cjs.js"(e,t){var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function s(e,t,r){return e.concat(t).map((function(e){return i(e,r)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function l(e,t,r){var n={};return r.isMergeableObject(e)&&a(e).forEach((function(t){n[t]=i(e[t],r)})),a(t).forEach((function(s){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,s)||(o(e,s)&&r.isMergeableObject(t[s])?n[s]=function(e,t){if(!t.customMerge)return c;var r=t.customMerge(e);return"function"==typeof r?r:c}(s,r)(e[s],t[s],r):n[s]=i(t[s],r))})),n}function c(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||s,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=i;var a=Array.isArray(t);return a===Array.isArray(e)?a?n.arrayMerge(e,t,n):l(e,t,n):i(t,n)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return c(e,r,t)}),{})};var u=c;t.exports=u}}),lib_exports={};async function runPipeline(e,t,r){for(const n of t)await(n?.(e,r))}__export(lib_exports,{ArtifactKind:()=>ArtifactKind,Cache:()=>Cache,CachePolicy:()=>CachePolicy,CompiledFragmentKind:()=>CompiledFragmentKind,CompiledMutationKind:()=>CompiledMutationKind,CompiledQueryKind:()=>CompiledQueryKind,CompiledSubscriptionKind:()=>CompiledSubscriptionKind,Config:()=>Config,DataSource:()=>DataSource,DocumentStore:()=>DocumentStore,HoudiniClient:()=>HoudiniClient,HoudiniError:()=>HoudiniError,LogLevel:()=>LogLevel,PaginateMode:()=>PaginateMode,PendingValue:()=>PendingValue,RefetchUpdateMode:()=>RefetchUpdateMode,TypeWrapper:()=>TypeWrapper,buildLocalSchema:()=>buildLocalSchema,cleanupFiles:()=>cleanupFiles,computeID:()=>computeID,createPluginHooks:()=>createPluginHooks,deepMerge:()=>deepMerge2,defaultConfigValues:()=>defaultConfigValues,definitionFromAncestors:()=>definitionFromAncestors,detectFromPackageJSON:()=>detectFromPackageJSON,detectTools:()=>detectTools,ensureArtifactImport:()=>ensureArtifactImport,ensureImports:()=>ensureImports,enumReference:()=>enumReference,exec:()=>exec,extractHeaders:()=>extractHeaders,extractHeadersStr:()=>extractHeadersStr,extractQueries:()=>extractQueries,fetch:()=>fetch2,find_graphql:()=>find_graphql,find_match:()=>find_match,formatErrors:()=>formatErrors,fragmentKey:()=>fragmentKey,fs:()=>fs_exports,getConfig:()=>getConfig,getCurrentConfig:()=>getCurrentConfig,getMockConfig:()=>getMockConfig,getRootType:()=>getRootType,get_route_segments:()=>get_route_segments,get_session:()=>get_session,handle_request:()=>handle_request,hashOriginal:()=>hashOriginal,hashRaw:()=>hashRaw,houdini_mode:()=>houdini_mode,internalRoutes:()=>internalRoutes,isPending:()=>isPending,isSecondaryBuild:()=>isSecondaryBuild,keyFieldsForType:()=>keyFieldsForType,loadLocalSchema:()=>loadLocalSchema,load_manifest:()=>load_manifest,localApiEndpoint:()=>localApiEndpoint,localApiSessionKeys:()=>localApiSessionKeys,mutation:()=>mutation,nullableField:()=>nullableField,operation_requires_variables:()=>operation_requires_variables,orderedPlugins:()=>orderedPlugins,parentField:()=>parentField,parentTypeFromAncestors:()=>parentTypeFromAncestors,parseJS:()=>parseJS,parseJSON:()=>parseJSON,parse_page_pattern:()=>parse_page_pattern,path:()=>path_exports,plugin:()=>plugin,printJS:()=>printJS,processComponentFieldDirective:()=>processComponentFieldDirective,pullSchema:()=>pullSchema,query:()=>query,readConfigFile:()=>readConfigFile,readonlyProperty:()=>readonlyProperty,routerConventions:()=>conventions_exports,runPipeline:()=>runPipeline,scalarPropertyValue:()=>scalarPropertyValue,setMockConfig:()=>setMockConfig,siteURL:()=>siteURL,subscription:()=>subscription,tsTypeReference:()=>tsTypeReference,unwrapType:()=>unwrapType,unwrappedTsTypeReference:()=>unwrappedTsTypeReference,wrapType:()=>wrapType,writeTsConfig:()=>writeTsConfig}),module.exports=__toCommonJS(lib_exports);var import_graphql17=require("graphql"),import_graphql=require("graphql"),asArray=e=>Array.isArray(e)?e:e?[e]:[];function compareStrings(e,t){return String(e)<String(t)?-1:String(e)>String(t)?1:0}function nodeToString(e){var t,r;let n;return"alias"in e&&(n=null===(t=e.alias)||void 0===t?void 0:t.value),null==n&&"name"in e&&(n=null===(r=e.name)||void 0===r?void 0:r.value),null==n&&(n=e.kind),n}function compareNodes(e,t,r){const n=nodeToString(e),i=nodeToString(t);return"function"==typeof r?r(n,i):compareStrings(n,i)}function isSome(e){return null!=e}var AggregateErrorImpl,import_graphql2=require("graphql");if("undefined"==typeof AggregateError){class e extends Error{constructor(t,r=""){super(r),this.errors=t,this.name="AggregateError",Error.captureStackTrace(this,e)}}AggregateErrorImpl=function(t,r){return new e(t,r)}}else AggregateErrorImpl=AggregateError;function isAggregateError(e){return"errors"in e&&Array.isArray(e.errors)}var MAX_RECURSIVE_DEPTH=3;function inspect(e){return formatValue(e,[])}function formatValue(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return formatObjectValue(e,t);default:return String(e)}}function formatError(e){return e instanceof import_graphql2.GraphQLError?e.toString():`${e.name}: ${e.message};\n ${e.stack}`}function formatObjectValue(e,t){if(null===e)return"null";if(e instanceof Error)return isAggregateError(e)?formatError(e)+"\n"+formatArray(e.errors,t):formatError(e);if(t.includes(e))return"[Circular]";const r=[...t,e];if(isJSONable(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:formatValue(t,r)}else if(Array.isArray(e))return formatArray(e,r);return formatObject(e,r)}function isJSONable(e){return"function"==typeof e.toJSON}function formatObject(e,t){const r=Object.entries(e);if(0===r.length)return"{}";if(t.length>MAX_RECURSIVE_DEPTH)return"["+getObjectTag(e)+"]";return"{ "+r.map((([e,r])=>e+": "+formatValue(r,t))).join(", ")+" }"}function formatArray(e,t){if(0===e.length)return"[]";if(t.length>MAX_RECURSIVE_DEPTH)return"[Array]";const r=e.length,n=[];for(let i=0;i<r;++i)n.push(formatValue(e[i],t));return"["+n.join(", ")+"]"}function getObjectTag(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}function getDirectivesInExtensions(e,t=["directives"]){return t.reduce(((e,t)=>null==e?e:e[t]),null==e?void 0:e.extensions)}var import_graphql5=require("graphql"),import_graphql3=require("graphql");function astFromType(e){if((0,import_graphql3.isNonNullType)(e)){const t=astFromType(e.ofType);if(t.kind===import_graphql3.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${inspect(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:import_graphql3.Kind.NON_NULL_TYPE,type:t}}return(0,import_graphql3.isListType)(e)?{kind:import_graphql3.Kind.LIST_TYPE,type:astFromType(e.ofType)}:{kind:import_graphql3.Kind.NAMED_TYPE,name:{kind:import_graphql3.Kind.NAME,value:e.name}}}var import_graphql4=require("graphql");function astFromValueUntyped(e){if(null===e)return{kind:import_graphql4.Kind.NULL};if(void 0===e)return null;if(Array.isArray(e)){const t=[];for(const r of e){const e=astFromValueUntyped(r);null!=e&&t.push(e)}return{kind:import_graphql4.Kind.LIST,values:t}}if("object"==typeof e){const t=[];for(const r in e){const n=astFromValueUntyped(e[r]);n&&t.push({kind:import_graphql4.Kind.OBJECT_FIELD,name:{kind:import_graphql4.Kind.NAME,value:r},value:n})}return{kind:import_graphql4.Kind.OBJECT,fields:t}}if("boolean"==typeof e)return{kind:import_graphql4.Kind.BOOLEAN,value:e};if("number"==typeof e&&isFinite(e)){const t=String(e);return integerStringRegExp.test(t)?{kind:import_graphql4.Kind.INT,value:t}:{kind:import_graphql4.Kind.FLOAT,value:t}}if("string"==typeof e)return{kind:import_graphql4.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var integerStringRegExp=/^-?(?:0|[1-9][0-9]*)$/;function memoize1(e){const t=new WeakMap;return function(r){const n=t.get(r);if(void 0===n){const n=e(r);return t.set(r,n),n}return n}}var getRootTypeNames=memoize1((function(e){const t=getRootTypes(e);return new Set([...t].map((e=>e.name)))})),getRootTypes=memoize1((function(e){const t=getRootTypeMap(e);return new Set(t.values())})),getRootTypeMap=memoize1((function(e){const t=new Map,r=e.getQueryType();r&&t.set("query",r);const n=e.getMutationType();n&&t.set("mutation",n);const i=e.getSubscriptionType();return i&&t.set("subscription",i),t}));function getDocumentNodeFromSchema(e,t={}){const r=t.pathToDirectivesInExtensions,n=e.getTypeMap(),i=astFromSchema(e,r),s=null!=i?[i]:[],a=e.getDirectives();for(const t of a)(0,import_graphql5.isSpecifiedDirective)(t)||s.push(astFromDirective(t,e,r));for(const t in n){const i=n[t],a=(0,import_graphql5.isSpecifiedScalarType)(i),o=(0,import_graphql5.isIntrospectionType)(i);if(!a&&!o)if((0,import_graphql5.isObjectType)(i))s.push(astFromObjectType(i,e,r));else if((0,import_graphql5.isInterfaceType)(i))s.push(astFromInterfaceType(i,e,r));else if((0,import_graphql5.isUnionType)(i))s.push(astFromUnionType(i,e,r));else if((0,import_graphql5.isInputObjectType)(i))s.push(astFromInputObjectType(i,e,r));else if((0,import_graphql5.isEnumType)(i))s.push(astFromEnumType(i,e,r));else{if(!(0,import_graphql5.isScalarType)(i))throw new Error(`Unknown type ${i}.`);s.push(astFromScalarType(i,e,r))}}return{kind:import_graphql5.Kind.DOCUMENT,definitions:s}}function astFromSchema(e,t){var r,n;const i=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),s=[];if(null!=e.astNode&&s.push(e.astNode),null!=e.extensionASTNodes)for(const t of e.extensionASTNodes)s.push(t);for(const e of s)if(e.operationTypes)for(const t of e.operationTypes)i.set(t.operation,t);const a=getRootTypeMap(e);for(const[e,t]of i){const r=a.get(e);if(null!=r){const n=astFromType(r);null!=t?t.type=n:i.set(e,{kind:import_graphql5.Kind.OPERATION_TYPE_DEFINITION,operation:e,type:n})}}const o=[...i.values()].filter(isSome),l=getDirectiveNodes(e,e,t);if(!o.length&&!l.length)return null;const c={kind:null!=o?import_graphql5.Kind.SCHEMA_DEFINITION:import_graphql5.Kind.SCHEMA_EXTENSION,operationTypes:o,directives:l};return c.description=(null!==(n=null===(r=e.astNode)||void 0===r?void 0:r.description)&&void 0!==n?n:null!=e.description)?{kind:import_graphql5.Kind.STRING,value:e.description,block:!0}:void 0,c}function astFromDirective(e,t,r){var n,i,s,a;return{kind:import_graphql5.Kind.DIRECTIVE_DEFINITION,description:null!==(i=null===(n=e.astNode)||void 0===n?void 0:n.description)&&void 0!==i?i:e.description?{kind:import_graphql5.Kind.STRING,value:e.description}:void 0,name:{kind:import_graphql5.Kind.NAME,value:e.name},arguments:null===(s=e.args)||void 0===s?void 0:s.map((e=>astFromArg(e,t,r))),repeatable:e.isRepeatable,locations:(null===(a=e.locations)||void 0===a?void 0:a.map((e=>({kind:import_graphql5.Kind.NAME,value:e}))))||[]}}function getDirectiveNodes(e,t,r){const n=getDirectivesInExtensions(e,r);let i,s=[];if(null!=e.astNode&&s.push(e.astNode),"extensionASTNodes"in e&&null!=e.extensionASTNodes&&(s=s.concat(e.extensionASTNodes)),null!=n)i=makeDirectiveNodes(t,n);else{i=[];for(const e of s)e.directives&&i.push(...e.directives)}return i}function getDeprecatableDirectiveNodes(e,t,r){var n,i;let s=[],a=null;const o=getDirectivesInExtensions(e,r);let l;return l=null!=o?makeDirectiveNodes(t,o):null===(n=e.astNode)||void 0===n?void 0:n.directives,null!=l&&(s=l.filter((e=>"deprecated"!==e.name.value)),null!=e.deprecationReason&&(a=null===(i=l.filter((e=>"deprecated"===e.name.value)))||void 0===i?void 0:i[0])),null!=e.deprecationReason&&null==a&&(a=makeDeprecatedDirective(e.deprecationReason)),null==a?s:[a].concat(s)}function astFromArg(e,t,r){var n,i,s;return{kind:import_graphql5.Kind.INPUT_VALUE_DEFINITION,description:null!==(i=null===(n=e.astNode)||void 0===n?void 0:n.description)&&void 0!==i?i:e.description?{kind:import_graphql5.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:import_graphql5.Kind.NAME,value:e.name},type:astFromType(e.type),defaultValue:void 0!==e.defaultValue&&null!==(s=(0,import_graphql5.astFromValue)(e.defaultValue,e.type))&&void 0!==s?s:void 0,directives:getDeprecatableDirectiveNodes(e,t,r)}}function astFromObjectType(e,t,r){var n,i;return{kind:import_graphql5.Kind.OBJECT_TYPE_DEFINITION,description:null!==(i=null===(n=e.astNode)||void 0===n?void 0:n.description)&&void 0!==i?i:e.description?{kind:import_graphql5.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:import_graphql5.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map((e=>astFromField(e,t,r))),interfaces:Object.values(e.getInterfaces()).map((e=>astFromType(e))),directives:getDirectiveNodes(e,t,r)}}function astFromInterfaceType(e,t,r){var n,i;const s={kind:import_graphql5.Kind.INTERFACE_TYPE_DEFINITION,description:null!==(i=null===(n=e.astNode)||void 0===n?void 0:n.description)&&void 0!==i?i:e.description?{kind:import_graphql5.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:import_graphql5.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map((e=>astFromField(e,t,r))),directives:getDirectiveNodes(e,t,r)};return"getInterfaces"in e&&(s.interfaces=Object.values(e.getInterfaces()).map((e=>astFromType(e)))),s}function astFromUnionType(e,t,r){var n,i;return{kind:import_graphql5.Kind.UNION_TYPE_DEFINITION,description:null!==(i=null===(n=e.astNode)||void 0===n?void 0:n.description)&&void 0!==i?i:e.description?{kind:import_graphql5.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:import_graphql5.Kind.NAME,value:e.name},directives:getDirectiveNodes(e,t,r),types:e.getTypes().map((e=>astFromType(e)))}}function astFromInputObjectType(e,t,r){var n,i;return{kind:import_graphql5.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:null!==(i=null===(n=e.astNode)||void 0===n?void 0:n.description)&&void 0!==i?i:e.description?{kind:import_graphql5.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:import_graphql5.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map((e=>astFromInputField(e,t,r))),directives:getDirectiveNodes(e,t,r)}}function astFromEnumType(e,t,r){var n,i;return{kind:import_graphql5.Kind.ENUM_TYPE_DEFINITION,description:null!==(i=null===(n=e.astNode)||void 0===n?void 0:n.description)&&void 0!==i?i:e.description?{kind:import_graphql5.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:import_graphql5.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map((e=>astFromEnumValue(e,t,r))),directives:getDirectiveNodes(e,t,r)}}function astFromScalarType(e,t,r){var n,i,s;const a=getDirectivesInExtensions(e,r),o=a?makeDirectiveNodes(t,a):(null===(n=e.astNode)||void 0===n?void 0:n.directives)||[],l=e.specifiedByUrl||e.specifiedByURL;if(l&&!o.some((e=>"specifiedBy"===e.name.value))){const e={url:l};o.push(makeDirectiveNode("specifiedBy",e))}return{kind:import_graphql5.Kind.SCALAR_TYPE_DEFINITION,description:null!==(s=null===(i=e.astNode)||void 0===i?void 0:i.description)&&void 0!==s?s:e.description?{kind:import_graphql5.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:import_graphql5.Kind.NAME,value:e.name},directives:o}}function astFromField(e,t,r){var n,i;return{kind:import_graphql5.Kind.FIELD_DEFINITION,description:null!==(i=null===(n=e.astNode)||void 0===n?void 0:n.description)&&void 0!==i?i:e.description?{kind:import_graphql5.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:import_graphql5.Kind.NAME,value:e.name},arguments:e.args.map((e=>astFromArg(e,t,r))),type:astFromType(e.type),directives:getDeprecatableDirectiveNodes(e,t,r)}}function astFromInputField(e,t,r){var n,i,s;return{kind:import_graphql5.Kind.INPUT_VALUE_DEFINITION,description:null!==(i=null===(n=e.astNode)||void 0===n?void 0:n.description)&&void 0!==i?i:e.description?{kind:import_graphql5.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:import_graphql5.Kind.NAME,value:e.name},type:astFromType(e.type),directives:getDeprecatableDirectiveNodes(e,t,r),defaultValue:null!==(s=(0,import_graphql5.astFromValue)(e.defaultValue,e.type))&&void 0!==s?s:void 0}}function astFromEnumValue(e,t,r){var n,i;return{kind:import_graphql5.Kind.ENUM_VALUE_DEFINITION,description:null!==(i=null===(n=e.astNode)||void 0===n?void 0:n.description)&&void 0!==i?i:e.description?{kind:import_graphql5.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:import_graphql5.Kind.NAME,value:e.name},directives:getDeprecatableDirectiveNodes(e,t,r)}}function makeDeprecatedDirective(e){return makeDirectiveNode("deprecated",{reason:e},import_graphql5.GraphQLDeprecatedDirective)}function makeDirectiveNode(e,t,r){const n=[];if(null!=r)for(const e of r.args){const r=e.name,i=t[r];if(void 0!==i){const t=(0,import_graphql5.astFromValue)(i,e.type);t&&n.push({kind:import_graphql5.Kind.ARGUMENT,name:{kind:import_graphql5.Kind.NAME,value:r},value:t})}}else for(const e in t){const r=astFromValueUntyped(t[e]);r&&n.push({kind:import_graphql5.Kind.ARGUMENT,name:{kind:import_graphql5.Kind.NAME,value:e},value:r})}return{kind:import_graphql5.Kind.DIRECTIVE,name:{kind:import_graphql5.Kind.NAME,value:e},arguments:n}}function makeDirectiveNodes(e,t){const r=[];for(const n in t){const i=t[n],s=null==e?void 0:e.getDirective(n);if(Array.isArray(i))for(const e of i)r.push(makeDirectiveNode(n,e,s));else r.push(makeDirectiveNode(n,i,s))}return r}var import_graphql6=require("graphql"),MAX_LINE_LENGTH=80,commentsRegistry={};function resetComments(){commentsRegistry={}}function collectComment(e){var t;const r=null===(t=e.name)||void 0===t?void 0:t.value;if(null!=r)switch(pushComment(e,r),e.kind){case"EnumTypeDefinition":if(e.values)for(const t of e.values)pushComment(t,r,t.name.value);break;case"ObjectTypeDefinition":case"InputObjectTypeDefinition":case"InterfaceTypeDefinition":if(e.fields)for(const t of e.fields)if(pushComment(t,r,t.name.value),isFieldDefinitionNode(t)&&t.arguments)for(const e of t.arguments)pushComment(e,r,t.name.value,e.name.value)}}function pushComment(e,t,r,n){const i=getComment(e);if("string"!=typeof i||0===i.length)return;const s=[t];r&&(s.push(r),n&&s.push(n));const a=s.join(".");commentsRegistry[a]||(commentsRegistry[a]=[]),commentsRegistry[a].push(i)}function printComment(e){return"\n# "+e.replace(/\n/g,"\n# ")}function join(e,t){return e?e.filter((e=>e)).join(t||""):""}function hasMultilineItems(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}function addDescription(e){return(t,r,n,i,s)=>{var a;const o=[],l=i.reduce(((e,t)=>(["fields","arguments","values"].includes(t)&&e.name&&o.push(e.name.value),e[t])),s[0]),c=[...o,null===(a=null==l?void 0:l.name)||void 0===a?void 0:a.value].filter(Boolean).join("."),u=[];return t.kind.includes("Definition")&&commentsRegistry[c]&&u.push(...commentsRegistry[c]),join([...u.map(printComment),t.description,e(t,r,n,i,s)],"\n")}}function indent(e){return e&&`  ${e.replace(/\n/g,"\n  ")}`}function block(e){return e&&0!==e.length?`{\n${indent(join(e,"\n"))}\n}`:""}function wrap(e,t,r){return t?e+t+(r||""):""}function printBlockString(e,t=!1){const r=e.replace(/"""/g,'\\"""');return" "!==e[0]&&"\t"!==e[0]||-1!==e.indexOf("\n")?`"""\n${t?r:indent(r)}\n"""`:`"""${r.replace(/"$/,'"\n')}"""`}var MapperKind,printDocASTReducer={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>join(e.definitions,"\n\n")},OperationDefinition:{leave:e=>{const t=wrap("(",join(e.variableDefinitions,", "),")");return join([e.operation,join([e.name,t]),join(e.directives," ")]," ")+" "+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+wrap(" = ",r)+wrap(" ",join(n," "))},SelectionSet:{leave:({selections:e})=>block(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){const s=wrap("",e,": ")+t;let a=s+wrap("(",join(r,", "),")");return a.length>MAX_LINE_LENGTH&&(a=s+wrap("(\n",indent(join(r,"\n")),"\n)")),join([a,join(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+wrap(" ",join(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>join(["...",wrap("on ",e),join(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${wrap("(",join(r,", "),")")} on ${t} ${wrap("",join(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?printBlockString(e):JSON.stringify(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+join(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+join(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+wrap("(",join(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({directives:e,operationTypes:t})=>join(["schema",join(e," "),block(t)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({name:e,directives:t})=>join(["scalar",e,join(t," ")]," ")},ObjectTypeDefinition:{leave:({name:e,interfaces:t,directives:r,fields:n})=>join(["type",e,wrap("implements ",join(t," & ")),join(r," "),block(n)]," ")},FieldDefinition:{leave:({name:e,arguments:t,type:r,directives:n})=>e+(hasMultilineItems(t)?wrap("(\n",indent(join(t,"\n")),"\n)"):wrap("(",join(t,", "),")"))+": "+r+wrap(" ",join(n," "))},InputValueDefinition:{leave:({name:e,type:t,defaultValue:r,directives:n})=>join([e+": "+t,wrap("= ",r),join(n," ")]," ")},InterfaceTypeDefinition:{leave:({name:e,interfaces:t,directives:r,fields:n})=>join(["interface",e,wrap("implements ",join(t," & ")),join(r," "),block(n)]," ")},UnionTypeDefinition:{leave:({name:e,directives:t,types:r})=>join(["union",e,join(t," "),wrap("= ",join(r," | "))]," ")},EnumTypeDefinition:{leave:({name:e,directives:t,values:r})=>join(["enum",e,join(t," "),block(r)]," ")},EnumValueDefinition:{leave:({name:e,directives:t})=>join([e,join(t," ")]," ")},InputObjectTypeDefinition:{leave:({name:e,directives:t,fields:r})=>join(["input",e,join(t," "),block(r)]," ")},DirectiveDefinition:{leave:({name:e,arguments:t,repeatable:r,locations:n})=>"directive @"+e+(hasMultilineItems(t)?wrap("(\n",indent(join(t,"\n")),"\n)"):wrap("(",join(t,", "),")"))+(r?" repeatable":"")+" on "+join(n," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>join(["extend schema",join(e," "),block(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>join(["extend scalar",e,join(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>join(["extend type",e,wrap("implements ",join(t," & ")),join(r," "),block(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>join(["extend interface",e,wrap("implements ",join(t," & ")),join(r," "),block(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>join(["extend union",e,join(t," "),wrap("= ",join(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>join(["extend enum",e,join(t," "),block(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>join(["extend input",e,join(t," "),block(r)]," ")}},printDocASTReducerWithComments=Object.keys(printDocASTReducer).reduce(((e,t)=>({...e,[t]:{leave:addDescription(printDocASTReducer[t].leave)}})),{});function printWithComments(e){return(0,import_graphql6.visit)(e,printDocASTReducerWithComments)}function isFieldDefinitionNode(e){return"FieldDefinition"===e.kind}function getComment(e){const t=getLeadingCommentBlock(e);if(void 0!==t)return dedentBlockStringValue(`\n${t}`)}function getLeadingCommentBlock(e){const t=e.loc;if(!t)return;const r=[];let n=t.startToken.prev;for(;null!=n&&n.kind===import_graphql6.TokenKind.COMMENT&&null!=n.next&&null!=n.prev&&n.line+1===n.next.line&&n.line!==n.prev.line;){const e=String(n.value);r.push(e),n=n.prev}return r.length>0?r.reverse().join("\n"):void 0}function dedentBlockStringValue(e){const t=e.split(/\r\n|[\n\r]/g),r=getBlockStringIndentation(t);if(0!==r)for(let e=1;e<t.length;e++)t[e]=t[e].slice(r);for(;t.length>0&&isBlank(t[0]);)t.shift();for(;t.length>0&&isBlank(t[t.length-1]);)t.pop();return t.join("\n")}function getBlockStringIndentation(e){let t=null;for(let r=1;r<e.length;r++){const n=e[r],i=leadingWhitespace(n);if(i!==n.length&&((null===t||i<t)&&(t=i,0===t)))break}return null===t?0:t}function leadingWhitespace(e){let t=0;for(;t<e.length&&(" "===e[t]||"\t"===e[t]);)t++;return t}function isBlank(e){return leadingWhitespace(e)===e.length}!function(e){e.TYPE="MapperKind.TYPE",e.SCALAR_TYPE="MapperKind.SCALAR_TYPE",e.ENUM_TYPE="MapperKind.ENUM_TYPE",e.COMPOSITE_TYPE="MapperKind.COMPOSITE_TYPE",e.OBJECT_TYPE="MapperKind.OBJECT_TYPE",e.INPUT_OBJECT_TYPE="MapperKind.INPUT_OBJECT_TYPE",e.ABSTRACT_TYPE="MapperKind.ABSTRACT_TYPE",e.UNION_TYPE="MapperKind.UNION_TYPE",e.INTERFACE_TYPE="MapperKind.INTERFACE_TYPE",e.ROOT_OBJECT="MapperKind.ROOT_OBJECT",e.QUERY="MapperKind.QUERY",e.MUTATION="MapperKind.MUTATION",e.SUBSCRIPTION="MapperKind.SUBSCRIPTION",e.DIRECTIVE="MapperKind.DIRECTIVE",e.FIELD="MapperKind.FIELD",e.COMPOSITE_FIELD="MapperKind.COMPOSITE_FIELD",e.OBJECT_FIELD="MapperKind.OBJECT_FIELD",e.ROOT_FIELD="MapperKind.ROOT_FIELD",e.QUERY_ROOT_FIELD="MapperKind.QUERY_ROOT_FIELD",e.MUTATION_ROOT_FIELD="MapperKind.MUTATION_ROOT_FIELD",e.SUBSCRIPTION_ROOT_FIELD="MapperKind.SUBSCRIPTION_ROOT_FIELD",e.INTERFACE_FIELD="MapperKind.INTERFACE_FIELD",e.INPUT_OBJECT_FIELD="MapperKind.INPUT_OBJECT_FIELD",e.ARGUMENT="MapperKind.ARGUMENT",e.ENUM_VALUE="MapperKind.ENUM_VALUE"}(MapperKind||(MapperKind={}));var import_graphql11=require("graphql"),import_graphql7=require("graphql");function getObjectTypeFromTypeMap(e,t){if(t){const r=e[t.name];if((0,import_graphql7.isObjectType)(r))return r}}var import_graphql9=require("graphql"),import_graphql8=require("graphql");function isNamedStub(e){if("getFields"in e){const t=e.getFields();for(const e in t){return"_fake"===t[e].name}}return!1}function getBuiltInForStub(e){switch(e.name){case import_graphql8.GraphQLInt.name:return import_graphql8.GraphQLInt;case import_graphql8.GraphQLFloat.name:return import_graphql8.GraphQLFloat;case import_graphql8.GraphQLString.name:return import_graphql8.GraphQLString;case import_graphql8.GraphQLBoolean.name:return import_graphql8.GraphQLBoolean;case import_graphql8.GraphQLID.name:return import_graphql8.GraphQLID;default:return e}}function rewireTypes(e,t){const r=Object.create(null);for(const t in e)r[t]=e[t];const n=Object.create(null);for(const e in r){const t=r[e];if(null==t||e.startsWith("__"))continue;const i=t.name;i.startsWith("__")||(null==n[i]?n[i]=t:console.warn(`Duplicate schema type name ${i} found; keeping the existing one found in the schema`))}for(const e in n)n[e]=a(n[e]);const i=t.map((e=>function(e){if((0,import_graphql9.isSpecifiedDirective)(e))return e;const t=e.toConfig();return t.args=s(t.args),new import_graphql9.GraphQLDirective(t)}(e)));return{typeMap:n,directives:i};function s(e){const t={};for(const r in e){const n=e[r],i=c(n.type);null!=i&&(n.type=i,t[r]=n)}return t}function a(e){if((0,import_graphql9.isObjectType)(e)){const t=e.toConfig(),r={...t,fields:()=>o(t.fields),interfaces:()=>l(t.interfaces)};return new import_graphql9.GraphQLObjectType(r)}if((0,import_graphql9.isInterfaceType)(e)){const t=e.toConfig(),r={...t,fields:()=>o(t.fields)};return"interfaces"in r&&(r.interfaces=()=>l(t.interfaces)),new import_graphql9.GraphQLInterfaceType(r)}if((0,import_graphql9.isUnionType)(e)){const t=e.toConfig(),r={...t,types:()=>l(t.types)};return new import_graphql9.GraphQLUnionType(r)}if((0,import_graphql9.isInputObjectType)(e)){const t=e.toConfig(),r={...t,fields:()=>function(e){const t={};for(const r in e){const n=e[r],i=c(n.type);null!=i&&(n.type=i,t[r]=n)}return t}(t.fields)};return new import_graphql9.GraphQLInputObjectType(r)}if((0,import_graphql9.isEnumType)(e)){const t=e.toConfig();return new import_graphql9.GraphQLEnumType(t)}if((0,import_graphql9.isScalarType)(e)){if((0,import_graphql9.isSpecifiedScalarType)(e))return e;const t=e.toConfig();return new import_graphql9.GraphQLScalarType(t)}throw new Error(`Unexpected schema type: ${e}`)}function o(e){const t={};for(const r in e){const n=e[r],i=c(n.type);null!=i&&n.args&&(n.type=i,n.args=s(n.args),t[r]=n)}return t}function l(e){const t=[];for(const r of e){const e=c(r);null!=e&&t.push(e)}return t}function c(e){if((0,import_graphql9.isListType)(e)){const t=c(e.ofType);return null!=t?new import_graphql9.GraphQLList(t):null}if((0,import_graphql9.isNonNullType)(e)){const t=c(e.ofType);return null!=t?new import_graphql9.GraphQLNonNull(t):null}if((0,import_graphql9.isNamedType)(e)){let t=r[e.name];return void 0===t&&(t=isNamedStub(e)?getBuiltInForStub(e):a(e),n[t.name]=r[e.name]=t),null!=t?n[t.name]:null}return null}}var import_graphql10=require("graphql");function transformInputValue(e,t,r=null,n=null){if(null==t)return t;const i=(0,import_graphql10.getNullableType)(e);if((0,import_graphql10.isLeafType)(i))return null!=r?r(i,t):t;if((0,import_graphql10.isListType)(i))return asArray(t).map((e=>transformInputValue(i.ofType,e,r,n)));if((0,import_graphql10.isInputObjectType)(i)){const e=i.getFields(),s={};for(const i in t){const a=e[i];null!=a&&(s[i]=transformInputValue(a.type,t[i],r,n))}return null!=n?n(i,s):s}}function serializeInputValue(e,t){return transformInputValue(e,t,((e,t)=>{try{return e.serialize(t)}catch(e){return t}}))}function parseInputValue(e,t){return transformInputValue(e,t,((e,t)=>{try{return e.parseValue(t)}catch(e){return t}}))}function mapSchema(e,t={}){const r=mapArguments(mapFields(mapTypes(mapDefaultValues(mapEnumValues(mapTypes(mapDefaultValues(e.getTypeMap(),e,serializeInputValue),e,t,(e=>(0,import_graphql11.isLeafType)(e))),e,t),e,parseInputValue),e,t,(e=>!(0,import_graphql11.isLeafType)(e))),e,t),e,t),n=mapDirectives(e.getDirectives(),e,t),{typeMap:i,directives:s}=rewireTypes(r,n);return new import_graphql11.GraphQLSchema({...e.toConfig(),query:getObjectTypeFromTypeMap(i,getObjectTypeFromTypeMap(r,e.getQueryType())),mutation:getObjectTypeFromTypeMap(i,getObjectTypeFromTypeMap(r,e.getMutationType())),subscription:getObjectTypeFromTypeMap(i,getObjectTypeFromTypeMap(r,e.getSubscriptionType())),types:Object.values(i),directives:s})}function mapTypes(e,t,r,n=()=>!0){const i={};for(const s in e)if(!s.startsWith("__")){const a=e[s];if(null==a||!n(a)){i[s]=a;continue}const o=getTypeMapper(t,r,s);if(null==o){i[s]=a;continue}const l=o(a,t);if(void 0===l){i[s]=a;continue}i[s]=l}return i}function mapEnumValues(e,t,r){const n=getEnumValueMapper(r);return n?mapTypes(e,t,{[MapperKind.ENUM_TYPE]:e=>{const r=e.toConfig(),i=r.values,s={};for(const r in i){const a=i[r],o=n(a,e.name,t,r);if(void 0===o)s[r]=a;else if(Array.isArray(o)){const[e,t]=o;s[e]=void 0===t?a:t}else null!==o&&(s[r]=o)}return correctASTNodes(new import_graphql11.GraphQLEnumType({...r,values:s}))}},(e=>(0,import_graphql11.isEnumType)(e))):e}function mapDefaultValues(e,t,r){const n=mapArguments(e,t,{[MapperKind.ARGUMENT]:t=>{if(void 0===t.defaultValue)return t;const n=getNewType(e,t.type);return null!=n?{...t,defaultValue:r(n,t.defaultValue)}:void 0}});return mapFields(n,t,{[MapperKind.INPUT_OBJECT_FIELD]:e=>{if(void 0===e.defaultValue)return e;const t=getNewType(n,e.type);return null!=t?{...e,defaultValue:r(t,e.defaultValue)}:void 0}})}function getNewType(e,t){if((0,import_graphql11.isListType)(t)){const r=getNewType(e,t.ofType);return null!=r?new import_graphql11.GraphQLList(r):null}if((0,import_graphql11.isNonNullType)(t)){const r=getNewType(e,t.ofType);return null!=r?new import_graphql11.GraphQLNonNull(r):null}if((0,import_graphql11.isNamedType)(t)){const r=e[t.name];return null!=r?r:null}return null}function mapFields(e,t,r){const n={};for(const i in e)if(!i.startsWith("__")){const s=e[i];if(!(0,import_graphql11.isObjectType)(s)&&!(0,import_graphql11.isInterfaceType)(s)&&!(0,import_graphql11.isInputObjectType)(s)){n[i]=s;continue}const a=getFieldMapper(t,r,i);if(null==a){n[i]=s;continue}const o=s.toConfig(),l=o.fields,c={};for(const e in l){const r=l[e],n=a(r,e,i,t);if(void 0===n)c[e]=r;else if(Array.isArray(n)){const[e,t]=n;null!=t.astNode&&(t.astNode={...t.astNode,name:{...t.astNode.name,value:e}}),c[e]=void 0===t?r:t}else null!==n&&(c[e]=n)}(0,import_graphql11.isObjectType)(s)?n[i]=correctASTNodes(new import_graphql11.GraphQLObjectType({...o,fields:c})):(0,import_graphql11.isInterfaceType)(s)?n[i]=correctASTNodes(new import_graphql11.GraphQLInterfaceType({...o,fields:c})):n[i]=correctASTNodes(new import_graphql11.GraphQLInputObjectType({...o,fields:c}))}return n}function mapArguments(e,t,r){const n={};for(const i in e)if(!i.startsWith("__")){const s=e[i];if(!(0,import_graphql11.isObjectType)(s)&&!(0,import_graphql11.isInterfaceType)(s)){n[i]=s;continue}const a=getArgumentMapper(r);if(null==a){n[i]=s;continue}const o=s.toConfig(),l=o.fields,c={};for(const e in l){const r=l[e],n=r.args;if(null==n){c[e]=r;continue}const s=Object.keys(n);if(!s.length){c[e]=r;continue}const o={};for(const r of s){const s=n[r],l=a(s,e,i,t);if(void 0===l)o[r]=s;else if(Array.isArray(l)){const[e,t]=l;o[e]=t}else null!==l&&(o[r]=l)}c[e]={...r,args:o}}(0,import_graphql11.isObjectType)(s)?n[i]=new import_graphql11.GraphQLObjectType({...o,fields:c}):(0,import_graphql11.isInterfaceType)(s)?n[i]=new import_graphql11.GraphQLInterfaceType({...o,fields:c}):n[i]=new import_graphql11.GraphQLInputObjectType({...o,fields:c})}return n}function mapDirectives(e,t,r){const n=getDirectiveMapper(r);if(null==n)return e.slice();const i=[];for(const r of e){const e=n(r,t);void 0===e?i.push(r):null!==e&&i.push(e)}return i}function getTypeSpecifiers(e,t){var r,n,i;const s=e.getType(t),a=[MapperKind.TYPE];return(0,import_graphql11.isObjectType)(s)?(a.push(MapperKind.COMPOSITE_TYPE,MapperKind.OBJECT_TYPE),t===(null===(r=e.getQueryType())||void 0===r?void 0:r.name)?a.push(MapperKind.ROOT_OBJECT,MapperKind.QUERY):t===(null===(n=e.getMutationType())||void 0===n?void 0:n.name)?a.push(MapperKind.ROOT_OBJECT,MapperKind.MUTATION):t===(null===(i=e.getSubscriptionType())||void 0===i?void 0:i.name)&&a.push(MapperKind.ROOT_OBJECT,MapperKind.SUBSCRIPTION)):(0,import_graphql11.isInputObjectType)(s)?a.push(MapperKind.INPUT_OBJECT_TYPE):(0,import_graphql11.isInterfaceType)(s)?a.push(MapperKind.COMPOSITE_TYPE,MapperKind.ABSTRACT_TYPE,MapperKind.INTERFACE_TYPE):(0,import_graphql11.isUnionType)(s)?a.push(MapperKind.COMPOSITE_TYPE,MapperKind.ABSTRACT_TYPE,MapperKind.UNION_TYPE):(0,import_graphql11.isEnumType)(s)?a.push(MapperKind.ENUM_TYPE):(0,import_graphql11.isScalarType)(s)&&a.push(MapperKind.SCALAR_TYPE),a}function getTypeMapper(e,t,r){let n;const i=[...getTypeSpecifiers(e,r)];for(;!n&&i.length>0;){n=t[i.pop()]}return null!=n?n:null}function getFieldSpecifiers(e,t){var r,n,i;const s=e.getType(t),a=[MapperKind.FIELD];return(0,import_graphql11.isObjectType)(s)?(a.push(MapperKind.COMPOSITE_FIELD,MapperKind.OBJECT_FIELD),t===(null===(r=e.getQueryType())||void 0===r?void 0:r.name)?a.push(MapperKind.ROOT_FIELD,MapperKind.QUERY_ROOT_FIELD):t===(null===(n=e.getMutationType())||void 0===n?void 0:n.name)?a.push(MapperKind.ROOT_FIELD,MapperKind.MUTATION_ROOT_FIELD):t===(null===(i=e.getSubscriptionType())||void 0===i?void 0:i.name)&&a.push(MapperKind.ROOT_FIELD,MapperKind.SUBSCRIPTION_ROOT_FIELD)):(0,import_graphql11.isInterfaceType)(s)?a.push(MapperKind.COMPOSITE_FIELD,MapperKind.INTERFACE_FIELD):(0,import_graphql11.isInputObjectType)(s)&&a.push(MapperKind.INPUT_OBJECT_FIELD),a}function getFieldMapper(e,t,r){let n;const i=[...getFieldSpecifiers(e,r)];for(;!n&&i.length>0;){n=t[i.pop()]}return null!=n?n:null}function getArgumentMapper(e){const t=e[MapperKind.ARGUMENT];return null!=t?t:null}function getDirectiveMapper(e){const t=e[MapperKind.DIRECTIVE];return null!=t?t:null}function getEnumValueMapper(e){const t=e[MapperKind.ENUM_VALUE];return null!=t?t:null}function correctASTNodes(e){if((0,import_graphql11.isObjectType)(e)){const t=e.toConfig();if(null!=t.astNode){const e=[];for(const r in t.fields){const n=t.fields[r];null!=n.astNode&&e.push(n.astNode)}t.astNode={...t.astNode,kind:import_graphql11.Kind.OBJECT_TYPE_DEFINITION,fields:e}}return null!=t.extensionASTNodes&&(t.extensionASTNodes=t.extensionASTNodes.map((e=>({...e,kind:import_graphql11.Kind.OBJECT_TYPE_EXTENSION,fields:void 0})))),new import_graphql11.GraphQLObjectType(t)}if((0,import_graphql11.isInterfaceType)(e)){const t=e.toConfig();if(null!=t.astNode){const e=[];for(const r in t.fields){const n=t.fields[r];null!=n.astNode&&e.push(n.astNode)}t.astNode={...t.astNode,kind:import_graphql11.Kind.INTERFACE_TYPE_DEFINITION,fields:e}}return null!=t.extensionASTNodes&&(t.extensionASTNodes=t.extensionASTNodes.map((e=>({...e,kind:import_graphql11.Kind.INTERFACE_TYPE_EXTENSION,fields:void 0})))),new import_graphql11.GraphQLInterfaceType(t)}if((0,import_graphql11.isInputObjectType)(e)){const t=e.toConfig();if(null!=t.astNode){const e=[];for(const r in t.fields){const n=t.fields[r];null!=n.astNode&&e.push(n.astNode)}t.astNode={...t.astNode,kind:import_graphql11.Kind.INPUT_OBJECT_TYPE_DEFINITION,fields:e}}return null!=t.extensionASTNodes&&(t.extensionASTNodes=t.extensionASTNodes.map((e=>({...e,kind:import_graphql11.Kind.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0})))),new import_graphql11.GraphQLInputObjectType(t)}if((0,import_graphql11.isEnumType)(e)){const t=e.toConfig();if(null!=t.astNode){const e=[];for(const r in t.values){const n=t.values[r];null!=n.astNode&&e.push(n.astNode)}t.astNode={...t.astNode,values:e}}return null!=t.extensionASTNodes&&(t.extensionASTNodes=t.extensionASTNodes.map((e=>({...e,values:void 0})))),new import_graphql11.GraphQLEnumType(t)}return e}var import_graphql12=require("graphql");function healSchema(e){return healTypes(e.getTypeMap(),e.getDirectives()),e}function healTypes(e,t){const r=Object.create(null);for(const t in e){const n=e[t];if(null==n||t.startsWith("__"))continue;const i=n.name;i.startsWith("__")||(null==r[i]?r[i]=n:console.warn(`Duplicate schema type name ${i} found; keeping the existing one found in the schema`))}for(const t in r){const n=r[t];e[t]=n}for(const e of t)e.args=e.args.filter((e=>(e.type=a(e.type),null!==e.type)));for(const t in e){const i=e[t];!t.startsWith("__")&&t in r&&null!=i&&n(i)}for(const t in e)t.startsWith("__")||t in r||delete e[t];function n(e){if((0,import_graphql12.isObjectType)(e))return i(e),void s(e);if((0,import_graphql12.isInterfaceType)(e))return i(e),void("getInterfaces"in e&&s(e));if((0,import_graphql12.isUnionType)(e))!function(e){const t=e.getTypes();t.push(...t.splice(0).map((e=>a(e))).filter(Boolean))}(e);else if((0,import_graphql12.isInputObjectType)(e))!function(e){const t=e.getFields();for(const[e,r]of Object.entries(t))r.type=a(r.type),null===r.type&&delete t[e]}(e);else if(!(0,import_graphql12.isLeafType)(e))throw new Error(`Unexpected schema type: ${e}`)}function i(e){const t=e.getFields();for(const[e,r]of Object.entries(t))r.args.map((e=>(e.type=a(e.type),null===e.type?null:e))).filter(Boolean),r.type=a(r.type),null===r.type&&delete t[e]}function s(e){if("getInterfaces"in e){const t=e.getInterfaces();t.push(...t.splice(0).map((e=>a(e))).filter(Boolean))}}function a(t){if((0,import_graphql12.isListType)(t)){const e=a(t.ofType);return null!=e?new import_graphql12.GraphQLList(e):null}if((0,import_graphql12.isNonNullType)(t)){const e=a(t.ofType);return null!=e?new import_graphql12.GraphQLNonNull(e):null}if((0,import_graphql12.isNamedType)(t)){const r=e[t.name];if(r&&t!==r)return r}return t}}var import_graphql13=require("graphql");function getResolversFromSchema(e,t){var r,n;const i=Object.create(null),s=e.getTypeMap();for(const e in s)if(!e.startsWith("__")){const a=s[e];if((0,import_graphql13.isScalarType)(a)){if(!(0,import_graphql13.isSpecifiedScalarType)(a)){const t=a.toConfig();delete t.astNode,i[e]=new import_graphql13.GraphQLScalarType(t)}}else if((0,import_graphql13.isEnumType)(a)){i[e]={};const t=a.getValues();for(const r of t)i[e][r.name]=r.value}else if((0,import_graphql13.isInterfaceType)(a))null!=a.resolveType&&(i[e]={__resolveType:a.resolveType});else if((0,import_graphql13.isUnionType)(a))null!=a.resolveType&&(i[e]={__resolveType:a.resolveType});else if((0,import_graphql13.isObjectType)(a)){i[e]={},null!=a.isTypeOf&&(i[e].__isTypeOf=a.isTypeOf);const s=a.getFields();for(const a in s){const o=s[a];if(null!=o.subscribe&&(i[e][a]=i[e][a]||{},i[e][a].subscribe=o.subscribe),null!=o.resolve&&"defaultFieldResolver"!==(null===(r=o.resolve)||void 0===r?void 0:r.name)){switch(null===(n=o.resolve)||void 0===n?void 0:n.name){case"defaultMergedResolver":if(!t)continue;break;case"defaultFieldResolver":continue}i[e][a]=i[e][a]||{},i[e][a].resolve=o.resolve}}}}return i}var import_graphql14=require("graphql");function forEachField(e,t){const r=e.getTypeMap();for(const e in r){const n=r[e];if(!(0,import_graphql14.getNamedType)(n).name.startsWith("__")&&(0,import_graphql14.isObjectType)(n)){const r=n.getFields();for(const n in r){t(r[n],e,n)}}}}var import_graphql15=require("graphql");function forEachDefaultValue(e,t){const r=e.getTypeMap();for(const e in r){const n=r[e];if(!(0,import_graphql15.getNamedType)(n).name.startsWith("__"))if((0,import_graphql15.isObjectType)(n)){const e=n.getFields();for(const r in e){const n=e[r];for(const e of n.args)e.defaultValue=t(e.type,e.defaultValue)}}else if((0,import_graphql15.isInputObjectType)(n)){const e=n.getFields();for(const r in e){const n=e[r];n.defaultValue=t(n.type,n.defaultValue)}}}}function mergeDeep(e,t=!1){const r=e[0]||{},n={};t&&Object.setPrototypeOf(n,Object.create(Object.getPrototypeOf(r)));for(const i of e)if(isObject(r)&&isObject(i)){if(t){const e=Object.getPrototypeOf(n),t=Object.getPrototypeOf(i);if(t)for(const r of Object.getOwnPropertyNames(t)){const n=Object.getOwnPropertyDescriptor(t,r);isSome(n)&&Object.defineProperty(e,r,n)}}for(const e in i)isObject(i[e])?e in n?n[e]=mergeDeep([n[e],i[e]],t):Object.assign(n,{[e]:i[e]}):Object.assign(n,{[e]:i[e]})}return n}function isObject(e){return e&&"object"==typeof e&&!Array.isArray(e)}var import_graphql16=require("graphql");function isDocumentNode(e){return e&&"object"==typeof e&&"kind"in e&&e.kind===import_graphql16.Kind.DOCUMENT}function extractExtensionsFromSchema(e){const t={schemaExtensions:e.extensions||{},types:{}};return mapSchema(e,{[MapperKind.OBJECT_TYPE]:e=>(t.types[e.name]={fields:{},type:"object",extensions:e.extensions||{}},e),[MapperKind.INTERFACE_TYPE]:e=>(t.types[e.name]={fields:{},type:"interface",extensions:e.extensions||{}},e),[MapperKind.FIELD]:(e,r,n)=>{t.types[n].fields[r]={arguments:{},extensions:e.extensions||{}};const i=e.args;if(null!=i)for(const e in i)t.types[n].fields[r].arguments[e]=i[e].extensions||{};return e},[MapperKind.ENUM_TYPE]:e=>(t.types[e.name]={values:{},type:"enum",extensions:e.extensions||{}},e),[MapperKind.ENUM_VALUE]:(e,r,n,i)=>(t.types[r].values[i]=e.extensions||{},e),[MapperKind.SCALAR_TYPE]:e=>(t.types[e.name]={type:"scalar",extensions:e.extensions||{}},e),[MapperKind.UNION_TYPE]:e=>(t.types[e.name]={type:"union",extensions:e.extensions||{}},e),[MapperKind.INPUT_OBJECT_TYPE]:e=>(t.types[e.name]={fields:{},type:"input",extensions:e.extensions||{}},e),[MapperKind.INPUT_OBJECT_FIELD]:(e,r,n)=>(t.types[n].fields[r]={extensions:e.extensions||{}},e)}),t}function assertResolversPresent(e,t={}){const{requireResolversForArgs:r,requireResolversForNonScalar:n,requireResolversForAllFields:i}=t;if(i&&(r||n))throw new TypeError("requireResolversForAllFields takes precedence over the more specific assertions. Please configure either requireResolversForAllFields or requireResolversForArgs / requireResolversForNonScalar, but not a combination of them.");forEachField(e,((e,t,s)=>{i&&expectResolver("requireResolversForAllFields",i,e,t,s),r&&e.args.length>0&&expectResolver("requireResolversForArgs",r,e,t,s),"ignore"===n||(0,import_graphql17.isScalarType)((0,import_graphql17.getNamedType)(e.type))||expectResolver("requireResolversForNonScalar",n,e,t,s)}))}function expectResolver(e,t,r,n,i){if(r.resolve){if("function"!=typeof r.resolve)throw new Error(`Resolver "${n}.${i}" must be a function`)}else{const r=`Resolver missing for "${n}.${i}".\nTo disable this validator, use:\n  resolverValidationOptions: {\n    ${e}: 'ignore'\n  }`;if("error"===t)throw new Error(r);"warn"===t&&console.warn(r)}}var import_graphql18=require("graphql");function checkForResolveTypeResolver(e,t){mapSchema(e,{[MapperKind.ABSTRACT_TYPE]:e=>{if(!e.resolveType){const r=`Type "${e.name}" is missing a "__resolveType" resolver. Pass 'ignore' into "resolverValidationOptions.requireResolversForResolveType" to disable this error.`;if("error"===t)throw new Error(r);"warn"===t&&console.warn(r)}}})}function extendResolversFromInterfaces(e,t){const r={},n=e.getTypeMap();for(const e in n){const i=n[e];if("getInterfaces"in i){r[e]={};for(const n of i.getInterfaces())if(t[n.name])for(const i in t[n.name])"__isTypeOf"!==i&&i.startsWith("__")||(r[e][i]=t[n.name][i]);const n=t[e];r[e]={...r[e],...n}}else{const n=t[e];null!=n&&(r[e]=n)}}return r}function addResolversToSchema({schema:e,resolvers:t,defaultFieldResolver:r,resolverValidationOptions:n={},inheritResolversFromInterfaces:i=!1,updateResolversInPlace:s=!1}){const{requireResolversToMatchSchema:a="error",requireResolversForResolveType:o}=n,l=i?extendResolversFromInterfaces(e,t):t;for(const t in l){const r=l[t];if("object"!==typeof r)throw new Error(`"${t}" defined in resolvers, but has invalid value "${r}". The resolver's value must be of type object.`);const n=e.getType(t);if(null==n){if("ignore"===a)continue;throw new Error(`"${t}" defined in resolvers, but not in schema`)}if((0,import_graphql18.isSpecifiedScalarType)(n))for(const e in r)e.startsWith("__")?n[e.substring(2)]=r[e]:n[e]=r[e];else if((0,import_graphql18.isEnumType)(n)){const e=n.getValues();for(const t in r)if(!t.startsWith("__")&&!e.some((e=>e.name===t))&&a&&"ignore"!==a)throw new Error(`${n.name}.${t} was defined in resolvers, but not present within ${n.name}`)}else if((0,import_graphql18.isUnionType)(n)){for(const e in r)if(!e.startsWith("__")&&a&&"ignore"!==a)throw new Error(`${n.name}.${e} was defined in resolvers, but ${n.name} is not an object or interface type`)}else if((0,import_graphql18.isObjectType)(n)||(0,import_graphql18.isInterfaceType)(n))for(const e in r)if(!e.startsWith("__")){if(null==n.getFields()[e]){if(a&&"ignore"!==a)throw new Error(`${t}.${e} defined in resolvers, but not in schema`)}else{const n=r[e];if("function"!=typeof n&&"object"!=typeof n)throw new Error(`Resolver ${t}.${e} must be object or function`)}}}return e=s?addResolversToExistingSchema(e,l,r):createNewSchemaWithResolvers(e,l,r),o&&"ignore"!==o&&checkForResolveTypeResolver(e,o),e}function addResolversToExistingSchema(e,t,r){var n,i,s,a,o,l,c,u,p,d,h,f;const m=e.getTypeMap();for(const r in t){const y=e.getType(r),g=t[r];if((0,import_graphql18.isScalarType)(y))for(const e in g)e.startsWith("__")?y[e.substring(2)]=g[e]:"astNode"===e&&null!=y.astNode?y.astNode={...y.astNode,description:null!==(i=null===(n=null==g?void 0:g.astNode)||void 0===n?void 0:n.description)&&void 0!==i?i:y.astNode.description,directives:(null!==(s=y.astNode.directives)&&void 0!==s?s:[]).concat(null!==(o=null===(a=null==g?void 0:g.astNode)||void 0===a?void 0:a.directives)&&void 0!==o?o:[])}:"extensionASTNodes"===e&&null!=y.extensionASTNodes?y.extensionASTNodes=y.extensionASTNodes.concat(null!==(l=null==g?void 0:g.extensionASTNodes)&&void 0!==l?l:[]):"extensions"===e&&null!=y.extensions&&null!=g.extensions?y.extensions=Object.assign(Object.create(null),y.extensions,g.extensions):y[e]=g[e];else if((0,import_graphql18.isEnumType)(y)){const e=y.toConfig(),t=e.values;for(const r in g)r.startsWith("__")?e[r.substring(2)]=g[r]:"astNode"===r&&null!=e.astNode?e.astNode={...e.astNode,description:null!==(u=null===(c=null==g?void 0:g.astNode)||void 0===c?void 0:c.description)&&void 0!==u?u:e.astNode.description,directives:(null!==(p=e.astNode.directives)&&void 0!==p?p:[]).concat(null!==(h=null===(d=null==g?void 0:g.astNode)||void 0===d?void 0:d.directives)&&void 0!==h?h:[])}:"extensionASTNodes"===r&&null!=e.extensionASTNodes?e.extensionASTNodes=e.extensionASTNodes.concat(null!==(f=null==g?void 0:g.extensionASTNodes)&&void 0!==f?f:[]):"extensions"===r&&null!=y.extensions&&null!=g.extensions?y.extensions=Object.assign(Object.create(null),y.extensions,g.extensions):t[r]&&(t[r].value=g[r]);m[r]=new import_graphql18.GraphQLEnumType(e)}else if((0,import_graphql18.isUnionType)(y))for(const e in g)e.startsWith("__")&&(y[e.substring(2)]=g[e]);else if((0,import_graphql18.isObjectType)(y)||(0,import_graphql18.isInterfaceType)(y))for(const e in g){if(e.startsWith("__")){y[e.substring(2)]=g[e];continue}const t=y.getFields()[e];if(null!=t){const r=g[e];"function"==typeof r?t.resolve=r.bind(g):setFieldProperties(t,r)}}}return forEachDefaultValue(e,serializeInputValue),healSchema(e),forEachDefaultValue(e,parseInputValue),null!=r&&forEachField(e,(e=>{e.resolve||(e.resolve=r)})),e}function createNewSchemaWithResolvers(e,t,r){return e=mapSchema(e,{[MapperKind.SCALAR_TYPE]:e=>{var r,n,i,s,a,o;const l=e.toConfig(),c=t[e.name];if(!(0,import_graphql18.isSpecifiedScalarType)(e)&&null!=c){for(const t in c)t.startsWith("__")?l[t.substring(2)]=c[t]:"astNode"===t&&null!=l.astNode?l.astNode={...l.astNode,description:null!==(n=null===(r=null==c?void 0:c.astNode)||void 0===r?void 0:r.description)&&void 0!==n?n:l.astNode.description,directives:(null!==(i=l.astNode.directives)&&void 0!==i?i:[]).concat(null!==(a=null===(s=null==c?void 0:c.astNode)||void 0===s?void 0:s.directives)&&void 0!==a?a:[])}:"extensionASTNodes"===t&&null!=l.extensionASTNodes?l.extensionASTNodes=l.extensionASTNodes.concat(null!==(o=null==c?void 0:c.extensionASTNodes)&&void 0!==o?o:[]):"extensions"===t&&null!=l.extensions&&null!=c.extensions?l.extensions=Object.assign(Object.create(null),e.extensions,c.extensions):l[t]=c[t];return new import_graphql18.GraphQLScalarType(l)}},[MapperKind.ENUM_TYPE]:e=>{var r,n,i,s,a,o;const l=t[e.name],c=e.toConfig(),u=c.values;if(null!=l){for(const t in l)t.startsWith("__")?c[t.substring(2)]=l[t]:"astNode"===t&&null!=c.astNode?c.astNode={...c.astNode,description:null!==(n=null===(r=null==l?void 0:l.astNode)||void 0===r?void 0:r.description)&&void 0!==n?n:c.astNode.description,directives:(null!==(i=c.astNode.directives)&&void 0!==i?i:[]).concat(null!==(a=null===(s=null==l?void 0:l.astNode)||void 0===s?void 0:s.directives)&&void 0!==a?a:[])}:"extensionASTNodes"===t&&null!=c.extensionASTNodes?c.extensionASTNodes=c.extensionASTNodes.concat(null!==(o=null==l?void 0:l.extensionASTNodes)&&void 0!==o?o:[]):"extensions"===t&&null!=c.extensions&&null!=l.extensions?c.extensions=Object.assign(Object.create(null),e.extensions,l.extensions):u[t]&&(u[t].value=l[t]);return new import_graphql18.GraphQLEnumType(c)}},[MapperKind.UNION_TYPE]:e=>{const r=t[e.name];if(null!=r){const t=e.toConfig();return r.__resolveType&&(t.resolveType=r.__resolveType),new import_graphql18.GraphQLUnionType(t)}},[MapperKind.OBJECT_TYPE]:e=>{const r=t[e.name];if(null!=r){const t=e.toConfig();return r.__isTypeOf&&(t.isTypeOf=r.__isTypeOf),new import_graphql18.GraphQLObjectType(t)}},[MapperKind.INTERFACE_TYPE]:e=>{const r=t[e.name];if(null!=r){const t=e.toConfig();return r.__resolveType&&(t.resolveType=r.__resolveType),new import_graphql18.GraphQLInterfaceType(t)}},[MapperKind.COMPOSITE_FIELD]:(e,r,n)=>{const i=t[n];if(null!=i){const t=i[r];if(null!=t){const r={...e};return"function"==typeof t?r.resolve=t.bind(i):setFieldProperties(r,t),r}}}}),null!=r&&(e=mapSchema(e,{[MapperKind.OBJECT_FIELD]:e=>({...e,resolve:null!=e.resolve?e.resolve:r})})),e}function setFieldProperties(e,t){for(const r in t)e[r]=t[r]}var import_graphql30=require("graphql");function mergeResolvers(e,t){if(!e||Array.isArray(e)&&0===e.length)return{};if(!Array.isArray(e))return e;if(1===e.length)return e[0]||{};const r=new Array;for(let t of e)Array.isArray(t)&&(t=mergeResolvers(t)),"object"==typeof t&&t&&r.push(t);const n=mergeDeep(r,!0);if(null==t?void 0:t.exclusions)for(const e of t.exclusions){const[t,r]=e.split(".");r&&"*"!==r?n[t]&&delete n[t][r]:delete n[t]}return n}function mergeArguments(e,t,r){const n=deduplicateArguments([...t,...e].filter(isSome));return r&&r.sort&&n.sort(compareNodes),n}function deduplicateArguments(e){return e.reduce(((e,t)=>e.find((e=>e.name.value===t.name.value))?e:e.concat([t])),[])}var import_graphql19=require("graphql");function directiveAlreadyExists(e,t){return!!e.find((e=>e.name.value===t.name.value))}function nameAlreadyExists(e,t){return t.some((({value:t})=>t===e.value))}function mergeArguments2(e,t){const r=[...t];for(const t of e){const e=r.findIndex((e=>e.name.value===t.name.value));if(e>-1){const n=r[e];if("ListValue"===n.value.kind){const e=n.value.values,r=t.value.values;n.value.values=deduplicateLists(e,r,((e,t)=>{const r=e.value;return!r||!t.some((e=>e.value===r))}))}else n.value=t.value}else r.push(t)}return r}function deduplicateDirectives(e){return e.map(((e,t,r)=>{const n=r.findIndex((t=>t.name.value===e.name.value));if(n!==t){const t=r[n];return e.arguments=mergeArguments2(e.arguments,t.arguments),null}return e})).filter(isSome)}function mergeDirectives(e=[],t=[],r){const n=r&&r.reverseDirectives,i=n?t:e,s=deduplicateDirectives([...n?e:t]);for(const e of i)if(directiveAlreadyExists(s,e)){const t=s.findIndex((t=>t.name.value===e.name.value)),r=s[t];s[t].arguments=mergeArguments2(e.arguments||[],r.arguments||[])}else s.push(e);return s}function validateInputs(e,t){const r=(0,import_graphql19.print)({...e,description:void 0}),n=(0,import_graphql19.print)({...t,description:void 0}),i=new RegExp("(directive @w*d*)|( on .*$)","g");if(!(r.replace(i,"")===n.replace(i,"")))throw new Error(`Unable to merge GraphQL directive "${e.name.value}". \nExisting directive:  \n\t${n} \nReceived directive: \n\t${r}`)}function mergeDirective(e,t){return t?(validateInputs(e,t),{...e,locations:[...t.locations,...e.locations.filter((e=>!nameAlreadyExists(e,t.locations)))]}):e}function deduplicateLists(e,t,r){return e.concat(t.filter((t=>r(t,e))))}function mergeEnumValues(e,t,r){if(null==r?void 0:r.consistentEnumMerge){const r=[];e&&r.push(...e),e=t,t=r}const n=new Map;if(e)for(const t of e)n.set(t.name.value,t);if(t)for(const e of t){const t=e.name.value;if(n.has(t)){const r=n.get(t);r.description=e.description||r.description,r.directives=mergeDirectives(e.directives,r.directives)}else n.set(t,e)}const i=[...n.values()];return r&&r.sort&&i.sort(compareNodes),i}var import_graphql20=require("graphql");function mergeEnum(e,t,r){return t?{name:e.name,description:e.description||t.description,kind:(null==r?void 0:r.convertExtensions)||"EnumTypeDefinition"===e.kind||"EnumTypeDefinition"===t.kind?"EnumTypeDefinition":"EnumTypeExtension",loc:e.loc,directives:mergeDirectives(e.directives,t.directives,r),values:mergeEnumValues(e.values,t.values,r)}:(null==r?void 0:r.convertExtensions)?{...e,kind:import_graphql20.Kind.ENUM_TYPE_DEFINITION}:e}var CompareVal,import_graphql21=require("graphql");function isStringTypes(e){return"string"==typeof e}function isSourceTypes(e){return e instanceof import_graphql21.Source}function extractType(e){let t=e;for(;t.kind===import_graphql21.Kind.LIST_TYPE||"NonNullType"===t.kind;)t=t.type;return t}function isWrappingTypeNode(e){return e.kind!==import_graphql21.Kind.NAMED_TYPE}function isListTypeNode(e){return e.kind===import_graphql21.Kind.LIST_TYPE}function isNonNullTypeNode(e){return e.kind===import_graphql21.Kind.NON_NULL_TYPE}function printTypeNode(e){return isListTypeNode(e)?`[${printTypeNode(e.type)}]`:isNonNullTypeNode(e)?`${printTypeNode(e.type)}!`:e.name.value}function defaultStringComparator(e,t){return null==e&&null==t?CompareVal.A_EQUALS_B:null==e?CompareVal.A_SMALLER_THAN_B:null==t?CompareVal.A_GREATER_THAN_B:e<t?CompareVal.A_SMALLER_THAN_B:e>t?CompareVal.A_GREATER_THAN_B:CompareVal.A_EQUALS_B}function fieldAlreadyExists(e,t,r){const n=e.find((e=>e.name.value===t.name.value));if(n&&!(null==r?void 0:r.ignoreFieldConflicts)){const e=extractType(n.type),r=extractType(t.type);if(e.name.value!==r.name.value)throw new Error(`Field "${t.name.value}" already defined with a different type. Declared as "${e.name.value}", but you tried to override with "${r.name.value}"`)}return!!n}function mergeFields(e,t,r,n){const i=[];if(null!=r&&i.push(...r),null!=t)for(const r of t)if(fieldAlreadyExists(i,r,n)){const t=i.find((e=>e.name.value===r.name.value));(null==n?void 0:n.ignoreFieldConflicts)||((null==n?void 0:n.throwOnConflict)?preventConflicts(e,t,r,!1):preventConflicts(e,t,r,!0),isNonNullTypeNode(r.type)&&!isNonNullTypeNode(t.type)&&(t.type=r.type)),t.arguments=mergeArguments(r.arguments||[],t.arguments||[],n),t.directives=mergeDirectives(r.directives,t.directives,n),t.description=r.description||t.description}else i.push(r);if(n&&n.sort&&i.sort(compareNodes),n&&n.exclusions){const t=n.exclusions;return i.filter((r=>!t.includes(`${e.name.value}.${r.name.value}`)))}return i}function preventConflicts(e,t,r,n=!1){const i=printTypeNode(t.type),s=printTypeNode(r.type);if(i!==s&&!safeChangeForFieldType(t.type,r.type,n))throw new Error(`Field '${e.name.value}.${t.name.value}' changed type from '${i}' to '${s}'`)}function safeChangeForFieldType(e,t,r=!1){if(!isWrappingTypeNode(e)&&!isWrappingTypeNode(t))return e.toString()===t.toString();if(isNonNullTypeNode(t)){return safeChangeForFieldType(isNonNullTypeNode(e)?e.type:e,t.type)}return isNonNullTypeNode(e)?safeChangeForFieldType(t,e,r):!!isListTypeNode(e)&&(isListTypeNode(t)&&safeChangeForFieldType(e.type,t.type)||isNonNullTypeNode(t)&&safeChangeForFieldType(e,t.type))}!function(e){e[e.A_SMALLER_THAN_B=-1]="A_SMALLER_THAN_B",e[e.A_EQUALS_B=0]="A_EQUALS_B",e[e.A_GREATER_THAN_B=1]="A_GREATER_THAN_B"}(CompareVal||(CompareVal={}));var import_graphql22=require("graphql");function mergeInputType(e,t,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:(null==r?void 0:r.convertExtensions)||"InputObjectTypeDefinition"===e.kind||"InputObjectTypeDefinition"===t.kind?"InputObjectTypeDefinition":"InputObjectTypeExtension",loc:e.loc,fields:mergeFields(e,e.fields,t.fields,r),directives:mergeDirectives(e.directives,t.directives,r)}}catch(t){throw new Error(`Unable to merge GraphQL input type "${e.name.value}": ${t.message}`)}return(null==r?void 0:r.convertExtensions)?{...e,kind:import_graphql22.Kind.INPUT_OBJECT_TYPE_DEFINITION}:e}var import_graphql23=require("graphql");function mergeInterface(e,t,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:(null==r?void 0:r.convertExtensions)||"InterfaceTypeDefinition"===e.kind||"InterfaceTypeDefinition"===t.kind?"InterfaceTypeDefinition":"InterfaceTypeExtension",loc:e.loc,fields:mergeFields(e,e.fields,t.fields,r),directives:mergeDirectives(e.directives,t.directives,r),interfaces:e.interfaces?mergeNamedTypeArray(e.interfaces,t.interfaces,r):void 0}}catch(t){throw new Error(`Unable to merge GraphQL interface "${e.name.value}": ${t.message}`)}return(null==r?void 0:r.convertExtensions)?{...e,kind:import_graphql23.Kind.INTERFACE_TYPE_DEFINITION}:e}function alreadyExists(e,t){return!!e.find((e=>e.name.value===t.name.value))}function mergeNamedTypeArray(e=[],t=[],r={}){const n=[...t,...e.filter((e=>!alreadyExists(t,e)))];return r&&r.sort&&n.sort(compareNodes),n}var import_graphql28=require("graphql"),import_graphql24=require("graphql");function mergeType(e,t,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:(null==r?void 0:r.convertExtensions)||"ObjectTypeDefinition"===e.kind||"ObjectTypeDefinition"===t.kind?"ObjectTypeDefinition":"ObjectTypeExtension",loc:e.loc,fields:mergeFields(e,e.fields,t.fields,r),directives:mergeDirectives(e.directives,t.directives,r),interfaces:mergeNamedTypeArray(e.interfaces,t.interfaces,r)}}catch(t){throw new Error(`Unable to merge GraphQL type "${e.name.value}": ${t.message}`)}return(null==r?void 0:r.convertExtensions)?{...e,kind:import_graphql24.Kind.OBJECT_TYPE_DEFINITION}:e}var import_graphql25=require("graphql");function mergeScalar(e,t,r){return t?{name:e.name,description:e.description||t.description,kind:(null==r?void 0:r.convertExtensions)||"ScalarTypeDefinition"===e.kind||"ScalarTypeDefinition"===t.kind?"ScalarTypeDefinition":"ScalarTypeExtension",loc:e.loc,directives:mergeDirectives(e.directives,t.directives,r)}:(null==r?void 0:r.convertExtensions)?{...e,kind:import_graphql25.Kind.SCALAR_TYPE_DEFINITION}:e}var import_graphql26=require("graphql");function mergeUnion(e,t,r){return t?{name:e.name,description:e.description||t.description,directives:mergeDirectives(e.directives,t.directives,r),kind:(null==r?void 0:r.convertExtensions)||"UnionTypeDefinition"===e.kind||"UnionTypeDefinition"===t.kind?import_graphql26.Kind.UNION_TYPE_DEFINITION:import_graphql26.Kind.UNION_TYPE_EXTENSION,loc:e.loc,types:mergeNamedTypeArray(e.types,t.types,r)}:(null==r?void 0:r.convertExtensions)?{...e,kind:import_graphql26.Kind.UNION_TYPE_DEFINITION}:e}var import_graphql27=require("graphql"),DEFAULT_OPERATION_TYPE_NAME_MAP={query:"Query",mutation:"Mutation",subscription:"Subscription"};function mergeOperationTypes(e=[],t=[]){const r=[];for(const n in DEFAULT_OPERATION_TYPE_NAME_MAP){const i=e.find((e=>e.operation===n))||t.find((e=>e.operation===n));i&&r.push(i)}return r}function mergeSchemaDefs(e,t,r){return t?{kind:e.kind===import_graphql27.Kind.SCHEMA_DEFINITION||t.kind===import_graphql27.Kind.SCHEMA_DEFINITION?import_graphql27.Kind.SCHEMA_DEFINITION:import_graphql27.Kind.SCHEMA_EXTENSION,description:e.description||t.description,directives:mergeDirectives(e.directives,t.directives,r),operationTypes:mergeOperationTypes(e.operationTypes,t.operationTypes)}:(null==r?void 0:r.convertExtensions)?{...e,kind:import_graphql27.Kind.SCHEMA_DEFINITION}:e}var schemaDefSymbol="SCHEMA_DEF_SYMBOL";function isNamedDefinitionNode(e){return"name"in e}function mergeGraphQLNodes(e,t){var r,n,i;const s={};for(const a of e)if(isNamedDefinitionNode(a)){const e=null===(r=a.name)||void 0===r?void 0:r.value;if((null==t?void 0:t.commentDescriptions)&&collectComment(a),null==e)continue;if((null===(n=null==t?void 0:t.exclusions)||void 0===n?void 0:n.includes(e+".*"))||(null===(i=null==t?void 0:t.exclusions)||void 0===i?void 0:i.includes(e)))delete s[e];else switch(a.kind){case import_graphql28.Kind.OBJECT_TYPE_DEFINITION:case import_graphql28.Kind.OBJECT_TYPE_EXTENSION:s[e]=mergeType(a,s[e],t);break;case import_graphql28.Kind.ENUM_TYPE_DEFINITION:case import_graphql28.Kind.ENUM_TYPE_EXTENSION:s[e]=mergeEnum(a,s[e],t);break;case import_graphql28.Kind.UNION_TYPE_DEFINITION:case import_graphql28.Kind.UNION_TYPE_EXTENSION:s[e]=mergeUnion(a,s[e],t);break;case import_graphql28.Kind.SCALAR_TYPE_DEFINITION:case import_graphql28.Kind.SCALAR_TYPE_EXTENSION:s[e]=mergeScalar(a,s[e],t);break;case import_graphql28.Kind.INPUT_OBJECT_TYPE_DEFINITION:case import_graphql28.Kind.INPUT_OBJECT_TYPE_EXTENSION:s[e]=mergeInputType(a,s[e],t);break;case import_graphql28.Kind.INTERFACE_TYPE_DEFINITION:case import_graphql28.Kind.INTERFACE_TYPE_EXTENSION:s[e]=mergeInterface(a,s[e],t);break;case import_graphql28.Kind.DIRECTIVE_DEFINITION:s[e]=mergeDirective(a,s[e])}}else a.kind!==import_graphql28.Kind.SCHEMA_DEFINITION&&a.kind!==import_graphql28.Kind.SCHEMA_EXTENSION||(s[schemaDefSymbol]=mergeSchemaDefs(a,s[schemaDefSymbol],t));return s}var import_graphql29=require("graphql");function mergeTypeDefs(e,t){resetComments();const r={kind:import_graphql29.Kind.DOCUMENT,definitions:mergeGraphQLTypes(e,{useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1,...t})};let n;return n=(null==t?void 0:t.commentDescriptions)?printWithComments(r):r,resetComments(),n}function visitTypeSources(e,t,r=[],n=new Set){if(e&&!n.has(e))if(n.add(e),"function"==typeof e)visitTypeSources(e(),t,r,n);else if(Array.isArray(e))for(const i of e)visitTypeSources(i,t,r,n);else if((0,import_graphql29.isSchema)(e)){visitTypeSources(getDocumentNodeFromSchema(e,t).definitions,t,r,n)}else if(isStringTypes(e)||isSourceTypes(e)){visitTypeSources((0,import_graphql29.parse)(e,t).definitions,t,r,n)}else if("object"==typeof e&&(0,import_graphql29.isDefinitionNode)(e))r.push(e);else{if(!isDocumentNode(e))throw new Error("typeDefs must contain only strings, documents, schemas, or functions, got "+typeof e);visitTypeSources(e.definitions,t,r,n)}return r}function mergeGraphQLTypes(e,t){var r,n,i;resetComments();const s=mergeGraphQLNodes(visitTypeSources(e,t),t);if(null==t?void 0:t.useSchemaDefinition){const e=s[schemaDefSymbol]||{kind:import_graphql29.Kind.SCHEMA_DEFINITION,operationTypes:[]},t=e.operationTypes;for(const e in DEFAULT_OPERATION_TYPE_NAME_MAP){if(!t.find((t=>t.operation===e))){const r=s[DEFAULT_OPERATION_TYPE_NAME_MAP[e]];null!=r&&null!=r.name&&t.push({kind:import_graphql29.Kind.OPERATION_TYPE_DEFINITION,type:{kind:import_graphql29.Kind.NAMED_TYPE,name:r.name},operation:e})}}null!=(null===(r=null==e?void 0:e.operationTypes)||void 0===r?void 0:r.length)&&e.operationTypes.length>0&&(s[schemaDefSymbol]=e)}(null==t?void 0:t.forceSchemaDefinition)&&!(null===(i=null===(n=s[schemaDefSymbol])||void 0===n?void 0:n.operationTypes)||void 0===i?void 0:i.length)&&(s[schemaDefSymbol]={kind:import_graphql29.Kind.SCHEMA_DEFINITION,operationTypes:[{kind:import_graphql29.Kind.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:import_graphql29.Kind.NAMED_TYPE,name:{kind:import_graphql29.Kind.NAME,value:"Query"}}}]});const a=Object.values(s);if(null==t?void 0:t.sort){const e="function"==typeof t.sort?t.sort:defaultStringComparator;a.sort(((t,r)=>{var n,i;return e(null===(n=t.name)||void 0===n?void 0:n.value,null===(i=r.name)||void 0===i?void 0:i.value)}))}return a}function mergeExtensions(e){return mergeDeep(e)}function applyExtensionObject(e,t){e&&(e.extensions=mergeDeep([e.extensions||{},t||{}]))}function applyExtensions(e,t){applyExtensionObject(e,t.schemaExtensions);for(const[r,n]of Object.entries(t.types||{})){const t=e.getType(r);if(t)if(applyExtensionObject(t,n.extensions),"object"===n.type||"interface"===n.type)for(const[e,r]of Object.entries(n.fields)){const n=t.getFields()[e];if(n){applyExtensionObject(n,r.extensions);for(const[e,t]of Object.entries(r.arguments))applyExtensionObject(n.args.find((t=>t.name===e)),t)}}else if("input"===n.type)for(const[e,r]of Object.entries(n.fields)){applyExtensionObject(t.getFields()[e],r.extensions)}else if("enum"===n.type)for(const[e,r]of Object.entries(n.values)){applyExtensionObject(t.getValue(e),r)}}return e}function makeExecutableSchema({typeDefs:e,resolvers:t={},resolverValidationOptions:r={},inheritResolversFromInterfaces:n=!1,updateResolversInPlace:i=!1,schemaExtensions:s,...a}){if("object"!=typeof r)throw new Error("Expected `resolverValidationOptions` to be an object");if(!e)throw new Error("Must provide typeDefs");let o;if((0,import_graphql30.isSchema)(e))o=e;else if(null==a?void 0:a.commentDescriptions){const t=mergeTypeDefs(e,{...a,commentDescriptions:!0});o=(0,import_graphql30.buildSchema)(t,a)}else{const t=mergeTypeDefs(e,a);o=(0,import_graphql30.buildASTSchema)(t,a)}return o=addResolversToSchema({schema:o,resolvers:mergeResolvers(t),resolverValidationOptions:r,inheritResolversFromInterfaces:n,updateResolversInPlace:i}),Object.keys(r).length>0&&assertResolversPresent(o,r),s&&applyExtensions(o,s=mergeExtensions(asArray(s))),o}function mergeSchemas(e){const t=[],r=[],n=[];if(null!=e.schemas)for(const i of e.schemas)t.push(i),r.push(getResolversFromSchema(i)),n.push(extractExtensionsFromSchema(i));if(null!=e.typeDefs&&t.push(e.typeDefs),null!=e.resolvers){const t=asArray(e.resolvers);r.push(...t)}if(null!=e.schemaExtensions){const t=asArray(e.schemaExtensions);n.push(...t)}return makeExecutableSchema({...e,typeDefs:t,resolvers:r,schemaExtensions:n})}var graphql3=__toESM(require("graphql"),1),import_minimatch=__toESM(require_minimatch(),1),import_node_url2=require("node:url"),config_default={},configs=[],pluginConfig_default=configs,mockConfig=null;function getMockConfig(){return mockConfig}function setMockConfig(e){mockConfig=e}function defaultConfigValues(e){return{defaultKeys:["id"],...e,types:{Node:{keys:["id"],resolve:{queryField:"node",arguments:e=>({id:e.id})}},...e.types}}}function keyFieldsForType(e,t){const r=defaultConfigValues(e);return r.types?.[t]?.keys||r.defaultKeys}function computeID(e,t,r){const n=keyFieldsForType(e,t);let i="";for(const e of n)i+=r[e]+"__";return i.slice(0,-2)}var _configFile=null;function localApiEndpoint(e){return e.router?.apiEndpoint??"/_api"}function localApiSessionKeys(e){return e.router?.auth?.sessionKeys??[]}function getCurrentConfig(){const e=getMockConfig();if(e)return e;if(_configFile)return _configFile;let t=defaultConfigValues(config_default);for(const e of pluginConfig_default)t=e(t);return _configFile=t,t}function deepEquals(e,t,r=new WeakMap){if(Object.is(e,t))return!0;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.toString()===t.toString();if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(r.get(e)===t)return!0;r.set(e,t);const n=Reflect.ownKeys(e),i=Reflect.ownKeys(t);if(n.length!==i.length)return!1;for(let i=0;i<n.length;i++)if(!Reflect.has(t,n[i])||!deepEquals(e[n[i]],t[n[i]],r))return!1;return!0}function getFieldsForType(e,t,r){if(r)return e.loadingTypes&&e.loadingTypes.length>0?deepMerge(...e.loadingTypes.map((t=>e.abstractFields?.fields[t]))):e.fields??{};let n=e.fields||{};if(e.abstractFields&&t){const r=e.abstractFields.typeMap[t];r?n=e.abstractFields.fields[r]:e.abstractFields.fields[t]&&(n=e.abstractFields.fields[t])}return n}function deepMerge(...e){const t={};for(let r of e)if(r)for(let e in r)if(e in r){const n=r[e];"object"!=typeof n||null===n||Array.isArray(n)?t[e]=n:t[e]=deepMerge(t[e]||{},n)}return t}var CachePolicy={CacheOrNetwork:"CacheOrNetwork",CacheOnly:"CacheOnly",NetworkOnly:"NetworkOnly",CacheAndNetwork:"CacheAndNetwork",NoCache:"NoCache"},PaginateMode={Infinite:"Infinite",SinglePage:"SinglePage"},ArtifactKind={Query:"HoudiniQuery",Subscription:"HoudiniSubscription",Mutation:"HoudiniMutation",Fragment:"HoudiniFragment"},CompiledFragmentKind=ArtifactKind.Fragment,CompiledMutationKind=ArtifactKind.Mutation,CompiledQueryKind=ArtifactKind.Query,CompiledSubscriptionKind=ArtifactKind.Subscription,RefetchUpdateMode={append:"append",prepend:"prepend",replace:"replace"},DataSource={Cache:"cache",Network:"network",Ssr:"ssr"},fragmentKey=" $fragments",PendingValue=Symbol("houdini_loading");function isPending(e){return"symbol"==typeof e}function marshalSelection({selection:e,data:t}){const r=getCurrentConfig();if(null==t)return t;if(Array.isArray(t))return t.map((t=>marshalSelection({selection:e,data:t})));const n=getFieldsForType(e,t.__typename,!1);return Object.fromEntries(Object.entries(t).map((([e,t])=>{if(e===fragmentKey)return[e,t];const{type:i,selection:s}=n[e];if(!i)return[e,t];if(s)return[e,marshalSelection({selection:s,data:t})];if(r.scalars?.[i]){const n=r.scalars[i].marshal;if(!n)throw new Error(`Scalar type ${i} is missing a \`marshal\` function. See https://houdinigraphql.com/api/config#custom-scalars for help on configuring custom scalars.`);return Array.isArray(t)?[e,t.map(n)]:[e,n(t)]}return[e,t]})))}function marshalInputs({artifact:e,input:t,config:r,rootType:n="@root"}){if(null==t)return t;if(!e.input)return t;const i="@root"===n?e.input.fields:e.input.types[n];return Array.isArray(t)?t.map((t=>marshalInputs({artifact:e,input:t,rootType:n,config:r}))):Object.fromEntries(Object.entries(t).map((([t,n])=>{const s=i?.[t];if(!s)return[t,n];const a=r.scalars?.[s]?.marshal;return a?Array.isArray(n)?[t,n.map(a)]:[t,a(n)]:isScalar(r,s)||!e.input.types[s]?[t,n]:[t,marshalInputs({artifact:e,input:n,rootType:s,config:r})]})))}function isScalar(e,t){return["String","Boolean","Float","ID","Int"].concat(Object.keys(e.scalars||{})).includes(t)}function parseScalar(e,t,r){if(void 0!==r){if("Boolean"===t)return"true"===r;if("ID"===t)return r;if("String"===t)return r;if("Int"===t){const e=parseInt(r,10);if(Number.isNaN(e))return;return e}if("Float"===t){const e=parseFloat(r);if(Number.isNaN(e))return;return e}return e.scalars?.[t]?.marshal?e.scalars[t]?.marshal(r):r}}var subscriber_queue=[],noop=()=>{},Writable=class{state;#c;#u;#l;constructor(e,t=noop){this.state=e,this.#c=new Set,this.#u=null,this.#l=t}set(e){if(safe_not_equal(this.state,e)&&(this.state=e,this.#u)){const e=!subscriber_queue.length;for(const e of this.#c)e[1](),subscriber_queue.push(e,this.state);if(e){for(let e=0;e<subscriber_queue.length;e+=2)subscriber_queue[e][0](subscriber_queue[e+1]);subscriber_queue.length=0}}}update(e){this.set(e(this.state))}subscribe(e,t=noop){const r=[e,t];return this.#c.add(r),1===this.#c.size&&(this.#u=this.#l(this.set)||noop),e(this.state),()=>{this.#c.delete(r),0===this.#c.size&&(this.#u?.(),this.#u=null)}}};function safe_not_equal(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}var computeKey=({field:e,args:t})=>{const r=Object.keys(t??{});return r.sort(),t&&r.length>0?`${e}(${r.map((e=>`${e}: ${stringifyObjectWithNoQuotesOnKeys(t[e])}`)).join(", ")})`:e},stringifyObjectWithNoQuotesOnKeys=e=>Array.isArray(e)?`[${e.map((e=>`${stringifyObjectWithNoQuotesOnKeys(e)}`)).join(", ")}]`:"object"!=typeof e||e instanceof Date||null===e?JSON.stringify(e).replace(/"([^"]+)":/g,"$1: "):`{${Object.keys(e).map((t=>`${t}: ${stringifyObjectWithNoQuotesOnKeys(e[t])}`)).join(", ")}}`,siteURL="https://houdinigraphql.com",houdini_mode={get is_testing(){return"true"===process.env.HOUDINI_TEST}},HoudiniError=class extends Error{filepath=null;description=null;constructor({filepath:e,message:t,description:r}){super(t),e&&(this.filepath=e),r&&(this.description=r)}},fs_exports={};__export(fs_exports,{access:()=>access,copyFile:()=>copyFile,copyFileSync:()=>copyFileSync,existsSync:()=>existsSync,glob:()=>glob,mkdir:()=>mkdir,mkdirp:()=>mkdirp,mkdirpSync:()=>mkdirpSync,mock:()=>mock,readFile:()=>readFile,readFileSync:()=>readFileSync,readdir:()=>readdir,recursiveCopy:()=>recursiveCopy,remove:()=>remove,rmdir:()=>rmdir,snapshot:()=>snapshot,stat:()=>stat,writeFile:()=>writeFile});var import_fs_extra=__toESM(require_lib(),1),import_glob=__toESM(require_glob(),1),import_memfs=__toESM(require_lib2(),1),import_promises=__toESM(require("node:fs/promises"),1),import_node_util=require("node:util"),path_exports={};__export(path_exports,{basename:()=>basename,dirname:()=>dirname,extname:()=>extname,importPath:()=>importPath,isAbsolute:()=>isAbsolute,join:()=>join2,parse:()=>parse3,posixify:()=>posixify,relative:()=>relative,resolve:()=>resolve,sep:()=>sep});var import_node_os=__toESM(require("node:os"),1),import_node_path=__toESM(require("node:path"),1),sep="/";function resolve(...e){return posixify(import_node_path.default.resolve(...e))}function join2(...e){return posixify(import_node_path.default.join(...e))}function extname(e){return import_node_path.default.extname(e)}function relative(e,t){return posixify(import_node_path.default.relative(e,t))}function basename(e){return import_node_path.default.basename(e)}function dirname(e){return import_node_path.default.dirname(e)}function isAbsolute(e){return import_node_path.default.isAbsolute(e)}function parse3(e){return import_node_path.default.parse(e)}var posixify=e=>e.replace(/\\/g,"/");function importPath(e){return["win32","win64"].includes(import_node_os.default.platform())?"file:///"+e:e}function copyFileSync(e,t){if(houdini_mode.is_testing)try{return e.includes("build/runtime")||t.includes("build/runtime")?void import_fs_extra.default.copyFileSync(e,t):void import_memfs.fs.copyFileSync(e,t)}catch(e){return null}try{return void import_fs_extra.default.copyFileSync(e,t)}catch(e){}return null}async function copyFile(e,t){if(houdini_mode.is_testing)try{return e.includes("build/runtime")||t.includes("build/runtime")?void await import_promises.default.copyFile(e,t):void await import_memfs.fs.copyFile(e,t,(e=>{throw e}))}catch(e){return null}try{return void await import_promises.default.copyFile(e,t)}catch(e){}return null}async function readFile(e,t){if(houdini_mode.is_testing)try{return e.includes("build/runtime")?await import_promises.default.readFile(e,t??"utf-8"):import_memfs.fs.readFileSync(e,t??"utf-8").toString()}catch(e){return null}try{return await import_promises.default.readFile(e,"utf8")}catch(e){}return null}function readFileSync(e){if(houdini_mode.is_testing)try{return e.includes("build/runtime")?import_fs_extra.default.readFileSync(e,"utf-8"):import_memfs.fs.readFileSync(e,"utf-8").toString()}catch(e){return null}try{return import_fs_extra.default.readFileSync(e,"utf-8")}catch(e){}return null}async function writeFile(e,t){if(t!==await readFile(e))return houdini_mode.is_testing?(import_memfs.fs.mkdirpSync(dirname(e)),import_memfs.fs.writeFileSync(e,t)):await import_promises.default.writeFile(e,t,"utf8")}async function access(e){return houdini_mode.is_testing?e.includes("build/runtime")?await import_promises.default.access(e):import_memfs.fs.statSync(e):await import_promises.default.access(e)}async function mkdirp(e){return houdini_mode.is_testing?import_memfs.fs.mkdirpSync(e):await import_fs_extra.default.mkdirp(e)}async function mkdirpSync(e){return houdini_mode.is_testing?import_memfs.fs.mkdirpSync(e):import_fs_extra.default.mkdirpSync(e)}async function mkdir(e){return houdini_mode.is_testing?import_memfs.fs.mkdirSync(e):await import_promises.default.mkdir(e)}async function rmdir(e){return houdini_mode.is_testing?await(0,import_node_util.promisify)(import_memfs.fs.rmdir)(e):await import_promises.default.rm(e,{recursive:!0})}async function stat(e){return houdini_mode.is_testing?e.includes("build/runtime")?await import_promises.default.stat(e):import_memfs.fs.statSync(e):await import_promises.default.stat(e)}function existsSync(e){return houdini_mode.is_testing?import_memfs.fs.existsSync(e):import_fs_extra.default.existsSync(e)}async function readdir(e,t){if(!houdini_mode.is_testing)return await import_promises.default.readdir(e,t);if(e.includes("build/runtime"))return await import_promises.default.readdir(e,t);try{return import_memfs.fs.readdirSync(e,t)}catch(e){return console.log(e),[]}}async function remove(e){return houdini_mode.is_testing?import_memfs.vol.rmSync(e):await import_promises.default.rm(e)}async function mock(e,t=""){await Promise.all(Object.entries(e).map((async([e,r])=>{const n=join2(t,e);if("string"!=typeof r)return await mkdirp(n),await mock(r,n);await writeFile(n,r)})))}async function recursiveCopy(e,t,r,n){let i=join2(t,basename(e));n||(i=join2(i,".."));try{await access(i)}catch(e){await mkdirp(i)}(await stat(e)).isDirectory()&&await Promise.all((await readdir(e)).map((async t=>{const n=join2(e,t);if((await stat(n)).isDirectory())await recursiveCopy(n,i,r,!0);else{const e=join2(i,t);if(r?.[n]){let t=await readFile(n)||"";await writeFile(e,await r[n](t,n))}else await copyFile(n,e)}})))}function snapshot(e){return Object.fromEntries(Object.entries(import_memfs.vol.toJSON()).filter((([t])=>!e||t.startsWith(e))).map((([t,r])=>[e?t.substring(e.length):t,r])))}async function glob(e){return await(0,import_node_util.promisify)(import_glob.glob)(posixify(e))}glob.hasMagic=import_glob.glob.hasMagic;var BROWSER=!1,stylesNode_exports={};__export(stylesNode_exports,{bgBlack:()=>bgBlack,bgBlackBright:()=>bgBlackBright,bgBlue:()=>bgBlue,bgBlueBright:()=>bgBlueBright,bgCyan:()=>bgCyan,bgCyanBright:()=>bgCyanBright,bgGreen:()=>bgGreen,bgGreenBright:()=>bgGreenBright,bgMagenta:()=>bgMagenta,bgMagentaBright:()=>bgMagentaBright,bgRed:()=>bgRed,bgRedBright:()=>bgRedBright,bgWhite:()=>bgWhite,bgWhiteBright:()=>bgWhiteBright,bgYellow:()=>bgYellow,bgYellowBright:()=>bgYellowBright,black:()=>black,blackBright:()=>blackBright,blue:()=>blue,blueBright:()=>blueBright,bold:()=>bold,cyan:()=>cyan,cyanBright:()=>cyanBright,dim:()=>dim,gray:()=>gray,green:()=>green,greenBright:()=>greenBright,hidden:()=>hidden,inverse:()=>inverse,italic:()=>italic,magenta:()=>magenta,magentaBright:()=>magentaBright,red:()=>red,redBright:()=>redBright,reset:()=>reset,strikethrough:()=>strikethrough,underline:()=>underline,white:()=>white,whiteBright:()=>whiteBright,yellow:()=>yellow,yellowBright:()=>yellowBright});var reset={start:"[0m",end:"[0m"},bold={start:"[1m",end:"[22m"},dim={start:"[2m",end:"[22m"},italic={start:"[3m",end:"[23m"},underline={start:"[4m",end:"[24m"},inverse={start:"[7m",end:"[27m"},hidden={start:"[8m",end:"[28m"},strikethrough={start:"[9m",end:"[29m"},black={start:"[30m",end:"[39m"},red={start:"[31m",end:"[39m"},green={start:"[32m",end:"[39m"},yellow={start:"[33m",end:"[39m"},blue={start:"[34m",end:"[39m"},magenta={start:"[35m",end:"[39m"},cyan={start:"[36m",end:"[39m"},white={start:"[37m",end:"[39m"},gray={start:"[90m",end:"[39m"},bgBlack={start:"[40m",end:"[49m"},bgRed={start:"[41m",end:"[49m"},bgGreen={start:"[42m",end:"[49m"},bgYellow={start:"[43m",end:"[49m"},bgBlue={start:"[44m",end:"[49m"},bgMagenta={start:"[45m",end:"[49m"},bgCyan={start:"[46m",end:"[49m"},bgWhite={start:"[47m",end:"[49m"},blackBright={start:"[90m",end:"[39m"},redBright={start:"[91m",end:"[39m"},greenBright={start:"[92m",end:"[39m"},yellowBright={start:"[93m",end:"[39m"},blueBright={start:"[94m",end:"[39m"},magentaBright={start:"[95m",end:"[39m"},cyanBright={start:"[96m",end:"[39m"},whiteBright={start:"[97m",end:"[39m"},bgBlackBright={start:"[100m",end:"[49m"},bgRedBright={start:"[101m",end:"[49m"},bgGreenBright={start:"[102m",end:"[49m"},bgYellowBright={start:"[103m",end:"[49m"},bgBlueBright={start:"[104m",end:"[49m"},bgMagentaBright={start:"[105m",end:"[49m"},bgCyanBright={start:"[106m",end:"[49m"},bgWhiteBright={start:"[107m",end:"[49m"},getStyleNode=e=>stylesNode_exports[e]??void 0,color=(e,t)=>BROWSER?colorBrowser(e,t):colorNode(e,t),colorNode=(e,t)=>`${getStyleNode(e).start}${t}${getStyleNode(e).end}`,START1="$$KitQL_",START2="_KitQL$$",END="$$KitQLEND$$",colorBrowser=(e,t)=>`${START1}${e}${START2}${t}${END}`,cyan2=e=>color("cyan",e),graphql=__toESM(require("graphql"),1),import_node_http2=__toESM(require("node:http"),1),import_node_https=__toESM(require("node:https"),1),import_node_zlib=__toESM(require("node:zlib"),1),import_node_stream2=__toESM(require("node:stream"),1),import_node_buffer2=require("node:buffer");function dataUriToBuffer(e){if(!/^data:/i.test(e))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');const t=(e=e.replace(/\r?\n/g,"")).indexOf(",");if(-1===t||t<=4)throw new TypeError("malformed data: URI");const r=e.substring(5,t).split(";");let n="",i=!1;const s=r[0]||"text/plain";let a=s;for(let e=1;e<r.length;e++)"base64"===r[e]?i=!0:(a+=`;${r[e]}`,0===r[e].indexOf("charset=")&&(n=r[e].substring(8)));r[0]||n.length||(a+=";charset=US-ASCII",n="US-ASCII");const o=i?"base64":"ascii",l=unescape(e.substring(t+1)),c=Buffer.from(l,o);return c.type=s,c.typeFull=a,c.charset=n,c}var dist_default=dataUriToBuffer,import_node_stream=__toESM(require("node:stream"),1),import_node_util2=require("node:util"),import_node_buffer=require("node:buffer");init_fetch_blob(),init_esm_min();var FetchBaseError=class extends Error{constructor(e,t){super(e),Error.captureStackTrace(this,this.constructor),this.type=t}get name(){return this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}},FetchError=class extends FetchBaseError{constructor(e,t,r){super(e,t),r&&(this.code=this.errno=r.code,this.erroredSysCall=r.syscall)}},NAME=Symbol.toStringTag,isURLSearchParameters=e=>"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&"function"==typeof e.sort&&"URLSearchParams"===e[NAME],isBlob=e=>e&&"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&/^(Blob|File)$/.test(e[NAME]),isAbortSignal=e=>"object"==typeof e&&("AbortSignal"===e[NAME]||"EventTarget"===e[NAME]),isDomainOrSubdomain=(e,t)=>{const r=new URL(t).hostname,n=new URL(e).hostname;return r===n||r.endsWith(`.${n}`)},isSameProtocol=(e,t)=>new URL(t).protocol===new URL(e).protocol,pipeline=(0,import_node_util2.promisify)(import_node_stream.default.pipeline),INTERNALS=Symbol("Body internals"),Body=class{constructor(e,{size:t=0}={}){let r=null;null===e?e=null:isURLSearchParameters(e)?e=import_node_buffer.Buffer.from(e.toString()):isBlob(e)||import_node_buffer.Buffer.isBuffer(e)||(import_node_util2.types.isAnyArrayBuffer(e)?e=import_node_buffer.Buffer.from(e):ArrayBuffer.isView(e)?e=import_node_buffer.Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof import_node_stream.default||(e instanceof FormData2?r=(e=formDataToBlob(e)).type.split("=")[1]:e=import_node_buffer.Buffer.from(String(e))));let n=e;import_node_buffer.Buffer.isBuffer(e)?n=import_node_stream.default.Readable.from(e):isBlob(e)&&(n=import_node_stream.default.Readable.from(e.stream())),this[INTERNALS]={body:e,stream:n,boundary:r,disturbed:!1,error:null},this.size=t,e instanceof import_node_stream.default&&e.on("error",(e=>{const t=e instanceof FetchBaseError?e:new FetchError(`Invalid response body while trying to fetch ${this.url}: ${e.message}`,"system",e);this[INTERNALS].error=t}))}get body(){return this[INTERNALS].stream}get bodyUsed(){return this[INTERNALS].disturbed}async arrayBuffer(){const{buffer:e,byteOffset:t,byteLength:r}=await consumeBody(this);return e.slice(t,t+r)}async formData(){const e=this.headers.get("content-type");if(e.startsWith("application/x-www-form-urlencoded")){const e=new FormData2,t=new URLSearchParams(await this.text());for(const[r,n]of t)e.append(r,n);return e}const{toFormData:t}=await Promise.resolve().then((()=>(init_multipart_parser(),multipart_parser_exports)));return t(this.body,e)}async blob(){const e=this.headers&&this.headers.get("content-type")||this[INTERNALS].body&&this[INTERNALS].body.type||"",t=await this.arrayBuffer();return new fetch_blob_default([t],{type:e})}async json(){const e=await this.text();return JSON.parse(e)}async text(){const e=await consumeBody(this);return(new TextDecoder).decode(e)}buffer(){return consumeBody(this)}};async function consumeBody(e){if(e[INTERNALS].disturbed)throw new TypeError(`body used already for: ${e.url}`);if(e[INTERNALS].disturbed=!0,e[INTERNALS].error)throw e[INTERNALS].error;const{body:t}=e;if(null===t)return import_node_buffer.Buffer.alloc(0);if(!(t instanceof import_node_stream.default))return import_node_buffer.Buffer.alloc(0);const r=[];let n=0;try{for await(const i of t){if(e.size>0&&n+i.length>e.size){const r=new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size");throw t.destroy(r),r}n+=i.length,r.push(i)}}catch(t){throw t instanceof FetchBaseError?t:new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t)}if(!0!==t.readableEnded&&!0!==t._readableState.ended)throw new FetchError(`Premature close of server response while trying to fetch ${e.url}`);try{return r.every((e=>"string"==typeof e))?import_node_buffer.Buffer.from(r.join("")):import_node_buffer.Buffer.concat(r,n)}catch(t){throw new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t)}}Body.prototype.buffer=(0,import_node_util2.deprecate)(Body.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer"),Object.defineProperties(Body.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:(0,import_node_util2.deprecate)((()=>{}),"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});var clone=(e,t)=>{let r,n,{body:i}=e[INTERNALS];if(e.bodyUsed)throw new Error("cannot clone body after it is used");return i instanceof import_node_stream.default&&"function"!=typeof i.getBoundary&&(r=new import_node_stream.PassThrough({highWaterMark:t}),n=new import_node_stream.PassThrough({highWaterMark:t}),i.pipe(r),i.pipe(n),e[INTERNALS].stream=r,i=n),i},getNonSpecFormDataBoundary=(0,import_node_util2.deprecate)((e=>e.getBoundary()),"form-data doesn't follow the spec and requires special treatment. Use alternative package","https://github.com/node-fetch/node-fetch/issues/1167"),extractContentType=(e,t)=>null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":isURLSearchParameters(e)?"application/x-www-form-urlencoded;charset=UTF-8":isBlob(e)?e.type||null:import_node_buffer.Buffer.isBuffer(e)||import_node_util2.types.isAnyArrayBuffer(e)||ArrayBuffer.isView(e)?null:e instanceof FormData2?`multipart/form-data; boundary=${t[INTERNALS].boundary}`:e&&"function"==typeof e.getBoundary?`multipart/form-data;boundary=${getNonSpecFormDataBoundary(e)}`:e instanceof import_node_stream.default?null:"text/plain;charset=UTF-8",getTotalBytes=e=>{const{body:t}=e[INTERNALS];return null===t?0:isBlob(t)?t.size:import_node_buffer.Buffer.isBuffer(t)?t.length:t&&"function"==typeof t.getLengthSync&&t.hasKnownLength&&t.hasKnownLength()?t.getLengthSync():null},writeToStream=async(e,{body:t})=>{null===t?e.end():await pipeline(t,e)},import_node_util3=require("node:util"),import_node_http=__toESM(require("node:http"),1),validateHeaderName="function"==typeof import_node_http.default.validateHeaderName?import_node_http.default.validateHeaderName:e=>{if(!/^[\^`\-\w!#$%&'*+.|~]+$/.test(e)){const t=new TypeError(`Header name must be a valid HTTP token [${e}]`);throw Object.defineProperty(t,"code",{value:"ERR_INVALID_HTTP_TOKEN"}),t}},validateHeaderValue="function"==typeof import_node_http.default.validateHeaderValue?import_node_http.default.validateHeaderValue:(e,t)=>{if(/[^\t\u0020-\u007E\u0080-\u00FF]/.test(t)){const t=new TypeError(`Invalid character in header content ["${e}"]`);throw Object.defineProperty(t,"code",{value:"ERR_INVALID_CHAR"}),t}},Headers=class extends URLSearchParams{constructor(e){let t=[];if(e instanceof Headers){const r=e.raw();for(const[e,n]of Object.entries(r))t.push(...n.map((t=>[e,t])))}else if(null==e);else{if("object"!=typeof e||import_node_util3.types.isBoxedPrimitive(e))throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence<sequence<ByteString>> or record<ByteString, ByteString>)");{const r=e[Symbol.iterator];if(null==r)t.push(...Object.entries(e));else{if("function"!=typeof r)throw new TypeError("Header pairs must be iterable");t=[...e].map((e=>{if("object"!=typeof e||import_node_util3.types.isBoxedPrimitive(e))throw new TypeError("Each header pair must be an iterable object");return[...e]})).map((e=>{if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");return[...e]}))}}}return t=t.length>0?t.map((([e,t])=>(validateHeaderName(e),validateHeaderValue(e,String(t)),[String(e).toLowerCase(),String(t)]))):void 0,super(t),new Proxy(this,{get(e,t,r){switch(t){case"append":case"set":return(r,n)=>(validateHeaderName(r),validateHeaderValue(r,String(n)),URLSearchParams.prototype[t].call(e,String(r).toLowerCase(),String(n)));case"delete":case"has":case"getAll":return r=>(validateHeaderName(r),URLSearchParams.prototype[t].call(e,String(r).toLowerCase()));case"keys":return()=>(e.sort(),new Set(URLSearchParams.prototype.keys.call(e)).keys());default:return Reflect.get(e,t,r)}}})}get[Symbol.toStringTag](){return this.constructor.name}toString(){return Object.prototype.toString.call(this)}get(e){const t=this.getAll(e);if(0===t.length)return null;let r=t.join(", ");return/^content-encoding$/i.test(e)&&(r=r.toLowerCase()),r}forEach(e,t=void 0){for(const r of this.keys())Reflect.apply(e,t,[this.get(r),r,this])}*values(){for(const e of this.keys())yield this.get(e)}*entries(){for(const e of this.keys())yield[e,this.get(e)]}[Symbol.iterator](){return this.entries()}raw(){return[...this.keys()].reduce(((e,t)=>(e[t]=this.getAll(t),e)),{})}[Symbol.for("nodejs.util.inspect.custom")](){return[...this.keys()].reduce(((e,t)=>{const r=this.getAll(t);return e[t]="host"===t?r[0]:r.length>1?r:r[0],e}),{})}};function fromRawHeaders(e=[]){return new Headers(e.reduce(((e,t,r,n)=>(r%2==0&&e.push(n.slice(r,r+2)),e)),[]).filter((([e,t])=>{try{return validateHeaderName(e),validateHeaderValue(e,String(t)),!0}catch{return!1}})))}Object.defineProperties(Headers.prototype,["get","entries","forEach","values"].reduce(((e,t)=>(e[t]={enumerable:!0},e)),{}));var redirectStatus=new Set([301,302,303,307,308]),isRedirect=e=>redirectStatus.has(e),INTERNALS2=Symbol("Response internals"),Response2=class extends Body{constructor(e=null,t={}){super(e,t);const r=null!=t.status?t.status:200,n=new Headers(t.headers);if(null!==e&&!n.has("Content-Type")){const t=extractContentType(e,this);t&&n.append("Content-Type",t)}this[INTERNALS2]={type:"default",url:t.url,status:r,statusText:t.statusText||"",headers:n,counter:t.counter,highWaterMark:t.highWaterMark}}get type(){return this[INTERNALS2].type}get url(){return this[INTERNALS2].url||""}get status(){return this[INTERNALS2].status}get ok(){return this[INTERNALS2].status>=200&&this[INTERNALS2].status<300}get redirected(){return this[INTERNALS2].counter>0}get statusText(){return this[INTERNALS2].statusText}get headers(){return this[INTERNALS2].headers}get highWaterMark(){return this[INTERNALS2].highWaterMark}clone(){return new Response2(clone(this,this.highWaterMark),{type:this.type,url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected,size:this.size,highWaterMark:this.highWaterMark})}static redirect(e,t=302){if(!isRedirect(t))throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');return new Response2(null,{headers:{location:new URL(e).toString()},status:t})}static error(){const e=new Response2(null,{status:0,statusText:""});return e[INTERNALS2].type="error",e}static json(e=void 0,t={}){const r=JSON.stringify(e);if(void 0===r)throw new TypeError("data is not JSON serializable");const n=new Headers(t&&t.headers);return n.has("content-type")||n.set("content-type","application/json"),new Response2(r,{...t,headers:n})}get[Symbol.toStringTag](){return"Response"}};Object.defineProperties(Response2.prototype,{type:{enumerable:!0},url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}});var import_node_url=require("node:url"),import_node_util4=require("node:util"),getSearch=e=>{if(e.search)return e.search;const t=e.href.length-1,r=e.hash||("#"===e.href[t]?"#":"");return"?"===e.href[t-r.length]?"?":""},import_node_net=require("node:net");function stripURLForUseAsAReferrer(e,t=!1){return null==e?"no-referrer":(e=new URL(e),/^(about|blob|data):$/.test(e.protocol)?"no-referrer":(e.username="",e.password="",e.hash="",t&&(e.pathname="",e.search=""),e))}var ReferrerPolicy=new Set(["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]),DEFAULT_REFERRER_POLICY="strict-origin-when-cross-origin";function validateReferrerPolicy(e){if(!ReferrerPolicy.has(e))throw new TypeError(`Invalid referrerPolicy: ${e}`);return e}function isOriginPotentiallyTrustworthy(e){if(/^(http|ws)s:$/.test(e.protocol))return!0;const t=e.host.replace(/(^\[)|(]$)/g,""),r=(0,import_node_net.isIP)(t);return!(4!==r||!/^127\./.test(t))||(!(6!==r||!/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(t))||"localhost"!==e.host&&!e.host.endsWith(".localhost")&&"file:"===e.protocol)}function isUrlPotentiallyTrustworthy(e){return!!/^about:(blank|srcdoc)$/.test(e)||("data:"===e.protocol||(!!/^(blob|filesystem):$/.test(e.protocol)||isOriginPotentiallyTrustworthy(e)))}function determineRequestsReferrer(e,{referrerURLCallback:t,referrerOriginCallback:r}={}){if("no-referrer"===e.referrer||""===e.referrerPolicy)return null;const n=e.referrerPolicy;if("about:client"===e.referrer)return"no-referrer";const i=e.referrer;let s=stripURLForUseAsAReferrer(i),a=stripURLForUseAsAReferrer(i,!0);s.toString().length>4096&&(s=a),t&&(s=t(s)),r&&(a=r(a));const o=new URL(e.url);switch(n){case"no-referrer":return"no-referrer";case"origin":return a;case"unsafe-url":return s;case"strict-origin":return isUrlPotentiallyTrustworthy(s)&&!isUrlPotentiallyTrustworthy(o)?"no-referrer":a.toString();case"strict-origin-when-cross-origin":return s.origin===o.origin?s:isUrlPotentiallyTrustworthy(s)&&!isUrlPotentiallyTrustworthy(o)?"no-referrer":a;case"same-origin":return s.origin===o.origin?s:"no-referrer";case"origin-when-cross-origin":return s.origin===o.origin?s:a;case"no-referrer-when-downgrade":return isUrlPotentiallyTrustworthy(s)&&!isUrlPotentiallyTrustworthy(o)?"no-referrer":s;default:throw new TypeError(`Invalid referrerPolicy: ${n}`)}}function parseReferrerPolicyFromHeader(e){const t=(e.get("referrer-policy")||"").split(/[,\s]+/);let r="";for(const e of t)e&&ReferrerPolicy.has(e)&&(r=e);return r}var INTERNALS3=Symbol("Request internals"),isRequest=e=>"object"==typeof e&&"object"==typeof e[INTERNALS3],doBadDataWarn=(0,import_node_util4.deprecate)((()=>{}),".data is not a valid RequestInit property, use .body instead","https://github.com/node-fetch/node-fetch/issues/1000 (request)"),Request2=class extends Body{constructor(e,t={}){let r;if(isRequest(e)?r=new URL(e.url):(r=new URL(e),e={}),""!==r.username||""!==r.password)throw new TypeError(`${r} is an url with embedded credentials.`);let n=t.method||e.method||"GET";if(/^(delete|get|head|options|post|put)$/i.test(n)&&(n=n.toUpperCase()),!isRequest(t)&&"data"in t&&doBadDataWarn(),(null!=t.body||isRequest(e)&&null!==e.body)&&("GET"===n||"HEAD"===n))throw new TypeError("Request with GET/HEAD method cannot have body");const i=t.body?t.body:isRequest(e)&&null!==e.body?clone(e):null;super(i,{size:t.size||e.size||0});const s=new Headers(t.headers||e.headers||{});if(null!==i&&!s.has("Content-Type")){const e=extractContentType(i,this);e&&s.set("Content-Type",e)}let a=isRequest(e)?e.signal:null;if("signal"in t&&(a=t.signal),null!=a&&!isAbortSignal(a))throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");let o=null==t.referrer?e.referrer:t.referrer;if(""===o)o="no-referrer";else if(o){const e=new URL(o);o=/^about:(\/\/)?client$/.test(e)?"client":e}else o=void 0;this[INTERNALS3]={method:n,redirect:t.redirect||e.redirect||"follow",headers:s,parsedURL:r,signal:a,referrer:o},this.follow=void 0===t.follow?void 0===e.follow?20:e.follow:t.follow,this.compress=void 0===t.compress?void 0===e.compress||e.compress:t.compress,this.counter=t.counter||e.counter||0,this.agent=t.agent||e.agent,this.highWaterMark=t.highWaterMark||e.highWaterMark||16384,this.insecureHTTPParser=t.insecureHTTPParser||e.insecureHTTPParser||!1,this.referrerPolicy=t.referrerPolicy||e.referrerPolicy||""}get method(){return this[INTERNALS3].method}get url(){return(0,import_node_url.format)(this[INTERNALS3].parsedURL)}get headers(){return this[INTERNALS3].headers}get redirect(){return this[INTERNALS3].redirect}get signal(){return this[INTERNALS3].signal}get referrer(){return"no-referrer"===this[INTERNALS3].referrer?"":"client"===this[INTERNALS3].referrer?"about:client":this[INTERNALS3].referrer?this[INTERNALS3].referrer.toString():void 0}get referrerPolicy(){return this[INTERNALS3].referrerPolicy}set referrerPolicy(e){this[INTERNALS3].referrerPolicy=validateReferrerPolicy(e)}clone(){return new Request2(this)}get[Symbol.toStringTag](){return"Request"}};Object.defineProperties(Request2.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0},referrer:{enumerable:!0},referrerPolicy:{enumerable:!0}});var getNodeRequestOptions=e=>{const{parsedURL:t}=e[INTERNALS3],r=new Headers(e[INTERNALS3].headers);r.has("Accept")||r.set("Accept","*/*");let n=null;if(null===e.body&&/^(post|put)$/i.test(e.method)&&(n="0"),null!==e.body){const t=getTotalBytes(e);"number"!=typeof t||Number.isNaN(t)||(n=String(t))}n&&r.set("Content-Length",n),""===e.referrerPolicy&&(e.referrerPolicy=DEFAULT_REFERRER_POLICY),e.referrer&&"no-referrer"!==e.referrer?e[INTERNALS3].referrer=determineRequestsReferrer(e):e[INTERNALS3].referrer="no-referrer",e[INTERNALS3].referrer instanceof URL&&r.set("Referer",e.referrer),r.has("User-Agent")||r.set("User-Agent","node-fetch"),e.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip, deflate, br");let{agent:i}=e;"function"==typeof i&&(i=i(t)),r.has("Connection")||i||r.set("Connection","close");const s=getSearch(t);return{parsedURL:t,options:{path:t.pathname+s,method:e.method,headers:r[Symbol.for("nodejs.util.inspect.custom")](),insecureHTTPParser:e.insecureHTTPParser,agent:i}}},AbortError=class extends FetchBaseError{constructor(e,t="aborted"){super(e,t)}};init_esm_min(),init_from();var supportedSchemas=new Set(["data:","http:","https:"]);async function fetch(e,t){return new Promise(((r,n)=>{const i=new Request2(e,t),{parsedURL:s,options:a}=getNodeRequestOptions(i);if(!supportedSchemas.has(s.protocol))throw new TypeError(`node-fetch cannot load ${e}. URL scheme "${s.protocol.replace(/:$/,"")}" is not supported.`);if("data:"===s.protocol){const e=dist_default(i.url),t=new Response2(e,{headers:{"Content-Type":e.typeFull}});return void r(t)}const o=("https:"===s.protocol?import_node_https.default:import_node_http2.default).request,{signal:l}=i;let c=null;const u=()=>{const e=new AbortError("The operation was aborted.");n(e),i.body&&i.body instanceof import_node_stream2.default.Readable&&i.body.destroy(e),c&&c.body&&c.body.emit("error",e)};if(l&&l.aborted)return void u();const p=()=>{u(),h()},d=o(s.toString(),a);l&&l.addEventListener("abort",p);const h=()=>{d.abort(),l&&l.removeEventListener("abort",p)};d.on("error",(e=>{n(new FetchError(`request to ${i.url} failed, reason: ${e.message}`,"system",e)),h()})),fixResponseChunkedTransferBadEnding(d,(e=>{c&&c.body&&c.body.destroy(e)})),process.version<"v14"&&d.on("socket",(e=>{let t;e.prependListener("end",(()=>{t=e._eventsCount})),e.prependListener("close",(r=>{if(c&&t<e._eventsCount&&!r){const e=new Error("Premature close");e.code="ERR_STREAM_PREMATURE_CLOSE",c.body.emit("error",e)}}))})),d.on("response",(e=>{d.setTimeout(0);const s=fromRawHeaders(e.rawHeaders);if(isRedirect(e.statusCode)){const a=s.get("Location");let o=null;try{o=null===a?null:new URL(a,i.url)}catch{if("manual"!==i.redirect)return n(new FetchError(`uri requested responds with an invalid redirect URL: ${a}`,"invalid-redirect")),void h()}switch(i.redirect){case"error":return n(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${i.url}`,"no-redirect")),void h();case"manual":break;case"follow":{if(null===o)break;if(i.counter>=i.follow)return n(new FetchError(`maximum redirect reached at: ${i.url}`,"max-redirect")),void h();const a={headers:new Headers(i.headers),follow:i.follow,counter:i.counter+1,agent:i.agent,compress:i.compress,method:i.method,body:clone(i),signal:i.signal,size:i.size,referrer:i.referrer,referrerPolicy:i.referrerPolicy};if(!isDomainOrSubdomain(i.url,o)||!isSameProtocol(i.url,o))for(const e of["authorization","www-authenticate","cookie","cookie2"])a.headers.delete(e);if(303!==e.statusCode&&i.body&&t.body instanceof import_node_stream2.default.Readable)return n(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void h();303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==i.method)||(a.method="GET",a.body=void 0,a.headers.delete("content-length"));const l=parseReferrerPolicyFromHeader(s);return l&&(a.referrerPolicy=l),r(fetch(new Request2(o,a))),void h()}default:return n(new TypeError(`Redirect option '${i.redirect}' is not a valid value of RequestRedirect`))}}l&&e.once("end",(()=>{l.removeEventListener("abort",p)}));let a=(0,import_node_stream2.pipeline)(e,new import_node_stream2.PassThrough,(e=>{e&&n(e)}));process.version<"v12.10"&&e.on("aborted",p);const o={url:i.url,status:e.statusCode,statusText:e.statusMessage,headers:s,size:i.size,counter:i.counter,highWaterMark:i.highWaterMark},u=s.get("Content-Encoding");if(!i.compress||"HEAD"===i.method||null===u||204===e.statusCode||304===e.statusCode)return c=new Response2(a,o),void r(c);const f={flush:import_node_zlib.default.Z_SYNC_FLUSH,finishFlush:import_node_zlib.default.Z_SYNC_FLUSH};if("gzip"===u||"x-gzip"===u)return a=(0,import_node_stream2.pipeline)(a,import_node_zlib.default.createGunzip(f),(e=>{e&&n(e)})),c=new Response2(a,o),void r(c);if("deflate"===u||"x-deflate"===u){const t=(0,import_node_stream2.pipeline)(e,new import_node_stream2.PassThrough,(e=>{e&&n(e)}));return t.once("data",(e=>{a=8==(15&e[0])?(0,import_node_stream2.pipeline)(a,import_node_zlib.default.createInflate(),(e=>{e&&n(e)})):(0,import_node_stream2.pipeline)(a,import_node_zlib.default.createInflateRaw(),(e=>{e&&n(e)})),c=new Response2(a,o),r(c)})),void t.once("end",(()=>{c||(c=new Response2(a,o),r(c))}))}if("br"===u)return a=(0,import_node_stream2.pipeline)(a,import_node_zlib.default.createBrotliDecompress(),(e=>{e&&n(e)})),c=new Response2(a,o),void r(c);c=new Response2(a,o),r(c)})),writeToStream(d,i).catch(n)}))}function fixResponseChunkedTransferBadEnding(e,t){const r=import_node_buffer2.Buffer.from("0\r\n\r\n");let n,i=!1,s=!1;e.on("response",(e=>{const{headers:t}=e;i="chunked"===t["transfer-encoding"]&&!t["content-length"]})),e.on("socket",(a=>{const o=()=>{if(i&&!s){const e=new Error("Premature close");e.code="ERR_STREAM_PREMATURE_CLOSE",t(e)}},l=e=>{s=0===import_node_buffer2.Buffer.compare(e.slice(-5),r),!s&&n&&(s=0===import_node_buffer2.Buffer.compare(n.slice(-3),r.slice(0,3))&&0===import_node_buffer2.Buffer.compare(e.slice(-2),r.slice(3))),n=e};a.prependListener("close",o),a.on("data",l),e.on("close",(()=>{a.removeListener("close",o),a.removeListener("data",l)}))}))}async function pullSchema(e,t,r,n,i){let s="";try{const a=(e,t,r)=>{const n=new AbortController,i=fetch(e,{signal:n.signal,...r}),s=setTimeout((()=>{n.abort()}),t);return i.catch((e=>{if("aborted"===e.type)throw Error(`reached timeout of ${t}ms. Make sure the API is available and tweak this timeout in your config if your API is slow to respond.`);return e})).finally((()=>clearTimeout(s)))},o=await a(e,t,{method:"POST",body:JSON.stringify({query:graphql.getIntrospectionQuery()}),headers:{"Content-Type":"application/json",...n}});s=await o.text();const l=JSON.parse(s).data;let c="";if(r.endsWith("gql")||r.endsWith("graphql")||r.endsWith("graphqls")){const e=graphql.buildClientSchema(l);c=graphql.printSchema(graphql.lexicographicSortSchema(e))}else c=JSON.stringify(l);return i||await writeFile(r,c),c}catch(e){s?console.warn(`⚠️  Couldn't pull your schema.\n${cyan2("   Reponse:")} ${s}\n${cyan2("   Error  :")} ${e.message}`):console.warn(`⚠️  Couldn't pull your schema: ${e.message}`)}return null}function extractHeadersStr(e){const t=/(\w+)=("[^"]*"|[^ ]*)/g,r={};let n;for(;null!==(n=t.exec(e??""));)r[n[1]]=n[2].replaceAll('"',"");return r}function extractHeaders(e){return(e??[]).length>0?e.reduce(((e,t)=>{const[r,n]=t.split(/=(.*)/s);return{...e,[r]:n.replaceAll('"',"")}}),{}):{}}function plugin(e,t){const r={name:e,plugin:t,__plugin_init__:!0,with:e=>({...r,config:e})};return r}var conventions_exports={};function router_path(e){return path_exports.join(base_dir(e),"Router.jsx")}function page_entry_path(e,t,r){return path_exports.join(page_entries_dir(e,r),`${t}.jsx`)}function server_adapter_path(e,t){return path_exports.join(units_dir(e,t),"render","server.js")}function adapter_config_path(e,t){return path_exports.join(units_dir(e,t),"render","config.js")}function vite_render_path(e,t){return path_exports.join(units_dir(e,t),"render","vite.js")}function app_component_path(e,t){return path_exports.join(units_dir(e,t),"render","App.jsx")}function page_unit_path(e,t,r){return path_exports.join(page_units_dir(e,r),`${t}.jsx`)}function layout_unit_path(e,t,r){return path_exports.join(layout_units_dir(e,r),`${t}.jsx`)}function componentField_unit_path(e,t,r){return path_exports.join(units_dir(e,r),"componentFields",`wrapper_${t}.jsx`)}function fallback_unit_path(e,t,r,n){return path_exports.join(fallbacks_units_dir(e,t,n),`${r}.jsx`)}async function read_pageQuery(e){const t=path_exports.join(e,"+page.gql");return[t,await fs_exports.readFile(t)]}async function read_pageView(e){for(const t of["+page.tsx","+page.jsx"]){let r=path_exports.join(e,t),n=await fs_exports.readFile(r);if(n)return[r,n]}return[null,null]}async function read_layoutQuery(e){const t=path_exports.join(e,"+layout.gql");return[t,await fs_exports.readFile(t)]}async function read_layoutView(e){for(const t of["+layout.tsx","+layout.jsx"]){let r=path_exports.join(e,t),n=await fs_exports.readFile(r);if(n)return[r,n]}return[null,null]}function temp_dir(e,t){return path_exports.join(e.rootDir,"temp",t)}function router_index_path(e){return path_exports.join(e.routesDir,"..","+index.jsx")}function is_layout(e){return e.endsWith("+layout.tsx")||e.endsWith("+layout.jsx")}function page_id(e){e.endsWith("/")&&e.length>1&&(e=e.substring(0,e.length-1));const t=["/","]","[","(",")","-"];let r="";for(const n of e){r+=-1!==t.indexOf(n)?"_":n}return r}function page_entries_dir(e,t){return path_exports.join(units_dir(e,t),"entries")}function page_units_dir(e,t){return path_exports.join(units_dir(e,t),"pages")}function layout_units_dir(e,t){return path_exports.join(units_dir(e,t),"layouts")}function fallbacks_units_dir(e,t,r){return path_exports.join(units_dir(e,r),"fallbacks",t)}function units_dir(e,t=base_dir(e)){return path_exports.join(t,"units")}function base_dir(e){return e.pluginDirectory("houdini-react")}function serialized_manifest_path(e,t=base_dir(e)){return path_exports.join(t,"manifest.json")}__export(conventions_exports,{adapter_config_path:()=>adapter_config_path,app_component_path:()=>app_component_path,componentField_unit_path:()=>componentField_unit_path,fallback_unit_path:()=>fallback_unit_path,is_layout:()=>is_layout,layout_unit_path:()=>layout_unit_path,page_entries_dir:()=>page_entries_dir,page_entry_path:()=>page_entry_path,page_id:()=>page_id,page_unit_path:()=>page_unit_path,read_layoutQuery:()=>read_layoutQuery,read_layoutView:()=>read_layoutView,read_pageQuery:()=>read_pageQuery,read_pageView:()=>read_pageView,router_index_path:()=>router_index_path,router_path:()=>router_path,serialized_manifest_path:()=>serialized_manifest_path,server_adapter_path:()=>server_adapter_path,temp_dir:()=>temp_dir,units_dir:()=>units_dir,vite_render_path:()=>vite_render_path});var t2=__toESM(require_lib5(),1),graphql2=__toESM(require("graphql"),1);async function load_manifest(e){const t=await walk_routes({config:e.config,url:"/",filepath:e.config.routesDir,project:{component_fields:{},pages:{},layouts:{},page_queries:{},layout_queries:{},artifacts:[],local_schema:!1,local_yoga:!1},queries:[],layouts:[],variables:{}});if(e.includeArtifacts)try{for(const r of await fs_exports.readdir(e.config.artifactDirectory))r.endsWith(".js")&&"index.js"!==r&&t.artifacts.push(r.substring(0,r.length-3))}catch{}try{await fs_exports.stat(e.config.localApiDir);for(const r of await fs_exports.readdir(e.config.localApiDir,{withFileTypes:!0})){const e=r.isDirectory()?r.name:path_exports.parse(r.name).name;"+schema"===e?t.local_schema=!0:"+yoga"===e&&(t.local_yoga=!0)}}catch{}return t}async function walk_routes(e){const t=await fs_exports.readdir(e.filepath,{withFileTypes:!0}),r={...e.variables};let n=e.layouts,i=e.queries,s=null,a=null,o=null;const[[l,c],[u,p],[d,h],[f,m]]=await Promise.all([read_layoutQuery(e.filepath),read_layoutView(e.filepath),read_pageQuery(e.filepath),read_pageView(e.filepath)]);return c&&(a=await add_query({path:l,config:e.config,url:e.url,project:e.project,type:"layout",contents:c,variables:r}),i=[...e.queries,a.name]),p&&(s=await add_view({url:e.url,path:u,project:e.project,type:"layout",contents:p,layouts:e.layouts,queries:i,config:e.config,variables:r}),n=[...e.layouts,page_id(s.url)]),h&&(o=await add_query({path:d,config:e.config,url:e.url,project:e.project,type:"page",contents:h,variables:r})),m&&await add_view({path:f,url:e.url.substring(0,e.url.length-1)||"/",project:e.project,type:"page",contents:m,layouts:n,queries:o?[...i,o.name]:i,config:e.config,variables:r}),await Promise.all(t.map((t=>{if(t.isDirectory())return walk_routes({...e,filepath:path_exports.join(e.filepath,t.name),url:`${e.url}${t.name}/`,queries:i,layouts:n,variables:r})}))),e.project}async function add_view(e){const t="page"===e.type?e.project.pages:e.project.layouts,r=await extractQueries(e.contents),n=r.filter((t=>!e.queries.includes(t)));if(n.length>0)throw{message:`Unknown queries in ${e.path}: ${n.join(", ")}`};const i=page_id(e.url);return t[i]={id:i,queries:r,url:e.url,layouts:e.layouts,path:path_exports.relative(e.config.projectRoot,e.path),query_options:e.queries,params:Object.fromEntries(parse_page_pattern(e.url).params.map((t=>[t.name,e.variables[t.name]??null])))},t[i]}async function add_query(e){const t=graphql2.parse(e.contents),r=t.definitions.find((e=>"OperationDefinition"===e.kind&&"query"===e.operation));if(!r?.name)throw new Error("No query found");let n=!1;await graphql2.visit(t,{Directive(t){t.name.value===e.config.loadingDirective&&(n=!0)}});const i=Object.fromEntries(r.variableDefinitions?.map((t=>{const{type:r,wrappers:n}=unwrapType(e.config,t.type,[],!0);return[t.variable.name.value,{wrappers:n,type:r.name}]}))??[]);Object.assign(e.variables,i);const s="page"===e.type?e.project.page_queries:e.project.layout_queries;return s[page_id(e.url)]={path:path_exports.relative(e.config.routesDir,e.path),name:r.name.value,url:e.url,loading:n,variables:i},s[page_id(e.url)]}async function extractQueries(e){const t=parseJS(e,{plugins:["jsx"]});let r=null,n=null;for(const e of t.body)if(t2.isExportDefaultDeclaration(e)){if(t2.isFunctionDeclaration(e.declaration)||t2.isArrowFunctionExpression(e.declaration)||t2.isFunctionExpression(e.declaration)){r=e.declaration;break}t2.isIdentifier(e.declaration)&&(n=e.declaration.name)}if(n)for(const e of t.body)if(t2.isVariableDeclaration(e))for(const t of e.declarations)if(t2.isVariableDeclarator(t)&&t2.isIdentifier(t.id)&&t.id.name===n){if(t2.isArrowFunctionExpression(t.init)||t2.isFunctionExpression(t.init)){r=t.init;break}if(t2.isTSAsExpression(t.init)&&(t2.isArrowFunctionExpression(t.init.expression)||t2.isFunctionExpression(t.init.expression))){r=t.init.expression;break}}if(!r)return[];let i=[];const s=r;if(!(s&&s.params.length>0))return[];{const e=s.params[0];if(!t2.isObjectPattern(e))throw new Error("Props should be specified as an object pattern.");for(const t of e.properties)t2.isObjectProperty(t)&&t2.isIdentifier(t.key)&&i.push(t.key.name)}return i.reduce(((e,t)=>"children"===t?e:(t.endsWith("$handle")&&(t=t.substring(0,t.length-7)),e.includes(t)?e:e.concat([t]))),[])}var import_node_path2=__toESM(require("node:path"),1);function flatten(e){return e?e.reduce(((e,t)=>t?Array.isArray(t)?e.concat(flatten(t)):e.concat(t):e),[]):[]}var GarbageCollector=class{cache;lifetimes=new Map;get cacheBufferSize(){return this.cache._internal_unstable.config.cacheBufferSize??10}constructor(e){this.cache=e}reset(){this.lifetimes.clear()}resetLifetime(e,t){this.lifetimes.get(e)||this.lifetimes.set(e,new Map),this.lifetimes.get(e).set(t,0)}tick(){const e=Date.now().valueOf(),t=this.cache._internal_unstable.config.defaultLifetime;for(const[r,n]of this.lifetimes.entries())for(const[i,s]of n.entries())if(!(this.cache._internal_unstable.subscriptions.get(r,i).length>0)&&(n.set(i,s+1),n.get(i)>this.cacheBufferSize&&(this.cache._internal_unstable.storage.deleteField(r,i),this.cache._internal_unstable.lists.deleteField(r,i),n.delete(i),0===[...n.keys()].length&&this.lifetimes.delete(r),this.cache._internal_unstable.staleManager.delete(r,i)),t&&t>0)){const n=this.cache.getFieldTime(r,i);n&&e-n>t&&this.cache._internal_unstable.staleManager.markFieldStale(r,i)}}};function evaluateKey(e,t=null){let r="",n="",i=!1;for(const s of e){if(n){if(varChars.includes(s)){n+=s;continue}const e=t?.[n.slice(1)];r+=void 0!==e?JSON.stringify(e):"undefined",n=""}"$"!==s||i?('"'===s&&(i=!i),r+=s):n="$"}return r}var varChars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789",rootID="_ROOT_",ListManager=class{rootID;cache;constructor(e,t){this.rootID=t,this.cache=e}lists=new Map;listsByField=new Map;get(e,t,r){const n=this.lists.get(e);if(!n||0===n.size)return null;if(r)return new ListCollection(Array.from(n,(([e,t])=>[...t.lists])).flat());const i=[...n.values()][0],{recordType:s}=i.lists[0],a=t?this.cache._internal_unstable.id(s||"",t):this.rootID;return 1===n?.size?t?a===Array.from(n.keys())[0]?i:null:i:t?this.lists.get(e)?.get(a):(console.error(`Found multiple instances of "${e}". Please provide one of @parentID or @allLists directives to help identify which list you want modify. For more information, visit this guide: https://www.houdinigraphql.com/api/graphql#parentidvalue-string `),null)}remove(e,t){this.lists.get(e)?.delete(t||this.rootID)}add(e){this.lists.has(e.name)||this.lists.set(e.name,new Map);const t=e.name,r=e.recordID||this.rootID;if(this.lists.get(t)?.get(r)?.includes(e.key))return;this.lists.has(t)||this.lists.set(t,new Map),this.lists.get(t).has(r)||this.lists.get(t).set(r,new ListCollection([])),this.listsByField.has(r)||this.listsByField.set(r,new Map),this.listsByField.get(r).has(e.key)||this.listsByField.get(r)?.set(e.key,[]);const n=new List({...e,manager:this});this.lists.get(e.name).get(r).lists.push(n),this.listsByField.get(r).get(e.key).push(n)}removeIDFromAllLists(e,t){let r=!1;for(const n of this.lists.values())for(const i of n.values())i.removeID(e,void 0,t)&&(r=!0);return r}deleteField(e,t){if(this.listsByField.get(e)?.has(t)){for(const r of this.listsByField.get(e).get(t))this.lists.get(r.name)?.get(r.recordID)?.deleteListWithKey(t),0===this.lists.get(r.name)?.get(r.recordID)?.lists.length&&this.lists.get(r.name)?.delete(r.recordID);this.listsByField.get(e).delete(t)}}reset(){this.lists.clear(),this.listsByField.clear()}},List=class{recordID;recordType;key;type;cache;selection;_when;filters;name;connection;manager;abstract;constructor({name:e,recordID:t,recordType:r,key:n,listType:i,selection:s,when:a,filters:o,connection:l,manager:c,abstract:u}){this.recordID=t||rootID,this.recordType=r,this.key=n,this.type=i,this.cache=c.cache,this.selection=s,this._when=a,this.filters=o,this.name=e,this.connection=l,this.manager=c,this.abstract=u}when(e){return this.manager.lists.get(this.name).get(this.recordID).when(e)}append({selection:e,data:t,variables:r={},layer:n}){return this.addToList(e,t,r,"last",n)}prepend({selection:e,data:t,variables:r={},layer:n}){return this.addToList(e,t,r,"first",n)}addToList(e,t,r={},n,i){const s=this.listType(t),a=this.cache._internal_unstable.id(s,t);if(!this.validateWhen()||!a)return;let o=e,l=t;this.connection?(o={fields:{newEntry:{keyRaw:this.key,type:"Connection",selection:{fields:{edges:{keyRaw:"edges",type:"ConnectionEdge",updates:["append","prepend"],selection:{fields:{__typename:{keyRaw:"__typename",type:"String"},node:{type:s,keyRaw:"node",selection:{...e,fields:{...e.fields,__typename:{keyRaw:"__typename",type:"String"}}}}}}}}}}}},l={newEntry:{edges:[{__typename:s+"Edge",node:{...t,__typename:s}}]}}):(o={fields:{newEntries:{keyRaw:this.key,type:s,updates:["append","prepend"],selection:{...e,fields:{...e.fields,__typename:{keyRaw:"__typename",type:"String"}}}}}},l={newEntries:[{...t,__typename:s}]}),this.cache.write({selection:o,data:l,variables:r,parent:this.recordID,applyUpdates:["first"===n?"prepend":"append"],layer:i?.id})}removeID(e,t={},r){if(!this.validateWhen())return;let n=this.recordID,i=e,s=this.key;if(this.connection){const{value:t}=this.cache._internal_unstable.storage.get(this.recordID,this.key);if(!t)return;const r=t,{value:a}=this.cache._internal_unstable.storage.get(r,"edges");for(const t of flatten(a)||[]){if(!t)continue;const r=t,{value:n}=this.cache._internal_unstable.storage.get(r,"node");n&&(n===e&&(i=r))}n=r,s="edges"}let a=this.cache._internal_unstable.storage.get(n,s).value;if(!a||!a.includes(i))return;const o=this.cache._internal_unstable.subscriptions.get(this.recordID,this.key);this.cache._internal_unstable.subscriptions.remove(i,this.connection?this.selection.fields.edges.selection:this.selection,o.map((e=>e[0])),t),this.cache._internal_unstable.storage.remove(n,s,i,r);for(const[e]of o)e.set(this.cache._internal_unstable.getSelection({parent:e.parentID||this.manager.rootID,selection:e.selection,variables:e.variables?.()||{},ignoreMasking:!1}).data);return!0}remove(e,t={},r){const n=this.cache._internal_unstable.id(this.listType(e),e);if(n)return this.removeID(n,t,r)}listType(e){return e.__typename||this.type}validateWhen(e){let t=e||this._when,r=!0;if(t){const e=this.filters;t.must&&e&&(r=Object.entries(t.must).reduce(((t,[r,n])=>Boolean(t&&e[r]==n)),r)),t.must_not&&(r=!e||Object.entries(t.must_not).reduce(((t,[r,n])=>Boolean(t&&e[r]!=n)),r))}return r}toggleElement({selection:e,data:t,variables:r={},layer:n,where:i}){this.remove(t,r,n)||this.addToList(e,t,r,i,n)}*[Symbol.iterator](){let e=[],t=this.cache._internal_unstable.storage.get(this.recordID,this.key).value;e=this.connection?this.cache._internal_unstable.storage.get(t,"edges").value:flatten(t);for(let t of e)yield t}},ListCollection=class{lists=[];constructor(e){this.lists=e}get selection(){return this.lists[0].selection}append(...e){this.lists.forEach((t=>t.append(...e)))}prepend(...e){this.lists.forEach((t=>t.prepend(...e)))}addToList(...e){this.lists.forEach((t=>t.addToList(...e)))}removeID(...e){let t=!1;return this.lists.forEach((r=>{r.removeID(...e)&&(t=!0)})),t}remove(...e){this.lists.forEach((t=>t.remove(...e)))}toggleElement(...e){this.lists.forEach((t=>t.toggleElement(...e)))}when(e){return new ListCollection(this.lists.filter((t=>t.validateWhen(e))))}includes(e){return!!this.lists.find((t=>t.key===e))}deleteListWithKey(e){return this.lists=this.lists.filter((t=>t.key!==e))}*[Symbol.iterator](){for(let e of this.lists)for(const t of e)yield t}},StaleManager=class{cache;fieldsTime=new Map;constructor(e){this.cache=e}#p=e=>{this.fieldsTime.get(e)||this.fieldsTime.set(e,new Map)};getFieldTime(e,t){return this.fieldsTime.get(e)?.get(t)}setFieldTimeToNow(e,t){this.#p(e),this.fieldsTime.get(e)?.set(t,(new Date).valueOf())}markFieldStale(e,t){this.#p(e),this.fieldsTime.get(e)?.set(t,null)}markAllStale(){for(const[e,t]of this.fieldsTime.entries())for(const[r]of t.entries())this.markFieldStale(e,r)}markRecordStale(e){const t=this.fieldsTime.get(e);if(t)for(const[r]of t.entries())this.markFieldStale(e,r)}markTypeStale(e){for(const[t,r]of this.fieldsTime.entries())if(t.startsWith(`${e}:`))for(const[e]of r.entries())this.markFieldStale(t,e)}markTypeFieldStale(e,t,r){const n=computeKey({field:t,args:r});for(const[r,i]of this.fieldsTime.entries())if(r.startsWith(`${e}:`))for(const e of i.keys())e===n&&this.markFieldStale(r,t)}delete(e,t){this.fieldsTime.has(e)&&(this.fieldsTime.get(e)?.delete(t),0===this.fieldsTime.get(e)?.size&&this.fieldsTime.delete(e))}reset(){this.fieldsTime.clear()}},InMemoryStorage=class{data;idCount=1;rank=0;idMaps={};constructor(){this.data=[]}get layerCount(){return this.data.length}get nextRank(){return this.rank++}registerIDMapping(e,t){this.idMaps[e]=t,this.idMaps[t]=e}createLayer(e=!1){const t=new Layer(this.idCount++);return t.optimistic=e,this.data.push(t),t}insert(e,t,r,n){return this.topLayer.insert(e,t,r,n)}remove(e,t,r,n=this.topLayer){return n.remove(e,t,r)}delete(e,t=this.topLayer){return t.delete(e)}deleteField(e,t){return this.topLayer.deleteField(e,t)}getLayer(e){for(const t of this.data)if(t.id===e)return t;throw new Error("Could not find layer with id: "+e)}replaceID(e){for(const t of this.data)t.replaceID(e)}get(e,t,r){const n={[OperationKind.insert]:{[OperationLocation.start]:[],[OperationLocation.end]:[]},[OperationKind.remove]:new Set},i=[],s=[this.idMaps[e],e].filter(Boolean);for(let e=this.data.length-1;e>=0;e--)for(const a of s){const s=this.data[e];let[o,l]=s.get(a,t);const c=s.getOperations(a,t)||[];if(s.deletedIDs.forEach((e=>{s.operations[e]?.undoDeletesInList?.includes(t)||(n.remove.add(e),this.idMaps[e]&&n.remove.add(this.idMaps[e]))})),void 0===o&&r){this.topLayer.writeField(a,t,r),o=r}if(void 0!==o||0!==c.length){if(void 0!==o&&!Array.isArray(o))return{value:o,kind:l,displayLayers:[s.id]};if(i.push(s.id),c.length>0)for(const e of c)if(isRemoveOperation(e)&&n.remove.add(e.id),isInsertOperation(e)&&(e.location===OperationLocation.end?n.insert[e.location].unshift(e.id):n.insert[e.location].push(e.id)),isDeleteOperation(e))return{value:void 0,kind:"unknown",displayLayers:[]};if(void 0!==o)return n.remove.size||n.insert.start.length||n.insert.end.length?{value:[...n.insert.start,...o,...n.insert.end].filter((e=>!n.remove.has(e))),displayLayers:i,kind:l}:{value:o,displayLayers:i,kind:"link"}}else s.deletedIDs.size>0&&i.push(s.id)}return{value:void 0,kind:"unknown",displayLayers:[]}}writeLink(e,t,r){return this.topLayer.writeLink(e,t,r)}writeField(e,t,r){return this.topLayer.writeField(e,t,r)}resolveLayer(e){let t=null;for(const[r,n]of this.data.entries())if(n.id===e){t=r-1,this.data[r].optimistic=!1;break}if(null===t)throw new Error("could not find layer with id: "+e);-1===t&&(t=0),this.data[t].optimistic&&t++;const r=this.data[t];let n=t;for(;n<this.data.length;){const e=this.data[n++];if(e.optimistic){n--;break}r.writeLayer(e)}this.data.splice(t+1,n-t-1),1===this.data.length&&(this.idMaps={})}get topLayer(){return 0===this.data.length&&this.createLayer(),this.data[this.data.length-1]?.optimistic&&this.createLayer(),this.data[this.data.length-1]}serialize(){return JSON.stringify({rank:this.rank,fields:Object.fromEntries(Object.entries(this.topLayer.fields).map((([e,t])=>[e,Object.fromEntries(Object.entries(t).filter((([e,t])=>"function"!=typeof t)))]))),links:this.topLayer.links})}hydrate(e,t){if(!e)return;const{rank:r,fields:n,links:i}=e;this.rank=r,t??=this.createLayer(!0),t.fields=n,t.links=i}reset(){this.data=[]}},Layer=class{id;optimistic=!1;fields={};links={};operations={};deletedIDs=new Set;constructor(e){this.id=e}get(e,t){return void 0!==this.links[e]?.[t]?[this.links[e][t],"link"]:[this.fields[e]?.[t],"scalar"]}getOperations(e,t){return this.operations[e]?.deleted?[{kind:OperationKind.delete,target:e}]:this.operations[e]?.fields?.[t]?this.operations[e].fields[t]:void 0}writeField(e,t,r){return this.fields[e]={...this.fields[e],[t]:r},this.id}writeLink(e,t,r){const n=Array.isArray(r)?r:[r];for(const r of flatten(n)){if(!r)continue;const n=this.operations[e]?.fields[t];this.operations[r]?.deleted||this.deletedIDs.has(r)?this.operations[r]={...this.operations[r],undoDeletesInList:[...this.operations[e]?.undoDeletesInList||[],t]}:r&&n?.length>0&&(this.operations[e].fields[t]=n.filter((e=>"remove"!==e.kind||e.id!==r)))}return this.links[e]={...this.links[e],[t]:r},this.id}isDisplayLayer(e){return 0===e.length||e.includes(this.id)||Math.max(...e)<this.id}clear(){this.links={},this.fields={},this.operations={},this.deletedIDs=new Set}replaceID({from:e,to:t}){this.fields[t]=this.fields[e],this.links[t]=this.links[e],this.operations[t]=this.operations[e]||{fields:{}},this.deletedIDs.has(e)&&this.deletedIDs.add(t)}removeUndefinedFields(){for(const[e,t]of Object.entries(this.fields)){for(const[r,n]of Object.entries(t))if(void 0===n){try{delete this.fields[e][r]}catch{}try{delete this.links[e][r]}catch{}}0===Object.keys(t||{}).length&&delete this.fields[e],0===Object.keys(this.links[e]||{}).length&&delete this.links[e]}}delete(e){this.operations={...this.operations,[e]:{...this.operations[e],deleted:!0,undoDeletesInList:[]}},this.deletedIDs.add(e)}deleteField(e,t){this.fields[e]={...this.fields[e],[t]:void 0}}insert(e,t,r,n){this.addFieldOperation(e,t,{kind:OperationKind.insert,id:n,location:r})}remove(e,t,r){this.addFieldOperation(e,t,{kind:OperationKind.remove,id:r})}writeLayer(e){if(e.id!==this.id){for(const[t,r]of Object.entries(e.operations)){const n={};for(const r of[e.operations[t],this.operations[t]].filter(Boolean))for(const[e,t]of Object.entries(r.fields||{}))n[e]=[...n[e]||[],...t];Object.keys(n).length>0&&(this.operations[t]={...this.operations[t],fields:n}),r?.deleted&&(delete this.fields[t],delete this.links[t])}for(const[t,r]of Object.entries(e.fields))if(r)for(const[e,n]of Object.entries(r))this.writeField(t,e,n);for(const[t,r]of Object.entries(e.links))if(r)for(const[e,n]of Object.entries(r))this.writeLink(t,e,n);e.deletedIDs.forEach((e=>this.deletedIDs.add(e)))}}addFieldOperation(e,t,r){this.operations={...this.operations,[e]:{...this.operations[e],fields:{...this.operations[e]?.fields,[t]:[...this.operations[e]?.fields[t]||[],r]}}}}};function isDeleteOperation(e){return!!e&&e.kind===OperationKind.delete}function isInsertOperation(e){return!!e&&e.kind===OperationKind.insert}function isRemoveOperation(e){return!!e&&e.kind===OperationKind.remove}var OperationLocation={start:"start",end:"end"},OperationKind={delete:"delete",insert:"insert",remove:"remove"},InMemorySubscriptions=class{cache;constructor(e){this.cache=e}subscribers=new Map;keyVersions={};activeFields(e){return Object.keys(this.subscribers.get(e)||{})}copySubscribers(e,t){this.subscribers.set(t,this.subscribers.get(e)||new Map)}add({parent:e,spec:t,selection:r,variables:n,parentType:i}){let s=getFieldsForType(r,this.cache._internal_unstable.storage.get(e,"__typename").value,!1);for(const r of Object.values(s||{})){const{keyRaw:s,selection:a,type:o,list:l,filters:c,visible:u}=r;if(!u)continue;const p=evaluateKey(s,n);let d;if(a){d=getFieldsForType(a,this.cache._internal_unstable.storage.get(e,"__typename").value,!1)}if(this.addFieldSubscription({id:e,key:p,selection:[t,d],type:o}),l&&this.registerList({list:l,filters:c,id:e,key:p,variables:n,selection:a,parentType:i||t.rootType}),a){const{value:r}=this.cache._internal_unstable.storage.get(e,p);let i=Array.isArray(r)?flatten(r)||[]:[r];for(const e of i)e&&this.add({parent:e,spec:t,selection:a,variables:n,parentType:o})}}}addFieldSubscription({id:e,key:t,selection:r,type:n}){const i=r[0];this.subscribers.has(e)||this.subscribers.set(e,new Map);const s=this.subscribers.get(e);s.has(t)||s.set(t,{selections:[],referenceCounts:new Map});const a=s.get(t);this.keyVersions[t]||(this.keyVersions[t]=new Set),this.keyVersions[t].add(t),a.selections.some((([{set:e}])=>e===i.set))||a.selections.push([i,r[1]]),a.referenceCounts.set(i.set,(a.referenceCounts.get(i.set)||0)+1),this.cache._internal_unstable.lifetimes.resetLifetime(e,t)}registerList({list:e,id:t,key:r,parentType:n,selection:i,filters:s,variables:a}){this.cache._internal_unstable.lists.add({name:e.name,connection:e.connection,recordID:t,recordType:this.cache._internal_unstable.storage.get(t,"__typename")?.value||n,listType:e.type,key:r,selection:i,filters:Object.entries(s||{}).reduce(((e,[t,{kind:r,value:n}])=>({...e,[t]:"Variable"!==r?n:a[n]})),{})})}addMany({parent:e,variables:t,subscribers:r,parentType:n}){for(const[i,s]of r)for(const a of Object.values(s??{})){const{type:s,keyRaw:o,selection:l,list:c,filters:u}=a,p=evaluateKey(o,t),d=l?getFieldsForType(l,n,!1):void 0;this.addFieldSubscription({id:e,key:p,selection:[i,d],type:s}),c&&this.registerList({list:c,filters:u,id:e,key:p,variables:t,selection:l,parentType:n||i.rootType});const h=a.selection;if(h){const{value:n}=this.cache._internal_unstable.storage.get(e,p),i=Array.isArray(n)?flatten(n):[n];for(const e of i){if(!e)continue;let n=getFieldsForType(h,this.cache._internal_unstable.storage.get(e,"__typename").value,!1);this.addMany({parent:e,variables:t,subscribers:r.map((([e])=>[e,n])),parentType:s})}}}}get(e,t){return this.subscribers.get(e)?.get(t)?.selections||[]}getAll(e){return[...this.subscribers.get(e)?.values()||[]].flatMap((e=>e.selections))}remove(e,t,r,n,i=[]){i.push(e);const s=[];let a=getFieldsForType(t,this.cache._internal_unstable.storage.get(e,"__typename").value,!1);for(const t of Object.values(a||{})){const i=evaluateKey(t.keyRaw,n);if(this.removeSubscribers(e,i,r),!t.selection)continue;const{value:a}=this.cache._internal_unstable.storage.get(e,i),o=Array.isArray(a)?flatten(a):[a];for(const e of o)null!==e&&s.push([e,t.selection||{}])}for(const[e,t]of s)this.remove(e,t,r,i)}reset(){const e=[...this.subscribers.entries()].filter((([e])=>!e.startsWith(rootID)));for(const[t,r]of e)this.subscribers.delete(t);return e.flatMap((([e,t])=>[...t.values()].flatMap((e=>e.selections.map((([e])=>e))))))}removeSubscribers(e,t,r){let n=[];const i=this.subscribers.get(e);if(!i)return;const s=i.get(t);for(const e of r){const r=s?.referenceCounts;if(!r?.has(e.set))continue;const a=(r.get(e.set)||0)-1;r.set(e.set,a),a<=0&&(n.push(e.set),r.delete(e.set)),0===r.size&&i.delete(t)}s&&(s.selections=this.get(e,t).filter((([{set:e}])=>!n.includes(e)))),0===i.size&&this.subscribers.delete(e)}removeAllSubscribers(e,t){t||(t=[...this.subscribers.get(e)?.values()||[]].flatMap((e=>e.selections.flatMap((e=>e[0])))));for(const r of t)for(const n of this.findSubSelections(r.parentID||rootID,r.selection,r.variables||{},e))this.remove(e,n,t,r.variables||{})}get size(){let e=0;for(const[,t]of this.subscribers)for(const[,{referenceCounts:r}]of t)e+=[...r.values()].reduce(((e,t)=>e+t),0);return e}findSubSelections(e,t,r,n,i=[]){let s=getFieldsForType(t,this.cache._internal_unstable.storage.get(e,"__typename").value,!1);for(const t of Object.values(s||{})){if(!t.selection)continue;const s=evaluateKey(t.keyRaw,r||{}),a=this.cache._internal_unstable.storage.get(e,s),o=Array.isArray(a.value)?flatten(a.value):[a.value];if(o.includes(n))i.push(t.selection);else for(const e of o)this.findSubSelections(e,t.selection,r,n,i)}return i}},Cache=class{_internal_unstable;constructor({disabled:e,componentCache:t,createComponent:r,...n}={}){this._internal_unstable=new CacheInternal({cache:this,storage:new InMemoryStorage,subscriptions:new InMemorySubscriptions(this),lists:new ListManager(this,rootID),lifetimes:new GarbageCollector(this),staleManager:new StaleManager(this),disabled:e??void 0===globalThis.window,componentCache:t,createComponent:r}),Object.keys(n).length>0&&this.setConfig(defaultConfigValues(n))}write({layer:e,notifySubscribers:t=[],...r}){const n=e?this._internal_unstable.storage.getLayer(e):this._internal_unstable.storage.topLayer,i=this._internal_unstable.writeSelection({...r,layer:n}).map((e=>e[0]));return this.#d(i.concat(t)),i}read(...e){const{data:t,partial:r,stale:n,hasData:i}=this._internal_unstable.getSelection(...e);return i?{data:t,partial:r,stale:n}:{data:null,partial:!1,stale:!1}}subscribe(e,t={}){if(!this._internal_unstable.disabled)return this._internal_unstable.subscriptions.add({parent:e.parentID||rootID,spec:e,selection:e.selection,variables:t})}unsubscribe(e,t={}){return this._internal_unstable.subscriptions.remove(e.parentID||rootID,e.selection,[e],t)}list(e,t,r){const n=this._internal_unstable.lists.get(e,t,r);if(!n)throw new Error(`Cannot find list with name: ${e}${t?" under parent "+t:""}. Is it possible that the query is not mounted?`);return n}registerKeyMap(e,t){this._internal_unstable.storage.registerIDMapping(e,t),this._internal_unstable.subscriptions.copySubscribers(e,t)}delete(e,t){const r=[this._internal_unstable.storage.idMaps[e],e].filter(Boolean);for(const e of r)this._internal_unstable.subscriptions.removeAllSubscribers(e),this._internal_unstable.lists.removeIDFromAllLists(e,t),this._internal_unstable.storage.delete(e,t)}setConfig(e){this._internal_unstable.setConfig(e)}markTypeStale(e){e?e.field?this._internal_unstable.staleManager.markTypeFieldStale(e.type,e.field,e.when):this._internal_unstable.staleManager.markTypeStale(e.type):this._internal_unstable.staleManager.markAllStale()}markRecordStale(e,t){if(t.field){const r=computeKey({field:t.field,args:t.when??{}});this._internal_unstable.staleManager.markFieldStale(e,r)}else this._internal_unstable.staleManager.markRecordStale(e)}getFieldTime(e,t){return this._internal_unstable.staleManager.getFieldTime(e,t)}config(){return this._internal_unstable.config}serialize(){return this._internal_unstable.storage.serialize()}hydrate(...e){return this._internal_unstable.storage.hydrate(...e)}clearLayer(e){const t=this._internal_unstable.storage.getLayer(e);if(!t)throw new Error("Cannot find layer with id: "+e);const r=[],n=[];for(const e of[t.fields,t.links])for(const[t,r]of Object.entries(e))n.push(...Object.entries(r).map((([e,r])=>({id:t,field:e,value:r}))));const i=[];for(const t of n){const{displayLayers:r}=this._internal_unstable.storage.get(t.id,t.field);r.includes(e)&&i.push(t)}for(const[e,r]of Object.entries(t.operations)){r.deleted&&i.push(...this._internal_unstable.subscriptions.activeFields(e).map((t=>({id:e,field:t}))));const t=Object.keys(r.fields??{});t.length>0&&i.push(...t.map((t=>({id:e,field:t}))))}t.clear();for(const e of i){const{field:t,id:n}=e;(!("value"in e)||this._internal_unstable.storage.get(n,t).value!==e.value)&&r.push(...this._internal_unstable.subscriptions.get(n,t).map((e=>e[0])))}this.#d(r)}reset(){const e=this._internal_unstable.subscriptions.reset();this._internal_unstable.staleManager.reset(),this._internal_unstable.lifetimes.reset(),this._internal_unstable.lists.reset(),this._internal_unstable.storage.reset(),this.#d(e)}#d(e){if(0===e.length)return;const t=[];for(const r of e)t.includes(r.set)||(t.push(r.set),r.set(this._internal_unstable.getSelection({parent:r.parentID||rootID,selection:r.selection,variables:r.variables?.()||{},ignoreMasking:!1}).data))}},CacheInternal=class{disabled=!1;_config;storage;subscriptions;lists;cache;lifetimes;staleManager;componentCache;createComponent;constructor({storage:e,subscriptions:t,lists:r,cache:n,lifetimes:i,staleManager:s,disabled:a,config:o,componentCache:l,createComponent:c}){this.storage=e,this.subscriptions=t,this.lists=r,this.cache=n,this.lifetimes=i,this.staleManager=s,this._config=o,this.componentCache=l??{},this.createComponent=c??(()=>({})),this.disabled=a;try{"true"===process.env.HOUDINI_TEST&&(this.disabled=!1)}catch{}}get config(){return this._config??getCurrentConfig()}setConfig(e){this._config=e}writeSelection({data:e,selection:t,variables:r={},parent:n=rootID,applyUpdates:i,layer:s,toNotify:a=[],forceNotify:o,forceStale:l}){if(this.disabled)return[];let c=getFieldsForType(t,e.__typename,!1);for(const[u,p]of Object.entries(e)){if(!t||!c[u])continue;let{type:e,keyRaw:d,selection:h,operations:f,abstract:m,updates:y}=c[u];const g=evaluateKey(d,r);p&&"object"==typeof p&&"__typename"in p&&p.__typename&&(e=p.__typename);const b=this.subscriptions.get(n,g),S=b.map((e=>e[0])),{value:T,displayLayers:v}=this.storage.get(n,g),E=s.isDisplayLayer(v);if(E&&(this.lifetimes.resetLifetime(n,g),l?this.staleManager.markFieldStale(n,g):this.staleManager.setFieldTimeToNow(n,g)),h){if(null===p){if(null===T)continue;const e=flatten([T]);for(const t of e)this.subscriptions.remove(t,h,S,r);s.writeLink(n,g,null),a.push(...b)}else if(p instanceof Object&&!Array.isArray(p)){if(m&&!p.__typename)throw new Error("Encountered interface type without __typename in the payload");let t=null;null!==p&&(t=this.isEmbedded(e,p)?`${n}.${g}`:this.id(e,p));let l=t!==T;s.writeLink(n,g,t),t&&E&&(l||o)&&(T&&"string"==typeof T&&this.subscriptions.remove(T,h,S,r),this.subscriptions.addMany({parent:t,subscribers:b,variables:r,parentType:e}),a.push(...b)),t&&this.writeSelection({selection:h,parent:t,data:p,variables:r,toNotify:a,applyUpdates:i,layer:s,forceNotify:o})}else if(Array.isArray(p)&&(null==T||Array.isArray(T))){let t=[...T||[]];const l=y?t.map((e=>{if(!e)return"";const{value:t}=this.storage.get(e,"cursor");if(t)return"";const{value:r}=this.storage.get(e,"node");return r||""})):[];let c=[];const{newIDs:u,nestedIDs:d}=this.extractNestedListIDs({value:p,abstract:Boolean(m),specs:a,applyUpdates:i,recordID:n,key:g,linkedType:e,variables:r,fields:h,layer:s,forceNotify:o});let f=()=>{s.writeLink(n,g,c)};if(i&&y){if("edges"===g){const e=[];for(const t of u){if(!t)continue;const{value:r}=this.storage.get(t,"node");"string"==typeof r&&(r&&this.storage.get(r,"__typename")&&e.push(r))}t=t.filter((t=>{if(!t)return!0;const{value:r}=this.storage.get(t,"node"),n=r;return!e.includes(n)||!l.includes(n)}))}for(const e of i)("replace"===e||y.includes(e))&&("prepend"===e?(c=u.concat(t),s?.optimistic&&(f=()=>{for(const e of u)e&&s.insert(n,g,"start",e)})):"append"===e?(c=t.concat(u),s?.optimistic&&(f=()=>{for(const e of u)e&&s.insert(n,g,"end",e)})):"replace"===e&&(c=u))}else c=d;const v=!deepEquals(c,t)||null===T;(v||o)&&a.push(...b);for(const e of t)!c.includes(e)&&e&&this.subscriptions.remove(e,h,S,r);(v||0===t.length&&0===u.length)&&f();for(const n of u.filter((e=>!t.includes(e))))null!=n&&this.subscriptions.addMany({parent:n,subscribers:b,variables:r,parentType:e})}}else{let e=p;if(y&&i&&Array.isArray(p))for(const t of i)y.includes(t)&&("append"===t?e=(T||[]).concat(p):"prepend"===t&&(e=p.concat(T||[])));(y&&i?.includes("prepend")&&["endCursor","hasNextPage"].includes(g)||y&&i?.includes("append")&&["startCursor","hasPreviousPage"].includes(g))&&(e=T);const t=!deepEquals(e,T);E&&(t||o)&&a.push(...b),s.writeField(n,g,e)}for(const e of f||[]){let t;if(e.parentID)if("Variable"!==e.parentID.kind)t=e.parentID.value;else{const n=r[e.parentID.value];if("string"!=typeof n)throw new Error("parentID value must be a string");t=n}if(e.list&&!this.lists.get(e.list,t,"all"===e.target))continue;const n=Array.isArray(p)?p:[p];for(const i of n)if("insert"===e.action&&i instanceof Object&&h&&e.list)this.cache.list(e.list,t,"all"===e.target).when(e.when).addToList(h,i,r,e.position||"last",s);else if("toggle"===e.action&&i instanceof Object&&h&&e.list)this.cache.list(e.list,t,"all"===e.target).when(e.when).toggleElement({selection:h,data:i,variables:r,where:e.position||"last",layer:s});else if("remove"===e.action&&i instanceof Object&&h&&e.list)this.cache.list(e.list,t,"all"===e.target).when(e.when).remove(i,r,s);else if("delete"===e.action&&e.type&&i){const t=this.id(e.type,i);if(!t)continue;a.push(...this.subscriptions.getAll(t).filter((e=>e[0].parentID!==t))),this.cache.delete(t,s)}}}return a}getSelection({selection:e,parent:t=rootID,variables:r,stepsFromConnection:n=null,ignoreMasking:i,fullCheck:s=!1,loading:a}){if(null===t)return{data:null,partial:!1,stale:!1,hasData:!0};const o={};e.fragments&&(o[fragmentKey]={loading:Boolean(a),values:Object.fromEntries(Object.entries(e.fragments).filter((([,e])=>!a||e.loading)).map((([e,n])=>[e,{parent:t,variables:evaluateVariables(n.arguments,r??{})}])))});let l=!!e.fragments,c=!1,u=!1,p=!1;let d=getFieldsForType(e,this.storage.get(t,"__typename").value,!!a);for(const[e,{type:h,keyRaw:f,selection:m,nullable:y,list:g,visible:b,directives:S,loading:T,abstractHasRequired:v,component:E}]of Object.entries(d)){if(!b&&!i&&!s)continue;const d=S?.find((e=>"include"===e.name));if(d&&!evaluateVariables(d.arguments,r??{}).if)continue;const x=S?.find((e=>"skip"===e.name));if(x&&evaluateVariables(x.arguments,r??{}).if)continue;const _=b||i?o:{},A=evaluateKey(f,r);if(a&&!T)continue;const P=E?defaultComponentField({cache:this.cache,component:E,variables:r,parent:t}):void 0;let{value:w}=this.storage.get(t,A,P);null===this.staleManager.getFieldTime(t,A)&&(p=!0),a&&(w=void 0);let D=n;null!==D&&(D>=2?D=null:D+=1),g?.connection&&(D=0);const C="cursor"===A&&1===n;if(void 0!==w||C||(c=!0),a&&"value"===T?.kind)_[e]=PendingValue,l=!0;else if(!a&&void 0===w||null===w)_[e]=null,void 0!==w&&(l=!0);else if(m)if(Array.isArray(w)){const t=this.hydrateNestedList({fields:m,variables:r,linkedList:w,stepsFromConnection:D,ignoreMasking:!!i,fullCheck:s,loading:a,nullable:!!y});_[e]=t.data,t.partial&&(c=!0),t.cascadeNull&&(u=!0),t.stale&&(p=!0),(t.hasData||0===w.length)&&(l=!0)}else{const t=this.getSelection({parent:w,selection:m,variables:r,stepsFromConnection:D,ignoreMasking:i,fullCheck:s,loading:a});_[e]=t.data,t.partial&&(c=!0),t.stale&&(p=!0),t.hasData&&(l=!0)}else{const t=this.config?.scalars?.[h]?.unmarshal;t?Array.isArray(w)?_[e]=w.map((e=>t(e))):_[e]=t(w):_[e]=w,l=!0}a&&T?.list&&(_[e]=wrapInLists(Array.from({length:T.list.count}).fill(_[e]),T.list.depth-1)),null!==_[e]||y||C||(v?o[e]={__typename:"@required field missing; don't match this"}:u=!0)}return{data:u?null:o,partial:!a&&l&&c,stale:l&&p,hasData:l}}id(e,t){const r="object"==typeof t?this.computeID(e,t):t;return r?e?e+":"+r:r:null}idFields(e){return keyFieldsForType(this.config,e)}computeID(e,t){return computeID(this.config,e,t)}isEmbedded(e,t){const r=this.idFields(e);return 0===r.length||r.filter((e=>void 0===t[e])).length>0}hydrateNestedList({fields:e,variables:t,linkedList:r,stepsFromConnection:n,ignoreMasking:i,fullCheck:s,loading:a,nullable:o}){const l=[];let c=!1,u=!1,p=!1,d=!1;for(const h of r){if(Array.isArray(h)){const r=this.hydrateNestedList({fields:e,nullable:o,variables:t,linkedList:h,stepsFromConnection:n,ignoreMasking:i,fullCheck:s,loading:a});l.push(r.data),r.partial&&(c=!0),r.cascadeNull&&(d=!0);continue}if(null===h){l.push(h);continue}const{data:r,partial:f,stale:m,hasData:y}=this.getSelection({parent:h,selection:e,variables:t,stepsFromConnection:n,ignoreMasking:i,fullCheck:s,loading:a});null!==r||o||(d=!0),l.push(r),f&&(c=!0),m&&(u=!0),y&&(p=!0)}return{data:l,partial:c,stale:u,hasData:p,cascadeNull:d}}extractNestedListIDs({value:e,abstract:t,recordID:r,key:n,linkedType:i,fields:s,variables:a,applyUpdates:o,specs:l,layer:c,forceNotify:u}){const p=[],d=[];for(const[h,f]of e.entries()){if(Array.isArray(f)){const e=this.extractNestedListIDs({value:f,abstract:t,recordID:r,key:n,linkedType:i,fields:s,variables:a,applyUpdates:o,specs:l,layer:c,forceNotify:u});d.push(...e.newIDs),p[h]=e.nestedIDs;continue}if(null==f){d.push(null),p[h]=null;continue}const e=f;let m=`${r}.${n}[${this.storage.nextRank}]`,y=i;const g=e.__typename;if(g)y=g;else if(t)throw new Error("Encountered interface type without __typename in the payload");if(!this.isEmbedded(i,f)){const e=this.id(y,f);if(!e)continue;m=e}this.writeSelection({root:rootID,selection:s,parent:m,data:e,variables:a,toNotify:l,applyUpdates:o,layer:c,forceNotify:u}),d.push(m),p[h]=m}return{newIDs:d,nestedIDs:p}}collectGarbage(){this.lifetimes.tick(),1===this.storage.layerCount&&this.storage.topLayer.removeUndefinedFields()}};function evaluateVariables(e,t){return Object.fromEntries(Object.entries(e).map((([e,r])=>[e,variableValue(r,t)])))}function wrapInLists(e,t=0){return 0===t?e:wrapInLists([e],t-1)}function variableValue(e,t){return"StringValue"===e.kind||"BooleanValue"===e.kind||"EnumValue"===e.kind?e.value:"FloatValue"===e.kind?parseFloat(e.value):"IntValue"===e.kind?parseInt(e.value,10):"NullValue"===e.kind?null:"Variable"===e.kind?t[e.name.value]:"ListValue"===e.kind?e.values.map((e=>variableValue(e,t))):"ObjectValue"===e.kind?e.fields.reduce(((e,r)=>({...e,[r.name.value]:variableValue(r.value,t)})),{}):void 0}function defaultComponentField({cache:e,component:t,loading:r,variables:n,parent:i}){return s=>{const a=e._internal_unstable.componentCache[t.key],o=evaluateVariables(t.variables??{},n??{});return e._internal_unstable.createComponent(a,{...s,[t.prop]:{[fragmentKey]:{loading:r,values:{[t.fragment]:{variables:o,parent:i}}}}})}}var cache_default=new Cache,fetch2=e=>()=>({async network(t,{client:r,initialValue:n,resolve:i,marshalVariables:s}){if(t.artifact.kind===ArtifactKind.Fragment)return i(t,n);const a=t.fetch??globalThis.fetch,o={name:t.name,text:t.text,hash:t.hash,variables:{...s(t)}};for(const e of t.artifact.stripVariables)delete o.variables[e];let l=defaultFetch(r.url,t.fetchParams);e&&(l="string"==typeof e?defaultFetch(e,t.fetchParams):e);const c=await l({fetch:(e,r)=>{const n=handleMultipart(o,r)??r;return a(e,{...n,signal:t.abortController.signal})},metadata:t.metadata,session:t.session||{},...o});i(t,{fetching:!1,variables:t.variables??{},data:c.data,errors:c.errors&&0!==c.errors.length?c.errors:null,partial:!1,stale:!1,source:DataSource.Network})}}),defaultFetch=(e,t)=>{if(!e)throw new Error("Could not find configured client url. Please specify one in your HoudiniClient constructor.");return async({fetch:r,name:n,text:i,variables:s})=>{const a=await r(e,{method:"POST",body:JSON.stringify({operationName:n,query:i,variables:s}),...t,headers:{Accept:"application/graphql+json, application/json","Content-Type":"application/json",...t?.headers}});return await a.json()}};function handleMultipart(e,t){const{files:r}=extractFiles({variables:e.variables});if(r.size){const n=t;let i={};if(n?.headers){const e=Object.entries(n?.headers).filter((([e,t])=>!("content-type"==e.toLowerCase()&&"application/json"==t.toLowerCase())));i=Object.fromEntries(e)}const s=new FormData;t&&t?.body?s.set("operations",t?.body):s.set("operations",JSON.stringify({operationName:e.name,query:e.text,variables:e.variables}));const a={};let o=0;return r.forEach((e=>{a[++o]=e})),s.set("map",JSON.stringify(a)),o=0,r.forEach(((e,t)=>{s.set(""+ ++o,t,t.name)})),{...n,headers:i,body:s}}}function isExtractableFile(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob}function extractFiles(e){if(!arguments.length)throw new TypeError("Argument 1 `value` is required.");const t=new Map,r=new Map;return{clone:function e(n,i,s){if(isExtractableFile(n)){const e=r.get(n);return e?e.push(i):r.set(n,[i]),null}const a=Array.isArray(n)||"undefined"!=typeof FileList&&n instanceof FileList,o=isPlainObject(n);if(a||o){let r=t.get(n);const o=!r;if(o&&(r=a?[]:n instanceof Object?{}:Object.create(null),t.set(n,r)),!s.has(n)){const t=i?`${i}.`:"",l=new Set(s).add(n);if(a){let i=0;for(const s of n){const n=e(s,t+i++,l);o&&r.push(n)}}else for(const i in n){const s=e(n[i],t+i,l);o&&(r[i]=s)}}return r}return n}(e,"",new Set),files:r}}function isPlainObject(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}var serverSide=void 0===globalThis.window,cachePolicy=({enabled:e,setFetching:t,cache:r=cache_default,serverSideFallback:n=!0})=>()=>({beforeNetwork(n,{initialValue:i,next:s,resolve:a,marshalVariables:o}){const{policy:l,artifact:c}=n;let u=!1;if(e&&(c.kind===ArtifactKind.Query||c.kind===ArtifactKind.Fragment)&&!n.cacheParams?.disableRead){if(l!==CachePolicy.NetworkOnly&&l!==CachePolicy.NoCache){const e=r.read({selection:c.selection,variables:o(n),fullCheck:!0}),t=!e.partial||c.kind===ArtifactKind.Query&&c.partial;if(l===CachePolicy.CacheOnly)return a(n,{fetching:!1,variables:n.variables??null,data:t?e.data:i.data,errors:null,source:DataSource.Cache,partial:!!t&&e.partial,stale:e.stale});if(u=!(null===e.data||!t),u&&a(n,{fetching:!1,variables:n.variables??null,data:e.data,errors:null,source:DataSource.Cache,partial:e.partial,stale:e.stale}),u&&!e.partial&&!e.stale&&"CacheAndNetwork"!==n.policy)return}}if(e&&setTimeout((()=>{r._internal_unstable.collectGarbage()}),0),!n.stuff?.silenceLoading){let e=null;!u&&"enableLoadingState"in c&&c.enableLoadingState&&(e=r.read({selection:c.selection,variables:o(n),loading:!0}).data),t(!u,e)}return s(n)},afterNetwork(t,{resolve:i,value:s,marshalVariables:a}){if(t.policy!==CachePolicy.NoCache&&s.source!==DataSource.Cache&&e&&s.data&&!t.cacheParams?.disableWrite){t.cacheParams&&"serverSideFallback"in t.cacheParams&&(n=t.cacheParams?.serverSideFallback??n);const e=serverSide&&n?new Cache({disabled:!1}):r;let i;!serverSide&&t.cacheParams?.layer&&(i=t.cacheParams.layer.id),e.write({...t.cacheParams,layer:i,selection:t.artifact.selection,data:s.data,variables:a(t)}),s={...s,data:e.read({selection:t.artifact.selection,variables:a(t),ignoreMasking:serverSide}).data}}i(t,s)}}),documentPlugin=(e,t)=>()=>{const r=t(),n=t=>t?(r,n)=>r.artifact.kind!==e?n.next(r):t(r,n):void 0,i=t=>t?(r,n)=>r.artifact.kind!==e?n.resolve(r):t(r,n):void 0;return{start:n(r.start),network:n(r.network),beforeNetwork:n(r.beforeNetwork),afterNetwork:i(r.afterNetwork),end:i(r.end),catch:r.catch?(e,t)=>r.catch(e,t):void 0,cleanup:(...e)=>r.cleanup?.(...e)}},query=e=>documentPlugin(ArtifactKind.Query,(function(){let t=null,r=null;return{start(e,{next:t}){const n={session:e.session};e.variables={...r,...Object.fromEntries(Object.entries(e.artifact.input?.runtimeScalars??{}).map((([t,r])=>{const i=e.config.features?.runtimeScalars?.[r];return i?[t,i.resolve(n)]:[t,r]}))),...e.variables},t(e)},end(n,{resolve:i,marshalVariables:s,variablesChanged:a}){if(a(n)&&!n.cacheParams?.disableSubscriptions){t&&e.unsubscribe(t,t.variables?.()||{}),r={...s(n)};const a=r;t={rootType:n.artifact.rootType,selection:n.artifact.selection,variables:()=>a,set:e=>{i(n,{data:e,errors:null,fetching:!1,partial:!1,stale:!1,source:DataSource.Cache,variables:n.variables??{}})}},e.subscribe(t,r)}i(n)},cleanup(){t&&(e.unsubscribe(t,t.variables?.()),r=null)}}})),fragment=e=>documentPlugin(ArtifactKind.Fragment,(function(){let t=null,r=null;return{start(n,{next:i,resolve:s,variablesChanged:a,marshalVariables:o}){if(!n.stuff.parentID)return i(n);const l={parent:n.stuff.parentID,variables:o(n)};if(!n.cacheParams?.disableSubscriptions&&(!deepEquals(r,l)||a(n))){t&&e.unsubscribe(t,t.variables?.()||{});const i=o(n);t={rootType:n.artifact.rootType,selection:n.artifact.selection,variables:()=>i,parentID:n.stuff.parentID,set:e=>{s(n,{data:e,errors:null,fetching:!1,partial:!1,stale:!1,source:DataSource.Cache,variables:i})}},e.subscribe(t,i),r=l}i(n)},cleanup(){t&&e.unsubscribe(t,t.variables?.())}}})),mutation=e=>documentPlugin(ArtifactKind.Mutation,(()=>({async start(t,{next:r,marshalVariables:n}){const i=e._internal_unstable.storage.createLayer(!0);let s=[];const a=t.stuff.optimisticResponse;a&&(s=e.write({selection:t.artifact.selection,data:await marshalSelection({selection:t.artifact.selection,data:a}),variables:n(t),layer:i.id})),t.cacheParams={...t.cacheParams,layer:i,notifySubscribers:s,forceNotify:!0},r(t)},afterNetwork(t,{resolve:r}){t.cacheParams?.layer&&e.clearLayer(t.cacheParams.layer.id),r(t)},end(t,{resolve:r,value:n}){n.errors&&n.errors.length>0&&t.cacheParams?.layer&&e.clearLayer(t.cacheParams.layer.id),t.cacheParams?.layer&&e._internal_unstable.storage.resolveLayer(t.cacheParams.layer.id),r(t)},catch(t,{error:r}){if(t.cacheParams?.layer){const{layer:r}=t.cacheParams;e.clearLayer(r.id),e._internal_unstable.storage.resolveLayer(r.id)}throw r}})));function subscription(e){return documentPlugin(ArtifactKind.Subscription,(()=>{let t=null,r=null;return{start(e,{resolve:t,next:r,initialValue:n}){void 0!==globalThis.window?r(e):t(e,n)},async network(n,{resolve:i,initialValue:s,variablesChanged:a,marshalVariables:o}){const l={fetchParams:n.fetchParams??{},session:n.session??{},metadata:n.metadata??{}},c=a(n),u=!deepEquals(r,l);c||u?(r=l,u&&await loadClient(n,e),t?.(),t=client.subscribe({operationName:n.name,query:n.text,variables:o(n)},{next:({data:e,errors:t})=>{i(n,{data:e??null,errors:[...t??[]],fetching:!1,partial:!0,stale:!1,source:DataSource.Network,variables:n.variables??{}})},error(e){t?.(),i(n,{partial:!0,stale:!1,source:DataSource.Network,data:null,errors:[e],fetching:!1,variables:n.variables??{}})},complete(){}})):i(n,s)},cleanup(){t?.(),r=null}}}))}var client,pendingCreate=null;function loadClient(e,t){return pendingCreate||(pendingCreate=new Promise((r=>{client=t(e),r(),pendingCreate=null})))}var throwOnError=({operations:e,error:t})=>()=>{const r=e.includes("all");return{async end(n,{value:i,resolve:s}){if(i.errors&&i.errors.length>0&&(a=n.artifact.kind,r||{[ArtifactKind.Query]:e.includes("query"),[ArtifactKind.Mutation]:e.includes("mutation"),[ArtifactKind.Fragment]:!1,[ArtifactKind.Subscription]:e.includes("subscription")}[a])){throw await(t??defaultErrorFn)(i.errors,n)}var a;s(n)}}},defaultErrorFn=async e=>new Error(e.map((e=>e.message)).join(". ")+"."),fetchParams=(e=()=>({}))=>()=>({start(t,{next:r,marshalVariables:n}){r({...t,fetchParams:e({config:t.config,policy:t.policy,metadata:t.metadata,session:t.session,stuff:t.stuff,document:t.artifact,variables:n(t),text:t.text,hash:t.hash})})}}),keys={},callbacks={},objectIDMap={},optimisticKeys=(e,t=callbacks,r=keys,n=objectIDMap,i=1)=>()=>({async start(e,{next:s}){const a=e.stuff.optimisticResponse,o={...e};a&&e.artifact.kind===ArtifactKind.Mutation&&e.artifact.optimisticKeys&&(o.stuff.mutationID=i++,addKeysToResponse({selection:e.artifact.selection,response:a,callbackStore:t,keyStore:r,objectIDs:n,mutationID:o.stuff.mutationID}),o.stuff.optimisticResponse=a),s(o)},beforeNetwork(e,{next:n}){if(0===Object.keys(r).length)return n(e);const i=extractInputKeys(e.variables??{},t);if(0===Object.keys(i).length)return n(e);for(const r of Object.keys(i))t[r].push((t=>{i[r]=t,Object.values(i).every((e=>null!==e))&&n({...e,variables:replaceKeyWithVariable({...e.variables},i)})}))},afterNetwork(n,{value:i,resolve:s}){n.artifact.kind===ArtifactKind.Mutation&&n.artifact.optimisticKeys&&void 0!==n.stuff.mutationID&&extractResponseKeys(e,i.data??{},n.artifact.selection,r,n.stuff.mutationID,{onNewKey:(e,r)=>{t[e].forEach((e=>{e(r)})),delete t[e]},onIDChange:(t,r)=>{e.registerKeyMap(t,r)}}),s(n)},end(e,{resolve:t}){void 0!==e.stuff.mutationID&&(delete r[e.stuff.mutationID],delete n[e.stuff.mutationID]),t(e)}});function addKeysToResponse(e){let t=getFieldsForType(e.selection,e.response.__typename,!1);const r=[];for(const[n,{type:i,selection:s,optimisticKey:a}]of Object.entries(t)){const t=e.response[n],o=`${e.path??""}.${n}`;if(a){let s;if(t){const{marshaled:e}=marshalSelection({data:{marshaled:t},selection:{fields:{value:{type:i,keyRaw:"value"}}}});s=e}else s=generateKey(i);r.push(s),e.response[n]=s,e.callbackStore[s]=[],e.keyStore[e.mutationID]={[o]:s}}if(s)if(Array.isArray(t))for(const[r,n]of flattenList(t).entries())n&&"object"==typeof n&&!Array.isArray(n)&&addKeysToResponse({...e,selection:s,response:n,type:i,path:`${o}[${r}]`});else t&&"object"==typeof t&&addKeysToResponse({...e,selection:s,response:t,type:i,path:o})}if(r.length>0){const t=`${e.type}:${computeID(config_default,e.type??"",e.response)}`;for(const n of r)e.objectIDs[e.mutationID]={...e.objectIDs[e.mutationID],[n]:t}}return e.response}function extractInputKeys(e,t,r={}){for(const n of Object.values(e))if("string"==typeof n&&t[n]&&(r[n]=null),Array.isArray(n))for(const e of flattenList(n))e&&"object"==typeof e&&extractInputKeys(e,t,r);else n&&"object"==typeof n&&extractInputKeys(n,t,r);return r}function extractResponseKeys(e,t,r,n,i,s,a=objectIDMap,o="",l=""){let c=getFieldsForType(r,t.__typename,!1),u=null;for(const[l,p]of Object.entries(t)){const t=`${o??""}.${l}`;if("string"==typeof p&&n[i][t]){const e=n[i][t];s.onNewKey(e,p),u=a[i][e]}if(!r||!c[l])continue;let{type:d,selection:h}=c[l];if(Array.isArray(p))for(const[r,o]of flattenList(p).entries())o&&"object"==typeof o&&h&&extractResponseKeys(e,o,h,n,i,s,a,`${t}[${r}]`,d);else p&&"object"==typeof p&&h&&extractResponseKeys(e,p,h,n,i,s,a,t,d)}if(u){const r=computeID(config_default,l,t);s.onIDChange(`${l}:${r}`,u),e.write({selection:{fields:Object.fromEntries(keyFieldsForType(config_default,l).map((e=>[e,{type:"scalar",keyRaw:e}])))},parent:u,data:t})}}function flattenList(e){const t=[],r=[...e];for(;r.length>0;){const e=r.shift();Array.isArray(e)?r.push(...e):t.push(e)}return t}function replaceKeyWithVariable(e,t){for(const[r,n]of Object.entries(e))if("string"==typeof n&&t[n]&&(e[r]=t[n]),Array.isArray(n))for(const e of flattenList(n))e&&"object"==typeof e&&replaceKeyWithVariable(e,t);else n&&"object"==typeof n&&replaceKeyWithVariable(n,t);return e}function generateKey(e){if("Int"===e)return(new Date).getTime();if("String"===e)return(new Date).getTime().toString();if("ID"===e)return(new Date).getTime().toString();throw new Error(`unsupported type for optimistic key: ${e}. Please provide a value in your mutation arguments.`)}var steps={forward:["start","beforeNetwork","network"],backwards:["end","afterNetwork"]},inflightRequests={},DocumentStore=class extends Writable{artifact;#h;#f;#m;#y;#g=null;pendingPromise=null;serverSideFallback;controllerKey(e){return this.artifact.name}constructor({artifact:e,plugins:t,pipeline:r,client:n,cache:i,enableCache:s=!0,initialValue:a,initialVariables:o,fetching:l}){l??=e.kind===ArtifactKind.Query;super({data:a??null,errors:null,partial:!1,stale:!1,source:null,fetching:l,variables:o??null},(()=>()=>{this.#y=null,this.cleanup()})),this.artifact=e,this.#h=n,this.#y=null,this.#f=getCurrentConfig(),this.#m=r??[cachePolicy({cache:i,enabled:s,setFetching:(e,t)=>{this.update((r=>{const n={...r,fetching:e};return e&&t&&(n.data=t),n}))}})(),...t??[]]}async send({metadata:e,session:t,fetch:r,variables:n,policy:i,stuff:s,cacheParams:a,setup:o=!1,silenceEcho:l=!1,abortController:c=new AbortController}={}){"dedupe"in this.artifact&&(inflightRequests[this.controllerKey(n)]?"first"===this.artifact.dedupe?(inflightRequests[this.controllerKey(n)].abort(),inflightRequests[this.controllerKey(n)]=c):c.abort():inflightRequests[this.controllerKey(n)]=c);let u=new ClientPluginContextWrapper({abortController:c,config:this.#f,name:this.artifact.name,text:this.artifact.raw,hash:this.artifact.hash,policy:i??this.artifact.policy,variables:null,metadata:e,session:t,fetch:r??this.getFetch((()=>t)),stuff:{inputs:{changed:!1,init:!1,marshaled:{}},...s},artifact:this.artifact,lastVariables:this.#y,cacheParams:a});const p=u.draft();p.variables=n??null,u=u.apply(p,!1);const d=new Promise(((e,t)=>{const r={setup:o,currentStep:0,index:0,silenceEcho:l,promise:{resolved:!1,resolve:e,reject:t,then:(...e)=>d.then(...e)},context:u};null===this.pendingPromise&&(this.pendingPromise=r.promise),this.#b("forward",r)})),h=await d;return delete inflightRequests[this.controllerKey(n)],h}async cleanup(){for(const e of this.#m)e.cleanup?.(this.#g)}getFetch(e){return async(t,r)=>{let n="",i=[];if("string"==typeof t&&(n=t.startsWith("http")?new URL(t).pathname:t),t instanceof URL?n=t.pathname:t instanceof Request&&(n=new URL(t.url).pathname),t instanceof Request){const e=await t.json();Array.isArray(e)||(i=[e])}else{const e=JSON.parse(r?.body);Array.isArray(e)||(i=[e])}if(!n||0===i.length)return await globalThis.fetch(t,r);if(this.#h?.proxies[n]){const t=await Promise.all(i.map((t=>this.#h?.proxies[n]({...t,session:e()}))));return new Response(JSON.stringify(1===t.length?t[0]:t))}return await globalThis.fetch(t,r)}}#b(e,t,r){const n="error"===e?"catch":steps[e][t.currentStep];let i=e=>e<=this.#m.length,s=e=>e+1;["backwards","error"].includes(e)&&(i=e=>e>=0,s=e=>e-1);for(let a=t.index;i(a);a=s(a)){let i=this.#m[a]?.[n];if(!i)continue;const s=t.context.draft();let o=e=>e.variables!==s.variables;const l={initialValue:this.state,client:this.#h,variablesChanged:variablesChanged,marshalVariables:marshalVariables,updateState:this.update.bind(this),next:r=>{const n=["forward","error"].includes(e)?a+1:a,i=["backwards","error"].includes(e)?0:t.currentStep;this.#b("forward",{...t,index:n,currentStep:i,context:t.context.apply(r,o(r))})},resolve:(r,n)=>{const i="backwards"===e?a-1:a;this.#b("backwards",{...t,index:i,context:t.context.apply(r,o(r))},n)}};let c;"forward"===e?c=l:"backwards"===e?c={...l,value:r,resolve:(e,t)=>l.resolve(e,t??r)}:"error"===e&&(c={...l,error:r});try{if(s.abortController.signal.aborted){const e=new Error("aborted");throw e.name="AbortError",e}const e=i(s,c);e?.catch((e=>{this.#b("error",{...t,index:a-1},e)}))}catch(e){this.#b("error",{...t,index:a-1},e)}return}if("forward"===e){if(t.setup)return this.#b("backwards",{...t,currentStep:0,index:this.#m.length},this.state);if(t.currentStep<=steps.forward.length-2)return this.#b("forward",{...t,currentStep:t.currentStep+1,index:0});throw new Error("Called next() on last possible plugin. Your chain is missing a plugin that calls resolve().")}if("error"!==e){if(t.currentStep>0)return this.#b("backwards",{...t,currentStep:t.currentStep-1,index:this.#m.length-1},r);t.silenceEcho&&r.data===this.state.data||this.set(r),t.promise.resolved||(t.promise.resolve(r),t.promise.resolved=!0),this.#g=t.context.draft(),this.#y=this.#g.stuff.inputs.marshaled}else t.promise.resolved||(t.promise.reject(r),t.promise.resolved=!0)}},ClientPluginContextWrapper=class{#S;#y;constructor({lastVariables:e,...t}){this.#S=t,this.#y=e}get variables(){return this.#S.variables}draft(){const e={...this.#S},t=this.applyVariables.bind(this);return{...e,get stuff(){return e.stuff},set stuff(t){e.stuff=t},get variables(){return e.variables??null},set variables(r){Object.assign(e,t(e,{variables:r}))}}}applyVariables(e,t){const r=e.artifact,n={...e,...t},i=t.variables;let s={};for(const[t,r]of Object.entries(i??{}))r!==e.variables?.[t]&&(s[t]=r);n.stuff={...n.stuff,inputs:{...n.stuff.inputs}};const a=!n.stuff.inputs||!n.stuff.inputs.init;if(Object.keys(s).length>0||a){const t={...n.stuff.inputs?.marshaled,...marshalInputs({artifact:r,input:s,config:e.config})};n.stuff.inputs={init:!0,marshaled:t,changed:!0},n.variables=i}return n.stuff={...n.stuff,inputs:{...n.stuff.inputs,changed:!deepEquals(n.stuff.inputs.marshaled,this.#y)}},n}apply(e,t){t&&(e=this.applyVariables(this.#S,e));return new ClientPluginContextWrapper({...e,lastVariables:this.#y})}};function marshalVariables(e){return e.stuff.inputs?.marshaled??{}}function variablesChanged(e){return e.stuff.inputs?.changed}var plugins=[],injectedPlugins_default=plugins,HoudiniClient=class{url;throwOnError_operations;cache=null;throwOnError;fetchParams;pipeline;extraPlugins;proxies={};componentCache={};setCache(e){this.cache=e}constructor({url:e,fetchParams:t,plugins:r,pipeline:n,throwOnError:i}={}){if(r&&n)throw new Error("A client cannot be given a pipeline and a list of plugins at the same time.");this.throwOnError_operations=i?.operations??[];let s=globalThis.process?.env?.HOUDINI_PORT??"5173";this.url=e??(globalThis.window?"":`https://localhost:${s}`)+localApiEndpoint(getCurrentConfig()),this.throwOnError=i,this.fetchParams=t,this.pipeline=n,this.extraPlugins=r}get plugins(){return flatten([].concat(this.throwOnError?[throwOnError(this.throwOnError)]:[],fetchParams(this.fetchParams),this.pipeline??[optimisticKeys(this.cache??cache_default),query(this.cache??cache_default),mutation(this.cache??cache_default),fragment(this.cache??cache_default)].concat(this.extraPlugins??[],injectedPlugins_default,fetch2())))}observe({enableCache:e=!0,fetching:t=!1,...r}){return new DocumentStore({client:this,plugins:createPluginHooks(this.plugins),fetching:t,enableCache:e,cache:this.cache??void 0,...r})}registerProxy(e,t){this.proxies[e]=t}};function createPluginHooks(e){return e.reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Encountered client plugin that's not a function");const r=t();if(!r)return e;if(!Array.isArray(r))return e.concat(r);for(const t of r)if(t){if("function"==typeof t)return e.concat(createPluginHooks([t]));e.push(t)}return e}),[])}var LogLevel={Full:"full",Summary:"summary",ShortSummary:"short-summary",Quiet:"quiet"};function isSecondaryBuild(){return process.env.HOUDINI_SECONDARY_BUILD&&"false"!==process.env.HOUDINI_SECONDARY_BUILD}function internalRoutes(e){const t=[localApiEndpoint(e)];return e.router?.auth&&"redirect"in e.router.auth&&t.push(e.router.auth.redirect),t}async function buildLocalSchema(e){const{build:t}=await import("vite"),r=import_node_path2.default.join(e.localApiDir,"+schema"),n=conventions_exports.temp_dir(e,"schema");process.env.HOUDINI_SECONDARY_BUILD="true";try{await fs_exports.remove(import_node_path2.default.join(n,"assets","schema.js"))}catch{}try{await fs_exports.mkdir(n)}catch{}await t({logLevel:"silent",build:{outDir:n,rollupOptions:{input:{schema:r},output:{entryFileNames:"[name].js"}},ssr:!0,lib:{entry:{schema:r},formats:["es"]}}}),process.env.HOUDINI_SECONDARY_BUILD="false"}async function loadLocalSchema(e){isSecondaryBuild()||await buildLocalSchema(e);const{default:t}=await import(import_node_path2.default.join(conventions_exports.temp_dir(e,"schema"),`schema.js?${Date.now().valueOf()}}`));return t}function parse5(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");let r={},n=(t||{}).decode||decode,i=0;for(;i<e.length;){let t=e.indexOf("=",i);if(-1===t)break;let s=e.indexOf(";",i);if(-1===s)s=e.length;else if(s<t){i=e.lastIndexOf(";",t-1)+1;continue}let a=e.slice(i,t).trim();if(void 0===r[a]){let i=e.slice(t+1,s).trim();34===i.charCodeAt(0)&&(i=i.slice(1,-1)),r[a]=tryDecode(i,n)}i=s+1}return r}function decode(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function tryDecode(e,t){try{return t(e)}catch(t){return e}}function base64UrlParse(e){return new Uint8Array(Array.prototype.map.call(atob(e.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"")),(e=>e.charCodeAt(0))))}function base64UrlStringify(e){return btoa(String.fromCharCode.apply(0,e)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}var algorithms={ES256:{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}},ES384:{name:"ECDSA",namedCurve:"P-384",hash:{name:"SHA-384"}},ES512:{name:"ECDSA",namedCurve:"P-521",hash:{name:"SHA-512"}},HS256:{name:"HMAC",hash:{name:"SHA-256"}},HS384:{name:"HMAC",hash:{name:"SHA-384"}},HS512:{name:"HMAC",hash:{name:"SHA-512"}},RS256:{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},RS384:{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-384"}},RS512:{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-512"}}};function _utf8ToUint8Array(e){return base64UrlParse(btoa(unescape(encodeURIComponent(e))))}function _str2ab(e){e=atob(e);const t=new ArrayBuffer(e.length),r=new Uint8Array(t);for(let t=0,n=e.length;t<n;t++)r[t]=e.charCodeAt(t);return t}function _decodePayload(e){switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("Illegal base64url string!"+e)}try{return JSON.parse(decodeURIComponent(escape(atob(e))))}catch{return null}}async function encode(e,t,r={algorithm:"HS256",header:{typ:"JWT"}}){if("string"==typeof r&&(r={algorithm:r,header:{typ:"JWT"}}),r={algorithm:"HS256",header:{typ:"JWT"},...r},null===e||"object"!=typeof e)throw new Error("payload must be an object");if("string"!=typeof t&&"object"!=typeof t)throw new Error("secret must be a string or a JWK object");if("string"!=typeof r.algorithm)throw new Error("options.algorithm must be a string");const n=algorithms[r.algorithm];if(!n)throw new Error("algorithm not found");e.iat||(e.iat=Math.floor(Date.now()/1e3));const i=JSON.stringify(e),s=`${base64UrlStringify(_utf8ToUint8Array(JSON.stringify({...r.header,alg:r.algorithm})))}.${base64UrlStringify(_utf8ToUint8Array(i))}`;let a,o="raw";"object"==typeof t?(o="jwk",a=t):"string"==typeof t&&t.startsWith("-----BEGIN")?(o="pkcs8",a=_str2ab(t.replace(/-----BEGIN.*?-----/g,"").replace(/-----END.*?-----/g,"").replace(/\s/g,""))):a=_utf8ToUint8Array(t);const l=await crypto.subtle.importKey(o,a,n,!1,["sign"]),c=await crypto.subtle.sign(n,l,_utf8ToUint8Array(s));return`${s}.${base64UrlStringify(new Uint8Array(c))}`}async function verify(e,t,r={algorithm:"HS256",throwError:!1}){if("string"==typeof r&&(r={algorithm:r,throwError:!1}),r={algorithm:"HS256",throwError:!1,...r},"string"!=typeof e)throw new Error("token must be a string");if("string"!=typeof t&&"object"!=typeof t)throw new Error("secret must be a string or a JWK object");if("string"!=typeof r.algorithm)throw new Error("options.algorithm must be a string");const n=e.split(".");if(3!==n.length)throw new Error("token must consist of 3 parts");const i=algorithms[r.algorithm];if(!i)throw new Error("algorithm not found");const{payload:s}=decode2(e);if(!s){if(r.throwError)throw"PARSE_ERROR";return!1}if(s.nbf&&s.nbf>Math.floor(Date.now()/1e3)){if(r.throwError)throw"NOT_YET_VALID";return!1}if(s.exp&&s.exp<=Math.floor(Date.now()/1e3)){if(r.throwError)throw"EXPIRED";return!1}let a,o="raw";"object"==typeof t?(o="jwk",a=t):"string"==typeof t&&t.startsWith("-----BEGIN")?(o="spki",a=_str2ab(t.replace(/-----BEGIN.*?-----/g,"").replace(/-----END.*?-----/g,"").replace(/\s/g,""))):a=_utf8ToUint8Array(t);const l=await crypto.subtle.importKey(o,a,i,!1,["verify"]);return await crypto.subtle.verify(i,l,base64UrlParse(n[2]),_utf8ToUint8Array(`${n[0]}.${n[1]}`))}function decode2(e){return{header:_decodePayload(e.split(".")[0].replace(/-/g,"+").replace(/_/g,"/")),payload:_decodePayload(e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"))}}async function handle_request(e){const t=e.config.router??{},{pathname:r}=new URL(e.request.url);if(t.auth&&"redirect"in t.auth&&r.startsWith(t.auth.redirect))return await redirect_auth(e)}async function redirect_auth(e){if("GET"===e.request.method){const{searchParams:t}=new URL(e.request.url,`http://${e.request.headers.get("host")}`),{redirectTo:r,...n}=Object.fromEntries(t.entries()),i=new Response("ok",{status:302,headers:{Location:r??"/"}});return await set_session(e,i,n),i}if("POST"===e.request.method){const t=await e.request.json(),r=await get_session(e.request.headers,e.session_keys),n=new Response("ok",{status:200});return await set_session(e,n,{...r,...t}),n}}var session_cookie_name="__houdini__";async function set_session(e,t,r){const n=new Date,i=new Date(n.getTime()+6048e5),s=await encode(r,e.session_keys[0]);t.headers.set("Set-Cookie",`${session_cookie_name}=${s}; Path=/; HttpOnly; Secure; SameSite=Lax; Expires=${i.toUTCString()} `)}async function get_session(e,t){const r=e.get("cookie");if(!r)return{};const n=parse5(r)[session_cookie_name];if(!n)return{};for(const e of t){if(!await verify(n,e))continue;const t=decode2(n);return t?t.payload:{}}return{}}var _config,import_meta={},currentDir=dirname((0,import_node_url2.fileURLToPath)(import_meta.url)),Config=class{filepath;rootDir;localSchema;projectRoot;schema;schemaPath;persistedQueriesPath="./$houdini/persisted_queries.json";exclude;scalars;module="esm";cacheBufferSize;defaultCachePolicy;defaultPartial;internalListPosition;defaultListTarget=null;defaultPaginateMode;definitionsFolder;newDocuments="";defaultKeys=["id"];typeConfig;configFile;logLevel;defaultFragmentMasking="enable";configIsRoute=null;routesDir;schemaPollInterval;schemaPollTimeout;schemaPollHeaders;pluginMode=!1;plugins=[];adapter;componentFields={};constructor({filepath:e,loadFrameworkConfig:t,...r}){if(this.configFile=defaultConfigValues(r),this.localSchema=!1,void 0!==r.disableMasking)throw new HoudiniError({message:'"disableMasking" was replaced by "defaultFragmentMasking". Please update your config file.'});let{schema:n,schemaPath:i="./schema.graphql",exclude:s=[],module:a="esm",scalars:o,cacheBufferSize:l,definitionsPath:c,defaultCachePolicy:u=CachePolicy.CacheOrNetwork,defaultPartial:p=!1,defaultListPosition:d="append",defaultListTarget:h=null,defaultPaginateMode:f=PaginateMode.Infinite,defaultKeys:m,types:y={},logLevel:g,defaultFragmentMasking:b="enable",watchSchema:S,projectDir:T,persistedQueriesPath:v}=this.configFile;this.schema="string"==typeof n?graphql3.buildSchema(n):n,g&&!Object.values(LogLevel).includes(g.toLowerCase())&&(console.warn(`⚠️ Invalid log level provided. Valid values are: ${JSON.stringify(Object.values(LogLevel))}`),g=LogLevel.Summary),this.schemaPath=i,this.filepath=e,this.exclude=Array.isArray(s)?s:[s],this.module=a,this.projectRoot=dirname(T?join2(process.cwd(),T):e),this.scalars=o,this.cacheBufferSize=l,this.defaultCachePolicy=u,this.defaultPartial=p,this.internalListPosition="append"===d?"last":"first",this.defaultListTarget=h,this.defaultPaginateMode=f,this.definitionsFolder=c,this.logLevel=(g||LogLevel.Summary).toLowerCase(),this.defaultFragmentMasking=b,this.routesDir=join2(this.projectRoot,"src","routes"),this.schemaPollInterval=void 0===S?.interval?2e3:S.interval,this.schemaPollTimeout=S?.timeout??3e4,this.schemaPollHeaders=S?.headers??{},this.rootDir=join2(this.projectRoot,"$houdini"),this.#T={},v&&(this.persistedQueriesPath=v),m&&(this.defaultKeys=m),y&&(this.typeConfig={...this.typeConfig,...y})}async apiURL(){const e=this.configFile.watchSchema?.url;if(!e)return"";const t=await this.getEnv();return this.processEnvValues(t,e)}get include(){if(this.configFile.include)return Array.isArray(this.configFile.include)?this.configFile.include:[this.configFile.include];const e=[".graphql",".gql",".ts",".js"].concat(this.plugins.flatMap((e=>e.extensions??[]))),t=[`src/**/*{${e.join(",")}}`];for(const r of this.plugins){const n=this.pluginRuntimeSource(r);if(!n)continue;const i=relative(this.projectRoot,n);t.push(`${i}/**/*{${e.join(",")}}`)}return t}pluginConfig(e){return this.configFile.plugins?.[e]??{}}async getEnv(){let e=process.env;for(const t of this.plugins)t.env&&(e={...await t.env({config:this,env:e})});return e}processEnvValues(e,t){let r;return r="function"==typeof t?t(e):t.startsWith("env:")?e[t.slice(4)]:t,r}async pullHeaders(){const e=await this.getEnv();if("function"==typeof this.schemaPollHeaders)return this.schemaPollHeaders(e);return Object.fromEntries(Object.entries(this.schemaPollHeaders||{}).map((([t,r])=>{const n=this.processEnvValues(e,r);return n?[t,n]:[]})).filter((([e])=>e)))}pluginRuntimeSource(e){return e.includeRuntime?join2(dirname(e.filepath),"string"==typeof e.includeRuntime?e.includeRuntime:e.includeRuntime?.[this.module]):null}async sourceFiles(){return[...new Set((await Promise.all(this.include.map((e=>glob(join2(this.projectRoot,e)))))).flat().filter((e=>this.includeFile(e))).filter((e=>{const t=this.schemaPath?.startsWith("./")?"./":"";return!this.schemaPath||!(0,import_minimatch.default)(t+relative(this.projectRoot,e).replaceAll("\\","/"),this.schemaPath)})))]}get componentScalar(){return"Component"}#v=null;schemaString="";set newSchema(e){this.schemaString=e,this.#v=e?graphql3.buildSchema(e):null}get newSchema(){return this.schemaString}get artifactDirectory(){return join2(this.rootDir,this.artifactDirectoryName)}get artifactDirectoryName(){return"artifacts"}get sourceDir(){return join2(this.projectRoot,"src")}get localApiDir(){return join2(this.sourceDir,"api")}get localSchemaPath(){return join2(this.localApiDir,"+schema")}get localAPIUrl(){return localApiEndpoint(this.configFile)}get artifactTypeDirectory(){return this.artifactDirectory}get runtimeDirectory(){return join2(this.rootDir,"runtime")}get definitionsDirectory(){return this.definitionsFolder?join2(this.projectRoot,this.definitionsFolder):join2(this.rootDir,"graphql")}get enumRuntimeDefinitionsPath(){return join2(this.definitionsDirectory,"enums.js")}get enumTypesDefinitionsPath(){return join2(this.definitionsDirectory,"enums.d.ts")}get definitionsSchemaPath(){return join2(this.definitionsDirectory,"schema.graphql")}get routerBuildDirectory(){return join2(this.projectRoot,"dist")}get definitionsDocumentsPath(){return join2(this.definitionsDirectory,"documents.gql")}get typeIndexPath(){return join2(this.rootDir,"index.d.ts")}get typeRootDir(){return join2(this.rootDir,"types")}get typeRootFile(){return"$houdini.d.ts"}get runtimeSource(){let e;if(houdini_mode.is_testing)e=join2(currentDir,"..","..");else if(process.versions.pnp){const{findPnpApi:t}=require("node:module");e=t(this.filepath).resolveToUnqualified("houdini",this.filepath)}else e=findModule("houdini",join2(dirname(this.filepath)));return resolve(e,"build",`runtime-${"esm"===this.module?"esm":"cjs"}`)}artifactTypePath(e){return join2(this.artifactTypeDirectory,`${this.documentName(e)}.d.ts`)}artifactPath(e){return join2(this.artifactDirectory,this.documentName(e)+".js")}artifactImportPath(e){return`$houdini/${this.artifactDirectoryName}/${e}`}keyFieldsForType(e){return this.schema.getQueryType()?.name===e?[]:keyFieldsForType(this.configFile,e)}computeID(e,t){return computeID(this.configFile,e,t)}documentName(e){const t=e.definitions.find((({kind:e})=>e===graphql3.Kind.OPERATION_DEFINITION));if(t){if(!t.name)throw new Error("encountered operation with no name: "+graphql3.print(e));return t.name.value}const r=e.definitions.filter((({kind:e})=>e===graphql3.Kind.FRAGMENT_DEFINITION));if(r.length)return r[0].name.value;throw new Error("Could not generate artifact name for document: "+graphql3.print(e))}isSelectionScalar(e){return["String","Boolean","Float","ID","Int"].concat(Object.keys(this.scalars||{})).includes(e)}createDirectories(){mkdirpSync(this.artifactDirectory),mkdirpSync(this.artifactTypeDirectory),mkdirpSync(this.runtimeDirectory),mkdirpSync(this.definitionsDirectory)}get compiledAssetsDir(){return join2(this.rootDir,"build")}compiledAssetPath(e){return join2(this.compiledAssetsDir,relative(process.cwd(),e).replaceAll(sep,"_").replace(".ts",".js"))}excludeFile(e){if(this.exclude.length>0&&this.exclude.some((t=>(0,import_minimatch.default)(e,t))))return!0;for(const t of this.plugins)if(t?.exclude?.({config:this,filepath:e}))return!0;return!1}includeFile(e,{root:t=this.projectRoot,ignore_plugins:r=!1}={}){const n=parse3(e);e=`${n.dir}/${n.name}${n.ext.split("?")[0]}`;let i=!1;for(const t of r?[]:this.plugins)if(t.include&&t.include({config:this,filepath:e})){i=!0;break}return!(!i&&!this.include.some((r=>(0,import_minimatch.default)(e,join2(t,r)))))&&!this.excludeFile(e)}pluginRuntimeDirectory(e){return join2(this.pluginDirectory(e),"runtime")}get pluginRootDirectory(){return houdini_mode.is_testing?"../../../":join2(this.rootDir,"plugins")}pluginDirectory(e){return join2(this.pluginRootDirectory,e)}get loadDirective(){return"load"}get maskEnableDirective(){return"mask_enable"}get maskDisableDirective(){return"mask_disable"}get listDirective(){return"list"}get dedupeDirective(){return"dedupe"}get optimisticKeyDirective(){return"optimisticKey"}get listPrependDirective(){return"prepend"}get listAppendDirective(){return"append"}get listParentDirective(){return"parentID"}get blockingDirective(){return"blocking"}get blockingDisableDirective(){return"blocking_disable"}get deprecatedlistDirectiveParentIDArg(){return"parentID"}get listAllListsDirective(){return"allLists"}get listOrPaginateNameArg(){return"name"}get insertFragmentSuffix(){return"_insert"}get removeFragmentSuffix(){return"_remove"}get toggleFragmentSuffix(){return"_toggle"}get deleteDirectiveSuffix(){return"_delete"}get loadingDirective(){return"loading"}get runtimeScalarDirective(){return"__houdini__runtimeScalar"}get whenDirective(){return"when"}get whenNotDirective(){return this.whenDirective+"_not"}get liveDirective(){return"live"}get argumentsDirective(){return"arguments"}get withDirective(){return"with"}get paginateDirective(){return"paginate"}get paginateModeArg(){return"mode"}get cacheDirective(){return"cache"}get cachePartialArg(){return"partial"}get cachePolicyArg(){return"policy"}get requiredDirective(){return"required"}paginationQueryName(e){return e+"_Pagination_Query"}isDeleteDirective(e){return e.endsWith(this.deleteDirectiveSuffix)}listDeleteDirective(e){return e+this.deleteDirectiveSuffix}deleteDirectiveType(e){return e.slice(0,e.length-this.deleteDirectiveSuffix.length)}isInsertFragment(e){return e.endsWith(this.insertFragmentSuffix)}listInsertFragment(e){return e+this.insertFragmentSuffix}listToggleFragment(e){return e+this.toggleFragmentSuffix}isRemoveFragment(e){return e.endsWith(this.removeFragmentSuffix)}isToggleFragment(e){return e.endsWith(this.toggleFragmentSuffix)}listRemoveFragment(e){return e+this.removeFragmentSuffix}isInternalEnum(e){return"CachePolicy"===e.name.value||"PaginateMode"===e.name.value}isInternalDirective(e){const t=this.#v?.getDirectives().reduce(((e,t)=>e.concat(t.name)),[])??[];return!defaultDirectives.includes(e)&&(t.includes(e)||this.isDeleteDirective(e)||e===this.runtimeScalarDirective)}get componentFieldDirective(){return"componentField"}componentFieldFragmentName(e){let t=e.entry;if("string"!=typeof t){const e=t.arguments?.find((e=>"field"===e.name.value))?.value;t="StringValue"===e?.kind?e.value:""}return t?`__componentField__${e.type}_${t}`:""}localDocumentData(e){let t=!1,r=[];const n=new graphql3.TypeInfo(this.schema);return graphql3.visit(e,graphql3.visitWithTypeInfo(n,{Directive:e=>{[this.paginateDirective].includes(e.name.value)&&(t=!0)},Field:e=>{const t=n.getParentType();this.componentFields[t?.name??""]?.[e.name.value]&&t?.name&&r.push({type:t?.name,field:e.name.value})}})),{paginated:t,componentFields:r}}#T;registerFragmentVariablesHash({hash:e,args:t,fragment:r}){this.#T[e]={args:this.serializeValueMap(t),fragment:r}}getFragmentVariablesHash(e){return this.#T[e]??{fragment:e,args:{},hash:e}}serializeValueMap(e){return e?Object.fromEntries(Object.entries(e).map((([e,t])=>{const r={kind:t.kind};return"object"==typeof t&&("value"in t&&(r.value=t.value),"values"in t&&(r.values=t.values.map((e=>this.serializeValueMap({foo:e}).foo))),"name"in t&&(r.name=t.name),"fields"in t&&(r.fields=t.fields.map((e=>({name:e.name,value:this.serializeValueMap({foo:e.value}).foo}))))),[e,r]}))):null}isListFragment(e){return e.endsWith(this.insertFragmentSuffix)||e.endsWith(this.removeFragmentSuffix)||e.endsWith(this.toggleFragmentSuffix)}isListOperationDirective(e){return e.endsWith(this.deleteDirectiveSuffix)}isFragmentForList(e,t){return t.startsWith(e)}listOperationFromFragment(e){if(this.isInsertFragment(e))return"insert";if(this.isRemoveFragment(e))return"remove";if(this.isToggleFragment(e))return"toggle";throw new Error("Could not determine list operation from fragment name: "+e)}listNameFromDirective(e){try{return this.listNameFromFragment(e)}catch(t){throw new Error("Could not find list name from directive: "+e)}}listNameFromFragment(e){for(let t=e.length-1;t>=0;t--)if("_"===e[t])return e.slice(0,t);throw new Error("Could not find list name from fragment: "+e)}extractDefinition(e){if(1!==e.definitions.length)throw new Error("Encountered document with multiple definitions");const t=e.definitions[0];if("OperationDefinition"!==t.kind&&"FragmentDefinition"!==t.kind)throw new Error("Encountered document without a fragment or operation definition");return t}extractQueryDefinition(e){const t=this.extractDefinition(e);if("OperationDefinition"!==t.kind||"query"!==t.operation)throw new Error("Encountered document with non query definition");return t}variableFunctionName(e){return e+"Variables"}},DEFAULT_CONFIG_PATH=join2(process.cwd(),"houdini.config.js"),pendingConfigPromise=null;async function getConfig({configPath:e=DEFAULT_CONFIG_PATH,noSchema:t,forceReload:r,...n}={}){if(!r){if(_config)return _config;if(pendingConfigPromise)return await pendingConfigPromise}let i=()=>{},s=e=>{};pendingConfigPromise=new Promise(((e,t)=>{i=e,s=t}));try{let r=await readConfigFile(e);const s=Object.entries(r.plugins??{});process.env.HOUDINI_CODEGEN_PLUGIN&&s.push([process.env.HOUDINI_CODEGEN_PLUGIN,{}]);const a=[];for(const[t,r]of s){let n=join2(dirname(e),t);t.startsWith(".")||(n=await pluginPath(t,e));const{default:i}=await import((0,import_node_url2.pathToFileURL)(n).toString());if(!i.plugin||!i.name)throw new HoudiniError({filepath:n,message:"The default export does not match the expected shape.",description:"Please make sure that the file exports the default of the plugin function."});const s=await i.plugin(r),o=(Array.isArray(s)?s:[s]).filter(Boolean).flat();a.push(await flattenPluginList(e,o,t,n))}const o=a.flat();for(const e of o)if(e.config)try{const t=(await import(e.config)).default;t&&(r="function"==typeof t?t(r):t)}catch{console.log("could not load config file "+e.config)}_config=new Config({...r,...n,filepath:e});let l=!1;try{let e=_config.localApiDir;for(const t of await readdir(e))if("+schema"===parse3(t).name){l=!0;break}}catch{}_config.localSchema=l,l&&(_config.schema=await loadLocalSchema(_config));const c=await _config.apiURL();if(!_config.localSchema&&_config.schemaPath&&!_config.schema){let e=!0;c&&(glob.hasMagic(_config.schemaPath)?console.log("⚠️  Your houdini configuration contains an apiUrl and a path pointing to multiple files.\n\tThis will prevent your schema from being pulled."):await readFile(_config.schemaPath)||(console.log("⌛ Pulling schema from api"),e=null!==await pullSchema(c,_config.schemaPollTimeout,_config.schemaPath))),e&&!t&&(_config.schema=await loadSchemaFile(_config.schemaPath))}return _config.plugins=orderedPlugins(o),await Promise.all(_config.plugins.map((e=>e.afterLoad?.({config:_config})))),i(_config),_config}catch(e){throw s(e),e}}async function flattenPluginList(e,t,r,n){const i=[{...plugin(r,(async()=>t)),local:n}],s=[];for(;i.length>0;){const t=i.shift();if(!t)break;const r=t.local??await pluginPath(t.name,e),n=await t.plugin(t.config??{}),a=Array.isArray(n)?n:[n];for(const e of a)e&&("__plugin_init__"in e?i.push(e):s.push({...e,name:t.name,filepath:r}))}return s}async function readConfigFile(e=DEFAULT_CONFIG_PATH){let t,r=importPath(e);try{t=await import(r)}catch(t){throw new Error(`Could not load config file at file://${e}.\n${t.message}`)}return t.default||t}var orderedPlugins=e=>{const t=e.filter((e=>"before"===e.order||void 0===e.order));return t.push(...e.filter((e=>"core"===e.order)),...e.filter((e=>"after"===e.order))),t};async function pluginPath(e,t){try{if(process.versions.pnp){const{findPnpApi:r}=require("node:module");return r(t).resolveRequest(e,t,{conditions:new Set(["import"])})}const r=findModule(e,t),n=await readFile(join2(r,"package.json"));if(!n)throw new Error("skip");const i=JSON.parse(n);if(!i.exports?.["."]?.import)throw new Error("");return join2(r,i.exports["."].import)}catch{throw new Error(`Could not find plugin: ${e}. Are you sure its installed? If so, please open a ticket on GitHub.`)}}function findModule(e="houdini",t){const r=["node_modules",e];let n=join2(t,...r),i="";const s=[];for(;i!==n&&!existsSync(n);)i=n,s.push("../"),n=join2(t,...s,...r);if(i===n)throw new Error("Could not find any node_modules/houdini folder");return n}async function loadSchemaFile(e){if(isAbsolute(e)){const t=relative(process.cwd(),e),r=new Error(`Invalid config value: 'schemaPath' must now be passed as a relative directory. Please change its value to "./${t}".`);throw r.stack="",r}if(glob.hasMagic(e)){const t=await glob(e);return mergeSchemas({typeDefs:await Promise.all(t.map((async e=>await readFile(e))))})}try{await stat(e)}catch{throw new HoudiniError({message:"Schema file does not exist! Create it using houdini pull-schema"})}const t=await readFile(e);if(e.endsWith("gql")||e.endsWith("graphql")||e.endsWith("graphqls"))return graphql3.buildSchema(t);const r=JSON.parse(t);return r.data?graphql3.buildClientSchema(r.data):graphql3.buildClientSchema(r)}var emptySchema=graphql3.buildSchema("type Query { hello: String }"),defaultDirectives=emptySchema.getDirectives().map((e=>e.name)),graphql4=__toESM(require("graphql"),1),import_node_crypto=__toESM(require("node:crypto"),1);function getRootType(e){return graphql4.isNonNullType(e)||graphql4.isListType(e)?getRootType(e.ofType):e}function processComponentFieldDirective(e){let t,r,n,i;for(const s of e.arguments??[])"field"===s.name.value&&"StringValue"===s.value.kind?t=s.value.value:"export"===s.name.value&&"StringValue"===s.value.kind?r=s.value.value:"prop"===s.name.value&&"StringValue"===s.value.kind?n=s.value.value:"raw"===s.name.value&&"StringValue"===s.value.kind&&(i=s.value.value);const s=[];if(t||s.push("field"),n||s.push("prop"),s.length>0)throw new Error(`missing arguments to @componentField: ${s.join(", ")}`);return{prop:n,field:t,raw:i,export:r}}function hashOriginal({document:e}){return hashDocument(e.originalString)}function hashRaw({document:e}){return hashDocument(e.artifact?.raw)}function hashDocument(e){return import_node_crypto.default.createHash("sha256").update(e||"").digest("hex")}function parentField(e){return walkParentField([...e].sort((()=>-1)))}function walkParentField(e){let t=e.shift();return Array.isArray(t)||"SelectionSet"===t.kind?walkParentField(e):t}function parentTypeFromAncestors(e,t,r){const n=[...r];return n.reverse(),walkAncestors(e,t,n)}function walkAncestors(e,t,r){let n=r.shift();if(Array.isArray(n))return walkAncestors(e,t,r);if(!n)throw new HoudiniError({filepath:t,message:"Could not figure out type of field"});if("OperationDefinition"===n.kind){const r={query:e.getQueryType(),mutation:e.getMutationType(),subscription:e.getSubscriptionType()}[n.operation];if(!r)throw new HoudiniError({filepath:t,message:"Could not find operation type"});return r}if("FragmentDefinition"===n.kind){const r=e.getType(n.typeCondition.name.value);if(!r)throw new HoudiniError({filepath:t,message:`Could not find definition for ${n.typeCondition.name.value} in the schema`});return r}if("FragmentSpread"===n.kind)throw new Error("How the hell did this happen?");const i=walkAncestors(e,t,r);if("InlineFragment"===n.kind){if(!n.typeCondition)return i;const r=e.getType(n.typeCondition.name.value);if(!r)throw new HoudiniError({filepath:t,message:"Could not find type with name: "+n.typeCondition.name.value});return r}if("SelectionSet"===n.kind)return i;const s=i.getFields()[n.name.value];if(!s)throw new HoudiniError({filepath:t,message:`Could not find definition of ${n.name.value} in ${i.toString()}`});return getRootType(s.type)}function definitionFromAncestors(e){let t=[...e];t.shift();let r=t.shift();for(;Array.isArray(r)&&r;)r=t.shift();return{parents:t,definition:r}}function formatErrors(e,t){const r=Array.isArray(e)?e:[e];for(const n of r){if("filepath"in n&&n.filepath){const e=relative(process.cwd(),n.filepath);console.error(`❌ Encountered error in ${e}`),n.message&&console.error(n.message)}else console.error(`❌ ${n.message}`),"description"in n&&n.description&&console.error(`${n.description}`);t?.(e)}}function operation_requires_variables(e){return Boolean(e.variableDefinitions&&e.variableDefinitions?.find((e=>"NonNullType"===e.type.kind&&!e.defaultValue)))}function unwrapType(e,t,r=[],n){if("NonNullType"===t.kind)return unwrapType(e,t.type,[TypeWrapper.NonNull,...r]);if(t instanceof graphql4.GraphQLNonNull)return unwrapType(e,t.ofType,[TypeWrapper.NonNull,...r]);if(r[0]!==TypeWrapper.NonNull&&r.unshift(TypeWrapper.Nullable),"ListType"===t.kind)return unwrapType(e,t.type,[TypeWrapper.List,...r]);if(t instanceof graphql4.GraphQLList)return unwrapType(e,t.ofType,[TypeWrapper.List,...r]);n&&e.configFile.features?.runtimeScalars?.[t.name.value]&&(t=e.schema.getType(e.configFile.features?.runtimeScalars?.[t.name.value].type));const i=e.schema.getType(t.name.value||t.name);if(!i)throw new Error("Unknown type: "+t.name.value||t.name);return{type:i,wrappers:r}}function wrapType({type:e,wrappers:t}){const r=t[0],n=t.slice(1);let i=graphql4.Kind.NAMED_TYPE;return r===TypeWrapper.List?i=graphql4.Kind.LIST_TYPE:r===TypeWrapper.NonNull&&(i=graphql4.Kind.NON_NULL_TYPE),"NamedType"===i?{kind:i,name:{kind:graphql4.Kind.NAME,value:e.name}}:{kind:i,type:wrapType({type:e,wrappers:n})}}var TypeWrapper=(e=>(e.Nullable="Nullable",e.List="List",e.NonNull="NonNull",e))(TypeWrapper||{}),import_parser=__toESM(require_lib6(),1),import_recast=__toESM(require_main2(),1),import_deepmerge=__toESM(require_cjs(),1);function deepMerge2(e,...t){try{return 1===t.length?t[0]:2===t.length?(0,import_deepmerge.default)(t[0],t[1],{arrayMerge:(e,t)=>[...new Set(e.concat(t))]}):deepMerge2(e,t[0],deepMerge2(e,...t.slice(1)))}catch(r){throw new HoudiniError({filepath:e,message:"could not merge: "+JSON.stringify(t,null,4),description:r.message})}}function parseJS(e,t){const r={plugins:["typescript","importAssertions","decorators-legacy","explicitResourceManagement"],sourceType:"module"};return(0,import_parser.parse)(e||"",t?deepMerge2("",r,t):r).program}function parseJSON(e){return e=e.replace(/\\"|"(?:\\"|[^"])*"|(\/\/.*|\/\*[\s\S]*?\*\/)/g,((e,t)=>t?"":e)),JSON.parse(e)}async function printJS(e,t){return t?.pretty?(0,import_recast.prettyPrint)(e,t):(0,import_recast.print)(e,t)}var recast=__toESM(require_main2(),1),AST=recast.types.builders;function ensureArtifactImport({config:e,artifact:t,body:r,local:n,withExtension:i}){return ensureImports({config:e,body:r,sourceModule:e.artifactImportPath(t.name)+(i?".js":""),import:n||`_${t.name}Artifact`})}function ensureImports({config:e,body:t,import:r,sourceModule:n,importKind:i}){if(!r)return t.find((e=>"ImportDeclaration"===e.type&&e.source.value===n))||t.unshift({type:"ImportDeclaration",source:AST.stringLiteral(n),specifiers:[],importKind:i}),null;const s=(Array.isArray(r)?r:[r]).filter((e=>!t.find((t=>"ImportDeclaration"===t.type&&t.specifiers.find((t=>"ImportSpecifier"===t.type&&"Identifier"===t.imported.type&&t.imported.name===e&&t.local.name===e||"ImportDefaultSpecifier"===t.type&&"Identifier"===t.local.type&&t.local.name===e))))));return s.length>0&&t.unshift({type:"ImportDeclaration",source:AST.stringLiteral(n),specifiers:s.map((e=>Array.isArray(r)?AST.importSpecifier(AST.identifier(e),AST.identifier(e)):AST.importDefaultSpecifier(AST.identifier(e)))),importKind:i}),Array.isArray(r)?s:s[0]}async function cleanupFiles(e,t){let r=(await readdir(e)).filter((e=>e.endsWith(".js")&&"index.js"!==e)).map((e=>e.slice(0,-3))).sort().filter((e=>!t.includes(e)));return await Promise.all(r.map((async t=>{await remove(join2(e,`${t}.js`)),await remove(join2(e,`${t}.d.ts`))}))),r}async function detectFromPackageJSON(e){try{const r=await fs_exports.readFile(path_exports.join(e,"package.json"));if(!r)throw new Error("not found");var t=JSON.parse(r)}catch{throw new Error("❌ houdini init must target an existing node project (with a package.json)")}const{devDependencies:r,dependencies:n}=t;let i={framework:"svelte"};var s;return s="@sveltejs/kit",Boolean(r?.[s]||n?.[s])&&(i={framework:"kit"}),{frameworkInfo:i,module:"module"===t.type?"esm":"commonjs"}}async function detectTools(e=process.cwd()){let t=!1;try{await fs_exports.stat(path_exports.join(e,"tsconfig.json")),t=!0}catch{}let r="npm",n=e;do{if(fs_exports.existsSync(path_exports.join(n,"pnpm-lock.yaml"))){r="pnpm";break}if(fs_exports.existsSync(path_exports.join(n,"yarn.lock"))){r="yarn";break}}while(n!==(n=path_exports.dirname(n)));return{typescript:t,package_manager:r,...await detectFromPackageJSON(e)}}var param_pattern=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function find_match(e,t,r,n=!0){let i=null,s=null;for(const e of Object.values(t.pages)){const t=r.match(e.pattern);if(t){i=e,s=exec(t,e.params)||{};break}}if(!i&&!n)throw new Error("404");let a={...s};for(const t of Object.values(i?.documents??{}))for(const[r,{type:n}]of Object.entries(t.variables))s?.[r]&&(a[r]=parseScalar(e,n,s[r]));return[i,a]}function parse_page_pattern(e){const t=[];return{pattern:"/"===e?/^\/$/:new RegExp(`^${get_route_segments(e).map((e=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const n=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!e)return;const i=e.split(/\[(.+?)\](?!\])/);return"/"+i.map(((e,r)=>{if(r%2){if(e.startsWith("x+"))return escape2(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith("u+"))return escape2(String.fromCharCode(...e.slice(2).split("-").map((e=>parseInt(e,16)))));const n=param_pattern.exec(e);if(!n)throw new Error(`Invalid param: ${e}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,s,a,o,l]=n;return t.push({name:o,matcher:l,optional:!!s,rest:!!a,chained:!!a&&(1===r&&""===i[0])}),a?"(.*?)":s?"([^/]*)?":"([^/]+?)"}return escape2(e)})).join("")})).join("")}/?$`),params:t,page_id:e}}function affects_path(e){return!/^\([^)]+\)$/.test(e)}function get_route_segments(e){return e.slice(1).split("/").filter(affects_path)}function exec(e,t){const r={},n=e.slice(1);let i="";for(let e=0;e<(t||[]).length;e+=1){const s=t[e];let a=n[e];s.chained&&s.rest&&i&&(a=a?i+"/"+a:i),i="",void 0===a?s.rest&&(r[s.name]=""):r[s.name]=a}if(!i)return r}function escape2(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}var graphql5=__toESM(require("graphql"),1),recast2=__toESM(require_main2(),1),AST2=recast2.types.builders;function unwrappedTsTypeReference(e,t,r,{type:n,wrappers:i},s){let a;a=graphql5.isScalarType(n)?scalarPropertyValue(e,t,r,n,s,null):graphql5.isEnumType(n)?enumReference(e,s,n.name):AST2.tsTypeReference(AST2.identifier(n.name));for(const e of i)"NonNull"!==e&&("Nullable"===e?a=nullableField(a,!0):"List"===e&&(a=AST2.tsArrayType(AST2.tsParenthesizedType(a))));return a}function tsTypeReference(e,t,r,n,i){const{type:s,wrappers:a}=unwrapType(e,n.type);return unwrappedTsTypeReference(e,t,r,{type:s,wrappers:a},i)}function enumReference(e,t,r){return ensureImports({config:e,body:t,import:["ValueOf"],importKind:"type",sourceModule:"$houdini/runtime/lib/types"}),AST2.tsTypeReference(AST2.identifier("ValueOf"),AST2.tsTypeParameterInstantiation([AST2.tsTypeQuery(AST2.identifier(r))]))}function readonlyProperty(e,t=!0){return t&&(e.readonly=!0),e}function nullableField(e,t=!1){const r=[e,AST2.tsNullKeyword()];return t&&r.push(AST2.tsUndefinedKeyword()),AST2.tsUnionType(r)}function scalarPropertyValue(e,t,r,n,i,s){if(e.configFile.features?.componentFields&&n.name===e.componentScalar){if(!s)return AST2.tsNeverKeyword();const r=e.componentFields[s.parent][s.field],n=path_exports.relative(path_exports.join(e.projectRoot,"src"),r.filepath);let a=path_exports.parse(n),o=path_exports.join(a.dir,a.name);const l=ensureImports({config:e,body:i,import:"__component__"+r.fragment,sourceModule:path_exports.join(path_exports.relative(path_exports.dirname(t),e.projectRoot),"src",o)})??"__component__"+r.fragment,c=AST2.tsTypeReference(AST2.identifier("Parameters"));c.typeParameters=AST2.tsTypeParameterInstantiation([AST2.tsTypeQuery(AST2.identifier(l))]);const u=AST2.tsIndexedAccessType(c,AST2.tsLiteralType(AST2.numericLiteral(0))),p=AST2.tsTypeReference(AST2.identifier("Omit"));p.typeParameters=AST2.tsTypeParameterInstantiation([u,AST2.tsLiteralType(AST2.stringLiteral(r.prop))]);const d=AST2.identifier("props");d.typeAnnotation=AST2.tsTypeAnnotation(p);const h=AST2.tsTypeReference(AST2.identifier("ReturnType"));h.typeParameters=AST2.tsTypeParameterInstantiation([AST2.tsTypeQuery(AST2.identifier(l))]);const f=AST2.tsFunctionType([d]);return f.typeAnnotation=AST2.tsTypeAnnotation(h),f}switch(n.name){case"String":case"ID":return AST2.tsStringKeyword();case"Int":case"Float":return AST2.tsNumberKeyword();case"Boolean":return AST2.tsBooleanKeyword();default:return graphql5.isNonNullType(n)&&"ofType"in n?scalarPropertyValue(e,t,r,n.ofType,i,s):e.scalars?.[n.name]?AST2.tsTypeReference(AST2.identifier(e.scalars?.[n.name].type)):(n.name!==e.componentScalar&&r.add(n.name),AST2.tsAnyKeyword())}}async function writeTsConfig(e){await fs_exports.mkdirp(e.rootDir),await fs_exports.writeFile(path_exports.join(e.rootDir,"tsconfig.json"),JSON.stringify({compilerOptions:{baseUrl:".",paths:{$houdini:["."],"$houdini/*":["./*"],"~":["../src"],"~/*":["../src/*"]},rootDirs:["..","./types"],target:"ESNext",useDefineForClassFields:!0,lib:["DOM","DOM.Iterable","ESNext"],allowJs:!1,skipLibCheck:!0,esModuleInterop:!1,allowSyntheticDefaultImports:!0,strict:!0,forceConsistentCasingInFileNames:!0,module:"ESNext",moduleResolution:"Node",resolveJsonModule:!0,isolatedModules:!0,noEmit:!0,jsx:"react-jsx"},include:["ambient.d.ts","./types/**/$types.d.ts","../vite.config.ts","../src/**/*.js","../src/**/*.ts","../src/**/*.jsx","../src/**/*.tsx","../src/+app.d.ts"],exclude:["../node_modules/**","./[!ambient.d.ts]**"]},null,4))}var WalkerBase=class{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e}}replace(e,t,r,n){e&&(null!==r?e[t][r]=n:e[t]=n)}remove(e,t,r){e&&(null!==r?e[t].splice(r,1):delete e[t])}},AsyncWalker=class extends WalkerBase{constructor(e,t){super(),this.enter=e,this.leave=t}async visit(e,t,r,n){if(e){if(this.enter){const i=this.should_skip,s=this.should_remove,a=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,await this.enter.call(this.context,e,t,r,n),this.replacement&&(e=this.replacement,this.replace(t,r,n,e)),this.should_remove&&this.remove(t,r,n);const o=this.should_skip,l=this.should_remove;if(this.should_skip=i,this.should_remove=s,this.replacement=a,o)return e;if(l)return null}for(const t in e){const r=e[t];if("object"==typeof r)if(Array.isArray(r))for(let n=0;n<r.length;n+=1)null!==r[n]&&"string"==typeof r[n].type&&(await this.visit(r[n],e,t,n)||n--);else null!==r&&"string"==typeof r.type&&await this.visit(r,e,t,null)}if(this.leave){const i=this.replacement,s=this.should_remove;this.replacement=null,this.should_remove=!1,await this.leave.call(this.context,e,t,r,n),this.replacement&&(e=this.replacement,this.replace(t,r,n,e)),this.should_remove&&this.remove(t,r,n);const a=this.should_remove;if(this.replacement=i,this.should_remove=s,a)return null}}return e}};async function asyncWalk(e,{enter:t,leave:r}){const n=new AsyncWalker(t,r);return await n.visit(e,null)}var graphql6=__toESM(require("graphql"),1);async function find_graphql(e,t,r){await asyncWalk(t,{async enter(t,n){if("TaggedTemplateExpression"!==t.type&&"CallExpression"!==t.type&&"TSPropertySignature"!==t.type&&"VariableDeclaration"!==t.type)return;let i="",s="";if("TaggedTemplateExpression"===t.type){const e=t;if("Identifier"!==e.tag.type||"graphql"!==e.tag.name)return;i=e.quasi.quasis[0].value.raw}else if("CallExpression"===t.type){const e=t;if("Identifier"!==e.callee.type||"graphql"!==e.callee.name||1!==e.arguments.length)return;const r=e.arguments[0];if("TemplateLiteral"===r.type)i=r.quasis[0].value.raw;else{if("StringLiteral"!==r.type)return;i=r.value}}else if("TSPropertySignature"!==t.type||r.skipGraphqlType){if(!i)return}else{const e=t;if("TSTypeReference"!==e.typeAnnotation?.typeAnnotation?.type)return;const r=e.typeAnnotation?.typeAnnotation;if("Identifier"!==r.typeName.type)return;if("GraphQL"!==r.typeName.name)return;if("TSLiteralType"!==r.typeParameters?.params[0].type)return;const n=r.typeParameters?.params[0];"StringLiteral"===n.literal.type?i=n.literal.value:"TemplateLiteral"===n.literal.type&&(i=n.literal.quasis[0].value.raw),"Identifier"===e.key.type&&(s=e.key.name)}const a=graphql6.parse(i);if(r.where&&!r.where(a,{node:t,parent:n}))return;let o=!1,l=[{raw:i,parsed:e.extractDefinition(a)}];const c=l[0].parsed.name?.value;let u;if(u="FragmentDefinition"===l[0].parsed.kind?CompiledFragmentKind:"query"===l[0].parsed.operation?CompiledQueryKind:"mutation"===l[0].parsed.operation?CompiledMutationKind:CompiledSubscriptionKind,u===CompiledQueryKind&&(o=l[0].parsed.selectionSet.selections.every((t=>"InlineFragment"===t.kind&&t.directives?.find((t=>t.name.value===e.componentFieldDirective)))),c?l=[{parsed:l[0].parsed,raw:l[0].raw}]:e.configFile.features?.componentFields&&(l=extractAnonymousQuery(e,l[0].raw,l[0].parsed,s))),!c&&!o)throw new Error("Could not find definition name");r.dependency?.(e.artifactPath(a));for(const e of l){const i=e.parsed.name?.value;i&&await r.tag({parsedDocument:{kind:"Document",definitions:[e.parsed]},node:{...t,...this,remove:this.remove,replaceWith:this.replace},artifact:{name:i,kind:u},parent:n,tagContent:e.raw})}}})}function extractAnonymousQuery(e,t,r,n){const i=r.selectionSet.selections.reduce(((r,i)=>{if("InlineFragment"!==i.kind)return r;const s=i.directives.find((t=>t.name.value===e.componentFieldDirective)),a=e.componentFieldFragmentName({type:i.typeCondition.name.value,entry:s});s&&(s.arguments=[...s?.arguments??[],{kind:"Argument",name:{kind:"Name",value:"raw"},value:{kind:"StringValue",value:t}}]),s&&n&&!s.arguments?.find((e=>"prop"===e.name.value))&&(s.arguments=[...s?.arguments??[],{kind:"Argument",name:{kind:"Name",value:"prop"},value:{kind:"StringValue",value:n}}]);const o={kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:i.typeCondition?.name.value||""}},name:{kind:"Name",value:a},selectionSet:{kind:"SelectionSet",selections:i.selectionSet.selections},directives:i.directives};return r.concat([{raw:graphql6.print(o),parsed:o}])}),[]);if(i.length>1)throw new Error("Anonymous queries can only contain a single inline fragment");return i}
/*!
 * cookie
 * Copyright(c) 2012-2014 Roman Shtylman
 * Copyright(c) 2015 Douglas Christopher Wilson
 * MIT Licensed
 */
/*! fetch-blob. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
/*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
//# sourceMappingURL=/sm/e0b6375d61dac57ea6899d2e515728be1341b71ad279d42bdd316b2e68b97f36.map