Files
dot-files/GitHub Desktop-dev/extensions/fmkadmapgofadopljbjfkapdkoienihi/build/parseHookNames.chunk.js
klein panic 2bcc806b8b first commit
2024-09-29 01:05:25 -04:00

2 lines
2.5 MiB
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(self.webpackChunkreact_devtools_extensions=self.webpackChunkreact_devtools_extensions||[]).push([[641],{2648:(e,t,r)=>{"use strict";r.r(t),r.d(t,{parseHookNames:()=>parseHookNames,parseSourceAndMetadata:()=>parseSourceAndMetadata,purgeCachedMetadata:()=>d});var i=r(8057),n=r(474),s=r.n(n),a=r(3303),o=r(2078);function sourceMapIncludesSource(e,t){if(null==t)return!1;if(void 0===e.mappings){return e.sections.some((e=>sourceMapIncludesSource(e.map,t)))}return e.sources.some((e=>"Inline Babel script"===e||t.endsWith(e)))}var l=r(9052).lW;const u={cache:"force-cache"},c=1e8;async function loadSourceAndMetadata(e,t){return(0,i.WV)("loadSourceAndMetadata()",(async()=>{const r=(0,i.Y7)("initializeHookSourceAndMetadata",(()=>function(e){const t=new Map;for(let r=0;r<e.length;r++){const i=e[r].hookSource;if(null==i)throw Error("Hook source code location not found.");const n=(0,o.qG)(i);if(!t.has(n)){const e={hookSource:i,runtimeSourceCode:null,runtimeSourceURL:i.fileName,sourceMapJSON:null,sourceMapURL:null};t.set(n,e)}}return t}(e)));return await(0,i.WV)("loadSourceFiles()",(()=>function(e,t){const r=new Map,n=[];return e.forEach((e=>{const{runtimeSourceURL:s}=e;let o=fetchFile;null!=t&&(o=e=>(0,i.WV)(`fetchFileWithCaching("${e}")`,(()=>t(e))));const l=r.get(s)||o(s).then((e=>{if(e.length>c)throw Error("Source code too large to parse");return a.p&&(console.groupCollapsed(`loadSourceFiles() runtimeSourceURL "${s}"`),console.log(e),console.groupEnd()),e}));r.set(s,l),n.push(l.then((t=>{e.runtimeSourceCode=t})))})),Promise.all(n)}(r,t))),await(0,i.WV)("extractAndLoadSourceMapJSON()",(()=>function(e){const t=new Map;a.p&&console.log("extractAndLoadSourceMapJSON() load",e.size,"source maps");const r=[];return e.forEach((e=>{const n=/ ?sourceMappingURL=([^\s'"]+)/gm,s=e.runtimeSourceCode;let o=(0,i.Y7)("sourceMapRegex.exec(runtimeSourceCode)",(()=>n.exec(s)));if(null==o)a.p&&console.log("extractAndLoadSourceMapJSON() No source map found");else{const l=[];for(;null!=o;){const{runtimeSourceURL:t}=e,r=o[1];if(r.indexOf("base64,")>=0)try{const n=r.match(/base64,([a-zA-Z0-9+\/=]+)/)[1],s=(0,i.Y7)("decodeBase64String()",(()=>decodeBase64String(n))),o=(0,i.Y7)("JSON.parse(decoded)",(()=>JSON.parse(s)));if(a.p&&(console.groupCollapsed("extractAndLoadSourceMapJSON() Inline source map"),console.log(o),console.groupEnd()),sourceMapIncludesSource(o,t)){e.sourceMapJSON=o,e.runtimeSourceCode=null;break}}catch(e){}else l.push(r);o=(0,i.Y7)("sourceMapRegex.exec(runtimeSourceCode)",(()=>n.exec(s)))}null===e.sourceMapJSON&&l.forEach(((n,s)=>{if(s!==l.length-1)return void console.warn(`More than one external source map detected in the source file; skipping "${n}"`);const{runtimeSourceURL:o}=e;let u=n;if(!u.startsWith("http")&&!u.startsWith("/")){if(-1!==o.lastIndexOf("/")){u=`${o.slice(0,o.lastIndexOf("/"))}/${u}`}}e.sourceMapURL=u;const c=t.get(u)||fetchFile(u).then((e=>(0,i.Y7)("JSON.parse(sourceMapContents)",(()=>JSON.parse(e)))),(e=>null));a.p&&(t.has(u)||console.log(`extractAndLoadSourceMapJSON() External source map "${u}"`)),t.set(u,c),r.push(c.then((t=>{null!==t&&(e.sourceMapJSON=t,e.runtimeSourceCode=null)})))}))}})),Promise.all(r)}(r))),r}))}function decodeBase64String(e){if("function"==typeof atob)return atob(e);if(null!=l&&"function"==typeof l.from)return l.from(e,"base64");throw Error("Cannot decode base64 string")}function fetchFile(e,t="fetchFile"){return(0,i.OB)(`${t}("${e}")`,(r=>new Promise(((i,n)=>{fetch(e,u).then((s=>{s.ok?s.text().then((e=>{r(),i(e)})).catch((i=>{a.p&&console.log(`${t}() Could not read text for url "${e}"`),r(),n(null)})):(a.p&&console.log(`${t}() Got bad response for url "${e}"`),r(),n(null))}),(e=>{a.p&&console.log(`${t}() Could not fetch file: ${e.message}`),r(),n(null)}))}))))}function flattenHooksList(e){const t=[];return(0,i.Y7)("flattenHooksList()",(()=>{flattenHooksListImpl(e,t)})),a.p&&console.log("flattenHooksList() hooksList:",t),t}function flattenHooksListImpl(e,t){for(let r=0;r<e.length;r++){const i=e[r];isUnnamedBuiltInHook(i)?a.p&&console.log("flattenHooksListImpl() Skipping unnamed hook",i):(t.push(i),i.subHooks.length>0&&flattenHooksListImpl(i.subHooks,t))}}function isUnnamedBuiltInHook(e){return["Effect","ImperativeHandle","LayoutEffect","DebugValue"].includes(e.name)}const p=s()();function parseSourceAndMetadata(e,t){return p.parseSourceAndMetadata(e,t)}const d=p.purgeCachedMetadata,h=new Map;async function parseHookNames(e,t){return(0,i.WV)("parseHookNames",(async()=>{const r=flattenHooksList(e);if(0===r.length)return h;return parseSourceAndMetadata(r,await loadSourceAndMetadata(r,t))}))}},474:(e,t,r)=>{var i=r(6803),n=["parseSourceAndMetadata","purgeCachedMetadata"];e.exports=function(){var e=new Worker(URL.createObjectURL(new Blob(['(()=>{var e={785:(e,t,r)=>{"use strict";var i=r(397);Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=codeFrameColumns,t.default=function(e,t,r,n={}){if(!s){s=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(i.emitWarning)i.emitWarning(e,"DeprecationWarning");else{new Error(e).name="DeprecationWarning",console.warn(new Error(e))}}r=Math.max(r,0);return codeFrameColumns(e,{start:{column:r,line:t}},n)};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(7012));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}let s=!1;const a=/\\r\\n|[\\n\\r\\u2028\\u2029]/;function codeFrameColumns(e,t,r={}){const i=(r.highlightCode||r.forceColor)&&(0,n.shouldHighlight)(r),s=(0,n.getChalk)(r),o=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(s),maybeHighlight=(e,t)=>i?e(t):t,l=e.split(a),{start:c,end:u,markerLines:p}=function(e,t,r){const i=Object.assign({column:0,line:-1},e.start),n=Object.assign({},i,e.end),{linesAbove:s=2,linesBelow:a=3}=r||{},o=i.line,l=i.column,c=n.line,u=n.column;let p=Math.max(o-(s+1),0),d=Math.min(t.length,c+a);-1===o&&(p=0),-1===c&&(d=t.length);const h=c-o,f={};if(h)for(let e=0;e<=h;e++){const r=e+o;if(l)if(0===e){const e=t[r-1].length;f[r]=[l,e-l+1]}else if(e===h)f[r]=[0,u];else{const i=t[r-e].length;f[r]=[0,i]}else f[r]=!0}else f[o]=l===u?!l||[l,0]:[l,u-l];return{start:p,end:d,markerLines:f}}(t,l,r),d=t.start&&"number"==typeof t.start.column,h=String(u).length;let f=(i?(0,n.default)(e,r):e).split(a).slice(c,u).map(((e,t)=>{const i=c+1+t,n=` ${` ${i}`.slice(-h)} |`,s=p[i],a=!p[i+1];if(s){let t="";if(Array.isArray(s)){const i=e.slice(0,Math.max(s[0]-1,0)).replace(/[^\\t]/g," "),l=s[1]||1;t=["\\n ",maybeHighlight(o.gutter,n.replace(/\\d/g," "))," ",i,maybeHighlight(o.marker,"^").repeat(l)].join(""),a&&r.message&&(t+=" "+maybeHighlight(o.message,r.message))}return[maybeHighlight(o.marker,">"),maybeHighlight(o.gutter,n),e.length>0?` ${e}`:"",t].join("")}return` ${maybeHighlight(o.gutter,n)}${e.length>0?` ${e}`:""}`})).join("\\n");return r.message&&!d&&(f=`${" ".repeat(h+1)}${r.message}\\n${f}`),i?s.reset(f):f}},6163:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({node:e,parent:t,scope:r,id:n},c=!1){if(e.id)return;if(!s.isObjectProperty(t)&&!s.isObjectMethod(t,{kind:"method"})||t.computed&&!s.isLiteral(t.key)){if(s.isVariableDeclarator(t)){if(n=t.id,s.isIdentifier(n)&&!c){const t=r.parent.getBinding(n.name);if(t&&t.constant&&r.getBinding(n.name)===t)return e.id=s.cloneNode(n),void(e.id[s.NOT_LOCAL_BINDING]=!0)}}else if(s.isAssignmentExpression(t,{operator:"="}))n=t.left;else if(!n)return}else n=t.key;let u;n&&s.isLiteral(n)?u=function(e){if(s.isNullLiteral(e))return"null";if(s.isRegExpLiteral(e))return`_${e.pattern}_${e.flags}`;if(s.isTemplateLiteral(e))return e.quasis.map((e=>e.value.raw)).join("");if(void 0!==e.value)return e.value+"";return""}(n):n&&s.isIdentifier(n)&&(u=n.name);if(void 0===u)return;u=s.toBindingIdentifierName(u),(n=s.identifier(u))[s.NOT_LOCAL_BINDING]=!0;return function(e,t,r,n){if(e.selfReference){if(!n.hasBinding(r.name)||n.hasGlobal(r.name)){if(!s.isFunction(t))return;let e=a;t.generator&&(e=o);const l=e({FUNCTION:t,FUNCTION_ID:r,FUNCTION_KEY:n.generateUidIdentifier(r.name)}).expression,c=l.callee.body.body[0].params;for(let e=0,r=(0,i.default)(t);e<r;e++)c.push(n.generateUidIdentifier("x"));return l}n.rename(r.name)}t.id=r,n.getProgramParent().references[r.name]=!0}(function(e,t,r){const i={selfAssignment:!1,selfReference:!1,outerDeclar:r.getBindingIdentifier(t),references:[],name:t},n=r.getOwnBinding(t);n?"param"===n.kind&&(i.selfReference=!0):(i.outerDeclar||r.hasGlobal(t))&&r.traverse(e,l,i);return i}(e,u,r),e,n,r)||e};var i=_interopRequireDefault(r(2442)),n=_interopRequireDefault(r(6205)),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(17));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const a=(0,n.default)("\\n (function (FUNCTION_KEY) {\\n function FUNCTION_ID() {\\n return FUNCTION_KEY.apply(this, arguments);\\n }\\n\\n FUNCTION_ID.toString = function () {\\n return FUNCTION_KEY.toString();\\n }\\n\\n return FUNCTION_ID;\\n })(FUNCTION)\\n"),o=(0,n.default)("\\n (function (FUNCTION_KEY) {\\n function* FUNCTION_ID() {\\n return yield* FUNCTION_KEY.apply(this, arguments);\\n }\\n\\n FUNCTION_ID.toString = function () {\\n return FUNCTION_KEY.toString();\\n };\\n\\n return FUNCTION_ID;\\n })(FUNCTION)\\n"),l={"ReferencedIdentifier|BindingIdentifier"(e,t){if(e.node.name!==t.name)return;e.scope.getBindingIdentifier(t.name)===t.outerDeclar&&(t.selfReference=!0,e.stop())}}},2442:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.params;for(let e=0;e<t.length;e++){const r=t[e];if(i.isAssignmentPattern(r)||i.isRestElement(r))return e}return t.length};var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(17));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}},7224:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!e.isExportDeclaration())throw new Error("Only export declarations can be split.");const t=e.isExportDefaultDeclaration(),r=e.get("declaration"),n=r.isClassDeclaration();if(t){const t=r.isFunctionDeclaration()||n,s=r.isScope()?r.scope.parent:r.scope;let a=r.node.id,o=!1;a||(o=!0,a=s.generateUidIdentifier("default"),(t||r.isFunctionExpression()||r.isClassExpression())&&(r.node.id=i.cloneNode(a)));const l=t?r:i.variableDeclaration("var",[i.variableDeclarator(i.cloneNode(a),r.node)]),c=i.exportNamedDeclaration(null,[i.exportSpecifier(i.cloneNode(a),i.identifier("default"))]);return e.insertAfter(c),e.replaceWith(l),o&&s.registerDeclaration(e),e}if(e.get("specifiers").length>0)throw new Error("It doesn\'t make sense to split exported specifiers.");const s=r.getOuterBindingIdentifiers(),a=Object.keys(s).map((e=>i.exportSpecifier(i.identifier(e),i.identifier(e)))),o=i.exportNamedDeclaration(null,a);return e.insertAfter(o),e.replaceWith(r.node),e};var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(17));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}},9104:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIdentifierStart=isIdentifierStart,t.isIdentifierChar=isIdentifierChar,t.isIdentifierName=function(e){let t=!0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if(55296==(64512&i)&&r+1<e.length){const t=e.charCodeAt(++r);56320==(64512&t)&&(i=65536+((1023&i)<<10)+(1023&t))}if(t){if(t=!1,!isIdentifierStart(i))return!1}else if(!isIdentifierChar(i))return!1}return!t};let r="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA--zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",i="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍--_";const n=new RegExp("["+r+"]"),s=new RegExp("["+r+i+"]");r=i=null;const a=[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,157,310,10,21,11,7,153,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,107,20,28,22,13,52,76,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,85,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,230,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,35,56,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,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,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,8952,286,50,2,18,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,2357,44,11,6,17,0,370,43,1301,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,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],o=[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,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,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,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,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,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let i=0,n=t.length;i<n;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function isIdentifierStart(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&n.test(String.fromCharCode(e)):isInAstralSet(e,a)))}function isIdentifierChar(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&s.test(String.fromCharCode(e)):isInAstralSet(e,a)||isInAstralSet(e,o))))}},7075:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return i.isIdentifierName}}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return i.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return i.isIdentifierStart}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return n.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return n.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return n.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return n.isStrictReservedWord}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return n.isKeyword}});var i=r(9104),n=r(4400)},4400:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isReservedWord=isReservedWord,t.isStrictReservedWord=isStrictReservedWord,t.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord,t.isStrictBindReservedWord=function(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)},t.isKeyword=function(e){return n.has(e)};const r=["implements","interface","let","package","private","protected","public","static","yield"],i=["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"]),s=new Set(r),a=new Set(i);function isReservedWord(e,t){return t&&"await"===e||"enum"===e}function isStrictReservedWord(e,t){return isReservedWord(e,t)||s.has(e)}function isStrictBindOnlyReservedWord(e){return a.has(e)}},7012:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldHighlight=shouldHighlight,t.getChalk=getChalk,t.default=function(e,t={}){if(shouldHighlight(t)){const r=function(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}(getChalk(t));return function(e,t){let r="";for(const{type:i,value:n}of c(t)){const t=e[i];r+=t?n.split(o).map((e=>t(e))).join("\\n"):n}return r}(r,e)}return e};var i=r(7075);const n=r(8631),s=r(1859),a=new Set(["as","async","from","get","of","set"]);const o=/\\r\\n|[\\n\\r\\u2028\\u2029]/,l=/^[()[\\]{}]$/;let c;{const e=/^[a-z][\\w-]*$/i,getTokenType=function(t,r,n){if("name"===t.type){if((0,i.isKeyword)(t.value)||(0,i.isStrictReservedWord)(t.value,!0)||a.has(t.value))return"keyword";if(e.test(t.value)&&("<"===n[r-1]||"</"==n.substr(r-2,2)))return"jsxIdentifier";if(t.value[0]!==t.value[0].toLowerCase())return"capitalized"}return"punctuator"===t.type&&l.test(t.value)?"bracket":"invalid"!==t.type||"@"!==t.value&&"#"!==t.value?t.type:"punctuator"};c=function*(e){let t;for(;t=n.default.exec(e);){const r=n.matchToToken(t);yield{type:getTokenType(r,t.index,e),value:r.value}}}}function shouldHighlight(e){return!!s.supportsColor||e.forceColor}function getChalk(e){return e.forceColor?new s.constructor({enabled:!0,level:1}):s}},5332:(e,t,r)=>{"use strict";e=r.nmd(e);const i=r(5536),wrapAnsi16=(e,t)=>function(){return`[${e.apply(i,arguments)+t}m`},wrapAnsi256=(e,t)=>function(){const r=e.apply(i,arguments);return`[${38+t};5;${r}m`},wrapAnsi16m=(e,t)=>function(){const r=e.apply(i,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(const r of Object.keys(t)){const i=t[r];for(const r of Object.keys(i)){const n=i[r];t[r]={open:`[${n[0]}m`,close:`[${n[1]}m`},i[r]=t[r],e.set(n[0],n[1])}Object.defineProperty(t,r,{value:i,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}const ansi2ansi=e=>e,rgb2rgb=(e,t,r)=>[e,t,r];t.color.close="",t.bgColor.close="",t.color.ansi={ansi:wrapAnsi16(ansi2ansi,0)},t.color.ansi256={ansi256:wrapAnsi256(ansi2ansi,0)},t.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)},t.bgColor.ansi={ansi:wrapAnsi16(ansi2ansi,10)},t.bgColor.ansi256={ansi256:wrapAnsi256(ansi2ansi,10)},t.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,10)};for(let e of Object.keys(i)){if("object"!=typeof i[e])continue;const r=i[e];"ansi16"===e&&(e="ansi"),"ansi16"in r&&(t.color.ansi[e]=wrapAnsi16(r.ansi16,0),t.bgColor.ansi[e]=wrapAnsi16(r.ansi16,10)),"ansi256"in r&&(t.color.ansi256[e]=wrapAnsi256(r.ansi256,0),t.bgColor.ansi256[e]=wrapAnsi256(r.ansi256,10)),"rgb"in r&&(t.color.ansi16m[e]=wrapAnsi16m(r.rgb,0),t.bgColor.ansi16m[e]=wrapAnsi16m(r.rgb,10))}return t}})},1859:(e,t,r)=>{"use strict";var i=r(397);const n=r(1014),s=r(5332),a=r(7440).stdout,o=r(6805),l="win32"===i.platform&&!(i.env.TERM||"").toLowerCase().startsWith("xterm"),c=["ansi","ansi","ansi256","ansi16m"],u=new Set(["gray"]),p=Object.create(null);function applyOptions(e,t){t=t||{};const r=a?a.level:0;e.level=void 0===t.level?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function Chalk(e){if(!this||!(this instanceof Chalk)||this.template){const t={};return applyOptions(t,e),t.template=function(){const e=[].slice.call(arguments);return chalkTag.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,Chalk.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=Chalk,t.template}applyOptions(this,e)}l&&(s.blue.open="");for(const e of Object.keys(s))s[e].closeRe=new RegExp(n(s[e].close),"g"),p[e]={get(){const t=s[e];return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};p.visible={get(){return build.call(this,this._styles||[],!0,"visible")}},s.color.closeRe=new RegExp(n(s.color.close),"g");for(const e of Object.keys(s.color.ansi))u.has(e)||(p[e]={get(){const t=this.level;return function(){const r={open:s.color[c[t]][e].apply(null,arguments),close:s.color.close,closeRe:s.color.closeRe};return build.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}});s.bgColor.closeRe=new RegExp(n(s.bgColor.close),"g");for(const e of Object.keys(s.bgColor.ansi)){if(u.has(e))continue;p["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const r={open:s.bgColor[c[t]][e].apply(null,arguments),close:s.bgColor.close,closeRe:s.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}}}const d=Object.defineProperties((()=>{}),p);function build(e,t,r){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=e,builder._empty=t;const i=this;return Object.defineProperty(builder,"level",{enumerable:!0,get:()=>i.level,set(e){i.level=e}}),Object.defineProperty(builder,"enabled",{enumerable:!0,get:()=>i.enabled,set(e){i.enabled=e}}),builder.hasGrey=this.hasGrey||"gray"===r||"grey"===r,builder.__proto__=d,builder}function applyStyle(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let i=1;i<t;i++)r+=" "+e[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const i=s.dim.open;l&&this.hasGrey&&(s.dim.open="");for(const e of this._styles.slice().reverse())r=e.open+r.replace(e.closeRe,e.open)+e.close,r=r.replace(/\\r?\\n/g,`${e.close}$&${e.open}`);return s.dim.open=i,r}function chalkTag(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const r=[].slice.call(arguments,2),i=[t.raw[0]];for(let e=1;e<t.length;e++)i.push(String(r[e-1]).replace(/[{}\\\\]/g,"\\\\$&")),i.push(String(t.raw[e]));return o(e,i.join(""))}Object.defineProperties(Chalk.prototype,p),e.exports=Chalk(),e.exports.supportsColor=a,e.exports.default=e.exports},6805:e=>{"use strict";const t=/(?:\\\\(u[a-f\\d]{4}|x[a-f\\d]{2}|.))|(?:\\{(~)?(\\w+(?:\\([^)]*\\))?(?:\\.\\w+(?:\\([^)]*\\))?)*)(?:[ \\t]|(?=\\r?\\n)))|(\\})|((?:.|[\\r\\n\\f])+?)/gi,r=/(?:^|\\.)(\\w+)(?:\\(([^)]*)\\))?/g,i=/^([\'"])((?:\\\\.|(?!\\1)[^\\\\])*)\\1$/,n=/\\\\(u[a-f\\d]{4}|x[a-f\\d]{2}|.)|([^\\\\])/gi,s=new Map([["n","\\n"],["r","\\r"],["t","\\t"],["b","\\b"],["f","\\f"],["v","\\v"],["0","\\0"],["\\\\","\\\\"],["e",""],["a",""]]);function unescape(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):s.get(e)||e}function parseArguments(e,t){const r=[],s=t.trim().split(/\\s*,\\s*/g);let a;for(const t of s)if(isNaN(t)){if(!(a=t.match(i)))throw new Error(`Invalid Chalk template style argument: ${t} (in style \'${e}\')`);r.push(a[2].replace(n,((e,t,r)=>t?unescape(t):r)))}else r.push(Number(t));return r}function parseStyle(e){r.lastIndex=0;const t=[];let i;for(;null!==(i=r.exec(e));){const e=i[1];if(i[2]){const r=parseArguments(e,i[2]);t.push([e].concat(r))}else t.push([e])}return t}function buildStyle(e,t){const r={};for(const e of t)for(const t of e.styles)r[t[0]]=e.inverse?null:t.slice(1);let i=e;for(const e of Object.keys(r))if(Array.isArray(r[e])){if(!(e in i))throw new Error(`Unknown Chalk style: ${e}`);i=r[e].length>0?i[e].apply(i,r[e]):i[e]}return i}e.exports=(e,r)=>{const i=[],n=[];let s=[];if(r.replace(t,((t,r,a,o,l,c)=>{if(r)s.push(unescape(r));else if(o){const t=s.join("");s=[],n.push(0===i.length?t:buildStyle(e,i)(t)),i.push({inverse:a,styles:parseStyle(o)})}else if(l){if(0===i.length)throw new Error("Found extraneous } in Chalk template literal");n.push(buildStyle(e,i)(s.join(""))),s=[],i.pop()}else s.push(c)})),n.push(s.join("")),i.length>0){const e=`Chalk template literal is missing ${i.length} closing bracket${1===i.length?"":"s"} (\\`}\\`)`;throw new Error(e)}return n.join("")}},8325:(e,t,r)=>{var i=r(4730),n={};for(var s in i)i.hasOwnProperty(s)&&(n[i[s]]=s);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in a)if(a.hasOwnProperty(o)){if(!("channels"in a[o]))throw new Error("missing channels property: "+o);if(!("labels"in a[o]))throw new Error("missing channel labels property: "+o);if(a[o].labels.length!==a[o].channels)throw new Error("channel and label counts mismatch: "+o);var l=a[o].channels,c=a[o].labels;delete a[o].channels,delete a[o].labels,Object.defineProperty(a[o],"channels",{value:l}),Object.defineProperty(a[o],"labels",{value:c})}a.rgb.hsl=function(e){var t,r,i=e[0]/255,n=e[1]/255,s=e[2]/255,a=Math.min(i,n,s),o=Math.max(i,n,s),l=o-a;return o===a?t=0:i===o?t=(n-s)/l:n===o?t=2+(s-i)/l:s===o&&(t=4+(i-n)/l),(t=Math.min(60*t,360))<0&&(t+=360),r=(a+o)/2,[t,100*(o===a?0:r<=.5?l/(o+a):l/(2-o-a)),100*r]},a.rgb.hsv=function(e){var t,r,i,n,s,a=e[0]/255,o=e[1]/255,l=e[2]/255,c=Math.max(a,o,l),u=c-Math.min(a,o,l),diffc=function(e){return(c-e)/6/u+.5};return 0===u?n=s=0:(s=u/c,t=diffc(a),r=diffc(o),i=diffc(l),a===c?n=i-r:o===c?n=1/3+t-i:l===c&&(n=2/3+r-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*s,100*c]},a.rgb.hwb=function(e){var t=e[0],r=e[1],i=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(r,i))),100*(i=1-1/255*Math.max(t,Math.max(r,i)))]},a.rgb.cmyk=function(e){var t,r=e[0]/255,i=e[1]/255,n=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-i,1-n)))/(1-t)||0),100*((1-i-t)/(1-t)||0),100*((1-n-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=n[e];if(t)return t;var r,s,a,o=1/0;for(var l in i)if(i.hasOwnProperty(l)){var c=i[l],u=(s=e,a=c,Math.pow(s[0]-a[0],2)+Math.pow(s[1]-a[1],2)+Math.pow(s[2]-a[2],2));u<o&&(o=u,r=l)}return r},a.keyword.rgb=function(e){return i[e]},a.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*t+.7152*r+.0722*i),100*(.0193*t+.1192*r+.9505*i)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),r=t[0],i=t[1],n=t[2];return i/=100,n/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(r-i),200*(i-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},a.hsl.rgb=function(e){var t,r,i,n,s,a=e[0]/360,o=e[1]/100,l=e[2]/100;if(0===o)return[s=255*l,s,s];t=2*l-(r=l<.5?l*(1+o):l+o-l*o),n=[0,0,0];for(var c=0;c<3;c++)(i=a+1/3*-(c-1))<0&&i++,i>1&&i--,s=6*i<1?t+6*(r-t)*i:2*i<1?r:3*i<2?t+(r-t)*(2/3-i)*6:t,n[c]=255*s;return n},a.hsl.hsv=function(e){var t=e[0],r=e[1]/100,i=e[2]/100,n=r,s=Math.max(i,.01);return r*=(i*=2)<=1?i:2-i,n*=s<=1?s:2-s,[t,100*(0===i?2*n/(s+n):2*r/(i+r)),100*((i+r)/2)]},a.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,i=e[2]/100,n=Math.floor(t)%6,s=t-Math.floor(t),a=255*i*(1-r),o=255*i*(1-r*s),l=255*i*(1-r*(1-s));switch(i*=255,n){case 0:return[i,l,a];case 1:return[o,i,a];case 2:return[a,i,l];case 3:return[a,o,i];case 4:return[l,a,i];case 5:return[i,a,o]}},a.hsv.hsl=function(e){var t,r,i,n=e[0],s=e[1]/100,a=e[2]/100,o=Math.max(a,.01);return i=(2-s)*a,r=s*o,[n,100*(r=(r/=(t=(2-s)*o)<=1?t:2-t)||0),100*(i/=2)]},a.hwb.rgb=function(e){var t,r,i,n,s,a,o,l=e[0]/360,c=e[1]/100,u=e[2]/100,p=c+u;switch(p>1&&(c/=p,u/=p),i=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(i=1-i),n=c+i*((r=1-u)-c),t){default:case 6:case 0:s=r,a=n,o=c;break;case 1:s=n,a=r,o=c;break;case 2:s=c,a=r,o=n;break;case 3:s=c,a=n,o=r;break;case 4:s=n,a=c,o=r;break;case 5:s=r,a=c,o=n}return[255*s,255*a,255*o]},a.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,i=e[2]/100,n=e[3]/100;return[255*(1-Math.min(1,t*(1-n)+n)),255*(1-Math.min(1,r*(1-n)+n)),255*(1-Math.min(1,i*(1-n)+n))]},a.xyz.rgb=function(e){var t,r,i,n=e[0]/100,s=e[1]/100,a=e[2]/100;return r=-.9689*n+1.8758*s+.0415*a,i=.0557*n+-.204*s+1.057*a,t=(t=3.2406*n+-1.5372*s+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(i=Math.min(Math.max(0,i),1))]},a.xyz.lab=function(e){var t=e[0],r=e[1],i=e[2];return r/=100,i/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.lab.xyz=function(e){var t,r,i,n=e[0];t=e[1]/500+(r=(n+16)/116),i=r-e[2]/200;var s=Math.pow(r,3),a=Math.pow(t,3),o=Math.pow(i,3);return r=s>.008856?s:(r-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,i=o>.008856?o:(i-16/116)/7.787,[t*=95.047,r*=100,i*=108.883]},a.lab.lch=function(e){var t,r=e[0],i=e[1],n=e[2];return(t=360*Math.atan2(n,i)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(i*i+n*n),t]},a.lch.lab=function(e){var t,r=e[0],i=e[1];return t=e[2]/360*2*Math.PI,[r,i*Math.cos(t),i*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],r=e[1],i=e[2],n=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(n=Math.round(n/50)))return 30;var s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===n&&(s+=60),s},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],r=e[1],i=e[2];return t===r&&r===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var i=parseInt(r,16);return[i>>16&255,i>>8&255,255&i]},a.rgb.hcg=function(e){var t,r=e[0]/255,i=e[1]/255,n=e[2]/255,s=Math.max(Math.max(r,i),n),a=Math.min(Math.min(r,i),n),o=s-a;return t=o<=0?0:s===r?(i-n)/o%6:s===i?2+(n-r)/o:4+(r-i)/o+4,t/=6,[360*(t%=1),100*o,100*(o<1?a/(1-o):0)]},a.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,i=1,n=0;return(i=r<.5?2*t*r:2*t*(1-r))<1&&(n=(r-.5*i)/(1-i)),[e[0],100*i,100*n]},a.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,i=t*r,n=0;return i<1&&(n=(r-i)/(1-i)),[e[0],100*i,100*n]},a.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,i=e[2]/100;if(0===r)return[255*i,255*i,255*i];var n,s=[0,0,0],a=t%1*6,o=a%1,l=1-o;switch(Math.floor(a)){case 0:s[0]=1,s[1]=o,s[2]=0;break;case 1:s[0]=l,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=o;break;case 3:s[0]=0,s[1]=l,s[2]=1;break;case 4:s[0]=o,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=l}return n=(1-r)*i,[255*(r*s[0]+n),255*(r*s[1]+n),255*(r*s[2]+n)]},a.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),i=0;return r>0&&(i=t/r),[e[0],100*i,100*r]},a.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,i=0;return r>0&&r<.5?i=t/(2*r):r>=.5&&r<1&&(i=t/(2*(1-r))),[e[0],100*i,100*r]},a.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},a.hwb.hcg=function(e){var t=e[1]/100,r=1-e[2]/100,i=r-t,n=0;return i<1&&(n=(r-i)/(1-i)),[e[0],100*i,100*n]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},5536:(e,t,r)=>{var i=r(8325),n=r(6094),s={};Object.keys(i).forEach((function(e){s[e]={},Object.defineProperty(s[e],"channels",{value:i[e].channels}),Object.defineProperty(s[e],"labels",{value:i[e].labels});var t=n(e);Object.keys(t).forEach((function(r){var i=t[r];s[e][r]=function(e){var wrappedFn=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var i=r.length,n=0;n<i;n++)r[n]=Math.round(r[n]);return r};return"conversion"in e&&(wrappedFn.conversion=e.conversion),wrappedFn}(i),s[e][r].raw=function(e){var wrappedFn=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(wrappedFn.conversion=e.conversion),wrappedFn}(i)}))})),e.exports=s},6094:(e,t,r)=>{var i=r(8325);function deriveBFS(e){var t=function(){for(var e={},t=Object.keys(i),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),s=Object.keys(i[n]),a=s.length,o=0;o<a;o++){var l=s[o],c=t[l];-1===c.distance&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(l))}return t}function link(e,t){return function(r){return t(e(r))}}function wrapConversion(e,t){for(var r=[t[e].parent,e],n=i[t[e].parent][e],s=t[e].parent;t[s].parent;)r.unshift(t[s].parent),n=link(i[t[s].parent][s],n),s=t[s].parent;return n.conversion=r,n}e.exports=function(e){for(var t=deriveBFS(e),r={},i=Object.keys(t),n=i.length,s=0;s<n;s++){var a=i[s];null!==t[a].parent&&(r[a]=wrapConversion(a,t))}return r}},4730:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},7440:e=>{"use strict";e.exports={stdout:!1,stderr:!1}},4494:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=!0,i=!0,n=!0,s=!0;class a{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.updateContext=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}}const o=new Map;function createKeyword(e,t={}){t.keyword=e;const r=new a(e,t);return o.set(e,r),r}function createBinop(e,t){return new a(e,{beforeExpr:r,binop:t})}const l={num:new a("num",{startsExpr:i}),bigint:new a("bigint",{startsExpr:i}),decimal:new a("decimal",{startsExpr:i}),regexp:new a("regexp",{startsExpr:i}),string:new a("string",{startsExpr:i}),name:new a("name",{startsExpr:i}),privateName:new a("#name",{startsExpr:i}),eof:new a("eof"),bracketL:new a("[",{beforeExpr:r,startsExpr:i}),bracketHashL:new a("#[",{beforeExpr:r,startsExpr:i}),bracketBarL:new a("[|",{beforeExpr:r,startsExpr:i}),bracketR:new a("]"),bracketBarR:new a("|]"),braceL:new a("{",{beforeExpr:r,startsExpr:i}),braceBarL:new a("{|",{beforeExpr:r,startsExpr:i}),braceHashL:new a("#{",{beforeExpr:r,startsExpr:i}),braceR:new a("}"),braceBarR:new a("|}"),parenL:new a("(",{beforeExpr:r,startsExpr:i}),parenR:new a(")"),comma:new a(",",{beforeExpr:r}),semi:new a(";",{beforeExpr:r}),colon:new a(":",{beforeExpr:r}),doubleColon:new a("::",{beforeExpr:r}),dot:new a("."),question:new a("?",{beforeExpr:r}),questionDot:new a("?."),arrow:new a("=>",{beforeExpr:r}),template:new a("template"),ellipsis:new a("...",{beforeExpr:r}),backQuote:new a("`",{startsExpr:i}),dollarBraceL:new a("${",{beforeExpr:r,startsExpr:i}),at:new a("@"),hash:new a("#",{startsExpr:i}),interpreterDirective:new a("#!..."),eq:new a("=",{beforeExpr:r,isAssign:true}),assign:new a("_=",{beforeExpr:r,isAssign:true}),incDec:new a("++/--",{prefix:s,postfix:!0,startsExpr:i}),bang:new a("!",{beforeExpr:r,prefix:s,startsExpr:i}),tilde:new a("~",{beforeExpr:r,prefix:s,startsExpr:i}),pipeline:createBinop("|>",0),nullishCoalescing:createBinop("??",1),logicalOR:createBinop("||",1),logicalAND:createBinop("&&",2),bitwiseOR:createBinop("|",3),bitwiseXOR:createBinop("^",4),bitwiseAND:createBinop("&",5),equality:createBinop("==/!=/===/!==",6),relational:createBinop("</>/<=/>=",7),bitShift:createBinop("<</>>/>>>",8),plusMin:new a("+/-",{beforeExpr:r,binop:9,prefix:s,startsExpr:i}),modulo:new a("%",{beforeExpr:r,binop:10,startsExpr:i}),star:new a("*",{binop:10}),slash:createBinop("/",10),exponent:new a("**",{beforeExpr:r,binop:11,rightAssociative:!0}),_break:createKeyword("break"),_case:createKeyword("case",{beforeExpr:r}),_catch:createKeyword("catch"),_continue:createKeyword("continue"),_debugger:createKeyword("debugger"),_default:createKeyword("default",{beforeExpr:r}),_do:createKeyword("do",{isLoop:n,beforeExpr:r}),_else:createKeyword("else",{beforeExpr:r}),_finally:createKeyword("finally"),_for:createKeyword("for",{isLoop:n}),_function:createKeyword("function",{startsExpr:i}),_if:createKeyword("if"),_return:createKeyword("return",{beforeExpr:r}),_switch:createKeyword("switch"),_throw:createKeyword("throw",{beforeExpr:r,prefix:s,startsExpr:i}),_try:createKeyword("try"),_var:createKeyword("var"),_const:createKeyword("const"),_while:createKeyword("while",{isLoop:n}),_with:createKeyword("with"),_new:createKeyword("new",{beforeExpr:r,startsExpr:i}),_this:createKeyword("this",{startsExpr:i}),_super:createKeyword("super",{startsExpr:i}),_class:createKeyword("class",{startsExpr:i}),_extends:createKeyword("extends",{beforeExpr:r}),_export:createKeyword("export"),_import:createKeyword("import",{startsExpr:i}),_null:createKeyword("null",{startsExpr:i}),_true:createKeyword("true",{startsExpr:i}),_false:createKeyword("false",{startsExpr:i}),_in:createKeyword("in",{beforeExpr:r,binop:7}),_instanceof:createKeyword("instanceof",{beforeExpr:r,binop:7}),_typeof:createKeyword("typeof",{beforeExpr:r,prefix:s,startsExpr:i}),_void:createKeyword("void",{beforeExpr:r,prefix:s,startsExpr:i}),_delete:createKeyword("delete",{beforeExpr:r,prefix:s,startsExpr:i})},c=/\\r\\n?|[\\n\\u2028\\u2029]/,u=new RegExp(c.source,"g");function isNewLine(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}const p=/(?:\\s|\\/\\/.*|\\/\\*[^]*?\\*\\/)*/g;function isWhitespace(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}}class d{constructor(e,t){this.line=void 0,this.column=void 0,this.line=e,this.column=t}}class h{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}}class f{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){return this.plugins.has(e)}getPluginOption(e,t){if(this.hasPlugin(e))return this.plugins.get(e)[t]}}function last(e){return e[e.length-1]}class m extends f{addComment(e){this.filename&&(e.loc.filename=this.filename),this.state.trailingComments.push(e),this.state.leadingComments.push(e)}adjustCommentsAfterTrailingComma(e,t,r){if(0===this.state.leadingComments.length)return;let i=null,n=t.length;for(;null===i&&n>0;)i=t[--n];if(null===i)return;for(let e=0;e<this.state.leadingComments.length;e++)this.state.leadingComments[e].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(e,1),e--);const s=[];for(let t=0;t<this.state.leadingComments.length;t++){const i=this.state.leadingComments[t];i.end<e.end?(s.push(i),r||(this.state.leadingComments.splice(t,1),t--)):(void 0===e.trailingComments&&(e.trailingComments=[]),e.trailingComments.push(i))}r&&(this.state.leadingComments=[]),s.length>0?i.trailingComments=s:void 0!==i.trailingComments&&(i.trailingComments=[])}processComment(e){if("Program"===e.type&&e.body.length>0)return;const t=this.state.commentStack;let r,i,n,s,a;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=e.end?(n=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else if(t.length>0){const r=last(t);r.trailingComments&&r.trailingComments[0].start>=e.end&&(n=r.trailingComments,delete r.trailingComments)}for(t.length>0&&last(t).start>=e.start&&(r=t.pop());t.length>0&&last(t).start>=e.start;)i=t.pop();if(!i&&r&&(i=r),r)switch(e.type){case"ObjectExpression":this.adjustCommentsAfterTrailingComma(e,e.properties);break;case"ObjectPattern":this.adjustCommentsAfterTrailingComma(e,e.properties,!0);break;case"CallExpression":this.adjustCommentsAfterTrailingComma(e,e.arguments);break;case"ArrayExpression":this.adjustCommentsAfterTrailingComma(e,e.elements);break;case"ArrayPattern":this.adjustCommentsAfterTrailingComma(e,e.elements,!0)}else this.state.commentPreviousNode&&("ImportSpecifier"===this.state.commentPreviousNode.type&&"ImportSpecifier"!==e.type||"ExportSpecifier"===this.state.commentPreviousNode.type&&"ExportSpecifier"!==e.type)&&this.adjustCommentsAfterTrailingComma(e,[this.state.commentPreviousNode]);if(i){if(i.leadingComments)if(i!==e&&i.leadingComments.length>0&&last(i.leadingComments).end<=e.start)e.leadingComments=i.leadingComments,delete i.leadingComments;else for(s=i.leadingComments.length-2;s>=0;--s)if(i.leadingComments[s].end<=e.start){e.leadingComments=i.leadingComments.splice(0,s+1);break}}else if(this.state.leadingComments.length>0)if(last(this.state.leadingComments).end<=e.start){if(this.state.commentPreviousNode)for(a=0;a<this.state.leadingComments.length;a++)this.state.leadingComments[a].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(a,1),a--);this.state.leadingComments.length>0&&(e.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(s=0;s<this.state.leadingComments.length&&!(this.state.leadingComments[s].end>e.start);s++);const t=this.state.leadingComments.slice(0,s);t.length&&(e.leadingComments=t),n=this.state.leadingComments.slice(s),0===n.length&&(n=null)}if(this.state.commentPreviousNode=e,n)if(n.length&&n[0].start>=e.start&&last(n).end<=e.end)e.innerComments=n;else{const t=n.findIndex((t=>t.end>=e.end));t>0?(e.innerComments=n.slice(0,t),e.trailingComments=n.slice(t)):e.trailingComments=n}t.push(e)}}const y=Object.freeze({SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"}),T=makeErrorTemplates({AccessorIsGenerator:"A %0ter 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.",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\' accesor must not have any formal parameters.",BadSetterArity:"A \'set\' accesor must have exactly one formal parameter.",BadSetterRestParameter:"A \'set\' accesor 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:"\'%0\' require an initialization value.",DecoratorBeforeExport:"Decorators must be placed *before* the \'export\' keyword. You can set the \'decoratorsBeforeExport\' option to false to use the \'export @decorator class {}\' syntax.",DecoratorConstructor:"Decorators can\'t be used with a constructor. Did you mean \'@dec class { ... }\'?",DecoratorExportClass:"Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can\'t be used with a static block.",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:"`%0` has already been exported. Exported identifiers must be unique.",DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:"A string literal cannot be used as an exported binding without `from`.\\n- Did you mean `export { \'%0\' as \'%1\' } from \'some-module\'`?",ExportDefaultFromAsIdentifier:"\'from\' is not allowed as an identifier after \'export default\'.",ForInOfLoopInitializer:"\'%0\' loop variable declaration may not have an initializer.",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:"Unsyntactic %0.",IllegalLanguageModeDirective:"Illegal \'use strict\' directive in function with non-simple parameter list.",IllegalReturn:"\'return\' outside of function.",ImportBindingIsString:\'A string literal cannot be used as an imported binding.\\n- Did you mean `import { "%0" as foo }`?\',ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:"`import()` requires exactly %0.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidDecimal:"Invalid decimal.",InvalidDigit:"Expected number in radix %0.",InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:"Escape sequence in keyword %0.",InvalidIdentifier:"Invalid identifier %0.",InvalidLhs:"Invalid left-hand side in %0.",InvalidLhsBinding:"Binding invalid left-hand side in %0.",InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the \'e\'.",InvalidOrUnexpectedToken:"Unexpected character \'%0\'.",InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:"Private name #%0 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:"Label \'%0\' is already declared.",LetInLexicalBinding:"\'let\' is not allowed to be used as a name in \'let\' or \'const\' declarations.",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.",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:\'Duplicate key "%0" is not allowed in module attributes.\',ModuleExportNameHasLoneSurrogate:"An export name cannot include a lone surrogate, found \'\\\\u%0\'.",ModuleExportUndefined:"Export \'%0\' 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.",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:"Primary Topic Reference found but pipelineOperator not passed \'smart\' for \'proposal\' option.",PrivateInExpectedIn:"Private names are only allowed in property accesses (`obj.#%0`) or in `in` expressions (`#%0 in obj`).",PrivateNameRedeclaration:"Duplicate private name #%0.",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, inside a block, or as the body of an if statement.",StaticPrototype:"Classes may not have static property named prototype.",StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:"Assigning to \'%0\' in strict mode.",StrictEvalArgumentsBinding:"Binding \'%0\' 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.",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:"Unexpected keyword \'%0\'.",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:"Private names can only be used as the name of a class element (i.e. class C { #p = 42; #m() {} } )\\n or a property of member expression (i.e. this.#p).",UnexpectedReservedWord:"Unexpected reserved word \'%0\'.",UnexpectedSuper:"\'super\' is only allowed in object methods and classes.",UnexpectedToken:"Unexpected token \'%0\'.",UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",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:"The only valid meta property for %0 is %0.%1.",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.",VarRedeclaration:"Identifier \'%0\' 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."},y.SyntaxError),g=makeErrorTemplates({ImportMetaOutsideModule:"import.meta may appear only with \'sourceType: \\"module\\"\'",ImportOutsideModule:"\'import\' and \'export\' may appear only with \'sourceType: \\"module\\"\'"},y.SourceTypeModuleError);function makeErrorTemplates(e,t){const r={};return Object.keys(e).forEach((i=>{r[i]=Object.freeze({code:t,reasonCode:i,template:e[i]})})),Object.freeze(r)}class b extends m{getLocationForPosition(e){let t;return t=e===this.state.start?this.state.startLoc:e===this.state.lastTokStart?this.state.lastTokStartLoc:e===this.state.end?this.state.endLoc:e===this.state.lastTokEnd?this.state.lastTokEndLoc:function(e,t){let r,i=1,n=0;for(u.lastIndex=0;(r=u.exec(e))&&r.index<t;)i++,n=u.lastIndex;return new d(i,t-n)}(this.input,e),t}raise(e,{code:t,reasonCode:r,template:i},...n){return this.raiseWithData(e,{code:t,reasonCode:r},i,...n)}raiseOverwrite(e,{code:t,template:r},...i){const n=this.getLocationForPosition(e),s=r.replace(/%(\\d+)/g,((e,t)=>i[t]))+` (${n.line}:${n.column})`;if(this.options.errorRecovery){const t=this.state.errors;for(let r=t.length-1;r>=0;r--){const i=t[r];if(i.pos===e)return Object.assign(i,{message:s});if(i.pos<e)break}}return this._raise({code:t,loc:n,pos:e},s)}raiseWithData(e,t,r,...i){const n=this.getLocationForPosition(e),s=r.replace(/%(\\d+)/g,((e,t)=>i[t]))+` (${n.line}:${n.column})`;return this._raise(Object.assign({loc:n,pos:e},t),s)}_raise(e,t){const r=new SyntaxError(t);if(Object.assign(r,e),this.options.errorRecovery)return this.isLookahead||this.state.errors.push(r),r;throw r}}class S{constructor(e,t,r,i){this.token=void 0,this.isExpr=void 0,this.preserveSpace=void 0,this.override=void 0,this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=i}}const x={braceStatement:new S("{",!1),braceExpression:new S("{",!0),recordExpression:new S("#{",!0),templateQuasi:new S("${",!1),parenStatement:new S("(",!1),parenExpression:new S("(",!0),template:new S("`",!0,!0,(e=>e.readTmplToken())),functionExpression:new S("function",!0),functionStatement:new S("function",!1)};l.parenR.updateContext=l.braceR.updateContext=function(){if(1===this.state.context.length)return void(this.state.exprAllowed=!0);let e=this.state.context.pop();e===x.braceStatement&&"function"===this.curContext().token&&(e=this.state.context.pop()),this.state.exprAllowed=!e.isExpr},l.name.updateContext=function(e){let t=!1;e!==l.dot&&("of"!==this.state.value||this.state.exprAllowed||e===l._function||e===l._class||(t=!0)),this.state.exprAllowed=t},l.braceL.updateContext=function(e){this.state.context.push(this.braceIsBlock(e)?x.braceStatement:x.braceExpression),this.state.exprAllowed=!0},l.dollarBraceL.updateContext=function(){this.state.context.push(x.templateQuasi),this.state.exprAllowed=!0},l.parenL.updateContext=function(e){const t=e===l._if||e===l._for||e===l._with||e===l._while;this.state.context.push(t?x.parenStatement:x.parenExpression),this.state.exprAllowed=!0},l.incDec.updateContext=function(){},l._function.updateContext=l._class.updateContext=function(e){!e.beforeExpr||e===l.semi||e===l._else||e===l._return&&this.hasPrecedingLineBreak()||(e===l.colon||e===l.braceL)&&this.curContext()===x.b_stat?this.state.context.push(x.functionStatement):this.state.context.push(x.functionExpression),this.state.exprAllowed=!1},l.backQuote.updateContext=function(){this.curContext()===x.template?this.state.context.pop():this.state.context.push(x.template),this.state.exprAllowed=!1},l.braceHashL.updateContext=function(){this.state.context.push(x.recordExpression),this.state.exprAllowed=!0};let P="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA--zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",v="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍--_";const A=new RegExp("["+P+"]"),w=new RegExp("["+P+v+"]");P=v=null;const I=[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,157,310,10,21,11,7,153,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,107,20,28,22,13,52,76,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,85,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,230,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,35,56,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,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,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,8952,286,50,2,18,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,2357,44,11,6,17,0,370,43,1301,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,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],C=[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,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,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,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,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,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let i=0,n=t.length;i<n;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function isIdentifierStart(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&A.test(String.fromCharCode(e)):isInAstralSet(e,I)))}function isIdentifierChar(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&w.test(String.fromCharCode(e)):isInAstralSet(e,I)||isInAstralSet(e,C))))}const O=["implements","interface","let","package","private","protected","public","static","yield"],N=["eval","arguments"],_=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"]),k=new Set(O),D=new Set(N);function isReservedWord(e,t){return t&&"await"===e||"enum"===e}function isStrictReservedWord(e,t){return isReservedWord(e,t)||k.has(e)}function isStrictBindOnlyReservedWord(e){return D.has(e)}function isStrictBindReservedWord(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return _.has(e)}const L=/^in(stanceof)?$/;const M=256,B=128,j=1024,R=2048;class F{constructor(e){this.flags=void 0,this.var=[],this.lexical=[],this.functions=[],this.flags=e}}class U{constructor(e,t){this.scopeStack=[],this.undefinedExports=new Map,this.undefinedPrivateNames=new Map,this.raise=e,this.inModule=t}get inFunction(){return(2&this.currentVarScope().flags)>0}get allowSuper(){return(16&this.currentThisScope().flags)>0}get allowDirectSuper(){return(32&this.currentThisScope().flags)>0}get inClass(){return(64&this.currentThisScope().flags)>0}get inStaticBlock(){return(128&this.currentThisScope().flags)>0}get inNonArrowFunction(){return(2&this.currentThisScope().flags)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new F(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){this.scopeStack.pop()}treatFunctionsAsVarInScope(e){return!!(2&e.flags||!this.inModule&&1&e.flags)}declareName(e,t,r){let i=this.currentScope();if(8&t||16&t)this.checkRedeclarationInScope(i,e,t,r),16&t?i.functions.push(e):i.lexical.push(e),8&t&&this.maybeExportDefined(i,e);else if(4&t)for(let n=this.scopeStack.length-1;n>=0&&(i=this.scopeStack[n],this.checkRedeclarationInScope(i,e,t,r),i.var.push(e),this.maybeExportDefined(i,e),!(259&i.flags));--n);this.inModule&&1&i.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,i){this.isRedeclaredInScope(e,t,r)&&this.raise(i,T.VarRedeclaration,t)}isRedeclaredInScope(e,t,r){return!!(1&r)&&(8&r?e.lexical.indexOf(t)>-1||e.functions.indexOf(t)>-1||e.var.indexOf(t)>-1:16&r?e.lexical.indexOf(t)>-1||!this.treatFunctionsAsVarInScope(e)&&e.var.indexOf(t)>-1:e.lexical.indexOf(t)>-1&&!(8&e.flags&&e.lexical[0]===t)||!this.treatFunctionsAsVarInScope(e)&&e.functions.indexOf(t)>-1)}checkLocalExport(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&-1===this.scopeStack[0].functions.indexOf(e.name)&&this.undefinedExports.set(e.name,e.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScope(){for(let e=this.scopeStack.length-1;;e--){const t=this.scopeStack[e];if(259&t.flags)return t}}currentThisScope(){for(let e=this.scopeStack.length-1;;e--){const t=this.scopeStack[e];if((259&t.flags||64&t.flags)&&!(4&t.flags))return t}}}class K extends F{constructor(...e){super(...e),this.declareFunctions=[]}}class q extends U{createScope(e){return new K(e)}declareName(e,t,r){const i=this.currentScope();if(t&R)return this.checkRedeclarationInScope(i,e,t,r),this.maybeExportDefined(i,e),void i.declareFunctions.push(e);super.declareName(...arguments)}isRedeclaredInScope(e,t,r){return!!super.isRedeclaredInScope(...arguments)||!!(r&R)&&(!e.declareFunctions.includes(t)&&(e.lexical.includes(t)||e.functions.includes(t)))}checkLocalExport(e){-1===this.scopeStack[0].declareFunctions.indexOf(e.name)&&super.checkLocalExport(e)}}const V=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),W=makeErrorTemplates({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:"Cannot overwrite reserved type %0.",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:"Boolean enum members need to be initialized. Use either `%0 = true,` or `%0 = false,` in enum `%1`.",EnumDuplicateMemberName:"Enum member names need to be unique, but the name `%0` has already been used before in enum `%1`.",EnumInconsistentMemberValues:"Enum `%0` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.",EnumInvalidExplicitType:"Enum type `%1` is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `%0`.",EnumInvalidExplicitTypeUnknownSupplied:"Supplied enum type is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `%0`.",EnumInvalidMemberInitializerPrimaryType:"Enum `%0` has type `%2`, so the initializer of `%1` needs to be a %2 literal.",EnumInvalidMemberInitializerSymbolType:"Symbol enum members cannot be initialized. Use `%1,` in enum `%0`.",EnumInvalidMemberInitializerUnknownType:"The enum member initializer for `%1` needs to be a literal (either a boolean, number, or string) in enum `%0`.",EnumInvalidMemberName:"Enum member names cannot start with lowercase \'a\' through \'z\'. Instead of using `%0`, consider using `%1`, in enum `%2`.",EnumNumberMemberNotInitialized:"Number enum members need to be initialized, e.g. `%1 = 1` in enum `%0`.",EnumStringMemberInconsistentlyInitailized:"String enum members need to consistently either all use initializers, or use no initializers, in enum `%0`.",GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",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.",OptionalBindingPattern:"A binding pattern parameter cannot be optional in an implementation signature.",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:"Unexpected reserved type %0.",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:"`declare export %0` is not supported. Use `%1` instead.",UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."},y.SyntaxError);function hasTypeImportKind(e){return"type"===e.importKind||"typeof"===e.importKind}function isMaybeDefaultImport(e){return(e.type===l.name||!!e.type.keyword)&&"from"!==e.value}const Y={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};const X=/\\*?\\s*@((?:no)?flow)\\b/;const J={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:"♦"},H=/^[\\da-fA-F]+$/,G=/^\\d+$/,$=makeErrorTemplates({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:"Expected corresponding JSX closing tag for <%0>.",MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",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 <>...</>?"},y.SyntaxError);function isFragment(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function getQualifiedJSXName(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return getQualifiedJSXName(e.object)+"."+getQualifiedJSXName(e.property);throw new Error("Node had unexpected type: "+e.type)}x.j_oTag=new S("<tag",!1),x.j_cTag=new S("</tag",!1),x.j_expr=new S("<tag>...</tag>",!0,!0),l.jsxName=new a("jsxName"),l.jsxText=new a("jsxText",{beforeExpr:!0}),l.jsxTagStart=new a("jsxTagStart",{startsExpr:!0}),l.jsxTagEnd=new a("jsxTagEnd"),l.jsxTagStart.updateContext=function(){this.state.context.push(x.j_expr),this.state.context.push(x.j_oTag),this.state.exprAllowed=!1},l.jsxTagEnd.updateContext=function(e){const t=this.state.context.pop();t===x.j_oTag&&e===l.slash||t===x.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===x.j_expr):this.state.exprAllowed=!0};class z extends F{constructor(...e){super(...e),this.types=[],this.enums=[],this.constEnums=[],this.classes=[],this.exportOnlyBindings=[]}}class Q extends U{createScope(e){return new z(e)}declareName(e,t,r){const i=this.currentScope();if(t&j)return this.maybeExportDefined(i,e),void i.exportOnlyBindings.push(e);super.declareName(...arguments),2&t&&(1&t||(this.checkRedeclarationInScope(i,e,t,r),this.maybeExportDefined(i,e)),i.types.push(e)),256&t&&i.enums.push(e),512&t&&i.constEnums.push(e),t&B&&i.classes.push(e)}isRedeclaredInScope(e,t,r){if(e.enums.indexOf(t)>-1){if(256&r){return!!(512&r)!==e.constEnums.indexOf(t)>-1}return!0}return r&B&&e.classes.indexOf(t)>-1?e.lexical.indexOf(t)>-1&&!!(1&r):!!(2&r&&e.types.indexOf(t)>-1)||super.isRedeclaredInScope(...arguments)}checkLocalExport(e){-1===this.scopeStack[0].types.indexOf(e.name)&&-1===this.scopeStack[0].exportOnlyBindings.indexOf(e.name)&&super.checkLocalExport(e)}}class Z{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 functionFlags(e,t){return(e?2:0)|(t?1:0)}function nonNull(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}function assert(e){if(!e)throw new Error("Assert fail")}const ee=makeErrorTemplates({AbstractMethodHasImplementation:"Method \'%0\' cannot have an implementation because it is marked abstract.",AccesorCannotDeclareThisParameter:"\'get\' and \'set\' accessors cannot declare \'this\' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the \'declare\' modifier.",ClassMethodHasReadonly:"Class methods cannot have the \'readonly\' modifier.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:"\'declare\' is not allowed in %0ters.",DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:"Accessibility modifier already seen.",DuplicateModifier:"Duplicate modifier: \'%0\'.",EmptyHeritageClauseType:"\'%0\' 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\'.",IncompatibleModifiers:"\'%0\' modifier cannot be used with \'%1\' modifier.",IndexSignatureHasAbstract:"Index signatures cannot have the \'abstract\' modifier.",IndexSignatureHasAccessibility:"Index signatures cannot have an accessibility modifier (\'%0\').",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.",InvalidModifierOnTypeMember:"\'%0\' modifier cannot appear on a type member.",InvalidModifiersOrder:"\'%0\' modifier must precede \'%1\' modifier.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",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:"Private elements cannot have an accessibility modifier (\'%0\').",ReadonlyForMethodSignature:"\'readonly\' modifier can only appear on a property declaration or index signature.",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.",StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",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.",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:"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got %0."},y.SyntaxError);function tsIsAccessModifier(e){return"private"===e||"public"===e||"protected"===e}l.placeholder=new a("%%",{startsExpr:!0});const te=makeErrorTemplates({ClassNameIsRequired:"A class name is required."},y.SyntaxError);function hasPlugin(e,t){return e.some((e=>Array.isArray(e)?e[0]===t:e===t))}function getPluginOption(e,t,r){const i=e.find((e=>Array.isArray(e)?e[0]===t:e===t));return i&&Array.isArray(i)?i[1][r]:null}const re=["minimal","smart","fsharp"],ie=["hash","bar"];const ne={estree:e=>class extends e{estreeParseRegExpLiteral({pattern:e,flags:t}){let r=null;try{r=new RegExp(e,t)}catch(e){}const i=this.estreeParseLiteral(r);return i.regex={pattern:e,flags:t},i}estreeParseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const r=this.estreeParseLiteral(t);return r.bigint=String(r.value||e),r}estreeParseDecimalLiteral(e){const t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}directiveToStmt(e){const t=e.value,r=this.startNodeAt(e.start,e.loc.start),i=this.startNodeAt(t.start,t.loc.start);return i.value=t.extra.expressionValue,i.raw=t.extra.raw,r.expression=this.finishNodeAt(i,"Literal",t.end,t.loc.end),r.directive=t.extra.raw.slice(1,-1),this.finishNodeAt(r,"ExpressionStatement",e.end,e.loc.end)}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)}stmtToDirective(e){const t=super.stmtToDirective(e),r=e.expression.value;return this.addExtra(t.value,"expressionValue",r),t}parseBlockBody(e,...t){super.parseBlockBody(e,...t);const r=e.directives.map((e=>this.directiveToStmt(e)));e.body=r.concat(e.body),delete e.directives}pushClassMethod(e,t,r,i,n,s){this.parseMethod(t,r,i,n,s,"ClassMethod",!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}parseExprAtom(e){switch(this.state.type){case l.num:case l.string:return this.estreeParseLiteral(this.state.value);case l.regexp:return this.estreeParseRegExpLiteral(this.state.value);case l.bigint:return this.estreeParseBigIntLiteral(this.state.value);case l.decimal:return this.estreeParseDecimalLiteral(this.state.value);case l._null:return this.estreeParseLiteral(null);case l._true:return this.estreeParseLiteral(!0);case l._false:return this.estreeParseLiteral(!1);default:return super.parseExprAtom(e)}}parseMaybePrivateName(...e){const t=super.parseMaybePrivateName(...e);return"PrivateName"===t.type&&this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(t):t}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,r,i){const n=super.parseLiteral(e,t,r,i);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,t,r=!1){super.parseFunctionBody(e,t,r),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,r,i,n,s,a=!1){let o=this.startNode();return o.kind=e.kind,o=super.parseMethod(o,t,r,i,n,s,a),o.type="FunctionExpression",delete o.kind,e.value=o,"ClassPrivateMethod"===s&&(e.computed=!1),s="MethodDefinition",this.finishNode(e,s)}parseClassProperty(...e){const t=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")&&(t.type="PropertyDefinition"),t}parseClassPrivateProperty(...e){const t=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")&&(t.type="PropertyDefinition",t.computed=!1),t}parseObjectMethod(e,t,r,i,n){const s=super.parseObjectMethod(e,t,r,i,n);return s&&(s.type="Property","method"===s.kind&&(s.kind="init"),s.shorthand=!1),s}parseObjectProperty(e,t,r,i,n){const s=super.parseObjectProperty(e,t,r,i,n);return s&&(s.kind="init",s.type="Property"),s}toAssignable(e,t=!1){return null!=e&&this.isObjectProperty(e)?(this.toAssignable(e.value,t),e):super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,...t){"get"===e.kind||"set"===e.kind?this.raise(e.key.start,T.PatternHasAccessor):e.method?this.raise(e.key.start,T.PatternHasMethod):super.toAssignableObjectExpressionProp(e,...t)}finishCallExpression(e,t){if(super.finishCallExpression(e,t),"Import"===e.callee.type){var r;if(e.type="ImportExpression",e.source=e.arguments[0],this.hasPlugin("importAssertions"))e.attributes=null!=(r=e.arguments[1])?r:null;delete e.arguments,delete e.callee}return e}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e){switch(super.parseExport(e),e.type){case"ExportAllDeclaration":e.exported=null;break;case"ExportNamedDeclaration":1===e.specifiers.length&&"ExportNamespaceSpecifier"===e.specifiers[0].type&&(e.type="ExportAllDeclaration",e.exported=e.specifiers[0].exported,delete e.specifiers)}return e}parseSubscript(e,t,r,i,n){const s=super.parseSubscript(e,t,r,i,n);if(n.optionalChainMember){if("OptionalMemberExpression"!==s.type&&"OptionalCallExpression"!==s.type||(s.type=s.type.substring(8)),n.stop){const e=this.startNodeAtNode(s);return e.expression=s,this.finishNode(e,"ChainExpression")}}else"MemberExpression"!==s.type&&"CallExpression"!==s.type||(s.optional=!1);return s}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isOptionalChain(e){return"ChainExpression"===e.type}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return e.method||"get"===e.kind||"set"===e.kind}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,$.UnterminatedJsxContent);const r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:return this.state.pos===this.state.start?60===r&&this.state.exprAllowed?(++this.state.pos,this.finishToken(l.jsxTagStart)):super.getTokenFromCode(r):(e+=this.input.slice(t,this.state.pos),this.finishToken(l.jsxText,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:isNewLine(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(this.state.start,T.UnterminatedString);const i=this.input.charCodeAt(this.state.pos);if(i===e)break;38===i?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):isNewLine(i)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}return t+=this.input.slice(r,this.state.pos++),this.finishToken(l.string,t)}jsxReadEntity(){let e,t="",r=0,i=this.input[this.state.pos];const n=++this.state.pos;for(;this.state.pos<this.length&&r++<10;){if(i=this.input[this.state.pos++],";"===i){"#"===t[0]?"x"===t[1]?(t=t.substr(2),H.test(t)&&(e=String.fromCodePoint(parseInt(t,16)))):(t=t.substr(1),G.test(t)&&(e=String.fromCodePoint(parseInt(t,10)))):e=J[t];break}t+=i}return e||(this.state.pos=n,"&")}jsxReadWord(){let e;const t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(isIdentifierChar(e)||45===e);return this.finishToken(l.jsxName,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();return this.match(l.jsxName)?e.name=this.state.value:this.state.type.keyword?e.name=this.state.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.start,t=this.state.startLoc,r=this.jsxParseIdentifier();if(!this.eat(l.colon))return r;const i=this.startNodeAt(e,t);return i.namespace=r,i.name=this.jsxParseIdentifier(),this.finishNode(i,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.start,t=this.state.startLoc;let r=this.jsxParseNamespacedName();if("JSXNamespacedName"===r.type)return r;for(;this.eat(l.dot);){const i=this.startNodeAt(e,t);i.object=r,i.property=this.jsxParseIdentifier(),r=this.finishNode(i,"JSXMemberExpression")}return r}jsxParseAttributeValue(){let e;switch(this.state.type){case l.braceL:return e=this.startNode(),this.next(),e=this.jsxParseExpressionContainer(e),"JSXEmptyExpression"===e.expression.type&&this.raise(e.start,$.AttributeIsEmpty),e;case l.jsxTagStart:case l.string:return this.parseExprAtom();default:throw this.raise(this.state.start,$.UnsupportedJsxValue)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEnd,this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.start,this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.expect(l.braceR),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e){if(this.match(l.braceR))e.expression=this.jsxParseEmptyExpression();else{const t=this.parseExpression();e.expression=t}return this.expect(l.braceR),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.eat(l.braceL)?(this.expect(l.ellipsis),e.argument=this.parseMaybeAssignAllowIn(),this.expect(l.braceR),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(l.eq)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e,t){const r=this.startNodeAt(e,t);return this.match(l.jsxTagEnd)?(this.expect(l.jsxTagEnd),this.finishNode(r,"JSXOpeningFragment")):(r.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(r))}jsxParseOpeningElementAfterName(e){const t=[];for(;!this.match(l.slash)&&!this.match(l.jsxTagEnd);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(l.slash),this.expect(l.jsxTagEnd),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e,t){const r=this.startNodeAt(e,t);return this.match(l.jsxTagEnd)?(this.expect(l.jsxTagEnd),this.finishNode(r,"JSXClosingFragment")):(r.name=this.jsxParseElementName(),this.expect(l.jsxTagEnd),this.finishNode(r,"JSXClosingElement"))}jsxParseElementAt(e,t){const r=this.startNodeAt(e,t),i=[],n=this.jsxParseOpeningElementAt(e,t);let s=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case l.jsxTagStart:if(e=this.state.start,t=this.state.startLoc,this.next(),this.eat(l.slash)){s=this.jsxParseClosingElementAt(e,t);break e}i.push(this.jsxParseElementAt(e,t));break;case l.jsxText:i.push(this.parseExprAtom());break;case l.braceL:{const e=this.startNode();this.next(),this.match(l.ellipsis)?i.push(this.jsxParseSpreadChild(e)):i.push(this.jsxParseExpressionContainer(e));break}default:throw this.unexpected()}isFragment(n)&&!isFragment(s)?this.raise(s.start,$.MissingClosingTagFragment):!isFragment(n)&&isFragment(s)?this.raise(s.start,$.MissingClosingTagElement,getQualifiedJSXName(n.name)):isFragment(n)||isFragment(s)||getQualifiedJSXName(s.name)!==getQualifiedJSXName(n.name)&&this.raise(s.start,$.MissingClosingTagElement,getQualifiedJSXName(n.name))}if(isFragment(n)?(r.openingFragment=n,r.closingFragment=s):(r.openingElement=n,r.closingElement=s),r.children=i,this.isRelational("<"))throw this.raise(this.state.start,$.UnwrappedAdjacentJSXElements);return isFragment(n)?this.finishNode(r,"JSXFragment"):this.finishNode(r,"JSXElement")}jsxParseElement(){const e=this.state.start,t=this.state.startLoc;return this.next(),this.jsxParseElementAt(e,t)}parseExprAtom(e){return this.match(l.jsxText)?this.parseLiteral(this.state.value,"JSXText"):this.match(l.jsxTagStart)?this.jsxParseElement():this.isRelational("<")&&33!==this.input.charCodeAt(this.state.pos)?(this.finishToken(l.jsxTagStart),this.jsxParseElement()):super.parseExprAtom(e)}getTokenFromCode(e){if(this.state.inPropertyName)return super.getTokenFromCode(e);const t=this.curContext();if(t===x.j_expr)return this.jsxReadToken();if(t===x.j_oTag||t===x.j_cTag){if(isIdentifierStart(e))return this.jsxReadWord();if(62===e)return++this.state.pos,this.finishToken(l.jsxTagEnd);if((34===e||39===e)&&t===x.j_oTag)return this.jsxReadString(e)}return 60===e&&this.state.exprAllowed&&33!==this.input.charCodeAt(this.state.pos+1)?(++this.state.pos,this.finishToken(l.jsxTagStart)):super.getTokenFromCode(e)}updateContext(e){if(this.match(l.braceL)){const t=this.curContext();t===x.j_oTag?this.state.context.push(x.braceExpression):t===x.j_expr?this.state.context.push(x.templateQuasi):super.updateContext(e),this.state.exprAllowed=!0}else{if(!this.match(l.slash)||e!==l.jsxTagStart)return super.updateContext(e);this.state.context.length-=2,this.state.context.push(x.j_cTag),this.state.exprAllowed=!1}}},flow:e=>class extends e{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return q}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,t){return e!==l.string&&e!==l.semi&&e!==l.interpreterDirective&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){const t=X.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;}return super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=!0,this.expect(e||l.colon);const r=this.flowParseType();return this.state.inType=t,r}flowParsePredicate(){const e=this.startNode(),t=this.state.start;return this.next(),this.expectContextual("checks"),this.state.lastTokStart>t+1&&this.raise(t,W.UnexpectedSpaceBetweenModuloChecks),this.eat(l.parenL)?(e.value=this.parseExpression(),this.expect(l.parenR),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(l.colon);let t=null,r=null;return this.match(l.modulo)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(l.modulo)&&(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(),i=this.startNode();this.isRelational("<")?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(l.parenL);const n=this.flowParseFunctionTypeParams();return r.params=n.params,r.rest=n.rest,r.this=n._this,this.expect(l.parenR),[r.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),i.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(i,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){if(this.match(l._class))return this.flowParseDeclareClass(e);if(this.match(l._function))return this.flowParseDeclareFunction(e);if(this.match(l._var))return this.flowParseDeclareVariable(e);if(this.eatContextual("module"))return this.match(l.dot)?this.flowParseDeclareModuleExports(e):(t&&this.raise(this.state.lastTokStart,W.NestedDeclareModule),this.flowParseDeclareModule(e));if(this.isContextual("type"))return this.flowParseDeclareTypeAlias(e);if(this.isContextual("opaque"))return this.flowParseDeclareOpaqueType(e);if(this.isContextual("interface"))return this.flowParseDeclareInterface(e);if(this.match(l._export))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(l.string)?e.id=this.parseExprAtom():e.id=this.parseIdentifier();const t=e.body=this.startNode(),r=t.body=[];for(this.expect(l.braceL);!this.match(l.braceR);){let e=this.startNode();this.match(l._import)?(this.next(),this.isContextual("type")||this.match(l._typeof)||this.raise(this.state.lastTokStart,W.InvalidNonTypeImportInDeclareModule),this.parseImport(e)):(this.expectContextual("declare",W.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),r.push(e)}this.scope.exit(),this.expect(l.braceR),this.finishNode(t,"BlockStatement");let i=null,n=!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&&(n&&this.raise(e.start,W.DuplicateDeclareModuleExports),"ES"===i&&this.raise(e.start,W.AmbiguousDeclareModuleKind),i="CommonJS",n=!0):("CommonJS"===i&&this.raise(e.start,W.AmbiguousDeclareModuleKind),i="ES")})),e.kind=i||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(l._export),this.eat(l._default))return this.match(l._function)||this.match(l._class)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(l._const)||this.isLet()||(this.isContextual("type")||this.isContextual("interface"))&&!t){const e=this.state.value,t=Y[e];throw this.raise(this.state.start,W.UnsupportedDeclareExportKind,e,t)}if(this.match(l._var)||this.match(l._function)||this.match(l._class)||this.isContextual("opaque"))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(l.star)||this.match(l.braceL)||this.isContextual("interface")||this.isContextual("type")||this.isContextual("opaque"))return"ExportNamedDeclaration"===(e=this.parseExport(e)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e;throw this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual("exports"),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){return this.next(),this.flowParseTypeAlias(e),e.type="DeclareTypeAlias",e}flowParseDeclareOpaqueType(e){return this.next(),this.flowParseOpaqueType(e,!0),e.type="DeclareOpaqueType",e}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t=!1){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.implements=[],e.mixins=[],this.eat(l._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(l.comma));if(this.isContextual("mixins")){this.next();do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(l.comma))}if(this.isContextual("implements")){this.next();do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(l.comma))}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.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(this.state.start,W.UnexpectedReservedUnderscore)}checkReservedType(e,t,r){V.has(e)&&this.raise(t,r?W.AssignReservedType:W.UnexpectedReservedType,e)}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.start,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(l.eq),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual("type"),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(l.colon)&&(e.supertype=this.flowParseTypeInitialiser(l.colon)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(l.eq)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){const t=this.state.start,r=this.startNode(),i=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return r.name=n.name,r.variance=i,r.bound=n.typeAnnotation,this.match(l.eq)?(this.eat(l.eq),r.default=this.flowParseType()):e&&this.raise(t,W.MissingTypeParamDefault),this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.isRelational("<")||this.match(l.jsxTagStart)?this.next():this.unexpected();let r=!1;do{const e=this.flowParseTypeParameter(r);t.params.push(e),e.default&&(r=!0),this.isRelational(">")||this.expect(l.comma)}while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expectRelational("<");const r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.isRelational(">");)e.params.push(this.flowParseType()),this.isRelational(">")||this.expect(l.comma);return this.state.noAnonFunctionType=r,this.expectRelational(">"),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.expectRelational("<");!this.isRelational(">");)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.isRelational(">")||this.expect(l.comma);return this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();if(this.expectContextual("interface"),e.extends=[],this.eat(l._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(l.comma));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(l.num)||this.match(l.string)?this.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,r){return e.static=t,this.lookahead().type===l.colon?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(l.bracketR),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(l.bracketR),this.expect(l.bracketR),this.isRelational("<")||this.match(l.parenL)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start))):(e.method=!1,this.eat(l.question)&&(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.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(l.parenL),this.match(l._this)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(l.parenR)||this.expect(l.comma));!this.match(l.parenR)&&!this.match(l.ellipsis);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(l.parenR)||this.expect(l.comma);return this.eat(l.ellipsis)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(l.parenR),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:i,allowInexact:n}){const s=this.state.inType;this.state.inType=!0;const a=this.startNode();let o,c;a.callProperties=[],a.properties=[],a.indexers=[],a.internalSlots=[];let u=!1;for(t&&this.match(l.braceBarL)?(this.expect(l.braceBarL),o=l.braceBarR,c=!0):(this.expect(l.braceL),o=l.braceR,c=!1),a.exact=c;!this.match(o);){let t=!1,s=null,o=null;const p=this.startNode();if(i&&this.isContextual("proto")){const t=this.lookahead();t.type!==l.colon&&t.type!==l.question&&(this.next(),s=this.state.start,e=!1)}if(e&&this.isContextual("static")){const e=this.lookahead();e.type!==l.colon&&e.type!==l.question&&(this.next(),t=!0)}const d=this.flowParseVariance();if(this.eat(l.bracketL))null!=s&&this.unexpected(s),this.eat(l.bracketL)?(d&&this.unexpected(d.start),a.internalSlots.push(this.flowParseObjectTypeInternalSlot(p,t))):a.indexers.push(this.flowParseObjectTypeIndexer(p,t,d));else if(this.match(l.parenL)||this.isRelational("<"))null!=s&&this.unexpected(s),d&&this.unexpected(d.start),a.callProperties.push(this.flowParseObjectTypeCallProperty(p,t));else{let e="init";if(this.isContextual("get")||this.isContextual("set")){const t=this.lookahead();t.type!==l.name&&t.type!==l.string&&t.type!==l.num||(e=this.state.value,this.next())}const i=this.flowParseObjectTypeProperty(p,t,s,d,e,r,null!=n?n:!c);null===i?(u=!0,o=this.state.lastTokStart):a.properties.push(i)}this.flowObjectTypeSemicolon(),!o||this.match(l.braceR)||this.match(l.braceBarR)||this.raise(o,W.UnexpectedExplicitInexactInObject)}this.expect(o),r&&(a.inexact=u);const p=this.finishNode(a,"ObjectTypeAnnotation");return this.state.inType=s,p}flowParseObjectTypeProperty(e,t,r,i,n,s,a){if(this.eat(l.ellipsis)){return this.match(l.comma)||this.match(l.semi)||this.match(l.braceR)||this.match(l.braceBarR)?(s?a||this.raise(this.state.lastTokStart,W.InexactInsideExact):this.raise(this.state.lastTokStart,W.InexactInsideNonObject),i&&this.raise(i.start,W.InexactVariance),null):(s||this.raise(this.state.lastTokStart,W.UnexpectedSpreadType),null!=r&&this.unexpected(r),i&&this.raise(i.start,W.SpreadVariance),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"))}{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=n;let a=!1;return this.isRelational("<")||this.match(l.parenL)?(e.method=!0,null!=r&&this.unexpected(r),i&&this.unexpected(i.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start)),"get"!==n&&"set"!==n||this.flowCheckGetterSetterParams(e),!s&&"constructor"===e.key.name&&e.value.this&&this.raise(e.value.this.start,W.ThisParamBannedInConstructor)):("init"!==n&&this.unexpected(),e.method=!1,this.eat(l.question)&&(a=!0),e.value=this.flowParseTypeInitialiser(),e.variance=i),e.optional=a,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,r=e.start,i=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise(e.value.this.start,"get"===e.kind?W.GetterMayNotHaveThisParam:W.SetterMayNotHaveThisParam),i!==t&&("get"===e.kind?this.raise(r,T.BadGetterArity):this.raise(r,T.BadSetterArity)),"set"===e.kind&&e.value.rest&&this.raise(r,T.BadSetterRestParameter)}flowObjectTypeSemicolon(){this.eat(l.semi)||this.eat(l.comma)||this.match(l.braceR)||this.match(l.braceBarR)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t,r){e=e||this.state.start,t=t||this.state.startLoc;let i=r||this.flowParseRestrictedIdentifier(!0);for(;this.eat(l.dot);){const r=this.startNodeAt(e,t);r.qualification=i,r.id=this.flowParseRestrictedIdentifier(!0),i=this.finishNode(r,"QualifiedTypeIdentifier")}return i}flowParseGenericType(e,t,r){const i=this.startNodeAt(e,t);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(e,t,r),this.isRelational("<")&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(l._typeof),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect(l.bracketL);this.state.pos<this.length&&!this.match(l.bracketR)&&(e.types.push(this.flowParseType()),!this.match(l.bracketR));)this.expect(l.comma);return this.expect(l.bracketR),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null,r=!1,i=null;const n=this.startNode(),s=this.lookahead(),a=this.state.type===l._this;return s.type===l.colon||s.type===l.question?(a&&!e&&this.raise(n.start,W.ThisParamMustBeFirst),t=this.parseIdentifier(a),this.eat(l.question)&&(r=!0,a&&this.raise(n.start,W.ThisParamMayNotBeOptional)),i=this.flowParseTypeInitialiser()):i=this.flowParseType(),n.name=t,n.optional=r,n.typeAnnotation=i,this.finishNode(n,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const t=this.startNodeAt(e.start,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(l._this)&&(r=this.flowParseFunctionTypeParam(!0),r.name=null,this.match(l.parenR)||this.expect(l.comma));!this.match(l.parenR)&&!this.match(l.ellipsis);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(l.parenR)||this.expect(l.comma);return this.eat(l.ellipsis)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:r}}flowIdentToTypeAnnotation(e,t,r,i){switch(i.name){case"any":return this.finishNode(r,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(r,"BooleanTypeAnnotation");case"mixed":return this.finishNode(r,"MixedTypeAnnotation");case"empty":return this.finishNode(r,"EmptyTypeAnnotation");case"number":return this.finishNode(r,"NumberTypeAnnotation");case"string":return this.finishNode(r,"StringTypeAnnotation");case"symbol":return this.finishNode(r,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(i.name),this.flowParseGenericType(e,t,i)}}flowParsePrimaryType(){const e=this.state.start,t=this.state.startLoc,r=this.startNode();let i,n,s=!1;const a=this.state.noAnonFunctionType;switch(this.state.type){case l.name:return this.isContextual("interface")?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,r,this.parseIdentifier());case l.braceL:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case l.braceBarL:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case l.bracketL:return this.state.noAnonFunctionType=!1,n=this.flowParseTupleType(),this.state.noAnonFunctionType=a,n;case l.relational:if("<"===this.state.value)return r.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(l.parenL),i=this.flowParseFunctionTypeParams(),r.params=i.params,r.rest=i.rest,r.this=i._this,this.expect(l.parenR),this.expect(l.arrow),r.returnType=this.flowParseType(),this.finishNode(r,"FunctionTypeAnnotation");break;case l.parenL:if(this.next(),!this.match(l.parenR)&&!this.match(l.ellipsis))if(this.match(l.name)||this.match(l._this)){const e=this.lookahead().type;s=e!==l.question&&e!==l.colon}else s=!0;if(s){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=a,this.state.noAnonFunctionType||!(this.match(l.comma)||this.match(l.parenR)&&this.lookahead().type===l.arrow))return this.expect(l.parenR),n;this.eat(l.comma)}return i=n?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):this.flowParseFunctionTypeParams(),r.params=i.params,r.rest=i.rest,r.this=i._this,this.expect(l.parenR),this.expect(l.arrow),r.returnType=this.flowParseType(),r.typeParameters=null,this.finishNode(r,"FunctionTypeAnnotation");case l.string:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case l._true:case l._false:return r.value=this.match(l._true),this.next(),this.finishNode(r,"BooleanLiteralTypeAnnotation");case l.plusMin:if("-"===this.state.value){if(this.next(),this.match(l.num))return this.parseLiteral(-this.state.value,"NumberLiteralTypeAnnotation",r.start,r.loc.start);if(this.match(l.bigint))return this.parseLiteral(-this.state.value,"BigIntLiteralTypeAnnotation",r.start,r.loc.start);throw this.raise(this.state.start,W.UnexpectedSubtractionOperand)}throw this.unexpected();case l.num:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case l.bigint:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case l._void:return this.next(),this.finishNode(r,"VoidTypeAnnotation");case l._null:return this.next(),this.finishNode(r,"NullLiteralTypeAnnotation");case l._this:return this.next(),this.finishNode(r,"ThisTypeAnnotation");case l.star:return this.next(),this.finishNode(r,"ExistsTypeAnnotation");default:if("typeof"===this.state.type.keyword)return this.flowParseTypeofType();if(this.state.type.keyword){const e=this.state.type.label;return this.next(),super.createIdentifier(r,e)}}throw this.unexpected()}flowParsePostfixType(){const e=this.state.start,t=this.state.startLoc;let r=this.flowParsePrimaryType(),i=!1;for(;(this.match(l.bracketL)||this.match(l.questionDot))&&!this.canInsertSemicolon();){const n=this.startNodeAt(e,t),s=this.eat(l.questionDot);i=i||s,this.expect(l.bracketL),!s&&this.match(l.bracketR)?(n.elementType=r,this.next(),r=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=r,n.indexType=this.flowParseType(),this.expect(l.bracketR),i?(n.optional=s,r=this.finishNode(n,"OptionalIndexedAccessType")):r=this.finishNode(n,"IndexedAccessType"))}return r}flowParsePrefixType(){const e=this.startNode();return this.eat(l.question)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(l.arrow)){const t=this.startNodeAt(e.start,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(l.bitwiseAND);const t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(l.bitwiseAND);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(l.bitwiseOR);const t=this.flowParseIntersectionType();for(e.types=[t];this.eat(l.bitwiseOR);)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,this.state.exprAllowed=this.state.exprAllowed||this.state.noAnonFunctionType,t}flowParseTypeOrImplicitInstantiation(){if(this.state.type===l.name&&"_"===this.state.value){const e=this.state.start,t=this.state.startLoc,r=this.parseIdentifier();return this.flowParseGenericType(e,t,r)}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(l.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.end,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(l.plusMin)&&(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")),e}parseFunctionBody(e,t,r=!1){return t?this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,!0,r))):super.parseFunctionBody(e,!1,r)}parseFunctionBodyAndFinish(e,t,r=!1){if(this.match(l.colon)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}super.parseFunctionBodyAndFinish(e,t,r)}parseStatement(e,t){if(this.state.strict&&this.match(l.name)&&"interface"===this.state.value){const e=this.lookahead();if(e.type===l.name||isKeyword(e.value)){const e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.shouldParseEnums()&&this.isContextual("enum")){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}const r=super.parseStatement(e,t);return void 0!==this.flowPragma||this.isValidDirective(r)||(this.flowPragma=null),r}parseExpressionStatement(e,t){if("Identifier"===t.type)if("declare"===t.name){if(this.match(l._class)||this.match(l.name)||this.match(l._function)||this.match(l._var)||this.match(l._export))return this.flowParseDeclare(e)}else if(this.match(l.name)){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)}shouldParseExportDeclaration(){return this.isContextual("type")||this.isContextual("interface")||this.isContextual("opaque")||this.shouldParseEnums()&&this.isContextual("enum")||super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){return(!this.match(l.name)||!("type"===this.state.value||"interface"===this.state.value||"opaque"===this.state.value||this.shouldParseEnums()&&"enum"===this.state.value))&&super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual("enum")){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,r,i){if(!this.match(l.question))return e;if(i){const n=this.tryParse((()=>super.parseConditional(e,t,r)));return n.node?(n.error&&(this.state=n.failState),n.node):(i.start=n.error.pos||this.state.start,e)}this.expect(l.question);const n=this.state.clone(),s=this.state.noArrowAt,a=this.startNodeAt(t,r);let{consequent:o,failed:c}=this.tryParseConditionalConsequent(),[u,p]=this.getArrowLikeExpressions(o);if(c||p.length>0){const e=[...s];if(p.length>0){this.state=n,this.state.noArrowAt=e;for(let t=0;t<p.length;t++)e.push(p[t].start);({consequent:o,failed:c}=this.tryParseConditionalConsequent()),[u,p]=this.getArrowLikeExpressions(o)}c&&u.length>1&&this.raise(n.start,W.AmbiguousConditionalArrow),c&&1===u.length&&(this.state=n,this.state.noArrowAt=e.concat(u[0].start),({consequent:o,failed:c}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=s,this.expect(l.colon),a.test=e,a.consequent=o,a.alternate=this.forwardNoArrowParamsConversionAt(a,(()=>this.parseMaybeAssign(void 0,void 0,void 0))),this.finishNode(a,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),t=!this.match(l.colon);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const r=[e],i=[];for(;0!==r.length;){const e=r.pop();"ArrowFunctionExpression"===e.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):i.push(e),r.push(e.body)):"ConditionalExpression"===e.type&&(r.push(e.consequent),r.push(e.alternate))}return t?(i.forEach((e=>this.finishArrowValidation(e))),[i,[]]):function(e,t){const r=[],i=[];for(let n=0;n<e.length;n++)(t(e[n],n,e)?r:i).push(e[n]);return[r,i]}(i,(e=>e.params.every((e=>this.isAssignable(e,!0)))))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingComma,!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,r){if(e=super.parseParenItem(e,t,r),this.eat(l.question)&&(e.optional=!0,this.resetEndLocation(e)),this.match(l.colon)){const i=this.startNodeAt(t,r);return i.expression=e,i.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(i,"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)}parseExport(e){const t=super.parseExport(e);return"ExportNamedDeclaration"!==t.type&&"ExportAllDeclaration"!==t.type||(t.exportKind=t.exportKind||"value"),t}parseExportDeclaration(e){if(this.isContextual("type")){e.exportKind="type";const t=this.startNode();return this.next(),this.match(l.braceL)?(e.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual("opaque")){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual("interface")){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseInterface(t)}if(this.shouldParseEnums()&&this.isContextual("enum")){e.exportKind="value";const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(...arguments)||!(!this.isContextual("type")||this.lookahead().type!==l.star)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){const t=this.state.start,r=super.maybeParseExportNamespaceSpecifier(e);return r&&"type"===e.exportKind&&this.unexpected(t),r}parseClassId(e,t,r){super.parseClassId(e,t,r),this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,r){const i=this.state.start;if(this.isContextual("declare")){if(this.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(i,W.DeclareClassElement):t.value&&this.raise(t.value.start,W.DeclareClassFieldInitializer))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){const e=super.readWord1(),t="@@"+e;this.isIterator(e)&&this.state.inType||this.raise(this.state.pos,T.InvalidIdentifier,t),this.finishToken(l.name,t)}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);return 123===e&&124===t?this.finishOp(l.braceBarL,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?46===t?this.finishOp(l.questionDot,2):this.finishOp(l.question,1):function(e,t){return 64===e&&64===t}(e,t)?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e):this.finishOp(l.relational,1)}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":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=>this.isAssignable(e)));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":case"TypeCastExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toAssignable(e,t=!1){return"TypeCastExpression"===e.type?super.toAssignable(this.typeCastToParameter(e),t):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))}return super.toAssignableList(e,t,r)}toReferencedList(e,t){for(let i=0;i<e.length;i++){var r;const n=e[i];!n||"TypeCastExpression"!==n.type||null!=(r=n.extra)&&r.parenthesized||!(e.length>1)&&t||this.raise(n.typeAnnotation.start,W.TypeCastInPattern)}return e}parseArrayLike(e,t,r,i){const n=super.parseArrayLike(e,t,r,i);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}checkLVal(e,...t){if("TypeCastExpression"!==e.type)return super.checkLVal(e,...t)}parseClassProperty(e){return this.match(l.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(l.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(l.colon)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(l.colon)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,r,i,n,s){if(t.variance&&this.unexpected(t.variance.start),delete t.variance,this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,r,i,n,s),t.params&&n){const e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(t.start,W.ThisParamBannedInConstructor)}else if("MethodDefinition"===t.type&&n&&t.value.params){const e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(t.start,W.ThisParamBannedInConstructor)}}pushClassPrivateMethod(e,t,r,i){t.variance&&this.unexpected(t.variance.start),delete t.variance,this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,r,i)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.isRelational("<")&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual("implements")){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(l.comma))}}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(r.start,W.GetterMayNotHaveThisParam):this.isThisParam(r)&&this.raise(r.start,W.SetterMayNotHaveThisParam)}}parsePropertyName(e,t){const r=this.flowParseVariance(),i=super.parsePropertyName(e,t);return e.variance=r,i}parseObjPropValue(e,t,r,i,n,s,a,o){let c;e.variance&&this.unexpected(e.variance.start),delete e.variance,this.isRelational("<")&&!a&&(c=this.flowParseTypeParameterDeclaration(),this.match(l.parenL)||this.unexpected()),super.parseObjPropValue(e,t,r,i,n,s,a,o),c&&((e.value||e).typeParameters=c)}parseAssignableListItemTypes(e){return this.eat(l.question)&&("Identifier"!==e.type&&this.raise(e.start,W.OptionalBindingPattern),this.isThisParam(e)&&this.raise(e.start,W.ThisParamMayNotBeOptional),e.optional=!0),this.match(l.colon)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(e.start,W.ThisParamAnnotationRequired),this.match(l.eq)&&this.isThisParam(e)&&this.raise(e.start,W.ThisParamNoDefault),this.resetEndLocation(e),e}parseMaybeDefault(e,t,r){const i=super.parseMaybeDefault(e,t,r);return"AssignmentPattern"===i.type&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(i.typeAnnotation.start,W.TypeBeforeInitializer),i}shouldParseDefaultImport(e){return hasTypeImportKind(e)?isMaybeDefaultImport(this.state):super.shouldParseDefaultImport(e)}parseImportSpecifierLocal(e,t,r,i){t.local=hasTypeImportKind(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),this.checkLVal(t.local,i,9),e.specifiers.push(this.finishNode(t,r))}maybeParseDefaultImportSpecifier(e){e.importKind="value";let t=null;if(this.match(l._typeof)?t="typeof":this.isContextual("type")&&(t="type"),t){const r=this.lookahead();"type"===t&&r.type===l.star&&this.unexpected(r.start),(isMaybeDefaultImport(r)||r.type===l.braceL||r.type===l.star)&&(this.next(),e.importKind=t)}return super.maybeParseDefaultImportSpecifier(e)}parseImportSpecifier(e){const t=this.startNode(),r=this.state.start,i=this.parseModuleExportName();let n=null;"Identifier"===i.type&&("type"===i.name?n="type":"typeof"===i.name&&(n="typeof"));let s=!1;if(this.isContextual("as")&&!this.isLookaheadContextual("as")){const e=this.parseIdentifier(!0);null===n||this.match(l.name)||this.state.type.keyword?(t.imported=i,t.importKind=null,t.local=this.parseIdentifier()):(t.imported=e,t.importKind=n,t.local=e.__clone())}else if(null!==n&&(this.match(l.name)||this.state.type.keyword))t.imported=this.parseIdentifier(!0),t.importKind=n,this.eatContextual("as")?t.local=this.parseIdentifier():(s=!0,t.local=t.imported.__clone());else{if("StringLiteral"===i.type)throw this.raise(t.start,T.ImportBindingIsString,i.value);s=!0,t.imported=i,t.importKind=null,t.local=t.imported.__clone()}const a=hasTypeImportKind(e),o=hasTypeImportKind(t);a&&o&&this.raise(r,W.ImportTypeShorthandOnlyInPureImport),(a||o)&&this.checkReservedType(t.local.name,t.local.start,!0),!s||a||o||this.checkReservedWord(t.local.name,t.start,!0,!0),this.checkLVal(t.local,"import specifier",9),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))}parseBindingAtom(){return this.state.type===l._this?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,t){const r=e.kind;"get"!==r&&"set"!==r&&this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(l.colon)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(l.colon)){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(l.colon)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t,r){var i;let n,s=null;if(this.hasPlugin("jsx")&&(this.match(l.jsxTagStart)||this.isRelational("<"))){if(s=this.state.clone(),n=this.tryParse((()=>super.parseMaybeAssign(e,t,r)),s),!n.error)return n.node;const{context:i}=this.state;i[i.length-1]===x.j_oTag?i.length-=2:i[i.length-1]===x.j_expr&&(i.length-=1)}if(null!=(i=n)&&i.error||this.isRelational("<")){var a,o;let i;s=s||this.state.clone();const l=this.tryParse((n=>{var s;i=this.flowParseTypeParameterDeclaration();const a=this.forwardNoArrowParamsConversionAt(i,(()=>{const n=super.parseMaybeAssign(e,t,r);return this.resetStartLocationFromNode(n,i),n}));"ArrowFunctionExpression"!==a.type&&null!=(s=a.extra)&&s.parenthesized&&n();const o=this.maybeUnwrapTypeCastExpression(a);return o.typeParameters=i,this.resetStartLocationFromNode(o,i),a}),s);let c=null;if(l.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(l.node).type){if(!l.error&&!l.aborted)return l.node.async&&this.raise(i.start,W.UnexpectedTypeParameterBeforeAsyncArrowFunction),l.node;c=l.node}if(null!=(a=n)&&a.node)return this.state=n.failState,n.node;if(c)return this.state=l.failState,c;if(null!=(o=n)&&o.thrown)throw n.error;if(l.thrown)throw l.error;throw this.raise(i.start,W.UnexpectedTokenAfterTypeParameter)}return super.parseMaybeAssign(e,t,r)}parseArrow(e){if(this.match(l.colon)){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(l.arrow)||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(){return this.match(l.colon)||super.shouldParseArrow()}setArrowFunctionParameters(e,t){-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,r){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(e.params[t].start,W.ThisParamMustBeFirst);return super.checkParams(...arguments)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(e,t,r,i){if("Identifier"===e.type&&"async"===e.name&&-1!==this.state.noArrowAt.indexOf(t)){this.next();const i=this.startNodeAt(t,r);i.callee=e,i.arguments=this.parseCallExpressionArguments(l.parenR,!1),e=this.finishNode(i,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.isRelational("<")){const n=this.state.clone(),s=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t,r)||e()),n);if(!s.error&&!s.aborted)return s.node;const a=this.tryParse((()=>super.parseSubscripts(e,t,r,i)),n);if(a.node&&!a.error)return a.node;if(s.node)return this.state=s.failState,s.node;if(a.node)return this.state=a.failState,a.node;throw s.error||a.error}return super.parseSubscripts(e,t,r,i)}parseSubscript(e,t,r,i,n){if(this.match(l.questionDot)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,i)return n.stop=!0,e;this.next();const s=this.startNodeAt(t,r);return s.callee=e,s.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(l.parenL),s.arguments=this.parseCallExpressionArguments(l.parenR,!1),s.optional=!0,this.finishCallExpression(s,!0)}if(!i&&this.shouldParseTypes()&&this.isRelational("<")){const i=this.startNodeAt(t,r);i.callee=e;const s=this.tryParse((()=>(i.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(l.parenL),i.arguments=this.parseCallExpressionArguments(l.parenR,!1),n.optionalChainMember&&(i.optional=!1),this.finishCallExpression(i,n.optionalChainMember))));if(s.node)return s.error&&(this.state=s.failState),s.node}return super.parseSubscript(e,t,r,i,n)}parseNewArguments(e){let t=null;this.shouldParseTypes()&&this.isRelational("<")&&(t=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),e.typeArguments=t,super.parseNewArguments(e)}parseAsyncArrowWithTypeParameters(e,t){const r=this.startNodeAt(e,t);if(this.parseFunctionParams(r),this.parseArrow(r))return this.parseArrowExpression(r,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(l.braceBarR,2)}parseTopLevel(e,t){const r=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(this.state.pos,W.UnterminatedFlowComment),r}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment())return this.state.hasFlowComment&&this.unexpected(null,W.NestedFlowComment),this.hasFlowCommentCompletion(),this.state.pos+=this.skipFlowComment(),void(this.state.hasFlowComment=!0);if(this.state.hasFlowComment){const e=this.input.indexOf("*-/",this.state.pos+=2);if(-1===e)throw this.raise(this.state.pos-2,T.UnterminatedComment);this.state.pos=e+3}else super.skipBlockComment()}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),i=this.input.charCodeAt(t+e+1);return 58===r&&58===i?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==i&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(this.state.pos,T.UnterminatedComment)}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:r}){this.raise(e,W.EnumBooleanMemberNotInitialized,r,t)}flowEnumErrorInvalidMemberName(e,{enumName:t,memberName:r}){const i=r[0].toUpperCase()+r.slice(1);this.raise(e,W.EnumInvalidMemberName,r,i,t)}flowEnumErrorDuplicateMemberName(e,{enumName:t,memberName:r}){this.raise(e,W.EnumDuplicateMemberName,r,t)}flowEnumErrorInconsistentMemberValues(e,{enumName:t}){this.raise(e,W.EnumInconsistentMemberValues,t)}flowEnumErrorInvalidExplicitType(e,{enumName:t,suppliedType:r}){return this.raise(e,null===r?W.EnumInvalidExplicitTypeUnknownSupplied:W.EnumInvalidExplicitType,t,r)}flowEnumErrorInvalidMemberInitializer(e,{enumName:t,explicitType:r,memberName:i}){let n=null;switch(r){case"boolean":case"number":case"string":n=W.EnumInvalidMemberInitializerPrimaryType;break;case"symbol":n=W.EnumInvalidMemberInitializerSymbolType;break;default:n=W.EnumInvalidMemberInitializerUnknownType}return this.raise(e,n,t,i,r)}flowEnumErrorNumberMemberNotInitialized(e,{enumName:t,memberName:r}){this.raise(e,W.EnumNumberMemberNotInitialized,t,r)}flowEnumErrorStringMemberInconsistentlyInitailized(e,{enumName:t}){this.raise(e,W.EnumStringMemberInconsistentlyInitailized,t)}flowEnumMemberInit(){const e=this.state.start,endOfInit=()=>this.match(l.comma)||this.match(l.braceR);switch(this.state.type){case l.num:{const t=this.parseLiteral(this.state.value,"NumericLiteral");return endOfInit()?{type:"number",pos:t.start,value:t}:{type:"invalid",pos:e}}case l.string:{const t=this.parseLiteral(this.state.value,"StringLiteral");return endOfInit()?{type:"string",pos:t.start,value:t}:{type:"invalid",pos:e}}case l._true:case l._false:{const t=this.parseBooleanLiteral();return endOfInit()?{type:"boolean",pos:t.start,value:t}:{type:"invalid",pos:e}}default:return{type:"invalid",pos:e}}}flowEnumMemberRaw(){const e=this.state.start;return{id:this.parseIdentifier(!0),init:this.eat(l.eq)?this.flowEnumMemberInit():{type:"none",pos:e}}}flowEnumCheckExplicitTypeMismatch(e,t,r){const{explicitType:i}=t;null!==i&&i!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){const r=new Set,i={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let n=!1;for(;!this.match(l.braceR);){if(this.eat(l.ellipsis)){n=!0;break}const s=this.startNode(),{id:a,init:o}=this.flowEnumMemberRaw(),c=a.name;if(""===c)continue;/^[a-z]/.test(c)&&this.flowEnumErrorInvalidMemberName(a.start,{enumName:e,memberName:c}),r.has(c)&&this.flowEnumErrorDuplicateMemberName(a.start,{enumName:e,memberName:c}),r.add(c);const u={enumName:e,explicitType:t,memberName:c};switch(s.id=a,o.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(o.pos,u,"boolean"),s.init=o.value,i.booleanMembers.push(this.finishNode(s,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(o.pos,u,"number"),s.init=o.value,i.numberMembers.push(this.finishNode(s,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(o.pos,u,"string"),s.init=o.value,i.stringMembers.push(this.finishNode(s,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(o.pos,u);case"none":switch(t){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.pos,u);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.pos,u);break;default:i.defaultedMembers.push(this.finishNode(s,"EnumDefaultedMember"))}}this.match(l.braceR)||this.expect(l.comma)}return{members:i,hasUnknownMembers:n}}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.flowEnumErrorStringMemberInconsistentlyInitailized(t.start,{enumName:r});return t}for(const e of t)this.flowEnumErrorStringMemberInconsistentlyInitailized(e.start,{enumName:r});return e}flowEnumParseExplicitType({enumName:e}){if(this.eatContextual("of")){if(!this.match(l.name))throw this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:e,suppliedType:null});const{value:t}=this.state;return this.next(),"boolean"!==t&&"number"!==t&&"string"!==t&&"symbol"!==t&&this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:e,suppliedType:t}),t}return null}flowEnumBody(e,{enumName:t,nameLoc:r}){const i=this.flowEnumParseExplicitType({enumName:t});this.expect(l.braceL);const{members:n,hasUnknownMembers:s}=this.flowEnumMembers({enumName:t,explicitType:i});switch(e.hasUnknownMembers=s,i){case"boolean":return e.explicitType=!0,e.members=n.booleanMembers,this.expect(l.braceR),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=n.numberMembers,this.expect(l.braceR),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:t}),this.expect(l.braceR),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=n.defaultedMembers,this.expect(l.braceR),this.finishNode(e,"EnumSymbolBody");default:{const empty=()=>(e.members=[],this.expect(l.braceR),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const i=n.booleanMembers.length,s=n.numberMembers.length,a=n.stringMembers.length,o=n.defaultedMembers.length;if(i||s||a||o){if(i||s){if(!s&&!a&&i>=o){for(const e of n.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.start,{enumName:t,memberName:e.id.name});return e.members=n.booleanMembers,this.expect(l.braceR),this.finishNode(e,"EnumBooleanBody")}if(!i&&!a&&s>=o){for(const e of n.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.start,{enumName:t,memberName:e.id.name});return e.members=n.numberMembers,this.expect(l.braceR),this.finishNode(e,"EnumNumberBody")}return this.flowEnumErrorInconsistentMemberValues(r,{enumName:t}),empty()}return e.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:t}),this.expect(l.braceR),this.finishNode(e,"EnumStringBody")}return empty()}}}flowParseEnumDeclaration(e){const t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),{enumName:t.name,nameLoc:t.start}),this.finishNode(e,"EnumDeclaration")}updateContext(e){this.match(l.name)&&"of"===this.state.value&&e===l.name&&"interface"===this.input.slice(this.state.lastTokStart,this.state.lastTokEnd)?this.state.exprAllowed=!1:super.updateContext(e)}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{getScopeHandler(){return Q}tsIsIdentifier(){return this.match(l.name)}tsTokenCanFollowModifier(){return(this.match(l.bracketL)||this.match(l.braceL)||this.match(l.star)||this.match(l.ellipsis)||this.match(l.privateName)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(e){if(!this.match(l.name))return;const t=this.state.value;return-1!==e.indexOf(t)&&this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))?t:void 0}tsParseModifiers(e,t,r,i){const enforceOrder=(t,r,i,n)=>{r===i&&e[n]&&this.raise(t,ee.InvalidModifiersOrder,i,n)},incompatible=(t,r,i,n)=>{(e[i]&&r===n||e[n]&&r===i)&&this.raise(t,ee.IncompatibleModifiers,i,n)};for(;;){const n=this.state.start,s=this.tsParseModifier(t.concat(null!=r?r:[]));if(!s)break;tsIsAccessModifier(s)?e.accessibility?this.raise(n,ee.DuplicateAccessibilityModifier):(enforceOrder(n,s,s,"override"),enforceOrder(n,s,s,"static"),e.accessibility=s):(Object.hasOwnProperty.call(e,s)?this.raise(n,ee.DuplicateModifier,s):(enforceOrder(n,s,"static","readonly"),enforceOrder(n,s,"static","override"),enforceOrder(n,s,"override","readonly"),enforceOrder(n,s,"abstract","override"),incompatible(n,s,"declare","override"),incompatible(n,s,"static","abstract")),e[s]=!0),null!=r&&r.includes(s)&&this.raise(n,i,s)}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(l.braceR);case"HeritageClauseElement":return this.match(l.braceL);case"TupleElementTypes":return this.match(l.bracketR);case"TypeParametersOrArguments":return this.isRelational(">")}throw new Error("Unreachable")}tsParseList(e,t){const r=[];for(;!this.tsIsListTerminator(e);)r.push(t());return r}tsParseDelimitedList(e,t){return nonNull(this.tsParseDelimitedListWorker(e,t,!0))}tsParseDelimitedListWorker(e,t,r){const i=[];for(;!this.tsIsListTerminator(e);){const n=t();if(null==n)return;if(i.push(n),!this.eat(l.comma)){if(this.tsIsListTerminator(e))break;return void(r&&this.expect(l.comma))}}return i}tsParseBracketedList(e,t,r,i){i||(r?this.expect(l.bracketL):this.expectRelational("<"));const n=this.tsParseDelimitedList(e,t);return r?this.expect(l.bracketR):this.expectRelational(">"),n}tsParseImportType(){const e=this.startNode();return this.expect(l._import),this.expect(l.parenL),this.match(l.string)||this.raise(this.state.start,ee.UnsupportedImportTypeArgument),e.argument=this.parseExprAtom(),this.expect(l.parenR),this.eat(l.dot)&&(e.qualifier=this.tsParseEntityName(!0)),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(e){let t=this.parseIdentifier();for(;this.eat(l.dot);){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(!1),!this.hasPrecedingLineBreak()&&this.isRelational("<")&&(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(l._typeof),this.match(l._import)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(!0),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(){const e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsEatThenParseType(l._extends),e.default=this.tsEatThenParseType(l.eq),this.finishNode(e,"TSTypeParameter")}tsTryParseTypeParameters(){if(this.isRelational("<"))return this.tsParseTypeParameters()}tsParseTypeParameters(){const e=this.startNode();return this.isRelational("<")||this.match(l.jsxTagStart)?this.next():this.unexpected(),e.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0),0===e.params.length&&this.raise(e.start,ee.EmptyTypeParameters),this.finishNode(e,"TSTypeParameterDeclaration")}tsTryNextParseConstantContext(){return this.lookahead().type===l._const?(this.next(),this.tsParseTypeReference()):null}tsFillSignature(e,t){const r=e===l.arrow;t.typeParameters=this.tsTryParseTypeParameters(),this.expect(l.parenL),t.parameters=this.tsParseBindingListForSignature(),(r||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){return this.parseBindingList(l.parenR,41).map((e=>("Identifier"!==e.type&&"RestElement"!==e.type&&"ObjectPattern"!==e.type&&"ArrayPattern"!==e.type&&this.raise(e.start,ee.UnsupportedSignatureParameterKind,e.type),e)))}tsParseTypeMemberSemicolon(){this.eat(l.comma)||this.isLineTerminator()||this.expect(l.semi)}tsParseSignatureMember(e,t){return this.tsFillSignature(l.colon,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),this.eat(l.name)&&this.match(l.colon)}tsTryParseIndexSignature(e){if(!this.match(l.bracketL)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(l.bracketL);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(l.bracketR),e.parameters=[t];const r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){this.eat(l.question)&&(e.optional=!0);const r=e;if(this.match(l.parenL)||this.isRelational("<")){t&&this.raise(e.start,ee.ReadonlyForMethodSignature);const i=r;if(i.kind&&this.isRelational("<")&&this.raise(this.state.pos,ee.AccesorCannotHaveTypeParameters),this.tsFillSignature(l.colon,i),this.tsParseTypeMemberSemicolon(),"get"===i.kind)i.parameters.length>0&&(this.raise(this.state.pos,T.BadGetterArity),this.isThisParam(i.parameters[0])&&this.raise(this.state.pos,ee.AccesorCannotDeclareThisParameter));else if("set"===i.kind){if(1!==i.parameters.length)this.raise(this.state.pos,T.BadSetterArity);else{const e=i.parameters[0];this.isThisParam(e)&&this.raise(this.state.pos,ee.AccesorCannotDeclareThisParameter),"Identifier"===e.type&&e.optional&&this.raise(this.state.pos,ee.SetAccesorCannotHaveOptionalParameter),"RestElement"===e.type&&this.raise(this.state.pos,ee.SetAccesorCannotHaveRestParameter)}i.typeAnnotation&&this.raise(i.typeAnnotation.start,ee.SetAccesorCannotHaveReturnType)}else i.kind="method";return this.finishNode(i,"TSMethodSignature")}{const e=r;t&&(e.readonly=!0);const i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(l.parenL)||this.isRelational("<"))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(l._new)){const t=this.startNode();return this.next(),this.match(l.parenL)||this.isRelational("<")?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers(e,["readonly"],["declare","abstract","private","protected","public","static","override"],ee.InvalidModifierOnTypeMember);const t=this.tsTryParseIndexSignature(e);return t||(this.parsePropertyName(e,!1),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,this.parsePropertyName(e,!1)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(l.braceL);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(l.braceR),e}tsIsStartOfMappedType(){return this.next(),this.eat(l.plusMin)?this.isContextual("readonly"):(this.isContextual("readonly")&&this.next(),!!this.match(l.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(l._in))))}tsParseMappedTypeParameter(){const e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsExpectThenParseType(l._in),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){const e=this.startNode();return this.expect(l.braceL),this.match(l.plusMin)?(e.readonly=this.state.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(e.readonly=!0),this.expect(l.bracketL),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(l.bracketR),this.match(l.plusMin)?(e.optional=this.state.value,this.next(),this.expect(l.question)):this.eat(l.question)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(l.braceR),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1,r=null;return e.elementTypes.forEach((e=>{var i;let{type:n}=e;!t||"TSRestType"===n||"TSOptionalType"===n||"TSNamedTupleMember"===n&&e.optional||this.raise(e.start,ee.OptionalTypeBeforeRequired),t=t||"TSNamedTupleMember"===n&&e.optional||"TSOptionalType"===n,"TSRestType"===n&&(n=(e=e.typeAnnotation).type);const s="TSNamedTupleMember"===n;r=null!=(i=r)?i:s,r!==s&&this.raise(e.start,ee.MixedLabeledAndUnlabeledElements)})),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const{start:e,startLoc:t}=this.state,r=this.eat(l.ellipsis);let i=this.tsParseType();const n=this.eat(l.question);if(this.eat(l.colon)){const e=this.startNodeAtNode(i);e.optional=n,"TSTypeReference"!==i.type||i.typeParameters||"Identifier"!==i.typeName.type?(this.raise(i.start,ee.InvalidTupleMemberLabel),e.label=i):e.label=i.typeName,e.elementType=this.tsParseType(),i=this.finishNode(e,"TSNamedTupleMember")}else if(n){const e=this.startNodeAtNode(i);e.typeAnnotation=i,i=this.finishNode(e,"TSOptionalType")}if(r){const r=this.startNodeAt(e,t);r.typeAnnotation=i,i=this.finishNode(r,"TSRestType")}return i}tsParseParenthesizedType(){const e=this.startNode();return this.expect(l.parenL),e.typeAnnotation=this.tsParseType(),this.expect(l.parenR),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){const r=this.startNode();return"TSConstructorType"===e&&(r.abstract=!!t,t&&this.next(),this.next()),this.tsFillSignature(l.arrow,r),this.finishNode(r,e)}tsParseLiteralTypeNode(){const e=this.startNode();return e.literal=(()=>{switch(this.state.type){case l.num:case l.bigint:case l.string:case l._true:case l._false:return this.parseExprAtom();default:throw this.unexpected()}})(),this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){const e=this.startNode();return e.literal=this.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case l.name:case l._void:case l._null:{const e=this.match(l._void)?"TSVoidKeyword":this.match(l._null)?"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!==e&&46!==this.lookaheadCharCode()){const t=this.startNode();return this.next(),this.finishNode(t,e)}return this.tsParseTypeReference()}case l.string:case l.num:case l.bigint:case l._true:case l._false:return this.tsParseLiteralTypeNode();case l.plusMin:if("-"===this.state.value){const e=this.startNode(),t=this.lookahead();if(t.type!==l.num&&t.type!==l.bigint)throw this.unexpected();return e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case l._this:return this.tsParseThisTypeOrThisTypePredicate();case l._typeof:return this.tsParseTypeQuery();case l._import:return this.tsParseImportType();case l.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case l.bracketL:return this.tsParseTupleType();case l.parenL:return this.tsParseParenthesizedType();case l.backQuote:return this.tsParseTemplateLiteralType()}throw this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(l.bracketL);)if(this.match(l.bracketR)){const t=this.startNodeAtNode(e);t.elementType=e,this.expect(l.bracketR),e=this.finishNode(t,"TSArrayType")}else{const t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(l.bracketR),e=this.finishNode(t,"TSIndexedAccessType")}return e}tsParseTypeOperator(e){const t=this.startNode();return this.expectContextual(e),t.operator=e,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===e&&this.tsCheckTypeAnnotationForReadOnly(t),this.finishNode(t,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(e.start,ee.UnexpectedReadonly)}}tsParseInferType(){const e=this.startNode();this.expectContextual("infer");const t=this.startNode();return t.name=this.parseIdentifierName(t.start),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseTypeOperatorOrHigher(){const e=["keyof","unique","readonly"].find((e=>this.isContextual(e)));return e?this.tsParseTypeOperator(e):this.isContextual("infer")?this.tsParseInferType():this.tsParseArrayTypeOrHigher()}tsParseUnionOrIntersectionType(e,t,r){const i=this.startNode(),n=this.eat(r),s=[];do{s.push(t())}while(this.eat(r));return 1!==s.length||n?(i.types=s,this.finishNode(i,e)):s[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),l.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),l.bitwiseOR)}tsIsStartOfFunctionType(){return!!this.isRelational("<")||this.match(l.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(this.match(l.name)||this.match(l._this))return this.next(),!0;if(this.match(l.braceL)){let e=1;for(this.next();e>0;)this.match(l.braceL)?++e:this.match(l.braceR)&&--e,this.next();return!0}if(this.match(l.bracketL)){let e=1;for(this.next();e>0;)this.match(l.bracketL)?++e:this.match(l.bracketR)&&--e,this.next();return!0}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(l.parenR)||this.match(l.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(l.colon)||this.match(l.comma)||this.match(l.question)||this.match(l.eq))return!0;if(this.match(l.parenR)&&(this.next(),this.match(l.arrow)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{const t=this.startNode();this.expect(e);const r=this.startNode(),i=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(i&&this.match(l._this)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(r.parameterName=e,r.asserts=!0,e=this.finishNode(r,"TSTypePredicate")):(this.resetStartLocationFromNode(e,r),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}const n=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!n)return i?(r.parameterName=this.parseIdentifier(),r.asserts=i,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);const s=this.tsParseTypeAnnotation(!1);return r.parameterName=n,r.typeAnnotation=s,r.asserts=i,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(l.colon)?this.tsParseTypeOrTypePredicateAnnotation(l.colon):void 0}tsTryParseTypeAnnotation(){return this.match(l.colon)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(l.colon)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(!this.match(l.name)||"asserts"!==this.state.value||this.hasPrecedingLineBreak())return!1;const e=this.state.containsEsc;return this.next(),!(!this.match(l.name)&&!this.match(l._this))&&(e&&this.raise(this.state.lastTokStart,T.InvalidEscapedReservedWord,"asserts"),!0)}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType((()=>{e&&this.expect(l.colon),t.typeAnnotation=this.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){assert(this.state.inType);const e=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(l._extends))return e;const t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsParseNonConditionalType(),this.expect(l.question),t.trueType=this.tsParseType(),this.expect(l.colon),t.falseType=this.tsParseType(),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual("abstract")&&this.lookahead().type===l._new}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(l._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){const e=this.startNode(),t=this.tsTryNextParseConstantContext();return e.typeAnnotation=t||this.tsNextThenParseType(),this.expectRelational(">"),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.start,r=this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this));return r.length||this.raise(t,ee.EmptyHeritageClauseType,e),r}tsParseExpressionWithTypeArguments(){const e=this.startNode();return e.expression=this.tsParseEntityName(!1),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}tsParseInterfaceDeclaration(e){e.id=this.parseIdentifier(),this.checkLVal(e.id,"typescript interface declaration",130),e.typeParameters=this.tsTryParseTypeParameters(),this.eat(l._extends)&&(e.extends=this.tsParseHeritageClause("extends"));const t=this.startNode();return t.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(t,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkLVal(e.id,"typescript type alias",2),e.typeParameters=this.tsTryParseTypeParameters(),e.typeAnnotation=this.tsInType((()=>{if(this.expect(l.eq),this.isContextual("intrinsic")&&this.lookahead().type!==l.dot){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}}tsEatThenParseType(e){return this.match(e)?this.tsNextThenParseType():void 0}tsExpectThenParseType(e){return this.tsDoThenParseType((()=>this.expect(e)))}tsNextThenParseType(){return this.tsDoThenParseType((()=>this.next()))}tsDoThenParseType(e){return this.tsInType((()=>(e(),this.tsParseType())))}tsParseEnumMember(){const e=this.startNode();return e.id=this.match(l.string)?this.parseExprAtom():this.parseIdentifier(!0),this.eat(l.eq)&&(e.initializer=this.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t){return t&&(e.const=!0),e.id=this.parseIdentifier(),this.checkLVal(e.id,"typescript enum declaration",t?779:267),this.expect(l.braceL),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(l.braceR),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(0),this.expect(l.braceL),this.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,l.braceR),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier(),t||this.checkLVal(e.id,"module or namespace declaration",1024),this.eat(l.dot)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(M),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual("global")?(e.global=!0,e.id=this.parseIdentifier()):this.match(l.string)?e.id=this.parseExprAtom():this.unexpected(),this.match(l.braceL)?(this.scope.enter(M),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t){e.isExport=t||!1,e.id=this.parseIdentifier(),this.checkLVal(e.id,"import equals declaration",9),this.expect(l.eq);const r=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(r.start,ee.ImportAliasHasImportType),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual("require")&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const e=this.startNode();if(this.expectContextual("require"),this.expect(l.parenL),!this.match(l.string))throw this.unexpected();return e.expression=this.parseExprAtom(),this.expect(l.parenR),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();return void 0!==r&&!1!==r?r:void(this.state=t)}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t,r=this.state.type;return this.isContextual("let")&&(r=l._var,t="let"),this.tsInAmbientContext((()=>{switch(r){case l._function:return e.declare=!0,this.parseFunctionStatement(e,!1,!0);case l._class:return e.declare=!0,this.parseClass(e,!0,!1);case l._const:if(this.match(l._const)&&this.isLookaheadContextual("enum"))return this.expect(l._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(e,!0);case l._var:return t=t||this.state.value,this.parseVarStatement(e,t);case l.name:{const t=this.state.value;return"global"===t?this.tsParseAmbientExternalModuleDeclaration(e):this.tsParseDeclaration(e,t,!0)}}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)}tsParseExpressionStatement(e,t){switch(t.name){case"declare":{const t=this.tsTryParseDeclare(e);if(t)return t.declare=!0,t;break}case"global":if(this.match(l.braceL)){this.scope.enter(M),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)}}tsParseDeclaration(e,t,r){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(l._class)||this.match(l.name)))return this.tsParseAbstractDeclaration(e);break;case"enum":if(r||this.match(l.name))return r&&this.next(),this.tsParseEnumDeclaration(e,!1);break;case"interface":if(this.tsCheckLineTerminator(r)&&this.match(l.name))return this.tsParseInterfaceDeclaration(e);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(l.string))return this.tsParseAmbientExternalModuleDeclaration(e);if(this.match(l.name))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&this.match(l.name))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(r)&&this.match(l.name))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e,t){if(!this.isRelational("<"))return;const r=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const i=this.tsTryParseAndCatch((()=>{const r=this.startNodeAt(e,t);return r.typeParameters=this.tsParseTypeParameters(),super.parseFunctionParams(r),r.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(l.arrow),r}));return this.state.maybeInArrowParameters=r,i?this.parseArrowExpression(i,null,!0):void 0}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expectRelational("<"),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===e.params.length&&this.raise(e.start,ee.EmptyTypeArguments),this.state.exprAllowed=!1,this.expectRelational(">"),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){if(this.match(l.name))switch(this.state.value){case"abstract":case"declare":case"enum":case"interface":case"module":case"namespace":case"type":return!0}return!1}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){const r=this.state.start,i=this.state.startLoc;let n,s=!1;void 0!==e&&(n=this.parseAccessModifier(),s=!!this.tsParseModifier(["readonly"]),!1===e&&(n||s)&&this.raise(r,ee.UnexpectedParameterModifier));const a=this.parseMaybeDefault();this.parseAssignableListItemTypes(a);const o=this.parseMaybeDefault(a.start,a.loc.start,a);if(n||s){const e=this.startNodeAt(r,i);return t.length&&(e.decorators=t),n&&(e.accessibility=n),s&&(e.readonly=s),"Identifier"!==o.type&&"AssignmentPattern"!==o.type&&this.raise(e.start,ee.UnsupportedParameterPropertyKind),e.parameter=o,this.finishNode(e,"TSParameterProperty")}return t.length&&(a.decorators=t),o}parseFunctionBodyAndFinish(e,t,r=!1){this.match(l.colon)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(l.colon));const i="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t?"TSDeclareMethod":void 0;i&&!this.match(l.braceL)&&this.isLineTerminator()?this.finishNode(e,i):"TSDeclareFunction"===i&&this.state.isAmbientContext&&(this.raise(e.start,ee.DeclareFunctionHasImplementation),e.declare)?super.parseFunctionBodyAndFinish(e,i,r):super.parseFunctionBodyAndFinish(e,t,r)}registerFunctionStatementId(e){!e.body&&e.id?this.checkLVal(e.id,"function name",1024):super.registerFunctionStatementId(...arguments)}tsCheckForInvalidTypeCasts(e){e.forEach((e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(e.typeAnnotation.start,ee.UnexpectedTypeAnnotation)}))}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(...e){const t=super.parseArrayLike(...e);return"ArrayExpression"===t.type&&this.tsCheckForInvalidTypeCasts(t.elements),t}parseSubscript(e,t,r,i,n){if(!this.hasPrecedingLineBreak()&&this.match(l.bang)){this.state.exprAllowed=!1,this.next();const i=this.startNodeAt(t,r);return i.expression=e,this.finishNode(i,"TSNonNullExpression")}if(this.isRelational("<")){const s=this.tsTryParseAndCatch((()=>{if(!i&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t,r);if(e)return e}const s=this.startNodeAt(t,r);s.callee=e;const a=this.tsParseTypeArguments();if(a){if(!i&&this.eat(l.parenL))return s.arguments=this.parseCallExpressionArguments(l.parenR,!1),this.tsCheckForInvalidTypeCasts(s.arguments),s.typeParameters=a,n.optionalChainMember&&(s.optional=!1),this.finishCallExpression(s,n.optionalChainMember);if(this.match(l.backQuote)){const i=this.parseTaggedTemplateExpression(e,t,r,n);return i.typeParameters=a,i}}this.unexpected()}));if(s)return s}return super.parseSubscript(e,t,r,i,n)}parseNewArguments(e){if(this.isRelational("<")){const t=this.tsTryParseAndCatch((()=>{const e=this.tsParseTypeArguments();return this.match(l.parenL)||this.unexpected(),e}));t&&(e.typeParameters=t)}super.parseNewArguments(e)}parseExprOp(e,t,r,i){if(nonNull(l._in.binop)>i&&!this.hasPrecedingLineBreak()&&this.isContextual("as")){const n=this.startNodeAt(t,r);n.expression=e;const s=this.tsTryNextParseConstantContext();return n.typeAnnotation=s||this.tsNextThenParseType(),this.finishNode(n,"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,t,r,i)}return super.parseExprOp(e,t,r,i)}checkReservedWord(e,t,r,i){}checkDuplicateExports(){}parseImport(e){if(e.importKind="value",this.match(l.name)||this.match(l.star)||this.match(l.braceL)){let t=this.lookahead();if(!this.isContextual("type")||t.type===l.comma||t.type===l.name&&"from"===t.value||t.type===l.eq||(e.importKind="type",this.next(),t=this.lookahead()),this.match(l.name)&&t.type===l.eq)return this.tsParseImportEqualsDeclaration(e)}const t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(t.start,ee.TypeImportCannotSpecifyDefaultAndNamed),t}parseExport(e){if(this.match(l._import))return this.next(),this.isContextual("type")&&61!==this.lookaheadCharCode()?(e.importKind="type",this.next()):e.importKind="value",this.tsParseImportEqualsDeclaration(e,!0);if(this.eat(l.eq)){const t=e;return t.expression=this.parseExpression(),this.semicolon(),this.finishNode(t,"TSExportAssignment")}if(this.eatContextual("as")){const t=e;return this.expectContextual("namespace"),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}return this.isContextual("type")&&this.lookahead().type===l.braceL?(this.next(),e.exportKind="type"):e.exportKind="value",super.parseExport(e)}isAbstractClass(){return this.isContextual("abstract")&&this.lookahead().type===l._class}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0),e}if("interface"===this.state.value){const e=this.tsParseDeclaration(this.startNode(),this.state.value,!0);if(e)return e}return super.parseExportDefaultExpression()}parseStatementContent(e,t){if(this.state.type===l._const){const e=this.lookahead();if(e.type===l.name&&"enum"===e.value){const e=this.startNode();return this.expect(l._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(e,!0)}}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some((t=>tsIsAccessModifier(t)?e.accessibility===t:!!e[t]))}parseClassMember(e,t,r){const i=["declare","private","public","protected","override","abstract","readonly"];this.tsParseModifiers(t,i.concat(["static"]));const callParseClassMemberWithIsStatic=()=>{const n=!!t.static;n&&this.eat(l.braceL)?(this.tsHasSomeModifiers(t,i)&&this.raise(this.state.pos,ee.StaticBlockCannotHaveModifier),this.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,r,n)};t.declare?this.tsInAmbientContext(callParseClassMemberWithIsStatic):callParseClassMemberWithIsStatic()}parseClassMemberWithIsStatic(e,t,r,i){const n=this.tsTryParseIndexSignature(t);if(n)return e.body.push(n),t.abstract&&this.raise(t.start,ee.IndexSignatureHasAbstract),t.accessibility&&this.raise(t.start,ee.IndexSignatureHasAccessibility,t.accessibility),t.declare&&this.raise(t.start,ee.IndexSignatureHasDeclare),void(t.override&&this.raise(t.start,ee.IndexSignatureHasOverride));!this.state.inAbstractClass&&t.abstract&&this.raise(t.start,ee.NonAbstractClassHasAbstractMethod),t.override&&(r.hadSuperClass||this.raise(t.start,ee.OverrideNotInSubClass)),super.parseClassMemberWithIsStatic(e,t,r,i)}parsePostMemberNameModifiers(e){this.eat(l.question)&&(e.optional=!0),e.readonly&&this.match(l.parenL)&&this.raise(e.start,ee.ClassMethodHasReadonly),e.declare&&this.match(l.parenL)&&this.raise(e.start,ee.ClassMethodHasDeclare)}parseExpressionStatement(e,t){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t):void 0)||super.parseExpressionStatement(e,t)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,r,i){if(!i||!this.match(l.question))return super.parseConditional(e,t,r,i);const n=this.tryParse((()=>super.parseConditional(e,t,r)));return n.node?(n.error&&(this.state=n.failState),n.node):(i.start=n.error.pos||this.state.start,e)}parseParenItem(e,t,r){if(e=super.parseParenItem(e,t,r),this.eat(l.question)&&(e.optional=!0,this.resetEndLocation(e)),this.match(l.colon)){const i=this.startNodeAt(t,r);return i.expression=e,i.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(i,"TSTypeCastExpression")}return e}parseExportDeclaration(e){const t=this.state.start,r=this.state.startLoc,i=this.eatContextual("declare");if(i&&(this.isContextual("declare")||!this.shouldParseExportDeclaration()))throw this.raise(this.state.start,ee.ExpectedAmbientAfterExportDeclare);let n;return this.match(l.name)&&(n=this.tsTryParseExportDeclaration()),n||(n=super.parseExportDeclaration(e)),n&&("TSInterfaceDeclaration"===n.type||"TSTypeAliasDeclaration"===n.type||i)&&(e.exportKind="type"),n&&i&&(this.resetStartLocation(n,t,r),n.declare=!0),n}parseClassId(e,t,r){if((!t||r)&&this.isContextual("implements"))return;super.parseClassId(e,t,r,e.declare?1024:139);const i=this.tsTryParseTypeParameters();i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){!e.optional&&this.eat(l.bang)&&(e.definite=!0);const t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){return this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&this.match(l.eq)&&this.raise(this.state.start,ee.DeclareClassFieldHasInitializer),super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(e.start,ee.PrivateElementHasAbstract),e.accessibility&&this.raise(e.start,ee.PrivateElementHasAccessibility,e.accessibility),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}pushClassMethod(e,t,r,i,n,s){const a=this.tsTryParseTypeParameters();a&&n&&this.raise(a.start,ee.ConstructorHasTypeParameters),!t.declare||"get"!==t.kind&&"set"!==t.kind||this.raise(t.start,ee.DeclareAccessor,t.kind),a&&(t.typeParameters=a),super.pushClassMethod(e,t,r,i,n,s)}pushClassPrivateMethod(e,t,r,i){const n=this.tsTryParseTypeParameters();n&&(t.typeParameters=n),super.pushClassPrivateMethod(e,t,r,i)}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&this.isRelational("<")&&(e.superTypeParameters=this.tsParseTypeArguments()),this.eatContextual("implements")&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,...t){const r=this.tsTryParseTypeParameters();r&&(e.typeParameters=r),super.parseObjPropValue(e,...t)}parseFunctionParams(e,t){const r=this.tsTryParseTypeParameters();r&&(e.typeParameters=r),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&this.eat(l.bang)&&(e.definite=!0);const r=this.tsTryParseTypeAnnotation();r&&(e.id.typeAnnotation=r,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(l.colon)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(...e){var t,r,i,n,s,a,o;let c,u,p,d;if(this.hasPlugin("jsx")&&(this.match(l.jsxTagStart)||this.isRelational("<"))){if(c=this.state.clone(),u=this.tryParse((()=>super.parseMaybeAssign(...e)),c),!u.error)return u.node;const{context:t}=this.state;t[t.length-1]===x.j_oTag?t.length-=2:t[t.length-1]===x.j_expr&&(t.length-=1)}if(!(null!=(t=u)&&t.error||this.isRelational("<")))return super.parseMaybeAssign(...e);c=c||this.state.clone();const h=this.tryParse((t=>{var r,i;d=this.tsParseTypeParameters();const n=super.parseMaybeAssign(...e);return("ArrowFunctionExpression"!==n.type||null!=(r=n.extra)&&r.parenthesized)&&t(),0!==(null==(i=d)?void 0:i.params.length)&&this.resetStartLocationFromNode(n,d),n.typeParameters=d,n}),c);if(!h.error&&!h.aborted)return h.node;if(!u&&(assert(!this.hasPlugin("jsx")),p=this.tryParse((()=>super.parseMaybeAssign(...e)),c),!p.error))return p.node;if(null!=(r=u)&&r.node)return this.state=u.failState,u.node;if(h.node)return this.state=h.failState,h.node;if(null!=(i=p)&&i.node)return this.state=p.failState,p.node;if(null!=(n=u)&&n.thrown)throw u.error;if(h.thrown)throw h.error;if(null!=(s=p)&&s.thrown)throw p.error;throw(null==(a=u)?void 0:a.error)||h.error||(null==(o=p)?void 0:o.error)}parseMaybeUnary(e){return!this.hasPlugin("jsx")&&this.isRelational("<")?this.tsParseTypeAssertion():super.parseMaybeUnary(e)}parseArrow(e){if(this.match(l.colon)){const t=this.tryParse((e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(l.colon);return!this.canInsertSemicolon()&&this.match(l.arrow)||e(),t}));if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e){this.eat(l.question)&&("Identifier"===e.type||this.state.isAmbientContext||this.state.inType||this.raise(e.start,ee.PatternIsOptional),e.optional=!0);const t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}toAssignable(e,t=!1){switch(e.type){case"TSTypeCastExpression":return super.toAssignable(this.typeCastToParameter(e),t);case"TSParameterProperty":default:return super.toAssignable(e,t);case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(e,t);case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return e.expression=this.toAssignable(e.expression,t),e}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return e.expression=this.toAssignable(e.expression,t),e;default:return super.toAssignable(e,t)}}checkLVal(e,t,...r){var i;switch(e.type){case"TSTypeCastExpression":return;case"TSParameterProperty":return void this.checkLVal(e.parameter,"parameter property",...r);case"TSAsExpression":case"TSTypeAssertion":if(!(r[0]||"parenthesized expression"===t||null!=(i=e.extra)&&i.parenthesized)){this.raise(e.start,T.InvalidLhs,t);break}return void this.checkLVal(e.expression,"parenthesized expression",...r);case"TSNonNullExpression":return void this.checkLVal(e.expression,t,...r);default:return void super.checkLVal(e,t,...r)}}parseBindingAtom(){return this.state.type===l._this?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.isRelational("<")){const t=this.tsParseTypeArguments();if(this.match(l.parenL)){const r=super.parseMaybeDecoratorArguments(e);return r.typeParameters=t,r}this.unexpected(this.state.start,l.parenL)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){this.state.isAmbientContext&&this.match(l.comma)&&this.lookaheadCharCode()===e?this.next():super.checkCommaAfterRest(e)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(l.bang)||this.match(l.colon)||super.isClassProperty()}parseMaybeDefault(...e){const t=super.parseMaybeDefault(...e);return"AssignmentPattern"===t.type&&t.typeAnnotation&&t.right.start<t.typeAnnotation.start&&this.raise(t.typeAnnotation.start,ee.TypeAnnotationAfterAssign),t}getTokenFromCode(e){return!this.state.inType||62!==e&&60!==e?super.getTokenFromCode(e):this.finishOp(l.relational,1)}reScan_lt_gt(){if(this.match(l.relational)){const e=this.input.charCodeAt(this.state.start);60!==e&&62!==e||(this.state.pos-=1,this.readToken_lt_gt(e))}}toAssignableList(e){for(let t=0;t<e.length;t++){const r=e[t];if(r)switch(r.type){case"TSTypeCastExpression":e[t]=this.typeCastToParameter(r);break;case"TSAsExpression":case"TSTypeAssertion":this.state.maybeInArrowParameters?this.raise(r.start,ee.UnexpectedTypeCastInParameter):e[t]=this.typeCastToParameter(r)}}return super.toAssignableList(...arguments)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.end,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(){return this.match(l.colon)||super.shouldParseArrow()}shouldParseAsyncArrow(){return this.match(l.colon)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.isRelational("<")){const t=this.tsTryParseAndCatch((()=>this.tsParseTypeArguments()));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){const r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,...t)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e){if(this.match(l._class))return e.abstract=!0,this.parseClass(e,!0,!1);if(this.isContextual("interface")){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(e.start,ee.NonClassMethodPropertyHasAbstractModifer),this.next(),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,l._class)}parseMethod(...e){const t=super.parseMethod(...e);if(t.abstract){if(this.hasPlugin("estree")?!!t.value.body:!!t.body){const{key:e}=t;this.raise(t.start,ee.AbstractMethodHasImplementation,"Identifier"===e.type?e.name:`[${this.input.slice(e.start,e.end)}]`)}}return t}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()}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(l.modulo)){const e=this.state.start,t=this.startNode();if(this.eat(l.modulo),this.match(l.name)){const e=this.parseIdentifierName(this.state.start),r=this.createIdentifier(t,e);if(r.type="V8IntrinsicIdentifier",this.match(l.parenL))return r}this.unexpected(e)}}parseExprAtom(){return this.parseV8Intrinsic()||super.parseExprAtom(...arguments)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(l.placeholder)){const t=this.startNode();return this.next(),this.assertNoSpace("Unexpected space in placeholder."),t.name=super.parseIdentifier(!0),this.assertNoSpace("Unexpected space in placeholder."),this.expect(l.placeholder),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){return 37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(l.placeholder,2):super.getTokenFromCode(...arguments)}parseExprAtom(){return this.parsePlaceholder("Expression")||super.parseExprAtom(...arguments)}parseIdentifier(){return this.parsePlaceholder("Identifier")||super.parseIdentifier(...arguments)}checkReservedWord(e){void 0!==e&&super.checkReservedWord(...arguments)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom(...arguments)}checkLVal(e){"Placeholder"!==e.type&&super.checkLVal(...arguments)}toAssignable(e){return e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?(e.expectedNode="Pattern",e):super.toAssignable(...arguments)}isLet(e){if(super.isLet(e))return!0;if(!this.isContextual("let"))return!1;if(e)return!1;return this.lookahead().type===l.placeholder}verifyBreakContinue(e){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(...arguments)}parseExpressionStatement(e,t){if("Placeholder"!==t.type||t.extra&&t.extra.parenthesized)return super.parseExpressionStatement(...arguments);if(this.match(l.colon)){const r=e;return r.label=this.finishPlaceholder(t,"Identifier"),this.next(),r.body=this.parseStatement("label"),this.finishNode(r,"LabeledStatement")}return this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement")}parseBlock(){return this.parsePlaceholder("BlockStatement")||super.parseBlock(...arguments)}parseFunctionId(){return this.parsePlaceholder("Identifier")||super.parseFunctionId(...arguments)}parseClass(e,t,r){const i=t?"ClassDeclaration":"ClassExpression";this.next(),this.takeDecorators(e);const n=this.state.strict,s=this.parsePlaceholder("Identifier");if(s)if(this.match(l._extends)||this.match(l.placeholder)||this.match(l.braceL))e.id=s;else{if(r||!t)return e.id=null,e.body=this.finishPlaceholder(s,"ClassBody"),this.finishNode(e,i);this.unexpected(null,te.ClassNameIsRequired)}else this.parseClassId(e,t,r);return this.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||this.parseClassBody(!!e.superClass,n),this.finishNode(e,i)}parseExport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseExport(...arguments);if(!this.isContextual("from")&&!this.match(l.comma))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(t,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const r=this.startNode();return r.exported=t,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],super.parseExport(e)}isExportDefaultSpecifier(){if(this.match(l._default)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(l.placeholder.label,this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e){return!!(e.specifiers&&e.specifiers.length>0)||super.maybeParseExportDefaultSpecifier(...arguments)}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(...arguments);if(e.specifiers=[],!this.isContextual("from")&&!this.match(l.comma))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const r=this.startNodeAtNode(t);if(r.local=t,this.finishNode(r,"ImportDefaultSpecifier"),e.specifiers.push(r),this.eat(l.comma)){this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)}return this.expectContextual("from"),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource(...arguments)}}},se=Object.keys(ne),ae={sourceType:"script",sourceFilename:void 0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1};class oe{constructor(){this.strict=void 0,this.curLine=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.maybeInArrowParameters=!1,this.inPipeline=!1,this.inType=!1,this.noAnonFunctionType=!1,this.inPropertyName=!1,this.hasFlowComment=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.labels=[],this.decoratorStack=[[]],this.comments=[],this.trailingComments=[],this.leadingComments=[],this.commentStack=[],this.commentPreviousNode=null,this.pos=0,this.lineStart=0,this.type=l.eof,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.lastTokEnd=0,this.context=[x.braceStatement],this.exprAllowed=!0,this.containsEsc=!1,this.strictErrors=new Map,this.exportedIdentifiers=[],this.tokensLength=0}init(e){this.strict=!1!==e.strictMode&&"module"===e.sourceType,this.curLine=e.startLine,this.startLoc=this.endLoc=this.curPosition()}curPosition(){return new d(this.curLine,this.pos-this.lineStart)}clone(e){const t=new oe,r=Object.keys(this);for(let i=0,n=r.length;i<n;i++){const n=r[i];let s=this[n];!e&&Array.isArray(s)&&(s=s.slice()),t[n]=s}return t}}var _isDigit=function(e){return e>=48&&e<=57};const le=new Set(["g","m","s","i","y","u"]),ce={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},ue={bin:[48,49]};ue.oct=[...ue.bin,50,51,52,53,54,55],ue.dec=[...ue.oct,56,57],ue.hex=[...ue.dec,65,66,67,68,69,70,97,98,99,100,101,102];class pe{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new h(e.startLoc,e.endLoc)}}class de extends b{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.state=new oe,this.state.init(e),this.input=t,this.length=t.length,this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.isLookahead||(this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new pe(this.state))),this.state.lastTokEnd=this.state.end,this.state.lastTokStart=this.state.start,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}lookahead(){const e=this.state;this.state=e.clone(!0),this.isLookahead=!0,this.next(),this.isLookahead=!1;const t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){p.lastIndex=e;return e+p.exec(this.input)[0].length}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}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(t,e))),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){const e=this.curContext();if(null!=e&&e.preserveSpace||this.skipSpace(),this.state.start=this.state.pos,this.state.startLoc=this.state.curPosition(),this.state.pos>=this.length)return void this.finishToken(l.eof);const t=null==e?void 0:e.override;t?t(this):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}pushComment(e,t,r,i,n,s){const a={type:e?"CommentBlock":"CommentLine",value:t,start:r,end:i,loc:new h(n,s)};this.options.tokens&&this.pushToken(a),this.state.comments.push(a),this.addComment(a)}skipBlockComment(){const e=this.state.curPosition(),t=this.state.pos,r=this.input.indexOf("*/",this.state.pos+2);if(-1===r)throw this.raise(t,T.UnterminatedComment);let i;for(this.state.pos=r+2,u.lastIndex=t;(i=u.exec(this.input))&&i.index<this.state.pos;)++this.state.curLine,this.state.lineStart=i.index+i[0].length;this.isLookahead||this.pushComment(!0,this.input.slice(t+2,r),t,this.state.pos,e,this.state.curPosition())}skipLineComment(e){const t=this.state.pos,r=this.state.curPosition();let i=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!isNewLine(i)&&++this.state.pos<this.length;)i=this.input.charCodeAt(this.state.pos);this.isLookahead||this.pushComment(!1,this.input.slice(t+e,this.state.pos),t,this.state.pos,r,this.state.curPosition())}skipSpace(){e:for(;this.state.pos<this.length;){const e=this.input.charCodeAt(this.state.pos);switch(e){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:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!isWhitespace(e))break e;++this.state.pos}}}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)}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(this.state.pos,T.UnexpectedDigitAfterHash);if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"hash"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,123===t?T.RecordExpressionHashIncorrectStartSyntaxType:T.TupleExpressionHashIncorrectStartSyntaxType);123===t?this.finishToken(l.braceHashL):this.finishToken(l.bracketHashL),this.state.pos+=2}else isIdentifierStart(t)?(++this.state.pos,this.finishToken(l.privateName,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(l.privateName,this.readWord1())):this.finishOp(l.hash,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(l.ellipsis)):(++this.state.pos,this.finishToken(l.dot))}readToken_slash(){if(this.state.exprAllowed&&!this.state.inType)return++this.state.pos,void this.readRegexp();61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(l.assign,2):this.finishOp(l.slash,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;!isNewLine(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(l.interpreterDirective,r),!0}readToken_mult_modulo(e){let t=42===e?l.star:l.modulo,r=1,i=this.input.charCodeAt(this.state.pos+1);const n=this.state.exprAllowed;42===e&&42===i&&(r++,i=this.input.charCodeAt(this.state.pos+2),t=l.exponent),61!==i||n||(r++,t=l.assign),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(l.pipeline,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,T.RecordExpressionBarIncorrectEndSyntaxType);return void this.finishOp(l.braceBarR,2)}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,T.TupleExpressionBarIncorrectEndSyntaxType);return void this.finishOp(l.bracketBarR,2)}}61!==t?this.finishOp(124===e?l.bitwiseOR:l.bitwiseAND,1):this.finishOp(l.assign,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(l.assign,3):this.finishOp(124===e?l.logicalOR:l.logicalAND,2)}readToken_caret(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(l.assign,2):this.finishOp(l.bitwiseXOR,1)}readToken_plus_min(e){const t=this.input.charCodeAt(this.state.pos+1);if(t===e)return 45!==t||this.inModule||62!==this.input.charCodeAt(this.state.pos+2)||0!==this.state.lastTokEnd&&!this.hasPrecedingLineBreak()?void this.finishOp(l.incDec,2):(this.skipLineComment(3),this.skipSpace(),void this.nextToken());61===t?this.finishOp(l.assign,2):this.finishOp(l.plusMin,1)}readToken_lt_gt(e){const t=this.input.charCodeAt(this.state.pos+1);let r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.state.pos+2)?3:2,61===this.input.charCodeAt(this.state.pos+r)?void this.finishOp(l.assign,r+1):void this.finishOp(l.bitShift,r)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.state.pos+2)||45!==this.input.charCodeAt(this.state.pos+3)?(61===t&&(r=2),void this.finishOp(l.relational,r)):(this.skipLineComment(4),this.skipSpace(),void this.nextToken())}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(l.arrow)):void this.finishOp(61===e?l.eq:l.bang,1);this.finishOp(l.equality,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(l.assign,3):this.finishOp(l.nullishCoalescing,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(l.question)):(this.state.pos+=2,this.finishToken(l.questionDot))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(l.parenL);case 41:return++this.state.pos,void this.finishToken(l.parenR);case 59:return++this.state.pos,void this.finishToken(l.semi);case 44:return++this.state.pos,void this.finishToken(l.comma);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,T.TupleExpressionBarIncorrectStartSyntaxType);this.finishToken(l.bracketBarL),this.state.pos+=2}else++this.state.pos,this.finishToken(l.bracketL);return;case 93:return++this.state.pos,void this.finishToken(l.bracketR);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,T.RecordExpressionBarIncorrectStartSyntaxType);this.finishToken(l.braceBarL),this.state.pos+=2}else++this.state.pos,this.finishToken(l.braceL);return;case 125:return++this.state.pos,void this.finishToken(l.braceR);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(l.doubleColon,2):(++this.state.pos,this.finishToken(l.colon)));case 63:return void this.readToken_question();case 96:return++this.state.pos,void this.finishToken(l.backQuote);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:case 62:return void this.readToken_lt_gt(e);case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(l.tilde,1);case 64:return++this.state.pos,void this.finishToken(l.at);case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(isIdentifierStart(e))return void this.readWord(e)}throw this.raise(this.state.pos,T.InvalidOrUnexpectedToken,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.pos;let t,r;for(;;){if(this.state.pos>=this.length)throw this.raise(e,T.UnterminatedRegExp);const i=this.input.charAt(this.state.pos);if(c.test(i))throw this.raise(e,T.UnterminatedRegExp);if(t)t=!1;else{if("["===i)r=!0;else if("]"===i&&r)r=!1;else if("/"===i&&!r)break;t="\\\\"===i}++this.state.pos}const i=this.input.slice(e,this.state.pos);++this.state.pos;let n="";for(;this.state.pos<this.length;){const e=this.input[this.state.pos],t=this.codePointAtPos(this.state.pos);if(le.has(e))n.indexOf(e)>-1&&this.raise(this.state.pos+1,T.DuplicateRegExpFlags);else{if(!isIdentifierChar(t)&&92!==t)break;this.raise(this.state.pos+1,T.MalformedRegExpFlags)}++this.state.pos,n+=e}this.finishToken(l.regexp,{pattern:i,flags:n})}readInt(e,t,r,i=!0){const n=this.state.pos,s=16===e?ce.hex:ce.decBinOct,a=16===e?ue.hex:10===e?ue.dec:8===e?ue.oct:ue.bin;let o=!1,l=0;for(let n=0,c=null==t?1/0:t;n<c;++n){const t=this.input.charCodeAt(this.state.pos);let c;if(95!==t){if(c=t>=97?t-97+10:t>=65?t-65+10:_isDigit(t)?t-48:1/0,c>=e)if(this.options.errorRecovery&&c<=9)c=0,this.raise(this.state.start+n+2,T.InvalidDigit,e);else{if(!r)break;c=0,o=!0}++this.state.pos,l=l*e+c}else{const e=this.input.charCodeAt(this.state.pos-1),t=this.input.charCodeAt(this.state.pos+1);(-1===a.indexOf(t)||s.indexOf(e)>-1||s.indexOf(t)>-1||Number.isNaN(t))&&this.raise(this.state.pos,T.UnexpectedNumericSeparator),i||this.raise(this.state.pos,T.NumericSeparatorInEscapeSequence),++this.state.pos}}return this.state.pos===n||null!=t&&this.state.pos-n!==t||o?null:l}readRadixNumber(e){const t=this.state.pos;let r=!1;this.state.pos+=2;const i=this.readInt(e);null==i&&this.raise(this.state.start+2,T.InvalidDigit,e);const n=this.input.charCodeAt(this.state.pos);if(110===n)++this.state.pos,r=!0;else if(109===n)throw this.raise(t,T.InvalidDecimal);if(isIdentifierStart(this.codePointAtPos(this.state.pos)))throw this.raise(this.state.pos,T.NumberIdentifier);if(r){const e=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(l.bigint,e)}else this.finishToken(l.num,i)}readNumber(e){const t=this.state.pos;let r=!1,i=!1,n=!1,s=!1,a=!1;e||null!==this.readInt(10)||this.raise(t,T.InvalidNumber);const o=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(o){const e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(t,T.StrictOctalLiteral),!this.state.strict){const r=e.indexOf("_");r>0&&this.raise(r+t,T.ZeroDigitNumericSeparator)}a=o&&!/[89]/.test(e)}let c=this.input.charCodeAt(this.state.pos);if(46!==c||a||(++this.state.pos,this.readInt(10),r=!0,c=this.input.charCodeAt(this.state.pos)),69!==c&&101!==c||a||(c=this.input.charCodeAt(++this.state.pos),43!==c&&45!==c||++this.state.pos,null===this.readInt(10)&&this.raise(t,T.InvalidOrMissingExponent),r=!0,s=!0,c=this.input.charCodeAt(this.state.pos)),110===c&&((r||o)&&this.raise(t,T.InvalidBigIntLiteral),++this.state.pos,i=!0),109===c&&(this.expectPlugin("decimal",this.state.pos),(s||o)&&this.raise(t,T.InvalidDecimal),++this.state.pos,n=!0),isIdentifierStart(this.codePointAtPos(this.state.pos)))throw this.raise(this.state.pos,T.NumberIdentifier);const u=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(i)return void this.finishToken(l.bigint,u);if(n)return void this.finishToken(l.decimal,u);const p=a?parseInt(u,8):parseFloat(u);this.finishToken(l.num,p)}readCodePoint(e){let t;if(123===this.input.charCodeAt(this.state.pos)){const r=++this.state.pos;if(t=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,!0,e),++this.state.pos,null!==t&&t>1114111){if(!e)return null;this.raise(r,T.InvalidCodePoint)}}else t=this.readHexChar(4,!1,e);return t}readString(e){let t="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,T.UnterminatedString);const i=this.input.charCodeAt(this.state.pos);if(i===e)break;if(92===i)t+=this.input.slice(r,this.state.pos),t+=this.readEscapedChar(!1),r=this.state.pos;else if(8232===i||8233===i)++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;else{if(isNewLine(i))throw this.raise(this.state.start,T.UnterminatedString);++this.state.pos}}t+=this.input.slice(r,this.state.pos++),this.finishToken(l.string,t)}readTmplToken(){let e="",t=this.state.pos,r=!1;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,T.UnterminatedTemplate);const i=this.input.charCodeAt(this.state.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(l.template)?36===i?(this.state.pos+=2,void this.finishToken(l.dollarBraceL)):(++this.state.pos,void this.finishToken(l.backQuote)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(l.template,r?null:e));if(92===i){e+=this.input.slice(t,this.state.pos);const i=this.readEscapedChar(!0);null===i?r=!0:e+=i,t=this.state.pos}else if(isNewLine(i)){switch(e+=this.input.slice(t,this.state.pos),++this.state.pos,i){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:e+="\\n";break;default:e+=String.fromCharCode(i)}++this.state.curLine,this.state.lineStart=this.state.pos,t=this.state.pos}else++this.state.pos}}recordStrictModeErrors(e,t){this.state.strict&&!this.state.strictErrors.has(e)?this.raise(e,t):this.state.strictErrors.set(e,t)}readEscapedChar(e){const t=!e,r=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,r){case 110:return"\\n";case 114:return"\\r";case 120:{const e=this.readHexChar(2,!1,t);return null===e?null:String.fromCharCode(e)}case 117:{const e=this.readCodePoint(t);return null===e?null:String.fromCodePoint(e)}case 116:return"\\t";case 98:return"\\b";case 118:return"\\v";case 102:return"\\f";case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:this.state.lineStart=this.state.pos,++this.state.curLine;case 8232:case 8233:return"";case 56:case 57:if(e)return null;this.recordStrictModeErrors(this.state.pos-1,T.StrictNumericEscape);default:if(r>=48&&r<=55){const t=this.state.pos-1;let r=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.state.pos+=r.length-1;const n=this.input.charCodeAt(this.state.pos);if("0"!==r||56===n||57===n){if(e)return null;this.recordStrictModeErrors(t,T.StrictNumericEscape)}return String.fromCharCode(i)}return String.fromCharCode(r)}}readHexChar(e,t,r){const i=this.state.pos,n=this.readInt(16,e,t,!1);return null===n&&(r?this.raise(i,T.InvalidEscapeSequence):this.state.pos=i-1),n}readWord1(e){this.state.containsEsc=!1;let t="";const r=this.state.pos;let i=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(isIdentifierChar(e))this.state.pos+=e<=65535?1:2;else{if(92!==e)break;{this.state.containsEsc=!0,t+=this.input.slice(i,this.state.pos);const e=this.state.pos,n=this.state.pos===r?isIdentifierStart:isIdentifierChar;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(this.state.pos,T.MissingUnicodeEscape),i=this.state.pos-1;continue}++this.state.pos;const s=this.readCodePoint(!0);null!==s&&(n(s)||this.raise(e,T.EscapedCharNotAnIdentifier),t+=String.fromCodePoint(s)),i=this.state.pos}}}return t+this.input.slice(i,this.state.pos)}readWord(e){const t=this.readWord1(e),r=o.get(t)||l.name;this.finishToken(r,t)}checkKeywordEscapes(){const e=this.state.type.keyword;e&&this.state.containsEsc&&this.raise(this.state.start,T.InvalidEscapedReservedWord,e)}braceIsBlock(e){const t=this.curContext();return t===x.functionExpression||t===x.functionStatement||(e!==l.colon||t!==x.braceStatement&&t!==x.braceExpression?e===l._return||e===l.name&&this.state.exprAllowed?this.hasPrecedingLineBreak():e===l._else||e===l.semi||e===l.eof||e===l.parenR||e===l.arrow||(e===l.braceL?t===x.braceStatement:e!==l._var&&e!==l._const&&e!==l.name&&(e===l.relational||!this.state.exprAllowed)):!t.isExpr)}updateContext(e){const t=this.state.type;let r;!t.keyword||e!==l.dot&&e!==l.questionDot?(r=t.updateContext)?r.call(this,e):this.state.exprAllowed=t.beforeExpr:this.state.exprAllowed=!1}}class he{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class fe{constructor(e){this.stack=[],this.undefinedPrivateNames=new Map,this.raise=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new he)}exit(){const e=this.stack.pop(),t=this.current();for(const[r,i]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(r)||t.undefinedPrivateNames.set(r,i):this.raise(i,T.InvalidPrivateFieldResolution,r)}declarePrivateName(e,t,r){const i=this.current();let n=i.privateNames.has(e);if(3&t){const r=n&&i.loneAccessors.get(e);if(r){n=(3&r)===(3&t)||(4&r)!==(4&t),n||i.loneAccessors.delete(e)}else n||i.loneAccessors.set(e,t)}n&&this.raise(r,T.PrivateNameRedeclaration,e),i.privateNames.add(e),i.undefinedPrivateNames.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.raise(t,T.InvalidPrivateFieldResolution,e)}}class me{constructor(e=0){this.type=void 0,this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class ye extends me{constructor(e){super(e),this.errors=new Map}recordDeclarationError(e,t){this.errors.set(e,t)}clearDeclarationError(e){this.errors.delete(e)}iterateErrors(e){this.errors.forEach(e)}}class Te{constructor(e){this.stack=[new me],this.raise=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const{stack:r}=this;let i=r.length-1,n=r[i];for(;!n.isCertainlyParameterDeclaration();){if(!n.canBeArrowParameterDeclaration())return;n.recordDeclarationError(e,t),n=r[--i]}this.raise(e,t)}recordParenthesizedIdentifierError(e,t){const{stack:r}=this,i=r[r.length-1];if(i.isCertainlyParameterDeclaration())this.raise(e,t);else{if(!i.canBeArrowParameterDeclaration())return;i.recordDeclarationError(e,t)}}recordAsyncArrowParametersError(e,t){const{stack:r}=this;let i=r.length-1,n=r[i];for(;n.canBeArrowParameterDeclaration();)2===n.type&&n.recordDeclarationError(e,t),n=r[--i]}validateAsPattern(){const{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(((t,r)=>{this.raise(r,t);let i=e.length-2,n=e[i];for(;n.canBeArrowParameterDeclaration();)n.clearDeclarationError(r),n=e[--i]}))}}function newExpressionScope(){return new me}class ge extends de{addExtra(e,t,r){if(!e)return;(e.extra=e.extra||{})[t]=r}isRelational(e){return this.match(l.relational)&&this.state.value===e}expectRelational(e){this.isRelational(e)?this.next():this.unexpected(null,l.relational)}isContextual(e){return this.match(l.name)&&this.state.value===e&&!this.state.containsEsc}isUnparsedContextual(e,t){const r=e+t.length;return this.input.slice(e,r)===t&&(r===this.input.length||!isIdentifierChar(this.input.charCodeAt(r)))}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return this.isContextual(e)&&this.eat(l.name)}expectContextual(e,t){this.eatContextual(e)||this.unexpected(null,t)}canInsertSemicolon(){return this.match(l.eof)||this.match(l.braceR)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return c.test(this.input.slice(this.state.lastTokEnd,this.state.start))}hasFollowingLineBreak(){return c.test(this.input.slice(this.state.end,this.nextTokenStart()))}isLineTerminator(){return this.eat(l.semi)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(l.semi))||this.raise(this.state.lastTokEnd,T.MissingSemicolon)}expect(e,t){this.eat(e)||this.unexpected(t,e)}assertNoSpace(e="Unexpected space."){this.state.start>this.state.lastTokEnd&&this.raise(this.state.lastTokEnd,{code:y.SyntaxError,reasonCode:"UnexpectedSpace",template:e})}unexpected(e,t={code:y.SyntaxError,reasonCode:"UnexpectedToken",template:"Unexpected token"}){throw t instanceof a&&(t={code:y.SyntaxError,reasonCode:"UnexpectedToken",template:`Unexpected token, expected "${t.label}"`}),this.raise(null!=e?e:this.state.start,t)}expectPlugin(e,t){if(!this.hasPlugin(e))throw this.raiseWithData(null!=t?t:this.state.start,{missingPlugin:[e]},`This experimental syntax requires enabling the parser plugin: \'${e}\'`);return!0}expectOnePlugin(e,t){if(!e.some((e=>this.hasPlugin(e))))throw this.raiseWithData(null!=t?t:this.state.start,{missingPlugin:e},`This experimental syntax requires enabling one of the following parser plugin(s): \'${e.join(", ")}\'`)}tryParse(e,t=this.state.clone()){const r={node:null};try{const i=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:i,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const i=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:i};if(e===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:i};throw e}}checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssign:r,doubleProto:i}=e;if(!t)return r>=0||i>=0;r>=0&&this.unexpected(r),i>=0&&this.raise(i,T.DuplicateProto)}isLiteralPropertyName(){return this.match(l.name)||!!this.state.type.keyword||this.match(l.string)||this.match(l.num)||this.match(l.bigint)||this.match(l.decimal)}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)}isOptionalChain(e){return"OptionalMemberExpression"===e.type||"OptionalCallExpression"===e.type}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.state.exportedIdentifiers;this.state.exportedIdentifiers=[];const i=this.inModule;this.inModule=e;const n=this.scope,s=this.getScopeHandler();this.scope=new s(this.raise.bind(this),this.inModule);const a=this.prodParam;this.prodParam=new Z;const o=this.classScope;this.classScope=new fe(this.raise.bind(this));const l=this.expressionScope;return this.expressionScope=new Te(this.raise.bind(this)),()=>{this.state.labels=t,this.state.exportedIdentifiers=r,this.inModule=i,this.scope=n,this.prodParam=a,this.classScope=o,this.expressionScope=l}}enterInitialScopes(){let e=0;this.hasPlugin("topLevelAwait")&&this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e)}}class be{constructor(){this.shorthandAssign=-1,this.doubleProto=-1}}class Se{constructor(e,t,r){this.type=void 0,this.start=void 0,this.end=void 0,this.loc=void 0,this.range=void 0,this.leadingComments=void 0,this.trailingComments=void 0,this.innerComments=void 0,this.extra=void 0,this.type="",this.start=t,this.end=0,this.loc=new h(r),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}__clone(){const e=new Se,t=Object.keys(this);for(let r=0,i=t.length;r<i;r++){const i=t[r];"leadingComments"!==i&&"trailingComments"!==i&&"innerComments"!==i&&(e[i]=this[i])}return e}}class xe extends ge{startNode(){return new Se(this,this.state.start,this.state.startLoc)}startNodeAt(e,t){return new Se(this,e,t)}startNodeAtNode(e){return this.startNodeAt(e.start,e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEnd,this.state.lastTokEndLoc)}finishNodeAt(e,t,r,i){return e.type=t,e.end=r,e.loc.end=i,this.options.ranges&&(e.range[1]=r),this.processComment(e),e}resetStartLocation(e,t,r){e.start=t,e.loc.start=r,this.options.ranges&&(e.range[0]=t)}resetEndLocation(e,t=this.state.lastTokEnd,r=this.state.lastTokEndLoc){e.end=t,e.loc.end=r,this.options.ranges&&(e.range[1]=t)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.start,t.loc.start)}}const unwrapParenthesizedExpression=e=>"ParenthesizedExpression"===e.type?unwrapParenthesizedExpression(e.expression):e;class Ee extends xe{toAssignable(e,t=!1){var r,i;let n;switch(("ParenthesizedExpression"===e.type||null!=(r=e.extra)&&r.parenthesized)&&(n=unwrapParenthesizedExpression(e),t?"Identifier"===n.type?this.expressionScope.recordParenthesizedIdentifierError(e.start,T.InvalidParenthesizedAssignment):"MemberExpression"!==n.type&&this.raise(e.start,T.InvalidParenthesizedAssignment):this.raise(e.start,T.InvalidParenthesizedAssignment)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":e.type="ObjectPattern";for(let r=0,i=e.properties.length,n=i-1;r<i;r++){var s;const i=e.properties[r],a=r===n;this.toAssignableObjectExpressionProp(i,a,t),a&&"RestElement"===i.type&&null!=(s=e.extra)&&s.trailingComma&&this.raiseRestNotLast(e.extra.trailingComma)}break;case"ObjectProperty":this.toAssignable(e.value,t);break;case"SpreadElement":{this.checkToRestConversion(e),e.type="RestElement";const r=e.argument;this.toAssignable(r,t);break}case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,null==(i=e.extra)?void 0:i.trailingComma,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,T.MissingEqInAssignment),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(n,t)}return e}toAssignableObjectExpressionProp(e,t,r){if("ObjectMethod"===e.type){const t="get"===e.kind||"set"===e.kind?T.PatternHasAccessor:T.PatternHasMethod;this.raise(e.key.start,t)}else"SpreadElement"!==e.type||t?this.toAssignable(e,r):this.raiseRestNotLast(e.start)}toAssignableList(e,t,r){let i=e.length;if(i){const n=e[i-1];if("RestElement"===(null==n?void 0:n.type))--i;else if("SpreadElement"===(null==n?void 0:n.type)){n.type="RestElement";let e=n.argument;this.toAssignable(e,r),e=unwrapParenthesizedExpression(e),"Identifier"!==e.type&&"MemberExpression"!==e.type&&"ArrayPattern"!==e.type&&"ObjectPattern"!==e.type&&this.unexpected(e.start),t&&this.raiseTrailingCommaAfterRest(t),--i}}for(let t=0;t<i;t++){const i=e[t];i&&(this.toAssignable(i,r),"RestElement"===i.type&&this.raiseRestNotLast(i.start))}return e}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,t){const r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(e,void 0,t),this.finishNode(r,"SpreadElement")}parseRestBinding(){const e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case l.bracketL:{const e=this.startNode();return this.next(),e.elements=this.parseBindingList(l.bracketR,93,!0),this.finishNode(e,"ArrayPattern")}case l.braceL:return this.parseObjectLike(l.braceR,!0)}return this.parseIdentifier()}parseBindingList(e,t,r,i){const n=[];let s=!0;for(;!this.eat(e);)if(s?s=!1:this.expect(l.comma),r&&this.match(l.comma))n.push(null);else{if(this.eat(e))break;if(this.match(l.ellipsis)){n.push(this.parseAssignableListItemTypes(this.parseRestBinding())),this.checkCommaAfterRest(t),this.expect(e);break}{const e=[];for(this.match(l.at)&&this.hasPlugin("decorators")&&this.raise(this.state.start,T.UnsupportedParameterDecorator);this.match(l.at);)e.push(this.parseDecorator());n.push(this.parseAssignableListItem(i,e))}}return n}parseAssignableListItem(e,t){const r=this.parseMaybeDefault();this.parseAssignableListItemTypes(r);const i=this.parseMaybeDefault(r.start,r.loc.start,r);return t.length&&(r.decorators=t),i}parseAssignableListItemTypes(e){return e}parseMaybeDefault(e,t,r){var i,n,s;if(t=null!=(i=t)?i:this.state.startLoc,e=null!=(n=e)?n:this.state.start,r=null!=(s=r)?s:this.parseBindingAtom(),!this.eat(l.eq))return r;const a=this.startNodeAt(e,t);return a.left=r,a.right=this.parseMaybeAssignAllowIn(),this.finishNode(a,"AssignmentPattern")}checkLVal(e,t,r=64,i,n,s=!1){switch(e.type){case"Identifier":{const{name:t}=e;this.state.strict&&(s?isStrictBindReservedWord(t,this.inModule):isStrictBindOnlyReservedWord(t))&&this.raise(e.start,64===r?T.StrictEvalArguments:T.StrictEvalArgumentsBinding,t),i&&(i.has(t)?this.raise(e.start,T.ParamDupe):i.add(t)),n&&"let"===t&&this.raise(e.start,T.LetInLexicalBinding),64&r||this.scope.declareName(t,r,e.start);break}case"MemberExpression":64!==r&&this.raise(e.start,T.InvalidPropertyBindingPattern);break;case"ObjectPattern":for(let t of e.properties){if(this.isObjectProperty(t))t=t.value;else if(this.isObjectMethod(t))continue;this.checkLVal(t,"object destructuring pattern",r,i,n)}break;case"ArrayPattern":for(const t of e.elements)t&&this.checkLVal(t,"array destructuring pattern",r,i,n);break;case"AssignmentPattern":this.checkLVal(e.left,"assignment pattern",r,i);break;case"RestElement":this.checkLVal(e.argument,"rest element",r,i);break;case"ParenthesizedExpression":this.checkLVal(e.expression,"parenthesized expression",r,i);break;default:this.raise(e.start,64===r?T.InvalidLhs:T.InvalidLhsBinding,t)}}checkToRestConversion(e){"Identifier"!==e.argument.type&&"MemberExpression"!==e.argument.type&&this.raise(e.argument.start,T.InvalidRestAssignmentPattern)}checkCommaAfterRest(e){this.match(l.comma)&&(this.lookaheadCharCode()===e?this.raiseTrailingCommaAfterRest(this.state.start):this.raiseRestNotLast(this.state.start))}raiseRestNotLast(e){throw this.raise(e,T.ElementAfterRest)}raiseTrailingCommaAfterRest(e){this.raise(e,T.RestTrailingComma)}}class Pe extends Ee{checkProto(e,t,r,i){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return;const n=e.key;if("__proto__"===("Identifier"===n.type?n.name:n.value)){if(t)return void this.raise(n.start,T.RecordNoProto);r.used&&(i?-1===i.doubleProto&&(i.doubleProto=n.start):this.raise(n.start,T.DuplicateProto)),r.used=!0}}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&e.start===t}getExpression(){let e=0;this.hasPlugin("topLevelAwait")&&this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e),this.nextToken();const t=this.parseExpression();return this.match(l.eof)||this.unexpected(),t.comments=this.state.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t}parseExpression(e,t){return e?this.disallowInAnd((()=>this.parseExpressionBase(t))):this.allowInAnd((()=>this.parseExpressionBase(t)))}parseExpressionBase(e){const t=this.state.start,r=this.state.startLoc,i=this.parseMaybeAssign(e);if(this.match(l.comma)){const n=this.startNodeAt(t,r);for(n.expressions=[i];this.eat(l.comma);)n.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(n.expressions),this.finishNode(n,"SequenceExpression")}return i}parseMaybeAssignDisallowIn(e,t,r){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t,r)))}parseMaybeAssignAllowIn(e,t,r){return this.allowInAnd((()=>this.parseMaybeAssign(e,t,r)))}parseMaybeAssign(e,t,r){const i=this.state.start,n=this.state.startLoc;if(this.isContextual("yield")&&this.prodParam.hasYield){this.state.exprAllowed=!0;let e=this.parseYield();return t&&(e=t.call(this,e,i,n)),e}let s;e?s=!1:(e=new be,s=!0),(this.match(l.parenL)||this.match(l.name))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(e,r);if(t&&(a=t.call(this,a,i,n)),this.state.type.isAssign){const t=this.startNodeAt(i,n),r=this.state.value;return t.operator=r,this.match(l.eq)?(t.left=this.toAssignable(a,!0),e.doubleProto=-1):t.left=a,e.shorthandAssign>=t.left.start&&(e.shorthandAssign=-1),this.checkLVal(a,"assignment expression"),this.next(),t.right=this.parseMaybeAssign(),this.finishNode(t,"AssignmentExpression")}return s&&this.checkExpressionErrors(e,!0),a}parseMaybeConditional(e,t){const r=this.state.start,i=this.state.startLoc,n=this.state.potentialArrowAt,s=this.parseExprOps(e);return this.shouldExitDescending(s,n)?s:this.parseConditional(s,r,i,t)}parseConditional(e,t,r,i){if(this.eat(l.question)){const i=this.startNodeAt(t,r);return i.test=e,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(l.colon),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return e}parseExprOps(e){const t=this.state.start,r=this.state.startLoc,i=this.state.potentialArrowAt,n=this.parseMaybeUnary(e);return this.shouldExitDescending(n,i)?n:this.parseExprOp(n,t,r,-1)}parseExprOp(e,t,r,i){let n=this.state.type.binop;if(null!=n&&(this.prodParam.hasIn||!this.match(l._in))&&n>i){const s=this.state.type;if(s===l.pipeline){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.state.inPipeline=!0,this.checkPipelineAtInfixOperator(e,t)}const a=this.startNodeAt(t,r);a.left=e,a.operator=this.state.value;const o=s===l.logicalOR||s===l.logicalAND,c=s===l.nullishCoalescing;if(c&&(n=l.logicalAND.binop),this.next(),s===l.pipeline&&"minimal"===this.getPluginOption("pipelineOperator","proposal")&&this.match(l.name)&&"await"===this.state.value&&this.prodParam.hasAwait)throw this.raise(this.state.start,T.UnexpectedAwaitAfterPipelineBody);a.right=this.parseExprOpRightExpr(s,n),this.finishNode(a,o||c?"LogicalExpression":"BinaryExpression");const u=this.state.type;if(c&&(u===l.logicalOR||u===l.logicalAND)||o&&u===l.nullishCoalescing)throw this.raise(this.state.start,T.MixingCoalesceWithLogical);return this.parseExprOp(a,t,r,i)}return e}parseExprOpRightExpr(e,t){const r=this.state.start,i=this.state.startLoc;if(e===l.pipeline)switch(this.getPluginOption("pipelineOperator","proposal")){case"smart":return this.withTopicPermittingContext((()=>this.parseSmartPipelineBody(this.parseExprOpBaseRightExpr(e,t),r,i)));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){const r=this.state.start,i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnary(),r,i,e.rightAssociative?t-1:t)}checkExponentialAfterUnary(e){this.match(l.exponent)&&this.raise(e.argument.start,T.UnexpectedTokenUnaryExponentiation)}parseMaybeUnary(e,t){const r=this.state.start,i=this.state.startLoc,n=this.isContextual("await");if(n&&this.isAwaitAllowed()){this.next();const e=this.parseAwait(r,i);return t||this.checkExponentialAfterUnary(e),e}if(this.isContextual("module")&&123===this.lookaheadCharCode()&&!this.hasFollowingLineBreak())return this.parseModuleExpression();const s=this.match(l.incDec),a=this.startNode();if(this.state.type.prefix){a.operator=this.state.value,a.prefix=!0,this.match(l._throw)&&this.expectPlugin("throwExpressions");const r=this.match(l._delete);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&r){const e=a.argument;"Identifier"===e.type?this.raise(a.start,T.StrictDelete):this.hasPropertyAsPrivateName(e)&&this.raise(a.start,T.DeletePrivateField)}if(!s)return t||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}const o=this.parseUpdate(a,s,e);if(n){if((this.hasPlugin("v8intrinsic")?this.state.type.startsExpr:this.state.type.startsExpr&&!this.match(l.modulo))&&!this.isAmbiguousAwait())return this.raiseOverwrite(r,this.hasPlugin("topLevelAwait")?T.AwaitNotInAsyncContext:T.AwaitNotInAsyncFunction),this.parseAwait(r,i)}return o}parseUpdate(e,t,r){if(t)return this.checkLVal(e.argument,"prefix operation"),this.finishNode(e,"UpdateExpression");const i=this.state.start,n=this.state.startLoc;let s=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return s;for(;this.state.type.postfix&&!this.canInsertSemicolon();){const e=this.startNodeAt(i,n);e.operator=this.state.value,e.prefix=!1,e.argument=s,this.checkLVal(s,"postfix operation"),this.next(),s=this.finishNode(e,"UpdateExpression")}return s}parseExprSubscripts(e){const t=this.state.start,r=this.state.startLoc,i=this.state.potentialArrowAt,n=this.parseExprAtom(e);return this.shouldExitDescending(n,i)?n:this.parseSubscripts(n,t,r)}parseSubscripts(e,t,r,i){const n={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,r,i,n),n.maybeAsyncArrow=!1}while(!n.stop);return e}parseSubscript(e,t,r,i,n){if(!i&&this.eat(l.doubleColon))return this.parseBind(e,t,r,i,n);if(this.match(l.backQuote))return this.parseTaggedTemplateExpression(e,t,r,n);let s=!1;if(this.match(l.questionDot)){if(i&&40===this.lookaheadCharCode())return n.stop=!0,e;n.optionalChainMember=s=!0,this.next()}return!i&&this.match(l.parenL)?this.parseCoverCallAndAsyncArrowHead(e,t,r,n,s):s||this.match(l.bracketL)||this.eat(l.dot)?this.parseMember(e,t,r,n,s):(n.stop=!0,e)}parseMember(e,t,r,i,n){const s=this.startNodeAt(t,r),a=this.eat(l.bracketL);s.object=e,s.computed=a;const o=!a&&this.match(l.privateName)&&this.state.value,c=a?this.parseExpression():o?this.parsePrivateName():this.parseIdentifier(!0);return!1!==o&&("Super"===s.object.type&&this.raise(t,T.SuperPrivateField),this.classScope.usePrivateName(o,c.start)),s.property=c,a&&this.expect(l.bracketR),i.optionalChainMember?(s.optional=n,this.finishNode(s,"OptionalMemberExpression")):this.finishNode(s,"MemberExpression")}parseBind(e,t,r,i,n){const s=this.startNodeAt(t,r);return s.object=e,s.callee=this.parseNoCallExpr(),n.stop=!0,this.parseSubscripts(this.finishNode(s,"BindExpression"),t,r,i)}parseCoverCallAndAsyncArrowHead(e,t,r,i,n){const s=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0,this.next();let a=this.startNodeAt(t,r);return a.callee=e,i.maybeAsyncArrow&&this.expressionScope.enter(new ye(2)),i.optionalChainMember&&(a.optional=n),a.arguments=n?this.parseCallExpressionArguments(l.parenR,!1):this.parseCallExpressionArguments(l.parenR,i.maybeAsyncArrow,"Import"===e.type,"Super"!==e.type,a),this.finishCallExpression(a,i.optionalChainMember),i.maybeAsyncArrow&&this.shouldParseAsyncArrow()&&!n?(i.stop=!0,this.expressionScope.validateAsPattern(),this.expressionScope.exit(),a=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t,r),a)):(i.maybeAsyncArrow&&this.expressionScope.exit(),this.toReferencedArguments(a)),this.state.maybeInArrowParameters=s,a}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r,i){const n=this.startNodeAt(t,r);return n.tag=e,n.quasi=this.parseTemplate(!0),i.optionalChainMember&&this.raise(t,T.OptionalChainingNoTemplate),this.finishNode(n,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&e.start===this.state.potentialArrowAt}finishCallExpression(e,t){if("Import"===e.callee.type)if(2===e.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),0===e.arguments.length||e.arguments.length>2)this.raise(e.start,T.ImportCallArity,this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?"one or two arguments":"one argument");else for(const t of e.arguments)"SpreadElement"===t.type&&this.raise(t.start,T.ImportCallSpreadArgument);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r,i,n){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(l.comma),this.match(e)){!r||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(this.state.lastTokStart,T.ImportCallArgumentTrailingComma),n&&this.addExtra(n,"trailingComma",this.state.lastTokStart),this.next();break}s.push(this.parseExprListItem(!1,t?new be:void 0,t?{start:0}:void 0,i))}return this.state.inFSharpPipelineDirectBody=o,s}shouldParseAsyncArrow(){return this.match(l.arrow)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var r;return this.expect(l.arrow),this.parseArrowExpression(e,t.arguments,!0,null==(r=t.extra)?void 0:r.trailingComma),e}parseNoCallExpr(){const e=this.state.start,t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,t,!0)}parseExprAtom(e){this.state.type===l.slash&&this.readRegexp();const t=this.state.potentialArrowAt===this.state.start;let r;switch(this.state.type){case l._super:return this.parseSuper();case l._import:return r=this.startNode(),this.next(),this.match(l.dot)?this.parseImportMetaProperty(r):(this.match(l.parenL)||this.raise(this.state.lastTokStart,T.UnsupportedImport),this.finishNode(r,"Import"));case l._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case l.name:{const e=this.state.containsEsc,r=this.parseIdentifier();if(!e&&"async"===r.name&&!this.canInsertSemicolon()){if(this.match(l._function)){const e=this.state.context.length-1;if(this.state.context[e]!==x.functionStatement)throw new Error("Internal error");return this.state.context[e]=x.functionExpression,this.next(),this.parseFunction(this.startNodeAtNode(r),void 0,!0)}if(this.match(l.name))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(r):r;if(this.match(l._do))return this.parseDo(!0)}return t&&this.match(l.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(r),[r],!1)):r}case l._do:return this.parseDo(!1);case l.regexp:{const e=this.state.value;return r=this.parseLiteral(e.value,"RegExpLiteral"),r.pattern=e.pattern,r.flags=e.flags,r}case l.num:return this.parseLiteral(this.state.value,"NumericLiteral");case l.bigint:return this.parseLiteral(this.state.value,"BigIntLiteral");case l.decimal:return this.parseLiteral(this.state.value,"DecimalLiteral");case l.string:return this.parseLiteral(this.state.value,"StringLiteral");case l._null:return r=this.startNode(),this.next(),this.finishNode(r,"NullLiteral");case l._true:case l._false:return this.parseBooleanLiteral();case l.parenL:return this.parseParenAndDistinguishExpression(t);case l.bracketBarL:case l.bracketHashL:return this.parseArrayLike(this.state.type===l.bracketBarL?l.bracketBarR:l.bracketR,!1,!0,e);case l.bracketL:return this.parseArrayLike(l.bracketR,!0,!1,e);case l.braceBarL:case l.braceHashL:return this.parseObjectLike(this.state.type===l.braceBarL?l.braceBarR:l.braceR,!1,!0,e);case l.braceL:return this.parseObjectLike(l.braceR,!1,!1,e);case l._function:return this.parseFunctionOrFunctionSent();case l.at:this.parseDecorators();case l._class:return r=this.startNode(),this.takeDecorators(r),this.parseClass(r,!1);case l._new:return this.parseNewOrNewTarget();case l.backQuote:return this.parseTemplate(!1);case l.doubleColon:{r=this.startNode(),this.next(),r.object=null;const e=r.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(r,"BindExpression");throw this.raise(e.start,T.UnsupportedBind)}case l.privateName:{const e=this.state.start,t=this.state.value;if(r=this.parsePrivateName(),this.match(l._in))this.expectPlugin("privateIn"),this.classScope.usePrivateName(t,r.start);else{if(!this.hasPlugin("privateIn"))throw this.unexpected(e);this.raise(this.state.start,T.PrivateInExpectedIn,t)}return r}case l.hash:if(this.state.inPipeline)return r=this.startNode(),"smart"!==this.getPluginOption("pipelineOperator","proposal")&&this.raise(r.start,T.PrimaryTopicRequiresSmartPipeline),this.next(),this.primaryTopicReferenceIsAllowedInCurrentTopicContext()||this.raise(r.start,T.PrimaryTopicNotAllowed),this.registerTopicReference(),this.finishNode(r,"PipelinePrimaryTopicReference");case l.relational:if("<"===this.state.value){const e=this.input.codePointAt(this.nextTokenStart());(isIdentifierStart(e)||62===e)&&this.expectOnePlugin(["jsx","flow","typescript"])}default:throw this.unexpected()}}parseAsyncArrowUnaryFunction(e){const t=this.startNodeAtNode(e);this.prodParam.enter(functionFlags(!0,this.prodParam.hasYield));const r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(this.state.pos,T.LineTerminatorBeforeArrow),this.expect(l.arrow),this.parseArrowExpression(t,r,!0),t}parseDo(e){this.expectPlugin("doExpressions"),e&&this.expectPlugin("asyncDoExpressions");const t=this.startNode();t.async=e,this.next();const r=this.state.labels;return this.state.labels=[],e?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=r,this.finishNode(t,"DoExpression")}parseSuper(){const e=this.startNode();return this.next(),!this.match(l.parenL)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(e.start,T.UnexpectedSuper):this.raise(e.start,T.SuperNotAllowed),this.match(l.parenL)||this.match(l.bracketL)||this.match(l.dot)||this.raise(e.start,T.UnsupportedSuper),this.finishNode(e,"Super")}parseBooleanLiteral(){const e=this.startNode();return e.value=this.match(l._true),this.next(),this.finishNode(e,"BooleanLiteral")}parseMaybePrivateName(e){return this.match(l.privateName)?(e||this.raise(this.state.start+1,T.UnexpectedPrivateField),this.parsePrivateName()):this.parseIdentifier(!0)}parsePrivateName(){const e=this.startNode(),t=this.startNodeAt(this.state.start+1,new d(this.state.curLine,this.state.start+1-this.state.lineStart)),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(l.dot)){const t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,r){e.meta=t,"function"===t.name&&"sent"===r&&(this.isContextual(r)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected());const i=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||i)&&this.raise(e.property.start,T.UnsupportedMetaProperty,t.name,r),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){const t=this.createIdentifier(this.startNodeAtNode(e),"import");return this.next(),this.isContextual("meta")&&(this.inModule||this.raise(t.start,g.ImportMetaOutsideModule),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")}parseLiteral(e,t,r,i){r=r||this.state.start,i=i||this.state.startLoc;const n=this.startNodeAt(r,i);return this.addExtra(n,"rawValue",e),this.addExtra(n,"raw",this.input.slice(r,this.state.end)),n.value=e,this.next(),this.finishNode(n,t)}parseParenAndDistinguishExpression(e){const t=this.state.start,r=this.state.startLoc;let i;this.next(),this.expressionScope.enter(new ye(1));const n=this.state.maybeInArrowParameters,s=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const a=this.state.start,o=this.state.startLoc,c=[],u=new be,p={start:0};let d,h,f=!0;for(;!this.match(l.parenR);){if(f)f=!1;else if(this.expect(l.comma,p.start||null),this.match(l.parenR)){h=this.state.start;break}if(this.match(l.ellipsis)){const e=this.state.start,t=this.state.startLoc;d=this.state.start,c.push(this.parseParenItem(this.parseRestBinding(),e,t)),this.checkCommaAfterRest(41);break}c.push(this.parseMaybeAssignAllowIn(u,this.parseParenItem,p))}const m=this.state.lastTokEnd,y=this.state.lastTokEndLoc;this.expect(l.parenR),this.state.maybeInArrowParameters=n,this.state.inFSharpPipelineDirectBody=s;let T=this.startNodeAt(t,r);if(e&&this.shouldParseArrow()&&(T=this.parseArrow(T)))return this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(T,c,!1),T;if(this.expressionScope.exit(),c.length||this.unexpected(this.state.lastTokStart),h&&this.unexpected(h),d&&this.unexpected(d),this.checkExpressionErrors(u,!0),p.start&&this.unexpected(p.start),this.toReferencedListDeep(c,!0),c.length>1?(i=this.startNodeAt(a,o),i.expressions=c,this.finishNodeAt(i,"SequenceExpression",m,y)):i=c[0],!this.options.createParenthesizedExpressions)return this.addExtra(i,"parenthesized",!0),this.addExtra(i,"parenStart",t),i;const g=this.startNodeAt(t,r);return g.expression=i,this.finishNode(g,"ParenthesizedExpression"),g}shouldParseArrow(){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(l.arrow))return e}parseParenItem(e,t,r){return e}parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.match(l.dot)){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.raise(r.start,T.UnexpectedNewTarget),r}return this.parseNew(e)}parseNew(e){return e.callee=this.parseNoCallExpr(),"Import"===e.callee.type?this.raise(e.callee.start,T.ImportCallNotNewExpression):this.isOptionalChain(e.callee)?this.raise(this.state.lastTokEnd,T.OptionalChainingNoNew):this.eat(l.questionDot)&&this.raise(this.state.start,T.OptionalChainingNoNew),this.parseNewArguments(e),this.finishNode(e,"NewExpression")}parseNewArguments(e){if(this.eat(l.parenL)){const t=this.parseExprList(l.parenR);this.toReferencedList(t),e.arguments=t}else e.arguments=[]}parseTemplateElement(e){const t=this.startNode();return null===this.state.value&&(e||this.raise(this.state.start+1,T.InvalidEscapeSequenceTemplate)),t.value={raw:this.input.slice(this.state.start,this.state.end).replace(/\\r\\n?/g,"\\n"),cooked:this.state.value},this.next(),t.tail=this.match(l.backQuote),this.finishNode(t,"TemplateElement")}parseTemplate(e){const t=this.startNode();this.next(),t.expressions=[];let r=this.parseTemplateElement(e);for(t.quasis=[r];!r.tail;)this.expect(l.dollarBraceL),t.expressions.push(this.parseTemplateSubstitution()),this.expect(l.braceR),t.quasis.push(r=this.parseTemplateElement(e));return this.next(),this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,i){r&&this.expectPlugin("recordAndTuple");const n=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(l.comma),this.match(e)){this.addExtra(o,"trailingComma",this.state.lastTokStart);break}const n=this.parsePropertyDefinition(t,i);t||this.checkProto(n,r,s,i),r&&!this.isObjectProperty(n)&&"SpreadElement"!==n.type&&this.raise(n.start,T.InvalidRecordProperty),n.shorthand&&this.addExtra(n,"shorthand",!0),o.properties.push(n)}this.state.exprAllowed=!1,this.next(),this.state.inFSharpPipelineDirectBody=n;let c="ObjectExpression";return t?c="ObjectPattern":r&&(c="RecordExpression"),this.finishNode(o,c)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(l.bracketL)||this.match(l.star))}parsePropertyDefinition(e,t){let r=[];if(this.match(l.at))for(this.hasPlugin("decorators")&&this.raise(this.state.start,T.UnsupportedPropertyDecorator);this.match(l.at);)r.push(this.parseDecorator());const i=this.startNode();let n,s,a=!1,o=!1,c=!1;if(this.match(l.ellipsis))return r.length&&this.unexpected(),e?(this.next(),i.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(i,"RestElement")):this.parseSpread();r.length&&(i.decorators=r,r=[]),i.method=!1,(e||t)&&(n=this.state.start,s=this.state.startLoc),e||(a=this.eat(l.star));const u=this.state.containsEsc,p=this.parsePropertyName(i,!1);if(!e&&!a&&!u&&this.maybeAsyncOrAccessorProp(i)){const e=p.name;"async"!==e||this.hasPrecedingLineBreak()||(o=!0,a=this.eat(l.star),this.parsePropertyName(i,!1)),"get"!==e&&"set"!==e||(c=!0,i.kind=e,this.match(l.star)&&(a=!0,this.raise(this.state.pos,T.AccessorIsGenerator,e),this.next()),this.parsePropertyName(i,!1))}return this.parseObjPropValue(i,n,s,a,o,e,c,t),i}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const r=this.getGetterSetterExpectedParamCount(e),i=this.getObjectOrClassMethodParams(e),n=e.start;i.length!==r&&("get"===e.kind?this.raise(n,T.BadGetterArity):this.raise(n,T.BadSetterArity)),"set"===e.kind&&"RestElement"===(null==(t=i[i.length-1])?void 0:t.type)&&this.raise(n,T.BadSetterRestParameter)}parseObjectMethod(e,t,r,i,n){return n?(this.parseMethod(e,t,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(e),e):r||t||this.match(l.parenL)?(i&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")):void 0}parseObjectProperty(e,t,r,i,n){return e.shorthand=!1,this.eat(l.colon)?(e.value=i?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(n),this.finishNode(e,"ObjectProperty")):e.computed||"Identifier"!==e.key.type?void 0:(this.checkReservedWord(e.key.name,e.key.start,!0,!1),i?e.value=this.parseMaybeDefault(t,r,e.key.__clone()):this.match(l.eq)&&n?(-1===n.shorthandAssign&&(n.shorthandAssign=this.state.start),e.value=this.parseMaybeDefault(t,r,e.key.__clone())):e.value=e.key.__clone(),e.shorthand=!0,this.finishNode(e,"ObjectProperty"))}parseObjPropValue(e,t,r,i,n,s,a,o){const l=this.parseObjectMethod(e,i,n,s,a)||this.parseObjectProperty(e,t,r,s,o);return l||this.unexpected(),l}parsePropertyName(e,t){if(this.eat(l.bracketL))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(l.bracketR);else{const r=this.state.inPropertyName;this.state.inPropertyName=!0;const i=this.state.type;e.key=i===l.num||i===l.string||i===l.bigint||i===l.decimal?this.parseExprAtom():this.parseMaybePrivateName(t),i!==l.privateName&&(e.computed=!1),this.state.inPropertyName=r}return e.key}initFunction(e,t){e.id=null,e.generator=!1,e.async=!!t}parseMethod(e,t,r,i,n,s,a=!1){this.initFunction(e,r),e.generator=!!t;const o=i;return this.scope.enter(18|(a?64:0)|(n?32:0)),this.prodParam.enter(functionFlags(r,e.generator)),this.parseFunctionParams(e,o),this.parseFunctionBodyAndFinish(e,s,!0),this.prodParam.exit(),this.scope.exit(),e}parseArrayLike(e,t,r,i){r&&this.expectPlugin("recordAndTuple");const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const s=this.startNode();return this.next(),s.elements=this.parseExprList(e,!r,i,s),this.state.inFSharpPipelineDirectBody=n,this.finishNode(s,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,i){this.scope.enter(6);let n=functionFlags(r,!1);!this.match(l.bracketL)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(e,r);const s=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,i)),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){e.params=this.toAssignableList(t,r,!1)}parseFunctionBodyAndFinish(e,t,r=!1){this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}parseFunctionBody(e,t,r=!1){const i=t&&!this.match(l.braceL);if(this.expressionScope.enter(newExpressionScope()),i)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{const i=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,(n=>{const s=!this.isSimpleParamList(e.params);if(n&&s){const t="method"!==e.kind&&"constructor"!==e.kind||!e.key?e.start:e.key.end;this.raise(t,T.IllegalLanguageModeDirective)}const a=!i&&this.state.strict;this.checkParams(e,!(this.state.strict||t||r||s),t,a),this.state.strict&&e.id&&this.checkLVal(e.id,"function name",65,void 0,void 0,a)})),this.prodParam.exit(),this.expressionScope.exit(),this.state.labels=n}}isSimpleParamList(e){for(let t=0,r=e.length;t<r;t++)if("Identifier"!==e[t].type)return!1;return!0}checkParams(e,t,r,i=!0){const n=new Set;for(const r of e.params)this.checkLVal(r,"function parameter list",5,t?null:n,void 0,i)}parseExprList(e,t,r,i){const n=[];let s=!0;for(;!this.eat(e);){if(s)s=!1;else if(this.expect(l.comma),this.match(e)){i&&this.addExtra(i,"trailingComma",this.state.lastTokStart),this.next();break}n.push(this.parseExprListItem(t,r))}return n}parseExprListItem(e,t,r,i){let n;if(this.match(l.comma))e||this.raise(this.state.pos,T.UnexpectedToken,","),n=null;else if(this.match(l.ellipsis)){const e=this.state.start,i=this.state.startLoc;n=this.parseParenItem(this.parseSpread(t,r),e,i)}else if(this.match(l.question)){this.expectPlugin("partialApplication"),i||this.raise(this.state.start,T.UnexpectedArgumentPlaceholder);const e=this.startNode();this.next(),n=this.finishNode(e,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowIn(t,this.parseParenItem,r);return n}parseIdentifier(e){const t=this.startNode(),r=this.parseIdentifierName(t.start,e);return this.createIdentifier(t,r)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}parseIdentifierName(e,t){let r;const{start:i,type:n}=this.state;if(n===l.name)r=this.state.value;else{if(!n.keyword)throw this.unexpected();{r=n.keyword;const e=this.curContext();n!==l._class&&n!==l._function||e!==x.functionStatement&&e!==x.functionExpression||this.state.context.pop()}}return t?this.state.type=l.name:this.checkReservedWord(r,i,!!n.keyword,!1),this.next(),r}checkReservedWord(e,t,r,i){if(this.prodParam.hasYield&&"yield"===e)return void this.raise(t,T.YieldBindingIdentifier);if("await"===e){if(this.prodParam.hasAwait)return void this.raise(t,T.AwaitBindingIdentifier);if(this.scope.inStaticBlock&&!this.scope.inNonArrowFunction)return void this.raise(t,T.AwaitBindingIdentifierInStaticBlock);this.expressionScope.recordAsyncArrowParametersError(t,T.AwaitBindingIdentifier)}if(this.scope.inClass&&!this.scope.inNonArrowFunction&&"arguments"===e)return void this.raise(t,T.ArgumentsInClass);if(r&&isKeyword(e))return void this.raise(t,T.UnexpectedKeyword,e);(this.state.strict?i?isStrictBindReservedWord:isStrictReservedWord:isReservedWord)(e,this.inModule)&&this.raise(t,T.UnexpectedReservedWord,e)}isAwaitAllowed(){return!!this.prodParam.hasAwait||!(!this.options.allowAwaitOutsideFunction||this.scope.inFunction)}parseAwait(e,t){const r=this.startNodeAt(e,t);return this.expressionScope.recordParameterInitializerError(r.start,T.AwaitExpressionFormalParameter),this.eat(l.star)&&this.raise(r.start,T.ObsoleteAwaitStar),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousAwait(){return this.hasPrecedingLineBreak()||this.match(l.plusMin)||this.match(l.parenL)||this.match(l.bracketL)||this.match(l.backQuote)||this.match(l.regexp)||this.match(l.slash)||this.hasPlugin("v8intrinsic")&&this.match(l.modulo)}parseYield(){const e=this.startNode();return this.expressionScope.recordParameterInitializerError(e.start,T.YieldInParameter),this.next(),this.match(l.semi)||!this.match(l.star)&&!this.state.type.startsExpr||this.hasPrecedingLineBreak()?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(l.star),e.argument=this.parseMaybeAssign()),this.finishNode(e,"YieldExpression")}checkPipelineAtInfixOperator(e,t){"smart"===this.getPluginOption("pipelineOperator","proposal")&&"SequenceExpression"===e.type&&this.raise(t,T.PipelineHeadSequenceExpression)}parseSmartPipelineBody(e,t,r){return this.checkSmartPipelineBodyEarlyErrors(e,t),this.parseSmartPipelineBodyInStyle(e,t,r)}checkSmartPipelineBodyEarlyErrors(e,t){if(this.match(l.arrow))throw this.raise(this.state.start,T.PipelineBodyNoArrow);"SequenceExpression"===e.type&&this.raise(t,T.PipelineBodySequenceExpression)}parseSmartPipelineBodyInStyle(e,t,r){const i=this.startNodeAt(t,r),n=this.isSimpleReference(e);return n?i.callee=e:(this.topicReferenceWasUsedInCurrentTopicContext()||this.raise(t,T.PipelineTopicUnused),i.expression=e),this.finishNode(i,n?"PipelineBareFunction":"PipelineTopicExpression")}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}withTopicPermittingContext(e){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withTopicForbiddingContext(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}primaryTopicReferenceIsAllowedInCurrentTopicContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentTopicContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.start,r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const n=this.parseExprOp(this.parseMaybeUnary(),t,r,e);return this.state.inFSharpPipelineDirectBody=i,n}parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this.startNode();this.next(),this.eat(l.braceL);const t=this.initializeScopes(!0);this.enterInitialScopes();const r=this.startNode();try{e.body=this.parseProgram(r,l.braceR,"module")}finally{t()}return this.eat(l.braceR),this.finishNode(e,"ModuleExpression")}}const ve={kind:"loop"},Ae={kind:"switch"},we=/[\\uD800-\\uDFFF]/u;class Ie extends Pe{parseTopLevel(e,t){return e.program=this.parseProgram(t),e.comments=this.state.comments,this.options.tokens&&(e.tokens=function(e){for(let t=0;t<e.length;t++){const r=e[t];if(r.type===l.privateName){const{loc:i,start:n,value:s,end:a}=r,o=n+1,c=new d(i.start.line,i.start.column+1);e.splice(t,1,new pe({type:l.hash,value:"#",start:n,end:o,startLoc:i.start,endLoc:c}),new pe({type:l.name,value:s,start:o,end:a,startLoc:c,endLoc:i.end}))}}return e}(this.tokens)),this.finishNode(e,"File")}parseProgram(e,t=l.eof,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]of Array.from(this.scope.undefinedExports)){const t=this.scope.undefinedExports.get(e);this.raise(t,T.ModuleExportUndefined,e)}return this.finishNode(e,"Program")}stmtToDirective(e){const t=e.expression,r=this.startNodeAt(t.start,t.loc.start),i=this.startNodeAt(e.start,e.loc.start),n=this.input.slice(t.start,t.end),s=r.value=n.slice(1,-1);return this.addExtra(r,"raw",n),this.addExtra(r,"rawValue",s),i.value=this.finishNodeAt(r,"DirectiveLiteral",t.end,t.loc.end),this.finishNodeAt(i,"Directive",e.end,e.loc.end)}parseInterpreterDirective(){if(!this.match(l.interpreterDirective))return null;const e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(e){return!!this.isContextual("let")&&this.isLetKeyword(e)}isLetKeyword(e){const t=this.nextTokenStart(),r=this.input.charCodeAt(t);if(92===r||91===r)return!0;if(e)return!1;if(123===r)return!0;if(isIdentifierStart(r)){let e=t+1;for(;isIdentifierChar(this.input.charCodeAt(e));)++e;const r=this.input.slice(t,e);if(!L.test(r))return!0}return!1}parseStatement(e,t){return this.match(l.at)&&this.parseDecorators(!0),this.parseStatementContent(e,t)}parseStatementContent(e,t){let r=this.state.type;const i=this.startNode();let n;switch(this.isLet(e)&&(r=l._var,n="let"),r){case l._break:case l._continue:return this.parseBreakContinueStatement(i,r.keyword);case l._debugger:return this.parseDebuggerStatement(i);case l._do:return this.parseDoStatement(i);case l._for:return this.parseForStatement(i);case l._function:if(46===this.lookaheadCharCode())break;return e&&(this.state.strict?this.raise(this.state.start,T.StrictFunction):"if"!==e&&"label"!==e&&this.raise(this.state.start,T.SloppyFunction)),this.parseFunctionStatement(i,!1,!e);case l._class:return e&&this.unexpected(),this.parseClass(i,!0);case l._if:return this.parseIfStatement(i);case l._return:return this.parseReturnStatement(i);case l._switch:return this.parseSwitchStatement(i);case l._throw:return this.parseThrowStatement(i);case l._try:return this.parseTryStatement(i);case l._const:case l._var:return n=n||this.state.value,e&&"var"!==n&&this.raise(this.state.start,T.UnexpectedLexicalDeclaration),this.parseVarStatement(i,n);case l._while:return this.parseWhileStatement(i);case l._with:return this.parseWithStatement(i);case l.braceL:return this.parseBlock();case l.semi:return this.parseEmptyStatement(i);case l._import:{const e=this.lookaheadCharCode();if(40===e||46===e)break}case l._export:{let e;return this.options.allowImportExportEverywhere||t||this.raise(this.state.start,T.UnexpectedImportExport),this.next(),r===l._import?(e=this.parseImport(i),"ImportDeclaration"!==e.type||e.importKind&&"value"!==e.importKind||(this.sawUnambiguousESM=!0)):(e=this.parseExport(i),("ExportNamedDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&("ExportAllDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&"ExportDefaultDeclaration"!==e.type||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(i),e}default:if(this.isAsyncFunction())return e&&this.raise(this.state.start,T.AsyncFunctionInSingleStatementContext),this.next(),this.parseFunctionStatement(i,!0,!e)}const s=this.state.value,a=this.parseExpression();return r===l.name&&"Identifier"===a.type&&this.eat(l.colon)?this.parseLabeledStatement(i,s,a,e):this.parseExpressionStatement(i,a)}assertModuleNodeAllowed(e){this.options.allowImportExportEverywhere||this.inModule||this.raise(e.start,g.ImportOutsideModule)}takeDecorators(e){const t=this.state.decoratorStack[this.state.decoratorStack.length-1];t.length&&(e.decorators=t,this.resetStartLocationFromNode(e,t[0]),this.state.decoratorStack[this.state.decoratorStack.length-1]=[])}canHaveLeadingDecorator(){return this.match(l._class)}parseDecorators(e){const t=this.state.decoratorStack[this.state.decoratorStack.length-1];for(;this.match(l.at);){const e=this.parseDecorator();t.push(e)}if(this.match(l._export))e||this.unexpected(),this.hasPlugin("decorators")&&!this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,T.DecoratorExportClass);else if(!this.canHaveLeadingDecorator())throw this.raise(this.state.start,T.UnexpectedLeadingDecorator)}parseDecorator(){this.expectOnePlugin(["decorators-legacy","decorators"]);const e=this.startNode();if(this.next(),this.hasPlugin("decorators")){this.state.decoratorStack.push([]);const t=this.state.start,r=this.state.startLoc;let i;if(this.eat(l.parenL))i=this.parseExpression(),this.expect(l.parenR);else for(i=this.parseIdentifier(!1);this.eat(l.dot);){const e=this.startNodeAt(t,r);e.object=i,e.property=this.parseIdentifier(!0),e.computed=!1,i=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(i),this.state.decoratorStack.pop()}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(l.parenL)){const t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(l.parenR,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e}parseBreakContinueStatement(e,t){const r="break"===t;return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){const r="break"===t;let i;for(i=0;i<this.state.labels.length;++i){const t=this.state.labels[i];if(null==e.label||t.name===e.label.name){if(null!=t.kind&&(r||"loop"===t.kind))break;if(e.label&&r)break}}i===this.state.labels.length&&this.raise(e.start,T.IllegalBreakContinue,t)}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(l.parenL);const e=this.parseExpression();return this.expect(l.parenR),e}parseDoStatement(e){return this.next(),this.state.labels.push(ve),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("do"))),this.state.labels.pop(),this.expect(l._while),e.test=this.parseHeaderExpression(),this.eat(l.semi),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(ve);let t=-1;if(this.isAwaitAllowed()&&this.eatContextual("await")&&(t=this.state.lastTokStart),this.scope.enter(0),this.expect(l.parenL),this.match(l.semi))return t>-1&&this.unexpected(t),this.parseFor(e,null);const r=this.isContextual("let"),i=r&&this.isLetKeyword();if(this.match(l._var)||this.match(l._const)||i){const r=this.startNode(),n=i?"let":this.state.value;return this.next(),this.parseVar(r,!0,n),this.finishNode(r,"VariableDeclaration"),(this.match(l._in)||this.isContextual("of"))&&1===r.declarations.length?this.parseForIn(e,r,t):(t>-1&&this.unexpected(t),this.parseFor(e,r))}const n=this.match(l.name)&&!this.state.containsEsc,s=new be,a=this.parseExpression(!0,s),o=this.isContextual("of");if(o&&(r?this.raise(a.start,T.ForOfLet):-1===t&&n&&"Identifier"===a.type&&"async"===a.name&&this.raise(a.start,T.ForOfAsync)),o||this.match(l._in)){this.toAssignable(a,!0);const r=o?"for-of statement":"for-in statement";return this.checkLVal(a,r),this.parseForIn(e,a,t)}return this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,a)}parseFunctionStatement(e,t,r){return this.next(),this.parseFunction(e,1|(r?0:2),t)}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(l._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(this.state.start,T.IllegalReturn),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(l.braceL),this.state.labels.push(Ae),this.scope.enter(0);for(let e;!this.match(l.braceR);)if(this.match(l._case)||this.match(l._default)){const i=this.match(l._case);r&&this.finishNode(r,"SwitchCase"),t.push(r=this.startNode()),r.consequent=[],this.next(),i?r.test=this.parseExpression():(e&&this.raise(this.state.lastTokStart,T.MultipleDefaultsInSwitch),e=!0,r.test=null),this.expect(l.colon)}else r?r.consequent.push(this.parseStatement(null)):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(this.state.lastTokEnd,T.NewlineAfterThrow),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom(),t="Identifier"===e.type;return this.scope.enter(t?8:0),this.checkLVal(e,"catch clause",9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(l._catch)){const t=this.startNode();this.next(),this.match(l.parenL)?(this.expect(l.parenL),t.param=this.parseCatchClauseParam(),this.expect(l.parenR)):(t.param=null,this.scope.enter(0)),t.body=this.withTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(l._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,T.NoCatchOrFinally),this.finishNode(e,"TryStatement")}parseVarStatement(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(ve),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("while"))),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(this.state.start,T.StrictWith),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("with"))),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,r,i){for(const e of this.state.labels)e.name===t&&this.raise(r.start,T.LabelRedeclaration,t);const n=this.state.type.isLoop?"loop":this.match(l._switch)?"switch":null;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=n}return this.state.labels.push({name:t,kind:n,statementStart:this.state.start}),e.body=this.parseStatement(i?-1===i.indexOf("label")?i+"label":i:"label"),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,r){const i=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(l.braceL),t&&this.scope.enter(0),this.parseBlockBody(i,e,!1,l.braceR,r),t&&this.scope.exit(),this.finishNode(i,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,i,n){const s=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(s,t?a:void 0,r,i,n)}parseBlockOrModuleBlockBody(e,t,r,i,n){const s=this.state.strict;let a=!1,o=!1;for(;!this.match(i);){const i=this.parseStatement(null,r);if(t&&!o){if(this.isValidDirective(i)){const e=this.stmtToDirective(i);t.push(e),a||"use strict"!==e.value.value||(a=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(i)}n&&n.call(this,a),s||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(l.semi)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(l.parenR)?null:this.parseExpression(),this.expect(l.parenR),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,r){const i=this.match(l._in);return this.next(),i?r>-1&&this.unexpected(r):e.await=r>-1,"VariableDeclaration"!==t.type||null==t.declarations[0].init||i&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type?"AssignmentPattern"===t.type&&this.raise(t.start,T.InvalidLhs,"for-loop"):this.raise(t.start,T.ForInOfLoopInitializer,i?"for-in":"for-of"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(l.parenR),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")}parseVar(e,t,r){const i=e.declarations=[],n=this.hasPlugin("typescript");for(e.kind=r;;){const e=this.startNode();if(this.parseVarId(e,r),this.eat(l.eq)?e.init=t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():("const"!==r||this.match(l._in)||this.isContextual("of")?"Identifier"===e.id.type||t&&(this.match(l._in)||this.isContextual("of"))||this.raise(this.state.lastTokEnd,T.DeclarationMissingInitializer,"Complex binding patterns"):n||this.raise(this.state.lastTokEnd,T.DeclarationMissingInitializer,"Const declarations"),e.init=null),i.push(this.finishNode(e,"VariableDeclarator")),!this.eat(l.comma))break}return e}parseVarId(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,"variable declaration","var"===t?5:9,void 0,"var"!==t)}parseFunction(e,t=0,r=!1){const i=1&t,n=2&t,s=!(!i||4&t);this.initFunction(e,r),this.match(l.star)&&n&&this.raise(this.state.start,T.GeneratorInSingleStatementContext),e.generator=this.eat(l.star),i&&(e.id=this.parseFunctionId(s));const a=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(functionFlags(r,e.generator)),i||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,i?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),i&&!n&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=a,e}parseFunctionId(e){return e||this.match(l.name)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(l.parenL),this.expressionScope.enter(new me(3)),e.params=this.parseBindingList(l.parenR,41,!1,t),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:9:17,e.id.start)}parseClass(e,t,r){this.next(),this.takeDecorators(e);const i=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,i),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(l.eq)||this.match(l.semi)||this.match(l.braceR)}isClassMethod(){return this.match(l.parenL)}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 i=[];const n=this.startNode();if(n.body=[],this.expect(l.braceL),this.withTopicForbiddingContext((()=>{for(;!this.match(l.braceR);){if(this.eat(l.semi)){if(i.length>0)throw this.raise(this.state.lastTokEnd,T.DecoratorSemicolon);continue}if(this.match(l.at)){i.push(this.parseDecorator());continue}const e=this.startNode();i.length&&(e.decorators=i,this.resetStartLocationFromNode(e,i[0]),i=[]),this.parseClassMember(n,e,r),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(e.start,T.DecoratorConstructor)}})),this.state.strict=t,this.next(),i.length)throw this.raise(this.state.start,T.TrailingDecorator);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(e,t){const r=this.parseIdentifier(!0);if(this.isClassMethod()){const i=t;return i.kind="method",i.computed=!1,i.key=r,i.static=!1,this.pushClassMethod(e,i,!1,!1,!1,!1),!0}if(this.isClassProperty()){const i=t;return i.computed=!1,i.key=r,i.static=!1,e.body.push(this.parseClassProperty(i)),!0}return!1}parseClassMember(e,t,r){const i=this.isContextual("static");if(i){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(l.braceL))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,r,i)}parseClassMemberWithIsStatic(e,t,r,i){const n=t,s=t,a=t,o=t,c=n,u=n;if(t.static=i,this.eat(l.star)){c.kind="method";const t=this.match(l.privateName);return this.parseClassElementName(c),t?void this.pushClassPrivateMethod(e,s,!0,!1):(this.isNonstaticConstructor(n)&&this.raise(n.key.start,T.ConstructorIsGenerator),void this.pushClassMethod(e,n,!0,!1,!1,!1))}const p=this.state.containsEsc,d=this.match(l.privateName),h=this.parseClassElementName(t),f="Identifier"===h.type,m=this.state.start;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(c.kind="method",d)return void this.pushClassPrivateMethod(e,s,!1,!1);const i=this.isNonstaticConstructor(n);let a=!1;i&&(n.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(h.start,T.DuplicateConstructor),i&&this.hasPlugin("typescript")&&t.override&&this.raise(h.start,T.OverrideOnConstructor),r.hadConstructor=!0,a=r.hadSuperClass),this.pushClassMethod(e,n,!1,!1,i,a)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a);else if(!f||"async"!==h.name||p||this.isLineTerminator())if(!f||"get"!==h.name&&"set"!==h.name||p||this.match(l.star)&&this.isLineTerminator())this.isLineTerminator()?d?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a):this.unexpected();else{c.kind=h.name;const t=this.match(l.privateName);this.parseClassElementName(n),t?this.pushClassPrivateMethod(e,s,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(n.key.start,T.ConstructorIsAccessor),this.pushClassMethod(e,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else{const t=this.eat(l.star);u.optional&&this.unexpected(m),c.kind="method";const r=this.match(l.privateName);this.parseClassElementName(c),this.parsePostMemberNameModifiers(u),r?this.pushClassPrivateMethod(e,s,t,!0):(this.isNonstaticConstructor(n)&&this.raise(n.key.start,T.ConstructorIsAsync),this.pushClassMethod(e,n,t,!0,!1,!1))}}parseClassElementName(e){const{type:t,value:r,start:i}=this.state;return t!==l.name&&t!==l.string||!e.static||"prototype"!==r||this.raise(i,T.StaticPrototype),t===l.privateName&&"constructor"===r&&this.raise(i,T.ConstructorClassPrivateField),this.parsePropertyName(e,!0)}parseClassStaticBlock(e,t){var r;this.expectPlugin("classStaticBlock",t.start),this.scope.enter(208);const i=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const n=t.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,l.braceR),this.prodParam.exit(),this.scope.exit(),this.state.labels=i,e.body.push(this.finishNode(t,"StaticBlock")),null!=(r=t.decorators)&&r.length&&this.raise(t.start,T.DecoratorStaticBlock)}pushClassProperty(e,t){t.computed||"constructor"!==t.key.name&&"constructor"!==t.key.value||this.raise(t.key.start,T.ConstructorClassField),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.start)}pushClassMethod(e,t,r,i,n,s){e.body.push(this.parseMethod(t,r,i,n,s,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,i){const n=this.parseMethod(t,r,i,!1,!1,"ClassPrivateMethod",!0);e.body.push(n);const s="get"===n.kind?n.static?6:2:"set"===n.kind?n.static?5:1:0;this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),s,n.key.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")}parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(newExpressionScope()),this.prodParam.enter(0),e.value=this.eat(l.eq)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,r,i=139){this.match(l.name)?(e.id=this.parseIdentifier(),t&&this.checkLVal(e.id,"class name",i)):r||!t?e.id=null:this.unexpected(null,T.MissingClassName)}parseClassSuper(e){e.superClass=this.eat(l._extends)?this.parseExprSubscripts():null}parseExport(e){const t=this.maybeParseExportDefaultSpecifier(e),r=!t||this.eat(l.comma),i=r&&this.eatExportStar(e),n=i&&this.maybeParseExportNamespaceSpecifier(e),s=r&&(!n||this.eat(l.comma)),a=t||i;if(i&&!n)return t&&this.unexpected(),this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration");const o=this.maybeParseExportNamedSpecifiers(e);if(t&&r&&!i&&!o||n&&s&&!o)throw this.unexpected(null,l.braceL);let c;if(a||o?(c=!1,this.parseExportFrom(e,a)):c=this.maybeParseExportDeclaration(e),a||o||c)return this.checkExport(e,!0,!1,!!e.source),this.finishNode(e,"ExportNamedDeclaration");if(this.eat(l._default))return e.declaration=this.parseExportDefaultExpression(),this.checkExport(e,!0,!0),this.finishNode(e,"ExportDefaultDeclaration");throw this.unexpected(null,l.braceL)}eatExportStar(e){return this.eat(l.star)}maybeParseExportDefaultSpecifier(e){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");const t=this.startNode();return t.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(t,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual("as")){e.specifiers||(e.specifiers=[]);const t=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){return!!this.match(l.braceL)&&(e.specifiers||(e.specifiers=[]),e.specifiers.push(...this.parseExportSpecifiers()),e.source=null,e.declaration=null,!0)}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual("async"))return!1;const e=this.nextTokenStart();return!c.test(this.input.slice(this.state.pos,e))&&this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode(),t=this.isAsyncFunction();if(this.match(l._function)||t)return this.next(),t&&this.next(),this.parseFunction(e,5,t);if(this.match(l._class))return this.parseClass(e,!0,!0);if(this.match(l.at))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,T.DecoratorBeforeExport),this.parseDecorators(!1),this.parseClass(e,!0,!0);if(this.match(l._const)||this.match(l._var)||this.isLet())throw this.raise(this.state.start,T.UnsupportedDefaultExport);{const e=this.parseMaybeAssignAllowIn();return this.semicolon(),e}}parseExportDeclaration(e){return this.parseStatement(null)}isExportDefaultSpecifier(){if(this.match(l.name)){const e=this.state.value;if("async"===e&&!this.state.containsEsc||"let"===e)return!1;if(("type"===e||"interface"===e)&&!this.state.containsEsc){const e=this.lookahead();if(e.type===l.name&&"from"!==e.value||e.type===l.braceL)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(l._default))return!1;const e=this.nextTokenStart(),t=this.isUnparsedContextual(e,"from");if(44===this.input.charCodeAt(e)||this.match(l.name)&&t)return!0;if(this.match(l._default)&&t){const t=this.input.charCodeAt(this.nextTokenStartSince(e+4));return 34===t||39===t}return!1}parseExportFrom(e,t){if(this.eatContextual("from")){e.source=this.parseImportSource(),this.checkExport(e);const t=this.maybeParseImportAssertions();t&&(e.assertions=t)}else t?this.unexpected():e.source=null;this.semicolon()}shouldParseExportDeclaration(){if(this.match(l.at)&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(!this.getPluginOption("decorators","decoratorsBeforeExport"))return!0;this.unexpected(this.state.start,T.DecoratorBeforeExport)}return"var"===this.state.type.keyword||"const"===this.state.type.keyword||"function"===this.state.type.keyword||"class"===this.state.type.keyword||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,i){if(t)if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var n;const t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!=4||null!=(n=t.extra)&&n.parenthesized||this.raise(t.start,T.ExportDefaultFromAsIdentifier)}}else if(e.specifiers&&e.specifiers.length)for(const t of e.specifiers){const{exported:e}=t,r="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,r),!i&&t.local){const{local:e}=t;"StringLiteral"===e.type?this.raise(t.start,T.ExportBindingIsString,e.value,r):(this.checkReservedWord(e.name,e.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);if(this.state.decoratorStack[this.state.decoratorStack.length-1].length)throw this.raise(e.start,T.UnsupportedDecoratorExport)}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.state.exportedIdentifiers.indexOf(t)>-1&&this.raise(e.start,"default"===t?T.DuplicateDefaultExport:T.DuplicateExport,t),this.state.exportedIdentifiers.push(t)}parseExportSpecifiers(){const e=[];let t=!0;for(this.expect(l.braceL);!this.eat(l.braceR);){if(t)t=!1;else if(this.expect(l.comma),this.eat(l.braceR))break;const r=this.startNode();r.local=this.parseModuleExportName(),r.exported=this.eatContextual("as")?this.parseModuleExportName():r.local.__clone(),e.push(this.finishNode(r,"ExportSpecifier"))}return e}parseModuleExportName(){if(this.match(l.string)){const e=this.parseLiteral(this.state.value,"StringLiteral"),t=e.value.match(we);return t&&this.raise(e.start,T.ModuleExportNameHasLoneSurrogate,t[0].charCodeAt(0).toString(16)),e}return this.parseIdentifier(!0)}parseImport(e){if(e.specifiers=[],!this.match(l.string)){const t=!this.maybeParseDefaultImportSpecifier(e)||this.eat(l.comma),r=t&&this.maybeParseStarImportSpecifier(e);t&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual("from")}e.source=this.parseImportSource();const t=this.maybeParseImportAssertions();if(t)e.assertions=t;else{const t=this.maybeParseModuleAttributes();t&&(e.attributes=t)}return this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(l.string)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(e){return this.match(l.name)}parseImportSpecifierLocal(e,t,r,i){t.local=this.parseIdentifier(),this.checkLVal(t.local,i,9),e.specifiers.push(this.finishNode(t,r))}parseAssertEntries(){const e=[],t=new Set;do{if(this.match(l.braceR))break;const r=this.startNode(),i=this.state.value;if(this.match(l.string)?r.key=this.parseLiteral(i,"StringLiteral"):r.key=this.parseIdentifier(!0),this.expect(l.colon),"type"!==i&&this.raise(r.key.start,T.ModuleAttributeDifferentFromType,i),t.has(i)&&this.raise(r.key.start,T.ModuleAttributesWithDuplicateKeys,i),t.add(i),!this.match(l.string))throw this.unexpected(this.state.start,T.ModuleAttributeInvalidValue);r.value=this.parseLiteral(this.state.value,"StringLiteral"),this.finishNode(r,"ImportAttribute"),e.push(r)}while(this.eat(l.comma));return e}maybeParseModuleAttributes(){if(!this.match(l._with)||this.hasPrecedingLineBreak())return this.hasPlugin("moduleAttributes")?[]:null;this.expectPlugin("moduleAttributes"),this.next();const e=[],t=new Set;do{const r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(r.key.start,T.ModuleAttributeDifferentFromType,r.key.name),t.has(r.key.name)&&this.raise(r.key.start,T.ModuleAttributesWithDuplicateKeys,r.key.name),t.add(r.key.name),this.expect(l.colon),!this.match(l.string))throw this.unexpected(this.state.start,T.ModuleAttributeInvalidValue);r.value=this.parseLiteral(this.state.value,"StringLiteral"),this.finishNode(r,"ImportAttribute"),e.push(r)}while(this.eat(l.comma));return e}maybeParseImportAssertions(){if(!this.isContextual("assert")||this.hasPrecedingLineBreak())return this.hasPlugin("importAssertions")?[]:null;this.expectPlugin("importAssertions"),this.next(),this.eat(l.braceL);const e=this.parseAssertEntries();return this.eat(l.braceR),e}maybeParseDefaultImportSpecifier(e){return!!this.shouldParseDefaultImport(e)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier","default import specifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(l.star)){const t=this.startNode();return this.next(),this.expectContextual("as"),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier","import namespace specifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(l.braceL);!this.eat(l.braceR);){if(t)t=!1;else{if(this.eat(l.colon))throw this.raise(this.state.start,T.DestructureNamedImport);if(this.expect(l.comma),this.eat(l.braceR))break}this.parseImportSpecifier(e)}}parseImportSpecifier(e){const t=this.startNode();if(t.imported=this.parseModuleExportName(),this.eatContextual("as"))t.local=this.parseIdentifier();else{const{imported:e}=t;if("StringLiteral"===e.type)throw this.raise(t.start,T.ImportBindingIsString,e.value);this.checkReservedWord(e.name,t.start,!0,!0),t.local=e.__clone()}this.checkLVal(t.local,"import specifier",9),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}}class Ce extends Ie{constructor(e,t){super(e=function(e){const t={};for(const r of Object.keys(ae))t[r]=e&&null!=e[r]?e[r]:ae[r];return t}(e),t),this.options=e,this.initializeScopes(),this.plugins=function(e){const t=new Map;for(const r of e){const[e,i]=Array.isArray(r)?r:[r,{}];t.has(e)||t.set(e,i||{})}return t}(this.options.plugins),this.filename=e.sourceFilename}getScopeHandler(){return U}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}}function getParser(e,t){let r=Ce;return null!=e&&e.plugins&&(!function(e){if(hasPlugin(e,"decorators")){if(hasPlugin(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const t=getPluginOption(e,"decorators","decoratorsBeforeExport");if(null==t)throw new Error("The \'decorators\' plugin requires a \'decoratorsBeforeExport\' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the \'decorators-legacy\' plugin instead of \'decorators\'.");if("boolean"!=typeof t)throw new Error("\'decoratorsBeforeExport\' must be a boolean.")}if(hasPlugin(e,"flow")&&hasPlugin(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(hasPlugin(e,"placeholders")&&hasPlugin(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(hasPlugin(e,"pipelineOperator")&&!re.includes(getPluginOption(e,"pipelineOperator","proposal")))throw new Error("\'pipelineOperator\' requires \'proposal\' option whose value should be one of: "+re.map((e=>`\'${e}\'`)).join(", "));if(hasPlugin(e,"moduleAttributes")){if(hasPlugin(e,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if("may-2020"!==getPluginOption(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(hasPlugin(e,"recordAndTuple")&&!ie.includes(getPluginOption(e,"recordAndTuple","syntaxType")))throw new Error("\'recordAndTuple\' requires \'syntaxType\' option whose value should be one of: "+ie.map((e=>`\'${e}\'`)).join(", "));if(hasPlugin(e,"asyncDoExpressions")&&!hasPlugin(e,"doExpressions")){const e=new Error("\'asyncDoExpressions\' requires \'doExpressions\', please add \'doExpressions\' to parser plugins.");throw e.missingPlugins="doExpressions",e}}(e.plugins),r=function(e){const t=se.filter((t=>hasPlugin(e,t))),r=t.join("/");let i=Oe[r];if(!i){i=Ce;for(const e of t)i=ne[e](i);Oe[r]=i}return i}(e.plugins)),new r(e,t)}const Oe={};t.parse=function(e,t){var r;if("unambiguous"!==(null==(r=t)?void 0:r.sourceType))return getParser(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";const r=getParser(t,e),i=r.parse();if(r.sawUnambiguousESM)return i;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",getParser(t,e).parse()}catch(e){}else i.program.sourceType="script";return i}catch(r){try{return t.sourceType="script",getParser(t,e).parse()}catch(e){}throw r}},t.parseExpression=function(e,t){const r=getParser(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()},t.tokTypes=l},1619:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function createTemplateBuilder(e,t){const r=new WeakMap,o=new WeakMap,l=t||(0,i.validate)(null);return Object.assign(((t,...a)=>{if("string"==typeof t){if(a.length>1)throw new Error("Unexpected extra params.");return extendedTrace((0,n.default)(e,t,(0,i.merge)(l,(0,i.validate)(a[0]))))}if(Array.isArray(t)){let i=r.get(t);return i||(i=(0,s.default)(e,t,l),r.set(t,i)),extendedTrace(i(a))}if("object"==typeof t&&t){if(a.length>0)throw new Error("Unexpected extra params.");return createTemplateBuilder(e,(0,i.merge)(l,(0,i.validate)(t)))}throw new Error("Unexpected template param "+typeof t)}),{ast:(t,...r)=>{if("string"==typeof t){if(r.length>1)throw new Error("Unexpected extra params.");return(0,n.default)(e,t,(0,i.merge)((0,i.merge)(l,(0,i.validate)(r[0])),a))()}if(Array.isArray(t)){let n=o.get(t);return n||(n=(0,s.default)(e,t,(0,i.merge)(l,a)),o.set(t,n)),n(r)()}throw new Error("Unexpected template param "+typeof t)}})};var i=r(2123),n=_interopRequireDefault(r(3046)),s=_interopRequireDefault(r(3004));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const a=(0,i.validate)({placeholderPattern:!1});function extendedTrace(e){let t="";try{throw new Error}catch(e){e.stack&&(t=e.stack.split("\\n").slice(3).join("\\n"))}return r=>{try{return e(r)}catch(e){throw e.stack+=`\\n =============\\n${t}`,e}}}},8913:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.program=t.expression=t.statement=t.statements=t.smart=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(17));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function makeStatementFormatter(e){return{code:e=>`/* @babel/template */;\\n${e}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}const n=makeStatementFormatter((e=>e.length>1?e:e[0]));t.smart=n;const s=makeStatementFormatter((e=>e));t.statements=s;const a=makeStatementFormatter((e=>{if(0===e.length)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]}));t.statement=a;const o={code:e=>`(\\n${e}\\n)`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(0===o.unwrap(e).start)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{const[t]=e.body;return i.assertExpressionStatement(t),t.expression}};t.expression=o;t.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}},6205:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.program=t.expression=t.statements=t.statement=t.smart=void 0;var i,n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(8913)),s=(i=r(1619))&&i.__esModule?i:{default:i};function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}const a=(0,s.default)(n.smart);t.smart=a;const o=(0,s.default)(n.statement);t.statement=o;const l=(0,s.default)(n.statements);t.statements=l;const c=(0,s.default)(n.expression);t.expression=c;const u=(0,s.default)(n.program);t.program=u;var p=Object.assign(a.bind(void 0),{smart:a,statement:o,statements:l,expression:c,program:u,ast:a.ast});t.default=p},3004:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){const{metadata:a,names:o}=function(e,t,r){let i,s,a,o="";do{o+="$";const l=buildTemplateCode(t,o);i=l.names,s=new Set(i),a=(0,n.default)(e,e.code(l.code),{parser:r.parser,placeholderWhitelist:new Set(l.names.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders})}while(a.placeholders.some((e=>e.isDuplicate&&s.has(e.name))));return{metadata:a,names:i}}(e,t,r);return t=>{const r={};return t.forEach(((e,t)=>{r[o[t]]=e})),t=>{const n=(0,i.normalizeReplacements)(t);return n&&Object.keys(n).forEach((e=>{if(Object.prototype.hasOwnProperty.call(r,e))throw new Error("Unexpected replacement overlap.")})),e.unwrap((0,s.default)(a,n?Object.assign(n,r):r))}}};var i=r(2123),n=_interopRequireDefault(r(5008)),s=_interopRequireDefault(r(5985));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function buildTemplateCode(e,t){const r=[];let i=e[0];for(let n=1;n<e.length;n++){const s=`${t}${n-1}`;r.push(s),i+=s+e[n]}return{names:r,code:i}}},2123:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merge=function(e,t){const{placeholderWhitelist:r=e.placeholderWhitelist,placeholderPattern:i=e.placeholderPattern,preserveComments:n=e.preserveComments,syntacticPlaceholders:s=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:r,placeholderPattern:i,preserveComments:n,syntacticPlaceholders:s}},t.validate=function(e){if(null!=e&&"object"!=typeof e)throw new Error("Unknown template options.");const t=e||{},{placeholderWhitelist:r,placeholderPattern:i,preserveComments:n,syntacticPlaceholders:s}=t,a=function(e,t){if(null==e)return{};var r,i,n={},s=Object.keys(e);for(i=0;i<s.length;i++)r=s[i],t.indexOf(r)>=0||(n[r]=e[r]);return n}(t,["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"]);if(null!=r&&!(r instanceof Set))throw new Error("\'.placeholderWhitelist\' must be a Set, null, or undefined");if(null!=i&&!(i instanceof RegExp)&&!1!==i)throw new Error("\'.placeholderPattern\' must be a RegExp, false, null, or undefined");if(null!=n&&"boolean"!=typeof n)throw new Error("\'.preserveComments\' must be a boolean, null, or undefined");if(null!=s&&"boolean"!=typeof s)throw new Error("\'.syntacticPlaceholders\' must be a boolean, null, or undefined");if(!0===s&&(null!=r||null!=i))throw new Error("\'.placeholderWhitelist\' and \'.placeholderPattern\' aren\'t compatible with \'.syntacticPlaceholders: true\'");return{parser:a,placeholderWhitelist:r||void 0,placeholderPattern:null==i?void 0:i,preserveComments:null==n?void 0:n,syntacticPlaceholders:null==s?void 0:s}},t.normalizeReplacements=function(e){if(Array.isArray(e))return e.reduce(((e,t,r)=>(e["$"+r]=t,e)),{});if("object"==typeof e||null==e)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}},5008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){const{placeholderWhitelist:a,placeholderPattern:o,preserveComments:l,syntacticPlaceholders:c}=r,u=function(e,t,r){const i=(t.plugins||[]).slice();!1!==r&&i.push("placeholders");t=Object.assign({allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,sourceType:"module"},t,{plugins:i});try{return(0,n.parse)(e,t)}catch(t){const r=t.loc;throw r&&(t.message+="\\n"+(0,s.codeFrameColumns)(e,{start:r}),t.code="BABEL_TEMPLATE_PARSE_ERROR"),t}}(t,r.parser,c);i.removePropertiesDeep(u,{preserveComments:l}),e.validate(u);const p={placeholders:[],placeholderNames:new Set},d={placeholders:[],placeholderNames:new Set},h={value:void 0};return i.traverse(u,placeholderVisitorHandler,{syntactic:p,legacy:d,isLegacyRef:h,placeholderWhitelist:a,placeholderPattern:o,syntacticPlaceholders:c}),Object.assign({ast:u},h.value?d:p)};var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(17)),n=r(4494),s=r(785);function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}const a=/^[_$A-Z0-9]+$/;function placeholderVisitorHandler(e,t,r){var n;let s;if(i.isPlaceholder(e)){if(!1===r.syntacticPlaceholders)throw new Error("%%foo%%-style placeholders can\'t be used when \'.syntacticPlaceholders\' is false.");s=e.name.name,r.isLegacyRef.value=!1}else{if(!1===r.isLegacyRef.value||r.syntacticPlaceholders)return;if(i.isIdentifier(e)||i.isJSXIdentifier(e))s=e.name,r.isLegacyRef.value=!0;else{if(!i.isStringLiteral(e))return;s=e.value,r.isLegacyRef.value=!0}}if(!r.isLegacyRef.value&&(null!=r.placeholderPattern||null!=r.placeholderWhitelist))throw new Error("\'.placeholderWhitelist\' and \'.placeholderPattern\' aren\'t compatible with \'.syntacticPlaceholders: true\'");if(r.isLegacyRef.value&&(!1===r.placeholderPattern||!(r.placeholderPattern||a).test(s))&&!(null==(n=r.placeholderWhitelist)?void 0:n.has(s)))return;t=t.slice();const{node:o,key:l}=t[t.length-1];let c;i.isStringLiteral(e)||i.isPlaceholder(e,{expectedNode:"StringLiteral"})?c="string":i.isNewExpression(o)&&"arguments"===l||i.isCallExpression(o)&&"arguments"===l||i.isFunction(o)&&"params"===l?c="param":i.isExpressionStatement(o)&&!i.isPlaceholder(e)?(c="statement",t=t.slice(0,-1)):c=i.isStatement(e)&&i.isPlaceholder(e)?"statement":"other";const{placeholders:u,placeholderNames:p}=r.isLegacyRef.value?r.legacy:r.syntactic;u.push({name:s,type:c,resolve:e=>function(e,t){let r=e;for(let e=0;e<t.length-1;e++){const{key:i,index:n}=t[e];r=void 0===n?r[i]:r[i][n]}const{key:i,index:n}=t[t.length-1];return{parent:r,key:i,index:n}}(e,t),isDuplicate:p.has(s)}),p.add(s)}},5985:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=i.cloneNode(e.ast);t&&(e.placeholders.forEach((e=>{if(!Object.prototype.hasOwnProperty.call(t,e.name)){const t=e.name;throw new Error(`Error: No substitution given for "${t}". If this is not meant to be a\\n placeholder you may want to consider passing one of the following options to @babel/template:\\n - { placeholderPattern: false, placeholderWhitelist: new Set([\'${t}\'])}\\n - { placeholderPattern: /^${t}$/ }`)}})),Object.keys(t).forEach((t=>{if(!e.placeholderNames.has(t))throw new Error(`Unknown substitution "${t}" given`)})));return e.placeholders.slice().reverse().forEach((e=>{try{!function(e,t,r){e.isDuplicate&&(Array.isArray(r)?r=r.map((e=>i.cloneNode(e))):"object"==typeof r&&(r=i.cloneNode(r)));const{parent:n,key:s,index:a}=e.resolve(t);if("string"===e.type){if("string"==typeof r&&(r=i.stringLiteral(r)),!r||!i.isStringLiteral(r))throw new Error("Expected string substitution")}else if("statement"===e.type)void 0===a?r?Array.isArray(r)?r=i.blockStatement(r):"string"==typeof r?r=i.expressionStatement(i.identifier(r)):i.isStatement(r)||(r=i.expressionStatement(r)):r=i.emptyStatement():r&&!Array.isArray(r)&&("string"==typeof r&&(r=i.identifier(r)),i.isStatement(r)||(r=i.expressionStatement(r)));else if("param"===e.type){if("string"==typeof r&&(r=i.identifier(r)),void 0===a)throw new Error("Assertion failure.")}else if("string"==typeof r&&(r=i.identifier(r)),Array.isArray(r))throw new Error("Cannot replace single expression with an array.");if(void 0===a)i.validate(n,s,r),n[s]=r;else{const t=n[s].slice();"statement"===e.type||"param"===e.type?null==r?t.splice(a,1):Array.isArray(r)?t.splice(a,1,...r):t[a]=r:t[a]=r,i.validate(n,s,t),n[s]=t}}(e,r,t&&t[e.name]||null)}catch(t){throw t.message=`@babel/template placeholder "${e.name}": ${t.message}`,t}})),r};var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(17));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}},3046:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){let a;return t=e.code(t),o=>{const l=(0,i.normalizeReplacements)(o);return a||(a=(0,n.default)(e,t,r)),e.unwrap((0,s.default)(a,l))}};var i=r(2123),n=_interopRequireDefault(r(5008)),s=_interopRequireDefault(r(5985));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},9278:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!(0,i.default)(e)){var t;const r=null!=(t=null==e?void 0:e.type)?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}};var i=r(1860)},2937:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertArrayExpression=function(e,t){assert("ArrayExpression",e,t)},t.assertAssignmentExpression=function(e,t){assert("AssignmentExpression",e,t)},t.assertBinaryExpression=function(e,t){assert("BinaryExpression",e,t)},t.assertInterpreterDirective=function(e,t){assert("InterpreterDirective",e,t)},t.assertDirective=function(e,t){assert("Directive",e,t)},t.assertDirectiveLiteral=function(e,t){assert("DirectiveLiteral",e,t)},t.assertBlockStatement=function(e,t){assert("BlockStatement",e,t)},t.assertBreakStatement=function(e,t){assert("BreakStatement",e,t)},t.assertCallExpression=function(e,t){assert("CallExpression",e,t)},t.assertCatchClause=function(e,t){assert("CatchClause",e,t)},t.assertConditionalExpression=function(e,t){assert("ConditionalExpression",e,t)},t.assertContinueStatement=function(e,t){assert("ContinueStatement",e,t)},t.assertDebuggerStatement=function(e,t){assert("DebuggerStatement",e,t)},t.assertDoWhileStatement=function(e,t){assert("DoWhileStatement",e,t)},t.assertEmptyStatement=function(e,t){assert("EmptyStatement",e,t)},t.assertExpressionStatement=function(e,t){assert("ExpressionStatement",e,t)},t.assertFile=function(e,t){assert("File",e,t)},t.assertForInStatement=function(e,t){assert("ForInStatement",e,t)},t.assertForStatement=function(e,t){assert("ForStatement",e,t)},t.assertFunctionDeclaration=function(e,t){assert("FunctionDeclaration",e,t)},t.assertFunctionExpression=function(e,t){assert("FunctionExpression",e,t)},t.assertIdentifier=function(e,t){assert("Identifier",e,t)},t.assertIfStatement=function(e,t){assert("IfStatement",e,t)},t.assertLabeledStatement=function(e,t){assert("LabeledStatement",e,t)},t.assertStringLiteral=function(e,t){assert("StringLiteral",e,t)},t.assertNumericLiteral=function(e,t){assert("NumericLiteral",e,t)},t.assertNullLiteral=function(e,t){assert("NullLiteral",e,t)},t.assertBooleanLiteral=function(e,t){assert("BooleanLiteral",e,t)},t.assertRegExpLiteral=function(e,t){assert("RegExpLiteral",e,t)},t.assertLogicalExpression=function(e,t){assert("LogicalExpression",e,t)},t.assertMemberExpression=function(e,t){assert("MemberExpression",e,t)},t.assertNewExpression=function(e,t){assert("NewExpression",e,t)},t.assertProgram=function(e,t){assert("Program",e,t)},t.assertObjectExpression=function(e,t){assert("ObjectExpression",e,t)},t.assertObjectMethod=function(e,t){assert("ObjectMethod",e,t)},t.assertObjectProperty=function(e,t){assert("ObjectProperty",e,t)},t.assertRestElement=function(e,t){assert("RestElement",e,t)},t.assertReturnStatement=function(e,t){assert("ReturnStatement",e,t)},t.assertSequenceExpression=function(e,t){assert("SequenceExpression",e,t)},t.assertParenthesizedExpression=function(e,t){assert("ParenthesizedExpression",e,t)},t.assertSwitchCase=function(e,t){assert("SwitchCase",e,t)},t.assertSwitchStatement=function(e,t){assert("SwitchStatement",e,t)},t.assertThisExpression=function(e,t){assert("ThisExpression",e,t)},t.assertThrowStatement=function(e,t){assert("ThrowStatement",e,t)},t.assertTryStatement=function(e,t){assert("TryStatement",e,t)},t.assertUnaryExpression=function(e,t){assert("UnaryExpression",e,t)},t.assertUpdateExpression=function(e,t){assert("UpdateExpression",e,t)},t.assertVariableDeclaration=function(e,t){assert("VariableDeclaration",e,t)},t.assertVariableDeclarator=function(e,t){assert("VariableDeclarator",e,t)},t.assertWhileStatement=function(e,t){assert("WhileStatement",e,t)},t.assertWithStatement=function(e,t){assert("WithStatement",e,t)},t.assertAssignmentPattern=function(e,t){assert("AssignmentPattern",e,t)},t.assertArrayPattern=function(e,t){assert("ArrayPattern",e,t)},t.assertArrowFunctionExpression=function(e,t){assert("ArrowFunctionExpression",e,t)},t.assertClassBody=function(e,t){assert("ClassBody",e,t)},t.assertClassExpression=function(e,t){assert("ClassExpression",e,t)},t.assertClassDeclaration=function(e,t){assert("ClassDeclaration",e,t)},t.assertExportAllDeclaration=function(e,t){assert("ExportAllDeclaration",e,t)},t.assertExportDefaultDeclaration=function(e,t){assert("ExportDefaultDeclaration",e,t)},t.assertExportNamedDeclaration=function(e,t){assert("ExportNamedDeclaration",e,t)},t.assertExportSpecifier=function(e,t){assert("ExportSpecifier",e,t)},t.assertForOfStatement=function(e,t){assert("ForOfStatement",e,t)},t.assertImportDeclaration=function(e,t){assert("ImportDeclaration",e,t)},t.assertImportDefaultSpecifier=function(e,t){assert("ImportDefaultSpecifier",e,t)},t.assertImportNamespaceSpecifier=function(e,t){assert("ImportNamespaceSpecifier",e,t)},t.assertImportSpecifier=function(e,t){assert("ImportSpecifier",e,t)},t.assertMetaProperty=function(e,t){assert("MetaProperty",e,t)},t.assertClassMethod=function(e,t){assert("ClassMethod",e,t)},t.assertObjectPattern=function(e,t){assert("ObjectPattern",e,t)},t.assertSpreadElement=function(e,t){assert("SpreadElement",e,t)},t.assertSuper=function(e,t){assert("Super",e,t)},t.assertTaggedTemplateExpression=function(e,t){assert("TaggedTemplateExpression",e,t)},t.assertTemplateElement=function(e,t){assert("TemplateElement",e,t)},t.assertTemplateLiteral=function(e,t){assert("TemplateLiteral",e,t)},t.assertYieldExpression=function(e,t){assert("YieldExpression",e,t)},t.assertAwaitExpression=function(e,t){assert("AwaitExpression",e,t)},t.assertImport=function(e,t){assert("Import",e,t)},t.assertBigIntLiteral=function(e,t){assert("BigIntLiteral",e,t)},t.assertExportNamespaceSpecifier=function(e,t){assert("ExportNamespaceSpecifier",e,t)},t.assertOptionalMemberExpression=function(e,t){assert("OptionalMemberExpression",e,t)},t.assertOptionalCallExpression=function(e,t){assert("OptionalCallExpression",e,t)},t.assertAnyTypeAnnotation=function(e,t){assert("AnyTypeAnnotation",e,t)},t.assertArrayTypeAnnotation=function(e,t){assert("ArrayTypeAnnotation",e,t)},t.assertBooleanTypeAnnotation=function(e,t){assert("BooleanTypeAnnotation",e,t)},t.assertBooleanLiteralTypeAnnotation=function(e,t){assert("BooleanLiteralTypeAnnotation",e,t)},t.assertNullLiteralTypeAnnotation=function(e,t){assert("NullLiteralTypeAnnotation",e,t)},t.assertClassImplements=function(e,t){assert("ClassImplements",e,t)},t.assertDeclareClass=function(e,t){assert("DeclareClass",e,t)},t.assertDeclareFunction=function(e,t){assert("DeclareFunction",e,t)},t.assertDeclareInterface=function(e,t){assert("DeclareInterface",e,t)},t.assertDeclareModule=function(e,t){assert("DeclareModule",e,t)},t.assertDeclareModuleExports=function(e,t){assert("DeclareModuleExports",e,t)},t.assertDeclareTypeAlias=function(e,t){assert("DeclareTypeAlias",e,t)},t.assertDeclareOpaqueType=function(e,t){assert("DeclareOpaqueType",e,t)},t.assertDeclareVariable=function(e,t){assert("DeclareVariable",e,t)},t.assertDeclareExportDeclaration=function(e,t){assert("DeclareExportDeclaration",e,t)},t.assertDeclareExportAllDeclaration=function(e,t){assert("DeclareExportAllDeclaration",e,t)},t.assertDeclaredPredicate=function(e,t){assert("DeclaredPredicate",e,t)},t.assertExistsTypeAnnotation=function(e,t){assert("ExistsTypeAnnotation",e,t)},t.assertFunctionTypeAnnotation=function(e,t){assert("FunctionTypeAnnotation",e,t)},t.assertFunctionTypeParam=function(e,t){assert("FunctionTypeParam",e,t)},t.assertGenericTypeAnnotation=function(e,t){assert("GenericTypeAnnotation",e,t)},t.assertInferredPredicate=function(e,t){assert("InferredPredicate",e,t)},t.assertInterfaceExtends=function(e,t){assert("InterfaceExtends",e,t)},t.assertInterfaceDeclaration=function(e,t){assert("InterfaceDeclaration",e,t)},t.assertInterfaceTypeAnnotation=function(e,t){assert("InterfaceTypeAnnotation",e,t)},t.assertIntersectionTypeAnnotation=function(e,t){assert("IntersectionTypeAnnotation",e,t)},t.assertMixedTypeAnnotation=function(e,t){assert("MixedTypeAnnotation",e,t)},t.assertEmptyTypeAnnotation=function(e,t){assert("EmptyTypeAnnotation",e,t)},t.assertNullableTypeAnnotation=function(e,t){assert("NullableTypeAnnotation",e,t)},t.assertNumberLiteralTypeAnnotation=function(e,t){assert("NumberLiteralTypeAnnotation",e,t)},t.assertNumberTypeAnnotation=function(e,t){assert("NumberTypeAnnotation",e,t)},t.assertObjectTypeAnnotation=function(e,t){assert("ObjectTypeAnnotation",e,t)},t.assertObjectTypeInternalSlot=function(e,t){assert("ObjectTypeInternalSlot",e,t)},t.assertObjectTypeCallProperty=function(e,t){assert("ObjectTypeCallProperty",e,t)},t.assertObjectTypeIndexer=function(e,t){assert("ObjectTypeIndexer",e,t)},t.assertObjectTypeProperty=function(e,t){assert("ObjectTypeProperty",e,t)},t.assertObjectTypeSpreadProperty=function(e,t){assert("ObjectTypeSpreadProperty",e,t)},t.assertOpaqueType=function(e,t){assert("OpaqueType",e,t)},t.assertQualifiedTypeIdentifier=function(e,t){assert("QualifiedTypeIdentifier",e,t)},t.assertStringLiteralTypeAnnotation=function(e,t){assert("StringLiteralTypeAnnotation",e,t)},t.assertStringTypeAnnotation=function(e,t){assert("StringTypeAnnotation",e,t)},t.assertSymbolTypeAnnotation=function(e,t){assert("SymbolTypeAnnotation",e,t)},t.assertThisTypeAnnotation=function(e,t){assert("ThisTypeAnnotation",e,t)},t.assertTupleTypeAnnotation=function(e,t){assert("TupleTypeAnnotation",e,t)},t.assertTypeofTypeAnnotation=function(e,t){assert("TypeofTypeAnnotation",e,t)},t.assertTypeAlias=function(e,t){assert("TypeAlias",e,t)},t.assertTypeAnnotation=function(e,t){assert("TypeAnnotation",e,t)},t.assertTypeCastExpression=function(e,t){assert("TypeCastExpression",e,t)},t.assertTypeParameter=function(e,t){assert("TypeParameter",e,t)},t.assertTypeParameterDeclaration=function(e,t){assert("TypeParameterDeclaration",e,t)},t.assertTypeParameterInstantiation=function(e,t){assert("TypeParameterInstantiation",e,t)},t.assertUnionTypeAnnotation=function(e,t){assert("UnionTypeAnnotation",e,t)},t.assertVariance=function(e,t){assert("Variance",e,t)},t.assertVoidTypeAnnotation=function(e,t){assert("VoidTypeAnnotation",e,t)},t.assertEnumDeclaration=function(e,t){assert("EnumDeclaration",e,t)},t.assertEnumBooleanBody=function(e,t){assert("EnumBooleanBody",e,t)},t.assertEnumNumberBody=function(e,t){assert("EnumNumberBody",e,t)},t.assertEnumStringBody=function(e,t){assert("EnumStringBody",e,t)},t.assertEnumSymbolBody=function(e,t){assert("EnumSymbolBody",e,t)},t.assertEnumBooleanMember=function(e,t){assert("EnumBooleanMember",e,t)},t.assertEnumNumberMember=function(e,t){assert("EnumNumberMember",e,t)},t.assertEnumStringMember=function(e,t){assert("EnumStringMember",e,t)},t.assertEnumDefaultedMember=function(e,t){assert("EnumDefaultedMember",e,t)},t.assertIndexedAccessType=function(e,t){assert("IndexedAccessType",e,t)},t.assertOptionalIndexedAccessType=function(e,t){assert("OptionalIndexedAccessType",e,t)},t.assertJSXAttribute=function(e,t){assert("JSXAttribute",e,t)},t.assertJSXClosingElement=function(e,t){assert("JSXClosingElement",e,t)},t.assertJSXElement=function(e,t){assert("JSXElement",e,t)},t.assertJSXEmptyExpression=function(e,t){assert("JSXEmptyExpression",e,t)},t.assertJSXExpressionContainer=function(e,t){assert("JSXExpressionContainer",e,t)},t.assertJSXSpreadChild=function(e,t){assert("JSXSpreadChild",e,t)},t.assertJSXIdentifier=function(e,t){assert("JSXIdentifier",e,t)},t.assertJSXMemberExpression=function(e,t){assert("JSXMemberExpression",e,t)},t.assertJSXNamespacedName=function(e,t){assert("JSXNamespacedName",e,t)},t.assertJSXOpeningElement=function(e,t){assert("JSXOpeningElement",e,t)},t.assertJSXSpreadAttribute=function(e,t){assert("JSXSpreadAttribute",e,t)},t.assertJSXText=function(e,t){assert("JSXText",e,t)},t.assertJSXFragment=function(e,t){assert("JSXFragment",e,t)},t.assertJSXOpeningFragment=function(e,t){assert("JSXOpeningFragment",e,t)},t.assertJSXClosingFragment=function(e,t){assert("JSXClosingFragment",e,t)},t.assertNoop=function(e,t){assert("Noop",e,t)},t.assertPlaceholder=function(e,t){assert("Placeholder",e,t)},t.assertV8IntrinsicIdentifier=function(e,t){assert("V8IntrinsicIdentifier",e,t)},t.assertArgumentPlaceholder=function(e,t){assert("ArgumentPlaceholder",e,t)},t.assertBindExpression=function(e,t){assert("BindExpression",e,t)},t.assertClassProperty=function(e,t){assert("ClassProperty",e,t)},t.assertPipelineTopicExpression=function(e,t){assert("PipelineTopicExpression",e,t)},t.assertPipelineBareFunction=function(e,t){assert("PipelineBareFunction",e,t)},t.assertPipelinePrimaryTopicReference=function(e,t){assert("PipelinePrimaryTopicReference",e,t)},t.assertClassPrivateProperty=function(e,t){assert("ClassPrivateProperty",e,t)},t.assertClassPrivateMethod=function(e,t){assert("ClassPrivateMethod",e,t)},t.assertImportAttribute=function(e,t){assert("ImportAttribute",e,t)},t.assertDecorator=function(e,t){assert("Decorator",e,t)},t.assertDoExpression=function(e,t){assert("DoExpression",e,t)},t.assertExportDefaultSpecifier=function(e,t){assert("ExportDefaultSpecifier",e,t)},t.assertPrivateName=function(e,t){assert("PrivateName",e,t)},t.assertRecordExpression=function(e,t){assert("RecordExpression",e,t)},t.assertTupleExpression=function(e,t){assert("TupleExpression",e,t)},t.assertDecimalLiteral=function(e,t){assert("DecimalLiteral",e,t)},t.assertStaticBlock=function(e,t){assert("StaticBlock",e,t)},t.assertModuleExpression=function(e,t){assert("ModuleExpression",e,t)},t.assertTSParameterProperty=function(e,t){assert("TSParameterProperty",e,t)},t.assertTSDeclareFunction=function(e,t){assert("TSDeclareFunction",e,t)},t.assertTSDeclareMethod=function(e,t){assert("TSDeclareMethod",e,t)},t.assertTSQualifiedName=function(e,t){assert("TSQualifiedName",e,t)},t.assertTSCallSignatureDeclaration=function(e,t){assert("TSCallSignatureDeclaration",e,t)},t.assertTSConstructSignatureDeclaration=function(e,t){assert("TSConstructSignatureDeclaration",e,t)},t.assertTSPropertySignature=function(e,t){assert("TSPropertySignature",e,t)},t.assertTSMethodSignature=function(e,t){assert("TSMethodSignature",e,t)},t.assertTSIndexSignature=function(e,t){assert("TSIndexSignature",e,t)},t.assertTSAnyKeyword=function(e,t){assert("TSAnyKeyword",e,t)},t.assertTSBooleanKeyword=function(e,t){assert("TSBooleanKeyword",e,t)},t.assertTSBigIntKeyword=function(e,t){assert("TSBigIntKeyword",e,t)},t.assertTSIntrinsicKeyword=function(e,t){assert("TSIntrinsicKeyword",e,t)},t.assertTSNeverKeyword=function(e,t){assert("TSNeverKeyword",e,t)},t.assertTSNullKeyword=function(e,t){assert("TSNullKeyword",e,t)},t.assertTSNumberKeyword=function(e,t){assert("TSNumberKeyword",e,t)},t.assertTSObjectKeyword=function(e,t){assert("TSObjectKeyword",e,t)},t.assertTSStringKeyword=function(e,t){assert("TSStringKeyword",e,t)},t.assertTSSymbolKeyword=function(e,t){assert("TSSymbolKeyword",e,t)},t.assertTSUndefinedKeyword=function(e,t){assert("TSUndefinedKeyword",e,t)},t.assertTSUnknownKeyword=function(e,t){assert("TSUnknownKeyword",e,t)},t.assertTSVoidKeyword=function(e,t){assert("TSVoidKeyword",e,t)},t.assertTSThisType=function(e,t){assert("TSThisType",e,t)},t.assertTSFunctionType=function(e,t){assert("TSFunctionType",e,t)},t.assertTSConstructorType=function(e,t){assert("TSConstructorType",e,t)},t.assertTSTypeReference=function(e,t){assert("TSTypeReference",e,t)},t.assertTSTypePredicate=function(e,t){assert("TSTypePredicate",e,t)},t.assertTSTypeQuery=function(e,t){assert("TSTypeQuery",e,t)},t.assertTSTypeLiteral=function(e,t){assert("TSTypeLiteral",e,t)},t.assertTSArrayType=function(e,t){assert("TSArrayType",e,t)},t.assertTSTupleType=function(e,t){assert("TSTupleType",e,t)},t.assertTSOptionalType=function(e,t){assert("TSOptionalType",e,t)},t.assertTSRestType=function(e,t){assert("TSRestType",e,t)},t.assertTSNamedTupleMember=function(e,t){assert("TSNamedTupleMember",e,t)},t.assertTSUnionType=function(e,t){assert("TSUnionType",e,t)},t.assertTSIntersectionType=function(e,t){assert("TSIntersectionType",e,t)},t.assertTSConditionalType=function(e,t){assert("TSConditionalType",e,t)},t.assertTSInferType=function(e,t){assert("TSInferType",e,t)},t.assertTSParenthesizedType=function(e,t){assert("TSParenthesizedType",e,t)},t.assertTSTypeOperator=function(e,t){assert("TSTypeOperator",e,t)},t.assertTSIndexedAccessType=function(e,t){assert("TSIndexedAccessType",e,t)},t.assertTSMappedType=function(e,t){assert("TSMappedType",e,t)},t.assertTSLiteralType=function(e,t){assert("TSLiteralType",e,t)},t.assertTSExpressionWithTypeArguments=function(e,t){assert("TSExpressionWithTypeArguments",e,t)},t.assertTSInterfaceDeclaration=function(e,t){assert("TSInterfaceDeclaration",e,t)},t.assertTSInterfaceBody=function(e,t){assert("TSInterfaceBody",e,t)},t.assertTSTypeAliasDeclaration=function(e,t){assert("TSTypeAliasDeclaration",e,t)},t.assertTSAsExpression=function(e,t){assert("TSAsExpression",e,t)},t.assertTSTypeAssertion=function(e,t){assert("TSTypeAssertion",e,t)},t.assertTSEnumDeclaration=function(e,t){assert("TSEnumDeclaration",e,t)},t.assertTSEnumMember=function(e,t){assert("TSEnumMember",e,t)},t.assertTSModuleDeclaration=function(e,t){assert("TSModuleDeclaration",e,t)},t.assertTSModuleBlock=function(e,t){assert("TSModuleBlock",e,t)},t.assertTSImportType=function(e,t){assert("TSImportType",e,t)},t.assertTSImportEqualsDeclaration=function(e,t){assert("TSImportEqualsDeclaration",e,t)},t.assertTSExternalModuleReference=function(e,t){assert("TSExternalModuleReference",e,t)},t.assertTSNonNullExpression=function(e,t){assert("TSNonNullExpression",e,t)},t.assertTSExportAssignment=function(e,t){assert("TSExportAssignment",e,t)},t.assertTSNamespaceExportDeclaration=function(e,t){assert("TSNamespaceExportDeclaration",e,t)},t.assertTSTypeAnnotation=function(e,t){assert("TSTypeAnnotation",e,t)},t.assertTSTypeParameterInstantiation=function(e,t){assert("TSTypeParameterInstantiation",e,t)},t.assertTSTypeParameterDeclaration=function(e,t){assert("TSTypeParameterDeclaration",e,t)},t.assertTSTypeParameter=function(e,t){assert("TSTypeParameter",e,t)},t.assertExpression=function(e,t){assert("Expression",e,t)},t.assertBinary=function(e,t){assert("Binary",e,t)},t.assertScopable=function(e,t){assert("Scopable",e,t)},t.assertBlockParent=function(e,t){assert("BlockParent",e,t)},t.assertBlock=function(e,t){assert("Block",e,t)},t.assertStatement=function(e,t){assert("Statement",e,t)},t.assertTerminatorless=function(e,t){assert("Terminatorless",e,t)},t.assertCompletionStatement=function(e,t){assert("CompletionStatement",e,t)},t.assertConditional=function(e,t){assert("Conditional",e,t)},t.assertLoop=function(e,t){assert("Loop",e,t)},t.assertWhile=function(e,t){assert("While",e,t)},t.assertExpressionWrapper=function(e,t){assert("ExpressionWrapper",e,t)},t.assertFor=function(e,t){assert("For",e,t)},t.assertForXStatement=function(e,t){assert("ForXStatement",e,t)},t.assertFunction=function(e,t){assert("Function",e,t)},t.assertFunctionParent=function(e,t){assert("FunctionParent",e,t)},t.assertPureish=function(e,t){assert("Pureish",e,t)},t.assertDeclaration=function(e,t){assert("Declaration",e,t)},t.assertPatternLike=function(e,t){assert("PatternLike",e,t)},t.assertLVal=function(e,t){assert("LVal",e,t)},t.assertTSEntityName=function(e,t){assert("TSEntityName",e,t)},t.assertLiteral=function(e,t){assert("Literal",e,t)},t.assertImmutable=function(e,t){assert("Immutable",e,t)},t.assertUserWhitespacable=function(e,t){assert("UserWhitespacable",e,t)},t.assertMethod=function(e,t){assert("Method",e,t)},t.assertObjectMember=function(e,t){assert("ObjectMember",e,t)},t.assertProperty=function(e,t){assert("Property",e,t)},t.assertUnaryLike=function(e,t){assert("UnaryLike",e,t)},t.assertPattern=function(e,t){assert("Pattern",e,t)},t.assertClass=function(e,t){assert("Class",e,t)},t.assertModuleDeclaration=function(e,t){assert("ModuleDeclaration",e,t)},t.assertExportDeclaration=function(e,t){assert("ExportDeclaration",e,t)},t.assertModuleSpecifier=function(e,t){assert("ModuleSpecifier",e,t)},t.assertFlow=function(e,t){assert("Flow",e,t)},t.assertFlowType=function(e,t){assert("FlowType",e,t)},t.assertFlowBaseAnnotation=function(e,t){assert("FlowBaseAnnotation",e,t)},t.assertFlowDeclaration=function(e,t){assert("FlowDeclaration",e,t)},t.assertFlowPredicate=function(e,t){assert("FlowPredicate",e,t)},t.assertEnumBody=function(e,t){assert("EnumBody",e,t)},t.assertEnumMember=function(e,t){assert("EnumMember",e,t)},t.assertJSX=function(e,t){assert("JSX",e,t)},t.assertPrivate=function(e,t){assert("Private",e,t)},t.assertTSTypeElement=function(e,t){assert("TSTypeElement",e,t)},t.assertTSType=function(e,t){assert("TSType",e,t)},t.assertTSBaseType=function(e,t){assert("TSBaseType",e,t)},t.assertNumberLiteral=function(e,t){console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),assert("NumberLiteral",e,t)},t.assertRegexLiteral=function(e,t){console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),assert("RegexLiteral",e,t)},t.assertRestProperty=function(e,t){console.trace("The node type RestProperty has been renamed to RestElement"),assert("RestProperty",e,t)},t.assertSpreadProperty=function(e,t){console.trace("The node type SpreadProperty has been renamed to SpreadElement"),assert("SpreadProperty",e,t)};var i=r(5001);function assert(e,t,r){if(!(0,i.default)(e,t,r))throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}},2006:()=>{},9234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,...t){const r=i.BUILDER_KEYS[e],s=t.length;if(s>r.length)throw new Error(`${e}: Too many arguments passed. Received ${s} but can receive no more than ${r.length}`);const a={type:e};let o=0;r.forEach((r=>{const n=i.NODE_FIELDS[e][r];let l;o<s&&(l=t[o]),void 0===l&&(l=Array.isArray(n.default)?[]:n.default),a[r]=l,o++}));for(const e of Object.keys(a))(0,n.default)(a,e,a[e]);return a};var i=r(1102),n=r(1843)},4660:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,n.default)(e);return 1===t.length?t[0]:(0,i.unionTypeAnnotation)(t)};var i=r(1580),n=r(6337)},7395:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"===e)return(0,i.stringTypeAnnotation)();if("number"===e)return(0,i.numberTypeAnnotation)();if("undefined"===e)return(0,i.voidTypeAnnotation)();if("boolean"===e)return(0,i.booleanTypeAnnotation)();if("function"===e)return(0,i.genericTypeAnnotation)((0,i.identifier)("Function"));if("object"===e)return(0,i.genericTypeAnnotation)((0,i.identifier)("Object"));if("symbol"===e)return(0,i.genericTypeAnnotation)((0,i.identifier)("Symbol"));if("bigint"===e)return(0,i.anyTypeAnnotation)();throw new Error("Invalid typeof value: "+e)};var i=r(1580)},1580:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayExpression=function(e){return(0,i.default)("ArrayExpression",...arguments)},t.assignmentExpression=function(e,t,r){return(0,i.default)("AssignmentExpression",...arguments)},t.binaryExpression=function(e,t,r){return(0,i.default)("BinaryExpression",...arguments)},t.interpreterDirective=function(e){return(0,i.default)("InterpreterDirective",...arguments)},t.directive=function(e){return(0,i.default)("Directive",...arguments)},t.directiveLiteral=function(e){return(0,i.default)("DirectiveLiteral",...arguments)},t.blockStatement=function(e,t){return(0,i.default)("BlockStatement",...arguments)},t.breakStatement=function(e){return(0,i.default)("BreakStatement",...arguments)},t.callExpression=function(e,t){return(0,i.default)("CallExpression",...arguments)},t.catchClause=function(e,t){return(0,i.default)("CatchClause",...arguments)},t.conditionalExpression=function(e,t,r){return(0,i.default)("ConditionalExpression",...arguments)},t.continueStatement=function(e){return(0,i.default)("ContinueStatement",...arguments)},t.debuggerStatement=function(){return(0,i.default)("DebuggerStatement",...arguments)},t.doWhileStatement=function(e,t){return(0,i.default)("DoWhileStatement",...arguments)},t.emptyStatement=function(){return(0,i.default)("EmptyStatement",...arguments)},t.expressionStatement=function(e){return(0,i.default)("ExpressionStatement",...arguments)},t.file=function(e,t,r){return(0,i.default)("File",...arguments)},t.forInStatement=function(e,t,r){return(0,i.default)("ForInStatement",...arguments)},t.forStatement=function(e,t,r,n){return(0,i.default)("ForStatement",...arguments)},t.functionDeclaration=function(e,t,r,n,s){return(0,i.default)("FunctionDeclaration",...arguments)},t.functionExpression=function(e,t,r,n,s){return(0,i.default)("FunctionExpression",...arguments)},t.identifier=function(e){return(0,i.default)("Identifier",...arguments)},t.ifStatement=function(e,t,r){return(0,i.default)("IfStatement",...arguments)},t.labeledStatement=function(e,t){return(0,i.default)("LabeledStatement",...arguments)},t.stringLiteral=function(e){return(0,i.default)("StringLiteral",...arguments)},t.numericLiteral=function(e){return(0,i.default)("NumericLiteral",...arguments)},t.nullLiteral=function(){return(0,i.default)("NullLiteral",...arguments)},t.booleanLiteral=function(e){return(0,i.default)("BooleanLiteral",...arguments)},t.regExpLiteral=function(e,t){return(0,i.default)("RegExpLiteral",...arguments)},t.logicalExpression=function(e,t,r){return(0,i.default)("LogicalExpression",...arguments)},t.memberExpression=function(e,t,r,n){return(0,i.default)("MemberExpression",...arguments)},t.newExpression=function(e,t){return(0,i.default)("NewExpression",...arguments)},t.program=function(e,t,r,n){return(0,i.default)("Program",...arguments)},t.objectExpression=function(e){return(0,i.default)("ObjectExpression",...arguments)},t.objectMethod=function(e,t,r,n,s,a,o){return(0,i.default)("ObjectMethod",...arguments)},t.objectProperty=function(e,t,r,n,s){return(0,i.default)("ObjectProperty",...arguments)},t.restElement=function(e){return(0,i.default)("RestElement",...arguments)},t.returnStatement=function(e){return(0,i.default)("ReturnStatement",...arguments)},t.sequenceExpression=function(e){return(0,i.default)("SequenceExpression",...arguments)},t.parenthesizedExpression=function(e){return(0,i.default)("ParenthesizedExpression",...arguments)},t.switchCase=function(e,t){return(0,i.default)("SwitchCase",...arguments)},t.switchStatement=function(e,t){return(0,i.default)("SwitchStatement",...arguments)},t.thisExpression=function(){return(0,i.default)("ThisExpression",...arguments)},t.throwStatement=function(e){return(0,i.default)("ThrowStatement",...arguments)},t.tryStatement=function(e,t,r){return(0,i.default)("TryStatement",...arguments)},t.unaryExpression=function(e,t,r){return(0,i.default)("UnaryExpression",...arguments)},t.updateExpression=function(e,t,r){return(0,i.default)("UpdateExpression",...arguments)},t.variableDeclaration=function(e,t){return(0,i.default)("VariableDeclaration",...arguments)},t.variableDeclarator=function(e,t){return(0,i.default)("VariableDeclarator",...arguments)},t.whileStatement=function(e,t){return(0,i.default)("WhileStatement",...arguments)},t.withStatement=function(e,t){return(0,i.default)("WithStatement",...arguments)},t.assignmentPattern=function(e,t){return(0,i.default)("AssignmentPattern",...arguments)},t.arrayPattern=function(e){return(0,i.default)("ArrayPattern",...arguments)},t.arrowFunctionExpression=function(e,t,r){return(0,i.default)("ArrowFunctionExpression",...arguments)},t.classBody=function(e){return(0,i.default)("ClassBody",...arguments)},t.classExpression=function(e,t,r,n){return(0,i.default)("ClassExpression",...arguments)},t.classDeclaration=function(e,t,r,n){return(0,i.default)("ClassDeclaration",...arguments)},t.exportAllDeclaration=function(e){return(0,i.default)("ExportAllDeclaration",...arguments)},t.exportDefaultDeclaration=function(e){return(0,i.default)("ExportDefaultDeclaration",...arguments)},t.exportNamedDeclaration=function(e,t,r){return(0,i.default)("ExportNamedDeclaration",...arguments)},t.exportSpecifier=function(e,t){return(0,i.default)("ExportSpecifier",...arguments)},t.forOfStatement=function(e,t,r,n){return(0,i.default)("ForOfStatement",...arguments)},t.importDeclaration=function(e,t){return(0,i.default)("ImportDeclaration",...arguments)},t.importDefaultSpecifier=function(e){return(0,i.default)("ImportDefaultSpecifier",...arguments)},t.importNamespaceSpecifier=function(e){return(0,i.default)("ImportNamespaceSpecifier",...arguments)},t.importSpecifier=function(e,t){return(0,i.default)("ImportSpecifier",...arguments)},t.metaProperty=function(e,t){return(0,i.default)("MetaProperty",...arguments)},t.classMethod=function(e,t,r,n,s,a,o,l){return(0,i.default)("ClassMethod",...arguments)},t.objectPattern=function(e){return(0,i.default)("ObjectPattern",...arguments)},t.spreadElement=function(e){return(0,i.default)("SpreadElement",...arguments)},t.super=function(){return(0,i.default)("Super",...arguments)},t.taggedTemplateExpression=function(e,t){return(0,i.default)("TaggedTemplateExpression",...arguments)},t.templateElement=function(e,t){return(0,i.default)("TemplateElement",...arguments)},t.templateLiteral=function(e,t){return(0,i.default)("TemplateLiteral",...arguments)},t.yieldExpression=function(e,t){return(0,i.default)("YieldExpression",...arguments)},t.awaitExpression=function(e){return(0,i.default)("AwaitExpression",...arguments)},t.import=function(){return(0,i.default)("Import",...arguments)},t.bigIntLiteral=function(e){return(0,i.default)("BigIntLiteral",...arguments)},t.exportNamespaceSpecifier=function(e){return(0,i.default)("ExportNamespaceSpecifier",...arguments)},t.optionalMemberExpression=function(e,t,r,n){return(0,i.default)("OptionalMemberExpression",...arguments)},t.optionalCallExpression=function(e,t,r){return(0,i.default)("OptionalCallExpression",...arguments)},t.anyTypeAnnotation=function(){return(0,i.default)("AnyTypeAnnotation",...arguments)},t.arrayTypeAnnotation=function(e){return(0,i.default)("ArrayTypeAnnotation",...arguments)},t.booleanTypeAnnotation=function(){return(0,i.default)("BooleanTypeAnnotation",...arguments)},t.booleanLiteralTypeAnnotation=function(e){return(0,i.default)("BooleanLiteralTypeAnnotation",...arguments)},t.nullLiteralTypeAnnotation=function(){return(0,i.default)("NullLiteralTypeAnnotation",...arguments)},t.classImplements=function(e,t){return(0,i.default)("ClassImplements",...arguments)},t.declareClass=function(e,t,r,n){return(0,i.default)("DeclareClass",...arguments)},t.declareFunction=function(e){return(0,i.default)("DeclareFunction",...arguments)},t.declareInterface=function(e,t,r,n){return(0,i.default)("DeclareInterface",...arguments)},t.declareModule=function(e,t,r){return(0,i.default)("DeclareModule",...arguments)},t.declareModuleExports=function(e){return(0,i.default)("DeclareModuleExports",...arguments)},t.declareTypeAlias=function(e,t,r){return(0,i.default)("DeclareTypeAlias",...arguments)},t.declareOpaqueType=function(e,t,r){return(0,i.default)("DeclareOpaqueType",...arguments)},t.declareVariable=function(e){return(0,i.default)("DeclareVariable",...arguments)},t.declareExportDeclaration=function(e,t,r){return(0,i.default)("DeclareExportDeclaration",...arguments)},t.declareExportAllDeclaration=function(e){return(0,i.default)("DeclareExportAllDeclaration",...arguments)},t.declaredPredicate=function(e){return(0,i.default)("DeclaredPredicate",...arguments)},t.existsTypeAnnotation=function(){return(0,i.default)("ExistsTypeAnnotation",...arguments)},t.functionTypeAnnotation=function(e,t,r,n){return(0,i.default)("FunctionTypeAnnotation",...arguments)},t.functionTypeParam=function(e,t){return(0,i.default)("FunctionTypeParam",...arguments)},t.genericTypeAnnotation=function(e,t){return(0,i.default)("GenericTypeAnnotation",...arguments)},t.inferredPredicate=function(){return(0,i.default)("InferredPredicate",...arguments)},t.interfaceExtends=function(e,t){return(0,i.default)("InterfaceExtends",...arguments)},t.interfaceDeclaration=function(e,t,r,n){return(0,i.default)("InterfaceDeclaration",...arguments)},t.interfaceTypeAnnotation=function(e,t){return(0,i.default)("InterfaceTypeAnnotation",...arguments)},t.intersectionTypeAnnotation=function(e){return(0,i.default)("IntersectionTypeAnnotation",...arguments)},t.mixedTypeAnnotation=function(){return(0,i.default)("MixedTypeAnnotation",...arguments)},t.emptyTypeAnnotation=function(){return(0,i.default)("EmptyTypeAnnotation",...arguments)},t.nullableTypeAnnotation=function(e){return(0,i.default)("NullableTypeAnnotation",...arguments)},t.numberLiteralTypeAnnotation=function(e){return(0,i.default)("NumberLiteralTypeAnnotation",...arguments)},t.numberTypeAnnotation=function(){return(0,i.default)("NumberTypeAnnotation",...arguments)},t.objectTypeAnnotation=function(e,t,r,n,s){return(0,i.default)("ObjectTypeAnnotation",...arguments)},t.objectTypeInternalSlot=function(e,t,r,n,s){return(0,i.default)("ObjectTypeInternalSlot",...arguments)},t.objectTypeCallProperty=function(e){return(0,i.default)("ObjectTypeCallProperty",...arguments)},t.objectTypeIndexer=function(e,t,r,n){return(0,i.default)("ObjectTypeIndexer",...arguments)},t.objectTypeProperty=function(e,t,r){return(0,i.default)("ObjectTypeProperty",...arguments)},t.objectTypeSpreadProperty=function(e){return(0,i.default)("ObjectTypeSpreadProperty",...arguments)},t.opaqueType=function(e,t,r,n){return(0,i.default)("OpaqueType",...arguments)},t.qualifiedTypeIdentifier=function(e,t){return(0,i.default)("QualifiedTypeIdentifier",...arguments)},t.stringLiteralTypeAnnotation=function(e){return(0,i.default)("StringLiteralTypeAnnotation",...arguments)},t.stringTypeAnnotation=function(){return(0,i.default)("StringTypeAnnotation",...arguments)},t.symbolTypeAnnotation=function(){return(0,i.default)("SymbolTypeAnnotation",...arguments)},t.thisTypeAnnotation=function(){return(0,i.default)("ThisTypeAnnotation",...arguments)},t.tupleTypeAnnotation=function(e){return(0,i.default)("TupleTypeAnnotation",...arguments)},t.typeofTypeAnnotation=function(e){return(0,i.default)("TypeofTypeAnnotation",...arguments)},t.typeAlias=function(e,t,r){return(0,i.default)("TypeAlias",...arguments)},t.typeAnnotation=function(e){return(0,i.default)("TypeAnnotation",...arguments)},t.typeCastExpression=function(e,t){return(0,i.default)("TypeCastExpression",...arguments)},t.typeParameter=function(e,t,r){return(0,i.default)("TypeParameter",...arguments)},t.typeParameterDeclaration=function(e){return(0,i.default)("TypeParameterDeclaration",...arguments)},t.typeParameterInstantiation=function(e){return(0,i.default)("TypeParameterInstantiation",...arguments)},t.unionTypeAnnotation=function(e){return(0,i.default)("UnionTypeAnnotation",...arguments)},t.variance=function(e){return(0,i.default)("Variance",...arguments)},t.voidTypeAnnotation=function(){return(0,i.default)("VoidTypeAnnotation",...arguments)},t.enumDeclaration=function(e,t){return(0,i.default)("EnumDeclaration",...arguments)},t.enumBooleanBody=function(e){return(0,i.default)("EnumBooleanBody",...arguments)},t.enumNumberBody=function(e){return(0,i.default)("EnumNumberBody",...arguments)},t.enumStringBody=function(e){return(0,i.default)("EnumStringBody",...arguments)},t.enumSymbolBody=function(e){return(0,i.default)("EnumSymbolBody",...arguments)},t.enumBooleanMember=function(e){return(0,i.default)("EnumBooleanMember",...arguments)},t.enumNumberMember=function(e,t){return(0,i.default)("EnumNumberMember",...arguments)},t.enumStringMember=function(e,t){return(0,i.default)("EnumStringMember",...arguments)},t.enumDefaultedMember=function(e){return(0,i.default)("EnumDefaultedMember",...arguments)},t.indexedAccessType=function(e,t){return(0,i.default)("IndexedAccessType",...arguments)},t.optionalIndexedAccessType=function(e,t){return(0,i.default)("OptionalIndexedAccessType",...arguments)},t.jSXAttribute=t.jsxAttribute=function(e,t){return(0,i.default)("JSXAttribute",...arguments)},t.jSXClosingElement=t.jsxClosingElement=function(e){return(0,i.default)("JSXClosingElement",...arguments)},t.jSXElement=t.jsxElement=function(e,t,r,n){return(0,i.default)("JSXElement",...arguments)},t.jSXEmptyExpression=t.jsxEmptyExpression=function(){return(0,i.default)("JSXEmptyExpression",...arguments)},t.jSXExpressionContainer=t.jsxExpressionContainer=function(e){return(0,i.default)("JSXExpressionContainer",...arguments)},t.jSXSpreadChild=t.jsxSpreadChild=function(e){return(0,i.default)("JSXSpreadChild",...arguments)},t.jSXIdentifier=t.jsxIdentifier=function(e){return(0,i.default)("JSXIdentifier",...arguments)},t.jSXMemberExpression=t.jsxMemberExpression=function(e,t){return(0,i.default)("JSXMemberExpression",...arguments)},t.jSXNamespacedName=t.jsxNamespacedName=function(e,t){return(0,i.default)("JSXNamespacedName",...arguments)},t.jSXOpeningElement=t.jsxOpeningElement=function(e,t,r){return(0,i.default)("JSXOpeningElement",...arguments)},t.jSXSpreadAttribute=t.jsxSpreadAttribute=function(e){return(0,i.default)("JSXSpreadAttribute",...arguments)},t.jSXText=t.jsxText=function(e){return(0,i.default)("JSXText",...arguments)},t.jSXFragment=t.jsxFragment=function(e,t,r){return(0,i.default)("JSXFragment",...arguments)},t.jSXOpeningFragment=t.jsxOpeningFragment=function(){return(0,i.default)("JSXOpeningFragment",...arguments)},t.jSXClosingFragment=t.jsxClosingFragment=function(){return(0,i.default)("JSXClosingFragment",...arguments)},t.noop=function(){return(0,i.default)("Noop",...arguments)},t.placeholder=function(e,t){return(0,i.default)("Placeholder",...arguments)},t.v8IntrinsicIdentifier=function(e){return(0,i.default)("V8IntrinsicIdentifier",...arguments)},t.argumentPlaceholder=function(){return(0,i.default)("ArgumentPlaceholder",...arguments)},t.bindExpression=function(e,t){return(0,i.default)("BindExpression",...arguments)},t.classProperty=function(e,t,r,n,s,a){return(0,i.default)("ClassProperty",...arguments)},t.pipelineTopicExpression=function(e){return(0,i.default)("PipelineTopicExpression",...arguments)},t.pipelineBareFunction=function(e){return(0,i.default)("PipelineBareFunction",...arguments)},t.pipelinePrimaryTopicReference=function(){return(0,i.default)("PipelinePrimaryTopicReference",...arguments)},t.classPrivateProperty=function(e,t,r,n){return(0,i.default)("ClassPrivateProperty",...arguments)},t.classPrivateMethod=function(e,t,r,n,s){return(0,i.default)("ClassPrivateMethod",...arguments)},t.importAttribute=function(e,t){return(0,i.default)("ImportAttribute",...arguments)},t.decorator=function(e){return(0,i.default)("Decorator",...arguments)},t.doExpression=function(e,t){return(0,i.default)("DoExpression",...arguments)},t.exportDefaultSpecifier=function(e){return(0,i.default)("ExportDefaultSpecifier",...arguments)},t.privateName=function(e){return(0,i.default)("PrivateName",...arguments)},t.recordExpression=function(e){return(0,i.default)("RecordExpression",...arguments)},t.tupleExpression=function(e){return(0,i.default)("TupleExpression",...arguments)},t.decimalLiteral=function(e){return(0,i.default)("DecimalLiteral",...arguments)},t.staticBlock=function(e){return(0,i.default)("StaticBlock",...arguments)},t.moduleExpression=function(e){return(0,i.default)("ModuleExpression",...arguments)},t.tSParameterProperty=t.tsParameterProperty=function(e){return(0,i.default)("TSParameterProperty",...arguments)},t.tSDeclareFunction=t.tsDeclareFunction=function(e,t,r,n){return(0,i.default)("TSDeclareFunction",...arguments)},t.tSDeclareMethod=t.tsDeclareMethod=function(e,t,r,n,s){return(0,i.default)("TSDeclareMethod",...arguments)},t.tSQualifiedName=t.tsQualifiedName=function(e,t){return(0,i.default)("TSQualifiedName",...arguments)},t.tSCallSignatureDeclaration=t.tsCallSignatureDeclaration=function(e,t,r){return(0,i.default)("TSCallSignatureDeclaration",...arguments)},t.tSConstructSignatureDeclaration=t.tsConstructSignatureDeclaration=function(e,t,r){return(0,i.default)("TSConstructSignatureDeclaration",...arguments)},t.tSPropertySignature=t.tsPropertySignature=function(e,t,r){return(0,i.default)("TSPropertySignature",...arguments)},t.tSMethodSignature=t.tsMethodSignature=function(e,t,r,n){return(0,i.default)("TSMethodSignature",...arguments)},t.tSIndexSignature=t.tsIndexSignature=function(e,t){return(0,i.default)("TSIndexSignature",...arguments)},t.tSAnyKeyword=t.tsAnyKeyword=function(){return(0,i.default)("TSAnyKeyword",...arguments)},t.tSBooleanKeyword=t.tsBooleanKeyword=function(){return(0,i.default)("TSBooleanKeyword",...arguments)},t.tSBigIntKeyword=t.tsBigIntKeyword=function(){return(0,i.default)("TSBigIntKeyword",...arguments)},t.tSIntrinsicKeyword=t.tsIntrinsicKeyword=function(){return(0,i.default)("TSIntrinsicKeyword",...arguments)},t.tSNeverKeyword=t.tsNeverKeyword=function(){return(0,i.default)("TSNeverKeyword",...arguments)},t.tSNullKeyword=t.tsNullKeyword=function(){return(0,i.default)("TSNullKeyword",...arguments)},t.tSNumberKeyword=t.tsNumberKeyword=function(){return(0,i.default)("TSNumberKeyword",...arguments)},t.tSObjectKeyword=t.tsObjectKeyword=function(){return(0,i.default)("TSObjectKeyword",...arguments)},t.tSStringKeyword=t.tsStringKeyword=function(){return(0,i.default)("TSStringKeyword",...arguments)},t.tSSymbolKeyword=t.tsSymbolKeyword=function(){return(0,i.default)("TSSymbolKeyword",...arguments)},t.tSUndefinedKeyword=t.tsUndefinedKeyword=function(){return(0,i.default)("TSUndefinedKeyword",...arguments)},t.tSUnknownKeyword=t.tsUnknownKeyword=function(){return(0,i.default)("TSUnknownKeyword",...arguments)},t.tSVoidKeyword=t.tsVoidKeyword=function(){return(0,i.default)("TSVoidKeyword",...arguments)},t.tSThisType=t.tsThisType=function(){return(0,i.default)("TSThisType",...arguments)},t.tSFunctionType=t.tsFunctionType=function(e,t,r){return(0,i.default)("TSFunctionType",...arguments)},t.tSConstructorType=t.tsConstructorType=function(e,t,r){return(0,i.default)("TSConstructorType",...arguments)},t.tSTypeReference=t.tsTypeReference=function(e,t){return(0,i.default)("TSTypeReference",...arguments)},t.tSTypePredicate=t.tsTypePredicate=function(e,t,r){return(0,i.default)("TSTypePredicate",...arguments)},t.tSTypeQuery=t.tsTypeQuery=function(e){return(0,i.default)("TSTypeQuery",...arguments)},t.tSTypeLiteral=t.tsTypeLiteral=function(e){return(0,i.default)("TSTypeLiteral",...arguments)},t.tSArrayType=t.tsArrayType=function(e){return(0,i.default)("TSArrayType",...arguments)},t.tSTupleType=t.tsTupleType=function(e){return(0,i.default)("TSTupleType",...arguments)},t.tSOptionalType=t.tsOptionalType=function(e){return(0,i.default)("TSOptionalType",...arguments)},t.tSRestType=t.tsRestType=function(e){return(0,i.default)("TSRestType",...arguments)},t.tSNamedTupleMember=t.tsNamedTupleMember=function(e,t,r){return(0,i.default)("TSNamedTupleMember",...arguments)},t.tSUnionType=t.tsUnionType=function(e){return(0,i.default)("TSUnionType",...arguments)},t.tSIntersectionType=t.tsIntersectionType=function(e){return(0,i.default)("TSIntersectionType",...arguments)},t.tSConditionalType=t.tsConditionalType=function(e,t,r,n){return(0,i.default)("TSConditionalType",...arguments)},t.tSInferType=t.tsInferType=function(e){return(0,i.default)("TSInferType",...arguments)},t.tSParenthesizedType=t.tsParenthesizedType=function(e){return(0,i.default)("TSParenthesizedType",...arguments)},t.tSTypeOperator=t.tsTypeOperator=function(e){return(0,i.default)("TSTypeOperator",...arguments)},t.tSIndexedAccessType=t.tsIndexedAccessType=function(e,t){return(0,i.default)("TSIndexedAccessType",...arguments)},t.tSMappedType=t.tsMappedType=function(e,t,r){return(0,i.default)("TSMappedType",...arguments)},t.tSLiteralType=t.tsLiteralType=function(e){return(0,i.default)("TSLiteralType",...arguments)},t.tSExpressionWithTypeArguments=t.tsExpressionWithTypeArguments=function(e,t){return(0,i.default)("TSExpressionWithTypeArguments",...arguments)},t.tSInterfaceDeclaration=t.tsInterfaceDeclaration=function(e,t,r,n){return(0,i.default)("TSInterfaceDeclaration",...arguments)},t.tSInterfaceBody=t.tsInterfaceBody=function(e){return(0,i.default)("TSInterfaceBody",...arguments)},t.tSTypeAliasDeclaration=t.tsTypeAliasDeclaration=function(e,t,r){return(0,i.default)("TSTypeAliasDeclaration",...arguments)},t.tSAsExpression=t.tsAsExpression=function(e,t){return(0,i.default)("TSAsExpression",...arguments)},t.tSTypeAssertion=t.tsTypeAssertion=function(e,t){return(0,i.default)("TSTypeAssertion",...arguments)},t.tSEnumDeclaration=t.tsEnumDeclaration=function(e,t){return(0,i.default)("TSEnumDeclaration",...arguments)},t.tSEnumMember=t.tsEnumMember=function(e,t){return(0,i.default)("TSEnumMember",...arguments)},t.tSModuleDeclaration=t.tsModuleDeclaration=function(e,t){return(0,i.default)("TSModuleDeclaration",...arguments)},t.tSModuleBlock=t.tsModuleBlock=function(e){return(0,i.default)("TSModuleBlock",...arguments)},t.tSImportType=t.tsImportType=function(e,t,r){return(0,i.default)("TSImportType",...arguments)},t.tSImportEqualsDeclaration=t.tsImportEqualsDeclaration=function(e,t){return(0,i.default)("TSImportEqualsDeclaration",...arguments)},t.tSExternalModuleReference=t.tsExternalModuleReference=function(e){return(0,i.default)("TSExternalModuleReference",...arguments)},t.tSNonNullExpression=t.tsNonNullExpression=function(e){return(0,i.default)("TSNonNullExpression",...arguments)},t.tSExportAssignment=t.tsExportAssignment=function(e){return(0,i.default)("TSExportAssignment",...arguments)},t.tSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=function(e){return(0,i.default)("TSNamespaceExportDeclaration",...arguments)},t.tSTypeAnnotation=t.tsTypeAnnotation=function(e){return(0,i.default)("TSTypeAnnotation",...arguments)},t.tSTypeParameterInstantiation=t.tsTypeParameterInstantiation=function(e){return(0,i.default)("TSTypeParameterInstantiation",...arguments)},t.tSTypeParameterDeclaration=t.tsTypeParameterDeclaration=function(e){return(0,i.default)("TSTypeParameterDeclaration",...arguments)},t.tSTypeParameter=t.tsTypeParameter=function(e,t,r){return(0,i.default)("TSTypeParameter",...arguments)},t.numberLiteral=function(...e){return console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),(0,i.default)("NumberLiteral",...e)},t.regexLiteral=function(...e){return console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),(0,i.default)("RegexLiteral",...e)},t.restProperty=function(...e){return console.trace("The node type RestProperty has been renamed to RestElement"),(0,i.default)("RestProperty",...e)},t.spreadProperty=function(...e){return console.trace("The node type SpreadProperty has been renamed to SpreadElement"),(0,i.default)("SpreadProperty",...e)};var i=r(9234)},6306:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ArrayExpression",{enumerable:!0,get:function(){return i.arrayExpression}}),Object.defineProperty(t,"AssignmentExpression",{enumerable:!0,get:function(){return i.assignmentExpression}}),Object.defineProperty(t,"BinaryExpression",{enumerable:!0,get:function(){return i.binaryExpression}}),Object.defineProperty(t,"InterpreterDirective",{enumerable:!0,get:function(){return i.interpreterDirective}}),Object.defineProperty(t,"Directive",{enumerable:!0,get:function(){return i.directive}}),Object.defineProperty(t,"DirectiveLiteral",{enumerable:!0,get:function(){return i.directiveLiteral}}),Object.defineProperty(t,"BlockStatement",{enumerable:!0,get:function(){return i.blockStatement}}),Object.defineProperty(t,"BreakStatement",{enumerable:!0,get:function(){return i.breakStatement}}),Object.defineProperty(t,"CallExpression",{enumerable:!0,get:function(){return i.callExpression}}),Object.defineProperty(t,"CatchClause",{enumerable:!0,get:function(){return i.catchClause}}),Object.defineProperty(t,"ConditionalExpression",{enumerable:!0,get:function(){return i.conditionalExpression}}),Object.defineProperty(t,"ContinueStatement",{enumerable:!0,get:function(){return i.continueStatement}}),Object.defineProperty(t,"DebuggerStatement",{enumerable:!0,get:function(){return i.debuggerStatement}}),Object.defineProperty(t,"DoWhileStatement",{enumerable:!0,get:function(){return i.doWhileStatement}}),Object.defineProperty(t,"EmptyStatement",{enumerable:!0,get:function(){return i.emptyStatement}}),Object.defineProperty(t,"ExpressionStatement",{enumerable:!0,get:function(){return i.expressionStatement}}),Object.defineProperty(t,"File",{enumerable:!0,get:function(){return i.file}}),Object.defineProperty(t,"ForInStatement",{enumerable:!0,get:function(){return i.forInStatement}}),Object.defineProperty(t,"ForStatement",{enumerable:!0,get:function(){return i.forStatement}}),Object.defineProperty(t,"FunctionDeclaration",{enumerable:!0,get:function(){return i.functionDeclaration}}),Object.defineProperty(t,"FunctionExpression",{enumerable:!0,get:function(){return i.functionExpression}}),Object.defineProperty(t,"Identifier",{enumerable:!0,get:function(){return i.identifier}}),Object.defineProperty(t,"IfStatement",{enumerable:!0,get:function(){return i.ifStatement}}),Object.defineProperty(t,"LabeledStatement",{enumerable:!0,get:function(){return i.labeledStatement}}),Object.defineProperty(t,"StringLiteral",{enumerable:!0,get:function(){return i.stringLiteral}}),Object.defineProperty(t,"NumericLiteral",{enumerable:!0,get:function(){return i.numericLiteral}}),Object.defineProperty(t,"NullLiteral",{enumerable:!0,get:function(){return i.nullLiteral}}),Object.defineProperty(t,"BooleanLiteral",{enumerable:!0,get:function(){return i.booleanLiteral}}),Object.defineProperty(t,"RegExpLiteral",{enumerable:!0,get:function(){return i.regExpLiteral}}),Object.defineProperty(t,"LogicalExpression",{enumerable:!0,get:function(){return i.logicalExpression}}),Object.defineProperty(t,"MemberExpression",{enumerable:!0,get:function(){return i.memberExpression}}),Object.defineProperty(t,"NewExpression",{enumerable:!0,get:function(){return i.newExpression}}),Object.defineProperty(t,"Program",{enumerable:!0,get:function(){return i.program}}),Object.defineProperty(t,"ObjectExpression",{enumerable:!0,get:function(){return i.objectExpression}}),Object.defineProperty(t,"ObjectMethod",{enumerable:!0,get:function(){return i.objectMethod}}),Object.defineProperty(t,"ObjectProperty",{enumerable:!0,get:function(){return i.objectProperty}}),Object.defineProperty(t,"RestElement",{enumerable:!0,get:function(){return i.restElement}}),Object.defineProperty(t,"ReturnStatement",{enumerable:!0,get:function(){return i.returnStatement}}),Object.defineProperty(t,"SequenceExpression",{enumerable:!0,get:function(){return i.sequenceExpression}}),Object.defineProperty(t,"ParenthesizedExpression",{enumerable:!0,get:function(){return i.parenthesizedExpression}}),Object.defineProperty(t,"SwitchCase",{enumerable:!0,get:function(){return i.switchCase}}),Object.defineProperty(t,"SwitchStatement",{enumerable:!0,get:function(){return i.switchStatement}}),Object.defineProperty(t,"ThisExpression",{enumerable:!0,get:function(){return i.thisExpression}}),Object.defineProperty(t,"ThrowStatement",{enumerable:!0,get:function(){return i.throwStatement}}),Object.defineProperty(t,"TryStatement",{enumerable:!0,get:function(){return i.tryStatement}}),Object.defineProperty(t,"UnaryExpression",{enumerable:!0,get:function(){return i.unaryExpression}}),Object.defineProperty(t,"UpdateExpression",{enumerable:!0,get:function(){return i.updateExpression}}),Object.defineProperty(t,"VariableDeclaration",{enumerable:!0,get:function(){return i.variableDeclaration}}),Object.defineProperty(t,"VariableDeclarator",{enumerable:!0,get:function(){return i.variableDeclarator}}),Object.defineProperty(t,"WhileStatement",{enumerable:!0,get:function(){return i.whileStatement}}),Object.defineProperty(t,"WithStatement",{enumerable:!0,get:function(){return i.withStatement}}),Object.defineProperty(t,"AssignmentPattern",{enumerable:!0,get:function(){return i.assignmentPattern}}),Object.defineProperty(t,"ArrayPattern",{enumerable:!0,get:function(){return i.arrayPattern}}),Object.defineProperty(t,"ArrowFunctionExpression",{enumerable:!0,get:function(){return i.arrowFunctionExpression}}),Object.defineProperty(t,"ClassBody",{enumerable:!0,get:function(){return i.classBody}}),Object.defineProperty(t,"ClassExpression",{enumerable:!0,get:function(){return i.classExpression}}),Object.defineProperty(t,"ClassDeclaration",{enumerable:!0,get:function(){return i.classDeclaration}}),Object.defineProperty(t,"ExportAllDeclaration",{enumerable:!0,get:function(){return i.exportAllDeclaration}}),Object.defineProperty(t,"ExportDefaultDeclaration",{enumerable:!0,get:function(){return i.exportDefaultDeclaration}}),Object.defineProperty(t,"ExportNamedDeclaration",{enumerable:!0,get:function(){return i.exportNamedDeclaration}}),Object.defineProperty(t,"ExportSpecifier",{enumerable:!0,get:function(){return i.exportSpecifier}}),Object.defineProperty(t,"ForOfStatement",{enumerable:!0,get:function(){return i.forOfStatement}}),Object.defineProperty(t,"ImportDeclaration",{enumerable:!0,get:function(){return i.importDeclaration}}),Object.defineProperty(t,"ImportDefaultSpecifier",{enumerable:!0,get:function(){return i.importDefaultSpecifier}}),Object.defineProperty(t,"ImportNamespaceSpecifier",{enumerable:!0,get:function(){return i.importNamespaceSpecifier}}),Object.defineProperty(t,"ImportSpecifier",{enumerable:!0,get:function(){return i.importSpecifier}}),Object.defineProperty(t,"MetaProperty",{enumerable:!0,get:function(){return i.metaProperty}}),Object.defineProperty(t,"ClassMethod",{enumerable:!0,get:function(){return i.classMethod}}),Object.defineProperty(t,"ObjectPattern",{enumerable:!0,get:function(){return i.objectPattern}}),Object.defineProperty(t,"SpreadElement",{enumerable:!0,get:function(){return i.spreadElement}}),Object.defineProperty(t,"Super",{enumerable:!0,get:function(){return i.super}}),Object.defineProperty(t,"TaggedTemplateExpression",{enumerable:!0,get:function(){return i.taggedTemplateExpression}}),Object.defineProperty(t,"TemplateElement",{enumerable:!0,get:function(){return i.templateElement}}),Object.defineProperty(t,"TemplateLiteral",{enumerable:!0,get:function(){return i.templateLiteral}}),Object.defineProperty(t,"YieldExpression",{enumerable:!0,get:function(){return i.yieldExpression}}),Object.defineProperty(t,"AwaitExpression",{enumerable:!0,get:function(){return i.awaitExpression}}),Object.defineProperty(t,"Import",{enumerable:!0,get:function(){return i.import}}),Object.defineProperty(t,"BigIntLiteral",{enumerable:!0,get:function(){return i.bigIntLiteral}}),Object.defineProperty(t,"ExportNamespaceSpecifier",{enumerable:!0,get:function(){return i.exportNamespaceSpecifier}}),Object.defineProperty(t,"OptionalMemberExpression",{enumerable:!0,get:function(){return i.optionalMemberExpression}}),Object.defineProperty(t,"OptionalCallExpression",{enumerable:!0,get:function(){return i.optionalCallExpression}}),Object.defineProperty(t,"AnyTypeAnnotation",{enumerable:!0,get:function(){return i.anyTypeAnnotation}}),Object.defineProperty(t,"ArrayTypeAnnotation",{enumerable:!0,get:function(){return i.arrayTypeAnnotation}}),Object.defineProperty(t,"BooleanTypeAnnotation",{enumerable:!0,get:function(){return i.booleanTypeAnnotation}}),Object.defineProperty(t,"BooleanLiteralTypeAnnotation",{enumerable:!0,get:function(){return i.booleanLiteralTypeAnnotation}}),Object.defineProperty(t,"NullLiteralTypeAnnotation",{enumerable:!0,get:function(){return i.nullLiteralTypeAnnotation}}),Object.defineProperty(t,"ClassImplements",{enumerable:!0,get:function(){return i.classImplements}}),Object.defineProperty(t,"DeclareClass",{enumerable:!0,get:function(){return i.declareClass}}),Object.defineProperty(t,"DeclareFunction",{enumerable:!0,get:function(){return i.declareFunction}}),Object.defineProperty(t,"DeclareInterface",{enumerable:!0,get:function(){return i.declareInterface}}),Object.defineProperty(t,"DeclareModule",{enumerable:!0,get:function(){return i.declareModule}}),Object.defineProperty(t,"DeclareModuleExports",{enumerable:!0,get:function(){return i.declareModuleExports}}),Object.defineProperty(t,"DeclareTypeAlias",{enumerable:!0,get:function(){return i.declareTypeAlias}}),Object.defineProperty(t,"DeclareOpaqueType",{enumerable:!0,get:function(){return i.declareOpaqueType}}),Object.defineProperty(t,"DeclareVariable",{enumerable:!0,get:function(){return i.declareVariable}}),Object.defineProperty(t,"DeclareExportDeclaration",{enumerable:!0,get:function(){return i.declareExportDeclaration}}),Object.defineProperty(t,"DeclareExportAllDeclaration",{enumerable:!0,get:function(){return i.declareExportAllDeclaration}}),Object.defineProperty(t,"DeclaredPredicate",{enumerable:!0,get:function(){return i.declaredPredicate}}),Object.defineProperty(t,"ExistsTypeAnnotation",{enumerable:!0,get:function(){return i.existsTypeAnnotation}}),Object.defineProperty(t,"FunctionTypeAnnotation",{enumerable:!0,get:function(){return i.functionTypeAnnotation}}),Object.defineProperty(t,"FunctionTypeParam",{enumerable:!0,get:function(){return i.functionTypeParam}}),Object.defineProperty(t,"GenericTypeAnnotation",{enumerable:!0,get:function(){return i.genericTypeAnnotation}}),Object.defineProperty(t,"InferredPredicate",{enumerable:!0,get:function(){return i.inferredPredicate}}),Object.defineProperty(t,"InterfaceExtends",{enumerable:!0,get:function(){return i.interfaceExtends}}),Object.defineProperty(t,"InterfaceDeclaration",{enumerable:!0,get:function(){return i.interfaceDeclaration}}),Object.defineProperty(t,"InterfaceTypeAnnotation",{enumerable:!0,get:function(){return i.interfaceTypeAnnotation}}),Object.defineProperty(t,"IntersectionTypeAnnotation",{enumerable:!0,get:function(){return i.intersectionTypeAnnotation}}),Object.defineProperty(t,"MixedTypeAnnotation",{enumerable:!0,get:function(){return i.mixedTypeAnnotation}}),Object.defineProperty(t,"EmptyTypeAnnotation",{enumerable:!0,get:function(){return i.emptyTypeAnnotation}}),Object.defineProperty(t,"NullableTypeAnnotation",{enumerable:!0,get:function(){return i.nullableTypeAnnotation}}),Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return i.numberLiteralTypeAnnotation}}),Object.defineProperty(t,"NumberTypeAnnotation",{enumerable:!0,get:function(){return i.numberTypeAnnotation}}),Object.defineProperty(t,"ObjectTypeAnnotation",{enumerable:!0,get:function(){return i.objectTypeAnnotation}}),Object.defineProperty(t,"ObjectTypeInternalSlot",{enumerable:!0,get:function(){return i.objectTypeInternalSlot}}),Object.defineProperty(t,"ObjectTypeCallProperty",{enumerable:!0,get:function(){return i.objectTypeCallProperty}}),Object.defineProperty(t,"ObjectTypeIndexer",{enumerable:!0,get:function(){return i.objectTypeIndexer}}),Object.defineProperty(t,"ObjectTypeProperty",{enumerable:!0,get:function(){return i.objectTypeProperty}}),Object.defineProperty(t,"ObjectTypeSpreadProperty",{enumerable:!0,get:function(){return i.objectTypeSpreadProperty}}),Object.defineProperty(t,"OpaqueType",{enumerable:!0,get:function(){return i.opaqueType}}),Object.defineProperty(t,"QualifiedTypeIdentifier",{enumerable:!0,get:function(){return i.qualifiedTypeIdentifier}}),Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return i.stringLiteralTypeAnnotation}}),Object.defineProperty(t,"StringTypeAnnotation",{enumerable:!0,get:function(){return i.stringTypeAnnotation}}),Object.defineProperty(t,"SymbolTypeAnnotation",{enumerable:!0,get:function(){return i.symbolTypeAnnotation}}),Object.defineProperty(t,"ThisTypeAnnotation",{enumerable:!0,get:function(){return i.thisTypeAnnotation}}),Object.defineProperty(t,"TupleTypeAnnotation",{enumerable:!0,get:function(){return i.tupleTypeAnnotation}}),Object.defineProperty(t,"TypeofTypeAnnotation",{enumerable:!0,get:function(){return i.typeofTypeAnnotation}}),Object.defineProperty(t,"TypeAlias",{enumerable:!0,get:function(){return i.typeAlias}}),Object.defineProperty(t,"TypeAnnotation",{enumerable:!0,get:function(){return i.typeAnnotation}}),Object.defineProperty(t,"TypeCastExpression",{enumerable:!0,get:function(){return i.typeCastExpression}}),Object.defineProperty(t,"TypeParameter",{enumerable:!0,get:function(){return i.typeParameter}}),Object.defineProperty(t,"TypeParameterDeclaration",{enumerable:!0,get:function(){return i.typeParameterDeclaration}}),Object.defineProperty(t,"TypeParameterInstantiation",{enumerable:!0,get:function(){return i.typeParameterInstantiation}}),Object.defineProperty(t,"UnionTypeAnnotation",{enumerable:!0,get:function(){return i.unionTypeAnnotation}}),Object.defineProperty(t,"Variance",{enumerable:!0,get:function(){return i.variance}}),Object.defineProperty(t,"VoidTypeAnnotation",{enumerable:!0,get:function(){return i.voidTypeAnnotation}}),Object.defineProperty(t,"EnumDeclaration",{enumerable:!0,get:function(){return i.enumDeclaration}}),Object.defineProperty(t,"EnumBooleanBody",{enumerable:!0,get:function(){return i.enumBooleanBody}}),Object.defineProperty(t,"EnumNumberBody",{enumerable:!0,get:function(){return i.enumNumberBody}}),Object.defineProperty(t,"EnumStringBody",{enumerable:!0,get:function(){return i.enumStringBody}}),Object.defineProperty(t,"EnumSymbolBody",{enumerable:!0,get:function(){return i.enumSymbolBody}}),Object.defineProperty(t,"EnumBooleanMember",{enumerable:!0,get:function(){return i.enumBooleanMember}}),Object.defineProperty(t,"EnumNumberMember",{enumerable:!0,get:function(){return i.enumNumberMember}}),Object.defineProperty(t,"EnumStringMember",{enumerable:!0,get:function(){return i.enumStringMember}}),Object.defineProperty(t,"EnumDefaultedMember",{enumerable:!0,get:function(){return i.enumDefaultedMember}}),Object.defineProperty(t,"IndexedAccessType",{enumerable:!0,get:function(){return i.indexedAccessType}}),Object.defineProperty(t,"OptionalIndexedAccessType",{enumerable:!0,get:function(){return i.optionalIndexedAccessType}}),Object.defineProperty(t,"JSXAttribute",{enumerable:!0,get:function(){return i.jsxAttribute}}),Object.defineProperty(t,"JSXClosingElement",{enumerable:!0,get:function(){return i.jsxClosingElement}}),Object.defineProperty(t,"JSXElement",{enumerable:!0,get:function(){return i.jsxElement}}),Object.defineProperty(t,"JSXEmptyExpression",{enumerable:!0,get:function(){return i.jsxEmptyExpression}}),Object.defineProperty(t,"JSXExpressionContainer",{enumerable:!0,get:function(){return i.jsxExpressionContainer}}),Object.defineProperty(t,"JSXSpreadChild",{enumerable:!0,get:function(){return i.jsxSpreadChild}}),Object.defineProperty(t,"JSXIdentifier",{enumerable:!0,get:function(){return i.jsxIdentifier}}),Object.defineProperty(t,"JSXMemberExpression",{enumerable:!0,get:function(){return i.jsxMemberExpression}}),Object.defineProperty(t,"JSXNamespacedName",{enumerable:!0,get:function(){return i.jsxNamespacedName}}),Object.defineProperty(t,"JSXOpeningElement",{enumerable:!0,get:function(){return i.jsxOpeningElement}}),Object.defineProperty(t,"JSXSpreadAttribute",{enumerable:!0,get:function(){return i.jsxSpreadAttribute}}),Object.defineProperty(t,"JSXText",{enumerable:!0,get:function(){return i.jsxText}}),Object.defineProperty(t,"JSXFragment",{enumerable:!0,get:function(){return i.jsxFragment}}),Object.defineProperty(t,"JSXOpeningFragment",{enumerable:!0,get:function(){return i.jsxOpeningFragment}}),Object.defineProperty(t,"JSXClosingFragment",{enumerable:!0,get:function(){return i.jsxClosingFragment}}),Object.defineProperty(t,"Noop",{enumerable:!0,get:function(){return i.noop}}),Object.defineProperty(t,"Placeholder",{enumerable:!0,get:function(){return i.placeholder}}),Object.defineProperty(t,"V8IntrinsicIdentifier",{enumerable:!0,get:function(){return i.v8IntrinsicIdentifier}}),Object.defineProperty(t,"ArgumentPlaceholder",{enumerable:!0,get:function(){return i.argumentPlaceholder}}),Object.defineProperty(t,"BindExpression",{enumerable:!0,get:function(){return i.bindExpression}}),Object.defineProperty(t,"ClassProperty",{enumerable:!0,get:function(){return i.classProperty}}),Object.defineProperty(t,"PipelineTopicExpression",{enumerable:!0,get:function(){return i.pipelineTopicExpression}}),Object.defineProperty(t,"PipelineBareFunction",{enumerable:!0,get:function(){return i.pipelineBareFunction}}),Object.defineProperty(t,"PipelinePrimaryTopicReference",{enumerable:!0,get:function(){return i.pipelinePrimaryTopicReference}}),Object.defineProperty(t,"ClassPrivateProperty",{enumerable:!0,get:function(){return i.classPrivateProperty}}),Object.defineProperty(t,"ClassPrivateMethod",{enumerable:!0,get:function(){return i.classPrivateMethod}}),Object.defineProperty(t,"ImportAttribute",{enumerable:!0,get:function(){return i.importAttribute}}),Object.defineProperty(t,"Decorator",{enumerable:!0,get:function(){return i.decorator}}),Object.defineProperty(t,"DoExpression",{enumerable:!0,get:function(){return i.doExpression}}),Object.defineProperty(t,"ExportDefaultSpecifier",{enumerable:!0,get:function(){return i.exportDefaultSpecifier}}),Object.defineProperty(t,"PrivateName",{enumerable:!0,get:function(){return i.privateName}}),Object.defineProperty(t,"RecordExpression",{enumerable:!0,get:function(){return i.recordExpression}}),Object.defineProperty(t,"TupleExpression",{enumerable:!0,get:function(){return i.tupleExpression}}),Object.defineProperty(t,"DecimalLiteral",{enumerable:!0,get:function(){return i.decimalLiteral}}),Object.defineProperty(t,"StaticBlock",{enumerable:!0,get:function(){return i.staticBlock}}),Object.defineProperty(t,"ModuleExpression",{enumerable:!0,get:function(){return i.moduleExpression}}),Object.defineProperty(t,"TSParameterProperty",{enumerable:!0,get:function(){return i.tsParameterProperty}}),Object.defineProperty(t,"TSDeclareFunction",{enumerable:!0,get:function(){return i.tsDeclareFunction}}),Object.defineProperty(t,"TSDeclareMethod",{enumerable:!0,get:function(){return i.tsDeclareMethod}}),Object.defineProperty(t,"TSQualifiedName",{enumerable:!0,get:function(){return i.tsQualifiedName}}),Object.defineProperty(t,"TSCallSignatureDeclaration",{enumerable:!0,get:function(){return i.tsCallSignatureDeclaration}}),Object.defineProperty(t,"TSConstructSignatureDeclaration",{enumerable:!0,get:function(){return i.tsConstructSignatureDeclaration}}),Object.defineProperty(t,"TSPropertySignature",{enumerable:!0,get:function(){return i.tsPropertySignature}}),Object.defineProperty(t,"TSMethodSignature",{enumerable:!0,get:function(){return i.tsMethodSignature}}),Object.defineProperty(t,"TSIndexSignature",{enumerable:!0,get:function(){return i.tsIndexSignature}}),Object.defineProperty(t,"TSAnyKeyword",{enumerable:!0,get:function(){return i.tsAnyKeyword}}),Object.defineProperty(t,"TSBooleanKeyword",{enumerable:!0,get:function(){return i.tsBooleanKeyword}}),Object.defineProperty(t,"TSBigIntKeyword",{enumerable:!0,get:function(){return i.tsBigIntKeyword}}),Object.defineProperty(t,"TSIntrinsicKeyword",{enumerable:!0,get:function(){return i.tsIntrinsicKeyword}}),Object.defineProperty(t,"TSNeverKeyword",{enumerable:!0,get:function(){return i.tsNeverKeyword}}),Object.defineProperty(t,"TSNullKeyword",{enumerable:!0,get:function(){return i.tsNullKeyword}}),Object.defineProperty(t,"TSNumberKeyword",{enumerable:!0,get:function(){return i.tsNumberKeyword}}),Object.defineProperty(t,"TSObjectKeyword",{enumerable:!0,get:function(){return i.tsObjectKeyword}}),Object.defineProperty(t,"TSStringKeyword",{enumerable:!0,get:function(){return i.tsStringKeyword}}),Object.defineProperty(t,"TSSymbolKeyword",{enumerable:!0,get:function(){return i.tsSymbolKeyword}}),Object.defineProperty(t,"TSUndefinedKeyword",{enumerable:!0,get:function(){return i.tsUndefinedKeyword}}),Object.defineProperty(t,"TSUnknownKeyword",{enumerable:!0,get:function(){return i.tsUnknownKeyword}}),Object.defineProperty(t,"TSVoidKeyword",{enumerable:!0,get:function(){return i.tsVoidKeyword}}),Object.defineProperty(t,"TSThisType",{enumerable:!0,get:function(){return i.tsThisType}}),Object.defineProperty(t,"TSFunctionType",{enumerable:!0,get:function(){return i.tsFunctionType}}),Object.defineProperty(t,"TSConstructorType",{enumerable:!0,get:function(){return i.tsConstructorType}}),Object.defineProperty(t,"TSTypeReference",{enumerable:!0,get:function(){return i.tsTypeReference}}),Object.defineProperty(t,"TSTypePredicate",{enumerable:!0,get:function(){return i.tsTypePredicate}}),Object.defineProperty(t,"TSTypeQuery",{enumerable:!0,get:function(){return i.tsTypeQuery}}),Object.defineProperty(t,"TSTypeLiteral",{enumerable:!0,get:function(){return i.tsTypeLiteral}}),Object.defineProperty(t,"TSArrayType",{enumerable:!0,get:function(){return i.tsArrayType}}),Object.defineProperty(t,"TSTupleType",{enumerable:!0,get:function(){return i.tsTupleType}}),Object.defineProperty(t,"TSOptionalType",{enumerable:!0,get:function(){return i.tsOptionalType}}),Object.defineProperty(t,"TSRestType",{enumerable:!0,get:function(){return i.tsRestType}}),Object.defineProperty(t,"TSNamedTupleMember",{enumerable:!0,get:function(){return i.tsNamedTupleMember}}),Object.defineProperty(t,"TSUnionType",{enumerable:!0,get:function(){return i.tsUnionType}}),Object.defineProperty(t,"TSIntersectionType",{enumerable:!0,get:function(){return i.tsIntersectionType}}),Object.defineProperty(t,"TSConditionalType",{enumerable:!0,get:function(){return i.tsConditionalType}}),Object.defineProperty(t,"TSInferType",{enumerable:!0,get:function(){return i.tsInferType}}),Object.defineProperty(t,"TSParenthesizedType",{enumerable:!0,get:function(){return i.tsParenthesizedType}}),Object.defineProperty(t,"TSTypeOperator",{enumerable:!0,get:function(){return i.tsTypeOperator}}),Object.defineProperty(t,"TSIndexedAccessType",{enumerable:!0,get:function(){return i.tsIndexedAccessType}}),Object.defineProperty(t,"TSMappedType",{enumerable:!0,get:function(){return i.tsMappedType}}),Object.defineProperty(t,"TSLiteralType",{enumerable:!0,get:function(){return i.tsLiteralType}}),Object.defineProperty(t,"TSExpressionWithTypeArguments",{enumerable:!0,get:function(){return i.tsExpressionWithTypeArguments}}),Object.defineProperty(t,"TSInterfaceDeclaration",{enumerable:!0,get:function(){return i.tsInterfaceDeclaration}}),Object.defineProperty(t,"TSInterfaceBody",{enumerable:!0,get:function(){return i.tsInterfaceBody}}),Object.defineProperty(t,"TSTypeAliasDeclaration",{enumerable:!0,get:function(){return i.tsTypeAliasDeclaration}}),Object.defineProperty(t,"TSAsExpression",{enumerable:!0,get:function(){return i.tsAsExpression}}),Object.defineProperty(t,"TSTypeAssertion",{enumerable:!0,get:function(){return i.tsTypeAssertion}}),Object.defineProperty(t,"TSEnumDeclaration",{enumerable:!0,get:function(){return i.tsEnumDeclaration}}),Object.defineProperty(t,"TSEnumMember",{enumerable:!0,get:function(){return i.tsEnumMember}}),Object.defineProperty(t,"TSModuleDeclaration",{enumerable:!0,get:function(){return i.tsModuleDeclaration}}),Object.defineProperty(t,"TSModuleBlock",{enumerable:!0,get:function(){return i.tsModuleBlock}}),Object.defineProperty(t,"TSImportType",{enumerable:!0,get:function(){return i.tsImportType}}),Object.defineProperty(t,"TSImportEqualsDeclaration",{enumerable:!0,get:function(){return i.tsImportEqualsDeclaration}}),Object.defineProperty(t,"TSExternalModuleReference",{enumerable:!0,get:function(){return i.tsExternalModuleReference}}),Object.defineProperty(t,"TSNonNullExpression",{enumerable:!0,get:function(){return i.tsNonNullExpression}}),Object.defineProperty(t,"TSExportAssignment",{enumerable:!0,get:function(){return i.tsExportAssignment}}),Object.defineProperty(t,"TSNamespaceExportDeclaration",{enumerable:!0,get:function(){return i.tsNamespaceExportDeclaration}}),Object.defineProperty(t,"TSTypeAnnotation",{enumerable:!0,get:function(){return i.tsTypeAnnotation}}),Object.defineProperty(t,"TSTypeParameterInstantiation",{enumerable:!0,get:function(){return i.tsTypeParameterInstantiation}}),Object.defineProperty(t,"TSTypeParameterDeclaration",{enumerable:!0,get:function(){return i.tsTypeParameterDeclaration}}),Object.defineProperty(t,"TSTypeParameter",{enumerable:!0,get:function(){return i.tsTypeParameter}}),Object.defineProperty(t,"NumberLiteral",{enumerable:!0,get:function(){return i.numberLiteral}}),Object.defineProperty(t,"RegexLiteral",{enumerable:!0,get:function(){return i.regexLiteral}}),Object.defineProperty(t,"RestProperty",{enumerable:!0,get:function(){return i.restProperty}}),Object.defineProperty(t,"SpreadProperty",{enumerable:!0,get:function(){return i.spreadProperty}});var i=r(1580)},478:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[];for(let r=0;r<e.children.length;r++){let s=e.children[r];(0,i.isJSXText)(s)?(0,n.default)(s,t):((0,i.isJSXExpressionContainer)(s)&&(s=s.expression),(0,i.isJSXEmptyExpression)(s)||t.push(s))}return t};var i=r(3924),n=r(5908)},6998:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.map((e=>e.typeAnnotation)),r=(0,n.default)(t);return 1===r.length?r[0]:(0,i.tsUnionType)(r)};var i=r(1580),n=r(7921)},7307:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e,!1)};var i=r(5833)},175:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e)};var i=r(5833)},4982:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e,!0,!0)};var i=r(5833)},5833:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=cloneNode;var i=r(1102),n=r(3924);const s=Function.call.bind(Object.prototype.hasOwnProperty);function cloneIfNode(e,t,r){return e&&"string"==typeof e.type?cloneNode(e,t,r):e}function cloneIfNodeOrArray(e,t,r){return Array.isArray(e)?e.map((e=>cloneIfNode(e,t,r))):cloneIfNode(e,t,r)}function cloneNode(e,t=!0,r=!1){if(!e)return e;const{type:a}=e,o={type:e.type};if((0,n.isIdentifier)(e))o.name=e.name,s(e,"optional")&&"boolean"==typeof e.optional&&(o.optional=e.optional),s(e,"typeAnnotation")&&(o.typeAnnotation=t?cloneIfNodeOrArray(e.typeAnnotation,!0,r):e.typeAnnotation);else{if(!s(i.NODE_FIELDS,a))throw new Error(`Unknown node type: "${a}"`);for(const l of Object.keys(i.NODE_FIELDS[a]))s(e,l)&&(o[l]=t?(0,n.isFile)(e)&&"comments"===l?maybeCloneComments(e.comments,t,r):cloneIfNodeOrArray(e[l],!0,r):e[l])}return s(e,"loc")&&(o.loc=r?null:e.loc),s(e,"leadingComments")&&(o.leadingComments=maybeCloneComments(e.leadingComments,t,r)),s(e,"innerComments")&&(o.innerComments=maybeCloneComments(e.innerComments,t,r)),s(e,"trailingComments")&&(o.trailingComments=maybeCloneComments(e.trailingComments,t,r)),s(e,"extra")&&(o.extra=Object.assign({},e.extra)),o}function maybeCloneComments(e,t,r){return e&&t?e.map((({type:e,value:t,loc:i})=>r?{type:e,value:t,loc:null}:{type:e,value:t,loc:i})):e}},8743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e,!1,!0)};var i=r(5833)},6517:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n){return(0,i.default)(e,t,[{type:n?"CommentLine":"CommentBlock",value:r}])};var i=r(8290)},8290:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!r||!e)return e;const i=`${t}Comments`;e[i]?e[i]="leading"===t?r.concat(e[i]):e[i].concat(r):e[i]=r;return e}},8267:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)("innerComments",e,t)};var i=r(3746)},4510:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)("leadingComments",e,t)};var i=r(3746)},5042:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)("trailingComments",e,t)};var i=r(3746)},5644:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,i.default)(e,t),(0,n.default)(e,t),(0,s.default)(e,t),e};var i=r(5042),n=r(4510),s=r(8267)},6528:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return i.COMMENT_KEYS.forEach((t=>{e[t]=null})),e};var i=r(2770)},55:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TSBASETYPE_TYPES=t.TSTYPE_TYPES=t.TSTYPEELEMENT_TYPES=t.PRIVATE_TYPES=t.JSX_TYPES=t.ENUMMEMBER_TYPES=t.ENUMBODY_TYPES=t.FLOWPREDICATE_TYPES=t.FLOWDECLARATION_TYPES=t.FLOWBASEANNOTATION_TYPES=t.FLOWTYPE_TYPES=t.FLOW_TYPES=t.MODULESPECIFIER_TYPES=t.EXPORTDECLARATION_TYPES=t.MODULEDECLARATION_TYPES=t.CLASS_TYPES=t.PATTERN_TYPES=t.UNARYLIKE_TYPES=t.PROPERTY_TYPES=t.OBJECTMEMBER_TYPES=t.METHOD_TYPES=t.USERWHITESPACABLE_TYPES=t.IMMUTABLE_TYPES=t.LITERAL_TYPES=t.TSENTITYNAME_TYPES=t.LVAL_TYPES=t.PATTERNLIKE_TYPES=t.DECLARATION_TYPES=t.PUREISH_TYPES=t.FUNCTIONPARENT_TYPES=t.FUNCTION_TYPES=t.FORXSTATEMENT_TYPES=t.FOR_TYPES=t.EXPRESSIONWRAPPER_TYPES=t.WHILE_TYPES=t.LOOP_TYPES=t.CONDITIONAL_TYPES=t.COMPLETIONSTATEMENT_TYPES=t.TERMINATORLESS_TYPES=t.STATEMENT_TYPES=t.BLOCK_TYPES=t.BLOCKPARENT_TYPES=t.SCOPABLE_TYPES=t.BINARY_TYPES=t.EXPRESSION_TYPES=void 0;var i=r(1102);const n=i.FLIPPED_ALIAS_KEYS.Expression;t.EXPRESSION_TYPES=n;const s=i.FLIPPED_ALIAS_KEYS.Binary;t.BINARY_TYPES=s;const a=i.FLIPPED_ALIAS_KEYS.Scopable;t.SCOPABLE_TYPES=a;const o=i.FLIPPED_ALIAS_KEYS.BlockParent;t.BLOCKPARENT_TYPES=o;const l=i.FLIPPED_ALIAS_KEYS.Block;t.BLOCK_TYPES=l;const c=i.FLIPPED_ALIAS_KEYS.Statement;t.STATEMENT_TYPES=c;const u=i.FLIPPED_ALIAS_KEYS.Terminatorless;t.TERMINATORLESS_TYPES=u;const p=i.FLIPPED_ALIAS_KEYS.CompletionStatement;t.COMPLETIONSTATEMENT_TYPES=p;const d=i.FLIPPED_ALIAS_KEYS.Conditional;t.CONDITIONAL_TYPES=d;const h=i.FLIPPED_ALIAS_KEYS.Loop;t.LOOP_TYPES=h;const f=i.FLIPPED_ALIAS_KEYS.While;t.WHILE_TYPES=f;const m=i.FLIPPED_ALIAS_KEYS.ExpressionWrapper;t.EXPRESSIONWRAPPER_TYPES=m;const y=i.FLIPPED_ALIAS_KEYS.For;t.FOR_TYPES=y;const T=i.FLIPPED_ALIAS_KEYS.ForXStatement;t.FORXSTATEMENT_TYPES=T;const g=i.FLIPPED_ALIAS_KEYS.Function;t.FUNCTION_TYPES=g;const b=i.FLIPPED_ALIAS_KEYS.FunctionParent;t.FUNCTIONPARENT_TYPES=b;const S=i.FLIPPED_ALIAS_KEYS.Pureish;t.PUREISH_TYPES=S;const x=i.FLIPPED_ALIAS_KEYS.Declaration;t.DECLARATION_TYPES=x;const P=i.FLIPPED_ALIAS_KEYS.PatternLike;t.PATTERNLIKE_TYPES=P;const v=i.FLIPPED_ALIAS_KEYS.LVal;t.LVAL_TYPES=v;const A=i.FLIPPED_ALIAS_KEYS.TSEntityName;t.TSENTITYNAME_TYPES=A;const w=i.FLIPPED_ALIAS_KEYS.Literal;t.LITERAL_TYPES=w;const I=i.FLIPPED_ALIAS_KEYS.Immutable;t.IMMUTABLE_TYPES=I;const C=i.FLIPPED_ALIAS_KEYS.UserWhitespacable;t.USERWHITESPACABLE_TYPES=C;const O=i.FLIPPED_ALIAS_KEYS.Method;t.METHOD_TYPES=O;const N=i.FLIPPED_ALIAS_KEYS.ObjectMember;t.OBJECTMEMBER_TYPES=N;const _=i.FLIPPED_ALIAS_KEYS.Property;t.PROPERTY_TYPES=_;const k=i.FLIPPED_ALIAS_KEYS.UnaryLike;t.UNARYLIKE_TYPES=k;const D=i.FLIPPED_ALIAS_KEYS.Pattern;t.PATTERN_TYPES=D;const L=i.FLIPPED_ALIAS_KEYS.Class;t.CLASS_TYPES=L;const M=i.FLIPPED_ALIAS_KEYS.ModuleDeclaration;t.MODULEDECLARATION_TYPES=M;const B=i.FLIPPED_ALIAS_KEYS.ExportDeclaration;t.EXPORTDECLARATION_TYPES=B;const j=i.FLIPPED_ALIAS_KEYS.ModuleSpecifier;t.MODULESPECIFIER_TYPES=j;const R=i.FLIPPED_ALIAS_KEYS.Flow;t.FLOW_TYPES=R;const F=i.FLIPPED_ALIAS_KEYS.FlowType;t.FLOWTYPE_TYPES=F;const U=i.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation;t.FLOWBASEANNOTATION_TYPES=U;const K=i.FLIPPED_ALIAS_KEYS.FlowDeclaration;t.FLOWDECLARATION_TYPES=K;const q=i.FLIPPED_ALIAS_KEYS.FlowPredicate;t.FLOWPREDICATE_TYPES=q;const V=i.FLIPPED_ALIAS_KEYS.EnumBody;t.ENUMBODY_TYPES=V;const W=i.FLIPPED_ALIAS_KEYS.EnumMember;t.ENUMMEMBER_TYPES=W;const Y=i.FLIPPED_ALIAS_KEYS.JSX;t.JSX_TYPES=Y;const X=i.FLIPPED_ALIAS_KEYS.Private;t.PRIVATE_TYPES=X;const J=i.FLIPPED_ALIAS_KEYS.TSTypeElement;t.TSTYPEELEMENT_TYPES=J;const H=i.FLIPPED_ALIAS_KEYS.TSType;t.TSTYPE_TYPES=H;const G=i.FLIPPED_ALIAS_KEYS.TSBaseType;t.TSBASETYPE_TYPES=G},2770:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NOT_LOCAL_BINDING=t.BLOCK_SCOPED_SYMBOL=t.INHERIT_KEYS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.NUMBER_UNARY_OPERATORS=t.BOOLEAN_UNARY_OPERATORS=t.ASSIGNMENT_OPERATORS=t.BINARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.EQUALITY_BINARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.UPDATE_OPERATORS=t.LOGICAL_OPERATORS=t.COMMENT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.STATEMENT_OR_BLOCK_KEYS=void 0;t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"];t.FLATTENABLE_KEYS=["body","expressions"];t.FOR_INIT_KEYS=["left","init"];t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const r=["||","&&","??"];t.LOGICAL_OPERATORS=r;t.UPDATE_OPERATORS=["++","--"];const i=[">","<",">=","<="];t.BOOLEAN_NUMBER_BINARY_OPERATORS=i;const n=["==","===","!=","!=="];t.EQUALITY_BINARY_OPERATORS=n;const s=[...n,"in","instanceof"];t.COMPARISON_BINARY_OPERATORS=s;const a=[...s,...i];t.BOOLEAN_BINARY_OPERATORS=a;const o=["-","/","%","*","**","&","|",">>",">>>","<<","^"];t.NUMBER_BINARY_OPERATORS=o;const l=["+",...o,...a];t.BINARY_OPERATORS=l;const c=["=","+=",...o.map((e=>e+"=")),...r.map((e=>e+"="))];t.ASSIGNMENT_OPERATORS=c;const u=["delete","!"];t.BOOLEAN_UNARY_OPERATORS=u;const p=["+","-","~"];t.NUMBER_UNARY_OPERATORS=p;const d=["typeof"];t.STRING_UNARY_OPERATORS=d;const h=["void","throw",...u,...p,...d];t.UNARY_OPERATORS=h;t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};const f=Symbol.for("var used to be block scoped");t.BLOCK_SCOPED_SYMBOL=f;const m=Symbol.for("should not be considered a local binding");t.NOT_LOCAL_BINDING=m},9176:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t="body"){return e[t]=(0,i.default)(e[t],e)};var i=r(2860)},8467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function gatherSequenceExpressions(e,t,r){const o=[];let l=!0;for(const c of e)if((0,n.isEmptyStatement)(c)||(l=!1),(0,n.isExpression)(c))o.push(c);else if((0,n.isExpressionStatement)(c))o.push(c.expression);else if((0,n.isVariableDeclaration)(c)){if("var"!==c.kind)return;for(const e of c.declarations){const t=(0,i.default)(e);for(const e of Object.keys(t))r.push({kind:c.kind,id:(0,a.default)(t[e])});e.init&&o.push((0,s.assignmentExpression)("=",e.id,e.init))}l=!0}else if((0,n.isIfStatement)(c)){const e=c.consequent?gatherSequenceExpressions([c.consequent],t,r):t.buildUndefinedNode(),i=c.alternate?gatherSequenceExpressions([c.alternate],t,r):t.buildUndefinedNode();if(!e||!i)return;o.push((0,s.conditionalExpression)(c.test,e,i))}else if((0,n.isBlockStatement)(c)){const e=gatherSequenceExpressions(c.body,t,r);if(!e)return;o.push(e)}else{if(!(0,n.isEmptyStatement)(c))return;0===e.indexOf(c)&&(l=!0)}l&&o.push(t.buildUndefinedNode());return 1===o.length?o[0]:(0,s.sequenceExpression)(o)};var i=r(5337),n=r(3924),s=r(1580),a=r(5833)},7919:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"eval"!==(e=(0,i.default)(e))&&"arguments"!==e||(e="_"+e);return e};var i=r(7718)},2860:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.isBlockStatement)(e))return e;let r=[];(0,i.isEmptyStatement)(e)?r=[]:((0,i.isStatement)(e)||(e=(0,i.isFunction)(t)?(0,n.returnStatement)(e):(0,n.expressionStatement)(e)),r=[e]);return(0,n.blockStatement)(r)};var i=r(3924),n=r(1580)},6e3:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=e.key||e.property){!e.computed&&(0,i.isIdentifier)(t)&&(t=(0,n.stringLiteral)(t.name));return t};var i=r(3924),n=r(1580)},1796:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(3924),_default=function(e){(0,i.isExpressionStatement)(e)&&(e=e.expression);if((0,i.isExpression)(e))return e;(0,i.isClass)(e)?e.type="ClassExpression":(0,i.isFunction)(e)&&(e.type="FunctionExpression");if(!(0,i.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e};t.default=_default},7718:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e+="";let t="";for(const r of e)t+=(0,n.isIdentifierChar)(r.codePointAt(0))?r:"-";t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""})),(0,i.default)(t)||(t=`_${t}`);return t||"_"};var i=r(6335),n=r(7075)},3240:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=toKeyAlias;var i=r(3924),n=r(5833),s=r(2271);function toKeyAlias(e,t=e.key){let r;return"method"===e.kind?toKeyAlias.increment()+"":(r=(0,i.isIdentifier)(t)?t.name:(0,i.isStringLiteral)(t)?JSON.stringify(t.value):JSON.stringify((0,s.default)((0,n.default)(t))),e.computed&&(r=`[${r}]`),e.static&&(r=`static:${r}`),r)}toKeyAlias.uid=0,toKeyAlias.increment=function(){return toKeyAlias.uid>=Number.MAX_SAFE_INTEGER?toKeyAlias.uid=0:toKeyAlias.uid++}},4868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e||!e.length)return;const r=[],n=(0,i.default)(e,t,r);if(!n)return;for(const e of r)t.push(e);return n};var i=r(8467)},874:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(3924),n=r(1580),_default=function(e,t){if((0,i.isStatement)(e))return e;let r,s=!1;if((0,i.isClass)(e))s=!0,r="ClassDeclaration";else if((0,i.isFunction)(e))s=!0,r="FunctionDeclaration";else if((0,i.isAssignmentExpression)(e))return(0,n.expressionStatement)(e);s&&!e.id&&(r=!1);if(!r){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=r,e};t.default=_default},1799:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(6335),n=r(1580),s=function valueToNode(e){if(void 0===e)return(0,n.identifier)("undefined");if(!0===e||!1===e)return(0,n.booleanLiteral)(e);if(null===e)return(0,n.nullLiteral)();if("string"==typeof e)return(0,n.stringLiteral)(e);if("number"==typeof e){let t;if(Number.isFinite(e))t=(0,n.numericLiteral)(Math.abs(e));else{let r;r=Number.isNaN(e)?(0,n.numericLiteral)(0):(0,n.numericLiteral)(1),t=(0,n.binaryExpression)("/",r,(0,n.numericLiteral)(0))}return(e<0||Object.is(e,-0))&&(t=(0,n.unaryExpression)("-",t)),t}if(function(e){return"[object RegExp]"===a(e)}(e)){const t=e.source,r=e.toString().match(/\\/([a-z]+|)$/)[1];return(0,n.regExpLiteral)(t,r)}if(Array.isArray(e))return(0,n.arrayExpression)(e.map(valueToNode));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)}(e)){const t=[];for(const r of Object.keys(e)){let s;s=(0,i.default)(r)?(0,n.identifier)(r):(0,n.stringLiteral)(r),t.push((0,n.objectProperty)(s,valueToNode(e[r])))}return(0,n.objectExpression)(t)}throw new Error("don\'t know how to turn this value into a node")};t.default=s;const a=Function.call.bind(Object.prototype.toString)},9357:(e,t,r)=>{"use strict";var i=r(397);Object.defineProperty(t,"__esModule",{value:!0}),t.classMethodOrDeclareMethodCommon=t.classMethodOrPropertyCommon=t.patternLikeCommon=t.functionDeclarationCommon=t.functionTypeAnnotationCommon=t.functionCommon=void 0;var n=r(5001),s=r(6335),a=r(7075),o=r(2770),l=r(5455);(0,l.default)("ArrayExpression",{fields:{elements:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeOrValueType)("null","Expression","SpreadElement"))),default:i.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),(0,l.default)("AssignmentExpression",{fields:{operator:{validate:function(){if(!i.env.BABEL_TYPES_8_BREAKING)return(0,l.assertValueType)("string");const e=(0,l.assertOneOf)(...o.ASSIGNMENT_OPERATORS),t=(0,l.assertOneOf)("=");return function(r,i,s){((0,n.default)("Pattern",r.left)?t:e)(r,i,s)}}()},left:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern"):(0,l.assertNodeType)("LVal")},right:{validate:(0,l.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),(0,l.default)("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,l.assertOneOf)(...o.BINARY_OPERATORS)},left:{validate:function(){const e=(0,l.assertNodeType)("Expression"),t=(0,l.assertNodeType)("Expression","PrivateName"),validator=function(r,i,n){("in"===r.operator?t:e)(r,i,n)};return validator.oneOfNodeTypes=["Expression","PrivateName"],validator}()},right:{validate:(0,l.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),(0,l.default)("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}}}),(0,l.default)("Directive",{visitor:["value"],fields:{value:{validate:(0,l.assertNodeType)("DirectiveLiteral")}}}),(0,l.default)("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}}}),(0,l.default)("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Directive"))),default:[]},body:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block","Statement"]}),(0,l.default)("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,l.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),(0,l.default)("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,l.assertNodeType)("Expression","V8IntrinsicIdentifier")},arguments:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Expression","SpreadElement","JSXNamespacedName","ArgumentPlaceholder")))}},i.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,l.assertOneOf)(!0,!1),optional:!0}},{typeArguments:{validate:(0,l.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),(0,l.default)("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,l.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),(0,l.default)("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},consequent:{validate:(0,l.assertNodeType)("Expression")},alternate:{validate:(0,l.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),(0,l.default)("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,l.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),(0,l.default)("DebuggerStatement",{aliases:["Statement"]}),(0,l.default)("DoWhileStatement",{visitor:["test","body"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),(0,l.default)("EmptyStatement",{aliases:["Statement"]}),(0,l.default)("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,l.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),(0,l.default)("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,l.assertNodeType)("Program")},comments:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.assertEach)((0,l.assertNodeType)("CommentBlock","CommentLine")):Object.assign((()=>{}),{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,l.assertEach)(Object.assign((()=>{}),{type:"any"})),optional:!0}}}),(0,l.default)("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern"):(0,l.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}}),(0,l.default)("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,l.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,l.assertNodeType)("Expression"),optional:!0},update:{validate:(0,l.assertNodeType)("Expression"),optional:!0},body:{validate:(0,l.assertNodeType)("Statement")}}});const c={params:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Identifier","Pattern","RestElement","TSParameterProperty")))},generator:{default:!1},async:{default:!1}};t.functionCommon=c;const u={returnType:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}};t.functionTypeAnnotationCommon=u;const p=Object.assign({},c,{declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0}});t.functionDeclarationCommon=p,(0,l.default)("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","params","body","returnType","typeParameters"],fields:Object.assign({},p,u,{body:{validate:(0,l.assertNodeType)("BlockStatement")}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:function(){if(!i.env.BABEL_TYPES_8_BREAKING)return()=>{};const e=(0,l.assertNodeType)("Identifier");return function(t,r,i){(0,n.default)("ExportDefaultDeclaration",t)||e(i,"id",i.id)}}()}),(0,l.default)("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},c,u,{id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,l.assertNodeType)("BlockStatement")}})});const d={typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator")))}};t.patternLikeCommon=d,(0,l.default)("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},d,{name:{validate:(0,l.chain)((0,l.assertValueType)("string"),Object.assign((function(e,t,r){if(i.env.BABEL_TYPES_8_BREAKING&&!(0,s.default)(r,!1))throw new TypeError(`"${r}" is not a valid identifier name`)}),{type:"string"}))},optional:{validate:(0,l.assertValueType)("boolean"),optional:!0}}),validate(e,t,r){if(!i.env.BABEL_TYPES_8_BREAKING)return;const s=/\\.(\\w+)$/.exec(t);if(!s)return;const[,o]=s,l={computed:!1};if("property"===o){if((0,n.default)("MemberExpression",e,l))return;if((0,n.default)("OptionalMemberExpression",e,l))return}else if("key"===o){if((0,n.default)("Property",e,l))return;if((0,n.default)("Method",e,l))return}else if("exported"===o){if((0,n.default)("ExportSpecifier",e))return}else if("imported"===o){if((0,n.default)("ImportSpecifier",e,{imported:r}))return}else if("meta"===o&&(0,n.default)("MetaProperty",e,{meta:r}))return;if(((0,a.isKeyword)(r.name)||(0,a.isReservedWord)(r.name,!1))&&"this"!==r.name)throw new TypeError(`"${r.name}" is not a valid identifier`)}}),(0,l.default)("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},consequent:{validate:(0,l.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,l.assertNodeType)("Statement")}}}),(0,l.default)("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,l.assertNodeType)("Identifier")},body:{validate:(0,l.assertNodeType)("Statement")}}}),(0,l.default)("StringLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,l.assertValueType)("number")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,l.assertValueType)("string")},flags:{validate:(0,l.chain)((0,l.assertValueType)("string"),Object.assign((function(e,t,r){if(!i.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:""}}}),(0,l.default)("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,l.assertOneOf)(...o.LOGICAL_OPERATORS)},left:{validate:(0,l.assertNodeType)("Expression")},right:{validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("MemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:(0,l.assertNodeType)("Expression")},property:{validate:function(){const e=(0,l.assertNodeType)("Identifier","PrivateName"),t=(0,l.assertNodeType)("Expression"),validator=function(r,i,n){(r.computed?t:e)(r,i,n)};return validator.oneOfNodeTypes=["Expression","Identifier","PrivateName"],validator}()},computed:{default:!1}},i.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,l.assertOneOf)(!0,!1),optional:!0}})}),(0,l.default)("NewExpression",{inherits:"CallExpression"}),(0,l.default)("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceFile:{validate:(0,l.assertValueType)("string")},sourceType:{validate:(0,l.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,l.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Directive"))),default:[]},body:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block"]}),(0,l.default)("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("ObjectMethod","ObjectProperty","SpreadElement")))}}}),(0,l.default)("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],fields:Object.assign({},c,u,{kind:Object.assign({validate:(0,l.assertOneOf)("method","get","set")},i.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),t=(0,l.assertNodeType)("Expression"),validator=function(r,i,n){(r.computed?t:e)(r,i,n)};return validator.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral"],validator}()},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0},body:{validate:(0,l.assertNodeType)("BlockStatement")}}),visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),(0,l.default)("ObjectProperty",{builder:["key","value","computed","shorthand",...i.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),t=(0,l.assertNodeType)("Expression"),validator=function(r,i,n){(r.computed?t:e)(r,i,n)};return validator.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral"],validator}()},value:{validate:(0,l.assertNodeType)("Expression","PatternLike")},shorthand:{validate:(0,l.chain)((0,l.assertValueType)("boolean"),Object.assign((function(e,t,r){if(i.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,t,r){if(i.env.BABEL_TYPES_8_BREAKING&&r&&!(0,n.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,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:function(){const e=(0,l.assertNodeType)("Identifier","Pattern"),t=(0,l.assertNodeType)("Expression");return function(r,s,a){if(!i.env.BABEL_TYPES_8_BREAKING)return;((0,n.default)("ObjectPattern",r)?e:t)(a,"value",a.value)}}()}),(0,l.default)("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},d,{argument:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","Pattern","MemberExpression"):(0,l.assertNodeType)("LVal")}}),validate(e,t){if(!i.env.BABEL_TYPES_8_BREAKING)return;const r=/(\\w+)\\[(\\d+)\\]/.exec(t);if(!r)throw new Error("Internal Babel error: malformed key.");const[,n,s]=r;if(e[n].length>s+1)throw new TypeError(`RestElement must be last element of ${n}`)}}),(0,l.default)("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,l.assertNodeType)("Expression"),optional:!0}}}),(0,l.default)("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Expression")))}},aliases:["Expression"]}),(0,l.default)("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,l.assertNodeType)("Expression"),optional:!0},consequent:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Statement")))}}}),(0,l.default)("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,l.assertNodeType)("Expression")},cases:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("SwitchCase")))}}}),(0,l.default)("ThisExpression",{aliases:["Expression"]}),(0,l.default)("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:(0,l.chain)((0,l.assertNodeType)("BlockStatement"),Object.assign((function(e){if(i.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,l.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,l.assertNodeType)("BlockStatement")}}}),(0,l.default)("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,l.assertNodeType)("Expression")},operator:{validate:(0,l.assertOneOf)(...o.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),(0,l.default)("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","MemberExpression"):(0,l.assertNodeType)("Expression")},operator:{validate:(0,l.assertOneOf)(...o.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),(0,l.default)("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},kind:{validate:(0,l.assertOneOf)("var","let","const")},declarations:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("VariableDeclarator")))}},validate(e,t,r){if(i.env.BABEL_TYPES_8_BREAKING&&(0,n.default)("ForXStatement",e,{left:r})&&1!==r.declarations.length)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${e.type}`)}}),(0,l.default)("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:function(){if(!i.env.BABEL_TYPES_8_BREAKING)return(0,l.assertNodeType)("LVal");const e=(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),t=(0,l.assertNodeType)("Identifier");return function(r,i,n){(r.init?e:t)(r,i,n)}}()},definite:{optional:!0,validate:(0,l.assertValueType)("boolean")},init:{optional:!0,validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}}),(0,l.default)("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}}),(0,l.default)("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},d,{left:{validate:(0,l.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression")},right:{validate:(0,l.assertNodeType)("Expression")},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0}})}),(0,l.default)("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},d,{elements:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeOrValueType)("null","PatternLike")))},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0}})}),(0,l.default)("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType","typeParameters"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},c,u,{expression:{validate:(0,l.assertValueType)("boolean")},body:{validate:(0,l.assertNodeType)("BlockStatement","Expression")}})}),(0,l.default)("ClassBody",{visitor:["body"],fields:{body:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","TSDeclareMethod","TSIndexSignature")))}}}),(0,l.default)("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,l.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,l.assertNodeType)("Expression")},superTypeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,l.assertNodeType)("InterfaceExtends"),optional:!0}}}),(0,l.default)("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,l.assertNodeType)("Identifier")},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,l.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,l.assertNodeType)("Expression")},superTypeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,l.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,l.assertValueType)("boolean"),optional:!0}},validate:function(){const e=(0,l.assertNodeType)("Identifier");return function(t,r,s){i.env.BABEL_TYPES_8_BREAKING&&((0,n.default)("ExportDefaultDeclaration",t)||e(s,"id",s.id))}}()}),(0,l.default)("ExportAllDeclaration",{visitor:["source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{source:{validate:(0,l.assertNodeType)("StringLiteral")},exportKind:(0,l.validateOptional)((0,l.assertOneOf)("type","value")),assertions:{optional:!0,validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("ImportAttribute")))}}}),(0,l.default)("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0,l.assertNodeType)("FunctionDeclaration","TSDeclareFunction","ClassDeclaration","Expression")}}}),(0,l.default)("ExportNamedDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:(0,l.chain)((0,l.assertNodeType)("Declaration"),Object.assign((function(e,t,r){if(i.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(i.env.BABEL_TYPES_8_BREAKING&&r&&e.source)throw new TypeError("Cannot export a declaration from a source")}))},assertions:{optional:!0,validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("ImportAttribute")))},specifiers:{default:[],validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)(function(){const e=(0,l.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,l.assertNodeType)("ExportSpecifier");return i.env.BABEL_TYPES_8_BREAKING?function(r,i,n){(r.source?e:t)(r,i,n)}:e}()))},source:{validate:(0,l.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,l.validateOptional)((0,l.assertOneOf)("type","value"))}}),(0,l.default)("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")},exported:{validate:(0,l.assertNodeType)("Identifier","StringLiteral")}}}),(0,l.default)("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!i.env.BABEL_TYPES_8_BREAKING)return(0,l.assertNodeType)("VariableDeclaration","LVal");const e=(0,l.assertNodeType)("VariableDeclaration"),t=(0,l.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern");return function(r,i,s){(0,n.default)("VariableDeclaration",s)?e(r,i,s):t(r,i,s)}}()},right:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")},await:{default:!1}}}),(0,l.default)("ImportDeclaration",{visitor:["specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration"],fields:{assertions:{optional:!0,validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("ImportAttribute")))},specifiers:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:(0,l.assertNodeType)("StringLiteral")},importKind:{validate:(0,l.assertOneOf)("type","typeof","value"),optional:!0}}}),(0,l.default)("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")}}}),(0,l.default)("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")}}}),(0,l.default)("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")},imported:{validate:(0,l.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,l.assertOneOf)("type","typeof"),optional:!0}}}),(0,l.default)("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:(0,l.chain)((0,l.assertNodeType)("Identifier"),Object.assign((function(e,t,r){if(!i.env.BABEL_TYPES_8_BREAKING)return;let s;switch(r.name){case"function":s="sent";break;case"new":s="target";break;case"import":s="meta"}if(!(0,n.default)("Identifier",e.property,{name:s}))throw new TypeError("Unrecognised MetaProperty")}),{oneOfNodeTypes:["Identifier"]}))},property:{validate:(0,l.assertNodeType)("Identifier")}}});const h={abstract:{validate:(0,l.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,l.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,l.assertValueType)("boolean"),optional:!0},key:{validate:(0,l.chain)(function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),t=(0,l.assertNodeType)("Expression");return function(r,i,n){(r.computed?t:e)(r,i,n)}}(),(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","Expression"))}};t.classMethodOrPropertyCommon=h;const f=Object.assign({},c,h,{kind:{validate:(0,l.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,l.chain)((0,l.assertValueType)("string"),(0,l.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0}});t.classMethodOrDeclareMethodCommon=f,(0,l.default)("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({},f,u,{body:{validate:(0,l.assertNodeType)("BlockStatement")}})}),(0,l.default)("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},d,{properties:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("RestElement","ObjectProperty")))}})}),(0,l.default)("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("Super",{aliases:["Expression"]}),(0,l.default)("TaggedTemplateExpression",{visitor:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,l.assertNodeType)("Expression")},quasi:{validate:(0,l.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),(0,l.default)("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,l.assertShape)({raw:{validate:(0,l.assertValueType)("string")},cooked:{validate:(0,l.assertValueType)("string"),optional:!0}})},tail:{default:!1}}}),(0,l.default)("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("TemplateElement")))},expressions:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.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}`)}))}}}),(0,l.default)("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0,l.chain)((0,l.assertValueType)("boolean"),Object.assign((function(e,t,r){if(i.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,l.assertNodeType)("Expression")}}}),(0,l.default)("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("Import",{aliases:["Expression"]}),(0,l.default)("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,l.assertNodeType)("Identifier")}}}),(0,l.default)("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,l.assertNodeType)("Expression")},property:{validate:function(){const e=(0,l.assertNodeType)("Identifier"),t=(0,l.assertNodeType)("Expression"),validator=function(r,i,n){(r.computed?t:e)(r,i,n)};return validator.oneOfNodeTypes=["Expression","Identifier"],validator}()},computed:{default:!1},optional:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("boolean"),(0,l.assertOptionalChainStart)()):(0,l.assertValueType)("boolean")}}}),(0,l.default)("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:(0,l.assertNodeType)("Expression")},arguments:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Expression","SpreadElement","JSXNamespacedName","ArgumentPlaceholder")))},optional:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("boolean"),(0,l.assertOptionalChainStart)()):(0,l.assertValueType)("boolean")},typeArguments:{validate:(0,l.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}}})},4683:(e,t,r)=>{"use strict";var i=r(397),n=r(5455),s=r(9357);(0,n.default)("ArgumentPlaceholder",{}),(0,n.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:i.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,n.assertNodeType)("Expression")},callee:{validate:(0,n.assertNodeType)("Expression")}}:{object:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})}}}),(0,n.default)("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},s.classMethodOrPropertyCommon,{value:{validate:(0,n.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,n.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,n.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,n.assertValueType)("boolean"),optional:!0},declare:{validate:(0,n.assertValueType)("boolean"),optional:!0}})}),(0,n.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}}}),(0,n.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,n.assertNodeType)("Expression")}}}),(0,n.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]}),(0,n.default)("ClassPrivateProperty",{visitor:["key","value","decorators"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,n.assertNodeType)("PrivateName")},value:{validate:(0,n.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,n.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Decorator"))),optional:!0}}}),(0,n.default)("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},s.classMethodOrDeclareMethodCommon,s.functionTypeAnnotationCommon,{key:{validate:(0,n.assertNodeType)("PrivateName")},body:{validate:(0,n.assertNodeType)("BlockStatement")}})}),(0,n.default)("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,n.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,n.assertNodeType)("StringLiteral")}}}),(0,n.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}}}),(0,n.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,n.assertNodeType)("BlockStatement")},async:{validate:(0,n.assertValueType)("boolean"),default:!1}}}),(0,n.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,n.assertNodeType)("Identifier")}}}),(0,n.default)("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,n.assertNodeType)("Identifier")}}}),(0,n.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("ObjectProperty","SpreadElement")))}}}),(0,n.default)("TupleExpression",{fields:{elements:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,n.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,n.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,n.default)("StaticBlock",{visitor:["body"],fields:{body:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent"]}),(0,n.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,n.assertNodeType)("Program")}},aliases:["Expression"]})},2665:(e,t,r)=>{"use strict";var i=r(5455);const defineInterfaceishType=(e,t="TypeParameterDeclaration")=>{(0,i.default)(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends","mixins","implements","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)(t),extends:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends")),mixins:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends")),implements:(0,i.validateOptional)((0,i.arrayOfType)("ClassImplements")),body:(0,i.validateType)("ObjectTypeAnnotation")}})};(0,i.default)("AnyTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["Flow","FlowType"],fields:{elementType:(0,i.validateType)("FlowType")}}),(0,i.default)("BooleanTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:(0,i.validate)((0,i.assertValueType)("boolean"))}}),(0,i.default)("NullLiteralTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("ClassImplements",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),defineInterfaceishType("DeclareClass"),(0,i.default)("DeclareFunction",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),predicate:(0,i.validateOptionalType)("DeclaredPredicate")}}),defineInterfaceishType("DeclareInterface"),(0,i.default)("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)(["Identifier","StringLiteral"]),body:(0,i.validateType)("BlockStatement"),kind:(0,i.validateOptional)((0,i.assertOneOf)("CommonJS","ES"))}}),(0,i.default)("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,i.validateType)("TypeAnnotation")}}),(0,i.default)("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),right:(0,i.validateType)("FlowType")}}),(0,i.default)("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,i.validateOptionalType)("FlowType")}}),(0,i.default)("DeclareVariable",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier")}}),(0,i.default)("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{declaration:(0,i.validateOptionalType)("Flow"),specifiers:(0,i.validateOptional)((0,i.arrayOfType)(["ExportSpecifier","ExportNamespaceSpecifier"])),source:(0,i.validateOptionalType)("StringLiteral"),default:(0,i.validateOptional)((0,i.assertValueType)("boolean"))}}),(0,i.default)("DeclareExportAllDeclaration",{visitor:["source"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{source:(0,i.validateType)("StringLiteral"),exportKind:(0,i.validateOptional)((0,i.assertOneOf)("type","value"))}}),(0,i.default)("DeclaredPredicate",{visitor:["value"],aliases:["Flow","FlowPredicate"],fields:{value:(0,i.validateType)("Flow")}}),(0,i.default)("ExistsTypeAnnotation",{aliases:["Flow","FlowType"]}),(0,i.default)("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["Flow","FlowType"],fields:{typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),params:(0,i.validate)((0,i.arrayOfType)("FunctionTypeParam")),rest:(0,i.validateOptionalType)("FunctionTypeParam"),this:(0,i.validateOptionalType)("FunctionTypeParam"),returnType:(0,i.validateType)("FlowType")}}),(0,i.default)("FunctionTypeParam",{visitor:["name","typeAnnotation"],aliases:["Flow"],fields:{name:(0,i.validateOptionalType)("Identifier"),typeAnnotation:(0,i.validateType)("FlowType"),optional:(0,i.validateOptional)((0,i.assertValueType)("boolean"))}}),(0,i.default)("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["Flow","FlowType"],fields:{id:(0,i.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),(0,i.default)("InferredPredicate",{aliases:["Flow","FlowPredicate"]}),(0,i.default)("InterfaceExtends",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{id:(0,i.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),defineInterfaceishType("InterfaceDeclaration"),(0,i.default)("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["Flow","FlowType"],fields:{extends:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends")),body:(0,i.validateType)("ObjectTypeAnnotation")}}),(0,i.default)("IntersectionTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),(0,i.default)("MixedTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("EmptyTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["Flow","FlowType"],fields:{typeAnnotation:(0,i.validateType)("FlowType")}}),(0,i.default)("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:(0,i.validate)((0,i.assertValueType)("number"))}}),(0,i.default)("NumberTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["Flow","FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,i.validate)((0,i.arrayOfType)(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:(0,i.validateOptional)((0,i.arrayOfType)("ObjectTypeIndexer")),callProperties:(0,i.validateOptional)((0,i.arrayOfType)("ObjectTypeCallProperty")),internalSlots:(0,i.validateOptional)((0,i.arrayOfType)("ObjectTypeInternalSlot")),exact:{validate:(0,i.assertValueType)("boolean"),default:!1},inexact:(0,i.validateOptional)((0,i.assertValueType)("boolean"))}}),(0,i.default)("ObjectTypeInternalSlot",{visitor:["id","value","optional","static","method"],aliases:["Flow","UserWhitespacable"],fields:{id:(0,i.validateType)("Identifier"),value:(0,i.validateType)("FlowType"),optional:(0,i.validate)((0,i.assertValueType)("boolean")),static:(0,i.validate)((0,i.assertValueType)("boolean")),method:(0,i.validate)((0,i.assertValueType)("boolean"))}}),(0,i.default)("ObjectTypeCallProperty",{visitor:["value"],aliases:["Flow","UserWhitespacable"],fields:{value:(0,i.validateType)("FlowType"),static:(0,i.validate)((0,i.assertValueType)("boolean"))}}),(0,i.default)("ObjectTypeIndexer",{visitor:["id","key","value","variance"],aliases:["Flow","UserWhitespacable"],fields:{id:(0,i.validateOptionalType)("Identifier"),key:(0,i.validateType)("FlowType"),value:(0,i.validateType)("FlowType"),static:(0,i.validate)((0,i.assertValueType)("boolean")),variance:(0,i.validateOptionalType)("Variance")}}),(0,i.default)("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["Flow","UserWhitespacable"],fields:{key:(0,i.validateType)(["Identifier","StringLiteral"]),value:(0,i.validateType)("FlowType"),kind:(0,i.validate)((0,i.assertOneOf)("init","get","set")),static:(0,i.validate)((0,i.assertValueType)("boolean")),proto:(0,i.validate)((0,i.assertValueType)("boolean")),optional:(0,i.validate)((0,i.assertValueType)("boolean")),variance:(0,i.validateOptionalType)("Variance"),method:(0,i.validate)((0,i.assertValueType)("boolean"))}}),(0,i.default)("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["Flow","UserWhitespacable"],fields:{argument:(0,i.validateType)("FlowType")}}),(0,i.default)("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,i.validateOptionalType)("FlowType"),impltype:(0,i.validateType)("FlowType")}}),(0,i.default)("QualifiedTypeIdentifier",{visitor:["id","qualification"],aliases:["Flow"],fields:{id:(0,i.validateType)("Identifier"),qualification:(0,i.validateType)(["Identifier","QualifiedTypeIdentifier"])}}),(0,i.default)("StringLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:(0,i.validate)((0,i.assertValueType)("string"))}}),(0,i.default)("StringTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("SymbolTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("ThisTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("TupleTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),(0,i.default)("TypeofTypeAnnotation",{visitor:["argument"],aliases:["Flow","FlowType"],fields:{argument:(0,i.validateType)("FlowType")}}),(0,i.default)("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),right:(0,i.validateType)("FlowType")}}),(0,i.default)("TypeAnnotation",{aliases:["Flow"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,i.validateType)("FlowType")}}),(0,i.default)("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["Flow","ExpressionWrapper","Expression"],fields:{expression:(0,i.validateType)("Expression"),typeAnnotation:(0,i.validateType)("TypeAnnotation")}}),(0,i.default)("TypeParameter",{aliases:["Flow"],visitor:["bound","default","variance"],fields:{name:(0,i.validate)((0,i.assertValueType)("string")),bound:(0,i.validateOptionalType)("TypeAnnotation"),default:(0,i.validateOptionalType)("FlowType"),variance:(0,i.validateOptionalType)("Variance")}}),(0,i.default)("TypeParameterDeclaration",{aliases:["Flow"],visitor:["params"],fields:{params:(0,i.validate)((0,i.arrayOfType)("TypeParameter"))}}),(0,i.default)("TypeParameterInstantiation",{aliases:["Flow"],visitor:["params"],fields:{params:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),(0,i.default)("UnionTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),(0,i.default)("Variance",{aliases:["Flow"],builder:["kind"],fields:{kind:(0,i.validate)((0,i.assertOneOf)("minus","plus"))}}),(0,i.default)("VoidTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,i.validateType)("Identifier"),body:(0,i.validateType)(["EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody"])}}),(0,i.default)("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),(0,i.default)("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),(0,i.default)("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)(["EnumStringMember","EnumDefaultedMember"]),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),(0,i.default)("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,i.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),(0,i.default)("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("BooleanLiteral")}}),(0,i.default)("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("NumericLiteral")}}),(0,i.default)("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("StringLiteral")}}),(0,i.default)("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,i.validateType)("Identifier")}}),(0,i.default)("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["Flow","FlowType"],fields:{objectType:(0,i.validateType)("FlowType"),indexType:(0,i.validateType)("FlowType")}}),(0,i.default)("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["Flow","FlowType"],fields:{objectType:(0,i.validateType)("FlowType"),indexType:(0,i.validateType)("FlowType"),optional:(0,i.validate)((0,i.assertValueType)("boolean"))}})},1102:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return n.VISITOR_KEYS}}),Object.defineProperty(t,"ALIAS_KEYS",{enumerable:!0,get:function(){return n.ALIAS_KEYS}}),Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return n.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(t,"NODE_FIELDS",{enumerable:!0,get:function(){return n.NODE_FIELDS}}),Object.defineProperty(t,"BUILDER_KEYS",{enumerable:!0,get:function(){return n.BUILDER_KEYS}}),Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return n.DEPRECATED_KEYS}}),Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return n.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(t,"PLACEHOLDERS",{enumerable:!0,get:function(){return s.PLACEHOLDERS}}),Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return s.PLACEHOLDERS_ALIAS}}),Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return s.PLACEHOLDERS_FLIPPED_ALIAS}}),t.TYPES=void 0;var i=r(1138);r(9357),r(2665),r(6540),r(511),r(4683),r(2130);var n=r(5455),s=r(6820);i(n.VISITOR_KEYS),i(n.ALIAS_KEYS),i(n.FLIPPED_ALIAS_KEYS),i(n.NODE_FIELDS),i(n.BUILDER_KEYS),i(n.DEPRECATED_KEYS),i(s.PLACEHOLDERS_ALIAS),i(s.PLACEHOLDERS_FLIPPED_ALIAS);const a=Object.keys(n.VISITOR_KEYS).concat(Object.keys(n.FLIPPED_ALIAS_KEYS)).concat(Object.keys(n.DEPRECATED_KEYS));t.TYPES=a},6540:(e,t,r)=>{"use strict";var i=r(5455);(0,i.default)("JSXAttribute",{visitor:["name","value"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,i.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,i.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),(0,i.default)("JSXClosingElement",{visitor:["name"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,i.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),(0,i.default)("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["JSX","Immutable","Expression"],fields:{openingElement:{validate:(0,i.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,i.assertNodeType)("JSXClosingElement")},children:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))},selfClosing:{validate:(0,i.assertValueType)("boolean"),optional:!0}}}),(0,i.default)("JSXEmptyExpression",{aliases:["JSX"]}),(0,i.default)("JSXExpressionContainer",{visitor:["expression"],aliases:["JSX","Immutable"],fields:{expression:{validate:(0,i.assertNodeType)("Expression","JSXEmptyExpression")}}}),(0,i.default)("JSXSpreadChild",{visitor:["expression"],aliases:["JSX","Immutable"],fields:{expression:{validate:(0,i.assertNodeType)("Expression")}}}),(0,i.default)("JSXIdentifier",{builder:["name"],aliases:["JSX"],fields:{name:{validate:(0,i.assertValueType)("string")}}}),(0,i.default)("JSXMemberExpression",{visitor:["object","property"],aliases:["JSX"],fields:{object:{validate:(0,i.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,i.assertNodeType)("JSXIdentifier")}}}),(0,i.default)("JSXNamespacedName",{visitor:["namespace","name"],aliases:["JSX"],fields:{namespace:{validate:(0,i.assertNodeType)("JSXIdentifier")},name:{validate:(0,i.assertNodeType)("JSXIdentifier")}}}),(0,i.default)("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,i.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("JSXAttribute","JSXSpreadAttribute")))},typeParameters:{validate:(0,i.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),(0,i.default)("JSXSpreadAttribute",{visitor:["argument"],aliases:["JSX"],fields:{argument:{validate:(0,i.assertNodeType)("Expression")}}}),(0,i.default)("JSXText",{aliases:["JSX","Immutable"],builder:["value"],fields:{value:{validate:(0,i.assertValueType)("string")}}}),(0,i.default)("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["JSX","Immutable","Expression"],fields:{openingFragment:{validate:(0,i.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,i.assertNodeType)("JSXClosingFragment")},children:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}}),(0,i.default)("JSXOpeningFragment",{aliases:["JSX","Immutable"]}),(0,i.default)("JSXClosingFragment",{aliases:["JSX","Immutable"]})},511:(e,t,r)=>{"use strict";var i=r(5455),n=r(6820);(0,i.default)("Noop",{visitor:[]}),(0,i.default)("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:(0,i.assertNodeType)("Identifier")},expectedNode:{validate:(0,i.assertOneOf)(...n.PLACEHOLDERS)}}}),(0,i.default)("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,i.assertValueType)("string")}}})},6820:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PLACEHOLDERS_FLIPPED_ALIAS=t.PLACEHOLDERS_ALIAS=t.PLACEHOLDERS=void 0;var i=r(5455);const n=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"];t.PLACEHOLDERS=n;const s={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};t.PLACEHOLDERS_ALIAS=s;for(const e of n){const t=i.ALIAS_KEYS[e];null!=t&&t.length&&(s[e]=t)}const a={};t.PLACEHOLDERS_FLIPPED_ALIAS=a,Object.keys(s).forEach((e=>{s[e].forEach((t=>{Object.hasOwnProperty.call(a,t)||(a[t]=[]),a[t].push(e)}))}))},2130:(e,t,r)=>{"use strict";var i=r(5455),n=r(9357);const s=(0,i.assertValueType)("boolean"),a={returnType:{validate:(0,i.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,i.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}};(0,i.default)("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,i.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,i.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,i.assertNodeType)("Identifier","AssignmentPattern")}}}),(0,i.default)("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},n.functionDeclarationCommon,a)}),(0,i.default)("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},n.classMethodOrDeclareMethodCommon,a)}),(0,i.default)("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,i.validateType)("TSEntityName"),right:(0,i.validateType)("Identifier")}});const o={typeParameters:(0,i.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,i.validateArrayOfType)(["Identifier","RestElement"]),typeAnnotation:(0,i.validateOptionalType)("TSTypeAnnotation")},l={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:o};(0,i.default)("TSCallSignatureDeclaration",l),(0,i.default)("TSConstructSignatureDeclaration",l);const c={key:(0,i.validateType)("Expression"),computed:(0,i.validate)(s),optional:(0,i.validateOptional)(s)};(0,i.default)("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation","initializer"],fields:Object.assign({},c,{readonly:(0,i.validateOptional)(s),typeAnnotation:(0,i.validateOptionalType)("TSTypeAnnotation"),initializer:(0,i.validateOptionalType)("Expression")})}),(0,i.default)("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},o,c,{kind:{validate:(0,i.assertOneOf)("method","get","set")}})}),(0,i.default)("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,i.validateOptional)(s),static:(0,i.validateOptional)(s),parameters:(0,i.validateArrayOfType)("Identifier"),typeAnnotation:(0,i.validateOptionalType)("TSTypeAnnotation")}});const u=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const e of u)(0,i.default)(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});(0,i.default)("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const p={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};(0,i.default)("TSFunctionType",Object.assign({},p,{fields:o})),(0,i.default)("TSConstructorType",Object.assign({},p,{fields:Object.assign({},o,{abstract:(0,i.validateOptional)(s)})})),(0,i.default)("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,i.validateType)("TSEntityName"),typeParameters:(0,i.validateOptionalType)("TSTypeParameterInstantiation")}}),(0,i.default)("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,i.validateType)(["Identifier","TSThisType"]),typeAnnotation:(0,i.validateOptionalType)("TSTypeAnnotation"),asserts:(0,i.validateOptional)(s)}}),(0,i.default)("TSTypeQuery",{aliases:["TSType"],visitor:["exprName"],fields:{exprName:(0,i.validateType)(["TSEntityName","TSImportType"])}}),(0,i.default)("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,i.validateArrayOfType)("TSTypeElement")}}),(0,i.default)("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,i.validateType)("TSType")}}),(0,i.default)("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,i.validateArrayOfType)(["TSType","TSNamedTupleMember"])}}),(0,i.default)("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,i.validateType)("Identifier"),optional:{validate:s,default:!1},elementType:(0,i.validateType)("TSType")}});const d={aliases:["TSType"],visitor:["types"],fields:{types:(0,i.validateArrayOfType)("TSType")}};(0,i.default)("TSUnionType",d),(0,i.default)("TSIntersectionType",d),(0,i.default)("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,i.validateType)("TSType"),extendsType:(0,i.validateType)("TSType"),trueType:(0,i.validateType)("TSType"),falseType:(0,i.validateType)("TSType")}}),(0,i.default)("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,i.validateType)("TSTypeParameter")}}),(0,i.default)("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0,i.validate)((0,i.assertValueType)("string")),typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,i.validateType)("TSType"),indexType:(0,i.validateType)("TSType")}}),(0,i.default)("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","typeAnnotation","nameType"],fields:{readonly:(0,i.validateOptional)(s),typeParameter:(0,i.validateType)("TSTypeParameter"),optional:(0,i.validateOptional)(s),typeAnnotation:(0,i.validateOptionalType)("TSType"),nameType:(0,i.validateOptionalType)("TSType")}}),(0,i.default)("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:(0,i.validateType)(["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral"])}}),(0,i.default)("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,i.validateType)("TSEntityName"),typeParameters:(0,i.validateOptionalType)("TSTypeParameterInstantiation")}}),(0,i.default)("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,i.validateOptional)(s),id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,i.validateOptional)((0,i.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,i.validateType)("TSInterfaceBody")}}),(0,i.default)("TSInterfaceBody",{visitor:["body"],fields:{body:(0,i.validateArrayOfType)("TSTypeElement")}}),(0,i.default)("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,i.validateOptional)(s),id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSAsExpression",{aliases:["Expression"],visitor:["expression","typeAnnotation"],fields:{expression:(0,i.validateType)("Expression"),typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSTypeAssertion",{aliases:["Expression"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,i.validateType)("TSType"),expression:(0,i.validateType)("Expression")}}),(0,i.default)("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,i.validateOptional)(s),const:(0,i.validateOptional)(s),id:(0,i.validateType)("Identifier"),members:(0,i.validateArrayOfType)("TSEnumMember"),initializer:(0,i.validateOptionalType)("Expression")}}),(0,i.default)("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,i.validateType)(["Identifier","StringLiteral"]),initializer:(0,i.validateOptionalType)("Expression")}}),(0,i.default)("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:(0,i.validateOptional)(s),global:(0,i.validateOptional)(s),id:(0,i.validateType)(["Identifier","StringLiteral"]),body:(0,i.validateType)(["TSModuleBlock","TSModuleDeclaration"])}}),(0,i.default)("TSModuleBlock",{aliases:["Scopable","Block","BlockParent"],visitor:["body"],fields:{body:(0,i.validateArrayOfType)("Statement")}}),(0,i.default)("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:(0,i.validateType)("StringLiteral"),qualifier:(0,i.validateOptionalType)("TSEntityName"),typeParameters:(0,i.validateOptionalType)("TSTypeParameterInstantiation")}}),(0,i.default)("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:(0,i.validate)(s),id:(0,i.validateType)("Identifier"),moduleReference:(0,i.validateType)(["TSEntityName","TSExternalModuleReference"])}}),(0,i.default)("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,i.validateType)("StringLiteral")}}),(0,i.default)("TSNonNullExpression",{aliases:["Expression"],visitor:["expression"],fields:{expression:(0,i.validateType)("Expression")}}),(0,i.default)("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,i.validateType)("Expression")}}),(0,i.default)("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,i.validateType)("Identifier")}}),(0,i.default)("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,i.assertNodeType)("TSType")}}}),(0,i.default)("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("TSType")))}}}),(0,i.default)("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("TSTypeParameter")))}}}),(0,i.default)("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,i.assertValueType)("string")},constraint:{validate:(0,i.assertNodeType)("TSType"),optional:!0},default:{validate:(0,i.assertNodeType)("TSType"),optional:!0}}})},5455:(e,t,r)=>{"use strict";var i=r(397);Object.defineProperty(t,"__esModule",{value:!0}),t.validate=validate,t.typeIs=typeIs,t.validateType=function(e){return validate(typeIs(e))},t.validateOptional=function(e){return{validate:e,optional:!0}},t.validateOptionalType=function(e){return{validate:typeIs(e),optional:!0}},t.arrayOf=arrayOf,t.arrayOfType=arrayOfType,t.validateArrayOfType=function(e){return validate(arrayOfType(e))},t.assertEach=assertEach,t.assertOneOf=function(...e){function validate(t,r,i){if(e.indexOf(i)<0)throw new TypeError(`Property ${r} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(i)}`)}return validate.oneOf=e,validate},t.assertNodeType=assertNodeType,t.assertNodeOrValueType=function(...e){function validate(t,r,i){for(const a of e)if(getType(i)===a||(0,n.default)(a,i))return void(0,s.validateChild)(t,r,i);throw new TypeError(`Property ${r} of ${t.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(null==i?void 0:i.type)}`)}return validate.oneOfNodeOrValueTypes=e,validate},t.assertValueType=assertValueType,t.assertShape=function(e){function validate(t,r,i){const n=[];for(const r of Object.keys(e))try{(0,s.validateField)(t,r,i[r],e[r])}catch(e){if(e instanceof TypeError){n.push(e.message);continue}throw e}if(n.length)throw new TypeError(`Property ${r} of ${t.type} expected to have the following:\\n${n.join("\\n")}`)}return validate.shapeOf=e,validate},t.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}`)}},t.chain=chain,t.default=function(e,t={}){const r=t.inherits&&m[t.inherits]||{};let i=t.fields;if(!i&&(i={},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");i[t]={default:Array.isArray(n)?[]:n,optional:e.optional,validate:e.validate}}}const n=t.visitor||r.visitor||[],s=t.aliases||r.aliases||[],y=t.builder||r.builder||t.visitor||[];for(const r of Object.keys(t))if(-1===h.indexOf(r))throw new Error(`Unknown type option "${r}" on ${e}`);t.deprecatedAlias&&(p[t.deprecatedAlias]=e);for(const e of n.concat(y))i[e]=i[e]||{};for(const t of Object.keys(i)){const r=i[t];void 0!==r.default&&-1===y.indexOf(t)&&(r.optional=!0),void 0===r.default?r.default=null:r.validate||null==r.default||(r.validate=assertValueType(getType(r.default)));for(const i of Object.keys(r))if(-1===f.indexOf(i))throw new Error(`Unknown field key "${i}" on ${e}.${t}`)}a[e]=t.visitor=n,u[e]=t.builder=y,c[e]=t.fields=i,o[e]=t.aliases=s,s.forEach((t=>{l[t]=l[t]||[],l[t].push(e)})),t.validate&&(d[e]=t.validate);m[e]=t},t.NODE_PARENT_VALIDATIONS=t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.NODE_FIELDS=t.FLIPPED_ALIAS_KEYS=t.ALIAS_KEYS=t.VISITOR_KEYS=void 0;var n=r(5001),s=r(1843);const a={};t.VISITOR_KEYS=a;const o={};t.ALIAS_KEYS=o;const l={};t.FLIPPED_ALIAS_KEYS=l;const c={};t.NODE_FIELDS=c;const u={};t.BUILDER_KEYS=u;const p={};t.DEPRECATED_KEYS=p;const d={};function getType(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function validate(e){return{validate:e}}function typeIs(e){return"string"==typeof e?assertNodeType(e):assertNodeType(...e)}function arrayOf(e){return chain(assertValueType("array"),assertEach(e))}function arrayOfType(e){return arrayOf(typeIs(e))}function assertEach(e){function validator(t,r,n){if(Array.isArray(n))for(let a=0;a<n.length;a++){const o=`${r}[${a}]`,l=n[a];e(t,o,l),i.env.BABEL_TYPES_8_BREAKING&&(0,s.validateChild)(t,o,l)}}return validator.each=e,validator}function assertNodeType(...e){function validate(t,r,i){for(const a of e)if((0,n.default)(a,i))return void(0,s.validateChild)(t,r,i);throw new TypeError(`Property ${r} of ${t.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(null==i?void 0:i.type)}`)}return validate.oneOfNodeTypes=e,validate}function assertValueType(e){function validate(t,r,i){if(!(getType(i)===e))throw new TypeError(`Property ${r} expected type of ${e} but got ${getType(i)}`)}return validate.type=e,validate}function chain(...e){function validate(...t){for(const r of e)r(...t)}if(validate.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 validate}t.NODE_PARENT_VALIDATIONS=d;const h=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],f=["default","optional","validate"];const m={}},17:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={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};Object.defineProperty(t,"assertNode",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"createFlowUnionType",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"createTSUnionType",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"cloneNode",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"cloneWithoutLoc",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"addComment",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"addComments",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"inheritInnerComments",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"inheritLeadingComments",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"inheritsComments",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"inheritTrailingComments",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"removeComments",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"ensureBlock",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"toSequenceExpression",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"appendToMemberExpression",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"prependToMemberExpression",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(t,"removeProperties",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"removePropertiesDeep",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"traverseFast",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(t,"isPlaceholderType",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(t,"isValidES3Identifier",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(t,"matchesPattern",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:!0,get:function(){return fe.default}}),t.react=void 0;var n=r(1934),s=r(5582),a=r(478),o=r(9278),l=r(2937);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=r(7395),u=r(4660),p=r(6998),d=r(1580);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r(6306);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var f=r(5833),m=r(7307),y=r(175),T=r(4982),g=r(8743),b=r(6517),S=r(8290),x=r(8267),P=r(4510),v=r(5644),A=r(5042),w=r(6528),I=r(55);Object.keys(I).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===I[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return I[e]}}))}));var C=r(2770);Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===C[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return C[e]}}))}));var O=r(9176),N=r(7919),_=r(2860),k=r(6e3),D=r(1796),L=r(7718),M=r(3240),B=r(4868),j=r(874),R=r(1799),F=r(1102);Object.keys(F).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===F[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return F[e]}}))}));var U=r(9350),K=r(4758),q=r(1195),V=r(2252),W=r(2271),Y=r(6337),X=r(5337),J=r(210),H=r(9220);Object.keys(H).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===H[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return H[e]}}))}));var G=r(2829),$=r(4729),z=r(5001),Q=r(48),Z=r(7199),ee=r(3261),te=r(100),re=r(1860),ie=r(7190),ne=r(549),se=r(2954),ae=r(5969),oe=r(1422),le=r(4263),ce=r(2128),ue=r(6335),pe=r(7117),de=r(4185),he=r(1843),fe=r(3427),me=r(3924);Object.keys(me).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===me[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return me[e]}}))}));var ye=r(2006);Object.keys(ye).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===ye[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ye[e]}}))}));const Te={isReactComponent:n.default,isCompatTag:s.default,buildChildren:a.default};t.react=Te},9350:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r=!1){return e.object=(0,i.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e};var i=r(1580)},6337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function removeTypeDuplicates(e){const t={},r={},n=[],s=[];for(let a=0;a<e.length;a++){const o=e[a];if(o&&!(s.indexOf(o)>=0)){if((0,i.isAnyTypeAnnotation)(o))return[o];if((0,i.isFlowBaseAnnotation)(o))r[o.type]=o;else if((0,i.isUnionTypeAnnotation)(o))n.indexOf(o.types)<0&&(e=e.concat(o.types),n.push(o.types));else if((0,i.isGenericTypeAnnotation)(o)){const e=getQualifiedName(o.id);if(t[e]){let r=t[e];r.typeParameters?o.typeParameters&&(r.typeParameters.params=removeTypeDuplicates(r.typeParameters.params.concat(o.typeParameters.params))):r=o.typeParameters}else t[e]=o}else s.push(o)}}for(const e of Object.keys(r))s.push(r[e]);for(const e of Object.keys(t))s.push(t[e]);return s};var i=r(3924);function getQualifiedName(e){return(0,i.isIdentifier)(e)?e.name:`${e.id.name}.${getQualifiedName(e.qualification)}`}},4758:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e||!t)return e;for(const r of i.INHERIT_KEYS.optional)null==e[r]&&(e[r]=t[r]);for(const r of Object.keys(t))"_"===r[0]&&"__clone"!==r&&(e[r]=t[r]);for(const r of i.INHERIT_KEYS.force)e[r]=t[r];return(0,n.default)(e,t),e};var i=r(2770),n=r(5644)},1195:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return e.object=(0,i.memberExpression)(t,e.object),e};var i=r(1580)},2252:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){const r=t.preserveComments?n:s;for(const t of r)null!=e[t]&&(e[t]=void 0);for(const t of Object.keys(e))"_"===t[0]&&null!=e[t]&&(e[t]=void 0);const i=Object.getOwnPropertySymbols(e);for(const t of i)e[t]=null};var i=r(2770);const n=["tokens","start","end","loc","raw","rawValue"],s=i.COMMENT_KEYS.concat(["comments"]).concat(n)},2271:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,i.default)(e,n.default,t),e};var i=r(2829),n=r(2252)},7921:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t={},r={},n=[],s=[];for(let t=0;t<e.length;t++){const a=e[t];if(a&&!(s.indexOf(a)>=0)){if((0,i.isTSAnyKeyword)(a))return[a];(0,i.isTSBaseType)(a)?r[a.type]=a:(0,i.isTSUnionType)(a)?n.indexOf(a.types)<0&&(e=e.concat(a.types),n.push(a.types)):s.push(a)}}for(const e of Object.keys(r))s.push(r[e]);for(const e of Object.keys(t))s.push(t[e]);return s};var i=r(3924)},5337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=getBindingIdentifiers;var i=r(3924);function getBindingIdentifiers(e,t,r){let n=[].concat(e);const s=Object.create(null);for(;n.length;){const e=n.shift();if(!e)continue;const a=getBindingIdentifiers.keys[e.type];if((0,i.isIdentifier)(e))if(t){(s[e.name]=s[e.name]||[]).push(e)}else s[e.name]=e;else if(!(0,i.isExportDeclaration)(e)||(0,i.isExportAllDeclaration)(e)){if(r){if((0,i.isFunctionDeclaration)(e)){n.push(e.id);continue}if((0,i.isFunctionExpression)(e))continue}if(a)for(let t=0;t<a.length;t++){const r=a[t];e[r]&&(n=n.concat(e[r]))}}else(0,i.isDeclaration)(e.declaration)&&n.push(e.declaration)}return s}getBindingIdentifiers.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"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]}},210:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(5337),_default=function(e,t){return(0,i.default)(e,t,!0)};t.default=_default},9220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){"function"==typeof t&&(t={enter:t});const{enter:i,exit:n}=t;traverseSimpleImpl(e,i,n,r,[])};var i=r(1102);function traverseSimpleImpl(e,t,r,n,s){const a=i.VISITOR_KEYS[e.type];if(a){t&&t(e,s,n);for(const i of a){const a=e[i];if(Array.isArray(a))for(let o=0;o<a.length;o++){const l=a[o];l&&(s.push({node:e,key:i,index:o}),traverseSimpleImpl(l,t,r,n,s),s.pop())}else a&&(s.push({node:e,key:i}),traverseSimpleImpl(a,t,r,n,s),s.pop())}r&&r(e,s,n)}}},2829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function traverseFast(e,t,r){if(!e)return;const n=i.VISITOR_KEYS[e.type];if(!n)return;t(e,r=r||{});for(const i of n){const n=e[i];if(Array.isArray(n))for(const e of n)traverseFast(e,t,r);else traverseFast(n,t,r)}};var i=r(1102)},3746:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))))}},5908:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=e.value.split(/\\r\\n|\\n|\\r/);let n=0;for(let e=0;e<r.length;e++)r[e].match(/[^ \\t]/)&&(n=e);let s="";for(let e=0;e<r.length;e++){const t=r[e],i=0===e,a=e===r.length-1,o=e===n;let l=t.replace(/\\t/g," ");i||(l=l.replace(/^[ ]+/,"")),a||(l=l.replace(/[ ]+$/,"")),l&&(o||(l+=" "),s+=l)}s&&t.push((0,i.stringLiteral)(s))};var i=r(1580)},4729:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=Object.keys(t);for(const i of r)if(e[i]!==t[i])return!1;return!0}},3427:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=e.split(".");return e=>(0,i.default)(e,r,t)};var i=r(4185)},3924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayExpression=function(e,t){if(!e)return!1;if("ArrayExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isAssignmentExpression=function(e,t){if(!e)return!1;if("AssignmentExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isBinaryExpression=function(e,t){if(!e)return!1;if("BinaryExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isInterpreterDirective=function(e,t){if(!e)return!1;if("InterpreterDirective"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDirective=function(e,t){if(!e)return!1;if("Directive"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDirectiveLiteral=function(e,t){if(!e)return!1;if("DirectiveLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isBlockStatement=function(e,t){if(!e)return!1;if("BlockStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isBreakStatement=function(e,t){if(!e)return!1;if("BreakStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isCallExpression=function(e,t){if(!e)return!1;if("CallExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isCatchClause=function(e,t){if(!e)return!1;if("CatchClause"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isConditionalExpression=function(e,t){if(!e)return!1;if("ConditionalExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isContinueStatement=function(e,t){if(!e)return!1;if("ContinueStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDebuggerStatement=function(e,t){if(!e)return!1;if("DebuggerStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDoWhileStatement=function(e,t){if(!e)return!1;if("DoWhileStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isEmptyStatement=function(e,t){if(!e)return!1;if("EmptyStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isExpressionStatement=function(e,t){if(!e)return!1;if("ExpressionStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isFile=function(e,t){if(!e)return!1;if("File"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isForInStatement=function(e,t){if(!e)return!1;if("ForInStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isForStatement=function(e,t){if(!e)return!1;if("ForStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isFunctionDeclaration=function(e,t){if(!e)return!1;if("FunctionDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isFunctionExpression=function(e,t){if(!e)return!1;if("FunctionExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isIdentifier=function(e,t){if(!e)return!1;if("Identifier"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isIfStatement=function(e,t){if(!e)return!1;if("IfStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isLabeledStatement=function(e,t){if(!e)return!1;if("LabeledStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isStringLiteral=function(e,t){if(!e)return!1;if("StringLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isNumericLiteral=function(e,t){if(!e)return!1;if("NumericLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isNullLiteral=function(e,t){if(!e)return!1;if("NullLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isBooleanLiteral=function(e,t){if(!e)return!1;if("BooleanLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isRegExpLiteral=function(e,t){if(!e)return!1;if("RegExpLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isLogicalExpression=function(e,t){if(!e)return!1;if("LogicalExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isMemberExpression=function(e,t){if(!e)return!1;if("MemberExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isNewExpression=function(e,t){if(!e)return!1;if("NewExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isProgram=function(e,t){if(!e)return!1;if("Program"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isObjectExpression=function(e,t){if(!e)return!1;if("ObjectExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isObjectMethod=function(e,t){if(!e)return!1;if("ObjectMethod"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isObjectProperty=function(e,t){if(!e)return!1;if("ObjectProperty"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isRestElement=function(e,t){if(!e)return!1;if("RestElement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isReturnStatement=function(e,t){if(!e)return!1;if("ReturnStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isSequenceExpression=function(e,t){if(!e)return!1;if("SequenceExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isParenthesizedExpression=function(e,t){if(!e)return!1;if("ParenthesizedExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isSwitchCase=function(e,t){if(!e)return!1;if("SwitchCase"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isSwitchStatement=function(e,t){if(!e)return!1;if("SwitchStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isThisExpression=function(e,t){if(!e)return!1;if("ThisExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isThrowStatement=function(e,t){if(!e)return!1;if("ThrowStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTryStatement=function(e,t){if(!e)return!1;if("TryStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isUnaryExpression=function(e,t){if(!e)return!1;if("UnaryExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isUpdateExpression=function(e,t){if(!e)return!1;if("UpdateExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isVariableDeclaration=function(e,t){if(!e)return!1;if("VariableDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isVariableDeclarator=function(e,t){if(!e)return!1;if("VariableDeclarator"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isWhileStatement=function(e,t){if(!e)return!1;if("WhileStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isWithStatement=function(e,t){if(!e)return!1;if("WithStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isAssignmentPattern=function(e,t){if(!e)return!1;if("AssignmentPattern"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isArrayPattern=function(e,t){if(!e)return!1;if("ArrayPattern"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isArrowFunctionExpression=function(e,t){if(!e)return!1;if("ArrowFunctionExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isClassBody=function(e,t){if(!e)return!1;if("ClassBody"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isClassExpression=function(e,t){if(!e)return!1;if("ClassExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isClassDeclaration=function(e,t){if(!e)return!1;if("ClassDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isExportAllDeclaration=function(e,t){if(!e)return!1;if("ExportAllDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isExportDefaultDeclaration=function(e,t){if(!e)return!1;if("ExportDefaultDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isExportNamedDeclaration=function(e,t){if(!e)return!1;if("ExportNamedDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isExportSpecifier=function(e,t){if(!e)return!1;if("ExportSpecifier"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isForOfStatement=function(e,t){if(!e)return!1;if("ForOfStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isImportDeclaration=function(e,t){if(!e)return!1;if("ImportDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isImportDefaultSpecifier=function(e,t){if(!e)return!1;if("ImportDefaultSpecifier"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isImportNamespaceSpecifier=function(e,t){if(!e)return!1;if("ImportNamespaceSpecifier"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isImportSpecifier=function(e,t){if(!e)return!1;if("ImportSpecifier"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isMetaProperty=function(e,t){if(!e)return!1;if("MetaProperty"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isClassMethod=function(e,t){if(!e)return!1;if("ClassMethod"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isObjectPattern=function(e,t){if(!e)return!1;if("ObjectPattern"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isSpreadElement=function(e,t){if(!e)return!1;if("SpreadElement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isSuper=function(e,t){if(!e)return!1;if("Super"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTaggedTemplateExpression=function(e,t){if(!e)return!1;if("TaggedTemplateExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTemplateElement=function(e,t){if(!e)return!1;if("TemplateElement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTemplateLiteral=function(e,t){if(!e)return!1;if("TemplateLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isYieldExpression=function(e,t){if(!e)return!1;if("YieldExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isAwaitExpression=function(e,t){if(!e)return!1;if("AwaitExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isImport=function(e,t){if(!e)return!1;if("Import"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isBigIntLiteral=function(e,t){if(!e)return!1;if("BigIntLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isExportNamespaceSpecifier=function(e,t){if(!e)return!1;if("ExportNamespaceSpecifier"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isOptionalMemberExpression=function(e,t){if(!e)return!1;if("OptionalMemberExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isOptionalCallExpression=function(e,t){if(!e)return!1;if("OptionalCallExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isAnyTypeAnnotation=function(e,t){if(!e)return!1;if("AnyTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isArrayTypeAnnotation=function(e,t){if(!e)return!1;if("ArrayTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isBooleanTypeAnnotation=function(e,t){if(!e)return!1;if("BooleanTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isBooleanLiteralTypeAnnotation=function(e,t){if(!e)return!1;if("BooleanLiteralTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isNullLiteralTypeAnnotation=function(e,t){if(!e)return!1;if("NullLiteralTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isClassImplements=function(e,t){if(!e)return!1;if("ClassImplements"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclareClass=function(e,t){if(!e)return!1;if("DeclareClass"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclareFunction=function(e,t){if(!e)return!1;if("DeclareFunction"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclareInterface=function(e,t){if(!e)return!1;if("DeclareInterface"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclareModule=function(e,t){if(!e)return!1;if("DeclareModule"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclareModuleExports=function(e,t){if(!e)return!1;if("DeclareModuleExports"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclareTypeAlias=function(e,t){if(!e)return!1;if("DeclareTypeAlias"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclareOpaqueType=function(e,t){if(!e)return!1;if("DeclareOpaqueType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclareVariable=function(e,t){if(!e)return!1;if("DeclareVariable"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclareExportDeclaration=function(e,t){if(!e)return!1;if("DeclareExportDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclareExportAllDeclaration=function(e,t){if(!e)return!1;if("DeclareExportAllDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclaredPredicate=function(e,t){if(!e)return!1;if("DeclaredPredicate"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isExistsTypeAnnotation=function(e,t){if(!e)return!1;if("ExistsTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isFunctionTypeAnnotation=function(e,t){if(!e)return!1;if("FunctionTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isFunctionTypeParam=function(e,t){if(!e)return!1;if("FunctionTypeParam"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isGenericTypeAnnotation=function(e,t){if(!e)return!1;if("GenericTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isInferredPredicate=function(e,t){if(!e)return!1;if("InferredPredicate"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isInterfaceExtends=function(e,t){if(!e)return!1;if("InterfaceExtends"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isInterfaceDeclaration=function(e,t){if(!e)return!1;if("InterfaceDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isInterfaceTypeAnnotation=function(e,t){if(!e)return!1;if("InterfaceTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isIntersectionTypeAnnotation=function(e,t){if(!e)return!1;if("IntersectionTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isMixedTypeAnnotation=function(e,t){if(!e)return!1;if("MixedTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isEmptyTypeAnnotation=function(e,t){if(!e)return!1;if("EmptyTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isNullableTypeAnnotation=function(e,t){if(!e)return!1;if("NullableTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isNumberLiteralTypeAnnotation=function(e,t){if(!e)return!1;if("NumberLiteralTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isNumberTypeAnnotation=function(e,t){if(!e)return!1;if("NumberTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isObjectTypeAnnotation=function(e,t){if(!e)return!1;if("ObjectTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isObjectTypeInternalSlot=function(e,t){if(!e)return!1;if("ObjectTypeInternalSlot"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isObjectTypeCallProperty=function(e,t){if(!e)return!1;if("ObjectTypeCallProperty"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isObjectTypeIndexer=function(e,t){if(!e)return!1;if("ObjectTypeIndexer"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isObjectTypeProperty=function(e,t){if(!e)return!1;if("ObjectTypeProperty"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isObjectTypeSpreadProperty=function(e,t){if(!e)return!1;if("ObjectTypeSpreadProperty"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isOpaqueType=function(e,t){if(!e)return!1;if("OpaqueType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isQualifiedTypeIdentifier=function(e,t){if(!e)return!1;if("QualifiedTypeIdentifier"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isStringLiteralTypeAnnotation=function(e,t){if(!e)return!1;if("StringLiteralTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isStringTypeAnnotation=function(e,t){if(!e)return!1;if("StringTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isSymbolTypeAnnotation=function(e,t){if(!e)return!1;if("SymbolTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isThisTypeAnnotation=function(e,t){if(!e)return!1;if("ThisTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTupleTypeAnnotation=function(e,t){if(!e)return!1;if("TupleTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTypeofTypeAnnotation=function(e,t){if(!e)return!1;if("TypeofTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTypeAlias=function(e,t){if(!e)return!1;if("TypeAlias"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTypeAnnotation=function(e,t){if(!e)return!1;if("TypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTypeCastExpression=function(e,t){if(!e)return!1;if("TypeCastExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTypeParameter=function(e,t){if(!e)return!1;if("TypeParameter"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTypeParameterDeclaration=function(e,t){if(!e)return!1;if("TypeParameterDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTypeParameterInstantiation=function(e,t){if(!e)return!1;if("TypeParameterInstantiation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isUnionTypeAnnotation=function(e,t){if(!e)return!1;if("UnionTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isVariance=function(e,t){if(!e)return!1;if("Variance"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isVoidTypeAnnotation=function(e,t){if(!e)return!1;if("VoidTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isEnumDeclaration=function(e,t){if(!e)return!1;if("EnumDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isEnumBooleanBody=function(e,t){if(!e)return!1;if("EnumBooleanBody"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isEnumNumberBody=function(e,t){if(!e)return!1;if("EnumNumberBody"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isEnumStringBody=function(e,t){if(!e)return!1;if("EnumStringBody"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isEnumSymbolBody=function(e,t){if(!e)return!1;if("EnumSymbolBody"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isEnumBooleanMember=function(e,t){if(!e)return!1;if("EnumBooleanMember"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isEnumNumberMember=function(e,t){if(!e)return!1;if("EnumNumberMember"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isEnumStringMember=function(e,t){if(!e)return!1;if("EnumStringMember"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isEnumDefaultedMember=function(e,t){if(!e)return!1;if("EnumDefaultedMember"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isIndexedAccessType=function(e,t){if(!e)return!1;if("IndexedAccessType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isOptionalIndexedAccessType=function(e,t){if(!e)return!1;if("OptionalIndexedAccessType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXAttribute=function(e,t){if(!e)return!1;if("JSXAttribute"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXClosingElement=function(e,t){if(!e)return!1;if("JSXClosingElement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXElement=function(e,t){if(!e)return!1;if("JSXElement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXEmptyExpression=function(e,t){if(!e)return!1;if("JSXEmptyExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXExpressionContainer=function(e,t){if(!e)return!1;if("JSXExpressionContainer"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXSpreadChild=function(e,t){if(!e)return!1;if("JSXSpreadChild"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXIdentifier=function(e,t){if(!e)return!1;if("JSXIdentifier"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXMemberExpression=function(e,t){if(!e)return!1;if("JSXMemberExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXNamespacedName=function(e,t){if(!e)return!1;if("JSXNamespacedName"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXOpeningElement=function(e,t){if(!e)return!1;if("JSXOpeningElement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXSpreadAttribute=function(e,t){if(!e)return!1;if("JSXSpreadAttribute"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXText=function(e,t){if(!e)return!1;if("JSXText"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXFragment=function(e,t){if(!e)return!1;if("JSXFragment"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXOpeningFragment=function(e,t){if(!e)return!1;if("JSXOpeningFragment"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXClosingFragment=function(e,t){if(!e)return!1;if("JSXClosingFragment"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isNoop=function(e,t){if(!e)return!1;if("Noop"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isPlaceholder=function(e,t){if(!e)return!1;if("Placeholder"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isV8IntrinsicIdentifier=function(e,t){if(!e)return!1;if("V8IntrinsicIdentifier"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isArgumentPlaceholder=function(e,t){if(!e)return!1;if("ArgumentPlaceholder"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isBindExpression=function(e,t){if(!e)return!1;if("BindExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isClassProperty=function(e,t){if(!e)return!1;if("ClassProperty"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isPipelineTopicExpression=function(e,t){if(!e)return!1;if("PipelineTopicExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isPipelineBareFunction=function(e,t){if(!e)return!1;if("PipelineBareFunction"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isPipelinePrimaryTopicReference=function(e,t){if(!e)return!1;if("PipelinePrimaryTopicReference"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isClassPrivateProperty=function(e,t){if(!e)return!1;if("ClassPrivateProperty"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isClassPrivateMethod=function(e,t){if(!e)return!1;if("ClassPrivateMethod"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isImportAttribute=function(e,t){if(!e)return!1;if("ImportAttribute"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDecorator=function(e,t){if(!e)return!1;if("Decorator"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDoExpression=function(e,t){if(!e)return!1;if("DoExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isExportDefaultSpecifier=function(e,t){if(!e)return!1;if("ExportDefaultSpecifier"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isPrivateName=function(e,t){if(!e)return!1;if("PrivateName"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isRecordExpression=function(e,t){if(!e)return!1;if("RecordExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTupleExpression=function(e,t){if(!e)return!1;if("TupleExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDecimalLiteral=function(e,t){if(!e)return!1;if("DecimalLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isStaticBlock=function(e,t){if(!e)return!1;if("StaticBlock"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isModuleExpression=function(e,t){if(!e)return!1;if("ModuleExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSParameterProperty=function(e,t){if(!e)return!1;if("TSParameterProperty"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSDeclareFunction=function(e,t){if(!e)return!1;if("TSDeclareFunction"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSDeclareMethod=function(e,t){if(!e)return!1;if("TSDeclareMethod"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSQualifiedName=function(e,t){if(!e)return!1;if("TSQualifiedName"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSCallSignatureDeclaration=function(e,t){if(!e)return!1;if("TSCallSignatureDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSConstructSignatureDeclaration=function(e,t){if(!e)return!1;if("TSConstructSignatureDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSPropertySignature=function(e,t){if(!e)return!1;if("TSPropertySignature"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSMethodSignature=function(e,t){if(!e)return!1;if("TSMethodSignature"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSIndexSignature=function(e,t){if(!e)return!1;if("TSIndexSignature"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSAnyKeyword=function(e,t){if(!e)return!1;if("TSAnyKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSBooleanKeyword=function(e,t){if(!e)return!1;if("TSBooleanKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSBigIntKeyword=function(e,t){if(!e)return!1;if("TSBigIntKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSIntrinsicKeyword=function(e,t){if(!e)return!1;if("TSIntrinsicKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSNeverKeyword=function(e,t){if(!e)return!1;if("TSNeverKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSNullKeyword=function(e,t){if(!e)return!1;if("TSNullKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSNumberKeyword=function(e,t){if(!e)return!1;if("TSNumberKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSObjectKeyword=function(e,t){if(!e)return!1;if("TSObjectKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSStringKeyword=function(e,t){if(!e)return!1;if("TSStringKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSSymbolKeyword=function(e,t){if(!e)return!1;if("TSSymbolKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSUndefinedKeyword=function(e,t){if(!e)return!1;if("TSUndefinedKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSUnknownKeyword=function(e,t){if(!e)return!1;if("TSUnknownKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSVoidKeyword=function(e,t){if(!e)return!1;if("TSVoidKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSThisType=function(e,t){if(!e)return!1;if("TSThisType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSFunctionType=function(e,t){if(!e)return!1;if("TSFunctionType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSConstructorType=function(e,t){if(!e)return!1;if("TSConstructorType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypeReference=function(e,t){if(!e)return!1;if("TSTypeReference"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypePredicate=function(e,t){if(!e)return!1;if("TSTypePredicate"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypeQuery=function(e,t){if(!e)return!1;if("TSTypeQuery"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypeLiteral=function(e,t){if(!e)return!1;if("TSTypeLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSArrayType=function(e,t){if(!e)return!1;if("TSArrayType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTupleType=function(e,t){if(!e)return!1;if("TSTupleType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSOptionalType=function(e,t){if(!e)return!1;if("TSOptionalType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSRestType=function(e,t){if(!e)return!1;if("TSRestType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSNamedTupleMember=function(e,t){if(!e)return!1;if("TSNamedTupleMember"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSUnionType=function(e,t){if(!e)return!1;if("TSUnionType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSIntersectionType=function(e,t){if(!e)return!1;if("TSIntersectionType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSConditionalType=function(e,t){if(!e)return!1;if("TSConditionalType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSInferType=function(e,t){if(!e)return!1;if("TSInferType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSParenthesizedType=function(e,t){if(!e)return!1;if("TSParenthesizedType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypeOperator=function(e,t){if(!e)return!1;if("TSTypeOperator"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSIndexedAccessType=function(e,t){if(!e)return!1;if("TSIndexedAccessType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSMappedType=function(e,t){if(!e)return!1;if("TSMappedType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSLiteralType=function(e,t){if(!e)return!1;if("TSLiteralType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSExpressionWithTypeArguments=function(e,t){if(!e)return!1;if("TSExpressionWithTypeArguments"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSInterfaceDeclaration=function(e,t){if(!e)return!1;if("TSInterfaceDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSInterfaceBody=function(e,t){if(!e)return!1;if("TSInterfaceBody"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypeAliasDeclaration=function(e,t){if(!e)return!1;if("TSTypeAliasDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSAsExpression=function(e,t){if(!e)return!1;if("TSAsExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypeAssertion=function(e,t){if(!e)return!1;if("TSTypeAssertion"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSEnumDeclaration=function(e,t){if(!e)return!1;if("TSEnumDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSEnumMember=function(e,t){if(!e)return!1;if("TSEnumMember"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSModuleDeclaration=function(e,t){if(!e)return!1;if("TSModuleDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSModuleBlock=function(e,t){if(!e)return!1;if("TSModuleBlock"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSImportType=function(e,t){if(!e)return!1;if("TSImportType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSImportEqualsDeclaration=function(e,t){if(!e)return!1;if("TSImportEqualsDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSExternalModuleReference=function(e,t){if(!e)return!1;if("TSExternalModuleReference"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSNonNullExpression=function(e,t){if(!e)return!1;if("TSNonNullExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSExportAssignment=function(e,t){if(!e)return!1;if("TSExportAssignment"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSNamespaceExportDeclaration=function(e,t){if(!e)return!1;if("TSNamespaceExportDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypeAnnotation=function(e,t){if(!e)return!1;if("TSTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypeParameterInstantiation=function(e,t){if(!e)return!1;if("TSTypeParameterInstantiation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypeParameterDeclaration=function(e,t){if(!e)return!1;if("TSTypeParameterDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypeParameter=function(e,t){if(!e)return!1;if("TSTypeParameter"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isExpression=function(e,t){if(!e)return!1;const r=e.type;if("ArrayExpression"===r||"AssignmentExpression"===r||"BinaryExpression"===r||"CallExpression"===r||"ConditionalExpression"===r||"FunctionExpression"===r||"Identifier"===r||"StringLiteral"===r||"NumericLiteral"===r||"NullLiteral"===r||"BooleanLiteral"===r||"RegExpLiteral"===r||"LogicalExpression"===r||"MemberExpression"===r||"NewExpression"===r||"ObjectExpression"===r||"SequenceExpression"===r||"ParenthesizedExpression"===r||"ThisExpression"===r||"UnaryExpression"===r||"UpdateExpression"===r||"ArrowFunctionExpression"===r||"ClassExpression"===r||"MetaProperty"===r||"Super"===r||"TaggedTemplateExpression"===r||"TemplateLiteral"===r||"YieldExpression"===r||"AwaitExpression"===r||"Import"===r||"BigIntLiteral"===r||"OptionalMemberExpression"===r||"OptionalCallExpression"===r||"TypeCastExpression"===r||"JSXElement"===r||"JSXFragment"===r||"BindExpression"===r||"PipelinePrimaryTopicReference"===r||"DoExpression"===r||"RecordExpression"===r||"TupleExpression"===r||"DecimalLiteral"===r||"ModuleExpression"===r||"TSAsExpression"===r||"TSTypeAssertion"===r||"TSNonNullExpression"===r||"Placeholder"===r&&("Expression"===e.expectedNode||"Identifier"===e.expectedNode||"StringLiteral"===e.expectedNode))return void 0===t||(0,i.default)(e,t);return!1},t.isBinary=function(e,t){if(!e)return!1;const r=e.type;if("BinaryExpression"===r||"LogicalExpression"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isScopable=function(e,t){if(!e)return!1;const r=e.type;if("BlockStatement"===r||"CatchClause"===r||"DoWhileStatement"===r||"ForInStatement"===r||"ForStatement"===r||"FunctionDeclaration"===r||"FunctionExpression"===r||"Program"===r||"ObjectMethod"===r||"SwitchStatement"===r||"WhileStatement"===r||"ArrowFunctionExpression"===r||"ClassExpression"===r||"ClassDeclaration"===r||"ForOfStatement"===r||"ClassMethod"===r||"ClassPrivateMethod"===r||"StaticBlock"===r||"TSModuleBlock"===r||"Placeholder"===r&&"BlockStatement"===e.expectedNode)return void 0===t||(0,i.default)(e,t);return!1},t.isBlockParent=function(e,t){if(!e)return!1;const r=e.type;if("BlockStatement"===r||"CatchClause"===r||"DoWhileStatement"===r||"ForInStatement"===r||"ForStatement"===r||"FunctionDeclaration"===r||"FunctionExpression"===r||"Program"===r||"ObjectMethod"===r||"SwitchStatement"===r||"WhileStatement"===r||"ArrowFunctionExpression"===r||"ForOfStatement"===r||"ClassMethod"===r||"ClassPrivateMethod"===r||"StaticBlock"===r||"TSModuleBlock"===r||"Placeholder"===r&&"BlockStatement"===e.expectedNode)return void 0===t||(0,i.default)(e,t);return!1},t.isBlock=function(e,t){if(!e)return!1;const r=e.type;if("BlockStatement"===r||"Program"===r||"TSModuleBlock"===r||"Placeholder"===r&&"BlockStatement"===e.expectedNode)return void 0===t||(0,i.default)(e,t);return!1},t.isStatement=function(e,t){if(!e)return!1;const r=e.type;if("BlockStatement"===r||"BreakStatement"===r||"ContinueStatement"===r||"DebuggerStatement"===r||"DoWhileStatement"===r||"EmptyStatement"===r||"ExpressionStatement"===r||"ForInStatement"===r||"ForStatement"===r||"FunctionDeclaration"===r||"IfStatement"===r||"LabeledStatement"===r||"ReturnStatement"===r||"SwitchStatement"===r||"ThrowStatement"===r||"TryStatement"===r||"VariableDeclaration"===r||"WhileStatement"===r||"WithStatement"===r||"ClassDeclaration"===r||"ExportAllDeclaration"===r||"ExportDefaultDeclaration"===r||"ExportNamedDeclaration"===r||"ForOfStatement"===r||"ImportDeclaration"===r||"DeclareClass"===r||"DeclareFunction"===r||"DeclareInterface"===r||"DeclareModule"===r||"DeclareModuleExports"===r||"DeclareTypeAlias"===r||"DeclareOpaqueType"===r||"DeclareVariable"===r||"DeclareExportDeclaration"===r||"DeclareExportAllDeclaration"===r||"InterfaceDeclaration"===r||"OpaqueType"===r||"TypeAlias"===r||"EnumDeclaration"===r||"TSDeclareFunction"===r||"TSInterfaceDeclaration"===r||"TSTypeAliasDeclaration"===r||"TSEnumDeclaration"===r||"TSModuleDeclaration"===r||"TSImportEqualsDeclaration"===r||"TSExportAssignment"===r||"TSNamespaceExportDeclaration"===r||"Placeholder"===r&&("Statement"===e.expectedNode||"Declaration"===e.expectedNode||"BlockStatement"===e.expectedNode))return void 0===t||(0,i.default)(e,t);return!1},t.isTerminatorless=function(e,t){if(!e)return!1;const r=e.type;if("BreakStatement"===r||"ContinueStatement"===r||"ReturnStatement"===r||"ThrowStatement"===r||"YieldExpression"===r||"AwaitExpression"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isCompletionStatement=function(e,t){if(!e)return!1;const r=e.type;if("BreakStatement"===r||"ContinueStatement"===r||"ReturnStatement"===r||"ThrowStatement"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isConditional=function(e,t){if(!e)return!1;const r=e.type;if("ConditionalExpression"===r||"IfStatement"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isLoop=function(e,t){if(!e)return!1;const r=e.type;if("DoWhileStatement"===r||"ForInStatement"===r||"ForStatement"===r||"WhileStatement"===r||"ForOfStatement"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isWhile=function(e,t){if(!e)return!1;const r=e.type;if("DoWhileStatement"===r||"WhileStatement"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isExpressionWrapper=function(e,t){if(!e)return!1;const r=e.type;if("ExpressionStatement"===r||"ParenthesizedExpression"===r||"TypeCastExpression"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isFor=function(e,t){if(!e)return!1;const r=e.type;if("ForInStatement"===r||"ForStatement"===r||"ForOfStatement"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isForXStatement=function(e,t){if(!e)return!1;const r=e.type;if("ForInStatement"===r||"ForOfStatement"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isFunction=function(e,t){if(!e)return!1;const r=e.type;if("FunctionDeclaration"===r||"FunctionExpression"===r||"ObjectMethod"===r||"ArrowFunctionExpression"===r||"ClassMethod"===r||"ClassPrivateMethod"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isFunctionParent=function(e,t){if(!e)return!1;const r=e.type;if("FunctionDeclaration"===r||"FunctionExpression"===r||"ObjectMethod"===r||"ArrowFunctionExpression"===r||"ClassMethod"===r||"ClassPrivateMethod"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isPureish=function(e,t){if(!e)return!1;const r=e.type;if("FunctionDeclaration"===r||"FunctionExpression"===r||"StringLiteral"===r||"NumericLiteral"===r||"NullLiteral"===r||"BooleanLiteral"===r||"RegExpLiteral"===r||"ArrowFunctionExpression"===r||"BigIntLiteral"===r||"DecimalLiteral"===r||"Placeholder"===r&&"StringLiteral"===e.expectedNode)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclaration=function(e,t){if(!e)return!1;const r=e.type;if("FunctionDeclaration"===r||"VariableDeclaration"===r||"ClassDeclaration"===r||"ExportAllDeclaration"===r||"ExportDefaultDeclaration"===r||"ExportNamedDeclaration"===r||"ImportDeclaration"===r||"DeclareClass"===r||"DeclareFunction"===r||"DeclareInterface"===r||"DeclareModule"===r||"DeclareModuleExports"===r||"DeclareTypeAlias"===r||"DeclareOpaqueType"===r||"DeclareVariable"===r||"DeclareExportDeclaration"===r||"DeclareExportAllDeclaration"===r||"InterfaceDeclaration"===r||"OpaqueType"===r||"TypeAlias"===r||"EnumDeclaration"===r||"TSDeclareFunction"===r||"TSInterfaceDeclaration"===r||"TSTypeAliasDeclaration"===r||"TSEnumDeclaration"===r||"TSModuleDeclaration"===r||"Placeholder"===r&&"Declaration"===e.expectedNode)return void 0===t||(0,i.default)(e,t);return!1},t.isPatternLike=function(e,t){if(!e)return!1;const r=e.type;if("Identifier"===r||"RestElement"===r||"AssignmentPattern"===r||"ArrayPattern"===r||"ObjectPattern"===r||"Placeholder"===r&&("Pattern"===e.expectedNode||"Identifier"===e.expectedNode))return void 0===t||(0,i.default)(e,t);return!1},t.isLVal=function(e,t){if(!e)return!1;const r=e.type;if("Identifier"===r||"MemberExpression"===r||"RestElement"===r||"AssignmentPattern"===r||"ArrayPattern"===r||"ObjectPattern"===r||"TSParameterProperty"===r||"Placeholder"===r&&("Pattern"===e.expectedNode||"Identifier"===e.expectedNode))return void 0===t||(0,i.default)(e,t);return!1},t.isTSEntityName=function(e,t){if(!e)return!1;const r=e.type;if("Identifier"===r||"TSQualifiedName"===r||"Placeholder"===r&&"Identifier"===e.expectedNode)return void 0===t||(0,i.default)(e,t);return!1},t.isLiteral=function(e,t){if(!e)return!1;const r=e.type;if("StringLiteral"===r||"NumericLiteral"===r||"NullLiteral"===r||"BooleanLiteral"===r||"RegExpLiteral"===r||"TemplateLiteral"===r||"BigIntLiteral"===r||"DecimalLiteral"===r||"Placeholder"===r&&"StringLiteral"===e.expectedNode)return void 0===t||(0,i.default)(e,t);return!1},t.isImmutable=function(e,t){if(!e)return!1;const r=e.type;if("StringLiteral"===r||"NumericLiteral"===r||"NullLiteral"===r||"BooleanLiteral"===r||"BigIntLiteral"===r||"JSXAttribute"===r||"JSXClosingElement"===r||"JSXElement"===r||"JSXExpressionContainer"===r||"JSXSpreadChild"===r||"JSXOpeningElement"===r||"JSXText"===r||"JSXFragment"===r||"JSXOpeningFragment"===r||"JSXClosingFragment"===r||"DecimalLiteral"===r||"Placeholder"===r&&"StringLiteral"===e.expectedNode)return void 0===t||(0,i.default)(e,t);return!1},t.isUserWhitespacable=function(e,t){if(!e)return!1;const r=e.type;if("ObjectMethod"===r||"ObjectProperty"===r||"ObjectTypeInternalSlot"===r||"ObjectTypeCallProperty"===r||"ObjectTypeIndexer"===r||"ObjectTypeProperty"===r||"ObjectTypeSpreadProperty"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isMethod=function(e,t){if(!e)return!1;const r=e.type;if("ObjectMethod"===r||"ClassMethod"===r||"ClassPrivateMethod"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isObjectMember=function(e,t){if(!e)return!1;const r=e.type;if("ObjectMethod"===r||"ObjectProperty"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isProperty=function(e,t){if(!e)return!1;const r=e.type;if("ObjectProperty"===r||"ClassProperty"===r||"ClassPrivateProperty"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isUnaryLike=function(e,t){if(!e)return!1;const r=e.type;if("UnaryExpression"===r||"SpreadElement"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isPattern=function(e,t){if(!e)return!1;const r=e.type;if("AssignmentPattern"===r||"ArrayPattern"===r||"ObjectPattern"===r||"Placeholder"===r&&"Pattern"===e.expectedNode)return void 0===t||(0,i.default)(e,t);return!1},t.isClass=function(e,t){if(!e)return!1;const r=e.type;if("ClassExpression"===r||"ClassDeclaration"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isModuleDeclaration=function(e,t){if(!e)return!1;const r=e.type;if("ExportAllDeclaration"===r||"ExportDefaultDeclaration"===r||"ExportNamedDeclaration"===r||"ImportDeclaration"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isExportDeclaration=function(e,t){if(!e)return!1;const r=e.type;if("ExportAllDeclaration"===r||"ExportDefaultDeclaration"===r||"ExportNamedDeclaration"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isModuleSpecifier=function(e,t){if(!e)return!1;const r=e.type;if("ExportSpecifier"===r||"ImportDefaultSpecifier"===r||"ImportNamespaceSpecifier"===r||"ImportSpecifier"===r||"ExportNamespaceSpecifier"===r||"ExportDefaultSpecifier"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isFlow=function(e,t){if(!e)return!1;const r=e.type;if("AnyTypeAnnotation"===r||"ArrayTypeAnnotation"===r||"BooleanTypeAnnotation"===r||"BooleanLiteralTypeAnnotation"===r||"NullLiteralTypeAnnotation"===r||"ClassImplements"===r||"DeclareClass"===r||"DeclareFunction"===r||"DeclareInterface"===r||"DeclareModule"===r||"DeclareModuleExports"===r||"DeclareTypeAlias"===r||"DeclareOpaqueType"===r||"DeclareVariable"===r||"DeclareExportDeclaration"===r||"DeclareExportAllDeclaration"===r||"DeclaredPredicate"===r||"ExistsTypeAnnotation"===r||"FunctionTypeAnnotation"===r||"FunctionTypeParam"===r||"GenericTypeAnnotation"===r||"InferredPredicate"===r||"InterfaceExtends"===r||"InterfaceDeclaration"===r||"InterfaceTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"MixedTypeAnnotation"===r||"EmptyTypeAnnotation"===r||"NullableTypeAnnotation"===r||"NumberLiteralTypeAnnotation"===r||"NumberTypeAnnotation"===r||"ObjectTypeAnnotation"===r||"ObjectTypeInternalSlot"===r||"ObjectTypeCallProperty"===r||"ObjectTypeIndexer"===r||"ObjectTypeProperty"===r||"ObjectTypeSpreadProperty"===r||"OpaqueType"===r||"QualifiedTypeIdentifier"===r||"StringLiteralTypeAnnotation"===r||"StringTypeAnnotation"===r||"SymbolTypeAnnotation"===r||"ThisTypeAnnotation"===r||"TupleTypeAnnotation"===r||"TypeofTypeAnnotation"===r||"TypeAlias"===r||"TypeAnnotation"===r||"TypeCastExpression"===r||"TypeParameter"===r||"TypeParameterDeclaration"===r||"TypeParameterInstantiation"===r||"UnionTypeAnnotation"===r||"Variance"===r||"VoidTypeAnnotation"===r||"IndexedAccessType"===r||"OptionalIndexedAccessType"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isFlowType=function(e,t){if(!e)return!1;const r=e.type;if("AnyTypeAnnotation"===r||"ArrayTypeAnnotation"===r||"BooleanTypeAnnotation"===r||"BooleanLiteralTypeAnnotation"===r||"NullLiteralTypeAnnotation"===r||"ExistsTypeAnnotation"===r||"FunctionTypeAnnotation"===r||"GenericTypeAnnotation"===r||"InterfaceTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"MixedTypeAnnotation"===r||"EmptyTypeAnnotation"===r||"NullableTypeAnnotation"===r||"NumberLiteralTypeAnnotation"===r||"NumberTypeAnnotation"===r||"ObjectTypeAnnotation"===r||"StringLiteralTypeAnnotation"===r||"StringTypeAnnotation"===r||"SymbolTypeAnnotation"===r||"ThisTypeAnnotation"===r||"TupleTypeAnnotation"===r||"TypeofTypeAnnotation"===r||"UnionTypeAnnotation"===r||"VoidTypeAnnotation"===r||"IndexedAccessType"===r||"OptionalIndexedAccessType"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isFlowBaseAnnotation=function(e,t){if(!e)return!1;const r=e.type;if("AnyTypeAnnotation"===r||"BooleanTypeAnnotation"===r||"NullLiteralTypeAnnotation"===r||"MixedTypeAnnotation"===r||"EmptyTypeAnnotation"===r||"NumberTypeAnnotation"===r||"StringTypeAnnotation"===r||"SymbolTypeAnnotation"===r||"ThisTypeAnnotation"===r||"VoidTypeAnnotation"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isFlowDeclaration=function(e,t){if(!e)return!1;const r=e.type;if("DeclareClass"===r||"DeclareFunction"===r||"DeclareInterface"===r||"DeclareModule"===r||"DeclareModuleExports"===r||"DeclareTypeAlias"===r||"DeclareOpaqueType"===r||"DeclareVariable"===r||"DeclareExportDeclaration"===r||"DeclareExportAllDeclaration"===r||"InterfaceDeclaration"===r||"OpaqueType"===r||"TypeAlias"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isFlowPredicate=function(e,t){if(!e)return!1;const r=e.type;if("DeclaredPredicate"===r||"InferredPredicate"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isEnumBody=function(e,t){if(!e)return!1;const r=e.type;if("EnumBooleanBody"===r||"EnumNumberBody"===r||"EnumStringBody"===r||"EnumSymbolBody"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isEnumMember=function(e,t){if(!e)return!1;const r=e.type;if("EnumBooleanMember"===r||"EnumNumberMember"===r||"EnumStringMember"===r||"EnumDefaultedMember"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isJSX=function(e,t){if(!e)return!1;const r=e.type;if("JSXAttribute"===r||"JSXClosingElement"===r||"JSXElement"===r||"JSXEmptyExpression"===r||"JSXExpressionContainer"===r||"JSXSpreadChild"===r||"JSXIdentifier"===r||"JSXMemberExpression"===r||"JSXNamespacedName"===r||"JSXOpeningElement"===r||"JSXSpreadAttribute"===r||"JSXText"===r||"JSXFragment"===r||"JSXOpeningFragment"===r||"JSXClosingFragment"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isPrivate=function(e,t){if(!e)return!1;const r=e.type;if("ClassPrivateProperty"===r||"ClassPrivateMethod"===r||"PrivateName"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypeElement=function(e,t){if(!e)return!1;const r=e.type;if("TSCallSignatureDeclaration"===r||"TSConstructSignatureDeclaration"===r||"TSPropertySignature"===r||"TSMethodSignature"===r||"TSIndexSignature"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isTSType=function(e,t){if(!e)return!1;const r=e.type;if("TSAnyKeyword"===r||"TSBooleanKeyword"===r||"TSBigIntKeyword"===r||"TSIntrinsicKeyword"===r||"TSNeverKeyword"===r||"TSNullKeyword"===r||"TSNumberKeyword"===r||"TSObjectKeyword"===r||"TSStringKeyword"===r||"TSSymbolKeyword"===r||"TSUndefinedKeyword"===r||"TSUnknownKeyword"===r||"TSVoidKeyword"===r||"TSThisType"===r||"TSFunctionType"===r||"TSConstructorType"===r||"TSTypeReference"===r||"TSTypePredicate"===r||"TSTypeQuery"===r||"TSTypeLiteral"===r||"TSArrayType"===r||"TSTupleType"===r||"TSOptionalType"===r||"TSRestType"===r||"TSUnionType"===r||"TSIntersectionType"===r||"TSConditionalType"===r||"TSInferType"===r||"TSParenthesizedType"===r||"TSTypeOperator"===r||"TSIndexedAccessType"===r||"TSMappedType"===r||"TSLiteralType"===r||"TSExpressionWithTypeArguments"===r||"TSImportType"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isTSBaseType=function(e,t){if(!e)return!1;const r=e.type;if("TSAnyKeyword"===r||"TSBooleanKeyword"===r||"TSBigIntKeyword"===r||"TSIntrinsicKeyword"===r||"TSNeverKeyword"===r||"TSNullKeyword"===r||"TSNumberKeyword"===r||"TSObjectKeyword"===r||"TSStringKeyword"===r||"TSSymbolKeyword"===r||"TSUndefinedKeyword"===r||"TSUnknownKeyword"===r||"TSVoidKeyword"===r||"TSThisType"===r||"TSLiteralType"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isNumberLiteral=function(e,t){if(console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),!e)return!1;if("NumberLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isRegexLiteral=function(e,t){if(console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),!e)return!1;if("RegexLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isRestProperty=function(e,t){if(console.trace("The node type RestProperty has been renamed to RestElement"),!e)return!1;if("RestProperty"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isSpreadProperty=function(e,t){if(console.trace("The node type SpreadProperty has been renamed to SpreadElement"),!e)return!1;if("SpreadProperty"===e.type)return void 0===t||(0,i.default)(e,t);return!1};var i=r(4729)},5001:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!t)return!1;if(!(0,n.default)(t.type,e))return!r&&"Placeholder"===t.type&&e in a.FLIPPED_ALIAS_KEYS&&(0,s.default)(t.expectedNode,e);return void 0===r||(0,i.default)(t,r)};var i=r(4729),n=r(4263),s=r(549),a=r(1102)},48:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(r&&"Identifier"===e.type&&"ObjectProperty"===t.type&&"ObjectExpression"===r.type)return!1;const n=i.default.keys[t.type];if(n)for(let r=0;r<n.length;r++){const i=t[n[r]];if(Array.isArray(i)){if(i.indexOf(e)>=0)return!0}else if(i===e)return!0}return!1};var i=r(5337)},7199:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.isFunctionDeclaration)(e)||(0,i.isClassDeclaration)(e)||(0,n.default)(e)};var i=r(3924),n=r(100)},3261:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,i.default)(e.type,"Immutable"))return!0;if((0,n.isIdentifier)(e))return"undefined"===e.name;return!1};var i=r(4263),n=r(3924)},100:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.isVariableDeclaration)(e)&&("var"!==e.kind||e[n.BLOCK_SCOPED_SYMBOL])};var i=r(3924),n=r(2770)},1860:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!(!e||!i.VISITOR_KEYS[e.type])};var i=r(1102)},7190:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function isNodesEquivalent(e,t){if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return e===t;if(e.type!==t.type)return!1;const r=Object.keys(i.NODE_FIELDS[e.type]||e.type),n=i.VISITOR_KEYS[e.type];for(const i of r){if(typeof e[i]!=typeof t[i])return!1;if(null!=e[i]||null!=t[i]){if(null==e[i]||null==t[i])return!1;if(Array.isArray(e[i])){if(!Array.isArray(t[i]))return!1;if(e[i].length!==t[i].length)return!1;for(let r=0;r<e[i].length;r++)if(!isNodesEquivalent(e[i][r],t[i][r]))return!1}else if("object"!=typeof e[i]||null!=n&&n.includes(i)){if(!isNodesEquivalent(e[i],t[i]))return!1}else for(const r of Object.keys(e[i]))if(e[i][r]!==t[i][r])return!1}}return!0};var i=r(1102)},549:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;const r=i.PLACEHOLDERS_ALIAS[e];if(r)for(const e of r)if(t===e)return!0;return!1};var i=r(1102)},2954:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){switch(t.type){case"MemberExpression":case"JSXMemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(t.params.includes(e))return!1;case"ObjectProperty":case"ClassProperty":case"ClassPrivateProperty":return t.key===e?!!t.computed:t.value!==e||(!r||"ObjectPattern"!==r.type);case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;case"LabeledStatement":case"CatchClause":case"RestElement":case"BreakStatement":case"ContinueStatement":case"FunctionDeclaration":case"FunctionExpression":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return(null==r||!r.source)&&t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"JSXAttribute":case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key!==e||!!t.computed}return!0}},5969:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.isBlockStatement)(e)&&((0,i.isFunction)(t)||(0,i.isCatchClause)(t)))return!1;if((0,i.isPattern)(e)&&((0,i.isFunction)(t)||(0,i.isCatchClause)(t)))return!0;return(0,i.isScopable)(e)};var i=r(3924)},1422:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.isImportDefaultSpecifier)(e)||(0,i.isIdentifier)(e.imported||e.exported,{name:"default"})};var i=r(3924)},4263:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;if(i.ALIAS_KEYS[t])return!1;const r=i.FLIPPED_ALIAS_KEYS[t];if(r){if(r[0]===e)return!0;for(const t of r)if(e===t)return!0}return!1};var i=r(1102)},2128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e)&&!n.has(e)};var i=r(6335);const n=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"])},6335:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!0){if("string"!=typeof e)return!1;if(t&&((0,i.isKeyword)(e)||(0,i.isStrictReservedWord)(e,!0)))return!1;return(0,i.isIdentifierName)(e)};var i=r(7075)},7117:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.isVariableDeclaration)(e,{kind:"var"})&&!e[n.BLOCK_SCOPED_SYMBOL]};var i=r(3924),n=r(2770)},4185:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!(0,i.isMemberExpression)(e))return!1;const n=Array.isArray(t)?t:t.split("."),s=[];let a;for(a=e;(0,i.isMemberExpression)(a);a=a.object)s.push(a.property);if(s.push(a),s.length<n.length)return!1;if(!r&&s.length>n.length)return!1;for(let e=0,t=s.length-1;e<n.length;e++,t--){const r=s[t];let a;if((0,i.isIdentifier)(r))a=r.name;else if((0,i.isStringLiteral)(r))a=r.value;else{if(!(0,i.isThisExpression)(r))return!1;a="this"}if(n[e]!==a)return!1}return!0};var i=r(3924)},5582:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!e&&/^[a-z]/.test(e)}},1934:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=(0,r(3427).default)("React.Component");t.default=i},1843:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!e)return;const n=i.NODE_FIELDS[e.type];if(!n)return;const s=n[t];validateField(e,t,r,s),validateChild(e,t,r)},t.validateField=validateField,t.validateChild=validateChild;var i=r(1102);function validateField(e,t,r,i){null!=i&&i.validate&&(i.optional&&null==r||i.validate(e,t,r))}function validateChild(e,t,r){if(null==r)return;const n=i.NODE_PARENT_VALIDATIONS[r.type];n&&n(e,t,r)}},9617:(e,t)=>{"use strict";t.byteLength=function(e){var t=getLens(e),r=t[0],i=t[1];return 3*(r+i)/4-i},t.toByteArray=function(e){var t,r,s=getLens(e),a=s[0],o=s[1],l=new n(function(e,t,r){return 3*(t+r)/4-r}(0,a,o)),c=0,u=o>0?a-4:a;for(r=0;r<u;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;2===o&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,l[c++]=255&t);1===o&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t);return l},t.fromByteArray=function(e){for(var t,i=e.length,n=i%3,s=[],a=16383,o=0,l=i-n;o<l;o+=a)s.push(encodeChunk(e,o,o+a>l?l:o+a));1===n?(t=e[i-1],s.push(r[t>>2]+r[t<<4&63]+"==")):2===n&&(t=(e[i-2]<<8)+e[i-1],s.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return s.join("")};for(var r=[],i=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function getLens(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function encodeChunk(e,t,i){for(var n,s,a=[],o=t;o<i;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),a.push(r[(s=n)>>18&63]+r[s>>12&63]+r[s>>6&63]+r[63&s]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},9052:(e,t,r)=>{"use strict";const i=r(9617),n=r(9218),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=Buffer,t.h2=50;const a=2147483647;function createBuffer(e){if(e>a)throw new RangeError(\'The value "\'+e+\'" is invalid for option "size"\');const t=new Uint8Array(e);return Object.setPrototypeOf(t,Buffer.prototype),t}function Buffer(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError(\'The "string" argument must be of type string. Received type number\');return allocUnsafe(e)}return from(e,t,r)}function from(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!Buffer.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|byteLength(e,t);let i=createBuffer(r);const n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return function(e){if(isInstance(e,Uint8Array)){const t=new Uint8Array(e);return fromArrayBuffer(t.buffer,t.byteOffset,t.byteLength)}return fromArrayLike(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(isInstance(e,ArrayBuffer)||e&&isInstance(e.buffer,ArrayBuffer))return fromArrayBuffer(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(isInstance(e,SharedArrayBuffer)||e&&isInstance(e.buffer,SharedArrayBuffer)))return fromArrayBuffer(e,t,r);if("number"==typeof e)throw new TypeError(\'The "value" argument must not be of type number. Received type number\');const i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return Buffer.from(i,t,r);const n=function(e){if(Buffer.isBuffer(e)){const t=0|checked(e.length),r=createBuffer(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||numberIsNaN(e.length)?createBuffer(0):fromArrayLike(e);if("Buffer"===e.type&&Array.isArray(e.data))return fromArrayLike(e.data)}(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return Buffer.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function assertSize(e){if("number"!=typeof e)throw new TypeError(\'"size" argument must be of type number\');if(e<0)throw new RangeError(\'The value "\'+e+\'" is invalid for option "size"\')}function allocUnsafe(e){return assertSize(e),createBuffer(e<0?0:0|checked(e))}function fromArrayLike(e){const t=e.length<0?0:0|checked(e.length),r=createBuffer(t);for(let i=0;i<t;i+=1)r[i]=255&e[i];return r}function fromArrayBuffer(e,t,r){if(t<0||e.byteLength<t)throw new RangeError(\'"offset" is outside of buffer bounds\');if(e.byteLength<t+(r||0))throw new RangeError(\'"length" is outside of buffer bounds\');let i;return i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(i,Buffer.prototype),i}function checked(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function byteLength(e,t){if(Buffer.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||isInstance(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError(\'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type \'+typeof e);const r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return utf8ToBytes(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return base64ToBytes(e).length;default:if(n)return i?-1:utf8ToBytes(e).length;t=(""+t).toLowerCase(),n=!0}}function slowToString(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return hexSlice(this,t,r);case"utf8":case"utf-8":return utf8Slice(this,t,r);case"ascii":return asciiSlice(this,t,r);case"latin1":case"binary":return latin1Slice(this,t,r);case"base64":return base64Slice(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function swap(e,t,r){const i=e[t];e[t]=e[r],e[r]=i}function bidirectionalIndexOf(e,t,r,i,n){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),numberIsNaN(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=Buffer.from(t,i)),Buffer.isBuffer(t))return 0===t.length?-1:arrayIndexOf(e,t,r,i,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):arrayIndexOf(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(e,t,r,i,n){let s,a=1,o=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,o/=2,l/=2,r/=2}function read(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){let i=-1;for(s=r;s<o;s++)if(read(e,s)===read(t,-1===i?0:s-i)){if(-1===i&&(i=s),s-i+1===l)return i*a}else-1!==i&&(s-=s-i),i=-1}else for(r+l>o&&(r=o-l),s=r;s>=0;s--){let r=!0;for(let i=0;i<l;i++)if(read(e,s+i)!==read(t,i)){r=!1;break}if(r)return s}return-1}function hexWrite(e,t,r,i){r=Number(r)||0;const n=e.length-r;i?(i=Number(i))>n&&(i=n):i=n;const s=t.length;let a;for(i>s/2&&(i=s/2),a=0;a<i;++a){const i=parseInt(t.substr(2*a,2),16);if(numberIsNaN(i))return a;e[r+a]=i}return a}function utf8Write(e,t,r,i){return blitBuffer(utf8ToBytes(t,e.length-r),e,r,i)}function asciiWrite(e,t,r,i){return blitBuffer(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function base64Write(e,t,r,i){return blitBuffer(base64ToBytes(t),e,r,i)}function ucs2Write(e,t,r,i){return blitBuffer(function(e,t){let r,i,n;const s=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,s.push(n),s.push(i);return s}(t,e.length-r),e,r,i)}function base64Slice(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function utf8Slice(e,t,r){r=Math.min(e.length,r);const i=[];let n=t;for(;n<r;){const t=e[n];let s=null,a=t>239?4:t>223?3:t>191?2:1;if(n+a<=r){let r,i,o,l;switch(a){case 1:t<128&&(s=t);break;case 2:r=e[n+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(s=l));break;case 3:r=e[n+1],i=e[n+2],128==(192&r)&&128==(192&i)&&(l=(15&t)<<12|(63&r)<<6|63&i,l>2047&&(l<55296||l>57343)&&(s=l));break;case 4:r=e[n+1],i=e[n+2],o=e[n+3],128==(192&r)&&128==(192&i)&&128==(192&o)&&(l=(15&t)<<18|(63&r)<<12|(63&i)<<6|63&o,l>65535&&l<1114112&&(s=l))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,i.push(s>>>10&1023|55296),s=56320|1023&s),i.push(s),n+=a}return function(e){const t=e.length;if(t<=o)return String.fromCharCode.apply(String,e);let r="",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=o));return r}(i)}Buffer.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),Buffer.poolSize=8192,Buffer.from=function(e,t,r){return from(e,t,r)},Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype),Object.setPrototypeOf(Buffer,Uint8Array),Buffer.alloc=function(e,t,r){return function(e,t,r){return assertSize(e),e<=0?createBuffer(e):void 0!==t?"string"==typeof r?createBuffer(e).fill(t,r):createBuffer(e).fill(t):createBuffer(e)}(e,t,r)},Buffer.allocUnsafe=function(e){return allocUnsafe(e)},Buffer.allocUnsafeSlow=function(e){return allocUnsafe(e)},Buffer.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==Buffer.prototype},Buffer.compare=function(e,t){if(isInstance(e,Uint8Array)&&(e=Buffer.from(e,e.offset,e.byteLength)),isInstance(t,Uint8Array)&&(t=Buffer.from(t,t.offset,t.byteLength)),!Buffer.isBuffer(e)||!Buffer.isBuffer(t))throw new TypeError(\'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array\');if(e===t)return 0;let r=e.length,i=t.length;for(let n=0,s=Math.min(r,i);n<s;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},Buffer.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function(e,t){if(!Array.isArray(e))throw new TypeError(\'"list" argument must be an Array of Buffers\');if(0===e.length)return Buffer.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const i=Buffer.allocUnsafe(t);let n=0;for(r=0;r<e.length;++r){let t=e[r];if(isInstance(t,Uint8Array))n+t.length>i.length?(Buffer.isBuffer(t)||(t=Buffer.from(t)),t.copy(i,n)):Uint8Array.prototype.set.call(i,t,n);else{if(!Buffer.isBuffer(t))throw new TypeError(\'"list" argument must be an Array of Buffers\');t.copy(i,n)}n+=t.length}return i},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)swap(this,t,t+1);return this},Buffer.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)swap(this,t,t+3),swap(this,t+1,t+2);return this},Buffer.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)swap(this,t,t+7),swap(this,t+1,t+6),swap(this,t+2,t+5),swap(this,t+3,t+4);return this},Buffer.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?utf8Slice(this,0,e):slowToString.apply(this,arguments)},Buffer.prototype.toLocaleString=Buffer.prototype.toString,Buffer.prototype.equals=function(e){if(!Buffer.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Buffer.compare(this,e)},Buffer.prototype.inspect=function(){let e="";const r=t.h2;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},s&&(Buffer.prototype[s]=Buffer.prototype.inspect),Buffer.prototype.compare=function(e,t,r,i,n){if(isInstance(e,Uint8Array)&&(e=Buffer.from(e,e.offset,e.byteLength)),!Buffer.isBuffer(e))throw new TypeError(\'The "target" argument must be one of type Buffer or Uint8Array. Received type \'+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return-1;if(t>=r)return 1;if(this===e)return 0;let s=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0);const o=Math.min(s,a),l=this.slice(i,n),c=e.slice(t,r);for(let e=0;e<o;++e)if(l[e]!==c[e]){s=l[e],a=c[e];break}return s<a?-1:a<s?1:0},Buffer.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},Buffer.prototype.indexOf=function(e,t,r){return bidirectionalIndexOf(this,e,t,r,!0)},Buffer.prototype.lastIndexOf=function(e,t,r){return bidirectionalIndexOf(this,e,t,r,!1)},Buffer.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0)}const n=this.length-t;if((void 0===r||r>n)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let s=!1;for(;;)switch(i){case"hex":return hexWrite(this,e,t,r);case"utf8":case"utf-8":return utf8Write(this,e,t,r);case"ascii":case"latin1":case"binary":return asciiWrite(this,e,t,r);case"base64":return base64Write(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const o=4096;function asciiSlice(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function latin1Slice(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function hexSlice(e,t,r){const i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);let n="";for(let i=t;i<r;++i)n+=u[e[i]];return n}function utf16leSlice(e,t,r){const i=e.slice(t,r);let n="";for(let e=0;e<i.length-1;e+=2)n+=String.fromCharCode(i[e]+256*i[e+1]);return n}function checkOffset(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function checkInt(e,t,r,i,n,s){if(!Buffer.isBuffer(e))throw new TypeError(\'"buffer" argument must be a Buffer instance\');if(t>n||t<s)throw new RangeError(\'"value" argument is out of bounds\');if(r+i>e.length)throw new RangeError("Index out of range")}function wrtBigUInt64LE(e,t,r,i,n){checkIntBI(t,i,n,e,r,7);let s=Number(t&BigInt(4294967295));e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function wrtBigUInt64BE(e,t,r,i,n){checkIntBI(t,i,n,e,r,7);let s=Number(t&BigInt(4294967295));e[r+7]=s,s>>=8,e[r+6]=s,s>>=8,e[r+5]=s,s>>=8,e[r+4]=s;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function checkIEEE754(e,t,r,i,n,s){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function writeFloat(e,t,r,i,s){return t=+t,r>>>=0,s||checkIEEE754(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function writeDouble(e,t,r,i,s){return t=+t,r>>>=0,s||checkIEEE754(e,0,r,8),n.write(e,t,r,i,52,8),r+8}Buffer.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const i=this.subarray(e,t);return Object.setPrototypeOf(i,Buffer.prototype),i},Buffer.prototype.readUintLE=Buffer.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||checkOffset(e,t,this.length);let i=this[e],n=1,s=0;for(;++s<t&&(n*=256);)i+=this[e+s]*n;return i},Buffer.prototype.readUintBE=Buffer.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||checkOffset(e,t,this.length);let i=this[e+--t],n=1;for(;t>0&&(n*=256);)i+=this[e+--t]*n;return i},Buffer.prototype.readUint8=Buffer.prototype.readUInt8=function(e,t){return e>>>=0,t||checkOffset(e,1,this.length),this[e]},Buffer.prototype.readUint16LE=Buffer.prototype.readUInt16LE=function(e,t){return e>>>=0,t||checkOffset(e,2,this.length),this[e]|this[e+1]<<8},Buffer.prototype.readUint16BE=Buffer.prototype.readUInt16BE=function(e,t){return e>>>=0,t||checkOffset(e,2,this.length),this[e]<<8|this[e+1]},Buffer.prototype.readUint32LE=Buffer.prototype.readUInt32LE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Buffer.prototype.readUint32BE=Buffer.prototype.readUInt32BE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Buffer.prototype.readBigUInt64LE=defineBigIntMethod((function(e){validateNumber(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||boundsError(e,this.length-8);const i=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,n=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(i)+(BigInt(n)<<BigInt(32))})),Buffer.prototype.readBigUInt64BE=defineBigIntMethod((function(e){validateNumber(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||boundsError(e,this.length-8);const i=t*2**24+65536*this[++e]+256*this[++e]+this[++e],n=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(i)<<BigInt(32))+BigInt(n)})),Buffer.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||checkOffset(e,t,this.length);let i=this[e],n=1,s=0;for(;++s<t&&(n*=256);)i+=this[e+s]*n;return n*=128,i>=n&&(i-=Math.pow(2,8*t)),i},Buffer.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||checkOffset(e,t,this.length);let i=t,n=1,s=this[e+--i];for(;i>0&&(n*=256);)s+=this[e+--i]*n;return n*=128,s>=n&&(s-=Math.pow(2,8*t)),s},Buffer.prototype.readInt8=function(e,t){return e>>>=0,t||checkOffset(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Buffer.prototype.readInt16LE=function(e,t){e>>>=0,t||checkOffset(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt16BE=function(e,t){e>>>=0,t||checkOffset(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt32LE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Buffer.prototype.readInt32BE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Buffer.prototype.readBigInt64LE=defineBigIntMethod((function(e){validateNumber(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||boundsError(e,this.length-8);const i=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(i)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),Buffer.prototype.readBigInt64BE=defineBigIntMethod((function(e){validateNumber(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||boundsError(e,this.length-8);const i=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(i)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),Buffer.prototype.readFloatLE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),n.read(this,e,!0,23,4)},Buffer.prototype.readFloatBE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),n.read(this,e,!1,23,4)},Buffer.prototype.readDoubleLE=function(e,t){return e>>>=0,t||checkOffset(e,8,this.length),n.read(this,e,!0,52,8)},Buffer.prototype.readDoubleBE=function(e,t){return e>>>=0,t||checkOffset(e,8,this.length),n.read(this,e,!1,52,8)},Buffer.prototype.writeUintLE=Buffer.prototype.writeUIntLE=function(e,t,r,i){if(e=+e,t>>>=0,r>>>=0,!i){checkInt(this,e,t,r,Math.pow(2,8*r)-1,0)}let n=1,s=0;for(this[t]=255&e;++s<r&&(n*=256);)this[t+s]=e/n&255;return t+r},Buffer.prototype.writeUintBE=Buffer.prototype.writeUIntBE=function(e,t,r,i){if(e=+e,t>>>=0,r>>>=0,!i){checkInt(this,e,t,r,Math.pow(2,8*r)-1,0)}let n=r-1,s=1;for(this[t+n]=255&e;--n>=0&&(s*=256);)this[t+n]=e/s&255;return t+r},Buffer.prototype.writeUint8=Buffer.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,1,255,0),this[t]=255&e,t+1},Buffer.prototype.writeUint16LE=Buffer.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},Buffer.prototype.writeUint16BE=Buffer.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},Buffer.prototype.writeUint32LE=Buffer.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},Buffer.prototype.writeUint32BE=Buffer.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Buffer.prototype.writeBigUInt64LE=defineBigIntMethod((function(e,t=0){return wrtBigUInt64LE(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),Buffer.prototype.writeBigUInt64BE=defineBigIntMethod((function(e,t=0){return wrtBigUInt64BE(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),Buffer.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){const i=Math.pow(2,8*r-1);checkInt(this,e,t,r,i-1,-i)}let n=0,s=1,a=0;for(this[t]=255&e;++n<r&&(s*=256);)e<0&&0===a&&0!==this[t+n-1]&&(a=1),this[t+n]=(e/s>>0)-a&255;return t+r},Buffer.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){const i=Math.pow(2,8*r-1);checkInt(this,e,t,r,i-1,-i)}let n=r-1,s=1,a=0;for(this[t+n]=255&e;--n>=0&&(s*=256);)e<0&&0===a&&0!==this[t+n+1]&&(a=1),this[t+n]=(e/s>>0)-a&255;return t+r},Buffer.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},Buffer.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},Buffer.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},Buffer.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},Buffer.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Buffer.prototype.writeBigInt64LE=defineBigIntMethod((function(e,t=0){return wrtBigUInt64LE(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),Buffer.prototype.writeBigInt64BE=defineBigIntMethod((function(e,t=0){return wrtBigUInt64BE(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),Buffer.prototype.writeFloatLE=function(e,t,r){return writeFloat(this,e,t,!0,r)},Buffer.prototype.writeFloatBE=function(e,t,r){return writeFloat(this,e,t,!1,r)},Buffer.prototype.writeDoubleLE=function(e,t,r){return writeDouble(this,e,t,!0,r)},Buffer.prototype.writeDoubleBE=function(e,t,r){return writeDouble(this,e,t,!1,r)},Buffer.prototype.copy=function(e,t,r,i){if(!Buffer.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);const n=i-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,i):Uint8Array.prototype.set.call(e,this.subarray(r,i),t),n},Buffer.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!Buffer.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===e.length){const t=e.charCodeAt(0);("utf8"===i&&t<128||"latin1"===i)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let n;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;else{const s=Buffer.isBuffer(e)?e:Buffer.from(e,i),a=s.length;if(0===a)throw new TypeError(\'The value "\'+e+\'" is invalid for argument "value"\');for(n=0;n<r-t;++n)this[n+t]=s[n%a]}return this};const l={};function E(e,t,r){l[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function addNumericalSeparator(e){let t="",r=e.length;const i="-"===e[0]?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function checkIntBI(e,t,r,i,n,s){if(e>r||e<t){const i="bigint"==typeof t?"n":"";let n;throw n=s>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${8*(s+1)}${i}`:`>= -(2${i} ** ${8*(s+1)-1}${i}) and < 2 ** ${8*(s+1)-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new l.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,r){validateNumber(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||boundsError(t,e.length-(r+1))}(i,n,s)}function validateNumber(e,t){if("number"!=typeof e)throw new l.ERR_INVALID_ARG_TYPE(t,"number",e)}function boundsError(e,t,r){if(Math.floor(e)!==e)throw validateNumber(e,r),new l.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new l.ERR_BUFFER_OUT_OF_BOUNDS;throw new l.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}E("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),E("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),E("ERR_OUT_OF_RANGE",(function(e,t,r){let i=`The value of "${e}" is out of range.`,n=r;return Number.isInteger(r)&&Math.abs(r)>2**32?n=addNumericalSeparator(String(r)):"bigint"==typeof r&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=addNumericalSeparator(n)),n+="n"),i+=` It must be ${t}. Received ${n}`,i}),RangeError);const c=/[^+/0-9A-Za-z-_]/g;function utf8ToBytes(e,t){let r;t=t||1/0;const i=e.length;let n=null;const s=[];for(let a=0;a<i;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function base64ToBytes(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(c,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function blitBuffer(e,t,r,i){let n;for(n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function isInstance(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function numberIsNaN(e){return e!=e}const u=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const i=16*r;for(let n=0;n<16;++n)t[i+n]=e[r]+e[n]}return t}();function defineBigIntMethod(e){return"undefined"==typeof BigInt?BufferBigIntNotDefined:e}function BufferBigIntNotDefined(){throw new Error("BigInt not supported")}},9218:(e,t)=>{t.read=function(e,t,r,i,n){var s,a,o=8*n-i-1,l=(1<<o)-1,c=l>>1,u=-7,p=r?n-1:0,d=r?-1:1,h=e[t+p];for(p+=d,s=h&(1<<-u)-1,h>>=-u,u+=o;u>0;s=256*s+e[t+p],p+=d,u-=8);for(a=s&(1<<-u)-1,s>>=-u,u+=i;u>0;a=256*a+e[t+p],p+=d,u-=8);if(0===s)s=1-c;else{if(s===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,i),s-=c}return(h?-1:1)*a*Math.pow(2,s-i)},t.write=function(e,t,r,i,n,s){var a,o,l,c=8*s-n-1,u=(1<<c)-1,p=u>>1,d=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,h=i?0:s-1,f=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+p>=1?d/l:d*Math.pow(2,1-p))*l>=2&&(a++,l/=2),a+p>=u?(o=0,a=u):a+p>=1?(o=(t*l-1)*Math.pow(2,n),a+=p):(o=t*Math.pow(2,p-1)*Math.pow(2,n),a=0));n>=8;e[r+h]=255&o,h+=f,o/=256,n-=8);for(a=a<<n|o,c+=n;c>0;e[r+h]=255&a,h+=f,a/=256,c-=8);e[r+h-f]|=128*m}},4987:(e,t,r)=>{var i=r(397);t.log=function(...e){return"object"==typeof console&&console.log&&console.log(...e)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let i=0,n=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(i++,"%c"===e&&(n=i))})),t.splice(n,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==i&&"env"in i&&(e=i.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=r(7179)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7179:(e,t,r)=>{e.exports=function(e){function selectColor(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return createDebug.colors[Math.abs(t)%createDebug.colors.length]}function createDebug(e){let t;function debug(...e){if(!debug.enabled)return;const r=debug,i=Number(new Date),n=i-(t||i);r.diff=n,r.prev=t,r.curr=i,t=i,e[0]=createDebug.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,i)=>{if("%%"===t)return t;s++;const n=createDebug.formatters[i];if("function"==typeof n){const i=e[s];t=n.call(r,i),e.splice(s,1),s--}return t})),createDebug.formatArgs.call(r,e);(r.log||createDebug.log).apply(r,e)}return debug.namespace=e,debug.enabled=createDebug.enabled(e),debug.useColors=createDebug.useColors(),debug.color=selectColor(e),debug.destroy=destroy,debug.extend=extend,"function"==typeof createDebug.init&&createDebug.init(debug),createDebug.instances.push(debug),debug}function destroy(){const e=createDebug.instances.indexOf(this);return-1!==e&&(createDebug.instances.splice(e,1),!0)}function extend(e,t){const r=createDebug(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\\.\\*\\?$/,"*")}return createDebug.debug=createDebug,createDebug.default=createDebug,createDebug.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},createDebug.disable=function(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((e=>"-"+e))].join(",");return createDebug.enable(""),e},createDebug.enable=function(e){let t;createDebug.save(e),createDebug.names=[],createDebug.skips=[];const r=("string"==typeof e?e:"").split(/[\\s,]+/),i=r.length;for(t=0;t<i;t++)r[t]&&("-"===(e=r[t].replace(/\\*/g,".*?"))[0]?createDebug.skips.push(new RegExp("^"+e.substr(1)+"$")):createDebug.names.push(new RegExp("^"+e+"$")));for(t=0;t<createDebug.instances.length;t++){const e=createDebug.instances[t];e.enabled=createDebug.enabled(e.namespace)}},createDebug.enabled=function(e){if("*"===e[e.length-1])return!0;let t,r;for(t=0,r=createDebug.skips.length;t<r;t++)if(createDebug.skips[t].test(e))return!1;for(t=0,r=createDebug.names.length;t<r;t++)if(createDebug.names[t].test(e))return!0;return!1},createDebug.humanize=r(1331),Object.keys(e).forEach((t=>{createDebug[t]=e[t]})),createDebug.instances=[],createDebug.names=[],createDebug.skips=[],createDebug.formatters={},createDebug.selectColor=selectColor,createDebug.enable(createDebug.load()),createDebug}},8715:function(e,t,r){var i,n,s;!function(a,o){"use strict";n=[r(7356)],void 0===(s="function"==typeof(i=function(e){var t=/(^|@)\\S+:\\d+/,r=/^\\s*at .*(\\S+:\\d+|\\(native\\))/m,i=/^(eval@)?(\\[native code])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(r))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\\d+))?(?::(\\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split("\\n").filter((function(e){return!!e.match(r)}),this).map((function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\\(eval at [^()]*)|(\\),.*$)/g,""));var r=t.replace(/^\\s+/,"").replace(/\\(eval code/g,"("),i=r.match(/ (\\((.+):(\\d+):(\\d+)\\)$)/),n=(r=i?r.replace(i[0],""):r).split(/\\s+/).slice(1),s=this.extractLocation(i?i[1]:n.pop()),a=n.join(" ")||void 0,o=["eval","<anonymous>"].indexOf(s[0])>-1?void 0:s[0];return new e({functionName:a,fileName:o,lineNumber:s[1],columnNumber:s[2],source:t})}),this)},parseFFOrSafari:function(t){return t.stack.split("\\n").filter((function(e){return!e.match(i)}),this).map((function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\\d+)(?: > eval line \\d+)* > eval:\\d+:\\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var r=/((.*".+"[^@]*)?[^@]*)(?:@)/,i=t.match(r),n=i&&i[1]?i[1]:void 0,s=this.extractLocation(t.replace(r,""));return new e({functionName:n,fileName:s[0],lineNumber:s[1],columnNumber:s[2],source:t})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\\n")>-1&&e.message.split("\\n").length>e.stacktrace.split("\\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var r=/Line (\\d+).*script (?:in )?(\\S+)/i,i=t.message.split("\\n"),n=[],s=2,a=i.length;s<a;s+=2){var o=r.exec(i[s]);o&&n.push(new e({fileName:o[2],lineNumber:o[1],source:i[s]}))}return n},parseOpera10:function(t){for(var r=/Line (\\d+).*script (?:in )?(\\S+)(?:: In function (\\S+))?$/i,i=t.stacktrace.split("\\n"),n=[],s=0,a=i.length;s<a;s+=2){var o=r.exec(i[s]);o&&n.push(new e({functionName:o[3]||void 0,fileName:o[2],lineNumber:o[1],source:i[s]}))}return n},parseOpera11:function(r){return r.stack.split("\\n").filter((function(e){return!!e.match(t)&&!e.match(/^Error created at/)}),this).map((function(t){var r,i=t.split("@"),n=this.extractLocation(i.pop()),s=i.shift()||"",a=s.replace(/<anonymous function(: (\\w+))?>/,"$2").replace(/\\([^)]*\\)/g,"")||void 0;s.match(/\\(([^)]*)\\)/)&&(r=s.replace(/^[^(]+\\(([^)]*)\\)$/,"$1"));var o=void 0===r||"[arguments not available]"===r?void 0:r.split(",");return new e({functionName:a,args:o,fileName:n[0],lineNumber:n[1],columnNumber:n[2],source:t})}),this)}}})?i.apply(t,n):i)||(e.exports=s)}()},1014:e=>{"use strict";var t=/[|\\\\{}()[\\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(t,"\\\\$&")}},2261:(e,t,r)=>{"use strict";e.exports=r(964)},8631:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=/(([\'"])(?:(?!\\2|\\\\).|\\\\(?:\\r\\n|[\\s\\S]))*(\\2)?|`(?:[^`\\\\$]|\\\\[\\s\\S]|\\$(?!\\{)|\\$\\{(?:[^{}]|\\{[^}]*\\}?)*\\}?)*(`)?)|(\\/\\/.*)|(\\/\\*(?:[^*]|\\*(?!\\/))*(\\*\\/)?)|(\\/(?!\\*)(?:\\[(?:(?![\\]\\\\]).|\\\\.)*\\]|(?![\\/\\]\\\\]).|\\\\.)+\\/(?:(?!\\s*(?:\\b|[\\u0080-\\uFFFF$\\\\\'"~({]|[+\\-!](?!=)|\\.?\\d))|[gmiyus]{1,6}\\b(?![\\u0080-\\uFFFF$\\\\]|\\s*(?:[+\\-*%&|^<>!=?({]|\\/(?![\\/*])))))|(0[xX][\\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][+-]?\\d+)?)|((?!\\d)(?:(?!\\s)[$\\w\\u0080-\\uFFFF]|\\\\u[\\da-fA-F]{4}|\\\\u\\{[\\da-fA-F]+\\})+)|(--|\\+\\+|&&|\\|\\||=>|\\.{3}|(?:[+\\-\\/%&|^]|\\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\\](){}])|(\\s+)|(^$|[\\s\\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},442:(e,t,r)=>{"use strict";var i=r(9052).lW;const n={},s=n.hasOwnProperty,forOwn=(e,t)=>{for(const r in e)s.call(e,r)&&t(r,e[r])},a=n.toString,o=Array.isArray,l=i.isBuffer,c={\'"\':\'\\\\"\',"\'":"\\\\\'","\\\\":"\\\\\\\\","\\b":"\\\\b","\\f":"\\\\f","\\n":"\\\\n","\\r":"\\\\r","\\t":"\\\\t"},u=/["\'\\\\\\b\\f\\n\\r\\t]/,p=/[0-9]/,d=/[ !#-&\\(-\\[\\]-_a-~]/,jsesc=(e,t)=>{const increaseIndentation=()=>{T=y,++t.indentLevel,y=t.indent.repeat(t.indentLevel)},r={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\\t",indentLevel:0,__inline1__:!1,__inline2__:!1},i=t&&t.json;var n,s;i&&(r.quotes="double",r.wrap=!0),n=r,t=(s=t)?(forOwn(s,((e,t)=>{n[e]=t})),n):n,"single"!=t.quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");const h="double"==t.quotes?\'"\':"backtick"==t.quotes?"`":"\'",f=t.compact,m=t.lowercaseHex;let y=t.indent.repeat(t.indentLevel),T="";const g=t.__inline1__,b=t.__inline2__,S=f?"":"\\n";let x,P=!0;const v="binary"==t.numbers,A="octal"==t.numbers,w="decimal"==t.numbers,I="hexadecimal"==t.numbers;if(i&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!(e=>"string"==typeof e||"[object String]"==a.call(e))(e)){if((e=>"[object Map]"==a.call(e))(e))return 0==e.size?"new Map()":(f||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+jsesc(Array.from(e),t)+")");if((e=>"[object Set]"==a.call(e))(e))return 0==e.size?"new Set()":"new Set("+jsesc(Array.from(e),t)+")";if(l(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+jsesc(Array.from(e),t)+")";if(o(e))return x=[],t.wrap=!0,g&&(t.__inline1__=!1,t.__inline2__=!0),b||increaseIndentation(),((e,t)=>{const r=e.length;let i=-1;for(;++i<r;)t(e[i])})(e,(e=>{P=!1,b&&(t.__inline2__=!1),x.push((f||b?"":y)+jsesc(e,t))})),P?"[]":b?"["+x.join(", ")+"]":"["+S+x.join(","+S)+S+(f?"":T)+"]";if(!(e=>"number"==typeof e||"[object Number]"==a.call(e))(e))return(e=>"[object Object]"==a.call(e))(e)?(x=[],t.wrap=!0,increaseIndentation(),forOwn(e,((e,r)=>{P=!1,x.push((f?"":y)+jsesc(e,t)+":"+(f?"":" ")+jsesc(r,t))})),P?"{}":"{"+S+x.join(","+S)+S+(f?"":T)+"}"):i?JSON.stringify(e)||"null":String(e);if(i)return JSON.stringify(e);if(w)return String(e);if(I){let t=e.toString(16);return m||(t=t.toUpperCase()),"0x"+t}if(v)return"0b"+e.toString(2);if(A)return"0o"+e.toString(8)}const C=e;let O=-1;const N=C.length;for(x="";++O<N;){const e=C.charAt(O);if(t.es6){const e=C.charCodeAt(O);if(e>=55296&&e<=56319&&N>O+1){const t=C.charCodeAt(O+1);if(t>=56320&&t<=57343){let r=(1024*(e-55296)+t-56320+65536).toString(16);m||(r=r.toUpperCase()),x+="\\\\u{"+r+"}",++O;continue}}}if(!t.escapeEverything){if(d.test(e)){x+=e;continue}if(\'"\'==e){x+=h==e?\'\\\\"\':e;continue}if("`"==e){x+=h==e?"\\\\`":e;continue}if("\'"==e){x+=h==e?"\\\\\'":e;continue}}if("\\0"==e&&!i&&!p.test(C.charAt(O+1))){x+="\\\\0";continue}if(u.test(e)){x+=c[e];continue}const r=e.charCodeAt(0);if(t.minimal&&8232!=r&&8233!=r){x+=e;continue}let n=r.toString(16);m||(n=n.toUpperCase());const s=n.length>2||i,a="\\\\"+(s?"u":"x")+("0000"+n).slice(s?-4:-2);x+=a}return t.wrap&&(x=h+x+h),"`"==h&&(x=x.replace(/\\$\\{/g,"\\\\${")),t.isScriptContext?x.replace(/<\\/(script|style)/gi,"<\\\\/$1").replace(/\x3c!--/g,i?"\\\\u003C!--":"\\\\x3C!--"):x};jsesc.version="2.5.2",e.exports=jsesc},663:(e,t,r)=>{var i=r(1124)(r(358),"DataView");e.exports=i},4329:(e,t,r)=>{var i=r(8769),n=r(9749),s=r(7137),a=r(9282),o=r(5653);function Hash(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Hash.prototype.clear=i,Hash.prototype.delete=n,Hash.prototype.get=s,Hash.prototype.has=a,Hash.prototype.set=o,e.exports=Hash},4351:(e,t,r)=>{var i=r(4248),n=r(600),s=r(4828),a=r(5090),o=r(6716);function ListCache(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}ListCache.prototype.clear=i,ListCache.prototype.delete=n,ListCache.prototype.get=s,ListCache.prototype.has=a,ListCache.prototype.set=o,e.exports=ListCache},757:(e,t,r)=>{var i=r(1124)(r(358),"Map");e.exports=i},9701:(e,t,r)=>{var i=r(1120),n=r(8824),s=r(7978),a=r(5785),o=r(9125);function MapCache(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}MapCache.prototype.clear=i,MapCache.prototype.delete=n,MapCache.prototype.get=s,MapCache.prototype.has=a,MapCache.prototype.set=o,e.exports=MapCache},6978:(e,t,r)=>{var i=r(1124)(r(358),"Promise");e.exports=i},5013:(e,t,r)=>{var i=r(1124)(r(358),"Set");e.exports=i},2053:(e,t,r)=>{var i=r(4351),n=r(6002),s=r(9084),a=r(1738),o=r(9633),l=r(3773);function Stack(e){var t=this.__data__=new i(e);this.size=t.size}Stack.prototype.clear=n,Stack.prototype.delete=s,Stack.prototype.get=a,Stack.prototype.has=o,Stack.prototype.set=l,e.exports=Stack},3952:(e,t,r)=>{var i=r(358).Symbol;e.exports=i},2669:(e,t,r)=>{var i=r(358).Uint8Array;e.exports=i},4885:(e,t,r)=>{var i=r(1124)(r(358),"WeakMap");e.exports=i},6086:e=>{e.exports=function(e,t){for(var r=-1,i=null==e?0:e.length;++r<i&&!1!==t(e[r],r,e););return e}},644:e=>{e.exports=function(e,t){for(var r=-1,i=null==e?0:e.length,n=0,s=[];++r<i;){var a=e[r];t(a,r,e)&&(s[n++]=a)}return s}},8962:(e,t,r)=>{var i=r(455),n=r(5245),s=r(1241),a=r(6647),o=r(2581),l=r(43),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=s(e),u=!r&&n(e),p=!r&&!u&&a(e),d=!r&&!u&&!p&&l(e),h=r||u||p||d,f=h?i(e.length,String):[],m=f.length;for(var y in e)!t&&!c.call(e,y)||h&&("length"==y||p&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||o(y,m))||f.push(y);return f}},764:e=>{e.exports=function(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}},3639:(e,t,r)=>{var i=r(4707),n=r(9045),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];s.call(e,t)&&n(a,r)&&(void 0!==r||t in e)||i(e,t,r)}},213:(e,t,r)=>{var i=r(9045);e.exports=function(e,t){for(var r=e.length;r--;)if(i(e[r][0],t))return r;return-1}},4230:(e,t,r)=>{var i=r(4588),n=r(5901);e.exports=function(e,t){return e&&i(t,n(t),e)}},8701:(e,t,r)=>{var i=r(4588),n=r(7258);e.exports=function(e,t){return e&&i(t,n(t),e)}},4707:(e,t,r)=>{var i=r(5174);e.exports=function(e,t,r){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},4337:(e,t,r)=>{var i=r(2053),n=r(6086),s=r(3639),a=r(4230),o=r(8701),l=r(1003),c=r(7954),u=r(7681),p=r(7410),d=r(3291),h=r(491),f=r(327),m=r(6770),y=r(6214),T=r(3672),g=r(1241),b=r(6647),S=r(8852),x=r(2901),P=r(1338),v=r(5901),A=r(7258),w="[object Arguments]",I="[object Function]",C="[object Object]",O={};O[w]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[C]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[I]=O["[object WeakMap]"]=!1,e.exports=function baseClone(e,t,r,N,_,k){var D,L=1&t,M=2&t,B=4&t;if(r&&(D=_?r(e,N,_,k):r(e)),void 0!==D)return D;if(!x(e))return e;var j=g(e);if(j){if(D=m(e),!L)return c(e,D)}else{var R=f(e),F=R==I||"[object GeneratorFunction]"==R;if(b(e))return l(e,L);if(R==C||R==w||F&&!_){if(D=M||F?{}:T(e),!L)return M?p(e,o(D,e)):u(e,a(D,e))}else{if(!O[R])return _?e:{};D=y(e,R,L)}}k||(k=new i);var U=k.get(e);if(U)return U;k.set(e,D),P(e)?e.forEach((function(i){D.add(baseClone(i,t,r,i,e,k))})):S(e)&&e.forEach((function(i,n){D.set(n,baseClone(i,t,r,n,e,k))}));var K=j?void 0:(B?M?h:d:M?A:v)(e);return n(K||e,(function(i,n){K&&(i=e[n=i]),s(D,n,baseClone(i,t,r,n,e,k))})),D}},7867:(e,t,r)=>{var i=r(2901),n=Object.create,s=function(){function object(){}return function(e){if(!i(e))return{};if(n)return n(e);object.prototype=e;var t=new object;return object.prototype=void 0,t}}();e.exports=s},4582:(e,t,r)=>{var i=r(764),n=r(1241);e.exports=function(e,t,r){var s=t(e);return n(e)?s:i(s,r(e))}},436:(e,t,r)=>{var i=r(3952),n=r(4370),s=r(4639),a=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?n(e):s(e)}},5439:(e,t,r)=>{var i=r(436),n=r(5819);e.exports=function(e){return n(e)&&"[object Arguments]"==i(e)}},5863:(e,t,r)=>{var i=r(327),n=r(5819);e.exports=function(e){return n(e)&&"[object Map]"==i(e)}},7221:(e,t,r)=>{var i=r(5426),n=r(1485),s=r(2901),a=r(4193),o=/^\\[object .+?Constructor\\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,p=c.hasOwnProperty,d=RegExp("^"+u.call(p).replace(/[\\\\^$.*+?()[\\]{}|]/g,"\\\\$&").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!s(e)||n(e))&&(i(e)?d:o).test(a(e))}},9853:(e,t,r)=>{var i=r(436),n=r(5819);e.exports=function(e){return n(e)&&"[object RegExp]"==i(e)}},8461:(e,t,r)=>{var i=r(327),n=r(5819);e.exports=function(e){return n(e)&&"[object Set]"==i(e)}},2376:(e,t,r)=>{var i=r(436),n=r(9982),s=r(5819),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return s(e)&&n(e.length)&&!!a[i(e)]}},8349:(e,t,r)=>{var i=r(8363),n=r(3524),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return n(e);var t=[];for(var r in Object(e))s.call(e,r)&&"constructor"!=r&&t.push(r);return t}},4665:(e,t,r)=>{var i=r(2901),n=r(8363),s=r(4222),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return s(e);var t=n(e),r=[];for(var o in e)("constructor"!=o||!t&&a.call(e,o))&&r.push(o);return r}},455:e=>{e.exports=function(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}},6753:e=>{e.exports=function(e){return function(t){return e(t)}}},1411:(e,t,r)=>{var i=r(2669);e.exports=function(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}},1003:(e,t,r)=>{e=r.nmd(e);var i=r(358),n=t&&!t.nodeType&&t,s=n&&e&&!e.nodeType&&e,a=s&&s.exports===n?i.Buffer:void 0,o=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,i=o?o(r):new e.constructor(r);return e.copy(i),i}},6923:(e,t,r)=>{var i=r(1411);e.exports=function(e,t){var r=t?i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},9499:e=>{var t=/\\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},9452:(e,t,r)=>{var i=r(3952),n=i?i.prototype:void 0,s=n?n.valueOf:void 0;e.exports=function(e){return s?Object(s.call(e)):{}}},8585:(e,t,r)=>{var i=r(1411);e.exports=function(e,t){var r=t?i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},7954:e=>{e.exports=function(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}},4588:(e,t,r)=>{var i=r(3639),n=r(4707);e.exports=function(e,t,r,s){var a=!r;r||(r={});for(var o=-1,l=t.length;++o<l;){var c=t[o],u=s?s(r[c],e[c],c,r,e):void 0;void 0===u&&(u=e[c]),a?n(r,c,u):i(r,c,u)}return r}},7681:(e,t,r)=>{var i=r(4588),n=r(6646);e.exports=function(e,t){return i(e,n(e),t)}},7410:(e,t,r)=>{var i=r(4588),n=r(3071);e.exports=function(e,t){return i(e,n(e),t)}},2397:(e,t,r)=>{var i=r(358)["__core-js_shared__"];e.exports=i},5174:(e,t,r)=>{var i=r(1124),n=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=n},6241:e=>{var t="object"==typeof global&&global&&global.Object===Object&&global;e.exports=t},3291:(e,t,r)=>{var i=r(4582),n=r(6646),s=r(5901);e.exports=function(e){return i(e,s,n)}},491:(e,t,r)=>{var i=r(4582),n=r(3071),s=r(7258);e.exports=function(e){return i(e,s,n)}},2920:(e,t,r)=>{var i=r(152);e.exports=function(e,t){var r=e.__data__;return i(t)?r["string"==typeof t?"string":"hash"]:r.map}},1124:(e,t,r)=>{var i=r(7221),n=r(7447);e.exports=function(e,t){var r=n(e,t);return i(r)?r:void 0}},428:(e,t,r)=>{var i=r(7403)(Object.getPrototypeOf,Object);e.exports=i},4370:(e,t,r)=>{var i=r(3952),n=Object.prototype,s=n.hasOwnProperty,a=n.toString,o=i?i.toStringTag:void 0;e.exports=function(e){var t=s.call(e,o),r=e[o];try{e[o]=void 0;var i=!0}catch(e){}var n=a.call(e);return i&&(t?e[o]=r:delete e[o]),n}},6646:(e,t,r)=>{var i=r(644),n=r(4063),s=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,o=a?function(e){return null==e?[]:(e=Object(e),i(a(e),(function(t){return s.call(e,t)})))}:n;e.exports=o},3071:(e,t,r)=>{var i=r(764),n=r(428),s=r(6646),a=r(4063),o=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)i(t,s(e)),e=n(e);return t}:a;e.exports=o},327:(e,t,r)=>{var i=r(663),n=r(757),s=r(6978),a=r(5013),o=r(4885),l=r(436),c=r(4193),u="[object Map]",p="[object Promise]",d="[object Set]",h="[object WeakMap]",f="[object DataView]",m=c(i),y=c(n),T=c(s),g=c(a),b=c(o),S=l;(i&&S(new i(new ArrayBuffer(1)))!=f||n&&S(new n)!=u||s&&S(s.resolve())!=p||a&&S(new a)!=d||o&&S(new o)!=h)&&(S=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,i=r?c(r):"";if(i)switch(i){case m:return f;case y:return u;case T:return p;case g:return d;case b:return h}return t}),e.exports=S},7447:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},8769:(e,t,r)=>{var i=r(8329);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},9749:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7137:(e,t,r)=>{var i=r(8329),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return n.call(t,e)?t[e]:void 0}},9282:(e,t,r)=>{var i=r(8329),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:n.call(t,e)}},5653:(e,t,r)=>{var i=r(8329);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},6770:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,i=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(i.index=e.index,i.input=e.input),i}},6214:(e,t,r)=>{var i=r(1411),n=r(6923),s=r(9499),a=r(9452),o=r(8585);e.exports=function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return i(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return n(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return o(e,r);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return s(e);case"[object Symbol]":return a(e)}}},3672:(e,t,r)=>{var i=r(7867),n=r(428),s=r(8363);e.exports=function(e){return"function"!=typeof e.constructor||s(e)?{}:i(n(e))}},2581:e=>{var t=/^(?:0|[1-9]\\d*)$/;e.exports=function(e,r){var i=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<r}},152:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},1485:(e,t,r)=>{var i,n=r(2397),s=(i=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!s&&s in e}},8363:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},4248:e=>{e.exports=function(){this.__data__=[],this.size=0}},600:(e,t,r)=>{var i=r(213),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=i(t,e);return!(r<0)&&(r==t.length-1?t.pop():n.call(t,r,1),--this.size,!0)}},4828:(e,t,r)=>{var i=r(213);e.exports=function(e){var t=this.__data__,r=i(t,e);return r<0?void 0:t[r][1]}},5090:(e,t,r)=>{var i=r(213);e.exports=function(e){return i(this.__data__,e)>-1}},6716:(e,t,r)=>{var i=r(213);e.exports=function(e,t){var r=this.__data__,n=i(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}},1120:(e,t,r)=>{var i=r(4329),n=r(4351),s=r(757);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(s||n),string:new i}}},8824:(e,t,r)=>{var i=r(2920);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},7978:(e,t,r)=>{var i=r(2920);e.exports=function(e){return i(this,e).get(e)}},5785:(e,t,r)=>{var i=r(2920);e.exports=function(e){return i(this,e).has(e)}},9125:(e,t,r)=>{var i=r(2920);e.exports=function(e,t){var r=i(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}},8329:(e,t,r)=>{var i=r(1124)(Object,"create");e.exports=i},3524:(e,t,r)=>{var i=r(7403)(Object.keys,Object);e.exports=i},4222:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},8229:(e,t,r)=>{e=r.nmd(e);var i=r(6241),n=t&&!t.nodeType&&t,s=n&&e&&!e.nodeType&&e,a=s&&s.exports===n&&i.process,o=function(){try{var e=s&&s.require&&s.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=o},4639:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7403:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},358:(e,t,r)=>{var i=r(6241),n="object"==typeof self&&self&&self.Object===Object&&self,s=i||n||Function("return this")();e.exports=s},6002:(e,t,r)=>{var i=r(4351);e.exports=function(){this.__data__=new i,this.size=0}},9084:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},1738:e=>{e.exports=function(e){return this.__data__.get(e)}},9633:e=>{e.exports=function(e){return this.__data__.has(e)}},3773:(e,t,r)=>{var i=r(4351),n=r(757),s=r(9701);e.exports=function(e,t){var r=this.__data__;if(r instanceof i){var a=r.__data__;if(!n||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new s(a)}return r.set(e,t),this.size=r.size,this}},4193:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},5375:(e,t,r)=>{var i=r(4337);e.exports=function(e){return i(e,4)}},9045:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5245:(e,t,r)=>{var i=r(5439),n=r(5819),s=Object.prototype,a=s.hasOwnProperty,o=s.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return n(e)&&a.call(e,"callee")&&!o.call(e,"callee")};e.exports=l},1241:e=>{var t=Array.isArray;e.exports=t},3902:(e,t,r)=>{var i=r(5426),n=r(9982);e.exports=function(e){return null!=e&&n(e.length)&&!i(e)}},6647:(e,t,r)=>{e=r.nmd(e);var i=r(358),n=r(401),s=t&&!t.nodeType&&t,a=s&&e&&!e.nodeType&&e,o=a&&a.exports===s?i.Buffer:void 0,l=(o?o.isBuffer:void 0)||n;e.exports=l},5426:(e,t,r)=>{var i=r(436),n=r(2901);e.exports=function(e){if(!n(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},9982:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},8852:(e,t,r)=>{var i=r(5863),n=r(6753),s=r(8229),a=s&&s.isMap,o=a?n(a):i;e.exports=o},2901:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5819:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3177:(e,t,r)=>{var i=r(436),n=r(428),s=r(5819),a=Function.prototype,o=Object.prototype,l=a.toString,c=o.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!s(e)||"[object Object]"!=i(e))return!1;var t=n(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==u}},7832:(e,t,r)=>{var i=r(9853),n=r(6753),s=r(8229),a=s&&s.isRegExp,o=a?n(a):i;e.exports=o},1338:(e,t,r)=>{var i=r(8461),n=r(6753),s=r(8229),a=s&&s.isSet,o=a?n(a):i;e.exports=o},43:(e,t,r)=>{var i=r(2376),n=r(6753),s=r(8229),a=s&&s.isTypedArray,o=a?n(a):i;e.exports=o},5901:(e,t,r)=>{var i=r(8962),n=r(8349),s=r(3902);e.exports=function(e){return s(e)?i(e):n(e)}},7258:(e,t,r)=>{var i=r(8962),n=r(4665),s=r(3902);e.exports=function(e){return s(e)?i(e,!0):n(e)}},4063:e=>{e.exports=function(){return[]}},401:e=>{e.exports=function(){return!1}},3018:(e,t,r)=>{"use strict";const i=r(5986),n=Symbol("max"),s=Symbol("length"),a=Symbol("lengthCalculator"),o=Symbol("allowStale"),l=Symbol("maxAge"),c=Symbol("dispose"),u=Symbol("noDisposeOnSet"),p=Symbol("lruList"),d=Symbol("cache"),h=Symbol("updateAgeOnGet"),naiveLength=()=>1;const get=(e,t,r)=>{const i=e[d].get(t);if(i){const t=i.value;if(isStale(e,t)){if(del(e,i),!e[o])return}else r&&(e[h]&&(i.value.now=Date.now()),e[p].unshiftNode(i));return t.value}},isStale=(e,t)=>{if(!t||!t.maxAge&&!e[l])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[l]&&r>e[l]},trim=e=>{if(e[s]>e[n])for(let t=e[p].tail;e[s]>e[n]&&null!==t;){const r=t.prev;del(e,t),t=r}},del=(e,t)=>{if(t){const r=t.value;e[c]&&e[c](r.key,r.value),e[s]-=r.length,e[d].delete(r.key),e[p].removeNode(t)}};class f{constructor(e,t,r,i,n){this.key=e,this.value=t,this.length=r,this.now=i,this.maxAge=n||0}}const forEachStep=(e,t,r,i)=>{let n=r.value;isStale(e,n)&&(del(e,r),e[o]||(n=void 0)),n&&t.call(i,n.value,n.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[n]=e.max||1/0;const t=e.length||naiveLength;if(this[a]="function"!=typeof t?naiveLength:t,this[o]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[c]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[h]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[n]=e||1/0,trim(this)}get max(){return this[n]}set allowStale(e){this[o]=!!e}get allowStale(){return this[o]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[l]=e,trim(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=naiveLength),e!==this[a]&&(this[a]=e,this[s]=0,this[p].forEach((e=>{e.length=this[a](e.value,e.key),this[s]+=e.length}))),trim(this)}get lengthCalculator(){return this[a]}get length(){return this[s]}get itemCount(){return this[p].length}rforEach(e,t){t=t||this;for(let r=this[p].tail;null!==r;){const i=r.prev;forEachStep(this,e,r,t),r=i}}forEach(e,t){t=t||this;for(let r=this[p].head;null!==r;){const i=r.next;forEachStep(this,e,r,t),r=i}}keys(){return this[p].toArray().map((e=>e.key))}values(){return this[p].toArray().map((e=>e.value))}reset(){this[c]&&this[p]&&this[p].length&&this[p].forEach((e=>this[c](e.key,e.value))),this[d]=new Map,this[p]=new i,this[s]=0}dump(){return this[p].map((e=>!isStale(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[p]}set(e,t,r){if((r=r||this[l])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const i=r?Date.now():0,o=this[a](t,e);if(this[d].has(e)){if(o>this[n])return del(this,this[d].get(e)),!1;const a=this[d].get(e).value;return this[c]&&(this[u]||this[c](e,a.value)),a.now=i,a.maxAge=r,a.value=t,this[s]+=o-a.length,a.length=o,this.get(e),trim(this),!0}const h=new f(e,t,o,i,r);return h.length>this[n]?(this[c]&&this[c](e,t),!1):(this[s]+=h.length,this[p].unshift(h),this[d].set(e,this[p].head),trim(this),!0)}has(e){if(!this[d].has(e))return!1;const t=this[d].get(e).value;return!isStale(this,t)}get(e){return get(this,e,!0)}peek(e){return get(this,e,!1)}pop(){const e=this[p].tail;return e?(del(this,e),e.value):null}del(e){del(this,this[d].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const i=e[r],n=i.e||0;if(0===n)this.set(i.k,i.v);else{const e=n-t;e>0&&this.set(i.k,i.v,e)}}}prune(){this[d].forEach(((e,t)=>get(this,t,!1)))}}},1331:e=>{var t=1e3,r=60*t,i=60*r,n=24*i,s=7*n,a=365.25*n;function plural(e,t,r,i){var n=t>=1.5*r;return Math.round(e/r)+" "+i+(n?"s":"")}e.exports=function(e,o){o=o||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var o=/^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!o)return;var l=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*a;case"weeks":case"week":case"w":return l*s;case"days":case"day":case"d":return l*n;case"hours":case"hour":case"hrs":case"hr":case"h":return l*i;case"minutes":case"minute":case"mins":case"min":case"m":return l*r;case"seconds":case"second":case"secs":case"sec":case"s":return l*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(e);if("number"===l&&isFinite(e))return o.long?function(e){var s=Math.abs(e);if(s>=n)return plural(e,s,n,"day");if(s>=i)return plural(e,s,i,"hour");if(s>=r)return plural(e,s,r,"minute");if(s>=t)return plural(e,s,t,"second");return e+" ms"}(e):function(e){var s=Math.abs(e);if(s>=n)return Math.round(e/n)+"d";if(s>=i)return Math.round(e/i)+"h";if(s>=r)return Math.round(e/r)+"m";if(s>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},397:e=>{var t,r,i=e.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(t===setTimeout)return setTimeout(e,0);if((t===defaultSetTimout||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){t=defaultSetTimout}try{r="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){r=defaultClearTimeout}}();var n,s=[],a=!1,o=-1;function cleanUpNextTick(){a&&n&&(a=!1,n.length?s=n.concat(s):o=-1,s.length&&drainQueue())}function drainQueue(){if(!a){var e=runTimeout(cleanUpNextTick);a=!0;for(var t=s.length;t;){for(n=s,s=[];++o<t;)n&&n[o].run();o=-1,t=s.length}n=null,a=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===defaultClearTimeout||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];s.push(new Item(e,t)),1!==s.length||a||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=noop,i.addListener=noop,i.once=noop,i.off=noop,i.removeListener=noop,i.removeAllListeners=noop,i.emit=noop,i.prependListener=noop,i.prependOnceListener=noop,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},6651:(e,t)=>{t.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 r=/^(?:([\\w+\\-.]+):)?\\/\\/(?:(\\w+:\\w+)@)?([\\w.-]*)(?::(\\d+))?(.*)$/,i=/^data:.+\\,.+$/;function urlParse(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function urlGenerate(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}t.urlParse=urlParse,t.urlGenerate=urlGenerate;var n,s,a=(n=function(e){var r=e,i=urlParse(e);if(i){if(!i.path)return e;r=i.path}for(var n=t.isAbsolute(r),s=[],a=0,o=0;;){if(a=o,-1===(o=r.indexOf("/",a))){s.push(r.slice(a));break}for(s.push(r.slice(a,o));o<r.length&&"/"===r[o];)o++}var l,c=0;for(o=s.length-1;o>=0;o--)"."===(l=s[o])?s.splice(o,1):".."===l?c++:c>0&&(""===l?(s.splice(o+1,c),c=0):(s.splice(o,2),c--));return""===(r=s.join("/"))&&(r=n?"/":"."),i?(i.path=r,urlGenerate(i)):r},s=[],function(e){for(var t=0;t<s.length;t++)if(s[t].input===e){var r=s[0];return s[0]=s[t],s[t]=r,s[0].result}var i=n(e);return s.unshift({input:e,result:i}),s.length>32&&s.pop(),i});function join(e,t){""===e&&(e="."),""===t&&(t=".");var r=urlParse(t),n=urlParse(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),urlGenerate(r);if(r||t.match(i))return t;if(n&&!n.host&&!n.path)return n.host=t,urlGenerate(n);var s="/"===t.charAt(0)?t:a(e.replace(/\\/+$/,"")+"/"+t);return n?(n.path=s,urlGenerate(n)):s}t.normalize=a,t.join=join,t.isAbsolute=function(e){return"/"===e.charAt(0)||r.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var i=e.lastIndexOf("/");if(i<0)return t;if((e=e.slice(0,i)).match(/^([^\\/]+:\\/)?\\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var o=!("__proto__"in Object.create(null));function identity(e){return e}function isProtoString(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 strcmp(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=o?identity:function(e){return isProtoString(e)?"$"+e:e},t.fromSetString=o?identity:function(e){return isProtoString(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var i=strcmp(e.source,t.source);return 0!==i||0!==(i=e.originalLine-t.originalLine)||0!==(i=e.originalColumn-t.originalColumn)||r||0!==(i=e.generatedColumn-t.generatedColumn)||0!==(i=e.generatedLine-t.generatedLine)?i:strcmp(e.name,t.name)},t.compareByOriginalPositionsNoSource=function(e,t,r){var i;return 0!==(i=e.originalLine-t.originalLine)||0!==(i=e.originalColumn-t.originalColumn)||r||0!==(i=e.generatedColumn-t.generatedColumn)||0!==(i=e.generatedLine-t.generatedLine)?i:strcmp(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,r){var i=e.generatedLine-t.generatedLine;return 0!==i||0!==(i=e.generatedColumn-t.generatedColumn)||r||0!==(i=strcmp(e.source,t.source))||0!==(i=e.originalLine-t.originalLine)||0!==(i=e.originalColumn-t.originalColumn)?i:strcmp(e.name,t.name)},t.compareByGeneratedPositionsDeflatedNoLine=function(e,t,r){var i=e.generatedColumn-t.generatedColumn;return 0!==i||r||0!==(i=strcmp(e.source,t.source))||0!==(i=e.originalLine-t.originalLine)||0!==(i=e.originalColumn-t.originalColumn)?i:strcmp(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=strcmp(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:strcmp(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\\)]}\'[^\\n]*\\n/,""))},t.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var i=urlParse(r);if(!i)throw new Error("sourceMapURL could not be parsed");if(i.path){var n=i.path.lastIndexOf("/");n>=0&&(i.path=i.path.substring(0,n+1))}t=join(urlGenerate(i),t)}return a(t)}},9009:(e,t,r)=>{var i=r(1403),n=Object.prototype.hasOwnProperty,s="undefined"!=typeof Map;function ArraySet(){this._array=[],this._set=s?new Map:Object.create(null)}ArraySet.fromArray=function(e,t){for(var r=new ArraySet,i=0,n=e.length;i<n;i++)r.add(e[i],t);return r},ArraySet.prototype.size=function(){return s?this._set.size:Object.getOwnPropertyNames(this._set).length},ArraySet.prototype.add=function(e,t){var r=s?e:i.toSetString(e),a=s?this.has(e):n.call(this._set,r),o=this._array.length;a&&!t||this._array.push(e),a||(s?this._set.set(e,o):this._set[r]=o)},ArraySet.prototype.has=function(e){if(s)return this._set.has(e);var t=i.toSetString(e);return n.call(this._set,t)},ArraySet.prototype.indexOf=function(e){if(s){var t=this._set.get(e);if(t>=0)return t}else{var r=i.toSetString(e);if(n.call(this._set,r))return this._set[r]}throw new Error(\'"\'+e+\'" is not in the set.\')},ArraySet.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},ArraySet.prototype.toArray=function(){return this._array.slice()},t.I=ArraySet},6202:(e,t,r)=>{var i=r(1313);t.encode=function(e){var t,r="",n=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&n,(n>>>=5)>0&&(t|=32),r+=i.encode(t)}while(n>0);return r},t.decode=function(e,t,r){var n,s,a,o,l=e.length,c=0,u=0;do{if(t>=l)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(s=i.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));n=!!(32&s),c+=(s&=31)<<u,u+=5}while(n);r.value=(o=(a=c)>>1,1==(1&a)?-o:o),r.rest=t}},1313:(e,t)=>{var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<r.length)return r[e];throw new TypeError("Must be between 0 and 63: "+e)},t.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}},2917:(e,t)=>{function recursiveSearch(e,r,i,n,s,a){var o=Math.floor((r-e)/2)+e,l=s(i,n[o],!0);return 0===l?o:l>0?r-o>1?recursiveSearch(o,r,i,n,s,a):a==t.LEAST_UPPER_BOUND?r<n.length?r:-1:o:o-e>1?recursiveSearch(e,o,i,n,s,a):a==t.LEAST_UPPER_BOUND?o:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,i,n){if(0===r.length)return-1;var s=recursiveSearch(-1,r.length,e,r,i,n||t.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===i(r[s],r[s-1],!0);)--s;return s}},3223:(e,t,r)=>{var i=r(1403);function MappingList(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},MappingList.prototype.add=function(e){var t,r,n,s,a,o;t=this._last,r=e,n=t.generatedLine,s=r.generatedLine,a=t.generatedColumn,o=r.generatedColumn,s>n||s==n&&o>=a||i.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},MappingList.prototype.toArray=function(){return this._sorted||(this._array.sort(i.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.H=MappingList},5776:(e,t)=>{function swap(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function doQuickSort(e,t,r,i){if(r<i){var n=r-1;swap(e,(l=r,c=i,Math.round(l+Math.random()*(c-l))),i);for(var s=e[i],a=r;a<i;a++)t(e[a],s)<=0&&swap(e,n+=1,a);swap(e,n+1,a);var o=n+1;doQuickSort(e,t,r,o-1),doQuickSort(e,t,o+1,i)}var l,c}t.U=function(e,t){doQuickSort(e,t,0,e.length-1)}},403:(e,t,r)=>{var i=r(1403),n=r(2917),s=r(9009).I,a=r(6202),o=r(5776).U;function SourceMapConsumer(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\\)\\]\\}\'/,""))),null!=t.sections?new IndexedSourceMapConsumer(t):new BasicSourceMapConsumer(t)}function BasicSourceMapConsumer(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\\)\\]\\}\'/,"")));var r=i.getArg(t,"version"),n=i.getArg(t,"sources"),a=i.getArg(t,"names",[]),o=i.getArg(t,"sourceRoot",null),l=i.getArg(t,"sourcesContent",null),c=i.getArg(t,"mappings"),u=i.getArg(t,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);n=n.map(String).map(i.normalize).map((function(e){return o&&i.isAbsolute(o)&&i.isAbsolute(e)?i.relative(o,e):e})),this._names=s.fromArray(a.map(String),!0),this._sources=s.fromArray(n,!0),this.sourceRoot=o,this.sourcesContent=l,this._mappings=c,this.file=u}function Mapping(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function IndexedSourceMapConsumer(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\\)\\]\\}\'/,"")));var r=i.getArg(t,"version"),n=i.getArg(t,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new s,this._names=new s;var a={line:-1,column:0};this._sections=n.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=i.getArg(e,"offset"),r=i.getArg(t,"line"),n=i.getArg(t,"column");if(r<a.line||r===a.line&&n<a.column)throw new Error("Section offsets must be ordered and non-overlapping.");return a=t,{generatedOffset:{generatedLine:r+1,generatedColumn:n+1},consumer:new SourceMapConsumer(i.getArg(e,"map"))}}))}SourceMapConsumer.fromSourceMap=function(e){return BasicSourceMapConsumer.fromSourceMap(e)},SourceMapConsumer.prototype._version=3,SourceMapConsumer.prototype.__generatedMappings=null,Object.defineProperty(SourceMapConsumer.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),SourceMapConsumer.prototype.__originalMappings=null,Object.defineProperty(SourceMapConsumer.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),SourceMapConsumer.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return";"===r||","===r},SourceMapConsumer.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},SourceMapConsumer.GENERATED_ORDER=1,SourceMapConsumer.ORIGINAL_ORDER=2,SourceMapConsumer.GREATEST_LOWER_BOUND=1,SourceMapConsumer.LEAST_UPPER_BOUND=2,SourceMapConsumer.prototype.eachMapping=function(e,t,r){var n,s=t||null;switch(r||SourceMapConsumer.GENERATED_ORDER){case SourceMapConsumer.GENERATED_ORDER:n=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:n=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;n.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=a&&(t=i.join(a,t)),{source:t,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)},SourceMapConsumer.prototype.allGeneratedPositionsFor=function(e){var t=i.getArg(e,"line"),r={source:i.getArg(e,"source"),originalLine:t,originalColumn:i.getArg(e,"column",0)};if(null!=this.sourceRoot&&(r.source=i.relative(this.sourceRoot,r.source)),!this._sources.has(r.source))return[];r.source=this._sources.indexOf(r.source);var s=[],a=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",i.compareByOriginalPositions,n.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:i.getArg(o,"generatedLine",null),column:i.getArg(o,"generatedColumn",null),lastColumn:i.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++a];else for(var c=o.originalColumn;o&&o.originalLine===t&&o.originalColumn==c;)s.push({line:i.getArg(o,"generatedLine",null),column:i.getArg(o,"generatedColumn",null),lastColumn:i.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++a]}return s},t.SourceMapConsumer=SourceMapConsumer,BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype),BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer,BasicSourceMapConsumer.fromSourceMap=function(e){var t=Object.create(BasicSourceMapConsumer.prototype),r=t._names=s.fromArray(e._names.toArray(),!0),n=t._sources=s.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var a=e._mappings.toArray().slice(),l=t.__generatedMappings=[],c=t.__originalMappings=[],u=0,p=a.length;u<p;u++){var d=a[u],h=new Mapping;h.generatedLine=d.generatedLine,h.generatedColumn=d.generatedColumn,d.source&&(h.source=n.indexOf(d.source),h.originalLine=d.originalLine,h.originalColumn=d.originalColumn,d.name&&(h.name=r.indexOf(d.name)),c.push(h)),l.push(h)}return o(t.__originalMappings,i.compareByOriginalPositions),t},BasicSourceMapConsumer.prototype._version=3,Object.defineProperty(BasicSourceMapConsumer.prototype,"sources",{get:function(){return this._sources.toArray().map((function(e){return null!=this.sourceRoot?i.join(this.sourceRoot,e):e}),this)}}),BasicSourceMapConsumer.prototype._parseMappings=function(e,t){for(var r,n,s,l,c,u=1,p=0,d=0,h=0,f=0,m=0,y=e.length,T=0,g={},b={},S=[],x=[];T<y;)if(";"===e.charAt(T))u++,T++,p=0;else if(","===e.charAt(T))T++;else{for((r=new Mapping).generatedLine=u,l=T;l<y&&!this._charIsMappingSeparator(e,l);l++);if(s=g[n=e.slice(T,l)])T+=n.length;else{for(s=[];T<l;)a.decode(e,T,b),c=b.value,T=b.rest,s.push(c);if(2===s.length)throw new Error("Found a source, but no line and column");if(3===s.length)throw new Error("Found a source and line, but no column");g[n]=s}r.generatedColumn=p+s[0],p=r.generatedColumn,s.length>1&&(r.source=f+s[1],f+=s[1],r.originalLine=d+s[2],d=r.originalLine,r.originalLine+=1,r.originalColumn=h+s[3],h=r.originalColumn,s.length>4&&(r.name=m+s[4],m+=s[4])),x.push(r),"number"==typeof r.originalLine&&S.push(r)}o(x,i.compareByGeneratedPositionsDeflated),this.__generatedMappings=x,o(S,i.compareByOriginalPositions),this.__originalMappings=S},BasicSourceMapConsumer.prototype._findMapping=function(e,t,r,i,s,a){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return n.search(e,t,s,a)},BasicSourceMapConsumer.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}},BasicSourceMapConsumer.prototype.originalPositionFor=function(e){var t={generatedLine:i.getArg(e,"line"),generatedColumn:i.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",i.compareByGeneratedPositionsDeflated,i.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(r>=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var s=i.getArg(n,"source",null);null!==s&&(s=this._sources.at(s),null!=this.sourceRoot&&(s=i.join(this.sourceRoot,s)));var a=i.getArg(n,"name",null);return null!==a&&(a=this._names.at(a)),{source:s,line:i.getArg(n,"originalLine",null),column:i.getArg(n,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},BasicSourceMapConsumer.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=i.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var r;if(null!=this.sourceRoot&&(r=i.urlParse(this.sourceRoot))){var n=e.replace(/^file:\\/\\//,"");if("file"==r.scheme&&this._sources.has(n))return this.sourcesContent[this._sources.indexOf(n)];if((!r.path||"/"==r.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error(\'"\'+e+\'" is not in the SourceMap.\')},BasicSourceMapConsumer.prototype.generatedPositionFor=function(e){var t=i.getArg(e,"source");if(null!=this.sourceRoot&&(t=i.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var r={source:t=this._sources.indexOf(t),originalLine:i.getArg(e,"line"),originalColumn:i.getArg(e,"column")},n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",i.compareByOriginalPositions,i.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(n>=0){var s=this._originalMappings[n];if(s.source===r.source)return{line:i.getArg(s,"generatedLine",null),column:i.getArg(s,"generatedColumn",null),lastColumn:i.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype),IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer,IndexedSourceMapConsumer.prototype._version=3,Object.defineProperty(IndexedSourceMapConsumer.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}}),IndexedSourceMapConsumer.prototype.originalPositionFor=function(e){var t={generatedLine:i.getArg(e,"line"),generatedColumn:i.getArg(e,"column")},r=n.search(t,this._sections,(function(e,t){var r=e.generatedLine-t.generatedOffset.generatedLine;return r||e.generatedColumn-t.generatedOffset.generatedColumn})),s=this._sections[r];return s?s.consumer.originalPositionFor({line:t.generatedLine-(s.generatedOffset.generatedLine-1),column:t.generatedColumn-(s.generatedOffset.generatedLine===t.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},IndexedSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},IndexedSourceMapConsumer.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var i=this._sections[r].consumer.sourceContentFor(e,!0);if(i)return i}if(t)return null;throw new Error(\'"\'+e+\'" is not in the SourceMap.\')},IndexedSourceMapConsumer.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(-1!==r.consumer.sources.indexOf(i.getArg(e,"source"))){var n=r.consumer.generatedPositionFor(e);if(n)return{line:n.line+(r.generatedOffset.generatedLine-1),column:n.column+(r.generatedOffset.generatedLine===n.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},IndexedSourceMapConsumer.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var n=this._sections[r],s=n.consumer._generatedMappings,a=0;a<s.length;a++){var l=s[a],c=n.consumer._sources.at(l.source);null!==n.consumer.sourceRoot&&(c=i.join(n.consumer.sourceRoot,c)),this._sources.add(c),c=this._sources.indexOf(c);var u=n.consumer._names.at(l.name);this._names.add(u),u=this._names.indexOf(u);var p={source:c,generatedLine:l.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(n.generatedOffset.generatedLine===l.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:u};this.__generatedMappings.push(p),"number"==typeof p.originalLine&&this.__originalMappings.push(p)}o(this.__generatedMappings,i.compareByGeneratedPositionsDeflated),o(this.__originalMappings,i.compareByOriginalPositions)}},9160:(e,t,r)=>{var i=r(6202),n=r(1403),s=r(9009).I,a=r(3223).H;function SourceMapGenerator(e){e||(e={}),this._file=n.getArg(e,"file",null),this._sourceRoot=n.getArg(e,"sourceRoot",null),this._skipValidation=n.getArg(e,"skipValidation",!1),this._sources=new s,this._names=new s,this._mappings=new a,this._sourcesContents=null}SourceMapGenerator.prototype._version=3,SourceMapGenerator.fromSourceMap=function(e){var t=e.sourceRoot,r=new SourceMapGenerator({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=n.relative(t,i.source)),i.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(i.name=e.name)),r.addMapping(i)})),e.sources.forEach((function(t){var i=e.sourceContentFor(t);null!=i&&r.setSourceContent(t,i)})),r},SourceMapGenerator.prototype.addMapping=function(e){var t=n.getArg(e,"generated"),r=n.getArg(e,"original",null),i=n.getArg(e,"source",null),s=n.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,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!=r&&r.line,originalColumn:null!=r&&r.column,source:i,name:s})},SourceMapGenerator.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=n.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[n.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[n.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},SourceMapGenerator.prototype.applySourceMap=function(e,t,r){var i=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.\');i=e.file}var a=this._sourceRoot;null!=a&&(i=n.relative(a,i));var o=new s,l=new s;this._mappings.unsortedForEach((function(t){if(t.source===i&&null!=t.originalLine){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=s.source&&(t.source=s.source,null!=r&&(t.source=n.join(r,t.source)),null!=a&&(t.source=n.relative(a,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.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 i=e.sourceContentFor(t);null!=i&&(null!=r&&(t=n.join(r,t)),null!=a&&(t=n.relative(a,t)),this.setSourceContent(t,i))}),this)},SourceMapGenerator.prototype._validateMapping=function(e,t,r,i){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||i)&&!(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:i}))},SourceMapGenerator.prototype._serializeMappings=function(){for(var e,t,r,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="",(t=h[f]).generatedLine!==o)for(a=0;t.generatedLine!==o;)e+=";",o++;else if(f>0){if(!n.compareByGeneratedPositionsInflated(t,h[f-1]))continue;e+=","}e+=i.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(s=this._sources.indexOf(t.source),e+=i.encode(s-p),p=s,e+=i.encode(t.originalLine-1-c),c=t.originalLine-1,e+=i.encode(t.originalColumn-l),l=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=i.encode(r-u),u=r)),d+=e}return d},SourceMapGenerator.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=n.relative(t,e));var r=n.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},SourceMapGenerator.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},SourceMapGenerator.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=SourceMapGenerator},1539:(e,t,r)=>{var i=r(9160).SourceMapGenerator,n=r(1403),s=/(\\r?\\n)/,a="$$$isSourceNode$$$";function SourceNode(e,t,r,i,n){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==n?null:n,this[a]=!0,null!=i&&this.add(i)}SourceNode.fromStringWithSourceMap=function(e,t,r){var i=new SourceNode,a=e.split(s),o=0,shiftNextLine=function(){return getNextLine()+(getNextLine()||"");function getNextLine(){return o<a.length?a[o++]:void 0}},l=1,c=0,u=null;return t.eachMapping((function(e){if(null!==u){if(!(l<e.generatedLine)){var t=(r=a[o]).substr(0,e.generatedColumn-c);return a[o]=r.substr(e.generatedColumn-c),c=e.generatedColumn,addMappingWithCode(u,t),void(u=e)}addMappingWithCode(u,shiftNextLine()),l++,c=0}for(;l<e.generatedLine;)i.add(shiftNextLine()),l++;if(c<e.generatedColumn){var r=a[o];i.add(r.substr(0,e.generatedColumn)),a[o]=r.substr(e.generatedColumn),c=e.generatedColumn}u=e}),this),o<a.length&&(u&&addMappingWithCode(u,shiftNextLine()),i.add(a.splice(o).join(""))),t.sources.forEach((function(e){var s=t.sourceContentFor(e);null!=s&&(null!=r&&(e=n.join(r,e)),i.setSourceContent(e,s))})),i;function addMappingWithCode(e,t){if(null===e||void 0===e.source)i.add(t);else{var s=r?n.join(r,e.source):e.source;i.add(new SourceNode(e.originalLine,e.originalColumn,s,t,e.name))}}},SourceNode.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[a]&&"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},SourceNode.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[a]&&"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},SourceNode.prototype.walk=function(e){for(var t,r=0,i=this.children.length;r<i;r++)(t=this.children[r])[a]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},SourceNode.prototype.join=function(e){var t,r,i=this.children.length;if(i>0){for(t=[],r=0;r<i-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},SourceNode.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[a]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},SourceNode.prototype.setSourceContent=function(e,t){this.sourceContents[n.toSetString(e)]=t},SourceNode.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][a]&&this.children[t].walkSourceContents(e);var i=Object.keys(this.sourceContents);for(t=0,r=i.length;t<r;t++)e(n.fromSetString(i[t]),this.sourceContents[i[t]])},SourceNode.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},SourceNode.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new i(e),n=!1,s=null,a=null,o=null,l=null;return this.walk((function(e,i){t.code+=e,null!==i.source&&null!==i.line&&null!==i.column?(s===i.source&&a===i.line&&o===i.column&&l===i.name||r.addMapping({source:i.source,original:{line:i.line,column:i.column},generated:{line:t.line,column:t.column},name:i.name}),s=i.source,a=i.line,o=i.column,l=i.name,n=!0):n&&(r.addMapping({generated:{line:t.line,column:t.column}}),s=null,n=!1);for(var c=0,u=e.length;c<u;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===u?(s=null,n=!1):n&&r.addMapping({source:i.source,original:{line:i.line,column:i.column},generated:{line:t.line,column:t.column},name:i.name})):t.column++})),this.walkSourceContents((function(e,t){r.setSourceContent(e,t)})),{code:t.code,map:r}},t.SourceNode=SourceNode},1403:(e,t)=>{t.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 r=/^(?:([\\w+\\-.]+):)?\\/\\/(?:(\\w+:\\w+)@)?([\\w.]*)(?::(\\d+))?(\\S*)$/,i=/^data:.+\\,.+$/;function urlParse(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function urlGenerate(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 normalize(e){var r=e,i=urlParse(e);if(i){if(!i.path)return e;r=i.path}for(var n,s=t.isAbsolute(r),a=r.split(/\\/+/),o=0,l=a.length-1;l>=0;l--)"."===(n=a[l])?a.splice(l,1):".."===n?o++:o>0&&(""===n?(a.splice(l+1,o),o=0):(a.splice(l,2),o--));return""===(r=a.join("/"))&&(r=s?"/":"."),i?(i.path=r,urlGenerate(i)):r}t.urlParse=urlParse,t.urlGenerate=urlGenerate,t.normalize=normalize,t.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var r=urlParse(t),n=urlParse(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),urlGenerate(r);if(r||t.match(i))return t;if(n&&!n.host&&!n.path)return n.host=t,urlGenerate(n);var s="/"===t.charAt(0)?t:normalize(e.replace(/\\/+$/,"")+"/"+t);return n?(n.path=s,urlGenerate(n)):s},t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(r)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var i=e.lastIndexOf("/");if(i<0)return t;if((e=e.slice(0,i)).match(/^([^\\/]+:\\/)?\\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var n=!("__proto__"in Object.create(null));function identity(e){return e}function isProtoString(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 strcmp(e,t){return e===t?0:e>t?1:-1}t.toSetString=n?identity:function(e){return isProtoString(e)?"$"+e:e},t.fromSetString=n?identity:function(e){return isProtoString(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var i=e.source-t.source;return 0!==i||0!==(i=e.originalLine-t.originalLine)||0!==(i=e.originalColumn-t.originalColumn)||r||0!==(i=e.generatedColumn-t.generatedColumn)||0!==(i=e.generatedLine-t.generatedLine)?i:e.name-t.name},t.compareByGeneratedPositionsDeflated=function(e,t,r){var i=e.generatedLine-t.generatedLine;return 0!==i||0!==(i=e.generatedColumn-t.generatedColumn)||r||0!==(i=e.source-t.source)||0!==(i=e.originalLine-t.originalLine)||0!==(i=e.originalColumn-t.originalColumn)?i:e.name-t.name},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=strcmp(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:strcmp(e.name,t.name)}},9351:(e,t,r)=>{t.SourceMapGenerator=r(9160).SourceMapGenerator,t.SourceMapConsumer=r(403).SourceMapConsumer,t.SourceNode=r(1539).SourceNode},7356:function(e,t){var r,i,n;!function(s,a){"use strict";i=[],void 0===(n="function"==typeof(r=function(){function _isNumber(e){return!isNaN(parseFloat(e))&&isFinite(e)}function _capitalize(e){return e.charAt(0).toUpperCase()+e.substring(1)}function _getter(e){return function(){return this[e]}}var e=["isConstructor","isEval","isNative","isToplevel"],t=["columnNumber","lineNumber"],r=["fileName","functionName","source"],i=["args"],n=e.concat(t,r,i);function StackFrame(e){if(e)for(var t=0;t<n.length;t++)void 0!==e[n[t]]&&this["set"+_capitalize(n[t])](e[n[t]])}StackFrame.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof StackFrame)this.evalOrigin=e;else{if(!(e instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new StackFrame(e)}},toString:function(){var e=this.getFileName()||"",t=this.getLineNumber()||"",r=this.getColumnNumber()||"",i=this.getFunctionName()||"";return this.getIsEval()?e?"[eval] ("+e+":"+t+":"+r+")":"[eval]:"+t+":"+r:i?i+" ("+e+":"+t+":"+r+")":e+":"+t+":"+r}},StackFrame.fromString=function(e){var t=e.indexOf("("),r=e.lastIndexOf(")"),i=e.substring(0,t),n=e.substring(t+1,r).split(","),s=e.substring(r+1);if(0===s.indexOf("@"))var a=/@(.+?)(?::(\\d+))?(?::(\\d+))?$/.exec(s,""),o=a[1],l=a[2],c=a[3];return new StackFrame({functionName:i,args:n||void 0,fileName:o,lineNumber:l||void 0,columnNumber:c||void 0})};for(var s=0;s<e.length;s++)StackFrame.prototype["get"+_capitalize(e[s])]=_getter(e[s]),StackFrame.prototype["set"+_capitalize(e[s])]=function(e){return function(t){this[e]=Boolean(t)}}(e[s]);for(var a=0;a<t.length;a++)StackFrame.prototype["get"+_capitalize(t[a])]=_getter(t[a]),StackFrame.prototype["set"+_capitalize(t[a])]=function(e){return function(t){if(!_isNumber(t))throw new TypeError(e+" must be a Number");this[e]=Number(t)}}(t[a]);for(var o=0;o<r.length;o++)StackFrame.prototype["get"+_capitalize(r[o])]=_getter(r[o]),StackFrame.prototype["set"+_capitalize(r[o])]=function(e){return function(t){this[e]=String(t)}}(r[o]);return StackFrame})?r.apply(t,i):r)||(e.exports=n)}()},1138:e=>{"use strict";let t=null;function FastObject(e){if(null!==t&&(t.property,1)){const e=t;return t=FastObject.prototype=null,e}return t=FastObject.prototype=null==e?Object.create(null):e,new FastObject}FastObject(),e.exports=function(e){return FastObject(e)}},7533:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},5986:(e,t,r)=>{"use strict";function Yallist(e){var t=this;if(t instanceof Yallist||(t=new Yallist),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)t.push(arguments[r]);return t}function insert(e,t,r){var i=t===e.head?new Node(r,null,t,e):new Node(r,t,t.next,e);return null===i.next&&(e.tail=i),null===i.prev&&(e.head=i),e.length++,i}function push(e,t){e.tail=new Node(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function unshift(e,t){e.head=new Node(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Node(e,t,r,i){if(!(this instanceof Node))return new Node(e,t,r,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=Yallist,Yallist.Node=Node,Yallist.create=Yallist,Yallist.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},Yallist.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},Yallist.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},Yallist.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)push(this,arguments[e]);return this.length},Yallist.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)unshift(this,arguments[e]);return this.length},Yallist.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},Yallist.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},Yallist.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,i=0;null!==r;i++)e.call(t,r.value,i,this),r=r.next},Yallist.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,i=this.length-1;null!==r;i--)e.call(t,r.value,i,this),r=r.prev},Yallist.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},Yallist.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},Yallist.prototype.map=function(e,t){t=t||this;for(var r=new Yallist,i=this.head;null!==i;)r.push(e.call(t,i.value,this)),i=i.next;return r},Yallist.prototype.mapReverse=function(e,t){t=t||this;for(var r=new Yallist,i=this.tail;null!==i;)r.push(e.call(t,i.value,this)),i=i.prev;return r},Yallist.prototype.reduce=function(e,t){var r,i=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");i=this.head.next,r=this.head.value}for(var n=0;null!==i;n++)r=e(r,i.value,n),i=i.next;return r},Yallist.prototype.reduceReverse=function(e,t){var r,i=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");i=this.tail.prev,r=this.tail.value}for(var n=this.length-1;null!==i;n--)r=e(r,i.value,n),i=i.prev;return r},Yallist.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},Yallist.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},Yallist.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new Yallist;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,n=this.head;null!==n&&i<e;i++)n=n.next;for(;null!==n&&i<t;i++,n=n.next)r.push(n.value);return r},Yallist.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new Yallist;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,n=this.tail;null!==n&&i>t;i--)n=n.prev;for(;null!==n&&i>e;i--,n=n.prev)r.push(n.value);return r},Yallist.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,n=this.head;null!==n&&i<e;i++)n=n.next;var s=[];for(i=0;n&&i<t;i++)s.push(n.value),n=this.removeNode(n);null===n&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(i=0;i<r.length;i++)n=insert(this,n,r[i]);return s},Yallist.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=t,this.tail=e,this};try{r(7533)(Yallist)}catch(e){}},8404:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const r=/^[ \\t]+$/;t.default=class{constructor(e){this._map=null,this._buf=[],this._last="",this._queue=[],this._position={line:1,column:0},this._sourcePosition={identifierName:null,line:null,column:null,filename:null},this._disallowedPop=null,this._map=e}get(){this._flush();const e=this._map,t={code:this._buf.join("").trimRight(),map:null,rawMappings:null==e?void 0:e.getRawMappings()};return e&&Object.defineProperty(t,"map",{configurable:!0,enumerable:!0,get(){return this.map=e.get()},set(e){Object.defineProperty(this,"map",{value:e,writable:!0})}}),t}append(e){this._flush();const{line:t,column:r,filename:i,identifierName:n,force:s}=this._sourcePosition;this._append(e,t,r,n,i,s)}queue(e){if("\\n"===e)for(;this._queue.length>0&&r.test(this._queue[0][0]);)this._queue.shift();const{line:t,column:i,filename:n,identifierName:s,force:a}=this._sourcePosition;this._queue.unshift([e,t,i,s,n,a])}_flush(){let e;for(;e=this._queue.pop();)this._append(...e)}_append(e,t,r,i,n,s){this._buf.push(e),this._last=e[e.length-1];let a=e.indexOf("\\n"),o=0;for(0!==a&&this._mark(t,r,i,n,s);-1!==a;)this._position.line++,this._position.column=0,o=a+1,o<e.length&&this._mark(++t,0,i,n,s),a=e.indexOf("\\n",o);this._position.column+=e.length-o}_mark(e,t,r,i,n){var s;null==(s=this._map)||s.mark(this._position.line,this._position.column,e,t,r,i,n)}removeTrailingNewline(){this._queue.length>0&&"\\n"===this._queue[0][0]&&this._queue.shift()}removeLastSemicolon(){this._queue.length>0&&";"===this._queue[0][0]&&this._queue.shift()}endsWith(e){if(1===e.length){let t;if(this._queue.length>0){const e=this._queue[0][0];t=e[e.length-1]}else t=this._last;return t===e}const t=this._last+this._queue.reduce(((e,t)=>t[0]+e),"");return e.length<=t.length&&t.slice(-e.length)===e}hasContent(){return this._queue.length>0||!!this._last}exactSource(e,t){this.source("start",e,!0),t(),this.source("end",e),this._disallowPop("start",e)}source(e,t,r){e&&!t||this._normalizePosition(e,t,this._sourcePosition,r)}withSource(e,t,r){if(!this._map)return r();const i=this._sourcePosition.line,n=this._sourcePosition.column,s=this._sourcePosition.filename,a=this._sourcePosition.identifierName;this.source(e,t),r(),this._sourcePosition.force&&this._sourcePosition.line===i&&this._sourcePosition.column===n&&this._sourcePosition.filename===s||this._disallowedPop&&this._disallowedPop.line===i&&this._disallowedPop.column===n&&this._disallowedPop.filename===s||(this._sourcePosition.line=i,this._sourcePosition.column=n,this._sourcePosition.filename=s,this._sourcePosition.identifierName=a,this._sourcePosition.force=!1,this._disallowedPop=null)}_disallowPop(e,t){e&&!t||(this._disallowedPop=this._normalizePosition(e,t))}_normalizePosition(e,t,r,i){const n=t?t[e]:null;void 0===r&&(r={identifierName:null,line:null,column:null,filename:null,force:!1});const s=r.line,a=r.column,o=r.filename;return r.identifierName="start"===e&&(null==t?void 0:t.identifierName)||null,r.line=null==n?void 0:n.line,r.column=null==n?void 0:n.column,r.filename=null==t?void 0:t.filename,(i||r.line!==s||r.column!==a||r.filename!==o)&&(r.force=i),r}getCurrentColumn(){const e=this._queue.reduce(((e,t)=>t[0]+e),""),t=e.lastIndexOf("\\n");return-1===t?this._position.column+e.length:e.length-1-t}getCurrentLine(){const e=this._queue.reduce(((e,t)=>t[0]+e),"");let t=0;for(let r=0;r<e.length;r++)"\\n"===e[r]&&t++;return this._position.line+t}}},3762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.File=function(e){e.program&&this.print(e.program.interpreter,e);this.print(e.program,e)},t.Program=function(e){this.printInnerComments(e,!1),this.printSequence(e.directives,e),e.directives&&e.directives.length&&this.newline();this.printSequence(e.body,e)},t.BlockStatement=function(e){var t;this.token("{"),this.printInnerComments(e);const r=null==(t=e.directives)?void 0:t.length;e.body.length||r?(this.newline(),this.printSequence(e.directives,e,{indent:!0}),r&&this.newline(),this.printSequence(e.body,e,{indent:!0}),this.removeTrailingNewline(),this.source("end",e.loc),this.endsWith("\\n")||this.newline(),this.rightBrace()):(this.source("end",e.loc),this.token("}"))},t.Noop=function(){},t.Directive=function(e){this.print(e.value,e),this.semicolon()},t.DirectiveLiteral=function(e){const t=this.getPossibleRaw(e);if(null!=t)return void this.token(t);const{value:n}=e;if(i.test(n)){if(r.test(n))throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");this.token(`\'${n}\'`)}else this.token(`"${n}"`)},t.InterpreterDirective=function(e){this.token(`#!${e.value}\\n`)},t.Placeholder=function(e){this.token("%%"),this.print(e.name),this.token("%%"),"Statement"===e.expectedNode&&this.semicolon()};const r=/(?:^|[^\\\\])(?:\\\\\\\\)*\'/,i=/(?:^|[^\\\\])(?:\\\\\\\\)*"/},9570:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClassExpression=t.ClassDeclaration=function(e,t){this.format.decoratorsBeforeExport&&(i.isExportDefaultDeclaration(t)||i.isExportNamedDeclaration(t))||this.printJoin(e.decorators,e);e.declare&&(this.word("declare"),this.space());e.abstract&&(this.word("abstract"),this.space());this.word("class"),e.id&&(this.space(),this.print(e.id,e));this.print(e.typeParameters,e),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass,e),this.print(e.superTypeParameters,e));e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e));this.space(),this.print(e.body,e)},t.ClassBody=function(e){this.token("{"),this.printInnerComments(e),0===e.body.length?this.token("}"):(this.newline(),this.indent(),this.printSequence(e.body,e),this.dedent(),this.endsWith("\\n")||this.newline(),this.rightBrace())},t.ClassProperty=function(e){this.printJoin(e.decorators,e),this.tsPrintClassMemberModifiers(e,!0),e.computed?(this.token("["),this.print(e.key,e),this.token("]")):(this._variance(e),this.print(e.key,e));e.optional&&this.token("?");e.definite&&this.token("!");this.print(e.typeAnnotation,e),e.value&&(this.space(),this.token("="),this.space(),this.print(e.value,e));this.semicolon()},t.ClassPrivateProperty=function(e){this.printJoin(e.decorators,e),e.static&&(this.word("static"),this.space());this.print(e.key,e),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.token("="),this.space(),this.print(e.value,e));this.semicolon()},t.ClassMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body,e)},t.ClassPrivateMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body,e)},t._classMethodHead=function(e){this.printJoin(e.decorators,e),this.tsPrintClassMemberModifiers(e,!1),this._methodHead(e)},t.StaticBlock=function(e){this.word("static"),this.space(),this.token("{"),0===e.body.length?this.token("}"):(this.newline(),this.printSequence(e.body,e,{indent:!0}),this.rightBrace())};var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}},9901:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnaryExpression=function(e){"void"===e.operator||"delete"===e.operator||"typeof"===e.operator||"throw"===e.operator?(this.word(e.operator),this.space()):this.token(e.operator);this.print(e.argument,e)},t.DoExpression=function(e){this.word("do"),this.space(),this.print(e.body,e)},t.ParenthesizedExpression=function(e){this.token("("),this.print(e.expression,e),this.token(")")},t.UpdateExpression=function(e){e.prefix?(this.token(e.operator),this.print(e.argument,e)):(this.startTerminatorless(!0),this.print(e.argument,e),this.endTerminatorless(),this.token(e.operator))},t.ConditionalExpression=function(e){this.print(e.test,e),this.space(),this.token("?"),this.space(),this.print(e.consequent,e),this.space(),this.token(":"),this.space(),this.print(e.alternate,e)},t.NewExpression=function(e,t){if(this.word("new"),this.space(),this.print(e.callee,e),this.format.minified&&0===e.arguments.length&&!e.optional&&!i.isCallExpression(t,{callee:e})&&!i.isMemberExpression(t)&&!i.isNewExpression(t))return;this.print(e.typeArguments,e),this.print(e.typeParameters,e),e.optional&&this.token("?.");this.token("("),this.printList(e.arguments,e),this.token(")")},t.SequenceExpression=function(e){this.printList(e.expressions,e)},t.ThisExpression=function(){this.word("this")},t.Super=function(){this.word("super")},t.Decorator=function(e){this.token("@"),this.print(e.expression,e),this.newline()},t.OptionalMemberExpression=function(e){if(this.print(e.object,e),!e.computed&&i.isMemberExpression(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;i.isLiteral(e.property)&&"number"==typeof e.property.value&&(t=!0);e.optional&&this.token("?.");t?(this.token("["),this.print(e.property,e),this.token("]")):(e.optional||this.token("."),this.print(e.property,e))},t.OptionalCallExpression=function(e){this.print(e.callee,e),this.print(e.typeArguments,e),this.print(e.typeParameters,e),e.optional&&this.token("?.");this.token("("),this.printList(e.arguments,e),this.token(")")},t.CallExpression=function(e){this.print(e.callee,e),this.print(e.typeArguments,e),this.print(e.typeParameters,e),this.token("("),this.printList(e.arguments,e),this.token(")")},t.Import=function(){this.word("import")},t.EmptyStatement=function(){this.semicolon(!0)},t.ExpressionStatement=function(e){this.print(e.expression,e),this.semicolon()},t.AssignmentPattern=function(e){this.print(e.left,e),e.left.optional&&this.token("?");this.print(e.left.typeAnnotation,e),this.space(),this.token("="),this.space(),this.print(e.right,e)},t.LogicalExpression=t.BinaryExpression=t.AssignmentExpression=function(e,t){const r=this.inForStatementInitCounter&&"in"===e.operator&&!n.needsParens(e,t);r&&this.token("(");this.print(e.left,e),this.space(),"in"===e.operator||"instanceof"===e.operator?this.word(e.operator):this.token(e.operator);this.space(),this.print(e.right,e),r&&this.token(")")},t.BindExpression=function(e){this.print(e.object,e),this.token("::"),this.print(e.callee,e)},t.MemberExpression=function(e){if(this.print(e.object,e),!e.computed&&i.isMemberExpression(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;i.isLiteral(e.property)&&"number"==typeof e.property.value&&(t=!0);t?(this.token("["),this.print(e.property,e),this.token("]")):(this.token("."),this.print(e.property,e))},t.MetaProperty=function(e){this.print(e.meta,e),this.token("."),this.print(e.property,e)},t.PrivateName=function(e){this.token("#"),this.print(e.id,e)},t.V8IntrinsicIdentifier=function(e){this.token("%"),this.word(e.name)},t.AwaitExpression=t.YieldExpression=void 0;var i=_interopRequireWildcard(r(1710)),n=_interopRequireWildcard(r(944));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}function buildYieldAwait(e){return function(t){if(this.word(e),t.delegate&&this.token("*"),t.argument){this.space();const e=this.startTerminatorless();this.print(t.argument,t),this.endTerminatorless(e)}}}const s=buildYieldAwait("yield");t.YieldExpression=s;const a=buildYieldAwait("await");t.AwaitExpression=a},308:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnyTypeAnnotation=function(){this.word("any")},t.ArrayTypeAnnotation=function(e){this.print(e.elementType,e),this.token("["),this.token("]")},t.BooleanTypeAnnotation=function(){this.word("boolean")},t.BooleanLiteralTypeAnnotation=function(e){this.word(e.value?"true":"false")},t.NullLiteralTypeAnnotation=function(){this.word("null")},t.DeclareClass=function(e,t){i.isDeclareExportDeclaration(t)||(this.word("declare"),this.space());this.word("class"),this.space(),this._interfaceish(e)},t.DeclareFunction=function(e,t){i.isDeclareExportDeclaration(t)||(this.word("declare"),this.space());this.word("function"),this.space(),this.print(e.id,e),this.print(e.id.typeAnnotation.typeAnnotation,e),e.predicate&&(this.space(),this.print(e.predicate,e));this.semicolon()},t.InferredPredicate=function(){this.token("%"),this.word("checks")},t.DeclaredPredicate=function(e){this.token("%"),this.word("checks"),this.token("("),this.print(e.value,e),this.token(")")},t.DeclareInterface=function(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e)},t.DeclareModule=function(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id,e),this.space(),this.print(e.body,e)},t.DeclareModuleExports=function(e){this.word("declare"),this.space(),this.word("module"),this.token("."),this.word("exports"),this.print(e.typeAnnotation,e)},t.DeclareTypeAlias=function(e){this.word("declare"),this.space(),this.TypeAlias(e)},t.DeclareOpaqueType=function(e,t){i.isDeclareExportDeclaration(t)||(this.word("declare"),this.space());this.OpaqueType(e)},t.DeclareVariable=function(e,t){i.isDeclareExportDeclaration(t)||(this.word("declare"),this.space());this.word("var"),this.space(),this.print(e.id,e),this.print(e.id.typeAnnotation,e),this.semicolon()},t.DeclareExportDeclaration=function(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space());FlowExportDeclaration.apply(this,arguments)},t.DeclareExportAllDeclaration=function(){this.word("declare"),this.space(),n.ExportAllDeclaration.apply(this,arguments)},t.EnumDeclaration=function(e){const{id:t,body:r}=e;this.word("enum"),this.space(),this.print(t,e),this.print(r,e)},t.EnumBooleanBody=function(e){const{explicitType:t}=e;enumExplicitType(this,"boolean",t),enumBody(this,e)},t.EnumNumberBody=function(e){const{explicitType:t}=e;enumExplicitType(this,"number",t),enumBody(this,e)},t.EnumStringBody=function(e){const{explicitType:t}=e;enumExplicitType(this,"string",t),enumBody(this,e)},t.EnumSymbolBody=function(e){enumExplicitType(this,"symbol",!0),enumBody(this,e)},t.EnumDefaultedMember=function(e){const{id:t}=e;this.print(t,e),this.token(",")},t.EnumBooleanMember=function(e){enumInitializedMember(this,e)},t.EnumNumberMember=function(e){enumInitializedMember(this,e)},t.EnumStringMember=function(e){enumInitializedMember(this,e)},t.ExistsTypeAnnotation=function(){this.token("*")},t.FunctionTypeAnnotation=function(e,t){this.print(e.typeParameters,e),this.token("("),this.printList(e.params,e),e.rest&&(e.params.length&&(this.token(","),this.space()),this.token("..."),this.print(e.rest,e));this.token(")"),"ObjectTypeCallProperty"===t.type||"DeclareFunction"===t.type||"ObjectTypeProperty"===t.type&&t.method?this.token(":"):(this.space(),this.token("=>"));this.space(),this.print(e.returnType,e)},t.FunctionTypeParam=function(e){this.print(e.name,e),e.optional&&this.token("?");e.name&&(this.token(":"),this.space());this.print(e.typeAnnotation,e)},t.GenericTypeAnnotation=t.ClassImplements=t.InterfaceExtends=function(e){this.print(e.id,e),this.print(e.typeParameters,e)},t._interfaceish=function(e){this.print(e.id,e),this.print(e.typeParameters,e),e.extends.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends,e));e.mixins&&e.mixins.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins,e));e.implements&&e.implements.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e));this.space(),this.print(e.body,e)},t._variance=function(e){e.variance&&("plus"===e.variance.kind?this.token("+"):"minus"===e.variance.kind&&this.token("-"))},t.InterfaceDeclaration=function(e){this.word("interface"),this.space(),this._interfaceish(e)},t.InterfaceTypeAnnotation=function(e){this.word("interface"),e.extends&&e.extends.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends,e));this.space(),this.print(e.body,e)},t.IntersectionTypeAnnotation=function(e){this.printJoin(e.types,e,{separator:andSeparator})},t.MixedTypeAnnotation=function(){this.word("mixed")},t.EmptyTypeAnnotation=function(){this.word("empty")},t.NullableTypeAnnotation=function(e){this.token("?"),this.print(e.typeAnnotation,e)},t.NumberTypeAnnotation=function(){this.word("number")},t.StringTypeAnnotation=function(){this.word("string")},t.ThisTypeAnnotation=function(){this.word("this")},t.TupleTypeAnnotation=function(e){this.token("["),this.printList(e.types,e),this.token("]")},t.TypeofTypeAnnotation=function(e){this.word("typeof"),this.space(),this.print(e.argument,e)},t.TypeAlias=function(e){this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),this.space(),this.token("="),this.space(),this.print(e.right,e),this.semicolon()},t.TypeAnnotation=function(e){this.token(":"),this.space(),e.optional&&this.token("?");this.print(e.typeAnnotation,e)},t.TypeParameterDeclaration=t.TypeParameterInstantiation=function(e){this.token("<"),this.printList(e.params,e,{}),this.token(">")},t.TypeParameter=function(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound,e);e.default&&(this.space(),this.token("="),this.space(),this.print(e.default,e))},t.OpaqueType=function(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),e.supertype&&(this.token(":"),this.space(),this.print(e.supertype,e));e.impltype&&(this.space(),this.token("="),this.space(),this.print(e.impltype,e));this.semicolon()},t.ObjectTypeAnnotation=function(e){e.exact?this.token("{|"):this.token("{");const t=e.properties.concat(e.callProperties||[],e.indexers||[],e.internalSlots||[]);t.length&&(this.space(),this.printJoin(t,e,{addNewlines(e){if(e&&!t[0])return 1},indent:!0,statement:!0,iterator:()=>{(1!==t.length||e.inexact)&&(this.token(","),this.space())}}),this.space());e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent());e.exact?this.token("|}"):this.token("}")},t.ObjectTypeInternalSlot=function(e){e.static&&(this.word("static"),this.space());this.token("["),this.token("["),this.print(e.id,e),this.token("]"),this.token("]"),e.optional&&this.token("?");e.method||(this.token(":"),this.space());this.print(e.value,e)},t.ObjectTypeCallProperty=function(e){e.static&&(this.word("static"),this.space());this.print(e.value,e)},t.ObjectTypeIndexer=function(e){e.static&&(this.word("static"),this.space());this._variance(e),this.token("["),e.id&&(this.print(e.id,e),this.token(":"),this.space());this.print(e.key,e),this.token("]"),this.token(":"),this.space(),this.print(e.value,e)},t.ObjectTypeProperty=function(e){e.proto&&(this.word("proto"),this.space());e.static&&(this.word("static"),this.space());"get"!==e.kind&&"set"!==e.kind||(this.word(e.kind),this.space());this._variance(e),this.print(e.key,e),e.optional&&this.token("?");e.method||(this.token(":"),this.space());this.print(e.value,e)},t.ObjectTypeSpreadProperty=function(e){this.token("..."),this.print(e.argument,e)},t.QualifiedTypeIdentifier=function(e){this.print(e.qualification,e),this.token("."),this.print(e.id,e)},t.SymbolTypeAnnotation=function(){this.word("symbol")},t.UnionTypeAnnotation=function(e){this.printJoin(e.types,e,{separator:orSeparator})},t.TypeCastExpression=function(e){this.token("("),this.print(e.expression,e),this.print(e.typeAnnotation,e),this.token(")")},t.Variance=function(e){"plus"===e.kind?this.token("+"):this.token("-")},t.VoidTypeAnnotation=function(){this.word("void")},Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return s.NumericLiteral}}),Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return s.StringLiteral}});var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710)),n=r(3503),s=r(4827);function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function enumExplicitType(e,t,r){r&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function enumBody(e,t){const{members:r}=t;e.token("{"),e.indent(),e.newline();for(const i of r)e.print(i,t),e.newline();e.dedent(),e.token("}")}function enumInitializedMember(e,t){const{id:r,init:i}=t;e.print(r,t),e.space(),e.token("="),e.space(),e.print(i,t),e.token(",")}function FlowExportDeclaration(e){if(e.declaration){const t=e.declaration;this.print(t,e),i.isStatement(t)||this.semicolon()}else this.token("{"),e.specifiers.length&&(this.space(),this.printList(e.specifiers,e),this.space()),this.token("}"),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source,e)),this.semicolon()}function andSeparator(){this.space(),this.token("&"),this.space()}function orSeparator(){this.space(),this.token("|"),this.space()}},1464:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(3378);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var n=r(9901);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var s=r(9772);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var a=r(9570);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var o=r(4390);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var l=r(3503);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=r(4827);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var u=r(308);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var p=r(3762);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var d=r(6209);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r(5529);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}))},6209:(e,t)=>{"use strict";function spaceSeparator(){this.space()}Object.defineProperty(t,"__esModule",{value:!0}),t.JSXAttribute=function(e){this.print(e.name,e),e.value&&(this.token("="),this.print(e.value,e))},t.JSXIdentifier=function(e){this.word(e.name)},t.JSXNamespacedName=function(e){this.print(e.namespace,e),this.token(":"),this.print(e.name,e)},t.JSXMemberExpression=function(e){this.print(e.object,e),this.token("."),this.print(e.property,e)},t.JSXSpreadAttribute=function(e){this.token("{"),this.token("..."),this.print(e.argument,e),this.token("}")},t.JSXExpressionContainer=function(e){this.token("{"),this.print(e.expression,e),this.token("}")},t.JSXSpreadChild=function(e){this.token("{"),this.token("..."),this.print(e.expression,e),this.token("}")},t.JSXText=function(e){const t=this.getPossibleRaw(e);null!=t?this.token(t):this.token(e.value)},t.JSXElement=function(e){const t=e.openingElement;if(this.print(t,e),t.selfClosing)return;this.indent();for(const t of e.children)this.print(t,e);this.dedent(),this.print(e.closingElement,e)},t.JSXOpeningElement=function(e){this.token("<"),this.print(e.name,e),this.print(e.typeParameters,e),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,e,{separator:spaceSeparator}));e.selfClosing?(this.space(),this.token("/>")):this.token(">")},t.JSXClosingElement=function(e){this.token("</"),this.print(e.name,e),this.token(">")},t.JSXEmptyExpression=function(e){this.printInnerComments(e)},t.JSXFragment=function(e){this.print(e.openingFragment,e),this.indent();for(const t of e.children)this.print(t,e);this.dedent(),this.print(e.closingFragment,e)},t.JSXOpeningFragment=function(){this.token("<"),this.token(">")},t.JSXClosingFragment=function(){this.token("</"),this.token(">")}},4390:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._params=function(e){this.print(e.typeParameters,e),this.token("("),this._parameters(e.params,e),this.token(")"),this.print(e.returnType,e)},t._parameters=function(e,t){for(let r=0;r<e.length;r++)this._param(e[r],t),r<e.length-1&&(this.token(","),this.space())},t._param=function(e,t){this.printJoin(e.decorators,e),this.print(e,t),e.optional&&this.token("?");this.print(e.typeAnnotation,e)},t._methodHead=function(e){const t=e.kind,r=e.key;"get"!==t&&"set"!==t||(this.word(t),this.space());e.async&&(this._catchUp("start",r.loc),this.word("async"),this.space());"method"!==t&&"init"!==t||e.generator&&this.token("*");e.computed?(this.token("["),this.print(r,e),this.token("]")):this.print(r,e);e.optional&&this.token("?");this._params(e)},t._predicate=function(e){e.predicate&&(e.returnType||this.token(":"),this.space(),this.print(e.predicate,e))},t._functionHead=function(e){e.async&&(this.word("async"),this.space());this.word("function"),e.generator&&this.token("*");this.space(),e.id&&this.print(e.id,e);this._params(e),this._predicate(e)},t.FunctionDeclaration=t.FunctionExpression=function(e){this._functionHead(e),this.space(),this.print(e.body,e)},t.ArrowFunctionExpression=function(e){e.async&&(this.word("async"),this.space());const t=e.params[0];1===e.params.length&&i.isIdentifier(t)&&!function(e,t){return e.typeParameters||e.returnType||t.typeAnnotation||t.optional||t.trailingComments}(e,t)?(this.format.retainLines||e.async)&&e.loc&&e.body.loc&&e.loc.start.line<e.body.loc.start.line?(this.token("("),t.loc&&t.loc.start.line>e.loc.start.line?(this.indent(),this.print(t,e),this.dedent(),this._catchUp("start",e.body.loc)):this.print(t,e),this.token(")")):this.print(t,e):this._params(e);this._predicate(e),this.space(),this.token("=>"),this.space(),this.print(e.body,e)};var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}},3503:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImportSpecifier=function(e){"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space());this.print(e.imported,e),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local,e))},t.ImportDefaultSpecifier=function(e){this.print(e.local,e)},t.ExportDefaultSpecifier=function(e){this.print(e.exported,e)},t.ExportSpecifier=function(e){this.print(e.local,e),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported,e))},t.ExportNamespaceSpecifier=function(e){this.token("*"),this.space(),this.word("as"),this.space(),this.print(e.exported,e)},t.ExportAllDeclaration=function(e){this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space());this.token("*"),this.space(),this.word("from"),this.space(),this.print(e.source,e),this.printAssertions(e),this.semicolon()},t.ExportNamedDeclaration=function(e){this.format.decoratorsBeforeExport&&i.isClassDeclaration(e.declaration)&&this.printJoin(e.declaration.decorators,e);this.word("export"),this.space(),ExportDeclaration.apply(this,arguments)},t.ExportDefaultDeclaration=function(e){this.format.decoratorsBeforeExport&&i.isClassDeclaration(e.declaration)&&this.printJoin(e.declaration.decorators,e);this.word("export"),this.space(),this.word("default"),this.space(),ExportDeclaration.apply(this,arguments)},t.ImportDeclaration=function(e){var t;this.word("import"),this.space(),("type"===e.importKind||"typeof"===e.importKind)&&(this.word(e.importKind),this.space());const r=e.specifiers.slice(0);if(null==r?void 0:r.length){for(;;){const t=r[0];if(!i.isImportDefaultSpecifier(t)&&!i.isImportNamespaceSpecifier(t))break;this.print(r.shift(),e),r.length&&(this.token(","),this.space())}r.length&&(this.token("{"),this.space(),this.printList(r,e),this.space(),this.token("}")),this.space(),this.word("from"),this.space()}this.print(e.source,e),this.printAssertions(e),(null==(t=e.attributes)?void 0:t.length)&&(this.space(),this.word("with"),this.space(),this.printList(e.attributes,e));this.semicolon()},t.ImportAttribute=function(e){this.print(e.key),this.token(":"),this.space(),this.print(e.value)},t.ImportNamespaceSpecifier=function(e){this.token("*"),this.space(),this.word("as"),this.space(),this.print(e.local,e)};var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function ExportDeclaration(e){if(e.declaration){const t=e.declaration;this.print(t,e),i.isStatement(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());const t=e.specifiers.slice(0);let r=!1;for(;;){const n=t[0];if(!i.isExportDefaultSpecifier(n)&&!i.isExportNamespaceSpecifier(n))break;r=!0,this.print(t.shift(),e),t.length&&(this.token(","),this.space())}(t.length||!t.length&&!r)&&(this.token("{"),t.length&&(this.space(),this.printList(t,e),this.space()),this.token("}")),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source,e),this.printAssertions(e)),this.semicolon()}}},9772:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WithStatement=function(e){this.word("with"),this.space(),this.token("("),this.print(e.object,e),this.token(")"),this.printBlock(e)},t.IfStatement=function(e){this.word("if"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.space();const t=e.alternate&&i.isIfStatement(getLastStatement(e.consequent));t&&(this.token("{"),this.newline(),this.indent());this.printAndIndentOnComments(e.consequent,e),t&&(this.dedent(),this.newline(),this.token("}"));e.alternate&&(this.endsWith("}")&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate,e))},t.ForStatement=function(e){this.word("for"),this.space(),this.token("("),this.inForStatementInitCounter++,this.print(e.init,e),this.inForStatementInitCounter--,this.token(";"),e.test&&(this.space(),this.print(e.test,e));this.token(";"),e.update&&(this.space(),this.print(e.update,e));this.token(")"),this.printBlock(e)},t.WhileStatement=function(e){this.word("while"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.printBlock(e)},t.DoWhileStatement=function(e){this.word("do"),this.space(),this.print(e.body,e),this.space(),this.word("while"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.semicolon()},t.LabeledStatement=function(e){this.print(e.label,e),this.token(":"),this.space(),this.print(e.body,e)},t.TryStatement=function(e){this.word("try"),this.space(),this.print(e.block,e),this.space(),e.handlers?this.print(e.handlers[0],e):this.print(e.handler,e);e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer,e))},t.CatchClause=function(e){this.word("catch"),this.space(),e.param&&(this.token("("),this.print(e.param,e),this.print(e.param.typeAnnotation,e),this.token(")"),this.space());this.print(e.body,e)},t.SwitchStatement=function(e){this.word("switch"),this.space(),this.token("("),this.print(e.discriminant,e),this.token(")"),this.space(),this.token("{"),this.printSequence(e.cases,e,{indent:!0,addNewlines(t,r){if(!t&&e.cases[e.cases.length-1]===r)return-1}}),this.token("}")},t.SwitchCase=function(e){e.test?(this.word("case"),this.space(),this.print(e.test,e),this.token(":")):(this.word("default"),this.token(":"));e.consequent.length&&(this.newline(),this.printSequence(e.consequent,e,{indent:!0}))},t.DebuggerStatement=function(){this.word("debugger"),this.semicolon()},t.VariableDeclaration=function(e,t){e.declare&&(this.word("declare"),this.space());this.word(e.kind),this.space();let r,n=!1;if(!i.isFor(t))for(const t of e.declarations)t.init&&(n=!0);n&&(r="const"===e.kind?constDeclarationIndent:variableDeclarationIndent);if(this.printList(e.declarations,e,{separator:r}),i.isFor(t)&&(t.left===e||t.init===e))return;this.semicolon()},t.VariableDeclarator=function(e){this.print(e.id,e),e.definite&&this.token("!");this.print(e.id.typeAnnotation,e),e.init&&(this.space(),this.token("="),this.space(),this.print(e.init,e))},t.ThrowStatement=t.BreakStatement=t.ReturnStatement=t.ContinueStatement=t.ForOfStatement=t.ForInStatement=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function getLastStatement(e){return i.isStatement(e.body)?getLastStatement(e.body):e}const buildForXStatement=function(e){return function(t){this.word("for"),this.space(),"of"===e&&t.await&&(this.word("await"),this.space()),this.token("("),this.print(t.left,t),this.space(),this.word(e),this.space(),this.print(t.right,t),this.token(")"),this.printBlock(t)}},n=buildForXStatement("in");t.ForInStatement=n;const s=buildForXStatement("of");function buildLabelStatement(e,t="label"){return function(r){this.word(e);const i=r[t];if(i){this.space();const e="label"==t,n=this.startTerminatorless(e);this.print(i,r),this.endTerminatorless(n)}this.semicolon()}}t.ForOfStatement=s;const a=buildLabelStatement("continue");t.ContinueStatement=a;const o=buildLabelStatement("return","argument");t.ReturnStatement=o;const l=buildLabelStatement("break");t.BreakStatement=l;const c=buildLabelStatement("throw","argument");function variableDeclarationIndent(){if(this.token(","),this.newline(),this.endsWith("\\n"))for(let e=0;e<4;e++)this.space(!0)}function constDeclarationIndent(){if(this.token(","),this.newline(),this.endsWith("\\n"))for(let e=0;e<6;e++)this.space(!0)}t.ThrowStatement=c},3378:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaggedTemplateExpression=function(e){this.print(e.tag,e),this.print(e.typeParameters,e),this.print(e.quasi,e)},t.TemplateElement=function(e,t){const r=t.quasis[0]===e,i=t.quasis[t.quasis.length-1]===e,n=(r?"`":"}")+e.value.raw+(i?"`":"${");this.token(n)},t.TemplateLiteral=function(e){const t=e.quasis;for(let r=0;r<t.length;r++)this.print(t[r],e),r+1<t.length&&this.print(e.expressions[r],e)}},4827:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Identifier=function(e){this.exactSource(e.loc,(()=>{this.word(e.name)}))},t.ArgumentPlaceholder=function(){this.token("?")},t.SpreadElement=t.RestElement=function(e){this.token("..."),this.print(e.argument,e)},t.ObjectPattern=t.ObjectExpression=function(e){const t=e.properties;this.token("{"),this.printInnerComments(e),t.length&&(this.space(),this.printList(t,e,{indent:!0,statement:!0}),this.space());this.token("}")},t.ObjectMethod=function(e){this.printJoin(e.decorators,e),this._methodHead(e),this.space(),this.print(e.body,e)},t.ObjectProperty=function(e){if(this.printJoin(e.decorators,e),e.computed)this.token("["),this.print(e.key,e),this.token("]");else{if(n.isAssignmentPattern(e.value)&&n.isIdentifier(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value,e);if(this.print(e.key,e),e.shorthand&&n.isIdentifier(e.key)&&n.isIdentifier(e.value)&&e.key.name===e.value.name)return}this.token(":"),this.space(),this.print(e.value,e)},t.ArrayPattern=t.ArrayExpression=function(e){const t=e.elements,r=t.length;this.token("["),this.printInnerComments(e);for(let i=0;i<t.length;i++){const n=t[i];n?(i>0&&this.space(),this.print(n,e),i<r-1&&this.token(",")):this.token(",")}this.token("]")},t.RecordExpression=function(e){const t=e.properties;let r,i;if("bar"===this.format.recordAndTupleSyntaxType)r="{|",i="|}";else{if("hash"!==this.format.recordAndTupleSyntaxType)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);r="#{",i="}"}this.token(r),this.printInnerComments(e),t.length&&(this.space(),this.printList(t,e,{indent:!0,statement:!0}),this.space());this.token(i)},t.TupleExpression=function(e){const t=e.elements,r=t.length;let i,n;if("bar"===this.format.recordAndTupleSyntaxType)i="[|",n="|]";else{if("hash"!==this.format.recordAndTupleSyntaxType)throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);i="#[",n="]"}this.token(i),this.printInnerComments(e);for(let i=0;i<t.length;i++){const n=t[i];n&&(i>0&&this.space(),this.print(n,e),i<r-1&&this.token(","))}this.token(n)},t.RegExpLiteral=function(e){this.word(`/${e.pattern}/${e.flags}`)},t.BooleanLiteral=function(e){this.word(e.value?"true":"false")},t.NullLiteral=function(){this.word("null")},t.NumericLiteral=function(e){const t=this.getPossibleRaw(e),r=this.format.jsescOption,i=e.value+"";r.numbers?this.number((0,s.default)(e.value,r)):null==t?this.number(i):this.format.minified?this.number(t.length<i.length?t:i):this.number(t)},t.StringLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&null!=t)return void this.token(t);const r=this.format.jsescOption;this.format.jsonCompatibleStrings&&(r.json=!0);const i=(0,s.default)(e.value,r);return this.token(i)},t.BigIntLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&null!=t)return void this.token(t);this.token(e.value+"n")},t.DecimalLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&null!=t)return void this.token(t);this.token(e.value+"m")},t.PipelineTopicExpression=function(e){this.print(e.expression,e)},t.PipelineBareFunction=function(e){this.print(e.callee,e)},t.PipelinePrimaryTopicReference=function(){this.token("#")};var i,n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710)),s=(i=r(442))&&i.__esModule?i:{default:i};function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}},5529:(e,t)=>{"use strict";function tokenIfPlusMinus(e,t){!0!==t&&e.token(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.TSTypeAnnotation=function(e){this.token(":"),this.space(),e.optional&&this.token("?");this.print(e.typeAnnotation,e)},t.TSTypeParameterDeclaration=t.TSTypeParameterInstantiation=function(e){this.token("<"),this.printList(e.params,e,{}),this.token(">")},t.TSTypeParameter=function(e){this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint,e));e.default&&(this.space(),this.token("="),this.space(),this.print(e.default,e))},t.TSParameterProperty=function(e){e.accessibility&&(this.word(e.accessibility),this.space());e.readonly&&(this.word("readonly"),this.space());this._param(e.parameter)},t.TSDeclareFunction=function(e){e.declare&&(this.word("declare"),this.space());this._functionHead(e),this.token(";")},t.TSDeclareMethod=function(e){this._classMethodHead(e),this.token(";")},t.TSQualifiedName=function(e){this.print(e.left,e),this.token("."),this.print(e.right,e)},t.TSCallSignatureDeclaration=function(e){this.tsPrintSignatureDeclarationBase(e),this.token(";")},t.TSConstructSignatureDeclaration=function(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),this.token(";")},t.TSPropertySignature=function(e){const{readonly:t,initializer:r}=e;t&&(this.word("readonly"),this.space());this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation,e),r&&(this.space(),this.token("="),this.space(),this.print(r,e));this.token(";")},t.tsPrintPropertyOrMethodName=function(e){e.computed&&this.token("[");this.print(e.key,e),e.computed&&this.token("]");e.optional&&this.token("?")},t.TSMethodSignature=function(e){this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),this.token(";")},t.TSIndexSignature=function(e){const{readonly:t}=e;t&&(this.word("readonly"),this.space());this.token("["),this._parameters(e.parameters,e),this.token("]"),this.print(e.typeAnnotation,e),this.token(";")},t.TSAnyKeyword=function(){this.word("any")},t.TSBigIntKeyword=function(){this.word("bigint")},t.TSUnknownKeyword=function(){this.word("unknown")},t.TSNumberKeyword=function(){this.word("number")},t.TSObjectKeyword=function(){this.word("object")},t.TSBooleanKeyword=function(){this.word("boolean")},t.TSStringKeyword=function(){this.word("string")},t.TSSymbolKeyword=function(){this.word("symbol")},t.TSVoidKeyword=function(){this.word("void")},t.TSUndefinedKeyword=function(){this.word("undefined")},t.TSNullKeyword=function(){this.word("null")},t.TSNeverKeyword=function(){this.word("never")},t.TSIntrinsicKeyword=function(){this.word("intrinsic")},t.TSThisType=function(){this.word("this")},t.TSFunctionType=function(e){this.tsPrintFunctionOrConstructorType(e)},t.TSConstructorType=function(e){this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)},t.tsPrintFunctionOrConstructorType=function(e){const{typeParameters:t,parameters:r}=e;this.print(t,e),this.token("("),this._parameters(r,e),this.token(")"),this.space(),this.token("=>"),this.space(),this.print(e.typeAnnotation.typeAnnotation,e)},t.TSTypeReference=function(e){this.print(e.typeName,e),this.print(e.typeParameters,e)},t.TSTypePredicate=function(e){e.asserts&&(this.word("asserts"),this.space());this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))},t.TSTypeQuery=function(e){this.word("typeof"),this.space(),this.print(e.exprName)},t.TSTypeLiteral=function(e){this.tsPrintTypeLiteralOrInterfaceBody(e.members,e)},t.tsPrintTypeLiteralOrInterfaceBody=function(e,t){this.tsPrintBraced(e,t)},t.tsPrintBraced=function(e,t){if(this.token("{"),e.length){this.indent(),this.newline();for(const r of e)this.print(r,t),this.newline();this.dedent(),this.rightBrace()}else this.token("}")},t.TSArrayType=function(e){this.print(e.elementType,e),this.token("[]")},t.TSTupleType=function(e){this.token("["),this.printList(e.elementTypes,e),this.token("]")},t.TSOptionalType=function(e){this.print(e.typeAnnotation,e),this.token("?")},t.TSRestType=function(e){this.token("..."),this.print(e.typeAnnotation,e)},t.TSNamedTupleMember=function(e){this.print(e.label,e),e.optional&&this.token("?");this.token(":"),this.space(),this.print(e.elementType,e)},t.TSUnionType=function(e){this.tsPrintUnionOrIntersectionType(e,"|")},t.TSIntersectionType=function(e){this.tsPrintUnionOrIntersectionType(e,"&")},t.tsPrintUnionOrIntersectionType=function(e,t){this.printJoin(e.types,e,{separator(){this.space(),this.token(t),this.space()}})},t.TSConditionalType=function(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.token("?"),this.space(),this.print(e.trueType),this.space(),this.token(":"),this.space(),this.print(e.falseType)},t.TSInferType=function(e){this.token("infer"),this.space(),this.print(e.typeParameter)},t.TSParenthesizedType=function(e){this.token("("),this.print(e.typeAnnotation,e),this.token(")")},t.TSTypeOperator=function(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation,e)},t.TSIndexedAccessType=function(e){this.print(e.objectType,e),this.token("["),this.print(e.indexType,e),this.token("]")},t.TSMappedType=function(e){const{nameType:t,optional:r,readonly:i,typeParameter:n}=e;this.token("{"),this.space(),i&&(tokenIfPlusMinus(this,i),this.word("readonly"),this.space());this.token("["),this.word(n.name),this.space(),this.word("in"),this.space(),this.print(n.constraint,n),t&&(this.space(),this.word("as"),this.space(),this.print(t,e));this.token("]"),r&&(tokenIfPlusMinus(this,r),this.token("?"));this.token(":"),this.space(),this.print(e.typeAnnotation,e),this.space(),this.token("}")},t.TSLiteralType=function(e){this.print(e.literal,e)},t.TSExpressionWithTypeArguments=function(e){this.print(e.expression,e),this.print(e.typeParameters,e)},t.TSInterfaceDeclaration=function(e){const{declare:t,id:r,typeParameters:i,extends:n,body:s}=e;t&&(this.word("declare"),this.space());this.word("interface"),this.space(),this.print(r,e),this.print(i,e),n&&(this.space(),this.word("extends"),this.space(),this.printList(n,e));this.space(),this.print(s,e)},t.TSInterfaceBody=function(e){this.tsPrintTypeLiteralOrInterfaceBody(e.body,e)},t.TSTypeAliasDeclaration=function(e){const{declare:t,id:r,typeParameters:i,typeAnnotation:n}=e;t&&(this.word("declare"),this.space());this.word("type"),this.space(),this.print(r,e),this.print(i,e),this.space(),this.token("="),this.space(),this.print(n,e),this.token(";")},t.TSAsExpression=function(e){const{expression:t,typeAnnotation:r}=e;this.print(t,e),this.space(),this.word("as"),this.space(),this.print(r,e)},t.TSTypeAssertion=function(e){const{typeAnnotation:t,expression:r}=e;this.token("<"),this.print(t,e),this.token(">"),this.space(),this.print(r,e)},t.TSEnumDeclaration=function(e){const{declare:t,const:r,id:i,members:n}=e;t&&(this.word("declare"),this.space());r&&(this.word("const"),this.space());this.word("enum"),this.space(),this.print(i,e),this.space(),this.tsPrintBraced(n,e)},t.TSEnumMember=function(e){const{id:t,initializer:r}=e;this.print(t,e),r&&(this.space(),this.token("="),this.space(),this.print(r,e));this.token(",")},t.TSModuleDeclaration=function(e){const{declare:t,id:r}=e;t&&(this.word("declare"),this.space());e.global||(this.word("Identifier"===r.type?"namespace":"module"),this.space());if(this.print(r,e),!e.body)return void this.token(";");let i=e.body;for(;"TSModuleDeclaration"===i.type;)this.token("."),this.print(i.id,i),i=i.body;this.space(),this.print(i,e)},t.TSModuleBlock=function(e){this.tsPrintBraced(e.body,e)},t.TSImportType=function(e){const{argument:t,qualifier:r,typeParameters:i}=e;this.word("import"),this.token("("),this.print(t,e),this.token(")"),r&&(this.token("."),this.print(r,e));i&&this.print(i,e)},t.TSImportEqualsDeclaration=function(e){const{isExport:t,id:r,moduleReference:i}=e;t&&(this.word("export"),this.space());this.word("import"),this.space(),this.print(r,e),this.space(),this.token("="),this.space(),this.print(i,e),this.token(";")},t.TSExternalModuleReference=function(e){this.token("require("),this.print(e.expression,e),this.token(")")},t.TSNonNullExpression=function(e){this.print(e.expression,e),this.token("!")},t.TSExportAssignment=function(e){this.word("export"),this.space(),this.token("="),this.space(),this.print(e.expression,e),this.token(";")},t.TSNamespaceExportDeclaration=function(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id,e)},t.tsPrintSignatureDeclarationBase=function(e){const{typeParameters:t,parameters:r}=e;this.print(t,e),this.token("("),this._parameters(r,e),this.token(")"),this.print(e.typeAnnotation,e)},t.tsPrintClassMemberModifiers=function(e,t){t&&e.declare&&(this.word("declare"),this.space());e.accessibility&&(this.word(e.accessibility),this.space());e.static&&(this.word("static"),this.space());e.abstract&&(this.word("abstract"),this.space());t&&e.readonly&&(this.word("readonly"),this.space())}},5386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){return new s(e,t,r).generate()},t.CodeGenerator=void 0;var i=_interopRequireDefault(r(1783)),n=_interopRequireDefault(r(3237));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class s extends n.default{constructor(e,t={},r){const n=function(e,t){const r={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:null==t.comments||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,jsonCompatibleStrings:t.jsonCompatibleStrings,indent:{adjustMultilineComment:!0,style:" ",base:0},decoratorsBeforeExport:!!t.decoratorsBeforeExport,jsescOption:Object.assign({quotes:"double",wrap:!0},t.jsescOption),recordAndTupleSyntaxType:t.recordAndTupleSyntaxType};r.minified?(r.compact=!0,r.shouldPrintComment=r.shouldPrintComment||(()=>r.comments)):r.shouldPrintComment=r.shouldPrintComment||(e=>r.comments||e.indexOf("@license")>=0||e.indexOf("@preserve")>=0);"auto"===r.compact&&(r.compact=e.length>5e5,r.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`));r.compact&&(r.indent.adjustMultilineComment=!1);return r}(r,t);super(n,t.sourceMaps?new i.default(t,r):null),this.ast=void 0,this.ast=e}generate(){return super.generate(this.ast)}}t.CodeGenerator=class{constructor(e,t,r){this._generator=new s(e,t,r)}generate(){return this._generator.generate()}}},944:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.needsWhitespace=needsWhitespace,t.needsWhitespaceBefore=function(e,t){return needsWhitespace(e,t,"before")},t.needsWhitespaceAfter=function(e,t){return needsWhitespace(e,t,"after")},t.needsParens=function(e,t,r){if(!t)return!1;if(s.isNewExpression(t)&&t.callee===e&&isOrHasCallExpression(e))return!0;return find(a,e,t,r)};var i=_interopRequireWildcard(r(3880)),n=_interopRequireWildcard(r(3602)),s=_interopRequireWildcard(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}function expandAliases(e){const t={};function add(e,r){const i=t[e];t[e]=i?function(e,t,n){const s=i(e,t,n);return null==s?r(e,t,n):s}:r}for(const t of Object.keys(e)){const r=s.FLIPPED_ALIAS_KEYS[t];if(r)for(const i of r)add(i,e[t]);else add(t,e[t])}return t}const a=expandAliases(n),o=expandAliases(i.nodes),l=expandAliases(i.list);function find(e,t,r,i){const n=e[t.type];return n?n(t,r,i):null}function isOrHasCallExpression(e){return!!s.isCallExpression(e)||s.isMemberExpression(e)&&isOrHasCallExpression(e.object)}function needsWhitespace(e,t,r){if(!e)return 0;s.isExpressionStatement(e)&&(e=e.expression);let i=find(o,e,t);if(!i){const n=find(l,e,t);if(n)for(let t=0;t<n.length&&(i=needsWhitespace(n[t],e,r),!i);t++);}return"object"==typeof i&&null!==i&&i[r]||0}},3602:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NullableTypeAnnotation=function(e,t){return i.isArrayTypeAnnotation(t)},t.FunctionTypeAnnotation=function(e,t,r){return i.isUnionTypeAnnotation(t)||i.isIntersectionTypeAnnotation(t)||i.isArrayTypeAnnotation(t)||i.isTypeAnnotation(t)&&i.isArrowFunctionExpression(r[r.length-3])},t.UpdateExpression=function(e,t){return hasPostfixPart(e,t)||isClassExtendsClause(e,t)},t.ObjectExpression=function(e,t,r){return isFirstInStatement(r,{considerArrow:!0})},t.DoExpression=function(e,t,r){return isFirstInStatement(r)},t.Binary=function(e,t){if("**"===e.operator&&i.isBinaryExpression(t,{operator:"**"}))return t.left===e;if(isClassExtendsClause(e,t))return!0;if(hasPostfixPart(e,t)||i.isUnaryLike(t)||i.isAwaitExpression(t))return!0;if(i.isBinary(t)){const r=t.operator,s=n[r],a=e.operator,o=n[a];if(s===o&&t.right===e&&!i.isLogicalExpression(t)||s>o)return!0}},t.IntersectionTypeAnnotation=t.UnionTypeAnnotation=function(e,t){return i.isArrayTypeAnnotation(t)||i.isNullableTypeAnnotation(t)||i.isIntersectionTypeAnnotation(t)||i.isUnionTypeAnnotation(t)},t.TSAsExpression=function(){return!0},t.TSTypeAssertion=function(){return!0},t.TSIntersectionType=t.TSUnionType=function(e,t){return i.isTSArrayType(t)||i.isTSOptionalType(t)||i.isTSIntersectionType(t)||i.isTSUnionType(t)||i.isTSRestType(t)},t.TSInferType=function(e,t){return i.isTSArrayType(t)||i.isTSOptionalType(t)},t.BinaryExpression=function(e,t){return"in"===e.operator&&(i.isVariableDeclarator(t)||i.isFor(t))},t.SequenceExpression=function(e,t){if(i.isForStatement(t)||i.isThrowStatement(t)||i.isReturnStatement(t)||i.isIfStatement(t)&&t.test===e||i.isWhileStatement(t)&&t.test===e||i.isForInStatement(t)&&t.right===e||i.isSwitchStatement(t)&&t.discriminant===e||i.isExpressionStatement(t)&&t.expression===e)return!1;return!0},t.AwaitExpression=t.YieldExpression=function(e,t){return i.isBinary(t)||i.isUnaryLike(t)||hasPostfixPart(e,t)||i.isAwaitExpression(t)&&i.isYieldExpression(e)||i.isConditionalExpression(t)&&e===t.test||isClassExtendsClause(e,t)},t.ClassExpression=function(e,t,r){return isFirstInStatement(r,{considerDefaultExports:!0})},t.UnaryLike=UnaryLike,t.FunctionExpression=function(e,t,r){return isFirstInStatement(r,{considerDefaultExports:!0})},t.ArrowFunctionExpression=function(e,t){return i.isExportDeclaration(t)||ConditionalExpression(e,t)},t.ConditionalExpression=ConditionalExpression,t.OptionalCallExpression=t.OptionalMemberExpression=function(e,t){return i.isCallExpression(t,{callee:e})||i.isMemberExpression(t,{object:e})},t.AssignmentExpression=function(e,t,r){return!!i.isObjectPattern(e.left)||ConditionalExpression(e,t)},t.LogicalExpression=function(e,t){switch(e.operator){case"||":return!!i.isLogicalExpression(t)&&("??"===t.operator||"&&"===t.operator);case"&&":return i.isLogicalExpression(t,{operator:"??"});case"??":return i.isLogicalExpression(t)&&"??"!==t.operator}};var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}const n={"||":0,"??":0,"&&":1,"|":2,"^":3,"&":4,"==":5,"===":5,"!=":5,"!==":5,"<":6,">":6,"<=":6,">=":6,in:6,instanceof:6,">>":7,"<<":7,">>>":7,"+":8,"-":8,"*":9,"/":9,"%":9,"**":10},isClassExtendsClause=(e,t)=>(i.isClassDeclaration(t)||i.isClassExpression(t))&&t.superClass===e,hasPostfixPart=(e,t)=>(i.isMemberExpression(t)||i.isOptionalMemberExpression(t))&&t.object===e||(i.isCallExpression(t)||i.isOptionalCallExpression(t)||i.isNewExpression(t))&&t.callee===e||i.isTaggedTemplateExpression(t)&&t.tag===e||i.isTSNonNullExpression(t);function UnaryLike(e,t){return hasPostfixPart(e,t)||i.isBinaryExpression(t,{operator:"**",left:e})||isClassExtendsClause(e,t)}function ConditionalExpression(e,t){return!!(i.isUnaryLike(t)||i.isBinary(t)||i.isConditionalExpression(t,{test:e})||i.isAwaitExpression(t)||i.isTSTypeAssertion(t)||i.isTSAsExpression(t))||UnaryLike(e,t)}function isFirstInStatement(e,{considerArrow:t=!1,considerDefaultExports:r=!1}={}){let n=e.length-1,s=e[n];n--;let a=e[n];for(;n>=0;){if(i.isExpressionStatement(a,{expression:s})||r&&i.isExportDefaultDeclaration(a,{declaration:s})||t&&i.isArrowFunctionExpression(a,{body:s}))return!0;if(!(hasPostfixPart(s,a)&&!i.isNewExpression(a)||i.isSequenceExpression(a)&&a.expressions[0]===s||i.isConditional(a,{test:s})||i.isBinary(a,{left:s})||i.isAssignmentExpression(a,{left:s})))return!1;s=a,n--,a=e[n]}return!1}},3880:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.list=t.nodes=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function crawl(e,t={}){return i.isMemberExpression(e)||i.isOptionalMemberExpression(e)?(crawl(e.object,t),e.computed&&crawl(e.property,t)):i.isBinary(e)||i.isAssignmentExpression(e)?(crawl(e.left,t),crawl(e.right,t)):i.isCallExpression(e)||i.isOptionalCallExpression(e)?(t.hasCall=!0,crawl(e.callee,t)):i.isFunction(e)?t.hasFunction=!0:i.isIdentifier(e)&&(t.hasHelper=t.hasHelper||isHelper(e.callee)),t}function isHelper(e){return i.isMemberExpression(e)?isHelper(e.object)||isHelper(e.property):i.isIdentifier(e)?"require"===e.name||"_"===e.name[0]:i.isCallExpression(e)?isHelper(e.callee):!(!i.isBinary(e)&&!i.isAssignmentExpression(e))&&(i.isIdentifier(e.left)&&isHelper(e.left)||isHelper(e.right))}function isType(e){return i.isLiteral(e)||i.isObjectExpression(e)||i.isArrayExpression(e)||i.isIdentifier(e)||i.isMemberExpression(e)}const n={AssignmentExpression(e){const t=crawl(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return{before:t.hasFunction,after:!0}},SwitchCase:(e,t)=>({before:e.consequent.length||t.cases[0]===e,after:!e.consequent.length&&t.cases[t.cases.length-1]===e}),LogicalExpression(e){if(i.isFunction(e.left)||i.isFunction(e.right))return{after:!0}},Literal(e){if("use strict"===e.value)return{after:!0}},CallExpression(e){if(i.isFunction(e.callee)||isHelper(e))return{before:!0,after:!0}},OptionalCallExpression(e){if(i.isFunction(e.callee))return{before:!0,after:!0}},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){const r=e.declarations[t];let i=isHelper(r.id)&&!isType(r.init);if(!i){const e=crawl(r.init);i=isHelper(r.init)&&e.hasCall||e.hasFunction}if(i)return{before:!0,after:!0}}},IfStatement(e){if(i.isBlockStatement(e.consequent))return{before:!0,after:!0}}};t.nodes=n,n.ObjectProperty=n.ObjectTypeProperty=n.ObjectMethod=function(e,t){if(t.properties[0]===e)return{before:!0}},n.ObjectTypeCallProperty=function(e,t){var r;if(t.callProperties[0]===e&&!(null==(r=t.properties)?void 0:r.length))return{before:!0}},n.ObjectTypeIndexer=function(e,t){var r,i;if(t.indexers[0]===e&&!(null==(r=t.properties)?void 0:r.length)&&!(null==(i=t.callProperties)?void 0:i.length))return{before:!0}},n.ObjectTypeInternalSlot=function(e,t){var r,i,n;if(t.internalSlots[0]===e&&!(null==(r=t.properties)?void 0:r.length)&&!(null==(i=t.callProperties)?void 0:i.length)&&!(null==(n=t.indexers)?void 0:n.length))return{before:!0}};const s={VariableDeclaration:e=>e.declarations.map((e=>e.init)),ArrayExpression:e=>e.elements,ObjectExpression:e=>e.properties};t.list=s,[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach((function([e,t]){"boolean"==typeof t&&(t={after:t,before:t}),[e].concat(i.FLIPPED_ALIAS_KEYS[e]||[]).forEach((function(e){n[e]=function(){return t}}))}))},3237:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,n=(i=r(8404))&&i.__esModule?i:{default:i},s=_interopRequireWildcard(r(944)),a=_interopRequireWildcard(r(1710)),o=_interopRequireWildcard(r(1464));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}const l=/e/i,c=/\\.0+$/,u=/^0[box]/,p=/^\\s*[@#]__PURE__\\s*$/;class d{constructor(e,t){this.inForStatementInitCounter=0,this._printStack=[],this._indent=0,this._insideAux=!1,this._printedCommentStarts={},this._parenPushNewlineState=null,this._noLineTerminator=!1,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new WeakSet,this._endsWithInteger=!1,this._endsWithWord=!1,this.format=e||{},this._buf=new n.default(t)}generate(e){return this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){this.format.compact||this.format.concise||this._indent++}dedent(){this.format.compact||this.format.concise||this._indent--}semicolon(e=!1){this._maybeAddAuxComment(),this._append(";",!e)}rightBrace(){this.format.minified&&this._buf.removeLastSemicolon(),this.token("}")}space(e=!1){this.format.compact||(this._buf.hasContent()&&!this.endsWith(" ")&&!this.endsWith("\\n")||e)&&this._space()}word(e){(this._endsWithWord||this.endsWith("/")&&0===e.indexOf("/"))&&this._space(),this._maybeAddAuxComment(),this._append(e),this._endsWithWord=!0}number(e){this.word(e),this._endsWithInteger=Number.isInteger(+e)&&!u.test(e)&&!l.test(e)&&!c.test(e)&&"."!==e[e.length-1]}token(e){("--"===e&&this.endsWith("!")||"+"===e[0]&&this.endsWith("+")||"-"===e[0]&&this.endsWith("-")||"."===e[0]&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._append(e)}newline(e){if(!this.format.retainLines&&!this.format.compact)if(this.format.concise)this.space();else if(!(this.endsWith("\\n\\n")||("number"!=typeof e&&(e=1),e=Math.min(2,e),(this.endsWith("{\\n")||this.endsWith(":\\n"))&&e--,e<=0)))for(let t=0;t<e;t++)this._newline()}endsWith(e){return this._buf.endsWith(e)}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,t){this._catchUp("start",e),this._buf.exactSource(e,t)}source(e,t){this._catchUp(e,t),this._buf.source(e,t)}withSource(e,t,r){this._catchUp(e,t),this._buf.withSource(e,t,r)}_space(){this._append(" ",!0)}_newline(){this._append("\\n",!0)}_append(e,t=!1){this._maybeAddParen(e),this._maybeIndent(e),t?this._buf.queue(e):this._buf.append(e),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(e){this._indent&&this.endsWith("\\n")&&"\\n"!==e[0]&&this._buf.queue(this._getIndent())}_maybeAddParen(e){const t=this._parenPushNewlineState;if(!t)return;let r;for(r=0;r<e.length&&" "===e[r];r++)continue;if(r===e.length)return;const i=e[r];if("\\n"!==i){if("/"!==i||r+1===e.length)return void(this._parenPushNewlineState=null);const t=e[r+1];if("*"===t){if(p.test(e.slice(r+2,e.length-2)))return}else if("/"!==t)return void(this._parenPushNewlineState=null)}this.token("("),this.indent(),t.printed=!0}_catchUp(e,t){if(!this.format.retainLines)return;const r=t?t[e]:null;if(null!=(null==r?void 0:r.line)){const e=r.line-this._buf.getCurrentLine();for(let t=0;t<e;t++)this._newline()}}_getIndent(){return this.format.indent.style.repeat(this._indent)}startTerminatorless(e=!1){return e?(this._noLineTerminator=!0,null):this._parenPushNewlineState={printed:!1}}endTerminatorless(e){this._noLineTerminator=!1,(null==e?void 0:e.printed)&&(this.dedent(),this.newline(),this.token(")"))}print(e,t){if(!e)return;const r=this.format.concise;e._compact&&(this.format.concise=!0);const i=this[e.type];if(!i)throw new ReferenceError(`unknown node of type ${JSON.stringify(e.type)} with constructor ${JSON.stringify(null==e?void 0:e.constructor.name)}`);this._printStack.push(e);const n=this._insideAux;this._insideAux=!e.loc,this._maybeAddAuxComment(this._insideAux&&!n);let o=s.needsParens(e,t,this._printStack);this.format.retainFunctionParens&&"FunctionExpression"===e.type&&e.extra&&e.extra.parenthesized&&(o=!0),o&&this.token("("),this._printLeadingComments(e);const l=a.isProgram(e)||a.isFile(e)?null:e.loc;this.withSource("start",l,(()=>{i.call(this,e,t)})),this._printTrailingComments(e),o&&this.token(")"),this._printStack.pop(),this.format.concise=r,this._insideAux=n}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e})}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e})}getPossibleRaw(e){const t=e.extra;if(t&&null!=t.raw&&null!=t.rawValue&&e.value===t.rawValue)return t.raw}printJoin(e,t,r={}){if(!(null==e?void 0:e.length))return;r.indent&&this.indent();const i={addNewlines:r.addNewlines};for(let n=0;n<e.length;n++){const s=e[n];s&&(r.statement&&this._printNewline(!0,s,t,i),this.print(s,t),r.iterator&&r.iterator(s,n),r.separator&&n<e.length-1&&r.separator.call(this),r.statement&&this._printNewline(!1,s,t,i))}r.indent&&this.dedent()}printAndIndentOnComments(e,t){const r=e.leadingComments&&e.leadingComments.length>0;r&&this.indent(),this.print(e,t),r&&this.dedent()}printBlock(e){const t=e.body;a.isEmptyStatement(t)||this.space(),this.print(t,e)}_printTrailingComments(e){this._printComments(this._getComments(!1,e))}_printLeadingComments(e){this._printComments(this._getComments(!0,e),!0)}printInnerComments(e,t=!0){var r;(null==(r=e.innerComments)?void 0:r.length)&&(t&&this.indent(),this._printComments(e.innerComments),t&&this.dedent())}printSequence(e,t,r={}){return r.statement=!0,this.printJoin(e,t,r)}printList(e,t,r={}){return null==r.separator&&(r.separator=commaSeparator),this.printJoin(e,t,r)}_printNewline(e,t,r,i){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space();let n=0;if(this._buf.hasContent()){e||n++,i.addNewlines&&(n+=i.addNewlines(e,t)||0);(e?s.needsWhitespaceBefore:s.needsWhitespaceAfter)(t,r)&&n++}this.newline(n)}_getComments(e,t){return t&&(e?t.leadingComments:t.trailingComments)||[]}_printComment(e,t){if(!this.format.shouldPrintComment(e.value))return;if(e.ignore)return;if(this._printedComments.has(e))return;if(this._printedComments.add(e),null!=e.start){if(this._printedCommentStarts[e.start])return;this._printedCommentStarts[e.start]=!0}const r="CommentBlock"===e.type,i=r&&!t&&!this._noLineTerminator;i&&this._buf.hasContent()&&this.newline(1),this.endsWith("[")||this.endsWith("{")||this.space();let n=r||this._noLineTerminator?`/*${e.value}*/`:`//${e.value}\\n`;if(r&&this.format.indent.adjustMultilineComment){var s;const t=null==(s=e.loc)?void 0:s.start.column;if(t){const e=new RegExp("\\\\n\\\\s{1,"+t+"}","g");n=n.replace(e,"\\n")}const r=Math.max(this._getIndent().length,this.format.retainLines?0:this._buf.getCurrentColumn());n=n.replace(/\\n(?!$)/g,`\\n${" ".repeat(r)}`)}this.endsWith("/")&&this._space(),this.withSource("start",e.loc,(()=>{this._append(n)})),i&&this.newline(1)}_printComments(e,t){if(null==e?void 0:e.length)if(t&&1===e.length&&p.test(e[0].value))this._printComment(e[0],this._buf.hasContent()&&!this.endsWith("\\n"));else for(const t of e)this._printComment(t)}printAssertions(e){var t;(null==(t=e.assertions)?void 0:t.length)&&(this.space(),this.word("assert"),this.space(),this.token("{"),this.space(),this.printList(e.assertions,e),this.space(),this.token("}"))}}function commaSeparator(){this.token(","),this.space()}t.default=d,Object.assign(d.prototype,o)},1783:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,n=(i=r(9351))&&i.__esModule?i:{default:i};t.default=class{constructor(e,t){this._cachedMap=null,this._code=t,this._opts=e,this._rawMappings=[]}get(){if(!this._cachedMap){const e=this._cachedMap=new n.default.SourceMapGenerator({sourceRoot:this._opts.sourceRoot}),t=this._code;"string"==typeof t?e.setSourceContent(this._opts.sourceFileName.replace(/\\\\/g,"/"),t):"object"==typeof t&&Object.keys(t).forEach((r=>{e.setSourceContent(r.replace(/\\\\/g,"/"),t[r])})),this._rawMappings.forEach((t=>e.addMapping(t)),e)}return this._cachedMap.toJSON()}getRawMappings(){return this._rawMappings.slice()}mark(e,t,r,i,n,s,a){this._lastGenLine!==e&&null===r||(a||this._lastGenLine!==e||this._lastSourceLine!==r||this._lastSourceColumn!==i)&&(this._cachedMap=null,this._lastGenLine=e,this._lastSourceLine=r,this._lastSourceColumn=i,this._rawMappings.push({name:n||void 0,generated:{line:e,column:t},source:null==r?void 0:(s||this._opts.sourceFileName).replace(/\\\\/g,"/"),original:null==r?void 0:{line:r,column:i}}))}}},7493:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=!0,i=!0,n=!0,s=!0;class a{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.updateContext=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}}const o=new Map;function createKeyword(e,t={}){t.keyword=e;const r=new a(e,t);return o.set(e,r),r}function createBinop(e,t){return new a(e,{beforeExpr:r,binop:t})}const l={num:new a("num",{startsExpr:i}),bigint:new a("bigint",{startsExpr:i}),decimal:new a("decimal",{startsExpr:i}),regexp:new a("regexp",{startsExpr:i}),string:new a("string",{startsExpr:i}),name:new a("name",{startsExpr:i}),eof:new a("eof"),bracketL:new a("[",{beforeExpr:r,startsExpr:i}),bracketHashL:new a("#[",{beforeExpr:r,startsExpr:i}),bracketBarL:new a("[|",{beforeExpr:r,startsExpr:i}),bracketR:new a("]"),bracketBarR:new a("|]"),braceL:new a("{",{beforeExpr:r,startsExpr:i}),braceBarL:new a("{|",{beforeExpr:r,startsExpr:i}),braceHashL:new a("#{",{beforeExpr:r,startsExpr:i}),braceR:new a("}"),braceBarR:new a("|}"),parenL:new a("(",{beforeExpr:r,startsExpr:i}),parenR:new a(")"),comma:new a(",",{beforeExpr:r}),semi:new a(";",{beforeExpr:r}),colon:new a(":",{beforeExpr:r}),doubleColon:new a("::",{beforeExpr:r}),dot:new a("."),question:new a("?",{beforeExpr:r}),questionDot:new a("?."),arrow:new a("=>",{beforeExpr:r}),template:new a("template"),ellipsis:new a("...",{beforeExpr:r}),backQuote:new a("`",{startsExpr:i}),dollarBraceL:new a("${",{beforeExpr:r,startsExpr:i}),at:new a("@"),hash:new a("#",{startsExpr:i}),interpreterDirective:new a("#!..."),eq:new a("=",{beforeExpr:r,isAssign:true}),assign:new a("_=",{beforeExpr:r,isAssign:true}),incDec:new a("++/--",{prefix:s,postfix:!0,startsExpr:i}),bang:new a("!",{beforeExpr:r,prefix:s,startsExpr:i}),tilde:new a("~",{beforeExpr:r,prefix:s,startsExpr:i}),pipeline:createBinop("|>",0),nullishCoalescing:createBinop("??",1),logicalOR:createBinop("||",1),logicalAND:createBinop("&&",2),bitwiseOR:createBinop("|",3),bitwiseXOR:createBinop("^",4),bitwiseAND:createBinop("&",5),equality:createBinop("==/!=/===/!==",6),relational:createBinop("</>/<=/>=",7),bitShift:createBinop("<</>>/>>>",8),plusMin:new a("+/-",{beforeExpr:r,binop:9,prefix:s,startsExpr:i}),modulo:new a("%",{beforeExpr:r,binop:10,startsExpr:i}),star:new a("*",{binop:10}),slash:createBinop("/",10),exponent:new a("**",{beforeExpr:r,binop:11,rightAssociative:!0}),_break:createKeyword("break"),_case:createKeyword("case",{beforeExpr:r}),_catch:createKeyword("catch"),_continue:createKeyword("continue"),_debugger:createKeyword("debugger"),_default:createKeyword("default",{beforeExpr:r}),_do:createKeyword("do",{isLoop:n,beforeExpr:r}),_else:createKeyword("else",{beforeExpr:r}),_finally:createKeyword("finally"),_for:createKeyword("for",{isLoop:n}),_function:createKeyword("function",{startsExpr:i}),_if:createKeyword("if"),_return:createKeyword("return",{beforeExpr:r}),_switch:createKeyword("switch"),_throw:createKeyword("throw",{beforeExpr:r,prefix:s,startsExpr:i}),_try:createKeyword("try"),_var:createKeyword("var"),_const:createKeyword("const"),_while:createKeyword("while",{isLoop:n}),_with:createKeyword("with"),_new:createKeyword("new",{beforeExpr:r,startsExpr:i}),_this:createKeyword("this",{startsExpr:i}),_super:createKeyword("super",{startsExpr:i}),_class:createKeyword("class",{startsExpr:i}),_extends:createKeyword("extends",{beforeExpr:r}),_export:createKeyword("export"),_import:createKeyword("import",{startsExpr:i}),_null:createKeyword("null",{startsExpr:i}),_true:createKeyword("true",{startsExpr:i}),_false:createKeyword("false",{startsExpr:i}),_in:createKeyword("in",{beforeExpr:r,binop:7}),_instanceof:createKeyword("instanceof",{beforeExpr:r,binop:7}),_typeof:createKeyword("typeof",{beforeExpr:r,prefix:s,startsExpr:i}),_void:createKeyword("void",{beforeExpr:r,prefix:s,startsExpr:i}),_delete:createKeyword("delete",{beforeExpr:r,prefix:s,startsExpr:i})},c=128,u=128,p=1024,d=64,h=/\\r\\n?|[\\n\\u2028\\u2029]/,f=new RegExp(h.source,"g");function isNewLine(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}const m=/(?:\\s|\\/\\/.*|\\/\\*[^]*?\\*\\/)*/g;function isWhitespace(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}}class y{constructor(e,t){this.line=void 0,this.column=void 0,this.line=e,this.column=t}}class T{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}}class g{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){return this.plugins.has(e)}getPluginOption(e,t){if(this.hasPlugin(e))return this.plugins.get(e)[t]}}function last(e){return e[e.length-1]}class b extends g{addComment(e){this.filename&&(e.loc.filename=this.filename),this.state.trailingComments.push(e),this.state.leadingComments.push(e)}adjustCommentsAfterTrailingComma(e,t,r){if(0===this.state.leadingComments.length)return;let i=null,n=t.length;for(;null===i&&n>0;)i=t[--n];if(null===i)return;for(let e=0;e<this.state.leadingComments.length;e++)this.state.leadingComments[e].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(e,1),e--);const s=[];for(let t=0;t<this.state.leadingComments.length;t++){const i=this.state.leadingComments[t];i.end<e.end?(s.push(i),r||(this.state.leadingComments.splice(t,1),t--)):(void 0===e.trailingComments&&(e.trailingComments=[]),e.trailingComments.push(i))}r&&(this.state.leadingComments=[]),s.length>0?i.trailingComments=s:void 0!==i.trailingComments&&(i.trailingComments=[])}processComment(e){if("Program"===e.type&&e.body.length>0)return;const t=this.state.commentStack;let r,i,n,s,a;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=e.end?(n=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else if(t.length>0){const r=last(t);r.trailingComments&&r.trailingComments[0].start>=e.end&&(n=r.trailingComments,delete r.trailingComments)}for(t.length>0&&last(t).start>=e.start&&(r=t.pop());t.length>0&&last(t).start>=e.start;)i=t.pop();if(!i&&r&&(i=r),r)switch(e.type){case"ObjectExpression":this.adjustCommentsAfterTrailingComma(e,e.properties);break;case"ObjectPattern":this.adjustCommentsAfterTrailingComma(e,e.properties,!0);break;case"CallExpression":this.adjustCommentsAfterTrailingComma(e,e.arguments);break;case"ArrayExpression":this.adjustCommentsAfterTrailingComma(e,e.elements);break;case"ArrayPattern":this.adjustCommentsAfterTrailingComma(e,e.elements,!0)}else this.state.commentPreviousNode&&("ImportSpecifier"===this.state.commentPreviousNode.type&&"ImportSpecifier"!==e.type||"ExportSpecifier"===this.state.commentPreviousNode.type&&"ExportSpecifier"!==e.type)&&this.adjustCommentsAfterTrailingComma(e,[this.state.commentPreviousNode]);if(i){if(i.leadingComments)if(i!==e&&i.leadingComments.length>0&&last(i.leadingComments).end<=e.start)e.leadingComments=i.leadingComments,delete i.leadingComments;else for(s=i.leadingComments.length-2;s>=0;--s)if(i.leadingComments[s].end<=e.start){e.leadingComments=i.leadingComments.splice(0,s+1);break}}else if(this.state.leadingComments.length>0)if(last(this.state.leadingComments).end<=e.start){if(this.state.commentPreviousNode)for(a=0;a<this.state.leadingComments.length;a++)this.state.leadingComments[a].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(a,1),a--);this.state.leadingComments.length>0&&(e.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(s=0;s<this.state.leadingComments.length&&!(this.state.leadingComments[s].end>e.start);s++);const t=this.state.leadingComments.slice(0,s);t.length&&(e.leadingComments=t),n=this.state.leadingComments.slice(s),0===n.length&&(n=null)}if(this.state.commentPreviousNode=e,n)if(n.length&&n[0].start>=e.start&&last(n).end<=e.end)e.innerComments=n;else{const t=n.findIndex((t=>t.end>=e.end));t>0?(e.innerComments=n.slice(0,t),e.trailingComments=n.slice(t)):e.trailingComments=n}t.push(e)}}const S=Object.freeze({AccessorIsGenerator:"A %0ter 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",AwaitExpressionFormalParameter:"await is not allowed in async function parameters",AwaitNotInAsyncContext:"\'await\' is only allowed within async functions and at the top levels of modules",AwaitNotInAsyncFunction:"\'await\' is only allowed within async functions",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",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:"%0 require an initialization value",DecoratorBeforeExport:"Decorators must be placed *before* the \'export\' keyword. You can set the \'decoratorsBeforeExport\' option to false to use the \'export @decorator class {}\' syntax",DecoratorConstructor:"Decorators can\'t be used with a constructor. Did you mean \'@dec class { ... }\'?",DecoratorExportClass:"Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead.",DecoratorSemicolon:"Decorators must not be followed by a semicolon",DecoratorStaticBlock:"Decorators can\'t be used with a static block",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:"`%0` has already been exported. Exported identifiers must be unique.",DuplicateProto:"Redefinition of __proto__ property",DuplicateRegExpFlags:"Duplicate regular expression flag",DuplicateStaticBlock:"Duplicate static block in the same class",ElementAfterRest:"Rest element must be last element",EscapedCharNotAnIdentifier:"Invalid Unicode escape",ExportBindingIsString:"A string literal cannot be used as an exported binding without `from`.\\n- Did you mean `export { %0 as \'%1\' } from \'some-module\'`?",ExportDefaultFromAsIdentifier:"\'from\' is not allowed as an identifier after \'export default\'",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block",IllegalBreakContinue:"Unsyntactic %0",IllegalLanguageModeDirective:"Illegal \'use strict\' directive in function with non-simple parameter list",IllegalReturn:"\'return\' outside of function",ImportBindingIsString:\'A string literal cannot be used as an imported binding.\\n- Did you mean `import { "%0" as foo }`?\',ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments",ImportCallArity:"import() requires exactly %0",ImportCallNotNewExpression:"Cannot use new with import(...)",ImportCallSpreadArgument:"... is not allowed in import()",ImportMetaOutsideModule:"import.meta may appear only with \'sourceType: \\"module\\"\'",ImportOutsideModule:"\'import\' and \'export\' may appear only with \'sourceType: \\"module\\"\'",InvalidBigIntLiteral:"Invalid BigIntLiteral",InvalidCodePoint:"Code point out of bounds",InvalidDecimal:"Invalid decimal",InvalidDigit:"Expected number in radix %0",InvalidEscapeSequence:"Bad character escape sequence",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template",InvalidEscapedReservedWord:"Escape sequence in keyword %0",InvalidIdentifier:"Invalid identifier %0",InvalidLhs:"Invalid left-hand side in %0",InvalidLhsBinding:"Binding invalid left-hand side in %0",InvalidNumber:"Invalid number",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the \'e\'",InvalidOrUnexpectedToken:"Unexpected character \'%0\'",InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern",InvalidPrivateFieldResolution:"Private name #%0 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:"Label \'%0\' is already declared",LetInLexicalBinding:"\'let\' is not allowed to be used as a name in \'let\' or \'const\' declarations.",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.",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:\'Duplicate key "%0" is not allowed in module attributes\',ModuleExportNameHasLoneSurrogate:"An export name cannot include a lone surrogate, found \'\\\\u%0\'",ModuleExportUndefined:"Export \'%0\' 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",ParamDupe:"Argument name clash",PatternHasAccessor:"Object pattern can\'t contain getter or setter",PatternHasMethod:"Object pattern can\'t contain methods",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:"Primary Topic Reference found but pipelineOperator not passed \'smart\' for \'proposal\' option.",PrivateInExpectedIn:"Private names are only allowed in property accesses (`obj.#%0`) or in `in` expressions (`#%0 in obj`)",PrivateNameRedeclaration:"Duplicate private name #%0",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, inside a block, or as the body of an if statement",StaticPrototype:"Classes may not have static property named prototype",StrictDelete:"Deleting local variable in strict mode",StrictEvalArguments:"Assigning to \'%0\' in strict mode",StrictEvalArgumentsBinding:"Binding \'%0\' 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",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:"Unexpected keyword \'%0\'",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",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits",UnexpectedPrivateField:"Private names can only be used as the name of a class element (i.e. class C { #p = 42; #m() {} } )\\n or a property of member expression (i.e. this.#p).",UnexpectedReservedWord:"Unexpected reserved word \'%0\'",UnexpectedSuper:"super is only allowed in object methods and classes",UnexpectedToken:"Unexpected token \'%0\'",UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",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:"The only valid meta property for %0 is %0.%1",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",VarRedeclaration:"Identifier \'%0\' 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"});class x extends b{getLocationForPosition(e){let t;return t=e===this.state.start?this.state.startLoc:e===this.state.lastTokStart?this.state.lastTokStartLoc:e===this.state.end?this.state.endLoc:e===this.state.lastTokEnd?this.state.lastTokEndLoc:function(e,t){let r,i=1,n=0;for(f.lastIndex=0;(r=f.exec(e))&&r.index<t;)i++,n=f.lastIndex;return new y(i,t-n)}(this.input,e),t}raise(e,t,...r){return this.raiseWithData(e,void 0,t,...r)}raiseWithData(e,t,r,...i){const n=this.getLocationForPosition(e),s=r.replace(/%(\\d+)/g,((e,t)=>i[t]))+` (${n.line}:${n.column})`;return this._raise(Object.assign({loc:n,pos:e},t),s)}_raise(e,t){const r=new SyntaxError(t);if(Object.assign(r,e),this.options.errorRecovery)return this.isLookahead||this.state.errors.push(r),r;throw r}}function isSimpleProperty(e){return null!=e&&"Property"===e.type&&"init"===e.kind&&!1===e.method}class P{constructor(e,t,r,i){this.token=void 0,this.isExpr=void 0,this.preserveSpace=void 0,this.override=void 0,this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=i}}const v={braceStatement:new P("{",!1),braceExpression:new P("{",!0),recordExpression:new P("#{",!0),templateQuasi:new P("${",!1),parenStatement:new P("(",!1),parenExpression:new P("(",!0),template:new P("`",!0,!0,(e=>e.readTmplToken())),functionExpression:new P("function",!0),functionStatement:new P("function",!1)};l.parenR.updateContext=l.braceR.updateContext=function(){if(1===this.state.context.length)return void(this.state.exprAllowed=!0);let e=this.state.context.pop();e===v.braceStatement&&"function"===this.curContext().token&&(e=this.state.context.pop()),this.state.exprAllowed=!e.isExpr},l.name.updateContext=function(e){let t=!1;e!==l.dot&&("of"!==this.state.value||this.state.exprAllowed||e===l._function||e===l._class||(t=!0)),this.state.exprAllowed=t,this.state.isIterator&&(this.state.isIterator=!1)},l.braceL.updateContext=function(e){this.state.context.push(this.braceIsBlock(e)?v.braceStatement:v.braceExpression),this.state.exprAllowed=!0},l.dollarBraceL.updateContext=function(){this.state.context.push(v.templateQuasi),this.state.exprAllowed=!0},l.parenL.updateContext=function(e){const t=e===l._if||e===l._for||e===l._with||e===l._while;this.state.context.push(t?v.parenStatement:v.parenExpression),this.state.exprAllowed=!0},l.incDec.updateContext=function(){},l._function.updateContext=l._class.updateContext=function(e){!e.beforeExpr||e===l.semi||e===l._else||e===l._return&&this.hasPrecedingLineBreak()||(e===l.colon||e===l.braceL)&&this.curContext()===v.b_stat?this.state.context.push(v.functionStatement):this.state.context.push(v.functionExpression),this.state.exprAllowed=!1},l.backQuote.updateContext=function(){this.curContext()===v.template?this.state.context.pop():this.state.context.push(v.template),this.state.exprAllowed=!1},l.braceHashL.updateContext=function(){this.state.context.push(v.recordExpression),this.state.exprAllowed=!0};let A="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA--zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",w="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍--_";const I=new RegExp("["+A+"]"),C=new RegExp("["+A+w+"]");A=w=null;const O=[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,157,310,10,21,11,7,153,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,107,20,28,22,13,52,76,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,85,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,230,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,35,56,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,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,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,8952,286,50,2,18,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,2357,44,11,6,17,0,370,43,1301,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,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],N=[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,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,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,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,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,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let i=0,n=t.length;i<n;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function isIdentifierStart(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&I.test(String.fromCharCode(e)):isInAstralSet(e,O)))}function isIdentifierChar(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&C.test(String.fromCharCode(e)):isInAstralSet(e,O)||isInAstralSet(e,N))))}const _=["implements","interface","let","package","private","protected","public","static","yield"],k=["eval","arguments"],D=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"]),L=new Set(_),M=new Set(k);function isReservedWord(e,t){return t&&"await"===e||"enum"===e}function isStrictReservedWord(e,t){return isReservedWord(e,t)||L.has(e)}function isStrictBindOnlyReservedWord(e){return M.has(e)}function isStrictBindReservedWord(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return D.has(e)}const B=/^in(stanceof)?$/;const j=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),R=Object.freeze({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:"Cannot overwrite reserved type %0",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:"Boolean enum members need to be initialized. Use either `%0 = true,` or `%0 = false,` in enum `%1`.",EnumDuplicateMemberName:"Enum member names need to be unique, but the name `%0` has already been used before in enum `%1`.",EnumInconsistentMemberValues:"Enum `%0` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.",EnumInvalidExplicitType:"Enum type `%1` is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `%0`.",EnumInvalidExplicitTypeUnknownSupplied:"Supplied enum type is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `%0`.",EnumInvalidMemberInitializerPrimaryType:"Enum `%0` has type `%2`, so the initializer of `%1` needs to be a %2 literal.",EnumInvalidMemberInitializerSymbolType:"Symbol enum members cannot be initialized. Use `%1,` in enum `%0`.",EnumInvalidMemberInitializerUnknownType:"The enum member initializer for `%1` needs to be a literal (either a boolean, number, or string) in enum `%0`.",EnumInvalidMemberName:"Enum member names cannot start with lowercase \'a\' through \'z\'. Instead of using `%0`, consider using `%1`, in enum `%2`.",EnumNumberMemberNotInitialized:"Number enum members need to be initialized, e.g. `%1 = 1` in enum `%0`.",EnumStringMemberInconsistentlyInitailized:"String enum members need to consistently either all use initializers, or use no initializers, in enum `%0`.",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",OptionalBindingPattern:"A binding pattern parameter cannot be optional in an implementation signature.",SpreadVariance:"Spread properties cannot have variance",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:"Unexpected reserved type %0",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:"`declare export %0` is not supported. Use `%1` instead",UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module",UnterminatedFlowComment:"Unterminated flow-comment"});function hasTypeImportKind(e){return"type"===e.importKind||"typeof"===e.importKind}function isMaybeDefaultImport(e){return(e.type===l.name||!!e.type.keyword)&&"from"!==e.value}const F={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};const U=/\\*?\\s*@((?:no)?flow)\\b/;const K={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:"♦"},q=/^[\\da-fA-F]+$/,V=/^\\d+$/,W=Object.freeze({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression",MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>",MissingClosingTagElement:"Expected corresponding JSX closing tag for <%0>",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 isFragment(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function getQualifiedJSXName(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return getQualifiedJSXName(e.object)+"."+getQualifiedJSXName(e.property);throw new Error("Node had unexpected type: "+e.type)}v.j_oTag=new P("<tag",!1),v.j_cTag=new P("</tag",!1),v.j_expr=new P("<tag>...</tag>",!0,!0),l.jsxName=new a("jsxName"),l.jsxText=new a("jsxText",{beforeExpr:!0}),l.jsxTagStart=new a("jsxTagStart",{startsExpr:!0}),l.jsxTagEnd=new a("jsxTagEnd"),l.jsxTagStart.updateContext=function(){this.state.context.push(v.j_expr),this.state.context.push(v.j_oTag),this.state.exprAllowed=!1},l.jsxTagEnd.updateContext=function(e){const t=this.state.context.pop();t===v.j_oTag&&e===l.slash||t===v.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===v.j_expr):this.state.exprAllowed=!0};class Y{constructor(e){this.flags=void 0,this.var=[],this.lexical=[],this.functions=[],this.flags=e}}class X{constructor(e,t){this.scopeStack=[],this.undefinedExports=new Map,this.undefinedPrivateNames=new Map,this.raise=e,this.inModule=t}get inFunction(){return(2&this.currentVarScope().flags)>0}get allowSuper(){return(16&this.currentThisScope().flags)>0}get allowDirectSuper(){return(32&this.currentThisScope().flags)>0}get inClass(){return(64&this.currentThisScope().flags)>0}get inNonArrowFunction(){return(2&this.currentThisScope().flags)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new Y(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){this.scopeStack.pop()}treatFunctionsAsVarInScope(e){return!!(2&e.flags||!this.inModule&&1&e.flags)}declareName(e,t,r){let i=this.currentScope();if(8&t||16&t)this.checkRedeclarationInScope(i,e,t,r),16&t?i.functions.push(e):i.lexical.push(e),8&t&&this.maybeExportDefined(i,e);else if(4&t)for(let n=this.scopeStack.length-1;n>=0&&(i=this.scopeStack[n],this.checkRedeclarationInScope(i,e,t,r),i.var.push(e),this.maybeExportDefined(i,e),!(131&i.flags));--n);this.inModule&&1&i.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,i){this.isRedeclaredInScope(e,t,r)&&this.raise(i,S.VarRedeclaration,t)}isRedeclaredInScope(e,t,r){return!!(1&r)&&(8&r?e.lexical.indexOf(t)>-1||e.functions.indexOf(t)>-1||e.var.indexOf(t)>-1:16&r?e.lexical.indexOf(t)>-1||!this.treatFunctionsAsVarInScope(e)&&e.var.indexOf(t)>-1:e.lexical.indexOf(t)>-1&&!(8&e.flags&&e.lexical[0]===t)||!this.treatFunctionsAsVarInScope(e)&&e.functions.indexOf(t)>-1)}checkLocalExport(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&-1===this.scopeStack[0].functions.indexOf(e.name)&&this.undefinedExports.set(e.name,e.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScope(){for(let e=this.scopeStack.length-1;;e--){const t=this.scopeStack[e];if(131&t.flags)return t}}currentThisScope(){for(let e=this.scopeStack.length-1;;e--){const t=this.scopeStack[e];if((131&t.flags||64&t.flags)&&!(4&t.flags))return t}}}class J extends Y{constructor(...e){super(...e),this.types=[],this.enums=[],this.constEnums=[],this.classes=[],this.exportOnlyBindings=[]}}class H extends X{createScope(e){return new J(e)}declareName(e,t,r){const i=this.currentScope();if(t&p)return this.maybeExportDefined(i,e),void i.exportOnlyBindings.push(e);super.declareName(...arguments),2&t&&(1&t||(this.checkRedeclarationInScope(i,e,t,r),this.maybeExportDefined(i,e)),i.types.push(e)),256&t&&i.enums.push(e),512&t&&i.constEnums.push(e),t&u&&i.classes.push(e)}isRedeclaredInScope(e,t,r){if(e.enums.indexOf(t)>-1){if(256&r){return!!(512&r)!==e.constEnums.indexOf(t)>-1}return!0}return r&u&&e.classes.indexOf(t)>-1?e.lexical.indexOf(t)>-1&&!!(1&r):!!(2&r&&e.types.indexOf(t)>-1)||super.isRedeclaredInScope(...arguments)}checkLocalExport(e){-1===this.scopeStack[0].types.indexOf(e.name)&&-1===this.scopeStack[0].exportOnlyBindings.indexOf(e.name)&&super.checkLocalExport(e)}}class G{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 functionFlags(e,t){return(e?2:0)|(t?1:0)}function nonNull(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}function assert(e){if(!e)throw new Error("Assert fail")}const $=Object.freeze({ClassMethodHasDeclare:"Class methods cannot have the \'declare\' modifier",ClassMethodHasReadonly:"Class methods cannot have the \'readonly\' modifier",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateModifier:"Duplicate modifier: \'%0\'",EmptyHeritageClauseType:"\'%0\' list cannot be empty.",EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",IndexSignatureHasAbstract:"Index signatures cannot have the \'abstract\' modifier",IndexSignatureHasAccessibility:"Index signatures cannot have an accessibility modifier (\'%0\')",IndexSignatureHasStatic:"Index signatures cannot have the \'static\' modifier",IndexSignatureHasDeclare:"Index signatures cannot have the \'declare\' modifier",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the \'abstract\' modifier.",PrivateElementHasAccessibility:"Private elements cannot have an accessibility modifier (\'%0\')",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`",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:"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got %0"});l.placeholder=new a("%%",{startsExpr:!0});function hasPlugin(e,t){return e.some((e=>Array.isArray(e)?e[0]===t:e===t))}function getPluginOption(e,t,r){const i=e.find((e=>Array.isArray(e)?e[0]===t:e===t));return i&&Array.isArray(i)?i[1][r]:null}const z=["minimal","smart","fsharp"],Q=["hash","bar"];const Z={estree:e=>class extends e{estreeParseRegExpLiteral({pattern:e,flags:t}){let r=null;try{r=new RegExp(e,t)}catch(e){}const i=this.estreeParseLiteral(r);return i.regex={pattern:e,flags:t},i}estreeParseBigIntLiteral(e){const t="undefined"!=typeof BigInt?BigInt(e):null,r=this.estreeParseLiteral(t);return r.bigint=String(r.value||e),r}estreeParseDecimalLiteral(e){const t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}directiveToStmt(e){const t=e.value,r=this.startNodeAt(e.start,e.loc.start),i=this.startNodeAt(t.start,t.loc.start);return i.value=t.value,i.raw=t.extra.raw,r.expression=this.finishNodeAt(i,"Literal",t.end,t.loc.end),r.directive=t.extra.raw.slice(1,-1),this.finishNodeAt(r,"ExpressionStatement",e.end,e.loc.end)}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){isSimpleProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}checkLVal(e,t=64,r,i,n){if("ObjectPattern"===e.type)e.properties.forEach((e=>{this.checkLVal("Property"===e.type?e.value:e,t,r,"object destructuring pattern",n)}));else super.checkLVal(e,t,r,i,n)}checkProto(e,t,r,i){e.method||super.checkProto(e,t,r,i)}isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null==(t=e.expression.extra)?void 0:t.parenthesized)}stmtToDirective(e){const t=super.stmtToDirective(e),r=e.expression.value;return t.value.value=r,t}parseBlockBody(e,t,r,i){super.parseBlockBody(e,t,r,i);const n=e.directives.map((e=>this.directiveToStmt(e)));e.body=n.concat(e.body),delete e.directives}pushClassMethod(e,t,r,i,n,s){this.parseMethod(t,r,i,n,s,"ClassMethod",!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}parseExprAtom(e){switch(this.state.type){case l.num:case l.string:return this.estreeParseLiteral(this.state.value);case l.regexp:return this.estreeParseRegExpLiteral(this.state.value);case l.bigint:return this.estreeParseBigIntLiteral(this.state.value);case l.decimal:return this.estreeParseDecimalLiteral(this.state.value);case l._null:return this.estreeParseLiteral(null);case l._true:return this.estreeParseLiteral(!0);case l._false:return this.estreeParseLiteral(!1);default:return super.parseExprAtom(e)}}parseLiteral(e,t,r,i){const n=super.parseLiteral(e,t,r,i);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,t,r=!1){super.parseFunctionBody(e,t,r),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,r,i,n,s,a=!1){let o=this.startNode();return o.kind=e.kind,o=super.parseMethod(o,t,r,i,n,s,a),o.type="FunctionExpression",delete o.kind,e.value=o,s="ClassMethod"===s?"MethodDefinition":s,this.finishNode(e,s)}parseObjectMethod(e,t,r,i,n){const s=super.parseObjectMethod(e,t,r,i,n);return s&&(s.type="Property","method"===s.kind&&(s.kind="init"),s.shorthand=!1),s}parseObjectProperty(e,t,r,i,n){const s=super.parseObjectProperty(e,t,r,i,n);return s&&(s.kind="init",s.type="Property"),s}toAssignable(e){return isSimpleProperty(e)?(this.toAssignable(e.value),e):super.toAssignable(e)}toAssignableObjectExpressionProp(e,t){if("get"===e.kind||"set"===e.kind)throw this.raise(e.key.start,S.PatternHasAccessor);if(e.method)throw this.raise(e.key.start,S.PatternHasMethod);super.toAssignableObjectExpressionProp(e,t)}finishCallExpression(e,t){return super.finishCallExpression(e,t),"Import"===e.callee.type&&(e.type="ImportExpression",e.source=e.arguments[0],delete e.arguments,delete e.callee),e}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e){switch(super.parseExport(e),e.type){case"ExportAllDeclaration":e.exported=null;break;case"ExportNamedDeclaration":1===e.specifiers.length&&"ExportNamespaceSpecifier"===e.specifiers[0].type&&(e.type="ExportAllDeclaration",e.exported=e.specifiers[0].exported,delete e.specifiers)}return e}parseSubscript(e,t,r,i,n){const s=super.parseSubscript(e,t,r,i,n);if(n.optionalChainMember){if("OptionalMemberExpression"!==s.type&&"OptionalCallExpression"!==s.type||(s.type=s.type.substring(8)),n.stop){const e=this.startNodeAtNode(s);return e.expression=s,this.finishNode(e,"ChainExpression")}}else"MemberExpression"!==s.type&&"CallExpression"!==s.type||(s.optional=!1);return s}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,W.UnterminatedJsxContent);const r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:return this.state.pos===this.state.start?60===r&&this.state.exprAllowed?(++this.state.pos,this.finishToken(l.jsxTagStart)):super.getTokenFromCode(r):(e+=this.input.slice(t,this.state.pos),this.finishToken(l.jsxText,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:isNewLine(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(this.state.start,S.UnterminatedString);const i=this.input.charCodeAt(this.state.pos);if(i===e)break;38===i?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):isNewLine(i)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}return t+=this.input.slice(r,this.state.pos++),this.finishToken(l.string,t)}jsxReadEntity(){let e,t="",r=0,i=this.input[this.state.pos];const n=++this.state.pos;for(;this.state.pos<this.length&&r++<10;){if(i=this.input[this.state.pos++],";"===i){"#"===t[0]?"x"===t[1]?(t=t.substr(2),q.test(t)&&(e=String.fromCodePoint(parseInt(t,16)))):(t=t.substr(1),V.test(t)&&(e=String.fromCodePoint(parseInt(t,10)))):e=K[t];break}t+=i}return e||(this.state.pos=n,"&")}jsxReadWord(){let e;const t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(isIdentifierChar(e)||45===e);return this.finishToken(l.jsxName,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();return this.match(l.jsxName)?e.name=this.state.value:this.state.type.keyword?e.name=this.state.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.start,t=this.state.startLoc,r=this.jsxParseIdentifier();if(!this.eat(l.colon))return r;const i=this.startNodeAt(e,t);return i.namespace=r,i.name=this.jsxParseIdentifier(),this.finishNode(i,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.start,t=this.state.startLoc;let r=this.jsxParseNamespacedName();if("JSXNamespacedName"===r.type)return r;for(;this.eat(l.dot);){const i=this.startNodeAt(e,t);i.object=r,i.property=this.jsxParseIdentifier(),r=this.finishNode(i,"JSXMemberExpression")}return r}jsxParseAttributeValue(){let e;switch(this.state.type){case l.braceL:return e=this.startNode(),this.next(),e=this.jsxParseExpressionContainer(e),"JSXEmptyExpression"===e.expression.type&&this.raise(e.start,W.AttributeIsEmpty),e;case l.jsxTagStart:case l.string:return this.parseExprAtom();default:throw this.raise(this.state.start,W.UnsupportedJsxValue)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEnd,this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.start,this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.expect(l.braceR),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e){return this.match(l.braceR)?e.expression=this.jsxParseEmptyExpression():e.expression=this.parseExpression(),this.expect(l.braceR),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.eat(l.braceL)?(this.expect(l.ellipsis),e.argument=this.parseMaybeAssignAllowIn(),this.expect(l.braceR),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(l.eq)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e,t){const r=this.startNodeAt(e,t);return this.match(l.jsxTagEnd)?(this.expect(l.jsxTagEnd),this.finishNode(r,"JSXOpeningFragment")):(r.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(r))}jsxParseOpeningElementAfterName(e){const t=[];for(;!this.match(l.slash)&&!this.match(l.jsxTagEnd);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(l.slash),this.expect(l.jsxTagEnd),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e,t){const r=this.startNodeAt(e,t);return this.match(l.jsxTagEnd)?(this.expect(l.jsxTagEnd),this.finishNode(r,"JSXClosingFragment")):(r.name=this.jsxParseElementName(),this.expect(l.jsxTagEnd),this.finishNode(r,"JSXClosingElement"))}jsxParseElementAt(e,t){const r=this.startNodeAt(e,t),i=[],n=this.jsxParseOpeningElementAt(e,t);let s=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case l.jsxTagStart:if(e=this.state.start,t=this.state.startLoc,this.next(),this.eat(l.slash)){s=this.jsxParseClosingElementAt(e,t);break e}i.push(this.jsxParseElementAt(e,t));break;case l.jsxText:i.push(this.parseExprAtom());break;case l.braceL:{const e=this.startNode();this.next(),this.match(l.ellipsis)?i.push(this.jsxParseSpreadChild(e)):i.push(this.jsxParseExpressionContainer(e));break}default:throw this.unexpected()}isFragment(n)&&!isFragment(s)?this.raise(s.start,W.MissingClosingTagFragment):!isFragment(n)&&isFragment(s)?this.raise(s.start,W.MissingClosingTagElement,getQualifiedJSXName(n.name)):isFragment(n)||isFragment(s)||getQualifiedJSXName(s.name)!==getQualifiedJSXName(n.name)&&this.raise(s.start,W.MissingClosingTagElement,getQualifiedJSXName(n.name))}if(isFragment(n)?(r.openingFragment=n,r.closingFragment=s):(r.openingElement=n,r.closingElement=s),r.children=i,this.isRelational("<"))throw this.raise(this.state.start,W.UnwrappedAdjacentJSXElements);return isFragment(n)?this.finishNode(r,"JSXFragment"):this.finishNode(r,"JSXElement")}jsxParseElement(){const e=this.state.start,t=this.state.startLoc;return this.next(),this.jsxParseElementAt(e,t)}parseExprAtom(e){return this.match(l.jsxText)?this.parseLiteral(this.state.value,"JSXText"):this.match(l.jsxTagStart)?this.jsxParseElement():this.isRelational("<")&&33!==this.input.charCodeAt(this.state.pos)?(this.finishToken(l.jsxTagStart),this.jsxParseElement()):super.parseExprAtom(e)}getTokenFromCode(e){if(this.state.inPropertyName)return super.getTokenFromCode(e);const t=this.curContext();if(t===v.j_expr)return this.jsxReadToken();if(t===v.j_oTag||t===v.j_cTag){if(isIdentifierStart(e))return this.jsxReadWord();if(62===e)return++this.state.pos,this.finishToken(l.jsxTagEnd);if((34===e||39===e)&&t===v.j_oTag)return this.jsxReadString(e)}return 60===e&&this.state.exprAllowed&&33!==this.input.charCodeAt(this.state.pos+1)?(++this.state.pos,this.finishToken(l.jsxTagStart)):super.getTokenFromCode(e)}updateContext(e){if(this.match(l.braceL)){const t=this.curContext();t===v.j_oTag?this.state.context.push(v.braceExpression):t===v.j_expr?this.state.context.push(v.templateQuasi):super.updateContext(e),this.state.exprAllowed=!0}else{if(!this.match(l.slash)||e!==l.jsxTagStart)return super.updateContext(e);this.state.context.length-=2,this.state.context.push(v.j_cTag),this.state.exprAllowed=!1}}},flow:e=>{var t;return t=class extends e{constructor(e,t){super(e,t),this.flowPragma=void 0,this.flowPragma=void 0}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,t){return e!==l.string&&e!==l.semi&&e!==l.interpreterDirective&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){const t=U.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;}return super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=!0,this.expect(e||l.colon);const r=this.flowParseType();return this.state.inType=t,r}flowParsePredicate(){const e=this.startNode(),t=this.state.startLoc,r=this.state.start;this.expect(l.modulo);const i=this.state.startLoc;return this.expectContextual("checks"),t.line===i.line&&t.column===i.column-1||this.raise(r,R.UnexpectedSpaceBetweenModuloChecks),this.eat(l.parenL)?(e.value=this.parseExpression(),this.expect(l.parenR),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(l.colon);let t=null,r=null;return this.match(l.modulo)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(l.modulo)&&(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(),i=this.startNode();this.isRelational("<")?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(l.parenL);const n=this.flowParseFunctionTypeParams();return r.params=n.params,r.rest=n.rest,this.expect(l.parenR),[r.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),i.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(i,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){if(this.match(l._class))return this.flowParseDeclareClass(e);if(this.match(l._function))return this.flowParseDeclareFunction(e);if(this.match(l._var))return this.flowParseDeclareVariable(e);if(this.eatContextual("module"))return this.match(l.dot)?this.flowParseDeclareModuleExports(e):(t&&this.raise(this.state.lastTokStart,R.NestedDeclareModule),this.flowParseDeclareModule(e));if(this.isContextual("type"))return this.flowParseDeclareTypeAlias(e);if(this.isContextual("opaque"))return this.flowParseDeclareOpaqueType(e);if(this.isContextual("interface"))return this.flowParseDeclareInterface(e);if(this.match(l._export))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(l.string)?e.id=this.parseExprAtom():e.id=this.parseIdentifier();const t=e.body=this.startNode(),r=t.body=[];for(this.expect(l.braceL);!this.match(l.braceR);){let e=this.startNode();this.match(l._import)?(this.next(),this.isContextual("type")||this.match(l._typeof)||this.raise(this.state.lastTokStart,R.InvalidNonTypeImportInDeclareModule),this.parseImport(e)):(this.expectContextual("declare",R.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),r.push(e)}this.scope.exit(),this.expect(l.braceR),this.finishNode(t,"BlockStatement");let i=null,n=!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&&(n&&this.raise(e.start,R.DuplicateDeclareModuleExports),"ES"===i&&this.raise(e.start,R.AmbiguousDeclareModuleKind),i="CommonJS",n=!0):("CommonJS"===i&&this.raise(e.start,R.AmbiguousDeclareModuleKind),i="ES")})),e.kind=i||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(l._export),this.eat(l._default))return this.match(l._function)||this.match(l._class)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(l._const)||this.isLet()||(this.isContextual("type")||this.isContextual("interface"))&&!t){const e=this.state.value,t=F[e];throw this.raise(this.state.start,R.UnsupportedDeclareExportKind,e,t)}if(this.match(l._var)||this.match(l._function)||this.match(l._class)||this.isContextual("opaque"))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(l.star)||this.match(l.braceL)||this.isContextual("interface")||this.isContextual("type")||this.isContextual("opaque"))return"ExportNamedDeclaration"===(e=this.parseExport(e)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e;throw this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual("exports"),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){return this.next(),this.flowParseTypeAlias(e),e.type="DeclareTypeAlias",e}flowParseDeclareOpaqueType(e){return this.next(),this.flowParseOpaqueType(e,!0),e.type="DeclareOpaqueType",e}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t=!1){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.implements=[],e.mixins=[],this.eat(l._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(l.comma));if(this.isContextual("mixins")){this.next();do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(l.comma))}if(this.isContextual("implements")){this.next();do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(l.comma))}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.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(this.state.start,R.UnexpectedReservedUnderscore)}checkReservedType(e,t,r){j.has(e)&&this.raise(t,r?R.AssignReservedType:R.UnexpectedReservedType,e)}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.start,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(l.eq),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual("type"),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(l.colon)&&(e.supertype=this.flowParseTypeInitialiser(l.colon)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(l.eq)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){const t=this.state.start,r=this.startNode(),i=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return r.name=n.name,r.variance=i,r.bound=n.typeAnnotation,this.match(l.eq)?(this.eat(l.eq),r.default=this.flowParseType()):e&&this.raise(t,R.MissingTypeParamDefault),this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.isRelational("<")||this.match(l.jsxTagStart)?this.next():this.unexpected();let r=!1;do{const e=this.flowParseTypeParameter(r);t.params.push(e),e.default&&(r=!0),this.isRelational(">")||this.expect(l.comma)}while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expectRelational("<");const r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.isRelational(">");)e.params.push(this.flowParseType()),this.isRelational(">")||this.expect(l.comma);return this.state.noAnonFunctionType=r,this.expectRelational(">"),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.expectRelational("<");!this.isRelational(">");)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.isRelational(">")||this.expect(l.comma);return this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();if(this.expectContextual("interface"),e.extends=[],this.eat(l._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(l.comma));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(l.num)||this.match(l.string)?this.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,r){return e.static=t,this.lookahead().type===l.colon?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(l.bracketR),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(l.bracketR),this.expect(l.bracketR),this.isRelational("<")||this.match(l.parenL)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start))):(e.method=!1,this.eat(l.question)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(l.parenL);!this.match(l.parenR)&&!this.match(l.ellipsis);)e.params.push(this.flowParseFunctionTypeParam()),this.match(l.parenR)||this.expect(l.comma);return this.eat(l.ellipsis)&&(e.rest=this.flowParseFunctionTypeParam()),this.expect(l.parenR),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:i,allowInexact:n}){const s=this.state.inType;this.state.inType=!0;const a=this.startNode();let o,c;a.callProperties=[],a.properties=[],a.indexers=[],a.internalSlots=[];let u=!1;for(t&&this.match(l.braceBarL)?(this.expect(l.braceBarL),o=l.braceBarR,c=!0):(this.expect(l.braceL),o=l.braceR,c=!1),a.exact=c;!this.match(o);){let t=!1,s=null,o=null;const p=this.startNode();if(i&&this.isContextual("proto")){const t=this.lookahead();t.type!==l.colon&&t.type!==l.question&&(this.next(),s=this.state.start,e=!1)}if(e&&this.isContextual("static")){const e=this.lookahead();e.type!==l.colon&&e.type!==l.question&&(this.next(),t=!0)}const d=this.flowParseVariance();if(this.eat(l.bracketL))null!=s&&this.unexpected(s),this.eat(l.bracketL)?(d&&this.unexpected(d.start),a.internalSlots.push(this.flowParseObjectTypeInternalSlot(p,t))):a.indexers.push(this.flowParseObjectTypeIndexer(p,t,d));else if(this.match(l.parenL)||this.isRelational("<"))null!=s&&this.unexpected(s),d&&this.unexpected(d.start),a.callProperties.push(this.flowParseObjectTypeCallProperty(p,t));else{let e="init";if(this.isContextual("get")||this.isContextual("set")){const t=this.lookahead();t.type!==l.name&&t.type!==l.string&&t.type!==l.num||(e=this.state.value,this.next())}const i=this.flowParseObjectTypeProperty(p,t,s,d,e,r,null!=n?n:!c);null===i?(u=!0,o=this.state.lastTokStart):a.properties.push(i)}this.flowObjectTypeSemicolon(),!o||this.match(l.braceR)||this.match(l.braceBarR)||this.raise(o,R.UnexpectedExplicitInexactInObject)}this.expect(o),r&&(a.inexact=u);const p=this.finishNode(a,"ObjectTypeAnnotation");return this.state.inType=s,p}flowParseObjectTypeProperty(e,t,r,i,n,s,a){if(this.eat(l.ellipsis)){return this.match(l.comma)||this.match(l.semi)||this.match(l.braceR)||this.match(l.braceBarR)?(s?a||this.raise(this.state.lastTokStart,R.InexactInsideExact):this.raise(this.state.lastTokStart,R.InexactInsideNonObject),i&&this.raise(i.start,R.InexactVariance),null):(s||this.raise(this.state.lastTokStart,R.UnexpectedSpreadType),null!=r&&this.unexpected(r),i&&this.raise(i.start,R.SpreadVariance),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"))}{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=n;let s=!1;return this.isRelational("<")||this.match(l.parenL)?(e.method=!0,null!=r&&this.unexpected(r),i&&this.unexpected(i.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start)),"get"!==n&&"set"!==n||this.flowCheckGetterSetterParams(e)):("init"!==n&&this.unexpected(),e.method=!1,this.eat(l.question)&&(s=!0),e.value=this.flowParseTypeInitialiser(),e.variance=i),e.optional=s,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,r=e.start;e.value.params.length+(e.value.rest?1:0)!==t&&("get"===e.kind?this.raise(r,S.BadGetterArity):this.raise(r,S.BadSetterArity)),"set"===e.kind&&e.value.rest&&this.raise(r,S.BadSetterRestParameter)}flowObjectTypeSemicolon(){this.eat(l.semi)||this.eat(l.comma)||this.match(l.braceR)||this.match(l.braceBarR)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t,r){e=e||this.state.start,t=t||this.state.startLoc;let i=r||this.flowParseRestrictedIdentifier(!0);for(;this.eat(l.dot);){const r=this.startNodeAt(e,t);r.qualification=i,r.id=this.flowParseRestrictedIdentifier(!0),i=this.finishNode(r,"QualifiedTypeIdentifier")}return i}flowParseGenericType(e,t,r){const i=this.startNodeAt(e,t);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(e,t,r),this.isRelational("<")&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(l._typeof),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect(l.bracketL);this.state.pos<this.length&&!this.match(l.bracketR)&&(e.types.push(this.flowParseType()),!this.match(l.bracketR));)this.expect(l.comma);return this.expect(l.bracketR),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(){let e=null,t=!1,r=null;const i=this.startNode(),n=this.lookahead();return n.type===l.colon||n.type===l.question?(e=this.parseIdentifier(),this.eat(l.question)&&(t=!0),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),i.name=e,i.optional=t,i.typeAnnotation=r,this.finishNode(i,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const t=this.startNodeAt(e.start,e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let t=null;for(;!this.match(l.parenR)&&!this.match(l.ellipsis);)e.push(this.flowParseFunctionTypeParam()),this.match(l.parenR)||this.expect(l.comma);return this.eat(l.ellipsis)&&(t=this.flowParseFunctionTypeParam()),{params:e,rest:t}}flowIdentToTypeAnnotation(e,t,r,i){switch(i.name){case"any":return this.finishNode(r,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(r,"BooleanTypeAnnotation");case"mixed":return this.finishNode(r,"MixedTypeAnnotation");case"empty":return this.finishNode(r,"EmptyTypeAnnotation");case"number":return this.finishNode(r,"NumberTypeAnnotation");case"string":return this.finishNode(r,"StringTypeAnnotation");case"symbol":return this.finishNode(r,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(i.name),this.flowParseGenericType(e,t,i)}}flowParsePrimaryType(){const e=this.state.start,t=this.state.startLoc,r=this.startNode();let i,n,s=!1;const a=this.state.noAnonFunctionType;switch(this.state.type){case l.name:return this.isContextual("interface")?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,r,this.parseIdentifier());case l.braceL:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case l.braceBarL:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case l.bracketL:return this.state.noAnonFunctionType=!1,n=this.flowParseTupleType(),this.state.noAnonFunctionType=a,n;case l.relational:if("<"===this.state.value)return r.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(l.parenL),i=this.flowParseFunctionTypeParams(),r.params=i.params,r.rest=i.rest,this.expect(l.parenR),this.expect(l.arrow),r.returnType=this.flowParseType(),this.finishNode(r,"FunctionTypeAnnotation");break;case l.parenL:if(this.next(),!this.match(l.parenR)&&!this.match(l.ellipsis))if(this.match(l.name)){const e=this.lookahead().type;s=e!==l.question&&e!==l.colon}else s=!0;if(s){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=a,this.state.noAnonFunctionType||!(this.match(l.comma)||this.match(l.parenR)&&this.lookahead().type===l.arrow))return this.expect(l.parenR),n;this.eat(l.comma)}return i=n?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):this.flowParseFunctionTypeParams(),r.params=i.params,r.rest=i.rest,this.expect(l.parenR),this.expect(l.arrow),r.returnType=this.flowParseType(),r.typeParameters=null,this.finishNode(r,"FunctionTypeAnnotation");case l.string:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case l._true:case l._false:return r.value=this.match(l._true),this.next(),this.finishNode(r,"BooleanLiteralTypeAnnotation");case l.plusMin:if("-"===this.state.value){if(this.next(),this.match(l.num))return this.parseLiteral(-this.state.value,"NumberLiteralTypeAnnotation",r.start,r.loc.start);if(this.match(l.bigint))return this.parseLiteral(-this.state.value,"BigIntLiteralTypeAnnotation",r.start,r.loc.start);throw this.raise(this.state.start,R.UnexpectedSubtractionOperand)}throw this.unexpected();case l.num:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case l.bigint:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case l._void:return this.next(),this.finishNode(r,"VoidTypeAnnotation");case l._null:return this.next(),this.finishNode(r,"NullLiteralTypeAnnotation");case l._this:return this.next(),this.finishNode(r,"ThisTypeAnnotation");case l.star:return this.next(),this.finishNode(r,"ExistsTypeAnnotation");default:if("typeof"===this.state.type.keyword)return this.flowParseTypeofType();if(this.state.type.keyword){const e=this.state.type.label;return this.next(),super.createIdentifier(r,e)}}throw this.unexpected()}flowParsePostfixType(){const e=this.state.start,t=this.state.startLoc;let r=this.flowParsePrimaryType();for(;this.match(l.bracketL)&&!this.canInsertSemicolon();){const i=this.startNodeAt(e,t);i.elementType=r,this.expect(l.bracketL),this.expect(l.bracketR),r=this.finishNode(i,"ArrayTypeAnnotation")}return r}flowParsePrefixType(){const e=this.startNode();return this.eat(l.question)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(l.arrow)){const t=this.startNodeAt(e.start,e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){const e=this.startNode();this.eat(l.bitwiseAND);const t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(l.bitwiseAND);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(l.bitwiseOR);const t=this.flowParseIntersectionType();for(e.types=[t];this.eat(l.bitwiseOR);)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,this.state.exprAllowed=this.state.exprAllowed||this.state.noAnonFunctionType,t}flowParseTypeOrImplicitInstantiation(){if(this.state.type===l.name&&"_"===this.state.value){const e=this.state.start,t=this.state.startLoc,r=this.parseIdentifier();return this.flowParseGenericType(e,t,r)}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(l.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.end,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(l.plusMin)&&(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")),e}parseFunctionBody(e,t,r=!1){return t?this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,!0,r))):super.parseFunctionBody(e,!1,r)}parseFunctionBodyAndFinish(e,t,r=!1){if(this.match(l.colon)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}super.parseFunctionBodyAndFinish(e,t,r)}parseStatement(e,t){if(this.state.strict&&this.match(l.name)&&"interface"===this.state.value){const e=this.lookahead();if(e.type===l.name||isKeyword(e.value)){const e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.shouldParseEnums()&&this.isContextual("enum")){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}const r=super.parseStatement(e,t);return void 0!==this.flowPragma||this.isValidDirective(r)||(this.flowPragma=null),r}parseExpressionStatement(e,t){if("Identifier"===t.type)if("declare"===t.name){if(this.match(l._class)||this.match(l.name)||this.match(l._function)||this.match(l._var)||this.match(l._export))return this.flowParseDeclare(e)}else if(this.match(l.name)){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)}shouldParseExportDeclaration(){return this.isContextual("type")||this.isContextual("interface")||this.isContextual("opaque")||this.shouldParseEnums()&&this.isContextual("enum")||super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){return(!this.match(l.name)||!("type"===this.state.value||"interface"===this.state.value||"opaque"===this.state.value||this.shouldParseEnums()&&"enum"===this.state.value))&&super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual("enum")){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,r,i){if(!this.match(l.question))return e;if(i){const n=this.tryParse((()=>super.parseConditional(e,t,r)));return n.node?(n.error&&(this.state=n.failState),n.node):(i.start=n.error.pos||this.state.start,e)}this.expect(l.question);const n=this.state.clone(),s=this.state.noArrowAt,a=this.startNodeAt(t,r);let{consequent:o,failed:c}=this.tryParseConditionalConsequent(),[u,p]=this.getArrowLikeExpressions(o);if(c||p.length>0){const e=[...s];if(p.length>0){this.state=n,this.state.noArrowAt=e;for(let t=0;t<p.length;t++)e.push(p[t].start);({consequent:o,failed:c}=this.tryParseConditionalConsequent()),[u,p]=this.getArrowLikeExpressions(o)}c&&u.length>1&&this.raise(n.start,R.AmbiguousConditionalArrow),c&&1===u.length&&(this.state=n,this.state.noArrowAt=e.concat(u[0].start),({consequent:o,failed:c}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=s,this.expect(l.colon),a.test=e,a.consequent=o,a.alternate=this.forwardNoArrowParamsConversionAt(a,(()=>this.parseMaybeAssign(void 0,void 0,void 0))),this.finishNode(a,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),t=!this.match(l.colon);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const r=[e],i=[];for(;0!==r.length;){const e=r.pop();"ArrowFunctionExpression"===e.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):i.push(e),r.push(e.body)):"ConditionalExpression"===e.type&&(r.push(e.consequent),r.push(e.alternate))}return t?(i.forEach((e=>this.finishArrowValidation(e))),[i,[]]):function(e,t){const r=[],i=[];for(let n=0;n<e.length;n++)(t(e[n],n,e)?r:i).push(e[n]);return[r,i]}(i,(e=>e.params.every((e=>this.isAssignable(e,!0)))))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingComma),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,r){if(e=super.parseParenItem(e,t,r),this.eat(l.question)&&(e.optional=!0,this.resetEndLocation(e)),this.match(l.colon)){const i=this.startNodeAt(t,r);return i.expression=e,i.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(i,"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)}parseExport(e){const t=super.parseExport(e);return"ExportNamedDeclaration"!==t.type&&"ExportAllDeclaration"!==t.type||(t.exportKind=t.exportKind||"value"),t}parseExportDeclaration(e){if(this.isContextual("type")){e.exportKind="type";const t=this.startNode();return this.next(),this.match(l.braceL)?(e.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual("opaque")){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual("interface")){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseInterface(t)}if(this.shouldParseEnums()&&this.isContextual("enum")){e.exportKind="value";const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(...arguments)||!(!this.isContextual("type")||this.lookahead().type!==l.star)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){const t=this.state.start,r=super.maybeParseExportNamespaceSpecifier(e);return r&&"type"===e.exportKind&&this.unexpected(t),r}parseClassId(e,t,r){super.parseClassId(e,t,r),this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,r){const i=this.state.start;if(this.isContextual("declare")){if(this.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,r),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type?this.raise(i,R.DeclareClassElement):t.value&&this.raise(t.value.start,R.DeclareClassFieldInitializer))}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);return 123===e&&124===t?this.finishOp(l.braceBarL,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?this.finishOp(l.question,1):function(e,t){return 64===e&&64===t}(e,t)?(this.state.isIterator=!0,super.readWord()):super.getTokenFromCode(e):this.finishOp(l.relational,1)}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":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=>this.isAssignable(e)));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":case"TypeCastExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toAssignable(e){return"TypeCastExpression"===e.type?super.toAssignable(this.typeCastToParameter(e)):super.toAssignable(e)}toAssignableList(e,t){for(let t=0;t<e.length;t++){const r=e[t];"TypeCastExpression"===(null==r?void 0:r.type)&&(e[t]=this.typeCastToParameter(r))}return super.toAssignableList(e,t)}toReferencedList(e,t){for(let i=0;i<e.length;i++){var r;const n=e[i];n&&"TypeCastExpression"===n.type&&!(null==(r=n.extra)?void 0:r.parenthesized)&&(e.length>1||!t)&&this.raise(n.typeAnnotation.start,R.TypeCastInPattern)}return e}parseArrayLike(e,t,r,i){const n=super.parseArrayLike(e,t,r,i);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}checkLVal(e,t=64,r,i){if("TypeCastExpression"!==e.type)return super.checkLVal(e,t,r,i)}parseClassProperty(e){return this.match(l.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(l.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(l.colon)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(l.colon)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,r,i,n,s){t.variance&&this.unexpected(t.variance.start),delete t.variance,this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,r,i,n,s)}pushClassPrivateMethod(e,t,r,i){t.variance&&this.unexpected(t.variance.start),delete t.variance,this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,r,i)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.isRelational("<")&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual("implements")){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(l.comma))}}parsePropertyName(e,t){const r=this.flowParseVariance(),i=super.parsePropertyName(e,t);return e.variance=r,i}parseObjPropValue(e,t,r,i,n,s,a,o){let c;e.variance&&this.unexpected(e.variance.start),delete e.variance,this.isRelational("<")&&!a&&(c=this.flowParseTypeParameterDeclaration(),this.match(l.parenL)||this.unexpected()),super.parseObjPropValue(e,t,r,i,n,s,a,o),c&&((e.value||e).typeParameters=c)}parseAssignableListItemTypes(e){return this.eat(l.question)&&("Identifier"!==e.type&&this.raise(e.start,R.OptionalBindingPattern),e.optional=!0),this.match(l.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),this.resetEndLocation(e),e}parseMaybeDefault(e,t,r){const i=super.parseMaybeDefault(e,t,r);return"AssignmentPattern"===i.type&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(i.typeAnnotation.start,R.TypeBeforeInitializer),i}shouldParseDefaultImport(e){return hasTypeImportKind(e)?isMaybeDefaultImport(this.state):super.shouldParseDefaultImport(e)}parseImportSpecifierLocal(e,t,r,i){t.local=hasTypeImportKind(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),this.checkLVal(t.local,9,void 0,i),e.specifiers.push(this.finishNode(t,r))}maybeParseDefaultImportSpecifier(e){e.importKind="value";let t=null;if(this.match(l._typeof)?t="typeof":this.isContextual("type")&&(t="type"),t){const r=this.lookahead();"type"===t&&r.type===l.star&&this.unexpected(r.start),(isMaybeDefaultImport(r)||r.type===l.braceL||r.type===l.star)&&(this.next(),e.importKind=t)}return super.maybeParseDefaultImportSpecifier(e)}parseImportSpecifier(e){const t=this.startNode(),r=this.state.start,i=this.parseModuleExportName();let n=null;"Identifier"===i.type&&("type"===i.name?n="type":"typeof"===i.name&&(n="typeof"));let s=!1;if(this.isContextual("as")&&!this.isLookaheadContextual("as")){const e=this.parseIdentifier(!0);null===n||this.match(l.name)||this.state.type.keyword?(t.imported=i,t.importKind=null,t.local=this.parseIdentifier()):(t.imported=e,t.importKind=n,t.local=e.__clone())}else if(null!==n&&(this.match(l.name)||this.state.type.keyword))t.imported=this.parseIdentifier(!0),t.importKind=n,this.eatContextual("as")?t.local=this.parseIdentifier():(s=!0,t.local=t.imported.__clone());else{if("StringLiteral"===i.type)throw this.raise(t.start,S.ImportBindingIsString,i.value);s=!0,t.imported=i,t.importKind=null,t.local=t.imported.__clone()}const a=hasTypeImportKind(e),o=hasTypeImportKind(t);a&&o&&this.raise(r,R.ImportTypeShorthandOnlyInPureImport),(a||o)&&this.checkReservedType(t.local.name,t.local.start,!0),!s||a||o||this.checkReservedWord(t.local.name,t.start,!0,!0),this.checkLVal(t.local,9,void 0,"import specifier"),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))}parseFunctionParams(e,t){const r=e.kind;"get"!==r&&"set"!==r&&this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(l.colon)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(l.colon)){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(l.colon)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t,r){var i;let n,s=null;if(this.hasPlugin("jsx")&&(this.match(l.jsxTagStart)||this.isRelational("<"))){if(s=this.state.clone(),n=this.tryParse((()=>super.parseMaybeAssign(e,t,r)),s),!n.error)return n.node;const{context:i}=this.state;i[i.length-1]===v.j_oTag?i.length-=2:i[i.length-1]===v.j_expr&&(i.length-=1)}if((null==(i=n)?void 0:i.error)||this.isRelational("<")){var a,o;let i;s=s||this.state.clone();const l=this.tryParse((n=>{var s;i=this.flowParseTypeParameterDeclaration();const a=this.forwardNoArrowParamsConversionAt(i,(()=>{const n=super.parseMaybeAssign(e,t,r);return this.resetStartLocationFromNode(n,i),n}));"ArrowFunctionExpression"!==a.type&&(null==(s=a.extra)?void 0:s.parenthesized)&&n();const o=this.maybeUnwrapTypeCastExpression(a);return o.typeParameters=i,this.resetStartLocationFromNode(o,i),a}),s);let c=null;if(l.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(l.node).type){if(!l.error&&!l.aborted)return l.node.async&&this.raise(i.start,R.UnexpectedTypeParameterBeforeAsyncArrowFunction),l.node;c=l.node}if(null==(a=n)?void 0:a.node)return this.state=n.failState,n.node;if(c)return this.state=l.failState,c;if(null==(o=n)?void 0:o.thrown)throw n.error;if(l.thrown)throw l.error;throw this.raise(i.start,R.UnexpectedTokenAfterTypeParameter)}return super.parseMaybeAssign(e,t,r)}parseArrow(e){if(this.match(l.colon)){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(l.arrow)||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(){return this.match(l.colon)||super.shouldParseArrow()}setArrowFunctionParameters(e,t){-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,r){if(!r||-1===this.state.noArrowParamsConversionAt.indexOf(e.start))return super.checkParams(...arguments)}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(e,t,r,i){if("Identifier"===e.type&&"async"===e.name&&-1!==this.state.noArrowAt.indexOf(t)){this.next();const i=this.startNodeAt(t,r);i.callee=e,i.arguments=this.parseCallExpressionArguments(l.parenR,!1),e=this.finishNode(i,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.isRelational("<")){const n=this.state.clone(),s=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t,r)||e()),n);if(!s.error&&!s.aborted)return s.node;const a=this.tryParse((()=>super.parseSubscripts(e,t,r,i)),n);if(a.node&&!a.error)return a.node;if(s.node)return this.state=s.failState,s.node;if(a.node)return this.state=a.failState,a.node;throw s.error||a.error}return super.parseSubscripts(e,t,r,i)}parseSubscript(e,t,r,i,n){if(this.match(l.questionDot)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,i)return n.stop=!0,e;this.next();const s=this.startNodeAt(t,r);return s.callee=e,s.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(l.parenL),s.arguments=this.parseCallExpressionArguments(l.parenR,!1),s.optional=!0,this.finishCallExpression(s,!0)}if(!i&&this.shouldParseTypes()&&this.isRelational("<")){const i=this.startNodeAt(t,r);i.callee=e;const s=this.tryParse((()=>(i.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(l.parenL),i.arguments=this.parseCallExpressionArguments(l.parenR,!1),n.optionalChainMember&&(i.optional=!1),this.finishCallExpression(i,n.optionalChainMember))));if(s.node)return s.error&&(this.state=s.failState),s.node}return super.parseSubscript(e,t,r,i,n)}parseNewArguments(e){let t=null;this.shouldParseTypes()&&this.isRelational("<")&&(t=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),e.typeArguments=t,super.parseNewArguments(e)}parseAsyncArrowWithTypeParameters(e,t){const r=this.startNodeAt(e,t);if(this.parseFunctionParams(r),this.parseArrow(r))return this.parseArrowExpression(r,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(l.braceBarR,2)}parseTopLevel(e,t){const r=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(this.state.pos,R.UnterminatedFlowComment),r}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment())return this.state.hasFlowComment&&this.unexpected(null,R.NestedFlowComment),this.hasFlowCommentCompletion(),this.state.pos+=this.skipFlowComment(),void(this.state.hasFlowComment=!0);if(this.state.hasFlowComment){const e=this.input.indexOf("*-/",this.state.pos+=2);if(-1===e)throw this.raise(this.state.pos-2,S.UnterminatedComment);this.state.pos=e+3}else super.skipBlockComment()}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),i=this.input.charCodeAt(t+e+1);return 58===r&&58===i?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==i&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(this.state.pos,S.UnterminatedComment)}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:r}){this.raise(e,R.EnumBooleanMemberNotInitialized,r,t)}flowEnumErrorInvalidMemberName(e,{enumName:t,memberName:r}){const i=r[0].toUpperCase()+r.slice(1);this.raise(e,R.EnumInvalidMemberName,r,i,t)}flowEnumErrorDuplicateMemberName(e,{enumName:t,memberName:r}){this.raise(e,R.EnumDuplicateMemberName,r,t)}flowEnumErrorInconsistentMemberValues(e,{enumName:t}){this.raise(e,R.EnumInconsistentMemberValues,t)}flowEnumErrorInvalidExplicitType(e,{enumName:t,suppliedType:r}){return this.raise(e,null===r?R.EnumInvalidExplicitTypeUnknownSupplied:R.EnumInvalidExplicitType,t,r)}flowEnumErrorInvalidMemberInitializer(e,{enumName:t,explicitType:r,memberName:i}){let n=null;switch(r){case"boolean":case"number":case"string":n=R.EnumInvalidMemberInitializerPrimaryType;break;case"symbol":n=R.EnumInvalidMemberInitializerSymbolType;break;default:n=R.EnumInvalidMemberInitializerUnknownType}return this.raise(e,n,t,i,r)}flowEnumErrorNumberMemberNotInitialized(e,{enumName:t,memberName:r}){this.raise(e,R.EnumNumberMemberNotInitialized,t,r)}flowEnumErrorStringMemberInconsistentlyInitailized(e,{enumName:t}){this.raise(e,R.EnumStringMemberInconsistentlyInitailized,t)}flowEnumMemberInit(){const e=this.state.start,endOfInit=()=>this.match(l.comma)||this.match(l.braceR);switch(this.state.type){case l.num:{const t=this.parseLiteral(this.state.value,"NumericLiteral");return endOfInit()?{type:"number",pos:t.start,value:t}:{type:"invalid",pos:e}}case l.string:{const t=this.parseLiteral(this.state.value,"StringLiteral");return endOfInit()?{type:"string",pos:t.start,value:t}:{type:"invalid",pos:e}}case l._true:case l._false:{const t=this.parseBooleanLiteral();return endOfInit()?{type:"boolean",pos:t.start,value:t}:{type:"invalid",pos:e}}default:return{type:"invalid",pos:e}}}flowEnumMemberRaw(){const e=this.state.start;return{id:this.parseIdentifier(!0),init:this.eat(l.eq)?this.flowEnumMemberInit():{type:"none",pos:e}}}flowEnumCheckExplicitTypeMismatch(e,t,r){const{explicitType:i}=t;null!==i&&i!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){const r=new Set,i={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};for(;!this.match(l.braceR);){const n=this.startNode(),{id:s,init:a}=this.flowEnumMemberRaw(),o=s.name;if(""===o)continue;/^[a-z]/.test(o)&&this.flowEnumErrorInvalidMemberName(s.start,{enumName:e,memberName:o}),r.has(o)&&this.flowEnumErrorDuplicateMemberName(s.start,{enumName:e,memberName:o}),r.add(o);const c={enumName:e,explicitType:t,memberName:o};switch(n.id=s,a.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(a.pos,c,"boolean"),n.init=a.value,i.booleanMembers.push(this.finishNode(n,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(a.pos,c,"number"),n.init=a.value,i.numberMembers.push(this.finishNode(n,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(a.pos,c,"string"),n.init=a.value,i.stringMembers.push(this.finishNode(n,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(a.pos,c);case"none":switch(t){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(a.pos,c);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(a.pos,c);break;default:i.defaultedMembers.push(this.finishNode(n,"EnumDefaultedMember"))}}this.match(l.braceR)||this.expect(l.comma)}return i}flowEnumStringMembers(e,t,{enumName:r}){if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(let t=0;t<e.length;t++){const i=e[t];this.flowEnumErrorStringMemberInconsistentlyInitailized(i.start,{enumName:r})}return t}for(let e=0;e<t.length;e++){const i=t[e];this.flowEnumErrorStringMemberInconsistentlyInitailized(i.start,{enumName:r})}return e}flowEnumParseExplicitType({enumName:e}){if(this.eatContextual("of")){if(!this.match(l.name))throw this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:e,suppliedType:null});const{value:t}=this.state;return this.next(),"boolean"!==t&&"number"!==t&&"string"!==t&&"symbol"!==t&&this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:e,suppliedType:t}),t}return null}flowEnumBody(e,{enumName:t,nameLoc:r}){const i=this.flowEnumParseExplicitType({enumName:t});this.expect(l.braceL);const n=this.flowEnumMembers({enumName:t,explicitType:i});switch(i){case"boolean":return e.explicitType=!0,e.members=n.booleanMembers,this.expect(l.braceR),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=n.numberMembers,this.expect(l.braceR),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:t}),this.expect(l.braceR),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=n.defaultedMembers,this.expect(l.braceR),this.finishNode(e,"EnumSymbolBody");default:{const empty=()=>(e.members=[],this.expect(l.braceR),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const i=n.booleanMembers.length,s=n.numberMembers.length,a=n.stringMembers.length,o=n.defaultedMembers.length;if(i||s||a||o){if(i||s){if(!s&&!a&&i>=o){for(let e=0,r=n.defaultedMembers;e<r.length;e++){const i=r[e];this.flowEnumErrorBooleanMemberNotInitialized(i.start,{enumName:t,memberName:i.id.name})}return e.members=n.booleanMembers,this.expect(l.braceR),this.finishNode(e,"EnumBooleanBody")}if(!i&&!a&&s>=o){for(let e=0,r=n.defaultedMembers;e<r.length;e++){const i=r[e];this.flowEnumErrorNumberMemberNotInitialized(i.start,{enumName:t,memberName:i.id.name})}return e.members=n.numberMembers,this.expect(l.braceR),this.finishNode(e,"EnumNumberBody")}return this.flowEnumErrorInconsistentMemberValues(r,{enumName:t}),empty()}return e.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:t}),this.expect(l.braceR),this.finishNode(e,"EnumStringBody")}return empty()}}}flowParseEnumDeclaration(e){const t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),{enumName:t.name,nameLoc:t.start}),this.finishNode(e,"EnumDeclaration")}updateContext(e){this.match(l.name)&&"of"===this.state.value&&e===l.name&&"interface"===this.input.slice(this.state.lastTokStart,this.state.lastTokEnd)?this.state.exprAllowed=!1:super.updateContext(e)}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}},t},typescript:e=>class extends e{getScopeHandler(){return H}tsIsIdentifier(){return this.match(l.name)}tsNextTokenCanFollowModifier(){return this.next(),!(this.hasPrecedingLineBreak()||this.match(l.parenL)||this.match(l.parenR)||this.match(l.colon)||this.match(l.eq)||this.match(l.question)||this.match(l.bang))}tsParseModifier(e){if(!this.match(l.name))return;const t=this.state.value;return-1!==e.indexOf(t)&&this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))?t:void 0}tsParseModifiers(e,t){for(;;){const r=this.state.start,i=this.tsParseModifier(t);if(!i)break;Object.hasOwnProperty.call(e,i)&&this.raise(r,$.DuplicateModifier,i),e[i]=!0}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(l.braceR);case"HeritageClauseElement":return this.match(l.braceL);case"TupleElementTypes":return this.match(l.bracketR);case"TypeParametersOrArguments":return this.isRelational(">")}throw new Error("Unreachable")}tsParseList(e,t){const r=[];for(;!this.tsIsListTerminator(e);)r.push(t());return r}tsParseDelimitedList(e,t){return nonNull(this.tsParseDelimitedListWorker(e,t,!0))}tsParseDelimitedListWorker(e,t,r){const i=[];for(;!this.tsIsListTerminator(e);){const n=t();if(null==n)return;if(i.push(n),!this.eat(l.comma)){if(this.tsIsListTerminator(e))break;return void(r&&this.expect(l.comma))}}return i}tsParseBracketedList(e,t,r,i){i||(r?this.expect(l.bracketL):this.expectRelational("<"));const n=this.tsParseDelimitedList(e,t);return r?this.expect(l.bracketR):this.expectRelational(">"),n}tsParseImportType(){const e=this.startNode();return this.expect(l._import),this.expect(l.parenL),this.match(l.string)||this.raise(this.state.start,$.UnsupportedImportTypeArgument),e.argument=this.parseExprAtom(),this.expect(l.parenR),this.eat(l.dot)&&(e.qualifier=this.tsParseEntityName(!0)),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(e){let t=this.parseIdentifier();for(;this.eat(l.dot);){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(!1),!this.hasPrecedingLineBreak()&&this.isRelational("<")&&(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),this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();return this.expect(l._typeof),this.match(l._import)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(!0),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(){const e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsEatThenParseType(l._extends),e.default=this.tsEatThenParseType(l.eq),this.finishNode(e,"TSTypeParameter")}tsTryParseTypeParameters(){if(this.isRelational("<"))return this.tsParseTypeParameters()}tsParseTypeParameters(){const e=this.startNode();return this.isRelational("<")||this.match(l.jsxTagStart)?this.next():this.unexpected(),e.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0),0===e.params.length&&this.raise(e.start,$.EmptyTypeParameters),this.finishNode(e,"TSTypeParameterDeclaration")}tsTryNextParseConstantContext(){return this.lookahead().type===l._const?(this.next(),this.tsParseTypeReference()):null}tsFillSignature(e,t){const r=e===l.arrow;t.typeParameters=this.tsTryParseTypeParameters(),this.expect(l.parenL),t.parameters=this.tsParseBindingListForSignature(),(r||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){return this.parseBindingList(l.parenR,41).map((e=>("Identifier"!==e.type&&"RestElement"!==e.type&&"ObjectPattern"!==e.type&&"ArrayPattern"!==e.type&&this.raise(e.start,$.UnsupportedSignatureParameterKind,e.type),e)))}tsParseTypeMemberSemicolon(){this.eat(l.comma)||this.semicolon()}tsParseSignatureMember(e,t){return this.tsFillSignature(l.colon,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),this.eat(l.name)&&this.match(l.colon)}tsTryParseIndexSignature(e){if(!this.match(l.bracketL)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(l.bracketL);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(l.bracketR),e.parameters=[t];const r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){this.eat(l.question)&&(e.optional=!0);const r=e;if(t||!this.match(l.parenL)&&!this.isRelational("<")){const e=r;t&&(e.readonly=!0);const i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}{const e=r;return this.tsFillSignature(l.colon,e),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSMethodSignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(l.parenL)||this.isRelational("<"))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(l._new)){const t=this.startNode();return this.next(),this.match(l.parenL)||this.isRelational("<")?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}const t=!!this.tsParseModifier(["readonly"]),r=this.tsTryParseIndexSignature(e);return r?(t&&(e.readonly=!0),r):(this.parsePropertyName(e,!1),this.tsParsePropertyOrMethodSignature(e,t))}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(l.braceL);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(l.braceR),e}tsIsStartOfMappedType(){return this.next(),this.eat(l.plusMin)?this.isContextual("readonly"):(this.isContextual("readonly")&&this.next(),!!this.match(l.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(l._in))))}tsParseMappedTypeParameter(){const e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsExpectThenParseType(l._in),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){const e=this.startNode();return this.expect(l.braceL),this.match(l.plusMin)?(e.readonly=this.state.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(e.readonly=!0),this.expect(l.bracketL),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(l.bracketR),this.match(l.plusMin)?(e.optional=this.state.value,this.next(),this.expect(l.question)):this.eat(l.question)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(l.braceR),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1,r=null;return e.elementTypes.forEach((e=>{var i;let{type:n}=e;!t||"TSRestType"===n||"TSOptionalType"===n||"TSNamedTupleMember"===n&&e.optional||this.raise(e.start,$.OptionalTypeBeforeRequired),t=t||"TSNamedTupleMember"===n&&e.optional||"TSOptionalType"===n,"TSRestType"===n&&(n=(e=e.typeAnnotation).type);const s="TSNamedTupleMember"===n;r=null!=(i=r)?i:s,r!==s&&this.raise(e.start,$.MixedLabeledAndUnlabeledElements)})),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const{start:e,startLoc:t}=this.state,r=this.eat(l.ellipsis);let i=this.tsParseType();const n=this.eat(l.question);if(this.eat(l.colon)){const e=this.startNodeAtNode(i);e.optional=n,"TSTypeReference"!==i.type||i.typeParameters||"Identifier"!==i.typeName.type?(this.raise(i.start,$.InvalidTupleMemberLabel),e.label=i):e.label=i.typeName,e.elementType=this.tsParseType(),i=this.finishNode(e,"TSNamedTupleMember")}else if(n){const e=this.startNodeAtNode(i);e.typeAnnotation=i,i=this.finishNode(e,"TSOptionalType")}if(r){const r=this.startNodeAt(e,t);r.typeAnnotation=i,i=this.finishNode(r,"TSRestType")}return i}tsParseParenthesizedType(){const e=this.startNode();return this.expect(l.parenL),e.typeAnnotation=this.tsParseType(),this.expect(l.parenR),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e){const t=this.startNode();return"TSConstructorType"===e&&this.expect(l._new),this.tsFillSignature(l.arrow,t),this.finishNode(t,e)}tsParseLiteralTypeNode(){const e=this.startNode();return e.literal=(()=>{switch(this.state.type){case l.num:case l.bigint:case l.string:case l._true:case l._false:return this.parseExprAtom();default:throw this.unexpected()}})(),this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){const e=this.startNode();return e.literal=this.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case l.name:case l._void:case l._null:{const e=this.match(l._void)?"TSVoidKeyword":this.match(l._null)?"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!==e&&46!==this.lookaheadCharCode()){const t=this.startNode();return this.next(),this.finishNode(t,e)}return this.tsParseTypeReference()}case l.string:case l.num:case l.bigint:case l._true:case l._false:return this.tsParseLiteralTypeNode();case l.plusMin:if("-"===this.state.value){const e=this.startNode(),t=this.lookahead();if(t.type!==l.num&&t.type!==l.bigint)throw this.unexpected();return e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case l._this:return this.tsParseThisTypeOrThisTypePredicate();case l._typeof:return this.tsParseTypeQuery();case l._import:return this.tsParseImportType();case l.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case l.bracketL:return this.tsParseTupleType();case l.parenL:return this.tsParseParenthesizedType();case l.backQuote:return this.tsParseTemplateLiteralType()}throw this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(l.bracketL);)if(this.match(l.bracketR)){const t=this.startNodeAtNode(e);t.elementType=e,this.expect(l.bracketR),e=this.finishNode(t,"TSArrayType")}else{const t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(l.bracketR),e=this.finishNode(t,"TSIndexedAccessType")}return e}tsParseTypeOperator(e){const t=this.startNode();return this.expectContextual(e),t.operator=e,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===e&&this.tsCheckTypeAnnotationForReadOnly(t),this.finishNode(t,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(e.start,$.UnexpectedReadonly)}}tsParseInferType(){const e=this.startNode();this.expectContextual("infer");const t=this.startNode();return t.name=this.parseIdentifierName(t.start),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseTypeOperatorOrHigher(){const e=["keyof","unique","readonly"].find((e=>this.isContextual(e)));return e?this.tsParseTypeOperator(e):this.isContextual("infer")?this.tsParseInferType():this.tsParseArrayTypeOrHigher()}tsParseUnionOrIntersectionType(e,t,r){this.eat(r);let i=t();if(this.match(r)){const n=[i];for(;this.eat(r);)n.push(t());const s=this.startNodeAtNode(i);s.types=n,i=this.finishNode(s,e)}return i}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),l.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),l.bitwiseOR)}tsIsStartOfFunctionType(){return!!this.isRelational("<")||this.match(l.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(this.match(l.name)||this.match(l._this))return this.next(),!0;if(this.match(l.braceL)){let e=1;for(this.next();e>0;)this.match(l.braceL)?++e:this.match(l.braceR)&&--e,this.next();return!0}if(this.match(l.bracketL)){let e=1;for(this.next();e>0;)this.match(l.bracketL)?++e:this.match(l.bracketR)&&--e,this.next();return!0}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(l.parenR)||this.match(l.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(l.colon)||this.match(l.comma)||this.match(l.question)||this.match(l.eq))return!0;if(this.match(l.parenR)&&(this.next(),this.match(l.arrow)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{const t=this.startNode();this.expect(e);const r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(l._this)){let e=this.tsParseThisTypeOrThisTypePredicate();if("TSThisType"===e.type){const r=this.startNodeAtNode(t);r.parameterName=e,r.asserts=!0,e=this.finishNode(r,"TSTypePredicate")}else e.asserts=!0;return t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}const i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i){if(!r)return this.tsParseTypeAnnotation(!1,t);const e=this.startNodeAtNode(t);return e.parameterName=this.parseIdentifier(),e.asserts=r,t.typeAnnotation=this.finishNode(e,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}const n=this.tsParseTypeAnnotation(!1),s=this.startNodeAtNode(t);return s.parameterName=i,s.typeAnnotation=n,s.asserts=r,t.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(l.colon)?this.tsParseTypeOrTypePredicateAnnotation(l.colon):void 0}tsTryParseTypeAnnotation(){return this.match(l.colon)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(l.colon)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(!this.match(l.name)||"asserts"!==this.state.value||this.hasPrecedingLineBreak())return!1;const e=this.state.containsEsc;return this.next(),!(!this.match(l.name)&&!this.match(l._this))&&(e&&this.raise(this.state.lastTokStart,S.InvalidEscapedReservedWord,"asserts"),!0)}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType((()=>{e&&this.expect(l.colon),t.typeAnnotation=this.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){assert(this.state.inType);const e=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(l._extends))return e;const t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsParseNonConditionalType(),this.expect(l.question),t.trueType=this.tsParseType(),this.expect(l.colon),t.falseType=this.tsParseType(),this.finishNode(t,"TSConditionalType")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(l._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){const e=this.startNode(),t=this.tsTryNextParseConstantContext();return e.typeAnnotation=t||this.tsNextThenParseType(),this.expectRelational(">"),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.start,r=this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this));return r.length||this.raise(t,$.EmptyHeritageClauseType,e),r}tsParseExpressionWithTypeArguments(){const e=this.startNode();return e.expression=this.tsParseEntityName(!1),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}tsParseInterfaceDeclaration(e){e.id=this.parseIdentifier(),this.checkLVal(e.id,130,void 0,"typescript interface declaration"),e.typeParameters=this.tsTryParseTypeParameters(),this.eat(l._extends)&&(e.extends=this.tsParseHeritageClause("extends"));const t=this.startNode();return t.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(t,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkLVal(e.id,2,void 0,"typescript type alias"),e.typeParameters=this.tsTryParseTypeParameters(),e.typeAnnotation=this.tsInType((()=>{if(this.expect(l.eq),this.isContextual("intrinsic")&&this.lookahead().type!==l.dot){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}}tsEatThenParseType(e){return this.match(e)?this.tsNextThenParseType():void 0}tsExpectThenParseType(e){return this.tsDoThenParseType((()=>this.expect(e)))}tsNextThenParseType(){return this.tsDoThenParseType((()=>this.next()))}tsDoThenParseType(e){return this.tsInType((()=>(e(),this.tsParseType())))}tsParseEnumMember(){const e=this.startNode();return e.id=this.match(l.string)?this.parseExprAtom():this.parseIdentifier(!0),this.eat(l.eq)&&(e.initializer=this.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t){return t&&(e.const=!0),e.id=this.parseIdentifier(),this.checkLVal(e.id,t?779:267,void 0,"typescript enum declaration"),this.expect(l.braceL),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(l.braceR),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(0),this.expect(l.braceL),this.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,l.braceR),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier(),t||this.checkLVal(e.id,1024,null,"module or namespace declaration"),this.eat(l.dot)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(c),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual("global")?(e.global=!0,e.id=this.parseIdentifier()):this.match(l.string)?e.id=this.parseExprAtom():this.unexpected(),this.match(l.braceL)?(this.scope.enter(c),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t){return e.isExport=t||!1,e.id=this.parseIdentifier(),this.checkLVal(e.id,9,void 0,"import equals declaration"),this.expect(l.eq),e.moduleReference=this.tsParseModuleReference(),this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual("require")&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const e=this.startNode();if(this.expectContextual("require"),this.expect(l.parenL),!this.match(l.string))throw this.unexpected();return e.expression=this.parseExprAtom(),this.expect(l.parenR),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();return void 0!==r&&!1!==r?r:void(this.state=t)}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t,r=this.state.type;return this.isContextual("let")&&(r=l._var,t="let"),this.tsInDeclareContext((()=>{switch(r){case l._function:return e.declare=!0,this.parseFunctionStatement(e,!1,!0);case l._class:return e.declare=!0,this.parseClass(e,!0,!1);case l._const:if(this.match(l._const)&&this.isLookaheadContextual("enum"))return this.expect(l._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(e,!0);case l._var:return t=t||this.state.value,this.parseVarStatement(e,t);case l.name:{const t=this.state.value;return"global"===t?this.tsParseAmbientExternalModuleDeclaration(e):this.tsParseDeclaration(e,t,!0)}}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)}tsParseExpressionStatement(e,t){switch(t.name){case"declare":{const t=this.tsTryParseDeclare(e);if(t)return t.declare=!0,t;break}case"global":if(this.match(l.braceL)){this.scope.enter(c),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)}}tsParseDeclaration(e,t,r){switch(t){case"abstract":if(this.tsCheckLineTerminatorAndMatch(l._class,r)){const t=e;return t.abstract=!0,r&&(this.next(),this.match(l._class)||this.unexpected(null,l._class)),this.parseClass(t,!0,!1)}break;case"enum":if(r||this.match(l.name))return r&&this.next(),this.tsParseEnumDeclaration(e,!1);break;case"interface":if(this.tsCheckLineTerminatorAndMatch(l.name,r))return r&&this.next(),this.tsParseInterfaceDeclaration(e);break;case"module":if(r&&this.next(),this.match(l.string))return this.tsParseAmbientExternalModuleDeclaration(e);if(this.tsCheckLineTerminatorAndMatch(l.name,r))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"namespace":if(this.tsCheckLineTerminatorAndMatch(l.name,r))return r&&this.next(),this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminatorAndMatch(l.name,r))return r&&this.next(),this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminatorAndMatch(e,t){return(t||this.match(e))&&!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e,t){if(!this.isRelational("<"))return;const r=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const i=this.tsTryParseAndCatch((()=>{const r=this.startNodeAt(e,t);return r.typeParameters=this.tsParseTypeParameters(),super.parseFunctionParams(r),r.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(l.arrow),r}));return this.state.maybeInArrowParameters=r,i?this.parseArrowExpression(i,null,!0):void 0}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expectRelational("<"),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===e.params.length&&this.raise(e.start,$.EmptyTypeArguments),this.state.exprAllowed=!1,this.expectRelational(">"),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){if(this.match(l.name))switch(this.state.value){case"abstract":case"declare":case"enum":case"interface":case"module":case"namespace":case"type":return!0}return!1}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){const r=this.state.start,i=this.state.startLoc;let n,s=!1;void 0!==e&&(n=this.parseAccessModifier(),s=!!this.tsParseModifier(["readonly"]),!1===e&&(n||s)&&this.raise(r,$.UnexpectedParameterModifier));const a=this.parseMaybeDefault();this.parseAssignableListItemTypes(a);const o=this.parseMaybeDefault(a.start,a.loc.start,a);if(n||s){const e=this.startNodeAt(r,i);return t.length&&(e.decorators=t),n&&(e.accessibility=n),s&&(e.readonly=s),"Identifier"!==o.type&&"AssignmentPattern"!==o.type&&this.raise(e.start,$.UnsupportedParameterPropertyKind),e.parameter=o,this.finishNode(e,"TSParameterProperty")}return t.length&&(a.decorators=t),o}parseFunctionBodyAndFinish(e,t,r=!1){this.match(l.colon)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(l.colon));const i="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t?"TSDeclareMethod":void 0;i&&!this.match(l.braceL)&&this.isLineTerminator()?this.finishNode(e,i):"TSDeclareFunction"===i&&this.state.isDeclareContext&&(this.raise(e.start,$.DeclareFunctionHasImplementation),e.declare)?super.parseFunctionBodyAndFinish(e,i,r):super.parseFunctionBodyAndFinish(e,t,r)}registerFunctionStatementId(e){!e.body&&e.id?this.checkLVal(e.id,1024,null,"function name"):super.registerFunctionStatementId(...arguments)}tsCheckForInvalidTypeCasts(e){e.forEach((e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(e.typeAnnotation.start,$.UnexpectedTypeAnnotation)}))}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(...e){const t=super.parseArrayLike(...e);return"ArrayExpression"===t.type&&this.tsCheckForInvalidTypeCasts(t.elements),t}parseSubscript(e,t,r,i,n){if(!this.hasPrecedingLineBreak()&&this.match(l.bang)){this.state.exprAllowed=!1,this.next();const i=this.startNodeAt(t,r);return i.expression=e,this.finishNode(i,"TSNonNullExpression")}if(this.isRelational("<")){const s=this.tsTryParseAndCatch((()=>{if(!i&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t,r);if(e)return e}const s=this.startNodeAt(t,r);s.callee=e;const a=this.tsParseTypeArguments();if(a){if(!i&&this.eat(l.parenL))return s.arguments=this.parseCallExpressionArguments(l.parenR,!1),this.tsCheckForInvalidTypeCasts(s.arguments),s.typeParameters=a,this.finishCallExpression(s,n.optionalChainMember);if(this.match(l.backQuote)){const i=this.parseTaggedTemplateExpression(e,t,r,n);return i.typeParameters=a,i}}this.unexpected()}));if(s)return s}return super.parseSubscript(e,t,r,i,n)}parseNewArguments(e){if(this.isRelational("<")){const t=this.tsTryParseAndCatch((()=>{const e=this.tsParseTypeArguments();return this.match(l.parenL)||this.unexpected(),e}));t&&(e.typeParameters=t)}super.parseNewArguments(e)}parseExprOp(e,t,r,i){if(nonNull(l._in.binop)>i&&!this.hasPrecedingLineBreak()&&this.isContextual("as")){const n=this.startNodeAt(t,r);n.expression=e;const s=this.tsTryNextParseConstantContext();return n.typeAnnotation=s||this.tsNextThenParseType(),this.finishNode(n,"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,t,r,i)}return super.parseExprOp(e,t,r,i)}checkReservedWord(e,t,r,i){}checkDuplicateExports(){}parseImport(e){if(this.match(l.name)||this.match(l.star)||this.match(l.braceL)){const t=this.lookahead();if(this.match(l.name)&&t.type===l.eq)return this.tsParseImportEqualsDeclaration(e);!this.isContextual("type")||t.type===l.comma||t.type===l.name&&"from"===t.value||(e.importKind="type",this.next())}e.importKind||(e.importKind="value");const t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(t.start,"A type-only import can specify a default import or named bindings, but not both."),t}parseExport(e){if(this.match(l._import))return this.expect(l._import),this.tsParseImportEqualsDeclaration(e,!0);if(this.eat(l.eq)){const t=e;return t.expression=this.parseExpression(),this.semicolon(),this.finishNode(t,"TSExportAssignment")}if(this.eatContextual("as")){const t=e;return this.expectContextual("namespace"),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}return this.isContextual("type")&&this.lookahead().type===l.braceL?(this.next(),e.exportKind="type"):e.exportKind="value",super.parseExport(e)}isAbstractClass(){return this.isContextual("abstract")&&this.lookahead().type===l._class}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),this.parseClass(e,!0,!0),e.abstract=!0,e}if("interface"===this.state.value){const e=this.tsParseDeclaration(this.startNode(),this.state.value,!0);if(e)return e}return super.parseExportDefaultExpression()}parseStatementContent(e,t){if(this.state.type===l._const){const e=this.lookahead();if(e.type===l.name&&"enum"===e.value){const e=this.startNode();return this.expect(l._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(e,!0)}}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parseClassMember(e,t,r){this.tsParseModifiers(t,["declare"]);const i=this.parseAccessModifier();i&&(t.accessibility=i),this.tsParseModifiers(t,["declare"]);const callParseClassMember=()=>{super.parseClassMember(e,t,r)};t.declare?this.tsInDeclareContext(callParseClassMember):callParseClassMember()}parseClassMemberWithIsStatic(e,t,r,i){this.tsParseModifiers(t,["abstract","readonly","declare"]);const n=this.tsTryParseIndexSignature(t);if(n)return e.body.push(n),t.abstract&&this.raise(t.start,$.IndexSignatureHasAbstract),i&&this.raise(t.start,$.IndexSignatureHasStatic),t.accessibility&&this.raise(t.start,$.IndexSignatureHasAccessibility,t.accessibility),void(t.declare&&this.raise(t.start,$.IndexSignatureHasDeclare));super.parseClassMemberWithIsStatic(e,t,r,i)}parsePostMemberNameModifiers(e){this.eat(l.question)&&(e.optional=!0),e.readonly&&this.match(l.parenL)&&this.raise(e.start,$.ClassMethodHasReadonly),e.declare&&this.match(l.parenL)&&this.raise(e.start,$.ClassMethodHasDeclare)}parseExpressionStatement(e,t){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t):void 0)||super.parseExpressionStatement(e,t)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,r,i){if(!i||!this.match(l.question))return super.parseConditional(e,t,r,i);const n=this.tryParse((()=>super.parseConditional(e,t,r)));return n.node?(n.error&&(this.state=n.failState),n.node):(i.start=n.error.pos||this.state.start,e)}parseParenItem(e,t,r){if(e=super.parseParenItem(e,t,r),this.eat(l.question)&&(e.optional=!0,this.resetEndLocation(e)),this.match(l.colon)){const i=this.startNodeAt(t,r);return i.expression=e,i.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(i,"TSTypeCastExpression")}return e}parseExportDeclaration(e){const t=this.state.start,r=this.state.startLoc,i=this.eatContextual("declare");let n;return this.match(l.name)&&(n=this.tsTryParseExportDeclaration()),n||(n=super.parseExportDeclaration(e)),n&&("TSInterfaceDeclaration"===n.type||"TSTypeAliasDeclaration"===n.type||i)&&(e.exportKind="type"),n&&i&&(this.resetStartLocation(n,t,r),n.declare=!0),n}parseClassId(e,t,r){if((!t||r)&&this.isContextual("implements"))return;super.parseClassId(e,t,r,e.declare?1024:139);const i=this.tsTryParseTypeParameters();i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){!e.optional&&this.eat(l.bang)&&(e.definite=!0);const t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){return this.parseClassPropertyAnnotation(e),this.state.isDeclareContext&&this.match(l.eq)&&this.raise(this.state.start,$.DeclareClassFieldHasInitializer),super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(e.start,$.PrivateElementHasAbstract),e.accessibility&&this.raise(e.start,$.PrivateElementHasAccessibility,e.accessibility),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}pushClassMethod(e,t,r,i,n,s){const a=this.tsTryParseTypeParameters();a&&n&&this.raise(a.start,$.ConstructorHasTypeParameters),a&&(t.typeParameters=a),super.pushClassMethod(e,t,r,i,n,s)}pushClassPrivateMethod(e,t,r,i){const n=this.tsTryParseTypeParameters();n&&(t.typeParameters=n),super.pushClassPrivateMethod(e,t,r,i)}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&this.isRelational("<")&&(e.superTypeParameters=this.tsParseTypeArguments()),this.eatContextual("implements")&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,...t){const r=this.tsTryParseTypeParameters();r&&(e.typeParameters=r),super.parseObjPropValue(e,...t)}parseFunctionParams(e,t){const r=this.tsTryParseTypeParameters();r&&(e.typeParameters=r),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&this.eat(l.bang)&&(e.definite=!0);const r=this.tsTryParseTypeAnnotation();r&&(e.id.typeAnnotation=r,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(l.colon)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(...e){var t,r,i,n,s,a,o;let c,u,p,d;if(this.match(l.jsxTagStart)){if(c=this.state.clone(),u=this.tryParse((()=>super.parseMaybeAssign(...e)),c),!u.error)return u.node;const{context:t}=this.state;t[t.length-1]===v.j_oTag?t.length-=2:t[t.length-1]===v.j_expr&&(t.length-=1)}if(!(null==(t=u)?void 0:t.error)&&!this.isRelational("<"))return super.parseMaybeAssign(...e);c=c||this.state.clone();const h=this.tryParse((t=>{var r;d=this.tsParseTypeParameters();const i=super.parseMaybeAssign(...e);return("ArrowFunctionExpression"!==i.type||i.extra&&i.extra.parenthesized)&&t(),0!==(null==(r=d)?void 0:r.params.length)&&this.resetStartLocationFromNode(i,d),i.typeParameters=d,i}),c);if(!h.error&&!h.aborted)return h.node;if(!u&&(assert(!this.hasPlugin("jsx")),p=this.tryParse((()=>super.parseMaybeAssign(...e)),c),!p.error))return p.node;if(null==(r=u)?void 0:r.node)return this.state=u.failState,u.node;if(h.node)return this.state=h.failState,h.node;if(null==(i=p)?void 0:i.node)return this.state=p.failState,p.node;if(null==(n=u)?void 0:n.thrown)throw u.error;if(h.thrown)throw h.error;if(null==(s=p)?void 0:s.thrown)throw p.error;throw(null==(a=u)?void 0:a.error)||h.error||(null==(o=p)?void 0:o.error)}parseMaybeUnary(e){return!this.hasPlugin("jsx")&&this.isRelational("<")?this.tsParseTypeAssertion():super.parseMaybeUnary(e)}parseArrow(e){if(this.match(l.colon)){const t=this.tryParse((e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(l.colon);return!this.canInsertSemicolon()&&this.match(l.arrow)||e(),t}));if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e){this.eat(l.question)&&("Identifier"===e.type||this.state.isDeclareContext||this.state.inType||this.raise(e.start,$.PatternIsOptional),e.optional=!0);const t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}toAssignable(e){switch(e.type){case"TSTypeCastExpression":return super.toAssignable(this.typeCastToParameter(e));case"TSParameterProperty":default:return super.toAssignable(e);case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return e.expression=this.toAssignable(e.expression),e}}checkLVal(e,t=64,r,i){switch(e.type){case"TSTypeCastExpression":return;case"TSParameterProperty":return void this.checkLVal(e.parameter,t,r,"parameter property");case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return void this.checkLVal(e.expression,t,r,i);default:return void super.checkLVal(e,t,r,i)}}parseBindingAtom(){return this.state.type===l._this?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.isRelational("<")){const t=this.tsParseTypeArguments();if(this.match(l.parenL)){const r=super.parseMaybeDecoratorArguments(e);return r.typeParameters=t,r}this.unexpected(this.state.start,l.parenL)}return super.parseMaybeDecoratorArguments(e)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(l.bang)||this.match(l.colon)||super.isClassProperty()}parseMaybeDefault(...e){const t=super.parseMaybeDefault(...e);return"AssignmentPattern"===t.type&&t.typeAnnotation&&t.right.start<t.typeAnnotation.start&&this.raise(t.typeAnnotation.start,$.TypeAnnotationAfterAssign),t}getTokenFromCode(e){return!this.state.inType||62!==e&&60!==e?super.getTokenFromCode(e):this.finishOp(l.relational,1)}reScan_lt_gt(){if(this.match(l.relational)){const e=this.input.charCodeAt(this.state.start);60!==e&&62!==e||(this.state.pos-=1,this.readToken_lt_gt(e))}}toAssignableList(e){for(let t=0;t<e.length;t++){const r=e[t];if(r)switch(r.type){case"TSTypeCastExpression":e[t]=this.typeCastToParameter(r);break;case"TSAsExpression":case"TSTypeAssertion":this.state.maybeInArrowParameters?this.raise(r.start,$.UnexpectedTypeCastInParameter):e[t]=this.typeCastToParameter(r)}}return super.toAssignableList(...arguments)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.end,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(){return this.match(l.colon)||super.shouldParseArrow()}shouldParseAsyncArrow(){return this.match(l.colon)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.isRelational("<")){const t=this.tsTryParseAndCatch((()=>this.tsParseTypeArguments()));t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e),r=e.params[0];return r&&"Identifier"===r.type&&"this"===r.name?t+1:t}parseCatchClauseParam(){const e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInDeclareContext(e){const t=this.state.isDeclareContext;this.state.isDeclareContext=!0;try{return e()}finally{this.state.isDeclareContext=t}}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(l.modulo)){const e=this.state.start,t=this.startNode();if(this.eat(l.modulo),this.match(l.name)){const e=this.parseIdentifierName(this.state.start),r=this.createIdentifier(t,e);if(r.type="V8IntrinsicIdentifier",this.match(l.parenL))return r}this.unexpected(e)}}parseExprAtom(){return this.parseV8Intrinsic()||super.parseExprAtom(...arguments)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(l.placeholder)){const t=this.startNode();return this.next(),this.assertNoSpace("Unexpected space in placeholder."),t.name=super.parseIdentifier(!0),this.assertNoSpace("Unexpected space in placeholder."),this.expect(l.placeholder),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){return 37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(l.placeholder,2):super.getTokenFromCode(...arguments)}parseExprAtom(){return this.parsePlaceholder("Expression")||super.parseExprAtom(...arguments)}parseIdentifier(){return this.parsePlaceholder("Identifier")||super.parseIdentifier(...arguments)}checkReservedWord(e){void 0!==e&&super.checkReservedWord(...arguments)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom(...arguments)}checkLVal(e){"Placeholder"!==e.type&&super.checkLVal(...arguments)}toAssignable(e){return e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?(e.expectedNode="Pattern",e):super.toAssignable(...arguments)}verifyBreakContinue(e){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(...arguments)}parseExpressionStatement(e,t){if("Placeholder"!==t.type||t.extra&&t.extra.parenthesized)return super.parseExpressionStatement(...arguments);if(this.match(l.colon)){const r=e;return r.label=this.finishPlaceholder(t,"Identifier"),this.next(),r.body=this.parseStatement("label"),this.finishNode(r,"LabeledStatement")}return this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement")}parseBlock(){return this.parsePlaceholder("BlockStatement")||super.parseBlock(...arguments)}parseFunctionId(){return this.parsePlaceholder("Identifier")||super.parseFunctionId(...arguments)}parseClass(e,t,r){const i=t?"ClassDeclaration":"ClassExpression";this.next(),this.takeDecorators(e);const n=this.state.strict,s=this.parsePlaceholder("Identifier");if(s)if(this.match(l._extends)||this.match(l.placeholder)||this.match(l.braceL))e.id=s;else{if(r||!t)return e.id=null,e.body=this.finishPlaceholder(s,"ClassBody"),this.finishNode(e,i);this.unexpected(null,"A class name is required")}else this.parseClassId(e,t,r);return this.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||this.parseClassBody(!!e.superClass,n),this.finishNode(e,i)}parseExport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseExport(...arguments);if(!this.isContextual("from")&&!this.match(l.comma))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(t,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const r=this.startNode();return r.exported=t,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],super.parseExport(e)}isExportDefaultSpecifier(){if(this.match(l._default)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(l.placeholder.label,this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e){return!!(e.specifiers&&e.specifiers.length>0)||super.maybeParseExportDefaultSpecifier(...arguments)}checkExport(e){const{specifiers:t}=e;(null==t?void 0: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(...arguments);if(e.specifiers=[],!this.isContextual("from")&&!this.match(l.comma))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const r=this.startNodeAtNode(t);if(r.local=t,this.finishNode(r,"ImportDefaultSpecifier"),e.specifiers.push(r),this.eat(l.comma)){this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)}return this.expectContextual("from"),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource(...arguments)}}},ee=Object.keys(Z),te={sourceType:"script",sourceFilename:void 0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1};class re{constructor(){this.strict=void 0,this.curLine=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.maybeInArrowParameters=!1,this.inPipeline=!1,this.inType=!1,this.noAnonFunctionType=!1,this.inPropertyName=!1,this.hasFlowComment=!1,this.isIterator=!1,this.isDeclareContext=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.labels=[],this.decoratorStack=[[]],this.comments=[],this.trailingComments=[],this.leadingComments=[],this.commentStack=[],this.commentPreviousNode=null,this.pos=0,this.lineStart=0,this.type=l.eof,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.lastTokEnd=0,this.context=[v.braceStatement],this.exprAllowed=!0,this.containsEsc=!1,this.octalPositions=[],this.exportedIdentifiers=[],this.tokensLength=0}init(e){this.strict=!1!==e.strictMode&&"module"===e.sourceType,this.curLine=e.startLine,this.startLoc=this.endLoc=this.curPosition()}curPosition(){return new y(this.curLine,this.pos-this.lineStart)}clone(e){const t=new re,r=Object.keys(this);for(let i=0,n=r.length;i<n;i++){const n=r[i];let s=this[n];!e&&Array.isArray(s)&&(s=s.slice()),t[n]=s}return t}}var _isDigit=function(e){return e>=48&&e<=57};const ie=new Set(["g","m","s","i","y","u"]),ne={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},se={bin:[48,49]};se.oct=[...se.bin,50,51,52,53,54,55],se.dec=[...se.oct,56,57],se.hex=[...se.dec,65,66,67,68,69,70,97,98,99,100,101,102];class ae{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new T(e.startLoc,e.endLoc)}}class oe extends x{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.state=new re,this.state.init(e),this.input=t,this.length=t.length,this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.isLookahead||(this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new ae(this.state))),this.state.lastTokEnd=this.state.end,this.state.lastTokStart=this.state.start,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}lookahead(){const e=this.state;this.state=e.clone(!0),this.isLookahead=!0,this.next(),this.isLookahead=!1;const t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){m.lastIndex=e;return e+m.exec(this.input)[0].length}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}setStrict(e){if(this.state.strict=e,this.match(l.num)||this.match(l.string)){for(this.state.pos=this.state.start;this.state.pos<this.state.lineStart;)this.state.lineStart=this.input.lastIndexOf("\\n",this.state.lineStart-2)+1,--this.state.curLine;this.nextToken()}}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){const e=this.curContext();if((null==e?void 0:e.preserveSpace)||this.skipSpace(),this.state.octalPositions=[],this.state.start=this.state.pos,this.state.startLoc=this.state.curPosition(),this.state.pos>=this.length)return void this.finishToken(l.eof);const t=null==e?void 0:e.override;t?t(this):this.getTokenFromCode(this.input.codePointAt(this.state.pos))}pushComment(e,t,r,i,n,s){const a={type:e?"CommentBlock":"CommentLine",value:t,start:r,end:i,loc:new T(n,s)};this.options.tokens&&this.pushToken(a),this.state.comments.push(a),this.addComment(a)}skipBlockComment(){const e=this.state.curPosition(),t=this.state.pos,r=this.input.indexOf("*/",this.state.pos+2);if(-1===r)throw this.raise(t,S.UnterminatedComment);let i;for(this.state.pos=r+2,f.lastIndex=t;(i=f.exec(this.input))&&i.index<this.state.pos;)++this.state.curLine,this.state.lineStart=i.index+i[0].length;this.isLookahead||this.pushComment(!0,this.input.slice(t+2,r),t,this.state.pos,e,this.state.curPosition())}skipLineComment(e){const t=this.state.pos,r=this.state.curPosition();let i=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!isNewLine(i)&&++this.state.pos<this.length;)i=this.input.charCodeAt(this.state.pos);this.isLookahead||this.pushComment(!1,this.input.slice(t+e,this.state.pos),t,this.state.pos,r,this.state.curPosition())}skipSpace(){e:for(;this.state.pos<this.length;){const e=this.input.charCodeAt(this.state.pos);switch(e){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:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!isWhitespace(e))break e;++this.state.pos}}}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)}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const e=this.state.pos+1,t=this.input.charCodeAt(e);if(t>=48&&t<=57)throw this.raise(this.state.pos,S.UnexpectedDigitAfterHash);if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"hash"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,123===t?S.RecordExpressionHashIncorrectStartSyntaxType:S.TupleExpressionHashIncorrectStartSyntaxType);123===t?this.finishToken(l.braceHashL):this.finishToken(l.bracketHashL),this.state.pos+=2}else this.finishOp(l.hash,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(l.ellipsis)):(++this.state.pos,this.finishToken(l.dot))}readToken_slash(){if(this.state.exprAllowed&&!this.state.inType)return++this.state.pos,void this.readRegexp();61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(l.assign,2):this.finishOp(l.slash,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;!isNewLine(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(l.interpreterDirective,r),!0}readToken_mult_modulo(e){let t=42===e?l.star:l.modulo,r=1,i=this.input.charCodeAt(this.state.pos+1);const n=this.state.exprAllowed;42===e&&42===i&&(r++,i=this.input.charCodeAt(this.state.pos+2),t=l.exponent),61!==i||n||(r++,t=l.assign),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(l.pipeline,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,S.RecordExpressionBarIncorrectEndSyntaxType);return void this.finishOp(l.braceBarR,2)}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,S.TupleExpressionBarIncorrectEndSyntaxType);return void this.finishOp(l.bracketBarR,2)}}61!==t?this.finishOp(124===e?l.bitwiseOR:l.bitwiseAND,1):this.finishOp(l.assign,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(l.assign,3):this.finishOp(124===e?l.logicalOR:l.logicalAND,2)}readToken_caret(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(l.assign,2):this.finishOp(l.bitwiseXOR,1)}readToken_plus_min(e){const t=this.input.charCodeAt(this.state.pos+1);if(t===e)return 45!==t||this.inModule||62!==this.input.charCodeAt(this.state.pos+2)||0!==this.state.lastTokEnd&&!this.hasPrecedingLineBreak()?void this.finishOp(l.incDec,2):(this.skipLineComment(3),this.skipSpace(),void this.nextToken());61===t?this.finishOp(l.assign,2):this.finishOp(l.plusMin,1)}readToken_lt_gt(e){const t=this.input.charCodeAt(this.state.pos+1);let r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.state.pos+2)?3:2,61===this.input.charCodeAt(this.state.pos+r)?void this.finishOp(l.assign,r+1):void this.finishOp(l.bitShift,r)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.state.pos+2)||45!==this.input.charCodeAt(this.state.pos+3)?(61===t&&(r=2),void this.finishOp(l.relational,r)):(this.skipLineComment(4),this.skipSpace(),void this.nextToken())}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(l.arrow)):void this.finishOp(61===e?l.eq:l.bang,1);this.finishOp(l.equality,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(l.assign,3):this.finishOp(l.nullishCoalescing,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(l.question)):(this.state.pos+=2,this.finishToken(l.questionDot))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(l.parenL);case 41:return++this.state.pos,void this.finishToken(l.parenR);case 59:return++this.state.pos,void this.finishToken(l.semi);case 44:return++this.state.pos,void this.finishToken(l.comma);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,S.TupleExpressionBarIncorrectStartSyntaxType);this.finishToken(l.bracketBarL),this.state.pos+=2}else++this.state.pos,this.finishToken(l.bracketL);return;case 93:return++this.state.pos,void this.finishToken(l.bracketR);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,S.RecordExpressionBarIncorrectStartSyntaxType);this.finishToken(l.braceBarL),this.state.pos+=2}else++this.state.pos,this.finishToken(l.braceL);return;case 125:return++this.state.pos,void this.finishToken(l.braceR);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(l.doubleColon,2):(++this.state.pos,this.finishToken(l.colon)));case 63:return void this.readToken_question();case 96:return++this.state.pos,void this.finishToken(l.backQuote);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:case 62:return void this.readToken_lt_gt(e);case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(l.tilde,1);case 64:return++this.state.pos,void this.finishToken(l.at);case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(isIdentifierStart(e))return void this.readWord()}throw this.raise(this.state.pos,S.InvalidOrUnexpectedToken,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.pos;let t,r;for(;;){if(this.state.pos>=this.length)throw this.raise(e,S.UnterminatedRegExp);const i=this.input.charAt(this.state.pos);if(h.test(i))throw this.raise(e,S.UnterminatedRegExp);if(t)t=!1;else{if("["===i)r=!0;else if("]"===i&&r)r=!1;else if("/"===i&&!r)break;t="\\\\"===i}++this.state.pos}const i=this.input.slice(e,this.state.pos);++this.state.pos;let n="";for(;this.state.pos<this.length;){const e=this.input[this.state.pos],t=this.input.codePointAt(this.state.pos);if(ie.has(e))n.indexOf(e)>-1&&this.raise(this.state.pos+1,S.DuplicateRegExpFlags);else{if(!isIdentifierChar(t)&&92!==t)break;this.raise(this.state.pos+1,S.MalformedRegExpFlags)}++this.state.pos,n+=e}this.finishToken(l.regexp,{pattern:i,flags:n})}readInt(e,t,r,i=!0){const n=this.state.pos,s=16===e?ne.hex:ne.decBinOct,a=16===e?se.hex:10===e?se.dec:8===e?se.oct:se.bin;let o=!1,l=0;for(let n=0,c=null==t?1/0:t;n<c;++n){const t=this.input.charCodeAt(this.state.pos);let c;if(95!==t){if(c=t>=97?t-97+10:t>=65?t-65+10:_isDigit(t)?t-48:1/0,c>=e)if(this.options.errorRecovery&&c<=9)c=0,this.raise(this.state.start+n+2,S.InvalidDigit,e);else{if(!r)break;c=0,o=!0}++this.state.pos,l=l*e+c}else{const e=this.input.charCodeAt(this.state.pos-1),t=this.input.charCodeAt(this.state.pos+1);(-1===a.indexOf(t)||s.indexOf(e)>-1||s.indexOf(t)>-1||Number.isNaN(t))&&this.raise(this.state.pos,S.UnexpectedNumericSeparator),i||this.raise(this.state.pos,S.NumericSeparatorInEscapeSequence),++this.state.pos}}return this.state.pos===n||null!=t&&this.state.pos-n!==t||o?null:l}readRadixNumber(e){const t=this.state.pos;let r=!1;this.state.pos+=2;const i=this.readInt(e);null==i&&this.raise(this.state.start+2,S.InvalidDigit,e);const n=this.input.charCodeAt(this.state.pos);if(110===n)++this.state.pos,r=!0;else if(109===n)throw this.raise(t,S.InvalidDecimal);if(isIdentifierStart(this.input.codePointAt(this.state.pos)))throw this.raise(this.state.pos,S.NumberIdentifier);if(r){const e=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(l.bigint,e)}else this.finishToken(l.num,i)}readNumber(e){const t=this.state.pos;let r=!1,i=!1,n=!1,s=!1,a=!1;e||null!==this.readInt(10)||this.raise(t,S.InvalidNumber);const o=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(o){const e=this.input.slice(t,this.state.pos);if(this.state.strict)this.raise(t,S.StrictOctalLiteral);else{const r=e.indexOf("_");r>0&&this.raise(r+t,S.ZeroDigitNumericSeparator)}a=o&&!/[89]/.test(e)}let c=this.input.charCodeAt(this.state.pos);if(46!==c||a||(++this.state.pos,this.readInt(10),r=!0,c=this.input.charCodeAt(this.state.pos)),69!==c&&101!==c||a||(c=this.input.charCodeAt(++this.state.pos),43!==c&&45!==c||++this.state.pos,null===this.readInt(10)&&this.raise(t,S.InvalidOrMissingExponent),r=!0,s=!0,c=this.input.charCodeAt(this.state.pos)),110===c&&((r||o)&&this.raise(t,S.InvalidBigIntLiteral),++this.state.pos,i=!0),109===c&&(this.expectPlugin("decimal",this.state.pos),(s||o)&&this.raise(t,S.InvalidDecimal),++this.state.pos,n=!0),isIdentifierStart(this.input.codePointAt(this.state.pos)))throw this.raise(this.state.pos,S.NumberIdentifier);const u=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(i)return void this.finishToken(l.bigint,u);if(n)return void this.finishToken(l.decimal,u);const p=a?parseInt(u,8):parseFloat(u);this.finishToken(l.num,p)}readCodePoint(e){let t;if(123===this.input.charCodeAt(this.state.pos)){const r=++this.state.pos;if(t=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,!0,e),++this.state.pos,null!==t&&t>1114111){if(!e)return null;this.raise(r,S.InvalidCodePoint)}}else t=this.readHexChar(4,!1,e);return t}readString(e){let t="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,S.UnterminatedString);const i=this.input.charCodeAt(this.state.pos);if(i===e)break;if(92===i)t+=this.input.slice(r,this.state.pos),t+=this.readEscapedChar(!1),r=this.state.pos;else if(8232===i||8233===i)++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;else{if(isNewLine(i))throw this.raise(this.state.start,S.UnterminatedString);++this.state.pos}}t+=this.input.slice(r,this.state.pos++),this.finishToken(l.string,t)}readTmplToken(){let e="",t=this.state.pos,r=!1;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,S.UnterminatedTemplate);const i=this.input.charCodeAt(this.state.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(l.template)?36===i?(this.state.pos+=2,void this.finishToken(l.dollarBraceL)):(++this.state.pos,void this.finishToken(l.backQuote)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(l.template,r?null:e));if(92===i){e+=this.input.slice(t,this.state.pos);const i=this.readEscapedChar(!0);null===i?r=!0:e+=i,t=this.state.pos}else if(isNewLine(i)){switch(e+=this.input.slice(t,this.state.pos),++this.state.pos,i){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:e+="\\n";break;default:e+=String.fromCharCode(i)}++this.state.curLine,this.state.lineStart=this.state.pos,t=this.state.pos}else++this.state.pos}}readEscapedChar(e){const t=!e,r=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,r){case 110:return"\\n";case 114:return"\\r";case 120:{const e=this.readHexChar(2,!1,t);return null===e?null:String.fromCharCode(e)}case 117:{const e=this.readCodePoint(t);return null===e?null:String.fromCodePoint(e)}case 116:return"\\t";case 98:return"\\b";case 118:return"\\v";case 102:return"\\f";case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:this.state.lineStart=this.state.pos,++this.state.curLine;case 8232:case 8233:return"";case 56:case 57:if(e)return null;this.state.strict&&this.raise(this.state.pos-1,S.StrictNumericEscape);default:if(r>=48&&r<=55){const t=this.state.pos-1;let r=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.state.pos+=r.length-1;const n=this.input.charCodeAt(this.state.pos);if("0"!==r||56===n||57===n){if(e)return null;this.state.strict?this.raise(t,S.StrictNumericEscape):this.state.octalPositions.push(t)}return String.fromCharCode(i)}return String.fromCharCode(r)}}readHexChar(e,t,r){const i=this.state.pos,n=this.readInt(16,e,t,!1);return null===n&&(r?this.raise(i,S.InvalidEscapeSequence):this.state.pos=i-1),n}readWord1(){let e="";this.state.containsEsc=!1;const t=this.state.pos;let r=this.state.pos;for(;this.state.pos<this.length;){const i=this.input.codePointAt(this.state.pos);if(isIdentifierChar(i))this.state.pos+=i<=65535?1:2;else if(this.state.isIterator&&64===i)++this.state.pos;else{if(92!==i)break;{this.state.containsEsc=!0,e+=this.input.slice(r,this.state.pos);const i=this.state.pos,n=this.state.pos===t?isIdentifierStart:isIdentifierChar;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(this.state.pos,S.MissingUnicodeEscape);continue}++this.state.pos;const s=this.readCodePoint(!0);null!==s&&(n(s)||this.raise(i,S.EscapedCharNotAnIdentifier),e+=String.fromCodePoint(s)),r=this.state.pos}}}return e+this.input.slice(r,this.state.pos)}isIterator(e){return"@@iterator"===e||"@@asyncIterator"===e}readWord(){const e=this.readWord1(),t=o.get(e)||l.name;!this.state.isIterator||this.isIterator(e)&&this.state.inType||this.raise(this.state.pos,S.InvalidIdentifier,e),this.finishToken(t,e)}checkKeywordEscapes(){const e=this.state.type.keyword;e&&this.state.containsEsc&&this.raise(this.state.start,S.InvalidEscapedReservedWord,e)}braceIsBlock(e){const t=this.curContext();return t===v.functionExpression||t===v.functionStatement||(e!==l.colon||t!==v.braceStatement&&t!==v.braceExpression?e===l._return||e===l.name&&this.state.exprAllowed?this.hasPrecedingLineBreak():e===l._else||e===l.semi||e===l.eof||e===l.parenR||e===l.arrow||(e===l.braceL?t===v.braceStatement:e!==l._var&&e!==l._const&&e!==l.name&&(e===l.relational||!this.state.exprAllowed)):!t.isExpr)}updateContext(e){const t=this.state.type;let r;!t.keyword||e!==l.dot&&e!==l.questionDot?(r=t.updateContext)?r.call(this,e):this.state.exprAllowed=t.beforeExpr:this.state.exprAllowed=!1}}class le extends oe{addExtra(e,t,r){if(!e)return;(e.extra=e.extra||{})[t]=r}isRelational(e){return this.match(l.relational)&&this.state.value===e}expectRelational(e){this.isRelational(e)?this.next():this.unexpected(null,l.relational)}isContextual(e){return this.match(l.name)&&this.state.value===e&&!this.state.containsEsc}isUnparsedContextual(e,t){const r=e+t.length;return this.input.slice(e,r)===t&&(r===this.input.length||!isIdentifierChar(this.input.charCodeAt(r)))}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return this.isContextual(e)&&this.eat(l.name)}expectContextual(e,t){this.eatContextual(e)||this.unexpected(null,t)}canInsertSemicolon(){return this.match(l.eof)||this.match(l.braceR)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return h.test(this.input.slice(this.state.lastTokEnd,this.state.start))}isLineTerminator(){return this.eat(l.semi)||this.canInsertSemicolon()}semicolon(){this.isLineTerminator()||this.unexpected(null,l.semi)}expect(e,t){this.eat(e)||this.unexpected(t,e)}assertNoSpace(e="Unexpected space."){this.state.start>this.state.lastTokEnd&&this.raise(this.state.lastTokEnd,e)}unexpected(e,t="Unexpected token"){throw"string"!=typeof t&&(t=`Unexpected token, expected "${t.label}"`),this.raise(null!=e?e:this.state.start,t)}expectPlugin(e,t){if(!this.hasPlugin(e))throw this.raiseWithData(null!=t?t:this.state.start,{missingPlugin:[e]},`This experimental syntax requires enabling the parser plugin: \'${e}\'`);return!0}expectOnePlugin(e,t){if(!e.some((e=>this.hasPlugin(e))))throw this.raiseWithData(null!=t?t:this.state.start,{missingPlugin:e},`This experimental syntax requires enabling one of the following parser plugin(s): \'${e.join(", ")}\'`)}tryParse(e,t=this.state.clone()){const r={node:null};try{const i=e(((e=null)=>{throw r.node=e,r}));if(this.state.errors.length>t.errors.length){const e=this.state;return this.state=t,{node:i,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const i=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:i};if(e===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:i};throw e}}checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssign:r,doubleProto:i}=e;if(!t)return r>=0||i>=0;r>=0&&this.unexpected(r),i>=0&&this.raise(i,S.DuplicateProto)}isLiteralPropertyName(){return this.match(l.name)||!!this.state.type.keyword||this.match(l.string)||this.match(l.num)||this.match(l.bigint)||this.match(l.decimal)}}class ce{constructor(){this.shorthandAssign=-1,this.doubleProto=-1}}class ue{constructor(e,t,r){this.type=void 0,this.start=void 0,this.end=void 0,this.loc=void 0,this.range=void 0,this.leadingComments=void 0,this.trailingComments=void 0,this.innerComments=void 0,this.extra=void 0,this.type="",this.start=t,this.end=0,this.loc=new T(r),(null==e?void 0:e.options.ranges)&&(this.range=[t,0]),(null==e?void 0:e.filename)&&(this.loc.filename=e.filename)}__clone(){const e=new ue,t=Object.keys(this);for(let r=0,i=t.length;r<i;r++){const i=t[r];"leadingComments"!==i&&"trailingComments"!==i&&"innerComments"!==i&&(e[i]=this[i])}return e}}class pe extends le{startNode(){return new ue(this,this.state.start,this.state.startLoc)}startNodeAt(e,t){return new ue(this,e,t)}startNodeAtNode(e){return this.startNodeAt(e.start,e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEnd,this.state.lastTokEndLoc)}finishNodeAt(e,t,r,i){return e.type=t,e.end=r,e.loc.end=i,this.options.ranges&&(e.range[1]=r),this.processComment(e),e}resetStartLocation(e,t,r){e.start=t,e.loc.start=r,this.options.ranges&&(e.range[0]=t)}resetEndLocation(e,t=this.state.lastTokEnd,r=this.state.lastTokEndLoc){e.end=t,e.loc.end=r,this.options.ranges&&(e.range[1]=t)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.start,t.loc.start)}}const unwrapParenthesizedExpression=e=>"ParenthesizedExpression"===e.type?unwrapParenthesizedExpression(e.expression):e;class de extends pe{toAssignable(e){var t,r;let i;switch(("ParenthesizedExpression"===e.type||(null==(t=e.extra)?void 0:t.parenthesized))&&(i=unwrapParenthesizedExpression(e),"Identifier"!==i.type&&"MemberExpression"!==i.type&&this.raise(e.start,S.InvalidParenthesizedAssignment)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":e.type="ObjectPattern";for(let t=0,r=e.properties.length,i=r-1;t<r;t++){var n;const r=e.properties[t],s=t===i;this.toAssignableObjectExpressionProp(r,s),s&&"RestElement"===r.type&&(null==(n=e.extra)?void 0:n.trailingComma)&&this.raiseRestNotLast(e.extra.trailingComma)}break;case"ObjectProperty":this.toAssignable(e.value);break;case"SpreadElement":{this.checkToRestConversion(e),e.type="RestElement";const t=e.argument;this.toAssignable(t);break}case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,null==(r=e.extra)?void 0:r.trailingComma);break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,S.MissingEqInAssignment),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left);break;case"ParenthesizedExpression":this.toAssignable(i)}return e}toAssignableObjectExpressionProp(e,t){if("ObjectMethod"===e.type){const t="get"===e.kind||"set"===e.kind?S.PatternHasAccessor:S.PatternHasMethod;this.raise(e.key.start,t)}else"SpreadElement"!==e.type||t?this.toAssignable(e):this.raiseRestNotLast(e.start)}toAssignableList(e,t){let r=e.length;if(r){const i=e[r-1];if("RestElement"===(null==i?void 0:i.type))--r;else if("SpreadElement"===(null==i?void 0:i.type)){i.type="RestElement";const e=i.argument;this.toAssignable(e),"Identifier"!==e.type&&"MemberExpression"!==e.type&&"ArrayPattern"!==e.type&&"ObjectPattern"!==e.type&&this.unexpected(e.start),t&&this.raiseTrailingCommaAfterRest(t),--r}}for(let t=0;t<r;t++){const r=e[t];r&&(this.toAssignable(r),"RestElement"===r.type&&this.raiseRestNotLast(r.start))}return e}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(let t=0;t<e.length;t++){const r=e[t];"ArrayExpression"===(null==r?void 0:r.type)&&this.toReferencedListDeep(r.elements)}}parseSpread(e,t){const r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(e,void 0,t),this.finishNode(r,"SpreadElement")}parseRestBinding(){const e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case l.bracketL:{const e=this.startNode();return this.next(),e.elements=this.parseBindingList(l.bracketR,93,!0),this.finishNode(e,"ArrayPattern")}case l.braceL:return this.parseObjectLike(l.braceR,!0)}return this.parseIdentifier()}parseBindingList(e,t,r,i){const n=[];let s=!0;for(;!this.eat(e);)if(s?s=!1:this.expect(l.comma),r&&this.match(l.comma))n.push(null);else{if(this.eat(e))break;if(this.match(l.ellipsis)){n.push(this.parseAssignableListItemTypes(this.parseRestBinding())),this.checkCommaAfterRest(t),this.expect(e);break}{const e=[];for(this.match(l.at)&&this.hasPlugin("decorators")&&this.raise(this.state.start,S.UnsupportedParameterDecorator);this.match(l.at);)e.push(this.parseDecorator());n.push(this.parseAssignableListItem(i,e))}}return n}parseAssignableListItem(e,t){const r=this.parseMaybeDefault();this.parseAssignableListItemTypes(r);const i=this.parseMaybeDefault(r.start,r.loc.start,r);return t.length&&(r.decorators=t),i}parseAssignableListItemTypes(e){return e}parseMaybeDefault(e,t,r){var i,n,s;if(t=null!=(i=t)?i:this.state.startLoc,e=null!=(n=e)?n:this.state.start,r=null!=(s=r)?s:this.parseBindingAtom(),!this.eat(l.eq))return r;const a=this.startNodeAt(e,t);return a.left=r,a.right=this.parseMaybeAssignAllowIn(),this.finishNode(a,"AssignmentPattern")}checkLVal(e,t=64,r,i,n,s=!1){switch(e.type){case"Identifier":if(this.state.strict&&(s?isStrictBindReservedWord(e.name,this.inModule):isStrictBindOnlyReservedWord(e.name))&&this.raise(e.start,t===d?S.StrictEvalArguments:S.StrictEvalArgumentsBinding,e.name),r){const t=`_${e.name}`;r[t]?this.raise(e.start,S.ParamDupe):r[t]=!0}n&&"let"===e.name&&this.raise(e.start,S.LetInLexicalBinding),t&d||this.scope.declareName(e.name,t,e.start);break;case"MemberExpression":t!==d&&this.raise(e.start,S.InvalidPropertyBindingPattern);break;case"ObjectPattern":for(let i=0,s=e.properties;i<s.length;i++){let e=s[i];if("ObjectProperty"===e.type)e=e.value;else if("ObjectMethod"===e.type)continue;this.checkLVal(e,t,r,"object destructuring pattern",n)}break;case"ArrayPattern":for(let i=0,s=e.elements;i<s.length;i++){const e=s[i];e&&this.checkLVal(e,t,r,"array destructuring pattern",n)}break;case"AssignmentPattern":this.checkLVal(e.left,t,r,"assignment pattern");break;case"RestElement":this.checkLVal(e.argument,t,r,"rest element");break;case"ParenthesizedExpression":this.checkLVal(e.expression,t,r,"parenthesized expression");break;default:this.raise(e.start,t===d?S.InvalidLhs:S.InvalidLhsBinding,i)}}checkToRestConversion(e){"Identifier"!==e.argument.type&&"MemberExpression"!==e.argument.type&&this.raise(e.argument.start,S.InvalidRestAssignmentPattern)}checkCommaAfterRest(e){this.match(l.comma)&&(this.lookaheadCharCode()===e?this.raiseTrailingCommaAfterRest(this.state.start):this.raiseRestNotLast(this.state.start))}raiseRestNotLast(e){throw this.raise(e,S.ElementAfterRest)}raiseTrailingCommaAfterRest(e){this.raise(e,S.RestTrailingComma)}}class he{constructor(e=0){this.type=void 0,this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class fe extends he{constructor(e){super(e),this.errors=new Map}recordDeclarationError(e,t){this.errors.set(e,t)}clearDeclarationError(e){this.errors.delete(e)}iterateErrors(e){this.errors.forEach(e)}}class me{constructor(e){this.stack=[new he],this.raise=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const{stack:r}=this;let i=r.length-1,n=r[i];for(;!n.isCertainlyParameterDeclaration();){if(!n.canBeArrowParameterDeclaration())return;n.recordDeclarationError(e,t),n=r[--i]}this.raise(e,t)}recordAsyncArrowParametersError(e,t){const{stack:r}=this;let i=r.length-1,n=r[i];for(;n.canBeArrowParameterDeclaration();)2===n.type&&n.recordDeclarationError(e,t),n=r[--i]}validateAsPattern(){const{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(((t,r)=>{this.raise(r,t);let i=e.length-2,n=e[i];for(;n.canBeArrowParameterDeclaration();)n.clearDeclarationError(r),n=e[--i]}))}}function newExpressionScope(){return new he}class ye extends de{checkProto(e,t,r,i){if("SpreadElement"===e.type||"ObjectMethod"===e.type||e.computed||e.shorthand)return;const n=e.key;if("__proto__"===("Identifier"===n.type?n.name:n.value)){if(t)return void this.raise(n.start,S.RecordNoProto);r.used&&(i?-1===i.doubleProto&&(i.doubleProto=n.start):this.raise(n.start,S.DuplicateProto)),r.used=!0}}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&e.start===t}getExpression(){let e=0;this.hasPlugin("topLevelAwait")&&this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e),this.nextToken();const t=this.parseExpression();return this.match(l.eof)||this.unexpected(),t.comments=this.state.comments,t.errors=this.state.errors,t}parseExpression(e,t){return e?this.disallowInAnd((()=>this.parseExpressionBase(t))):this.allowInAnd((()=>this.parseExpressionBase(t)))}parseExpressionBase(e){const t=this.state.start,r=this.state.startLoc,i=this.parseMaybeAssign(e);if(this.match(l.comma)){const n=this.startNodeAt(t,r);for(n.expressions=[i];this.eat(l.comma);)n.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(n.expressions),this.finishNode(n,"SequenceExpression")}return i}parseMaybeAssignDisallowIn(e,t,r){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t,r)))}parseMaybeAssignAllowIn(e,t,r){return this.allowInAnd((()=>this.parseMaybeAssign(e,t,r)))}parseMaybeAssign(e,t,r){const i=this.state.start,n=this.state.startLoc;if(this.isContextual("yield")&&this.prodParam.hasYield){this.state.exprAllowed=!0;let e=this.parseYield();return t&&(e=t.call(this,e,i,n)),e}let s;e?s=!1:(e=new ce,s=!0),(this.match(l.parenL)||this.match(l.name))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(e,r);if(t&&(a=t.call(this,a,i,n)),this.state.type.isAssign){const t=this.startNodeAt(i,n),r=this.state.value;return t.operator=r,this.match(l.eq)?(t.left=this.toAssignable(a),e.doubleProto=-1):t.left=a,e.shorthandAssign>=t.left.start&&(e.shorthandAssign=-1),this.checkLVal(a,void 0,void 0,"assignment expression"),this.next(),t.right=this.parseMaybeAssign(),this.finishNode(t,"AssignmentExpression")}return s&&this.checkExpressionErrors(e,!0),a}parseMaybeConditional(e,t){const r=this.state.start,i=this.state.startLoc,n=this.state.potentialArrowAt,s=this.parseExprOps(e);return this.shouldExitDescending(s,n)?s:this.parseConditional(s,r,i,t)}parseConditional(e,t,r,i){if(this.eat(l.question)){const i=this.startNodeAt(t,r);return i.test=e,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(l.colon),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return e}parseExprOps(e){const t=this.state.start,r=this.state.startLoc,i=this.state.potentialArrowAt,n=this.parseMaybeUnary(e);return this.shouldExitDescending(n,i)?n:this.parseExprOp(n,t,r,-1)}parseExprOp(e,t,r,i){let n=this.state.type.binop;if(null!=n&&(this.prodParam.hasIn||!this.match(l._in))&&n>i){const s=this.state.type;if(s===l.pipeline){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.state.inPipeline=!0,this.checkPipelineAtInfixOperator(e,t)}const a=this.startNodeAt(t,r);a.left=e,a.operator=this.state.value,s!==l.exponent||"UnaryExpression"!==e.type||!this.options.createParenthesizedExpressions&&e.extra&&e.extra.parenthesized||this.raise(e.argument.start,S.UnexpectedTokenUnaryExponentiation);const o=s===l.logicalOR||s===l.logicalAND,c=s===l.nullishCoalescing;if(c&&(n=l.logicalAND.binop),this.next(),s===l.pipeline&&"minimal"===this.getPluginOption("pipelineOperator","proposal")&&this.match(l.name)&&"await"===this.state.value&&this.prodParam.hasAwait)throw this.raise(this.state.start,S.UnexpectedAwaitAfterPipelineBody);a.right=this.parseExprOpRightExpr(s,n),this.finishNode(a,o||c?"LogicalExpression":"BinaryExpression");const u=this.state.type;if(c&&(u===l.logicalOR||u===l.logicalAND)||o&&u===l.nullishCoalescing)throw this.raise(this.state.start,S.MixingCoalesceWithLogical);return this.parseExprOp(a,t,r,i)}return e}parseExprOpRightExpr(e,t){const r=this.state.start,i=this.state.startLoc;if(e===l.pipeline)switch(this.getPluginOption("pipelineOperator","proposal")){case"smart":return this.withTopicPermittingContext((()=>this.parseSmartPipelineBody(this.parseExprOpBaseRightExpr(e,t),r,i)));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){const r=this.state.start,i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnary(),r,i,e.rightAssociative?t-1:t)}parseMaybeUnary(e){if(this.isContextual("await")&&this.isAwaitAllowed())return this.parseAwait();const t=this.match(l.incDec),r=this.startNode();if(this.state.type.prefix){r.operator=this.state.value,r.prefix=!0,this.match(l._throw)&&this.expectPlugin("throwExpressions");const i=this.match(l._delete);if(this.next(),r.argument=this.parseMaybeUnary(),this.checkExpressionErrors(e,!0),this.state.strict&&i){const e=r.argument;"Identifier"===e.type?this.raise(r.start,S.StrictDelete):"MemberExpression"!==e.type&&"OptionalMemberExpression"!==e.type||"PrivateName"!==e.property.type||this.raise(r.start,S.DeletePrivateField)}if(!t)return this.finishNode(r,"UnaryExpression")}return this.parseUpdate(r,t,e)}parseUpdate(e,t,r){if(t)return this.checkLVal(e.argument,void 0,void 0,"prefix operation"),this.finishNode(e,"UpdateExpression");const i=this.state.start,n=this.state.startLoc;let s=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return s;for(;this.state.type.postfix&&!this.canInsertSemicolon();){const e=this.startNodeAt(i,n);e.operator=this.state.value,e.prefix=!1,e.argument=s,this.checkLVal(s,void 0,void 0,"postfix operation"),this.next(),s=this.finishNode(e,"UpdateExpression")}return s}parseExprSubscripts(e){const t=this.state.start,r=this.state.startLoc,i=this.state.potentialArrowAt,n=this.parseExprAtom(e);return this.shouldExitDescending(n,i)?n:this.parseSubscripts(n,t,r)}parseSubscripts(e,t,r,i){const n={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,r,i,n),n.maybeAsyncArrow=!1}while(!n.stop);return e}parseSubscript(e,t,r,i,n){if(!i&&this.eat(l.doubleColon))return this.parseBind(e,t,r,i,n);if(this.match(l.backQuote))return this.parseTaggedTemplateExpression(e,t,r,n);let s=!1;if(this.match(l.questionDot)){if(n.optionalChainMember=s=!0,i&&40===this.lookaheadCharCode())return n.stop=!0,e;this.next()}return!i&&this.match(l.parenL)?this.parseCoverCallAndAsyncArrowHead(e,t,r,n,s):s||this.match(l.bracketL)||this.eat(l.dot)?this.parseMember(e,t,r,n,s):(n.stop=!0,e)}parseMember(e,t,r,i,n){const s=this.startNodeAt(t,r),a=this.eat(l.bracketL);s.object=e,s.computed=a;const o=a?this.parseExpression():this.parseMaybePrivateName(!0);return"PrivateName"===o.type&&("Super"===s.object.type&&this.raise(t,S.SuperPrivateField),this.classScope.usePrivateName(o.id.name,o.start)),s.property=o,a&&this.expect(l.bracketR),i.optionalChainMember?(s.optional=n,this.finishNode(s,"OptionalMemberExpression")):this.finishNode(s,"MemberExpression")}parseBind(e,t,r,i,n){const s=this.startNodeAt(t,r);return s.object=e,s.callee=this.parseNoCallExpr(),n.stop=!0,this.parseSubscripts(this.finishNode(s,"BindExpression"),t,r,i)}parseCoverCallAndAsyncArrowHead(e,t,r,i,n){const s=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0,this.next();let a=this.startNodeAt(t,r);return a.callee=e,i.maybeAsyncArrow&&this.expressionScope.enter(new fe(2)),i.optionalChainMember&&(a.optional=n),a.arguments=n?this.parseCallExpressionArguments(l.parenR,!1):this.parseCallExpressionArguments(l.parenR,i.maybeAsyncArrow,"Import"===e.type,"Super"!==e.type,a),this.finishCallExpression(a,i.optionalChainMember),i.maybeAsyncArrow&&this.shouldParseAsyncArrow()&&!n?(i.stop=!0,this.expressionScope.validateAsPattern(),this.expressionScope.exit(),a=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t,r),a)):(i.maybeAsyncArrow&&this.expressionScope.exit(),this.toReferencedArguments(a)),this.state.maybeInArrowParameters=s,a}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r,i){const n=this.startNodeAt(t,r);return n.tag=e,n.quasi=this.parseTemplate(!0),i.optionalChainMember&&this.raise(t,S.OptionalChainingNoTemplate),this.finishNode(n,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&e.start===this.state.potentialArrowAt}finishCallExpression(e,t){if("Import"===e.callee.type)if(2===e.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),0===e.arguments.length||e.arguments.length>2)this.raise(e.start,S.ImportCallArity,this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?"one or two arguments":"one argument");else for(let t=0,r=e.arguments;t<r.length;t++){const e=r[t];"SpreadElement"===e.type&&this.raise(e.start,S.ImportCallSpreadArgument)}return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r,i,n){const s=[];let a,o=!0;const c=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(o)o=!1;else if(this.expect(l.comma),this.match(e)){!r||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(this.state.lastTokStart,S.ImportCallArgumentTrailingComma),n&&this.addExtra(n,"trailingComma",this.state.lastTokStart),this.next();break}this.match(l.parenL)&&!a&&(a=this.state.start),s.push(this.parseExprListItem(!1,t?new ce:void 0,t?{start:0}:void 0,i))}return t&&a&&this.shouldParseAsyncArrow()&&this.unexpected(),this.state.inFSharpPipelineDirectBody=c,s}shouldParseAsyncArrow(){return this.match(l.arrow)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var r;return this.expect(l.arrow),this.parseArrowExpression(e,t.arguments,!0,null==(r=t.extra)?void 0:r.trailingComma),e}parseNoCallExpr(){const e=this.state.start,t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,t,!0)}parseExprAtom(e){this.state.type===l.slash&&this.readRegexp();const t=this.state.potentialArrowAt===this.state.start;let r;switch(this.state.type){case l._super:return this.parseSuper();case l._import:return r=this.startNode(),this.next(),this.match(l.dot)?this.parseImportMetaProperty(r):(this.match(l.parenL)||this.raise(this.state.lastTokStart,S.UnsupportedImport),this.finishNode(r,"Import"));case l._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case l.name:{const e=this.state.containsEsc,r=this.parseIdentifier();if(!e&&"async"===r.name&&!this.canInsertSemicolon()){if(this.match(l._function)){const e=this.state.context.length-1;if(this.state.context[e]!==v.functionStatement)throw new Error("Internal error");return this.state.context[e]=v.functionExpression,this.next(),this.parseFunction(this.startNodeAtNode(r),void 0,!0)}if(this.match(l.name))return this.parseAsyncArrowUnaryFunction(r)}return t&&this.match(l.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(r),[r],!1)):r}case l._do:return this.parseDo();case l.regexp:{const e=this.state.value;return r=this.parseLiteral(e.value,"RegExpLiteral"),r.pattern=e.pattern,r.flags=e.flags,r}case l.num:return this.parseLiteral(this.state.value,"NumericLiteral");case l.bigint:return this.parseLiteral(this.state.value,"BigIntLiteral");case l.decimal:return this.parseLiteral(this.state.value,"DecimalLiteral");case l.string:return this.parseLiteral(this.state.value,"StringLiteral");case l._null:return r=this.startNode(),this.next(),this.finishNode(r,"NullLiteral");case l._true:case l._false:return this.parseBooleanLiteral();case l.parenL:return this.parseParenAndDistinguishExpression(t);case l.bracketBarL:case l.bracketHashL:return this.parseArrayLike(this.state.type===l.bracketBarL?l.bracketBarR:l.bracketR,!1,!0,e);case l.bracketL:return this.parseArrayLike(l.bracketR,!0,!1,e);case l.braceBarL:case l.braceHashL:return this.parseObjectLike(this.state.type===l.braceBarL?l.braceBarR:l.braceR,!1,!0,e);case l.braceL:return this.parseObjectLike(l.braceR,!1,!1,e);case l._function:return this.parseFunctionOrFunctionSent();case l.at:this.parseDecorators();case l._class:return r=this.startNode(),this.takeDecorators(r),this.parseClass(r,!1);case l._new:return this.parseNewOrNewTarget();case l.backQuote:return this.parseTemplate(!1);case l.doubleColon:{r=this.startNode(),this.next(),r.object=null;const e=r.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(r,"BindExpression");throw this.raise(e.start,S.UnsupportedBind)}case l.hash:{if(this.state.inPipeline)return r=this.startNode(),"smart"!==this.getPluginOption("pipelineOperator","proposal")&&this.raise(r.start,S.PrimaryTopicRequiresSmartPipeline),this.next(),this.primaryTopicReferenceIsAllowedInCurrentTopicContext()||this.raise(r.start,S.PrimaryTopicNotAllowed),this.registerTopicReference(),this.finishNode(r,"PipelinePrimaryTopicReference");const e=this.input.codePointAt(this.state.end);if(isIdentifierStart(e)||92===e){const e=this.state.start;if(r=this.parseMaybePrivateName(!0),this.match(l._in))this.expectPlugin("privateIn"),this.classScope.usePrivateName(r.id.name,r.start);else{if(!this.hasPlugin("privateIn"))throw this.unexpected(e);this.raise(this.state.start,S.PrivateInExpectedIn,r.id.name)}return r}}case l.relational:if("<"===this.state.value){const e=this.input.codePointAt(this.nextTokenStart());(isIdentifierStart(e)||62===e)&&this.expectOnePlugin(["jsx","flow","typescript"])}default:throw this.unexpected()}}parseAsyncArrowUnaryFunction(e){const t=this.startNodeAtNode(e);this.prodParam.enter(functionFlags(!0,this.prodParam.hasYield));const r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(this.state.pos,S.LineTerminatorBeforeArrow),this.expect(l.arrow),this.parseArrowExpression(t,r,!0),t}parseDo(){this.expectPlugin("doExpressions");const e=this.startNode();this.next();const t=this.state.labels;return this.state.labels=[],e.body=this.parseBlock(),this.state.labels=t,this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();return this.next(),!this.match(l.parenL)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(e.start,S.UnexpectedSuper):this.raise(e.start,S.SuperNotAllowed),this.match(l.parenL)||this.match(l.bracketL)||this.match(l.dot)||this.raise(e.start,S.UnsupportedSuper),this.finishNode(e,"Super")}parseBooleanLiteral(){const e=this.startNode();return e.value=this.match(l._true),this.next(),this.finishNode(e,"BooleanLiteral")}parseMaybePrivateName(e){if(this.match(l.hash)){this.expectOnePlugin(["classPrivateProperties","classPrivateMethods"]),e||this.raise(this.state.pos,S.UnexpectedPrivateField);const t=this.startNode();return this.next(),this.assertNoSpace("Unexpected space between # and identifier"),t.id=this.parseIdentifier(!0),this.finishNode(t,"PrivateName")}return this.parseIdentifier(!0)}parseFunctionOrFunctionSent(){const e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(l.dot)){const t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,r){e.meta=t,"function"===t.name&&"sent"===r&&(this.isContextual(r)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected());const i=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||i)&&this.raise(e.property.start,S.UnsupportedMetaProperty,t.name,r),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){const t=this.createIdentifier(this.startNodeAtNode(e),"import");return this.next(),this.isContextual("meta")&&(this.inModule||this.raiseWithData(t.start,{code:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},S.ImportMetaOutsideModule),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")}parseLiteral(e,t,r,i){r=r||this.state.start,i=i||this.state.startLoc;const n=this.startNodeAt(r,i);return this.addExtra(n,"rawValue",e),this.addExtra(n,"raw",this.input.slice(r,this.state.end)),n.value=e,this.next(),this.finishNode(n,t)}parseParenAndDistinguishExpression(e){const t=this.state.start,r=this.state.startLoc;let i;this.next(),this.expressionScope.enter(new fe(1));const n=this.state.maybeInArrowParameters,s=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const a=this.state.start,o=this.state.startLoc,c=[],u=new ce,p={start:0};let d,h,f=!0;for(;!this.match(l.parenR);){if(f)f=!1;else if(this.expect(l.comma,p.start||null),this.match(l.parenR)){h=this.state.start;break}if(this.match(l.ellipsis)){const e=this.state.start,t=this.state.startLoc;d=this.state.start,c.push(this.parseParenItem(this.parseRestBinding(),e,t)),this.checkCommaAfterRest(41);break}c.push(this.parseMaybeAssignAllowIn(u,this.parseParenItem,p))}const m=this.state.lastTokEnd,y=this.state.lastTokEndLoc;this.expect(l.parenR),this.state.maybeInArrowParameters=n,this.state.inFSharpPipelineDirectBody=s;let T=this.startNodeAt(t,r);if(e&&this.shouldParseArrow()&&(T=this.parseArrow(T))){this.expressionScope.validateAsPattern(),this.expressionScope.exit();for(let e=0;e<c.length;e++){const t=c[e];t.extra&&t.extra.parenthesized&&this.unexpected(t.extra.parenStart)}return this.parseArrowExpression(T,c,!1),T}if(this.expressionScope.exit(),c.length||this.unexpected(this.state.lastTokStart),h&&this.unexpected(h),d&&this.unexpected(d),this.checkExpressionErrors(u,!0),p.start&&this.unexpected(p.start),this.toReferencedListDeep(c,!0),c.length>1?(i=this.startNodeAt(a,o),i.expressions=c,this.finishNodeAt(i,"SequenceExpression",m,y)):i=c[0],!this.options.createParenthesizedExpressions)return this.addExtra(i,"parenthesized",!0),this.addExtra(i,"parenStart",t),i;const g=this.startNodeAt(t,r);return g.expression=i,this.finishNode(g,"ParenthesizedExpression"),g}shouldParseArrow(){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(l.arrow))return e}parseParenItem(e,t,r){return e}parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.match(l.dot)){const t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const r=this.parseMetaProperty(e,t,"target");if(!this.scope.inNonArrowFunction&&!this.scope.inClass){let e=S.UnexpectedNewTarget;this.hasPlugin("classProperties")&&(e+=" or class properties"),this.raise(r.start,e)}return r}return this.parseNew(e)}parseNew(e){return e.callee=this.parseNoCallExpr(),"Import"===e.callee.type?this.raise(e.callee.start,S.ImportCallNotNewExpression):"OptionalMemberExpression"===e.callee.type||"OptionalCallExpression"===e.callee.type?this.raise(this.state.lastTokEnd,S.OptionalChainingNoNew):this.eat(l.questionDot)&&this.raise(this.state.start,S.OptionalChainingNoNew),this.parseNewArguments(e),this.finishNode(e,"NewExpression")}parseNewArguments(e){if(this.eat(l.parenL)){const t=this.parseExprList(l.parenR);this.toReferencedList(t),e.arguments=t}else e.arguments=[]}parseTemplateElement(e){const t=this.startNode();return null===this.state.value&&(e||this.raise(this.state.start+1,S.InvalidEscapeSequenceTemplate)),t.value={raw:this.input.slice(this.state.start,this.state.end).replace(/\\r\\n?/g,"\\n"),cooked:this.state.value},this.next(),t.tail=this.match(l.backQuote),this.finishNode(t,"TemplateElement")}parseTemplate(e){const t=this.startNode();this.next(),t.expressions=[];let r=this.parseTemplateElement(e);for(t.quasis=[r];!r.tail;)this.expect(l.dollarBraceL),t.expressions.push(this.parseTemplateSubstitution()),this.expect(l.braceR),t.quasis.push(r=this.parseTemplateElement(e));return this.next(),this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,i){r&&this.expectPlugin("recordAndTuple");const n=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(l.comma),this.match(e)){this.addExtra(o,"trailingComma",this.state.lastTokStart);break}const n=this.parsePropertyDefinition(t,i);t||this.checkProto(n,r,s,i),r&&"ObjectProperty"!==n.type&&"SpreadElement"!==n.type&&this.raise(n.start,S.InvalidRecordProperty),n.shorthand&&this.addExtra(n,"shorthand",!0),o.properties.push(n)}this.state.exprAllowed=!1,this.next(),this.state.inFSharpPipelineDirectBody=n;let c="ObjectExpression";return t?c="ObjectPattern":r&&(c="RecordExpression"),this.finishNode(o,c)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(l.bracketL)||this.match(l.star))}parsePropertyDefinition(e,t){let r=[];if(this.match(l.at))for(this.hasPlugin("decorators")&&this.raise(this.state.start,S.UnsupportedPropertyDecorator);this.match(l.at);)r.push(this.parseDecorator());const i=this.startNode();let n,s,a=!1,o=!1,c=!1;if(this.match(l.ellipsis))return r.length&&this.unexpected(),e?(this.next(),i.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(i,"RestElement")):this.parseSpread();r.length&&(i.decorators=r,r=[]),i.method=!1,(e||t)&&(n=this.state.start,s=this.state.startLoc),e||(a=this.eat(l.star));const u=this.state.containsEsc,p=this.parsePropertyName(i,!1);if(!e&&!a&&!u&&this.maybeAsyncOrAccessorProp(i)){const e=p.name;"async"!==e||this.hasPrecedingLineBreak()||(o=!0,a=this.eat(l.star),this.parsePropertyName(i,!1)),"get"!==e&&"set"!==e||(c=!0,i.kind=e,this.match(l.star)&&(a=!0,this.raise(this.state.pos,S.AccessorIsGenerator,e),this.next()),this.parsePropertyName(i,!1))}return this.parseObjPropValue(i,n,s,a,o,e,c,t),i}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const r=this.getGetterSetterExpectedParamCount(e),i=this.getObjectOrClassMethodParams(e),n=e.start;i.length!==r&&("get"===e.kind?this.raise(n,S.BadGetterArity):this.raise(n,S.BadSetterArity)),"set"===e.kind&&"RestElement"===(null==(t=i[i.length-1])?void 0:t.type)&&this.raise(n,S.BadSetterRestParameter)}parseObjectMethod(e,t,r,i,n){return n?(this.parseMethod(e,t,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(e),e):r||t||this.match(l.parenL)?(i&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")):void 0}parseObjectProperty(e,t,r,i,n){return e.shorthand=!1,this.eat(l.colon)?(e.value=i?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(n),this.finishNode(e,"ObjectProperty")):e.computed||"Identifier"!==e.key.type?void 0:(this.checkReservedWord(e.key.name,e.key.start,!0,!1),i?e.value=this.parseMaybeDefault(t,r,e.key.__clone()):this.match(l.eq)&&n?(-1===n.shorthandAssign&&(n.shorthandAssign=this.state.start),e.value=this.parseMaybeDefault(t,r,e.key.__clone())):e.value=e.key.__clone(),e.shorthand=!0,this.finishNode(e,"ObjectProperty"))}parseObjPropValue(e,t,r,i,n,s,a,o){const l=this.parseObjectMethod(e,i,n,s,a)||this.parseObjectProperty(e,t,r,s,o);return l||this.unexpected(),l}parsePropertyName(e,t){if(this.eat(l.bracketL))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(l.bracketR);else{const r=this.state.inPropertyName;this.state.inPropertyName=!0,e.key=this.match(l.num)||this.match(l.string)||this.match(l.bigint)||this.match(l.decimal)?this.parseExprAtom():this.parseMaybePrivateName(t),"PrivateName"!==e.key.type&&(e.computed=!1),this.state.inPropertyName=r}return e.key}initFunction(e,t){e.id=null,e.generator=!1,e.async=!!t}parseMethod(e,t,r,i,n,s,a=!1){this.initFunction(e,r),e.generator=!!t;const o=i;return this.scope.enter(18|(a?64:0)|(n?32:0)),this.prodParam.enter(functionFlags(r,e.generator)),this.parseFunctionParams(e,o),this.parseFunctionBodyAndFinish(e,s,!0),this.prodParam.exit(),this.scope.exit(),e}parseArrayLike(e,t,r,i){r&&this.expectPlugin("recordAndTuple");const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const s=this.startNode();return this.next(),s.elements=this.parseExprList(e,!r,i,s),this.state.inFSharpPipelineDirectBody=n,this.finishNode(s,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,i){this.scope.enter(6);let n=functionFlags(r,!1);!this.match(l.bracketL)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(e,r);const s=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,i)),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){e.params=this.toAssignableList(t,r)}parseFunctionBodyAndFinish(e,t,r=!1){this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}parseFunctionBody(e,t,r=!1){const i=t&&!this.match(l.braceL);if(this.expressionScope.enter(newExpressionScope()),i)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{const i=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,(n=>{const s=!this.isSimpleParamList(e.params);if(n&&s){const t="method"!==e.kind&&"constructor"!==e.kind||!e.key?e.start:e.key.end;this.raise(t,S.IllegalLanguageModeDirective)}const a=!i&&this.state.strict;this.checkParams(e,!(this.state.strict||t||r||s),t,a),this.state.strict&&e.id&&this.checkLVal(e.id,65,void 0,"function name",void 0,a)})),this.prodParam.exit(),this.expressionScope.exit(),this.state.labels=n}}isSimpleParamList(e){for(let t=0,r=e.length;t<r;t++)if("Identifier"!==e[t].type)return!1;return!0}checkParams(e,t,r,i=!0){const n=Object.create(null);for(let r=0;r<e.params.length;r++)this.checkLVal(e.params[r],5,t?null:n,"function parameter list",void 0,i)}parseExprList(e,t,r,i){const n=[];let s=!0;for(;!this.eat(e);){if(s)s=!1;else if(this.expect(l.comma),this.match(e)){i&&this.addExtra(i,"trailingComma",this.state.lastTokStart),this.next();break}n.push(this.parseExprListItem(t,r))}return n}parseExprListItem(e,t,r,i){let n;if(this.match(l.comma))e||this.raise(this.state.pos,S.UnexpectedToken,","),n=null;else if(this.match(l.ellipsis)){const e=this.state.start,i=this.state.startLoc;n=this.parseParenItem(this.parseSpread(t,r),e,i)}else if(this.match(l.question)){this.expectPlugin("partialApplication"),i||this.raise(this.state.start,S.UnexpectedArgumentPlaceholder);const e=this.startNode();this.next(),n=this.finishNode(e,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowIn(t,this.parseParenItem,r);return n}parseIdentifier(e){const t=this.startNode(),r=this.parseIdentifierName(t.start,e);return this.createIdentifier(t,r)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}parseIdentifierName(e,t){let r;const{start:i,type:n}=this.state;if(n===l.name)r=this.state.value;else{if(!n.keyword)throw this.unexpected();{r=n.keyword;const e=this.curContext();n!==l._class&&n!==l._function||e!==v.functionStatement&&e!==v.functionExpression||this.state.context.pop()}}return t?this.state.type=l.name:this.checkReservedWord(r,i,!!n.keyword,!1),this.next(),r}checkReservedWord(e,t,r,i){if(this.prodParam.hasYield&&"yield"===e)return void this.raise(t,S.YieldBindingIdentifier);if("await"===e){if(this.prodParam.hasAwait)return void this.raise(t,S.AwaitBindingIdentifier);this.expressionScope.recordAsyncArrowParametersError(t,S.AwaitBindingIdentifier)}if(this.scope.inClass&&!this.scope.inNonArrowFunction&&"arguments"===e)return void this.raise(t,S.ArgumentsInClass);if(r&&isKeyword(e))return void this.raise(t,S.UnexpectedKeyword,e);(this.state.strict?i?isStrictBindReservedWord:isStrictReservedWord:isReservedWord)(e,this.inModule)&&(this.prodParam.hasAwait||"await"!==e?this.raise(t,S.UnexpectedReservedWord,e):this.raise(t,this.hasPlugin("topLevelAwait")?S.AwaitNotInAsyncContext:S.AwaitNotInAsyncFunction))}isAwaitAllowed(){return this.scope.inFunction?this.prodParam.hasAwait:!!this.options.allowAwaitOutsideFunction||!!this.hasPlugin("topLevelAwait")&&(this.inModule&&this.prodParam.hasAwait)}parseAwait(){const e=this.startNode();return this.next(),this.expressionScope.recordParameterInitializerError(e.start,S.AwaitExpressionFormalParameter),this.eat(l.star)&&this.raise(e.start,S.ObsoleteAwaitStar),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.hasPrecedingLineBreak()||this.match(l.plusMin)||this.match(l.parenL)||this.match(l.bracketL)||this.match(l.backQuote)||this.match(l.regexp)||this.match(l.slash)||this.hasPlugin("v8intrinsic")&&this.match(l.modulo)?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(e.argument=this.parseMaybeUnary()),this.finishNode(e,"AwaitExpression")}parseYield(){const e=this.startNode();return this.expressionScope.recordParameterInitializerError(e.start,S.YieldInParameter),this.next(),this.match(l.semi)||!this.match(l.star)&&!this.state.type.startsExpr||this.hasPrecedingLineBreak()?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(l.star),e.argument=this.parseMaybeAssign()),this.finishNode(e,"YieldExpression")}checkPipelineAtInfixOperator(e,t){"smart"===this.getPluginOption("pipelineOperator","proposal")&&"SequenceExpression"===e.type&&this.raise(t,S.PipelineHeadSequenceExpression)}parseSmartPipelineBody(e,t,r){return this.checkSmartPipelineBodyEarlyErrors(e,t),this.parseSmartPipelineBodyInStyle(e,t,r)}checkSmartPipelineBodyEarlyErrors(e,t){if(this.match(l.arrow))throw this.raise(this.state.start,S.PipelineBodyNoArrow);"SequenceExpression"===e.type&&this.raise(t,S.PipelineBodySequenceExpression)}parseSmartPipelineBodyInStyle(e,t,r){const i=this.startNodeAt(t,r),n=this.isSimpleReference(e);return n?i.callee=e:(this.topicReferenceWasUsedInCurrentTopicContext()||this.raise(t,S.PipelineTopicUnused),i.expression=e),this.finishNode(i,n?"PipelineBareFunction":"PipelineTopicExpression")}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}withTopicPermittingContext(e){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withTopicForbiddingContext(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}primaryTopicReferenceIsAllowedInCurrentTopicContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentTopicContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.start,r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const n=this.parseExprOp(this.parseMaybeUnary(),t,r,e);return this.state.inFSharpPipelineDirectBody=i,n}}const Te={kind:"loop"},ge={kind:"switch"},be=/[\\uD800-\\uDFFF]/u;class Se extends ye{parseTopLevel(e,t){if(t.sourceType=this.options.sourceType,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,l.eof),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let e=0,t=Array.from(this.scope.undefinedExports);e<t.length;e++){const[r]=t[e],i=this.scope.undefinedExports.get(r);this.raise(i,S.ModuleExportUndefined,r)}return e.program=this.finishNode(t,"Program"),e.comments=this.state.comments,this.options.tokens&&(e.tokens=this.tokens),this.finishNode(e,"File")}stmtToDirective(e){const t=e.expression,r=this.startNodeAt(t.start,t.loc.start),i=this.startNodeAt(e.start,e.loc.start),n=this.input.slice(t.start,t.end),s=r.value=n.slice(1,-1);return this.addExtra(r,"raw",n),this.addExtra(r,"rawValue",s),i.value=this.finishNodeAt(r,"DirectiveLiteral",t.end,t.loc.end),this.finishNodeAt(i,"Directive",e.end,e.loc.end)}parseInterpreterDirective(){if(!this.match(l.interpreterDirective))return null;const e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(e){if(!this.isContextual("let"))return!1;const t=this.nextTokenStart(),r=this.input.charCodeAt(t);if(91===r)return!0;if(e)return!1;if(123===r)return!0;if(isIdentifierStart(r)){let e=t+1;for(;isIdentifierChar(this.input.charCodeAt(e));)++e;const r=this.input.slice(t,e);if(!B.test(r))return!0}return!1}parseStatement(e,t){return this.match(l.at)&&this.parseDecorators(!0),this.parseStatementContent(e,t)}parseStatementContent(e,t){let r=this.state.type;const i=this.startNode();let n;switch(this.isLet(e)&&(r=l._var,n="let"),r){case l._break:case l._continue:return this.parseBreakContinueStatement(i,r.keyword);case l._debugger:return this.parseDebuggerStatement(i);case l._do:return this.parseDoStatement(i);case l._for:return this.parseForStatement(i);case l._function:if(46===this.lookaheadCharCode())break;return e&&(this.state.strict?this.raise(this.state.start,S.StrictFunction):"if"!==e&&"label"!==e&&this.raise(this.state.start,S.SloppyFunction)),this.parseFunctionStatement(i,!1,!e);case l._class:return e&&this.unexpected(),this.parseClass(i,!0);case l._if:return this.parseIfStatement(i);case l._return:return this.parseReturnStatement(i);case l._switch:return this.parseSwitchStatement(i);case l._throw:return this.parseThrowStatement(i);case l._try:return this.parseTryStatement(i);case l._const:case l._var:return n=n||this.state.value,e&&"var"!==n&&this.raise(this.state.start,S.UnexpectedLexicalDeclaration),this.parseVarStatement(i,n);case l._while:return this.parseWhileStatement(i);case l._with:return this.parseWithStatement(i);case l.braceL:return this.parseBlock();case l.semi:return this.parseEmptyStatement(i);case l._import:{const e=this.lookaheadCharCode();if(40===e||46===e)break}case l._export:{let e;return this.options.allowImportExportEverywhere||t||this.raise(this.state.start,S.UnexpectedImportExport),this.next(),r===l._import?(e=this.parseImport(i),"ImportDeclaration"!==e.type||e.importKind&&"value"!==e.importKind||(this.sawUnambiguousESM=!0)):(e=this.parseExport(i),("ExportNamedDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&("ExportAllDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&"ExportDefaultDeclaration"!==e.type||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(i),e}default:if(this.isAsyncFunction())return e&&this.raise(this.state.start,S.AsyncFunctionInSingleStatementContext),this.next(),this.parseFunctionStatement(i,!0,!e)}const s=this.state.value,a=this.parseExpression();return r===l.name&&"Identifier"===a.type&&this.eat(l.colon)?this.parseLabeledStatement(i,s,a,e):this.parseExpressionStatement(i,a)}assertModuleNodeAllowed(e){this.options.allowImportExportEverywhere||this.inModule||this.raiseWithData(e.start,{code:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},S.ImportOutsideModule)}takeDecorators(e){const t=this.state.decoratorStack[this.state.decoratorStack.length-1];t.length&&(e.decorators=t,this.resetStartLocationFromNode(e,t[0]),this.state.decoratorStack[this.state.decoratorStack.length-1]=[])}canHaveLeadingDecorator(){return this.match(l._class)}parseDecorators(e){const t=this.state.decoratorStack[this.state.decoratorStack.length-1];for(;this.match(l.at);){const e=this.parseDecorator();t.push(e)}if(this.match(l._export))e||this.unexpected(),this.hasPlugin("decorators")&&!this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,S.DecoratorExportClass);else if(!this.canHaveLeadingDecorator())throw this.raise(this.state.start,S.UnexpectedLeadingDecorator)}parseDecorator(){this.expectOnePlugin(["decorators-legacy","decorators"]);const e=this.startNode();if(this.next(),this.hasPlugin("decorators")){this.state.decoratorStack.push([]);const t=this.state.start,r=this.state.startLoc;let i;if(this.eat(l.parenL))i=this.parseExpression(),this.expect(l.parenR);else for(i=this.parseIdentifier(!1);this.eat(l.dot);){const e=this.startNodeAt(t,r);e.object=i,e.property=this.parseIdentifier(!0),e.computed=!1,i=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(i),this.state.decoratorStack.pop()}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(l.parenL)){const t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(l.parenR,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e}parseBreakContinueStatement(e,t){const r="break"===t;return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){const r="break"===t;let i;for(i=0;i<this.state.labels.length;++i){const t=this.state.labels[i];if(null==e.label||t.name===e.label.name){if(null!=t.kind&&(r||"loop"===t.kind))break;if(e.label&&r)break}}i===this.state.labels.length&&this.raise(e.start,S.IllegalBreakContinue,t)}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(l.parenL);const e=this.parseExpression();return this.expect(l.parenR),e}parseDoStatement(e){return this.next(),this.state.labels.push(Te),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("do"))),this.state.labels.pop(),this.expect(l._while),e.test=this.parseHeaderExpression(),this.eat(l.semi),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(Te);let t=-1;if(this.isAwaitAllowed()&&this.eatContextual("await")&&(t=this.state.lastTokStart),this.scope.enter(0),this.expect(l.parenL),this.match(l.semi))return t>-1&&this.unexpected(t),this.parseFor(e,null);const r=this.isLet();if(this.match(l._var)||this.match(l._const)||r){const i=this.startNode(),n=r?"let":this.state.value;return this.next(),this.parseVar(i,!0,n),this.finishNode(i,"VariableDeclaration"),(this.match(l._in)||this.isContextual("of"))&&1===i.declarations.length?this.parseForIn(e,i,t):(t>-1&&this.unexpected(t),this.parseFor(e,i))}const i=new ce,n=this.parseExpression(!0,i);if(this.match(l._in)||this.isContextual("of")){this.toAssignable(n);const r=this.isContextual("of")?"for-of statement":"for-in statement";return this.checkLVal(n,void 0,void 0,r),this.parseForIn(e,n,t)}return this.checkExpressionErrors(i,!0),t>-1&&this.unexpected(t),this.parseFor(e,n)}parseFunctionStatement(e,t,r){return this.next(),this.parseFunction(e,1|(r?0:2),t)}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(l._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(this.state.start,S.IllegalReturn),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(l.braceL),this.state.labels.push(ge),this.scope.enter(0);for(let e;!this.match(l.braceR);)if(this.match(l._case)||this.match(l._default)){const i=this.match(l._case);r&&this.finishNode(r,"SwitchCase"),t.push(r=this.startNode()),r.consequent=[],this.next(),i?r.test=this.parseExpression():(e&&this.raise(this.state.lastTokStart,S.MultipleDefaultsInSwitch),e=!0,r.test=null),this.expect(l.colon)}else r?r.consequent.push(this.parseStatement(null)):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(this.state.lastTokEnd,S.NewlineAfterThrow),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom(),t="Identifier"===e.type;return this.scope.enter(t?8:0),this.checkLVal(e,9,null,"catch clause"),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(l._catch)){const t=this.startNode();this.next(),this.match(l.parenL)?(this.expect(l.parenL),t.param=this.parseCatchClauseParam(),this.expect(l.parenR)):(t.param=null,this.scope.enter(0)),t.body=this.withTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(l._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,S.NoCatchOrFinally),this.finishNode(e,"TryStatement")}parseVarStatement(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Te),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("while"))),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(this.state.start,S.StrictWith),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("with"))),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,r,i){for(let e=0,i=this.state.labels;e<i.length;e++){i[e].name===t&&this.raise(r.start,S.LabelRedeclaration,t)}const n=this.state.type.isLoop?"loop":this.match(l._switch)?"switch":null;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=n}return this.state.labels.push({name:t,kind:n,statementStart:this.state.start}),e.body=this.parseStatement(i?-1===i.indexOf("label")?i+"label":i:"label"),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,r){const i=this.startNode();return this.expect(l.braceL),t&&this.scope.enter(0),this.parseBlockBody(i,e,!1,l.braceR,r),t&&this.scope.exit(),this.finishNode(i,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,i,n){const s=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(s,t?a:void 0,r,i,n)}parseBlockOrModuleBlockBody(e,t,r,i,n){const s=[],a=this.state.strict;let o=!1,l=!1;for(;!this.match(i);){!l&&this.state.octalPositions.length&&s.push(...this.state.octalPositions);const i=this.parseStatement(null,r);if(t&&!l&&this.isValidDirective(i)){const e=this.stmtToDirective(i);t.push(e),o||"use strict"!==e.value.value||(o=!0,this.setStrict(!0))}else l=!0,e.push(i)}if(this.state.strict&&s.length)for(let e=0;e<s.length;e++){const t=s[e];this.raise(t,S.StrictOctalLiteral)}n&&n.call(this,o),a||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.expect(l.semi),e.test=this.match(l.semi)?null:this.parseExpression(),this.expect(l.semi),e.update=this.match(l.parenR)?null:this.parseExpression(),this.expect(l.parenR),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,r){const i=this.match(l._in);return this.next(),i?r>-1&&this.unexpected(r):e.await=r>-1,"VariableDeclaration"!==t.type||null==t.declarations[0].init||i&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type?"AssignmentPattern"===t.type&&this.raise(t.start,S.InvalidLhs,"for-loop"):this.raise(t.start,S.ForInOfLoopInitializer,i?"for-in":"for-of"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(l.parenR),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")}parseVar(e,t,r){const i=e.declarations=[],n=this.hasPlugin("typescript");for(e.kind=r;;){const e=this.startNode();if(this.parseVarId(e,r),this.eat(l.eq)?e.init=t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():("const"!==r||this.match(l._in)||this.isContextual("of")?"Identifier"===e.id.type||t&&(this.match(l._in)||this.isContextual("of"))||this.raise(this.state.lastTokEnd,S.DeclarationMissingInitializer,"Complex binding patterns"):n||this.raise(this.state.lastTokEnd,S.DeclarationMissingInitializer,"Const declarations"),e.init=null),i.push(this.finishNode(e,"VariableDeclarator")),!this.eat(l.comma))break}return e}parseVarId(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,"var"===t?5:9,void 0,"variable declaration","var"!==t)}parseFunction(e,t=0,r=!1){const i=1&t,n=2&t,s=!(!i||4&t);this.initFunction(e,r),this.match(l.star)&&n&&this.raise(this.state.start,S.GeneratorInSingleStatementContext),e.generator=this.eat(l.star),i&&(e.id=this.parseFunctionId(s));const a=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(functionFlags(r,e.generator)),i||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,i?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),i&&!n&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=a,e}parseFunctionId(e){return e||this.match(l.name)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(l.parenL),this.expressionScope.enter(new he(3)),e.params=this.parseBindingList(l.parenR,41,!1,t),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:9:17,e.id.start)}parseClass(e,t,r){this.next(),this.takeDecorators(e);const i=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,i),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(l.eq)||this.match(l.semi)||this.match(l.braceR)}isClassMethod(){return this.match(l.parenL)}isNonstaticConstructor(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)}parseClassBody(e,t){this.classScope.enter();const r={constructorAllowsSuper:e,hadConstructor:!1,hadStaticBlock:!1};let i=[];const n=this.startNode();if(n.body=[],this.expect(l.braceL),this.withTopicForbiddingContext((()=>{for(;!this.match(l.braceR);){if(this.eat(l.semi)){if(i.length>0)throw this.raise(this.state.lastTokEnd,S.DecoratorSemicolon);continue}if(this.match(l.at)){i.push(this.parseDecorator());continue}const e=this.startNode();i.length&&(e.decorators=i,this.resetStartLocationFromNode(e,i[0]),i=[]),this.parseClassMember(n,e,r),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(e.start,S.DecoratorConstructor)}})),this.state.strict=t,this.next(),i.length)throw this.raise(this.state.start,S.TrailingDecorator);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(e,t){const r=this.parseIdentifier(!0);if(this.isClassMethod()){const i=t;return i.kind="method",i.computed=!1,i.key=r,i.static=!1,this.pushClassMethod(e,i,!1,!1,!1,!1),!0}if(this.isClassProperty()){const i=t;return i.computed=!1,i.key=r,i.static=!1,e.body.push(this.parseClassProperty(i)),!0}return!1}parseClassMember(e,t,r){const i=this.isContextual("static");if(i){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(l.braceL))return void this.parseClassStaticBlock(e,t,r)}this.parseClassMemberWithIsStatic(e,t,r,i)}parseClassMemberWithIsStatic(e,t,r,i){const n=t,s=t,a=t,o=t,c=n,u=n;if(t.static=i,this.eat(l.star))return c.kind="method",this.parseClassElementName(c),"PrivateName"===c.key.type?void this.pushClassPrivateMethod(e,s,!0,!1):(this.isNonstaticConstructor(n)&&this.raise(n.key.start,S.ConstructorIsGenerator),void this.pushClassMethod(e,n,!0,!1,!1,!1));const p=this.state.containsEsc,d=this.parseClassElementName(t),h="PrivateName"===d.type,f="Identifier"===d.type,m=this.state.start;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(c.kind="method",h)return void this.pushClassPrivateMethod(e,s,!1,!1);const t=this.isNonstaticConstructor(n);let i=!1;t&&(n.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(d.start,S.DuplicateConstructor),r.hadConstructor=!0,i=r.constructorAllowsSuper),this.pushClassMethod(e,n,!1,!1,t,i)}else if(this.isClassProperty())h?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a);else if(!f||"async"!==d.name||p||this.isLineTerminator())!f||"get"!==d.name&&"set"!==d.name||p||this.match(l.star)&&this.isLineTerminator()?this.isLineTerminator()?h?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a):this.unexpected():(c.kind=d.name,this.parseClassElementName(n),"PrivateName"===c.key.type?this.pushClassPrivateMethod(e,s,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(n.key.start,S.ConstructorIsAccessor),this.pushClassMethod(e,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n));else{const t=this.eat(l.star);u.optional&&this.unexpected(m),c.kind="method",this.parseClassElementName(c),this.parsePostMemberNameModifiers(u),"PrivateName"===c.key.type?this.pushClassPrivateMethod(e,s,t,!0):(this.isNonstaticConstructor(n)&&this.raise(n.key.start,S.ConstructorIsAsync),this.pushClassMethod(e,n,t,!0,!1,!1))}}parseClassElementName(e){const t=this.parsePropertyName(e,!0);return e.computed||!e.static||"prototype"!==t.name&&"prototype"!==t.value||this.raise(t.start,S.StaticPrototype),"PrivateName"===t.type&&"constructor"===t.id.name&&this.raise(t.start,S.ConstructorClassPrivateField),t}parseClassStaticBlock(e,t,r){var i;this.expectPlugin("classStaticBlock",t.start),this.scope.enter(80),this.expressionScope.enter(newExpressionScope());const n=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const s=t.body=[];this.parseBlockOrModuleBlockBody(s,void 0,!1,l.braceR),this.prodParam.exit(),this.expressionScope.exit(),this.scope.exit(),this.state.labels=n,e.body.push(this.finishNode(t,"StaticBlock")),r.hadStaticBlock&&this.raise(t.start,S.DuplicateStaticBlock),(null==(i=t.decorators)?void 0:i.length)&&this.raise(t.start,S.DecoratorStaticBlock),r.hadStaticBlock=!0}pushClassProperty(e,t){t.computed||"constructor"!==t.key.name&&"constructor"!==t.key.value||this.raise(t.key.start,S.ConstructorClassField),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){this.expectPlugin("classPrivateProperties",t.key.start);const r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(r.key.id.name,0,r.key.start)}pushClassMethod(e,t,r,i,n,s){e.body.push(this.parseMethod(t,r,i,n,s,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,i){this.expectPlugin("classPrivateMethods",t.key.start);const n=this.parseMethod(t,r,i,!1,!1,"ClassPrivateMethod",!0);e.body.push(n);const s="get"===n.kind?n.static?6:2:"set"===n.kind?n.static?5:1:0;this.classScope.declarePrivateName(n.key.id.name,s,n.key.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return e.typeAnnotation&&!this.match(l.eq)||this.expectPlugin("classProperties"),this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(newExpressionScope()),this.prodParam.enter(0),e.value=this.eat(l.eq)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,r,i=139){this.match(l.name)?(e.id=this.parseIdentifier(),t&&this.checkLVal(e.id,i,void 0,"class name")):r||!t?e.id=null:this.unexpected(null,S.MissingClassName)}parseClassSuper(e){e.superClass=this.eat(l._extends)?this.parseExprSubscripts():null}parseExport(e){const t=this.maybeParseExportDefaultSpecifier(e),r=!t||this.eat(l.comma),i=r&&this.eatExportStar(e),n=i&&this.maybeParseExportNamespaceSpecifier(e),s=r&&(!n||this.eat(l.comma)),a=t||i;if(i&&!n)return t&&this.unexpected(),this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration");const o=this.maybeParseExportNamedSpecifiers(e);if(t&&r&&!i&&!o||n&&s&&!o)throw this.unexpected(null,l.braceL);let c;if(a||o?(c=!1,this.parseExportFrom(e,a)):c=this.maybeParseExportDeclaration(e),a||o||c)return this.checkExport(e,!0,!1,!!e.source),this.finishNode(e,"ExportNamedDeclaration");if(this.eat(l._default))return e.declaration=this.parseExportDefaultExpression(),this.checkExport(e,!0,!0),this.finishNode(e,"ExportDefaultDeclaration");throw this.unexpected(null,l.braceL)}eatExportStar(e){return this.eat(l.star)}maybeParseExportDefaultSpecifier(e){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");const t=this.startNode();return t.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(t,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual("as")){e.specifiers||(e.specifiers=[]);const t=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){return!!this.match(l.braceL)&&(e.specifiers||(e.specifiers=[]),e.specifiers.push(...this.parseExportSpecifiers()),e.source=null,e.declaration=null,!0)}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual("async"))return!1;const e=this.nextTokenStart();return!h.test(this.input.slice(this.state.pos,e))&&this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode(),t=this.isAsyncFunction();if(this.match(l._function)||t)return this.next(),t&&this.next(),this.parseFunction(e,5,t);if(this.match(l._class))return this.parseClass(e,!0,!0);if(this.match(l.at))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,S.DecoratorBeforeExport),this.parseDecorators(!1),this.parseClass(e,!0,!0);if(this.match(l._const)||this.match(l._var)||this.isLet())throw this.raise(this.state.start,S.UnsupportedDefaultExport);{const e=this.parseMaybeAssignAllowIn();return this.semicolon(),e}}parseExportDeclaration(e){return this.parseStatement(null)}isExportDefaultSpecifier(){if(this.match(l.name)){const e=this.state.value;if("async"===e&&!this.state.containsEsc||"let"===e)return!1;if(("type"===e||"interface"===e)&&!this.state.containsEsc){const e=this.lookahead();if(e.type===l.name&&"from"!==e.value||e.type===l.braceL)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(l._default))return!1;const e=this.nextTokenStart(),t=this.isUnparsedContextual(e,"from");if(44===this.input.charCodeAt(e)||this.match(l.name)&&t)return!0;if(this.match(l._default)&&t){const t=this.input.charCodeAt(this.nextTokenStartSince(e+4));return 34===t||39===t}return!1}parseExportFrom(e,t){if(this.eatContextual("from")){e.source=this.parseImportSource(),this.checkExport(e);const t=this.maybeParseImportAssertions();t&&(e.assertions=t)}else t?this.unexpected():e.source=null;this.semicolon()}shouldParseExportDeclaration(){if(this.match(l.at)&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(!this.getPluginOption("decorators","decoratorsBeforeExport"))return!0;this.unexpected(this.state.start,S.DecoratorBeforeExport)}return"var"===this.state.type.keyword||"const"===this.state.type.keyword||"function"===this.state.type.keyword||"class"===this.state.type.keyword||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,i){if(t)if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var n;const t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!=4||(null==(n=t.extra)?void 0:n.parenthesized)||this.raise(t.start,S.ExportDefaultFromAsIdentifier)}}else if(e.specifiers&&e.specifiers.length)for(let t=0,r=e.specifiers;t<r.length;t++){const e=r[t],{exported:n}=e,s="Identifier"===n.type?n.name:n.value;if(this.checkDuplicateExports(e,s),!i&&e.local){const{local:t}=e;"StringLiteral"===t.type?this.raise(e.start,S.ExportBindingIsString,t.extra.raw,s):(this.checkReservedWord(t.name,t.start,!0,!1),this.scope.checkLocalExport(t))}}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(let t=0,r=e.declaration.declarations;t<r.length;t++){const e=r[t];this.checkDeclaration(e.id)}if(this.state.decoratorStack[this.state.decoratorStack.length-1].length)throw this.raise(e.start,S.UnsupportedDecoratorExport)}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(let t=0,r=e.properties;t<r.length;t++){const e=r[t];this.checkDeclaration(e)}else if("ArrayPattern"===e.type)for(let t=0,r=e.elements;t<r.length;t++){const e=r[t];e&&this.checkDeclaration(e)}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.state.exportedIdentifiers.indexOf(t)>-1&&this.raise(e.start,"default"===t?S.DuplicateDefaultExport:S.DuplicateExport,t),this.state.exportedIdentifiers.push(t)}parseExportSpecifiers(){const e=[];let t=!0;for(this.expect(l.braceL);!this.eat(l.braceR);){if(t)t=!1;else if(this.expect(l.comma),this.eat(l.braceR))break;const r=this.startNode();r.local=this.parseModuleExportName(),r.exported=this.eatContextual("as")?this.parseModuleExportName():r.local.__clone(),e.push(this.finishNode(r,"ExportSpecifier"))}return e}parseModuleExportName(){if(this.match(l.string)){this.expectPlugin("moduleStringNames");const e=this.parseLiteral(this.state.value,"StringLiteral"),t=e.value.match(be);return t&&this.raise(e.start,S.ModuleExportNameHasLoneSurrogate,t[0].charCodeAt(0).toString(16)),e}return this.parseIdentifier(!0)}parseImport(e){if(e.specifiers=[],!this.match(l.string)){const t=!this.maybeParseDefaultImportSpecifier(e)||this.eat(l.comma),r=t&&this.maybeParseStarImportSpecifier(e);t&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual("from")}e.source=this.parseImportSource();const t=this.maybeParseImportAssertions();if(t)e.assertions=t;else{const t=this.maybeParseModuleAttributes();t&&(e.attributes=t)}return this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(l.string)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(e){return this.match(l.name)}parseImportSpecifierLocal(e,t,r,i){t.local=this.parseIdentifier(),this.checkLVal(t.local,9,void 0,i),e.specifiers.push(this.finishNode(t,r))}parseAssertEntries(){const e=[],t=new Set;do{if(this.match(l.braceR))break;const r=this.startNode(),i=this.state.value;if(this.match(l.string)?r.key=this.parseLiteral(i,"StringLiteral"):r.key=this.parseIdentifier(!0),this.expect(l.colon),"type"!==i&&this.raise(r.key.start,S.ModuleAttributeDifferentFromType,i),t.has(i)&&this.raise(r.key.start,S.ModuleAttributesWithDuplicateKeys,i),t.add(i),!this.match(l.string))throw this.unexpected(this.state.start,S.ModuleAttributeInvalidValue);r.value=this.parseLiteral(this.state.value,"StringLiteral"),this.finishNode(r,"ImportAttribute"),e.push(r)}while(this.eat(l.comma));return e}maybeParseModuleAttributes(){if(!this.match(l._with)||this.hasPrecedingLineBreak())return this.hasPlugin("moduleAttributes")?[]:null;this.expectPlugin("moduleAttributes"),this.next();const e=[],t=new Set;do{const r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(r.key.start,S.ModuleAttributeDifferentFromType,r.key.name),t.has(r.key.name)&&this.raise(r.key.start,S.ModuleAttributesWithDuplicateKeys,r.key.name),t.add(r.key.name),this.expect(l.colon),!this.match(l.string))throw this.unexpected(this.state.start,S.ModuleAttributeInvalidValue);r.value=this.parseLiteral(this.state.value,"StringLiteral"),this.finishNode(r,"ImportAttribute"),e.push(r)}while(this.eat(l.comma));return e}maybeParseImportAssertions(){if(!this.isContextual("assert")||this.hasPrecedingLineBreak())return this.hasPlugin("importAssertions")?[]:null;this.expectPlugin("importAssertions"),this.next(),this.eat(l.braceL);const e=this.parseAssertEntries();return this.eat(l.braceR),e}maybeParseDefaultImportSpecifier(e){return!!this.shouldParseDefaultImport(e)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier","default import specifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(l.star)){const t=this.startNode();return this.next(),this.expectContextual("as"),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier","import namespace specifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(l.braceL);!this.eat(l.braceR);){if(t)t=!1;else{if(this.eat(l.colon))throw this.raise(this.state.start,S.DestructureNamedImport);if(this.expect(l.comma),this.eat(l.braceR))break}this.parseImportSpecifier(e)}}parseImportSpecifier(e){const t=this.startNode();if(t.imported=this.parseModuleExportName(),this.eatContextual("as"))t.local=this.parseIdentifier();else{const{imported:e}=t;if("StringLiteral"===e.type)throw this.raise(t.start,S.ImportBindingIsString,e.value);this.checkReservedWord(e.name,t.start,!0,!0),t.local=e.__clone()}this.checkLVal(t.local,9,void 0,"import specifier"),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))}}class xe{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class Ee{constructor(e){this.stack=[],this.undefinedPrivateNames=new Map,this.raise=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new xe)}exit(){const e=this.stack.pop(),t=this.current();for(let r=0,i=Array.from(e.undefinedPrivateNames);r<i.length;r++){const[e,n]=i[r];t?t.undefinedPrivateNames.has(e)||t.undefinedPrivateNames.set(e,n):this.raise(n,S.InvalidPrivateFieldResolution,e)}}declarePrivateName(e,t,r){const i=this.current();let n=i.privateNames.has(e);if(3&t){const r=n&&i.loneAccessors.get(e);if(r){n=(3&r)===(3&t)||(4&r)!==(4&t),n||i.loneAccessors.delete(e)}else n||i.loneAccessors.set(e,t)}n&&this.raise(r,S.PrivateNameRedeclaration,e),i.privateNames.add(e),i.undefinedPrivateNames.delete(e)}usePrivateName(e,t){let r;for(let t=0,i=this.stack;t<i.length;t++)if(r=i[t],r.privateNames.has(e))return;r?r.undefinedPrivateNames.set(e,t):this.raise(t,S.InvalidPrivateFieldResolution,e)}}class Pe extends Se{constructor(e,t){super(e=function(e){const t={};for(let r=0,i=Object.keys(te);r<i.length;r++){const n=i[r];t[n]=e&&null!=e[n]?e[n]:te[n]}return t}(e),t);const r=this.getScopeHandler();this.options=e,this.inModule="module"===this.options.sourceType,this.scope=new r(this.raise.bind(this),this.inModule),this.prodParam=new G,this.classScope=new Ee(this.raise.bind(this)),this.expressionScope=new me(this.raise.bind(this)),this.plugins=function(e){const t=new Map;for(let r=0;r<e.length;r++){const i=e[r],[n,s]=Array.isArray(i)?i:[i,{}];t.has(n)||t.set(n,s||{})}return t}(this.options.plugins),this.filename=e.sourceFilename}getScopeHandler(){return X}parse(){let e=0;this.hasPlugin("topLevelAwait")&&this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e);const t=this.startNode(),r=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,r),t.errors=this.state.errors,t}}function getParser(e,t){let r=Pe;return(null==e?void 0:e.plugins)&&(!function(e){if(hasPlugin(e,"decorators")){if(hasPlugin(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const t=getPluginOption(e,"decorators","decoratorsBeforeExport");if(null==t)throw new Error("The \'decorators\' plugin requires a \'decoratorsBeforeExport\' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the \'decorators-legacy\' plugin instead of \'decorators\'.");if("boolean"!=typeof t)throw new Error("\'decoratorsBeforeExport\' must be a boolean.")}if(hasPlugin(e,"flow")&&hasPlugin(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(hasPlugin(e,"placeholders")&&hasPlugin(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(hasPlugin(e,"pipelineOperator")&&!z.includes(getPluginOption(e,"pipelineOperator","proposal")))throw new Error("\'pipelineOperator\' requires \'proposal\' option whose value should be one of: "+z.map((e=>`\'${e}\'`)).join(", "));if(hasPlugin(e,"moduleAttributes")){if(hasPlugin(e,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if("may-2020"!==getPluginOption(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(hasPlugin(e,"recordAndTuple")&&!Q.includes(getPluginOption(e,"recordAndTuple","syntaxType")))throw new Error("\'recordAndTuple\' requires \'syntaxType\' option whose value should be one of: "+Q.map((e=>`\'${e}\'`)).join(", "))}(e.plugins),r=function(e){const t=ee.filter((t=>hasPlugin(e,t))),r=t.join("/");let i=ve[r];if(!i){i=Pe;for(let e=0;e<t.length;e++){const r=t[e];i=Z[r](i)}ve[r]=i}return i}(e.plugins)),new r(e,t)}const ve={};t.parse=function(e,t){var r;if("unambiguous"!==(null==(r=t)?void 0:r.sourceType))return getParser(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";const r=getParser(t,e),i=r.parse();if(r.sawUnambiguousESM)return i;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",getParser(t,e).parse()}catch(e){}else i.program.sourceType="script";return i}catch(r){try{return t.sourceType="script",getParser(t,e).parse()}catch(e){}throw r}},t.parseExpression=function(e,t){const r=getParser(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()},t.tokTypes=l},1826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clear=function(){clearPath(),clearScope()},t.clearPath=clearPath,t.clearScope=clearScope,t.scope=t.path=void 0;let r=new WeakMap;t.path=r;let i=new WeakMap;function clearPath(){t.path=r=new WeakMap}function clearScope(){t.scope=i=new WeakMap}t.scope=i},7193:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,n=(i=r(706))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}t.default=class{constructor(e,t,r,i){this.queue=null,this.parentPath=i,this.scope=e,this.state=r,this.opts=t}shouldVisit(e){const t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;const r=s.VISITOR_KEYS[e.type];if(!(null==r?void 0:r.length))return!1;for(const t of r)if(e[t])return!0;return!1}create(e,t,r,i){return n.default.get({parentPath:this.parentPath,parent:e,container:t,key:r,listKey:i})}maybeQueue(e,t){if(this.trap)throw new Error("Infinite cycle detected");this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,t,r){if(0===e.length)return!1;const i=[];for(let n=0;n<e.length;n++){const s=e[n];s&&this.shouldVisit(s)&&i.push(this.create(t,e,n,r))}return this.visitQueue(i)}visitSingle(e,t){return!!this.shouldVisit(e[t])&&this.visitQueue([this.create(e,e,t)])}visitQueue(e){this.queue=e,this.priorityQueue=[];const t=[];let r=!1;for(const i of e)if(i.resync(),0!==i.contexts.length&&i.contexts[i.contexts.length-1]===this||i.pushContext(this),null!==i.key&&!(t.indexOf(i.node)>=0)){if(t.push(i.node),i.visit()){r=!0;break}if(this.priorityQueue.length&&(r=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,r))break}for(const t of e)t.popContext();return this.queue=null,r}visit(e,t){const r=e[t];return!!r&&(Array.isArray(r)?this.visitMultiple(r,e,t):this.visitSingle(e,t))}}},8672:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,t,r=TypeError){return new r(t)}}},1910:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=traverse,Object.defineProperty(t,"NodePath",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return c.default}}),t.visitors=void 0;var i=_interopRequireDefault(r(7193)),n=_interopRequireWildcard(r(8221));t.visitors=n;var s=_interopRequireWildcard(r(1710)),a=_interopRequireWildcard(r(1826)),o=_interopRequireDefault(r(706)),l=_interopRequireDefault(r(9760)),c=_interopRequireDefault(r(8672));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function traverse(e,t,r,i,a){if(e){if(t||(t={}),!t.noScope&&!r&&"Program"!==e.type&&"File"!==e.type)throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);s.VISITOR_KEYS[e.type]&&(n.explode(t),traverse.node(e,t,r,i,a))}}function hasDenylistedType(e,t){e.node.type===t.type&&(t.has=!0,e.stop())}traverse.visitors=n,traverse.verify=n.verify,traverse.explode=n.explode,traverse.cheap=function(e,t){return s.traverseFast(e,t)},traverse.node=function(e,t,r,n,a,o){const l=s.VISITOR_KEYS[e.type];if(!l)return;const c=new i.default(r,t,n,a);for(const t of l)if((!o||!o[t])&&c.visit(e,t))return},traverse.clearNode=function(e,t){s.removeProperties(e,t),a.path.delete(e)},traverse.removeProperties=function(e,t){return s.traverseFast(e,traverse.clearNode,t),e},traverse.hasType=function(e,t,r){if(null==r?void 0:r.includes(e.type))return!1;if(e.type===t)return!0;const i={has:!1,type:t};return traverse(e,{noScope:!0,denylist:r,enter:hasDenylistedType},null,i),i.has},traverse.cache=a},4852:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findParent=function(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null},t.find=function(e){let t=this;do{if(e(t))return t}while(t=t.parentPath);return null},t.getFunctionParent=function(){return this.findParent((e=>e.isFunction()))},t.getStatementParent=function(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can\'t possibly find a statement parent to this");return e},t.getEarliestCommonAncestorFrom=function(e){return this.getDeepestCommonAncestorFrom(e,(function(e,t,r){let i;const s=n.VISITOR_KEYS[e.type];for(const e of r){const r=e[t+1];if(!i){i=r;continue}if(r.listKey&&i.listKey===r.listKey&&r.key<i.key){i=r;continue}s.indexOf(i.parentKey)>s.indexOf(r.parentKey)&&(i=r)}return i}))},t.getDeepestCommonAncestorFrom=function(e,t){if(!e.length)return this;if(1===e.length)return e[0];let r,i,n=1/0;const s=e.map((e=>{const t=[];do{t.unshift(e)}while((e=e.parentPath)&&e!==this);return t.length<n&&(n=t.length),t})),a=s[0];e:for(let e=0;e<n;e++){const t=a[e];for(const r of s)if(r[e]!==t)break e;r=e,i=t}if(i)return t?t(i,r,s):i;throw new Error("Couldn\'t find intersection")},t.getAncestry=function(){let e=this;const t=[];do{t.push(e)}while(e=e.parentPath);return t},t.isAncestor=function(e){return e.isDescendant(this)},t.isDescendant=function(e){return!!this.findParent((t=>t===e))},t.inType=function(){let e=this;for(;e;){for(const t of arguments)if(e.node.type===t)return!0;e=e.parentPath}return!1};var i,n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));(i=r(706))&&i.__esModule;function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}},7334:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shareCommentsWithSiblings=function(){if("string"==typeof this.key)return;const e=this.node;if(!e)return;const t=e.trailingComments,r=e.leadingComments;if(!t&&!r)return;const i=this.getSibling(this.key-1),n=this.getSibling(this.key+1),s=Boolean(i.node),a=Boolean(n.node);s&&!a?i.addComments("trailing",t):a&&!s&&n.addComments("leading",r)},t.addComment=function(e,t,r){i.addComment(this.node,e,t,r)},t.addComments=function(e,t){i.addComments(this.node,e,t)};var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}},7036:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.call=function(e){const t=this.opts;if(this.debug(e),this.node&&this._call(t[e]))return!0;if(this.node)return this._call(t[this.node.type]&&t[this.node.type][e]);return!1},t._call=function(e){if(!e)return!1;for(const t of e){if(!t)continue;const e=this.node;if(!e)return!0;const r=t.call(this.state,this,this.state);if(r&&"object"==typeof r&&"function"==typeof r.then)throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you\'re using a published plugin, you may need to upgrade your @babel/core version.");if(r)throw new Error(`Unexpected return value from visitor method ${t}`);if(this.node!==e)return!0;if(this._traverseFlags>0)return!0}return!1},t.isBlacklisted=t.isDenylisted=function(){var e;const t=null!=(e=this.opts.denylist)?e:this.opts.blacklist;return t&&t.indexOf(this.node.type)>-1},t.visit=function(){if(!this.node)return!1;if(this.isDenylisted())return!1;if(this.opts.shouldSkip&&this.opts.shouldSkip(this))return!1;if(this.shouldSkip||this.call("enter")||this.shouldSkip)return this.debug("Skip..."),this.shouldStop;return this.debug("Recursing into..."),n.default.node(this.node,this.opts,this.scope,this.state,this,this.skipKeys),this.call("exit"),this.shouldStop},t.skip=function(){this.shouldSkip=!0},t.skipKey=function(e){null==this.skipKeys&&(this.skipKeys={});this.skipKeys[e]=!0},t.stop=function(){this._traverseFlags|=s.SHOULD_SKIP|s.SHOULD_STOP},t.setScope=function(){if(this.opts&&this.opts.noScope)return;let e,t=this.parentPath;for(;t&&!e;){if(t.opts&&t.opts.noScope)return;e=t.scope,t=t.parentPath}this.scope=this.getScope(e),this.scope&&this.scope.init()},t.setContext=function(e){null!=this.skipKeys&&(this.skipKeys={});this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts);return this.setScope(),this},t.resync=function(){if(this.removed)return;this._resyncParent(),this._resyncList(),this._resyncKey()},t._resyncParent=function(){this.parentPath&&(this.parent=this.parentPath.node)},t._resyncKey=function(){if(!this.container)return;if(this.node===this.container[this.key])return;if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node)return this.setKey(e)}else for(const e of Object.keys(this.container))if(this.container[e]===this.node)return this.setKey(e);this.key=null},t._resyncList=function(){if(!this.parent||!this.inList)return;const e=this.parent[this.listKey];if(this.container===e)return;this.container=e||null},t._resyncRemoved=function(){null!=this.key&&this.container&&this.container[this.key]===this.node||this._markRemoved()},t.popContext=function(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)},t.pushContext=function(e){this.contexts.push(e),this.setContext(e)},t.setup=function(e,t,r,i){this.listKey=r,this.container=t,this.parentPath=e||this.parentPath,this.setKey(i)},t.setKey=function(e){var t;this.key=e,this.node=this.container[this.key],this.type=null==(t=this.node)?void 0:t.type},t.requeue=function(e=this){if(e.removed)return;const t=this.contexts;for(const r of t)r.maybeQueue(e)},t._getQueueContexts=function(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,e);)t=e.contexts;return t};var i,n=(i=r(1910))&&i.__esModule?i:{default:i},s=r(706)},7926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toComputedKey=function(){const e=this.node;let t;if(this.isMemberExpression())t=e.property;else{if(!this.isProperty()&&!this.isMethod())throw new ReferenceError("todo");t=e.key}e.computed||n.isIdentifier(t)&&(t=n.stringLiteral(t.name));return t},t.ensureBlock=function(){const e=this.get("body"),t=e.node;if(Array.isArray(e))throw new Error("Can\'t convert array path to a block statement");if(!t)throw new Error("Can\'t convert node without a body");if(e.isBlockStatement())return t;const r=[];let i,s,a="body";e.isStatement()?(s="body",i=0,r.push(e.node)):(a+=".body.0",this.isFunction()?(i="argument",r.push(n.returnStatement(e.node))):(i="expression",r.push(n.expressionStatement(e.node))));this.node.body=n.blockStatement(r);const o=this.get(a);return e.setup(o,s?o.node[s]:o.node,s,i),this.node},t.arrowFunctionToShadowed=function(){if(!this.isArrowFunctionExpression())return;this.arrowFunctionToExpression()},t.unwrapFunctionEnvironment=function(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");hoistFunctionEnvironment(this)},t.arrowFunctionToExpression=function({allowInsertArrow:e=!0,specCompliant:t=!1}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");const r=hoistFunctionEnvironment(this,t,e);if(this.ensureBlock(),this.node.type="FunctionExpression",t){const e=r?null:this.parentPath.scope.generateUidIdentifier("arrowCheckId");e&&this.parentPath.scope.push({id:e,init:n.objectExpression([])}),this.get("body").unshiftContainer("body",n.expressionStatement(n.callExpression(this.hub.addHelper("newArrowCheck"),[n.thisExpression(),e?n.identifier(e.name):n.identifier(r)]))),this.replaceWith(n.callExpression(n.memberExpression((0,s.default)(this,!0)||this.node,n.identifier("bind")),[e?n.identifier(e.name):n.thisExpression()]))}};var i,n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710)),s=(i=r(6163))&&i.__esModule?i:{default:i};function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function hoistFunctionEnvironment(e,t=!1,r=!0){const i=e.findParent((e=>e.isFunction()&&!e.isArrowFunctionExpression()||e.isProgram()||e.isClassProperty({static:!1}))),s="constructor"===(null==i?void 0:i.node.kind);if(i.isClassProperty())throw e.buildCodeFrameError("Unable to transform arrow inside class property");const{thisPaths:a,argumentsPaths:o,newTargetPaths:l,superProps:c,superCalls:u}=function(e){const t=[],r=[],i=[],n=[],s=[];return e.traverse({ClassProperty(e){e.skip()},Function(e){e.isArrowFunctionExpression()||e.skip()},ThisExpression(e){t.push(e)},JSXIdentifier(e){"this"===e.node.name&&(e.parentPath.isJSXMemberExpression({object:e.node})||e.parentPath.isJSXOpeningElement({name:e.node}))&&t.push(e)},CallExpression(e){e.get("callee").isSuper()&&s.push(e)},MemberExpression(e){e.get("object").isSuper()&&n.push(e)},ReferencedIdentifier(e){"arguments"===e.node.name&&r.push(e)},MetaProperty(e){e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&i.push(e)}}),{thisPaths:t,argumentsPaths:r,newTargetPaths:i,superProps:n,superCalls:s}}(e);if(s&&u.length>0){if(!r)throw u[0].buildCodeFrameError("Unable to handle nested super() usage in arrow");const e=[];i.traverse({Function(e){e.isArrowFunctionExpression()||e.skip()},ClassProperty(e){e.skip()},CallExpression(t){t.get("callee").isSuper()&&e.push(t)}});const t=function(e){return getBinding(e,"supercall",(()=>{const t=e.scope.generateUidIdentifier("args");return n.arrowFunctionExpression([n.restElement(t)],n.callExpression(n.super(),[n.spreadElement(n.identifier(t.name))]))}))}(i);e.forEach((e=>{const r=n.identifier(t);r.loc=e.node.callee.loc,e.get("callee").replaceWith(r)}))}if(o.length>0){const e=getBinding(i,"arguments",(()=>n.identifier("arguments")));o.forEach((t=>{const r=n.identifier(e);r.loc=t.node.loc,t.replaceWith(r)}))}if(l.length>0){const e=getBinding(i,"newtarget",(()=>n.metaProperty(n.identifier("new"),n.identifier("target"))));l.forEach((t=>{const r=n.identifier(e);r.loc=t.node.loc,t.replaceWith(r)}))}if(c.length>0){if(!r)throw c[0].buildCodeFrameError("Unable to handle nested super.prop usage");c.reduce(((e,t)=>e.concat(function(e){if(e.parentPath.isAssignmentExpression()&&"="!==e.parentPath.node.operator){const t=e.parentPath,r=t.node.operator.slice(0,-1),i=t.node.right;if(t.node.operator="=",e.node.computed){const s=e.scope.generateDeclaredUidIdentifier("tmp");t.get("left").replaceWith(n.memberExpression(e.node.object,n.assignmentExpression("=",s,e.node.property),!0)),t.get("right").replaceWith(n.binaryExpression(r,n.memberExpression(e.node.object,n.identifier(s.name),!0),i))}else t.get("left").replaceWith(n.memberExpression(e.node.object,e.node.property)),t.get("right").replaceWith(n.binaryExpression(r,n.memberExpression(e.node.object,n.identifier(e.node.property.name)),i));return[t.get("left"),t.get("right").get("left")]}if(e.parentPath.isUpdateExpression()){const t=e.parentPath,r=e.scope.generateDeclaredUidIdentifier("tmp"),i=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,s=[n.assignmentExpression("=",r,n.memberExpression(e.node.object,i?n.assignmentExpression("=",i,e.node.property):e.node.property,e.node.computed)),n.assignmentExpression("=",n.memberExpression(e.node.object,i?n.identifier(i.name):e.node.property,e.node.computed),n.binaryExpression("+",n.identifier(r.name),n.numericLiteral(1)))];e.parentPath.node.prefix||s.push(n.identifier(r.name)),t.replaceWith(n.sequenceExpression(s));return[t.get("expressions.0.right"),t.get("expressions.1.left")]}return[e]}(t))),[]).forEach((e=>{const t=e.node.computed?"":e.get("property").node.name,r=e.parentPath.isAssignmentExpression({left:e.node}),s=e.parentPath.isCallExpression({callee:e.node}),o=function(e,t,r){const i=t?"set":"get";return getBinding(e,`superprop_${i}:${r||""}`,(()=>{const i=[];let s;if(r)s=n.memberExpression(n.super(),n.identifier(r));else{const t=e.scope.generateUidIdentifier("prop");i.unshift(t),s=n.memberExpression(n.super(),n.identifier(t.name),!0)}if(t){const t=e.scope.generateUidIdentifier("value");i.push(t),s=n.assignmentExpression("=",s,n.identifier(t.name))}return n.arrowFunctionExpression(i,s)}))}(i,r,t),l=[];if(e.node.computed&&l.push(e.get("property").node),r){const t=e.parentPath.node.right;l.push(t)}const c=n.callExpression(n.identifier(o),l);s?(e.parentPath.unshiftContainer("arguments",n.thisExpression()),e.replaceWith(n.memberExpression(c,n.identifier("call"))),a.push(e.parentPath.get("arguments.0"))):r?e.parentPath.replaceWith(c):e.replaceWith(c)}))}let p;return(a.length>0||t)&&(p=function(e,t){return getBinding(e,"this",(r=>{if(!t||!hasSuperClass(e))return n.thisExpression();const i=new WeakSet;e.traverse({Function(e){e.isArrowFunctionExpression()||e.skip()},ClassProperty(e){e.skip()},CallExpression(e){e.get("callee").isSuper()&&(i.has(e.node)||(i.add(e.node),e.replaceWithMultiple([e.node,n.assignmentExpression("=",n.identifier(r),n.identifier("this"))])))}})}))}(i,s),(!t||s&&hasSuperClass(i))&&(a.forEach((e=>{const t=e.isJSX()?n.jsxIdentifier(p):n.identifier(p);t.loc=e.node.loc,e.replaceWith(t)})),t&&(p=null))),p}function hasSuperClass(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}function getBinding(e,t,r){const i="binding:"+t;let n=e.getData(i);if(!n){const s=e.scope.generateUidIdentifier(t);n=s.name,e.setData(i,n),e.scope.push({id:s,init:r(n)})}return n}},5635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateTruthy=function(){const e=this.evaluate();if(e.confident)return!!e.value},t.evaluate=function(){const e={confident:!0,deoptPath:null,seen:new Map};let t=evaluateCached(this,e);e.confident||(t=void 0);return{confident:e.confident,deopt:e.deoptPath,value:t}};const r=["String","Number","Math"],i=["random"];function deopt(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}function evaluateCached(e,t){const{node:n}=e,{seen:s}=t;if(s.has(n)){const r=s.get(n);return r.resolved?r.value:void deopt(e,t)}{const a={resolved:!1};s.set(n,a);const o=function(e,t){if(!t.confident)return;const{node:n}=e;if(e.isSequenceExpression()){const r=e.get("expressions");return evaluateCached(r[r.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return n.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return evaluateQuasis(e,n.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){const r=e.get("tag.object"),{node:{name:i}}=r,s=e.get("tag.property");if(r.isIdentifier()&&"String"===i&&!e.scope.getBinding(i,!0)&&s.isIdentifier&&"raw"===s.node.name)return evaluateQuasis(e,n.quasi.quasis,t,!0)}if(e.isConditionalExpression()){const r=evaluateCached(e.get("test"),t);if(!t.confident)return;return evaluateCached(r?e.get("consequent"):e.get("alternate"),t)}if(e.isExpressionWrapper())return evaluateCached(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:n})){const t=e.get("property"),r=e.get("object");if(r.isLiteral()&&t.isIdentifier()){const e=r.node.value,i=typeof e;if("number"===i||"string"===i)return e[t.node.name]}}if(e.isReferencedIdentifier()){const r=e.scope.getBinding(n.name);if(r&&r.constantViolations.length>0)return deopt(r.path,t);if(r&&e.node.start<r.path.node.end)return deopt(r.path,t);if(null==r?void 0:r.hasValue)return r.value;{if("undefined"===n.name)return r?deopt(r.path,t):void 0;if("Infinity"===n.name)return r?deopt(r.path,t):1/0;if("NaN"===n.name)return r?deopt(r.path,t):NaN;const i=e.resolve();return i===e?deopt(e,t):evaluateCached(i,t)}}if(e.isUnaryExpression({prefix:!0})){if("void"===n.operator)return;const r=e.get("argument");if("typeof"===n.operator&&(r.isFunction()||r.isClass()))return"function";const i=evaluateCached(r,t);if(!t.confident)return;switch(n.operator){case"!":return!i;case"+":return+i;case"-":return-i;case"~":return~i;case"typeof":return typeof i}}if(e.isArrayExpression()){const r=[],i=e.get("elements");for(const e of i){const i=e.evaluate();if(!i.confident)return deopt(i.deopt,t);r.push(i.value)}return r}if(e.isObjectExpression()){const r={},i=e.get("properties");for(const e of i){if(e.isObjectMethod()||e.isSpreadElement())return deopt(e,t);let i=e.get("key");if(e.node.computed){if(i=i.evaluate(),!i.confident)return deopt(i.deopt,t);i=i.value}else i=i.isIdentifier()?i.node.name:i.node.value;let n=e.get("value").evaluate();if(!n.confident)return deopt(n.deopt,t);n=n.value,r[i]=n}return r}if(e.isLogicalExpression()){const r=t.confident,i=evaluateCached(e.get("left"),t),s=t.confident;t.confident=r;const a=evaluateCached(e.get("right"),t),o=t.confident;switch(n.operator){case"||":if(t.confident=s&&(!!i||o),!t.confident)return;return i||a;case"&&":if(t.confident=s&&(!i||o),!t.confident)return;return i&&a}}if(e.isBinaryExpression()){const r=evaluateCached(e.get("left"),t);if(!t.confident)return;const i=evaluateCached(e.get("right"),t);if(!t.confident)return;switch(n.operator){case"-":return r-i;case"+":return r+i;case"/":return r/i;case"*":return r*i;case"%":return r%i;case"**":return Math.pow(r,i);case"<":return r<i;case">":return r>i;case"<=":return r<=i;case">=":return r>=i;case"==":return r==i;case"!=":return r!=i;case"===":return r===i;case"!==":return r!==i;case"|":return r|i;case"&":return r&i;case"^":return r^i;case"<<":return r<<i;case">>":return r>>i;case">>>":return r>>>i}}if(e.isCallExpression()){const s=e.get("callee");let a,o;if(s.isIdentifier()&&!e.scope.getBinding(s.node.name,!0)&&r.indexOf(s.node.name)>=0&&(o=global[n.callee.name]),s.isMemberExpression()){const e=s.get("object"),t=s.get("property");if(e.isIdentifier()&&t.isIdentifier()&&r.indexOf(e.node.name)>=0&&i.indexOf(t.node.name)<0&&(a=global[e.node.name],o=a[t.node.name]),e.isLiteral()&&t.isIdentifier()){const r=typeof e.node.value;"string"!==r&&"number"!==r||(a=e.node.value,o=a[t.node.name])}}if(o){const r=e.get("arguments").map((e=>evaluateCached(e,t)));if(!t.confident)return;return o.apply(a,r)}}deopt(e,t)}(e,t);return t.confident&&(a.resolved=!0,a.value=o),o}}function evaluateQuasis(e,t,r,i=!1){let n="",s=0;const a=e.get("expressions");for(const e of t){if(!r.confident)break;n+=i?e.value.raw:e.value.cooked;const t=a[s++];t&&(n+=String(evaluateCached(t,r)))}if(r.confident)return n}},4189:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOpposite=function(){if("left"===this.key)return this.getSibling("right");if("right"===this.key)return this.getSibling("left")},t.getCompletionRecords=function(){let e=[];if(this.isIfStatement())e=addCompletionRecords(this.get("consequent"),e),e=addCompletionRecords(this.get("alternate"),e);else if(this.isDoExpression()||this.isFor()||this.isWhile())e=addCompletionRecords(this.get("body"),e);else if(this.isProgram()||this.isBlockStatement())e=addCompletionRecords(this.get("body").pop(),e);else{if(this.isFunction())return this.get("body").getCompletionRecords();this.isTryStatement()?(e=addCompletionRecords(this.get("block"),e),e=addCompletionRecords(this.get("handler"),e)):this.isCatchClause()?e=addCompletionRecords(this.get("body"),e):this.isSwitchStatement()?e=function(e,t){let r=!0;for(let i=e.length-1;i>=0;i--){const n=e[i].get("consequent");let s=findBreak(n);if(s){for(;0===s.key&&s.parentPath.isBlockStatement();)s=s.parentPath;const e=s.getPrevSibling();s.key>0&&(e.isExpressionStatement()||e.isBlockStatement())?(t=addCompletionRecords(e,t),s.remove()):(s.replaceWith(s.scope.buildUndefinedNode()),t=addCompletionRecords(s,t))}else if(r){const statementFinder=e=>!e.isBlockStatement()||e.get("body").some(statementFinder);n.some(statementFinder)&&(t=addCompletionRecords(n[n.length-1],t),r=!1)}}return t}(this.get("cases"),e):e.push(this)}return e},t.getSibling=function(e){return n.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e})},t.getPrevSibling=function(){return this.getSibling(this.key-1)},t.getNextSibling=function(){return this.getSibling(this.key+1)},t.getAllNextSiblings=function(){let e=this.key,t=this.getSibling(++e);const r=[];for(;t.node;)r.push(t),t=this.getSibling(++e);return r},t.getAllPrevSiblings=function(){let e=this.key,t=this.getSibling(--e);const r=[];for(;t.node;)r.push(t),t=this.getSibling(--e);return r},t.get=function(e,t){!0===t&&(t=this.context);const r=e.split(".");return 1===r.length?this._getKey(e,t):this._getPattern(r,t)},t._getKey=function(e,t){const r=this.node,i=r[e];return Array.isArray(i)?i.map(((s,a)=>n.default.get({listKey:e,parentPath:this,parent:r,container:i,key:a}).setContext(t))):n.default.get({parentPath:this,parent:r,container:r,key:e}).setContext(t)},t._getPattern=function(e,t){let r=this;for(const i of e)r="."===i?r.parentPath:Array.isArray(r)?r[i]:r.get(i,t);return r},t.getBindingIdentifiers=function(e){return s.getBindingIdentifiers(this.node,e)},t.getOuterBindingIdentifiers=function(e){return s.getOuterBindingIdentifiers(this.node,e)},t.getBindingIdentifierPaths=function(e=!1,t=!1){let r=[].concat(this);const i=Object.create(null);for(;r.length;){const n=r.shift();if(!n)continue;if(!n.node)continue;const a=s.getBindingIdentifiers.keys[n.node.type];if(n.isIdentifier())if(e){(i[n.node.name]=i[n.node.name]||[]).push(n)}else i[n.node.name]=n;else if(n.isExportDeclaration()){const e=n.get("declaration");e.isDeclaration()&&r.push(e)}else{if(t){if(n.isFunctionDeclaration()){r.push(n.get("id"));continue}if(n.isFunctionExpression())continue}if(a)for(let e=0;e<a.length;e++){const t=a[e],i=n.get(t);(Array.isArray(i)||i.node)&&(r=r.concat(i))}}}return i},t.getOuterBindingIdentifierPaths=function(e){return this.getBindingIdentifierPaths(e,!0)};var i,n=(i=r(706))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function addCompletionRecords(e,t){return e?t.concat(e.getCompletionRecords()):t}function findBreak(e){let t;Array.isArray(e)||(e=[e]);for(const n of e){if(n.isDoExpression()||n.isProgram()||n.isBlockStatement()||n.isCatchClause()||n.isLabeledStatement())t=findBreak(n.get("body"));else if(n.isIfStatement()){var r;t=null!=(r=findBreak(n.get("consequent")))?r:findBreak(n.get("alternate"))}else if(n.isTryStatement()){var i;t=null!=(i=findBreak(n.get("block")))?i:findBreak(n.get("handler"))}else n.isBreakStatement()&&(t=n);if(t)return t}return null}},706:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SHOULD_SKIP=t.SHOULD_STOP=t.REMOVED=void 0;var i=_interopRequireWildcard(r(1025)),n=_interopRequireDefault(r(4987)),s=_interopRequireDefault(r(1910)),a=_interopRequireDefault(r(9760)),o=_interopRequireWildcard(r(1710)),l=r(1826),c=_interopRequireDefault(r(5386)),u=_interopRequireWildcard(r(4852)),p=_interopRequireWildcard(r(3078)),d=_interopRequireWildcard(r(4638)),h=_interopRequireWildcard(r(5635)),f=_interopRequireWildcard(r(7926)),m=_interopRequireWildcard(r(5201)),y=_interopRequireWildcard(r(7036)),T=_interopRequireWildcard(r(6788)),g=_interopRequireWildcard(r(9613)),b=_interopRequireWildcard(r(4189)),S=_interopRequireWildcard(r(7334));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}const x=(0,n.default)("babel");t.REMOVED=1;t.SHOULD_STOP=2;t.SHOULD_SKIP=4;class P{constructor(e,t){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this.parent=t,this.hub=e,this.data=null,this.context=null,this.scope=null}static get({hub:e,parentPath:t,parent:r,container:i,listKey:n,key:s}){if(!e&&t&&(e=t.hub),!r)throw new Error("To get a node path the parent needs to exist");const a=i[s],o=l.path.get(r)||[];let c;l.path.has(r)||l.path.set(r,o);for(let e=0;e<o.length;e++){const t=o[e];if(t.node===a){c=t;break}}return c||(c=new P(e,r),o.push(c)),c.setup(t,i,n,s),c}getScope(e){return this.isScope()?new a.default(this):e}setData(e,t){return null==this.data&&(this.data=Object.create(null)),this.data[e]=t}getData(e,t){null==this.data&&(this.data=Object.create(null));let r=this.data[e];return void 0===r&&void 0!==t&&(r=this.data[e]=t),r}buildCodeFrameError(e,t=SyntaxError){return this.hub.buildError(this.node,e,t)}traverse(e,t){(0,s.default)(this.node,e,this.scope,t,this)}set(e,t){o.validate(this.node,e,t),this.node[e]=t}getPathLocation(){const e=[];let t=this;do{let r=t.key;t.inList&&(r=`${t.listKey}[${r}]`),e.unshift(r)}while(t=t.parentPath);return e.join(".")}debug(e){x.enabled&&x(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,c.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}get shouldSkip(){return!!(4&this._traverseFlags)}set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}get shouldStop(){return!!(2&this._traverseFlags)}set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}get removed(){return!!(1&this._traverseFlags)}set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}}t.default=P,Object.assign(P.prototype,u,p,d,h,f,m,y,T,g,b,S);for(const e of o.TYPES){const t=`is${e}`,r=o[t];P.prototype[t]=function(e){return r(this.node,e)},P.prototype[`assert${e}`]=function(t){if(!r(this.node,t))throw new TypeError(`Expected node path of type ${e}`)}}for(const e of Object.keys(i)){if("_"===e[0])continue;o.TYPES.indexOf(e)<0&&o.TYPES.push(e);const t=i[e];P.prototype[`is${e}`]=function(e){return t.checkPath(this,e)}}},3078:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTypeAnnotation=function(){if(this.typeAnnotation)return this.typeAnnotation;let e=this._getTypeAnnotation()||n.anyTypeAnnotation();n.isTypeAnnotation(e)&&(e=e.typeAnnotation);return this.typeAnnotation=e},t._getTypeAnnotation=function(){var e;const t=this.node;if(!t){if("init"===this.key&&this.parentPath.isVariableDeclarator()){const e=this.parentPath.parentPath,t=e.parentPath;return"left"===e.key&&t.isForInStatement()?n.stringTypeAnnotation():"left"===e.key&&t.isForOfStatement()?n.anyTypeAnnotation():n.voidTypeAnnotation()}return}if(t.typeAnnotation)return t.typeAnnotation;let r=i[t.type];if(r)return r.call(this,t);if(r=i[this.parentPath.type],null==(e=r)?void 0:e.validParent)return this.parentPath.getTypeAnnotation()},t.isBaseType=function(e,t){return _isBaseType(e,this.getTypeAnnotation(),t)},t.couldBeBaseType=function(e){const t=this.getTypeAnnotation();if(n.isAnyTypeAnnotation(t))return!0;if(n.isUnionTypeAnnotation(t)){for(const r of t.types)if(n.isAnyTypeAnnotation(r)||_isBaseType(e,r,!0))return!0;return!1}return _isBaseType(e,t,!0)},t.baseTypeStrictlyMatches=function(e){const t=this.getTypeAnnotation();if(e=e.getTypeAnnotation(),!n.isAnyTypeAnnotation(t)&&n.isFlowBaseAnnotation(t))return e.type===t.type},t.isGenericType=function(e){const t=this.getTypeAnnotation();return n.isGenericTypeAnnotation(t)&&n.isIdentifier(t.id,{name:e})};var i=_interopRequireWildcard(r(4606)),n=_interopRequireWildcard(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}function _isBaseType(e,t,r){if("string"===e)return n.isStringTypeAnnotation(t);if("number"===e)return n.isNumberTypeAnnotation(t);if("boolean"===e)return n.isBooleanTypeAnnotation(t);if("any"===e)return n.isAnyTypeAnnotation(t);if("mixed"===e)return n.isMixedTypeAnnotation(t);if("empty"===e)return n.isEmptyTypeAnnotation(t);if("void"===e)return n.isVoidTypeAnnotation(t);if(r)return!1;throw new Error(`Unknown base type ${e}`)}},7875:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!this.isReferenced())return;const t=this.scope.getBinding(e.name);if(t)return t.identifier.typeAnnotation?t.identifier.typeAnnotation:function(e,t,r){const n=[],s=[];let a=getConstantViolationsBefore(e,t,s);const o=getConditionalAnnotation(e,t,r);if(o){const t=getConstantViolationsBefore(e,o.ifStatement);a=a.filter((e=>t.indexOf(e)<0)),n.push(o.typeAnnotation)}if(a.length){a=a.concat(s);for(const e of a)n.push(e.getTypeAnnotation())}if(!n.length)return;if(i.isTSTypeAnnotation(n[0])&&i.createTSUnionType)return i.createTSUnionType(n);if(i.createFlowUnionType)return i.createFlowUnionType(n);return i.createUnionTypeAnnotation(n)}(t,this,e.name);if("undefined"===e.name)return i.voidTypeAnnotation();if("NaN"===e.name||"Infinity"===e.name)return i.numberTypeAnnotation();e.name};var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function getConstantViolationsBefore(e,t,r){const i=e.constantViolations.slice();return i.unshift(e.path),i.filter((e=>{const i=(e=e.resolve())._guessExecutionStatusRelativeTo(t);return r&&"unknown"===i&&r.push(e),"before"===i}))}function inferAnnotationFromBinaryExpression(e,t){const r=t.node.operator,n=t.get("right").resolve(),s=t.get("left").resolve();let a,o,l;if(s.isIdentifier({name:e})?a=n:n.isIdentifier({name:e})&&(a=s),a)return"==="===r?a.getTypeAnnotation():i.BOOLEAN_NUMBER_BINARY_OPERATORS.indexOf(r)>=0?i.numberTypeAnnotation():void 0;if("==="!==r&&"=="!==r)return;if(s.isUnaryExpression({operator:"typeof"})?(o=s,l=n):n.isUnaryExpression({operator:"typeof"})&&(o=n,l=s),!o)return;if(!o.get("argument").isIdentifier({name:e}))return;if(l=l.resolve(),!l.isLiteral())return;const c=l.node.value;return"string"==typeof c?i.createTypeAnnotationBasedOnTypeof(c):void 0}function getConditionalAnnotation(e,t,r){const n=function(e,t,r){let i;for(;i=t.parentPath;){if(i.isIfStatement()||i.isConditionalExpression()){if("test"===t.key)return;return i}if(i.isFunction()&&i.parentPath.scope.getBinding(r)!==e)return;t=i}}(e,t,r);if(!n)return;const s=[n.get("test")],a=[];for(let e=0;e<s.length;e++){const t=s[e];if(t.isLogicalExpression())"&&"===t.node.operator&&(s.push(t.get("left")),s.push(t.get("right")));else if(t.isBinaryExpression()){const e=inferAnnotationFromBinaryExpression(r,t);e&&a.push(e)}}return a.length?i.isTSTypeAnnotation(a[0])&&i.createTSUnionType?{typeAnnotation:i.createTSUnionType(a),ifStatement:n}:i.createFlowUnionType?{typeAnnotation:i.createFlowUnionType(a),ifStatement:n}:{typeAnnotation:i.createUnionTypeAnnotation(a),ifStatement:n}:getConditionalAnnotation(n,r)}},4606:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VariableDeclarator=function(){var e;if(!this.get("id").isIdentifier())return;const t=this.get("init");let r=t.getTypeAnnotation();"AnyTypeAnnotation"===(null==(e=r)?void 0:e.type)&&t.isCallExpression()&&t.get("callee").isIdentifier({name:"Array"})&&!t.scope.hasBinding("Array",!0)&&(r=ArrayExpression());return r},t.TypeCastExpression=TypeCastExpression,t.NewExpression=function(e){if(this.get("callee").isIdentifier())return n.genericTypeAnnotation(e.callee)},t.TemplateLiteral=function(){return n.stringTypeAnnotation()},t.UnaryExpression=function(e){const t=e.operator;if("void"===t)return n.voidTypeAnnotation();if(n.NUMBER_UNARY_OPERATORS.indexOf(t)>=0)return n.numberTypeAnnotation();if(n.STRING_UNARY_OPERATORS.indexOf(t)>=0)return n.stringTypeAnnotation();if(n.BOOLEAN_UNARY_OPERATORS.indexOf(t)>=0)return n.booleanTypeAnnotation()},t.BinaryExpression=function(e){const t=e.operator;if(n.NUMBER_BINARY_OPERATORS.indexOf(t)>=0)return n.numberTypeAnnotation();if(n.BOOLEAN_BINARY_OPERATORS.indexOf(t)>=0)return n.booleanTypeAnnotation();if("+"===t){const e=this.get("right"),t=this.get("left");return t.isBaseType("number")&&e.isBaseType("number")?n.numberTypeAnnotation():t.isBaseType("string")||e.isBaseType("string")?n.stringTypeAnnotation():n.unionTypeAnnotation([n.stringTypeAnnotation(),n.numberTypeAnnotation()])}},t.LogicalExpression=function(){const e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];if(n.isTSTypeAnnotation(e[0])&&n.createTSUnionType)return n.createTSUnionType(e);if(n.createFlowUnionType)return n.createFlowUnionType(e);return n.createUnionTypeAnnotation(e)},t.ConditionalExpression=function(){const e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];if(n.isTSTypeAnnotation(e[0])&&n.createTSUnionType)return n.createTSUnionType(e);if(n.createFlowUnionType)return n.createFlowUnionType(e);return n.createUnionTypeAnnotation(e)},t.SequenceExpression=function(){return this.get("expressions").pop().getTypeAnnotation()},t.ParenthesizedExpression=function(){return this.get("expression").getTypeAnnotation()},t.AssignmentExpression=function(){return this.get("right").getTypeAnnotation()},t.UpdateExpression=function(e){const t=e.operator;if("++"===t||"--"===t)return n.numberTypeAnnotation()},t.StringLiteral=function(){return n.stringTypeAnnotation()},t.NumericLiteral=function(){return n.numberTypeAnnotation()},t.BooleanLiteral=function(){return n.booleanTypeAnnotation()},t.NullLiteral=function(){return n.nullLiteralTypeAnnotation()},t.RegExpLiteral=function(){return n.genericTypeAnnotation(n.identifier("RegExp"))},t.ObjectExpression=function(){return n.genericTypeAnnotation(n.identifier("Object"))},t.ArrayExpression=ArrayExpression,t.RestElement=RestElement,t.ClassDeclaration=t.ClassExpression=t.FunctionDeclaration=t.ArrowFunctionExpression=t.FunctionExpression=function(){return n.genericTypeAnnotation(n.identifier("Function"))},t.CallExpression=function(){const{callee:e}=this.node;if(o(e))return n.arrayTypeAnnotation(n.stringTypeAnnotation());if(a(e)||l(e))return n.arrayTypeAnnotation(n.anyTypeAnnotation());if(c(e))return n.arrayTypeAnnotation(n.tupleTypeAnnotation([n.stringTypeAnnotation(),n.anyTypeAnnotation()]));return resolveCall(this.get("callee"))},t.TaggedTemplateExpression=function(){return resolveCall(this.get("tag"))},Object.defineProperty(t,"Identifier",{enumerable:!0,get:function(){return s.default}});var i,n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710)),s=(i=r(7875))&&i.__esModule?i:{default:i};function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function TypeCastExpression(e){return e.typeAnnotation}function ArrayExpression(){return n.genericTypeAnnotation(n.identifier("Array"))}function RestElement(){return ArrayExpression()}TypeCastExpression.validParent=!0,RestElement.validParent=!0;const a=n.buildMatchMemberExpression("Array.from"),o=n.buildMatchMemberExpression("Object.keys"),l=n.buildMatchMemberExpression("Object.values"),c=n.buildMatchMemberExpression("Object.entries");function resolveCall(e){if((e=e.resolve()).isFunction()){if(e.is("async"))return e.is("generator")?n.genericTypeAnnotation(n.identifier("AsyncIterator")):n.genericTypeAnnotation(n.identifier("Promise"));if(e.node.returnType)return e.node.returnType}}},5201:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchesPattern=function(e,t){return i.matchesPattern(this.node,e,t)},t.has=has,t.isStatic=function(){return this.scope.isStatic(this.node)},t.isnt=function(e){return!this.has(e)},t.equals=function(e,t){return this.node[e]===t},t.isNodeType=function(e){return i.isType(this.type,e)},t.canHaveVariableDeclarationOrExpression=function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},t.canSwapBetweenExpressionAndStatement=function(e){if("body"!==this.key||!this.parentPath.isArrowFunctionExpression())return!1;if(this.isExpression())return i.isBlockStatement(e);if(this.isBlockStatement())return i.isExpression(e);return!1},t.isCompletionRecord=function(e){let t=this,r=!0;do{const i=t.container;if(t.isFunction()&&!r)return!!e;if(r=!1,Array.isArray(i)&&t.key!==i.length-1)return!1}while((t=t.parentPath)&&!t.isProgram());return!0},t.isStatementOrBlock=function(){return!this.parentPath.isLabeledStatement()&&!i.isBlockStatement(this.container)&&i.STATEMENT_OR_BLOCK_KEYS.includes(this.key)},t.referencesImport=function(e,t){if(!this.isReferencedIdentifier())return!1;const r=this.scope.getBinding(this.node.name);if(!r||"module"!==r.kind)return!1;const i=r.path,n=i.parentPath;if(!n.isImportDeclaration())return!1;if(n.node.source.value!==e)return!1;if(!t)return!0;if(i.isImportDefaultSpecifier()&&"default"===t)return!0;if(i.isImportNamespaceSpecifier()&&"*"===t)return!0;if(i.isImportSpecifier()&&i.node.imported.name===t)return!0;return!1},t.getSource=function(){const e=this.node;if(e.end){const t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""},t.willIMaybeExecuteBefore=function(e){return"after"!==this._guessExecutionStatusRelativeTo(e)},t._guessExecutionStatusRelativeTo=function(e){const t={this:getOuterFunction(this),target:getOuterFunction(e)};if(t.target.node!==t.this.node)return this._guessExecutionStatusRelativeToDifferentFunctions(t.target);const r={target:e.getAncestry(),this:this.getAncestry()};if(r.target.indexOf(this)>=0)return"after";if(r.this.indexOf(e)>=0)return"before";let n;const s={target:0,this:0};for(;!n&&s.this<r.this.length;){const e=r.this[s.this];s.target=r.target.indexOf(e),s.target>=0?n=e:s.this++}if(!n)throw new Error("Internal Babel error - The two compared nodes don\'t appear to belong to the same program.");if(isExecutionUncertainInList(r.this,s.this-1)||isExecutionUncertainInList(r.target,s.target-1))return"unknown";const a={this:r.this[s.this-1],target:r.target[s.target-1]};if(a.target.listKey&&a.this.listKey&&a.target.container===a.this.container)return a.target.key>a.this.key?"before":"after";const o=i.VISITOR_KEYS[n.type],l={this:o.indexOf(a.this.parentKey),target:o.indexOf(a.target.parentKey)};return l.target>l.this?"before":"after"},t._guessExecutionStatusRelativeToDifferentFunctions=function(e){if(!e.isFunctionDeclaration()||e.parentPath.isExportDeclaration())return"unknown";const t=e.scope.getBinding(e.node.id.name);if(!t.references)return"before";const r=t.referencePaths;let i;for(const t of r){if(!!t.find((t=>t.node===e.node)))continue;if("callee"!==t.key||!t.parentPath.isCallExpression())return"unknown";if(s.has(t.node))continue;s.add(t.node);const r=this._guessExecutionStatusRelativeTo(t);if(s.delete(t.node),i&&i!==r)return"unknown";i=r}return i},t.resolve=function(e,t){return this._resolve(e,t)||this},t._resolve=function(e,t){if(t&&t.indexOf(this)>=0)return;if((t=t||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){const r=this.scope.getBinding(this.node.name);if(!r)return;if(!r.constant)return;if("module"===r.kind)return;if(r.path!==this){const i=r.path.resolve(e,t);if(this.find((e=>e.node===i.node)))return;return i}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){const r=this.toComputedKey();if(!i.isLiteral(r))return;const n=r.value,s=this.get("object").resolve(e,t);if(s.isObjectExpression()){const r=s.get("properties");for(const i of r){if(!i.isProperty())continue;const r=i.get("key");let s=i.isnt("computed")&&r.isIdentifier({name:n});if(s=s||r.isLiteral({value:n}),s)return i.get("value").resolve(e,t)}}else if(s.isArrayExpression()&&!isNaN(+n)){const r=s.get("elements")[n];if(r)return r.resolve(e,t)}}}},t.isConstantExpression=function(){if(this.isIdentifier()){const e=this.scope.getBinding(this.node.name);return!!e&&e.constant}if(this.isLiteral())return!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every((e=>e.isConstantExpression())));if(this.isUnaryExpression())return"void"===this.get("operator").node&&this.get("argument").isConstantExpression();if(this.isBinaryExpression())return this.get("left").isConstantExpression()&&this.get("right").isConstantExpression();return!1},t.isInStrictMode=function(){const e=this.isProgram()?this:this.parentPath;return!!e.find((e=>{if(e.isProgram({sourceType:"module"}))return!0;if(e.isClass())return!0;if(!e.isProgram()&&!e.isFunction())return!1;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement())return!1;let{node:t}=e;e.isFunction()&&(t=t.body);for(const e of t.directives)if("use strict"===e.value.value)return!0}))},t.is=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function has(e){const t=this.node&&this.node[e];return t&&Array.isArray(t)?!!t.length:!!t}const n=has;function getOuterFunction(e){return(e.scope.getFunctionParent()||e.scope.getProgramParent()).path}function isExecutionUncertain(e,t){switch(e){case"LogicalExpression":case"AssignmentPattern":return"right"===t;case"ConditionalExpression":case"IfStatement":return"consequent"===t||"alternate"===t;case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return"body"===t;case"ForStatement":return"body"===t||"update"===t;case"SwitchStatement":return"cases"===t;case"TryStatement":return"handler"===t;case"OptionalMemberExpression":return"property"===t;case"OptionalCallExpression":return"arguments"===t;default:return!1}}function isExecutionUncertainInList(e,t){for(let r=0;r<t;r++){const t=e[r];if(isExecutionUncertain(t.parent.type,t.parentKey))return!0}return!1}t.is=n;const s=new WeakSet},6019:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}const n={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&i.react.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if("this"===e.node.name){let r=e.scope;do{if(r.path.isFunction()&&!r.path.isArrowFunctionExpression())break}while(r=r.parent);r&&t.breakOnScopePaths.push(r.path)}const r=e.scope.getBinding(e.node.name);if(r){for(const i of r.constantViolations)if(i.scope!==r.path.scope)return t.mutableBinding=!0,void e.stop();r===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=r)}}};t.default=class{constructor(e,t){this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=t,this.path=e,this.attachAfter=!1}isCompatibleScope(e){for(const t of Object.keys(this.bindings)){const r=this.bindings[t];if(!e.bindingIdentifierEquals(t,r.identifier))return!1}return!0}getCompatibleScopes(){let e=this.path.scope;do{if(!this.isCompatibleScope(e))break;if(this.scopes.push(e),this.breakOnScopePaths.indexOf(e.path)>=0)break}while(e=e.parent)}getAttachmentPath(){let e=this._getAttachmentPath();if(!e)return;let t=e.scope;if(t.path===e&&(t=e.scope.parent),t.path.isProgram()||t.path.isFunction())for(const r of Object.keys(this.bindings)){if(!t.hasOwnBinding(r))continue;const i=this.bindings[r];if("param"===i.kind||"params"===i.path.parentKey)continue;if(this.getAttachmentParentForPath(i.path).key>=e.key){this.attachAfter=!0,e=i.path;for(const t of i.constantViolations)this.getAttachmentParentForPath(t).key>e.key&&(e=t)}}return e}_getAttachmentPath(){const e=this.scopes.pop();if(e)if(e.path.isFunction()){if(!this.hasOwnParamBindings(e))return this.getNextScopeAttachmentParent();{if(this.scope===e)return;const t=e.path.get("body").get("body");for(let e=0;e<t.length;e++)if(!t[e].node._blockHoist)return t[e]}}else if(e.path.isProgram())return this.getNextScopeAttachmentParent()}getNextScopeAttachmentParent(){const e=this.scopes.pop();if(e)return this.getAttachmentParentForPath(e.path)}getAttachmentParentForPath(e){do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())return e}while(e=e.parentPath)}hasOwnParamBindings(e){for(const t of Object.keys(this.bindings)){if(!e.hasOwnBinding(t))continue;const r=this.bindings[t];if("param"===r.kind&&r.constant)return!0}return!1}run(){if(this.path.traverse(n,this),this.mutableBinding)return;this.getCompatibleScopes();const e=this.getAttachmentPath();if(!e)return;if(e.getFunctionParent()===this.path.getFunctionParent())return;let t=e.scope.generateUidIdentifier("ref");const r=i.variableDeclarator(t,this.path.node),s=this.attachAfter?"insertAfter":"insertBefore",[a]=e[s]([e.isVariableDeclarator()?r:i.variableDeclaration("var",[r])]),o=this.path.parentPath;return o.isJSXElement()&&this.path.container===o.node.children&&(t=i.JSXExpressionContainer(t)),this.path.replaceWith(i.cloneNode(t)),e.isVariableDeclarator()?a.get("init"):a.get("declarations.0.init")}}},8004:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hooks=void 0;t.hooks=[function(e,t){if("test"===e.key&&(t.isWhile()||t.isSwitchCase())||"declaration"===e.key&&t.isExportDeclaration()||"body"===e.key&&t.isLabeledStatement()||"declarations"===e.listKey&&t.isVariableDeclaration()&&1===t.node.declarations.length||"expression"===e.key&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&1===t.node.expressions.length)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return"left"===e.key?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&("consequent"===e.key||"alternate"===e.key)||"body"===e.key&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",body:[]}),!0}]},1025:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ForAwaitStatement=t.NumericLiteralTypeAnnotation=t.ExistentialTypeParam=t.SpreadProperty=t.RestProperty=t.Flow=t.Pure=t.Generated=t.User=t.Var=t.BlockScoped=t.Referenced=t.Scope=t.Expression=t.Statement=t.BindingIdentifier=t.ReferencedMemberExpression=t.ReferencedIdentifier=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}const n={types:["Identifier","JSXIdentifier"],checkPath(e,t){const{node:r,parent:n}=e;if(!i.isIdentifier(r,t)&&!i.isJSXMemberExpression(n,t)){if(!i.isJSXIdentifier(r,t))return!1;if(i.react.isCompatTag(r.name))return!1}return i.isReferenced(r,n,e.parentPath.parent)}};t.ReferencedIdentifier=n;const s={types:["MemberExpression"],checkPath:({node:e,parent:t})=>i.isMemberExpression(e)&&i.isReferenced(e,t)};t.ReferencedMemberExpression=s;const a={types:["Identifier"],checkPath(e){const{node:t,parent:r}=e,n=e.parentPath.parent;return i.isIdentifier(t)&&i.isBinding(t,r,n)}};t.BindingIdentifier=a;const o={types:["Statement"],checkPath({node:e,parent:t}){if(i.isStatement(e)){if(i.isVariableDeclaration(e)){if(i.isForXStatement(t,{left:e}))return!1;if(i.isForStatement(t,{init:e}))return!1}return!0}return!1}};t.Statement=o;const l={types:["Expression"],checkPath:e=>e.isIdentifier()?e.isReferencedIdentifier():i.isExpression(e.node)};t.Expression=l;const c={types:["Scopable","Pattern"],checkPath:e=>i.isScope(e.node,e.parent)};t.Scope=c;const u={checkPath:e=>i.isReferenced(e.node,e.parent)};t.Referenced=u;const p={checkPath:e=>i.isBlockScoped(e.node)};t.BlockScoped=p;const d={types:["VariableDeclaration"],checkPath:e=>i.isVar(e.node)};t.Var=d;const h={checkPath:e=>e.node&&!!e.node.loc};t.User=h;const f={checkPath:e=>!e.isUser()};t.Generated=f;const m={checkPath:(e,t)=>e.scope.isPure(e.node,t)};t.Pure=m;const y={types:["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],checkPath:({node:e})=>!!i.isFlow(e)||(i.isImportDeclaration(e)?"type"===e.importKind||"typeof"===e.importKind:i.isExportDeclaration(e)?"type"===e.exportKind:!!i.isImportSpecifier(e)&&("type"===e.importKind||"typeof"===e.importKind))};t.Flow=y;const T={types:["RestElement"],checkPath:e=>e.parentPath&&e.parentPath.isObjectPattern()};t.RestProperty=T;const g={types:["RestElement"],checkPath:e=>e.parentPath&&e.parentPath.isObjectExpression()};t.SpreadProperty=g;t.ExistentialTypeParam={types:["ExistsTypeAnnotation"]};t.NumericLiteralTypeAnnotation={types:["NumberLiteralTypeAnnotation"]};const b={types:["ForOfStatement"],checkPath:({node:e})=>!0===e.await};t.ForAwaitStatement=b},9613:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.insertBefore=function(e){this._assertUnremoved(),e=this._verifyNodeList(e);const{parentPath:t}=this;if(t.isExpressionStatement()||t.isLabeledStatement()||t.isExportNamedDeclaration()||t.isExportDefaultDeclaration()&&this.isDeclaration())return t.insertBefore(e);if(this.isNodeType("Expression")&&!this.isJSXElement()||t.isForStatement()&&"init"===this.key)return this.node&&e.push(this.node),this.replaceExpressionWithStatements(e);if(Array.isArray(this.container))return this._containerInsertBefore(e);if(this.isStatementOrBlock()){const t=this.node&&(!this.isExpressionStatement()||null!=this.node.expression);return this.replaceWith(a.blockStatement(t?[this.node]:[])),this.unshiftContainer("body",e)}throw new Error("We don\'t know what to do with this node type. We were previously a Statement but we can\'t fit in here?")},t._containerInsert=function(e,t){this.updateSiblingKeys(e,t.length);const r=[];this.container.splice(e,0,...t);for(let i=0;i<t.length;i++){const t=e+i,n=this.getSibling(t);r.push(n),this.context&&this.context.queue&&n.pushContext(this.context)}const i=this._getQueueContexts();for(const e of r){e.setScope(),e.debug("Inserted.");for(const t of i)t.maybeQueue(e,!0)}return r},t._containerInsertBefore=function(e){return this._containerInsert(this.key,e)},t._containerInsertAfter=function(e){return this._containerInsert(this.key+1,e)},t.insertAfter=function(e){this._assertUnremoved(),e=this._verifyNodeList(e);const{parentPath:t}=this;if(t.isExpressionStatement()||t.isLabeledStatement()||t.isExportNamedDeclaration()||t.isExportDefaultDeclaration()&&this.isDeclaration())return t.insertAfter(e.map((e=>a.isExpression(e)?a.expressionStatement(e):e)));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!t.isJSXElement()||t.isForStatement()&&"init"===this.key){if(this.node){let{scope:r}=this;t.isMethod({computed:!0,key:this.node})&&(r=r.parent);const i=r.generateDeclaredUidIdentifier();e.unshift(a.expressionStatement(a.assignmentExpression("=",a.cloneNode(i),this.node))),e.push(a.expressionStatement(a.cloneNode(i)))}return this.replaceExpressionWithStatements(e)}if(Array.isArray(this.container))return this._containerInsertAfter(e);if(this.isStatementOrBlock()){const t=this.node&&(!this.isExpressionStatement()||null!=this.node.expression);return this.replaceWith(a.blockStatement(t?[this.node]:[])),this.pushContainer("body",e)}throw new Error("We don\'t know what to do with this node type. We were previously a Statement but we can\'t fit in here?")},t.updateSiblingKeys=function(e,t){if(!this.parent)return;const r=i.path.get(this.parent);for(let i=0;i<r.length;i++){const n=r[i];n.key>=e&&(n.key+=t)}},t._verifyNodeList=function(e){if(!e)return[];e.constructor!==Array&&(e=[e]);for(let t=0;t<e.length;t++){const r=e[t];let i;if(r?"object"!=typeof r?i="contains a non-object node":r.type?r instanceof s.default&&(i="has a NodePath when it expected a raw object"):i="without a type":i="has falsy node",i){const e=Array.isArray(r)?"array":typeof r;throw new Error(`Node list ${i} with the index of ${t} and type of ${e}`)}}return e},t.unshiftContainer=function(e,t){this._assertUnremoved(),t=this._verifyNodeList(t);return s.default.get({parentPath:this,parent:this.node,container:this.node[e],listKey:e,key:0})._containerInsertBefore(t)},t.pushContainer=function(e,t){this._assertUnremoved(),t=this._verifyNodeList(t);const r=this.node[e];return s.default.get({parentPath:this,parent:this.node,container:r,listKey:e,key:r.length}).replaceWithMultiple(t)},t.hoist=function(e=this.scope){return new n.default(this,e).run()};var i=r(1826),n=_interopRequireDefault(r(6019)),s=_interopRequireDefault(r(706)),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},6788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.remove=function(){var e;this._assertUnremoved(),this.resync(),(null==(e=this.opts)?void 0:e.noScope)||this._removeFromScope();if(this._callRemovalHooks())return void this._markRemoved();this.shareCommentsWithSiblings(),this._remove(),this._markRemoved()},t._removeFromScope=function(){const e=this.getBindingIdentifiers();Object.keys(e).forEach((e=>this.scope.removeBinding(e)))},t._callRemovalHooks=function(){for(const e of i.hooks)if(e(this,this.parentPath))return!0},t._remove=function(){Array.isArray(this.container)?(this.container.splice(this.key,1),this.updateSiblingKeys(this.key,-1)):this._replaceWith(null)},t._markRemoved=function(){this._traverseFlags|=n.SHOULD_SKIP|n.REMOVED,this.node=null},t._assertUnremoved=function(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")};var i=r(8004),n=r(706)},4638:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.replaceWithMultiple=function(e){this.resync(),e=this._verifyNodeList(e),o.inheritLeadingComments(e[0],this.node),o.inheritTrailingComments(e[e.length-1],this.node),this.node=this.container[this.key]=null;const t=this.insertAfter(e);this.node?this.requeue():this.remove();return t},t.replaceWithSourceString=function(e){this.resync();try{e=`(${e})`,e=(0,a.parse)(e)}catch(t){const r=t.loc;throw r&&(t.message+=" - make sure this is an expression.\\n"+(0,i.codeFrameColumns)(e,{start:{line:r.line,column:r.column+1}}),t.code="BABEL_REPLACE_SOURCE_ERROR"),t}return e=e.program.body[0].expression,n.default.removeProperties(e),this.replaceWith(e)},t.replaceWith=function(e){if(this.resync(),this.removed)throw new Error("You can\'t replace this node, we\'ve already removed it");e instanceof s.default&&(e=e.node);if(!e)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===e)return[this];if(this.isProgram()&&!o.isProgram(e))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(e))throw new Error("Don\'t use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if("string"==typeof e)throw new Error("Don\'t use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let t="";this.isNodeType("Statement")&&o.isExpression(e)&&(this.canHaveVariableDeclarationOrExpression()||this.canSwapBetweenExpressionAndStatement(e)||this.parentPath.isExportDefaultDeclaration()||(e=o.expressionStatement(e),t="expression"));if(this.isNodeType("Expression")&&o.isStatement(e)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(e))return this.replaceExpressionWithStatements([e]);const r=this.node;r&&(o.inheritsComments(e,r),o.removeComments(r));return this._replaceWith(e),this.type=e.type,this.setScope(),this.requeue(),[t?this.get(t):this]},t._replaceWith=function(e){if(!this.container)throw new ReferenceError("Container is falsy");this.inList?o.validate(this.parent,this.key,[e]):o.validate(this.parent,this.key,e);this.debug(`Replace with ${null==e?void 0:e.type}`),this.node=this.container[this.key]=e},t.replaceExpressionWithStatements=function(e){this.resync();const t=o.toSequenceExpression(e,this.scope);if(t)return this.replaceWith(t)[0].get("expressions");const r=this.getFunctionParent(),i=null==r?void 0:r.is("async"),s=o.arrowFunctionExpression([],o.blockStatement(e));this.replaceWith(o.callExpression(s,[])),this.traverse(l);const a=this.get("callee").getCompletionRecords();for(const e of a){if(!e.isExpressionStatement())continue;const t=e.findParent((e=>e.isLoop()));if(t){let r=t.getData("expressionReplacementReturnUid");if(r)r=o.identifier(r.name);else{const e=this.get("callee");r=e.scope.generateDeclaredUidIdentifier("ret"),e.get("body").pushContainer("body",o.returnStatement(o.cloneNode(r))),t.setData("expressionReplacementReturnUid",r)}e.get("expression").replaceWith(o.assignmentExpression("=",o.cloneNode(r),e.node.expression))}else e.replaceWith(o.returnStatement(e.node.expression))}const c=this.get("callee");c.arrowFunctionToExpression(),i&&n.default.hasType(this.get("callee.body").node,"AwaitExpression",o.FUNCTION_TYPES)&&(c.set("async",!0),this.replaceWith(o.awaitExpression(this.node)));return c.get("body.body")},t.replaceInline=function(e){if(this.resync(),Array.isArray(e)){if(Array.isArray(this.container)){e=this._verifyNodeList(e);const t=this._containerInsertAfter(e);return this.remove(),t}return this.replaceWithMultiple(e)}return this.replaceWith(e)};var i=r(785),n=_interopRequireDefault(r(1910)),s=_interopRequireDefault(r(706)),a=r(7493),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const l={Function(e){e.skip()},VariableDeclaration(e){if("var"!==e.node.kind)return;const t=e.getBindingIdentifiers();for(const r of Object.keys(t))e.scope.push({id:t[r]});const r=[];for(const t of e.node.declarations)t.init&&r.push(o.expressionStatement(o.assignmentExpression("=",t.id,t.init)));e.replaceWithMultiple(r)}}},2329:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class{constructor({identifier:e,scope:t,path:r,kind:i}){this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=e,this.scope=t,this.path=r,this.kind=i,this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(e){this.constant=!1,-1===this.constantViolations.indexOf(e)&&this.constantViolations.push(e)}reference(e){-1===this.referencePaths.indexOf(e)&&(this.referenced=!0,this.references++,this.referencePaths.push(e))}dereference(){this.references--,this.referenced=!!this.references}}},9760:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=_interopRequireDefault(r(1360)),n=_interopRequireDefault(r(1910)),s=_interopRequireDefault(r(2329)),a=_interopRequireDefault(r(2261)),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710)),l=r(1826);function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function gatherNodeParts(e,t){switch(null==e?void 0:e.type){default:if(o.isModuleDeclaration(e))if(e.source)gatherNodeParts(e.source,t);else if(e.specifiers&&e.specifiers.length)for(const r of e.specifiers)gatherNodeParts(r,t);else e.declaration&&gatherNodeParts(e.declaration,t);else o.isModuleSpecifier(e)?gatherNodeParts(e.local,t):o.isLiteral(e)&&t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":gatherNodeParts(e.object,t),gatherNodeParts(e.property,t);break;case"Identifier":case"JSXIdentifier":case"JSXOpeningElement":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":gatherNodeParts(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(const r of e.properties)gatherNodeParts(r,t);break;case"SpreadElement":case"RestElement":case"UnaryExpression":case"UpdateExpression":gatherNodeParts(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":gatherNodeParts(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),gatherNodeParts(e.argument,t);break;case"AwaitExpression":t.push("await"),gatherNodeParts(e.argument,t);break;case"AssignmentExpression":gatherNodeParts(e.left,t);break;case"VariableDeclarator":case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":case"PrivateName":gatherNodeParts(e.id,t);break;case"ParenthesizedExpression":gatherNodeParts(e.expression,t);break;case"MetaProperty":gatherNodeParts(e.meta,t),gatherNodeParts(e.property,t);break;case"JSXElement":gatherNodeParts(e.openingElement,t);break;case"JSXFragment":gatherNodeParts(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":gatherNodeParts(e.namespace,t),gatherNodeParts(e.name,t)}}const c={For(e){for(const t of o.FOR_INIT_KEYS){const r=e.get(t);if(r.isVar()){(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerBinding("var",r)}}},Declaration(e){if(e.isBlockScoped())return;if(e.isExportDeclaration()&&e.get("declaration").isDeclaration())return;(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ReferencedIdentifier(e,t){t.references.push(e)},ForXStatement(e,t){const r=e.get("left");(r.isPattern()||r.isIdentifier())&&t.constantViolations.push(e)},ExportDeclaration:{exit(e){const{node:t,scope:r}=e,i=t.declaration;if(o.isClassDeclaration(i)||o.isFunctionDeclaration(i)){const t=i.id;if(!t)return;const n=r.getBinding(t.name);n&&n.reference(e)}else if(o.isVariableDeclaration(i))for(const t of i.declarations)for(const i of Object.keys(o.getBindingIdentifiers(t))){const t=r.getBinding(i);t&&t.reference(e)}}},LabeledStatement(e){e.scope.getProgramParent().addGlobal(e.node),e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){"delete"===e.node.operator&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;t.path===e&&(t=t.parent);if(t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){const t=e.node.id.name;e.scope.bindings[t]=e.scope.parent.getBinding(t)}},Block(e){const t=e.get("body");for(const r of t)r.isFunctionDeclaration()&&e.scope.getBlockParent().registerDeclaration(r)},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){e.isFunctionExpression()&&e.has("id")&&!e.get("id").node[o.NOT_LOCAL_BINDING]&&e.scope.registerBinding("local",e.get("id"),e);const t=e.get("params");for(const r of t)e.scope.registerBinding("param",r)},ClassExpression(e){e.has("id")&&!e.get("id").node[o.NOT_LOCAL_BINDING]&&e.scope.registerBinding("local",e)}};let u=0;class p{constructor(e){const{node:t}=e,r=l.scope.get(t);if((null==r?void 0:r.path)===e)return r;l.scope.set(t,this),this.uid=u++,this.block=t,this.path=e,this.labels=new Map,this.inited=!1}get parent(){const e=this.path.findParent((e=>e.isScope()));return null==e?void 0:e.scope}get parentBlock(){return this.path.parent}get hub(){return this.path.hub}traverse(e,t,r){(0,n.default)(e,t,this,r,this.path)}generateDeclaredUidIdentifier(e){const t=this.generateUidIdentifier(e);return this.push({id:t}),o.cloneNode(t)}generateUidIdentifier(e){return o.identifier(this.generateUid(e))}generateUid(e="temp"){let t;e=o.toIdentifier(e).replace(/^_+/,"").replace(/[0-9]+$/g,"");let r=1;do{t=this._generateUid(e,r),r++}while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));const i=this.getProgramParent();return i.references[t]=!0,i.uids[t]=!0,t}_generateUid(e,t){let r=e;return t>1&&(r+=t),`_${r}`}generateUidBasedOnNode(e,t){const r=[];gatherNodeParts(e,r);let i=r.join("$");return i=i.replace(/^_/,"")||t||"ref",this.generateUid(i.slice(0,20))}generateUidIdentifierBasedOnNode(e,t){return o.identifier(this.generateUidBasedOnNode(e,t))}isStatic(e){if(o.isThisExpression(e)||o.isSuper(e))return!0;if(o.isIdentifier(e)){const t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1}maybeGenerateMemoised(e,t){if(this.isStatic(e))return null;{const r=this.generateUidIdentifierBasedOnNode(e);return t?r:(this.push({id:r}),o.cloneNode(r))}}checkBlockScopedCollisions(e,t,r,i){if("param"===t)return;if("local"===e.kind)return;if("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&("let"===t||"const"===t))throw this.hub.buildError(i,`Duplicate declaration "${r}"`,TypeError)}rename(e,t,r){const n=this.getBinding(e);if(n)return t=t||this.generateUidIdentifier(e).name,new i.default(n,e,t).rename(r)}_renameFromMap(e,t,r,i){e[t]&&(e[r]=i,e[t]=null)}dump(){const e="-".repeat(60);console.log(e);let t=this;do{console.log("#",t.block.type);for(const e of Object.keys(t.bindings)){const r=t.bindings[e];console.log(" -",e,{constant:r.constant,references:r.references,violations:r.constantViolations.length,kind:r.kind})}}while(t=t.parent);console.log(e)}toArray(e,t,r){if(o.isIdentifier(e)){const t=this.getBinding(e.name);if((null==t?void 0:t.constant)&&t.path.isGenericType("Array"))return e}if(o.isArrayExpression(e))return e;if(o.isIdentifier(e,{name:"arguments"}))return o.callExpression(o.memberExpression(o.memberExpression(o.memberExpression(o.identifier("Array"),o.identifier("prototype")),o.identifier("slice")),o.identifier("call")),[e]);let i;const n=[e];return!0===t?i="toConsumableArray":t?(n.push(o.numericLiteral(t)),i="slicedToArray"):i="toArray",r&&(n.unshift(this.hub.addHelper(i)),i="maybeArrayLike"),o.callExpression(this.hub.addHelper(i),n)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){const t=e.get("declarations");for(const r of t)this.registerBinding(e.node.kind,r)}else if(e.isClassDeclaration())this.registerBinding("let",e);else if(e.isImportDeclaration()){const t=e.get("specifiers");for(const e of t)this.registerBinding("module",e)}else if(e.isExportDeclaration()){const t=e.get("declaration");(t.isClassDeclaration()||t.isFunctionDeclaration()||t.isVariableDeclaration())&&this.registerDeclaration(t)}else this.registerBinding("unknown",e)}buildUndefinedNode(){return o.unaryExpression("void",o.numericLiteral(0),!0)}registerConstantViolation(e){const t=e.getBindingIdentifiers();for(const r of Object.keys(t)){const t=this.getBinding(r);t&&t.reassign(e)}}registerBinding(e,t,r=t){if(!e)throw new ReferenceError("no `kind`");if(t.isVariableDeclaration()){const r=t.get("declarations");for(const t of r)this.registerBinding(e,t);return}const i=this.getProgramParent(),n=t.getOuterBindingIdentifiers(!0);for(const t of Object.keys(n)){i.references[t]=!0;for(const i of n[t]){const n=this.getOwnBinding(t);if(n){if(n.identifier===i)continue;this.checkBlockScopedCollisions(n,e,t,i)}n?this.registerConstantViolation(r):this.bindings[t]=new s.default({identifier:i,scope:this,path:r,kind:e})}}}addGlobal(e){this.globals[e.name]=e}hasUid(e){let t=this;do{if(t.uids[e])return!0}while(t=t.parent);return!1}hasGlobal(e){let t=this;do{if(t.globals[e])return!0}while(t=t.parent);return!1}hasReference(e){return!!this.getProgramParent().references[e]}isPure(e,t){if(o.isIdentifier(e)){const r=this.getBinding(e.name);return!!r&&(!t||r.constant)}if(o.isClass(e))return!(e.superClass&&!this.isPure(e.superClass,t))&&this.isPure(e.body,t);if(o.isClassBody(e)){for(const r of e.body)if(!this.isPure(r,t))return!1;return!0}if(o.isBinary(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if(o.isArrayExpression(e)){for(const r of e.elements)if(!this.isPure(r,t))return!1;return!0}if(o.isObjectExpression(e)){for(const r of e.properties)if(!this.isPure(r,t))return!1;return!0}if(o.isMethod(e))return!(e.computed&&!this.isPure(e.key,t))&&("get"!==e.kind&&"set"!==e.kind);if(o.isProperty(e))return!(e.computed&&!this.isPure(e.key,t))&&this.isPure(e.value,t);if(o.isUnaryExpression(e))return this.isPure(e.argument,t);if(o.isTaggedTemplateExpression(e))return o.matchesPattern(e.tag,"String.raw")&&!this.hasBinding("String",!0)&&this.isPure(e.quasi,t);if(o.isTemplateLiteral(e)){for(const r of e.expressions)if(!this.isPure(r,t))return!1;return!0}return o.isPureish(e)}setData(e,t){return this.data[e]=t}getData(e){let t=this;do{const r=t.data[e];if(null!=r)return r}while(t=t.parent)}removeData(e){let t=this;do{null!=t.data[e]&&(t.data[e]=null)}while(t=t.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){const e=this.path;if(this.references=Object.create(null),this.bindings=Object.create(null),this.globals=Object.create(null),this.uids=Object.create(null),this.data=Object.create(null),e.isFunction()){e.isFunctionExpression()&&e.has("id")&&!e.get("id").node[o.NOT_LOCAL_BINDING]&&this.registerBinding("local",e.get("id"),e);const t=e.get("params");for(const e of t)this.registerBinding("param",e)}const t=this.getProgramParent();if(t.crawling)return;const r={references:[],constantViolations:[],assignments:[]};this.crawling=!0,e.traverse(c,r),this.crawling=!1;for(const e of r.assignments){const r=e.getBindingIdentifiers();for(const i of Object.keys(r))e.scope.getBinding(i)||t.addGlobal(r[i]);e.scope.registerConstantViolation(e)}for(const e of r.references){const r=e.scope.getBinding(e.node.name);r?r.reference(e):t.addGlobal(e.node)}for(const e of r.constantViolations)e.scope.registerConstantViolation(e)}push(e){let t=this.path;t.isBlockStatement()||t.isProgram()||(t=this.getBlockParent().path),t.isSwitchStatement()&&(t=(this.getFunctionParent()||this.getProgramParent()).path),(t.isLoop()||t.isCatchClause()||t.isFunction())&&(t.ensureBlock(),t=t.get("body"));const r=e.unique,i=e.kind||"var",n=null==e._blockHoist?2:e._blockHoist,s=`declaration:${i}:${n}`;let a=!r&&t.getData(s);if(!a){const e=o.variableDeclaration(i,[]);e._blockHoist=n,[a]=t.unshiftContainer("body",[e]),r||t.setData(s,a)}const l=o.variableDeclarator(e.id,e.init);a.node.declarations.push(l),this.registerBinding(i,a.get("declarations").pop())}getProgramParent(){let e=this;do{if(e.path.isProgram())return e}while(e=e.parent);throw new Error("Couldn\'t find a Program")}getFunctionParent(){let e=this;do{if(e.path.isFunctionParent())return e}while(e=e.parent);return null}getBlockParent(){let e=this;do{if(e.path.isBlockParent())return e}while(e=e.parent);throw new Error("We couldn\'t find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){const e=Object.create(null);let t=this;do{for(const r of Object.keys(t.bindings))r in e==!1&&(e[r]=t.bindings[r]);t=t.parent}while(t);return e}getAllBindingsOfKind(){const e=Object.create(null);for(const t of arguments){let r=this;do{for(const i of Object.keys(r.bindings)){const n=r.bindings[i];n.kind===t&&(e[i]=n)}r=r.parent}while(r)}return e}bindingIdentifierEquals(e,t){return this.getBindingIdentifier(e)===t}getBinding(e){let t,r=this;do{const n=r.getOwnBinding(e);var i;if(n)if(!(null==(i=t)?void 0:i.isPattern())||"param"===n.kind)return n;t=r.path}while(r=r.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){var t;return null==(t=this.getBinding(e))?void 0:t.identifier}getOwnBindingIdentifier(e){const t=this.bindings[e];return null==t?void 0:t.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,t){return!!e&&(!!this.hasOwnBinding(e)||(!!this.parentHasBinding(e,t)||(!!this.hasUid(e)||(!(t||!p.globals.includes(e))||!(t||!p.contextVariables.includes(e))))))}parentHasBinding(e,t){var r;return null==(r=this.parent)?void 0:r.hasBinding(e,t)}moveBindingTo(e,t){const r=this.getBinding(e);r&&(r.scope.removeOwnBinding(e),r.scope=t,t.bindings[e]=r)}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){var t;null==(t=this.getBinding(e))||t.scope.removeOwnBinding(e);let r=this;do{r.uids[e]&&(r.uids[e]=!1)}while(r=r.parent)}}t.default=p,p.globals=Object.keys(a.default.builtin),p.contextVariables=["arguments","undefined","Infinity","NaN"]},1360:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;_interopRequireDefault(r(2329));var i=_interopRequireDefault(r(7224));!function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const n={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||e.skip()},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;const r=e.getOuterBindingIdentifiers();for(const e in r)e===t.oldName&&(r[e].name=t.newName)}};t.default=class{constructor(e,t,r){this.newName=r,this.oldName=t,this.binding=e}maybeConvertFromExportDeclaration(e){const t=e.parentPath;t.isExportDeclaration()&&(t.isExportDefaultDeclaration()&&!t.get("declaration").node.id||(0,i.default)(t))}maybeConvertFromClassFunctionDeclaration(e){}maybeConvertFromClassFunctionExpression(e){}rename(e){const{binding:t,oldName:r,newName:i}=this,{scope:s,path:a}=t,o=a.find((e=>e.isDeclaration()||e.isFunctionExpression()||e.isClassExpression()));if(o){o.getOuterBindingIdentifiers()[r]===t.identifier&&this.maybeConvertFromExportDeclaration(o)}s.traverse(e||s.block,n,this),e||(s.removeOwnBinding(r),s.bindings[i]=t,this.binding.identifier.name=i),t.type,o&&(this.maybeConvertFromClassFunctionDeclaration(o),this.maybeConvertFromClassFunctionExpression(o))}}},8221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.explode=explode,t.verify=verify,t.merge=function(e,t=[],r){const i={};for(let n=0;n<e.length;n++){const s=e[n],a=t[n];explode(s);for(const e of Object.keys(s)){let t=s[e];(a||r)&&(t=wrapWithStateOrWrapper(t,a,r));mergePair(i[e]=i[e]||{},t)}}return i};var i=_interopRequireWildcard(r(1025)),n=_interopRequireWildcard(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}function explode(e){if(e._exploded)return e;e._exploded=!0;for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;const r=t.split("|");if(1===r.length)continue;const i=e[t];delete e[t];for(const t of r)e[t]=i}verify(e),delete e.__esModule,function(e){for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;const r=e[t];"function"==typeof r&&(e[t]={enter:r})}}(e),ensureCallbackArrays(e);for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;const r=i[t];if(!r)continue;const n=e[t];for(const e of Object.keys(n))n[e]=wrapCheck(r,n[e]);if(delete e[t],r.types)for(const t of r.types)e[t]?mergePair(e[t],n):e[t]=n;else mergePair(e,n)}for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;const r=e[t];let i=n.FLIPPED_ALIAS_KEYS[t];const s=n.DEPRECATED_KEYS[t];if(s&&(console.trace(`Visitor defined for ${t} but it has been renamed to ${s}`),i=[s]),i){delete e[t];for(const t of i){const i=e[t];i?mergePair(i,r):e[t]=Object.assign({},r)}}}for(const t of Object.keys(e))shouldIgnoreKey(t)||ensureCallbackArrays(e[t]);return e}function verify(e){if(!e._verified){if("function"==typeof e)throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn\'t mean `{ enter: Function }`?");for(const t of Object.keys(e)){if("enter"!==t&&"exit"!==t||validateVisitorMethods(t,e[t]),shouldIgnoreKey(t))continue;if(n.TYPES.indexOf(t)<0)throw new Error(`You gave us a visitor for the node type ${t} but it\'s not a valid type`);const r=e[t];if("object"==typeof r)for(const e of Object.keys(r)){if("enter"!==e&&"exit"!==e)throw new Error(`You passed \\`traverse()\\` a visitor object with the property ${t} that has the invalid property ${e}`);validateVisitorMethods(`${t}.${e}`,r[e])}}e._verified=!0}}function validateVisitorMethods(e,t){const r=[].concat(t);for(const t of r)if("function"!=typeof t)throw new TypeError(`Non-function found defined in ${e} with type ${typeof t}`)}function wrapWithStateOrWrapper(e,t,r){const i={};for(const n of Object.keys(e)){let s=e[n];Array.isArray(s)&&(s=s.map((function(e){let i=e;return t&&(i=function(r){return e.call(t,r,t)}),r&&(i=r(t.key,n,i)),i!==e&&(i.toString=()=>e.toString()),i})),i[n]=s)}return i}function ensureCallbackArrays(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function wrapCheck(e,t){const newFn=function(r){if(e.checkPath(r))return t.apply(this,arguments)};return newFn.toString=()=>t.toString(),newFn}function shouldIgnoreKey(e){return"_"===e[0]||("enter"===e||"exit"===e||"shouldSkip"===e||("denylist"===e||"noScope"===e||"skipKeys"===e||"blacklist"===e))}function mergePair(e,t){for(const r of Object.keys(t))e[r]=[].concat(e[r]||[],t[r])}},7010:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!(0,n.default)(e)){var t;const r=null!=(t=null==e?void 0:e.type)?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}};var i,n=(i=r(1784))&&i.__esModule?i:{default:i}},939:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertArrayExpression=function(e,t={}){assert("ArrayExpression",e,t)},t.assertAssignmentExpression=function(e,t={}){assert("AssignmentExpression",e,t)},t.assertBinaryExpression=function(e,t={}){assert("BinaryExpression",e,t)},t.assertInterpreterDirective=function(e,t={}){assert("InterpreterDirective",e,t)},t.assertDirective=function(e,t={}){assert("Directive",e,t)},t.assertDirectiveLiteral=function(e,t={}){assert("DirectiveLiteral",e,t)},t.assertBlockStatement=function(e,t={}){assert("BlockStatement",e,t)},t.assertBreakStatement=function(e,t={}){assert("BreakStatement",e,t)},t.assertCallExpression=function(e,t={}){assert("CallExpression",e,t)},t.assertCatchClause=function(e,t={}){assert("CatchClause",e,t)},t.assertConditionalExpression=function(e,t={}){assert("ConditionalExpression",e,t)},t.assertContinueStatement=function(e,t={}){assert("ContinueStatement",e,t)},t.assertDebuggerStatement=function(e,t={}){assert("DebuggerStatement",e,t)},t.assertDoWhileStatement=function(e,t={}){assert("DoWhileStatement",e,t)},t.assertEmptyStatement=function(e,t={}){assert("EmptyStatement",e,t)},t.assertExpressionStatement=function(e,t={}){assert("ExpressionStatement",e,t)},t.assertFile=function(e,t={}){assert("File",e,t)},t.assertForInStatement=function(e,t={}){assert("ForInStatement",e,t)},t.assertForStatement=function(e,t={}){assert("ForStatement",e,t)},t.assertFunctionDeclaration=function(e,t={}){assert("FunctionDeclaration",e,t)},t.assertFunctionExpression=function(e,t={}){assert("FunctionExpression",e,t)},t.assertIdentifier=function(e,t={}){assert("Identifier",e,t)},t.assertIfStatement=function(e,t={}){assert("IfStatement",e,t)},t.assertLabeledStatement=function(e,t={}){assert("LabeledStatement",e,t)},t.assertStringLiteral=function(e,t={}){assert("StringLiteral",e,t)},t.assertNumericLiteral=function(e,t={}){assert("NumericLiteral",e,t)},t.assertNullLiteral=function(e,t={}){assert("NullLiteral",e,t)},t.assertBooleanLiteral=function(e,t={}){assert("BooleanLiteral",e,t)},t.assertRegExpLiteral=function(e,t={}){assert("RegExpLiteral",e,t)},t.assertLogicalExpression=function(e,t={}){assert("LogicalExpression",e,t)},t.assertMemberExpression=function(e,t={}){assert("MemberExpression",e,t)},t.assertNewExpression=function(e,t={}){assert("NewExpression",e,t)},t.assertProgram=function(e,t={}){assert("Program",e,t)},t.assertObjectExpression=function(e,t={}){assert("ObjectExpression",e,t)},t.assertObjectMethod=function(e,t={}){assert("ObjectMethod",e,t)},t.assertObjectProperty=function(e,t={}){assert("ObjectProperty",e,t)},t.assertRestElement=function(e,t={}){assert("RestElement",e,t)},t.assertReturnStatement=function(e,t={}){assert("ReturnStatement",e,t)},t.assertSequenceExpression=function(e,t={}){assert("SequenceExpression",e,t)},t.assertParenthesizedExpression=function(e,t={}){assert("ParenthesizedExpression",e,t)},t.assertSwitchCase=function(e,t={}){assert("SwitchCase",e,t)},t.assertSwitchStatement=function(e,t={}){assert("SwitchStatement",e,t)},t.assertThisExpression=function(e,t={}){assert("ThisExpression",e,t)},t.assertThrowStatement=function(e,t={}){assert("ThrowStatement",e,t)},t.assertTryStatement=function(e,t={}){assert("TryStatement",e,t)},t.assertUnaryExpression=function(e,t={}){assert("UnaryExpression",e,t)},t.assertUpdateExpression=function(e,t={}){assert("UpdateExpression",e,t)},t.assertVariableDeclaration=function(e,t={}){assert("VariableDeclaration",e,t)},t.assertVariableDeclarator=function(e,t={}){assert("VariableDeclarator",e,t)},t.assertWhileStatement=function(e,t={}){assert("WhileStatement",e,t)},t.assertWithStatement=function(e,t={}){assert("WithStatement",e,t)},t.assertAssignmentPattern=function(e,t={}){assert("AssignmentPattern",e,t)},t.assertArrayPattern=function(e,t={}){assert("ArrayPattern",e,t)},t.assertArrowFunctionExpression=function(e,t={}){assert("ArrowFunctionExpression",e,t)},t.assertClassBody=function(e,t={}){assert("ClassBody",e,t)},t.assertClassExpression=function(e,t={}){assert("ClassExpression",e,t)},t.assertClassDeclaration=function(e,t={}){assert("ClassDeclaration",e,t)},t.assertExportAllDeclaration=function(e,t={}){assert("ExportAllDeclaration",e,t)},t.assertExportDefaultDeclaration=function(e,t={}){assert("ExportDefaultDeclaration",e,t)},t.assertExportNamedDeclaration=function(e,t={}){assert("ExportNamedDeclaration",e,t)},t.assertExportSpecifier=function(e,t={}){assert("ExportSpecifier",e,t)},t.assertForOfStatement=function(e,t={}){assert("ForOfStatement",e,t)},t.assertImportDeclaration=function(e,t={}){assert("ImportDeclaration",e,t)},t.assertImportDefaultSpecifier=function(e,t={}){assert("ImportDefaultSpecifier",e,t)},t.assertImportNamespaceSpecifier=function(e,t={}){assert("ImportNamespaceSpecifier",e,t)},t.assertImportSpecifier=function(e,t={}){assert("ImportSpecifier",e,t)},t.assertMetaProperty=function(e,t={}){assert("MetaProperty",e,t)},t.assertClassMethod=function(e,t={}){assert("ClassMethod",e,t)},t.assertObjectPattern=function(e,t={}){assert("ObjectPattern",e,t)},t.assertSpreadElement=function(e,t={}){assert("SpreadElement",e,t)},t.assertSuper=function(e,t={}){assert("Super",e,t)},t.assertTaggedTemplateExpression=function(e,t={}){assert("TaggedTemplateExpression",e,t)},t.assertTemplateElement=function(e,t={}){assert("TemplateElement",e,t)},t.assertTemplateLiteral=function(e,t={}){assert("TemplateLiteral",e,t)},t.assertYieldExpression=function(e,t={}){assert("YieldExpression",e,t)},t.assertAwaitExpression=function(e,t={}){assert("AwaitExpression",e,t)},t.assertImport=function(e,t={}){assert("Import",e,t)},t.assertBigIntLiteral=function(e,t={}){assert("BigIntLiteral",e,t)},t.assertExportNamespaceSpecifier=function(e,t={}){assert("ExportNamespaceSpecifier",e,t)},t.assertOptionalMemberExpression=function(e,t={}){assert("OptionalMemberExpression",e,t)},t.assertOptionalCallExpression=function(e,t={}){assert("OptionalCallExpression",e,t)},t.assertAnyTypeAnnotation=function(e,t={}){assert("AnyTypeAnnotation",e,t)},t.assertArrayTypeAnnotation=function(e,t={}){assert("ArrayTypeAnnotation",e,t)},t.assertBooleanTypeAnnotation=function(e,t={}){assert("BooleanTypeAnnotation",e,t)},t.assertBooleanLiteralTypeAnnotation=function(e,t={}){assert("BooleanLiteralTypeAnnotation",e,t)},t.assertNullLiteralTypeAnnotation=function(e,t={}){assert("NullLiteralTypeAnnotation",e,t)},t.assertClassImplements=function(e,t={}){assert("ClassImplements",e,t)},t.assertDeclareClass=function(e,t={}){assert("DeclareClass",e,t)},t.assertDeclareFunction=function(e,t={}){assert("DeclareFunction",e,t)},t.assertDeclareInterface=function(e,t={}){assert("DeclareInterface",e,t)},t.assertDeclareModule=function(e,t={}){assert("DeclareModule",e,t)},t.assertDeclareModuleExports=function(e,t={}){assert("DeclareModuleExports",e,t)},t.assertDeclareTypeAlias=function(e,t={}){assert("DeclareTypeAlias",e,t)},t.assertDeclareOpaqueType=function(e,t={}){assert("DeclareOpaqueType",e,t)},t.assertDeclareVariable=function(e,t={}){assert("DeclareVariable",e,t)},t.assertDeclareExportDeclaration=function(e,t={}){assert("DeclareExportDeclaration",e,t)},t.assertDeclareExportAllDeclaration=function(e,t={}){assert("DeclareExportAllDeclaration",e,t)},t.assertDeclaredPredicate=function(e,t={}){assert("DeclaredPredicate",e,t)},t.assertExistsTypeAnnotation=function(e,t={}){assert("ExistsTypeAnnotation",e,t)},t.assertFunctionTypeAnnotation=function(e,t={}){assert("FunctionTypeAnnotation",e,t)},t.assertFunctionTypeParam=function(e,t={}){assert("FunctionTypeParam",e,t)},t.assertGenericTypeAnnotation=function(e,t={}){assert("GenericTypeAnnotation",e,t)},t.assertInferredPredicate=function(e,t={}){assert("InferredPredicate",e,t)},t.assertInterfaceExtends=function(e,t={}){assert("InterfaceExtends",e,t)},t.assertInterfaceDeclaration=function(e,t={}){assert("InterfaceDeclaration",e,t)},t.assertInterfaceTypeAnnotation=function(e,t={}){assert("InterfaceTypeAnnotation",e,t)},t.assertIntersectionTypeAnnotation=function(e,t={}){assert("IntersectionTypeAnnotation",e,t)},t.assertMixedTypeAnnotation=function(e,t={}){assert("MixedTypeAnnotation",e,t)},t.assertEmptyTypeAnnotation=function(e,t={}){assert("EmptyTypeAnnotation",e,t)},t.assertNullableTypeAnnotation=function(e,t={}){assert("NullableTypeAnnotation",e,t)},t.assertNumberLiteralTypeAnnotation=function(e,t={}){assert("NumberLiteralTypeAnnotation",e,t)},t.assertNumberTypeAnnotation=function(e,t={}){assert("NumberTypeAnnotation",e,t)},t.assertObjectTypeAnnotation=function(e,t={}){assert("ObjectTypeAnnotation",e,t)},t.assertObjectTypeInternalSlot=function(e,t={}){assert("ObjectTypeInternalSlot",e,t)},t.assertObjectTypeCallProperty=function(e,t={}){assert("ObjectTypeCallProperty",e,t)},t.assertObjectTypeIndexer=function(e,t={}){assert("ObjectTypeIndexer",e,t)},t.assertObjectTypeProperty=function(e,t={}){assert("ObjectTypeProperty",e,t)},t.assertObjectTypeSpreadProperty=function(e,t={}){assert("ObjectTypeSpreadProperty",e,t)},t.assertOpaqueType=function(e,t={}){assert("OpaqueType",e,t)},t.assertQualifiedTypeIdentifier=function(e,t={}){assert("QualifiedTypeIdentifier",e,t)},t.assertStringLiteralTypeAnnotation=function(e,t={}){assert("StringLiteralTypeAnnotation",e,t)},t.assertStringTypeAnnotation=function(e,t={}){assert("StringTypeAnnotation",e,t)},t.assertSymbolTypeAnnotation=function(e,t={}){assert("SymbolTypeAnnotation",e,t)},t.assertThisTypeAnnotation=function(e,t={}){assert("ThisTypeAnnotation",e,t)},t.assertTupleTypeAnnotation=function(e,t={}){assert("TupleTypeAnnotation",e,t)},t.assertTypeofTypeAnnotation=function(e,t={}){assert("TypeofTypeAnnotation",e,t)},t.assertTypeAlias=function(e,t={}){assert("TypeAlias",e,t)},t.assertTypeAnnotation=function(e,t={}){assert("TypeAnnotation",e,t)},t.assertTypeCastExpression=function(e,t={}){assert("TypeCastExpression",e,t)},t.assertTypeParameter=function(e,t={}){assert("TypeParameter",e,t)},t.assertTypeParameterDeclaration=function(e,t={}){assert("TypeParameterDeclaration",e,t)},t.assertTypeParameterInstantiation=function(e,t={}){assert("TypeParameterInstantiation",e,t)},t.assertUnionTypeAnnotation=function(e,t={}){assert("UnionTypeAnnotation",e,t)},t.assertVariance=function(e,t={}){assert("Variance",e,t)},t.assertVoidTypeAnnotation=function(e,t={}){assert("VoidTypeAnnotation",e,t)},t.assertEnumDeclaration=function(e,t={}){assert("EnumDeclaration",e,t)},t.assertEnumBooleanBody=function(e,t={}){assert("EnumBooleanBody",e,t)},t.assertEnumNumberBody=function(e,t={}){assert("EnumNumberBody",e,t)},t.assertEnumStringBody=function(e,t={}){assert("EnumStringBody",e,t)},t.assertEnumSymbolBody=function(e,t={}){assert("EnumSymbolBody",e,t)},t.assertEnumBooleanMember=function(e,t={}){assert("EnumBooleanMember",e,t)},t.assertEnumNumberMember=function(e,t={}){assert("EnumNumberMember",e,t)},t.assertEnumStringMember=function(e,t={}){assert("EnumStringMember",e,t)},t.assertEnumDefaultedMember=function(e,t={}){assert("EnumDefaultedMember",e,t)},t.assertJSXAttribute=function(e,t={}){assert("JSXAttribute",e,t)},t.assertJSXClosingElement=function(e,t={}){assert("JSXClosingElement",e,t)},t.assertJSXElement=function(e,t={}){assert("JSXElement",e,t)},t.assertJSXEmptyExpression=function(e,t={}){assert("JSXEmptyExpression",e,t)},t.assertJSXExpressionContainer=function(e,t={}){assert("JSXExpressionContainer",e,t)},t.assertJSXSpreadChild=function(e,t={}){assert("JSXSpreadChild",e,t)},t.assertJSXIdentifier=function(e,t={}){assert("JSXIdentifier",e,t)},t.assertJSXMemberExpression=function(e,t={}){assert("JSXMemberExpression",e,t)},t.assertJSXNamespacedName=function(e,t={}){assert("JSXNamespacedName",e,t)},t.assertJSXOpeningElement=function(e,t={}){assert("JSXOpeningElement",e,t)},t.assertJSXSpreadAttribute=function(e,t={}){assert("JSXSpreadAttribute",e,t)},t.assertJSXText=function(e,t={}){assert("JSXText",e,t)},t.assertJSXFragment=function(e,t={}){assert("JSXFragment",e,t)},t.assertJSXOpeningFragment=function(e,t={}){assert("JSXOpeningFragment",e,t)},t.assertJSXClosingFragment=function(e,t={}){assert("JSXClosingFragment",e,t)},t.assertNoop=function(e,t={}){assert("Noop",e,t)},t.assertPlaceholder=function(e,t={}){assert("Placeholder",e,t)},t.assertV8IntrinsicIdentifier=function(e,t={}){assert("V8IntrinsicIdentifier",e,t)},t.assertArgumentPlaceholder=function(e,t={}){assert("ArgumentPlaceholder",e,t)},t.assertBindExpression=function(e,t={}){assert("BindExpression",e,t)},t.assertClassProperty=function(e,t={}){assert("ClassProperty",e,t)},t.assertPipelineTopicExpression=function(e,t={}){assert("PipelineTopicExpression",e,t)},t.assertPipelineBareFunction=function(e,t={}){assert("PipelineBareFunction",e,t)},t.assertPipelinePrimaryTopicReference=function(e,t={}){assert("PipelinePrimaryTopicReference",e,t)},t.assertClassPrivateProperty=function(e,t={}){assert("ClassPrivateProperty",e,t)},t.assertClassPrivateMethod=function(e,t={}){assert("ClassPrivateMethod",e,t)},t.assertImportAttribute=function(e,t={}){assert("ImportAttribute",e,t)},t.assertDecorator=function(e,t={}){assert("Decorator",e,t)},t.assertDoExpression=function(e,t={}){assert("DoExpression",e,t)},t.assertExportDefaultSpecifier=function(e,t={}){assert("ExportDefaultSpecifier",e,t)},t.assertPrivateName=function(e,t={}){assert("PrivateName",e,t)},t.assertRecordExpression=function(e,t={}){assert("RecordExpression",e,t)},t.assertTupleExpression=function(e,t={}){assert("TupleExpression",e,t)},t.assertDecimalLiteral=function(e,t={}){assert("DecimalLiteral",e,t)},t.assertStaticBlock=function(e,t={}){assert("StaticBlock",e,t)},t.assertTSParameterProperty=function(e,t={}){assert("TSParameterProperty",e,t)},t.assertTSDeclareFunction=function(e,t={}){assert("TSDeclareFunction",e,t)},t.assertTSDeclareMethod=function(e,t={}){assert("TSDeclareMethod",e,t)},t.assertTSQualifiedName=function(e,t={}){assert("TSQualifiedName",e,t)},t.assertTSCallSignatureDeclaration=function(e,t={}){assert("TSCallSignatureDeclaration",e,t)},t.assertTSConstructSignatureDeclaration=function(e,t={}){assert("TSConstructSignatureDeclaration",e,t)},t.assertTSPropertySignature=function(e,t={}){assert("TSPropertySignature",e,t)},t.assertTSMethodSignature=function(e,t={}){assert("TSMethodSignature",e,t)},t.assertTSIndexSignature=function(e,t={}){assert("TSIndexSignature",e,t)},t.assertTSAnyKeyword=function(e,t={}){assert("TSAnyKeyword",e,t)},t.assertTSBooleanKeyword=function(e,t={}){assert("TSBooleanKeyword",e,t)},t.assertTSBigIntKeyword=function(e,t={}){assert("TSBigIntKeyword",e,t)},t.assertTSIntrinsicKeyword=function(e,t={}){assert("TSIntrinsicKeyword",e,t)},t.assertTSNeverKeyword=function(e,t={}){assert("TSNeverKeyword",e,t)},t.assertTSNullKeyword=function(e,t={}){assert("TSNullKeyword",e,t)},t.assertTSNumberKeyword=function(e,t={}){assert("TSNumberKeyword",e,t)},t.assertTSObjectKeyword=function(e,t={}){assert("TSObjectKeyword",e,t)},t.assertTSStringKeyword=function(e,t={}){assert("TSStringKeyword",e,t)},t.assertTSSymbolKeyword=function(e,t={}){assert("TSSymbolKeyword",e,t)},t.assertTSUndefinedKeyword=function(e,t={}){assert("TSUndefinedKeyword",e,t)},t.assertTSUnknownKeyword=function(e,t={}){assert("TSUnknownKeyword",e,t)},t.assertTSVoidKeyword=function(e,t={}){assert("TSVoidKeyword",e,t)},t.assertTSThisType=function(e,t={}){assert("TSThisType",e,t)},t.assertTSFunctionType=function(e,t={}){assert("TSFunctionType",e,t)},t.assertTSConstructorType=function(e,t={}){assert("TSConstructorType",e,t)},t.assertTSTypeReference=function(e,t={}){assert("TSTypeReference",e,t)},t.assertTSTypePredicate=function(e,t={}){assert("TSTypePredicate",e,t)},t.assertTSTypeQuery=function(e,t={}){assert("TSTypeQuery",e,t)},t.assertTSTypeLiteral=function(e,t={}){assert("TSTypeLiteral",e,t)},t.assertTSArrayType=function(e,t={}){assert("TSArrayType",e,t)},t.assertTSTupleType=function(e,t={}){assert("TSTupleType",e,t)},t.assertTSOptionalType=function(e,t={}){assert("TSOptionalType",e,t)},t.assertTSRestType=function(e,t={}){assert("TSRestType",e,t)},t.assertTSNamedTupleMember=function(e,t={}){assert("TSNamedTupleMember",e,t)},t.assertTSUnionType=function(e,t={}){assert("TSUnionType",e,t)},t.assertTSIntersectionType=function(e,t={}){assert("TSIntersectionType",e,t)},t.assertTSConditionalType=function(e,t={}){assert("TSConditionalType",e,t)},t.assertTSInferType=function(e,t={}){assert("TSInferType",e,t)},t.assertTSParenthesizedType=function(e,t={}){assert("TSParenthesizedType",e,t)},t.assertTSTypeOperator=function(e,t={}){assert("TSTypeOperator",e,t)},t.assertTSIndexedAccessType=function(e,t={}){assert("TSIndexedAccessType",e,t)},t.assertTSMappedType=function(e,t={}){assert("TSMappedType",e,t)},t.assertTSLiteralType=function(e,t={}){assert("TSLiteralType",e,t)},t.assertTSExpressionWithTypeArguments=function(e,t={}){assert("TSExpressionWithTypeArguments",e,t)},t.assertTSInterfaceDeclaration=function(e,t={}){assert("TSInterfaceDeclaration",e,t)},t.assertTSInterfaceBody=function(e,t={}){assert("TSInterfaceBody",e,t)},t.assertTSTypeAliasDeclaration=function(e,t={}){assert("TSTypeAliasDeclaration",e,t)},t.assertTSAsExpression=function(e,t={}){assert("TSAsExpression",e,t)},t.assertTSTypeAssertion=function(e,t={}){assert("TSTypeAssertion",e,t)},t.assertTSEnumDeclaration=function(e,t={}){assert("TSEnumDeclaration",e,t)},t.assertTSEnumMember=function(e,t={}){assert("TSEnumMember",e,t)},t.assertTSModuleDeclaration=function(e,t={}){assert("TSModuleDeclaration",e,t)},t.assertTSModuleBlock=function(e,t={}){assert("TSModuleBlock",e,t)},t.assertTSImportType=function(e,t={}){assert("TSImportType",e,t)},t.assertTSImportEqualsDeclaration=function(e,t={}){assert("TSImportEqualsDeclaration",e,t)},t.assertTSExternalModuleReference=function(e,t={}){assert("TSExternalModuleReference",e,t)},t.assertTSNonNullExpression=function(e,t={}){assert("TSNonNullExpression",e,t)},t.assertTSExportAssignment=function(e,t={}){assert("TSExportAssignment",e,t)},t.assertTSNamespaceExportDeclaration=function(e,t={}){assert("TSNamespaceExportDeclaration",e,t)},t.assertTSTypeAnnotation=function(e,t={}){assert("TSTypeAnnotation",e,t)},t.assertTSTypeParameterInstantiation=function(e,t={}){assert("TSTypeParameterInstantiation",e,t)},t.assertTSTypeParameterDeclaration=function(e,t={}){assert("TSTypeParameterDeclaration",e,t)},t.assertTSTypeParameter=function(e,t={}){assert("TSTypeParameter",e,t)},t.assertExpression=function(e,t={}){assert("Expression",e,t)},t.assertBinary=function(e,t={}){assert("Binary",e,t)},t.assertScopable=function(e,t={}){assert("Scopable",e,t)},t.assertBlockParent=function(e,t={}){assert("BlockParent",e,t)},t.assertBlock=function(e,t={}){assert("Block",e,t)},t.assertStatement=function(e,t={}){assert("Statement",e,t)},t.assertTerminatorless=function(e,t={}){assert("Terminatorless",e,t)},t.assertCompletionStatement=function(e,t={}){assert("CompletionStatement",e,t)},t.assertConditional=function(e,t={}){assert("Conditional",e,t)},t.assertLoop=function(e,t={}){assert("Loop",e,t)},t.assertWhile=function(e,t={}){assert("While",e,t)},t.assertExpressionWrapper=function(e,t={}){assert("ExpressionWrapper",e,t)},t.assertFor=function(e,t={}){assert("For",e,t)},t.assertForXStatement=function(e,t={}){assert("ForXStatement",e,t)},t.assertFunction=function(e,t={}){assert("Function",e,t)},t.assertFunctionParent=function(e,t={}){assert("FunctionParent",e,t)},t.assertPureish=function(e,t={}){assert("Pureish",e,t)},t.assertDeclaration=function(e,t={}){assert("Declaration",e,t)},t.assertPatternLike=function(e,t={}){assert("PatternLike",e,t)},t.assertLVal=function(e,t={}){assert("LVal",e,t)},t.assertTSEntityName=function(e,t={}){assert("TSEntityName",e,t)},t.assertLiteral=function(e,t={}){assert("Literal",e,t)},t.assertImmutable=function(e,t={}){assert("Immutable",e,t)},t.assertUserWhitespacable=function(e,t={}){assert("UserWhitespacable",e,t)},t.assertMethod=function(e,t={}){assert("Method",e,t)},t.assertObjectMember=function(e,t={}){assert("ObjectMember",e,t)},t.assertProperty=function(e,t={}){assert("Property",e,t)},t.assertUnaryLike=function(e,t={}){assert("UnaryLike",e,t)},t.assertPattern=function(e,t={}){assert("Pattern",e,t)},t.assertClass=function(e,t={}){assert("Class",e,t)},t.assertModuleDeclaration=function(e,t={}){assert("ModuleDeclaration",e,t)},t.assertExportDeclaration=function(e,t={}){assert("ExportDeclaration",e,t)},t.assertModuleSpecifier=function(e,t={}){assert("ModuleSpecifier",e,t)},t.assertFlow=function(e,t={}){assert("Flow",e,t)},t.assertFlowType=function(e,t={}){assert("FlowType",e,t)},t.assertFlowBaseAnnotation=function(e,t={}){assert("FlowBaseAnnotation",e,t)},t.assertFlowDeclaration=function(e,t={}){assert("FlowDeclaration",e,t)},t.assertFlowPredicate=function(e,t={}){assert("FlowPredicate",e,t)},t.assertEnumBody=function(e,t={}){assert("EnumBody",e,t)},t.assertEnumMember=function(e,t={}){assert("EnumMember",e,t)},t.assertJSX=function(e,t={}){assert("JSX",e,t)},t.assertPrivate=function(e,t={}){assert("Private",e,t)},t.assertTSTypeElement=function(e,t={}){assert("TSTypeElement",e,t)},t.assertTSType=function(e,t={}){assert("TSType",e,t)},t.assertTSBaseType=function(e,t={}){assert("TSBaseType",e,t)},t.assertNumberLiteral=function(e,t){console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),assert("NumberLiteral",e,t)},t.assertRegexLiteral=function(e,t){console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),assert("RegexLiteral",e,t)},t.assertRestProperty=function(e,t){console.trace("The node type RestProperty has been renamed to RestElement"),assert("RestProperty",e,t)},t.assertSpreadProperty=function(e,t){console.trace("The node type SpreadProperty has been renamed to SpreadElement"),assert("SpreadProperty",e,t)};var i,n=(i=r(6593))&&i.__esModule?i:{default:i};function assert(e,t,r){if(!(0,n.default)(e,t,r))throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}},1739:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,...t){const r=n.BUILDER_KEYS[e],a=t.length;if(a>r.length)throw new Error(`${e}: Too many arguments passed. Received ${a} but can receive no more than ${r.length}`);const o={type:e};let l=0;r.forEach((r=>{const s=n.NODE_FIELDS[e][r];let c;l<a&&(c=t[l]),void 0===c&&(c=(0,i.default)(s.default)),o[r]=c,l++}));for(const e of Object.keys(o))(0,s.default)(o,e,o[e]);return o};var i=_interopRequireDefault(r(5375)),n=r(9829),s=_interopRequireDefault(r(9623));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},6535:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,s.default)(e);return 1===t.length?t[0]:(0,n.unionTypeAnnotation)(t)};var i,n=r(3894),s=(i=r(4485))&&i.__esModule?i:{default:i}},5209:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"===e)return(0,i.stringTypeAnnotation)();if("number"===e)return(0,i.numberTypeAnnotation)();if("undefined"===e)return(0,i.voidTypeAnnotation)();if("boolean"===e)return(0,i.booleanTypeAnnotation)();if("function"===e)return(0,i.genericTypeAnnotation)((0,i.identifier)("Function"));if("object"===e)return(0,i.genericTypeAnnotation)((0,i.identifier)("Object"));if("symbol"===e)return(0,i.genericTypeAnnotation)((0,i.identifier)("Symbol"));throw new Error("Invalid typeof value")};var i=r(3894)},3894:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayExpression=t.arrayExpression=function(...e){return(0,n.default)("ArrayExpression",...e)},t.AssignmentExpression=t.assignmentExpression=function(...e){return(0,n.default)("AssignmentExpression",...e)},t.BinaryExpression=t.binaryExpression=function(...e){return(0,n.default)("BinaryExpression",...e)},t.InterpreterDirective=t.interpreterDirective=function(...e){return(0,n.default)("InterpreterDirective",...e)},t.Directive=t.directive=function(...e){return(0,n.default)("Directive",...e)},t.DirectiveLiteral=t.directiveLiteral=function(...e){return(0,n.default)("DirectiveLiteral",...e)},t.BlockStatement=t.blockStatement=function(...e){return(0,n.default)("BlockStatement",...e)},t.BreakStatement=t.breakStatement=function(...e){return(0,n.default)("BreakStatement",...e)},t.CallExpression=t.callExpression=function(...e){return(0,n.default)("CallExpression",...e)},t.CatchClause=t.catchClause=function(...e){return(0,n.default)("CatchClause",...e)},t.ConditionalExpression=t.conditionalExpression=function(...e){return(0,n.default)("ConditionalExpression",...e)},t.ContinueStatement=t.continueStatement=function(...e){return(0,n.default)("ContinueStatement",...e)},t.DebuggerStatement=t.debuggerStatement=function(...e){return(0,n.default)("DebuggerStatement",...e)},t.DoWhileStatement=t.doWhileStatement=function(...e){return(0,n.default)("DoWhileStatement",...e)},t.EmptyStatement=t.emptyStatement=function(...e){return(0,n.default)("EmptyStatement",...e)},t.ExpressionStatement=t.expressionStatement=function(...e){return(0,n.default)("ExpressionStatement",...e)},t.File=t.file=function(...e){return(0,n.default)("File",...e)},t.ForInStatement=t.forInStatement=function(...e){return(0,n.default)("ForInStatement",...e)},t.ForStatement=t.forStatement=function(...e){return(0,n.default)("ForStatement",...e)},t.FunctionDeclaration=t.functionDeclaration=function(...e){return(0,n.default)("FunctionDeclaration",...e)},t.FunctionExpression=t.functionExpression=function(...e){return(0,n.default)("FunctionExpression",...e)},t.Identifier=t.identifier=function(...e){return(0,n.default)("Identifier",...e)},t.IfStatement=t.ifStatement=function(...e){return(0,n.default)("IfStatement",...e)},t.LabeledStatement=t.labeledStatement=function(...e){return(0,n.default)("LabeledStatement",...e)},t.StringLiteral=t.stringLiteral=function(...e){return(0,n.default)("StringLiteral",...e)},t.NumericLiteral=t.numericLiteral=function(...e){return(0,n.default)("NumericLiteral",...e)},t.NullLiteral=t.nullLiteral=function(...e){return(0,n.default)("NullLiteral",...e)},t.BooleanLiteral=t.booleanLiteral=function(...e){return(0,n.default)("BooleanLiteral",...e)},t.RegExpLiteral=t.regExpLiteral=function(...e){return(0,n.default)("RegExpLiteral",...e)},t.LogicalExpression=t.logicalExpression=function(...e){return(0,n.default)("LogicalExpression",...e)},t.MemberExpression=t.memberExpression=function(...e){return(0,n.default)("MemberExpression",...e)},t.NewExpression=t.newExpression=function(...e){return(0,n.default)("NewExpression",...e)},t.Program=t.program=function(...e){return(0,n.default)("Program",...e)},t.ObjectExpression=t.objectExpression=function(...e){return(0,n.default)("ObjectExpression",...e)},t.ObjectMethod=t.objectMethod=function(...e){return(0,n.default)("ObjectMethod",...e)},t.ObjectProperty=t.objectProperty=function(...e){return(0,n.default)("ObjectProperty",...e)},t.RestElement=t.restElement=function(...e){return(0,n.default)("RestElement",...e)},t.ReturnStatement=t.returnStatement=function(...e){return(0,n.default)("ReturnStatement",...e)},t.SequenceExpression=t.sequenceExpression=function(...e){return(0,n.default)("SequenceExpression",...e)},t.ParenthesizedExpression=t.parenthesizedExpression=function(...e){return(0,n.default)("ParenthesizedExpression",...e)},t.SwitchCase=t.switchCase=function(...e){return(0,n.default)("SwitchCase",...e)},t.SwitchStatement=t.switchStatement=function(...e){return(0,n.default)("SwitchStatement",...e)},t.ThisExpression=t.thisExpression=function(...e){return(0,n.default)("ThisExpression",...e)},t.ThrowStatement=t.throwStatement=function(...e){return(0,n.default)("ThrowStatement",...e)},t.TryStatement=t.tryStatement=function(...e){return(0,n.default)("TryStatement",...e)},t.UnaryExpression=t.unaryExpression=function(...e){return(0,n.default)("UnaryExpression",...e)},t.UpdateExpression=t.updateExpression=function(...e){return(0,n.default)("UpdateExpression",...e)},t.VariableDeclaration=t.variableDeclaration=function(...e){return(0,n.default)("VariableDeclaration",...e)},t.VariableDeclarator=t.variableDeclarator=function(...e){return(0,n.default)("VariableDeclarator",...e)},t.WhileStatement=t.whileStatement=function(...e){return(0,n.default)("WhileStatement",...e)},t.WithStatement=t.withStatement=function(...e){return(0,n.default)("WithStatement",...e)},t.AssignmentPattern=t.assignmentPattern=function(...e){return(0,n.default)("AssignmentPattern",...e)},t.ArrayPattern=t.arrayPattern=function(...e){return(0,n.default)("ArrayPattern",...e)},t.ArrowFunctionExpression=t.arrowFunctionExpression=function(...e){return(0,n.default)("ArrowFunctionExpression",...e)},t.ClassBody=t.classBody=function(...e){return(0,n.default)("ClassBody",...e)},t.ClassExpression=t.classExpression=function(...e){return(0,n.default)("ClassExpression",...e)},t.ClassDeclaration=t.classDeclaration=function(...e){return(0,n.default)("ClassDeclaration",...e)},t.ExportAllDeclaration=t.exportAllDeclaration=function(...e){return(0,n.default)("ExportAllDeclaration",...e)},t.ExportDefaultDeclaration=t.exportDefaultDeclaration=function(...e){return(0,n.default)("ExportDefaultDeclaration",...e)},t.ExportNamedDeclaration=t.exportNamedDeclaration=function(...e){return(0,n.default)("ExportNamedDeclaration",...e)},t.ExportSpecifier=t.exportSpecifier=function(...e){return(0,n.default)("ExportSpecifier",...e)},t.ForOfStatement=t.forOfStatement=function(...e){return(0,n.default)("ForOfStatement",...e)},t.ImportDeclaration=t.importDeclaration=function(...e){return(0,n.default)("ImportDeclaration",...e)},t.ImportDefaultSpecifier=t.importDefaultSpecifier=function(...e){return(0,n.default)("ImportDefaultSpecifier",...e)},t.ImportNamespaceSpecifier=t.importNamespaceSpecifier=function(...e){return(0,n.default)("ImportNamespaceSpecifier",...e)},t.ImportSpecifier=t.importSpecifier=function(...e){return(0,n.default)("ImportSpecifier",...e)},t.MetaProperty=t.metaProperty=function(...e){return(0,n.default)("MetaProperty",...e)},t.ClassMethod=t.classMethod=function(...e){return(0,n.default)("ClassMethod",...e)},t.ObjectPattern=t.objectPattern=function(...e){return(0,n.default)("ObjectPattern",...e)},t.SpreadElement=t.spreadElement=function(...e){return(0,n.default)("SpreadElement",...e)},t.super=t.Super=function(...e){return(0,n.default)("Super",...e)},t.TaggedTemplateExpression=t.taggedTemplateExpression=function(...e){return(0,n.default)("TaggedTemplateExpression",...e)},t.TemplateElement=t.templateElement=function(...e){return(0,n.default)("TemplateElement",...e)},t.TemplateLiteral=t.templateLiteral=function(...e){return(0,n.default)("TemplateLiteral",...e)},t.YieldExpression=t.yieldExpression=function(...e){return(0,n.default)("YieldExpression",...e)},t.AwaitExpression=t.awaitExpression=function(...e){return(0,n.default)("AwaitExpression",...e)},t.import=t.Import=function(...e){return(0,n.default)("Import",...e)},t.BigIntLiteral=t.bigIntLiteral=function(...e){return(0,n.default)("BigIntLiteral",...e)},t.ExportNamespaceSpecifier=t.exportNamespaceSpecifier=function(...e){return(0,n.default)("ExportNamespaceSpecifier",...e)},t.OptionalMemberExpression=t.optionalMemberExpression=function(...e){return(0,n.default)("OptionalMemberExpression",...e)},t.OptionalCallExpression=t.optionalCallExpression=function(...e){return(0,n.default)("OptionalCallExpression",...e)},t.AnyTypeAnnotation=t.anyTypeAnnotation=function(...e){return(0,n.default)("AnyTypeAnnotation",...e)},t.ArrayTypeAnnotation=t.arrayTypeAnnotation=function(...e){return(0,n.default)("ArrayTypeAnnotation",...e)},t.BooleanTypeAnnotation=t.booleanTypeAnnotation=function(...e){return(0,n.default)("BooleanTypeAnnotation",...e)},t.BooleanLiteralTypeAnnotation=t.booleanLiteralTypeAnnotation=function(...e){return(0,n.default)("BooleanLiteralTypeAnnotation",...e)},t.NullLiteralTypeAnnotation=t.nullLiteralTypeAnnotation=function(...e){return(0,n.default)("NullLiteralTypeAnnotation",...e)},t.ClassImplements=t.classImplements=function(...e){return(0,n.default)("ClassImplements",...e)},t.DeclareClass=t.declareClass=function(...e){return(0,n.default)("DeclareClass",...e)},t.DeclareFunction=t.declareFunction=function(...e){return(0,n.default)("DeclareFunction",...e)},t.DeclareInterface=t.declareInterface=function(...e){return(0,n.default)("DeclareInterface",...e)},t.DeclareModule=t.declareModule=function(...e){return(0,n.default)("DeclareModule",...e)},t.DeclareModuleExports=t.declareModuleExports=function(...e){return(0,n.default)("DeclareModuleExports",...e)},t.DeclareTypeAlias=t.declareTypeAlias=function(...e){return(0,n.default)("DeclareTypeAlias",...e)},t.DeclareOpaqueType=t.declareOpaqueType=function(...e){return(0,n.default)("DeclareOpaqueType",...e)},t.DeclareVariable=t.declareVariable=function(...e){return(0,n.default)("DeclareVariable",...e)},t.DeclareExportDeclaration=t.declareExportDeclaration=function(...e){return(0,n.default)("DeclareExportDeclaration",...e)},t.DeclareExportAllDeclaration=t.declareExportAllDeclaration=function(...e){return(0,n.default)("DeclareExportAllDeclaration",...e)},t.DeclaredPredicate=t.declaredPredicate=function(...e){return(0,n.default)("DeclaredPredicate",...e)},t.ExistsTypeAnnotation=t.existsTypeAnnotation=function(...e){return(0,n.default)("ExistsTypeAnnotation",...e)},t.FunctionTypeAnnotation=t.functionTypeAnnotation=function(...e){return(0,n.default)("FunctionTypeAnnotation",...e)},t.FunctionTypeParam=t.functionTypeParam=function(...e){return(0,n.default)("FunctionTypeParam",...e)},t.GenericTypeAnnotation=t.genericTypeAnnotation=function(...e){return(0,n.default)("GenericTypeAnnotation",...e)},t.InferredPredicate=t.inferredPredicate=function(...e){return(0,n.default)("InferredPredicate",...e)},t.InterfaceExtends=t.interfaceExtends=function(...e){return(0,n.default)("InterfaceExtends",...e)},t.InterfaceDeclaration=t.interfaceDeclaration=function(...e){return(0,n.default)("InterfaceDeclaration",...e)},t.InterfaceTypeAnnotation=t.interfaceTypeAnnotation=function(...e){return(0,n.default)("InterfaceTypeAnnotation",...e)},t.IntersectionTypeAnnotation=t.intersectionTypeAnnotation=function(...e){return(0,n.default)("IntersectionTypeAnnotation",...e)},t.MixedTypeAnnotation=t.mixedTypeAnnotation=function(...e){return(0,n.default)("MixedTypeAnnotation",...e)},t.EmptyTypeAnnotation=t.emptyTypeAnnotation=function(...e){return(0,n.default)("EmptyTypeAnnotation",...e)},t.NullableTypeAnnotation=t.nullableTypeAnnotation=function(...e){return(0,n.default)("NullableTypeAnnotation",...e)},t.NumberLiteralTypeAnnotation=t.numberLiteralTypeAnnotation=function(...e){return(0,n.default)("NumberLiteralTypeAnnotation",...e)},t.NumberTypeAnnotation=t.numberTypeAnnotation=function(...e){return(0,n.default)("NumberTypeAnnotation",...e)},t.ObjectTypeAnnotation=t.objectTypeAnnotation=function(...e){return(0,n.default)("ObjectTypeAnnotation",...e)},t.ObjectTypeInternalSlot=t.objectTypeInternalSlot=function(...e){return(0,n.default)("ObjectTypeInternalSlot",...e)},t.ObjectTypeCallProperty=t.objectTypeCallProperty=function(...e){return(0,n.default)("ObjectTypeCallProperty",...e)},t.ObjectTypeIndexer=t.objectTypeIndexer=function(...e){return(0,n.default)("ObjectTypeIndexer",...e)},t.ObjectTypeProperty=t.objectTypeProperty=function(...e){return(0,n.default)("ObjectTypeProperty",...e)},t.ObjectTypeSpreadProperty=t.objectTypeSpreadProperty=function(...e){return(0,n.default)("ObjectTypeSpreadProperty",...e)},t.OpaqueType=t.opaqueType=function(...e){return(0,n.default)("OpaqueType",...e)},t.QualifiedTypeIdentifier=t.qualifiedTypeIdentifier=function(...e){return(0,n.default)("QualifiedTypeIdentifier",...e)},t.StringLiteralTypeAnnotation=t.stringLiteralTypeAnnotation=function(...e){return(0,n.default)("StringLiteralTypeAnnotation",...e)},t.StringTypeAnnotation=t.stringTypeAnnotation=function(...e){return(0,n.default)("StringTypeAnnotation",...e)},t.SymbolTypeAnnotation=t.symbolTypeAnnotation=function(...e){return(0,n.default)("SymbolTypeAnnotation",...e)},t.ThisTypeAnnotation=t.thisTypeAnnotation=function(...e){return(0,n.default)("ThisTypeAnnotation",...e)},t.TupleTypeAnnotation=t.tupleTypeAnnotation=function(...e){return(0,n.default)("TupleTypeAnnotation",...e)},t.TypeofTypeAnnotation=t.typeofTypeAnnotation=function(...e){return(0,n.default)("TypeofTypeAnnotation",...e)},t.TypeAlias=t.typeAlias=function(...e){return(0,n.default)("TypeAlias",...e)},t.TypeAnnotation=t.typeAnnotation=function(...e){return(0,n.default)("TypeAnnotation",...e)},t.TypeCastExpression=t.typeCastExpression=function(...e){return(0,n.default)("TypeCastExpression",...e)},t.TypeParameter=t.typeParameter=function(...e){return(0,n.default)("TypeParameter",...e)},t.TypeParameterDeclaration=t.typeParameterDeclaration=function(...e){return(0,n.default)("TypeParameterDeclaration",...e)},t.TypeParameterInstantiation=t.typeParameterInstantiation=function(...e){return(0,n.default)("TypeParameterInstantiation",...e)},t.UnionTypeAnnotation=t.unionTypeAnnotation=function(...e){return(0,n.default)("UnionTypeAnnotation",...e)},t.Variance=t.variance=function(...e){return(0,n.default)("Variance",...e)},t.VoidTypeAnnotation=t.voidTypeAnnotation=function(...e){return(0,n.default)("VoidTypeAnnotation",...e)},t.EnumDeclaration=t.enumDeclaration=function(...e){return(0,n.default)("EnumDeclaration",...e)},t.EnumBooleanBody=t.enumBooleanBody=function(...e){return(0,n.default)("EnumBooleanBody",...e)},t.EnumNumberBody=t.enumNumberBody=function(...e){return(0,n.default)("EnumNumberBody",...e)},t.EnumStringBody=t.enumStringBody=function(...e){return(0,n.default)("EnumStringBody",...e)},t.EnumSymbolBody=t.enumSymbolBody=function(...e){return(0,n.default)("EnumSymbolBody",...e)},t.EnumBooleanMember=t.enumBooleanMember=function(...e){return(0,n.default)("EnumBooleanMember",...e)},t.EnumNumberMember=t.enumNumberMember=function(...e){return(0,n.default)("EnumNumberMember",...e)},t.EnumStringMember=t.enumStringMember=function(...e){return(0,n.default)("EnumStringMember",...e)},t.EnumDefaultedMember=t.enumDefaultedMember=function(...e){return(0,n.default)("EnumDefaultedMember",...e)},t.jSXAttribute=t.JSXAttribute=t.jsxAttribute=function(...e){return(0,n.default)("JSXAttribute",...e)},t.jSXClosingElement=t.JSXClosingElement=t.jsxClosingElement=function(...e){return(0,n.default)("JSXClosingElement",...e)},t.jSXElement=t.JSXElement=t.jsxElement=function(...e){return(0,n.default)("JSXElement",...e)},t.jSXEmptyExpression=t.JSXEmptyExpression=t.jsxEmptyExpression=function(...e){return(0,n.default)("JSXEmptyExpression",...e)},t.jSXExpressionContainer=t.JSXExpressionContainer=t.jsxExpressionContainer=function(...e){return(0,n.default)("JSXExpressionContainer",...e)},t.jSXSpreadChild=t.JSXSpreadChild=t.jsxSpreadChild=function(...e){return(0,n.default)("JSXSpreadChild",...e)},t.jSXIdentifier=t.JSXIdentifier=t.jsxIdentifier=function(...e){return(0,n.default)("JSXIdentifier",...e)},t.jSXMemberExpression=t.JSXMemberExpression=t.jsxMemberExpression=function(...e){return(0,n.default)("JSXMemberExpression",...e)},t.jSXNamespacedName=t.JSXNamespacedName=t.jsxNamespacedName=function(...e){return(0,n.default)("JSXNamespacedName",...e)},t.jSXOpeningElement=t.JSXOpeningElement=t.jsxOpeningElement=function(...e){return(0,n.default)("JSXOpeningElement",...e)},t.jSXSpreadAttribute=t.JSXSpreadAttribute=t.jsxSpreadAttribute=function(...e){return(0,n.default)("JSXSpreadAttribute",...e)},t.jSXText=t.JSXText=t.jsxText=function(...e){return(0,n.default)("JSXText",...e)},t.jSXFragment=t.JSXFragment=t.jsxFragment=function(...e){return(0,n.default)("JSXFragment",...e)},t.jSXOpeningFragment=t.JSXOpeningFragment=t.jsxOpeningFragment=function(...e){return(0,n.default)("JSXOpeningFragment",...e)},t.jSXClosingFragment=t.JSXClosingFragment=t.jsxClosingFragment=function(...e){return(0,n.default)("JSXClosingFragment",...e)},t.Noop=t.noop=function(...e){return(0,n.default)("Noop",...e)},t.Placeholder=t.placeholder=function(...e){return(0,n.default)("Placeholder",...e)},t.V8IntrinsicIdentifier=t.v8IntrinsicIdentifier=function(...e){return(0,n.default)("V8IntrinsicIdentifier",...e)},t.ArgumentPlaceholder=t.argumentPlaceholder=function(...e){return(0,n.default)("ArgumentPlaceholder",...e)},t.BindExpression=t.bindExpression=function(...e){return(0,n.default)("BindExpression",...e)},t.ClassProperty=t.classProperty=function(...e){return(0,n.default)("ClassProperty",...e)},t.PipelineTopicExpression=t.pipelineTopicExpression=function(...e){return(0,n.default)("PipelineTopicExpression",...e)},t.PipelineBareFunction=t.pipelineBareFunction=function(...e){return(0,n.default)("PipelineBareFunction",...e)},t.PipelinePrimaryTopicReference=t.pipelinePrimaryTopicReference=function(...e){return(0,n.default)("PipelinePrimaryTopicReference",...e)},t.ClassPrivateProperty=t.classPrivateProperty=function(...e){return(0,n.default)("ClassPrivateProperty",...e)},t.ClassPrivateMethod=t.classPrivateMethod=function(...e){return(0,n.default)("ClassPrivateMethod",...e)},t.ImportAttribute=t.importAttribute=function(...e){return(0,n.default)("ImportAttribute",...e)},t.Decorator=t.decorator=function(...e){return(0,n.default)("Decorator",...e)},t.DoExpression=t.doExpression=function(...e){return(0,n.default)("DoExpression",...e)},t.ExportDefaultSpecifier=t.exportDefaultSpecifier=function(...e){return(0,n.default)("ExportDefaultSpecifier",...e)},t.PrivateName=t.privateName=function(...e){return(0,n.default)("PrivateName",...e)},t.RecordExpression=t.recordExpression=function(...e){return(0,n.default)("RecordExpression",...e)},t.TupleExpression=t.tupleExpression=function(...e){return(0,n.default)("TupleExpression",...e)},t.DecimalLiteral=t.decimalLiteral=function(...e){return(0,n.default)("DecimalLiteral",...e)},t.StaticBlock=t.staticBlock=function(...e){return(0,n.default)("StaticBlock",...e)},t.tSParameterProperty=t.TSParameterProperty=t.tsParameterProperty=function(...e){return(0,n.default)("TSParameterProperty",...e)},t.tSDeclareFunction=t.TSDeclareFunction=t.tsDeclareFunction=function(...e){return(0,n.default)("TSDeclareFunction",...e)},t.tSDeclareMethod=t.TSDeclareMethod=t.tsDeclareMethod=function(...e){return(0,n.default)("TSDeclareMethod",...e)},t.tSQualifiedName=t.TSQualifiedName=t.tsQualifiedName=function(...e){return(0,n.default)("TSQualifiedName",...e)},t.tSCallSignatureDeclaration=t.TSCallSignatureDeclaration=t.tsCallSignatureDeclaration=function(...e){return(0,n.default)("TSCallSignatureDeclaration",...e)},t.tSConstructSignatureDeclaration=t.TSConstructSignatureDeclaration=t.tsConstructSignatureDeclaration=function(...e){return(0,n.default)("TSConstructSignatureDeclaration",...e)},t.tSPropertySignature=t.TSPropertySignature=t.tsPropertySignature=function(...e){return(0,n.default)("TSPropertySignature",...e)},t.tSMethodSignature=t.TSMethodSignature=t.tsMethodSignature=function(...e){return(0,n.default)("TSMethodSignature",...e)},t.tSIndexSignature=t.TSIndexSignature=t.tsIndexSignature=function(...e){return(0,n.default)("TSIndexSignature",...e)},t.tSAnyKeyword=t.TSAnyKeyword=t.tsAnyKeyword=function(...e){return(0,n.default)("TSAnyKeyword",...e)},t.tSBooleanKeyword=t.TSBooleanKeyword=t.tsBooleanKeyword=function(...e){return(0,n.default)("TSBooleanKeyword",...e)},t.tSBigIntKeyword=t.TSBigIntKeyword=t.tsBigIntKeyword=function(...e){return(0,n.default)("TSBigIntKeyword",...e)},t.tSIntrinsicKeyword=t.TSIntrinsicKeyword=t.tsIntrinsicKeyword=function(...e){return(0,n.default)("TSIntrinsicKeyword",...e)},t.tSNeverKeyword=t.TSNeverKeyword=t.tsNeverKeyword=function(...e){return(0,n.default)("TSNeverKeyword",...e)},t.tSNullKeyword=t.TSNullKeyword=t.tsNullKeyword=function(...e){return(0,n.default)("TSNullKeyword",...e)},t.tSNumberKeyword=t.TSNumberKeyword=t.tsNumberKeyword=function(...e){return(0,n.default)("TSNumberKeyword",...e)},t.tSObjectKeyword=t.TSObjectKeyword=t.tsObjectKeyword=function(...e){return(0,n.default)("TSObjectKeyword",...e)},t.tSStringKeyword=t.TSStringKeyword=t.tsStringKeyword=function(...e){return(0,n.default)("TSStringKeyword",...e)},t.tSSymbolKeyword=t.TSSymbolKeyword=t.tsSymbolKeyword=function(...e){return(0,n.default)("TSSymbolKeyword",...e)},t.tSUndefinedKeyword=t.TSUndefinedKeyword=t.tsUndefinedKeyword=function(...e){return(0,n.default)("TSUndefinedKeyword",...e)},t.tSUnknownKeyword=t.TSUnknownKeyword=t.tsUnknownKeyword=function(...e){return(0,n.default)("TSUnknownKeyword",...e)},t.tSVoidKeyword=t.TSVoidKeyword=t.tsVoidKeyword=function(...e){return(0,n.default)("TSVoidKeyword",...e)},t.tSThisType=t.TSThisType=t.tsThisType=function(...e){return(0,n.default)("TSThisType",...e)},t.tSFunctionType=t.TSFunctionType=t.tsFunctionType=function(...e){return(0,n.default)("TSFunctionType",...e)},t.tSConstructorType=t.TSConstructorType=t.tsConstructorType=function(...e){return(0,n.default)("TSConstructorType",...e)},t.tSTypeReference=t.TSTypeReference=t.tsTypeReference=function(...e){return(0,n.default)("TSTypeReference",...e)},t.tSTypePredicate=t.TSTypePredicate=t.tsTypePredicate=function(...e){return(0,n.default)("TSTypePredicate",...e)},t.tSTypeQuery=t.TSTypeQuery=t.tsTypeQuery=function(...e){return(0,n.default)("TSTypeQuery",...e)},t.tSTypeLiteral=t.TSTypeLiteral=t.tsTypeLiteral=function(...e){return(0,n.default)("TSTypeLiteral",...e)},t.tSArrayType=t.TSArrayType=t.tsArrayType=function(...e){return(0,n.default)("TSArrayType",...e)},t.tSTupleType=t.TSTupleType=t.tsTupleType=function(...e){return(0,n.default)("TSTupleType",...e)},t.tSOptionalType=t.TSOptionalType=t.tsOptionalType=function(...e){return(0,n.default)("TSOptionalType",...e)},t.tSRestType=t.TSRestType=t.tsRestType=function(...e){return(0,n.default)("TSRestType",...e)},t.tSNamedTupleMember=t.TSNamedTupleMember=t.tsNamedTupleMember=function(...e){return(0,n.default)("TSNamedTupleMember",...e)},t.tSUnionType=t.TSUnionType=t.tsUnionType=function(...e){return(0,n.default)("TSUnionType",...e)},t.tSIntersectionType=t.TSIntersectionType=t.tsIntersectionType=function(...e){return(0,n.default)("TSIntersectionType",...e)},t.tSConditionalType=t.TSConditionalType=t.tsConditionalType=function(...e){return(0,n.default)("TSConditionalType",...e)},t.tSInferType=t.TSInferType=t.tsInferType=function(...e){return(0,n.default)("TSInferType",...e)},t.tSParenthesizedType=t.TSParenthesizedType=t.tsParenthesizedType=function(...e){return(0,n.default)("TSParenthesizedType",...e)},t.tSTypeOperator=t.TSTypeOperator=t.tsTypeOperator=function(...e){return(0,n.default)("TSTypeOperator",...e)},t.tSIndexedAccessType=t.TSIndexedAccessType=t.tsIndexedAccessType=function(...e){return(0,n.default)("TSIndexedAccessType",...e)},t.tSMappedType=t.TSMappedType=t.tsMappedType=function(...e){return(0,n.default)("TSMappedType",...e)},t.tSLiteralType=t.TSLiteralType=t.tsLiteralType=function(...e){return(0,n.default)("TSLiteralType",...e)},t.tSExpressionWithTypeArguments=t.TSExpressionWithTypeArguments=t.tsExpressionWithTypeArguments=function(...e){return(0,n.default)("TSExpressionWithTypeArguments",...e)},t.tSInterfaceDeclaration=t.TSInterfaceDeclaration=t.tsInterfaceDeclaration=function(...e){return(0,n.default)("TSInterfaceDeclaration",...e)},t.tSInterfaceBody=t.TSInterfaceBody=t.tsInterfaceBody=function(...e){return(0,n.default)("TSInterfaceBody",...e)},t.tSTypeAliasDeclaration=t.TSTypeAliasDeclaration=t.tsTypeAliasDeclaration=function(...e){return(0,n.default)("TSTypeAliasDeclaration",...e)},t.tSAsExpression=t.TSAsExpression=t.tsAsExpression=function(...e){return(0,n.default)("TSAsExpression",...e)},t.tSTypeAssertion=t.TSTypeAssertion=t.tsTypeAssertion=function(...e){return(0,n.default)("TSTypeAssertion",...e)},t.tSEnumDeclaration=t.TSEnumDeclaration=t.tsEnumDeclaration=function(...e){return(0,n.default)("TSEnumDeclaration",...e)},t.tSEnumMember=t.TSEnumMember=t.tsEnumMember=function(...e){return(0,n.default)("TSEnumMember",...e)},t.tSModuleDeclaration=t.TSModuleDeclaration=t.tsModuleDeclaration=function(...e){return(0,n.default)("TSModuleDeclaration",...e)},t.tSModuleBlock=t.TSModuleBlock=t.tsModuleBlock=function(...e){return(0,n.default)("TSModuleBlock",...e)},t.tSImportType=t.TSImportType=t.tsImportType=function(...e){return(0,n.default)("TSImportType",...e)},t.tSImportEqualsDeclaration=t.TSImportEqualsDeclaration=t.tsImportEqualsDeclaration=function(...e){return(0,n.default)("TSImportEqualsDeclaration",...e)},t.tSExternalModuleReference=t.TSExternalModuleReference=t.tsExternalModuleReference=function(...e){return(0,n.default)("TSExternalModuleReference",...e)},t.tSNonNullExpression=t.TSNonNullExpression=t.tsNonNullExpression=function(...e){return(0,n.default)("TSNonNullExpression",...e)},t.tSExportAssignment=t.TSExportAssignment=t.tsExportAssignment=function(...e){return(0,n.default)("TSExportAssignment",...e)},t.tSNamespaceExportDeclaration=t.TSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=function(...e){return(0,n.default)("TSNamespaceExportDeclaration",...e)},t.tSTypeAnnotation=t.TSTypeAnnotation=t.tsTypeAnnotation=function(...e){return(0,n.default)("TSTypeAnnotation",...e)},t.tSTypeParameterInstantiation=t.TSTypeParameterInstantiation=t.tsTypeParameterInstantiation=function(...e){return(0,n.default)("TSTypeParameterInstantiation",...e)},t.tSTypeParameterDeclaration=t.TSTypeParameterDeclaration=t.tsTypeParameterDeclaration=function(...e){return(0,n.default)("TSTypeParameterDeclaration",...e)},t.tSTypeParameter=t.TSTypeParameter=t.tsTypeParameter=function(...e){return(0,n.default)("TSTypeParameter",...e)},t.numberLiteral=t.NumberLiteral=function(...e){return console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),(0,n.default)("NumberLiteral",...e)},t.regexLiteral=t.RegexLiteral=function(...e){return console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),(0,n.default)("RegexLiteral",...e)},t.restProperty=t.RestProperty=function(...e){return console.trace("The node type RestProperty has been renamed to RestElement"),(0,n.default)("RestProperty",...e)},t.spreadProperty=t.SpreadProperty=function(...e){return console.trace("The node type SpreadProperty has been renamed to SpreadElement"),(0,n.default)("SpreadProperty",...e)};var i,n=(i=r(1739))&&i.__esModule?i:{default:i}},4986:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[];for(let r=0;r<e.children.length;r++){let i=e.children[r];(0,n.isJSXText)(i)?(0,s.default)(i,t):((0,n.isJSXExpressionContainer)(i)&&(i=i.expression),(0,n.isJSXEmptyExpression)(i)||t.push(i))}return t};var i,n=r(8037),s=(i=r(586))&&i.__esModule?i:{default:i}},7329:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.map((e=>e.typeAnnotations)),r=(0,s.default)(t);return 1===r.length?r[0]:(0,n.tsUnionType)(r)};var i,n=r(3894),s=(i=r(2493))&&i.__esModule?i:{default:i}},5509:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e,!1)};var i,n=(i=r(539))&&i.__esModule?i:{default:i}},2107:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e)};var i,n=(i=r(539))&&i.__esModule?i:{default:i}},2634:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e,!0,!0)};var i,n=(i=r(539))&&i.__esModule?i:{default:i}},539:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=cloneNode;var i=r(9829);const n=Function.call.bind(Object.prototype.hasOwnProperty);function cloneIfNode(e,t,r){return e&&"string"==typeof e.type?cloneNode(e,t,r):e}function cloneIfNodeOrArray(e,t,r){return Array.isArray(e)?e.map((e=>cloneIfNode(e,t,r))):cloneIfNode(e,t,r)}function cloneNode(e,t=!0,r=!1){if(!e)return e;const{type:s}=e,a={type:s};if("Identifier"===s)a.name=e.name,n(e,"optional")&&"boolean"==typeof e.optional&&(a.optional=e.optional),n(e,"typeAnnotation")&&(a.typeAnnotation=t?cloneIfNodeOrArray(e.typeAnnotation,!0,r):e.typeAnnotation);else{if(!n(i.NODE_FIELDS,s))throw new Error(`Unknown node type: "${s}"`);for(const o of Object.keys(i.NODE_FIELDS[s]))n(e,o)&&(a[o]=t?"File"===s&&"comments"===o?maybeCloneComments(e.comments,t,r):cloneIfNodeOrArray(e[o],!0,r):e[o])}return n(e,"loc")&&(a.loc=r?null:e.loc),n(e,"leadingComments")&&(a.leadingComments=maybeCloneComments(e.leadingComments,t,r)),n(e,"innerComments")&&(a.innerComments=maybeCloneComments(e.innerComments,t,r)),n(e,"trailingComments")&&(a.trailingComments=maybeCloneComments(e.trailingComments,t,r)),n(e,"extra")&&(a.extra=Object.assign({},e.extra)),a}function maybeCloneComments(e,t,r){return t&&r?function(e){return e.map((({type:e,value:t})=>({type:e,value:t,loc:null})))}(e):e}},1225:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e,!1,!0)};var i,n=(i=r(539))&&i.__esModule?i:{default:i}},8184:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,i){return(0,n.default)(e,t,[{type:i?"CommentLine":"CommentBlock",value:r}])};var i,n=(i=r(2243))&&i.__esModule?i:{default:i}},2243:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!r||!e)return e;const i=`${t}Comments`;e[i]?e[i]="leading"===t?r.concat(e[i]):e[i].concat(r):e[i]=r;return e}},440:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)("innerComments",e,t)};var i,n=(i=r(3450))&&i.__esModule?i:{default:i}},9622:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)("leadingComments",e,t)};var i,n=(i=r(3450))&&i.__esModule?i:{default:i}},9868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)("trailingComments",e,t)};var i,n=(i=r(3450))&&i.__esModule?i:{default:i}},6168:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,i.default)(e,t),(0,n.default)(e,t),(0,s.default)(e,t),e};var i=_interopRequireDefault(r(9868)),n=_interopRequireDefault(r(9622)),s=_interopRequireDefault(r(440));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},4670:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return i.COMMENT_KEYS.forEach((t=>{e[t]=null})),e};var i=r(9660)},1798:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TSBASETYPE_TYPES=t.TSTYPE_TYPES=t.TSTYPEELEMENT_TYPES=t.PRIVATE_TYPES=t.JSX_TYPES=t.ENUMMEMBER_TYPES=t.ENUMBODY_TYPES=t.FLOWPREDICATE_TYPES=t.FLOWDECLARATION_TYPES=t.FLOWBASEANNOTATION_TYPES=t.FLOWTYPE_TYPES=t.FLOW_TYPES=t.MODULESPECIFIER_TYPES=t.EXPORTDECLARATION_TYPES=t.MODULEDECLARATION_TYPES=t.CLASS_TYPES=t.PATTERN_TYPES=t.UNARYLIKE_TYPES=t.PROPERTY_TYPES=t.OBJECTMEMBER_TYPES=t.METHOD_TYPES=t.USERWHITESPACABLE_TYPES=t.IMMUTABLE_TYPES=t.LITERAL_TYPES=t.TSENTITYNAME_TYPES=t.LVAL_TYPES=t.PATTERNLIKE_TYPES=t.DECLARATION_TYPES=t.PUREISH_TYPES=t.FUNCTIONPARENT_TYPES=t.FUNCTION_TYPES=t.FORXSTATEMENT_TYPES=t.FOR_TYPES=t.EXPRESSIONWRAPPER_TYPES=t.WHILE_TYPES=t.LOOP_TYPES=t.CONDITIONAL_TYPES=t.COMPLETIONSTATEMENT_TYPES=t.TERMINATORLESS_TYPES=t.STATEMENT_TYPES=t.BLOCK_TYPES=t.BLOCKPARENT_TYPES=t.SCOPABLE_TYPES=t.BINARY_TYPES=t.EXPRESSION_TYPES=void 0;var i=r(9829);const n=i.FLIPPED_ALIAS_KEYS.Expression;t.EXPRESSION_TYPES=n;const s=i.FLIPPED_ALIAS_KEYS.Binary;t.BINARY_TYPES=s;const a=i.FLIPPED_ALIAS_KEYS.Scopable;t.SCOPABLE_TYPES=a;const o=i.FLIPPED_ALIAS_KEYS.BlockParent;t.BLOCKPARENT_TYPES=o;const l=i.FLIPPED_ALIAS_KEYS.Block;t.BLOCK_TYPES=l;const c=i.FLIPPED_ALIAS_KEYS.Statement;t.STATEMENT_TYPES=c;const u=i.FLIPPED_ALIAS_KEYS.Terminatorless;t.TERMINATORLESS_TYPES=u;const p=i.FLIPPED_ALIAS_KEYS.CompletionStatement;t.COMPLETIONSTATEMENT_TYPES=p;const d=i.FLIPPED_ALIAS_KEYS.Conditional;t.CONDITIONAL_TYPES=d;const h=i.FLIPPED_ALIAS_KEYS.Loop;t.LOOP_TYPES=h;const f=i.FLIPPED_ALIAS_KEYS.While;t.WHILE_TYPES=f;const m=i.FLIPPED_ALIAS_KEYS.ExpressionWrapper;t.EXPRESSIONWRAPPER_TYPES=m;const y=i.FLIPPED_ALIAS_KEYS.For;t.FOR_TYPES=y;const T=i.FLIPPED_ALIAS_KEYS.ForXStatement;t.FORXSTATEMENT_TYPES=T;const g=i.FLIPPED_ALIAS_KEYS.Function;t.FUNCTION_TYPES=g;const b=i.FLIPPED_ALIAS_KEYS.FunctionParent;t.FUNCTIONPARENT_TYPES=b;const S=i.FLIPPED_ALIAS_KEYS.Pureish;t.PUREISH_TYPES=S;const x=i.FLIPPED_ALIAS_KEYS.Declaration;t.DECLARATION_TYPES=x;const P=i.FLIPPED_ALIAS_KEYS.PatternLike;t.PATTERNLIKE_TYPES=P;const v=i.FLIPPED_ALIAS_KEYS.LVal;t.LVAL_TYPES=v;const A=i.FLIPPED_ALIAS_KEYS.TSEntityName;t.TSENTITYNAME_TYPES=A;const w=i.FLIPPED_ALIAS_KEYS.Literal;t.LITERAL_TYPES=w;const I=i.FLIPPED_ALIAS_KEYS.Immutable;t.IMMUTABLE_TYPES=I;const C=i.FLIPPED_ALIAS_KEYS.UserWhitespacable;t.USERWHITESPACABLE_TYPES=C;const O=i.FLIPPED_ALIAS_KEYS.Method;t.METHOD_TYPES=O;const N=i.FLIPPED_ALIAS_KEYS.ObjectMember;t.OBJECTMEMBER_TYPES=N;const _=i.FLIPPED_ALIAS_KEYS.Property;t.PROPERTY_TYPES=_;const k=i.FLIPPED_ALIAS_KEYS.UnaryLike;t.UNARYLIKE_TYPES=k;const D=i.FLIPPED_ALIAS_KEYS.Pattern;t.PATTERN_TYPES=D;const L=i.FLIPPED_ALIAS_KEYS.Class;t.CLASS_TYPES=L;const M=i.FLIPPED_ALIAS_KEYS.ModuleDeclaration;t.MODULEDECLARATION_TYPES=M;const B=i.FLIPPED_ALIAS_KEYS.ExportDeclaration;t.EXPORTDECLARATION_TYPES=B;const j=i.FLIPPED_ALIAS_KEYS.ModuleSpecifier;t.MODULESPECIFIER_TYPES=j;const R=i.FLIPPED_ALIAS_KEYS.Flow;t.FLOW_TYPES=R;const F=i.FLIPPED_ALIAS_KEYS.FlowType;t.FLOWTYPE_TYPES=F;const U=i.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation;t.FLOWBASEANNOTATION_TYPES=U;const K=i.FLIPPED_ALIAS_KEYS.FlowDeclaration;t.FLOWDECLARATION_TYPES=K;const q=i.FLIPPED_ALIAS_KEYS.FlowPredicate;t.FLOWPREDICATE_TYPES=q;const V=i.FLIPPED_ALIAS_KEYS.EnumBody;t.ENUMBODY_TYPES=V;const W=i.FLIPPED_ALIAS_KEYS.EnumMember;t.ENUMMEMBER_TYPES=W;const Y=i.FLIPPED_ALIAS_KEYS.JSX;t.JSX_TYPES=Y;const X=i.FLIPPED_ALIAS_KEYS.Private;t.PRIVATE_TYPES=X;const J=i.FLIPPED_ALIAS_KEYS.TSTypeElement;t.TSTYPEELEMENT_TYPES=J;const H=i.FLIPPED_ALIAS_KEYS.TSType;t.TSTYPE_TYPES=H;const G=i.FLIPPED_ALIAS_KEYS.TSBaseType;t.TSBASETYPE_TYPES=G},9660:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NOT_LOCAL_BINDING=t.BLOCK_SCOPED_SYMBOL=t.INHERIT_KEYS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.NUMBER_UNARY_OPERATORS=t.BOOLEAN_UNARY_OPERATORS=t.ASSIGNMENT_OPERATORS=t.BINARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.EQUALITY_BINARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.UPDATE_OPERATORS=t.LOGICAL_OPERATORS=t.COMMENT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.STATEMENT_OR_BLOCK_KEYS=void 0;t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"];t.FLATTENABLE_KEYS=["body","expressions"];t.FOR_INIT_KEYS=["left","init"];t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const r=["||","&&","??"];t.LOGICAL_OPERATORS=r;t.UPDATE_OPERATORS=["++","--"];const i=[">","<",">=","<="];t.BOOLEAN_NUMBER_BINARY_OPERATORS=i;const n=["==","===","!=","!=="];t.EQUALITY_BINARY_OPERATORS=n;const s=[...n,"in","instanceof"];t.COMPARISON_BINARY_OPERATORS=s;const a=[...s,...i];t.BOOLEAN_BINARY_OPERATORS=a;const o=["-","/","%","*","**","&","|",">>",">>>","<<","^"];t.NUMBER_BINARY_OPERATORS=o;const l=["+",...o,...a];t.BINARY_OPERATORS=l;const c=["=","+=",...o.map((e=>e+"=")),...r.map((e=>e+"="))];t.ASSIGNMENT_OPERATORS=c;const u=["delete","!"];t.BOOLEAN_UNARY_OPERATORS=u;const p=["+","-","~"];t.NUMBER_UNARY_OPERATORS=p;const d=["typeof"];t.STRING_UNARY_OPERATORS=d;const h=["void","throw",...u,...p,...d];t.UNARY_OPERATORS=h;t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};const f=Symbol.for("var used to be block scoped");t.BLOCK_SCOPED_SYMBOL=f;const m=Symbol.for("should not be considered a local binding");t.NOT_LOCAL_BINDING=m},4157:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t="body"){return e[t]=(0,n.default)(e[t],e)};var i,n=(i=r(130))&&i.__esModule?i:{default:i}},5366:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function gatherSequenceExpressions(e,t,r){const o=[];let l=!0;for(const c of e)if((0,n.isEmptyStatement)(c)||(l=!1),(0,n.isExpression)(c))o.push(c);else if((0,n.isExpressionStatement)(c))o.push(c.expression);else if((0,n.isVariableDeclaration)(c)){if("var"!==c.kind)return;for(const e of c.declarations){const t=(0,i.default)(e);for(const e of Object.keys(t))r.push({kind:c.kind,id:(0,a.default)(t[e])});e.init&&o.push((0,s.assignmentExpression)("=",e.id,e.init))}l=!0}else if((0,n.isIfStatement)(c)){const e=c.consequent?gatherSequenceExpressions([c.consequent],t,r):t.buildUndefinedNode(),i=c.alternate?gatherSequenceExpressions([c.alternate],t,r):t.buildUndefinedNode();if(!e||!i)return;o.push((0,s.conditionalExpression)(c.test,e,i))}else if((0,n.isBlockStatement)(c)){const e=gatherSequenceExpressions(c.body,t,r);if(!e)return;o.push(e)}else{if(!(0,n.isEmptyStatement)(c))return;0===e.indexOf(c)&&(l=!0)}l&&o.push(t.buildUndefinedNode());return 1===o.length?o[0]:(0,s.sequenceExpression)(o)};var i=_interopRequireDefault(r(3407)),n=r(8037),s=r(3894),a=_interopRequireDefault(r(539));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},8681:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"eval"!==(e=(0,n.default)(e))&&"arguments"!==e||(e="_"+e);return e};var i,n=(i=r(5450))&&i.__esModule?i:{default:i}},130:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.isBlockStatement)(e))return e;let r=[];(0,i.isEmptyStatement)(e)?r=[]:((0,i.isStatement)(e)||(e=(0,i.isFunction)(t)?(0,n.returnStatement)(e):(0,n.expressionStatement)(e)),r=[e]);return(0,n.blockStatement)(r)};var i=r(8037),n=r(3894)},940:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=e.key||e.property){!e.computed&&(0,i.isIdentifier)(t)&&(t=(0,n.stringLiteral)(t.name));return t};var i=r(8037),n=r(3894)},2858:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.isExpressionStatement)(e)&&(e=e.expression);if((0,i.isExpression)(e))return e;(0,i.isClass)(e)?e.type="ClassExpression":(0,i.isFunction)(e)&&(e.type="FunctionExpression");if(!(0,i.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e};var i=r(8037)},5450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e=(e=(e=(e+="").replace(/[^a-zA-Z0-9$_]/g,"-")).replace(/^[-0-9]+/,"")).replace(/[-\\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""})),(0,n.default)(e)||(e=`_${e}`);return e||"_"};var i,n=(i=r(380))&&i.__esModule?i:{default:i}},8100:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=toKeyAlias;var i=r(8037),n=_interopRequireDefault(r(539)),s=_interopRequireDefault(r(4888));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function toKeyAlias(e,t=e.key){let r;return"method"===e.kind?toKeyAlias.increment()+"":(r=(0,i.isIdentifier)(t)?t.name:(0,i.isStringLiteral)(t)?JSON.stringify(t.value):JSON.stringify((0,s.default)((0,n.default)(t))),e.computed&&(r=`[${r}]`),e.static&&(r=`static:${r}`),r)}toKeyAlias.uid=0,toKeyAlias.increment=function(){return toKeyAlias.uid>=Number.MAX_SAFE_INTEGER?toKeyAlias.uid=0:toKeyAlias.uid++}},4914:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!(null==e?void 0:e.length))return;const r=[],i=(0,n.default)(e,t,r);if(!i)return;for(const e of r)t.push(e);return i};var i,n=(i=r(5366))&&i.__esModule?i:{default:i}},2469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.isStatement)(e))return e;let r,s=!1;if((0,i.isClass)(e))s=!0,r="ClassDeclaration";else if((0,i.isFunction)(e))s=!0,r="FunctionDeclaration";else if((0,i.isAssignmentExpression)(e))return(0,n.expressionStatement)(e);s&&!e.id&&(r=!1);if(!r){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=r,e};var i=r(8037),n=r(3894)},8626:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function valueToNode(e){if(void 0===e)return(0,a.identifier)("undefined");if(!0===e||!1===e)return(0,a.booleanLiteral)(e);if(null===e)return(0,a.nullLiteral)();if("string"==typeof e)return(0,a.stringLiteral)(e);if("number"==typeof e){let t;if(Number.isFinite(e))t=(0,a.numericLiteral)(Math.abs(e));else{let r;r=Number.isNaN(e)?(0,a.numericLiteral)(0):(0,a.numericLiteral)(1),t=(0,a.binaryExpression)("/",r,(0,a.numericLiteral)(0))}return(e<0||Object.is(e,-0))&&(t=(0,a.unaryExpression)("-",t)),t}if((0,n.default)(e)){const t=e.source,r=e.toString().match(/\\/([a-z]+|)$/)[1];return(0,a.regExpLiteral)(t,r)}if(Array.isArray(e))return(0,a.arrayExpression)(e.map(valueToNode));if((0,i.default)(e)){const t=[];for(const r of Object.keys(e)){let i;i=(0,s.default)(r)?(0,a.identifier)(r):(0,a.stringLiteral)(r),t.push((0,a.objectProperty)(i,valueToNode(e[r])))}return(0,a.objectExpression)(t)}throw new Error("don\'t know how to turn this value into a node")};var i=_interopRequireDefault(r(3177)),n=_interopRequireDefault(r(7832)),s=_interopRequireDefault(r(380)),a=r(3894);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},4613:(e,t,r)=>{"use strict";var i=r(397);Object.defineProperty(t,"__esModule",{value:!0}),t.classMethodOrDeclareMethodCommon=t.classMethodOrPropertyCommon=t.patternLikeCommon=t.functionDeclarationCommon=t.functionTypeAnnotationCommon=t.functionCommon=void 0;var n=_interopRequireDefault(r(6593)),s=_interopRequireDefault(r(380)),a=r(7075),o=r(9660),l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(6343));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(0,l.default)("ArrayExpression",{fields:{elements:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeOrValueType)("null","Expression","SpreadElement"))),default:i.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),(0,l.default)("AssignmentExpression",{fields:{operator:{validate:function(){if(!i.env.BABEL_TYPES_8_BREAKING)return(0,l.assertValueType)("string");const e=(0,l.assertOneOf)(...o.ASSIGNMENT_OPERATORS),t=(0,l.assertOneOf)("=");return function(r,i,s){((0,n.default)("Pattern",r.left)?t:e)(r,i,s)}}()},left:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern"):(0,l.assertNodeType)("LVal")},right:{validate:(0,l.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),(0,l.default)("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,l.assertOneOf)(...o.BINARY_OPERATORS)},left:{validate:function(){const e=(0,l.assertNodeType)("Expression"),t=(0,l.assertNodeType)("Expression","PrivateName"),validator=function(r,i,n){("in"===r.operator?t:e)(r,i,n)};return validator.oneOfNodeTypes=["Expression","PrivateName"],validator}()},right:{validate:(0,l.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),(0,l.default)("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}}}),(0,l.default)("Directive",{visitor:["value"],fields:{value:{validate:(0,l.assertNodeType)("DirectiveLiteral")}}}),(0,l.default)("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}}}),(0,l.default)("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Directive"))),default:[]},body:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block","Statement"]}),(0,l.default)("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,l.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),(0,l.default)("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,l.assertNodeType)("Expression","V8IntrinsicIdentifier")},arguments:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Expression","SpreadElement","JSXNamespacedName","ArgumentPlaceholder")))}},i.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,l.assertOneOf)(!0,!1),optional:!0}},{typeArguments:{validate:(0,l.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),(0,l.default)("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,l.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),(0,l.default)("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},consequent:{validate:(0,l.assertNodeType)("Expression")},alternate:{validate:(0,l.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),(0,l.default)("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,l.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),(0,l.default)("DebuggerStatement",{aliases:["Statement"]}),(0,l.default)("DoWhileStatement",{visitor:["test","body"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),(0,l.default)("EmptyStatement",{aliases:["Statement"]}),(0,l.default)("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,l.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),(0,l.default)("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,l.assertNodeType)("Program")},comments:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.assertEach)((0,l.assertNodeType)("CommentBlock","CommentLine")):Object.assign((()=>{}),{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,l.assertEach)(Object.assign((()=>{}),{type:"any"})),optional:!0}}}),(0,l.default)("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern"):(0,l.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}}),(0,l.default)("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,l.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,l.assertNodeType)("Expression"),optional:!0},update:{validate:(0,l.assertNodeType)("Expression"),optional:!0},body:{validate:(0,l.assertNodeType)("Statement")}}});const c={params:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Identifier","Pattern","RestElement","TSParameterProperty")))},generator:{default:!1},async:{default:!1}};t.functionCommon=c;const u={returnType:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}};t.functionTypeAnnotationCommon=u;const p=Object.assign({},c,{declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0}});t.functionDeclarationCommon=p,(0,l.default)("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","params","body","returnType","typeParameters"],fields:Object.assign({},p,u,{body:{validate:(0,l.assertNodeType)("BlockStatement")}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:function(){if(!i.env.BABEL_TYPES_8_BREAKING)return()=>{};const e=(0,l.assertNodeType)("Identifier");return function(t,r,i){(0,n.default)("ExportDefaultDeclaration",t)||e(i,"id",i.id)}}()}),(0,l.default)("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},c,u,{id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,l.assertNodeType)("BlockStatement")}})});const d={typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator")))}};t.patternLikeCommon=d,(0,l.default)("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},d,{name:{validate:(0,l.chain)((0,l.assertValueType)("string"),Object.assign((function(e,t,r){if(i.env.BABEL_TYPES_8_BREAKING&&!(0,s.default)(r,!1))throw new TypeError(`"${r}" is not a valid identifier name`)}),{type:"string"}))},optional:{validate:(0,l.assertValueType)("boolean"),optional:!0}}),validate(e,t,r){if(!i.env.BABEL_TYPES_8_BREAKING)return;const s=/\\.(\\w+)$/.exec(t);if(!s)return;const[,o]=s,l={computed:!1};if("property"===o){if((0,n.default)("MemberExpression",e,l))return;if((0,n.default)("OptionalMemberExpression",e,l))return}else if("key"===o){if((0,n.default)("Property",e,l))return;if((0,n.default)("Method",e,l))return}else if("exported"===o){if((0,n.default)("ExportSpecifier",e))return}else if("imported"===o){if((0,n.default)("ImportSpecifier",e,{imported:r}))return}else if("meta"===o&&(0,n.default)("MetaProperty",e,{meta:r}))return;if(((0,a.isKeyword)(r.name)||(0,a.isReservedWord)(r.name))&&"this"!==r.name)throw new TypeError(`"${r.name}" is not a valid identifier`)}}),(0,l.default)("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},consequent:{validate:(0,l.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,l.assertNodeType)("Statement")}}}),(0,l.default)("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,l.assertNodeType)("Identifier")},body:{validate:(0,l.assertNodeType)("Statement")}}}),(0,l.default)("StringLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,l.assertValueType)("number")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,l.assertValueType)("string")},flags:{validate:(0,l.chain)((0,l.assertValueType)("string"),Object.assign((function(e,t,r){if(!i.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:""}}}),(0,l.default)("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,l.assertOneOf)(...o.LOGICAL_OPERATORS)},left:{validate:(0,l.assertNodeType)("Expression")},right:{validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("MemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:(0,l.assertNodeType)("Expression")},property:{validate:function(){const e=(0,l.assertNodeType)("Identifier","PrivateName"),t=(0,l.assertNodeType)("Expression"),validator=function(r,i,n){(r.computed?t:e)(r,i,n)};return validator.oneOfNodeTypes=["Expression","Identifier","PrivateName"],validator}()},computed:{default:!1}},i.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,l.assertOneOf)(!0,!1),optional:!0}})}),(0,l.default)("NewExpression",{inherits:"CallExpression"}),(0,l.default)("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceFile:{validate:(0,l.assertValueType)("string")},sourceType:{validate:(0,l.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,l.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Directive"))),default:[]},body:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block"]}),(0,l.default)("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("ObjectMethod","ObjectProperty","SpreadElement")))}}}),(0,l.default)("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],fields:Object.assign({},c,u,{kind:Object.assign({validate:(0,l.assertOneOf)("method","get","set")},i.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),t=(0,l.assertNodeType)("Expression"),validator=function(r,i,n){(r.computed?t:e)(r,i,n)};return validator.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral"],validator}()},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0},body:{validate:(0,l.assertNodeType)("BlockStatement")}}),visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),(0,l.default)("ObjectProperty",{builder:["key","value","computed","shorthand",...i.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),t=(0,l.assertNodeType)("Expression"),validator=function(r,i,n){(r.computed?t:e)(r,i,n)};return validator.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral"],validator}()},value:{validate:(0,l.assertNodeType)("Expression","PatternLike")},shorthand:{validate:(0,l.chain)((0,l.assertValueType)("boolean"),Object.assign((function(e,t,r){if(i.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,t,r){if(i.env.BABEL_TYPES_8_BREAKING&&r&&!(0,n.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,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:function(){const e=(0,l.assertNodeType)("Identifier","Pattern"),t=(0,l.assertNodeType)("Expression");return function(r,s,a){if(!i.env.BABEL_TYPES_8_BREAKING)return;((0,n.default)("ObjectPattern",r)?e:t)(a,"value",a.value)}}()}),(0,l.default)("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},d,{argument:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","Pattern","MemberExpression"):(0,l.assertNodeType)("LVal")}}),validate(e,t){if(!i.env.BABEL_TYPES_8_BREAKING)return;const r=/(\\w+)\\[(\\d+)\\]/.exec(t);if(!r)throw new Error("Internal Babel error: malformed key.");const[,n,s]=r;if(e[n].length>s+1)throw new TypeError(`RestElement must be last element of ${n}`)}}),(0,l.default)("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,l.assertNodeType)("Expression"),optional:!0}}}),(0,l.default)("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Expression")))}},aliases:["Expression"]}),(0,l.default)("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,l.assertNodeType)("Expression"),optional:!0},consequent:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Statement")))}}}),(0,l.default)("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,l.assertNodeType)("Expression")},cases:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("SwitchCase")))}}}),(0,l.default)("ThisExpression",{aliases:["Expression"]}),(0,l.default)("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:(0,l.chain)((0,l.assertNodeType)("BlockStatement"),Object.assign((function(e){if(i.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,l.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,l.assertNodeType)("BlockStatement")}}}),(0,l.default)("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,l.assertNodeType)("Expression")},operator:{validate:(0,l.assertOneOf)(...o.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),(0,l.default)("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","MemberExpression"):(0,l.assertNodeType)("Expression")},operator:{validate:(0,l.assertOneOf)(...o.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),(0,l.default)("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},kind:{validate:(0,l.assertOneOf)("var","let","const")},declarations:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("VariableDeclarator")))}},validate(e,t,r){if(i.env.BABEL_TYPES_8_BREAKING&&(0,n.default)("ForXStatement",e,{left:r})&&1!==r.declarations.length)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${e.type}`)}}),(0,l.default)("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:function(){if(!i.env.BABEL_TYPES_8_BREAKING)return(0,l.assertNodeType)("LVal");const e=(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),t=(0,l.assertNodeType)("Identifier");return function(r,i,n){(r.init?e:t)(r,i,n)}}()},definite:{optional:!0,validate:(0,l.assertValueType)("boolean")},init:{optional:!0,validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}}),(0,l.default)("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}}),(0,l.default)("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},d,{left:{validate:(0,l.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression")},right:{validate:(0,l.assertNodeType)("Expression")},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0}})}),(0,l.default)("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},d,{elements:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeOrValueType)("null","PatternLike")))},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0}})}),(0,l.default)("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType","typeParameters"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},c,u,{expression:{validate:(0,l.assertValueType)("boolean")},body:{validate:(0,l.assertNodeType)("BlockStatement","Expression")}})}),(0,l.default)("ClassBody",{visitor:["body"],fields:{body:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","TSDeclareMethod","TSIndexSignature")))}}}),(0,l.default)("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,l.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,l.assertNodeType)("Expression")},superTypeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,l.assertNodeType)("InterfaceExtends"),optional:!0}}}),(0,l.default)("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,l.assertNodeType)("Identifier")},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,l.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,l.assertNodeType)("Expression")},superTypeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,l.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,l.assertValueType)("boolean"),optional:!0}},validate:function(){const e=(0,l.assertNodeType)("Identifier");return function(t,r,s){i.env.BABEL_TYPES_8_BREAKING&&((0,n.default)("ExportDefaultDeclaration",t)||e(s,"id",s.id))}}()}),(0,l.default)("ExportAllDeclaration",{visitor:["source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{source:{validate:(0,l.assertNodeType)("StringLiteral")},assertions:{optional:!0,validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertNodeType)("ImportAttribute"))}}}),(0,l.default)("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0,l.assertNodeType)("FunctionDeclaration","TSDeclareFunction","ClassDeclaration","Expression")}}}),(0,l.default)("ExportNamedDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:(0,l.chain)((0,l.assertNodeType)("Declaration"),Object.assign((function(e,t,r){if(i.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(i.env.BABEL_TYPES_8_BREAKING&&r&&e.source)throw new TypeError("Cannot export a declaration from a source")}))},assertions:{optional:!0,validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertNodeType)("ImportAttribute"))},specifiers:{default:[],validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)(function(){const e=(0,l.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,l.assertNodeType)("ExportSpecifier");return i.env.BABEL_TYPES_8_BREAKING?function(r,i,n){(r.source?e:t)(r,i,n)}:e}()))},source:{validate:(0,l.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,l.validateOptional)((0,l.assertOneOf)("type","value"))}}),(0,l.default)("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")},exported:{validate:(0,l.assertNodeType)("Identifier","StringLiteral")}}}),(0,l.default)("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!i.env.BABEL_TYPES_8_BREAKING)return(0,l.assertNodeType)("VariableDeclaration","LVal");const e=(0,l.assertNodeType)("VariableDeclaration"),t=(0,l.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern");return function(r,i,s){(0,n.default)("VariableDeclaration",s)?e(r,i,s):t(r,i,s)}}()},right:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")},await:{default:!1}}}),(0,l.default)("ImportDeclaration",{visitor:["specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration"],fields:{assertions:{optional:!0,validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertNodeType)("ImportAttribute"))},specifiers:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:(0,l.assertNodeType)("StringLiteral")},importKind:{validate:(0,l.assertOneOf)("type","typeof","value"),optional:!0}}}),(0,l.default)("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")}}}),(0,l.default)("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")}}}),(0,l.default)("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")},imported:{validate:(0,l.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,l.assertOneOf)("type","typeof"),optional:!0}}}),(0,l.default)("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:(0,l.chain)((0,l.assertNodeType)("Identifier"),Object.assign((function(e,t,r){if(!i.env.BABEL_TYPES_8_BREAKING)return;let s;switch(r.name){case"function":s="sent";break;case"new":s="target";break;case"import":s="meta"}if(!(0,n.default)("Identifier",e.property,{name:s}))throw new TypeError("Unrecognised MetaProperty")}),{oneOfNodeTypes:["Identifier"]}))},property:{validate:(0,l.assertNodeType)("Identifier")}}});const h={abstract:{validate:(0,l.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,l.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},computed:{default:!1},optional:{validate:(0,l.assertValueType)("boolean"),optional:!0},key:{validate:(0,l.chain)(function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),t=(0,l.assertNodeType)("Expression");return function(r,i,n){(r.computed?t:e)(r,i,n)}}(),(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","Expression"))}};t.classMethodOrPropertyCommon=h;const f=Object.assign({},c,h,{kind:{validate:(0,l.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,l.chain)((0,l.assertValueType)("string"),(0,l.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0}});t.classMethodOrDeclareMethodCommon=f,(0,l.default)("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({},f,u,{body:{validate:(0,l.assertNodeType)("BlockStatement")}})}),(0,l.default)("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},d,{properties:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("RestElement","ObjectProperty")))}})}),(0,l.default)("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("Super",{aliases:["Expression"]}),(0,l.default)("TaggedTemplateExpression",{visitor:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,l.assertNodeType)("Expression")},quasi:{validate:(0,l.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),(0,l.default)("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,l.assertShape)({raw:{validate:(0,l.assertValueType)("string")},cooked:{validate:(0,l.assertValueType)("string"),optional:!0}})},tail:{default:!1}}}),(0,l.default)("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("TemplateElement")))},expressions:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.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}`)}))}}}),(0,l.default)("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0,l.chain)((0,l.assertValueType)("boolean"),Object.assign((function(e,t,r){if(i.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,l.assertNodeType)("Expression")}}}),(0,l.default)("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("Import",{aliases:["Expression"]}),(0,l.default)("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,l.assertNodeType)("Identifier")}}}),(0,l.default)("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,l.assertNodeType)("Expression")},property:{validate:function(){const e=(0,l.assertNodeType)("Identifier"),t=(0,l.assertNodeType)("Expression"),validator=function(r,i,n){(r.computed?t:e)(r,i,n)};return validator.oneOfNodeTypes=["Expression","Identifier"],validator}()},computed:{default:!1},optional:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("boolean"),(0,l.assertOptionalChainStart)()):(0,l.assertValueType)("boolean")}}}),(0,l.default)("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:(0,l.assertNodeType)("Expression")},arguments:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Expression","SpreadElement","JSXNamespacedName")))},optional:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("boolean"),(0,l.assertOptionalChainStart)()):(0,l.assertValueType)("boolean")},typeArguments:{validate:(0,l.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}}})},5675:(e,t,r)=>{"use strict";var i=r(397),n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(6343)),s=r(4613);function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}(0,n.default)("ArgumentPlaceholder",{}),(0,n.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:i.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,n.assertNodeType)("Expression")},callee:{validate:(0,n.assertNodeType)("Expression")}}:{object:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})}}}),(0,n.default)("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},s.classMethodOrPropertyCommon,{value:{validate:(0,n.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,n.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,n.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,n.assertValueType)("boolean"),optional:!0},declare:{validate:(0,n.assertValueType)("boolean"),optional:!0}})}),(0,n.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}}}),(0,n.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,n.assertNodeType)("Expression")}}}),(0,n.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]}),(0,n.default)("ClassPrivateProperty",{visitor:["key","value","decorators"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,n.assertNodeType)("PrivateName")},value:{validate:(0,n.assertNodeType)("Expression"),optional:!0},decorators:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Decorator"))),optional:!0}}}),(0,n.default)("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},s.classMethodOrDeclareMethodCommon,s.functionTypeAnnotationCommon,{key:{validate:(0,n.assertNodeType)("PrivateName")},body:{validate:(0,n.assertNodeType)("BlockStatement")}})}),(0,n.default)("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,n.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,n.assertNodeType)("StringLiteral")}}}),(0,n.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}}}),(0,n.default)("DoExpression",{visitor:["body"],aliases:["Expression"],fields:{body:{validate:(0,n.assertNodeType)("BlockStatement")}}}),(0,n.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,n.assertNodeType)("Identifier")}}}),(0,n.default)("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,n.assertNodeType)("Identifier")}}}),(0,n.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("ObjectProperty","SpreadElement")))}}}),(0,n.default)("TupleExpression",{fields:{elements:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,n.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,n.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,n.default)("StaticBlock",{visitor:["body"],fields:{body:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent"]})},3081:(e,t,r)=>{"use strict";var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(6343));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}const defineInterfaceishType=(e,t="TypeParameterDeclaration")=>{(0,i.default)(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends","mixins","implements","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)(t),extends:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends")),mixins:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends")),implements:(0,i.validateOptional)((0,i.arrayOfType)("ClassImplements")),body:(0,i.validateType)("ObjectTypeAnnotation")}})};(0,i.default)("AnyTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["Flow","FlowType"],fields:{elementType:(0,i.validateType)("FlowType")}}),(0,i.default)("BooleanTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:(0,i.validate)((0,i.assertValueType)("boolean"))}}),(0,i.default)("NullLiteralTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("ClassImplements",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),defineInterfaceishType("DeclareClass"),(0,i.default)("DeclareFunction",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),predicate:(0,i.validateOptionalType)("DeclaredPredicate")}}),defineInterfaceishType("DeclareInterface"),(0,i.default)("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)(["Identifier","StringLiteral"]),body:(0,i.validateType)("BlockStatement"),kind:(0,i.validateOptional)((0,i.assertOneOf)("CommonJS","ES"))}}),(0,i.default)("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,i.validateType)("TypeAnnotation")}}),(0,i.default)("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),right:(0,i.validateType)("FlowType")}}),(0,i.default)("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,i.validateOptionalType)("FlowType")}}),(0,i.default)("DeclareVariable",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier")}}),(0,i.default)("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{declaration:(0,i.validateOptionalType)("Flow"),specifiers:(0,i.validateOptional)((0,i.arrayOfType)(["ExportSpecifier","ExportNamespaceSpecifier"])),source:(0,i.validateOptionalType)("StringLiteral"),default:(0,i.validateOptional)((0,i.assertValueType)("boolean"))}}),(0,i.default)("DeclareExportAllDeclaration",{visitor:["source"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{source:(0,i.validateType)("StringLiteral"),exportKind:(0,i.validateOptional)((0,i.assertOneOf)("type","value"))}}),(0,i.default)("DeclaredPredicate",{visitor:["value"],aliases:["Flow","FlowPredicate"],fields:{value:(0,i.validateType)("Flow")}}),(0,i.default)("ExistsTypeAnnotation",{aliases:["Flow","FlowType"]}),(0,i.default)("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["Flow","FlowType"],fields:{typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),params:(0,i.validate)((0,i.arrayOfType)("FunctionTypeParam")),rest:(0,i.validateOptionalType)("FunctionTypeParam"),returnType:(0,i.validateType)("FlowType")}}),(0,i.default)("FunctionTypeParam",{visitor:["name","typeAnnotation"],aliases:["Flow"],fields:{name:(0,i.validateOptionalType)("Identifier"),typeAnnotation:(0,i.validateType)("FlowType"),optional:(0,i.validateOptional)((0,i.assertValueType)("boolean"))}}),(0,i.default)("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["Flow","FlowType"],fields:{id:(0,i.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),(0,i.default)("InferredPredicate",{aliases:["Flow","FlowPredicate"]}),(0,i.default)("InterfaceExtends",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{id:(0,i.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),defineInterfaceishType("InterfaceDeclaration"),(0,i.default)("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["Flow","FlowType"],fields:{extends:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends")),body:(0,i.validateType)("ObjectTypeAnnotation")}}),(0,i.default)("IntersectionTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),(0,i.default)("MixedTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("EmptyTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["Flow","FlowType"],fields:{typeAnnotation:(0,i.validateType)("FlowType")}}),(0,i.default)("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:(0,i.validate)((0,i.assertValueType)("number"))}}),(0,i.default)("NumberTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["Flow","FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,i.validate)((0,i.arrayOfType)(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:(0,i.validateOptional)((0,i.arrayOfType)("ObjectTypeIndexer")),callProperties:(0,i.validateOptional)((0,i.arrayOfType)("ObjectTypeCallProperty")),internalSlots:(0,i.validateOptional)((0,i.arrayOfType)("ObjectTypeInternalSlot")),exact:{validate:(0,i.assertValueType)("boolean"),default:!1},inexact:(0,i.validateOptional)((0,i.assertValueType)("boolean"))}}),(0,i.default)("ObjectTypeInternalSlot",{visitor:["id","value","optional","static","method"],aliases:["Flow","UserWhitespacable"],fields:{id:(0,i.validateType)("Identifier"),value:(0,i.validateType)("FlowType"),optional:(0,i.validate)((0,i.assertValueType)("boolean")),static:(0,i.validate)((0,i.assertValueType)("boolean")),method:(0,i.validate)((0,i.assertValueType)("boolean"))}}),(0,i.default)("ObjectTypeCallProperty",{visitor:["value"],aliases:["Flow","UserWhitespacable"],fields:{value:(0,i.validateType)("FlowType"),static:(0,i.validate)((0,i.assertValueType)("boolean"))}}),(0,i.default)("ObjectTypeIndexer",{visitor:["id","key","value","variance"],aliases:["Flow","UserWhitespacable"],fields:{id:(0,i.validateOptionalType)("Identifier"),key:(0,i.validateType)("FlowType"),value:(0,i.validateType)("FlowType"),static:(0,i.validate)((0,i.assertValueType)("boolean")),variance:(0,i.validateOptionalType)("Variance")}}),(0,i.default)("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["Flow","UserWhitespacable"],fields:{key:(0,i.validateType)(["Identifier","StringLiteral"]),value:(0,i.validateType)("FlowType"),kind:(0,i.validate)((0,i.assertOneOf)("init","get","set")),static:(0,i.validate)((0,i.assertValueType)("boolean")),proto:(0,i.validate)((0,i.assertValueType)("boolean")),optional:(0,i.validate)((0,i.assertValueType)("boolean")),variance:(0,i.validateOptionalType)("Variance")}}),(0,i.default)("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["Flow","UserWhitespacable"],fields:{argument:(0,i.validateType)("FlowType")}}),(0,i.default)("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,i.validateOptionalType)("FlowType"),impltype:(0,i.validateType)("FlowType")}}),(0,i.default)("QualifiedTypeIdentifier",{visitor:["id","qualification"],aliases:["Flow"],fields:{id:(0,i.validateType)("Identifier"),qualification:(0,i.validateType)(["Identifier","QualifiedTypeIdentifier"])}}),(0,i.default)("StringLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:(0,i.validate)((0,i.assertValueType)("string"))}}),(0,i.default)("StringTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("SymbolTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("ThisTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("TupleTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),(0,i.default)("TypeofTypeAnnotation",{visitor:["argument"],aliases:["Flow","FlowType"],fields:{argument:(0,i.validateType)("FlowType")}}),(0,i.default)("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),right:(0,i.validateType)("FlowType")}}),(0,i.default)("TypeAnnotation",{aliases:["Flow"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,i.validateType)("FlowType")}}),(0,i.default)("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["Flow","ExpressionWrapper","Expression"],fields:{expression:(0,i.validateType)("Expression"),typeAnnotation:(0,i.validateType)("TypeAnnotation")}}),(0,i.default)("TypeParameter",{aliases:["Flow"],visitor:["bound","default","variance"],fields:{name:(0,i.validate)((0,i.assertValueType)("string")),bound:(0,i.validateOptionalType)("TypeAnnotation"),default:(0,i.validateOptionalType)("FlowType"),variance:(0,i.validateOptionalType)("Variance")}}),(0,i.default)("TypeParameterDeclaration",{aliases:["Flow"],visitor:["params"],fields:{params:(0,i.validate)((0,i.arrayOfType)("TypeParameter"))}}),(0,i.default)("TypeParameterInstantiation",{aliases:["Flow"],visitor:["params"],fields:{params:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),(0,i.default)("UnionTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),(0,i.default)("Variance",{aliases:["Flow"],builder:["kind"],fields:{kind:(0,i.validate)((0,i.assertOneOf)("minus","plus"))}}),(0,i.default)("VoidTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,i.validateType)("Identifier"),body:(0,i.validateType)(["EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody"])}}),(0,i.default)("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicit:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)("EnumBooleanMember")}}),(0,i.default)("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicit:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)("EnumNumberMember")}}),(0,i.default)("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicit:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)(["EnumStringMember","EnumDefaultedMember"])}}),(0,i.default)("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,i.validateArrayOfType)("EnumDefaultedMember")}}),(0,i.default)("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("BooleanLiteral")}}),(0,i.default)("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("NumericLiteral")}}),(0,i.default)("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("StringLiteral")}}),(0,i.default)("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,i.validateType)("Identifier")}})},9829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return s.VISITOR_KEYS}}),Object.defineProperty(t,"ALIAS_KEYS",{enumerable:!0,get:function(){return s.ALIAS_KEYS}}),Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return s.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(t,"NODE_FIELDS",{enumerable:!0,get:function(){return s.NODE_FIELDS}}),Object.defineProperty(t,"BUILDER_KEYS",{enumerable:!0,get:function(){return s.BUILDER_KEYS}}),Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return s.DEPRECATED_KEYS}}),Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return s.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(t,"PLACEHOLDERS",{enumerable:!0,get:function(){return a.PLACEHOLDERS}}),Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return a.PLACEHOLDERS_ALIAS}}),Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return a.PLACEHOLDERS_FLIPPED_ALIAS}}),t.TYPES=void 0;var i,n=(i=r(1138))&&i.__esModule?i:{default:i};r(4613),r(3081),r(765),r(9710),r(5675),r(4544);var s=r(6343),a=r(1093);(0,n.default)(s.VISITOR_KEYS),(0,n.default)(s.ALIAS_KEYS),(0,n.default)(s.FLIPPED_ALIAS_KEYS),(0,n.default)(s.NODE_FIELDS),(0,n.default)(s.BUILDER_KEYS),(0,n.default)(s.DEPRECATED_KEYS),(0,n.default)(a.PLACEHOLDERS_ALIAS),(0,n.default)(a.PLACEHOLDERS_FLIPPED_ALIAS);const o=Object.keys(s.VISITOR_KEYS).concat(Object.keys(s.FLIPPED_ALIAS_KEYS)).concat(Object.keys(s.DEPRECATED_KEYS));t.TYPES=o},765:(e,t,r)=>{"use strict";var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(6343));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}(0,i.default)("JSXAttribute",{visitor:["name","value"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,i.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,i.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),(0,i.default)("JSXClosingElement",{visitor:["name"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,i.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),(0,i.default)("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["JSX","Immutable","Expression"],fields:{openingElement:{validate:(0,i.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,i.assertNodeType)("JSXClosingElement")},children:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))},selfClosing:{validate:(0,i.assertValueType)("boolean"),optional:!0}}}),(0,i.default)("JSXEmptyExpression",{aliases:["JSX"]}),(0,i.default)("JSXExpressionContainer",{visitor:["expression"],aliases:["JSX","Immutable"],fields:{expression:{validate:(0,i.assertNodeType)("Expression","JSXEmptyExpression")}}}),(0,i.default)("JSXSpreadChild",{visitor:["expression"],aliases:["JSX","Immutable"],fields:{expression:{validate:(0,i.assertNodeType)("Expression")}}}),(0,i.default)("JSXIdentifier",{builder:["name"],aliases:["JSX"],fields:{name:{validate:(0,i.assertValueType)("string")}}}),(0,i.default)("JSXMemberExpression",{visitor:["object","property"],aliases:["JSX"],fields:{object:{validate:(0,i.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,i.assertNodeType)("JSXIdentifier")}}}),(0,i.default)("JSXNamespacedName",{visitor:["namespace","name"],aliases:["JSX"],fields:{namespace:{validate:(0,i.assertNodeType)("JSXIdentifier")},name:{validate:(0,i.assertNodeType)("JSXIdentifier")}}}),(0,i.default)("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,i.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("JSXAttribute","JSXSpreadAttribute")))},typeParameters:{validate:(0,i.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),(0,i.default)("JSXSpreadAttribute",{visitor:["argument"],aliases:["JSX"],fields:{argument:{validate:(0,i.assertNodeType)("Expression")}}}),(0,i.default)("JSXText",{aliases:["JSX","Immutable"],builder:["value"],fields:{value:{validate:(0,i.assertValueType)("string")}}}),(0,i.default)("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["JSX","Immutable","Expression"],fields:{openingFragment:{validate:(0,i.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,i.assertNodeType)("JSXClosingFragment")},children:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}}),(0,i.default)("JSXOpeningFragment",{aliases:["JSX","Immutable"]}),(0,i.default)("JSXClosingFragment",{aliases:["JSX","Immutable"]})},9710:(e,t,r)=>{"use strict";var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(6343)),n=r(1093);function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}(0,i.default)("Noop",{visitor:[]}),(0,i.default)("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:(0,i.assertNodeType)("Identifier")},expectedNode:{validate:(0,i.assertOneOf)(...n.PLACEHOLDERS)}}}),(0,i.default)("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,i.assertValueType)("string")}}})},1093:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PLACEHOLDERS_FLIPPED_ALIAS=t.PLACEHOLDERS_ALIAS=t.PLACEHOLDERS=void 0;var i=r(6343);const n=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"];t.PLACEHOLDERS=n;const s={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};t.PLACEHOLDERS_ALIAS=s;for(const e of n){const t=i.ALIAS_KEYS[e];(null==t?void 0:t.length)&&(s[e]=t)}const a={};t.PLACEHOLDERS_FLIPPED_ALIAS=a,Object.keys(s).forEach((e=>{s[e].forEach((t=>{Object.hasOwnProperty.call(a,t)||(a[t]=[]),a[t].push(e)}))}))},4544:(e,t,r)=>{"use strict";var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(6343)),n=r(4613);function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}const s=(0,i.assertValueType)("boolean"),a={returnType:{validate:(0,i.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,i.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}};(0,i.default)("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,i.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,i.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,i.assertNodeType)("Identifier","AssignmentPattern")}}}),(0,i.default)("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},n.functionDeclarationCommon,a)}),(0,i.default)("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},n.classMethodOrDeclareMethodCommon,a)}),(0,i.default)("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,i.validateType)("TSEntityName"),right:(0,i.validateType)("Identifier")}});const o={typeParameters:(0,i.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,i.validateArrayOfType)(["Identifier","RestElement"]),typeAnnotation:(0,i.validateOptionalType)("TSTypeAnnotation")},l={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:o};(0,i.default)("TSCallSignatureDeclaration",l),(0,i.default)("TSConstructSignatureDeclaration",l);const c={key:(0,i.validateType)("Expression"),computed:(0,i.validate)(s),optional:(0,i.validateOptional)(s)};(0,i.default)("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation","initializer"],fields:Object.assign({},c,{readonly:(0,i.validateOptional)(s),typeAnnotation:(0,i.validateOptionalType)("TSTypeAnnotation"),initializer:(0,i.validateOptionalType)("Expression")})}),(0,i.default)("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},o,c)}),(0,i.default)("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,i.validateOptional)(s),parameters:(0,i.validateArrayOfType)("Identifier"),typeAnnotation:(0,i.validateOptionalType)("TSTypeAnnotation")}});const u=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const e of u)(0,i.default)(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});(0,i.default)("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const p={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"],fields:o};(0,i.default)("TSFunctionType",p),(0,i.default)("TSConstructorType",p),(0,i.default)("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,i.validateType)("TSEntityName"),typeParameters:(0,i.validateOptionalType)("TSTypeParameterInstantiation")}}),(0,i.default)("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,i.validateType)(["Identifier","TSThisType"]),typeAnnotation:(0,i.validateOptionalType)("TSTypeAnnotation"),asserts:(0,i.validateOptional)(s)}}),(0,i.default)("TSTypeQuery",{aliases:["TSType"],visitor:["exprName"],fields:{exprName:(0,i.validateType)(["TSEntityName","TSImportType"])}}),(0,i.default)("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,i.validateArrayOfType)("TSTypeElement")}}),(0,i.default)("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,i.validateType)("TSType")}}),(0,i.default)("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,i.validateArrayOfType)(["TSType","TSNamedTupleMember"])}}),(0,i.default)("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,i.validateType)("Identifier"),optional:{validate:s,default:!1},elementType:(0,i.validateType)("TSType")}});const d={aliases:["TSType"],visitor:["types"],fields:{types:(0,i.validateArrayOfType)("TSType")}};(0,i.default)("TSUnionType",d),(0,i.default)("TSIntersectionType",d),(0,i.default)("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,i.validateType)("TSType"),extendsType:(0,i.validateType)("TSType"),trueType:(0,i.validateType)("TSType"),falseType:(0,i.validateType)("TSType")}}),(0,i.default)("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,i.validateType)("TSTypeParameter")}}),(0,i.default)("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0,i.validate)((0,i.assertValueType)("string")),typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,i.validateType)("TSType"),indexType:(0,i.validateType)("TSType")}}),(0,i.default)("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","typeAnnotation","nameType"],fields:{readonly:(0,i.validateOptional)(s),typeParameter:(0,i.validateType)("TSTypeParameter"),optional:(0,i.validateOptional)(s),typeAnnotation:(0,i.validateOptionalType)("TSType"),nameType:(0,i.validateOptionalType)("TSType")}}),(0,i.default)("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:(0,i.validateType)(["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral"])}}),(0,i.default)("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,i.validateType)("TSEntityName"),typeParameters:(0,i.validateOptionalType)("TSTypeParameterInstantiation")}}),(0,i.default)("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,i.validateOptional)(s),id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,i.validateOptional)((0,i.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,i.validateType)("TSInterfaceBody")}}),(0,i.default)("TSInterfaceBody",{visitor:["body"],fields:{body:(0,i.validateArrayOfType)("TSTypeElement")}}),(0,i.default)("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,i.validateOptional)(s),id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSAsExpression",{aliases:["Expression"],visitor:["expression","typeAnnotation"],fields:{expression:(0,i.validateType)("Expression"),typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSTypeAssertion",{aliases:["Expression"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,i.validateType)("TSType"),expression:(0,i.validateType)("Expression")}}),(0,i.default)("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,i.validateOptional)(s),const:(0,i.validateOptional)(s),id:(0,i.validateType)("Identifier"),members:(0,i.validateArrayOfType)("TSEnumMember"),initializer:(0,i.validateOptionalType)("Expression")}}),(0,i.default)("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,i.validateType)(["Identifier","StringLiteral"]),initializer:(0,i.validateOptionalType)("Expression")}}),(0,i.default)("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:(0,i.validateOptional)(s),global:(0,i.validateOptional)(s),id:(0,i.validateType)(["Identifier","StringLiteral"]),body:(0,i.validateType)(["TSModuleBlock","TSModuleDeclaration"])}}),(0,i.default)("TSModuleBlock",{aliases:["Scopable","Block","BlockParent"],visitor:["body"],fields:{body:(0,i.validateArrayOfType)("Statement")}}),(0,i.default)("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:(0,i.validateType)("StringLiteral"),qualifier:(0,i.validateOptionalType)("TSEntityName"),typeParameters:(0,i.validateOptionalType)("TSTypeParameterInstantiation")}}),(0,i.default)("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:(0,i.validate)(s),id:(0,i.validateType)("Identifier"),moduleReference:(0,i.validateType)(["TSEntityName","TSExternalModuleReference"])}}),(0,i.default)("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,i.validateType)("StringLiteral")}}),(0,i.default)("TSNonNullExpression",{aliases:["Expression"],visitor:["expression"],fields:{expression:(0,i.validateType)("Expression")}}),(0,i.default)("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,i.validateType)("Expression")}}),(0,i.default)("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,i.validateType)("Identifier")}}),(0,i.default)("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,i.assertNodeType)("TSType")}}}),(0,i.default)("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("TSType")))}}}),(0,i.default)("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("TSTypeParameter")))}}}),(0,i.default)("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,i.assertValueType)("string")},constraint:{validate:(0,i.assertNodeType)("TSType"),optional:!0},default:{validate:(0,i.assertNodeType)("TSType"),optional:!0}}})},6343:(e,t,r)=>{"use strict";var i=r(397);Object.defineProperty(t,"__esModule",{value:!0}),t.validate=validate,t.typeIs=typeIs,t.validateType=function(e){return validate(typeIs(e))},t.validateOptional=function(e){return{validate:e,optional:!0}},t.validateOptionalType=function(e){return{validate:typeIs(e),optional:!0}},t.arrayOf=arrayOf,t.arrayOfType=arrayOfType,t.validateArrayOfType=function(e){return validate(arrayOfType(e))},t.assertEach=assertEach,t.assertOneOf=function(...e){function validate(t,r,i){if(e.indexOf(i)<0)throw new TypeError(`Property ${r} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(i)}`)}return validate.oneOf=e,validate},t.assertNodeType=assertNodeType,t.assertNodeOrValueType=function(...e){function validate(t,r,i){for(const n of e)if(getType(i)===n||(0,s.default)(n,i))return void(0,a.validateChild)(t,r,i);throw new TypeError(`Property ${r} of ${t.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(null==i?void 0:i.type)}`)}return validate.oneOfNodeOrValueTypes=e,validate},t.assertValueType=assertValueType,t.assertShape=function(e){function validate(t,r,i){const n=[];for(const r of Object.keys(e))try{(0,a.validateField)(t,r,i[r],e[r])}catch(e){if(e instanceof TypeError){n.push(e.message);continue}throw e}if(n.length)throw new TypeError(`Property ${r} of ${t.type} expected to have the following:\\n${n.join("\\n")}`)}return validate.shapeOf=e,validate},t.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}`)}},t.chain=chain,t.default=function(e,t={}){const r=t.inherits&&y[t.inherits]||{};let i=t.fields;if(!i&&(i={},r.fields)){const e=Object.getOwnPropertyNames(r.fields);for(const t of e){const e=r.fields[t];i[t]={default:e.default,optional:e.optional,validate:e.validate}}}const n=t.visitor||r.visitor||[],s=t.aliases||r.aliases||[],a=t.builder||r.builder||t.visitor||[];for(const r of Object.keys(t))if(-1===f.indexOf(r))throw new Error(`Unknown type option "${r}" on ${e}`);t.deprecatedAlias&&(d[t.deprecatedAlias]=e);for(const e of n.concat(a))i[e]=i[e]||{};for(const t of Object.keys(i)){const r=i[t];void 0!==r.default&&-1===a.indexOf(t)&&(r.optional=!0),void 0===r.default?r.default=null:r.validate||null==r.default||(r.validate=assertValueType(getType(r.default)));for(const i of Object.keys(r))if(-1===m.indexOf(i))throw new Error(`Unknown field key "${i}" on ${e}.${t}`)}o[e]=t.visitor=n,p[e]=t.builder=a,u[e]=t.fields=i,l[e]=t.aliases=s,s.forEach((t=>{c[t]=c[t]||[],c[t].push(e)})),t.validate&&(h[e]=t.validate);y[e]=t},t.NODE_PARENT_VALIDATIONS=t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.NODE_FIELDS=t.FLIPPED_ALIAS_KEYS=t.ALIAS_KEYS=t.VISITOR_KEYS=void 0;var n,s=(n=r(6593))&&n.__esModule?n:{default:n},a=r(9623);const o={};t.VISITOR_KEYS=o;const l={};t.ALIAS_KEYS=l;const c={};t.FLIPPED_ALIAS_KEYS=c;const u={};t.NODE_FIELDS=u;const p={};t.BUILDER_KEYS=p;const d={};t.DEPRECATED_KEYS=d;const h={};function getType(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function validate(e){return{validate:e}}function typeIs(e){return"string"==typeof e?assertNodeType(e):assertNodeType(...e)}function arrayOf(e){return chain(assertValueType("array"),assertEach(e))}function arrayOfType(e){return arrayOf(typeIs(e))}function assertEach(e){function validator(t,r,n){if(Array.isArray(n))for(let s=0;s<n.length;s++){const o=`${r}[${s}]`,l=n[s];e(t,o,l),i.env.BABEL_TYPES_8_BREAKING&&(0,a.validateChild)(t,o,l)}}return validator.each=e,validator}function assertNodeType(...e){function validate(t,r,i){for(const n of e)if((0,s.default)(n,i))return void(0,a.validateChild)(t,r,i);throw new TypeError(`Property ${r} of ${t.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(null==i?void 0:i.type)}`)}return validate.oneOfNodeTypes=e,validate}function assertValueType(e){function validate(t,r,i){if(!(getType(i)===e))throw new TypeError(`Property ${r} expected type of ${e} but got ${getType(i)}`)}return validate.type=e,validate}function chain(...e){function validate(...t){for(const r of e)r(...t)}return validate.chainOf=e,validate}t.NODE_PARENT_VALIDATIONS=h;const f=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],m=["default","optional","validate"];const y={}},1710:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={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};Object.defineProperty(t,"assertNode",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"createFlowUnionType",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"createTSUnionType",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"cloneNode",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"cloneWithoutLoc",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"addComment",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"addComments",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"inheritInnerComments",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"inheritLeadingComments",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"inheritsComments",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"inheritTrailingComments",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"removeComments",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"ensureBlock",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"toSequenceExpression",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"appendToMemberExpression",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(t,"prependToMemberExpression",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"removeProperties",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(t,"removePropertiesDeep",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"traverseFast",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"isPlaceholderType",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(t,"isValidES3Identifier",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(t,"matchesPattern",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:!0,get:function(){return he.default}}),t.react=void 0;var n=_interopRequireDefault(r(5631)),s=_interopRequireDefault(r(5124)),a=_interopRequireDefault(r(4986)),o=_interopRequireDefault(r(7010)),l=r(939);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=_interopRequireDefault(r(5209)),u=_interopRequireDefault(r(6535)),p=_interopRequireDefault(r(7329)),d=r(3894);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=_interopRequireDefault(r(539)),f=_interopRequireDefault(r(5509)),m=_interopRequireDefault(r(2107)),y=_interopRequireDefault(r(2634)),T=_interopRequireDefault(r(1225)),g=_interopRequireDefault(r(8184)),b=_interopRequireDefault(r(2243)),S=_interopRequireDefault(r(440)),x=_interopRequireDefault(r(9622)),P=_interopRequireDefault(r(6168)),v=_interopRequireDefault(r(9868)),A=_interopRequireDefault(r(4670)),w=r(1798);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var I=r(9660);Object.keys(I).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===I[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return I[e]}}))}));var C=_interopRequireDefault(r(4157)),O=_interopRequireDefault(r(8681)),N=_interopRequireDefault(r(130)),_=_interopRequireDefault(r(940)),k=_interopRequireDefault(r(2858)),D=_interopRequireDefault(r(5450)),L=_interopRequireDefault(r(8100)),M=_interopRequireDefault(r(4914)),B=_interopRequireDefault(r(2469)),j=_interopRequireDefault(r(8626)),R=r(9829);Object.keys(R).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===R[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return R[e]}}))}));var F=_interopRequireDefault(r(5854)),U=_interopRequireDefault(r(9146)),K=_interopRequireDefault(r(1274)),q=_interopRequireDefault(r(1390)),V=_interopRequireDefault(r(4888)),W=_interopRequireDefault(r(4485)),Y=_interopRequireDefault(r(3407)),X=_interopRequireDefault(r(369)),J=_interopRequireDefault(r(3877)),H=_interopRequireDefault(r(5138)),G=_interopRequireDefault(r(4951)),$=_interopRequireDefault(r(6593)),z=_interopRequireDefault(r(8979)),Q=_interopRequireDefault(r(4920)),Z=_interopRequireDefault(r(738)),ee=_interopRequireDefault(r(9954)),te=_interopRequireDefault(r(1784)),re=_interopRequireDefault(r(5082)),ie=_interopRequireDefault(r(9186)),ne=_interopRequireDefault(r(5794)),se=_interopRequireDefault(r(9057)),ae=_interopRequireDefault(r(9935)),oe=_interopRequireDefault(r(9530)),le=_interopRequireDefault(r(6256)),ce=_interopRequireDefault(r(380)),ue=_interopRequireDefault(r(1330)),pe=_interopRequireDefault(r(6636)),de=_interopRequireDefault(r(9623)),he=_interopRequireDefault(r(3972)),fe=r(8037);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}Object.keys(fe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===fe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return fe[e]}}))}));const me={isReactComponent:n.default,isCompatTag:s.default,buildChildren:a.default};t.react=me},5854:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r=!1){return e.object=(0,i.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e};var i=r(3894)},4485:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function removeTypeDuplicates(e){const t={},r={},n=[],s=[];for(let a=0;a<e.length;a++){const o=e[a];if(o&&!(s.indexOf(o)>=0)){if((0,i.isAnyTypeAnnotation)(o))return[o];if((0,i.isFlowBaseAnnotation)(o))r[o.type]=o;else if((0,i.isUnionTypeAnnotation)(o))n.indexOf(o.types)<0&&(e=e.concat(o.types),n.push(o.types));else if((0,i.isGenericTypeAnnotation)(o)){const e=o.id.name;if(t[e]){let r=t[e];r.typeParameters?o.typeParameters&&(r.typeParameters.params=removeTypeDuplicates(r.typeParameters.params.concat(o.typeParameters.params))):r=o.typeParameters}else t[e]=o}else s.push(o)}}for(const e of Object.keys(r))s.push(r[e]);for(const e of Object.keys(t))s.push(t[e]);return s};var i=r(8037)},9146:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e||!t)return e;for(const r of n.INHERIT_KEYS.optional)null==e[r]&&(e[r]=t[r]);for(const r of Object.keys(t))"_"===r[0]&&"__clone"!==r&&(e[r]=t[r]);for(const r of n.INHERIT_KEYS.force)e[r]=t[r];return(0,s.default)(e,t),e};var i,n=r(9660),s=(i=r(6168))&&i.__esModule?i:{default:i}},1274:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return e.object=(0,i.memberExpression)(t,e.object),e};var i=r(3894)},1390:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){const r=t.preserveComments?n:s;for(const t of r)null!=e[t]&&(e[t]=void 0);for(const t of Object.keys(e))"_"===t[0]&&null!=e[t]&&(e[t]=void 0);const i=Object.getOwnPropertySymbols(e);for(const t of i)e[t]=null};var i=r(9660);const n=["tokens","start","end","loc","raw","rawValue"],s=i.COMMENT_KEYS.concat(["comments"]).concat(n)},4888:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,i.default)(e,n.default,t),e};var i=_interopRequireDefault(r(5138)),n=_interopRequireDefault(r(1390));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},2493:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t={},r={},n=[],s=[];for(let t=0;t<e.length;t++){const a=e[t];if(a&&!(s.indexOf(a)>=0)){if((0,i.isTSAnyKeyword)(a.type))return[a];(0,i.isTSBaseType)(a)?r[a.type]=a:(0,i.isTSUnionType)(a)?n.indexOf(a.types)<0&&(e=e.concat(a.types),n.push(a.types)):s.push(a)}}for(const e of Object.keys(r))s.push(r[e]);for(const e of Object.keys(t))s.push(t[e]);return s};var i=r(8037)},3407:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=getBindingIdentifiers;var i=r(8037);function getBindingIdentifiers(e,t,r){let n=[].concat(e);const s=Object.create(null);for(;n.length;){const e=n.shift();if(!e)continue;const a=getBindingIdentifiers.keys[e.type];if((0,i.isIdentifier)(e))if(t){(s[e.name]=s[e.name]||[]).push(e)}else s[e.name]=e;else if((0,i.isExportDeclaration)(e))(0,i.isDeclaration)(e.declaration)&&n.push(e.declaration);else{if(r){if((0,i.isFunctionDeclaration)(e)){n.push(e.id);continue}if((0,i.isFunctionExpression)(e))continue}if(a)for(let t=0;t<a.length;t++){const r=a[t];e[r]&&(n=n.concat(e[r]))}}}return s}getBindingIdentifiers.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"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]}},369:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e,t,!0)};var i,n=(i=r(3407))&&i.__esModule?i:{default:i}},3877:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){"function"==typeof t&&(t={enter:t});const{enter:i,exit:n}=t;traverseSimpleImpl(e,i,n,r,[])};var i=r(9829);function traverseSimpleImpl(e,t,r,n,s){const a=i.VISITOR_KEYS[e.type];if(a){t&&t(e,s,n);for(const i of a){const a=e[i];if(Array.isArray(a))for(let o=0;o<a.length;o++){const l=a[o];l&&(s.push({node:e,key:i,index:o}),traverseSimpleImpl(l,t,r,n,s),s.pop())}else a&&(s.push({node:e,key:i}),traverseSimpleImpl(a,t,r,n,s),s.pop())}r&&r(e,s,n)}}},5138:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function traverseFast(e,t,r){if(!e)return;const n=i.VISITOR_KEYS[e.type];if(!n)return;t(e,r=r||{});for(const i of n){const n=e[i];if(Array.isArray(n))for(const e of n)traverseFast(e,t,r);else traverseFast(n,t,r)}};var i=r(9829)},3450:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))))}},586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=e.value.split(/\\r\\n|\\n|\\r/);let n=0;for(let e=0;e<r.length;e++)r[e].match(/[^ \\t]/)&&(n=e);let s="";for(let e=0;e<r.length;e++){const t=r[e],i=0===e,a=e===r.length-1,o=e===n;let l=t.replace(/\\t/g," ");i||(l=l.replace(/^[ ]+/,"")),a||(l=l.replace(/[ ]+$/,"")),l&&(o||(l+=" "),s+=l)}s&&t.push((0,i.stringLiteral)(s))};var i=r(3894)},4951:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=Object.keys(t);for(const i of r)if(e[i]!==t[i])return!1;return!0}},3972:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=e.split(".");return e=>(0,n.default)(e,r,t)};var i,n=(i=r(6636))&&i.__esModule?i:{default:i}},8037:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayExpression=function(e,t){if(!e)return!1;if("ArrayExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isAssignmentExpression=function(e,t){if(!e)return!1;if("AssignmentExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isBinaryExpression=function(e,t){if(!e)return!1;if("BinaryExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isInterpreterDirective=function(e,t){if(!e)return!1;if("InterpreterDirective"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDirective=function(e,t){if(!e)return!1;if("Directive"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDirectiveLiteral=function(e,t){if(!e)return!1;if("DirectiveLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isBlockStatement=function(e,t){if(!e)return!1;if("BlockStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isBreakStatement=function(e,t){if(!e)return!1;if("BreakStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isCallExpression=function(e,t){if(!e)return!1;if("CallExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isCatchClause=function(e,t){if(!e)return!1;if("CatchClause"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isConditionalExpression=function(e,t){if(!e)return!1;if("ConditionalExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isContinueStatement=function(e,t){if(!e)return!1;if("ContinueStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDebuggerStatement=function(e,t){if(!e)return!1;if("DebuggerStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDoWhileStatement=function(e,t){if(!e)return!1;if("DoWhileStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isEmptyStatement=function(e,t){if(!e)return!1;if("EmptyStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isExpressionStatement=function(e,t){if(!e)return!1;if("ExpressionStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isFile=function(e,t){if(!e)return!1;if("File"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isForInStatement=function(e,t){if(!e)return!1;if("ForInStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isForStatement=function(e,t){if(!e)return!1;if("ForStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isFunctionDeclaration=function(e,t){if(!e)return!1;if("FunctionDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isFunctionExpression=function(e,t){if(!e)return!1;if("FunctionExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isIdentifier=function(e,t){if(!e)return!1;if("Identifier"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isIfStatement=function(e,t){if(!e)return!1;if("IfStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isLabeledStatement=function(e,t){if(!e)return!1;if("LabeledStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isStringLiteral=function(e,t){if(!e)return!1;if("StringLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isNumericLiteral=function(e,t){if(!e)return!1;if("NumericLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isNullLiteral=function(e,t){if(!e)return!1;if("NullLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isBooleanLiteral=function(e,t){if(!e)return!1;if("BooleanLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isRegExpLiteral=function(e,t){if(!e)return!1;if("RegExpLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isLogicalExpression=function(e,t){if(!e)return!1;if("LogicalExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isMemberExpression=function(e,t){if(!e)return!1;if("MemberExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isNewExpression=function(e,t){if(!e)return!1;if("NewExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isProgram=function(e,t){if(!e)return!1;if("Program"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isObjectExpression=function(e,t){if(!e)return!1;if("ObjectExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isObjectMethod=function(e,t){if(!e)return!1;if("ObjectMethod"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isObjectProperty=function(e,t){if(!e)return!1;if("ObjectProperty"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isRestElement=function(e,t){if(!e)return!1;if("RestElement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isReturnStatement=function(e,t){if(!e)return!1;if("ReturnStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isSequenceExpression=function(e,t){if(!e)return!1;if("SequenceExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isParenthesizedExpression=function(e,t){if(!e)return!1;if("ParenthesizedExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isSwitchCase=function(e,t){if(!e)return!1;if("SwitchCase"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isSwitchStatement=function(e,t){if(!e)return!1;if("SwitchStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isThisExpression=function(e,t){if(!e)return!1;if("ThisExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isThrowStatement=function(e,t){if(!e)return!1;if("ThrowStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTryStatement=function(e,t){if(!e)return!1;if("TryStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isUnaryExpression=function(e,t){if(!e)return!1;if("UnaryExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isUpdateExpression=function(e,t){if(!e)return!1;if("UpdateExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isVariableDeclaration=function(e,t){if(!e)return!1;if("VariableDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isVariableDeclarator=function(e,t){if(!e)return!1;if("VariableDeclarator"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isWhileStatement=function(e,t){if(!e)return!1;if("WhileStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isWithStatement=function(e,t){if(!e)return!1;if("WithStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isAssignmentPattern=function(e,t){if(!e)return!1;if("AssignmentPattern"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isArrayPattern=function(e,t){if(!e)return!1;if("ArrayPattern"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isArrowFunctionExpression=function(e,t){if(!e)return!1;if("ArrowFunctionExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isClassBody=function(e,t){if(!e)return!1;if("ClassBody"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isClassExpression=function(e,t){if(!e)return!1;if("ClassExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isClassDeclaration=function(e,t){if(!e)return!1;if("ClassDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isExportAllDeclaration=function(e,t){if(!e)return!1;if("ExportAllDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isExportDefaultDeclaration=function(e,t){if(!e)return!1;if("ExportDefaultDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isExportNamedDeclaration=function(e,t){if(!e)return!1;if("ExportNamedDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isExportSpecifier=function(e,t){if(!e)return!1;if("ExportSpecifier"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isForOfStatement=function(e,t){if(!e)return!1;if("ForOfStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isImportDeclaration=function(e,t){if(!e)return!1;if("ImportDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isImportDefaultSpecifier=function(e,t){if(!e)return!1;if("ImportDefaultSpecifier"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isImportNamespaceSpecifier=function(e,t){if(!e)return!1;if("ImportNamespaceSpecifier"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isImportSpecifier=function(e,t){if(!e)return!1;if("ImportSpecifier"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isMetaProperty=function(e,t){if(!e)return!1;if("MetaProperty"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isClassMethod=function(e,t){if(!e)return!1;if("ClassMethod"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isObjectPattern=function(e,t){if(!e)return!1;if("ObjectPattern"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isSpreadElement=function(e,t){if(!e)return!1;if("SpreadElement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isSuper=function(e,t){if(!e)return!1;if("Super"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTaggedTemplateExpression=function(e,t){if(!e)return!1;if("TaggedTemplateExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTemplateElement=function(e,t){if(!e)return!1;if("TemplateElement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTemplateLiteral=function(e,t){if(!e)return!1;if("TemplateLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isYieldExpression=function(e,t){if(!e)return!1;if("YieldExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isAwaitExpression=function(e,t){if(!e)return!1;if("AwaitExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isImport=function(e,t){if(!e)return!1;if("Import"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isBigIntLiteral=function(e,t){if(!e)return!1;if("BigIntLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isExportNamespaceSpecifier=function(e,t){if(!e)return!1;if("ExportNamespaceSpecifier"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isOptionalMemberExpression=function(e,t){if(!e)return!1;if("OptionalMemberExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isOptionalCallExpression=function(e,t){if(!e)return!1;if("OptionalCallExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isAnyTypeAnnotation=function(e,t){if(!e)return!1;if("AnyTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isArrayTypeAnnotation=function(e,t){if(!e)return!1;if("ArrayTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isBooleanTypeAnnotation=function(e,t){if(!e)return!1;if("BooleanTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isBooleanLiteralTypeAnnotation=function(e,t){if(!e)return!1;if("BooleanLiteralTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isNullLiteralTypeAnnotation=function(e,t){if(!e)return!1;if("NullLiteralTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isClassImplements=function(e,t){if(!e)return!1;if("ClassImplements"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclareClass=function(e,t){if(!e)return!1;if("DeclareClass"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclareFunction=function(e,t){if(!e)return!1;if("DeclareFunction"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclareInterface=function(e,t){if(!e)return!1;if("DeclareInterface"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclareModule=function(e,t){if(!e)return!1;if("DeclareModule"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclareModuleExports=function(e,t){if(!e)return!1;if("DeclareModuleExports"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclareTypeAlias=function(e,t){if(!e)return!1;if("DeclareTypeAlias"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclareOpaqueType=function(e,t){if(!e)return!1;if("DeclareOpaqueType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclareVariable=function(e,t){if(!e)return!1;if("DeclareVariable"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclareExportDeclaration=function(e,t){if(!e)return!1;if("DeclareExportDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclareExportAllDeclaration=function(e,t){if(!e)return!1;if("DeclareExportAllDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclaredPredicate=function(e,t){if(!e)return!1;if("DeclaredPredicate"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isExistsTypeAnnotation=function(e,t){if(!e)return!1;if("ExistsTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isFunctionTypeAnnotation=function(e,t){if(!e)return!1;if("FunctionTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isFunctionTypeParam=function(e,t){if(!e)return!1;if("FunctionTypeParam"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isGenericTypeAnnotation=function(e,t){if(!e)return!1;if("GenericTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isInferredPredicate=function(e,t){if(!e)return!1;if("InferredPredicate"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isInterfaceExtends=function(e,t){if(!e)return!1;if("InterfaceExtends"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isInterfaceDeclaration=function(e,t){if(!e)return!1;if("InterfaceDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isInterfaceTypeAnnotation=function(e,t){if(!e)return!1;if("InterfaceTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isIntersectionTypeAnnotation=function(e,t){if(!e)return!1;if("IntersectionTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isMixedTypeAnnotation=function(e,t){if(!e)return!1;if("MixedTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isEmptyTypeAnnotation=function(e,t){if(!e)return!1;if("EmptyTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isNullableTypeAnnotation=function(e,t){if(!e)return!1;if("NullableTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isNumberLiteralTypeAnnotation=function(e,t){if(!e)return!1;if("NumberLiteralTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isNumberTypeAnnotation=function(e,t){if(!e)return!1;if("NumberTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isObjectTypeAnnotation=function(e,t){if(!e)return!1;if("ObjectTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isObjectTypeInternalSlot=function(e,t){if(!e)return!1;if("ObjectTypeInternalSlot"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isObjectTypeCallProperty=function(e,t){if(!e)return!1;if("ObjectTypeCallProperty"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isObjectTypeIndexer=function(e,t){if(!e)return!1;if("ObjectTypeIndexer"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isObjectTypeProperty=function(e,t){if(!e)return!1;if("ObjectTypeProperty"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isObjectTypeSpreadProperty=function(e,t){if(!e)return!1;if("ObjectTypeSpreadProperty"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isOpaqueType=function(e,t){if(!e)return!1;if("OpaqueType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isQualifiedTypeIdentifier=function(e,t){if(!e)return!1;if("QualifiedTypeIdentifier"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isStringLiteralTypeAnnotation=function(e,t){if(!e)return!1;if("StringLiteralTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isStringTypeAnnotation=function(e,t){if(!e)return!1;if("StringTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isSymbolTypeAnnotation=function(e,t){if(!e)return!1;if("SymbolTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isThisTypeAnnotation=function(e,t){if(!e)return!1;if("ThisTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTupleTypeAnnotation=function(e,t){if(!e)return!1;if("TupleTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTypeofTypeAnnotation=function(e,t){if(!e)return!1;if("TypeofTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTypeAlias=function(e,t){if(!e)return!1;if("TypeAlias"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTypeAnnotation=function(e,t){if(!e)return!1;if("TypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTypeCastExpression=function(e,t){if(!e)return!1;if("TypeCastExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTypeParameter=function(e,t){if(!e)return!1;if("TypeParameter"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTypeParameterDeclaration=function(e,t){if(!e)return!1;if("TypeParameterDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTypeParameterInstantiation=function(e,t){if(!e)return!1;if("TypeParameterInstantiation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isUnionTypeAnnotation=function(e,t){if(!e)return!1;if("UnionTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isVariance=function(e,t){if(!e)return!1;if("Variance"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isVoidTypeAnnotation=function(e,t){if(!e)return!1;if("VoidTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isEnumDeclaration=function(e,t){if(!e)return!1;if("EnumDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isEnumBooleanBody=function(e,t){if(!e)return!1;if("EnumBooleanBody"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isEnumNumberBody=function(e,t){if(!e)return!1;if("EnumNumberBody"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isEnumStringBody=function(e,t){if(!e)return!1;if("EnumStringBody"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isEnumSymbolBody=function(e,t){if(!e)return!1;if("EnumSymbolBody"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isEnumBooleanMember=function(e,t){if(!e)return!1;if("EnumBooleanMember"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isEnumNumberMember=function(e,t){if(!e)return!1;if("EnumNumberMember"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isEnumStringMember=function(e,t){if(!e)return!1;if("EnumStringMember"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isEnumDefaultedMember=function(e,t){if(!e)return!1;if("EnumDefaultedMember"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXAttribute=function(e,t){if(!e)return!1;if("JSXAttribute"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXClosingElement=function(e,t){if(!e)return!1;if("JSXClosingElement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXElement=function(e,t){if(!e)return!1;if("JSXElement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXEmptyExpression=function(e,t){if(!e)return!1;if("JSXEmptyExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXExpressionContainer=function(e,t){if(!e)return!1;if("JSXExpressionContainer"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXSpreadChild=function(e,t){if(!e)return!1;if("JSXSpreadChild"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXIdentifier=function(e,t){if(!e)return!1;if("JSXIdentifier"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXMemberExpression=function(e,t){if(!e)return!1;if("JSXMemberExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXNamespacedName=function(e,t){if(!e)return!1;if("JSXNamespacedName"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXOpeningElement=function(e,t){if(!e)return!1;if("JSXOpeningElement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXSpreadAttribute=function(e,t){if(!e)return!1;if("JSXSpreadAttribute"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXText=function(e,t){if(!e)return!1;if("JSXText"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXFragment=function(e,t){if(!e)return!1;if("JSXFragment"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXOpeningFragment=function(e,t){if(!e)return!1;if("JSXOpeningFragment"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXClosingFragment=function(e,t){if(!e)return!1;if("JSXClosingFragment"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isNoop=function(e,t){if(!e)return!1;if("Noop"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isPlaceholder=function(e,t){if(!e)return!1;if("Placeholder"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isV8IntrinsicIdentifier=function(e,t){if(!e)return!1;if("V8IntrinsicIdentifier"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isArgumentPlaceholder=function(e,t){if(!e)return!1;if("ArgumentPlaceholder"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isBindExpression=function(e,t){if(!e)return!1;if("BindExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isClassProperty=function(e,t){if(!e)return!1;if("ClassProperty"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isPipelineTopicExpression=function(e,t){if(!e)return!1;if("PipelineTopicExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isPipelineBareFunction=function(e,t){if(!e)return!1;if("PipelineBareFunction"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isPipelinePrimaryTopicReference=function(e,t){if(!e)return!1;if("PipelinePrimaryTopicReference"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isClassPrivateProperty=function(e,t){if(!e)return!1;if("ClassPrivateProperty"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isClassPrivateMethod=function(e,t){if(!e)return!1;if("ClassPrivateMethod"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isImportAttribute=function(e,t){if(!e)return!1;if("ImportAttribute"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDecorator=function(e,t){if(!e)return!1;if("Decorator"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDoExpression=function(e,t){if(!e)return!1;if("DoExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isExportDefaultSpecifier=function(e,t){if(!e)return!1;if("ExportDefaultSpecifier"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isPrivateName=function(e,t){if(!e)return!1;if("PrivateName"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isRecordExpression=function(e,t){if(!e)return!1;if("RecordExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTupleExpression=function(e,t){if(!e)return!1;if("TupleExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDecimalLiteral=function(e,t){if(!e)return!1;if("DecimalLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isStaticBlock=function(e,t){if(!e)return!1;if("StaticBlock"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSParameterProperty=function(e,t){if(!e)return!1;if("TSParameterProperty"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSDeclareFunction=function(e,t){if(!e)return!1;if("TSDeclareFunction"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSDeclareMethod=function(e,t){if(!e)return!1;if("TSDeclareMethod"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSQualifiedName=function(e,t){if(!e)return!1;if("TSQualifiedName"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSCallSignatureDeclaration=function(e,t){if(!e)return!1;if("TSCallSignatureDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSConstructSignatureDeclaration=function(e,t){if(!e)return!1;if("TSConstructSignatureDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSPropertySignature=function(e,t){if(!e)return!1;if("TSPropertySignature"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSMethodSignature=function(e,t){if(!e)return!1;if("TSMethodSignature"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSIndexSignature=function(e,t){if(!e)return!1;if("TSIndexSignature"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSAnyKeyword=function(e,t){if(!e)return!1;if("TSAnyKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSBooleanKeyword=function(e,t){if(!e)return!1;if("TSBooleanKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSBigIntKeyword=function(e,t){if(!e)return!1;if("TSBigIntKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSIntrinsicKeyword=function(e,t){if(!e)return!1;if("TSIntrinsicKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSNeverKeyword=function(e,t){if(!e)return!1;if("TSNeverKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSNullKeyword=function(e,t){if(!e)return!1;if("TSNullKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSNumberKeyword=function(e,t){if(!e)return!1;if("TSNumberKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSObjectKeyword=function(e,t){if(!e)return!1;if("TSObjectKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSStringKeyword=function(e,t){if(!e)return!1;if("TSStringKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSSymbolKeyword=function(e,t){if(!e)return!1;if("TSSymbolKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSUndefinedKeyword=function(e,t){if(!e)return!1;if("TSUndefinedKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSUnknownKeyword=function(e,t){if(!e)return!1;if("TSUnknownKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSVoidKeyword=function(e,t){if(!e)return!1;if("TSVoidKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSThisType=function(e,t){if(!e)return!1;if("TSThisType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSFunctionType=function(e,t){if(!e)return!1;if("TSFunctionType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSConstructorType=function(e,t){if(!e)return!1;if("TSConstructorType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypeReference=function(e,t){if(!e)return!1;if("TSTypeReference"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypePredicate=function(e,t){if(!e)return!1;if("TSTypePredicate"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypeQuery=function(e,t){if(!e)return!1;if("TSTypeQuery"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypeLiteral=function(e,t){if(!e)return!1;if("TSTypeLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSArrayType=function(e,t){if(!e)return!1;if("TSArrayType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTupleType=function(e,t){if(!e)return!1;if("TSTupleType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSOptionalType=function(e,t){if(!e)return!1;if("TSOptionalType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSRestType=function(e,t){if(!e)return!1;if("TSRestType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSNamedTupleMember=function(e,t){if(!e)return!1;if("TSNamedTupleMember"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSUnionType=function(e,t){if(!e)return!1;if("TSUnionType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSIntersectionType=function(e,t){if(!e)return!1;if("TSIntersectionType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSConditionalType=function(e,t){if(!e)return!1;if("TSConditionalType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSInferType=function(e,t){if(!e)return!1;if("TSInferType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSParenthesizedType=function(e,t){if(!e)return!1;if("TSParenthesizedType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypeOperator=function(e,t){if(!e)return!1;if("TSTypeOperator"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSIndexedAccessType=function(e,t){if(!e)return!1;if("TSIndexedAccessType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSMappedType=function(e,t){if(!e)return!1;if("TSMappedType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSLiteralType=function(e,t){if(!e)return!1;if("TSLiteralType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSExpressionWithTypeArguments=function(e,t){if(!e)return!1;if("TSExpressionWithTypeArguments"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSInterfaceDeclaration=function(e,t){if(!e)return!1;if("TSInterfaceDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSInterfaceBody=function(e,t){if(!e)return!1;if("TSInterfaceBody"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypeAliasDeclaration=function(e,t){if(!e)return!1;if("TSTypeAliasDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSAsExpression=function(e,t){if(!e)return!1;if("TSAsExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypeAssertion=function(e,t){if(!e)return!1;if("TSTypeAssertion"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSEnumDeclaration=function(e,t){if(!e)return!1;if("TSEnumDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSEnumMember=function(e,t){if(!e)return!1;if("TSEnumMember"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSModuleDeclaration=function(e,t){if(!e)return!1;if("TSModuleDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSModuleBlock=function(e,t){if(!e)return!1;if("TSModuleBlock"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSImportType=function(e,t){if(!e)return!1;if("TSImportType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSImportEqualsDeclaration=function(e,t){if(!e)return!1;if("TSImportEqualsDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSExternalModuleReference=function(e,t){if(!e)return!1;if("TSExternalModuleReference"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSNonNullExpression=function(e,t){if(!e)return!1;if("TSNonNullExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSExportAssignment=function(e,t){if(!e)return!1;if("TSExportAssignment"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSNamespaceExportDeclaration=function(e,t){if(!e)return!1;if("TSNamespaceExportDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypeAnnotation=function(e,t){if(!e)return!1;if("TSTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypeParameterInstantiation=function(e,t){if(!e)return!1;if("TSTypeParameterInstantiation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypeParameterDeclaration=function(e,t){if(!e)return!1;if("TSTypeParameterDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypeParameter=function(e,t){if(!e)return!1;if("TSTypeParameter"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isExpression=function(e,t){if(!e)return!1;const r=e.type;if("Expression"===r||"ArrayExpression"===r||"AssignmentExpression"===r||"BinaryExpression"===r||"CallExpression"===r||"ConditionalExpression"===r||"FunctionExpression"===r||"Identifier"===r||"StringLiteral"===r||"NumericLiteral"===r||"NullLiteral"===r||"BooleanLiteral"===r||"RegExpLiteral"===r||"LogicalExpression"===r||"MemberExpression"===r||"NewExpression"===r||"ObjectExpression"===r||"SequenceExpression"===r||"ParenthesizedExpression"===r||"ThisExpression"===r||"UnaryExpression"===r||"UpdateExpression"===r||"ArrowFunctionExpression"===r||"ClassExpression"===r||"MetaProperty"===r||"Super"===r||"TaggedTemplateExpression"===r||"TemplateLiteral"===r||"YieldExpression"===r||"AwaitExpression"===r||"Import"===r||"BigIntLiteral"===r||"OptionalMemberExpression"===r||"OptionalCallExpression"===r||"TypeCastExpression"===r||"JSXElement"===r||"JSXFragment"===r||"BindExpression"===r||"PipelinePrimaryTopicReference"===r||"DoExpression"===r||"RecordExpression"===r||"TupleExpression"===r||"DecimalLiteral"===r||"TSAsExpression"===r||"TSTypeAssertion"===r||"TSNonNullExpression"===r||"Placeholder"===r&&("Expression"===e.expectedNode||"Identifier"===e.expectedNode||"StringLiteral"===e.expectedNode))return void 0===t||(0,n.default)(e,t);return!1},t.isBinary=function(e,t){if(!e)return!1;const r=e.type;if("Binary"===r||"BinaryExpression"===r||"LogicalExpression"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isScopable=function(e,t){if(!e)return!1;const r=e.type;if("Scopable"===r||"BlockStatement"===r||"CatchClause"===r||"DoWhileStatement"===r||"ForInStatement"===r||"ForStatement"===r||"FunctionDeclaration"===r||"FunctionExpression"===r||"Program"===r||"ObjectMethod"===r||"SwitchStatement"===r||"WhileStatement"===r||"ArrowFunctionExpression"===r||"ClassExpression"===r||"ClassDeclaration"===r||"ForOfStatement"===r||"ClassMethod"===r||"ClassPrivateMethod"===r||"StaticBlock"===r||"TSModuleBlock"===r||"Placeholder"===r&&"BlockStatement"===e.expectedNode)return void 0===t||(0,n.default)(e,t);return!1},t.isBlockParent=function(e,t){if(!e)return!1;const r=e.type;if("BlockParent"===r||"BlockStatement"===r||"CatchClause"===r||"DoWhileStatement"===r||"ForInStatement"===r||"ForStatement"===r||"FunctionDeclaration"===r||"FunctionExpression"===r||"Program"===r||"ObjectMethod"===r||"SwitchStatement"===r||"WhileStatement"===r||"ArrowFunctionExpression"===r||"ForOfStatement"===r||"ClassMethod"===r||"ClassPrivateMethod"===r||"StaticBlock"===r||"TSModuleBlock"===r||"Placeholder"===r&&"BlockStatement"===e.expectedNode)return void 0===t||(0,n.default)(e,t);return!1},t.isBlock=function(e,t){if(!e)return!1;const r=e.type;if("Block"===r||"BlockStatement"===r||"Program"===r||"TSModuleBlock"===r||"Placeholder"===r&&"BlockStatement"===e.expectedNode)return void 0===t||(0,n.default)(e,t);return!1},t.isStatement=function(e,t){if(!e)return!1;const r=e.type;if("Statement"===r||"BlockStatement"===r||"BreakStatement"===r||"ContinueStatement"===r||"DebuggerStatement"===r||"DoWhileStatement"===r||"EmptyStatement"===r||"ExpressionStatement"===r||"ForInStatement"===r||"ForStatement"===r||"FunctionDeclaration"===r||"IfStatement"===r||"LabeledStatement"===r||"ReturnStatement"===r||"SwitchStatement"===r||"ThrowStatement"===r||"TryStatement"===r||"VariableDeclaration"===r||"WhileStatement"===r||"WithStatement"===r||"ClassDeclaration"===r||"ExportAllDeclaration"===r||"ExportDefaultDeclaration"===r||"ExportNamedDeclaration"===r||"ForOfStatement"===r||"ImportDeclaration"===r||"DeclareClass"===r||"DeclareFunction"===r||"DeclareInterface"===r||"DeclareModule"===r||"DeclareModuleExports"===r||"DeclareTypeAlias"===r||"DeclareOpaqueType"===r||"DeclareVariable"===r||"DeclareExportDeclaration"===r||"DeclareExportAllDeclaration"===r||"InterfaceDeclaration"===r||"OpaqueType"===r||"TypeAlias"===r||"EnumDeclaration"===r||"TSDeclareFunction"===r||"TSInterfaceDeclaration"===r||"TSTypeAliasDeclaration"===r||"TSEnumDeclaration"===r||"TSModuleDeclaration"===r||"TSImportEqualsDeclaration"===r||"TSExportAssignment"===r||"TSNamespaceExportDeclaration"===r||"Placeholder"===r&&("Statement"===e.expectedNode||"Declaration"===e.expectedNode||"BlockStatement"===e.expectedNode))return void 0===t||(0,n.default)(e,t);return!1},t.isTerminatorless=function(e,t){if(!e)return!1;const r=e.type;if("Terminatorless"===r||"BreakStatement"===r||"ContinueStatement"===r||"ReturnStatement"===r||"ThrowStatement"===r||"YieldExpression"===r||"AwaitExpression"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isCompletionStatement=function(e,t){if(!e)return!1;const r=e.type;if("CompletionStatement"===r||"BreakStatement"===r||"ContinueStatement"===r||"ReturnStatement"===r||"ThrowStatement"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isConditional=function(e,t){if(!e)return!1;const r=e.type;if("Conditional"===r||"ConditionalExpression"===r||"IfStatement"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isLoop=function(e,t){if(!e)return!1;const r=e.type;if("Loop"===r||"DoWhileStatement"===r||"ForInStatement"===r||"ForStatement"===r||"WhileStatement"===r||"ForOfStatement"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isWhile=function(e,t){if(!e)return!1;const r=e.type;if("While"===r||"DoWhileStatement"===r||"WhileStatement"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isExpressionWrapper=function(e,t){if(!e)return!1;const r=e.type;if("ExpressionWrapper"===r||"ExpressionStatement"===r||"ParenthesizedExpression"===r||"TypeCastExpression"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isFor=function(e,t){if(!e)return!1;const r=e.type;if("For"===r||"ForInStatement"===r||"ForStatement"===r||"ForOfStatement"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isForXStatement=function(e,t){if(!e)return!1;const r=e.type;if("ForXStatement"===r||"ForInStatement"===r||"ForOfStatement"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isFunction=function(e,t){if(!e)return!1;const r=e.type;if("Function"===r||"FunctionDeclaration"===r||"FunctionExpression"===r||"ObjectMethod"===r||"ArrowFunctionExpression"===r||"ClassMethod"===r||"ClassPrivateMethod"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isFunctionParent=function(e,t){if(!e)return!1;const r=e.type;if("FunctionParent"===r||"FunctionDeclaration"===r||"FunctionExpression"===r||"ObjectMethod"===r||"ArrowFunctionExpression"===r||"ClassMethod"===r||"ClassPrivateMethod"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isPureish=function(e,t){if(!e)return!1;const r=e.type;if("Pureish"===r||"FunctionDeclaration"===r||"FunctionExpression"===r||"StringLiteral"===r||"NumericLiteral"===r||"NullLiteral"===r||"BooleanLiteral"===r||"RegExpLiteral"===r||"ArrowFunctionExpression"===r||"BigIntLiteral"===r||"DecimalLiteral"===r||"Placeholder"===r&&"StringLiteral"===e.expectedNode)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclaration=function(e,t){if(!e)return!1;const r=e.type;if("Declaration"===r||"FunctionDeclaration"===r||"VariableDeclaration"===r||"ClassDeclaration"===r||"ExportAllDeclaration"===r||"ExportDefaultDeclaration"===r||"ExportNamedDeclaration"===r||"ImportDeclaration"===r||"DeclareClass"===r||"DeclareFunction"===r||"DeclareInterface"===r||"DeclareModule"===r||"DeclareModuleExports"===r||"DeclareTypeAlias"===r||"DeclareOpaqueType"===r||"DeclareVariable"===r||"DeclareExportDeclaration"===r||"DeclareExportAllDeclaration"===r||"InterfaceDeclaration"===r||"OpaqueType"===r||"TypeAlias"===r||"EnumDeclaration"===r||"TSDeclareFunction"===r||"TSInterfaceDeclaration"===r||"TSTypeAliasDeclaration"===r||"TSEnumDeclaration"===r||"TSModuleDeclaration"===r||"Placeholder"===r&&"Declaration"===e.expectedNode)return void 0===t||(0,n.default)(e,t);return!1},t.isPatternLike=function(e,t){if(!e)return!1;const r=e.type;if("PatternLike"===r||"Identifier"===r||"RestElement"===r||"AssignmentPattern"===r||"ArrayPattern"===r||"ObjectPattern"===r||"Placeholder"===r&&("Pattern"===e.expectedNode||"Identifier"===e.expectedNode))return void 0===t||(0,n.default)(e,t);return!1},t.isLVal=function(e,t){if(!e)return!1;const r=e.type;if("LVal"===r||"Identifier"===r||"MemberExpression"===r||"RestElement"===r||"AssignmentPattern"===r||"ArrayPattern"===r||"ObjectPattern"===r||"TSParameterProperty"===r||"Placeholder"===r&&("Pattern"===e.expectedNode||"Identifier"===e.expectedNode))return void 0===t||(0,n.default)(e,t);return!1},t.isTSEntityName=function(e,t){if(!e)return!1;const r=e.type;if("TSEntityName"===r||"Identifier"===r||"TSQualifiedName"===r||"Placeholder"===r&&"Identifier"===e.expectedNode)return void 0===t||(0,n.default)(e,t);return!1},t.isLiteral=function(e,t){if(!e)return!1;const r=e.type;if("Literal"===r||"StringLiteral"===r||"NumericLiteral"===r||"NullLiteral"===r||"BooleanLiteral"===r||"RegExpLiteral"===r||"TemplateLiteral"===r||"BigIntLiteral"===r||"DecimalLiteral"===r||"Placeholder"===r&&"StringLiteral"===e.expectedNode)return void 0===t||(0,n.default)(e,t);return!1},t.isImmutable=function(e,t){if(!e)return!1;const r=e.type;if("Immutable"===r||"StringLiteral"===r||"NumericLiteral"===r||"NullLiteral"===r||"BooleanLiteral"===r||"BigIntLiteral"===r||"JSXAttribute"===r||"JSXClosingElement"===r||"JSXElement"===r||"JSXExpressionContainer"===r||"JSXSpreadChild"===r||"JSXOpeningElement"===r||"JSXText"===r||"JSXFragment"===r||"JSXOpeningFragment"===r||"JSXClosingFragment"===r||"DecimalLiteral"===r||"Placeholder"===r&&"StringLiteral"===e.expectedNode)return void 0===t||(0,n.default)(e,t);return!1},t.isUserWhitespacable=function(e,t){if(!e)return!1;const r=e.type;if("UserWhitespacable"===r||"ObjectMethod"===r||"ObjectProperty"===r||"ObjectTypeInternalSlot"===r||"ObjectTypeCallProperty"===r||"ObjectTypeIndexer"===r||"ObjectTypeProperty"===r||"ObjectTypeSpreadProperty"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isMethod=function(e,t){if(!e)return!1;const r=e.type;if("Method"===r||"ObjectMethod"===r||"ClassMethod"===r||"ClassPrivateMethod"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isObjectMember=function(e,t){if(!e)return!1;const r=e.type;if("ObjectMember"===r||"ObjectMethod"===r||"ObjectProperty"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isProperty=function(e,t){if(!e)return!1;const r=e.type;if("Property"===r||"ObjectProperty"===r||"ClassProperty"===r||"ClassPrivateProperty"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isUnaryLike=function(e,t){if(!e)return!1;const r=e.type;if("UnaryLike"===r||"UnaryExpression"===r||"SpreadElement"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isPattern=function(e,t){if(!e)return!1;const r=e.type;if("Pattern"===r||"AssignmentPattern"===r||"ArrayPattern"===r||"ObjectPattern"===r||"Placeholder"===r&&"Pattern"===e.expectedNode)return void 0===t||(0,n.default)(e,t);return!1},t.isClass=function(e,t){if(!e)return!1;const r=e.type;if("Class"===r||"ClassExpression"===r||"ClassDeclaration"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isModuleDeclaration=function(e,t){if(!e)return!1;const r=e.type;if("ModuleDeclaration"===r||"ExportAllDeclaration"===r||"ExportDefaultDeclaration"===r||"ExportNamedDeclaration"===r||"ImportDeclaration"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isExportDeclaration=function(e,t){if(!e)return!1;const r=e.type;if("ExportDeclaration"===r||"ExportAllDeclaration"===r||"ExportDefaultDeclaration"===r||"ExportNamedDeclaration"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isModuleSpecifier=function(e,t){if(!e)return!1;const r=e.type;if("ModuleSpecifier"===r||"ExportSpecifier"===r||"ImportDefaultSpecifier"===r||"ImportNamespaceSpecifier"===r||"ImportSpecifier"===r||"ExportNamespaceSpecifier"===r||"ExportDefaultSpecifier"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isFlow=function(e,t){if(!e)return!1;const r=e.type;if("Flow"===r||"AnyTypeAnnotation"===r||"ArrayTypeAnnotation"===r||"BooleanTypeAnnotation"===r||"BooleanLiteralTypeAnnotation"===r||"NullLiteralTypeAnnotation"===r||"ClassImplements"===r||"DeclareClass"===r||"DeclareFunction"===r||"DeclareInterface"===r||"DeclareModule"===r||"DeclareModuleExports"===r||"DeclareTypeAlias"===r||"DeclareOpaqueType"===r||"DeclareVariable"===r||"DeclareExportDeclaration"===r||"DeclareExportAllDeclaration"===r||"DeclaredPredicate"===r||"ExistsTypeAnnotation"===r||"FunctionTypeAnnotation"===r||"FunctionTypeParam"===r||"GenericTypeAnnotation"===r||"InferredPredicate"===r||"InterfaceExtends"===r||"InterfaceDeclaration"===r||"InterfaceTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"MixedTypeAnnotation"===r||"EmptyTypeAnnotation"===r||"NullableTypeAnnotation"===r||"NumberLiteralTypeAnnotation"===r||"NumberTypeAnnotation"===r||"ObjectTypeAnnotation"===r||"ObjectTypeInternalSlot"===r||"ObjectTypeCallProperty"===r||"ObjectTypeIndexer"===r||"ObjectTypeProperty"===r||"ObjectTypeSpreadProperty"===r||"OpaqueType"===r||"QualifiedTypeIdentifier"===r||"StringLiteralTypeAnnotation"===r||"StringTypeAnnotation"===r||"SymbolTypeAnnotation"===r||"ThisTypeAnnotation"===r||"TupleTypeAnnotation"===r||"TypeofTypeAnnotation"===r||"TypeAlias"===r||"TypeAnnotation"===r||"TypeCastExpression"===r||"TypeParameter"===r||"TypeParameterDeclaration"===r||"TypeParameterInstantiation"===r||"UnionTypeAnnotation"===r||"Variance"===r||"VoidTypeAnnotation"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isFlowType=function(e,t){if(!e)return!1;const r=e.type;if("FlowType"===r||"AnyTypeAnnotation"===r||"ArrayTypeAnnotation"===r||"BooleanTypeAnnotation"===r||"BooleanLiteralTypeAnnotation"===r||"NullLiteralTypeAnnotation"===r||"ExistsTypeAnnotation"===r||"FunctionTypeAnnotation"===r||"GenericTypeAnnotation"===r||"InterfaceTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"MixedTypeAnnotation"===r||"EmptyTypeAnnotation"===r||"NullableTypeAnnotation"===r||"NumberLiteralTypeAnnotation"===r||"NumberTypeAnnotation"===r||"ObjectTypeAnnotation"===r||"StringLiteralTypeAnnotation"===r||"StringTypeAnnotation"===r||"SymbolTypeAnnotation"===r||"ThisTypeAnnotation"===r||"TupleTypeAnnotation"===r||"TypeofTypeAnnotation"===r||"UnionTypeAnnotation"===r||"VoidTypeAnnotation"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isFlowBaseAnnotation=function(e,t){if(!e)return!1;const r=e.type;if("FlowBaseAnnotation"===r||"AnyTypeAnnotation"===r||"BooleanTypeAnnotation"===r||"NullLiteralTypeAnnotation"===r||"MixedTypeAnnotation"===r||"EmptyTypeAnnotation"===r||"NumberTypeAnnotation"===r||"StringTypeAnnotation"===r||"SymbolTypeAnnotation"===r||"ThisTypeAnnotation"===r||"VoidTypeAnnotation"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isFlowDeclaration=function(e,t){if(!e)return!1;const r=e.type;if("FlowDeclaration"===r||"DeclareClass"===r||"DeclareFunction"===r||"DeclareInterface"===r||"DeclareModule"===r||"DeclareModuleExports"===r||"DeclareTypeAlias"===r||"DeclareOpaqueType"===r||"DeclareVariable"===r||"DeclareExportDeclaration"===r||"DeclareExportAllDeclaration"===r||"InterfaceDeclaration"===r||"OpaqueType"===r||"TypeAlias"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isFlowPredicate=function(e,t){if(!e)return!1;const r=e.type;if("FlowPredicate"===r||"DeclaredPredicate"===r||"InferredPredicate"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isEnumBody=function(e,t){if(!e)return!1;const r=e.type;if("EnumBody"===r||"EnumBooleanBody"===r||"EnumNumberBody"===r||"EnumStringBody"===r||"EnumSymbolBody"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isEnumMember=function(e,t){if(!e)return!1;const r=e.type;if("EnumMember"===r||"EnumBooleanMember"===r||"EnumNumberMember"===r||"EnumStringMember"===r||"EnumDefaultedMember"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isJSX=function(e,t){if(!e)return!1;const r=e.type;if("JSX"===r||"JSXAttribute"===r||"JSXClosingElement"===r||"JSXElement"===r||"JSXEmptyExpression"===r||"JSXExpressionContainer"===r||"JSXSpreadChild"===r||"JSXIdentifier"===r||"JSXMemberExpression"===r||"JSXNamespacedName"===r||"JSXOpeningElement"===r||"JSXSpreadAttribute"===r||"JSXText"===r||"JSXFragment"===r||"JSXOpeningFragment"===r||"JSXClosingFragment"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isPrivate=function(e,t){if(!e)return!1;const r=e.type;if("Private"===r||"ClassPrivateProperty"===r||"ClassPrivateMethod"===r||"PrivateName"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypeElement=function(e,t){if(!e)return!1;const r=e.type;if("TSTypeElement"===r||"TSCallSignatureDeclaration"===r||"TSConstructSignatureDeclaration"===r||"TSPropertySignature"===r||"TSMethodSignature"===r||"TSIndexSignature"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isTSType=function(e,t){if(!e)return!1;const r=e.type;if("TSType"===r||"TSAnyKeyword"===r||"TSBooleanKeyword"===r||"TSBigIntKeyword"===r||"TSIntrinsicKeyword"===r||"TSNeverKeyword"===r||"TSNullKeyword"===r||"TSNumberKeyword"===r||"TSObjectKeyword"===r||"TSStringKeyword"===r||"TSSymbolKeyword"===r||"TSUndefinedKeyword"===r||"TSUnknownKeyword"===r||"TSVoidKeyword"===r||"TSThisType"===r||"TSFunctionType"===r||"TSConstructorType"===r||"TSTypeReference"===r||"TSTypePredicate"===r||"TSTypeQuery"===r||"TSTypeLiteral"===r||"TSArrayType"===r||"TSTupleType"===r||"TSOptionalType"===r||"TSRestType"===r||"TSUnionType"===r||"TSIntersectionType"===r||"TSConditionalType"===r||"TSInferType"===r||"TSParenthesizedType"===r||"TSTypeOperator"===r||"TSIndexedAccessType"===r||"TSMappedType"===r||"TSLiteralType"===r||"TSExpressionWithTypeArguments"===r||"TSImportType"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isTSBaseType=function(e,t){if(!e)return!1;const r=e.type;if("TSBaseType"===r||"TSAnyKeyword"===r||"TSBooleanKeyword"===r||"TSBigIntKeyword"===r||"TSIntrinsicKeyword"===r||"TSNeverKeyword"===r||"TSNullKeyword"===r||"TSNumberKeyword"===r||"TSObjectKeyword"===r||"TSStringKeyword"===r||"TSSymbolKeyword"===r||"TSUndefinedKeyword"===r||"TSUnknownKeyword"===r||"TSVoidKeyword"===r||"TSThisType"===r||"TSLiteralType"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isNumberLiteral=function(e,t){if(console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),!e)return!1;if("NumberLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isRegexLiteral=function(e,t){if(console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),!e)return!1;if("RegexLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isRestProperty=function(e,t){if(console.trace("The node type RestProperty has been renamed to RestElement"),!e)return!1;if("RestProperty"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isSpreadProperty=function(e,t){if(console.trace("The node type SpreadProperty has been renamed to SpreadElement"),!e)return!1;if("SpreadProperty"===e.type)return void 0===t||(0,n.default)(e,t);return!1};var i,n=(i=r(4951))&&i.__esModule?i:{default:i}},6593:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!t)return!1;if(!(0,n.default)(t.type,e))return!r&&"Placeholder"===t.type&&e in a.FLIPPED_ALIAS_KEYS&&(0,s.default)(t.expectedNode,e);return void 0===r||(0,i.default)(t,r)};var i=_interopRequireDefault(r(4951)),n=_interopRequireDefault(r(9530)),s=_interopRequireDefault(r(9186)),a=r(9829);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},8979:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(r&&"Identifier"===e.type&&"ObjectProperty"===t.type&&"ObjectExpression"===r.type)return!1;const i=n.default.keys[t.type];if(i)for(let r=0;r<i.length;r++){const n=t[i[r]];if(Array.isArray(n)){if(n.indexOf(e)>=0)return!0}else if(n===e)return!0}return!1};var i,n=(i=r(3407))&&i.__esModule?i:{default:i}},4920:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.isFunctionDeclaration)(e)||(0,n.isClassDeclaration)(e)||(0,s.default)(e)};var i,n=r(8037),s=(i=r(9954))&&i.__esModule?i:{default:i}},738:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,n.default)(e.type,"Immutable"))return!0;if((0,s.isIdentifier)(e))return"undefined"===e.name;return!1};var i,n=(i=r(9530))&&i.__esModule?i:{default:i},s=r(8037)},9954:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.isVariableDeclaration)(e)&&("var"!==e.kind||e[n.BLOCK_SCOPED_SYMBOL])};var i=r(8037),n=r(9660)},1784:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!(!e||!i.VISITOR_KEYS[e.type])};var i=r(9829)},5082:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function isNodesEquivalent(e,t){if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return e===t;if(e.type!==t.type)return!1;const r=Object.keys(i.NODE_FIELDS[e.type]||e.type),n=i.VISITOR_KEYS[e.type];for(const i of r){if(typeof e[i]!=typeof t[i])return!1;if(null!=e[i]||null!=t[i]){if(null==e[i]||null==t[i])return!1;if(Array.isArray(e[i])){if(!Array.isArray(t[i]))return!1;if(e[i].length!==t[i].length)return!1;for(let r=0;r<e[i].length;r++)if(!isNodesEquivalent(e[i][r],t[i][r]))return!1}else if("object"!=typeof e[i]||(null==n?void 0:n.includes(i))){if(!isNodesEquivalent(e[i],t[i]))return!1}else for(const r of Object.keys(e[i]))if(e[i][r]!==t[i][r])return!1}}return!0};var i=r(9829)},9186:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;const r=i.PLACEHOLDERS_ALIAS[e];if(r)for(const e of r)if(t===e)return!0;return!1};var i=r(9829)},5794:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){switch(t.type){case"MemberExpression":case"JSXMemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"ExportSpecifier":return!t.source&&t.local===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(t.params.includes(e))return!1;case"ObjectProperty":case"ClassProperty":case"ClassPrivateProperty":return t.key===e?!!t.computed:t.value!==e||(!r||"ObjectPattern"!==r.type);case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;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"JSXAttribute":case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key!==e||!!t.computed}return!0}},9057:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.isBlockStatement)(e)&&((0,i.isFunction)(t)||(0,i.isCatchClause)(t)))return!1;if((0,i.isPattern)(e)&&((0,i.isFunction)(t)||(0,i.isCatchClause)(t)))return!0;return(0,i.isScopable)(e)};var i=r(8037)},9935:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.isImportDefaultSpecifier)(e)||(0,i.isIdentifier)(e.imported||e.exported,{name:"default"})};var i=r(8037)},9530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;if(i.ALIAS_KEYS[t])return!1;const r=i.FLIPPED_ALIAS_KEYS[t];if(r){if(r[0]===e)return!0;for(const t of r)if(e===t)return!0}return!1};var i=r(9829)},6256:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e)&&!s.has(e)};var i,n=(i=r(380))&&i.__esModule?i:{default:i};const s=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"])},380:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!0){if("string"!=typeof e)return!1;if(t){if((0,i.isKeyword)(e)||(0,i.isStrictReservedWord)(e))return!1;if("await"===e)return!1}return(0,i.isIdentifierName)(e)};var i=r(7075)},1330:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.isVariableDeclaration)(e,{kind:"var"})&&!e[n.BLOCK_SCOPED_SYMBOL]};var i=r(8037),n=r(9660)},6636:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!(0,i.isMemberExpression)(e))return!1;const n=Array.isArray(t)?t:t.split("."),s=[];let a;for(a=e;(0,i.isMemberExpression)(a);a=a.object)s.push(a.property);if(s.push(a),s.length<n.length)return!1;if(!r&&s.length>n.length)return!1;for(let e=0,t=s.length-1;e<n.length;e++,t--){const r=s[t];let a;if((0,i.isIdentifier)(r))a=r.name;else{if(!(0,i.isStringLiteral)(r))return!1;a=r.value}if(n[e]!==a)return!1}return!0};var i=r(8037)},5124:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!e&&/^[a-z]/.test(e)}},5631:(e,t,r)=>{"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,((i=r(3972))&&i.__esModule?i:{default:i}).default)("React.Component");t.default=n},9623:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!e)return;const n=i.NODE_FIELDS[e.type];if(!n)return;const s=n[t];validateField(e,t,r,s),validateChild(e,t,r)},t.validateField=validateField,t.validateChild=validateChild;var i=r(9829);function validateField(e,t,r,i){(null==i?void 0:i.validate)&&(i.optional&&null==r||i.validate(e,t,r))}function validateChild(e,t,r){if(null==r)return;const n=i.NODE_PARENT_VALIDATIONS[r.type];n&&n(e,t,r)}},4468:(e,t)=>{"use strict";t.ZP=function(){throw Error("Test Error stack")},t.U1=void 0;t.U1=12},964:e=>{"use strict";e.exports=JSON.parse(\'{"builtin":{"Array":false,"ArrayBuffer":false,"Atomics":false,"BigInt":false,"BigInt64Array":false,"BigUint64Array":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"globalThis":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es5":{"Array":false,"Boolean":false,"constructor":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"propertyIsEnumerable":false,"RangeError":false,"ReferenceError":false,"RegExp":false,"String":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false},"es2015":{"Array":false,"ArrayBuffer":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es2017":{"Array":false,"ArrayBuffer":false,"Atomics":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"browser":{"AbortController":false,"AbortSignal":false,"addEventListener":false,"alert":false,"AnalyserNode":false,"Animation":false,"AnimationEffectReadOnly":false,"AnimationEffectTiming":false,"AnimationEffectTimingReadOnly":false,"AnimationEvent":false,"AnimationPlaybackEvent":false,"AnimationTimeline":false,"applicationCache":false,"ApplicationCache":false,"ApplicationCacheErrorEvent":false,"atob":false,"Attr":false,"Audio":false,"AudioBuffer":false,"AudioBufferSourceNode":false,"AudioContext":false,"AudioDestinationNode":false,"AudioListener":false,"AudioNode":false,"AudioParam":false,"AudioProcessingEvent":false,"AudioScheduledSourceNode":false,"AudioWorkletGlobalScope ":false,"AudioWorkletNode":false,"AudioWorkletProcessor":false,"BarProp":false,"BaseAudioContext":false,"BatteryManager":false,"BeforeUnloadEvent":false,"BiquadFilterNode":false,"Blob":false,"BlobEvent":false,"blur":false,"BroadcastChannel":false,"btoa":false,"BudgetService":false,"ByteLengthQueuingStrategy":false,"Cache":false,"caches":false,"CacheStorage":false,"cancelAnimationFrame":false,"cancelIdleCallback":false,"CanvasCaptureMediaStreamTrack":false,"CanvasGradient":false,"CanvasPattern":false,"CanvasRenderingContext2D":false,"ChannelMergerNode":false,"ChannelSplitterNode":false,"CharacterData":false,"clearInterval":false,"clearTimeout":false,"clientInformation":false,"ClipboardEvent":false,"close":false,"closed":false,"CloseEvent":false,"Comment":false,"CompositionEvent":false,"confirm":false,"console":false,"ConstantSourceNode":false,"ConvolverNode":false,"CountQueuingStrategy":false,"createImageBitmap":false,"Credential":false,"CredentialsContainer":false,"crypto":false,"Crypto":false,"CryptoKey":false,"CSS":false,"CSSConditionRule":false,"CSSFontFaceRule":false,"CSSGroupingRule":false,"CSSImportRule":false,"CSSKeyframeRule":false,"CSSKeyframesRule":false,"CSSMediaRule":false,"CSSNamespaceRule":false,"CSSPageRule":false,"CSSRule":false,"CSSRuleList":false,"CSSStyleDeclaration":false,"CSSStyleRule":false,"CSSStyleSheet":false,"CSSSupportsRule":false,"CustomElementRegistry":false,"customElements":false,"CustomEvent":false,"DataTransfer":false,"DataTransferItem":false,"DataTransferItemList":false,"defaultstatus":false,"defaultStatus":false,"DelayNode":false,"DeviceMotionEvent":false,"DeviceOrientationEvent":false,"devicePixelRatio":false,"dispatchEvent":false,"document":false,"Document":false,"DocumentFragment":false,"DocumentType":false,"DOMError":false,"DOMException":false,"DOMImplementation":false,"DOMMatrix":false,"DOMMatrixReadOnly":false,"DOMParser":false,"DOMPoint":false,"DOMPointReadOnly":false,"DOMQuad":false,"DOMRect":false,"DOMRectReadOnly":false,"DOMStringList":false,"DOMStringMap":false,"DOMTokenList":false,"DragEvent":false,"DynamicsCompressorNode":false,"Element":false,"ErrorEvent":false,"event":false,"Event":false,"EventSource":false,"EventTarget":false,"external":false,"fetch":false,"File":false,"FileList":false,"FileReader":false,"find":false,"focus":false,"FocusEvent":false,"FontFace":false,"FontFaceSetLoadEvent":false,"FormData":false,"frameElement":false,"frames":false,"GainNode":false,"Gamepad":false,"GamepadButton":false,"GamepadEvent":false,"getComputedStyle":false,"getSelection":false,"HashChangeEvent":false,"Headers":false,"history":false,"History":false,"HTMLAllCollection":false,"HTMLAnchorElement":false,"HTMLAreaElement":false,"HTMLAudioElement":false,"HTMLBaseElement":false,"HTMLBodyElement":false,"HTMLBRElement":false,"HTMLButtonElement":false,"HTMLCanvasElement":false,"HTMLCollection":false,"HTMLContentElement":false,"HTMLDataElement":false,"HTMLDataListElement":false,"HTMLDetailsElement":false,"HTMLDialogElement":false,"HTMLDirectoryElement":false,"HTMLDivElement":false,"HTMLDListElement":false,"HTMLDocument":false,"HTMLElement":false,"HTMLEmbedElement":false,"HTMLFieldSetElement":false,"HTMLFontElement":false,"HTMLFormControlsCollection":false,"HTMLFormElement":false,"HTMLFrameElement":false,"HTMLFrameSetElement":false,"HTMLHeadElement":false,"HTMLHeadingElement":false,"HTMLHRElement":false,"HTMLHtmlElement":false,"HTMLIFrameElement":false,"HTMLImageElement":false,"HTMLInputElement":false,"HTMLLabelElement":false,"HTMLLegendElement":false,"HTMLLIElement":false,"HTMLLinkElement":false,"HTMLMapElement":false,"HTMLMarqueeElement":false,"HTMLMediaElement":false,"HTMLMenuElement":false,"HTMLMetaElement":false,"HTMLMeterElement":false,"HTMLModElement":false,"HTMLObjectElement":false,"HTMLOListElement":false,"HTMLOptGroupElement":false,"HTMLOptionElement":false,"HTMLOptionsCollection":false,"HTMLOutputElement":false,"HTMLParagraphElement":false,"HTMLParamElement":false,"HTMLPictureElement":false,"HTMLPreElement":false,"HTMLProgressElement":false,"HTMLQuoteElement":false,"HTMLScriptElement":false,"HTMLSelectElement":false,"HTMLShadowElement":false,"HTMLSlotElement":false,"HTMLSourceElement":false,"HTMLSpanElement":false,"HTMLStyleElement":false,"HTMLTableCaptionElement":false,"HTMLTableCellElement":false,"HTMLTableColElement":false,"HTMLTableElement":false,"HTMLTableRowElement":false,"HTMLTableSectionElement":false,"HTMLTemplateElement":false,"HTMLTextAreaElement":false,"HTMLTimeElement":false,"HTMLTitleElement":false,"HTMLTrackElement":false,"HTMLUListElement":false,"HTMLUnknownElement":false,"HTMLVideoElement":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"IdleDeadline":false,"IIRFilterNode":false,"Image":false,"ImageBitmap":false,"ImageBitmapRenderingContext":false,"ImageCapture":false,"ImageData":false,"indexedDB":false,"innerHeight":false,"innerWidth":false,"InputEvent":false,"IntersectionObserver":false,"IntersectionObserverEntry":false,"Intl":false,"isSecureContext":false,"KeyboardEvent":false,"KeyframeEffect":false,"KeyframeEffectReadOnly":false,"length":false,"localStorage":false,"location":true,"Location":false,"locationbar":false,"matchMedia":false,"MediaDeviceInfo":false,"MediaDevices":false,"MediaElementAudioSourceNode":false,"MediaEncryptedEvent":false,"MediaError":false,"MediaKeyMessageEvent":false,"MediaKeySession":false,"MediaKeyStatusMap":false,"MediaKeySystemAccess":false,"MediaList":false,"MediaQueryList":false,"MediaQueryListEvent":false,"MediaRecorder":false,"MediaSettingsRange":false,"MediaSource":false,"MediaStream":false,"MediaStreamAudioDestinationNode":false,"MediaStreamAudioSourceNode":false,"MediaStreamEvent":false,"MediaStreamTrack":false,"MediaStreamTrackEvent":false,"menubar":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"MIDIAccess":false,"MIDIConnectionEvent":false,"MIDIInput":false,"MIDIInputMap":false,"MIDIMessageEvent":false,"MIDIOutput":false,"MIDIOutputMap":false,"MIDIPort":false,"MimeType":false,"MimeTypeArray":false,"MouseEvent":false,"moveBy":false,"moveTo":false,"MutationEvent":false,"MutationObserver":false,"MutationRecord":false,"name":false,"NamedNodeMap":false,"NavigationPreloadManager":false,"navigator":false,"Navigator":false,"NetworkInformation":false,"Node":false,"NodeFilter":false,"NodeIterator":false,"NodeList":false,"Notification":false,"OfflineAudioCompletionEvent":false,"OfflineAudioContext":false,"offscreenBuffering":false,"OffscreenCanvas":true,"onabort":true,"onafterprint":true,"onanimationend":true,"onanimationiteration":true,"onanimationstart":true,"onappinstalled":true,"onauxclick":true,"onbeforeinstallprompt":true,"onbeforeprint":true,"onbeforeunload":true,"onblur":true,"oncancel":true,"oncanplay":true,"oncanplaythrough":true,"onchange":true,"onclick":true,"onclose":true,"oncontextmenu":true,"oncuechange":true,"ondblclick":true,"ondevicemotion":true,"ondeviceorientation":true,"ondeviceorientationabsolute":true,"ondrag":true,"ondragend":true,"ondragenter":true,"ondragleave":true,"ondragover":true,"ondragstart":true,"ondrop":true,"ondurationchange":true,"onemptied":true,"onended":true,"onerror":true,"onfocus":true,"ongotpointercapture":true,"onhashchange":true,"oninput":true,"oninvalid":true,"onkeydown":true,"onkeypress":true,"onkeyup":true,"onlanguagechange":true,"onload":true,"onloadeddata":true,"onloadedmetadata":true,"onloadstart":true,"onlostpointercapture":true,"onmessage":true,"onmessageerror":true,"onmousedown":true,"onmouseenter":true,"onmouseleave":true,"onmousemove":true,"onmouseout":true,"onmouseover":true,"onmouseup":true,"onmousewheel":true,"onoffline":true,"ononline":true,"onpagehide":true,"onpageshow":true,"onpause":true,"onplay":true,"onplaying":true,"onpointercancel":true,"onpointerdown":true,"onpointerenter":true,"onpointerleave":true,"onpointermove":true,"onpointerout":true,"onpointerover":true,"onpointerup":true,"onpopstate":true,"onprogress":true,"onratechange":true,"onrejectionhandled":true,"onreset":true,"onresize":true,"onscroll":true,"onsearch":true,"onseeked":true,"onseeking":true,"onselect":true,"onstalled":true,"onstorage":true,"onsubmit":true,"onsuspend":true,"ontimeupdate":true,"ontoggle":true,"ontransitionend":true,"onunhandledrejection":true,"onunload":true,"onvolumechange":true,"onwaiting":true,"onwheel":true,"open":false,"openDatabase":false,"opener":false,"Option":false,"origin":false,"OscillatorNode":false,"outerHeight":false,"outerWidth":false,"PageTransitionEvent":false,"pageXOffset":false,"pageYOffset":false,"PannerNode":false,"parent":false,"Path2D":false,"PaymentAddress":false,"PaymentRequest":false,"PaymentRequestUpdateEvent":false,"PaymentResponse":false,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceLongTaskTiming":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceNavigationTiming":false,"PerformanceObserver":false,"PerformanceObserverEntryList":false,"PerformancePaintTiming":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"PeriodicWave":false,"Permissions":false,"PermissionStatus":false,"personalbar":false,"PhotoCapabilities":false,"Plugin":false,"PluginArray":false,"PointerEvent":false,"PopStateEvent":false,"postMessage":false,"Presentation":false,"PresentationAvailability":false,"PresentationConnection":false,"PresentationConnectionAvailableEvent":false,"PresentationConnectionCloseEvent":false,"PresentationConnectionList":false,"PresentationReceiver":false,"PresentationRequest":false,"print":false,"ProcessingInstruction":false,"ProgressEvent":false,"PromiseRejectionEvent":false,"prompt":false,"PushManager":false,"PushSubscription":false,"PushSubscriptionOptions":false,"queueMicrotask":false,"RadioNodeList":false,"Range":false,"ReadableStream":false,"registerProcessor":false,"RemotePlayback":false,"removeEventListener":false,"Request":false,"requestAnimationFrame":false,"requestIdleCallback":false,"resizeBy":false,"ResizeObserver":false,"ResizeObserverEntry":false,"resizeTo":false,"Response":false,"RTCCertificate":false,"RTCDataChannel":false,"RTCDataChannelEvent":false,"RTCDtlsTransport":false,"RTCIceCandidate":false,"RTCIceGatherer":false,"RTCIceTransport":false,"RTCPeerConnection":false,"RTCPeerConnectionIceEvent":false,"RTCRtpContributingSource":false,"RTCRtpReceiver":false,"RTCRtpSender":false,"RTCSctpTransport":false,"RTCSessionDescription":false,"RTCStatsReport":false,"RTCTrackEvent":false,"screen":false,"Screen":false,"screenLeft":false,"ScreenOrientation":false,"screenTop":false,"screenX":false,"screenY":false,"ScriptProcessorNode":false,"scroll":false,"scrollbars":false,"scrollBy":false,"scrollTo":false,"scrollX":false,"scrollY":false,"SecurityPolicyViolationEvent":false,"Selection":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerRegistration":false,"sessionStorage":false,"setInterval":false,"setTimeout":false,"ShadowRoot":false,"SharedWorker":false,"SourceBuffer":false,"SourceBufferList":false,"speechSynthesis":false,"SpeechSynthesisEvent":false,"SpeechSynthesisUtterance":false,"StaticRange":false,"status":false,"statusbar":false,"StereoPannerNode":false,"stop":false,"Storage":false,"StorageEvent":false,"StorageManager":false,"styleMedia":false,"StyleSheet":false,"StyleSheetList":false,"SubtleCrypto":false,"SVGAElement":false,"SVGAngle":false,"SVGAnimatedAngle":false,"SVGAnimatedBoolean":false,"SVGAnimatedEnumeration":false,"SVGAnimatedInteger":false,"SVGAnimatedLength":false,"SVGAnimatedLengthList":false,"SVGAnimatedNumber":false,"SVGAnimatedNumberList":false,"SVGAnimatedPreserveAspectRatio":false,"SVGAnimatedRect":false,"SVGAnimatedString":false,"SVGAnimatedTransformList":false,"SVGAnimateElement":false,"SVGAnimateMotionElement":false,"SVGAnimateTransformElement":false,"SVGAnimationElement":false,"SVGCircleElement":false,"SVGClipPathElement":false,"SVGComponentTransferFunctionElement":false,"SVGDefsElement":false,"SVGDescElement":false,"SVGDiscardElement":false,"SVGElement":false,"SVGEllipseElement":false,"SVGFEBlendElement":false,"SVGFEColorMatrixElement":false,"SVGFEComponentTransferElement":false,"SVGFECompositeElement":false,"SVGFEConvolveMatrixElement":false,"SVGFEDiffuseLightingElement":false,"SVGFEDisplacementMapElement":false,"SVGFEDistantLightElement":false,"SVGFEDropShadowElement":false,"SVGFEFloodElement":false,"SVGFEFuncAElement":false,"SVGFEFuncBElement":false,"SVGFEFuncGElement":false,"SVGFEFuncRElement":false,"SVGFEGaussianBlurElement":false,"SVGFEImageElement":false,"SVGFEMergeElement":false,"SVGFEMergeNodeElement":false,"SVGFEMorphologyElement":false,"SVGFEOffsetElement":false,"SVGFEPointLightElement":false,"SVGFESpecularLightingElement":false,"SVGFESpotLightElement":false,"SVGFETileElement":false,"SVGFETurbulenceElement":false,"SVGFilterElement":false,"SVGForeignObjectElement":false,"SVGGElement":false,"SVGGeometryElement":false,"SVGGradientElement":false,"SVGGraphicsElement":false,"SVGImageElement":false,"SVGLength":false,"SVGLengthList":false,"SVGLinearGradientElement":false,"SVGLineElement":false,"SVGMarkerElement":false,"SVGMaskElement":false,"SVGMatrix":false,"SVGMetadataElement":false,"SVGMPathElement":false,"SVGNumber":false,"SVGNumberList":false,"SVGPathElement":false,"SVGPatternElement":false,"SVGPoint":false,"SVGPointList":false,"SVGPolygonElement":false,"SVGPolylineElement":false,"SVGPreserveAspectRatio":false,"SVGRadialGradientElement":false,"SVGRect":false,"SVGRectElement":false,"SVGScriptElement":false,"SVGSetElement":false,"SVGStopElement":false,"SVGStringList":false,"SVGStyleElement":false,"SVGSVGElement":false,"SVGSwitchElement":false,"SVGSymbolElement":false,"SVGTextContentElement":false,"SVGTextElement":false,"SVGTextPathElement":false,"SVGTextPositioningElement":false,"SVGTitleElement":false,"SVGTransform":false,"SVGTransformList":false,"SVGTSpanElement":false,"SVGUnitTypes":false,"SVGUseElement":false,"SVGViewElement":false,"TaskAttributionTiming":false,"Text":false,"TextDecoder":false,"TextEncoder":false,"TextEvent":false,"TextMetrics":false,"TextTrack":false,"TextTrackCue":false,"TextTrackCueList":false,"TextTrackList":false,"TimeRanges":false,"toolbar":false,"top":false,"Touch":false,"TouchEvent":false,"TouchList":false,"TrackEvent":false,"TransitionEvent":false,"TreeWalker":false,"UIEvent":false,"URL":false,"URLSearchParams":false,"ValidityState":false,"visualViewport":false,"VisualViewport":false,"VTTCue":false,"WaveShaperNode":false,"WebAssembly":false,"WebGL2RenderingContext":false,"WebGLActiveInfo":false,"WebGLBuffer":false,"WebGLContextEvent":false,"WebGLFramebuffer":false,"WebGLProgram":false,"WebGLQuery":false,"WebGLRenderbuffer":false,"WebGLRenderingContext":false,"WebGLSampler":false,"WebGLShader":false,"WebGLShaderPrecisionFormat":false,"WebGLSync":false,"WebGLTexture":false,"WebGLTransformFeedback":false,"WebGLUniformLocation":false,"WebGLVertexArrayObject":false,"WebSocket":false,"WheelEvent":false,"window":false,"Window":false,"Worker":false,"WritableStream":false,"XMLDocument":false,"XMLHttpRequest":false,"XMLHttpRequestEventTarget":false,"XMLHttpRequestUpload":false,"XMLSerializer":false,"XPathEvaluator":false,"XPathExpression":false,"XPathResult":false,"XSLTProcessor":false},"worker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"clearInterval":false,"clearTimeout":false,"close":true,"console":false,"fetch":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":true,"indexedDB":false,"location":false,"MessageChannel":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onlanguagechange":true,"onmessage":true,"onoffline":true,"ononline":true,"onrejectionhandled":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"removeEventListener":false,"Request":false,"Response":false,"self":true,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"node":{"__dirname":false,"__filename":false,"Buffer":false,"clearImmediate":false,"clearInterval":false,"clearTimeout":false,"console":false,"exports":true,"global":false,"Intl":false,"module":false,"process":false,"queueMicrotask":false,"require":false,"setImmediate":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false},"commonjs":{"exports":true,"global":false,"module":false,"require":false},"amd":{"define":false,"require":false},"mocha":{"after":false,"afterEach":false,"before":false,"beforeEach":false,"context":false,"describe":false,"it":false,"mocha":false,"run":false,"setup":false,"specify":false,"suite":false,"suiteSetup":false,"suiteTeardown":false,"teardown":false,"test":false,"xcontext":false,"xdescribe":false,"xit":false,"xspecify":false},"jasmine":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fail":false,"fdescribe":false,"fit":false,"it":false,"jasmine":false,"pending":false,"runs":false,"spyOn":false,"spyOnProperty":false,"waits":false,"waitsFor":false,"xdescribe":false,"xit":false},"jest":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fdescribe":false,"fit":false,"it":false,"jest":false,"pit":false,"require":false,"test":false,"xdescribe":false,"xit":false,"xtest":false},"qunit":{"asyncTest":false,"deepEqual":false,"equal":false,"expect":false,"module":false,"notDeepEqual":false,"notEqual":false,"notOk":false,"notPropEqual":false,"notStrictEqual":false,"ok":false,"propEqual":false,"QUnit":false,"raises":false,"start":false,"stop":false,"strictEqual":false,"test":false,"throws":false},"phantomjs":{"console":true,"exports":true,"phantom":true,"require":true,"WebPage":true},"couch":{"emit":false,"exports":false,"getRow":false,"log":false,"module":false,"provides":false,"require":false,"respond":false,"send":false,"start":false,"sum":false},"rhino":{"defineClass":false,"deserialize":false,"gc":false,"help":false,"importClass":false,"importPackage":false,"java":false,"load":false,"loadClass":false,"Packages":false,"print":false,"quit":false,"readFile":false,"readUrl":false,"runCommand":false,"seal":false,"serialize":false,"spawn":false,"sync":false,"toint32":false,"version":false},"nashorn":{"__DIR__":false,"__FILE__":false,"__LINE__":false,"com":false,"edu":false,"exit":false,"java":false,"Java":false,"javafx":false,"JavaImporter":false,"javax":false,"JSAdapter":false,"load":false,"loadWithNewGlobal":false,"org":false,"Packages":false,"print":false,"quit":false},"wsh":{"ActiveXObject":true,"Enumerator":true,"GetObject":true,"ScriptEngine":true,"ScriptEngineBuildVersion":true,"ScriptEngineMajorVersion":true,"ScriptEngineMinorVersion":true,"VBArray":true,"WScript":true,"WSH":true,"XDomainRequest":true},"jquery":{"$":false,"jQuery":false},"yui":{"YAHOO":false,"YAHOO_config":false,"YUI":false,"YUI_config":false},"shelljs":{"cat":false,"cd":false,"chmod":false,"config":false,"cp":false,"dirs":false,"echo":false,"env":false,"error":false,"exec":false,"exit":false,"find":false,"grep":false,"ln":false,"ls":false,"mkdir":false,"mv":false,"popd":false,"pushd":false,"pwd":false,"rm":false,"sed":false,"set":false,"target":false,"tempdir":false,"test":false,"touch":false,"which":false},"prototypejs":{"$":false,"$$":false,"$A":false,"$break":false,"$continue":false,"$F":false,"$H":false,"$R":false,"$w":false,"Abstract":false,"Ajax":false,"Autocompleter":false,"Builder":false,"Class":false,"Control":false,"Draggable":false,"Draggables":false,"Droppables":false,"Effect":false,"Element":false,"Enumerable":false,"Event":false,"Field":false,"Form":false,"Hash":false,"Insertion":false,"ObjectRange":false,"PeriodicalExecuter":false,"Position":false,"Prototype":false,"Scriptaculous":false,"Selector":false,"Sortable":false,"SortableObserver":false,"Sound":false,"Template":false,"Toggle":false,"Try":false},"meteor":{"_":false,"$":false,"Accounts":false,"AccountsClient":false,"AccountsCommon":false,"AccountsServer":false,"App":false,"Assets":false,"Blaze":false,"check":false,"Cordova":false,"DDP":false,"DDPRateLimiter":false,"DDPServer":false,"Deps":false,"EJSON":false,"Email":false,"HTTP":false,"Log":false,"Match":false,"Meteor":false,"Mongo":false,"MongoInternals":false,"Npm":false,"Package":false,"Plugin":false,"process":false,"Random":false,"ReactiveDict":false,"ReactiveVar":false,"Router":false,"ServiceConfiguration":false,"Session":false,"share":false,"Spacebars":false,"Template":false,"Tinytest":false,"Tracker":false,"UI":false,"Utils":false,"WebApp":false,"WebAppInternals":false},"mongo":{"_isWindows":false,"_rand":false,"BulkWriteResult":false,"cat":false,"cd":false,"connect":false,"db":false,"getHostName":false,"getMemInfo":false,"hostname":false,"ISODate":false,"listFiles":false,"load":false,"ls":false,"md5sumFile":false,"mkdir":false,"Mongo":false,"NumberInt":false,"NumberLong":false,"ObjectId":false,"PlanCache":false,"print":false,"printjson":false,"pwd":false,"quit":false,"removeFile":false,"rs":false,"sh":false,"UUID":false,"version":false,"WriteResult":false},"applescript":{"$":false,"Application":false,"Automation":false,"console":false,"delay":false,"Library":false,"ObjC":false,"ObjectSpecifier":false,"Path":false,"Progress":false,"Ref":false},"serviceworker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"CacheStorage":false,"clearInterval":false,"clearTimeout":false,"Client":false,"clients":false,"Clients":false,"close":true,"console":false,"ExtendableEvent":false,"ExtendableMessageEvent":false,"fetch":false,"FetchEvent":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":false,"indexedDB":false,"location":false,"MessageChannel":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onfetch":true,"oninstall":true,"onlanguagechange":true,"onmessage":true,"onmessageerror":true,"onnotificationclick":true,"onnotificationclose":true,"onoffline":true,"ononline":true,"onpush":true,"onpushsubscriptionchange":true,"onrejectionhandled":true,"onsync":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"registration":false,"removeEventListener":false,"Request":false,"Response":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerGlobalScope":false,"ServiceWorkerMessageEvent":false,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"skipWaiting":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"WindowClient":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"atomtest":{"advanceClock":false,"fakeClearInterval":false,"fakeClearTimeout":false,"fakeSetInterval":false,"fakeSetTimeout":false,"resetTimeouts":false,"waitsForPromise":false},"embertest":{"andThen":false,"click":false,"currentPath":false,"currentRouteName":false,"currentURL":false,"fillIn":false,"find":false,"findAll":false,"findWithAssert":false,"keyEvent":false,"pauseTest":false,"resumeTest":false,"triggerEvent":false,"visit":false,"wait":false},"protractor":{"$":false,"$$":false,"browser":false,"by":false,"By":false,"DartObject":false,"element":false,"protractor":false},"shared-node-browser":{"clearInterval":false,"clearTimeout":false,"console":false,"setInterval":false,"setTimeout":false,"URL":false,"URLSearchParams":false},"webextensions":{"browser":false,"chrome":false,"opr":false},"greasemonkey":{"cloneInto":false,"createObjectIn":false,"exportFunction":false,"GM":false,"GM_addStyle":false,"GM_deleteValue":false,"GM_getResourceText":false,"GM_getResourceURL":false,"GM_getValue":false,"GM_info":false,"GM_listValues":false,"GM_log":false,"GM_openInTab":false,"GM_registerMenuCommand":false,"GM_setClipboard":false,"GM_setValue":false,"GM_xmlhttpRequest":false,"unsafeWindow":false},"devtools":{"$":false,"$_":false,"$$":false,"$0":false,"$1":false,"$2":false,"$3":false,"$4":false,"$x":false,"chrome":false,"clear":false,"copy":false,"debug":false,"dir":false,"dirxml":false,"getEventListeners":false,"inspect":false,"keys":false,"monitor":false,"monitorEvents":false,"profile":false,"profileEnd":false,"queryObjects":false,"table":false,"undebug":false,"unmonitor":false,"unmonitorEvents":false,"values":false}}\')}},t={};function __webpack_require__(r){var i=t[r];if(void 0!==i)return i.exports;var n=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};(()=>{"use strict";__webpack_require__.d(r,{parseSourceAndMetadata:()=>parseSourceAndMetadata_worker_parseSourceAndMetadata,purgeCachedMetadata:()=>parseSourceAndMetadata_worker_purgeCachedMetadata});var e=__webpack_require__(7493),t=__webpack_require__(3018),i=__webpack_require__.n(t);const n=!1,s=!1,a="undefined"!=typeof performance&&"function"==typeof performance.mark&&"function"==typeof performance.clearMarks,o="undefined"!=typeof performance&&"function"==typeof performance.now;function mark(e){a&&performance.mark(e+"-start")}function measure(e){a&&(performance.mark(e+"-end"),performance.measure(e,e+"-start",e+"-end"),performance.clearMarks(e+"-start"),performance.clearMarks(e+"-end"))}function now(){return o?performance.now():Date.now()}function withSyncPerfMeasurements(e,t,r){const i=now();s&&mark(e);const n=t();if(s&&measure(e),null!=r){r(now()-i)}return n}var l=__webpack_require__(1910);const c="<no-hook>",u=Object.freeze({PROGRAM:"Program",CALL_EXPRESSION:"CallExpression",MEMBER_EXPRESSION:"MemberExpression",ARRAY_PATTERN:"ArrayPattern",IDENTIFIER:"Identifier",NUMERIC_LITERAL:"NumericLiteral",VARIABLE_DECLARATOR:"VariableDeclarator"});function checkNodeLocation(e,t,r=null){const{start:i,end:n}=e.node.loc;return t===i.line&&!(null!==r&&(r-=1,t===i.line&&r<i.column||t===n.line&&r>n.column))}function filterMemberWithHookVariableName(e){return e.node.init.property.type===u.NUMERIC_LITERAL&&0===e.node.init.property.value}function getFilteredHookASTNodes(e,t,r){let i=[];return!function(e){const t=e.node.id;if(t.type===u.ARRAY_PATTERN||t.type===u.IDENTIFIER&&!isBuiltInHookThatReturnsTuple(e))return!0;return!1}(e)?i=t.filter((t=>function(e,t){const r=e.node.id.name;return null!=r&&(r===(t.node.init.object&&t.node.init.object.name)||r===t.node.init.name)}(e,t))):i.unshift(e),i}function getHookName(e,t,r,i,n){const s=withSyncPerfMeasurements("getPotentialHookDeclarationsFromAST(originalSourceAST)",(()=>function(e){const t=[];return withSyncPerfMeasurements("traverse(sourceAST)",(()=>(0,l.default)(e,{enter(e){e.isVariableDeclarator()&&function(e){const t=e.node.init;if(null!=t){if(t.type===u.CALL_EXPRESSION){return isHook(t.callee)}if(t.type===u.MEMBER_EXPRESSION||t.type===u.IDENTIFIER)return!0}return!1}(e)&&t.push(e)}}))),t}(t)));let a=null;if(0===n){const e=s.filter((e=>{const t=checkNodeLocation(e,i),r=isConfirmedHookDeclaration(e);return t&&r}));1===e.length&&(a=e[0])}else a=s.find((e=>{const t=checkNodeLocation(e,i,n),r=isConfirmedHookDeclaration(e);return t&&r}));if(!a)return null;try{const t=withSyncPerfMeasurements("getFilteredHookASTNodes()",(()=>getFilteredHookASTNodes(a,s))),r=withSyncPerfMeasurements("getHookNameFromNode()",(()=>function(e,t,r){let i;const n=null===e.id;switch(t.length){case 1:if(n&&t[0]===r){i=getHookVariableName(r,n);break}i=getHookVariableName(t[0]);break;case 2:if(1!==(t=t.filter((e=>filterMemberWithHookVariableName(e)))).length)throw new Error("Couldn\'t isolate AST Node containing hook variable.");i=getHookVariableName(t[0]);break;default:i=getHookVariableName(r)}return i}(e,t,a)));return r}catch(e){return console.error(e),null}}function getHookVariableName(e,t=!1){switch(e.node.id.type){case u.ARRAY_PATTERN:return t?null:e.node.id.elements[0]?.name??null;case u.IDENTIFIER:return e.node.id.name;default:return null}}function isConfirmedHookDeclaration(e){const t=e.node.init;if(null==t||t.type!==u.CALL_EXPRESSION)return!1;return isHook(t.callee)}function isHook(e){if(e.type===u.IDENTIFIER)return t=e.name,/^use[A-Z0-9].*$/.test(t);if(e.type===u.MEMBER_EXPRESSION&&!e.computed&&isHook(e.property)){const t=e.object,r=/^[A-Z].*/;return t.type===u.IDENTIFIER&&r.test(t.name)}return!1;var t}function isReactFunction(e,t){return e.name===t||"MemberExpression"===e.type&&"React"===e.object.name&&e.property.name===t}function isBuiltInHookThatReturnsTuple(e){const t=e.node.init.callee;return isReactFunction(t,"useState")||isReactFunction(t,"useReducer")||isReactFunction(t,"useTransition")}var p=__webpack_require__(8715),d=__webpack_require__.n(p),h=__webpack_require__(4468);let f=null;new WeakMap;function getHookSourceLocationKey({fileName:e,lineNumber:t,columnNumber:r}){if(null==e||null==t||null==r)throw Error("Hook source code location not found.");return`${e}:${t}:${r}`}for(var m=__webpack_require__(6651),y={},T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",g=0;g<T.length;g++)y[T.charCodeAt(g)]=g;function decode(e){for(var t=[],r=[],i=[0,0,0,0,0],n=0,s=0,a=0,o=0;s<e.length;s++){var l=e.charCodeAt(s);if(44===l)segmentify(r,i,n),n=0;else if(59===l)segmentify(r,i,n),n=0,t.push(r),r=[],i[0]=0;else{var c=y[l];if(void 0===c)throw new Error("Invalid character ("+String.fromCharCode(l)+")");var u=32&c;if(o+=(c&=31)<<a,u)a+=5;else{var p=1&o;o>>>=1,p&&(o=0===o?-2147483648:-o),i[n]+=o,n++,o=a=0}}}return segmentify(r,i,n),t.push(r),t}function segmentify(e,t,r){4===r?e.push([t[0],t[1],t[2],t[3]]):5===r?e.push([t[0],t[1],t[2],t[3],t[4]]):1===r&&e.push([t[0]])}function getHookNameForLocation(e,t){const{names:r,mappings:i}=t,n=binSearch(e,i,compareLinePositions);if(null==n)throw new Error(`Expected to find a line in the HookMap that covers the target location at line: ${e.line}, column: ${e.column}`);let s;if(s=getLineNumberFromLine(n)!==e.line?n[n.length-1]:binSearch(e,n,compareColumnPositions),null==s)throw new Error(`Expected to find a mapping in the HookMap that covers the target location at line: ${e.line}, column: ${e.column}`);const a=function(e){const t=e[2];if(null==t)throw new Error("Unexpected hook name index missing in entry in HookMap");return t}(s);if(null==a)throw new Error(`Expected to find a name index in the HookMap that covers the target location at line: ${e.line}, column: ${e.column}`);const o=r[a];if(null==o)throw new Error(`Expected to find a name in the HookMap that covers the target location at line: ${e.line}, column: ${e.column}`);return o===c?null:o}function binSearch(e,t,r){let i,n=t.length,s=0,a=0;for(;n>0;){s=a,i=Math.floor(n/2),s+=i;const o=r(e,t,s);if(0===o.direction){if(null==o.index)throw new Error("Expected an index when matching element is found.");a=o.index;break}o.direction>0?(s++,a=s,n-=i+1):n=i}return null!=a?t[a]:null}function compareLinePositions(e,t,r){const i=r,n=t[i];if(null==n)throw new Error(`Unexpected line missing in HookMap at index ${r}.`);const s=getLineNumberFromLine(n);let a,o=r+1;const l=t[o];return null!=l?a=getLineNumberFromLine(l):(o=i,a=s),s===e.line?{index:i,direction:0}:a===e.line||e.line>a&&null==l?{index:o,direction:0}:s<e.line&&e.line<a?{index:i,direction:0}:{index:null,direction:e.line-s}}function compareColumnPositions(e,t,r){const i=r,n=t[r];if(null==n)throw new Error(`Unexpected mapping missing in HookMap line at index ${r}.`);const s=getColumnNumberFromEntry(n);let a,o=r+1;const l=t[o];return null!=l?a=getColumnNumberFromEntry(l):(o=i,a=s),s===e.column?{index:i,direction:0}:a===e.column||e.column>a&&null==l?{index:o,direction:0}:s<e.column&&e.column<a?{index:i,direction:0}:{index:null,direction:e.column-s}}function getLineNumberFromLine(e){return function(e){const t=e[0];if(null==t)throw new Error("Unexpected line number missing in entry in HookMap");return t}(e[0])}function getColumnNumberFromEntry(e){const t=e[1];if(null==t)throw new Error("Unexpected column number missing in entry in HookMap");return t}const b="x_react_sources",S="x_facebook_sources";function normalizeSourcePath(e,t){const{sourceRoot:r}=t;let i=e;return i=String(i),i=m.normalize(i),i=null!=r&&m.isAbsolute(r)&&m.isAbsolute(i)?m.relative(r,i):i,m.computeSourceURL(r,i)}class x{constructor(e){this._sourceMap=e,this._decodedHookMapCache=new Map,this._metadataBySource=null}hookNameFor({line:e,column:t,source:r}){if(null==r)return null;const i=this._getHookMapForSource(r);return null==i?null:getHookNameForLocation({line:e,column:t},i)}hasHookMap(e){return null!=e&&null!=this._getHookMapForSource(e)}_getMetadataBySource(){return null==this._metadataBySource&&(this._metadataBySource=this._getMetadataObjectsBySourceNames(this._sourceMap)),this._metadataBySource}_getMetadataObjectsBySourceNames(e){if(void 0===e.mappings){const t=e,r=new Map;return t.sections.forEach((e=>{this._getMetadataObjectsBySourceNames(e.map).forEach(((e,t)=>{r.set(t,e)}))})),r}const t=new Map,r=e,updateMap=(e,i)=>{let n=r.sources[i];null!=n&&(n=normalizeSourcePath(n,r),t.set(n,e))};if(e.hasOwnProperty(b)&&null!=e[b]){e[b].filter(Boolean).forEach(updateMap)}else if(e.hasOwnProperty(S)&&null!=e[S]){const t=e[S];null!=t&&t.forEach(((e,t)=>{const r=null!=e?e[1]:null;null!=r&&updateMap(r,t)}))}return t}_getHookMapForSource(e){if(this._decodedHookMapCache.has(e))return this._decodedHookMapCache.get(e);let t=null;const r=this._getMetadataBySource(),i=normalizeSourcePath(e,this._sourceMap),n=r.get(i);if(null!=n){const e=n[0];t=null!=e?function(e){return{names:e.names,mappings:decode(e.mappings)}}(e):null}return null!=t&&this._decodedHookMapCache.set(e,t),t}}function SourceMapConsumer(e){return null!=e.sections?function(e){let t={line:-1,column:0};const r=e.sections.map((e=>{const r=e.offset,i=r.line,n=r.column;if(i<t.line||i===t.line&&n<t.column)throw new Error("Section offsets must be ordered and non-overlapping.");return t=r,{generatedLine:i+1,generatedColumn:n+1,map:e.map,sourceMapConsumer:null}}));function originalPositionFor({columnNumber:e,lineNumber:t}){const i=e-1;let n=null,s=0,a=r.length-1,o=-1;for(;s<=a;){o=Math.floor((a+s)/2),n=r[o];const e=n.generatedLine;if(e===t){const e=n.generatedColumn;if(e===t)break;if(e>i){if(!(a-o>0)){o=a;break}a=o}else{if(!(o-s>0)){o=s;break}s=o}}else if(e>t){if(!(a-o>0)){o=a;break}a=o}else{if(!(o-s>0)){o=s;break}s=o}}if(null==n)throw Error(`Could not find matching section for line:${t} and column:${e}`);return null===n.sourceMapConsumer&&(n.sourceMapConsumer=new SourceMapConsumer(n.map)),n.sourceMapConsumer.originalPositionFor({columnNumber:e,lineNumber:t})}return{originalPositionFor}}(e):function(e){const t=withSyncPerfMeasurements("Decoding source map mappings with sourcemap-codec",(()=>decode(e.mappings)));function originalPositionFor({columnNumber:r,lineNumber:i}){const n=r-1,s=t[i-1];let a=null,o=0,l=s.length-1,c=-1;for(;o<=l;){c=Math.floor((l+o)/2),a=s[c];const e=a[0];if(e===n)break;if(e>n){if(!(l-c>0)){c=l;break}l=c}else{if(!(c-o>0)){c=o;break}o=c}}for(;c>0;){if(s[c-1][0]!==n)break;c--}if(null==a)throw Error(`Could not find runtime location for line:${i} and column:${r}`);const u=a[1],p=null!=e.sourcesContent?e.sourcesContent[u]:null,d=e.sources[u]??null,h=a[2]+1,f=a[3];if(null===p||null===d)throw Error(`Could not find original source for line:${i} and column:${r}`);return{column:f,line:h,sourceContent:p,sourceURL:d}}return{originalPositionFor}}(e)}const P=new(i())({max:50}),v=new(i())({max:50,dispose:(e,t)=>{n&&console.log(`originalURLToMetadataCache.dispose() Evicting cached metadata for "${e}"`)}});const parseSourceAndMetadata_worker_parseSourceAndMetadata=async function(t,r){return async function(e,t,r){const i=now();s&&mark(e);const n=await t();s&&measure(e),null!=r&&r(now()-i);return n}("parseSourceAndMetadata()",(async()=>{const i=withSyncPerfMeasurements("initializeHookParsedMetadata",(()=>function(e){const t=new Map;return e.forEach(((e,r)=>{const i={metadataConsumer:null,originalSourceAST:null,originalSourceCode:null,originalSourceURL:null,originalSourceLineNumber:null,originalSourceColumnNumber:null,sourceMapConsumer:null};t.set(r,i)})),t}(r)));return withSyncPerfMeasurements("parseSourceMaps",(()=>function(e,t){e.forEach(((e,r)=>{const i=t.get(r);if(null==i)throw Error(`Expected to find HookParsedMetadata for "${r}"`);const{runtimeSourceURL:s,sourceMapJSON:a}=e,o=P.get(s);if(null!=o)n&&(console.groupCollapsed(`parseHookNames() Found cached runtime metadata for file "${s}"`),console.log(o),console.groupEnd()),i.metadataConsumer=o.metadataConsumer,i.sourceMapConsumer=o.sourceMapConsumer;else if(null!=a){const e=withSyncPerfMeasurements("new SourceMapConsumer(sourceMapJSON)",(()=>SourceMapConsumer(a))),t=withSyncPerfMeasurements("new SourceMapMetadataConsumer(sourceMapJSON)",(()=>new x(a)));i.metadataConsumer=t,i.sourceMapConsumer=e,P.set(s,{metadataConsumer:t,sourceMapConsumer:e})}}))}(r,i))),withSyncPerfMeasurements("parseSourceAST()",(()=>function(t,r){t.forEach(((t,i)=>{const s=r.get(i);if(null==s)throw Error(`Expected to find HookParsedMetadata for "${i}"`);if(null!==s.originalSourceAST)return;if(null!=s.originalSourceURL&&null!=s.originalSourceCode&&null!=s.originalSourceColumnNumber&&null!=s.originalSourceLineNumber)return;const{lineNumber:a,columnNumber:o}=t.hookSource;if(null==a||null==o)throw Error("Hook source code location not found.");const{metadataConsumer:l,sourceMapConsumer:c}=s,u=t.runtimeSourceCode;let p,m,y,T,g=!1;if(function(){if(null===f)try{(0,h.ZP)(),f=!1}catch(e){d().parse(e)[0].lineNumber===h.U1&&(f=!0)}return!0===f}()||null===c)y=o,T=a,m=u,p=t.runtimeSourceURL;else{const{column:e,line:t,sourceContent:r,sourceURL:i}=c.originalPositionFor({columnNumber:o,lineNumber:a});y=e,T=t,m=r,p=i}if(s.originalSourceCode=m,s.originalSourceURL=p,s.originalSourceLineNumber=T,s.originalSourceColumnNumber=y,null!=l&&l.hasHookMap(p)&&(g=!0),n&&console.log(`parseSourceAST() mapped line ${a}->${T} and column ${o}->${y}`),g)return void(n&&console.log(`parseSourceAST() Found hookMap and skipping parsing for "${p}"`));n&&console.log(`parseSourceAST() Did not find hook map for "${p}"`);const b=v.get(p);if(null!=b)n&&(console.groupCollapsed(`parseSourceAST() Found cached source metadata for "${p}"`),console.log(b),console.groupEnd()),s.originalSourceAST=b.originalSourceAST,s.originalSourceCode=b.originalSourceCode;else try{const t=m.indexOf("@flow")>0?"flow":"typescript",r=withSyncPerfMeasurements("[@babel/parser] parse(originalSourceCode)",(()=>(0,e.parse)(m,{sourceType:"unambiguous",plugins:["jsx",t]})));s.originalSourceAST=r,n&&console.log(`parseSourceAST() Caching source metadata for "${p}"`),v.set(p,{originalSourceAST:r,originalSourceCode:m})}catch(e){throw new Error(`Failed to parse source file: ${p}\\n\\nOriginal error: ${e}`)}}))}(r,i))),withSyncPerfMeasurements("findHookNames()",(()=>function(e,t){const r=new Map;return e.map((e=>{const i=e.hookSource;if(!i.fileName)return null;const s=getHookSourceLocationKey(i),a=t.get(s);if(!a)return null;const{lineNumber:o,columnNumber:l}=i;if(!o||!l)return null;const{originalSourceURL:c,originalSourceColumnNumber:u,originalSourceLineNumber:p}=a;if(null==p||null==u||null==c)return null;let d;const{metadataConsumer:h}=a;null!=h&&(d=withSyncPerfMeasurements("metadataConsumer.hookNameFor()",(()=>h.hookNameFor({line:p,column:u,source:c})))),null==d&&(d=withSyncPerfMeasurements("getHookName()",(()=>getHookName(e,a.originalSourceAST,a.originalSourceCode,p,u)))),n&&console.log(`findHookNames() Found name "${d||"-"}"`);const f=getHookSourceLocationKey(i);r.set(f,d)})),r}(t,i)))}))},parseSourceAndMetadata_worker_purgeCachedMetadata=function(){v.reset(),P.reset()};addEventListener("message",(function(e){var t,i=e.data,n=i.type,s=i.method,a=i.id,o=i.params;"RPC"===n&&s&&((t=r[s])?Promise.resolve().then((function(){return t.apply(r,o)})):Promise.reject("No such method")).then((function(e){postMessage({type:"RPC",id:a,result:e})})).catch((function(e){var t={message:e};e.stack&&(t.message=e.message,t.stack=e.stack,t.name=e.name),postMessage({type:"RPC",id:a,error:t})}))})),postMessage({type:"RPC",method:"ready"})})()})();\n//# sourceMappingURL=parseSourceAndMetadata.worker.worker.js.map'])),{name:"[name].worker.js"});return URL.revokeObjectURL(URL.createObjectURL(new Blob(['(()=>{var e={785:(e,t,r)=>{"use strict";var i=r(397);Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=codeFrameColumns,t.default=function(e,t,r,n={}){if(!s){s=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(i.emitWarning)i.emitWarning(e,"DeprecationWarning");else{new Error(e).name="DeprecationWarning",console.warn(new Error(e))}}r=Math.max(r,0);return codeFrameColumns(e,{start:{column:r,line:t}},n)};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(7012));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}let s=!1;const a=/\\r\\n|[\\n\\r\\u2028\\u2029]/;function codeFrameColumns(e,t,r={}){const i=(r.highlightCode||r.forceColor)&&(0,n.shouldHighlight)(r),s=(0,n.getChalk)(r),o=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(s),maybeHighlight=(e,t)=>i?e(t):t,l=e.split(a),{start:c,end:u,markerLines:p}=function(e,t,r){const i=Object.assign({column:0,line:-1},e.start),n=Object.assign({},i,e.end),{linesAbove:s=2,linesBelow:a=3}=r||{},o=i.line,l=i.column,c=n.line,u=n.column;let p=Math.max(o-(s+1),0),d=Math.min(t.length,c+a);-1===o&&(p=0),-1===c&&(d=t.length);const h=c-o,f={};if(h)for(let e=0;e<=h;e++){const r=e+o;if(l)if(0===e){const e=t[r-1].length;f[r]=[l,e-l+1]}else if(e===h)f[r]=[0,u];else{const i=t[r-e].length;f[r]=[0,i]}else f[r]=!0}else f[o]=l===u?!l||[l,0]:[l,u-l];return{start:p,end:d,markerLines:f}}(t,l,r),d=t.start&&"number"==typeof t.start.column,h=String(u).length;let f=(i?(0,n.default)(e,r):e).split(a).slice(c,u).map(((e,t)=>{const i=c+1+t,n=` ${` ${i}`.slice(-h)} |`,s=p[i],a=!p[i+1];if(s){let t="";if(Array.isArray(s)){const i=e.slice(0,Math.max(s[0]-1,0)).replace(/[^\\t]/g," "),l=s[1]||1;t=["\\n ",maybeHighlight(o.gutter,n.replace(/\\d/g," "))," ",i,maybeHighlight(o.marker,"^").repeat(l)].join(""),a&&r.message&&(t+=" "+maybeHighlight(o.message,r.message))}return[maybeHighlight(o.marker,">"),maybeHighlight(o.gutter,n),e.length>0?` ${e}`:"",t].join("")}return` ${maybeHighlight(o.gutter,n)}${e.length>0?` ${e}`:""}`})).join("\\n");return r.message&&!d&&(f=`${" ".repeat(h+1)}${r.message}\\n${f}`),i?s.reset(f):f}},6163:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({node:e,parent:t,scope:r,id:n},c=!1){if(e.id)return;if(!s.isObjectProperty(t)&&!s.isObjectMethod(t,{kind:"method"})||t.computed&&!s.isLiteral(t.key)){if(s.isVariableDeclarator(t)){if(n=t.id,s.isIdentifier(n)&&!c){const t=r.parent.getBinding(n.name);if(t&&t.constant&&r.getBinding(n.name)===t)return e.id=s.cloneNode(n),void(e.id[s.NOT_LOCAL_BINDING]=!0)}}else if(s.isAssignmentExpression(t,{operator:"="}))n=t.left;else if(!n)return}else n=t.key;let u;n&&s.isLiteral(n)?u=function(e){if(s.isNullLiteral(e))return"null";if(s.isRegExpLiteral(e))return`_${e.pattern}_${e.flags}`;if(s.isTemplateLiteral(e))return e.quasis.map((e=>e.value.raw)).join("");if(void 0!==e.value)return e.value+"";return""}(n):n&&s.isIdentifier(n)&&(u=n.name);if(void 0===u)return;u=s.toBindingIdentifierName(u),(n=s.identifier(u))[s.NOT_LOCAL_BINDING]=!0;return function(e,t,r,n){if(e.selfReference){if(!n.hasBinding(r.name)||n.hasGlobal(r.name)){if(!s.isFunction(t))return;let e=a;t.generator&&(e=o);const l=e({FUNCTION:t,FUNCTION_ID:r,FUNCTION_KEY:n.generateUidIdentifier(r.name)}).expression,c=l.callee.body.body[0].params;for(let e=0,r=(0,i.default)(t);e<r;e++)c.push(n.generateUidIdentifier("x"));return l}n.rename(r.name)}t.id=r,n.getProgramParent().references[r.name]=!0}(function(e,t,r){const i={selfAssignment:!1,selfReference:!1,outerDeclar:r.getBindingIdentifier(t),references:[],name:t},n=r.getOwnBinding(t);n?"param"===n.kind&&(i.selfReference=!0):(i.outerDeclar||r.hasGlobal(t))&&r.traverse(e,l,i);return i}(e,u,r),e,n,r)||e};var i=_interopRequireDefault(r(2442)),n=_interopRequireDefault(r(6205)),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(17));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const a=(0,n.default)("\\n (function (FUNCTION_KEY) {\\n function FUNCTION_ID() {\\n return FUNCTION_KEY.apply(this, arguments);\\n }\\n\\n FUNCTION_ID.toString = function () {\\n return FUNCTION_KEY.toString();\\n }\\n\\n return FUNCTION_ID;\\n })(FUNCTION)\\n"),o=(0,n.default)("\\n (function (FUNCTION_KEY) {\\n function* FUNCTION_ID() {\\n return yield* FUNCTION_KEY.apply(this, arguments);\\n }\\n\\n FUNCTION_ID.toString = function () {\\n return FUNCTION_KEY.toString();\\n };\\n\\n return FUNCTION_ID;\\n })(FUNCTION)\\n"),l={"ReferencedIdentifier|BindingIdentifier"(e,t){if(e.node.name!==t.name)return;e.scope.getBindingIdentifier(t.name)===t.outerDeclar&&(t.selfReference=!0,e.stop())}}},2442:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.params;for(let e=0;e<t.length;e++){const r=t[e];if(i.isAssignmentPattern(r)||i.isRestElement(r))return e}return t.length};var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(17));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}},7224:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!e.isExportDeclaration())throw new Error("Only export declarations can be split.");const t=e.isExportDefaultDeclaration(),r=e.get("declaration"),n=r.isClassDeclaration();if(t){const t=r.isFunctionDeclaration()||n,s=r.isScope()?r.scope.parent:r.scope;let a=r.node.id,o=!1;a||(o=!0,a=s.generateUidIdentifier("default"),(t||r.isFunctionExpression()||r.isClassExpression())&&(r.node.id=i.cloneNode(a)));const l=t?r:i.variableDeclaration("var",[i.variableDeclarator(i.cloneNode(a),r.node)]),c=i.exportNamedDeclaration(null,[i.exportSpecifier(i.cloneNode(a),i.identifier("default"))]);return e.insertAfter(c),e.replaceWith(l),o&&s.registerDeclaration(e),e}if(e.get("specifiers").length>0)throw new Error("It doesn\'t make sense to split exported specifiers.");const s=r.getOuterBindingIdentifiers(),a=Object.keys(s).map((e=>i.exportSpecifier(i.identifier(e),i.identifier(e)))),o=i.exportNamedDeclaration(null,a);return e.insertAfter(o),e.replaceWith(r.node),e};var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(17));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}},9104:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIdentifierStart=isIdentifierStart,t.isIdentifierChar=isIdentifierChar,t.isIdentifierName=function(e){let t=!0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if(55296==(64512&i)&&r+1<e.length){const t=e.charCodeAt(++r);56320==(64512&t)&&(i=65536+((1023&i)<<10)+(1023&t))}if(t){if(t=!1,!isIdentifierStart(i))return!1}else if(!isIdentifierChar(i))return!1}return!t};let r="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA--zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",i="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍--_";const n=new RegExp("["+r+"]"),s=new RegExp("["+r+i+"]");r=i=null;const a=[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,157,310,10,21,11,7,153,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,107,20,28,22,13,52,76,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,85,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,230,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,35,56,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,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,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,8952,286,50,2,18,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,2357,44,11,6,17,0,370,43,1301,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,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],o=[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,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,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,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,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,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let i=0,n=t.length;i<n;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function isIdentifierStart(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&n.test(String.fromCharCode(e)):isInAstralSet(e,a)))}function isIdentifierChar(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&s.test(String.fromCharCode(e)):isInAstralSet(e,a)||isInAstralSet(e,o))))}},7075:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return i.isIdentifierName}}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return i.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return i.isIdentifierStart}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return n.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return n.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return n.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return n.isStrictReservedWord}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return n.isKeyword}});var i=r(9104),n=r(4400)},4400:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isReservedWord=isReservedWord,t.isStrictReservedWord=isStrictReservedWord,t.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord,t.isStrictBindReservedWord=function(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)},t.isKeyword=function(e){return n.has(e)};const r=["implements","interface","let","package","private","protected","public","static","yield"],i=["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"]),s=new Set(r),a=new Set(i);function isReservedWord(e,t){return t&&"await"===e||"enum"===e}function isStrictReservedWord(e,t){return isReservedWord(e,t)||s.has(e)}function isStrictBindOnlyReservedWord(e){return a.has(e)}},7012:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldHighlight=shouldHighlight,t.getChalk=getChalk,t.default=function(e,t={}){if(shouldHighlight(t)){const r=function(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}(getChalk(t));return function(e,t){let r="";for(const{type:i,value:n}of c(t)){const t=e[i];r+=t?n.split(o).map((e=>t(e))).join("\\n"):n}return r}(r,e)}return e};var i=r(7075);const n=r(8631),s=r(1859),a=new Set(["as","async","from","get","of","set"]);const o=/\\r\\n|[\\n\\r\\u2028\\u2029]/,l=/^[()[\\]{}]$/;let c;{const e=/^[a-z][\\w-]*$/i,getTokenType=function(t,r,n){if("name"===t.type){if((0,i.isKeyword)(t.value)||(0,i.isStrictReservedWord)(t.value,!0)||a.has(t.value))return"keyword";if(e.test(t.value)&&("<"===n[r-1]||"</"==n.substr(r-2,2)))return"jsxIdentifier";if(t.value[0]!==t.value[0].toLowerCase())return"capitalized"}return"punctuator"===t.type&&l.test(t.value)?"bracket":"invalid"!==t.type||"@"!==t.value&&"#"!==t.value?t.type:"punctuator"};c=function*(e){let t;for(;t=n.default.exec(e);){const r=n.matchToToken(t);yield{type:getTokenType(r,t.index,e),value:r.value}}}}function shouldHighlight(e){return!!s.supportsColor||e.forceColor}function getChalk(e){return e.forceColor?new s.constructor({enabled:!0,level:1}):s}},5332:(e,t,r)=>{"use strict";e=r.nmd(e);const i=r(5536),wrapAnsi16=(e,t)=>function(){return`[${e.apply(i,arguments)+t}m`},wrapAnsi256=(e,t)=>function(){const r=e.apply(i,arguments);return`[${38+t};5;${r}m`},wrapAnsi16m=(e,t)=>function(){const r=e.apply(i,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(const r of Object.keys(t)){const i=t[r];for(const r of Object.keys(i)){const n=i[r];t[r]={open:`[${n[0]}m`,close:`[${n[1]}m`},i[r]=t[r],e.set(n[0],n[1])}Object.defineProperty(t,r,{value:i,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}const ansi2ansi=e=>e,rgb2rgb=(e,t,r)=>[e,t,r];t.color.close="",t.bgColor.close="",t.color.ansi={ansi:wrapAnsi16(ansi2ansi,0)},t.color.ansi256={ansi256:wrapAnsi256(ansi2ansi,0)},t.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)},t.bgColor.ansi={ansi:wrapAnsi16(ansi2ansi,10)},t.bgColor.ansi256={ansi256:wrapAnsi256(ansi2ansi,10)},t.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,10)};for(let e of Object.keys(i)){if("object"!=typeof i[e])continue;const r=i[e];"ansi16"===e&&(e="ansi"),"ansi16"in r&&(t.color.ansi[e]=wrapAnsi16(r.ansi16,0),t.bgColor.ansi[e]=wrapAnsi16(r.ansi16,10)),"ansi256"in r&&(t.color.ansi256[e]=wrapAnsi256(r.ansi256,0),t.bgColor.ansi256[e]=wrapAnsi256(r.ansi256,10)),"rgb"in r&&(t.color.ansi16m[e]=wrapAnsi16m(r.rgb,0),t.bgColor.ansi16m[e]=wrapAnsi16m(r.rgb,10))}return t}})},1859:(e,t,r)=>{"use strict";var i=r(397);const n=r(1014),s=r(5332),a=r(7440).stdout,o=r(6805),l="win32"===i.platform&&!(i.env.TERM||"").toLowerCase().startsWith("xterm"),c=["ansi","ansi","ansi256","ansi16m"],u=new Set(["gray"]),p=Object.create(null);function applyOptions(e,t){t=t||{};const r=a?a.level:0;e.level=void 0===t.level?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function Chalk(e){if(!this||!(this instanceof Chalk)||this.template){const t={};return applyOptions(t,e),t.template=function(){const e=[].slice.call(arguments);return chalkTag.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,Chalk.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=Chalk,t.template}applyOptions(this,e)}l&&(s.blue.open="");for(const e of Object.keys(s))s[e].closeRe=new RegExp(n(s[e].close),"g"),p[e]={get(){const t=s[e];return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};p.visible={get(){return build.call(this,this._styles||[],!0,"visible")}},s.color.closeRe=new RegExp(n(s.color.close),"g");for(const e of Object.keys(s.color.ansi))u.has(e)||(p[e]={get(){const t=this.level;return function(){const r={open:s.color[c[t]][e].apply(null,arguments),close:s.color.close,closeRe:s.color.closeRe};return build.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}});s.bgColor.closeRe=new RegExp(n(s.bgColor.close),"g");for(const e of Object.keys(s.bgColor.ansi)){if(u.has(e))continue;p["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const r={open:s.bgColor[c[t]][e].apply(null,arguments),close:s.bgColor.close,closeRe:s.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}}}const d=Object.defineProperties((()=>{}),p);function build(e,t,r){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=e,builder._empty=t;const i=this;return Object.defineProperty(builder,"level",{enumerable:!0,get:()=>i.level,set(e){i.level=e}}),Object.defineProperty(builder,"enabled",{enumerable:!0,get:()=>i.enabled,set(e){i.enabled=e}}),builder.hasGrey=this.hasGrey||"gray"===r||"grey"===r,builder.__proto__=d,builder}function applyStyle(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let i=1;i<t;i++)r+=" "+e[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const i=s.dim.open;l&&this.hasGrey&&(s.dim.open="");for(const e of this._styles.slice().reverse())r=e.open+r.replace(e.closeRe,e.open)+e.close,r=r.replace(/\\r?\\n/g,`${e.close}$&${e.open}`);return s.dim.open=i,r}function chalkTag(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const r=[].slice.call(arguments,2),i=[t.raw[0]];for(let e=1;e<t.length;e++)i.push(String(r[e-1]).replace(/[{}\\\\]/g,"\\\\$&")),i.push(String(t.raw[e]));return o(e,i.join(""))}Object.defineProperties(Chalk.prototype,p),e.exports=Chalk(),e.exports.supportsColor=a,e.exports.default=e.exports},6805:e=>{"use strict";const t=/(?:\\\\(u[a-f\\d]{4}|x[a-f\\d]{2}|.))|(?:\\{(~)?(\\w+(?:\\([^)]*\\))?(?:\\.\\w+(?:\\([^)]*\\))?)*)(?:[ \\t]|(?=\\r?\\n)))|(\\})|((?:.|[\\r\\n\\f])+?)/gi,r=/(?:^|\\.)(\\w+)(?:\\(([^)]*)\\))?/g,i=/^([\'"])((?:\\\\.|(?!\\1)[^\\\\])*)\\1$/,n=/\\\\(u[a-f\\d]{4}|x[a-f\\d]{2}|.)|([^\\\\])/gi,s=new Map([["n","\\n"],["r","\\r"],["t","\\t"],["b","\\b"],["f","\\f"],["v","\\v"],["0","\\0"],["\\\\","\\\\"],["e",""],["a",""]]);function unescape(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):s.get(e)||e}function parseArguments(e,t){const r=[],s=t.trim().split(/\\s*,\\s*/g);let a;for(const t of s)if(isNaN(t)){if(!(a=t.match(i)))throw new Error(`Invalid Chalk template style argument: ${t} (in style \'${e}\')`);r.push(a[2].replace(n,((e,t,r)=>t?unescape(t):r)))}else r.push(Number(t));return r}function parseStyle(e){r.lastIndex=0;const t=[];let i;for(;null!==(i=r.exec(e));){const e=i[1];if(i[2]){const r=parseArguments(e,i[2]);t.push([e].concat(r))}else t.push([e])}return t}function buildStyle(e,t){const r={};for(const e of t)for(const t of e.styles)r[t[0]]=e.inverse?null:t.slice(1);let i=e;for(const e of Object.keys(r))if(Array.isArray(r[e])){if(!(e in i))throw new Error(`Unknown Chalk style: ${e}`);i=r[e].length>0?i[e].apply(i,r[e]):i[e]}return i}e.exports=(e,r)=>{const i=[],n=[];let s=[];if(r.replace(t,((t,r,a,o,l,c)=>{if(r)s.push(unescape(r));else if(o){const t=s.join("");s=[],n.push(0===i.length?t:buildStyle(e,i)(t)),i.push({inverse:a,styles:parseStyle(o)})}else if(l){if(0===i.length)throw new Error("Found extraneous } in Chalk template literal");n.push(buildStyle(e,i)(s.join(""))),s=[],i.pop()}else s.push(c)})),n.push(s.join("")),i.length>0){const e=`Chalk template literal is missing ${i.length} closing bracket${1===i.length?"":"s"} (\\`}\\`)`;throw new Error(e)}return n.join("")}},8325:(e,t,r)=>{var i=r(4730),n={};for(var s in i)i.hasOwnProperty(s)&&(n[i[s]]=s);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in a)if(a.hasOwnProperty(o)){if(!("channels"in a[o]))throw new Error("missing channels property: "+o);if(!("labels"in a[o]))throw new Error("missing channel labels property: "+o);if(a[o].labels.length!==a[o].channels)throw new Error("channel and label counts mismatch: "+o);var l=a[o].channels,c=a[o].labels;delete a[o].channels,delete a[o].labels,Object.defineProperty(a[o],"channels",{value:l}),Object.defineProperty(a[o],"labels",{value:c})}a.rgb.hsl=function(e){var t,r,i=e[0]/255,n=e[1]/255,s=e[2]/255,a=Math.min(i,n,s),o=Math.max(i,n,s),l=o-a;return o===a?t=0:i===o?t=(n-s)/l:n===o?t=2+(s-i)/l:s===o&&(t=4+(i-n)/l),(t=Math.min(60*t,360))<0&&(t+=360),r=(a+o)/2,[t,100*(o===a?0:r<=.5?l/(o+a):l/(2-o-a)),100*r]},a.rgb.hsv=function(e){var t,r,i,n,s,a=e[0]/255,o=e[1]/255,l=e[2]/255,c=Math.max(a,o,l),u=c-Math.min(a,o,l),diffc=function(e){return(c-e)/6/u+.5};return 0===u?n=s=0:(s=u/c,t=diffc(a),r=diffc(o),i=diffc(l),a===c?n=i-r:o===c?n=1/3+t-i:l===c&&(n=2/3+r-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*s,100*c]},a.rgb.hwb=function(e){var t=e[0],r=e[1],i=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(r,i))),100*(i=1-1/255*Math.max(t,Math.max(r,i)))]},a.rgb.cmyk=function(e){var t,r=e[0]/255,i=e[1]/255,n=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-i,1-n)))/(1-t)||0),100*((1-i-t)/(1-t)||0),100*((1-n-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=n[e];if(t)return t;var r,s,a,o=1/0;for(var l in i)if(i.hasOwnProperty(l)){var c=i[l],u=(s=e,a=c,Math.pow(s[0]-a[0],2)+Math.pow(s[1]-a[1],2)+Math.pow(s[2]-a[2],2));u<o&&(o=u,r=l)}return r},a.keyword.rgb=function(e){return i[e]},a.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*t+.7152*r+.0722*i),100*(.0193*t+.1192*r+.9505*i)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),r=t[0],i=t[1],n=t[2];return i/=100,n/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(r-i),200*(i-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},a.hsl.rgb=function(e){var t,r,i,n,s,a=e[0]/360,o=e[1]/100,l=e[2]/100;if(0===o)return[s=255*l,s,s];t=2*l-(r=l<.5?l*(1+o):l+o-l*o),n=[0,0,0];for(var c=0;c<3;c++)(i=a+1/3*-(c-1))<0&&i++,i>1&&i--,s=6*i<1?t+6*(r-t)*i:2*i<1?r:3*i<2?t+(r-t)*(2/3-i)*6:t,n[c]=255*s;return n},a.hsl.hsv=function(e){var t=e[0],r=e[1]/100,i=e[2]/100,n=r,s=Math.max(i,.01);return r*=(i*=2)<=1?i:2-i,n*=s<=1?s:2-s,[t,100*(0===i?2*n/(s+n):2*r/(i+r)),100*((i+r)/2)]},a.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,i=e[2]/100,n=Math.floor(t)%6,s=t-Math.floor(t),a=255*i*(1-r),o=255*i*(1-r*s),l=255*i*(1-r*(1-s));switch(i*=255,n){case 0:return[i,l,a];case 1:return[o,i,a];case 2:return[a,i,l];case 3:return[a,o,i];case 4:return[l,a,i];case 5:return[i,a,o]}},a.hsv.hsl=function(e){var t,r,i,n=e[0],s=e[1]/100,a=e[2]/100,o=Math.max(a,.01);return i=(2-s)*a,r=s*o,[n,100*(r=(r/=(t=(2-s)*o)<=1?t:2-t)||0),100*(i/=2)]},a.hwb.rgb=function(e){var t,r,i,n,s,a,o,l=e[0]/360,c=e[1]/100,u=e[2]/100,p=c+u;switch(p>1&&(c/=p,u/=p),i=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(i=1-i),n=c+i*((r=1-u)-c),t){default:case 6:case 0:s=r,a=n,o=c;break;case 1:s=n,a=r,o=c;break;case 2:s=c,a=r,o=n;break;case 3:s=c,a=n,o=r;break;case 4:s=n,a=c,o=r;break;case 5:s=r,a=c,o=n}return[255*s,255*a,255*o]},a.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,i=e[2]/100,n=e[3]/100;return[255*(1-Math.min(1,t*(1-n)+n)),255*(1-Math.min(1,r*(1-n)+n)),255*(1-Math.min(1,i*(1-n)+n))]},a.xyz.rgb=function(e){var t,r,i,n=e[0]/100,s=e[1]/100,a=e[2]/100;return r=-.9689*n+1.8758*s+.0415*a,i=.0557*n+-.204*s+1.057*a,t=(t=3.2406*n+-1.5372*s+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(i=Math.min(Math.max(0,i),1))]},a.xyz.lab=function(e){var t=e[0],r=e[1],i=e[2];return r/=100,i/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.lab.xyz=function(e){var t,r,i,n=e[0];t=e[1]/500+(r=(n+16)/116),i=r-e[2]/200;var s=Math.pow(r,3),a=Math.pow(t,3),o=Math.pow(i,3);return r=s>.008856?s:(r-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,i=o>.008856?o:(i-16/116)/7.787,[t*=95.047,r*=100,i*=108.883]},a.lab.lch=function(e){var t,r=e[0],i=e[1],n=e[2];return(t=360*Math.atan2(n,i)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(i*i+n*n),t]},a.lch.lab=function(e){var t,r=e[0],i=e[1];return t=e[2]/360*2*Math.PI,[r,i*Math.cos(t),i*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],r=e[1],i=e[2],n=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(n=Math.round(n/50)))return 30;var s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===n&&(s+=60),s},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],r=e[1],i=e[2];return t===r&&r===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var i=parseInt(r,16);return[i>>16&255,i>>8&255,255&i]},a.rgb.hcg=function(e){var t,r=e[0]/255,i=e[1]/255,n=e[2]/255,s=Math.max(Math.max(r,i),n),a=Math.min(Math.min(r,i),n),o=s-a;return t=o<=0?0:s===r?(i-n)/o%6:s===i?2+(n-r)/o:4+(r-i)/o+4,t/=6,[360*(t%=1),100*o,100*(o<1?a/(1-o):0)]},a.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,i=1,n=0;return(i=r<.5?2*t*r:2*t*(1-r))<1&&(n=(r-.5*i)/(1-i)),[e[0],100*i,100*n]},a.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,i=t*r,n=0;return i<1&&(n=(r-i)/(1-i)),[e[0],100*i,100*n]},a.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,i=e[2]/100;if(0===r)return[255*i,255*i,255*i];var n,s=[0,0,0],a=t%1*6,o=a%1,l=1-o;switch(Math.floor(a)){case 0:s[0]=1,s[1]=o,s[2]=0;break;case 1:s[0]=l,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=o;break;case 3:s[0]=0,s[1]=l,s[2]=1;break;case 4:s[0]=o,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=l}return n=(1-r)*i,[255*(r*s[0]+n),255*(r*s[1]+n),255*(r*s[2]+n)]},a.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),i=0;return r>0&&(i=t/r),[e[0],100*i,100*r]},a.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,i=0;return r>0&&r<.5?i=t/(2*r):r>=.5&&r<1&&(i=t/(2*(1-r))),[e[0],100*i,100*r]},a.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},a.hwb.hcg=function(e){var t=e[1]/100,r=1-e[2]/100,i=r-t,n=0;return i<1&&(n=(r-i)/(1-i)),[e[0],100*i,100*n]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},5536:(e,t,r)=>{var i=r(8325),n=r(6094),s={};Object.keys(i).forEach((function(e){s[e]={},Object.defineProperty(s[e],"channels",{value:i[e].channels}),Object.defineProperty(s[e],"labels",{value:i[e].labels});var t=n(e);Object.keys(t).forEach((function(r){var i=t[r];s[e][r]=function(e){var wrappedFn=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var i=r.length,n=0;n<i;n++)r[n]=Math.round(r[n]);return r};return"conversion"in e&&(wrappedFn.conversion=e.conversion),wrappedFn}(i),s[e][r].raw=function(e){var wrappedFn=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(wrappedFn.conversion=e.conversion),wrappedFn}(i)}))})),e.exports=s},6094:(e,t,r)=>{var i=r(8325);function deriveBFS(e){var t=function(){for(var e={},t=Object.keys(i),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),s=Object.keys(i[n]),a=s.length,o=0;o<a;o++){var l=s[o],c=t[l];-1===c.distance&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(l))}return t}function link(e,t){return function(r){return t(e(r))}}function wrapConversion(e,t){for(var r=[t[e].parent,e],n=i[t[e].parent][e],s=t[e].parent;t[s].parent;)r.unshift(t[s].parent),n=link(i[t[s].parent][s],n),s=t[s].parent;return n.conversion=r,n}e.exports=function(e){for(var t=deriveBFS(e),r={},i=Object.keys(t),n=i.length,s=0;s<n;s++){var a=i[s];null!==t[a].parent&&(r[a]=wrapConversion(a,t))}return r}},4730:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},7440:e=>{"use strict";e.exports={stdout:!1,stderr:!1}},4494:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=!0,i=!0,n=!0,s=!0;class a{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.updateContext=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}}const o=new Map;function createKeyword(e,t={}){t.keyword=e;const r=new a(e,t);return o.set(e,r),r}function createBinop(e,t){return new a(e,{beforeExpr:r,binop:t})}const l={num:new a("num",{startsExpr:i}),bigint:new a("bigint",{startsExpr:i}),decimal:new a("decimal",{startsExpr:i}),regexp:new a("regexp",{startsExpr:i}),string:new a("string",{startsExpr:i}),name:new a("name",{startsExpr:i}),privateName:new a("#name",{startsExpr:i}),eof:new a("eof"),bracketL:new a("[",{beforeExpr:r,startsExpr:i}),bracketHashL:new a("#[",{beforeExpr:r,startsExpr:i}),bracketBarL:new a("[|",{beforeExpr:r,startsExpr:i}),bracketR:new a("]"),bracketBarR:new a("|]"),braceL:new a("{",{beforeExpr:r,startsExpr:i}),braceBarL:new a("{|",{beforeExpr:r,startsExpr:i}),braceHashL:new a("#{",{beforeExpr:r,startsExpr:i}),braceR:new a("}"),braceBarR:new a("|}"),parenL:new a("(",{beforeExpr:r,startsExpr:i}),parenR:new a(")"),comma:new a(",",{beforeExpr:r}),semi:new a(";",{beforeExpr:r}),colon:new a(":",{beforeExpr:r}),doubleColon:new a("::",{beforeExpr:r}),dot:new a("."),question:new a("?",{beforeExpr:r}),questionDot:new a("?."),arrow:new a("=>",{beforeExpr:r}),template:new a("template"),ellipsis:new a("...",{beforeExpr:r}),backQuote:new a("`",{startsExpr:i}),dollarBraceL:new a("${",{beforeExpr:r,startsExpr:i}),at:new a("@"),hash:new a("#",{startsExpr:i}),interpreterDirective:new a("#!..."),eq:new a("=",{beforeExpr:r,isAssign:true}),assign:new a("_=",{beforeExpr:r,isAssign:true}),incDec:new a("++/--",{prefix:s,postfix:!0,startsExpr:i}),bang:new a("!",{beforeExpr:r,prefix:s,startsExpr:i}),tilde:new a("~",{beforeExpr:r,prefix:s,startsExpr:i}),pipeline:createBinop("|>",0),nullishCoalescing:createBinop("??",1),logicalOR:createBinop("||",1),logicalAND:createBinop("&&",2),bitwiseOR:createBinop("|",3),bitwiseXOR:createBinop("^",4),bitwiseAND:createBinop("&",5),equality:createBinop("==/!=/===/!==",6),relational:createBinop("</>/<=/>=",7),bitShift:createBinop("<</>>/>>>",8),plusMin:new a("+/-",{beforeExpr:r,binop:9,prefix:s,startsExpr:i}),modulo:new a("%",{beforeExpr:r,binop:10,startsExpr:i}),star:new a("*",{binop:10}),slash:createBinop("/",10),exponent:new a("**",{beforeExpr:r,binop:11,rightAssociative:!0}),_break:createKeyword("break"),_case:createKeyword("case",{beforeExpr:r}),_catch:createKeyword("catch"),_continue:createKeyword("continue"),_debugger:createKeyword("debugger"),_default:createKeyword("default",{beforeExpr:r}),_do:createKeyword("do",{isLoop:n,beforeExpr:r}),_else:createKeyword("else",{beforeExpr:r}),_finally:createKeyword("finally"),_for:createKeyword("for",{isLoop:n}),_function:createKeyword("function",{startsExpr:i}),_if:createKeyword("if"),_return:createKeyword("return",{beforeExpr:r}),_switch:createKeyword("switch"),_throw:createKeyword("throw",{beforeExpr:r,prefix:s,startsExpr:i}),_try:createKeyword("try"),_var:createKeyword("var"),_const:createKeyword("const"),_while:createKeyword("while",{isLoop:n}),_with:createKeyword("with"),_new:createKeyword("new",{beforeExpr:r,startsExpr:i}),_this:createKeyword("this",{startsExpr:i}),_super:createKeyword("super",{startsExpr:i}),_class:createKeyword("class",{startsExpr:i}),_extends:createKeyword("extends",{beforeExpr:r}),_export:createKeyword("export"),_import:createKeyword("import",{startsExpr:i}),_null:createKeyword("null",{startsExpr:i}),_true:createKeyword("true",{startsExpr:i}),_false:createKeyword("false",{startsExpr:i}),_in:createKeyword("in",{beforeExpr:r,binop:7}),_instanceof:createKeyword("instanceof",{beforeExpr:r,binop:7}),_typeof:createKeyword("typeof",{beforeExpr:r,prefix:s,startsExpr:i}),_void:createKeyword("void",{beforeExpr:r,prefix:s,startsExpr:i}),_delete:createKeyword("delete",{beforeExpr:r,prefix:s,startsExpr:i})},c=/\\r\\n?|[\\n\\u2028\\u2029]/,u=new RegExp(c.source,"g");function isNewLine(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}const p=/(?:\\s|\\/\\/.*|\\/\\*[^]*?\\*\\/)*/g;function isWhitespace(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}}class d{constructor(e,t){this.line=void 0,this.column=void 0,this.line=e,this.column=t}}class h{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}}class f{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){return this.plugins.has(e)}getPluginOption(e,t){if(this.hasPlugin(e))return this.plugins.get(e)[t]}}function last(e){return e[e.length-1]}class m extends f{addComment(e){this.filename&&(e.loc.filename=this.filename),this.state.trailingComments.push(e),this.state.leadingComments.push(e)}adjustCommentsAfterTrailingComma(e,t,r){if(0===this.state.leadingComments.length)return;let i=null,n=t.length;for(;null===i&&n>0;)i=t[--n];if(null===i)return;for(let e=0;e<this.state.leadingComments.length;e++)this.state.leadingComments[e].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(e,1),e--);const s=[];for(let t=0;t<this.state.leadingComments.length;t++){const i=this.state.leadingComments[t];i.end<e.end?(s.push(i),r||(this.state.leadingComments.splice(t,1),t--)):(void 0===e.trailingComments&&(e.trailingComments=[]),e.trailingComments.push(i))}r&&(this.state.leadingComments=[]),s.length>0?i.trailingComments=s:void 0!==i.trailingComments&&(i.trailingComments=[])}processComment(e){if("Program"===e.type&&e.body.length>0)return;const t=this.state.commentStack;let r,i,n,s,a;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=e.end?(n=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else if(t.length>0){const r=last(t);r.trailingComments&&r.trailingComments[0].start>=e.end&&(n=r.trailingComments,delete r.trailingComments)}for(t.length>0&&last(t).start>=e.start&&(r=t.pop());t.length>0&&last(t).start>=e.start;)i=t.pop();if(!i&&r&&(i=r),r)switch(e.type){case"ObjectExpression":this.adjustCommentsAfterTrailingComma(e,e.properties);break;case"ObjectPattern":this.adjustCommentsAfterTrailingComma(e,e.properties,!0);break;case"CallExpression":this.adjustCommentsAfterTrailingComma(e,e.arguments);break;case"ArrayExpression":this.adjustCommentsAfterTrailingComma(e,e.elements);break;case"ArrayPattern":this.adjustCommentsAfterTrailingComma(e,e.elements,!0)}else this.state.commentPreviousNode&&("ImportSpecifier"===this.state.commentPreviousNode.type&&"ImportSpecifier"!==e.type||"ExportSpecifier"===this.state.commentPreviousNode.type&&"ExportSpecifier"!==e.type)&&this.adjustCommentsAfterTrailingComma(e,[this.state.commentPreviousNode]);if(i){if(i.leadingComments)if(i!==e&&i.leadingComments.length>0&&last(i.leadingComments).end<=e.start)e.leadingComments=i.leadingComments,delete i.leadingComments;else for(s=i.leadingComments.length-2;s>=0;--s)if(i.leadingComments[s].end<=e.start){e.leadingComments=i.leadingComments.splice(0,s+1);break}}else if(this.state.leadingComments.length>0)if(last(this.state.leadingComments).end<=e.start){if(this.state.commentPreviousNode)for(a=0;a<this.state.leadingComments.length;a++)this.state.leadingComments[a].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(a,1),a--);this.state.leadingComments.length>0&&(e.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(s=0;s<this.state.leadingComments.length&&!(this.state.leadingComments[s].end>e.start);s++);const t=this.state.leadingComments.slice(0,s);t.length&&(e.leadingComments=t),n=this.state.leadingComments.slice(s),0===n.length&&(n=null)}if(this.state.commentPreviousNode=e,n)if(n.length&&n[0].start>=e.start&&last(n).end<=e.end)e.innerComments=n;else{const t=n.findIndex((t=>t.end>=e.end));t>0?(e.innerComments=n.slice(0,t),e.trailingComments=n.slice(t)):e.trailingComments=n}t.push(e)}}const y=Object.freeze({SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"}),T=makeErrorTemplates({AccessorIsGenerator:"A %0ter 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.",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\' accesor must not have any formal parameters.",BadSetterArity:"A \'set\' accesor must have exactly one formal parameter.",BadSetterRestParameter:"A \'set\' accesor 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:"\'%0\' require an initialization value.",DecoratorBeforeExport:"Decorators must be placed *before* the \'export\' keyword. You can set the \'decoratorsBeforeExport\' option to false to use the \'export @decorator class {}\' syntax.",DecoratorConstructor:"Decorators can\'t be used with a constructor. Did you mean \'@dec class { ... }\'?",DecoratorExportClass:"Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can\'t be used with a static block.",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:"`%0` has already been exported. Exported identifiers must be unique.",DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:"A string literal cannot be used as an exported binding without `from`.\\n- Did you mean `export { \'%0\' as \'%1\' } from \'some-module\'`?",ExportDefaultFromAsIdentifier:"\'from\' is not allowed as an identifier after \'export default\'.",ForInOfLoopInitializer:"\'%0\' loop variable declaration may not have an initializer.",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:"Unsyntactic %0.",IllegalLanguageModeDirective:"Illegal \'use strict\' directive in function with non-simple parameter list.",IllegalReturn:"\'return\' outside of function.",ImportBindingIsString:\'A string literal cannot be used as an imported binding.\\n- Did you mean `import { "%0" as foo }`?\',ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:"`import()` requires exactly %0.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidDecimal:"Invalid decimal.",InvalidDigit:"Expected number in radix %0.",InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:"Escape sequence in keyword %0.",InvalidIdentifier:"Invalid identifier %0.",InvalidLhs:"Invalid left-hand side in %0.",InvalidLhsBinding:"Binding invalid left-hand side in %0.",InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the \'e\'.",InvalidOrUnexpectedToken:"Unexpected character \'%0\'.",InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:"Private name #%0 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:"Label \'%0\' is already declared.",LetInLexicalBinding:"\'let\' is not allowed to be used as a name in \'let\' or \'const\' declarations.",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.",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:\'Duplicate key "%0" is not allowed in module attributes.\',ModuleExportNameHasLoneSurrogate:"An export name cannot include a lone surrogate, found \'\\\\u%0\'.",ModuleExportUndefined:"Export \'%0\' 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.",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:"Primary Topic Reference found but pipelineOperator not passed \'smart\' for \'proposal\' option.",PrivateInExpectedIn:"Private names are only allowed in property accesses (`obj.#%0`) or in `in` expressions (`#%0 in obj`).",PrivateNameRedeclaration:"Duplicate private name #%0.",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, inside a block, or as the body of an if statement.",StaticPrototype:"Classes may not have static property named prototype.",StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:"Assigning to \'%0\' in strict mode.",StrictEvalArgumentsBinding:"Binding \'%0\' 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.",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:"Unexpected keyword \'%0\'.",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:"Private names can only be used as the name of a class element (i.e. class C { #p = 42; #m() {} } )\\n or a property of member expression (i.e. this.#p).",UnexpectedReservedWord:"Unexpected reserved word \'%0\'.",UnexpectedSuper:"\'super\' is only allowed in object methods and classes.",UnexpectedToken:"Unexpected token \'%0\'.",UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",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:"The only valid meta property for %0 is %0.%1.",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.",VarRedeclaration:"Identifier \'%0\' 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."},y.SyntaxError),g=makeErrorTemplates({ImportMetaOutsideModule:"import.meta may appear only with \'sourceType: \\"module\\"\'",ImportOutsideModule:"\'import\' and \'export\' may appear only with \'sourceType: \\"module\\"\'"},y.SourceTypeModuleError);function makeErrorTemplates(e,t){const r={};return Object.keys(e).forEach((i=>{r[i]=Object.freeze({code:t,reasonCode:i,template:e[i]})})),Object.freeze(r)}class b extends m{getLocationForPosition(e){let t;return t=e===this.state.start?this.state.startLoc:e===this.state.lastTokStart?this.state.lastTokStartLoc:e===this.state.end?this.state.endLoc:e===this.state.lastTokEnd?this.state.lastTokEndLoc:function(e,t){let r,i=1,n=0;for(u.lastIndex=0;(r=u.exec(e))&&r.index<t;)i++,n=u.lastIndex;return new d(i,t-n)}(this.input,e),t}raise(e,{code:t,reasonCode:r,template:i},...n){return this.raiseWithData(e,{code:t,reasonCode:r},i,...n)}raiseOverwrite(e,{code:t,template:r},...i){const n=this.getLocationForPosition(e),s=r.replace(/%(\\d+)/g,((e,t)=>i[t]))+` (${n.line}:${n.column})`;if(this.options.errorRecovery){const t=this.state.errors;for(let r=t.length-1;r>=0;r--){const i=t[r];if(i.pos===e)return Object.assign(i,{message:s});if(i.pos<e)break}}return this._raise({code:t,loc:n,pos:e},s)}raiseWithData(e,t,r,...i){const n=this.getLocationForPosition(e),s=r.replace(/%(\\d+)/g,((e,t)=>i[t]))+` (${n.line}:${n.column})`;return this._raise(Object.assign({loc:n,pos:e},t),s)}_raise(e,t){const r=new SyntaxError(t);if(Object.assign(r,e),this.options.errorRecovery)return this.isLookahead||this.state.errors.push(r),r;throw r}}class S{constructor(e,t,r,i){this.token=void 0,this.isExpr=void 0,this.preserveSpace=void 0,this.override=void 0,this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=i}}const x={braceStatement:new S("{",!1),braceExpression:new S("{",!0),recordExpression:new S("#{",!0),templateQuasi:new S("${",!1),parenStatement:new S("(",!1),parenExpression:new S("(",!0),template:new S("`",!0,!0,(e=>e.readTmplToken())),functionExpression:new S("function",!0),functionStatement:new S("function",!1)};l.parenR.updateContext=l.braceR.updateContext=function(){if(1===this.state.context.length)return void(this.state.exprAllowed=!0);let e=this.state.context.pop();e===x.braceStatement&&"function"===this.curContext().token&&(e=this.state.context.pop()),this.state.exprAllowed=!e.isExpr},l.name.updateContext=function(e){let t=!1;e!==l.dot&&("of"!==this.state.value||this.state.exprAllowed||e===l._function||e===l._class||(t=!0)),this.state.exprAllowed=t},l.braceL.updateContext=function(e){this.state.context.push(this.braceIsBlock(e)?x.braceStatement:x.braceExpression),this.state.exprAllowed=!0},l.dollarBraceL.updateContext=function(){this.state.context.push(x.templateQuasi),this.state.exprAllowed=!0},l.parenL.updateContext=function(e){const t=e===l._if||e===l._for||e===l._with||e===l._while;this.state.context.push(t?x.parenStatement:x.parenExpression),this.state.exprAllowed=!0},l.incDec.updateContext=function(){},l._function.updateContext=l._class.updateContext=function(e){!e.beforeExpr||e===l.semi||e===l._else||e===l._return&&this.hasPrecedingLineBreak()||(e===l.colon||e===l.braceL)&&this.curContext()===x.b_stat?this.state.context.push(x.functionStatement):this.state.context.push(x.functionExpression),this.state.exprAllowed=!1},l.backQuote.updateContext=function(){this.curContext()===x.template?this.state.context.pop():this.state.context.push(x.template),this.state.exprAllowed=!1},l.braceHashL.updateContext=function(){this.state.context.push(x.recordExpression),this.state.exprAllowed=!0};let P="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA--zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",v="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍--_";const A=new RegExp("["+P+"]"),w=new RegExp("["+P+v+"]");P=v=null;const I=[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,157,310,10,21,11,7,153,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,107,20,28,22,13,52,76,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,85,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,230,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,35,56,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,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,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,8952,286,50,2,18,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,2357,44,11,6,17,0,370,43,1301,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,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],C=[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,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,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,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,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,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let i=0,n=t.length;i<n;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function isIdentifierStart(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&A.test(String.fromCharCode(e)):isInAstralSet(e,I)))}function isIdentifierChar(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&w.test(String.fromCharCode(e)):isInAstralSet(e,I)||isInAstralSet(e,C))))}const O=["implements","interface","let","package","private","protected","public","static","yield"],N=["eval","arguments"],_=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"]),k=new Set(O),D=new Set(N);function isReservedWord(e,t){return t&&"await"===e||"enum"===e}function isStrictReservedWord(e,t){return isReservedWord(e,t)||k.has(e)}function isStrictBindOnlyReservedWord(e){return D.has(e)}function isStrictBindReservedWord(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return _.has(e)}const L=/^in(stanceof)?$/;const M=256,B=128,j=1024,R=2048;class F{constructor(e){this.flags=void 0,this.var=[],this.lexical=[],this.functions=[],this.flags=e}}class U{constructor(e,t){this.scopeStack=[],this.undefinedExports=new Map,this.undefinedPrivateNames=new Map,this.raise=e,this.inModule=t}get inFunction(){return(2&this.currentVarScope().flags)>0}get allowSuper(){return(16&this.currentThisScope().flags)>0}get allowDirectSuper(){return(32&this.currentThisScope().flags)>0}get inClass(){return(64&this.currentThisScope().flags)>0}get inStaticBlock(){return(128&this.currentThisScope().flags)>0}get inNonArrowFunction(){return(2&this.currentThisScope().flags)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new F(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){this.scopeStack.pop()}treatFunctionsAsVarInScope(e){return!!(2&e.flags||!this.inModule&&1&e.flags)}declareName(e,t,r){let i=this.currentScope();if(8&t||16&t)this.checkRedeclarationInScope(i,e,t,r),16&t?i.functions.push(e):i.lexical.push(e),8&t&&this.maybeExportDefined(i,e);else if(4&t)for(let n=this.scopeStack.length-1;n>=0&&(i=this.scopeStack[n],this.checkRedeclarationInScope(i,e,t,r),i.var.push(e),this.maybeExportDefined(i,e),!(259&i.flags));--n);this.inModule&&1&i.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,i){this.isRedeclaredInScope(e,t,r)&&this.raise(i,T.VarRedeclaration,t)}isRedeclaredInScope(e,t,r){return!!(1&r)&&(8&r?e.lexical.indexOf(t)>-1||e.functions.indexOf(t)>-1||e.var.indexOf(t)>-1:16&r?e.lexical.indexOf(t)>-1||!this.treatFunctionsAsVarInScope(e)&&e.var.indexOf(t)>-1:e.lexical.indexOf(t)>-1&&!(8&e.flags&&e.lexical[0]===t)||!this.treatFunctionsAsVarInScope(e)&&e.functions.indexOf(t)>-1)}checkLocalExport(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&-1===this.scopeStack[0].functions.indexOf(e.name)&&this.undefinedExports.set(e.name,e.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScope(){for(let e=this.scopeStack.length-1;;e--){const t=this.scopeStack[e];if(259&t.flags)return t}}currentThisScope(){for(let e=this.scopeStack.length-1;;e--){const t=this.scopeStack[e];if((259&t.flags||64&t.flags)&&!(4&t.flags))return t}}}class K extends F{constructor(...e){super(...e),this.declareFunctions=[]}}class q extends U{createScope(e){return new K(e)}declareName(e,t,r){const i=this.currentScope();if(t&R)return this.checkRedeclarationInScope(i,e,t,r),this.maybeExportDefined(i,e),void i.declareFunctions.push(e);super.declareName(...arguments)}isRedeclaredInScope(e,t,r){return!!super.isRedeclaredInScope(...arguments)||!!(r&R)&&(!e.declareFunctions.includes(t)&&(e.lexical.includes(t)||e.functions.includes(t)))}checkLocalExport(e){-1===this.scopeStack[0].declareFunctions.indexOf(e.name)&&super.checkLocalExport(e)}}const V=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),W=makeErrorTemplates({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:"Cannot overwrite reserved type %0.",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:"Boolean enum members need to be initialized. Use either `%0 = true,` or `%0 = false,` in enum `%1`.",EnumDuplicateMemberName:"Enum member names need to be unique, but the name `%0` has already been used before in enum `%1`.",EnumInconsistentMemberValues:"Enum `%0` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.",EnumInvalidExplicitType:"Enum type `%1` is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `%0`.",EnumInvalidExplicitTypeUnknownSupplied:"Supplied enum type is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `%0`.",EnumInvalidMemberInitializerPrimaryType:"Enum `%0` has type `%2`, so the initializer of `%1` needs to be a %2 literal.",EnumInvalidMemberInitializerSymbolType:"Symbol enum members cannot be initialized. Use `%1,` in enum `%0`.",EnumInvalidMemberInitializerUnknownType:"The enum member initializer for `%1` needs to be a literal (either a boolean, number, or string) in enum `%0`.",EnumInvalidMemberName:"Enum member names cannot start with lowercase \'a\' through \'z\'. Instead of using `%0`, consider using `%1`, in enum `%2`.",EnumNumberMemberNotInitialized:"Number enum members need to be initialized, e.g. `%1 = 1` in enum `%0`.",EnumStringMemberInconsistentlyInitailized:"String enum members need to consistently either all use initializers, or use no initializers, in enum `%0`.",GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",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.",OptionalBindingPattern:"A binding pattern parameter cannot be optional in an implementation signature.",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:"Unexpected reserved type %0.",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:"`declare export %0` is not supported. Use `%1` instead.",UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."},y.SyntaxError);function hasTypeImportKind(e){return"type"===e.importKind||"typeof"===e.importKind}function isMaybeDefaultImport(e){return(e.type===l.name||!!e.type.keyword)&&"from"!==e.value}const Y={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};const X=/\\*?\\s*@((?:no)?flow)\\b/;const J={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:"♦"},H=/^[\\da-fA-F]+$/,G=/^\\d+$/,$=makeErrorTemplates({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:"Expected corresponding JSX closing tag for <%0>.",MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",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 <>...</>?"},y.SyntaxError);function isFragment(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function getQualifiedJSXName(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return getQualifiedJSXName(e.object)+"."+getQualifiedJSXName(e.property);throw new Error("Node had unexpected type: "+e.type)}x.j_oTag=new S("<tag",!1),x.j_cTag=new S("</tag",!1),x.j_expr=new S("<tag>...</tag>",!0,!0),l.jsxName=new a("jsxName"),l.jsxText=new a("jsxText",{beforeExpr:!0}),l.jsxTagStart=new a("jsxTagStart",{startsExpr:!0}),l.jsxTagEnd=new a("jsxTagEnd"),l.jsxTagStart.updateContext=function(){this.state.context.push(x.j_expr),this.state.context.push(x.j_oTag),this.state.exprAllowed=!1},l.jsxTagEnd.updateContext=function(e){const t=this.state.context.pop();t===x.j_oTag&&e===l.slash||t===x.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===x.j_expr):this.state.exprAllowed=!0};class z extends F{constructor(...e){super(...e),this.types=[],this.enums=[],this.constEnums=[],this.classes=[],this.exportOnlyBindings=[]}}class Q extends U{createScope(e){return new z(e)}declareName(e,t,r){const i=this.currentScope();if(t&j)return this.maybeExportDefined(i,e),void i.exportOnlyBindings.push(e);super.declareName(...arguments),2&t&&(1&t||(this.checkRedeclarationInScope(i,e,t,r),this.maybeExportDefined(i,e)),i.types.push(e)),256&t&&i.enums.push(e),512&t&&i.constEnums.push(e),t&B&&i.classes.push(e)}isRedeclaredInScope(e,t,r){if(e.enums.indexOf(t)>-1){if(256&r){return!!(512&r)!==e.constEnums.indexOf(t)>-1}return!0}return r&B&&e.classes.indexOf(t)>-1?e.lexical.indexOf(t)>-1&&!!(1&r):!!(2&r&&e.types.indexOf(t)>-1)||super.isRedeclaredInScope(...arguments)}checkLocalExport(e){-1===this.scopeStack[0].types.indexOf(e.name)&&-1===this.scopeStack[0].exportOnlyBindings.indexOf(e.name)&&super.checkLocalExport(e)}}class Z{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 functionFlags(e,t){return(e?2:0)|(t?1:0)}function nonNull(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}function assert(e){if(!e)throw new Error("Assert fail")}const ee=makeErrorTemplates({AbstractMethodHasImplementation:"Method \'%0\' cannot have an implementation because it is marked abstract.",AccesorCannotDeclareThisParameter:"\'get\' and \'set\' accessors cannot declare \'this\' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the \'declare\' modifier.",ClassMethodHasReadonly:"Class methods cannot have the \'readonly\' modifier.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:"\'declare\' is not allowed in %0ters.",DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:"Accessibility modifier already seen.",DuplicateModifier:"Duplicate modifier: \'%0\'.",EmptyHeritageClauseType:"\'%0\' 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\'.",IncompatibleModifiers:"\'%0\' modifier cannot be used with \'%1\' modifier.",IndexSignatureHasAbstract:"Index signatures cannot have the \'abstract\' modifier.",IndexSignatureHasAccessibility:"Index signatures cannot have an accessibility modifier (\'%0\').",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.",InvalidModifierOnTypeMember:"\'%0\' modifier cannot appear on a type member.",InvalidModifiersOrder:"\'%0\' modifier must precede \'%1\' modifier.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",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:"Private elements cannot have an accessibility modifier (\'%0\').",ReadonlyForMethodSignature:"\'readonly\' modifier can only appear on a property declaration or index signature.",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.",StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",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.",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:"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got %0."},y.SyntaxError);function tsIsAccessModifier(e){return"private"===e||"public"===e||"protected"===e}l.placeholder=new a("%%",{startsExpr:!0});const te=makeErrorTemplates({ClassNameIsRequired:"A class name is required."},y.SyntaxError);function hasPlugin(e,t){return e.some((e=>Array.isArray(e)?e[0]===t:e===t))}function getPluginOption(e,t,r){const i=e.find((e=>Array.isArray(e)?e[0]===t:e===t));return i&&Array.isArray(i)?i[1][r]:null}const re=["minimal","smart","fsharp"],ie=["hash","bar"];const ne={estree:e=>class extends e{estreeParseRegExpLiteral({pattern:e,flags:t}){let r=null;try{r=new RegExp(e,t)}catch(e){}const i=this.estreeParseLiteral(r);return i.regex={pattern:e,flags:t},i}estreeParseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const r=this.estreeParseLiteral(t);return r.bigint=String(r.value||e),r}estreeParseDecimalLiteral(e){const t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}directiveToStmt(e){const t=e.value,r=this.startNodeAt(e.start,e.loc.start),i=this.startNodeAt(t.start,t.loc.start);return i.value=t.extra.expressionValue,i.raw=t.extra.raw,r.expression=this.finishNodeAt(i,"Literal",t.end,t.loc.end),r.directive=t.extra.raw.slice(1,-1),this.finishNodeAt(r,"ExpressionStatement",e.end,e.loc.end)}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)}stmtToDirective(e){const t=super.stmtToDirective(e),r=e.expression.value;return this.addExtra(t.value,"expressionValue",r),t}parseBlockBody(e,...t){super.parseBlockBody(e,...t);const r=e.directives.map((e=>this.directiveToStmt(e)));e.body=r.concat(e.body),delete e.directives}pushClassMethod(e,t,r,i,n,s){this.parseMethod(t,r,i,n,s,"ClassMethod",!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}parseExprAtom(e){switch(this.state.type){case l.num:case l.string:return this.estreeParseLiteral(this.state.value);case l.regexp:return this.estreeParseRegExpLiteral(this.state.value);case l.bigint:return this.estreeParseBigIntLiteral(this.state.value);case l.decimal:return this.estreeParseDecimalLiteral(this.state.value);case l._null:return this.estreeParseLiteral(null);case l._true:return this.estreeParseLiteral(!0);case l._false:return this.estreeParseLiteral(!1);default:return super.parseExprAtom(e)}}parseMaybePrivateName(...e){const t=super.parseMaybePrivateName(...e);return"PrivateName"===t.type&&this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(t):t}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,r,i){const n=super.parseLiteral(e,t,r,i);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,t,r=!1){super.parseFunctionBody(e,t,r),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,r,i,n,s,a=!1){let o=this.startNode();return o.kind=e.kind,o=super.parseMethod(o,t,r,i,n,s,a),o.type="FunctionExpression",delete o.kind,e.value=o,"ClassPrivateMethod"===s&&(e.computed=!1),s="MethodDefinition",this.finishNode(e,s)}parseClassProperty(...e){const t=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")&&(t.type="PropertyDefinition"),t}parseClassPrivateProperty(...e){const t=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")&&(t.type="PropertyDefinition",t.computed=!1),t}parseObjectMethod(e,t,r,i,n){const s=super.parseObjectMethod(e,t,r,i,n);return s&&(s.type="Property","method"===s.kind&&(s.kind="init"),s.shorthand=!1),s}parseObjectProperty(e,t,r,i,n){const s=super.parseObjectProperty(e,t,r,i,n);return s&&(s.kind="init",s.type="Property"),s}toAssignable(e,t=!1){return null!=e&&this.isObjectProperty(e)?(this.toAssignable(e.value,t),e):super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,...t){"get"===e.kind||"set"===e.kind?this.raise(e.key.start,T.PatternHasAccessor):e.method?this.raise(e.key.start,T.PatternHasMethod):super.toAssignableObjectExpressionProp(e,...t)}finishCallExpression(e,t){if(super.finishCallExpression(e,t),"Import"===e.callee.type){var r;if(e.type="ImportExpression",e.source=e.arguments[0],this.hasPlugin("importAssertions"))e.attributes=null!=(r=e.arguments[1])?r:null;delete e.arguments,delete e.callee}return e}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e){switch(super.parseExport(e),e.type){case"ExportAllDeclaration":e.exported=null;break;case"ExportNamedDeclaration":1===e.specifiers.length&&"ExportNamespaceSpecifier"===e.specifiers[0].type&&(e.type="ExportAllDeclaration",e.exported=e.specifiers[0].exported,delete e.specifiers)}return e}parseSubscript(e,t,r,i,n){const s=super.parseSubscript(e,t,r,i,n);if(n.optionalChainMember){if("OptionalMemberExpression"!==s.type&&"OptionalCallExpression"!==s.type||(s.type=s.type.substring(8)),n.stop){const e=this.startNodeAtNode(s);return e.expression=s,this.finishNode(e,"ChainExpression")}}else"MemberExpression"!==s.type&&"CallExpression"!==s.type||(s.optional=!1);return s}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isOptionalChain(e){return"ChainExpression"===e.type}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return e.method||"get"===e.kind||"set"===e.kind}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,$.UnterminatedJsxContent);const r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:return this.state.pos===this.state.start?60===r&&this.state.exprAllowed?(++this.state.pos,this.finishToken(l.jsxTagStart)):super.getTokenFromCode(r):(e+=this.input.slice(t,this.state.pos),this.finishToken(l.jsxText,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:isNewLine(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(this.state.start,T.UnterminatedString);const i=this.input.charCodeAt(this.state.pos);if(i===e)break;38===i?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):isNewLine(i)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}return t+=this.input.slice(r,this.state.pos++),this.finishToken(l.string,t)}jsxReadEntity(){let e,t="",r=0,i=this.input[this.state.pos];const n=++this.state.pos;for(;this.state.pos<this.length&&r++<10;){if(i=this.input[this.state.pos++],";"===i){"#"===t[0]?"x"===t[1]?(t=t.substr(2),H.test(t)&&(e=String.fromCodePoint(parseInt(t,16)))):(t=t.substr(1),G.test(t)&&(e=String.fromCodePoint(parseInt(t,10)))):e=J[t];break}t+=i}return e||(this.state.pos=n,"&")}jsxReadWord(){let e;const t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(isIdentifierChar(e)||45===e);return this.finishToken(l.jsxName,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();return this.match(l.jsxName)?e.name=this.state.value:this.state.type.keyword?e.name=this.state.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.start,t=this.state.startLoc,r=this.jsxParseIdentifier();if(!this.eat(l.colon))return r;const i=this.startNodeAt(e,t);return i.namespace=r,i.name=this.jsxParseIdentifier(),this.finishNode(i,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.start,t=this.state.startLoc;let r=this.jsxParseNamespacedName();if("JSXNamespacedName"===r.type)return r;for(;this.eat(l.dot);){const i=this.startNodeAt(e,t);i.object=r,i.property=this.jsxParseIdentifier(),r=this.finishNode(i,"JSXMemberExpression")}return r}jsxParseAttributeValue(){let e;switch(this.state.type){case l.braceL:return e=this.startNode(),this.next(),e=this.jsxParseExpressionContainer(e),"JSXEmptyExpression"===e.expression.type&&this.raise(e.start,$.AttributeIsEmpty),e;case l.jsxTagStart:case l.string:return this.parseExprAtom();default:throw this.raise(this.state.start,$.UnsupportedJsxValue)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEnd,this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.start,this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.expect(l.braceR),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e){if(this.match(l.braceR))e.expression=this.jsxParseEmptyExpression();else{const t=this.parseExpression();e.expression=t}return this.expect(l.braceR),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.eat(l.braceL)?(this.expect(l.ellipsis),e.argument=this.parseMaybeAssignAllowIn(),this.expect(l.braceR),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(l.eq)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e,t){const r=this.startNodeAt(e,t);return this.match(l.jsxTagEnd)?(this.expect(l.jsxTagEnd),this.finishNode(r,"JSXOpeningFragment")):(r.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(r))}jsxParseOpeningElementAfterName(e){const t=[];for(;!this.match(l.slash)&&!this.match(l.jsxTagEnd);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(l.slash),this.expect(l.jsxTagEnd),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e,t){const r=this.startNodeAt(e,t);return this.match(l.jsxTagEnd)?(this.expect(l.jsxTagEnd),this.finishNode(r,"JSXClosingFragment")):(r.name=this.jsxParseElementName(),this.expect(l.jsxTagEnd),this.finishNode(r,"JSXClosingElement"))}jsxParseElementAt(e,t){const r=this.startNodeAt(e,t),i=[],n=this.jsxParseOpeningElementAt(e,t);let s=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case l.jsxTagStart:if(e=this.state.start,t=this.state.startLoc,this.next(),this.eat(l.slash)){s=this.jsxParseClosingElementAt(e,t);break e}i.push(this.jsxParseElementAt(e,t));break;case l.jsxText:i.push(this.parseExprAtom());break;case l.braceL:{const e=this.startNode();this.next(),this.match(l.ellipsis)?i.push(this.jsxParseSpreadChild(e)):i.push(this.jsxParseExpressionContainer(e));break}default:throw this.unexpected()}isFragment(n)&&!isFragment(s)?this.raise(s.start,$.MissingClosingTagFragment):!isFragment(n)&&isFragment(s)?this.raise(s.start,$.MissingClosingTagElement,getQualifiedJSXName(n.name)):isFragment(n)||isFragment(s)||getQualifiedJSXName(s.name)!==getQualifiedJSXName(n.name)&&this.raise(s.start,$.MissingClosingTagElement,getQualifiedJSXName(n.name))}if(isFragment(n)?(r.openingFragment=n,r.closingFragment=s):(r.openingElement=n,r.closingElement=s),r.children=i,this.isRelational("<"))throw this.raise(this.state.start,$.UnwrappedAdjacentJSXElements);return isFragment(n)?this.finishNode(r,"JSXFragment"):this.finishNode(r,"JSXElement")}jsxParseElement(){const e=this.state.start,t=this.state.startLoc;return this.next(),this.jsxParseElementAt(e,t)}parseExprAtom(e){return this.match(l.jsxText)?this.parseLiteral(this.state.value,"JSXText"):this.match(l.jsxTagStart)?this.jsxParseElement():this.isRelational("<")&&33!==this.input.charCodeAt(this.state.pos)?(this.finishToken(l.jsxTagStart),this.jsxParseElement()):super.parseExprAtom(e)}getTokenFromCode(e){if(this.state.inPropertyName)return super.getTokenFromCode(e);const t=this.curContext();if(t===x.j_expr)return this.jsxReadToken();if(t===x.j_oTag||t===x.j_cTag){if(isIdentifierStart(e))return this.jsxReadWord();if(62===e)return++this.state.pos,this.finishToken(l.jsxTagEnd);if((34===e||39===e)&&t===x.j_oTag)return this.jsxReadString(e)}return 60===e&&this.state.exprAllowed&&33!==this.input.charCodeAt(this.state.pos+1)?(++this.state.pos,this.finishToken(l.jsxTagStart)):super.getTokenFromCode(e)}updateContext(e){if(this.match(l.braceL)){const t=this.curContext();t===x.j_oTag?this.state.context.push(x.braceExpression):t===x.j_expr?this.state.context.push(x.templateQuasi):super.updateContext(e),this.state.exprAllowed=!0}else{if(!this.match(l.slash)||e!==l.jsxTagStart)return super.updateContext(e);this.state.context.length-=2,this.state.context.push(x.j_cTag),this.state.exprAllowed=!1}}},flow:e=>class extends e{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return q}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,t){return e!==l.string&&e!==l.semi&&e!==l.interpreterDirective&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){const t=X.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;}return super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=!0,this.expect(e||l.colon);const r=this.flowParseType();return this.state.inType=t,r}flowParsePredicate(){const e=this.startNode(),t=this.state.start;return this.next(),this.expectContextual("checks"),this.state.lastTokStart>t+1&&this.raise(t,W.UnexpectedSpaceBetweenModuloChecks),this.eat(l.parenL)?(e.value=this.parseExpression(),this.expect(l.parenR),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(l.colon);let t=null,r=null;return this.match(l.modulo)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(l.modulo)&&(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(),i=this.startNode();this.isRelational("<")?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(l.parenL);const n=this.flowParseFunctionTypeParams();return r.params=n.params,r.rest=n.rest,r.this=n._this,this.expect(l.parenR),[r.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),i.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(i,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){if(this.match(l._class))return this.flowParseDeclareClass(e);if(this.match(l._function))return this.flowParseDeclareFunction(e);if(this.match(l._var))return this.flowParseDeclareVariable(e);if(this.eatContextual("module"))return this.match(l.dot)?this.flowParseDeclareModuleExports(e):(t&&this.raise(this.state.lastTokStart,W.NestedDeclareModule),this.flowParseDeclareModule(e));if(this.isContextual("type"))return this.flowParseDeclareTypeAlias(e);if(this.isContextual("opaque"))return this.flowParseDeclareOpaqueType(e);if(this.isContextual("interface"))return this.flowParseDeclareInterface(e);if(this.match(l._export))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(l.string)?e.id=this.parseExprAtom():e.id=this.parseIdentifier();const t=e.body=this.startNode(),r=t.body=[];for(this.expect(l.braceL);!this.match(l.braceR);){let e=this.startNode();this.match(l._import)?(this.next(),this.isContextual("type")||this.match(l._typeof)||this.raise(this.state.lastTokStart,W.InvalidNonTypeImportInDeclareModule),this.parseImport(e)):(this.expectContextual("declare",W.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),r.push(e)}this.scope.exit(),this.expect(l.braceR),this.finishNode(t,"BlockStatement");let i=null,n=!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&&(n&&this.raise(e.start,W.DuplicateDeclareModuleExports),"ES"===i&&this.raise(e.start,W.AmbiguousDeclareModuleKind),i="CommonJS",n=!0):("CommonJS"===i&&this.raise(e.start,W.AmbiguousDeclareModuleKind),i="ES")})),e.kind=i||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(l._export),this.eat(l._default))return this.match(l._function)||this.match(l._class)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(l._const)||this.isLet()||(this.isContextual("type")||this.isContextual("interface"))&&!t){const e=this.state.value,t=Y[e];throw this.raise(this.state.start,W.UnsupportedDeclareExportKind,e,t)}if(this.match(l._var)||this.match(l._function)||this.match(l._class)||this.isContextual("opaque"))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(l.star)||this.match(l.braceL)||this.isContextual("interface")||this.isContextual("type")||this.isContextual("opaque"))return"ExportNamedDeclaration"===(e=this.parseExport(e)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e;throw this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual("exports"),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){return this.next(),this.flowParseTypeAlias(e),e.type="DeclareTypeAlias",e}flowParseDeclareOpaqueType(e){return this.next(),this.flowParseOpaqueType(e,!0),e.type="DeclareOpaqueType",e}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t=!1){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.implements=[],e.mixins=[],this.eat(l._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(l.comma));if(this.isContextual("mixins")){this.next();do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(l.comma))}if(this.isContextual("implements")){this.next();do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(l.comma))}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.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(this.state.start,W.UnexpectedReservedUnderscore)}checkReservedType(e,t,r){V.has(e)&&this.raise(t,r?W.AssignReservedType:W.UnexpectedReservedType,e)}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.start,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(l.eq),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual("type"),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(l.colon)&&(e.supertype=this.flowParseTypeInitialiser(l.colon)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(l.eq)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){const t=this.state.start,r=this.startNode(),i=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return r.name=n.name,r.variance=i,r.bound=n.typeAnnotation,this.match(l.eq)?(this.eat(l.eq),r.default=this.flowParseType()):e&&this.raise(t,W.MissingTypeParamDefault),this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.isRelational("<")||this.match(l.jsxTagStart)?this.next():this.unexpected();let r=!1;do{const e=this.flowParseTypeParameter(r);t.params.push(e),e.default&&(r=!0),this.isRelational(">")||this.expect(l.comma)}while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expectRelational("<");const r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.isRelational(">");)e.params.push(this.flowParseType()),this.isRelational(">")||this.expect(l.comma);return this.state.noAnonFunctionType=r,this.expectRelational(">"),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.expectRelational("<");!this.isRelational(">");)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.isRelational(">")||this.expect(l.comma);return this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();if(this.expectContextual("interface"),e.extends=[],this.eat(l._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(l.comma));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(l.num)||this.match(l.string)?this.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,r){return e.static=t,this.lookahead().type===l.colon?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(l.bracketR),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(l.bracketR),this.expect(l.bracketR),this.isRelational("<")||this.match(l.parenL)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start))):(e.method=!1,this.eat(l.question)&&(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.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(l.parenL),this.match(l._this)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(l.parenR)||this.expect(l.comma));!this.match(l.parenR)&&!this.match(l.ellipsis);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(l.parenR)||this.expect(l.comma);return this.eat(l.ellipsis)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(l.parenR),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:i,allowInexact:n}){const s=this.state.inType;this.state.inType=!0;const a=this.startNode();let o,c;a.callProperties=[],a.properties=[],a.indexers=[],a.internalSlots=[];let u=!1;for(t&&this.match(l.braceBarL)?(this.expect(l.braceBarL),o=l.braceBarR,c=!0):(this.expect(l.braceL),o=l.braceR,c=!1),a.exact=c;!this.match(o);){let t=!1,s=null,o=null;const p=this.startNode();if(i&&this.isContextual("proto")){const t=this.lookahead();t.type!==l.colon&&t.type!==l.question&&(this.next(),s=this.state.start,e=!1)}if(e&&this.isContextual("static")){const e=this.lookahead();e.type!==l.colon&&e.type!==l.question&&(this.next(),t=!0)}const d=this.flowParseVariance();if(this.eat(l.bracketL))null!=s&&this.unexpected(s),this.eat(l.bracketL)?(d&&this.unexpected(d.start),a.internalSlots.push(this.flowParseObjectTypeInternalSlot(p,t))):a.indexers.push(this.flowParseObjectTypeIndexer(p,t,d));else if(this.match(l.parenL)||this.isRelational("<"))null!=s&&this.unexpected(s),d&&this.unexpected(d.start),a.callProperties.push(this.flowParseObjectTypeCallProperty(p,t));else{let e="init";if(this.isContextual("get")||this.isContextual("set")){const t=this.lookahead();t.type!==l.name&&t.type!==l.string&&t.type!==l.num||(e=this.state.value,this.next())}const i=this.flowParseObjectTypeProperty(p,t,s,d,e,r,null!=n?n:!c);null===i?(u=!0,o=this.state.lastTokStart):a.properties.push(i)}this.flowObjectTypeSemicolon(),!o||this.match(l.braceR)||this.match(l.braceBarR)||this.raise(o,W.UnexpectedExplicitInexactInObject)}this.expect(o),r&&(a.inexact=u);const p=this.finishNode(a,"ObjectTypeAnnotation");return this.state.inType=s,p}flowParseObjectTypeProperty(e,t,r,i,n,s,a){if(this.eat(l.ellipsis)){return this.match(l.comma)||this.match(l.semi)||this.match(l.braceR)||this.match(l.braceBarR)?(s?a||this.raise(this.state.lastTokStart,W.InexactInsideExact):this.raise(this.state.lastTokStart,W.InexactInsideNonObject),i&&this.raise(i.start,W.InexactVariance),null):(s||this.raise(this.state.lastTokStart,W.UnexpectedSpreadType),null!=r&&this.unexpected(r),i&&this.raise(i.start,W.SpreadVariance),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"))}{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=n;let a=!1;return this.isRelational("<")||this.match(l.parenL)?(e.method=!0,null!=r&&this.unexpected(r),i&&this.unexpected(i.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start)),"get"!==n&&"set"!==n||this.flowCheckGetterSetterParams(e),!s&&"constructor"===e.key.name&&e.value.this&&this.raise(e.value.this.start,W.ThisParamBannedInConstructor)):("init"!==n&&this.unexpected(),e.method=!1,this.eat(l.question)&&(a=!0),e.value=this.flowParseTypeInitialiser(),e.variance=i),e.optional=a,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,r=e.start,i=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise(e.value.this.start,"get"===e.kind?W.GetterMayNotHaveThisParam:W.SetterMayNotHaveThisParam),i!==t&&("get"===e.kind?this.raise(r,T.BadGetterArity):this.raise(r,T.BadSetterArity)),"set"===e.kind&&e.value.rest&&this.raise(r,T.BadSetterRestParameter)}flowObjectTypeSemicolon(){this.eat(l.semi)||this.eat(l.comma)||this.match(l.braceR)||this.match(l.braceBarR)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t,r){e=e||this.state.start,t=t||this.state.startLoc;let i=r||this.flowParseRestrictedIdentifier(!0);for(;this.eat(l.dot);){const r=this.startNodeAt(e,t);r.qualification=i,r.id=this.flowParseRestrictedIdentifier(!0),i=this.finishNode(r,"QualifiedTypeIdentifier")}return i}flowParseGenericType(e,t,r){const i=this.startNodeAt(e,t);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(e,t,r),this.isRelational("<")&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(l._typeof),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect(l.bracketL);this.state.pos<this.length&&!this.match(l.bracketR)&&(e.types.push(this.flowParseType()),!this.match(l.bracketR));)this.expect(l.comma);return this.expect(l.bracketR),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null,r=!1,i=null;const n=this.startNode(),s=this.lookahead(),a=this.state.type===l._this;return s.type===l.colon||s.type===l.question?(a&&!e&&this.raise(n.start,W.ThisParamMustBeFirst),t=this.parseIdentifier(a),this.eat(l.question)&&(r=!0,a&&this.raise(n.start,W.ThisParamMayNotBeOptional)),i=this.flowParseTypeInitialiser()):i=this.flowParseType(),n.name=t,n.optional=r,n.typeAnnotation=i,this.finishNode(n,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const t=this.startNodeAt(e.start,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(l._this)&&(r=this.flowParseFunctionTypeParam(!0),r.name=null,this.match(l.parenR)||this.expect(l.comma));!this.match(l.parenR)&&!this.match(l.ellipsis);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(l.parenR)||this.expect(l.comma);return this.eat(l.ellipsis)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:r}}flowIdentToTypeAnnotation(e,t,r,i){switch(i.name){case"any":return this.finishNode(r,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(r,"BooleanTypeAnnotation");case"mixed":return this.finishNode(r,"MixedTypeAnnotation");case"empty":return this.finishNode(r,"EmptyTypeAnnotation");case"number":return this.finishNode(r,"NumberTypeAnnotation");case"string":return this.finishNode(r,"StringTypeAnnotation");case"symbol":return this.finishNode(r,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(i.name),this.flowParseGenericType(e,t,i)}}flowParsePrimaryType(){const e=this.state.start,t=this.state.startLoc,r=this.startNode();let i,n,s=!1;const a=this.state.noAnonFunctionType;switch(this.state.type){case l.name:return this.isContextual("interface")?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,r,this.parseIdentifier());case l.braceL:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case l.braceBarL:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case l.bracketL:return this.state.noAnonFunctionType=!1,n=this.flowParseTupleType(),this.state.noAnonFunctionType=a,n;case l.relational:if("<"===this.state.value)return r.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(l.parenL),i=this.flowParseFunctionTypeParams(),r.params=i.params,r.rest=i.rest,r.this=i._this,this.expect(l.parenR),this.expect(l.arrow),r.returnType=this.flowParseType(),this.finishNode(r,"FunctionTypeAnnotation");break;case l.parenL:if(this.next(),!this.match(l.parenR)&&!this.match(l.ellipsis))if(this.match(l.name)||this.match(l._this)){const e=this.lookahead().type;s=e!==l.question&&e!==l.colon}else s=!0;if(s){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=a,this.state.noAnonFunctionType||!(this.match(l.comma)||this.match(l.parenR)&&this.lookahead().type===l.arrow))return this.expect(l.parenR),n;this.eat(l.comma)}return i=n?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):this.flowParseFunctionTypeParams(),r.params=i.params,r.rest=i.rest,r.this=i._this,this.expect(l.parenR),this.expect(l.arrow),r.returnType=this.flowParseType(),r.typeParameters=null,this.finishNode(r,"FunctionTypeAnnotation");case l.string:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case l._true:case l._false:return r.value=this.match(l._true),this.next(),this.finishNode(r,"BooleanLiteralTypeAnnotation");case l.plusMin:if("-"===this.state.value){if(this.next(),this.match(l.num))return this.parseLiteral(-this.state.value,"NumberLiteralTypeAnnotation",r.start,r.loc.start);if(this.match(l.bigint))return this.parseLiteral(-this.state.value,"BigIntLiteralTypeAnnotation",r.start,r.loc.start);throw this.raise(this.state.start,W.UnexpectedSubtractionOperand)}throw this.unexpected();case l.num:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case l.bigint:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case l._void:return this.next(),this.finishNode(r,"VoidTypeAnnotation");case l._null:return this.next(),this.finishNode(r,"NullLiteralTypeAnnotation");case l._this:return this.next(),this.finishNode(r,"ThisTypeAnnotation");case l.star:return this.next(),this.finishNode(r,"ExistsTypeAnnotation");default:if("typeof"===this.state.type.keyword)return this.flowParseTypeofType();if(this.state.type.keyword){const e=this.state.type.label;return this.next(),super.createIdentifier(r,e)}}throw this.unexpected()}flowParsePostfixType(){const e=this.state.start,t=this.state.startLoc;let r=this.flowParsePrimaryType(),i=!1;for(;(this.match(l.bracketL)||this.match(l.questionDot))&&!this.canInsertSemicolon();){const n=this.startNodeAt(e,t),s=this.eat(l.questionDot);i=i||s,this.expect(l.bracketL),!s&&this.match(l.bracketR)?(n.elementType=r,this.next(),r=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=r,n.indexType=this.flowParseType(),this.expect(l.bracketR),i?(n.optional=s,r=this.finishNode(n,"OptionalIndexedAccessType")):r=this.finishNode(n,"IndexedAccessType"))}return r}flowParsePrefixType(){const e=this.startNode();return this.eat(l.question)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(l.arrow)){const t=this.startNodeAt(e.start,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(l.bitwiseAND);const t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(l.bitwiseAND);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(l.bitwiseOR);const t=this.flowParseIntersectionType();for(e.types=[t];this.eat(l.bitwiseOR);)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,this.state.exprAllowed=this.state.exprAllowed||this.state.noAnonFunctionType,t}flowParseTypeOrImplicitInstantiation(){if(this.state.type===l.name&&"_"===this.state.value){const e=this.state.start,t=this.state.startLoc,r=this.parseIdentifier();return this.flowParseGenericType(e,t,r)}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(l.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.end,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(l.plusMin)&&(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")),e}parseFunctionBody(e,t,r=!1){return t?this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,!0,r))):super.parseFunctionBody(e,!1,r)}parseFunctionBodyAndFinish(e,t,r=!1){if(this.match(l.colon)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}super.parseFunctionBodyAndFinish(e,t,r)}parseStatement(e,t){if(this.state.strict&&this.match(l.name)&&"interface"===this.state.value){const e=this.lookahead();if(e.type===l.name||isKeyword(e.value)){const e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.shouldParseEnums()&&this.isContextual("enum")){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}const r=super.parseStatement(e,t);return void 0!==this.flowPragma||this.isValidDirective(r)||(this.flowPragma=null),r}parseExpressionStatement(e,t){if("Identifier"===t.type)if("declare"===t.name){if(this.match(l._class)||this.match(l.name)||this.match(l._function)||this.match(l._var)||this.match(l._export))return this.flowParseDeclare(e)}else if(this.match(l.name)){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)}shouldParseExportDeclaration(){return this.isContextual("type")||this.isContextual("interface")||this.isContextual("opaque")||this.shouldParseEnums()&&this.isContextual("enum")||super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){return(!this.match(l.name)||!("type"===this.state.value||"interface"===this.state.value||"opaque"===this.state.value||this.shouldParseEnums()&&"enum"===this.state.value))&&super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual("enum")){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,r,i){if(!this.match(l.question))return e;if(i){const n=this.tryParse((()=>super.parseConditional(e,t,r)));return n.node?(n.error&&(this.state=n.failState),n.node):(i.start=n.error.pos||this.state.start,e)}this.expect(l.question);const n=this.state.clone(),s=this.state.noArrowAt,a=this.startNodeAt(t,r);let{consequent:o,failed:c}=this.tryParseConditionalConsequent(),[u,p]=this.getArrowLikeExpressions(o);if(c||p.length>0){const e=[...s];if(p.length>0){this.state=n,this.state.noArrowAt=e;for(let t=0;t<p.length;t++)e.push(p[t].start);({consequent:o,failed:c}=this.tryParseConditionalConsequent()),[u,p]=this.getArrowLikeExpressions(o)}c&&u.length>1&&this.raise(n.start,W.AmbiguousConditionalArrow),c&&1===u.length&&(this.state=n,this.state.noArrowAt=e.concat(u[0].start),({consequent:o,failed:c}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=s,this.expect(l.colon),a.test=e,a.consequent=o,a.alternate=this.forwardNoArrowParamsConversionAt(a,(()=>this.parseMaybeAssign(void 0,void 0,void 0))),this.finishNode(a,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),t=!this.match(l.colon);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const r=[e],i=[];for(;0!==r.length;){const e=r.pop();"ArrowFunctionExpression"===e.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):i.push(e),r.push(e.body)):"ConditionalExpression"===e.type&&(r.push(e.consequent),r.push(e.alternate))}return t?(i.forEach((e=>this.finishArrowValidation(e))),[i,[]]):function(e,t){const r=[],i=[];for(let n=0;n<e.length;n++)(t(e[n],n,e)?r:i).push(e[n]);return[r,i]}(i,(e=>e.params.every((e=>this.isAssignable(e,!0)))))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingComma,!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,r){if(e=super.parseParenItem(e,t,r),this.eat(l.question)&&(e.optional=!0,this.resetEndLocation(e)),this.match(l.colon)){const i=this.startNodeAt(t,r);return i.expression=e,i.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(i,"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)}parseExport(e){const t=super.parseExport(e);return"ExportNamedDeclaration"!==t.type&&"ExportAllDeclaration"!==t.type||(t.exportKind=t.exportKind||"value"),t}parseExportDeclaration(e){if(this.isContextual("type")){e.exportKind="type";const t=this.startNode();return this.next(),this.match(l.braceL)?(e.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual("opaque")){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual("interface")){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseInterface(t)}if(this.shouldParseEnums()&&this.isContextual("enum")){e.exportKind="value";const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(...arguments)||!(!this.isContextual("type")||this.lookahead().type!==l.star)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){const t=this.state.start,r=super.maybeParseExportNamespaceSpecifier(e);return r&&"type"===e.exportKind&&this.unexpected(t),r}parseClassId(e,t,r){super.parseClassId(e,t,r),this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,r){const i=this.state.start;if(this.isContextual("declare")){if(this.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(i,W.DeclareClassElement):t.value&&this.raise(t.value.start,W.DeclareClassFieldInitializer))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){const e=super.readWord1(),t="@@"+e;this.isIterator(e)&&this.state.inType||this.raise(this.state.pos,T.InvalidIdentifier,t),this.finishToken(l.name,t)}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);return 123===e&&124===t?this.finishOp(l.braceBarL,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?46===t?this.finishOp(l.questionDot,2):this.finishOp(l.question,1):function(e,t){return 64===e&&64===t}(e,t)?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e):this.finishOp(l.relational,1)}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":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=>this.isAssignable(e)));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":case"TypeCastExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toAssignable(e,t=!1){return"TypeCastExpression"===e.type?super.toAssignable(this.typeCastToParameter(e),t):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))}return super.toAssignableList(e,t,r)}toReferencedList(e,t){for(let i=0;i<e.length;i++){var r;const n=e[i];!n||"TypeCastExpression"!==n.type||null!=(r=n.extra)&&r.parenthesized||!(e.length>1)&&t||this.raise(n.typeAnnotation.start,W.TypeCastInPattern)}return e}parseArrayLike(e,t,r,i){const n=super.parseArrayLike(e,t,r,i);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}checkLVal(e,...t){if("TypeCastExpression"!==e.type)return super.checkLVal(e,...t)}parseClassProperty(e){return this.match(l.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(l.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(l.colon)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(l.colon)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,r,i,n,s){if(t.variance&&this.unexpected(t.variance.start),delete t.variance,this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,r,i,n,s),t.params&&n){const e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(t.start,W.ThisParamBannedInConstructor)}else if("MethodDefinition"===t.type&&n&&t.value.params){const e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(t.start,W.ThisParamBannedInConstructor)}}pushClassPrivateMethod(e,t,r,i){t.variance&&this.unexpected(t.variance.start),delete t.variance,this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,r,i)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.isRelational("<")&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual("implements")){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(l.comma))}}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(r.start,W.GetterMayNotHaveThisParam):this.isThisParam(r)&&this.raise(r.start,W.SetterMayNotHaveThisParam)}}parsePropertyName(e,t){const r=this.flowParseVariance(),i=super.parsePropertyName(e,t);return e.variance=r,i}parseObjPropValue(e,t,r,i,n,s,a,o){let c;e.variance&&this.unexpected(e.variance.start),delete e.variance,this.isRelational("<")&&!a&&(c=this.flowParseTypeParameterDeclaration(),this.match(l.parenL)||this.unexpected()),super.parseObjPropValue(e,t,r,i,n,s,a,o),c&&((e.value||e).typeParameters=c)}parseAssignableListItemTypes(e){return this.eat(l.question)&&("Identifier"!==e.type&&this.raise(e.start,W.OptionalBindingPattern),this.isThisParam(e)&&this.raise(e.start,W.ThisParamMayNotBeOptional),e.optional=!0),this.match(l.colon)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(e.start,W.ThisParamAnnotationRequired),this.match(l.eq)&&this.isThisParam(e)&&this.raise(e.start,W.ThisParamNoDefault),this.resetEndLocation(e),e}parseMaybeDefault(e,t,r){const i=super.parseMaybeDefault(e,t,r);return"AssignmentPattern"===i.type&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(i.typeAnnotation.start,W.TypeBeforeInitializer),i}shouldParseDefaultImport(e){return hasTypeImportKind(e)?isMaybeDefaultImport(this.state):super.shouldParseDefaultImport(e)}parseImportSpecifierLocal(e,t,r,i){t.local=hasTypeImportKind(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),this.checkLVal(t.local,i,9),e.specifiers.push(this.finishNode(t,r))}maybeParseDefaultImportSpecifier(e){e.importKind="value";let t=null;if(this.match(l._typeof)?t="typeof":this.isContextual("type")&&(t="type"),t){const r=this.lookahead();"type"===t&&r.type===l.star&&this.unexpected(r.start),(isMaybeDefaultImport(r)||r.type===l.braceL||r.type===l.star)&&(this.next(),e.importKind=t)}return super.maybeParseDefaultImportSpecifier(e)}parseImportSpecifier(e){const t=this.startNode(),r=this.state.start,i=this.parseModuleExportName();let n=null;"Identifier"===i.type&&("type"===i.name?n="type":"typeof"===i.name&&(n="typeof"));let s=!1;if(this.isContextual("as")&&!this.isLookaheadContextual("as")){const e=this.parseIdentifier(!0);null===n||this.match(l.name)||this.state.type.keyword?(t.imported=i,t.importKind=null,t.local=this.parseIdentifier()):(t.imported=e,t.importKind=n,t.local=e.__clone())}else if(null!==n&&(this.match(l.name)||this.state.type.keyword))t.imported=this.parseIdentifier(!0),t.importKind=n,this.eatContextual("as")?t.local=this.parseIdentifier():(s=!0,t.local=t.imported.__clone());else{if("StringLiteral"===i.type)throw this.raise(t.start,T.ImportBindingIsString,i.value);s=!0,t.imported=i,t.importKind=null,t.local=t.imported.__clone()}const a=hasTypeImportKind(e),o=hasTypeImportKind(t);a&&o&&this.raise(r,W.ImportTypeShorthandOnlyInPureImport),(a||o)&&this.checkReservedType(t.local.name,t.local.start,!0),!s||a||o||this.checkReservedWord(t.local.name,t.start,!0,!0),this.checkLVal(t.local,"import specifier",9),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))}parseBindingAtom(){return this.state.type===l._this?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,t){const r=e.kind;"get"!==r&&"set"!==r&&this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(l.colon)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(l.colon)){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(l.colon)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t,r){var i;let n,s=null;if(this.hasPlugin("jsx")&&(this.match(l.jsxTagStart)||this.isRelational("<"))){if(s=this.state.clone(),n=this.tryParse((()=>super.parseMaybeAssign(e,t,r)),s),!n.error)return n.node;const{context:i}=this.state;i[i.length-1]===x.j_oTag?i.length-=2:i[i.length-1]===x.j_expr&&(i.length-=1)}if(null!=(i=n)&&i.error||this.isRelational("<")){var a,o;let i;s=s||this.state.clone();const l=this.tryParse((n=>{var s;i=this.flowParseTypeParameterDeclaration();const a=this.forwardNoArrowParamsConversionAt(i,(()=>{const n=super.parseMaybeAssign(e,t,r);return this.resetStartLocationFromNode(n,i),n}));"ArrowFunctionExpression"!==a.type&&null!=(s=a.extra)&&s.parenthesized&&n();const o=this.maybeUnwrapTypeCastExpression(a);return o.typeParameters=i,this.resetStartLocationFromNode(o,i),a}),s);let c=null;if(l.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(l.node).type){if(!l.error&&!l.aborted)return l.node.async&&this.raise(i.start,W.UnexpectedTypeParameterBeforeAsyncArrowFunction),l.node;c=l.node}if(null!=(a=n)&&a.node)return this.state=n.failState,n.node;if(c)return this.state=l.failState,c;if(null!=(o=n)&&o.thrown)throw n.error;if(l.thrown)throw l.error;throw this.raise(i.start,W.UnexpectedTokenAfterTypeParameter)}return super.parseMaybeAssign(e,t,r)}parseArrow(e){if(this.match(l.colon)){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(l.arrow)||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(){return this.match(l.colon)||super.shouldParseArrow()}setArrowFunctionParameters(e,t){-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,r){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(e.params[t].start,W.ThisParamMustBeFirst);return super.checkParams(...arguments)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(e,t,r,i){if("Identifier"===e.type&&"async"===e.name&&-1!==this.state.noArrowAt.indexOf(t)){this.next();const i=this.startNodeAt(t,r);i.callee=e,i.arguments=this.parseCallExpressionArguments(l.parenR,!1),e=this.finishNode(i,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.isRelational("<")){const n=this.state.clone(),s=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t,r)||e()),n);if(!s.error&&!s.aborted)return s.node;const a=this.tryParse((()=>super.parseSubscripts(e,t,r,i)),n);if(a.node&&!a.error)return a.node;if(s.node)return this.state=s.failState,s.node;if(a.node)return this.state=a.failState,a.node;throw s.error||a.error}return super.parseSubscripts(e,t,r,i)}parseSubscript(e,t,r,i,n){if(this.match(l.questionDot)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,i)return n.stop=!0,e;this.next();const s=this.startNodeAt(t,r);return s.callee=e,s.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(l.parenL),s.arguments=this.parseCallExpressionArguments(l.parenR,!1),s.optional=!0,this.finishCallExpression(s,!0)}if(!i&&this.shouldParseTypes()&&this.isRelational("<")){const i=this.startNodeAt(t,r);i.callee=e;const s=this.tryParse((()=>(i.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(l.parenL),i.arguments=this.parseCallExpressionArguments(l.parenR,!1),n.optionalChainMember&&(i.optional=!1),this.finishCallExpression(i,n.optionalChainMember))));if(s.node)return s.error&&(this.state=s.failState),s.node}return super.parseSubscript(e,t,r,i,n)}parseNewArguments(e){let t=null;this.shouldParseTypes()&&this.isRelational("<")&&(t=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),e.typeArguments=t,super.parseNewArguments(e)}parseAsyncArrowWithTypeParameters(e,t){const r=this.startNodeAt(e,t);if(this.parseFunctionParams(r),this.parseArrow(r))return this.parseArrowExpression(r,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(l.braceBarR,2)}parseTopLevel(e,t){const r=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(this.state.pos,W.UnterminatedFlowComment),r}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment())return this.state.hasFlowComment&&this.unexpected(null,W.NestedFlowComment),this.hasFlowCommentCompletion(),this.state.pos+=this.skipFlowComment(),void(this.state.hasFlowComment=!0);if(this.state.hasFlowComment){const e=this.input.indexOf("*-/",this.state.pos+=2);if(-1===e)throw this.raise(this.state.pos-2,T.UnterminatedComment);this.state.pos=e+3}else super.skipBlockComment()}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),i=this.input.charCodeAt(t+e+1);return 58===r&&58===i?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==i&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(this.state.pos,T.UnterminatedComment)}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:r}){this.raise(e,W.EnumBooleanMemberNotInitialized,r,t)}flowEnumErrorInvalidMemberName(e,{enumName:t,memberName:r}){const i=r[0].toUpperCase()+r.slice(1);this.raise(e,W.EnumInvalidMemberName,r,i,t)}flowEnumErrorDuplicateMemberName(e,{enumName:t,memberName:r}){this.raise(e,W.EnumDuplicateMemberName,r,t)}flowEnumErrorInconsistentMemberValues(e,{enumName:t}){this.raise(e,W.EnumInconsistentMemberValues,t)}flowEnumErrorInvalidExplicitType(e,{enumName:t,suppliedType:r}){return this.raise(e,null===r?W.EnumInvalidExplicitTypeUnknownSupplied:W.EnumInvalidExplicitType,t,r)}flowEnumErrorInvalidMemberInitializer(e,{enumName:t,explicitType:r,memberName:i}){let n=null;switch(r){case"boolean":case"number":case"string":n=W.EnumInvalidMemberInitializerPrimaryType;break;case"symbol":n=W.EnumInvalidMemberInitializerSymbolType;break;default:n=W.EnumInvalidMemberInitializerUnknownType}return this.raise(e,n,t,i,r)}flowEnumErrorNumberMemberNotInitialized(e,{enumName:t,memberName:r}){this.raise(e,W.EnumNumberMemberNotInitialized,t,r)}flowEnumErrorStringMemberInconsistentlyInitailized(e,{enumName:t}){this.raise(e,W.EnumStringMemberInconsistentlyInitailized,t)}flowEnumMemberInit(){const e=this.state.start,endOfInit=()=>this.match(l.comma)||this.match(l.braceR);switch(this.state.type){case l.num:{const t=this.parseLiteral(this.state.value,"NumericLiteral");return endOfInit()?{type:"number",pos:t.start,value:t}:{type:"invalid",pos:e}}case l.string:{const t=this.parseLiteral(this.state.value,"StringLiteral");return endOfInit()?{type:"string",pos:t.start,value:t}:{type:"invalid",pos:e}}case l._true:case l._false:{const t=this.parseBooleanLiteral();return endOfInit()?{type:"boolean",pos:t.start,value:t}:{type:"invalid",pos:e}}default:return{type:"invalid",pos:e}}}flowEnumMemberRaw(){const e=this.state.start;return{id:this.parseIdentifier(!0),init:this.eat(l.eq)?this.flowEnumMemberInit():{type:"none",pos:e}}}flowEnumCheckExplicitTypeMismatch(e,t,r){const{explicitType:i}=t;null!==i&&i!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){const r=new Set,i={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let n=!1;for(;!this.match(l.braceR);){if(this.eat(l.ellipsis)){n=!0;break}const s=this.startNode(),{id:a,init:o}=this.flowEnumMemberRaw(),c=a.name;if(""===c)continue;/^[a-z]/.test(c)&&this.flowEnumErrorInvalidMemberName(a.start,{enumName:e,memberName:c}),r.has(c)&&this.flowEnumErrorDuplicateMemberName(a.start,{enumName:e,memberName:c}),r.add(c);const u={enumName:e,explicitType:t,memberName:c};switch(s.id=a,o.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(o.pos,u,"boolean"),s.init=o.value,i.booleanMembers.push(this.finishNode(s,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(o.pos,u,"number"),s.init=o.value,i.numberMembers.push(this.finishNode(s,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(o.pos,u,"string"),s.init=o.value,i.stringMembers.push(this.finishNode(s,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(o.pos,u);case"none":switch(t){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.pos,u);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.pos,u);break;default:i.defaultedMembers.push(this.finishNode(s,"EnumDefaultedMember"))}}this.match(l.braceR)||this.expect(l.comma)}return{members:i,hasUnknownMembers:n}}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.flowEnumErrorStringMemberInconsistentlyInitailized(t.start,{enumName:r});return t}for(const e of t)this.flowEnumErrorStringMemberInconsistentlyInitailized(e.start,{enumName:r});return e}flowEnumParseExplicitType({enumName:e}){if(this.eatContextual("of")){if(!this.match(l.name))throw this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:e,suppliedType:null});const{value:t}=this.state;return this.next(),"boolean"!==t&&"number"!==t&&"string"!==t&&"symbol"!==t&&this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:e,suppliedType:t}),t}return null}flowEnumBody(e,{enumName:t,nameLoc:r}){const i=this.flowEnumParseExplicitType({enumName:t});this.expect(l.braceL);const{members:n,hasUnknownMembers:s}=this.flowEnumMembers({enumName:t,explicitType:i});switch(e.hasUnknownMembers=s,i){case"boolean":return e.explicitType=!0,e.members=n.booleanMembers,this.expect(l.braceR),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=n.numberMembers,this.expect(l.braceR),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:t}),this.expect(l.braceR),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=n.defaultedMembers,this.expect(l.braceR),this.finishNode(e,"EnumSymbolBody");default:{const empty=()=>(e.members=[],this.expect(l.braceR),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const i=n.booleanMembers.length,s=n.numberMembers.length,a=n.stringMembers.length,o=n.defaultedMembers.length;if(i||s||a||o){if(i||s){if(!s&&!a&&i>=o){for(const e of n.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.start,{enumName:t,memberName:e.id.name});return e.members=n.booleanMembers,this.expect(l.braceR),this.finishNode(e,"EnumBooleanBody")}if(!i&&!a&&s>=o){for(const e of n.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.start,{enumName:t,memberName:e.id.name});return e.members=n.numberMembers,this.expect(l.braceR),this.finishNode(e,"EnumNumberBody")}return this.flowEnumErrorInconsistentMemberValues(r,{enumName:t}),empty()}return e.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:t}),this.expect(l.braceR),this.finishNode(e,"EnumStringBody")}return empty()}}}flowParseEnumDeclaration(e){const t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),{enumName:t.name,nameLoc:t.start}),this.finishNode(e,"EnumDeclaration")}updateContext(e){this.match(l.name)&&"of"===this.state.value&&e===l.name&&"interface"===this.input.slice(this.state.lastTokStart,this.state.lastTokEnd)?this.state.exprAllowed=!1:super.updateContext(e)}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{getScopeHandler(){return Q}tsIsIdentifier(){return this.match(l.name)}tsTokenCanFollowModifier(){return(this.match(l.bracketL)||this.match(l.braceL)||this.match(l.star)||this.match(l.ellipsis)||this.match(l.privateName)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(e){if(!this.match(l.name))return;const t=this.state.value;return-1!==e.indexOf(t)&&this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))?t:void 0}tsParseModifiers(e,t,r,i){const enforceOrder=(t,r,i,n)=>{r===i&&e[n]&&this.raise(t,ee.InvalidModifiersOrder,i,n)},incompatible=(t,r,i,n)=>{(e[i]&&r===n||e[n]&&r===i)&&this.raise(t,ee.IncompatibleModifiers,i,n)};for(;;){const n=this.state.start,s=this.tsParseModifier(t.concat(null!=r?r:[]));if(!s)break;tsIsAccessModifier(s)?e.accessibility?this.raise(n,ee.DuplicateAccessibilityModifier):(enforceOrder(n,s,s,"override"),enforceOrder(n,s,s,"static"),e.accessibility=s):(Object.hasOwnProperty.call(e,s)?this.raise(n,ee.DuplicateModifier,s):(enforceOrder(n,s,"static","readonly"),enforceOrder(n,s,"static","override"),enforceOrder(n,s,"override","readonly"),enforceOrder(n,s,"abstract","override"),incompatible(n,s,"declare","override"),incompatible(n,s,"static","abstract")),e[s]=!0),null!=r&&r.includes(s)&&this.raise(n,i,s)}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(l.braceR);case"HeritageClauseElement":return this.match(l.braceL);case"TupleElementTypes":return this.match(l.bracketR);case"TypeParametersOrArguments":return this.isRelational(">")}throw new Error("Unreachable")}tsParseList(e,t){const r=[];for(;!this.tsIsListTerminator(e);)r.push(t());return r}tsParseDelimitedList(e,t){return nonNull(this.tsParseDelimitedListWorker(e,t,!0))}tsParseDelimitedListWorker(e,t,r){const i=[];for(;!this.tsIsListTerminator(e);){const n=t();if(null==n)return;if(i.push(n),!this.eat(l.comma)){if(this.tsIsListTerminator(e))break;return void(r&&this.expect(l.comma))}}return i}tsParseBracketedList(e,t,r,i){i||(r?this.expect(l.bracketL):this.expectRelational("<"));const n=this.tsParseDelimitedList(e,t);return r?this.expect(l.bracketR):this.expectRelational(">"),n}tsParseImportType(){const e=this.startNode();return this.expect(l._import),this.expect(l.parenL),this.match(l.string)||this.raise(this.state.start,ee.UnsupportedImportTypeArgument),e.argument=this.parseExprAtom(),this.expect(l.parenR),this.eat(l.dot)&&(e.qualifier=this.tsParseEntityName(!0)),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(e){let t=this.parseIdentifier();for(;this.eat(l.dot);){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(!1),!this.hasPrecedingLineBreak()&&this.isRelational("<")&&(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(l._typeof),this.match(l._import)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(!0),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(){const e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsEatThenParseType(l._extends),e.default=this.tsEatThenParseType(l.eq),this.finishNode(e,"TSTypeParameter")}tsTryParseTypeParameters(){if(this.isRelational("<"))return this.tsParseTypeParameters()}tsParseTypeParameters(){const e=this.startNode();return this.isRelational("<")||this.match(l.jsxTagStart)?this.next():this.unexpected(),e.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0),0===e.params.length&&this.raise(e.start,ee.EmptyTypeParameters),this.finishNode(e,"TSTypeParameterDeclaration")}tsTryNextParseConstantContext(){return this.lookahead().type===l._const?(this.next(),this.tsParseTypeReference()):null}tsFillSignature(e,t){const r=e===l.arrow;t.typeParameters=this.tsTryParseTypeParameters(),this.expect(l.parenL),t.parameters=this.tsParseBindingListForSignature(),(r||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){return this.parseBindingList(l.parenR,41).map((e=>("Identifier"!==e.type&&"RestElement"!==e.type&&"ObjectPattern"!==e.type&&"ArrayPattern"!==e.type&&this.raise(e.start,ee.UnsupportedSignatureParameterKind,e.type),e)))}tsParseTypeMemberSemicolon(){this.eat(l.comma)||this.isLineTerminator()||this.expect(l.semi)}tsParseSignatureMember(e,t){return this.tsFillSignature(l.colon,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),this.eat(l.name)&&this.match(l.colon)}tsTryParseIndexSignature(e){if(!this.match(l.bracketL)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(l.bracketL);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(l.bracketR),e.parameters=[t];const r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){this.eat(l.question)&&(e.optional=!0);const r=e;if(this.match(l.parenL)||this.isRelational("<")){t&&this.raise(e.start,ee.ReadonlyForMethodSignature);const i=r;if(i.kind&&this.isRelational("<")&&this.raise(this.state.pos,ee.AccesorCannotHaveTypeParameters),this.tsFillSignature(l.colon,i),this.tsParseTypeMemberSemicolon(),"get"===i.kind)i.parameters.length>0&&(this.raise(this.state.pos,T.BadGetterArity),this.isThisParam(i.parameters[0])&&this.raise(this.state.pos,ee.AccesorCannotDeclareThisParameter));else if("set"===i.kind){if(1!==i.parameters.length)this.raise(this.state.pos,T.BadSetterArity);else{const e=i.parameters[0];this.isThisParam(e)&&this.raise(this.state.pos,ee.AccesorCannotDeclareThisParameter),"Identifier"===e.type&&e.optional&&this.raise(this.state.pos,ee.SetAccesorCannotHaveOptionalParameter),"RestElement"===e.type&&this.raise(this.state.pos,ee.SetAccesorCannotHaveRestParameter)}i.typeAnnotation&&this.raise(i.typeAnnotation.start,ee.SetAccesorCannotHaveReturnType)}else i.kind="method";return this.finishNode(i,"TSMethodSignature")}{const e=r;t&&(e.readonly=!0);const i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(l.parenL)||this.isRelational("<"))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(l._new)){const t=this.startNode();return this.next(),this.match(l.parenL)||this.isRelational("<")?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers(e,["readonly"],["declare","abstract","private","protected","public","static","override"],ee.InvalidModifierOnTypeMember);const t=this.tsTryParseIndexSignature(e);return t||(this.parsePropertyName(e,!1),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,this.parsePropertyName(e,!1)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(l.braceL);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(l.braceR),e}tsIsStartOfMappedType(){return this.next(),this.eat(l.plusMin)?this.isContextual("readonly"):(this.isContextual("readonly")&&this.next(),!!this.match(l.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(l._in))))}tsParseMappedTypeParameter(){const e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsExpectThenParseType(l._in),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){const e=this.startNode();return this.expect(l.braceL),this.match(l.plusMin)?(e.readonly=this.state.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(e.readonly=!0),this.expect(l.bracketL),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(l.bracketR),this.match(l.plusMin)?(e.optional=this.state.value,this.next(),this.expect(l.question)):this.eat(l.question)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(l.braceR),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1,r=null;return e.elementTypes.forEach((e=>{var i;let{type:n}=e;!t||"TSRestType"===n||"TSOptionalType"===n||"TSNamedTupleMember"===n&&e.optional||this.raise(e.start,ee.OptionalTypeBeforeRequired),t=t||"TSNamedTupleMember"===n&&e.optional||"TSOptionalType"===n,"TSRestType"===n&&(n=(e=e.typeAnnotation).type);const s="TSNamedTupleMember"===n;r=null!=(i=r)?i:s,r!==s&&this.raise(e.start,ee.MixedLabeledAndUnlabeledElements)})),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const{start:e,startLoc:t}=this.state,r=this.eat(l.ellipsis);let i=this.tsParseType();const n=this.eat(l.question);if(this.eat(l.colon)){const e=this.startNodeAtNode(i);e.optional=n,"TSTypeReference"!==i.type||i.typeParameters||"Identifier"!==i.typeName.type?(this.raise(i.start,ee.InvalidTupleMemberLabel),e.label=i):e.label=i.typeName,e.elementType=this.tsParseType(),i=this.finishNode(e,"TSNamedTupleMember")}else if(n){const e=this.startNodeAtNode(i);e.typeAnnotation=i,i=this.finishNode(e,"TSOptionalType")}if(r){const r=this.startNodeAt(e,t);r.typeAnnotation=i,i=this.finishNode(r,"TSRestType")}return i}tsParseParenthesizedType(){const e=this.startNode();return this.expect(l.parenL),e.typeAnnotation=this.tsParseType(),this.expect(l.parenR),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){const r=this.startNode();return"TSConstructorType"===e&&(r.abstract=!!t,t&&this.next(),this.next()),this.tsFillSignature(l.arrow,r),this.finishNode(r,e)}tsParseLiteralTypeNode(){const e=this.startNode();return e.literal=(()=>{switch(this.state.type){case l.num:case l.bigint:case l.string:case l._true:case l._false:return this.parseExprAtom();default:throw this.unexpected()}})(),this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){const e=this.startNode();return e.literal=this.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case l.name:case l._void:case l._null:{const e=this.match(l._void)?"TSVoidKeyword":this.match(l._null)?"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!==e&&46!==this.lookaheadCharCode()){const t=this.startNode();return this.next(),this.finishNode(t,e)}return this.tsParseTypeReference()}case l.string:case l.num:case l.bigint:case l._true:case l._false:return this.tsParseLiteralTypeNode();case l.plusMin:if("-"===this.state.value){const e=this.startNode(),t=this.lookahead();if(t.type!==l.num&&t.type!==l.bigint)throw this.unexpected();return e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case l._this:return this.tsParseThisTypeOrThisTypePredicate();case l._typeof:return this.tsParseTypeQuery();case l._import:return this.tsParseImportType();case l.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case l.bracketL:return this.tsParseTupleType();case l.parenL:return this.tsParseParenthesizedType();case l.backQuote:return this.tsParseTemplateLiteralType()}throw this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(l.bracketL);)if(this.match(l.bracketR)){const t=this.startNodeAtNode(e);t.elementType=e,this.expect(l.bracketR),e=this.finishNode(t,"TSArrayType")}else{const t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(l.bracketR),e=this.finishNode(t,"TSIndexedAccessType")}return e}tsParseTypeOperator(e){const t=this.startNode();return this.expectContextual(e),t.operator=e,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===e&&this.tsCheckTypeAnnotationForReadOnly(t),this.finishNode(t,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(e.start,ee.UnexpectedReadonly)}}tsParseInferType(){const e=this.startNode();this.expectContextual("infer");const t=this.startNode();return t.name=this.parseIdentifierName(t.start),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseTypeOperatorOrHigher(){const e=["keyof","unique","readonly"].find((e=>this.isContextual(e)));return e?this.tsParseTypeOperator(e):this.isContextual("infer")?this.tsParseInferType():this.tsParseArrayTypeOrHigher()}tsParseUnionOrIntersectionType(e,t,r){const i=this.startNode(),n=this.eat(r),s=[];do{s.push(t())}while(this.eat(r));return 1!==s.length||n?(i.types=s,this.finishNode(i,e)):s[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),l.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),l.bitwiseOR)}tsIsStartOfFunctionType(){return!!this.isRelational("<")||this.match(l.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(this.match(l.name)||this.match(l._this))return this.next(),!0;if(this.match(l.braceL)){let e=1;for(this.next();e>0;)this.match(l.braceL)?++e:this.match(l.braceR)&&--e,this.next();return!0}if(this.match(l.bracketL)){let e=1;for(this.next();e>0;)this.match(l.bracketL)?++e:this.match(l.bracketR)&&--e,this.next();return!0}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(l.parenR)||this.match(l.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(l.colon)||this.match(l.comma)||this.match(l.question)||this.match(l.eq))return!0;if(this.match(l.parenR)&&(this.next(),this.match(l.arrow)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{const t=this.startNode();this.expect(e);const r=this.startNode(),i=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(i&&this.match(l._this)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(r.parameterName=e,r.asserts=!0,e=this.finishNode(r,"TSTypePredicate")):(this.resetStartLocationFromNode(e,r),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}const n=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!n)return i?(r.parameterName=this.parseIdentifier(),r.asserts=i,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);const s=this.tsParseTypeAnnotation(!1);return r.parameterName=n,r.typeAnnotation=s,r.asserts=i,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(l.colon)?this.tsParseTypeOrTypePredicateAnnotation(l.colon):void 0}tsTryParseTypeAnnotation(){return this.match(l.colon)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(l.colon)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(!this.match(l.name)||"asserts"!==this.state.value||this.hasPrecedingLineBreak())return!1;const e=this.state.containsEsc;return this.next(),!(!this.match(l.name)&&!this.match(l._this))&&(e&&this.raise(this.state.lastTokStart,T.InvalidEscapedReservedWord,"asserts"),!0)}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType((()=>{e&&this.expect(l.colon),t.typeAnnotation=this.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){assert(this.state.inType);const e=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(l._extends))return e;const t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsParseNonConditionalType(),this.expect(l.question),t.trueType=this.tsParseType(),this.expect(l.colon),t.falseType=this.tsParseType(),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual("abstract")&&this.lookahead().type===l._new}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(l._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){const e=this.startNode(),t=this.tsTryNextParseConstantContext();return e.typeAnnotation=t||this.tsNextThenParseType(),this.expectRelational(">"),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.start,r=this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this));return r.length||this.raise(t,ee.EmptyHeritageClauseType,e),r}tsParseExpressionWithTypeArguments(){const e=this.startNode();return e.expression=this.tsParseEntityName(!1),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}tsParseInterfaceDeclaration(e){e.id=this.parseIdentifier(),this.checkLVal(e.id,"typescript interface declaration",130),e.typeParameters=this.tsTryParseTypeParameters(),this.eat(l._extends)&&(e.extends=this.tsParseHeritageClause("extends"));const t=this.startNode();return t.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(t,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkLVal(e.id,"typescript type alias",2),e.typeParameters=this.tsTryParseTypeParameters(),e.typeAnnotation=this.tsInType((()=>{if(this.expect(l.eq),this.isContextual("intrinsic")&&this.lookahead().type!==l.dot){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}}tsEatThenParseType(e){return this.match(e)?this.tsNextThenParseType():void 0}tsExpectThenParseType(e){return this.tsDoThenParseType((()=>this.expect(e)))}tsNextThenParseType(){return this.tsDoThenParseType((()=>this.next()))}tsDoThenParseType(e){return this.tsInType((()=>(e(),this.tsParseType())))}tsParseEnumMember(){const e=this.startNode();return e.id=this.match(l.string)?this.parseExprAtom():this.parseIdentifier(!0),this.eat(l.eq)&&(e.initializer=this.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t){return t&&(e.const=!0),e.id=this.parseIdentifier(),this.checkLVal(e.id,"typescript enum declaration",t?779:267),this.expect(l.braceL),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(l.braceR),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(0),this.expect(l.braceL),this.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,l.braceR),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier(),t||this.checkLVal(e.id,"module or namespace declaration",1024),this.eat(l.dot)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(M),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual("global")?(e.global=!0,e.id=this.parseIdentifier()):this.match(l.string)?e.id=this.parseExprAtom():this.unexpected(),this.match(l.braceL)?(this.scope.enter(M),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t){e.isExport=t||!1,e.id=this.parseIdentifier(),this.checkLVal(e.id,"import equals declaration",9),this.expect(l.eq);const r=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(r.start,ee.ImportAliasHasImportType),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual("require")&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const e=this.startNode();if(this.expectContextual("require"),this.expect(l.parenL),!this.match(l.string))throw this.unexpected();return e.expression=this.parseExprAtom(),this.expect(l.parenR),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();return void 0!==r&&!1!==r?r:void(this.state=t)}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t,r=this.state.type;return this.isContextual("let")&&(r=l._var,t="let"),this.tsInAmbientContext((()=>{switch(r){case l._function:return e.declare=!0,this.parseFunctionStatement(e,!1,!0);case l._class:return e.declare=!0,this.parseClass(e,!0,!1);case l._const:if(this.match(l._const)&&this.isLookaheadContextual("enum"))return this.expect(l._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(e,!0);case l._var:return t=t||this.state.value,this.parseVarStatement(e,t);case l.name:{const t=this.state.value;return"global"===t?this.tsParseAmbientExternalModuleDeclaration(e):this.tsParseDeclaration(e,t,!0)}}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)}tsParseExpressionStatement(e,t){switch(t.name){case"declare":{const t=this.tsTryParseDeclare(e);if(t)return t.declare=!0,t;break}case"global":if(this.match(l.braceL)){this.scope.enter(M),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)}}tsParseDeclaration(e,t,r){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(l._class)||this.match(l.name)))return this.tsParseAbstractDeclaration(e);break;case"enum":if(r||this.match(l.name))return r&&this.next(),this.tsParseEnumDeclaration(e,!1);break;case"interface":if(this.tsCheckLineTerminator(r)&&this.match(l.name))return this.tsParseInterfaceDeclaration(e);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(l.string))return this.tsParseAmbientExternalModuleDeclaration(e);if(this.match(l.name))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&this.match(l.name))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(r)&&this.match(l.name))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e,t){if(!this.isRelational("<"))return;const r=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const i=this.tsTryParseAndCatch((()=>{const r=this.startNodeAt(e,t);return r.typeParameters=this.tsParseTypeParameters(),super.parseFunctionParams(r),r.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(l.arrow),r}));return this.state.maybeInArrowParameters=r,i?this.parseArrowExpression(i,null,!0):void 0}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expectRelational("<"),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===e.params.length&&this.raise(e.start,ee.EmptyTypeArguments),this.state.exprAllowed=!1,this.expectRelational(">"),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){if(this.match(l.name))switch(this.state.value){case"abstract":case"declare":case"enum":case"interface":case"module":case"namespace":case"type":return!0}return!1}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){const r=this.state.start,i=this.state.startLoc;let n,s=!1;void 0!==e&&(n=this.parseAccessModifier(),s=!!this.tsParseModifier(["readonly"]),!1===e&&(n||s)&&this.raise(r,ee.UnexpectedParameterModifier));const a=this.parseMaybeDefault();this.parseAssignableListItemTypes(a);const o=this.parseMaybeDefault(a.start,a.loc.start,a);if(n||s){const e=this.startNodeAt(r,i);return t.length&&(e.decorators=t),n&&(e.accessibility=n),s&&(e.readonly=s),"Identifier"!==o.type&&"AssignmentPattern"!==o.type&&this.raise(e.start,ee.UnsupportedParameterPropertyKind),e.parameter=o,this.finishNode(e,"TSParameterProperty")}return t.length&&(a.decorators=t),o}parseFunctionBodyAndFinish(e,t,r=!1){this.match(l.colon)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(l.colon));const i="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t?"TSDeclareMethod":void 0;i&&!this.match(l.braceL)&&this.isLineTerminator()?this.finishNode(e,i):"TSDeclareFunction"===i&&this.state.isAmbientContext&&(this.raise(e.start,ee.DeclareFunctionHasImplementation),e.declare)?super.parseFunctionBodyAndFinish(e,i,r):super.parseFunctionBodyAndFinish(e,t,r)}registerFunctionStatementId(e){!e.body&&e.id?this.checkLVal(e.id,"function name",1024):super.registerFunctionStatementId(...arguments)}tsCheckForInvalidTypeCasts(e){e.forEach((e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(e.typeAnnotation.start,ee.UnexpectedTypeAnnotation)}))}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(...e){const t=super.parseArrayLike(...e);return"ArrayExpression"===t.type&&this.tsCheckForInvalidTypeCasts(t.elements),t}parseSubscript(e,t,r,i,n){if(!this.hasPrecedingLineBreak()&&this.match(l.bang)){this.state.exprAllowed=!1,this.next();const i=this.startNodeAt(t,r);return i.expression=e,this.finishNode(i,"TSNonNullExpression")}if(this.isRelational("<")){const s=this.tsTryParseAndCatch((()=>{if(!i&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t,r);if(e)return e}const s=this.startNodeAt(t,r);s.callee=e;const a=this.tsParseTypeArguments();if(a){if(!i&&this.eat(l.parenL))return s.arguments=this.parseCallExpressionArguments(l.parenR,!1),this.tsCheckForInvalidTypeCasts(s.arguments),s.typeParameters=a,n.optionalChainMember&&(s.optional=!1),this.finishCallExpression(s,n.optionalChainMember);if(this.match(l.backQuote)){const i=this.parseTaggedTemplateExpression(e,t,r,n);return i.typeParameters=a,i}}this.unexpected()}));if(s)return s}return super.parseSubscript(e,t,r,i,n)}parseNewArguments(e){if(this.isRelational("<")){const t=this.tsTryParseAndCatch((()=>{const e=this.tsParseTypeArguments();return this.match(l.parenL)||this.unexpected(),e}));t&&(e.typeParameters=t)}super.parseNewArguments(e)}parseExprOp(e,t,r,i){if(nonNull(l._in.binop)>i&&!this.hasPrecedingLineBreak()&&this.isContextual("as")){const n=this.startNodeAt(t,r);n.expression=e;const s=this.tsTryNextParseConstantContext();return n.typeAnnotation=s||this.tsNextThenParseType(),this.finishNode(n,"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,t,r,i)}return super.parseExprOp(e,t,r,i)}checkReservedWord(e,t,r,i){}checkDuplicateExports(){}parseImport(e){if(e.importKind="value",this.match(l.name)||this.match(l.star)||this.match(l.braceL)){let t=this.lookahead();if(!this.isContextual("type")||t.type===l.comma||t.type===l.name&&"from"===t.value||t.type===l.eq||(e.importKind="type",this.next(),t=this.lookahead()),this.match(l.name)&&t.type===l.eq)return this.tsParseImportEqualsDeclaration(e)}const t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(t.start,ee.TypeImportCannotSpecifyDefaultAndNamed),t}parseExport(e){if(this.match(l._import))return this.next(),this.isContextual("type")&&61!==this.lookaheadCharCode()?(e.importKind="type",this.next()):e.importKind="value",this.tsParseImportEqualsDeclaration(e,!0);if(this.eat(l.eq)){const t=e;return t.expression=this.parseExpression(),this.semicolon(),this.finishNode(t,"TSExportAssignment")}if(this.eatContextual("as")){const t=e;return this.expectContextual("namespace"),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}return this.isContextual("type")&&this.lookahead().type===l.braceL?(this.next(),e.exportKind="type"):e.exportKind="value",super.parseExport(e)}isAbstractClass(){return this.isContextual("abstract")&&this.lookahead().type===l._class}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0),e}if("interface"===this.state.value){const e=this.tsParseDeclaration(this.startNode(),this.state.value,!0);if(e)return e}return super.parseExportDefaultExpression()}parseStatementContent(e,t){if(this.state.type===l._const){const e=this.lookahead();if(e.type===l.name&&"enum"===e.value){const e=this.startNode();return this.expect(l._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(e,!0)}}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some((t=>tsIsAccessModifier(t)?e.accessibility===t:!!e[t]))}parseClassMember(e,t,r){const i=["declare","private","public","protected","override","abstract","readonly"];this.tsParseModifiers(t,i.concat(["static"]));const callParseClassMemberWithIsStatic=()=>{const n=!!t.static;n&&this.eat(l.braceL)?(this.tsHasSomeModifiers(t,i)&&this.raise(this.state.pos,ee.StaticBlockCannotHaveModifier),this.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,r,n)};t.declare?this.tsInAmbientContext(callParseClassMemberWithIsStatic):callParseClassMemberWithIsStatic()}parseClassMemberWithIsStatic(e,t,r,i){const n=this.tsTryParseIndexSignature(t);if(n)return e.body.push(n),t.abstract&&this.raise(t.start,ee.IndexSignatureHasAbstract),t.accessibility&&this.raise(t.start,ee.IndexSignatureHasAccessibility,t.accessibility),t.declare&&this.raise(t.start,ee.IndexSignatureHasDeclare),void(t.override&&this.raise(t.start,ee.IndexSignatureHasOverride));!this.state.inAbstractClass&&t.abstract&&this.raise(t.start,ee.NonAbstractClassHasAbstractMethod),t.override&&(r.hadSuperClass||this.raise(t.start,ee.OverrideNotInSubClass)),super.parseClassMemberWithIsStatic(e,t,r,i)}parsePostMemberNameModifiers(e){this.eat(l.question)&&(e.optional=!0),e.readonly&&this.match(l.parenL)&&this.raise(e.start,ee.ClassMethodHasReadonly),e.declare&&this.match(l.parenL)&&this.raise(e.start,ee.ClassMethodHasDeclare)}parseExpressionStatement(e,t){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t):void 0)||super.parseExpressionStatement(e,t)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,r,i){if(!i||!this.match(l.question))return super.parseConditional(e,t,r,i);const n=this.tryParse((()=>super.parseConditional(e,t,r)));return n.node?(n.error&&(this.state=n.failState),n.node):(i.start=n.error.pos||this.state.start,e)}parseParenItem(e,t,r){if(e=super.parseParenItem(e,t,r),this.eat(l.question)&&(e.optional=!0,this.resetEndLocation(e)),this.match(l.colon)){const i=this.startNodeAt(t,r);return i.expression=e,i.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(i,"TSTypeCastExpression")}return e}parseExportDeclaration(e){const t=this.state.start,r=this.state.startLoc,i=this.eatContextual("declare");if(i&&(this.isContextual("declare")||!this.shouldParseExportDeclaration()))throw this.raise(this.state.start,ee.ExpectedAmbientAfterExportDeclare);let n;return this.match(l.name)&&(n=this.tsTryParseExportDeclaration()),n||(n=super.parseExportDeclaration(e)),n&&("TSInterfaceDeclaration"===n.type||"TSTypeAliasDeclaration"===n.type||i)&&(e.exportKind="type"),n&&i&&(this.resetStartLocation(n,t,r),n.declare=!0),n}parseClassId(e,t,r){if((!t||r)&&this.isContextual("implements"))return;super.parseClassId(e,t,r,e.declare?1024:139);const i=this.tsTryParseTypeParameters();i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){!e.optional&&this.eat(l.bang)&&(e.definite=!0);const t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){return this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&this.match(l.eq)&&this.raise(this.state.start,ee.DeclareClassFieldHasInitializer),super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(e.start,ee.PrivateElementHasAbstract),e.accessibility&&this.raise(e.start,ee.PrivateElementHasAccessibility,e.accessibility),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}pushClassMethod(e,t,r,i,n,s){const a=this.tsTryParseTypeParameters();a&&n&&this.raise(a.start,ee.ConstructorHasTypeParameters),!t.declare||"get"!==t.kind&&"set"!==t.kind||this.raise(t.start,ee.DeclareAccessor,t.kind),a&&(t.typeParameters=a),super.pushClassMethod(e,t,r,i,n,s)}pushClassPrivateMethod(e,t,r,i){const n=this.tsTryParseTypeParameters();n&&(t.typeParameters=n),super.pushClassPrivateMethod(e,t,r,i)}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&this.isRelational("<")&&(e.superTypeParameters=this.tsParseTypeArguments()),this.eatContextual("implements")&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,...t){const r=this.tsTryParseTypeParameters();r&&(e.typeParameters=r),super.parseObjPropValue(e,...t)}parseFunctionParams(e,t){const r=this.tsTryParseTypeParameters();r&&(e.typeParameters=r),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&this.eat(l.bang)&&(e.definite=!0);const r=this.tsTryParseTypeAnnotation();r&&(e.id.typeAnnotation=r,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(l.colon)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(...e){var t,r,i,n,s,a,o;let c,u,p,d;if(this.hasPlugin("jsx")&&(this.match(l.jsxTagStart)||this.isRelational("<"))){if(c=this.state.clone(),u=this.tryParse((()=>super.parseMaybeAssign(...e)),c),!u.error)return u.node;const{context:t}=this.state;t[t.length-1]===x.j_oTag?t.length-=2:t[t.length-1]===x.j_expr&&(t.length-=1)}if(!(null!=(t=u)&&t.error||this.isRelational("<")))return super.parseMaybeAssign(...e);c=c||this.state.clone();const h=this.tryParse((t=>{var r,i;d=this.tsParseTypeParameters();const n=super.parseMaybeAssign(...e);return("ArrowFunctionExpression"!==n.type||null!=(r=n.extra)&&r.parenthesized)&&t(),0!==(null==(i=d)?void 0:i.params.length)&&this.resetStartLocationFromNode(n,d),n.typeParameters=d,n}),c);if(!h.error&&!h.aborted)return h.node;if(!u&&(assert(!this.hasPlugin("jsx")),p=this.tryParse((()=>super.parseMaybeAssign(...e)),c),!p.error))return p.node;if(null!=(r=u)&&r.node)return this.state=u.failState,u.node;if(h.node)return this.state=h.failState,h.node;if(null!=(i=p)&&i.node)return this.state=p.failState,p.node;if(null!=(n=u)&&n.thrown)throw u.error;if(h.thrown)throw h.error;if(null!=(s=p)&&s.thrown)throw p.error;throw(null==(a=u)?void 0:a.error)||h.error||(null==(o=p)?void 0:o.error)}parseMaybeUnary(e){return!this.hasPlugin("jsx")&&this.isRelational("<")?this.tsParseTypeAssertion():super.parseMaybeUnary(e)}parseArrow(e){if(this.match(l.colon)){const t=this.tryParse((e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(l.colon);return!this.canInsertSemicolon()&&this.match(l.arrow)||e(),t}));if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e){this.eat(l.question)&&("Identifier"===e.type||this.state.isAmbientContext||this.state.inType||this.raise(e.start,ee.PatternIsOptional),e.optional=!0);const t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}toAssignable(e,t=!1){switch(e.type){case"TSTypeCastExpression":return super.toAssignable(this.typeCastToParameter(e),t);case"TSParameterProperty":default:return super.toAssignable(e,t);case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(e,t);case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return e.expression=this.toAssignable(e.expression,t),e}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return e.expression=this.toAssignable(e.expression,t),e;default:return super.toAssignable(e,t)}}checkLVal(e,t,...r){var i;switch(e.type){case"TSTypeCastExpression":return;case"TSParameterProperty":return void this.checkLVal(e.parameter,"parameter property",...r);case"TSAsExpression":case"TSTypeAssertion":if(!(r[0]||"parenthesized expression"===t||null!=(i=e.extra)&&i.parenthesized)){this.raise(e.start,T.InvalidLhs,t);break}return void this.checkLVal(e.expression,"parenthesized expression",...r);case"TSNonNullExpression":return void this.checkLVal(e.expression,t,...r);default:return void super.checkLVal(e,t,...r)}}parseBindingAtom(){return this.state.type===l._this?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.isRelational("<")){const t=this.tsParseTypeArguments();if(this.match(l.parenL)){const r=super.parseMaybeDecoratorArguments(e);return r.typeParameters=t,r}this.unexpected(this.state.start,l.parenL)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){this.state.isAmbientContext&&this.match(l.comma)&&this.lookaheadCharCode()===e?this.next():super.checkCommaAfterRest(e)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(l.bang)||this.match(l.colon)||super.isClassProperty()}parseMaybeDefault(...e){const t=super.parseMaybeDefault(...e);return"AssignmentPattern"===t.type&&t.typeAnnotation&&t.right.start<t.typeAnnotation.start&&this.raise(t.typeAnnotation.start,ee.TypeAnnotationAfterAssign),t}getTokenFromCode(e){return!this.state.inType||62!==e&&60!==e?super.getTokenFromCode(e):this.finishOp(l.relational,1)}reScan_lt_gt(){if(this.match(l.relational)){const e=this.input.charCodeAt(this.state.start);60!==e&&62!==e||(this.state.pos-=1,this.readToken_lt_gt(e))}}toAssignableList(e){for(let t=0;t<e.length;t++){const r=e[t];if(r)switch(r.type){case"TSTypeCastExpression":e[t]=this.typeCastToParameter(r);break;case"TSAsExpression":case"TSTypeAssertion":this.state.maybeInArrowParameters?this.raise(r.start,ee.UnexpectedTypeCastInParameter):e[t]=this.typeCastToParameter(r)}}return super.toAssignableList(...arguments)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.end,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(){return this.match(l.colon)||super.shouldParseArrow()}shouldParseAsyncArrow(){return this.match(l.colon)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.isRelational("<")){const t=this.tsTryParseAndCatch((()=>this.tsParseTypeArguments()));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){const r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,...t)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e){if(this.match(l._class))return e.abstract=!0,this.parseClass(e,!0,!1);if(this.isContextual("interface")){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(e.start,ee.NonClassMethodPropertyHasAbstractModifer),this.next(),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,l._class)}parseMethod(...e){const t=super.parseMethod(...e);if(t.abstract){if(this.hasPlugin("estree")?!!t.value.body:!!t.body){const{key:e}=t;this.raise(t.start,ee.AbstractMethodHasImplementation,"Identifier"===e.type?e.name:`[${this.input.slice(e.start,e.end)}]`)}}return t}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()}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(l.modulo)){const e=this.state.start,t=this.startNode();if(this.eat(l.modulo),this.match(l.name)){const e=this.parseIdentifierName(this.state.start),r=this.createIdentifier(t,e);if(r.type="V8IntrinsicIdentifier",this.match(l.parenL))return r}this.unexpected(e)}}parseExprAtom(){return this.parseV8Intrinsic()||super.parseExprAtom(...arguments)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(l.placeholder)){const t=this.startNode();return this.next(),this.assertNoSpace("Unexpected space in placeholder."),t.name=super.parseIdentifier(!0),this.assertNoSpace("Unexpected space in placeholder."),this.expect(l.placeholder),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){return 37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(l.placeholder,2):super.getTokenFromCode(...arguments)}parseExprAtom(){return this.parsePlaceholder("Expression")||super.parseExprAtom(...arguments)}parseIdentifier(){return this.parsePlaceholder("Identifier")||super.parseIdentifier(...arguments)}checkReservedWord(e){void 0!==e&&super.checkReservedWord(...arguments)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom(...arguments)}checkLVal(e){"Placeholder"!==e.type&&super.checkLVal(...arguments)}toAssignable(e){return e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?(e.expectedNode="Pattern",e):super.toAssignable(...arguments)}isLet(e){if(super.isLet(e))return!0;if(!this.isContextual("let"))return!1;if(e)return!1;return this.lookahead().type===l.placeholder}verifyBreakContinue(e){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(...arguments)}parseExpressionStatement(e,t){if("Placeholder"!==t.type||t.extra&&t.extra.parenthesized)return super.parseExpressionStatement(...arguments);if(this.match(l.colon)){const r=e;return r.label=this.finishPlaceholder(t,"Identifier"),this.next(),r.body=this.parseStatement("label"),this.finishNode(r,"LabeledStatement")}return this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement")}parseBlock(){return this.parsePlaceholder("BlockStatement")||super.parseBlock(...arguments)}parseFunctionId(){return this.parsePlaceholder("Identifier")||super.parseFunctionId(...arguments)}parseClass(e,t,r){const i=t?"ClassDeclaration":"ClassExpression";this.next(),this.takeDecorators(e);const n=this.state.strict,s=this.parsePlaceholder("Identifier");if(s)if(this.match(l._extends)||this.match(l.placeholder)||this.match(l.braceL))e.id=s;else{if(r||!t)return e.id=null,e.body=this.finishPlaceholder(s,"ClassBody"),this.finishNode(e,i);this.unexpected(null,te.ClassNameIsRequired)}else this.parseClassId(e,t,r);return this.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||this.parseClassBody(!!e.superClass,n),this.finishNode(e,i)}parseExport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseExport(...arguments);if(!this.isContextual("from")&&!this.match(l.comma))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(t,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const r=this.startNode();return r.exported=t,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],super.parseExport(e)}isExportDefaultSpecifier(){if(this.match(l._default)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(l.placeholder.label,this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e){return!!(e.specifiers&&e.specifiers.length>0)||super.maybeParseExportDefaultSpecifier(...arguments)}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(...arguments);if(e.specifiers=[],!this.isContextual("from")&&!this.match(l.comma))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const r=this.startNodeAtNode(t);if(r.local=t,this.finishNode(r,"ImportDefaultSpecifier"),e.specifiers.push(r),this.eat(l.comma)){this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)}return this.expectContextual("from"),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource(...arguments)}}},se=Object.keys(ne),ae={sourceType:"script",sourceFilename:void 0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1};class oe{constructor(){this.strict=void 0,this.curLine=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.maybeInArrowParameters=!1,this.inPipeline=!1,this.inType=!1,this.noAnonFunctionType=!1,this.inPropertyName=!1,this.hasFlowComment=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.labels=[],this.decoratorStack=[[]],this.comments=[],this.trailingComments=[],this.leadingComments=[],this.commentStack=[],this.commentPreviousNode=null,this.pos=0,this.lineStart=0,this.type=l.eof,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.lastTokEnd=0,this.context=[x.braceStatement],this.exprAllowed=!0,this.containsEsc=!1,this.strictErrors=new Map,this.exportedIdentifiers=[],this.tokensLength=0}init(e){this.strict=!1!==e.strictMode&&"module"===e.sourceType,this.curLine=e.startLine,this.startLoc=this.endLoc=this.curPosition()}curPosition(){return new d(this.curLine,this.pos-this.lineStart)}clone(e){const t=new oe,r=Object.keys(this);for(let i=0,n=r.length;i<n;i++){const n=r[i];let s=this[n];!e&&Array.isArray(s)&&(s=s.slice()),t[n]=s}return t}}var _isDigit=function(e){return e>=48&&e<=57};const le=new Set(["g","m","s","i","y","u"]),ce={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},ue={bin:[48,49]};ue.oct=[...ue.bin,50,51,52,53,54,55],ue.dec=[...ue.oct,56,57],ue.hex=[...ue.dec,65,66,67,68,69,70,97,98,99,100,101,102];class pe{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new h(e.startLoc,e.endLoc)}}class de extends b{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.state=new oe,this.state.init(e),this.input=t,this.length=t.length,this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.isLookahead||(this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new pe(this.state))),this.state.lastTokEnd=this.state.end,this.state.lastTokStart=this.state.start,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}lookahead(){const e=this.state;this.state=e.clone(!0),this.isLookahead=!0,this.next(),this.isLookahead=!1;const t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){p.lastIndex=e;return e+p.exec(this.input)[0].length}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}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(t,e))),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){const e=this.curContext();if(null!=e&&e.preserveSpace||this.skipSpace(),this.state.start=this.state.pos,this.state.startLoc=this.state.curPosition(),this.state.pos>=this.length)return void this.finishToken(l.eof);const t=null==e?void 0:e.override;t?t(this):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}pushComment(e,t,r,i,n,s){const a={type:e?"CommentBlock":"CommentLine",value:t,start:r,end:i,loc:new h(n,s)};this.options.tokens&&this.pushToken(a),this.state.comments.push(a),this.addComment(a)}skipBlockComment(){const e=this.state.curPosition(),t=this.state.pos,r=this.input.indexOf("*/",this.state.pos+2);if(-1===r)throw this.raise(t,T.UnterminatedComment);let i;for(this.state.pos=r+2,u.lastIndex=t;(i=u.exec(this.input))&&i.index<this.state.pos;)++this.state.curLine,this.state.lineStart=i.index+i[0].length;this.isLookahead||this.pushComment(!0,this.input.slice(t+2,r),t,this.state.pos,e,this.state.curPosition())}skipLineComment(e){const t=this.state.pos,r=this.state.curPosition();let i=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!isNewLine(i)&&++this.state.pos<this.length;)i=this.input.charCodeAt(this.state.pos);this.isLookahead||this.pushComment(!1,this.input.slice(t+e,this.state.pos),t,this.state.pos,r,this.state.curPosition())}skipSpace(){e:for(;this.state.pos<this.length;){const e=this.input.charCodeAt(this.state.pos);switch(e){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:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!isWhitespace(e))break e;++this.state.pos}}}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)}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(this.state.pos,T.UnexpectedDigitAfterHash);if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"hash"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,123===t?T.RecordExpressionHashIncorrectStartSyntaxType:T.TupleExpressionHashIncorrectStartSyntaxType);123===t?this.finishToken(l.braceHashL):this.finishToken(l.bracketHashL),this.state.pos+=2}else isIdentifierStart(t)?(++this.state.pos,this.finishToken(l.privateName,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(l.privateName,this.readWord1())):this.finishOp(l.hash,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(l.ellipsis)):(++this.state.pos,this.finishToken(l.dot))}readToken_slash(){if(this.state.exprAllowed&&!this.state.inType)return++this.state.pos,void this.readRegexp();61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(l.assign,2):this.finishOp(l.slash,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;!isNewLine(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(l.interpreterDirective,r),!0}readToken_mult_modulo(e){let t=42===e?l.star:l.modulo,r=1,i=this.input.charCodeAt(this.state.pos+1);const n=this.state.exprAllowed;42===e&&42===i&&(r++,i=this.input.charCodeAt(this.state.pos+2),t=l.exponent),61!==i||n||(r++,t=l.assign),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(l.pipeline,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,T.RecordExpressionBarIncorrectEndSyntaxType);return void this.finishOp(l.braceBarR,2)}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,T.TupleExpressionBarIncorrectEndSyntaxType);return void this.finishOp(l.bracketBarR,2)}}61!==t?this.finishOp(124===e?l.bitwiseOR:l.bitwiseAND,1):this.finishOp(l.assign,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(l.assign,3):this.finishOp(124===e?l.logicalOR:l.logicalAND,2)}readToken_caret(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(l.assign,2):this.finishOp(l.bitwiseXOR,1)}readToken_plus_min(e){const t=this.input.charCodeAt(this.state.pos+1);if(t===e)return 45!==t||this.inModule||62!==this.input.charCodeAt(this.state.pos+2)||0!==this.state.lastTokEnd&&!this.hasPrecedingLineBreak()?void this.finishOp(l.incDec,2):(this.skipLineComment(3),this.skipSpace(),void this.nextToken());61===t?this.finishOp(l.assign,2):this.finishOp(l.plusMin,1)}readToken_lt_gt(e){const t=this.input.charCodeAt(this.state.pos+1);let r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.state.pos+2)?3:2,61===this.input.charCodeAt(this.state.pos+r)?void this.finishOp(l.assign,r+1):void this.finishOp(l.bitShift,r)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.state.pos+2)||45!==this.input.charCodeAt(this.state.pos+3)?(61===t&&(r=2),void this.finishOp(l.relational,r)):(this.skipLineComment(4),this.skipSpace(),void this.nextToken())}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(l.arrow)):void this.finishOp(61===e?l.eq:l.bang,1);this.finishOp(l.equality,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(l.assign,3):this.finishOp(l.nullishCoalescing,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(l.question)):(this.state.pos+=2,this.finishToken(l.questionDot))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(l.parenL);case 41:return++this.state.pos,void this.finishToken(l.parenR);case 59:return++this.state.pos,void this.finishToken(l.semi);case 44:return++this.state.pos,void this.finishToken(l.comma);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,T.TupleExpressionBarIncorrectStartSyntaxType);this.finishToken(l.bracketBarL),this.state.pos+=2}else++this.state.pos,this.finishToken(l.bracketL);return;case 93:return++this.state.pos,void this.finishToken(l.bracketR);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,T.RecordExpressionBarIncorrectStartSyntaxType);this.finishToken(l.braceBarL),this.state.pos+=2}else++this.state.pos,this.finishToken(l.braceL);return;case 125:return++this.state.pos,void this.finishToken(l.braceR);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(l.doubleColon,2):(++this.state.pos,this.finishToken(l.colon)));case 63:return void this.readToken_question();case 96:return++this.state.pos,void this.finishToken(l.backQuote);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:case 62:return void this.readToken_lt_gt(e);case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(l.tilde,1);case 64:return++this.state.pos,void this.finishToken(l.at);case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(isIdentifierStart(e))return void this.readWord(e)}throw this.raise(this.state.pos,T.InvalidOrUnexpectedToken,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.pos;let t,r;for(;;){if(this.state.pos>=this.length)throw this.raise(e,T.UnterminatedRegExp);const i=this.input.charAt(this.state.pos);if(c.test(i))throw this.raise(e,T.UnterminatedRegExp);if(t)t=!1;else{if("["===i)r=!0;else if("]"===i&&r)r=!1;else if("/"===i&&!r)break;t="\\\\"===i}++this.state.pos}const i=this.input.slice(e,this.state.pos);++this.state.pos;let n="";for(;this.state.pos<this.length;){const e=this.input[this.state.pos],t=this.codePointAtPos(this.state.pos);if(le.has(e))n.indexOf(e)>-1&&this.raise(this.state.pos+1,T.DuplicateRegExpFlags);else{if(!isIdentifierChar(t)&&92!==t)break;this.raise(this.state.pos+1,T.MalformedRegExpFlags)}++this.state.pos,n+=e}this.finishToken(l.regexp,{pattern:i,flags:n})}readInt(e,t,r,i=!0){const n=this.state.pos,s=16===e?ce.hex:ce.decBinOct,a=16===e?ue.hex:10===e?ue.dec:8===e?ue.oct:ue.bin;let o=!1,l=0;for(let n=0,c=null==t?1/0:t;n<c;++n){const t=this.input.charCodeAt(this.state.pos);let c;if(95!==t){if(c=t>=97?t-97+10:t>=65?t-65+10:_isDigit(t)?t-48:1/0,c>=e)if(this.options.errorRecovery&&c<=9)c=0,this.raise(this.state.start+n+2,T.InvalidDigit,e);else{if(!r)break;c=0,o=!0}++this.state.pos,l=l*e+c}else{const e=this.input.charCodeAt(this.state.pos-1),t=this.input.charCodeAt(this.state.pos+1);(-1===a.indexOf(t)||s.indexOf(e)>-1||s.indexOf(t)>-1||Number.isNaN(t))&&this.raise(this.state.pos,T.UnexpectedNumericSeparator),i||this.raise(this.state.pos,T.NumericSeparatorInEscapeSequence),++this.state.pos}}return this.state.pos===n||null!=t&&this.state.pos-n!==t||o?null:l}readRadixNumber(e){const t=this.state.pos;let r=!1;this.state.pos+=2;const i=this.readInt(e);null==i&&this.raise(this.state.start+2,T.InvalidDigit,e);const n=this.input.charCodeAt(this.state.pos);if(110===n)++this.state.pos,r=!0;else if(109===n)throw this.raise(t,T.InvalidDecimal);if(isIdentifierStart(this.codePointAtPos(this.state.pos)))throw this.raise(this.state.pos,T.NumberIdentifier);if(r){const e=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(l.bigint,e)}else this.finishToken(l.num,i)}readNumber(e){const t=this.state.pos;let r=!1,i=!1,n=!1,s=!1,a=!1;e||null!==this.readInt(10)||this.raise(t,T.InvalidNumber);const o=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(o){const e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(t,T.StrictOctalLiteral),!this.state.strict){const r=e.indexOf("_");r>0&&this.raise(r+t,T.ZeroDigitNumericSeparator)}a=o&&!/[89]/.test(e)}let c=this.input.charCodeAt(this.state.pos);if(46!==c||a||(++this.state.pos,this.readInt(10),r=!0,c=this.input.charCodeAt(this.state.pos)),69!==c&&101!==c||a||(c=this.input.charCodeAt(++this.state.pos),43!==c&&45!==c||++this.state.pos,null===this.readInt(10)&&this.raise(t,T.InvalidOrMissingExponent),r=!0,s=!0,c=this.input.charCodeAt(this.state.pos)),110===c&&((r||o)&&this.raise(t,T.InvalidBigIntLiteral),++this.state.pos,i=!0),109===c&&(this.expectPlugin("decimal",this.state.pos),(s||o)&&this.raise(t,T.InvalidDecimal),++this.state.pos,n=!0),isIdentifierStart(this.codePointAtPos(this.state.pos)))throw this.raise(this.state.pos,T.NumberIdentifier);const u=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(i)return void this.finishToken(l.bigint,u);if(n)return void this.finishToken(l.decimal,u);const p=a?parseInt(u,8):parseFloat(u);this.finishToken(l.num,p)}readCodePoint(e){let t;if(123===this.input.charCodeAt(this.state.pos)){const r=++this.state.pos;if(t=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,!0,e),++this.state.pos,null!==t&&t>1114111){if(!e)return null;this.raise(r,T.InvalidCodePoint)}}else t=this.readHexChar(4,!1,e);return t}readString(e){let t="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,T.UnterminatedString);const i=this.input.charCodeAt(this.state.pos);if(i===e)break;if(92===i)t+=this.input.slice(r,this.state.pos),t+=this.readEscapedChar(!1),r=this.state.pos;else if(8232===i||8233===i)++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;else{if(isNewLine(i))throw this.raise(this.state.start,T.UnterminatedString);++this.state.pos}}t+=this.input.slice(r,this.state.pos++),this.finishToken(l.string,t)}readTmplToken(){let e="",t=this.state.pos,r=!1;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,T.UnterminatedTemplate);const i=this.input.charCodeAt(this.state.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(l.template)?36===i?(this.state.pos+=2,void this.finishToken(l.dollarBraceL)):(++this.state.pos,void this.finishToken(l.backQuote)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(l.template,r?null:e));if(92===i){e+=this.input.slice(t,this.state.pos);const i=this.readEscapedChar(!0);null===i?r=!0:e+=i,t=this.state.pos}else if(isNewLine(i)){switch(e+=this.input.slice(t,this.state.pos),++this.state.pos,i){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:e+="\\n";break;default:e+=String.fromCharCode(i)}++this.state.curLine,this.state.lineStart=this.state.pos,t=this.state.pos}else++this.state.pos}}recordStrictModeErrors(e,t){this.state.strict&&!this.state.strictErrors.has(e)?this.raise(e,t):this.state.strictErrors.set(e,t)}readEscapedChar(e){const t=!e,r=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,r){case 110:return"\\n";case 114:return"\\r";case 120:{const e=this.readHexChar(2,!1,t);return null===e?null:String.fromCharCode(e)}case 117:{const e=this.readCodePoint(t);return null===e?null:String.fromCodePoint(e)}case 116:return"\\t";case 98:return"\\b";case 118:return"\\v";case 102:return"\\f";case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:this.state.lineStart=this.state.pos,++this.state.curLine;case 8232:case 8233:return"";case 56:case 57:if(e)return null;this.recordStrictModeErrors(this.state.pos-1,T.StrictNumericEscape);default:if(r>=48&&r<=55){const t=this.state.pos-1;let r=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.state.pos+=r.length-1;const n=this.input.charCodeAt(this.state.pos);if("0"!==r||56===n||57===n){if(e)return null;this.recordStrictModeErrors(t,T.StrictNumericEscape)}return String.fromCharCode(i)}return String.fromCharCode(r)}}readHexChar(e,t,r){const i=this.state.pos,n=this.readInt(16,e,t,!1);return null===n&&(r?this.raise(i,T.InvalidEscapeSequence):this.state.pos=i-1),n}readWord1(e){this.state.containsEsc=!1;let t="";const r=this.state.pos;let i=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(isIdentifierChar(e))this.state.pos+=e<=65535?1:2;else{if(92!==e)break;{this.state.containsEsc=!0,t+=this.input.slice(i,this.state.pos);const e=this.state.pos,n=this.state.pos===r?isIdentifierStart:isIdentifierChar;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(this.state.pos,T.MissingUnicodeEscape),i=this.state.pos-1;continue}++this.state.pos;const s=this.readCodePoint(!0);null!==s&&(n(s)||this.raise(e,T.EscapedCharNotAnIdentifier),t+=String.fromCodePoint(s)),i=this.state.pos}}}return t+this.input.slice(i,this.state.pos)}readWord(e){const t=this.readWord1(e),r=o.get(t)||l.name;this.finishToken(r,t)}checkKeywordEscapes(){const e=this.state.type.keyword;e&&this.state.containsEsc&&this.raise(this.state.start,T.InvalidEscapedReservedWord,e)}braceIsBlock(e){const t=this.curContext();return t===x.functionExpression||t===x.functionStatement||(e!==l.colon||t!==x.braceStatement&&t!==x.braceExpression?e===l._return||e===l.name&&this.state.exprAllowed?this.hasPrecedingLineBreak():e===l._else||e===l.semi||e===l.eof||e===l.parenR||e===l.arrow||(e===l.braceL?t===x.braceStatement:e!==l._var&&e!==l._const&&e!==l.name&&(e===l.relational||!this.state.exprAllowed)):!t.isExpr)}updateContext(e){const t=this.state.type;let r;!t.keyword||e!==l.dot&&e!==l.questionDot?(r=t.updateContext)?r.call(this,e):this.state.exprAllowed=t.beforeExpr:this.state.exprAllowed=!1}}class he{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class fe{constructor(e){this.stack=[],this.undefinedPrivateNames=new Map,this.raise=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new he)}exit(){const e=this.stack.pop(),t=this.current();for(const[r,i]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(r)||t.undefinedPrivateNames.set(r,i):this.raise(i,T.InvalidPrivateFieldResolution,r)}declarePrivateName(e,t,r){const i=this.current();let n=i.privateNames.has(e);if(3&t){const r=n&&i.loneAccessors.get(e);if(r){n=(3&r)===(3&t)||(4&r)!==(4&t),n||i.loneAccessors.delete(e)}else n||i.loneAccessors.set(e,t)}n&&this.raise(r,T.PrivateNameRedeclaration,e),i.privateNames.add(e),i.undefinedPrivateNames.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.raise(t,T.InvalidPrivateFieldResolution,e)}}class me{constructor(e=0){this.type=void 0,this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class ye extends me{constructor(e){super(e),this.errors=new Map}recordDeclarationError(e,t){this.errors.set(e,t)}clearDeclarationError(e){this.errors.delete(e)}iterateErrors(e){this.errors.forEach(e)}}class Te{constructor(e){this.stack=[new me],this.raise=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const{stack:r}=this;let i=r.length-1,n=r[i];for(;!n.isCertainlyParameterDeclaration();){if(!n.canBeArrowParameterDeclaration())return;n.recordDeclarationError(e,t),n=r[--i]}this.raise(e,t)}recordParenthesizedIdentifierError(e,t){const{stack:r}=this,i=r[r.length-1];if(i.isCertainlyParameterDeclaration())this.raise(e,t);else{if(!i.canBeArrowParameterDeclaration())return;i.recordDeclarationError(e,t)}}recordAsyncArrowParametersError(e,t){const{stack:r}=this;let i=r.length-1,n=r[i];for(;n.canBeArrowParameterDeclaration();)2===n.type&&n.recordDeclarationError(e,t),n=r[--i]}validateAsPattern(){const{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(((t,r)=>{this.raise(r,t);let i=e.length-2,n=e[i];for(;n.canBeArrowParameterDeclaration();)n.clearDeclarationError(r),n=e[--i]}))}}function newExpressionScope(){return new me}class ge extends de{addExtra(e,t,r){if(!e)return;(e.extra=e.extra||{})[t]=r}isRelational(e){return this.match(l.relational)&&this.state.value===e}expectRelational(e){this.isRelational(e)?this.next():this.unexpected(null,l.relational)}isContextual(e){return this.match(l.name)&&this.state.value===e&&!this.state.containsEsc}isUnparsedContextual(e,t){const r=e+t.length;return this.input.slice(e,r)===t&&(r===this.input.length||!isIdentifierChar(this.input.charCodeAt(r)))}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return this.isContextual(e)&&this.eat(l.name)}expectContextual(e,t){this.eatContextual(e)||this.unexpected(null,t)}canInsertSemicolon(){return this.match(l.eof)||this.match(l.braceR)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return c.test(this.input.slice(this.state.lastTokEnd,this.state.start))}hasFollowingLineBreak(){return c.test(this.input.slice(this.state.end,this.nextTokenStart()))}isLineTerminator(){return this.eat(l.semi)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(l.semi))||this.raise(this.state.lastTokEnd,T.MissingSemicolon)}expect(e,t){this.eat(e)||this.unexpected(t,e)}assertNoSpace(e="Unexpected space."){this.state.start>this.state.lastTokEnd&&this.raise(this.state.lastTokEnd,{code:y.SyntaxError,reasonCode:"UnexpectedSpace",template:e})}unexpected(e,t={code:y.SyntaxError,reasonCode:"UnexpectedToken",template:"Unexpected token"}){throw t instanceof a&&(t={code:y.SyntaxError,reasonCode:"UnexpectedToken",template:`Unexpected token, expected "${t.label}"`}),this.raise(null!=e?e:this.state.start,t)}expectPlugin(e,t){if(!this.hasPlugin(e))throw this.raiseWithData(null!=t?t:this.state.start,{missingPlugin:[e]},`This experimental syntax requires enabling the parser plugin: \'${e}\'`);return!0}expectOnePlugin(e,t){if(!e.some((e=>this.hasPlugin(e))))throw this.raiseWithData(null!=t?t:this.state.start,{missingPlugin:e},`This experimental syntax requires enabling one of the following parser plugin(s): \'${e.join(", ")}\'`)}tryParse(e,t=this.state.clone()){const r={node:null};try{const i=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:i,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const i=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:i};if(e===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:i};throw e}}checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssign:r,doubleProto:i}=e;if(!t)return r>=0||i>=0;r>=0&&this.unexpected(r),i>=0&&this.raise(i,T.DuplicateProto)}isLiteralPropertyName(){return this.match(l.name)||!!this.state.type.keyword||this.match(l.string)||this.match(l.num)||this.match(l.bigint)||this.match(l.decimal)}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)}isOptionalChain(e){return"OptionalMemberExpression"===e.type||"OptionalCallExpression"===e.type}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.state.exportedIdentifiers;this.state.exportedIdentifiers=[];const i=this.inModule;this.inModule=e;const n=this.scope,s=this.getScopeHandler();this.scope=new s(this.raise.bind(this),this.inModule);const a=this.prodParam;this.prodParam=new Z;const o=this.classScope;this.classScope=new fe(this.raise.bind(this));const l=this.expressionScope;return this.expressionScope=new Te(this.raise.bind(this)),()=>{this.state.labels=t,this.state.exportedIdentifiers=r,this.inModule=i,this.scope=n,this.prodParam=a,this.classScope=o,this.expressionScope=l}}enterInitialScopes(){let e=0;this.hasPlugin("topLevelAwait")&&this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e)}}class be{constructor(){this.shorthandAssign=-1,this.doubleProto=-1}}class Se{constructor(e,t,r){this.type=void 0,this.start=void 0,this.end=void 0,this.loc=void 0,this.range=void 0,this.leadingComments=void 0,this.trailingComments=void 0,this.innerComments=void 0,this.extra=void 0,this.type="",this.start=t,this.end=0,this.loc=new h(r),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}__clone(){const e=new Se,t=Object.keys(this);for(let r=0,i=t.length;r<i;r++){const i=t[r];"leadingComments"!==i&&"trailingComments"!==i&&"innerComments"!==i&&(e[i]=this[i])}return e}}class xe extends ge{startNode(){return new Se(this,this.state.start,this.state.startLoc)}startNodeAt(e,t){return new Se(this,e,t)}startNodeAtNode(e){return this.startNodeAt(e.start,e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEnd,this.state.lastTokEndLoc)}finishNodeAt(e,t,r,i){return e.type=t,e.end=r,e.loc.end=i,this.options.ranges&&(e.range[1]=r),this.processComment(e),e}resetStartLocation(e,t,r){e.start=t,e.loc.start=r,this.options.ranges&&(e.range[0]=t)}resetEndLocation(e,t=this.state.lastTokEnd,r=this.state.lastTokEndLoc){e.end=t,e.loc.end=r,this.options.ranges&&(e.range[1]=t)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.start,t.loc.start)}}const unwrapParenthesizedExpression=e=>"ParenthesizedExpression"===e.type?unwrapParenthesizedExpression(e.expression):e;class Ee extends xe{toAssignable(e,t=!1){var r,i;let n;switch(("ParenthesizedExpression"===e.type||null!=(r=e.extra)&&r.parenthesized)&&(n=unwrapParenthesizedExpression(e),t?"Identifier"===n.type?this.expressionScope.recordParenthesizedIdentifierError(e.start,T.InvalidParenthesizedAssignment):"MemberExpression"!==n.type&&this.raise(e.start,T.InvalidParenthesizedAssignment):this.raise(e.start,T.InvalidParenthesizedAssignment)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":e.type="ObjectPattern";for(let r=0,i=e.properties.length,n=i-1;r<i;r++){var s;const i=e.properties[r],a=r===n;this.toAssignableObjectExpressionProp(i,a,t),a&&"RestElement"===i.type&&null!=(s=e.extra)&&s.trailingComma&&this.raiseRestNotLast(e.extra.trailingComma)}break;case"ObjectProperty":this.toAssignable(e.value,t);break;case"SpreadElement":{this.checkToRestConversion(e),e.type="RestElement";const r=e.argument;this.toAssignable(r,t);break}case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,null==(i=e.extra)?void 0:i.trailingComma,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,T.MissingEqInAssignment),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(n,t)}return e}toAssignableObjectExpressionProp(e,t,r){if("ObjectMethod"===e.type){const t="get"===e.kind||"set"===e.kind?T.PatternHasAccessor:T.PatternHasMethod;this.raise(e.key.start,t)}else"SpreadElement"!==e.type||t?this.toAssignable(e,r):this.raiseRestNotLast(e.start)}toAssignableList(e,t,r){let i=e.length;if(i){const n=e[i-1];if("RestElement"===(null==n?void 0:n.type))--i;else if("SpreadElement"===(null==n?void 0:n.type)){n.type="RestElement";let e=n.argument;this.toAssignable(e,r),e=unwrapParenthesizedExpression(e),"Identifier"!==e.type&&"MemberExpression"!==e.type&&"ArrayPattern"!==e.type&&"ObjectPattern"!==e.type&&this.unexpected(e.start),t&&this.raiseTrailingCommaAfterRest(t),--i}}for(let t=0;t<i;t++){const i=e[t];i&&(this.toAssignable(i,r),"RestElement"===i.type&&this.raiseRestNotLast(i.start))}return e}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,t){const r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(e,void 0,t),this.finishNode(r,"SpreadElement")}parseRestBinding(){const e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case l.bracketL:{const e=this.startNode();return this.next(),e.elements=this.parseBindingList(l.bracketR,93,!0),this.finishNode(e,"ArrayPattern")}case l.braceL:return this.parseObjectLike(l.braceR,!0)}return this.parseIdentifier()}parseBindingList(e,t,r,i){const n=[];let s=!0;for(;!this.eat(e);)if(s?s=!1:this.expect(l.comma),r&&this.match(l.comma))n.push(null);else{if(this.eat(e))break;if(this.match(l.ellipsis)){n.push(this.parseAssignableListItemTypes(this.parseRestBinding())),this.checkCommaAfterRest(t),this.expect(e);break}{const e=[];for(this.match(l.at)&&this.hasPlugin("decorators")&&this.raise(this.state.start,T.UnsupportedParameterDecorator);this.match(l.at);)e.push(this.parseDecorator());n.push(this.parseAssignableListItem(i,e))}}return n}parseAssignableListItem(e,t){const r=this.parseMaybeDefault();this.parseAssignableListItemTypes(r);const i=this.parseMaybeDefault(r.start,r.loc.start,r);return t.length&&(r.decorators=t),i}parseAssignableListItemTypes(e){return e}parseMaybeDefault(e,t,r){var i,n,s;if(t=null!=(i=t)?i:this.state.startLoc,e=null!=(n=e)?n:this.state.start,r=null!=(s=r)?s:this.parseBindingAtom(),!this.eat(l.eq))return r;const a=this.startNodeAt(e,t);return a.left=r,a.right=this.parseMaybeAssignAllowIn(),this.finishNode(a,"AssignmentPattern")}checkLVal(e,t,r=64,i,n,s=!1){switch(e.type){case"Identifier":{const{name:t}=e;this.state.strict&&(s?isStrictBindReservedWord(t,this.inModule):isStrictBindOnlyReservedWord(t))&&this.raise(e.start,64===r?T.StrictEvalArguments:T.StrictEvalArgumentsBinding,t),i&&(i.has(t)?this.raise(e.start,T.ParamDupe):i.add(t)),n&&"let"===t&&this.raise(e.start,T.LetInLexicalBinding),64&r||this.scope.declareName(t,r,e.start);break}case"MemberExpression":64!==r&&this.raise(e.start,T.InvalidPropertyBindingPattern);break;case"ObjectPattern":for(let t of e.properties){if(this.isObjectProperty(t))t=t.value;else if(this.isObjectMethod(t))continue;this.checkLVal(t,"object destructuring pattern",r,i,n)}break;case"ArrayPattern":for(const t of e.elements)t&&this.checkLVal(t,"array destructuring pattern",r,i,n);break;case"AssignmentPattern":this.checkLVal(e.left,"assignment pattern",r,i);break;case"RestElement":this.checkLVal(e.argument,"rest element",r,i);break;case"ParenthesizedExpression":this.checkLVal(e.expression,"parenthesized expression",r,i);break;default:this.raise(e.start,64===r?T.InvalidLhs:T.InvalidLhsBinding,t)}}checkToRestConversion(e){"Identifier"!==e.argument.type&&"MemberExpression"!==e.argument.type&&this.raise(e.argument.start,T.InvalidRestAssignmentPattern)}checkCommaAfterRest(e){this.match(l.comma)&&(this.lookaheadCharCode()===e?this.raiseTrailingCommaAfterRest(this.state.start):this.raiseRestNotLast(this.state.start))}raiseRestNotLast(e){throw this.raise(e,T.ElementAfterRest)}raiseTrailingCommaAfterRest(e){this.raise(e,T.RestTrailingComma)}}class Pe extends Ee{checkProto(e,t,r,i){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return;const n=e.key;if("__proto__"===("Identifier"===n.type?n.name:n.value)){if(t)return void this.raise(n.start,T.RecordNoProto);r.used&&(i?-1===i.doubleProto&&(i.doubleProto=n.start):this.raise(n.start,T.DuplicateProto)),r.used=!0}}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&e.start===t}getExpression(){let e=0;this.hasPlugin("topLevelAwait")&&this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e),this.nextToken();const t=this.parseExpression();return this.match(l.eof)||this.unexpected(),t.comments=this.state.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t}parseExpression(e,t){return e?this.disallowInAnd((()=>this.parseExpressionBase(t))):this.allowInAnd((()=>this.parseExpressionBase(t)))}parseExpressionBase(e){const t=this.state.start,r=this.state.startLoc,i=this.parseMaybeAssign(e);if(this.match(l.comma)){const n=this.startNodeAt(t,r);for(n.expressions=[i];this.eat(l.comma);)n.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(n.expressions),this.finishNode(n,"SequenceExpression")}return i}parseMaybeAssignDisallowIn(e,t,r){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t,r)))}parseMaybeAssignAllowIn(e,t,r){return this.allowInAnd((()=>this.parseMaybeAssign(e,t,r)))}parseMaybeAssign(e,t,r){const i=this.state.start,n=this.state.startLoc;if(this.isContextual("yield")&&this.prodParam.hasYield){this.state.exprAllowed=!0;let e=this.parseYield();return t&&(e=t.call(this,e,i,n)),e}let s;e?s=!1:(e=new be,s=!0),(this.match(l.parenL)||this.match(l.name))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(e,r);if(t&&(a=t.call(this,a,i,n)),this.state.type.isAssign){const t=this.startNodeAt(i,n),r=this.state.value;return t.operator=r,this.match(l.eq)?(t.left=this.toAssignable(a,!0),e.doubleProto=-1):t.left=a,e.shorthandAssign>=t.left.start&&(e.shorthandAssign=-1),this.checkLVal(a,"assignment expression"),this.next(),t.right=this.parseMaybeAssign(),this.finishNode(t,"AssignmentExpression")}return s&&this.checkExpressionErrors(e,!0),a}parseMaybeConditional(e,t){const r=this.state.start,i=this.state.startLoc,n=this.state.potentialArrowAt,s=this.parseExprOps(e);return this.shouldExitDescending(s,n)?s:this.parseConditional(s,r,i,t)}parseConditional(e,t,r,i){if(this.eat(l.question)){const i=this.startNodeAt(t,r);return i.test=e,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(l.colon),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return e}parseExprOps(e){const t=this.state.start,r=this.state.startLoc,i=this.state.potentialArrowAt,n=this.parseMaybeUnary(e);return this.shouldExitDescending(n,i)?n:this.parseExprOp(n,t,r,-1)}parseExprOp(e,t,r,i){let n=this.state.type.binop;if(null!=n&&(this.prodParam.hasIn||!this.match(l._in))&&n>i){const s=this.state.type;if(s===l.pipeline){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.state.inPipeline=!0,this.checkPipelineAtInfixOperator(e,t)}const a=this.startNodeAt(t,r);a.left=e,a.operator=this.state.value;const o=s===l.logicalOR||s===l.logicalAND,c=s===l.nullishCoalescing;if(c&&(n=l.logicalAND.binop),this.next(),s===l.pipeline&&"minimal"===this.getPluginOption("pipelineOperator","proposal")&&this.match(l.name)&&"await"===this.state.value&&this.prodParam.hasAwait)throw this.raise(this.state.start,T.UnexpectedAwaitAfterPipelineBody);a.right=this.parseExprOpRightExpr(s,n),this.finishNode(a,o||c?"LogicalExpression":"BinaryExpression");const u=this.state.type;if(c&&(u===l.logicalOR||u===l.logicalAND)||o&&u===l.nullishCoalescing)throw this.raise(this.state.start,T.MixingCoalesceWithLogical);return this.parseExprOp(a,t,r,i)}return e}parseExprOpRightExpr(e,t){const r=this.state.start,i=this.state.startLoc;if(e===l.pipeline)switch(this.getPluginOption("pipelineOperator","proposal")){case"smart":return this.withTopicPermittingContext((()=>this.parseSmartPipelineBody(this.parseExprOpBaseRightExpr(e,t),r,i)));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){const r=this.state.start,i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnary(),r,i,e.rightAssociative?t-1:t)}checkExponentialAfterUnary(e){this.match(l.exponent)&&this.raise(e.argument.start,T.UnexpectedTokenUnaryExponentiation)}parseMaybeUnary(e,t){const r=this.state.start,i=this.state.startLoc,n=this.isContextual("await");if(n&&this.isAwaitAllowed()){this.next();const e=this.parseAwait(r,i);return t||this.checkExponentialAfterUnary(e),e}if(this.isContextual("module")&&123===this.lookaheadCharCode()&&!this.hasFollowingLineBreak())return this.parseModuleExpression();const s=this.match(l.incDec),a=this.startNode();if(this.state.type.prefix){a.operator=this.state.value,a.prefix=!0,this.match(l._throw)&&this.expectPlugin("throwExpressions");const r=this.match(l._delete);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&r){const e=a.argument;"Identifier"===e.type?this.raise(a.start,T.StrictDelete):this.hasPropertyAsPrivateName(e)&&this.raise(a.start,T.DeletePrivateField)}if(!s)return t||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}const o=this.parseUpdate(a,s,e);if(n){if((this.hasPlugin("v8intrinsic")?this.state.type.startsExpr:this.state.type.startsExpr&&!this.match(l.modulo))&&!this.isAmbiguousAwait())return this.raiseOverwrite(r,this.hasPlugin("topLevelAwait")?T.AwaitNotInAsyncContext:T.AwaitNotInAsyncFunction),this.parseAwait(r,i)}return o}parseUpdate(e,t,r){if(t)return this.checkLVal(e.argument,"prefix operation"),this.finishNode(e,"UpdateExpression");const i=this.state.start,n=this.state.startLoc;let s=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return s;for(;this.state.type.postfix&&!this.canInsertSemicolon();){const e=this.startNodeAt(i,n);e.operator=this.state.value,e.prefix=!1,e.argument=s,this.checkLVal(s,"postfix operation"),this.next(),s=this.finishNode(e,"UpdateExpression")}return s}parseExprSubscripts(e){const t=this.state.start,r=this.state.startLoc,i=this.state.potentialArrowAt,n=this.parseExprAtom(e);return this.shouldExitDescending(n,i)?n:this.parseSubscripts(n,t,r)}parseSubscripts(e,t,r,i){const n={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,r,i,n),n.maybeAsyncArrow=!1}while(!n.stop);return e}parseSubscript(e,t,r,i,n){if(!i&&this.eat(l.doubleColon))return this.parseBind(e,t,r,i,n);if(this.match(l.backQuote))return this.parseTaggedTemplateExpression(e,t,r,n);let s=!1;if(this.match(l.questionDot)){if(i&&40===this.lookaheadCharCode())return n.stop=!0,e;n.optionalChainMember=s=!0,this.next()}return!i&&this.match(l.parenL)?this.parseCoverCallAndAsyncArrowHead(e,t,r,n,s):s||this.match(l.bracketL)||this.eat(l.dot)?this.parseMember(e,t,r,n,s):(n.stop=!0,e)}parseMember(e,t,r,i,n){const s=this.startNodeAt(t,r),a=this.eat(l.bracketL);s.object=e,s.computed=a;const o=!a&&this.match(l.privateName)&&this.state.value,c=a?this.parseExpression():o?this.parsePrivateName():this.parseIdentifier(!0);return!1!==o&&("Super"===s.object.type&&this.raise(t,T.SuperPrivateField),this.classScope.usePrivateName(o,c.start)),s.property=c,a&&this.expect(l.bracketR),i.optionalChainMember?(s.optional=n,this.finishNode(s,"OptionalMemberExpression")):this.finishNode(s,"MemberExpression")}parseBind(e,t,r,i,n){const s=this.startNodeAt(t,r);return s.object=e,s.callee=this.parseNoCallExpr(),n.stop=!0,this.parseSubscripts(this.finishNode(s,"BindExpression"),t,r,i)}parseCoverCallAndAsyncArrowHead(e,t,r,i,n){const s=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0,this.next();let a=this.startNodeAt(t,r);return a.callee=e,i.maybeAsyncArrow&&this.expressionScope.enter(new ye(2)),i.optionalChainMember&&(a.optional=n),a.arguments=n?this.parseCallExpressionArguments(l.parenR,!1):this.parseCallExpressionArguments(l.parenR,i.maybeAsyncArrow,"Import"===e.type,"Super"!==e.type,a),this.finishCallExpression(a,i.optionalChainMember),i.maybeAsyncArrow&&this.shouldParseAsyncArrow()&&!n?(i.stop=!0,this.expressionScope.validateAsPattern(),this.expressionScope.exit(),a=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t,r),a)):(i.maybeAsyncArrow&&this.expressionScope.exit(),this.toReferencedArguments(a)),this.state.maybeInArrowParameters=s,a}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r,i){const n=this.startNodeAt(t,r);return n.tag=e,n.quasi=this.parseTemplate(!0),i.optionalChainMember&&this.raise(t,T.OptionalChainingNoTemplate),this.finishNode(n,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&e.start===this.state.potentialArrowAt}finishCallExpression(e,t){if("Import"===e.callee.type)if(2===e.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),0===e.arguments.length||e.arguments.length>2)this.raise(e.start,T.ImportCallArity,this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?"one or two arguments":"one argument");else for(const t of e.arguments)"SpreadElement"===t.type&&this.raise(t.start,T.ImportCallSpreadArgument);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r,i,n){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(l.comma),this.match(e)){!r||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(this.state.lastTokStart,T.ImportCallArgumentTrailingComma),n&&this.addExtra(n,"trailingComma",this.state.lastTokStart),this.next();break}s.push(this.parseExprListItem(!1,t?new be:void 0,t?{start:0}:void 0,i))}return this.state.inFSharpPipelineDirectBody=o,s}shouldParseAsyncArrow(){return this.match(l.arrow)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var r;return this.expect(l.arrow),this.parseArrowExpression(e,t.arguments,!0,null==(r=t.extra)?void 0:r.trailingComma),e}parseNoCallExpr(){const e=this.state.start,t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,t,!0)}parseExprAtom(e){this.state.type===l.slash&&this.readRegexp();const t=this.state.potentialArrowAt===this.state.start;let r;switch(this.state.type){case l._super:return this.parseSuper();case l._import:return r=this.startNode(),this.next(),this.match(l.dot)?this.parseImportMetaProperty(r):(this.match(l.parenL)||this.raise(this.state.lastTokStart,T.UnsupportedImport),this.finishNode(r,"Import"));case l._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case l.name:{const e=this.state.containsEsc,r=this.parseIdentifier();if(!e&&"async"===r.name&&!this.canInsertSemicolon()){if(this.match(l._function)){const e=this.state.context.length-1;if(this.state.context[e]!==x.functionStatement)throw new Error("Internal error");return this.state.context[e]=x.functionExpression,this.next(),this.parseFunction(this.startNodeAtNode(r),void 0,!0)}if(this.match(l.name))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(r):r;if(this.match(l._do))return this.parseDo(!0)}return t&&this.match(l.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(r),[r],!1)):r}case l._do:return this.parseDo(!1);case l.regexp:{const e=this.state.value;return r=this.parseLiteral(e.value,"RegExpLiteral"),r.pattern=e.pattern,r.flags=e.flags,r}case l.num:return this.parseLiteral(this.state.value,"NumericLiteral");case l.bigint:return this.parseLiteral(this.state.value,"BigIntLiteral");case l.decimal:return this.parseLiteral(this.state.value,"DecimalLiteral");case l.string:return this.parseLiteral(this.state.value,"StringLiteral");case l._null:return r=this.startNode(),this.next(),this.finishNode(r,"NullLiteral");case l._true:case l._false:return this.parseBooleanLiteral();case l.parenL:return this.parseParenAndDistinguishExpression(t);case l.bracketBarL:case l.bracketHashL:return this.parseArrayLike(this.state.type===l.bracketBarL?l.bracketBarR:l.bracketR,!1,!0,e);case l.bracketL:return this.parseArrayLike(l.bracketR,!0,!1,e);case l.braceBarL:case l.braceHashL:return this.parseObjectLike(this.state.type===l.braceBarL?l.braceBarR:l.braceR,!1,!0,e);case l.braceL:return this.parseObjectLike(l.braceR,!1,!1,e);case l._function:return this.parseFunctionOrFunctionSent();case l.at:this.parseDecorators();case l._class:return r=this.startNode(),this.takeDecorators(r),this.parseClass(r,!1);case l._new:return this.parseNewOrNewTarget();case l.backQuote:return this.parseTemplate(!1);case l.doubleColon:{r=this.startNode(),this.next(),r.object=null;const e=r.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(r,"BindExpression");throw this.raise(e.start,T.UnsupportedBind)}case l.privateName:{const e=this.state.start,t=this.state.value;if(r=this.parsePrivateName(),this.match(l._in))this.expectPlugin("privateIn"),this.classScope.usePrivateName(t,r.start);else{if(!this.hasPlugin("privateIn"))throw this.unexpected(e);this.raise(this.state.start,T.PrivateInExpectedIn,t)}return r}case l.hash:if(this.state.inPipeline)return r=this.startNode(),"smart"!==this.getPluginOption("pipelineOperator","proposal")&&this.raise(r.start,T.PrimaryTopicRequiresSmartPipeline),this.next(),this.primaryTopicReferenceIsAllowedInCurrentTopicContext()||this.raise(r.start,T.PrimaryTopicNotAllowed),this.registerTopicReference(),this.finishNode(r,"PipelinePrimaryTopicReference");case l.relational:if("<"===this.state.value){const e=this.input.codePointAt(this.nextTokenStart());(isIdentifierStart(e)||62===e)&&this.expectOnePlugin(["jsx","flow","typescript"])}default:throw this.unexpected()}}parseAsyncArrowUnaryFunction(e){const t=this.startNodeAtNode(e);this.prodParam.enter(functionFlags(!0,this.prodParam.hasYield));const r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(this.state.pos,T.LineTerminatorBeforeArrow),this.expect(l.arrow),this.parseArrowExpression(t,r,!0),t}parseDo(e){this.expectPlugin("doExpressions"),e&&this.expectPlugin("asyncDoExpressions");const t=this.startNode();t.async=e,this.next();const r=this.state.labels;return this.state.labels=[],e?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=r,this.finishNode(t,"DoExpression")}parseSuper(){const e=this.startNode();return this.next(),!this.match(l.parenL)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(e.start,T.UnexpectedSuper):this.raise(e.start,T.SuperNotAllowed),this.match(l.parenL)||this.match(l.bracketL)||this.match(l.dot)||this.raise(e.start,T.UnsupportedSuper),this.finishNode(e,"Super")}parseBooleanLiteral(){const e=this.startNode();return e.value=this.match(l._true),this.next(),this.finishNode(e,"BooleanLiteral")}parseMaybePrivateName(e){return this.match(l.privateName)?(e||this.raise(this.state.start+1,T.UnexpectedPrivateField),this.parsePrivateName()):this.parseIdentifier(!0)}parsePrivateName(){const e=this.startNode(),t=this.startNodeAt(this.state.start+1,new d(this.state.curLine,this.state.start+1-this.state.lineStart)),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(l.dot)){const t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,r){e.meta=t,"function"===t.name&&"sent"===r&&(this.isContextual(r)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected());const i=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||i)&&this.raise(e.property.start,T.UnsupportedMetaProperty,t.name,r),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){const t=this.createIdentifier(this.startNodeAtNode(e),"import");return this.next(),this.isContextual("meta")&&(this.inModule||this.raise(t.start,g.ImportMetaOutsideModule),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")}parseLiteral(e,t,r,i){r=r||this.state.start,i=i||this.state.startLoc;const n=this.startNodeAt(r,i);return this.addExtra(n,"rawValue",e),this.addExtra(n,"raw",this.input.slice(r,this.state.end)),n.value=e,this.next(),this.finishNode(n,t)}parseParenAndDistinguishExpression(e){const t=this.state.start,r=this.state.startLoc;let i;this.next(),this.expressionScope.enter(new ye(1));const n=this.state.maybeInArrowParameters,s=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const a=this.state.start,o=this.state.startLoc,c=[],u=new be,p={start:0};let d,h,f=!0;for(;!this.match(l.parenR);){if(f)f=!1;else if(this.expect(l.comma,p.start||null),this.match(l.parenR)){h=this.state.start;break}if(this.match(l.ellipsis)){const e=this.state.start,t=this.state.startLoc;d=this.state.start,c.push(this.parseParenItem(this.parseRestBinding(),e,t)),this.checkCommaAfterRest(41);break}c.push(this.parseMaybeAssignAllowIn(u,this.parseParenItem,p))}const m=this.state.lastTokEnd,y=this.state.lastTokEndLoc;this.expect(l.parenR),this.state.maybeInArrowParameters=n,this.state.inFSharpPipelineDirectBody=s;let T=this.startNodeAt(t,r);if(e&&this.shouldParseArrow()&&(T=this.parseArrow(T)))return this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(T,c,!1),T;if(this.expressionScope.exit(),c.length||this.unexpected(this.state.lastTokStart),h&&this.unexpected(h),d&&this.unexpected(d),this.checkExpressionErrors(u,!0),p.start&&this.unexpected(p.start),this.toReferencedListDeep(c,!0),c.length>1?(i=this.startNodeAt(a,o),i.expressions=c,this.finishNodeAt(i,"SequenceExpression",m,y)):i=c[0],!this.options.createParenthesizedExpressions)return this.addExtra(i,"parenthesized",!0),this.addExtra(i,"parenStart",t),i;const g=this.startNodeAt(t,r);return g.expression=i,this.finishNode(g,"ParenthesizedExpression"),g}shouldParseArrow(){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(l.arrow))return e}parseParenItem(e,t,r){return e}parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.match(l.dot)){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.raise(r.start,T.UnexpectedNewTarget),r}return this.parseNew(e)}parseNew(e){return e.callee=this.parseNoCallExpr(),"Import"===e.callee.type?this.raise(e.callee.start,T.ImportCallNotNewExpression):this.isOptionalChain(e.callee)?this.raise(this.state.lastTokEnd,T.OptionalChainingNoNew):this.eat(l.questionDot)&&this.raise(this.state.start,T.OptionalChainingNoNew),this.parseNewArguments(e),this.finishNode(e,"NewExpression")}parseNewArguments(e){if(this.eat(l.parenL)){const t=this.parseExprList(l.parenR);this.toReferencedList(t),e.arguments=t}else e.arguments=[]}parseTemplateElement(e){const t=this.startNode();return null===this.state.value&&(e||this.raise(this.state.start+1,T.InvalidEscapeSequenceTemplate)),t.value={raw:this.input.slice(this.state.start,this.state.end).replace(/\\r\\n?/g,"\\n"),cooked:this.state.value},this.next(),t.tail=this.match(l.backQuote),this.finishNode(t,"TemplateElement")}parseTemplate(e){const t=this.startNode();this.next(),t.expressions=[];let r=this.parseTemplateElement(e);for(t.quasis=[r];!r.tail;)this.expect(l.dollarBraceL),t.expressions.push(this.parseTemplateSubstitution()),this.expect(l.braceR),t.quasis.push(r=this.parseTemplateElement(e));return this.next(),this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,i){r&&this.expectPlugin("recordAndTuple");const n=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(l.comma),this.match(e)){this.addExtra(o,"trailingComma",this.state.lastTokStart);break}const n=this.parsePropertyDefinition(t,i);t||this.checkProto(n,r,s,i),r&&!this.isObjectProperty(n)&&"SpreadElement"!==n.type&&this.raise(n.start,T.InvalidRecordProperty),n.shorthand&&this.addExtra(n,"shorthand",!0),o.properties.push(n)}this.state.exprAllowed=!1,this.next(),this.state.inFSharpPipelineDirectBody=n;let c="ObjectExpression";return t?c="ObjectPattern":r&&(c="RecordExpression"),this.finishNode(o,c)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(l.bracketL)||this.match(l.star))}parsePropertyDefinition(e,t){let r=[];if(this.match(l.at))for(this.hasPlugin("decorators")&&this.raise(this.state.start,T.UnsupportedPropertyDecorator);this.match(l.at);)r.push(this.parseDecorator());const i=this.startNode();let n,s,a=!1,o=!1,c=!1;if(this.match(l.ellipsis))return r.length&&this.unexpected(),e?(this.next(),i.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(i,"RestElement")):this.parseSpread();r.length&&(i.decorators=r,r=[]),i.method=!1,(e||t)&&(n=this.state.start,s=this.state.startLoc),e||(a=this.eat(l.star));const u=this.state.containsEsc,p=this.parsePropertyName(i,!1);if(!e&&!a&&!u&&this.maybeAsyncOrAccessorProp(i)){const e=p.name;"async"!==e||this.hasPrecedingLineBreak()||(o=!0,a=this.eat(l.star),this.parsePropertyName(i,!1)),"get"!==e&&"set"!==e||(c=!0,i.kind=e,this.match(l.star)&&(a=!0,this.raise(this.state.pos,T.AccessorIsGenerator,e),this.next()),this.parsePropertyName(i,!1))}return this.parseObjPropValue(i,n,s,a,o,e,c,t),i}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const r=this.getGetterSetterExpectedParamCount(e),i=this.getObjectOrClassMethodParams(e),n=e.start;i.length!==r&&("get"===e.kind?this.raise(n,T.BadGetterArity):this.raise(n,T.BadSetterArity)),"set"===e.kind&&"RestElement"===(null==(t=i[i.length-1])?void 0:t.type)&&this.raise(n,T.BadSetterRestParameter)}parseObjectMethod(e,t,r,i,n){return n?(this.parseMethod(e,t,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(e),e):r||t||this.match(l.parenL)?(i&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")):void 0}parseObjectProperty(e,t,r,i,n){return e.shorthand=!1,this.eat(l.colon)?(e.value=i?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(n),this.finishNode(e,"ObjectProperty")):e.computed||"Identifier"!==e.key.type?void 0:(this.checkReservedWord(e.key.name,e.key.start,!0,!1),i?e.value=this.parseMaybeDefault(t,r,e.key.__clone()):this.match(l.eq)&&n?(-1===n.shorthandAssign&&(n.shorthandAssign=this.state.start),e.value=this.parseMaybeDefault(t,r,e.key.__clone())):e.value=e.key.__clone(),e.shorthand=!0,this.finishNode(e,"ObjectProperty"))}parseObjPropValue(e,t,r,i,n,s,a,o){const l=this.parseObjectMethod(e,i,n,s,a)||this.parseObjectProperty(e,t,r,s,o);return l||this.unexpected(),l}parsePropertyName(e,t){if(this.eat(l.bracketL))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(l.bracketR);else{const r=this.state.inPropertyName;this.state.inPropertyName=!0;const i=this.state.type;e.key=i===l.num||i===l.string||i===l.bigint||i===l.decimal?this.parseExprAtom():this.parseMaybePrivateName(t),i!==l.privateName&&(e.computed=!1),this.state.inPropertyName=r}return e.key}initFunction(e,t){e.id=null,e.generator=!1,e.async=!!t}parseMethod(e,t,r,i,n,s,a=!1){this.initFunction(e,r),e.generator=!!t;const o=i;return this.scope.enter(18|(a?64:0)|(n?32:0)),this.prodParam.enter(functionFlags(r,e.generator)),this.parseFunctionParams(e,o),this.parseFunctionBodyAndFinish(e,s,!0),this.prodParam.exit(),this.scope.exit(),e}parseArrayLike(e,t,r,i){r&&this.expectPlugin("recordAndTuple");const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const s=this.startNode();return this.next(),s.elements=this.parseExprList(e,!r,i,s),this.state.inFSharpPipelineDirectBody=n,this.finishNode(s,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,i){this.scope.enter(6);let n=functionFlags(r,!1);!this.match(l.bracketL)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(e,r);const s=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,i)),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){e.params=this.toAssignableList(t,r,!1)}parseFunctionBodyAndFinish(e,t,r=!1){this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}parseFunctionBody(e,t,r=!1){const i=t&&!this.match(l.braceL);if(this.expressionScope.enter(newExpressionScope()),i)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{const i=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,(n=>{const s=!this.isSimpleParamList(e.params);if(n&&s){const t="method"!==e.kind&&"constructor"!==e.kind||!e.key?e.start:e.key.end;this.raise(t,T.IllegalLanguageModeDirective)}const a=!i&&this.state.strict;this.checkParams(e,!(this.state.strict||t||r||s),t,a),this.state.strict&&e.id&&this.checkLVal(e.id,"function name",65,void 0,void 0,a)})),this.prodParam.exit(),this.expressionScope.exit(),this.state.labels=n}}isSimpleParamList(e){for(let t=0,r=e.length;t<r;t++)if("Identifier"!==e[t].type)return!1;return!0}checkParams(e,t,r,i=!0){const n=new Set;for(const r of e.params)this.checkLVal(r,"function parameter list",5,t?null:n,void 0,i)}parseExprList(e,t,r,i){const n=[];let s=!0;for(;!this.eat(e);){if(s)s=!1;else if(this.expect(l.comma),this.match(e)){i&&this.addExtra(i,"trailingComma",this.state.lastTokStart),this.next();break}n.push(this.parseExprListItem(t,r))}return n}parseExprListItem(e,t,r,i){let n;if(this.match(l.comma))e||this.raise(this.state.pos,T.UnexpectedToken,","),n=null;else if(this.match(l.ellipsis)){const e=this.state.start,i=this.state.startLoc;n=this.parseParenItem(this.parseSpread(t,r),e,i)}else if(this.match(l.question)){this.expectPlugin("partialApplication"),i||this.raise(this.state.start,T.UnexpectedArgumentPlaceholder);const e=this.startNode();this.next(),n=this.finishNode(e,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowIn(t,this.parseParenItem,r);return n}parseIdentifier(e){const t=this.startNode(),r=this.parseIdentifierName(t.start,e);return this.createIdentifier(t,r)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}parseIdentifierName(e,t){let r;const{start:i,type:n}=this.state;if(n===l.name)r=this.state.value;else{if(!n.keyword)throw this.unexpected();{r=n.keyword;const e=this.curContext();n!==l._class&&n!==l._function||e!==x.functionStatement&&e!==x.functionExpression||this.state.context.pop()}}return t?this.state.type=l.name:this.checkReservedWord(r,i,!!n.keyword,!1),this.next(),r}checkReservedWord(e,t,r,i){if(this.prodParam.hasYield&&"yield"===e)return void this.raise(t,T.YieldBindingIdentifier);if("await"===e){if(this.prodParam.hasAwait)return void this.raise(t,T.AwaitBindingIdentifier);if(this.scope.inStaticBlock&&!this.scope.inNonArrowFunction)return void this.raise(t,T.AwaitBindingIdentifierInStaticBlock);this.expressionScope.recordAsyncArrowParametersError(t,T.AwaitBindingIdentifier)}if(this.scope.inClass&&!this.scope.inNonArrowFunction&&"arguments"===e)return void this.raise(t,T.ArgumentsInClass);if(r&&isKeyword(e))return void this.raise(t,T.UnexpectedKeyword,e);(this.state.strict?i?isStrictBindReservedWord:isStrictReservedWord:isReservedWord)(e,this.inModule)&&this.raise(t,T.UnexpectedReservedWord,e)}isAwaitAllowed(){return!!this.prodParam.hasAwait||!(!this.options.allowAwaitOutsideFunction||this.scope.inFunction)}parseAwait(e,t){const r=this.startNodeAt(e,t);return this.expressionScope.recordParameterInitializerError(r.start,T.AwaitExpressionFormalParameter),this.eat(l.star)&&this.raise(r.start,T.ObsoleteAwaitStar),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousAwait(){return this.hasPrecedingLineBreak()||this.match(l.plusMin)||this.match(l.parenL)||this.match(l.bracketL)||this.match(l.backQuote)||this.match(l.regexp)||this.match(l.slash)||this.hasPlugin("v8intrinsic")&&this.match(l.modulo)}parseYield(){const e=this.startNode();return this.expressionScope.recordParameterInitializerError(e.start,T.YieldInParameter),this.next(),this.match(l.semi)||!this.match(l.star)&&!this.state.type.startsExpr||this.hasPrecedingLineBreak()?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(l.star),e.argument=this.parseMaybeAssign()),this.finishNode(e,"YieldExpression")}checkPipelineAtInfixOperator(e,t){"smart"===this.getPluginOption("pipelineOperator","proposal")&&"SequenceExpression"===e.type&&this.raise(t,T.PipelineHeadSequenceExpression)}parseSmartPipelineBody(e,t,r){return this.checkSmartPipelineBodyEarlyErrors(e,t),this.parseSmartPipelineBodyInStyle(e,t,r)}checkSmartPipelineBodyEarlyErrors(e,t){if(this.match(l.arrow))throw this.raise(this.state.start,T.PipelineBodyNoArrow);"SequenceExpression"===e.type&&this.raise(t,T.PipelineBodySequenceExpression)}parseSmartPipelineBodyInStyle(e,t,r){const i=this.startNodeAt(t,r),n=this.isSimpleReference(e);return n?i.callee=e:(this.topicReferenceWasUsedInCurrentTopicContext()||this.raise(t,T.PipelineTopicUnused),i.expression=e),this.finishNode(i,n?"PipelineBareFunction":"PipelineTopicExpression")}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}withTopicPermittingContext(e){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withTopicForbiddingContext(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}primaryTopicReferenceIsAllowedInCurrentTopicContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentTopicContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.start,r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const n=this.parseExprOp(this.parseMaybeUnary(),t,r,e);return this.state.inFSharpPipelineDirectBody=i,n}parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this.startNode();this.next(),this.eat(l.braceL);const t=this.initializeScopes(!0);this.enterInitialScopes();const r=this.startNode();try{e.body=this.parseProgram(r,l.braceR,"module")}finally{t()}return this.eat(l.braceR),this.finishNode(e,"ModuleExpression")}}const ve={kind:"loop"},Ae={kind:"switch"},we=/[\\uD800-\\uDFFF]/u;class Ie extends Pe{parseTopLevel(e,t){return e.program=this.parseProgram(t),e.comments=this.state.comments,this.options.tokens&&(e.tokens=function(e){for(let t=0;t<e.length;t++){const r=e[t];if(r.type===l.privateName){const{loc:i,start:n,value:s,end:a}=r,o=n+1,c=new d(i.start.line,i.start.column+1);e.splice(t,1,new pe({type:l.hash,value:"#",start:n,end:o,startLoc:i.start,endLoc:c}),new pe({type:l.name,value:s,start:o,end:a,startLoc:c,endLoc:i.end}))}}return e}(this.tokens)),this.finishNode(e,"File")}parseProgram(e,t=l.eof,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]of Array.from(this.scope.undefinedExports)){const t=this.scope.undefinedExports.get(e);this.raise(t,T.ModuleExportUndefined,e)}return this.finishNode(e,"Program")}stmtToDirective(e){const t=e.expression,r=this.startNodeAt(t.start,t.loc.start),i=this.startNodeAt(e.start,e.loc.start),n=this.input.slice(t.start,t.end),s=r.value=n.slice(1,-1);return this.addExtra(r,"raw",n),this.addExtra(r,"rawValue",s),i.value=this.finishNodeAt(r,"DirectiveLiteral",t.end,t.loc.end),this.finishNodeAt(i,"Directive",e.end,e.loc.end)}parseInterpreterDirective(){if(!this.match(l.interpreterDirective))return null;const e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(e){return!!this.isContextual("let")&&this.isLetKeyword(e)}isLetKeyword(e){const t=this.nextTokenStart(),r=this.input.charCodeAt(t);if(92===r||91===r)return!0;if(e)return!1;if(123===r)return!0;if(isIdentifierStart(r)){let e=t+1;for(;isIdentifierChar(this.input.charCodeAt(e));)++e;const r=this.input.slice(t,e);if(!L.test(r))return!0}return!1}parseStatement(e,t){return this.match(l.at)&&this.parseDecorators(!0),this.parseStatementContent(e,t)}parseStatementContent(e,t){let r=this.state.type;const i=this.startNode();let n;switch(this.isLet(e)&&(r=l._var,n="let"),r){case l._break:case l._continue:return this.parseBreakContinueStatement(i,r.keyword);case l._debugger:return this.parseDebuggerStatement(i);case l._do:return this.parseDoStatement(i);case l._for:return this.parseForStatement(i);case l._function:if(46===this.lookaheadCharCode())break;return e&&(this.state.strict?this.raise(this.state.start,T.StrictFunction):"if"!==e&&"label"!==e&&this.raise(this.state.start,T.SloppyFunction)),this.parseFunctionStatement(i,!1,!e);case l._class:return e&&this.unexpected(),this.parseClass(i,!0);case l._if:return this.parseIfStatement(i);case l._return:return this.parseReturnStatement(i);case l._switch:return this.parseSwitchStatement(i);case l._throw:return this.parseThrowStatement(i);case l._try:return this.parseTryStatement(i);case l._const:case l._var:return n=n||this.state.value,e&&"var"!==n&&this.raise(this.state.start,T.UnexpectedLexicalDeclaration),this.parseVarStatement(i,n);case l._while:return this.parseWhileStatement(i);case l._with:return this.parseWithStatement(i);case l.braceL:return this.parseBlock();case l.semi:return this.parseEmptyStatement(i);case l._import:{const e=this.lookaheadCharCode();if(40===e||46===e)break}case l._export:{let e;return this.options.allowImportExportEverywhere||t||this.raise(this.state.start,T.UnexpectedImportExport),this.next(),r===l._import?(e=this.parseImport(i),"ImportDeclaration"!==e.type||e.importKind&&"value"!==e.importKind||(this.sawUnambiguousESM=!0)):(e=this.parseExport(i),("ExportNamedDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&("ExportAllDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&"ExportDefaultDeclaration"!==e.type||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(i),e}default:if(this.isAsyncFunction())return e&&this.raise(this.state.start,T.AsyncFunctionInSingleStatementContext),this.next(),this.parseFunctionStatement(i,!0,!e)}const s=this.state.value,a=this.parseExpression();return r===l.name&&"Identifier"===a.type&&this.eat(l.colon)?this.parseLabeledStatement(i,s,a,e):this.parseExpressionStatement(i,a)}assertModuleNodeAllowed(e){this.options.allowImportExportEverywhere||this.inModule||this.raise(e.start,g.ImportOutsideModule)}takeDecorators(e){const t=this.state.decoratorStack[this.state.decoratorStack.length-1];t.length&&(e.decorators=t,this.resetStartLocationFromNode(e,t[0]),this.state.decoratorStack[this.state.decoratorStack.length-1]=[])}canHaveLeadingDecorator(){return this.match(l._class)}parseDecorators(e){const t=this.state.decoratorStack[this.state.decoratorStack.length-1];for(;this.match(l.at);){const e=this.parseDecorator();t.push(e)}if(this.match(l._export))e||this.unexpected(),this.hasPlugin("decorators")&&!this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,T.DecoratorExportClass);else if(!this.canHaveLeadingDecorator())throw this.raise(this.state.start,T.UnexpectedLeadingDecorator)}parseDecorator(){this.expectOnePlugin(["decorators-legacy","decorators"]);const e=this.startNode();if(this.next(),this.hasPlugin("decorators")){this.state.decoratorStack.push([]);const t=this.state.start,r=this.state.startLoc;let i;if(this.eat(l.parenL))i=this.parseExpression(),this.expect(l.parenR);else for(i=this.parseIdentifier(!1);this.eat(l.dot);){const e=this.startNodeAt(t,r);e.object=i,e.property=this.parseIdentifier(!0),e.computed=!1,i=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(i),this.state.decoratorStack.pop()}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(l.parenL)){const t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(l.parenR,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e}parseBreakContinueStatement(e,t){const r="break"===t;return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){const r="break"===t;let i;for(i=0;i<this.state.labels.length;++i){const t=this.state.labels[i];if(null==e.label||t.name===e.label.name){if(null!=t.kind&&(r||"loop"===t.kind))break;if(e.label&&r)break}}i===this.state.labels.length&&this.raise(e.start,T.IllegalBreakContinue,t)}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(l.parenL);const e=this.parseExpression();return this.expect(l.parenR),e}parseDoStatement(e){return this.next(),this.state.labels.push(ve),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("do"))),this.state.labels.pop(),this.expect(l._while),e.test=this.parseHeaderExpression(),this.eat(l.semi),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(ve);let t=-1;if(this.isAwaitAllowed()&&this.eatContextual("await")&&(t=this.state.lastTokStart),this.scope.enter(0),this.expect(l.parenL),this.match(l.semi))return t>-1&&this.unexpected(t),this.parseFor(e,null);const r=this.isContextual("let"),i=r&&this.isLetKeyword();if(this.match(l._var)||this.match(l._const)||i){const r=this.startNode(),n=i?"let":this.state.value;return this.next(),this.parseVar(r,!0,n),this.finishNode(r,"VariableDeclaration"),(this.match(l._in)||this.isContextual("of"))&&1===r.declarations.length?this.parseForIn(e,r,t):(t>-1&&this.unexpected(t),this.parseFor(e,r))}const n=this.match(l.name)&&!this.state.containsEsc,s=new be,a=this.parseExpression(!0,s),o=this.isContextual("of");if(o&&(r?this.raise(a.start,T.ForOfLet):-1===t&&n&&"Identifier"===a.type&&"async"===a.name&&this.raise(a.start,T.ForOfAsync)),o||this.match(l._in)){this.toAssignable(a,!0);const r=o?"for-of statement":"for-in statement";return this.checkLVal(a,r),this.parseForIn(e,a,t)}return this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,a)}parseFunctionStatement(e,t,r){return this.next(),this.parseFunction(e,1|(r?0:2),t)}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(l._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(this.state.start,T.IllegalReturn),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(l.braceL),this.state.labels.push(Ae),this.scope.enter(0);for(let e;!this.match(l.braceR);)if(this.match(l._case)||this.match(l._default)){const i=this.match(l._case);r&&this.finishNode(r,"SwitchCase"),t.push(r=this.startNode()),r.consequent=[],this.next(),i?r.test=this.parseExpression():(e&&this.raise(this.state.lastTokStart,T.MultipleDefaultsInSwitch),e=!0,r.test=null),this.expect(l.colon)}else r?r.consequent.push(this.parseStatement(null)):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(this.state.lastTokEnd,T.NewlineAfterThrow),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom(),t="Identifier"===e.type;return this.scope.enter(t?8:0),this.checkLVal(e,"catch clause",9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(l._catch)){const t=this.startNode();this.next(),this.match(l.parenL)?(this.expect(l.parenL),t.param=this.parseCatchClauseParam(),this.expect(l.parenR)):(t.param=null,this.scope.enter(0)),t.body=this.withTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(l._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,T.NoCatchOrFinally),this.finishNode(e,"TryStatement")}parseVarStatement(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(ve),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("while"))),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(this.state.start,T.StrictWith),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("with"))),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,r,i){for(const e of this.state.labels)e.name===t&&this.raise(r.start,T.LabelRedeclaration,t);const n=this.state.type.isLoop?"loop":this.match(l._switch)?"switch":null;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=n}return this.state.labels.push({name:t,kind:n,statementStart:this.state.start}),e.body=this.parseStatement(i?-1===i.indexOf("label")?i+"label":i:"label"),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,r){const i=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(l.braceL),t&&this.scope.enter(0),this.parseBlockBody(i,e,!1,l.braceR,r),t&&this.scope.exit(),this.finishNode(i,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,i,n){const s=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(s,t?a:void 0,r,i,n)}parseBlockOrModuleBlockBody(e,t,r,i,n){const s=this.state.strict;let a=!1,o=!1;for(;!this.match(i);){const i=this.parseStatement(null,r);if(t&&!o){if(this.isValidDirective(i)){const e=this.stmtToDirective(i);t.push(e),a||"use strict"!==e.value.value||(a=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(i)}n&&n.call(this,a),s||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(l.semi)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(l.parenR)?null:this.parseExpression(),this.expect(l.parenR),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,r){const i=this.match(l._in);return this.next(),i?r>-1&&this.unexpected(r):e.await=r>-1,"VariableDeclaration"!==t.type||null==t.declarations[0].init||i&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type?"AssignmentPattern"===t.type&&this.raise(t.start,T.InvalidLhs,"for-loop"):this.raise(t.start,T.ForInOfLoopInitializer,i?"for-in":"for-of"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(l.parenR),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")}parseVar(e,t,r){const i=e.declarations=[],n=this.hasPlugin("typescript");for(e.kind=r;;){const e=this.startNode();if(this.parseVarId(e,r),this.eat(l.eq)?e.init=t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():("const"!==r||this.match(l._in)||this.isContextual("of")?"Identifier"===e.id.type||t&&(this.match(l._in)||this.isContextual("of"))||this.raise(this.state.lastTokEnd,T.DeclarationMissingInitializer,"Complex binding patterns"):n||this.raise(this.state.lastTokEnd,T.DeclarationMissingInitializer,"Const declarations"),e.init=null),i.push(this.finishNode(e,"VariableDeclarator")),!this.eat(l.comma))break}return e}parseVarId(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,"variable declaration","var"===t?5:9,void 0,"var"!==t)}parseFunction(e,t=0,r=!1){const i=1&t,n=2&t,s=!(!i||4&t);this.initFunction(e,r),this.match(l.star)&&n&&this.raise(this.state.start,T.GeneratorInSingleStatementContext),e.generator=this.eat(l.star),i&&(e.id=this.parseFunctionId(s));const a=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(functionFlags(r,e.generator)),i||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,i?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),i&&!n&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=a,e}parseFunctionId(e){return e||this.match(l.name)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(l.parenL),this.expressionScope.enter(new me(3)),e.params=this.parseBindingList(l.parenR,41,!1,t),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:9:17,e.id.start)}parseClass(e,t,r){this.next(),this.takeDecorators(e);const i=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,i),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(l.eq)||this.match(l.semi)||this.match(l.braceR)}isClassMethod(){return this.match(l.parenL)}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 i=[];const n=this.startNode();if(n.body=[],this.expect(l.braceL),this.withTopicForbiddingContext((()=>{for(;!this.match(l.braceR);){if(this.eat(l.semi)){if(i.length>0)throw this.raise(this.state.lastTokEnd,T.DecoratorSemicolon);continue}if(this.match(l.at)){i.push(this.parseDecorator());continue}const e=this.startNode();i.length&&(e.decorators=i,this.resetStartLocationFromNode(e,i[0]),i=[]),this.parseClassMember(n,e,r),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(e.start,T.DecoratorConstructor)}})),this.state.strict=t,this.next(),i.length)throw this.raise(this.state.start,T.TrailingDecorator);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(e,t){const r=this.parseIdentifier(!0);if(this.isClassMethod()){const i=t;return i.kind="method",i.computed=!1,i.key=r,i.static=!1,this.pushClassMethod(e,i,!1,!1,!1,!1),!0}if(this.isClassProperty()){const i=t;return i.computed=!1,i.key=r,i.static=!1,e.body.push(this.parseClassProperty(i)),!0}return!1}parseClassMember(e,t,r){const i=this.isContextual("static");if(i){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(l.braceL))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,r,i)}parseClassMemberWithIsStatic(e,t,r,i){const n=t,s=t,a=t,o=t,c=n,u=n;if(t.static=i,this.eat(l.star)){c.kind="method";const t=this.match(l.privateName);return this.parseClassElementName(c),t?void this.pushClassPrivateMethod(e,s,!0,!1):(this.isNonstaticConstructor(n)&&this.raise(n.key.start,T.ConstructorIsGenerator),void this.pushClassMethod(e,n,!0,!1,!1,!1))}const p=this.state.containsEsc,d=this.match(l.privateName),h=this.parseClassElementName(t),f="Identifier"===h.type,m=this.state.start;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(c.kind="method",d)return void this.pushClassPrivateMethod(e,s,!1,!1);const i=this.isNonstaticConstructor(n);let a=!1;i&&(n.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(h.start,T.DuplicateConstructor),i&&this.hasPlugin("typescript")&&t.override&&this.raise(h.start,T.OverrideOnConstructor),r.hadConstructor=!0,a=r.hadSuperClass),this.pushClassMethod(e,n,!1,!1,i,a)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a);else if(!f||"async"!==h.name||p||this.isLineTerminator())if(!f||"get"!==h.name&&"set"!==h.name||p||this.match(l.star)&&this.isLineTerminator())this.isLineTerminator()?d?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a):this.unexpected();else{c.kind=h.name;const t=this.match(l.privateName);this.parseClassElementName(n),t?this.pushClassPrivateMethod(e,s,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(n.key.start,T.ConstructorIsAccessor),this.pushClassMethod(e,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else{const t=this.eat(l.star);u.optional&&this.unexpected(m),c.kind="method";const r=this.match(l.privateName);this.parseClassElementName(c),this.parsePostMemberNameModifiers(u),r?this.pushClassPrivateMethod(e,s,t,!0):(this.isNonstaticConstructor(n)&&this.raise(n.key.start,T.ConstructorIsAsync),this.pushClassMethod(e,n,t,!0,!1,!1))}}parseClassElementName(e){const{type:t,value:r,start:i}=this.state;return t!==l.name&&t!==l.string||!e.static||"prototype"!==r||this.raise(i,T.StaticPrototype),t===l.privateName&&"constructor"===r&&this.raise(i,T.ConstructorClassPrivateField),this.parsePropertyName(e,!0)}parseClassStaticBlock(e,t){var r;this.expectPlugin("classStaticBlock",t.start),this.scope.enter(208);const i=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const n=t.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,l.braceR),this.prodParam.exit(),this.scope.exit(),this.state.labels=i,e.body.push(this.finishNode(t,"StaticBlock")),null!=(r=t.decorators)&&r.length&&this.raise(t.start,T.DecoratorStaticBlock)}pushClassProperty(e,t){t.computed||"constructor"!==t.key.name&&"constructor"!==t.key.value||this.raise(t.key.start,T.ConstructorClassField),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.start)}pushClassMethod(e,t,r,i,n,s){e.body.push(this.parseMethod(t,r,i,n,s,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,i){const n=this.parseMethod(t,r,i,!1,!1,"ClassPrivateMethod",!0);e.body.push(n);const s="get"===n.kind?n.static?6:2:"set"===n.kind?n.static?5:1:0;this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),s,n.key.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")}parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(newExpressionScope()),this.prodParam.enter(0),e.value=this.eat(l.eq)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,r,i=139){this.match(l.name)?(e.id=this.parseIdentifier(),t&&this.checkLVal(e.id,"class name",i)):r||!t?e.id=null:this.unexpected(null,T.MissingClassName)}parseClassSuper(e){e.superClass=this.eat(l._extends)?this.parseExprSubscripts():null}parseExport(e){const t=this.maybeParseExportDefaultSpecifier(e),r=!t||this.eat(l.comma),i=r&&this.eatExportStar(e),n=i&&this.maybeParseExportNamespaceSpecifier(e),s=r&&(!n||this.eat(l.comma)),a=t||i;if(i&&!n)return t&&this.unexpected(),this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration");const o=this.maybeParseExportNamedSpecifiers(e);if(t&&r&&!i&&!o||n&&s&&!o)throw this.unexpected(null,l.braceL);let c;if(a||o?(c=!1,this.parseExportFrom(e,a)):c=this.maybeParseExportDeclaration(e),a||o||c)return this.checkExport(e,!0,!1,!!e.source),this.finishNode(e,"ExportNamedDeclaration");if(this.eat(l._default))return e.declaration=this.parseExportDefaultExpression(),this.checkExport(e,!0,!0),this.finishNode(e,"ExportDefaultDeclaration");throw this.unexpected(null,l.braceL)}eatExportStar(e){return this.eat(l.star)}maybeParseExportDefaultSpecifier(e){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");const t=this.startNode();return t.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(t,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual("as")){e.specifiers||(e.specifiers=[]);const t=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){return!!this.match(l.braceL)&&(e.specifiers||(e.specifiers=[]),e.specifiers.push(...this.parseExportSpecifiers()),e.source=null,e.declaration=null,!0)}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual("async"))return!1;const e=this.nextTokenStart();return!c.test(this.input.slice(this.state.pos,e))&&this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode(),t=this.isAsyncFunction();if(this.match(l._function)||t)return this.next(),t&&this.next(),this.parseFunction(e,5,t);if(this.match(l._class))return this.parseClass(e,!0,!0);if(this.match(l.at))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,T.DecoratorBeforeExport),this.parseDecorators(!1),this.parseClass(e,!0,!0);if(this.match(l._const)||this.match(l._var)||this.isLet())throw this.raise(this.state.start,T.UnsupportedDefaultExport);{const e=this.parseMaybeAssignAllowIn();return this.semicolon(),e}}parseExportDeclaration(e){return this.parseStatement(null)}isExportDefaultSpecifier(){if(this.match(l.name)){const e=this.state.value;if("async"===e&&!this.state.containsEsc||"let"===e)return!1;if(("type"===e||"interface"===e)&&!this.state.containsEsc){const e=this.lookahead();if(e.type===l.name&&"from"!==e.value||e.type===l.braceL)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(l._default))return!1;const e=this.nextTokenStart(),t=this.isUnparsedContextual(e,"from");if(44===this.input.charCodeAt(e)||this.match(l.name)&&t)return!0;if(this.match(l._default)&&t){const t=this.input.charCodeAt(this.nextTokenStartSince(e+4));return 34===t||39===t}return!1}parseExportFrom(e,t){if(this.eatContextual("from")){e.source=this.parseImportSource(),this.checkExport(e);const t=this.maybeParseImportAssertions();t&&(e.assertions=t)}else t?this.unexpected():e.source=null;this.semicolon()}shouldParseExportDeclaration(){if(this.match(l.at)&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(!this.getPluginOption("decorators","decoratorsBeforeExport"))return!0;this.unexpected(this.state.start,T.DecoratorBeforeExport)}return"var"===this.state.type.keyword||"const"===this.state.type.keyword||"function"===this.state.type.keyword||"class"===this.state.type.keyword||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,i){if(t)if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var n;const t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!=4||null!=(n=t.extra)&&n.parenthesized||this.raise(t.start,T.ExportDefaultFromAsIdentifier)}}else if(e.specifiers&&e.specifiers.length)for(const t of e.specifiers){const{exported:e}=t,r="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,r),!i&&t.local){const{local:e}=t;"StringLiteral"===e.type?this.raise(t.start,T.ExportBindingIsString,e.value,r):(this.checkReservedWord(e.name,e.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);if(this.state.decoratorStack[this.state.decoratorStack.length-1].length)throw this.raise(e.start,T.UnsupportedDecoratorExport)}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.state.exportedIdentifiers.indexOf(t)>-1&&this.raise(e.start,"default"===t?T.DuplicateDefaultExport:T.DuplicateExport,t),this.state.exportedIdentifiers.push(t)}parseExportSpecifiers(){const e=[];let t=!0;for(this.expect(l.braceL);!this.eat(l.braceR);){if(t)t=!1;else if(this.expect(l.comma),this.eat(l.braceR))break;const r=this.startNode();r.local=this.parseModuleExportName(),r.exported=this.eatContextual("as")?this.parseModuleExportName():r.local.__clone(),e.push(this.finishNode(r,"ExportSpecifier"))}return e}parseModuleExportName(){if(this.match(l.string)){const e=this.parseLiteral(this.state.value,"StringLiteral"),t=e.value.match(we);return t&&this.raise(e.start,T.ModuleExportNameHasLoneSurrogate,t[0].charCodeAt(0).toString(16)),e}return this.parseIdentifier(!0)}parseImport(e){if(e.specifiers=[],!this.match(l.string)){const t=!this.maybeParseDefaultImportSpecifier(e)||this.eat(l.comma),r=t&&this.maybeParseStarImportSpecifier(e);t&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual("from")}e.source=this.parseImportSource();const t=this.maybeParseImportAssertions();if(t)e.assertions=t;else{const t=this.maybeParseModuleAttributes();t&&(e.attributes=t)}return this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(l.string)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(e){return this.match(l.name)}parseImportSpecifierLocal(e,t,r,i){t.local=this.parseIdentifier(),this.checkLVal(t.local,i,9),e.specifiers.push(this.finishNode(t,r))}parseAssertEntries(){const e=[],t=new Set;do{if(this.match(l.braceR))break;const r=this.startNode(),i=this.state.value;if(this.match(l.string)?r.key=this.parseLiteral(i,"StringLiteral"):r.key=this.parseIdentifier(!0),this.expect(l.colon),"type"!==i&&this.raise(r.key.start,T.ModuleAttributeDifferentFromType,i),t.has(i)&&this.raise(r.key.start,T.ModuleAttributesWithDuplicateKeys,i),t.add(i),!this.match(l.string))throw this.unexpected(this.state.start,T.ModuleAttributeInvalidValue);r.value=this.parseLiteral(this.state.value,"StringLiteral"),this.finishNode(r,"ImportAttribute"),e.push(r)}while(this.eat(l.comma));return e}maybeParseModuleAttributes(){if(!this.match(l._with)||this.hasPrecedingLineBreak())return this.hasPlugin("moduleAttributes")?[]:null;this.expectPlugin("moduleAttributes"),this.next();const e=[],t=new Set;do{const r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(r.key.start,T.ModuleAttributeDifferentFromType,r.key.name),t.has(r.key.name)&&this.raise(r.key.start,T.ModuleAttributesWithDuplicateKeys,r.key.name),t.add(r.key.name),this.expect(l.colon),!this.match(l.string))throw this.unexpected(this.state.start,T.ModuleAttributeInvalidValue);r.value=this.parseLiteral(this.state.value,"StringLiteral"),this.finishNode(r,"ImportAttribute"),e.push(r)}while(this.eat(l.comma));return e}maybeParseImportAssertions(){if(!this.isContextual("assert")||this.hasPrecedingLineBreak())return this.hasPlugin("importAssertions")?[]:null;this.expectPlugin("importAssertions"),this.next(),this.eat(l.braceL);const e=this.parseAssertEntries();return this.eat(l.braceR),e}maybeParseDefaultImportSpecifier(e){return!!this.shouldParseDefaultImport(e)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier","default import specifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(l.star)){const t=this.startNode();return this.next(),this.expectContextual("as"),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier","import namespace specifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(l.braceL);!this.eat(l.braceR);){if(t)t=!1;else{if(this.eat(l.colon))throw this.raise(this.state.start,T.DestructureNamedImport);if(this.expect(l.comma),this.eat(l.braceR))break}this.parseImportSpecifier(e)}}parseImportSpecifier(e){const t=this.startNode();if(t.imported=this.parseModuleExportName(),this.eatContextual("as"))t.local=this.parseIdentifier();else{const{imported:e}=t;if("StringLiteral"===e.type)throw this.raise(t.start,T.ImportBindingIsString,e.value);this.checkReservedWord(e.name,t.start,!0,!0),t.local=e.__clone()}this.checkLVal(t.local,"import specifier",9),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}}class Ce extends Ie{constructor(e,t){super(e=function(e){const t={};for(const r of Object.keys(ae))t[r]=e&&null!=e[r]?e[r]:ae[r];return t}(e),t),this.options=e,this.initializeScopes(),this.plugins=function(e){const t=new Map;for(const r of e){const[e,i]=Array.isArray(r)?r:[r,{}];t.has(e)||t.set(e,i||{})}return t}(this.options.plugins),this.filename=e.sourceFilename}getScopeHandler(){return U}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}}function getParser(e,t){let r=Ce;return null!=e&&e.plugins&&(!function(e){if(hasPlugin(e,"decorators")){if(hasPlugin(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const t=getPluginOption(e,"decorators","decoratorsBeforeExport");if(null==t)throw new Error("The \'decorators\' plugin requires a \'decoratorsBeforeExport\' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the \'decorators-legacy\' plugin instead of \'decorators\'.");if("boolean"!=typeof t)throw new Error("\'decoratorsBeforeExport\' must be a boolean.")}if(hasPlugin(e,"flow")&&hasPlugin(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(hasPlugin(e,"placeholders")&&hasPlugin(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(hasPlugin(e,"pipelineOperator")&&!re.includes(getPluginOption(e,"pipelineOperator","proposal")))throw new Error("\'pipelineOperator\' requires \'proposal\' option whose value should be one of: "+re.map((e=>`\'${e}\'`)).join(", "));if(hasPlugin(e,"moduleAttributes")){if(hasPlugin(e,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if("may-2020"!==getPluginOption(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(hasPlugin(e,"recordAndTuple")&&!ie.includes(getPluginOption(e,"recordAndTuple","syntaxType")))throw new Error("\'recordAndTuple\' requires \'syntaxType\' option whose value should be one of: "+ie.map((e=>`\'${e}\'`)).join(", "));if(hasPlugin(e,"asyncDoExpressions")&&!hasPlugin(e,"doExpressions")){const e=new Error("\'asyncDoExpressions\' requires \'doExpressions\', please add \'doExpressions\' to parser plugins.");throw e.missingPlugins="doExpressions",e}}(e.plugins),r=function(e){const t=se.filter((t=>hasPlugin(e,t))),r=t.join("/");let i=Oe[r];if(!i){i=Ce;for(const e of t)i=ne[e](i);Oe[r]=i}return i}(e.plugins)),new r(e,t)}const Oe={};t.parse=function(e,t){var r;if("unambiguous"!==(null==(r=t)?void 0:r.sourceType))return getParser(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";const r=getParser(t,e),i=r.parse();if(r.sawUnambiguousESM)return i;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",getParser(t,e).parse()}catch(e){}else i.program.sourceType="script";return i}catch(r){try{return t.sourceType="script",getParser(t,e).parse()}catch(e){}throw r}},t.parseExpression=function(e,t){const r=getParser(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()},t.tokTypes=l},1619:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function createTemplateBuilder(e,t){const r=new WeakMap,o=new WeakMap,l=t||(0,i.validate)(null);return Object.assign(((t,...a)=>{if("string"==typeof t){if(a.length>1)throw new Error("Unexpected extra params.");return extendedTrace((0,n.default)(e,t,(0,i.merge)(l,(0,i.validate)(a[0]))))}if(Array.isArray(t)){let i=r.get(t);return i||(i=(0,s.default)(e,t,l),r.set(t,i)),extendedTrace(i(a))}if("object"==typeof t&&t){if(a.length>0)throw new Error("Unexpected extra params.");return createTemplateBuilder(e,(0,i.merge)(l,(0,i.validate)(t)))}throw new Error("Unexpected template param "+typeof t)}),{ast:(t,...r)=>{if("string"==typeof t){if(r.length>1)throw new Error("Unexpected extra params.");return(0,n.default)(e,t,(0,i.merge)((0,i.merge)(l,(0,i.validate)(r[0])),a))()}if(Array.isArray(t)){let n=o.get(t);return n||(n=(0,s.default)(e,t,(0,i.merge)(l,a)),o.set(t,n)),n(r)()}throw new Error("Unexpected template param "+typeof t)}})};var i=r(2123),n=_interopRequireDefault(r(3046)),s=_interopRequireDefault(r(3004));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const a=(0,i.validate)({placeholderPattern:!1});function extendedTrace(e){let t="";try{throw new Error}catch(e){e.stack&&(t=e.stack.split("\\n").slice(3).join("\\n"))}return r=>{try{return e(r)}catch(e){throw e.stack+=`\\n =============\\n${t}`,e}}}},8913:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.program=t.expression=t.statement=t.statements=t.smart=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(17));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function makeStatementFormatter(e){return{code:e=>`/* @babel/template */;\\n${e}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}const n=makeStatementFormatter((e=>e.length>1?e:e[0]));t.smart=n;const s=makeStatementFormatter((e=>e));t.statements=s;const a=makeStatementFormatter((e=>{if(0===e.length)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]}));t.statement=a;const o={code:e=>`(\\n${e}\\n)`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(0===o.unwrap(e).start)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{const[t]=e.body;return i.assertExpressionStatement(t),t.expression}};t.expression=o;t.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}},6205:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.program=t.expression=t.statements=t.statement=t.smart=void 0;var i,n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(8913)),s=(i=r(1619))&&i.__esModule?i:{default:i};function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}const a=(0,s.default)(n.smart);t.smart=a;const o=(0,s.default)(n.statement);t.statement=o;const l=(0,s.default)(n.statements);t.statements=l;const c=(0,s.default)(n.expression);t.expression=c;const u=(0,s.default)(n.program);t.program=u;var p=Object.assign(a.bind(void 0),{smart:a,statement:o,statements:l,expression:c,program:u,ast:a.ast});t.default=p},3004:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){const{metadata:a,names:o}=function(e,t,r){let i,s,a,o="";do{o+="$";const l=buildTemplateCode(t,o);i=l.names,s=new Set(i),a=(0,n.default)(e,e.code(l.code),{parser:r.parser,placeholderWhitelist:new Set(l.names.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders})}while(a.placeholders.some((e=>e.isDuplicate&&s.has(e.name))));return{metadata:a,names:i}}(e,t,r);return t=>{const r={};return t.forEach(((e,t)=>{r[o[t]]=e})),t=>{const n=(0,i.normalizeReplacements)(t);return n&&Object.keys(n).forEach((e=>{if(Object.prototype.hasOwnProperty.call(r,e))throw new Error("Unexpected replacement overlap.")})),e.unwrap((0,s.default)(a,n?Object.assign(n,r):r))}}};var i=r(2123),n=_interopRequireDefault(r(5008)),s=_interopRequireDefault(r(5985));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function buildTemplateCode(e,t){const r=[];let i=e[0];for(let n=1;n<e.length;n++){const s=`${t}${n-1}`;r.push(s),i+=s+e[n]}return{names:r,code:i}}},2123:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merge=function(e,t){const{placeholderWhitelist:r=e.placeholderWhitelist,placeholderPattern:i=e.placeholderPattern,preserveComments:n=e.preserveComments,syntacticPlaceholders:s=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:r,placeholderPattern:i,preserveComments:n,syntacticPlaceholders:s}},t.validate=function(e){if(null!=e&&"object"!=typeof e)throw new Error("Unknown template options.");const t=e||{},{placeholderWhitelist:r,placeholderPattern:i,preserveComments:n,syntacticPlaceholders:s}=t,a=function(e,t){if(null==e)return{};var r,i,n={},s=Object.keys(e);for(i=0;i<s.length;i++)r=s[i],t.indexOf(r)>=0||(n[r]=e[r]);return n}(t,["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"]);if(null!=r&&!(r instanceof Set))throw new Error("\'.placeholderWhitelist\' must be a Set, null, or undefined");if(null!=i&&!(i instanceof RegExp)&&!1!==i)throw new Error("\'.placeholderPattern\' must be a RegExp, false, null, or undefined");if(null!=n&&"boolean"!=typeof n)throw new Error("\'.preserveComments\' must be a boolean, null, or undefined");if(null!=s&&"boolean"!=typeof s)throw new Error("\'.syntacticPlaceholders\' must be a boolean, null, or undefined");if(!0===s&&(null!=r||null!=i))throw new Error("\'.placeholderWhitelist\' and \'.placeholderPattern\' aren\'t compatible with \'.syntacticPlaceholders: true\'");return{parser:a,placeholderWhitelist:r||void 0,placeholderPattern:null==i?void 0:i,preserveComments:null==n?void 0:n,syntacticPlaceholders:null==s?void 0:s}},t.normalizeReplacements=function(e){if(Array.isArray(e))return e.reduce(((e,t,r)=>(e["$"+r]=t,e)),{});if("object"==typeof e||null==e)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}},5008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){const{placeholderWhitelist:a,placeholderPattern:o,preserveComments:l,syntacticPlaceholders:c}=r,u=function(e,t,r){const i=(t.plugins||[]).slice();!1!==r&&i.push("placeholders");t=Object.assign({allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,sourceType:"module"},t,{plugins:i});try{return(0,n.parse)(e,t)}catch(t){const r=t.loc;throw r&&(t.message+="\\n"+(0,s.codeFrameColumns)(e,{start:r}),t.code="BABEL_TEMPLATE_PARSE_ERROR"),t}}(t,r.parser,c);i.removePropertiesDeep(u,{preserveComments:l}),e.validate(u);const p={placeholders:[],placeholderNames:new Set},d={placeholders:[],placeholderNames:new Set},h={value:void 0};return i.traverse(u,placeholderVisitorHandler,{syntactic:p,legacy:d,isLegacyRef:h,placeholderWhitelist:a,placeholderPattern:o,syntacticPlaceholders:c}),Object.assign({ast:u},h.value?d:p)};var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(17)),n=r(4494),s=r(785);function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}const a=/^[_$A-Z0-9]+$/;function placeholderVisitorHandler(e,t,r){var n;let s;if(i.isPlaceholder(e)){if(!1===r.syntacticPlaceholders)throw new Error("%%foo%%-style placeholders can\'t be used when \'.syntacticPlaceholders\' is false.");s=e.name.name,r.isLegacyRef.value=!1}else{if(!1===r.isLegacyRef.value||r.syntacticPlaceholders)return;if(i.isIdentifier(e)||i.isJSXIdentifier(e))s=e.name,r.isLegacyRef.value=!0;else{if(!i.isStringLiteral(e))return;s=e.value,r.isLegacyRef.value=!0}}if(!r.isLegacyRef.value&&(null!=r.placeholderPattern||null!=r.placeholderWhitelist))throw new Error("\'.placeholderWhitelist\' and \'.placeholderPattern\' aren\'t compatible with \'.syntacticPlaceholders: true\'");if(r.isLegacyRef.value&&(!1===r.placeholderPattern||!(r.placeholderPattern||a).test(s))&&!(null==(n=r.placeholderWhitelist)?void 0:n.has(s)))return;t=t.slice();const{node:o,key:l}=t[t.length-1];let c;i.isStringLiteral(e)||i.isPlaceholder(e,{expectedNode:"StringLiteral"})?c="string":i.isNewExpression(o)&&"arguments"===l||i.isCallExpression(o)&&"arguments"===l||i.isFunction(o)&&"params"===l?c="param":i.isExpressionStatement(o)&&!i.isPlaceholder(e)?(c="statement",t=t.slice(0,-1)):c=i.isStatement(e)&&i.isPlaceholder(e)?"statement":"other";const{placeholders:u,placeholderNames:p}=r.isLegacyRef.value?r.legacy:r.syntactic;u.push({name:s,type:c,resolve:e=>function(e,t){let r=e;for(let e=0;e<t.length-1;e++){const{key:i,index:n}=t[e];r=void 0===n?r[i]:r[i][n]}const{key:i,index:n}=t[t.length-1];return{parent:r,key:i,index:n}}(e,t),isDuplicate:p.has(s)}),p.add(s)}},5985:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=i.cloneNode(e.ast);t&&(e.placeholders.forEach((e=>{if(!Object.prototype.hasOwnProperty.call(t,e.name)){const t=e.name;throw new Error(`Error: No substitution given for "${t}". If this is not meant to be a\\n placeholder you may want to consider passing one of the following options to @babel/template:\\n - { placeholderPattern: false, placeholderWhitelist: new Set([\'${t}\'])}\\n - { placeholderPattern: /^${t}$/ }`)}})),Object.keys(t).forEach((t=>{if(!e.placeholderNames.has(t))throw new Error(`Unknown substitution "${t}" given`)})));return e.placeholders.slice().reverse().forEach((e=>{try{!function(e,t,r){e.isDuplicate&&(Array.isArray(r)?r=r.map((e=>i.cloneNode(e))):"object"==typeof r&&(r=i.cloneNode(r)));const{parent:n,key:s,index:a}=e.resolve(t);if("string"===e.type){if("string"==typeof r&&(r=i.stringLiteral(r)),!r||!i.isStringLiteral(r))throw new Error("Expected string substitution")}else if("statement"===e.type)void 0===a?r?Array.isArray(r)?r=i.blockStatement(r):"string"==typeof r?r=i.expressionStatement(i.identifier(r)):i.isStatement(r)||(r=i.expressionStatement(r)):r=i.emptyStatement():r&&!Array.isArray(r)&&("string"==typeof r&&(r=i.identifier(r)),i.isStatement(r)||(r=i.expressionStatement(r)));else if("param"===e.type){if("string"==typeof r&&(r=i.identifier(r)),void 0===a)throw new Error("Assertion failure.")}else if("string"==typeof r&&(r=i.identifier(r)),Array.isArray(r))throw new Error("Cannot replace single expression with an array.");if(void 0===a)i.validate(n,s,r),n[s]=r;else{const t=n[s].slice();"statement"===e.type||"param"===e.type?null==r?t.splice(a,1):Array.isArray(r)?t.splice(a,1,...r):t[a]=r:t[a]=r,i.validate(n,s,t),n[s]=t}}(e,r,t&&t[e.name]||null)}catch(t){throw t.message=`@babel/template placeholder "${e.name}": ${t.message}`,t}})),r};var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(17));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}},3046:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){let a;return t=e.code(t),o=>{const l=(0,i.normalizeReplacements)(o);return a||(a=(0,n.default)(e,t,r)),e.unwrap((0,s.default)(a,l))}};var i=r(2123),n=_interopRequireDefault(r(5008)),s=_interopRequireDefault(r(5985));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},9278:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!(0,i.default)(e)){var t;const r=null!=(t=null==e?void 0:e.type)?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}};var i=r(1860)},2937:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertArrayExpression=function(e,t){assert("ArrayExpression",e,t)},t.assertAssignmentExpression=function(e,t){assert("AssignmentExpression",e,t)},t.assertBinaryExpression=function(e,t){assert("BinaryExpression",e,t)},t.assertInterpreterDirective=function(e,t){assert("InterpreterDirective",e,t)},t.assertDirective=function(e,t){assert("Directive",e,t)},t.assertDirectiveLiteral=function(e,t){assert("DirectiveLiteral",e,t)},t.assertBlockStatement=function(e,t){assert("BlockStatement",e,t)},t.assertBreakStatement=function(e,t){assert("BreakStatement",e,t)},t.assertCallExpression=function(e,t){assert("CallExpression",e,t)},t.assertCatchClause=function(e,t){assert("CatchClause",e,t)},t.assertConditionalExpression=function(e,t){assert("ConditionalExpression",e,t)},t.assertContinueStatement=function(e,t){assert("ContinueStatement",e,t)},t.assertDebuggerStatement=function(e,t){assert("DebuggerStatement",e,t)},t.assertDoWhileStatement=function(e,t){assert("DoWhileStatement",e,t)},t.assertEmptyStatement=function(e,t){assert("EmptyStatement",e,t)},t.assertExpressionStatement=function(e,t){assert("ExpressionStatement",e,t)},t.assertFile=function(e,t){assert("File",e,t)},t.assertForInStatement=function(e,t){assert("ForInStatement",e,t)},t.assertForStatement=function(e,t){assert("ForStatement",e,t)},t.assertFunctionDeclaration=function(e,t){assert("FunctionDeclaration",e,t)},t.assertFunctionExpression=function(e,t){assert("FunctionExpression",e,t)},t.assertIdentifier=function(e,t){assert("Identifier",e,t)},t.assertIfStatement=function(e,t){assert("IfStatement",e,t)},t.assertLabeledStatement=function(e,t){assert("LabeledStatement",e,t)},t.assertStringLiteral=function(e,t){assert("StringLiteral",e,t)},t.assertNumericLiteral=function(e,t){assert("NumericLiteral",e,t)},t.assertNullLiteral=function(e,t){assert("NullLiteral",e,t)},t.assertBooleanLiteral=function(e,t){assert("BooleanLiteral",e,t)},t.assertRegExpLiteral=function(e,t){assert("RegExpLiteral",e,t)},t.assertLogicalExpression=function(e,t){assert("LogicalExpression",e,t)},t.assertMemberExpression=function(e,t){assert("MemberExpression",e,t)},t.assertNewExpression=function(e,t){assert("NewExpression",e,t)},t.assertProgram=function(e,t){assert("Program",e,t)},t.assertObjectExpression=function(e,t){assert("ObjectExpression",e,t)},t.assertObjectMethod=function(e,t){assert("ObjectMethod",e,t)},t.assertObjectProperty=function(e,t){assert("ObjectProperty",e,t)},t.assertRestElement=function(e,t){assert("RestElement",e,t)},t.assertReturnStatement=function(e,t){assert("ReturnStatement",e,t)},t.assertSequenceExpression=function(e,t){assert("SequenceExpression",e,t)},t.assertParenthesizedExpression=function(e,t){assert("ParenthesizedExpression",e,t)},t.assertSwitchCase=function(e,t){assert("SwitchCase",e,t)},t.assertSwitchStatement=function(e,t){assert("SwitchStatement",e,t)},t.assertThisExpression=function(e,t){assert("ThisExpression",e,t)},t.assertThrowStatement=function(e,t){assert("ThrowStatement",e,t)},t.assertTryStatement=function(e,t){assert("TryStatement",e,t)},t.assertUnaryExpression=function(e,t){assert("UnaryExpression",e,t)},t.assertUpdateExpression=function(e,t){assert("UpdateExpression",e,t)},t.assertVariableDeclaration=function(e,t){assert("VariableDeclaration",e,t)},t.assertVariableDeclarator=function(e,t){assert("VariableDeclarator",e,t)},t.assertWhileStatement=function(e,t){assert("WhileStatement",e,t)},t.assertWithStatement=function(e,t){assert("WithStatement",e,t)},t.assertAssignmentPattern=function(e,t){assert("AssignmentPattern",e,t)},t.assertArrayPattern=function(e,t){assert("ArrayPattern",e,t)},t.assertArrowFunctionExpression=function(e,t){assert("ArrowFunctionExpression",e,t)},t.assertClassBody=function(e,t){assert("ClassBody",e,t)},t.assertClassExpression=function(e,t){assert("ClassExpression",e,t)},t.assertClassDeclaration=function(e,t){assert("ClassDeclaration",e,t)},t.assertExportAllDeclaration=function(e,t){assert("ExportAllDeclaration",e,t)},t.assertExportDefaultDeclaration=function(e,t){assert("ExportDefaultDeclaration",e,t)},t.assertExportNamedDeclaration=function(e,t){assert("ExportNamedDeclaration",e,t)},t.assertExportSpecifier=function(e,t){assert("ExportSpecifier",e,t)},t.assertForOfStatement=function(e,t){assert("ForOfStatement",e,t)},t.assertImportDeclaration=function(e,t){assert("ImportDeclaration",e,t)},t.assertImportDefaultSpecifier=function(e,t){assert("ImportDefaultSpecifier",e,t)},t.assertImportNamespaceSpecifier=function(e,t){assert("ImportNamespaceSpecifier",e,t)},t.assertImportSpecifier=function(e,t){assert("ImportSpecifier",e,t)},t.assertMetaProperty=function(e,t){assert("MetaProperty",e,t)},t.assertClassMethod=function(e,t){assert("ClassMethod",e,t)},t.assertObjectPattern=function(e,t){assert("ObjectPattern",e,t)},t.assertSpreadElement=function(e,t){assert("SpreadElement",e,t)},t.assertSuper=function(e,t){assert("Super",e,t)},t.assertTaggedTemplateExpression=function(e,t){assert("TaggedTemplateExpression",e,t)},t.assertTemplateElement=function(e,t){assert("TemplateElement",e,t)},t.assertTemplateLiteral=function(e,t){assert("TemplateLiteral",e,t)},t.assertYieldExpression=function(e,t){assert("YieldExpression",e,t)},t.assertAwaitExpression=function(e,t){assert("AwaitExpression",e,t)},t.assertImport=function(e,t){assert("Import",e,t)},t.assertBigIntLiteral=function(e,t){assert("BigIntLiteral",e,t)},t.assertExportNamespaceSpecifier=function(e,t){assert("ExportNamespaceSpecifier",e,t)},t.assertOptionalMemberExpression=function(e,t){assert("OptionalMemberExpression",e,t)},t.assertOptionalCallExpression=function(e,t){assert("OptionalCallExpression",e,t)},t.assertAnyTypeAnnotation=function(e,t){assert("AnyTypeAnnotation",e,t)},t.assertArrayTypeAnnotation=function(e,t){assert("ArrayTypeAnnotation",e,t)},t.assertBooleanTypeAnnotation=function(e,t){assert("BooleanTypeAnnotation",e,t)},t.assertBooleanLiteralTypeAnnotation=function(e,t){assert("BooleanLiteralTypeAnnotation",e,t)},t.assertNullLiteralTypeAnnotation=function(e,t){assert("NullLiteralTypeAnnotation",e,t)},t.assertClassImplements=function(e,t){assert("ClassImplements",e,t)},t.assertDeclareClass=function(e,t){assert("DeclareClass",e,t)},t.assertDeclareFunction=function(e,t){assert("DeclareFunction",e,t)},t.assertDeclareInterface=function(e,t){assert("DeclareInterface",e,t)},t.assertDeclareModule=function(e,t){assert("DeclareModule",e,t)},t.assertDeclareModuleExports=function(e,t){assert("DeclareModuleExports",e,t)},t.assertDeclareTypeAlias=function(e,t){assert("DeclareTypeAlias",e,t)},t.assertDeclareOpaqueType=function(e,t){assert("DeclareOpaqueType",e,t)},t.assertDeclareVariable=function(e,t){assert("DeclareVariable",e,t)},t.assertDeclareExportDeclaration=function(e,t){assert("DeclareExportDeclaration",e,t)},t.assertDeclareExportAllDeclaration=function(e,t){assert("DeclareExportAllDeclaration",e,t)},t.assertDeclaredPredicate=function(e,t){assert("DeclaredPredicate",e,t)},t.assertExistsTypeAnnotation=function(e,t){assert("ExistsTypeAnnotation",e,t)},t.assertFunctionTypeAnnotation=function(e,t){assert("FunctionTypeAnnotation",e,t)},t.assertFunctionTypeParam=function(e,t){assert("FunctionTypeParam",e,t)},t.assertGenericTypeAnnotation=function(e,t){assert("GenericTypeAnnotation",e,t)},t.assertInferredPredicate=function(e,t){assert("InferredPredicate",e,t)},t.assertInterfaceExtends=function(e,t){assert("InterfaceExtends",e,t)},t.assertInterfaceDeclaration=function(e,t){assert("InterfaceDeclaration",e,t)},t.assertInterfaceTypeAnnotation=function(e,t){assert("InterfaceTypeAnnotation",e,t)},t.assertIntersectionTypeAnnotation=function(e,t){assert("IntersectionTypeAnnotation",e,t)},t.assertMixedTypeAnnotation=function(e,t){assert("MixedTypeAnnotation",e,t)},t.assertEmptyTypeAnnotation=function(e,t){assert("EmptyTypeAnnotation",e,t)},t.assertNullableTypeAnnotation=function(e,t){assert("NullableTypeAnnotation",e,t)},t.assertNumberLiteralTypeAnnotation=function(e,t){assert("NumberLiteralTypeAnnotation",e,t)},t.assertNumberTypeAnnotation=function(e,t){assert("NumberTypeAnnotation",e,t)},t.assertObjectTypeAnnotation=function(e,t){assert("ObjectTypeAnnotation",e,t)},t.assertObjectTypeInternalSlot=function(e,t){assert("ObjectTypeInternalSlot",e,t)},t.assertObjectTypeCallProperty=function(e,t){assert("ObjectTypeCallProperty",e,t)},t.assertObjectTypeIndexer=function(e,t){assert("ObjectTypeIndexer",e,t)},t.assertObjectTypeProperty=function(e,t){assert("ObjectTypeProperty",e,t)},t.assertObjectTypeSpreadProperty=function(e,t){assert("ObjectTypeSpreadProperty",e,t)},t.assertOpaqueType=function(e,t){assert("OpaqueType",e,t)},t.assertQualifiedTypeIdentifier=function(e,t){assert("QualifiedTypeIdentifier",e,t)},t.assertStringLiteralTypeAnnotation=function(e,t){assert("StringLiteralTypeAnnotation",e,t)},t.assertStringTypeAnnotation=function(e,t){assert("StringTypeAnnotation",e,t)},t.assertSymbolTypeAnnotation=function(e,t){assert("SymbolTypeAnnotation",e,t)},t.assertThisTypeAnnotation=function(e,t){assert("ThisTypeAnnotation",e,t)},t.assertTupleTypeAnnotation=function(e,t){assert("TupleTypeAnnotation",e,t)},t.assertTypeofTypeAnnotation=function(e,t){assert("TypeofTypeAnnotation",e,t)},t.assertTypeAlias=function(e,t){assert("TypeAlias",e,t)},t.assertTypeAnnotation=function(e,t){assert("TypeAnnotation",e,t)},t.assertTypeCastExpression=function(e,t){assert("TypeCastExpression",e,t)},t.assertTypeParameter=function(e,t){assert("TypeParameter",e,t)},t.assertTypeParameterDeclaration=function(e,t){assert("TypeParameterDeclaration",e,t)},t.assertTypeParameterInstantiation=function(e,t){assert("TypeParameterInstantiation",e,t)},t.assertUnionTypeAnnotation=function(e,t){assert("UnionTypeAnnotation",e,t)},t.assertVariance=function(e,t){assert("Variance",e,t)},t.assertVoidTypeAnnotation=function(e,t){assert("VoidTypeAnnotation",e,t)},t.assertEnumDeclaration=function(e,t){assert("EnumDeclaration",e,t)},t.assertEnumBooleanBody=function(e,t){assert("EnumBooleanBody",e,t)},t.assertEnumNumberBody=function(e,t){assert("EnumNumberBody",e,t)},t.assertEnumStringBody=function(e,t){assert("EnumStringBody",e,t)},t.assertEnumSymbolBody=function(e,t){assert("EnumSymbolBody",e,t)},t.assertEnumBooleanMember=function(e,t){assert("EnumBooleanMember",e,t)},t.assertEnumNumberMember=function(e,t){assert("EnumNumberMember",e,t)},t.assertEnumStringMember=function(e,t){assert("EnumStringMember",e,t)},t.assertEnumDefaultedMember=function(e,t){assert("EnumDefaultedMember",e,t)},t.assertIndexedAccessType=function(e,t){assert("IndexedAccessType",e,t)},t.assertOptionalIndexedAccessType=function(e,t){assert("OptionalIndexedAccessType",e,t)},t.assertJSXAttribute=function(e,t){assert("JSXAttribute",e,t)},t.assertJSXClosingElement=function(e,t){assert("JSXClosingElement",e,t)},t.assertJSXElement=function(e,t){assert("JSXElement",e,t)},t.assertJSXEmptyExpression=function(e,t){assert("JSXEmptyExpression",e,t)},t.assertJSXExpressionContainer=function(e,t){assert("JSXExpressionContainer",e,t)},t.assertJSXSpreadChild=function(e,t){assert("JSXSpreadChild",e,t)},t.assertJSXIdentifier=function(e,t){assert("JSXIdentifier",e,t)},t.assertJSXMemberExpression=function(e,t){assert("JSXMemberExpression",e,t)},t.assertJSXNamespacedName=function(e,t){assert("JSXNamespacedName",e,t)},t.assertJSXOpeningElement=function(e,t){assert("JSXOpeningElement",e,t)},t.assertJSXSpreadAttribute=function(e,t){assert("JSXSpreadAttribute",e,t)},t.assertJSXText=function(e,t){assert("JSXText",e,t)},t.assertJSXFragment=function(e,t){assert("JSXFragment",e,t)},t.assertJSXOpeningFragment=function(e,t){assert("JSXOpeningFragment",e,t)},t.assertJSXClosingFragment=function(e,t){assert("JSXClosingFragment",e,t)},t.assertNoop=function(e,t){assert("Noop",e,t)},t.assertPlaceholder=function(e,t){assert("Placeholder",e,t)},t.assertV8IntrinsicIdentifier=function(e,t){assert("V8IntrinsicIdentifier",e,t)},t.assertArgumentPlaceholder=function(e,t){assert("ArgumentPlaceholder",e,t)},t.assertBindExpression=function(e,t){assert("BindExpression",e,t)},t.assertClassProperty=function(e,t){assert("ClassProperty",e,t)},t.assertPipelineTopicExpression=function(e,t){assert("PipelineTopicExpression",e,t)},t.assertPipelineBareFunction=function(e,t){assert("PipelineBareFunction",e,t)},t.assertPipelinePrimaryTopicReference=function(e,t){assert("PipelinePrimaryTopicReference",e,t)},t.assertClassPrivateProperty=function(e,t){assert("ClassPrivateProperty",e,t)},t.assertClassPrivateMethod=function(e,t){assert("ClassPrivateMethod",e,t)},t.assertImportAttribute=function(e,t){assert("ImportAttribute",e,t)},t.assertDecorator=function(e,t){assert("Decorator",e,t)},t.assertDoExpression=function(e,t){assert("DoExpression",e,t)},t.assertExportDefaultSpecifier=function(e,t){assert("ExportDefaultSpecifier",e,t)},t.assertPrivateName=function(e,t){assert("PrivateName",e,t)},t.assertRecordExpression=function(e,t){assert("RecordExpression",e,t)},t.assertTupleExpression=function(e,t){assert("TupleExpression",e,t)},t.assertDecimalLiteral=function(e,t){assert("DecimalLiteral",e,t)},t.assertStaticBlock=function(e,t){assert("StaticBlock",e,t)},t.assertModuleExpression=function(e,t){assert("ModuleExpression",e,t)},t.assertTSParameterProperty=function(e,t){assert("TSParameterProperty",e,t)},t.assertTSDeclareFunction=function(e,t){assert("TSDeclareFunction",e,t)},t.assertTSDeclareMethod=function(e,t){assert("TSDeclareMethod",e,t)},t.assertTSQualifiedName=function(e,t){assert("TSQualifiedName",e,t)},t.assertTSCallSignatureDeclaration=function(e,t){assert("TSCallSignatureDeclaration",e,t)},t.assertTSConstructSignatureDeclaration=function(e,t){assert("TSConstructSignatureDeclaration",e,t)},t.assertTSPropertySignature=function(e,t){assert("TSPropertySignature",e,t)},t.assertTSMethodSignature=function(e,t){assert("TSMethodSignature",e,t)},t.assertTSIndexSignature=function(e,t){assert("TSIndexSignature",e,t)},t.assertTSAnyKeyword=function(e,t){assert("TSAnyKeyword",e,t)},t.assertTSBooleanKeyword=function(e,t){assert("TSBooleanKeyword",e,t)},t.assertTSBigIntKeyword=function(e,t){assert("TSBigIntKeyword",e,t)},t.assertTSIntrinsicKeyword=function(e,t){assert("TSIntrinsicKeyword",e,t)},t.assertTSNeverKeyword=function(e,t){assert("TSNeverKeyword",e,t)},t.assertTSNullKeyword=function(e,t){assert("TSNullKeyword",e,t)},t.assertTSNumberKeyword=function(e,t){assert("TSNumberKeyword",e,t)},t.assertTSObjectKeyword=function(e,t){assert("TSObjectKeyword",e,t)},t.assertTSStringKeyword=function(e,t){assert("TSStringKeyword",e,t)},t.assertTSSymbolKeyword=function(e,t){assert("TSSymbolKeyword",e,t)},t.assertTSUndefinedKeyword=function(e,t){assert("TSUndefinedKeyword",e,t)},t.assertTSUnknownKeyword=function(e,t){assert("TSUnknownKeyword",e,t)},t.assertTSVoidKeyword=function(e,t){assert("TSVoidKeyword",e,t)},t.assertTSThisType=function(e,t){assert("TSThisType",e,t)},t.assertTSFunctionType=function(e,t){assert("TSFunctionType",e,t)},t.assertTSConstructorType=function(e,t){assert("TSConstructorType",e,t)},t.assertTSTypeReference=function(e,t){assert("TSTypeReference",e,t)},t.assertTSTypePredicate=function(e,t){assert("TSTypePredicate",e,t)},t.assertTSTypeQuery=function(e,t){assert("TSTypeQuery",e,t)},t.assertTSTypeLiteral=function(e,t){assert("TSTypeLiteral",e,t)},t.assertTSArrayType=function(e,t){assert("TSArrayType",e,t)},t.assertTSTupleType=function(e,t){assert("TSTupleType",e,t)},t.assertTSOptionalType=function(e,t){assert("TSOptionalType",e,t)},t.assertTSRestType=function(e,t){assert("TSRestType",e,t)},t.assertTSNamedTupleMember=function(e,t){assert("TSNamedTupleMember",e,t)},t.assertTSUnionType=function(e,t){assert("TSUnionType",e,t)},t.assertTSIntersectionType=function(e,t){assert("TSIntersectionType",e,t)},t.assertTSConditionalType=function(e,t){assert("TSConditionalType",e,t)},t.assertTSInferType=function(e,t){assert("TSInferType",e,t)},t.assertTSParenthesizedType=function(e,t){assert("TSParenthesizedType",e,t)},t.assertTSTypeOperator=function(e,t){assert("TSTypeOperator",e,t)},t.assertTSIndexedAccessType=function(e,t){assert("TSIndexedAccessType",e,t)},t.assertTSMappedType=function(e,t){assert("TSMappedType",e,t)},t.assertTSLiteralType=function(e,t){assert("TSLiteralType",e,t)},t.assertTSExpressionWithTypeArguments=function(e,t){assert("TSExpressionWithTypeArguments",e,t)},t.assertTSInterfaceDeclaration=function(e,t){assert("TSInterfaceDeclaration",e,t)},t.assertTSInterfaceBody=function(e,t){assert("TSInterfaceBody",e,t)},t.assertTSTypeAliasDeclaration=function(e,t){assert("TSTypeAliasDeclaration",e,t)},t.assertTSAsExpression=function(e,t){assert("TSAsExpression",e,t)},t.assertTSTypeAssertion=function(e,t){assert("TSTypeAssertion",e,t)},t.assertTSEnumDeclaration=function(e,t){assert("TSEnumDeclaration",e,t)},t.assertTSEnumMember=function(e,t){assert("TSEnumMember",e,t)},t.assertTSModuleDeclaration=function(e,t){assert("TSModuleDeclaration",e,t)},t.assertTSModuleBlock=function(e,t){assert("TSModuleBlock",e,t)},t.assertTSImportType=function(e,t){assert("TSImportType",e,t)},t.assertTSImportEqualsDeclaration=function(e,t){assert("TSImportEqualsDeclaration",e,t)},t.assertTSExternalModuleReference=function(e,t){assert("TSExternalModuleReference",e,t)},t.assertTSNonNullExpression=function(e,t){assert("TSNonNullExpression",e,t)},t.assertTSExportAssignment=function(e,t){assert("TSExportAssignment",e,t)},t.assertTSNamespaceExportDeclaration=function(e,t){assert("TSNamespaceExportDeclaration",e,t)},t.assertTSTypeAnnotation=function(e,t){assert("TSTypeAnnotation",e,t)},t.assertTSTypeParameterInstantiation=function(e,t){assert("TSTypeParameterInstantiation",e,t)},t.assertTSTypeParameterDeclaration=function(e,t){assert("TSTypeParameterDeclaration",e,t)},t.assertTSTypeParameter=function(e,t){assert("TSTypeParameter",e,t)},t.assertExpression=function(e,t){assert("Expression",e,t)},t.assertBinary=function(e,t){assert("Binary",e,t)},t.assertScopable=function(e,t){assert("Scopable",e,t)},t.assertBlockParent=function(e,t){assert("BlockParent",e,t)},t.assertBlock=function(e,t){assert("Block",e,t)},t.assertStatement=function(e,t){assert("Statement",e,t)},t.assertTerminatorless=function(e,t){assert("Terminatorless",e,t)},t.assertCompletionStatement=function(e,t){assert("CompletionStatement",e,t)},t.assertConditional=function(e,t){assert("Conditional",e,t)},t.assertLoop=function(e,t){assert("Loop",e,t)},t.assertWhile=function(e,t){assert("While",e,t)},t.assertExpressionWrapper=function(e,t){assert("ExpressionWrapper",e,t)},t.assertFor=function(e,t){assert("For",e,t)},t.assertForXStatement=function(e,t){assert("ForXStatement",e,t)},t.assertFunction=function(e,t){assert("Function",e,t)},t.assertFunctionParent=function(e,t){assert("FunctionParent",e,t)},t.assertPureish=function(e,t){assert("Pureish",e,t)},t.assertDeclaration=function(e,t){assert("Declaration",e,t)},t.assertPatternLike=function(e,t){assert("PatternLike",e,t)},t.assertLVal=function(e,t){assert("LVal",e,t)},t.assertTSEntityName=function(e,t){assert("TSEntityName",e,t)},t.assertLiteral=function(e,t){assert("Literal",e,t)},t.assertImmutable=function(e,t){assert("Immutable",e,t)},t.assertUserWhitespacable=function(e,t){assert("UserWhitespacable",e,t)},t.assertMethod=function(e,t){assert("Method",e,t)},t.assertObjectMember=function(e,t){assert("ObjectMember",e,t)},t.assertProperty=function(e,t){assert("Property",e,t)},t.assertUnaryLike=function(e,t){assert("UnaryLike",e,t)},t.assertPattern=function(e,t){assert("Pattern",e,t)},t.assertClass=function(e,t){assert("Class",e,t)},t.assertModuleDeclaration=function(e,t){assert("ModuleDeclaration",e,t)},t.assertExportDeclaration=function(e,t){assert("ExportDeclaration",e,t)},t.assertModuleSpecifier=function(e,t){assert("ModuleSpecifier",e,t)},t.assertFlow=function(e,t){assert("Flow",e,t)},t.assertFlowType=function(e,t){assert("FlowType",e,t)},t.assertFlowBaseAnnotation=function(e,t){assert("FlowBaseAnnotation",e,t)},t.assertFlowDeclaration=function(e,t){assert("FlowDeclaration",e,t)},t.assertFlowPredicate=function(e,t){assert("FlowPredicate",e,t)},t.assertEnumBody=function(e,t){assert("EnumBody",e,t)},t.assertEnumMember=function(e,t){assert("EnumMember",e,t)},t.assertJSX=function(e,t){assert("JSX",e,t)},t.assertPrivate=function(e,t){assert("Private",e,t)},t.assertTSTypeElement=function(e,t){assert("TSTypeElement",e,t)},t.assertTSType=function(e,t){assert("TSType",e,t)},t.assertTSBaseType=function(e,t){assert("TSBaseType",e,t)},t.assertNumberLiteral=function(e,t){console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),assert("NumberLiteral",e,t)},t.assertRegexLiteral=function(e,t){console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),assert("RegexLiteral",e,t)},t.assertRestProperty=function(e,t){console.trace("The node type RestProperty has been renamed to RestElement"),assert("RestProperty",e,t)},t.assertSpreadProperty=function(e,t){console.trace("The node type SpreadProperty has been renamed to SpreadElement"),assert("SpreadProperty",e,t)};var i=r(5001);function assert(e,t,r){if(!(0,i.default)(e,t,r))throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}},2006:()=>{},9234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,...t){const r=i.BUILDER_KEYS[e],s=t.length;if(s>r.length)throw new Error(`${e}: Too many arguments passed. Received ${s} but can receive no more than ${r.length}`);const a={type:e};let o=0;r.forEach((r=>{const n=i.NODE_FIELDS[e][r];let l;o<s&&(l=t[o]),void 0===l&&(l=Array.isArray(n.default)?[]:n.default),a[r]=l,o++}));for(const e of Object.keys(a))(0,n.default)(a,e,a[e]);return a};var i=r(1102),n=r(1843)},4660:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,n.default)(e);return 1===t.length?t[0]:(0,i.unionTypeAnnotation)(t)};var i=r(1580),n=r(6337)},7395:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"===e)return(0,i.stringTypeAnnotation)();if("number"===e)return(0,i.numberTypeAnnotation)();if("undefined"===e)return(0,i.voidTypeAnnotation)();if("boolean"===e)return(0,i.booleanTypeAnnotation)();if("function"===e)return(0,i.genericTypeAnnotation)((0,i.identifier)("Function"));if("object"===e)return(0,i.genericTypeAnnotation)((0,i.identifier)("Object"));if("symbol"===e)return(0,i.genericTypeAnnotation)((0,i.identifier)("Symbol"));if("bigint"===e)return(0,i.anyTypeAnnotation)();throw new Error("Invalid typeof value: "+e)};var i=r(1580)},1580:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayExpression=function(e){return(0,i.default)("ArrayExpression",...arguments)},t.assignmentExpression=function(e,t,r){return(0,i.default)("AssignmentExpression",...arguments)},t.binaryExpression=function(e,t,r){return(0,i.default)("BinaryExpression",...arguments)},t.interpreterDirective=function(e){return(0,i.default)("InterpreterDirective",...arguments)},t.directive=function(e){return(0,i.default)("Directive",...arguments)},t.directiveLiteral=function(e){return(0,i.default)("DirectiveLiteral",...arguments)},t.blockStatement=function(e,t){return(0,i.default)("BlockStatement",...arguments)},t.breakStatement=function(e){return(0,i.default)("BreakStatement",...arguments)},t.callExpression=function(e,t){return(0,i.default)("CallExpression",...arguments)},t.catchClause=function(e,t){return(0,i.default)("CatchClause",...arguments)},t.conditionalExpression=function(e,t,r){return(0,i.default)("ConditionalExpression",...arguments)},t.continueStatement=function(e){return(0,i.default)("ContinueStatement",...arguments)},t.debuggerStatement=function(){return(0,i.default)("DebuggerStatement",...arguments)},t.doWhileStatement=function(e,t){return(0,i.default)("DoWhileStatement",...arguments)},t.emptyStatement=function(){return(0,i.default)("EmptyStatement",...arguments)},t.expressionStatement=function(e){return(0,i.default)("ExpressionStatement",...arguments)},t.file=function(e,t,r){return(0,i.default)("File",...arguments)},t.forInStatement=function(e,t,r){return(0,i.default)("ForInStatement",...arguments)},t.forStatement=function(e,t,r,n){return(0,i.default)("ForStatement",...arguments)},t.functionDeclaration=function(e,t,r,n,s){return(0,i.default)("FunctionDeclaration",...arguments)},t.functionExpression=function(e,t,r,n,s){return(0,i.default)("FunctionExpression",...arguments)},t.identifier=function(e){return(0,i.default)("Identifier",...arguments)},t.ifStatement=function(e,t,r){return(0,i.default)("IfStatement",...arguments)},t.labeledStatement=function(e,t){return(0,i.default)("LabeledStatement",...arguments)},t.stringLiteral=function(e){return(0,i.default)("StringLiteral",...arguments)},t.numericLiteral=function(e){return(0,i.default)("NumericLiteral",...arguments)},t.nullLiteral=function(){return(0,i.default)("NullLiteral",...arguments)},t.booleanLiteral=function(e){return(0,i.default)("BooleanLiteral",...arguments)},t.regExpLiteral=function(e,t){return(0,i.default)("RegExpLiteral",...arguments)},t.logicalExpression=function(e,t,r){return(0,i.default)("LogicalExpression",...arguments)},t.memberExpression=function(e,t,r,n){return(0,i.default)("MemberExpression",...arguments)},t.newExpression=function(e,t){return(0,i.default)("NewExpression",...arguments)},t.program=function(e,t,r,n){return(0,i.default)("Program",...arguments)},t.objectExpression=function(e){return(0,i.default)("ObjectExpression",...arguments)},t.objectMethod=function(e,t,r,n,s,a,o){return(0,i.default)("ObjectMethod",...arguments)},t.objectProperty=function(e,t,r,n,s){return(0,i.default)("ObjectProperty",...arguments)},t.restElement=function(e){return(0,i.default)("RestElement",...arguments)},t.returnStatement=function(e){return(0,i.default)("ReturnStatement",...arguments)},t.sequenceExpression=function(e){return(0,i.default)("SequenceExpression",...arguments)},t.parenthesizedExpression=function(e){return(0,i.default)("ParenthesizedExpression",...arguments)},t.switchCase=function(e,t){return(0,i.default)("SwitchCase",...arguments)},t.switchStatement=function(e,t){return(0,i.default)("SwitchStatement",...arguments)},t.thisExpression=function(){return(0,i.default)("ThisExpression",...arguments)},t.throwStatement=function(e){return(0,i.default)("ThrowStatement",...arguments)},t.tryStatement=function(e,t,r){return(0,i.default)("TryStatement",...arguments)},t.unaryExpression=function(e,t,r){return(0,i.default)("UnaryExpression",...arguments)},t.updateExpression=function(e,t,r){return(0,i.default)("UpdateExpression",...arguments)},t.variableDeclaration=function(e,t){return(0,i.default)("VariableDeclaration",...arguments)},t.variableDeclarator=function(e,t){return(0,i.default)("VariableDeclarator",...arguments)},t.whileStatement=function(e,t){return(0,i.default)("WhileStatement",...arguments)},t.withStatement=function(e,t){return(0,i.default)("WithStatement",...arguments)},t.assignmentPattern=function(e,t){return(0,i.default)("AssignmentPattern",...arguments)},t.arrayPattern=function(e){return(0,i.default)("ArrayPattern",...arguments)},t.arrowFunctionExpression=function(e,t,r){return(0,i.default)("ArrowFunctionExpression",...arguments)},t.classBody=function(e){return(0,i.default)("ClassBody",...arguments)},t.classExpression=function(e,t,r,n){return(0,i.default)("ClassExpression",...arguments)},t.classDeclaration=function(e,t,r,n){return(0,i.default)("ClassDeclaration",...arguments)},t.exportAllDeclaration=function(e){return(0,i.default)("ExportAllDeclaration",...arguments)},t.exportDefaultDeclaration=function(e){return(0,i.default)("ExportDefaultDeclaration",...arguments)},t.exportNamedDeclaration=function(e,t,r){return(0,i.default)("ExportNamedDeclaration",...arguments)},t.exportSpecifier=function(e,t){return(0,i.default)("ExportSpecifier",...arguments)},t.forOfStatement=function(e,t,r,n){return(0,i.default)("ForOfStatement",...arguments)},t.importDeclaration=function(e,t){return(0,i.default)("ImportDeclaration",...arguments)},t.importDefaultSpecifier=function(e){return(0,i.default)("ImportDefaultSpecifier",...arguments)},t.importNamespaceSpecifier=function(e){return(0,i.default)("ImportNamespaceSpecifier",...arguments)},t.importSpecifier=function(e,t){return(0,i.default)("ImportSpecifier",...arguments)},t.metaProperty=function(e,t){return(0,i.default)("MetaProperty",...arguments)},t.classMethod=function(e,t,r,n,s,a,o,l){return(0,i.default)("ClassMethod",...arguments)},t.objectPattern=function(e){return(0,i.default)("ObjectPattern",...arguments)},t.spreadElement=function(e){return(0,i.default)("SpreadElement",...arguments)},t.super=function(){return(0,i.default)("Super",...arguments)},t.taggedTemplateExpression=function(e,t){return(0,i.default)("TaggedTemplateExpression",...arguments)},t.templateElement=function(e,t){return(0,i.default)("TemplateElement",...arguments)},t.templateLiteral=function(e,t){return(0,i.default)("TemplateLiteral",...arguments)},t.yieldExpression=function(e,t){return(0,i.default)("YieldExpression",...arguments)},t.awaitExpression=function(e){return(0,i.default)("AwaitExpression",...arguments)},t.import=function(){return(0,i.default)("Import",...arguments)},t.bigIntLiteral=function(e){return(0,i.default)("BigIntLiteral",...arguments)},t.exportNamespaceSpecifier=function(e){return(0,i.default)("ExportNamespaceSpecifier",...arguments)},t.optionalMemberExpression=function(e,t,r,n){return(0,i.default)("OptionalMemberExpression",...arguments)},t.optionalCallExpression=function(e,t,r){return(0,i.default)("OptionalCallExpression",...arguments)},t.anyTypeAnnotation=function(){return(0,i.default)("AnyTypeAnnotation",...arguments)},t.arrayTypeAnnotation=function(e){return(0,i.default)("ArrayTypeAnnotation",...arguments)},t.booleanTypeAnnotation=function(){return(0,i.default)("BooleanTypeAnnotation",...arguments)},t.booleanLiteralTypeAnnotation=function(e){return(0,i.default)("BooleanLiteralTypeAnnotation",...arguments)},t.nullLiteralTypeAnnotation=function(){return(0,i.default)("NullLiteralTypeAnnotation",...arguments)},t.classImplements=function(e,t){return(0,i.default)("ClassImplements",...arguments)},t.declareClass=function(e,t,r,n){return(0,i.default)("DeclareClass",...arguments)},t.declareFunction=function(e){return(0,i.default)("DeclareFunction",...arguments)},t.declareInterface=function(e,t,r,n){return(0,i.default)("DeclareInterface",...arguments)},t.declareModule=function(e,t,r){return(0,i.default)("DeclareModule",...arguments)},t.declareModuleExports=function(e){return(0,i.default)("DeclareModuleExports",...arguments)},t.declareTypeAlias=function(e,t,r){return(0,i.default)("DeclareTypeAlias",...arguments)},t.declareOpaqueType=function(e,t,r){return(0,i.default)("DeclareOpaqueType",...arguments)},t.declareVariable=function(e){return(0,i.default)("DeclareVariable",...arguments)},t.declareExportDeclaration=function(e,t,r){return(0,i.default)("DeclareExportDeclaration",...arguments)},t.declareExportAllDeclaration=function(e){return(0,i.default)("DeclareExportAllDeclaration",...arguments)},t.declaredPredicate=function(e){return(0,i.default)("DeclaredPredicate",...arguments)},t.existsTypeAnnotation=function(){return(0,i.default)("ExistsTypeAnnotation",...arguments)},t.functionTypeAnnotation=function(e,t,r,n){return(0,i.default)("FunctionTypeAnnotation",...arguments)},t.functionTypeParam=function(e,t){return(0,i.default)("FunctionTypeParam",...arguments)},t.genericTypeAnnotation=function(e,t){return(0,i.default)("GenericTypeAnnotation",...arguments)},t.inferredPredicate=function(){return(0,i.default)("InferredPredicate",...arguments)},t.interfaceExtends=function(e,t){return(0,i.default)("InterfaceExtends",...arguments)},t.interfaceDeclaration=function(e,t,r,n){return(0,i.default)("InterfaceDeclaration",...arguments)},t.interfaceTypeAnnotation=function(e,t){return(0,i.default)("InterfaceTypeAnnotation",...arguments)},t.intersectionTypeAnnotation=function(e){return(0,i.default)("IntersectionTypeAnnotation",...arguments)},t.mixedTypeAnnotation=function(){return(0,i.default)("MixedTypeAnnotation",...arguments)},t.emptyTypeAnnotation=function(){return(0,i.default)("EmptyTypeAnnotation",...arguments)},t.nullableTypeAnnotation=function(e){return(0,i.default)("NullableTypeAnnotation",...arguments)},t.numberLiteralTypeAnnotation=function(e){return(0,i.default)("NumberLiteralTypeAnnotation",...arguments)},t.numberTypeAnnotation=function(){return(0,i.default)("NumberTypeAnnotation",...arguments)},t.objectTypeAnnotation=function(e,t,r,n,s){return(0,i.default)("ObjectTypeAnnotation",...arguments)},t.objectTypeInternalSlot=function(e,t,r,n,s){return(0,i.default)("ObjectTypeInternalSlot",...arguments)},t.objectTypeCallProperty=function(e){return(0,i.default)("ObjectTypeCallProperty",...arguments)},t.objectTypeIndexer=function(e,t,r,n){return(0,i.default)("ObjectTypeIndexer",...arguments)},t.objectTypeProperty=function(e,t,r){return(0,i.default)("ObjectTypeProperty",...arguments)},t.objectTypeSpreadProperty=function(e){return(0,i.default)("ObjectTypeSpreadProperty",...arguments)},t.opaqueType=function(e,t,r,n){return(0,i.default)("OpaqueType",...arguments)},t.qualifiedTypeIdentifier=function(e,t){return(0,i.default)("QualifiedTypeIdentifier",...arguments)},t.stringLiteralTypeAnnotation=function(e){return(0,i.default)("StringLiteralTypeAnnotation",...arguments)},t.stringTypeAnnotation=function(){return(0,i.default)("StringTypeAnnotation",...arguments)},t.symbolTypeAnnotation=function(){return(0,i.default)("SymbolTypeAnnotation",...arguments)},t.thisTypeAnnotation=function(){return(0,i.default)("ThisTypeAnnotation",...arguments)},t.tupleTypeAnnotation=function(e){return(0,i.default)("TupleTypeAnnotation",...arguments)},t.typeofTypeAnnotation=function(e){return(0,i.default)("TypeofTypeAnnotation",...arguments)},t.typeAlias=function(e,t,r){return(0,i.default)("TypeAlias",...arguments)},t.typeAnnotation=function(e){return(0,i.default)("TypeAnnotation",...arguments)},t.typeCastExpression=function(e,t){return(0,i.default)("TypeCastExpression",...arguments)},t.typeParameter=function(e,t,r){return(0,i.default)("TypeParameter",...arguments)},t.typeParameterDeclaration=function(e){return(0,i.default)("TypeParameterDeclaration",...arguments)},t.typeParameterInstantiation=function(e){return(0,i.default)("TypeParameterInstantiation",...arguments)},t.unionTypeAnnotation=function(e){return(0,i.default)("UnionTypeAnnotation",...arguments)},t.variance=function(e){return(0,i.default)("Variance",...arguments)},t.voidTypeAnnotation=function(){return(0,i.default)("VoidTypeAnnotation",...arguments)},t.enumDeclaration=function(e,t){return(0,i.default)("EnumDeclaration",...arguments)},t.enumBooleanBody=function(e){return(0,i.default)("EnumBooleanBody",...arguments)},t.enumNumberBody=function(e){return(0,i.default)("EnumNumberBody",...arguments)},t.enumStringBody=function(e){return(0,i.default)("EnumStringBody",...arguments)},t.enumSymbolBody=function(e){return(0,i.default)("EnumSymbolBody",...arguments)},t.enumBooleanMember=function(e){return(0,i.default)("EnumBooleanMember",...arguments)},t.enumNumberMember=function(e,t){return(0,i.default)("EnumNumberMember",...arguments)},t.enumStringMember=function(e,t){return(0,i.default)("EnumStringMember",...arguments)},t.enumDefaultedMember=function(e){return(0,i.default)("EnumDefaultedMember",...arguments)},t.indexedAccessType=function(e,t){return(0,i.default)("IndexedAccessType",...arguments)},t.optionalIndexedAccessType=function(e,t){return(0,i.default)("OptionalIndexedAccessType",...arguments)},t.jSXAttribute=t.jsxAttribute=function(e,t){return(0,i.default)("JSXAttribute",...arguments)},t.jSXClosingElement=t.jsxClosingElement=function(e){return(0,i.default)("JSXClosingElement",...arguments)},t.jSXElement=t.jsxElement=function(e,t,r,n){return(0,i.default)("JSXElement",...arguments)},t.jSXEmptyExpression=t.jsxEmptyExpression=function(){return(0,i.default)("JSXEmptyExpression",...arguments)},t.jSXExpressionContainer=t.jsxExpressionContainer=function(e){return(0,i.default)("JSXExpressionContainer",...arguments)},t.jSXSpreadChild=t.jsxSpreadChild=function(e){return(0,i.default)("JSXSpreadChild",...arguments)},t.jSXIdentifier=t.jsxIdentifier=function(e){return(0,i.default)("JSXIdentifier",...arguments)},t.jSXMemberExpression=t.jsxMemberExpression=function(e,t){return(0,i.default)("JSXMemberExpression",...arguments)},t.jSXNamespacedName=t.jsxNamespacedName=function(e,t){return(0,i.default)("JSXNamespacedName",...arguments)},t.jSXOpeningElement=t.jsxOpeningElement=function(e,t,r){return(0,i.default)("JSXOpeningElement",...arguments)},t.jSXSpreadAttribute=t.jsxSpreadAttribute=function(e){return(0,i.default)("JSXSpreadAttribute",...arguments)},t.jSXText=t.jsxText=function(e){return(0,i.default)("JSXText",...arguments)},t.jSXFragment=t.jsxFragment=function(e,t,r){return(0,i.default)("JSXFragment",...arguments)},t.jSXOpeningFragment=t.jsxOpeningFragment=function(){return(0,i.default)("JSXOpeningFragment",...arguments)},t.jSXClosingFragment=t.jsxClosingFragment=function(){return(0,i.default)("JSXClosingFragment",...arguments)},t.noop=function(){return(0,i.default)("Noop",...arguments)},t.placeholder=function(e,t){return(0,i.default)("Placeholder",...arguments)},t.v8IntrinsicIdentifier=function(e){return(0,i.default)("V8IntrinsicIdentifier",...arguments)},t.argumentPlaceholder=function(){return(0,i.default)("ArgumentPlaceholder",...arguments)},t.bindExpression=function(e,t){return(0,i.default)("BindExpression",...arguments)},t.classProperty=function(e,t,r,n,s,a){return(0,i.default)("ClassProperty",...arguments)},t.pipelineTopicExpression=function(e){return(0,i.default)("PipelineTopicExpression",...arguments)},t.pipelineBareFunction=function(e){return(0,i.default)("PipelineBareFunction",...arguments)},t.pipelinePrimaryTopicReference=function(){return(0,i.default)("PipelinePrimaryTopicReference",...arguments)},t.classPrivateProperty=function(e,t,r,n){return(0,i.default)("ClassPrivateProperty",...arguments)},t.classPrivateMethod=function(e,t,r,n,s){return(0,i.default)("ClassPrivateMethod",...arguments)},t.importAttribute=function(e,t){return(0,i.default)("ImportAttribute",...arguments)},t.decorator=function(e){return(0,i.default)("Decorator",...arguments)},t.doExpression=function(e,t){return(0,i.default)("DoExpression",...arguments)},t.exportDefaultSpecifier=function(e){return(0,i.default)("ExportDefaultSpecifier",...arguments)},t.privateName=function(e){return(0,i.default)("PrivateName",...arguments)},t.recordExpression=function(e){return(0,i.default)("RecordExpression",...arguments)},t.tupleExpression=function(e){return(0,i.default)("TupleExpression",...arguments)},t.decimalLiteral=function(e){return(0,i.default)("DecimalLiteral",...arguments)},t.staticBlock=function(e){return(0,i.default)("StaticBlock",...arguments)},t.moduleExpression=function(e){return(0,i.default)("ModuleExpression",...arguments)},t.tSParameterProperty=t.tsParameterProperty=function(e){return(0,i.default)("TSParameterProperty",...arguments)},t.tSDeclareFunction=t.tsDeclareFunction=function(e,t,r,n){return(0,i.default)("TSDeclareFunction",...arguments)},t.tSDeclareMethod=t.tsDeclareMethod=function(e,t,r,n,s){return(0,i.default)("TSDeclareMethod",...arguments)},t.tSQualifiedName=t.tsQualifiedName=function(e,t){return(0,i.default)("TSQualifiedName",...arguments)},t.tSCallSignatureDeclaration=t.tsCallSignatureDeclaration=function(e,t,r){return(0,i.default)("TSCallSignatureDeclaration",...arguments)},t.tSConstructSignatureDeclaration=t.tsConstructSignatureDeclaration=function(e,t,r){return(0,i.default)("TSConstructSignatureDeclaration",...arguments)},t.tSPropertySignature=t.tsPropertySignature=function(e,t,r){return(0,i.default)("TSPropertySignature",...arguments)},t.tSMethodSignature=t.tsMethodSignature=function(e,t,r,n){return(0,i.default)("TSMethodSignature",...arguments)},t.tSIndexSignature=t.tsIndexSignature=function(e,t){return(0,i.default)("TSIndexSignature",...arguments)},t.tSAnyKeyword=t.tsAnyKeyword=function(){return(0,i.default)("TSAnyKeyword",...arguments)},t.tSBooleanKeyword=t.tsBooleanKeyword=function(){return(0,i.default)("TSBooleanKeyword",...arguments)},t.tSBigIntKeyword=t.tsBigIntKeyword=function(){return(0,i.default)("TSBigIntKeyword",...arguments)},t.tSIntrinsicKeyword=t.tsIntrinsicKeyword=function(){return(0,i.default)("TSIntrinsicKeyword",...arguments)},t.tSNeverKeyword=t.tsNeverKeyword=function(){return(0,i.default)("TSNeverKeyword",...arguments)},t.tSNullKeyword=t.tsNullKeyword=function(){return(0,i.default)("TSNullKeyword",...arguments)},t.tSNumberKeyword=t.tsNumberKeyword=function(){return(0,i.default)("TSNumberKeyword",...arguments)},t.tSObjectKeyword=t.tsObjectKeyword=function(){return(0,i.default)("TSObjectKeyword",...arguments)},t.tSStringKeyword=t.tsStringKeyword=function(){return(0,i.default)("TSStringKeyword",...arguments)},t.tSSymbolKeyword=t.tsSymbolKeyword=function(){return(0,i.default)("TSSymbolKeyword",...arguments)},t.tSUndefinedKeyword=t.tsUndefinedKeyword=function(){return(0,i.default)("TSUndefinedKeyword",...arguments)},t.tSUnknownKeyword=t.tsUnknownKeyword=function(){return(0,i.default)("TSUnknownKeyword",...arguments)},t.tSVoidKeyword=t.tsVoidKeyword=function(){return(0,i.default)("TSVoidKeyword",...arguments)},t.tSThisType=t.tsThisType=function(){return(0,i.default)("TSThisType",...arguments)},t.tSFunctionType=t.tsFunctionType=function(e,t,r){return(0,i.default)("TSFunctionType",...arguments)},t.tSConstructorType=t.tsConstructorType=function(e,t,r){return(0,i.default)("TSConstructorType",...arguments)},t.tSTypeReference=t.tsTypeReference=function(e,t){return(0,i.default)("TSTypeReference",...arguments)},t.tSTypePredicate=t.tsTypePredicate=function(e,t,r){return(0,i.default)("TSTypePredicate",...arguments)},t.tSTypeQuery=t.tsTypeQuery=function(e){return(0,i.default)("TSTypeQuery",...arguments)},t.tSTypeLiteral=t.tsTypeLiteral=function(e){return(0,i.default)("TSTypeLiteral",...arguments)},t.tSArrayType=t.tsArrayType=function(e){return(0,i.default)("TSArrayType",...arguments)},t.tSTupleType=t.tsTupleType=function(e){return(0,i.default)("TSTupleType",...arguments)},t.tSOptionalType=t.tsOptionalType=function(e){return(0,i.default)("TSOptionalType",...arguments)},t.tSRestType=t.tsRestType=function(e){return(0,i.default)("TSRestType",...arguments)},t.tSNamedTupleMember=t.tsNamedTupleMember=function(e,t,r){return(0,i.default)("TSNamedTupleMember",...arguments)},t.tSUnionType=t.tsUnionType=function(e){return(0,i.default)("TSUnionType",...arguments)},t.tSIntersectionType=t.tsIntersectionType=function(e){return(0,i.default)("TSIntersectionType",...arguments)},t.tSConditionalType=t.tsConditionalType=function(e,t,r,n){return(0,i.default)("TSConditionalType",...arguments)},t.tSInferType=t.tsInferType=function(e){return(0,i.default)("TSInferType",...arguments)},t.tSParenthesizedType=t.tsParenthesizedType=function(e){return(0,i.default)("TSParenthesizedType",...arguments)},t.tSTypeOperator=t.tsTypeOperator=function(e){return(0,i.default)("TSTypeOperator",...arguments)},t.tSIndexedAccessType=t.tsIndexedAccessType=function(e,t){return(0,i.default)("TSIndexedAccessType",...arguments)},t.tSMappedType=t.tsMappedType=function(e,t,r){return(0,i.default)("TSMappedType",...arguments)},t.tSLiteralType=t.tsLiteralType=function(e){return(0,i.default)("TSLiteralType",...arguments)},t.tSExpressionWithTypeArguments=t.tsExpressionWithTypeArguments=function(e,t){return(0,i.default)("TSExpressionWithTypeArguments",...arguments)},t.tSInterfaceDeclaration=t.tsInterfaceDeclaration=function(e,t,r,n){return(0,i.default)("TSInterfaceDeclaration",...arguments)},t.tSInterfaceBody=t.tsInterfaceBody=function(e){return(0,i.default)("TSInterfaceBody",...arguments)},t.tSTypeAliasDeclaration=t.tsTypeAliasDeclaration=function(e,t,r){return(0,i.default)("TSTypeAliasDeclaration",...arguments)},t.tSAsExpression=t.tsAsExpression=function(e,t){return(0,i.default)("TSAsExpression",...arguments)},t.tSTypeAssertion=t.tsTypeAssertion=function(e,t){return(0,i.default)("TSTypeAssertion",...arguments)},t.tSEnumDeclaration=t.tsEnumDeclaration=function(e,t){return(0,i.default)("TSEnumDeclaration",...arguments)},t.tSEnumMember=t.tsEnumMember=function(e,t){return(0,i.default)("TSEnumMember",...arguments)},t.tSModuleDeclaration=t.tsModuleDeclaration=function(e,t){return(0,i.default)("TSModuleDeclaration",...arguments)},t.tSModuleBlock=t.tsModuleBlock=function(e){return(0,i.default)("TSModuleBlock",...arguments)},t.tSImportType=t.tsImportType=function(e,t,r){return(0,i.default)("TSImportType",...arguments)},t.tSImportEqualsDeclaration=t.tsImportEqualsDeclaration=function(e,t){return(0,i.default)("TSImportEqualsDeclaration",...arguments)},t.tSExternalModuleReference=t.tsExternalModuleReference=function(e){return(0,i.default)("TSExternalModuleReference",...arguments)},t.tSNonNullExpression=t.tsNonNullExpression=function(e){return(0,i.default)("TSNonNullExpression",...arguments)},t.tSExportAssignment=t.tsExportAssignment=function(e){return(0,i.default)("TSExportAssignment",...arguments)},t.tSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=function(e){return(0,i.default)("TSNamespaceExportDeclaration",...arguments)},t.tSTypeAnnotation=t.tsTypeAnnotation=function(e){return(0,i.default)("TSTypeAnnotation",...arguments)},t.tSTypeParameterInstantiation=t.tsTypeParameterInstantiation=function(e){return(0,i.default)("TSTypeParameterInstantiation",...arguments)},t.tSTypeParameterDeclaration=t.tsTypeParameterDeclaration=function(e){return(0,i.default)("TSTypeParameterDeclaration",...arguments)},t.tSTypeParameter=t.tsTypeParameter=function(e,t,r){return(0,i.default)("TSTypeParameter",...arguments)},t.numberLiteral=function(...e){return console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),(0,i.default)("NumberLiteral",...e)},t.regexLiteral=function(...e){return console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),(0,i.default)("RegexLiteral",...e)},t.restProperty=function(...e){return console.trace("The node type RestProperty has been renamed to RestElement"),(0,i.default)("RestProperty",...e)},t.spreadProperty=function(...e){return console.trace("The node type SpreadProperty has been renamed to SpreadElement"),(0,i.default)("SpreadProperty",...e)};var i=r(9234)},6306:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ArrayExpression",{enumerable:!0,get:function(){return i.arrayExpression}}),Object.defineProperty(t,"AssignmentExpression",{enumerable:!0,get:function(){return i.assignmentExpression}}),Object.defineProperty(t,"BinaryExpression",{enumerable:!0,get:function(){return i.binaryExpression}}),Object.defineProperty(t,"InterpreterDirective",{enumerable:!0,get:function(){return i.interpreterDirective}}),Object.defineProperty(t,"Directive",{enumerable:!0,get:function(){return i.directive}}),Object.defineProperty(t,"DirectiveLiteral",{enumerable:!0,get:function(){return i.directiveLiteral}}),Object.defineProperty(t,"BlockStatement",{enumerable:!0,get:function(){return i.blockStatement}}),Object.defineProperty(t,"BreakStatement",{enumerable:!0,get:function(){return i.breakStatement}}),Object.defineProperty(t,"CallExpression",{enumerable:!0,get:function(){return i.callExpression}}),Object.defineProperty(t,"CatchClause",{enumerable:!0,get:function(){return i.catchClause}}),Object.defineProperty(t,"ConditionalExpression",{enumerable:!0,get:function(){return i.conditionalExpression}}),Object.defineProperty(t,"ContinueStatement",{enumerable:!0,get:function(){return i.continueStatement}}),Object.defineProperty(t,"DebuggerStatement",{enumerable:!0,get:function(){return i.debuggerStatement}}),Object.defineProperty(t,"DoWhileStatement",{enumerable:!0,get:function(){return i.doWhileStatement}}),Object.defineProperty(t,"EmptyStatement",{enumerable:!0,get:function(){return i.emptyStatement}}),Object.defineProperty(t,"ExpressionStatement",{enumerable:!0,get:function(){return i.expressionStatement}}),Object.defineProperty(t,"File",{enumerable:!0,get:function(){return i.file}}),Object.defineProperty(t,"ForInStatement",{enumerable:!0,get:function(){return i.forInStatement}}),Object.defineProperty(t,"ForStatement",{enumerable:!0,get:function(){return i.forStatement}}),Object.defineProperty(t,"FunctionDeclaration",{enumerable:!0,get:function(){return i.functionDeclaration}}),Object.defineProperty(t,"FunctionExpression",{enumerable:!0,get:function(){return i.functionExpression}}),Object.defineProperty(t,"Identifier",{enumerable:!0,get:function(){return i.identifier}}),Object.defineProperty(t,"IfStatement",{enumerable:!0,get:function(){return i.ifStatement}}),Object.defineProperty(t,"LabeledStatement",{enumerable:!0,get:function(){return i.labeledStatement}}),Object.defineProperty(t,"StringLiteral",{enumerable:!0,get:function(){return i.stringLiteral}}),Object.defineProperty(t,"NumericLiteral",{enumerable:!0,get:function(){return i.numericLiteral}}),Object.defineProperty(t,"NullLiteral",{enumerable:!0,get:function(){return i.nullLiteral}}),Object.defineProperty(t,"BooleanLiteral",{enumerable:!0,get:function(){return i.booleanLiteral}}),Object.defineProperty(t,"RegExpLiteral",{enumerable:!0,get:function(){return i.regExpLiteral}}),Object.defineProperty(t,"LogicalExpression",{enumerable:!0,get:function(){return i.logicalExpression}}),Object.defineProperty(t,"MemberExpression",{enumerable:!0,get:function(){return i.memberExpression}}),Object.defineProperty(t,"NewExpression",{enumerable:!0,get:function(){return i.newExpression}}),Object.defineProperty(t,"Program",{enumerable:!0,get:function(){return i.program}}),Object.defineProperty(t,"ObjectExpression",{enumerable:!0,get:function(){return i.objectExpression}}),Object.defineProperty(t,"ObjectMethod",{enumerable:!0,get:function(){return i.objectMethod}}),Object.defineProperty(t,"ObjectProperty",{enumerable:!0,get:function(){return i.objectProperty}}),Object.defineProperty(t,"RestElement",{enumerable:!0,get:function(){return i.restElement}}),Object.defineProperty(t,"ReturnStatement",{enumerable:!0,get:function(){return i.returnStatement}}),Object.defineProperty(t,"SequenceExpression",{enumerable:!0,get:function(){return i.sequenceExpression}}),Object.defineProperty(t,"ParenthesizedExpression",{enumerable:!0,get:function(){return i.parenthesizedExpression}}),Object.defineProperty(t,"SwitchCase",{enumerable:!0,get:function(){return i.switchCase}}),Object.defineProperty(t,"SwitchStatement",{enumerable:!0,get:function(){return i.switchStatement}}),Object.defineProperty(t,"ThisExpression",{enumerable:!0,get:function(){return i.thisExpression}}),Object.defineProperty(t,"ThrowStatement",{enumerable:!0,get:function(){return i.throwStatement}}),Object.defineProperty(t,"TryStatement",{enumerable:!0,get:function(){return i.tryStatement}}),Object.defineProperty(t,"UnaryExpression",{enumerable:!0,get:function(){return i.unaryExpression}}),Object.defineProperty(t,"UpdateExpression",{enumerable:!0,get:function(){return i.updateExpression}}),Object.defineProperty(t,"VariableDeclaration",{enumerable:!0,get:function(){return i.variableDeclaration}}),Object.defineProperty(t,"VariableDeclarator",{enumerable:!0,get:function(){return i.variableDeclarator}}),Object.defineProperty(t,"WhileStatement",{enumerable:!0,get:function(){return i.whileStatement}}),Object.defineProperty(t,"WithStatement",{enumerable:!0,get:function(){return i.withStatement}}),Object.defineProperty(t,"AssignmentPattern",{enumerable:!0,get:function(){return i.assignmentPattern}}),Object.defineProperty(t,"ArrayPattern",{enumerable:!0,get:function(){return i.arrayPattern}}),Object.defineProperty(t,"ArrowFunctionExpression",{enumerable:!0,get:function(){return i.arrowFunctionExpression}}),Object.defineProperty(t,"ClassBody",{enumerable:!0,get:function(){return i.classBody}}),Object.defineProperty(t,"ClassExpression",{enumerable:!0,get:function(){return i.classExpression}}),Object.defineProperty(t,"ClassDeclaration",{enumerable:!0,get:function(){return i.classDeclaration}}),Object.defineProperty(t,"ExportAllDeclaration",{enumerable:!0,get:function(){return i.exportAllDeclaration}}),Object.defineProperty(t,"ExportDefaultDeclaration",{enumerable:!0,get:function(){return i.exportDefaultDeclaration}}),Object.defineProperty(t,"ExportNamedDeclaration",{enumerable:!0,get:function(){return i.exportNamedDeclaration}}),Object.defineProperty(t,"ExportSpecifier",{enumerable:!0,get:function(){return i.exportSpecifier}}),Object.defineProperty(t,"ForOfStatement",{enumerable:!0,get:function(){return i.forOfStatement}}),Object.defineProperty(t,"ImportDeclaration",{enumerable:!0,get:function(){return i.importDeclaration}}),Object.defineProperty(t,"ImportDefaultSpecifier",{enumerable:!0,get:function(){return i.importDefaultSpecifier}}),Object.defineProperty(t,"ImportNamespaceSpecifier",{enumerable:!0,get:function(){return i.importNamespaceSpecifier}}),Object.defineProperty(t,"ImportSpecifier",{enumerable:!0,get:function(){return i.importSpecifier}}),Object.defineProperty(t,"MetaProperty",{enumerable:!0,get:function(){return i.metaProperty}}),Object.defineProperty(t,"ClassMethod",{enumerable:!0,get:function(){return i.classMethod}}),Object.defineProperty(t,"ObjectPattern",{enumerable:!0,get:function(){return i.objectPattern}}),Object.defineProperty(t,"SpreadElement",{enumerable:!0,get:function(){return i.spreadElement}}),Object.defineProperty(t,"Super",{enumerable:!0,get:function(){return i.super}}),Object.defineProperty(t,"TaggedTemplateExpression",{enumerable:!0,get:function(){return i.taggedTemplateExpression}}),Object.defineProperty(t,"TemplateElement",{enumerable:!0,get:function(){return i.templateElement}}),Object.defineProperty(t,"TemplateLiteral",{enumerable:!0,get:function(){return i.templateLiteral}}),Object.defineProperty(t,"YieldExpression",{enumerable:!0,get:function(){return i.yieldExpression}}),Object.defineProperty(t,"AwaitExpression",{enumerable:!0,get:function(){return i.awaitExpression}}),Object.defineProperty(t,"Import",{enumerable:!0,get:function(){return i.import}}),Object.defineProperty(t,"BigIntLiteral",{enumerable:!0,get:function(){return i.bigIntLiteral}}),Object.defineProperty(t,"ExportNamespaceSpecifier",{enumerable:!0,get:function(){return i.exportNamespaceSpecifier}}),Object.defineProperty(t,"OptionalMemberExpression",{enumerable:!0,get:function(){return i.optionalMemberExpression}}),Object.defineProperty(t,"OptionalCallExpression",{enumerable:!0,get:function(){return i.optionalCallExpression}}),Object.defineProperty(t,"AnyTypeAnnotation",{enumerable:!0,get:function(){return i.anyTypeAnnotation}}),Object.defineProperty(t,"ArrayTypeAnnotation",{enumerable:!0,get:function(){return i.arrayTypeAnnotation}}),Object.defineProperty(t,"BooleanTypeAnnotation",{enumerable:!0,get:function(){return i.booleanTypeAnnotation}}),Object.defineProperty(t,"BooleanLiteralTypeAnnotation",{enumerable:!0,get:function(){return i.booleanLiteralTypeAnnotation}}),Object.defineProperty(t,"NullLiteralTypeAnnotation",{enumerable:!0,get:function(){return i.nullLiteralTypeAnnotation}}),Object.defineProperty(t,"ClassImplements",{enumerable:!0,get:function(){return i.classImplements}}),Object.defineProperty(t,"DeclareClass",{enumerable:!0,get:function(){return i.declareClass}}),Object.defineProperty(t,"DeclareFunction",{enumerable:!0,get:function(){return i.declareFunction}}),Object.defineProperty(t,"DeclareInterface",{enumerable:!0,get:function(){return i.declareInterface}}),Object.defineProperty(t,"DeclareModule",{enumerable:!0,get:function(){return i.declareModule}}),Object.defineProperty(t,"DeclareModuleExports",{enumerable:!0,get:function(){return i.declareModuleExports}}),Object.defineProperty(t,"DeclareTypeAlias",{enumerable:!0,get:function(){return i.declareTypeAlias}}),Object.defineProperty(t,"DeclareOpaqueType",{enumerable:!0,get:function(){return i.declareOpaqueType}}),Object.defineProperty(t,"DeclareVariable",{enumerable:!0,get:function(){return i.declareVariable}}),Object.defineProperty(t,"DeclareExportDeclaration",{enumerable:!0,get:function(){return i.declareExportDeclaration}}),Object.defineProperty(t,"DeclareExportAllDeclaration",{enumerable:!0,get:function(){return i.declareExportAllDeclaration}}),Object.defineProperty(t,"DeclaredPredicate",{enumerable:!0,get:function(){return i.declaredPredicate}}),Object.defineProperty(t,"ExistsTypeAnnotation",{enumerable:!0,get:function(){return i.existsTypeAnnotation}}),Object.defineProperty(t,"FunctionTypeAnnotation",{enumerable:!0,get:function(){return i.functionTypeAnnotation}}),Object.defineProperty(t,"FunctionTypeParam",{enumerable:!0,get:function(){return i.functionTypeParam}}),Object.defineProperty(t,"GenericTypeAnnotation",{enumerable:!0,get:function(){return i.genericTypeAnnotation}}),Object.defineProperty(t,"InferredPredicate",{enumerable:!0,get:function(){return i.inferredPredicate}}),Object.defineProperty(t,"InterfaceExtends",{enumerable:!0,get:function(){return i.interfaceExtends}}),Object.defineProperty(t,"InterfaceDeclaration",{enumerable:!0,get:function(){return i.interfaceDeclaration}}),Object.defineProperty(t,"InterfaceTypeAnnotation",{enumerable:!0,get:function(){return i.interfaceTypeAnnotation}}),Object.defineProperty(t,"IntersectionTypeAnnotation",{enumerable:!0,get:function(){return i.intersectionTypeAnnotation}}),Object.defineProperty(t,"MixedTypeAnnotation",{enumerable:!0,get:function(){return i.mixedTypeAnnotation}}),Object.defineProperty(t,"EmptyTypeAnnotation",{enumerable:!0,get:function(){return i.emptyTypeAnnotation}}),Object.defineProperty(t,"NullableTypeAnnotation",{enumerable:!0,get:function(){return i.nullableTypeAnnotation}}),Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return i.numberLiteralTypeAnnotation}}),Object.defineProperty(t,"NumberTypeAnnotation",{enumerable:!0,get:function(){return i.numberTypeAnnotation}}),Object.defineProperty(t,"ObjectTypeAnnotation",{enumerable:!0,get:function(){return i.objectTypeAnnotation}}),Object.defineProperty(t,"ObjectTypeInternalSlot",{enumerable:!0,get:function(){return i.objectTypeInternalSlot}}),Object.defineProperty(t,"ObjectTypeCallProperty",{enumerable:!0,get:function(){return i.objectTypeCallProperty}}),Object.defineProperty(t,"ObjectTypeIndexer",{enumerable:!0,get:function(){return i.objectTypeIndexer}}),Object.defineProperty(t,"ObjectTypeProperty",{enumerable:!0,get:function(){return i.objectTypeProperty}}),Object.defineProperty(t,"ObjectTypeSpreadProperty",{enumerable:!0,get:function(){return i.objectTypeSpreadProperty}}),Object.defineProperty(t,"OpaqueType",{enumerable:!0,get:function(){return i.opaqueType}}),Object.defineProperty(t,"QualifiedTypeIdentifier",{enumerable:!0,get:function(){return i.qualifiedTypeIdentifier}}),Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return i.stringLiteralTypeAnnotation}}),Object.defineProperty(t,"StringTypeAnnotation",{enumerable:!0,get:function(){return i.stringTypeAnnotation}}),Object.defineProperty(t,"SymbolTypeAnnotation",{enumerable:!0,get:function(){return i.symbolTypeAnnotation}}),Object.defineProperty(t,"ThisTypeAnnotation",{enumerable:!0,get:function(){return i.thisTypeAnnotation}}),Object.defineProperty(t,"TupleTypeAnnotation",{enumerable:!0,get:function(){return i.tupleTypeAnnotation}}),Object.defineProperty(t,"TypeofTypeAnnotation",{enumerable:!0,get:function(){return i.typeofTypeAnnotation}}),Object.defineProperty(t,"TypeAlias",{enumerable:!0,get:function(){return i.typeAlias}}),Object.defineProperty(t,"TypeAnnotation",{enumerable:!0,get:function(){return i.typeAnnotation}}),Object.defineProperty(t,"TypeCastExpression",{enumerable:!0,get:function(){return i.typeCastExpression}}),Object.defineProperty(t,"TypeParameter",{enumerable:!0,get:function(){return i.typeParameter}}),Object.defineProperty(t,"TypeParameterDeclaration",{enumerable:!0,get:function(){return i.typeParameterDeclaration}}),Object.defineProperty(t,"TypeParameterInstantiation",{enumerable:!0,get:function(){return i.typeParameterInstantiation}}),Object.defineProperty(t,"UnionTypeAnnotation",{enumerable:!0,get:function(){return i.unionTypeAnnotation}}),Object.defineProperty(t,"Variance",{enumerable:!0,get:function(){return i.variance}}),Object.defineProperty(t,"VoidTypeAnnotation",{enumerable:!0,get:function(){return i.voidTypeAnnotation}}),Object.defineProperty(t,"EnumDeclaration",{enumerable:!0,get:function(){return i.enumDeclaration}}),Object.defineProperty(t,"EnumBooleanBody",{enumerable:!0,get:function(){return i.enumBooleanBody}}),Object.defineProperty(t,"EnumNumberBody",{enumerable:!0,get:function(){return i.enumNumberBody}}),Object.defineProperty(t,"EnumStringBody",{enumerable:!0,get:function(){return i.enumStringBody}}),Object.defineProperty(t,"EnumSymbolBody",{enumerable:!0,get:function(){return i.enumSymbolBody}}),Object.defineProperty(t,"EnumBooleanMember",{enumerable:!0,get:function(){return i.enumBooleanMember}}),Object.defineProperty(t,"EnumNumberMember",{enumerable:!0,get:function(){return i.enumNumberMember}}),Object.defineProperty(t,"EnumStringMember",{enumerable:!0,get:function(){return i.enumStringMember}}),Object.defineProperty(t,"EnumDefaultedMember",{enumerable:!0,get:function(){return i.enumDefaultedMember}}),Object.defineProperty(t,"IndexedAccessType",{enumerable:!0,get:function(){return i.indexedAccessType}}),Object.defineProperty(t,"OptionalIndexedAccessType",{enumerable:!0,get:function(){return i.optionalIndexedAccessType}}),Object.defineProperty(t,"JSXAttribute",{enumerable:!0,get:function(){return i.jsxAttribute}}),Object.defineProperty(t,"JSXClosingElement",{enumerable:!0,get:function(){return i.jsxClosingElement}}),Object.defineProperty(t,"JSXElement",{enumerable:!0,get:function(){return i.jsxElement}}),Object.defineProperty(t,"JSXEmptyExpression",{enumerable:!0,get:function(){return i.jsxEmptyExpression}}),Object.defineProperty(t,"JSXExpressionContainer",{enumerable:!0,get:function(){return i.jsxExpressionContainer}}),Object.defineProperty(t,"JSXSpreadChild",{enumerable:!0,get:function(){return i.jsxSpreadChild}}),Object.defineProperty(t,"JSXIdentifier",{enumerable:!0,get:function(){return i.jsxIdentifier}}),Object.defineProperty(t,"JSXMemberExpression",{enumerable:!0,get:function(){return i.jsxMemberExpression}}),Object.defineProperty(t,"JSXNamespacedName",{enumerable:!0,get:function(){return i.jsxNamespacedName}}),Object.defineProperty(t,"JSXOpeningElement",{enumerable:!0,get:function(){return i.jsxOpeningElement}}),Object.defineProperty(t,"JSXSpreadAttribute",{enumerable:!0,get:function(){return i.jsxSpreadAttribute}}),Object.defineProperty(t,"JSXText",{enumerable:!0,get:function(){return i.jsxText}}),Object.defineProperty(t,"JSXFragment",{enumerable:!0,get:function(){return i.jsxFragment}}),Object.defineProperty(t,"JSXOpeningFragment",{enumerable:!0,get:function(){return i.jsxOpeningFragment}}),Object.defineProperty(t,"JSXClosingFragment",{enumerable:!0,get:function(){return i.jsxClosingFragment}}),Object.defineProperty(t,"Noop",{enumerable:!0,get:function(){return i.noop}}),Object.defineProperty(t,"Placeholder",{enumerable:!0,get:function(){return i.placeholder}}),Object.defineProperty(t,"V8IntrinsicIdentifier",{enumerable:!0,get:function(){return i.v8IntrinsicIdentifier}}),Object.defineProperty(t,"ArgumentPlaceholder",{enumerable:!0,get:function(){return i.argumentPlaceholder}}),Object.defineProperty(t,"BindExpression",{enumerable:!0,get:function(){return i.bindExpression}}),Object.defineProperty(t,"ClassProperty",{enumerable:!0,get:function(){return i.classProperty}}),Object.defineProperty(t,"PipelineTopicExpression",{enumerable:!0,get:function(){return i.pipelineTopicExpression}}),Object.defineProperty(t,"PipelineBareFunction",{enumerable:!0,get:function(){return i.pipelineBareFunction}}),Object.defineProperty(t,"PipelinePrimaryTopicReference",{enumerable:!0,get:function(){return i.pipelinePrimaryTopicReference}}),Object.defineProperty(t,"ClassPrivateProperty",{enumerable:!0,get:function(){return i.classPrivateProperty}}),Object.defineProperty(t,"ClassPrivateMethod",{enumerable:!0,get:function(){return i.classPrivateMethod}}),Object.defineProperty(t,"ImportAttribute",{enumerable:!0,get:function(){return i.importAttribute}}),Object.defineProperty(t,"Decorator",{enumerable:!0,get:function(){return i.decorator}}),Object.defineProperty(t,"DoExpression",{enumerable:!0,get:function(){return i.doExpression}}),Object.defineProperty(t,"ExportDefaultSpecifier",{enumerable:!0,get:function(){return i.exportDefaultSpecifier}}),Object.defineProperty(t,"PrivateName",{enumerable:!0,get:function(){return i.privateName}}),Object.defineProperty(t,"RecordExpression",{enumerable:!0,get:function(){return i.recordExpression}}),Object.defineProperty(t,"TupleExpression",{enumerable:!0,get:function(){return i.tupleExpression}}),Object.defineProperty(t,"DecimalLiteral",{enumerable:!0,get:function(){return i.decimalLiteral}}),Object.defineProperty(t,"StaticBlock",{enumerable:!0,get:function(){return i.staticBlock}}),Object.defineProperty(t,"ModuleExpression",{enumerable:!0,get:function(){return i.moduleExpression}}),Object.defineProperty(t,"TSParameterProperty",{enumerable:!0,get:function(){return i.tsParameterProperty}}),Object.defineProperty(t,"TSDeclareFunction",{enumerable:!0,get:function(){return i.tsDeclareFunction}}),Object.defineProperty(t,"TSDeclareMethod",{enumerable:!0,get:function(){return i.tsDeclareMethod}}),Object.defineProperty(t,"TSQualifiedName",{enumerable:!0,get:function(){return i.tsQualifiedName}}),Object.defineProperty(t,"TSCallSignatureDeclaration",{enumerable:!0,get:function(){return i.tsCallSignatureDeclaration}}),Object.defineProperty(t,"TSConstructSignatureDeclaration",{enumerable:!0,get:function(){return i.tsConstructSignatureDeclaration}}),Object.defineProperty(t,"TSPropertySignature",{enumerable:!0,get:function(){return i.tsPropertySignature}}),Object.defineProperty(t,"TSMethodSignature",{enumerable:!0,get:function(){return i.tsMethodSignature}}),Object.defineProperty(t,"TSIndexSignature",{enumerable:!0,get:function(){return i.tsIndexSignature}}),Object.defineProperty(t,"TSAnyKeyword",{enumerable:!0,get:function(){return i.tsAnyKeyword}}),Object.defineProperty(t,"TSBooleanKeyword",{enumerable:!0,get:function(){return i.tsBooleanKeyword}}),Object.defineProperty(t,"TSBigIntKeyword",{enumerable:!0,get:function(){return i.tsBigIntKeyword}}),Object.defineProperty(t,"TSIntrinsicKeyword",{enumerable:!0,get:function(){return i.tsIntrinsicKeyword}}),Object.defineProperty(t,"TSNeverKeyword",{enumerable:!0,get:function(){return i.tsNeverKeyword}}),Object.defineProperty(t,"TSNullKeyword",{enumerable:!0,get:function(){return i.tsNullKeyword}}),Object.defineProperty(t,"TSNumberKeyword",{enumerable:!0,get:function(){return i.tsNumberKeyword}}),Object.defineProperty(t,"TSObjectKeyword",{enumerable:!0,get:function(){return i.tsObjectKeyword}}),Object.defineProperty(t,"TSStringKeyword",{enumerable:!0,get:function(){return i.tsStringKeyword}}),Object.defineProperty(t,"TSSymbolKeyword",{enumerable:!0,get:function(){return i.tsSymbolKeyword}}),Object.defineProperty(t,"TSUndefinedKeyword",{enumerable:!0,get:function(){return i.tsUndefinedKeyword}}),Object.defineProperty(t,"TSUnknownKeyword",{enumerable:!0,get:function(){return i.tsUnknownKeyword}}),Object.defineProperty(t,"TSVoidKeyword",{enumerable:!0,get:function(){return i.tsVoidKeyword}}),Object.defineProperty(t,"TSThisType",{enumerable:!0,get:function(){return i.tsThisType}}),Object.defineProperty(t,"TSFunctionType",{enumerable:!0,get:function(){return i.tsFunctionType}}),Object.defineProperty(t,"TSConstructorType",{enumerable:!0,get:function(){return i.tsConstructorType}}),Object.defineProperty(t,"TSTypeReference",{enumerable:!0,get:function(){return i.tsTypeReference}}),Object.defineProperty(t,"TSTypePredicate",{enumerable:!0,get:function(){return i.tsTypePredicate}}),Object.defineProperty(t,"TSTypeQuery",{enumerable:!0,get:function(){return i.tsTypeQuery}}),Object.defineProperty(t,"TSTypeLiteral",{enumerable:!0,get:function(){return i.tsTypeLiteral}}),Object.defineProperty(t,"TSArrayType",{enumerable:!0,get:function(){return i.tsArrayType}}),Object.defineProperty(t,"TSTupleType",{enumerable:!0,get:function(){return i.tsTupleType}}),Object.defineProperty(t,"TSOptionalType",{enumerable:!0,get:function(){return i.tsOptionalType}}),Object.defineProperty(t,"TSRestType",{enumerable:!0,get:function(){return i.tsRestType}}),Object.defineProperty(t,"TSNamedTupleMember",{enumerable:!0,get:function(){return i.tsNamedTupleMember}}),Object.defineProperty(t,"TSUnionType",{enumerable:!0,get:function(){return i.tsUnionType}}),Object.defineProperty(t,"TSIntersectionType",{enumerable:!0,get:function(){return i.tsIntersectionType}}),Object.defineProperty(t,"TSConditionalType",{enumerable:!0,get:function(){return i.tsConditionalType}}),Object.defineProperty(t,"TSInferType",{enumerable:!0,get:function(){return i.tsInferType}}),Object.defineProperty(t,"TSParenthesizedType",{enumerable:!0,get:function(){return i.tsParenthesizedType}}),Object.defineProperty(t,"TSTypeOperator",{enumerable:!0,get:function(){return i.tsTypeOperator}}),Object.defineProperty(t,"TSIndexedAccessType",{enumerable:!0,get:function(){return i.tsIndexedAccessType}}),Object.defineProperty(t,"TSMappedType",{enumerable:!0,get:function(){return i.tsMappedType}}),Object.defineProperty(t,"TSLiteralType",{enumerable:!0,get:function(){return i.tsLiteralType}}),Object.defineProperty(t,"TSExpressionWithTypeArguments",{enumerable:!0,get:function(){return i.tsExpressionWithTypeArguments}}),Object.defineProperty(t,"TSInterfaceDeclaration",{enumerable:!0,get:function(){return i.tsInterfaceDeclaration}}),Object.defineProperty(t,"TSInterfaceBody",{enumerable:!0,get:function(){return i.tsInterfaceBody}}),Object.defineProperty(t,"TSTypeAliasDeclaration",{enumerable:!0,get:function(){return i.tsTypeAliasDeclaration}}),Object.defineProperty(t,"TSAsExpression",{enumerable:!0,get:function(){return i.tsAsExpression}}),Object.defineProperty(t,"TSTypeAssertion",{enumerable:!0,get:function(){return i.tsTypeAssertion}}),Object.defineProperty(t,"TSEnumDeclaration",{enumerable:!0,get:function(){return i.tsEnumDeclaration}}),Object.defineProperty(t,"TSEnumMember",{enumerable:!0,get:function(){return i.tsEnumMember}}),Object.defineProperty(t,"TSModuleDeclaration",{enumerable:!0,get:function(){return i.tsModuleDeclaration}}),Object.defineProperty(t,"TSModuleBlock",{enumerable:!0,get:function(){return i.tsModuleBlock}}),Object.defineProperty(t,"TSImportType",{enumerable:!0,get:function(){return i.tsImportType}}),Object.defineProperty(t,"TSImportEqualsDeclaration",{enumerable:!0,get:function(){return i.tsImportEqualsDeclaration}}),Object.defineProperty(t,"TSExternalModuleReference",{enumerable:!0,get:function(){return i.tsExternalModuleReference}}),Object.defineProperty(t,"TSNonNullExpression",{enumerable:!0,get:function(){return i.tsNonNullExpression}}),Object.defineProperty(t,"TSExportAssignment",{enumerable:!0,get:function(){return i.tsExportAssignment}}),Object.defineProperty(t,"TSNamespaceExportDeclaration",{enumerable:!0,get:function(){return i.tsNamespaceExportDeclaration}}),Object.defineProperty(t,"TSTypeAnnotation",{enumerable:!0,get:function(){return i.tsTypeAnnotation}}),Object.defineProperty(t,"TSTypeParameterInstantiation",{enumerable:!0,get:function(){return i.tsTypeParameterInstantiation}}),Object.defineProperty(t,"TSTypeParameterDeclaration",{enumerable:!0,get:function(){return i.tsTypeParameterDeclaration}}),Object.defineProperty(t,"TSTypeParameter",{enumerable:!0,get:function(){return i.tsTypeParameter}}),Object.defineProperty(t,"NumberLiteral",{enumerable:!0,get:function(){return i.numberLiteral}}),Object.defineProperty(t,"RegexLiteral",{enumerable:!0,get:function(){return i.regexLiteral}}),Object.defineProperty(t,"RestProperty",{enumerable:!0,get:function(){return i.restProperty}}),Object.defineProperty(t,"SpreadProperty",{enumerable:!0,get:function(){return i.spreadProperty}});var i=r(1580)},478:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[];for(let r=0;r<e.children.length;r++){let s=e.children[r];(0,i.isJSXText)(s)?(0,n.default)(s,t):((0,i.isJSXExpressionContainer)(s)&&(s=s.expression),(0,i.isJSXEmptyExpression)(s)||t.push(s))}return t};var i=r(3924),n=r(5908)},6998:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.map((e=>e.typeAnnotation)),r=(0,n.default)(t);return 1===r.length?r[0]:(0,i.tsUnionType)(r)};var i=r(1580),n=r(7921)},7307:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e,!1)};var i=r(5833)},175:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e)};var i=r(5833)},4982:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e,!0,!0)};var i=r(5833)},5833:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=cloneNode;var i=r(1102),n=r(3924);const s=Function.call.bind(Object.prototype.hasOwnProperty);function cloneIfNode(e,t,r){return e&&"string"==typeof e.type?cloneNode(e,t,r):e}function cloneIfNodeOrArray(e,t,r){return Array.isArray(e)?e.map((e=>cloneIfNode(e,t,r))):cloneIfNode(e,t,r)}function cloneNode(e,t=!0,r=!1){if(!e)return e;const{type:a}=e,o={type:e.type};if((0,n.isIdentifier)(e))o.name=e.name,s(e,"optional")&&"boolean"==typeof e.optional&&(o.optional=e.optional),s(e,"typeAnnotation")&&(o.typeAnnotation=t?cloneIfNodeOrArray(e.typeAnnotation,!0,r):e.typeAnnotation);else{if(!s(i.NODE_FIELDS,a))throw new Error(`Unknown node type: "${a}"`);for(const l of Object.keys(i.NODE_FIELDS[a]))s(e,l)&&(o[l]=t?(0,n.isFile)(e)&&"comments"===l?maybeCloneComments(e.comments,t,r):cloneIfNodeOrArray(e[l],!0,r):e[l])}return s(e,"loc")&&(o.loc=r?null:e.loc),s(e,"leadingComments")&&(o.leadingComments=maybeCloneComments(e.leadingComments,t,r)),s(e,"innerComments")&&(o.innerComments=maybeCloneComments(e.innerComments,t,r)),s(e,"trailingComments")&&(o.trailingComments=maybeCloneComments(e.trailingComments,t,r)),s(e,"extra")&&(o.extra=Object.assign({},e.extra)),o}function maybeCloneComments(e,t,r){return e&&t?e.map((({type:e,value:t,loc:i})=>r?{type:e,value:t,loc:null}:{type:e,value:t,loc:i})):e}},8743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e,!1,!0)};var i=r(5833)},6517:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n){return(0,i.default)(e,t,[{type:n?"CommentLine":"CommentBlock",value:r}])};var i=r(8290)},8290:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!r||!e)return e;const i=`${t}Comments`;e[i]?e[i]="leading"===t?r.concat(e[i]):e[i].concat(r):e[i]=r;return e}},8267:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)("innerComments",e,t)};var i=r(3746)},4510:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)("leadingComments",e,t)};var i=r(3746)},5042:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)("trailingComments",e,t)};var i=r(3746)},5644:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,i.default)(e,t),(0,n.default)(e,t),(0,s.default)(e,t),e};var i=r(5042),n=r(4510),s=r(8267)},6528:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return i.COMMENT_KEYS.forEach((t=>{e[t]=null})),e};var i=r(2770)},55:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TSBASETYPE_TYPES=t.TSTYPE_TYPES=t.TSTYPEELEMENT_TYPES=t.PRIVATE_TYPES=t.JSX_TYPES=t.ENUMMEMBER_TYPES=t.ENUMBODY_TYPES=t.FLOWPREDICATE_TYPES=t.FLOWDECLARATION_TYPES=t.FLOWBASEANNOTATION_TYPES=t.FLOWTYPE_TYPES=t.FLOW_TYPES=t.MODULESPECIFIER_TYPES=t.EXPORTDECLARATION_TYPES=t.MODULEDECLARATION_TYPES=t.CLASS_TYPES=t.PATTERN_TYPES=t.UNARYLIKE_TYPES=t.PROPERTY_TYPES=t.OBJECTMEMBER_TYPES=t.METHOD_TYPES=t.USERWHITESPACABLE_TYPES=t.IMMUTABLE_TYPES=t.LITERAL_TYPES=t.TSENTITYNAME_TYPES=t.LVAL_TYPES=t.PATTERNLIKE_TYPES=t.DECLARATION_TYPES=t.PUREISH_TYPES=t.FUNCTIONPARENT_TYPES=t.FUNCTION_TYPES=t.FORXSTATEMENT_TYPES=t.FOR_TYPES=t.EXPRESSIONWRAPPER_TYPES=t.WHILE_TYPES=t.LOOP_TYPES=t.CONDITIONAL_TYPES=t.COMPLETIONSTATEMENT_TYPES=t.TERMINATORLESS_TYPES=t.STATEMENT_TYPES=t.BLOCK_TYPES=t.BLOCKPARENT_TYPES=t.SCOPABLE_TYPES=t.BINARY_TYPES=t.EXPRESSION_TYPES=void 0;var i=r(1102);const n=i.FLIPPED_ALIAS_KEYS.Expression;t.EXPRESSION_TYPES=n;const s=i.FLIPPED_ALIAS_KEYS.Binary;t.BINARY_TYPES=s;const a=i.FLIPPED_ALIAS_KEYS.Scopable;t.SCOPABLE_TYPES=a;const o=i.FLIPPED_ALIAS_KEYS.BlockParent;t.BLOCKPARENT_TYPES=o;const l=i.FLIPPED_ALIAS_KEYS.Block;t.BLOCK_TYPES=l;const c=i.FLIPPED_ALIAS_KEYS.Statement;t.STATEMENT_TYPES=c;const u=i.FLIPPED_ALIAS_KEYS.Terminatorless;t.TERMINATORLESS_TYPES=u;const p=i.FLIPPED_ALIAS_KEYS.CompletionStatement;t.COMPLETIONSTATEMENT_TYPES=p;const d=i.FLIPPED_ALIAS_KEYS.Conditional;t.CONDITIONAL_TYPES=d;const h=i.FLIPPED_ALIAS_KEYS.Loop;t.LOOP_TYPES=h;const f=i.FLIPPED_ALIAS_KEYS.While;t.WHILE_TYPES=f;const m=i.FLIPPED_ALIAS_KEYS.ExpressionWrapper;t.EXPRESSIONWRAPPER_TYPES=m;const y=i.FLIPPED_ALIAS_KEYS.For;t.FOR_TYPES=y;const T=i.FLIPPED_ALIAS_KEYS.ForXStatement;t.FORXSTATEMENT_TYPES=T;const g=i.FLIPPED_ALIAS_KEYS.Function;t.FUNCTION_TYPES=g;const b=i.FLIPPED_ALIAS_KEYS.FunctionParent;t.FUNCTIONPARENT_TYPES=b;const S=i.FLIPPED_ALIAS_KEYS.Pureish;t.PUREISH_TYPES=S;const x=i.FLIPPED_ALIAS_KEYS.Declaration;t.DECLARATION_TYPES=x;const P=i.FLIPPED_ALIAS_KEYS.PatternLike;t.PATTERNLIKE_TYPES=P;const v=i.FLIPPED_ALIAS_KEYS.LVal;t.LVAL_TYPES=v;const A=i.FLIPPED_ALIAS_KEYS.TSEntityName;t.TSENTITYNAME_TYPES=A;const w=i.FLIPPED_ALIAS_KEYS.Literal;t.LITERAL_TYPES=w;const I=i.FLIPPED_ALIAS_KEYS.Immutable;t.IMMUTABLE_TYPES=I;const C=i.FLIPPED_ALIAS_KEYS.UserWhitespacable;t.USERWHITESPACABLE_TYPES=C;const O=i.FLIPPED_ALIAS_KEYS.Method;t.METHOD_TYPES=O;const N=i.FLIPPED_ALIAS_KEYS.ObjectMember;t.OBJECTMEMBER_TYPES=N;const _=i.FLIPPED_ALIAS_KEYS.Property;t.PROPERTY_TYPES=_;const k=i.FLIPPED_ALIAS_KEYS.UnaryLike;t.UNARYLIKE_TYPES=k;const D=i.FLIPPED_ALIAS_KEYS.Pattern;t.PATTERN_TYPES=D;const L=i.FLIPPED_ALIAS_KEYS.Class;t.CLASS_TYPES=L;const M=i.FLIPPED_ALIAS_KEYS.ModuleDeclaration;t.MODULEDECLARATION_TYPES=M;const B=i.FLIPPED_ALIAS_KEYS.ExportDeclaration;t.EXPORTDECLARATION_TYPES=B;const j=i.FLIPPED_ALIAS_KEYS.ModuleSpecifier;t.MODULESPECIFIER_TYPES=j;const R=i.FLIPPED_ALIAS_KEYS.Flow;t.FLOW_TYPES=R;const F=i.FLIPPED_ALIAS_KEYS.FlowType;t.FLOWTYPE_TYPES=F;const U=i.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation;t.FLOWBASEANNOTATION_TYPES=U;const K=i.FLIPPED_ALIAS_KEYS.FlowDeclaration;t.FLOWDECLARATION_TYPES=K;const q=i.FLIPPED_ALIAS_KEYS.FlowPredicate;t.FLOWPREDICATE_TYPES=q;const V=i.FLIPPED_ALIAS_KEYS.EnumBody;t.ENUMBODY_TYPES=V;const W=i.FLIPPED_ALIAS_KEYS.EnumMember;t.ENUMMEMBER_TYPES=W;const Y=i.FLIPPED_ALIAS_KEYS.JSX;t.JSX_TYPES=Y;const X=i.FLIPPED_ALIAS_KEYS.Private;t.PRIVATE_TYPES=X;const J=i.FLIPPED_ALIAS_KEYS.TSTypeElement;t.TSTYPEELEMENT_TYPES=J;const H=i.FLIPPED_ALIAS_KEYS.TSType;t.TSTYPE_TYPES=H;const G=i.FLIPPED_ALIAS_KEYS.TSBaseType;t.TSBASETYPE_TYPES=G},2770:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NOT_LOCAL_BINDING=t.BLOCK_SCOPED_SYMBOL=t.INHERIT_KEYS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.NUMBER_UNARY_OPERATORS=t.BOOLEAN_UNARY_OPERATORS=t.ASSIGNMENT_OPERATORS=t.BINARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.EQUALITY_BINARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.UPDATE_OPERATORS=t.LOGICAL_OPERATORS=t.COMMENT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.STATEMENT_OR_BLOCK_KEYS=void 0;t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"];t.FLATTENABLE_KEYS=["body","expressions"];t.FOR_INIT_KEYS=["left","init"];t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const r=["||","&&","??"];t.LOGICAL_OPERATORS=r;t.UPDATE_OPERATORS=["++","--"];const i=[">","<",">=","<="];t.BOOLEAN_NUMBER_BINARY_OPERATORS=i;const n=["==","===","!=","!=="];t.EQUALITY_BINARY_OPERATORS=n;const s=[...n,"in","instanceof"];t.COMPARISON_BINARY_OPERATORS=s;const a=[...s,...i];t.BOOLEAN_BINARY_OPERATORS=a;const o=["-","/","%","*","**","&","|",">>",">>>","<<","^"];t.NUMBER_BINARY_OPERATORS=o;const l=["+",...o,...a];t.BINARY_OPERATORS=l;const c=["=","+=",...o.map((e=>e+"=")),...r.map((e=>e+"="))];t.ASSIGNMENT_OPERATORS=c;const u=["delete","!"];t.BOOLEAN_UNARY_OPERATORS=u;const p=["+","-","~"];t.NUMBER_UNARY_OPERATORS=p;const d=["typeof"];t.STRING_UNARY_OPERATORS=d;const h=["void","throw",...u,...p,...d];t.UNARY_OPERATORS=h;t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};const f=Symbol.for("var used to be block scoped");t.BLOCK_SCOPED_SYMBOL=f;const m=Symbol.for("should not be considered a local binding");t.NOT_LOCAL_BINDING=m},9176:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t="body"){return e[t]=(0,i.default)(e[t],e)};var i=r(2860)},8467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function gatherSequenceExpressions(e,t,r){const o=[];let l=!0;for(const c of e)if((0,n.isEmptyStatement)(c)||(l=!1),(0,n.isExpression)(c))o.push(c);else if((0,n.isExpressionStatement)(c))o.push(c.expression);else if((0,n.isVariableDeclaration)(c)){if("var"!==c.kind)return;for(const e of c.declarations){const t=(0,i.default)(e);for(const e of Object.keys(t))r.push({kind:c.kind,id:(0,a.default)(t[e])});e.init&&o.push((0,s.assignmentExpression)("=",e.id,e.init))}l=!0}else if((0,n.isIfStatement)(c)){const e=c.consequent?gatherSequenceExpressions([c.consequent],t,r):t.buildUndefinedNode(),i=c.alternate?gatherSequenceExpressions([c.alternate],t,r):t.buildUndefinedNode();if(!e||!i)return;o.push((0,s.conditionalExpression)(c.test,e,i))}else if((0,n.isBlockStatement)(c)){const e=gatherSequenceExpressions(c.body,t,r);if(!e)return;o.push(e)}else{if(!(0,n.isEmptyStatement)(c))return;0===e.indexOf(c)&&(l=!0)}l&&o.push(t.buildUndefinedNode());return 1===o.length?o[0]:(0,s.sequenceExpression)(o)};var i=r(5337),n=r(3924),s=r(1580),a=r(5833)},7919:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"eval"!==(e=(0,i.default)(e))&&"arguments"!==e||(e="_"+e);return e};var i=r(7718)},2860:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.isBlockStatement)(e))return e;let r=[];(0,i.isEmptyStatement)(e)?r=[]:((0,i.isStatement)(e)||(e=(0,i.isFunction)(t)?(0,n.returnStatement)(e):(0,n.expressionStatement)(e)),r=[e]);return(0,n.blockStatement)(r)};var i=r(3924),n=r(1580)},6e3:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=e.key||e.property){!e.computed&&(0,i.isIdentifier)(t)&&(t=(0,n.stringLiteral)(t.name));return t};var i=r(3924),n=r(1580)},1796:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(3924),_default=function(e){(0,i.isExpressionStatement)(e)&&(e=e.expression);if((0,i.isExpression)(e))return e;(0,i.isClass)(e)?e.type="ClassExpression":(0,i.isFunction)(e)&&(e.type="FunctionExpression");if(!(0,i.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e};t.default=_default},7718:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e+="";let t="";for(const r of e)t+=(0,n.isIdentifierChar)(r.codePointAt(0))?r:"-";t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""})),(0,i.default)(t)||(t=`_${t}`);return t||"_"};var i=r(6335),n=r(7075)},3240:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=toKeyAlias;var i=r(3924),n=r(5833),s=r(2271);function toKeyAlias(e,t=e.key){let r;return"method"===e.kind?toKeyAlias.increment()+"":(r=(0,i.isIdentifier)(t)?t.name:(0,i.isStringLiteral)(t)?JSON.stringify(t.value):JSON.stringify((0,s.default)((0,n.default)(t))),e.computed&&(r=`[${r}]`),e.static&&(r=`static:${r}`),r)}toKeyAlias.uid=0,toKeyAlias.increment=function(){return toKeyAlias.uid>=Number.MAX_SAFE_INTEGER?toKeyAlias.uid=0:toKeyAlias.uid++}},4868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e||!e.length)return;const r=[],n=(0,i.default)(e,t,r);if(!n)return;for(const e of r)t.push(e);return n};var i=r(8467)},874:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(3924),n=r(1580),_default=function(e,t){if((0,i.isStatement)(e))return e;let r,s=!1;if((0,i.isClass)(e))s=!0,r="ClassDeclaration";else if((0,i.isFunction)(e))s=!0,r="FunctionDeclaration";else if((0,i.isAssignmentExpression)(e))return(0,n.expressionStatement)(e);s&&!e.id&&(r=!1);if(!r){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=r,e};t.default=_default},1799:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(6335),n=r(1580),s=function valueToNode(e){if(void 0===e)return(0,n.identifier)("undefined");if(!0===e||!1===e)return(0,n.booleanLiteral)(e);if(null===e)return(0,n.nullLiteral)();if("string"==typeof e)return(0,n.stringLiteral)(e);if("number"==typeof e){let t;if(Number.isFinite(e))t=(0,n.numericLiteral)(Math.abs(e));else{let r;r=Number.isNaN(e)?(0,n.numericLiteral)(0):(0,n.numericLiteral)(1),t=(0,n.binaryExpression)("/",r,(0,n.numericLiteral)(0))}return(e<0||Object.is(e,-0))&&(t=(0,n.unaryExpression)("-",t)),t}if(function(e){return"[object RegExp]"===a(e)}(e)){const t=e.source,r=e.toString().match(/\\/([a-z]+|)$/)[1];return(0,n.regExpLiteral)(t,r)}if(Array.isArray(e))return(0,n.arrayExpression)(e.map(valueToNode));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)}(e)){const t=[];for(const r of Object.keys(e)){let s;s=(0,i.default)(r)?(0,n.identifier)(r):(0,n.stringLiteral)(r),t.push((0,n.objectProperty)(s,valueToNode(e[r])))}return(0,n.objectExpression)(t)}throw new Error("don\'t know how to turn this value into a node")};t.default=s;const a=Function.call.bind(Object.prototype.toString)},9357:(e,t,r)=>{"use strict";var i=r(397);Object.defineProperty(t,"__esModule",{value:!0}),t.classMethodOrDeclareMethodCommon=t.classMethodOrPropertyCommon=t.patternLikeCommon=t.functionDeclarationCommon=t.functionTypeAnnotationCommon=t.functionCommon=void 0;var n=r(5001),s=r(6335),a=r(7075),o=r(2770),l=r(5455);(0,l.default)("ArrayExpression",{fields:{elements:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeOrValueType)("null","Expression","SpreadElement"))),default:i.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),(0,l.default)("AssignmentExpression",{fields:{operator:{validate:function(){if(!i.env.BABEL_TYPES_8_BREAKING)return(0,l.assertValueType)("string");const e=(0,l.assertOneOf)(...o.ASSIGNMENT_OPERATORS),t=(0,l.assertOneOf)("=");return function(r,i,s){((0,n.default)("Pattern",r.left)?t:e)(r,i,s)}}()},left:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern"):(0,l.assertNodeType)("LVal")},right:{validate:(0,l.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),(0,l.default)("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,l.assertOneOf)(...o.BINARY_OPERATORS)},left:{validate:function(){const e=(0,l.assertNodeType)("Expression"),t=(0,l.assertNodeType)("Expression","PrivateName"),validator=function(r,i,n){("in"===r.operator?t:e)(r,i,n)};return validator.oneOfNodeTypes=["Expression","PrivateName"],validator}()},right:{validate:(0,l.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),(0,l.default)("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}}}),(0,l.default)("Directive",{visitor:["value"],fields:{value:{validate:(0,l.assertNodeType)("DirectiveLiteral")}}}),(0,l.default)("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}}}),(0,l.default)("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Directive"))),default:[]},body:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block","Statement"]}),(0,l.default)("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,l.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),(0,l.default)("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,l.assertNodeType)("Expression","V8IntrinsicIdentifier")},arguments:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Expression","SpreadElement","JSXNamespacedName","ArgumentPlaceholder")))}},i.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,l.assertOneOf)(!0,!1),optional:!0}},{typeArguments:{validate:(0,l.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),(0,l.default)("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,l.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),(0,l.default)("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},consequent:{validate:(0,l.assertNodeType)("Expression")},alternate:{validate:(0,l.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),(0,l.default)("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,l.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),(0,l.default)("DebuggerStatement",{aliases:["Statement"]}),(0,l.default)("DoWhileStatement",{visitor:["test","body"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),(0,l.default)("EmptyStatement",{aliases:["Statement"]}),(0,l.default)("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,l.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),(0,l.default)("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,l.assertNodeType)("Program")},comments:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.assertEach)((0,l.assertNodeType)("CommentBlock","CommentLine")):Object.assign((()=>{}),{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,l.assertEach)(Object.assign((()=>{}),{type:"any"})),optional:!0}}}),(0,l.default)("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern"):(0,l.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}}),(0,l.default)("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,l.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,l.assertNodeType)("Expression"),optional:!0},update:{validate:(0,l.assertNodeType)("Expression"),optional:!0},body:{validate:(0,l.assertNodeType)("Statement")}}});const c={params:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Identifier","Pattern","RestElement","TSParameterProperty")))},generator:{default:!1},async:{default:!1}};t.functionCommon=c;const u={returnType:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}};t.functionTypeAnnotationCommon=u;const p=Object.assign({},c,{declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0}});t.functionDeclarationCommon=p,(0,l.default)("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","params","body","returnType","typeParameters"],fields:Object.assign({},p,u,{body:{validate:(0,l.assertNodeType)("BlockStatement")}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:function(){if(!i.env.BABEL_TYPES_8_BREAKING)return()=>{};const e=(0,l.assertNodeType)("Identifier");return function(t,r,i){(0,n.default)("ExportDefaultDeclaration",t)||e(i,"id",i.id)}}()}),(0,l.default)("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},c,u,{id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,l.assertNodeType)("BlockStatement")}})});const d={typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator")))}};t.patternLikeCommon=d,(0,l.default)("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},d,{name:{validate:(0,l.chain)((0,l.assertValueType)("string"),Object.assign((function(e,t,r){if(i.env.BABEL_TYPES_8_BREAKING&&!(0,s.default)(r,!1))throw new TypeError(`"${r}" is not a valid identifier name`)}),{type:"string"}))},optional:{validate:(0,l.assertValueType)("boolean"),optional:!0}}),validate(e,t,r){if(!i.env.BABEL_TYPES_8_BREAKING)return;const s=/\\.(\\w+)$/.exec(t);if(!s)return;const[,o]=s,l={computed:!1};if("property"===o){if((0,n.default)("MemberExpression",e,l))return;if((0,n.default)("OptionalMemberExpression",e,l))return}else if("key"===o){if((0,n.default)("Property",e,l))return;if((0,n.default)("Method",e,l))return}else if("exported"===o){if((0,n.default)("ExportSpecifier",e))return}else if("imported"===o){if((0,n.default)("ImportSpecifier",e,{imported:r}))return}else if("meta"===o&&(0,n.default)("MetaProperty",e,{meta:r}))return;if(((0,a.isKeyword)(r.name)||(0,a.isReservedWord)(r.name,!1))&&"this"!==r.name)throw new TypeError(`"${r.name}" is not a valid identifier`)}}),(0,l.default)("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},consequent:{validate:(0,l.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,l.assertNodeType)("Statement")}}}),(0,l.default)("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,l.assertNodeType)("Identifier")},body:{validate:(0,l.assertNodeType)("Statement")}}}),(0,l.default)("StringLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,l.assertValueType)("number")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,l.assertValueType)("string")},flags:{validate:(0,l.chain)((0,l.assertValueType)("string"),Object.assign((function(e,t,r){if(!i.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:""}}}),(0,l.default)("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,l.assertOneOf)(...o.LOGICAL_OPERATORS)},left:{validate:(0,l.assertNodeType)("Expression")},right:{validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("MemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:(0,l.assertNodeType)("Expression")},property:{validate:function(){const e=(0,l.assertNodeType)("Identifier","PrivateName"),t=(0,l.assertNodeType)("Expression"),validator=function(r,i,n){(r.computed?t:e)(r,i,n)};return validator.oneOfNodeTypes=["Expression","Identifier","PrivateName"],validator}()},computed:{default:!1}},i.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,l.assertOneOf)(!0,!1),optional:!0}})}),(0,l.default)("NewExpression",{inherits:"CallExpression"}),(0,l.default)("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceFile:{validate:(0,l.assertValueType)("string")},sourceType:{validate:(0,l.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,l.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Directive"))),default:[]},body:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block"]}),(0,l.default)("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("ObjectMethod","ObjectProperty","SpreadElement")))}}}),(0,l.default)("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],fields:Object.assign({},c,u,{kind:Object.assign({validate:(0,l.assertOneOf)("method","get","set")},i.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),t=(0,l.assertNodeType)("Expression"),validator=function(r,i,n){(r.computed?t:e)(r,i,n)};return validator.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral"],validator}()},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0},body:{validate:(0,l.assertNodeType)("BlockStatement")}}),visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),(0,l.default)("ObjectProperty",{builder:["key","value","computed","shorthand",...i.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),t=(0,l.assertNodeType)("Expression"),validator=function(r,i,n){(r.computed?t:e)(r,i,n)};return validator.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral"],validator}()},value:{validate:(0,l.assertNodeType)("Expression","PatternLike")},shorthand:{validate:(0,l.chain)((0,l.assertValueType)("boolean"),Object.assign((function(e,t,r){if(i.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,t,r){if(i.env.BABEL_TYPES_8_BREAKING&&r&&!(0,n.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,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:function(){const e=(0,l.assertNodeType)("Identifier","Pattern"),t=(0,l.assertNodeType)("Expression");return function(r,s,a){if(!i.env.BABEL_TYPES_8_BREAKING)return;((0,n.default)("ObjectPattern",r)?e:t)(a,"value",a.value)}}()}),(0,l.default)("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},d,{argument:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","Pattern","MemberExpression"):(0,l.assertNodeType)("LVal")}}),validate(e,t){if(!i.env.BABEL_TYPES_8_BREAKING)return;const r=/(\\w+)\\[(\\d+)\\]/.exec(t);if(!r)throw new Error("Internal Babel error: malformed key.");const[,n,s]=r;if(e[n].length>s+1)throw new TypeError(`RestElement must be last element of ${n}`)}}),(0,l.default)("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,l.assertNodeType)("Expression"),optional:!0}}}),(0,l.default)("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Expression")))}},aliases:["Expression"]}),(0,l.default)("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,l.assertNodeType)("Expression"),optional:!0},consequent:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Statement")))}}}),(0,l.default)("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,l.assertNodeType)("Expression")},cases:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("SwitchCase")))}}}),(0,l.default)("ThisExpression",{aliases:["Expression"]}),(0,l.default)("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:(0,l.chain)((0,l.assertNodeType)("BlockStatement"),Object.assign((function(e){if(i.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,l.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,l.assertNodeType)("BlockStatement")}}}),(0,l.default)("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,l.assertNodeType)("Expression")},operator:{validate:(0,l.assertOneOf)(...o.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),(0,l.default)("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","MemberExpression"):(0,l.assertNodeType)("Expression")},operator:{validate:(0,l.assertOneOf)(...o.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),(0,l.default)("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},kind:{validate:(0,l.assertOneOf)("var","let","const")},declarations:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("VariableDeclarator")))}},validate(e,t,r){if(i.env.BABEL_TYPES_8_BREAKING&&(0,n.default)("ForXStatement",e,{left:r})&&1!==r.declarations.length)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${e.type}`)}}),(0,l.default)("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:function(){if(!i.env.BABEL_TYPES_8_BREAKING)return(0,l.assertNodeType)("LVal");const e=(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),t=(0,l.assertNodeType)("Identifier");return function(r,i,n){(r.init?e:t)(r,i,n)}}()},definite:{optional:!0,validate:(0,l.assertValueType)("boolean")},init:{optional:!0,validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}}),(0,l.default)("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}}),(0,l.default)("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},d,{left:{validate:(0,l.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression")},right:{validate:(0,l.assertNodeType)("Expression")},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0}})}),(0,l.default)("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},d,{elements:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeOrValueType)("null","PatternLike")))},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0}})}),(0,l.default)("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType","typeParameters"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},c,u,{expression:{validate:(0,l.assertValueType)("boolean")},body:{validate:(0,l.assertNodeType)("BlockStatement","Expression")}})}),(0,l.default)("ClassBody",{visitor:["body"],fields:{body:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","TSDeclareMethod","TSIndexSignature")))}}}),(0,l.default)("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,l.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,l.assertNodeType)("Expression")},superTypeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,l.assertNodeType)("InterfaceExtends"),optional:!0}}}),(0,l.default)("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,l.assertNodeType)("Identifier")},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,l.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,l.assertNodeType)("Expression")},superTypeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,l.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,l.assertValueType)("boolean"),optional:!0}},validate:function(){const e=(0,l.assertNodeType)("Identifier");return function(t,r,s){i.env.BABEL_TYPES_8_BREAKING&&((0,n.default)("ExportDefaultDeclaration",t)||e(s,"id",s.id))}}()}),(0,l.default)("ExportAllDeclaration",{visitor:["source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{source:{validate:(0,l.assertNodeType)("StringLiteral")},exportKind:(0,l.validateOptional)((0,l.assertOneOf)("type","value")),assertions:{optional:!0,validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("ImportAttribute")))}}}),(0,l.default)("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0,l.assertNodeType)("FunctionDeclaration","TSDeclareFunction","ClassDeclaration","Expression")}}}),(0,l.default)("ExportNamedDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:(0,l.chain)((0,l.assertNodeType)("Declaration"),Object.assign((function(e,t,r){if(i.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(i.env.BABEL_TYPES_8_BREAKING&&r&&e.source)throw new TypeError("Cannot export a declaration from a source")}))},assertions:{optional:!0,validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("ImportAttribute")))},specifiers:{default:[],validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)(function(){const e=(0,l.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,l.assertNodeType)("ExportSpecifier");return i.env.BABEL_TYPES_8_BREAKING?function(r,i,n){(r.source?e:t)(r,i,n)}:e}()))},source:{validate:(0,l.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,l.validateOptional)((0,l.assertOneOf)("type","value"))}}),(0,l.default)("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")},exported:{validate:(0,l.assertNodeType)("Identifier","StringLiteral")}}}),(0,l.default)("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!i.env.BABEL_TYPES_8_BREAKING)return(0,l.assertNodeType)("VariableDeclaration","LVal");const e=(0,l.assertNodeType)("VariableDeclaration"),t=(0,l.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern");return function(r,i,s){(0,n.default)("VariableDeclaration",s)?e(r,i,s):t(r,i,s)}}()},right:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")},await:{default:!1}}}),(0,l.default)("ImportDeclaration",{visitor:["specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration"],fields:{assertions:{optional:!0,validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("ImportAttribute")))},specifiers:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:(0,l.assertNodeType)("StringLiteral")},importKind:{validate:(0,l.assertOneOf)("type","typeof","value"),optional:!0}}}),(0,l.default)("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")}}}),(0,l.default)("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")}}}),(0,l.default)("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")},imported:{validate:(0,l.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,l.assertOneOf)("type","typeof"),optional:!0}}}),(0,l.default)("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:(0,l.chain)((0,l.assertNodeType)("Identifier"),Object.assign((function(e,t,r){if(!i.env.BABEL_TYPES_8_BREAKING)return;let s;switch(r.name){case"function":s="sent";break;case"new":s="target";break;case"import":s="meta"}if(!(0,n.default)("Identifier",e.property,{name:s}))throw new TypeError("Unrecognised MetaProperty")}),{oneOfNodeTypes:["Identifier"]}))},property:{validate:(0,l.assertNodeType)("Identifier")}}});const h={abstract:{validate:(0,l.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,l.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,l.assertValueType)("boolean"),optional:!0},key:{validate:(0,l.chain)(function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),t=(0,l.assertNodeType)("Expression");return function(r,i,n){(r.computed?t:e)(r,i,n)}}(),(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","Expression"))}};t.classMethodOrPropertyCommon=h;const f=Object.assign({},c,h,{kind:{validate:(0,l.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,l.chain)((0,l.assertValueType)("string"),(0,l.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0}});t.classMethodOrDeclareMethodCommon=f,(0,l.default)("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({},f,u,{body:{validate:(0,l.assertNodeType)("BlockStatement")}})}),(0,l.default)("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},d,{properties:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("RestElement","ObjectProperty")))}})}),(0,l.default)("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("Super",{aliases:["Expression"]}),(0,l.default)("TaggedTemplateExpression",{visitor:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,l.assertNodeType)("Expression")},quasi:{validate:(0,l.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),(0,l.default)("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,l.assertShape)({raw:{validate:(0,l.assertValueType)("string")},cooked:{validate:(0,l.assertValueType)("string"),optional:!0}})},tail:{default:!1}}}),(0,l.default)("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("TemplateElement")))},expressions:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.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}`)}))}}}),(0,l.default)("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0,l.chain)((0,l.assertValueType)("boolean"),Object.assign((function(e,t,r){if(i.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,l.assertNodeType)("Expression")}}}),(0,l.default)("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("Import",{aliases:["Expression"]}),(0,l.default)("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,l.assertNodeType)("Identifier")}}}),(0,l.default)("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,l.assertNodeType)("Expression")},property:{validate:function(){const e=(0,l.assertNodeType)("Identifier"),t=(0,l.assertNodeType)("Expression"),validator=function(r,i,n){(r.computed?t:e)(r,i,n)};return validator.oneOfNodeTypes=["Expression","Identifier"],validator}()},computed:{default:!1},optional:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("boolean"),(0,l.assertOptionalChainStart)()):(0,l.assertValueType)("boolean")}}}),(0,l.default)("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:(0,l.assertNodeType)("Expression")},arguments:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Expression","SpreadElement","JSXNamespacedName","ArgumentPlaceholder")))},optional:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("boolean"),(0,l.assertOptionalChainStart)()):(0,l.assertValueType)("boolean")},typeArguments:{validate:(0,l.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}}})},4683:(e,t,r)=>{"use strict";var i=r(397),n=r(5455),s=r(9357);(0,n.default)("ArgumentPlaceholder",{}),(0,n.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:i.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,n.assertNodeType)("Expression")},callee:{validate:(0,n.assertNodeType)("Expression")}}:{object:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})}}}),(0,n.default)("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},s.classMethodOrPropertyCommon,{value:{validate:(0,n.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,n.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,n.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,n.assertValueType)("boolean"),optional:!0},declare:{validate:(0,n.assertValueType)("boolean"),optional:!0}})}),(0,n.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}}}),(0,n.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,n.assertNodeType)("Expression")}}}),(0,n.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]}),(0,n.default)("ClassPrivateProperty",{visitor:["key","value","decorators"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,n.assertNodeType)("PrivateName")},value:{validate:(0,n.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,n.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Decorator"))),optional:!0}}}),(0,n.default)("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},s.classMethodOrDeclareMethodCommon,s.functionTypeAnnotationCommon,{key:{validate:(0,n.assertNodeType)("PrivateName")},body:{validate:(0,n.assertNodeType)("BlockStatement")}})}),(0,n.default)("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,n.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,n.assertNodeType)("StringLiteral")}}}),(0,n.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}}}),(0,n.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,n.assertNodeType)("BlockStatement")},async:{validate:(0,n.assertValueType)("boolean"),default:!1}}}),(0,n.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,n.assertNodeType)("Identifier")}}}),(0,n.default)("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,n.assertNodeType)("Identifier")}}}),(0,n.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("ObjectProperty","SpreadElement")))}}}),(0,n.default)("TupleExpression",{fields:{elements:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,n.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,n.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,n.default)("StaticBlock",{visitor:["body"],fields:{body:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent"]}),(0,n.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,n.assertNodeType)("Program")}},aliases:["Expression"]})},2665:(e,t,r)=>{"use strict";var i=r(5455);const defineInterfaceishType=(e,t="TypeParameterDeclaration")=>{(0,i.default)(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends","mixins","implements","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)(t),extends:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends")),mixins:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends")),implements:(0,i.validateOptional)((0,i.arrayOfType)("ClassImplements")),body:(0,i.validateType)("ObjectTypeAnnotation")}})};(0,i.default)("AnyTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["Flow","FlowType"],fields:{elementType:(0,i.validateType)("FlowType")}}),(0,i.default)("BooleanTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:(0,i.validate)((0,i.assertValueType)("boolean"))}}),(0,i.default)("NullLiteralTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("ClassImplements",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),defineInterfaceishType("DeclareClass"),(0,i.default)("DeclareFunction",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),predicate:(0,i.validateOptionalType)("DeclaredPredicate")}}),defineInterfaceishType("DeclareInterface"),(0,i.default)("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)(["Identifier","StringLiteral"]),body:(0,i.validateType)("BlockStatement"),kind:(0,i.validateOptional)((0,i.assertOneOf)("CommonJS","ES"))}}),(0,i.default)("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,i.validateType)("TypeAnnotation")}}),(0,i.default)("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),right:(0,i.validateType)("FlowType")}}),(0,i.default)("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,i.validateOptionalType)("FlowType")}}),(0,i.default)("DeclareVariable",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier")}}),(0,i.default)("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{declaration:(0,i.validateOptionalType)("Flow"),specifiers:(0,i.validateOptional)((0,i.arrayOfType)(["ExportSpecifier","ExportNamespaceSpecifier"])),source:(0,i.validateOptionalType)("StringLiteral"),default:(0,i.validateOptional)((0,i.assertValueType)("boolean"))}}),(0,i.default)("DeclareExportAllDeclaration",{visitor:["source"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{source:(0,i.validateType)("StringLiteral"),exportKind:(0,i.validateOptional)((0,i.assertOneOf)("type","value"))}}),(0,i.default)("DeclaredPredicate",{visitor:["value"],aliases:["Flow","FlowPredicate"],fields:{value:(0,i.validateType)("Flow")}}),(0,i.default)("ExistsTypeAnnotation",{aliases:["Flow","FlowType"]}),(0,i.default)("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["Flow","FlowType"],fields:{typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),params:(0,i.validate)((0,i.arrayOfType)("FunctionTypeParam")),rest:(0,i.validateOptionalType)("FunctionTypeParam"),this:(0,i.validateOptionalType)("FunctionTypeParam"),returnType:(0,i.validateType)("FlowType")}}),(0,i.default)("FunctionTypeParam",{visitor:["name","typeAnnotation"],aliases:["Flow"],fields:{name:(0,i.validateOptionalType)("Identifier"),typeAnnotation:(0,i.validateType)("FlowType"),optional:(0,i.validateOptional)((0,i.assertValueType)("boolean"))}}),(0,i.default)("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["Flow","FlowType"],fields:{id:(0,i.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),(0,i.default)("InferredPredicate",{aliases:["Flow","FlowPredicate"]}),(0,i.default)("InterfaceExtends",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{id:(0,i.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),defineInterfaceishType("InterfaceDeclaration"),(0,i.default)("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["Flow","FlowType"],fields:{extends:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends")),body:(0,i.validateType)("ObjectTypeAnnotation")}}),(0,i.default)("IntersectionTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),(0,i.default)("MixedTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("EmptyTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["Flow","FlowType"],fields:{typeAnnotation:(0,i.validateType)("FlowType")}}),(0,i.default)("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:(0,i.validate)((0,i.assertValueType)("number"))}}),(0,i.default)("NumberTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["Flow","FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,i.validate)((0,i.arrayOfType)(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:(0,i.validateOptional)((0,i.arrayOfType)("ObjectTypeIndexer")),callProperties:(0,i.validateOptional)((0,i.arrayOfType)("ObjectTypeCallProperty")),internalSlots:(0,i.validateOptional)((0,i.arrayOfType)("ObjectTypeInternalSlot")),exact:{validate:(0,i.assertValueType)("boolean"),default:!1},inexact:(0,i.validateOptional)((0,i.assertValueType)("boolean"))}}),(0,i.default)("ObjectTypeInternalSlot",{visitor:["id","value","optional","static","method"],aliases:["Flow","UserWhitespacable"],fields:{id:(0,i.validateType)("Identifier"),value:(0,i.validateType)("FlowType"),optional:(0,i.validate)((0,i.assertValueType)("boolean")),static:(0,i.validate)((0,i.assertValueType)("boolean")),method:(0,i.validate)((0,i.assertValueType)("boolean"))}}),(0,i.default)("ObjectTypeCallProperty",{visitor:["value"],aliases:["Flow","UserWhitespacable"],fields:{value:(0,i.validateType)("FlowType"),static:(0,i.validate)((0,i.assertValueType)("boolean"))}}),(0,i.default)("ObjectTypeIndexer",{visitor:["id","key","value","variance"],aliases:["Flow","UserWhitespacable"],fields:{id:(0,i.validateOptionalType)("Identifier"),key:(0,i.validateType)("FlowType"),value:(0,i.validateType)("FlowType"),static:(0,i.validate)((0,i.assertValueType)("boolean")),variance:(0,i.validateOptionalType)("Variance")}}),(0,i.default)("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["Flow","UserWhitespacable"],fields:{key:(0,i.validateType)(["Identifier","StringLiteral"]),value:(0,i.validateType)("FlowType"),kind:(0,i.validate)((0,i.assertOneOf)("init","get","set")),static:(0,i.validate)((0,i.assertValueType)("boolean")),proto:(0,i.validate)((0,i.assertValueType)("boolean")),optional:(0,i.validate)((0,i.assertValueType)("boolean")),variance:(0,i.validateOptionalType)("Variance"),method:(0,i.validate)((0,i.assertValueType)("boolean"))}}),(0,i.default)("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["Flow","UserWhitespacable"],fields:{argument:(0,i.validateType)("FlowType")}}),(0,i.default)("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,i.validateOptionalType)("FlowType"),impltype:(0,i.validateType)("FlowType")}}),(0,i.default)("QualifiedTypeIdentifier",{visitor:["id","qualification"],aliases:["Flow"],fields:{id:(0,i.validateType)("Identifier"),qualification:(0,i.validateType)(["Identifier","QualifiedTypeIdentifier"])}}),(0,i.default)("StringLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:(0,i.validate)((0,i.assertValueType)("string"))}}),(0,i.default)("StringTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("SymbolTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("ThisTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("TupleTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),(0,i.default)("TypeofTypeAnnotation",{visitor:["argument"],aliases:["Flow","FlowType"],fields:{argument:(0,i.validateType)("FlowType")}}),(0,i.default)("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),right:(0,i.validateType)("FlowType")}}),(0,i.default)("TypeAnnotation",{aliases:["Flow"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,i.validateType)("FlowType")}}),(0,i.default)("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["Flow","ExpressionWrapper","Expression"],fields:{expression:(0,i.validateType)("Expression"),typeAnnotation:(0,i.validateType)("TypeAnnotation")}}),(0,i.default)("TypeParameter",{aliases:["Flow"],visitor:["bound","default","variance"],fields:{name:(0,i.validate)((0,i.assertValueType)("string")),bound:(0,i.validateOptionalType)("TypeAnnotation"),default:(0,i.validateOptionalType)("FlowType"),variance:(0,i.validateOptionalType)("Variance")}}),(0,i.default)("TypeParameterDeclaration",{aliases:["Flow"],visitor:["params"],fields:{params:(0,i.validate)((0,i.arrayOfType)("TypeParameter"))}}),(0,i.default)("TypeParameterInstantiation",{aliases:["Flow"],visitor:["params"],fields:{params:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),(0,i.default)("UnionTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),(0,i.default)("Variance",{aliases:["Flow"],builder:["kind"],fields:{kind:(0,i.validate)((0,i.assertOneOf)("minus","plus"))}}),(0,i.default)("VoidTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,i.validateType)("Identifier"),body:(0,i.validateType)(["EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody"])}}),(0,i.default)("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),(0,i.default)("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),(0,i.default)("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)(["EnumStringMember","EnumDefaultedMember"]),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),(0,i.default)("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,i.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),(0,i.default)("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("BooleanLiteral")}}),(0,i.default)("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("NumericLiteral")}}),(0,i.default)("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("StringLiteral")}}),(0,i.default)("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,i.validateType)("Identifier")}}),(0,i.default)("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["Flow","FlowType"],fields:{objectType:(0,i.validateType)("FlowType"),indexType:(0,i.validateType)("FlowType")}}),(0,i.default)("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["Flow","FlowType"],fields:{objectType:(0,i.validateType)("FlowType"),indexType:(0,i.validateType)("FlowType"),optional:(0,i.validate)((0,i.assertValueType)("boolean"))}})},1102:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return n.VISITOR_KEYS}}),Object.defineProperty(t,"ALIAS_KEYS",{enumerable:!0,get:function(){return n.ALIAS_KEYS}}),Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return n.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(t,"NODE_FIELDS",{enumerable:!0,get:function(){return n.NODE_FIELDS}}),Object.defineProperty(t,"BUILDER_KEYS",{enumerable:!0,get:function(){return n.BUILDER_KEYS}}),Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return n.DEPRECATED_KEYS}}),Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return n.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(t,"PLACEHOLDERS",{enumerable:!0,get:function(){return s.PLACEHOLDERS}}),Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return s.PLACEHOLDERS_ALIAS}}),Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return s.PLACEHOLDERS_FLIPPED_ALIAS}}),t.TYPES=void 0;var i=r(1138);r(9357),r(2665),r(6540),r(511),r(4683),r(2130);var n=r(5455),s=r(6820);i(n.VISITOR_KEYS),i(n.ALIAS_KEYS),i(n.FLIPPED_ALIAS_KEYS),i(n.NODE_FIELDS),i(n.BUILDER_KEYS),i(n.DEPRECATED_KEYS),i(s.PLACEHOLDERS_ALIAS),i(s.PLACEHOLDERS_FLIPPED_ALIAS);const a=Object.keys(n.VISITOR_KEYS).concat(Object.keys(n.FLIPPED_ALIAS_KEYS)).concat(Object.keys(n.DEPRECATED_KEYS));t.TYPES=a},6540:(e,t,r)=>{"use strict";var i=r(5455);(0,i.default)("JSXAttribute",{visitor:["name","value"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,i.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,i.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),(0,i.default)("JSXClosingElement",{visitor:["name"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,i.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),(0,i.default)("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["JSX","Immutable","Expression"],fields:{openingElement:{validate:(0,i.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,i.assertNodeType)("JSXClosingElement")},children:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))},selfClosing:{validate:(0,i.assertValueType)("boolean"),optional:!0}}}),(0,i.default)("JSXEmptyExpression",{aliases:["JSX"]}),(0,i.default)("JSXExpressionContainer",{visitor:["expression"],aliases:["JSX","Immutable"],fields:{expression:{validate:(0,i.assertNodeType)("Expression","JSXEmptyExpression")}}}),(0,i.default)("JSXSpreadChild",{visitor:["expression"],aliases:["JSX","Immutable"],fields:{expression:{validate:(0,i.assertNodeType)("Expression")}}}),(0,i.default)("JSXIdentifier",{builder:["name"],aliases:["JSX"],fields:{name:{validate:(0,i.assertValueType)("string")}}}),(0,i.default)("JSXMemberExpression",{visitor:["object","property"],aliases:["JSX"],fields:{object:{validate:(0,i.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,i.assertNodeType)("JSXIdentifier")}}}),(0,i.default)("JSXNamespacedName",{visitor:["namespace","name"],aliases:["JSX"],fields:{namespace:{validate:(0,i.assertNodeType)("JSXIdentifier")},name:{validate:(0,i.assertNodeType)("JSXIdentifier")}}}),(0,i.default)("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,i.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("JSXAttribute","JSXSpreadAttribute")))},typeParameters:{validate:(0,i.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),(0,i.default)("JSXSpreadAttribute",{visitor:["argument"],aliases:["JSX"],fields:{argument:{validate:(0,i.assertNodeType)("Expression")}}}),(0,i.default)("JSXText",{aliases:["JSX","Immutable"],builder:["value"],fields:{value:{validate:(0,i.assertValueType)("string")}}}),(0,i.default)("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["JSX","Immutable","Expression"],fields:{openingFragment:{validate:(0,i.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,i.assertNodeType)("JSXClosingFragment")},children:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}}),(0,i.default)("JSXOpeningFragment",{aliases:["JSX","Immutable"]}),(0,i.default)("JSXClosingFragment",{aliases:["JSX","Immutable"]})},511:(e,t,r)=>{"use strict";var i=r(5455),n=r(6820);(0,i.default)("Noop",{visitor:[]}),(0,i.default)("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:(0,i.assertNodeType)("Identifier")},expectedNode:{validate:(0,i.assertOneOf)(...n.PLACEHOLDERS)}}}),(0,i.default)("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,i.assertValueType)("string")}}})},6820:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PLACEHOLDERS_FLIPPED_ALIAS=t.PLACEHOLDERS_ALIAS=t.PLACEHOLDERS=void 0;var i=r(5455);const n=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"];t.PLACEHOLDERS=n;const s={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};t.PLACEHOLDERS_ALIAS=s;for(const e of n){const t=i.ALIAS_KEYS[e];null!=t&&t.length&&(s[e]=t)}const a={};t.PLACEHOLDERS_FLIPPED_ALIAS=a,Object.keys(s).forEach((e=>{s[e].forEach((t=>{Object.hasOwnProperty.call(a,t)||(a[t]=[]),a[t].push(e)}))}))},2130:(e,t,r)=>{"use strict";var i=r(5455),n=r(9357);const s=(0,i.assertValueType)("boolean"),a={returnType:{validate:(0,i.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,i.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}};(0,i.default)("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,i.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,i.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,i.assertNodeType)("Identifier","AssignmentPattern")}}}),(0,i.default)("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},n.functionDeclarationCommon,a)}),(0,i.default)("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},n.classMethodOrDeclareMethodCommon,a)}),(0,i.default)("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,i.validateType)("TSEntityName"),right:(0,i.validateType)("Identifier")}});const o={typeParameters:(0,i.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,i.validateArrayOfType)(["Identifier","RestElement"]),typeAnnotation:(0,i.validateOptionalType)("TSTypeAnnotation")},l={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:o};(0,i.default)("TSCallSignatureDeclaration",l),(0,i.default)("TSConstructSignatureDeclaration",l);const c={key:(0,i.validateType)("Expression"),computed:(0,i.validate)(s),optional:(0,i.validateOptional)(s)};(0,i.default)("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation","initializer"],fields:Object.assign({},c,{readonly:(0,i.validateOptional)(s),typeAnnotation:(0,i.validateOptionalType)("TSTypeAnnotation"),initializer:(0,i.validateOptionalType)("Expression")})}),(0,i.default)("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},o,c,{kind:{validate:(0,i.assertOneOf)("method","get","set")}})}),(0,i.default)("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,i.validateOptional)(s),static:(0,i.validateOptional)(s),parameters:(0,i.validateArrayOfType)("Identifier"),typeAnnotation:(0,i.validateOptionalType)("TSTypeAnnotation")}});const u=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const e of u)(0,i.default)(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});(0,i.default)("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const p={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};(0,i.default)("TSFunctionType",Object.assign({},p,{fields:o})),(0,i.default)("TSConstructorType",Object.assign({},p,{fields:Object.assign({},o,{abstract:(0,i.validateOptional)(s)})})),(0,i.default)("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,i.validateType)("TSEntityName"),typeParameters:(0,i.validateOptionalType)("TSTypeParameterInstantiation")}}),(0,i.default)("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,i.validateType)(["Identifier","TSThisType"]),typeAnnotation:(0,i.validateOptionalType)("TSTypeAnnotation"),asserts:(0,i.validateOptional)(s)}}),(0,i.default)("TSTypeQuery",{aliases:["TSType"],visitor:["exprName"],fields:{exprName:(0,i.validateType)(["TSEntityName","TSImportType"])}}),(0,i.default)("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,i.validateArrayOfType)("TSTypeElement")}}),(0,i.default)("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,i.validateType)("TSType")}}),(0,i.default)("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,i.validateArrayOfType)(["TSType","TSNamedTupleMember"])}}),(0,i.default)("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,i.validateType)("Identifier"),optional:{validate:s,default:!1},elementType:(0,i.validateType)("TSType")}});const d={aliases:["TSType"],visitor:["types"],fields:{types:(0,i.validateArrayOfType)("TSType")}};(0,i.default)("TSUnionType",d),(0,i.default)("TSIntersectionType",d),(0,i.default)("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,i.validateType)("TSType"),extendsType:(0,i.validateType)("TSType"),trueType:(0,i.validateType)("TSType"),falseType:(0,i.validateType)("TSType")}}),(0,i.default)("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,i.validateType)("TSTypeParameter")}}),(0,i.default)("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0,i.validate)((0,i.assertValueType)("string")),typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,i.validateType)("TSType"),indexType:(0,i.validateType)("TSType")}}),(0,i.default)("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","typeAnnotation","nameType"],fields:{readonly:(0,i.validateOptional)(s),typeParameter:(0,i.validateType)("TSTypeParameter"),optional:(0,i.validateOptional)(s),typeAnnotation:(0,i.validateOptionalType)("TSType"),nameType:(0,i.validateOptionalType)("TSType")}}),(0,i.default)("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:(0,i.validateType)(["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral"])}}),(0,i.default)("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,i.validateType)("TSEntityName"),typeParameters:(0,i.validateOptionalType)("TSTypeParameterInstantiation")}}),(0,i.default)("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,i.validateOptional)(s),id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,i.validateOptional)((0,i.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,i.validateType)("TSInterfaceBody")}}),(0,i.default)("TSInterfaceBody",{visitor:["body"],fields:{body:(0,i.validateArrayOfType)("TSTypeElement")}}),(0,i.default)("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,i.validateOptional)(s),id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSAsExpression",{aliases:["Expression"],visitor:["expression","typeAnnotation"],fields:{expression:(0,i.validateType)("Expression"),typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSTypeAssertion",{aliases:["Expression"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,i.validateType)("TSType"),expression:(0,i.validateType)("Expression")}}),(0,i.default)("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,i.validateOptional)(s),const:(0,i.validateOptional)(s),id:(0,i.validateType)("Identifier"),members:(0,i.validateArrayOfType)("TSEnumMember"),initializer:(0,i.validateOptionalType)("Expression")}}),(0,i.default)("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,i.validateType)(["Identifier","StringLiteral"]),initializer:(0,i.validateOptionalType)("Expression")}}),(0,i.default)("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:(0,i.validateOptional)(s),global:(0,i.validateOptional)(s),id:(0,i.validateType)(["Identifier","StringLiteral"]),body:(0,i.validateType)(["TSModuleBlock","TSModuleDeclaration"])}}),(0,i.default)("TSModuleBlock",{aliases:["Scopable","Block","BlockParent"],visitor:["body"],fields:{body:(0,i.validateArrayOfType)("Statement")}}),(0,i.default)("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:(0,i.validateType)("StringLiteral"),qualifier:(0,i.validateOptionalType)("TSEntityName"),typeParameters:(0,i.validateOptionalType)("TSTypeParameterInstantiation")}}),(0,i.default)("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:(0,i.validate)(s),id:(0,i.validateType)("Identifier"),moduleReference:(0,i.validateType)(["TSEntityName","TSExternalModuleReference"])}}),(0,i.default)("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,i.validateType)("StringLiteral")}}),(0,i.default)("TSNonNullExpression",{aliases:["Expression"],visitor:["expression"],fields:{expression:(0,i.validateType)("Expression")}}),(0,i.default)("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,i.validateType)("Expression")}}),(0,i.default)("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,i.validateType)("Identifier")}}),(0,i.default)("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,i.assertNodeType)("TSType")}}}),(0,i.default)("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("TSType")))}}}),(0,i.default)("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("TSTypeParameter")))}}}),(0,i.default)("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,i.assertValueType)("string")},constraint:{validate:(0,i.assertNodeType)("TSType"),optional:!0},default:{validate:(0,i.assertNodeType)("TSType"),optional:!0}}})},5455:(e,t,r)=>{"use strict";var i=r(397);Object.defineProperty(t,"__esModule",{value:!0}),t.validate=validate,t.typeIs=typeIs,t.validateType=function(e){return validate(typeIs(e))},t.validateOptional=function(e){return{validate:e,optional:!0}},t.validateOptionalType=function(e){return{validate:typeIs(e),optional:!0}},t.arrayOf=arrayOf,t.arrayOfType=arrayOfType,t.validateArrayOfType=function(e){return validate(arrayOfType(e))},t.assertEach=assertEach,t.assertOneOf=function(...e){function validate(t,r,i){if(e.indexOf(i)<0)throw new TypeError(`Property ${r} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(i)}`)}return validate.oneOf=e,validate},t.assertNodeType=assertNodeType,t.assertNodeOrValueType=function(...e){function validate(t,r,i){for(const a of e)if(getType(i)===a||(0,n.default)(a,i))return void(0,s.validateChild)(t,r,i);throw new TypeError(`Property ${r} of ${t.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(null==i?void 0:i.type)}`)}return validate.oneOfNodeOrValueTypes=e,validate},t.assertValueType=assertValueType,t.assertShape=function(e){function validate(t,r,i){const n=[];for(const r of Object.keys(e))try{(0,s.validateField)(t,r,i[r],e[r])}catch(e){if(e instanceof TypeError){n.push(e.message);continue}throw e}if(n.length)throw new TypeError(`Property ${r} of ${t.type} expected to have the following:\\n${n.join("\\n")}`)}return validate.shapeOf=e,validate},t.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}`)}},t.chain=chain,t.default=function(e,t={}){const r=t.inherits&&m[t.inherits]||{};let i=t.fields;if(!i&&(i={},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");i[t]={default:Array.isArray(n)?[]:n,optional:e.optional,validate:e.validate}}}const n=t.visitor||r.visitor||[],s=t.aliases||r.aliases||[],y=t.builder||r.builder||t.visitor||[];for(const r of Object.keys(t))if(-1===h.indexOf(r))throw new Error(`Unknown type option "${r}" on ${e}`);t.deprecatedAlias&&(p[t.deprecatedAlias]=e);for(const e of n.concat(y))i[e]=i[e]||{};for(const t of Object.keys(i)){const r=i[t];void 0!==r.default&&-1===y.indexOf(t)&&(r.optional=!0),void 0===r.default?r.default=null:r.validate||null==r.default||(r.validate=assertValueType(getType(r.default)));for(const i of Object.keys(r))if(-1===f.indexOf(i))throw new Error(`Unknown field key "${i}" on ${e}.${t}`)}a[e]=t.visitor=n,u[e]=t.builder=y,c[e]=t.fields=i,o[e]=t.aliases=s,s.forEach((t=>{l[t]=l[t]||[],l[t].push(e)})),t.validate&&(d[e]=t.validate);m[e]=t},t.NODE_PARENT_VALIDATIONS=t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.NODE_FIELDS=t.FLIPPED_ALIAS_KEYS=t.ALIAS_KEYS=t.VISITOR_KEYS=void 0;var n=r(5001),s=r(1843);const a={};t.VISITOR_KEYS=a;const o={};t.ALIAS_KEYS=o;const l={};t.FLIPPED_ALIAS_KEYS=l;const c={};t.NODE_FIELDS=c;const u={};t.BUILDER_KEYS=u;const p={};t.DEPRECATED_KEYS=p;const d={};function getType(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function validate(e){return{validate:e}}function typeIs(e){return"string"==typeof e?assertNodeType(e):assertNodeType(...e)}function arrayOf(e){return chain(assertValueType("array"),assertEach(e))}function arrayOfType(e){return arrayOf(typeIs(e))}function assertEach(e){function validator(t,r,n){if(Array.isArray(n))for(let a=0;a<n.length;a++){const o=`${r}[${a}]`,l=n[a];e(t,o,l),i.env.BABEL_TYPES_8_BREAKING&&(0,s.validateChild)(t,o,l)}}return validator.each=e,validator}function assertNodeType(...e){function validate(t,r,i){for(const a of e)if((0,n.default)(a,i))return void(0,s.validateChild)(t,r,i);throw new TypeError(`Property ${r} of ${t.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(null==i?void 0:i.type)}`)}return validate.oneOfNodeTypes=e,validate}function assertValueType(e){function validate(t,r,i){if(!(getType(i)===e))throw new TypeError(`Property ${r} expected type of ${e} but got ${getType(i)}`)}return validate.type=e,validate}function chain(...e){function validate(...t){for(const r of e)r(...t)}if(validate.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 validate}t.NODE_PARENT_VALIDATIONS=d;const h=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],f=["default","optional","validate"];const m={}},17:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={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};Object.defineProperty(t,"assertNode",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"createFlowUnionType",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"createTSUnionType",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"cloneNode",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"cloneWithoutLoc",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"addComment",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"addComments",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"inheritInnerComments",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"inheritLeadingComments",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"inheritsComments",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"inheritTrailingComments",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"removeComments",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"ensureBlock",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"toSequenceExpression",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"appendToMemberExpression",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"prependToMemberExpression",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(t,"removeProperties",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"removePropertiesDeep",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"traverseFast",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(t,"isPlaceholderType",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(t,"isValidES3Identifier",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(t,"matchesPattern",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:!0,get:function(){return fe.default}}),t.react=void 0;var n=r(1934),s=r(5582),a=r(478),o=r(9278),l=r(2937);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=r(7395),u=r(4660),p=r(6998),d=r(1580);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r(6306);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var f=r(5833),m=r(7307),y=r(175),T=r(4982),g=r(8743),b=r(6517),S=r(8290),x=r(8267),P=r(4510),v=r(5644),A=r(5042),w=r(6528),I=r(55);Object.keys(I).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===I[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return I[e]}}))}));var C=r(2770);Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===C[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return C[e]}}))}));var O=r(9176),N=r(7919),_=r(2860),k=r(6e3),D=r(1796),L=r(7718),M=r(3240),B=r(4868),j=r(874),R=r(1799),F=r(1102);Object.keys(F).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===F[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return F[e]}}))}));var U=r(9350),K=r(4758),q=r(1195),V=r(2252),W=r(2271),Y=r(6337),X=r(5337),J=r(210),H=r(9220);Object.keys(H).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===H[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return H[e]}}))}));var G=r(2829),$=r(4729),z=r(5001),Q=r(48),Z=r(7199),ee=r(3261),te=r(100),re=r(1860),ie=r(7190),ne=r(549),se=r(2954),ae=r(5969),oe=r(1422),le=r(4263),ce=r(2128),ue=r(6335),pe=r(7117),de=r(4185),he=r(1843),fe=r(3427),me=r(3924);Object.keys(me).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===me[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return me[e]}}))}));var ye=r(2006);Object.keys(ye).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===ye[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ye[e]}}))}));const Te={isReactComponent:n.default,isCompatTag:s.default,buildChildren:a.default};t.react=Te},9350:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r=!1){return e.object=(0,i.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e};var i=r(1580)},6337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function removeTypeDuplicates(e){const t={},r={},n=[],s=[];for(let a=0;a<e.length;a++){const o=e[a];if(o&&!(s.indexOf(o)>=0)){if((0,i.isAnyTypeAnnotation)(o))return[o];if((0,i.isFlowBaseAnnotation)(o))r[o.type]=o;else if((0,i.isUnionTypeAnnotation)(o))n.indexOf(o.types)<0&&(e=e.concat(o.types),n.push(o.types));else if((0,i.isGenericTypeAnnotation)(o)){const e=getQualifiedName(o.id);if(t[e]){let r=t[e];r.typeParameters?o.typeParameters&&(r.typeParameters.params=removeTypeDuplicates(r.typeParameters.params.concat(o.typeParameters.params))):r=o.typeParameters}else t[e]=o}else s.push(o)}}for(const e of Object.keys(r))s.push(r[e]);for(const e of Object.keys(t))s.push(t[e]);return s};var i=r(3924);function getQualifiedName(e){return(0,i.isIdentifier)(e)?e.name:`${e.id.name}.${getQualifiedName(e.qualification)}`}},4758:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e||!t)return e;for(const r of i.INHERIT_KEYS.optional)null==e[r]&&(e[r]=t[r]);for(const r of Object.keys(t))"_"===r[0]&&"__clone"!==r&&(e[r]=t[r]);for(const r of i.INHERIT_KEYS.force)e[r]=t[r];return(0,n.default)(e,t),e};var i=r(2770),n=r(5644)},1195:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return e.object=(0,i.memberExpression)(t,e.object),e};var i=r(1580)},2252:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){const r=t.preserveComments?n:s;for(const t of r)null!=e[t]&&(e[t]=void 0);for(const t of Object.keys(e))"_"===t[0]&&null!=e[t]&&(e[t]=void 0);const i=Object.getOwnPropertySymbols(e);for(const t of i)e[t]=null};var i=r(2770);const n=["tokens","start","end","loc","raw","rawValue"],s=i.COMMENT_KEYS.concat(["comments"]).concat(n)},2271:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,i.default)(e,n.default,t),e};var i=r(2829),n=r(2252)},7921:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t={},r={},n=[],s=[];for(let t=0;t<e.length;t++){const a=e[t];if(a&&!(s.indexOf(a)>=0)){if((0,i.isTSAnyKeyword)(a))return[a];(0,i.isTSBaseType)(a)?r[a.type]=a:(0,i.isTSUnionType)(a)?n.indexOf(a.types)<0&&(e=e.concat(a.types),n.push(a.types)):s.push(a)}}for(const e of Object.keys(r))s.push(r[e]);for(const e of Object.keys(t))s.push(t[e]);return s};var i=r(3924)},5337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=getBindingIdentifiers;var i=r(3924);function getBindingIdentifiers(e,t,r){let n=[].concat(e);const s=Object.create(null);for(;n.length;){const e=n.shift();if(!e)continue;const a=getBindingIdentifiers.keys[e.type];if((0,i.isIdentifier)(e))if(t){(s[e.name]=s[e.name]||[]).push(e)}else s[e.name]=e;else if(!(0,i.isExportDeclaration)(e)||(0,i.isExportAllDeclaration)(e)){if(r){if((0,i.isFunctionDeclaration)(e)){n.push(e.id);continue}if((0,i.isFunctionExpression)(e))continue}if(a)for(let t=0;t<a.length;t++){const r=a[t];e[r]&&(n=n.concat(e[r]))}}else(0,i.isDeclaration)(e.declaration)&&n.push(e.declaration)}return s}getBindingIdentifiers.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"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]}},210:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(5337),_default=function(e,t){return(0,i.default)(e,t,!0)};t.default=_default},9220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){"function"==typeof t&&(t={enter:t});const{enter:i,exit:n}=t;traverseSimpleImpl(e,i,n,r,[])};var i=r(1102);function traverseSimpleImpl(e,t,r,n,s){const a=i.VISITOR_KEYS[e.type];if(a){t&&t(e,s,n);for(const i of a){const a=e[i];if(Array.isArray(a))for(let o=0;o<a.length;o++){const l=a[o];l&&(s.push({node:e,key:i,index:o}),traverseSimpleImpl(l,t,r,n,s),s.pop())}else a&&(s.push({node:e,key:i}),traverseSimpleImpl(a,t,r,n,s),s.pop())}r&&r(e,s,n)}}},2829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function traverseFast(e,t,r){if(!e)return;const n=i.VISITOR_KEYS[e.type];if(!n)return;t(e,r=r||{});for(const i of n){const n=e[i];if(Array.isArray(n))for(const e of n)traverseFast(e,t,r);else traverseFast(n,t,r)}};var i=r(1102)},3746:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))))}},5908:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=e.value.split(/\\r\\n|\\n|\\r/);let n=0;for(let e=0;e<r.length;e++)r[e].match(/[^ \\t]/)&&(n=e);let s="";for(let e=0;e<r.length;e++){const t=r[e],i=0===e,a=e===r.length-1,o=e===n;let l=t.replace(/\\t/g," ");i||(l=l.replace(/^[ ]+/,"")),a||(l=l.replace(/[ ]+$/,"")),l&&(o||(l+=" "),s+=l)}s&&t.push((0,i.stringLiteral)(s))};var i=r(1580)},4729:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=Object.keys(t);for(const i of r)if(e[i]!==t[i])return!1;return!0}},3427:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=e.split(".");return e=>(0,i.default)(e,r,t)};var i=r(4185)},3924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayExpression=function(e,t){if(!e)return!1;if("ArrayExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isAssignmentExpression=function(e,t){if(!e)return!1;if("AssignmentExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isBinaryExpression=function(e,t){if(!e)return!1;if("BinaryExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isInterpreterDirective=function(e,t){if(!e)return!1;if("InterpreterDirective"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDirective=function(e,t){if(!e)return!1;if("Directive"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDirectiveLiteral=function(e,t){if(!e)return!1;if("DirectiveLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isBlockStatement=function(e,t){if(!e)return!1;if("BlockStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isBreakStatement=function(e,t){if(!e)return!1;if("BreakStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isCallExpression=function(e,t){if(!e)return!1;if("CallExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isCatchClause=function(e,t){if(!e)return!1;if("CatchClause"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isConditionalExpression=function(e,t){if(!e)return!1;if("ConditionalExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isContinueStatement=function(e,t){if(!e)return!1;if("ContinueStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDebuggerStatement=function(e,t){if(!e)return!1;if("DebuggerStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDoWhileStatement=function(e,t){if(!e)return!1;if("DoWhileStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isEmptyStatement=function(e,t){if(!e)return!1;if("EmptyStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isExpressionStatement=function(e,t){if(!e)return!1;if("ExpressionStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isFile=function(e,t){if(!e)return!1;if("File"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isForInStatement=function(e,t){if(!e)return!1;if("ForInStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isForStatement=function(e,t){if(!e)return!1;if("ForStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isFunctionDeclaration=function(e,t){if(!e)return!1;if("FunctionDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isFunctionExpression=function(e,t){if(!e)return!1;if("FunctionExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isIdentifier=function(e,t){if(!e)return!1;if("Identifier"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isIfStatement=function(e,t){if(!e)return!1;if("IfStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isLabeledStatement=function(e,t){if(!e)return!1;if("LabeledStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isStringLiteral=function(e,t){if(!e)return!1;if("StringLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isNumericLiteral=function(e,t){if(!e)return!1;if("NumericLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isNullLiteral=function(e,t){if(!e)return!1;if("NullLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isBooleanLiteral=function(e,t){if(!e)return!1;if("BooleanLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isRegExpLiteral=function(e,t){if(!e)return!1;if("RegExpLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isLogicalExpression=function(e,t){if(!e)return!1;if("LogicalExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isMemberExpression=function(e,t){if(!e)return!1;if("MemberExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isNewExpression=function(e,t){if(!e)return!1;if("NewExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isProgram=function(e,t){if(!e)return!1;if("Program"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isObjectExpression=function(e,t){if(!e)return!1;if("ObjectExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isObjectMethod=function(e,t){if(!e)return!1;if("ObjectMethod"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isObjectProperty=function(e,t){if(!e)return!1;if("ObjectProperty"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isRestElement=function(e,t){if(!e)return!1;if("RestElement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isReturnStatement=function(e,t){if(!e)return!1;if("ReturnStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isSequenceExpression=function(e,t){if(!e)return!1;if("SequenceExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isParenthesizedExpression=function(e,t){if(!e)return!1;if("ParenthesizedExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isSwitchCase=function(e,t){if(!e)return!1;if("SwitchCase"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isSwitchStatement=function(e,t){if(!e)return!1;if("SwitchStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isThisExpression=function(e,t){if(!e)return!1;if("ThisExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isThrowStatement=function(e,t){if(!e)return!1;if("ThrowStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTryStatement=function(e,t){if(!e)return!1;if("TryStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isUnaryExpression=function(e,t){if(!e)return!1;if("UnaryExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isUpdateExpression=function(e,t){if(!e)return!1;if("UpdateExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isVariableDeclaration=function(e,t){if(!e)return!1;if("VariableDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isVariableDeclarator=function(e,t){if(!e)return!1;if("VariableDeclarator"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isWhileStatement=function(e,t){if(!e)return!1;if("WhileStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isWithStatement=function(e,t){if(!e)return!1;if("WithStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isAssignmentPattern=function(e,t){if(!e)return!1;if("AssignmentPattern"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isArrayPattern=function(e,t){if(!e)return!1;if("ArrayPattern"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isArrowFunctionExpression=function(e,t){if(!e)return!1;if("ArrowFunctionExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isClassBody=function(e,t){if(!e)return!1;if("ClassBody"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isClassExpression=function(e,t){if(!e)return!1;if("ClassExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isClassDeclaration=function(e,t){if(!e)return!1;if("ClassDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isExportAllDeclaration=function(e,t){if(!e)return!1;if("ExportAllDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isExportDefaultDeclaration=function(e,t){if(!e)return!1;if("ExportDefaultDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isExportNamedDeclaration=function(e,t){if(!e)return!1;if("ExportNamedDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isExportSpecifier=function(e,t){if(!e)return!1;if("ExportSpecifier"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isForOfStatement=function(e,t){if(!e)return!1;if("ForOfStatement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isImportDeclaration=function(e,t){if(!e)return!1;if("ImportDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isImportDefaultSpecifier=function(e,t){if(!e)return!1;if("ImportDefaultSpecifier"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isImportNamespaceSpecifier=function(e,t){if(!e)return!1;if("ImportNamespaceSpecifier"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isImportSpecifier=function(e,t){if(!e)return!1;if("ImportSpecifier"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isMetaProperty=function(e,t){if(!e)return!1;if("MetaProperty"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isClassMethod=function(e,t){if(!e)return!1;if("ClassMethod"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isObjectPattern=function(e,t){if(!e)return!1;if("ObjectPattern"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isSpreadElement=function(e,t){if(!e)return!1;if("SpreadElement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isSuper=function(e,t){if(!e)return!1;if("Super"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTaggedTemplateExpression=function(e,t){if(!e)return!1;if("TaggedTemplateExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTemplateElement=function(e,t){if(!e)return!1;if("TemplateElement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTemplateLiteral=function(e,t){if(!e)return!1;if("TemplateLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isYieldExpression=function(e,t){if(!e)return!1;if("YieldExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isAwaitExpression=function(e,t){if(!e)return!1;if("AwaitExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isImport=function(e,t){if(!e)return!1;if("Import"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isBigIntLiteral=function(e,t){if(!e)return!1;if("BigIntLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isExportNamespaceSpecifier=function(e,t){if(!e)return!1;if("ExportNamespaceSpecifier"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isOptionalMemberExpression=function(e,t){if(!e)return!1;if("OptionalMemberExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isOptionalCallExpression=function(e,t){if(!e)return!1;if("OptionalCallExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isAnyTypeAnnotation=function(e,t){if(!e)return!1;if("AnyTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isArrayTypeAnnotation=function(e,t){if(!e)return!1;if("ArrayTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isBooleanTypeAnnotation=function(e,t){if(!e)return!1;if("BooleanTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isBooleanLiteralTypeAnnotation=function(e,t){if(!e)return!1;if("BooleanLiteralTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isNullLiteralTypeAnnotation=function(e,t){if(!e)return!1;if("NullLiteralTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isClassImplements=function(e,t){if(!e)return!1;if("ClassImplements"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclareClass=function(e,t){if(!e)return!1;if("DeclareClass"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclareFunction=function(e,t){if(!e)return!1;if("DeclareFunction"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclareInterface=function(e,t){if(!e)return!1;if("DeclareInterface"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclareModule=function(e,t){if(!e)return!1;if("DeclareModule"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclareModuleExports=function(e,t){if(!e)return!1;if("DeclareModuleExports"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclareTypeAlias=function(e,t){if(!e)return!1;if("DeclareTypeAlias"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclareOpaqueType=function(e,t){if(!e)return!1;if("DeclareOpaqueType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclareVariable=function(e,t){if(!e)return!1;if("DeclareVariable"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclareExportDeclaration=function(e,t){if(!e)return!1;if("DeclareExportDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclareExportAllDeclaration=function(e,t){if(!e)return!1;if("DeclareExportAllDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclaredPredicate=function(e,t){if(!e)return!1;if("DeclaredPredicate"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isExistsTypeAnnotation=function(e,t){if(!e)return!1;if("ExistsTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isFunctionTypeAnnotation=function(e,t){if(!e)return!1;if("FunctionTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isFunctionTypeParam=function(e,t){if(!e)return!1;if("FunctionTypeParam"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isGenericTypeAnnotation=function(e,t){if(!e)return!1;if("GenericTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isInferredPredicate=function(e,t){if(!e)return!1;if("InferredPredicate"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isInterfaceExtends=function(e,t){if(!e)return!1;if("InterfaceExtends"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isInterfaceDeclaration=function(e,t){if(!e)return!1;if("InterfaceDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isInterfaceTypeAnnotation=function(e,t){if(!e)return!1;if("InterfaceTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isIntersectionTypeAnnotation=function(e,t){if(!e)return!1;if("IntersectionTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isMixedTypeAnnotation=function(e,t){if(!e)return!1;if("MixedTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isEmptyTypeAnnotation=function(e,t){if(!e)return!1;if("EmptyTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isNullableTypeAnnotation=function(e,t){if(!e)return!1;if("NullableTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isNumberLiteralTypeAnnotation=function(e,t){if(!e)return!1;if("NumberLiteralTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isNumberTypeAnnotation=function(e,t){if(!e)return!1;if("NumberTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isObjectTypeAnnotation=function(e,t){if(!e)return!1;if("ObjectTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isObjectTypeInternalSlot=function(e,t){if(!e)return!1;if("ObjectTypeInternalSlot"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isObjectTypeCallProperty=function(e,t){if(!e)return!1;if("ObjectTypeCallProperty"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isObjectTypeIndexer=function(e,t){if(!e)return!1;if("ObjectTypeIndexer"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isObjectTypeProperty=function(e,t){if(!e)return!1;if("ObjectTypeProperty"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isObjectTypeSpreadProperty=function(e,t){if(!e)return!1;if("ObjectTypeSpreadProperty"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isOpaqueType=function(e,t){if(!e)return!1;if("OpaqueType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isQualifiedTypeIdentifier=function(e,t){if(!e)return!1;if("QualifiedTypeIdentifier"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isStringLiteralTypeAnnotation=function(e,t){if(!e)return!1;if("StringLiteralTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isStringTypeAnnotation=function(e,t){if(!e)return!1;if("StringTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isSymbolTypeAnnotation=function(e,t){if(!e)return!1;if("SymbolTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isThisTypeAnnotation=function(e,t){if(!e)return!1;if("ThisTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTupleTypeAnnotation=function(e,t){if(!e)return!1;if("TupleTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTypeofTypeAnnotation=function(e,t){if(!e)return!1;if("TypeofTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTypeAlias=function(e,t){if(!e)return!1;if("TypeAlias"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTypeAnnotation=function(e,t){if(!e)return!1;if("TypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTypeCastExpression=function(e,t){if(!e)return!1;if("TypeCastExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTypeParameter=function(e,t){if(!e)return!1;if("TypeParameter"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTypeParameterDeclaration=function(e,t){if(!e)return!1;if("TypeParameterDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTypeParameterInstantiation=function(e,t){if(!e)return!1;if("TypeParameterInstantiation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isUnionTypeAnnotation=function(e,t){if(!e)return!1;if("UnionTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isVariance=function(e,t){if(!e)return!1;if("Variance"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isVoidTypeAnnotation=function(e,t){if(!e)return!1;if("VoidTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isEnumDeclaration=function(e,t){if(!e)return!1;if("EnumDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isEnumBooleanBody=function(e,t){if(!e)return!1;if("EnumBooleanBody"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isEnumNumberBody=function(e,t){if(!e)return!1;if("EnumNumberBody"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isEnumStringBody=function(e,t){if(!e)return!1;if("EnumStringBody"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isEnumSymbolBody=function(e,t){if(!e)return!1;if("EnumSymbolBody"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isEnumBooleanMember=function(e,t){if(!e)return!1;if("EnumBooleanMember"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isEnumNumberMember=function(e,t){if(!e)return!1;if("EnumNumberMember"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isEnumStringMember=function(e,t){if(!e)return!1;if("EnumStringMember"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isEnumDefaultedMember=function(e,t){if(!e)return!1;if("EnumDefaultedMember"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isIndexedAccessType=function(e,t){if(!e)return!1;if("IndexedAccessType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isOptionalIndexedAccessType=function(e,t){if(!e)return!1;if("OptionalIndexedAccessType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXAttribute=function(e,t){if(!e)return!1;if("JSXAttribute"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXClosingElement=function(e,t){if(!e)return!1;if("JSXClosingElement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXElement=function(e,t){if(!e)return!1;if("JSXElement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXEmptyExpression=function(e,t){if(!e)return!1;if("JSXEmptyExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXExpressionContainer=function(e,t){if(!e)return!1;if("JSXExpressionContainer"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXSpreadChild=function(e,t){if(!e)return!1;if("JSXSpreadChild"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXIdentifier=function(e,t){if(!e)return!1;if("JSXIdentifier"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXMemberExpression=function(e,t){if(!e)return!1;if("JSXMemberExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXNamespacedName=function(e,t){if(!e)return!1;if("JSXNamespacedName"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXOpeningElement=function(e,t){if(!e)return!1;if("JSXOpeningElement"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXSpreadAttribute=function(e,t){if(!e)return!1;if("JSXSpreadAttribute"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXText=function(e,t){if(!e)return!1;if("JSXText"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXFragment=function(e,t){if(!e)return!1;if("JSXFragment"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXOpeningFragment=function(e,t){if(!e)return!1;if("JSXOpeningFragment"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isJSXClosingFragment=function(e,t){if(!e)return!1;if("JSXClosingFragment"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isNoop=function(e,t){if(!e)return!1;if("Noop"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isPlaceholder=function(e,t){if(!e)return!1;if("Placeholder"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isV8IntrinsicIdentifier=function(e,t){if(!e)return!1;if("V8IntrinsicIdentifier"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isArgumentPlaceholder=function(e,t){if(!e)return!1;if("ArgumentPlaceholder"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isBindExpression=function(e,t){if(!e)return!1;if("BindExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isClassProperty=function(e,t){if(!e)return!1;if("ClassProperty"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isPipelineTopicExpression=function(e,t){if(!e)return!1;if("PipelineTopicExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isPipelineBareFunction=function(e,t){if(!e)return!1;if("PipelineBareFunction"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isPipelinePrimaryTopicReference=function(e,t){if(!e)return!1;if("PipelinePrimaryTopicReference"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isClassPrivateProperty=function(e,t){if(!e)return!1;if("ClassPrivateProperty"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isClassPrivateMethod=function(e,t){if(!e)return!1;if("ClassPrivateMethod"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isImportAttribute=function(e,t){if(!e)return!1;if("ImportAttribute"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDecorator=function(e,t){if(!e)return!1;if("Decorator"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDoExpression=function(e,t){if(!e)return!1;if("DoExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isExportDefaultSpecifier=function(e,t){if(!e)return!1;if("ExportDefaultSpecifier"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isPrivateName=function(e,t){if(!e)return!1;if("PrivateName"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isRecordExpression=function(e,t){if(!e)return!1;if("RecordExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTupleExpression=function(e,t){if(!e)return!1;if("TupleExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isDecimalLiteral=function(e,t){if(!e)return!1;if("DecimalLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isStaticBlock=function(e,t){if(!e)return!1;if("StaticBlock"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isModuleExpression=function(e,t){if(!e)return!1;if("ModuleExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSParameterProperty=function(e,t){if(!e)return!1;if("TSParameterProperty"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSDeclareFunction=function(e,t){if(!e)return!1;if("TSDeclareFunction"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSDeclareMethod=function(e,t){if(!e)return!1;if("TSDeclareMethod"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSQualifiedName=function(e,t){if(!e)return!1;if("TSQualifiedName"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSCallSignatureDeclaration=function(e,t){if(!e)return!1;if("TSCallSignatureDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSConstructSignatureDeclaration=function(e,t){if(!e)return!1;if("TSConstructSignatureDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSPropertySignature=function(e,t){if(!e)return!1;if("TSPropertySignature"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSMethodSignature=function(e,t){if(!e)return!1;if("TSMethodSignature"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSIndexSignature=function(e,t){if(!e)return!1;if("TSIndexSignature"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSAnyKeyword=function(e,t){if(!e)return!1;if("TSAnyKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSBooleanKeyword=function(e,t){if(!e)return!1;if("TSBooleanKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSBigIntKeyword=function(e,t){if(!e)return!1;if("TSBigIntKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSIntrinsicKeyword=function(e,t){if(!e)return!1;if("TSIntrinsicKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSNeverKeyword=function(e,t){if(!e)return!1;if("TSNeverKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSNullKeyword=function(e,t){if(!e)return!1;if("TSNullKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSNumberKeyword=function(e,t){if(!e)return!1;if("TSNumberKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSObjectKeyword=function(e,t){if(!e)return!1;if("TSObjectKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSStringKeyword=function(e,t){if(!e)return!1;if("TSStringKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSSymbolKeyword=function(e,t){if(!e)return!1;if("TSSymbolKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSUndefinedKeyword=function(e,t){if(!e)return!1;if("TSUndefinedKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSUnknownKeyword=function(e,t){if(!e)return!1;if("TSUnknownKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSVoidKeyword=function(e,t){if(!e)return!1;if("TSVoidKeyword"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSThisType=function(e,t){if(!e)return!1;if("TSThisType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSFunctionType=function(e,t){if(!e)return!1;if("TSFunctionType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSConstructorType=function(e,t){if(!e)return!1;if("TSConstructorType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypeReference=function(e,t){if(!e)return!1;if("TSTypeReference"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypePredicate=function(e,t){if(!e)return!1;if("TSTypePredicate"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypeQuery=function(e,t){if(!e)return!1;if("TSTypeQuery"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypeLiteral=function(e,t){if(!e)return!1;if("TSTypeLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSArrayType=function(e,t){if(!e)return!1;if("TSArrayType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTupleType=function(e,t){if(!e)return!1;if("TSTupleType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSOptionalType=function(e,t){if(!e)return!1;if("TSOptionalType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSRestType=function(e,t){if(!e)return!1;if("TSRestType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSNamedTupleMember=function(e,t){if(!e)return!1;if("TSNamedTupleMember"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSUnionType=function(e,t){if(!e)return!1;if("TSUnionType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSIntersectionType=function(e,t){if(!e)return!1;if("TSIntersectionType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSConditionalType=function(e,t){if(!e)return!1;if("TSConditionalType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSInferType=function(e,t){if(!e)return!1;if("TSInferType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSParenthesizedType=function(e,t){if(!e)return!1;if("TSParenthesizedType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypeOperator=function(e,t){if(!e)return!1;if("TSTypeOperator"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSIndexedAccessType=function(e,t){if(!e)return!1;if("TSIndexedAccessType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSMappedType=function(e,t){if(!e)return!1;if("TSMappedType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSLiteralType=function(e,t){if(!e)return!1;if("TSLiteralType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSExpressionWithTypeArguments=function(e,t){if(!e)return!1;if("TSExpressionWithTypeArguments"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSInterfaceDeclaration=function(e,t){if(!e)return!1;if("TSInterfaceDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSInterfaceBody=function(e,t){if(!e)return!1;if("TSInterfaceBody"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypeAliasDeclaration=function(e,t){if(!e)return!1;if("TSTypeAliasDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSAsExpression=function(e,t){if(!e)return!1;if("TSAsExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypeAssertion=function(e,t){if(!e)return!1;if("TSTypeAssertion"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSEnumDeclaration=function(e,t){if(!e)return!1;if("TSEnumDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSEnumMember=function(e,t){if(!e)return!1;if("TSEnumMember"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSModuleDeclaration=function(e,t){if(!e)return!1;if("TSModuleDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSModuleBlock=function(e,t){if(!e)return!1;if("TSModuleBlock"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSImportType=function(e,t){if(!e)return!1;if("TSImportType"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSImportEqualsDeclaration=function(e,t){if(!e)return!1;if("TSImportEqualsDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSExternalModuleReference=function(e,t){if(!e)return!1;if("TSExternalModuleReference"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSNonNullExpression=function(e,t){if(!e)return!1;if("TSNonNullExpression"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSExportAssignment=function(e,t){if(!e)return!1;if("TSExportAssignment"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSNamespaceExportDeclaration=function(e,t){if(!e)return!1;if("TSNamespaceExportDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypeAnnotation=function(e,t){if(!e)return!1;if("TSTypeAnnotation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypeParameterInstantiation=function(e,t){if(!e)return!1;if("TSTypeParameterInstantiation"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypeParameterDeclaration=function(e,t){if(!e)return!1;if("TSTypeParameterDeclaration"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypeParameter=function(e,t){if(!e)return!1;if("TSTypeParameter"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isExpression=function(e,t){if(!e)return!1;const r=e.type;if("ArrayExpression"===r||"AssignmentExpression"===r||"BinaryExpression"===r||"CallExpression"===r||"ConditionalExpression"===r||"FunctionExpression"===r||"Identifier"===r||"StringLiteral"===r||"NumericLiteral"===r||"NullLiteral"===r||"BooleanLiteral"===r||"RegExpLiteral"===r||"LogicalExpression"===r||"MemberExpression"===r||"NewExpression"===r||"ObjectExpression"===r||"SequenceExpression"===r||"ParenthesizedExpression"===r||"ThisExpression"===r||"UnaryExpression"===r||"UpdateExpression"===r||"ArrowFunctionExpression"===r||"ClassExpression"===r||"MetaProperty"===r||"Super"===r||"TaggedTemplateExpression"===r||"TemplateLiteral"===r||"YieldExpression"===r||"AwaitExpression"===r||"Import"===r||"BigIntLiteral"===r||"OptionalMemberExpression"===r||"OptionalCallExpression"===r||"TypeCastExpression"===r||"JSXElement"===r||"JSXFragment"===r||"BindExpression"===r||"PipelinePrimaryTopicReference"===r||"DoExpression"===r||"RecordExpression"===r||"TupleExpression"===r||"DecimalLiteral"===r||"ModuleExpression"===r||"TSAsExpression"===r||"TSTypeAssertion"===r||"TSNonNullExpression"===r||"Placeholder"===r&&("Expression"===e.expectedNode||"Identifier"===e.expectedNode||"StringLiteral"===e.expectedNode))return void 0===t||(0,i.default)(e,t);return!1},t.isBinary=function(e,t){if(!e)return!1;const r=e.type;if("BinaryExpression"===r||"LogicalExpression"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isScopable=function(e,t){if(!e)return!1;const r=e.type;if("BlockStatement"===r||"CatchClause"===r||"DoWhileStatement"===r||"ForInStatement"===r||"ForStatement"===r||"FunctionDeclaration"===r||"FunctionExpression"===r||"Program"===r||"ObjectMethod"===r||"SwitchStatement"===r||"WhileStatement"===r||"ArrowFunctionExpression"===r||"ClassExpression"===r||"ClassDeclaration"===r||"ForOfStatement"===r||"ClassMethod"===r||"ClassPrivateMethod"===r||"StaticBlock"===r||"TSModuleBlock"===r||"Placeholder"===r&&"BlockStatement"===e.expectedNode)return void 0===t||(0,i.default)(e,t);return!1},t.isBlockParent=function(e,t){if(!e)return!1;const r=e.type;if("BlockStatement"===r||"CatchClause"===r||"DoWhileStatement"===r||"ForInStatement"===r||"ForStatement"===r||"FunctionDeclaration"===r||"FunctionExpression"===r||"Program"===r||"ObjectMethod"===r||"SwitchStatement"===r||"WhileStatement"===r||"ArrowFunctionExpression"===r||"ForOfStatement"===r||"ClassMethod"===r||"ClassPrivateMethod"===r||"StaticBlock"===r||"TSModuleBlock"===r||"Placeholder"===r&&"BlockStatement"===e.expectedNode)return void 0===t||(0,i.default)(e,t);return!1},t.isBlock=function(e,t){if(!e)return!1;const r=e.type;if("BlockStatement"===r||"Program"===r||"TSModuleBlock"===r||"Placeholder"===r&&"BlockStatement"===e.expectedNode)return void 0===t||(0,i.default)(e,t);return!1},t.isStatement=function(e,t){if(!e)return!1;const r=e.type;if("BlockStatement"===r||"BreakStatement"===r||"ContinueStatement"===r||"DebuggerStatement"===r||"DoWhileStatement"===r||"EmptyStatement"===r||"ExpressionStatement"===r||"ForInStatement"===r||"ForStatement"===r||"FunctionDeclaration"===r||"IfStatement"===r||"LabeledStatement"===r||"ReturnStatement"===r||"SwitchStatement"===r||"ThrowStatement"===r||"TryStatement"===r||"VariableDeclaration"===r||"WhileStatement"===r||"WithStatement"===r||"ClassDeclaration"===r||"ExportAllDeclaration"===r||"ExportDefaultDeclaration"===r||"ExportNamedDeclaration"===r||"ForOfStatement"===r||"ImportDeclaration"===r||"DeclareClass"===r||"DeclareFunction"===r||"DeclareInterface"===r||"DeclareModule"===r||"DeclareModuleExports"===r||"DeclareTypeAlias"===r||"DeclareOpaqueType"===r||"DeclareVariable"===r||"DeclareExportDeclaration"===r||"DeclareExportAllDeclaration"===r||"InterfaceDeclaration"===r||"OpaqueType"===r||"TypeAlias"===r||"EnumDeclaration"===r||"TSDeclareFunction"===r||"TSInterfaceDeclaration"===r||"TSTypeAliasDeclaration"===r||"TSEnumDeclaration"===r||"TSModuleDeclaration"===r||"TSImportEqualsDeclaration"===r||"TSExportAssignment"===r||"TSNamespaceExportDeclaration"===r||"Placeholder"===r&&("Statement"===e.expectedNode||"Declaration"===e.expectedNode||"BlockStatement"===e.expectedNode))return void 0===t||(0,i.default)(e,t);return!1},t.isTerminatorless=function(e,t){if(!e)return!1;const r=e.type;if("BreakStatement"===r||"ContinueStatement"===r||"ReturnStatement"===r||"ThrowStatement"===r||"YieldExpression"===r||"AwaitExpression"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isCompletionStatement=function(e,t){if(!e)return!1;const r=e.type;if("BreakStatement"===r||"ContinueStatement"===r||"ReturnStatement"===r||"ThrowStatement"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isConditional=function(e,t){if(!e)return!1;const r=e.type;if("ConditionalExpression"===r||"IfStatement"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isLoop=function(e,t){if(!e)return!1;const r=e.type;if("DoWhileStatement"===r||"ForInStatement"===r||"ForStatement"===r||"WhileStatement"===r||"ForOfStatement"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isWhile=function(e,t){if(!e)return!1;const r=e.type;if("DoWhileStatement"===r||"WhileStatement"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isExpressionWrapper=function(e,t){if(!e)return!1;const r=e.type;if("ExpressionStatement"===r||"ParenthesizedExpression"===r||"TypeCastExpression"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isFor=function(e,t){if(!e)return!1;const r=e.type;if("ForInStatement"===r||"ForStatement"===r||"ForOfStatement"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isForXStatement=function(e,t){if(!e)return!1;const r=e.type;if("ForInStatement"===r||"ForOfStatement"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isFunction=function(e,t){if(!e)return!1;const r=e.type;if("FunctionDeclaration"===r||"FunctionExpression"===r||"ObjectMethod"===r||"ArrowFunctionExpression"===r||"ClassMethod"===r||"ClassPrivateMethod"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isFunctionParent=function(e,t){if(!e)return!1;const r=e.type;if("FunctionDeclaration"===r||"FunctionExpression"===r||"ObjectMethod"===r||"ArrowFunctionExpression"===r||"ClassMethod"===r||"ClassPrivateMethod"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isPureish=function(e,t){if(!e)return!1;const r=e.type;if("FunctionDeclaration"===r||"FunctionExpression"===r||"StringLiteral"===r||"NumericLiteral"===r||"NullLiteral"===r||"BooleanLiteral"===r||"RegExpLiteral"===r||"ArrowFunctionExpression"===r||"BigIntLiteral"===r||"DecimalLiteral"===r||"Placeholder"===r&&"StringLiteral"===e.expectedNode)return void 0===t||(0,i.default)(e,t);return!1},t.isDeclaration=function(e,t){if(!e)return!1;const r=e.type;if("FunctionDeclaration"===r||"VariableDeclaration"===r||"ClassDeclaration"===r||"ExportAllDeclaration"===r||"ExportDefaultDeclaration"===r||"ExportNamedDeclaration"===r||"ImportDeclaration"===r||"DeclareClass"===r||"DeclareFunction"===r||"DeclareInterface"===r||"DeclareModule"===r||"DeclareModuleExports"===r||"DeclareTypeAlias"===r||"DeclareOpaqueType"===r||"DeclareVariable"===r||"DeclareExportDeclaration"===r||"DeclareExportAllDeclaration"===r||"InterfaceDeclaration"===r||"OpaqueType"===r||"TypeAlias"===r||"EnumDeclaration"===r||"TSDeclareFunction"===r||"TSInterfaceDeclaration"===r||"TSTypeAliasDeclaration"===r||"TSEnumDeclaration"===r||"TSModuleDeclaration"===r||"Placeholder"===r&&"Declaration"===e.expectedNode)return void 0===t||(0,i.default)(e,t);return!1},t.isPatternLike=function(e,t){if(!e)return!1;const r=e.type;if("Identifier"===r||"RestElement"===r||"AssignmentPattern"===r||"ArrayPattern"===r||"ObjectPattern"===r||"Placeholder"===r&&("Pattern"===e.expectedNode||"Identifier"===e.expectedNode))return void 0===t||(0,i.default)(e,t);return!1},t.isLVal=function(e,t){if(!e)return!1;const r=e.type;if("Identifier"===r||"MemberExpression"===r||"RestElement"===r||"AssignmentPattern"===r||"ArrayPattern"===r||"ObjectPattern"===r||"TSParameterProperty"===r||"Placeholder"===r&&("Pattern"===e.expectedNode||"Identifier"===e.expectedNode))return void 0===t||(0,i.default)(e,t);return!1},t.isTSEntityName=function(e,t){if(!e)return!1;const r=e.type;if("Identifier"===r||"TSQualifiedName"===r||"Placeholder"===r&&"Identifier"===e.expectedNode)return void 0===t||(0,i.default)(e,t);return!1},t.isLiteral=function(e,t){if(!e)return!1;const r=e.type;if("StringLiteral"===r||"NumericLiteral"===r||"NullLiteral"===r||"BooleanLiteral"===r||"RegExpLiteral"===r||"TemplateLiteral"===r||"BigIntLiteral"===r||"DecimalLiteral"===r||"Placeholder"===r&&"StringLiteral"===e.expectedNode)return void 0===t||(0,i.default)(e,t);return!1},t.isImmutable=function(e,t){if(!e)return!1;const r=e.type;if("StringLiteral"===r||"NumericLiteral"===r||"NullLiteral"===r||"BooleanLiteral"===r||"BigIntLiteral"===r||"JSXAttribute"===r||"JSXClosingElement"===r||"JSXElement"===r||"JSXExpressionContainer"===r||"JSXSpreadChild"===r||"JSXOpeningElement"===r||"JSXText"===r||"JSXFragment"===r||"JSXOpeningFragment"===r||"JSXClosingFragment"===r||"DecimalLiteral"===r||"Placeholder"===r&&"StringLiteral"===e.expectedNode)return void 0===t||(0,i.default)(e,t);return!1},t.isUserWhitespacable=function(e,t){if(!e)return!1;const r=e.type;if("ObjectMethod"===r||"ObjectProperty"===r||"ObjectTypeInternalSlot"===r||"ObjectTypeCallProperty"===r||"ObjectTypeIndexer"===r||"ObjectTypeProperty"===r||"ObjectTypeSpreadProperty"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isMethod=function(e,t){if(!e)return!1;const r=e.type;if("ObjectMethod"===r||"ClassMethod"===r||"ClassPrivateMethod"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isObjectMember=function(e,t){if(!e)return!1;const r=e.type;if("ObjectMethod"===r||"ObjectProperty"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isProperty=function(e,t){if(!e)return!1;const r=e.type;if("ObjectProperty"===r||"ClassProperty"===r||"ClassPrivateProperty"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isUnaryLike=function(e,t){if(!e)return!1;const r=e.type;if("UnaryExpression"===r||"SpreadElement"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isPattern=function(e,t){if(!e)return!1;const r=e.type;if("AssignmentPattern"===r||"ArrayPattern"===r||"ObjectPattern"===r||"Placeholder"===r&&"Pattern"===e.expectedNode)return void 0===t||(0,i.default)(e,t);return!1},t.isClass=function(e,t){if(!e)return!1;const r=e.type;if("ClassExpression"===r||"ClassDeclaration"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isModuleDeclaration=function(e,t){if(!e)return!1;const r=e.type;if("ExportAllDeclaration"===r||"ExportDefaultDeclaration"===r||"ExportNamedDeclaration"===r||"ImportDeclaration"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isExportDeclaration=function(e,t){if(!e)return!1;const r=e.type;if("ExportAllDeclaration"===r||"ExportDefaultDeclaration"===r||"ExportNamedDeclaration"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isModuleSpecifier=function(e,t){if(!e)return!1;const r=e.type;if("ExportSpecifier"===r||"ImportDefaultSpecifier"===r||"ImportNamespaceSpecifier"===r||"ImportSpecifier"===r||"ExportNamespaceSpecifier"===r||"ExportDefaultSpecifier"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isFlow=function(e,t){if(!e)return!1;const r=e.type;if("AnyTypeAnnotation"===r||"ArrayTypeAnnotation"===r||"BooleanTypeAnnotation"===r||"BooleanLiteralTypeAnnotation"===r||"NullLiteralTypeAnnotation"===r||"ClassImplements"===r||"DeclareClass"===r||"DeclareFunction"===r||"DeclareInterface"===r||"DeclareModule"===r||"DeclareModuleExports"===r||"DeclareTypeAlias"===r||"DeclareOpaqueType"===r||"DeclareVariable"===r||"DeclareExportDeclaration"===r||"DeclareExportAllDeclaration"===r||"DeclaredPredicate"===r||"ExistsTypeAnnotation"===r||"FunctionTypeAnnotation"===r||"FunctionTypeParam"===r||"GenericTypeAnnotation"===r||"InferredPredicate"===r||"InterfaceExtends"===r||"InterfaceDeclaration"===r||"InterfaceTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"MixedTypeAnnotation"===r||"EmptyTypeAnnotation"===r||"NullableTypeAnnotation"===r||"NumberLiteralTypeAnnotation"===r||"NumberTypeAnnotation"===r||"ObjectTypeAnnotation"===r||"ObjectTypeInternalSlot"===r||"ObjectTypeCallProperty"===r||"ObjectTypeIndexer"===r||"ObjectTypeProperty"===r||"ObjectTypeSpreadProperty"===r||"OpaqueType"===r||"QualifiedTypeIdentifier"===r||"StringLiteralTypeAnnotation"===r||"StringTypeAnnotation"===r||"SymbolTypeAnnotation"===r||"ThisTypeAnnotation"===r||"TupleTypeAnnotation"===r||"TypeofTypeAnnotation"===r||"TypeAlias"===r||"TypeAnnotation"===r||"TypeCastExpression"===r||"TypeParameter"===r||"TypeParameterDeclaration"===r||"TypeParameterInstantiation"===r||"UnionTypeAnnotation"===r||"Variance"===r||"VoidTypeAnnotation"===r||"IndexedAccessType"===r||"OptionalIndexedAccessType"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isFlowType=function(e,t){if(!e)return!1;const r=e.type;if("AnyTypeAnnotation"===r||"ArrayTypeAnnotation"===r||"BooleanTypeAnnotation"===r||"BooleanLiteralTypeAnnotation"===r||"NullLiteralTypeAnnotation"===r||"ExistsTypeAnnotation"===r||"FunctionTypeAnnotation"===r||"GenericTypeAnnotation"===r||"InterfaceTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"MixedTypeAnnotation"===r||"EmptyTypeAnnotation"===r||"NullableTypeAnnotation"===r||"NumberLiteralTypeAnnotation"===r||"NumberTypeAnnotation"===r||"ObjectTypeAnnotation"===r||"StringLiteralTypeAnnotation"===r||"StringTypeAnnotation"===r||"SymbolTypeAnnotation"===r||"ThisTypeAnnotation"===r||"TupleTypeAnnotation"===r||"TypeofTypeAnnotation"===r||"UnionTypeAnnotation"===r||"VoidTypeAnnotation"===r||"IndexedAccessType"===r||"OptionalIndexedAccessType"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isFlowBaseAnnotation=function(e,t){if(!e)return!1;const r=e.type;if("AnyTypeAnnotation"===r||"BooleanTypeAnnotation"===r||"NullLiteralTypeAnnotation"===r||"MixedTypeAnnotation"===r||"EmptyTypeAnnotation"===r||"NumberTypeAnnotation"===r||"StringTypeAnnotation"===r||"SymbolTypeAnnotation"===r||"ThisTypeAnnotation"===r||"VoidTypeAnnotation"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isFlowDeclaration=function(e,t){if(!e)return!1;const r=e.type;if("DeclareClass"===r||"DeclareFunction"===r||"DeclareInterface"===r||"DeclareModule"===r||"DeclareModuleExports"===r||"DeclareTypeAlias"===r||"DeclareOpaqueType"===r||"DeclareVariable"===r||"DeclareExportDeclaration"===r||"DeclareExportAllDeclaration"===r||"InterfaceDeclaration"===r||"OpaqueType"===r||"TypeAlias"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isFlowPredicate=function(e,t){if(!e)return!1;const r=e.type;if("DeclaredPredicate"===r||"InferredPredicate"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isEnumBody=function(e,t){if(!e)return!1;const r=e.type;if("EnumBooleanBody"===r||"EnumNumberBody"===r||"EnumStringBody"===r||"EnumSymbolBody"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isEnumMember=function(e,t){if(!e)return!1;const r=e.type;if("EnumBooleanMember"===r||"EnumNumberMember"===r||"EnumStringMember"===r||"EnumDefaultedMember"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isJSX=function(e,t){if(!e)return!1;const r=e.type;if("JSXAttribute"===r||"JSXClosingElement"===r||"JSXElement"===r||"JSXEmptyExpression"===r||"JSXExpressionContainer"===r||"JSXSpreadChild"===r||"JSXIdentifier"===r||"JSXMemberExpression"===r||"JSXNamespacedName"===r||"JSXOpeningElement"===r||"JSXSpreadAttribute"===r||"JSXText"===r||"JSXFragment"===r||"JSXOpeningFragment"===r||"JSXClosingFragment"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isPrivate=function(e,t){if(!e)return!1;const r=e.type;if("ClassPrivateProperty"===r||"ClassPrivateMethod"===r||"PrivateName"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isTSTypeElement=function(e,t){if(!e)return!1;const r=e.type;if("TSCallSignatureDeclaration"===r||"TSConstructSignatureDeclaration"===r||"TSPropertySignature"===r||"TSMethodSignature"===r||"TSIndexSignature"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isTSType=function(e,t){if(!e)return!1;const r=e.type;if("TSAnyKeyword"===r||"TSBooleanKeyword"===r||"TSBigIntKeyword"===r||"TSIntrinsicKeyword"===r||"TSNeverKeyword"===r||"TSNullKeyword"===r||"TSNumberKeyword"===r||"TSObjectKeyword"===r||"TSStringKeyword"===r||"TSSymbolKeyword"===r||"TSUndefinedKeyword"===r||"TSUnknownKeyword"===r||"TSVoidKeyword"===r||"TSThisType"===r||"TSFunctionType"===r||"TSConstructorType"===r||"TSTypeReference"===r||"TSTypePredicate"===r||"TSTypeQuery"===r||"TSTypeLiteral"===r||"TSArrayType"===r||"TSTupleType"===r||"TSOptionalType"===r||"TSRestType"===r||"TSUnionType"===r||"TSIntersectionType"===r||"TSConditionalType"===r||"TSInferType"===r||"TSParenthesizedType"===r||"TSTypeOperator"===r||"TSIndexedAccessType"===r||"TSMappedType"===r||"TSLiteralType"===r||"TSExpressionWithTypeArguments"===r||"TSImportType"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isTSBaseType=function(e,t){if(!e)return!1;const r=e.type;if("TSAnyKeyword"===r||"TSBooleanKeyword"===r||"TSBigIntKeyword"===r||"TSIntrinsicKeyword"===r||"TSNeverKeyword"===r||"TSNullKeyword"===r||"TSNumberKeyword"===r||"TSObjectKeyword"===r||"TSStringKeyword"===r||"TSSymbolKeyword"===r||"TSUndefinedKeyword"===r||"TSUnknownKeyword"===r||"TSVoidKeyword"===r||"TSThisType"===r||"TSLiteralType"===r)return void 0===t||(0,i.default)(e,t);return!1},t.isNumberLiteral=function(e,t){if(console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),!e)return!1;if("NumberLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isRegexLiteral=function(e,t){if(console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),!e)return!1;if("RegexLiteral"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isRestProperty=function(e,t){if(console.trace("The node type RestProperty has been renamed to RestElement"),!e)return!1;if("RestProperty"===e.type)return void 0===t||(0,i.default)(e,t);return!1},t.isSpreadProperty=function(e,t){if(console.trace("The node type SpreadProperty has been renamed to SpreadElement"),!e)return!1;if("SpreadProperty"===e.type)return void 0===t||(0,i.default)(e,t);return!1};var i=r(4729)},5001:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!t)return!1;if(!(0,n.default)(t.type,e))return!r&&"Placeholder"===t.type&&e in a.FLIPPED_ALIAS_KEYS&&(0,s.default)(t.expectedNode,e);return void 0===r||(0,i.default)(t,r)};var i=r(4729),n=r(4263),s=r(549),a=r(1102)},48:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(r&&"Identifier"===e.type&&"ObjectProperty"===t.type&&"ObjectExpression"===r.type)return!1;const n=i.default.keys[t.type];if(n)for(let r=0;r<n.length;r++){const i=t[n[r]];if(Array.isArray(i)){if(i.indexOf(e)>=0)return!0}else if(i===e)return!0}return!1};var i=r(5337)},7199:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.isFunctionDeclaration)(e)||(0,i.isClassDeclaration)(e)||(0,n.default)(e)};var i=r(3924),n=r(100)},3261:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,i.default)(e.type,"Immutable"))return!0;if((0,n.isIdentifier)(e))return"undefined"===e.name;return!1};var i=r(4263),n=r(3924)},100:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.isVariableDeclaration)(e)&&("var"!==e.kind||e[n.BLOCK_SCOPED_SYMBOL])};var i=r(3924),n=r(2770)},1860:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!(!e||!i.VISITOR_KEYS[e.type])};var i=r(1102)},7190:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function isNodesEquivalent(e,t){if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return e===t;if(e.type!==t.type)return!1;const r=Object.keys(i.NODE_FIELDS[e.type]||e.type),n=i.VISITOR_KEYS[e.type];for(const i of r){if(typeof e[i]!=typeof t[i])return!1;if(null!=e[i]||null!=t[i]){if(null==e[i]||null==t[i])return!1;if(Array.isArray(e[i])){if(!Array.isArray(t[i]))return!1;if(e[i].length!==t[i].length)return!1;for(let r=0;r<e[i].length;r++)if(!isNodesEquivalent(e[i][r],t[i][r]))return!1}else if("object"!=typeof e[i]||null!=n&&n.includes(i)){if(!isNodesEquivalent(e[i],t[i]))return!1}else for(const r of Object.keys(e[i]))if(e[i][r]!==t[i][r])return!1}}return!0};var i=r(1102)},549:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;const r=i.PLACEHOLDERS_ALIAS[e];if(r)for(const e of r)if(t===e)return!0;return!1};var i=r(1102)},2954:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){switch(t.type){case"MemberExpression":case"JSXMemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(t.params.includes(e))return!1;case"ObjectProperty":case"ClassProperty":case"ClassPrivateProperty":return t.key===e?!!t.computed:t.value!==e||(!r||"ObjectPattern"!==r.type);case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;case"LabeledStatement":case"CatchClause":case"RestElement":case"BreakStatement":case"ContinueStatement":case"FunctionDeclaration":case"FunctionExpression":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return(null==r||!r.source)&&t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"JSXAttribute":case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key!==e||!!t.computed}return!0}},5969:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.isBlockStatement)(e)&&((0,i.isFunction)(t)||(0,i.isCatchClause)(t)))return!1;if((0,i.isPattern)(e)&&((0,i.isFunction)(t)||(0,i.isCatchClause)(t)))return!0;return(0,i.isScopable)(e)};var i=r(3924)},1422:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.isImportDefaultSpecifier)(e)||(0,i.isIdentifier)(e.imported||e.exported,{name:"default"})};var i=r(3924)},4263:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;if(i.ALIAS_KEYS[t])return!1;const r=i.FLIPPED_ALIAS_KEYS[t];if(r){if(r[0]===e)return!0;for(const t of r)if(e===t)return!0}return!1};var i=r(1102)},2128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e)&&!n.has(e)};var i=r(6335);const n=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"])},6335:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!0){if("string"!=typeof e)return!1;if(t&&((0,i.isKeyword)(e)||(0,i.isStrictReservedWord)(e,!0)))return!1;return(0,i.isIdentifierName)(e)};var i=r(7075)},7117:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.isVariableDeclaration)(e,{kind:"var"})&&!e[n.BLOCK_SCOPED_SYMBOL]};var i=r(3924),n=r(2770)},4185:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!(0,i.isMemberExpression)(e))return!1;const n=Array.isArray(t)?t:t.split("."),s=[];let a;for(a=e;(0,i.isMemberExpression)(a);a=a.object)s.push(a.property);if(s.push(a),s.length<n.length)return!1;if(!r&&s.length>n.length)return!1;for(let e=0,t=s.length-1;e<n.length;e++,t--){const r=s[t];let a;if((0,i.isIdentifier)(r))a=r.name;else if((0,i.isStringLiteral)(r))a=r.value;else{if(!(0,i.isThisExpression)(r))return!1;a="this"}if(n[e]!==a)return!1}return!0};var i=r(3924)},5582:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!e&&/^[a-z]/.test(e)}},1934:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=(0,r(3427).default)("React.Component");t.default=i},1843:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!e)return;const n=i.NODE_FIELDS[e.type];if(!n)return;const s=n[t];validateField(e,t,r,s),validateChild(e,t,r)},t.validateField=validateField,t.validateChild=validateChild;var i=r(1102);function validateField(e,t,r,i){null!=i&&i.validate&&(i.optional&&null==r||i.validate(e,t,r))}function validateChild(e,t,r){if(null==r)return;const n=i.NODE_PARENT_VALIDATIONS[r.type];n&&n(e,t,r)}},9617:(e,t)=>{"use strict";t.byteLength=function(e){var t=getLens(e),r=t[0],i=t[1];return 3*(r+i)/4-i},t.toByteArray=function(e){var t,r,s=getLens(e),a=s[0],o=s[1],l=new n(function(e,t,r){return 3*(t+r)/4-r}(0,a,o)),c=0,u=o>0?a-4:a;for(r=0;r<u;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;2===o&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,l[c++]=255&t);1===o&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t);return l},t.fromByteArray=function(e){for(var t,i=e.length,n=i%3,s=[],a=16383,o=0,l=i-n;o<l;o+=a)s.push(encodeChunk(e,o,o+a>l?l:o+a));1===n?(t=e[i-1],s.push(r[t>>2]+r[t<<4&63]+"==")):2===n&&(t=(e[i-2]<<8)+e[i-1],s.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return s.join("")};for(var r=[],i=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function getLens(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function encodeChunk(e,t,i){for(var n,s,a=[],o=t;o<i;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),a.push(r[(s=n)>>18&63]+r[s>>12&63]+r[s>>6&63]+r[63&s]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},9052:(e,t,r)=>{"use strict";const i=r(9617),n=r(9218),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=Buffer,t.h2=50;const a=2147483647;function createBuffer(e){if(e>a)throw new RangeError(\'The value "\'+e+\'" is invalid for option "size"\');const t=new Uint8Array(e);return Object.setPrototypeOf(t,Buffer.prototype),t}function Buffer(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError(\'The "string" argument must be of type string. Received type number\');return allocUnsafe(e)}return from(e,t,r)}function from(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!Buffer.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|byteLength(e,t);let i=createBuffer(r);const n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return function(e){if(isInstance(e,Uint8Array)){const t=new Uint8Array(e);return fromArrayBuffer(t.buffer,t.byteOffset,t.byteLength)}return fromArrayLike(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(isInstance(e,ArrayBuffer)||e&&isInstance(e.buffer,ArrayBuffer))return fromArrayBuffer(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(isInstance(e,SharedArrayBuffer)||e&&isInstance(e.buffer,SharedArrayBuffer)))return fromArrayBuffer(e,t,r);if("number"==typeof e)throw new TypeError(\'The "value" argument must not be of type number. Received type number\');const i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return Buffer.from(i,t,r);const n=function(e){if(Buffer.isBuffer(e)){const t=0|checked(e.length),r=createBuffer(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||numberIsNaN(e.length)?createBuffer(0):fromArrayLike(e);if("Buffer"===e.type&&Array.isArray(e.data))return fromArrayLike(e.data)}(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return Buffer.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function assertSize(e){if("number"!=typeof e)throw new TypeError(\'"size" argument must be of type number\');if(e<0)throw new RangeError(\'The value "\'+e+\'" is invalid for option "size"\')}function allocUnsafe(e){return assertSize(e),createBuffer(e<0?0:0|checked(e))}function fromArrayLike(e){const t=e.length<0?0:0|checked(e.length),r=createBuffer(t);for(let i=0;i<t;i+=1)r[i]=255&e[i];return r}function fromArrayBuffer(e,t,r){if(t<0||e.byteLength<t)throw new RangeError(\'"offset" is outside of buffer bounds\');if(e.byteLength<t+(r||0))throw new RangeError(\'"length" is outside of buffer bounds\');let i;return i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(i,Buffer.prototype),i}function checked(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function byteLength(e,t){if(Buffer.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||isInstance(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError(\'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type \'+typeof e);const r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return utf8ToBytes(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return base64ToBytes(e).length;default:if(n)return i?-1:utf8ToBytes(e).length;t=(""+t).toLowerCase(),n=!0}}function slowToString(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return hexSlice(this,t,r);case"utf8":case"utf-8":return utf8Slice(this,t,r);case"ascii":return asciiSlice(this,t,r);case"latin1":case"binary":return latin1Slice(this,t,r);case"base64":return base64Slice(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function swap(e,t,r){const i=e[t];e[t]=e[r],e[r]=i}function bidirectionalIndexOf(e,t,r,i,n){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),numberIsNaN(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=Buffer.from(t,i)),Buffer.isBuffer(t))return 0===t.length?-1:arrayIndexOf(e,t,r,i,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):arrayIndexOf(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(e,t,r,i,n){let s,a=1,o=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,o/=2,l/=2,r/=2}function read(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){let i=-1;for(s=r;s<o;s++)if(read(e,s)===read(t,-1===i?0:s-i)){if(-1===i&&(i=s),s-i+1===l)return i*a}else-1!==i&&(s-=s-i),i=-1}else for(r+l>o&&(r=o-l),s=r;s>=0;s--){let r=!0;for(let i=0;i<l;i++)if(read(e,s+i)!==read(t,i)){r=!1;break}if(r)return s}return-1}function hexWrite(e,t,r,i){r=Number(r)||0;const n=e.length-r;i?(i=Number(i))>n&&(i=n):i=n;const s=t.length;let a;for(i>s/2&&(i=s/2),a=0;a<i;++a){const i=parseInt(t.substr(2*a,2),16);if(numberIsNaN(i))return a;e[r+a]=i}return a}function utf8Write(e,t,r,i){return blitBuffer(utf8ToBytes(t,e.length-r),e,r,i)}function asciiWrite(e,t,r,i){return blitBuffer(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function base64Write(e,t,r,i){return blitBuffer(base64ToBytes(t),e,r,i)}function ucs2Write(e,t,r,i){return blitBuffer(function(e,t){let r,i,n;const s=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,s.push(n),s.push(i);return s}(t,e.length-r),e,r,i)}function base64Slice(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function utf8Slice(e,t,r){r=Math.min(e.length,r);const i=[];let n=t;for(;n<r;){const t=e[n];let s=null,a=t>239?4:t>223?3:t>191?2:1;if(n+a<=r){let r,i,o,l;switch(a){case 1:t<128&&(s=t);break;case 2:r=e[n+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(s=l));break;case 3:r=e[n+1],i=e[n+2],128==(192&r)&&128==(192&i)&&(l=(15&t)<<12|(63&r)<<6|63&i,l>2047&&(l<55296||l>57343)&&(s=l));break;case 4:r=e[n+1],i=e[n+2],o=e[n+3],128==(192&r)&&128==(192&i)&&128==(192&o)&&(l=(15&t)<<18|(63&r)<<12|(63&i)<<6|63&o,l>65535&&l<1114112&&(s=l))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,i.push(s>>>10&1023|55296),s=56320|1023&s),i.push(s),n+=a}return function(e){const t=e.length;if(t<=o)return String.fromCharCode.apply(String,e);let r="",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=o));return r}(i)}Buffer.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),Buffer.poolSize=8192,Buffer.from=function(e,t,r){return from(e,t,r)},Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype),Object.setPrototypeOf(Buffer,Uint8Array),Buffer.alloc=function(e,t,r){return function(e,t,r){return assertSize(e),e<=0?createBuffer(e):void 0!==t?"string"==typeof r?createBuffer(e).fill(t,r):createBuffer(e).fill(t):createBuffer(e)}(e,t,r)},Buffer.allocUnsafe=function(e){return allocUnsafe(e)},Buffer.allocUnsafeSlow=function(e){return allocUnsafe(e)},Buffer.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==Buffer.prototype},Buffer.compare=function(e,t){if(isInstance(e,Uint8Array)&&(e=Buffer.from(e,e.offset,e.byteLength)),isInstance(t,Uint8Array)&&(t=Buffer.from(t,t.offset,t.byteLength)),!Buffer.isBuffer(e)||!Buffer.isBuffer(t))throw new TypeError(\'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array\');if(e===t)return 0;let r=e.length,i=t.length;for(let n=0,s=Math.min(r,i);n<s;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},Buffer.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function(e,t){if(!Array.isArray(e))throw new TypeError(\'"list" argument must be an Array of Buffers\');if(0===e.length)return Buffer.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const i=Buffer.allocUnsafe(t);let n=0;for(r=0;r<e.length;++r){let t=e[r];if(isInstance(t,Uint8Array))n+t.length>i.length?(Buffer.isBuffer(t)||(t=Buffer.from(t)),t.copy(i,n)):Uint8Array.prototype.set.call(i,t,n);else{if(!Buffer.isBuffer(t))throw new TypeError(\'"list" argument must be an Array of Buffers\');t.copy(i,n)}n+=t.length}return i},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)swap(this,t,t+1);return this},Buffer.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)swap(this,t,t+3),swap(this,t+1,t+2);return this},Buffer.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)swap(this,t,t+7),swap(this,t+1,t+6),swap(this,t+2,t+5),swap(this,t+3,t+4);return this},Buffer.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?utf8Slice(this,0,e):slowToString.apply(this,arguments)},Buffer.prototype.toLocaleString=Buffer.prototype.toString,Buffer.prototype.equals=function(e){if(!Buffer.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Buffer.compare(this,e)},Buffer.prototype.inspect=function(){let e="";const r=t.h2;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},s&&(Buffer.prototype[s]=Buffer.prototype.inspect),Buffer.prototype.compare=function(e,t,r,i,n){if(isInstance(e,Uint8Array)&&(e=Buffer.from(e,e.offset,e.byteLength)),!Buffer.isBuffer(e))throw new TypeError(\'The "target" argument must be one of type Buffer or Uint8Array. Received type \'+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return-1;if(t>=r)return 1;if(this===e)return 0;let s=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0);const o=Math.min(s,a),l=this.slice(i,n),c=e.slice(t,r);for(let e=0;e<o;++e)if(l[e]!==c[e]){s=l[e],a=c[e];break}return s<a?-1:a<s?1:0},Buffer.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},Buffer.prototype.indexOf=function(e,t,r){return bidirectionalIndexOf(this,e,t,r,!0)},Buffer.prototype.lastIndexOf=function(e,t,r){return bidirectionalIndexOf(this,e,t,r,!1)},Buffer.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0)}const n=this.length-t;if((void 0===r||r>n)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let s=!1;for(;;)switch(i){case"hex":return hexWrite(this,e,t,r);case"utf8":case"utf-8":return utf8Write(this,e,t,r);case"ascii":case"latin1":case"binary":return asciiWrite(this,e,t,r);case"base64":return base64Write(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const o=4096;function asciiSlice(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function latin1Slice(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function hexSlice(e,t,r){const i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);let n="";for(let i=t;i<r;++i)n+=u[e[i]];return n}function utf16leSlice(e,t,r){const i=e.slice(t,r);let n="";for(let e=0;e<i.length-1;e+=2)n+=String.fromCharCode(i[e]+256*i[e+1]);return n}function checkOffset(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function checkInt(e,t,r,i,n,s){if(!Buffer.isBuffer(e))throw new TypeError(\'"buffer" argument must be a Buffer instance\');if(t>n||t<s)throw new RangeError(\'"value" argument is out of bounds\');if(r+i>e.length)throw new RangeError("Index out of range")}function wrtBigUInt64LE(e,t,r,i,n){checkIntBI(t,i,n,e,r,7);let s=Number(t&BigInt(4294967295));e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function wrtBigUInt64BE(e,t,r,i,n){checkIntBI(t,i,n,e,r,7);let s=Number(t&BigInt(4294967295));e[r+7]=s,s>>=8,e[r+6]=s,s>>=8,e[r+5]=s,s>>=8,e[r+4]=s;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function checkIEEE754(e,t,r,i,n,s){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function writeFloat(e,t,r,i,s){return t=+t,r>>>=0,s||checkIEEE754(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function writeDouble(e,t,r,i,s){return t=+t,r>>>=0,s||checkIEEE754(e,0,r,8),n.write(e,t,r,i,52,8),r+8}Buffer.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const i=this.subarray(e,t);return Object.setPrototypeOf(i,Buffer.prototype),i},Buffer.prototype.readUintLE=Buffer.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||checkOffset(e,t,this.length);let i=this[e],n=1,s=0;for(;++s<t&&(n*=256);)i+=this[e+s]*n;return i},Buffer.prototype.readUintBE=Buffer.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||checkOffset(e,t,this.length);let i=this[e+--t],n=1;for(;t>0&&(n*=256);)i+=this[e+--t]*n;return i},Buffer.prototype.readUint8=Buffer.prototype.readUInt8=function(e,t){return e>>>=0,t||checkOffset(e,1,this.length),this[e]},Buffer.prototype.readUint16LE=Buffer.prototype.readUInt16LE=function(e,t){return e>>>=0,t||checkOffset(e,2,this.length),this[e]|this[e+1]<<8},Buffer.prototype.readUint16BE=Buffer.prototype.readUInt16BE=function(e,t){return e>>>=0,t||checkOffset(e,2,this.length),this[e]<<8|this[e+1]},Buffer.prototype.readUint32LE=Buffer.prototype.readUInt32LE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Buffer.prototype.readUint32BE=Buffer.prototype.readUInt32BE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Buffer.prototype.readBigUInt64LE=defineBigIntMethod((function(e){validateNumber(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||boundsError(e,this.length-8);const i=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,n=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(i)+(BigInt(n)<<BigInt(32))})),Buffer.prototype.readBigUInt64BE=defineBigIntMethod((function(e){validateNumber(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||boundsError(e,this.length-8);const i=t*2**24+65536*this[++e]+256*this[++e]+this[++e],n=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(i)<<BigInt(32))+BigInt(n)})),Buffer.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||checkOffset(e,t,this.length);let i=this[e],n=1,s=0;for(;++s<t&&(n*=256);)i+=this[e+s]*n;return n*=128,i>=n&&(i-=Math.pow(2,8*t)),i},Buffer.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||checkOffset(e,t,this.length);let i=t,n=1,s=this[e+--i];for(;i>0&&(n*=256);)s+=this[e+--i]*n;return n*=128,s>=n&&(s-=Math.pow(2,8*t)),s},Buffer.prototype.readInt8=function(e,t){return e>>>=0,t||checkOffset(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Buffer.prototype.readInt16LE=function(e,t){e>>>=0,t||checkOffset(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt16BE=function(e,t){e>>>=0,t||checkOffset(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt32LE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Buffer.prototype.readInt32BE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Buffer.prototype.readBigInt64LE=defineBigIntMethod((function(e){validateNumber(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||boundsError(e,this.length-8);const i=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(i)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),Buffer.prototype.readBigInt64BE=defineBigIntMethod((function(e){validateNumber(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||boundsError(e,this.length-8);const i=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(i)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),Buffer.prototype.readFloatLE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),n.read(this,e,!0,23,4)},Buffer.prototype.readFloatBE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),n.read(this,e,!1,23,4)},Buffer.prototype.readDoubleLE=function(e,t){return e>>>=0,t||checkOffset(e,8,this.length),n.read(this,e,!0,52,8)},Buffer.prototype.readDoubleBE=function(e,t){return e>>>=0,t||checkOffset(e,8,this.length),n.read(this,e,!1,52,8)},Buffer.prototype.writeUintLE=Buffer.prototype.writeUIntLE=function(e,t,r,i){if(e=+e,t>>>=0,r>>>=0,!i){checkInt(this,e,t,r,Math.pow(2,8*r)-1,0)}let n=1,s=0;for(this[t]=255&e;++s<r&&(n*=256);)this[t+s]=e/n&255;return t+r},Buffer.prototype.writeUintBE=Buffer.prototype.writeUIntBE=function(e,t,r,i){if(e=+e,t>>>=0,r>>>=0,!i){checkInt(this,e,t,r,Math.pow(2,8*r)-1,0)}let n=r-1,s=1;for(this[t+n]=255&e;--n>=0&&(s*=256);)this[t+n]=e/s&255;return t+r},Buffer.prototype.writeUint8=Buffer.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,1,255,0),this[t]=255&e,t+1},Buffer.prototype.writeUint16LE=Buffer.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},Buffer.prototype.writeUint16BE=Buffer.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},Buffer.prototype.writeUint32LE=Buffer.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},Buffer.prototype.writeUint32BE=Buffer.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Buffer.prototype.writeBigUInt64LE=defineBigIntMethod((function(e,t=0){return wrtBigUInt64LE(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),Buffer.prototype.writeBigUInt64BE=defineBigIntMethod((function(e,t=0){return wrtBigUInt64BE(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),Buffer.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){const i=Math.pow(2,8*r-1);checkInt(this,e,t,r,i-1,-i)}let n=0,s=1,a=0;for(this[t]=255&e;++n<r&&(s*=256);)e<0&&0===a&&0!==this[t+n-1]&&(a=1),this[t+n]=(e/s>>0)-a&255;return t+r},Buffer.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){const i=Math.pow(2,8*r-1);checkInt(this,e,t,r,i-1,-i)}let n=r-1,s=1,a=0;for(this[t+n]=255&e;--n>=0&&(s*=256);)e<0&&0===a&&0!==this[t+n+1]&&(a=1),this[t+n]=(e/s>>0)-a&255;return t+r},Buffer.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},Buffer.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},Buffer.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},Buffer.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},Buffer.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Buffer.prototype.writeBigInt64LE=defineBigIntMethod((function(e,t=0){return wrtBigUInt64LE(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),Buffer.prototype.writeBigInt64BE=defineBigIntMethod((function(e,t=0){return wrtBigUInt64BE(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),Buffer.prototype.writeFloatLE=function(e,t,r){return writeFloat(this,e,t,!0,r)},Buffer.prototype.writeFloatBE=function(e,t,r){return writeFloat(this,e,t,!1,r)},Buffer.prototype.writeDoubleLE=function(e,t,r){return writeDouble(this,e,t,!0,r)},Buffer.prototype.writeDoubleBE=function(e,t,r){return writeDouble(this,e,t,!1,r)},Buffer.prototype.copy=function(e,t,r,i){if(!Buffer.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);const n=i-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,i):Uint8Array.prototype.set.call(e,this.subarray(r,i),t),n},Buffer.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!Buffer.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===e.length){const t=e.charCodeAt(0);("utf8"===i&&t<128||"latin1"===i)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let n;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;else{const s=Buffer.isBuffer(e)?e:Buffer.from(e,i),a=s.length;if(0===a)throw new TypeError(\'The value "\'+e+\'" is invalid for argument "value"\');for(n=0;n<r-t;++n)this[n+t]=s[n%a]}return this};const l={};function E(e,t,r){l[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function addNumericalSeparator(e){let t="",r=e.length;const i="-"===e[0]?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function checkIntBI(e,t,r,i,n,s){if(e>r||e<t){const i="bigint"==typeof t?"n":"";let n;throw n=s>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${8*(s+1)}${i}`:`>= -(2${i} ** ${8*(s+1)-1}${i}) and < 2 ** ${8*(s+1)-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new l.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,r){validateNumber(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||boundsError(t,e.length-(r+1))}(i,n,s)}function validateNumber(e,t){if("number"!=typeof e)throw new l.ERR_INVALID_ARG_TYPE(t,"number",e)}function boundsError(e,t,r){if(Math.floor(e)!==e)throw validateNumber(e,r),new l.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new l.ERR_BUFFER_OUT_OF_BOUNDS;throw new l.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}E("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),E("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),E("ERR_OUT_OF_RANGE",(function(e,t,r){let i=`The value of "${e}" is out of range.`,n=r;return Number.isInteger(r)&&Math.abs(r)>2**32?n=addNumericalSeparator(String(r)):"bigint"==typeof r&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=addNumericalSeparator(n)),n+="n"),i+=` It must be ${t}. Received ${n}`,i}),RangeError);const c=/[^+/0-9A-Za-z-_]/g;function utf8ToBytes(e,t){let r;t=t||1/0;const i=e.length;let n=null;const s=[];for(let a=0;a<i;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function base64ToBytes(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(c,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function blitBuffer(e,t,r,i){let n;for(n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function isInstance(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function numberIsNaN(e){return e!=e}const u=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const i=16*r;for(let n=0;n<16;++n)t[i+n]=e[r]+e[n]}return t}();function defineBigIntMethod(e){return"undefined"==typeof BigInt?BufferBigIntNotDefined:e}function BufferBigIntNotDefined(){throw new Error("BigInt not supported")}},9218:(e,t)=>{t.read=function(e,t,r,i,n){var s,a,o=8*n-i-1,l=(1<<o)-1,c=l>>1,u=-7,p=r?n-1:0,d=r?-1:1,h=e[t+p];for(p+=d,s=h&(1<<-u)-1,h>>=-u,u+=o;u>0;s=256*s+e[t+p],p+=d,u-=8);for(a=s&(1<<-u)-1,s>>=-u,u+=i;u>0;a=256*a+e[t+p],p+=d,u-=8);if(0===s)s=1-c;else{if(s===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,i),s-=c}return(h?-1:1)*a*Math.pow(2,s-i)},t.write=function(e,t,r,i,n,s){var a,o,l,c=8*s-n-1,u=(1<<c)-1,p=u>>1,d=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,h=i?0:s-1,f=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+p>=1?d/l:d*Math.pow(2,1-p))*l>=2&&(a++,l/=2),a+p>=u?(o=0,a=u):a+p>=1?(o=(t*l-1)*Math.pow(2,n),a+=p):(o=t*Math.pow(2,p-1)*Math.pow(2,n),a=0));n>=8;e[r+h]=255&o,h+=f,o/=256,n-=8);for(a=a<<n|o,c+=n;c>0;e[r+h]=255&a,h+=f,a/=256,c-=8);e[r+h-f]|=128*m}},4987:(e,t,r)=>{var i=r(397);t.log=function(...e){return"object"==typeof console&&console.log&&console.log(...e)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let i=0,n=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(i++,"%c"===e&&(n=i))})),t.splice(n,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==i&&"env"in i&&(e=i.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=r(7179)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7179:(e,t,r)=>{e.exports=function(e){function selectColor(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return createDebug.colors[Math.abs(t)%createDebug.colors.length]}function createDebug(e){let t;function debug(...e){if(!debug.enabled)return;const r=debug,i=Number(new Date),n=i-(t||i);r.diff=n,r.prev=t,r.curr=i,t=i,e[0]=createDebug.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,i)=>{if("%%"===t)return t;s++;const n=createDebug.formatters[i];if("function"==typeof n){const i=e[s];t=n.call(r,i),e.splice(s,1),s--}return t})),createDebug.formatArgs.call(r,e);(r.log||createDebug.log).apply(r,e)}return debug.namespace=e,debug.enabled=createDebug.enabled(e),debug.useColors=createDebug.useColors(),debug.color=selectColor(e),debug.destroy=destroy,debug.extend=extend,"function"==typeof createDebug.init&&createDebug.init(debug),createDebug.instances.push(debug),debug}function destroy(){const e=createDebug.instances.indexOf(this);return-1!==e&&(createDebug.instances.splice(e,1),!0)}function extend(e,t){const r=createDebug(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\\.\\*\\?$/,"*")}return createDebug.debug=createDebug,createDebug.default=createDebug,createDebug.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},createDebug.disable=function(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((e=>"-"+e))].join(",");return createDebug.enable(""),e},createDebug.enable=function(e){let t;createDebug.save(e),createDebug.names=[],createDebug.skips=[];const r=("string"==typeof e?e:"").split(/[\\s,]+/),i=r.length;for(t=0;t<i;t++)r[t]&&("-"===(e=r[t].replace(/\\*/g,".*?"))[0]?createDebug.skips.push(new RegExp("^"+e.substr(1)+"$")):createDebug.names.push(new RegExp("^"+e+"$")));for(t=0;t<createDebug.instances.length;t++){const e=createDebug.instances[t];e.enabled=createDebug.enabled(e.namespace)}},createDebug.enabled=function(e){if("*"===e[e.length-1])return!0;let t,r;for(t=0,r=createDebug.skips.length;t<r;t++)if(createDebug.skips[t].test(e))return!1;for(t=0,r=createDebug.names.length;t<r;t++)if(createDebug.names[t].test(e))return!0;return!1},createDebug.humanize=r(1331),Object.keys(e).forEach((t=>{createDebug[t]=e[t]})),createDebug.instances=[],createDebug.names=[],createDebug.skips=[],createDebug.formatters={},createDebug.selectColor=selectColor,createDebug.enable(createDebug.load()),createDebug}},8715:function(e,t,r){var i,n,s;!function(a,o){"use strict";n=[r(7356)],void 0===(s="function"==typeof(i=function(e){var t=/(^|@)\\S+:\\d+/,r=/^\\s*at .*(\\S+:\\d+|\\(native\\))/m,i=/^(eval@)?(\\[native code])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(r))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\\d+))?(?::(\\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split("\\n").filter((function(e){return!!e.match(r)}),this).map((function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\\(eval at [^()]*)|(\\),.*$)/g,""));var r=t.replace(/^\\s+/,"").replace(/\\(eval code/g,"("),i=r.match(/ (\\((.+):(\\d+):(\\d+)\\)$)/),n=(r=i?r.replace(i[0],""):r).split(/\\s+/).slice(1),s=this.extractLocation(i?i[1]:n.pop()),a=n.join(" ")||void 0,o=["eval","<anonymous>"].indexOf(s[0])>-1?void 0:s[0];return new e({functionName:a,fileName:o,lineNumber:s[1],columnNumber:s[2],source:t})}),this)},parseFFOrSafari:function(t){return t.stack.split("\\n").filter((function(e){return!e.match(i)}),this).map((function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\\d+)(?: > eval line \\d+)* > eval:\\d+:\\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var r=/((.*".+"[^@]*)?[^@]*)(?:@)/,i=t.match(r),n=i&&i[1]?i[1]:void 0,s=this.extractLocation(t.replace(r,""));return new e({functionName:n,fileName:s[0],lineNumber:s[1],columnNumber:s[2],source:t})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\\n")>-1&&e.message.split("\\n").length>e.stacktrace.split("\\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var r=/Line (\\d+).*script (?:in )?(\\S+)/i,i=t.message.split("\\n"),n=[],s=2,a=i.length;s<a;s+=2){var o=r.exec(i[s]);o&&n.push(new e({fileName:o[2],lineNumber:o[1],source:i[s]}))}return n},parseOpera10:function(t){for(var r=/Line (\\d+).*script (?:in )?(\\S+)(?:: In function (\\S+))?$/i,i=t.stacktrace.split("\\n"),n=[],s=0,a=i.length;s<a;s+=2){var o=r.exec(i[s]);o&&n.push(new e({functionName:o[3]||void 0,fileName:o[2],lineNumber:o[1],source:i[s]}))}return n},parseOpera11:function(r){return r.stack.split("\\n").filter((function(e){return!!e.match(t)&&!e.match(/^Error created at/)}),this).map((function(t){var r,i=t.split("@"),n=this.extractLocation(i.pop()),s=i.shift()||"",a=s.replace(/<anonymous function(: (\\w+))?>/,"$2").replace(/\\([^)]*\\)/g,"")||void 0;s.match(/\\(([^)]*)\\)/)&&(r=s.replace(/^[^(]+\\(([^)]*)\\)$/,"$1"));var o=void 0===r||"[arguments not available]"===r?void 0:r.split(",");return new e({functionName:a,args:o,fileName:n[0],lineNumber:n[1],columnNumber:n[2],source:t})}),this)}}})?i.apply(t,n):i)||(e.exports=s)}()},1014:e=>{"use strict";var t=/[|\\\\{}()[\\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(t,"\\\\$&")}},2261:(e,t,r)=>{"use strict";e.exports=r(964)},8631:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=/(([\'"])(?:(?!\\2|\\\\).|\\\\(?:\\r\\n|[\\s\\S]))*(\\2)?|`(?:[^`\\\\$]|\\\\[\\s\\S]|\\$(?!\\{)|\\$\\{(?:[^{}]|\\{[^}]*\\}?)*\\}?)*(`)?)|(\\/\\/.*)|(\\/\\*(?:[^*]|\\*(?!\\/))*(\\*\\/)?)|(\\/(?!\\*)(?:\\[(?:(?![\\]\\\\]).|\\\\.)*\\]|(?![\\/\\]\\\\]).|\\\\.)+\\/(?:(?!\\s*(?:\\b|[\\u0080-\\uFFFF$\\\\\'"~({]|[+\\-!](?!=)|\\.?\\d))|[gmiyus]{1,6}\\b(?![\\u0080-\\uFFFF$\\\\]|\\s*(?:[+\\-*%&|^<>!=?({]|\\/(?![\\/*])))))|(0[xX][\\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][+-]?\\d+)?)|((?!\\d)(?:(?!\\s)[$\\w\\u0080-\\uFFFF]|\\\\u[\\da-fA-F]{4}|\\\\u\\{[\\da-fA-F]+\\})+)|(--|\\+\\+|&&|\\|\\||=>|\\.{3}|(?:[+\\-\\/%&|^]|\\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\\](){}])|(\\s+)|(^$|[\\s\\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},442:(e,t,r)=>{"use strict";var i=r(9052).lW;const n={},s=n.hasOwnProperty,forOwn=(e,t)=>{for(const r in e)s.call(e,r)&&t(r,e[r])},a=n.toString,o=Array.isArray,l=i.isBuffer,c={\'"\':\'\\\\"\',"\'":"\\\\\'","\\\\":"\\\\\\\\","\\b":"\\\\b","\\f":"\\\\f","\\n":"\\\\n","\\r":"\\\\r","\\t":"\\\\t"},u=/["\'\\\\\\b\\f\\n\\r\\t]/,p=/[0-9]/,d=/[ !#-&\\(-\\[\\]-_a-~]/,jsesc=(e,t)=>{const increaseIndentation=()=>{T=y,++t.indentLevel,y=t.indent.repeat(t.indentLevel)},r={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\\t",indentLevel:0,__inline1__:!1,__inline2__:!1},i=t&&t.json;var n,s;i&&(r.quotes="double",r.wrap=!0),n=r,t=(s=t)?(forOwn(s,((e,t)=>{n[e]=t})),n):n,"single"!=t.quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");const h="double"==t.quotes?\'"\':"backtick"==t.quotes?"`":"\'",f=t.compact,m=t.lowercaseHex;let y=t.indent.repeat(t.indentLevel),T="";const g=t.__inline1__,b=t.__inline2__,S=f?"":"\\n";let x,P=!0;const v="binary"==t.numbers,A="octal"==t.numbers,w="decimal"==t.numbers,I="hexadecimal"==t.numbers;if(i&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!(e=>"string"==typeof e||"[object String]"==a.call(e))(e)){if((e=>"[object Map]"==a.call(e))(e))return 0==e.size?"new Map()":(f||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+jsesc(Array.from(e),t)+")");if((e=>"[object Set]"==a.call(e))(e))return 0==e.size?"new Set()":"new Set("+jsesc(Array.from(e),t)+")";if(l(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+jsesc(Array.from(e),t)+")";if(o(e))return x=[],t.wrap=!0,g&&(t.__inline1__=!1,t.__inline2__=!0),b||increaseIndentation(),((e,t)=>{const r=e.length;let i=-1;for(;++i<r;)t(e[i])})(e,(e=>{P=!1,b&&(t.__inline2__=!1),x.push((f||b?"":y)+jsesc(e,t))})),P?"[]":b?"["+x.join(", ")+"]":"["+S+x.join(","+S)+S+(f?"":T)+"]";if(!(e=>"number"==typeof e||"[object Number]"==a.call(e))(e))return(e=>"[object Object]"==a.call(e))(e)?(x=[],t.wrap=!0,increaseIndentation(),forOwn(e,((e,r)=>{P=!1,x.push((f?"":y)+jsesc(e,t)+":"+(f?"":" ")+jsesc(r,t))})),P?"{}":"{"+S+x.join(","+S)+S+(f?"":T)+"}"):i?JSON.stringify(e)||"null":String(e);if(i)return JSON.stringify(e);if(w)return String(e);if(I){let t=e.toString(16);return m||(t=t.toUpperCase()),"0x"+t}if(v)return"0b"+e.toString(2);if(A)return"0o"+e.toString(8)}const C=e;let O=-1;const N=C.length;for(x="";++O<N;){const e=C.charAt(O);if(t.es6){const e=C.charCodeAt(O);if(e>=55296&&e<=56319&&N>O+1){const t=C.charCodeAt(O+1);if(t>=56320&&t<=57343){let r=(1024*(e-55296)+t-56320+65536).toString(16);m||(r=r.toUpperCase()),x+="\\\\u{"+r+"}",++O;continue}}}if(!t.escapeEverything){if(d.test(e)){x+=e;continue}if(\'"\'==e){x+=h==e?\'\\\\"\':e;continue}if("`"==e){x+=h==e?"\\\\`":e;continue}if("\'"==e){x+=h==e?"\\\\\'":e;continue}}if("\\0"==e&&!i&&!p.test(C.charAt(O+1))){x+="\\\\0";continue}if(u.test(e)){x+=c[e];continue}const r=e.charCodeAt(0);if(t.minimal&&8232!=r&&8233!=r){x+=e;continue}let n=r.toString(16);m||(n=n.toUpperCase());const s=n.length>2||i,a="\\\\"+(s?"u":"x")+("0000"+n).slice(s?-4:-2);x+=a}return t.wrap&&(x=h+x+h),"`"==h&&(x=x.replace(/\\$\\{/g,"\\\\${")),t.isScriptContext?x.replace(/<\\/(script|style)/gi,"<\\\\/$1").replace(/\x3c!--/g,i?"\\\\u003C!--":"\\\\x3C!--"):x};jsesc.version="2.5.2",e.exports=jsesc},663:(e,t,r)=>{var i=r(1124)(r(358),"DataView");e.exports=i},4329:(e,t,r)=>{var i=r(8769),n=r(9749),s=r(7137),a=r(9282),o=r(5653);function Hash(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Hash.prototype.clear=i,Hash.prototype.delete=n,Hash.prototype.get=s,Hash.prototype.has=a,Hash.prototype.set=o,e.exports=Hash},4351:(e,t,r)=>{var i=r(4248),n=r(600),s=r(4828),a=r(5090),o=r(6716);function ListCache(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}ListCache.prototype.clear=i,ListCache.prototype.delete=n,ListCache.prototype.get=s,ListCache.prototype.has=a,ListCache.prototype.set=o,e.exports=ListCache},757:(e,t,r)=>{var i=r(1124)(r(358),"Map");e.exports=i},9701:(e,t,r)=>{var i=r(1120),n=r(8824),s=r(7978),a=r(5785),o=r(9125);function MapCache(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}MapCache.prototype.clear=i,MapCache.prototype.delete=n,MapCache.prototype.get=s,MapCache.prototype.has=a,MapCache.prototype.set=o,e.exports=MapCache},6978:(e,t,r)=>{var i=r(1124)(r(358),"Promise");e.exports=i},5013:(e,t,r)=>{var i=r(1124)(r(358),"Set");e.exports=i},2053:(e,t,r)=>{var i=r(4351),n=r(6002),s=r(9084),a=r(1738),o=r(9633),l=r(3773);function Stack(e){var t=this.__data__=new i(e);this.size=t.size}Stack.prototype.clear=n,Stack.prototype.delete=s,Stack.prototype.get=a,Stack.prototype.has=o,Stack.prototype.set=l,e.exports=Stack},3952:(e,t,r)=>{var i=r(358).Symbol;e.exports=i},2669:(e,t,r)=>{var i=r(358).Uint8Array;e.exports=i},4885:(e,t,r)=>{var i=r(1124)(r(358),"WeakMap");e.exports=i},6086:e=>{e.exports=function(e,t){for(var r=-1,i=null==e?0:e.length;++r<i&&!1!==t(e[r],r,e););return e}},644:e=>{e.exports=function(e,t){for(var r=-1,i=null==e?0:e.length,n=0,s=[];++r<i;){var a=e[r];t(a,r,e)&&(s[n++]=a)}return s}},8962:(e,t,r)=>{var i=r(455),n=r(5245),s=r(1241),a=r(6647),o=r(2581),l=r(43),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=s(e),u=!r&&n(e),p=!r&&!u&&a(e),d=!r&&!u&&!p&&l(e),h=r||u||p||d,f=h?i(e.length,String):[],m=f.length;for(var y in e)!t&&!c.call(e,y)||h&&("length"==y||p&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||o(y,m))||f.push(y);return f}},764:e=>{e.exports=function(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}},3639:(e,t,r)=>{var i=r(4707),n=r(9045),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];s.call(e,t)&&n(a,r)&&(void 0!==r||t in e)||i(e,t,r)}},213:(e,t,r)=>{var i=r(9045);e.exports=function(e,t){for(var r=e.length;r--;)if(i(e[r][0],t))return r;return-1}},4230:(e,t,r)=>{var i=r(4588),n=r(5901);e.exports=function(e,t){return e&&i(t,n(t),e)}},8701:(e,t,r)=>{var i=r(4588),n=r(7258);e.exports=function(e,t){return e&&i(t,n(t),e)}},4707:(e,t,r)=>{var i=r(5174);e.exports=function(e,t,r){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},4337:(e,t,r)=>{var i=r(2053),n=r(6086),s=r(3639),a=r(4230),o=r(8701),l=r(1003),c=r(7954),u=r(7681),p=r(7410),d=r(3291),h=r(491),f=r(327),m=r(6770),y=r(6214),T=r(3672),g=r(1241),b=r(6647),S=r(8852),x=r(2901),P=r(1338),v=r(5901),A=r(7258),w="[object Arguments]",I="[object Function]",C="[object Object]",O={};O[w]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[C]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[I]=O["[object WeakMap]"]=!1,e.exports=function baseClone(e,t,r,N,_,k){var D,L=1&t,M=2&t,B=4&t;if(r&&(D=_?r(e,N,_,k):r(e)),void 0!==D)return D;if(!x(e))return e;var j=g(e);if(j){if(D=m(e),!L)return c(e,D)}else{var R=f(e),F=R==I||"[object GeneratorFunction]"==R;if(b(e))return l(e,L);if(R==C||R==w||F&&!_){if(D=M||F?{}:T(e),!L)return M?p(e,o(D,e)):u(e,a(D,e))}else{if(!O[R])return _?e:{};D=y(e,R,L)}}k||(k=new i);var U=k.get(e);if(U)return U;k.set(e,D),P(e)?e.forEach((function(i){D.add(baseClone(i,t,r,i,e,k))})):S(e)&&e.forEach((function(i,n){D.set(n,baseClone(i,t,r,n,e,k))}));var K=j?void 0:(B?M?h:d:M?A:v)(e);return n(K||e,(function(i,n){K&&(i=e[n=i]),s(D,n,baseClone(i,t,r,n,e,k))})),D}},7867:(e,t,r)=>{var i=r(2901),n=Object.create,s=function(){function object(){}return function(e){if(!i(e))return{};if(n)return n(e);object.prototype=e;var t=new object;return object.prototype=void 0,t}}();e.exports=s},4582:(e,t,r)=>{var i=r(764),n=r(1241);e.exports=function(e,t,r){var s=t(e);return n(e)?s:i(s,r(e))}},436:(e,t,r)=>{var i=r(3952),n=r(4370),s=r(4639),a=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?n(e):s(e)}},5439:(e,t,r)=>{var i=r(436),n=r(5819);e.exports=function(e){return n(e)&&"[object Arguments]"==i(e)}},5863:(e,t,r)=>{var i=r(327),n=r(5819);e.exports=function(e){return n(e)&&"[object Map]"==i(e)}},7221:(e,t,r)=>{var i=r(5426),n=r(1485),s=r(2901),a=r(4193),o=/^\\[object .+?Constructor\\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,p=c.hasOwnProperty,d=RegExp("^"+u.call(p).replace(/[\\\\^$.*+?()[\\]{}|]/g,"\\\\$&").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!s(e)||n(e))&&(i(e)?d:o).test(a(e))}},9853:(e,t,r)=>{var i=r(436),n=r(5819);e.exports=function(e){return n(e)&&"[object RegExp]"==i(e)}},8461:(e,t,r)=>{var i=r(327),n=r(5819);e.exports=function(e){return n(e)&&"[object Set]"==i(e)}},2376:(e,t,r)=>{var i=r(436),n=r(9982),s=r(5819),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return s(e)&&n(e.length)&&!!a[i(e)]}},8349:(e,t,r)=>{var i=r(8363),n=r(3524),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return n(e);var t=[];for(var r in Object(e))s.call(e,r)&&"constructor"!=r&&t.push(r);return t}},4665:(e,t,r)=>{var i=r(2901),n=r(8363),s=r(4222),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return s(e);var t=n(e),r=[];for(var o in e)("constructor"!=o||!t&&a.call(e,o))&&r.push(o);return r}},455:e=>{e.exports=function(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}},6753:e=>{e.exports=function(e){return function(t){return e(t)}}},1411:(e,t,r)=>{var i=r(2669);e.exports=function(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}},1003:(e,t,r)=>{e=r.nmd(e);var i=r(358),n=t&&!t.nodeType&&t,s=n&&e&&!e.nodeType&&e,a=s&&s.exports===n?i.Buffer:void 0,o=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,i=o?o(r):new e.constructor(r);return e.copy(i),i}},6923:(e,t,r)=>{var i=r(1411);e.exports=function(e,t){var r=t?i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},9499:e=>{var t=/\\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},9452:(e,t,r)=>{var i=r(3952),n=i?i.prototype:void 0,s=n?n.valueOf:void 0;e.exports=function(e){return s?Object(s.call(e)):{}}},8585:(e,t,r)=>{var i=r(1411);e.exports=function(e,t){var r=t?i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},7954:e=>{e.exports=function(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}},4588:(e,t,r)=>{var i=r(3639),n=r(4707);e.exports=function(e,t,r,s){var a=!r;r||(r={});for(var o=-1,l=t.length;++o<l;){var c=t[o],u=s?s(r[c],e[c],c,r,e):void 0;void 0===u&&(u=e[c]),a?n(r,c,u):i(r,c,u)}return r}},7681:(e,t,r)=>{var i=r(4588),n=r(6646);e.exports=function(e,t){return i(e,n(e),t)}},7410:(e,t,r)=>{var i=r(4588),n=r(3071);e.exports=function(e,t){return i(e,n(e),t)}},2397:(e,t,r)=>{var i=r(358)["__core-js_shared__"];e.exports=i},5174:(e,t,r)=>{var i=r(1124),n=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=n},6241:e=>{var t="object"==typeof global&&global&&global.Object===Object&&global;e.exports=t},3291:(e,t,r)=>{var i=r(4582),n=r(6646),s=r(5901);e.exports=function(e){return i(e,s,n)}},491:(e,t,r)=>{var i=r(4582),n=r(3071),s=r(7258);e.exports=function(e){return i(e,s,n)}},2920:(e,t,r)=>{var i=r(152);e.exports=function(e,t){var r=e.__data__;return i(t)?r["string"==typeof t?"string":"hash"]:r.map}},1124:(e,t,r)=>{var i=r(7221),n=r(7447);e.exports=function(e,t){var r=n(e,t);return i(r)?r:void 0}},428:(e,t,r)=>{var i=r(7403)(Object.getPrototypeOf,Object);e.exports=i},4370:(e,t,r)=>{var i=r(3952),n=Object.prototype,s=n.hasOwnProperty,a=n.toString,o=i?i.toStringTag:void 0;e.exports=function(e){var t=s.call(e,o),r=e[o];try{e[o]=void 0;var i=!0}catch(e){}var n=a.call(e);return i&&(t?e[o]=r:delete e[o]),n}},6646:(e,t,r)=>{var i=r(644),n=r(4063),s=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,o=a?function(e){return null==e?[]:(e=Object(e),i(a(e),(function(t){return s.call(e,t)})))}:n;e.exports=o},3071:(e,t,r)=>{var i=r(764),n=r(428),s=r(6646),a=r(4063),o=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)i(t,s(e)),e=n(e);return t}:a;e.exports=o},327:(e,t,r)=>{var i=r(663),n=r(757),s=r(6978),a=r(5013),o=r(4885),l=r(436),c=r(4193),u="[object Map]",p="[object Promise]",d="[object Set]",h="[object WeakMap]",f="[object DataView]",m=c(i),y=c(n),T=c(s),g=c(a),b=c(o),S=l;(i&&S(new i(new ArrayBuffer(1)))!=f||n&&S(new n)!=u||s&&S(s.resolve())!=p||a&&S(new a)!=d||o&&S(new o)!=h)&&(S=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,i=r?c(r):"";if(i)switch(i){case m:return f;case y:return u;case T:return p;case g:return d;case b:return h}return t}),e.exports=S},7447:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},8769:(e,t,r)=>{var i=r(8329);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},9749:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7137:(e,t,r)=>{var i=r(8329),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return n.call(t,e)?t[e]:void 0}},9282:(e,t,r)=>{var i=r(8329),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:n.call(t,e)}},5653:(e,t,r)=>{var i=r(8329);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},6770:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,i=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(i.index=e.index,i.input=e.input),i}},6214:(e,t,r)=>{var i=r(1411),n=r(6923),s=r(9499),a=r(9452),o=r(8585);e.exports=function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return i(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return n(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return o(e,r);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return s(e);case"[object Symbol]":return a(e)}}},3672:(e,t,r)=>{var i=r(7867),n=r(428),s=r(8363);e.exports=function(e){return"function"!=typeof e.constructor||s(e)?{}:i(n(e))}},2581:e=>{var t=/^(?:0|[1-9]\\d*)$/;e.exports=function(e,r){var i=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<r}},152:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},1485:(e,t,r)=>{var i,n=r(2397),s=(i=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!s&&s in e}},8363:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},4248:e=>{e.exports=function(){this.__data__=[],this.size=0}},600:(e,t,r)=>{var i=r(213),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=i(t,e);return!(r<0)&&(r==t.length-1?t.pop():n.call(t,r,1),--this.size,!0)}},4828:(e,t,r)=>{var i=r(213);e.exports=function(e){var t=this.__data__,r=i(t,e);return r<0?void 0:t[r][1]}},5090:(e,t,r)=>{var i=r(213);e.exports=function(e){return i(this.__data__,e)>-1}},6716:(e,t,r)=>{var i=r(213);e.exports=function(e,t){var r=this.__data__,n=i(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}},1120:(e,t,r)=>{var i=r(4329),n=r(4351),s=r(757);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(s||n),string:new i}}},8824:(e,t,r)=>{var i=r(2920);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},7978:(e,t,r)=>{var i=r(2920);e.exports=function(e){return i(this,e).get(e)}},5785:(e,t,r)=>{var i=r(2920);e.exports=function(e){return i(this,e).has(e)}},9125:(e,t,r)=>{var i=r(2920);e.exports=function(e,t){var r=i(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}},8329:(e,t,r)=>{var i=r(1124)(Object,"create");e.exports=i},3524:(e,t,r)=>{var i=r(7403)(Object.keys,Object);e.exports=i},4222:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},8229:(e,t,r)=>{e=r.nmd(e);var i=r(6241),n=t&&!t.nodeType&&t,s=n&&e&&!e.nodeType&&e,a=s&&s.exports===n&&i.process,o=function(){try{var e=s&&s.require&&s.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=o},4639:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7403:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},358:(e,t,r)=>{var i=r(6241),n="object"==typeof self&&self&&self.Object===Object&&self,s=i||n||Function("return this")();e.exports=s},6002:(e,t,r)=>{var i=r(4351);e.exports=function(){this.__data__=new i,this.size=0}},9084:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},1738:e=>{e.exports=function(e){return this.__data__.get(e)}},9633:e=>{e.exports=function(e){return this.__data__.has(e)}},3773:(e,t,r)=>{var i=r(4351),n=r(757),s=r(9701);e.exports=function(e,t){var r=this.__data__;if(r instanceof i){var a=r.__data__;if(!n||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new s(a)}return r.set(e,t),this.size=r.size,this}},4193:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},5375:(e,t,r)=>{var i=r(4337);e.exports=function(e){return i(e,4)}},9045:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5245:(e,t,r)=>{var i=r(5439),n=r(5819),s=Object.prototype,a=s.hasOwnProperty,o=s.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return n(e)&&a.call(e,"callee")&&!o.call(e,"callee")};e.exports=l},1241:e=>{var t=Array.isArray;e.exports=t},3902:(e,t,r)=>{var i=r(5426),n=r(9982);e.exports=function(e){return null!=e&&n(e.length)&&!i(e)}},6647:(e,t,r)=>{e=r.nmd(e);var i=r(358),n=r(401),s=t&&!t.nodeType&&t,a=s&&e&&!e.nodeType&&e,o=a&&a.exports===s?i.Buffer:void 0,l=(o?o.isBuffer:void 0)||n;e.exports=l},5426:(e,t,r)=>{var i=r(436),n=r(2901);e.exports=function(e){if(!n(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},9982:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},8852:(e,t,r)=>{var i=r(5863),n=r(6753),s=r(8229),a=s&&s.isMap,o=a?n(a):i;e.exports=o},2901:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5819:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3177:(e,t,r)=>{var i=r(436),n=r(428),s=r(5819),a=Function.prototype,o=Object.prototype,l=a.toString,c=o.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!s(e)||"[object Object]"!=i(e))return!1;var t=n(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==u}},7832:(e,t,r)=>{var i=r(9853),n=r(6753),s=r(8229),a=s&&s.isRegExp,o=a?n(a):i;e.exports=o},1338:(e,t,r)=>{var i=r(8461),n=r(6753),s=r(8229),a=s&&s.isSet,o=a?n(a):i;e.exports=o},43:(e,t,r)=>{var i=r(2376),n=r(6753),s=r(8229),a=s&&s.isTypedArray,o=a?n(a):i;e.exports=o},5901:(e,t,r)=>{var i=r(8962),n=r(8349),s=r(3902);e.exports=function(e){return s(e)?i(e):n(e)}},7258:(e,t,r)=>{var i=r(8962),n=r(4665),s=r(3902);e.exports=function(e){return s(e)?i(e,!0):n(e)}},4063:e=>{e.exports=function(){return[]}},401:e=>{e.exports=function(){return!1}},3018:(e,t,r)=>{"use strict";const i=r(5986),n=Symbol("max"),s=Symbol("length"),a=Symbol("lengthCalculator"),o=Symbol("allowStale"),l=Symbol("maxAge"),c=Symbol("dispose"),u=Symbol("noDisposeOnSet"),p=Symbol("lruList"),d=Symbol("cache"),h=Symbol("updateAgeOnGet"),naiveLength=()=>1;const get=(e,t,r)=>{const i=e[d].get(t);if(i){const t=i.value;if(isStale(e,t)){if(del(e,i),!e[o])return}else r&&(e[h]&&(i.value.now=Date.now()),e[p].unshiftNode(i));return t.value}},isStale=(e,t)=>{if(!t||!t.maxAge&&!e[l])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[l]&&r>e[l]},trim=e=>{if(e[s]>e[n])for(let t=e[p].tail;e[s]>e[n]&&null!==t;){const r=t.prev;del(e,t),t=r}},del=(e,t)=>{if(t){const r=t.value;e[c]&&e[c](r.key,r.value),e[s]-=r.length,e[d].delete(r.key),e[p].removeNode(t)}};class f{constructor(e,t,r,i,n){this.key=e,this.value=t,this.length=r,this.now=i,this.maxAge=n||0}}const forEachStep=(e,t,r,i)=>{let n=r.value;isStale(e,n)&&(del(e,r),e[o]||(n=void 0)),n&&t.call(i,n.value,n.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[n]=e.max||1/0;const t=e.length||naiveLength;if(this[a]="function"!=typeof t?naiveLength:t,this[o]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[c]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[h]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[n]=e||1/0,trim(this)}get max(){return this[n]}set allowStale(e){this[o]=!!e}get allowStale(){return this[o]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[l]=e,trim(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=naiveLength),e!==this[a]&&(this[a]=e,this[s]=0,this[p].forEach((e=>{e.length=this[a](e.value,e.key),this[s]+=e.length}))),trim(this)}get lengthCalculator(){return this[a]}get length(){return this[s]}get itemCount(){return this[p].length}rforEach(e,t){t=t||this;for(let r=this[p].tail;null!==r;){const i=r.prev;forEachStep(this,e,r,t),r=i}}forEach(e,t){t=t||this;for(let r=this[p].head;null!==r;){const i=r.next;forEachStep(this,e,r,t),r=i}}keys(){return this[p].toArray().map((e=>e.key))}values(){return this[p].toArray().map((e=>e.value))}reset(){this[c]&&this[p]&&this[p].length&&this[p].forEach((e=>this[c](e.key,e.value))),this[d]=new Map,this[p]=new i,this[s]=0}dump(){return this[p].map((e=>!isStale(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[p]}set(e,t,r){if((r=r||this[l])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const i=r?Date.now():0,o=this[a](t,e);if(this[d].has(e)){if(o>this[n])return del(this,this[d].get(e)),!1;const a=this[d].get(e).value;return this[c]&&(this[u]||this[c](e,a.value)),a.now=i,a.maxAge=r,a.value=t,this[s]+=o-a.length,a.length=o,this.get(e),trim(this),!0}const h=new f(e,t,o,i,r);return h.length>this[n]?(this[c]&&this[c](e,t),!1):(this[s]+=h.length,this[p].unshift(h),this[d].set(e,this[p].head),trim(this),!0)}has(e){if(!this[d].has(e))return!1;const t=this[d].get(e).value;return!isStale(this,t)}get(e){return get(this,e,!0)}peek(e){return get(this,e,!1)}pop(){const e=this[p].tail;return e?(del(this,e),e.value):null}del(e){del(this,this[d].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const i=e[r],n=i.e||0;if(0===n)this.set(i.k,i.v);else{const e=n-t;e>0&&this.set(i.k,i.v,e)}}}prune(){this[d].forEach(((e,t)=>get(this,t,!1)))}}},1331:e=>{var t=1e3,r=60*t,i=60*r,n=24*i,s=7*n,a=365.25*n;function plural(e,t,r,i){var n=t>=1.5*r;return Math.round(e/r)+" "+i+(n?"s":"")}e.exports=function(e,o){o=o||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var o=/^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!o)return;var l=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*a;case"weeks":case"week":case"w":return l*s;case"days":case"day":case"d":return l*n;case"hours":case"hour":case"hrs":case"hr":case"h":return l*i;case"minutes":case"minute":case"mins":case"min":case"m":return l*r;case"seconds":case"second":case"secs":case"sec":case"s":return l*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(e);if("number"===l&&isFinite(e))return o.long?function(e){var s=Math.abs(e);if(s>=n)return plural(e,s,n,"day");if(s>=i)return plural(e,s,i,"hour");if(s>=r)return plural(e,s,r,"minute");if(s>=t)return plural(e,s,t,"second");return e+" ms"}(e):function(e){var s=Math.abs(e);if(s>=n)return Math.round(e/n)+"d";if(s>=i)return Math.round(e/i)+"h";if(s>=r)return Math.round(e/r)+"m";if(s>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},397:e=>{var t,r,i=e.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(t===setTimeout)return setTimeout(e,0);if((t===defaultSetTimout||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){t=defaultSetTimout}try{r="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){r=defaultClearTimeout}}();var n,s=[],a=!1,o=-1;function cleanUpNextTick(){a&&n&&(a=!1,n.length?s=n.concat(s):o=-1,s.length&&drainQueue())}function drainQueue(){if(!a){var e=runTimeout(cleanUpNextTick);a=!0;for(var t=s.length;t;){for(n=s,s=[];++o<t;)n&&n[o].run();o=-1,t=s.length}n=null,a=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===defaultClearTimeout||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];s.push(new Item(e,t)),1!==s.length||a||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=noop,i.addListener=noop,i.once=noop,i.off=noop,i.removeListener=noop,i.removeAllListeners=noop,i.emit=noop,i.prependListener=noop,i.prependOnceListener=noop,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},6651:(e,t)=>{t.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 r=/^(?:([\\w+\\-.]+):)?\\/\\/(?:(\\w+:\\w+)@)?([\\w.-]*)(?::(\\d+))?(.*)$/,i=/^data:.+\\,.+$/;function urlParse(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function urlGenerate(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}t.urlParse=urlParse,t.urlGenerate=urlGenerate;var n,s,a=(n=function(e){var r=e,i=urlParse(e);if(i){if(!i.path)return e;r=i.path}for(var n=t.isAbsolute(r),s=[],a=0,o=0;;){if(a=o,-1===(o=r.indexOf("/",a))){s.push(r.slice(a));break}for(s.push(r.slice(a,o));o<r.length&&"/"===r[o];)o++}var l,c=0;for(o=s.length-1;o>=0;o--)"."===(l=s[o])?s.splice(o,1):".."===l?c++:c>0&&(""===l?(s.splice(o+1,c),c=0):(s.splice(o,2),c--));return""===(r=s.join("/"))&&(r=n?"/":"."),i?(i.path=r,urlGenerate(i)):r},s=[],function(e){for(var t=0;t<s.length;t++)if(s[t].input===e){var r=s[0];return s[0]=s[t],s[t]=r,s[0].result}var i=n(e);return s.unshift({input:e,result:i}),s.length>32&&s.pop(),i});function join(e,t){""===e&&(e="."),""===t&&(t=".");var r=urlParse(t),n=urlParse(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),urlGenerate(r);if(r||t.match(i))return t;if(n&&!n.host&&!n.path)return n.host=t,urlGenerate(n);var s="/"===t.charAt(0)?t:a(e.replace(/\\/+$/,"")+"/"+t);return n?(n.path=s,urlGenerate(n)):s}t.normalize=a,t.join=join,t.isAbsolute=function(e){return"/"===e.charAt(0)||r.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var i=e.lastIndexOf("/");if(i<0)return t;if((e=e.slice(0,i)).match(/^([^\\/]+:\\/)?\\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var o=!("__proto__"in Object.create(null));function identity(e){return e}function isProtoString(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 strcmp(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=o?identity:function(e){return isProtoString(e)?"$"+e:e},t.fromSetString=o?identity:function(e){return isProtoString(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var i=strcmp(e.source,t.source);return 0!==i||0!==(i=e.originalLine-t.originalLine)||0!==(i=e.originalColumn-t.originalColumn)||r||0!==(i=e.generatedColumn-t.generatedColumn)||0!==(i=e.generatedLine-t.generatedLine)?i:strcmp(e.name,t.name)},t.compareByOriginalPositionsNoSource=function(e,t,r){var i;return 0!==(i=e.originalLine-t.originalLine)||0!==(i=e.originalColumn-t.originalColumn)||r||0!==(i=e.generatedColumn-t.generatedColumn)||0!==(i=e.generatedLine-t.generatedLine)?i:strcmp(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,r){var i=e.generatedLine-t.generatedLine;return 0!==i||0!==(i=e.generatedColumn-t.generatedColumn)||r||0!==(i=strcmp(e.source,t.source))||0!==(i=e.originalLine-t.originalLine)||0!==(i=e.originalColumn-t.originalColumn)?i:strcmp(e.name,t.name)},t.compareByGeneratedPositionsDeflatedNoLine=function(e,t,r){var i=e.generatedColumn-t.generatedColumn;return 0!==i||r||0!==(i=strcmp(e.source,t.source))||0!==(i=e.originalLine-t.originalLine)||0!==(i=e.originalColumn-t.originalColumn)?i:strcmp(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=strcmp(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:strcmp(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\\)]}\'[^\\n]*\\n/,""))},t.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var i=urlParse(r);if(!i)throw new Error("sourceMapURL could not be parsed");if(i.path){var n=i.path.lastIndexOf("/");n>=0&&(i.path=i.path.substring(0,n+1))}t=join(urlGenerate(i),t)}return a(t)}},9009:(e,t,r)=>{var i=r(1403),n=Object.prototype.hasOwnProperty,s="undefined"!=typeof Map;function ArraySet(){this._array=[],this._set=s?new Map:Object.create(null)}ArraySet.fromArray=function(e,t){for(var r=new ArraySet,i=0,n=e.length;i<n;i++)r.add(e[i],t);return r},ArraySet.prototype.size=function(){return s?this._set.size:Object.getOwnPropertyNames(this._set).length},ArraySet.prototype.add=function(e,t){var r=s?e:i.toSetString(e),a=s?this.has(e):n.call(this._set,r),o=this._array.length;a&&!t||this._array.push(e),a||(s?this._set.set(e,o):this._set[r]=o)},ArraySet.prototype.has=function(e){if(s)return this._set.has(e);var t=i.toSetString(e);return n.call(this._set,t)},ArraySet.prototype.indexOf=function(e){if(s){var t=this._set.get(e);if(t>=0)return t}else{var r=i.toSetString(e);if(n.call(this._set,r))return this._set[r]}throw new Error(\'"\'+e+\'" is not in the set.\')},ArraySet.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},ArraySet.prototype.toArray=function(){return this._array.slice()},t.I=ArraySet},6202:(e,t,r)=>{var i=r(1313);t.encode=function(e){var t,r="",n=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&n,(n>>>=5)>0&&(t|=32),r+=i.encode(t)}while(n>0);return r},t.decode=function(e,t,r){var n,s,a,o,l=e.length,c=0,u=0;do{if(t>=l)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(s=i.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));n=!!(32&s),c+=(s&=31)<<u,u+=5}while(n);r.value=(o=(a=c)>>1,1==(1&a)?-o:o),r.rest=t}},1313:(e,t)=>{var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<r.length)return r[e];throw new TypeError("Must be between 0 and 63: "+e)},t.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}},2917:(e,t)=>{function recursiveSearch(e,r,i,n,s,a){var o=Math.floor((r-e)/2)+e,l=s(i,n[o],!0);return 0===l?o:l>0?r-o>1?recursiveSearch(o,r,i,n,s,a):a==t.LEAST_UPPER_BOUND?r<n.length?r:-1:o:o-e>1?recursiveSearch(e,o,i,n,s,a):a==t.LEAST_UPPER_BOUND?o:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,i,n){if(0===r.length)return-1;var s=recursiveSearch(-1,r.length,e,r,i,n||t.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===i(r[s],r[s-1],!0);)--s;return s}},3223:(e,t,r)=>{var i=r(1403);function MappingList(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},MappingList.prototype.add=function(e){var t,r,n,s,a,o;t=this._last,r=e,n=t.generatedLine,s=r.generatedLine,a=t.generatedColumn,o=r.generatedColumn,s>n||s==n&&o>=a||i.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},MappingList.prototype.toArray=function(){return this._sorted||(this._array.sort(i.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.H=MappingList},5776:(e,t)=>{function swap(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function doQuickSort(e,t,r,i){if(r<i){var n=r-1;swap(e,(l=r,c=i,Math.round(l+Math.random()*(c-l))),i);for(var s=e[i],a=r;a<i;a++)t(e[a],s)<=0&&swap(e,n+=1,a);swap(e,n+1,a);var o=n+1;doQuickSort(e,t,r,o-1),doQuickSort(e,t,o+1,i)}var l,c}t.U=function(e,t){doQuickSort(e,t,0,e.length-1)}},403:(e,t,r)=>{var i=r(1403),n=r(2917),s=r(9009).I,a=r(6202),o=r(5776).U;function SourceMapConsumer(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\\)\\]\\}\'/,""))),null!=t.sections?new IndexedSourceMapConsumer(t):new BasicSourceMapConsumer(t)}function BasicSourceMapConsumer(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\\)\\]\\}\'/,"")));var r=i.getArg(t,"version"),n=i.getArg(t,"sources"),a=i.getArg(t,"names",[]),o=i.getArg(t,"sourceRoot",null),l=i.getArg(t,"sourcesContent",null),c=i.getArg(t,"mappings"),u=i.getArg(t,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);n=n.map(String).map(i.normalize).map((function(e){return o&&i.isAbsolute(o)&&i.isAbsolute(e)?i.relative(o,e):e})),this._names=s.fromArray(a.map(String),!0),this._sources=s.fromArray(n,!0),this.sourceRoot=o,this.sourcesContent=l,this._mappings=c,this.file=u}function Mapping(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function IndexedSourceMapConsumer(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\\)\\]\\}\'/,"")));var r=i.getArg(t,"version"),n=i.getArg(t,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new s,this._names=new s;var a={line:-1,column:0};this._sections=n.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=i.getArg(e,"offset"),r=i.getArg(t,"line"),n=i.getArg(t,"column");if(r<a.line||r===a.line&&n<a.column)throw new Error("Section offsets must be ordered and non-overlapping.");return a=t,{generatedOffset:{generatedLine:r+1,generatedColumn:n+1},consumer:new SourceMapConsumer(i.getArg(e,"map"))}}))}SourceMapConsumer.fromSourceMap=function(e){return BasicSourceMapConsumer.fromSourceMap(e)},SourceMapConsumer.prototype._version=3,SourceMapConsumer.prototype.__generatedMappings=null,Object.defineProperty(SourceMapConsumer.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),SourceMapConsumer.prototype.__originalMappings=null,Object.defineProperty(SourceMapConsumer.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),SourceMapConsumer.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return";"===r||","===r},SourceMapConsumer.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},SourceMapConsumer.GENERATED_ORDER=1,SourceMapConsumer.ORIGINAL_ORDER=2,SourceMapConsumer.GREATEST_LOWER_BOUND=1,SourceMapConsumer.LEAST_UPPER_BOUND=2,SourceMapConsumer.prototype.eachMapping=function(e,t,r){var n,s=t||null;switch(r||SourceMapConsumer.GENERATED_ORDER){case SourceMapConsumer.GENERATED_ORDER:n=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:n=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;n.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=a&&(t=i.join(a,t)),{source:t,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)},SourceMapConsumer.prototype.allGeneratedPositionsFor=function(e){var t=i.getArg(e,"line"),r={source:i.getArg(e,"source"),originalLine:t,originalColumn:i.getArg(e,"column",0)};if(null!=this.sourceRoot&&(r.source=i.relative(this.sourceRoot,r.source)),!this._sources.has(r.source))return[];r.source=this._sources.indexOf(r.source);var s=[],a=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",i.compareByOriginalPositions,n.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:i.getArg(o,"generatedLine",null),column:i.getArg(o,"generatedColumn",null),lastColumn:i.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++a];else for(var c=o.originalColumn;o&&o.originalLine===t&&o.originalColumn==c;)s.push({line:i.getArg(o,"generatedLine",null),column:i.getArg(o,"generatedColumn",null),lastColumn:i.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++a]}return s},t.SourceMapConsumer=SourceMapConsumer,BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype),BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer,BasicSourceMapConsumer.fromSourceMap=function(e){var t=Object.create(BasicSourceMapConsumer.prototype),r=t._names=s.fromArray(e._names.toArray(),!0),n=t._sources=s.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var a=e._mappings.toArray().slice(),l=t.__generatedMappings=[],c=t.__originalMappings=[],u=0,p=a.length;u<p;u++){var d=a[u],h=new Mapping;h.generatedLine=d.generatedLine,h.generatedColumn=d.generatedColumn,d.source&&(h.source=n.indexOf(d.source),h.originalLine=d.originalLine,h.originalColumn=d.originalColumn,d.name&&(h.name=r.indexOf(d.name)),c.push(h)),l.push(h)}return o(t.__originalMappings,i.compareByOriginalPositions),t},BasicSourceMapConsumer.prototype._version=3,Object.defineProperty(BasicSourceMapConsumer.prototype,"sources",{get:function(){return this._sources.toArray().map((function(e){return null!=this.sourceRoot?i.join(this.sourceRoot,e):e}),this)}}),BasicSourceMapConsumer.prototype._parseMappings=function(e,t){for(var r,n,s,l,c,u=1,p=0,d=0,h=0,f=0,m=0,y=e.length,T=0,g={},b={},S=[],x=[];T<y;)if(";"===e.charAt(T))u++,T++,p=0;else if(","===e.charAt(T))T++;else{for((r=new Mapping).generatedLine=u,l=T;l<y&&!this._charIsMappingSeparator(e,l);l++);if(s=g[n=e.slice(T,l)])T+=n.length;else{for(s=[];T<l;)a.decode(e,T,b),c=b.value,T=b.rest,s.push(c);if(2===s.length)throw new Error("Found a source, but no line and column");if(3===s.length)throw new Error("Found a source and line, but no column");g[n]=s}r.generatedColumn=p+s[0],p=r.generatedColumn,s.length>1&&(r.source=f+s[1],f+=s[1],r.originalLine=d+s[2],d=r.originalLine,r.originalLine+=1,r.originalColumn=h+s[3],h=r.originalColumn,s.length>4&&(r.name=m+s[4],m+=s[4])),x.push(r),"number"==typeof r.originalLine&&S.push(r)}o(x,i.compareByGeneratedPositionsDeflated),this.__generatedMappings=x,o(S,i.compareByOriginalPositions),this.__originalMappings=S},BasicSourceMapConsumer.prototype._findMapping=function(e,t,r,i,s,a){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return n.search(e,t,s,a)},BasicSourceMapConsumer.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}},BasicSourceMapConsumer.prototype.originalPositionFor=function(e){var t={generatedLine:i.getArg(e,"line"),generatedColumn:i.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",i.compareByGeneratedPositionsDeflated,i.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(r>=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var s=i.getArg(n,"source",null);null!==s&&(s=this._sources.at(s),null!=this.sourceRoot&&(s=i.join(this.sourceRoot,s)));var a=i.getArg(n,"name",null);return null!==a&&(a=this._names.at(a)),{source:s,line:i.getArg(n,"originalLine",null),column:i.getArg(n,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},BasicSourceMapConsumer.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=i.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var r;if(null!=this.sourceRoot&&(r=i.urlParse(this.sourceRoot))){var n=e.replace(/^file:\\/\\//,"");if("file"==r.scheme&&this._sources.has(n))return this.sourcesContent[this._sources.indexOf(n)];if((!r.path||"/"==r.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error(\'"\'+e+\'" is not in the SourceMap.\')},BasicSourceMapConsumer.prototype.generatedPositionFor=function(e){var t=i.getArg(e,"source");if(null!=this.sourceRoot&&(t=i.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var r={source:t=this._sources.indexOf(t),originalLine:i.getArg(e,"line"),originalColumn:i.getArg(e,"column")},n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",i.compareByOriginalPositions,i.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(n>=0){var s=this._originalMappings[n];if(s.source===r.source)return{line:i.getArg(s,"generatedLine",null),column:i.getArg(s,"generatedColumn",null),lastColumn:i.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype),IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer,IndexedSourceMapConsumer.prototype._version=3,Object.defineProperty(IndexedSourceMapConsumer.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}}),IndexedSourceMapConsumer.prototype.originalPositionFor=function(e){var t={generatedLine:i.getArg(e,"line"),generatedColumn:i.getArg(e,"column")},r=n.search(t,this._sections,(function(e,t){var r=e.generatedLine-t.generatedOffset.generatedLine;return r||e.generatedColumn-t.generatedOffset.generatedColumn})),s=this._sections[r];return s?s.consumer.originalPositionFor({line:t.generatedLine-(s.generatedOffset.generatedLine-1),column:t.generatedColumn-(s.generatedOffset.generatedLine===t.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},IndexedSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},IndexedSourceMapConsumer.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var i=this._sections[r].consumer.sourceContentFor(e,!0);if(i)return i}if(t)return null;throw new Error(\'"\'+e+\'" is not in the SourceMap.\')},IndexedSourceMapConsumer.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(-1!==r.consumer.sources.indexOf(i.getArg(e,"source"))){var n=r.consumer.generatedPositionFor(e);if(n)return{line:n.line+(r.generatedOffset.generatedLine-1),column:n.column+(r.generatedOffset.generatedLine===n.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},IndexedSourceMapConsumer.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var n=this._sections[r],s=n.consumer._generatedMappings,a=0;a<s.length;a++){var l=s[a],c=n.consumer._sources.at(l.source);null!==n.consumer.sourceRoot&&(c=i.join(n.consumer.sourceRoot,c)),this._sources.add(c),c=this._sources.indexOf(c);var u=n.consumer._names.at(l.name);this._names.add(u),u=this._names.indexOf(u);var p={source:c,generatedLine:l.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(n.generatedOffset.generatedLine===l.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:u};this.__generatedMappings.push(p),"number"==typeof p.originalLine&&this.__originalMappings.push(p)}o(this.__generatedMappings,i.compareByGeneratedPositionsDeflated),o(this.__originalMappings,i.compareByOriginalPositions)}},9160:(e,t,r)=>{var i=r(6202),n=r(1403),s=r(9009).I,a=r(3223).H;function SourceMapGenerator(e){e||(e={}),this._file=n.getArg(e,"file",null),this._sourceRoot=n.getArg(e,"sourceRoot",null),this._skipValidation=n.getArg(e,"skipValidation",!1),this._sources=new s,this._names=new s,this._mappings=new a,this._sourcesContents=null}SourceMapGenerator.prototype._version=3,SourceMapGenerator.fromSourceMap=function(e){var t=e.sourceRoot,r=new SourceMapGenerator({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=n.relative(t,i.source)),i.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(i.name=e.name)),r.addMapping(i)})),e.sources.forEach((function(t){var i=e.sourceContentFor(t);null!=i&&r.setSourceContent(t,i)})),r},SourceMapGenerator.prototype.addMapping=function(e){var t=n.getArg(e,"generated"),r=n.getArg(e,"original",null),i=n.getArg(e,"source",null),s=n.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,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!=r&&r.line,originalColumn:null!=r&&r.column,source:i,name:s})},SourceMapGenerator.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=n.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[n.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[n.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},SourceMapGenerator.prototype.applySourceMap=function(e,t,r){var i=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.\');i=e.file}var a=this._sourceRoot;null!=a&&(i=n.relative(a,i));var o=new s,l=new s;this._mappings.unsortedForEach((function(t){if(t.source===i&&null!=t.originalLine){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=s.source&&(t.source=s.source,null!=r&&(t.source=n.join(r,t.source)),null!=a&&(t.source=n.relative(a,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.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 i=e.sourceContentFor(t);null!=i&&(null!=r&&(t=n.join(r,t)),null!=a&&(t=n.relative(a,t)),this.setSourceContent(t,i))}),this)},SourceMapGenerator.prototype._validateMapping=function(e,t,r,i){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||i)&&!(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:i}))},SourceMapGenerator.prototype._serializeMappings=function(){for(var e,t,r,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="",(t=h[f]).generatedLine!==o)for(a=0;t.generatedLine!==o;)e+=";",o++;else if(f>0){if(!n.compareByGeneratedPositionsInflated(t,h[f-1]))continue;e+=","}e+=i.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(s=this._sources.indexOf(t.source),e+=i.encode(s-p),p=s,e+=i.encode(t.originalLine-1-c),c=t.originalLine-1,e+=i.encode(t.originalColumn-l),l=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=i.encode(r-u),u=r)),d+=e}return d},SourceMapGenerator.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=n.relative(t,e));var r=n.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},SourceMapGenerator.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},SourceMapGenerator.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=SourceMapGenerator},1539:(e,t,r)=>{var i=r(9160).SourceMapGenerator,n=r(1403),s=/(\\r?\\n)/,a="$$$isSourceNode$$$";function SourceNode(e,t,r,i,n){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==n?null:n,this[a]=!0,null!=i&&this.add(i)}SourceNode.fromStringWithSourceMap=function(e,t,r){var i=new SourceNode,a=e.split(s),o=0,shiftNextLine=function(){return getNextLine()+(getNextLine()||"");function getNextLine(){return o<a.length?a[o++]:void 0}},l=1,c=0,u=null;return t.eachMapping((function(e){if(null!==u){if(!(l<e.generatedLine)){var t=(r=a[o]).substr(0,e.generatedColumn-c);return a[o]=r.substr(e.generatedColumn-c),c=e.generatedColumn,addMappingWithCode(u,t),void(u=e)}addMappingWithCode(u,shiftNextLine()),l++,c=0}for(;l<e.generatedLine;)i.add(shiftNextLine()),l++;if(c<e.generatedColumn){var r=a[o];i.add(r.substr(0,e.generatedColumn)),a[o]=r.substr(e.generatedColumn),c=e.generatedColumn}u=e}),this),o<a.length&&(u&&addMappingWithCode(u,shiftNextLine()),i.add(a.splice(o).join(""))),t.sources.forEach((function(e){var s=t.sourceContentFor(e);null!=s&&(null!=r&&(e=n.join(r,e)),i.setSourceContent(e,s))})),i;function addMappingWithCode(e,t){if(null===e||void 0===e.source)i.add(t);else{var s=r?n.join(r,e.source):e.source;i.add(new SourceNode(e.originalLine,e.originalColumn,s,t,e.name))}}},SourceNode.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[a]&&"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},SourceNode.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[a]&&"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},SourceNode.prototype.walk=function(e){for(var t,r=0,i=this.children.length;r<i;r++)(t=this.children[r])[a]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},SourceNode.prototype.join=function(e){var t,r,i=this.children.length;if(i>0){for(t=[],r=0;r<i-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},SourceNode.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[a]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},SourceNode.prototype.setSourceContent=function(e,t){this.sourceContents[n.toSetString(e)]=t},SourceNode.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][a]&&this.children[t].walkSourceContents(e);var i=Object.keys(this.sourceContents);for(t=0,r=i.length;t<r;t++)e(n.fromSetString(i[t]),this.sourceContents[i[t]])},SourceNode.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},SourceNode.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new i(e),n=!1,s=null,a=null,o=null,l=null;return this.walk((function(e,i){t.code+=e,null!==i.source&&null!==i.line&&null!==i.column?(s===i.source&&a===i.line&&o===i.column&&l===i.name||r.addMapping({source:i.source,original:{line:i.line,column:i.column},generated:{line:t.line,column:t.column},name:i.name}),s=i.source,a=i.line,o=i.column,l=i.name,n=!0):n&&(r.addMapping({generated:{line:t.line,column:t.column}}),s=null,n=!1);for(var c=0,u=e.length;c<u;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===u?(s=null,n=!1):n&&r.addMapping({source:i.source,original:{line:i.line,column:i.column},generated:{line:t.line,column:t.column},name:i.name})):t.column++})),this.walkSourceContents((function(e,t){r.setSourceContent(e,t)})),{code:t.code,map:r}},t.SourceNode=SourceNode},1403:(e,t)=>{t.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 r=/^(?:([\\w+\\-.]+):)?\\/\\/(?:(\\w+:\\w+)@)?([\\w.]*)(?::(\\d+))?(\\S*)$/,i=/^data:.+\\,.+$/;function urlParse(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function urlGenerate(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 normalize(e){var r=e,i=urlParse(e);if(i){if(!i.path)return e;r=i.path}for(var n,s=t.isAbsolute(r),a=r.split(/\\/+/),o=0,l=a.length-1;l>=0;l--)"."===(n=a[l])?a.splice(l,1):".."===n?o++:o>0&&(""===n?(a.splice(l+1,o),o=0):(a.splice(l,2),o--));return""===(r=a.join("/"))&&(r=s?"/":"."),i?(i.path=r,urlGenerate(i)):r}t.urlParse=urlParse,t.urlGenerate=urlGenerate,t.normalize=normalize,t.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var r=urlParse(t),n=urlParse(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),urlGenerate(r);if(r||t.match(i))return t;if(n&&!n.host&&!n.path)return n.host=t,urlGenerate(n);var s="/"===t.charAt(0)?t:normalize(e.replace(/\\/+$/,"")+"/"+t);return n?(n.path=s,urlGenerate(n)):s},t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(r)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var i=e.lastIndexOf("/");if(i<0)return t;if((e=e.slice(0,i)).match(/^([^\\/]+:\\/)?\\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var n=!("__proto__"in Object.create(null));function identity(e){return e}function isProtoString(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 strcmp(e,t){return e===t?0:e>t?1:-1}t.toSetString=n?identity:function(e){return isProtoString(e)?"$"+e:e},t.fromSetString=n?identity:function(e){return isProtoString(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var i=e.source-t.source;return 0!==i||0!==(i=e.originalLine-t.originalLine)||0!==(i=e.originalColumn-t.originalColumn)||r||0!==(i=e.generatedColumn-t.generatedColumn)||0!==(i=e.generatedLine-t.generatedLine)?i:e.name-t.name},t.compareByGeneratedPositionsDeflated=function(e,t,r){var i=e.generatedLine-t.generatedLine;return 0!==i||0!==(i=e.generatedColumn-t.generatedColumn)||r||0!==(i=e.source-t.source)||0!==(i=e.originalLine-t.originalLine)||0!==(i=e.originalColumn-t.originalColumn)?i:e.name-t.name},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=strcmp(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:strcmp(e.name,t.name)}},9351:(e,t,r)=>{t.SourceMapGenerator=r(9160).SourceMapGenerator,t.SourceMapConsumer=r(403).SourceMapConsumer,t.SourceNode=r(1539).SourceNode},7356:function(e,t){var r,i,n;!function(s,a){"use strict";i=[],void 0===(n="function"==typeof(r=function(){function _isNumber(e){return!isNaN(parseFloat(e))&&isFinite(e)}function _capitalize(e){return e.charAt(0).toUpperCase()+e.substring(1)}function _getter(e){return function(){return this[e]}}var e=["isConstructor","isEval","isNative","isToplevel"],t=["columnNumber","lineNumber"],r=["fileName","functionName","source"],i=["args"],n=e.concat(t,r,i);function StackFrame(e){if(e)for(var t=0;t<n.length;t++)void 0!==e[n[t]]&&this["set"+_capitalize(n[t])](e[n[t]])}StackFrame.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof StackFrame)this.evalOrigin=e;else{if(!(e instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new StackFrame(e)}},toString:function(){var e=this.getFileName()||"",t=this.getLineNumber()||"",r=this.getColumnNumber()||"",i=this.getFunctionName()||"";return this.getIsEval()?e?"[eval] ("+e+":"+t+":"+r+")":"[eval]:"+t+":"+r:i?i+" ("+e+":"+t+":"+r+")":e+":"+t+":"+r}},StackFrame.fromString=function(e){var t=e.indexOf("("),r=e.lastIndexOf(")"),i=e.substring(0,t),n=e.substring(t+1,r).split(","),s=e.substring(r+1);if(0===s.indexOf("@"))var a=/@(.+?)(?::(\\d+))?(?::(\\d+))?$/.exec(s,""),o=a[1],l=a[2],c=a[3];return new StackFrame({functionName:i,args:n||void 0,fileName:o,lineNumber:l||void 0,columnNumber:c||void 0})};for(var s=0;s<e.length;s++)StackFrame.prototype["get"+_capitalize(e[s])]=_getter(e[s]),StackFrame.prototype["set"+_capitalize(e[s])]=function(e){return function(t){this[e]=Boolean(t)}}(e[s]);for(var a=0;a<t.length;a++)StackFrame.prototype["get"+_capitalize(t[a])]=_getter(t[a]),StackFrame.prototype["set"+_capitalize(t[a])]=function(e){return function(t){if(!_isNumber(t))throw new TypeError(e+" must be a Number");this[e]=Number(t)}}(t[a]);for(var o=0;o<r.length;o++)StackFrame.prototype["get"+_capitalize(r[o])]=_getter(r[o]),StackFrame.prototype["set"+_capitalize(r[o])]=function(e){return function(t){this[e]=String(t)}}(r[o]);return StackFrame})?r.apply(t,i):r)||(e.exports=n)}()},1138:e=>{"use strict";let t=null;function FastObject(e){if(null!==t&&(t.property,1)){const e=t;return t=FastObject.prototype=null,e}return t=FastObject.prototype=null==e?Object.create(null):e,new FastObject}FastObject(),e.exports=function(e){return FastObject(e)}},7533:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},5986:(e,t,r)=>{"use strict";function Yallist(e){var t=this;if(t instanceof Yallist||(t=new Yallist),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)t.push(arguments[r]);return t}function insert(e,t,r){var i=t===e.head?new Node(r,null,t,e):new Node(r,t,t.next,e);return null===i.next&&(e.tail=i),null===i.prev&&(e.head=i),e.length++,i}function push(e,t){e.tail=new Node(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function unshift(e,t){e.head=new Node(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Node(e,t,r,i){if(!(this instanceof Node))return new Node(e,t,r,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=Yallist,Yallist.Node=Node,Yallist.create=Yallist,Yallist.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},Yallist.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},Yallist.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},Yallist.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)push(this,arguments[e]);return this.length},Yallist.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)unshift(this,arguments[e]);return this.length},Yallist.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},Yallist.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},Yallist.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,i=0;null!==r;i++)e.call(t,r.value,i,this),r=r.next},Yallist.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,i=this.length-1;null!==r;i--)e.call(t,r.value,i,this),r=r.prev},Yallist.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},Yallist.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},Yallist.prototype.map=function(e,t){t=t||this;for(var r=new Yallist,i=this.head;null!==i;)r.push(e.call(t,i.value,this)),i=i.next;return r},Yallist.prototype.mapReverse=function(e,t){t=t||this;for(var r=new Yallist,i=this.tail;null!==i;)r.push(e.call(t,i.value,this)),i=i.prev;return r},Yallist.prototype.reduce=function(e,t){var r,i=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");i=this.head.next,r=this.head.value}for(var n=0;null!==i;n++)r=e(r,i.value,n),i=i.next;return r},Yallist.prototype.reduceReverse=function(e,t){var r,i=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");i=this.tail.prev,r=this.tail.value}for(var n=this.length-1;null!==i;n--)r=e(r,i.value,n),i=i.prev;return r},Yallist.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},Yallist.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},Yallist.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new Yallist;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,n=this.head;null!==n&&i<e;i++)n=n.next;for(;null!==n&&i<t;i++,n=n.next)r.push(n.value);return r},Yallist.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new Yallist;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,n=this.tail;null!==n&&i>t;i--)n=n.prev;for(;null!==n&&i>e;i--,n=n.prev)r.push(n.value);return r},Yallist.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,n=this.head;null!==n&&i<e;i++)n=n.next;var s=[];for(i=0;n&&i<t;i++)s.push(n.value),n=this.removeNode(n);null===n&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(i=0;i<r.length;i++)n=insert(this,n,r[i]);return s},Yallist.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=t,this.tail=e,this};try{r(7533)(Yallist)}catch(e){}},8404:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const r=/^[ \\t]+$/;t.default=class{constructor(e){this._map=null,this._buf=[],this._last="",this._queue=[],this._position={line:1,column:0},this._sourcePosition={identifierName:null,line:null,column:null,filename:null},this._disallowedPop=null,this._map=e}get(){this._flush();const e=this._map,t={code:this._buf.join("").trimRight(),map:null,rawMappings:null==e?void 0:e.getRawMappings()};return e&&Object.defineProperty(t,"map",{configurable:!0,enumerable:!0,get(){return this.map=e.get()},set(e){Object.defineProperty(this,"map",{value:e,writable:!0})}}),t}append(e){this._flush();const{line:t,column:r,filename:i,identifierName:n,force:s}=this._sourcePosition;this._append(e,t,r,n,i,s)}queue(e){if("\\n"===e)for(;this._queue.length>0&&r.test(this._queue[0][0]);)this._queue.shift();const{line:t,column:i,filename:n,identifierName:s,force:a}=this._sourcePosition;this._queue.unshift([e,t,i,s,n,a])}_flush(){let e;for(;e=this._queue.pop();)this._append(...e)}_append(e,t,r,i,n,s){this._buf.push(e),this._last=e[e.length-1];let a=e.indexOf("\\n"),o=0;for(0!==a&&this._mark(t,r,i,n,s);-1!==a;)this._position.line++,this._position.column=0,o=a+1,o<e.length&&this._mark(++t,0,i,n,s),a=e.indexOf("\\n",o);this._position.column+=e.length-o}_mark(e,t,r,i,n){var s;null==(s=this._map)||s.mark(this._position.line,this._position.column,e,t,r,i,n)}removeTrailingNewline(){this._queue.length>0&&"\\n"===this._queue[0][0]&&this._queue.shift()}removeLastSemicolon(){this._queue.length>0&&";"===this._queue[0][0]&&this._queue.shift()}endsWith(e){if(1===e.length){let t;if(this._queue.length>0){const e=this._queue[0][0];t=e[e.length-1]}else t=this._last;return t===e}const t=this._last+this._queue.reduce(((e,t)=>t[0]+e),"");return e.length<=t.length&&t.slice(-e.length)===e}hasContent(){return this._queue.length>0||!!this._last}exactSource(e,t){this.source("start",e,!0),t(),this.source("end",e),this._disallowPop("start",e)}source(e,t,r){e&&!t||this._normalizePosition(e,t,this._sourcePosition,r)}withSource(e,t,r){if(!this._map)return r();const i=this._sourcePosition.line,n=this._sourcePosition.column,s=this._sourcePosition.filename,a=this._sourcePosition.identifierName;this.source(e,t),r(),this._sourcePosition.force&&this._sourcePosition.line===i&&this._sourcePosition.column===n&&this._sourcePosition.filename===s||this._disallowedPop&&this._disallowedPop.line===i&&this._disallowedPop.column===n&&this._disallowedPop.filename===s||(this._sourcePosition.line=i,this._sourcePosition.column=n,this._sourcePosition.filename=s,this._sourcePosition.identifierName=a,this._sourcePosition.force=!1,this._disallowedPop=null)}_disallowPop(e,t){e&&!t||(this._disallowedPop=this._normalizePosition(e,t))}_normalizePosition(e,t,r,i){const n=t?t[e]:null;void 0===r&&(r={identifierName:null,line:null,column:null,filename:null,force:!1});const s=r.line,a=r.column,o=r.filename;return r.identifierName="start"===e&&(null==t?void 0:t.identifierName)||null,r.line=null==n?void 0:n.line,r.column=null==n?void 0:n.column,r.filename=null==t?void 0:t.filename,(i||r.line!==s||r.column!==a||r.filename!==o)&&(r.force=i),r}getCurrentColumn(){const e=this._queue.reduce(((e,t)=>t[0]+e),""),t=e.lastIndexOf("\\n");return-1===t?this._position.column+e.length:e.length-1-t}getCurrentLine(){const e=this._queue.reduce(((e,t)=>t[0]+e),"");let t=0;for(let r=0;r<e.length;r++)"\\n"===e[r]&&t++;return this._position.line+t}}},3762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.File=function(e){e.program&&this.print(e.program.interpreter,e);this.print(e.program,e)},t.Program=function(e){this.printInnerComments(e,!1),this.printSequence(e.directives,e),e.directives&&e.directives.length&&this.newline();this.printSequence(e.body,e)},t.BlockStatement=function(e){var t;this.token("{"),this.printInnerComments(e);const r=null==(t=e.directives)?void 0:t.length;e.body.length||r?(this.newline(),this.printSequence(e.directives,e,{indent:!0}),r&&this.newline(),this.printSequence(e.body,e,{indent:!0}),this.removeTrailingNewline(),this.source("end",e.loc),this.endsWith("\\n")||this.newline(),this.rightBrace()):(this.source("end",e.loc),this.token("}"))},t.Noop=function(){},t.Directive=function(e){this.print(e.value,e),this.semicolon()},t.DirectiveLiteral=function(e){const t=this.getPossibleRaw(e);if(null!=t)return void this.token(t);const{value:n}=e;if(i.test(n)){if(r.test(n))throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");this.token(`\'${n}\'`)}else this.token(`"${n}"`)},t.InterpreterDirective=function(e){this.token(`#!${e.value}\\n`)},t.Placeholder=function(e){this.token("%%"),this.print(e.name),this.token("%%"),"Statement"===e.expectedNode&&this.semicolon()};const r=/(?:^|[^\\\\])(?:\\\\\\\\)*\'/,i=/(?:^|[^\\\\])(?:\\\\\\\\)*"/},9570:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClassExpression=t.ClassDeclaration=function(e,t){this.format.decoratorsBeforeExport&&(i.isExportDefaultDeclaration(t)||i.isExportNamedDeclaration(t))||this.printJoin(e.decorators,e);e.declare&&(this.word("declare"),this.space());e.abstract&&(this.word("abstract"),this.space());this.word("class"),e.id&&(this.space(),this.print(e.id,e));this.print(e.typeParameters,e),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass,e),this.print(e.superTypeParameters,e));e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e));this.space(),this.print(e.body,e)},t.ClassBody=function(e){this.token("{"),this.printInnerComments(e),0===e.body.length?this.token("}"):(this.newline(),this.indent(),this.printSequence(e.body,e),this.dedent(),this.endsWith("\\n")||this.newline(),this.rightBrace())},t.ClassProperty=function(e){this.printJoin(e.decorators,e),this.tsPrintClassMemberModifiers(e,!0),e.computed?(this.token("["),this.print(e.key,e),this.token("]")):(this._variance(e),this.print(e.key,e));e.optional&&this.token("?");e.definite&&this.token("!");this.print(e.typeAnnotation,e),e.value&&(this.space(),this.token("="),this.space(),this.print(e.value,e));this.semicolon()},t.ClassPrivateProperty=function(e){this.printJoin(e.decorators,e),e.static&&(this.word("static"),this.space());this.print(e.key,e),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.token("="),this.space(),this.print(e.value,e));this.semicolon()},t.ClassMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body,e)},t.ClassPrivateMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body,e)},t._classMethodHead=function(e){this.printJoin(e.decorators,e),this.tsPrintClassMemberModifiers(e,!1),this._methodHead(e)},t.StaticBlock=function(e){this.word("static"),this.space(),this.token("{"),0===e.body.length?this.token("}"):(this.newline(),this.printSequence(e.body,e,{indent:!0}),this.rightBrace())};var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}},9901:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnaryExpression=function(e){"void"===e.operator||"delete"===e.operator||"typeof"===e.operator||"throw"===e.operator?(this.word(e.operator),this.space()):this.token(e.operator);this.print(e.argument,e)},t.DoExpression=function(e){this.word("do"),this.space(),this.print(e.body,e)},t.ParenthesizedExpression=function(e){this.token("("),this.print(e.expression,e),this.token(")")},t.UpdateExpression=function(e){e.prefix?(this.token(e.operator),this.print(e.argument,e)):(this.startTerminatorless(!0),this.print(e.argument,e),this.endTerminatorless(),this.token(e.operator))},t.ConditionalExpression=function(e){this.print(e.test,e),this.space(),this.token("?"),this.space(),this.print(e.consequent,e),this.space(),this.token(":"),this.space(),this.print(e.alternate,e)},t.NewExpression=function(e,t){if(this.word("new"),this.space(),this.print(e.callee,e),this.format.minified&&0===e.arguments.length&&!e.optional&&!i.isCallExpression(t,{callee:e})&&!i.isMemberExpression(t)&&!i.isNewExpression(t))return;this.print(e.typeArguments,e),this.print(e.typeParameters,e),e.optional&&this.token("?.");this.token("("),this.printList(e.arguments,e),this.token(")")},t.SequenceExpression=function(e){this.printList(e.expressions,e)},t.ThisExpression=function(){this.word("this")},t.Super=function(){this.word("super")},t.Decorator=function(e){this.token("@"),this.print(e.expression,e),this.newline()},t.OptionalMemberExpression=function(e){if(this.print(e.object,e),!e.computed&&i.isMemberExpression(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;i.isLiteral(e.property)&&"number"==typeof e.property.value&&(t=!0);e.optional&&this.token("?.");t?(this.token("["),this.print(e.property,e),this.token("]")):(e.optional||this.token("."),this.print(e.property,e))},t.OptionalCallExpression=function(e){this.print(e.callee,e),this.print(e.typeArguments,e),this.print(e.typeParameters,e),e.optional&&this.token("?.");this.token("("),this.printList(e.arguments,e),this.token(")")},t.CallExpression=function(e){this.print(e.callee,e),this.print(e.typeArguments,e),this.print(e.typeParameters,e),this.token("("),this.printList(e.arguments,e),this.token(")")},t.Import=function(){this.word("import")},t.EmptyStatement=function(){this.semicolon(!0)},t.ExpressionStatement=function(e){this.print(e.expression,e),this.semicolon()},t.AssignmentPattern=function(e){this.print(e.left,e),e.left.optional&&this.token("?");this.print(e.left.typeAnnotation,e),this.space(),this.token("="),this.space(),this.print(e.right,e)},t.LogicalExpression=t.BinaryExpression=t.AssignmentExpression=function(e,t){const r=this.inForStatementInitCounter&&"in"===e.operator&&!n.needsParens(e,t);r&&this.token("(");this.print(e.left,e),this.space(),"in"===e.operator||"instanceof"===e.operator?this.word(e.operator):this.token(e.operator);this.space(),this.print(e.right,e),r&&this.token(")")},t.BindExpression=function(e){this.print(e.object,e),this.token("::"),this.print(e.callee,e)},t.MemberExpression=function(e){if(this.print(e.object,e),!e.computed&&i.isMemberExpression(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;i.isLiteral(e.property)&&"number"==typeof e.property.value&&(t=!0);t?(this.token("["),this.print(e.property,e),this.token("]")):(this.token("."),this.print(e.property,e))},t.MetaProperty=function(e){this.print(e.meta,e),this.token("."),this.print(e.property,e)},t.PrivateName=function(e){this.token("#"),this.print(e.id,e)},t.V8IntrinsicIdentifier=function(e){this.token("%"),this.word(e.name)},t.AwaitExpression=t.YieldExpression=void 0;var i=_interopRequireWildcard(r(1710)),n=_interopRequireWildcard(r(944));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}function buildYieldAwait(e){return function(t){if(this.word(e),t.delegate&&this.token("*"),t.argument){this.space();const e=this.startTerminatorless();this.print(t.argument,t),this.endTerminatorless(e)}}}const s=buildYieldAwait("yield");t.YieldExpression=s;const a=buildYieldAwait("await");t.AwaitExpression=a},308:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnyTypeAnnotation=function(){this.word("any")},t.ArrayTypeAnnotation=function(e){this.print(e.elementType,e),this.token("["),this.token("]")},t.BooleanTypeAnnotation=function(){this.word("boolean")},t.BooleanLiteralTypeAnnotation=function(e){this.word(e.value?"true":"false")},t.NullLiteralTypeAnnotation=function(){this.word("null")},t.DeclareClass=function(e,t){i.isDeclareExportDeclaration(t)||(this.word("declare"),this.space());this.word("class"),this.space(),this._interfaceish(e)},t.DeclareFunction=function(e,t){i.isDeclareExportDeclaration(t)||(this.word("declare"),this.space());this.word("function"),this.space(),this.print(e.id,e),this.print(e.id.typeAnnotation.typeAnnotation,e),e.predicate&&(this.space(),this.print(e.predicate,e));this.semicolon()},t.InferredPredicate=function(){this.token("%"),this.word("checks")},t.DeclaredPredicate=function(e){this.token("%"),this.word("checks"),this.token("("),this.print(e.value,e),this.token(")")},t.DeclareInterface=function(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e)},t.DeclareModule=function(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id,e),this.space(),this.print(e.body,e)},t.DeclareModuleExports=function(e){this.word("declare"),this.space(),this.word("module"),this.token("."),this.word("exports"),this.print(e.typeAnnotation,e)},t.DeclareTypeAlias=function(e){this.word("declare"),this.space(),this.TypeAlias(e)},t.DeclareOpaqueType=function(e,t){i.isDeclareExportDeclaration(t)||(this.word("declare"),this.space());this.OpaqueType(e)},t.DeclareVariable=function(e,t){i.isDeclareExportDeclaration(t)||(this.word("declare"),this.space());this.word("var"),this.space(),this.print(e.id,e),this.print(e.id.typeAnnotation,e),this.semicolon()},t.DeclareExportDeclaration=function(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space());FlowExportDeclaration.apply(this,arguments)},t.DeclareExportAllDeclaration=function(){this.word("declare"),this.space(),n.ExportAllDeclaration.apply(this,arguments)},t.EnumDeclaration=function(e){const{id:t,body:r}=e;this.word("enum"),this.space(),this.print(t,e),this.print(r,e)},t.EnumBooleanBody=function(e){const{explicitType:t}=e;enumExplicitType(this,"boolean",t),enumBody(this,e)},t.EnumNumberBody=function(e){const{explicitType:t}=e;enumExplicitType(this,"number",t),enumBody(this,e)},t.EnumStringBody=function(e){const{explicitType:t}=e;enumExplicitType(this,"string",t),enumBody(this,e)},t.EnumSymbolBody=function(e){enumExplicitType(this,"symbol",!0),enumBody(this,e)},t.EnumDefaultedMember=function(e){const{id:t}=e;this.print(t,e),this.token(",")},t.EnumBooleanMember=function(e){enumInitializedMember(this,e)},t.EnumNumberMember=function(e){enumInitializedMember(this,e)},t.EnumStringMember=function(e){enumInitializedMember(this,e)},t.ExistsTypeAnnotation=function(){this.token("*")},t.FunctionTypeAnnotation=function(e,t){this.print(e.typeParameters,e),this.token("("),this.printList(e.params,e),e.rest&&(e.params.length&&(this.token(","),this.space()),this.token("..."),this.print(e.rest,e));this.token(")"),"ObjectTypeCallProperty"===t.type||"DeclareFunction"===t.type||"ObjectTypeProperty"===t.type&&t.method?this.token(":"):(this.space(),this.token("=>"));this.space(),this.print(e.returnType,e)},t.FunctionTypeParam=function(e){this.print(e.name,e),e.optional&&this.token("?");e.name&&(this.token(":"),this.space());this.print(e.typeAnnotation,e)},t.GenericTypeAnnotation=t.ClassImplements=t.InterfaceExtends=function(e){this.print(e.id,e),this.print(e.typeParameters,e)},t._interfaceish=function(e){this.print(e.id,e),this.print(e.typeParameters,e),e.extends.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends,e));e.mixins&&e.mixins.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins,e));e.implements&&e.implements.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e));this.space(),this.print(e.body,e)},t._variance=function(e){e.variance&&("plus"===e.variance.kind?this.token("+"):"minus"===e.variance.kind&&this.token("-"))},t.InterfaceDeclaration=function(e){this.word("interface"),this.space(),this._interfaceish(e)},t.InterfaceTypeAnnotation=function(e){this.word("interface"),e.extends&&e.extends.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends,e));this.space(),this.print(e.body,e)},t.IntersectionTypeAnnotation=function(e){this.printJoin(e.types,e,{separator:andSeparator})},t.MixedTypeAnnotation=function(){this.word("mixed")},t.EmptyTypeAnnotation=function(){this.word("empty")},t.NullableTypeAnnotation=function(e){this.token("?"),this.print(e.typeAnnotation,e)},t.NumberTypeAnnotation=function(){this.word("number")},t.StringTypeAnnotation=function(){this.word("string")},t.ThisTypeAnnotation=function(){this.word("this")},t.TupleTypeAnnotation=function(e){this.token("["),this.printList(e.types,e),this.token("]")},t.TypeofTypeAnnotation=function(e){this.word("typeof"),this.space(),this.print(e.argument,e)},t.TypeAlias=function(e){this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),this.space(),this.token("="),this.space(),this.print(e.right,e),this.semicolon()},t.TypeAnnotation=function(e){this.token(":"),this.space(),e.optional&&this.token("?");this.print(e.typeAnnotation,e)},t.TypeParameterDeclaration=t.TypeParameterInstantiation=function(e){this.token("<"),this.printList(e.params,e,{}),this.token(">")},t.TypeParameter=function(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound,e);e.default&&(this.space(),this.token("="),this.space(),this.print(e.default,e))},t.OpaqueType=function(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),e.supertype&&(this.token(":"),this.space(),this.print(e.supertype,e));e.impltype&&(this.space(),this.token("="),this.space(),this.print(e.impltype,e));this.semicolon()},t.ObjectTypeAnnotation=function(e){e.exact?this.token("{|"):this.token("{");const t=e.properties.concat(e.callProperties||[],e.indexers||[],e.internalSlots||[]);t.length&&(this.space(),this.printJoin(t,e,{addNewlines(e){if(e&&!t[0])return 1},indent:!0,statement:!0,iterator:()=>{(1!==t.length||e.inexact)&&(this.token(","),this.space())}}),this.space());e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent());e.exact?this.token("|}"):this.token("}")},t.ObjectTypeInternalSlot=function(e){e.static&&(this.word("static"),this.space());this.token("["),this.token("["),this.print(e.id,e),this.token("]"),this.token("]"),e.optional&&this.token("?");e.method||(this.token(":"),this.space());this.print(e.value,e)},t.ObjectTypeCallProperty=function(e){e.static&&(this.word("static"),this.space());this.print(e.value,e)},t.ObjectTypeIndexer=function(e){e.static&&(this.word("static"),this.space());this._variance(e),this.token("["),e.id&&(this.print(e.id,e),this.token(":"),this.space());this.print(e.key,e),this.token("]"),this.token(":"),this.space(),this.print(e.value,e)},t.ObjectTypeProperty=function(e){e.proto&&(this.word("proto"),this.space());e.static&&(this.word("static"),this.space());"get"!==e.kind&&"set"!==e.kind||(this.word(e.kind),this.space());this._variance(e),this.print(e.key,e),e.optional&&this.token("?");e.method||(this.token(":"),this.space());this.print(e.value,e)},t.ObjectTypeSpreadProperty=function(e){this.token("..."),this.print(e.argument,e)},t.QualifiedTypeIdentifier=function(e){this.print(e.qualification,e),this.token("."),this.print(e.id,e)},t.SymbolTypeAnnotation=function(){this.word("symbol")},t.UnionTypeAnnotation=function(e){this.printJoin(e.types,e,{separator:orSeparator})},t.TypeCastExpression=function(e){this.token("("),this.print(e.expression,e),this.print(e.typeAnnotation,e),this.token(")")},t.Variance=function(e){"plus"===e.kind?this.token("+"):this.token("-")},t.VoidTypeAnnotation=function(){this.word("void")},Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return s.NumericLiteral}}),Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return s.StringLiteral}});var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710)),n=r(3503),s=r(4827);function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function enumExplicitType(e,t,r){r&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function enumBody(e,t){const{members:r}=t;e.token("{"),e.indent(),e.newline();for(const i of r)e.print(i,t),e.newline();e.dedent(),e.token("}")}function enumInitializedMember(e,t){const{id:r,init:i}=t;e.print(r,t),e.space(),e.token("="),e.space(),e.print(i,t),e.token(",")}function FlowExportDeclaration(e){if(e.declaration){const t=e.declaration;this.print(t,e),i.isStatement(t)||this.semicolon()}else this.token("{"),e.specifiers.length&&(this.space(),this.printList(e.specifiers,e),this.space()),this.token("}"),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source,e)),this.semicolon()}function andSeparator(){this.space(),this.token("&"),this.space()}function orSeparator(){this.space(),this.token("|"),this.space()}},1464:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(3378);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var n=r(9901);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var s=r(9772);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var a=r(9570);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var o=r(4390);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var l=r(3503);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=r(4827);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var u=r(308);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var p=r(3762);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var d=r(6209);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r(5529);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}))},6209:(e,t)=>{"use strict";function spaceSeparator(){this.space()}Object.defineProperty(t,"__esModule",{value:!0}),t.JSXAttribute=function(e){this.print(e.name,e),e.value&&(this.token("="),this.print(e.value,e))},t.JSXIdentifier=function(e){this.word(e.name)},t.JSXNamespacedName=function(e){this.print(e.namespace,e),this.token(":"),this.print(e.name,e)},t.JSXMemberExpression=function(e){this.print(e.object,e),this.token("."),this.print(e.property,e)},t.JSXSpreadAttribute=function(e){this.token("{"),this.token("..."),this.print(e.argument,e),this.token("}")},t.JSXExpressionContainer=function(e){this.token("{"),this.print(e.expression,e),this.token("}")},t.JSXSpreadChild=function(e){this.token("{"),this.token("..."),this.print(e.expression,e),this.token("}")},t.JSXText=function(e){const t=this.getPossibleRaw(e);null!=t?this.token(t):this.token(e.value)},t.JSXElement=function(e){const t=e.openingElement;if(this.print(t,e),t.selfClosing)return;this.indent();for(const t of e.children)this.print(t,e);this.dedent(),this.print(e.closingElement,e)},t.JSXOpeningElement=function(e){this.token("<"),this.print(e.name,e),this.print(e.typeParameters,e),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,e,{separator:spaceSeparator}));e.selfClosing?(this.space(),this.token("/>")):this.token(">")},t.JSXClosingElement=function(e){this.token("</"),this.print(e.name,e),this.token(">")},t.JSXEmptyExpression=function(e){this.printInnerComments(e)},t.JSXFragment=function(e){this.print(e.openingFragment,e),this.indent();for(const t of e.children)this.print(t,e);this.dedent(),this.print(e.closingFragment,e)},t.JSXOpeningFragment=function(){this.token("<"),this.token(">")},t.JSXClosingFragment=function(){this.token("</"),this.token(">")}},4390:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._params=function(e){this.print(e.typeParameters,e),this.token("("),this._parameters(e.params,e),this.token(")"),this.print(e.returnType,e)},t._parameters=function(e,t){for(let r=0;r<e.length;r++)this._param(e[r],t),r<e.length-1&&(this.token(","),this.space())},t._param=function(e,t){this.printJoin(e.decorators,e),this.print(e,t),e.optional&&this.token("?");this.print(e.typeAnnotation,e)},t._methodHead=function(e){const t=e.kind,r=e.key;"get"!==t&&"set"!==t||(this.word(t),this.space());e.async&&(this._catchUp("start",r.loc),this.word("async"),this.space());"method"!==t&&"init"!==t||e.generator&&this.token("*");e.computed?(this.token("["),this.print(r,e),this.token("]")):this.print(r,e);e.optional&&this.token("?");this._params(e)},t._predicate=function(e){e.predicate&&(e.returnType||this.token(":"),this.space(),this.print(e.predicate,e))},t._functionHead=function(e){e.async&&(this.word("async"),this.space());this.word("function"),e.generator&&this.token("*");this.space(),e.id&&this.print(e.id,e);this._params(e),this._predicate(e)},t.FunctionDeclaration=t.FunctionExpression=function(e){this._functionHead(e),this.space(),this.print(e.body,e)},t.ArrowFunctionExpression=function(e){e.async&&(this.word("async"),this.space());const t=e.params[0];1===e.params.length&&i.isIdentifier(t)&&!function(e,t){return e.typeParameters||e.returnType||t.typeAnnotation||t.optional||t.trailingComments}(e,t)?(this.format.retainLines||e.async)&&e.loc&&e.body.loc&&e.loc.start.line<e.body.loc.start.line?(this.token("("),t.loc&&t.loc.start.line>e.loc.start.line?(this.indent(),this.print(t,e),this.dedent(),this._catchUp("start",e.body.loc)):this.print(t,e),this.token(")")):this.print(t,e):this._params(e);this._predicate(e),this.space(),this.token("=>"),this.space(),this.print(e.body,e)};var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}},3503:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImportSpecifier=function(e){"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space());this.print(e.imported,e),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local,e))},t.ImportDefaultSpecifier=function(e){this.print(e.local,e)},t.ExportDefaultSpecifier=function(e){this.print(e.exported,e)},t.ExportSpecifier=function(e){this.print(e.local,e),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported,e))},t.ExportNamespaceSpecifier=function(e){this.token("*"),this.space(),this.word("as"),this.space(),this.print(e.exported,e)},t.ExportAllDeclaration=function(e){this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space());this.token("*"),this.space(),this.word("from"),this.space(),this.print(e.source,e),this.printAssertions(e),this.semicolon()},t.ExportNamedDeclaration=function(e){this.format.decoratorsBeforeExport&&i.isClassDeclaration(e.declaration)&&this.printJoin(e.declaration.decorators,e);this.word("export"),this.space(),ExportDeclaration.apply(this,arguments)},t.ExportDefaultDeclaration=function(e){this.format.decoratorsBeforeExport&&i.isClassDeclaration(e.declaration)&&this.printJoin(e.declaration.decorators,e);this.word("export"),this.space(),this.word("default"),this.space(),ExportDeclaration.apply(this,arguments)},t.ImportDeclaration=function(e){var t;this.word("import"),this.space(),("type"===e.importKind||"typeof"===e.importKind)&&(this.word(e.importKind),this.space());const r=e.specifiers.slice(0);if(null==r?void 0:r.length){for(;;){const t=r[0];if(!i.isImportDefaultSpecifier(t)&&!i.isImportNamespaceSpecifier(t))break;this.print(r.shift(),e),r.length&&(this.token(","),this.space())}r.length&&(this.token("{"),this.space(),this.printList(r,e),this.space(),this.token("}")),this.space(),this.word("from"),this.space()}this.print(e.source,e),this.printAssertions(e),(null==(t=e.attributes)?void 0:t.length)&&(this.space(),this.word("with"),this.space(),this.printList(e.attributes,e));this.semicolon()},t.ImportAttribute=function(e){this.print(e.key),this.token(":"),this.space(),this.print(e.value)},t.ImportNamespaceSpecifier=function(e){this.token("*"),this.space(),this.word("as"),this.space(),this.print(e.local,e)};var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function ExportDeclaration(e){if(e.declaration){const t=e.declaration;this.print(t,e),i.isStatement(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());const t=e.specifiers.slice(0);let r=!1;for(;;){const n=t[0];if(!i.isExportDefaultSpecifier(n)&&!i.isExportNamespaceSpecifier(n))break;r=!0,this.print(t.shift(),e),t.length&&(this.token(","),this.space())}(t.length||!t.length&&!r)&&(this.token("{"),t.length&&(this.space(),this.printList(t,e),this.space()),this.token("}")),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source,e),this.printAssertions(e)),this.semicolon()}}},9772:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WithStatement=function(e){this.word("with"),this.space(),this.token("("),this.print(e.object,e),this.token(")"),this.printBlock(e)},t.IfStatement=function(e){this.word("if"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.space();const t=e.alternate&&i.isIfStatement(getLastStatement(e.consequent));t&&(this.token("{"),this.newline(),this.indent());this.printAndIndentOnComments(e.consequent,e),t&&(this.dedent(),this.newline(),this.token("}"));e.alternate&&(this.endsWith("}")&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate,e))},t.ForStatement=function(e){this.word("for"),this.space(),this.token("("),this.inForStatementInitCounter++,this.print(e.init,e),this.inForStatementInitCounter--,this.token(";"),e.test&&(this.space(),this.print(e.test,e));this.token(";"),e.update&&(this.space(),this.print(e.update,e));this.token(")"),this.printBlock(e)},t.WhileStatement=function(e){this.word("while"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.printBlock(e)},t.DoWhileStatement=function(e){this.word("do"),this.space(),this.print(e.body,e),this.space(),this.word("while"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.semicolon()},t.LabeledStatement=function(e){this.print(e.label,e),this.token(":"),this.space(),this.print(e.body,e)},t.TryStatement=function(e){this.word("try"),this.space(),this.print(e.block,e),this.space(),e.handlers?this.print(e.handlers[0],e):this.print(e.handler,e);e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer,e))},t.CatchClause=function(e){this.word("catch"),this.space(),e.param&&(this.token("("),this.print(e.param,e),this.print(e.param.typeAnnotation,e),this.token(")"),this.space());this.print(e.body,e)},t.SwitchStatement=function(e){this.word("switch"),this.space(),this.token("("),this.print(e.discriminant,e),this.token(")"),this.space(),this.token("{"),this.printSequence(e.cases,e,{indent:!0,addNewlines(t,r){if(!t&&e.cases[e.cases.length-1]===r)return-1}}),this.token("}")},t.SwitchCase=function(e){e.test?(this.word("case"),this.space(),this.print(e.test,e),this.token(":")):(this.word("default"),this.token(":"));e.consequent.length&&(this.newline(),this.printSequence(e.consequent,e,{indent:!0}))},t.DebuggerStatement=function(){this.word("debugger"),this.semicolon()},t.VariableDeclaration=function(e,t){e.declare&&(this.word("declare"),this.space());this.word(e.kind),this.space();let r,n=!1;if(!i.isFor(t))for(const t of e.declarations)t.init&&(n=!0);n&&(r="const"===e.kind?constDeclarationIndent:variableDeclarationIndent);if(this.printList(e.declarations,e,{separator:r}),i.isFor(t)&&(t.left===e||t.init===e))return;this.semicolon()},t.VariableDeclarator=function(e){this.print(e.id,e),e.definite&&this.token("!");this.print(e.id.typeAnnotation,e),e.init&&(this.space(),this.token("="),this.space(),this.print(e.init,e))},t.ThrowStatement=t.BreakStatement=t.ReturnStatement=t.ContinueStatement=t.ForOfStatement=t.ForInStatement=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function getLastStatement(e){return i.isStatement(e.body)?getLastStatement(e.body):e}const buildForXStatement=function(e){return function(t){this.word("for"),this.space(),"of"===e&&t.await&&(this.word("await"),this.space()),this.token("("),this.print(t.left,t),this.space(),this.word(e),this.space(),this.print(t.right,t),this.token(")"),this.printBlock(t)}},n=buildForXStatement("in");t.ForInStatement=n;const s=buildForXStatement("of");function buildLabelStatement(e,t="label"){return function(r){this.word(e);const i=r[t];if(i){this.space();const e="label"==t,n=this.startTerminatorless(e);this.print(i,r),this.endTerminatorless(n)}this.semicolon()}}t.ForOfStatement=s;const a=buildLabelStatement("continue");t.ContinueStatement=a;const o=buildLabelStatement("return","argument");t.ReturnStatement=o;const l=buildLabelStatement("break");t.BreakStatement=l;const c=buildLabelStatement("throw","argument");function variableDeclarationIndent(){if(this.token(","),this.newline(),this.endsWith("\\n"))for(let e=0;e<4;e++)this.space(!0)}function constDeclarationIndent(){if(this.token(","),this.newline(),this.endsWith("\\n"))for(let e=0;e<6;e++)this.space(!0)}t.ThrowStatement=c},3378:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaggedTemplateExpression=function(e){this.print(e.tag,e),this.print(e.typeParameters,e),this.print(e.quasi,e)},t.TemplateElement=function(e,t){const r=t.quasis[0]===e,i=t.quasis[t.quasis.length-1]===e,n=(r?"`":"}")+e.value.raw+(i?"`":"${");this.token(n)},t.TemplateLiteral=function(e){const t=e.quasis;for(let r=0;r<t.length;r++)this.print(t[r],e),r+1<t.length&&this.print(e.expressions[r],e)}},4827:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Identifier=function(e){this.exactSource(e.loc,(()=>{this.word(e.name)}))},t.ArgumentPlaceholder=function(){this.token("?")},t.SpreadElement=t.RestElement=function(e){this.token("..."),this.print(e.argument,e)},t.ObjectPattern=t.ObjectExpression=function(e){const t=e.properties;this.token("{"),this.printInnerComments(e),t.length&&(this.space(),this.printList(t,e,{indent:!0,statement:!0}),this.space());this.token("}")},t.ObjectMethod=function(e){this.printJoin(e.decorators,e),this._methodHead(e),this.space(),this.print(e.body,e)},t.ObjectProperty=function(e){if(this.printJoin(e.decorators,e),e.computed)this.token("["),this.print(e.key,e),this.token("]");else{if(n.isAssignmentPattern(e.value)&&n.isIdentifier(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value,e);if(this.print(e.key,e),e.shorthand&&n.isIdentifier(e.key)&&n.isIdentifier(e.value)&&e.key.name===e.value.name)return}this.token(":"),this.space(),this.print(e.value,e)},t.ArrayPattern=t.ArrayExpression=function(e){const t=e.elements,r=t.length;this.token("["),this.printInnerComments(e);for(let i=0;i<t.length;i++){const n=t[i];n?(i>0&&this.space(),this.print(n,e),i<r-1&&this.token(",")):this.token(",")}this.token("]")},t.RecordExpression=function(e){const t=e.properties;let r,i;if("bar"===this.format.recordAndTupleSyntaxType)r="{|",i="|}";else{if("hash"!==this.format.recordAndTupleSyntaxType)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);r="#{",i="}"}this.token(r),this.printInnerComments(e),t.length&&(this.space(),this.printList(t,e,{indent:!0,statement:!0}),this.space());this.token(i)},t.TupleExpression=function(e){const t=e.elements,r=t.length;let i,n;if("bar"===this.format.recordAndTupleSyntaxType)i="[|",n="|]";else{if("hash"!==this.format.recordAndTupleSyntaxType)throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);i="#[",n="]"}this.token(i),this.printInnerComments(e);for(let i=0;i<t.length;i++){const n=t[i];n&&(i>0&&this.space(),this.print(n,e),i<r-1&&this.token(","))}this.token(n)},t.RegExpLiteral=function(e){this.word(`/${e.pattern}/${e.flags}`)},t.BooleanLiteral=function(e){this.word(e.value?"true":"false")},t.NullLiteral=function(){this.word("null")},t.NumericLiteral=function(e){const t=this.getPossibleRaw(e),r=this.format.jsescOption,i=e.value+"";r.numbers?this.number((0,s.default)(e.value,r)):null==t?this.number(i):this.format.minified?this.number(t.length<i.length?t:i):this.number(t)},t.StringLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&null!=t)return void this.token(t);const r=this.format.jsescOption;this.format.jsonCompatibleStrings&&(r.json=!0);const i=(0,s.default)(e.value,r);return this.token(i)},t.BigIntLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&null!=t)return void this.token(t);this.token(e.value+"n")},t.DecimalLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&null!=t)return void this.token(t);this.token(e.value+"m")},t.PipelineTopicExpression=function(e){this.print(e.expression,e)},t.PipelineBareFunction=function(e){this.print(e.callee,e)},t.PipelinePrimaryTopicReference=function(){this.token("#")};var i,n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710)),s=(i=r(442))&&i.__esModule?i:{default:i};function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}},5529:(e,t)=>{"use strict";function tokenIfPlusMinus(e,t){!0!==t&&e.token(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.TSTypeAnnotation=function(e){this.token(":"),this.space(),e.optional&&this.token("?");this.print(e.typeAnnotation,e)},t.TSTypeParameterDeclaration=t.TSTypeParameterInstantiation=function(e){this.token("<"),this.printList(e.params,e,{}),this.token(">")},t.TSTypeParameter=function(e){this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint,e));e.default&&(this.space(),this.token("="),this.space(),this.print(e.default,e))},t.TSParameterProperty=function(e){e.accessibility&&(this.word(e.accessibility),this.space());e.readonly&&(this.word("readonly"),this.space());this._param(e.parameter)},t.TSDeclareFunction=function(e){e.declare&&(this.word("declare"),this.space());this._functionHead(e),this.token(";")},t.TSDeclareMethod=function(e){this._classMethodHead(e),this.token(";")},t.TSQualifiedName=function(e){this.print(e.left,e),this.token("."),this.print(e.right,e)},t.TSCallSignatureDeclaration=function(e){this.tsPrintSignatureDeclarationBase(e),this.token(";")},t.TSConstructSignatureDeclaration=function(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),this.token(";")},t.TSPropertySignature=function(e){const{readonly:t,initializer:r}=e;t&&(this.word("readonly"),this.space());this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation,e),r&&(this.space(),this.token("="),this.space(),this.print(r,e));this.token(";")},t.tsPrintPropertyOrMethodName=function(e){e.computed&&this.token("[");this.print(e.key,e),e.computed&&this.token("]");e.optional&&this.token("?")},t.TSMethodSignature=function(e){this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),this.token(";")},t.TSIndexSignature=function(e){const{readonly:t}=e;t&&(this.word("readonly"),this.space());this.token("["),this._parameters(e.parameters,e),this.token("]"),this.print(e.typeAnnotation,e),this.token(";")},t.TSAnyKeyword=function(){this.word("any")},t.TSBigIntKeyword=function(){this.word("bigint")},t.TSUnknownKeyword=function(){this.word("unknown")},t.TSNumberKeyword=function(){this.word("number")},t.TSObjectKeyword=function(){this.word("object")},t.TSBooleanKeyword=function(){this.word("boolean")},t.TSStringKeyword=function(){this.word("string")},t.TSSymbolKeyword=function(){this.word("symbol")},t.TSVoidKeyword=function(){this.word("void")},t.TSUndefinedKeyword=function(){this.word("undefined")},t.TSNullKeyword=function(){this.word("null")},t.TSNeverKeyword=function(){this.word("never")},t.TSIntrinsicKeyword=function(){this.word("intrinsic")},t.TSThisType=function(){this.word("this")},t.TSFunctionType=function(e){this.tsPrintFunctionOrConstructorType(e)},t.TSConstructorType=function(e){this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)},t.tsPrintFunctionOrConstructorType=function(e){const{typeParameters:t,parameters:r}=e;this.print(t,e),this.token("("),this._parameters(r,e),this.token(")"),this.space(),this.token("=>"),this.space(),this.print(e.typeAnnotation.typeAnnotation,e)},t.TSTypeReference=function(e){this.print(e.typeName,e),this.print(e.typeParameters,e)},t.TSTypePredicate=function(e){e.asserts&&(this.word("asserts"),this.space());this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))},t.TSTypeQuery=function(e){this.word("typeof"),this.space(),this.print(e.exprName)},t.TSTypeLiteral=function(e){this.tsPrintTypeLiteralOrInterfaceBody(e.members,e)},t.tsPrintTypeLiteralOrInterfaceBody=function(e,t){this.tsPrintBraced(e,t)},t.tsPrintBraced=function(e,t){if(this.token("{"),e.length){this.indent(),this.newline();for(const r of e)this.print(r,t),this.newline();this.dedent(),this.rightBrace()}else this.token("}")},t.TSArrayType=function(e){this.print(e.elementType,e),this.token("[]")},t.TSTupleType=function(e){this.token("["),this.printList(e.elementTypes,e),this.token("]")},t.TSOptionalType=function(e){this.print(e.typeAnnotation,e),this.token("?")},t.TSRestType=function(e){this.token("..."),this.print(e.typeAnnotation,e)},t.TSNamedTupleMember=function(e){this.print(e.label,e),e.optional&&this.token("?");this.token(":"),this.space(),this.print(e.elementType,e)},t.TSUnionType=function(e){this.tsPrintUnionOrIntersectionType(e,"|")},t.TSIntersectionType=function(e){this.tsPrintUnionOrIntersectionType(e,"&")},t.tsPrintUnionOrIntersectionType=function(e,t){this.printJoin(e.types,e,{separator(){this.space(),this.token(t),this.space()}})},t.TSConditionalType=function(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.token("?"),this.space(),this.print(e.trueType),this.space(),this.token(":"),this.space(),this.print(e.falseType)},t.TSInferType=function(e){this.token("infer"),this.space(),this.print(e.typeParameter)},t.TSParenthesizedType=function(e){this.token("("),this.print(e.typeAnnotation,e),this.token(")")},t.TSTypeOperator=function(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation,e)},t.TSIndexedAccessType=function(e){this.print(e.objectType,e),this.token("["),this.print(e.indexType,e),this.token("]")},t.TSMappedType=function(e){const{nameType:t,optional:r,readonly:i,typeParameter:n}=e;this.token("{"),this.space(),i&&(tokenIfPlusMinus(this,i),this.word("readonly"),this.space());this.token("["),this.word(n.name),this.space(),this.word("in"),this.space(),this.print(n.constraint,n),t&&(this.space(),this.word("as"),this.space(),this.print(t,e));this.token("]"),r&&(tokenIfPlusMinus(this,r),this.token("?"));this.token(":"),this.space(),this.print(e.typeAnnotation,e),this.space(),this.token("}")},t.TSLiteralType=function(e){this.print(e.literal,e)},t.TSExpressionWithTypeArguments=function(e){this.print(e.expression,e),this.print(e.typeParameters,e)},t.TSInterfaceDeclaration=function(e){const{declare:t,id:r,typeParameters:i,extends:n,body:s}=e;t&&(this.word("declare"),this.space());this.word("interface"),this.space(),this.print(r,e),this.print(i,e),n&&(this.space(),this.word("extends"),this.space(),this.printList(n,e));this.space(),this.print(s,e)},t.TSInterfaceBody=function(e){this.tsPrintTypeLiteralOrInterfaceBody(e.body,e)},t.TSTypeAliasDeclaration=function(e){const{declare:t,id:r,typeParameters:i,typeAnnotation:n}=e;t&&(this.word("declare"),this.space());this.word("type"),this.space(),this.print(r,e),this.print(i,e),this.space(),this.token("="),this.space(),this.print(n,e),this.token(";")},t.TSAsExpression=function(e){const{expression:t,typeAnnotation:r}=e;this.print(t,e),this.space(),this.word("as"),this.space(),this.print(r,e)},t.TSTypeAssertion=function(e){const{typeAnnotation:t,expression:r}=e;this.token("<"),this.print(t,e),this.token(">"),this.space(),this.print(r,e)},t.TSEnumDeclaration=function(e){const{declare:t,const:r,id:i,members:n}=e;t&&(this.word("declare"),this.space());r&&(this.word("const"),this.space());this.word("enum"),this.space(),this.print(i,e),this.space(),this.tsPrintBraced(n,e)},t.TSEnumMember=function(e){const{id:t,initializer:r}=e;this.print(t,e),r&&(this.space(),this.token("="),this.space(),this.print(r,e));this.token(",")},t.TSModuleDeclaration=function(e){const{declare:t,id:r}=e;t&&(this.word("declare"),this.space());e.global||(this.word("Identifier"===r.type?"namespace":"module"),this.space());if(this.print(r,e),!e.body)return void this.token(";");let i=e.body;for(;"TSModuleDeclaration"===i.type;)this.token("."),this.print(i.id,i),i=i.body;this.space(),this.print(i,e)},t.TSModuleBlock=function(e){this.tsPrintBraced(e.body,e)},t.TSImportType=function(e){const{argument:t,qualifier:r,typeParameters:i}=e;this.word("import"),this.token("("),this.print(t,e),this.token(")"),r&&(this.token("."),this.print(r,e));i&&this.print(i,e)},t.TSImportEqualsDeclaration=function(e){const{isExport:t,id:r,moduleReference:i}=e;t&&(this.word("export"),this.space());this.word("import"),this.space(),this.print(r,e),this.space(),this.token("="),this.space(),this.print(i,e),this.token(";")},t.TSExternalModuleReference=function(e){this.token("require("),this.print(e.expression,e),this.token(")")},t.TSNonNullExpression=function(e){this.print(e.expression,e),this.token("!")},t.TSExportAssignment=function(e){this.word("export"),this.space(),this.token("="),this.space(),this.print(e.expression,e),this.token(";")},t.TSNamespaceExportDeclaration=function(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id,e)},t.tsPrintSignatureDeclarationBase=function(e){const{typeParameters:t,parameters:r}=e;this.print(t,e),this.token("("),this._parameters(r,e),this.token(")"),this.print(e.typeAnnotation,e)},t.tsPrintClassMemberModifiers=function(e,t){t&&e.declare&&(this.word("declare"),this.space());e.accessibility&&(this.word(e.accessibility),this.space());e.static&&(this.word("static"),this.space());e.abstract&&(this.word("abstract"),this.space());t&&e.readonly&&(this.word("readonly"),this.space())}},5386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){return new s(e,t,r).generate()},t.CodeGenerator=void 0;var i=_interopRequireDefault(r(1783)),n=_interopRequireDefault(r(3237));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class s extends n.default{constructor(e,t={},r){const n=function(e,t){const r={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:null==t.comments||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,jsonCompatibleStrings:t.jsonCompatibleStrings,indent:{adjustMultilineComment:!0,style:" ",base:0},decoratorsBeforeExport:!!t.decoratorsBeforeExport,jsescOption:Object.assign({quotes:"double",wrap:!0},t.jsescOption),recordAndTupleSyntaxType:t.recordAndTupleSyntaxType};r.minified?(r.compact=!0,r.shouldPrintComment=r.shouldPrintComment||(()=>r.comments)):r.shouldPrintComment=r.shouldPrintComment||(e=>r.comments||e.indexOf("@license")>=0||e.indexOf("@preserve")>=0);"auto"===r.compact&&(r.compact=e.length>5e5,r.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`));r.compact&&(r.indent.adjustMultilineComment=!1);return r}(r,t);super(n,t.sourceMaps?new i.default(t,r):null),this.ast=void 0,this.ast=e}generate(){return super.generate(this.ast)}}t.CodeGenerator=class{constructor(e,t,r){this._generator=new s(e,t,r)}generate(){return this._generator.generate()}}},944:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.needsWhitespace=needsWhitespace,t.needsWhitespaceBefore=function(e,t){return needsWhitespace(e,t,"before")},t.needsWhitespaceAfter=function(e,t){return needsWhitespace(e,t,"after")},t.needsParens=function(e,t,r){if(!t)return!1;if(s.isNewExpression(t)&&t.callee===e&&isOrHasCallExpression(e))return!0;return find(a,e,t,r)};var i=_interopRequireWildcard(r(3880)),n=_interopRequireWildcard(r(3602)),s=_interopRequireWildcard(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}function expandAliases(e){const t={};function add(e,r){const i=t[e];t[e]=i?function(e,t,n){const s=i(e,t,n);return null==s?r(e,t,n):s}:r}for(const t of Object.keys(e)){const r=s.FLIPPED_ALIAS_KEYS[t];if(r)for(const i of r)add(i,e[t]);else add(t,e[t])}return t}const a=expandAliases(n),o=expandAliases(i.nodes),l=expandAliases(i.list);function find(e,t,r,i){const n=e[t.type];return n?n(t,r,i):null}function isOrHasCallExpression(e){return!!s.isCallExpression(e)||s.isMemberExpression(e)&&isOrHasCallExpression(e.object)}function needsWhitespace(e,t,r){if(!e)return 0;s.isExpressionStatement(e)&&(e=e.expression);let i=find(o,e,t);if(!i){const n=find(l,e,t);if(n)for(let t=0;t<n.length&&(i=needsWhitespace(n[t],e,r),!i);t++);}return"object"==typeof i&&null!==i&&i[r]||0}},3602:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NullableTypeAnnotation=function(e,t){return i.isArrayTypeAnnotation(t)},t.FunctionTypeAnnotation=function(e,t,r){return i.isUnionTypeAnnotation(t)||i.isIntersectionTypeAnnotation(t)||i.isArrayTypeAnnotation(t)||i.isTypeAnnotation(t)&&i.isArrowFunctionExpression(r[r.length-3])},t.UpdateExpression=function(e,t){return hasPostfixPart(e,t)||isClassExtendsClause(e,t)},t.ObjectExpression=function(e,t,r){return isFirstInStatement(r,{considerArrow:!0})},t.DoExpression=function(e,t,r){return isFirstInStatement(r)},t.Binary=function(e,t){if("**"===e.operator&&i.isBinaryExpression(t,{operator:"**"}))return t.left===e;if(isClassExtendsClause(e,t))return!0;if(hasPostfixPart(e,t)||i.isUnaryLike(t)||i.isAwaitExpression(t))return!0;if(i.isBinary(t)){const r=t.operator,s=n[r],a=e.operator,o=n[a];if(s===o&&t.right===e&&!i.isLogicalExpression(t)||s>o)return!0}},t.IntersectionTypeAnnotation=t.UnionTypeAnnotation=function(e,t){return i.isArrayTypeAnnotation(t)||i.isNullableTypeAnnotation(t)||i.isIntersectionTypeAnnotation(t)||i.isUnionTypeAnnotation(t)},t.TSAsExpression=function(){return!0},t.TSTypeAssertion=function(){return!0},t.TSIntersectionType=t.TSUnionType=function(e,t){return i.isTSArrayType(t)||i.isTSOptionalType(t)||i.isTSIntersectionType(t)||i.isTSUnionType(t)||i.isTSRestType(t)},t.TSInferType=function(e,t){return i.isTSArrayType(t)||i.isTSOptionalType(t)},t.BinaryExpression=function(e,t){return"in"===e.operator&&(i.isVariableDeclarator(t)||i.isFor(t))},t.SequenceExpression=function(e,t){if(i.isForStatement(t)||i.isThrowStatement(t)||i.isReturnStatement(t)||i.isIfStatement(t)&&t.test===e||i.isWhileStatement(t)&&t.test===e||i.isForInStatement(t)&&t.right===e||i.isSwitchStatement(t)&&t.discriminant===e||i.isExpressionStatement(t)&&t.expression===e)return!1;return!0},t.AwaitExpression=t.YieldExpression=function(e,t){return i.isBinary(t)||i.isUnaryLike(t)||hasPostfixPart(e,t)||i.isAwaitExpression(t)&&i.isYieldExpression(e)||i.isConditionalExpression(t)&&e===t.test||isClassExtendsClause(e,t)},t.ClassExpression=function(e,t,r){return isFirstInStatement(r,{considerDefaultExports:!0})},t.UnaryLike=UnaryLike,t.FunctionExpression=function(e,t,r){return isFirstInStatement(r,{considerDefaultExports:!0})},t.ArrowFunctionExpression=function(e,t){return i.isExportDeclaration(t)||ConditionalExpression(e,t)},t.ConditionalExpression=ConditionalExpression,t.OptionalCallExpression=t.OptionalMemberExpression=function(e,t){return i.isCallExpression(t,{callee:e})||i.isMemberExpression(t,{object:e})},t.AssignmentExpression=function(e,t,r){return!!i.isObjectPattern(e.left)||ConditionalExpression(e,t)},t.LogicalExpression=function(e,t){switch(e.operator){case"||":return!!i.isLogicalExpression(t)&&("??"===t.operator||"&&"===t.operator);case"&&":return i.isLogicalExpression(t,{operator:"??"});case"??":return i.isLogicalExpression(t)&&"??"!==t.operator}};var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}const n={"||":0,"??":0,"&&":1,"|":2,"^":3,"&":4,"==":5,"===":5,"!=":5,"!==":5,"<":6,">":6,"<=":6,">=":6,in:6,instanceof:6,">>":7,"<<":7,">>>":7,"+":8,"-":8,"*":9,"/":9,"%":9,"**":10},isClassExtendsClause=(e,t)=>(i.isClassDeclaration(t)||i.isClassExpression(t))&&t.superClass===e,hasPostfixPart=(e,t)=>(i.isMemberExpression(t)||i.isOptionalMemberExpression(t))&&t.object===e||(i.isCallExpression(t)||i.isOptionalCallExpression(t)||i.isNewExpression(t))&&t.callee===e||i.isTaggedTemplateExpression(t)&&t.tag===e||i.isTSNonNullExpression(t);function UnaryLike(e,t){return hasPostfixPart(e,t)||i.isBinaryExpression(t,{operator:"**",left:e})||isClassExtendsClause(e,t)}function ConditionalExpression(e,t){return!!(i.isUnaryLike(t)||i.isBinary(t)||i.isConditionalExpression(t,{test:e})||i.isAwaitExpression(t)||i.isTSTypeAssertion(t)||i.isTSAsExpression(t))||UnaryLike(e,t)}function isFirstInStatement(e,{considerArrow:t=!1,considerDefaultExports:r=!1}={}){let n=e.length-1,s=e[n];n--;let a=e[n];for(;n>=0;){if(i.isExpressionStatement(a,{expression:s})||r&&i.isExportDefaultDeclaration(a,{declaration:s})||t&&i.isArrowFunctionExpression(a,{body:s}))return!0;if(!(hasPostfixPart(s,a)&&!i.isNewExpression(a)||i.isSequenceExpression(a)&&a.expressions[0]===s||i.isConditional(a,{test:s})||i.isBinary(a,{left:s})||i.isAssignmentExpression(a,{left:s})))return!1;s=a,n--,a=e[n]}return!1}},3880:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.list=t.nodes=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function crawl(e,t={}){return i.isMemberExpression(e)||i.isOptionalMemberExpression(e)?(crawl(e.object,t),e.computed&&crawl(e.property,t)):i.isBinary(e)||i.isAssignmentExpression(e)?(crawl(e.left,t),crawl(e.right,t)):i.isCallExpression(e)||i.isOptionalCallExpression(e)?(t.hasCall=!0,crawl(e.callee,t)):i.isFunction(e)?t.hasFunction=!0:i.isIdentifier(e)&&(t.hasHelper=t.hasHelper||isHelper(e.callee)),t}function isHelper(e){return i.isMemberExpression(e)?isHelper(e.object)||isHelper(e.property):i.isIdentifier(e)?"require"===e.name||"_"===e.name[0]:i.isCallExpression(e)?isHelper(e.callee):!(!i.isBinary(e)&&!i.isAssignmentExpression(e))&&(i.isIdentifier(e.left)&&isHelper(e.left)||isHelper(e.right))}function isType(e){return i.isLiteral(e)||i.isObjectExpression(e)||i.isArrayExpression(e)||i.isIdentifier(e)||i.isMemberExpression(e)}const n={AssignmentExpression(e){const t=crawl(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return{before:t.hasFunction,after:!0}},SwitchCase:(e,t)=>({before:e.consequent.length||t.cases[0]===e,after:!e.consequent.length&&t.cases[t.cases.length-1]===e}),LogicalExpression(e){if(i.isFunction(e.left)||i.isFunction(e.right))return{after:!0}},Literal(e){if("use strict"===e.value)return{after:!0}},CallExpression(e){if(i.isFunction(e.callee)||isHelper(e))return{before:!0,after:!0}},OptionalCallExpression(e){if(i.isFunction(e.callee))return{before:!0,after:!0}},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){const r=e.declarations[t];let i=isHelper(r.id)&&!isType(r.init);if(!i){const e=crawl(r.init);i=isHelper(r.init)&&e.hasCall||e.hasFunction}if(i)return{before:!0,after:!0}}},IfStatement(e){if(i.isBlockStatement(e.consequent))return{before:!0,after:!0}}};t.nodes=n,n.ObjectProperty=n.ObjectTypeProperty=n.ObjectMethod=function(e,t){if(t.properties[0]===e)return{before:!0}},n.ObjectTypeCallProperty=function(e,t){var r;if(t.callProperties[0]===e&&!(null==(r=t.properties)?void 0:r.length))return{before:!0}},n.ObjectTypeIndexer=function(e,t){var r,i;if(t.indexers[0]===e&&!(null==(r=t.properties)?void 0:r.length)&&!(null==(i=t.callProperties)?void 0:i.length))return{before:!0}},n.ObjectTypeInternalSlot=function(e,t){var r,i,n;if(t.internalSlots[0]===e&&!(null==(r=t.properties)?void 0:r.length)&&!(null==(i=t.callProperties)?void 0:i.length)&&!(null==(n=t.indexers)?void 0:n.length))return{before:!0}};const s={VariableDeclaration:e=>e.declarations.map((e=>e.init)),ArrayExpression:e=>e.elements,ObjectExpression:e=>e.properties};t.list=s,[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach((function([e,t]){"boolean"==typeof t&&(t={after:t,before:t}),[e].concat(i.FLIPPED_ALIAS_KEYS[e]||[]).forEach((function(e){n[e]=function(){return t}}))}))},3237:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,n=(i=r(8404))&&i.__esModule?i:{default:i},s=_interopRequireWildcard(r(944)),a=_interopRequireWildcard(r(1710)),o=_interopRequireWildcard(r(1464));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}const l=/e/i,c=/\\.0+$/,u=/^0[box]/,p=/^\\s*[@#]__PURE__\\s*$/;class d{constructor(e,t){this.inForStatementInitCounter=0,this._printStack=[],this._indent=0,this._insideAux=!1,this._printedCommentStarts={},this._parenPushNewlineState=null,this._noLineTerminator=!1,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new WeakSet,this._endsWithInteger=!1,this._endsWithWord=!1,this.format=e||{},this._buf=new n.default(t)}generate(e){return this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){this.format.compact||this.format.concise||this._indent++}dedent(){this.format.compact||this.format.concise||this._indent--}semicolon(e=!1){this._maybeAddAuxComment(),this._append(";",!e)}rightBrace(){this.format.minified&&this._buf.removeLastSemicolon(),this.token("}")}space(e=!1){this.format.compact||(this._buf.hasContent()&&!this.endsWith(" ")&&!this.endsWith("\\n")||e)&&this._space()}word(e){(this._endsWithWord||this.endsWith("/")&&0===e.indexOf("/"))&&this._space(),this._maybeAddAuxComment(),this._append(e),this._endsWithWord=!0}number(e){this.word(e),this._endsWithInteger=Number.isInteger(+e)&&!u.test(e)&&!l.test(e)&&!c.test(e)&&"."!==e[e.length-1]}token(e){("--"===e&&this.endsWith("!")||"+"===e[0]&&this.endsWith("+")||"-"===e[0]&&this.endsWith("-")||"."===e[0]&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._append(e)}newline(e){if(!this.format.retainLines&&!this.format.compact)if(this.format.concise)this.space();else if(!(this.endsWith("\\n\\n")||("number"!=typeof e&&(e=1),e=Math.min(2,e),(this.endsWith("{\\n")||this.endsWith(":\\n"))&&e--,e<=0)))for(let t=0;t<e;t++)this._newline()}endsWith(e){return this._buf.endsWith(e)}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,t){this._catchUp("start",e),this._buf.exactSource(e,t)}source(e,t){this._catchUp(e,t),this._buf.source(e,t)}withSource(e,t,r){this._catchUp(e,t),this._buf.withSource(e,t,r)}_space(){this._append(" ",!0)}_newline(){this._append("\\n",!0)}_append(e,t=!1){this._maybeAddParen(e),this._maybeIndent(e),t?this._buf.queue(e):this._buf.append(e),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(e){this._indent&&this.endsWith("\\n")&&"\\n"!==e[0]&&this._buf.queue(this._getIndent())}_maybeAddParen(e){const t=this._parenPushNewlineState;if(!t)return;let r;for(r=0;r<e.length&&" "===e[r];r++)continue;if(r===e.length)return;const i=e[r];if("\\n"!==i){if("/"!==i||r+1===e.length)return void(this._parenPushNewlineState=null);const t=e[r+1];if("*"===t){if(p.test(e.slice(r+2,e.length-2)))return}else if("/"!==t)return void(this._parenPushNewlineState=null)}this.token("("),this.indent(),t.printed=!0}_catchUp(e,t){if(!this.format.retainLines)return;const r=t?t[e]:null;if(null!=(null==r?void 0:r.line)){const e=r.line-this._buf.getCurrentLine();for(let t=0;t<e;t++)this._newline()}}_getIndent(){return this.format.indent.style.repeat(this._indent)}startTerminatorless(e=!1){return e?(this._noLineTerminator=!0,null):this._parenPushNewlineState={printed:!1}}endTerminatorless(e){this._noLineTerminator=!1,(null==e?void 0:e.printed)&&(this.dedent(),this.newline(),this.token(")"))}print(e,t){if(!e)return;const r=this.format.concise;e._compact&&(this.format.concise=!0);const i=this[e.type];if(!i)throw new ReferenceError(`unknown node of type ${JSON.stringify(e.type)} with constructor ${JSON.stringify(null==e?void 0:e.constructor.name)}`);this._printStack.push(e);const n=this._insideAux;this._insideAux=!e.loc,this._maybeAddAuxComment(this._insideAux&&!n);let o=s.needsParens(e,t,this._printStack);this.format.retainFunctionParens&&"FunctionExpression"===e.type&&e.extra&&e.extra.parenthesized&&(o=!0),o&&this.token("("),this._printLeadingComments(e);const l=a.isProgram(e)||a.isFile(e)?null:e.loc;this.withSource("start",l,(()=>{i.call(this,e,t)})),this._printTrailingComments(e),o&&this.token(")"),this._printStack.pop(),this.format.concise=r,this._insideAux=n}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e})}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e})}getPossibleRaw(e){const t=e.extra;if(t&&null!=t.raw&&null!=t.rawValue&&e.value===t.rawValue)return t.raw}printJoin(e,t,r={}){if(!(null==e?void 0:e.length))return;r.indent&&this.indent();const i={addNewlines:r.addNewlines};for(let n=0;n<e.length;n++){const s=e[n];s&&(r.statement&&this._printNewline(!0,s,t,i),this.print(s,t),r.iterator&&r.iterator(s,n),r.separator&&n<e.length-1&&r.separator.call(this),r.statement&&this._printNewline(!1,s,t,i))}r.indent&&this.dedent()}printAndIndentOnComments(e,t){const r=e.leadingComments&&e.leadingComments.length>0;r&&this.indent(),this.print(e,t),r&&this.dedent()}printBlock(e){const t=e.body;a.isEmptyStatement(t)||this.space(),this.print(t,e)}_printTrailingComments(e){this._printComments(this._getComments(!1,e))}_printLeadingComments(e){this._printComments(this._getComments(!0,e),!0)}printInnerComments(e,t=!0){var r;(null==(r=e.innerComments)?void 0:r.length)&&(t&&this.indent(),this._printComments(e.innerComments),t&&this.dedent())}printSequence(e,t,r={}){return r.statement=!0,this.printJoin(e,t,r)}printList(e,t,r={}){return null==r.separator&&(r.separator=commaSeparator),this.printJoin(e,t,r)}_printNewline(e,t,r,i){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space();let n=0;if(this._buf.hasContent()){e||n++,i.addNewlines&&(n+=i.addNewlines(e,t)||0);(e?s.needsWhitespaceBefore:s.needsWhitespaceAfter)(t,r)&&n++}this.newline(n)}_getComments(e,t){return t&&(e?t.leadingComments:t.trailingComments)||[]}_printComment(e,t){if(!this.format.shouldPrintComment(e.value))return;if(e.ignore)return;if(this._printedComments.has(e))return;if(this._printedComments.add(e),null!=e.start){if(this._printedCommentStarts[e.start])return;this._printedCommentStarts[e.start]=!0}const r="CommentBlock"===e.type,i=r&&!t&&!this._noLineTerminator;i&&this._buf.hasContent()&&this.newline(1),this.endsWith("[")||this.endsWith("{")||this.space();let n=r||this._noLineTerminator?`/*${e.value}*/`:`//${e.value}\\n`;if(r&&this.format.indent.adjustMultilineComment){var s;const t=null==(s=e.loc)?void 0:s.start.column;if(t){const e=new RegExp("\\\\n\\\\s{1,"+t+"}","g");n=n.replace(e,"\\n")}const r=Math.max(this._getIndent().length,this.format.retainLines?0:this._buf.getCurrentColumn());n=n.replace(/\\n(?!$)/g,`\\n${" ".repeat(r)}`)}this.endsWith("/")&&this._space(),this.withSource("start",e.loc,(()=>{this._append(n)})),i&&this.newline(1)}_printComments(e,t){if(null==e?void 0:e.length)if(t&&1===e.length&&p.test(e[0].value))this._printComment(e[0],this._buf.hasContent()&&!this.endsWith("\\n"));else for(const t of e)this._printComment(t)}printAssertions(e){var t;(null==(t=e.assertions)?void 0:t.length)&&(this.space(),this.word("assert"),this.space(),this.token("{"),this.space(),this.printList(e.assertions,e),this.space(),this.token("}"))}}function commaSeparator(){this.token(","),this.space()}t.default=d,Object.assign(d.prototype,o)},1783:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,n=(i=r(9351))&&i.__esModule?i:{default:i};t.default=class{constructor(e,t){this._cachedMap=null,this._code=t,this._opts=e,this._rawMappings=[]}get(){if(!this._cachedMap){const e=this._cachedMap=new n.default.SourceMapGenerator({sourceRoot:this._opts.sourceRoot}),t=this._code;"string"==typeof t?e.setSourceContent(this._opts.sourceFileName.replace(/\\\\/g,"/"),t):"object"==typeof t&&Object.keys(t).forEach((r=>{e.setSourceContent(r.replace(/\\\\/g,"/"),t[r])})),this._rawMappings.forEach((t=>e.addMapping(t)),e)}return this._cachedMap.toJSON()}getRawMappings(){return this._rawMappings.slice()}mark(e,t,r,i,n,s,a){this._lastGenLine!==e&&null===r||(a||this._lastGenLine!==e||this._lastSourceLine!==r||this._lastSourceColumn!==i)&&(this._cachedMap=null,this._lastGenLine=e,this._lastSourceLine=r,this._lastSourceColumn=i,this._rawMappings.push({name:n||void 0,generated:{line:e,column:t},source:null==r?void 0:(s||this._opts.sourceFileName).replace(/\\\\/g,"/"),original:null==r?void 0:{line:r,column:i}}))}}},7493:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=!0,i=!0,n=!0,s=!0;class a{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.updateContext=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}}const o=new Map;function createKeyword(e,t={}){t.keyword=e;const r=new a(e,t);return o.set(e,r),r}function createBinop(e,t){return new a(e,{beforeExpr:r,binop:t})}const l={num:new a("num",{startsExpr:i}),bigint:new a("bigint",{startsExpr:i}),decimal:new a("decimal",{startsExpr:i}),regexp:new a("regexp",{startsExpr:i}),string:new a("string",{startsExpr:i}),name:new a("name",{startsExpr:i}),eof:new a("eof"),bracketL:new a("[",{beforeExpr:r,startsExpr:i}),bracketHashL:new a("#[",{beforeExpr:r,startsExpr:i}),bracketBarL:new a("[|",{beforeExpr:r,startsExpr:i}),bracketR:new a("]"),bracketBarR:new a("|]"),braceL:new a("{",{beforeExpr:r,startsExpr:i}),braceBarL:new a("{|",{beforeExpr:r,startsExpr:i}),braceHashL:new a("#{",{beforeExpr:r,startsExpr:i}),braceR:new a("}"),braceBarR:new a("|}"),parenL:new a("(",{beforeExpr:r,startsExpr:i}),parenR:new a(")"),comma:new a(",",{beforeExpr:r}),semi:new a(";",{beforeExpr:r}),colon:new a(":",{beforeExpr:r}),doubleColon:new a("::",{beforeExpr:r}),dot:new a("."),question:new a("?",{beforeExpr:r}),questionDot:new a("?."),arrow:new a("=>",{beforeExpr:r}),template:new a("template"),ellipsis:new a("...",{beforeExpr:r}),backQuote:new a("`",{startsExpr:i}),dollarBraceL:new a("${",{beforeExpr:r,startsExpr:i}),at:new a("@"),hash:new a("#",{startsExpr:i}),interpreterDirective:new a("#!..."),eq:new a("=",{beforeExpr:r,isAssign:true}),assign:new a("_=",{beforeExpr:r,isAssign:true}),incDec:new a("++/--",{prefix:s,postfix:!0,startsExpr:i}),bang:new a("!",{beforeExpr:r,prefix:s,startsExpr:i}),tilde:new a("~",{beforeExpr:r,prefix:s,startsExpr:i}),pipeline:createBinop("|>",0),nullishCoalescing:createBinop("??",1),logicalOR:createBinop("||",1),logicalAND:createBinop("&&",2),bitwiseOR:createBinop("|",3),bitwiseXOR:createBinop("^",4),bitwiseAND:createBinop("&",5),equality:createBinop("==/!=/===/!==",6),relational:createBinop("</>/<=/>=",7),bitShift:createBinop("<</>>/>>>",8),plusMin:new a("+/-",{beforeExpr:r,binop:9,prefix:s,startsExpr:i}),modulo:new a("%",{beforeExpr:r,binop:10,startsExpr:i}),star:new a("*",{binop:10}),slash:createBinop("/",10),exponent:new a("**",{beforeExpr:r,binop:11,rightAssociative:!0}),_break:createKeyword("break"),_case:createKeyword("case",{beforeExpr:r}),_catch:createKeyword("catch"),_continue:createKeyword("continue"),_debugger:createKeyword("debugger"),_default:createKeyword("default",{beforeExpr:r}),_do:createKeyword("do",{isLoop:n,beforeExpr:r}),_else:createKeyword("else",{beforeExpr:r}),_finally:createKeyword("finally"),_for:createKeyword("for",{isLoop:n}),_function:createKeyword("function",{startsExpr:i}),_if:createKeyword("if"),_return:createKeyword("return",{beforeExpr:r}),_switch:createKeyword("switch"),_throw:createKeyword("throw",{beforeExpr:r,prefix:s,startsExpr:i}),_try:createKeyword("try"),_var:createKeyword("var"),_const:createKeyword("const"),_while:createKeyword("while",{isLoop:n}),_with:createKeyword("with"),_new:createKeyword("new",{beforeExpr:r,startsExpr:i}),_this:createKeyword("this",{startsExpr:i}),_super:createKeyword("super",{startsExpr:i}),_class:createKeyword("class",{startsExpr:i}),_extends:createKeyword("extends",{beforeExpr:r}),_export:createKeyword("export"),_import:createKeyword("import",{startsExpr:i}),_null:createKeyword("null",{startsExpr:i}),_true:createKeyword("true",{startsExpr:i}),_false:createKeyword("false",{startsExpr:i}),_in:createKeyword("in",{beforeExpr:r,binop:7}),_instanceof:createKeyword("instanceof",{beforeExpr:r,binop:7}),_typeof:createKeyword("typeof",{beforeExpr:r,prefix:s,startsExpr:i}),_void:createKeyword("void",{beforeExpr:r,prefix:s,startsExpr:i}),_delete:createKeyword("delete",{beforeExpr:r,prefix:s,startsExpr:i})},c=128,u=128,p=1024,d=64,h=/\\r\\n?|[\\n\\u2028\\u2029]/,f=new RegExp(h.source,"g");function isNewLine(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}const m=/(?:\\s|\\/\\/.*|\\/\\*[^]*?\\*\\/)*/g;function isWhitespace(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}}class y{constructor(e,t){this.line=void 0,this.column=void 0,this.line=e,this.column=t}}class T{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}}class g{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){return this.plugins.has(e)}getPluginOption(e,t){if(this.hasPlugin(e))return this.plugins.get(e)[t]}}function last(e){return e[e.length-1]}class b extends g{addComment(e){this.filename&&(e.loc.filename=this.filename),this.state.trailingComments.push(e),this.state.leadingComments.push(e)}adjustCommentsAfterTrailingComma(e,t,r){if(0===this.state.leadingComments.length)return;let i=null,n=t.length;for(;null===i&&n>0;)i=t[--n];if(null===i)return;for(let e=0;e<this.state.leadingComments.length;e++)this.state.leadingComments[e].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(e,1),e--);const s=[];for(let t=0;t<this.state.leadingComments.length;t++){const i=this.state.leadingComments[t];i.end<e.end?(s.push(i),r||(this.state.leadingComments.splice(t,1),t--)):(void 0===e.trailingComments&&(e.trailingComments=[]),e.trailingComments.push(i))}r&&(this.state.leadingComments=[]),s.length>0?i.trailingComments=s:void 0!==i.trailingComments&&(i.trailingComments=[])}processComment(e){if("Program"===e.type&&e.body.length>0)return;const t=this.state.commentStack;let r,i,n,s,a;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=e.end?(n=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else if(t.length>0){const r=last(t);r.trailingComments&&r.trailingComments[0].start>=e.end&&(n=r.trailingComments,delete r.trailingComments)}for(t.length>0&&last(t).start>=e.start&&(r=t.pop());t.length>0&&last(t).start>=e.start;)i=t.pop();if(!i&&r&&(i=r),r)switch(e.type){case"ObjectExpression":this.adjustCommentsAfterTrailingComma(e,e.properties);break;case"ObjectPattern":this.adjustCommentsAfterTrailingComma(e,e.properties,!0);break;case"CallExpression":this.adjustCommentsAfterTrailingComma(e,e.arguments);break;case"ArrayExpression":this.adjustCommentsAfterTrailingComma(e,e.elements);break;case"ArrayPattern":this.adjustCommentsAfterTrailingComma(e,e.elements,!0)}else this.state.commentPreviousNode&&("ImportSpecifier"===this.state.commentPreviousNode.type&&"ImportSpecifier"!==e.type||"ExportSpecifier"===this.state.commentPreviousNode.type&&"ExportSpecifier"!==e.type)&&this.adjustCommentsAfterTrailingComma(e,[this.state.commentPreviousNode]);if(i){if(i.leadingComments)if(i!==e&&i.leadingComments.length>0&&last(i.leadingComments).end<=e.start)e.leadingComments=i.leadingComments,delete i.leadingComments;else for(s=i.leadingComments.length-2;s>=0;--s)if(i.leadingComments[s].end<=e.start){e.leadingComments=i.leadingComments.splice(0,s+1);break}}else if(this.state.leadingComments.length>0)if(last(this.state.leadingComments).end<=e.start){if(this.state.commentPreviousNode)for(a=0;a<this.state.leadingComments.length;a++)this.state.leadingComments[a].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(a,1),a--);this.state.leadingComments.length>0&&(e.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(s=0;s<this.state.leadingComments.length&&!(this.state.leadingComments[s].end>e.start);s++);const t=this.state.leadingComments.slice(0,s);t.length&&(e.leadingComments=t),n=this.state.leadingComments.slice(s),0===n.length&&(n=null)}if(this.state.commentPreviousNode=e,n)if(n.length&&n[0].start>=e.start&&last(n).end<=e.end)e.innerComments=n;else{const t=n.findIndex((t=>t.end>=e.end));t>0?(e.innerComments=n.slice(0,t),e.trailingComments=n.slice(t)):e.trailingComments=n}t.push(e)}}const S=Object.freeze({AccessorIsGenerator:"A %0ter 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",AwaitExpressionFormalParameter:"await is not allowed in async function parameters",AwaitNotInAsyncContext:"\'await\' is only allowed within async functions and at the top levels of modules",AwaitNotInAsyncFunction:"\'await\' is only allowed within async functions",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",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:"%0 require an initialization value",DecoratorBeforeExport:"Decorators must be placed *before* the \'export\' keyword. You can set the \'decoratorsBeforeExport\' option to false to use the \'export @decorator class {}\' syntax",DecoratorConstructor:"Decorators can\'t be used with a constructor. Did you mean \'@dec class { ... }\'?",DecoratorExportClass:"Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead.",DecoratorSemicolon:"Decorators must not be followed by a semicolon",DecoratorStaticBlock:"Decorators can\'t be used with a static block",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:"`%0` has already been exported. Exported identifiers must be unique.",DuplicateProto:"Redefinition of __proto__ property",DuplicateRegExpFlags:"Duplicate regular expression flag",DuplicateStaticBlock:"Duplicate static block in the same class",ElementAfterRest:"Rest element must be last element",EscapedCharNotAnIdentifier:"Invalid Unicode escape",ExportBindingIsString:"A string literal cannot be used as an exported binding without `from`.\\n- Did you mean `export { %0 as \'%1\' } from \'some-module\'`?",ExportDefaultFromAsIdentifier:"\'from\' is not allowed as an identifier after \'export default\'",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block",IllegalBreakContinue:"Unsyntactic %0",IllegalLanguageModeDirective:"Illegal \'use strict\' directive in function with non-simple parameter list",IllegalReturn:"\'return\' outside of function",ImportBindingIsString:\'A string literal cannot be used as an imported binding.\\n- Did you mean `import { "%0" as foo }`?\',ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments",ImportCallArity:"import() requires exactly %0",ImportCallNotNewExpression:"Cannot use new with import(...)",ImportCallSpreadArgument:"... is not allowed in import()",ImportMetaOutsideModule:"import.meta may appear only with \'sourceType: \\"module\\"\'",ImportOutsideModule:"\'import\' and \'export\' may appear only with \'sourceType: \\"module\\"\'",InvalidBigIntLiteral:"Invalid BigIntLiteral",InvalidCodePoint:"Code point out of bounds",InvalidDecimal:"Invalid decimal",InvalidDigit:"Expected number in radix %0",InvalidEscapeSequence:"Bad character escape sequence",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template",InvalidEscapedReservedWord:"Escape sequence in keyword %0",InvalidIdentifier:"Invalid identifier %0",InvalidLhs:"Invalid left-hand side in %0",InvalidLhsBinding:"Binding invalid left-hand side in %0",InvalidNumber:"Invalid number",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the \'e\'",InvalidOrUnexpectedToken:"Unexpected character \'%0\'",InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern",InvalidPrivateFieldResolution:"Private name #%0 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:"Label \'%0\' is already declared",LetInLexicalBinding:"\'let\' is not allowed to be used as a name in \'let\' or \'const\' declarations.",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.",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:\'Duplicate key "%0" is not allowed in module attributes\',ModuleExportNameHasLoneSurrogate:"An export name cannot include a lone surrogate, found \'\\\\u%0\'",ModuleExportUndefined:"Export \'%0\' 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",ParamDupe:"Argument name clash",PatternHasAccessor:"Object pattern can\'t contain getter or setter",PatternHasMethod:"Object pattern can\'t contain methods",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:"Primary Topic Reference found but pipelineOperator not passed \'smart\' for \'proposal\' option.",PrivateInExpectedIn:"Private names are only allowed in property accesses (`obj.#%0`) or in `in` expressions (`#%0 in obj`)",PrivateNameRedeclaration:"Duplicate private name #%0",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, inside a block, or as the body of an if statement",StaticPrototype:"Classes may not have static property named prototype",StrictDelete:"Deleting local variable in strict mode",StrictEvalArguments:"Assigning to \'%0\' in strict mode",StrictEvalArgumentsBinding:"Binding \'%0\' 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",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:"Unexpected keyword \'%0\'",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",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits",UnexpectedPrivateField:"Private names can only be used as the name of a class element (i.e. class C { #p = 42; #m() {} } )\\n or a property of member expression (i.e. this.#p).",UnexpectedReservedWord:"Unexpected reserved word \'%0\'",UnexpectedSuper:"super is only allowed in object methods and classes",UnexpectedToken:"Unexpected token \'%0\'",UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",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:"The only valid meta property for %0 is %0.%1",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",VarRedeclaration:"Identifier \'%0\' 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"});class x extends b{getLocationForPosition(e){let t;return t=e===this.state.start?this.state.startLoc:e===this.state.lastTokStart?this.state.lastTokStartLoc:e===this.state.end?this.state.endLoc:e===this.state.lastTokEnd?this.state.lastTokEndLoc:function(e,t){let r,i=1,n=0;for(f.lastIndex=0;(r=f.exec(e))&&r.index<t;)i++,n=f.lastIndex;return new y(i,t-n)}(this.input,e),t}raise(e,t,...r){return this.raiseWithData(e,void 0,t,...r)}raiseWithData(e,t,r,...i){const n=this.getLocationForPosition(e),s=r.replace(/%(\\d+)/g,((e,t)=>i[t]))+` (${n.line}:${n.column})`;return this._raise(Object.assign({loc:n,pos:e},t),s)}_raise(e,t){const r=new SyntaxError(t);if(Object.assign(r,e),this.options.errorRecovery)return this.isLookahead||this.state.errors.push(r),r;throw r}}function isSimpleProperty(e){return null!=e&&"Property"===e.type&&"init"===e.kind&&!1===e.method}class P{constructor(e,t,r,i){this.token=void 0,this.isExpr=void 0,this.preserveSpace=void 0,this.override=void 0,this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=i}}const v={braceStatement:new P("{",!1),braceExpression:new P("{",!0),recordExpression:new P("#{",!0),templateQuasi:new P("${",!1),parenStatement:new P("(",!1),parenExpression:new P("(",!0),template:new P("`",!0,!0,(e=>e.readTmplToken())),functionExpression:new P("function",!0),functionStatement:new P("function",!1)};l.parenR.updateContext=l.braceR.updateContext=function(){if(1===this.state.context.length)return void(this.state.exprAllowed=!0);let e=this.state.context.pop();e===v.braceStatement&&"function"===this.curContext().token&&(e=this.state.context.pop()),this.state.exprAllowed=!e.isExpr},l.name.updateContext=function(e){let t=!1;e!==l.dot&&("of"!==this.state.value||this.state.exprAllowed||e===l._function||e===l._class||(t=!0)),this.state.exprAllowed=t,this.state.isIterator&&(this.state.isIterator=!1)},l.braceL.updateContext=function(e){this.state.context.push(this.braceIsBlock(e)?v.braceStatement:v.braceExpression),this.state.exprAllowed=!0},l.dollarBraceL.updateContext=function(){this.state.context.push(v.templateQuasi),this.state.exprAllowed=!0},l.parenL.updateContext=function(e){const t=e===l._if||e===l._for||e===l._with||e===l._while;this.state.context.push(t?v.parenStatement:v.parenExpression),this.state.exprAllowed=!0},l.incDec.updateContext=function(){},l._function.updateContext=l._class.updateContext=function(e){!e.beforeExpr||e===l.semi||e===l._else||e===l._return&&this.hasPrecedingLineBreak()||(e===l.colon||e===l.braceL)&&this.curContext()===v.b_stat?this.state.context.push(v.functionStatement):this.state.context.push(v.functionExpression),this.state.exprAllowed=!1},l.backQuote.updateContext=function(){this.curContext()===v.template?this.state.context.pop():this.state.context.push(v.template),this.state.exprAllowed=!1},l.braceHashL.updateContext=function(){this.state.context.push(v.recordExpression),this.state.exprAllowed=!0};let A="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA--zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",w="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍--_";const I=new RegExp("["+A+"]"),C=new RegExp("["+A+w+"]");A=w=null;const O=[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,157,310,10,21,11,7,153,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,107,20,28,22,13,52,76,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,85,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,230,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,35,56,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,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,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,8952,286,50,2,18,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,2357,44,11,6,17,0,370,43,1301,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,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],N=[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,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,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,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,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,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let i=0,n=t.length;i<n;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function isIdentifierStart(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&I.test(String.fromCharCode(e)):isInAstralSet(e,O)))}function isIdentifierChar(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&C.test(String.fromCharCode(e)):isInAstralSet(e,O)||isInAstralSet(e,N))))}const _=["implements","interface","let","package","private","protected","public","static","yield"],k=["eval","arguments"],D=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"]),L=new Set(_),M=new Set(k);function isReservedWord(e,t){return t&&"await"===e||"enum"===e}function isStrictReservedWord(e,t){return isReservedWord(e,t)||L.has(e)}function isStrictBindOnlyReservedWord(e){return M.has(e)}function isStrictBindReservedWord(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return D.has(e)}const B=/^in(stanceof)?$/;const j=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),R=Object.freeze({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:"Cannot overwrite reserved type %0",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:"Boolean enum members need to be initialized. Use either `%0 = true,` or `%0 = false,` in enum `%1`.",EnumDuplicateMemberName:"Enum member names need to be unique, but the name `%0` has already been used before in enum `%1`.",EnumInconsistentMemberValues:"Enum `%0` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.",EnumInvalidExplicitType:"Enum type `%1` is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `%0`.",EnumInvalidExplicitTypeUnknownSupplied:"Supplied enum type is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `%0`.",EnumInvalidMemberInitializerPrimaryType:"Enum `%0` has type `%2`, so the initializer of `%1` needs to be a %2 literal.",EnumInvalidMemberInitializerSymbolType:"Symbol enum members cannot be initialized. Use `%1,` in enum `%0`.",EnumInvalidMemberInitializerUnknownType:"The enum member initializer for `%1` needs to be a literal (either a boolean, number, or string) in enum `%0`.",EnumInvalidMemberName:"Enum member names cannot start with lowercase \'a\' through \'z\'. Instead of using `%0`, consider using `%1`, in enum `%2`.",EnumNumberMemberNotInitialized:"Number enum members need to be initialized, e.g. `%1 = 1` in enum `%0`.",EnumStringMemberInconsistentlyInitailized:"String enum members need to consistently either all use initializers, or use no initializers, in enum `%0`.",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",OptionalBindingPattern:"A binding pattern parameter cannot be optional in an implementation signature.",SpreadVariance:"Spread properties cannot have variance",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:"Unexpected reserved type %0",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:"`declare export %0` is not supported. Use `%1` instead",UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module",UnterminatedFlowComment:"Unterminated flow-comment"});function hasTypeImportKind(e){return"type"===e.importKind||"typeof"===e.importKind}function isMaybeDefaultImport(e){return(e.type===l.name||!!e.type.keyword)&&"from"!==e.value}const F={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};const U=/\\*?\\s*@((?:no)?flow)\\b/;const K={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:"♦"},q=/^[\\da-fA-F]+$/,V=/^\\d+$/,W=Object.freeze({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression",MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>",MissingClosingTagElement:"Expected corresponding JSX closing tag for <%0>",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 isFragment(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function getQualifiedJSXName(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return getQualifiedJSXName(e.object)+"."+getQualifiedJSXName(e.property);throw new Error("Node had unexpected type: "+e.type)}v.j_oTag=new P("<tag",!1),v.j_cTag=new P("</tag",!1),v.j_expr=new P("<tag>...</tag>",!0,!0),l.jsxName=new a("jsxName"),l.jsxText=new a("jsxText",{beforeExpr:!0}),l.jsxTagStart=new a("jsxTagStart",{startsExpr:!0}),l.jsxTagEnd=new a("jsxTagEnd"),l.jsxTagStart.updateContext=function(){this.state.context.push(v.j_expr),this.state.context.push(v.j_oTag),this.state.exprAllowed=!1},l.jsxTagEnd.updateContext=function(e){const t=this.state.context.pop();t===v.j_oTag&&e===l.slash||t===v.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===v.j_expr):this.state.exprAllowed=!0};class Y{constructor(e){this.flags=void 0,this.var=[],this.lexical=[],this.functions=[],this.flags=e}}class X{constructor(e,t){this.scopeStack=[],this.undefinedExports=new Map,this.undefinedPrivateNames=new Map,this.raise=e,this.inModule=t}get inFunction(){return(2&this.currentVarScope().flags)>0}get allowSuper(){return(16&this.currentThisScope().flags)>0}get allowDirectSuper(){return(32&this.currentThisScope().flags)>0}get inClass(){return(64&this.currentThisScope().flags)>0}get inNonArrowFunction(){return(2&this.currentThisScope().flags)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new Y(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){this.scopeStack.pop()}treatFunctionsAsVarInScope(e){return!!(2&e.flags||!this.inModule&&1&e.flags)}declareName(e,t,r){let i=this.currentScope();if(8&t||16&t)this.checkRedeclarationInScope(i,e,t,r),16&t?i.functions.push(e):i.lexical.push(e),8&t&&this.maybeExportDefined(i,e);else if(4&t)for(let n=this.scopeStack.length-1;n>=0&&(i=this.scopeStack[n],this.checkRedeclarationInScope(i,e,t,r),i.var.push(e),this.maybeExportDefined(i,e),!(131&i.flags));--n);this.inModule&&1&i.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,i){this.isRedeclaredInScope(e,t,r)&&this.raise(i,S.VarRedeclaration,t)}isRedeclaredInScope(e,t,r){return!!(1&r)&&(8&r?e.lexical.indexOf(t)>-1||e.functions.indexOf(t)>-1||e.var.indexOf(t)>-1:16&r?e.lexical.indexOf(t)>-1||!this.treatFunctionsAsVarInScope(e)&&e.var.indexOf(t)>-1:e.lexical.indexOf(t)>-1&&!(8&e.flags&&e.lexical[0]===t)||!this.treatFunctionsAsVarInScope(e)&&e.functions.indexOf(t)>-1)}checkLocalExport(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&-1===this.scopeStack[0].functions.indexOf(e.name)&&this.undefinedExports.set(e.name,e.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScope(){for(let e=this.scopeStack.length-1;;e--){const t=this.scopeStack[e];if(131&t.flags)return t}}currentThisScope(){for(let e=this.scopeStack.length-1;;e--){const t=this.scopeStack[e];if((131&t.flags||64&t.flags)&&!(4&t.flags))return t}}}class J extends Y{constructor(...e){super(...e),this.types=[],this.enums=[],this.constEnums=[],this.classes=[],this.exportOnlyBindings=[]}}class H extends X{createScope(e){return new J(e)}declareName(e,t,r){const i=this.currentScope();if(t&p)return this.maybeExportDefined(i,e),void i.exportOnlyBindings.push(e);super.declareName(...arguments),2&t&&(1&t||(this.checkRedeclarationInScope(i,e,t,r),this.maybeExportDefined(i,e)),i.types.push(e)),256&t&&i.enums.push(e),512&t&&i.constEnums.push(e),t&u&&i.classes.push(e)}isRedeclaredInScope(e,t,r){if(e.enums.indexOf(t)>-1){if(256&r){return!!(512&r)!==e.constEnums.indexOf(t)>-1}return!0}return r&u&&e.classes.indexOf(t)>-1?e.lexical.indexOf(t)>-1&&!!(1&r):!!(2&r&&e.types.indexOf(t)>-1)||super.isRedeclaredInScope(...arguments)}checkLocalExport(e){-1===this.scopeStack[0].types.indexOf(e.name)&&-1===this.scopeStack[0].exportOnlyBindings.indexOf(e.name)&&super.checkLocalExport(e)}}class G{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 functionFlags(e,t){return(e?2:0)|(t?1:0)}function nonNull(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}function assert(e){if(!e)throw new Error("Assert fail")}const $=Object.freeze({ClassMethodHasDeclare:"Class methods cannot have the \'declare\' modifier",ClassMethodHasReadonly:"Class methods cannot have the \'readonly\' modifier",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateModifier:"Duplicate modifier: \'%0\'",EmptyHeritageClauseType:"\'%0\' list cannot be empty.",EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",IndexSignatureHasAbstract:"Index signatures cannot have the \'abstract\' modifier",IndexSignatureHasAccessibility:"Index signatures cannot have an accessibility modifier (\'%0\')",IndexSignatureHasStatic:"Index signatures cannot have the \'static\' modifier",IndexSignatureHasDeclare:"Index signatures cannot have the \'declare\' modifier",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the \'abstract\' modifier.",PrivateElementHasAccessibility:"Private elements cannot have an accessibility modifier (\'%0\')",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`",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:"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got %0"});l.placeholder=new a("%%",{startsExpr:!0});function hasPlugin(e,t){return e.some((e=>Array.isArray(e)?e[0]===t:e===t))}function getPluginOption(e,t,r){const i=e.find((e=>Array.isArray(e)?e[0]===t:e===t));return i&&Array.isArray(i)?i[1][r]:null}const z=["minimal","smart","fsharp"],Q=["hash","bar"];const Z={estree:e=>class extends e{estreeParseRegExpLiteral({pattern:e,flags:t}){let r=null;try{r=new RegExp(e,t)}catch(e){}const i=this.estreeParseLiteral(r);return i.regex={pattern:e,flags:t},i}estreeParseBigIntLiteral(e){const t="undefined"!=typeof BigInt?BigInt(e):null,r=this.estreeParseLiteral(t);return r.bigint=String(r.value||e),r}estreeParseDecimalLiteral(e){const t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}directiveToStmt(e){const t=e.value,r=this.startNodeAt(e.start,e.loc.start),i=this.startNodeAt(t.start,t.loc.start);return i.value=t.value,i.raw=t.extra.raw,r.expression=this.finishNodeAt(i,"Literal",t.end,t.loc.end),r.directive=t.extra.raw.slice(1,-1),this.finishNodeAt(r,"ExpressionStatement",e.end,e.loc.end)}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){isSimpleProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}checkLVal(e,t=64,r,i,n){if("ObjectPattern"===e.type)e.properties.forEach((e=>{this.checkLVal("Property"===e.type?e.value:e,t,r,"object destructuring pattern",n)}));else super.checkLVal(e,t,r,i,n)}checkProto(e,t,r,i){e.method||super.checkProto(e,t,r,i)}isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null==(t=e.expression.extra)?void 0:t.parenthesized)}stmtToDirective(e){const t=super.stmtToDirective(e),r=e.expression.value;return t.value.value=r,t}parseBlockBody(e,t,r,i){super.parseBlockBody(e,t,r,i);const n=e.directives.map((e=>this.directiveToStmt(e)));e.body=n.concat(e.body),delete e.directives}pushClassMethod(e,t,r,i,n,s){this.parseMethod(t,r,i,n,s,"ClassMethod",!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}parseExprAtom(e){switch(this.state.type){case l.num:case l.string:return this.estreeParseLiteral(this.state.value);case l.regexp:return this.estreeParseRegExpLiteral(this.state.value);case l.bigint:return this.estreeParseBigIntLiteral(this.state.value);case l.decimal:return this.estreeParseDecimalLiteral(this.state.value);case l._null:return this.estreeParseLiteral(null);case l._true:return this.estreeParseLiteral(!0);case l._false:return this.estreeParseLiteral(!1);default:return super.parseExprAtom(e)}}parseLiteral(e,t,r,i){const n=super.parseLiteral(e,t,r,i);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,t,r=!1){super.parseFunctionBody(e,t,r),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,r,i,n,s,a=!1){let o=this.startNode();return o.kind=e.kind,o=super.parseMethod(o,t,r,i,n,s,a),o.type="FunctionExpression",delete o.kind,e.value=o,s="ClassMethod"===s?"MethodDefinition":s,this.finishNode(e,s)}parseObjectMethod(e,t,r,i,n){const s=super.parseObjectMethod(e,t,r,i,n);return s&&(s.type="Property","method"===s.kind&&(s.kind="init"),s.shorthand=!1),s}parseObjectProperty(e,t,r,i,n){const s=super.parseObjectProperty(e,t,r,i,n);return s&&(s.kind="init",s.type="Property"),s}toAssignable(e){return isSimpleProperty(e)?(this.toAssignable(e.value),e):super.toAssignable(e)}toAssignableObjectExpressionProp(e,t){if("get"===e.kind||"set"===e.kind)throw this.raise(e.key.start,S.PatternHasAccessor);if(e.method)throw this.raise(e.key.start,S.PatternHasMethod);super.toAssignableObjectExpressionProp(e,t)}finishCallExpression(e,t){return super.finishCallExpression(e,t),"Import"===e.callee.type&&(e.type="ImportExpression",e.source=e.arguments[0],delete e.arguments,delete e.callee),e}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e){switch(super.parseExport(e),e.type){case"ExportAllDeclaration":e.exported=null;break;case"ExportNamedDeclaration":1===e.specifiers.length&&"ExportNamespaceSpecifier"===e.specifiers[0].type&&(e.type="ExportAllDeclaration",e.exported=e.specifiers[0].exported,delete e.specifiers)}return e}parseSubscript(e,t,r,i,n){const s=super.parseSubscript(e,t,r,i,n);if(n.optionalChainMember){if("OptionalMemberExpression"!==s.type&&"OptionalCallExpression"!==s.type||(s.type=s.type.substring(8)),n.stop){const e=this.startNodeAtNode(s);return e.expression=s,this.finishNode(e,"ChainExpression")}}else"MemberExpression"!==s.type&&"CallExpression"!==s.type||(s.optional=!1);return s}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,W.UnterminatedJsxContent);const r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:return this.state.pos===this.state.start?60===r&&this.state.exprAllowed?(++this.state.pos,this.finishToken(l.jsxTagStart)):super.getTokenFromCode(r):(e+=this.input.slice(t,this.state.pos),this.finishToken(l.jsxText,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:isNewLine(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(this.state.start,S.UnterminatedString);const i=this.input.charCodeAt(this.state.pos);if(i===e)break;38===i?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):isNewLine(i)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}return t+=this.input.slice(r,this.state.pos++),this.finishToken(l.string,t)}jsxReadEntity(){let e,t="",r=0,i=this.input[this.state.pos];const n=++this.state.pos;for(;this.state.pos<this.length&&r++<10;){if(i=this.input[this.state.pos++],";"===i){"#"===t[0]?"x"===t[1]?(t=t.substr(2),q.test(t)&&(e=String.fromCodePoint(parseInt(t,16)))):(t=t.substr(1),V.test(t)&&(e=String.fromCodePoint(parseInt(t,10)))):e=K[t];break}t+=i}return e||(this.state.pos=n,"&")}jsxReadWord(){let e;const t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(isIdentifierChar(e)||45===e);return this.finishToken(l.jsxName,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();return this.match(l.jsxName)?e.name=this.state.value:this.state.type.keyword?e.name=this.state.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.start,t=this.state.startLoc,r=this.jsxParseIdentifier();if(!this.eat(l.colon))return r;const i=this.startNodeAt(e,t);return i.namespace=r,i.name=this.jsxParseIdentifier(),this.finishNode(i,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.start,t=this.state.startLoc;let r=this.jsxParseNamespacedName();if("JSXNamespacedName"===r.type)return r;for(;this.eat(l.dot);){const i=this.startNodeAt(e,t);i.object=r,i.property=this.jsxParseIdentifier(),r=this.finishNode(i,"JSXMemberExpression")}return r}jsxParseAttributeValue(){let e;switch(this.state.type){case l.braceL:return e=this.startNode(),this.next(),e=this.jsxParseExpressionContainer(e),"JSXEmptyExpression"===e.expression.type&&this.raise(e.start,W.AttributeIsEmpty),e;case l.jsxTagStart:case l.string:return this.parseExprAtom();default:throw this.raise(this.state.start,W.UnsupportedJsxValue)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEnd,this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.start,this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.expect(l.braceR),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e){return this.match(l.braceR)?e.expression=this.jsxParseEmptyExpression():e.expression=this.parseExpression(),this.expect(l.braceR),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.eat(l.braceL)?(this.expect(l.ellipsis),e.argument=this.parseMaybeAssignAllowIn(),this.expect(l.braceR),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(l.eq)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e,t){const r=this.startNodeAt(e,t);return this.match(l.jsxTagEnd)?(this.expect(l.jsxTagEnd),this.finishNode(r,"JSXOpeningFragment")):(r.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(r))}jsxParseOpeningElementAfterName(e){const t=[];for(;!this.match(l.slash)&&!this.match(l.jsxTagEnd);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(l.slash),this.expect(l.jsxTagEnd),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e,t){const r=this.startNodeAt(e,t);return this.match(l.jsxTagEnd)?(this.expect(l.jsxTagEnd),this.finishNode(r,"JSXClosingFragment")):(r.name=this.jsxParseElementName(),this.expect(l.jsxTagEnd),this.finishNode(r,"JSXClosingElement"))}jsxParseElementAt(e,t){const r=this.startNodeAt(e,t),i=[],n=this.jsxParseOpeningElementAt(e,t);let s=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case l.jsxTagStart:if(e=this.state.start,t=this.state.startLoc,this.next(),this.eat(l.slash)){s=this.jsxParseClosingElementAt(e,t);break e}i.push(this.jsxParseElementAt(e,t));break;case l.jsxText:i.push(this.parseExprAtom());break;case l.braceL:{const e=this.startNode();this.next(),this.match(l.ellipsis)?i.push(this.jsxParseSpreadChild(e)):i.push(this.jsxParseExpressionContainer(e));break}default:throw this.unexpected()}isFragment(n)&&!isFragment(s)?this.raise(s.start,W.MissingClosingTagFragment):!isFragment(n)&&isFragment(s)?this.raise(s.start,W.MissingClosingTagElement,getQualifiedJSXName(n.name)):isFragment(n)||isFragment(s)||getQualifiedJSXName(s.name)!==getQualifiedJSXName(n.name)&&this.raise(s.start,W.MissingClosingTagElement,getQualifiedJSXName(n.name))}if(isFragment(n)?(r.openingFragment=n,r.closingFragment=s):(r.openingElement=n,r.closingElement=s),r.children=i,this.isRelational("<"))throw this.raise(this.state.start,W.UnwrappedAdjacentJSXElements);return isFragment(n)?this.finishNode(r,"JSXFragment"):this.finishNode(r,"JSXElement")}jsxParseElement(){const e=this.state.start,t=this.state.startLoc;return this.next(),this.jsxParseElementAt(e,t)}parseExprAtom(e){return this.match(l.jsxText)?this.parseLiteral(this.state.value,"JSXText"):this.match(l.jsxTagStart)?this.jsxParseElement():this.isRelational("<")&&33!==this.input.charCodeAt(this.state.pos)?(this.finishToken(l.jsxTagStart),this.jsxParseElement()):super.parseExprAtom(e)}getTokenFromCode(e){if(this.state.inPropertyName)return super.getTokenFromCode(e);const t=this.curContext();if(t===v.j_expr)return this.jsxReadToken();if(t===v.j_oTag||t===v.j_cTag){if(isIdentifierStart(e))return this.jsxReadWord();if(62===e)return++this.state.pos,this.finishToken(l.jsxTagEnd);if((34===e||39===e)&&t===v.j_oTag)return this.jsxReadString(e)}return 60===e&&this.state.exprAllowed&&33!==this.input.charCodeAt(this.state.pos+1)?(++this.state.pos,this.finishToken(l.jsxTagStart)):super.getTokenFromCode(e)}updateContext(e){if(this.match(l.braceL)){const t=this.curContext();t===v.j_oTag?this.state.context.push(v.braceExpression):t===v.j_expr?this.state.context.push(v.templateQuasi):super.updateContext(e),this.state.exprAllowed=!0}else{if(!this.match(l.slash)||e!==l.jsxTagStart)return super.updateContext(e);this.state.context.length-=2,this.state.context.push(v.j_cTag),this.state.exprAllowed=!1}}},flow:e=>{var t;return t=class extends e{constructor(e,t){super(e,t),this.flowPragma=void 0,this.flowPragma=void 0}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,t){return e!==l.string&&e!==l.semi&&e!==l.interpreterDirective&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){const t=U.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;}return super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=!0,this.expect(e||l.colon);const r=this.flowParseType();return this.state.inType=t,r}flowParsePredicate(){const e=this.startNode(),t=this.state.startLoc,r=this.state.start;this.expect(l.modulo);const i=this.state.startLoc;return this.expectContextual("checks"),t.line===i.line&&t.column===i.column-1||this.raise(r,R.UnexpectedSpaceBetweenModuloChecks),this.eat(l.parenL)?(e.value=this.parseExpression(),this.expect(l.parenR),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(l.colon);let t=null,r=null;return this.match(l.modulo)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(l.modulo)&&(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(),i=this.startNode();this.isRelational("<")?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(l.parenL);const n=this.flowParseFunctionTypeParams();return r.params=n.params,r.rest=n.rest,this.expect(l.parenR),[r.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),i.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(i,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){if(this.match(l._class))return this.flowParseDeclareClass(e);if(this.match(l._function))return this.flowParseDeclareFunction(e);if(this.match(l._var))return this.flowParseDeclareVariable(e);if(this.eatContextual("module"))return this.match(l.dot)?this.flowParseDeclareModuleExports(e):(t&&this.raise(this.state.lastTokStart,R.NestedDeclareModule),this.flowParseDeclareModule(e));if(this.isContextual("type"))return this.flowParseDeclareTypeAlias(e);if(this.isContextual("opaque"))return this.flowParseDeclareOpaqueType(e);if(this.isContextual("interface"))return this.flowParseDeclareInterface(e);if(this.match(l._export))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(l.string)?e.id=this.parseExprAtom():e.id=this.parseIdentifier();const t=e.body=this.startNode(),r=t.body=[];for(this.expect(l.braceL);!this.match(l.braceR);){let e=this.startNode();this.match(l._import)?(this.next(),this.isContextual("type")||this.match(l._typeof)||this.raise(this.state.lastTokStart,R.InvalidNonTypeImportInDeclareModule),this.parseImport(e)):(this.expectContextual("declare",R.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),r.push(e)}this.scope.exit(),this.expect(l.braceR),this.finishNode(t,"BlockStatement");let i=null,n=!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&&(n&&this.raise(e.start,R.DuplicateDeclareModuleExports),"ES"===i&&this.raise(e.start,R.AmbiguousDeclareModuleKind),i="CommonJS",n=!0):("CommonJS"===i&&this.raise(e.start,R.AmbiguousDeclareModuleKind),i="ES")})),e.kind=i||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(l._export),this.eat(l._default))return this.match(l._function)||this.match(l._class)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(l._const)||this.isLet()||(this.isContextual("type")||this.isContextual("interface"))&&!t){const e=this.state.value,t=F[e];throw this.raise(this.state.start,R.UnsupportedDeclareExportKind,e,t)}if(this.match(l._var)||this.match(l._function)||this.match(l._class)||this.isContextual("opaque"))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(l.star)||this.match(l.braceL)||this.isContextual("interface")||this.isContextual("type")||this.isContextual("opaque"))return"ExportNamedDeclaration"===(e=this.parseExport(e)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e;throw this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual("exports"),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){return this.next(),this.flowParseTypeAlias(e),e.type="DeclareTypeAlias",e}flowParseDeclareOpaqueType(e){return this.next(),this.flowParseOpaqueType(e,!0),e.type="DeclareOpaqueType",e}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t=!1){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.implements=[],e.mixins=[],this.eat(l._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(l.comma));if(this.isContextual("mixins")){this.next();do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(l.comma))}if(this.isContextual("implements")){this.next();do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(l.comma))}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.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(this.state.start,R.UnexpectedReservedUnderscore)}checkReservedType(e,t,r){j.has(e)&&this.raise(t,r?R.AssignReservedType:R.UnexpectedReservedType,e)}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.start,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(l.eq),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual("type"),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(l.colon)&&(e.supertype=this.flowParseTypeInitialiser(l.colon)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(l.eq)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){const t=this.state.start,r=this.startNode(),i=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return r.name=n.name,r.variance=i,r.bound=n.typeAnnotation,this.match(l.eq)?(this.eat(l.eq),r.default=this.flowParseType()):e&&this.raise(t,R.MissingTypeParamDefault),this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.isRelational("<")||this.match(l.jsxTagStart)?this.next():this.unexpected();let r=!1;do{const e=this.flowParseTypeParameter(r);t.params.push(e),e.default&&(r=!0),this.isRelational(">")||this.expect(l.comma)}while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expectRelational("<");const r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.isRelational(">");)e.params.push(this.flowParseType()),this.isRelational(">")||this.expect(l.comma);return this.state.noAnonFunctionType=r,this.expectRelational(">"),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.expectRelational("<");!this.isRelational(">");)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.isRelational(">")||this.expect(l.comma);return this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();if(this.expectContextual("interface"),e.extends=[],this.eat(l._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(l.comma));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(l.num)||this.match(l.string)?this.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,r){return e.static=t,this.lookahead().type===l.colon?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(l.bracketR),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(l.bracketR),this.expect(l.bracketR),this.isRelational("<")||this.match(l.parenL)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start))):(e.method=!1,this.eat(l.question)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(l.parenL);!this.match(l.parenR)&&!this.match(l.ellipsis);)e.params.push(this.flowParseFunctionTypeParam()),this.match(l.parenR)||this.expect(l.comma);return this.eat(l.ellipsis)&&(e.rest=this.flowParseFunctionTypeParam()),this.expect(l.parenR),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:i,allowInexact:n}){const s=this.state.inType;this.state.inType=!0;const a=this.startNode();let o,c;a.callProperties=[],a.properties=[],a.indexers=[],a.internalSlots=[];let u=!1;for(t&&this.match(l.braceBarL)?(this.expect(l.braceBarL),o=l.braceBarR,c=!0):(this.expect(l.braceL),o=l.braceR,c=!1),a.exact=c;!this.match(o);){let t=!1,s=null,o=null;const p=this.startNode();if(i&&this.isContextual("proto")){const t=this.lookahead();t.type!==l.colon&&t.type!==l.question&&(this.next(),s=this.state.start,e=!1)}if(e&&this.isContextual("static")){const e=this.lookahead();e.type!==l.colon&&e.type!==l.question&&(this.next(),t=!0)}const d=this.flowParseVariance();if(this.eat(l.bracketL))null!=s&&this.unexpected(s),this.eat(l.bracketL)?(d&&this.unexpected(d.start),a.internalSlots.push(this.flowParseObjectTypeInternalSlot(p,t))):a.indexers.push(this.flowParseObjectTypeIndexer(p,t,d));else if(this.match(l.parenL)||this.isRelational("<"))null!=s&&this.unexpected(s),d&&this.unexpected(d.start),a.callProperties.push(this.flowParseObjectTypeCallProperty(p,t));else{let e="init";if(this.isContextual("get")||this.isContextual("set")){const t=this.lookahead();t.type!==l.name&&t.type!==l.string&&t.type!==l.num||(e=this.state.value,this.next())}const i=this.flowParseObjectTypeProperty(p,t,s,d,e,r,null!=n?n:!c);null===i?(u=!0,o=this.state.lastTokStart):a.properties.push(i)}this.flowObjectTypeSemicolon(),!o||this.match(l.braceR)||this.match(l.braceBarR)||this.raise(o,R.UnexpectedExplicitInexactInObject)}this.expect(o),r&&(a.inexact=u);const p=this.finishNode(a,"ObjectTypeAnnotation");return this.state.inType=s,p}flowParseObjectTypeProperty(e,t,r,i,n,s,a){if(this.eat(l.ellipsis)){return this.match(l.comma)||this.match(l.semi)||this.match(l.braceR)||this.match(l.braceBarR)?(s?a||this.raise(this.state.lastTokStart,R.InexactInsideExact):this.raise(this.state.lastTokStart,R.InexactInsideNonObject),i&&this.raise(i.start,R.InexactVariance),null):(s||this.raise(this.state.lastTokStart,R.UnexpectedSpreadType),null!=r&&this.unexpected(r),i&&this.raise(i.start,R.SpreadVariance),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"))}{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=n;let s=!1;return this.isRelational("<")||this.match(l.parenL)?(e.method=!0,null!=r&&this.unexpected(r),i&&this.unexpected(i.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start)),"get"!==n&&"set"!==n||this.flowCheckGetterSetterParams(e)):("init"!==n&&this.unexpected(),e.method=!1,this.eat(l.question)&&(s=!0),e.value=this.flowParseTypeInitialiser(),e.variance=i),e.optional=s,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,r=e.start;e.value.params.length+(e.value.rest?1:0)!==t&&("get"===e.kind?this.raise(r,S.BadGetterArity):this.raise(r,S.BadSetterArity)),"set"===e.kind&&e.value.rest&&this.raise(r,S.BadSetterRestParameter)}flowObjectTypeSemicolon(){this.eat(l.semi)||this.eat(l.comma)||this.match(l.braceR)||this.match(l.braceBarR)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t,r){e=e||this.state.start,t=t||this.state.startLoc;let i=r||this.flowParseRestrictedIdentifier(!0);for(;this.eat(l.dot);){const r=this.startNodeAt(e,t);r.qualification=i,r.id=this.flowParseRestrictedIdentifier(!0),i=this.finishNode(r,"QualifiedTypeIdentifier")}return i}flowParseGenericType(e,t,r){const i=this.startNodeAt(e,t);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(e,t,r),this.isRelational("<")&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(l._typeof),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect(l.bracketL);this.state.pos<this.length&&!this.match(l.bracketR)&&(e.types.push(this.flowParseType()),!this.match(l.bracketR));)this.expect(l.comma);return this.expect(l.bracketR),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(){let e=null,t=!1,r=null;const i=this.startNode(),n=this.lookahead();return n.type===l.colon||n.type===l.question?(e=this.parseIdentifier(),this.eat(l.question)&&(t=!0),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),i.name=e,i.optional=t,i.typeAnnotation=r,this.finishNode(i,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const t=this.startNodeAt(e.start,e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let t=null;for(;!this.match(l.parenR)&&!this.match(l.ellipsis);)e.push(this.flowParseFunctionTypeParam()),this.match(l.parenR)||this.expect(l.comma);return this.eat(l.ellipsis)&&(t=this.flowParseFunctionTypeParam()),{params:e,rest:t}}flowIdentToTypeAnnotation(e,t,r,i){switch(i.name){case"any":return this.finishNode(r,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(r,"BooleanTypeAnnotation");case"mixed":return this.finishNode(r,"MixedTypeAnnotation");case"empty":return this.finishNode(r,"EmptyTypeAnnotation");case"number":return this.finishNode(r,"NumberTypeAnnotation");case"string":return this.finishNode(r,"StringTypeAnnotation");case"symbol":return this.finishNode(r,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(i.name),this.flowParseGenericType(e,t,i)}}flowParsePrimaryType(){const e=this.state.start,t=this.state.startLoc,r=this.startNode();let i,n,s=!1;const a=this.state.noAnonFunctionType;switch(this.state.type){case l.name:return this.isContextual("interface")?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,r,this.parseIdentifier());case l.braceL:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case l.braceBarL:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case l.bracketL:return this.state.noAnonFunctionType=!1,n=this.flowParseTupleType(),this.state.noAnonFunctionType=a,n;case l.relational:if("<"===this.state.value)return r.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(l.parenL),i=this.flowParseFunctionTypeParams(),r.params=i.params,r.rest=i.rest,this.expect(l.parenR),this.expect(l.arrow),r.returnType=this.flowParseType(),this.finishNode(r,"FunctionTypeAnnotation");break;case l.parenL:if(this.next(),!this.match(l.parenR)&&!this.match(l.ellipsis))if(this.match(l.name)){const e=this.lookahead().type;s=e!==l.question&&e!==l.colon}else s=!0;if(s){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=a,this.state.noAnonFunctionType||!(this.match(l.comma)||this.match(l.parenR)&&this.lookahead().type===l.arrow))return this.expect(l.parenR),n;this.eat(l.comma)}return i=n?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):this.flowParseFunctionTypeParams(),r.params=i.params,r.rest=i.rest,this.expect(l.parenR),this.expect(l.arrow),r.returnType=this.flowParseType(),r.typeParameters=null,this.finishNode(r,"FunctionTypeAnnotation");case l.string:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case l._true:case l._false:return r.value=this.match(l._true),this.next(),this.finishNode(r,"BooleanLiteralTypeAnnotation");case l.plusMin:if("-"===this.state.value){if(this.next(),this.match(l.num))return this.parseLiteral(-this.state.value,"NumberLiteralTypeAnnotation",r.start,r.loc.start);if(this.match(l.bigint))return this.parseLiteral(-this.state.value,"BigIntLiteralTypeAnnotation",r.start,r.loc.start);throw this.raise(this.state.start,R.UnexpectedSubtractionOperand)}throw this.unexpected();case l.num:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case l.bigint:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case l._void:return this.next(),this.finishNode(r,"VoidTypeAnnotation");case l._null:return this.next(),this.finishNode(r,"NullLiteralTypeAnnotation");case l._this:return this.next(),this.finishNode(r,"ThisTypeAnnotation");case l.star:return this.next(),this.finishNode(r,"ExistsTypeAnnotation");default:if("typeof"===this.state.type.keyword)return this.flowParseTypeofType();if(this.state.type.keyword){const e=this.state.type.label;return this.next(),super.createIdentifier(r,e)}}throw this.unexpected()}flowParsePostfixType(){const e=this.state.start,t=this.state.startLoc;let r=this.flowParsePrimaryType();for(;this.match(l.bracketL)&&!this.canInsertSemicolon();){const i=this.startNodeAt(e,t);i.elementType=r,this.expect(l.bracketL),this.expect(l.bracketR),r=this.finishNode(i,"ArrayTypeAnnotation")}return r}flowParsePrefixType(){const e=this.startNode();return this.eat(l.question)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(l.arrow)){const t=this.startNodeAt(e.start,e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){const e=this.startNode();this.eat(l.bitwiseAND);const t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(l.bitwiseAND);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(l.bitwiseOR);const t=this.flowParseIntersectionType();for(e.types=[t];this.eat(l.bitwiseOR);)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,this.state.exprAllowed=this.state.exprAllowed||this.state.noAnonFunctionType,t}flowParseTypeOrImplicitInstantiation(){if(this.state.type===l.name&&"_"===this.state.value){const e=this.state.start,t=this.state.startLoc,r=this.parseIdentifier();return this.flowParseGenericType(e,t,r)}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(l.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.end,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(l.plusMin)&&(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")),e}parseFunctionBody(e,t,r=!1){return t?this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,!0,r))):super.parseFunctionBody(e,!1,r)}parseFunctionBodyAndFinish(e,t,r=!1){if(this.match(l.colon)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}super.parseFunctionBodyAndFinish(e,t,r)}parseStatement(e,t){if(this.state.strict&&this.match(l.name)&&"interface"===this.state.value){const e=this.lookahead();if(e.type===l.name||isKeyword(e.value)){const e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.shouldParseEnums()&&this.isContextual("enum")){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}const r=super.parseStatement(e,t);return void 0!==this.flowPragma||this.isValidDirective(r)||(this.flowPragma=null),r}parseExpressionStatement(e,t){if("Identifier"===t.type)if("declare"===t.name){if(this.match(l._class)||this.match(l.name)||this.match(l._function)||this.match(l._var)||this.match(l._export))return this.flowParseDeclare(e)}else if(this.match(l.name)){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)}shouldParseExportDeclaration(){return this.isContextual("type")||this.isContextual("interface")||this.isContextual("opaque")||this.shouldParseEnums()&&this.isContextual("enum")||super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){return(!this.match(l.name)||!("type"===this.state.value||"interface"===this.state.value||"opaque"===this.state.value||this.shouldParseEnums()&&"enum"===this.state.value))&&super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual("enum")){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,r,i){if(!this.match(l.question))return e;if(i){const n=this.tryParse((()=>super.parseConditional(e,t,r)));return n.node?(n.error&&(this.state=n.failState),n.node):(i.start=n.error.pos||this.state.start,e)}this.expect(l.question);const n=this.state.clone(),s=this.state.noArrowAt,a=this.startNodeAt(t,r);let{consequent:o,failed:c}=this.tryParseConditionalConsequent(),[u,p]=this.getArrowLikeExpressions(o);if(c||p.length>0){const e=[...s];if(p.length>0){this.state=n,this.state.noArrowAt=e;for(let t=0;t<p.length;t++)e.push(p[t].start);({consequent:o,failed:c}=this.tryParseConditionalConsequent()),[u,p]=this.getArrowLikeExpressions(o)}c&&u.length>1&&this.raise(n.start,R.AmbiguousConditionalArrow),c&&1===u.length&&(this.state=n,this.state.noArrowAt=e.concat(u[0].start),({consequent:o,failed:c}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=s,this.expect(l.colon),a.test=e,a.consequent=o,a.alternate=this.forwardNoArrowParamsConversionAt(a,(()=>this.parseMaybeAssign(void 0,void 0,void 0))),this.finishNode(a,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),t=!this.match(l.colon);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const r=[e],i=[];for(;0!==r.length;){const e=r.pop();"ArrowFunctionExpression"===e.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):i.push(e),r.push(e.body)):"ConditionalExpression"===e.type&&(r.push(e.consequent),r.push(e.alternate))}return t?(i.forEach((e=>this.finishArrowValidation(e))),[i,[]]):function(e,t){const r=[],i=[];for(let n=0;n<e.length;n++)(t(e[n],n,e)?r:i).push(e[n]);return[r,i]}(i,(e=>e.params.every((e=>this.isAssignable(e,!0)))))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingComma),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,r){if(e=super.parseParenItem(e,t,r),this.eat(l.question)&&(e.optional=!0,this.resetEndLocation(e)),this.match(l.colon)){const i=this.startNodeAt(t,r);return i.expression=e,i.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(i,"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)}parseExport(e){const t=super.parseExport(e);return"ExportNamedDeclaration"!==t.type&&"ExportAllDeclaration"!==t.type||(t.exportKind=t.exportKind||"value"),t}parseExportDeclaration(e){if(this.isContextual("type")){e.exportKind="type";const t=this.startNode();return this.next(),this.match(l.braceL)?(e.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual("opaque")){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual("interface")){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseInterface(t)}if(this.shouldParseEnums()&&this.isContextual("enum")){e.exportKind="value";const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(...arguments)||!(!this.isContextual("type")||this.lookahead().type!==l.star)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){const t=this.state.start,r=super.maybeParseExportNamespaceSpecifier(e);return r&&"type"===e.exportKind&&this.unexpected(t),r}parseClassId(e,t,r){super.parseClassId(e,t,r),this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,r){const i=this.state.start;if(this.isContextual("declare")){if(this.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,r),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type?this.raise(i,R.DeclareClassElement):t.value&&this.raise(t.value.start,R.DeclareClassFieldInitializer))}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);return 123===e&&124===t?this.finishOp(l.braceBarL,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?this.finishOp(l.question,1):function(e,t){return 64===e&&64===t}(e,t)?(this.state.isIterator=!0,super.readWord()):super.getTokenFromCode(e):this.finishOp(l.relational,1)}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":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=>this.isAssignable(e)));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":case"TypeCastExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toAssignable(e){return"TypeCastExpression"===e.type?super.toAssignable(this.typeCastToParameter(e)):super.toAssignable(e)}toAssignableList(e,t){for(let t=0;t<e.length;t++){const r=e[t];"TypeCastExpression"===(null==r?void 0:r.type)&&(e[t]=this.typeCastToParameter(r))}return super.toAssignableList(e,t)}toReferencedList(e,t){for(let i=0;i<e.length;i++){var r;const n=e[i];n&&"TypeCastExpression"===n.type&&!(null==(r=n.extra)?void 0:r.parenthesized)&&(e.length>1||!t)&&this.raise(n.typeAnnotation.start,R.TypeCastInPattern)}return e}parseArrayLike(e,t,r,i){const n=super.parseArrayLike(e,t,r,i);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}checkLVal(e,t=64,r,i){if("TypeCastExpression"!==e.type)return super.checkLVal(e,t,r,i)}parseClassProperty(e){return this.match(l.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(l.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(l.colon)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(l.colon)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,r,i,n,s){t.variance&&this.unexpected(t.variance.start),delete t.variance,this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,r,i,n,s)}pushClassPrivateMethod(e,t,r,i){t.variance&&this.unexpected(t.variance.start),delete t.variance,this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,r,i)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.isRelational("<")&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual("implements")){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(l.comma))}}parsePropertyName(e,t){const r=this.flowParseVariance(),i=super.parsePropertyName(e,t);return e.variance=r,i}parseObjPropValue(e,t,r,i,n,s,a,o){let c;e.variance&&this.unexpected(e.variance.start),delete e.variance,this.isRelational("<")&&!a&&(c=this.flowParseTypeParameterDeclaration(),this.match(l.parenL)||this.unexpected()),super.parseObjPropValue(e,t,r,i,n,s,a,o),c&&((e.value||e).typeParameters=c)}parseAssignableListItemTypes(e){return this.eat(l.question)&&("Identifier"!==e.type&&this.raise(e.start,R.OptionalBindingPattern),e.optional=!0),this.match(l.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),this.resetEndLocation(e),e}parseMaybeDefault(e,t,r){const i=super.parseMaybeDefault(e,t,r);return"AssignmentPattern"===i.type&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(i.typeAnnotation.start,R.TypeBeforeInitializer),i}shouldParseDefaultImport(e){return hasTypeImportKind(e)?isMaybeDefaultImport(this.state):super.shouldParseDefaultImport(e)}parseImportSpecifierLocal(e,t,r,i){t.local=hasTypeImportKind(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),this.checkLVal(t.local,9,void 0,i),e.specifiers.push(this.finishNode(t,r))}maybeParseDefaultImportSpecifier(e){e.importKind="value";let t=null;if(this.match(l._typeof)?t="typeof":this.isContextual("type")&&(t="type"),t){const r=this.lookahead();"type"===t&&r.type===l.star&&this.unexpected(r.start),(isMaybeDefaultImport(r)||r.type===l.braceL||r.type===l.star)&&(this.next(),e.importKind=t)}return super.maybeParseDefaultImportSpecifier(e)}parseImportSpecifier(e){const t=this.startNode(),r=this.state.start,i=this.parseModuleExportName();let n=null;"Identifier"===i.type&&("type"===i.name?n="type":"typeof"===i.name&&(n="typeof"));let s=!1;if(this.isContextual("as")&&!this.isLookaheadContextual("as")){const e=this.parseIdentifier(!0);null===n||this.match(l.name)||this.state.type.keyword?(t.imported=i,t.importKind=null,t.local=this.parseIdentifier()):(t.imported=e,t.importKind=n,t.local=e.__clone())}else if(null!==n&&(this.match(l.name)||this.state.type.keyword))t.imported=this.parseIdentifier(!0),t.importKind=n,this.eatContextual("as")?t.local=this.parseIdentifier():(s=!0,t.local=t.imported.__clone());else{if("StringLiteral"===i.type)throw this.raise(t.start,S.ImportBindingIsString,i.value);s=!0,t.imported=i,t.importKind=null,t.local=t.imported.__clone()}const a=hasTypeImportKind(e),o=hasTypeImportKind(t);a&&o&&this.raise(r,R.ImportTypeShorthandOnlyInPureImport),(a||o)&&this.checkReservedType(t.local.name,t.local.start,!0),!s||a||o||this.checkReservedWord(t.local.name,t.start,!0,!0),this.checkLVal(t.local,9,void 0,"import specifier"),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))}parseFunctionParams(e,t){const r=e.kind;"get"!==r&&"set"!==r&&this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(l.colon)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(l.colon)){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(l.colon)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t,r){var i;let n,s=null;if(this.hasPlugin("jsx")&&(this.match(l.jsxTagStart)||this.isRelational("<"))){if(s=this.state.clone(),n=this.tryParse((()=>super.parseMaybeAssign(e,t,r)),s),!n.error)return n.node;const{context:i}=this.state;i[i.length-1]===v.j_oTag?i.length-=2:i[i.length-1]===v.j_expr&&(i.length-=1)}if((null==(i=n)?void 0:i.error)||this.isRelational("<")){var a,o;let i;s=s||this.state.clone();const l=this.tryParse((n=>{var s;i=this.flowParseTypeParameterDeclaration();const a=this.forwardNoArrowParamsConversionAt(i,(()=>{const n=super.parseMaybeAssign(e,t,r);return this.resetStartLocationFromNode(n,i),n}));"ArrowFunctionExpression"!==a.type&&(null==(s=a.extra)?void 0:s.parenthesized)&&n();const o=this.maybeUnwrapTypeCastExpression(a);return o.typeParameters=i,this.resetStartLocationFromNode(o,i),a}),s);let c=null;if(l.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(l.node).type){if(!l.error&&!l.aborted)return l.node.async&&this.raise(i.start,R.UnexpectedTypeParameterBeforeAsyncArrowFunction),l.node;c=l.node}if(null==(a=n)?void 0:a.node)return this.state=n.failState,n.node;if(c)return this.state=l.failState,c;if(null==(o=n)?void 0:o.thrown)throw n.error;if(l.thrown)throw l.error;throw this.raise(i.start,R.UnexpectedTokenAfterTypeParameter)}return super.parseMaybeAssign(e,t,r)}parseArrow(e){if(this.match(l.colon)){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(l.arrow)||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(){return this.match(l.colon)||super.shouldParseArrow()}setArrowFunctionParameters(e,t){-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,r){if(!r||-1===this.state.noArrowParamsConversionAt.indexOf(e.start))return super.checkParams(...arguments)}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(e,t,r,i){if("Identifier"===e.type&&"async"===e.name&&-1!==this.state.noArrowAt.indexOf(t)){this.next();const i=this.startNodeAt(t,r);i.callee=e,i.arguments=this.parseCallExpressionArguments(l.parenR,!1),e=this.finishNode(i,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.isRelational("<")){const n=this.state.clone(),s=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t,r)||e()),n);if(!s.error&&!s.aborted)return s.node;const a=this.tryParse((()=>super.parseSubscripts(e,t,r,i)),n);if(a.node&&!a.error)return a.node;if(s.node)return this.state=s.failState,s.node;if(a.node)return this.state=a.failState,a.node;throw s.error||a.error}return super.parseSubscripts(e,t,r,i)}parseSubscript(e,t,r,i,n){if(this.match(l.questionDot)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,i)return n.stop=!0,e;this.next();const s=this.startNodeAt(t,r);return s.callee=e,s.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(l.parenL),s.arguments=this.parseCallExpressionArguments(l.parenR,!1),s.optional=!0,this.finishCallExpression(s,!0)}if(!i&&this.shouldParseTypes()&&this.isRelational("<")){const i=this.startNodeAt(t,r);i.callee=e;const s=this.tryParse((()=>(i.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(l.parenL),i.arguments=this.parseCallExpressionArguments(l.parenR,!1),n.optionalChainMember&&(i.optional=!1),this.finishCallExpression(i,n.optionalChainMember))));if(s.node)return s.error&&(this.state=s.failState),s.node}return super.parseSubscript(e,t,r,i,n)}parseNewArguments(e){let t=null;this.shouldParseTypes()&&this.isRelational("<")&&(t=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),e.typeArguments=t,super.parseNewArguments(e)}parseAsyncArrowWithTypeParameters(e,t){const r=this.startNodeAt(e,t);if(this.parseFunctionParams(r),this.parseArrow(r))return this.parseArrowExpression(r,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(l.braceBarR,2)}parseTopLevel(e,t){const r=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(this.state.pos,R.UnterminatedFlowComment),r}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment())return this.state.hasFlowComment&&this.unexpected(null,R.NestedFlowComment),this.hasFlowCommentCompletion(),this.state.pos+=this.skipFlowComment(),void(this.state.hasFlowComment=!0);if(this.state.hasFlowComment){const e=this.input.indexOf("*-/",this.state.pos+=2);if(-1===e)throw this.raise(this.state.pos-2,S.UnterminatedComment);this.state.pos=e+3}else super.skipBlockComment()}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),i=this.input.charCodeAt(t+e+1);return 58===r&&58===i?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==i&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(this.state.pos,S.UnterminatedComment)}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:r}){this.raise(e,R.EnumBooleanMemberNotInitialized,r,t)}flowEnumErrorInvalidMemberName(e,{enumName:t,memberName:r}){const i=r[0].toUpperCase()+r.slice(1);this.raise(e,R.EnumInvalidMemberName,r,i,t)}flowEnumErrorDuplicateMemberName(e,{enumName:t,memberName:r}){this.raise(e,R.EnumDuplicateMemberName,r,t)}flowEnumErrorInconsistentMemberValues(e,{enumName:t}){this.raise(e,R.EnumInconsistentMemberValues,t)}flowEnumErrorInvalidExplicitType(e,{enumName:t,suppliedType:r}){return this.raise(e,null===r?R.EnumInvalidExplicitTypeUnknownSupplied:R.EnumInvalidExplicitType,t,r)}flowEnumErrorInvalidMemberInitializer(e,{enumName:t,explicitType:r,memberName:i}){let n=null;switch(r){case"boolean":case"number":case"string":n=R.EnumInvalidMemberInitializerPrimaryType;break;case"symbol":n=R.EnumInvalidMemberInitializerSymbolType;break;default:n=R.EnumInvalidMemberInitializerUnknownType}return this.raise(e,n,t,i,r)}flowEnumErrorNumberMemberNotInitialized(e,{enumName:t,memberName:r}){this.raise(e,R.EnumNumberMemberNotInitialized,t,r)}flowEnumErrorStringMemberInconsistentlyInitailized(e,{enumName:t}){this.raise(e,R.EnumStringMemberInconsistentlyInitailized,t)}flowEnumMemberInit(){const e=this.state.start,endOfInit=()=>this.match(l.comma)||this.match(l.braceR);switch(this.state.type){case l.num:{const t=this.parseLiteral(this.state.value,"NumericLiteral");return endOfInit()?{type:"number",pos:t.start,value:t}:{type:"invalid",pos:e}}case l.string:{const t=this.parseLiteral(this.state.value,"StringLiteral");return endOfInit()?{type:"string",pos:t.start,value:t}:{type:"invalid",pos:e}}case l._true:case l._false:{const t=this.parseBooleanLiteral();return endOfInit()?{type:"boolean",pos:t.start,value:t}:{type:"invalid",pos:e}}default:return{type:"invalid",pos:e}}}flowEnumMemberRaw(){const e=this.state.start;return{id:this.parseIdentifier(!0),init:this.eat(l.eq)?this.flowEnumMemberInit():{type:"none",pos:e}}}flowEnumCheckExplicitTypeMismatch(e,t,r){const{explicitType:i}=t;null!==i&&i!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){const r=new Set,i={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};for(;!this.match(l.braceR);){const n=this.startNode(),{id:s,init:a}=this.flowEnumMemberRaw(),o=s.name;if(""===o)continue;/^[a-z]/.test(o)&&this.flowEnumErrorInvalidMemberName(s.start,{enumName:e,memberName:o}),r.has(o)&&this.flowEnumErrorDuplicateMemberName(s.start,{enumName:e,memberName:o}),r.add(o);const c={enumName:e,explicitType:t,memberName:o};switch(n.id=s,a.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(a.pos,c,"boolean"),n.init=a.value,i.booleanMembers.push(this.finishNode(n,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(a.pos,c,"number"),n.init=a.value,i.numberMembers.push(this.finishNode(n,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(a.pos,c,"string"),n.init=a.value,i.stringMembers.push(this.finishNode(n,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(a.pos,c);case"none":switch(t){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(a.pos,c);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(a.pos,c);break;default:i.defaultedMembers.push(this.finishNode(n,"EnumDefaultedMember"))}}this.match(l.braceR)||this.expect(l.comma)}return i}flowEnumStringMembers(e,t,{enumName:r}){if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(let t=0;t<e.length;t++){const i=e[t];this.flowEnumErrorStringMemberInconsistentlyInitailized(i.start,{enumName:r})}return t}for(let e=0;e<t.length;e++){const i=t[e];this.flowEnumErrorStringMemberInconsistentlyInitailized(i.start,{enumName:r})}return e}flowEnumParseExplicitType({enumName:e}){if(this.eatContextual("of")){if(!this.match(l.name))throw this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:e,suppliedType:null});const{value:t}=this.state;return this.next(),"boolean"!==t&&"number"!==t&&"string"!==t&&"symbol"!==t&&this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:e,suppliedType:t}),t}return null}flowEnumBody(e,{enumName:t,nameLoc:r}){const i=this.flowEnumParseExplicitType({enumName:t});this.expect(l.braceL);const n=this.flowEnumMembers({enumName:t,explicitType:i});switch(i){case"boolean":return e.explicitType=!0,e.members=n.booleanMembers,this.expect(l.braceR),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=n.numberMembers,this.expect(l.braceR),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:t}),this.expect(l.braceR),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=n.defaultedMembers,this.expect(l.braceR),this.finishNode(e,"EnumSymbolBody");default:{const empty=()=>(e.members=[],this.expect(l.braceR),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const i=n.booleanMembers.length,s=n.numberMembers.length,a=n.stringMembers.length,o=n.defaultedMembers.length;if(i||s||a||o){if(i||s){if(!s&&!a&&i>=o){for(let e=0,r=n.defaultedMembers;e<r.length;e++){const i=r[e];this.flowEnumErrorBooleanMemberNotInitialized(i.start,{enumName:t,memberName:i.id.name})}return e.members=n.booleanMembers,this.expect(l.braceR),this.finishNode(e,"EnumBooleanBody")}if(!i&&!a&&s>=o){for(let e=0,r=n.defaultedMembers;e<r.length;e++){const i=r[e];this.flowEnumErrorNumberMemberNotInitialized(i.start,{enumName:t,memberName:i.id.name})}return e.members=n.numberMembers,this.expect(l.braceR),this.finishNode(e,"EnumNumberBody")}return this.flowEnumErrorInconsistentMemberValues(r,{enumName:t}),empty()}return e.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:t}),this.expect(l.braceR),this.finishNode(e,"EnumStringBody")}return empty()}}}flowParseEnumDeclaration(e){const t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),{enumName:t.name,nameLoc:t.start}),this.finishNode(e,"EnumDeclaration")}updateContext(e){this.match(l.name)&&"of"===this.state.value&&e===l.name&&"interface"===this.input.slice(this.state.lastTokStart,this.state.lastTokEnd)?this.state.exprAllowed=!1:super.updateContext(e)}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}},t},typescript:e=>class extends e{getScopeHandler(){return H}tsIsIdentifier(){return this.match(l.name)}tsNextTokenCanFollowModifier(){return this.next(),!(this.hasPrecedingLineBreak()||this.match(l.parenL)||this.match(l.parenR)||this.match(l.colon)||this.match(l.eq)||this.match(l.question)||this.match(l.bang))}tsParseModifier(e){if(!this.match(l.name))return;const t=this.state.value;return-1!==e.indexOf(t)&&this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))?t:void 0}tsParseModifiers(e,t){for(;;){const r=this.state.start,i=this.tsParseModifier(t);if(!i)break;Object.hasOwnProperty.call(e,i)&&this.raise(r,$.DuplicateModifier,i),e[i]=!0}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(l.braceR);case"HeritageClauseElement":return this.match(l.braceL);case"TupleElementTypes":return this.match(l.bracketR);case"TypeParametersOrArguments":return this.isRelational(">")}throw new Error("Unreachable")}tsParseList(e,t){const r=[];for(;!this.tsIsListTerminator(e);)r.push(t());return r}tsParseDelimitedList(e,t){return nonNull(this.tsParseDelimitedListWorker(e,t,!0))}tsParseDelimitedListWorker(e,t,r){const i=[];for(;!this.tsIsListTerminator(e);){const n=t();if(null==n)return;if(i.push(n),!this.eat(l.comma)){if(this.tsIsListTerminator(e))break;return void(r&&this.expect(l.comma))}}return i}tsParseBracketedList(e,t,r,i){i||(r?this.expect(l.bracketL):this.expectRelational("<"));const n=this.tsParseDelimitedList(e,t);return r?this.expect(l.bracketR):this.expectRelational(">"),n}tsParseImportType(){const e=this.startNode();return this.expect(l._import),this.expect(l.parenL),this.match(l.string)||this.raise(this.state.start,$.UnsupportedImportTypeArgument),e.argument=this.parseExprAtom(),this.expect(l.parenR),this.eat(l.dot)&&(e.qualifier=this.tsParseEntityName(!0)),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(e){let t=this.parseIdentifier();for(;this.eat(l.dot);){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(!1),!this.hasPrecedingLineBreak()&&this.isRelational("<")&&(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),this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();return this.expect(l._typeof),this.match(l._import)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(!0),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(){const e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsEatThenParseType(l._extends),e.default=this.tsEatThenParseType(l.eq),this.finishNode(e,"TSTypeParameter")}tsTryParseTypeParameters(){if(this.isRelational("<"))return this.tsParseTypeParameters()}tsParseTypeParameters(){const e=this.startNode();return this.isRelational("<")||this.match(l.jsxTagStart)?this.next():this.unexpected(),e.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0),0===e.params.length&&this.raise(e.start,$.EmptyTypeParameters),this.finishNode(e,"TSTypeParameterDeclaration")}tsTryNextParseConstantContext(){return this.lookahead().type===l._const?(this.next(),this.tsParseTypeReference()):null}tsFillSignature(e,t){const r=e===l.arrow;t.typeParameters=this.tsTryParseTypeParameters(),this.expect(l.parenL),t.parameters=this.tsParseBindingListForSignature(),(r||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){return this.parseBindingList(l.parenR,41).map((e=>("Identifier"!==e.type&&"RestElement"!==e.type&&"ObjectPattern"!==e.type&&"ArrayPattern"!==e.type&&this.raise(e.start,$.UnsupportedSignatureParameterKind,e.type),e)))}tsParseTypeMemberSemicolon(){this.eat(l.comma)||this.semicolon()}tsParseSignatureMember(e,t){return this.tsFillSignature(l.colon,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),this.eat(l.name)&&this.match(l.colon)}tsTryParseIndexSignature(e){if(!this.match(l.bracketL)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(l.bracketL);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(l.bracketR),e.parameters=[t];const r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){this.eat(l.question)&&(e.optional=!0);const r=e;if(t||!this.match(l.parenL)&&!this.isRelational("<")){const e=r;t&&(e.readonly=!0);const i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}{const e=r;return this.tsFillSignature(l.colon,e),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSMethodSignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(l.parenL)||this.isRelational("<"))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(l._new)){const t=this.startNode();return this.next(),this.match(l.parenL)||this.isRelational("<")?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}const t=!!this.tsParseModifier(["readonly"]),r=this.tsTryParseIndexSignature(e);return r?(t&&(e.readonly=!0),r):(this.parsePropertyName(e,!1),this.tsParsePropertyOrMethodSignature(e,t))}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(l.braceL);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(l.braceR),e}tsIsStartOfMappedType(){return this.next(),this.eat(l.plusMin)?this.isContextual("readonly"):(this.isContextual("readonly")&&this.next(),!!this.match(l.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(l._in))))}tsParseMappedTypeParameter(){const e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsExpectThenParseType(l._in),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){const e=this.startNode();return this.expect(l.braceL),this.match(l.plusMin)?(e.readonly=this.state.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(e.readonly=!0),this.expect(l.bracketL),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(l.bracketR),this.match(l.plusMin)?(e.optional=this.state.value,this.next(),this.expect(l.question)):this.eat(l.question)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(l.braceR),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1,r=null;return e.elementTypes.forEach((e=>{var i;let{type:n}=e;!t||"TSRestType"===n||"TSOptionalType"===n||"TSNamedTupleMember"===n&&e.optional||this.raise(e.start,$.OptionalTypeBeforeRequired),t=t||"TSNamedTupleMember"===n&&e.optional||"TSOptionalType"===n,"TSRestType"===n&&(n=(e=e.typeAnnotation).type);const s="TSNamedTupleMember"===n;r=null!=(i=r)?i:s,r!==s&&this.raise(e.start,$.MixedLabeledAndUnlabeledElements)})),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const{start:e,startLoc:t}=this.state,r=this.eat(l.ellipsis);let i=this.tsParseType();const n=this.eat(l.question);if(this.eat(l.colon)){const e=this.startNodeAtNode(i);e.optional=n,"TSTypeReference"!==i.type||i.typeParameters||"Identifier"!==i.typeName.type?(this.raise(i.start,$.InvalidTupleMemberLabel),e.label=i):e.label=i.typeName,e.elementType=this.tsParseType(),i=this.finishNode(e,"TSNamedTupleMember")}else if(n){const e=this.startNodeAtNode(i);e.typeAnnotation=i,i=this.finishNode(e,"TSOptionalType")}if(r){const r=this.startNodeAt(e,t);r.typeAnnotation=i,i=this.finishNode(r,"TSRestType")}return i}tsParseParenthesizedType(){const e=this.startNode();return this.expect(l.parenL),e.typeAnnotation=this.tsParseType(),this.expect(l.parenR),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e){const t=this.startNode();return"TSConstructorType"===e&&this.expect(l._new),this.tsFillSignature(l.arrow,t),this.finishNode(t,e)}tsParseLiteralTypeNode(){const e=this.startNode();return e.literal=(()=>{switch(this.state.type){case l.num:case l.bigint:case l.string:case l._true:case l._false:return this.parseExprAtom();default:throw this.unexpected()}})(),this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){const e=this.startNode();return e.literal=this.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case l.name:case l._void:case l._null:{const e=this.match(l._void)?"TSVoidKeyword":this.match(l._null)?"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!==e&&46!==this.lookaheadCharCode()){const t=this.startNode();return this.next(),this.finishNode(t,e)}return this.tsParseTypeReference()}case l.string:case l.num:case l.bigint:case l._true:case l._false:return this.tsParseLiteralTypeNode();case l.plusMin:if("-"===this.state.value){const e=this.startNode(),t=this.lookahead();if(t.type!==l.num&&t.type!==l.bigint)throw this.unexpected();return e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case l._this:return this.tsParseThisTypeOrThisTypePredicate();case l._typeof:return this.tsParseTypeQuery();case l._import:return this.tsParseImportType();case l.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case l.bracketL:return this.tsParseTupleType();case l.parenL:return this.tsParseParenthesizedType();case l.backQuote:return this.tsParseTemplateLiteralType()}throw this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(l.bracketL);)if(this.match(l.bracketR)){const t=this.startNodeAtNode(e);t.elementType=e,this.expect(l.bracketR),e=this.finishNode(t,"TSArrayType")}else{const t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(l.bracketR),e=this.finishNode(t,"TSIndexedAccessType")}return e}tsParseTypeOperator(e){const t=this.startNode();return this.expectContextual(e),t.operator=e,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===e&&this.tsCheckTypeAnnotationForReadOnly(t),this.finishNode(t,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(e.start,$.UnexpectedReadonly)}}tsParseInferType(){const e=this.startNode();this.expectContextual("infer");const t=this.startNode();return t.name=this.parseIdentifierName(t.start),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseTypeOperatorOrHigher(){const e=["keyof","unique","readonly"].find((e=>this.isContextual(e)));return e?this.tsParseTypeOperator(e):this.isContextual("infer")?this.tsParseInferType():this.tsParseArrayTypeOrHigher()}tsParseUnionOrIntersectionType(e,t,r){this.eat(r);let i=t();if(this.match(r)){const n=[i];for(;this.eat(r);)n.push(t());const s=this.startNodeAtNode(i);s.types=n,i=this.finishNode(s,e)}return i}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),l.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),l.bitwiseOR)}tsIsStartOfFunctionType(){return!!this.isRelational("<")||this.match(l.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(this.match(l.name)||this.match(l._this))return this.next(),!0;if(this.match(l.braceL)){let e=1;for(this.next();e>0;)this.match(l.braceL)?++e:this.match(l.braceR)&&--e,this.next();return!0}if(this.match(l.bracketL)){let e=1;for(this.next();e>0;)this.match(l.bracketL)?++e:this.match(l.bracketR)&&--e,this.next();return!0}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(l.parenR)||this.match(l.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(l.colon)||this.match(l.comma)||this.match(l.question)||this.match(l.eq))return!0;if(this.match(l.parenR)&&(this.next(),this.match(l.arrow)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{const t=this.startNode();this.expect(e);const r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(l._this)){let e=this.tsParseThisTypeOrThisTypePredicate();if("TSThisType"===e.type){const r=this.startNodeAtNode(t);r.parameterName=e,r.asserts=!0,e=this.finishNode(r,"TSTypePredicate")}else e.asserts=!0;return t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}const i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i){if(!r)return this.tsParseTypeAnnotation(!1,t);const e=this.startNodeAtNode(t);return e.parameterName=this.parseIdentifier(),e.asserts=r,t.typeAnnotation=this.finishNode(e,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}const n=this.tsParseTypeAnnotation(!1),s=this.startNodeAtNode(t);return s.parameterName=i,s.typeAnnotation=n,s.asserts=r,t.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(l.colon)?this.tsParseTypeOrTypePredicateAnnotation(l.colon):void 0}tsTryParseTypeAnnotation(){return this.match(l.colon)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(l.colon)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(!this.match(l.name)||"asserts"!==this.state.value||this.hasPrecedingLineBreak())return!1;const e=this.state.containsEsc;return this.next(),!(!this.match(l.name)&&!this.match(l._this))&&(e&&this.raise(this.state.lastTokStart,S.InvalidEscapedReservedWord,"asserts"),!0)}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType((()=>{e&&this.expect(l.colon),t.typeAnnotation=this.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){assert(this.state.inType);const e=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(l._extends))return e;const t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsParseNonConditionalType(),this.expect(l.question),t.trueType=this.tsParseType(),this.expect(l.colon),t.falseType=this.tsParseType(),this.finishNode(t,"TSConditionalType")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(l._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){const e=this.startNode(),t=this.tsTryNextParseConstantContext();return e.typeAnnotation=t||this.tsNextThenParseType(),this.expectRelational(">"),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.start,r=this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this));return r.length||this.raise(t,$.EmptyHeritageClauseType,e),r}tsParseExpressionWithTypeArguments(){const e=this.startNode();return e.expression=this.tsParseEntityName(!1),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}tsParseInterfaceDeclaration(e){e.id=this.parseIdentifier(),this.checkLVal(e.id,130,void 0,"typescript interface declaration"),e.typeParameters=this.tsTryParseTypeParameters(),this.eat(l._extends)&&(e.extends=this.tsParseHeritageClause("extends"));const t=this.startNode();return t.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(t,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkLVal(e.id,2,void 0,"typescript type alias"),e.typeParameters=this.tsTryParseTypeParameters(),e.typeAnnotation=this.tsInType((()=>{if(this.expect(l.eq),this.isContextual("intrinsic")&&this.lookahead().type!==l.dot){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}}tsEatThenParseType(e){return this.match(e)?this.tsNextThenParseType():void 0}tsExpectThenParseType(e){return this.tsDoThenParseType((()=>this.expect(e)))}tsNextThenParseType(){return this.tsDoThenParseType((()=>this.next()))}tsDoThenParseType(e){return this.tsInType((()=>(e(),this.tsParseType())))}tsParseEnumMember(){const e=this.startNode();return e.id=this.match(l.string)?this.parseExprAtom():this.parseIdentifier(!0),this.eat(l.eq)&&(e.initializer=this.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t){return t&&(e.const=!0),e.id=this.parseIdentifier(),this.checkLVal(e.id,t?779:267,void 0,"typescript enum declaration"),this.expect(l.braceL),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(l.braceR),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(0),this.expect(l.braceL),this.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,l.braceR),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier(),t||this.checkLVal(e.id,1024,null,"module or namespace declaration"),this.eat(l.dot)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(c),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual("global")?(e.global=!0,e.id=this.parseIdentifier()):this.match(l.string)?e.id=this.parseExprAtom():this.unexpected(),this.match(l.braceL)?(this.scope.enter(c),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t){return e.isExport=t||!1,e.id=this.parseIdentifier(),this.checkLVal(e.id,9,void 0,"import equals declaration"),this.expect(l.eq),e.moduleReference=this.tsParseModuleReference(),this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual("require")&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const e=this.startNode();if(this.expectContextual("require"),this.expect(l.parenL),!this.match(l.string))throw this.unexpected();return e.expression=this.parseExprAtom(),this.expect(l.parenR),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();return void 0!==r&&!1!==r?r:void(this.state=t)}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t,r=this.state.type;return this.isContextual("let")&&(r=l._var,t="let"),this.tsInDeclareContext((()=>{switch(r){case l._function:return e.declare=!0,this.parseFunctionStatement(e,!1,!0);case l._class:return e.declare=!0,this.parseClass(e,!0,!1);case l._const:if(this.match(l._const)&&this.isLookaheadContextual("enum"))return this.expect(l._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(e,!0);case l._var:return t=t||this.state.value,this.parseVarStatement(e,t);case l.name:{const t=this.state.value;return"global"===t?this.tsParseAmbientExternalModuleDeclaration(e):this.tsParseDeclaration(e,t,!0)}}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)}tsParseExpressionStatement(e,t){switch(t.name){case"declare":{const t=this.tsTryParseDeclare(e);if(t)return t.declare=!0,t;break}case"global":if(this.match(l.braceL)){this.scope.enter(c),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)}}tsParseDeclaration(e,t,r){switch(t){case"abstract":if(this.tsCheckLineTerminatorAndMatch(l._class,r)){const t=e;return t.abstract=!0,r&&(this.next(),this.match(l._class)||this.unexpected(null,l._class)),this.parseClass(t,!0,!1)}break;case"enum":if(r||this.match(l.name))return r&&this.next(),this.tsParseEnumDeclaration(e,!1);break;case"interface":if(this.tsCheckLineTerminatorAndMatch(l.name,r))return r&&this.next(),this.tsParseInterfaceDeclaration(e);break;case"module":if(r&&this.next(),this.match(l.string))return this.tsParseAmbientExternalModuleDeclaration(e);if(this.tsCheckLineTerminatorAndMatch(l.name,r))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"namespace":if(this.tsCheckLineTerminatorAndMatch(l.name,r))return r&&this.next(),this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminatorAndMatch(l.name,r))return r&&this.next(),this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminatorAndMatch(e,t){return(t||this.match(e))&&!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e,t){if(!this.isRelational("<"))return;const r=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const i=this.tsTryParseAndCatch((()=>{const r=this.startNodeAt(e,t);return r.typeParameters=this.tsParseTypeParameters(),super.parseFunctionParams(r),r.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(l.arrow),r}));return this.state.maybeInArrowParameters=r,i?this.parseArrowExpression(i,null,!0):void 0}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expectRelational("<"),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===e.params.length&&this.raise(e.start,$.EmptyTypeArguments),this.state.exprAllowed=!1,this.expectRelational(">"),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){if(this.match(l.name))switch(this.state.value){case"abstract":case"declare":case"enum":case"interface":case"module":case"namespace":case"type":return!0}return!1}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){const r=this.state.start,i=this.state.startLoc;let n,s=!1;void 0!==e&&(n=this.parseAccessModifier(),s=!!this.tsParseModifier(["readonly"]),!1===e&&(n||s)&&this.raise(r,$.UnexpectedParameterModifier));const a=this.parseMaybeDefault();this.parseAssignableListItemTypes(a);const o=this.parseMaybeDefault(a.start,a.loc.start,a);if(n||s){const e=this.startNodeAt(r,i);return t.length&&(e.decorators=t),n&&(e.accessibility=n),s&&(e.readonly=s),"Identifier"!==o.type&&"AssignmentPattern"!==o.type&&this.raise(e.start,$.UnsupportedParameterPropertyKind),e.parameter=o,this.finishNode(e,"TSParameterProperty")}return t.length&&(a.decorators=t),o}parseFunctionBodyAndFinish(e,t,r=!1){this.match(l.colon)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(l.colon));const i="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t?"TSDeclareMethod":void 0;i&&!this.match(l.braceL)&&this.isLineTerminator()?this.finishNode(e,i):"TSDeclareFunction"===i&&this.state.isDeclareContext&&(this.raise(e.start,$.DeclareFunctionHasImplementation),e.declare)?super.parseFunctionBodyAndFinish(e,i,r):super.parseFunctionBodyAndFinish(e,t,r)}registerFunctionStatementId(e){!e.body&&e.id?this.checkLVal(e.id,1024,null,"function name"):super.registerFunctionStatementId(...arguments)}tsCheckForInvalidTypeCasts(e){e.forEach((e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(e.typeAnnotation.start,$.UnexpectedTypeAnnotation)}))}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(...e){const t=super.parseArrayLike(...e);return"ArrayExpression"===t.type&&this.tsCheckForInvalidTypeCasts(t.elements),t}parseSubscript(e,t,r,i,n){if(!this.hasPrecedingLineBreak()&&this.match(l.bang)){this.state.exprAllowed=!1,this.next();const i=this.startNodeAt(t,r);return i.expression=e,this.finishNode(i,"TSNonNullExpression")}if(this.isRelational("<")){const s=this.tsTryParseAndCatch((()=>{if(!i&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t,r);if(e)return e}const s=this.startNodeAt(t,r);s.callee=e;const a=this.tsParseTypeArguments();if(a){if(!i&&this.eat(l.parenL))return s.arguments=this.parseCallExpressionArguments(l.parenR,!1),this.tsCheckForInvalidTypeCasts(s.arguments),s.typeParameters=a,this.finishCallExpression(s,n.optionalChainMember);if(this.match(l.backQuote)){const i=this.parseTaggedTemplateExpression(e,t,r,n);return i.typeParameters=a,i}}this.unexpected()}));if(s)return s}return super.parseSubscript(e,t,r,i,n)}parseNewArguments(e){if(this.isRelational("<")){const t=this.tsTryParseAndCatch((()=>{const e=this.tsParseTypeArguments();return this.match(l.parenL)||this.unexpected(),e}));t&&(e.typeParameters=t)}super.parseNewArguments(e)}parseExprOp(e,t,r,i){if(nonNull(l._in.binop)>i&&!this.hasPrecedingLineBreak()&&this.isContextual("as")){const n=this.startNodeAt(t,r);n.expression=e;const s=this.tsTryNextParseConstantContext();return n.typeAnnotation=s||this.tsNextThenParseType(),this.finishNode(n,"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,t,r,i)}return super.parseExprOp(e,t,r,i)}checkReservedWord(e,t,r,i){}checkDuplicateExports(){}parseImport(e){if(this.match(l.name)||this.match(l.star)||this.match(l.braceL)){const t=this.lookahead();if(this.match(l.name)&&t.type===l.eq)return this.tsParseImportEqualsDeclaration(e);!this.isContextual("type")||t.type===l.comma||t.type===l.name&&"from"===t.value||(e.importKind="type",this.next())}e.importKind||(e.importKind="value");const t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(t.start,"A type-only import can specify a default import or named bindings, but not both."),t}parseExport(e){if(this.match(l._import))return this.expect(l._import),this.tsParseImportEqualsDeclaration(e,!0);if(this.eat(l.eq)){const t=e;return t.expression=this.parseExpression(),this.semicolon(),this.finishNode(t,"TSExportAssignment")}if(this.eatContextual("as")){const t=e;return this.expectContextual("namespace"),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}return this.isContextual("type")&&this.lookahead().type===l.braceL?(this.next(),e.exportKind="type"):e.exportKind="value",super.parseExport(e)}isAbstractClass(){return this.isContextual("abstract")&&this.lookahead().type===l._class}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),this.parseClass(e,!0,!0),e.abstract=!0,e}if("interface"===this.state.value){const e=this.tsParseDeclaration(this.startNode(),this.state.value,!0);if(e)return e}return super.parseExportDefaultExpression()}parseStatementContent(e,t){if(this.state.type===l._const){const e=this.lookahead();if(e.type===l.name&&"enum"===e.value){const e=this.startNode();return this.expect(l._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(e,!0)}}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parseClassMember(e,t,r){this.tsParseModifiers(t,["declare"]);const i=this.parseAccessModifier();i&&(t.accessibility=i),this.tsParseModifiers(t,["declare"]);const callParseClassMember=()=>{super.parseClassMember(e,t,r)};t.declare?this.tsInDeclareContext(callParseClassMember):callParseClassMember()}parseClassMemberWithIsStatic(e,t,r,i){this.tsParseModifiers(t,["abstract","readonly","declare"]);const n=this.tsTryParseIndexSignature(t);if(n)return e.body.push(n),t.abstract&&this.raise(t.start,$.IndexSignatureHasAbstract),i&&this.raise(t.start,$.IndexSignatureHasStatic),t.accessibility&&this.raise(t.start,$.IndexSignatureHasAccessibility,t.accessibility),void(t.declare&&this.raise(t.start,$.IndexSignatureHasDeclare));super.parseClassMemberWithIsStatic(e,t,r,i)}parsePostMemberNameModifiers(e){this.eat(l.question)&&(e.optional=!0),e.readonly&&this.match(l.parenL)&&this.raise(e.start,$.ClassMethodHasReadonly),e.declare&&this.match(l.parenL)&&this.raise(e.start,$.ClassMethodHasDeclare)}parseExpressionStatement(e,t){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t):void 0)||super.parseExpressionStatement(e,t)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,r,i){if(!i||!this.match(l.question))return super.parseConditional(e,t,r,i);const n=this.tryParse((()=>super.parseConditional(e,t,r)));return n.node?(n.error&&(this.state=n.failState),n.node):(i.start=n.error.pos||this.state.start,e)}parseParenItem(e,t,r){if(e=super.parseParenItem(e,t,r),this.eat(l.question)&&(e.optional=!0,this.resetEndLocation(e)),this.match(l.colon)){const i=this.startNodeAt(t,r);return i.expression=e,i.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(i,"TSTypeCastExpression")}return e}parseExportDeclaration(e){const t=this.state.start,r=this.state.startLoc,i=this.eatContextual("declare");let n;return this.match(l.name)&&(n=this.tsTryParseExportDeclaration()),n||(n=super.parseExportDeclaration(e)),n&&("TSInterfaceDeclaration"===n.type||"TSTypeAliasDeclaration"===n.type||i)&&(e.exportKind="type"),n&&i&&(this.resetStartLocation(n,t,r),n.declare=!0),n}parseClassId(e,t,r){if((!t||r)&&this.isContextual("implements"))return;super.parseClassId(e,t,r,e.declare?1024:139);const i=this.tsTryParseTypeParameters();i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){!e.optional&&this.eat(l.bang)&&(e.definite=!0);const t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){return this.parseClassPropertyAnnotation(e),this.state.isDeclareContext&&this.match(l.eq)&&this.raise(this.state.start,$.DeclareClassFieldHasInitializer),super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(e.start,$.PrivateElementHasAbstract),e.accessibility&&this.raise(e.start,$.PrivateElementHasAccessibility,e.accessibility),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}pushClassMethod(e,t,r,i,n,s){const a=this.tsTryParseTypeParameters();a&&n&&this.raise(a.start,$.ConstructorHasTypeParameters),a&&(t.typeParameters=a),super.pushClassMethod(e,t,r,i,n,s)}pushClassPrivateMethod(e,t,r,i){const n=this.tsTryParseTypeParameters();n&&(t.typeParameters=n),super.pushClassPrivateMethod(e,t,r,i)}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&this.isRelational("<")&&(e.superTypeParameters=this.tsParseTypeArguments()),this.eatContextual("implements")&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,...t){const r=this.tsTryParseTypeParameters();r&&(e.typeParameters=r),super.parseObjPropValue(e,...t)}parseFunctionParams(e,t){const r=this.tsTryParseTypeParameters();r&&(e.typeParameters=r),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&this.eat(l.bang)&&(e.definite=!0);const r=this.tsTryParseTypeAnnotation();r&&(e.id.typeAnnotation=r,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(l.colon)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(...e){var t,r,i,n,s,a,o;let c,u,p,d;if(this.match(l.jsxTagStart)){if(c=this.state.clone(),u=this.tryParse((()=>super.parseMaybeAssign(...e)),c),!u.error)return u.node;const{context:t}=this.state;t[t.length-1]===v.j_oTag?t.length-=2:t[t.length-1]===v.j_expr&&(t.length-=1)}if(!(null==(t=u)?void 0:t.error)&&!this.isRelational("<"))return super.parseMaybeAssign(...e);c=c||this.state.clone();const h=this.tryParse((t=>{var r;d=this.tsParseTypeParameters();const i=super.parseMaybeAssign(...e);return("ArrowFunctionExpression"!==i.type||i.extra&&i.extra.parenthesized)&&t(),0!==(null==(r=d)?void 0:r.params.length)&&this.resetStartLocationFromNode(i,d),i.typeParameters=d,i}),c);if(!h.error&&!h.aborted)return h.node;if(!u&&(assert(!this.hasPlugin("jsx")),p=this.tryParse((()=>super.parseMaybeAssign(...e)),c),!p.error))return p.node;if(null==(r=u)?void 0:r.node)return this.state=u.failState,u.node;if(h.node)return this.state=h.failState,h.node;if(null==(i=p)?void 0:i.node)return this.state=p.failState,p.node;if(null==(n=u)?void 0:n.thrown)throw u.error;if(h.thrown)throw h.error;if(null==(s=p)?void 0:s.thrown)throw p.error;throw(null==(a=u)?void 0:a.error)||h.error||(null==(o=p)?void 0:o.error)}parseMaybeUnary(e){return!this.hasPlugin("jsx")&&this.isRelational("<")?this.tsParseTypeAssertion():super.parseMaybeUnary(e)}parseArrow(e){if(this.match(l.colon)){const t=this.tryParse((e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(l.colon);return!this.canInsertSemicolon()&&this.match(l.arrow)||e(),t}));if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e){this.eat(l.question)&&("Identifier"===e.type||this.state.isDeclareContext||this.state.inType||this.raise(e.start,$.PatternIsOptional),e.optional=!0);const t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}toAssignable(e){switch(e.type){case"TSTypeCastExpression":return super.toAssignable(this.typeCastToParameter(e));case"TSParameterProperty":default:return super.toAssignable(e);case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return e.expression=this.toAssignable(e.expression),e}}checkLVal(e,t=64,r,i){switch(e.type){case"TSTypeCastExpression":return;case"TSParameterProperty":return void this.checkLVal(e.parameter,t,r,"parameter property");case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return void this.checkLVal(e.expression,t,r,i);default:return void super.checkLVal(e,t,r,i)}}parseBindingAtom(){return this.state.type===l._this?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.isRelational("<")){const t=this.tsParseTypeArguments();if(this.match(l.parenL)){const r=super.parseMaybeDecoratorArguments(e);return r.typeParameters=t,r}this.unexpected(this.state.start,l.parenL)}return super.parseMaybeDecoratorArguments(e)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(l.bang)||this.match(l.colon)||super.isClassProperty()}parseMaybeDefault(...e){const t=super.parseMaybeDefault(...e);return"AssignmentPattern"===t.type&&t.typeAnnotation&&t.right.start<t.typeAnnotation.start&&this.raise(t.typeAnnotation.start,$.TypeAnnotationAfterAssign),t}getTokenFromCode(e){return!this.state.inType||62!==e&&60!==e?super.getTokenFromCode(e):this.finishOp(l.relational,1)}reScan_lt_gt(){if(this.match(l.relational)){const e=this.input.charCodeAt(this.state.start);60!==e&&62!==e||(this.state.pos-=1,this.readToken_lt_gt(e))}}toAssignableList(e){for(let t=0;t<e.length;t++){const r=e[t];if(r)switch(r.type){case"TSTypeCastExpression":e[t]=this.typeCastToParameter(r);break;case"TSAsExpression":case"TSTypeAssertion":this.state.maybeInArrowParameters?this.raise(r.start,$.UnexpectedTypeCastInParameter):e[t]=this.typeCastToParameter(r)}}return super.toAssignableList(...arguments)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.end,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(){return this.match(l.colon)||super.shouldParseArrow()}shouldParseAsyncArrow(){return this.match(l.colon)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.isRelational("<")){const t=this.tsTryParseAndCatch((()=>this.tsParseTypeArguments()));t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e),r=e.params[0];return r&&"Identifier"===r.type&&"this"===r.name?t+1:t}parseCatchClauseParam(){const e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInDeclareContext(e){const t=this.state.isDeclareContext;this.state.isDeclareContext=!0;try{return e()}finally{this.state.isDeclareContext=t}}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(l.modulo)){const e=this.state.start,t=this.startNode();if(this.eat(l.modulo),this.match(l.name)){const e=this.parseIdentifierName(this.state.start),r=this.createIdentifier(t,e);if(r.type="V8IntrinsicIdentifier",this.match(l.parenL))return r}this.unexpected(e)}}parseExprAtom(){return this.parseV8Intrinsic()||super.parseExprAtom(...arguments)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(l.placeholder)){const t=this.startNode();return this.next(),this.assertNoSpace("Unexpected space in placeholder."),t.name=super.parseIdentifier(!0),this.assertNoSpace("Unexpected space in placeholder."),this.expect(l.placeholder),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){return 37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(l.placeholder,2):super.getTokenFromCode(...arguments)}parseExprAtom(){return this.parsePlaceholder("Expression")||super.parseExprAtom(...arguments)}parseIdentifier(){return this.parsePlaceholder("Identifier")||super.parseIdentifier(...arguments)}checkReservedWord(e){void 0!==e&&super.checkReservedWord(...arguments)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom(...arguments)}checkLVal(e){"Placeholder"!==e.type&&super.checkLVal(...arguments)}toAssignable(e){return e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?(e.expectedNode="Pattern",e):super.toAssignable(...arguments)}verifyBreakContinue(e){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(...arguments)}parseExpressionStatement(e,t){if("Placeholder"!==t.type||t.extra&&t.extra.parenthesized)return super.parseExpressionStatement(...arguments);if(this.match(l.colon)){const r=e;return r.label=this.finishPlaceholder(t,"Identifier"),this.next(),r.body=this.parseStatement("label"),this.finishNode(r,"LabeledStatement")}return this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement")}parseBlock(){return this.parsePlaceholder("BlockStatement")||super.parseBlock(...arguments)}parseFunctionId(){return this.parsePlaceholder("Identifier")||super.parseFunctionId(...arguments)}parseClass(e,t,r){const i=t?"ClassDeclaration":"ClassExpression";this.next(),this.takeDecorators(e);const n=this.state.strict,s=this.parsePlaceholder("Identifier");if(s)if(this.match(l._extends)||this.match(l.placeholder)||this.match(l.braceL))e.id=s;else{if(r||!t)return e.id=null,e.body=this.finishPlaceholder(s,"ClassBody"),this.finishNode(e,i);this.unexpected(null,"A class name is required")}else this.parseClassId(e,t,r);return this.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||this.parseClassBody(!!e.superClass,n),this.finishNode(e,i)}parseExport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseExport(...arguments);if(!this.isContextual("from")&&!this.match(l.comma))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(t,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const r=this.startNode();return r.exported=t,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],super.parseExport(e)}isExportDefaultSpecifier(){if(this.match(l._default)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(l.placeholder.label,this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e){return!!(e.specifiers&&e.specifiers.length>0)||super.maybeParseExportDefaultSpecifier(...arguments)}checkExport(e){const{specifiers:t}=e;(null==t?void 0: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(...arguments);if(e.specifiers=[],!this.isContextual("from")&&!this.match(l.comma))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const r=this.startNodeAtNode(t);if(r.local=t,this.finishNode(r,"ImportDefaultSpecifier"),e.specifiers.push(r),this.eat(l.comma)){this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)}return this.expectContextual("from"),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource(...arguments)}}},ee=Object.keys(Z),te={sourceType:"script",sourceFilename:void 0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1};class re{constructor(){this.strict=void 0,this.curLine=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.maybeInArrowParameters=!1,this.inPipeline=!1,this.inType=!1,this.noAnonFunctionType=!1,this.inPropertyName=!1,this.hasFlowComment=!1,this.isIterator=!1,this.isDeclareContext=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.labels=[],this.decoratorStack=[[]],this.comments=[],this.trailingComments=[],this.leadingComments=[],this.commentStack=[],this.commentPreviousNode=null,this.pos=0,this.lineStart=0,this.type=l.eof,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.lastTokEnd=0,this.context=[v.braceStatement],this.exprAllowed=!0,this.containsEsc=!1,this.octalPositions=[],this.exportedIdentifiers=[],this.tokensLength=0}init(e){this.strict=!1!==e.strictMode&&"module"===e.sourceType,this.curLine=e.startLine,this.startLoc=this.endLoc=this.curPosition()}curPosition(){return new y(this.curLine,this.pos-this.lineStart)}clone(e){const t=new re,r=Object.keys(this);for(let i=0,n=r.length;i<n;i++){const n=r[i];let s=this[n];!e&&Array.isArray(s)&&(s=s.slice()),t[n]=s}return t}}var _isDigit=function(e){return e>=48&&e<=57};const ie=new Set(["g","m","s","i","y","u"]),ne={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},se={bin:[48,49]};se.oct=[...se.bin,50,51,52,53,54,55],se.dec=[...se.oct,56,57],se.hex=[...se.dec,65,66,67,68,69,70,97,98,99,100,101,102];class ae{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new T(e.startLoc,e.endLoc)}}class oe extends x{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.state=new re,this.state.init(e),this.input=t,this.length=t.length,this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.isLookahead||(this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new ae(this.state))),this.state.lastTokEnd=this.state.end,this.state.lastTokStart=this.state.start,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}lookahead(){const e=this.state;this.state=e.clone(!0),this.isLookahead=!0,this.next(),this.isLookahead=!1;const t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){m.lastIndex=e;return e+m.exec(this.input)[0].length}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}setStrict(e){if(this.state.strict=e,this.match(l.num)||this.match(l.string)){for(this.state.pos=this.state.start;this.state.pos<this.state.lineStart;)this.state.lineStart=this.input.lastIndexOf("\\n",this.state.lineStart-2)+1,--this.state.curLine;this.nextToken()}}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){const e=this.curContext();if((null==e?void 0:e.preserveSpace)||this.skipSpace(),this.state.octalPositions=[],this.state.start=this.state.pos,this.state.startLoc=this.state.curPosition(),this.state.pos>=this.length)return void this.finishToken(l.eof);const t=null==e?void 0:e.override;t?t(this):this.getTokenFromCode(this.input.codePointAt(this.state.pos))}pushComment(e,t,r,i,n,s){const a={type:e?"CommentBlock":"CommentLine",value:t,start:r,end:i,loc:new T(n,s)};this.options.tokens&&this.pushToken(a),this.state.comments.push(a),this.addComment(a)}skipBlockComment(){const e=this.state.curPosition(),t=this.state.pos,r=this.input.indexOf("*/",this.state.pos+2);if(-1===r)throw this.raise(t,S.UnterminatedComment);let i;for(this.state.pos=r+2,f.lastIndex=t;(i=f.exec(this.input))&&i.index<this.state.pos;)++this.state.curLine,this.state.lineStart=i.index+i[0].length;this.isLookahead||this.pushComment(!0,this.input.slice(t+2,r),t,this.state.pos,e,this.state.curPosition())}skipLineComment(e){const t=this.state.pos,r=this.state.curPosition();let i=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!isNewLine(i)&&++this.state.pos<this.length;)i=this.input.charCodeAt(this.state.pos);this.isLookahead||this.pushComment(!1,this.input.slice(t+e,this.state.pos),t,this.state.pos,r,this.state.curPosition())}skipSpace(){e:for(;this.state.pos<this.length;){const e=this.input.charCodeAt(this.state.pos);switch(e){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:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!isWhitespace(e))break e;++this.state.pos}}}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)}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const e=this.state.pos+1,t=this.input.charCodeAt(e);if(t>=48&&t<=57)throw this.raise(this.state.pos,S.UnexpectedDigitAfterHash);if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"hash"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,123===t?S.RecordExpressionHashIncorrectStartSyntaxType:S.TupleExpressionHashIncorrectStartSyntaxType);123===t?this.finishToken(l.braceHashL):this.finishToken(l.bracketHashL),this.state.pos+=2}else this.finishOp(l.hash,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(l.ellipsis)):(++this.state.pos,this.finishToken(l.dot))}readToken_slash(){if(this.state.exprAllowed&&!this.state.inType)return++this.state.pos,void this.readRegexp();61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(l.assign,2):this.finishOp(l.slash,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;!isNewLine(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(l.interpreterDirective,r),!0}readToken_mult_modulo(e){let t=42===e?l.star:l.modulo,r=1,i=this.input.charCodeAt(this.state.pos+1);const n=this.state.exprAllowed;42===e&&42===i&&(r++,i=this.input.charCodeAt(this.state.pos+2),t=l.exponent),61!==i||n||(r++,t=l.assign),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(l.pipeline,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,S.RecordExpressionBarIncorrectEndSyntaxType);return void this.finishOp(l.braceBarR,2)}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,S.TupleExpressionBarIncorrectEndSyntaxType);return void this.finishOp(l.bracketBarR,2)}}61!==t?this.finishOp(124===e?l.bitwiseOR:l.bitwiseAND,1):this.finishOp(l.assign,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(l.assign,3):this.finishOp(124===e?l.logicalOR:l.logicalAND,2)}readToken_caret(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(l.assign,2):this.finishOp(l.bitwiseXOR,1)}readToken_plus_min(e){const t=this.input.charCodeAt(this.state.pos+1);if(t===e)return 45!==t||this.inModule||62!==this.input.charCodeAt(this.state.pos+2)||0!==this.state.lastTokEnd&&!this.hasPrecedingLineBreak()?void this.finishOp(l.incDec,2):(this.skipLineComment(3),this.skipSpace(),void this.nextToken());61===t?this.finishOp(l.assign,2):this.finishOp(l.plusMin,1)}readToken_lt_gt(e){const t=this.input.charCodeAt(this.state.pos+1);let r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.state.pos+2)?3:2,61===this.input.charCodeAt(this.state.pos+r)?void this.finishOp(l.assign,r+1):void this.finishOp(l.bitShift,r)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.state.pos+2)||45!==this.input.charCodeAt(this.state.pos+3)?(61===t&&(r=2),void this.finishOp(l.relational,r)):(this.skipLineComment(4),this.skipSpace(),void this.nextToken())}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(l.arrow)):void this.finishOp(61===e?l.eq:l.bang,1);this.finishOp(l.equality,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(l.assign,3):this.finishOp(l.nullishCoalescing,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(l.question)):(this.state.pos+=2,this.finishToken(l.questionDot))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(l.parenL);case 41:return++this.state.pos,void this.finishToken(l.parenR);case 59:return++this.state.pos,void this.finishToken(l.semi);case 44:return++this.state.pos,void this.finishToken(l.comma);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,S.TupleExpressionBarIncorrectStartSyntaxType);this.finishToken(l.bracketBarL),this.state.pos+=2}else++this.state.pos,this.finishToken(l.bracketL);return;case 93:return++this.state.pos,void this.finishToken(l.bracketR);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,S.RecordExpressionBarIncorrectStartSyntaxType);this.finishToken(l.braceBarL),this.state.pos+=2}else++this.state.pos,this.finishToken(l.braceL);return;case 125:return++this.state.pos,void this.finishToken(l.braceR);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(l.doubleColon,2):(++this.state.pos,this.finishToken(l.colon)));case 63:return void this.readToken_question();case 96:return++this.state.pos,void this.finishToken(l.backQuote);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:case 62:return void this.readToken_lt_gt(e);case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(l.tilde,1);case 64:return++this.state.pos,void this.finishToken(l.at);case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(isIdentifierStart(e))return void this.readWord()}throw this.raise(this.state.pos,S.InvalidOrUnexpectedToken,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.pos;let t,r;for(;;){if(this.state.pos>=this.length)throw this.raise(e,S.UnterminatedRegExp);const i=this.input.charAt(this.state.pos);if(h.test(i))throw this.raise(e,S.UnterminatedRegExp);if(t)t=!1;else{if("["===i)r=!0;else if("]"===i&&r)r=!1;else if("/"===i&&!r)break;t="\\\\"===i}++this.state.pos}const i=this.input.slice(e,this.state.pos);++this.state.pos;let n="";for(;this.state.pos<this.length;){const e=this.input[this.state.pos],t=this.input.codePointAt(this.state.pos);if(ie.has(e))n.indexOf(e)>-1&&this.raise(this.state.pos+1,S.DuplicateRegExpFlags);else{if(!isIdentifierChar(t)&&92!==t)break;this.raise(this.state.pos+1,S.MalformedRegExpFlags)}++this.state.pos,n+=e}this.finishToken(l.regexp,{pattern:i,flags:n})}readInt(e,t,r,i=!0){const n=this.state.pos,s=16===e?ne.hex:ne.decBinOct,a=16===e?se.hex:10===e?se.dec:8===e?se.oct:se.bin;let o=!1,l=0;for(let n=0,c=null==t?1/0:t;n<c;++n){const t=this.input.charCodeAt(this.state.pos);let c;if(95!==t){if(c=t>=97?t-97+10:t>=65?t-65+10:_isDigit(t)?t-48:1/0,c>=e)if(this.options.errorRecovery&&c<=9)c=0,this.raise(this.state.start+n+2,S.InvalidDigit,e);else{if(!r)break;c=0,o=!0}++this.state.pos,l=l*e+c}else{const e=this.input.charCodeAt(this.state.pos-1),t=this.input.charCodeAt(this.state.pos+1);(-1===a.indexOf(t)||s.indexOf(e)>-1||s.indexOf(t)>-1||Number.isNaN(t))&&this.raise(this.state.pos,S.UnexpectedNumericSeparator),i||this.raise(this.state.pos,S.NumericSeparatorInEscapeSequence),++this.state.pos}}return this.state.pos===n||null!=t&&this.state.pos-n!==t||o?null:l}readRadixNumber(e){const t=this.state.pos;let r=!1;this.state.pos+=2;const i=this.readInt(e);null==i&&this.raise(this.state.start+2,S.InvalidDigit,e);const n=this.input.charCodeAt(this.state.pos);if(110===n)++this.state.pos,r=!0;else if(109===n)throw this.raise(t,S.InvalidDecimal);if(isIdentifierStart(this.input.codePointAt(this.state.pos)))throw this.raise(this.state.pos,S.NumberIdentifier);if(r){const e=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(l.bigint,e)}else this.finishToken(l.num,i)}readNumber(e){const t=this.state.pos;let r=!1,i=!1,n=!1,s=!1,a=!1;e||null!==this.readInt(10)||this.raise(t,S.InvalidNumber);const o=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(o){const e=this.input.slice(t,this.state.pos);if(this.state.strict)this.raise(t,S.StrictOctalLiteral);else{const r=e.indexOf("_");r>0&&this.raise(r+t,S.ZeroDigitNumericSeparator)}a=o&&!/[89]/.test(e)}let c=this.input.charCodeAt(this.state.pos);if(46!==c||a||(++this.state.pos,this.readInt(10),r=!0,c=this.input.charCodeAt(this.state.pos)),69!==c&&101!==c||a||(c=this.input.charCodeAt(++this.state.pos),43!==c&&45!==c||++this.state.pos,null===this.readInt(10)&&this.raise(t,S.InvalidOrMissingExponent),r=!0,s=!0,c=this.input.charCodeAt(this.state.pos)),110===c&&((r||o)&&this.raise(t,S.InvalidBigIntLiteral),++this.state.pos,i=!0),109===c&&(this.expectPlugin("decimal",this.state.pos),(s||o)&&this.raise(t,S.InvalidDecimal),++this.state.pos,n=!0),isIdentifierStart(this.input.codePointAt(this.state.pos)))throw this.raise(this.state.pos,S.NumberIdentifier);const u=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(i)return void this.finishToken(l.bigint,u);if(n)return void this.finishToken(l.decimal,u);const p=a?parseInt(u,8):parseFloat(u);this.finishToken(l.num,p)}readCodePoint(e){let t;if(123===this.input.charCodeAt(this.state.pos)){const r=++this.state.pos;if(t=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,!0,e),++this.state.pos,null!==t&&t>1114111){if(!e)return null;this.raise(r,S.InvalidCodePoint)}}else t=this.readHexChar(4,!1,e);return t}readString(e){let t="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,S.UnterminatedString);const i=this.input.charCodeAt(this.state.pos);if(i===e)break;if(92===i)t+=this.input.slice(r,this.state.pos),t+=this.readEscapedChar(!1),r=this.state.pos;else if(8232===i||8233===i)++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;else{if(isNewLine(i))throw this.raise(this.state.start,S.UnterminatedString);++this.state.pos}}t+=this.input.slice(r,this.state.pos++),this.finishToken(l.string,t)}readTmplToken(){let e="",t=this.state.pos,r=!1;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,S.UnterminatedTemplate);const i=this.input.charCodeAt(this.state.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(l.template)?36===i?(this.state.pos+=2,void this.finishToken(l.dollarBraceL)):(++this.state.pos,void this.finishToken(l.backQuote)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(l.template,r?null:e));if(92===i){e+=this.input.slice(t,this.state.pos);const i=this.readEscapedChar(!0);null===i?r=!0:e+=i,t=this.state.pos}else if(isNewLine(i)){switch(e+=this.input.slice(t,this.state.pos),++this.state.pos,i){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:e+="\\n";break;default:e+=String.fromCharCode(i)}++this.state.curLine,this.state.lineStart=this.state.pos,t=this.state.pos}else++this.state.pos}}readEscapedChar(e){const t=!e,r=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,r){case 110:return"\\n";case 114:return"\\r";case 120:{const e=this.readHexChar(2,!1,t);return null===e?null:String.fromCharCode(e)}case 117:{const e=this.readCodePoint(t);return null===e?null:String.fromCodePoint(e)}case 116:return"\\t";case 98:return"\\b";case 118:return"\\v";case 102:return"\\f";case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:this.state.lineStart=this.state.pos,++this.state.curLine;case 8232:case 8233:return"";case 56:case 57:if(e)return null;this.state.strict&&this.raise(this.state.pos-1,S.StrictNumericEscape);default:if(r>=48&&r<=55){const t=this.state.pos-1;let r=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.state.pos+=r.length-1;const n=this.input.charCodeAt(this.state.pos);if("0"!==r||56===n||57===n){if(e)return null;this.state.strict?this.raise(t,S.StrictNumericEscape):this.state.octalPositions.push(t)}return String.fromCharCode(i)}return String.fromCharCode(r)}}readHexChar(e,t,r){const i=this.state.pos,n=this.readInt(16,e,t,!1);return null===n&&(r?this.raise(i,S.InvalidEscapeSequence):this.state.pos=i-1),n}readWord1(){let e="";this.state.containsEsc=!1;const t=this.state.pos;let r=this.state.pos;for(;this.state.pos<this.length;){const i=this.input.codePointAt(this.state.pos);if(isIdentifierChar(i))this.state.pos+=i<=65535?1:2;else if(this.state.isIterator&&64===i)++this.state.pos;else{if(92!==i)break;{this.state.containsEsc=!0,e+=this.input.slice(r,this.state.pos);const i=this.state.pos,n=this.state.pos===t?isIdentifierStart:isIdentifierChar;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(this.state.pos,S.MissingUnicodeEscape);continue}++this.state.pos;const s=this.readCodePoint(!0);null!==s&&(n(s)||this.raise(i,S.EscapedCharNotAnIdentifier),e+=String.fromCodePoint(s)),r=this.state.pos}}}return e+this.input.slice(r,this.state.pos)}isIterator(e){return"@@iterator"===e||"@@asyncIterator"===e}readWord(){const e=this.readWord1(),t=o.get(e)||l.name;!this.state.isIterator||this.isIterator(e)&&this.state.inType||this.raise(this.state.pos,S.InvalidIdentifier,e),this.finishToken(t,e)}checkKeywordEscapes(){const e=this.state.type.keyword;e&&this.state.containsEsc&&this.raise(this.state.start,S.InvalidEscapedReservedWord,e)}braceIsBlock(e){const t=this.curContext();return t===v.functionExpression||t===v.functionStatement||(e!==l.colon||t!==v.braceStatement&&t!==v.braceExpression?e===l._return||e===l.name&&this.state.exprAllowed?this.hasPrecedingLineBreak():e===l._else||e===l.semi||e===l.eof||e===l.parenR||e===l.arrow||(e===l.braceL?t===v.braceStatement:e!==l._var&&e!==l._const&&e!==l.name&&(e===l.relational||!this.state.exprAllowed)):!t.isExpr)}updateContext(e){const t=this.state.type;let r;!t.keyword||e!==l.dot&&e!==l.questionDot?(r=t.updateContext)?r.call(this,e):this.state.exprAllowed=t.beforeExpr:this.state.exprAllowed=!1}}class le extends oe{addExtra(e,t,r){if(!e)return;(e.extra=e.extra||{})[t]=r}isRelational(e){return this.match(l.relational)&&this.state.value===e}expectRelational(e){this.isRelational(e)?this.next():this.unexpected(null,l.relational)}isContextual(e){return this.match(l.name)&&this.state.value===e&&!this.state.containsEsc}isUnparsedContextual(e,t){const r=e+t.length;return this.input.slice(e,r)===t&&(r===this.input.length||!isIdentifierChar(this.input.charCodeAt(r)))}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return this.isContextual(e)&&this.eat(l.name)}expectContextual(e,t){this.eatContextual(e)||this.unexpected(null,t)}canInsertSemicolon(){return this.match(l.eof)||this.match(l.braceR)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return h.test(this.input.slice(this.state.lastTokEnd,this.state.start))}isLineTerminator(){return this.eat(l.semi)||this.canInsertSemicolon()}semicolon(){this.isLineTerminator()||this.unexpected(null,l.semi)}expect(e,t){this.eat(e)||this.unexpected(t,e)}assertNoSpace(e="Unexpected space."){this.state.start>this.state.lastTokEnd&&this.raise(this.state.lastTokEnd,e)}unexpected(e,t="Unexpected token"){throw"string"!=typeof t&&(t=`Unexpected token, expected "${t.label}"`),this.raise(null!=e?e:this.state.start,t)}expectPlugin(e,t){if(!this.hasPlugin(e))throw this.raiseWithData(null!=t?t:this.state.start,{missingPlugin:[e]},`This experimental syntax requires enabling the parser plugin: \'${e}\'`);return!0}expectOnePlugin(e,t){if(!e.some((e=>this.hasPlugin(e))))throw this.raiseWithData(null!=t?t:this.state.start,{missingPlugin:e},`This experimental syntax requires enabling one of the following parser plugin(s): \'${e.join(", ")}\'`)}tryParse(e,t=this.state.clone()){const r={node:null};try{const i=e(((e=null)=>{throw r.node=e,r}));if(this.state.errors.length>t.errors.length){const e=this.state;return this.state=t,{node:i,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const i=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:i};if(e===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:i};throw e}}checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssign:r,doubleProto:i}=e;if(!t)return r>=0||i>=0;r>=0&&this.unexpected(r),i>=0&&this.raise(i,S.DuplicateProto)}isLiteralPropertyName(){return this.match(l.name)||!!this.state.type.keyword||this.match(l.string)||this.match(l.num)||this.match(l.bigint)||this.match(l.decimal)}}class ce{constructor(){this.shorthandAssign=-1,this.doubleProto=-1}}class ue{constructor(e,t,r){this.type=void 0,this.start=void 0,this.end=void 0,this.loc=void 0,this.range=void 0,this.leadingComments=void 0,this.trailingComments=void 0,this.innerComments=void 0,this.extra=void 0,this.type="",this.start=t,this.end=0,this.loc=new T(r),(null==e?void 0:e.options.ranges)&&(this.range=[t,0]),(null==e?void 0:e.filename)&&(this.loc.filename=e.filename)}__clone(){const e=new ue,t=Object.keys(this);for(let r=0,i=t.length;r<i;r++){const i=t[r];"leadingComments"!==i&&"trailingComments"!==i&&"innerComments"!==i&&(e[i]=this[i])}return e}}class pe extends le{startNode(){return new ue(this,this.state.start,this.state.startLoc)}startNodeAt(e,t){return new ue(this,e,t)}startNodeAtNode(e){return this.startNodeAt(e.start,e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEnd,this.state.lastTokEndLoc)}finishNodeAt(e,t,r,i){return e.type=t,e.end=r,e.loc.end=i,this.options.ranges&&(e.range[1]=r),this.processComment(e),e}resetStartLocation(e,t,r){e.start=t,e.loc.start=r,this.options.ranges&&(e.range[0]=t)}resetEndLocation(e,t=this.state.lastTokEnd,r=this.state.lastTokEndLoc){e.end=t,e.loc.end=r,this.options.ranges&&(e.range[1]=t)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.start,t.loc.start)}}const unwrapParenthesizedExpression=e=>"ParenthesizedExpression"===e.type?unwrapParenthesizedExpression(e.expression):e;class de extends pe{toAssignable(e){var t,r;let i;switch(("ParenthesizedExpression"===e.type||(null==(t=e.extra)?void 0:t.parenthesized))&&(i=unwrapParenthesizedExpression(e),"Identifier"!==i.type&&"MemberExpression"!==i.type&&this.raise(e.start,S.InvalidParenthesizedAssignment)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":e.type="ObjectPattern";for(let t=0,r=e.properties.length,i=r-1;t<r;t++){var n;const r=e.properties[t],s=t===i;this.toAssignableObjectExpressionProp(r,s),s&&"RestElement"===r.type&&(null==(n=e.extra)?void 0:n.trailingComma)&&this.raiseRestNotLast(e.extra.trailingComma)}break;case"ObjectProperty":this.toAssignable(e.value);break;case"SpreadElement":{this.checkToRestConversion(e),e.type="RestElement";const t=e.argument;this.toAssignable(t);break}case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,null==(r=e.extra)?void 0:r.trailingComma);break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,S.MissingEqInAssignment),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left);break;case"ParenthesizedExpression":this.toAssignable(i)}return e}toAssignableObjectExpressionProp(e,t){if("ObjectMethod"===e.type){const t="get"===e.kind||"set"===e.kind?S.PatternHasAccessor:S.PatternHasMethod;this.raise(e.key.start,t)}else"SpreadElement"!==e.type||t?this.toAssignable(e):this.raiseRestNotLast(e.start)}toAssignableList(e,t){let r=e.length;if(r){const i=e[r-1];if("RestElement"===(null==i?void 0:i.type))--r;else if("SpreadElement"===(null==i?void 0:i.type)){i.type="RestElement";const e=i.argument;this.toAssignable(e),"Identifier"!==e.type&&"MemberExpression"!==e.type&&"ArrayPattern"!==e.type&&"ObjectPattern"!==e.type&&this.unexpected(e.start),t&&this.raiseTrailingCommaAfterRest(t),--r}}for(let t=0;t<r;t++){const r=e[t];r&&(this.toAssignable(r),"RestElement"===r.type&&this.raiseRestNotLast(r.start))}return e}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(let t=0;t<e.length;t++){const r=e[t];"ArrayExpression"===(null==r?void 0:r.type)&&this.toReferencedListDeep(r.elements)}}parseSpread(e,t){const r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(e,void 0,t),this.finishNode(r,"SpreadElement")}parseRestBinding(){const e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case l.bracketL:{const e=this.startNode();return this.next(),e.elements=this.parseBindingList(l.bracketR,93,!0),this.finishNode(e,"ArrayPattern")}case l.braceL:return this.parseObjectLike(l.braceR,!0)}return this.parseIdentifier()}parseBindingList(e,t,r,i){const n=[];let s=!0;for(;!this.eat(e);)if(s?s=!1:this.expect(l.comma),r&&this.match(l.comma))n.push(null);else{if(this.eat(e))break;if(this.match(l.ellipsis)){n.push(this.parseAssignableListItemTypes(this.parseRestBinding())),this.checkCommaAfterRest(t),this.expect(e);break}{const e=[];for(this.match(l.at)&&this.hasPlugin("decorators")&&this.raise(this.state.start,S.UnsupportedParameterDecorator);this.match(l.at);)e.push(this.parseDecorator());n.push(this.parseAssignableListItem(i,e))}}return n}parseAssignableListItem(e,t){const r=this.parseMaybeDefault();this.parseAssignableListItemTypes(r);const i=this.parseMaybeDefault(r.start,r.loc.start,r);return t.length&&(r.decorators=t),i}parseAssignableListItemTypes(e){return e}parseMaybeDefault(e,t,r){var i,n,s;if(t=null!=(i=t)?i:this.state.startLoc,e=null!=(n=e)?n:this.state.start,r=null!=(s=r)?s:this.parseBindingAtom(),!this.eat(l.eq))return r;const a=this.startNodeAt(e,t);return a.left=r,a.right=this.parseMaybeAssignAllowIn(),this.finishNode(a,"AssignmentPattern")}checkLVal(e,t=64,r,i,n,s=!1){switch(e.type){case"Identifier":if(this.state.strict&&(s?isStrictBindReservedWord(e.name,this.inModule):isStrictBindOnlyReservedWord(e.name))&&this.raise(e.start,t===d?S.StrictEvalArguments:S.StrictEvalArgumentsBinding,e.name),r){const t=`_${e.name}`;r[t]?this.raise(e.start,S.ParamDupe):r[t]=!0}n&&"let"===e.name&&this.raise(e.start,S.LetInLexicalBinding),t&d||this.scope.declareName(e.name,t,e.start);break;case"MemberExpression":t!==d&&this.raise(e.start,S.InvalidPropertyBindingPattern);break;case"ObjectPattern":for(let i=0,s=e.properties;i<s.length;i++){let e=s[i];if("ObjectProperty"===e.type)e=e.value;else if("ObjectMethod"===e.type)continue;this.checkLVal(e,t,r,"object destructuring pattern",n)}break;case"ArrayPattern":for(let i=0,s=e.elements;i<s.length;i++){const e=s[i];e&&this.checkLVal(e,t,r,"array destructuring pattern",n)}break;case"AssignmentPattern":this.checkLVal(e.left,t,r,"assignment pattern");break;case"RestElement":this.checkLVal(e.argument,t,r,"rest element");break;case"ParenthesizedExpression":this.checkLVal(e.expression,t,r,"parenthesized expression");break;default:this.raise(e.start,t===d?S.InvalidLhs:S.InvalidLhsBinding,i)}}checkToRestConversion(e){"Identifier"!==e.argument.type&&"MemberExpression"!==e.argument.type&&this.raise(e.argument.start,S.InvalidRestAssignmentPattern)}checkCommaAfterRest(e){this.match(l.comma)&&(this.lookaheadCharCode()===e?this.raiseTrailingCommaAfterRest(this.state.start):this.raiseRestNotLast(this.state.start))}raiseRestNotLast(e){throw this.raise(e,S.ElementAfterRest)}raiseTrailingCommaAfterRest(e){this.raise(e,S.RestTrailingComma)}}class he{constructor(e=0){this.type=void 0,this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class fe extends he{constructor(e){super(e),this.errors=new Map}recordDeclarationError(e,t){this.errors.set(e,t)}clearDeclarationError(e){this.errors.delete(e)}iterateErrors(e){this.errors.forEach(e)}}class me{constructor(e){this.stack=[new he],this.raise=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const{stack:r}=this;let i=r.length-1,n=r[i];for(;!n.isCertainlyParameterDeclaration();){if(!n.canBeArrowParameterDeclaration())return;n.recordDeclarationError(e,t),n=r[--i]}this.raise(e,t)}recordAsyncArrowParametersError(e,t){const{stack:r}=this;let i=r.length-1,n=r[i];for(;n.canBeArrowParameterDeclaration();)2===n.type&&n.recordDeclarationError(e,t),n=r[--i]}validateAsPattern(){const{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(((t,r)=>{this.raise(r,t);let i=e.length-2,n=e[i];for(;n.canBeArrowParameterDeclaration();)n.clearDeclarationError(r),n=e[--i]}))}}function newExpressionScope(){return new he}class ye extends de{checkProto(e,t,r,i){if("SpreadElement"===e.type||"ObjectMethod"===e.type||e.computed||e.shorthand)return;const n=e.key;if("__proto__"===("Identifier"===n.type?n.name:n.value)){if(t)return void this.raise(n.start,S.RecordNoProto);r.used&&(i?-1===i.doubleProto&&(i.doubleProto=n.start):this.raise(n.start,S.DuplicateProto)),r.used=!0}}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&e.start===t}getExpression(){let e=0;this.hasPlugin("topLevelAwait")&&this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e),this.nextToken();const t=this.parseExpression();return this.match(l.eof)||this.unexpected(),t.comments=this.state.comments,t.errors=this.state.errors,t}parseExpression(e,t){return e?this.disallowInAnd((()=>this.parseExpressionBase(t))):this.allowInAnd((()=>this.parseExpressionBase(t)))}parseExpressionBase(e){const t=this.state.start,r=this.state.startLoc,i=this.parseMaybeAssign(e);if(this.match(l.comma)){const n=this.startNodeAt(t,r);for(n.expressions=[i];this.eat(l.comma);)n.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(n.expressions),this.finishNode(n,"SequenceExpression")}return i}parseMaybeAssignDisallowIn(e,t,r){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t,r)))}parseMaybeAssignAllowIn(e,t,r){return this.allowInAnd((()=>this.parseMaybeAssign(e,t,r)))}parseMaybeAssign(e,t,r){const i=this.state.start,n=this.state.startLoc;if(this.isContextual("yield")&&this.prodParam.hasYield){this.state.exprAllowed=!0;let e=this.parseYield();return t&&(e=t.call(this,e,i,n)),e}let s;e?s=!1:(e=new ce,s=!0),(this.match(l.parenL)||this.match(l.name))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(e,r);if(t&&(a=t.call(this,a,i,n)),this.state.type.isAssign){const t=this.startNodeAt(i,n),r=this.state.value;return t.operator=r,this.match(l.eq)?(t.left=this.toAssignable(a),e.doubleProto=-1):t.left=a,e.shorthandAssign>=t.left.start&&(e.shorthandAssign=-1),this.checkLVal(a,void 0,void 0,"assignment expression"),this.next(),t.right=this.parseMaybeAssign(),this.finishNode(t,"AssignmentExpression")}return s&&this.checkExpressionErrors(e,!0),a}parseMaybeConditional(e,t){const r=this.state.start,i=this.state.startLoc,n=this.state.potentialArrowAt,s=this.parseExprOps(e);return this.shouldExitDescending(s,n)?s:this.parseConditional(s,r,i,t)}parseConditional(e,t,r,i){if(this.eat(l.question)){const i=this.startNodeAt(t,r);return i.test=e,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(l.colon),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return e}parseExprOps(e){const t=this.state.start,r=this.state.startLoc,i=this.state.potentialArrowAt,n=this.parseMaybeUnary(e);return this.shouldExitDescending(n,i)?n:this.parseExprOp(n,t,r,-1)}parseExprOp(e,t,r,i){let n=this.state.type.binop;if(null!=n&&(this.prodParam.hasIn||!this.match(l._in))&&n>i){const s=this.state.type;if(s===l.pipeline){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.state.inPipeline=!0,this.checkPipelineAtInfixOperator(e,t)}const a=this.startNodeAt(t,r);a.left=e,a.operator=this.state.value,s!==l.exponent||"UnaryExpression"!==e.type||!this.options.createParenthesizedExpressions&&e.extra&&e.extra.parenthesized||this.raise(e.argument.start,S.UnexpectedTokenUnaryExponentiation);const o=s===l.logicalOR||s===l.logicalAND,c=s===l.nullishCoalescing;if(c&&(n=l.logicalAND.binop),this.next(),s===l.pipeline&&"minimal"===this.getPluginOption("pipelineOperator","proposal")&&this.match(l.name)&&"await"===this.state.value&&this.prodParam.hasAwait)throw this.raise(this.state.start,S.UnexpectedAwaitAfterPipelineBody);a.right=this.parseExprOpRightExpr(s,n),this.finishNode(a,o||c?"LogicalExpression":"BinaryExpression");const u=this.state.type;if(c&&(u===l.logicalOR||u===l.logicalAND)||o&&u===l.nullishCoalescing)throw this.raise(this.state.start,S.MixingCoalesceWithLogical);return this.parseExprOp(a,t,r,i)}return e}parseExprOpRightExpr(e,t){const r=this.state.start,i=this.state.startLoc;if(e===l.pipeline)switch(this.getPluginOption("pipelineOperator","proposal")){case"smart":return this.withTopicPermittingContext((()=>this.parseSmartPipelineBody(this.parseExprOpBaseRightExpr(e,t),r,i)));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){const r=this.state.start,i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnary(),r,i,e.rightAssociative?t-1:t)}parseMaybeUnary(e){if(this.isContextual("await")&&this.isAwaitAllowed())return this.parseAwait();const t=this.match(l.incDec),r=this.startNode();if(this.state.type.prefix){r.operator=this.state.value,r.prefix=!0,this.match(l._throw)&&this.expectPlugin("throwExpressions");const i=this.match(l._delete);if(this.next(),r.argument=this.parseMaybeUnary(),this.checkExpressionErrors(e,!0),this.state.strict&&i){const e=r.argument;"Identifier"===e.type?this.raise(r.start,S.StrictDelete):"MemberExpression"!==e.type&&"OptionalMemberExpression"!==e.type||"PrivateName"!==e.property.type||this.raise(r.start,S.DeletePrivateField)}if(!t)return this.finishNode(r,"UnaryExpression")}return this.parseUpdate(r,t,e)}parseUpdate(e,t,r){if(t)return this.checkLVal(e.argument,void 0,void 0,"prefix operation"),this.finishNode(e,"UpdateExpression");const i=this.state.start,n=this.state.startLoc;let s=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return s;for(;this.state.type.postfix&&!this.canInsertSemicolon();){const e=this.startNodeAt(i,n);e.operator=this.state.value,e.prefix=!1,e.argument=s,this.checkLVal(s,void 0,void 0,"postfix operation"),this.next(),s=this.finishNode(e,"UpdateExpression")}return s}parseExprSubscripts(e){const t=this.state.start,r=this.state.startLoc,i=this.state.potentialArrowAt,n=this.parseExprAtom(e);return this.shouldExitDescending(n,i)?n:this.parseSubscripts(n,t,r)}parseSubscripts(e,t,r,i){const n={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,r,i,n),n.maybeAsyncArrow=!1}while(!n.stop);return e}parseSubscript(e,t,r,i,n){if(!i&&this.eat(l.doubleColon))return this.parseBind(e,t,r,i,n);if(this.match(l.backQuote))return this.parseTaggedTemplateExpression(e,t,r,n);let s=!1;if(this.match(l.questionDot)){if(n.optionalChainMember=s=!0,i&&40===this.lookaheadCharCode())return n.stop=!0,e;this.next()}return!i&&this.match(l.parenL)?this.parseCoverCallAndAsyncArrowHead(e,t,r,n,s):s||this.match(l.bracketL)||this.eat(l.dot)?this.parseMember(e,t,r,n,s):(n.stop=!0,e)}parseMember(e,t,r,i,n){const s=this.startNodeAt(t,r),a=this.eat(l.bracketL);s.object=e,s.computed=a;const o=a?this.parseExpression():this.parseMaybePrivateName(!0);return"PrivateName"===o.type&&("Super"===s.object.type&&this.raise(t,S.SuperPrivateField),this.classScope.usePrivateName(o.id.name,o.start)),s.property=o,a&&this.expect(l.bracketR),i.optionalChainMember?(s.optional=n,this.finishNode(s,"OptionalMemberExpression")):this.finishNode(s,"MemberExpression")}parseBind(e,t,r,i,n){const s=this.startNodeAt(t,r);return s.object=e,s.callee=this.parseNoCallExpr(),n.stop=!0,this.parseSubscripts(this.finishNode(s,"BindExpression"),t,r,i)}parseCoverCallAndAsyncArrowHead(e,t,r,i,n){const s=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0,this.next();let a=this.startNodeAt(t,r);return a.callee=e,i.maybeAsyncArrow&&this.expressionScope.enter(new fe(2)),i.optionalChainMember&&(a.optional=n),a.arguments=n?this.parseCallExpressionArguments(l.parenR,!1):this.parseCallExpressionArguments(l.parenR,i.maybeAsyncArrow,"Import"===e.type,"Super"!==e.type,a),this.finishCallExpression(a,i.optionalChainMember),i.maybeAsyncArrow&&this.shouldParseAsyncArrow()&&!n?(i.stop=!0,this.expressionScope.validateAsPattern(),this.expressionScope.exit(),a=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t,r),a)):(i.maybeAsyncArrow&&this.expressionScope.exit(),this.toReferencedArguments(a)),this.state.maybeInArrowParameters=s,a}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r,i){const n=this.startNodeAt(t,r);return n.tag=e,n.quasi=this.parseTemplate(!0),i.optionalChainMember&&this.raise(t,S.OptionalChainingNoTemplate),this.finishNode(n,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&e.start===this.state.potentialArrowAt}finishCallExpression(e,t){if("Import"===e.callee.type)if(2===e.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),0===e.arguments.length||e.arguments.length>2)this.raise(e.start,S.ImportCallArity,this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?"one or two arguments":"one argument");else for(let t=0,r=e.arguments;t<r.length;t++){const e=r[t];"SpreadElement"===e.type&&this.raise(e.start,S.ImportCallSpreadArgument)}return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r,i,n){const s=[];let a,o=!0;const c=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(o)o=!1;else if(this.expect(l.comma),this.match(e)){!r||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(this.state.lastTokStart,S.ImportCallArgumentTrailingComma),n&&this.addExtra(n,"trailingComma",this.state.lastTokStart),this.next();break}this.match(l.parenL)&&!a&&(a=this.state.start),s.push(this.parseExprListItem(!1,t?new ce:void 0,t?{start:0}:void 0,i))}return t&&a&&this.shouldParseAsyncArrow()&&this.unexpected(),this.state.inFSharpPipelineDirectBody=c,s}shouldParseAsyncArrow(){return this.match(l.arrow)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var r;return this.expect(l.arrow),this.parseArrowExpression(e,t.arguments,!0,null==(r=t.extra)?void 0:r.trailingComma),e}parseNoCallExpr(){const e=this.state.start,t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,t,!0)}parseExprAtom(e){this.state.type===l.slash&&this.readRegexp();const t=this.state.potentialArrowAt===this.state.start;let r;switch(this.state.type){case l._super:return this.parseSuper();case l._import:return r=this.startNode(),this.next(),this.match(l.dot)?this.parseImportMetaProperty(r):(this.match(l.parenL)||this.raise(this.state.lastTokStart,S.UnsupportedImport),this.finishNode(r,"Import"));case l._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case l.name:{const e=this.state.containsEsc,r=this.parseIdentifier();if(!e&&"async"===r.name&&!this.canInsertSemicolon()){if(this.match(l._function)){const e=this.state.context.length-1;if(this.state.context[e]!==v.functionStatement)throw new Error("Internal error");return this.state.context[e]=v.functionExpression,this.next(),this.parseFunction(this.startNodeAtNode(r),void 0,!0)}if(this.match(l.name))return this.parseAsyncArrowUnaryFunction(r)}return t&&this.match(l.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(r),[r],!1)):r}case l._do:return this.parseDo();case l.regexp:{const e=this.state.value;return r=this.parseLiteral(e.value,"RegExpLiteral"),r.pattern=e.pattern,r.flags=e.flags,r}case l.num:return this.parseLiteral(this.state.value,"NumericLiteral");case l.bigint:return this.parseLiteral(this.state.value,"BigIntLiteral");case l.decimal:return this.parseLiteral(this.state.value,"DecimalLiteral");case l.string:return this.parseLiteral(this.state.value,"StringLiteral");case l._null:return r=this.startNode(),this.next(),this.finishNode(r,"NullLiteral");case l._true:case l._false:return this.parseBooleanLiteral();case l.parenL:return this.parseParenAndDistinguishExpression(t);case l.bracketBarL:case l.bracketHashL:return this.parseArrayLike(this.state.type===l.bracketBarL?l.bracketBarR:l.bracketR,!1,!0,e);case l.bracketL:return this.parseArrayLike(l.bracketR,!0,!1,e);case l.braceBarL:case l.braceHashL:return this.parseObjectLike(this.state.type===l.braceBarL?l.braceBarR:l.braceR,!1,!0,e);case l.braceL:return this.parseObjectLike(l.braceR,!1,!1,e);case l._function:return this.parseFunctionOrFunctionSent();case l.at:this.parseDecorators();case l._class:return r=this.startNode(),this.takeDecorators(r),this.parseClass(r,!1);case l._new:return this.parseNewOrNewTarget();case l.backQuote:return this.parseTemplate(!1);case l.doubleColon:{r=this.startNode(),this.next(),r.object=null;const e=r.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(r,"BindExpression");throw this.raise(e.start,S.UnsupportedBind)}case l.hash:{if(this.state.inPipeline)return r=this.startNode(),"smart"!==this.getPluginOption("pipelineOperator","proposal")&&this.raise(r.start,S.PrimaryTopicRequiresSmartPipeline),this.next(),this.primaryTopicReferenceIsAllowedInCurrentTopicContext()||this.raise(r.start,S.PrimaryTopicNotAllowed),this.registerTopicReference(),this.finishNode(r,"PipelinePrimaryTopicReference");const e=this.input.codePointAt(this.state.end);if(isIdentifierStart(e)||92===e){const e=this.state.start;if(r=this.parseMaybePrivateName(!0),this.match(l._in))this.expectPlugin("privateIn"),this.classScope.usePrivateName(r.id.name,r.start);else{if(!this.hasPlugin("privateIn"))throw this.unexpected(e);this.raise(this.state.start,S.PrivateInExpectedIn,r.id.name)}return r}}case l.relational:if("<"===this.state.value){const e=this.input.codePointAt(this.nextTokenStart());(isIdentifierStart(e)||62===e)&&this.expectOnePlugin(["jsx","flow","typescript"])}default:throw this.unexpected()}}parseAsyncArrowUnaryFunction(e){const t=this.startNodeAtNode(e);this.prodParam.enter(functionFlags(!0,this.prodParam.hasYield));const r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(this.state.pos,S.LineTerminatorBeforeArrow),this.expect(l.arrow),this.parseArrowExpression(t,r,!0),t}parseDo(){this.expectPlugin("doExpressions");const e=this.startNode();this.next();const t=this.state.labels;return this.state.labels=[],e.body=this.parseBlock(),this.state.labels=t,this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();return this.next(),!this.match(l.parenL)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(e.start,S.UnexpectedSuper):this.raise(e.start,S.SuperNotAllowed),this.match(l.parenL)||this.match(l.bracketL)||this.match(l.dot)||this.raise(e.start,S.UnsupportedSuper),this.finishNode(e,"Super")}parseBooleanLiteral(){const e=this.startNode();return e.value=this.match(l._true),this.next(),this.finishNode(e,"BooleanLiteral")}parseMaybePrivateName(e){if(this.match(l.hash)){this.expectOnePlugin(["classPrivateProperties","classPrivateMethods"]),e||this.raise(this.state.pos,S.UnexpectedPrivateField);const t=this.startNode();return this.next(),this.assertNoSpace("Unexpected space between # and identifier"),t.id=this.parseIdentifier(!0),this.finishNode(t,"PrivateName")}return this.parseIdentifier(!0)}parseFunctionOrFunctionSent(){const e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(l.dot)){const t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,r){e.meta=t,"function"===t.name&&"sent"===r&&(this.isContextual(r)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected());const i=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||i)&&this.raise(e.property.start,S.UnsupportedMetaProperty,t.name,r),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){const t=this.createIdentifier(this.startNodeAtNode(e),"import");return this.next(),this.isContextual("meta")&&(this.inModule||this.raiseWithData(t.start,{code:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},S.ImportMetaOutsideModule),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")}parseLiteral(e,t,r,i){r=r||this.state.start,i=i||this.state.startLoc;const n=this.startNodeAt(r,i);return this.addExtra(n,"rawValue",e),this.addExtra(n,"raw",this.input.slice(r,this.state.end)),n.value=e,this.next(),this.finishNode(n,t)}parseParenAndDistinguishExpression(e){const t=this.state.start,r=this.state.startLoc;let i;this.next(),this.expressionScope.enter(new fe(1));const n=this.state.maybeInArrowParameters,s=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const a=this.state.start,o=this.state.startLoc,c=[],u=new ce,p={start:0};let d,h,f=!0;for(;!this.match(l.parenR);){if(f)f=!1;else if(this.expect(l.comma,p.start||null),this.match(l.parenR)){h=this.state.start;break}if(this.match(l.ellipsis)){const e=this.state.start,t=this.state.startLoc;d=this.state.start,c.push(this.parseParenItem(this.parseRestBinding(),e,t)),this.checkCommaAfterRest(41);break}c.push(this.parseMaybeAssignAllowIn(u,this.parseParenItem,p))}const m=this.state.lastTokEnd,y=this.state.lastTokEndLoc;this.expect(l.parenR),this.state.maybeInArrowParameters=n,this.state.inFSharpPipelineDirectBody=s;let T=this.startNodeAt(t,r);if(e&&this.shouldParseArrow()&&(T=this.parseArrow(T))){this.expressionScope.validateAsPattern(),this.expressionScope.exit();for(let e=0;e<c.length;e++){const t=c[e];t.extra&&t.extra.parenthesized&&this.unexpected(t.extra.parenStart)}return this.parseArrowExpression(T,c,!1),T}if(this.expressionScope.exit(),c.length||this.unexpected(this.state.lastTokStart),h&&this.unexpected(h),d&&this.unexpected(d),this.checkExpressionErrors(u,!0),p.start&&this.unexpected(p.start),this.toReferencedListDeep(c,!0),c.length>1?(i=this.startNodeAt(a,o),i.expressions=c,this.finishNodeAt(i,"SequenceExpression",m,y)):i=c[0],!this.options.createParenthesizedExpressions)return this.addExtra(i,"parenthesized",!0),this.addExtra(i,"parenStart",t),i;const g=this.startNodeAt(t,r);return g.expression=i,this.finishNode(g,"ParenthesizedExpression"),g}shouldParseArrow(){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(l.arrow))return e}parseParenItem(e,t,r){return e}parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.match(l.dot)){const t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const r=this.parseMetaProperty(e,t,"target");if(!this.scope.inNonArrowFunction&&!this.scope.inClass){let e=S.UnexpectedNewTarget;this.hasPlugin("classProperties")&&(e+=" or class properties"),this.raise(r.start,e)}return r}return this.parseNew(e)}parseNew(e){return e.callee=this.parseNoCallExpr(),"Import"===e.callee.type?this.raise(e.callee.start,S.ImportCallNotNewExpression):"OptionalMemberExpression"===e.callee.type||"OptionalCallExpression"===e.callee.type?this.raise(this.state.lastTokEnd,S.OptionalChainingNoNew):this.eat(l.questionDot)&&this.raise(this.state.start,S.OptionalChainingNoNew),this.parseNewArguments(e),this.finishNode(e,"NewExpression")}parseNewArguments(e){if(this.eat(l.parenL)){const t=this.parseExprList(l.parenR);this.toReferencedList(t),e.arguments=t}else e.arguments=[]}parseTemplateElement(e){const t=this.startNode();return null===this.state.value&&(e||this.raise(this.state.start+1,S.InvalidEscapeSequenceTemplate)),t.value={raw:this.input.slice(this.state.start,this.state.end).replace(/\\r\\n?/g,"\\n"),cooked:this.state.value},this.next(),t.tail=this.match(l.backQuote),this.finishNode(t,"TemplateElement")}parseTemplate(e){const t=this.startNode();this.next(),t.expressions=[];let r=this.parseTemplateElement(e);for(t.quasis=[r];!r.tail;)this.expect(l.dollarBraceL),t.expressions.push(this.parseTemplateSubstitution()),this.expect(l.braceR),t.quasis.push(r=this.parseTemplateElement(e));return this.next(),this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,i){r&&this.expectPlugin("recordAndTuple");const n=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(l.comma),this.match(e)){this.addExtra(o,"trailingComma",this.state.lastTokStart);break}const n=this.parsePropertyDefinition(t,i);t||this.checkProto(n,r,s,i),r&&"ObjectProperty"!==n.type&&"SpreadElement"!==n.type&&this.raise(n.start,S.InvalidRecordProperty),n.shorthand&&this.addExtra(n,"shorthand",!0),o.properties.push(n)}this.state.exprAllowed=!1,this.next(),this.state.inFSharpPipelineDirectBody=n;let c="ObjectExpression";return t?c="ObjectPattern":r&&(c="RecordExpression"),this.finishNode(o,c)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(l.bracketL)||this.match(l.star))}parsePropertyDefinition(e,t){let r=[];if(this.match(l.at))for(this.hasPlugin("decorators")&&this.raise(this.state.start,S.UnsupportedPropertyDecorator);this.match(l.at);)r.push(this.parseDecorator());const i=this.startNode();let n,s,a=!1,o=!1,c=!1;if(this.match(l.ellipsis))return r.length&&this.unexpected(),e?(this.next(),i.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(i,"RestElement")):this.parseSpread();r.length&&(i.decorators=r,r=[]),i.method=!1,(e||t)&&(n=this.state.start,s=this.state.startLoc),e||(a=this.eat(l.star));const u=this.state.containsEsc,p=this.parsePropertyName(i,!1);if(!e&&!a&&!u&&this.maybeAsyncOrAccessorProp(i)){const e=p.name;"async"!==e||this.hasPrecedingLineBreak()||(o=!0,a=this.eat(l.star),this.parsePropertyName(i,!1)),"get"!==e&&"set"!==e||(c=!0,i.kind=e,this.match(l.star)&&(a=!0,this.raise(this.state.pos,S.AccessorIsGenerator,e),this.next()),this.parsePropertyName(i,!1))}return this.parseObjPropValue(i,n,s,a,o,e,c,t),i}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const r=this.getGetterSetterExpectedParamCount(e),i=this.getObjectOrClassMethodParams(e),n=e.start;i.length!==r&&("get"===e.kind?this.raise(n,S.BadGetterArity):this.raise(n,S.BadSetterArity)),"set"===e.kind&&"RestElement"===(null==(t=i[i.length-1])?void 0:t.type)&&this.raise(n,S.BadSetterRestParameter)}parseObjectMethod(e,t,r,i,n){return n?(this.parseMethod(e,t,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(e),e):r||t||this.match(l.parenL)?(i&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")):void 0}parseObjectProperty(e,t,r,i,n){return e.shorthand=!1,this.eat(l.colon)?(e.value=i?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(n),this.finishNode(e,"ObjectProperty")):e.computed||"Identifier"!==e.key.type?void 0:(this.checkReservedWord(e.key.name,e.key.start,!0,!1),i?e.value=this.parseMaybeDefault(t,r,e.key.__clone()):this.match(l.eq)&&n?(-1===n.shorthandAssign&&(n.shorthandAssign=this.state.start),e.value=this.parseMaybeDefault(t,r,e.key.__clone())):e.value=e.key.__clone(),e.shorthand=!0,this.finishNode(e,"ObjectProperty"))}parseObjPropValue(e,t,r,i,n,s,a,o){const l=this.parseObjectMethod(e,i,n,s,a)||this.parseObjectProperty(e,t,r,s,o);return l||this.unexpected(),l}parsePropertyName(e,t){if(this.eat(l.bracketL))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(l.bracketR);else{const r=this.state.inPropertyName;this.state.inPropertyName=!0,e.key=this.match(l.num)||this.match(l.string)||this.match(l.bigint)||this.match(l.decimal)?this.parseExprAtom():this.parseMaybePrivateName(t),"PrivateName"!==e.key.type&&(e.computed=!1),this.state.inPropertyName=r}return e.key}initFunction(e,t){e.id=null,e.generator=!1,e.async=!!t}parseMethod(e,t,r,i,n,s,a=!1){this.initFunction(e,r),e.generator=!!t;const o=i;return this.scope.enter(18|(a?64:0)|(n?32:0)),this.prodParam.enter(functionFlags(r,e.generator)),this.parseFunctionParams(e,o),this.parseFunctionBodyAndFinish(e,s,!0),this.prodParam.exit(),this.scope.exit(),e}parseArrayLike(e,t,r,i){r&&this.expectPlugin("recordAndTuple");const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const s=this.startNode();return this.next(),s.elements=this.parseExprList(e,!r,i,s),this.state.inFSharpPipelineDirectBody=n,this.finishNode(s,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,i){this.scope.enter(6);let n=functionFlags(r,!1);!this.match(l.bracketL)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(e,r);const s=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,i)),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){e.params=this.toAssignableList(t,r)}parseFunctionBodyAndFinish(e,t,r=!1){this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}parseFunctionBody(e,t,r=!1){const i=t&&!this.match(l.braceL);if(this.expressionScope.enter(newExpressionScope()),i)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{const i=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,(n=>{const s=!this.isSimpleParamList(e.params);if(n&&s){const t="method"!==e.kind&&"constructor"!==e.kind||!e.key?e.start:e.key.end;this.raise(t,S.IllegalLanguageModeDirective)}const a=!i&&this.state.strict;this.checkParams(e,!(this.state.strict||t||r||s),t,a),this.state.strict&&e.id&&this.checkLVal(e.id,65,void 0,"function name",void 0,a)})),this.prodParam.exit(),this.expressionScope.exit(),this.state.labels=n}}isSimpleParamList(e){for(let t=0,r=e.length;t<r;t++)if("Identifier"!==e[t].type)return!1;return!0}checkParams(e,t,r,i=!0){const n=Object.create(null);for(let r=0;r<e.params.length;r++)this.checkLVal(e.params[r],5,t?null:n,"function parameter list",void 0,i)}parseExprList(e,t,r,i){const n=[];let s=!0;for(;!this.eat(e);){if(s)s=!1;else if(this.expect(l.comma),this.match(e)){i&&this.addExtra(i,"trailingComma",this.state.lastTokStart),this.next();break}n.push(this.parseExprListItem(t,r))}return n}parseExprListItem(e,t,r,i){let n;if(this.match(l.comma))e||this.raise(this.state.pos,S.UnexpectedToken,","),n=null;else if(this.match(l.ellipsis)){const e=this.state.start,i=this.state.startLoc;n=this.parseParenItem(this.parseSpread(t,r),e,i)}else if(this.match(l.question)){this.expectPlugin("partialApplication"),i||this.raise(this.state.start,S.UnexpectedArgumentPlaceholder);const e=this.startNode();this.next(),n=this.finishNode(e,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowIn(t,this.parseParenItem,r);return n}parseIdentifier(e){const t=this.startNode(),r=this.parseIdentifierName(t.start,e);return this.createIdentifier(t,r)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}parseIdentifierName(e,t){let r;const{start:i,type:n}=this.state;if(n===l.name)r=this.state.value;else{if(!n.keyword)throw this.unexpected();{r=n.keyword;const e=this.curContext();n!==l._class&&n!==l._function||e!==v.functionStatement&&e!==v.functionExpression||this.state.context.pop()}}return t?this.state.type=l.name:this.checkReservedWord(r,i,!!n.keyword,!1),this.next(),r}checkReservedWord(e,t,r,i){if(this.prodParam.hasYield&&"yield"===e)return void this.raise(t,S.YieldBindingIdentifier);if("await"===e){if(this.prodParam.hasAwait)return void this.raise(t,S.AwaitBindingIdentifier);this.expressionScope.recordAsyncArrowParametersError(t,S.AwaitBindingIdentifier)}if(this.scope.inClass&&!this.scope.inNonArrowFunction&&"arguments"===e)return void this.raise(t,S.ArgumentsInClass);if(r&&isKeyword(e))return void this.raise(t,S.UnexpectedKeyword,e);(this.state.strict?i?isStrictBindReservedWord:isStrictReservedWord:isReservedWord)(e,this.inModule)&&(this.prodParam.hasAwait||"await"!==e?this.raise(t,S.UnexpectedReservedWord,e):this.raise(t,this.hasPlugin("topLevelAwait")?S.AwaitNotInAsyncContext:S.AwaitNotInAsyncFunction))}isAwaitAllowed(){return this.scope.inFunction?this.prodParam.hasAwait:!!this.options.allowAwaitOutsideFunction||!!this.hasPlugin("topLevelAwait")&&(this.inModule&&this.prodParam.hasAwait)}parseAwait(){const e=this.startNode();return this.next(),this.expressionScope.recordParameterInitializerError(e.start,S.AwaitExpressionFormalParameter),this.eat(l.star)&&this.raise(e.start,S.ObsoleteAwaitStar),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.hasPrecedingLineBreak()||this.match(l.plusMin)||this.match(l.parenL)||this.match(l.bracketL)||this.match(l.backQuote)||this.match(l.regexp)||this.match(l.slash)||this.hasPlugin("v8intrinsic")&&this.match(l.modulo)?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(e.argument=this.parseMaybeUnary()),this.finishNode(e,"AwaitExpression")}parseYield(){const e=this.startNode();return this.expressionScope.recordParameterInitializerError(e.start,S.YieldInParameter),this.next(),this.match(l.semi)||!this.match(l.star)&&!this.state.type.startsExpr||this.hasPrecedingLineBreak()?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(l.star),e.argument=this.parseMaybeAssign()),this.finishNode(e,"YieldExpression")}checkPipelineAtInfixOperator(e,t){"smart"===this.getPluginOption("pipelineOperator","proposal")&&"SequenceExpression"===e.type&&this.raise(t,S.PipelineHeadSequenceExpression)}parseSmartPipelineBody(e,t,r){return this.checkSmartPipelineBodyEarlyErrors(e,t),this.parseSmartPipelineBodyInStyle(e,t,r)}checkSmartPipelineBodyEarlyErrors(e,t){if(this.match(l.arrow))throw this.raise(this.state.start,S.PipelineBodyNoArrow);"SequenceExpression"===e.type&&this.raise(t,S.PipelineBodySequenceExpression)}parseSmartPipelineBodyInStyle(e,t,r){const i=this.startNodeAt(t,r),n=this.isSimpleReference(e);return n?i.callee=e:(this.topicReferenceWasUsedInCurrentTopicContext()||this.raise(t,S.PipelineTopicUnused),i.expression=e),this.finishNode(i,n?"PipelineBareFunction":"PipelineTopicExpression")}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}withTopicPermittingContext(e){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withTopicForbiddingContext(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}primaryTopicReferenceIsAllowedInCurrentTopicContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentTopicContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.start,r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const n=this.parseExprOp(this.parseMaybeUnary(),t,r,e);return this.state.inFSharpPipelineDirectBody=i,n}}const Te={kind:"loop"},ge={kind:"switch"},be=/[\\uD800-\\uDFFF]/u;class Se extends ye{parseTopLevel(e,t){if(t.sourceType=this.options.sourceType,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,l.eof),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let e=0,t=Array.from(this.scope.undefinedExports);e<t.length;e++){const[r]=t[e],i=this.scope.undefinedExports.get(r);this.raise(i,S.ModuleExportUndefined,r)}return e.program=this.finishNode(t,"Program"),e.comments=this.state.comments,this.options.tokens&&(e.tokens=this.tokens),this.finishNode(e,"File")}stmtToDirective(e){const t=e.expression,r=this.startNodeAt(t.start,t.loc.start),i=this.startNodeAt(e.start,e.loc.start),n=this.input.slice(t.start,t.end),s=r.value=n.slice(1,-1);return this.addExtra(r,"raw",n),this.addExtra(r,"rawValue",s),i.value=this.finishNodeAt(r,"DirectiveLiteral",t.end,t.loc.end),this.finishNodeAt(i,"Directive",e.end,e.loc.end)}parseInterpreterDirective(){if(!this.match(l.interpreterDirective))return null;const e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(e){if(!this.isContextual("let"))return!1;const t=this.nextTokenStart(),r=this.input.charCodeAt(t);if(91===r)return!0;if(e)return!1;if(123===r)return!0;if(isIdentifierStart(r)){let e=t+1;for(;isIdentifierChar(this.input.charCodeAt(e));)++e;const r=this.input.slice(t,e);if(!B.test(r))return!0}return!1}parseStatement(e,t){return this.match(l.at)&&this.parseDecorators(!0),this.parseStatementContent(e,t)}parseStatementContent(e,t){let r=this.state.type;const i=this.startNode();let n;switch(this.isLet(e)&&(r=l._var,n="let"),r){case l._break:case l._continue:return this.parseBreakContinueStatement(i,r.keyword);case l._debugger:return this.parseDebuggerStatement(i);case l._do:return this.parseDoStatement(i);case l._for:return this.parseForStatement(i);case l._function:if(46===this.lookaheadCharCode())break;return e&&(this.state.strict?this.raise(this.state.start,S.StrictFunction):"if"!==e&&"label"!==e&&this.raise(this.state.start,S.SloppyFunction)),this.parseFunctionStatement(i,!1,!e);case l._class:return e&&this.unexpected(),this.parseClass(i,!0);case l._if:return this.parseIfStatement(i);case l._return:return this.parseReturnStatement(i);case l._switch:return this.parseSwitchStatement(i);case l._throw:return this.parseThrowStatement(i);case l._try:return this.parseTryStatement(i);case l._const:case l._var:return n=n||this.state.value,e&&"var"!==n&&this.raise(this.state.start,S.UnexpectedLexicalDeclaration),this.parseVarStatement(i,n);case l._while:return this.parseWhileStatement(i);case l._with:return this.parseWithStatement(i);case l.braceL:return this.parseBlock();case l.semi:return this.parseEmptyStatement(i);case l._import:{const e=this.lookaheadCharCode();if(40===e||46===e)break}case l._export:{let e;return this.options.allowImportExportEverywhere||t||this.raise(this.state.start,S.UnexpectedImportExport),this.next(),r===l._import?(e=this.parseImport(i),"ImportDeclaration"!==e.type||e.importKind&&"value"!==e.importKind||(this.sawUnambiguousESM=!0)):(e=this.parseExport(i),("ExportNamedDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&("ExportAllDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&"ExportDefaultDeclaration"!==e.type||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(i),e}default:if(this.isAsyncFunction())return e&&this.raise(this.state.start,S.AsyncFunctionInSingleStatementContext),this.next(),this.parseFunctionStatement(i,!0,!e)}const s=this.state.value,a=this.parseExpression();return r===l.name&&"Identifier"===a.type&&this.eat(l.colon)?this.parseLabeledStatement(i,s,a,e):this.parseExpressionStatement(i,a)}assertModuleNodeAllowed(e){this.options.allowImportExportEverywhere||this.inModule||this.raiseWithData(e.start,{code:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},S.ImportOutsideModule)}takeDecorators(e){const t=this.state.decoratorStack[this.state.decoratorStack.length-1];t.length&&(e.decorators=t,this.resetStartLocationFromNode(e,t[0]),this.state.decoratorStack[this.state.decoratorStack.length-1]=[])}canHaveLeadingDecorator(){return this.match(l._class)}parseDecorators(e){const t=this.state.decoratorStack[this.state.decoratorStack.length-1];for(;this.match(l.at);){const e=this.parseDecorator();t.push(e)}if(this.match(l._export))e||this.unexpected(),this.hasPlugin("decorators")&&!this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,S.DecoratorExportClass);else if(!this.canHaveLeadingDecorator())throw this.raise(this.state.start,S.UnexpectedLeadingDecorator)}parseDecorator(){this.expectOnePlugin(["decorators-legacy","decorators"]);const e=this.startNode();if(this.next(),this.hasPlugin("decorators")){this.state.decoratorStack.push([]);const t=this.state.start,r=this.state.startLoc;let i;if(this.eat(l.parenL))i=this.parseExpression(),this.expect(l.parenR);else for(i=this.parseIdentifier(!1);this.eat(l.dot);){const e=this.startNodeAt(t,r);e.object=i,e.property=this.parseIdentifier(!0),e.computed=!1,i=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(i),this.state.decoratorStack.pop()}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(l.parenL)){const t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(l.parenR,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e}parseBreakContinueStatement(e,t){const r="break"===t;return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){const r="break"===t;let i;for(i=0;i<this.state.labels.length;++i){const t=this.state.labels[i];if(null==e.label||t.name===e.label.name){if(null!=t.kind&&(r||"loop"===t.kind))break;if(e.label&&r)break}}i===this.state.labels.length&&this.raise(e.start,S.IllegalBreakContinue,t)}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(l.parenL);const e=this.parseExpression();return this.expect(l.parenR),e}parseDoStatement(e){return this.next(),this.state.labels.push(Te),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("do"))),this.state.labels.pop(),this.expect(l._while),e.test=this.parseHeaderExpression(),this.eat(l.semi),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(Te);let t=-1;if(this.isAwaitAllowed()&&this.eatContextual("await")&&(t=this.state.lastTokStart),this.scope.enter(0),this.expect(l.parenL),this.match(l.semi))return t>-1&&this.unexpected(t),this.parseFor(e,null);const r=this.isLet();if(this.match(l._var)||this.match(l._const)||r){const i=this.startNode(),n=r?"let":this.state.value;return this.next(),this.parseVar(i,!0,n),this.finishNode(i,"VariableDeclaration"),(this.match(l._in)||this.isContextual("of"))&&1===i.declarations.length?this.parseForIn(e,i,t):(t>-1&&this.unexpected(t),this.parseFor(e,i))}const i=new ce,n=this.parseExpression(!0,i);if(this.match(l._in)||this.isContextual("of")){this.toAssignable(n);const r=this.isContextual("of")?"for-of statement":"for-in statement";return this.checkLVal(n,void 0,void 0,r),this.parseForIn(e,n,t)}return this.checkExpressionErrors(i,!0),t>-1&&this.unexpected(t),this.parseFor(e,n)}parseFunctionStatement(e,t,r){return this.next(),this.parseFunction(e,1|(r?0:2),t)}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(l._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(this.state.start,S.IllegalReturn),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(l.braceL),this.state.labels.push(ge),this.scope.enter(0);for(let e;!this.match(l.braceR);)if(this.match(l._case)||this.match(l._default)){const i=this.match(l._case);r&&this.finishNode(r,"SwitchCase"),t.push(r=this.startNode()),r.consequent=[],this.next(),i?r.test=this.parseExpression():(e&&this.raise(this.state.lastTokStart,S.MultipleDefaultsInSwitch),e=!0,r.test=null),this.expect(l.colon)}else r?r.consequent.push(this.parseStatement(null)):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(this.state.lastTokEnd,S.NewlineAfterThrow),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom(),t="Identifier"===e.type;return this.scope.enter(t?8:0),this.checkLVal(e,9,null,"catch clause"),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(l._catch)){const t=this.startNode();this.next(),this.match(l.parenL)?(this.expect(l.parenL),t.param=this.parseCatchClauseParam(),this.expect(l.parenR)):(t.param=null,this.scope.enter(0)),t.body=this.withTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(l._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,S.NoCatchOrFinally),this.finishNode(e,"TryStatement")}parseVarStatement(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Te),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("while"))),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(this.state.start,S.StrictWith),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("with"))),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,r,i){for(let e=0,i=this.state.labels;e<i.length;e++){i[e].name===t&&this.raise(r.start,S.LabelRedeclaration,t)}const n=this.state.type.isLoop?"loop":this.match(l._switch)?"switch":null;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=n}return this.state.labels.push({name:t,kind:n,statementStart:this.state.start}),e.body=this.parseStatement(i?-1===i.indexOf("label")?i+"label":i:"label"),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,r){const i=this.startNode();return this.expect(l.braceL),t&&this.scope.enter(0),this.parseBlockBody(i,e,!1,l.braceR,r),t&&this.scope.exit(),this.finishNode(i,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,i,n){const s=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(s,t?a:void 0,r,i,n)}parseBlockOrModuleBlockBody(e,t,r,i,n){const s=[],a=this.state.strict;let o=!1,l=!1;for(;!this.match(i);){!l&&this.state.octalPositions.length&&s.push(...this.state.octalPositions);const i=this.parseStatement(null,r);if(t&&!l&&this.isValidDirective(i)){const e=this.stmtToDirective(i);t.push(e),o||"use strict"!==e.value.value||(o=!0,this.setStrict(!0))}else l=!0,e.push(i)}if(this.state.strict&&s.length)for(let e=0;e<s.length;e++){const t=s[e];this.raise(t,S.StrictOctalLiteral)}n&&n.call(this,o),a||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.expect(l.semi),e.test=this.match(l.semi)?null:this.parseExpression(),this.expect(l.semi),e.update=this.match(l.parenR)?null:this.parseExpression(),this.expect(l.parenR),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,r){const i=this.match(l._in);return this.next(),i?r>-1&&this.unexpected(r):e.await=r>-1,"VariableDeclaration"!==t.type||null==t.declarations[0].init||i&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type?"AssignmentPattern"===t.type&&this.raise(t.start,S.InvalidLhs,"for-loop"):this.raise(t.start,S.ForInOfLoopInitializer,i?"for-in":"for-of"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(l.parenR),e.body=this.withTopicForbiddingContext((()=>this.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")}parseVar(e,t,r){const i=e.declarations=[],n=this.hasPlugin("typescript");for(e.kind=r;;){const e=this.startNode();if(this.parseVarId(e,r),this.eat(l.eq)?e.init=t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():("const"!==r||this.match(l._in)||this.isContextual("of")?"Identifier"===e.id.type||t&&(this.match(l._in)||this.isContextual("of"))||this.raise(this.state.lastTokEnd,S.DeclarationMissingInitializer,"Complex binding patterns"):n||this.raise(this.state.lastTokEnd,S.DeclarationMissingInitializer,"Const declarations"),e.init=null),i.push(this.finishNode(e,"VariableDeclarator")),!this.eat(l.comma))break}return e}parseVarId(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,"var"===t?5:9,void 0,"variable declaration","var"!==t)}parseFunction(e,t=0,r=!1){const i=1&t,n=2&t,s=!(!i||4&t);this.initFunction(e,r),this.match(l.star)&&n&&this.raise(this.state.start,S.GeneratorInSingleStatementContext),e.generator=this.eat(l.star),i&&(e.id=this.parseFunctionId(s));const a=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(functionFlags(r,e.generator)),i||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,i?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),i&&!n&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=a,e}parseFunctionId(e){return e||this.match(l.name)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(l.parenL),this.expressionScope.enter(new he(3)),e.params=this.parseBindingList(l.parenR,41,!1,t),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:9:17,e.id.start)}parseClass(e,t,r){this.next(),this.takeDecorators(e);const i=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,i),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(l.eq)||this.match(l.semi)||this.match(l.braceR)}isClassMethod(){return this.match(l.parenL)}isNonstaticConstructor(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)}parseClassBody(e,t){this.classScope.enter();const r={constructorAllowsSuper:e,hadConstructor:!1,hadStaticBlock:!1};let i=[];const n=this.startNode();if(n.body=[],this.expect(l.braceL),this.withTopicForbiddingContext((()=>{for(;!this.match(l.braceR);){if(this.eat(l.semi)){if(i.length>0)throw this.raise(this.state.lastTokEnd,S.DecoratorSemicolon);continue}if(this.match(l.at)){i.push(this.parseDecorator());continue}const e=this.startNode();i.length&&(e.decorators=i,this.resetStartLocationFromNode(e,i[0]),i=[]),this.parseClassMember(n,e,r),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(e.start,S.DecoratorConstructor)}})),this.state.strict=t,this.next(),i.length)throw this.raise(this.state.start,S.TrailingDecorator);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(e,t){const r=this.parseIdentifier(!0);if(this.isClassMethod()){const i=t;return i.kind="method",i.computed=!1,i.key=r,i.static=!1,this.pushClassMethod(e,i,!1,!1,!1,!1),!0}if(this.isClassProperty()){const i=t;return i.computed=!1,i.key=r,i.static=!1,e.body.push(this.parseClassProperty(i)),!0}return!1}parseClassMember(e,t,r){const i=this.isContextual("static");if(i){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(l.braceL))return void this.parseClassStaticBlock(e,t,r)}this.parseClassMemberWithIsStatic(e,t,r,i)}parseClassMemberWithIsStatic(e,t,r,i){const n=t,s=t,a=t,o=t,c=n,u=n;if(t.static=i,this.eat(l.star))return c.kind="method",this.parseClassElementName(c),"PrivateName"===c.key.type?void this.pushClassPrivateMethod(e,s,!0,!1):(this.isNonstaticConstructor(n)&&this.raise(n.key.start,S.ConstructorIsGenerator),void this.pushClassMethod(e,n,!0,!1,!1,!1));const p=this.state.containsEsc,d=this.parseClassElementName(t),h="PrivateName"===d.type,f="Identifier"===d.type,m=this.state.start;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(c.kind="method",h)return void this.pushClassPrivateMethod(e,s,!1,!1);const t=this.isNonstaticConstructor(n);let i=!1;t&&(n.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(d.start,S.DuplicateConstructor),r.hadConstructor=!0,i=r.constructorAllowsSuper),this.pushClassMethod(e,n,!1,!1,t,i)}else if(this.isClassProperty())h?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a);else if(!f||"async"!==d.name||p||this.isLineTerminator())!f||"get"!==d.name&&"set"!==d.name||p||this.match(l.star)&&this.isLineTerminator()?this.isLineTerminator()?h?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a):this.unexpected():(c.kind=d.name,this.parseClassElementName(n),"PrivateName"===c.key.type?this.pushClassPrivateMethod(e,s,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(n.key.start,S.ConstructorIsAccessor),this.pushClassMethod(e,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n));else{const t=this.eat(l.star);u.optional&&this.unexpected(m),c.kind="method",this.parseClassElementName(c),this.parsePostMemberNameModifiers(u),"PrivateName"===c.key.type?this.pushClassPrivateMethod(e,s,t,!0):(this.isNonstaticConstructor(n)&&this.raise(n.key.start,S.ConstructorIsAsync),this.pushClassMethod(e,n,t,!0,!1,!1))}}parseClassElementName(e){const t=this.parsePropertyName(e,!0);return e.computed||!e.static||"prototype"!==t.name&&"prototype"!==t.value||this.raise(t.start,S.StaticPrototype),"PrivateName"===t.type&&"constructor"===t.id.name&&this.raise(t.start,S.ConstructorClassPrivateField),t}parseClassStaticBlock(e,t,r){var i;this.expectPlugin("classStaticBlock",t.start),this.scope.enter(80),this.expressionScope.enter(newExpressionScope());const n=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const s=t.body=[];this.parseBlockOrModuleBlockBody(s,void 0,!1,l.braceR),this.prodParam.exit(),this.expressionScope.exit(),this.scope.exit(),this.state.labels=n,e.body.push(this.finishNode(t,"StaticBlock")),r.hadStaticBlock&&this.raise(t.start,S.DuplicateStaticBlock),(null==(i=t.decorators)?void 0:i.length)&&this.raise(t.start,S.DecoratorStaticBlock),r.hadStaticBlock=!0}pushClassProperty(e,t){t.computed||"constructor"!==t.key.name&&"constructor"!==t.key.value||this.raise(t.key.start,S.ConstructorClassField),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){this.expectPlugin("classPrivateProperties",t.key.start);const r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(r.key.id.name,0,r.key.start)}pushClassMethod(e,t,r,i,n,s){e.body.push(this.parseMethod(t,r,i,n,s,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,i){this.expectPlugin("classPrivateMethods",t.key.start);const n=this.parseMethod(t,r,i,!1,!1,"ClassPrivateMethod",!0);e.body.push(n);const s="get"===n.kind?n.static?6:2:"set"===n.kind?n.static?5:1:0;this.classScope.declarePrivateName(n.key.id.name,s,n.key.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return e.typeAnnotation&&!this.match(l.eq)||this.expectPlugin("classProperties"),this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(newExpressionScope()),this.prodParam.enter(0),e.value=this.eat(l.eq)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,r,i=139){this.match(l.name)?(e.id=this.parseIdentifier(),t&&this.checkLVal(e.id,i,void 0,"class name")):r||!t?e.id=null:this.unexpected(null,S.MissingClassName)}parseClassSuper(e){e.superClass=this.eat(l._extends)?this.parseExprSubscripts():null}parseExport(e){const t=this.maybeParseExportDefaultSpecifier(e),r=!t||this.eat(l.comma),i=r&&this.eatExportStar(e),n=i&&this.maybeParseExportNamespaceSpecifier(e),s=r&&(!n||this.eat(l.comma)),a=t||i;if(i&&!n)return t&&this.unexpected(),this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration");const o=this.maybeParseExportNamedSpecifiers(e);if(t&&r&&!i&&!o||n&&s&&!o)throw this.unexpected(null,l.braceL);let c;if(a||o?(c=!1,this.parseExportFrom(e,a)):c=this.maybeParseExportDeclaration(e),a||o||c)return this.checkExport(e,!0,!1,!!e.source),this.finishNode(e,"ExportNamedDeclaration");if(this.eat(l._default))return e.declaration=this.parseExportDefaultExpression(),this.checkExport(e,!0,!0),this.finishNode(e,"ExportDefaultDeclaration");throw this.unexpected(null,l.braceL)}eatExportStar(e){return this.eat(l.star)}maybeParseExportDefaultSpecifier(e){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");const t=this.startNode();return t.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(t,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual("as")){e.specifiers||(e.specifiers=[]);const t=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){return!!this.match(l.braceL)&&(e.specifiers||(e.specifiers=[]),e.specifiers.push(...this.parseExportSpecifiers()),e.source=null,e.declaration=null,!0)}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual("async"))return!1;const e=this.nextTokenStart();return!h.test(this.input.slice(this.state.pos,e))&&this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode(),t=this.isAsyncFunction();if(this.match(l._function)||t)return this.next(),t&&this.next(),this.parseFunction(e,5,t);if(this.match(l._class))return this.parseClass(e,!0,!0);if(this.match(l.at))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,S.DecoratorBeforeExport),this.parseDecorators(!1),this.parseClass(e,!0,!0);if(this.match(l._const)||this.match(l._var)||this.isLet())throw this.raise(this.state.start,S.UnsupportedDefaultExport);{const e=this.parseMaybeAssignAllowIn();return this.semicolon(),e}}parseExportDeclaration(e){return this.parseStatement(null)}isExportDefaultSpecifier(){if(this.match(l.name)){const e=this.state.value;if("async"===e&&!this.state.containsEsc||"let"===e)return!1;if(("type"===e||"interface"===e)&&!this.state.containsEsc){const e=this.lookahead();if(e.type===l.name&&"from"!==e.value||e.type===l.braceL)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(l._default))return!1;const e=this.nextTokenStart(),t=this.isUnparsedContextual(e,"from");if(44===this.input.charCodeAt(e)||this.match(l.name)&&t)return!0;if(this.match(l._default)&&t){const t=this.input.charCodeAt(this.nextTokenStartSince(e+4));return 34===t||39===t}return!1}parseExportFrom(e,t){if(this.eatContextual("from")){e.source=this.parseImportSource(),this.checkExport(e);const t=this.maybeParseImportAssertions();t&&(e.assertions=t)}else t?this.unexpected():e.source=null;this.semicolon()}shouldParseExportDeclaration(){if(this.match(l.at)&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(!this.getPluginOption("decorators","decoratorsBeforeExport"))return!0;this.unexpected(this.state.start,S.DecoratorBeforeExport)}return"var"===this.state.type.keyword||"const"===this.state.type.keyword||"function"===this.state.type.keyword||"class"===this.state.type.keyword||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,i){if(t)if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var n;const t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!=4||(null==(n=t.extra)?void 0:n.parenthesized)||this.raise(t.start,S.ExportDefaultFromAsIdentifier)}}else if(e.specifiers&&e.specifiers.length)for(let t=0,r=e.specifiers;t<r.length;t++){const e=r[t],{exported:n}=e,s="Identifier"===n.type?n.name:n.value;if(this.checkDuplicateExports(e,s),!i&&e.local){const{local:t}=e;"StringLiteral"===t.type?this.raise(e.start,S.ExportBindingIsString,t.extra.raw,s):(this.checkReservedWord(t.name,t.start,!0,!1),this.scope.checkLocalExport(t))}}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(let t=0,r=e.declaration.declarations;t<r.length;t++){const e=r[t];this.checkDeclaration(e.id)}if(this.state.decoratorStack[this.state.decoratorStack.length-1].length)throw this.raise(e.start,S.UnsupportedDecoratorExport)}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(let t=0,r=e.properties;t<r.length;t++){const e=r[t];this.checkDeclaration(e)}else if("ArrayPattern"===e.type)for(let t=0,r=e.elements;t<r.length;t++){const e=r[t];e&&this.checkDeclaration(e)}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.state.exportedIdentifiers.indexOf(t)>-1&&this.raise(e.start,"default"===t?S.DuplicateDefaultExport:S.DuplicateExport,t),this.state.exportedIdentifiers.push(t)}parseExportSpecifiers(){const e=[];let t=!0;for(this.expect(l.braceL);!this.eat(l.braceR);){if(t)t=!1;else if(this.expect(l.comma),this.eat(l.braceR))break;const r=this.startNode();r.local=this.parseModuleExportName(),r.exported=this.eatContextual("as")?this.parseModuleExportName():r.local.__clone(),e.push(this.finishNode(r,"ExportSpecifier"))}return e}parseModuleExportName(){if(this.match(l.string)){this.expectPlugin("moduleStringNames");const e=this.parseLiteral(this.state.value,"StringLiteral"),t=e.value.match(be);return t&&this.raise(e.start,S.ModuleExportNameHasLoneSurrogate,t[0].charCodeAt(0).toString(16)),e}return this.parseIdentifier(!0)}parseImport(e){if(e.specifiers=[],!this.match(l.string)){const t=!this.maybeParseDefaultImportSpecifier(e)||this.eat(l.comma),r=t&&this.maybeParseStarImportSpecifier(e);t&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual("from")}e.source=this.parseImportSource();const t=this.maybeParseImportAssertions();if(t)e.assertions=t;else{const t=this.maybeParseModuleAttributes();t&&(e.attributes=t)}return this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(l.string)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(e){return this.match(l.name)}parseImportSpecifierLocal(e,t,r,i){t.local=this.parseIdentifier(),this.checkLVal(t.local,9,void 0,i),e.specifiers.push(this.finishNode(t,r))}parseAssertEntries(){const e=[],t=new Set;do{if(this.match(l.braceR))break;const r=this.startNode(),i=this.state.value;if(this.match(l.string)?r.key=this.parseLiteral(i,"StringLiteral"):r.key=this.parseIdentifier(!0),this.expect(l.colon),"type"!==i&&this.raise(r.key.start,S.ModuleAttributeDifferentFromType,i),t.has(i)&&this.raise(r.key.start,S.ModuleAttributesWithDuplicateKeys,i),t.add(i),!this.match(l.string))throw this.unexpected(this.state.start,S.ModuleAttributeInvalidValue);r.value=this.parseLiteral(this.state.value,"StringLiteral"),this.finishNode(r,"ImportAttribute"),e.push(r)}while(this.eat(l.comma));return e}maybeParseModuleAttributes(){if(!this.match(l._with)||this.hasPrecedingLineBreak())return this.hasPlugin("moduleAttributes")?[]:null;this.expectPlugin("moduleAttributes"),this.next();const e=[],t=new Set;do{const r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(r.key.start,S.ModuleAttributeDifferentFromType,r.key.name),t.has(r.key.name)&&this.raise(r.key.start,S.ModuleAttributesWithDuplicateKeys,r.key.name),t.add(r.key.name),this.expect(l.colon),!this.match(l.string))throw this.unexpected(this.state.start,S.ModuleAttributeInvalidValue);r.value=this.parseLiteral(this.state.value,"StringLiteral"),this.finishNode(r,"ImportAttribute"),e.push(r)}while(this.eat(l.comma));return e}maybeParseImportAssertions(){if(!this.isContextual("assert")||this.hasPrecedingLineBreak())return this.hasPlugin("importAssertions")?[]:null;this.expectPlugin("importAssertions"),this.next(),this.eat(l.braceL);const e=this.parseAssertEntries();return this.eat(l.braceR),e}maybeParseDefaultImportSpecifier(e){return!!this.shouldParseDefaultImport(e)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier","default import specifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(l.star)){const t=this.startNode();return this.next(),this.expectContextual("as"),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier","import namespace specifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(l.braceL);!this.eat(l.braceR);){if(t)t=!1;else{if(this.eat(l.colon))throw this.raise(this.state.start,S.DestructureNamedImport);if(this.expect(l.comma),this.eat(l.braceR))break}this.parseImportSpecifier(e)}}parseImportSpecifier(e){const t=this.startNode();if(t.imported=this.parseModuleExportName(),this.eatContextual("as"))t.local=this.parseIdentifier();else{const{imported:e}=t;if("StringLiteral"===e.type)throw this.raise(t.start,S.ImportBindingIsString,e.value);this.checkReservedWord(e.name,t.start,!0,!0),t.local=e.__clone()}this.checkLVal(t.local,9,void 0,"import specifier"),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))}}class xe{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class Ee{constructor(e){this.stack=[],this.undefinedPrivateNames=new Map,this.raise=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new xe)}exit(){const e=this.stack.pop(),t=this.current();for(let r=0,i=Array.from(e.undefinedPrivateNames);r<i.length;r++){const[e,n]=i[r];t?t.undefinedPrivateNames.has(e)||t.undefinedPrivateNames.set(e,n):this.raise(n,S.InvalidPrivateFieldResolution,e)}}declarePrivateName(e,t,r){const i=this.current();let n=i.privateNames.has(e);if(3&t){const r=n&&i.loneAccessors.get(e);if(r){n=(3&r)===(3&t)||(4&r)!==(4&t),n||i.loneAccessors.delete(e)}else n||i.loneAccessors.set(e,t)}n&&this.raise(r,S.PrivateNameRedeclaration,e),i.privateNames.add(e),i.undefinedPrivateNames.delete(e)}usePrivateName(e,t){let r;for(let t=0,i=this.stack;t<i.length;t++)if(r=i[t],r.privateNames.has(e))return;r?r.undefinedPrivateNames.set(e,t):this.raise(t,S.InvalidPrivateFieldResolution,e)}}class Pe extends Se{constructor(e,t){super(e=function(e){const t={};for(let r=0,i=Object.keys(te);r<i.length;r++){const n=i[r];t[n]=e&&null!=e[n]?e[n]:te[n]}return t}(e),t);const r=this.getScopeHandler();this.options=e,this.inModule="module"===this.options.sourceType,this.scope=new r(this.raise.bind(this),this.inModule),this.prodParam=new G,this.classScope=new Ee(this.raise.bind(this)),this.expressionScope=new me(this.raise.bind(this)),this.plugins=function(e){const t=new Map;for(let r=0;r<e.length;r++){const i=e[r],[n,s]=Array.isArray(i)?i:[i,{}];t.has(n)||t.set(n,s||{})}return t}(this.options.plugins),this.filename=e.sourceFilename}getScopeHandler(){return X}parse(){let e=0;this.hasPlugin("topLevelAwait")&&this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e);const t=this.startNode(),r=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,r),t.errors=this.state.errors,t}}function getParser(e,t){let r=Pe;return(null==e?void 0:e.plugins)&&(!function(e){if(hasPlugin(e,"decorators")){if(hasPlugin(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const t=getPluginOption(e,"decorators","decoratorsBeforeExport");if(null==t)throw new Error("The \'decorators\' plugin requires a \'decoratorsBeforeExport\' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the \'decorators-legacy\' plugin instead of \'decorators\'.");if("boolean"!=typeof t)throw new Error("\'decoratorsBeforeExport\' must be a boolean.")}if(hasPlugin(e,"flow")&&hasPlugin(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(hasPlugin(e,"placeholders")&&hasPlugin(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(hasPlugin(e,"pipelineOperator")&&!z.includes(getPluginOption(e,"pipelineOperator","proposal")))throw new Error("\'pipelineOperator\' requires \'proposal\' option whose value should be one of: "+z.map((e=>`\'${e}\'`)).join(", "));if(hasPlugin(e,"moduleAttributes")){if(hasPlugin(e,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if("may-2020"!==getPluginOption(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(hasPlugin(e,"recordAndTuple")&&!Q.includes(getPluginOption(e,"recordAndTuple","syntaxType")))throw new Error("\'recordAndTuple\' requires \'syntaxType\' option whose value should be one of: "+Q.map((e=>`\'${e}\'`)).join(", "))}(e.plugins),r=function(e){const t=ee.filter((t=>hasPlugin(e,t))),r=t.join("/");let i=ve[r];if(!i){i=Pe;for(let e=0;e<t.length;e++){const r=t[e];i=Z[r](i)}ve[r]=i}return i}(e.plugins)),new r(e,t)}const ve={};t.parse=function(e,t){var r;if("unambiguous"!==(null==(r=t)?void 0:r.sourceType))return getParser(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";const r=getParser(t,e),i=r.parse();if(r.sawUnambiguousESM)return i;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",getParser(t,e).parse()}catch(e){}else i.program.sourceType="script";return i}catch(r){try{return t.sourceType="script",getParser(t,e).parse()}catch(e){}throw r}},t.parseExpression=function(e,t){const r=getParser(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()},t.tokTypes=l},1826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clear=function(){clearPath(),clearScope()},t.clearPath=clearPath,t.clearScope=clearScope,t.scope=t.path=void 0;let r=new WeakMap;t.path=r;let i=new WeakMap;function clearPath(){t.path=r=new WeakMap}function clearScope(){t.scope=i=new WeakMap}t.scope=i},7193:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,n=(i=r(706))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}t.default=class{constructor(e,t,r,i){this.queue=null,this.parentPath=i,this.scope=e,this.state=r,this.opts=t}shouldVisit(e){const t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;const r=s.VISITOR_KEYS[e.type];if(!(null==r?void 0:r.length))return!1;for(const t of r)if(e[t])return!0;return!1}create(e,t,r,i){return n.default.get({parentPath:this.parentPath,parent:e,container:t,key:r,listKey:i})}maybeQueue(e,t){if(this.trap)throw new Error("Infinite cycle detected");this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,t,r){if(0===e.length)return!1;const i=[];for(let n=0;n<e.length;n++){const s=e[n];s&&this.shouldVisit(s)&&i.push(this.create(t,e,n,r))}return this.visitQueue(i)}visitSingle(e,t){return!!this.shouldVisit(e[t])&&this.visitQueue([this.create(e,e,t)])}visitQueue(e){this.queue=e,this.priorityQueue=[];const t=[];let r=!1;for(const i of e)if(i.resync(),0!==i.contexts.length&&i.contexts[i.contexts.length-1]===this||i.pushContext(this),null!==i.key&&!(t.indexOf(i.node)>=0)){if(t.push(i.node),i.visit()){r=!0;break}if(this.priorityQueue.length&&(r=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,r))break}for(const t of e)t.popContext();return this.queue=null,r}visit(e,t){const r=e[t];return!!r&&(Array.isArray(r)?this.visitMultiple(r,e,t):this.visitSingle(e,t))}}},8672:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,t,r=TypeError){return new r(t)}}},1910:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=traverse,Object.defineProperty(t,"NodePath",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return c.default}}),t.visitors=void 0;var i=_interopRequireDefault(r(7193)),n=_interopRequireWildcard(r(8221));t.visitors=n;var s=_interopRequireWildcard(r(1710)),a=_interopRequireWildcard(r(1826)),o=_interopRequireDefault(r(706)),l=_interopRequireDefault(r(9760)),c=_interopRequireDefault(r(8672));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function traverse(e,t,r,i,a){if(e){if(t||(t={}),!t.noScope&&!r&&"Program"!==e.type&&"File"!==e.type)throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);s.VISITOR_KEYS[e.type]&&(n.explode(t),traverse.node(e,t,r,i,a))}}function hasDenylistedType(e,t){e.node.type===t.type&&(t.has=!0,e.stop())}traverse.visitors=n,traverse.verify=n.verify,traverse.explode=n.explode,traverse.cheap=function(e,t){return s.traverseFast(e,t)},traverse.node=function(e,t,r,n,a,o){const l=s.VISITOR_KEYS[e.type];if(!l)return;const c=new i.default(r,t,n,a);for(const t of l)if((!o||!o[t])&&c.visit(e,t))return},traverse.clearNode=function(e,t){s.removeProperties(e,t),a.path.delete(e)},traverse.removeProperties=function(e,t){return s.traverseFast(e,traverse.clearNode,t),e},traverse.hasType=function(e,t,r){if(null==r?void 0:r.includes(e.type))return!1;if(e.type===t)return!0;const i={has:!1,type:t};return traverse(e,{noScope:!0,denylist:r,enter:hasDenylistedType},null,i),i.has},traverse.cache=a},4852:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findParent=function(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null},t.find=function(e){let t=this;do{if(e(t))return t}while(t=t.parentPath);return null},t.getFunctionParent=function(){return this.findParent((e=>e.isFunction()))},t.getStatementParent=function(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can\'t possibly find a statement parent to this");return e},t.getEarliestCommonAncestorFrom=function(e){return this.getDeepestCommonAncestorFrom(e,(function(e,t,r){let i;const s=n.VISITOR_KEYS[e.type];for(const e of r){const r=e[t+1];if(!i){i=r;continue}if(r.listKey&&i.listKey===r.listKey&&r.key<i.key){i=r;continue}s.indexOf(i.parentKey)>s.indexOf(r.parentKey)&&(i=r)}return i}))},t.getDeepestCommonAncestorFrom=function(e,t){if(!e.length)return this;if(1===e.length)return e[0];let r,i,n=1/0;const s=e.map((e=>{const t=[];do{t.unshift(e)}while((e=e.parentPath)&&e!==this);return t.length<n&&(n=t.length),t})),a=s[0];e:for(let e=0;e<n;e++){const t=a[e];for(const r of s)if(r[e]!==t)break e;r=e,i=t}if(i)return t?t(i,r,s):i;throw new Error("Couldn\'t find intersection")},t.getAncestry=function(){let e=this;const t=[];do{t.push(e)}while(e=e.parentPath);return t},t.isAncestor=function(e){return e.isDescendant(this)},t.isDescendant=function(e){return!!this.findParent((t=>t===e))},t.inType=function(){let e=this;for(;e;){for(const t of arguments)if(e.node.type===t)return!0;e=e.parentPath}return!1};var i,n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));(i=r(706))&&i.__esModule;function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}},7334:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shareCommentsWithSiblings=function(){if("string"==typeof this.key)return;const e=this.node;if(!e)return;const t=e.trailingComments,r=e.leadingComments;if(!t&&!r)return;const i=this.getSibling(this.key-1),n=this.getSibling(this.key+1),s=Boolean(i.node),a=Boolean(n.node);s&&!a?i.addComments("trailing",t):a&&!s&&n.addComments("leading",r)},t.addComment=function(e,t,r){i.addComment(this.node,e,t,r)},t.addComments=function(e,t){i.addComments(this.node,e,t)};var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}},7036:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.call=function(e){const t=this.opts;if(this.debug(e),this.node&&this._call(t[e]))return!0;if(this.node)return this._call(t[this.node.type]&&t[this.node.type][e]);return!1},t._call=function(e){if(!e)return!1;for(const t of e){if(!t)continue;const e=this.node;if(!e)return!0;const r=t.call(this.state,this,this.state);if(r&&"object"==typeof r&&"function"==typeof r.then)throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you\'re using a published plugin, you may need to upgrade your @babel/core version.");if(r)throw new Error(`Unexpected return value from visitor method ${t}`);if(this.node!==e)return!0;if(this._traverseFlags>0)return!0}return!1},t.isBlacklisted=t.isDenylisted=function(){var e;const t=null!=(e=this.opts.denylist)?e:this.opts.blacklist;return t&&t.indexOf(this.node.type)>-1},t.visit=function(){if(!this.node)return!1;if(this.isDenylisted())return!1;if(this.opts.shouldSkip&&this.opts.shouldSkip(this))return!1;if(this.shouldSkip||this.call("enter")||this.shouldSkip)return this.debug("Skip..."),this.shouldStop;return this.debug("Recursing into..."),n.default.node(this.node,this.opts,this.scope,this.state,this,this.skipKeys),this.call("exit"),this.shouldStop},t.skip=function(){this.shouldSkip=!0},t.skipKey=function(e){null==this.skipKeys&&(this.skipKeys={});this.skipKeys[e]=!0},t.stop=function(){this._traverseFlags|=s.SHOULD_SKIP|s.SHOULD_STOP},t.setScope=function(){if(this.opts&&this.opts.noScope)return;let e,t=this.parentPath;for(;t&&!e;){if(t.opts&&t.opts.noScope)return;e=t.scope,t=t.parentPath}this.scope=this.getScope(e),this.scope&&this.scope.init()},t.setContext=function(e){null!=this.skipKeys&&(this.skipKeys={});this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts);return this.setScope(),this},t.resync=function(){if(this.removed)return;this._resyncParent(),this._resyncList(),this._resyncKey()},t._resyncParent=function(){this.parentPath&&(this.parent=this.parentPath.node)},t._resyncKey=function(){if(!this.container)return;if(this.node===this.container[this.key])return;if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node)return this.setKey(e)}else for(const e of Object.keys(this.container))if(this.container[e]===this.node)return this.setKey(e);this.key=null},t._resyncList=function(){if(!this.parent||!this.inList)return;const e=this.parent[this.listKey];if(this.container===e)return;this.container=e||null},t._resyncRemoved=function(){null!=this.key&&this.container&&this.container[this.key]===this.node||this._markRemoved()},t.popContext=function(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)},t.pushContext=function(e){this.contexts.push(e),this.setContext(e)},t.setup=function(e,t,r,i){this.listKey=r,this.container=t,this.parentPath=e||this.parentPath,this.setKey(i)},t.setKey=function(e){var t;this.key=e,this.node=this.container[this.key],this.type=null==(t=this.node)?void 0:t.type},t.requeue=function(e=this){if(e.removed)return;const t=this.contexts;for(const r of t)r.maybeQueue(e)},t._getQueueContexts=function(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,e);)t=e.contexts;return t};var i,n=(i=r(1910))&&i.__esModule?i:{default:i},s=r(706)},7926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toComputedKey=function(){const e=this.node;let t;if(this.isMemberExpression())t=e.property;else{if(!this.isProperty()&&!this.isMethod())throw new ReferenceError("todo");t=e.key}e.computed||n.isIdentifier(t)&&(t=n.stringLiteral(t.name));return t},t.ensureBlock=function(){const e=this.get("body"),t=e.node;if(Array.isArray(e))throw new Error("Can\'t convert array path to a block statement");if(!t)throw new Error("Can\'t convert node without a body");if(e.isBlockStatement())return t;const r=[];let i,s,a="body";e.isStatement()?(s="body",i=0,r.push(e.node)):(a+=".body.0",this.isFunction()?(i="argument",r.push(n.returnStatement(e.node))):(i="expression",r.push(n.expressionStatement(e.node))));this.node.body=n.blockStatement(r);const o=this.get(a);return e.setup(o,s?o.node[s]:o.node,s,i),this.node},t.arrowFunctionToShadowed=function(){if(!this.isArrowFunctionExpression())return;this.arrowFunctionToExpression()},t.unwrapFunctionEnvironment=function(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");hoistFunctionEnvironment(this)},t.arrowFunctionToExpression=function({allowInsertArrow:e=!0,specCompliant:t=!1}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");const r=hoistFunctionEnvironment(this,t,e);if(this.ensureBlock(),this.node.type="FunctionExpression",t){const e=r?null:this.parentPath.scope.generateUidIdentifier("arrowCheckId");e&&this.parentPath.scope.push({id:e,init:n.objectExpression([])}),this.get("body").unshiftContainer("body",n.expressionStatement(n.callExpression(this.hub.addHelper("newArrowCheck"),[n.thisExpression(),e?n.identifier(e.name):n.identifier(r)]))),this.replaceWith(n.callExpression(n.memberExpression((0,s.default)(this,!0)||this.node,n.identifier("bind")),[e?n.identifier(e.name):n.thisExpression()]))}};var i,n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710)),s=(i=r(6163))&&i.__esModule?i:{default:i};function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function hoistFunctionEnvironment(e,t=!1,r=!0){const i=e.findParent((e=>e.isFunction()&&!e.isArrowFunctionExpression()||e.isProgram()||e.isClassProperty({static:!1}))),s="constructor"===(null==i?void 0:i.node.kind);if(i.isClassProperty())throw e.buildCodeFrameError("Unable to transform arrow inside class property");const{thisPaths:a,argumentsPaths:o,newTargetPaths:l,superProps:c,superCalls:u}=function(e){const t=[],r=[],i=[],n=[],s=[];return e.traverse({ClassProperty(e){e.skip()},Function(e){e.isArrowFunctionExpression()||e.skip()},ThisExpression(e){t.push(e)},JSXIdentifier(e){"this"===e.node.name&&(e.parentPath.isJSXMemberExpression({object:e.node})||e.parentPath.isJSXOpeningElement({name:e.node}))&&t.push(e)},CallExpression(e){e.get("callee").isSuper()&&s.push(e)},MemberExpression(e){e.get("object").isSuper()&&n.push(e)},ReferencedIdentifier(e){"arguments"===e.node.name&&r.push(e)},MetaProperty(e){e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&i.push(e)}}),{thisPaths:t,argumentsPaths:r,newTargetPaths:i,superProps:n,superCalls:s}}(e);if(s&&u.length>0){if(!r)throw u[0].buildCodeFrameError("Unable to handle nested super() usage in arrow");const e=[];i.traverse({Function(e){e.isArrowFunctionExpression()||e.skip()},ClassProperty(e){e.skip()},CallExpression(t){t.get("callee").isSuper()&&e.push(t)}});const t=function(e){return getBinding(e,"supercall",(()=>{const t=e.scope.generateUidIdentifier("args");return n.arrowFunctionExpression([n.restElement(t)],n.callExpression(n.super(),[n.spreadElement(n.identifier(t.name))]))}))}(i);e.forEach((e=>{const r=n.identifier(t);r.loc=e.node.callee.loc,e.get("callee").replaceWith(r)}))}if(o.length>0){const e=getBinding(i,"arguments",(()=>n.identifier("arguments")));o.forEach((t=>{const r=n.identifier(e);r.loc=t.node.loc,t.replaceWith(r)}))}if(l.length>0){const e=getBinding(i,"newtarget",(()=>n.metaProperty(n.identifier("new"),n.identifier("target"))));l.forEach((t=>{const r=n.identifier(e);r.loc=t.node.loc,t.replaceWith(r)}))}if(c.length>0){if(!r)throw c[0].buildCodeFrameError("Unable to handle nested super.prop usage");c.reduce(((e,t)=>e.concat(function(e){if(e.parentPath.isAssignmentExpression()&&"="!==e.parentPath.node.operator){const t=e.parentPath,r=t.node.operator.slice(0,-1),i=t.node.right;if(t.node.operator="=",e.node.computed){const s=e.scope.generateDeclaredUidIdentifier("tmp");t.get("left").replaceWith(n.memberExpression(e.node.object,n.assignmentExpression("=",s,e.node.property),!0)),t.get("right").replaceWith(n.binaryExpression(r,n.memberExpression(e.node.object,n.identifier(s.name),!0),i))}else t.get("left").replaceWith(n.memberExpression(e.node.object,e.node.property)),t.get("right").replaceWith(n.binaryExpression(r,n.memberExpression(e.node.object,n.identifier(e.node.property.name)),i));return[t.get("left"),t.get("right").get("left")]}if(e.parentPath.isUpdateExpression()){const t=e.parentPath,r=e.scope.generateDeclaredUidIdentifier("tmp"),i=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,s=[n.assignmentExpression("=",r,n.memberExpression(e.node.object,i?n.assignmentExpression("=",i,e.node.property):e.node.property,e.node.computed)),n.assignmentExpression("=",n.memberExpression(e.node.object,i?n.identifier(i.name):e.node.property,e.node.computed),n.binaryExpression("+",n.identifier(r.name),n.numericLiteral(1)))];e.parentPath.node.prefix||s.push(n.identifier(r.name)),t.replaceWith(n.sequenceExpression(s));return[t.get("expressions.0.right"),t.get("expressions.1.left")]}return[e]}(t))),[]).forEach((e=>{const t=e.node.computed?"":e.get("property").node.name,r=e.parentPath.isAssignmentExpression({left:e.node}),s=e.parentPath.isCallExpression({callee:e.node}),o=function(e,t,r){const i=t?"set":"get";return getBinding(e,`superprop_${i}:${r||""}`,(()=>{const i=[];let s;if(r)s=n.memberExpression(n.super(),n.identifier(r));else{const t=e.scope.generateUidIdentifier("prop");i.unshift(t),s=n.memberExpression(n.super(),n.identifier(t.name),!0)}if(t){const t=e.scope.generateUidIdentifier("value");i.push(t),s=n.assignmentExpression("=",s,n.identifier(t.name))}return n.arrowFunctionExpression(i,s)}))}(i,r,t),l=[];if(e.node.computed&&l.push(e.get("property").node),r){const t=e.parentPath.node.right;l.push(t)}const c=n.callExpression(n.identifier(o),l);s?(e.parentPath.unshiftContainer("arguments",n.thisExpression()),e.replaceWith(n.memberExpression(c,n.identifier("call"))),a.push(e.parentPath.get("arguments.0"))):r?e.parentPath.replaceWith(c):e.replaceWith(c)}))}let p;return(a.length>0||t)&&(p=function(e,t){return getBinding(e,"this",(r=>{if(!t||!hasSuperClass(e))return n.thisExpression();const i=new WeakSet;e.traverse({Function(e){e.isArrowFunctionExpression()||e.skip()},ClassProperty(e){e.skip()},CallExpression(e){e.get("callee").isSuper()&&(i.has(e.node)||(i.add(e.node),e.replaceWithMultiple([e.node,n.assignmentExpression("=",n.identifier(r),n.identifier("this"))])))}})}))}(i,s),(!t||s&&hasSuperClass(i))&&(a.forEach((e=>{const t=e.isJSX()?n.jsxIdentifier(p):n.identifier(p);t.loc=e.node.loc,e.replaceWith(t)})),t&&(p=null))),p}function hasSuperClass(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}function getBinding(e,t,r){const i="binding:"+t;let n=e.getData(i);if(!n){const s=e.scope.generateUidIdentifier(t);n=s.name,e.setData(i,n),e.scope.push({id:s,init:r(n)})}return n}},5635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateTruthy=function(){const e=this.evaluate();if(e.confident)return!!e.value},t.evaluate=function(){const e={confident:!0,deoptPath:null,seen:new Map};let t=evaluateCached(this,e);e.confident||(t=void 0);return{confident:e.confident,deopt:e.deoptPath,value:t}};const r=["String","Number","Math"],i=["random"];function deopt(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}function evaluateCached(e,t){const{node:n}=e,{seen:s}=t;if(s.has(n)){const r=s.get(n);return r.resolved?r.value:void deopt(e,t)}{const a={resolved:!1};s.set(n,a);const o=function(e,t){if(!t.confident)return;const{node:n}=e;if(e.isSequenceExpression()){const r=e.get("expressions");return evaluateCached(r[r.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return n.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return evaluateQuasis(e,n.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){const r=e.get("tag.object"),{node:{name:i}}=r,s=e.get("tag.property");if(r.isIdentifier()&&"String"===i&&!e.scope.getBinding(i,!0)&&s.isIdentifier&&"raw"===s.node.name)return evaluateQuasis(e,n.quasi.quasis,t,!0)}if(e.isConditionalExpression()){const r=evaluateCached(e.get("test"),t);if(!t.confident)return;return evaluateCached(r?e.get("consequent"):e.get("alternate"),t)}if(e.isExpressionWrapper())return evaluateCached(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:n})){const t=e.get("property"),r=e.get("object");if(r.isLiteral()&&t.isIdentifier()){const e=r.node.value,i=typeof e;if("number"===i||"string"===i)return e[t.node.name]}}if(e.isReferencedIdentifier()){const r=e.scope.getBinding(n.name);if(r&&r.constantViolations.length>0)return deopt(r.path,t);if(r&&e.node.start<r.path.node.end)return deopt(r.path,t);if(null==r?void 0:r.hasValue)return r.value;{if("undefined"===n.name)return r?deopt(r.path,t):void 0;if("Infinity"===n.name)return r?deopt(r.path,t):1/0;if("NaN"===n.name)return r?deopt(r.path,t):NaN;const i=e.resolve();return i===e?deopt(e,t):evaluateCached(i,t)}}if(e.isUnaryExpression({prefix:!0})){if("void"===n.operator)return;const r=e.get("argument");if("typeof"===n.operator&&(r.isFunction()||r.isClass()))return"function";const i=evaluateCached(r,t);if(!t.confident)return;switch(n.operator){case"!":return!i;case"+":return+i;case"-":return-i;case"~":return~i;case"typeof":return typeof i}}if(e.isArrayExpression()){const r=[],i=e.get("elements");for(const e of i){const i=e.evaluate();if(!i.confident)return deopt(i.deopt,t);r.push(i.value)}return r}if(e.isObjectExpression()){const r={},i=e.get("properties");for(const e of i){if(e.isObjectMethod()||e.isSpreadElement())return deopt(e,t);let i=e.get("key");if(e.node.computed){if(i=i.evaluate(),!i.confident)return deopt(i.deopt,t);i=i.value}else i=i.isIdentifier()?i.node.name:i.node.value;let n=e.get("value").evaluate();if(!n.confident)return deopt(n.deopt,t);n=n.value,r[i]=n}return r}if(e.isLogicalExpression()){const r=t.confident,i=evaluateCached(e.get("left"),t),s=t.confident;t.confident=r;const a=evaluateCached(e.get("right"),t),o=t.confident;switch(n.operator){case"||":if(t.confident=s&&(!!i||o),!t.confident)return;return i||a;case"&&":if(t.confident=s&&(!i||o),!t.confident)return;return i&&a}}if(e.isBinaryExpression()){const r=evaluateCached(e.get("left"),t);if(!t.confident)return;const i=evaluateCached(e.get("right"),t);if(!t.confident)return;switch(n.operator){case"-":return r-i;case"+":return r+i;case"/":return r/i;case"*":return r*i;case"%":return r%i;case"**":return Math.pow(r,i);case"<":return r<i;case">":return r>i;case"<=":return r<=i;case">=":return r>=i;case"==":return r==i;case"!=":return r!=i;case"===":return r===i;case"!==":return r!==i;case"|":return r|i;case"&":return r&i;case"^":return r^i;case"<<":return r<<i;case">>":return r>>i;case">>>":return r>>>i}}if(e.isCallExpression()){const s=e.get("callee");let a,o;if(s.isIdentifier()&&!e.scope.getBinding(s.node.name,!0)&&r.indexOf(s.node.name)>=0&&(o=global[n.callee.name]),s.isMemberExpression()){const e=s.get("object"),t=s.get("property");if(e.isIdentifier()&&t.isIdentifier()&&r.indexOf(e.node.name)>=0&&i.indexOf(t.node.name)<0&&(a=global[e.node.name],o=a[t.node.name]),e.isLiteral()&&t.isIdentifier()){const r=typeof e.node.value;"string"!==r&&"number"!==r||(a=e.node.value,o=a[t.node.name])}}if(o){const r=e.get("arguments").map((e=>evaluateCached(e,t)));if(!t.confident)return;return o.apply(a,r)}}deopt(e,t)}(e,t);return t.confident&&(a.resolved=!0,a.value=o),o}}function evaluateQuasis(e,t,r,i=!1){let n="",s=0;const a=e.get("expressions");for(const e of t){if(!r.confident)break;n+=i?e.value.raw:e.value.cooked;const t=a[s++];t&&(n+=String(evaluateCached(t,r)))}if(r.confident)return n}},4189:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOpposite=function(){if("left"===this.key)return this.getSibling("right");if("right"===this.key)return this.getSibling("left")},t.getCompletionRecords=function(){let e=[];if(this.isIfStatement())e=addCompletionRecords(this.get("consequent"),e),e=addCompletionRecords(this.get("alternate"),e);else if(this.isDoExpression()||this.isFor()||this.isWhile())e=addCompletionRecords(this.get("body"),e);else if(this.isProgram()||this.isBlockStatement())e=addCompletionRecords(this.get("body").pop(),e);else{if(this.isFunction())return this.get("body").getCompletionRecords();this.isTryStatement()?(e=addCompletionRecords(this.get("block"),e),e=addCompletionRecords(this.get("handler"),e)):this.isCatchClause()?e=addCompletionRecords(this.get("body"),e):this.isSwitchStatement()?e=function(e,t){let r=!0;for(let i=e.length-1;i>=0;i--){const n=e[i].get("consequent");let s=findBreak(n);if(s){for(;0===s.key&&s.parentPath.isBlockStatement();)s=s.parentPath;const e=s.getPrevSibling();s.key>0&&(e.isExpressionStatement()||e.isBlockStatement())?(t=addCompletionRecords(e,t),s.remove()):(s.replaceWith(s.scope.buildUndefinedNode()),t=addCompletionRecords(s,t))}else if(r){const statementFinder=e=>!e.isBlockStatement()||e.get("body").some(statementFinder);n.some(statementFinder)&&(t=addCompletionRecords(n[n.length-1],t),r=!1)}}return t}(this.get("cases"),e):e.push(this)}return e},t.getSibling=function(e){return n.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e})},t.getPrevSibling=function(){return this.getSibling(this.key-1)},t.getNextSibling=function(){return this.getSibling(this.key+1)},t.getAllNextSiblings=function(){let e=this.key,t=this.getSibling(++e);const r=[];for(;t.node;)r.push(t),t=this.getSibling(++e);return r},t.getAllPrevSiblings=function(){let e=this.key,t=this.getSibling(--e);const r=[];for(;t.node;)r.push(t),t=this.getSibling(--e);return r},t.get=function(e,t){!0===t&&(t=this.context);const r=e.split(".");return 1===r.length?this._getKey(e,t):this._getPattern(r,t)},t._getKey=function(e,t){const r=this.node,i=r[e];return Array.isArray(i)?i.map(((s,a)=>n.default.get({listKey:e,parentPath:this,parent:r,container:i,key:a}).setContext(t))):n.default.get({parentPath:this,parent:r,container:r,key:e}).setContext(t)},t._getPattern=function(e,t){let r=this;for(const i of e)r="."===i?r.parentPath:Array.isArray(r)?r[i]:r.get(i,t);return r},t.getBindingIdentifiers=function(e){return s.getBindingIdentifiers(this.node,e)},t.getOuterBindingIdentifiers=function(e){return s.getOuterBindingIdentifiers(this.node,e)},t.getBindingIdentifierPaths=function(e=!1,t=!1){let r=[].concat(this);const i=Object.create(null);for(;r.length;){const n=r.shift();if(!n)continue;if(!n.node)continue;const a=s.getBindingIdentifiers.keys[n.node.type];if(n.isIdentifier())if(e){(i[n.node.name]=i[n.node.name]||[]).push(n)}else i[n.node.name]=n;else if(n.isExportDeclaration()){const e=n.get("declaration");e.isDeclaration()&&r.push(e)}else{if(t){if(n.isFunctionDeclaration()){r.push(n.get("id"));continue}if(n.isFunctionExpression())continue}if(a)for(let e=0;e<a.length;e++){const t=a[e],i=n.get(t);(Array.isArray(i)||i.node)&&(r=r.concat(i))}}}return i},t.getOuterBindingIdentifierPaths=function(e){return this.getBindingIdentifierPaths(e,!0)};var i,n=(i=r(706))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function addCompletionRecords(e,t){return e?t.concat(e.getCompletionRecords()):t}function findBreak(e){let t;Array.isArray(e)||(e=[e]);for(const n of e){if(n.isDoExpression()||n.isProgram()||n.isBlockStatement()||n.isCatchClause()||n.isLabeledStatement())t=findBreak(n.get("body"));else if(n.isIfStatement()){var r;t=null!=(r=findBreak(n.get("consequent")))?r:findBreak(n.get("alternate"))}else if(n.isTryStatement()){var i;t=null!=(i=findBreak(n.get("block")))?i:findBreak(n.get("handler"))}else n.isBreakStatement()&&(t=n);if(t)return t}return null}},706:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SHOULD_SKIP=t.SHOULD_STOP=t.REMOVED=void 0;var i=_interopRequireWildcard(r(1025)),n=_interopRequireDefault(r(4987)),s=_interopRequireDefault(r(1910)),a=_interopRequireDefault(r(9760)),o=_interopRequireWildcard(r(1710)),l=r(1826),c=_interopRequireDefault(r(5386)),u=_interopRequireWildcard(r(4852)),p=_interopRequireWildcard(r(3078)),d=_interopRequireWildcard(r(4638)),h=_interopRequireWildcard(r(5635)),f=_interopRequireWildcard(r(7926)),m=_interopRequireWildcard(r(5201)),y=_interopRequireWildcard(r(7036)),T=_interopRequireWildcard(r(6788)),g=_interopRequireWildcard(r(9613)),b=_interopRequireWildcard(r(4189)),S=_interopRequireWildcard(r(7334));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}const x=(0,n.default)("babel");t.REMOVED=1;t.SHOULD_STOP=2;t.SHOULD_SKIP=4;class P{constructor(e,t){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this.parent=t,this.hub=e,this.data=null,this.context=null,this.scope=null}static get({hub:e,parentPath:t,parent:r,container:i,listKey:n,key:s}){if(!e&&t&&(e=t.hub),!r)throw new Error("To get a node path the parent needs to exist");const a=i[s],o=l.path.get(r)||[];let c;l.path.has(r)||l.path.set(r,o);for(let e=0;e<o.length;e++){const t=o[e];if(t.node===a){c=t;break}}return c||(c=new P(e,r),o.push(c)),c.setup(t,i,n,s),c}getScope(e){return this.isScope()?new a.default(this):e}setData(e,t){return null==this.data&&(this.data=Object.create(null)),this.data[e]=t}getData(e,t){null==this.data&&(this.data=Object.create(null));let r=this.data[e];return void 0===r&&void 0!==t&&(r=this.data[e]=t),r}buildCodeFrameError(e,t=SyntaxError){return this.hub.buildError(this.node,e,t)}traverse(e,t){(0,s.default)(this.node,e,this.scope,t,this)}set(e,t){o.validate(this.node,e,t),this.node[e]=t}getPathLocation(){const e=[];let t=this;do{let r=t.key;t.inList&&(r=`${t.listKey}[${r}]`),e.unshift(r)}while(t=t.parentPath);return e.join(".")}debug(e){x.enabled&&x(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,c.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}get shouldSkip(){return!!(4&this._traverseFlags)}set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}get shouldStop(){return!!(2&this._traverseFlags)}set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}get removed(){return!!(1&this._traverseFlags)}set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}}t.default=P,Object.assign(P.prototype,u,p,d,h,f,m,y,T,g,b,S);for(const e of o.TYPES){const t=`is${e}`,r=o[t];P.prototype[t]=function(e){return r(this.node,e)},P.prototype[`assert${e}`]=function(t){if(!r(this.node,t))throw new TypeError(`Expected node path of type ${e}`)}}for(const e of Object.keys(i)){if("_"===e[0])continue;o.TYPES.indexOf(e)<0&&o.TYPES.push(e);const t=i[e];P.prototype[`is${e}`]=function(e){return t.checkPath(this,e)}}},3078:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTypeAnnotation=function(){if(this.typeAnnotation)return this.typeAnnotation;let e=this._getTypeAnnotation()||n.anyTypeAnnotation();n.isTypeAnnotation(e)&&(e=e.typeAnnotation);return this.typeAnnotation=e},t._getTypeAnnotation=function(){var e;const t=this.node;if(!t){if("init"===this.key&&this.parentPath.isVariableDeclarator()){const e=this.parentPath.parentPath,t=e.parentPath;return"left"===e.key&&t.isForInStatement()?n.stringTypeAnnotation():"left"===e.key&&t.isForOfStatement()?n.anyTypeAnnotation():n.voidTypeAnnotation()}return}if(t.typeAnnotation)return t.typeAnnotation;let r=i[t.type];if(r)return r.call(this,t);if(r=i[this.parentPath.type],null==(e=r)?void 0:e.validParent)return this.parentPath.getTypeAnnotation()},t.isBaseType=function(e,t){return _isBaseType(e,this.getTypeAnnotation(),t)},t.couldBeBaseType=function(e){const t=this.getTypeAnnotation();if(n.isAnyTypeAnnotation(t))return!0;if(n.isUnionTypeAnnotation(t)){for(const r of t.types)if(n.isAnyTypeAnnotation(r)||_isBaseType(e,r,!0))return!0;return!1}return _isBaseType(e,t,!0)},t.baseTypeStrictlyMatches=function(e){const t=this.getTypeAnnotation();if(e=e.getTypeAnnotation(),!n.isAnyTypeAnnotation(t)&&n.isFlowBaseAnnotation(t))return e.type===t.type},t.isGenericType=function(e){const t=this.getTypeAnnotation();return n.isGenericTypeAnnotation(t)&&n.isIdentifier(t.id,{name:e})};var i=_interopRequireWildcard(r(4606)),n=_interopRequireWildcard(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}function _isBaseType(e,t,r){if("string"===e)return n.isStringTypeAnnotation(t);if("number"===e)return n.isNumberTypeAnnotation(t);if("boolean"===e)return n.isBooleanTypeAnnotation(t);if("any"===e)return n.isAnyTypeAnnotation(t);if("mixed"===e)return n.isMixedTypeAnnotation(t);if("empty"===e)return n.isEmptyTypeAnnotation(t);if("void"===e)return n.isVoidTypeAnnotation(t);if(r)return!1;throw new Error(`Unknown base type ${e}`)}},7875:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!this.isReferenced())return;const t=this.scope.getBinding(e.name);if(t)return t.identifier.typeAnnotation?t.identifier.typeAnnotation:function(e,t,r){const n=[],s=[];let a=getConstantViolationsBefore(e,t,s);const o=getConditionalAnnotation(e,t,r);if(o){const t=getConstantViolationsBefore(e,o.ifStatement);a=a.filter((e=>t.indexOf(e)<0)),n.push(o.typeAnnotation)}if(a.length){a=a.concat(s);for(const e of a)n.push(e.getTypeAnnotation())}if(!n.length)return;if(i.isTSTypeAnnotation(n[0])&&i.createTSUnionType)return i.createTSUnionType(n);if(i.createFlowUnionType)return i.createFlowUnionType(n);return i.createUnionTypeAnnotation(n)}(t,this,e.name);if("undefined"===e.name)return i.voidTypeAnnotation();if("NaN"===e.name||"Infinity"===e.name)return i.numberTypeAnnotation();e.name};var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function getConstantViolationsBefore(e,t,r){const i=e.constantViolations.slice();return i.unshift(e.path),i.filter((e=>{const i=(e=e.resolve())._guessExecutionStatusRelativeTo(t);return r&&"unknown"===i&&r.push(e),"before"===i}))}function inferAnnotationFromBinaryExpression(e,t){const r=t.node.operator,n=t.get("right").resolve(),s=t.get("left").resolve();let a,o,l;if(s.isIdentifier({name:e})?a=n:n.isIdentifier({name:e})&&(a=s),a)return"==="===r?a.getTypeAnnotation():i.BOOLEAN_NUMBER_BINARY_OPERATORS.indexOf(r)>=0?i.numberTypeAnnotation():void 0;if("==="!==r&&"=="!==r)return;if(s.isUnaryExpression({operator:"typeof"})?(o=s,l=n):n.isUnaryExpression({operator:"typeof"})&&(o=n,l=s),!o)return;if(!o.get("argument").isIdentifier({name:e}))return;if(l=l.resolve(),!l.isLiteral())return;const c=l.node.value;return"string"==typeof c?i.createTypeAnnotationBasedOnTypeof(c):void 0}function getConditionalAnnotation(e,t,r){const n=function(e,t,r){let i;for(;i=t.parentPath;){if(i.isIfStatement()||i.isConditionalExpression()){if("test"===t.key)return;return i}if(i.isFunction()&&i.parentPath.scope.getBinding(r)!==e)return;t=i}}(e,t,r);if(!n)return;const s=[n.get("test")],a=[];for(let e=0;e<s.length;e++){const t=s[e];if(t.isLogicalExpression())"&&"===t.node.operator&&(s.push(t.get("left")),s.push(t.get("right")));else if(t.isBinaryExpression()){const e=inferAnnotationFromBinaryExpression(r,t);e&&a.push(e)}}return a.length?i.isTSTypeAnnotation(a[0])&&i.createTSUnionType?{typeAnnotation:i.createTSUnionType(a),ifStatement:n}:i.createFlowUnionType?{typeAnnotation:i.createFlowUnionType(a),ifStatement:n}:{typeAnnotation:i.createUnionTypeAnnotation(a),ifStatement:n}:getConditionalAnnotation(n,r)}},4606:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VariableDeclarator=function(){var e;if(!this.get("id").isIdentifier())return;const t=this.get("init");let r=t.getTypeAnnotation();"AnyTypeAnnotation"===(null==(e=r)?void 0:e.type)&&t.isCallExpression()&&t.get("callee").isIdentifier({name:"Array"})&&!t.scope.hasBinding("Array",!0)&&(r=ArrayExpression());return r},t.TypeCastExpression=TypeCastExpression,t.NewExpression=function(e){if(this.get("callee").isIdentifier())return n.genericTypeAnnotation(e.callee)},t.TemplateLiteral=function(){return n.stringTypeAnnotation()},t.UnaryExpression=function(e){const t=e.operator;if("void"===t)return n.voidTypeAnnotation();if(n.NUMBER_UNARY_OPERATORS.indexOf(t)>=0)return n.numberTypeAnnotation();if(n.STRING_UNARY_OPERATORS.indexOf(t)>=0)return n.stringTypeAnnotation();if(n.BOOLEAN_UNARY_OPERATORS.indexOf(t)>=0)return n.booleanTypeAnnotation()},t.BinaryExpression=function(e){const t=e.operator;if(n.NUMBER_BINARY_OPERATORS.indexOf(t)>=0)return n.numberTypeAnnotation();if(n.BOOLEAN_BINARY_OPERATORS.indexOf(t)>=0)return n.booleanTypeAnnotation();if("+"===t){const e=this.get("right"),t=this.get("left");return t.isBaseType("number")&&e.isBaseType("number")?n.numberTypeAnnotation():t.isBaseType("string")||e.isBaseType("string")?n.stringTypeAnnotation():n.unionTypeAnnotation([n.stringTypeAnnotation(),n.numberTypeAnnotation()])}},t.LogicalExpression=function(){const e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];if(n.isTSTypeAnnotation(e[0])&&n.createTSUnionType)return n.createTSUnionType(e);if(n.createFlowUnionType)return n.createFlowUnionType(e);return n.createUnionTypeAnnotation(e)},t.ConditionalExpression=function(){const e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];if(n.isTSTypeAnnotation(e[0])&&n.createTSUnionType)return n.createTSUnionType(e);if(n.createFlowUnionType)return n.createFlowUnionType(e);return n.createUnionTypeAnnotation(e)},t.SequenceExpression=function(){return this.get("expressions").pop().getTypeAnnotation()},t.ParenthesizedExpression=function(){return this.get("expression").getTypeAnnotation()},t.AssignmentExpression=function(){return this.get("right").getTypeAnnotation()},t.UpdateExpression=function(e){const t=e.operator;if("++"===t||"--"===t)return n.numberTypeAnnotation()},t.StringLiteral=function(){return n.stringTypeAnnotation()},t.NumericLiteral=function(){return n.numberTypeAnnotation()},t.BooleanLiteral=function(){return n.booleanTypeAnnotation()},t.NullLiteral=function(){return n.nullLiteralTypeAnnotation()},t.RegExpLiteral=function(){return n.genericTypeAnnotation(n.identifier("RegExp"))},t.ObjectExpression=function(){return n.genericTypeAnnotation(n.identifier("Object"))},t.ArrayExpression=ArrayExpression,t.RestElement=RestElement,t.ClassDeclaration=t.ClassExpression=t.FunctionDeclaration=t.ArrowFunctionExpression=t.FunctionExpression=function(){return n.genericTypeAnnotation(n.identifier("Function"))},t.CallExpression=function(){const{callee:e}=this.node;if(o(e))return n.arrayTypeAnnotation(n.stringTypeAnnotation());if(a(e)||l(e))return n.arrayTypeAnnotation(n.anyTypeAnnotation());if(c(e))return n.arrayTypeAnnotation(n.tupleTypeAnnotation([n.stringTypeAnnotation(),n.anyTypeAnnotation()]));return resolveCall(this.get("callee"))},t.TaggedTemplateExpression=function(){return resolveCall(this.get("tag"))},Object.defineProperty(t,"Identifier",{enumerable:!0,get:function(){return s.default}});var i,n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710)),s=(i=r(7875))&&i.__esModule?i:{default:i};function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function TypeCastExpression(e){return e.typeAnnotation}function ArrayExpression(){return n.genericTypeAnnotation(n.identifier("Array"))}function RestElement(){return ArrayExpression()}TypeCastExpression.validParent=!0,RestElement.validParent=!0;const a=n.buildMatchMemberExpression("Array.from"),o=n.buildMatchMemberExpression("Object.keys"),l=n.buildMatchMemberExpression("Object.values"),c=n.buildMatchMemberExpression("Object.entries");function resolveCall(e){if((e=e.resolve()).isFunction()){if(e.is("async"))return e.is("generator")?n.genericTypeAnnotation(n.identifier("AsyncIterator")):n.genericTypeAnnotation(n.identifier("Promise"));if(e.node.returnType)return e.node.returnType}}},5201:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchesPattern=function(e,t){return i.matchesPattern(this.node,e,t)},t.has=has,t.isStatic=function(){return this.scope.isStatic(this.node)},t.isnt=function(e){return!this.has(e)},t.equals=function(e,t){return this.node[e]===t},t.isNodeType=function(e){return i.isType(this.type,e)},t.canHaveVariableDeclarationOrExpression=function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},t.canSwapBetweenExpressionAndStatement=function(e){if("body"!==this.key||!this.parentPath.isArrowFunctionExpression())return!1;if(this.isExpression())return i.isBlockStatement(e);if(this.isBlockStatement())return i.isExpression(e);return!1},t.isCompletionRecord=function(e){let t=this,r=!0;do{const i=t.container;if(t.isFunction()&&!r)return!!e;if(r=!1,Array.isArray(i)&&t.key!==i.length-1)return!1}while((t=t.parentPath)&&!t.isProgram());return!0},t.isStatementOrBlock=function(){return!this.parentPath.isLabeledStatement()&&!i.isBlockStatement(this.container)&&i.STATEMENT_OR_BLOCK_KEYS.includes(this.key)},t.referencesImport=function(e,t){if(!this.isReferencedIdentifier())return!1;const r=this.scope.getBinding(this.node.name);if(!r||"module"!==r.kind)return!1;const i=r.path,n=i.parentPath;if(!n.isImportDeclaration())return!1;if(n.node.source.value!==e)return!1;if(!t)return!0;if(i.isImportDefaultSpecifier()&&"default"===t)return!0;if(i.isImportNamespaceSpecifier()&&"*"===t)return!0;if(i.isImportSpecifier()&&i.node.imported.name===t)return!0;return!1},t.getSource=function(){const e=this.node;if(e.end){const t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""},t.willIMaybeExecuteBefore=function(e){return"after"!==this._guessExecutionStatusRelativeTo(e)},t._guessExecutionStatusRelativeTo=function(e){const t={this:getOuterFunction(this),target:getOuterFunction(e)};if(t.target.node!==t.this.node)return this._guessExecutionStatusRelativeToDifferentFunctions(t.target);const r={target:e.getAncestry(),this:this.getAncestry()};if(r.target.indexOf(this)>=0)return"after";if(r.this.indexOf(e)>=0)return"before";let n;const s={target:0,this:0};for(;!n&&s.this<r.this.length;){const e=r.this[s.this];s.target=r.target.indexOf(e),s.target>=0?n=e:s.this++}if(!n)throw new Error("Internal Babel error - The two compared nodes don\'t appear to belong to the same program.");if(isExecutionUncertainInList(r.this,s.this-1)||isExecutionUncertainInList(r.target,s.target-1))return"unknown";const a={this:r.this[s.this-1],target:r.target[s.target-1]};if(a.target.listKey&&a.this.listKey&&a.target.container===a.this.container)return a.target.key>a.this.key?"before":"after";const o=i.VISITOR_KEYS[n.type],l={this:o.indexOf(a.this.parentKey),target:o.indexOf(a.target.parentKey)};return l.target>l.this?"before":"after"},t._guessExecutionStatusRelativeToDifferentFunctions=function(e){if(!e.isFunctionDeclaration()||e.parentPath.isExportDeclaration())return"unknown";const t=e.scope.getBinding(e.node.id.name);if(!t.references)return"before";const r=t.referencePaths;let i;for(const t of r){if(!!t.find((t=>t.node===e.node)))continue;if("callee"!==t.key||!t.parentPath.isCallExpression())return"unknown";if(s.has(t.node))continue;s.add(t.node);const r=this._guessExecutionStatusRelativeTo(t);if(s.delete(t.node),i&&i!==r)return"unknown";i=r}return i},t.resolve=function(e,t){return this._resolve(e,t)||this},t._resolve=function(e,t){if(t&&t.indexOf(this)>=0)return;if((t=t||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){const r=this.scope.getBinding(this.node.name);if(!r)return;if(!r.constant)return;if("module"===r.kind)return;if(r.path!==this){const i=r.path.resolve(e,t);if(this.find((e=>e.node===i.node)))return;return i}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){const r=this.toComputedKey();if(!i.isLiteral(r))return;const n=r.value,s=this.get("object").resolve(e,t);if(s.isObjectExpression()){const r=s.get("properties");for(const i of r){if(!i.isProperty())continue;const r=i.get("key");let s=i.isnt("computed")&&r.isIdentifier({name:n});if(s=s||r.isLiteral({value:n}),s)return i.get("value").resolve(e,t)}}else if(s.isArrayExpression()&&!isNaN(+n)){const r=s.get("elements")[n];if(r)return r.resolve(e,t)}}}},t.isConstantExpression=function(){if(this.isIdentifier()){const e=this.scope.getBinding(this.node.name);return!!e&&e.constant}if(this.isLiteral())return!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every((e=>e.isConstantExpression())));if(this.isUnaryExpression())return"void"===this.get("operator").node&&this.get("argument").isConstantExpression();if(this.isBinaryExpression())return this.get("left").isConstantExpression()&&this.get("right").isConstantExpression();return!1},t.isInStrictMode=function(){const e=this.isProgram()?this:this.parentPath;return!!e.find((e=>{if(e.isProgram({sourceType:"module"}))return!0;if(e.isClass())return!0;if(!e.isProgram()&&!e.isFunction())return!1;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement())return!1;let{node:t}=e;e.isFunction()&&(t=t.body);for(const e of t.directives)if("use strict"===e.value.value)return!0}))},t.is=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function has(e){const t=this.node&&this.node[e];return t&&Array.isArray(t)?!!t.length:!!t}const n=has;function getOuterFunction(e){return(e.scope.getFunctionParent()||e.scope.getProgramParent()).path}function isExecutionUncertain(e,t){switch(e){case"LogicalExpression":case"AssignmentPattern":return"right"===t;case"ConditionalExpression":case"IfStatement":return"consequent"===t||"alternate"===t;case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return"body"===t;case"ForStatement":return"body"===t||"update"===t;case"SwitchStatement":return"cases"===t;case"TryStatement":return"handler"===t;case"OptionalMemberExpression":return"property"===t;case"OptionalCallExpression":return"arguments"===t;default:return!1}}function isExecutionUncertainInList(e,t){for(let r=0;r<t;r++){const t=e[r];if(isExecutionUncertain(t.parent.type,t.parentKey))return!0}return!1}t.is=n;const s=new WeakSet},6019:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}const n={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&i.react.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if("this"===e.node.name){let r=e.scope;do{if(r.path.isFunction()&&!r.path.isArrowFunctionExpression())break}while(r=r.parent);r&&t.breakOnScopePaths.push(r.path)}const r=e.scope.getBinding(e.node.name);if(r){for(const i of r.constantViolations)if(i.scope!==r.path.scope)return t.mutableBinding=!0,void e.stop();r===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=r)}}};t.default=class{constructor(e,t){this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=t,this.path=e,this.attachAfter=!1}isCompatibleScope(e){for(const t of Object.keys(this.bindings)){const r=this.bindings[t];if(!e.bindingIdentifierEquals(t,r.identifier))return!1}return!0}getCompatibleScopes(){let e=this.path.scope;do{if(!this.isCompatibleScope(e))break;if(this.scopes.push(e),this.breakOnScopePaths.indexOf(e.path)>=0)break}while(e=e.parent)}getAttachmentPath(){let e=this._getAttachmentPath();if(!e)return;let t=e.scope;if(t.path===e&&(t=e.scope.parent),t.path.isProgram()||t.path.isFunction())for(const r of Object.keys(this.bindings)){if(!t.hasOwnBinding(r))continue;const i=this.bindings[r];if("param"===i.kind||"params"===i.path.parentKey)continue;if(this.getAttachmentParentForPath(i.path).key>=e.key){this.attachAfter=!0,e=i.path;for(const t of i.constantViolations)this.getAttachmentParentForPath(t).key>e.key&&(e=t)}}return e}_getAttachmentPath(){const e=this.scopes.pop();if(e)if(e.path.isFunction()){if(!this.hasOwnParamBindings(e))return this.getNextScopeAttachmentParent();{if(this.scope===e)return;const t=e.path.get("body").get("body");for(let e=0;e<t.length;e++)if(!t[e].node._blockHoist)return t[e]}}else if(e.path.isProgram())return this.getNextScopeAttachmentParent()}getNextScopeAttachmentParent(){const e=this.scopes.pop();if(e)return this.getAttachmentParentForPath(e.path)}getAttachmentParentForPath(e){do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())return e}while(e=e.parentPath)}hasOwnParamBindings(e){for(const t of Object.keys(this.bindings)){if(!e.hasOwnBinding(t))continue;const r=this.bindings[t];if("param"===r.kind&&r.constant)return!0}return!1}run(){if(this.path.traverse(n,this),this.mutableBinding)return;this.getCompatibleScopes();const e=this.getAttachmentPath();if(!e)return;if(e.getFunctionParent()===this.path.getFunctionParent())return;let t=e.scope.generateUidIdentifier("ref");const r=i.variableDeclarator(t,this.path.node),s=this.attachAfter?"insertAfter":"insertBefore",[a]=e[s]([e.isVariableDeclarator()?r:i.variableDeclaration("var",[r])]),o=this.path.parentPath;return o.isJSXElement()&&this.path.container===o.node.children&&(t=i.JSXExpressionContainer(t)),this.path.replaceWith(i.cloneNode(t)),e.isVariableDeclarator()?a.get("init"):a.get("declarations.0.init")}}},8004:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hooks=void 0;t.hooks=[function(e,t){if("test"===e.key&&(t.isWhile()||t.isSwitchCase())||"declaration"===e.key&&t.isExportDeclaration()||"body"===e.key&&t.isLabeledStatement()||"declarations"===e.listKey&&t.isVariableDeclaration()&&1===t.node.declarations.length||"expression"===e.key&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&1===t.node.expressions.length)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return"left"===e.key?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&("consequent"===e.key||"alternate"===e.key)||"body"===e.key&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",body:[]}),!0}]},1025:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ForAwaitStatement=t.NumericLiteralTypeAnnotation=t.ExistentialTypeParam=t.SpreadProperty=t.RestProperty=t.Flow=t.Pure=t.Generated=t.User=t.Var=t.BlockScoped=t.Referenced=t.Scope=t.Expression=t.Statement=t.BindingIdentifier=t.ReferencedMemberExpression=t.ReferencedIdentifier=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}const n={types:["Identifier","JSXIdentifier"],checkPath(e,t){const{node:r,parent:n}=e;if(!i.isIdentifier(r,t)&&!i.isJSXMemberExpression(n,t)){if(!i.isJSXIdentifier(r,t))return!1;if(i.react.isCompatTag(r.name))return!1}return i.isReferenced(r,n,e.parentPath.parent)}};t.ReferencedIdentifier=n;const s={types:["MemberExpression"],checkPath:({node:e,parent:t})=>i.isMemberExpression(e)&&i.isReferenced(e,t)};t.ReferencedMemberExpression=s;const a={types:["Identifier"],checkPath(e){const{node:t,parent:r}=e,n=e.parentPath.parent;return i.isIdentifier(t)&&i.isBinding(t,r,n)}};t.BindingIdentifier=a;const o={types:["Statement"],checkPath({node:e,parent:t}){if(i.isStatement(e)){if(i.isVariableDeclaration(e)){if(i.isForXStatement(t,{left:e}))return!1;if(i.isForStatement(t,{init:e}))return!1}return!0}return!1}};t.Statement=o;const l={types:["Expression"],checkPath:e=>e.isIdentifier()?e.isReferencedIdentifier():i.isExpression(e.node)};t.Expression=l;const c={types:["Scopable","Pattern"],checkPath:e=>i.isScope(e.node,e.parent)};t.Scope=c;const u={checkPath:e=>i.isReferenced(e.node,e.parent)};t.Referenced=u;const p={checkPath:e=>i.isBlockScoped(e.node)};t.BlockScoped=p;const d={types:["VariableDeclaration"],checkPath:e=>i.isVar(e.node)};t.Var=d;const h={checkPath:e=>e.node&&!!e.node.loc};t.User=h;const f={checkPath:e=>!e.isUser()};t.Generated=f;const m={checkPath:(e,t)=>e.scope.isPure(e.node,t)};t.Pure=m;const y={types:["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],checkPath:({node:e})=>!!i.isFlow(e)||(i.isImportDeclaration(e)?"type"===e.importKind||"typeof"===e.importKind:i.isExportDeclaration(e)?"type"===e.exportKind:!!i.isImportSpecifier(e)&&("type"===e.importKind||"typeof"===e.importKind))};t.Flow=y;const T={types:["RestElement"],checkPath:e=>e.parentPath&&e.parentPath.isObjectPattern()};t.RestProperty=T;const g={types:["RestElement"],checkPath:e=>e.parentPath&&e.parentPath.isObjectExpression()};t.SpreadProperty=g;t.ExistentialTypeParam={types:["ExistsTypeAnnotation"]};t.NumericLiteralTypeAnnotation={types:["NumberLiteralTypeAnnotation"]};const b={types:["ForOfStatement"],checkPath:({node:e})=>!0===e.await};t.ForAwaitStatement=b},9613:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.insertBefore=function(e){this._assertUnremoved(),e=this._verifyNodeList(e);const{parentPath:t}=this;if(t.isExpressionStatement()||t.isLabeledStatement()||t.isExportNamedDeclaration()||t.isExportDefaultDeclaration()&&this.isDeclaration())return t.insertBefore(e);if(this.isNodeType("Expression")&&!this.isJSXElement()||t.isForStatement()&&"init"===this.key)return this.node&&e.push(this.node),this.replaceExpressionWithStatements(e);if(Array.isArray(this.container))return this._containerInsertBefore(e);if(this.isStatementOrBlock()){const t=this.node&&(!this.isExpressionStatement()||null!=this.node.expression);return this.replaceWith(a.blockStatement(t?[this.node]:[])),this.unshiftContainer("body",e)}throw new Error("We don\'t know what to do with this node type. We were previously a Statement but we can\'t fit in here?")},t._containerInsert=function(e,t){this.updateSiblingKeys(e,t.length);const r=[];this.container.splice(e,0,...t);for(let i=0;i<t.length;i++){const t=e+i,n=this.getSibling(t);r.push(n),this.context&&this.context.queue&&n.pushContext(this.context)}const i=this._getQueueContexts();for(const e of r){e.setScope(),e.debug("Inserted.");for(const t of i)t.maybeQueue(e,!0)}return r},t._containerInsertBefore=function(e){return this._containerInsert(this.key,e)},t._containerInsertAfter=function(e){return this._containerInsert(this.key+1,e)},t.insertAfter=function(e){this._assertUnremoved(),e=this._verifyNodeList(e);const{parentPath:t}=this;if(t.isExpressionStatement()||t.isLabeledStatement()||t.isExportNamedDeclaration()||t.isExportDefaultDeclaration()&&this.isDeclaration())return t.insertAfter(e.map((e=>a.isExpression(e)?a.expressionStatement(e):e)));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!t.isJSXElement()||t.isForStatement()&&"init"===this.key){if(this.node){let{scope:r}=this;t.isMethod({computed:!0,key:this.node})&&(r=r.parent);const i=r.generateDeclaredUidIdentifier();e.unshift(a.expressionStatement(a.assignmentExpression("=",a.cloneNode(i),this.node))),e.push(a.expressionStatement(a.cloneNode(i)))}return this.replaceExpressionWithStatements(e)}if(Array.isArray(this.container))return this._containerInsertAfter(e);if(this.isStatementOrBlock()){const t=this.node&&(!this.isExpressionStatement()||null!=this.node.expression);return this.replaceWith(a.blockStatement(t?[this.node]:[])),this.pushContainer("body",e)}throw new Error("We don\'t know what to do with this node type. We were previously a Statement but we can\'t fit in here?")},t.updateSiblingKeys=function(e,t){if(!this.parent)return;const r=i.path.get(this.parent);for(let i=0;i<r.length;i++){const n=r[i];n.key>=e&&(n.key+=t)}},t._verifyNodeList=function(e){if(!e)return[];e.constructor!==Array&&(e=[e]);for(let t=0;t<e.length;t++){const r=e[t];let i;if(r?"object"!=typeof r?i="contains a non-object node":r.type?r instanceof s.default&&(i="has a NodePath when it expected a raw object"):i="without a type":i="has falsy node",i){const e=Array.isArray(r)?"array":typeof r;throw new Error(`Node list ${i} with the index of ${t} and type of ${e}`)}}return e},t.unshiftContainer=function(e,t){this._assertUnremoved(),t=this._verifyNodeList(t);return s.default.get({parentPath:this,parent:this.node,container:this.node[e],listKey:e,key:0})._containerInsertBefore(t)},t.pushContainer=function(e,t){this._assertUnremoved(),t=this._verifyNodeList(t);const r=this.node[e];return s.default.get({parentPath:this,parent:this.node,container:r,listKey:e,key:r.length}).replaceWithMultiple(t)},t.hoist=function(e=this.scope){return new n.default(this,e).run()};var i=r(1826),n=_interopRequireDefault(r(6019)),s=_interopRequireDefault(r(706)),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},6788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.remove=function(){var e;this._assertUnremoved(),this.resync(),(null==(e=this.opts)?void 0:e.noScope)||this._removeFromScope();if(this._callRemovalHooks())return void this._markRemoved();this.shareCommentsWithSiblings(),this._remove(),this._markRemoved()},t._removeFromScope=function(){const e=this.getBindingIdentifiers();Object.keys(e).forEach((e=>this.scope.removeBinding(e)))},t._callRemovalHooks=function(){for(const e of i.hooks)if(e(this,this.parentPath))return!0},t._remove=function(){Array.isArray(this.container)?(this.container.splice(this.key,1),this.updateSiblingKeys(this.key,-1)):this._replaceWith(null)},t._markRemoved=function(){this._traverseFlags|=n.SHOULD_SKIP|n.REMOVED,this.node=null},t._assertUnremoved=function(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")};var i=r(8004),n=r(706)},4638:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.replaceWithMultiple=function(e){this.resync(),e=this._verifyNodeList(e),o.inheritLeadingComments(e[0],this.node),o.inheritTrailingComments(e[e.length-1],this.node),this.node=this.container[this.key]=null;const t=this.insertAfter(e);this.node?this.requeue():this.remove();return t},t.replaceWithSourceString=function(e){this.resync();try{e=`(${e})`,e=(0,a.parse)(e)}catch(t){const r=t.loc;throw r&&(t.message+=" - make sure this is an expression.\\n"+(0,i.codeFrameColumns)(e,{start:{line:r.line,column:r.column+1}}),t.code="BABEL_REPLACE_SOURCE_ERROR"),t}return e=e.program.body[0].expression,n.default.removeProperties(e),this.replaceWith(e)},t.replaceWith=function(e){if(this.resync(),this.removed)throw new Error("You can\'t replace this node, we\'ve already removed it");e instanceof s.default&&(e=e.node);if(!e)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===e)return[this];if(this.isProgram()&&!o.isProgram(e))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(e))throw new Error("Don\'t use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if("string"==typeof e)throw new Error("Don\'t use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let t="";this.isNodeType("Statement")&&o.isExpression(e)&&(this.canHaveVariableDeclarationOrExpression()||this.canSwapBetweenExpressionAndStatement(e)||this.parentPath.isExportDefaultDeclaration()||(e=o.expressionStatement(e),t="expression"));if(this.isNodeType("Expression")&&o.isStatement(e)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(e))return this.replaceExpressionWithStatements([e]);const r=this.node;r&&(o.inheritsComments(e,r),o.removeComments(r));return this._replaceWith(e),this.type=e.type,this.setScope(),this.requeue(),[t?this.get(t):this]},t._replaceWith=function(e){if(!this.container)throw new ReferenceError("Container is falsy");this.inList?o.validate(this.parent,this.key,[e]):o.validate(this.parent,this.key,e);this.debug(`Replace with ${null==e?void 0:e.type}`),this.node=this.container[this.key]=e},t.replaceExpressionWithStatements=function(e){this.resync();const t=o.toSequenceExpression(e,this.scope);if(t)return this.replaceWith(t)[0].get("expressions");const r=this.getFunctionParent(),i=null==r?void 0:r.is("async"),s=o.arrowFunctionExpression([],o.blockStatement(e));this.replaceWith(o.callExpression(s,[])),this.traverse(l);const a=this.get("callee").getCompletionRecords();for(const e of a){if(!e.isExpressionStatement())continue;const t=e.findParent((e=>e.isLoop()));if(t){let r=t.getData("expressionReplacementReturnUid");if(r)r=o.identifier(r.name);else{const e=this.get("callee");r=e.scope.generateDeclaredUidIdentifier("ret"),e.get("body").pushContainer("body",o.returnStatement(o.cloneNode(r))),t.setData("expressionReplacementReturnUid",r)}e.get("expression").replaceWith(o.assignmentExpression("=",o.cloneNode(r),e.node.expression))}else e.replaceWith(o.returnStatement(e.node.expression))}const c=this.get("callee");c.arrowFunctionToExpression(),i&&n.default.hasType(this.get("callee.body").node,"AwaitExpression",o.FUNCTION_TYPES)&&(c.set("async",!0),this.replaceWith(o.awaitExpression(this.node)));return c.get("body.body")},t.replaceInline=function(e){if(this.resync(),Array.isArray(e)){if(Array.isArray(this.container)){e=this._verifyNodeList(e);const t=this._containerInsertAfter(e);return this.remove(),t}return this.replaceWithMultiple(e)}return this.replaceWith(e)};var i=r(785),n=_interopRequireDefault(r(1910)),s=_interopRequireDefault(r(706)),a=r(7493),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const l={Function(e){e.skip()},VariableDeclaration(e){if("var"!==e.node.kind)return;const t=e.getBindingIdentifiers();for(const r of Object.keys(t))e.scope.push({id:t[r]});const r=[];for(const t of e.node.declarations)t.init&&r.push(o.expressionStatement(o.assignmentExpression("=",t.id,t.init)));e.replaceWithMultiple(r)}}},2329:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class{constructor({identifier:e,scope:t,path:r,kind:i}){this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=e,this.scope=t,this.path=r,this.kind=i,this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(e){this.constant=!1,-1===this.constantViolations.indexOf(e)&&this.constantViolations.push(e)}reference(e){-1===this.referencePaths.indexOf(e)&&(this.referenced=!0,this.references++,this.referencePaths.push(e))}dereference(){this.references--,this.referenced=!!this.references}}},9760:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=_interopRequireDefault(r(1360)),n=_interopRequireDefault(r(1910)),s=_interopRequireDefault(r(2329)),a=_interopRequireDefault(r(2261)),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(1710)),l=r(1826);function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function gatherNodeParts(e,t){switch(null==e?void 0:e.type){default:if(o.isModuleDeclaration(e))if(e.source)gatherNodeParts(e.source,t);else if(e.specifiers&&e.specifiers.length)for(const r of e.specifiers)gatherNodeParts(r,t);else e.declaration&&gatherNodeParts(e.declaration,t);else o.isModuleSpecifier(e)?gatherNodeParts(e.local,t):o.isLiteral(e)&&t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":gatherNodeParts(e.object,t),gatherNodeParts(e.property,t);break;case"Identifier":case"JSXIdentifier":case"JSXOpeningElement":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":gatherNodeParts(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(const r of e.properties)gatherNodeParts(r,t);break;case"SpreadElement":case"RestElement":case"UnaryExpression":case"UpdateExpression":gatherNodeParts(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":gatherNodeParts(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),gatherNodeParts(e.argument,t);break;case"AwaitExpression":t.push("await"),gatherNodeParts(e.argument,t);break;case"AssignmentExpression":gatherNodeParts(e.left,t);break;case"VariableDeclarator":case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":case"PrivateName":gatherNodeParts(e.id,t);break;case"ParenthesizedExpression":gatherNodeParts(e.expression,t);break;case"MetaProperty":gatherNodeParts(e.meta,t),gatherNodeParts(e.property,t);break;case"JSXElement":gatherNodeParts(e.openingElement,t);break;case"JSXFragment":gatherNodeParts(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":gatherNodeParts(e.namespace,t),gatherNodeParts(e.name,t)}}const c={For(e){for(const t of o.FOR_INIT_KEYS){const r=e.get(t);if(r.isVar()){(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerBinding("var",r)}}},Declaration(e){if(e.isBlockScoped())return;if(e.isExportDeclaration()&&e.get("declaration").isDeclaration())return;(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ReferencedIdentifier(e,t){t.references.push(e)},ForXStatement(e,t){const r=e.get("left");(r.isPattern()||r.isIdentifier())&&t.constantViolations.push(e)},ExportDeclaration:{exit(e){const{node:t,scope:r}=e,i=t.declaration;if(o.isClassDeclaration(i)||o.isFunctionDeclaration(i)){const t=i.id;if(!t)return;const n=r.getBinding(t.name);n&&n.reference(e)}else if(o.isVariableDeclaration(i))for(const t of i.declarations)for(const i of Object.keys(o.getBindingIdentifiers(t))){const t=r.getBinding(i);t&&t.reference(e)}}},LabeledStatement(e){e.scope.getProgramParent().addGlobal(e.node),e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){"delete"===e.node.operator&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;t.path===e&&(t=t.parent);if(t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){const t=e.node.id.name;e.scope.bindings[t]=e.scope.parent.getBinding(t)}},Block(e){const t=e.get("body");for(const r of t)r.isFunctionDeclaration()&&e.scope.getBlockParent().registerDeclaration(r)},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){e.isFunctionExpression()&&e.has("id")&&!e.get("id").node[o.NOT_LOCAL_BINDING]&&e.scope.registerBinding("local",e.get("id"),e);const t=e.get("params");for(const r of t)e.scope.registerBinding("param",r)},ClassExpression(e){e.has("id")&&!e.get("id").node[o.NOT_LOCAL_BINDING]&&e.scope.registerBinding("local",e)}};let u=0;class p{constructor(e){const{node:t}=e,r=l.scope.get(t);if((null==r?void 0:r.path)===e)return r;l.scope.set(t,this),this.uid=u++,this.block=t,this.path=e,this.labels=new Map,this.inited=!1}get parent(){const e=this.path.findParent((e=>e.isScope()));return null==e?void 0:e.scope}get parentBlock(){return this.path.parent}get hub(){return this.path.hub}traverse(e,t,r){(0,n.default)(e,t,this,r,this.path)}generateDeclaredUidIdentifier(e){const t=this.generateUidIdentifier(e);return this.push({id:t}),o.cloneNode(t)}generateUidIdentifier(e){return o.identifier(this.generateUid(e))}generateUid(e="temp"){let t;e=o.toIdentifier(e).replace(/^_+/,"").replace(/[0-9]+$/g,"");let r=1;do{t=this._generateUid(e,r),r++}while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));const i=this.getProgramParent();return i.references[t]=!0,i.uids[t]=!0,t}_generateUid(e,t){let r=e;return t>1&&(r+=t),`_${r}`}generateUidBasedOnNode(e,t){const r=[];gatherNodeParts(e,r);let i=r.join("$");return i=i.replace(/^_/,"")||t||"ref",this.generateUid(i.slice(0,20))}generateUidIdentifierBasedOnNode(e,t){return o.identifier(this.generateUidBasedOnNode(e,t))}isStatic(e){if(o.isThisExpression(e)||o.isSuper(e))return!0;if(o.isIdentifier(e)){const t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1}maybeGenerateMemoised(e,t){if(this.isStatic(e))return null;{const r=this.generateUidIdentifierBasedOnNode(e);return t?r:(this.push({id:r}),o.cloneNode(r))}}checkBlockScopedCollisions(e,t,r,i){if("param"===t)return;if("local"===e.kind)return;if("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&("let"===t||"const"===t))throw this.hub.buildError(i,`Duplicate declaration "${r}"`,TypeError)}rename(e,t,r){const n=this.getBinding(e);if(n)return t=t||this.generateUidIdentifier(e).name,new i.default(n,e,t).rename(r)}_renameFromMap(e,t,r,i){e[t]&&(e[r]=i,e[t]=null)}dump(){const e="-".repeat(60);console.log(e);let t=this;do{console.log("#",t.block.type);for(const e of Object.keys(t.bindings)){const r=t.bindings[e];console.log(" -",e,{constant:r.constant,references:r.references,violations:r.constantViolations.length,kind:r.kind})}}while(t=t.parent);console.log(e)}toArray(e,t,r){if(o.isIdentifier(e)){const t=this.getBinding(e.name);if((null==t?void 0:t.constant)&&t.path.isGenericType("Array"))return e}if(o.isArrayExpression(e))return e;if(o.isIdentifier(e,{name:"arguments"}))return o.callExpression(o.memberExpression(o.memberExpression(o.memberExpression(o.identifier("Array"),o.identifier("prototype")),o.identifier("slice")),o.identifier("call")),[e]);let i;const n=[e];return!0===t?i="toConsumableArray":t?(n.push(o.numericLiteral(t)),i="slicedToArray"):i="toArray",r&&(n.unshift(this.hub.addHelper(i)),i="maybeArrayLike"),o.callExpression(this.hub.addHelper(i),n)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){const t=e.get("declarations");for(const r of t)this.registerBinding(e.node.kind,r)}else if(e.isClassDeclaration())this.registerBinding("let",e);else if(e.isImportDeclaration()){const t=e.get("specifiers");for(const e of t)this.registerBinding("module",e)}else if(e.isExportDeclaration()){const t=e.get("declaration");(t.isClassDeclaration()||t.isFunctionDeclaration()||t.isVariableDeclaration())&&this.registerDeclaration(t)}else this.registerBinding("unknown",e)}buildUndefinedNode(){return o.unaryExpression("void",o.numericLiteral(0),!0)}registerConstantViolation(e){const t=e.getBindingIdentifiers();for(const r of Object.keys(t)){const t=this.getBinding(r);t&&t.reassign(e)}}registerBinding(e,t,r=t){if(!e)throw new ReferenceError("no `kind`");if(t.isVariableDeclaration()){const r=t.get("declarations");for(const t of r)this.registerBinding(e,t);return}const i=this.getProgramParent(),n=t.getOuterBindingIdentifiers(!0);for(const t of Object.keys(n)){i.references[t]=!0;for(const i of n[t]){const n=this.getOwnBinding(t);if(n){if(n.identifier===i)continue;this.checkBlockScopedCollisions(n,e,t,i)}n?this.registerConstantViolation(r):this.bindings[t]=new s.default({identifier:i,scope:this,path:r,kind:e})}}}addGlobal(e){this.globals[e.name]=e}hasUid(e){let t=this;do{if(t.uids[e])return!0}while(t=t.parent);return!1}hasGlobal(e){let t=this;do{if(t.globals[e])return!0}while(t=t.parent);return!1}hasReference(e){return!!this.getProgramParent().references[e]}isPure(e,t){if(o.isIdentifier(e)){const r=this.getBinding(e.name);return!!r&&(!t||r.constant)}if(o.isClass(e))return!(e.superClass&&!this.isPure(e.superClass,t))&&this.isPure(e.body,t);if(o.isClassBody(e)){for(const r of e.body)if(!this.isPure(r,t))return!1;return!0}if(o.isBinary(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if(o.isArrayExpression(e)){for(const r of e.elements)if(!this.isPure(r,t))return!1;return!0}if(o.isObjectExpression(e)){for(const r of e.properties)if(!this.isPure(r,t))return!1;return!0}if(o.isMethod(e))return!(e.computed&&!this.isPure(e.key,t))&&("get"!==e.kind&&"set"!==e.kind);if(o.isProperty(e))return!(e.computed&&!this.isPure(e.key,t))&&this.isPure(e.value,t);if(o.isUnaryExpression(e))return this.isPure(e.argument,t);if(o.isTaggedTemplateExpression(e))return o.matchesPattern(e.tag,"String.raw")&&!this.hasBinding("String",!0)&&this.isPure(e.quasi,t);if(o.isTemplateLiteral(e)){for(const r of e.expressions)if(!this.isPure(r,t))return!1;return!0}return o.isPureish(e)}setData(e,t){return this.data[e]=t}getData(e){let t=this;do{const r=t.data[e];if(null!=r)return r}while(t=t.parent)}removeData(e){let t=this;do{null!=t.data[e]&&(t.data[e]=null)}while(t=t.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){const e=this.path;if(this.references=Object.create(null),this.bindings=Object.create(null),this.globals=Object.create(null),this.uids=Object.create(null),this.data=Object.create(null),e.isFunction()){e.isFunctionExpression()&&e.has("id")&&!e.get("id").node[o.NOT_LOCAL_BINDING]&&this.registerBinding("local",e.get("id"),e);const t=e.get("params");for(const e of t)this.registerBinding("param",e)}const t=this.getProgramParent();if(t.crawling)return;const r={references:[],constantViolations:[],assignments:[]};this.crawling=!0,e.traverse(c,r),this.crawling=!1;for(const e of r.assignments){const r=e.getBindingIdentifiers();for(const i of Object.keys(r))e.scope.getBinding(i)||t.addGlobal(r[i]);e.scope.registerConstantViolation(e)}for(const e of r.references){const r=e.scope.getBinding(e.node.name);r?r.reference(e):t.addGlobal(e.node)}for(const e of r.constantViolations)e.scope.registerConstantViolation(e)}push(e){let t=this.path;t.isBlockStatement()||t.isProgram()||(t=this.getBlockParent().path),t.isSwitchStatement()&&(t=(this.getFunctionParent()||this.getProgramParent()).path),(t.isLoop()||t.isCatchClause()||t.isFunction())&&(t.ensureBlock(),t=t.get("body"));const r=e.unique,i=e.kind||"var",n=null==e._blockHoist?2:e._blockHoist,s=`declaration:${i}:${n}`;let a=!r&&t.getData(s);if(!a){const e=o.variableDeclaration(i,[]);e._blockHoist=n,[a]=t.unshiftContainer("body",[e]),r||t.setData(s,a)}const l=o.variableDeclarator(e.id,e.init);a.node.declarations.push(l),this.registerBinding(i,a.get("declarations").pop())}getProgramParent(){let e=this;do{if(e.path.isProgram())return e}while(e=e.parent);throw new Error("Couldn\'t find a Program")}getFunctionParent(){let e=this;do{if(e.path.isFunctionParent())return e}while(e=e.parent);return null}getBlockParent(){let e=this;do{if(e.path.isBlockParent())return e}while(e=e.parent);throw new Error("We couldn\'t find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){const e=Object.create(null);let t=this;do{for(const r of Object.keys(t.bindings))r in e==!1&&(e[r]=t.bindings[r]);t=t.parent}while(t);return e}getAllBindingsOfKind(){const e=Object.create(null);for(const t of arguments){let r=this;do{for(const i of Object.keys(r.bindings)){const n=r.bindings[i];n.kind===t&&(e[i]=n)}r=r.parent}while(r)}return e}bindingIdentifierEquals(e,t){return this.getBindingIdentifier(e)===t}getBinding(e){let t,r=this;do{const n=r.getOwnBinding(e);var i;if(n)if(!(null==(i=t)?void 0:i.isPattern())||"param"===n.kind)return n;t=r.path}while(r=r.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){var t;return null==(t=this.getBinding(e))?void 0:t.identifier}getOwnBindingIdentifier(e){const t=this.bindings[e];return null==t?void 0:t.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,t){return!!e&&(!!this.hasOwnBinding(e)||(!!this.parentHasBinding(e,t)||(!!this.hasUid(e)||(!(t||!p.globals.includes(e))||!(t||!p.contextVariables.includes(e))))))}parentHasBinding(e,t){var r;return null==(r=this.parent)?void 0:r.hasBinding(e,t)}moveBindingTo(e,t){const r=this.getBinding(e);r&&(r.scope.removeOwnBinding(e),r.scope=t,t.bindings[e]=r)}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){var t;null==(t=this.getBinding(e))||t.scope.removeOwnBinding(e);let r=this;do{r.uids[e]&&(r.uids[e]=!1)}while(r=r.parent)}}t.default=p,p.globals=Object.keys(a.default.builtin),p.contextVariables=["arguments","undefined","Infinity","NaN"]},1360:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;_interopRequireDefault(r(2329));var i=_interopRequireDefault(r(7224));!function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const n={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||e.skip()},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;const r=e.getOuterBindingIdentifiers();for(const e in r)e===t.oldName&&(r[e].name=t.newName)}};t.default=class{constructor(e,t,r){this.newName=r,this.oldName=t,this.binding=e}maybeConvertFromExportDeclaration(e){const t=e.parentPath;t.isExportDeclaration()&&(t.isExportDefaultDeclaration()&&!t.get("declaration").node.id||(0,i.default)(t))}maybeConvertFromClassFunctionDeclaration(e){}maybeConvertFromClassFunctionExpression(e){}rename(e){const{binding:t,oldName:r,newName:i}=this,{scope:s,path:a}=t,o=a.find((e=>e.isDeclaration()||e.isFunctionExpression()||e.isClassExpression()));if(o){o.getOuterBindingIdentifiers()[r]===t.identifier&&this.maybeConvertFromExportDeclaration(o)}s.traverse(e||s.block,n,this),e||(s.removeOwnBinding(r),s.bindings[i]=t,this.binding.identifier.name=i),t.type,o&&(this.maybeConvertFromClassFunctionDeclaration(o),this.maybeConvertFromClassFunctionExpression(o))}}},8221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.explode=explode,t.verify=verify,t.merge=function(e,t=[],r){const i={};for(let n=0;n<e.length;n++){const s=e[n],a=t[n];explode(s);for(const e of Object.keys(s)){let t=s[e];(a||r)&&(t=wrapWithStateOrWrapper(t,a,r));mergePair(i[e]=i[e]||{},t)}}return i};var i=_interopRequireWildcard(r(1025)),n=_interopRequireWildcard(r(1710));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}function explode(e){if(e._exploded)return e;e._exploded=!0;for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;const r=t.split("|");if(1===r.length)continue;const i=e[t];delete e[t];for(const t of r)e[t]=i}verify(e),delete e.__esModule,function(e){for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;const r=e[t];"function"==typeof r&&(e[t]={enter:r})}}(e),ensureCallbackArrays(e);for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;const r=i[t];if(!r)continue;const n=e[t];for(const e of Object.keys(n))n[e]=wrapCheck(r,n[e]);if(delete e[t],r.types)for(const t of r.types)e[t]?mergePair(e[t],n):e[t]=n;else mergePair(e,n)}for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;const r=e[t];let i=n.FLIPPED_ALIAS_KEYS[t];const s=n.DEPRECATED_KEYS[t];if(s&&(console.trace(`Visitor defined for ${t} but it has been renamed to ${s}`),i=[s]),i){delete e[t];for(const t of i){const i=e[t];i?mergePair(i,r):e[t]=Object.assign({},r)}}}for(const t of Object.keys(e))shouldIgnoreKey(t)||ensureCallbackArrays(e[t]);return e}function verify(e){if(!e._verified){if("function"==typeof e)throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn\'t mean `{ enter: Function }`?");for(const t of Object.keys(e)){if("enter"!==t&&"exit"!==t||validateVisitorMethods(t,e[t]),shouldIgnoreKey(t))continue;if(n.TYPES.indexOf(t)<0)throw new Error(`You gave us a visitor for the node type ${t} but it\'s not a valid type`);const r=e[t];if("object"==typeof r)for(const e of Object.keys(r)){if("enter"!==e&&"exit"!==e)throw new Error(`You passed \\`traverse()\\` a visitor object with the property ${t} that has the invalid property ${e}`);validateVisitorMethods(`${t}.${e}`,r[e])}}e._verified=!0}}function validateVisitorMethods(e,t){const r=[].concat(t);for(const t of r)if("function"!=typeof t)throw new TypeError(`Non-function found defined in ${e} with type ${typeof t}`)}function wrapWithStateOrWrapper(e,t,r){const i={};for(const n of Object.keys(e)){let s=e[n];Array.isArray(s)&&(s=s.map((function(e){let i=e;return t&&(i=function(r){return e.call(t,r,t)}),r&&(i=r(t.key,n,i)),i!==e&&(i.toString=()=>e.toString()),i})),i[n]=s)}return i}function ensureCallbackArrays(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function wrapCheck(e,t){const newFn=function(r){if(e.checkPath(r))return t.apply(this,arguments)};return newFn.toString=()=>t.toString(),newFn}function shouldIgnoreKey(e){return"_"===e[0]||("enter"===e||"exit"===e||"shouldSkip"===e||("denylist"===e||"noScope"===e||"skipKeys"===e||"blacklist"===e))}function mergePair(e,t){for(const r of Object.keys(t))e[r]=[].concat(e[r]||[],t[r])}},7010:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!(0,n.default)(e)){var t;const r=null!=(t=null==e?void 0:e.type)?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}};var i,n=(i=r(1784))&&i.__esModule?i:{default:i}},939:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertArrayExpression=function(e,t={}){assert("ArrayExpression",e,t)},t.assertAssignmentExpression=function(e,t={}){assert("AssignmentExpression",e,t)},t.assertBinaryExpression=function(e,t={}){assert("BinaryExpression",e,t)},t.assertInterpreterDirective=function(e,t={}){assert("InterpreterDirective",e,t)},t.assertDirective=function(e,t={}){assert("Directive",e,t)},t.assertDirectiveLiteral=function(e,t={}){assert("DirectiveLiteral",e,t)},t.assertBlockStatement=function(e,t={}){assert("BlockStatement",e,t)},t.assertBreakStatement=function(e,t={}){assert("BreakStatement",e,t)},t.assertCallExpression=function(e,t={}){assert("CallExpression",e,t)},t.assertCatchClause=function(e,t={}){assert("CatchClause",e,t)},t.assertConditionalExpression=function(e,t={}){assert("ConditionalExpression",e,t)},t.assertContinueStatement=function(e,t={}){assert("ContinueStatement",e,t)},t.assertDebuggerStatement=function(e,t={}){assert("DebuggerStatement",e,t)},t.assertDoWhileStatement=function(e,t={}){assert("DoWhileStatement",e,t)},t.assertEmptyStatement=function(e,t={}){assert("EmptyStatement",e,t)},t.assertExpressionStatement=function(e,t={}){assert("ExpressionStatement",e,t)},t.assertFile=function(e,t={}){assert("File",e,t)},t.assertForInStatement=function(e,t={}){assert("ForInStatement",e,t)},t.assertForStatement=function(e,t={}){assert("ForStatement",e,t)},t.assertFunctionDeclaration=function(e,t={}){assert("FunctionDeclaration",e,t)},t.assertFunctionExpression=function(e,t={}){assert("FunctionExpression",e,t)},t.assertIdentifier=function(e,t={}){assert("Identifier",e,t)},t.assertIfStatement=function(e,t={}){assert("IfStatement",e,t)},t.assertLabeledStatement=function(e,t={}){assert("LabeledStatement",e,t)},t.assertStringLiteral=function(e,t={}){assert("StringLiteral",e,t)},t.assertNumericLiteral=function(e,t={}){assert("NumericLiteral",e,t)},t.assertNullLiteral=function(e,t={}){assert("NullLiteral",e,t)},t.assertBooleanLiteral=function(e,t={}){assert("BooleanLiteral",e,t)},t.assertRegExpLiteral=function(e,t={}){assert("RegExpLiteral",e,t)},t.assertLogicalExpression=function(e,t={}){assert("LogicalExpression",e,t)},t.assertMemberExpression=function(e,t={}){assert("MemberExpression",e,t)},t.assertNewExpression=function(e,t={}){assert("NewExpression",e,t)},t.assertProgram=function(e,t={}){assert("Program",e,t)},t.assertObjectExpression=function(e,t={}){assert("ObjectExpression",e,t)},t.assertObjectMethod=function(e,t={}){assert("ObjectMethod",e,t)},t.assertObjectProperty=function(e,t={}){assert("ObjectProperty",e,t)},t.assertRestElement=function(e,t={}){assert("RestElement",e,t)},t.assertReturnStatement=function(e,t={}){assert("ReturnStatement",e,t)},t.assertSequenceExpression=function(e,t={}){assert("SequenceExpression",e,t)},t.assertParenthesizedExpression=function(e,t={}){assert("ParenthesizedExpression",e,t)},t.assertSwitchCase=function(e,t={}){assert("SwitchCase",e,t)},t.assertSwitchStatement=function(e,t={}){assert("SwitchStatement",e,t)},t.assertThisExpression=function(e,t={}){assert("ThisExpression",e,t)},t.assertThrowStatement=function(e,t={}){assert("ThrowStatement",e,t)},t.assertTryStatement=function(e,t={}){assert("TryStatement",e,t)},t.assertUnaryExpression=function(e,t={}){assert("UnaryExpression",e,t)},t.assertUpdateExpression=function(e,t={}){assert("UpdateExpression",e,t)},t.assertVariableDeclaration=function(e,t={}){assert("VariableDeclaration",e,t)},t.assertVariableDeclarator=function(e,t={}){assert("VariableDeclarator",e,t)},t.assertWhileStatement=function(e,t={}){assert("WhileStatement",e,t)},t.assertWithStatement=function(e,t={}){assert("WithStatement",e,t)},t.assertAssignmentPattern=function(e,t={}){assert("AssignmentPattern",e,t)},t.assertArrayPattern=function(e,t={}){assert("ArrayPattern",e,t)},t.assertArrowFunctionExpression=function(e,t={}){assert("ArrowFunctionExpression",e,t)},t.assertClassBody=function(e,t={}){assert("ClassBody",e,t)},t.assertClassExpression=function(e,t={}){assert("ClassExpression",e,t)},t.assertClassDeclaration=function(e,t={}){assert("ClassDeclaration",e,t)},t.assertExportAllDeclaration=function(e,t={}){assert("ExportAllDeclaration",e,t)},t.assertExportDefaultDeclaration=function(e,t={}){assert("ExportDefaultDeclaration",e,t)},t.assertExportNamedDeclaration=function(e,t={}){assert("ExportNamedDeclaration",e,t)},t.assertExportSpecifier=function(e,t={}){assert("ExportSpecifier",e,t)},t.assertForOfStatement=function(e,t={}){assert("ForOfStatement",e,t)},t.assertImportDeclaration=function(e,t={}){assert("ImportDeclaration",e,t)},t.assertImportDefaultSpecifier=function(e,t={}){assert("ImportDefaultSpecifier",e,t)},t.assertImportNamespaceSpecifier=function(e,t={}){assert("ImportNamespaceSpecifier",e,t)},t.assertImportSpecifier=function(e,t={}){assert("ImportSpecifier",e,t)},t.assertMetaProperty=function(e,t={}){assert("MetaProperty",e,t)},t.assertClassMethod=function(e,t={}){assert("ClassMethod",e,t)},t.assertObjectPattern=function(e,t={}){assert("ObjectPattern",e,t)},t.assertSpreadElement=function(e,t={}){assert("SpreadElement",e,t)},t.assertSuper=function(e,t={}){assert("Super",e,t)},t.assertTaggedTemplateExpression=function(e,t={}){assert("TaggedTemplateExpression",e,t)},t.assertTemplateElement=function(e,t={}){assert("TemplateElement",e,t)},t.assertTemplateLiteral=function(e,t={}){assert("TemplateLiteral",e,t)},t.assertYieldExpression=function(e,t={}){assert("YieldExpression",e,t)},t.assertAwaitExpression=function(e,t={}){assert("AwaitExpression",e,t)},t.assertImport=function(e,t={}){assert("Import",e,t)},t.assertBigIntLiteral=function(e,t={}){assert("BigIntLiteral",e,t)},t.assertExportNamespaceSpecifier=function(e,t={}){assert("ExportNamespaceSpecifier",e,t)},t.assertOptionalMemberExpression=function(e,t={}){assert("OptionalMemberExpression",e,t)},t.assertOptionalCallExpression=function(e,t={}){assert("OptionalCallExpression",e,t)},t.assertAnyTypeAnnotation=function(e,t={}){assert("AnyTypeAnnotation",e,t)},t.assertArrayTypeAnnotation=function(e,t={}){assert("ArrayTypeAnnotation",e,t)},t.assertBooleanTypeAnnotation=function(e,t={}){assert("BooleanTypeAnnotation",e,t)},t.assertBooleanLiteralTypeAnnotation=function(e,t={}){assert("BooleanLiteralTypeAnnotation",e,t)},t.assertNullLiteralTypeAnnotation=function(e,t={}){assert("NullLiteralTypeAnnotation",e,t)},t.assertClassImplements=function(e,t={}){assert("ClassImplements",e,t)},t.assertDeclareClass=function(e,t={}){assert("DeclareClass",e,t)},t.assertDeclareFunction=function(e,t={}){assert("DeclareFunction",e,t)},t.assertDeclareInterface=function(e,t={}){assert("DeclareInterface",e,t)},t.assertDeclareModule=function(e,t={}){assert("DeclareModule",e,t)},t.assertDeclareModuleExports=function(e,t={}){assert("DeclareModuleExports",e,t)},t.assertDeclareTypeAlias=function(e,t={}){assert("DeclareTypeAlias",e,t)},t.assertDeclareOpaqueType=function(e,t={}){assert("DeclareOpaqueType",e,t)},t.assertDeclareVariable=function(e,t={}){assert("DeclareVariable",e,t)},t.assertDeclareExportDeclaration=function(e,t={}){assert("DeclareExportDeclaration",e,t)},t.assertDeclareExportAllDeclaration=function(e,t={}){assert("DeclareExportAllDeclaration",e,t)},t.assertDeclaredPredicate=function(e,t={}){assert("DeclaredPredicate",e,t)},t.assertExistsTypeAnnotation=function(e,t={}){assert("ExistsTypeAnnotation",e,t)},t.assertFunctionTypeAnnotation=function(e,t={}){assert("FunctionTypeAnnotation",e,t)},t.assertFunctionTypeParam=function(e,t={}){assert("FunctionTypeParam",e,t)},t.assertGenericTypeAnnotation=function(e,t={}){assert("GenericTypeAnnotation",e,t)},t.assertInferredPredicate=function(e,t={}){assert("InferredPredicate",e,t)},t.assertInterfaceExtends=function(e,t={}){assert("InterfaceExtends",e,t)},t.assertInterfaceDeclaration=function(e,t={}){assert("InterfaceDeclaration",e,t)},t.assertInterfaceTypeAnnotation=function(e,t={}){assert("InterfaceTypeAnnotation",e,t)},t.assertIntersectionTypeAnnotation=function(e,t={}){assert("IntersectionTypeAnnotation",e,t)},t.assertMixedTypeAnnotation=function(e,t={}){assert("MixedTypeAnnotation",e,t)},t.assertEmptyTypeAnnotation=function(e,t={}){assert("EmptyTypeAnnotation",e,t)},t.assertNullableTypeAnnotation=function(e,t={}){assert("NullableTypeAnnotation",e,t)},t.assertNumberLiteralTypeAnnotation=function(e,t={}){assert("NumberLiteralTypeAnnotation",e,t)},t.assertNumberTypeAnnotation=function(e,t={}){assert("NumberTypeAnnotation",e,t)},t.assertObjectTypeAnnotation=function(e,t={}){assert("ObjectTypeAnnotation",e,t)},t.assertObjectTypeInternalSlot=function(e,t={}){assert("ObjectTypeInternalSlot",e,t)},t.assertObjectTypeCallProperty=function(e,t={}){assert("ObjectTypeCallProperty",e,t)},t.assertObjectTypeIndexer=function(e,t={}){assert("ObjectTypeIndexer",e,t)},t.assertObjectTypeProperty=function(e,t={}){assert("ObjectTypeProperty",e,t)},t.assertObjectTypeSpreadProperty=function(e,t={}){assert("ObjectTypeSpreadProperty",e,t)},t.assertOpaqueType=function(e,t={}){assert("OpaqueType",e,t)},t.assertQualifiedTypeIdentifier=function(e,t={}){assert("QualifiedTypeIdentifier",e,t)},t.assertStringLiteralTypeAnnotation=function(e,t={}){assert("StringLiteralTypeAnnotation",e,t)},t.assertStringTypeAnnotation=function(e,t={}){assert("StringTypeAnnotation",e,t)},t.assertSymbolTypeAnnotation=function(e,t={}){assert("SymbolTypeAnnotation",e,t)},t.assertThisTypeAnnotation=function(e,t={}){assert("ThisTypeAnnotation",e,t)},t.assertTupleTypeAnnotation=function(e,t={}){assert("TupleTypeAnnotation",e,t)},t.assertTypeofTypeAnnotation=function(e,t={}){assert("TypeofTypeAnnotation",e,t)},t.assertTypeAlias=function(e,t={}){assert("TypeAlias",e,t)},t.assertTypeAnnotation=function(e,t={}){assert("TypeAnnotation",e,t)},t.assertTypeCastExpression=function(e,t={}){assert("TypeCastExpression",e,t)},t.assertTypeParameter=function(e,t={}){assert("TypeParameter",e,t)},t.assertTypeParameterDeclaration=function(e,t={}){assert("TypeParameterDeclaration",e,t)},t.assertTypeParameterInstantiation=function(e,t={}){assert("TypeParameterInstantiation",e,t)},t.assertUnionTypeAnnotation=function(e,t={}){assert("UnionTypeAnnotation",e,t)},t.assertVariance=function(e,t={}){assert("Variance",e,t)},t.assertVoidTypeAnnotation=function(e,t={}){assert("VoidTypeAnnotation",e,t)},t.assertEnumDeclaration=function(e,t={}){assert("EnumDeclaration",e,t)},t.assertEnumBooleanBody=function(e,t={}){assert("EnumBooleanBody",e,t)},t.assertEnumNumberBody=function(e,t={}){assert("EnumNumberBody",e,t)},t.assertEnumStringBody=function(e,t={}){assert("EnumStringBody",e,t)},t.assertEnumSymbolBody=function(e,t={}){assert("EnumSymbolBody",e,t)},t.assertEnumBooleanMember=function(e,t={}){assert("EnumBooleanMember",e,t)},t.assertEnumNumberMember=function(e,t={}){assert("EnumNumberMember",e,t)},t.assertEnumStringMember=function(e,t={}){assert("EnumStringMember",e,t)},t.assertEnumDefaultedMember=function(e,t={}){assert("EnumDefaultedMember",e,t)},t.assertJSXAttribute=function(e,t={}){assert("JSXAttribute",e,t)},t.assertJSXClosingElement=function(e,t={}){assert("JSXClosingElement",e,t)},t.assertJSXElement=function(e,t={}){assert("JSXElement",e,t)},t.assertJSXEmptyExpression=function(e,t={}){assert("JSXEmptyExpression",e,t)},t.assertJSXExpressionContainer=function(e,t={}){assert("JSXExpressionContainer",e,t)},t.assertJSXSpreadChild=function(e,t={}){assert("JSXSpreadChild",e,t)},t.assertJSXIdentifier=function(e,t={}){assert("JSXIdentifier",e,t)},t.assertJSXMemberExpression=function(e,t={}){assert("JSXMemberExpression",e,t)},t.assertJSXNamespacedName=function(e,t={}){assert("JSXNamespacedName",e,t)},t.assertJSXOpeningElement=function(e,t={}){assert("JSXOpeningElement",e,t)},t.assertJSXSpreadAttribute=function(e,t={}){assert("JSXSpreadAttribute",e,t)},t.assertJSXText=function(e,t={}){assert("JSXText",e,t)},t.assertJSXFragment=function(e,t={}){assert("JSXFragment",e,t)},t.assertJSXOpeningFragment=function(e,t={}){assert("JSXOpeningFragment",e,t)},t.assertJSXClosingFragment=function(e,t={}){assert("JSXClosingFragment",e,t)},t.assertNoop=function(e,t={}){assert("Noop",e,t)},t.assertPlaceholder=function(e,t={}){assert("Placeholder",e,t)},t.assertV8IntrinsicIdentifier=function(e,t={}){assert("V8IntrinsicIdentifier",e,t)},t.assertArgumentPlaceholder=function(e,t={}){assert("ArgumentPlaceholder",e,t)},t.assertBindExpression=function(e,t={}){assert("BindExpression",e,t)},t.assertClassProperty=function(e,t={}){assert("ClassProperty",e,t)},t.assertPipelineTopicExpression=function(e,t={}){assert("PipelineTopicExpression",e,t)},t.assertPipelineBareFunction=function(e,t={}){assert("PipelineBareFunction",e,t)},t.assertPipelinePrimaryTopicReference=function(e,t={}){assert("PipelinePrimaryTopicReference",e,t)},t.assertClassPrivateProperty=function(e,t={}){assert("ClassPrivateProperty",e,t)},t.assertClassPrivateMethod=function(e,t={}){assert("ClassPrivateMethod",e,t)},t.assertImportAttribute=function(e,t={}){assert("ImportAttribute",e,t)},t.assertDecorator=function(e,t={}){assert("Decorator",e,t)},t.assertDoExpression=function(e,t={}){assert("DoExpression",e,t)},t.assertExportDefaultSpecifier=function(e,t={}){assert("ExportDefaultSpecifier",e,t)},t.assertPrivateName=function(e,t={}){assert("PrivateName",e,t)},t.assertRecordExpression=function(e,t={}){assert("RecordExpression",e,t)},t.assertTupleExpression=function(e,t={}){assert("TupleExpression",e,t)},t.assertDecimalLiteral=function(e,t={}){assert("DecimalLiteral",e,t)},t.assertStaticBlock=function(e,t={}){assert("StaticBlock",e,t)},t.assertTSParameterProperty=function(e,t={}){assert("TSParameterProperty",e,t)},t.assertTSDeclareFunction=function(e,t={}){assert("TSDeclareFunction",e,t)},t.assertTSDeclareMethod=function(e,t={}){assert("TSDeclareMethod",e,t)},t.assertTSQualifiedName=function(e,t={}){assert("TSQualifiedName",e,t)},t.assertTSCallSignatureDeclaration=function(e,t={}){assert("TSCallSignatureDeclaration",e,t)},t.assertTSConstructSignatureDeclaration=function(e,t={}){assert("TSConstructSignatureDeclaration",e,t)},t.assertTSPropertySignature=function(e,t={}){assert("TSPropertySignature",e,t)},t.assertTSMethodSignature=function(e,t={}){assert("TSMethodSignature",e,t)},t.assertTSIndexSignature=function(e,t={}){assert("TSIndexSignature",e,t)},t.assertTSAnyKeyword=function(e,t={}){assert("TSAnyKeyword",e,t)},t.assertTSBooleanKeyword=function(e,t={}){assert("TSBooleanKeyword",e,t)},t.assertTSBigIntKeyword=function(e,t={}){assert("TSBigIntKeyword",e,t)},t.assertTSIntrinsicKeyword=function(e,t={}){assert("TSIntrinsicKeyword",e,t)},t.assertTSNeverKeyword=function(e,t={}){assert("TSNeverKeyword",e,t)},t.assertTSNullKeyword=function(e,t={}){assert("TSNullKeyword",e,t)},t.assertTSNumberKeyword=function(e,t={}){assert("TSNumberKeyword",e,t)},t.assertTSObjectKeyword=function(e,t={}){assert("TSObjectKeyword",e,t)},t.assertTSStringKeyword=function(e,t={}){assert("TSStringKeyword",e,t)},t.assertTSSymbolKeyword=function(e,t={}){assert("TSSymbolKeyword",e,t)},t.assertTSUndefinedKeyword=function(e,t={}){assert("TSUndefinedKeyword",e,t)},t.assertTSUnknownKeyword=function(e,t={}){assert("TSUnknownKeyword",e,t)},t.assertTSVoidKeyword=function(e,t={}){assert("TSVoidKeyword",e,t)},t.assertTSThisType=function(e,t={}){assert("TSThisType",e,t)},t.assertTSFunctionType=function(e,t={}){assert("TSFunctionType",e,t)},t.assertTSConstructorType=function(e,t={}){assert("TSConstructorType",e,t)},t.assertTSTypeReference=function(e,t={}){assert("TSTypeReference",e,t)},t.assertTSTypePredicate=function(e,t={}){assert("TSTypePredicate",e,t)},t.assertTSTypeQuery=function(e,t={}){assert("TSTypeQuery",e,t)},t.assertTSTypeLiteral=function(e,t={}){assert("TSTypeLiteral",e,t)},t.assertTSArrayType=function(e,t={}){assert("TSArrayType",e,t)},t.assertTSTupleType=function(e,t={}){assert("TSTupleType",e,t)},t.assertTSOptionalType=function(e,t={}){assert("TSOptionalType",e,t)},t.assertTSRestType=function(e,t={}){assert("TSRestType",e,t)},t.assertTSNamedTupleMember=function(e,t={}){assert("TSNamedTupleMember",e,t)},t.assertTSUnionType=function(e,t={}){assert("TSUnionType",e,t)},t.assertTSIntersectionType=function(e,t={}){assert("TSIntersectionType",e,t)},t.assertTSConditionalType=function(e,t={}){assert("TSConditionalType",e,t)},t.assertTSInferType=function(e,t={}){assert("TSInferType",e,t)},t.assertTSParenthesizedType=function(e,t={}){assert("TSParenthesizedType",e,t)},t.assertTSTypeOperator=function(e,t={}){assert("TSTypeOperator",e,t)},t.assertTSIndexedAccessType=function(e,t={}){assert("TSIndexedAccessType",e,t)},t.assertTSMappedType=function(e,t={}){assert("TSMappedType",e,t)},t.assertTSLiteralType=function(e,t={}){assert("TSLiteralType",e,t)},t.assertTSExpressionWithTypeArguments=function(e,t={}){assert("TSExpressionWithTypeArguments",e,t)},t.assertTSInterfaceDeclaration=function(e,t={}){assert("TSInterfaceDeclaration",e,t)},t.assertTSInterfaceBody=function(e,t={}){assert("TSInterfaceBody",e,t)},t.assertTSTypeAliasDeclaration=function(e,t={}){assert("TSTypeAliasDeclaration",e,t)},t.assertTSAsExpression=function(e,t={}){assert("TSAsExpression",e,t)},t.assertTSTypeAssertion=function(e,t={}){assert("TSTypeAssertion",e,t)},t.assertTSEnumDeclaration=function(e,t={}){assert("TSEnumDeclaration",e,t)},t.assertTSEnumMember=function(e,t={}){assert("TSEnumMember",e,t)},t.assertTSModuleDeclaration=function(e,t={}){assert("TSModuleDeclaration",e,t)},t.assertTSModuleBlock=function(e,t={}){assert("TSModuleBlock",e,t)},t.assertTSImportType=function(e,t={}){assert("TSImportType",e,t)},t.assertTSImportEqualsDeclaration=function(e,t={}){assert("TSImportEqualsDeclaration",e,t)},t.assertTSExternalModuleReference=function(e,t={}){assert("TSExternalModuleReference",e,t)},t.assertTSNonNullExpression=function(e,t={}){assert("TSNonNullExpression",e,t)},t.assertTSExportAssignment=function(e,t={}){assert("TSExportAssignment",e,t)},t.assertTSNamespaceExportDeclaration=function(e,t={}){assert("TSNamespaceExportDeclaration",e,t)},t.assertTSTypeAnnotation=function(e,t={}){assert("TSTypeAnnotation",e,t)},t.assertTSTypeParameterInstantiation=function(e,t={}){assert("TSTypeParameterInstantiation",e,t)},t.assertTSTypeParameterDeclaration=function(e,t={}){assert("TSTypeParameterDeclaration",e,t)},t.assertTSTypeParameter=function(e,t={}){assert("TSTypeParameter",e,t)},t.assertExpression=function(e,t={}){assert("Expression",e,t)},t.assertBinary=function(e,t={}){assert("Binary",e,t)},t.assertScopable=function(e,t={}){assert("Scopable",e,t)},t.assertBlockParent=function(e,t={}){assert("BlockParent",e,t)},t.assertBlock=function(e,t={}){assert("Block",e,t)},t.assertStatement=function(e,t={}){assert("Statement",e,t)},t.assertTerminatorless=function(e,t={}){assert("Terminatorless",e,t)},t.assertCompletionStatement=function(e,t={}){assert("CompletionStatement",e,t)},t.assertConditional=function(e,t={}){assert("Conditional",e,t)},t.assertLoop=function(e,t={}){assert("Loop",e,t)},t.assertWhile=function(e,t={}){assert("While",e,t)},t.assertExpressionWrapper=function(e,t={}){assert("ExpressionWrapper",e,t)},t.assertFor=function(e,t={}){assert("For",e,t)},t.assertForXStatement=function(e,t={}){assert("ForXStatement",e,t)},t.assertFunction=function(e,t={}){assert("Function",e,t)},t.assertFunctionParent=function(e,t={}){assert("FunctionParent",e,t)},t.assertPureish=function(e,t={}){assert("Pureish",e,t)},t.assertDeclaration=function(e,t={}){assert("Declaration",e,t)},t.assertPatternLike=function(e,t={}){assert("PatternLike",e,t)},t.assertLVal=function(e,t={}){assert("LVal",e,t)},t.assertTSEntityName=function(e,t={}){assert("TSEntityName",e,t)},t.assertLiteral=function(e,t={}){assert("Literal",e,t)},t.assertImmutable=function(e,t={}){assert("Immutable",e,t)},t.assertUserWhitespacable=function(e,t={}){assert("UserWhitespacable",e,t)},t.assertMethod=function(e,t={}){assert("Method",e,t)},t.assertObjectMember=function(e,t={}){assert("ObjectMember",e,t)},t.assertProperty=function(e,t={}){assert("Property",e,t)},t.assertUnaryLike=function(e,t={}){assert("UnaryLike",e,t)},t.assertPattern=function(e,t={}){assert("Pattern",e,t)},t.assertClass=function(e,t={}){assert("Class",e,t)},t.assertModuleDeclaration=function(e,t={}){assert("ModuleDeclaration",e,t)},t.assertExportDeclaration=function(e,t={}){assert("ExportDeclaration",e,t)},t.assertModuleSpecifier=function(e,t={}){assert("ModuleSpecifier",e,t)},t.assertFlow=function(e,t={}){assert("Flow",e,t)},t.assertFlowType=function(e,t={}){assert("FlowType",e,t)},t.assertFlowBaseAnnotation=function(e,t={}){assert("FlowBaseAnnotation",e,t)},t.assertFlowDeclaration=function(e,t={}){assert("FlowDeclaration",e,t)},t.assertFlowPredicate=function(e,t={}){assert("FlowPredicate",e,t)},t.assertEnumBody=function(e,t={}){assert("EnumBody",e,t)},t.assertEnumMember=function(e,t={}){assert("EnumMember",e,t)},t.assertJSX=function(e,t={}){assert("JSX",e,t)},t.assertPrivate=function(e,t={}){assert("Private",e,t)},t.assertTSTypeElement=function(e,t={}){assert("TSTypeElement",e,t)},t.assertTSType=function(e,t={}){assert("TSType",e,t)},t.assertTSBaseType=function(e,t={}){assert("TSBaseType",e,t)},t.assertNumberLiteral=function(e,t){console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),assert("NumberLiteral",e,t)},t.assertRegexLiteral=function(e,t){console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),assert("RegexLiteral",e,t)},t.assertRestProperty=function(e,t){console.trace("The node type RestProperty has been renamed to RestElement"),assert("RestProperty",e,t)},t.assertSpreadProperty=function(e,t){console.trace("The node type SpreadProperty has been renamed to SpreadElement"),assert("SpreadProperty",e,t)};var i,n=(i=r(6593))&&i.__esModule?i:{default:i};function assert(e,t,r){if(!(0,n.default)(e,t,r))throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}},1739:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,...t){const r=n.BUILDER_KEYS[e],a=t.length;if(a>r.length)throw new Error(`${e}: Too many arguments passed. Received ${a} but can receive no more than ${r.length}`);const o={type:e};let l=0;r.forEach((r=>{const s=n.NODE_FIELDS[e][r];let c;l<a&&(c=t[l]),void 0===c&&(c=(0,i.default)(s.default)),o[r]=c,l++}));for(const e of Object.keys(o))(0,s.default)(o,e,o[e]);return o};var i=_interopRequireDefault(r(5375)),n=r(9829),s=_interopRequireDefault(r(9623));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},6535:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,s.default)(e);return 1===t.length?t[0]:(0,n.unionTypeAnnotation)(t)};var i,n=r(3894),s=(i=r(4485))&&i.__esModule?i:{default:i}},5209:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"===e)return(0,i.stringTypeAnnotation)();if("number"===e)return(0,i.numberTypeAnnotation)();if("undefined"===e)return(0,i.voidTypeAnnotation)();if("boolean"===e)return(0,i.booleanTypeAnnotation)();if("function"===e)return(0,i.genericTypeAnnotation)((0,i.identifier)("Function"));if("object"===e)return(0,i.genericTypeAnnotation)((0,i.identifier)("Object"));if("symbol"===e)return(0,i.genericTypeAnnotation)((0,i.identifier)("Symbol"));throw new Error("Invalid typeof value")};var i=r(3894)},3894:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayExpression=t.arrayExpression=function(...e){return(0,n.default)("ArrayExpression",...e)},t.AssignmentExpression=t.assignmentExpression=function(...e){return(0,n.default)("AssignmentExpression",...e)},t.BinaryExpression=t.binaryExpression=function(...e){return(0,n.default)("BinaryExpression",...e)},t.InterpreterDirective=t.interpreterDirective=function(...e){return(0,n.default)("InterpreterDirective",...e)},t.Directive=t.directive=function(...e){return(0,n.default)("Directive",...e)},t.DirectiveLiteral=t.directiveLiteral=function(...e){return(0,n.default)("DirectiveLiteral",...e)},t.BlockStatement=t.blockStatement=function(...e){return(0,n.default)("BlockStatement",...e)},t.BreakStatement=t.breakStatement=function(...e){return(0,n.default)("BreakStatement",...e)},t.CallExpression=t.callExpression=function(...e){return(0,n.default)("CallExpression",...e)},t.CatchClause=t.catchClause=function(...e){return(0,n.default)("CatchClause",...e)},t.ConditionalExpression=t.conditionalExpression=function(...e){return(0,n.default)("ConditionalExpression",...e)},t.ContinueStatement=t.continueStatement=function(...e){return(0,n.default)("ContinueStatement",...e)},t.DebuggerStatement=t.debuggerStatement=function(...e){return(0,n.default)("DebuggerStatement",...e)},t.DoWhileStatement=t.doWhileStatement=function(...e){return(0,n.default)("DoWhileStatement",...e)},t.EmptyStatement=t.emptyStatement=function(...e){return(0,n.default)("EmptyStatement",...e)},t.ExpressionStatement=t.expressionStatement=function(...e){return(0,n.default)("ExpressionStatement",...e)},t.File=t.file=function(...e){return(0,n.default)("File",...e)},t.ForInStatement=t.forInStatement=function(...e){return(0,n.default)("ForInStatement",...e)},t.ForStatement=t.forStatement=function(...e){return(0,n.default)("ForStatement",...e)},t.FunctionDeclaration=t.functionDeclaration=function(...e){return(0,n.default)("FunctionDeclaration",...e)},t.FunctionExpression=t.functionExpression=function(...e){return(0,n.default)("FunctionExpression",...e)},t.Identifier=t.identifier=function(...e){return(0,n.default)("Identifier",...e)},t.IfStatement=t.ifStatement=function(...e){return(0,n.default)("IfStatement",...e)},t.LabeledStatement=t.labeledStatement=function(...e){return(0,n.default)("LabeledStatement",...e)},t.StringLiteral=t.stringLiteral=function(...e){return(0,n.default)("StringLiteral",...e)},t.NumericLiteral=t.numericLiteral=function(...e){return(0,n.default)("NumericLiteral",...e)},t.NullLiteral=t.nullLiteral=function(...e){return(0,n.default)("NullLiteral",...e)},t.BooleanLiteral=t.booleanLiteral=function(...e){return(0,n.default)("BooleanLiteral",...e)},t.RegExpLiteral=t.regExpLiteral=function(...e){return(0,n.default)("RegExpLiteral",...e)},t.LogicalExpression=t.logicalExpression=function(...e){return(0,n.default)("LogicalExpression",...e)},t.MemberExpression=t.memberExpression=function(...e){return(0,n.default)("MemberExpression",...e)},t.NewExpression=t.newExpression=function(...e){return(0,n.default)("NewExpression",...e)},t.Program=t.program=function(...e){return(0,n.default)("Program",...e)},t.ObjectExpression=t.objectExpression=function(...e){return(0,n.default)("ObjectExpression",...e)},t.ObjectMethod=t.objectMethod=function(...e){return(0,n.default)("ObjectMethod",...e)},t.ObjectProperty=t.objectProperty=function(...e){return(0,n.default)("ObjectProperty",...e)},t.RestElement=t.restElement=function(...e){return(0,n.default)("RestElement",...e)},t.ReturnStatement=t.returnStatement=function(...e){return(0,n.default)("ReturnStatement",...e)},t.SequenceExpression=t.sequenceExpression=function(...e){return(0,n.default)("SequenceExpression",...e)},t.ParenthesizedExpression=t.parenthesizedExpression=function(...e){return(0,n.default)("ParenthesizedExpression",...e)},t.SwitchCase=t.switchCase=function(...e){return(0,n.default)("SwitchCase",...e)},t.SwitchStatement=t.switchStatement=function(...e){return(0,n.default)("SwitchStatement",...e)},t.ThisExpression=t.thisExpression=function(...e){return(0,n.default)("ThisExpression",...e)},t.ThrowStatement=t.throwStatement=function(...e){return(0,n.default)("ThrowStatement",...e)},t.TryStatement=t.tryStatement=function(...e){return(0,n.default)("TryStatement",...e)},t.UnaryExpression=t.unaryExpression=function(...e){return(0,n.default)("UnaryExpression",...e)},t.UpdateExpression=t.updateExpression=function(...e){return(0,n.default)("UpdateExpression",...e)},t.VariableDeclaration=t.variableDeclaration=function(...e){return(0,n.default)("VariableDeclaration",...e)},t.VariableDeclarator=t.variableDeclarator=function(...e){return(0,n.default)("VariableDeclarator",...e)},t.WhileStatement=t.whileStatement=function(...e){return(0,n.default)("WhileStatement",...e)},t.WithStatement=t.withStatement=function(...e){return(0,n.default)("WithStatement",...e)},t.AssignmentPattern=t.assignmentPattern=function(...e){return(0,n.default)("AssignmentPattern",...e)},t.ArrayPattern=t.arrayPattern=function(...e){return(0,n.default)("ArrayPattern",...e)},t.ArrowFunctionExpression=t.arrowFunctionExpression=function(...e){return(0,n.default)("ArrowFunctionExpression",...e)},t.ClassBody=t.classBody=function(...e){return(0,n.default)("ClassBody",...e)},t.ClassExpression=t.classExpression=function(...e){return(0,n.default)("ClassExpression",...e)},t.ClassDeclaration=t.classDeclaration=function(...e){return(0,n.default)("ClassDeclaration",...e)},t.ExportAllDeclaration=t.exportAllDeclaration=function(...e){return(0,n.default)("ExportAllDeclaration",...e)},t.ExportDefaultDeclaration=t.exportDefaultDeclaration=function(...e){return(0,n.default)("ExportDefaultDeclaration",...e)},t.ExportNamedDeclaration=t.exportNamedDeclaration=function(...e){return(0,n.default)("ExportNamedDeclaration",...e)},t.ExportSpecifier=t.exportSpecifier=function(...e){return(0,n.default)("ExportSpecifier",...e)},t.ForOfStatement=t.forOfStatement=function(...e){return(0,n.default)("ForOfStatement",...e)},t.ImportDeclaration=t.importDeclaration=function(...e){return(0,n.default)("ImportDeclaration",...e)},t.ImportDefaultSpecifier=t.importDefaultSpecifier=function(...e){return(0,n.default)("ImportDefaultSpecifier",...e)},t.ImportNamespaceSpecifier=t.importNamespaceSpecifier=function(...e){return(0,n.default)("ImportNamespaceSpecifier",...e)},t.ImportSpecifier=t.importSpecifier=function(...e){return(0,n.default)("ImportSpecifier",...e)},t.MetaProperty=t.metaProperty=function(...e){return(0,n.default)("MetaProperty",...e)},t.ClassMethod=t.classMethod=function(...e){return(0,n.default)("ClassMethod",...e)},t.ObjectPattern=t.objectPattern=function(...e){return(0,n.default)("ObjectPattern",...e)},t.SpreadElement=t.spreadElement=function(...e){return(0,n.default)("SpreadElement",...e)},t.super=t.Super=function(...e){return(0,n.default)("Super",...e)},t.TaggedTemplateExpression=t.taggedTemplateExpression=function(...e){return(0,n.default)("TaggedTemplateExpression",...e)},t.TemplateElement=t.templateElement=function(...e){return(0,n.default)("TemplateElement",...e)},t.TemplateLiteral=t.templateLiteral=function(...e){return(0,n.default)("TemplateLiteral",...e)},t.YieldExpression=t.yieldExpression=function(...e){return(0,n.default)("YieldExpression",...e)},t.AwaitExpression=t.awaitExpression=function(...e){return(0,n.default)("AwaitExpression",...e)},t.import=t.Import=function(...e){return(0,n.default)("Import",...e)},t.BigIntLiteral=t.bigIntLiteral=function(...e){return(0,n.default)("BigIntLiteral",...e)},t.ExportNamespaceSpecifier=t.exportNamespaceSpecifier=function(...e){return(0,n.default)("ExportNamespaceSpecifier",...e)},t.OptionalMemberExpression=t.optionalMemberExpression=function(...e){return(0,n.default)("OptionalMemberExpression",...e)},t.OptionalCallExpression=t.optionalCallExpression=function(...e){return(0,n.default)("OptionalCallExpression",...e)},t.AnyTypeAnnotation=t.anyTypeAnnotation=function(...e){return(0,n.default)("AnyTypeAnnotation",...e)},t.ArrayTypeAnnotation=t.arrayTypeAnnotation=function(...e){return(0,n.default)("ArrayTypeAnnotation",...e)},t.BooleanTypeAnnotation=t.booleanTypeAnnotation=function(...e){return(0,n.default)("BooleanTypeAnnotation",...e)},t.BooleanLiteralTypeAnnotation=t.booleanLiteralTypeAnnotation=function(...e){return(0,n.default)("BooleanLiteralTypeAnnotation",...e)},t.NullLiteralTypeAnnotation=t.nullLiteralTypeAnnotation=function(...e){return(0,n.default)("NullLiteralTypeAnnotation",...e)},t.ClassImplements=t.classImplements=function(...e){return(0,n.default)("ClassImplements",...e)},t.DeclareClass=t.declareClass=function(...e){return(0,n.default)("DeclareClass",...e)},t.DeclareFunction=t.declareFunction=function(...e){return(0,n.default)("DeclareFunction",...e)},t.DeclareInterface=t.declareInterface=function(...e){return(0,n.default)("DeclareInterface",...e)},t.DeclareModule=t.declareModule=function(...e){return(0,n.default)("DeclareModule",...e)},t.DeclareModuleExports=t.declareModuleExports=function(...e){return(0,n.default)("DeclareModuleExports",...e)},t.DeclareTypeAlias=t.declareTypeAlias=function(...e){return(0,n.default)("DeclareTypeAlias",...e)},t.DeclareOpaqueType=t.declareOpaqueType=function(...e){return(0,n.default)("DeclareOpaqueType",...e)},t.DeclareVariable=t.declareVariable=function(...e){return(0,n.default)("DeclareVariable",...e)},t.DeclareExportDeclaration=t.declareExportDeclaration=function(...e){return(0,n.default)("DeclareExportDeclaration",...e)},t.DeclareExportAllDeclaration=t.declareExportAllDeclaration=function(...e){return(0,n.default)("DeclareExportAllDeclaration",...e)},t.DeclaredPredicate=t.declaredPredicate=function(...e){return(0,n.default)("DeclaredPredicate",...e)},t.ExistsTypeAnnotation=t.existsTypeAnnotation=function(...e){return(0,n.default)("ExistsTypeAnnotation",...e)},t.FunctionTypeAnnotation=t.functionTypeAnnotation=function(...e){return(0,n.default)("FunctionTypeAnnotation",...e)},t.FunctionTypeParam=t.functionTypeParam=function(...e){return(0,n.default)("FunctionTypeParam",...e)},t.GenericTypeAnnotation=t.genericTypeAnnotation=function(...e){return(0,n.default)("GenericTypeAnnotation",...e)},t.InferredPredicate=t.inferredPredicate=function(...e){return(0,n.default)("InferredPredicate",...e)},t.InterfaceExtends=t.interfaceExtends=function(...e){return(0,n.default)("InterfaceExtends",...e)},t.InterfaceDeclaration=t.interfaceDeclaration=function(...e){return(0,n.default)("InterfaceDeclaration",...e)},t.InterfaceTypeAnnotation=t.interfaceTypeAnnotation=function(...e){return(0,n.default)("InterfaceTypeAnnotation",...e)},t.IntersectionTypeAnnotation=t.intersectionTypeAnnotation=function(...e){return(0,n.default)("IntersectionTypeAnnotation",...e)},t.MixedTypeAnnotation=t.mixedTypeAnnotation=function(...e){return(0,n.default)("MixedTypeAnnotation",...e)},t.EmptyTypeAnnotation=t.emptyTypeAnnotation=function(...e){return(0,n.default)("EmptyTypeAnnotation",...e)},t.NullableTypeAnnotation=t.nullableTypeAnnotation=function(...e){return(0,n.default)("NullableTypeAnnotation",...e)},t.NumberLiteralTypeAnnotation=t.numberLiteralTypeAnnotation=function(...e){return(0,n.default)("NumberLiteralTypeAnnotation",...e)},t.NumberTypeAnnotation=t.numberTypeAnnotation=function(...e){return(0,n.default)("NumberTypeAnnotation",...e)},t.ObjectTypeAnnotation=t.objectTypeAnnotation=function(...e){return(0,n.default)("ObjectTypeAnnotation",...e)},t.ObjectTypeInternalSlot=t.objectTypeInternalSlot=function(...e){return(0,n.default)("ObjectTypeInternalSlot",...e)},t.ObjectTypeCallProperty=t.objectTypeCallProperty=function(...e){return(0,n.default)("ObjectTypeCallProperty",...e)},t.ObjectTypeIndexer=t.objectTypeIndexer=function(...e){return(0,n.default)("ObjectTypeIndexer",...e)},t.ObjectTypeProperty=t.objectTypeProperty=function(...e){return(0,n.default)("ObjectTypeProperty",...e)},t.ObjectTypeSpreadProperty=t.objectTypeSpreadProperty=function(...e){return(0,n.default)("ObjectTypeSpreadProperty",...e)},t.OpaqueType=t.opaqueType=function(...e){return(0,n.default)("OpaqueType",...e)},t.QualifiedTypeIdentifier=t.qualifiedTypeIdentifier=function(...e){return(0,n.default)("QualifiedTypeIdentifier",...e)},t.StringLiteralTypeAnnotation=t.stringLiteralTypeAnnotation=function(...e){return(0,n.default)("StringLiteralTypeAnnotation",...e)},t.StringTypeAnnotation=t.stringTypeAnnotation=function(...e){return(0,n.default)("StringTypeAnnotation",...e)},t.SymbolTypeAnnotation=t.symbolTypeAnnotation=function(...e){return(0,n.default)("SymbolTypeAnnotation",...e)},t.ThisTypeAnnotation=t.thisTypeAnnotation=function(...e){return(0,n.default)("ThisTypeAnnotation",...e)},t.TupleTypeAnnotation=t.tupleTypeAnnotation=function(...e){return(0,n.default)("TupleTypeAnnotation",...e)},t.TypeofTypeAnnotation=t.typeofTypeAnnotation=function(...e){return(0,n.default)("TypeofTypeAnnotation",...e)},t.TypeAlias=t.typeAlias=function(...e){return(0,n.default)("TypeAlias",...e)},t.TypeAnnotation=t.typeAnnotation=function(...e){return(0,n.default)("TypeAnnotation",...e)},t.TypeCastExpression=t.typeCastExpression=function(...e){return(0,n.default)("TypeCastExpression",...e)},t.TypeParameter=t.typeParameter=function(...e){return(0,n.default)("TypeParameter",...e)},t.TypeParameterDeclaration=t.typeParameterDeclaration=function(...e){return(0,n.default)("TypeParameterDeclaration",...e)},t.TypeParameterInstantiation=t.typeParameterInstantiation=function(...e){return(0,n.default)("TypeParameterInstantiation",...e)},t.UnionTypeAnnotation=t.unionTypeAnnotation=function(...e){return(0,n.default)("UnionTypeAnnotation",...e)},t.Variance=t.variance=function(...e){return(0,n.default)("Variance",...e)},t.VoidTypeAnnotation=t.voidTypeAnnotation=function(...e){return(0,n.default)("VoidTypeAnnotation",...e)},t.EnumDeclaration=t.enumDeclaration=function(...e){return(0,n.default)("EnumDeclaration",...e)},t.EnumBooleanBody=t.enumBooleanBody=function(...e){return(0,n.default)("EnumBooleanBody",...e)},t.EnumNumberBody=t.enumNumberBody=function(...e){return(0,n.default)("EnumNumberBody",...e)},t.EnumStringBody=t.enumStringBody=function(...e){return(0,n.default)("EnumStringBody",...e)},t.EnumSymbolBody=t.enumSymbolBody=function(...e){return(0,n.default)("EnumSymbolBody",...e)},t.EnumBooleanMember=t.enumBooleanMember=function(...e){return(0,n.default)("EnumBooleanMember",...e)},t.EnumNumberMember=t.enumNumberMember=function(...e){return(0,n.default)("EnumNumberMember",...e)},t.EnumStringMember=t.enumStringMember=function(...e){return(0,n.default)("EnumStringMember",...e)},t.EnumDefaultedMember=t.enumDefaultedMember=function(...e){return(0,n.default)("EnumDefaultedMember",...e)},t.jSXAttribute=t.JSXAttribute=t.jsxAttribute=function(...e){return(0,n.default)("JSXAttribute",...e)},t.jSXClosingElement=t.JSXClosingElement=t.jsxClosingElement=function(...e){return(0,n.default)("JSXClosingElement",...e)},t.jSXElement=t.JSXElement=t.jsxElement=function(...e){return(0,n.default)("JSXElement",...e)},t.jSXEmptyExpression=t.JSXEmptyExpression=t.jsxEmptyExpression=function(...e){return(0,n.default)("JSXEmptyExpression",...e)},t.jSXExpressionContainer=t.JSXExpressionContainer=t.jsxExpressionContainer=function(...e){return(0,n.default)("JSXExpressionContainer",...e)},t.jSXSpreadChild=t.JSXSpreadChild=t.jsxSpreadChild=function(...e){return(0,n.default)("JSXSpreadChild",...e)},t.jSXIdentifier=t.JSXIdentifier=t.jsxIdentifier=function(...e){return(0,n.default)("JSXIdentifier",...e)},t.jSXMemberExpression=t.JSXMemberExpression=t.jsxMemberExpression=function(...e){return(0,n.default)("JSXMemberExpression",...e)},t.jSXNamespacedName=t.JSXNamespacedName=t.jsxNamespacedName=function(...e){return(0,n.default)("JSXNamespacedName",...e)},t.jSXOpeningElement=t.JSXOpeningElement=t.jsxOpeningElement=function(...e){return(0,n.default)("JSXOpeningElement",...e)},t.jSXSpreadAttribute=t.JSXSpreadAttribute=t.jsxSpreadAttribute=function(...e){return(0,n.default)("JSXSpreadAttribute",...e)},t.jSXText=t.JSXText=t.jsxText=function(...e){return(0,n.default)("JSXText",...e)},t.jSXFragment=t.JSXFragment=t.jsxFragment=function(...e){return(0,n.default)("JSXFragment",...e)},t.jSXOpeningFragment=t.JSXOpeningFragment=t.jsxOpeningFragment=function(...e){return(0,n.default)("JSXOpeningFragment",...e)},t.jSXClosingFragment=t.JSXClosingFragment=t.jsxClosingFragment=function(...e){return(0,n.default)("JSXClosingFragment",...e)},t.Noop=t.noop=function(...e){return(0,n.default)("Noop",...e)},t.Placeholder=t.placeholder=function(...e){return(0,n.default)("Placeholder",...e)},t.V8IntrinsicIdentifier=t.v8IntrinsicIdentifier=function(...e){return(0,n.default)("V8IntrinsicIdentifier",...e)},t.ArgumentPlaceholder=t.argumentPlaceholder=function(...e){return(0,n.default)("ArgumentPlaceholder",...e)},t.BindExpression=t.bindExpression=function(...e){return(0,n.default)("BindExpression",...e)},t.ClassProperty=t.classProperty=function(...e){return(0,n.default)("ClassProperty",...e)},t.PipelineTopicExpression=t.pipelineTopicExpression=function(...e){return(0,n.default)("PipelineTopicExpression",...e)},t.PipelineBareFunction=t.pipelineBareFunction=function(...e){return(0,n.default)("PipelineBareFunction",...e)},t.PipelinePrimaryTopicReference=t.pipelinePrimaryTopicReference=function(...e){return(0,n.default)("PipelinePrimaryTopicReference",...e)},t.ClassPrivateProperty=t.classPrivateProperty=function(...e){return(0,n.default)("ClassPrivateProperty",...e)},t.ClassPrivateMethod=t.classPrivateMethod=function(...e){return(0,n.default)("ClassPrivateMethod",...e)},t.ImportAttribute=t.importAttribute=function(...e){return(0,n.default)("ImportAttribute",...e)},t.Decorator=t.decorator=function(...e){return(0,n.default)("Decorator",...e)},t.DoExpression=t.doExpression=function(...e){return(0,n.default)("DoExpression",...e)},t.ExportDefaultSpecifier=t.exportDefaultSpecifier=function(...e){return(0,n.default)("ExportDefaultSpecifier",...e)},t.PrivateName=t.privateName=function(...e){return(0,n.default)("PrivateName",...e)},t.RecordExpression=t.recordExpression=function(...e){return(0,n.default)("RecordExpression",...e)},t.TupleExpression=t.tupleExpression=function(...e){return(0,n.default)("TupleExpression",...e)},t.DecimalLiteral=t.decimalLiteral=function(...e){return(0,n.default)("DecimalLiteral",...e)},t.StaticBlock=t.staticBlock=function(...e){return(0,n.default)("StaticBlock",...e)},t.tSParameterProperty=t.TSParameterProperty=t.tsParameterProperty=function(...e){return(0,n.default)("TSParameterProperty",...e)},t.tSDeclareFunction=t.TSDeclareFunction=t.tsDeclareFunction=function(...e){return(0,n.default)("TSDeclareFunction",...e)},t.tSDeclareMethod=t.TSDeclareMethod=t.tsDeclareMethod=function(...e){return(0,n.default)("TSDeclareMethod",...e)},t.tSQualifiedName=t.TSQualifiedName=t.tsQualifiedName=function(...e){return(0,n.default)("TSQualifiedName",...e)},t.tSCallSignatureDeclaration=t.TSCallSignatureDeclaration=t.tsCallSignatureDeclaration=function(...e){return(0,n.default)("TSCallSignatureDeclaration",...e)},t.tSConstructSignatureDeclaration=t.TSConstructSignatureDeclaration=t.tsConstructSignatureDeclaration=function(...e){return(0,n.default)("TSConstructSignatureDeclaration",...e)},t.tSPropertySignature=t.TSPropertySignature=t.tsPropertySignature=function(...e){return(0,n.default)("TSPropertySignature",...e)},t.tSMethodSignature=t.TSMethodSignature=t.tsMethodSignature=function(...e){return(0,n.default)("TSMethodSignature",...e)},t.tSIndexSignature=t.TSIndexSignature=t.tsIndexSignature=function(...e){return(0,n.default)("TSIndexSignature",...e)},t.tSAnyKeyword=t.TSAnyKeyword=t.tsAnyKeyword=function(...e){return(0,n.default)("TSAnyKeyword",...e)},t.tSBooleanKeyword=t.TSBooleanKeyword=t.tsBooleanKeyword=function(...e){return(0,n.default)("TSBooleanKeyword",...e)},t.tSBigIntKeyword=t.TSBigIntKeyword=t.tsBigIntKeyword=function(...e){return(0,n.default)("TSBigIntKeyword",...e)},t.tSIntrinsicKeyword=t.TSIntrinsicKeyword=t.tsIntrinsicKeyword=function(...e){return(0,n.default)("TSIntrinsicKeyword",...e)},t.tSNeverKeyword=t.TSNeverKeyword=t.tsNeverKeyword=function(...e){return(0,n.default)("TSNeverKeyword",...e)},t.tSNullKeyword=t.TSNullKeyword=t.tsNullKeyword=function(...e){return(0,n.default)("TSNullKeyword",...e)},t.tSNumberKeyword=t.TSNumberKeyword=t.tsNumberKeyword=function(...e){return(0,n.default)("TSNumberKeyword",...e)},t.tSObjectKeyword=t.TSObjectKeyword=t.tsObjectKeyword=function(...e){return(0,n.default)("TSObjectKeyword",...e)},t.tSStringKeyword=t.TSStringKeyword=t.tsStringKeyword=function(...e){return(0,n.default)("TSStringKeyword",...e)},t.tSSymbolKeyword=t.TSSymbolKeyword=t.tsSymbolKeyword=function(...e){return(0,n.default)("TSSymbolKeyword",...e)},t.tSUndefinedKeyword=t.TSUndefinedKeyword=t.tsUndefinedKeyword=function(...e){return(0,n.default)("TSUndefinedKeyword",...e)},t.tSUnknownKeyword=t.TSUnknownKeyword=t.tsUnknownKeyword=function(...e){return(0,n.default)("TSUnknownKeyword",...e)},t.tSVoidKeyword=t.TSVoidKeyword=t.tsVoidKeyword=function(...e){return(0,n.default)("TSVoidKeyword",...e)},t.tSThisType=t.TSThisType=t.tsThisType=function(...e){return(0,n.default)("TSThisType",...e)},t.tSFunctionType=t.TSFunctionType=t.tsFunctionType=function(...e){return(0,n.default)("TSFunctionType",...e)},t.tSConstructorType=t.TSConstructorType=t.tsConstructorType=function(...e){return(0,n.default)("TSConstructorType",...e)},t.tSTypeReference=t.TSTypeReference=t.tsTypeReference=function(...e){return(0,n.default)("TSTypeReference",...e)},t.tSTypePredicate=t.TSTypePredicate=t.tsTypePredicate=function(...e){return(0,n.default)("TSTypePredicate",...e)},t.tSTypeQuery=t.TSTypeQuery=t.tsTypeQuery=function(...e){return(0,n.default)("TSTypeQuery",...e)},t.tSTypeLiteral=t.TSTypeLiteral=t.tsTypeLiteral=function(...e){return(0,n.default)("TSTypeLiteral",...e)},t.tSArrayType=t.TSArrayType=t.tsArrayType=function(...e){return(0,n.default)("TSArrayType",...e)},t.tSTupleType=t.TSTupleType=t.tsTupleType=function(...e){return(0,n.default)("TSTupleType",...e)},t.tSOptionalType=t.TSOptionalType=t.tsOptionalType=function(...e){return(0,n.default)("TSOptionalType",...e)},t.tSRestType=t.TSRestType=t.tsRestType=function(...e){return(0,n.default)("TSRestType",...e)},t.tSNamedTupleMember=t.TSNamedTupleMember=t.tsNamedTupleMember=function(...e){return(0,n.default)("TSNamedTupleMember",...e)},t.tSUnionType=t.TSUnionType=t.tsUnionType=function(...e){return(0,n.default)("TSUnionType",...e)},t.tSIntersectionType=t.TSIntersectionType=t.tsIntersectionType=function(...e){return(0,n.default)("TSIntersectionType",...e)},t.tSConditionalType=t.TSConditionalType=t.tsConditionalType=function(...e){return(0,n.default)("TSConditionalType",...e)},t.tSInferType=t.TSInferType=t.tsInferType=function(...e){return(0,n.default)("TSInferType",...e)},t.tSParenthesizedType=t.TSParenthesizedType=t.tsParenthesizedType=function(...e){return(0,n.default)("TSParenthesizedType",...e)},t.tSTypeOperator=t.TSTypeOperator=t.tsTypeOperator=function(...e){return(0,n.default)("TSTypeOperator",...e)},t.tSIndexedAccessType=t.TSIndexedAccessType=t.tsIndexedAccessType=function(...e){return(0,n.default)("TSIndexedAccessType",...e)},t.tSMappedType=t.TSMappedType=t.tsMappedType=function(...e){return(0,n.default)("TSMappedType",...e)},t.tSLiteralType=t.TSLiteralType=t.tsLiteralType=function(...e){return(0,n.default)("TSLiteralType",...e)},t.tSExpressionWithTypeArguments=t.TSExpressionWithTypeArguments=t.tsExpressionWithTypeArguments=function(...e){return(0,n.default)("TSExpressionWithTypeArguments",...e)},t.tSInterfaceDeclaration=t.TSInterfaceDeclaration=t.tsInterfaceDeclaration=function(...e){return(0,n.default)("TSInterfaceDeclaration",...e)},t.tSInterfaceBody=t.TSInterfaceBody=t.tsInterfaceBody=function(...e){return(0,n.default)("TSInterfaceBody",...e)},t.tSTypeAliasDeclaration=t.TSTypeAliasDeclaration=t.tsTypeAliasDeclaration=function(...e){return(0,n.default)("TSTypeAliasDeclaration",...e)},t.tSAsExpression=t.TSAsExpression=t.tsAsExpression=function(...e){return(0,n.default)("TSAsExpression",...e)},t.tSTypeAssertion=t.TSTypeAssertion=t.tsTypeAssertion=function(...e){return(0,n.default)("TSTypeAssertion",...e)},t.tSEnumDeclaration=t.TSEnumDeclaration=t.tsEnumDeclaration=function(...e){return(0,n.default)("TSEnumDeclaration",...e)},t.tSEnumMember=t.TSEnumMember=t.tsEnumMember=function(...e){return(0,n.default)("TSEnumMember",...e)},t.tSModuleDeclaration=t.TSModuleDeclaration=t.tsModuleDeclaration=function(...e){return(0,n.default)("TSModuleDeclaration",...e)},t.tSModuleBlock=t.TSModuleBlock=t.tsModuleBlock=function(...e){return(0,n.default)("TSModuleBlock",...e)},t.tSImportType=t.TSImportType=t.tsImportType=function(...e){return(0,n.default)("TSImportType",...e)},t.tSImportEqualsDeclaration=t.TSImportEqualsDeclaration=t.tsImportEqualsDeclaration=function(...e){return(0,n.default)("TSImportEqualsDeclaration",...e)},t.tSExternalModuleReference=t.TSExternalModuleReference=t.tsExternalModuleReference=function(...e){return(0,n.default)("TSExternalModuleReference",...e)},t.tSNonNullExpression=t.TSNonNullExpression=t.tsNonNullExpression=function(...e){return(0,n.default)("TSNonNullExpression",...e)},t.tSExportAssignment=t.TSExportAssignment=t.tsExportAssignment=function(...e){return(0,n.default)("TSExportAssignment",...e)},t.tSNamespaceExportDeclaration=t.TSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=function(...e){return(0,n.default)("TSNamespaceExportDeclaration",...e)},t.tSTypeAnnotation=t.TSTypeAnnotation=t.tsTypeAnnotation=function(...e){return(0,n.default)("TSTypeAnnotation",...e)},t.tSTypeParameterInstantiation=t.TSTypeParameterInstantiation=t.tsTypeParameterInstantiation=function(...e){return(0,n.default)("TSTypeParameterInstantiation",...e)},t.tSTypeParameterDeclaration=t.TSTypeParameterDeclaration=t.tsTypeParameterDeclaration=function(...e){return(0,n.default)("TSTypeParameterDeclaration",...e)},t.tSTypeParameter=t.TSTypeParameter=t.tsTypeParameter=function(...e){return(0,n.default)("TSTypeParameter",...e)},t.numberLiteral=t.NumberLiteral=function(...e){return console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),(0,n.default)("NumberLiteral",...e)},t.regexLiteral=t.RegexLiteral=function(...e){return console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),(0,n.default)("RegexLiteral",...e)},t.restProperty=t.RestProperty=function(...e){return console.trace("The node type RestProperty has been renamed to RestElement"),(0,n.default)("RestProperty",...e)},t.spreadProperty=t.SpreadProperty=function(...e){return console.trace("The node type SpreadProperty has been renamed to SpreadElement"),(0,n.default)("SpreadProperty",...e)};var i,n=(i=r(1739))&&i.__esModule?i:{default:i}},4986:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[];for(let r=0;r<e.children.length;r++){let i=e.children[r];(0,n.isJSXText)(i)?(0,s.default)(i,t):((0,n.isJSXExpressionContainer)(i)&&(i=i.expression),(0,n.isJSXEmptyExpression)(i)||t.push(i))}return t};var i,n=r(8037),s=(i=r(586))&&i.__esModule?i:{default:i}},7329:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.map((e=>e.typeAnnotations)),r=(0,s.default)(t);return 1===r.length?r[0]:(0,n.tsUnionType)(r)};var i,n=r(3894),s=(i=r(2493))&&i.__esModule?i:{default:i}},5509:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e,!1)};var i,n=(i=r(539))&&i.__esModule?i:{default:i}},2107:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e)};var i,n=(i=r(539))&&i.__esModule?i:{default:i}},2634:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e,!0,!0)};var i,n=(i=r(539))&&i.__esModule?i:{default:i}},539:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=cloneNode;var i=r(9829);const n=Function.call.bind(Object.prototype.hasOwnProperty);function cloneIfNode(e,t,r){return e&&"string"==typeof e.type?cloneNode(e,t,r):e}function cloneIfNodeOrArray(e,t,r){return Array.isArray(e)?e.map((e=>cloneIfNode(e,t,r))):cloneIfNode(e,t,r)}function cloneNode(e,t=!0,r=!1){if(!e)return e;const{type:s}=e,a={type:s};if("Identifier"===s)a.name=e.name,n(e,"optional")&&"boolean"==typeof e.optional&&(a.optional=e.optional),n(e,"typeAnnotation")&&(a.typeAnnotation=t?cloneIfNodeOrArray(e.typeAnnotation,!0,r):e.typeAnnotation);else{if(!n(i.NODE_FIELDS,s))throw new Error(`Unknown node type: "${s}"`);for(const o of Object.keys(i.NODE_FIELDS[s]))n(e,o)&&(a[o]=t?"File"===s&&"comments"===o?maybeCloneComments(e.comments,t,r):cloneIfNodeOrArray(e[o],!0,r):e[o])}return n(e,"loc")&&(a.loc=r?null:e.loc),n(e,"leadingComments")&&(a.leadingComments=maybeCloneComments(e.leadingComments,t,r)),n(e,"innerComments")&&(a.innerComments=maybeCloneComments(e.innerComments,t,r)),n(e,"trailingComments")&&(a.trailingComments=maybeCloneComments(e.trailingComments,t,r)),n(e,"extra")&&(a.extra=Object.assign({},e.extra)),a}function maybeCloneComments(e,t,r){return t&&r?function(e){return e.map((({type:e,value:t})=>({type:e,value:t,loc:null})))}(e):e}},1225:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e,!1,!0)};var i,n=(i=r(539))&&i.__esModule?i:{default:i}},8184:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,i){return(0,n.default)(e,t,[{type:i?"CommentLine":"CommentBlock",value:r}])};var i,n=(i=r(2243))&&i.__esModule?i:{default:i}},2243:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!r||!e)return e;const i=`${t}Comments`;e[i]?e[i]="leading"===t?r.concat(e[i]):e[i].concat(r):e[i]=r;return e}},440:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)("innerComments",e,t)};var i,n=(i=r(3450))&&i.__esModule?i:{default:i}},9622:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)("leadingComments",e,t)};var i,n=(i=r(3450))&&i.__esModule?i:{default:i}},9868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)("trailingComments",e,t)};var i,n=(i=r(3450))&&i.__esModule?i:{default:i}},6168:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,i.default)(e,t),(0,n.default)(e,t),(0,s.default)(e,t),e};var i=_interopRequireDefault(r(9868)),n=_interopRequireDefault(r(9622)),s=_interopRequireDefault(r(440));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},4670:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return i.COMMENT_KEYS.forEach((t=>{e[t]=null})),e};var i=r(9660)},1798:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TSBASETYPE_TYPES=t.TSTYPE_TYPES=t.TSTYPEELEMENT_TYPES=t.PRIVATE_TYPES=t.JSX_TYPES=t.ENUMMEMBER_TYPES=t.ENUMBODY_TYPES=t.FLOWPREDICATE_TYPES=t.FLOWDECLARATION_TYPES=t.FLOWBASEANNOTATION_TYPES=t.FLOWTYPE_TYPES=t.FLOW_TYPES=t.MODULESPECIFIER_TYPES=t.EXPORTDECLARATION_TYPES=t.MODULEDECLARATION_TYPES=t.CLASS_TYPES=t.PATTERN_TYPES=t.UNARYLIKE_TYPES=t.PROPERTY_TYPES=t.OBJECTMEMBER_TYPES=t.METHOD_TYPES=t.USERWHITESPACABLE_TYPES=t.IMMUTABLE_TYPES=t.LITERAL_TYPES=t.TSENTITYNAME_TYPES=t.LVAL_TYPES=t.PATTERNLIKE_TYPES=t.DECLARATION_TYPES=t.PUREISH_TYPES=t.FUNCTIONPARENT_TYPES=t.FUNCTION_TYPES=t.FORXSTATEMENT_TYPES=t.FOR_TYPES=t.EXPRESSIONWRAPPER_TYPES=t.WHILE_TYPES=t.LOOP_TYPES=t.CONDITIONAL_TYPES=t.COMPLETIONSTATEMENT_TYPES=t.TERMINATORLESS_TYPES=t.STATEMENT_TYPES=t.BLOCK_TYPES=t.BLOCKPARENT_TYPES=t.SCOPABLE_TYPES=t.BINARY_TYPES=t.EXPRESSION_TYPES=void 0;var i=r(9829);const n=i.FLIPPED_ALIAS_KEYS.Expression;t.EXPRESSION_TYPES=n;const s=i.FLIPPED_ALIAS_KEYS.Binary;t.BINARY_TYPES=s;const a=i.FLIPPED_ALIAS_KEYS.Scopable;t.SCOPABLE_TYPES=a;const o=i.FLIPPED_ALIAS_KEYS.BlockParent;t.BLOCKPARENT_TYPES=o;const l=i.FLIPPED_ALIAS_KEYS.Block;t.BLOCK_TYPES=l;const c=i.FLIPPED_ALIAS_KEYS.Statement;t.STATEMENT_TYPES=c;const u=i.FLIPPED_ALIAS_KEYS.Terminatorless;t.TERMINATORLESS_TYPES=u;const p=i.FLIPPED_ALIAS_KEYS.CompletionStatement;t.COMPLETIONSTATEMENT_TYPES=p;const d=i.FLIPPED_ALIAS_KEYS.Conditional;t.CONDITIONAL_TYPES=d;const h=i.FLIPPED_ALIAS_KEYS.Loop;t.LOOP_TYPES=h;const f=i.FLIPPED_ALIAS_KEYS.While;t.WHILE_TYPES=f;const m=i.FLIPPED_ALIAS_KEYS.ExpressionWrapper;t.EXPRESSIONWRAPPER_TYPES=m;const y=i.FLIPPED_ALIAS_KEYS.For;t.FOR_TYPES=y;const T=i.FLIPPED_ALIAS_KEYS.ForXStatement;t.FORXSTATEMENT_TYPES=T;const g=i.FLIPPED_ALIAS_KEYS.Function;t.FUNCTION_TYPES=g;const b=i.FLIPPED_ALIAS_KEYS.FunctionParent;t.FUNCTIONPARENT_TYPES=b;const S=i.FLIPPED_ALIAS_KEYS.Pureish;t.PUREISH_TYPES=S;const x=i.FLIPPED_ALIAS_KEYS.Declaration;t.DECLARATION_TYPES=x;const P=i.FLIPPED_ALIAS_KEYS.PatternLike;t.PATTERNLIKE_TYPES=P;const v=i.FLIPPED_ALIAS_KEYS.LVal;t.LVAL_TYPES=v;const A=i.FLIPPED_ALIAS_KEYS.TSEntityName;t.TSENTITYNAME_TYPES=A;const w=i.FLIPPED_ALIAS_KEYS.Literal;t.LITERAL_TYPES=w;const I=i.FLIPPED_ALIAS_KEYS.Immutable;t.IMMUTABLE_TYPES=I;const C=i.FLIPPED_ALIAS_KEYS.UserWhitespacable;t.USERWHITESPACABLE_TYPES=C;const O=i.FLIPPED_ALIAS_KEYS.Method;t.METHOD_TYPES=O;const N=i.FLIPPED_ALIAS_KEYS.ObjectMember;t.OBJECTMEMBER_TYPES=N;const _=i.FLIPPED_ALIAS_KEYS.Property;t.PROPERTY_TYPES=_;const k=i.FLIPPED_ALIAS_KEYS.UnaryLike;t.UNARYLIKE_TYPES=k;const D=i.FLIPPED_ALIAS_KEYS.Pattern;t.PATTERN_TYPES=D;const L=i.FLIPPED_ALIAS_KEYS.Class;t.CLASS_TYPES=L;const M=i.FLIPPED_ALIAS_KEYS.ModuleDeclaration;t.MODULEDECLARATION_TYPES=M;const B=i.FLIPPED_ALIAS_KEYS.ExportDeclaration;t.EXPORTDECLARATION_TYPES=B;const j=i.FLIPPED_ALIAS_KEYS.ModuleSpecifier;t.MODULESPECIFIER_TYPES=j;const R=i.FLIPPED_ALIAS_KEYS.Flow;t.FLOW_TYPES=R;const F=i.FLIPPED_ALIAS_KEYS.FlowType;t.FLOWTYPE_TYPES=F;const U=i.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation;t.FLOWBASEANNOTATION_TYPES=U;const K=i.FLIPPED_ALIAS_KEYS.FlowDeclaration;t.FLOWDECLARATION_TYPES=K;const q=i.FLIPPED_ALIAS_KEYS.FlowPredicate;t.FLOWPREDICATE_TYPES=q;const V=i.FLIPPED_ALIAS_KEYS.EnumBody;t.ENUMBODY_TYPES=V;const W=i.FLIPPED_ALIAS_KEYS.EnumMember;t.ENUMMEMBER_TYPES=W;const Y=i.FLIPPED_ALIAS_KEYS.JSX;t.JSX_TYPES=Y;const X=i.FLIPPED_ALIAS_KEYS.Private;t.PRIVATE_TYPES=X;const J=i.FLIPPED_ALIAS_KEYS.TSTypeElement;t.TSTYPEELEMENT_TYPES=J;const H=i.FLIPPED_ALIAS_KEYS.TSType;t.TSTYPE_TYPES=H;const G=i.FLIPPED_ALIAS_KEYS.TSBaseType;t.TSBASETYPE_TYPES=G},9660:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NOT_LOCAL_BINDING=t.BLOCK_SCOPED_SYMBOL=t.INHERIT_KEYS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.NUMBER_UNARY_OPERATORS=t.BOOLEAN_UNARY_OPERATORS=t.ASSIGNMENT_OPERATORS=t.BINARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.EQUALITY_BINARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.UPDATE_OPERATORS=t.LOGICAL_OPERATORS=t.COMMENT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.STATEMENT_OR_BLOCK_KEYS=void 0;t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"];t.FLATTENABLE_KEYS=["body","expressions"];t.FOR_INIT_KEYS=["left","init"];t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const r=["||","&&","??"];t.LOGICAL_OPERATORS=r;t.UPDATE_OPERATORS=["++","--"];const i=[">","<",">=","<="];t.BOOLEAN_NUMBER_BINARY_OPERATORS=i;const n=["==","===","!=","!=="];t.EQUALITY_BINARY_OPERATORS=n;const s=[...n,"in","instanceof"];t.COMPARISON_BINARY_OPERATORS=s;const a=[...s,...i];t.BOOLEAN_BINARY_OPERATORS=a;const o=["-","/","%","*","**","&","|",">>",">>>","<<","^"];t.NUMBER_BINARY_OPERATORS=o;const l=["+",...o,...a];t.BINARY_OPERATORS=l;const c=["=","+=",...o.map((e=>e+"=")),...r.map((e=>e+"="))];t.ASSIGNMENT_OPERATORS=c;const u=["delete","!"];t.BOOLEAN_UNARY_OPERATORS=u;const p=["+","-","~"];t.NUMBER_UNARY_OPERATORS=p;const d=["typeof"];t.STRING_UNARY_OPERATORS=d;const h=["void","throw",...u,...p,...d];t.UNARY_OPERATORS=h;t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};const f=Symbol.for("var used to be block scoped");t.BLOCK_SCOPED_SYMBOL=f;const m=Symbol.for("should not be considered a local binding");t.NOT_LOCAL_BINDING=m},4157:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t="body"){return e[t]=(0,n.default)(e[t],e)};var i,n=(i=r(130))&&i.__esModule?i:{default:i}},5366:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function gatherSequenceExpressions(e,t,r){const o=[];let l=!0;for(const c of e)if((0,n.isEmptyStatement)(c)||(l=!1),(0,n.isExpression)(c))o.push(c);else if((0,n.isExpressionStatement)(c))o.push(c.expression);else if((0,n.isVariableDeclaration)(c)){if("var"!==c.kind)return;for(const e of c.declarations){const t=(0,i.default)(e);for(const e of Object.keys(t))r.push({kind:c.kind,id:(0,a.default)(t[e])});e.init&&o.push((0,s.assignmentExpression)("=",e.id,e.init))}l=!0}else if((0,n.isIfStatement)(c)){const e=c.consequent?gatherSequenceExpressions([c.consequent],t,r):t.buildUndefinedNode(),i=c.alternate?gatherSequenceExpressions([c.alternate],t,r):t.buildUndefinedNode();if(!e||!i)return;o.push((0,s.conditionalExpression)(c.test,e,i))}else if((0,n.isBlockStatement)(c)){const e=gatherSequenceExpressions(c.body,t,r);if(!e)return;o.push(e)}else{if(!(0,n.isEmptyStatement)(c))return;0===e.indexOf(c)&&(l=!0)}l&&o.push(t.buildUndefinedNode());return 1===o.length?o[0]:(0,s.sequenceExpression)(o)};var i=_interopRequireDefault(r(3407)),n=r(8037),s=r(3894),a=_interopRequireDefault(r(539));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},8681:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"eval"!==(e=(0,n.default)(e))&&"arguments"!==e||(e="_"+e);return e};var i,n=(i=r(5450))&&i.__esModule?i:{default:i}},130:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.isBlockStatement)(e))return e;let r=[];(0,i.isEmptyStatement)(e)?r=[]:((0,i.isStatement)(e)||(e=(0,i.isFunction)(t)?(0,n.returnStatement)(e):(0,n.expressionStatement)(e)),r=[e]);return(0,n.blockStatement)(r)};var i=r(8037),n=r(3894)},940:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=e.key||e.property){!e.computed&&(0,i.isIdentifier)(t)&&(t=(0,n.stringLiteral)(t.name));return t};var i=r(8037),n=r(3894)},2858:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.isExpressionStatement)(e)&&(e=e.expression);if((0,i.isExpression)(e))return e;(0,i.isClass)(e)?e.type="ClassExpression":(0,i.isFunction)(e)&&(e.type="FunctionExpression");if(!(0,i.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e};var i=r(8037)},5450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e=(e=(e=(e+="").replace(/[^a-zA-Z0-9$_]/g,"-")).replace(/^[-0-9]+/,"")).replace(/[-\\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""})),(0,n.default)(e)||(e=`_${e}`);return e||"_"};var i,n=(i=r(380))&&i.__esModule?i:{default:i}},8100:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=toKeyAlias;var i=r(8037),n=_interopRequireDefault(r(539)),s=_interopRequireDefault(r(4888));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function toKeyAlias(e,t=e.key){let r;return"method"===e.kind?toKeyAlias.increment()+"":(r=(0,i.isIdentifier)(t)?t.name:(0,i.isStringLiteral)(t)?JSON.stringify(t.value):JSON.stringify((0,s.default)((0,n.default)(t))),e.computed&&(r=`[${r}]`),e.static&&(r=`static:${r}`),r)}toKeyAlias.uid=0,toKeyAlias.increment=function(){return toKeyAlias.uid>=Number.MAX_SAFE_INTEGER?toKeyAlias.uid=0:toKeyAlias.uid++}},4914:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!(null==e?void 0:e.length))return;const r=[],i=(0,n.default)(e,t,r);if(!i)return;for(const e of r)t.push(e);return i};var i,n=(i=r(5366))&&i.__esModule?i:{default:i}},2469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.isStatement)(e))return e;let r,s=!1;if((0,i.isClass)(e))s=!0,r="ClassDeclaration";else if((0,i.isFunction)(e))s=!0,r="FunctionDeclaration";else if((0,i.isAssignmentExpression)(e))return(0,n.expressionStatement)(e);s&&!e.id&&(r=!1);if(!r){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=r,e};var i=r(8037),n=r(3894)},8626:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function valueToNode(e){if(void 0===e)return(0,a.identifier)("undefined");if(!0===e||!1===e)return(0,a.booleanLiteral)(e);if(null===e)return(0,a.nullLiteral)();if("string"==typeof e)return(0,a.stringLiteral)(e);if("number"==typeof e){let t;if(Number.isFinite(e))t=(0,a.numericLiteral)(Math.abs(e));else{let r;r=Number.isNaN(e)?(0,a.numericLiteral)(0):(0,a.numericLiteral)(1),t=(0,a.binaryExpression)("/",r,(0,a.numericLiteral)(0))}return(e<0||Object.is(e,-0))&&(t=(0,a.unaryExpression)("-",t)),t}if((0,n.default)(e)){const t=e.source,r=e.toString().match(/\\/([a-z]+|)$/)[1];return(0,a.regExpLiteral)(t,r)}if(Array.isArray(e))return(0,a.arrayExpression)(e.map(valueToNode));if((0,i.default)(e)){const t=[];for(const r of Object.keys(e)){let i;i=(0,s.default)(r)?(0,a.identifier)(r):(0,a.stringLiteral)(r),t.push((0,a.objectProperty)(i,valueToNode(e[r])))}return(0,a.objectExpression)(t)}throw new Error("don\'t know how to turn this value into a node")};var i=_interopRequireDefault(r(3177)),n=_interopRequireDefault(r(7832)),s=_interopRequireDefault(r(380)),a=r(3894);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},4613:(e,t,r)=>{"use strict";var i=r(397);Object.defineProperty(t,"__esModule",{value:!0}),t.classMethodOrDeclareMethodCommon=t.classMethodOrPropertyCommon=t.patternLikeCommon=t.functionDeclarationCommon=t.functionTypeAnnotationCommon=t.functionCommon=void 0;var n=_interopRequireDefault(r(6593)),s=_interopRequireDefault(r(380)),a=r(7075),o=r(9660),l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(6343));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(0,l.default)("ArrayExpression",{fields:{elements:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeOrValueType)("null","Expression","SpreadElement"))),default:i.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),(0,l.default)("AssignmentExpression",{fields:{operator:{validate:function(){if(!i.env.BABEL_TYPES_8_BREAKING)return(0,l.assertValueType)("string");const e=(0,l.assertOneOf)(...o.ASSIGNMENT_OPERATORS),t=(0,l.assertOneOf)("=");return function(r,i,s){((0,n.default)("Pattern",r.left)?t:e)(r,i,s)}}()},left:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern"):(0,l.assertNodeType)("LVal")},right:{validate:(0,l.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),(0,l.default)("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,l.assertOneOf)(...o.BINARY_OPERATORS)},left:{validate:function(){const e=(0,l.assertNodeType)("Expression"),t=(0,l.assertNodeType)("Expression","PrivateName"),validator=function(r,i,n){("in"===r.operator?t:e)(r,i,n)};return validator.oneOfNodeTypes=["Expression","PrivateName"],validator}()},right:{validate:(0,l.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),(0,l.default)("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}}}),(0,l.default)("Directive",{visitor:["value"],fields:{value:{validate:(0,l.assertNodeType)("DirectiveLiteral")}}}),(0,l.default)("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}}}),(0,l.default)("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Directive"))),default:[]},body:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block","Statement"]}),(0,l.default)("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,l.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),(0,l.default)("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,l.assertNodeType)("Expression","V8IntrinsicIdentifier")},arguments:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Expression","SpreadElement","JSXNamespacedName","ArgumentPlaceholder")))}},i.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,l.assertOneOf)(!0,!1),optional:!0}},{typeArguments:{validate:(0,l.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),(0,l.default)("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,l.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),(0,l.default)("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},consequent:{validate:(0,l.assertNodeType)("Expression")},alternate:{validate:(0,l.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),(0,l.default)("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,l.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),(0,l.default)("DebuggerStatement",{aliases:["Statement"]}),(0,l.default)("DoWhileStatement",{visitor:["test","body"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),(0,l.default)("EmptyStatement",{aliases:["Statement"]}),(0,l.default)("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,l.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),(0,l.default)("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,l.assertNodeType)("Program")},comments:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.assertEach)((0,l.assertNodeType)("CommentBlock","CommentLine")):Object.assign((()=>{}),{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,l.assertEach)(Object.assign((()=>{}),{type:"any"})),optional:!0}}}),(0,l.default)("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern"):(0,l.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}}),(0,l.default)("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,l.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,l.assertNodeType)("Expression"),optional:!0},update:{validate:(0,l.assertNodeType)("Expression"),optional:!0},body:{validate:(0,l.assertNodeType)("Statement")}}});const c={params:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Identifier","Pattern","RestElement","TSParameterProperty")))},generator:{default:!1},async:{default:!1}};t.functionCommon=c;const u={returnType:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}};t.functionTypeAnnotationCommon=u;const p=Object.assign({},c,{declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0}});t.functionDeclarationCommon=p,(0,l.default)("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","params","body","returnType","typeParameters"],fields:Object.assign({},p,u,{body:{validate:(0,l.assertNodeType)("BlockStatement")}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:function(){if(!i.env.BABEL_TYPES_8_BREAKING)return()=>{};const e=(0,l.assertNodeType)("Identifier");return function(t,r,i){(0,n.default)("ExportDefaultDeclaration",t)||e(i,"id",i.id)}}()}),(0,l.default)("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},c,u,{id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,l.assertNodeType)("BlockStatement")}})});const d={typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator")))}};t.patternLikeCommon=d,(0,l.default)("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},d,{name:{validate:(0,l.chain)((0,l.assertValueType)("string"),Object.assign((function(e,t,r){if(i.env.BABEL_TYPES_8_BREAKING&&!(0,s.default)(r,!1))throw new TypeError(`"${r}" is not a valid identifier name`)}),{type:"string"}))},optional:{validate:(0,l.assertValueType)("boolean"),optional:!0}}),validate(e,t,r){if(!i.env.BABEL_TYPES_8_BREAKING)return;const s=/\\.(\\w+)$/.exec(t);if(!s)return;const[,o]=s,l={computed:!1};if("property"===o){if((0,n.default)("MemberExpression",e,l))return;if((0,n.default)("OptionalMemberExpression",e,l))return}else if("key"===o){if((0,n.default)("Property",e,l))return;if((0,n.default)("Method",e,l))return}else if("exported"===o){if((0,n.default)("ExportSpecifier",e))return}else if("imported"===o){if((0,n.default)("ImportSpecifier",e,{imported:r}))return}else if("meta"===o&&(0,n.default)("MetaProperty",e,{meta:r}))return;if(((0,a.isKeyword)(r.name)||(0,a.isReservedWord)(r.name))&&"this"!==r.name)throw new TypeError(`"${r.name}" is not a valid identifier`)}}),(0,l.default)("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},consequent:{validate:(0,l.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,l.assertNodeType)("Statement")}}}),(0,l.default)("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,l.assertNodeType)("Identifier")},body:{validate:(0,l.assertNodeType)("Statement")}}}),(0,l.default)("StringLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,l.assertValueType)("number")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,l.assertValueType)("string")},flags:{validate:(0,l.chain)((0,l.assertValueType)("string"),Object.assign((function(e,t,r){if(!i.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:""}}}),(0,l.default)("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,l.assertOneOf)(...o.LOGICAL_OPERATORS)},left:{validate:(0,l.assertNodeType)("Expression")},right:{validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("MemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:(0,l.assertNodeType)("Expression")},property:{validate:function(){const e=(0,l.assertNodeType)("Identifier","PrivateName"),t=(0,l.assertNodeType)("Expression"),validator=function(r,i,n){(r.computed?t:e)(r,i,n)};return validator.oneOfNodeTypes=["Expression","Identifier","PrivateName"],validator}()},computed:{default:!1}},i.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,l.assertOneOf)(!0,!1),optional:!0}})}),(0,l.default)("NewExpression",{inherits:"CallExpression"}),(0,l.default)("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceFile:{validate:(0,l.assertValueType)("string")},sourceType:{validate:(0,l.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,l.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Directive"))),default:[]},body:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block"]}),(0,l.default)("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("ObjectMethod","ObjectProperty","SpreadElement")))}}}),(0,l.default)("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],fields:Object.assign({},c,u,{kind:Object.assign({validate:(0,l.assertOneOf)("method","get","set")},i.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),t=(0,l.assertNodeType)("Expression"),validator=function(r,i,n){(r.computed?t:e)(r,i,n)};return validator.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral"],validator}()},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0},body:{validate:(0,l.assertNodeType)("BlockStatement")}}),visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),(0,l.default)("ObjectProperty",{builder:["key","value","computed","shorthand",...i.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),t=(0,l.assertNodeType)("Expression"),validator=function(r,i,n){(r.computed?t:e)(r,i,n)};return validator.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral"],validator}()},value:{validate:(0,l.assertNodeType)("Expression","PatternLike")},shorthand:{validate:(0,l.chain)((0,l.assertValueType)("boolean"),Object.assign((function(e,t,r){if(i.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,t,r){if(i.env.BABEL_TYPES_8_BREAKING&&r&&!(0,n.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,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:function(){const e=(0,l.assertNodeType)("Identifier","Pattern"),t=(0,l.assertNodeType)("Expression");return function(r,s,a){if(!i.env.BABEL_TYPES_8_BREAKING)return;((0,n.default)("ObjectPattern",r)?e:t)(a,"value",a.value)}}()}),(0,l.default)("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},d,{argument:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","Pattern","MemberExpression"):(0,l.assertNodeType)("LVal")}}),validate(e,t){if(!i.env.BABEL_TYPES_8_BREAKING)return;const r=/(\\w+)\\[(\\d+)\\]/.exec(t);if(!r)throw new Error("Internal Babel error: malformed key.");const[,n,s]=r;if(e[n].length>s+1)throw new TypeError(`RestElement must be last element of ${n}`)}}),(0,l.default)("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,l.assertNodeType)("Expression"),optional:!0}}}),(0,l.default)("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Expression")))}},aliases:["Expression"]}),(0,l.default)("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,l.assertNodeType)("Expression"),optional:!0},consequent:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Statement")))}}}),(0,l.default)("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,l.assertNodeType)("Expression")},cases:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("SwitchCase")))}}}),(0,l.default)("ThisExpression",{aliases:["Expression"]}),(0,l.default)("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:(0,l.chain)((0,l.assertNodeType)("BlockStatement"),Object.assign((function(e){if(i.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,l.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,l.assertNodeType)("BlockStatement")}}}),(0,l.default)("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,l.assertNodeType)("Expression")},operator:{validate:(0,l.assertOneOf)(...o.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),(0,l.default)("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Identifier","MemberExpression"):(0,l.assertNodeType)("Expression")},operator:{validate:(0,l.assertOneOf)(...o.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),(0,l.default)("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},kind:{validate:(0,l.assertOneOf)("var","let","const")},declarations:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("VariableDeclarator")))}},validate(e,t,r){if(i.env.BABEL_TYPES_8_BREAKING&&(0,n.default)("ForXStatement",e,{left:r})&&1!==r.declarations.length)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${e.type}`)}}),(0,l.default)("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:function(){if(!i.env.BABEL_TYPES_8_BREAKING)return(0,l.assertNodeType)("LVal");const e=(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),t=(0,l.assertNodeType)("Identifier");return function(r,i,n){(r.init?e:t)(r,i,n)}}()},definite:{optional:!0,validate:(0,l.assertValueType)("boolean")},init:{optional:!0,validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}}),(0,l.default)("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}}),(0,l.default)("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},d,{left:{validate:(0,l.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression")},right:{validate:(0,l.assertNodeType)("Expression")},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0}})}),(0,l.default)("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},d,{elements:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeOrValueType)("null","PatternLike")))},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0}})}),(0,l.default)("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType","typeParameters"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},c,u,{expression:{validate:(0,l.assertValueType)("boolean")},body:{validate:(0,l.assertNodeType)("BlockStatement","Expression")}})}),(0,l.default)("ClassBody",{visitor:["body"],fields:{body:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","TSDeclareMethod","TSIndexSignature")))}}}),(0,l.default)("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,l.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,l.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,l.assertNodeType)("Expression")},superTypeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,l.assertNodeType)("InterfaceExtends"),optional:!0}}}),(0,l.default)("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,l.assertNodeType)("Identifier")},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,l.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,l.assertNodeType)("Expression")},superTypeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,l.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,l.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,l.assertValueType)("boolean"),optional:!0}},validate:function(){const e=(0,l.assertNodeType)("Identifier");return function(t,r,s){i.env.BABEL_TYPES_8_BREAKING&&((0,n.default)("ExportDefaultDeclaration",t)||e(s,"id",s.id))}}()}),(0,l.default)("ExportAllDeclaration",{visitor:["source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{source:{validate:(0,l.assertNodeType)("StringLiteral")},assertions:{optional:!0,validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertNodeType)("ImportAttribute"))}}}),(0,l.default)("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0,l.assertNodeType)("FunctionDeclaration","TSDeclareFunction","ClassDeclaration","Expression")}}}),(0,l.default)("ExportNamedDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:(0,l.chain)((0,l.assertNodeType)("Declaration"),Object.assign((function(e,t,r){if(i.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(i.env.BABEL_TYPES_8_BREAKING&&r&&e.source)throw new TypeError("Cannot export a declaration from a source")}))},assertions:{optional:!0,validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertNodeType)("ImportAttribute"))},specifiers:{default:[],validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)(function(){const e=(0,l.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,l.assertNodeType)("ExportSpecifier");return i.env.BABEL_TYPES_8_BREAKING?function(r,i,n){(r.source?e:t)(r,i,n)}:e}()))},source:{validate:(0,l.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,l.validateOptional)((0,l.assertOneOf)("type","value"))}}),(0,l.default)("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")},exported:{validate:(0,l.assertNodeType)("Identifier","StringLiteral")}}}),(0,l.default)("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!i.env.BABEL_TYPES_8_BREAKING)return(0,l.assertNodeType)("VariableDeclaration","LVal");const e=(0,l.assertNodeType)("VariableDeclaration"),t=(0,l.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern");return function(r,i,s){(0,n.default)("VariableDeclaration",s)?e(r,i,s):t(r,i,s)}}()},right:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")},await:{default:!1}}}),(0,l.default)("ImportDeclaration",{visitor:["specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration"],fields:{assertions:{optional:!0,validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertNodeType)("ImportAttribute"))},specifiers:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:(0,l.assertNodeType)("StringLiteral")},importKind:{validate:(0,l.assertOneOf)("type","typeof","value"),optional:!0}}}),(0,l.default)("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")}}}),(0,l.default)("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")}}}),(0,l.default)("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")},imported:{validate:(0,l.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,l.assertOneOf)("type","typeof"),optional:!0}}}),(0,l.default)("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:(0,l.chain)((0,l.assertNodeType)("Identifier"),Object.assign((function(e,t,r){if(!i.env.BABEL_TYPES_8_BREAKING)return;let s;switch(r.name){case"function":s="sent";break;case"new":s="target";break;case"import":s="meta"}if(!(0,n.default)("Identifier",e.property,{name:s}))throw new TypeError("Unrecognised MetaProperty")}),{oneOfNodeTypes:["Identifier"]}))},property:{validate:(0,l.assertNodeType)("Identifier")}}});const h={abstract:{validate:(0,l.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,l.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},computed:{default:!1},optional:{validate:(0,l.assertValueType)("boolean"),optional:!0},key:{validate:(0,l.chain)(function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),t=(0,l.assertNodeType)("Expression");return function(r,i,n){(r.computed?t:e)(r,i,n)}}(),(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","Expression"))}};t.classMethodOrPropertyCommon=h;const f=Object.assign({},c,h,{kind:{validate:(0,l.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,l.chain)((0,l.assertValueType)("string"),(0,l.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Decorator"))),optional:!0}});t.classMethodOrDeclareMethodCommon=f,(0,l.default)("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({},f,u,{body:{validate:(0,l.assertNodeType)("BlockStatement")}})}),(0,l.default)("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},d,{properties:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("RestElement","ObjectProperty")))}})}),(0,l.default)("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("Super",{aliases:["Expression"]}),(0,l.default)("TaggedTemplateExpression",{visitor:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,l.assertNodeType)("Expression")},quasi:{validate:(0,l.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),(0,l.default)("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,l.assertShape)({raw:{validate:(0,l.assertValueType)("string")},cooked:{validate:(0,l.assertValueType)("string"),optional:!0}})},tail:{default:!1}}}),(0,l.default)("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("TemplateElement")))},expressions:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.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}`)}))}}}),(0,l.default)("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0,l.chain)((0,l.assertValueType)("boolean"),Object.assign((function(e,t,r){if(i.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,l.assertNodeType)("Expression")}}}),(0,l.default)("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}}),(0,l.default)("Import",{aliases:["Expression"]}),(0,l.default)("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,l.default)("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,l.assertNodeType)("Identifier")}}}),(0,l.default)("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,l.assertNodeType)("Expression")},property:{validate:function(){const e=(0,l.assertNodeType)("Identifier"),t=(0,l.assertNodeType)("Expression"),validator=function(r,i,n){(r.computed?t:e)(r,i,n)};return validator.oneOfNodeTypes=["Expression","Identifier"],validator}()},computed:{default:!1},optional:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("boolean"),(0,l.assertOptionalChainStart)()):(0,l.assertValueType)("boolean")}}}),(0,l.default)("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:(0,l.assertNodeType)("Expression")},arguments:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Expression","SpreadElement","JSXNamespacedName")))},optional:{validate:i.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("boolean"),(0,l.assertOptionalChainStart)()):(0,l.assertValueType)("boolean")},typeArguments:{validate:(0,l.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,l.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}}})},5675:(e,t,r)=>{"use strict";var i=r(397),n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(6343)),s=r(4613);function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}(0,n.default)("ArgumentPlaceholder",{}),(0,n.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:i.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,n.assertNodeType)("Expression")},callee:{validate:(0,n.assertNodeType)("Expression")}}:{object:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})}}}),(0,n.default)("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},s.classMethodOrPropertyCommon,{value:{validate:(0,n.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,n.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,n.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,n.assertValueType)("boolean"),optional:!0},declare:{validate:(0,n.assertValueType)("boolean"),optional:!0}})}),(0,n.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}}}),(0,n.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,n.assertNodeType)("Expression")}}}),(0,n.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]}),(0,n.default)("ClassPrivateProperty",{visitor:["key","value","decorators"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,n.assertNodeType)("PrivateName")},value:{validate:(0,n.assertNodeType)("Expression"),optional:!0},decorators:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Decorator"))),optional:!0}}}),(0,n.default)("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},s.classMethodOrDeclareMethodCommon,s.functionTypeAnnotationCommon,{key:{validate:(0,n.assertNodeType)("PrivateName")},body:{validate:(0,n.assertNodeType)("BlockStatement")}})}),(0,n.default)("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,n.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,n.assertNodeType)("StringLiteral")}}}),(0,n.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}}}),(0,n.default)("DoExpression",{visitor:["body"],aliases:["Expression"],fields:{body:{validate:(0,n.assertNodeType)("BlockStatement")}}}),(0,n.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,n.assertNodeType)("Identifier")}}}),(0,n.default)("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,n.assertNodeType)("Identifier")}}}),(0,n.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("ObjectProperty","SpreadElement")))}}}),(0,n.default)("TupleExpression",{fields:{elements:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,n.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,n.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,n.default)("StaticBlock",{visitor:["body"],fields:{body:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent"]})},3081:(e,t,r)=>{"use strict";var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(6343));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}const defineInterfaceishType=(e,t="TypeParameterDeclaration")=>{(0,i.default)(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends","mixins","implements","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)(t),extends:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends")),mixins:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends")),implements:(0,i.validateOptional)((0,i.arrayOfType)("ClassImplements")),body:(0,i.validateType)("ObjectTypeAnnotation")}})};(0,i.default)("AnyTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["Flow","FlowType"],fields:{elementType:(0,i.validateType)("FlowType")}}),(0,i.default)("BooleanTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:(0,i.validate)((0,i.assertValueType)("boolean"))}}),(0,i.default)("NullLiteralTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("ClassImplements",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),defineInterfaceishType("DeclareClass"),(0,i.default)("DeclareFunction",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),predicate:(0,i.validateOptionalType)("DeclaredPredicate")}}),defineInterfaceishType("DeclareInterface"),(0,i.default)("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)(["Identifier","StringLiteral"]),body:(0,i.validateType)("BlockStatement"),kind:(0,i.validateOptional)((0,i.assertOneOf)("CommonJS","ES"))}}),(0,i.default)("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,i.validateType)("TypeAnnotation")}}),(0,i.default)("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),right:(0,i.validateType)("FlowType")}}),(0,i.default)("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,i.validateOptionalType)("FlowType")}}),(0,i.default)("DeclareVariable",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier")}}),(0,i.default)("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{declaration:(0,i.validateOptionalType)("Flow"),specifiers:(0,i.validateOptional)((0,i.arrayOfType)(["ExportSpecifier","ExportNamespaceSpecifier"])),source:(0,i.validateOptionalType)("StringLiteral"),default:(0,i.validateOptional)((0,i.assertValueType)("boolean"))}}),(0,i.default)("DeclareExportAllDeclaration",{visitor:["source"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{source:(0,i.validateType)("StringLiteral"),exportKind:(0,i.validateOptional)((0,i.assertOneOf)("type","value"))}}),(0,i.default)("DeclaredPredicate",{visitor:["value"],aliases:["Flow","FlowPredicate"],fields:{value:(0,i.validateType)("Flow")}}),(0,i.default)("ExistsTypeAnnotation",{aliases:["Flow","FlowType"]}),(0,i.default)("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["Flow","FlowType"],fields:{typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),params:(0,i.validate)((0,i.arrayOfType)("FunctionTypeParam")),rest:(0,i.validateOptionalType)("FunctionTypeParam"),returnType:(0,i.validateType)("FlowType")}}),(0,i.default)("FunctionTypeParam",{visitor:["name","typeAnnotation"],aliases:["Flow"],fields:{name:(0,i.validateOptionalType)("Identifier"),typeAnnotation:(0,i.validateType)("FlowType"),optional:(0,i.validateOptional)((0,i.assertValueType)("boolean"))}}),(0,i.default)("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["Flow","FlowType"],fields:{id:(0,i.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),(0,i.default)("InferredPredicate",{aliases:["Flow","FlowPredicate"]}),(0,i.default)("InterfaceExtends",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{id:(0,i.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),defineInterfaceishType("InterfaceDeclaration"),(0,i.default)("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["Flow","FlowType"],fields:{extends:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends")),body:(0,i.validateType)("ObjectTypeAnnotation")}}),(0,i.default)("IntersectionTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),(0,i.default)("MixedTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("EmptyTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["Flow","FlowType"],fields:{typeAnnotation:(0,i.validateType)("FlowType")}}),(0,i.default)("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:(0,i.validate)((0,i.assertValueType)("number"))}}),(0,i.default)("NumberTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["Flow","FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,i.validate)((0,i.arrayOfType)(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:(0,i.validateOptional)((0,i.arrayOfType)("ObjectTypeIndexer")),callProperties:(0,i.validateOptional)((0,i.arrayOfType)("ObjectTypeCallProperty")),internalSlots:(0,i.validateOptional)((0,i.arrayOfType)("ObjectTypeInternalSlot")),exact:{validate:(0,i.assertValueType)("boolean"),default:!1},inexact:(0,i.validateOptional)((0,i.assertValueType)("boolean"))}}),(0,i.default)("ObjectTypeInternalSlot",{visitor:["id","value","optional","static","method"],aliases:["Flow","UserWhitespacable"],fields:{id:(0,i.validateType)("Identifier"),value:(0,i.validateType)("FlowType"),optional:(0,i.validate)((0,i.assertValueType)("boolean")),static:(0,i.validate)((0,i.assertValueType)("boolean")),method:(0,i.validate)((0,i.assertValueType)("boolean"))}}),(0,i.default)("ObjectTypeCallProperty",{visitor:["value"],aliases:["Flow","UserWhitespacable"],fields:{value:(0,i.validateType)("FlowType"),static:(0,i.validate)((0,i.assertValueType)("boolean"))}}),(0,i.default)("ObjectTypeIndexer",{visitor:["id","key","value","variance"],aliases:["Flow","UserWhitespacable"],fields:{id:(0,i.validateOptionalType)("Identifier"),key:(0,i.validateType)("FlowType"),value:(0,i.validateType)("FlowType"),static:(0,i.validate)((0,i.assertValueType)("boolean")),variance:(0,i.validateOptionalType)("Variance")}}),(0,i.default)("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["Flow","UserWhitespacable"],fields:{key:(0,i.validateType)(["Identifier","StringLiteral"]),value:(0,i.validateType)("FlowType"),kind:(0,i.validate)((0,i.assertOneOf)("init","get","set")),static:(0,i.validate)((0,i.assertValueType)("boolean")),proto:(0,i.validate)((0,i.assertValueType)("boolean")),optional:(0,i.validate)((0,i.assertValueType)("boolean")),variance:(0,i.validateOptionalType)("Variance")}}),(0,i.default)("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["Flow","UserWhitespacable"],fields:{argument:(0,i.validateType)("FlowType")}}),(0,i.default)("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,i.validateOptionalType)("FlowType"),impltype:(0,i.validateType)("FlowType")}}),(0,i.default)("QualifiedTypeIdentifier",{visitor:["id","qualification"],aliases:["Flow"],fields:{id:(0,i.validateType)("Identifier"),qualification:(0,i.validateType)(["Identifier","QualifiedTypeIdentifier"])}}),(0,i.default)("StringLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:(0,i.validate)((0,i.assertValueType)("string"))}}),(0,i.default)("StringTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("SymbolTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("ThisTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("TupleTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),(0,i.default)("TypeofTypeAnnotation",{visitor:["argument"],aliases:["Flow","FlowType"],fields:{argument:(0,i.validateType)("FlowType")}}),(0,i.default)("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),right:(0,i.validateType)("FlowType")}}),(0,i.default)("TypeAnnotation",{aliases:["Flow"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,i.validateType)("FlowType")}}),(0,i.default)("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["Flow","ExpressionWrapper","Expression"],fields:{expression:(0,i.validateType)("Expression"),typeAnnotation:(0,i.validateType)("TypeAnnotation")}}),(0,i.default)("TypeParameter",{aliases:["Flow"],visitor:["bound","default","variance"],fields:{name:(0,i.validate)((0,i.assertValueType)("string")),bound:(0,i.validateOptionalType)("TypeAnnotation"),default:(0,i.validateOptionalType)("FlowType"),variance:(0,i.validateOptionalType)("Variance")}}),(0,i.default)("TypeParameterDeclaration",{aliases:["Flow"],visitor:["params"],fields:{params:(0,i.validate)((0,i.arrayOfType)("TypeParameter"))}}),(0,i.default)("TypeParameterInstantiation",{aliases:["Flow"],visitor:["params"],fields:{params:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),(0,i.default)("UnionTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),(0,i.default)("Variance",{aliases:["Flow"],builder:["kind"],fields:{kind:(0,i.validate)((0,i.assertOneOf)("minus","plus"))}}),(0,i.default)("VoidTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,i.default)("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,i.validateType)("Identifier"),body:(0,i.validateType)(["EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody"])}}),(0,i.default)("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicit:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)("EnumBooleanMember")}}),(0,i.default)("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicit:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)("EnumNumberMember")}}),(0,i.default)("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicit:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)(["EnumStringMember","EnumDefaultedMember"])}}),(0,i.default)("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,i.validateArrayOfType)("EnumDefaultedMember")}}),(0,i.default)("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("BooleanLiteral")}}),(0,i.default)("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("NumericLiteral")}}),(0,i.default)("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("StringLiteral")}}),(0,i.default)("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,i.validateType)("Identifier")}})},9829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return s.VISITOR_KEYS}}),Object.defineProperty(t,"ALIAS_KEYS",{enumerable:!0,get:function(){return s.ALIAS_KEYS}}),Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return s.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(t,"NODE_FIELDS",{enumerable:!0,get:function(){return s.NODE_FIELDS}}),Object.defineProperty(t,"BUILDER_KEYS",{enumerable:!0,get:function(){return s.BUILDER_KEYS}}),Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return s.DEPRECATED_KEYS}}),Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return s.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(t,"PLACEHOLDERS",{enumerable:!0,get:function(){return a.PLACEHOLDERS}}),Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return a.PLACEHOLDERS_ALIAS}}),Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return a.PLACEHOLDERS_FLIPPED_ALIAS}}),t.TYPES=void 0;var i,n=(i=r(1138))&&i.__esModule?i:{default:i};r(4613),r(3081),r(765),r(9710),r(5675),r(4544);var s=r(6343),a=r(1093);(0,n.default)(s.VISITOR_KEYS),(0,n.default)(s.ALIAS_KEYS),(0,n.default)(s.FLIPPED_ALIAS_KEYS),(0,n.default)(s.NODE_FIELDS),(0,n.default)(s.BUILDER_KEYS),(0,n.default)(s.DEPRECATED_KEYS),(0,n.default)(a.PLACEHOLDERS_ALIAS),(0,n.default)(a.PLACEHOLDERS_FLIPPED_ALIAS);const o=Object.keys(s.VISITOR_KEYS).concat(Object.keys(s.FLIPPED_ALIAS_KEYS)).concat(Object.keys(s.DEPRECATED_KEYS));t.TYPES=o},765:(e,t,r)=>{"use strict";var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(6343));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}(0,i.default)("JSXAttribute",{visitor:["name","value"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,i.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,i.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),(0,i.default)("JSXClosingElement",{visitor:["name"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,i.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),(0,i.default)("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["JSX","Immutable","Expression"],fields:{openingElement:{validate:(0,i.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,i.assertNodeType)("JSXClosingElement")},children:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))},selfClosing:{validate:(0,i.assertValueType)("boolean"),optional:!0}}}),(0,i.default)("JSXEmptyExpression",{aliases:["JSX"]}),(0,i.default)("JSXExpressionContainer",{visitor:["expression"],aliases:["JSX","Immutable"],fields:{expression:{validate:(0,i.assertNodeType)("Expression","JSXEmptyExpression")}}}),(0,i.default)("JSXSpreadChild",{visitor:["expression"],aliases:["JSX","Immutable"],fields:{expression:{validate:(0,i.assertNodeType)("Expression")}}}),(0,i.default)("JSXIdentifier",{builder:["name"],aliases:["JSX"],fields:{name:{validate:(0,i.assertValueType)("string")}}}),(0,i.default)("JSXMemberExpression",{visitor:["object","property"],aliases:["JSX"],fields:{object:{validate:(0,i.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,i.assertNodeType)("JSXIdentifier")}}}),(0,i.default)("JSXNamespacedName",{visitor:["namespace","name"],aliases:["JSX"],fields:{namespace:{validate:(0,i.assertNodeType)("JSXIdentifier")},name:{validate:(0,i.assertNodeType)("JSXIdentifier")}}}),(0,i.default)("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,i.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("JSXAttribute","JSXSpreadAttribute")))},typeParameters:{validate:(0,i.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),(0,i.default)("JSXSpreadAttribute",{visitor:["argument"],aliases:["JSX"],fields:{argument:{validate:(0,i.assertNodeType)("Expression")}}}),(0,i.default)("JSXText",{aliases:["JSX","Immutable"],builder:["value"],fields:{value:{validate:(0,i.assertValueType)("string")}}}),(0,i.default)("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["JSX","Immutable","Expression"],fields:{openingFragment:{validate:(0,i.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,i.assertNodeType)("JSXClosingFragment")},children:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}}),(0,i.default)("JSXOpeningFragment",{aliases:["JSX","Immutable"]}),(0,i.default)("JSXClosingFragment",{aliases:["JSX","Immutable"]})},9710:(e,t,r)=>{"use strict";var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(6343)),n=r(1093);function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}(0,i.default)("Noop",{visitor:[]}),(0,i.default)("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:(0,i.assertNodeType)("Identifier")},expectedNode:{validate:(0,i.assertOneOf)(...n.PLACEHOLDERS)}}}),(0,i.default)("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,i.assertValueType)("string")}}})},1093:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PLACEHOLDERS_FLIPPED_ALIAS=t.PLACEHOLDERS_ALIAS=t.PLACEHOLDERS=void 0;var i=r(6343);const n=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"];t.PLACEHOLDERS=n;const s={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};t.PLACEHOLDERS_ALIAS=s;for(const e of n){const t=i.ALIAS_KEYS[e];(null==t?void 0:t.length)&&(s[e]=t)}const a={};t.PLACEHOLDERS_FLIPPED_ALIAS=a,Object.keys(s).forEach((e=>{s[e].forEach((t=>{Object.hasOwnProperty.call(a,t)||(a[t]=[]),a[t].push(e)}))}))},4544:(e,t,r)=>{"use strict";var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r(6343)),n=r(4613);function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}const s=(0,i.assertValueType)("boolean"),a={returnType:{validate:(0,i.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,i.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}};(0,i.default)("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,i.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,i.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,i.assertNodeType)("Identifier","AssignmentPattern")}}}),(0,i.default)("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},n.functionDeclarationCommon,a)}),(0,i.default)("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},n.classMethodOrDeclareMethodCommon,a)}),(0,i.default)("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,i.validateType)("TSEntityName"),right:(0,i.validateType)("Identifier")}});const o={typeParameters:(0,i.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,i.validateArrayOfType)(["Identifier","RestElement"]),typeAnnotation:(0,i.validateOptionalType)("TSTypeAnnotation")},l={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:o};(0,i.default)("TSCallSignatureDeclaration",l),(0,i.default)("TSConstructSignatureDeclaration",l);const c={key:(0,i.validateType)("Expression"),computed:(0,i.validate)(s),optional:(0,i.validateOptional)(s)};(0,i.default)("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation","initializer"],fields:Object.assign({},c,{readonly:(0,i.validateOptional)(s),typeAnnotation:(0,i.validateOptionalType)("TSTypeAnnotation"),initializer:(0,i.validateOptionalType)("Expression")})}),(0,i.default)("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},o,c)}),(0,i.default)("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,i.validateOptional)(s),parameters:(0,i.validateArrayOfType)("Identifier"),typeAnnotation:(0,i.validateOptionalType)("TSTypeAnnotation")}});const u=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const e of u)(0,i.default)(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});(0,i.default)("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const p={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"],fields:o};(0,i.default)("TSFunctionType",p),(0,i.default)("TSConstructorType",p),(0,i.default)("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,i.validateType)("TSEntityName"),typeParameters:(0,i.validateOptionalType)("TSTypeParameterInstantiation")}}),(0,i.default)("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,i.validateType)(["Identifier","TSThisType"]),typeAnnotation:(0,i.validateOptionalType)("TSTypeAnnotation"),asserts:(0,i.validateOptional)(s)}}),(0,i.default)("TSTypeQuery",{aliases:["TSType"],visitor:["exprName"],fields:{exprName:(0,i.validateType)(["TSEntityName","TSImportType"])}}),(0,i.default)("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,i.validateArrayOfType)("TSTypeElement")}}),(0,i.default)("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,i.validateType)("TSType")}}),(0,i.default)("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,i.validateArrayOfType)(["TSType","TSNamedTupleMember"])}}),(0,i.default)("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,i.validateType)("Identifier"),optional:{validate:s,default:!1},elementType:(0,i.validateType)("TSType")}});const d={aliases:["TSType"],visitor:["types"],fields:{types:(0,i.validateArrayOfType)("TSType")}};(0,i.default)("TSUnionType",d),(0,i.default)("TSIntersectionType",d),(0,i.default)("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,i.validateType)("TSType"),extendsType:(0,i.validateType)("TSType"),trueType:(0,i.validateType)("TSType"),falseType:(0,i.validateType)("TSType")}}),(0,i.default)("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,i.validateType)("TSTypeParameter")}}),(0,i.default)("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0,i.validate)((0,i.assertValueType)("string")),typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,i.validateType)("TSType"),indexType:(0,i.validateType)("TSType")}}),(0,i.default)("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","typeAnnotation","nameType"],fields:{readonly:(0,i.validateOptional)(s),typeParameter:(0,i.validateType)("TSTypeParameter"),optional:(0,i.validateOptional)(s),typeAnnotation:(0,i.validateOptionalType)("TSType"),nameType:(0,i.validateOptionalType)("TSType")}}),(0,i.default)("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:(0,i.validateType)(["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral"])}}),(0,i.default)("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,i.validateType)("TSEntityName"),typeParameters:(0,i.validateOptionalType)("TSTypeParameterInstantiation")}}),(0,i.default)("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,i.validateOptional)(s),id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,i.validateOptional)((0,i.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,i.validateType)("TSInterfaceBody")}}),(0,i.default)("TSInterfaceBody",{visitor:["body"],fields:{body:(0,i.validateArrayOfType)("TSTypeElement")}}),(0,i.default)("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,i.validateOptional)(s),id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSAsExpression",{aliases:["Expression"],visitor:["expression","typeAnnotation"],fields:{expression:(0,i.validateType)("Expression"),typeAnnotation:(0,i.validateType)("TSType")}}),(0,i.default)("TSTypeAssertion",{aliases:["Expression"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,i.validateType)("TSType"),expression:(0,i.validateType)("Expression")}}),(0,i.default)("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,i.validateOptional)(s),const:(0,i.validateOptional)(s),id:(0,i.validateType)("Identifier"),members:(0,i.validateArrayOfType)("TSEnumMember"),initializer:(0,i.validateOptionalType)("Expression")}}),(0,i.default)("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,i.validateType)(["Identifier","StringLiteral"]),initializer:(0,i.validateOptionalType)("Expression")}}),(0,i.default)("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:(0,i.validateOptional)(s),global:(0,i.validateOptional)(s),id:(0,i.validateType)(["Identifier","StringLiteral"]),body:(0,i.validateType)(["TSModuleBlock","TSModuleDeclaration"])}}),(0,i.default)("TSModuleBlock",{aliases:["Scopable","Block","BlockParent"],visitor:["body"],fields:{body:(0,i.validateArrayOfType)("Statement")}}),(0,i.default)("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:(0,i.validateType)("StringLiteral"),qualifier:(0,i.validateOptionalType)("TSEntityName"),typeParameters:(0,i.validateOptionalType)("TSTypeParameterInstantiation")}}),(0,i.default)("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:(0,i.validate)(s),id:(0,i.validateType)("Identifier"),moduleReference:(0,i.validateType)(["TSEntityName","TSExternalModuleReference"])}}),(0,i.default)("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,i.validateType)("StringLiteral")}}),(0,i.default)("TSNonNullExpression",{aliases:["Expression"],visitor:["expression"],fields:{expression:(0,i.validateType)("Expression")}}),(0,i.default)("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,i.validateType)("Expression")}}),(0,i.default)("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,i.validateType)("Identifier")}}),(0,i.default)("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,i.assertNodeType)("TSType")}}}),(0,i.default)("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("TSType")))}}}),(0,i.default)("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("TSTypeParameter")))}}}),(0,i.default)("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,i.assertValueType)("string")},constraint:{validate:(0,i.assertNodeType)("TSType"),optional:!0},default:{validate:(0,i.assertNodeType)("TSType"),optional:!0}}})},6343:(e,t,r)=>{"use strict";var i=r(397);Object.defineProperty(t,"__esModule",{value:!0}),t.validate=validate,t.typeIs=typeIs,t.validateType=function(e){return validate(typeIs(e))},t.validateOptional=function(e){return{validate:e,optional:!0}},t.validateOptionalType=function(e){return{validate:typeIs(e),optional:!0}},t.arrayOf=arrayOf,t.arrayOfType=arrayOfType,t.validateArrayOfType=function(e){return validate(arrayOfType(e))},t.assertEach=assertEach,t.assertOneOf=function(...e){function validate(t,r,i){if(e.indexOf(i)<0)throw new TypeError(`Property ${r} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(i)}`)}return validate.oneOf=e,validate},t.assertNodeType=assertNodeType,t.assertNodeOrValueType=function(...e){function validate(t,r,i){for(const n of e)if(getType(i)===n||(0,s.default)(n,i))return void(0,a.validateChild)(t,r,i);throw new TypeError(`Property ${r} of ${t.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(null==i?void 0:i.type)}`)}return validate.oneOfNodeOrValueTypes=e,validate},t.assertValueType=assertValueType,t.assertShape=function(e){function validate(t,r,i){const n=[];for(const r of Object.keys(e))try{(0,a.validateField)(t,r,i[r],e[r])}catch(e){if(e instanceof TypeError){n.push(e.message);continue}throw e}if(n.length)throw new TypeError(`Property ${r} of ${t.type} expected to have the following:\\n${n.join("\\n")}`)}return validate.shapeOf=e,validate},t.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}`)}},t.chain=chain,t.default=function(e,t={}){const r=t.inherits&&y[t.inherits]||{};let i=t.fields;if(!i&&(i={},r.fields)){const e=Object.getOwnPropertyNames(r.fields);for(const t of e){const e=r.fields[t];i[t]={default:e.default,optional:e.optional,validate:e.validate}}}const n=t.visitor||r.visitor||[],s=t.aliases||r.aliases||[],a=t.builder||r.builder||t.visitor||[];for(const r of Object.keys(t))if(-1===f.indexOf(r))throw new Error(`Unknown type option "${r}" on ${e}`);t.deprecatedAlias&&(d[t.deprecatedAlias]=e);for(const e of n.concat(a))i[e]=i[e]||{};for(const t of Object.keys(i)){const r=i[t];void 0!==r.default&&-1===a.indexOf(t)&&(r.optional=!0),void 0===r.default?r.default=null:r.validate||null==r.default||(r.validate=assertValueType(getType(r.default)));for(const i of Object.keys(r))if(-1===m.indexOf(i))throw new Error(`Unknown field key "${i}" on ${e}.${t}`)}o[e]=t.visitor=n,p[e]=t.builder=a,u[e]=t.fields=i,l[e]=t.aliases=s,s.forEach((t=>{c[t]=c[t]||[],c[t].push(e)})),t.validate&&(h[e]=t.validate);y[e]=t},t.NODE_PARENT_VALIDATIONS=t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.NODE_FIELDS=t.FLIPPED_ALIAS_KEYS=t.ALIAS_KEYS=t.VISITOR_KEYS=void 0;var n,s=(n=r(6593))&&n.__esModule?n:{default:n},a=r(9623);const o={};t.VISITOR_KEYS=o;const l={};t.ALIAS_KEYS=l;const c={};t.FLIPPED_ALIAS_KEYS=c;const u={};t.NODE_FIELDS=u;const p={};t.BUILDER_KEYS=p;const d={};t.DEPRECATED_KEYS=d;const h={};function getType(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function validate(e){return{validate:e}}function typeIs(e){return"string"==typeof e?assertNodeType(e):assertNodeType(...e)}function arrayOf(e){return chain(assertValueType("array"),assertEach(e))}function arrayOfType(e){return arrayOf(typeIs(e))}function assertEach(e){function validator(t,r,n){if(Array.isArray(n))for(let s=0;s<n.length;s++){const o=`${r}[${s}]`,l=n[s];e(t,o,l),i.env.BABEL_TYPES_8_BREAKING&&(0,a.validateChild)(t,o,l)}}return validator.each=e,validator}function assertNodeType(...e){function validate(t,r,i){for(const n of e)if((0,s.default)(n,i))return void(0,a.validateChild)(t,r,i);throw new TypeError(`Property ${r} of ${t.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(null==i?void 0:i.type)}`)}return validate.oneOfNodeTypes=e,validate}function assertValueType(e){function validate(t,r,i){if(!(getType(i)===e))throw new TypeError(`Property ${r} expected type of ${e} but got ${getType(i)}`)}return validate.type=e,validate}function chain(...e){function validate(...t){for(const r of e)r(...t)}return validate.chainOf=e,validate}t.NODE_PARENT_VALIDATIONS=h;const f=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],m=["default","optional","validate"];const y={}},1710:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={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};Object.defineProperty(t,"assertNode",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"createFlowUnionType",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"createTSUnionType",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"cloneNode",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"cloneWithoutLoc",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"addComment",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"addComments",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"inheritInnerComments",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"inheritLeadingComments",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"inheritsComments",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"inheritTrailingComments",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"removeComments",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"ensureBlock",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"toSequenceExpression",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"appendToMemberExpression",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(t,"prependToMemberExpression",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"removeProperties",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(t,"removePropertiesDeep",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"traverseFast",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"isPlaceholderType",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(t,"isValidES3Identifier",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(t,"matchesPattern",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:!0,get:function(){return he.default}}),t.react=void 0;var n=_interopRequireDefault(r(5631)),s=_interopRequireDefault(r(5124)),a=_interopRequireDefault(r(4986)),o=_interopRequireDefault(r(7010)),l=r(939);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=_interopRequireDefault(r(5209)),u=_interopRequireDefault(r(6535)),p=_interopRequireDefault(r(7329)),d=r(3894);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=_interopRequireDefault(r(539)),f=_interopRequireDefault(r(5509)),m=_interopRequireDefault(r(2107)),y=_interopRequireDefault(r(2634)),T=_interopRequireDefault(r(1225)),g=_interopRequireDefault(r(8184)),b=_interopRequireDefault(r(2243)),S=_interopRequireDefault(r(440)),x=_interopRequireDefault(r(9622)),P=_interopRequireDefault(r(6168)),v=_interopRequireDefault(r(9868)),A=_interopRequireDefault(r(4670)),w=r(1798);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var I=r(9660);Object.keys(I).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===I[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return I[e]}}))}));var C=_interopRequireDefault(r(4157)),O=_interopRequireDefault(r(8681)),N=_interopRequireDefault(r(130)),_=_interopRequireDefault(r(940)),k=_interopRequireDefault(r(2858)),D=_interopRequireDefault(r(5450)),L=_interopRequireDefault(r(8100)),M=_interopRequireDefault(r(4914)),B=_interopRequireDefault(r(2469)),j=_interopRequireDefault(r(8626)),R=r(9829);Object.keys(R).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===R[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return R[e]}}))}));var F=_interopRequireDefault(r(5854)),U=_interopRequireDefault(r(9146)),K=_interopRequireDefault(r(1274)),q=_interopRequireDefault(r(1390)),V=_interopRequireDefault(r(4888)),W=_interopRequireDefault(r(4485)),Y=_interopRequireDefault(r(3407)),X=_interopRequireDefault(r(369)),J=_interopRequireDefault(r(3877)),H=_interopRequireDefault(r(5138)),G=_interopRequireDefault(r(4951)),$=_interopRequireDefault(r(6593)),z=_interopRequireDefault(r(8979)),Q=_interopRequireDefault(r(4920)),Z=_interopRequireDefault(r(738)),ee=_interopRequireDefault(r(9954)),te=_interopRequireDefault(r(1784)),re=_interopRequireDefault(r(5082)),ie=_interopRequireDefault(r(9186)),ne=_interopRequireDefault(r(5794)),se=_interopRequireDefault(r(9057)),ae=_interopRequireDefault(r(9935)),oe=_interopRequireDefault(r(9530)),le=_interopRequireDefault(r(6256)),ce=_interopRequireDefault(r(380)),ue=_interopRequireDefault(r(1330)),pe=_interopRequireDefault(r(6636)),de=_interopRequireDefault(r(9623)),he=_interopRequireDefault(r(3972)),fe=r(8037);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}Object.keys(fe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===fe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return fe[e]}}))}));const me={isReactComponent:n.default,isCompatTag:s.default,buildChildren:a.default};t.react=me},5854:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r=!1){return e.object=(0,i.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e};var i=r(3894)},4485:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function removeTypeDuplicates(e){const t={},r={},n=[],s=[];for(let a=0;a<e.length;a++){const o=e[a];if(o&&!(s.indexOf(o)>=0)){if((0,i.isAnyTypeAnnotation)(o))return[o];if((0,i.isFlowBaseAnnotation)(o))r[o.type]=o;else if((0,i.isUnionTypeAnnotation)(o))n.indexOf(o.types)<0&&(e=e.concat(o.types),n.push(o.types));else if((0,i.isGenericTypeAnnotation)(o)){const e=o.id.name;if(t[e]){let r=t[e];r.typeParameters?o.typeParameters&&(r.typeParameters.params=removeTypeDuplicates(r.typeParameters.params.concat(o.typeParameters.params))):r=o.typeParameters}else t[e]=o}else s.push(o)}}for(const e of Object.keys(r))s.push(r[e]);for(const e of Object.keys(t))s.push(t[e]);return s};var i=r(8037)},9146:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e||!t)return e;for(const r of n.INHERIT_KEYS.optional)null==e[r]&&(e[r]=t[r]);for(const r of Object.keys(t))"_"===r[0]&&"__clone"!==r&&(e[r]=t[r]);for(const r of n.INHERIT_KEYS.force)e[r]=t[r];return(0,s.default)(e,t),e};var i,n=r(9660),s=(i=r(6168))&&i.__esModule?i:{default:i}},1274:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return e.object=(0,i.memberExpression)(t,e.object),e};var i=r(3894)},1390:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){const r=t.preserveComments?n:s;for(const t of r)null!=e[t]&&(e[t]=void 0);for(const t of Object.keys(e))"_"===t[0]&&null!=e[t]&&(e[t]=void 0);const i=Object.getOwnPropertySymbols(e);for(const t of i)e[t]=null};var i=r(9660);const n=["tokens","start","end","loc","raw","rawValue"],s=i.COMMENT_KEYS.concat(["comments"]).concat(n)},4888:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,i.default)(e,n.default,t),e};var i=_interopRequireDefault(r(5138)),n=_interopRequireDefault(r(1390));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},2493:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t={},r={},n=[],s=[];for(let t=0;t<e.length;t++){const a=e[t];if(a&&!(s.indexOf(a)>=0)){if((0,i.isTSAnyKeyword)(a.type))return[a];(0,i.isTSBaseType)(a)?r[a.type]=a:(0,i.isTSUnionType)(a)?n.indexOf(a.types)<0&&(e=e.concat(a.types),n.push(a.types)):s.push(a)}}for(const e of Object.keys(r))s.push(r[e]);for(const e of Object.keys(t))s.push(t[e]);return s};var i=r(8037)},3407:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=getBindingIdentifiers;var i=r(8037);function getBindingIdentifiers(e,t,r){let n=[].concat(e);const s=Object.create(null);for(;n.length;){const e=n.shift();if(!e)continue;const a=getBindingIdentifiers.keys[e.type];if((0,i.isIdentifier)(e))if(t){(s[e.name]=s[e.name]||[]).push(e)}else s[e.name]=e;else if((0,i.isExportDeclaration)(e))(0,i.isDeclaration)(e.declaration)&&n.push(e.declaration);else{if(r){if((0,i.isFunctionDeclaration)(e)){n.push(e.id);continue}if((0,i.isFunctionExpression)(e))continue}if(a)for(let t=0;t<a.length;t++){const r=a[t];e[r]&&(n=n.concat(e[r]))}}}return s}getBindingIdentifiers.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"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]}},369:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e,t,!0)};var i,n=(i=r(3407))&&i.__esModule?i:{default:i}},3877:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){"function"==typeof t&&(t={enter:t});const{enter:i,exit:n}=t;traverseSimpleImpl(e,i,n,r,[])};var i=r(9829);function traverseSimpleImpl(e,t,r,n,s){const a=i.VISITOR_KEYS[e.type];if(a){t&&t(e,s,n);for(const i of a){const a=e[i];if(Array.isArray(a))for(let o=0;o<a.length;o++){const l=a[o];l&&(s.push({node:e,key:i,index:o}),traverseSimpleImpl(l,t,r,n,s),s.pop())}else a&&(s.push({node:e,key:i}),traverseSimpleImpl(a,t,r,n,s),s.pop())}r&&r(e,s,n)}}},5138:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function traverseFast(e,t,r){if(!e)return;const n=i.VISITOR_KEYS[e.type];if(!n)return;t(e,r=r||{});for(const i of n){const n=e[i];if(Array.isArray(n))for(const e of n)traverseFast(e,t,r);else traverseFast(n,t,r)}};var i=r(9829)},3450:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))))}},586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=e.value.split(/\\r\\n|\\n|\\r/);let n=0;for(let e=0;e<r.length;e++)r[e].match(/[^ \\t]/)&&(n=e);let s="";for(let e=0;e<r.length;e++){const t=r[e],i=0===e,a=e===r.length-1,o=e===n;let l=t.replace(/\\t/g," ");i||(l=l.replace(/^[ ]+/,"")),a||(l=l.replace(/[ ]+$/,"")),l&&(o||(l+=" "),s+=l)}s&&t.push((0,i.stringLiteral)(s))};var i=r(3894)},4951:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=Object.keys(t);for(const i of r)if(e[i]!==t[i])return!1;return!0}},3972:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=e.split(".");return e=>(0,n.default)(e,r,t)};var i,n=(i=r(6636))&&i.__esModule?i:{default:i}},8037:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayExpression=function(e,t){if(!e)return!1;if("ArrayExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isAssignmentExpression=function(e,t){if(!e)return!1;if("AssignmentExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isBinaryExpression=function(e,t){if(!e)return!1;if("BinaryExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isInterpreterDirective=function(e,t){if(!e)return!1;if("InterpreterDirective"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDirective=function(e,t){if(!e)return!1;if("Directive"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDirectiveLiteral=function(e,t){if(!e)return!1;if("DirectiveLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isBlockStatement=function(e,t){if(!e)return!1;if("BlockStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isBreakStatement=function(e,t){if(!e)return!1;if("BreakStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isCallExpression=function(e,t){if(!e)return!1;if("CallExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isCatchClause=function(e,t){if(!e)return!1;if("CatchClause"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isConditionalExpression=function(e,t){if(!e)return!1;if("ConditionalExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isContinueStatement=function(e,t){if(!e)return!1;if("ContinueStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDebuggerStatement=function(e,t){if(!e)return!1;if("DebuggerStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDoWhileStatement=function(e,t){if(!e)return!1;if("DoWhileStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isEmptyStatement=function(e,t){if(!e)return!1;if("EmptyStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isExpressionStatement=function(e,t){if(!e)return!1;if("ExpressionStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isFile=function(e,t){if(!e)return!1;if("File"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isForInStatement=function(e,t){if(!e)return!1;if("ForInStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isForStatement=function(e,t){if(!e)return!1;if("ForStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isFunctionDeclaration=function(e,t){if(!e)return!1;if("FunctionDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isFunctionExpression=function(e,t){if(!e)return!1;if("FunctionExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isIdentifier=function(e,t){if(!e)return!1;if("Identifier"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isIfStatement=function(e,t){if(!e)return!1;if("IfStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isLabeledStatement=function(e,t){if(!e)return!1;if("LabeledStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isStringLiteral=function(e,t){if(!e)return!1;if("StringLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isNumericLiteral=function(e,t){if(!e)return!1;if("NumericLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isNullLiteral=function(e,t){if(!e)return!1;if("NullLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isBooleanLiteral=function(e,t){if(!e)return!1;if("BooleanLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isRegExpLiteral=function(e,t){if(!e)return!1;if("RegExpLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isLogicalExpression=function(e,t){if(!e)return!1;if("LogicalExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isMemberExpression=function(e,t){if(!e)return!1;if("MemberExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isNewExpression=function(e,t){if(!e)return!1;if("NewExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isProgram=function(e,t){if(!e)return!1;if("Program"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isObjectExpression=function(e,t){if(!e)return!1;if("ObjectExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isObjectMethod=function(e,t){if(!e)return!1;if("ObjectMethod"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isObjectProperty=function(e,t){if(!e)return!1;if("ObjectProperty"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isRestElement=function(e,t){if(!e)return!1;if("RestElement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isReturnStatement=function(e,t){if(!e)return!1;if("ReturnStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isSequenceExpression=function(e,t){if(!e)return!1;if("SequenceExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isParenthesizedExpression=function(e,t){if(!e)return!1;if("ParenthesizedExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isSwitchCase=function(e,t){if(!e)return!1;if("SwitchCase"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isSwitchStatement=function(e,t){if(!e)return!1;if("SwitchStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isThisExpression=function(e,t){if(!e)return!1;if("ThisExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isThrowStatement=function(e,t){if(!e)return!1;if("ThrowStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTryStatement=function(e,t){if(!e)return!1;if("TryStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isUnaryExpression=function(e,t){if(!e)return!1;if("UnaryExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isUpdateExpression=function(e,t){if(!e)return!1;if("UpdateExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isVariableDeclaration=function(e,t){if(!e)return!1;if("VariableDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isVariableDeclarator=function(e,t){if(!e)return!1;if("VariableDeclarator"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isWhileStatement=function(e,t){if(!e)return!1;if("WhileStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isWithStatement=function(e,t){if(!e)return!1;if("WithStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isAssignmentPattern=function(e,t){if(!e)return!1;if("AssignmentPattern"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isArrayPattern=function(e,t){if(!e)return!1;if("ArrayPattern"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isArrowFunctionExpression=function(e,t){if(!e)return!1;if("ArrowFunctionExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isClassBody=function(e,t){if(!e)return!1;if("ClassBody"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isClassExpression=function(e,t){if(!e)return!1;if("ClassExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isClassDeclaration=function(e,t){if(!e)return!1;if("ClassDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isExportAllDeclaration=function(e,t){if(!e)return!1;if("ExportAllDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isExportDefaultDeclaration=function(e,t){if(!e)return!1;if("ExportDefaultDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isExportNamedDeclaration=function(e,t){if(!e)return!1;if("ExportNamedDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isExportSpecifier=function(e,t){if(!e)return!1;if("ExportSpecifier"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isForOfStatement=function(e,t){if(!e)return!1;if("ForOfStatement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isImportDeclaration=function(e,t){if(!e)return!1;if("ImportDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isImportDefaultSpecifier=function(e,t){if(!e)return!1;if("ImportDefaultSpecifier"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isImportNamespaceSpecifier=function(e,t){if(!e)return!1;if("ImportNamespaceSpecifier"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isImportSpecifier=function(e,t){if(!e)return!1;if("ImportSpecifier"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isMetaProperty=function(e,t){if(!e)return!1;if("MetaProperty"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isClassMethod=function(e,t){if(!e)return!1;if("ClassMethod"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isObjectPattern=function(e,t){if(!e)return!1;if("ObjectPattern"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isSpreadElement=function(e,t){if(!e)return!1;if("SpreadElement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isSuper=function(e,t){if(!e)return!1;if("Super"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTaggedTemplateExpression=function(e,t){if(!e)return!1;if("TaggedTemplateExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTemplateElement=function(e,t){if(!e)return!1;if("TemplateElement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTemplateLiteral=function(e,t){if(!e)return!1;if("TemplateLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isYieldExpression=function(e,t){if(!e)return!1;if("YieldExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isAwaitExpression=function(e,t){if(!e)return!1;if("AwaitExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isImport=function(e,t){if(!e)return!1;if("Import"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isBigIntLiteral=function(e,t){if(!e)return!1;if("BigIntLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isExportNamespaceSpecifier=function(e,t){if(!e)return!1;if("ExportNamespaceSpecifier"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isOptionalMemberExpression=function(e,t){if(!e)return!1;if("OptionalMemberExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isOptionalCallExpression=function(e,t){if(!e)return!1;if("OptionalCallExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isAnyTypeAnnotation=function(e,t){if(!e)return!1;if("AnyTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isArrayTypeAnnotation=function(e,t){if(!e)return!1;if("ArrayTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isBooleanTypeAnnotation=function(e,t){if(!e)return!1;if("BooleanTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isBooleanLiteralTypeAnnotation=function(e,t){if(!e)return!1;if("BooleanLiteralTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isNullLiteralTypeAnnotation=function(e,t){if(!e)return!1;if("NullLiteralTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isClassImplements=function(e,t){if(!e)return!1;if("ClassImplements"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclareClass=function(e,t){if(!e)return!1;if("DeclareClass"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclareFunction=function(e,t){if(!e)return!1;if("DeclareFunction"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclareInterface=function(e,t){if(!e)return!1;if("DeclareInterface"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclareModule=function(e,t){if(!e)return!1;if("DeclareModule"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclareModuleExports=function(e,t){if(!e)return!1;if("DeclareModuleExports"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclareTypeAlias=function(e,t){if(!e)return!1;if("DeclareTypeAlias"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclareOpaqueType=function(e,t){if(!e)return!1;if("DeclareOpaqueType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclareVariable=function(e,t){if(!e)return!1;if("DeclareVariable"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclareExportDeclaration=function(e,t){if(!e)return!1;if("DeclareExportDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclareExportAllDeclaration=function(e,t){if(!e)return!1;if("DeclareExportAllDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclaredPredicate=function(e,t){if(!e)return!1;if("DeclaredPredicate"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isExistsTypeAnnotation=function(e,t){if(!e)return!1;if("ExistsTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isFunctionTypeAnnotation=function(e,t){if(!e)return!1;if("FunctionTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isFunctionTypeParam=function(e,t){if(!e)return!1;if("FunctionTypeParam"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isGenericTypeAnnotation=function(e,t){if(!e)return!1;if("GenericTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isInferredPredicate=function(e,t){if(!e)return!1;if("InferredPredicate"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isInterfaceExtends=function(e,t){if(!e)return!1;if("InterfaceExtends"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isInterfaceDeclaration=function(e,t){if(!e)return!1;if("InterfaceDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isInterfaceTypeAnnotation=function(e,t){if(!e)return!1;if("InterfaceTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isIntersectionTypeAnnotation=function(e,t){if(!e)return!1;if("IntersectionTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isMixedTypeAnnotation=function(e,t){if(!e)return!1;if("MixedTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isEmptyTypeAnnotation=function(e,t){if(!e)return!1;if("EmptyTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isNullableTypeAnnotation=function(e,t){if(!e)return!1;if("NullableTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isNumberLiteralTypeAnnotation=function(e,t){if(!e)return!1;if("NumberLiteralTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isNumberTypeAnnotation=function(e,t){if(!e)return!1;if("NumberTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isObjectTypeAnnotation=function(e,t){if(!e)return!1;if("ObjectTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isObjectTypeInternalSlot=function(e,t){if(!e)return!1;if("ObjectTypeInternalSlot"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isObjectTypeCallProperty=function(e,t){if(!e)return!1;if("ObjectTypeCallProperty"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isObjectTypeIndexer=function(e,t){if(!e)return!1;if("ObjectTypeIndexer"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isObjectTypeProperty=function(e,t){if(!e)return!1;if("ObjectTypeProperty"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isObjectTypeSpreadProperty=function(e,t){if(!e)return!1;if("ObjectTypeSpreadProperty"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isOpaqueType=function(e,t){if(!e)return!1;if("OpaqueType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isQualifiedTypeIdentifier=function(e,t){if(!e)return!1;if("QualifiedTypeIdentifier"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isStringLiteralTypeAnnotation=function(e,t){if(!e)return!1;if("StringLiteralTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isStringTypeAnnotation=function(e,t){if(!e)return!1;if("StringTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isSymbolTypeAnnotation=function(e,t){if(!e)return!1;if("SymbolTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isThisTypeAnnotation=function(e,t){if(!e)return!1;if("ThisTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTupleTypeAnnotation=function(e,t){if(!e)return!1;if("TupleTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTypeofTypeAnnotation=function(e,t){if(!e)return!1;if("TypeofTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTypeAlias=function(e,t){if(!e)return!1;if("TypeAlias"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTypeAnnotation=function(e,t){if(!e)return!1;if("TypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTypeCastExpression=function(e,t){if(!e)return!1;if("TypeCastExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTypeParameter=function(e,t){if(!e)return!1;if("TypeParameter"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTypeParameterDeclaration=function(e,t){if(!e)return!1;if("TypeParameterDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTypeParameterInstantiation=function(e,t){if(!e)return!1;if("TypeParameterInstantiation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isUnionTypeAnnotation=function(e,t){if(!e)return!1;if("UnionTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isVariance=function(e,t){if(!e)return!1;if("Variance"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isVoidTypeAnnotation=function(e,t){if(!e)return!1;if("VoidTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isEnumDeclaration=function(e,t){if(!e)return!1;if("EnumDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isEnumBooleanBody=function(e,t){if(!e)return!1;if("EnumBooleanBody"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isEnumNumberBody=function(e,t){if(!e)return!1;if("EnumNumberBody"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isEnumStringBody=function(e,t){if(!e)return!1;if("EnumStringBody"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isEnumSymbolBody=function(e,t){if(!e)return!1;if("EnumSymbolBody"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isEnumBooleanMember=function(e,t){if(!e)return!1;if("EnumBooleanMember"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isEnumNumberMember=function(e,t){if(!e)return!1;if("EnumNumberMember"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isEnumStringMember=function(e,t){if(!e)return!1;if("EnumStringMember"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isEnumDefaultedMember=function(e,t){if(!e)return!1;if("EnumDefaultedMember"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXAttribute=function(e,t){if(!e)return!1;if("JSXAttribute"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXClosingElement=function(e,t){if(!e)return!1;if("JSXClosingElement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXElement=function(e,t){if(!e)return!1;if("JSXElement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXEmptyExpression=function(e,t){if(!e)return!1;if("JSXEmptyExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXExpressionContainer=function(e,t){if(!e)return!1;if("JSXExpressionContainer"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXSpreadChild=function(e,t){if(!e)return!1;if("JSXSpreadChild"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXIdentifier=function(e,t){if(!e)return!1;if("JSXIdentifier"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXMemberExpression=function(e,t){if(!e)return!1;if("JSXMemberExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXNamespacedName=function(e,t){if(!e)return!1;if("JSXNamespacedName"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXOpeningElement=function(e,t){if(!e)return!1;if("JSXOpeningElement"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXSpreadAttribute=function(e,t){if(!e)return!1;if("JSXSpreadAttribute"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXText=function(e,t){if(!e)return!1;if("JSXText"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXFragment=function(e,t){if(!e)return!1;if("JSXFragment"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXOpeningFragment=function(e,t){if(!e)return!1;if("JSXOpeningFragment"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isJSXClosingFragment=function(e,t){if(!e)return!1;if("JSXClosingFragment"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isNoop=function(e,t){if(!e)return!1;if("Noop"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isPlaceholder=function(e,t){if(!e)return!1;if("Placeholder"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isV8IntrinsicIdentifier=function(e,t){if(!e)return!1;if("V8IntrinsicIdentifier"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isArgumentPlaceholder=function(e,t){if(!e)return!1;if("ArgumentPlaceholder"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isBindExpression=function(e,t){if(!e)return!1;if("BindExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isClassProperty=function(e,t){if(!e)return!1;if("ClassProperty"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isPipelineTopicExpression=function(e,t){if(!e)return!1;if("PipelineTopicExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isPipelineBareFunction=function(e,t){if(!e)return!1;if("PipelineBareFunction"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isPipelinePrimaryTopicReference=function(e,t){if(!e)return!1;if("PipelinePrimaryTopicReference"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isClassPrivateProperty=function(e,t){if(!e)return!1;if("ClassPrivateProperty"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isClassPrivateMethod=function(e,t){if(!e)return!1;if("ClassPrivateMethod"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isImportAttribute=function(e,t){if(!e)return!1;if("ImportAttribute"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDecorator=function(e,t){if(!e)return!1;if("Decorator"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDoExpression=function(e,t){if(!e)return!1;if("DoExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isExportDefaultSpecifier=function(e,t){if(!e)return!1;if("ExportDefaultSpecifier"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isPrivateName=function(e,t){if(!e)return!1;if("PrivateName"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isRecordExpression=function(e,t){if(!e)return!1;if("RecordExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTupleExpression=function(e,t){if(!e)return!1;if("TupleExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isDecimalLiteral=function(e,t){if(!e)return!1;if("DecimalLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isStaticBlock=function(e,t){if(!e)return!1;if("StaticBlock"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSParameterProperty=function(e,t){if(!e)return!1;if("TSParameterProperty"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSDeclareFunction=function(e,t){if(!e)return!1;if("TSDeclareFunction"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSDeclareMethod=function(e,t){if(!e)return!1;if("TSDeclareMethod"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSQualifiedName=function(e,t){if(!e)return!1;if("TSQualifiedName"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSCallSignatureDeclaration=function(e,t){if(!e)return!1;if("TSCallSignatureDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSConstructSignatureDeclaration=function(e,t){if(!e)return!1;if("TSConstructSignatureDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSPropertySignature=function(e,t){if(!e)return!1;if("TSPropertySignature"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSMethodSignature=function(e,t){if(!e)return!1;if("TSMethodSignature"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSIndexSignature=function(e,t){if(!e)return!1;if("TSIndexSignature"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSAnyKeyword=function(e,t){if(!e)return!1;if("TSAnyKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSBooleanKeyword=function(e,t){if(!e)return!1;if("TSBooleanKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSBigIntKeyword=function(e,t){if(!e)return!1;if("TSBigIntKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSIntrinsicKeyword=function(e,t){if(!e)return!1;if("TSIntrinsicKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSNeverKeyword=function(e,t){if(!e)return!1;if("TSNeverKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSNullKeyword=function(e,t){if(!e)return!1;if("TSNullKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSNumberKeyword=function(e,t){if(!e)return!1;if("TSNumberKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSObjectKeyword=function(e,t){if(!e)return!1;if("TSObjectKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSStringKeyword=function(e,t){if(!e)return!1;if("TSStringKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSSymbolKeyword=function(e,t){if(!e)return!1;if("TSSymbolKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSUndefinedKeyword=function(e,t){if(!e)return!1;if("TSUndefinedKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSUnknownKeyword=function(e,t){if(!e)return!1;if("TSUnknownKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSVoidKeyword=function(e,t){if(!e)return!1;if("TSVoidKeyword"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSThisType=function(e,t){if(!e)return!1;if("TSThisType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSFunctionType=function(e,t){if(!e)return!1;if("TSFunctionType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSConstructorType=function(e,t){if(!e)return!1;if("TSConstructorType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypeReference=function(e,t){if(!e)return!1;if("TSTypeReference"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypePredicate=function(e,t){if(!e)return!1;if("TSTypePredicate"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypeQuery=function(e,t){if(!e)return!1;if("TSTypeQuery"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypeLiteral=function(e,t){if(!e)return!1;if("TSTypeLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSArrayType=function(e,t){if(!e)return!1;if("TSArrayType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTupleType=function(e,t){if(!e)return!1;if("TSTupleType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSOptionalType=function(e,t){if(!e)return!1;if("TSOptionalType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSRestType=function(e,t){if(!e)return!1;if("TSRestType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSNamedTupleMember=function(e,t){if(!e)return!1;if("TSNamedTupleMember"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSUnionType=function(e,t){if(!e)return!1;if("TSUnionType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSIntersectionType=function(e,t){if(!e)return!1;if("TSIntersectionType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSConditionalType=function(e,t){if(!e)return!1;if("TSConditionalType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSInferType=function(e,t){if(!e)return!1;if("TSInferType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSParenthesizedType=function(e,t){if(!e)return!1;if("TSParenthesizedType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypeOperator=function(e,t){if(!e)return!1;if("TSTypeOperator"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSIndexedAccessType=function(e,t){if(!e)return!1;if("TSIndexedAccessType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSMappedType=function(e,t){if(!e)return!1;if("TSMappedType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSLiteralType=function(e,t){if(!e)return!1;if("TSLiteralType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSExpressionWithTypeArguments=function(e,t){if(!e)return!1;if("TSExpressionWithTypeArguments"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSInterfaceDeclaration=function(e,t){if(!e)return!1;if("TSInterfaceDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSInterfaceBody=function(e,t){if(!e)return!1;if("TSInterfaceBody"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypeAliasDeclaration=function(e,t){if(!e)return!1;if("TSTypeAliasDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSAsExpression=function(e,t){if(!e)return!1;if("TSAsExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypeAssertion=function(e,t){if(!e)return!1;if("TSTypeAssertion"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSEnumDeclaration=function(e,t){if(!e)return!1;if("TSEnumDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSEnumMember=function(e,t){if(!e)return!1;if("TSEnumMember"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSModuleDeclaration=function(e,t){if(!e)return!1;if("TSModuleDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSModuleBlock=function(e,t){if(!e)return!1;if("TSModuleBlock"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSImportType=function(e,t){if(!e)return!1;if("TSImportType"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSImportEqualsDeclaration=function(e,t){if(!e)return!1;if("TSImportEqualsDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSExternalModuleReference=function(e,t){if(!e)return!1;if("TSExternalModuleReference"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSNonNullExpression=function(e,t){if(!e)return!1;if("TSNonNullExpression"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSExportAssignment=function(e,t){if(!e)return!1;if("TSExportAssignment"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSNamespaceExportDeclaration=function(e,t){if(!e)return!1;if("TSNamespaceExportDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypeAnnotation=function(e,t){if(!e)return!1;if("TSTypeAnnotation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypeParameterInstantiation=function(e,t){if(!e)return!1;if("TSTypeParameterInstantiation"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypeParameterDeclaration=function(e,t){if(!e)return!1;if("TSTypeParameterDeclaration"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypeParameter=function(e,t){if(!e)return!1;if("TSTypeParameter"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isExpression=function(e,t){if(!e)return!1;const r=e.type;if("Expression"===r||"ArrayExpression"===r||"AssignmentExpression"===r||"BinaryExpression"===r||"CallExpression"===r||"ConditionalExpression"===r||"FunctionExpression"===r||"Identifier"===r||"StringLiteral"===r||"NumericLiteral"===r||"NullLiteral"===r||"BooleanLiteral"===r||"RegExpLiteral"===r||"LogicalExpression"===r||"MemberExpression"===r||"NewExpression"===r||"ObjectExpression"===r||"SequenceExpression"===r||"ParenthesizedExpression"===r||"ThisExpression"===r||"UnaryExpression"===r||"UpdateExpression"===r||"ArrowFunctionExpression"===r||"ClassExpression"===r||"MetaProperty"===r||"Super"===r||"TaggedTemplateExpression"===r||"TemplateLiteral"===r||"YieldExpression"===r||"AwaitExpression"===r||"Import"===r||"BigIntLiteral"===r||"OptionalMemberExpression"===r||"OptionalCallExpression"===r||"TypeCastExpression"===r||"JSXElement"===r||"JSXFragment"===r||"BindExpression"===r||"PipelinePrimaryTopicReference"===r||"DoExpression"===r||"RecordExpression"===r||"TupleExpression"===r||"DecimalLiteral"===r||"TSAsExpression"===r||"TSTypeAssertion"===r||"TSNonNullExpression"===r||"Placeholder"===r&&("Expression"===e.expectedNode||"Identifier"===e.expectedNode||"StringLiteral"===e.expectedNode))return void 0===t||(0,n.default)(e,t);return!1},t.isBinary=function(e,t){if(!e)return!1;const r=e.type;if("Binary"===r||"BinaryExpression"===r||"LogicalExpression"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isScopable=function(e,t){if(!e)return!1;const r=e.type;if("Scopable"===r||"BlockStatement"===r||"CatchClause"===r||"DoWhileStatement"===r||"ForInStatement"===r||"ForStatement"===r||"FunctionDeclaration"===r||"FunctionExpression"===r||"Program"===r||"ObjectMethod"===r||"SwitchStatement"===r||"WhileStatement"===r||"ArrowFunctionExpression"===r||"ClassExpression"===r||"ClassDeclaration"===r||"ForOfStatement"===r||"ClassMethod"===r||"ClassPrivateMethod"===r||"StaticBlock"===r||"TSModuleBlock"===r||"Placeholder"===r&&"BlockStatement"===e.expectedNode)return void 0===t||(0,n.default)(e,t);return!1},t.isBlockParent=function(e,t){if(!e)return!1;const r=e.type;if("BlockParent"===r||"BlockStatement"===r||"CatchClause"===r||"DoWhileStatement"===r||"ForInStatement"===r||"ForStatement"===r||"FunctionDeclaration"===r||"FunctionExpression"===r||"Program"===r||"ObjectMethod"===r||"SwitchStatement"===r||"WhileStatement"===r||"ArrowFunctionExpression"===r||"ForOfStatement"===r||"ClassMethod"===r||"ClassPrivateMethod"===r||"StaticBlock"===r||"TSModuleBlock"===r||"Placeholder"===r&&"BlockStatement"===e.expectedNode)return void 0===t||(0,n.default)(e,t);return!1},t.isBlock=function(e,t){if(!e)return!1;const r=e.type;if("Block"===r||"BlockStatement"===r||"Program"===r||"TSModuleBlock"===r||"Placeholder"===r&&"BlockStatement"===e.expectedNode)return void 0===t||(0,n.default)(e,t);return!1},t.isStatement=function(e,t){if(!e)return!1;const r=e.type;if("Statement"===r||"BlockStatement"===r||"BreakStatement"===r||"ContinueStatement"===r||"DebuggerStatement"===r||"DoWhileStatement"===r||"EmptyStatement"===r||"ExpressionStatement"===r||"ForInStatement"===r||"ForStatement"===r||"FunctionDeclaration"===r||"IfStatement"===r||"LabeledStatement"===r||"ReturnStatement"===r||"SwitchStatement"===r||"ThrowStatement"===r||"TryStatement"===r||"VariableDeclaration"===r||"WhileStatement"===r||"WithStatement"===r||"ClassDeclaration"===r||"ExportAllDeclaration"===r||"ExportDefaultDeclaration"===r||"ExportNamedDeclaration"===r||"ForOfStatement"===r||"ImportDeclaration"===r||"DeclareClass"===r||"DeclareFunction"===r||"DeclareInterface"===r||"DeclareModule"===r||"DeclareModuleExports"===r||"DeclareTypeAlias"===r||"DeclareOpaqueType"===r||"DeclareVariable"===r||"DeclareExportDeclaration"===r||"DeclareExportAllDeclaration"===r||"InterfaceDeclaration"===r||"OpaqueType"===r||"TypeAlias"===r||"EnumDeclaration"===r||"TSDeclareFunction"===r||"TSInterfaceDeclaration"===r||"TSTypeAliasDeclaration"===r||"TSEnumDeclaration"===r||"TSModuleDeclaration"===r||"TSImportEqualsDeclaration"===r||"TSExportAssignment"===r||"TSNamespaceExportDeclaration"===r||"Placeholder"===r&&("Statement"===e.expectedNode||"Declaration"===e.expectedNode||"BlockStatement"===e.expectedNode))return void 0===t||(0,n.default)(e,t);return!1},t.isTerminatorless=function(e,t){if(!e)return!1;const r=e.type;if("Terminatorless"===r||"BreakStatement"===r||"ContinueStatement"===r||"ReturnStatement"===r||"ThrowStatement"===r||"YieldExpression"===r||"AwaitExpression"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isCompletionStatement=function(e,t){if(!e)return!1;const r=e.type;if("CompletionStatement"===r||"BreakStatement"===r||"ContinueStatement"===r||"ReturnStatement"===r||"ThrowStatement"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isConditional=function(e,t){if(!e)return!1;const r=e.type;if("Conditional"===r||"ConditionalExpression"===r||"IfStatement"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isLoop=function(e,t){if(!e)return!1;const r=e.type;if("Loop"===r||"DoWhileStatement"===r||"ForInStatement"===r||"ForStatement"===r||"WhileStatement"===r||"ForOfStatement"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isWhile=function(e,t){if(!e)return!1;const r=e.type;if("While"===r||"DoWhileStatement"===r||"WhileStatement"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isExpressionWrapper=function(e,t){if(!e)return!1;const r=e.type;if("ExpressionWrapper"===r||"ExpressionStatement"===r||"ParenthesizedExpression"===r||"TypeCastExpression"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isFor=function(e,t){if(!e)return!1;const r=e.type;if("For"===r||"ForInStatement"===r||"ForStatement"===r||"ForOfStatement"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isForXStatement=function(e,t){if(!e)return!1;const r=e.type;if("ForXStatement"===r||"ForInStatement"===r||"ForOfStatement"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isFunction=function(e,t){if(!e)return!1;const r=e.type;if("Function"===r||"FunctionDeclaration"===r||"FunctionExpression"===r||"ObjectMethod"===r||"ArrowFunctionExpression"===r||"ClassMethod"===r||"ClassPrivateMethod"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isFunctionParent=function(e,t){if(!e)return!1;const r=e.type;if("FunctionParent"===r||"FunctionDeclaration"===r||"FunctionExpression"===r||"ObjectMethod"===r||"ArrowFunctionExpression"===r||"ClassMethod"===r||"ClassPrivateMethod"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isPureish=function(e,t){if(!e)return!1;const r=e.type;if("Pureish"===r||"FunctionDeclaration"===r||"FunctionExpression"===r||"StringLiteral"===r||"NumericLiteral"===r||"NullLiteral"===r||"BooleanLiteral"===r||"RegExpLiteral"===r||"ArrowFunctionExpression"===r||"BigIntLiteral"===r||"DecimalLiteral"===r||"Placeholder"===r&&"StringLiteral"===e.expectedNode)return void 0===t||(0,n.default)(e,t);return!1},t.isDeclaration=function(e,t){if(!e)return!1;const r=e.type;if("Declaration"===r||"FunctionDeclaration"===r||"VariableDeclaration"===r||"ClassDeclaration"===r||"ExportAllDeclaration"===r||"ExportDefaultDeclaration"===r||"ExportNamedDeclaration"===r||"ImportDeclaration"===r||"DeclareClass"===r||"DeclareFunction"===r||"DeclareInterface"===r||"DeclareModule"===r||"DeclareModuleExports"===r||"DeclareTypeAlias"===r||"DeclareOpaqueType"===r||"DeclareVariable"===r||"DeclareExportDeclaration"===r||"DeclareExportAllDeclaration"===r||"InterfaceDeclaration"===r||"OpaqueType"===r||"TypeAlias"===r||"EnumDeclaration"===r||"TSDeclareFunction"===r||"TSInterfaceDeclaration"===r||"TSTypeAliasDeclaration"===r||"TSEnumDeclaration"===r||"TSModuleDeclaration"===r||"Placeholder"===r&&"Declaration"===e.expectedNode)return void 0===t||(0,n.default)(e,t);return!1},t.isPatternLike=function(e,t){if(!e)return!1;const r=e.type;if("PatternLike"===r||"Identifier"===r||"RestElement"===r||"AssignmentPattern"===r||"ArrayPattern"===r||"ObjectPattern"===r||"Placeholder"===r&&("Pattern"===e.expectedNode||"Identifier"===e.expectedNode))return void 0===t||(0,n.default)(e,t);return!1},t.isLVal=function(e,t){if(!e)return!1;const r=e.type;if("LVal"===r||"Identifier"===r||"MemberExpression"===r||"RestElement"===r||"AssignmentPattern"===r||"ArrayPattern"===r||"ObjectPattern"===r||"TSParameterProperty"===r||"Placeholder"===r&&("Pattern"===e.expectedNode||"Identifier"===e.expectedNode))return void 0===t||(0,n.default)(e,t);return!1},t.isTSEntityName=function(e,t){if(!e)return!1;const r=e.type;if("TSEntityName"===r||"Identifier"===r||"TSQualifiedName"===r||"Placeholder"===r&&"Identifier"===e.expectedNode)return void 0===t||(0,n.default)(e,t);return!1},t.isLiteral=function(e,t){if(!e)return!1;const r=e.type;if("Literal"===r||"StringLiteral"===r||"NumericLiteral"===r||"NullLiteral"===r||"BooleanLiteral"===r||"RegExpLiteral"===r||"TemplateLiteral"===r||"BigIntLiteral"===r||"DecimalLiteral"===r||"Placeholder"===r&&"StringLiteral"===e.expectedNode)return void 0===t||(0,n.default)(e,t);return!1},t.isImmutable=function(e,t){if(!e)return!1;const r=e.type;if("Immutable"===r||"StringLiteral"===r||"NumericLiteral"===r||"NullLiteral"===r||"BooleanLiteral"===r||"BigIntLiteral"===r||"JSXAttribute"===r||"JSXClosingElement"===r||"JSXElement"===r||"JSXExpressionContainer"===r||"JSXSpreadChild"===r||"JSXOpeningElement"===r||"JSXText"===r||"JSXFragment"===r||"JSXOpeningFragment"===r||"JSXClosingFragment"===r||"DecimalLiteral"===r||"Placeholder"===r&&"StringLiteral"===e.expectedNode)return void 0===t||(0,n.default)(e,t);return!1},t.isUserWhitespacable=function(e,t){if(!e)return!1;const r=e.type;if("UserWhitespacable"===r||"ObjectMethod"===r||"ObjectProperty"===r||"ObjectTypeInternalSlot"===r||"ObjectTypeCallProperty"===r||"ObjectTypeIndexer"===r||"ObjectTypeProperty"===r||"ObjectTypeSpreadProperty"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isMethod=function(e,t){if(!e)return!1;const r=e.type;if("Method"===r||"ObjectMethod"===r||"ClassMethod"===r||"ClassPrivateMethod"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isObjectMember=function(e,t){if(!e)return!1;const r=e.type;if("ObjectMember"===r||"ObjectMethod"===r||"ObjectProperty"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isProperty=function(e,t){if(!e)return!1;const r=e.type;if("Property"===r||"ObjectProperty"===r||"ClassProperty"===r||"ClassPrivateProperty"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isUnaryLike=function(e,t){if(!e)return!1;const r=e.type;if("UnaryLike"===r||"UnaryExpression"===r||"SpreadElement"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isPattern=function(e,t){if(!e)return!1;const r=e.type;if("Pattern"===r||"AssignmentPattern"===r||"ArrayPattern"===r||"ObjectPattern"===r||"Placeholder"===r&&"Pattern"===e.expectedNode)return void 0===t||(0,n.default)(e,t);return!1},t.isClass=function(e,t){if(!e)return!1;const r=e.type;if("Class"===r||"ClassExpression"===r||"ClassDeclaration"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isModuleDeclaration=function(e,t){if(!e)return!1;const r=e.type;if("ModuleDeclaration"===r||"ExportAllDeclaration"===r||"ExportDefaultDeclaration"===r||"ExportNamedDeclaration"===r||"ImportDeclaration"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isExportDeclaration=function(e,t){if(!e)return!1;const r=e.type;if("ExportDeclaration"===r||"ExportAllDeclaration"===r||"ExportDefaultDeclaration"===r||"ExportNamedDeclaration"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isModuleSpecifier=function(e,t){if(!e)return!1;const r=e.type;if("ModuleSpecifier"===r||"ExportSpecifier"===r||"ImportDefaultSpecifier"===r||"ImportNamespaceSpecifier"===r||"ImportSpecifier"===r||"ExportNamespaceSpecifier"===r||"ExportDefaultSpecifier"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isFlow=function(e,t){if(!e)return!1;const r=e.type;if("Flow"===r||"AnyTypeAnnotation"===r||"ArrayTypeAnnotation"===r||"BooleanTypeAnnotation"===r||"BooleanLiteralTypeAnnotation"===r||"NullLiteralTypeAnnotation"===r||"ClassImplements"===r||"DeclareClass"===r||"DeclareFunction"===r||"DeclareInterface"===r||"DeclareModule"===r||"DeclareModuleExports"===r||"DeclareTypeAlias"===r||"DeclareOpaqueType"===r||"DeclareVariable"===r||"DeclareExportDeclaration"===r||"DeclareExportAllDeclaration"===r||"DeclaredPredicate"===r||"ExistsTypeAnnotation"===r||"FunctionTypeAnnotation"===r||"FunctionTypeParam"===r||"GenericTypeAnnotation"===r||"InferredPredicate"===r||"InterfaceExtends"===r||"InterfaceDeclaration"===r||"InterfaceTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"MixedTypeAnnotation"===r||"EmptyTypeAnnotation"===r||"NullableTypeAnnotation"===r||"NumberLiteralTypeAnnotation"===r||"NumberTypeAnnotation"===r||"ObjectTypeAnnotation"===r||"ObjectTypeInternalSlot"===r||"ObjectTypeCallProperty"===r||"ObjectTypeIndexer"===r||"ObjectTypeProperty"===r||"ObjectTypeSpreadProperty"===r||"OpaqueType"===r||"QualifiedTypeIdentifier"===r||"StringLiteralTypeAnnotation"===r||"StringTypeAnnotation"===r||"SymbolTypeAnnotation"===r||"ThisTypeAnnotation"===r||"TupleTypeAnnotation"===r||"TypeofTypeAnnotation"===r||"TypeAlias"===r||"TypeAnnotation"===r||"TypeCastExpression"===r||"TypeParameter"===r||"TypeParameterDeclaration"===r||"TypeParameterInstantiation"===r||"UnionTypeAnnotation"===r||"Variance"===r||"VoidTypeAnnotation"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isFlowType=function(e,t){if(!e)return!1;const r=e.type;if("FlowType"===r||"AnyTypeAnnotation"===r||"ArrayTypeAnnotation"===r||"BooleanTypeAnnotation"===r||"BooleanLiteralTypeAnnotation"===r||"NullLiteralTypeAnnotation"===r||"ExistsTypeAnnotation"===r||"FunctionTypeAnnotation"===r||"GenericTypeAnnotation"===r||"InterfaceTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"MixedTypeAnnotation"===r||"EmptyTypeAnnotation"===r||"NullableTypeAnnotation"===r||"NumberLiteralTypeAnnotation"===r||"NumberTypeAnnotation"===r||"ObjectTypeAnnotation"===r||"StringLiteralTypeAnnotation"===r||"StringTypeAnnotation"===r||"SymbolTypeAnnotation"===r||"ThisTypeAnnotation"===r||"TupleTypeAnnotation"===r||"TypeofTypeAnnotation"===r||"UnionTypeAnnotation"===r||"VoidTypeAnnotation"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isFlowBaseAnnotation=function(e,t){if(!e)return!1;const r=e.type;if("FlowBaseAnnotation"===r||"AnyTypeAnnotation"===r||"BooleanTypeAnnotation"===r||"NullLiteralTypeAnnotation"===r||"MixedTypeAnnotation"===r||"EmptyTypeAnnotation"===r||"NumberTypeAnnotation"===r||"StringTypeAnnotation"===r||"SymbolTypeAnnotation"===r||"ThisTypeAnnotation"===r||"VoidTypeAnnotation"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isFlowDeclaration=function(e,t){if(!e)return!1;const r=e.type;if("FlowDeclaration"===r||"DeclareClass"===r||"DeclareFunction"===r||"DeclareInterface"===r||"DeclareModule"===r||"DeclareModuleExports"===r||"DeclareTypeAlias"===r||"DeclareOpaqueType"===r||"DeclareVariable"===r||"DeclareExportDeclaration"===r||"DeclareExportAllDeclaration"===r||"InterfaceDeclaration"===r||"OpaqueType"===r||"TypeAlias"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isFlowPredicate=function(e,t){if(!e)return!1;const r=e.type;if("FlowPredicate"===r||"DeclaredPredicate"===r||"InferredPredicate"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isEnumBody=function(e,t){if(!e)return!1;const r=e.type;if("EnumBody"===r||"EnumBooleanBody"===r||"EnumNumberBody"===r||"EnumStringBody"===r||"EnumSymbolBody"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isEnumMember=function(e,t){if(!e)return!1;const r=e.type;if("EnumMember"===r||"EnumBooleanMember"===r||"EnumNumberMember"===r||"EnumStringMember"===r||"EnumDefaultedMember"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isJSX=function(e,t){if(!e)return!1;const r=e.type;if("JSX"===r||"JSXAttribute"===r||"JSXClosingElement"===r||"JSXElement"===r||"JSXEmptyExpression"===r||"JSXExpressionContainer"===r||"JSXSpreadChild"===r||"JSXIdentifier"===r||"JSXMemberExpression"===r||"JSXNamespacedName"===r||"JSXOpeningElement"===r||"JSXSpreadAttribute"===r||"JSXText"===r||"JSXFragment"===r||"JSXOpeningFragment"===r||"JSXClosingFragment"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isPrivate=function(e,t){if(!e)return!1;const r=e.type;if("Private"===r||"ClassPrivateProperty"===r||"ClassPrivateMethod"===r||"PrivateName"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isTSTypeElement=function(e,t){if(!e)return!1;const r=e.type;if("TSTypeElement"===r||"TSCallSignatureDeclaration"===r||"TSConstructSignatureDeclaration"===r||"TSPropertySignature"===r||"TSMethodSignature"===r||"TSIndexSignature"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isTSType=function(e,t){if(!e)return!1;const r=e.type;if("TSType"===r||"TSAnyKeyword"===r||"TSBooleanKeyword"===r||"TSBigIntKeyword"===r||"TSIntrinsicKeyword"===r||"TSNeverKeyword"===r||"TSNullKeyword"===r||"TSNumberKeyword"===r||"TSObjectKeyword"===r||"TSStringKeyword"===r||"TSSymbolKeyword"===r||"TSUndefinedKeyword"===r||"TSUnknownKeyword"===r||"TSVoidKeyword"===r||"TSThisType"===r||"TSFunctionType"===r||"TSConstructorType"===r||"TSTypeReference"===r||"TSTypePredicate"===r||"TSTypeQuery"===r||"TSTypeLiteral"===r||"TSArrayType"===r||"TSTupleType"===r||"TSOptionalType"===r||"TSRestType"===r||"TSUnionType"===r||"TSIntersectionType"===r||"TSConditionalType"===r||"TSInferType"===r||"TSParenthesizedType"===r||"TSTypeOperator"===r||"TSIndexedAccessType"===r||"TSMappedType"===r||"TSLiteralType"===r||"TSExpressionWithTypeArguments"===r||"TSImportType"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isTSBaseType=function(e,t){if(!e)return!1;const r=e.type;if("TSBaseType"===r||"TSAnyKeyword"===r||"TSBooleanKeyword"===r||"TSBigIntKeyword"===r||"TSIntrinsicKeyword"===r||"TSNeverKeyword"===r||"TSNullKeyword"===r||"TSNumberKeyword"===r||"TSObjectKeyword"===r||"TSStringKeyword"===r||"TSSymbolKeyword"===r||"TSUndefinedKeyword"===r||"TSUnknownKeyword"===r||"TSVoidKeyword"===r||"TSThisType"===r||"TSLiteralType"===r)return void 0===t||(0,n.default)(e,t);return!1},t.isNumberLiteral=function(e,t){if(console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),!e)return!1;if("NumberLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isRegexLiteral=function(e,t){if(console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),!e)return!1;if("RegexLiteral"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isRestProperty=function(e,t){if(console.trace("The node type RestProperty has been renamed to RestElement"),!e)return!1;if("RestProperty"===e.type)return void 0===t||(0,n.default)(e,t);return!1},t.isSpreadProperty=function(e,t){if(console.trace("The node type SpreadProperty has been renamed to SpreadElement"),!e)return!1;if("SpreadProperty"===e.type)return void 0===t||(0,n.default)(e,t);return!1};var i,n=(i=r(4951))&&i.__esModule?i:{default:i}},6593:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!t)return!1;if(!(0,n.default)(t.type,e))return!r&&"Placeholder"===t.type&&e in a.FLIPPED_ALIAS_KEYS&&(0,s.default)(t.expectedNode,e);return void 0===r||(0,i.default)(t,r)};var i=_interopRequireDefault(r(4951)),n=_interopRequireDefault(r(9530)),s=_interopRequireDefault(r(9186)),a=r(9829);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},8979:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(r&&"Identifier"===e.type&&"ObjectProperty"===t.type&&"ObjectExpression"===r.type)return!1;const i=n.default.keys[t.type];if(i)for(let r=0;r<i.length;r++){const n=t[i[r]];if(Array.isArray(n)){if(n.indexOf(e)>=0)return!0}else if(n===e)return!0}return!1};var i,n=(i=r(3407))&&i.__esModule?i:{default:i}},4920:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.isFunctionDeclaration)(e)||(0,n.isClassDeclaration)(e)||(0,s.default)(e)};var i,n=r(8037),s=(i=r(9954))&&i.__esModule?i:{default:i}},738:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,n.default)(e.type,"Immutable"))return!0;if((0,s.isIdentifier)(e))return"undefined"===e.name;return!1};var i,n=(i=r(9530))&&i.__esModule?i:{default:i},s=r(8037)},9954:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.isVariableDeclaration)(e)&&("var"!==e.kind||e[n.BLOCK_SCOPED_SYMBOL])};var i=r(8037),n=r(9660)},1784:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!(!e||!i.VISITOR_KEYS[e.type])};var i=r(9829)},5082:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function isNodesEquivalent(e,t){if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return e===t;if(e.type!==t.type)return!1;const r=Object.keys(i.NODE_FIELDS[e.type]||e.type),n=i.VISITOR_KEYS[e.type];for(const i of r){if(typeof e[i]!=typeof t[i])return!1;if(null!=e[i]||null!=t[i]){if(null==e[i]||null==t[i])return!1;if(Array.isArray(e[i])){if(!Array.isArray(t[i]))return!1;if(e[i].length!==t[i].length)return!1;for(let r=0;r<e[i].length;r++)if(!isNodesEquivalent(e[i][r],t[i][r]))return!1}else if("object"!=typeof e[i]||(null==n?void 0:n.includes(i))){if(!isNodesEquivalent(e[i],t[i]))return!1}else for(const r of Object.keys(e[i]))if(e[i][r]!==t[i][r])return!1}}return!0};var i=r(9829)},9186:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;const r=i.PLACEHOLDERS_ALIAS[e];if(r)for(const e of r)if(t===e)return!0;return!1};var i=r(9829)},5794:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){switch(t.type){case"MemberExpression":case"JSXMemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"ExportSpecifier":return!t.source&&t.local===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(t.params.includes(e))return!1;case"ObjectProperty":case"ClassProperty":case"ClassPrivateProperty":return t.key===e?!!t.computed:t.value!==e||(!r||"ObjectPattern"!==r.type);case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;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"JSXAttribute":case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key!==e||!!t.computed}return!0}},9057:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.isBlockStatement)(e)&&((0,i.isFunction)(t)||(0,i.isCatchClause)(t)))return!1;if((0,i.isPattern)(e)&&((0,i.isFunction)(t)||(0,i.isCatchClause)(t)))return!0;return(0,i.isScopable)(e)};var i=r(8037)},9935:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.isImportDefaultSpecifier)(e)||(0,i.isIdentifier)(e.imported||e.exported,{name:"default"})};var i=r(8037)},9530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;if(i.ALIAS_KEYS[t])return!1;const r=i.FLIPPED_ALIAS_KEYS[t];if(r){if(r[0]===e)return!0;for(const t of r)if(e===t)return!0}return!1};var i=r(9829)},6256:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e)&&!s.has(e)};var i,n=(i=r(380))&&i.__esModule?i:{default:i};const s=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"])},380:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!0){if("string"!=typeof e)return!1;if(t){if((0,i.isKeyword)(e)||(0,i.isStrictReservedWord)(e))return!1;if("await"===e)return!1}return(0,i.isIdentifierName)(e)};var i=r(7075)},1330:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.isVariableDeclaration)(e,{kind:"var"})&&!e[n.BLOCK_SCOPED_SYMBOL]};var i=r(8037),n=r(9660)},6636:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!(0,i.isMemberExpression)(e))return!1;const n=Array.isArray(t)?t:t.split("."),s=[];let a;for(a=e;(0,i.isMemberExpression)(a);a=a.object)s.push(a.property);if(s.push(a),s.length<n.length)return!1;if(!r&&s.length>n.length)return!1;for(let e=0,t=s.length-1;e<n.length;e++,t--){const r=s[t];let a;if((0,i.isIdentifier)(r))a=r.name;else{if(!(0,i.isStringLiteral)(r))return!1;a=r.value}if(n[e]!==a)return!1}return!0};var i=r(8037)},5124:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!e&&/^[a-z]/.test(e)}},5631:(e,t,r)=>{"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,((i=r(3972))&&i.__esModule?i:{default:i}).default)("React.Component");t.default=n},9623:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!e)return;const n=i.NODE_FIELDS[e.type];if(!n)return;const s=n[t];validateField(e,t,r,s),validateChild(e,t,r)},t.validateField=validateField,t.validateChild=validateChild;var i=r(9829);function validateField(e,t,r,i){(null==i?void 0:i.validate)&&(i.optional&&null==r||i.validate(e,t,r))}function validateChild(e,t,r){if(null==r)return;const n=i.NODE_PARENT_VALIDATIONS[r.type];n&&n(e,t,r)}},4468:(e,t)=>{"use strict";t.ZP=function(){throw Error("Test Error stack")},t.U1=void 0;t.U1=12},964:e=>{"use strict";e.exports=JSON.parse(\'{"builtin":{"Array":false,"ArrayBuffer":false,"Atomics":false,"BigInt":false,"BigInt64Array":false,"BigUint64Array":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"globalThis":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es5":{"Array":false,"Boolean":false,"constructor":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"propertyIsEnumerable":false,"RangeError":false,"ReferenceError":false,"RegExp":false,"String":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false},"es2015":{"Array":false,"ArrayBuffer":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es2017":{"Array":false,"ArrayBuffer":false,"Atomics":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"browser":{"AbortController":false,"AbortSignal":false,"addEventListener":false,"alert":false,"AnalyserNode":false,"Animation":false,"AnimationEffectReadOnly":false,"AnimationEffectTiming":false,"AnimationEffectTimingReadOnly":false,"AnimationEvent":false,"AnimationPlaybackEvent":false,"AnimationTimeline":false,"applicationCache":false,"ApplicationCache":false,"ApplicationCacheErrorEvent":false,"atob":false,"Attr":false,"Audio":false,"AudioBuffer":false,"AudioBufferSourceNode":false,"AudioContext":false,"AudioDestinationNode":false,"AudioListener":false,"AudioNode":false,"AudioParam":false,"AudioProcessingEvent":false,"AudioScheduledSourceNode":false,"AudioWorkletGlobalScope ":false,"AudioWorkletNode":false,"AudioWorkletProcessor":false,"BarProp":false,"BaseAudioContext":false,"BatteryManager":false,"BeforeUnloadEvent":false,"BiquadFilterNode":false,"Blob":false,"BlobEvent":false,"blur":false,"BroadcastChannel":false,"btoa":false,"BudgetService":false,"ByteLengthQueuingStrategy":false,"Cache":false,"caches":false,"CacheStorage":false,"cancelAnimationFrame":false,"cancelIdleCallback":false,"CanvasCaptureMediaStreamTrack":false,"CanvasGradient":false,"CanvasPattern":false,"CanvasRenderingContext2D":false,"ChannelMergerNode":false,"ChannelSplitterNode":false,"CharacterData":false,"clearInterval":false,"clearTimeout":false,"clientInformation":false,"ClipboardEvent":false,"close":false,"closed":false,"CloseEvent":false,"Comment":false,"CompositionEvent":false,"confirm":false,"console":false,"ConstantSourceNode":false,"ConvolverNode":false,"CountQueuingStrategy":false,"createImageBitmap":false,"Credential":false,"CredentialsContainer":false,"crypto":false,"Crypto":false,"CryptoKey":false,"CSS":false,"CSSConditionRule":false,"CSSFontFaceRule":false,"CSSGroupingRule":false,"CSSImportRule":false,"CSSKeyframeRule":false,"CSSKeyframesRule":false,"CSSMediaRule":false,"CSSNamespaceRule":false,"CSSPageRule":false,"CSSRule":false,"CSSRuleList":false,"CSSStyleDeclaration":false,"CSSStyleRule":false,"CSSStyleSheet":false,"CSSSupportsRule":false,"CustomElementRegistry":false,"customElements":false,"CustomEvent":false,"DataTransfer":false,"DataTransferItem":false,"DataTransferItemList":false,"defaultstatus":false,"defaultStatus":false,"DelayNode":false,"DeviceMotionEvent":false,"DeviceOrientationEvent":false,"devicePixelRatio":false,"dispatchEvent":false,"document":false,"Document":false,"DocumentFragment":false,"DocumentType":false,"DOMError":false,"DOMException":false,"DOMImplementation":false,"DOMMatrix":false,"DOMMatrixReadOnly":false,"DOMParser":false,"DOMPoint":false,"DOMPointReadOnly":false,"DOMQuad":false,"DOMRect":false,"DOMRectReadOnly":false,"DOMStringList":false,"DOMStringMap":false,"DOMTokenList":false,"DragEvent":false,"DynamicsCompressorNode":false,"Element":false,"ErrorEvent":false,"event":false,"Event":false,"EventSource":false,"EventTarget":false,"external":false,"fetch":false,"File":false,"FileList":false,"FileReader":false,"find":false,"focus":false,"FocusEvent":false,"FontFace":false,"FontFaceSetLoadEvent":false,"FormData":false,"frameElement":false,"frames":false,"GainNode":false,"Gamepad":false,"GamepadButton":false,"GamepadEvent":false,"getComputedStyle":false,"getSelection":false,"HashChangeEvent":false,"Headers":false,"history":false,"History":false,"HTMLAllCollection":false,"HTMLAnchorElement":false,"HTMLAreaElement":false,"HTMLAudioElement":false,"HTMLBaseElement":false,"HTMLBodyElement":false,"HTMLBRElement":false,"HTMLButtonElement":false,"HTMLCanvasElement":false,"HTMLCollection":false,"HTMLContentElement":false,"HTMLDataElement":false,"HTMLDataListElement":false,"HTMLDetailsElement":false,"HTMLDialogElement":false,"HTMLDirectoryElement":false,"HTMLDivElement":false,"HTMLDListElement":false,"HTMLDocument":false,"HTMLElement":false,"HTMLEmbedElement":false,"HTMLFieldSetElement":false,"HTMLFontElement":false,"HTMLFormControlsCollection":false,"HTMLFormElement":false,"HTMLFrameElement":false,"HTMLFrameSetElement":false,"HTMLHeadElement":false,"HTMLHeadingElement":false,"HTMLHRElement":false,"HTMLHtmlElement":false,"HTMLIFrameElement":false,"HTMLImageElement":false,"HTMLInputElement":false,"HTMLLabelElement":false,"HTMLLegendElement":false,"HTMLLIElement":false,"HTMLLinkElement":false,"HTMLMapElement":false,"HTMLMarqueeElement":false,"HTMLMediaElement":false,"HTMLMenuElement":false,"HTMLMetaElement":false,"HTMLMeterElement":false,"HTMLModElement":false,"HTMLObjectElement":false,"HTMLOListElement":false,"HTMLOptGroupElement":false,"HTMLOptionElement":false,"HTMLOptionsCollection":false,"HTMLOutputElement":false,"HTMLParagraphElement":false,"HTMLParamElement":false,"HTMLPictureElement":false,"HTMLPreElement":false,"HTMLProgressElement":false,"HTMLQuoteElement":false,"HTMLScriptElement":false,"HTMLSelectElement":false,"HTMLShadowElement":false,"HTMLSlotElement":false,"HTMLSourceElement":false,"HTMLSpanElement":false,"HTMLStyleElement":false,"HTMLTableCaptionElement":false,"HTMLTableCellElement":false,"HTMLTableColElement":false,"HTMLTableElement":false,"HTMLTableRowElement":false,"HTMLTableSectionElement":false,"HTMLTemplateElement":false,"HTMLTextAreaElement":false,"HTMLTimeElement":false,"HTMLTitleElement":false,"HTMLTrackElement":false,"HTMLUListElement":false,"HTMLUnknownElement":false,"HTMLVideoElement":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"IdleDeadline":false,"IIRFilterNode":false,"Image":false,"ImageBitmap":false,"ImageBitmapRenderingContext":false,"ImageCapture":false,"ImageData":false,"indexedDB":false,"innerHeight":false,"innerWidth":false,"InputEvent":false,"IntersectionObserver":false,"IntersectionObserverEntry":false,"Intl":false,"isSecureContext":false,"KeyboardEvent":false,"KeyframeEffect":false,"KeyframeEffectReadOnly":false,"length":false,"localStorage":false,"location":true,"Location":false,"locationbar":false,"matchMedia":false,"MediaDeviceInfo":false,"MediaDevices":false,"MediaElementAudioSourceNode":false,"MediaEncryptedEvent":false,"MediaError":false,"MediaKeyMessageEvent":false,"MediaKeySession":false,"MediaKeyStatusMap":false,"MediaKeySystemAccess":false,"MediaList":false,"MediaQueryList":false,"MediaQueryListEvent":false,"MediaRecorder":false,"MediaSettingsRange":false,"MediaSource":false,"MediaStream":false,"MediaStreamAudioDestinationNode":false,"MediaStreamAudioSourceNode":false,"MediaStreamEvent":false,"MediaStreamTrack":false,"MediaStreamTrackEvent":false,"menubar":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"MIDIAccess":false,"MIDIConnectionEvent":false,"MIDIInput":false,"MIDIInputMap":false,"MIDIMessageEvent":false,"MIDIOutput":false,"MIDIOutputMap":false,"MIDIPort":false,"MimeType":false,"MimeTypeArray":false,"MouseEvent":false,"moveBy":false,"moveTo":false,"MutationEvent":false,"MutationObserver":false,"MutationRecord":false,"name":false,"NamedNodeMap":false,"NavigationPreloadManager":false,"navigator":false,"Navigator":false,"NetworkInformation":false,"Node":false,"NodeFilter":false,"NodeIterator":false,"NodeList":false,"Notification":false,"OfflineAudioCompletionEvent":false,"OfflineAudioContext":false,"offscreenBuffering":false,"OffscreenCanvas":true,"onabort":true,"onafterprint":true,"onanimationend":true,"onanimationiteration":true,"onanimationstart":true,"onappinstalled":true,"onauxclick":true,"onbeforeinstallprompt":true,"onbeforeprint":true,"onbeforeunload":true,"onblur":true,"oncancel":true,"oncanplay":true,"oncanplaythrough":true,"onchange":true,"onclick":true,"onclose":true,"oncontextmenu":true,"oncuechange":true,"ondblclick":true,"ondevicemotion":true,"ondeviceorientation":true,"ondeviceorientationabsolute":true,"ondrag":true,"ondragend":true,"ondragenter":true,"ondragleave":true,"ondragover":true,"ondragstart":true,"ondrop":true,"ondurationchange":true,"onemptied":true,"onended":true,"onerror":true,"onfocus":true,"ongotpointercapture":true,"onhashchange":true,"oninput":true,"oninvalid":true,"onkeydown":true,"onkeypress":true,"onkeyup":true,"onlanguagechange":true,"onload":true,"onloadeddata":true,"onloadedmetadata":true,"onloadstart":true,"onlostpointercapture":true,"onmessage":true,"onmessageerror":true,"onmousedown":true,"onmouseenter":true,"onmouseleave":true,"onmousemove":true,"onmouseout":true,"onmouseover":true,"onmouseup":true,"onmousewheel":true,"onoffline":true,"ononline":true,"onpagehide":true,"onpageshow":true,"onpause":true,"onplay":true,"onplaying":true,"onpointercancel":true,"onpointerdown":true,"onpointerenter":true,"onpointerleave":true,"onpointermove":true,"onpointerout":true,"onpointerover":true,"onpointerup":true,"onpopstate":true,"onprogress":true,"onratechange":true,"onrejectionhandled":true,"onreset":true,"onresize":true,"onscroll":true,"onsearch":true,"onseeked":true,"onseeking":true,"onselect":true,"onstalled":true,"onstorage":true,"onsubmit":true,"onsuspend":true,"ontimeupdate":true,"ontoggle":true,"ontransitionend":true,"onunhandledrejection":true,"onunload":true,"onvolumechange":true,"onwaiting":true,"onwheel":true,"open":false,"openDatabase":false,"opener":false,"Option":false,"origin":false,"OscillatorNode":false,"outerHeight":false,"outerWidth":false,"PageTransitionEvent":false,"pageXOffset":false,"pageYOffset":false,"PannerNode":false,"parent":false,"Path2D":false,"PaymentAddress":false,"PaymentRequest":false,"PaymentRequestUpdateEvent":false,"PaymentResponse":false,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceLongTaskTiming":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceNavigationTiming":false,"PerformanceObserver":false,"PerformanceObserverEntryList":false,"PerformancePaintTiming":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"PeriodicWave":false,"Permissions":false,"PermissionStatus":false,"personalbar":false,"PhotoCapabilities":false,"Plugin":false,"PluginArray":false,"PointerEvent":false,"PopStateEvent":false,"postMessage":false,"Presentation":false,"PresentationAvailability":false,"PresentationConnection":false,"PresentationConnectionAvailableEvent":false,"PresentationConnectionCloseEvent":false,"PresentationConnectionList":false,"PresentationReceiver":false,"PresentationRequest":false,"print":false,"ProcessingInstruction":false,"ProgressEvent":false,"PromiseRejectionEvent":false,"prompt":false,"PushManager":false,"PushSubscription":false,"PushSubscriptionOptions":false,"queueMicrotask":false,"RadioNodeList":false,"Range":false,"ReadableStream":false,"registerProcessor":false,"RemotePlayback":false,"removeEventListener":false,"Request":false,"requestAnimationFrame":false,"requestIdleCallback":false,"resizeBy":false,"ResizeObserver":false,"ResizeObserverEntry":false,"resizeTo":false,"Response":false,"RTCCertificate":false,"RTCDataChannel":false,"RTCDataChannelEvent":false,"RTCDtlsTransport":false,"RTCIceCandidate":false,"RTCIceGatherer":false,"RTCIceTransport":false,"RTCPeerConnection":false,"RTCPeerConnectionIceEvent":false,"RTCRtpContributingSource":false,"RTCRtpReceiver":false,"RTCRtpSender":false,"RTCSctpTransport":false,"RTCSessionDescription":false,"RTCStatsReport":false,"RTCTrackEvent":false,"screen":false,"Screen":false,"screenLeft":false,"ScreenOrientation":false,"screenTop":false,"screenX":false,"screenY":false,"ScriptProcessorNode":false,"scroll":false,"scrollbars":false,"scrollBy":false,"scrollTo":false,"scrollX":false,"scrollY":false,"SecurityPolicyViolationEvent":false,"Selection":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerRegistration":false,"sessionStorage":false,"setInterval":false,"setTimeout":false,"ShadowRoot":false,"SharedWorker":false,"SourceBuffer":false,"SourceBufferList":false,"speechSynthesis":false,"SpeechSynthesisEvent":false,"SpeechSynthesisUtterance":false,"StaticRange":false,"status":false,"statusbar":false,"StereoPannerNode":false,"stop":false,"Storage":false,"StorageEvent":false,"StorageManager":false,"styleMedia":false,"StyleSheet":false,"StyleSheetList":false,"SubtleCrypto":false,"SVGAElement":false,"SVGAngle":false,"SVGAnimatedAngle":false,"SVGAnimatedBoolean":false,"SVGAnimatedEnumeration":false,"SVGAnimatedInteger":false,"SVGAnimatedLength":false,"SVGAnimatedLengthList":false,"SVGAnimatedNumber":false,"SVGAnimatedNumberList":false,"SVGAnimatedPreserveAspectRatio":false,"SVGAnimatedRect":false,"SVGAnimatedString":false,"SVGAnimatedTransformList":false,"SVGAnimateElement":false,"SVGAnimateMotionElement":false,"SVGAnimateTransformElement":false,"SVGAnimationElement":false,"SVGCircleElement":false,"SVGClipPathElement":false,"SVGComponentTransferFunctionElement":false,"SVGDefsElement":false,"SVGDescElement":false,"SVGDiscardElement":false,"SVGElement":false,"SVGEllipseElement":false,"SVGFEBlendElement":false,"SVGFEColorMatrixElement":false,"SVGFEComponentTransferElement":false,"SVGFECompositeElement":false,"SVGFEConvolveMatrixElement":false,"SVGFEDiffuseLightingElement":false,"SVGFEDisplacementMapElement":false,"SVGFEDistantLightElement":false,"SVGFEDropShadowElement":false,"SVGFEFloodElement":false,"SVGFEFuncAElement":false,"SVGFEFuncBElement":false,"SVGFEFuncGElement":false,"SVGFEFuncRElement":false,"SVGFEGaussianBlurElement":false,"SVGFEImageElement":false,"SVGFEMergeElement":false,"SVGFEMergeNodeElement":false,"SVGFEMorphologyElement":false,"SVGFEOffsetElement":false,"SVGFEPointLightElement":false,"SVGFESpecularLightingElement":false,"SVGFESpotLightElement":false,"SVGFETileElement":false,"SVGFETurbulenceElement":false,"SVGFilterElement":false,"SVGForeignObjectElement":false,"SVGGElement":false,"SVGGeometryElement":false,"SVGGradientElement":false,"SVGGraphicsElement":false,"SVGImageElement":false,"SVGLength":false,"SVGLengthList":false,"SVGLinearGradientElement":false,"SVGLineElement":false,"SVGMarkerElement":false,"SVGMaskElement":false,"SVGMatrix":false,"SVGMetadataElement":false,"SVGMPathElement":false,"SVGNumber":false,"SVGNumberList":false,"SVGPathElement":false,"SVGPatternElement":false,"SVGPoint":false,"SVGPointList":false,"SVGPolygonElement":false,"SVGPolylineElement":false,"SVGPreserveAspectRatio":false,"SVGRadialGradientElement":false,"SVGRect":false,"SVGRectElement":false,"SVGScriptElement":false,"SVGSetElement":false,"SVGStopElement":false,"SVGStringList":false,"SVGStyleElement":false,"SVGSVGElement":false,"SVGSwitchElement":false,"SVGSymbolElement":false,"SVGTextContentElement":false,"SVGTextElement":false,"SVGTextPathElement":false,"SVGTextPositioningElement":false,"SVGTitleElement":false,"SVGTransform":false,"SVGTransformList":false,"SVGTSpanElement":false,"SVGUnitTypes":false,"SVGUseElement":false,"SVGViewElement":false,"TaskAttributionTiming":false,"Text":false,"TextDecoder":false,"TextEncoder":false,"TextEvent":false,"TextMetrics":false,"TextTrack":false,"TextTrackCue":false,"TextTrackCueList":false,"TextTrackList":false,"TimeRanges":false,"toolbar":false,"top":false,"Touch":false,"TouchEvent":false,"TouchList":false,"TrackEvent":false,"TransitionEvent":false,"TreeWalker":false,"UIEvent":false,"URL":false,"URLSearchParams":false,"ValidityState":false,"visualViewport":false,"VisualViewport":false,"VTTCue":false,"WaveShaperNode":false,"WebAssembly":false,"WebGL2RenderingContext":false,"WebGLActiveInfo":false,"WebGLBuffer":false,"WebGLContextEvent":false,"WebGLFramebuffer":false,"WebGLProgram":false,"WebGLQuery":false,"WebGLRenderbuffer":false,"WebGLRenderingContext":false,"WebGLSampler":false,"WebGLShader":false,"WebGLShaderPrecisionFormat":false,"WebGLSync":false,"WebGLTexture":false,"WebGLTransformFeedback":false,"WebGLUniformLocation":false,"WebGLVertexArrayObject":false,"WebSocket":false,"WheelEvent":false,"window":false,"Window":false,"Worker":false,"WritableStream":false,"XMLDocument":false,"XMLHttpRequest":false,"XMLHttpRequestEventTarget":false,"XMLHttpRequestUpload":false,"XMLSerializer":false,"XPathEvaluator":false,"XPathExpression":false,"XPathResult":false,"XSLTProcessor":false},"worker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"clearInterval":false,"clearTimeout":false,"close":true,"console":false,"fetch":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":true,"indexedDB":false,"location":false,"MessageChannel":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onlanguagechange":true,"onmessage":true,"onoffline":true,"ononline":true,"onrejectionhandled":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"removeEventListener":false,"Request":false,"Response":false,"self":true,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"node":{"__dirname":false,"__filename":false,"Buffer":false,"clearImmediate":false,"clearInterval":false,"clearTimeout":false,"console":false,"exports":true,"global":false,"Intl":false,"module":false,"process":false,"queueMicrotask":false,"require":false,"setImmediate":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false},"commonjs":{"exports":true,"global":false,"module":false,"require":false},"amd":{"define":false,"require":false},"mocha":{"after":false,"afterEach":false,"before":false,"beforeEach":false,"context":false,"describe":false,"it":false,"mocha":false,"run":false,"setup":false,"specify":false,"suite":false,"suiteSetup":false,"suiteTeardown":false,"teardown":false,"test":false,"xcontext":false,"xdescribe":false,"xit":false,"xspecify":false},"jasmine":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fail":false,"fdescribe":false,"fit":false,"it":false,"jasmine":false,"pending":false,"runs":false,"spyOn":false,"spyOnProperty":false,"waits":false,"waitsFor":false,"xdescribe":false,"xit":false},"jest":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fdescribe":false,"fit":false,"it":false,"jest":false,"pit":false,"require":false,"test":false,"xdescribe":false,"xit":false,"xtest":false},"qunit":{"asyncTest":false,"deepEqual":false,"equal":false,"expect":false,"module":false,"notDeepEqual":false,"notEqual":false,"notOk":false,"notPropEqual":false,"notStrictEqual":false,"ok":false,"propEqual":false,"QUnit":false,"raises":false,"start":false,"stop":false,"strictEqual":false,"test":false,"throws":false},"phantomjs":{"console":true,"exports":true,"phantom":true,"require":true,"WebPage":true},"couch":{"emit":false,"exports":false,"getRow":false,"log":false,"module":false,"provides":false,"require":false,"respond":false,"send":false,"start":false,"sum":false},"rhino":{"defineClass":false,"deserialize":false,"gc":false,"help":false,"importClass":false,"importPackage":false,"java":false,"load":false,"loadClass":false,"Packages":false,"print":false,"quit":false,"readFile":false,"readUrl":false,"runCommand":false,"seal":false,"serialize":false,"spawn":false,"sync":false,"toint32":false,"version":false},"nashorn":{"__DIR__":false,"__FILE__":false,"__LINE__":false,"com":false,"edu":false,"exit":false,"java":false,"Java":false,"javafx":false,"JavaImporter":false,"javax":false,"JSAdapter":false,"load":false,"loadWithNewGlobal":false,"org":false,"Packages":false,"print":false,"quit":false},"wsh":{"ActiveXObject":true,"Enumerator":true,"GetObject":true,"ScriptEngine":true,"ScriptEngineBuildVersion":true,"ScriptEngineMajorVersion":true,"ScriptEngineMinorVersion":true,"VBArray":true,"WScript":true,"WSH":true,"XDomainRequest":true},"jquery":{"$":false,"jQuery":false},"yui":{"YAHOO":false,"YAHOO_config":false,"YUI":false,"YUI_config":false},"shelljs":{"cat":false,"cd":false,"chmod":false,"config":false,"cp":false,"dirs":false,"echo":false,"env":false,"error":false,"exec":false,"exit":false,"find":false,"grep":false,"ln":false,"ls":false,"mkdir":false,"mv":false,"popd":false,"pushd":false,"pwd":false,"rm":false,"sed":false,"set":false,"target":false,"tempdir":false,"test":false,"touch":false,"which":false},"prototypejs":{"$":false,"$$":false,"$A":false,"$break":false,"$continue":false,"$F":false,"$H":false,"$R":false,"$w":false,"Abstract":false,"Ajax":false,"Autocompleter":false,"Builder":false,"Class":false,"Control":false,"Draggable":false,"Draggables":false,"Droppables":false,"Effect":false,"Element":false,"Enumerable":false,"Event":false,"Field":false,"Form":false,"Hash":false,"Insertion":false,"ObjectRange":false,"PeriodicalExecuter":false,"Position":false,"Prototype":false,"Scriptaculous":false,"Selector":false,"Sortable":false,"SortableObserver":false,"Sound":false,"Template":false,"Toggle":false,"Try":false},"meteor":{"_":false,"$":false,"Accounts":false,"AccountsClient":false,"AccountsCommon":false,"AccountsServer":false,"App":false,"Assets":false,"Blaze":false,"check":false,"Cordova":false,"DDP":false,"DDPRateLimiter":false,"DDPServer":false,"Deps":false,"EJSON":false,"Email":false,"HTTP":false,"Log":false,"Match":false,"Meteor":false,"Mongo":false,"MongoInternals":false,"Npm":false,"Package":false,"Plugin":false,"process":false,"Random":false,"ReactiveDict":false,"ReactiveVar":false,"Router":false,"ServiceConfiguration":false,"Session":false,"share":false,"Spacebars":false,"Template":false,"Tinytest":false,"Tracker":false,"UI":false,"Utils":false,"WebApp":false,"WebAppInternals":false},"mongo":{"_isWindows":false,"_rand":false,"BulkWriteResult":false,"cat":false,"cd":false,"connect":false,"db":false,"getHostName":false,"getMemInfo":false,"hostname":false,"ISODate":false,"listFiles":false,"load":false,"ls":false,"md5sumFile":false,"mkdir":false,"Mongo":false,"NumberInt":false,"NumberLong":false,"ObjectId":false,"PlanCache":false,"print":false,"printjson":false,"pwd":false,"quit":false,"removeFile":false,"rs":false,"sh":false,"UUID":false,"version":false,"WriteResult":false},"applescript":{"$":false,"Application":false,"Automation":false,"console":false,"delay":false,"Library":false,"ObjC":false,"ObjectSpecifier":false,"Path":false,"Progress":false,"Ref":false},"serviceworker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"CacheStorage":false,"clearInterval":false,"clearTimeout":false,"Client":false,"clients":false,"Clients":false,"close":true,"console":false,"ExtendableEvent":false,"ExtendableMessageEvent":false,"fetch":false,"FetchEvent":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":false,"indexedDB":false,"location":false,"MessageChannel":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onfetch":true,"oninstall":true,"onlanguagechange":true,"onmessage":true,"onmessageerror":true,"onnotificationclick":true,"onnotificationclose":true,"onoffline":true,"ononline":true,"onpush":true,"onpushsubscriptionchange":true,"onrejectionhandled":true,"onsync":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"registration":false,"removeEventListener":false,"Request":false,"Response":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerGlobalScope":false,"ServiceWorkerMessageEvent":false,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"skipWaiting":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"WindowClient":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"atomtest":{"advanceClock":false,"fakeClearInterval":false,"fakeClearTimeout":false,"fakeSetInterval":false,"fakeSetTimeout":false,"resetTimeouts":false,"waitsForPromise":false},"embertest":{"andThen":false,"click":false,"currentPath":false,"currentRouteName":false,"currentURL":false,"fillIn":false,"find":false,"findAll":false,"findWithAssert":false,"keyEvent":false,"pauseTest":false,"resumeTest":false,"triggerEvent":false,"visit":false,"wait":false},"protractor":{"$":false,"$$":false,"browser":false,"by":false,"By":false,"DartObject":false,"element":false,"protractor":false},"shared-node-browser":{"clearInterval":false,"clearTimeout":false,"console":false,"setInterval":false,"setTimeout":false,"URL":false,"URLSearchParams":false},"webextensions":{"browser":false,"chrome":false,"opr":false},"greasemonkey":{"cloneInto":false,"createObjectIn":false,"exportFunction":false,"GM":false,"GM_addStyle":false,"GM_deleteValue":false,"GM_getResourceText":false,"GM_getResourceURL":false,"GM_getValue":false,"GM_info":false,"GM_listValues":false,"GM_log":false,"GM_openInTab":false,"GM_registerMenuCommand":false,"GM_setClipboard":false,"GM_setValue":false,"GM_xmlhttpRequest":false,"unsafeWindow":false},"devtools":{"$":false,"$_":false,"$$":false,"$0":false,"$1":false,"$2":false,"$3":false,"$4":false,"$x":false,"chrome":false,"clear":false,"copy":false,"debug":false,"dir":false,"dirxml":false,"getEventListeners":false,"inspect":false,"keys":false,"monitor":false,"monitorEvents":false,"profile":false,"profileEnd":false,"queryObjects":false,"table":false,"undebug":false,"unmonitor":false,"unmonitorEvents":false,"values":false}}\')}},t={};function __webpack_require__(r){var i=t[r];if(void 0!==i)return i.exports;var n=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};(()=>{"use strict";__webpack_require__.d(r,{parseSourceAndMetadata:()=>parseSourceAndMetadata_worker_parseSourceAndMetadata,purgeCachedMetadata:()=>parseSourceAndMetadata_worker_purgeCachedMetadata});var e=__webpack_require__(7493),t=__webpack_require__(3018),i=__webpack_require__.n(t);const n=!1,s=!1,a="undefined"!=typeof performance&&"function"==typeof performance.mark&&"function"==typeof performance.clearMarks,o="undefined"!=typeof performance&&"function"==typeof performance.now;function mark(e){a&&performance.mark(e+"-start")}function measure(e){a&&(performance.mark(e+"-end"),performance.measure(e,e+"-start",e+"-end"),performance.clearMarks(e+"-start"),performance.clearMarks(e+"-end"))}function now(){return o?performance.now():Date.now()}function withSyncPerfMeasurements(e,t,r){const i=now();s&&mark(e);const n=t();if(s&&measure(e),null!=r){r(now()-i)}return n}var l=__webpack_require__(1910);const c="<no-hook>",u=Object.freeze({PROGRAM:"Program",CALL_EXPRESSION:"CallExpression",MEMBER_EXPRESSION:"MemberExpression",ARRAY_PATTERN:"ArrayPattern",IDENTIFIER:"Identifier",NUMERIC_LITERAL:"NumericLiteral",VARIABLE_DECLARATOR:"VariableDeclarator"});function checkNodeLocation(e,t,r=null){const{start:i,end:n}=e.node.loc;return t===i.line&&!(null!==r&&(r-=1,t===i.line&&r<i.column||t===n.line&&r>n.column))}function filterMemberWithHookVariableName(e){return e.node.init.property.type===u.NUMERIC_LITERAL&&0===e.node.init.property.value}function getFilteredHookASTNodes(e,t,r){let i=[];return!function(e){const t=e.node.id;if(t.type===u.ARRAY_PATTERN||t.type===u.IDENTIFIER&&!isBuiltInHookThatReturnsTuple(e))return!0;return!1}(e)?i=t.filter((t=>function(e,t){const r=e.node.id.name;return null!=r&&(r===(t.node.init.object&&t.node.init.object.name)||r===t.node.init.name)}(e,t))):i.unshift(e),i}function getHookName(e,t,r,i,n){const s=withSyncPerfMeasurements("getPotentialHookDeclarationsFromAST(originalSourceAST)",(()=>function(e){const t=[];return withSyncPerfMeasurements("traverse(sourceAST)",(()=>(0,l.default)(e,{enter(e){e.isVariableDeclarator()&&function(e){const t=e.node.init;if(null!=t){if(t.type===u.CALL_EXPRESSION){return isHook(t.callee)}if(t.type===u.MEMBER_EXPRESSION||t.type===u.IDENTIFIER)return!0}return!1}(e)&&t.push(e)}}))),t}(t)));let a=null;if(0===n){const e=s.filter((e=>{const t=checkNodeLocation(e,i),r=isConfirmedHookDeclaration(e);return t&&r}));1===e.length&&(a=e[0])}else a=s.find((e=>{const t=checkNodeLocation(e,i,n),r=isConfirmedHookDeclaration(e);return t&&r}));if(!a)return null;try{const t=withSyncPerfMeasurements("getFilteredHookASTNodes()",(()=>getFilteredHookASTNodes(a,s))),r=withSyncPerfMeasurements("getHookNameFromNode()",(()=>function(e,t,r){let i;const n=null===e.id;switch(t.length){case 1:if(n&&t[0]===r){i=getHookVariableName(r,n);break}i=getHookVariableName(t[0]);break;case 2:if(1!==(t=t.filter((e=>filterMemberWithHookVariableName(e)))).length)throw new Error("Couldn\'t isolate AST Node containing hook variable.");i=getHookVariableName(t[0]);break;default:i=getHookVariableName(r)}return i}(e,t,a)));return r}catch(e){return console.error(e),null}}function getHookVariableName(e,t=!1){switch(e.node.id.type){case u.ARRAY_PATTERN:return t?null:e.node.id.elements[0]?.name??null;case u.IDENTIFIER:return e.node.id.name;default:return null}}function isConfirmedHookDeclaration(e){const t=e.node.init;if(null==t||t.type!==u.CALL_EXPRESSION)return!1;return isHook(t.callee)}function isHook(e){if(e.type===u.IDENTIFIER)return t=e.name,/^use[A-Z0-9].*$/.test(t);if(e.type===u.MEMBER_EXPRESSION&&!e.computed&&isHook(e.property)){const t=e.object,r=/^[A-Z].*/;return t.type===u.IDENTIFIER&&r.test(t.name)}return!1;var t}function isReactFunction(e,t){return e.name===t||"MemberExpression"===e.type&&"React"===e.object.name&&e.property.name===t}function isBuiltInHookThatReturnsTuple(e){const t=e.node.init.callee;return isReactFunction(t,"useState")||isReactFunction(t,"useReducer")||isReactFunction(t,"useTransition")}var p=__webpack_require__(8715),d=__webpack_require__.n(p),h=__webpack_require__(4468);let f=null;new WeakMap;function getHookSourceLocationKey({fileName:e,lineNumber:t,columnNumber:r}){if(null==e||null==t||null==r)throw Error("Hook source code location not found.");return`${e}:${t}:${r}`}for(var m=__webpack_require__(6651),y={},T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",g=0;g<T.length;g++)y[T.charCodeAt(g)]=g;function decode(e){for(var t=[],r=[],i=[0,0,0,0,0],n=0,s=0,a=0,o=0;s<e.length;s++){var l=e.charCodeAt(s);if(44===l)segmentify(r,i,n),n=0;else if(59===l)segmentify(r,i,n),n=0,t.push(r),r=[],i[0]=0;else{var c=y[l];if(void 0===c)throw new Error("Invalid character ("+String.fromCharCode(l)+")");var u=32&c;if(o+=(c&=31)<<a,u)a+=5;else{var p=1&o;o>>>=1,p&&(o=0===o?-2147483648:-o),i[n]+=o,n++,o=a=0}}}return segmentify(r,i,n),t.push(r),t}function segmentify(e,t,r){4===r?e.push([t[0],t[1],t[2],t[3]]):5===r?e.push([t[0],t[1],t[2],t[3],t[4]]):1===r&&e.push([t[0]])}function getHookNameForLocation(e,t){const{names:r,mappings:i}=t,n=binSearch(e,i,compareLinePositions);if(null==n)throw new Error(`Expected to find a line in the HookMap that covers the target location at line: ${e.line}, column: ${e.column}`);let s;if(s=getLineNumberFromLine(n)!==e.line?n[n.length-1]:binSearch(e,n,compareColumnPositions),null==s)throw new Error(`Expected to find a mapping in the HookMap that covers the target location at line: ${e.line}, column: ${e.column}`);const a=function(e){const t=e[2];if(null==t)throw new Error("Unexpected hook name index missing in entry in HookMap");return t}(s);if(null==a)throw new Error(`Expected to find a name index in the HookMap that covers the target location at line: ${e.line}, column: ${e.column}`);const o=r[a];if(null==o)throw new Error(`Expected to find a name in the HookMap that covers the target location at line: ${e.line}, column: ${e.column}`);return o===c?null:o}function binSearch(e,t,r){let i,n=t.length,s=0,a=0;for(;n>0;){s=a,i=Math.floor(n/2),s+=i;const o=r(e,t,s);if(0===o.direction){if(null==o.index)throw new Error("Expected an index when matching element is found.");a=o.index;break}o.direction>0?(s++,a=s,n-=i+1):n=i}return null!=a?t[a]:null}function compareLinePositions(e,t,r){const i=r,n=t[i];if(null==n)throw new Error(`Unexpected line missing in HookMap at index ${r}.`);const s=getLineNumberFromLine(n);let a,o=r+1;const l=t[o];return null!=l?a=getLineNumberFromLine(l):(o=i,a=s),s===e.line?{index:i,direction:0}:a===e.line||e.line>a&&null==l?{index:o,direction:0}:s<e.line&&e.line<a?{index:i,direction:0}:{index:null,direction:e.line-s}}function compareColumnPositions(e,t,r){const i=r,n=t[r];if(null==n)throw new Error(`Unexpected mapping missing in HookMap line at index ${r}.`);const s=getColumnNumberFromEntry(n);let a,o=r+1;const l=t[o];return null!=l?a=getColumnNumberFromEntry(l):(o=i,a=s),s===e.column?{index:i,direction:0}:a===e.column||e.column>a&&null==l?{index:o,direction:0}:s<e.column&&e.column<a?{index:i,direction:0}:{index:null,direction:e.column-s}}function getLineNumberFromLine(e){return function(e){const t=e[0];if(null==t)throw new Error("Unexpected line number missing in entry in HookMap");return t}(e[0])}function getColumnNumberFromEntry(e){const t=e[1];if(null==t)throw new Error("Unexpected column number missing in entry in HookMap");return t}const b="x_react_sources",S="x_facebook_sources";function normalizeSourcePath(e,t){const{sourceRoot:r}=t;let i=e;return i=String(i),i=m.normalize(i),i=null!=r&&m.isAbsolute(r)&&m.isAbsolute(i)?m.relative(r,i):i,m.computeSourceURL(r,i)}class x{constructor(e){this._sourceMap=e,this._decodedHookMapCache=new Map,this._metadataBySource=null}hookNameFor({line:e,column:t,source:r}){if(null==r)return null;const i=this._getHookMapForSource(r);return null==i?null:getHookNameForLocation({line:e,column:t},i)}hasHookMap(e){return null!=e&&null!=this._getHookMapForSource(e)}_getMetadataBySource(){return null==this._metadataBySource&&(this._metadataBySource=this._getMetadataObjectsBySourceNames(this._sourceMap)),this._metadataBySource}_getMetadataObjectsBySourceNames(e){if(void 0===e.mappings){const t=e,r=new Map;return t.sections.forEach((e=>{this._getMetadataObjectsBySourceNames(e.map).forEach(((e,t)=>{r.set(t,e)}))})),r}const t=new Map,r=e,updateMap=(e,i)=>{let n=r.sources[i];null!=n&&(n=normalizeSourcePath(n,r),t.set(n,e))};if(e.hasOwnProperty(b)&&null!=e[b]){e[b].filter(Boolean).forEach(updateMap)}else if(e.hasOwnProperty(S)&&null!=e[S]){const t=e[S];null!=t&&t.forEach(((e,t)=>{const r=null!=e?e[1]:null;null!=r&&updateMap(r,t)}))}return t}_getHookMapForSource(e){if(this._decodedHookMapCache.has(e))return this._decodedHookMapCache.get(e);let t=null;const r=this._getMetadataBySource(),i=normalizeSourcePath(e,this._sourceMap),n=r.get(i);if(null!=n){const e=n[0];t=null!=e?function(e){return{names:e.names,mappings:decode(e.mappings)}}(e):null}return null!=t&&this._decodedHookMapCache.set(e,t),t}}function SourceMapConsumer(e){return null!=e.sections?function(e){let t={line:-1,column:0};const r=e.sections.map((e=>{const r=e.offset,i=r.line,n=r.column;if(i<t.line||i===t.line&&n<t.column)throw new Error("Section offsets must be ordered and non-overlapping.");return t=r,{generatedLine:i+1,generatedColumn:n+1,map:e.map,sourceMapConsumer:null}}));function originalPositionFor({columnNumber:e,lineNumber:t}){const i=e-1;let n=null,s=0,a=r.length-1,o=-1;for(;s<=a;){o=Math.floor((a+s)/2),n=r[o];const e=n.generatedLine;if(e===t){const e=n.generatedColumn;if(e===t)break;if(e>i){if(!(a-o>0)){o=a;break}a=o}else{if(!(o-s>0)){o=s;break}s=o}}else if(e>t){if(!(a-o>0)){o=a;break}a=o}else{if(!(o-s>0)){o=s;break}s=o}}if(null==n)throw Error(`Could not find matching section for line:${t} and column:${e}`);return null===n.sourceMapConsumer&&(n.sourceMapConsumer=new SourceMapConsumer(n.map)),n.sourceMapConsumer.originalPositionFor({columnNumber:e,lineNumber:t})}return{originalPositionFor}}(e):function(e){const t=withSyncPerfMeasurements("Decoding source map mappings with sourcemap-codec",(()=>decode(e.mappings)));function originalPositionFor({columnNumber:r,lineNumber:i}){const n=r-1,s=t[i-1];let a=null,o=0,l=s.length-1,c=-1;for(;o<=l;){c=Math.floor((l+o)/2),a=s[c];const e=a[0];if(e===n)break;if(e>n){if(!(l-c>0)){c=l;break}l=c}else{if(!(c-o>0)){c=o;break}o=c}}for(;c>0;){if(s[c-1][0]!==n)break;c--}if(null==a)throw Error(`Could not find runtime location for line:${i} and column:${r}`);const u=a[1],p=null!=e.sourcesContent?e.sourcesContent[u]:null,d=e.sources[u]??null,h=a[2]+1,f=a[3];if(null===p||null===d)throw Error(`Could not find original source for line:${i} and column:${r}`);return{column:f,line:h,sourceContent:p,sourceURL:d}}return{originalPositionFor}}(e)}const P=new(i())({max:50}),v=new(i())({max:50,dispose:(e,t)=>{n&&console.log(`originalURLToMetadataCache.dispose() Evicting cached metadata for "${e}"`)}});const parseSourceAndMetadata_worker_parseSourceAndMetadata=async function(t,r){return async function(e,t,r){const i=now();s&&mark(e);const n=await t();s&&measure(e),null!=r&&r(now()-i);return n}("parseSourceAndMetadata()",(async()=>{const i=withSyncPerfMeasurements("initializeHookParsedMetadata",(()=>function(e){const t=new Map;return e.forEach(((e,r)=>{const i={metadataConsumer:null,originalSourceAST:null,originalSourceCode:null,originalSourceURL:null,originalSourceLineNumber:null,originalSourceColumnNumber:null,sourceMapConsumer:null};t.set(r,i)})),t}(r)));return withSyncPerfMeasurements("parseSourceMaps",(()=>function(e,t){e.forEach(((e,r)=>{const i=t.get(r);if(null==i)throw Error(`Expected to find HookParsedMetadata for "${r}"`);const{runtimeSourceURL:s,sourceMapJSON:a}=e,o=P.get(s);if(null!=o)n&&(console.groupCollapsed(`parseHookNames() Found cached runtime metadata for file "${s}"`),console.log(o),console.groupEnd()),i.metadataConsumer=o.metadataConsumer,i.sourceMapConsumer=o.sourceMapConsumer;else if(null!=a){const e=withSyncPerfMeasurements("new SourceMapConsumer(sourceMapJSON)",(()=>SourceMapConsumer(a))),t=withSyncPerfMeasurements("new SourceMapMetadataConsumer(sourceMapJSON)",(()=>new x(a)));i.metadataConsumer=t,i.sourceMapConsumer=e,P.set(s,{metadataConsumer:t,sourceMapConsumer:e})}}))}(r,i))),withSyncPerfMeasurements("parseSourceAST()",(()=>function(t,r){t.forEach(((t,i)=>{const s=r.get(i);if(null==s)throw Error(`Expected to find HookParsedMetadata for "${i}"`);if(null!==s.originalSourceAST)return;if(null!=s.originalSourceURL&&null!=s.originalSourceCode&&null!=s.originalSourceColumnNumber&&null!=s.originalSourceLineNumber)return;const{lineNumber:a,columnNumber:o}=t.hookSource;if(null==a||null==o)throw Error("Hook source code location not found.");const{metadataConsumer:l,sourceMapConsumer:c}=s,u=t.runtimeSourceCode;let p,m,y,T,g=!1;if(function(){if(null===f)try{(0,h.ZP)(),f=!1}catch(e){d().parse(e)[0].lineNumber===h.U1&&(f=!0)}return!0===f}()||null===c)y=o,T=a,m=u,p=t.runtimeSourceURL;else{const{column:e,line:t,sourceContent:r,sourceURL:i}=c.originalPositionFor({columnNumber:o,lineNumber:a});y=e,T=t,m=r,p=i}if(s.originalSourceCode=m,s.originalSourceURL=p,s.originalSourceLineNumber=T,s.originalSourceColumnNumber=y,null!=l&&l.hasHookMap(p)&&(g=!0),n&&console.log(`parseSourceAST() mapped line ${a}->${T} and column ${o}->${y}`),g)return void(n&&console.log(`parseSourceAST() Found hookMap and skipping parsing for "${p}"`));n&&console.log(`parseSourceAST() Did not find hook map for "${p}"`);const b=v.get(p);if(null!=b)n&&(console.groupCollapsed(`parseSourceAST() Found cached source metadata for "${p}"`),console.log(b),console.groupEnd()),s.originalSourceAST=b.originalSourceAST,s.originalSourceCode=b.originalSourceCode;else try{const t=m.indexOf("@flow")>0?"flow":"typescript",r=withSyncPerfMeasurements("[@babel/parser] parse(originalSourceCode)",(()=>(0,e.parse)(m,{sourceType:"unambiguous",plugins:["jsx",t]})));s.originalSourceAST=r,n&&console.log(`parseSourceAST() Caching source metadata for "${p}"`),v.set(p,{originalSourceAST:r,originalSourceCode:m})}catch(e){throw new Error(`Failed to parse source file: ${p}\\n\\nOriginal error: ${e}`)}}))}(r,i))),withSyncPerfMeasurements("findHookNames()",(()=>function(e,t){const r=new Map;return e.map((e=>{const i=e.hookSource;if(!i.fileName)return null;const s=getHookSourceLocationKey(i),a=t.get(s);if(!a)return null;const{lineNumber:o,columnNumber:l}=i;if(!o||!l)return null;const{originalSourceURL:c,originalSourceColumnNumber:u,originalSourceLineNumber:p}=a;if(null==p||null==u||null==c)return null;let d;const{metadataConsumer:h}=a;null!=h&&(d=withSyncPerfMeasurements("metadataConsumer.hookNameFor()",(()=>h.hookNameFor({line:p,column:u,source:c})))),null==d&&(d=withSyncPerfMeasurements("getHookName()",(()=>getHookName(e,a.originalSourceAST,a.originalSourceCode,p,u)))),n&&console.log(`findHookNames() Found name "${d||"-"}"`);const f=getHookSourceLocationKey(i);r.set(f,d)})),r}(t,i)))}))},parseSourceAndMetadata_worker_purgeCachedMetadata=function(){v.reset(),P.reset()};addEventListener("message",(function(e){var t,i=e.data,n=i.type,s=i.method,a=i.id,o=i.params;"RPC"===n&&s&&((t=r[s])?Promise.resolve().then((function(){return t.apply(r,o)})):Promise.reject("No such method")).then((function(e){postMessage({type:"RPC",id:a,result:e})})).catch((function(e){var t={message:e};e.stack&&(t.message=e.message,t.stack=e.stack,t.name=e.name),postMessage({type:"RPC",id:a,error:t})}))})),postMessage({type:"RPC",method:"ready"})})()})();\n//# sourceMappingURL=parseSourceAndMetadata.worker.worker.js.map']))),i(e,n),e}}}]);
//# sourceMappingURL=parseHookNames.chunk.js.map