@live-codes/browser-compilers 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +17 -0
- package/.eslintignore +9 -0
- package/.eslintrc.js +198 -0
- package/.github/workflows/CI.yml +29 -0
- package/.prettierignore +3 -0
- package/.stylelintrc.json +11 -0
- package/CHANGELOG.md +0 -0
- package/LICENSE +21 -0
- package/README.md +10 -0
- package/package.json +90 -0
- package/scripts/vendors.js +308 -0
- package/tsconfig.eslint.json +12 -0
- package/tsconfig.json +49 -0
- package/vendor-licenses.md +71 -0
- package/vendor_modules/imports/autoprefixer.ts +3 -0
- package/vendor_modules/imports/babel-preset-solid.js +2 -0
- package/vendor_modules/imports/less.js +5 -0
- package/vendor_modules/imports/mdx.ts +2 -0
- package/vendor_modules/imports/monaco-editor.ts +1 -0
- package/vendor_modules/imports/postcss-preset-env.ts +3 -0
- package/vendor_modules/imports/postcss.ts +3 -0
- package/vendor_modules/imports/react-native-web.js +32 -0
- package/vendor_modules/imports/typescript.js +1 -0
- package/vendor_modules/imports/wast-refmt.ts +3 -0
- package/vendor_modules/src/asciidoctor.css/asciidoctor.css +407 -0
- package/vendor_modules/src/asciidoctor.css/readme.md +1 -0
- package/vendor_modules/src/clientside-haml-js/haml.js +22 -0
- package/vendor_modules/src/clientside-haml-js/readme.md +4 -0
- package/vendor_modules/src/coffeescript/coffeescript.js +8 -0
- package/vendor_modules/src/coffeescript/readme.md +1 -0
- package/vendor_modules/src/jszip/jszip.js +17 -0
- package/vendor_modules/src/jszip/readme.md +1 -0
- package/vendor_modules/src/livescript/livescript-min.js +1646 -0
- package/vendor_modules/src/livescript/prelude-browser-min.js +18 -0
- package/vendor_modules/src/livescript/readme.md +3 -0
- package/vendor_modules/src/perlito/perlito5.js +30663 -0
- package/vendor_modules/src/perlito/readme.md +1 -0
- package/vendor_modules/src/pug/pug.min.js +104 -0
- package/vendor_modules/src/stylus/stylus.min.js +6 -0
- package/vendor_modules/src/svelte/compiler.js +31611 -0
- package/vendor_modules/src/svelte/readme.md +1 -0
- package/vendor_modules/src/tailwindcss/tailwindcss.js +203 -0
- package/vendor_modules/src/typescript/typescriptServices.js +156785 -0
- package/vendor_modules/types/assemblyscript.d.ts +2304 -0
- package/vendor_modules/types/solid-js.d.ts +4304 -0
- package/vendor_modules/types/stencil-core.d.ts +6040 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
(function(){function T(C,t,r){function m(g,p){if(!t[g]){if(!C[g]){var c=typeof require=="function"&&require;if(!p&&c)return c(g,!0);if(f)return f(g,!0);var d=new Error("Cannot find module '"+g+"'");throw d.code="MODULE_NOT_FOUND",d}var E=t[g]={exports:{}};C[g][0].call(E.exports,function(x){var a=C[g][1][x];return m(a||x)},E,E.exports,T,C,t,r)}return t[g].exports}for(var f=typeof require=="function"&&require,b=0;b<r.length;b++)m(r[b]);return m}return T})()({1:[function(T,C,t){window.pug=T("pug")},{pug:236}],2:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIdentifierStart=d,t.isIdentifierChar=E,t.isIdentifierName=x;let r="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",m="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF\u1AC0\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F";const f=new RegExp("["+r+"]"),b=new RegExp("["+r+m+"]");r=m=null;const g=[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],p=[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 c(a,O){let _=65536;for(let L=0,B=O.length;L<B;L+=2){if(_+=O[L],_>a)return!1;if(_+=O[L+1],_>=a)return!0}return!1}function d(a){return a<65?a===36:a<=90?!0:a<97?a===95:a<=122?!0:a<=65535?a>=170&&f.test(String.fromCharCode(a)):c(a,g)}function E(a){return a<48?a===36:a<58?!0:a<65?!1:a<=90?!0:a<97?a===95:a<=122?!0:a<=65535?a>=170&&b.test(String.fromCharCode(a)):c(a,g)||c(a,p)}function x(a){let O=!0;for(let _=0,L=Array.from(a);_<L.length;_++){const B=L[_],k=B.codePointAt(0);if(O){if(!d(k))return!1;O=!1}else if(!E(k))return!1}return!O}},{}],3:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return r.isIdentifierName}}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return r.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return r.isIdentifierStart}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return m.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return m.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return m.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return m.isStrictReservedWord}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return m.isKeyword}});var r=T("./identifier"),m=T("./keyword")},{"./identifier":2,"./keyword":4}],4:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isReservedWord=g,t.isStrictReservedWord=p,t.isStrictBindOnlyReservedWord=c,t.isStrictBindReservedWord=d,t.isKeyword=E;const r={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},m=new Set(r.keyword),f=new Set(r.strict),b=new Set(r.strictBind);function g(x,a){return a&&x==="await"||x==="enum"}function p(x,a){return g(x,a)||f.has(x)}function c(x){return b.has(x)}function d(x,a){return p(x,a)||c(x)}function E(x){return m.has(x)}},{}],5:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=!0,m=!0,f=!0,b=!0,g=!0,p=!0;class c{constructor(e,i={}){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=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.rightAssociative=!!i.rightAssociative,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop!=null?i.binop:null,this.updateContext=null}}const d=new Map;function E(U,e={}){e.keyword=U;const i=new c(U,e);return d.set(U,i),i}function x(U,e){return new c(U,{beforeExpr:r,binop:e})}const a={num:new c("num",{startsExpr:m}),bigint:new c("bigint",{startsExpr:m}),decimal:new c("decimal",{startsExpr:m}),regexp:new c("regexp",{startsExpr:m}),string:new c("string",{startsExpr:m}),name:new c("name",{startsExpr:m}),eof:new c("eof"),bracketL:new c("[",{beforeExpr:r,startsExpr:m}),bracketHashL:new c("#[",{beforeExpr:r,startsExpr:m}),bracketBarL:new c("[|",{beforeExpr:r,startsExpr:m}),bracketR:new c("]"),bracketBarR:new c("|]"),braceL:new c("{",{beforeExpr:r,startsExpr:m}),braceBarL:new c("{|",{beforeExpr:r,startsExpr:m}),braceHashL:new c("#{",{beforeExpr:r,startsExpr:m}),braceR:new c("}"),braceBarR:new c("|}"),parenL:new c("(",{beforeExpr:r,startsExpr:m}),parenR:new c(")"),comma:new c(",",{beforeExpr:r}),semi:new c(";",{beforeExpr:r}),colon:new c(":",{beforeExpr:r}),doubleColon:new c("::",{beforeExpr:r}),dot:new c("."),question:new c("?",{beforeExpr:r}),questionDot:new c("?."),arrow:new c("=>",{beforeExpr:r}),template:new c("template"),ellipsis:new c("...",{beforeExpr:r}),backQuote:new c("`",{startsExpr:m}),dollarBraceL:new c("${",{beforeExpr:r,startsExpr:m}),at:new c("@"),hash:new c("#",{startsExpr:m}),interpreterDirective:new c("#!..."),eq:new c("=",{beforeExpr:r,isAssign:b}),assign:new c("_=",{beforeExpr:r,isAssign:b}),incDec:new c("++/--",{prefix:g,postfix:p,startsExpr:m}),bang:new c("!",{beforeExpr:r,prefix:g,startsExpr:m}),tilde:new c("~",{beforeExpr:r,prefix:g,startsExpr:m}),pipeline:x("|>",0),nullishCoalescing:x("??",1),logicalOR:x("||",1),logicalAND:x("&&",2),bitwiseOR:x("|",3),bitwiseXOR:x("^",4),bitwiseAND:x("&",5),equality:x("==/!=/===/!==",6),relational:x("</>/<=/>=",7),bitShift:x("<</>>/>>>",8),plusMin:new c("+/-",{beforeExpr:r,binop:9,prefix:g,startsExpr:m}),modulo:new c("%",{beforeExpr:r,binop:10,startsExpr:m}),star:new c("*",{binop:10}),slash:x("/",10),exponent:new c("**",{beforeExpr:r,binop:11,rightAssociative:!0}),_break:E("break"),_case:E("case",{beforeExpr:r}),_catch:E("catch"),_continue:E("continue"),_debugger:E("debugger"),_default:E("default",{beforeExpr:r}),_do:E("do",{isLoop:f,beforeExpr:r}),_else:E("else",{beforeExpr:r}),_finally:E("finally"),_for:E("for",{isLoop:f}),_function:E("function",{startsExpr:m}),_if:E("if"),_return:E("return",{beforeExpr:r}),_switch:E("switch"),_throw:E("throw",{beforeExpr:r,prefix:g,startsExpr:m}),_try:E("try"),_var:E("var"),_const:E("const"),_while:E("while",{isLoop:f}),_with:E("with"),_new:E("new",{beforeExpr:r,startsExpr:m}),_this:E("this",{startsExpr:m}),_super:E("super",{startsExpr:m}),_class:E("class",{startsExpr:m}),_extends:E("extends",{beforeExpr:r}),_export:E("export"),_import:E("import",{startsExpr:m}),_null:E("null",{startsExpr:m}),_true:E("true",{startsExpr:m}),_false:E("false",{startsExpr:m}),_in:E("in",{beforeExpr:r,binop:7}),_instanceof:E("instanceof",{beforeExpr:r,binop:7}),_typeof:E("typeof",{beforeExpr:r,prefix:g,startsExpr:m}),_void:E("void",{beforeExpr:r,prefix:g,startsExpr:m}),_delete:E("delete",{beforeExpr:r,prefix:g,startsExpr:m})},O=/\r\n?|[\n\u2028\u2029]/,_=new RegExp(O.source,"g");function L(U){switch(U){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}const B=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function k(U){switch(U){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 P{constructor(e,i){this.line=void 0,this.column=void 0,this.line=e,this.column=i}}class A{constructor(e,i){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=i}}function R(U,e){let i=1,l=0,h;for(_.lastIndex=0;(h=_.exec(U))&&h.index<e;)i++,l=_.lastIndex;return new P(i,e-l)}class j{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){return this.plugins.has(e)}getPluginOption(e,i){if(this.hasPlugin(e))return this.plugins.get(e)[i]}}function v(U){return U[U.length-1]}class $ extends j{addComment(e){this.filename&&(e.loc.filename=this.filename),this.state.trailingComments.push(e),this.state.leadingComments.push(e)}adjustCommentsAfterTrailingComma(e,i,l){if(this.state.leadingComments.length===0)return;let h=null,S=i.length;for(;h===null&&S>0;)h=i[--S];if(h===null)return;for(let M=0;M<this.state.leadingComments.length;M++)this.state.leadingComments[M].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(M,1),M--);const w=[];for(let M=0;M<this.state.leadingComments.length;M++){const Y=this.state.leadingComments[M];Y.end<e.end?(w.push(Y),l||(this.state.leadingComments.splice(M,1),M--)):(e.trailingComments===void 0&&(e.trailingComments=[]),e.trailingComments.push(Y))}l&&(this.state.leadingComments=[]),w.length>0?h.trailingComments=w:h.trailingComments!==void 0&&(h.trailingComments=[])}processComment(e){if(e.type==="Program"&&e.body.length>0)return;const i=this.state.commentStack;let l,h,S,w,M;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=e.end?(S=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else if(i.length>0){const Y=v(i);Y.trailingComments&&Y.trailingComments[0].start>=e.end&&(S=Y.trailingComments,delete Y.trailingComments)}for(i.length>0&&v(i).start>=e.start&&(l=i.pop());i.length>0&&v(i).start>=e.start;)h=i.pop();if(!h&&l&&(h=l),l)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);break}else this.state.commentPreviousNode&&(this.state.commentPreviousNode.type==="ImportSpecifier"&&e.type!=="ImportSpecifier"||this.state.commentPreviousNode.type==="ExportSpecifier"&&e.type!=="ExportSpecifier")&&this.adjustCommentsAfterTrailingComma(e,[this.state.commentPreviousNode]);if(h){if(h.leadingComments){if(h!==e&&h.leadingComments.length>0&&v(h.leadingComments).end<=e.start)e.leadingComments=h.leadingComments,delete h.leadingComments;else for(w=h.leadingComments.length-2;w>=0;--w)if(h.leadingComments[w].end<=e.start){e.leadingComments=h.leadingComments.splice(0,w+1);break}}}else if(this.state.leadingComments.length>0)if(v(this.state.leadingComments).end<=e.start){if(this.state.commentPreviousNode)for(M=0;M<this.state.leadingComments.length;M++)this.state.leadingComments[M].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(M,1),M--);this.state.leadingComments.length>0&&(e.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(w=0;w<this.state.leadingComments.length&&!(this.state.leadingComments[w].end>e.start);w++);const Y=this.state.leadingComments.slice(0,w);Y.length&&(e.leadingComments=Y),S=this.state.leadingComments.slice(w),S.length===0&&(S=null)}if(this.state.commentPreviousNode=e,S)if(S.length&&S[0].start>=e.start&&v(S).end<=e.end)e.innerComments=S;else{const Y=S.findIndex(q=>q.end>=e.end);Y>0?(e.innerComments=S.slice(0,Y),e.trailingComments=S.slice(Y)):e.trailingComments=S}i.push(e)}}const D=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() {} } )
|
|
2
|
+
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 oe extends ${getLocationForPosition(e){let i;return e===this.state.start?i=this.state.startLoc:e===this.state.lastTokStart?i=this.state.lastTokStartLoc:e===this.state.end?i=this.state.endLoc:e===this.state.lastTokEnd?i=this.state.lastTokEndLoc:i=R(this.input,e),i}raise(e,i,...l){return this.raiseWithData(e,void 0,i,...l)}raiseWithData(e,i,l,...h){const S=this.getLocationForPosition(e),w=l.replace(/%(\d+)/g,(M,Y)=>h[Y])+` (${S.line}:${S.column})`;return this._raise(Object.assign({loc:S,pos:e},i),w)}_raise(e,i){const l=new SyntaxError(i);if(Object.assign(l,e),this.options.errorRecovery)return this.isLookahead||this.state.errors.push(l),l;throw l}}var z=U=>class extends U{estreeParseRegExpLiteral({pattern:e,flags:i}){let l=null;try{l=new RegExp(e,i)}catch(S){}const h=this.estreeParseLiteral(l);return h.regex={pattern:e,flags:i},h}estreeParseBigIntLiteral(e){let i;try{i=BigInt(e)}catch(h){i=null}const l=this.estreeParseLiteral(i);return l.bigint=String(l.value||e),l}estreeParseDecimalLiteral(e){const i=null,l=this.estreeParseLiteral(i);return l.decimal=String(l.value||e),l}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}directiveToStmt(e){const i=e.value,l=this.startNodeAt(e.start,e.loc.start),h=this.startNodeAt(i.start,i.loc.start);return h.value=i.extra.expressionValue,h.raw=i.extra.raw,l.expression=this.finishNodeAt(h,"Literal",i.end,i.loc.end),l.directive=i.extra.raw.slice(1,-1),this.finishNodeAt(l,"ExpressionStatement",e.end,e.loc.end)}initFunction(e,i){super.initFunction(e,i),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var i;return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&!((i=e.expression.extra)==null?void 0:i.parenthesized)}stmtToDirective(e){const i=super.stmtToDirective(e),l=e.expression.value;return this.addExtra(i.value,"expressionValue",l),i}parseBlockBody(e,...i){super.parseBlockBody(e,...i);const l=e.directives.map(h=>this.directiveToStmt(h));e.body=l.concat(e.body),delete e.directives}pushClassMethod(e,i,l,h,S,w){this.parseMethod(i,l,h,S,w,"ClassMethod",!0),i.typeParameters&&(i.value.typeParameters=i.typeParameters,delete i.typeParameters),e.body.push(i)}parseExprAtom(e){switch(this.state.type){case a.num:case a.string:return this.estreeParseLiteral(this.state.value);case a.regexp:return this.estreeParseRegExpLiteral(this.state.value);case a.bigint:return this.estreeParseBigIntLiteral(this.state.value);case a.decimal:return this.estreeParseDecimalLiteral(this.state.value);case a._null:return this.estreeParseLiteral(null);case a._true:return this.estreeParseLiteral(!0);case a._false:return this.estreeParseLiteral(!1);default:return super.parseExprAtom(e)}}parseLiteral(e,i,l,h){const S=super.parseLiteral(e,i,l,h);return S.raw=S.extra.raw,delete S.extra,S}parseFunctionBody(e,i,l=!1){super.parseFunctionBody(e,i,l),e.expression=e.body.type!=="BlockStatement"}parseMethod(e,i,l,h,S,w,M=!1){let Y=this.startNode();return Y.kind=e.kind,Y=super.parseMethod(Y,i,l,h,S,w,M),Y.type="FunctionExpression",delete Y.kind,e.value=Y,w=w==="ClassMethod"?"MethodDefinition":w,this.finishNode(e,w)}parseObjectMethod(e,i,l,h,S){const w=super.parseObjectMethod(e,i,l,h,S);return w&&(w.type="Property",w.kind==="method"&&(w.kind="init"),w.shorthand=!1),w}parseObjectProperty(e,i,l,h,S){const w=super.parseObjectProperty(e,i,l,h,S);return w&&(w.kind="init",w.type="Property"),w}toAssignable(e,i=!1){return e!=null&&this.isObjectProperty(e)?(this.toAssignable(e.value,i),e):super.toAssignable(e,i)}toAssignableObjectExpressionProp(e,...i){e.kind==="get"||e.kind==="set"?this.raise(e.key.start,D.PatternHasAccessor):e.method?this.raise(e.key.start,D.PatternHasMethod):super.toAssignableObjectExpressionProp(e,...i)}finishCallExpression(e,i){return super.finishCallExpression(e,i),e.callee.type==="Import"&&(e.type="ImportExpression",e.source=e.arguments[0],delete e.arguments,delete e.callee),e}toReferencedArguments(e){if(e.type==="ImportExpression")return;super.toReferencedArguments(e)}parseExport(e){super.parseExport(e);switch(e.type){case"ExportAllDeclaration":e.exported=null;break;case"ExportNamedDeclaration":e.specifiers.length===1&&e.specifiers[0].type==="ExportNamespaceSpecifier"&&(e.type="ExportAllDeclaration",e.exported=e.specifiers[0].exported,delete e.specifiers);break}return e}parseSubscript(e,i,l,h,S){const w=super.parseSubscript(e,i,l,h,S);if(S.optionalChainMember){if((w.type==="OptionalMemberExpression"||w.type==="OptionalCallExpression")&&(w.type=w.type.substring(8)),S.stop){const M=this.startNodeAtNode(w);return M.expression=w,this.finishNode(M,"ChainExpression")}}else(w.type==="MemberExpression"||w.type==="CallExpression")&&(w.optional=!1);return w}hasPropertyAsPrivateName(e){return e.type==="ChainExpression"&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isOptionalChain(e){return e.type==="ChainExpression"}isObjectProperty(e){return e.type==="Property"&&e.kind==="init"&&!e.method}isObjectMethod(e){return e.method||e.kind==="get"||e.kind==="set"}};class Q{constructor(e,i,l,h){this.token=void 0,this.isExpr=void 0,this.preserveSpace=void 0,this.override=void 0,this.token=e,this.isExpr=!!i,this.preserveSpace=!!l,this.override=h}}const re={braceStatement:new Q("{",!1),braceExpression:new Q("{",!0),recordExpression:new Q("#{",!0),templateQuasi:new Q("${",!1),parenStatement:new Q("(",!1),parenExpression:new Q("(",!0),template:new Q("`",!0,!0,U=>U.readTmplToken()),functionExpression:new Q("function",!0),functionStatement:new Q("function",!1)};a.parenR.updateContext=a.braceR.updateContext=function(){if(this.state.context.length===1){this.state.exprAllowed=!0;return}let U=this.state.context.pop();U===re.braceStatement&&this.curContext().token==="function"&&(U=this.state.context.pop()),this.state.exprAllowed=!U.isExpr},a.name.updateContext=function(U){let e=!1;U!==a.dot&&(this.state.value==="of"&&!this.state.exprAllowed&&U!==a._function&&U!==a._class&&(e=!0)),this.state.exprAllowed=e,this.state.isIterator&&(this.state.isIterator=!1)},a.braceL.updateContext=function(U){this.state.context.push(this.braceIsBlock(U)?re.braceStatement:re.braceExpression),this.state.exprAllowed=!0},a.dollarBraceL.updateContext=function(){this.state.context.push(re.templateQuasi),this.state.exprAllowed=!0},a.parenL.updateContext=function(U){const e=U===a._if||U===a._for||U===a._with||U===a._while;this.state.context.push(e?re.parenStatement:re.parenExpression),this.state.exprAllowed=!0},a.incDec.updateContext=function(){},a._function.updateContext=a._class.updateContext=function(U){U.beforeExpr&&U!==a.semi&&U!==a._else&&!(U===a._return&&this.hasPrecedingLineBreak())&&!((U===a.colon||U===a.braceL)&&this.curContext()===re.b_stat)?this.state.context.push(re.functionExpression):this.state.context.push(re.functionStatement),this.state.exprAllowed=!1},a.backQuote.updateContext=function(){this.curContext()===re.template?this.state.context.pop():this.state.context.push(re.template),this.state.exprAllowed=!1},a.braceHashL.updateContext=function(){this.state.context.push(re.recordExpression),this.state.exprAllowed=!0};let K="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",H="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF\u1AC0\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F";const ie=new RegExp("["+K+"]"),pe=new RegExp("["+K+H+"]");K=H=null;const Te=[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],ae=[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 le(U,e){let i=65536;for(let l=0,h=e.length;l<h;l+=2){if(i+=e[l],i>U)return!1;if(i+=e[l+1],i>=U)return!0}return!1}function X(U){return U<65?U===36:U<=90?!0:U<97?U===95:U<=122?!0:U<=65535?U>=170&&ie.test(String.fromCharCode(U)):le(U,Te)}function J(U){return U<48?U===36:U<58?!0:U<65?!1:U<=90?!0:U<97?U===95:U<=122?!0:U<=65535?U>=170&&pe.test(String.fromCharCode(U)):le(U,Te)||le(U,ae)}const Z={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},he=new Set(Z.keyword),Pe=new Set(Z.strict),me=new Set(Z.strictBind);function ge(U,e){return e&&U==="await"||U==="enum"}function Ae(U,e){return ge(U,e)||Pe.has(U)}function Ne(U){return me.has(U)}function Ue(U,e){return Ae(U,e)||Ne(U)}function Ye(U){return he.has(U)}const at=/^in(stanceof)?$/;function ot(U,e){return U===64&&e===64}const $e=0,rt=1,Qe=2,He=4,Oe=8,tt=16,Ie=32,we=64,je=128,Be=rt|Qe|je,Je=1,Re=2,de=4,Ge=8,it=16,St=64,et=128,Ze=256,nt=512,Ke=1024,ve=Je|Re|Ge|et,qe=Je|0|Ge|0,ce=Je|0|de|0,Ve=Je|0|it|0,ee=0|Re|0|et,ut=0|Re|0|0,st=Je|Re|Ge|Ze,Pt=0|0|0|Ke,Me=0|0|0|St,ke=Je|0|0|St,It=st|nt,jt=0|0|0|Ke,At=4,Nt=2,kt=1,Ct=Nt|kt,Vt=Nt|At,Ut=kt|At,$t=Nt,Qt=kt,Dt=0,Lt=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),se=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 ft(U){return U.type==="DeclareExportAllDeclaration"||U.type==="DeclareExportDeclaration"&&(!U.declaration||U.declaration.type!=="TypeAlias"&&U.declaration.type!=="InterfaceDeclaration")}function mt(U){return U.importKind==="type"||U.importKind==="typeof"}function Mt(U){return(U.type===a.name||!!U.type.keyword)&&U.value!=="from"}const Zt={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function er(U,e){const i=[],l=[];for(let h=0;h<U.length;h++)(e(U[h],h,U)?i:l).push(U[h]);return[i,l]}const Kt=/\*?\s*@((?:no)?flow)\b/;var tr=U=>{var e;return e=class extends U{constructor(i,l){super(i,l);this.flowPragma=void 0,this.flowPragma=void 0}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(i,l){return i!==a.string&&i!==a.semi&&i!==a.interpreterDirective&&(this.flowPragma===void 0&&(this.flowPragma=null)),super.finishToken(i,l)}addComment(i){if(this.flowPragma===void 0){const l=Kt.exec(i.value);if(l)if(l[1]==="flow")this.flowPragma="flow";else if(l[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}return super.addComment(i)}flowParseTypeInitialiser(i){const l=this.state.inType;this.state.inType=!0,this.expect(i||a.colon);const h=this.flowParseType();return this.state.inType=l,h}flowParsePredicate(){const i=this.startNode(),l=this.state.startLoc,h=this.state.start;this.expect(a.modulo);const S=this.state.startLoc;return this.expectContextual("checks"),(l.line!==S.line||l.column!==S.column-1)&&this.raise(h,se.UnexpectedSpaceBetweenModuloChecks),this.eat(a.parenL)?(i.value=this.parseExpression(),this.expect(a.parenR),this.finishNode(i,"DeclaredPredicate")):this.finishNode(i,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const i=this.state.inType;this.state.inType=!0,this.expect(a.colon);let l=null,h=null;return this.match(a.modulo)?(this.state.inType=i,h=this.flowParsePredicate()):(l=this.flowParseType(),this.state.inType=i,this.match(a.modulo)&&(h=this.flowParsePredicate())),[l,h]}flowParseDeclareClass(i){return this.next(),this.flowParseInterfaceish(i,!0),this.finishNode(i,"DeclareClass")}flowParseDeclareFunction(i){this.next();const l=i.id=this.parseIdentifier(),h=this.startNode(),S=this.startNode();this.isRelational("<")?h.typeParameters=this.flowParseTypeParameterDeclaration():h.typeParameters=null,this.expect(a.parenL);const w=this.flowParseFunctionTypeParams();return h.params=w.params,h.rest=w.rest,this.expect(a.parenR),[h.returnType,i.predicate]=this.flowParseTypeAndPredicateInitialiser(),S.typeAnnotation=this.finishNode(h,"FunctionTypeAnnotation"),l.typeAnnotation=this.finishNode(S,"TypeAnnotation"),this.resetEndLocation(l),this.semicolon(),this.finishNode(i,"DeclareFunction")}flowParseDeclare(i,l){if(this.match(a._class))return this.flowParseDeclareClass(i);if(this.match(a._function))return this.flowParseDeclareFunction(i);if(this.match(a._var))return this.flowParseDeclareVariable(i);if(this.eatContextual("module"))return this.match(a.dot)?this.flowParseDeclareModuleExports(i):(l&&this.raise(this.state.lastTokStart,se.NestedDeclareModule),this.flowParseDeclareModule(i));if(this.isContextual("type"))return this.flowParseDeclareTypeAlias(i);if(this.isContextual("opaque"))return this.flowParseDeclareOpaqueType(i);if(this.isContextual("interface"))return this.flowParseDeclareInterface(i);if(this.match(a._export))return this.flowParseDeclareExportDeclaration(i,l);throw this.unexpected()}flowParseDeclareVariable(i){return this.next(),i.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(i.id.name,ce,i.id.start),this.semicolon(),this.finishNode(i,"DeclareVariable")}flowParseDeclareModule(i){this.scope.enter($e),this.match(a.string)?i.id=this.parseExprAtom():i.id=this.parseIdentifier();const l=i.body=this.startNode(),h=l.body=[];for(this.expect(a.braceL);!this.match(a.braceR);){let M=this.startNode();this.match(a._import)?(this.next(),!this.isContextual("type")&&!this.match(a._typeof)&&this.raise(this.state.lastTokStart,se.InvalidNonTypeImportInDeclareModule),this.parseImport(M)):(this.expectContextual("declare",se.UnsupportedStatementInDeclareModule),M=this.flowParseDeclare(M,!0)),h.push(M)}this.scope.exit(),this.expect(a.braceR),this.finishNode(l,"BlockStatement");let S=null,w=!1;return h.forEach(M=>{ft(M)?(S==="CommonJS"&&this.raise(M.start,se.AmbiguousDeclareModuleKind),S="ES"):M.type==="DeclareModuleExports"&&(w&&this.raise(M.start,se.DuplicateDeclareModuleExports),S==="ES"&&this.raise(M.start,se.AmbiguousDeclareModuleKind),S="CommonJS",w=!0)}),i.kind=S||"CommonJS",this.finishNode(i,"DeclareModule")}flowParseDeclareExportDeclaration(i,l){if(this.expect(a._export),this.eat(a._default))return this.match(a._function)||this.match(a._class)?i.declaration=this.flowParseDeclare(this.startNode()):(i.declaration=this.flowParseType(),this.semicolon()),i.default=!0,this.finishNode(i,"DeclareExportDeclaration");if(this.match(a._const)||this.isLet()||(this.isContextual("type")||this.isContextual("interface"))&&!l){const h=this.state.value,S=Zt[h];throw this.raise(this.state.start,se.UnsupportedDeclareExportKind,h,S)}if(this.match(a._var)||this.match(a._function)||this.match(a._class)||this.isContextual("opaque"))return i.declaration=this.flowParseDeclare(this.startNode()),i.default=!1,this.finishNode(i,"DeclareExportDeclaration");if(this.match(a.star)||this.match(a.braceL)||this.isContextual("interface")||this.isContextual("type")||this.isContextual("opaque"))return i=this.parseExport(i),i.type==="ExportNamedDeclaration"&&(i.type="ExportDeclaration",i.default=!1,delete i.exportKind),i.type="Declare"+i.type,i;throw this.unexpected()}flowParseDeclareModuleExports(i){return this.next(),this.expectContextual("exports"),i.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(i,"DeclareModuleExports")}flowParseDeclareTypeAlias(i){return this.next(),this.flowParseTypeAlias(i),i.type="DeclareTypeAlias",i}flowParseDeclareOpaqueType(i){return this.next(),this.flowParseOpaqueType(i,!0),i.type="DeclareOpaqueType",i}flowParseDeclareInterface(i){return this.next(),this.flowParseInterfaceish(i),this.finishNode(i,"DeclareInterface")}flowParseInterfaceish(i,l=!1){if(i.id=this.flowParseRestrictedIdentifier(!l,!0),this.scope.declareName(i.id.name,l?Ve:qe,i.id.start),this.isRelational("<")?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,i.extends=[],i.implements=[],i.mixins=[],this.eat(a._extends))do i.extends.push(this.flowParseInterfaceExtends());while(!l&&this.eat(a.comma));if(this.isContextual("mixins")){this.next();do i.mixins.push(this.flowParseInterfaceExtends());while(this.eat(a.comma))}if(this.isContextual("implements")){this.next();do i.implements.push(this.flowParseInterfaceExtends());while(this.eat(a.comma))}i.body=this.flowParseObjectType({allowStatic:l,allowExact:!1,allowSpread:!1,allowProto:l,allowInexact:!1})}flowParseInterfaceExtends(){const i=this.startNode();return i.id=this.flowParseQualifiedTypeIdentifier(),this.isRelational("<")?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,this.finishNode(i,"InterfaceExtends")}flowParseInterface(i){return this.flowParseInterfaceish(i),this.finishNode(i,"InterfaceDeclaration")}checkNotUnderscore(i){i==="_"&&this.raise(this.state.start,se.UnexpectedReservedUnderscore)}checkReservedType(i,l,h){if(!Lt.has(i))return;this.raise(l,h?se.AssignReservedType:se.UnexpectedReservedType,i)}flowParseRestrictedIdentifier(i,l){return this.checkReservedType(this.state.value,this.state.start,l),this.parseIdentifier(i)}flowParseTypeAlias(i){return i.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(i.id.name,qe,i.id.start),this.isRelational("<")?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,i.right=this.flowParseTypeInitialiser(a.eq),this.semicolon(),this.finishNode(i,"TypeAlias")}flowParseOpaqueType(i,l){return this.expectContextual("type"),i.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(i.id.name,qe,i.id.start),this.isRelational("<")?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,i.supertype=null,this.match(a.colon)&&(i.supertype=this.flowParseTypeInitialiser(a.colon)),i.impltype=null,l||(i.impltype=this.flowParseTypeInitialiser(a.eq)),this.semicolon(),this.finishNode(i,"OpaqueType")}flowParseTypeParameter(i=!1){const l=this.state.start,h=this.startNode(),S=this.flowParseVariance(),w=this.flowParseTypeAnnotatableIdentifier();return h.name=w.name,h.variance=S,h.bound=w.typeAnnotation,this.match(a.eq)?(this.eat(a.eq),h.default=this.flowParseType()):i&&this.raise(l,se.MissingTypeParamDefault),this.finishNode(h,"TypeParameter")}flowParseTypeParameterDeclaration(){const i=this.state.inType,l=this.startNode();l.params=[],this.state.inType=!0,this.isRelational("<")||this.match(a.jsxTagStart)?this.next():this.unexpected();let h=!1;do{const S=this.flowParseTypeParameter(h);l.params.push(S),S.default&&(h=!0),this.isRelational(">")||this.expect(a.comma)}while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=i,this.finishNode(l,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const i=this.startNode(),l=this.state.inType;i.params=[],this.state.inType=!0,this.expectRelational("<");const h=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.isRelational(">");)i.params.push(this.flowParseType()),this.isRelational(">")||this.expect(a.comma);return this.state.noAnonFunctionType=h,this.expectRelational(">"),this.state.inType=l,this.finishNode(i,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const i=this.startNode(),l=this.state.inType;for(i.params=[],this.state.inType=!0,this.expectRelational("<");!this.isRelational(">");)i.params.push(this.flowParseTypeOrImplicitInstantiation()),this.isRelational(">")||this.expect(a.comma);return this.expectRelational(">"),this.state.inType=l,this.finishNode(i,"TypeParameterInstantiation")}flowParseInterfaceType(){const i=this.startNode();if(this.expectContextual("interface"),i.extends=[],this.eat(a._extends))do i.extends.push(this.flowParseInterfaceExtends());while(this.eat(a.comma));return i.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(i,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(a.num)||this.match(a.string)?this.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(i,l,h){return i.static=l,this.lookahead().type===a.colon?(i.id=this.flowParseObjectPropertyKey(),i.key=this.flowParseTypeInitialiser()):(i.id=null,i.key=this.flowParseType()),this.expect(a.bracketR),i.value=this.flowParseTypeInitialiser(),i.variance=h,this.finishNode(i,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(i,l){return i.static=l,i.id=this.flowParseObjectPropertyKey(),this.expect(a.bracketR),this.expect(a.bracketR),this.isRelational("<")||this.match(a.parenL)?(i.method=!0,i.optional=!1,i.value=this.flowParseObjectTypeMethodish(this.startNodeAt(i.start,i.loc.start))):(i.method=!1,this.eat(a.question)&&(i.optional=!0),i.value=this.flowParseTypeInitialiser()),this.finishNode(i,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(i){for(i.params=[],i.rest=null,i.typeParameters=null,this.isRelational("<")&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(a.parenL);!this.match(a.parenR)&&!this.match(a.ellipsis);)i.params.push(this.flowParseFunctionTypeParam()),this.match(a.parenR)||this.expect(a.comma);return this.eat(a.ellipsis)&&(i.rest=this.flowParseFunctionTypeParam()),this.expect(a.parenR),i.returnType=this.flowParseTypeInitialiser(),this.finishNode(i,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(i,l){const h=this.startNode();return i.static=l,i.value=this.flowParseObjectTypeMethodish(h),this.finishNode(i,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:i,allowExact:l,allowSpread:h,allowProto:S,allowInexact:w}){const M=this.state.inType;this.state.inType=!0;const Y=this.startNode();Y.callProperties=[],Y.properties=[],Y.indexers=[],Y.internalSlots=[];let q,ne,Ee=!1;for(l&&this.match(a.braceBarL)?(this.expect(a.braceBarL),q=a.braceBarR,ne=!0):(this.expect(a.braceL),q=a.braceR,ne=!1),Y.exact=ne;!this.match(q);){let Se=!1,Ce=null,We=null;const Fe=this.startNode();if(S&&this.isContextual("proto")){const ct=this.lookahead();ct.type!==a.colon&&ct.type!==a.question&&(this.next(),Ce=this.state.start,i=!1)}if(i&&this.isContextual("static")){const ct=this.lookahead();ct.type!==a.colon&&ct.type!==a.question&&(this.next(),Se=!0)}const ze=this.flowParseVariance();if(this.eat(a.bracketL))Ce!=null&&this.unexpected(Ce),this.eat(a.bracketL)?(ze&&this.unexpected(ze.start),Y.internalSlots.push(this.flowParseObjectTypeInternalSlot(Fe,Se))):Y.indexers.push(this.flowParseObjectTypeIndexer(Fe,Se,ze));else if(this.match(a.parenL)||this.isRelational("<"))Ce!=null&&this.unexpected(Ce),ze&&this.unexpected(ze.start),Y.callProperties.push(this.flowParseObjectTypeCallProperty(Fe,Se));else{let ct="init";if(this.isContextual("get")||this.isContextual("set")){const Ft=this.lookahead();(Ft.type===a.name||Ft.type===a.string||Ft.type===a.num)&&(ct=this.state.value,this.next())}const zt=this.flowParseObjectTypeProperty(Fe,Se,Ce,ze,ct,h,w??!ne);zt===null?(Ee=!0,We=this.state.lastTokStart):Y.properties.push(zt)}this.flowObjectTypeSemicolon(),We&&!this.match(a.braceR)&&!this.match(a.braceBarR)&&this.raise(We,se.UnexpectedExplicitInexactInObject)}this.expect(q),h&&(Y.inexact=Ee);const be=this.finishNode(Y,"ObjectTypeAnnotation");return this.state.inType=M,be}flowParseObjectTypeProperty(i,l,h,S,w,M,Y){if(this.eat(a.ellipsis)){const q=this.match(a.comma)||this.match(a.semi)||this.match(a.braceR)||this.match(a.braceBarR);return q?(M?Y||this.raise(this.state.lastTokStart,se.InexactInsideExact):this.raise(this.state.lastTokStart,se.InexactInsideNonObject),S&&this.raise(S.start,se.InexactVariance),null):(M||this.raise(this.state.lastTokStart,se.UnexpectedSpreadType),h!=null&&this.unexpected(h),S&&this.raise(S.start,se.SpreadVariance),i.argument=this.flowParseType(),this.finishNode(i,"ObjectTypeSpreadProperty"))}else{i.key=this.flowParseObjectPropertyKey(),i.static=l,i.proto=h!=null,i.kind=w;let q=!1;return this.isRelational("<")||this.match(a.parenL)?(i.method=!0,h!=null&&this.unexpected(h),S&&this.unexpected(S.start),i.value=this.flowParseObjectTypeMethodish(this.startNodeAt(i.start,i.loc.start)),(w==="get"||w==="set")&&this.flowCheckGetterSetterParams(i)):(w!=="init"&&this.unexpected(),i.method=!1,this.eat(a.question)&&(q=!0),i.value=this.flowParseTypeInitialiser(),i.variance=S),i.optional=q,this.finishNode(i,"ObjectTypeProperty")}}flowCheckGetterSetterParams(i){const l=i.kind==="get"?0:1,h=i.start,S=i.value.params.length+(i.value.rest?1:0);S!==l&&(i.kind==="get"?this.raise(h,D.BadGetterArity):this.raise(h,D.BadSetterArity)),i.kind==="set"&&i.value.rest&&this.raise(h,D.BadSetterRestParameter)}flowObjectTypeSemicolon(){!this.eat(a.semi)&&!this.eat(a.comma)&&!this.match(a.braceR)&&!this.match(a.braceBarR)&&this.unexpected()}flowParseQualifiedTypeIdentifier(i,l,h){i=i||this.state.start,l=l||this.state.startLoc;let S=h||this.flowParseRestrictedIdentifier(!0);for(;this.eat(a.dot);){const w=this.startNodeAt(i,l);w.qualification=S,w.id=this.flowParseRestrictedIdentifier(!0),S=this.finishNode(w,"QualifiedTypeIdentifier")}return S}flowParseGenericType(i,l,h){const S=this.startNodeAt(i,l);return S.typeParameters=null,S.id=this.flowParseQualifiedTypeIdentifier(i,l,h),this.isRelational("<")&&(S.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(S,"GenericTypeAnnotation")}flowParseTypeofType(){const i=this.startNode();return this.expect(a._typeof),i.argument=this.flowParsePrimaryType(),this.finishNode(i,"TypeofTypeAnnotation")}flowParseTupleType(){const i=this.startNode();for(i.types=[],this.expect(a.bracketL);this.state.pos<this.length&&!this.match(a.bracketR)&&!(i.types.push(this.flowParseType()),this.match(a.bracketR));)this.expect(a.comma);return this.expect(a.bracketR),this.finishNode(i,"TupleTypeAnnotation")}flowParseFunctionTypeParam(){let i=null,l=!1,h=null;const S=this.startNode(),w=this.lookahead();return w.type===a.colon||w.type===a.question?(i=this.parseIdentifier(),this.eat(a.question)&&(l=!0),h=this.flowParseTypeInitialiser()):h=this.flowParseType(),S.name=i,S.optional=l,S.typeAnnotation=h,this.finishNode(S,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(i){const l=this.startNodeAt(i.start,i.loc.start);return l.name=null,l.optional=!1,l.typeAnnotation=i,this.finishNode(l,"FunctionTypeParam")}flowParseFunctionTypeParams(i=[]){let l=null;for(;!this.match(a.parenR)&&!this.match(a.ellipsis);)i.push(this.flowParseFunctionTypeParam()),this.match(a.parenR)||this.expect(a.comma);return this.eat(a.ellipsis)&&(l=this.flowParseFunctionTypeParam()),{params:i,rest:l}}flowIdentToTypeAnnotation(i,l,h,S){switch(S.name){case"any":return this.finishNode(h,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(h,"BooleanTypeAnnotation");case"mixed":return this.finishNode(h,"MixedTypeAnnotation");case"empty":return this.finishNode(h,"EmptyTypeAnnotation");case"number":return this.finishNode(h,"NumberTypeAnnotation");case"string":return this.finishNode(h,"StringTypeAnnotation");case"symbol":return this.finishNode(h,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(S.name),this.flowParseGenericType(i,l,S)}}flowParsePrimaryType(){const i=this.state.start,l=this.state.startLoc,h=this.startNode();let S,w,M=!1;const Y=this.state.noAnonFunctionType;switch(this.state.type){case a.name:return this.isContextual("interface")?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(i,l,h,this.parseIdentifier());case a.braceL:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case a.braceBarL:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case a.bracketL:return this.state.noAnonFunctionType=!1,w=this.flowParseTupleType(),this.state.noAnonFunctionType=Y,w;case a.relational:if(this.state.value==="<")return h.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(a.parenL),S=this.flowParseFunctionTypeParams(),h.params=S.params,h.rest=S.rest,this.expect(a.parenR),this.expect(a.arrow),h.returnType=this.flowParseType(),this.finishNode(h,"FunctionTypeAnnotation");break;case a.parenL:if(this.next(),!this.match(a.parenR)&&!this.match(a.ellipsis))if(this.match(a.name)){const q=this.lookahead().type;M=q!==a.question&&q!==a.colon}else M=!0;if(M){if(this.state.noAnonFunctionType=!1,w=this.flowParseType(),this.state.noAnonFunctionType=Y,this.state.noAnonFunctionType||!(this.match(a.comma)||this.match(a.parenR)&&this.lookahead().type===a.arrow))return this.expect(a.parenR),w;this.eat(a.comma)}return w?S=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(w)]):S=this.flowParseFunctionTypeParams(),h.params=S.params,h.rest=S.rest,this.expect(a.parenR),this.expect(a.arrow),h.returnType=this.flowParseType(),h.typeParameters=null,this.finishNode(h,"FunctionTypeAnnotation");case a.string:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case a._true:case a._false:return h.value=this.match(a._true),this.next(),this.finishNode(h,"BooleanLiteralTypeAnnotation");case a.plusMin:if(this.state.value==="-"){if(this.next(),this.match(a.num))return this.parseLiteral(-this.state.value,"NumberLiteralTypeAnnotation",h.start,h.loc.start);if(this.match(a.bigint))return this.parseLiteral(-this.state.value,"BigIntLiteralTypeAnnotation",h.start,h.loc.start);throw this.raise(this.state.start,se.UnexpectedSubtractionOperand)}throw this.unexpected();case a.num:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case a.bigint:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case a._void:return this.next(),this.finishNode(h,"VoidTypeAnnotation");case a._null:return this.next(),this.finishNode(h,"NullLiteralTypeAnnotation");case a._this:return this.next(),this.finishNode(h,"ThisTypeAnnotation");case a.star:return this.next(),this.finishNode(h,"ExistsTypeAnnotation");default:if(this.state.type.keyword==="typeof")return this.flowParseTypeofType();if(this.state.type.keyword){const q=this.state.type.label;return this.next(),super.createIdentifier(h,q)}}throw this.unexpected()}flowParsePostfixType(){const i=this.state.start,l=this.state.startLoc;let h=this.flowParsePrimaryType();for(;this.match(a.bracketL)&&!this.canInsertSemicolon();){const S=this.startNodeAt(i,l);S.elementType=h,this.expect(a.bracketL),this.expect(a.bracketR),h=this.finishNode(S,"ArrayTypeAnnotation")}return h}flowParsePrefixType(){const i=this.startNode();return this.eat(a.question)?(i.typeAnnotation=this.flowParsePrefixType(),this.finishNode(i,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const i=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(a.arrow)){const l=this.startNodeAt(i.start,i.loc.start);return l.params=[this.reinterpretTypeAsFunctionTypeParam(i)],l.rest=null,l.returnType=this.flowParseType(),l.typeParameters=null,this.finishNode(l,"FunctionTypeAnnotation")}return i}flowParseIntersectionType(){const i=this.startNode();this.eat(a.bitwiseAND);const l=this.flowParseAnonFunctionWithoutParens();for(i.types=[l];this.eat(a.bitwiseAND);)i.types.push(this.flowParseAnonFunctionWithoutParens());return i.types.length===1?l:this.finishNode(i,"IntersectionTypeAnnotation")}flowParseUnionType(){const i=this.startNode();this.eat(a.bitwiseOR);const l=this.flowParseIntersectionType();for(i.types=[l];this.eat(a.bitwiseOR);)i.types.push(this.flowParseIntersectionType());return i.types.length===1?l:this.finishNode(i,"UnionTypeAnnotation")}flowParseType(){const i=this.state.inType;this.state.inType=!0;const l=this.flowParseUnionType();return this.state.inType=i,this.state.exprAllowed=this.state.exprAllowed||this.state.noAnonFunctionType,l}flowParseTypeOrImplicitInstantiation(){if(this.state.type===a.name&&this.state.value==="_"){const i=this.state.start,l=this.state.startLoc,h=this.parseIdentifier();return this.flowParseGenericType(i,l,h)}else return this.flowParseType()}flowParseTypeAnnotation(){const i=this.startNode();return i.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(i,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(i){const l=i?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(a.colon)&&(l.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(l)),l}typeCastToParameter(i){return i.expression.typeAnnotation=i.typeAnnotation,this.resetEndLocation(i.expression,i.typeAnnotation.end,i.typeAnnotation.loc.end),i.expression}flowParseVariance(){let i=null;return this.match(a.plusMin)&&(i=this.startNode(),this.state.value==="+"?i.kind="plus":i.kind="minus",this.next(),this.finishNode(i,"Variance")),i}parseFunctionBody(i,l,h=!1){return l?this.forwardNoArrowParamsConversionAt(i,()=>super.parseFunctionBody(i,!0,h)):super.parseFunctionBody(i,!1,h)}parseFunctionBodyAndFinish(i,l,h=!1){if(this.match(a.colon)){const S=this.startNode();[S.typeAnnotation,i.predicate]=this.flowParseTypeAndPredicateInitialiser(),i.returnType=S.typeAnnotation?this.finishNode(S,"TypeAnnotation"):null}super.parseFunctionBodyAndFinish(i,l,h)}parseStatement(i,l){if(this.state.strict&&this.match(a.name)&&this.state.value==="interface"){const S=this.lookahead();if(S.type===a.name||Ye(S.value)){const w=this.startNode();return this.next(),this.flowParseInterface(w)}}else if(this.shouldParseEnums()&&this.isContextual("enum")){const S=this.startNode();return this.next(),this.flowParseEnumDeclaration(S)}const h=super.parseStatement(i,l);return this.flowPragma===void 0&&!this.isValidDirective(h)&&(this.flowPragma=null),h}parseExpressionStatement(i,l){if(l.type==="Identifier"){if(l.name==="declare"){if(this.match(a._class)||this.match(a.name)||this.match(a._function)||this.match(a._var)||this.match(a._export))return this.flowParseDeclare(i)}else if(this.match(a.name)){if(l.name==="interface")return this.flowParseInterface(i);if(l.name==="type")return this.flowParseTypeAlias(i);if(l.name==="opaque")return this.flowParseOpaqueType(i,!1)}}return super.parseExpressionStatement(i,l)}shouldParseExportDeclaration(){return this.isContextual("type")||this.isContextual("interface")||this.isContextual("opaque")||this.shouldParseEnums()&&this.isContextual("enum")||super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){return this.match(a.name)&&(this.state.value==="type"||this.state.value==="interface"||this.state.value==="opaque"||this.shouldParseEnums()&&this.state.value==="enum")?!1:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual("enum")){const i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}return super.parseExportDefaultExpression()}parseConditional(i,l,h,S){if(!this.match(a.question))return i;if(S){const Se=this.tryParse(()=>super.parseConditional(i,l,h));return Se.node?(Se.error&&(this.state=Se.failState),Se.node):(S.start=Se.error.pos||this.state.start,i)}this.expect(a.question);const w=this.state.clone(),M=this.state.noArrowAt,Y=this.startNodeAt(l,h);let{consequent:q,failed:ne}=this.tryParseConditionalConsequent(),[Ee,be]=this.getArrowLikeExpressions(q);if(ne||be.length>0){const Se=[...M];if(be.length>0){this.state=w,this.state.noArrowAt=Se;for(let Ce=0;Ce<be.length;Ce++)Se.push(be[Ce].start);({consequent:q,failed:ne}=this.tryParseConditionalConsequent()),[Ee,be]=this.getArrowLikeExpressions(q)}ne&&Ee.length>1&&this.raise(w.start,se.AmbiguousConditionalArrow),ne&&Ee.length===1&&(this.state=w,this.state.noArrowAt=Se.concat(Ee[0].start),{consequent:q,failed:ne}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(q,!0),this.state.noArrowAt=M,this.expect(a.colon),Y.test=i,Y.consequent=q,Y.alternate=this.forwardNoArrowParamsConversionAt(Y,()=>this.parseMaybeAssign(void 0,void 0,void 0)),this.finishNode(Y,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const i=this.parseMaybeAssignAllowIn(),l=!this.match(a.colon);return this.state.noArrowParamsConversionAt.pop(),{consequent:i,failed:l}}getArrowLikeExpressions(i,l){const h=[i],S=[];for(;h.length!==0;){const w=h.pop();w.type==="ArrowFunctionExpression"?(w.typeParameters||!w.returnType?this.finishArrowValidation(w):S.push(w),h.push(w.body)):w.type==="ConditionalExpression"&&(h.push(w.consequent),h.push(w.alternate))}return l?(S.forEach(w=>this.finishArrowValidation(w)),[S,[]]):er(S,w=>w.params.every(M=>this.isAssignable(M,!0)))}finishArrowValidation(i){var l;this.toAssignableList(i.params,(l=i.extra)==null?void 0:l.trailingComma,!1),this.scope.enter(Qe|He),super.checkParams(i,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(i,l){let h;return this.state.noArrowParamsConversionAt.indexOf(i.start)!==-1?(this.state.noArrowParamsConversionAt.push(this.state.start),h=l(),this.state.noArrowParamsConversionAt.pop()):h=l(),h}parseParenItem(i,l,h){if(i=super.parseParenItem(i,l,h),this.eat(a.question)&&(i.optional=!0,this.resetEndLocation(i)),this.match(a.colon)){const S=this.startNodeAt(l,h);return S.expression=i,S.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(S,"TypeCastExpression")}return i}assertModuleNodeAllowed(i){if(i.type==="ImportDeclaration"&&(i.importKind==="type"||i.importKind==="typeof")||i.type==="ExportNamedDeclaration"&&i.exportKind==="type"||i.type==="ExportAllDeclaration"&&i.exportKind==="type")return;super.assertModuleNodeAllowed(i)}parseExport(i){const l=super.parseExport(i);return(l.type==="ExportNamedDeclaration"||l.type==="ExportAllDeclaration")&&(l.exportKind=l.exportKind||"value"),l}parseExportDeclaration(i){if(this.isContextual("type")){i.exportKind="type";const l=this.startNode();return this.next(),this.match(a.braceL)?(i.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(i),null):this.flowParseTypeAlias(l)}else if(this.isContextual("opaque")){i.exportKind="type";const l=this.startNode();return this.next(),this.flowParseOpaqueType(l,!1)}else if(this.isContextual("interface")){i.exportKind="type";const l=this.startNode();return this.next(),this.flowParseInterface(l)}else if(this.shouldParseEnums()&&this.isContextual("enum")){i.exportKind="value";const l=this.startNode();return this.next(),this.flowParseEnumDeclaration(l)}else return super.parseExportDeclaration(i)}eatExportStar(i){return super.eatExportStar(...arguments)?!0:this.isContextual("type")&&this.lookahead().type===a.star?(i.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(i){const l=this.state.start,h=super.maybeParseExportNamespaceSpecifier(i);return h&&i.exportKind==="type"&&this.unexpected(l),h}parseClassId(i,l,h){super.parseClassId(i,l,h),this.isRelational("<")&&(i.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(i,l,h){const S=this.state.start;if(this.isContextual("declare")){if(this.parseClassMemberFromModifier(i,l))return;l.declare=!0}super.parseClassMember(i,l,h),l.declare&&(l.type!=="ClassProperty"&&l.type!=="ClassPrivateProperty"?this.raise(S,se.DeclareClassElement):l.value&&this.raise(l.value.start,se.DeclareClassFieldInitializer))}getTokenFromCode(i){const l=this.input.charCodeAt(this.state.pos+1);return i===123&&l===124?this.finishOp(a.braceBarL,2):this.state.inType&&(i===62||i===60)?this.finishOp(a.relational,1):this.state.inType&&i===63?this.finishOp(a.question,1):ot(i,l)?(this.state.isIterator=!0,super.readWord()):super.getTokenFromCode(i)}isAssignable(i,l){switch(i.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":return!0;case"ObjectExpression":{const h=i.properties.length-1;return i.properties.every((S,w)=>S.type!=="ObjectMethod"&&(w===h||S.type==="SpreadElement")&&this.isAssignable(S))}case"ObjectProperty":return this.isAssignable(i.value);case"SpreadElement":return this.isAssignable(i.argument);case"ArrayExpression":return i.elements.every(h=>this.isAssignable(h));case"AssignmentExpression":return i.operator==="=";case"ParenthesizedExpression":case"TypeCastExpression":return this.isAssignable(i.expression);case"MemberExpression":case"OptionalMemberExpression":return!l;default:return!1}}toAssignable(i,l=!1){return i.type==="TypeCastExpression"?super.toAssignable(this.typeCastToParameter(i),l):super.toAssignable(i,l)}toAssignableList(i,l,h){for(let S=0;S<i.length;S++){const w=i[S];(w==null?void 0:w.type)==="TypeCastExpression"&&(i[S]=this.typeCastToParameter(w))}return super.toAssignableList(i,l,h)}toReferencedList(i,l){for(let S=0;S<i.length;S++){var h;const w=i[S];w&&w.type==="TypeCastExpression"&&!((h=w.extra)==null?void 0:h.parenthesized)&&(i.length>1||!l)&&this.raise(w.typeAnnotation.start,se.TypeCastInPattern)}return i}parseArrayLike(i,l,h,S){const w=super.parseArrayLike(i,l,h,S);return l&&!this.state.maybeInArrowParameters&&this.toReferencedList(w.elements),w}checkLVal(i,...l){if(i.type!=="TypeCastExpression")return super.checkLVal(i,...l)}parseClassProperty(i){return this.match(a.colon)&&(i.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(i)}parseClassPrivateProperty(i){return this.match(a.colon)&&(i.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(i)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(a.colon)||super.isClassProperty()}isNonstaticConstructor(i){return!this.match(a.colon)&&super.isNonstaticConstructor(i)}pushClassMethod(i,l,h,S,w,M){l.variance&&this.unexpected(l.variance.start),delete l.variance,this.isRelational("<")&&(l.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(i,l,h,S,w,M)}pushClassPrivateMethod(i,l,h,S){l.variance&&this.unexpected(l.variance.start),delete l.variance,this.isRelational("<")&&(l.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(i,l,h,S)}parseClassSuper(i){if(super.parseClassSuper(i),i.superClass&&this.isRelational("<")&&(i.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual("implements")){this.next();const l=i.implements=[];do{const h=this.startNode();h.id=this.flowParseRestrictedIdentifier(!0),this.isRelational("<")?h.typeParameters=this.flowParseTypeParameterInstantiation():h.typeParameters=null,l.push(this.finishNode(h,"ClassImplements"))}while(this.eat(a.comma))}}parsePropertyName(i,l){const h=this.flowParseVariance(),S=super.parsePropertyName(i,l);return i.variance=h,S}parseObjPropValue(i,l,h,S,w,M,Y,q){i.variance&&this.unexpected(i.variance.start),delete i.variance;let ne;this.isRelational("<")&&!Y&&(ne=this.flowParseTypeParameterDeclaration(),this.match(a.parenL)||this.unexpected()),super.parseObjPropValue(i,l,h,S,w,M,Y,q),ne&&((i.value||i).typeParameters=ne)}parseAssignableListItemTypes(i){return this.eat(a.question)&&(i.type!=="Identifier"&&this.raise(i.start,se.OptionalBindingPattern),i.optional=!0),this.match(a.colon)&&(i.typeAnnotation=this.flowParseTypeAnnotation()),this.resetEndLocation(i),i}parseMaybeDefault(i,l,h){const S=super.parseMaybeDefault(i,l,h);return S.type==="AssignmentPattern"&&S.typeAnnotation&&S.right.start<S.typeAnnotation.start&&this.raise(S.typeAnnotation.start,se.TypeBeforeInitializer),S}shouldParseDefaultImport(i){return mt(i)?Mt(this.state):super.shouldParseDefaultImport(i)}parseImportSpecifierLocal(i,l,h,S){l.local=mt(i)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),this.checkLVal(l.local,S,qe),i.specifiers.push(this.finishNode(l,h))}maybeParseDefaultImportSpecifier(i){i.importKind="value";let l=null;if(this.match(a._typeof)?l="typeof":this.isContextual("type")&&(l="type"),l){const h=this.lookahead();l==="type"&&h.type===a.star&&this.unexpected(h.start),(Mt(h)||h.type===a.braceL||h.type===a.star)&&(this.next(),i.importKind=l)}return super.maybeParseDefaultImportSpecifier(i)}parseImportSpecifier(i){const l=this.startNode(),h=this.state.start,S=this.parseModuleExportName();let w=null;S.type==="Identifier"&&(S.name==="type"?w="type":S.name==="typeof"&&(w="typeof"));let M=!1;if(this.isContextual("as")&&!this.isLookaheadContextual("as")){const ne=this.parseIdentifier(!0);w!==null&&!this.match(a.name)&&!this.state.type.keyword?(l.imported=ne,l.importKind=w,l.local=ne.__clone()):(l.imported=S,l.importKind=null,l.local=this.parseIdentifier())}else if(w!==null&&(this.match(a.name)||this.state.type.keyword))l.imported=this.parseIdentifier(!0),l.importKind=w,this.eatContextual("as")?l.local=this.parseIdentifier():(M=!0,l.local=l.imported.__clone());else{if(S.type==="StringLiteral")throw this.raise(l.start,D.ImportBindingIsString,S.value);M=!0,l.imported=S,l.importKind=null,l.local=l.imported.__clone()}const Y=mt(i),q=mt(l);Y&&q&&this.raise(h,se.ImportTypeShorthandOnlyInPureImport),(Y||q)&&this.checkReservedType(l.local.name,l.local.start,!0),M&&!Y&&!q&&this.checkReservedWord(l.local.name,l.start,!0,!0),this.checkLVal(l.local,"import specifier",qe),i.specifiers.push(this.finishNode(l,"ImportSpecifier"))}parseFunctionParams(i,l){const h=i.kind;h!=="get"&&h!=="set"&&this.isRelational("<")&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(i,l)}parseVarId(i,l){super.parseVarId(i,l),this.match(a.colon)&&(i.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(i.id))}parseAsyncArrowFromCallExpression(i,l){if(this.match(a.colon)){const h=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,i.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=h}return super.parseAsyncArrowFromCallExpression(i,l)}shouldParseAsyncArrow(){return this.match(a.colon)||super.shouldParseAsyncArrow()}parseMaybeAssign(i,l,h){var S;let w=null,M;if(this.hasPlugin("jsx")&&(this.match(a.jsxTagStart)||this.isRelational("<"))){if(w=this.state.clone(),M=this.tryParse(()=>super.parseMaybeAssign(i,l,h),w),!M.error)return M.node;const{context:ne}=this.state;ne[ne.length-1]===re.j_oTag?ne.length-=2:ne[ne.length-1]===re.j_expr&&(ne.length-=1)}if(((S=M)==null?void 0:S.error)||this.isRelational("<")){var Y,q;w=w||this.state.clone();let ne;const Ee=this.tryParse(Se=>{var Ce;ne=this.flowParseTypeParameterDeclaration();const We=this.forwardNoArrowParamsConversionAt(ne,()=>{const ze=super.parseMaybeAssign(i,l,h);return this.resetStartLocationFromNode(ze,ne),ze});We.type!=="ArrowFunctionExpression"&&((Ce=We.extra)==null?void 0:Ce.parenthesized)&&Se();const Fe=this.maybeUnwrapTypeCastExpression(We);return Fe.typeParameters=ne,this.resetStartLocationFromNode(Fe,ne),We},w);let be=null;if(Ee.node&&this.maybeUnwrapTypeCastExpression(Ee.node).type==="ArrowFunctionExpression"){if(!Ee.error&&!Ee.aborted)return Ee.node.async&&this.raise(ne.start,se.UnexpectedTypeParameterBeforeAsyncArrowFunction),Ee.node;be=Ee.node}if((Y=M)==null?void 0:Y.node)return this.state=M.failState,M.node;if(be)return this.state=Ee.failState,be;throw((q=M)==null?void 0:q.thrown)?M.error:Ee.thrown?Ee.error:this.raise(ne.start,se.UnexpectedTokenAfterTypeParameter)}return super.parseMaybeAssign(i,l,h)}parseArrow(i){if(this.match(a.colon)){const l=this.tryParse(()=>{const h=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const S=this.startNode();return[S.typeAnnotation,i.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=h,this.canInsertSemicolon()&&this.unexpected(),this.match(a.arrow)||this.unexpected(),S});if(l.thrown)return null;l.error&&(this.state=l.failState),i.returnType=l.node.typeAnnotation?this.finishNode(l.node,"TypeAnnotation"):null}return super.parseArrow(i)}shouldParseArrow(){return this.match(a.colon)||super.shouldParseArrow()}setArrowFunctionParameters(i,l){this.state.noArrowParamsConversionAt.indexOf(i.start)!==-1?i.params=l:super.setArrowFunctionParameters(i,l)}checkParams(i,l,h){return h&&this.state.noArrowParamsConversionAt.indexOf(i.start)!==-1?void 0:super.checkParams(...arguments)}parseParenAndDistinguishExpression(i){return super.parseParenAndDistinguishExpression(i&&this.state.noArrowAt.indexOf(this.state.start)===-1)}parseSubscripts(i,l,h,S){if(i.type==="Identifier"&&i.name==="async"&&this.state.noArrowAt.indexOf(l)!==-1){this.next();const w=this.startNodeAt(l,h);w.callee=i,w.arguments=this.parseCallExpressionArguments(a.parenR,!1),i=this.finishNode(w,"CallExpression")}else if(i.type==="Identifier"&&i.name==="async"&&this.isRelational("<")){const w=this.state.clone(),M=this.tryParse(q=>this.parseAsyncArrowWithTypeParameters(l,h)||q(),w);if(!M.error&&!M.aborted)return M.node;const Y=this.tryParse(()=>super.parseSubscripts(i,l,h,S),w);if(Y.node&&!Y.error)return Y.node;if(M.node)return this.state=M.failState,M.node;if(Y.node)return this.state=Y.failState,Y.node;throw M.error||Y.error}return super.parseSubscripts(i,l,h,S)}parseSubscript(i,l,h,S,w){if(this.match(a.questionDot)&&this.isLookaheadToken_lt()){if(w.optionalChainMember=!0,S)return w.stop=!0,i;this.next();const M=this.startNodeAt(l,h);return M.callee=i,M.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(a.parenL),M.arguments=this.parseCallExpressionArguments(a.parenR,!1),M.optional=!0,this.finishCallExpression(M,!0)}else if(!S&&this.shouldParseTypes()&&this.isRelational("<")){const M=this.startNodeAt(l,h);M.callee=i;const Y=this.tryParse(()=>(M.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(a.parenL),M.arguments=this.parseCallExpressionArguments(a.parenR,!1),w.optionalChainMember&&(M.optional=!1),this.finishCallExpression(M,w.optionalChainMember)));if(Y.node)return Y.error&&(this.state=Y.failState),Y.node}return super.parseSubscript(i,l,h,S,w)}parseNewArguments(i){let l=null;this.shouldParseTypes()&&this.isRelational("<")&&(l=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),i.typeArguments=l,super.parseNewArguments(i)}parseAsyncArrowWithTypeParameters(i,l){const h=this.startNodeAt(i,l);return this.parseFunctionParams(h),this.parseArrow(h)?this.parseArrowExpression(h,void 0,!0):void 0}readToken_mult_modulo(i){const l=this.input.charCodeAt(this.state.pos+1);if(i===42&&l===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(i)}readToken_pipe_amp(i){const l=this.input.charCodeAt(this.state.pos+1);if(i===124&&l===125){this.finishOp(a.braceBarR,2);return}super.readToken_pipe_amp(i)}parseTopLevel(i,l){const h=super.parseTopLevel(i,l);return this.state.hasFlowComment&&this.raise(this.state.pos,se.UnterminatedFlowComment),h}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){this.state.hasFlowComment&&this.unexpected(null,se.NestedFlowComment),this.hasFlowCommentCompletion(),this.state.pos+=this.skipFlowComment(),this.state.hasFlowComment=!0;return}if(this.state.hasFlowComment){const i=this.input.indexOf("*-/",this.state.pos+=2);if(i===-1)throw this.raise(this.state.pos-2,D.UnterminatedComment);this.state.pos=i+3;return}super.skipBlockComment()}skipFlowComment(){const{pos:i}=this.state;let l=2;for(;[32,9].includes(this.input.charCodeAt(i+l));)l++;const h=this.input.charCodeAt(l+i),S=this.input.charCodeAt(l+i+1);return h===58&&S===58?l+2:this.input.slice(l+i,l+i+12)==="flow-include"?l+12:h===58&&S!==58?l:!1}hasFlowCommentCompletion(){const i=this.input.indexOf("*/",this.state.pos);if(i===-1)throw this.raise(this.state.pos,D.UnterminatedComment)}flowEnumErrorBooleanMemberNotInitialized(i,{enumName:l,memberName:h}){this.raise(i,se.EnumBooleanMemberNotInitialized,h,l)}flowEnumErrorInvalidMemberName(i,{enumName:l,memberName:h}){const S=h[0].toUpperCase()+h.slice(1);this.raise(i,se.EnumInvalidMemberName,h,S,l)}flowEnumErrorDuplicateMemberName(i,{enumName:l,memberName:h}){this.raise(i,se.EnumDuplicateMemberName,h,l)}flowEnumErrorInconsistentMemberValues(i,{enumName:l}){this.raise(i,se.EnumInconsistentMemberValues,l)}flowEnumErrorInvalidExplicitType(i,{enumName:l,suppliedType:h}){return this.raise(i,h===null?se.EnumInvalidExplicitTypeUnknownSupplied:se.EnumInvalidExplicitType,l,h)}flowEnumErrorInvalidMemberInitializer(i,{enumName:l,explicitType:h,memberName:S}){let w=null;switch(h){case"boolean":case"number":case"string":w=se.EnumInvalidMemberInitializerPrimaryType;break;case"symbol":w=se.EnumInvalidMemberInitializerSymbolType;break;default:w=se.EnumInvalidMemberInitializerUnknownType}return this.raise(i,w,l,S,h)}flowEnumErrorNumberMemberNotInitialized(i,{enumName:l,memberName:h}){this.raise(i,se.EnumNumberMemberNotInitialized,l,h)}flowEnumErrorStringMemberInconsistentlyInitailized(i,{enumName:l}){this.raise(i,se.EnumStringMemberInconsistentlyInitailized,l)}flowEnumMemberInit(){const i=this.state.start,l=()=>this.match(a.comma)||this.match(a.braceR);switch(this.state.type){case a.num:{const h=this.parseLiteral(this.state.value,"NumericLiteral");return l()?{type:"number",pos:h.start,value:h}:{type:"invalid",pos:i}}case a.string:{const h=this.parseLiteral(this.state.value,"StringLiteral");return l()?{type:"string",pos:h.start,value:h}:{type:"invalid",pos:i}}case a._true:case a._false:{const h=this.parseBooleanLiteral();return l()?{type:"boolean",pos:h.start,value:h}:{type:"invalid",pos:i}}default:return{type:"invalid",pos:i}}}flowEnumMemberRaw(){const i=this.state.start,l=this.parseIdentifier(!0),h=this.eat(a.eq)?this.flowEnumMemberInit():{type:"none",pos:i};return{id:l,init:h}}flowEnumCheckExplicitTypeMismatch(i,l,h){const{explicitType:S}=l;if(S===null)return;S!==h&&this.flowEnumErrorInvalidMemberInitializer(i,l)}flowEnumMembers({enumName:i,explicitType:l}){const h=new Set,S={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};for(;!this.match(a.braceR);){const w=this.startNode(),{id:M,init:Y}=this.flowEnumMemberRaw(),q=M.name;if(q==="")continue;/^[a-z]/.test(q)&&this.flowEnumErrorInvalidMemberName(M.start,{enumName:i,memberName:q}),h.has(q)&&this.flowEnumErrorDuplicateMemberName(M.start,{enumName:i,memberName:q}),h.add(q);const ne={enumName:i,explicitType:l,memberName:q};w.id=M;switch(Y.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(Y.pos,ne,"boolean"),w.init=Y.value,S.booleanMembers.push(this.finishNode(w,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(Y.pos,ne,"number"),w.init=Y.value,S.numberMembers.push(this.finishNode(w,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(Y.pos,ne,"string"),w.init=Y.value,S.stringMembers.push(this.finishNode(w,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(Y.pos,ne);case"none":switch(l){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(Y.pos,ne);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(Y.pos,ne);break;default:S.defaultedMembers.push(this.finishNode(w,"EnumDefaultedMember"))}}this.match(a.braceR)||this.expect(a.comma)}return S}flowEnumStringMembers(i,l,{enumName:h}){if(i.length===0)return l;if(l.length===0)return i;if(l.length>i.length){for(let S=0;S<i.length;S++){const w=i[S];this.flowEnumErrorStringMemberInconsistentlyInitailized(w.start,{enumName:h})}return l}else{for(let S=0;S<l.length;S++){const w=l[S];this.flowEnumErrorStringMemberInconsistentlyInitailized(w.start,{enumName:h})}return i}}flowEnumParseExplicitType({enumName:i}){if(this.eatContextual("of")){if(!this.match(a.name))throw this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:i,suppliedType:null});const{value:l}=this.state;return this.next(),l!=="boolean"&&l!=="number"&&l!=="string"&&l!=="symbol"&&this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:i,suppliedType:l}),l}return null}flowEnumBody(i,{enumName:l,nameLoc:h}){const S=this.flowEnumParseExplicitType({enumName:l});this.expect(a.braceL);const w=this.flowEnumMembers({enumName:l,explicitType:S});switch(S){case"boolean":return i.explicitType=!0,i.members=w.booleanMembers,this.expect(a.braceR),this.finishNode(i,"EnumBooleanBody");case"number":return i.explicitType=!0,i.members=w.numberMembers,this.expect(a.braceR),this.finishNode(i,"EnumNumberBody");case"string":return i.explicitType=!0,i.members=this.flowEnumStringMembers(w.stringMembers,w.defaultedMembers,{enumName:l}),this.expect(a.braceR),this.finishNode(i,"EnumStringBody");case"symbol":return i.members=w.defaultedMembers,this.expect(a.braceR),this.finishNode(i,"EnumSymbolBody");default:{const M=()=>(i.members=[],this.expect(a.braceR),this.finishNode(i,"EnumStringBody"));i.explicitType=!1;const Y=w.booleanMembers.length,q=w.numberMembers.length,ne=w.stringMembers.length,Ee=w.defaultedMembers.length;if(!Y&&!q&&!ne&&!Ee)return M();if(!Y&&!q)return i.members=this.flowEnumStringMembers(w.stringMembers,w.defaultedMembers,{enumName:l}),this.expect(a.braceR),this.finishNode(i,"EnumStringBody");if(!q&&!ne&&Y>=Ee){for(let be=0,Se=w.defaultedMembers;be<Se.length;be++){const Ce=Se[be];this.flowEnumErrorBooleanMemberNotInitialized(Ce.start,{enumName:l,memberName:Ce.id.name})}return i.members=w.booleanMembers,this.expect(a.braceR),this.finishNode(i,"EnumBooleanBody")}else if(!Y&&!ne&&q>=Ee){for(let be=0,Se=w.defaultedMembers;be<Se.length;be++){const Ce=Se[be];this.flowEnumErrorNumberMemberNotInitialized(Ce.start,{enumName:l,memberName:Ce.id.name})}return i.members=w.numberMembers,this.expect(a.braceR),this.finishNode(i,"EnumNumberBody")}else return this.flowEnumErrorInconsistentMemberValues(h,{enumName:l}),M()}}}flowParseEnumDeclaration(i){const l=this.parseIdentifier();return i.id=l,i.body=this.flowEnumBody(this.startNode(),{enumName:l.name,nameLoc:l.start}),this.finishNode(i,"EnumDeclaration")}updateContext(i){this.match(a.name)&&this.state.value==="of"&&i===a.name&&this.input.slice(this.state.lastTokStart,this.state.lastTokEnd)==="interface"?this.state.exprAllowed=!1:super.updateContext(i)}isLookaheadToken_lt(){const i=this.nextTokenStart();if(this.input.charCodeAt(i)===60){const l=this.input.charCodeAt(i+1);return l!==60&&l!==61}return!1}maybeUnwrapTypeCastExpression(i){return i.type==="TypeCastExpression"?i.expression:i}},e};const rr={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},Yt=/^[\da-fA-F]+$/,ir=/^\d+$/,lt=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>",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 <>...</>?"});re.j_oTag=new Q("<tag",!1),re.j_cTag=new Q("</tag",!1),re.j_expr=new Q("<tag>...</tag>",!0,!0),a.jsxName=new c("jsxName"),a.jsxText=new c("jsxText",{beforeExpr:!0}),a.jsxTagStart=new c("jsxTagStart",{startsExpr:!0}),a.jsxTagEnd=new c("jsxTagEnd"),a.jsxTagStart.updateContext=function(){this.state.context.push(re.j_expr),this.state.context.push(re.j_oTag),this.state.exprAllowed=!1},a.jsxTagEnd.updateContext=function(U){const e=this.state.context.pop();e===re.j_oTag&&U===a.slash||e===re.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===re.j_expr):this.state.exprAllowed=!0};function pt(U){return U?U.type==="JSXOpeningFragment"||U.type==="JSXClosingFragment":!1}function yt(U){if(U.type==="JSXIdentifier")return U.name;if(U.type==="JSXNamespacedName")return U.namespace.name+":"+U.name.name;if(U.type==="JSXMemberExpression")return yt(U.object)+"."+yt(U.property);throw new Error("Node had unexpected type: "+U.type)}var Xt=U=>class extends U{jsxReadToken(){let e="",i=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,lt.UnterminatedJsxContent);const l=this.input.charCodeAt(this.state.pos);switch(l){case 60:case 123:return this.state.pos===this.state.start?l===60&&this.state.exprAllowed?(++this.state.pos,this.finishToken(a.jsxTagStart)):super.getTokenFromCode(l):(e+=this.input.slice(i,this.state.pos),this.finishToken(a.jsxText,e));case 38:e+=this.input.slice(i,this.state.pos),e+=this.jsxReadEntity(),i=this.state.pos;break;default:L(l)?(e+=this.input.slice(i,this.state.pos),e+=this.jsxReadNewLine(!0),i=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){const i=this.input.charCodeAt(this.state.pos);let l;return++this.state.pos,i===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,l=e?`
|
|
3
|
+
`:`\r
|
|
4
|
+
`):l=String.fromCharCode(i),++this.state.curLine,this.state.lineStart=this.state.pos,l}jsxReadString(e){let i="",l=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,D.UnterminatedString);const h=this.input.charCodeAt(this.state.pos);if(h===e)break;h===38?(i+=this.input.slice(l,this.state.pos),i+=this.jsxReadEntity(),l=this.state.pos):L(h)?(i+=this.input.slice(l,this.state.pos),i+=this.jsxReadNewLine(!1),l=this.state.pos):++this.state.pos}return i+=this.input.slice(l,this.state.pos++),this.finishToken(a.string,i)}jsxReadEntity(){let e="",i=0,l,h=this.input[this.state.pos];const S=++this.state.pos;for(;this.state.pos<this.length&&i++<10;){if(h=this.input[this.state.pos++],h===";"){e[0]==="#"?e[1]==="x"?(e=e.substr(2),Yt.test(e)&&(l=String.fromCodePoint(parseInt(e,16)))):(e=e.substr(1),ir.test(e)&&(l=String.fromCodePoint(parseInt(e,10)))):l=rr[e];break}e+=h}return l||(this.state.pos=S,"&")}jsxReadWord(){let e;const i=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(J(e)||e===45);return this.finishToken(a.jsxName,this.input.slice(i,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();return this.match(a.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,i=this.state.startLoc,l=this.jsxParseIdentifier();if(!this.eat(a.colon))return l;const h=this.startNodeAt(e,i);return h.namespace=l,h.name=this.jsxParseIdentifier(),this.finishNode(h,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.start,i=this.state.startLoc;let l=this.jsxParseNamespacedName();if(l.type==="JSXNamespacedName")return l;for(;this.eat(a.dot);){const h=this.startNodeAt(e,i);h.object=l,h.property=this.jsxParseIdentifier(),l=this.finishNode(h,"JSXMemberExpression")}return l}jsxParseAttributeValue(){let e;switch(this.state.type){case a.braceL:return e=this.startNode(),this.next(),e=this.jsxParseExpressionContainer(e),e.expression.type==="JSXEmptyExpression"&&this.raise(e.start,lt.AttributeIsEmpty),e;case a.jsxTagStart:case a.string:return this.parseExprAtom();default:throw this.raise(this.state.start,lt.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(a.braceR),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e){if(this.match(a.braceR))e.expression=this.jsxParseEmptyExpression();else{const i=this.parseExpression();e.expression=i}return this.expect(a.braceR),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.eat(a.braceL)?(this.expect(a.ellipsis),e.argument=this.parseMaybeAssignAllowIn(),this.expect(a.braceR),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(a.eq)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e,i){const l=this.startNodeAt(e,i);return this.match(a.jsxTagEnd)?(this.expect(a.jsxTagEnd),this.finishNode(l,"JSXOpeningFragment")):(l.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(l))}jsxParseOpeningElementAfterName(e){const i=[];for(;!this.match(a.slash)&&!this.match(a.jsxTagEnd);)i.push(this.jsxParseAttribute());return e.attributes=i,e.selfClosing=this.eat(a.slash),this.expect(a.jsxTagEnd),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e,i){const l=this.startNodeAt(e,i);return this.match(a.jsxTagEnd)?(this.expect(a.jsxTagEnd),this.finishNode(l,"JSXClosingFragment")):(l.name=this.jsxParseElementName(),this.expect(a.jsxTagEnd),this.finishNode(l,"JSXClosingElement"))}jsxParseElementAt(e,i){const l=this.startNodeAt(e,i),h=[],S=this.jsxParseOpeningElementAt(e,i);let w=null;if(!S.selfClosing){e:for(;;)switch(this.state.type){case a.jsxTagStart:if(e=this.state.start,i=this.state.startLoc,this.next(),this.eat(a.slash)){w=this.jsxParseClosingElementAt(e,i);break e}h.push(this.jsxParseElementAt(e,i));break;case a.jsxText:h.push(this.parseExprAtom());break;case a.braceL:{const M=this.startNode();this.next(),this.match(a.ellipsis)?h.push(this.jsxParseSpreadChild(M)):h.push(this.jsxParseExpressionContainer(M));break}default:throw this.unexpected()}pt(S)&&!pt(w)?this.raise(w.start,lt.MissingClosingTagFragment):!pt(S)&&pt(w)?this.raise(w.start,lt.MissingClosingTagElement,yt(S.name)):!pt(S)&&!pt(w)&&(yt(w.name)!==yt(S.name)&&this.raise(w.start,lt.MissingClosingTagElement,yt(S.name)))}if(pt(S)?(l.openingFragment=S,l.closingFragment=w):(l.openingElement=S,l.closingElement=w),l.children=h,this.isRelational("<"))throw this.raise(this.state.start,lt.UnwrappedAdjacentJSXElements);return pt(S)?this.finishNode(l,"JSXFragment"):this.finishNode(l,"JSXElement")}jsxParseElement(){const e=this.state.start,i=this.state.startLoc;return this.next(),this.jsxParseElementAt(e,i)}parseExprAtom(e){return this.match(a.jsxText)?this.parseLiteral(this.state.value,"JSXText"):this.match(a.jsxTagStart)?this.jsxParseElement():this.isRelational("<")&&this.input.charCodeAt(this.state.pos)!==33?(this.finishToken(a.jsxTagStart),this.jsxParseElement()):super.parseExprAtom(e)}getTokenFromCode(e){if(this.state.inPropertyName)return super.getTokenFromCode(e);const i=this.curContext();if(i===re.j_expr)return this.jsxReadToken();if(i===re.j_oTag||i===re.j_cTag){if(X(e))return this.jsxReadWord();if(e===62)return++this.state.pos,this.finishToken(a.jsxTagEnd);if((e===34||e===39)&&i===re.j_oTag)return this.jsxReadString(e)}return e===60&&this.state.exprAllowed&&this.input.charCodeAt(this.state.pos+1)!==33?(++this.state.pos,this.finishToken(a.jsxTagStart)):super.getTokenFromCode(e)}updateContext(e){if(this.match(a.braceL)){const i=this.curContext();i===re.j_oTag?this.state.context.push(re.braceExpression):i===re.j_expr?this.state.context.push(re.templateQuasi):super.updateContext(e),this.state.exprAllowed=!0}else if(this.match(a.slash)&&e===a.jsxTagStart)this.state.context.length-=2,this.state.context.push(re.j_cTag),this.state.exprAllowed=!1;else return super.updateContext(e)}};class xt{constructor(e){this.flags=void 0,this.var=[],this.lexical=[],this.functions=[],this.flags=e}}class _e{constructor(e,i){this.scopeStack=[],this.undefinedExports=new Map,this.undefinedPrivateNames=new Map,this.raise=e,this.inModule=i}get inFunction(){return(this.currentVarScope().flags&Qe)>0}get allowSuper(){return(this.currentThisScope().flags&tt)>0}get allowDirectSuper(){return(this.currentThisScope().flags&Ie)>0}get inClass(){return(this.currentThisScope().flags&we)>0}get inNonArrowFunction(){return(this.currentThisScope().flags&Qe)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new xt(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){this.scopeStack.pop()}treatFunctionsAsVarInScope(e){return!!(e.flags&Qe||!this.inModule&&e.flags&rt)}declareName(e,i,l){let h=this.currentScope();if(i&Ge||i&it)this.checkRedeclarationInScope(h,e,i,l),i&it?h.functions.push(e):h.lexical.push(e),i&Ge&&this.maybeExportDefined(h,e);else if(i&de)for(let S=this.scopeStack.length-1;S>=0&&!(h=this.scopeStack[S],this.checkRedeclarationInScope(h,e,i,l),h.var.push(e),this.maybeExportDefined(h,e),h.flags&Be);--S);this.inModule&&h.flags&rt&&this.undefinedExports.delete(e)}maybeExportDefined(e,i){this.inModule&&e.flags&rt&&this.undefinedExports.delete(i)}checkRedeclarationInScope(e,i,l,h){this.isRedeclaredInScope(e,i,l)&&this.raise(h,D.VarRedeclaration,i)}isRedeclaredInScope(e,i,l){return l&Je?l&Ge?e.lexical.indexOf(i)>-1||e.functions.indexOf(i)>-1||e.var.indexOf(i)>-1:l&it?e.lexical.indexOf(i)>-1||!this.treatFunctionsAsVarInScope(e)&&e.var.indexOf(i)>-1:e.lexical.indexOf(i)>-1&&!(e.flags&Oe&&e.lexical[0]===i)||!this.treatFunctionsAsVarInScope(e)&&e.functions.indexOf(i)>-1:!1}checkLocalExport(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&this.scopeStack[0].functions.indexOf(e.name)===-1&&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 i=this.scopeStack[e];if(i.flags&Be)return i}}currentThisScope(){for(let e=this.scopeStack.length-1;;e--){const i=this.scopeStack[e];if((i.flags&Be||i.flags&we)&&!(i.flags&He))return i}}}class nr extends xt{constructor(...e){super(...e);this.types=[],this.enums=[],this.constEnums=[],this.classes=[],this.exportOnlyBindings=[]}}class Wt extends _e{createScope(e){return new nr(e)}declareName(e,i,l){const h=this.currentScope();if(i&Ke){this.maybeExportDefined(h,e),h.exportOnlyBindings.push(e);return}super.declareName(...arguments),i&Re&&(i&Je||(this.checkRedeclarationInScope(h,e,i,l),this.maybeExportDefined(h,e)),h.types.push(e)),i&Ze&&h.enums.push(e),i&nt&&h.constEnums.push(e),i&et&&h.classes.push(e)}isRedeclaredInScope(e,i,l){if(e.enums.indexOf(i)>-1){if(l&Ze){const h=!!(l&nt),S=e.constEnums.indexOf(i)>-1;return h!==S}return!0}return l&et&&e.classes.indexOf(i)>-1?e.lexical.indexOf(i)>-1?!!(l&Je):!1:l&Re&&e.types.indexOf(i)>-1?!0:super.isRedeclaredInScope(...arguments)}checkLocalExport(e){this.scopeStack[0].types.indexOf(e.name)===-1&&this.scopeStack[0].exportOnlyBindings.indexOf(e.name)===-1&&super.checkLocalExport(e)}}const ht=0,Bt=1,_t=2,Jt=4,Et=8;class sr{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&_t)>0}get hasYield(){return(this.currentFlags()&Bt)>0}get hasReturn(){return(this.currentFlags()&Jt)>0}get hasIn(){return(this.currentFlags()&Et)>0}}function o(U,e){return(U?_t:0)|(e?Bt:0)}function y(U){if(U==null)throw new Error(`Unexpected ${U} value.`);return U}function I(U){if(!U)throw new Error("Assert fail")}const N=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"});function F(U){switch(U){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}}var W=U=>class extends U{getScopeHandler(){return Wt}tsIsIdentifier(){return this.match(a.name)}tsNextTokenCanFollowModifier(){return this.next(),(this.match(a.bracketL)||this.match(a.braceL)||this.match(a.star)||this.match(a.ellipsis)||this.match(a.hash)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsParseModifier(e){if(!this.match(a.name))return;const i=this.state.value;return e.indexOf(i)!==-1&&this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))?i:void 0}tsParseModifiers(e,i){for(;;){const l=this.state.start,h=this.tsParseModifier(i);if(!h)break;Object.hasOwnProperty.call(e,h)&&this.raise(l,N.DuplicateModifier,h),e[h]=!0}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(a.braceR);case"HeritageClauseElement":return this.match(a.braceL);case"TupleElementTypes":return this.match(a.bracketR);case"TypeParametersOrArguments":return this.isRelational(">")}throw new Error("Unreachable")}tsParseList(e,i){const l=[];for(;!this.tsIsListTerminator(e);)l.push(i());return l}tsParseDelimitedList(e,i){return y(this.tsParseDelimitedListWorker(e,i,!0))}tsParseDelimitedListWorker(e,i,l){const h=[];for(;!this.tsIsListTerminator(e);){const S=i();if(S==null)return;if(h.push(S),this.eat(a.comma))continue;if(this.tsIsListTerminator(e))break;l&&this.expect(a.comma);return}return h}tsParseBracketedList(e,i,l,h){h||(l?this.expect(a.bracketL):this.expectRelational("<"));const S=this.tsParseDelimitedList(e,i);return l?this.expect(a.bracketR):this.expectRelational(">"),S}tsParseImportType(){const e=this.startNode();return this.expect(a._import),this.expect(a.parenL),this.match(a.string)||this.raise(this.state.start,N.UnsupportedImportTypeArgument),e.argument=this.parseExprAtom(),this.expect(a.parenR),this.eat(a.dot)&&(e.qualifier=this.tsParseEntityName(!0)),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(e){let i=this.parseIdentifier();for(;this.eat(a.dot);){const l=this.startNodeAtNode(i);l.left=i,l.right=this.parseIdentifier(e),i=this.finishNode(l,"TSQualifiedName")}return i}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 i=this.startNodeAtNode(e);return i.parameterName=e,i.typeAnnotation=this.tsParseTypeAnnotation(!1),i.asserts=!1,this.finishNode(i,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();return this.expect(a._typeof),this.match(a._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(a._extends),e.default=this.tsEatThenParseType(a.eq),this.finishNode(e,"TSTypeParameter")}tsTryParseTypeParameters(){if(this.isRelational("<"))return this.tsParseTypeParameters()}tsParseTypeParameters(){const e=this.startNode();return this.isRelational("<")||this.match(a.jsxTagStart)?this.next():this.unexpected(),e.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0),e.params.length===0&&this.raise(e.start,N.EmptyTypeParameters),this.finishNode(e,"TSTypeParameterDeclaration")}tsTryNextParseConstantContext(){return this.lookahead().type===a._const?(this.next(),this.tsParseTypeReference()):null}tsFillSignature(e,i){const l=e===a.arrow;i.typeParameters=this.tsTryParseTypeParameters(),this.expect(a.parenL),i.parameters=this.tsParseBindingListForSignature(),l?i.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(i.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){return this.parseBindingList(a.parenR,41).map(e=>(e.type!=="Identifier"&&e.type!=="RestElement"&&e.type!=="ObjectPattern"&&e.type!=="ArrayPattern"&&this.raise(e.start,N.UnsupportedSignatureParameterKind,e.type),e))}tsParseTypeMemberSemicolon(){this.eat(a.comma)||this.semicolon()}tsParseSignatureMember(e,i){return this.tsFillSignature(a.colon,i),this.tsParseTypeMemberSemicolon(),this.finishNode(i,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),this.eat(a.name)&&this.match(a.colon)}tsTryParseIndexSignature(e){if(!(this.match(a.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(a.bracketL);const i=this.parseIdentifier();i.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(i),this.expect(a.bracketR),e.parameters=[i];const l=this.tsTryParseTypeAnnotation();return l&&(e.typeAnnotation=l),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,i){this.eat(a.question)&&(e.optional=!0);const l=e;if(!i&&(this.match(a.parenL)||this.isRelational("<"))){const h=l;return this.tsFillSignature(a.colon,h),this.tsParseTypeMemberSemicolon(),this.finishNode(h,"TSMethodSignature")}else{const h=l;i&&(h.readonly=!0);const S=this.tsTryParseTypeAnnotation();return S&&(h.typeAnnotation=S),this.tsParseTypeMemberSemicolon(),this.finishNode(h,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(a.parenL)||this.isRelational("<"))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(a._new)){const h=this.startNode();return this.next(),this.match(a.parenL)||this.isRelational("<")?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(h,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}const i=!!this.tsParseModifier(["readonly"]),l=this.tsTryParseIndexSignature(e);return l?(i&&(e.readonly=!0),l):(this.parsePropertyName(e,!1),this.tsParsePropertyOrMethodSignature(e,i))}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(a.braceL);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(a.braceR),e}tsIsStartOfMappedType(){return this.next(),this.eat(a.plusMin)?this.isContextual("readonly"):(this.isContextual("readonly")&&this.next(),this.match(a.bracketL)?(this.next(),this.tsIsIdentifier()?(this.next(),this.match(a._in)):!1):!1)}tsParseMappedTypeParameter(){const e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsExpectThenParseType(a._in),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){const e=this.startNode();return this.expect(a.braceL),this.match(a.plusMin)?(e.readonly=this.state.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(e.readonly=!0),this.expect(a.bracketL),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(a.bracketR),this.match(a.plusMin)?(e.optional=this.state.value,this.next(),this.expect(a.question)):this.eat(a.question)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(a.braceR),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let i=!1,l=null;return e.elementTypes.forEach(h=>{var S;let{type:w}=h;i&&w!=="TSRestType"&&w!=="TSOptionalType"&&!(w==="TSNamedTupleMember"&&h.optional)&&this.raise(h.start,N.OptionalTypeBeforeRequired),i=i||w==="TSNamedTupleMember"&&h.optional||w==="TSOptionalType",w==="TSRestType"&&(h=h.typeAnnotation,w=h.type);const M=w==="TSNamedTupleMember";l=(S=l)!=null?S:M,l!==M&&this.raise(h.start,N.MixedLabeledAndUnlabeledElements)}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const{start:e,startLoc:i}=this.state,l=this.eat(a.ellipsis);let h=this.tsParseType();const S=this.eat(a.question),w=this.eat(a.colon);if(w){const M=this.startNodeAtNode(h);M.optional=S,h.type==="TSTypeReference"&&!h.typeParameters&&h.typeName.type==="Identifier"?M.label=h.typeName:(this.raise(h.start,N.InvalidTupleMemberLabel),M.label=h),M.elementType=this.tsParseType(),h=this.finishNode(M,"TSNamedTupleMember")}else if(S){const M=this.startNodeAtNode(h);M.typeAnnotation=h,h=this.finishNode(M,"TSOptionalType")}if(l){const M=this.startNodeAt(e,i);M.typeAnnotation=h,h=this.finishNode(M,"TSRestType")}return h}tsParseParenthesizedType(){const e=this.startNode();return this.expect(a.parenL),e.typeAnnotation=this.tsParseType(),this.expect(a.parenR),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e){const i=this.startNode();return e==="TSConstructorType"&&this.expect(a._new),this.tsFillSignature(a.arrow,i),this.finishNode(i,e)}tsParseLiteralTypeNode(){const e=this.startNode();return e.literal=(()=>{switch(this.state.type){case a.num:case a.bigint:case a.string:case a._true:case a._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 a.name:case a._void:case a._null:{const e=this.match(a._void)?"TSVoidKeyword":this.match(a._null)?"TSNullKeyword":F(this.state.value);if(e!==void 0&&this.lookaheadCharCode()!==46){const i=this.startNode();return this.next(),this.finishNode(i,e)}return this.tsParseTypeReference()}case a.string:case a.num:case a.bigint:case a._true:case a._false:return this.tsParseLiteralTypeNode();case a.plusMin:if(this.state.value==="-"){const e=this.startNode(),i=this.lookahead();if(i.type!==a.num&&i.type!==a.bigint)throw this.unexpected();return e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case a._this:return this.tsParseThisTypeOrThisTypePredicate();case a._typeof:return this.tsParseTypeQuery();case a._import:return this.tsParseImportType();case a.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case a.bracketL:return this.tsParseTupleType();case a.parenL:return this.tsParseParenthesizedType();case a.backQuote:return this.tsParseTemplateLiteralType()}throw this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(a.bracketL);)if(this.match(a.bracketR)){const i=this.startNodeAtNode(e);i.elementType=e,this.expect(a.bracketR),e=this.finishNode(i,"TSArrayType")}else{const i=this.startNodeAtNode(e);i.objectType=e,i.indexType=this.tsParseType(),this.expect(a.bracketR),e=this.finishNode(i,"TSIndexedAccessType")}return e}tsParseTypeOperator(e){const i=this.startNode();return this.expectContextual(e),i.operator=e,i.typeAnnotation=this.tsParseTypeOperatorOrHigher(),e==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(i),this.finishNode(i,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(e.start,N.UnexpectedReadonly)}}tsParseInferType(){const e=this.startNode();this.expectContextual("infer");const i=this.startNode();return i.name=this.parseIdentifierName(i.start),e.typeParameter=this.finishNode(i,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseTypeOperatorOrHigher(){const e=["keyof","unique","readonly"].find(i=>this.isContextual(i));return e?this.tsParseTypeOperator(e):this.isContextual("infer")?this.tsParseInferType():this.tsParseArrayTypeOrHigher()}tsParseUnionOrIntersectionType(e,i,l){this.eat(l);let h=i();if(this.match(l)){const S=[h];for(;this.eat(l);)S.push(i());const w=this.startNodeAtNode(h);w.types=S,h=this.finishNode(w,e)}return h}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),a.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),a.bitwiseOR)}tsIsStartOfFunctionType(){return this.isRelational("<")?!0:this.match(a.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(this.match(a.name)||this.match(a._this))return this.next(),!0;if(this.match(a.braceL)){let e=1;for(this.next();e>0;)this.match(a.braceL)?++e:this.match(a.braceR)&&--e,this.next();return!0}if(this.match(a.bracketL)){let e=1;for(this.next();e>0;)this.match(a.bracketL)?++e:this.match(a.bracketR)&&--e,this.next();return!0}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(a.parenR)||this.match(a.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(a.colon)||this.match(a.comma)||this.match(a.question)||this.match(a.eq))return!0;if(this.match(a.parenR)&&(this.next(),this.match(a.arrow)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{const i=this.startNode();this.expect(e);const l=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(l&&this.match(a._this)){let M=this.tsParseThisTypeOrThisTypePredicate();if(M.type==="TSThisType"){const Y=this.startNodeAtNode(i);Y.parameterName=M,Y.asserts=!0,M=this.finishNode(Y,"TSTypePredicate")}else M.asserts=!0;return i.typeAnnotation=M,this.finishNode(i,"TSTypeAnnotation")}const h=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!h){if(!l)return this.tsParseTypeAnnotation(!1,i);const M=this.startNodeAtNode(i);return M.parameterName=this.parseIdentifier(),M.asserts=l,i.typeAnnotation=this.finishNode(M,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")}const S=this.tsParseTypeAnnotation(!1),w=this.startNodeAtNode(i);return w.parameterName=h,w.typeAnnotation=S,w.asserts=l,i.typeAnnotation=this.finishNode(w,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(a.colon)?this.tsParseTypeOrTypePredicateAnnotation(a.colon):void 0}tsTryParseTypeAnnotation(){return this.match(a.colon)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(a.colon)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(!this.match(a.name)||this.state.value!=="asserts"||this.hasPrecedingLineBreak())return!1;const e=this.state.containsEsc;return this.next(),!this.match(a.name)&&!this.match(a._this)?!1:(e&&this.raise(this.state.lastTokStart,D.InvalidEscapedReservedWord,"asserts"),!0)}tsParseTypeAnnotation(e=!0,i=this.startNode()){return this.tsInType(()=>{e&&this.expect(a.colon),i.typeAnnotation=this.tsParseType()}),this.finishNode(i,"TSTypeAnnotation")}tsParseType(){I(this.state.inType);const e=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(a._extends))return e;const i=this.startNodeAtNode(e);return i.checkType=e,i.extendsType=this.tsParseNonConditionalType(),this.expect(a.question),i.trueType=this.tsParseType(),this.expect(a.colon),i.falseType=this.tsParseType(),this.finishNode(i,"TSConditionalType")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(a._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){const e=this.startNode(),i=this.tsTryNextParseConstantContext();return e.typeAnnotation=i||this.tsNextThenParseType(),this.expectRelational(">"),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const i=this.state.start,l=this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this));return l.length||this.raise(i,N.EmptyHeritageClauseType,e),l}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",ee),e.typeParameters=this.tsTryParseTypeParameters(),this.eat(a._extends)&&(e.extends=this.tsParseHeritageClause("extends"));const i=this.startNode();return i.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(i,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkLVal(e.id,"typescript type alias",ut),e.typeParameters=this.tsTryParseTypeParameters(),e.typeAnnotation=this.tsInType(()=>{if(this.expect(a.eq),this.isContextual("intrinsic")&&this.lookahead().type!==a.dot){const i=this.startNode();return this.next(),this.finishNode(i,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){const i=this.state.context;this.state.context=[i[0]];try{return e()}finally{this.state.context=i}}tsInType(e){const i=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=i}}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(a.string)?this.parseExprAtom():this.parseIdentifier(!0),this.eat(a.eq)&&(e.initializer=this.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,i){return i&&(e.const=!0),e.id=this.parseIdentifier(),this.checkLVal(e.id,"typescript enum declaration",i?It:st),this.expect(a.braceL),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(a.braceR),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter($e),this.expect(a.braceL),this.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,a.braceR),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,i=!1){if(e.id=this.parseIdentifier(),i||this.checkLVal(e.id,"module or namespace declaration",jt),this.eat(a.dot)){const l=this.startNode();this.tsParseModuleOrNamespaceDeclaration(l,!0),e.body=l}else this.scope.enter(je),this.prodParam.enter(ht),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(a.string)?e.id=this.parseExprAtom():this.unexpected(),this.match(a.braceL)?(this.scope.enter(je),this.prodParam.enter(ht),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,i){return e.isExport=i||!1,e.id=this.parseIdentifier(),this.checkLVal(e.id,"import equals declaration",qe),this.expect(a.eq),e.moduleReference=this.tsParseModuleReference(),this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual("require")&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const e=this.startNode();if(this.expectContextual("require"),this.expect(a.parenL),!this.match(a.string))throw this.unexpected();return e.expression=this.parseExprAtom(),this.expect(a.parenR),this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const i=this.state.clone(),l=e();return this.state=i,l}tsTryParseAndCatch(e){const i=this.tryParse(l=>e()||l());return i.aborted||!i.node?void 0:(i.error&&(this.state=i.failState),i.node)}tsTryParse(e){const i=this.state.clone(),l=e();if(l!==void 0&&l!==!1)return l;this.state=i}tsTryParseDeclare(e){if(this.isLineTerminator())return;let i=this.state.type,l;return this.isContextual("let")&&(i=a._var,l="let"),this.tsInDeclareContext(()=>{switch(i){case a._function:return e.declare=!0,this.parseFunctionStatement(e,!1,!0);case a._class:return e.declare=!0,this.parseClass(e,!0,!1);case a._const:if(this.match(a._const)&&this.isLookaheadContextual("enum"))return this.expect(a._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(e,!0);case a._var:return l=l||this.state.value,this.parseVarStatement(e,l);case a.name:{const h=this.state.value;return h==="global"?this.tsParseAmbientExternalModuleDeclaration(e):this.tsParseDeclaration(e,h,!0)}}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)}tsParseExpressionStatement(e,i){switch(i.name){case"declare":{const l=this.tsTryParseDeclare(e);if(l)return l.declare=!0,l;break}case"global":if(this.match(a.braceL)){this.scope.enter(je),this.prodParam.enter(ht);const l=e;return l.global=!0,l.id=i,l.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(l,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,i.name,!1)}}tsParseDeclaration(e,i,l){switch(i){case"abstract":if(this.tsCheckLineTerminatorAndMatch(a._class,l)){const h=e;return h.abstract=!0,l&&(this.next(),this.match(a._class)||this.unexpected(null,a._class)),this.parseClass(h,!0,!1)}break;case"enum":if(l||this.match(a.name))return l&&this.next(),this.tsParseEnumDeclaration(e,!1);break;case"interface":if(this.tsCheckLineTerminatorAndMatch(a.name,l))return l&&this.next(),this.tsParseInterfaceDeclaration(e);break;case"module":if(l&&this.next(),this.match(a.string))return this.tsParseAmbientExternalModuleDeclaration(e);if(this.tsCheckLineTerminatorAndMatch(a.name,l))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"namespace":if(this.tsCheckLineTerminatorAndMatch(a.name,l))return l&&this.next(),this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminatorAndMatch(a.name,l))return l&&this.next(),this.tsParseTypeAliasDeclaration(e);break}}tsCheckLineTerminatorAndMatch(e,i){return(i||this.match(e))&&!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e,i){if(!this.isRelational("<"))return;const l=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const h=this.tsTryParseAndCatch(()=>{const S=this.startNodeAt(e,i);return S.typeParameters=this.tsParseTypeParameters(),super.parseFunctionParams(S),S.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(a.arrow),S});return this.state.maybeInArrowParameters=l,h?this.parseArrowExpression(h,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))))),e.params.length===0&&this.raise(e.start,N.EmptyTypeArguments),this.state.exprAllowed=!1,this.expectRelational(">"),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){if(this.match(a.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()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(e,i){const l=this.state.start,h=this.state.startLoc;let S,w=!1;e!==void 0&&(S=this.parseAccessModifier(),w=!!this.tsParseModifier(["readonly"]),e===!1&&(S||w)&&this.raise(l,N.UnexpectedParameterModifier));const M=this.parseMaybeDefault();this.parseAssignableListItemTypes(M);const Y=this.parseMaybeDefault(M.start,M.loc.start,M);if(S||w){const q=this.startNodeAt(l,h);return i.length&&(q.decorators=i),S&&(q.accessibility=S),w&&(q.readonly=w),Y.type!=="Identifier"&&Y.type!=="AssignmentPattern"&&this.raise(q.start,N.UnsupportedParameterPropertyKind),q.parameter=Y,this.finishNode(q,"TSParameterProperty")}return i.length&&(M.decorators=i),Y}parseFunctionBodyAndFinish(e,i,l=!1){this.match(a.colon)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(a.colon));const h=i==="FunctionDeclaration"?"TSDeclareFunction":i==="ClassMethod"?"TSDeclareMethod":void 0;if(h&&!this.match(a.braceL)&&this.isLineTerminator()){this.finishNode(e,h);return}if(h==="TSDeclareFunction"&&this.state.isDeclareContext&&(this.raise(e.start,N.DeclareFunctionHasImplementation),e.declare)){super.parseFunctionBodyAndFinish(e,h,l);return}super.parseFunctionBodyAndFinish(e,i,l)}registerFunctionStatementId(e){!e.body&&e.id?this.checkLVal(e.id,"function name",Pt):super.registerFunctionStatementId(...arguments)}tsCheckForInvalidTypeCasts(e){e.forEach(i=>{(i==null?void 0:i.type)==="TSTypeCastExpression"&&this.raise(i.typeAnnotation.start,N.UnexpectedTypeAnnotation)})}toReferencedList(e,i){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(...e){const i=super.parseArrayLike(...e);return i.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(e,i,l,h,S){if(!this.hasPrecedingLineBreak()&&this.match(a.bang)){this.state.exprAllowed=!1,this.next();const w=this.startNodeAt(i,l);return w.expression=e,this.finishNode(w,"TSNonNullExpression")}if(this.isRelational("<")){const w=this.tsTryParseAndCatch(()=>{if(!h&&this.atPossibleAsyncArrow(e)){const q=this.tsTryParseGenericAsyncArrowFunction(i,l);if(q)return q}const M=this.startNodeAt(i,l);M.callee=e;const Y=this.tsParseTypeArguments();if(Y){if(!h&&this.eat(a.parenL))return M.arguments=this.parseCallExpressionArguments(a.parenR,!1),this.tsCheckForInvalidTypeCasts(M.arguments),M.typeParameters=Y,this.finishCallExpression(M,S.optionalChainMember);if(this.match(a.backQuote)){const q=this.parseTaggedTemplateExpression(e,i,l,S);return q.typeParameters=Y,q}}this.unexpected()});if(w)return w}return super.parseSubscript(e,i,l,h,S)}parseNewArguments(e){if(this.isRelational("<")){const i=this.tsTryParseAndCatch(()=>{const l=this.tsParseTypeArguments();return this.match(a.parenL)||this.unexpected(),l});i&&(e.typeParameters=i)}super.parseNewArguments(e)}parseExprOp(e,i,l,h){if(y(a._in.binop)>h&&!this.hasPrecedingLineBreak()&&this.isContextual("as")){const S=this.startNodeAt(i,l);S.expression=e;const w=this.tsTryNextParseConstantContext();return w?S.typeAnnotation=w:S.typeAnnotation=this.tsNextThenParseType(),this.finishNode(S,"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(S,i,l,h)}return super.parseExprOp(e,i,l,h)}checkReservedWord(e,i,l,h){}checkDuplicateExports(){}parseImport(e){if(this.match(a.name)||this.match(a.star)||this.match(a.braceL)){const l=this.lookahead();if(this.match(a.name)&&l.type===a.eq)return this.tsParseImportEqualsDeclaration(e);this.isContextual("type")&&l.type!==a.comma&&!(l.type===a.name&&l.value==="from")&&(e.importKind="type",this.next())}e.importKind||(e.importKind="value");const i=super.parseImport(e);return i.importKind==="type"&&i.specifiers.length>1&&i.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(i.start,"A type-only import can specify a default import or named bindings, but not both."),i}parseExport(e){if(this.match(a._import))return this.expect(a._import),this.tsParseImportEqualsDeclaration(e,!0);if(this.eat(a.eq)){const i=e;return i.expression=this.parseExpression(),this.semicolon(),this.finishNode(i,"TSExportAssignment")}else if(this.eatContextual("as")){const i=e;return this.expectContextual("namespace"),i.id=this.parseIdentifier(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration")}else return this.isContextual("type")&&this.lookahead().type===a.braceL?(this.next(),e.exportKind="type"):e.exportKind="value",super.parseExport(e)}isAbstractClass(){return this.isContextual("abstract")&&this.lookahead().type===a._class}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),this.parseClass(e,!0,!0),e.abstract=!0,e}if(this.state.value==="interface"){const e=this.tsParseDeclaration(this.startNode(),this.state.value,!0);if(e)return e}return super.parseExportDefaultExpression()}parseStatementContent(e,i){if(this.state.type===a._const){const l=this.lookahead();if(l.type===a.name&&l.value==="enum"){const h=this.startNode();return this.expect(a._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(h,!0)}}return super.parseStatementContent(e,i)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parseClassMember(e,i,l){this.tsParseModifiers(i,["declare"]);const h=this.parseAccessModifier();h&&(i.accessibility=h),this.tsParseModifiers(i,["declare"]);const S=()=>{super.parseClassMember(e,i,l)};i.declare?this.tsInDeclareContext(S):S()}parseClassMemberWithIsStatic(e,i,l,h){this.tsParseModifiers(i,["abstract","readonly","declare"]);const S=this.tsTryParseIndexSignature(i);if(S){e.body.push(S),i.abstract&&this.raise(i.start,N.IndexSignatureHasAbstract),h&&this.raise(i.start,N.IndexSignatureHasStatic),i.accessibility&&this.raise(i.start,N.IndexSignatureHasAccessibility,i.accessibility),i.declare&&this.raise(i.start,N.IndexSignatureHasDeclare);return}super.parseClassMemberWithIsStatic(e,i,l,h)}parsePostMemberNameModifiers(e){const i=this.eat(a.question);i&&(e.optional=!0),e.readonly&&this.match(a.parenL)&&this.raise(e.start,N.ClassMethodHasReadonly),e.declare&&this.match(a.parenL)&&this.raise(e.start,N.ClassMethodHasDeclare)}parseExpressionStatement(e,i){const l=i.type==="Identifier"?this.tsParseExpressionStatement(e,i):void 0;return l||super.parseExpressionStatement(e,i)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(e,i,l,h){if(!h||!this.match(a.question))return super.parseConditional(e,i,l,h);const S=this.tryParse(()=>super.parseConditional(e,i,l));return S.node?(S.error&&(this.state=S.failState),S.node):(h.start=S.error.pos||this.state.start,e)}parseParenItem(e,i,l){if(e=super.parseParenItem(e,i,l),this.eat(a.question)&&(e.optional=!0,this.resetEndLocation(e)),this.match(a.colon)){const h=this.startNodeAt(i,l);return h.expression=e,h.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(h,"TSTypeCastExpression")}return e}parseExportDeclaration(e){const i=this.state.start,l=this.state.startLoc,h=this.eatContextual("declare");let S;return this.match(a.name)&&(S=this.tsTryParseExportDeclaration()),S||(S=super.parseExportDeclaration(e)),S&&(S.type==="TSInterfaceDeclaration"||S.type==="TSTypeAliasDeclaration"||h)&&(e.exportKind="type"),S&&h&&(this.resetStartLocation(S,i,l),S.declare=!0),S}parseClassId(e,i,l){if((!i||l)&&this.isContextual("implements"))return;super.parseClassId(e,i,l,e.declare?Pt:ve);const h=this.tsTryParseTypeParameters();h&&(e.typeParameters=h)}parseClassPropertyAnnotation(e){!e.optional&&this.eat(a.bang)&&(e.definite=!0);const i=this.tsTryParseTypeAnnotation();i&&(e.typeAnnotation=i)}parseClassProperty(e){return this.parseClassPropertyAnnotation(e),this.state.isDeclareContext&&this.match(a.eq)&&this.raise(this.state.start,N.DeclareClassFieldHasInitializer),super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(e.start,N.PrivateElementHasAbstract),e.accessibility&&this.raise(e.start,N.PrivateElementHasAccessibility,e.accessibility),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}pushClassMethod(e,i,l,h,S,w){const M=this.tsTryParseTypeParameters();M&&S&&this.raise(M.start,N.ConstructorHasTypeParameters),M&&(i.typeParameters=M),super.pushClassMethod(e,i,l,h,S,w)}pushClassPrivateMethod(e,i,l,h){const S=this.tsTryParseTypeParameters();S&&(i.typeParameters=S),super.pushClassPrivateMethod(e,i,l,h)}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&this.isRelational("<")&&(e.superTypeParameters=this.tsParseTypeArguments()),this.eatContextual("implements")&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,...i){const l=this.tsTryParseTypeParameters();l&&(e.typeParameters=l),super.parseObjPropValue(e,...i)}parseFunctionParams(e,i){const l=this.tsTryParseTypeParameters();l&&(e.typeParameters=l),super.parseFunctionParams(e,i)}parseVarId(e,i){super.parseVarId(e,i),e.id.type==="Identifier"&&this.eat(a.bang)&&(e.definite=!0);const l=this.tsTryParseTypeAnnotation();l&&(e.id.typeAnnotation=l,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,i){return this.match(a.colon)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,i)}parseMaybeAssign(...e){var i,l,h,S,w,M,Y;let q,ne,Ee;if(this.match(a.jsxTagStart)){if(q=this.state.clone(),ne=this.tryParse(()=>super.parseMaybeAssign(...e),q),!ne.error)return ne.node;const{context:Ce}=this.state;Ce[Ce.length-1]===re.j_oTag?Ce.length-=2:Ce[Ce.length-1]===re.j_expr&&(Ce.length-=1)}if(!((i=ne)==null?void 0:i.error)&&!this.isRelational("<"))return super.parseMaybeAssign(...e);let be;q=q||this.state.clone();const Se=this.tryParse(Ce=>{var We;be=this.tsParseTypeParameters();const Fe=super.parseMaybeAssign(...e);return(Fe.type!=="ArrowFunctionExpression"||Fe.extra&&Fe.extra.parenthesized)&&Ce(),((We=be)==null?void 0:We.params.length)!==0&&this.resetStartLocationFromNode(Fe,be),Fe.typeParameters=be,Fe},q);if(!Se.error&&!Se.aborted)return Se.node;if(!ne&&(I(!this.hasPlugin("jsx")),Ee=this.tryParse(()=>super.parseMaybeAssign(...e),q),!Ee.error))return Ee.node;if((l=ne)==null?void 0:l.node)return this.state=ne.failState,ne.node;if(Se.node)return this.state=Se.failState,Se.node;if((h=Ee)==null?void 0:h.node)return this.state=Ee.failState,Ee.node;throw((S=ne)==null?void 0:S.thrown)?ne.error:Se.thrown?Se.error:((w=Ee)==null?void 0:w.thrown)?Ee.error:((M=ne)==null?void 0:M.error)||Se.error||((Y=Ee)==null?void 0:Y.error)}parseMaybeUnary(e){return!this.hasPlugin("jsx")&&this.isRelational("<")?this.tsParseTypeAssertion():super.parseMaybeUnary(e)}parseArrow(e){if(this.match(a.colon)){const i=this.tryParse(l=>{const h=this.tsParseTypeOrTypePredicateAnnotation(a.colon);return(this.canInsertSemicolon()||!this.match(a.arrow))&&l(),h});if(i.aborted)return;i.thrown||(i.error&&(this.state=i.failState),e.returnType=i.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e){this.eat(a.question)&&(e.type!=="Identifier"&&!this.state.isDeclareContext&&!this.state.inType&&this.raise(e.start,N.PatternIsOptional),e.optional=!0);const i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.resetEndLocation(e),e}toAssignable(e,i=!1){switch(e.type){case"TSTypeCastExpression":return super.toAssignable(this.typeCastToParameter(e),i);case"TSParameterProperty":return super.toAssignable(e,i);case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return e.expression=this.toAssignable(e.expression,i),e;default:return super.toAssignable(e,i)}}checkLVal(e,i,...l){switch(e.type){case"TSTypeCastExpression":return;case"TSParameterProperty":this.checkLVal(e.parameter,"parameter property",...l);return;case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":this.checkLVal(e.expression,i,...l);return;default:super.checkLVal(e,i,...l);return}}parseBindingAtom(){switch(this.state.type){case a._this:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseMaybeDecoratorArguments(e){if(this.isRelational("<")){const i=this.tsParseTypeArguments();if(this.match(a.parenL)){const l=super.parseMaybeDecoratorArguments(e);return l.typeParameters=i,l}this.unexpected(this.state.start,a.parenL)}return super.parseMaybeDecoratorArguments(e)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(a.bang)||this.match(a.colon)||super.isClassProperty()}parseMaybeDefault(...e){const i=super.parseMaybeDefault(...e);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(i.typeAnnotation.start,N.TypeAnnotationAfterAssign),i}getTokenFromCode(e){return this.state.inType&&(e===62||e===60)?this.finishOp(a.relational,1):super.getTokenFromCode(e)}reScan_lt_gt(){if(this.match(a.relational)){const e=this.input.charCodeAt(this.state.start);(e===60||e===62)&&(this.state.pos-=1,this.readToken_lt_gt(e))}}toAssignableList(e){for(let i=0;i<e.length;i++){const l=e[i];if(!l)continue;switch(l.type){case"TSTypeCastExpression":e[i]=this.typeCastToParameter(l);break;case"TSAsExpression":case"TSTypeAssertion":this.state.maybeInArrowParameters?this.raise(l.start,N.UnexpectedTypeCastInParameter):e[i]=this.typeCastToParameter(l);break}}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(a.colon)||super.shouldParseArrow()}shouldParseAsyncArrow(){return this.match(a.colon)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.isRelational("<")){const i=this.tsTryParseAndCatch(()=>this.tsParseTypeArguments());i&&(e.typeParameters=i)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const i=super.getGetterSetterExpectedParamCount(e),l=this.getObjectOrClassMethodParams(e),h=l[0],S=h&&h.type==="Identifier"&&h.name==="this";return S?i+1:i}parseCatchClauseParam(){const e=super.parseCatchClauseParam(),i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i,this.resetEndLocation(e)),e}tsInDeclareContext(e){const i=this.state.isDeclareContext;this.state.isDeclareContext=!0;try{return e()}finally{this.state.isDeclareContext=i}}};a.placeholder=new c("%%",{startsExpr:!0});var G=U=>class extends U{parsePlaceholder(e){if(this.match(a.placeholder)){const i=this.startNode();return this.next(),this.assertNoSpace("Unexpected space in placeholder."),i.name=super.parseIdentifier(!0),this.assertNoSpace("Unexpected space in placeholder."),this.expect(a.placeholder),this.finishPlaceholder(i,e)}}finishPlaceholder(e,i){const l=!!(e.expectedNode&&e.type==="Placeholder");return e.expectedNode=i,l?e:this.finishNode(e,"Placeholder")}getTokenFromCode(e){return e===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(a.placeholder,2):super.getTokenFromCode(...arguments)}parseExprAtom(){return this.parsePlaceholder("Expression")||super.parseExprAtom(...arguments)}parseIdentifier(){return this.parsePlaceholder("Identifier")||super.parseIdentifier(...arguments)}checkReservedWord(e){e!==void 0&&super.checkReservedWord(...arguments)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom(...arguments)}checkLVal(e){e.type!=="Placeholder"&&super.checkLVal(...arguments)}toAssignable(e){return e&&e.type==="Placeholder"&&e.expectedNode==="Expression"?(e.expectedNode="Pattern",e):super.toAssignable(...arguments)}verifyBreakContinue(e){if(e.label&&e.label.type==="Placeholder")return;super.verifyBreakContinue(...arguments)}parseExpressionStatement(e,i){if(i.type!=="Placeholder"||i.extra&&i.extra.parenthesized)return super.parseExpressionStatement(...arguments);if(this.match(a.colon)){const l=e;return l.label=this.finishPlaceholder(i,"Identifier"),this.next(),l.body=this.parseStatement("label"),this.finishNode(l,"LabeledStatement")}return this.semicolon(),e.name=i.name,this.finishPlaceholder(e,"Statement")}parseBlock(){return this.parsePlaceholder("BlockStatement")||super.parseBlock(...arguments)}parseFunctionId(){return this.parsePlaceholder("Identifier")||super.parseFunctionId(...arguments)}parseClass(e,i,l){const h=i?"ClassDeclaration":"ClassExpression";this.next(),this.takeDecorators(e);const S=this.state.strict,w=this.parsePlaceholder("Identifier");if(w)if(this.match(a._extends)||this.match(a.placeholder)||this.match(a.braceL))e.id=w;else{if(l||!i)return e.id=null,e.body=this.finishPlaceholder(w,"ClassBody"),this.finishNode(e,h);this.unexpected(null,"A class name is required")}else this.parseClassId(e,i,l);return this.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||this.parseClassBody(!!e.superClass,S),this.finishNode(e,h)}parseExport(e){const i=this.parsePlaceholder("Identifier");if(!i)return super.parseExport(...arguments);if(!this.isContextual("from")&&!this.match(a.comma))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(i,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const l=this.startNode();return l.exported=i,e.specifiers=[this.finishNode(l,"ExportDefaultSpecifier")],super.parseExport(e)}isExportDefaultSpecifier(){if(this.match(a._default)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(a.placeholder.label,this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e){return e.specifiers&&e.specifiers.length>0?!0:super.maybeParseExportDefaultSpecifier(...arguments)}checkExport(e){const{specifiers:i}=e;(i==null?void 0:i.length)&&(e.specifiers=i.filter(l=>l.exported.type==="Placeholder")),super.checkExport(e),e.specifiers=i}parseImport(e){const i=this.parsePlaceholder("Identifier");if(!i)return super.parseImport(...arguments);if(e.specifiers=[],!this.isContextual("from")&&!this.match(a.comma))return e.source=this.finishPlaceholder(i,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const l=this.startNodeAtNode(i);if(l.local=i,this.finishNode(l,"ImportDefaultSpecifier"),e.specifiers.push(l),this.eat(a.comma)){const h=this.maybeParseStarImportSpecifier(e);h||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)}},ue=U=>class extends U{parseV8Intrinsic(){if(this.match(a.modulo)){const e=this.state.start,i=this.startNode();if(this.eat(a.modulo),this.match(a.name)){const l=this.parseIdentifierName(this.state.start),h=this.createIdentifier(i,l);if(h.type="V8IntrinsicIdentifier",this.match(a.parenL))return h}this.unexpected(e)}}parseExprAtom(){return this.parseV8Intrinsic()||super.parseExprAtom(...arguments)}};function fe(U,e){return U.some(i=>Array.isArray(i)?i[0]===e:i===e)}function xe(U,e,i){const l=U.find(h=>Array.isArray(h)?h[0]===e:h===e);return l&&Array.isArray(l)?l[1][i]:null}const De=["minimal","smart","fsharp"],Xe=["hash","bar"];function bt(U){if(fe(U,"decorators")){if(fe(U,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const e=xe(U,"decorators","decoratorsBeforeExport");if(e==null)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(typeof e!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean.")}if(fe(U,"flow")&&fe(U,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(fe(U,"placeholders")&&fe(U,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(fe(U,"pipelineOperator")&&!De.includes(xe(U,"pipelineOperator","proposal")))throw new Error("'pipelineOperator' requires 'proposal' option whose value should be one of: "+De.map(e=>`'${e}'`).join(", "));if(fe(U,"moduleAttributes")){if(fe(U,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");const e=xe(U,"moduleAttributes","version");if(e!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(fe(U,"recordAndTuple")&&!Xe.includes(xe(U,"recordAndTuple","syntaxType")))throw new Error("'recordAndTuple' requires 'syntaxType' option whose value should be one of: "+Xe.map(e=>`'${e}'`).join(", "))}const Tt={estree:z,jsx:Xt,flow:tr,typescript:W,v8intrinsic:ue,placeholders:G},Ot=Object.keys(Tt),gt={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};function vt(U){const e={};for(let i=0,l=Object.keys(gt);i<l.length;i++){const h=l[i];e[h]=U&&U[h]!=null?U[h]:gt[h]}return e}class ar{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=a.eof,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.lastTokEnd=0,this.context=[re.braceStatement],this.exprAllowed=!0,this.containsEsc=!1,this.strictErrors=new Map,this.exportedIdentifiers=[],this.tokensLength=0}init(e){this.strict=e.strictMode===!1?!1:e.sourceType==="module",this.curLine=e.startLine,this.startLoc=this.endLoc=this.curPosition()}curPosition(){return new P(this.curLine,this.pos-this.lineStart)}clone(e){const i=new ar,l=Object.keys(this);for(let h=0,S=l.length;h<S;h++){const w=l[h];let M=this[w];!e&&Array.isArray(M)&&(M=M.slice()),i[w]=M}return i}}var Sr=function(e){return e>=48&&e<=57};const Er=new Set(["g","m","s","i","y","u"]),pr={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},dt={};dt.bin=[48,49],dt.oct=[...dt.bin,50,51,52,53,54,55],dt.dec=[...dt.oct,56,57],dt.hex=[...dt.dec,65,66,67,68,69,70,97,98,99,100,101,102];class vr{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new A(e.startLoc,e.endLoc)}}class Pr extends oe{constructor(e,i){super();this.isLookahead=void 0,this.tokens=[],this.state=new ar,this.state.init(e),this.input=i,this.length=i.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 vr(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):!1}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 i=this.state;return this.state=e,i}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){B.lastIndex=e;const i=B.exec(this.input);return e+i[0].length}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach((i,l)=>this.raise(l,i)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){const e=this.curContext();if((e==null?void 0:e.preserveSpace)||this.skipSpace(),this.state.start=this.state.pos,this.state.startLoc=this.state.curPosition(),this.state.pos>=this.length){this.finishToken(a.eof);return}const i=e==null?void 0:e.override;i?i(this):this.getTokenFromCode(this.input.codePointAt(this.state.pos))}pushComment(e,i,l,h,S,w){const M={type:e?"CommentBlock":"CommentLine",value:i,start:l,end:h,loc:new A(S,w)};this.options.tokens&&this.pushToken(M),this.state.comments.push(M),this.addComment(M)}skipBlockComment(){const e=this.state.curPosition(),i=this.state.pos,l=this.input.indexOf("*/",this.state.pos+2);if(l===-1)throw this.raise(i,D.UnterminatedComment);this.state.pos=l+2,_.lastIndex=i;let h;for(;(h=_.exec(this.input))&&h.index<this.state.pos;)++this.state.curLine,this.state.lineStart=h.index+h[0].length;if(this.isLookahead)return;this.pushComment(!0,this.input.slice(i+2,l),i,this.state.pos,e,this.state.curPosition())}skipLineComment(e){const i=this.state.pos,l=this.state.curPosition();let h=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!L(h)&&++this.state.pos<this.length;)h=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;this.pushComment(!1,this.input.slice(i+e,this.state.pos),i,this.state.pos,l,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:this.input.charCodeAt(this.state.pos+1)===10&&++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(k(e))++this.state.pos;else break e}}}finishToken(e,i){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const l=this.state.type;this.state.type=e,this.state.value=i,this.isLookahead||this.updateContext(l)}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;const e=this.state.pos+1,i=this.input.charCodeAt(e);if(i>=48&&i<=57)throw this.raise(this.state.pos,D.UnexpectedDigitAfterHash);if(i===123||i===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")!=="hash")throw this.raise(this.state.pos,i===123?D.RecordExpressionHashIncorrectStartSyntaxType:D.TupleExpressionHashIncorrectStartSyntaxType);i===123?this.finishToken(a.braceHashL):this.finishToken(a.bracketHashL),this.state.pos+=2}else this.finishOp(a.hash,1)}readToken_dot(){const e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(a.ellipsis)):(++this.state.pos,this.finishToken(a.dot))}readToken_slash(){if(this.state.exprAllowed&&!this.state.inType){++this.state.pos,this.readRegexp();return}const e=this.input.charCodeAt(this.state.pos+1);e===61?this.finishOp(a.assign,2):this.finishOp(a.slash,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;const i=this.state.pos;for(this.state.pos+=1;!L(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);const l=this.input.slice(i+2,this.state.pos);return this.finishToken(a.interpreterDirective,l),!0}readToken_mult_modulo(e){let i=e===42?a.star:a.modulo,l=1,h=this.input.charCodeAt(this.state.pos+1);const S=this.state.exprAllowed;e===42&&h===42&&(l++,h=this.input.charCodeAt(this.state.pos+2),i=a.exponent),h===61&&!S&&(l++,i=a.assign),this.finishOp(i,l)}readToken_pipe_amp(e){const i=this.input.charCodeAt(this.state.pos+1);if(i===e){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(a.assign,3):this.finishOp(e===124?a.logicalOR:a.logicalAND,2);return}if(e===124){if(i===62){this.finishOp(a.pipeline,2);return}if(this.hasPlugin("recordAndTuple")&&i===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(this.state.pos,D.RecordExpressionBarIncorrectEndSyntaxType);this.finishOp(a.braceBarR,2);return}if(this.hasPlugin("recordAndTuple")&&i===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(this.state.pos,D.TupleExpressionBarIncorrectEndSyntaxType);this.finishOp(a.bracketBarR,2);return}}if(i===61){this.finishOp(a.assign,2);return}this.finishOp(e===124?a.bitwiseOR:a.bitwiseAND,1)}readToken_caret(){const e=this.input.charCodeAt(this.state.pos+1);e===61?this.finishOp(a.assign,2):this.finishOp(a.bitwiseXOR,1)}readToken_plus_min(e){const i=this.input.charCodeAt(this.state.pos+1);if(i===e){if(i===45&&!this.inModule&&this.input.charCodeAt(this.state.pos+2)===62&&(this.state.lastTokEnd===0||this.hasPrecedingLineBreak())){this.skipLineComment(3),this.skipSpace(),this.nextToken();return}this.finishOp(a.incDec,2);return}i===61?this.finishOp(a.assign,2):this.finishOp(a.plusMin,1)}readToken_lt_gt(e){const i=this.input.charCodeAt(this.state.pos+1);let l=1;if(i===e){if(l=e===62&&this.input.charCodeAt(this.state.pos+2)===62?3:2,this.input.charCodeAt(this.state.pos+l)===61){this.finishOp(a.assign,l+1);return}this.finishOp(a.bitShift,l);return}if(i===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.state.pos+2)===45&&this.input.charCodeAt(this.state.pos+3)===45){this.skipLineComment(4),this.skipSpace(),this.nextToken();return}i===61&&(l=2),this.finishOp(a.relational,l)}readToken_eq_excl(e){const i=this.input.charCodeAt(this.state.pos+1);if(i===61){this.finishOp(a.equality,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&i===62){this.state.pos+=2,this.finishToken(a.arrow);return}this.finishOp(e===61?a.eq:a.bang,1)}readToken_question(){const e=this.input.charCodeAt(this.state.pos+1),i=this.input.charCodeAt(this.state.pos+2);e===63?i===61?this.finishOp(a.assign,3):this.finishOp(a.nullishCoalescing,2):e===46&&!(i>=48&&i<=57)?(this.state.pos+=2,this.finishToken(a.questionDot)):(++this.state.pos,this.finishToken(a.question))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(a.parenL);return;case 41:++this.state.pos,this.finishToken(a.parenR);return;case 59:++this.state.pos,this.finishToken(a.semi);return;case 44:++this.state.pos,this.finishToken(a.comma);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(this.state.pos,D.TupleExpressionBarIncorrectStartSyntaxType);this.finishToken(a.bracketBarL),this.state.pos+=2}else++this.state.pos,this.finishToken(a.bracketL);return;case 93:++this.state.pos,this.finishToken(a.bracketR);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(this.state.pos,D.RecordExpressionBarIncorrectStartSyntaxType);this.finishToken(a.braceBarL),this.state.pos+=2}else++this.state.pos,this.finishToken(a.braceL);return;case 125:++this.state.pos,this.finishToken(a.braceR);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(a.doubleColon,2):(++this.state.pos,this.finishToken(a.colon));return;case 63:this.readToken_question();return;case 96:++this.state.pos,this.finishToken(a.backQuote);return;case 48:{const i=this.input.charCodeAt(this.state.pos+1);if(i===120||i===88){this.readRadixNumber(16);return}if(i===111||i===79){this.readRadixNumber(8);return}if(i===98||i===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:case 62:this.readToken_lt_gt(e);return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(a.tilde,1);return;case 64:++this.state.pos,this.finishToken(a.at);return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(X(e)){this.readWord();return}}throw this.raise(this.state.pos,D.InvalidOrUnexpectedToken,String.fromCodePoint(e))}finishOp(e,i){const l=this.input.slice(this.state.pos,this.state.pos+i);this.state.pos+=i,this.finishToken(e,l)}readRegexp(){const e=this.state.pos;let i,l;for(;;){if(this.state.pos>=this.length)throw this.raise(e,D.UnterminatedRegExp);const w=this.input.charAt(this.state.pos);if(O.test(w))throw this.raise(e,D.UnterminatedRegExp);if(i)i=!1;else{if(w==="[")l=!0;else if(w==="]"&&l)l=!1;else if(w==="/"&&!l)break;i=w==="\\"}++this.state.pos}const h=this.input.slice(e,this.state.pos);++this.state.pos;let S="";for(;this.state.pos<this.length;){const w=this.input[this.state.pos],M=this.input.codePointAt(this.state.pos);if(Er.has(w))S.indexOf(w)>-1&&this.raise(this.state.pos+1,D.DuplicateRegExpFlags);else if(J(M)||M===92)this.raise(this.state.pos+1,D.MalformedRegExpFlags);else break;++this.state.pos,S+=w}this.finishToken(a.regexp,{pattern:h,flags:S})}readInt(e,i,l,h=!0){const S=this.state.pos,w=e===16?pr.hex:pr.decBinOct,M=e===16?dt.hex:e===10?dt.dec:e===8?dt.oct:dt.bin;let Y=!1,q=0;for(let ne=0,Ee=i??Infinity;ne<Ee;++ne){const be=this.input.charCodeAt(this.state.pos);let Se;if(be===95){const Ce=this.input.charCodeAt(this.state.pos-1),We=this.input.charCodeAt(this.state.pos+1);M.indexOf(We)===-1?this.raise(this.state.pos,D.UnexpectedNumericSeparator):(w.indexOf(Ce)>-1||w.indexOf(We)>-1||Number.isNaN(We))&&this.raise(this.state.pos,D.UnexpectedNumericSeparator),h||this.raise(this.state.pos,D.NumericSeparatorInEscapeSequence),++this.state.pos;continue}if(be>=97?Se=be-97+10:be>=65?Se=be-65+10:Sr(be)?Se=be-48:Se=Infinity,Se>=e)if(this.options.errorRecovery&&Se<=9)Se=0,this.raise(this.state.start+ne+2,D.InvalidDigit,e);else if(l)Se=0,Y=!0;else break;++this.state.pos,q=q*e+Se}return this.state.pos===S||i!=null&&this.state.pos-S!==i||Y?null:q}readRadixNumber(e){const i=this.state.pos;let l=!1;this.state.pos+=2;const h=this.readInt(e);h==null&&this.raise(this.state.start+2,D.InvalidDigit,e);const S=this.input.charCodeAt(this.state.pos);if(S===110)++this.state.pos,l=!0;else if(S===109)throw this.raise(i,D.InvalidDecimal);if(X(this.input.codePointAt(this.state.pos)))throw this.raise(this.state.pos,D.NumberIdentifier);if(l){const w=this.input.slice(i,this.state.pos).replace(/[_n]/g,"");this.finishToken(a.bigint,w);return}this.finishToken(a.num,h)}readNumber(e){const i=this.state.pos;let l=!1,h=!1,S=!1,w=!1,M=!1;!e&&this.readInt(10)===null&&this.raise(i,D.InvalidNumber);const Y=this.state.pos-i>=2&&this.input.charCodeAt(i)===48;if(Y){const be=this.input.slice(i,this.state.pos);if(this.recordStrictModeErrors(i,D.StrictOctalLiteral),!this.state.strict){const Se=be.indexOf("_");Se>0&&this.raise(Se+i,D.ZeroDigitNumericSeparator)}M=Y&&!/[89]/.test(be)}let q=this.input.charCodeAt(this.state.pos);if(q===46&&!M&&(++this.state.pos,this.readInt(10),l=!0,q=this.input.charCodeAt(this.state.pos)),(q===69||q===101)&&!M&&(q=this.input.charCodeAt(++this.state.pos),(q===43||q===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(i,D.InvalidOrMissingExponent),l=!0,w=!0,q=this.input.charCodeAt(this.state.pos)),q===110&&((l||Y)&&this.raise(i,D.InvalidBigIntLiteral),++this.state.pos,h=!0),q===109&&(this.expectPlugin("decimal",this.state.pos),(w||Y)&&this.raise(i,D.InvalidDecimal),++this.state.pos,S=!0),X(this.input.codePointAt(this.state.pos)))throw this.raise(this.state.pos,D.NumberIdentifier);const ne=this.input.slice(i,this.state.pos).replace(/[_mn]/g,"");if(h){this.finishToken(a.bigint,ne);return}if(S){this.finishToken(a.decimal,ne);return}const Ee=M?parseInt(ne,8):parseFloat(ne);this.finishToken(a.num,Ee)}readCodePoint(e){const i=this.input.charCodeAt(this.state.pos);let l;if(i===123){const h=++this.state.pos;if(l=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,!0,e),++this.state.pos,l!==null&&l>1114111)if(e)this.raise(h,D.InvalidCodePoint);else return null}else l=this.readHexChar(4,!1,e);return l}readString(e){let i="",l=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,D.UnterminatedString);const h=this.input.charCodeAt(this.state.pos);if(h===e)break;if(h===92)i+=this.input.slice(l,this.state.pos),i+=this.readEscapedChar(!1),l=this.state.pos;else if(h===8232||h===8233)++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;else{if(L(h))throw this.raise(this.state.start,D.UnterminatedString);++this.state.pos}}i+=this.input.slice(l,this.state.pos++),this.finishToken(a.string,i)}readTmplToken(){let e="",i=this.state.pos,l=!1;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,D.UnterminatedTemplate);const h=this.input.charCodeAt(this.state.pos);if(h===96||h===36&&this.input.charCodeAt(this.state.pos+1)===123){if(this.state.pos===this.state.start&&this.match(a.template))if(h===36){this.state.pos+=2,this.finishToken(a.dollarBraceL);return}else{++this.state.pos,this.finishToken(a.backQuote);return}e+=this.input.slice(i,this.state.pos),this.finishToken(a.template,l?null:e);return}if(h===92){e+=this.input.slice(i,this.state.pos);const S=this.readEscapedChar(!0);S===null?l=!0:e+=S,i=this.state.pos}else if(L(h)){e+=this.input.slice(i,this.state.pos),++this.state.pos;switch(h){case 13:this.input.charCodeAt(this.state.pos)===10&&++this.state.pos;case 10:e+=`
|
|
5
|
+
`;break;default:e+=String.fromCharCode(h);break}++this.state.curLine,this.state.lineStart=this.state.pos,i=this.state.pos}else++this.state.pos}}recordStrictModeErrors(e,i){this.state.strict&&!this.state.strictErrors.has(e)?this.raise(e,i):this.state.strictErrors.set(e,i)}readEscapedChar(e){const i=!e,l=this.input.charCodeAt(++this.state.pos);++this.state.pos;switch(l){case 110:return`
|
|
6
|
+
`;case 114:return"\r";case 120:{const h=this.readHexChar(2,!1,i);return h===null?null:String.fromCharCode(h)}case 117:{const h=this.readCodePoint(i);return h===null?null:String.fromCodePoint(h)}case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.state.pos)===10&&++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,D.StrictNumericEscape);default:if(l>=48&&l<=55){const h=this.state.pos-1,S=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/);let w=S[0],M=parseInt(w,8);M>255&&(w=w.slice(0,-1),M=parseInt(w,8)),this.state.pos+=w.length-1;const Y=this.input.charCodeAt(this.state.pos);if(w!=="0"||Y===56||Y===57){if(e)return null;this.recordStrictModeErrors(h,D.StrictNumericEscape)}return String.fromCharCode(M)}return String.fromCharCode(l)}}readHexChar(e,i,l){const h=this.state.pos,S=this.readInt(16,e,i,!1);return S===null&&(l?this.raise(h,D.InvalidEscapeSequence):this.state.pos=h-1),S}readWord1(){let e="";this.state.containsEsc=!1;const i=this.state.pos;let l=this.state.pos;for(;this.state.pos<this.length;){const h=this.input.codePointAt(this.state.pos);if(J(h))this.state.pos+=h<=65535?1:2;else if(this.state.isIterator&&h===64)++this.state.pos;else if(h===92){this.state.containsEsc=!0,e+=this.input.slice(l,this.state.pos);const S=this.state.pos,w=this.state.pos===i?X:J;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(this.state.pos,D.MissingUnicodeEscape);continue}++this.state.pos;const M=this.readCodePoint(!0);M!==null&&(w(M)||this.raise(S,D.EscapedCharNotAnIdentifier),e+=String.fromCodePoint(M)),l=this.state.pos}else break}return e+this.input.slice(l,this.state.pos)}isIterator(e){return e==="@@iterator"||e==="@@asyncIterator"}readWord(){const e=this.readWord1(),i=d.get(e)||a.name;this.state.isIterator&&(!this.isIterator(e)||!this.state.inType)&&this.raise(this.state.pos,D.InvalidIdentifier,e),this.finishToken(i,e)}checkKeywordEscapes(){const e=this.state.type.keyword;e&&this.state.containsEsc&&this.raise(this.state.start,D.InvalidEscapedReservedWord,e)}braceIsBlock(e){const i=this.curContext();return i===re.functionExpression||i===re.functionStatement?!0:e===a.colon&&(i===re.braceStatement||i===re.braceExpression)?!i.isExpr:e===a._return||e===a.name&&this.state.exprAllowed?this.hasPrecedingLineBreak():e===a._else||e===a.semi||e===a.eof||e===a.parenR||e===a.arrow?!0:e===a.braceL?i===re.braceStatement:e===a._var||e===a._const||e===a.name?!1:e===a.relational?!0:!this.state.exprAllowed}updateContext(e){const i=this.state.type;let l;i.keyword&&(e===a.dot||e===a.questionDot)?this.state.exprAllowed=!1:(l=i.updateContext)?l.call(this,e):this.state.exprAllowed=i.beforeExpr}}class Ar extends Pr{addExtra(e,i,l){if(!e)return;const h=e.extra=e.extra||{};h[i]=l}isRelational(e){return this.match(a.relational)&&this.state.value===e}expectRelational(e){this.isRelational(e)?this.next():this.unexpected(null,a.relational)}isContextual(e){return this.match(a.name)&&this.state.value===e&&!this.state.containsEsc}isUnparsedContextual(e,i){const l=e+i.length;return this.input.slice(e,l)===i&&(l===this.input.length||!J(this.input.charCodeAt(l)))}isLookaheadContextual(e){const i=this.nextTokenStart();return this.isUnparsedContextual(i,e)}eatContextual(e){return this.isContextual(e)&&this.eat(a.name)}expectContextual(e,i){this.eatContextual(e)||this.unexpected(null,i)}canInsertSemicolon(){return this.match(a.eof)||this.match(a.braceR)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return O.test(this.input.slice(this.state.lastTokEnd,this.state.start))}isLineTerminator(){return this.eat(a.semi)||this.canInsertSemicolon()}semicolon(){this.isLineTerminator()||this.unexpected(null,a.semi)}expect(e,i){this.eat(e)||this.unexpected(i,e)}assertNoSpace(e="Unexpected space."){this.state.start>this.state.lastTokEnd&&this.raise(this.state.lastTokEnd,e)}unexpected(e,i="Unexpected token"){throw typeof i!="string"&&(i=`Unexpected token, expected "${i.label}"`),this.raise(e??this.state.start,i)}expectPlugin(e,i){if(!this.hasPlugin(e))throw this.raiseWithData(i??this.state.start,{missingPlugin:[e]},`This experimental syntax requires enabling the parser plugin: '${e}'`);return!0}expectOnePlugin(e,i){if(!e.some(l=>this.hasPlugin(l)))throw this.raiseWithData(i??this.state.start,{missingPlugin:e},`This experimental syntax requires enabling one of the following parser plugin(s): '${e.join(", ")}'`)}tryParse(e,i=this.state.clone()){const l={node:null};try{const h=e((S=null)=>{throw l.node=S,l});if(this.state.errors.length>i.errors.length){const S=this.state;return this.state=i,{node:h,error:S.errors[i.errors.length],thrown:!1,aborted:!1,failState:S}}return{node:h,error:null,thrown:!1,aborted:!1,failState:null}}catch(h){const S=this.state;if(this.state=i,h instanceof SyntaxError)return{node:null,error:h,thrown:!0,aborted:!1,failState:S};if(h===l)return{node:l.node,error:null,thrown:!1,aborted:!0,failState:S};throw h}}checkExpressionErrors(e,i){if(!e)return!1;const{shorthandAssign:l,doubleProto:h}=e;if(!i)return l>=0||h>=0;l>=0&&this.unexpected(l),h>=0&&this.raise(h,D.DuplicateProto)}isLiteralPropertyName(){return this.match(a.name)||!!this.state.type.keyword||this.match(a.string)||this.match(a.num)||this.match(a.bigint)||this.match(a.decimal)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isOptionalChain(e){return e.type==="OptionalMemberExpression"||e.type==="OptionalCallExpression"}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}}class qt{constructor(){this.shorthandAssign=-1,this.doubleProto=-1}}class Ht{constructor(e,i,l){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=i,this.end=0,this.loc=new A(l),(e==null?void 0:e.options.ranges)&&(this.range=[i,0]),(e==null?void 0:e.filename)&&(this.loc.filename=e.filename)}__clone(){const e=new Ht,i=Object.keys(this);for(let l=0,h=i.length;l<h;l++){const S=i[l];S!=="leadingComments"&&S!=="trailingComments"&&S!=="innerComments"&&(e[S]=this[S])}return e}}class xr extends Ar{startNode(){return new Ht(this,this.state.start,this.state.startLoc)}startNodeAt(e,i){return new Ht(this,e,i)}startNodeAtNode(e){return this.startNodeAt(e.start,e.loc.start)}finishNode(e,i){return this.finishNodeAt(e,i,this.state.lastTokEnd,this.state.lastTokEndLoc)}finishNodeAt(e,i,l,h){return e.type=i,e.end=l,e.loc.end=h,this.options.ranges&&(e.range[1]=l),this.processComment(e),e}resetStartLocation(e,i,l){e.start=i,e.loc.start=l,this.options.ranges&&(e.range[0]=i)}resetEndLocation(e,i=this.state.lastTokEnd,l=this.state.lastTokEndLoc){e.end=i,e.loc.end=l,this.options.ranges&&(e.range[1]=i)}resetStartLocationFromNode(e,i){this.resetStartLocation(e,i.start,i.loc.start)}}const or=U=>U.type==="ParenthesizedExpression"?or(U.expression):U;class _r extends xr{toAssignable(e,i=!1){var l,h;let S;(e.type==="ParenthesizedExpression"||((l=e.extra)==null?void 0:l.parenthesized))&&(S=or(e),i?S.type==="Identifier"?this.expressionScope.recordParenthesizedIdentifierError(e.start,D.InvalidParenthesizedAssignment):S.type!=="MemberExpression"&&this.raise(e.start,D.InvalidParenthesizedAssignment):this.raise(e.start,D.InvalidParenthesizedAssignment));switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":e.type="ObjectPattern";for(let M=0,Y=e.properties.length,q=Y-1;M<Y;M++){var w;const ne=e.properties[M],Ee=M===q;this.toAssignableObjectExpressionProp(ne,Ee,i),Ee&&ne.type==="RestElement"&&((w=e.extra)==null?void 0:w.trailingComma)&&this.raiseRestNotLast(e.extra.trailingComma)}break;case"ObjectProperty":this.toAssignable(e.value,i);break;case"SpreadElement":{this.checkToRestConversion(e),e.type="RestElement";const M=e.argument;this.toAssignable(M,i);break}case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,(h=e.extra)==null?void 0:h.trailingComma,i);break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,D.MissingEqInAssignment),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,i);break;case"ParenthesizedExpression":this.toAssignable(S,i);break}return e}toAssignableObjectExpressionProp(e,i,l){if(e.type==="ObjectMethod"){const h=e.kind==="get"||e.kind==="set"?D.PatternHasAccessor:D.PatternHasMethod;this.raise(e.key.start,h)}else e.type==="SpreadElement"&&!i?this.raiseRestNotLast(e.start):this.toAssignable(e,l)}toAssignableList(e,i,l){let h=e.length;if(h){const S=e[h-1];if((S==null?void 0:S.type)==="RestElement")--h;else if((S==null?void 0:S.type)==="SpreadElement"){S.type="RestElement";let w=S.argument;this.toAssignable(w,l),w=or(w),w.type!=="Identifier"&&w.type!=="MemberExpression"&&w.type!=="ArrayPattern"&&w.type!=="ObjectPattern"&&this.unexpected(w.start),i&&this.raiseTrailingCommaAfterRest(i),--h}}for(let S=0;S<h;S++){const w=e[S];w&&(this.toAssignable(w,l),w.type==="RestElement"&&this.raiseRestNotLast(w.start))}return e}toReferencedList(e,i){return e}toReferencedListDeep(e,i){this.toReferencedList(e,i);for(let l=0;l<e.length;l++){const h=e[l];(h==null?void 0:h.type)==="ArrayExpression"&&this.toReferencedListDeep(h.elements)}}parseSpread(e,i){const l=this.startNode();return this.next(),l.argument=this.parseMaybeAssignAllowIn(e,void 0,i),this.finishNode(l,"SpreadElement")}parseRestBinding(){const e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case a.bracketL:{const e=this.startNode();return this.next(),e.elements=this.parseBindingList(a.bracketR,93,!0),this.finishNode(e,"ArrayPattern")}case a.braceL:return this.parseObjectLike(a.braceR,!0)}return this.parseIdentifier()}parseBindingList(e,i,l,h){const S=[];let w=!0;for(;!this.eat(e);)if(w?w=!1:this.expect(a.comma),l&&this.match(a.comma))S.push(null);else{if(this.eat(e))break;if(this.match(a.ellipsis)){S.push(this.parseAssignableListItemTypes(this.parseRestBinding())),this.checkCommaAfterRest(i),this.expect(e);break}else{const M=[];for(this.match(a.at)&&this.hasPlugin("decorators")&&this.raise(this.state.start,D.UnsupportedParameterDecorator);this.match(a.at);)M.push(this.parseDecorator());S.push(this.parseAssignableListItem(h,M))}}return S}parseAssignableListItem(e,i){const l=this.parseMaybeDefault();this.parseAssignableListItemTypes(l);const h=this.parseMaybeDefault(l.start,l.loc.start,l);return i.length&&(l.decorators=i),h}parseAssignableListItemTypes(e){return e}parseMaybeDefault(e,i,l){var h,S,w;if(i=(h=i)!=null?h:this.state.startLoc,e=(S=e)!=null?S:this.state.start,l=(w=l)!=null?w:this.parseBindingAtom(),!this.eat(a.eq))return l;const M=this.startNodeAt(e,i);return M.left=l,M.right=this.parseMaybeAssignAllowIn(),this.finishNode(M,"AssignmentPattern")}checkLVal(e,i,l=Me,h,S,w=!1){switch(e.type){case"Identifier":{const{name:M}=e;this.state.strict&&(w?Ue(M,this.inModule):Ne(M))&&this.raise(e.start,l===Me?D.StrictEvalArguments:D.StrictEvalArgumentsBinding,M),h&&(h.has(M)?this.raise(e.start,D.ParamDupe):h.add(M)),S&&M==="let"&&this.raise(e.start,D.LetInLexicalBinding),l&Me||this.scope.declareName(M,l,e.start);break}case"MemberExpression":l!==Me&&this.raise(e.start,D.InvalidPropertyBindingPattern);break;case"ObjectPattern":for(let M=0,Y=e.properties;M<Y.length;M++){let q=Y[M];if(this.isObjectProperty(q))q=q.value;else if(this.isObjectMethod(q))continue;this.checkLVal(q,"object destructuring pattern",l,h,S)}break;case"ArrayPattern":for(let M=0,Y=e.elements;M<Y.length;M++){const q=Y[M];q&&this.checkLVal(q,"array destructuring pattern",l,h,S)}break;case"AssignmentPattern":this.checkLVal(e.left,"assignment pattern",l,h);break;case"RestElement":this.checkLVal(e.argument,"rest element",l,h);break;case"ParenthesizedExpression":this.checkLVal(e.expression,"parenthesized expression",l,h);break;default:this.raise(e.start,l===Me?D.InvalidLhs:D.InvalidLhsBinding,i)}}checkToRestConversion(e){e.argument.type!=="Identifier"&&e.argument.type!=="MemberExpression"&&this.raise(e.argument.start,D.InvalidRestAssignmentPattern)}checkCommaAfterRest(e){this.match(a.comma)&&(this.lookaheadCharCode()===e?this.raiseTrailingCommaAfterRest(this.state.start):this.raiseRestNotLast(this.state.start))}raiseRestNotLast(e){throw this.raise(e,D.ElementAfterRest)}raiseTrailingCommaAfterRest(e){this.raise(e,D.RestTrailingComma)}}const wr=0,hr=1,ur=2,dr=3;class Gt{constructor(e=wr){this.type=void 0,this.type=e}canBeArrowParameterDeclaration(){return this.type===ur||this.type===hr}isCertainlyParameterDeclaration(){return this.type===dr}}class mr extends Gt{constructor(e){super(e);this.errors=new Map}recordDeclarationError(e,i){this.errors.set(e,i)}clearDeclarationError(e){this.errors.delete(e)}iterateErrors(e){this.errors.forEach(e)}}class Ir{constructor(e){this.stack=[new Gt],this.raise=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,i){const{stack:l}=this;let h=l.length-1,S=l[h];for(;!S.isCertainlyParameterDeclaration();){if(S.canBeArrowParameterDeclaration())S.recordDeclarationError(e,i);else return;S=l[--h]}this.raise(e,i)}recordParenthesizedIdentifierError(e,i){const{stack:l}=this,h=l[l.length-1];if(h.isCertainlyParameterDeclaration())this.raise(e,i);else if(h.canBeArrowParameterDeclaration())h.recordDeclarationError(e,i);else return}recordAsyncArrowParametersError(e,i){const{stack:l}=this;let h=l.length-1,S=l[h];for(;S.canBeArrowParameterDeclaration();)S.type===ur&&S.recordDeclarationError(e,i),S=l[--h]}validateAsPattern(){const{stack:e}=this,i=e[e.length-1];if(!i.canBeArrowParameterDeclaration())return;i.iterateErrors((l,h)=>{this.raise(h,l);let S=e.length-2,w=e[S];for(;w.canBeArrowParameterDeclaration();)w.clearDeclarationError(h),w=e[--S]})}}function Cr(){return new Gt(dr)}function Or(){return new mr(hr)}function Nr(){return new mr(ur)}function lr(){return new Gt}class kr extends _r{checkProto(e,i,l,h){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand)return;const S=e.key,w=S.type==="Identifier"?S.name:S.value;if(w==="__proto__"){if(i){this.raise(S.start,D.RecordNoProto);return}l.used&&(h?h.doubleProto===-1&&(h.doubleProto=S.start):this.raise(S.start,D.DuplicateProto)),l.used=!0}}shouldExitDescending(e,i){return e.type==="ArrowFunctionExpression"&&e.start===i}getExpression(){let e=ht;this.hasPlugin("topLevelAwait")&&this.inModule&&(e|=_t),this.scope.enter(rt),this.prodParam.enter(e),this.nextToken();const i=this.parseExpression();return this.match(a.eof)||this.unexpected(),i.comments=this.state.comments,i.errors=this.state.errors,i}parseExpression(e,i){return e?this.disallowInAnd(()=>this.parseExpressionBase(i)):this.allowInAnd(()=>this.parseExpressionBase(i))}parseExpressionBase(e){const i=this.state.start,l=this.state.startLoc,h=this.parseMaybeAssign(e);if(this.match(a.comma)){const S=this.startNodeAt(i,l);for(S.expressions=[h];this.eat(a.comma);)S.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(S.expressions),this.finishNode(S,"SequenceExpression")}return h}parseMaybeAssignDisallowIn(e,i,l){return this.disallowInAnd(()=>this.parseMaybeAssign(e,i,l))}parseMaybeAssignAllowIn(e,i,l){return this.allowInAnd(()=>this.parseMaybeAssign(e,i,l))}parseMaybeAssign(e,i,l){const h=this.state.start,S=this.state.startLoc;if(this.isContextual("yield")&&this.prodParam.hasYield){this.state.exprAllowed=!0;let Y=this.parseYield();return i&&(Y=i.call(this,Y,h,S)),Y}let w;e?w=!1:(e=new qt,w=!0),(this.match(a.parenL)||this.match(a.name))&&(this.state.potentialArrowAt=this.state.start);let M=this.parseMaybeConditional(e,l);if(i&&(M=i.call(this,M,h,S)),this.state.type.isAssign){const Y=this.startNodeAt(h,S),q=this.state.value;return Y.operator=q,this.match(a.eq)?(Y.left=this.toAssignable(M,!0),e.doubleProto=-1):Y.left=M,e.shorthandAssign>=Y.left.start&&(e.shorthandAssign=-1),this.checkLVal(M,"assignment expression"),this.next(),Y.right=this.parseMaybeAssign(),this.finishNode(Y,"AssignmentExpression")}else w&&this.checkExpressionErrors(e,!0);return M}parseMaybeConditional(e,i){const l=this.state.start,h=this.state.startLoc,S=this.state.potentialArrowAt,w=this.parseExprOps(e);return this.shouldExitDescending(w,S)?w:this.parseConditional(w,l,h,i)}parseConditional(e,i,l,h){if(this.eat(a.question)){const S=this.startNodeAt(i,l);return S.test=e,S.consequent=this.parseMaybeAssignAllowIn(),this.expect(a.colon),S.alternate=this.parseMaybeAssign(),this.finishNode(S,"ConditionalExpression")}return e}parseExprOps(e){const i=this.state.start,l=this.state.startLoc,h=this.state.potentialArrowAt,S=this.parseMaybeUnary(e);return this.shouldExitDescending(S,h)?S:this.parseExprOp(S,i,l,-1)}parseExprOp(e,i,l,h){let S=this.state.type.binop;if(S!=null&&(this.prodParam.hasIn||!this.match(a._in))&&S>h){const w=this.state.type;if(w===a.pipeline){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.state.inPipeline=!0,this.checkPipelineAtInfixOperator(e,i)}const M=this.startNodeAt(i,l);M.left=e,M.operator=this.state.value,w===a.exponent&&e.type==="UnaryExpression"&&(this.options.createParenthesizedExpressions||!(e.extra&&e.extra.parenthesized))&&this.raise(e.argument.start,D.UnexpectedTokenUnaryExponentiation);const Y=w===a.logicalOR||w===a.logicalAND,q=w===a.nullishCoalescing;if(q&&(S=a.logicalAND.binop),this.next(),w===a.pipeline&&this.getPluginOption("pipelineOperator","proposal")==="minimal"&&(this.match(a.name)&&this.state.value==="await"&&this.prodParam.hasAwait))throw this.raise(this.state.start,D.UnexpectedAwaitAfterPipelineBody);M.right=this.parseExprOpRightExpr(w,S),this.finishNode(M,Y||q?"LogicalExpression":"BinaryExpression");const ne=this.state.type;if(q&&(ne===a.logicalOR||ne===a.logicalAND)||Y&&ne===a.nullishCoalescing)throw this.raise(this.state.start,D.MixingCoalesceWithLogical);return this.parseExprOp(M,i,l,h)}return e}parseExprOpRightExpr(e,i){const l=this.state.start,h=this.state.startLoc;switch(e){case a.pipeline:switch(this.getPluginOption("pipelineOperator","proposal")){case"smart":return this.withTopicPermittingContext(()=>this.parseSmartPipelineBody(this.parseExprOpBaseRightExpr(e,i),l,h));case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(i))}default:return this.parseExprOpBaseRightExpr(e,i)}}parseExprOpBaseRightExpr(e,i){const l=this.state.start,h=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnary(),l,h,e.rightAssociative?i-1:i)}parseMaybeUnary(e){if(this.isContextual("await")&&this.isAwaitAllowed())return this.parseAwait();const i=this.match(a.incDec),l=this.startNode();if(this.state.type.prefix){l.operator=this.state.value,l.prefix=!0,this.match(a._throw)&&this.expectPlugin("throwExpressions");const h=this.match(a._delete);if(this.next(),l.argument=this.parseMaybeUnary(),this.checkExpressionErrors(e,!0),this.state.strict&&h){const S=l.argument;S.type==="Identifier"?this.raise(l.start,D.StrictDelete):this.hasPropertyAsPrivateName(S)&&this.raise(l.start,D.DeletePrivateField)}if(!i)return this.finishNode(l,"UnaryExpression")}return this.parseUpdate(l,i,e)}parseUpdate(e,i,l){if(i)return this.checkLVal(e.argument,"prefix operation"),this.finishNode(e,"UpdateExpression");const h=this.state.start,S=this.state.startLoc;let w=this.parseExprSubscripts(l);if(this.checkExpressionErrors(l,!1))return w;for(;this.state.type.postfix&&!this.canInsertSemicolon();){const M=this.startNodeAt(h,S);M.operator=this.state.value,M.prefix=!1,M.argument=w,this.checkLVal(w,"postfix operation"),this.next(),w=this.finishNode(M,"UpdateExpression")}return w}parseExprSubscripts(e){const i=this.state.start,l=this.state.startLoc,h=this.state.potentialArrowAt,S=this.parseExprAtom(e);return this.shouldExitDescending(S,h)?S:this.parseSubscripts(S,i,l)}parseSubscripts(e,i,l,h){const S={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,i,l,h,S),S.maybeAsyncArrow=!1;while(!S.stop);return e}parseSubscript(e,i,l,h,S){if(!h&&this.eat(a.doubleColon))return this.parseBind(e,i,l,h,S);if(this.match(a.backQuote))return this.parseTaggedTemplateExpression(e,i,l,S);let w=!1;if(this.match(a.questionDot)){if(h&&this.lookaheadCharCode()===40)return S.stop=!0,e;S.optionalChainMember=w=!0,this.next()}return!h&&this.match(a.parenL)?this.parseCoverCallAndAsyncArrowHead(e,i,l,S,w):w||this.match(a.bracketL)||this.eat(a.dot)?this.parseMember(e,i,l,S,w):(S.stop=!0,e)}parseMember(e,i,l,h,S){const w=this.startNodeAt(i,l),M=this.eat(a.bracketL);w.object=e,w.computed=M;const Y=M?this.parseExpression():this.parseMaybePrivateName(!0);return this.isPrivateName(Y)&&(w.object.type==="Super"&&this.raise(i,D.SuperPrivateField),this.classScope.usePrivateName(this.getPrivateNameSV(Y),Y.start)),w.property=Y,M&&this.expect(a.bracketR),h.optionalChainMember?(w.optional=S,this.finishNode(w,"OptionalMemberExpression")):this.finishNode(w,"MemberExpression")}parseBind(e,i,l,h,S){const w=this.startNodeAt(i,l);return w.object=e,w.callee=this.parseNoCallExpr(),S.stop=!0,this.parseSubscripts(this.finishNode(w,"BindExpression"),i,l,h)}parseCoverCallAndAsyncArrowHead(e,i,l,h,S){const w=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0,this.next();let M=this.startNodeAt(i,l);return M.callee=e,h.maybeAsyncArrow&&this.expressionScope.enter(Nr()),h.optionalChainMember&&(M.optional=S),S?M.arguments=this.parseCallExpressionArguments(a.parenR,!1):M.arguments=this.parseCallExpressionArguments(a.parenR,h.maybeAsyncArrow,e.type==="Import",e.type!=="Super",M),this.finishCallExpression(M,h.optionalChainMember),h.maybeAsyncArrow&&this.shouldParseAsyncArrow()&&!S?(h.stop=!0,this.expressionScope.validateAsPattern(),this.expressionScope.exit(),M=this.parseAsyncArrowFromCallExpression(this.startNodeAt(i,l),M)):(h.maybeAsyncArrow&&this.expressionScope.exit(),this.toReferencedArguments(M)),this.state.maybeInArrowParameters=w,M}toReferencedArguments(e,i){this.toReferencedListDeep(e.arguments,i)}parseTaggedTemplateExpression(e,i,l,h){const S=this.startNodeAt(i,l);return S.tag=e,S.quasi=this.parseTemplate(!0),h.optionalChainMember&&this.raise(i,D.OptionalChainingNoTemplate),this.finishNode(S,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&e.start===this.state.potentialArrowAt}finishCallExpression(e,i){if(e.callee.type==="Import")if(e.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),e.arguments.length===0||e.arguments.length>2)this.raise(e.start,D.ImportCallArity,this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?"one or two arguments":"one argument");else for(let l=0,h=e.arguments;l<h.length;l++){const S=h[l];S.type==="SpreadElement"&&this.raise(S.start,D.ImportCallSpreadArgument)}return this.finishNode(e,i?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,i,l,h,S){const w=[];let M=!0;const Y=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(M)M=!1;else if(this.expect(a.comma),this.match(e)){l&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(this.state.lastTokStart,D.ImportCallArgumentTrailingComma),S&&this.addExtra(S,"trailingComma",this.state.lastTokStart),this.next();break}w.push(this.parseExprListItem(!1,i?new qt:void 0,i?{start:0}:void 0,h))}return this.state.inFSharpPipelineDirectBody=Y,w}shouldParseAsyncArrow(){return this.match(a.arrow)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,i){var l;return this.expect(a.arrow),this.parseArrowExpression(e,i.arguments,!0,(l=i.extra)==null?void 0:l.trailingComma),e}parseNoCallExpr(){const e=this.state.start,i=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,i,!0)}parseExprAtom(e){this.state.type===a.slash&&this.readRegexp();const i=this.state.potentialArrowAt===this.state.start;let l;switch(this.state.type){case a._super:return this.parseSuper();case a._import:return l=this.startNode(),this.next(),this.match(a.dot)?this.parseImportMetaProperty(l):(this.match(a.parenL)||this.raise(this.state.lastTokStart,D.UnsupportedImport),this.finishNode(l,"Import"));case a._this:return l=this.startNode(),this.next(),this.finishNode(l,"ThisExpression");case a.name:{const h=this.state.containsEsc,S=this.parseIdentifier();if(!h&&S.name==="async"&&!this.canInsertSemicolon()){if(this.match(a._function)){const w=this.state.context.length-1;if(this.state.context[w]!==re.functionStatement)throw new Error("Internal error");return this.state.context[w]=re.functionExpression,this.next(),this.parseFunction(this.startNodeAtNode(S),void 0,!0)}else if(this.match(a.name))return this.parseAsyncArrowUnaryFunction(S)}return i&&this.match(a.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(S),[S],!1)):S}case a._do:return this.parseDo();case a.regexp:{const h=this.state.value;return l=this.parseLiteral(h.value,"RegExpLiteral"),l.pattern=h.pattern,l.flags=h.flags,l}case a.num:return this.parseLiteral(this.state.value,"NumericLiteral");case a.bigint:return this.parseLiteral(this.state.value,"BigIntLiteral");case a.decimal:return this.parseLiteral(this.state.value,"DecimalLiteral");case a.string:return this.parseLiteral(this.state.value,"StringLiteral");case a._null:return l=this.startNode(),this.next(),this.finishNode(l,"NullLiteral");case a._true:case a._false:return this.parseBooleanLiteral();case a.parenL:return this.parseParenAndDistinguishExpression(i);case a.bracketBarL:case a.bracketHashL:return this.parseArrayLike(this.state.type===a.bracketBarL?a.bracketBarR:a.bracketR,!1,!0,e);case a.bracketL:return this.parseArrayLike(a.bracketR,!0,!1,e);case a.braceBarL:case a.braceHashL:return this.parseObjectLike(this.state.type===a.braceBarL?a.braceBarR:a.braceR,!1,!0,e);case a.braceL:return this.parseObjectLike(a.braceR,!1,!1,e);case a._function:return this.parseFunctionOrFunctionSent();case a.at:this.parseDecorators();case a._class:return l=this.startNode(),this.takeDecorators(l),this.parseClass(l,!1);case a._new:return this.parseNewOrNewTarget();case a.backQuote:return this.parseTemplate(!1);case a.doubleColon:{l=this.startNode(),this.next(),l.object=null;const h=l.callee=this.parseNoCallExpr();if(h.type==="MemberExpression")return this.finishNode(l,"BindExpression");throw this.raise(h.start,D.UnsupportedBind)}case a.hash:{if(this.state.inPipeline)return l=this.startNode(),this.getPluginOption("pipelineOperator","proposal")!=="smart"&&this.raise(l.start,D.PrimaryTopicRequiresSmartPipeline),this.next(),this.primaryTopicReferenceIsAllowedInCurrentTopicContext()||this.raise(l.start,D.PrimaryTopicNotAllowed),this.registerTopicReference(),this.finishNode(l,"PipelinePrimaryTopicReference");const h=this.input.codePointAt(this.state.end);if(X(h)||h===92){const S=this.state.start;if(l=this.parseMaybePrivateName(!0),this.match(a._in))this.expectPlugin("privateIn"),this.classScope.usePrivateName(l.id.name,l.start);else if(this.hasPlugin("privateIn"))this.raise(this.state.start,D.PrivateInExpectedIn,l.id.name);else throw this.unexpected(S);return l}}case a.relational:if(this.state.value==="<"){const h=this.input.codePointAt(this.nextTokenStart());(X(h)||h===62)&&this.expectOnePlugin(["jsx","flow","typescript"])}default:throw this.unexpected()}}parseAsyncArrowUnaryFunction(e){const i=this.startNodeAtNode(e);this.prodParam.enter(o(!0,this.prodParam.hasYield));const l=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(this.state.pos,D.LineTerminatorBeforeArrow),this.expect(a.arrow),this.parseArrowExpression(i,l,!0),i}parseDo(){this.expectPlugin("doExpressions");const e=this.startNode();this.next();const i=this.state.labels;return this.state.labels=[],e.body=this.parseBlock(),this.state.labels=i,this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();return this.next(),this.match(a.parenL)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(e.start,D.SuperNotAllowed):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(e.start,D.UnexpectedSuper),!this.match(a.parenL)&&!this.match(a.bracketL)&&!this.match(a.dot)&&this.raise(e.start,D.UnsupportedSuper),this.finishNode(e,"Super")}parseBooleanLiteral(){const e=this.startNode();return e.value=this.match(a._true),this.next(),this.finishNode(e,"BooleanLiteral")}parseMaybePrivateName(e){const i=this.match(a.hash);if(i){this.expectOnePlugin(["classPrivateProperties","classPrivateMethods"]),e||this.raise(this.state.pos,D.UnexpectedPrivateField);const l=this.startNode();return this.next(),this.assertNoSpace("Unexpected space between # and identifier"),l.id=this.parseIdentifier(!0),this.finishNode(l,"PrivateName")}else return this.parseIdentifier(!0)}parseFunctionOrFunctionSent(){const e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(a.dot)){const i=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.parseMetaProperty(e,i,"sent")}return this.parseFunction(e)}parseMetaProperty(e,i,l){e.meta=i,i.name==="function"&&l==="sent"&&(this.isContextual(l)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected());const h=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==l||h)&&this.raise(e.property.start,D.UnsupportedMetaProperty,i.name,l),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){const i=this.createIdentifier(this.startNodeAtNode(e),"import");return this.next(),this.isContextual("meta")&&(this.inModule||this.raiseWithData(i.start,{code:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},D.ImportMetaOutsideModule),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,i,"meta")}parseLiteral(e,i,l,h){l=l||this.state.start,h=h||this.state.startLoc;const S=this.startNodeAt(l,h);return this.addExtra(S,"rawValue",e),this.addExtra(S,"raw",this.input.slice(l,this.state.end)),S.value=e,this.next(),this.finishNode(S,i)}parseParenAndDistinguishExpression(e){const i=this.state.start,l=this.state.startLoc;let h;this.next(),this.expressionScope.enter(Or());const S=this.state.maybeInArrowParameters,w=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const M=this.state.start,Y=this.state.startLoc,q=[],ne=new qt,Ee={start:0};let be=!0,Se,Ce;for(;!this.match(a.parenR);){if(be)be=!1;else if(this.expect(a.comma,Ee.start||null),this.match(a.parenR)){Ce=this.state.start;break}if(this.match(a.ellipsis)){const zt=this.state.start,Ft=this.state.startLoc;Se=this.state.start,q.push(this.parseParenItem(this.parseRestBinding(),zt,Ft)),this.checkCommaAfterRest(41);break}else q.push(this.parseMaybeAssignAllowIn(ne,this.parseParenItem,Ee))}const We=this.state.lastTokEnd,Fe=this.state.lastTokEndLoc;this.expect(a.parenR),this.state.maybeInArrowParameters=S,this.state.inFSharpPipelineDirectBody=w;let ze=this.startNodeAt(i,l);if(e&&this.shouldParseArrow()&&(ze=this.parseArrow(ze)))return this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(ze,q,!1),ze;if(this.expressionScope.exit(),q.length||this.unexpected(this.state.lastTokStart),Ce&&this.unexpected(Ce),Se&&this.unexpected(Se),this.checkExpressionErrors(ne,!0),Ee.start&&this.unexpected(Ee.start),this.toReferencedListDeep(q,!0),q.length>1?(h=this.startNodeAt(M,Y),h.expressions=q,this.finishNodeAt(h,"SequenceExpression",We,Fe)):h=q[0],!this.options.createParenthesizedExpressions)return this.addExtra(h,"parenthesized",!0),this.addExtra(h,"parenStart",i),h;const ct=this.startNodeAt(i,l);return ct.expression=h,this.finishNode(ct,"ParenthesizedExpression"),ct}shouldParseArrow(){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(a.arrow))return e}parseParenItem(e,i,l){return e}parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.match(a.dot)){const i=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const l=this.parseMetaProperty(e,i,"target");if(!this.scope.inNonArrowFunction&&!this.scope.inClass){let h=D.UnexpectedNewTarget;this.hasPlugin("classProperties")&&(h+=" or class properties"),this.raise(l.start,h)}return l}return this.parseNew(e)}parseNew(e){return e.callee=this.parseNoCallExpr(),e.callee.type==="Import"?this.raise(e.callee.start,D.ImportCallNotNewExpression):this.isOptionalChain(e.callee)?this.raise(this.state.lastTokEnd,D.OptionalChainingNoNew):this.eat(a.questionDot)&&this.raise(this.state.start,D.OptionalChainingNoNew),this.parseNewArguments(e),this.finishNode(e,"NewExpression")}parseNewArguments(e){if(this.eat(a.parenL)){const i=this.parseExprList(a.parenR);this.toReferencedList(i),e.arguments=i}else e.arguments=[]}parseTemplateElement(e){const i=this.startNode();return this.state.value===null&&(e||this.raise(this.state.start+1,D.InvalidEscapeSequenceTemplate)),i.value={raw:this.input.slice(this.state.start,this.state.end).replace(/\r\n?/g,`
|
|
7
|
+
`),cooked:this.state.value},this.next(),i.tail=this.match(a.backQuote),this.finishNode(i,"TemplateElement")}parseTemplate(e){const i=this.startNode();this.next(),i.expressions=[];let l=this.parseTemplateElement(e);for(i.quasis=[l];!l.tail;)this.expect(a.dollarBraceL),i.expressions.push(this.parseTemplateSubstitution()),this.expect(a.braceR),i.quasis.push(l=this.parseTemplateElement(e));return this.next(),this.finishNode(i,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,i,l,h){l&&this.expectPlugin("recordAndTuple");const S=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const w=Object.create(null);let M=!0;const Y=this.startNode();for(Y.properties=[],this.next();!this.match(e);){if(M)M=!1;else if(this.expect(a.comma),this.match(e)){this.addExtra(Y,"trailingComma",this.state.lastTokStart);break}const ne=this.parsePropertyDefinition(i,h);i||this.checkProto(ne,l,w,h),l&&!this.isObjectProperty(ne)&&ne.type!=="SpreadElement"&&this.raise(ne.start,D.InvalidRecordProperty),ne.shorthand&&this.addExtra(ne,"shorthand",!0),Y.properties.push(ne)}this.state.exprAllowed=!1,this.next(),this.state.inFSharpPipelineDirectBody=S;let q="ObjectExpression";return i?q="ObjectPattern":l&&(q="RecordExpression"),this.finishNode(Y,q)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(a.bracketL)||this.match(a.star))}parsePropertyDefinition(e,i){let l=[];if(this.match(a.at))for(this.hasPlugin("decorators")&&this.raise(this.state.start,D.UnsupportedPropertyDecorator);this.match(a.at);)l.push(this.parseDecorator());const h=this.startNode();let S=!1,w=!1,M=!1,Y,q;if(this.match(a.ellipsis))return l.length&&this.unexpected(),e?(this.next(),h.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(h,"RestElement")):this.parseSpread();l.length&&(h.decorators=l,l=[]),h.method=!1,(e||i)&&(Y=this.state.start,q=this.state.startLoc),e||(S=this.eat(a.star));const ne=this.state.containsEsc,Ee=this.parsePropertyName(h,!1);if(!e&&!S&&!ne&&this.maybeAsyncOrAccessorProp(h)){const be=Ee.name;be==="async"&&!this.hasPrecedingLineBreak()&&(w=!0,S=this.eat(a.star),this.parsePropertyName(h,!1)),(be==="get"||be==="set")&&(M=!0,h.kind=be,this.match(a.star)&&(S=!0,this.raise(this.state.pos,D.AccessorIsGenerator,be),this.next()),this.parsePropertyName(h,!1))}return this.parseObjPropValue(h,Y,q,S,w,e,M,i),h}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var i;const l=this.getGetterSetterExpectedParamCount(e),h=this.getObjectOrClassMethodParams(e),S=e.start;h.length!==l&&(e.kind==="get"?this.raise(S,D.BadGetterArity):this.raise(S,D.BadSetterArity)),e.kind==="set"&&((i=h[h.length-1])==null?void 0:i.type)==="RestElement"&&this.raise(S,D.BadSetterRestParameter)}parseObjectMethod(e,i,l,h,S){if(S)return this.parseMethod(e,i,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(e),e;if(l||i||this.match(a.parenL))return h&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,i,l,!1,!1,"ObjectMethod")}parseObjectProperty(e,i,l,h,S){if(e.shorthand=!1,this.eat(a.colon))return e.value=h?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(S),this.finishNode(e,"ObjectProperty");if(!e.computed&&e.key.type==="Identifier")return this.checkReservedWord(e.key.name,e.key.start,!0,!1),h?e.value=this.parseMaybeDefault(i,l,e.key.__clone()):this.match(a.eq)&&S?(S.shorthandAssign===-1&&(S.shorthandAssign=this.state.start),e.value=this.parseMaybeDefault(i,l,e.key.__clone())):e.value=e.key.__clone(),e.shorthand=!0,this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,i,l,h,S,w,M,Y){const q=this.parseObjectMethod(e,h,S,w,M)||this.parseObjectProperty(e,i,l,w,Y);return q||this.unexpected(),q}parsePropertyName(e,i){if(this.eat(a.bracketL))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(a.bracketR);else{const l=this.state.inPropertyName;this.state.inPropertyName=!0,e.key=this.match(a.num)||this.match(a.string)||this.match(a.bigint)||this.match(a.decimal)?this.parseExprAtom():this.parseMaybePrivateName(i),this.isPrivateName(e.key)||(e.computed=!1),this.state.inPropertyName=l}return e.key}initFunction(e,i){e.id=null,e.generator=!1,e.async=!!i}parseMethod(e,i,l,h,S,w,M=!1){this.initFunction(e,l),e.generator=!!i;const Y=h;return this.scope.enter(Qe|tt|(M?we:0)|(S?Ie:0)),this.prodParam.enter(o(l,e.generator)),this.parseFunctionParams(e,Y),this.parseFunctionBodyAndFinish(e,w,!0),this.prodParam.exit(),this.scope.exit(),e}parseArrayLike(e,i,l,h){l&&this.expectPlugin("recordAndTuple");const S=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const w=this.startNode();return this.next(),w.elements=this.parseExprList(e,!l,h,w),this.state.inFSharpPipelineDirectBody=S,this.finishNode(w,l?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,i,l,h){this.scope.enter(Qe|He);let S=o(l,!1);!this.match(a.bracketL)&&this.prodParam.hasIn&&(S|=Et),this.prodParam.enter(S),this.initFunction(e,l);const w=this.state.maybeInArrowParameters;return i&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,i,h)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=w,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,i,l){e.params=this.toAssignableList(i,l,!1)}parseFunctionBodyAndFinish(e,i,l=!1){this.parseFunctionBody(e,!1,l),this.finishNode(e,i)}parseFunctionBody(e,i,l=!1){const h=i&&!this.match(a.braceL);if(this.expressionScope.enter(lr()),h)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,i,!1);else{const S=this.state.strict,w=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|Jt),e.body=this.parseBlock(!0,!1,M=>{const Y=!this.isSimpleParamList(e.params);if(M&&Y){const ne=(e.kind==="method"||e.kind==="constructor")&&!!e.key?e.key.end:e.start;this.raise(ne,D.IllegalLanguageModeDirective)}const q=!S&&this.state.strict;this.checkParams(e,!this.state.strict&&!i&&!l&&!Y,i,q),this.state.strict&&e.id&&this.checkLVal(e.id,"function name",ke,void 0,void 0,q)}),this.prodParam.exit(),this.expressionScope.exit(),this.state.labels=w}}isSimpleParamList(e){for(let i=0,l=e.length;i<l;i++)if(e[i].type!=="Identifier")return!1;return!0}checkParams(e,i,l,h=!0){const S=new Set;for(let w=0,M=e.params;w<M.length;w++){const Y=M[w];this.checkLVal(Y,"function parameter list",ce,i?null:S,void 0,h)}}parseExprList(e,i,l,h){const S=[];let w=!0;for(;!this.eat(e);){if(w)w=!1;else if(this.expect(a.comma),this.match(e)){h&&this.addExtra(h,"trailingComma",this.state.lastTokStart),this.next();break}S.push(this.parseExprListItem(i,l))}return S}parseExprListItem(e,i,l,h){let S;if(this.match(a.comma))e||this.raise(this.state.pos,D.UnexpectedToken,","),S=null;else if(this.match(a.ellipsis)){const w=this.state.start,M=this.state.startLoc;S=this.parseParenItem(this.parseSpread(i,l),w,M)}else if(this.match(a.question)){this.expectPlugin("partialApplication"),h||this.raise(this.state.start,D.UnexpectedArgumentPlaceholder);const w=this.startNode();this.next(),S=this.finishNode(w,"ArgumentPlaceholder")}else S=this.parseMaybeAssignAllowIn(i,this.parseParenItem,l);return S}parseIdentifier(e){const i=this.startNode(),l=this.parseIdentifierName(i.start,e);return this.createIdentifier(i,l)}createIdentifier(e,i){return e.name=i,e.loc.identifierName=i,this.finishNode(e,"Identifier")}parseIdentifierName(e,i){let l;const{start:h,type:S}=this.state;if(S===a.name)l=this.state.value;else if(S.keyword){l=S.keyword;const w=this.curContext();(S===a._class||S===a._function)&&(w===re.functionStatement||w===re.functionExpression)&&this.state.context.pop()}else throw this.unexpected();return i?this.state.type=a.name:this.checkReservedWord(l,h,!!S.keyword,!1),this.next(),l}checkReservedWord(e,i,l,h){if(this.prodParam.hasYield&&e==="yield"){this.raise(i,D.YieldBindingIdentifier);return}if(e==="await")if(this.prodParam.hasAwait){this.raise(i,D.AwaitBindingIdentifier);return}else this.expressionScope.recordAsyncArrowParametersError(i,D.AwaitBindingIdentifier);if(this.scope.inClass&&!this.scope.inNonArrowFunction&&e==="arguments"){this.raise(i,D.ArgumentsInClass);return}if(l&&Ye(e)){this.raise(i,D.UnexpectedKeyword,e);return}const S=this.state.strict?h?Ue:Ae:ge;S(e,this.inModule)&&(!this.prodParam.hasAwait&&e==="await"?this.raise(i,this.hasPlugin("topLevelAwait")?D.AwaitNotInAsyncContext:D.AwaitNotInAsyncFunction):this.raise(i,D.UnexpectedReservedWord,e))}isAwaitAllowed(){return this.prodParam.hasAwait?!0:!!(this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(){const e=this.startNode();return this.next(),this.expressionScope.recordParameterInitializerError(e.start,D.AwaitExpressionFormalParameter),this.eat(a.star)&&this.raise(e.start,D.ObsoleteAwaitStar),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.hasPrecedingLineBreak()||this.match(a.plusMin)||this.match(a.parenL)||this.match(a.bracketL)||this.match(a.backQuote)||this.match(a.regexp)||this.match(a.slash)||this.hasPlugin("v8intrinsic")&&this.match(a.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,D.YieldInParameter),this.next(),this.match(a.semi)||!this.match(a.star)&&!this.state.type.startsExpr||this.hasPrecedingLineBreak()?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(a.star),e.argument=this.parseMaybeAssign()),this.finishNode(e,"YieldExpression")}checkPipelineAtInfixOperator(e,i){this.getPluginOption("pipelineOperator","proposal")==="smart"&&(e.type==="SequenceExpression"&&this.raise(i,D.PipelineHeadSequenceExpression))}parseSmartPipelineBody(e,i,l){return this.checkSmartPipelineBodyEarlyErrors(e,i),this.parseSmartPipelineBodyInStyle(e,i,l)}checkSmartPipelineBodyEarlyErrors(e,i){if(this.match(a.arrow))throw this.raise(this.state.start,D.PipelineBodyNoArrow);e.type==="SequenceExpression"&&this.raise(i,D.PipelineBodySequenceExpression)}parseSmartPipelineBodyInStyle(e,i,l){const h=this.startNodeAt(i,l),S=this.isSimpleReference(e);return S?h.callee=e:(this.topicReferenceWasUsedInCurrentTopicContext()||this.raise(i,D.PipelineTopicUnused),h.expression=e),this.finishNode(h,S?"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 i=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=i}}withTopicForbiddingContext(e){const i=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=i}}withSoloAwaitPermittingContext(e){const i=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=i}}allowInAnd(e){const i=this.prodParam.currentFlags(),l=Et&~i;if(l){this.prodParam.enter(i|Et);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){const i=this.prodParam.currentFlags(),l=Et&i;if(l){this.prodParam.enter(i&~Et);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}primaryTopicReferenceIsAllowedInCurrentTopicContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentTopicContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const i=this.state.start,l=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const h=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const S=this.parseExprOp(this.parseMaybeUnary(),i,l,e);return this.state.inFSharpPipelineDirectBody=h,S}}const cr={kind:"loop"},Dr={kind:"switch"},Lr=0,fr=1,yr=2,br=4,Mr=/[\uD800-\uDFFF]/u;class Br extends kr{parseTopLevel(e,i){if(i.sourceType=this.options.sourceType,i.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(i,!0,!0,a.eof),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let l=0,h=Array.from(this.scope.undefinedExports);l<h.length;l++){const[S]=h[l],w=this.scope.undefinedExports.get(S);this.raise(w,D.ModuleExportUndefined,S)}return e.program=this.finishNode(i,"Program"),e.comments=this.state.comments,this.options.tokens&&(e.tokens=this.tokens),this.finishNode(e,"File")}stmtToDirective(e){const i=e.expression,l=this.startNodeAt(i.start,i.loc.start),h=this.startNodeAt(e.start,e.loc.start),S=this.input.slice(i.start,i.end),w=l.value=S.slice(1,-1);return this.addExtra(l,"raw",S),this.addExtra(l,"rawValue",w),h.value=this.finishNodeAt(l,"DirectiveLiteral",i.end,i.loc.end),this.finishNodeAt(h,"Directive",e.end,e.loc.end)}parseInterpreterDirective(){if(!this.match(a.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 i=this.nextTokenStart(),l=this.input.charCodeAt(i);if(l===91)return!0;if(e)return!1;if(l===123)return!0;if(X(l)){let h=i+1;for(;J(this.input.charCodeAt(h));)++h;const S=this.input.slice(i,h);if(!at.test(S))return!0}return!1}parseStatement(e,i){return this.match(a.at)&&this.parseDecorators(!0),this.parseStatementContent(e,i)}parseStatementContent(e,i){let l=this.state.type;const h=this.startNode();let S;this.isLet(e)&&(l=a._var,S="let");switch(l){case a._break:case a._continue:return this.parseBreakContinueStatement(h,l.keyword);case a._debugger:return this.parseDebuggerStatement(h);case a._do:return this.parseDoStatement(h);case a._for:return this.parseForStatement(h);case a._function:if(this.lookaheadCharCode()===46)break;return e&&(this.state.strict?this.raise(this.state.start,D.StrictFunction):e!=="if"&&e!=="label"&&this.raise(this.state.start,D.SloppyFunction)),this.parseFunctionStatement(h,!1,!e);case a._class:return e&&this.unexpected(),this.parseClass(h,!0);case a._if:return this.parseIfStatement(h);case a._return:return this.parseReturnStatement(h);case a._switch:return this.parseSwitchStatement(h);case a._throw:return this.parseThrowStatement(h);case a._try:return this.parseTryStatement(h);case a._const:case a._var:return S=S||this.state.value,e&&S!=="var"&&this.raise(this.state.start,D.UnexpectedLexicalDeclaration),this.parseVarStatement(h,S);case a._while:return this.parseWhileStatement(h);case a._with:return this.parseWithStatement(h);case a.braceL:return this.parseBlock();case a.semi:return this.parseEmptyStatement(h);case a._import:{const Y=this.lookaheadCharCode();if(Y===40||Y===46)break}case a._export:{!this.options.allowImportExportEverywhere&&!i&&this.raise(this.state.start,D.UnexpectedImportExport),this.next();let Y;return l===a._import?(Y=this.parseImport(h),Y.type==="ImportDeclaration"&&(!Y.importKind||Y.importKind==="value")&&(this.sawUnambiguousESM=!0)):(Y=this.parseExport(h),(Y.type==="ExportNamedDeclaration"&&(!Y.exportKind||Y.exportKind==="value")||Y.type==="ExportAllDeclaration"&&(!Y.exportKind||Y.exportKind==="value")||Y.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(h),Y}default:if(this.isAsyncFunction())return e&&this.raise(this.state.start,D.AsyncFunctionInSingleStatementContext),this.next(),this.parseFunctionStatement(h,!0,!e)}const w=this.state.value,M=this.parseExpression();return l===a.name&&M.type==="Identifier"&&this.eat(a.colon)?this.parseLabeledStatement(h,w,M,e):this.parseExpressionStatement(h,M)}assertModuleNodeAllowed(e){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raiseWithData(e.start,{code:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},D.ImportOutsideModule)}takeDecorators(e){const i=this.state.decoratorStack[this.state.decoratorStack.length-1];i.length&&(e.decorators=i,this.resetStartLocationFromNode(e,i[0]),this.state.decoratorStack[this.state.decoratorStack.length-1]=[])}canHaveLeadingDecorator(){return this.match(a._class)}parseDecorators(e){const i=this.state.decoratorStack[this.state.decoratorStack.length-1];for(;this.match(a.at);){const l=this.parseDecorator();i.push(l)}if(this.match(a._export))e||this.unexpected(),this.hasPlugin("decorators")&&!this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,D.DecoratorExportClass);else if(!this.canHaveLeadingDecorator())throw this.raise(this.state.start,D.UnexpectedLeadingDecorator)}parseDecorator(){this.expectOnePlugin(["decorators-legacy","decorators"]);const e=this.startNode();if(this.next(),this.hasPlugin("decorators")){this.state.decoratorStack.push([]);const i=this.state.start,l=this.state.startLoc;let h;if(this.eat(a.parenL))h=this.parseExpression(),this.expect(a.parenR);else for(h=this.parseIdentifier(!1);this.eat(a.dot);){const S=this.startNodeAt(i,l);S.object=h,S.property=this.parseIdentifier(!0),S.computed=!1,h=this.finishNode(S,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(h),this.state.decoratorStack.pop()}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(a.parenL)){const i=this.startNodeAtNode(e);return i.callee=e,i.arguments=this.parseCallExpressionArguments(a.parenR,!1),this.toReferencedList(i.arguments),this.finishNode(i,"CallExpression")}return e}parseBreakContinueStatement(e,i){const l=i==="break";return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,i),this.finishNode(e,l?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,i){const l=i==="break";let h;for(h=0;h<this.state.labels.length;++h){const S=this.state.labels[h];if(e.label==null||S.name===e.label.name){if(S.kind!=null&&(l||S.kind==="loop"))break;if(e.label&&l)break}}h===this.state.labels.length&&this.raise(e.start,D.IllegalBreakContinue,i)}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(a.parenL);const e=this.parseExpression();return this.expect(a.parenR),e}parseDoStatement(e){return this.next(),this.state.labels.push(cr),e.body=this.withTopicForbiddingContext(()=>this.parseStatement("do")),this.state.labels.pop(),this.expect(a._while),e.test=this.parseHeaderExpression(),this.eat(a.semi),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(cr);let i=-1;if(this.isAwaitAllowed()&&this.eatContextual("await")&&(i=this.state.lastTokStart),this.scope.enter($e),this.expect(a.parenL),this.match(a.semi))return i>-1&&this.unexpected(i),this.parseFor(e,null);const l=this.isLet();if(this.match(a._var)||this.match(a._const)||l){const w=this.startNode(),M=l?"let":this.state.value;return this.next(),this.parseVar(w,!0,M),this.finishNode(w,"VariableDeclaration"),(this.match(a._in)||this.isContextual("of"))&&w.declarations.length===1?this.parseForIn(e,w,i):(i>-1&&this.unexpected(i),this.parseFor(e,w))}const h=new qt,S=this.parseExpression(!0,h);if(this.match(a._in)||this.isContextual("of")){this.toAssignable(S,!0);const w=this.isContextual("of")?"for-of statement":"for-in statement";return this.checkLVal(S,w),this.parseForIn(e,S,i)}else this.checkExpressionErrors(h,!0);return i>-1&&this.unexpected(i),this.parseFor(e,S)}parseFunctionStatement(e,i,l){return this.next(),this.parseFunction(e,fr|(l?0:yr),i)}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(a._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(this.state.start,D.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 i=e.cases=[];this.expect(a.braceL),this.state.labels.push(Dr),this.scope.enter($e);let l;for(let h;!this.match(a.braceR);)if(this.match(a._case)||this.match(a._default)){const S=this.match(a._case);l&&this.finishNode(l,"SwitchCase"),i.push(l=this.startNode()),l.consequent=[],this.next(),S?l.test=this.parseExpression():(h&&this.raise(this.state.lastTokStart,D.MultipleDefaultsInSwitch),h=!0,l.test=null),this.expect(a.colon)}else l?l.consequent.push(this.parseStatement(null)):this.unexpected();return this.scope.exit(),l&&this.finishNode(l,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(this.state.lastTokEnd,D.NewlineAfterThrow),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom(),i=e.type==="Identifier";return this.scope.enter(i?Oe:0),this.checkLVal(e,"catch clause",qe),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(a._catch)){const i=this.startNode();this.next(),this.match(a.parenL)?(this.expect(a.parenL),i.param=this.parseCatchClauseParam(),this.expect(a.parenR)):(i.param=null,this.scope.enter($e)),i.body=this.withTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(i,"CatchClause")}return e.finalizer=this.eat(a._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,D.NoCatchOrFinally),this.finishNode(e,"TryStatement")}parseVarStatement(e,i){return this.next(),this.parseVar(e,!1,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(cr),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,D.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,i,l,h){for(let w=0,M=this.state.labels;w<M.length;w++){const Y=M[w];Y.name===i&&this.raise(l.start,D.LabelRedeclaration,i)}const S=this.state.type.isLoop?"loop":this.match(a._switch)?"switch":null;for(let w=this.state.labels.length-1;w>=0;w--){const M=this.state.labels[w];if(M.statementStart===e.start)M.statementStart=this.state.start,M.kind=S;else break}return this.state.labels.push({name:i,kind:S,statementStart:this.state.start}),e.body=this.parseStatement(h?h.indexOf("label")===-1?h+"label":h:"label"),this.state.labels.pop(),e.label=l,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,i){return e.expression=i,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,i=!0,l){const h=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(a.braceL),i&&this.scope.enter($e),this.parseBlockBody(h,e,!1,a.braceR,l),i&&this.scope.exit(),this.finishNode(h,"BlockStatement")}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,i,l,h,S){const w=e.body=[],M=e.directives=[];this.parseBlockOrModuleBlockBody(w,i?M:void 0,l,h,S)}parseBlockOrModuleBlockBody(e,i,l,h,S){const w=this.state.strict;let M=!1,Y=!1;for(;!this.match(h);){const q=this.parseStatement(null,l);if(i&&!Y){if(this.isValidDirective(q)){const ne=this.stmtToDirective(q);i.push(ne),!M&&ne.value.value==="use strict"&&(M=!0,this.setStrict(!0));continue}Y=!0,this.state.strictErrors.clear()}e.push(q)}S&&S.call(this,M),w||this.setStrict(!1),this.next()}parseFor(e,i){return e.init=i,this.expect(a.semi),e.test=this.match(a.semi)?null:this.parseExpression(),this.expect(a.semi),e.update=this.match(a.parenR)?null:this.parseExpression(),this.expect(a.parenR),e.body=this.withTopicForbiddingContext(()=>this.parseStatement("for")),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,i,l){const h=this.match(a._in);return this.next(),h?l>-1&&this.unexpected(l):e.await=l>-1,i.type==="VariableDeclaration"&&i.declarations[0].init!=null&&(!h||this.state.strict||i.kind!=="var"||i.declarations[0].id.type!=="Identifier")?this.raise(i.start,D.ForInOfLoopInitializer,h?"for-in":"for-of"):i.type==="AssignmentPattern"&&this.raise(i.start,D.InvalidLhs,"for-loop"),e.left=i,e.right=h?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(a.parenR),e.body=this.withTopicForbiddingContext(()=>this.parseStatement("for")),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,h?"ForInStatement":"ForOfStatement")}parseVar(e,i,l){const h=e.declarations=[],S=this.hasPlugin("typescript");for(e.kind=l;;){const w=this.startNode();if(this.parseVarId(w,l),this.eat(a.eq)?w.init=i?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():(l==="const"&&!(this.match(a._in)||this.isContextual("of"))?S||this.raise(this.state.lastTokEnd,D.DeclarationMissingInitializer,"Const declarations"):w.id.type!=="Identifier"&&!(i&&(this.match(a._in)||this.isContextual("of")))&&this.raise(this.state.lastTokEnd,D.DeclarationMissingInitializer,"Complex binding patterns"),w.init=null),h.push(this.finishNode(w,"VariableDeclarator")),!this.eat(a.comma))break}return e}parseVarId(e,i){e.id=this.parseBindingAtom(),this.checkLVal(e.id,"variable declaration",i==="var"?ce:qe,void 0,i!=="var")}parseFunction(e,i=Lr,l=!1){const h=i&fr,S=i&yr,w=!!h&&!(i&br);this.initFunction(e,l),this.match(a.star)&&S&&this.raise(this.state.start,D.GeneratorInSingleStatementContext),e.generator=this.eat(a.star),h&&(e.id=this.parseFunctionId(w));const M=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(Qe),this.prodParam.enter(o(l,e.generator)),h||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,h?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),h&&!S&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=M,e}parseFunctionId(e){return e||this.match(a.name)?this.parseIdentifier():null}parseFunctionParams(e,i){this.expect(a.parenL),this.expressionScope.enter(Cr()),e.params=this.parseBindingList(a.parenR,41,!1,i),this.expressionScope.exit()}registerFunctionStatementId(e){if(!e.id)return;this.scope.declareName(e.id.name,this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?ce:qe:Ve,e.id.start)}parseClass(e,i,l){this.next(),this.takeDecorators(e);const h=this.state.strict;return this.state.strict=!0,this.parseClassId(e,i,l),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,h),this.finishNode(e,i?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(a.eq)||this.match(a.semi)||this.match(a.braceR)}isClassMethod(){return this.match(a.parenL)}isNonstaticConstructor(e){return!e.computed&&!e.static&&(e.key.name==="constructor"||e.key.value==="constructor")}parseClassBody(e,i){this.classScope.enter();const l={constructorAllowsSuper:e,hadConstructor:!1,hadStaticBlock:!1};let h=[];const S=this.startNode();if(S.body=[],this.expect(a.braceL),this.withTopicForbiddingContext(()=>{for(;!this.match(a.braceR);){if(this.eat(a.semi)){if(h.length>0)throw this.raise(this.state.lastTokEnd,D.DecoratorSemicolon);continue}if(this.match(a.at)){h.push(this.parseDecorator());continue}const w=this.startNode();h.length&&(w.decorators=h,this.resetStartLocationFromNode(w,h[0]),h=[]),this.parseClassMember(S,w,l),w.kind==="constructor"&&w.decorators&&w.decorators.length>0&&this.raise(w.start,D.DecoratorConstructor)}}),this.state.strict=i,this.next(),h.length)throw this.raise(this.state.start,D.TrailingDecorator);return this.classScope.exit(),this.finishNode(S,"ClassBody")}parseClassMemberFromModifier(e,i){const l=this.parseIdentifier(!0);if(this.isClassMethod()){const h=i;return h.kind="method",h.computed=!1,h.key=l,h.static=!1,this.pushClassMethod(e,h,!1,!1,!1,!1),!0}else if(this.isClassProperty()){const h=i;return h.computed=!1,h.key=l,h.static=!1,e.body.push(this.parseClassProperty(h)),!0}return!1}parseClassMember(e,i,l){const h=this.isContextual("static");if(h){if(this.parseClassMemberFromModifier(e,i))return;if(this.eat(a.braceL)){this.parseClassStaticBlock(e,i,l);return}}this.parseClassMemberWithIsStatic(e,i,l,h)}parseClassMemberWithIsStatic(e,i,l,h){const S=i,w=i,M=i,Y=i,q=S,ne=S;if(i.static=h,this.eat(a.star)){if(q.kind="method",this.parseClassElementName(q),this.isPrivateName(q.key)){this.pushClassPrivateMethod(e,w,!0,!1);return}this.isNonstaticConstructor(S)&&this.raise(S.key.start,D.ConstructorIsGenerator),this.pushClassMethod(e,S,!0,!1,!1,!1);return}const Ee=this.state.containsEsc,be=this.parseClassElementName(i),Se=this.isPrivateName(be),Ce=be.type==="Identifier",We=this.state.start;if(this.parsePostMemberNameModifiers(ne),this.isClassMethod()){if(q.kind="method",Se){this.pushClassPrivateMethod(e,w,!1,!1);return}const Fe=this.isNonstaticConstructor(S);let ze=!1;Fe&&(S.kind="constructor",l.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(be.start,D.DuplicateConstructor),l.hadConstructor=!0,ze=l.constructorAllowsSuper),this.pushClassMethod(e,S,!1,!1,Fe,ze)}else if(this.isClassProperty())Se?this.pushClassPrivateProperty(e,Y):this.pushClassProperty(e,M);else if(Ce&&be.name==="async"&&!Ee&&!this.isLineTerminator()){const Fe=this.eat(a.star);ne.optional&&this.unexpected(We),q.kind="method",this.parseClassElementName(q),this.parsePostMemberNameModifiers(ne),this.isPrivateName(q.key)?this.pushClassPrivateMethod(e,w,Fe,!0):(this.isNonstaticConstructor(S)&&this.raise(S.key.start,D.ConstructorIsAsync),this.pushClassMethod(e,S,Fe,!0,!1,!1))}else Ce&&(be.name==="get"||be.name==="set")&&!Ee&&!(this.match(a.star)&&this.isLineTerminator())?(q.kind=be.name,this.parseClassElementName(S),this.isPrivateName(q.key)?this.pushClassPrivateMethod(e,w,!1,!1):(this.isNonstaticConstructor(S)&&this.raise(S.key.start,D.ConstructorIsAccessor),this.pushClassMethod(e,S,!1,!1,!1,!1)),this.checkGetterSetterParams(S)):this.isLineTerminator()?Se?this.pushClassPrivateProperty(e,Y):this.pushClassProperty(e,M):this.unexpected()}parseClassElementName(e){const i=this.parsePropertyName(e,!0);return!e.computed&&e.static&&(i.name==="prototype"||i.value==="prototype")&&this.raise(i.start,D.StaticPrototype),this.isPrivateName(i)&&this.getPrivateNameSV(i)==="constructor"&&this.raise(i.start,D.ConstructorClassPrivateField),i}parseClassStaticBlock(e,i,l){var h;this.expectPlugin("classStaticBlock",i.start),this.scope.enter(we|tt),this.expressionScope.enter(lr());const S=this.state.labels;this.state.labels=[],this.prodParam.enter(ht);const w=i.body=[];this.parseBlockOrModuleBlockBody(w,void 0,!1,a.braceR),this.prodParam.exit(),this.expressionScope.exit(),this.scope.exit(),this.state.labels=S,e.body.push(this.finishNode(i,"StaticBlock")),l.hadStaticBlock&&this.raise(i.start,D.DuplicateStaticBlock),((h=i.decorators)==null?void 0:h.length)&&this.raise(i.start,D.DecoratorStaticBlock),l.hadStaticBlock=!0}pushClassProperty(e,i){!i.computed&&(i.key.name==="constructor"||i.key.value==="constructor")&&this.raise(i.key.start,D.ConstructorClassField),e.body.push(this.parseClassProperty(i))}pushClassPrivateProperty(e,i){this.expectPlugin("classPrivateProperties",i.key.start);const l=this.parseClassPrivateProperty(i);e.body.push(l),this.classScope.declarePrivateName(this.getPrivateNameSV(l.key),Dt,l.key.start)}pushClassMethod(e,i,l,h,S,w){e.body.push(this.parseMethod(i,l,h,S,w,"ClassMethod",!0))}pushClassPrivateMethod(e,i,l,h){this.expectPlugin("classPrivateMethods",i.key.start);const S=this.parseMethod(i,l,h,!1,!1,"ClassPrivateMethod",!0);e.body.push(S);const w=S.kind==="get"?S.static?Vt:$t:S.kind==="set"?S.static?Ut:Qt:Dt;this.classScope.declarePrivateName(this.getPrivateNameSV(S.key),w,S.key.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return(!e.typeAnnotation||this.match(a.eq))&&this.expectPlugin("classProperties"),this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseInitializer(e){this.scope.enter(we|tt),this.expressionScope.enter(lr()),this.prodParam.enter(ht),e.value=this.eat(a.eq)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,i,l,h=ve){this.match(a.name)?(e.id=this.parseIdentifier(),i&&this.checkLVal(e.id,"class name",h)):l||!i?e.id=null:this.unexpected(null,D.MissingClassName)}parseClassSuper(e){e.superClass=this.eat(a._extends)?this.parseExprSubscripts():null}parseExport(e){const i=this.maybeParseExportDefaultSpecifier(e),l=!i||this.eat(a.comma),h=l&&this.eatExportStar(e),S=h&&this.maybeParseExportNamespaceSpecifier(e),w=l&&(!S||this.eat(a.comma)),M=i||h;if(h&&!S)return i&&this.unexpected(),this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration");const Y=this.maybeParseExportNamedSpecifiers(e);if(i&&l&&!h&&!Y||S&&w&&!Y)throw this.unexpected(null,a.braceL);let q;if(M||Y?(q=!1,this.parseExportFrom(e,M)):q=this.maybeParseExportDeclaration(e),M||Y||q)return this.checkExport(e,!0,!1,!!e.source),this.finishNode(e,"ExportNamedDeclaration");if(this.eat(a._default))return e.declaration=this.parseExportDefaultExpression(),this.checkExport(e,!0,!0),this.finishNode(e,"ExportDefaultDeclaration");throw this.unexpected(null,a.braceL)}eatExportStar(e){return this.eat(a.star)}maybeParseExportDefaultSpecifier(e){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");const i=this.startNode();return i.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual("as")){e.specifiers||(e.specifiers=[]);const i=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),i.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(i,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){return this.match(a.braceL)?(e.specifiers||(e.specifiers=[]),e.specifiers.push(...this.parseExportSpecifiers()),e.source=null,e.declaration=null,!0):!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual("async"))return!1;const e=this.nextTokenStart();return!O.test(this.input.slice(this.state.pos,e))&&this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode(),i=this.isAsyncFunction();if(this.match(a._function)||i)return this.next(),i&&this.next(),this.parseFunction(e,fr|br,i);if(this.match(a._class))return this.parseClass(e,!0,!0);if(this.match(a.at))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,D.DecoratorBeforeExport),this.parseDecorators(!1),this.parseClass(e,!0,!0);if(this.match(a._const)||this.match(a._var)||this.isLet())throw this.raise(this.state.start,D.UnsupportedDefaultExport);{const l=this.parseMaybeAssignAllowIn();return this.semicolon(),l}}parseExportDeclaration(e){return this.parseStatement(null)}isExportDefaultSpecifier(){if(this.match(a.name)){const l=this.state.value;if(l==="async"&&!this.state.containsEsc||l==="let")return!1;if((l==="type"||l==="interface")&&!this.state.containsEsc){const h=this.lookahead();if(h.type===a.name&&h.value!=="from"||h.type===a.braceL)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(a._default))return!1;const e=this.nextTokenStart(),i=this.isUnparsedContextual(e,"from");if(this.input.charCodeAt(e)===44||this.match(a.name)&&i)return!0;if(this.match(a._default)&&i){const l=this.input.charCodeAt(this.nextTokenStartSince(e+4));return l===34||l===39}return!1}parseExportFrom(e,i){if(this.eatContextual("from")){e.source=this.parseImportSource(),this.checkExport(e);const l=this.maybeParseImportAssertions();l&&(e.assertions=l)}else i?this.unexpected():e.source=null;this.semicolon()}shouldParseExportDeclaration(){if(this.match(a.at)&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators")))if(this.getPluginOption("decorators","decoratorsBeforeExport"))this.unexpected(this.state.start,D.DecoratorBeforeExport);else return!0;return this.state.type.keyword==="var"||this.state.type.keyword==="const"||this.state.type.keyword==="function"||this.state.type.keyword==="class"||this.isLet()||this.isAsyncFunction()}checkExport(e,i,l,h){if(i){if(l){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var S;const M=e.declaration;M.type==="Identifier"&&M.name==="from"&&M.end-M.start===4&&!((S=M.extra)==null?void 0:S.parenthesized)&&this.raise(M.start,D.ExportDefaultFromAsIdentifier)}}else if(e.specifiers&&e.specifiers.length)for(let M=0,Y=e.specifiers;M<Y.length;M++){const q=Y[M],{exported:ne}=q,Ee=ne.type==="Identifier"?ne.name:ne.value;if(this.checkDuplicateExports(q,Ee),!h&&q.local){const{local:be}=q;be.type==="StringLiteral"?this.raise(q.start,D.ExportBindingIsString,be.value,Ee):(this.checkReservedWord(be.name,be.start,!0,!1),this.scope.checkLocalExport(be))}}else if(e.declaration){if(e.declaration.type==="FunctionDeclaration"||e.declaration.type==="ClassDeclaration"){const M=e.declaration.id;if(!M)throw new Error("Assertion failure");this.checkDuplicateExports(e,M.name)}else if(e.declaration.type==="VariableDeclaration")for(let M=0,Y=e.declaration.declarations;M<Y.length;M++){const q=Y[M];this.checkDeclaration(q.id)}}}const w=this.state.decoratorStack[this.state.decoratorStack.length-1];if(w.length)throw this.raise(e.start,D.UnsupportedDecoratorExport)}checkDeclaration(e){if(e.type==="Identifier")this.checkDuplicateExports(e,e.name);else if(e.type==="ObjectPattern")for(let i=0,l=e.properties;i<l.length;i++){const h=l[i];this.checkDeclaration(h)}else if(e.type==="ArrayPattern")for(let i=0,l=e.elements;i<l.length;i++){const h=l[i];h&&this.checkDeclaration(h)}else e.type==="ObjectProperty"?this.checkDeclaration(e.value):e.type==="RestElement"?this.checkDeclaration(e.argument):e.type==="AssignmentPattern"&&this.checkDeclaration(e.left)}checkDuplicateExports(e,i){this.state.exportedIdentifiers.indexOf(i)>-1&&this.raise(e.start,i==="default"?D.DuplicateDefaultExport:D.DuplicateExport,i),this.state.exportedIdentifiers.push(i)}parseExportSpecifiers(){const e=[];let i=!0;for(this.expect(a.braceL);!this.eat(a.braceR);){if(i)i=!1;else if(this.expect(a.comma),this.eat(a.braceR))break;const l=this.startNode();l.local=this.parseModuleExportName(),l.exported=this.eatContextual("as")?this.parseModuleExportName():l.local.__clone(),e.push(this.finishNode(l,"ExportSpecifier"))}return e}parseModuleExportName(){if(this.match(a.string)){this.expectPlugin("moduleStringNames");const e=this.parseLiteral(this.state.value,"StringLiteral"),i=e.value.match(Mr);return i&&this.raise(e.start,D.ModuleExportNameHasLoneSurrogate,i[0].charCodeAt(0).toString(16)),e}return this.parseIdentifier(!0)}parseImport(e){if(e.specifiers=[],!this.match(a.string)){const l=this.maybeParseDefaultImportSpecifier(e),h=!l||this.eat(a.comma),S=h&&this.maybeParseStarImportSpecifier(e);h&&!S&&this.parseNamedImportSpecifiers(e),this.expectContextual("from")}e.source=this.parseImportSource();const i=this.maybeParseImportAssertions();if(i)e.assertions=i;else{const l=this.maybeParseModuleAttributes();l&&(e.attributes=l)}return this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(a.string)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(e){return this.match(a.name)}parseImportSpecifierLocal(e,i,l,h){i.local=this.parseIdentifier(),this.checkLVal(i.local,h,qe),e.specifiers.push(this.finishNode(i,l))}parseAssertEntries(){const e=[],i=new Set;do{if(this.match(a.braceR))break;const l=this.startNode(),h=this.state.value;if(this.match(a.string)?l.key=this.parseLiteral(h,"StringLiteral"):l.key=this.parseIdentifier(!0),this.expect(a.colon),h!=="type"&&this.raise(l.key.start,D.ModuleAttributeDifferentFromType,h),i.has(h)&&this.raise(l.key.start,D.ModuleAttributesWithDuplicateKeys,h),i.add(h),!this.match(a.string))throw this.unexpected(this.state.start,D.ModuleAttributeInvalidValue);l.value=this.parseLiteral(this.state.value,"StringLiteral"),this.finishNode(l,"ImportAttribute"),e.push(l)}while(this.eat(a.comma));return e}maybeParseModuleAttributes(){if(this.match(a._with)&&!this.hasPrecedingLineBreak())this.expectPlugin("moduleAttributes"),this.next();else return this.hasPlugin("moduleAttributes")?[]:null;const e=[],i=new Set;do{const l=this.startNode();if(l.key=this.parseIdentifier(!0),l.key.name!=="type"&&this.raise(l.key.start,D.ModuleAttributeDifferentFromType,l.key.name),i.has(l.key.name)&&this.raise(l.key.start,D.ModuleAttributesWithDuplicateKeys,l.key.name),i.add(l.key.name),this.expect(a.colon),!this.match(a.string))throw this.unexpected(this.state.start,D.ModuleAttributeInvalidValue);l.value=this.parseLiteral(this.state.value,"StringLiteral"),this.finishNode(l,"ImportAttribute"),e.push(l)}while(this.eat(a.comma));return e}maybeParseImportAssertions(){if(this.isContextual("assert")&&!this.hasPrecedingLineBreak())this.expectPlugin("importAssertions"),this.next();else return this.hasPlugin("importAssertions")?[]:null;this.eat(a.braceL);const e=this.parseAssertEntries();return this.eat(a.braceR),e}maybeParseDefaultImportSpecifier(e){return this.shouldParseDefaultImport(e)?(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier","default import specifier"),!0):!1}maybeParseStarImportSpecifier(e){if(this.match(a.star)){const i=this.startNode();return this.next(),this.expectContextual("as"),this.parseImportSpecifierLocal(e,i,"ImportNamespaceSpecifier","import namespace specifier"),!0}return!1}parseNamedImportSpecifiers(e){let i=!0;for(this.expect(a.braceL);!this.eat(a.braceR);){if(i)i=!1;else{if(this.eat(a.colon))throw this.raise(this.state.start,D.DestructureNamedImport);if(this.expect(a.comma),this.eat(a.braceR))break}this.parseImportSpecifier(e)}}parseImportSpecifier(e){const i=this.startNode();if(i.imported=this.parseModuleExportName(),this.eatContextual("as"))i.local=this.parseIdentifier();else{const{imported:l}=i;if(l.type==="StringLiteral")throw this.raise(i.start,D.ImportBindingIsString,l.value);this.checkReservedWord(l.name,i.start,!0,!0),i.local=l.__clone()}this.checkLVal(i.local,"import specifier",qe),e.specifiers.push(this.finishNode(i,"ImportSpecifier"))}}class Rr{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class Fr{constructor(e){this.stack=[],this.undefinedPrivateNames=new Map,this.raise=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Rr)}exit(){const e=this.stack.pop(),i=this.current();for(let l=0,h=Array.from(e.undefinedPrivateNames);l<h.length;l++){const[S,w]=h[l];i?i.undefinedPrivateNames.has(S)||i.undefinedPrivateNames.set(S,w):this.raise(w,D.InvalidPrivateFieldResolution,S)}}declarePrivateName(e,i,l){const h=this.current();let S=h.privateNames.has(e);if(i&Ct){const w=S&&h.loneAccessors.get(e);if(w){const M=w&At,Y=i&At,q=w&Ct,ne=i&Ct;S=q===ne||M!==Y,S||h.loneAccessors.delete(e)}else S||h.loneAccessors.set(e,i)}S&&this.raise(l,D.PrivateNameRedeclaration,e),h.privateNames.add(e),h.undefinedPrivateNames.delete(e)}usePrivateName(e,i){let l;for(let h=0,S=this.stack;h<S.length;h++)if(l=S[h],l.privateNames.has(e))return;l?l.undefinedPrivateNames.set(e,i):this.raise(i,D.InvalidPrivateFieldResolution,e)}}class Tr extends Br{constructor(e,i){e=vt(e),super(e,i);const l=this.getScopeHandler();this.options=e,this.inModule=this.options.sourceType==="module",this.scope=new l(this.raise.bind(this),this.inModule),this.prodParam=new sr,this.classScope=new Fr(this.raise.bind(this)),this.expressionScope=new Ir(this.raise.bind(this)),this.plugins=jr(this.options.plugins),this.filename=e.sourceFilename}getScopeHandler(){return _e}parse(){let e=ht;this.hasPlugin("topLevelAwait")&&this.inModule&&(e|=_t),this.scope.enter(rt),this.prodParam.enter(e);const i=this.startNode(),l=this.startNode();return this.nextToken(),i.errors=null,this.parseTopLevel(i,l),i.errors=this.state.errors,i}}function jr(U){const e=new Map;for(let i=0;i<U.length;i++){const l=U[i],[h,S]=Array.isArray(l)?l:[l,{}];e.has(h)||e.set(h,S||{})}return e}function Vr(U,e){var i;if(((i=e)==null?void 0:i.sourceType)==="unambiguous"){e=Object.assign({},e);try{e.sourceType="module";const l=Rt(e,U),h=l.parse();if(l.sawUnambiguousESM)return h;if(l.ambiguousScriptDifferentAst)try{return e.sourceType="script",Rt(e,U).parse()}catch(S){}else h.program.sourceType="script";return h}catch(l){try{return e.sourceType="script",Rt(e,U).parse()}catch(h){}throw l}}else return Rt(e,U).parse()}function Ur(U,e){const i=Rt(e,U);return i.options.strictMode&&(i.state.strict=!0),i.getExpression()}function Rt(U,e){let i=Tr;return(U==null?void 0:U.plugins)&&(bt(U.plugins),i=Kr(U.plugins)),new i(U,e)}const gr={};function Kr(U){const e=Ot.filter(h=>fe(U,h)),i=e.join("/");let l=gr[i];if(!l){l=Tr;for(let h=0;h<e.length;h++){const S=e[h];l=Tt[S](l)}gr[i]=l}return l}t.parse=Vr,t.parseExpression=Ur,t.tokTypes=a},{}],6:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=m(T("../validators/isNode"));function m(b){return b&&b.__esModule?b:{default:b}}function f(b){if(!(0,r.default)(b)){var g;const p=(g=b==null?void 0:b.type)!=null?g:JSON.stringify(b);throw new TypeError(`Not a valid node of type "${p}"`)}}},{"../validators/isNode":72}],7:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertArrayExpression=b,t.assertAssignmentExpression=g,t.assertBinaryExpression=p,t.assertInterpreterDirective=c,t.assertDirective=d,t.assertDirectiveLiteral=E,t.assertBlockStatement=x,t.assertBreakStatement=a,t.assertCallExpression=O,t.assertCatchClause=_,t.assertConditionalExpression=L,t.assertContinueStatement=B,t.assertDebuggerStatement=k,t.assertDoWhileStatement=P,t.assertEmptyStatement=A,t.assertExpressionStatement=R,t.assertFile=j,t.assertForInStatement=v,t.assertForStatement=$,t.assertFunctionDeclaration=D,t.assertFunctionExpression=oe,t.assertIdentifier=z,t.assertIfStatement=Q,t.assertLabeledStatement=re,t.assertStringLiteral=K,t.assertNumericLiteral=H,t.assertNullLiteral=ie,t.assertBooleanLiteral=pe,t.assertRegExpLiteral=Te,t.assertLogicalExpression=ae,t.assertMemberExpression=le,t.assertNewExpression=X,t.assertProgram=J,t.assertObjectExpression=Z,t.assertObjectMethod=he,t.assertObjectProperty=Pe,t.assertRestElement=me,t.assertReturnStatement=ge,t.assertSequenceExpression=Ae,t.assertParenthesizedExpression=Ne,t.assertSwitchCase=Ue,t.assertSwitchStatement=Ye,t.assertThisExpression=at,t.assertThrowStatement=ot,t.assertTryStatement=$e,t.assertUnaryExpression=rt,t.assertUpdateExpression=Qe,t.assertVariableDeclaration=He,t.assertVariableDeclarator=Oe,t.assertWhileStatement=tt,t.assertWithStatement=Ie,t.assertAssignmentPattern=we,t.assertArrayPattern=je,t.assertArrowFunctionExpression=Be,t.assertClassBody=Je,t.assertClassExpression=Re,t.assertClassDeclaration=de,t.assertExportAllDeclaration=Ge,t.assertExportDefaultDeclaration=it,t.assertExportNamedDeclaration=St,t.assertExportSpecifier=et,t.assertForOfStatement=Ze,t.assertImportDeclaration=nt,t.assertImportDefaultSpecifier=Ke,t.assertImportNamespaceSpecifier=ve,t.assertImportSpecifier=qe,t.assertMetaProperty=ce,t.assertClassMethod=Ve,t.assertObjectPattern=ee,t.assertSpreadElement=ut,t.assertSuper=st,t.assertTaggedTemplateExpression=Pt,t.assertTemplateElement=Me,t.assertTemplateLiteral=ke,t.assertYieldExpression=It,t.assertAwaitExpression=jt,t.assertImport=At,t.assertBigIntLiteral=Nt,t.assertExportNamespaceSpecifier=kt,t.assertOptionalMemberExpression=Ct,t.assertOptionalCallExpression=Vt,t.assertAnyTypeAnnotation=Ut,t.assertArrayTypeAnnotation=$t,t.assertBooleanTypeAnnotation=Qt,t.assertBooleanLiteralTypeAnnotation=Dt,t.assertNullLiteralTypeAnnotation=Lt,t.assertClassImplements=se,t.assertDeclareClass=ft,t.assertDeclareFunction=mt,t.assertDeclareInterface=Mt,t.assertDeclareModule=Zt,t.assertDeclareModuleExports=er,t.assertDeclareTypeAlias=Kt,t.assertDeclareOpaqueType=tr,t.assertDeclareVariable=rr,t.assertDeclareExportDeclaration=Yt,t.assertDeclareExportAllDeclaration=ir,t.assertDeclaredPredicate=lt,t.assertExistsTypeAnnotation=pt,t.assertFunctionTypeAnnotation=yt,t.assertFunctionTypeParam=Xt,t.assertGenericTypeAnnotation=xt,t.assertInferredPredicate=_e,t.assertInterfaceExtends=nr,t.assertInterfaceDeclaration=Wt,t.assertInterfaceTypeAnnotation=ht,t.assertIntersectionTypeAnnotation=Bt,t.assertMixedTypeAnnotation=_t,t.assertEmptyTypeAnnotation=Jt,t.assertNullableTypeAnnotation=Et,t.assertNumberLiteralTypeAnnotation=sr,t.assertNumberTypeAnnotation=o,t.assertObjectTypeAnnotation=y,t.assertObjectTypeInternalSlot=I,t.assertObjectTypeCallProperty=N,t.assertObjectTypeIndexer=F,t.assertObjectTypeProperty=W,t.assertObjectTypeSpreadProperty=G,t.assertOpaqueType=ue,t.assertQualifiedTypeIdentifier=fe,t.assertStringLiteralTypeAnnotation=xe,t.assertStringTypeAnnotation=De,t.assertSymbolTypeAnnotation=Xe,t.assertThisTypeAnnotation=bt,t.assertTupleTypeAnnotation=Tt,t.assertTypeofTypeAnnotation=Ot,t.assertTypeAlias=gt,t.assertTypeAnnotation=vt,t.assertTypeCastExpression=ar,t.assertTypeParameter=Sr,t.assertTypeParameterDeclaration=Er,t.assertTypeParameterInstantiation=pr,t.assertUnionTypeAnnotation=dt,t.assertVariance=vr,t.assertVoidTypeAnnotation=Pr,t.assertEnumDeclaration=Ar,t.assertEnumBooleanBody=qt,t.assertEnumNumberBody=Ht,t.assertEnumStringBody=xr,t.assertEnumSymbolBody=or,t.assertEnumBooleanMember=_r,t.assertEnumNumberMember=wr,t.assertEnumStringMember=hr,t.assertEnumDefaultedMember=ur,t.assertJSXAttribute=dr,t.assertJSXClosingElement=Gt,t.assertJSXElement=mr,t.assertJSXEmptyExpression=Ir,t.assertJSXExpressionContainer=Cr,t.assertJSXSpreadChild=Or,t.assertJSXIdentifier=Nr,t.assertJSXMemberExpression=lr,t.assertJSXNamespacedName=kr,t.assertJSXOpeningElement=cr,t.assertJSXSpreadAttribute=Dr,t.assertJSXText=Lr,t.assertJSXFragment=fr,t.assertJSXOpeningFragment=yr,t.assertJSXClosingFragment=br,t.assertNoop=Mr,t.assertPlaceholder=Br,t.assertV8IntrinsicIdentifier=Rr,t.assertArgumentPlaceholder=Fr,t.assertBindExpression=Tr,t.assertClassProperty=jr,t.assertPipelineTopicExpression=Vr,t.assertPipelineBareFunction=Ur,t.assertPipelinePrimaryTopicReference=Rt,t.assertClassPrivateProperty=gr,t.assertClassPrivateMethod=Kr,t.assertImportAttribute=U,t.assertDecorator=e,t.assertDoExpression=i,t.assertExportDefaultSpecifier=l,t.assertPrivateName=h,t.assertRecordExpression=S,t.assertTupleExpression=w,t.assertDecimalLiteral=M,t.assertStaticBlock=Y,t.assertTSParameterProperty=q,t.assertTSDeclareFunction=ne,t.assertTSDeclareMethod=Ee,t.assertTSQualifiedName=be,t.assertTSCallSignatureDeclaration=Se,t.assertTSConstructSignatureDeclaration=Ce,t.assertTSPropertySignature=We,t.assertTSMethodSignature=Fe,t.assertTSIndexSignature=ze,t.assertTSAnyKeyword=ct,t.assertTSBooleanKeyword=zt,t.assertTSBigIntKeyword=Ft,t.assertTSIntrinsicKeyword=Xr,t.assertTSNeverKeyword=Wr,t.assertTSNullKeyword=Jr,t.assertTSNumberKeyword=qr,t.assertTSObjectKeyword=Hr,t.assertTSStringKeyword=Gr,t.assertTSSymbolKeyword=zr,t.assertTSUndefinedKeyword=$r,t.assertTSUnknownKeyword=Qr,t.assertTSVoidKeyword=Zr,t.assertTSThisType=ei,t.assertTSFunctionType=ti,t.assertTSConstructorType=ri,t.assertTSTypeReference=ii,t.assertTSTypePredicate=ni,t.assertTSTypeQuery=si,t.assertTSTypeLiteral=ai,t.assertTSArrayType=oi,t.assertTSTupleType=ui,t.assertTSOptionalType=li,t.assertTSRestType=ci,t.assertTSNamedTupleMember=fi,t.assertTSUnionType=pi,t.assertTSIntersectionType=hi,t.assertTSConditionalType=di,t.assertTSInferType=mi,t.assertTSParenthesizedType=yi,t.assertTSTypeOperator=bi,t.assertTSIndexedAccessType=Ti,t.assertTSMappedType=gi,t.assertTSLiteralType=Si,t.assertTSExpressionWithTypeArguments=Ei,t.assertTSInterfaceDeclaration=vi,t.assertTSInterfaceBody=Pi,t.assertTSTypeAliasDeclaration=Ai,t.assertTSAsExpression=xi,t.assertTSTypeAssertion=_i,t.assertTSEnumDeclaration=wi,t.assertTSEnumMember=Ii,t.assertTSModuleDeclaration=Ci,t.assertTSModuleBlock=Oi,t.assertTSImportType=Ni,t.assertTSImportEqualsDeclaration=ki,t.assertTSExternalModuleReference=Di,t.assertTSNonNullExpression=Li,t.assertTSExportAssignment=Mi,t.assertTSNamespaceExportDeclaration=Bi,t.assertTSTypeAnnotation=Ri,t.assertTSTypeParameterInstantiation=Fi,t.assertTSTypeParameterDeclaration=ji,t.assertTSTypeParameter=Vi,t.assertExpression=Ui,t.assertBinary=Ki,t.assertScopable=Yi,t.assertBlockParent=V,t.assertBlock=te,t.assertStatement=ye,t.assertTerminatorless=Le,t.assertCompletionStatement=wt,t.assertConditional=Yr,t.assertLoop=Xi,t.assertWhile=Wi,t.assertExpressionWrapper=Ji,t.assertFor=qi,t.assertForXStatement=Hi,t.assertFunction=Gi,t.assertFunctionParent=zi,t.assertPureish=$i,t.assertDeclaration=Qi,t.assertPatternLike=Zi,t.assertLVal=en,t.assertTSEntityName=tn,t.assertLiteral=rn,t.assertImmutable=nn,t.assertUserWhitespacable=sn,t.assertMethod=an,t.assertObjectMember=on,t.assertProperty=un,t.assertUnaryLike=ln,t.assertPattern=cn,t.assertClass=fn,t.assertModuleDeclaration=pn,t.assertExportDeclaration=hn,t.assertModuleSpecifier=dn,t.assertFlow=mn,t.assertFlowType=yn,t.assertFlowBaseAnnotation=bn,t.assertFlowDeclaration=Tn,t.assertFlowPredicate=gn,t.assertEnumBody=Sn,t.assertEnumMember=En,t.assertJSX=vn,t.assertPrivate=Pn,t.assertTSTypeElement=An,t.assertTSType=xn,t.assertTSBaseType=_n,t.assertNumberLiteral=wn,t.assertRegexLiteral=In,t.assertRestProperty=Cn,t.assertSpreadProperty=u;var r=m(T("../../validators/is"));function m(s){return s&&s.__esModule?s:{default:s}}function f(s,n,On){if(!(0,r.default)(s,n,On))throw new Error(`Expected type "${s}" with option ${JSON.stringify(On)}, but instead got "${n.type}".`)}function b(s,n){f("ArrayExpression",s,n)}function g(s,n){f("AssignmentExpression",s,n)}function p(s,n){f("BinaryExpression",s,n)}function c(s,n){f("InterpreterDirective",s,n)}function d(s,n){f("Directive",s,n)}function E(s,n){f("DirectiveLiteral",s,n)}function x(s,n){f("BlockStatement",s,n)}function a(s,n){f("BreakStatement",s,n)}function O(s,n){f("CallExpression",s,n)}function _(s,n){f("CatchClause",s,n)}function L(s,n){f("ConditionalExpression",s,n)}function B(s,n){f("ContinueStatement",s,n)}function k(s,n){f("DebuggerStatement",s,n)}function P(s,n){f("DoWhileStatement",s,n)}function A(s,n){f("EmptyStatement",s,n)}function R(s,n){f("ExpressionStatement",s,n)}function j(s,n){f("File",s,n)}function v(s,n){f("ForInStatement",s,n)}function $(s,n){f("ForStatement",s,n)}function D(s,n){f("FunctionDeclaration",s,n)}function oe(s,n){f("FunctionExpression",s,n)}function z(s,n){f("Identifier",s,n)}function Q(s,n){f("IfStatement",s,n)}function re(s,n){f("LabeledStatement",s,n)}function K(s,n){f("StringLiteral",s,n)}function H(s,n){f("NumericLiteral",s,n)}function ie(s,n){f("NullLiteral",s,n)}function pe(s,n){f("BooleanLiteral",s,n)}function Te(s,n){f("RegExpLiteral",s,n)}function ae(s,n){f("LogicalExpression",s,n)}function le(s,n){f("MemberExpression",s,n)}function X(s,n){f("NewExpression",s,n)}function J(s,n){f("Program",s,n)}function Z(s,n){f("ObjectExpression",s,n)}function he(s,n){f("ObjectMethod",s,n)}function Pe(s,n){f("ObjectProperty",s,n)}function me(s,n){f("RestElement",s,n)}function ge(s,n){f("ReturnStatement",s,n)}function Ae(s,n){f("SequenceExpression",s,n)}function Ne(s,n){f("ParenthesizedExpression",s,n)}function Ue(s,n){f("SwitchCase",s,n)}function Ye(s,n){f("SwitchStatement",s,n)}function at(s,n){f("ThisExpression",s,n)}function ot(s,n){f("ThrowStatement",s,n)}function $e(s,n){f("TryStatement",s,n)}function rt(s,n){f("UnaryExpression",s,n)}function Qe(s,n){f("UpdateExpression",s,n)}function He(s,n){f("VariableDeclaration",s,n)}function Oe(s,n){f("VariableDeclarator",s,n)}function tt(s,n){f("WhileStatement",s,n)}function Ie(s,n){f("WithStatement",s,n)}function we(s,n){f("AssignmentPattern",s,n)}function je(s,n){f("ArrayPattern",s,n)}function Be(s,n){f("ArrowFunctionExpression",s,n)}function Je(s,n){f("ClassBody",s,n)}function Re(s,n){f("ClassExpression",s,n)}function de(s,n){f("ClassDeclaration",s,n)}function Ge(s,n){f("ExportAllDeclaration",s,n)}function it(s,n){f("ExportDefaultDeclaration",s,n)}function St(s,n){f("ExportNamedDeclaration",s,n)}function et(s,n){f("ExportSpecifier",s,n)}function Ze(s,n){f("ForOfStatement",s,n)}function nt(s,n){f("ImportDeclaration",s,n)}function Ke(s,n){f("ImportDefaultSpecifier",s,n)}function ve(s,n){f("ImportNamespaceSpecifier",s,n)}function qe(s,n){f("ImportSpecifier",s,n)}function ce(s,n){f("MetaProperty",s,n)}function Ve(s,n){f("ClassMethod",s,n)}function ee(s,n){f("ObjectPattern",s,n)}function ut(s,n){f("SpreadElement",s,n)}function st(s,n){f("Super",s,n)}function Pt(s,n){f("TaggedTemplateExpression",s,n)}function Me(s,n){f("TemplateElement",s,n)}function ke(s,n){f("TemplateLiteral",s,n)}function It(s,n){f("YieldExpression",s,n)}function jt(s,n){f("AwaitExpression",s,n)}function At(s,n){f("Import",s,n)}function Nt(s,n){f("BigIntLiteral",s,n)}function kt(s,n){f("ExportNamespaceSpecifier",s,n)}function Ct(s,n){f("OptionalMemberExpression",s,n)}function Vt(s,n){f("OptionalCallExpression",s,n)}function Ut(s,n){f("AnyTypeAnnotation",s,n)}function $t(s,n){f("ArrayTypeAnnotation",s,n)}function Qt(s,n){f("BooleanTypeAnnotation",s,n)}function Dt(s,n){f("BooleanLiteralTypeAnnotation",s,n)}function Lt(s,n){f("NullLiteralTypeAnnotation",s,n)}function se(s,n){f("ClassImplements",s,n)}function ft(s,n){f("DeclareClass",s,n)}function mt(s,n){f("DeclareFunction",s,n)}function Mt(s,n){f("DeclareInterface",s,n)}function Zt(s,n){f("DeclareModule",s,n)}function er(s,n){f("DeclareModuleExports",s,n)}function Kt(s,n){f("DeclareTypeAlias",s,n)}function tr(s,n){f("DeclareOpaqueType",s,n)}function rr(s,n){f("DeclareVariable",s,n)}function Yt(s,n){f("DeclareExportDeclaration",s,n)}function ir(s,n){f("DeclareExportAllDeclaration",s,n)}function lt(s,n){f("DeclaredPredicate",s,n)}function pt(s,n){f("ExistsTypeAnnotation",s,n)}function yt(s,n){f("FunctionTypeAnnotation",s,n)}function Xt(s,n){f("FunctionTypeParam",s,n)}function xt(s,n){f("GenericTypeAnnotation",s,n)}function _e(s,n){f("InferredPredicate",s,n)}function nr(s,n){f("InterfaceExtends",s,n)}function Wt(s,n){f("InterfaceDeclaration",s,n)}function ht(s,n){f("InterfaceTypeAnnotation",s,n)}function Bt(s,n){f("IntersectionTypeAnnotation",s,n)}function _t(s,n){f("MixedTypeAnnotation",s,n)}function Jt(s,n){f("EmptyTypeAnnotation",s,n)}function Et(s,n){f("NullableTypeAnnotation",s,n)}function sr(s,n){f("NumberLiteralTypeAnnotation",s,n)}function o(s,n){f("NumberTypeAnnotation",s,n)}function y(s,n){f("ObjectTypeAnnotation",s,n)}function I(s,n){f("ObjectTypeInternalSlot",s,n)}function N(s,n){f("ObjectTypeCallProperty",s,n)}function F(s,n){f("ObjectTypeIndexer",s,n)}function W(s,n){f("ObjectTypeProperty",s,n)}function G(s,n){f("ObjectTypeSpreadProperty",s,n)}function ue(s,n){f("OpaqueType",s,n)}function fe(s,n){f("QualifiedTypeIdentifier",s,n)}function xe(s,n){f("StringLiteralTypeAnnotation",s,n)}function De(s,n){f("StringTypeAnnotation",s,n)}function Xe(s,n){f("SymbolTypeAnnotation",s,n)}function bt(s,n){f("ThisTypeAnnotation",s,n)}function Tt(s,n){f("TupleTypeAnnotation",s,n)}function Ot(s,n){f("TypeofTypeAnnotation",s,n)}function gt(s,n){f("TypeAlias",s,n)}function vt(s,n){f("TypeAnnotation",s,n)}function ar(s,n){f("TypeCastExpression",s,n)}function Sr(s,n){f("TypeParameter",s,n)}function Er(s,n){f("TypeParameterDeclaration",s,n)}function pr(s,n){f("TypeParameterInstantiation",s,n)}function dt(s,n){f("UnionTypeAnnotation",s,n)}function vr(s,n){f("Variance",s,n)}function Pr(s,n){f("VoidTypeAnnotation",s,n)}function Ar(s,n){f("EnumDeclaration",s,n)}function qt(s,n){f("EnumBooleanBody",s,n)}function Ht(s,n){f("EnumNumberBody",s,n)}function xr(s,n){f("EnumStringBody",s,n)}function or(s,n){f("EnumSymbolBody",s,n)}function _r(s,n){f("EnumBooleanMember",s,n)}function wr(s,n){f("EnumNumberMember",s,n)}function hr(s,n){f("EnumStringMember",s,n)}function ur(s,n){f("EnumDefaultedMember",s,n)}function dr(s,n){f("JSXAttribute",s,n)}function Gt(s,n){f("JSXClosingElement",s,n)}function mr(s,n){f("JSXElement",s,n)}function Ir(s,n){f("JSXEmptyExpression",s,n)}function Cr(s,n){f("JSXExpressionContainer",s,n)}function Or(s,n){f("JSXSpreadChild",s,n)}function Nr(s,n){f("JSXIdentifier",s,n)}function lr(s,n){f("JSXMemberExpression",s,n)}function kr(s,n){f("JSXNamespacedName",s,n)}function cr(s,n){f("JSXOpeningElement",s,n)}function Dr(s,n){f("JSXSpreadAttribute",s,n)}function Lr(s,n){f("JSXText",s,n)}function fr(s,n){f("JSXFragment",s,n)}function yr(s,n){f("JSXOpeningFragment",s,n)}function br(s,n){f("JSXClosingFragment",s,n)}function Mr(s,n){f("Noop",s,n)}function Br(s,n){f("Placeholder",s,n)}function Rr(s,n){f("V8IntrinsicIdentifier",s,n)}function Fr(s,n){f("ArgumentPlaceholder",s,n)}function Tr(s,n){f("BindExpression",s,n)}function jr(s,n){f("ClassProperty",s,n)}function Vr(s,n){f("PipelineTopicExpression",s,n)}function Ur(s,n){f("PipelineBareFunction",s,n)}function Rt(s,n){f("PipelinePrimaryTopicReference",s,n)}function gr(s,n){f("ClassPrivateProperty",s,n)}function Kr(s,n){f("ClassPrivateMethod",s,n)}function U(s,n){f("ImportAttribute",s,n)}function e(s,n){f("Decorator",s,n)}function i(s,n){f("DoExpression",s,n)}function l(s,n){f("ExportDefaultSpecifier",s,n)}function h(s,n){f("PrivateName",s,n)}function S(s,n){f("RecordExpression",s,n)}function w(s,n){f("TupleExpression",s,n)}function M(s,n){f("DecimalLiteral",s,n)}function Y(s,n){f("StaticBlock",s,n)}function q(s,n){f("TSParameterProperty",s,n)}function ne(s,n){f("TSDeclareFunction",s,n)}function Ee(s,n){f("TSDeclareMethod",s,n)}function be(s,n){f("TSQualifiedName",s,n)}function Se(s,n){f("TSCallSignatureDeclaration",s,n)}function Ce(s,n){f("TSConstructSignatureDeclaration",s,n)}function We(s,n){f("TSPropertySignature",s,n)}function Fe(s,n){f("TSMethodSignature",s,n)}function ze(s,n){f("TSIndexSignature",s,n)}function ct(s,n){f("TSAnyKeyword",s,n)}function zt(s,n){f("TSBooleanKeyword",s,n)}function Ft(s,n){f("TSBigIntKeyword",s,n)}function Xr(s,n){f("TSIntrinsicKeyword",s,n)}function Wr(s,n){f("TSNeverKeyword",s,n)}function Jr(s,n){f("TSNullKeyword",s,n)}function qr(s,n){f("TSNumberKeyword",s,n)}function Hr(s,n){f("TSObjectKeyword",s,n)}function Gr(s,n){f("TSStringKeyword",s,n)}function zr(s,n){f("TSSymbolKeyword",s,n)}function $r(s,n){f("TSUndefinedKeyword",s,n)}function Qr(s,n){f("TSUnknownKeyword",s,n)}function Zr(s,n){f("TSVoidKeyword",s,n)}function ei(s,n){f("TSThisType",s,n)}function ti(s,n){f("TSFunctionType",s,n)}function ri(s,n){f("TSConstructorType",s,n)}function ii(s,n){f("TSTypeReference",s,n)}function ni(s,n){f("TSTypePredicate",s,n)}function si(s,n){f("TSTypeQuery",s,n)}function ai(s,n){f("TSTypeLiteral",s,n)}function oi(s,n){f("TSArrayType",s,n)}function ui(s,n){f("TSTupleType",s,n)}function li(s,n){f("TSOptionalType",s,n)}function ci(s,n){f("TSRestType",s,n)}function fi(s,n){f("TSNamedTupleMember",s,n)}function pi(s,n){f("TSUnionType",s,n)}function hi(s,n){f("TSIntersectionType",s,n)}function di(s,n){f("TSConditionalType",s,n)}function mi(s,n){f("TSInferType",s,n)}function yi(s,n){f("TSParenthesizedType",s,n)}function bi(s,n){f("TSTypeOperator",s,n)}function Ti(s,n){f("TSIndexedAccessType",s,n)}function gi(s,n){f("TSMappedType",s,n)}function Si(s,n){f("TSLiteralType",s,n)}function Ei(s,n){f("TSExpressionWithTypeArguments",s,n)}function vi(s,n){f("TSInterfaceDeclaration",s,n)}function Pi(s,n){f("TSInterfaceBody",s,n)}function Ai(s,n){f("TSTypeAliasDeclaration",s,n)}function xi(s,n){f("TSAsExpression",s,n)}function _i(s,n){f("TSTypeAssertion",s,n)}function wi(s,n){f("TSEnumDeclaration",s,n)}function Ii(s,n){f("TSEnumMember",s,n)}function Ci(s,n){f("TSModuleDeclaration",s,n)}function Oi(s,n){f("TSModuleBlock",s,n)}function Ni(s,n){f("TSImportType",s,n)}function ki(s,n){f("TSImportEqualsDeclaration",s,n)}function Di(s,n){f("TSExternalModuleReference",s,n)}function Li(s,n){f("TSNonNullExpression",s,n)}function Mi(s,n){f("TSExportAssignment",s,n)}function Bi(s,n){f("TSNamespaceExportDeclaration",s,n)}function Ri(s,n){f("TSTypeAnnotation",s,n)}function Fi(s,n){f("TSTypeParameterInstantiation",s,n)}function ji(s,n){f("TSTypeParameterDeclaration",s,n)}function Vi(s,n){f("TSTypeParameter",s,n)}function Ui(s,n){f("Expression",s,n)}function Ki(s,n){f("Binary",s,n)}function Yi(s,n){f("Scopable",s,n)}function V(s,n){f("BlockParent",s,n)}function te(s,n){f("Block",s,n)}function ye(s,n){f("Statement",s,n)}function Le(s,n){f("Terminatorless",s,n)}function wt(s,n){f("CompletionStatement",s,n)}function Yr(s,n){f("Conditional",s,n)}function Xi(s,n){f("Loop",s,n)}function Wi(s,n){f("While",s,n)}function Ji(s,n){f("ExpressionWrapper",s,n)}function qi(s,n){f("For",s,n)}function Hi(s,n){f("ForXStatement",s,n)}function Gi(s,n){f("Function",s,n)}function zi(s,n){f("FunctionParent",s,n)}function $i(s,n){f("Pureish",s,n)}function Qi(s,n){f("Declaration",s,n)}function Zi(s,n){f("PatternLike",s,n)}function en(s,n){f("LVal",s,n)}function tn(s,n){f("TSEntityName",s,n)}function rn(s,n){f("Literal",s,n)}function nn(s,n){f("Immutable",s,n)}function sn(s,n){f("UserWhitespacable",s,n)}function an(s,n){f("Method",s,n)}function on(s,n){f("ObjectMember",s,n)}function un(s,n){f("Property",s,n)}function ln(s,n){f("UnaryLike",s,n)}function cn(s,n){f("Pattern",s,n)}function fn(s,n){f("Class",s,n)}function pn(s,n){f("ModuleDeclaration",s,n)}function hn(s,n){f("ExportDeclaration",s,n)}function dn(s,n){f("ModuleSpecifier",s,n)}function mn(s,n){f("Flow",s,n)}function yn(s,n){f("FlowType",s,n)}function bn(s,n){f("FlowBaseAnnotation",s,n)}function Tn(s,n){f("FlowDeclaration",s,n)}function gn(s,n){f("FlowPredicate",s,n)}function Sn(s,n){f("EnumBody",s,n)}function En(s,n){f("EnumMember",s,n)}function vn(s,n){f("JSX",s,n)}function Pn(s,n){f("Private",s,n)}function An(s,n){f("TSTypeElement",s,n)}function xn(s,n){f("TSType",s,n)}function _n(s,n){f("TSBaseType",s,n)}function wn(s,n){console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),f("NumberLiteral",s,n)}function In(s,n){console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),f("RegexLiteral",s,n)}function Cn(s,n){console.trace("The node type RestProperty has been renamed to RestElement"),f("RestProperty",s,n)}function u(s,n){console.trace("The node type SpreadProperty has been renamed to SpreadElement"),f("SpreadProperty",s,n)}},{"../../validators/is":67}],8:[function(T,C,t){},{}],9:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=g;var r=b(T("lodash/clone")),m=T("../definitions"),f=b(T("../validators/validate"));function b(p){return p&&p.__esModule?p:{default:p}}function g(p,...c){const d=m.BUILDER_KEYS[p],E=c.length;if(E>d.length)throw new Error(`${p}: Too many arguments passed. Received ${E} but can receive no more than ${d.length}`);const x={type:p};let a=0;d.forEach(O=>{const _=m.NODE_FIELDS[p][O];let L;a<E&&(L=c[a]),L===void 0&&(L=(0,r.default)(_.default)),x[O]=L,a++});for(const O of Object.keys(x))(0,f.default)(x,O,x[O]);return x}},{"../definitions":44,"../validators/validate":85,"lodash/clone":197}],10:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=b;var r=T("../generated"),m=f(T("../../modifications/flow/removeTypeDuplicates"));function f(g){return g&&g.__esModule?g:{default:g}}function b(g){const p=(0,m.default)(g);return p.length===1?p[0]:(0,r.unionTypeAnnotation)(p)}},{"../../modifications/flow/removeTypeDuplicates":52,"../generated":12}],11:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=T("../generated");function m(f){if(f==="string")return(0,r.stringTypeAnnotation)();if(f==="number")return(0,r.numberTypeAnnotation)();if(f==="undefined")return(0,r.voidTypeAnnotation)();if(f==="boolean")return(0,r.booleanTypeAnnotation)();if(f==="function")return(0,r.genericTypeAnnotation)((0,r.identifier)("Function"));if(f==="object")return(0,r.genericTypeAnnotation)((0,r.identifier)("Object"));if(f==="symbol")return(0,r.genericTypeAnnotation)((0,r.identifier)("Symbol"));throw new Error("Invalid typeof value")}},{"../generated":12}],12:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayExpression=f,t.assignmentExpression=b,t.binaryExpression=g,t.interpreterDirective=p,t.directive=c,t.directiveLiteral=d,t.blockStatement=E,t.breakStatement=x,t.callExpression=a,t.catchClause=O,t.conditionalExpression=_,t.continueStatement=L,t.debuggerStatement=B,t.doWhileStatement=k,t.emptyStatement=P,t.expressionStatement=A,t.file=R,t.forInStatement=j,t.forStatement=v,t.functionDeclaration=$,t.functionExpression=D,t.identifier=oe,t.ifStatement=z,t.labeledStatement=Q,t.stringLiteral=re,t.numericLiteral=K,t.nullLiteral=H,t.booleanLiteral=ie,t.regExpLiteral=pe,t.logicalExpression=Te,t.memberExpression=ae,t.newExpression=le,t.program=X,t.objectExpression=J,t.objectMethod=Z,t.objectProperty=he,t.restElement=Pe,t.returnStatement=me,t.sequenceExpression=ge,t.parenthesizedExpression=Ae,t.switchCase=Ne,t.switchStatement=Ue,t.thisExpression=Ye,t.throwStatement=at,t.tryStatement=ot,t.unaryExpression=$e,t.updateExpression=rt,t.variableDeclaration=Qe,t.variableDeclarator=He,t.whileStatement=Oe,t.withStatement=tt,t.assignmentPattern=Ie,t.arrayPattern=we,t.arrowFunctionExpression=je,t.classBody=Be,t.classExpression=Je,t.classDeclaration=Re,t.exportAllDeclaration=de,t.exportDefaultDeclaration=Ge,t.exportNamedDeclaration=it,t.exportSpecifier=St,t.forOfStatement=et,t.importDeclaration=Ze,t.importDefaultSpecifier=nt,t.importNamespaceSpecifier=Ke,t.importSpecifier=ve,t.metaProperty=qe,t.classMethod=ce,t.objectPattern=Ve,t.spreadElement=ee,t.super=ut,t.taggedTemplateExpression=st,t.templateElement=Pt,t.templateLiteral=Me,t.yieldExpression=ke,t.awaitExpression=It,t.import=jt,t.bigIntLiteral=At,t.exportNamespaceSpecifier=Nt,t.optionalMemberExpression=kt,t.optionalCallExpression=Ct,t.anyTypeAnnotation=Vt,t.arrayTypeAnnotation=Ut,t.booleanTypeAnnotation=$t,t.booleanLiteralTypeAnnotation=Qt,t.nullLiteralTypeAnnotation=Dt,t.classImplements=Lt,t.declareClass=se,t.declareFunction=ft,t.declareInterface=mt,t.declareModule=Mt,t.declareModuleExports=Zt,t.declareTypeAlias=er,t.declareOpaqueType=Kt,t.declareVariable=tr,t.declareExportDeclaration=rr,t.declareExportAllDeclaration=Yt,t.declaredPredicate=ir,t.existsTypeAnnotation=lt,t.functionTypeAnnotation=pt,t.functionTypeParam=yt,t.genericTypeAnnotation=Xt,t.inferredPredicate=xt,t.interfaceExtends=_e,t.interfaceDeclaration=nr,t.interfaceTypeAnnotation=Wt,t.intersectionTypeAnnotation=ht,t.mixedTypeAnnotation=Bt,t.emptyTypeAnnotation=_t,t.nullableTypeAnnotation=Jt,t.numberLiteralTypeAnnotation=Et,t.numberTypeAnnotation=sr,t.objectTypeAnnotation=o,t.objectTypeInternalSlot=y,t.objectTypeCallProperty=I,t.objectTypeIndexer=N,t.objectTypeProperty=F,t.objectTypeSpreadProperty=W,t.opaqueType=G,t.qualifiedTypeIdentifier=ue,t.stringLiteralTypeAnnotation=fe,t.stringTypeAnnotation=xe,t.symbolTypeAnnotation=De,t.thisTypeAnnotation=Xe,t.tupleTypeAnnotation=bt,t.typeofTypeAnnotation=Tt,t.typeAlias=Ot,t.typeAnnotation=gt,t.typeCastExpression=vt,t.typeParameter=ar,t.typeParameterDeclaration=Sr,t.typeParameterInstantiation=Er,t.unionTypeAnnotation=pr,t.variance=dt,t.voidTypeAnnotation=vr,t.enumDeclaration=Pr,t.enumBooleanBody=Ar,t.enumNumberBody=qt,t.enumStringBody=Ht,t.enumSymbolBody=xr,t.enumBooleanMember=or,t.enumNumberMember=_r,t.enumStringMember=wr,t.enumDefaultedMember=hr,t.jSXAttribute=t.jsxAttribute=ur,t.jSXClosingElement=t.jsxClosingElement=dr,t.jSXElement=t.jsxElement=Gt,t.jSXEmptyExpression=t.jsxEmptyExpression=mr,t.jSXExpressionContainer=t.jsxExpressionContainer=Ir,t.jSXSpreadChild=t.jsxSpreadChild=Cr,t.jSXIdentifier=t.jsxIdentifier=Or,t.jSXMemberExpression=t.jsxMemberExpression=Nr,t.jSXNamespacedName=t.jsxNamespacedName=lr,t.jSXOpeningElement=t.jsxOpeningElement=kr,t.jSXSpreadAttribute=t.jsxSpreadAttribute=cr,t.jSXText=t.jsxText=Dr,t.jSXFragment=t.jsxFragment=Lr,t.jSXOpeningFragment=t.jsxOpeningFragment=fr,t.jSXClosingFragment=t.jsxClosingFragment=yr,t.noop=br,t.placeholder=Mr,t.v8IntrinsicIdentifier=Br,t.argumentPlaceholder=Rr,t.bindExpression=Fr,t.classProperty=Tr,t.pipelineTopicExpression=jr,t.pipelineBareFunction=Vr,t.pipelinePrimaryTopicReference=Ur,t.classPrivateProperty=Rt,t.classPrivateMethod=gr,t.importAttribute=Kr,t.decorator=U,t.doExpression=e,t.exportDefaultSpecifier=i,t.privateName=l,t.recordExpression=h,t.tupleExpression=S,t.decimalLiteral=w,t.staticBlock=M,t.tSParameterProperty=t.tsParameterProperty=Y,t.tSDeclareFunction=t.tsDeclareFunction=q,t.tSDeclareMethod=t.tsDeclareMethod=ne,t.tSQualifiedName=t.tsQualifiedName=Ee,t.tSCallSignatureDeclaration=t.tsCallSignatureDeclaration=be,t.tSConstructSignatureDeclaration=t.tsConstructSignatureDeclaration=Se,t.tSPropertySignature=t.tsPropertySignature=Ce,t.tSMethodSignature=t.tsMethodSignature=We,t.tSIndexSignature=t.tsIndexSignature=Fe,t.tSAnyKeyword=t.tsAnyKeyword=ze,t.tSBooleanKeyword=t.tsBooleanKeyword=ct,t.tSBigIntKeyword=t.tsBigIntKeyword=zt,t.tSIntrinsicKeyword=t.tsIntrinsicKeyword=Ft,t.tSNeverKeyword=t.tsNeverKeyword=Xr,t.tSNullKeyword=t.tsNullKeyword=Wr,t.tSNumberKeyword=t.tsNumberKeyword=Jr,t.tSObjectKeyword=t.tsObjectKeyword=qr,t.tSStringKeyword=t.tsStringKeyword=Hr,t.tSSymbolKeyword=t.tsSymbolKeyword=Gr,t.tSUndefinedKeyword=t.tsUndefinedKeyword=zr,t.tSUnknownKeyword=t.tsUnknownKeyword=$r,t.tSVoidKeyword=t.tsVoidKeyword=Qr,t.tSThisType=t.tsThisType=Zr,t.tSFunctionType=t.tsFunctionType=ei,t.tSConstructorType=t.tsConstructorType=ti,t.tSTypeReference=t.tsTypeReference=ri,t.tSTypePredicate=t.tsTypePredicate=ii,t.tSTypeQuery=t.tsTypeQuery=ni,t.tSTypeLiteral=t.tsTypeLiteral=si,t.tSArrayType=t.tsArrayType=ai,t.tSTupleType=t.tsTupleType=oi,t.tSOptionalType=t.tsOptionalType=ui,t.tSRestType=t.tsRestType=li,t.tSNamedTupleMember=t.tsNamedTupleMember=ci,t.tSUnionType=t.tsUnionType=fi,t.tSIntersectionType=t.tsIntersectionType=pi,t.tSConditionalType=t.tsConditionalType=hi,t.tSInferType=t.tsInferType=di,t.tSParenthesizedType=t.tsParenthesizedType=mi,t.tSTypeOperator=t.tsTypeOperator=yi,t.tSIndexedAccessType=t.tsIndexedAccessType=bi,t.tSMappedType=t.tsMappedType=Ti,t.tSLiteralType=t.tsLiteralType=gi,t.tSExpressionWithTypeArguments=t.tsExpressionWithTypeArguments=Si,t.tSInterfaceDeclaration=t.tsInterfaceDeclaration=Ei,t.tSInterfaceBody=t.tsInterfaceBody=vi,t.tSTypeAliasDeclaration=t.tsTypeAliasDeclaration=Pi,t.tSAsExpression=t.tsAsExpression=Ai,t.tSTypeAssertion=t.tsTypeAssertion=xi,t.tSEnumDeclaration=t.tsEnumDeclaration=_i,t.tSEnumMember=t.tsEnumMember=wi,t.tSModuleDeclaration=t.tsModuleDeclaration=Ii,t.tSModuleBlock=t.tsModuleBlock=Ci,t.tSImportType=t.tsImportType=Oi,t.tSImportEqualsDeclaration=t.tsImportEqualsDeclaration=Ni,t.tSExternalModuleReference=t.tsExternalModuleReference=ki,t.tSNonNullExpression=t.tsNonNullExpression=Di,t.tSExportAssignment=t.tsExportAssignment=Li,t.tSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=Mi,t.tSTypeAnnotation=t.tsTypeAnnotation=Bi,t.tSTypeParameterInstantiation=t.tsTypeParameterInstantiation=Ri,t.tSTypeParameterDeclaration=t.tsTypeParameterDeclaration=Fi,t.tSTypeParameter=t.tsTypeParameter=ji,t.numberLiteral=Vi,t.regexLiteral=Ui,t.restProperty=Ki,t.spreadProperty=Yi;var r=m(T("../builder"));function m(V){return V&&V.__esModule?V:{default:V}}function f(V){return(0,r.default)("ArrayExpression",...arguments)}function b(V,te,ye){return(0,r.default)("AssignmentExpression",...arguments)}function g(V,te,ye){return(0,r.default)("BinaryExpression",...arguments)}function p(V){return(0,r.default)("InterpreterDirective",...arguments)}function c(V){return(0,r.default)("Directive",...arguments)}function d(V){return(0,r.default)("DirectiveLiteral",...arguments)}function E(V,te){return(0,r.default)("BlockStatement",...arguments)}function x(V){return(0,r.default)("BreakStatement",...arguments)}function a(V,te){return(0,r.default)("CallExpression",...arguments)}function O(V,te){return(0,r.default)("CatchClause",...arguments)}function _(V,te,ye){return(0,r.default)("ConditionalExpression",...arguments)}function L(V){return(0,r.default)("ContinueStatement",...arguments)}function B(){return(0,r.default)("DebuggerStatement",...arguments)}function k(V,te){return(0,r.default)("DoWhileStatement",...arguments)}function P(){return(0,r.default)("EmptyStatement",...arguments)}function A(V){return(0,r.default)("ExpressionStatement",...arguments)}function R(V,te,ye){return(0,r.default)("File",...arguments)}function j(V,te,ye){return(0,r.default)("ForInStatement",...arguments)}function v(V,te,ye,Le){return(0,r.default)("ForStatement",...arguments)}function $(V,te,ye,Le,wt){return(0,r.default)("FunctionDeclaration",...arguments)}function D(V,te,ye,Le,wt){return(0,r.default)("FunctionExpression",...arguments)}function oe(V){return(0,r.default)("Identifier",...arguments)}function z(V,te,ye){return(0,r.default)("IfStatement",...arguments)}function Q(V,te){return(0,r.default)("LabeledStatement",...arguments)}function re(V){return(0,r.default)("StringLiteral",...arguments)}function K(V){return(0,r.default)("NumericLiteral",...arguments)}function H(){return(0,r.default)("NullLiteral",...arguments)}function ie(V){return(0,r.default)("BooleanLiteral",...arguments)}function pe(V,te){return(0,r.default)("RegExpLiteral",...arguments)}function Te(V,te,ye){return(0,r.default)("LogicalExpression",...arguments)}function ae(V,te,ye,Le){return(0,r.default)("MemberExpression",...arguments)}function le(V,te){return(0,r.default)("NewExpression",...arguments)}function X(V,te,ye,Le){return(0,r.default)("Program",...arguments)}function J(V){return(0,r.default)("ObjectExpression",...arguments)}function Z(V,te,ye,Le,wt,Yr,Xi){return(0,r.default)("ObjectMethod",...arguments)}function he(V,te,ye,Le,wt){return(0,r.default)("ObjectProperty",...arguments)}function Pe(V){return(0,r.default)("RestElement",...arguments)}function me(V){return(0,r.default)("ReturnStatement",...arguments)}function ge(V){return(0,r.default)("SequenceExpression",...arguments)}function Ae(V){return(0,r.default)("ParenthesizedExpression",...arguments)}function Ne(V,te){return(0,r.default)("SwitchCase",...arguments)}function Ue(V,te){return(0,r.default)("SwitchStatement",...arguments)}function Ye(){return(0,r.default)("ThisExpression",...arguments)}function at(V){return(0,r.default)("ThrowStatement",...arguments)}function ot(V,te,ye){return(0,r.default)("TryStatement",...arguments)}function $e(V,te,ye){return(0,r.default)("UnaryExpression",...arguments)}function rt(V,te,ye){return(0,r.default)("UpdateExpression",...arguments)}function Qe(V,te){return(0,r.default)("VariableDeclaration",...arguments)}function He(V,te){return(0,r.default)("VariableDeclarator",...arguments)}function Oe(V,te){return(0,r.default)("WhileStatement",...arguments)}function tt(V,te){return(0,r.default)("WithStatement",...arguments)}function Ie(V,te){return(0,r.default)("AssignmentPattern",...arguments)}function we(V){return(0,r.default)("ArrayPattern",...arguments)}function je(V,te,ye){return(0,r.default)("ArrowFunctionExpression",...arguments)}function Be(V){return(0,r.default)("ClassBody",...arguments)}function Je(V,te,ye,Le){return(0,r.default)("ClassExpression",...arguments)}function Re(V,te,ye,Le){return(0,r.default)("ClassDeclaration",...arguments)}function de(V){return(0,r.default)("ExportAllDeclaration",...arguments)}function Ge(V){return(0,r.default)("ExportDefaultDeclaration",...arguments)}function it(V,te,ye){return(0,r.default)("ExportNamedDeclaration",...arguments)}function St(V,te){return(0,r.default)("ExportSpecifier",...arguments)}function et(V,te,ye,Le){return(0,r.default)("ForOfStatement",...arguments)}function Ze(V,te){return(0,r.default)("ImportDeclaration",...arguments)}function nt(V){return(0,r.default)("ImportDefaultSpecifier",...arguments)}function Ke(V){return(0,r.default)("ImportNamespaceSpecifier",...arguments)}function ve(V,te){return(0,r.default)("ImportSpecifier",...arguments)}function qe(V,te){return(0,r.default)("MetaProperty",...arguments)}function ce(V,te,ye,Le,wt,Yr,Xi,Wi){return(0,r.default)("ClassMethod",...arguments)}function Ve(V){return(0,r.default)("ObjectPattern",...arguments)}function ee(V){return(0,r.default)("SpreadElement",...arguments)}function ut(){return(0,r.default)("Super",...arguments)}function st(V,te){return(0,r.default)("TaggedTemplateExpression",...arguments)}function Pt(V,te){return(0,r.default)("TemplateElement",...arguments)}function Me(V,te){return(0,r.default)("TemplateLiteral",...arguments)}function ke(V,te){return(0,r.default)("YieldExpression",...arguments)}function It(V){return(0,r.default)("AwaitExpression",...arguments)}function jt(){return(0,r.default)("Import",...arguments)}function At(V){return(0,r.default)("BigIntLiteral",...arguments)}function Nt(V){return(0,r.default)("ExportNamespaceSpecifier",...arguments)}function kt(V,te,ye,Le){return(0,r.default)("OptionalMemberExpression",...arguments)}function Ct(V,te,ye){return(0,r.default)("OptionalCallExpression",...arguments)}function Vt(){return(0,r.default)("AnyTypeAnnotation",...arguments)}function Ut(V){return(0,r.default)("ArrayTypeAnnotation",...arguments)}function $t(){return(0,r.default)("BooleanTypeAnnotation",...arguments)}function Qt(V){return(0,r.default)("BooleanLiteralTypeAnnotation",...arguments)}function Dt(){return(0,r.default)("NullLiteralTypeAnnotation",...arguments)}function Lt(V,te){return(0,r.default)("ClassImplements",...arguments)}function se(V,te,ye,Le){return(0,r.default)("DeclareClass",...arguments)}function ft(V){return(0,r.default)("DeclareFunction",...arguments)}function mt(V,te,ye,Le){return(0,r.default)("DeclareInterface",...arguments)}function Mt(V,te,ye){return(0,r.default)("DeclareModule",...arguments)}function Zt(V){return(0,r.default)("DeclareModuleExports",...arguments)}function er(V,te,ye){return(0,r.default)("DeclareTypeAlias",...arguments)}function Kt(V,te,ye){return(0,r.default)("DeclareOpaqueType",...arguments)}function tr(V){return(0,r.default)("DeclareVariable",...arguments)}function rr(V,te,ye){return(0,r.default)("DeclareExportDeclaration",...arguments)}function Yt(V){return(0,r.default)("DeclareExportAllDeclaration",...arguments)}function ir(V){return(0,r.default)("DeclaredPredicate",...arguments)}function lt(){return(0,r.default)("ExistsTypeAnnotation",...arguments)}function pt(V,te,ye,Le){return(0,r.default)("FunctionTypeAnnotation",...arguments)}function yt(V,te){return(0,r.default)("FunctionTypeParam",...arguments)}function Xt(V,te){return(0,r.default)("GenericTypeAnnotation",...arguments)}function xt(){return(0,r.default)("InferredPredicate",...arguments)}function _e(V,te){return(0,r.default)("InterfaceExtends",...arguments)}function nr(V,te,ye,Le){return(0,r.default)("InterfaceDeclaration",...arguments)}function Wt(V,te){return(0,r.default)("InterfaceTypeAnnotation",...arguments)}function ht(V){return(0,r.default)("IntersectionTypeAnnotation",...arguments)}function Bt(){return(0,r.default)("MixedTypeAnnotation",...arguments)}function _t(){return(0,r.default)("EmptyTypeAnnotation",...arguments)}function Jt(V){return(0,r.default)("NullableTypeAnnotation",...arguments)}function Et(V){return(0,r.default)("NumberLiteralTypeAnnotation",...arguments)}function sr(){return(0,r.default)("NumberTypeAnnotation",...arguments)}function o(V,te,ye,Le,wt){return(0,r.default)("ObjectTypeAnnotation",...arguments)}function y(V,te,ye,Le,wt){return(0,r.default)("ObjectTypeInternalSlot",...arguments)}function I(V){return(0,r.default)("ObjectTypeCallProperty",...arguments)}function N(V,te,ye,Le){return(0,r.default)("ObjectTypeIndexer",...arguments)}function F(V,te,ye){return(0,r.default)("ObjectTypeProperty",...arguments)}function W(V){return(0,r.default)("ObjectTypeSpreadProperty",...arguments)}function G(V,te,ye,Le){return(0,r.default)("OpaqueType",...arguments)}function ue(V,te){return(0,r.default)("QualifiedTypeIdentifier",...arguments)}function fe(V){return(0,r.default)("StringLiteralTypeAnnotation",...arguments)}function xe(){return(0,r.default)("StringTypeAnnotation",...arguments)}function De(){return(0,r.default)("SymbolTypeAnnotation",...arguments)}function Xe(){return(0,r.default)("ThisTypeAnnotation",...arguments)}function bt(V){return(0,r.default)("TupleTypeAnnotation",...arguments)}function Tt(V){return(0,r.default)("TypeofTypeAnnotation",...arguments)}function Ot(V,te,ye){return(0,r.default)("TypeAlias",...arguments)}function gt(V){return(0,r.default)("TypeAnnotation",...arguments)}function vt(V,te){return(0,r.default)("TypeCastExpression",...arguments)}function ar(V,te,ye){return(0,r.default)("TypeParameter",...arguments)}function Sr(V){return(0,r.default)("TypeParameterDeclaration",...arguments)}function Er(V){return(0,r.default)("TypeParameterInstantiation",...arguments)}function pr(V){return(0,r.default)("UnionTypeAnnotation",...arguments)}function dt(V){return(0,r.default)("Variance",...arguments)}function vr(){return(0,r.default)("VoidTypeAnnotation",...arguments)}function Pr(V,te){return(0,r.default)("EnumDeclaration",...arguments)}function Ar(V){return(0,r.default)("EnumBooleanBody",...arguments)}function qt(V){return(0,r.default)("EnumNumberBody",...arguments)}function Ht(V){return(0,r.default)("EnumStringBody",...arguments)}function xr(V){return(0,r.default)("EnumSymbolBody",...arguments)}function or(V){return(0,r.default)("EnumBooleanMember",...arguments)}function _r(V,te){return(0,r.default)("EnumNumberMember",...arguments)}function wr(V,te){return(0,r.default)("EnumStringMember",...arguments)}function hr(V){return(0,r.default)("EnumDefaultedMember",...arguments)}function ur(V,te){return(0,r.default)("JSXAttribute",...arguments)}function dr(V){return(0,r.default)("JSXClosingElement",...arguments)}function Gt(V,te,ye,Le){return(0,r.default)("JSXElement",...arguments)}function mr(){return(0,r.default)("JSXEmptyExpression",...arguments)}function Ir(V){return(0,r.default)("JSXExpressionContainer",...arguments)}function Cr(V){return(0,r.default)("JSXSpreadChild",...arguments)}function Or(V){return(0,r.default)("JSXIdentifier",...arguments)}function Nr(V,te){return(0,r.default)("JSXMemberExpression",...arguments)}function lr(V,te){return(0,r.default)("JSXNamespacedName",...arguments)}function kr(V,te,ye){return(0,r.default)("JSXOpeningElement",...arguments)}function cr(V){return(0,r.default)("JSXSpreadAttribute",...arguments)}function Dr(V){return(0,r.default)("JSXText",...arguments)}function Lr(V,te,ye){return(0,r.default)("JSXFragment",...arguments)}function fr(){return(0,r.default)("JSXOpeningFragment",...arguments)}function yr(){return(0,r.default)("JSXClosingFragment",...arguments)}function br(){return(0,r.default)("Noop",...arguments)}function Mr(V,te){return(0,r.default)("Placeholder",...arguments)}function Br(V){return(0,r.default)("V8IntrinsicIdentifier",...arguments)}function Rr(){return(0,r.default)("ArgumentPlaceholder",...arguments)}function Fr(V,te){return(0,r.default)("BindExpression",...arguments)}function Tr(V,te,ye,Le,wt,Yr){return(0,r.default)("ClassProperty",...arguments)}function jr(V){return(0,r.default)("PipelineTopicExpression",...arguments)}function Vr(V){return(0,r.default)("PipelineBareFunction",...arguments)}function Ur(){return(0,r.default)("PipelinePrimaryTopicReference",...arguments)}function Rt(V,te,ye,Le){return(0,r.default)("ClassPrivateProperty",...arguments)}function gr(V,te,ye,Le,wt){return(0,r.default)("ClassPrivateMethod",...arguments)}function Kr(V,te){return(0,r.default)("ImportAttribute",...arguments)}function U(V){return(0,r.default)("Decorator",...arguments)}function e(V){return(0,r.default)("DoExpression",...arguments)}function i(V){return(0,r.default)("ExportDefaultSpecifier",...arguments)}function l(V){return(0,r.default)("PrivateName",...arguments)}function h(V){return(0,r.default)("RecordExpression",...arguments)}function S(V){return(0,r.default)("TupleExpression",...arguments)}function w(V){return(0,r.default)("DecimalLiteral",...arguments)}function M(V){return(0,r.default)("StaticBlock",...arguments)}function Y(V){return(0,r.default)("TSParameterProperty",...arguments)}function q(V,te,ye,Le){return(0,r.default)("TSDeclareFunction",...arguments)}function ne(V,te,ye,Le,wt){return(0,r.default)("TSDeclareMethod",...arguments)}function Ee(V,te){return(0,r.default)("TSQualifiedName",...arguments)}function be(V,te,ye){return(0,r.default)("TSCallSignatureDeclaration",...arguments)}function Se(V,te,ye){return(0,r.default)("TSConstructSignatureDeclaration",...arguments)}function Ce(V,te,ye){return(0,r.default)("TSPropertySignature",...arguments)}function We(V,te,ye,Le){return(0,r.default)("TSMethodSignature",...arguments)}function Fe(V,te){return(0,r.default)("TSIndexSignature",...arguments)}function ze(){return(0,r.default)("TSAnyKeyword",...arguments)}function ct(){return(0,r.default)("TSBooleanKeyword",...arguments)}function zt(){return(0,r.default)("TSBigIntKeyword",...arguments)}function Ft(){return(0,r.default)("TSIntrinsicKeyword",...arguments)}function Xr(){return(0,r.default)("TSNeverKeyword",...arguments)}function Wr(){return(0,r.default)("TSNullKeyword",...arguments)}function Jr(){return(0,r.default)("TSNumberKeyword",...arguments)}function qr(){return(0,r.default)("TSObjectKeyword",...arguments)}function Hr(){return(0,r.default)("TSStringKeyword",...arguments)}function Gr(){return(0,r.default)("TSSymbolKeyword",...arguments)}function zr(){return(0,r.default)("TSUndefinedKeyword",...arguments)}function $r(){return(0,r.default)("TSUnknownKeyword",...arguments)}function Qr(){return(0,r.default)("TSVoidKeyword",...arguments)}function Zr(){return(0,r.default)("TSThisType",...arguments)}function ei(V,te,ye){return(0,r.default)("TSFunctionType",...arguments)}function ti(V,te,ye){return(0,r.default)("TSConstructorType",...arguments)}function ri(V,te){return(0,r.default)("TSTypeReference",...arguments)}function ii(V,te,ye){return(0,r.default)("TSTypePredicate",...arguments)}function ni(V){return(0,r.default)("TSTypeQuery",...arguments)}function si(V){return(0,r.default)("TSTypeLiteral",...arguments)}function ai(V){return(0,r.default)("TSArrayType",...arguments)}function oi(V){return(0,r.default)("TSTupleType",...arguments)}function ui(V){return(0,r.default)("TSOptionalType",...arguments)}function li(V){return(0,r.default)("TSRestType",...arguments)}function ci(V,te,ye){return(0,r.default)("TSNamedTupleMember",...arguments)}function fi(V){return(0,r.default)("TSUnionType",...arguments)}function pi(V){return(0,r.default)("TSIntersectionType",...arguments)}function hi(V,te,ye,Le){return(0,r.default)("TSConditionalType",...arguments)}function di(V){return(0,r.default)("TSInferType",...arguments)}function mi(V){return(0,r.default)("TSParenthesizedType",...arguments)}function yi(V){return(0,r.default)("TSTypeOperator",...arguments)}function bi(V,te){return(0,r.default)("TSIndexedAccessType",...arguments)}function Ti(V,te,ye){return(0,r.default)("TSMappedType",...arguments)}function gi(V){return(0,r.default)("TSLiteralType",...arguments)}function Si(V,te){return(0,r.default)("TSExpressionWithTypeArguments",...arguments)}function Ei(V,te,ye,Le){return(0,r.default)("TSInterfaceDeclaration",...arguments)}function vi(V){return(0,r.default)("TSInterfaceBody",...arguments)}function Pi(V,te,ye){return(0,r.default)("TSTypeAliasDeclaration",...arguments)}function Ai(V,te){return(0,r.default)("TSAsExpression",...arguments)}function xi(V,te){return(0,r.default)("TSTypeAssertion",...arguments)}function _i(V,te){return(0,r.default)("TSEnumDeclaration",...arguments)}function wi(V,te){return(0,r.default)("TSEnumMember",...arguments)}function Ii(V,te){return(0,r.default)("TSModuleDeclaration",...arguments)}function Ci(V){return(0,r.default)("TSModuleBlock",...arguments)}function Oi(V,te,ye){return(0,r.default)("TSImportType",...arguments)}function Ni(V,te){return(0,r.default)("TSImportEqualsDeclaration",...arguments)}function ki(V){return(0,r.default)("TSExternalModuleReference",...arguments)}function Di(V){return(0,r.default)("TSNonNullExpression",...arguments)}function Li(V){return(0,r.default)("TSExportAssignment",...arguments)}function Mi(V){return(0,r.default)("TSNamespaceExportDeclaration",...arguments)}function Bi(V){return(0,r.default)("TSTypeAnnotation",...arguments)}function Ri(V){return(0,r.default)("TSTypeParameterInstantiation",...arguments)}function Fi(V){return(0,r.default)("TSTypeParameterDeclaration",...arguments)}function ji(V,te,ye){return(0,r.default)("TSTypeParameter",...arguments)}function Vi(...V){return console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),(0,r.default)("NumberLiteral",...V)}function Ui(...V){return console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),(0,r.default)("RegexLiteral",...V)}function Ki(...V){return console.trace("The node type RestProperty has been renamed to RestElement"),(0,r.default)("RestProperty",...V)}function Yi(...V){return console.trace("The node type SpreadProperty has been renamed to SpreadElement"),(0,r.default)("SpreadProperty",...V)}},{"../builder":9}],13:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ArrayExpression",{enumerable:!0,get:function(){return r.arrayExpression}}),Object.defineProperty(t,"AssignmentExpression",{enumerable:!0,get:function(){return r.assignmentExpression}}),Object.defineProperty(t,"BinaryExpression",{enumerable:!0,get:function(){return r.binaryExpression}}),Object.defineProperty(t,"InterpreterDirective",{enumerable:!0,get:function(){return r.interpreterDirective}}),Object.defineProperty(t,"Directive",{enumerable:!0,get:function(){return r.directive}}),Object.defineProperty(t,"DirectiveLiteral",{enumerable:!0,get:function(){return r.directiveLiteral}}),Object.defineProperty(t,"BlockStatement",{enumerable:!0,get:function(){return r.blockStatement}}),Object.defineProperty(t,"BreakStatement",{enumerable:!0,get:function(){return r.breakStatement}}),Object.defineProperty(t,"CallExpression",{enumerable:!0,get:function(){return r.callExpression}}),Object.defineProperty(t,"CatchClause",{enumerable:!0,get:function(){return r.catchClause}}),Object.defineProperty(t,"ConditionalExpression",{enumerable:!0,get:function(){return r.conditionalExpression}}),Object.defineProperty(t,"ContinueStatement",{enumerable:!0,get:function(){return r.continueStatement}}),Object.defineProperty(t,"DebuggerStatement",{enumerable:!0,get:function(){return r.debuggerStatement}}),Object.defineProperty(t,"DoWhileStatement",{enumerable:!0,get:function(){return r.doWhileStatement}}),Object.defineProperty(t,"EmptyStatement",{enumerable:!0,get:function(){return r.emptyStatement}}),Object.defineProperty(t,"ExpressionStatement",{enumerable:!0,get:function(){return r.expressionStatement}}),Object.defineProperty(t,"File",{enumerable:!0,get:function(){return r.file}}),Object.defineProperty(t,"ForInStatement",{enumerable:!0,get:function(){return r.forInStatement}}),Object.defineProperty(t,"ForStatement",{enumerable:!0,get:function(){return r.forStatement}}),Object.defineProperty(t,"FunctionDeclaration",{enumerable:!0,get:function(){return r.functionDeclaration}}),Object.defineProperty(t,"FunctionExpression",{enumerable:!0,get:function(){return r.functionExpression}}),Object.defineProperty(t,"Identifier",{enumerable:!0,get:function(){return r.identifier}}),Object.defineProperty(t,"IfStatement",{enumerable:!0,get:function(){return r.ifStatement}}),Object.defineProperty(t,"LabeledStatement",{enumerable:!0,get:function(){return r.labeledStatement}}),Object.defineProperty(t,"StringLiteral",{enumerable:!0,get:function(){return r.stringLiteral}}),Object.defineProperty(t,"NumericLiteral",{enumerable:!0,get:function(){return r.numericLiteral}}),Object.defineProperty(t,"NullLiteral",{enumerable:!0,get:function(){return r.nullLiteral}}),Object.defineProperty(t,"BooleanLiteral",{enumerable:!0,get:function(){return r.booleanLiteral}}),Object.defineProperty(t,"RegExpLiteral",{enumerable:!0,get:function(){return r.regExpLiteral}}),Object.defineProperty(t,"LogicalExpression",{enumerable:!0,get:function(){return r.logicalExpression}}),Object.defineProperty(t,"MemberExpression",{enumerable:!0,get:function(){return r.memberExpression}}),Object.defineProperty(t,"NewExpression",{enumerable:!0,get:function(){return r.newExpression}}),Object.defineProperty(t,"Program",{enumerable:!0,get:function(){return r.program}}),Object.defineProperty(t,"ObjectExpression",{enumerable:!0,get:function(){return r.objectExpression}}),Object.defineProperty(t,"ObjectMethod",{enumerable:!0,get:function(){return r.objectMethod}}),Object.defineProperty(t,"ObjectProperty",{enumerable:!0,get:function(){return r.objectProperty}}),Object.defineProperty(t,"RestElement",{enumerable:!0,get:function(){return r.restElement}}),Object.defineProperty(t,"ReturnStatement",{enumerable:!0,get:function(){return r.returnStatement}}),Object.defineProperty(t,"SequenceExpression",{enumerable:!0,get:function(){return r.sequenceExpression}}),Object.defineProperty(t,"ParenthesizedExpression",{enumerable:!0,get:function(){return r.parenthesizedExpression}}),Object.defineProperty(t,"SwitchCase",{enumerable:!0,get:function(){return r.switchCase}}),Object.defineProperty(t,"SwitchStatement",{enumerable:!0,get:function(){return r.switchStatement}}),Object.defineProperty(t,"ThisExpression",{enumerable:!0,get:function(){return r.thisExpression}}),Object.defineProperty(t,"ThrowStatement",{enumerable:!0,get:function(){return r.throwStatement}}),Object.defineProperty(t,"TryStatement",{enumerable:!0,get:function(){return r.tryStatement}}),Object.defineProperty(t,"UnaryExpression",{enumerable:!0,get:function(){return r.unaryExpression}}),Object.defineProperty(t,"UpdateExpression",{enumerable:!0,get:function(){return r.updateExpression}}),Object.defineProperty(t,"VariableDeclaration",{enumerable:!0,get:function(){return r.variableDeclaration}}),Object.defineProperty(t,"VariableDeclarator",{enumerable:!0,get:function(){return r.variableDeclarator}}),Object.defineProperty(t,"WhileStatement",{enumerable:!0,get:function(){return r.whileStatement}}),Object.defineProperty(t,"WithStatement",{enumerable:!0,get:function(){return r.withStatement}}),Object.defineProperty(t,"AssignmentPattern",{enumerable:!0,get:function(){return r.assignmentPattern}}),Object.defineProperty(t,"ArrayPattern",{enumerable:!0,get:function(){return r.arrayPattern}}),Object.defineProperty(t,"ArrowFunctionExpression",{enumerable:!0,get:function(){return r.arrowFunctionExpression}}),Object.defineProperty(t,"ClassBody",{enumerable:!0,get:function(){return r.classBody}}),Object.defineProperty(t,"ClassExpression",{enumerable:!0,get:function(){return r.classExpression}}),Object.defineProperty(t,"ClassDeclaration",{enumerable:!0,get:function(){return r.classDeclaration}}),Object.defineProperty(t,"ExportAllDeclaration",{enumerable:!0,get:function(){return r.exportAllDeclaration}}),Object.defineProperty(t,"ExportDefaultDeclaration",{enumerable:!0,get:function(){return r.exportDefaultDeclaration}}),Object.defineProperty(t,"ExportNamedDeclaration",{enumerable:!0,get:function(){return r.exportNamedDeclaration}}),Object.defineProperty(t,"ExportSpecifier",{enumerable:!0,get:function(){return r.exportSpecifier}}),Object.defineProperty(t,"ForOfStatement",{enumerable:!0,get:function(){return r.forOfStatement}}),Object.defineProperty(t,"ImportDeclaration",{enumerable:!0,get:function(){return r.importDeclaration}}),Object.defineProperty(t,"ImportDefaultSpecifier",{enumerable:!0,get:function(){return r.importDefaultSpecifier}}),Object.defineProperty(t,"ImportNamespaceSpecifier",{enumerable:!0,get:function(){return r.importNamespaceSpecifier}}),Object.defineProperty(t,"ImportSpecifier",{enumerable:!0,get:function(){return r.importSpecifier}}),Object.defineProperty(t,"MetaProperty",{enumerable:!0,get:function(){return r.metaProperty}}),Object.defineProperty(t,"ClassMethod",{enumerable:!0,get:function(){return r.classMethod}}),Object.defineProperty(t,"ObjectPattern",{enumerable:!0,get:function(){return r.objectPattern}}),Object.defineProperty(t,"SpreadElement",{enumerable:!0,get:function(){return r.spreadElement}}),Object.defineProperty(t,"Super",{enumerable:!0,get:function(){return r.super}}),Object.defineProperty(t,"TaggedTemplateExpression",{enumerable:!0,get:function(){return r.taggedTemplateExpression}}),Object.defineProperty(t,"TemplateElement",{enumerable:!0,get:function(){return r.templateElement}}),Object.defineProperty(t,"TemplateLiteral",{enumerable:!0,get:function(){return r.templateLiteral}}),Object.defineProperty(t,"YieldExpression",{enumerable:!0,get:function(){return r.yieldExpression}}),Object.defineProperty(t,"AwaitExpression",{enumerable:!0,get:function(){return r.awaitExpression}}),Object.defineProperty(t,"Import",{enumerable:!0,get:function(){return r.import}}),Object.defineProperty(t,"BigIntLiteral",{enumerable:!0,get:function(){return r.bigIntLiteral}}),Object.defineProperty(t,"ExportNamespaceSpecifier",{enumerable:!0,get:function(){return r.exportNamespaceSpecifier}}),Object.defineProperty(t,"OptionalMemberExpression",{enumerable:!0,get:function(){return r.optionalMemberExpression}}),Object.defineProperty(t,"OptionalCallExpression",{enumerable:!0,get:function(){return r.optionalCallExpression}}),Object.defineProperty(t,"AnyTypeAnnotation",{enumerable:!0,get:function(){return r.anyTypeAnnotation}}),Object.defineProperty(t,"ArrayTypeAnnotation",{enumerable:!0,get:function(){return r.arrayTypeAnnotation}}),Object.defineProperty(t,"BooleanTypeAnnotation",{enumerable:!0,get:function(){return r.booleanTypeAnnotation}}),Object.defineProperty(t,"BooleanLiteralTypeAnnotation",{enumerable:!0,get:function(){return r.booleanLiteralTypeAnnotation}}),Object.defineProperty(t,"NullLiteralTypeAnnotation",{enumerable:!0,get:function(){return r.nullLiteralTypeAnnotation}}),Object.defineProperty(t,"ClassImplements",{enumerable:!0,get:function(){return r.classImplements}}),Object.defineProperty(t,"DeclareClass",{enumerable:!0,get:function(){return r.declareClass}}),Object.defineProperty(t,"DeclareFunction",{enumerable:!0,get:function(){return r.declareFunction}}),Object.defineProperty(t,"DeclareInterface",{enumerable:!0,get:function(){return r.declareInterface}}),Object.defineProperty(t,"DeclareModule",{enumerable:!0,get:function(){return r.declareModule}}),Object.defineProperty(t,"DeclareModuleExports",{enumerable:!0,get:function(){return r.declareModuleExports}}),Object.defineProperty(t,"DeclareTypeAlias",{enumerable:!0,get:function(){return r.declareTypeAlias}}),Object.defineProperty(t,"DeclareOpaqueType",{enumerable:!0,get:function(){return r.declareOpaqueType}}),Object.defineProperty(t,"DeclareVariable",{enumerable:!0,get:function(){return r.declareVariable}}),Object.defineProperty(t,"DeclareExportDeclaration",{enumerable:!0,get:function(){return r.declareExportDeclaration}}),Object.defineProperty(t,"DeclareExportAllDeclaration",{enumerable:!0,get:function(){return r.declareExportAllDeclaration}}),Object.defineProperty(t,"DeclaredPredicate",{enumerable:!0,get:function(){return r.declaredPredicate}}),Object.defineProperty(t,"ExistsTypeAnnotation",{enumerable:!0,get:function(){return r.existsTypeAnnotation}}),Object.defineProperty(t,"FunctionTypeAnnotation",{enumerable:!0,get:function(){return r.functionTypeAnnotation}}),Object.defineProperty(t,"FunctionTypeParam",{enumerable:!0,get:function(){return r.functionTypeParam}}),Object.defineProperty(t,"GenericTypeAnnotation",{enumerable:!0,get:function(){return r.genericTypeAnnotation}}),Object.defineProperty(t,"InferredPredicate",{enumerable:!0,get:function(){return r.inferredPredicate}}),Object.defineProperty(t,"InterfaceExtends",{enumerable:!0,get:function(){return r.interfaceExtends}}),Object.defineProperty(t,"InterfaceDeclaration",{enumerable:!0,get:function(){return r.interfaceDeclaration}}),Object.defineProperty(t,"InterfaceTypeAnnotation",{enumerable:!0,get:function(){return r.interfaceTypeAnnotation}}),Object.defineProperty(t,"IntersectionTypeAnnotation",{enumerable:!0,get:function(){return r.intersectionTypeAnnotation}}),Object.defineProperty(t,"MixedTypeAnnotation",{enumerable:!0,get:function(){return r.mixedTypeAnnotation}}),Object.defineProperty(t,"EmptyTypeAnnotation",{enumerable:!0,get:function(){return r.emptyTypeAnnotation}}),Object.defineProperty(t,"NullableTypeAnnotation",{enumerable:!0,get:function(){return r.nullableTypeAnnotation}}),Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return r.numberLiteralTypeAnnotation}}),Object.defineProperty(t,"NumberTypeAnnotation",{enumerable:!0,get:function(){return r.numberTypeAnnotation}}),Object.defineProperty(t,"ObjectTypeAnnotation",{enumerable:!0,get:function(){return r.objectTypeAnnotation}}),Object.defineProperty(t,"ObjectTypeInternalSlot",{enumerable:!0,get:function(){return r.objectTypeInternalSlot}}),Object.defineProperty(t,"ObjectTypeCallProperty",{enumerable:!0,get:function(){return r.objectTypeCallProperty}}),Object.defineProperty(t,"ObjectTypeIndexer",{enumerable:!0,get:function(){return r.objectTypeIndexer}}),Object.defineProperty(t,"ObjectTypeProperty",{enumerable:!0,get:function(){return r.objectTypeProperty}}),Object.defineProperty(t,"ObjectTypeSpreadProperty",{enumerable:!0,get:function(){return r.objectTypeSpreadProperty}}),Object.defineProperty(t,"OpaqueType",{enumerable:!0,get:function(){return r.opaqueType}}),Object.defineProperty(t,"QualifiedTypeIdentifier",{enumerable:!0,get:function(){return r.qualifiedTypeIdentifier}}),Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return r.stringLiteralTypeAnnotation}}),Object.defineProperty(t,"StringTypeAnnotation",{enumerable:!0,get:function(){return r.stringTypeAnnotation}}),Object.defineProperty(t,"SymbolTypeAnnotation",{enumerable:!0,get:function(){return r.symbolTypeAnnotation}}),Object.defineProperty(t,"ThisTypeAnnotation",{enumerable:!0,get:function(){return r.thisTypeAnnotation}}),Object.defineProperty(t,"TupleTypeAnnotation",{enumerable:!0,get:function(){return r.tupleTypeAnnotation}}),Object.defineProperty(t,"TypeofTypeAnnotation",{enumerable:!0,get:function(){return r.typeofTypeAnnotation}}),Object.defineProperty(t,"TypeAlias",{enumerable:!0,get:function(){return r.typeAlias}}),Object.defineProperty(t,"TypeAnnotation",{enumerable:!0,get:function(){return r.typeAnnotation}}),Object.defineProperty(t,"TypeCastExpression",{enumerable:!0,get:function(){return r.typeCastExpression}}),Object.defineProperty(t,"TypeParameter",{enumerable:!0,get:function(){return r.typeParameter}}),Object.defineProperty(t,"TypeParameterDeclaration",{enumerable:!0,get:function(){return r.typeParameterDeclaration}}),Object.defineProperty(t,"TypeParameterInstantiation",{enumerable:!0,get:function(){return r.typeParameterInstantiation}}),Object.defineProperty(t,"UnionTypeAnnotation",{enumerable:!0,get:function(){return r.unionTypeAnnotation}}),Object.defineProperty(t,"Variance",{enumerable:!0,get:function(){return r.variance}}),Object.defineProperty(t,"VoidTypeAnnotation",{enumerable:!0,get:function(){return r.voidTypeAnnotation}}),Object.defineProperty(t,"EnumDeclaration",{enumerable:!0,get:function(){return r.enumDeclaration}}),Object.defineProperty(t,"EnumBooleanBody",{enumerable:!0,get:function(){return r.enumBooleanBody}}),Object.defineProperty(t,"EnumNumberBody",{enumerable:!0,get:function(){return r.enumNumberBody}}),Object.defineProperty(t,"EnumStringBody",{enumerable:!0,get:function(){return r.enumStringBody}}),Object.defineProperty(t,"EnumSymbolBody",{enumerable:!0,get:function(){return r.enumSymbolBody}}),Object.defineProperty(t,"EnumBooleanMember",{enumerable:!0,get:function(){return r.enumBooleanMember}}),Object.defineProperty(t,"EnumNumberMember",{enumerable:!0,get:function(){return r.enumNumberMember}}),Object.defineProperty(t,"EnumStringMember",{enumerable:!0,get:function(){return r.enumStringMember}}),Object.defineProperty(t,"EnumDefaultedMember",{enumerable:!0,get:function(){return r.enumDefaultedMember}}),Object.defineProperty(t,"JSXAttribute",{enumerable:!0,get:function(){return r.jsxAttribute}}),Object.defineProperty(t,"JSXClosingElement",{enumerable:!0,get:function(){return r.jsxClosingElement}}),Object.defineProperty(t,"JSXElement",{enumerable:!0,get:function(){return r.jsxElement}}),Object.defineProperty(t,"JSXEmptyExpression",{enumerable:!0,get:function(){return r.jsxEmptyExpression}}),Object.defineProperty(t,"JSXExpressionContainer",{enumerable:!0,get:function(){return r.jsxExpressionContainer}}),Object.defineProperty(t,"JSXSpreadChild",{enumerable:!0,get:function(){return r.jsxSpreadChild}}),Object.defineProperty(t,"JSXIdentifier",{enumerable:!0,get:function(){return r.jsxIdentifier}}),Object.defineProperty(t,"JSXMemberExpression",{enumerable:!0,get:function(){return r.jsxMemberExpression}}),Object.defineProperty(t,"JSXNamespacedName",{enumerable:!0,get:function(){return r.jsxNamespacedName}}),Object.defineProperty(t,"JSXOpeningElement",{enumerable:!0,get:function(){return r.jsxOpeningElement}}),Object.defineProperty(t,"JSXSpreadAttribute",{enumerable:!0,get:function(){return r.jsxSpreadAttribute}}),Object.defineProperty(t,"JSXText",{enumerable:!0,get:function(){return r.jsxText}}),Object.defineProperty(t,"JSXFragment",{enumerable:!0,get:function(){return r.jsxFragment}}),Object.defineProperty(t,"JSXOpeningFragment",{enumerable:!0,get:function(){return r.jsxOpeningFragment}}),Object.defineProperty(t,"JSXClosingFragment",{enumerable:!0,get:function(){return r.jsxClosingFragment}}),Object.defineProperty(t,"Noop",{enumerable:!0,get:function(){return r.noop}}),Object.defineProperty(t,"Placeholder",{enumerable:!0,get:function(){return r.placeholder}}),Object.defineProperty(t,"V8IntrinsicIdentifier",{enumerable:!0,get:function(){return r.v8IntrinsicIdentifier}}),Object.defineProperty(t,"ArgumentPlaceholder",{enumerable:!0,get:function(){return r.argumentPlaceholder}}),Object.defineProperty(t,"BindExpression",{enumerable:!0,get:function(){return r.bindExpression}}),Object.defineProperty(t,"ClassProperty",{enumerable:!0,get:function(){return r.classProperty}}),Object.defineProperty(t,"PipelineTopicExpression",{enumerable:!0,get:function(){return r.pipelineTopicExpression}}),Object.defineProperty(t,"PipelineBareFunction",{enumerable:!0,get:function(){return r.pipelineBareFunction}}),Object.defineProperty(t,"PipelinePrimaryTopicReference",{enumerable:!0,get:function(){return r.pipelinePrimaryTopicReference}}),Object.defineProperty(t,"ClassPrivateProperty",{enumerable:!0,get:function(){return r.classPrivateProperty}}),Object.defineProperty(t,"ClassPrivateMethod",{enumerable:!0,get:function(){return r.classPrivateMethod}}),Object.defineProperty(t,"ImportAttribute",{enumerable:!0,get:function(){return r.importAttribute}}),Object.defineProperty(t,"Decorator",{enumerable:!0,get:function(){return r.decorator}}),Object.defineProperty(t,"DoExpression",{enumerable:!0,get:function(){return r.doExpression}}),Object.defineProperty(t,"ExportDefaultSpecifier",{enumerable:!0,get:function(){return r.exportDefaultSpecifier}}),Object.defineProperty(t,"PrivateName",{enumerable:!0,get:function(){return r.privateName}}),Object.defineProperty(t,"RecordExpression",{enumerable:!0,get:function(){return r.recordExpression}}),Object.defineProperty(t,"TupleExpression",{enumerable:!0,get:function(){return r.tupleExpression}}),Object.defineProperty(t,"DecimalLiteral",{enumerable:!0,get:function(){return r.decimalLiteral}}),Object.defineProperty(t,"StaticBlock",{enumerable:!0,get:function(){return r.staticBlock}}),Object.defineProperty(t,"TSParameterProperty",{enumerable:!0,get:function(){return r.tsParameterProperty}}),Object.defineProperty(t,"TSDeclareFunction",{enumerable:!0,get:function(){return r.tsDeclareFunction}}),Object.defineProperty(t,"TSDeclareMethod",{enumerable:!0,get:function(){return r.tsDeclareMethod}}),Object.defineProperty(t,"TSQualifiedName",{enumerable:!0,get:function(){return r.tsQualifiedName}}),Object.defineProperty(t,"TSCallSignatureDeclaration",{enumerable:!0,get:function(){return r.tsCallSignatureDeclaration}}),Object.defineProperty(t,"TSConstructSignatureDeclaration",{enumerable:!0,get:function(){return r.tsConstructSignatureDeclaration}}),Object.defineProperty(t,"TSPropertySignature",{enumerable:!0,get:function(){return r.tsPropertySignature}}),Object.defineProperty(t,"TSMethodSignature",{enumerable:!0,get:function(){return r.tsMethodSignature}}),Object.defineProperty(t,"TSIndexSignature",{enumerable:!0,get:function(){return r.tsIndexSignature}}),Object.defineProperty(t,"TSAnyKeyword",{enumerable:!0,get:function(){return r.tsAnyKeyword}}),Object.defineProperty(t,"TSBooleanKeyword",{enumerable:!0,get:function(){return r.tsBooleanKeyword}}),Object.defineProperty(t,"TSBigIntKeyword",{enumerable:!0,get:function(){return r.tsBigIntKeyword}}),Object.defineProperty(t,"TSIntrinsicKeyword",{enumerable:!0,get:function(){return r.tsIntrinsicKeyword}}),Object.defineProperty(t,"TSNeverKeyword",{enumerable:!0,get:function(){return r.tsNeverKeyword}}),Object.defineProperty(t,"TSNullKeyword",{enumerable:!0,get:function(){return r.tsNullKeyword}}),Object.defineProperty(t,"TSNumberKeyword",{enumerable:!0,get:function(){return r.tsNumberKeyword}}),Object.defineProperty(t,"TSObjectKeyword",{enumerable:!0,get:function(){return r.tsObjectKeyword}}),Object.defineProperty(t,"TSStringKeyword",{enumerable:!0,get:function(){return r.tsStringKeyword}}),Object.defineProperty(t,"TSSymbolKeyword",{enumerable:!0,get:function(){return r.tsSymbolKeyword}}),Object.defineProperty(t,"TSUndefinedKeyword",{enumerable:!0,get:function(){return r.tsUndefinedKeyword}}),Object.defineProperty(t,"TSUnknownKeyword",{enumerable:!0,get:function(){return r.tsUnknownKeyword}}),Object.defineProperty(t,"TSVoidKeyword",{enumerable:!0,get:function(){return r.tsVoidKeyword}}),Object.defineProperty(t,"TSThisType",{enumerable:!0,get:function(){return r.tsThisType}}),Object.defineProperty(t,"TSFunctionType",{enumerable:!0,get:function(){return r.tsFunctionType}}),Object.defineProperty(t,"TSConstructorType",{enumerable:!0,get:function(){return r.tsConstructorType}}),Object.defineProperty(t,"TSTypeReference",{enumerable:!0,get:function(){return r.tsTypeReference}}),Object.defineProperty(t,"TSTypePredicate",{enumerable:!0,get:function(){return r.tsTypePredicate}}),Object.defineProperty(t,"TSTypeQuery",{enumerable:!0,get:function(){return r.tsTypeQuery}}),Object.defineProperty(t,"TSTypeLiteral",{enumerable:!0,get:function(){return r.tsTypeLiteral}}),Object.defineProperty(t,"TSArrayType",{enumerable:!0,get:function(){return r.tsArrayType}}),Object.defineProperty(t,"TSTupleType",{enumerable:!0,get:function(){return r.tsTupleType}}),Object.defineProperty(t,"TSOptionalType",{enumerable:!0,get:function(){return r.tsOptionalType}}),Object.defineProperty(t,"TSRestType",{enumerable:!0,get:function(){return r.tsRestType}}),Object.defineProperty(t,"TSNamedTupleMember",{enumerable:!0,get:function(){return r.tsNamedTupleMember}}),Object.defineProperty(t,"TSUnionType",{enumerable:!0,get:function(){return r.tsUnionType}}),Object.defineProperty(t,"TSIntersectionType",{enumerable:!0,get:function(){return r.tsIntersectionType}}),Object.defineProperty(t,"TSConditionalType",{enumerable:!0,get:function(){return r.tsConditionalType}}),Object.defineProperty(t,"TSInferType",{enumerable:!0,get:function(){return r.tsInferType}}),Object.defineProperty(t,"TSParenthesizedType",{enumerable:!0,get:function(){return r.tsParenthesizedType}}),Object.defineProperty(t,"TSTypeOperator",{enumerable:!0,get:function(){return r.tsTypeOperator}}),Object.defineProperty(t,"TSIndexedAccessType",{enumerable:!0,get:function(){return r.tsIndexedAccessType}}),Object.defineProperty(t,"TSMappedType",{enumerable:!0,get:function(){return r.tsMappedType}}),Object.defineProperty(t,"TSLiteralType",{enumerable:!0,get:function(){return r.tsLiteralType}}),Object.defineProperty(t,"TSExpressionWithTypeArguments",{enumerable:!0,get:function(){return r.tsExpressionWithTypeArguments}}),Object.defineProperty(t,"TSInterfaceDeclaration",{enumerable:!0,get:function(){return r.tsInterfaceDeclaration}}),Object.defineProperty(t,"TSInterfaceBody",{enumerable:!0,get:function(){return r.tsInterfaceBody}}),Object.defineProperty(t,"TSTypeAliasDeclaration",{enumerable:!0,get:function(){return r.tsTypeAliasDeclaration}}),Object.defineProperty(t,"TSAsExpression",{enumerable:!0,get:function(){return r.tsAsExpression}}),Object.defineProperty(t,"TSTypeAssertion",{enumerable:!0,get:function(){return r.tsTypeAssertion}}),Object.defineProperty(t,"TSEnumDeclaration",{enumerable:!0,get:function(){return r.tsEnumDeclaration}}),Object.defineProperty(t,"TSEnumMember",{enumerable:!0,get:function(){return r.tsEnumMember}}),Object.defineProperty(t,"TSModuleDeclaration",{enumerable:!0,get:function(){return r.tsModuleDeclaration}}),Object.defineProperty(t,"TSModuleBlock",{enumerable:!0,get:function(){return r.tsModuleBlock}}),Object.defineProperty(t,"TSImportType",{enumerable:!0,get:function(){return r.tsImportType}}),Object.defineProperty(t,"TSImportEqualsDeclaration",{enumerable:!0,get:function(){return r.tsImportEqualsDeclaration}}),Object.defineProperty(t,"TSExternalModuleReference",{enumerable:!0,get:function(){return r.tsExternalModuleReference}}),Object.defineProperty(t,"TSNonNullExpression",{enumerable:!0,get:function(){return r.tsNonNullExpression}}),Object.defineProperty(t,"TSExportAssignment",{enumerable:!0,get:function(){return r.tsExportAssignment}}),Object.defineProperty(t,"TSNamespaceExportDeclaration",{enumerable:!0,get:function(){return r.tsNamespaceExportDeclaration}}),Object.defineProperty(t,"TSTypeAnnotation",{enumerable:!0,get:function(){return r.tsTypeAnnotation}}),Object.defineProperty(t,"TSTypeParameterInstantiation",{enumerable:!0,get:function(){return r.tsTypeParameterInstantiation}}),Object.defineProperty(t,"TSTypeParameterDeclaration",{enumerable:!0,get:function(){return r.tsTypeParameterDeclaration}}),Object.defineProperty(t,"TSTypeParameter",{enumerable:!0,get:function(){return r.tsTypeParameter}}),Object.defineProperty(t,"NumberLiteral",{enumerable:!0,get:function(){return r.numberLiteral}}),Object.defineProperty(t,"RegexLiteral",{enumerable:!0,get:function(){return r.regexLiteral}}),Object.defineProperty(t,"RestProperty",{enumerable:!0,get:function(){return r.restProperty}}),Object.defineProperty(t,"SpreadProperty",{enumerable:!0,get:function(){return r.spreadProperty}});var r=T("./index")},{"./index":12}],14:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=b;var r=T("../../validators/generated"),m=f(T("../../utils/react/cleanJSXElementLiteralChild"));function f(g){return g&&g.__esModule?g:{default:g}}function b(g){const p=[];for(let c=0;c<g.children.length;c++){let d=g.children[c];if((0,r.isJSXText)(d)){(0,m.default)(d,p);continue}if((0,r.isJSXExpressionContainer)(d)&&(d=d.expression),(0,r.isJSXEmptyExpression)(d))continue;p.push(d)}return p}},{"../../utils/react/cleanJSXElementLiteralChild":63,"../../validators/generated":66}],15:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=b;var r=T("../generated"),m=f(T("../../modifications/typescript/removeTypeDuplicates"));function f(g){return g&&g.__esModule?g:{default:g}}function b(g){const p=g.map(d=>d.typeAnnotation),c=(0,m.default)(p);return c.length===1?c[0]:(0,r.tsUnionType)(c)}},{"../../modifications/typescript/removeTypeDuplicates":57,"../generated":12}],16:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=m(T("./cloneNode"));function m(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,r.default)(b,!1)}},{"./cloneNode":19}],17:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=m(T("./cloneNode"));function m(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,r.default)(b)}},{"./cloneNode":19}],18:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=m(T("./cloneNode"));function m(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,r.default)(b,!0,!0)}},{"./cloneNode":19}],19:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var r=T("../definitions"),m=T("../validators/generated");const f=Function.call.bind(Object.prototype.hasOwnProperty);function b(E,x,a){return E&&typeof E.type=="string"?p(E,x,a):E}function g(E,x,a){return Array.isArray(E)?E.map(O=>b(O,x,a)):b(E,x,a)}function p(E,x=!0,a=!1){if(!E)return E;const{type:O}=E,_={type:E.type};if((0,m.isIdentifier)(E))_.name=E.name,f(E,"optional")&&typeof E.optional=="boolean"&&(_.optional=E.optional),f(E,"typeAnnotation")&&(_.typeAnnotation=x?g(E.typeAnnotation,!0,a):E.typeAnnotation);else if(f(r.NODE_FIELDS,O))for(const L of Object.keys(r.NODE_FIELDS[O]))f(E,L)&&(x?_[L]=(0,m.isFile)(E)&&L==="comments"?d(E.comments,x,a):g(E[L],!0,a):_[L]=E[L]);else throw new Error(`Unknown node type: "${O}"`);return f(E,"loc")&&(a?_.loc=null:_.loc=E.loc),f(E,"leadingComments")&&(_.leadingComments=d(E.leadingComments,x,a)),f(E,"innerComments")&&(_.innerComments=d(E.innerComments,x,a)),f(E,"trailingComments")&&(_.trailingComments=d(E.trailingComments,x,a)),f(E,"extra")&&(_.extra=Object.assign({},E.extra)),_}function c(E){return E.map(({type:x,value:a})=>({type:x,value:a,loc:null}))}function d(E,x,a){return x&&a?c(E):E}},{"../definitions":44,"../validators/generated":66}],20:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=m(T("./cloneNode"));function m(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,r.default)(b,!1,!0)}},{"./cloneNode":19}],21:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=m(T("./addComments"));function m(b){return b&&b.__esModule?b:{default:b}}function f(b,g,p,c){return(0,r.default)(b,g,[{type:c?"CommentLine":"CommentBlock",value:p}])}},{"./addComments":22}],22:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(m,f,b){if(!b||!m)return m;const g=`${f}Comments`;return m[g]?f==="leading"?m[g]=b.concat(m[g]):m[g]=m[g].concat(b):m[g]=b,m}},{}],23:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=m(T("../utils/inherit"));function m(b){return b&&b.__esModule?b:{default:b}}function f(b,g){(0,r.default)("innerComments",b,g)}},{"../utils/inherit":62}],24:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=m(T("../utils/inherit"));function m(b){return b&&b.__esModule?b:{default:b}}function f(b,g){(0,r.default)("leadingComments",b,g)}},{"../utils/inherit":62}],25:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=m(T("../utils/inherit"));function m(b){return b&&b.__esModule?b:{default:b}}function f(b,g){(0,r.default)("trailingComments",b,g)}},{"../utils/inherit":62}],26:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=g;var r=b(T("./inheritTrailingComments")),m=b(T("./inheritLeadingComments")),f=b(T("./inheritInnerComments"));function b(p){return p&&p.__esModule?p:{default:p}}function g(p,c){return(0,r.default)(p,c),(0,m.default)(p,c),(0,f.default)(p,c),p}},{"./inheritInnerComments":23,"./inheritLeadingComments":24,"./inheritTrailingComments":25}],27:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=T("../constants");function m(f){return r.COMMENT_KEYS.forEach(b=>{f[b]=null}),f}},{"../constants":29}],28:[function(T,C,t){"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 r=T("../../definitions");const m=r.FLIPPED_ALIAS_KEYS.Expression;t.EXPRESSION_TYPES=m;const f=r.FLIPPED_ALIAS_KEYS.Binary;t.BINARY_TYPES=f;const b=r.FLIPPED_ALIAS_KEYS.Scopable;t.SCOPABLE_TYPES=b;const g=r.FLIPPED_ALIAS_KEYS.BlockParent;t.BLOCKPARENT_TYPES=g;const p=r.FLIPPED_ALIAS_KEYS.Block;t.BLOCK_TYPES=p;const c=r.FLIPPED_ALIAS_KEYS.Statement;t.STATEMENT_TYPES=c;const d=r.FLIPPED_ALIAS_KEYS.Terminatorless;t.TERMINATORLESS_TYPES=d;const E=r.FLIPPED_ALIAS_KEYS.CompletionStatement;t.COMPLETIONSTATEMENT_TYPES=E;const x=r.FLIPPED_ALIAS_KEYS.Conditional;t.CONDITIONAL_TYPES=x;const a=r.FLIPPED_ALIAS_KEYS.Loop;t.LOOP_TYPES=a;const O=r.FLIPPED_ALIAS_KEYS.While;t.WHILE_TYPES=O;const _=r.FLIPPED_ALIAS_KEYS.ExpressionWrapper;t.EXPRESSIONWRAPPER_TYPES=_;const L=r.FLIPPED_ALIAS_KEYS.For;t.FOR_TYPES=L;const B=r.FLIPPED_ALIAS_KEYS.ForXStatement;t.FORXSTATEMENT_TYPES=B;const k=r.FLIPPED_ALIAS_KEYS.Function;t.FUNCTION_TYPES=k;const P=r.FLIPPED_ALIAS_KEYS.FunctionParent;t.FUNCTIONPARENT_TYPES=P;const A=r.FLIPPED_ALIAS_KEYS.Pureish;t.PUREISH_TYPES=A;const R=r.FLIPPED_ALIAS_KEYS.Declaration;t.DECLARATION_TYPES=R;const j=r.FLIPPED_ALIAS_KEYS.PatternLike;t.PATTERNLIKE_TYPES=j;const v=r.FLIPPED_ALIAS_KEYS.LVal;t.LVAL_TYPES=v;const $=r.FLIPPED_ALIAS_KEYS.TSEntityName;t.TSENTITYNAME_TYPES=$;const D=r.FLIPPED_ALIAS_KEYS.Literal;t.LITERAL_TYPES=D;const oe=r.FLIPPED_ALIAS_KEYS.Immutable;t.IMMUTABLE_TYPES=oe;const z=r.FLIPPED_ALIAS_KEYS.UserWhitespacable;t.USERWHITESPACABLE_TYPES=z;const Q=r.FLIPPED_ALIAS_KEYS.Method;t.METHOD_TYPES=Q;const re=r.FLIPPED_ALIAS_KEYS.ObjectMember;t.OBJECTMEMBER_TYPES=re;const K=r.FLIPPED_ALIAS_KEYS.Property;t.PROPERTY_TYPES=K;const H=r.FLIPPED_ALIAS_KEYS.UnaryLike;t.UNARYLIKE_TYPES=H;const ie=r.FLIPPED_ALIAS_KEYS.Pattern;t.PATTERN_TYPES=ie;const pe=r.FLIPPED_ALIAS_KEYS.Class;t.CLASS_TYPES=pe;const Te=r.FLIPPED_ALIAS_KEYS.ModuleDeclaration;t.MODULEDECLARATION_TYPES=Te;const ae=r.FLIPPED_ALIAS_KEYS.ExportDeclaration;t.EXPORTDECLARATION_TYPES=ae;const le=r.FLIPPED_ALIAS_KEYS.ModuleSpecifier;t.MODULESPECIFIER_TYPES=le;const X=r.FLIPPED_ALIAS_KEYS.Flow;t.FLOW_TYPES=X;const J=r.FLIPPED_ALIAS_KEYS.FlowType;t.FLOWTYPE_TYPES=J;const Z=r.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation;t.FLOWBASEANNOTATION_TYPES=Z;const he=r.FLIPPED_ALIAS_KEYS.FlowDeclaration;t.FLOWDECLARATION_TYPES=he;const Pe=r.FLIPPED_ALIAS_KEYS.FlowPredicate;t.FLOWPREDICATE_TYPES=Pe;const me=r.FLIPPED_ALIAS_KEYS.EnumBody;t.ENUMBODY_TYPES=me;const ge=r.FLIPPED_ALIAS_KEYS.EnumMember;t.ENUMMEMBER_TYPES=ge;const Ae=r.FLIPPED_ALIAS_KEYS.JSX;t.JSX_TYPES=Ae;const Ne=r.FLIPPED_ALIAS_KEYS.Private;t.PRIVATE_TYPES=Ne;const Ue=r.FLIPPED_ALIAS_KEYS.TSTypeElement;t.TSTYPEELEMENT_TYPES=Ue;const Ye=r.FLIPPED_ALIAS_KEYS.TSType;t.TSTYPE_TYPES=Ye;const at=r.FLIPPED_ALIAS_KEYS.TSBaseType;t.TSBASETYPE_TYPES=at},{"../../definitions":44}],29:[function(T,C,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;const r=["consequent","body","alternate"];t.STATEMENT_OR_BLOCK_KEYS=r;const m=["body","expressions"];t.FLATTENABLE_KEYS=m;const f=["left","init"];t.FOR_INIT_KEYS=f;const b=["leadingComments","trailingComments","innerComments"];t.COMMENT_KEYS=b;const g=["||","&&","??"];t.LOGICAL_OPERATORS=g;const p=["++","--"];t.UPDATE_OPERATORS=p;const c=[">","<",">=","<="];t.BOOLEAN_NUMBER_BINARY_OPERATORS=c;const d=["==","===","!=","!=="];t.EQUALITY_BINARY_OPERATORS=d;const E=[...d,"in","instanceof"];t.COMPARISON_BINARY_OPERATORS=E;const x=[...E,...c];t.BOOLEAN_BINARY_OPERATORS=x;const a=["-","/","%","*","**","&","|",">>",">>>","<<","^"];t.NUMBER_BINARY_OPERATORS=a;const O=["+",...a,...x];t.BINARY_OPERATORS=O;const _=["=","+=",...a.map(v=>v+"="),...g.map(v=>v+"=")];t.ASSIGNMENT_OPERATORS=_;const L=["delete","!"];t.BOOLEAN_UNARY_OPERATORS=L;const B=["+","-","~"];t.NUMBER_UNARY_OPERATORS=B;const k=["typeof"];t.STRING_UNARY_OPERATORS=k;const P=["void","throw",...L,...B,...k];t.UNARY_OPERATORS=P;const A={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};t.INHERIT_KEYS=A;const R=Symbol.for("var used to be block scoped");t.BLOCK_SCOPED_SYMBOL=R;const j=Symbol.for("should not be considered a local binding");t.NOT_LOCAL_BINDING=j},{}],30:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=m(T("./toBlock"));function m(b){return b&&b.__esModule?b:{default:b}}function f(b,g="body"){return b[g]=(0,r.default)(b[g],b)}},{"./toBlock":33}],31:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var r=g(T("../retrievers/getBindingIdentifiers")),m=T("../validators/generated"),f=T("../builders/generated"),b=g(T("../clone/cloneNode"));function g(c){return c&&c.__esModule?c:{default:c}}function p(c,d,E){const x=[];let a=!0;for(const O of c)if((0,m.isEmptyStatement)(O)||(a=!1),(0,m.isExpression)(O))x.push(O);else if((0,m.isExpressionStatement)(O))x.push(O.expression);else if((0,m.isVariableDeclaration)(O)){if(O.kind!=="var")return;for(const _ of O.declarations){const L=(0,r.default)(_);for(const B of Object.keys(L))E.push({kind:O.kind,id:(0,b.default)(L[B])});_.init&&x.push((0,f.assignmentExpression)("=",_.id,_.init))}a=!0}else if((0,m.isIfStatement)(O)){const _=O.consequent?p([O.consequent],d,E):d.buildUndefinedNode(),L=O.alternate?p([O.alternate],d,E):d.buildUndefinedNode();if(!_||!L)return;x.push((0,f.conditionalExpression)(O.test,_,L))}else if((0,m.isBlockStatement)(O)){const _=p(O.body,d,E);if(!_)return;x.push(_)}else if((0,m.isEmptyStatement)(O))c.indexOf(O)===0&&(a=!0);else return;return a&&x.push(d.buildUndefinedNode()),x.length===1?x[0]:(0,f.sequenceExpression)(x)}},{"../builders/generated":12,"../clone/cloneNode":19,"../retrievers/getBindingIdentifiers":58,"../validators/generated":66}],32:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=m(T("./toIdentifier"));function m(b){return b&&b.__esModule?b:{default:b}}function f(b){return b=(0,r.default)(b),(b==="eval"||b==="arguments")&&(b="_"+b),b}},{"./toIdentifier":36}],33:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=T("../validators/generated"),m=T("../builders/generated");function f(b,g){if((0,r.isBlockStatement)(b))return b;let p=[];return(0,r.isEmptyStatement)(b)?p=[]:((0,r.isStatement)(b)||((0,r.isFunction)(g)?b=(0,m.returnStatement)(b):b=(0,m.expressionStatement)(b)),p=[b]),(0,m.blockStatement)(p)}},{"../builders/generated":12,"../validators/generated":66}],34:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=T("../validators/generated"),m=T("../builders/generated");function f(b,g=b.key||b.property){return!b.computed&&(0,r.isIdentifier)(g)&&(g=(0,m.stringLiteral)(g.name)),g}},{"../builders/generated":12,"../validators/generated":66}],35:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=T("../validators/generated"),m=f;t.default=m;function f(b){if((0,r.isExpressionStatement)(b)&&(b=b.expression),(0,r.isExpression)(b))return b;if((0,r.isClass)(b)?b.type="ClassExpression":(0,r.isFunction)(b)&&(b.type="FunctionExpression"),!(0,r.isExpression)(b))throw new Error(`cannot turn ${b.type} to an expression`);return b}},{"../validators/generated":66}],36:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=m(T("../validators/isValidIdentifier"));function m(b){return b&&b.__esModule?b:{default:b}}function f(b){return b=b+"",b=b.replace(/[^a-zA-Z0-9$_]/g,"-"),b=b.replace(/^[-0-9]+/,""),b=b.replace(/[-\s]+(.)?/g,function(g,p){return p?p.toUpperCase():""}),(0,r.default)(b)||(b=`_${b}`),b||"_"}},{"../validators/isValidIdentifier":80}],37:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=g;var r=T("../validators/generated"),m=b(T("../clone/cloneNode")),f=b(T("../modifications/removePropertiesDeep"));function b(p){return p&&p.__esModule?p:{default:p}}function g(p,c=p.key){let d;return p.kind==="method"?g.increment()+"":((0,r.isIdentifier)(c)?d=c.name:(0,r.isStringLiteral)(c)?d=JSON.stringify(c.value):d=JSON.stringify((0,f.default)((0,m.default)(c))),p.computed&&(d=`[${d}]`),p.static&&(d=`static:${d}`),d)}g.uid=0,g.increment=function(){return g.uid>=Number.MAX_SAFE_INTEGER?g.uid=0:g.uid++}},{"../clone/cloneNode":19,"../modifications/removePropertiesDeep":56,"../validators/generated":66}],38:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=m(T("./gatherSequenceExpressions"));function m(b){return b&&b.__esModule?b:{default:b}}function f(b,g){if(!(b==null?void 0:b.length))return;const p=[],c=(0,r.default)(b,g,p);if(!c)return;for(const d of p)g.push(d);return c}},{"./gatherSequenceExpressions":31}],39:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=T("../validators/generated"),m=T("../builders/generated"),f=b;t.default=f;function b(g,p){if((0,r.isStatement)(g))return g;let c=!1,d;if((0,r.isClass)(g))c=!0,d="ClassDeclaration";else if((0,r.isFunction)(g))c=!0,d="FunctionDeclaration";else if((0,r.isAssignmentExpression)(g))return(0,m.expressionStatement)(g);if(c&&!g.id&&(d=!1),!d){if(p)return!1;throw new Error(`cannot turn ${g.type} to a statement`)}return g.type=d,g}},{"../builders/generated":12,"../validators/generated":66}],40:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=g(T("lodash/isPlainObject")),m=g(T("lodash/isRegExp")),f=g(T("../validators/isValidIdentifier")),b=T("../builders/generated");function g(d){return d&&d.__esModule?d:{default:d}}var p=c;t.default=p;function c(d){if(d===void 0)return(0,b.identifier)("undefined");if(d===!0||d===!1)return(0,b.booleanLiteral)(d);if(d===null)return(0,b.nullLiteral)();if(typeof d=="string")return(0,b.stringLiteral)(d);if(typeof d=="number"){let E;if(Number.isFinite(d))E=(0,b.numericLiteral)(Math.abs(d));else{let x;Number.isNaN(d)?x=(0,b.numericLiteral)(0):x=(0,b.numericLiteral)(1),E=(0,b.binaryExpression)("/",x,(0,b.numericLiteral)(0))}return(d<0||Object.is(d,-0))&&(E=(0,b.unaryExpression)("-",E)),E}if((0,m.default)(d)){const E=d.source,x=d.toString().match(/\/([a-z]+|)$/)[1];return(0,b.regExpLiteral)(E,x)}if(Array.isArray(d))return(0,b.arrayExpression)(d.map(c));if((0,r.default)(d)){const E=[];for(const x of Object.keys(d)){let a;(0,f.default)(x)?a=(0,b.identifier)(x):a=(0,b.stringLiteral)(x),E.push((0,b.objectProperty)(a,c(d[x])))}return(0,b.objectExpression)(E)}throw new Error("don't know how to turn this value into a node")}},{"../builders/generated":12,"../validators/isValidIdentifier":80,"lodash/isPlainObject":208,"lodash/isRegExp":209}],41:[function(T,C,t){(function(r){(function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.classMethodOrDeclareMethodCommon=t.classMethodOrPropertyCommon=t.patternLikeCommon=t.functionDeclarationCommon=t.functionTypeAnnotationCommon=t.functionCommon=void 0;var m=E(T("../validators/is")),f=E(T("../validators/isValidIdentifier")),b=T("@babel/helper-validator-identifier"),g=T("../constants"),p=d(T("./utils"));function c(){if(typeof WeakMap!="function")return null;var k=new WeakMap;return c=function(){return k},k}function d(k){if(k&&k.__esModule)return k;if(k===null||typeof k!="object"&&typeof k!="function")return{default:k};var P=c();if(P&&P.has(k))return P.get(k);var A={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in k)if(Object.prototype.hasOwnProperty.call(k,j)){var v=R?Object.getOwnPropertyDescriptor(k,j):null;v&&(v.get||v.set)?Object.defineProperty(A,j,v):A[j]=k[j]}return A.default=k,P&&P.set(k,A),A}function E(k){return k&&k.__esModule?k:{default:k}}(0,p.default)("ArrayExpression",{fields:{elements:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeOrValueType)("null","Expression","SpreadElement"))),default:r.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),(0,p.default)("AssignmentExpression",{fields:{operator:{validate:function(){if(!r.env.BABEL_TYPES_8_BREAKING)return(0,p.assertValueType)("string");const k=(0,p.assertOneOf)(...g.ASSIGNMENT_OPERATORS),P=(0,p.assertOneOf)("=");return function(A,R,j){const v=(0,m.default)("Pattern",A.left)?P:k;v(A,R,j)}}()},left:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,p.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern"):(0,p.assertNodeType)("LVal")},right:{validate:(0,p.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),(0,p.default)("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,p.assertOneOf)(...g.BINARY_OPERATORS)},left:{validate:function(){const k=(0,p.assertNodeType)("Expression"),P=(0,p.assertNodeType)("Expression","PrivateName"),A=function(R,j,v){const $=R.operator==="in"?P:k;$(R,j,v)};return A.oneOfNodeTypes=["Expression","PrivateName"],A}()},right:{validate:(0,p.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),(0,p.default)("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,p.assertValueType)("string")}}}),(0,p.default)("Directive",{visitor:["value"],fields:{value:{validate:(0,p.assertNodeType)("DirectiveLiteral")}}}),(0,p.default)("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,p.assertValueType)("string")}}}),(0,p.default)("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Directive"))),default:[]},body:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block","Statement"]}),(0,p.default)("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,p.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),(0,p.default)("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,p.assertNodeType)("Expression","V8IntrinsicIdentifier")},arguments:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Expression","SpreadElement","JSXNamespacedName","ArgumentPlaceholder")))}},r.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,p.assertOneOf)(!0,!1),optional:!0}},{typeArguments:{validate:(0,p.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,p.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),(0,p.default)("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,p.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,p.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),(0,p.default)("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,p.assertNodeType)("Expression")},consequent:{validate:(0,p.assertNodeType)("Expression")},alternate:{validate:(0,p.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),(0,p.default)("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,p.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),(0,p.default)("DebuggerStatement",{aliases:["Statement"]}),(0,p.default)("DoWhileStatement",{visitor:["test","body"],fields:{test:{validate:(0,p.assertNodeType)("Expression")},body:{validate:(0,p.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),(0,p.default)("EmptyStatement",{aliases:["Statement"]}),(0,p.default)("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,p.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),(0,p.default)("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,p.assertNodeType)("Program")},comments:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,p.assertEach)((0,p.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,p.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}}),(0,p.default)("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,p.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern"):(0,p.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,p.assertNodeType)("Expression")},body:{validate:(0,p.assertNodeType)("Statement")}}}),(0,p.default)("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,p.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,p.assertNodeType)("Expression"),optional:!0},update:{validate:(0,p.assertNodeType)("Expression"),optional:!0},body:{validate:(0,p.assertNodeType)("Statement")}}});const x={params:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Identifier","Pattern","RestElement","TSParameterProperty")))},generator:{default:!1},async:{default:!1}};t.functionCommon=x;const a={returnType:{validate:(0,p.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,p.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}};t.functionTypeAnnotationCommon=a;const O=Object.assign({},x,{declare:{validate:(0,p.assertValueType)("boolean"),optional:!0},id:{validate:(0,p.assertNodeType)("Identifier"),optional:!0}});t.functionDeclarationCommon=O,(0,p.default)("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","params","body","returnType","typeParameters"],fields:Object.assign({},O,a,{body:{validate:(0,p.assertNodeType)("BlockStatement")}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:function(){if(!r.env.BABEL_TYPES_8_BREAKING)return()=>{};const k=(0,p.assertNodeType)("Identifier");return function(P,A,R){(0,m.default)("ExportDefaultDeclaration",P)||k(R,"id",R.id)}}()}),(0,p.default)("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},x,a,{id:{validate:(0,p.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,p.assertNodeType)("BlockStatement")}})});const _={typeAnnotation:{validate:(0,p.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Decorator")))}};t.patternLikeCommon=_,(0,p.default)("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},_,{name:{validate:(0,p.chain)((0,p.assertValueType)("string"),Object.assign(function(k,P,A){if(!r.env.BABEL_TYPES_8_BREAKING)return;if(!(0,f.default)(A,!1))throw new TypeError(`"${A}" is not a valid identifier name`)},{type:"string"}))},optional:{validate:(0,p.assertValueType)("boolean"),optional:!0}}),validate(k,P,A){if(!r.env.BABEL_TYPES_8_BREAKING)return;const R=/\.(\w+)$/.exec(P);if(!R)return;const[,j]=R,v={computed:!1};if(j==="property"){if((0,m.default)("MemberExpression",k,v))return;if((0,m.default)("OptionalMemberExpression",k,v))return}else if(j==="key"){if((0,m.default)("Property",k,v))return;if((0,m.default)("Method",k,v))return}else if(j==="exported"){if((0,m.default)("ExportSpecifier",k))return}else if(j==="imported"){if((0,m.default)("ImportSpecifier",k,{imported:A}))return}else if(j==="meta"&&(0,m.default)("MetaProperty",k,{meta:A}))return;if(((0,b.isKeyword)(A.name)||(0,b.isReservedWord)(A.name,!1))&&A.name!=="this")throw new TypeError(`"${A.name}" is not a valid identifier`)}}),(0,p.default)("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,p.assertNodeType)("Expression")},consequent:{validate:(0,p.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,p.assertNodeType)("Statement")}}}),(0,p.default)("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,p.assertNodeType)("Identifier")},body:{validate:(0,p.assertNodeType)("Statement")}}}),(0,p.default)("StringLiteral",{builder:["value"],fields:{value:{validate:(0,p.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,p.default)("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,p.assertValueType)("number")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,p.default)("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),(0,p.default)("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,p.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,p.default)("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,p.assertValueType)("string")},flags:{validate:(0,p.chain)((0,p.assertValueType)("string"),Object.assign(function(k,P,A){if(!r.env.BABEL_TYPES_8_BREAKING)return;const R=/[^gimsuy]/.exec(A);if(R)throw new TypeError(`"${R[0]}" is not a valid RegExp flag`)},{type:"string"})),default:""}}}),(0,p.default)("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,p.assertOneOf)(...g.LOGICAL_OPERATORS)},left:{validate:(0,p.assertNodeType)("Expression")},right:{validate:(0,p.assertNodeType)("Expression")}}}),(0,p.default)("MemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:(0,p.assertNodeType)("Expression")},property:{validate:function(){const k=(0,p.assertNodeType)("Identifier","PrivateName"),P=(0,p.assertNodeType)("Expression"),A=function(R,j,v){const $=R.computed?P:k;$(R,j,v)};return A.oneOfNodeTypes=["Expression","Identifier","PrivateName"],A}()},computed:{default:!1}},r.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,p.assertOneOf)(!0,!1),optional:!0}})}),(0,p.default)("NewExpression",{inherits:"CallExpression"}),(0,p.default)("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceFile:{validate:(0,p.assertValueType)("string")},sourceType:{validate:(0,p.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,p.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Directive"))),default:[]},body:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block"]}),(0,p.default)("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("ObjectMethod","ObjectProperty","SpreadElement")))}}}),(0,p.default)("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],fields:Object.assign({},x,a,{kind:Object.assign({validate:(0,p.assertOneOf)("method","get","set")},r.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){const k=(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),P=(0,p.assertNodeType)("Expression"),A=function(R,j,v){const $=R.computed?P:k;$(R,j,v)};return A.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral"],A}()},decorators:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Decorator"))),optional:!0},body:{validate:(0,p.assertNodeType)("BlockStatement")}}),visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),(0,p.default)("ObjectProperty",{builder:["key","value","computed","shorthand",...r.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){const k=(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),P=(0,p.assertNodeType)("Expression"),A=function(R,j,v){const $=R.computed?P:k;$(R,j,v)};return A.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral"],A}()},value:{validate:(0,p.assertNodeType)("Expression","PatternLike")},shorthand:{validate:(0,p.chain)((0,p.assertValueType)("boolean"),Object.assign(function(k,P,A){if(!r.env.BABEL_TYPES_8_BREAKING)return;if(A&&k.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true")},{type:"boolean"}),function(k,P,A){if(!r.env.BABEL_TYPES_8_BREAKING)return;if(A&&!(0,m.default)("Identifier",k.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}),default:!1},decorators:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Decorator"))),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:function(){const k=(0,p.assertNodeType)("Identifier","Pattern"),P=(0,p.assertNodeType)("Expression");return function(A,R,j){if(!r.env.BABEL_TYPES_8_BREAKING)return;const v=(0,m.default)("ObjectPattern",A)?k:P;v(j,"value",j.value)}}()}),(0,p.default)("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},_,{argument:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,p.assertNodeType)("Identifier","Pattern","MemberExpression"):(0,p.assertNodeType)("LVal")}}),validate(k,P){if(!r.env.BABEL_TYPES_8_BREAKING)return;const A=/(\w+)\[(\d+)\]/.exec(P);if(!A)throw new Error("Internal Babel error: malformed key.");const[,R,j]=A;if(k[R].length>j+1)throw new TypeError(`RestElement must be last element of ${R}`)}}),(0,p.default)("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,p.assertNodeType)("Expression"),optional:!0}}}),(0,p.default)("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Expression")))}},aliases:["Expression"]}),(0,p.default)("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,p.assertNodeType)("Expression")}}}),(0,p.default)("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,p.assertNodeType)("Expression"),optional:!0},consequent:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Statement")))}}}),(0,p.default)("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,p.assertNodeType)("Expression")},cases:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("SwitchCase")))}}}),(0,p.default)("ThisExpression",{aliases:["Expression"]}),(0,p.default)("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,p.assertNodeType)("Expression")}}}),(0,p.default)("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:(0,p.chain)((0,p.assertNodeType)("BlockStatement"),Object.assign(function(k){if(!r.env.BABEL_TYPES_8_BREAKING)return;if(!k.handler&&!k.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]}))},handler:{optional:!0,validate:(0,p.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,p.assertNodeType)("BlockStatement")}}}),(0,p.default)("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,p.assertNodeType)("Expression")},operator:{validate:(0,p.assertOneOf)(...g.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),(0,p.default)("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,p.assertNodeType)("Identifier","MemberExpression"):(0,p.assertNodeType)("Expression")},operator:{validate:(0,p.assertOneOf)(...g.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),(0,p.default)("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,p.assertValueType)("boolean"),optional:!0},kind:{validate:(0,p.assertOneOf)("var","let","const")},declarations:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("VariableDeclarator")))}},validate(k,P,A){if(!r.env.BABEL_TYPES_8_BREAKING)return;if(!(0,m.default)("ForXStatement",k,{left:A}))return;if(A.declarations.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${k.type}`)}}),(0,p.default)("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:function(){if(!r.env.BABEL_TYPES_8_BREAKING)return(0,p.assertNodeType)("LVal");const k=(0,p.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),P=(0,p.assertNodeType)("Identifier");return function(A,R,j){const v=A.init?k:P;v(A,R,j)}}()},definite:{optional:!0,validate:(0,p.assertValueType)("boolean")},init:{optional:!0,validate:(0,p.assertNodeType)("Expression")}}}),(0,p.default)("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,p.assertNodeType)("Expression")},body:{validate:(0,p.assertNodeType)("Statement")}}}),(0,p.default)("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,p.assertNodeType)("Expression")},body:{validate:(0,p.assertNodeType)("Statement")}}}),(0,p.default)("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},_,{left:{validate:(0,p.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression")},right:{validate:(0,p.assertNodeType)("Expression")},decorators:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Decorator"))),optional:!0}})}),(0,p.default)("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},_,{elements:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeOrValueType)("null","PatternLike")))},decorators:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Decorator"))),optional:!0}})}),(0,p.default)("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType","typeParameters"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},x,a,{expression:{validate:(0,p.assertValueType)("boolean")},body:{validate:(0,p.assertNodeType)("BlockStatement","Expression")}})}),(0,p.default)("ClassBody",{visitor:["body"],fields:{body:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","TSDeclareMethod","TSIndexSignature")))}}}),(0,p.default)("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,p.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,p.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,p.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,p.assertNodeType)("Expression")},superTypeParameters:{validate:(0,p.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,p.assertNodeType)("InterfaceExtends"),optional:!0}}}),(0,p.default)("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,p.assertNodeType)("Identifier")},typeParameters:{validate:(0,p.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,p.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,p.assertNodeType)("Expression")},superTypeParameters:{validate:(0,p.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,p.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,p.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,p.assertValueType)("boolean"),optional:!0}},validate:function(){const k=(0,p.assertNodeType)("Identifier");return function(P,A,R){if(!r.env.BABEL_TYPES_8_BREAKING)return;(0,m.default)("ExportDefaultDeclaration",P)||k(R,"id",R.id)}}()}),(0,p.default)("ExportAllDeclaration",{visitor:["source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{source:{validate:(0,p.assertNodeType)("StringLiteral")},exportKind:(0,p.validateOptional)((0,p.assertOneOf)("type","value")),assertions:{optional:!0,validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertNodeType)("ImportAttribute"))}}}),(0,p.default)("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0,p.assertNodeType)("FunctionDeclaration","TSDeclareFunction","ClassDeclaration","Expression")}}}),(0,p.default)("ExportNamedDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:(0,p.chain)((0,p.assertNodeType)("Declaration"),Object.assign(function(k,P,A){if(!r.env.BABEL_TYPES_8_BREAKING)return;if(A&&k.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration")},{oneOfNodeTypes:["Declaration"]}),function(k,P,A){if(!r.env.BABEL_TYPES_8_BREAKING)return;if(A&&k.source)throw new TypeError("Cannot export a declaration from a source")})},assertions:{optional:!0,validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertNodeType)("ImportAttribute"))},specifiers:{default:[],validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)(function(){const k=(0,p.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),P=(0,p.assertNodeType)("ExportSpecifier");return r.env.BABEL_TYPES_8_BREAKING?function(A,R,j){const v=A.source?k:P;v(A,R,j)}:k}()))},source:{validate:(0,p.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,p.validateOptional)((0,p.assertOneOf)("type","value"))}}),(0,p.default)("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,p.assertNodeType)("Identifier")},exported:{validate:(0,p.assertNodeType)("Identifier","StringLiteral")}}}),(0,p.default)("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!r.env.BABEL_TYPES_8_BREAKING)return(0,p.assertNodeType)("VariableDeclaration","LVal");const k=(0,p.assertNodeType)("VariableDeclaration"),P=(0,p.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern");return function(A,R,j){(0,m.default)("VariableDeclaration",j)?k(A,R,j):P(A,R,j)}}()},right:{validate:(0,p.assertNodeType)("Expression")},body:{validate:(0,p.assertNodeType)("Statement")},await:{default:!1}}}),(0,p.default)("ImportDeclaration",{visitor:["specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration"],fields:{assertions:{optional:!0,validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertNodeType)("ImportAttribute"))},specifiers:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:(0,p.assertNodeType)("StringLiteral")},importKind:{validate:(0,p.assertOneOf)("type","typeof","value"),optional:!0}}}),(0,p.default)("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,p.assertNodeType)("Identifier")}}}),(0,p.default)("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,p.assertNodeType)("Identifier")}}}),(0,p.default)("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,p.assertNodeType)("Identifier")},imported:{validate:(0,p.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,p.assertOneOf)("type","typeof"),optional:!0}}}),(0,p.default)("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:(0,p.chain)((0,p.assertNodeType)("Identifier"),Object.assign(function(k,P,A){if(!r.env.BABEL_TYPES_8_BREAKING)return;let R;switch(A.name){case"function":R="sent";break;case"new":R="target";break;case"import":R="meta";break}if(!(0,m.default)("Identifier",k.property,{name:R}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]}))},property:{validate:(0,p.assertNodeType)("Identifier")}}});const L={abstract:{validate:(0,p.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,p.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},computed:{default:!1},optional:{validate:(0,p.assertValueType)("boolean"),optional:!0},key:{validate:(0,p.chain)(function(){const k=(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),P=(0,p.assertNodeType)("Expression");return function(A,R,j){const v=A.computed?P:k;v(A,R,j)}}(),(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral","Expression"))}};t.classMethodOrPropertyCommon=L;const B=Object.assign({},x,L,{kind:{validate:(0,p.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,p.chain)((0,p.assertValueType)("string"),(0,p.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Decorator"))),optional:!0}});t.classMethodOrDeclareMethodCommon=B,(0,p.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({},B,a,{body:{validate:(0,p.assertNodeType)("BlockStatement")}})}),(0,p.default)("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},_,{properties:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("RestElement","ObjectProperty")))}})}),(0,p.default)("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,p.assertNodeType)("Expression")}}}),(0,p.default)("Super",{aliases:["Expression"]}),(0,p.default)("TaggedTemplateExpression",{visitor:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,p.assertNodeType)("Expression")},quasi:{validate:(0,p.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,p.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),(0,p.default)("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,p.assertShape)({raw:{validate:(0,p.assertValueType)("string")},cooked:{validate:(0,p.assertValueType)("string"),optional:!0}})},tail:{default:!1}}}),(0,p.default)("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("TemplateElement")))},expressions:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Expression","TSType")),function(k,P,A){if(k.quasis.length!==A.length+1)throw new TypeError(`Number of ${k.type} quasis should be exactly one more than the number of expressions.
|
|
8
|
+
Expected ${A.length+1} quasis but got ${k.quasis.length}`)})}}}),(0,p.default)("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0,p.chain)((0,p.assertValueType)("boolean"),Object.assign(function(k,P,A){if(!r.env.BABEL_TYPES_8_BREAKING)return;if(A&&!k.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,p.assertNodeType)("Expression")}}}),(0,p.default)("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,p.assertNodeType)("Expression")}}}),(0,p.default)("Import",{aliases:["Expression"]}),(0,p.default)("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,p.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,p.default)("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,p.assertNodeType)("Identifier")}}}),(0,p.default)("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,p.assertNodeType)("Expression")},property:{validate:function(){const k=(0,p.assertNodeType)("Identifier"),P=(0,p.assertNodeType)("Expression"),A=function(R,j,v){const $=R.computed?P:k;$(R,j,v)};return A.oneOfNodeTypes=["Expression","Identifier"],A}()},computed:{default:!1},optional:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,p.chain)((0,p.assertValueType)("boolean"),(0,p.assertOptionalChainStart)()):(0,p.assertValueType)("boolean")}}}),(0,p.default)("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:(0,p.assertNodeType)("Expression")},arguments:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Expression","SpreadElement","JSXNamespacedName","ArgumentPlaceholder")))},optional:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,p.chain)((0,p.assertValueType)("boolean"),(0,p.assertOptionalChainStart)()):(0,p.assertValueType)("boolean")},typeArguments:{validate:(0,p.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,p.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}}})}).call(this)}).call(this,T("_process"))},{"../constants":29,"../validators/is":67,"../validators/isValidIdentifier":80,"./utils":49,"@babel/helper-validator-identifier":3,_process:218}],42:[function(T,C,t){(function(r){(function(){"use strict";var m=g(T("./utils")),f=T("./core");function b(){if(typeof WeakMap!="function")return null;var p=new WeakMap;return b=function(){return p},p}function g(p){if(p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var c=b();if(c&&c.has(p))return c.get(p);var d={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in p)if(Object.prototype.hasOwnProperty.call(p,x)){var a=E?Object.getOwnPropertyDescriptor(p,x):null;a&&(a.get||a.set)?Object.defineProperty(d,x,a):d[x]=p[x]}return d.default=p,c&&c.set(p,d),d}(0,m.default)("ArgumentPlaceholder",{}),(0,m.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:r.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,m.assertNodeType)("Expression")},callee:{validate:(0,m.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}}),(0,m.default)("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},f.classMethodOrPropertyCommon,{value:{validate:(0,m.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,m.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,m.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,m.chain)((0,m.assertValueType)("array"),(0,m.assertEach)((0,m.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,m.assertValueType)("boolean"),optional:!0},declare:{validate:(0,m.assertValueType)("boolean"),optional:!0}})}),(0,m.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,m.assertNodeType)("Expression")}}}),(0,m.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,m.assertNodeType)("Expression")}}}),(0,m.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]}),(0,m.default)("ClassPrivateProperty",{visitor:["key","value","decorators"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,m.assertNodeType)("PrivateName")},value:{validate:(0,m.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,m.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,m.chain)((0,m.assertValueType)("array"),(0,m.assertEach)((0,m.assertNodeType)("Decorator"))),optional:!0}}}),(0,m.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({},f.classMethodOrDeclareMethodCommon,f.functionTypeAnnotationCommon,{key:{validate:(0,m.assertNodeType)("PrivateName")},body:{validate:(0,m.assertNodeType)("BlockStatement")}})}),(0,m.default)("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,m.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,m.assertNodeType)("StringLiteral")}}}),(0,m.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,m.assertNodeType)("Expression")}}}),(0,m.default)("DoExpression",{visitor:["body"],aliases:["Expression"],fields:{body:{validate:(0,m.assertNodeType)("BlockStatement")}}}),(0,m.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,m.assertNodeType)("Identifier")}}}),(0,m.default)("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,m.assertNodeType)("Identifier")}}}),(0,m.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,m.chain)((0,m.assertValueType)("array"),(0,m.assertEach)((0,m.assertNodeType)("ObjectProperty","SpreadElement")))}}}),(0,m.default)("TupleExpression",{fields:{elements:{validate:(0,m.chain)((0,m.assertValueType)("array"),(0,m.assertEach)((0,m.assertNodeType)("Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,m.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,m.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,m.default)("StaticBlock",{visitor:["body"],fields:{body:{validate:(0,m.chain)((0,m.assertValueType)("array"),(0,m.assertEach)((0,m.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent"]})}).call(this)}).call(this,T("_process"))},{"./core":41,"./utils":49,_process:218}],43:[function(T,C,t){"use strict";var r=f(T("./utils"));function m(){if(typeof WeakMap!="function")return null;var g=new WeakMap;return m=function(){return g},g}function f(g){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var p=m();if(p&&p.has(g))return p.get(g);var c={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in g)if(Object.prototype.hasOwnProperty.call(g,E)){var x=d?Object.getOwnPropertyDescriptor(g,E):null;x&&(x.get||x.set)?Object.defineProperty(c,E,x):c[E]=g[E]}return c.default=g,p&&p.set(g,c),c}const b=(g,p="TypeParameterDeclaration")=>{(0,r.default)(g,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends","mixins","implements","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)(p),extends:(0,r.validateOptional)((0,r.arrayOfType)("InterfaceExtends")),mixins:(0,r.validateOptional)((0,r.arrayOfType)("InterfaceExtends")),implements:(0,r.validateOptional)((0,r.arrayOfType)("ClassImplements")),body:(0,r.validateType)("ObjectTypeAnnotation")}})};(0,r.default)("AnyTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,r.default)("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["Flow","FlowType"],fields:{elementType:(0,r.validateType)("FlowType")}}),(0,r.default)("BooleanTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,r.default)("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:(0,r.validate)((0,r.assertValueType)("boolean"))}}),(0,r.default)("NullLiteralTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,r.default)("ClassImplements",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TypeParameterInstantiation")}}),b("DeclareClass"),(0,r.default)("DeclareFunction",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),predicate:(0,r.validateOptionalType)("DeclaredPredicate")}}),b("DeclareInterface"),(0,r.default)("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)(["Identifier","StringLiteral"]),body:(0,r.validateType)("BlockStatement"),kind:(0,r.validateOptional)((0,r.assertOneOf)("CommonJS","ES"))}}),(0,r.default)("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,r.validateType)("TypeAnnotation")}}),(0,r.default)("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TypeParameterDeclaration"),right:(0,r.validateType)("FlowType")}}),(0,r.default)("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,r.validateOptionalType)("FlowType")}}),(0,r.default)("DeclareVariable",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier")}}),(0,r.default)("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{declaration:(0,r.validateOptionalType)("Flow"),specifiers:(0,r.validateOptional)((0,r.arrayOfType)(["ExportSpecifier","ExportNamespaceSpecifier"])),source:(0,r.validateOptionalType)("StringLiteral"),default:(0,r.validateOptional)((0,r.assertValueType)("boolean"))}}),(0,r.default)("DeclareExportAllDeclaration",{visitor:["source"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{source:(0,r.validateType)("StringLiteral"),exportKind:(0,r.validateOptional)((0,r.assertOneOf)("type","value"))}}),(0,r.default)("DeclaredPredicate",{visitor:["value"],aliases:["Flow","FlowPredicate"],fields:{value:(0,r.validateType)("Flow")}}),(0,r.default)("ExistsTypeAnnotation",{aliases:["Flow","FlowType"]}),(0,r.default)("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["Flow","FlowType"],fields:{typeParameters:(0,r.validateOptionalType)("TypeParameterDeclaration"),params:(0,r.validate)((0,r.arrayOfType)("FunctionTypeParam")),rest:(0,r.validateOptionalType)("FunctionTypeParam"),returnType:(0,r.validateType)("FlowType")}}),(0,r.default)("FunctionTypeParam",{visitor:["name","typeAnnotation"],aliases:["Flow"],fields:{name:(0,r.validateOptionalType)("Identifier"),typeAnnotation:(0,r.validateType)("FlowType"),optional:(0,r.validateOptional)((0,r.assertValueType)("boolean"))}}),(0,r.default)("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["Flow","FlowType"],fields:{id:(0,r.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,r.validateOptionalType)("TypeParameterInstantiation")}}),(0,r.default)("InferredPredicate",{aliases:["Flow","FlowPredicate"]}),(0,r.default)("InterfaceExtends",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{id:(0,r.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,r.validateOptionalType)("TypeParameterInstantiation")}}),b("InterfaceDeclaration"),(0,r.default)("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["Flow","FlowType"],fields:{extends:(0,r.validateOptional)((0,r.arrayOfType)("InterfaceExtends")),body:(0,r.validateType)("ObjectTypeAnnotation")}}),(0,r.default)("IntersectionTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:(0,r.validate)((0,r.arrayOfType)("FlowType"))}}),(0,r.default)("MixedTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,r.default)("EmptyTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,r.default)("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["Flow","FlowType"],fields:{typeAnnotation:(0,r.validateType)("FlowType")}}),(0,r.default)("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:(0,r.validate)((0,r.assertValueType)("number"))}}),(0,r.default)("NumberTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,r.default)("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["Flow","FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,r.validate)((0,r.arrayOfType)(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:(0,r.validateOptional)((0,r.arrayOfType)("ObjectTypeIndexer")),callProperties:(0,r.validateOptional)((0,r.arrayOfType)("ObjectTypeCallProperty")),internalSlots:(0,r.validateOptional)((0,r.arrayOfType)("ObjectTypeInternalSlot")),exact:{validate:(0,r.assertValueType)("boolean"),default:!1},inexact:(0,r.validateOptional)((0,r.assertValueType)("boolean"))}}),(0,r.default)("ObjectTypeInternalSlot",{visitor:["id","value","optional","static","method"],aliases:["Flow","UserWhitespacable"],fields:{id:(0,r.validateType)("Identifier"),value:(0,r.validateType)("FlowType"),optional:(0,r.validate)((0,r.assertValueType)("boolean")),static:(0,r.validate)((0,r.assertValueType)("boolean")),method:(0,r.validate)((0,r.assertValueType)("boolean"))}}),(0,r.default)("ObjectTypeCallProperty",{visitor:["value"],aliases:["Flow","UserWhitespacable"],fields:{value:(0,r.validateType)("FlowType"),static:(0,r.validate)((0,r.assertValueType)("boolean"))}}),(0,r.default)("ObjectTypeIndexer",{visitor:["id","key","value","variance"],aliases:["Flow","UserWhitespacable"],fields:{id:(0,r.validateOptionalType)("Identifier"),key:(0,r.validateType)("FlowType"),value:(0,r.validateType)("FlowType"),static:(0,r.validate)((0,r.assertValueType)("boolean")),variance:(0,r.validateOptionalType)("Variance")}}),(0,r.default)("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["Flow","UserWhitespacable"],fields:{key:(0,r.validateType)(["Identifier","StringLiteral"]),value:(0,r.validateType)("FlowType"),kind:(0,r.validate)((0,r.assertOneOf)("init","get","set")),static:(0,r.validate)((0,r.assertValueType)("boolean")),proto:(0,r.validate)((0,r.assertValueType)("boolean")),optional:(0,r.validate)((0,r.assertValueType)("boolean")),variance:(0,r.validateOptionalType)("Variance"),method:(0,r.validate)((0,r.assertValueType)("boolean"))}}),(0,r.default)("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["Flow","UserWhitespacable"],fields:{argument:(0,r.validateType)("FlowType")}}),(0,r.default)("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,r.validateOptionalType)("FlowType"),impltype:(0,r.validateType)("FlowType")}}),(0,r.default)("QualifiedTypeIdentifier",{visitor:["id","qualification"],aliases:["Flow"],fields:{id:(0,r.validateType)("Identifier"),qualification:(0,r.validateType)(["Identifier","QualifiedTypeIdentifier"])}}),(0,r.default)("StringLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:(0,r.validate)((0,r.assertValueType)("string"))}}),(0,r.default)("StringTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,r.default)("SymbolTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,r.default)("ThisTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,r.default)("TupleTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:(0,r.validate)((0,r.arrayOfType)("FlowType"))}}),(0,r.default)("TypeofTypeAnnotation",{visitor:["argument"],aliases:["Flow","FlowType"],fields:{argument:(0,r.validateType)("FlowType")}}),(0,r.default)("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TypeParameterDeclaration"),right:(0,r.validateType)("FlowType")}}),(0,r.default)("TypeAnnotation",{aliases:["Flow"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("FlowType")}}),(0,r.default)("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["Flow","ExpressionWrapper","Expression"],fields:{expression:(0,r.validateType)("Expression"),typeAnnotation:(0,r.validateType)("TypeAnnotation")}}),(0,r.default)("TypeParameter",{aliases:["Flow"],visitor:["bound","default","variance"],fields:{name:(0,r.validate)((0,r.assertValueType)("string")),bound:(0,r.validateOptionalType)("TypeAnnotation"),default:(0,r.validateOptionalType)("FlowType"),variance:(0,r.validateOptionalType)("Variance")}}),(0,r.default)("TypeParameterDeclaration",{aliases:["Flow"],visitor:["params"],fields:{params:(0,r.validate)((0,r.arrayOfType)("TypeParameter"))}}),(0,r.default)("TypeParameterInstantiation",{aliases:["Flow"],visitor:["params"],fields:{params:(0,r.validate)((0,r.arrayOfType)("FlowType"))}}),(0,r.default)("UnionTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:(0,r.validate)((0,r.arrayOfType)("FlowType"))}}),(0,r.default)("Variance",{aliases:["Flow"],builder:["kind"],fields:{kind:(0,r.validate)((0,r.assertOneOf)("minus","plus"))}}),(0,r.default)("VoidTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]}),(0,r.default)("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,r.validateType)("Identifier"),body:(0,r.validateType)(["EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody"])}}),(0,r.default)("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,r.validate)((0,r.assertValueType)("boolean")),members:(0,r.validateArrayOfType)("EnumBooleanMember")}}),(0,r.default)("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,r.validate)((0,r.assertValueType)("boolean")),members:(0,r.validateArrayOfType)("EnumNumberMember")}}),(0,r.default)("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,r.validate)((0,r.assertValueType)("boolean")),members:(0,r.validateArrayOfType)(["EnumStringMember","EnumDefaultedMember"])}}),(0,r.default)("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,r.validateArrayOfType)("EnumDefaultedMember")}}),(0,r.default)("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,r.validateType)("Identifier"),init:(0,r.validateType)("BooleanLiteral")}}),(0,r.default)("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,r.validateType)("Identifier"),init:(0,r.validateType)("NumericLiteral")}}),(0,r.default)("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,r.validateType)("Identifier"),init:(0,r.validateType)("StringLiteral")}}),(0,r.default)("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,r.validateType)("Identifier")}})},{"./utils":49}],44:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return m.VISITOR_KEYS}}),Object.defineProperty(t,"ALIAS_KEYS",{enumerable:!0,get:function(){return m.ALIAS_KEYS}}),Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return m.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(t,"NODE_FIELDS",{enumerable:!0,get:function(){return m.NODE_FIELDS}}),Object.defineProperty(t,"BUILDER_KEYS",{enumerable:!0,get:function(){return m.BUILDER_KEYS}}),Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return m.DEPRECATED_KEYS}}),Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return m.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(t,"PLACEHOLDERS",{enumerable:!0,get:function(){return f.PLACEHOLDERS}}),Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return f.PLACEHOLDERS_ALIAS}}),Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return f.PLACEHOLDERS_FLIPPED_ALIAS}}),t.TYPES=void 0;var r=b(T("to-fast-properties"));T("./core"),T("./flow"),T("./jsx"),T("./misc"),T("./experimental"),T("./typescript");var m=T("./utils"),f=T("./placeholders");function b(p){return p&&p.__esModule?p:{default:p}}(0,r.default)(m.VISITOR_KEYS),(0,r.default)(m.ALIAS_KEYS),(0,r.default)(m.FLIPPED_ALIAS_KEYS),(0,r.default)(m.NODE_FIELDS),(0,r.default)(m.BUILDER_KEYS),(0,r.default)(m.DEPRECATED_KEYS),(0,r.default)(f.PLACEHOLDERS_ALIAS),(0,r.default)(f.PLACEHOLDERS_FLIPPED_ALIAS);const g=Object.keys(m.VISITOR_KEYS).concat(Object.keys(m.FLIPPED_ALIAS_KEYS)).concat(Object.keys(m.DEPRECATED_KEYS));t.TYPES=g},{"./core":41,"./experimental":42,"./flow":43,"./jsx":45,"./misc":46,"./placeholders":47,"./typescript":48,"./utils":49,"to-fast-properties":237}],45:[function(T,C,t){"use strict";var r=f(T("./utils"));function m(){if(typeof WeakMap!="function")return null;var b=new WeakMap;return m=function(){return b},b}function f(b){if(b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var g=m();if(g&&g.has(b))return g.get(b);var p={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in b)if(Object.prototype.hasOwnProperty.call(b,d)){var E=c?Object.getOwnPropertyDescriptor(b,d):null;E&&(E.get||E.set)?Object.defineProperty(p,d,E):p[d]=b[d]}return p.default=b,g&&g.set(b,p),p}(0,r.default)("JSXAttribute",{visitor:["name","value"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,r.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),(0,r.default)("JSXClosingElement",{visitor:["name"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),(0,r.default)("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["JSX","Immutable","Expression"],fields:{openingElement:{validate:(0,r.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,r.assertNodeType)("JSXClosingElement")},children:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))},selfClosing:{validate:(0,r.assertValueType)("boolean"),optional:!0}}}),(0,r.default)("JSXEmptyExpression",{aliases:["JSX"]}),(0,r.default)("JSXExpressionContainer",{visitor:["expression"],aliases:["JSX","Immutable"],fields:{expression:{validate:(0,r.assertNodeType)("Expression","JSXEmptyExpression")}}}),(0,r.default)("JSXSpreadChild",{visitor:["expression"],aliases:["JSX","Immutable"],fields:{expression:{validate:(0,r.assertNodeType)("Expression")}}}),(0,r.default)("JSXIdentifier",{builder:["name"],aliases:["JSX"],fields:{name:{validate:(0,r.assertValueType)("string")}}}),(0,r.default)("JSXMemberExpression",{visitor:["object","property"],aliases:["JSX"],fields:{object:{validate:(0,r.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,r.assertNodeType)("JSXIdentifier")}}}),(0,r.default)("JSXNamespacedName",{visitor:["namespace","name"],aliases:["JSX"],fields:{namespace:{validate:(0,r.assertNodeType)("JSXIdentifier")},name:{validate:(0,r.assertNodeType)("JSXIdentifier")}}}),(0,r.default)("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("JSXAttribute","JSXSpreadAttribute")))},typeParameters:{validate:(0,r.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),(0,r.default)("JSXSpreadAttribute",{visitor:["argument"],aliases:["JSX"],fields:{argument:{validate:(0,r.assertNodeType)("Expression")}}}),(0,r.default)("JSXText",{aliases:["JSX","Immutable"],builder:["value"],fields:{value:{validate:(0,r.assertValueType)("string")}}}),(0,r.default)("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["JSX","Immutable","Expression"],fields:{openingFragment:{validate:(0,r.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,r.assertNodeType)("JSXClosingFragment")},children:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}}),(0,r.default)("JSXOpeningFragment",{aliases:["JSX","Immutable"]}),(0,r.default)("JSXClosingFragment",{aliases:["JSX","Immutable"]})},{"./utils":49}],46:[function(T,C,t){"use strict";var r=b(T("./utils")),m=T("./placeholders");function f(){if(typeof WeakMap!="function")return null;var g=new WeakMap;return f=function(){return g},g}function b(g){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var p=f();if(p&&p.has(g))return p.get(g);var c={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in g)if(Object.prototype.hasOwnProperty.call(g,E)){var x=d?Object.getOwnPropertyDescriptor(g,E):null;x&&(x.get||x.set)?Object.defineProperty(c,E,x):c[E]=g[E]}return c.default=g,p&&p.set(g,c),c}(0,r.default)("Noop",{visitor:[]}),(0,r.default)("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:(0,r.assertNodeType)("Identifier")},expectedNode:{validate:(0,r.assertOneOf)(...m.PLACEHOLDERS)}}}),(0,r.default)("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,r.assertValueType)("string")}}})},{"./placeholders":47,"./utils":49}],47:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PLACEHOLDERS_FLIPPED_ALIAS=t.PLACEHOLDERS_ALIAS=t.PLACEHOLDERS=void 0;var r=T("./utils");const m=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"];t.PLACEHOLDERS=m;const f={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};t.PLACEHOLDERS_ALIAS=f;for(const g of m){const p=r.ALIAS_KEYS[g];(p==null?void 0:p.length)&&(f[g]=p)}const b={};t.PLACEHOLDERS_FLIPPED_ALIAS=b,Object.keys(f).forEach(g=>{f[g].forEach(p=>{Object.hasOwnProperty.call(b,p)||(b[p]=[]),b[p].push(g)})})},{"./utils":49}],48:[function(T,C,t){"use strict";var r=b(T("./utils")),m=T("./core");function f(){if(typeof WeakMap!="function")return null;var _=new WeakMap;return f=function(){return _},_}function b(_){if(_&&_.__esModule)return _;if(_===null||typeof _!="object"&&typeof _!="function")return{default:_};var L=f();if(L&&L.has(_))return L.get(_);var B={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in _)if(Object.prototype.hasOwnProperty.call(_,P)){var A=k?Object.getOwnPropertyDescriptor(_,P):null;A&&(A.get||A.set)?Object.defineProperty(B,P,A):B[P]=_[P]}return B.default=_,L&&L.set(_,B),B}const g=(0,r.assertValueType)("boolean"),p={returnType:{validate:(0,r.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,r.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}};(0,r.default)("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,r.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,r.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,r.assertNodeType)("Identifier","AssignmentPattern")}}}),(0,r.default)("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},m.functionDeclarationCommon,p)}),(0,r.default)("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},m.classMethodOrDeclareMethodCommon,p)}),(0,r.default)("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,r.validateType)("TSEntityName"),right:(0,r.validateType)("Identifier")}});const c={typeParameters:(0,r.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,r.validateArrayOfType)(["Identifier","RestElement"]),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation")},d={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:c};(0,r.default)("TSCallSignatureDeclaration",d),(0,r.default)("TSConstructSignatureDeclaration",d);const E={key:(0,r.validateType)("Expression"),computed:(0,r.validate)(g),optional:(0,r.validateOptional)(g)};(0,r.default)("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation","initializer"],fields:Object.assign({},E,{readonly:(0,r.validateOptional)(g),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation"),initializer:(0,r.validateOptionalType)("Expression")})}),(0,r.default)("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},c,E)}),(0,r.default)("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,r.validateOptional)(g),parameters:(0,r.validateArrayOfType)("Identifier"),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation")}});const x=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const _ of x)(0,r.default)(_,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});(0,r.default)("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const a={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"],fields:c};(0,r.default)("TSFunctionType",a),(0,r.default)("TSConstructorType",a),(0,r.default)("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,r.validateType)("TSEntityName"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation")}}),(0,r.default)("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,r.validateType)(["Identifier","TSThisType"]),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation"),asserts:(0,r.validateOptional)(g)}}),(0,r.default)("TSTypeQuery",{aliases:["TSType"],visitor:["exprName"],fields:{exprName:(0,r.validateType)(["TSEntityName","TSImportType"])}}),(0,r.default)("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,r.validateArrayOfType)("TSTypeElement")}}),(0,r.default)("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,r.validateType)("TSType")}}),(0,r.default)("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,r.validateArrayOfType)(["TSType","TSNamedTupleMember"])}}),(0,r.default)("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("TSType")}}),(0,r.default)("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("TSType")}}),(0,r.default)("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,r.validateType)("Identifier"),optional:{validate:g,default:!1},elementType:(0,r.validateType)("TSType")}});const O={aliases:["TSType"],visitor:["types"],fields:{types:(0,r.validateArrayOfType)("TSType")}};(0,r.default)("TSUnionType",O),(0,r.default)("TSIntersectionType",O),(0,r.default)("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,r.validateType)("TSType"),extendsType:(0,r.validateType)("TSType"),trueType:(0,r.validateType)("TSType"),falseType:(0,r.validateType)("TSType")}}),(0,r.default)("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,r.validateType)("TSTypeParameter")}}),(0,r.default)("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("TSType")}}),(0,r.default)("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0,r.validate)((0,r.assertValueType)("string")),typeAnnotation:(0,r.validateType)("TSType")}}),(0,r.default)("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,r.validateType)("TSType"),indexType:(0,r.validateType)("TSType")}}),(0,r.default)("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","typeAnnotation","nameType"],fields:{readonly:(0,r.validateOptional)(g),typeParameter:(0,r.validateType)("TSTypeParameter"),optional:(0,r.validateOptional)(g),typeAnnotation:(0,r.validateOptionalType)("TSType"),nameType:(0,r.validateOptionalType)("TSType")}}),(0,r.default)("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:(0,r.validateType)(["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral"])}}),(0,r.default)("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,r.validateType)("TSEntityName"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation")}}),(0,r.default)("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,r.validateOptional)(g),id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,r.validateOptional)((0,r.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,r.validateType)("TSInterfaceBody")}}),(0,r.default)("TSInterfaceBody",{visitor:["body"],fields:{body:(0,r.validateArrayOfType)("TSTypeElement")}}),(0,r.default)("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,r.validateOptional)(g),id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,r.validateType)("TSType")}}),(0,r.default)("TSAsExpression",{aliases:["Expression"],visitor:["expression","typeAnnotation"],fields:{expression:(0,r.validateType)("Expression"),typeAnnotation:(0,r.validateType)("TSType")}}),(0,r.default)("TSTypeAssertion",{aliases:["Expression"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,r.validateType)("TSType"),expression:(0,r.validateType)("Expression")}}),(0,r.default)("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,r.validateOptional)(g),const:(0,r.validateOptional)(g),id:(0,r.validateType)("Identifier"),members:(0,r.validateArrayOfType)("TSEnumMember"),initializer:(0,r.validateOptionalType)("Expression")}}),(0,r.default)("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,r.validateType)(["Identifier","StringLiteral"]),initializer:(0,r.validateOptionalType)("Expression")}}),(0,r.default)("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:(0,r.validateOptional)(g),global:(0,r.validateOptional)(g),id:(0,r.validateType)(["Identifier","StringLiteral"]),body:(0,r.validateType)(["TSModuleBlock","TSModuleDeclaration"])}}),(0,r.default)("TSModuleBlock",{aliases:["Scopable","Block","BlockParent"],visitor:["body"],fields:{body:(0,r.validateArrayOfType)("Statement")}}),(0,r.default)("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:(0,r.validateType)("StringLiteral"),qualifier:(0,r.validateOptionalType)("TSEntityName"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation")}}),(0,r.default)("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:(0,r.validate)(g),id:(0,r.validateType)("Identifier"),moduleReference:(0,r.validateType)(["TSEntityName","TSExternalModuleReference"])}}),(0,r.default)("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,r.validateType)("StringLiteral")}}),(0,r.default)("TSNonNullExpression",{aliases:["Expression"],visitor:["expression"],fields:{expression:(0,r.validateType)("Expression")}}),(0,r.default)("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,r.validateType)("Expression")}}),(0,r.default)("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,r.validateType)("Identifier")}}),(0,r.default)("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,r.assertNodeType)("TSType")}}}),(0,r.default)("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("TSType")))}}}),(0,r.default)("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("TSTypeParameter")))}}}),(0,r.default)("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,r.assertValueType)("string")},constraint:{validate:(0,r.assertNodeType)("TSType"),optional:!0},default:{validate:(0,r.assertNodeType)("TSType"),optional:!0}}})},{"./core":41,"./utils":49}],49:[function(T,C,t){(function(r){(function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validate=_,t.typeIs=L,t.validateType=B,t.validateOptional=k,t.validateOptionalType=P,t.arrayOf=A,t.arrayOfType=R,t.validateArrayOfType=j,t.assertEach=v,t.assertOneOf=$,t.assertNodeType=D,t.assertNodeOrValueType=oe,t.assertValueType=z,t.assertShape=Q,t.assertOptionalChainStart=re,t.chain=K,t.default=pe,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 m=b(T("../validators/is")),f=T("../validators/validate");function b(ae){return ae&&ae.__esModule?ae:{default:ae}}const g={};t.VISITOR_KEYS=g;const p={};t.ALIAS_KEYS=p;const c={};t.FLIPPED_ALIAS_KEYS=c;const d={};t.NODE_FIELDS=d;const E={};t.BUILDER_KEYS=E;const x={};t.DEPRECATED_KEYS=x;const a={};t.NODE_PARENT_VALIDATIONS=a;function O(ae){return Array.isArray(ae)?"array":ae===null?"null":typeof ae}function _(ae){return{validate:ae}}function L(ae){return typeof ae=="string"?D(ae):D(...ae)}function B(ae){return _(L(ae))}function k(ae){return{validate:ae,optional:!0}}function P(ae){return{validate:L(ae),optional:!0}}function A(ae){return K(z("array"),v(ae))}function R(ae){return A(L(ae))}function j(ae){return _(R(ae))}function v(ae){function le(X,J,Z){if(!Array.isArray(Z))return;for(let he=0;he<Z.length;he++){const Pe=`${J}[${he}]`,me=Z[he];ae(X,Pe,me),r.env.BABEL_TYPES_8_BREAKING&&(0,f.validateChild)(X,Pe,me)}}return le.each=ae,le}function $(...ae){function le(X,J,Z){if(ae.indexOf(Z)<0)throw new TypeError(`Property ${J} expected value to be one of ${JSON.stringify(ae)} but got ${JSON.stringify(Z)}`)}return le.oneOf=ae,le}function D(...ae){function le(X,J,Z){for(const he of ae)if((0,m.default)(he,Z)){(0,f.validateChild)(X,J,Z);return}throw new TypeError(`Property ${J} of ${X.type} expected node to be of a type ${JSON.stringify(ae)} but instead got ${JSON.stringify(Z==null?void 0:Z.type)}`)}return le.oneOfNodeTypes=ae,le}function oe(...ae){function le(X,J,Z){for(const he of ae)if(O(Z)===he||(0,m.default)(he,Z)){(0,f.validateChild)(X,J,Z);return}throw new TypeError(`Property ${J} of ${X.type} expected node to be of a type ${JSON.stringify(ae)} but instead got ${JSON.stringify(Z==null?void 0:Z.type)}`)}return le.oneOfNodeOrValueTypes=ae,le}function z(ae){function le(X,J,Z){const he=O(Z)===ae;if(!he)throw new TypeError(`Property ${J} expected type of ${ae} but got ${O(Z)}`)}return le.type=ae,le}function Q(ae){function le(X,J,Z){const he=[];for(const Pe of Object.keys(ae))try{(0,f.validateField)(X,Pe,Z[Pe],ae[Pe])}catch(me){if(me instanceof TypeError){he.push(me.message);continue}throw me}if(he.length)throw new TypeError(`Property ${J} of ${X.type} expected to have the following:
|
|
9
|
+
${he.join(`
|
|
10
|
+
`)}`)}return le.shapeOf=ae,le}function re(){function ae(le){var X;let J=le;for(;le;){const{type:Z}=J;if(Z==="OptionalCallExpression"){if(J.optional)return;J=J.callee;continue}if(Z==="OptionalMemberExpression"){if(J.optional)return;J=J.object;continue}break}throw new TypeError(`Non-optional ${le.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(X=J)==null?void 0:X.type}`)}return ae}function K(...ae){const le=function(...X){for(const J of ae)J(...X)};return le.chainOf=ae,le}const H=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],ie=["default","optional","validate"];function pe(ae,le={}){const X=le.inherits&&Te[le.inherits]||{};let J=le.fields;if(!J&&(J={},X.fields)){const me=Object.getOwnPropertyNames(X.fields);for(const ge of me){const Ae=X.fields[ge];J[ge]={default:Ae.default,optional:Ae.optional,validate:Ae.validate}}}const Z=le.visitor||X.visitor||[],he=le.aliases||X.aliases||[],Pe=le.builder||X.builder||le.visitor||[];for(const me of Object.keys(le))if(H.indexOf(me)===-1)throw new Error(`Unknown type option "${me}" on ${ae}`);le.deprecatedAlias&&(x[le.deprecatedAlias]=ae);for(const me of Z.concat(Pe))J[me]=J[me]||{};for(const me of Object.keys(J)){const ge=J[me];ge.default!==void 0&&Pe.indexOf(me)===-1&&(ge.optional=!0),ge.default===void 0?ge.default=null:!ge.validate&&ge.default!=null&&(ge.validate=z(O(ge.default)));for(const Ae of Object.keys(ge))if(ie.indexOf(Ae)===-1)throw new Error(`Unknown field key "${Ae}" on ${ae}.${me}`)}g[ae]=le.visitor=Z,E[ae]=le.builder=Pe,d[ae]=le.fields=J,p[ae]=le.aliases=he,he.forEach(me=>{c[me]=c[me]||[],c[me].push(ae)}),le.validate&&(a[ae]=le.validate),Te[ae]=le}const Te={}}).call(this)}).call(this,T("_process"))},{"../validators/is":67,"../validators/validate":85,_process:218}],50:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={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 g.default}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"createFlowUnionType",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"createTSUnionType",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"cloneNode",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(t,"cloneWithoutLoc",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"addComment",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"addComments",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"inheritInnerComments",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"inheritLeadingComments",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"inheritsComments",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"inheritTrailingComments",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"removeComments",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"ensureBlock",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return Te.default}}),Object.defineProperty(t,"toSequenceExpression",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"appendToMemberExpression",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(t,"prependToMemberExpression",{enumerable:!0,get:function(){return Pe.default}}),Object.defineProperty(t,"removeProperties",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(t,"removePropertiesDeep",{enumerable:!0,get:function(){return ge.default}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return Ae.default}}),Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return Ne.default}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return Ue.default}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return Ye.default}}),Object.defineProperty(t,"traverseFast",{enumerable:!0,get:function(){return at.default}}),Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return ot.default}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return $e.default}}),Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return rt.default}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return Qe.default}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return He.default}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return Oe.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return tt.default}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return Ie.default}}),Object.defineProperty(t,"isPlaceholderType",{enumerable:!0,get:function(){return we.default}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return je.default}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return Be.default}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return Je.default}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return Re.default}}),Object.defineProperty(t,"isValidES3Identifier",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return Ge.default}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return it.default}}),Object.defineProperty(t,"matchesPattern",{enumerable:!0,get:function(){return St.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return et.default}}),Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:!0,get:function(){return Ze.default}}),t.react=void 0;var m=ce(T("./validators/react/isReactComponent")),f=ce(T("./validators/react/isCompatTag")),b=ce(T("./builders/react/buildChildren")),g=ce(T("./asserts/assertNode")),p=T("./asserts/generated");Object.keys(p).forEach(function(ee){if(ee==="default"||ee==="__esModule")return;if(Object.prototype.hasOwnProperty.call(r,ee))return;if(ee in t&&t[ee]===p[ee])return;Object.defineProperty(t,ee,{enumerable:!0,get:function(){return p[ee]}})});var c=ce(T("./builders/flow/createTypeAnnotationBasedOnTypeof")),d=ce(T("./builders/flow/createFlowUnionType")),E=ce(T("./builders/typescript/createTSUnionType")),x=T("./builders/generated");Object.keys(x).forEach(function(ee){if(ee==="default"||ee==="__esModule")return;if(Object.prototype.hasOwnProperty.call(r,ee))return;if(ee in t&&t[ee]===x[ee])return;Object.defineProperty(t,ee,{enumerable:!0,get:function(){return x[ee]}})});var a=T("./builders/generated/uppercase");Object.keys(a).forEach(function(ee){if(ee==="default"||ee==="__esModule")return;if(Object.prototype.hasOwnProperty.call(r,ee))return;if(ee in t&&t[ee]===a[ee])return;Object.defineProperty(t,ee,{enumerable:!0,get:function(){return a[ee]}})});var O=ce(T("./clone/cloneNode")),_=ce(T("./clone/clone")),L=ce(T("./clone/cloneDeep")),B=ce(T("./clone/cloneDeepWithoutLoc")),k=ce(T("./clone/cloneWithoutLoc")),P=ce(T("./comments/addComment")),A=ce(T("./comments/addComments")),R=ce(T("./comments/inheritInnerComments")),j=ce(T("./comments/inheritLeadingComments")),v=ce(T("./comments/inheritsComments")),$=ce(T("./comments/inheritTrailingComments")),D=ce(T("./comments/removeComments")),oe=T("./constants/generated");Object.keys(oe).forEach(function(ee){if(ee==="default"||ee==="__esModule")return;if(Object.prototype.hasOwnProperty.call(r,ee))return;if(ee in t&&t[ee]===oe[ee])return;Object.defineProperty(t,ee,{enumerable:!0,get:function(){return oe[ee]}})});var z=T("./constants");Object.keys(z).forEach(function(ee){if(ee==="default"||ee==="__esModule")return;if(Object.prototype.hasOwnProperty.call(r,ee))return;if(ee in t&&t[ee]===z[ee])return;Object.defineProperty(t,ee,{enumerable:!0,get:function(){return z[ee]}})});var Q=ce(T("./converters/ensureBlock")),re=ce(T("./converters/toBindingIdentifierName")),K=ce(T("./converters/toBlock")),H=ce(T("./converters/toComputedKey")),ie=ce(T("./converters/toExpression")),pe=ce(T("./converters/toIdentifier")),Te=ce(T("./converters/toKeyAlias")),ae=ce(T("./converters/toSequenceExpression")),le=ce(T("./converters/toStatement")),X=ce(T("./converters/valueToNode")),J=T("./definitions");Object.keys(J).forEach(function(ee){if(ee==="default"||ee==="__esModule")return;if(Object.prototype.hasOwnProperty.call(r,ee))return;if(ee in t&&t[ee]===J[ee])return;Object.defineProperty(t,ee,{enumerable:!0,get:function(){return J[ee]}})});var Z=ce(T("./modifications/appendToMemberExpression")),he=ce(T("./modifications/inherits")),Pe=ce(T("./modifications/prependToMemberExpression")),me=ce(T("./modifications/removeProperties")),ge=ce(T("./modifications/removePropertiesDeep")),Ae=ce(T("./modifications/flow/removeTypeDuplicates")),Ne=ce(T("./retrievers/getBindingIdentifiers")),Ue=ce(T("./retrievers/getOuterBindingIdentifiers")),Ye=qe(T("./traverse/traverse"));Object.keys(Ye).forEach(function(ee){if(ee==="default"||ee==="__esModule")return;if(Object.prototype.hasOwnProperty.call(r,ee))return;if(ee in t&&t[ee]===Ye[ee])return;Object.defineProperty(t,ee,{enumerable:!0,get:function(){return Ye[ee]}})});var at=ce(T("./traverse/traverseFast")),ot=ce(T("./utils/shallowEqual")),$e=ce(T("./validators/is")),rt=ce(T("./validators/isBinding")),Qe=ce(T("./validators/isBlockScoped")),He=ce(T("./validators/isImmutable")),Oe=ce(T("./validators/isLet")),tt=ce(T("./validators/isNode")),Ie=ce(T("./validators/isNodesEquivalent")),we=ce(T("./validators/isPlaceholderType")),je=ce(T("./validators/isReferenced")),Be=ce(T("./validators/isScope")),Je=ce(T("./validators/isSpecifierDefault")),Re=ce(T("./validators/isType")),de=ce(T("./validators/isValidES3Identifier")),Ge=ce(T("./validators/isValidIdentifier")),it=ce(T("./validators/isVar")),St=ce(T("./validators/matchesPattern")),et=ce(T("./validators/validate")),Ze=ce(T("./validators/buildMatchMemberExpression")),nt=T("./validators/generated");Object.keys(nt).forEach(function(ee){if(ee==="default"||ee==="__esModule")return;if(Object.prototype.hasOwnProperty.call(r,ee))return;if(ee in t&&t[ee]===nt[ee])return;Object.defineProperty(t,ee,{enumerable:!0,get:function(){return nt[ee]}})});var Ke=T("./ast-types/generated");Object.keys(Ke).forEach(function(ee){if(ee==="default"||ee==="__esModule")return;if(Object.prototype.hasOwnProperty.call(r,ee))return;if(ee in t&&t[ee]===Ke[ee])return;Object.defineProperty(t,ee,{enumerable:!0,get:function(){return Ke[ee]}})});function ve(){if(typeof WeakMap!="function")return null;var ee=new WeakMap;return ve=function(){return ee},ee}function qe(ee){if(ee&&ee.__esModule)return ee;if(ee===null||typeof ee!="object"&&typeof ee!="function")return{default:ee};var ut=ve();if(ut&&ut.has(ee))return ut.get(ee);var st={},Pt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Me in ee)if(Object.prototype.hasOwnProperty.call(ee,Me)){var ke=Pt?Object.getOwnPropertyDescriptor(ee,Me):null;ke&&(ke.get||ke.set)?Object.defineProperty(st,Me,ke):st[Me]=ee[Me]}return st.default=ee,ut&&ut.set(ee,st),st}function ce(ee){return ee&&ee.__esModule?ee:{default:ee}}const Ve={isReactComponent:m.default,isCompatTag:f.default,buildChildren:b.default};t.react=Ve},{"./asserts/assertNode":6,"./asserts/generated":7,"./ast-types/generated":8,"./builders/flow/createFlowUnionType":10,"./builders/flow/createTypeAnnotationBasedOnTypeof":11,"./builders/generated":12,"./builders/generated/uppercase":13,"./builders/react/buildChildren":14,"./builders/typescript/createTSUnionType":15,"./clone/clone":16,"./clone/cloneDeep":17,"./clone/cloneDeepWithoutLoc":18,"./clone/cloneNode":19,"./clone/cloneWithoutLoc":20,"./comments/addComment":21,"./comments/addComments":22,"./comments/inheritInnerComments":23,"./comments/inheritLeadingComments":24,"./comments/inheritTrailingComments":25,"./comments/inheritsComments":26,"./comments/removeComments":27,"./constants":29,"./constants/generated":28,"./converters/ensureBlock":30,"./converters/toBindingIdentifierName":32,"./converters/toBlock":33,"./converters/toComputedKey":34,"./converters/toExpression":35,"./converters/toIdentifier":36,"./converters/toKeyAlias":37,"./converters/toSequenceExpression":38,"./converters/toStatement":39,"./converters/valueToNode":40,"./definitions":44,"./modifications/appendToMemberExpression":51,"./modifications/flow/removeTypeDuplicates":52,"./modifications/inherits":53,"./modifications/prependToMemberExpression":54,"./modifications/removeProperties":55,"./modifications/removePropertiesDeep":56,"./retrievers/getBindingIdentifiers":58,"./retrievers/getOuterBindingIdentifiers":59,"./traverse/traverse":60,"./traverse/traverseFast":61,"./utils/shallowEqual":64,"./validators/buildMatchMemberExpression":65,"./validators/generated":66,"./validators/is":67,"./validators/isBinding":68,"./validators/isBlockScoped":69,"./validators/isImmutable":70,"./validators/isLet":71,"./validators/isNode":72,"./validators/isNodesEquivalent":73,"./validators/isPlaceholderType":74,"./validators/isReferenced":75,"./validators/isScope":76,"./validators/isSpecifierDefault":77,"./validators/isType":78,"./validators/isValidES3Identifier":79,"./validators/isValidIdentifier":80,"./validators/isVar":81,"./validators/matchesPattern":82,"./validators/react/isCompatTag":83,"./validators/react/isReactComponent":84,"./validators/validate":85}],51:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=T("../builders/generated");function m(f,b,g=!1){return f.object=(0,r.memberExpression)(f.object,f.property,f.computed),f.property=b,f.computed=!!g,f}},{"../builders/generated":12}],52:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=T("../../validators/generated");function m(b){return(0,r.isIdentifier)(b)?b.name:`${b.id.name}.${m(b.qualification)}`}function f(b){const g={},p={},c=[],d=[];for(let E=0;E<b.length;E++){const x=b[E];if(!x)continue;if(d.indexOf(x)>=0)continue;if((0,r.isAnyTypeAnnotation)(x))return[x];if((0,r.isFlowBaseAnnotation)(x)){p[x.type]=x;continue}if((0,r.isUnionTypeAnnotation)(x)){c.indexOf(x.types)<0&&(b=b.concat(x.types),c.push(x.types));continue}if((0,r.isGenericTypeAnnotation)(x)){const a=m(x.id);if(g[a]){let O=g[a];O.typeParameters?x.typeParameters&&(O.typeParameters.params=f(O.typeParameters.params.concat(x.typeParameters.params))):O=x.typeParameters}else g[a]=x;continue}d.push(x)}for(const E of Object.keys(p))d.push(p[E]);for(const E of Object.keys(g))d.push(g[E]);return d}},{"../../validators/generated":66}],53:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=b;var r=T("../constants"),m=f(T("../comments/inheritsComments"));function f(g){return g&&g.__esModule?g:{default:g}}function b(g,p){if(!g||!p)return g;for(const c of r.INHERIT_KEYS.optional)g[c]==null&&(g[c]=p[c]);for(const c of Object.keys(p))c[0]==="_"&&c!=="__clone"&&(g[c]=p[c]);for(const c of r.INHERIT_KEYS.force)g[c]=p[c];return(0,m.default)(g,p),g}},{"../comments/inheritsComments":26,"../constants":29}],54:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=T("../builders/generated");function m(f,b){return f.object=(0,r.memberExpression)(b,f.object),f}},{"../builders/generated":12}],55:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=b;var r=T("../constants");const m=["tokens","start","end","loc","raw","rawValue"],f=r.COMMENT_KEYS.concat(["comments"]).concat(m);function b(g,p={}){const c=p.preserveComments?m:f;for(const E of c)g[E]!=null&&(g[E]=void 0);for(const E of Object.keys(g))E[0]==="_"&&g[E]!=null&&(g[E]=void 0);const d=Object.getOwnPropertySymbols(g);for(const E of d)g[E]=null}},{"../constants":29}],56:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=b;var r=f(T("../traverse/traverseFast")),m=f(T("./removeProperties"));function f(g){return g&&g.__esModule?g:{default:g}}function b(g,p){return(0,r.default)(g,m.default,p),g}},{"../traverse/traverseFast":61,"./removeProperties":55}],57:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=T("../../validators/generated");function m(f){const b={},g={},p=[],c=[];for(let d=0;d<f.length;d++){const E=f[d];if(!E)continue;if(c.indexOf(E)>=0)continue;if((0,r.isTSAnyKeyword)(E))return[E];if((0,r.isTSBaseType)(E)){g[E.type]=E;continue}if((0,r.isTSUnionType)(E)){p.indexOf(E.types)<0&&(f=f.concat(E.types),p.push(E.types));continue}c.push(E)}for(const d of Object.keys(g))c.push(g[d]);for(const d of Object.keys(b))c.push(b[d]);return c}},{"../../validators/generated":66}],58:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=T("../validators/generated");function m(f,b,g){let p=[].concat(f);const c=Object.create(null);for(;p.length;){const d=p.shift();if(!d)continue;const E=m.keys[d.type];if((0,r.isIdentifier)(d)){if(b){const x=c[d.name]=c[d.name]||[];x.push(d)}else c[d.name]=d;continue}if((0,r.isExportDeclaration)(d)&&!(0,r.isExportAllDeclaration)(d)){(0,r.isDeclaration)(d.declaration)&&p.push(d.declaration);continue}if(g){if((0,r.isFunctionDeclaration)(d)){p.push(d.id);continue}if((0,r.isFunctionExpression)(d))continue}if(E)for(let x=0;x<E.length;x++){const a=E[x];d[a]&&(p=p.concat(d[a]))}}return c}m.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"]}},{"../validators/generated":66}],59:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(T("./getBindingIdentifiers"));function m(g){return g&&g.__esModule?g:{default:g}}var f=b;t.default=f;function b(g,p){return(0,r.default)(g,p,!0)}},{"./getBindingIdentifiers":58}],60:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=T("../definitions");function m(b,g,p){typeof g=="function"&&(g={enter:g});const{enter:c,exit:d}=g;f(b,c,d,p,[])}function f(b,g,p,c,d){const E=r.VISITOR_KEYS[b.type];if(!E)return;g&&g(b,d,c);for(const x of E){const a=b[x];if(Array.isArray(a))for(let O=0;O<a.length;O++){const _=a[O];if(!_)continue;d.push({node:b,key:x,index:O}),f(_,g,p,c,d),d.pop()}else a&&(d.push({node:b,key:x}),f(a,g,p,c,d),d.pop())}p&&p(b,d,c)}},{"../definitions":44}],61:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=T("../definitions");function m(f,b,g){if(!f)return;const p=r.VISITOR_KEYS[f.type];if(!p)return;g=g||{},b(f,g);for(const c of p){const d=f[c];if(Array.isArray(d))for(const E of d)m(E,b,g);else m(d,b,g)}}},{"../definitions":44}],62:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(m,f,b){f&&b&&(f[m]=Array.from(new Set([].concat(f[m],b[m]).filter(Boolean))))}},{}],63:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=T("../../builders/generated");function m(f,b){const g=f.value.split(/\r\n|\n|\r/);let p=0;for(let d=0;d<g.length;d++)g[d].match(/[^ \t]/)&&(p=d);let c="";for(let d=0;d<g.length;d++){const E=g[d],x=d===0,a=d===g.length-1,O=d===p;let _=E.replace(/\t/g," ");x||(_=_.replace(/^[ ]+/,"")),a||(_=_.replace(/[ ]+$/,"")),_&&(O||(_+=" "),c+=_)}c&&b.push((0,r.stringLiteral)(c))}},{"../../builders/generated":12}],64:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(m,f){const b=Object.keys(f);for(const g of b)if(m[g]!==f[g])return!1;return!0}},{}],65:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=m(T("./matchesPattern"));function m(b){return b&&b.__esModule?b:{default:b}}function f(b,g){const p=b.split(".");return c=>(0,r.default)(c,p,g)}},{"./matchesPattern":82}],66:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayExpression=f,t.isAssignmentExpression=b,t.isBinaryExpression=g,t.isInterpreterDirective=p,t.isDirective=c,t.isDirectiveLiteral=d,t.isBlockStatement=E,t.isBreakStatement=x,t.isCallExpression=a,t.isCatchClause=O,t.isConditionalExpression=_,t.isContinueStatement=L,t.isDebuggerStatement=B,t.isDoWhileStatement=k,t.isEmptyStatement=P,t.isExpressionStatement=A,t.isFile=R,t.isForInStatement=j,t.isForStatement=v,t.isFunctionDeclaration=$,t.isFunctionExpression=D,t.isIdentifier=oe,t.isIfStatement=z,t.isLabeledStatement=Q,t.isStringLiteral=re,t.isNumericLiteral=K,t.isNullLiteral=H,t.isBooleanLiteral=ie,t.isRegExpLiteral=pe,t.isLogicalExpression=Te,t.isMemberExpression=ae,t.isNewExpression=le,t.isProgram=X,t.isObjectExpression=J,t.isObjectMethod=Z,t.isObjectProperty=he,t.isRestElement=Pe,t.isReturnStatement=me,t.isSequenceExpression=ge,t.isParenthesizedExpression=Ae,t.isSwitchCase=Ne,t.isSwitchStatement=Ue,t.isThisExpression=Ye,t.isThrowStatement=at,t.isTryStatement=ot,t.isUnaryExpression=$e,t.isUpdateExpression=rt,t.isVariableDeclaration=Qe,t.isVariableDeclarator=He,t.isWhileStatement=Oe,t.isWithStatement=tt,t.isAssignmentPattern=Ie,t.isArrayPattern=we,t.isArrowFunctionExpression=je,t.isClassBody=Be,t.isClassExpression=Je,t.isClassDeclaration=Re,t.isExportAllDeclaration=de,t.isExportDefaultDeclaration=Ge,t.isExportNamedDeclaration=it,t.isExportSpecifier=St,t.isForOfStatement=et,t.isImportDeclaration=Ze,t.isImportDefaultSpecifier=nt,t.isImportNamespaceSpecifier=Ke,t.isImportSpecifier=ve,t.isMetaProperty=qe,t.isClassMethod=ce,t.isObjectPattern=Ve,t.isSpreadElement=ee,t.isSuper=ut,t.isTaggedTemplateExpression=st,t.isTemplateElement=Pt,t.isTemplateLiteral=Me,t.isYieldExpression=ke,t.isAwaitExpression=It,t.isImport=jt,t.isBigIntLiteral=At,t.isExportNamespaceSpecifier=Nt,t.isOptionalMemberExpression=kt,t.isOptionalCallExpression=Ct,t.isAnyTypeAnnotation=Vt,t.isArrayTypeAnnotation=Ut,t.isBooleanTypeAnnotation=$t,t.isBooleanLiteralTypeAnnotation=Qt,t.isNullLiteralTypeAnnotation=Dt,t.isClassImplements=Lt,t.isDeclareClass=se,t.isDeclareFunction=ft,t.isDeclareInterface=mt,t.isDeclareModule=Mt,t.isDeclareModuleExports=Zt,t.isDeclareTypeAlias=er,t.isDeclareOpaqueType=Kt,t.isDeclareVariable=tr,t.isDeclareExportDeclaration=rr,t.isDeclareExportAllDeclaration=Yt,t.isDeclaredPredicate=ir,t.isExistsTypeAnnotation=lt,t.isFunctionTypeAnnotation=pt,t.isFunctionTypeParam=yt,t.isGenericTypeAnnotation=Xt,t.isInferredPredicate=xt,t.isInterfaceExtends=_e,t.isInterfaceDeclaration=nr,t.isInterfaceTypeAnnotation=Wt,t.isIntersectionTypeAnnotation=ht,t.isMixedTypeAnnotation=Bt,t.isEmptyTypeAnnotation=_t,t.isNullableTypeAnnotation=Jt,t.isNumberLiteralTypeAnnotation=Et,t.isNumberTypeAnnotation=sr,t.isObjectTypeAnnotation=o,t.isObjectTypeInternalSlot=y,t.isObjectTypeCallProperty=I,t.isObjectTypeIndexer=N,t.isObjectTypeProperty=F,t.isObjectTypeSpreadProperty=W,t.isOpaqueType=G,t.isQualifiedTypeIdentifier=ue,t.isStringLiteralTypeAnnotation=fe,t.isStringTypeAnnotation=xe,t.isSymbolTypeAnnotation=De,t.isThisTypeAnnotation=Xe,t.isTupleTypeAnnotation=bt,t.isTypeofTypeAnnotation=Tt,t.isTypeAlias=Ot,t.isTypeAnnotation=gt,t.isTypeCastExpression=vt,t.isTypeParameter=ar,t.isTypeParameterDeclaration=Sr,t.isTypeParameterInstantiation=Er,t.isUnionTypeAnnotation=pr,t.isVariance=dt,t.isVoidTypeAnnotation=vr,t.isEnumDeclaration=Pr,t.isEnumBooleanBody=Ar,t.isEnumNumberBody=qt,t.isEnumStringBody=Ht,t.isEnumSymbolBody=xr,t.isEnumBooleanMember=or,t.isEnumNumberMember=_r,t.isEnumStringMember=wr,t.isEnumDefaultedMember=hr,t.isJSXAttribute=ur,t.isJSXClosingElement=dr,t.isJSXElement=Gt,t.isJSXEmptyExpression=mr,t.isJSXExpressionContainer=Ir,t.isJSXSpreadChild=Cr,t.isJSXIdentifier=Or,t.isJSXMemberExpression=Nr,t.isJSXNamespacedName=lr,t.isJSXOpeningElement=kr,t.isJSXSpreadAttribute=cr,t.isJSXText=Dr,t.isJSXFragment=Lr,t.isJSXOpeningFragment=fr,t.isJSXClosingFragment=yr,t.isNoop=br,t.isPlaceholder=Mr,t.isV8IntrinsicIdentifier=Br,t.isArgumentPlaceholder=Rr,t.isBindExpression=Fr,t.isClassProperty=Tr,t.isPipelineTopicExpression=jr,t.isPipelineBareFunction=Vr,t.isPipelinePrimaryTopicReference=Ur,t.isClassPrivateProperty=Rt,t.isClassPrivateMethod=gr,t.isImportAttribute=Kr,t.isDecorator=U,t.isDoExpression=e,t.isExportDefaultSpecifier=i,t.isPrivateName=l,t.isRecordExpression=h,t.isTupleExpression=S,t.isDecimalLiteral=w,t.isStaticBlock=M,t.isTSParameterProperty=Y,t.isTSDeclareFunction=q,t.isTSDeclareMethod=ne,t.isTSQualifiedName=Ee,t.isTSCallSignatureDeclaration=be,t.isTSConstructSignatureDeclaration=Se,t.isTSPropertySignature=Ce,t.isTSMethodSignature=We,t.isTSIndexSignature=Fe,t.isTSAnyKeyword=ze,t.isTSBooleanKeyword=ct,t.isTSBigIntKeyword=zt,t.isTSIntrinsicKeyword=Ft,t.isTSNeverKeyword=Xr,t.isTSNullKeyword=Wr,t.isTSNumberKeyword=Jr,t.isTSObjectKeyword=qr,t.isTSStringKeyword=Hr,t.isTSSymbolKeyword=Gr,t.isTSUndefinedKeyword=zr,t.isTSUnknownKeyword=$r,t.isTSVoidKeyword=Qr,t.isTSThisType=Zr,t.isTSFunctionType=ei,t.isTSConstructorType=ti,t.isTSTypeReference=ri,t.isTSTypePredicate=ii,t.isTSTypeQuery=ni,t.isTSTypeLiteral=si,t.isTSArrayType=ai,t.isTSTupleType=oi,t.isTSOptionalType=ui,t.isTSRestType=li,t.isTSNamedTupleMember=ci,t.isTSUnionType=fi,t.isTSIntersectionType=pi,t.isTSConditionalType=hi,t.isTSInferType=di,t.isTSParenthesizedType=mi,t.isTSTypeOperator=yi,t.isTSIndexedAccessType=bi,t.isTSMappedType=Ti,t.isTSLiteralType=gi,t.isTSExpressionWithTypeArguments=Si,t.isTSInterfaceDeclaration=Ei,t.isTSInterfaceBody=vi,t.isTSTypeAliasDeclaration=Pi,t.isTSAsExpression=Ai,t.isTSTypeAssertion=xi,t.isTSEnumDeclaration=_i,t.isTSEnumMember=wi,t.isTSModuleDeclaration=Ii,t.isTSModuleBlock=Ci,t.isTSImportType=Oi,t.isTSImportEqualsDeclaration=Ni,t.isTSExternalModuleReference=ki,t.isTSNonNullExpression=Di,t.isTSExportAssignment=Li,t.isTSNamespaceExportDeclaration=Mi,t.isTSTypeAnnotation=Bi,t.isTSTypeParameterInstantiation=Ri,t.isTSTypeParameterDeclaration=Fi,t.isTSTypeParameter=ji,t.isExpression=Vi,t.isBinary=Ui,t.isScopable=Ki,t.isBlockParent=Yi,t.isBlock=V,t.isStatement=te,t.isTerminatorless=ye,t.isCompletionStatement=Le,t.isConditional=wt,t.isLoop=Yr,t.isWhile=Xi,t.isExpressionWrapper=Wi,t.isFor=Ji,t.isForXStatement=qi,t.isFunction=Hi,t.isFunctionParent=Gi,t.isPureish=zi,t.isDeclaration=$i,t.isPatternLike=Qi,t.isLVal=Zi,t.isTSEntityName=en,t.isLiteral=tn,t.isImmutable=rn,t.isUserWhitespacable=nn,t.isMethod=sn,t.isObjectMember=an,t.isProperty=on,t.isUnaryLike=un,t.isPattern=ln,t.isClass=cn,t.isModuleDeclaration=fn,t.isExportDeclaration=pn,t.isModuleSpecifier=hn,t.isFlow=dn,t.isFlowType=mn,t.isFlowBaseAnnotation=yn,t.isFlowDeclaration=bn,t.isFlowPredicate=Tn,t.isEnumBody=gn,t.isEnumMember=Sn,t.isJSX=En,t.isPrivate=vn,t.isTSTypeElement=Pn,t.isTSType=An,t.isTSBaseType=xn,t.isNumberLiteral=_n,t.isRegexLiteral=wn,t.isRestProperty=In,t.isSpreadProperty=Cn;var r=m(T("../../utils/shallowEqual"));function m(u){return u&&u.__esModule?u:{default:u}}function f(u,s){if(!u)return!1;const n=u.type;return n==="ArrayExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function b(u,s){if(!u)return!1;const n=u.type;return n==="AssignmentExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function g(u,s){if(!u)return!1;const n=u.type;return n==="BinaryExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function p(u,s){if(!u)return!1;const n=u.type;return n==="InterpreterDirective"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function c(u,s){if(!u)return!1;const n=u.type;return n==="Directive"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function d(u,s){if(!u)return!1;const n=u.type;return n==="DirectiveLiteral"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function E(u,s){if(!u)return!1;const n=u.type;return n==="BlockStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function x(u,s){if(!u)return!1;const n=u.type;return n==="BreakStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function a(u,s){if(!u)return!1;const n=u.type;return n==="CallExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function O(u,s){if(!u)return!1;const n=u.type;return n==="CatchClause"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function _(u,s){if(!u)return!1;const n=u.type;return n==="ConditionalExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function L(u,s){if(!u)return!1;const n=u.type;return n==="ContinueStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function B(u,s){if(!u)return!1;const n=u.type;return n==="DebuggerStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function k(u,s){if(!u)return!1;const n=u.type;return n==="DoWhileStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function P(u,s){if(!u)return!1;const n=u.type;return n==="EmptyStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function A(u,s){if(!u)return!1;const n=u.type;return n==="ExpressionStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function R(u,s){if(!u)return!1;const n=u.type;return n==="File"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function j(u,s){if(!u)return!1;const n=u.type;return n==="ForInStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function v(u,s){if(!u)return!1;const n=u.type;return n==="ForStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function $(u,s){if(!u)return!1;const n=u.type;return n==="FunctionDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function D(u,s){if(!u)return!1;const n=u.type;return n==="FunctionExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function oe(u,s){if(!u)return!1;const n=u.type;return n==="Identifier"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function z(u,s){if(!u)return!1;const n=u.type;return n==="IfStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Q(u,s){if(!u)return!1;const n=u.type;return n==="LabeledStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function re(u,s){if(!u)return!1;const n=u.type;return n==="StringLiteral"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function K(u,s){if(!u)return!1;const n=u.type;return n==="NumericLiteral"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function H(u,s){if(!u)return!1;const n=u.type;return n==="NullLiteral"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ie(u,s){if(!u)return!1;const n=u.type;return n==="BooleanLiteral"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function pe(u,s){if(!u)return!1;const n=u.type;return n==="RegExpLiteral"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Te(u,s){if(!u)return!1;const n=u.type;return n==="LogicalExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ae(u,s){if(!u)return!1;const n=u.type;return n==="MemberExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function le(u,s){if(!u)return!1;const n=u.type;return n==="NewExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function X(u,s){if(!u)return!1;const n=u.type;return n==="Program"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function J(u,s){if(!u)return!1;const n=u.type;return n==="ObjectExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Z(u,s){if(!u)return!1;const n=u.type;return n==="ObjectMethod"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function he(u,s){if(!u)return!1;const n=u.type;return n==="ObjectProperty"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Pe(u,s){if(!u)return!1;const n=u.type;return n==="RestElement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function me(u,s){if(!u)return!1;const n=u.type;return n==="ReturnStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ge(u,s){if(!u)return!1;const n=u.type;return n==="SequenceExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ae(u,s){if(!u)return!1;const n=u.type;return n==="ParenthesizedExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ne(u,s){if(!u)return!1;const n=u.type;return n==="SwitchCase"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ue(u,s){if(!u)return!1;const n=u.type;return n==="SwitchStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ye(u,s){if(!u)return!1;const n=u.type;return n==="ThisExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function at(u,s){if(!u)return!1;const n=u.type;return n==="ThrowStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ot(u,s){if(!u)return!1;const n=u.type;return n==="TryStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function $e(u,s){if(!u)return!1;const n=u.type;return n==="UnaryExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function rt(u,s){if(!u)return!1;const n=u.type;return n==="UpdateExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Qe(u,s){if(!u)return!1;const n=u.type;return n==="VariableDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function He(u,s){if(!u)return!1;const n=u.type;return n==="VariableDeclarator"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Oe(u,s){if(!u)return!1;const n=u.type;return n==="WhileStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function tt(u,s){if(!u)return!1;const n=u.type;return n==="WithStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ie(u,s){if(!u)return!1;const n=u.type;return n==="AssignmentPattern"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function we(u,s){if(!u)return!1;const n=u.type;return n==="ArrayPattern"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function je(u,s){if(!u)return!1;const n=u.type;return n==="ArrowFunctionExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Be(u,s){if(!u)return!1;const n=u.type;return n==="ClassBody"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Je(u,s){if(!u)return!1;const n=u.type;return n==="ClassExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Re(u,s){if(!u)return!1;const n=u.type;return n==="ClassDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function de(u,s){if(!u)return!1;const n=u.type;return n==="ExportAllDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ge(u,s){if(!u)return!1;const n=u.type;return n==="ExportDefaultDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function it(u,s){if(!u)return!1;const n=u.type;return n==="ExportNamedDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function St(u,s){if(!u)return!1;const n=u.type;return n==="ExportSpecifier"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function et(u,s){if(!u)return!1;const n=u.type;return n==="ForOfStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ze(u,s){if(!u)return!1;const n=u.type;return n==="ImportDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function nt(u,s){if(!u)return!1;const n=u.type;return n==="ImportDefaultSpecifier"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ke(u,s){if(!u)return!1;const n=u.type;return n==="ImportNamespaceSpecifier"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ve(u,s){if(!u)return!1;const n=u.type;return n==="ImportSpecifier"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function qe(u,s){if(!u)return!1;const n=u.type;return n==="MetaProperty"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ce(u,s){if(!u)return!1;const n=u.type;return n==="ClassMethod"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ve(u,s){if(!u)return!1;const n=u.type;return n==="ObjectPattern"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ee(u,s){if(!u)return!1;const n=u.type;return n==="SpreadElement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ut(u,s){if(!u)return!1;const n=u.type;return n==="Super"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function st(u,s){if(!u)return!1;const n=u.type;return n==="TaggedTemplateExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Pt(u,s){if(!u)return!1;const n=u.type;return n==="TemplateElement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Me(u,s){if(!u)return!1;const n=u.type;return n==="TemplateLiteral"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ke(u,s){if(!u)return!1;const n=u.type;return n==="YieldExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function It(u,s){if(!u)return!1;const n=u.type;return n==="AwaitExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function jt(u,s){if(!u)return!1;const n=u.type;return n==="Import"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function At(u,s){if(!u)return!1;const n=u.type;return n==="BigIntLiteral"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Nt(u,s){if(!u)return!1;const n=u.type;return n==="ExportNamespaceSpecifier"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function kt(u,s){if(!u)return!1;const n=u.type;return n==="OptionalMemberExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ct(u,s){if(!u)return!1;const n=u.type;return n==="OptionalCallExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Vt(u,s){if(!u)return!1;const n=u.type;return n==="AnyTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ut(u,s){if(!u)return!1;const n=u.type;return n==="ArrayTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function $t(u,s){if(!u)return!1;const n=u.type;return n==="BooleanTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Qt(u,s){if(!u)return!1;const n=u.type;return n==="BooleanLiteralTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Dt(u,s){if(!u)return!1;const n=u.type;return n==="NullLiteralTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Lt(u,s){if(!u)return!1;const n=u.type;return n==="ClassImplements"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function se(u,s){if(!u)return!1;const n=u.type;return n==="DeclareClass"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ft(u,s){if(!u)return!1;const n=u.type;return n==="DeclareFunction"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function mt(u,s){if(!u)return!1;const n=u.type;return n==="DeclareInterface"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Mt(u,s){if(!u)return!1;const n=u.type;return n==="DeclareModule"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Zt(u,s){if(!u)return!1;const n=u.type;return n==="DeclareModuleExports"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function er(u,s){if(!u)return!1;const n=u.type;return n==="DeclareTypeAlias"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Kt(u,s){if(!u)return!1;const n=u.type;return n==="DeclareOpaqueType"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function tr(u,s){if(!u)return!1;const n=u.type;return n==="DeclareVariable"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function rr(u,s){if(!u)return!1;const n=u.type;return n==="DeclareExportDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Yt(u,s){if(!u)return!1;const n=u.type;return n==="DeclareExportAllDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ir(u,s){if(!u)return!1;const n=u.type;return n==="DeclaredPredicate"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function lt(u,s){if(!u)return!1;const n=u.type;return n==="ExistsTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function pt(u,s){if(!u)return!1;const n=u.type;return n==="FunctionTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function yt(u,s){if(!u)return!1;const n=u.type;return n==="FunctionTypeParam"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Xt(u,s){if(!u)return!1;const n=u.type;return n==="GenericTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function xt(u,s){if(!u)return!1;const n=u.type;return n==="InferredPredicate"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function _e(u,s){if(!u)return!1;const n=u.type;return n==="InterfaceExtends"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function nr(u,s){if(!u)return!1;const n=u.type;return n==="InterfaceDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Wt(u,s){if(!u)return!1;const n=u.type;return n==="InterfaceTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ht(u,s){if(!u)return!1;const n=u.type;return n==="IntersectionTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Bt(u,s){if(!u)return!1;const n=u.type;return n==="MixedTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function _t(u,s){if(!u)return!1;const n=u.type;return n==="EmptyTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Jt(u,s){if(!u)return!1;const n=u.type;return n==="NullableTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Et(u,s){if(!u)return!1;const n=u.type;return n==="NumberLiteralTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function sr(u,s){if(!u)return!1;const n=u.type;return n==="NumberTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function o(u,s){if(!u)return!1;const n=u.type;return n==="ObjectTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function y(u,s){if(!u)return!1;const n=u.type;return n==="ObjectTypeInternalSlot"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function I(u,s){if(!u)return!1;const n=u.type;return n==="ObjectTypeCallProperty"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function N(u,s){if(!u)return!1;const n=u.type;return n==="ObjectTypeIndexer"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function F(u,s){if(!u)return!1;const n=u.type;return n==="ObjectTypeProperty"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function W(u,s){if(!u)return!1;const n=u.type;return n==="ObjectTypeSpreadProperty"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function G(u,s){if(!u)return!1;const n=u.type;return n==="OpaqueType"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ue(u,s){if(!u)return!1;const n=u.type;return n==="QualifiedTypeIdentifier"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function fe(u,s){if(!u)return!1;const n=u.type;return n==="StringLiteralTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function xe(u,s){if(!u)return!1;const n=u.type;return n==="StringTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function De(u,s){if(!u)return!1;const n=u.type;return n==="SymbolTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Xe(u,s){if(!u)return!1;const n=u.type;return n==="ThisTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function bt(u,s){if(!u)return!1;const n=u.type;return n==="TupleTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Tt(u,s){if(!u)return!1;const n=u.type;return n==="TypeofTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ot(u,s){if(!u)return!1;const n=u.type;return n==="TypeAlias"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function gt(u,s){if(!u)return!1;const n=u.type;return n==="TypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function vt(u,s){if(!u)return!1;const n=u.type;return n==="TypeCastExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ar(u,s){if(!u)return!1;const n=u.type;return n==="TypeParameter"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Sr(u,s){if(!u)return!1;const n=u.type;return n==="TypeParameterDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Er(u,s){if(!u)return!1;const n=u.type;return n==="TypeParameterInstantiation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function pr(u,s){if(!u)return!1;const n=u.type;return n==="UnionTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function dt(u,s){if(!u)return!1;const n=u.type;return n==="Variance"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function vr(u,s){if(!u)return!1;const n=u.type;return n==="VoidTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Pr(u,s){if(!u)return!1;const n=u.type;return n==="EnumDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ar(u,s){if(!u)return!1;const n=u.type;return n==="EnumBooleanBody"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function qt(u,s){if(!u)return!1;const n=u.type;return n==="EnumNumberBody"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ht(u,s){if(!u)return!1;const n=u.type;return n==="EnumStringBody"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function xr(u,s){if(!u)return!1;const n=u.type;return n==="EnumSymbolBody"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function or(u,s){if(!u)return!1;const n=u.type;return n==="EnumBooleanMember"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function _r(u,s){if(!u)return!1;const n=u.type;return n==="EnumNumberMember"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function wr(u,s){if(!u)return!1;const n=u.type;return n==="EnumStringMember"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function hr(u,s){if(!u)return!1;const n=u.type;return n==="EnumDefaultedMember"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ur(u,s){if(!u)return!1;const n=u.type;return n==="JSXAttribute"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function dr(u,s){if(!u)return!1;const n=u.type;return n==="JSXClosingElement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Gt(u,s){if(!u)return!1;const n=u.type;return n==="JSXElement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function mr(u,s){if(!u)return!1;const n=u.type;return n==="JSXEmptyExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ir(u,s){if(!u)return!1;const n=u.type;return n==="JSXExpressionContainer"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Cr(u,s){if(!u)return!1;const n=u.type;return n==="JSXSpreadChild"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Or(u,s){if(!u)return!1;const n=u.type;return n==="JSXIdentifier"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Nr(u,s){if(!u)return!1;const n=u.type;return n==="JSXMemberExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function lr(u,s){if(!u)return!1;const n=u.type;return n==="JSXNamespacedName"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function kr(u,s){if(!u)return!1;const n=u.type;return n==="JSXOpeningElement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function cr(u,s){if(!u)return!1;const n=u.type;return n==="JSXSpreadAttribute"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Dr(u,s){if(!u)return!1;const n=u.type;return n==="JSXText"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Lr(u,s){if(!u)return!1;const n=u.type;return n==="JSXFragment"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function fr(u,s){if(!u)return!1;const n=u.type;return n==="JSXOpeningFragment"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function yr(u,s){if(!u)return!1;const n=u.type;return n==="JSXClosingFragment"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function br(u,s){if(!u)return!1;const n=u.type;return n==="Noop"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Mr(u,s){if(!u)return!1;const n=u.type;return n==="Placeholder"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Br(u,s){if(!u)return!1;const n=u.type;return n==="V8IntrinsicIdentifier"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Rr(u,s){if(!u)return!1;const n=u.type;return n==="ArgumentPlaceholder"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Fr(u,s){if(!u)return!1;const n=u.type;return n==="BindExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Tr(u,s){if(!u)return!1;const n=u.type;return n==="ClassProperty"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function jr(u,s){if(!u)return!1;const n=u.type;return n==="PipelineTopicExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Vr(u,s){if(!u)return!1;const n=u.type;return n==="PipelineBareFunction"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ur(u,s){if(!u)return!1;const n=u.type;return n==="PipelinePrimaryTopicReference"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Rt(u,s){if(!u)return!1;const n=u.type;return n==="ClassPrivateProperty"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function gr(u,s){if(!u)return!1;const n=u.type;return n==="ClassPrivateMethod"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Kr(u,s){if(!u)return!1;const n=u.type;return n==="ImportAttribute"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function U(u,s){if(!u)return!1;const n=u.type;return n==="Decorator"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function e(u,s){if(!u)return!1;const n=u.type;return n==="DoExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function i(u,s){if(!u)return!1;const n=u.type;return n==="ExportDefaultSpecifier"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function l(u,s){if(!u)return!1;const n=u.type;return n==="PrivateName"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function h(u,s){if(!u)return!1;const n=u.type;return n==="RecordExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function S(u,s){if(!u)return!1;const n=u.type;return n==="TupleExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function w(u,s){if(!u)return!1;const n=u.type;return n==="DecimalLiteral"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function M(u,s){if(!u)return!1;const n=u.type;return n==="StaticBlock"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Y(u,s){if(!u)return!1;const n=u.type;return n==="TSParameterProperty"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function q(u,s){if(!u)return!1;const n=u.type;return n==="TSDeclareFunction"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ne(u,s){if(!u)return!1;const n=u.type;return n==="TSDeclareMethod"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ee(u,s){if(!u)return!1;const n=u.type;return n==="TSQualifiedName"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function be(u,s){if(!u)return!1;const n=u.type;return n==="TSCallSignatureDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Se(u,s){if(!u)return!1;const n=u.type;return n==="TSConstructSignatureDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ce(u,s){if(!u)return!1;const n=u.type;return n==="TSPropertySignature"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function We(u,s){if(!u)return!1;const n=u.type;return n==="TSMethodSignature"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Fe(u,s){if(!u)return!1;const n=u.type;return n==="TSIndexSignature"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ze(u,s){if(!u)return!1;const n=u.type;return n==="TSAnyKeyword"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ct(u,s){if(!u)return!1;const n=u.type;return n==="TSBooleanKeyword"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function zt(u,s){if(!u)return!1;const n=u.type;return n==="TSBigIntKeyword"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ft(u,s){if(!u)return!1;const n=u.type;return n==="TSIntrinsicKeyword"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Xr(u,s){if(!u)return!1;const n=u.type;return n==="TSNeverKeyword"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Wr(u,s){if(!u)return!1;const n=u.type;return n==="TSNullKeyword"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Jr(u,s){if(!u)return!1;const n=u.type;return n==="TSNumberKeyword"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function qr(u,s){if(!u)return!1;const n=u.type;return n==="TSObjectKeyword"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Hr(u,s){if(!u)return!1;const n=u.type;return n==="TSStringKeyword"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Gr(u,s){if(!u)return!1;const n=u.type;return n==="TSSymbolKeyword"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function zr(u,s){if(!u)return!1;const n=u.type;return n==="TSUndefinedKeyword"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function $r(u,s){if(!u)return!1;const n=u.type;return n==="TSUnknownKeyword"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Qr(u,s){if(!u)return!1;const n=u.type;return n==="TSVoidKeyword"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Zr(u,s){if(!u)return!1;const n=u.type;return n==="TSThisType"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ei(u,s){if(!u)return!1;const n=u.type;return n==="TSFunctionType"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ti(u,s){if(!u)return!1;const n=u.type;return n==="TSConstructorType"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ri(u,s){if(!u)return!1;const n=u.type;return n==="TSTypeReference"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ii(u,s){if(!u)return!1;const n=u.type;return n==="TSTypePredicate"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ni(u,s){if(!u)return!1;const n=u.type;return n==="TSTypeQuery"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function si(u,s){if(!u)return!1;const n=u.type;return n==="TSTypeLiteral"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ai(u,s){if(!u)return!1;const n=u.type;return n==="TSArrayType"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function oi(u,s){if(!u)return!1;const n=u.type;return n==="TSTupleType"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ui(u,s){if(!u)return!1;const n=u.type;return n==="TSOptionalType"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function li(u,s){if(!u)return!1;const n=u.type;return n==="TSRestType"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ci(u,s){if(!u)return!1;const n=u.type;return n==="TSNamedTupleMember"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function fi(u,s){if(!u)return!1;const n=u.type;return n==="TSUnionType"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function pi(u,s){if(!u)return!1;const n=u.type;return n==="TSIntersectionType"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function hi(u,s){if(!u)return!1;const n=u.type;return n==="TSConditionalType"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function di(u,s){if(!u)return!1;const n=u.type;return n==="TSInferType"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function mi(u,s){if(!u)return!1;const n=u.type;return n==="TSParenthesizedType"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function yi(u,s){if(!u)return!1;const n=u.type;return n==="TSTypeOperator"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function bi(u,s){if(!u)return!1;const n=u.type;return n==="TSIndexedAccessType"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ti(u,s){if(!u)return!1;const n=u.type;return n==="TSMappedType"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function gi(u,s){if(!u)return!1;const n=u.type;return n==="TSLiteralType"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Si(u,s){if(!u)return!1;const n=u.type;return n==="TSExpressionWithTypeArguments"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ei(u,s){if(!u)return!1;const n=u.type;return n==="TSInterfaceDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function vi(u,s){if(!u)return!1;const n=u.type;return n==="TSInterfaceBody"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Pi(u,s){if(!u)return!1;const n=u.type;return n==="TSTypeAliasDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ai(u,s){if(!u)return!1;const n=u.type;return n==="TSAsExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function xi(u,s){if(!u)return!1;const n=u.type;return n==="TSTypeAssertion"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function _i(u,s){if(!u)return!1;const n=u.type;return n==="TSEnumDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function wi(u,s){if(!u)return!1;const n=u.type;return n==="TSEnumMember"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ii(u,s){if(!u)return!1;const n=u.type;return n==="TSModuleDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ci(u,s){if(!u)return!1;const n=u.type;return n==="TSModuleBlock"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Oi(u,s){if(!u)return!1;const n=u.type;return n==="TSImportType"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ni(u,s){if(!u)return!1;const n=u.type;return n==="TSImportEqualsDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ki(u,s){if(!u)return!1;const n=u.type;return n==="TSExternalModuleReference"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Di(u,s){if(!u)return!1;const n=u.type;return n==="TSNonNullExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Li(u,s){if(!u)return!1;const n=u.type;return n==="TSExportAssignment"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Mi(u,s){if(!u)return!1;const n=u.type;return n==="TSNamespaceExportDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Bi(u,s){if(!u)return!1;const n=u.type;return n==="TSTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ri(u,s){if(!u)return!1;const n=u.type;return n==="TSTypeParameterInstantiation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Fi(u,s){if(!u)return!1;const n=u.type;return n==="TSTypeParameterDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ji(u,s){if(!u)return!1;const n=u.type;return n==="TSTypeParameter"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Vi(u,s){if(!u)return!1;const n=u.type;return n==="ArrayExpression"||n==="AssignmentExpression"||n==="BinaryExpression"||n==="CallExpression"||n==="ConditionalExpression"||n==="FunctionExpression"||n==="Identifier"||n==="StringLiteral"||n==="NumericLiteral"||n==="NullLiteral"||n==="BooleanLiteral"||n==="RegExpLiteral"||n==="LogicalExpression"||n==="MemberExpression"||n==="NewExpression"||n==="ObjectExpression"||n==="SequenceExpression"||n==="ParenthesizedExpression"||n==="ThisExpression"||n==="UnaryExpression"||n==="UpdateExpression"||n==="ArrowFunctionExpression"||n==="ClassExpression"||n==="MetaProperty"||n==="Super"||n==="TaggedTemplateExpression"||n==="TemplateLiteral"||n==="YieldExpression"||n==="AwaitExpression"||n==="Import"||n==="BigIntLiteral"||n==="OptionalMemberExpression"||n==="OptionalCallExpression"||n==="TypeCastExpression"||n==="JSXElement"||n==="JSXFragment"||n==="BindExpression"||n==="PipelinePrimaryTopicReference"||n==="DoExpression"||n==="RecordExpression"||n==="TupleExpression"||n==="DecimalLiteral"||n==="TSAsExpression"||n==="TSTypeAssertion"||n==="TSNonNullExpression"||n==="Placeholder"&&(u.expectedNode==="Expression"||u.expectedNode==="Identifier"||u.expectedNode==="StringLiteral")?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ui(u,s){if(!u)return!1;const n=u.type;return n==="BinaryExpression"||n==="LogicalExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ki(u,s){if(!u)return!1;const n=u.type;return n==="BlockStatement"||n==="CatchClause"||n==="DoWhileStatement"||n==="ForInStatement"||n==="ForStatement"||n==="FunctionDeclaration"||n==="FunctionExpression"||n==="Program"||n==="ObjectMethod"||n==="SwitchStatement"||n==="WhileStatement"||n==="ArrowFunctionExpression"||n==="ClassExpression"||n==="ClassDeclaration"||n==="ForOfStatement"||n==="ClassMethod"||n==="ClassPrivateMethod"||n==="StaticBlock"||n==="TSModuleBlock"||n==="Placeholder"&&u.expectedNode==="BlockStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Yi(u,s){if(!u)return!1;const n=u.type;return n==="BlockStatement"||n==="CatchClause"||n==="DoWhileStatement"||n==="ForInStatement"||n==="ForStatement"||n==="FunctionDeclaration"||n==="FunctionExpression"||n==="Program"||n==="ObjectMethod"||n==="SwitchStatement"||n==="WhileStatement"||n==="ArrowFunctionExpression"||n==="ForOfStatement"||n==="ClassMethod"||n==="ClassPrivateMethod"||n==="StaticBlock"||n==="TSModuleBlock"||n==="Placeholder"&&u.expectedNode==="BlockStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function V(u,s){if(!u)return!1;const n=u.type;return n==="BlockStatement"||n==="Program"||n==="TSModuleBlock"||n==="Placeholder"&&u.expectedNode==="BlockStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function te(u,s){if(!u)return!1;const n=u.type;return n==="BlockStatement"||n==="BreakStatement"||n==="ContinueStatement"||n==="DebuggerStatement"||n==="DoWhileStatement"||n==="EmptyStatement"||n==="ExpressionStatement"||n==="ForInStatement"||n==="ForStatement"||n==="FunctionDeclaration"||n==="IfStatement"||n==="LabeledStatement"||n==="ReturnStatement"||n==="SwitchStatement"||n==="ThrowStatement"||n==="TryStatement"||n==="VariableDeclaration"||n==="WhileStatement"||n==="WithStatement"||n==="ClassDeclaration"||n==="ExportAllDeclaration"||n==="ExportDefaultDeclaration"||n==="ExportNamedDeclaration"||n==="ForOfStatement"||n==="ImportDeclaration"||n==="DeclareClass"||n==="DeclareFunction"||n==="DeclareInterface"||n==="DeclareModule"||n==="DeclareModuleExports"||n==="DeclareTypeAlias"||n==="DeclareOpaqueType"||n==="DeclareVariable"||n==="DeclareExportDeclaration"||n==="DeclareExportAllDeclaration"||n==="InterfaceDeclaration"||n==="OpaqueType"||n==="TypeAlias"||n==="EnumDeclaration"||n==="TSDeclareFunction"||n==="TSInterfaceDeclaration"||n==="TSTypeAliasDeclaration"||n==="TSEnumDeclaration"||n==="TSModuleDeclaration"||n==="TSImportEqualsDeclaration"||n==="TSExportAssignment"||n==="TSNamespaceExportDeclaration"||n==="Placeholder"&&(u.expectedNode==="Statement"||u.expectedNode==="Declaration"||u.expectedNode==="BlockStatement")?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ye(u,s){if(!u)return!1;const n=u.type;return n==="BreakStatement"||n==="ContinueStatement"||n==="ReturnStatement"||n==="ThrowStatement"||n==="YieldExpression"||n==="AwaitExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Le(u,s){if(!u)return!1;const n=u.type;return n==="BreakStatement"||n==="ContinueStatement"||n==="ReturnStatement"||n==="ThrowStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function wt(u,s){if(!u)return!1;const n=u.type;return n==="ConditionalExpression"||n==="IfStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Yr(u,s){if(!u)return!1;const n=u.type;return n==="DoWhileStatement"||n==="ForInStatement"||n==="ForStatement"||n==="WhileStatement"||n==="ForOfStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Xi(u,s){if(!u)return!1;const n=u.type;return n==="DoWhileStatement"||n==="WhileStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Wi(u,s){if(!u)return!1;const n=u.type;return n==="ExpressionStatement"||n==="ParenthesizedExpression"||n==="TypeCastExpression"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Ji(u,s){if(!u)return!1;const n=u.type;return n==="ForInStatement"||n==="ForStatement"||n==="ForOfStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function qi(u,s){if(!u)return!1;const n=u.type;return n==="ForInStatement"||n==="ForOfStatement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Hi(u,s){if(!u)return!1;const n=u.type;return n==="FunctionDeclaration"||n==="FunctionExpression"||n==="ObjectMethod"||n==="ArrowFunctionExpression"||n==="ClassMethod"||n==="ClassPrivateMethod"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Gi(u,s){if(!u)return!1;const n=u.type;return n==="FunctionDeclaration"||n==="FunctionExpression"||n==="ObjectMethod"||n==="ArrowFunctionExpression"||n==="ClassMethod"||n==="ClassPrivateMethod"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function zi(u,s){if(!u)return!1;const n=u.type;return n==="FunctionDeclaration"||n==="FunctionExpression"||n==="StringLiteral"||n==="NumericLiteral"||n==="NullLiteral"||n==="BooleanLiteral"||n==="RegExpLiteral"||n==="ArrowFunctionExpression"||n==="BigIntLiteral"||n==="DecimalLiteral"||n==="Placeholder"&&u.expectedNode==="StringLiteral"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function $i(u,s){if(!u)return!1;const n=u.type;return n==="FunctionDeclaration"||n==="VariableDeclaration"||n==="ClassDeclaration"||n==="ExportAllDeclaration"||n==="ExportDefaultDeclaration"||n==="ExportNamedDeclaration"||n==="ImportDeclaration"||n==="DeclareClass"||n==="DeclareFunction"||n==="DeclareInterface"||n==="DeclareModule"||n==="DeclareModuleExports"||n==="DeclareTypeAlias"||n==="DeclareOpaqueType"||n==="DeclareVariable"||n==="DeclareExportDeclaration"||n==="DeclareExportAllDeclaration"||n==="InterfaceDeclaration"||n==="OpaqueType"||n==="TypeAlias"||n==="EnumDeclaration"||n==="TSDeclareFunction"||n==="TSInterfaceDeclaration"||n==="TSTypeAliasDeclaration"||n==="TSEnumDeclaration"||n==="TSModuleDeclaration"||n==="Placeholder"&&u.expectedNode==="Declaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Qi(u,s){if(!u)return!1;const n=u.type;return n==="Identifier"||n==="RestElement"||n==="AssignmentPattern"||n==="ArrayPattern"||n==="ObjectPattern"||n==="Placeholder"&&(u.expectedNode==="Pattern"||u.expectedNode==="Identifier")?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Zi(u,s){if(!u)return!1;const n=u.type;return n==="Identifier"||n==="MemberExpression"||n==="RestElement"||n==="AssignmentPattern"||n==="ArrayPattern"||n==="ObjectPattern"||n==="TSParameterProperty"||n==="Placeholder"&&(u.expectedNode==="Pattern"||u.expectedNode==="Identifier")?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function en(u,s){if(!u)return!1;const n=u.type;return n==="Identifier"||n==="TSQualifiedName"||n==="Placeholder"&&u.expectedNode==="Identifier"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function tn(u,s){if(!u)return!1;const n=u.type;return n==="StringLiteral"||n==="NumericLiteral"||n==="NullLiteral"||n==="BooleanLiteral"||n==="RegExpLiteral"||n==="TemplateLiteral"||n==="BigIntLiteral"||n==="DecimalLiteral"||n==="Placeholder"&&u.expectedNode==="StringLiteral"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function rn(u,s){if(!u)return!1;const n=u.type;return n==="StringLiteral"||n==="NumericLiteral"||n==="NullLiteral"||n==="BooleanLiteral"||n==="BigIntLiteral"||n==="JSXAttribute"||n==="JSXClosingElement"||n==="JSXElement"||n==="JSXExpressionContainer"||n==="JSXSpreadChild"||n==="JSXOpeningElement"||n==="JSXText"||n==="JSXFragment"||n==="JSXOpeningFragment"||n==="JSXClosingFragment"||n==="DecimalLiteral"||n==="Placeholder"&&u.expectedNode==="StringLiteral"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function nn(u,s){if(!u)return!1;const n=u.type;return n==="ObjectMethod"||n==="ObjectProperty"||n==="ObjectTypeInternalSlot"||n==="ObjectTypeCallProperty"||n==="ObjectTypeIndexer"||n==="ObjectTypeProperty"||n==="ObjectTypeSpreadProperty"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function sn(u,s){if(!u)return!1;const n=u.type;return n==="ObjectMethod"||n==="ClassMethod"||n==="ClassPrivateMethod"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function an(u,s){if(!u)return!1;const n=u.type;return n==="ObjectMethod"||n==="ObjectProperty"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function on(u,s){if(!u)return!1;const n=u.type;return n==="ObjectProperty"||n==="ClassProperty"||n==="ClassPrivateProperty"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function un(u,s){if(!u)return!1;const n=u.type;return n==="UnaryExpression"||n==="SpreadElement"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function ln(u,s){if(!u)return!1;const n=u.type;return n==="AssignmentPattern"||n==="ArrayPattern"||n==="ObjectPattern"||n==="Placeholder"&&u.expectedNode==="Pattern"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function cn(u,s){if(!u)return!1;const n=u.type;return n==="ClassExpression"||n==="ClassDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function fn(u,s){if(!u)return!1;const n=u.type;return n==="ExportAllDeclaration"||n==="ExportDefaultDeclaration"||n==="ExportNamedDeclaration"||n==="ImportDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function pn(u,s){if(!u)return!1;const n=u.type;return n==="ExportAllDeclaration"||n==="ExportDefaultDeclaration"||n==="ExportNamedDeclaration"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function hn(u,s){if(!u)return!1;const n=u.type;return n==="ExportSpecifier"||n==="ImportDefaultSpecifier"||n==="ImportNamespaceSpecifier"||n==="ImportSpecifier"||n==="ExportNamespaceSpecifier"||n==="ExportDefaultSpecifier"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function dn(u,s){if(!u)return!1;const n=u.type;return n==="AnyTypeAnnotation"||n==="ArrayTypeAnnotation"||n==="BooleanTypeAnnotation"||n==="BooleanLiteralTypeAnnotation"||n==="NullLiteralTypeAnnotation"||n==="ClassImplements"||n==="DeclareClass"||n==="DeclareFunction"||n==="DeclareInterface"||n==="DeclareModule"||n==="DeclareModuleExports"||n==="DeclareTypeAlias"||n==="DeclareOpaqueType"||n==="DeclareVariable"||n==="DeclareExportDeclaration"||n==="DeclareExportAllDeclaration"||n==="DeclaredPredicate"||n==="ExistsTypeAnnotation"||n==="FunctionTypeAnnotation"||n==="FunctionTypeParam"||n==="GenericTypeAnnotation"||n==="InferredPredicate"||n==="InterfaceExtends"||n==="InterfaceDeclaration"||n==="InterfaceTypeAnnotation"||n==="IntersectionTypeAnnotation"||n==="MixedTypeAnnotation"||n==="EmptyTypeAnnotation"||n==="NullableTypeAnnotation"||n==="NumberLiteralTypeAnnotation"||n==="NumberTypeAnnotation"||n==="ObjectTypeAnnotation"||n==="ObjectTypeInternalSlot"||n==="ObjectTypeCallProperty"||n==="ObjectTypeIndexer"||n==="ObjectTypeProperty"||n==="ObjectTypeSpreadProperty"||n==="OpaqueType"||n==="QualifiedTypeIdentifier"||n==="StringLiteralTypeAnnotation"||n==="StringTypeAnnotation"||n==="SymbolTypeAnnotation"||n==="ThisTypeAnnotation"||n==="TupleTypeAnnotation"||n==="TypeofTypeAnnotation"||n==="TypeAlias"||n==="TypeAnnotation"||n==="TypeCastExpression"||n==="TypeParameter"||n==="TypeParameterDeclaration"||n==="TypeParameterInstantiation"||n==="UnionTypeAnnotation"||n==="Variance"||n==="VoidTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function mn(u,s){if(!u)return!1;const n=u.type;return n==="AnyTypeAnnotation"||n==="ArrayTypeAnnotation"||n==="BooleanTypeAnnotation"||n==="BooleanLiteralTypeAnnotation"||n==="NullLiteralTypeAnnotation"||n==="ExistsTypeAnnotation"||n==="FunctionTypeAnnotation"||n==="GenericTypeAnnotation"||n==="InterfaceTypeAnnotation"||n==="IntersectionTypeAnnotation"||n==="MixedTypeAnnotation"||n==="EmptyTypeAnnotation"||n==="NullableTypeAnnotation"||n==="NumberLiteralTypeAnnotation"||n==="NumberTypeAnnotation"||n==="ObjectTypeAnnotation"||n==="StringLiteralTypeAnnotation"||n==="StringTypeAnnotation"||n==="SymbolTypeAnnotation"||n==="ThisTypeAnnotation"||n==="TupleTypeAnnotation"||n==="TypeofTypeAnnotation"||n==="UnionTypeAnnotation"||n==="VoidTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function yn(u,s){if(!u)return!1;const n=u.type;return n==="AnyTypeAnnotation"||n==="BooleanTypeAnnotation"||n==="NullLiteralTypeAnnotation"||n==="MixedTypeAnnotation"||n==="EmptyTypeAnnotation"||n==="NumberTypeAnnotation"||n==="StringTypeAnnotation"||n==="SymbolTypeAnnotation"||n==="ThisTypeAnnotation"||n==="VoidTypeAnnotation"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function bn(u,s){if(!u)return!1;const n=u.type;return n==="DeclareClass"||n==="DeclareFunction"||n==="DeclareInterface"||n==="DeclareModule"||n==="DeclareModuleExports"||n==="DeclareTypeAlias"||n==="DeclareOpaqueType"||n==="DeclareVariable"||n==="DeclareExportDeclaration"||n==="DeclareExportAllDeclaration"||n==="InterfaceDeclaration"||n==="OpaqueType"||n==="TypeAlias"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Tn(u,s){if(!u)return!1;const n=u.type;return n==="DeclaredPredicate"||n==="InferredPredicate"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function gn(u,s){if(!u)return!1;const n=u.type;return n==="EnumBooleanBody"||n==="EnumNumberBody"||n==="EnumStringBody"||n==="EnumSymbolBody"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Sn(u,s){if(!u)return!1;const n=u.type;return n==="EnumBooleanMember"||n==="EnumNumberMember"||n==="EnumStringMember"||n==="EnumDefaultedMember"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function En(u,s){if(!u)return!1;const n=u.type;return n==="JSXAttribute"||n==="JSXClosingElement"||n==="JSXElement"||n==="JSXEmptyExpression"||n==="JSXExpressionContainer"||n==="JSXSpreadChild"||n==="JSXIdentifier"||n==="JSXMemberExpression"||n==="JSXNamespacedName"||n==="JSXOpeningElement"||n==="JSXSpreadAttribute"||n==="JSXText"||n==="JSXFragment"||n==="JSXOpeningFragment"||n==="JSXClosingFragment"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function vn(u,s){if(!u)return!1;const n=u.type;return n==="ClassPrivateProperty"||n==="ClassPrivateMethod"||n==="PrivateName"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Pn(u,s){if(!u)return!1;const n=u.type;return n==="TSCallSignatureDeclaration"||n==="TSConstructSignatureDeclaration"||n==="TSPropertySignature"||n==="TSMethodSignature"||n==="TSIndexSignature"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function An(u,s){if(!u)return!1;const n=u.type;return n==="TSAnyKeyword"||n==="TSBooleanKeyword"||n==="TSBigIntKeyword"||n==="TSIntrinsicKeyword"||n==="TSNeverKeyword"||n==="TSNullKeyword"||n==="TSNumberKeyword"||n==="TSObjectKeyword"||n==="TSStringKeyword"||n==="TSSymbolKeyword"||n==="TSUndefinedKeyword"||n==="TSUnknownKeyword"||n==="TSVoidKeyword"||n==="TSThisType"||n==="TSFunctionType"||n==="TSConstructorType"||n==="TSTypeReference"||n==="TSTypePredicate"||n==="TSTypeQuery"||n==="TSTypeLiteral"||n==="TSArrayType"||n==="TSTupleType"||n==="TSOptionalType"||n==="TSRestType"||n==="TSUnionType"||n==="TSIntersectionType"||n==="TSConditionalType"||n==="TSInferType"||n==="TSParenthesizedType"||n==="TSTypeOperator"||n==="TSIndexedAccessType"||n==="TSMappedType"||n==="TSLiteralType"||n==="TSExpressionWithTypeArguments"||n==="TSImportType"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function xn(u,s){if(!u)return!1;const n=u.type;return n==="TSAnyKeyword"||n==="TSBooleanKeyword"||n==="TSBigIntKeyword"||n==="TSIntrinsicKeyword"||n==="TSNeverKeyword"||n==="TSNullKeyword"||n==="TSNumberKeyword"||n==="TSObjectKeyword"||n==="TSStringKeyword"||n==="TSSymbolKeyword"||n==="TSUndefinedKeyword"||n==="TSUnknownKeyword"||n==="TSVoidKeyword"||n==="TSThisType"||n==="TSLiteralType"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function _n(u,s){if(console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),!u)return!1;const n=u.type;return n==="NumberLiteral"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function wn(u,s){if(console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),!u)return!1;const n=u.type;return n==="RegexLiteral"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function In(u,s){if(console.trace("The node type RestProperty has been renamed to RestElement"),!u)return!1;const n=u.type;return n==="RestProperty"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}function Cn(u,s){if(console.trace("The node type SpreadProperty has been renamed to SpreadElement"),!u)return!1;const n=u.type;return n==="SpreadProperty"?typeof s=="undefined"?!0:(0,r.default)(u,s):!1}},{"../../utils/shallowEqual":64}],67:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var r=g(T("../utils/shallowEqual")),m=g(T("./isType")),f=g(T("./isPlaceholderType")),b=T("../definitions");function g(c){return c&&c.__esModule?c:{default:c}}function p(c,d,E){if(!d)return!1;const x=(0,m.default)(d.type,c);return x?typeof E=="undefined"?!0:(0,r.default)(d,E):!E&&d.type==="Placeholder"&&c in b.FLIPPED_ALIAS_KEYS?(0,f.default)(d.expectedNode,c):!1}},{"../definitions":44,"../utils/shallowEqual":64,"./isPlaceholderType":74,"./isType":78}],68:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=m(T("../retrievers/getBindingIdentifiers"));function m(b){return b&&b.__esModule?b:{default:b}}function f(b,g,p){if(p&&b.type==="Identifier"&&g.type==="ObjectProperty"&&p.type==="ObjectExpression")return!1;const c=r.default.keys[g.type];if(c)for(let d=0;d<c.length;d++){const E=c[d],x=g[E];if(Array.isArray(x)){if(x.indexOf(b)>=0)return!0}else if(x===b)return!0}return!1}},{"../retrievers/getBindingIdentifiers":58}],69:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=b;var r=T("./generated"),m=f(T("./isLet"));function f(g){return g&&g.__esModule?g:{default:g}}function b(g){return(0,r.isFunctionDeclaration)(g)||(0,r.isClassDeclaration)(g)||(0,m.default)(g)}},{"./generated":66,"./isLet":71}],70:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=b;var r=f(T("./isType")),m=T("./generated");function f(g){return g&&g.__esModule?g:{default:g}}function b(g){return(0,r.default)(g.type,"Immutable")?!0:(0,m.isIdentifier)(g)?g.name==="undefined":!1}},{"./generated":66,"./isType":78}],71:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=T("./generated"),m=T("../constants");function f(b){return(0,r.isVariableDeclaration)(b)&&(b.kind!=="var"||b[m.BLOCK_SCOPED_SYMBOL])}},{"../constants":29,"./generated":66}],72:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=T("../definitions");function m(f){return!!(f&&r.VISITOR_KEYS[f.type])}},{"../definitions":44}],73:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=T("../definitions");function m(f,b){if(typeof f!="object"||typeof b!="object"||f==null||b==null)return f===b;if(f.type!==b.type)return!1;const g=Object.keys(r.NODE_FIELDS[f.type]||f.type),p=r.VISITOR_KEYS[f.type];for(const c of g){if(typeof f[c]!==typeof b[c])return!1;if(f[c]==null&&b[c]==null)continue;if(f[c]==null||b[c]==null)return!1;if(Array.isArray(f[c])){if(!Array.isArray(b[c]))return!1;if(f[c].length!==b[c].length)return!1;for(let d=0;d<f[c].length;d++)if(!m(f[c][d],b[c][d]))return!1;continue}if(typeof f[c]=="object"&&!(p==null?void 0:p.includes(c))){for(const d of Object.keys(f[c]))if(f[c][d]!==b[c][d])return!1;continue}if(!m(f[c],b[c]))return!1}return!0}},{"../definitions":44}],74:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=T("../definitions");function m(f,b){if(f===b)return!0;const g=r.PLACEHOLDERS_ALIAS[f];if(g){for(const p of g)if(b===p)return!0}return!1}},{"../definitions":44}],75:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(m,f,b){switch(f.type){case"MemberExpression":case"JSXMemberExpression":case"OptionalMemberExpression":return f.property===m?!!f.computed:f.object===m;case"VariableDeclarator":return f.init===m;case"ArrowFunctionExpression":return f.body===m;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(f.params.includes(m))return!1;case"ObjectProperty":case"ClassProperty":case"ClassPrivateProperty":return f.key===m?!!f.computed:f.value===m?!b||b.type!=="ObjectPattern":!0;case"ClassDeclaration":case"ClassExpression":return f.superClass===m;case"AssignmentExpression":return f.right===m;case"AssignmentPattern":return f.right===m;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return(b==null?void 0:b.source)?!1:f.local===m;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return f.key!==m;case"TSEnumMember":return f.id!==m;case"TSPropertySignature":return f.key===m?!!f.computed:!0}return!0}},{}],76:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=T("./generated");function m(f,b){return(0,r.isBlockStatement)(f)&&((0,r.isFunction)(b)||(0,r.isCatchClause)(b))?!1:(0,r.isPattern)(f)&&((0,r.isFunction)(b)||(0,r.isCatchClause)(b))?!0:(0,r.isScopable)(f)}},{"./generated":66}],77:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=T("./generated");function m(f){return(0,r.isImportDefaultSpecifier)(f)||(0,r.isIdentifier)(f.imported||f.exported,{name:"default"})}},{"./generated":66}],78:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=T("../definitions");function m(f,b){if(f===b)return!0;if(r.ALIAS_KEYS[b])return!1;const g=r.FLIPPED_ALIAS_KEYS[b];if(g){if(g[0]===f)return!0;for(const p of g)if(f===p)return!0}return!1}},{"../definitions":44}],79:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=b;var r=m(T("./isValidIdentifier"));function m(g){return g&&g.__esModule?g:{default:g}}const f=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"]);function b(g){return(0,r.default)(g)&&!f.has(g)}},{"./isValidIdentifier":80}],80:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=T("@babel/helper-validator-identifier");function m(f,b=!0){return typeof f!="string"||b&&((0,r.isKeyword)(f)||(0,r.isStrictReservedWord)(f,!0))?!1:(0,r.isIdentifierName)(f)}},{"@babel/helper-validator-identifier":3}],81:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=T("./generated"),m=T("../constants");function f(b){return(0,r.isVariableDeclaration)(b,{kind:"var"})&&!b[m.BLOCK_SCOPED_SYMBOL]}},{"../constants":29,"./generated":66}],82:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=T("./generated");function m(f,b,g){if(!(0,r.isMemberExpression)(f))return!1;const p=Array.isArray(b)?b:b.split("."),c=[];let d;for(d=f;(0,r.isMemberExpression)(d);d=d.object)c.push(d.property);if(c.push(d),c.length<p.length)return!1;if(!g&&c.length>p.length)return!1;for(let E=0,x=c.length-1;E<p.length;E++,x--){const a=c[x];let O;if((0,r.isIdentifier)(a))O=a.name;else if((0,r.isStringLiteral)(a))O=a.value;else return!1;if(p[E]!==O)return!1}return!0}},{"./generated":66}],83:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(m){return!!m&&/^[a-z]/.test(m)}},{}],84:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(T("../buildMatchMemberExpression"));function m(g){return g&&g.__esModule?g:{default:g}}const f=(0,r.default)("React.Component");var b=f;t.default=b},{"../buildMatchMemberExpression":65}],85:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=m,t.validateField=f,t.validateChild=b;var r=T("../definitions");function m(g,p,c){if(!g)return;const d=r.NODE_FIELDS[g.type];if(!d)return;const E=d[p];f(g,p,c,E),b(g,p,c)}function f(g,p,c,d){if(!(d==null?void 0:d.validate))return;if(d.optional&&c==null)return;d.validate(g,p,c)}function b(g,p,c){if(c==null)return;const d=r.NODE_PARENT_VALIDATIONS[c.type];if(!d)return;d(g,p,c)}},{"../definitions":44}],86:[function(T,C,t){(function(r,m){typeof t=="object"&&typeof C!="undefined"?m(t):typeof define=="function"&&define.amd?define(["exports"],m):(r=r||self,m(r.acorn={}))})(this,function(r){"use strict";var m={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},f="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",b={5:f,"5module":f+" export import",6:f+" const class extends export import super"},g=/^in(stanceof)?$/,p="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",c="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF\u1AC0\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",d=new RegExp("["+p+"]"),E=new RegExp("["+p+c+"]");p=c=null;var x=[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],a=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,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 O(o,y){for(var I=65536,N=0;N<y.length;N+=2){if(I+=y[N],I>o)return!1;if(I+=y[N+1],I>=o)return!0}}function _(o,y){return o<65?o===36:o<91?!0:o<97?o===95:o<123?!0:o<=65535?o>=170&&d.test(String.fromCharCode(o)):y===!1?!1:O(o,x)}function L(o,y){return o<48?o===36:o<58?!0:o<65?!1:o<91?!0:o<97?o===95:o<123?!0:o<=65535?o>=170&&E.test(String.fromCharCode(o)):y===!1?!1:O(o,x)||O(o,a)}var B=function(y,I){I===void 0&&(I={}),this.label=y,this.keyword=I.keyword,this.beforeExpr=!!I.beforeExpr,this.startsExpr=!!I.startsExpr,this.isLoop=!!I.isLoop,this.isAssign=!!I.isAssign,this.prefix=!!I.prefix,this.postfix=!!I.postfix,this.binop=I.binop||null,this.updateContext=null};function k(o,y){return new B(o,{beforeExpr:!0,binop:y})}var P={beforeExpr:!0},A={startsExpr:!0},R={};function j(o,y){return y===void 0&&(y={}),y.keyword=o,R[o]=new B(o,y)}var v={num:new B("num",A),regexp:new B("regexp",A),string:new B("string",A),name:new B("name",A),eof:new B("eof"),bracketL:new B("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new B("]"),braceL:new B("{",{beforeExpr:!0,startsExpr:!0}),braceR:new B("}"),parenL:new B("(",{beforeExpr:!0,startsExpr:!0}),parenR:new B(")"),comma:new B(",",P),semi:new B(";",P),colon:new B(":",P),dot:new B("."),question:new B("?",P),questionDot:new B("?."),arrow:new B("=>",P),template:new B("template"),invalidTemplate:new B("invalidTemplate"),ellipsis:new B("...",P),backQuote:new B("`",A),dollarBraceL:new B("${",{beforeExpr:!0,startsExpr:!0}),eq:new B("=",{beforeExpr:!0,isAssign:!0}),assign:new B("_=",{beforeExpr:!0,isAssign:!0}),incDec:new B("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new B("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:k("||",1),logicalAND:k("&&",2),bitwiseOR:k("|",3),bitwiseXOR:k("^",4),bitwiseAND:k("&",5),equality:k("==/!=/===/!==",6),relational:k("</>/<=/>=",7),bitShift:k("<</>>/>>>",8),plusMin:new B("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:k("%",10),star:k("*",10),slash:k("/",10),starstar:new B("**",{beforeExpr:!0}),coalesce:k("??",1),_break:j("break"),_case:j("case",P),_catch:j("catch"),_continue:j("continue"),_debugger:j("debugger"),_default:j("default",P),_do:j("do",{isLoop:!0,beforeExpr:!0}),_else:j("else",P),_finally:j("finally"),_for:j("for",{isLoop:!0}),_function:j("function",A),_if:j("if"),_return:j("return",P),_switch:j("switch"),_throw:j("throw",P),_try:j("try"),_var:j("var"),_const:j("const"),_while:j("while",{isLoop:!0}),_with:j("with"),_new:j("new",{beforeExpr:!0,startsExpr:!0}),_this:j("this",A),_super:j("super",A),_class:j("class",A),_extends:j("extends",P),_export:j("export"),_import:j("import",A),_null:j("null",A),_true:j("true",A),_false:j("false",A),_in:j("in",{beforeExpr:!0,binop:7}),_instanceof:j("instanceof",{beforeExpr:!0,binop:7}),_typeof:j("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:j("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:j("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},$=/\r\n?|\n|\u2028|\u2029/,D=new RegExp($.source,"g");function oe(o,y){return o===10||o===13||!y&&(o===8232||o===8233)}var z=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Q=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,re=Object.prototype,K=re.hasOwnProperty,H=re.toString;function ie(o,y){return K.call(o,y)}var pe=Array.isArray||function(o){return H.call(o)==="[object Array]"};function Te(o){return new RegExp("^(?:"+o.replace(/ /g,"|")+")$")}var ae=function(y,I){this.line=y,this.column=I};ae.prototype.offset=function(y){return new ae(this.line,this.column+y)};var le=function(y,I,N){this.start=I,this.end=N,y.sourceFile!==null&&(this.source=y.sourceFile)};function X(o,y){for(var I=1,N=0;;){D.lastIndex=N;var F=D.exec(o);if(F&&F.index<y)++I,N=F.index+F[0].length;else return new ae(I,y-N)}}var J={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function Z(o){var y={};for(var I in J)y[I]=o&&ie(o,I)?o[I]:J[I];if(y.ecmaVersion>=2015&&(y.ecmaVersion-=2009),y.allowReserved==null&&(y.allowReserved=y.ecmaVersion<5),pe(y.onToken)){var N=y.onToken;y.onToken=function(F){return N.push(F)}}return pe(y.onComment)&&(y.onComment=he(y,y.onComment)),y}function he(o,y){return function(I,N,F,W,G,ue){var fe={type:I?"Block":"Line",value:N,start:F,end:W};o.locations&&(fe.loc=new le(this,G,ue)),o.ranges&&(fe.range=[F,W]),y.push(fe)}}var Pe=1,me=2,ge=Pe|me,Ae=4,Ne=8,Ue=16,Ye=32,at=64,ot=128;function $e(o,y){return me|(o?Ae:0)|(y?Ne:0)}var rt=0,Qe=1,He=2,Oe=3,tt=4,Ie=5,we=function(y,I,N){this.options=y=Z(y),this.sourceFile=y.sourceFile,this.keywords=Te(b[y.ecmaVersion>=6?6:y.sourceType==="module"?"5module":5]);var F="";if(y.allowReserved!==!0){for(var W=y.ecmaVersion;!(F=m[W]);W--);y.sourceType==="module"&&(F+=" await")}this.reservedWords=Te(F);var G=(F?F+" ":"")+m.strict;this.reservedWordsStrict=Te(G),this.reservedWordsStrictBind=Te(G+" "+m.strictBind),this.input=String(I),this.containsEsc=!1,N?(this.pos=N,this.lineStart=this.input.lastIndexOf(`
|
|
11
|
+
`,N-1)+1,this.curLine=this.input.slice(0,this.lineStart).split($).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=v.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=y.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},this.pos===0&&y.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Pe),this.regexpState=null},je={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};we.prototype.parse=function(){var y=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(y)},je.inFunction.get=function(){return(this.currentVarScope().flags&me)>0},je.inGenerator.get=function(){return(this.currentVarScope().flags&Ne)>0},je.inAsync.get=function(){return(this.currentVarScope().flags&Ae)>0},je.allowSuper.get=function(){return(this.currentThisScope().flags&at)>0},je.allowDirectSuper.get=function(){return(this.currentThisScope().flags&ot)>0},je.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},we.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&me)>0},we.extend=function(){for(var y=[],I=arguments.length;I--;)y[I]=arguments[I];for(var N=this,F=0;F<y.length;F++)N=y[F](N);return N},we.parse=function(y,I){return new this(I,y).parse()},we.parseExpressionAt=function(y,I,N){var F=new this(N,y,I);return F.nextToken(),F.parseExpression()},we.tokenizer=function(y,I){return new this(I,y)},Object.defineProperties(we.prototype,je);var Be=we.prototype,Je=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;Be.strictDirective=function(o){for(;;){Q.lastIndex=o,o+=Q.exec(this.input)[0].length;var y=Je.exec(this.input.slice(o));if(!y)return!1;if((y[1]||y[2])==="use strict"){Q.lastIndex=o+y[0].length;var I=Q.exec(this.input),N=I.index+I[0].length,F=this.input.charAt(N);return F===";"||F==="}"||$.test(I[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(F)||F==="!"&&this.input.charAt(N+1)==="=")}o+=y[0].length,Q.lastIndex=o,o+=Q.exec(this.input)[0].length,this.input[o]===";"&&o++}},Be.eat=function(o){return this.type===o?(this.next(),!0):!1},Be.isContextual=function(o){return this.type===v.name&&this.value===o&&!this.containsEsc},Be.eatContextual=function(o){return this.isContextual(o)?(this.next(),!0):!1},Be.expectContextual=function(o){this.eatContextual(o)||this.unexpected()},Be.canInsertSemicolon=function(){return this.type===v.eof||this.type===v.braceR||$.test(this.input.slice(this.lastTokEnd,this.start))},Be.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Be.semicolon=function(){!this.eat(v.semi)&&!this.insertSemicolon()&&this.unexpected()},Be.afterTrailingComma=function(o,y){if(this.type===o)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),y||this.next(),!0},Be.expect=function(o){this.eat(o)||this.unexpected()},Be.unexpected=function(o){this.raise(o??this.start,"Unexpected token")};function Re(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}Be.checkPatternErrors=function(o,y){if(!o)return;o.trailingComma>-1&&this.raiseRecoverable(o.trailingComma,"Comma is not permitted after the rest element");var I=y?o.parenthesizedAssign:o.parenthesizedBind;I>-1&&this.raiseRecoverable(I,"Parenthesized pattern")},Be.checkExpressionErrors=function(o,y){if(!o)return!1;var I=o.shorthandAssign,N=o.doubleProto;if(!y)return I>=0||N>=0;I>=0&&this.raise(I,"Shorthand property assignments are valid only in destructuring patterns"),N>=0&&this.raiseRecoverable(N,"Redefinition of __proto__ property")},Be.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Be.isSimpleAssignTarget=function(o){return o.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(o.expression):o.type==="Identifier"||o.type==="MemberExpression"};var de=we.prototype;de.parseTopLevel=function(o){var y={};for(o.body||(o.body=[]);this.type!==v.eof;){var I=this.parseStatement(null,!0,y);o.body.push(I)}if(this.inModule)for(var N=0,F=Object.keys(this.undefinedExports);N<F.length;N+=1){var W=F[N];this.raiseRecoverable(this.undefinedExports[W].start,"Export '"+W+"' is not defined")}return this.adaptDirectivePrologue(o.body),this.next(),o.sourceType=this.options.sourceType,this.finishNode(o,"Program")};var Ge={kind:"loop"},it={kind:"switch"};de.isLet=function(o){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Q.lastIndex=this.pos;var y=Q.exec(this.input),I=this.pos+y[0].length,N=this.input.charCodeAt(I);if(N===91)return!0;if(o)return!1;if(N===123)return!0;if(_(N,!0)){for(var F=I+1;L(this.input.charCodeAt(F),!0);)++F;var W=this.input.slice(I,F);if(!g.test(W))return!0}return!1},de.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Q.lastIndex=this.pos;var o=Q.exec(this.input),y=this.pos+o[0].length;return!$.test(this.input.slice(this.pos,y))&&this.input.slice(y,y+8)==="function"&&(y+8===this.input.length||!L(this.input.charAt(y+8)))},de.parseStatement=function(o,y,I){var N=this.type,F=this.startNode(),W;this.isLet(o)&&(N=v._var,W="let");switch(N){case v._break:case v._continue:return this.parseBreakContinueStatement(F,N.keyword);case v._debugger:return this.parseDebuggerStatement(F);case v._do:return this.parseDoStatement(F);case v._for:return this.parseForStatement(F);case v._function:return o&&(this.strict||o!=="if"&&o!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(F,!1,!o);case v._class:return o&&this.unexpected(),this.parseClass(F,!0);case v._if:return this.parseIfStatement(F);case v._return:return this.parseReturnStatement(F);case v._switch:return this.parseSwitchStatement(F);case v._throw:return this.parseThrowStatement(F);case v._try:return this.parseTryStatement(F);case v._const:case v._var:return W=W||this.value,o&&W!=="var"&&this.unexpected(),this.parseVarStatement(F,W);case v._while:return this.parseWhileStatement(F);case v._with:return this.parseWithStatement(F);case v.braceL:return this.parseBlock(!0,F);case v.semi:return this.parseEmptyStatement(F);case v._export:case v._import:if(this.options.ecmaVersion>10&&N===v._import){Q.lastIndex=this.pos;var G=Q.exec(this.input),ue=this.pos+G[0].length,fe=this.input.charCodeAt(ue);if(fe===40||fe===46)return this.parseExpressionStatement(F,this.parseExpression())}return this.options.allowImportExportEverywhere||(y||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),N===v._import?this.parseImport(F):this.parseExport(F,I);default:if(this.isAsyncFunction())return o&&this.unexpected(),this.next(),this.parseFunctionStatement(F,!0,!o);var xe=this.value,De=this.parseExpression();return N===v.name&&De.type==="Identifier"&&this.eat(v.colon)?this.parseLabeledStatement(F,xe,De,o):this.parseExpressionStatement(F,De)}},de.parseBreakContinueStatement=function(o,y){var I=y==="break";this.next(),this.eat(v.semi)||this.insertSemicolon()?o.label=null:this.type!==v.name?this.unexpected():(o.label=this.parseIdent(),this.semicolon());for(var N=0;N<this.labels.length;++N){var F=this.labels[N];if(o.label==null||F.name===o.label.name){if(F.kind!=null&&(I||F.kind==="loop"))break;if(o.label&&I)break}}return N===this.labels.length&&this.raise(o.start,"Unsyntactic "+y),this.finishNode(o,I?"BreakStatement":"ContinueStatement")},de.parseDebuggerStatement=function(o){return this.next(),this.semicolon(),this.finishNode(o,"DebuggerStatement")},de.parseDoStatement=function(o){return this.next(),this.labels.push(Ge),o.body=this.parseStatement("do"),this.labels.pop(),this.expect(v._while),o.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(v.semi):this.semicolon(),this.finishNode(o,"DoWhileStatement")},de.parseForStatement=function(o){this.next();var y=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ge),this.enterScope(0),this.expect(v.parenL),this.type===v.semi)return y>-1&&this.unexpected(y),this.parseFor(o,null);var I=this.isLet();if(this.type===v._var||this.type===v._const||I){var N=this.startNode(),F=I?"let":this.value;return this.next(),this.parseVar(N,!0,F),this.finishNode(N,"VariableDeclaration"),(this.type===v._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&N.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===v._in?y>-1&&this.unexpected(y):o.await=y>-1),this.parseForIn(o,N)):(y>-1&&this.unexpected(y),this.parseFor(o,N))}var W=new Re,G=this.parseExpression(!0,W);return this.type===v._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===v._in?y>-1&&this.unexpected(y):o.await=y>-1),this.toAssignable(G,!1,W),this.checkLVal(G),this.parseForIn(o,G)):(this.checkExpressionErrors(W,!0),y>-1&&this.unexpected(y),this.parseFor(o,G))},de.parseFunctionStatement=function(o,y,I){return this.next(),this.parseFunction(o,et|(I?0:Ze),!1,y)},de.parseIfStatement=function(o){return this.next(),o.test=this.parseParenExpression(),o.consequent=this.parseStatement("if"),o.alternate=this.eat(v._else)?this.parseStatement("if"):null,this.finishNode(o,"IfStatement")},de.parseReturnStatement=function(o){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(v.semi)||this.insertSemicolon()?o.argument=null:(o.argument=this.parseExpression(),this.semicolon()),this.finishNode(o,"ReturnStatement")},de.parseSwitchStatement=function(o){this.next(),o.discriminant=this.parseParenExpression(),o.cases=[],this.expect(v.braceL),this.labels.push(it),this.enterScope(0);for(var y,I=!1;this.type!==v.braceR;)if(this.type===v._case||this.type===v._default){var N=this.type===v._case;y&&this.finishNode(y,"SwitchCase"),o.cases.push(y=this.startNode()),y.consequent=[],this.next(),N?y.test=this.parseExpression():(I&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),I=!0,y.test=null),this.expect(v.colon)}else y||this.unexpected(),y.consequent.push(this.parseStatement(null));return this.exitScope(),y&&this.finishNode(y,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(o,"SwitchStatement")},de.parseThrowStatement=function(o){return this.next(),$.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),o.argument=this.parseExpression(),this.semicolon(),this.finishNode(o,"ThrowStatement")};var St=[];de.parseTryStatement=function(o){if(this.next(),o.block=this.parseBlock(),o.handler=null,this.type===v._catch){var y=this.startNode();if(this.next(),this.eat(v.parenL)){y.param=this.parseBindingAtom();var I=y.param.type==="Identifier";this.enterScope(I?Ye:0),this.checkLVal(y.param,I?tt:He),this.expect(v.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),y.param=null,this.enterScope(0);y.body=this.parseBlock(!1),this.exitScope(),o.handler=this.finishNode(y,"CatchClause")}return o.finalizer=this.eat(v._finally)?this.parseBlock():null,!o.handler&&!o.finalizer&&this.raise(o.start,"Missing catch or finally clause"),this.finishNode(o,"TryStatement")},de.parseVarStatement=function(o,y){return this.next(),this.parseVar(o,!1,y),this.semicolon(),this.finishNode(o,"VariableDeclaration")},de.parseWhileStatement=function(o){return this.next(),o.test=this.parseParenExpression(),this.labels.push(Ge),o.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(o,"WhileStatement")},de.parseWithStatement=function(o){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),o.object=this.parseParenExpression(),o.body=this.parseStatement("with"),this.finishNode(o,"WithStatement")},de.parseEmptyStatement=function(o){return this.next(),this.finishNode(o,"EmptyStatement")},de.parseLabeledStatement=function(o,y,I,N){for(var F=0,W=this.labels;F<W.length;F+=1){var G=W[F];G.name===y&&this.raise(I.start,"Label '"+y+"' is already declared")}for(var ue=this.type.isLoop?"loop":this.type===v._switch?"switch":null,fe=this.labels.length-1;fe>=0;fe--){var xe=this.labels[fe];if(xe.statementStart===o.start)xe.statementStart=this.start,xe.kind=ue;else break}return this.labels.push({name:y,kind:ue,statementStart:this.start}),o.body=this.parseStatement(N?N.indexOf("label")===-1?N+"label":N:"label"),this.labels.pop(),o.label=I,this.finishNode(o,"LabeledStatement")},de.parseExpressionStatement=function(o,y){return o.expression=y,this.semicolon(),this.finishNode(o,"ExpressionStatement")},de.parseBlock=function(o,y,I){for(o===void 0&&(o=!0),y===void 0&&(y=this.startNode()),y.body=[],this.expect(v.braceL),o&&this.enterScope(0);this.type!==v.braceR;){var N=this.parseStatement(null);y.body.push(N)}return I&&(this.strict=!1),this.next(),o&&this.exitScope(),this.finishNode(y,"BlockStatement")},de.parseFor=function(o,y){return o.init=y,this.expect(v.semi),o.test=this.type===v.semi?null:this.parseExpression(),this.expect(v.semi),o.update=this.type===v.parenR?null:this.parseExpression(),this.expect(v.parenR),o.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(o,"ForStatement")},de.parseForIn=function(o,y){var I=this.type===v._in;return this.next(),y.type==="VariableDeclaration"&&y.declarations[0].init!=null&&(!I||this.options.ecmaVersion<8||this.strict||y.kind!=="var"||y.declarations[0].id.type!=="Identifier")?this.raise(y.start,(I?"for-in":"for-of")+" loop variable declaration may not have an initializer"):y.type==="AssignmentPattern"&&this.raise(y.start,"Invalid left-hand side in for-loop"),o.left=y,o.right=I?this.parseExpression():this.parseMaybeAssign(),this.expect(v.parenR),o.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(o,I?"ForInStatement":"ForOfStatement")},de.parseVar=function(o,y,I){for(o.declarations=[],o.kind=I;;){var N=this.startNode();if(this.parseVarId(N,I),this.eat(v.eq)?N.init=this.parseMaybeAssign(y):I==="const"&&!(this.type===v._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():N.id.type!=="Identifier"&&!(y&&(this.type===v._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):N.init=null,o.declarations.push(this.finishNode(N,"VariableDeclarator")),!this.eat(v.comma))break}return o},de.parseVarId=function(o,y){o.id=this.parseBindingAtom(),this.checkLVal(o.id,y==="var"?Qe:He,!1)};var et=1,Ze=2,nt=4;de.parseFunction=function(o,y,I,N){this.initFunction(o),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!N)&&(this.type===v.star&&y&Ze&&this.unexpected(),o.generator=this.eat(v.star)),this.options.ecmaVersion>=8&&(o.async=!!N),y&et&&(o.id=y&nt&&this.type!==v.name?null:this.parseIdent(),o.id&&!(y&Ze)&&this.checkLVal(o.id,this.strict||o.generator||o.async?this.treatFunctionsAsVar?Qe:He:Oe));var F=this.yieldPos,W=this.awaitPos,G=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope($e(o.async,o.generator)),y&et||(o.id=this.type===v.name?this.parseIdent():null),this.parseFunctionParams(o),this.parseFunctionBody(o,I,!1),this.yieldPos=F,this.awaitPos=W,this.awaitIdentPos=G,this.finishNode(o,y&et?"FunctionDeclaration":"FunctionExpression")},de.parseFunctionParams=function(o){this.expect(v.parenL),o.params=this.parseBindingList(v.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},de.parseClass=function(o,y){this.next();var I=this.strict;this.strict=!0,this.parseClassId(o,y),this.parseClassSuper(o);var N=this.startNode(),F=!1;for(N.body=[],this.expect(v.braceL);this.type!==v.braceR;){var W=this.parseClassElement(o.superClass!==null);W&&(N.body.push(W),W.type==="MethodDefinition"&&W.kind==="constructor"&&(F&&this.raise(W.start,"Duplicate constructor in the same class"),F=!0))}return this.strict=I,this.next(),o.body=this.finishNode(N,"ClassBody"),this.finishNode(o,y?"ClassDeclaration":"ClassExpression")},de.parseClassElement=function(o){var y=this;if(this.eat(v.semi))return null;var I=this.startNode(),N=function(fe,xe){xe===void 0&&(xe=!1);var De=y.start,Xe=y.startLoc;return y.eatContextual(fe)?y.type!==v.parenL&&(!xe||!y.canInsertSemicolon())?!0:(I.key&&y.unexpected(),I.computed=!1,I.key=y.startNodeAt(De,Xe),I.key.name=fe,y.finishNode(I.key,"Identifier"),!1):!1};I.kind="method",I.static=N("static");var F=this.eat(v.star),W=!1;F||(this.options.ecmaVersion>=8&&N("async",!0)?(W=!0,F=this.options.ecmaVersion>=9&&this.eat(v.star)):N("get")?I.kind="get":N("set")&&(I.kind="set")),I.key||this.parsePropertyName(I);var G=I.key,ue=!1;return!I.computed&&!I.static&&(G.type==="Identifier"&&G.name==="constructor"||G.type==="Literal"&&G.value==="constructor")?(I.kind!=="method"&&this.raise(G.start,"Constructor can't have get/set modifier"),F&&this.raise(G.start,"Constructor can't be a generator"),W&&this.raise(G.start,"Constructor can't be an async method"),I.kind="constructor",ue=o):I.static&&G.type==="Identifier"&&G.name==="prototype"&&this.raise(G.start,"Classes may not have a static property named prototype"),this.parseClassMethod(I,F,W,ue),I.kind==="get"&&I.value.params.length!==0&&this.raiseRecoverable(I.value.start,"getter should have no params"),I.kind==="set"&&I.value.params.length!==1&&this.raiseRecoverable(I.value.start,"setter should have exactly one param"),I.kind==="set"&&I.value.params[0].type==="RestElement"&&this.raiseRecoverable(I.value.params[0].start,"Setter cannot use rest params"),I},de.parseClassMethod=function(o,y,I,N){return o.value=this.parseMethod(y,I,N),this.finishNode(o,"MethodDefinition")},de.parseClassId=function(o,y){this.type===v.name?(o.id=this.parseIdent(),y&&this.checkLVal(o.id,He,!1)):(y===!0&&this.unexpected(),o.id=null)},de.parseClassSuper=function(o){o.superClass=this.eat(v._extends)?this.parseExprSubscripts():null},de.parseExport=function(o,y){if(this.next(),this.eat(v.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(o.exported=this.parseIdent(!0),this.checkExport(y,o.exported.name,this.lastTokStart)):o.exported=null),this.expectContextual("from"),this.type!==v.string&&this.unexpected(),o.source=this.parseExprAtom(),this.semicolon(),this.finishNode(o,"ExportAllDeclaration");if(this.eat(v._default)){this.checkExport(y,"default",this.lastTokStart);var I;if(this.type===v._function||(I=this.isAsyncFunction())){var N=this.startNode();this.next(),I&&this.next(),o.declaration=this.parseFunction(N,et|nt,!1,I)}else if(this.type===v._class){var F=this.startNode();o.declaration=this.parseClass(F,"nullableID")}else o.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(o,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())o.declaration=this.parseStatement(null),o.declaration.type==="VariableDeclaration"?this.checkVariableExport(y,o.declaration.declarations):this.checkExport(y,o.declaration.id.name,o.declaration.id.start),o.specifiers=[],o.source=null;else{if(o.declaration=null,o.specifiers=this.parseExportSpecifiers(y),this.eatContextual("from"))this.type!==v.string&&this.unexpected(),o.source=this.parseExprAtom();else{for(var W=0,G=o.specifiers;W<G.length;W+=1){var ue=G[W];this.checkUnreserved(ue.local),this.checkLocalExport(ue.local)}o.source=null}this.semicolon()}return this.finishNode(o,"ExportNamedDeclaration")},de.checkExport=function(o,y,I){if(!o)return;ie(o,y)&&this.raiseRecoverable(I,"Duplicate export '"+y+"'"),o[y]=!0},de.checkPatternExport=function(o,y){var I=y.type;if(I==="Identifier")this.checkExport(o,y.name,y.start);else if(I==="ObjectPattern")for(var N=0,F=y.properties;N<F.length;N+=1){var W=F[N];this.checkPatternExport(o,W)}else if(I==="ArrayPattern")for(var G=0,ue=y.elements;G<ue.length;G+=1){var fe=ue[G];fe&&this.checkPatternExport(o,fe)}else I==="Property"?this.checkPatternExport(o,y.value):I==="AssignmentPattern"?this.checkPatternExport(o,y.left):I==="RestElement"?this.checkPatternExport(o,y.argument):I==="ParenthesizedExpression"&&this.checkPatternExport(o,y.expression)},de.checkVariableExport=function(o,y){if(!o)return;for(var I=0,N=y;I<N.length;I+=1){var F=N[I];this.checkPatternExport(o,F.id)}},de.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},de.parseExportSpecifiers=function(o){var y=[],I=!0;for(this.expect(v.braceL);!this.eat(v.braceR);){if(I)I=!1;else if(this.expect(v.comma),this.afterTrailingComma(v.braceR))break;var N=this.startNode();N.local=this.parseIdent(!0),N.exported=this.eatContextual("as")?this.parseIdent(!0):N.local,this.checkExport(o,N.exported.name,N.exported.start),y.push(this.finishNode(N,"ExportSpecifier"))}return y},de.parseImport=function(o){return this.next(),this.type===v.string?(o.specifiers=St,o.source=this.parseExprAtom()):(o.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),o.source=this.type===v.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(o,"ImportDeclaration")},de.parseImportSpecifiers=function(){var o=[],y=!0;if(this.type===v.name){var I=this.startNode();if(I.local=this.parseIdent(),this.checkLVal(I.local,He),o.push(this.finishNode(I,"ImportDefaultSpecifier")),!this.eat(v.comma))return o}if(this.type===v.star){var N=this.startNode();return this.next(),this.expectContextual("as"),N.local=this.parseIdent(),this.checkLVal(N.local,He),o.push(this.finishNode(N,"ImportNamespaceSpecifier")),o}for(this.expect(v.braceL);!this.eat(v.braceR);){if(y)y=!1;else if(this.expect(v.comma),this.afterTrailingComma(v.braceR))break;var F=this.startNode();F.imported=this.parseIdent(!0),this.eatContextual("as")?F.local=this.parseIdent():(this.checkUnreserved(F.imported),F.local=F.imported),this.checkLVal(F.local,He),o.push(this.finishNode(F,"ImportSpecifier"))}return o},de.adaptDirectivePrologue=function(o){for(var y=0;y<o.length&&this.isDirectiveCandidate(o[y]);++y)o[y].directive=o[y].expression.raw.slice(1,-1)},de.isDirectiveCandidate=function(o){return o.type==="ExpressionStatement"&&o.expression.type==="Literal"&&typeof o.expression.value=="string"&&(this.input[o.start]==='"'||this.input[o.start]==="'")};var Ke=we.prototype;Ke.toAssignable=function(o,y,I){if(this.options.ecmaVersion>=6&&o)switch(o.type){case"Identifier":this.inAsync&&o.name==="await"&&this.raise(o.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":o.type="ObjectPattern",I&&this.checkPatternErrors(I,!0);for(var N=0,F=o.properties;N<F.length;N+=1){var W=F[N];this.toAssignable(W,y),W.type==="RestElement"&&(W.argument.type==="ArrayPattern"||W.argument.type==="ObjectPattern")&&this.raise(W.argument.start,"Unexpected token")}break;case"Property":o.kind!=="init"&&this.raise(o.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(o.value,y);break;case"ArrayExpression":o.type="ArrayPattern",I&&this.checkPatternErrors(I,!0),this.toAssignableList(o.elements,y);break;case"SpreadElement":o.type="RestElement",this.toAssignable(o.argument,y),o.argument.type==="AssignmentPattern"&&this.raise(o.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":o.operator!=="="&&this.raise(o.left.end,"Only '=' operator can be used for specifying default value."),o.type="AssignmentPattern",delete o.operator,this.toAssignable(o.left,y);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(o.expression,y,I);break;case"ChainExpression":this.raiseRecoverable(o.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!y)break;default:this.raise(o.start,"Assigning to rvalue")}else I&&this.checkPatternErrors(I,!0);return o},Ke.toAssignableList=function(o,y){for(var I=o.length,N=0;N<I;N++){var F=o[N];F&&this.toAssignable(F,y)}if(I){var W=o[I-1];this.options.ecmaVersion===6&&y&&W&&W.type==="RestElement"&&W.argument.type!=="Identifier"&&this.unexpected(W.argument.start)}return o},Ke.parseSpread=function(o){var y=this.startNode();return this.next(),y.argument=this.parseMaybeAssign(!1,o),this.finishNode(y,"SpreadElement")},Ke.parseRestBinding=function(){var o=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==v.name&&this.unexpected(),o.argument=this.parseBindingAtom(),this.finishNode(o,"RestElement")},Ke.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case v.bracketL:var o=this.startNode();return this.next(),o.elements=this.parseBindingList(v.bracketR,!0,!0),this.finishNode(o,"ArrayPattern");case v.braceL:return this.parseObj(!0)}return this.parseIdent()},Ke.parseBindingList=function(o,y,I){for(var N=[],F=!0;!this.eat(o);)if(F?F=!1:this.expect(v.comma),y&&this.type===v.comma)N.push(null);else{if(I&&this.afterTrailingComma(o))break;if(this.type===v.ellipsis){var W=this.parseRestBinding();this.parseBindingListItem(W),N.push(W),this.type===v.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(o);break}else{var G=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(G),N.push(G)}}return N},Ke.parseBindingListItem=function(o){return o},Ke.parseMaybeDefault=function(o,y,I){if(I=I||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(v.eq))return I;var N=this.startNodeAt(o,y);return N.left=I,N.right=this.parseMaybeAssign(),this.finishNode(N,"AssignmentPattern")},Ke.checkLVal=function(o,y,I){y===void 0&&(y=rt);switch(o.type){case"Identifier":y===He&&o.name==="let"&&this.raiseRecoverable(o.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(o.name)&&this.raiseRecoverable(o.start,(y?"Binding ":"Assigning to ")+o.name+" in strict mode"),I&&(ie(I,o.name)&&this.raiseRecoverable(o.start,"Argument name clash"),I[o.name]=!0),y!==rt&&y!==Ie&&this.declareName(o.name,y,o.start);break;case"ChainExpression":this.raiseRecoverable(o.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":y&&this.raiseRecoverable(o.start,"Binding member expression");break;case"ObjectPattern":for(var N=0,F=o.properties;N<F.length;N+=1){var W=F[N];this.checkLVal(W,y,I)}break;case"Property":this.checkLVal(o.value,y,I);break;case"ArrayPattern":for(var G=0,ue=o.elements;G<ue.length;G+=1){var fe=ue[G];fe&&this.checkLVal(fe,y,I)}break;case"AssignmentPattern":this.checkLVal(o.left,y,I);break;case"RestElement":this.checkLVal(o.argument,y,I);break;case"ParenthesizedExpression":this.checkLVal(o.expression,y,I);break;default:this.raise(o.start,(y?"Binding":"Assigning to")+" rvalue")}};var ve=we.prototype;ve.checkPropClash=function(o,y,I){if(this.options.ecmaVersion>=9&&o.type==="SpreadElement")return;if(this.options.ecmaVersion>=6&&(o.computed||o.method||o.shorthand))return;var N=o.key,F;switch(N.type){case"Identifier":F=N.name;break;case"Literal":F=String(N.value);break;default:return}var W=o.kind;if(this.options.ecmaVersion>=6){F==="__proto__"&&W==="init"&&(y.proto&&(I?I.doubleProto<0&&(I.doubleProto=N.start):this.raiseRecoverable(N.start,"Redefinition of __proto__ property")),y.proto=!0);return}F="$"+F;var G=y[F];if(G){var ue;W==="init"?ue=this.strict&&G.init||G.get||G.set:ue=G.init||G[W],ue&&this.raiseRecoverable(N.start,"Redefinition of property")}else G=y[F]={init:!1,get:!1,set:!1};G[W]=!0},ve.parseExpression=function(o,y){var I=this.start,N=this.startLoc,F=this.parseMaybeAssign(o,y);if(this.type===v.comma){var W=this.startNodeAt(I,N);for(W.expressions=[F];this.eat(v.comma);)W.expressions.push(this.parseMaybeAssign(o,y));return this.finishNode(W,"SequenceExpression")}return F},ve.parseMaybeAssign=function(o,y,I){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(o);this.exprAllowed=!1}var N=!1,F=-1,W=-1;y?(F=y.parenthesizedAssign,W=y.trailingComma,y.parenthesizedAssign=y.trailingComma=-1):(y=new Re,N=!0);var G=this.start,ue=this.startLoc;(this.type===v.parenL||this.type===v.name)&&(this.potentialArrowAt=this.start);var fe=this.parseMaybeConditional(o,y);if(I&&(fe=I.call(this,fe,G,ue)),this.type.isAssign){var xe=this.startNodeAt(G,ue);return xe.operator=this.value,xe.left=this.type===v.eq?this.toAssignable(fe,!1,y):fe,N||(y.parenthesizedAssign=y.trailingComma=y.doubleProto=-1),y.shorthandAssign>=xe.left.start&&(y.shorthandAssign=-1),this.checkLVal(fe),this.next(),xe.right=this.parseMaybeAssign(o),this.finishNode(xe,"AssignmentExpression")}else N&&this.checkExpressionErrors(y,!0);return F>-1&&(y.parenthesizedAssign=F),W>-1&&(y.trailingComma=W),fe},ve.parseMaybeConditional=function(o,y){var I=this.start,N=this.startLoc,F=this.parseExprOps(o,y);if(this.checkExpressionErrors(y))return F;if(this.eat(v.question)){var W=this.startNodeAt(I,N);return W.test=F,W.consequent=this.parseMaybeAssign(),this.expect(v.colon),W.alternate=this.parseMaybeAssign(o),this.finishNode(W,"ConditionalExpression")}return F},ve.parseExprOps=function(o,y){var I=this.start,N=this.startLoc,F=this.parseMaybeUnary(y,!1);return this.checkExpressionErrors(y)||F.start===I&&F.type==="ArrowFunctionExpression"?F:this.parseExprOp(F,I,N,-1,o)},ve.parseExprOp=function(o,y,I,N,F){var W=this.type.binop;if(W!=null&&(!F||this.type!==v._in)&&W>N){var G=this.type===v.logicalOR||this.type===v.logicalAND,ue=this.type===v.coalesce;ue&&(W=v.logicalAND.binop);var fe=this.value;this.next();var xe=this.start,De=this.startLoc,Xe=this.parseExprOp(this.parseMaybeUnary(null,!1),xe,De,W,F),bt=this.buildBinary(y,I,o,Xe,fe,G||ue);return(G&&this.type===v.coalesce||ue&&(this.type===v.logicalOR||this.type===v.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(bt,y,I,N,F)}return o},ve.buildBinary=function(o,y,I,N,F,W){var G=this.startNodeAt(o,y);return G.left=I,G.operator=F,G.right=N,this.finishNode(G,W?"LogicalExpression":"BinaryExpression")},ve.parseMaybeUnary=function(o,y){var I=this.start,N=this.startLoc,F;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))F=this.parseAwait(),y=!0;else if(this.type.prefix){var W=this.startNode(),G=this.type===v.incDec;W.operator=this.value,W.prefix=!0,this.next(),W.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(o,!0),G?this.checkLVal(W.argument):this.strict&&W.operator==="delete"&&W.argument.type==="Identifier"?this.raiseRecoverable(W.start,"Deleting local variable in strict mode"):y=!0,F=this.finishNode(W,G?"UpdateExpression":"UnaryExpression")}else{if(F=this.parseExprSubscripts(o),this.checkExpressionErrors(o))return F;for(;this.type.postfix&&!this.canInsertSemicolon();){var ue=this.startNodeAt(I,N);ue.operator=this.value,ue.prefix=!1,ue.argument=F,this.checkLVal(F),this.next(),F=this.finishNode(ue,"UpdateExpression")}}return!y&&this.eat(v.starstar)?this.buildBinary(I,N,F,this.parseMaybeUnary(null,!1),"**",!1):F},ve.parseExprSubscripts=function(o){var y=this.start,I=this.startLoc,N=this.parseExprAtom(o);if(N.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return N;var F=this.parseSubscripts(N,y,I);return o&&F.type==="MemberExpression"&&(o.parenthesizedAssign>=F.start&&(o.parenthesizedAssign=-1),o.parenthesizedBind>=F.start&&(o.parenthesizedBind=-1)),F},ve.parseSubscripts=function(o,y,I,N){for(var F=this.options.ecmaVersion>=8&&o.type==="Identifier"&&o.name==="async"&&this.lastTokEnd===o.end&&!this.canInsertSemicolon()&&o.end-o.start===5&&this.potentialArrowAt===o.start,W=!1;;){var G=this.parseSubscript(o,y,I,N,F,W);if(G.optional&&(W=!0),G===o||G.type==="ArrowFunctionExpression"){if(W){var ue=this.startNodeAt(y,I);ue.expression=G,G=this.finishNode(ue,"ChainExpression")}return G}o=G}},ve.parseSubscript=function(o,y,I,N,F,W){var G=this.options.ecmaVersion>=11,ue=G&&this.eat(v.questionDot);N&&ue&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var fe=this.eat(v.bracketL);if(fe||ue&&this.type!==v.parenL&&this.type!==v.backQuote||this.eat(v.dot)){var xe=this.startNodeAt(y,I);xe.object=o,xe.property=fe?this.parseExpression():this.parseIdent(this.options.allowReserved!=="never"),xe.computed=!!fe,fe&&this.expect(v.bracketR),G&&(xe.optional=ue),o=this.finishNode(xe,"MemberExpression")}else if(!N&&this.eat(v.parenL)){var De=new Re,Xe=this.yieldPos,bt=this.awaitPos,Tt=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Ot=this.parseExprList(v.parenR,this.options.ecmaVersion>=8,!1,De);if(F&&!ue&&!this.canInsertSemicolon()&&this.eat(v.arrow))return this.checkPatternErrors(De,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Xe,this.awaitPos=bt,this.awaitIdentPos=Tt,this.parseArrowExpression(this.startNodeAt(y,I),Ot,!0);this.checkExpressionErrors(De,!0),this.yieldPos=Xe||this.yieldPos,this.awaitPos=bt||this.awaitPos,this.awaitIdentPos=Tt||this.awaitIdentPos;var gt=this.startNodeAt(y,I);gt.callee=o,gt.arguments=Ot,G&&(gt.optional=ue),o=this.finishNode(gt,"CallExpression")}else if(this.type===v.backQuote){(ue||W)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var vt=this.startNodeAt(y,I);vt.tag=o,vt.quasi=this.parseTemplate({isTagged:!0}),o=this.finishNode(vt,"TaggedTemplateExpression")}return o},ve.parseExprAtom=function(o){this.type===v.slash&&this.readRegexp();var y,I=this.potentialArrowAt===this.start;switch(this.type){case v._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),y=this.startNode(),this.next(),this.type===v.parenL&&!this.allowDirectSuper&&this.raise(y.start,"super() call outside constructor of a subclass"),this.type!==v.dot&&this.type!==v.bracketL&&this.type!==v.parenL&&this.unexpected(),this.finishNode(y,"Super");case v._this:return y=this.startNode(),this.next(),this.finishNode(y,"ThisExpression");case v.name:var N=this.start,F=this.startLoc,W=this.containsEsc,G=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!W&&G.name==="async"&&!this.canInsertSemicolon()&&this.eat(v._function))return this.parseFunction(this.startNodeAt(N,F),0,!1,!0);if(I&&!this.canInsertSemicolon()){if(this.eat(v.arrow))return this.parseArrowExpression(this.startNodeAt(N,F),[G],!1);if(this.options.ecmaVersion>=8&&G.name==="async"&&this.type===v.name&&!W)return G=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(v.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(N,F),[G],!0)}return G;case v.regexp:var ue=this.value;return y=this.parseLiteral(ue.value),y.regex={pattern:ue.pattern,flags:ue.flags},y;case v.num:case v.string:return this.parseLiteral(this.value);case v._null:case v._true:case v._false:return y=this.startNode(),y.value=this.type===v._null?null:this.type===v._true,y.raw=this.type.keyword,this.next(),this.finishNode(y,"Literal");case v.parenL:var fe=this.start,xe=this.parseParenAndDistinguishExpression(I);return o&&(o.parenthesizedAssign<0&&!this.isSimpleAssignTarget(xe)&&(o.parenthesizedAssign=fe),o.parenthesizedBind<0&&(o.parenthesizedBind=fe)),xe;case v.bracketL:return y=this.startNode(),this.next(),y.elements=this.parseExprList(v.bracketR,!0,!0,o),this.finishNode(y,"ArrayExpression");case v.braceL:return this.parseObj(!1,o);case v._function:return y=this.startNode(),this.next(),this.parseFunction(y,0);case v._class:return this.parseClass(this.startNode(),!1);case v._new:return this.parseNew();case v.backQuote:return this.parseTemplate();case v._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},ve.parseExprImport=function(){var o=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var y=this.parseIdent(!0);switch(this.type){case v.parenL:return this.parseDynamicImport(o);case v.dot:return o.meta=y,this.parseImportMeta(o);default:this.unexpected()}},ve.parseDynamicImport=function(o){if(this.next(),o.source=this.parseMaybeAssign(),!this.eat(v.parenR)){var y=this.start;this.eat(v.comma)&&this.eat(v.parenR)?this.raiseRecoverable(y,"Trailing comma is not allowed in import()"):this.unexpected(y)}return this.finishNode(o,"ImportExpression")},ve.parseImportMeta=function(o){this.next();var y=this.containsEsc;return o.property=this.parseIdent(!0),o.property.name!=="meta"&&this.raiseRecoverable(o.property.start,"The only valid meta property for import is 'import.meta'"),y&&this.raiseRecoverable(o.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&this.raiseRecoverable(o.start,"Cannot use 'import.meta' outside a module"),this.finishNode(o,"MetaProperty")},ve.parseLiteral=function(o){var y=this.startNode();return y.value=o,y.raw=this.input.slice(this.start,this.end),y.raw.charCodeAt(y.raw.length-1)===110&&(y.bigint=y.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(y,"Literal")},ve.parseParenExpression=function(){this.expect(v.parenL);var o=this.parseExpression();return this.expect(v.parenR),o},ve.parseParenAndDistinguishExpression=function(o){var y=this.start,I=this.startLoc,N,F=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var W=this.start,G=this.startLoc,ue=[],fe=!0,xe=!1,De=new Re,Xe=this.yieldPos,bt=this.awaitPos,Tt;for(this.yieldPos=0,this.awaitPos=0;this.type!==v.parenR;)if(fe?fe=!1:this.expect(v.comma),F&&this.afterTrailingComma(v.parenR,!0)){xe=!0;break}else if(this.type===v.ellipsis){Tt=this.start,ue.push(this.parseParenItem(this.parseRestBinding())),this.type===v.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else ue.push(this.parseMaybeAssign(!1,De,this.parseParenItem));var Ot=this.start,gt=this.startLoc;if(this.expect(v.parenR),o&&!this.canInsertSemicolon()&&this.eat(v.arrow))return this.checkPatternErrors(De,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Xe,this.awaitPos=bt,this.parseParenArrowList(y,I,ue);(!ue.length||xe)&&this.unexpected(this.lastTokStart),Tt&&this.unexpected(Tt),this.checkExpressionErrors(De,!0),this.yieldPos=Xe||this.yieldPos,this.awaitPos=bt||this.awaitPos,ue.length>1?(N=this.startNodeAt(W,G),N.expressions=ue,this.finishNodeAt(N,"SequenceExpression",Ot,gt)):N=ue[0]}else N=this.parseParenExpression();if(this.options.preserveParens){var vt=this.startNodeAt(y,I);return vt.expression=N,this.finishNode(vt,"ParenthesizedExpression")}else return N},ve.parseParenItem=function(o){return o},ve.parseParenArrowList=function(o,y,I){return this.parseArrowExpression(this.startNodeAt(o,y),I)};var qe=[];ve.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var o=this.startNode(),y=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(v.dot)){o.meta=y;var I=this.containsEsc;return o.property=this.parseIdent(!0),o.property.name!=="target"&&this.raiseRecoverable(o.property.start,"The only valid meta property for new is 'new.target'"),I&&this.raiseRecoverable(o.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(o.start,"'new.target' can only be used in functions"),this.finishNode(o,"MetaProperty")}var N=this.start,F=this.startLoc,W=this.type===v._import;return o.callee=this.parseSubscripts(this.parseExprAtom(),N,F,!0),W&&o.callee.type==="ImportExpression"&&this.raise(N,"Cannot use new with import()"),this.eat(v.parenL)?o.arguments=this.parseExprList(v.parenR,this.options.ecmaVersion>=8,!1):o.arguments=qe,this.finishNode(o,"NewExpression")},ve.parseTemplateElement=function(o){var y=o.isTagged,I=this.startNode();return this.type===v.invalidTemplate?(y||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),I.value={raw:this.value,cooked:null}):I.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
12
|
+
`),cooked:this.value},this.next(),I.tail=this.type===v.backQuote,this.finishNode(I,"TemplateElement")},ve.parseTemplate=function(o){o===void 0&&(o={});var y=o.isTagged;y===void 0&&(y=!1);var I=this.startNode();this.next(),I.expressions=[];var N=this.parseTemplateElement({isTagged:y});for(I.quasis=[N];!N.tail;)this.type===v.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(v.dollarBraceL),I.expressions.push(this.parseExpression()),this.expect(v.braceR),I.quasis.push(N=this.parseTemplateElement({isTagged:y}));return this.next(),this.finishNode(I,"TemplateLiteral")},ve.isAsyncProp=function(o){return!o.computed&&o.key.type==="Identifier"&&o.key.name==="async"&&(this.type===v.name||this.type===v.num||this.type===v.string||this.type===v.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===v.star)&&!$.test(this.input.slice(this.lastTokEnd,this.start))},ve.parseObj=function(o,y){var I=this.startNode(),N=!0,F={};for(I.properties=[],this.next();!this.eat(v.braceR);){if(N)N=!1;else if(this.expect(v.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(v.braceR))break;var W=this.parseProperty(o,y);o||this.checkPropClash(W,F,y),I.properties.push(W)}return this.finishNode(I,o?"ObjectPattern":"ObjectExpression")},ve.parseProperty=function(o,y){var I=this.startNode(),N,F,W,G;if(this.options.ecmaVersion>=9&&this.eat(v.ellipsis))return o?(I.argument=this.parseIdent(!1),this.type===v.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(I,"RestElement")):(this.type===v.parenL&&y&&(y.parenthesizedAssign<0&&(y.parenthesizedAssign=this.start),y.parenthesizedBind<0&&(y.parenthesizedBind=this.start)),I.argument=this.parseMaybeAssign(!1,y),this.type===v.comma&&y&&y.trailingComma<0&&(y.trailingComma=this.start),this.finishNode(I,"SpreadElement"));this.options.ecmaVersion>=6&&(I.method=!1,I.shorthand=!1,(o||y)&&(W=this.start,G=this.startLoc),o||(N=this.eat(v.star)));var ue=this.containsEsc;return this.parsePropertyName(I),!o&&!ue&&this.options.ecmaVersion>=8&&!N&&this.isAsyncProp(I)?(F=!0,N=this.options.ecmaVersion>=9&&this.eat(v.star),this.parsePropertyName(I,y)):F=!1,this.parsePropertyValue(I,o,N,F,W,G,y,ue),this.finishNode(I,"Property")},ve.parsePropertyValue=function(o,y,I,N,F,W,G,ue){if((I||N)&&this.type===v.colon&&this.unexpected(),this.eat(v.colon))o.value=y?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,G),o.kind="init";else if(this.options.ecmaVersion>=6&&this.type===v.parenL)y&&this.unexpected(),o.kind="init",o.method=!0,o.value=this.parseMethod(I,N);else if(!y&&!ue&&this.options.ecmaVersion>=5&&!o.computed&&o.key.type==="Identifier"&&(o.key.name==="get"||o.key.name==="set")&&(this.type!==v.comma&&this.type!==v.braceR)&&this.type!==v.eq){(I||N)&&this.unexpected(),o.kind=o.key.name,this.parsePropertyName(o),o.value=this.parseMethod(!1);var fe=o.kind==="get"?0:1;if(o.value.params.length!==fe){var xe=o.value.start;o.kind==="get"?this.raiseRecoverable(xe,"getter should have no params"):this.raiseRecoverable(xe,"setter should have exactly one param")}else o.kind==="set"&&o.value.params[0].type==="RestElement"&&this.raiseRecoverable(o.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!o.computed&&o.key.type==="Identifier"?((I||N)&&this.unexpected(),this.checkUnreserved(o.key),o.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=F),o.kind="init",y?o.value=this.parseMaybeDefault(F,W,o.key):this.type===v.eq&&G?(G.shorthandAssign<0&&(G.shorthandAssign=this.start),o.value=this.parseMaybeDefault(F,W,o.key)):o.value=o.key,o.shorthand=!0):this.unexpected()},ve.parsePropertyName=function(o){if(this.options.ecmaVersion>=6){if(this.eat(v.bracketL))return o.computed=!0,o.key=this.parseMaybeAssign(),this.expect(v.bracketR),o.key;o.computed=!1}return o.key=this.type===v.num||this.type===v.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},ve.initFunction=function(o){o.id=null,this.options.ecmaVersion>=6&&(o.generator=o.expression=!1),this.options.ecmaVersion>=8&&(o.async=!1)},ve.parseMethod=function(o,y,I){var N=this.startNode(),F=this.yieldPos,W=this.awaitPos,G=this.awaitIdentPos;return this.initFunction(N),this.options.ecmaVersion>=6&&(N.generator=o),this.options.ecmaVersion>=8&&(N.async=!!y),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope($e(y,N.generator)|at|(I?ot:0)),this.expect(v.parenL),N.params=this.parseBindingList(v.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(N,!1,!0),this.yieldPos=F,this.awaitPos=W,this.awaitIdentPos=G,this.finishNode(N,"FunctionExpression")},ve.parseArrowExpression=function(o,y,I){var N=this.yieldPos,F=this.awaitPos,W=this.awaitIdentPos;return this.enterScope($e(I,!1)|Ue),this.initFunction(o),this.options.ecmaVersion>=8&&(o.async=!!I),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,o.params=this.toAssignableList(y,!0),this.parseFunctionBody(o,!0,!1),this.yieldPos=N,this.awaitPos=F,this.awaitIdentPos=W,this.finishNode(o,"ArrowFunctionExpression")},ve.parseFunctionBody=function(o,y,I){var N=y&&this.type!==v.braceL,F=this.strict,W=!1;if(N)o.body=this.parseMaybeAssign(),o.expression=!0,this.checkParams(o,!1);else{var G=this.options.ecmaVersion>=7&&!this.isSimpleParamList(o.params);(!F||G)&&(W=this.strictDirective(this.end),W&&G&&this.raiseRecoverable(o.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var ue=this.labels;this.labels=[],W&&(this.strict=!0),this.checkParams(o,!F&&!W&&!y&&!I&&this.isSimpleParamList(o.params)),this.strict&&o.id&&this.checkLVal(o.id,Ie),o.body=this.parseBlock(!1,void 0,W&&!F),o.expression=!1,this.adaptDirectivePrologue(o.body.body),this.labels=ue}this.exitScope()},ve.isSimpleParamList=function(o){for(var y=0,I=o;y<I.length;y+=1){var N=I[y];if(N.type!=="Identifier")return!1}return!0},ve.checkParams=function(o,y){for(var I={},N=0,F=o.params;N<F.length;N+=1){var W=F[N];this.checkLVal(W,Qe,y?null:I)}},ve.parseExprList=function(o,y,I,N){for(var F=[],W=!0;!this.eat(o);){if(W)W=!1;else if(this.expect(v.comma),y&&this.afterTrailingComma(o))break;var G=void 0;I&&this.type===v.comma?G=null:this.type===v.ellipsis?(G=this.parseSpread(N),N&&this.type===v.comma&&N.trailingComma<0&&(N.trailingComma=this.start)):G=this.parseMaybeAssign(!1,N),F.push(G)}return F},ve.checkUnreserved=function(o){var y=o.start,I=o.end,N=o.name;if(this.inGenerator&&N==="yield"&&this.raiseRecoverable(y,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&N==="await"&&this.raiseRecoverable(y,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(N)&&this.raise(y,"Unexpected keyword '"+N+"'"),this.options.ecmaVersion<6&&this.input.slice(y,I).indexOf("\\")!==-1)return;var F=this.strict?this.reservedWordsStrict:this.reservedWords;F.test(N)&&(!this.inAsync&&N==="await"&&this.raiseRecoverable(y,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(y,"The keyword '"+N+"' is reserved"))},ve.parseIdent=function(o,y){var I=this.startNode();return this.type===v.name?I.name=this.value:this.type.keyword?(I.name=this.type.keyword,(I.name==="class"||I.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!o),this.finishNode(I,"Identifier"),o||(this.checkUnreserved(I),I.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=I.start)),I},ve.parseYield=function(o){this.yieldPos||(this.yieldPos=this.start);var y=this.startNode();return this.next(),this.type===v.semi||this.canInsertSemicolon()||this.type!==v.star&&!this.type.startsExpr?(y.delegate=!1,y.argument=null):(y.delegate=this.eat(v.star),y.argument=this.parseMaybeAssign(o)),this.finishNode(y,"YieldExpression")},ve.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var o=this.startNode();return this.next(),o.argument=this.parseMaybeUnary(null,!1),this.finishNode(o,"AwaitExpression")};var ce=we.prototype;ce.raise=function(o,y){var I=X(this.input,o);y+=" ("+I.line+":"+I.column+")";var N=new SyntaxError(y);throw N.pos=o,N.loc=I,N.raisedAt=this.pos,N},ce.raiseRecoverable=ce.raise,ce.curPosition=function(){if(this.options.locations)return new ae(this.curLine,this.pos-this.lineStart)};var Ve=we.prototype,ee=function(y){this.flags=y,this.var=[],this.lexical=[],this.functions=[]};Ve.enterScope=function(o){this.scopeStack.push(new ee(o))},Ve.exitScope=function(){this.scopeStack.pop()},Ve.treatFunctionsAsVarInScope=function(o){return o.flags&me||!this.inModule&&o.flags&Pe},Ve.declareName=function(o,y,I){var N=!1;if(y===He){var F=this.currentScope();N=F.lexical.indexOf(o)>-1||F.functions.indexOf(o)>-1||F.var.indexOf(o)>-1,F.lexical.push(o),this.inModule&&F.flags&Pe&&delete this.undefinedExports[o]}else if(y===tt){var W=this.currentScope();W.lexical.push(o)}else if(y===Oe){var G=this.currentScope();this.treatFunctionsAsVar?N=G.lexical.indexOf(o)>-1:N=G.lexical.indexOf(o)>-1||G.var.indexOf(o)>-1,G.functions.push(o)}else for(var ue=this.scopeStack.length-1;ue>=0;--ue){var fe=this.scopeStack[ue];if(fe.lexical.indexOf(o)>-1&&!(fe.flags&Ye&&fe.lexical[0]===o)||!this.treatFunctionsAsVarInScope(fe)&&fe.functions.indexOf(o)>-1){N=!0;break}if(fe.var.push(o),this.inModule&&fe.flags&Pe&&delete this.undefinedExports[o],fe.flags&ge)break}N&&this.raiseRecoverable(I,"Identifier '"+o+"' has already been declared")},Ve.checkLocalExport=function(o){this.scopeStack[0].lexical.indexOf(o.name)===-1&&this.scopeStack[0].var.indexOf(o.name)===-1&&(this.undefinedExports[o.name]=o)},Ve.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Ve.currentVarScope=function(){for(var o=this.scopeStack.length-1;;o--){var y=this.scopeStack[o];if(y.flags&ge)return y}},Ve.currentThisScope=function(){for(var o=this.scopeStack.length-1;;o--){var y=this.scopeStack[o];if(y.flags&ge&&!(y.flags&Ue))return y}};var ut=function(y,I,N){this.type="",this.start=I,this.end=0,y.options.locations&&(this.loc=new le(y,N)),y.options.directSourceFile&&(this.sourceFile=y.options.directSourceFile),y.options.ranges&&(this.range=[I,0])},st=we.prototype;st.startNode=function(){return new ut(this,this.start,this.startLoc)},st.startNodeAt=function(o,y){return new ut(this,o,y)};function Pt(o,y,I,N){return o.type=y,o.end=I,this.options.locations&&(o.loc.end=N),this.options.ranges&&(o.range[1]=I),o}st.finishNode=function(o,y){return Pt.call(this,o,y,this.lastTokEnd,this.lastTokEndLoc)},st.finishNodeAt=function(o,y,I,N){return Pt.call(this,o,y,I,N)};var Me=function(y,I,N,F,W){this.token=y,this.isExpr=!!I,this.preserveSpace=!!N,this.override=F,this.generator=!!W},ke={b_stat:new Me("{",!1),b_expr:new Me("{",!0),b_tmpl:new Me("${",!1),p_stat:new Me("(",!1),p_expr:new Me("(",!0),q_tmpl:new Me("`",!0,!0,function(o){return o.tryReadTemplateToken()}),f_stat:new Me("function",!1),f_expr:new Me("function",!0),f_expr_gen:new Me("function",!0,!1,null,!0),f_gen:new Me("function",!1,!1,null,!0)},It=we.prototype;It.initialContext=function(){return[ke.b_stat]},It.braceIsBlock=function(o){var y=this.curContext();return y===ke.f_expr||y===ke.f_stat?!0:o===v.colon&&(y===ke.b_stat||y===ke.b_expr)?!y.isExpr:o===v._return||o===v.name&&this.exprAllowed?$.test(this.input.slice(this.lastTokEnd,this.start)):o===v._else||o===v.semi||o===v.eof||o===v.parenR||o===v.arrow?!0:o===v.braceL?y===ke.b_stat:o===v._var||o===v._const||o===v.name?!1:!this.exprAllowed},It.inGeneratorContext=function(){for(var o=this.context.length-1;o>=1;o--){var y=this.context[o];if(y.token==="function")return y.generator}return!1},It.updateContext=function(o){var y,I=this.type;I.keyword&&o===v.dot?this.exprAllowed=!1:(y=I.updateContext)?y.call(this,o):this.exprAllowed=I.beforeExpr},v.parenR.updateContext=v.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var o=this.context.pop();o===ke.b_stat&&this.curContext().token==="function"&&(o=this.context.pop()),this.exprAllowed=!o.isExpr},v.braceL.updateContext=function(o){this.context.push(this.braceIsBlock(o)?ke.b_stat:ke.b_expr),this.exprAllowed=!0},v.dollarBraceL.updateContext=function(){this.context.push(ke.b_tmpl),this.exprAllowed=!0},v.parenL.updateContext=function(o){var y=o===v._if||o===v._for||o===v._with||o===v._while;this.context.push(y?ke.p_stat:ke.p_expr),this.exprAllowed=!0},v.incDec.updateContext=function(){},v._function.updateContext=v._class.updateContext=function(o){o.beforeExpr&&o!==v.semi&&o!==v._else&&!(o===v._return&&$.test(this.input.slice(this.lastTokEnd,this.start)))&&!((o===v.colon||o===v.braceL)&&this.curContext()===ke.b_stat)?this.context.push(ke.f_expr):this.context.push(ke.f_stat),this.exprAllowed=!1},v.backQuote.updateContext=function(){this.curContext()===ke.q_tmpl?this.context.pop():this.context.push(ke.q_tmpl),this.exprAllowed=!1},v.star.updateContext=function(o){if(o===v._function){var y=this.context.length-1;this.context[y]===ke.f_expr?this.context[y]=ke.f_expr_gen:this.context[y]=ke.f_gen}this.exprAllowed=!0},v.name.updateContext=function(o){var y=!1;this.options.ecmaVersion>=6&&o!==v.dot&&((this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(y=!0)),this.exprAllowed=y};var jt="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",At=jt+" Extended_Pictographic",Nt=At,kt={9:jt,10:At,11:Nt},Ct="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Vt="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Ut=Vt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",$t=Ut+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Qt={9:Vt,10:Ut,11:$t},Dt={};function Lt(o){var y=Dt[o]={binary:Te(kt[o]+" "+Ct),nonBinary:{General_Category:Te(Ct),Script:Te(Qt[o])}};y.nonBinary.Script_Extensions=y.nonBinary.Script,y.nonBinary.gc=y.nonBinary.General_Category,y.nonBinary.sc=y.nonBinary.Script,y.nonBinary.scx=y.nonBinary.Script_Extensions}Lt(9),Lt(10),Lt(11);var se=we.prototype,ft=function(y){this.parser=y,this.validFlags="gim"+(y.options.ecmaVersion>=6?"uy":"")+(y.options.ecmaVersion>=9?"s":""),this.unicodeProperties=Dt[y.options.ecmaVersion>=11?11:y.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};ft.prototype.reset=function(y,I,N){var F=N.indexOf("u")!==-1;this.start=y|0,this.source=I+"",this.flags=N,this.switchU=F&&this.parser.options.ecmaVersion>=6,this.switchN=F&&this.parser.options.ecmaVersion>=9},ft.prototype.raise=function(y){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+y)},ft.prototype.at=function(y,I){I===void 0&&(I=!1);var N=this.source,F=N.length;if(y>=F)return-1;var W=N.charCodeAt(y);if(!(I||this.switchU)||W<=55295||W>=57344||y+1>=F)return W;var G=N.charCodeAt(y+1);return G>=56320&&G<=57343?(W<<10)+G-56613888:W},ft.prototype.nextIndex=function(y,I){I===void 0&&(I=!1);var N=this.source,F=N.length;if(y>=F)return F;var W=N.charCodeAt(y),G;return!(I||this.switchU)||W<=55295||W>=57344||y+1>=F||(G=N.charCodeAt(y+1))<56320||G>57343?y+1:y+2},ft.prototype.current=function(y){return y===void 0&&(y=!1),this.at(this.pos,y)},ft.prototype.lookahead=function(y){return y===void 0&&(y=!1),this.at(this.nextIndex(this.pos,y),y)},ft.prototype.advance=function(y){y===void 0&&(y=!1),this.pos=this.nextIndex(this.pos,y)},ft.prototype.eat=function(y,I){return I===void 0&&(I=!1),this.current(I)===y?(this.advance(I),!0):!1};function mt(o){return o<=65535?String.fromCharCode(o):(o-=65536,String.fromCharCode((o>>10)+55296,(o&1023)+56320))}se.validateRegExpFlags=function(o){for(var y=o.validFlags,I=o.flags,N=0;N<I.length;N++){var F=I.charAt(N);y.indexOf(F)===-1&&this.raise(o.start,"Invalid regular expression flag"),I.indexOf(F,N+1)>-1&&this.raise(o.start,"Duplicate regular expression flag")}},se.validateRegExpPattern=function(o){this.regexp_pattern(o),!o.switchN&&this.options.ecmaVersion>=9&&o.groupNames.length>0&&(o.switchN=!0,this.regexp_pattern(o))},se.regexp_pattern=function(o){o.pos=0,o.lastIntValue=0,o.lastStringValue="",o.lastAssertionIsQuantifiable=!1,o.numCapturingParens=0,o.maxBackReference=0,o.groupNames.length=0,o.backReferenceNames.length=0,this.regexp_disjunction(o),o.pos!==o.source.length&&(o.eat(41)&&o.raise("Unmatched ')'"),(o.eat(93)||o.eat(125))&&o.raise("Lone quantifier brackets")),o.maxBackReference>o.numCapturingParens&&o.raise("Invalid escape");for(var y=0,I=o.backReferenceNames;y<I.length;y+=1){var N=I[y];o.groupNames.indexOf(N)===-1&&o.raise("Invalid named capture referenced")}},se.regexp_disjunction=function(o){for(this.regexp_alternative(o);o.eat(124);)this.regexp_alternative(o);this.regexp_eatQuantifier(o,!0)&&o.raise("Nothing to repeat"),o.eat(123)&&o.raise("Lone quantifier brackets")},se.regexp_alternative=function(o){for(;o.pos<o.source.length&&this.regexp_eatTerm(o););},se.regexp_eatTerm=function(o){return this.regexp_eatAssertion(o)?(o.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(o)&&(o.switchU&&o.raise("Invalid quantifier")),!0):(o.switchU?this.regexp_eatAtom(o):this.regexp_eatExtendedAtom(o))?(this.regexp_eatQuantifier(o),!0):!1},se.regexp_eatAssertion=function(o){var y=o.pos;if(o.lastAssertionIsQuantifiable=!1,o.eat(94)||o.eat(36))return!0;if(o.eat(92)){if(o.eat(66)||o.eat(98))return!0;o.pos=y}if(o.eat(40)&&o.eat(63)){var I=!1;if(this.options.ecmaVersion>=9&&(I=o.eat(60)),o.eat(61)||o.eat(33))return this.regexp_disjunction(o),o.eat(41)||o.raise("Unterminated group"),o.lastAssertionIsQuantifiable=!I,!0}return o.pos=y,!1},se.regexp_eatQuantifier=function(o,y){return y===void 0&&(y=!1),this.regexp_eatQuantifierPrefix(o,y)?(o.eat(63),!0):!1},se.regexp_eatQuantifierPrefix=function(o,y){return o.eat(42)||o.eat(43)||o.eat(63)||this.regexp_eatBracedQuantifier(o,y)},se.regexp_eatBracedQuantifier=function(o,y){var I=o.pos;if(o.eat(123)){var N=0,F=-1;if(this.regexp_eatDecimalDigits(o)&&(N=o.lastIntValue,o.eat(44)&&this.regexp_eatDecimalDigits(o)&&(F=o.lastIntValue),o.eat(125)))return F!==-1&&F<N&&!y&&o.raise("numbers out of order in {} quantifier"),!0;o.switchU&&!y&&o.raise("Incomplete quantifier"),o.pos=I}return!1},se.regexp_eatAtom=function(o){return this.regexp_eatPatternCharacters(o)||o.eat(46)||this.regexp_eatReverseSolidusAtomEscape(o)||this.regexp_eatCharacterClass(o)||this.regexp_eatUncapturingGroup(o)||this.regexp_eatCapturingGroup(o)},se.regexp_eatReverseSolidusAtomEscape=function(o){var y=o.pos;if(o.eat(92)){if(this.regexp_eatAtomEscape(o))return!0;o.pos=y}return!1},se.regexp_eatUncapturingGroup=function(o){var y=o.pos;if(o.eat(40)){if(o.eat(63)&&o.eat(58)){if(this.regexp_disjunction(o),o.eat(41))return!0;o.raise("Unterminated group")}o.pos=y}return!1},se.regexp_eatCapturingGroup=function(o){if(o.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(o):o.current()===63&&o.raise("Invalid group"),this.regexp_disjunction(o),o.eat(41))return o.numCapturingParens+=1,!0;o.raise("Unterminated group")}return!1},se.regexp_eatExtendedAtom=function(o){return o.eat(46)||this.regexp_eatReverseSolidusAtomEscape(o)||this.regexp_eatCharacterClass(o)||this.regexp_eatUncapturingGroup(o)||this.regexp_eatCapturingGroup(o)||this.regexp_eatInvalidBracedQuantifier(o)||this.regexp_eatExtendedPatternCharacter(o)},se.regexp_eatInvalidBracedQuantifier=function(o){return this.regexp_eatBracedQuantifier(o,!0)&&o.raise("Nothing to repeat"),!1},se.regexp_eatSyntaxCharacter=function(o){var y=o.current();return Mt(y)?(o.lastIntValue=y,o.advance(),!0):!1};function Mt(o){return o===36||o>=40&&o<=43||o===46||o===63||o>=91&&o<=94||o>=123&&o<=125}se.regexp_eatPatternCharacters=function(o){for(var y=o.pos,I=0;(I=o.current())!==-1&&!Mt(I);)o.advance();return o.pos!==y},se.regexp_eatExtendedPatternCharacter=function(o){var y=o.current();return y!==-1&&y!==36&&!(y>=40&&y<=43)&&y!==46&&y!==63&&y!==91&&y!==94&&y!==124?(o.advance(),!0):!1},se.regexp_groupSpecifier=function(o){if(o.eat(63)){if(this.regexp_eatGroupName(o)){o.groupNames.indexOf(o.lastStringValue)!==-1&&o.raise("Duplicate capture group name"),o.groupNames.push(o.lastStringValue);return}o.raise("Invalid group")}},se.regexp_eatGroupName=function(o){if(o.lastStringValue="",o.eat(60)){if(this.regexp_eatRegExpIdentifierName(o)&&o.eat(62))return!0;o.raise("Invalid capture group name")}return!1},se.regexp_eatRegExpIdentifierName=function(o){if(o.lastStringValue="",this.regexp_eatRegExpIdentifierStart(o)){for(o.lastStringValue+=mt(o.lastIntValue);this.regexp_eatRegExpIdentifierPart(o);)o.lastStringValue+=mt(o.lastIntValue);return!0}return!1},se.regexp_eatRegExpIdentifierStart=function(o){var y=o.pos,I=this.options.ecmaVersion>=11,N=o.current(I);return o.advance(I),N===92&&this.regexp_eatRegExpUnicodeEscapeSequence(o,I)&&(N=o.lastIntValue),Zt(N)?(o.lastIntValue=N,!0):(o.pos=y,!1)};function Zt(o){return _(o,!0)||o===36||o===95}se.regexp_eatRegExpIdentifierPart=function(o){var y=o.pos,I=this.options.ecmaVersion>=11,N=o.current(I);return o.advance(I),N===92&&this.regexp_eatRegExpUnicodeEscapeSequence(o,I)&&(N=o.lastIntValue),er(N)?(o.lastIntValue=N,!0):(o.pos=y,!1)};function er(o){return L(o,!0)||o===36||o===95||o===8204||o===8205}se.regexp_eatAtomEscape=function(o){return this.regexp_eatBackReference(o)||this.regexp_eatCharacterClassEscape(o)||this.regexp_eatCharacterEscape(o)||o.switchN&&this.regexp_eatKGroupName(o)?!0:(o.switchU&&(o.current()===99&&o.raise("Invalid unicode escape"),o.raise("Invalid escape")),!1)},se.regexp_eatBackReference=function(o){var y=o.pos;if(this.regexp_eatDecimalEscape(o)){var I=o.lastIntValue;if(o.switchU)return I>o.maxBackReference&&(o.maxBackReference=I),!0;if(I<=o.numCapturingParens)return!0;o.pos=y}return!1},se.regexp_eatKGroupName=function(o){if(o.eat(107)){if(this.regexp_eatGroupName(o))return o.backReferenceNames.push(o.lastStringValue),!0;o.raise("Invalid named reference")}return!1},se.regexp_eatCharacterEscape=function(o){return this.regexp_eatControlEscape(o)||this.regexp_eatCControlLetter(o)||this.regexp_eatZero(o)||this.regexp_eatHexEscapeSequence(o)||this.regexp_eatRegExpUnicodeEscapeSequence(o,!1)||!o.switchU&&this.regexp_eatLegacyOctalEscapeSequence(o)||this.regexp_eatIdentityEscape(o)},se.regexp_eatCControlLetter=function(o){var y=o.pos;if(o.eat(99)){if(this.regexp_eatControlLetter(o))return!0;o.pos=y}return!1},se.regexp_eatZero=function(o){return o.current()===48&&!lt(o.lookahead())?(o.lastIntValue=0,o.advance(),!0):!1},se.regexp_eatControlEscape=function(o){var y=o.current();return y===116?(o.lastIntValue=9,o.advance(),!0):y===110?(o.lastIntValue=10,o.advance(),!0):y===118?(o.lastIntValue=11,o.advance(),!0):y===102?(o.lastIntValue=12,o.advance(),!0):y===114?(o.lastIntValue=13,o.advance(),!0):!1},se.regexp_eatControlLetter=function(o){var y=o.current();return Kt(y)?(o.lastIntValue=y%32,o.advance(),!0):!1};function Kt(o){return o>=65&&o<=90||o>=97&&o<=122}se.regexp_eatRegExpUnicodeEscapeSequence=function(o,y){y===void 0&&(y=!1);var I=o.pos,N=y||o.switchU;if(o.eat(117)){if(this.regexp_eatFixedHexDigits(o,4)){var F=o.lastIntValue;if(N&&F>=55296&&F<=56319){var W=o.pos;if(o.eat(92)&&o.eat(117)&&this.regexp_eatFixedHexDigits(o,4)){var G=o.lastIntValue;if(G>=56320&&G<=57343)return o.lastIntValue=(F-55296)*1024+(G-56320)+65536,!0}o.pos=W,o.lastIntValue=F}return!0}if(N&&o.eat(123)&&this.regexp_eatHexDigits(o)&&o.eat(125)&&tr(o.lastIntValue))return!0;N&&o.raise("Invalid unicode escape"),o.pos=I}return!1};function tr(o){return o>=0&&o<=1114111}se.regexp_eatIdentityEscape=function(o){if(o.switchU)return this.regexp_eatSyntaxCharacter(o)?!0:o.eat(47)?(o.lastIntValue=47,!0):!1;var y=o.current();return y!==99&&(!o.switchN||y!==107)?(o.lastIntValue=y,o.advance(),!0):!1},se.regexp_eatDecimalEscape=function(o){o.lastIntValue=0;var y=o.current();if(y>=49&&y<=57){do o.lastIntValue=10*o.lastIntValue+(y-48),o.advance();while((y=o.current())>=48&&y<=57);return!0}return!1},se.regexp_eatCharacterClassEscape=function(o){var y=o.current();if(rr(y))return o.lastIntValue=-1,o.advance(),!0;if(o.switchU&&this.options.ecmaVersion>=9&&(y===80||y===112)){if(o.lastIntValue=-1,o.advance(),o.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(o)&&o.eat(125))return!0;o.raise("Invalid property name")}return!1};function rr(o){return o===100||o===68||o===115||o===83||o===119||o===87}se.regexp_eatUnicodePropertyValueExpression=function(o){var y=o.pos;if(this.regexp_eatUnicodePropertyName(o)&&o.eat(61)){var I=o.lastStringValue;if(this.regexp_eatUnicodePropertyValue(o)){var N=o.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(o,I,N),!0}}if(o.pos=y,this.regexp_eatLoneUnicodePropertyNameOrValue(o)){var F=o.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(o,F),!0}return!1},se.regexp_validateUnicodePropertyNameAndValue=function(o,y,I){ie(o.unicodeProperties.nonBinary,y)||o.raise("Invalid property name"),o.unicodeProperties.nonBinary[y].test(I)||o.raise("Invalid property value")},se.regexp_validateUnicodePropertyNameOrValue=function(o,y){o.unicodeProperties.binary.test(y)||o.raise("Invalid property name")},se.regexp_eatUnicodePropertyName=function(o){var y=0;for(o.lastStringValue="";Yt(y=o.current());)o.lastStringValue+=mt(y),o.advance();return o.lastStringValue!==""};function Yt(o){return Kt(o)||o===95}se.regexp_eatUnicodePropertyValue=function(o){var y=0;for(o.lastStringValue="";ir(y=o.current());)o.lastStringValue+=mt(y),o.advance();return o.lastStringValue!==""};function ir(o){return Yt(o)||lt(o)}se.regexp_eatLoneUnicodePropertyNameOrValue=function(o){return this.regexp_eatUnicodePropertyValue(o)},se.regexp_eatCharacterClass=function(o){if(o.eat(91)){if(o.eat(94),this.regexp_classRanges(o),o.eat(93))return!0;o.raise("Unterminated character class")}return!1},se.regexp_classRanges=function(o){for(;this.regexp_eatClassAtom(o);){var y=o.lastIntValue;if(o.eat(45)&&this.regexp_eatClassAtom(o)){var I=o.lastIntValue;o.switchU&&(y===-1||I===-1)&&o.raise("Invalid character class"),y!==-1&&I!==-1&&y>I&&o.raise("Range out of order in character class")}}},se.regexp_eatClassAtom=function(o){var y=o.pos;if(o.eat(92)){if(this.regexp_eatClassEscape(o))return!0;if(o.switchU){var I=o.current();(I===99||Xt(I))&&o.raise("Invalid class escape"),o.raise("Invalid escape")}o.pos=y}var N=o.current();return N!==93?(o.lastIntValue=N,o.advance(),!0):!1},se.regexp_eatClassEscape=function(o){var y=o.pos;if(o.eat(98))return o.lastIntValue=8,!0;if(o.switchU&&o.eat(45))return o.lastIntValue=45,!0;if(!o.switchU&&o.eat(99)){if(this.regexp_eatClassControlLetter(o))return!0;o.pos=y}return this.regexp_eatCharacterClassEscape(o)||this.regexp_eatCharacterEscape(o)},se.regexp_eatClassControlLetter=function(o){var y=o.current();return lt(y)||y===95?(o.lastIntValue=y%32,o.advance(),!0):!1},se.regexp_eatHexEscapeSequence=function(o){var y=o.pos;if(o.eat(120)){if(this.regexp_eatFixedHexDigits(o,2))return!0;o.switchU&&o.raise("Invalid escape"),o.pos=y}return!1},se.regexp_eatDecimalDigits=function(o){var y=o.pos,I=0;for(o.lastIntValue=0;lt(I=o.current());)o.lastIntValue=10*o.lastIntValue+(I-48),o.advance();return o.pos!==y};function lt(o){return o>=48&&o<=57}se.regexp_eatHexDigits=function(o){var y=o.pos,I=0;for(o.lastIntValue=0;pt(I=o.current());)o.lastIntValue=16*o.lastIntValue+yt(I),o.advance();return o.pos!==y};function pt(o){return o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102}function yt(o){return o>=65&&o<=70?10+(o-65):o>=97&&o<=102?10+(o-97):o-48}se.regexp_eatLegacyOctalEscapeSequence=function(o){if(this.regexp_eatOctalDigit(o)){var y=o.lastIntValue;if(this.regexp_eatOctalDigit(o)){var I=o.lastIntValue;y<=3&&this.regexp_eatOctalDigit(o)?o.lastIntValue=y*64+I*8+o.lastIntValue:o.lastIntValue=y*8+I}else o.lastIntValue=y;return!0}return!1},se.regexp_eatOctalDigit=function(o){var y=o.current();return Xt(y)?(o.lastIntValue=y-48,o.advance(),!0):(o.lastIntValue=0,!1)};function Xt(o){return o>=48&&o<=55}se.regexp_eatFixedHexDigits=function(o,y){var I=o.pos;o.lastIntValue=0;for(var N=0;N<y;++N){var F=o.current();if(!pt(F))return o.pos=I,!1;o.lastIntValue=16*o.lastIntValue+yt(F),o.advance()}return!0};var xt=function(y){this.type=y.type,this.value=y.value,this.start=y.start,this.end=y.end,y.options.locations&&(this.loc=new le(y,y.startLoc,y.endLoc)),y.options.ranges&&(this.range=[y.start,y.end])},_e=we.prototype;_e.next=function(o){!o&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new xt(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},_e.getToken=function(){return this.next(),new xt(this)},typeof Symbol!="undefined"&&(_e[Symbol.iterator]=function(){var o=this;return{next:function(){var y=o.getToken();return{done:y.type===v.eof,value:y}}}}),_e.curContext=function(){return this.context[this.context.length-1]},_e.nextToken=function(){var o=this.curContext();if((!o||!o.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(v.eof);if(o.override)return o.override(this);this.readToken(this.fullCharCodeAtPos())},_e.readToken=function(o){return _(o,this.options.ecmaVersion>=6)||o===92?this.readWord():this.getTokenFromCode(o)},_e.fullCharCodeAtPos=function(){var o=this.input.charCodeAt(this.pos);if(o<=55295||o>=57344)return o;var y=this.input.charCodeAt(this.pos+1);return(o<<10)+y-56613888},_e.skipBlockComment=function(){var o=this.options.onComment&&this.curPosition(),y=this.pos,I=this.input.indexOf("*/",this.pos+=2);if(I===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=I+2,this.options.locations){D.lastIndex=y;for(var N;(N=D.exec(this.input))&&N.index<this.pos;)++this.curLine,this.lineStart=N.index+N[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(y+2,I),y,this.pos,o,this.curPosition())},_e.skipLineComment=function(o){for(var y=this.pos,I=this.options.onComment&&this.curPosition(),N=this.input.charCodeAt(this.pos+=o);this.pos<this.input.length&&!oe(N);)N=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(y+o,this.pos),y,this.pos,I,this.curPosition())},_e.skipSpace=function(){e:for(;this.pos<this.input.length;){var o=this.input.charCodeAt(this.pos);switch(o){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(o>8&&o<14||o>=5760&&z.test(String.fromCharCode(o)))++this.pos;else break e}}},_e.finishToken=function(o,y){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var I=this.type;this.type=o,this.value=y,this.updateContext(I)},_e.readToken_dot=function(){var o=this.input.charCodeAt(this.pos+1);if(o>=48&&o<=57)return this.readNumber(!0);var y=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&o===46&&y===46?(this.pos+=3,this.finishToken(v.ellipsis)):(++this.pos,this.finishToken(v.dot))},_e.readToken_slash=function(){var o=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):o===61?this.finishOp(v.assign,2):this.finishOp(v.slash,1)},_e.readToken_mult_modulo_exp=function(o){var y=this.input.charCodeAt(this.pos+1),I=1,N=o===42?v.star:v.modulo;return this.options.ecmaVersion>=7&&o===42&&y===42&&(++I,N=v.starstar,y=this.input.charCodeAt(this.pos+2)),y===61?this.finishOp(v.assign,I+1):this.finishOp(N,I)},_e.readToken_pipe_amp=function(o){var y=this.input.charCodeAt(this.pos+1);if(y===o){if(this.options.ecmaVersion>=12){var I=this.input.charCodeAt(this.pos+2);if(I===61)return this.finishOp(v.assign,3)}return this.finishOp(o===124?v.logicalOR:v.logicalAND,2)}return y===61?this.finishOp(v.assign,2):this.finishOp(o===124?v.bitwiseOR:v.bitwiseAND,1)},_e.readToken_caret=function(){var o=this.input.charCodeAt(this.pos+1);return o===61?this.finishOp(v.assign,2):this.finishOp(v.bitwiseXOR,1)},_e.readToken_plus_min=function(o){var y=this.input.charCodeAt(this.pos+1);return y===o?y===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||$.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(v.incDec,2):y===61?this.finishOp(v.assign,2):this.finishOp(v.plusMin,1)},_e.readToken_lt_gt=function(o){var y=this.input.charCodeAt(this.pos+1),I=1;return y===o?(I=o===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+I)===61?this.finishOp(v.assign,I+1):this.finishOp(v.bitShift,I)):y===33&&o===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(y===61&&(I=2),this.finishOp(v.relational,I))},_e.readToken_eq_excl=function(o){var y=this.input.charCodeAt(this.pos+1);return y===61?this.finishOp(v.equality,this.input.charCodeAt(this.pos+2)===61?3:2):o===61&&y===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(v.arrow)):this.finishOp(o===61?v.eq:v.prefix,1)},_e.readToken_question=function(){var o=this.options.ecmaVersion;if(o>=11){var y=this.input.charCodeAt(this.pos+1);if(y===46){var I=this.input.charCodeAt(this.pos+2);if(I<48||I>57)return this.finishOp(v.questionDot,2)}if(y===63){if(o>=12){var N=this.input.charCodeAt(this.pos+2);if(N===61)return this.finishOp(v.assign,3)}return this.finishOp(v.coalesce,2)}}return this.finishOp(v.question,1)},_e.getTokenFromCode=function(o){switch(o){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(v.parenL);case 41:return++this.pos,this.finishToken(v.parenR);case 59:return++this.pos,this.finishToken(v.semi);case 44:return++this.pos,this.finishToken(v.comma);case 91:return++this.pos,this.finishToken(v.bracketL);case 93:return++this.pos,this.finishToken(v.bracketR);case 123:return++this.pos,this.finishToken(v.braceL);case 125:return++this.pos,this.finishToken(v.braceR);case 58:return++this.pos,this.finishToken(v.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(v.backQuote);case 48:var y=this.input.charCodeAt(this.pos+1);if(y===120||y===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(y===111||y===79)return this.readRadixNumber(8);if(y===98||y===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(o);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(o);case 124:case 38:return this.readToken_pipe_amp(o);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(o);case 60:case 62:return this.readToken_lt_gt(o);case 61:case 33:return this.readToken_eq_excl(o);case 63:return this.readToken_question();case 126:return this.finishOp(v.prefix,1)}this.raise(this.pos,"Unexpected character '"+ht(o)+"'")},_e.finishOp=function(o,y){var I=this.input.slice(this.pos,this.pos+y);return this.pos+=y,this.finishToken(o,I)},_e.readRegexp=function(){for(var o,y,I=this.pos;;){this.pos>=this.input.length&&this.raise(I,"Unterminated regular expression");var N=this.input.charAt(this.pos);if($.test(N)&&this.raise(I,"Unterminated regular expression"),o)o=!1;else{if(N==="[")y=!0;else if(N==="]"&&y)y=!1;else if(N==="/"&&!y)break;o=N==="\\"}++this.pos}var F=this.input.slice(I,this.pos);++this.pos;var W=this.pos,G=this.readWord1();this.containsEsc&&this.unexpected(W);var ue=this.regexpState||(this.regexpState=new ft(this));ue.reset(I,F,G),this.validateRegExpFlags(ue),this.validateRegExpPattern(ue);var fe=null;try{fe=new RegExp(F,G)}catch(xe){}return this.finishToken(v.regexp,{pattern:F,flags:G,value:fe})},_e.readInt=function(o,y,I){for(var N=this.options.ecmaVersion>=12&&y===void 0,F=I&&this.input.charCodeAt(this.pos)===48,W=this.pos,G=0,ue=0,fe=0,xe=y??Infinity;fe<xe;++fe,++this.pos){var De=this.input.charCodeAt(this.pos),Xe=void 0;if(N&&De===95){F&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),ue===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),fe===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),ue=De;continue}if(De>=97?Xe=De-97+10:De>=65?Xe=De-65+10:De>=48&&De<=57?Xe=De-48:Xe=Infinity,Xe>=o)break;ue=De,G=G*o+Xe}return N&&ue===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===W||y!=null&&this.pos-W!==y?null:G};function nr(o,y){return y?parseInt(o,8):parseFloat(o.replace(/_/g,""))}function Wt(o){return typeof BigInt!="function"?null:BigInt(o.replace(/_/g,""))}_e.readRadixNumber=function(o){var y=this.pos;this.pos+=2;var I=this.readInt(o);return I==null&&this.raise(this.start+2,"Expected number in radix "+o),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(I=Wt(this.input.slice(y,this.pos)),++this.pos):_(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(v.num,I)},_e.readNumber=function(o){var y=this.pos;!o&&this.readInt(10,void 0,!0)===null&&this.raise(y,"Invalid number");var I=this.pos-y>=2&&this.input.charCodeAt(y)===48;I&&this.strict&&this.raise(y,"Invalid number");var N=this.input.charCodeAt(this.pos);if(!I&&!o&&this.options.ecmaVersion>=11&&N===110){var F=Wt(this.input.slice(y,this.pos));return++this.pos,_(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(v.num,F)}I&&/[89]/.test(this.input.slice(y,this.pos))&&(I=!1),N===46&&!I&&(++this.pos,this.readInt(10),N=this.input.charCodeAt(this.pos)),(N===69||N===101)&&!I&&(N=this.input.charCodeAt(++this.pos),(N===43||N===45)&&++this.pos,this.readInt(10)===null&&this.raise(y,"Invalid number")),_(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var W=nr(this.input.slice(y,this.pos),I);return this.finishToken(v.num,W)},_e.readCodePoint=function(){var o=this.input.charCodeAt(this.pos),y;if(o===123){this.options.ecmaVersion<6&&this.unexpected();var I=++this.pos;y=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,y>1114111&&this.invalidStringToken(I,"Code point out of bounds")}else y=this.readHexChar(4);return y};function ht(o){return o<=65535?String.fromCharCode(o):(o-=65536,String.fromCharCode((o>>10)+55296,(o&1023)+56320))}_e.readString=function(o){for(var y="",I=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var N=this.input.charCodeAt(this.pos);if(N===o)break;N===92?(y+=this.input.slice(I,this.pos),y+=this.readEscapedChar(!1),I=this.pos):(oe(N,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return y+=this.input.slice(I,this.pos++),this.finishToken(v.string,y)};var Bt={};_e.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(o){if(o===Bt)this.readInvalidTemplateToken();else throw o}this.inTemplateElement=!1},_e.invalidStringToken=function(o,y){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Bt;this.raise(o,y)},_e.readTmplToken=function(){for(var o="",y=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var I=this.input.charCodeAt(this.pos);if(I===96||I===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===v.template||this.type===v.invalidTemplate)?I===36?(this.pos+=2,this.finishToken(v.dollarBraceL)):(++this.pos,this.finishToken(v.backQuote)):(o+=this.input.slice(y,this.pos),this.finishToken(v.template,o));if(I===92)o+=this.input.slice(y,this.pos),o+=this.readEscapedChar(!0),y=this.pos;else if(oe(I)){o+=this.input.slice(y,this.pos),++this.pos;switch(I){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:o+=`
|
|
13
|
+
`;break;default:o+=String.fromCharCode(I);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),y=this.pos}else++this.pos}},_e.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(v.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},_e.readEscapedChar=function(o){var y=this.input.charCodeAt(++this.pos);++this.pos;switch(y){case 110:return`
|
|
14
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return ht(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(o){var I=this.pos-1;return this.invalidStringToken(I,"Invalid escape sequence in template string"),null}default:if(y>=48&&y<=55){var N=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],F=parseInt(N,8);return F>255&&(N=N.slice(0,-1),F=parseInt(N,8)),this.pos+=N.length-1,y=this.input.charCodeAt(this.pos),(N!=="0"||y===56||y===57)&&(this.strict||o)&&this.invalidStringToken(this.pos-1-N.length,o?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(F)}return oe(y)?"":String.fromCharCode(y)}},_e.readHexChar=function(o){var y=this.pos,I=this.readInt(16,o);return I===null&&this.invalidStringToken(y,"Bad character escape sequence"),I},_e.readWord1=function(){this.containsEsc=!1;for(var o="",y=!0,I=this.pos,N=this.options.ecmaVersion>=6;this.pos<this.input.length;){var F=this.fullCharCodeAtPos();if(L(F,N))this.pos+=F<=65535?1:2;else if(F===92){this.containsEsc=!0,o+=this.input.slice(I,this.pos);var W=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var G=this.readCodePoint();(y?_:L)(G,N)||this.invalidStringToken(W,"Invalid Unicode escape"),o+=ht(G),I=this.pos}else break;y=!1}return o+this.input.slice(I,this.pos)},_e.readWord=function(){var o=this.readWord1(),y=v.name;return this.keywords.test(o)&&(y=R[o]),this.finishToken(y,o)};var _t="7.4.1";we.acorn={Parser:we,version:_t,defaultOptions:J,Position:ae,SourceLocation:le,getLineInfo:X,Node:ut,TokenType:B,tokTypes:v,keywordTypes:R,TokContext:Me,tokContexts:ke,isIdentifierChar:L,isIdentifierStart:_,Token:xt,isNewLine:oe,lineBreak:$,lineBreakG:D,nonASCIIwhitespace:z};function Jt(o,y){return we.parse(o,y)}function Et(o,y,I){return we.parseExpressionAt(o,y,I)}function sr(o,y){return we.tokenizer(o,y)}r.Node=ut,r.Parser=we,r.Position=ae,r.SourceLocation=le,r.TokContext=Me,r.Token=xt,r.TokenType=B,r.defaultOptions=J,r.getLineInfo=X,r.isIdentifierChar=L,r.isIdentifierStart=_,r.isNewLine=oe,r.keywordTypes=R,r.lineBreak=$,r.lineBreakG=D,r.nonASCIIwhitespace=z,r.parse=Jt,r.parseExpressionAt=Et,r.tokContexts=ke,r.tokTypes=v,r.tokenizer=sr,r.version=_t,Object.defineProperty(r,"__esModule",{value:!0})})},{}],87:[function(T,C,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(m,f){if(f)return m;throw new Error("Unhandled discriminated union member: "+JSON.stringify(m))}t.assertNever=r,t.default=r},{}],88:[function(T,C,t){(function(r){(function(){"use strict";var m=T("object-assign");/*!
|
|
15
|
+
* The buffer module from node.js, for the browser.
|
|
16
|
+
*
|
|
17
|
+
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
18
|
+
* @license MIT
|
|
19
|
+
*/function f(K,H){if(K===H)return 0;for(var ie=K.length,pe=H.length,Te=0,ae=Math.min(ie,pe);Te<ae;++Te)if(K[Te]!==H[Te]){ie=K[Te],pe=H[Te];break}return ie<pe?-1:pe<ie?1:0}function b(K){return r.Buffer&&typeof r.Buffer.isBuffer=="function"?r.Buffer.isBuffer(K):!!(K!=null&&K._isBuffer)}var g=T("util/"),p=Object.prototype.hasOwnProperty,c=Array.prototype.slice,d=function(){return function(){}.name==="foo"}();function E(K){return Object.prototype.toString.call(K)}function x(K){return b(K)||typeof r.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(K):K?K instanceof DataView?!0:!!(K.buffer&&K.buffer instanceof ArrayBuffer):!1}var a=C.exports=A,O=/\s*function\s+([^\(\s]*)\s*/;function _(K){if(!g.isFunction(K))return;if(d)return K.name;var H=K.toString(),ie=H.match(O);return ie&&ie[1]}a.AssertionError=function(H){this.name="AssertionError",this.actual=H.actual,this.expected=H.expected,this.operator=H.operator,H.message?(this.message=H.message,this.generatedMessage=!1):(this.message=k(this),this.generatedMessage=!0);var ie=H.stackStartFunction||P;if(Error.captureStackTrace)Error.captureStackTrace(this,ie);else{var pe=new Error;if(pe.stack){var Te=pe.stack,ae=_(ie),le=Te.indexOf(`
|
|
20
|
+
`+ae);if(le>=0){var X=Te.indexOf(`
|
|
21
|
+
`,le+1);Te=Te.substring(X+1)}this.stack=Te}}},g.inherits(a.AssertionError,Error);function L(K,H){return typeof K=="string"?K.length<H?K:K.slice(0,H):K}function B(K){if(d||!g.isFunction(K))return g.inspect(K);var H=_(K),ie=H?": "+H:"";return"[Function"+ie+"]"}function k(K){return L(B(K.actual),128)+" "+K.operator+" "+L(B(K.expected),128)}function P(K,H,ie,pe,Te){throw new a.AssertionError({message:ie,actual:K,expected:H,operator:pe,stackStartFunction:Te})}a.fail=P;function A(K,H){K||P(K,!0,H,"==",a.ok)}a.ok=A,a.equal=function(H,ie,pe){H!=ie&&P(H,ie,pe,"==",a.equal)},a.notEqual=function(H,ie,pe){H==ie&&P(H,ie,pe,"!=",a.notEqual)},a.deepEqual=function(H,ie,pe){R(H,ie,!1)||P(H,ie,pe,"deepEqual",a.deepEqual)},a.deepStrictEqual=function(H,ie,pe){R(H,ie,!0)||P(H,ie,pe,"deepStrictEqual",a.deepStrictEqual)};function R(K,H,ie,pe){if(K===H)return!0;if(b(K)&&b(H))return f(K,H)===0;if(g.isDate(K)&&g.isDate(H))return K.getTime()===H.getTime();if(g.isRegExp(K)&&g.isRegExp(H))return K.source===H.source&&K.global===H.global&&K.multiline===H.multiline&&K.lastIndex===H.lastIndex&&K.ignoreCase===H.ignoreCase;if((K===null||typeof K!="object")&&(H===null||typeof H!="object"))return ie?K===H:K==H;if(x(K)&&x(H)&&E(K)===E(H)&&!(K instanceof Float32Array||K instanceof Float64Array))return f(new Uint8Array(K.buffer),new Uint8Array(H.buffer))===0;if(b(K)!==b(H))return!1;pe=pe||{actual:[],expected:[]};var Te=pe.actual.indexOf(K);return Te!==-1&&Te===pe.expected.indexOf(H)?!0:(pe.actual.push(K),pe.expected.push(H),v(K,H,ie,pe))}function j(K){return Object.prototype.toString.call(K)=="[object Arguments]"}function v(K,H,ie,pe){if(K==null||H===null||H===void 0)return!1;if(g.isPrimitive(K)||g.isPrimitive(H))return K===H;if(ie&&Object.getPrototypeOf(K)!==Object.getPrototypeOf(H))return!1;var Te=j(K),ae=j(H);if(Te&&!ae||!Te&&ae)return!1;if(Te)return K=c.call(K),H=c.call(H),R(K,H,ie);var le=re(K),X=re(H),J,Z;if(le.length!==X.length)return!1;for(le.sort(),X.sort(),Z=le.length-1;Z>=0;Z--)if(le[Z]!==X[Z])return!1;for(Z=le.length-1;Z>=0;Z--)if(J=le[Z],!R(K[J],H[J],ie,pe))return!1;return!0}a.notDeepEqual=function(H,ie,pe){R(H,ie,!1)&&P(H,ie,pe,"notDeepEqual",a.notDeepEqual)},a.notDeepStrictEqual=$;function $(K,H,ie){R(K,H,!0)&&P(K,H,ie,"notDeepStrictEqual",$)}a.strictEqual=function(H,ie,pe){H!==ie&&P(H,ie,pe,"===",a.strictEqual)},a.notStrictEqual=function(H,ie,pe){H===ie&&P(H,ie,pe,"!==",a.notStrictEqual)};function D(K,H){if(!K||!H)return!1;if(Object.prototype.toString.call(H)=="[object RegExp]")return H.test(K);try{if(K instanceof H)return!0}catch(ie){}return Error.isPrototypeOf(H)?!1:H.call({},K)===!0}function oe(K){var H;try{K()}catch(ie){H=ie}return H}function z(K,H,ie,pe){var Te;if(typeof H!="function")throw new TypeError('"block" argument must be a function');typeof ie=="string"&&(pe=ie,ie=null),Te=oe(H),pe=(ie&&ie.name?" ("+ie.name+").":".")+(pe?" "+pe:"."),K&&!Te&&P(Te,ie,"Missing expected exception"+pe);var ae=typeof pe=="string",le=!K&&g.isError(Te),X=!K&&Te&&!ie;if((le&&ae&&D(Te,ie)||X)&&P(Te,ie,"Got unwanted exception"+pe),K&&Te&&ie&&!D(Te,ie)||!K&&Te)throw Te}a.throws=function(K,H,ie){z(!0,K,H,ie)},a.doesNotThrow=function(K,H,ie){z(!1,K,H,ie)},a.ifError=function(K){if(K)throw K};function Q(K,H){K||P(K,!0,H,"==",Q)}a.strict=m(Q,a,{equal:a.strictEqual,deepEqual:a.deepStrictEqual,notEqual:a.notStrictEqual,notDeepEqual:a.notDeepStrictEqual}),a.strict.strict=a.strict;var re=Object.keys||function(K){var H=[];for(var ie in K)p.call(K,ie)&&H.push(ie);return H}}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":216,"util/":91}],89:[function(T,C,t){typeof Object.create=="function"?C.exports=function(m,f){m.super_=f,m.prototype=Object.create(f.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}})}:C.exports=function(m,f){m.super_=f;var b=function(){};b.prototype=f.prototype,m.prototype=new b,m.prototype.constructor=m}},{}],90:[function(T,C,t){C.exports=function(m){return m&&typeof m=="object"&&typeof m.copy=="function"&&typeof m.fill=="function"&&typeof m.readUInt8=="function"}},{}],91:[function(T,C,t){(function(r,m){(function(){var f=/%[sdj%]/g;t.format=function(X){if(!v(X)){for(var J=[],Z=0;Z<arguments.length;Z++)J.push(p(arguments[Z]));return J.join(" ")}for(var Z=1,he=arguments,Pe=he.length,me=String(X).replace(f,function(Ae){if(Ae==="%%")return"%";if(Z>=Pe)return Ae;switch(Ae){case"%s":return String(he[Z++]);case"%d":return Number(he[Z++]);case"%j":try{return JSON.stringify(he[Z++])}catch(Ne){return"[Circular]"}default:return Ae}}),ge=he[Z];Z<Pe;ge=he[++Z])A(ge)||!z(ge)?me+=" "+ge:me+=" "+p(ge);return me},t.deprecate=function(X,J){if(D(m.process))return function(){return t.deprecate(X,J).apply(this,arguments)};if(r.noDeprecation===!0)return X;var Z=!1;function he(){if(!Z){if(r.throwDeprecation)throw new Error(J);r.traceDeprecation?console.trace(J):console.error(J),Z=!0}return X.apply(this,arguments)}return he};var b={},g;t.debuglog=function(X){if(D(g)&&(g=r.env.NODE_DEBUG||""),X=X.toUpperCase(),!b[X])if(new RegExp("\\b"+X+"\\b","i").test(g)){var J=r.pid;b[X]=function(){var Z=t.format.apply(t,arguments);console.error("%s %d: %s",X,J,Z)}}else b[X]=function(){};return b[X]};function p(X,J){var Z={seen:[],stylize:d};return arguments.length>=3&&(Z.depth=arguments[2]),arguments.length>=4&&(Z.colors=arguments[3]),P(J)?Z.showHidden=J:J&&t._extend(Z,J),D(Z.showHidden)&&(Z.showHidden=!1),D(Z.depth)&&(Z.depth=2),D(Z.colors)&&(Z.colors=!1),D(Z.customInspect)&&(Z.customInspect=!0),Z.colors&&(Z.stylize=c),x(Z,X,Z.depth)}t.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(X,J){var Z=p.styles[J];return Z?"["+p.colors[Z][0]+"m"+X+"["+p.colors[Z][1]+"m":X}function d(X,J){return X}function E(X){var J={};return X.forEach(function(Z,he){J[Z]=!0}),J}function x(X,J,Z){if(X.customInspect&&J&&K(J.inspect)&&J.inspect!==t.inspect&&!(J.constructor&&J.constructor.prototype===J)){var he=J.inspect(Z,X);return v(he)||(he=x(X,he,Z)),he}var Pe=a(X,J);if(Pe)return Pe;var me=Object.keys(J),ge=E(me);if(X.showHidden&&(me=Object.getOwnPropertyNames(J)),re(J)&&(me.indexOf("message")>=0||me.indexOf("description")>=0))return O(J);if(me.length===0){if(K(J)){var Ae=J.name?": "+J.name:"";return X.stylize("[Function"+Ae+"]","special")}if(oe(J))return X.stylize(RegExp.prototype.toString.call(J),"regexp");if(Q(J))return X.stylize(Date.prototype.toString.call(J),"date");if(re(J))return O(J)}var Ne="",Ue=!1,Ye=["{","}"];if(k(J)&&(Ue=!0,Ye=["[","]"]),K(J)){var at=J.name?": "+J.name:"";Ne=" [Function"+at+"]"}if(oe(J)&&(Ne=" "+RegExp.prototype.toString.call(J)),Q(J)&&(Ne=" "+Date.prototype.toUTCString.call(J)),re(J)&&(Ne=" "+O(J)),me.length===0&&(!Ue||J.length==0))return Ye[0]+Ne+Ye[1];if(Z<0)return oe(J)?X.stylize(RegExp.prototype.toString.call(J),"regexp"):X.stylize("[Object]","special");X.seen.push(J);var ot;return Ue?ot=_(X,J,Z,ge,me):ot=me.map(function($e){return L(X,J,Z,ge,$e,Ue)}),X.seen.pop(),B(ot,Ne,Ye)}function a(X,J){if(D(J))return X.stylize("undefined","undefined");if(v(J)){var Z="'"+JSON.stringify(J).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return X.stylize(Z,"string")}if(j(J))return X.stylize(""+J,"number");if(P(J))return X.stylize(""+J,"boolean");if(A(J))return X.stylize("null","null")}function O(X){return"["+Error.prototype.toString.call(X)+"]"}function _(X,J,Z,he,Pe){for(var me=[],ge=0,Ae=J.length;ge<Ae;++ge)le(J,String(ge))?me.push(L(X,J,Z,he,String(ge),!0)):me.push("");return Pe.forEach(function(Ne){Ne.match(/^\d+$/)||me.push(L(X,J,Z,he,Ne,!0))}),me}function L(X,J,Z,he,Pe,me){var ge,Ae,Ne;if(Ne=Object.getOwnPropertyDescriptor(J,Pe)||{value:J[Pe]},Ne.get?Ne.set?Ae=X.stylize("[Getter/Setter]","special"):Ae=X.stylize("[Getter]","special"):Ne.set&&(Ae=X.stylize("[Setter]","special")),le(he,Pe)||(ge="["+Pe+"]"),Ae||(X.seen.indexOf(Ne.value)<0?(A(Z)?Ae=x(X,Ne.value,null):Ae=x(X,Ne.value,Z-1),Ae.indexOf(`
|
|
22
|
+
`)>-1&&(me?Ae=Ae.split(`
|
|
23
|
+
`).map(function(Ue){return" "+Ue}).join(`
|
|
24
|
+
`).substr(2):Ae=`
|
|
25
|
+
`+Ae.split(`
|
|
26
|
+
`).map(function(Ue){return" "+Ue}).join(`
|
|
27
|
+
`))):Ae=X.stylize("[Circular]","special")),D(ge)){if(me&&Pe.match(/^\d+$/))return Ae;ge=JSON.stringify(""+Pe),ge.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ge=ge.substr(1,ge.length-2),ge=X.stylize(ge,"name")):(ge=ge.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ge=X.stylize(ge,"string"))}return ge+": "+Ae}function B(X,J,Z){var he=0,Pe=X.reduce(function(me,ge){return he++,ge.indexOf(`
|
|
28
|
+
`)>=0&&he++,me+ge.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Pe>60?Z[0]+(J===""?"":J+`
|
|
29
|
+
`)+" "+X.join(`,
|
|
30
|
+
`)+" "+Z[1]:Z[0]+J+" "+X.join(", ")+" "+Z[1]}function k(X){return Array.isArray(X)}t.isArray=k;function P(X){return typeof X=="boolean"}t.isBoolean=P;function A(X){return X===null}t.isNull=A;function R(X){return X==null}t.isNullOrUndefined=R;function j(X){return typeof X=="number"}t.isNumber=j;function v(X){return typeof X=="string"}t.isString=v;function $(X){return typeof X=="symbol"}t.isSymbol=$;function D(X){return X===void 0}t.isUndefined=D;function oe(X){return z(X)&&ie(X)==="[object RegExp]"}t.isRegExp=oe;function z(X){return typeof X=="object"&&X!==null}t.isObject=z;function Q(X){return z(X)&&ie(X)==="[object Date]"}t.isDate=Q;function re(X){return z(X)&&(ie(X)==="[object Error]"||X instanceof Error)}t.isError=re;function K(X){return typeof X=="function"}t.isFunction=K;function H(X){return X===null||typeof X=="boolean"||typeof X=="number"||typeof X=="string"||typeof X=="symbol"||typeof X=="undefined"}t.isPrimitive=H,t.isBuffer=T("./support/isBuffer");function ie(X){return Object.prototype.toString.call(X)}function pe(X){return X<10?"0"+X.toString(10):X.toString(10)}var Te=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ae(){var X=new Date,J=[pe(X.getHours()),pe(X.getMinutes()),pe(X.getSeconds())].join(":");return[X.getDate(),Te[X.getMonth()],J].join(" ")}t.log=function(){console.log("%s - %s",ae(),t.format.apply(t,arguments))},t.inherits=T("inherits"),t._extend=function(X,J){if(!J||!z(J))return X;for(var Z=Object.keys(J),he=Z.length;he--;)X[Z[he]]=J[Z[he]];return X};function le(X,J){return Object.prototype.hasOwnProperty.call(X,J)}}).call(this)}).call(this,T("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":90,_process:218,inherits:89}],92:[function(T,C,t){"use strict";var r=this&&this.__createBinding||(Object.create?function(d,E,x,a){a===void 0&&(a=x),Object.defineProperty(d,a,{enumerable:!0,get:function(){return E[x]}})}:function(d,E,x,a){a===void 0&&(a=x),d[a]=E[x]}),m=this&&this.__setModuleDefault||(Object.create?function(d,E){Object.defineProperty(d,"default",{enumerable:!0,value:E})}:function(d,E){d.default=E}),f=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var E={};if(d!=null)for(var x in d)Object.hasOwnProperty.call(d,x)&&r(E,d,x);return m(E,d),E};Object.defineProperty(t,"__esModule",{value:!0});const b=f(T("@babel/types"));if(!(Array.isArray(b.TYPES)&&b.TYPES.every(d=>typeof d=="string")))throw new Error("@babel/types TYPES does not match the expected type.");const g=b.FLIPPED_ALIAS_KEYS,p=new Set(b.TYPES);if(!(g&&typeof g=="object"&&Object.keys(g).every(d=>Array.isArray(g[d])&&g[d].every(E=>typeof E=="string"))))throw new Error("@babel/types FLIPPED_ALIAS_KEYS does not match the expected type.");function c(d){const E={};for(const x in d){const a=g[x];if(a)for(const O of a)O in E?typeof d[x]=="function"?E[O].enter.push(d[x]):(d[x].enter&&E[O].enter.push(d[x].enter),d[x].exit&&E[O].exit.push(d[x].exit)):typeof d[x]=="function"?E[O]={enter:[d[x]],exit:[]}:E[O]={enter:d[x].enter?[d[x].enter]:[],exit:d[x].exit?[d[x].exit]:[]};else p.has(x)&&(x in E?typeof d[x]=="function"?E[x].enter.push(d[x]):(d[x].enter&&E[x].enter.push(d[x].enter),d[x].exit&&E[x].exit.push(d[x].exit)):typeof d[x]=="function"?E[x]={enter:[d[x]],exit:[]}:E[x]={enter:d[x].enter?[d[x].enter]:[],exit:d[x].exit?[d[x].exit]:[]})}return E}t.default=c},{"@babel/types":50}],93:[function(T,C,t){"use strict";var r=this&&this.__createBinding||(Object.create?function(a,O,_,L){L===void 0&&(L=_),Object.defineProperty(a,L,{enumerable:!0,get:function(){return O[_]}})}:function(a,O,_,L){L===void 0&&(L=_),a[L]=O[_]}),m=this&&this.__setModuleDefault||(Object.create?function(a,O){Object.defineProperty(a,"default",{enumerable:!0,value:O})}:function(a,O){a.default=O}),f=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var O={};if(a!=null)for(var _ in a)Object.hasOwnProperty.call(a,_)&&r(O,a,_);return m(O,a),O},b=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0}),t.recursive=t.ancestor=t.simple=void 0;const g=f(T("@babel/types")),p=b(T("./explode")),c=g.VISITOR_KEYS;if(!(c&&typeof c=="object"&&Object.keys(c).every(a=>Array.isArray(c[a])&&c[a].every(O=>typeof O=="string"))))throw new Error("@babel/types VISITOR_KEYS does not match the expected type.");function d(a){const O=p.default(a);return(_,L)=>{(function B(k){if(!k)return;const P=O[k.type];if(P==null?void 0:P.enter)for(const A of P.enter)A(k,L);for(const A of c[k.type]||[]){const R=k[A];if(Array.isArray(R))for(const j of R)B(j);else B(R)}if(P==null?void 0:P.exit)for(const A of P.exit)A(k,L)})(_)}}t.simple=d;function E(a){const O=p.default(a);return(_,L)=>{const B=[];(function k(P){if(!P)return;const A=O[P.type],R=P!==B[B.length-1];if(R&&B.push(P),A==null?void 0:A.enter)for(const j of A.enter)j(P,L,B);for(const j of c[P.type]||[]){const v=P[j];if(Array.isArray(v))for(const $ of v)k($);else k(v)}if(A==null?void 0:A.exit)for(const j of A.exit)j(P,L,B);R&&B.pop()})(_)}}t.ancestor=E;function x(a){const O=p.default(a);return(_,L)=>{(function B(k){if(!k)return;const P=O[k.type];if(P==null?void 0:P.enter)for(const A of P.enter)A(k,L,B);else for(const A of c[k.type]||[]){const R=k[A];if(Array.isArray(R))for(const j of R)B(j);else B(R)}})(_)}}t.recursive=x},{"./explode":92,"@babel/types":50}],94:[function(T,C,t){arguments[4][8][0].apply(t,arguments)},{dup:8}],95:[function(T,C,t){arguments[4][8][0].apply(t,arguments)},{dup:8}],96:[function(T,C,t){"use strict";var r=T("is-regex");t=C.exports=g;var m=t.TOKEN_TYPES={LINE_COMMENT:"//",BLOCK_COMMENT:"/**/",SINGLE_QUOTE:"'",DOUBLE_QUOTE:'"',TEMPLATE_QUOTE:"`",REGEXP:"//g"},f=t.BRACKETS={"(":")","{":"}","[":"]"},b={")":"(","}":"{","]":"["};t.parse=g;function g(_,L,B){B=B||{},L=L||t.defaultState();for(var k=B.start||0,P=B.end||_.length,A=k;A<P;){try{c(_[A],L)}catch(R){throw R.index=A,R}A++}return L}t.parseUntil=p;function p(_,L,B){B=B||{};for(var k=B.start||0,P=k,A=t.defaultState();P<_.length;){if((B.ignoreNesting||!A.isNesting(B))&&E(_,L,P)){var R=P;return{start:k,end:R,src:_.substring(k,R)}}try{c(_[P],A)}catch(v){throw v.index=P,v}P++}var j=new Error("The end of the string was reached with no closing bracket found.");throw j.code="CHARACTER_PARSER:END_OF_STRING_REACHED",j.index=P,j}t.parseChar=c;function c(_,L){if(_.length!==1){var B=new Error("Character must be a string of length 1");throw B.name="InvalidArgumentError",B.code="CHARACTER_PARSER:CHAR_LENGTH_NOT_ONE",B}L=L||t.defaultState(),L.src+=_;var k=L.isComment(),P=L.history?L.history[0]:"";L.regexpStart&&((_==="/"||_=="*")&&L.stack.pop(),L.regexpStart=!1);switch(L.current()){case m.LINE_COMMENT:_===`
|
|
31
|
+
`&&L.stack.pop();break;case m.BLOCK_COMMENT:L.lastChar==="*"&&_==="/"&&L.stack.pop();break;case m.SINGLE_QUOTE:_==="'"&&!L.escaped?L.stack.pop():_==="\\"&&!L.escaped?L.escaped=!0:L.escaped=!1;break;case m.DOUBLE_QUOTE:_==='"'&&!L.escaped?L.stack.pop():_==="\\"&&!L.escaped?L.escaped=!0:L.escaped=!1;break;case m.TEMPLATE_QUOTE:_==="`"&&!L.escaped?(L.stack.pop(),L.hasDollar=!1):_==="\\"&&!L.escaped?(L.escaped=!0,L.hasDollar=!1):_==="$"&&!L.escaped?L.hasDollar=!0:_==="{"&&L.hasDollar?L.stack.push(f[_]):(L.escaped=!1,L.hasDollar=!1);break;case m.REGEXP:_==="/"&&!L.escaped?L.stack.pop():_==="\\"&&!L.escaped?L.escaped=!0:L.escaped=!1;break;default:if(_ in f)L.stack.push(f[_]);else if(_ in b){if(L.current()!==_){var B=new SyntaxError("Mismatched Bracket: "+_);throw B.code="CHARACTER_PARSER:MISMATCHED_BRACKET",B}L.stack.pop()}else P==="/"&&_==="/"?(L.history=L.history.substr(1),L.stack.push(m.LINE_COMMENT)):P==="/"&&_==="*"?(L.history=L.history.substr(1),L.stack.push(m.BLOCK_COMMENT)):_==="/"&&O(L.history)?(L.stack.push(m.REGEXP),L.regexpStart=!0):_==="'"?L.stack.push(m.SINGLE_QUOTE):_==='"'?L.stack.push(m.DOUBLE_QUOTE):_==="`"&&L.stack.push(m.TEMPLATE_QUOTE);break}return!L.isComment()&&!k&&(L.history=_+L.history),L.lastChar=_,L}t.defaultState=function(){return new d};function d(){this.stack=[],this.regexpStart=!1,this.escaped=!1,this.hasDollar=!1,this.src="",this.history="",this.lastChar=""}d.prototype.current=function(){return this.stack[this.stack.length-1]},d.prototype.isString=function(){return this.current()===m.SINGLE_QUOTE||this.current()===m.DOUBLE_QUOTE||this.current()===m.TEMPLATE_QUOTE},d.prototype.isComment=function(){return this.current()===m.LINE_COMMENT||this.current()===m.BLOCK_COMMENT},d.prototype.isNesting=function(_){return _&&_.ignoreLineComment&&this.stack.length===1&&this.stack[0]===m.LINE_COMMENT?!1:!!this.stack.length};function E(_,L,B){return r(L)?L.test(_.substr(B||0)):_.substr(B||0,L.length)===L}t.isPunctuator=x;function x(_){if(!_)return!0;var L=_.charCodeAt(0);switch(L){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:case 37:case 38:case 42:case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 33:case 61:return!0;default:return!1}}t.isKeyword=a;function a(_){return _==="if"||_==="in"||_==="do"||_==="var"||_==="for"||_==="new"||_==="try"||_==="let"||_==="this"||_==="else"||_==="case"||_==="void"||_==="with"||_==="enum"||_==="while"||_==="break"||_==="catch"||_==="throw"||_==="const"||_==="yield"||_==="class"||_==="super"||_==="return"||_==="typeof"||_==="delete"||_==="switch"||_==="export"||_==="import"||_==="default"||_==="finally"||_==="extends"||_==="function"||_==="continue"||_==="debugger"||_==="package"||_==="private"||_==="interface"||_==="instanceof"||_==="implements"||_==="protected"||_==="public"||_==="static"}function O(_){return _=_.replace(/^\s*/,""),_[0]===")"?!1:_[0]==="}"||x(_[0])?!0:!!(/^\w+\b/.test(_)&&a(/^\w+\b/.exec(_)[0].split("").reverse().join("")))}},{"is-regex":103}],97:[function(T,C,t){"use strict";t.__esModule=!0;function r(m,f,b){switch(m){case"+":return f+b;case"-":return f-b;case"/":return f/b;case"%":return f%b;case"*":return f*b;case"**":return Math.pow(f,b);case"&":return f&b;case"|":return f|b;case">>":return f>>b;case">>>":return f>>>b;case"<<":return f<<b;case"^":return f^b;case"==":return f==b;case"===":return f===b;case"!=":return f!=b;case"!==":return f!==b;case"in":return f in b;case"instanceof":return f instanceof b;case">":return f>b;case"<":return f<b;case">=":return f>=b;case"<=":return f<=b}}t.default=r},{}],98:[function(T,C,t){"use strict";t.__esModule=!0;var r=T("@babel/parser"),m=T("@babel/types"),f=T("./binaryOperation");function b(k,P){P===void 0&&(P={});var A=!0;function R(v){if(!A)return;if(m.isArrayExpression(v)){for(var $=[],D=0;A&&D<v.elements.length;D++){var oe=v.elements[D];if(m.isSpreadElement(oe)){var z=R(oe.argument);g(z)&&A?$.push.apply($,z):A=!1}else m.isExpression(oe)?$.push(R(oe)):A=!1}return $}if(m.isBinaryExpression(v)){var Q=R(v.left),re=R(v.right);return A&&f.default(v.operator,Q,re)}if(m.isBooleanLiteral(v))return v.value;if(m.isCallExpression(v)){for(var K=[],D=0;A&&D<v.arguments.length;D++){var H=v.arguments[D];if(m.isSpreadElement(H)){var z=R(H.argument);g(z)&&A?K.push.apply(K,z):A=!1}else m.isExpression(H)?K.push(R(H)):A=!1}if(!A)return;if(m.isMemberExpression(v.callee)){var ie=R(v.callee.object);if(!ie||!A){A=!1;return}var pe=v.callee.computed?R(v.callee.property):m.isIdentifier(v.callee.property)?v.callee.property.name:void 0;if(pe===void 0&&!v.callee.computed&&(A=!1),!A)return;if(c(ie,""+pe))return ie[pe].apply(ie,K)}else{if(!m.isExpression(v.callee)){A=!1;return}var Te=R(v.callee);return A?Te.apply(null,K):void 0}}if(m.isConditionalExpression(v)){var ae=R(v.test);return R(ae?v.consequent:v.alternate)}if(m.isIdentifier(v)&&(P.constants&&{}.hasOwnProperty.call(P.constants,v.name)))return P.constants[v.name];if(m.isLogicalExpression(v)){var Q=R(v.left),re=R(v.right);if(A&&v.operator==="&&")return Q&&re;if(A&&v.operator==="||")return Q||re}if(m.isMemberExpression(v)){var ie=R(v.object);if(!ie||!A){A=!1;return}var pe=v.computed?R(v.property):m.isIdentifier(v.property)?v.property.name:void 0;if(pe===void 0&&!v.computed&&(A=!1),!A)return;if({}.hasOwnProperty.call(ie,""+pe)&&pe[0]!=="_")return ie[pe]}if(m.isNullLiteral(v))return null;if(m.isNumericLiteral(v))return v.value;if(m.isObjectExpression(v)){for(var le={},D=0;A&&D<v.properties.length;D++){var X=v.properties[D];if(m.isObjectProperty(X)){if(X.shorthand){A=!1;return}var J=X.computed?R(X.key):m.isIdentifier(X.key)?X.key.name:m.isStringLiteral(X.key)?X.key.value:void 0;if((!J||J[0]==="_")&&(A=!1),!A)return;if(m.isExpression(X.value)){var Z=R(X.value);if(!A)return;le[J]=Z}else A=!1}else if(m.isObjectMethod(X))A=!1;else if(m.isSpreadProperty(X)){var he=R(X.argument);if(he||(A=!1),!A)return;Object.assign(le,he)}}return le}if(m.isParenthesizedExpression(v))return R(v.expression);if(m.isRegExpLiteral(v))return new RegExp(v.pattern,v.flags);if(m.isSequenceExpression(v)){for(var D=0;D<v.expressions.length-1&&A;D++)R(v.expressions[D]);return R(v.expressions[v.expressions.length-1])}if(m.isStringLiteral(v))return v.value;if(m.isTemplateLiteral(v)){for(var Pe="",D=0;D<v.quasis.length;D++){var me=v.quasis[D];Pe+=me.value.cooked,D<v.expressions.length&&(Pe+=""+R(v.expressions[D]))}return Pe}if(m.isUnaryExpression(v)){var he=R(v.argument);if(!A)return;switch(v.operator){case"-":return-he;case"+":return+he;case"!":return!he;case"~":return~he;case"typeof":return typeof he;case"void":return}}A=!1}var j=R(k);return A?{constant:!0,result:j}:{constant:!1}}t.expressionToConstant=b;function g(k){return typeof k=="string"||Array.isArray(k)||typeof Set!="undefined"&&k instanceof Set||typeof Map!="undefined"&&k instanceof Map}function p(k,P){if(k===P)return!0;if(k&&P&&typeof k=="object"&&typeof P=="object"){for(var A in k)if(k[A]!==P[A])return!1;for(var A in P)if(k[A]!==P[A])return!1;return!0}return!1}function c(k,P){switch(typeof k){case"boolean":switch(P){case"toString":return!0;default:return!1}case"number":switch(P){case"toExponential":case"toFixed":case"toPrecision":case"toString":return!0;default:return!1}case"string":switch(P){case"charAt":case"charCodeAt":case"codePointAt":case"concat":case"endsWith":case"includes":case"indexOf":case"lastIndexOf":case"match":case"normalize":case"padEnd":case"padStart":case"repeat":case"replace":case"search":case"slice":case"split":case"startsWith":case"substr":case"substring":case"toLowerCase":case"toUpperCase":case"trim":return!0;default:return!1}default:if(k instanceof RegExp)switch(P){case"test":case"exec":return!0;default:return!1}return{}.hasOwnProperty.call(k,P)&&P[0]!=="_"}}var d={},E="",x=d,a=d,O=null,_=!1;function L(k,P,A){if(P===void 0&&(P=d),A===void 0&&(A=d),E===k&&p(x,P)&&p(a,A))return _;E=k,x=P;var R;try{R=r.parseExpression(k,A)}catch(D){return _=!1}var j=b(R,{constants:P}),v=j.result,$=j.constant;return O=v,_=$}t.isConstant=L;function B(k,P,A){if(P===void 0&&(P=d),A===void 0&&(A=d),!L(k,P,A))throw new Error(JSON.stringify(k)+" is not constant.");return O}t.toConstant=B,t.default=L,C.exports=L,C.exports.default=L,C.exports.expressionToConstant=b,C.exports.isConstant=L,C.exports.toConstant=B},{"./binaryOperation":97,"@babel/parser":5,"@babel/types":50}],99:[function(T,C,t){"use strict";C.exports={html:"<!DOCTYPE html>",xml:'<?xml version="1.0" encoding="utf-8" ?>',transitional:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',strict:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',frameset:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',"1.1":'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',basic:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">',mobile:'<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">',plist:'<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">'}},{}],100:[function(T,C,t){(function(r){(function(){"use strict";var m=r.Symbol,f=T("./shams");C.exports=function(){return typeof m!="function"||(typeof Symbol!="function"||(typeof m("foo")!="symbol"||typeof Symbol("bar")!="symbol"))?!1:f()}}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./shams":101}],101:[function(T,C,t){"use strict";C.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var m={},f=Symbol("test"),b=Object(f);if(typeof f=="string")return!1;if(Object.prototype.toString.call(f)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(b)!=="[object Symbol]")return!1;var g=42;m[f]=g;for(f in m)return!1;if(typeof Object.keys=="function"&&Object.keys(m).length!==0)return!1;if(typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(m).length!==0)return!1;var p=Object.getOwnPropertySymbols(m);if(p.length!==1||p[0]!==f)return!1;if(!Object.prototype.propertyIsEnumerable.call(m,f))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(m,f);if(c.value!==g||c.enumerable!==!0)return!1}return!0}},{}],102:[function(T,C,t){"use strict";var r=T("acorn"),m=T("object-assign");C.exports=b;var f={throw:!1,strict:!1,lineComment:!1};function b(g,p){p=m({},f,p);try{var c=new r.Parser(p,g,0);p.strict&&(c.strict=!0),p.lineComment||(c.skipLineComment=function(d){this.raise(this.pos,"Line comments not allowed in an expression")}),c.nextToken(),c.parseExpression(),c.type!==r.tokTypes.eof&&c.unexpected()}catch(d){if(!p.throw)return!1;throw d}return!0}},{acorn:86,"object-assign":216}],103:[function(T,C,t){"use strict";var r=T("has-symbols")(),m=r&&typeof Symbol.toStringTag=="symbol",f,b,g,p;if(m){f=Function.call.bind(Object.prototype.hasOwnProperty),b=Function.call.bind(RegExp.prototype.exec),g={};var c=function(){throw g};p={toString:c,valueOf:c},typeof Symbol.toPrimitive=="symbol"&&(p[Symbol.toPrimitive]=c)}var d=Object.prototype.toString,E=Object.getOwnPropertyDescriptor,x="[object RegExp]";C.exports=m?function(O){if(!O||typeof O!="object")return!1;var _=E(O,"lastIndex"),L=_&&f(_,"value");if(!L)return!1;try{b(O,p)}catch(B){return B===g}}:function(O){return!O||typeof O!="object"&&typeof O!="function"?!1:d.call(O)===x}},{"has-symbols":100}],104:[function(T,C,t){"use strict";C.exports=r;function r(m){return m instanceof Date?"new Date("+r(m.toISOString())+")":m===void 0?"undefined":JSON.stringify(m).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/</g,"\\u003C").replace(/>/g,"\\u003E").replace(/\//g,"\\u002F")}},{}],105:[function(T,C,t){var r=T("./_getNative"),m=T("./_root"),f=r(m,"DataView");C.exports=f},{"./_getNative":155,"./_root":190}],106:[function(T,C,t){var r=T("./_hashClear"),m=T("./_hashDelete"),f=T("./_hashGet"),b=T("./_hashHas"),g=T("./_hashSet");function p(c){var d=-1,E=c==null?0:c.length;for(this.clear();++d<E;){var x=c[d];this.set(x[0],x[1])}}p.prototype.clear=r,p.prototype.delete=m,p.prototype.get=f,p.prototype.has=b,p.prototype.set=g,C.exports=p},{"./_hashClear":162,"./_hashDelete":163,"./_hashGet":164,"./_hashHas":165,"./_hashSet":166}],107:[function(T,C,t){var r=T("./_listCacheClear"),m=T("./_listCacheDelete"),f=T("./_listCacheGet"),b=T("./_listCacheHas"),g=T("./_listCacheSet");function p(c){var d=-1,E=c==null?0:c.length;for(this.clear();++d<E;){var x=c[d];this.set(x[0],x[1])}}p.prototype.clear=r,p.prototype.delete=m,p.prototype.get=f,p.prototype.has=b,p.prototype.set=g,C.exports=p},{"./_listCacheClear":174,"./_listCacheDelete":175,"./_listCacheGet":176,"./_listCacheHas":177,"./_listCacheSet":178}],108:[function(T,C,t){var r=T("./_getNative"),m=T("./_root"),f=r(m,"Map");C.exports=f},{"./_getNative":155,"./_root":190}],109:[function(T,C,t){var r=T("./_mapCacheClear"),m=T("./_mapCacheDelete"),f=T("./_mapCacheGet"),b=T("./_mapCacheHas"),g=T("./_mapCacheSet");function p(c){var d=-1,E=c==null?0:c.length;for(this.clear();++d<E;){var x=c[d];this.set(x[0],x[1])}}p.prototype.clear=r,p.prototype.delete=m,p.prototype.get=f,p.prototype.has=b,p.prototype.set=g,C.exports=p},{"./_mapCacheClear":179,"./_mapCacheDelete":180,"./_mapCacheGet":181,"./_mapCacheHas":182,"./_mapCacheSet":183}],110:[function(T,C,t){var r=T("./_getNative"),m=T("./_root"),f=r(m,"Promise");C.exports=f},{"./_getNative":155,"./_root":190}],111:[function(T,C,t){var r=T("./_getNative"),m=T("./_root"),f=r(m,"Set");C.exports=f},{"./_getNative":155,"./_root":190}],112:[function(T,C,t){var r=T("./_ListCache"),m=T("./_stackClear"),f=T("./_stackDelete"),b=T("./_stackGet"),g=T("./_stackHas"),p=T("./_stackSet");function c(d){var E=this.__data__=new r(d);this.size=E.size}c.prototype.clear=m,c.prototype.delete=f,c.prototype.get=b,c.prototype.has=g,c.prototype.set=p,C.exports=c},{"./_ListCache":107,"./_stackClear":191,"./_stackDelete":192,"./_stackGet":193,"./_stackHas":194,"./_stackSet":195}],113:[function(T,C,t){var r=T("./_root"),m=r.Symbol;C.exports=m},{"./_root":190}],114:[function(T,C,t){var r=T("./_root"),m=r.Uint8Array;C.exports=m},{"./_root":190}],115:[function(T,C,t){var r=T("./_getNative"),m=T("./_root"),f=r(m,"WeakMap");C.exports=f},{"./_getNative":155,"./_root":190}],116:[function(T,C,t){function r(m,f){for(var b=-1,g=m==null?0:m.length;++b<g&&!(f(m[b],b,m)===!1););return m}C.exports=r},{}],117:[function(T,C,t){function r(m,f){for(var b=-1,g=m==null?0:m.length,p=0,c=[];++b<g;){var d=m[b];f(d,b,m)&&(c[p++]=d)}return c}C.exports=r},{}],118:[function(T,C,t){var r=T("./_baseTimes"),m=T("./isArguments"),f=T("./isArray"),b=T("./isBuffer"),g=T("./_isIndex"),p=T("./isTypedArray"),c=Object.prototype,d=c.hasOwnProperty;function E(x,a){var O=f(x),_=!O&&m(x),L=!O&&!_&&b(x),B=!O&&!_&&!L&&p(x),k=O||_||L||B,P=k?r(x.length,String):[],A=P.length;for(var R in x)(a||d.call(x,R))&&!(k&&(R=="length"||L&&(R=="offset"||R=="parent")||B&&(R=="buffer"||R=="byteLength"||R=="byteOffset")||g(R,A)))&&P.push(R);return P}C.exports=E},{"./_baseTimes":137,"./_isIndex":170,"./isArguments":199,"./isArray":200,"./isBuffer":202,"./isTypedArray":211}],119:[function(T,C,t){function r(m,f){for(var b=-1,g=f.length,p=m.length;++b<g;)m[p+b]=f[b];return m}C.exports=r},{}],120:[function(T,C,t){var r=T("./_baseAssignValue"),m=T("./eq"),f=Object.prototype,b=f.hasOwnProperty;function g(p,c,d){var E=p[c];(!(b.call(p,c)&&m(E,d))||d===void 0&&!(c in p))&&r(p,c,d)}C.exports=g},{"./_baseAssignValue":124,"./eq":198}],121:[function(T,C,t){var r=T("./eq");function m(f,b){for(var g=f.length;g--;)if(r(f[g][0],b))return g;return-1}C.exports=m},{"./eq":198}],122:[function(T,C,t){var r=T("./_copyObject"),m=T("./keys");function f(b,g){return b&&r(g,m(g),b)}C.exports=f},{"./_copyObject":146,"./keys":212}],123:[function(T,C,t){var r=T("./_copyObject"),m=T("./keysIn");function f(b,g){return b&&r(g,m(g),b)}C.exports=f},{"./_copyObject":146,"./keysIn":213}],124:[function(T,C,t){var r=T("./_defineProperty");function m(f,b,g){b=="__proto__"&&r?r(f,b,{configurable:!0,enumerable:!0,value:g,writable:!0}):f[b]=g}C.exports=m},{"./_defineProperty":150}],125:[function(T,C,t){var r=T("./_Stack"),m=T("./_arrayEach"),f=T("./_assignValue"),b=T("./_baseAssign"),g=T("./_baseAssignIn"),p=T("./_cloneBuffer"),c=T("./_copyArray"),d=T("./_copySymbols"),E=T("./_copySymbolsIn"),x=T("./_getAllKeys"),a=T("./_getAllKeysIn"),O=T("./_getTag"),_=T("./_initCloneArray"),L=T("./_initCloneByTag"),B=T("./_initCloneObject"),k=T("./isArray"),P=T("./isBuffer"),A=T("./isMap"),R=T("./isObject"),j=T("./isSet"),v=T("./keys"),$=T("./keysIn"),D=1,oe=2,z=4,Q="[object Arguments]",re="[object Array]",K="[object Boolean]",H="[object Date]",ie="[object Error]",pe="[object Function]",Te="[object GeneratorFunction]",ae="[object Map]",le="[object Number]",X="[object Object]",J="[object RegExp]",Z="[object Set]",he="[object String]",Pe="[object Symbol]",me="[object WeakMap]",ge="[object ArrayBuffer]",Ae="[object DataView]",Ne="[object Float32Array]",Ue="[object Float64Array]",Ye="[object Int8Array]",at="[object Int16Array]",ot="[object Int32Array]",$e="[object Uint8Array]",rt="[object Uint8ClampedArray]",Qe="[object Uint16Array]",He="[object Uint32Array]",Oe={};Oe[Q]=Oe[re]=Oe[ge]=Oe[Ae]=Oe[K]=Oe[H]=Oe[Ne]=Oe[Ue]=Oe[Ye]=Oe[at]=Oe[ot]=Oe[ae]=Oe[le]=Oe[X]=Oe[J]=Oe[Z]=Oe[he]=Oe[Pe]=Oe[$e]=Oe[rt]=Oe[Qe]=Oe[He]=!0,Oe[ie]=Oe[pe]=Oe[me]=!1;function tt(Ie,we,je,Be,Je,Re){var de,Ge=we&D,it=we&oe,St=we&z;if(je&&(de=Je?je(Ie,Be,Je,Re):je(Ie)),de!==void 0)return de;if(!R(Ie))return Ie;var et=k(Ie);if(et){if(de=_(Ie),!Ge)return c(Ie,de)}else{var Ze=O(Ie),nt=Ze==pe||Ze==Te;if(P(Ie))return p(Ie,Ge);if(Ze==X||Ze==Q||nt&&!Je){if(de=it||nt?{}:B(Ie),!Ge)return it?E(Ie,g(de,Ie)):d(Ie,b(de,Ie))}else{if(!Oe[Ze])return Je?Ie:{};de=L(Ie,Ze,Ge)}}Re||(Re=new r);var Ke=Re.get(Ie);if(Ke)return Ke;Re.set(Ie,de),j(Ie)?Ie.forEach(function(ce){de.add(tt(ce,we,je,ce,Ie,Re))}):A(Ie)&&Ie.forEach(function(ce,Ve){de.set(Ve,tt(ce,we,je,Ve,Ie,Re))});var ve=St?it?a:x:it?$:v,qe=et?void 0:ve(Ie);return m(qe||Ie,function(ce,Ve){qe&&(Ve=ce,ce=Ie[Ve]),f(de,Ve,tt(ce,we,je,Ve,Ie,Re))}),de}C.exports=tt},{"./_Stack":112,"./_arrayEach":116,"./_assignValue":120,"./_baseAssign":122,"./_baseAssignIn":123,"./_cloneBuffer":140,"./_copyArray":145,"./_copySymbols":147,"./_copySymbolsIn":148,"./_getAllKeys":152,"./_getAllKeysIn":153,"./_getTag":160,"./_initCloneArray":167,"./_initCloneByTag":168,"./_initCloneObject":169,"./isArray":200,"./isBuffer":202,"./isMap":205,"./isObject":206,"./isSet":210,"./keys":212,"./keysIn":213}],126:[function(T,C,t){var r=T("./isObject"),m=Object.create,f=function(){function b(){}return function(g){if(!r(g))return{};if(m)return m(g);b.prototype=g;var p=new b;return b.prototype=void 0,p}}();C.exports=f},{"./isObject":206}],127:[function(T,C,t){var r=T("./_arrayPush"),m=T("./isArray");function f(b,g,p){var c=g(b);return m(b)?c:r(c,p(b))}C.exports=f},{"./_arrayPush":119,"./isArray":200}],128:[function(T,C,t){var r=T("./_Symbol"),m=T("./_getRawTag"),f=T("./_objectToString"),b="[object Null]",g="[object Undefined]",p=r?r.toStringTag:void 0;function c(d){return d==null?d===void 0?g:b:p&&p in Object(d)?m(d):f(d)}C.exports=c},{"./_Symbol":113,"./_getRawTag":157,"./_objectToString":188}],129:[function(T,C,t){var r=T("./_baseGetTag"),m=T("./isObjectLike"),f="[object Arguments]";function b(g){return m(g)&&r(g)==f}C.exports=b},{"./_baseGetTag":128,"./isObjectLike":207}],130:[function(T,C,t){var r=T("./_getTag"),m=T("./isObjectLike"),f="[object Map]";function b(g){return m(g)&&r(g)==f}C.exports=b},{"./_getTag":160,"./isObjectLike":207}],131:[function(T,C,t){var r=T("./isFunction"),m=T("./_isMasked"),f=T("./isObject"),b=T("./_toSource"),g=/[\\^$.*+?()[\]{}|]/g,p=/^\[object .+?Constructor\]$/,c=Function.prototype,d=Object.prototype,E=c.toString,x=d.hasOwnProperty,a=RegExp("^"+E.call(x).replace(g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function O(_){if(!f(_)||m(_))return!1;var L=r(_)?a:p;return L.test(b(_))}C.exports=O},{"./_isMasked":172,"./_toSource":196,"./isFunction":203,"./isObject":206}],132:[function(T,C,t){var r=T("./_baseGetTag"),m=T("./isObjectLike"),f="[object RegExp]";function b(g){return m(g)&&r(g)==f}C.exports=b},{"./_baseGetTag":128,"./isObjectLike":207}],133:[function(T,C,t){var r=T("./_getTag"),m=T("./isObjectLike"),f="[object Set]";function b(g){return m(g)&&r(g)==f}C.exports=b},{"./_getTag":160,"./isObjectLike":207}],134:[function(T,C,t){var r=T("./_baseGetTag"),m=T("./isLength"),f=T("./isObjectLike"),b="[object Arguments]",g="[object Array]",p="[object Boolean]",c="[object Date]",d="[object Error]",E="[object Function]",x="[object Map]",a="[object Number]",O="[object Object]",_="[object RegExp]",L="[object Set]",B="[object String]",k="[object WeakMap]",P="[object ArrayBuffer]",A="[object DataView]",R="[object Float32Array]",j="[object Float64Array]",v="[object Int8Array]",$="[object Int16Array]",D="[object Int32Array]",oe="[object Uint8Array]",z="[object Uint8ClampedArray]",Q="[object Uint16Array]",re="[object Uint32Array]",K={};K[R]=K[j]=K[v]=K[$]=K[D]=K[oe]=K[z]=K[Q]=K[re]=!0,K[b]=K[g]=K[P]=K[p]=K[A]=K[c]=K[d]=K[E]=K[x]=K[a]=K[O]=K[_]=K[L]=K[B]=K[k]=!1;function H(ie){return f(ie)&&m(ie.length)&&!!K[r(ie)]}C.exports=H},{"./_baseGetTag":128,"./isLength":204,"./isObjectLike":207}],135:[function(T,C,t){var r=T("./_isPrototype"),m=T("./_nativeKeys"),f=Object.prototype,b=f.hasOwnProperty;function g(p){if(!r(p))return m(p);var c=[];for(var d in Object(p))b.call(p,d)&&d!="constructor"&&c.push(d);return c}C.exports=g},{"./_isPrototype":173,"./_nativeKeys":185}],136:[function(T,C,t){var r=T("./isObject"),m=T("./_isPrototype"),f=T("./_nativeKeysIn"),b=Object.prototype,g=b.hasOwnProperty;function p(c){if(!r(c))return f(c);var d=m(c),E=[];for(var x in c)x=="constructor"&&(d||!g.call(c,x))||E.push(x);return E}C.exports=p},{"./_isPrototype":173,"./_nativeKeysIn":186,"./isObject":206}],137:[function(T,C,t){function r(m,f){for(var b=-1,g=Array(m);++b<m;)g[b]=f(b);return g}C.exports=r},{}],138:[function(T,C,t){function r(m){return function(f){return m(f)}}C.exports=r},{}],139:[function(T,C,t){var r=T("./_Uint8Array");function m(f){var b=new f.constructor(f.byteLength);return new r(b).set(new r(f)),b}C.exports=m},{"./_Uint8Array":114}],140:[function(T,C,t){var r=T("./_root"),m=typeof t=="object"&&t&&!t.nodeType&&t,f=m&&typeof C=="object"&&C&&!C.nodeType&&C,b=f&&f.exports===m,g=b?r.Buffer:void 0,p=g?g.allocUnsafe:void 0;function c(d,E){if(E)return d.slice();var x=d.length,a=p?p(x):new d.constructor(x);return d.copy(a),a}C.exports=c},{"./_root":190}],141:[function(T,C,t){var r=T("./_cloneArrayBuffer");function m(f,b){var g=b?r(f.buffer):f.buffer;return new f.constructor(g,f.byteOffset,f.byteLength)}C.exports=m},{"./_cloneArrayBuffer":139}],142:[function(T,C,t){var r=/\w*$/;function m(f){var b=new f.constructor(f.source,r.exec(f));return b.lastIndex=f.lastIndex,b}C.exports=m},{}],143:[function(T,C,t){var r=T("./_Symbol"),m=r?r.prototype:void 0,f=m?m.valueOf:void 0;function b(g){return f?Object(f.call(g)):{}}C.exports=b},{"./_Symbol":113}],144:[function(T,C,t){var r=T("./_cloneArrayBuffer");function m(f,b){var g=b?r(f.buffer):f.buffer;return new f.constructor(g,f.byteOffset,f.length)}C.exports=m},{"./_cloneArrayBuffer":139}],145:[function(T,C,t){function r(m,f){var b=-1,g=m.length;for(f||(f=Array(g));++b<g;)f[b]=m[b];return f}C.exports=r},{}],146:[function(T,C,t){var r=T("./_assignValue"),m=T("./_baseAssignValue");function f(b,g,p,c){var d=!p;p||(p={});for(var E=-1,x=g.length;++E<x;){var a=g[E],O=c?c(p[a],b[a],a,p,b):void 0;O===void 0&&(O=b[a]),d?m(p,a,O):r(p,a,O)}return p}C.exports=f},{"./_assignValue":120,"./_baseAssignValue":124}],147:[function(T,C,t){var r=T("./_copyObject"),m=T("./_getSymbols");function f(b,g){return r(b,m(b),g)}C.exports=f},{"./_copyObject":146,"./_getSymbols":158}],148:[function(T,C,t){var r=T("./_copyObject"),m=T("./_getSymbolsIn");function f(b,g){return r(b,m(b),g)}C.exports=f},{"./_copyObject":146,"./_getSymbolsIn":159}],149:[function(T,C,t){var r=T("./_root"),m=r["__core-js_shared__"];C.exports=m},{"./_root":190}],150:[function(T,C,t){var r=T("./_getNative"),m=function(){try{var f=r(Object,"defineProperty");return f({},"",{}),f}catch(b){}}();C.exports=m},{"./_getNative":155}],151:[function(T,C,t){(function(r){(function(){var m=typeof r=="object"&&r&&r.Object===Object&&r;C.exports=m}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],152:[function(T,C,t){var r=T("./_baseGetAllKeys"),m=T("./_getSymbols"),f=T("./keys");function b(g){return r(g,f,m)}C.exports=b},{"./_baseGetAllKeys":127,"./_getSymbols":158,"./keys":212}],153:[function(T,C,t){var r=T("./_baseGetAllKeys"),m=T("./_getSymbolsIn"),f=T("./keysIn");function b(g){return r(g,f,m)}C.exports=b},{"./_baseGetAllKeys":127,"./_getSymbolsIn":159,"./keysIn":213}],154:[function(T,C,t){var r=T("./_isKeyable");function m(f,b){var g=f.__data__;return r(b)?g[typeof b=="string"?"string":"hash"]:g.map}C.exports=m},{"./_isKeyable":171}],155:[function(T,C,t){var r=T("./_baseIsNative"),m=T("./_getValue");function f(b,g){var p=m(b,g);return r(p)?p:void 0}C.exports=f},{"./_baseIsNative":131,"./_getValue":161}],156:[function(T,C,t){var r=T("./_overArg"),m=r(Object.getPrototypeOf,Object);C.exports=m},{"./_overArg":189}],157:[function(T,C,t){var r=T("./_Symbol"),m=Object.prototype,f=m.hasOwnProperty,b=m.toString,g=r?r.toStringTag:void 0;function p(c){var d=f.call(c,g),E=c[g];try{c[g]=void 0;var x=!0}catch(O){}var a=b.call(c);return x&&(d?c[g]=E:delete c[g]),a}C.exports=p},{"./_Symbol":113}],158:[function(T,C,t){var r=T("./_arrayFilter"),m=T("./stubArray"),f=Object.prototype,b=f.propertyIsEnumerable,g=Object.getOwnPropertySymbols,p=g?function(c){return c==null?[]:(c=Object(c),r(g(c),function(d){return b.call(c,d)}))}:m;C.exports=p},{"./_arrayFilter":117,"./stubArray":214}],159:[function(T,C,t){var r=T("./_arrayPush"),m=T("./_getPrototype"),f=T("./_getSymbols"),b=T("./stubArray"),g=Object.getOwnPropertySymbols,p=g?function(c){for(var d=[];c;)r(d,f(c)),c=m(c);return d}:b;C.exports=p},{"./_arrayPush":119,"./_getPrototype":156,"./_getSymbols":158,"./stubArray":214}],160:[function(T,C,t){var r=T("./_DataView"),m=T("./_Map"),f=T("./_Promise"),b=T("./_Set"),g=T("./_WeakMap"),p=T("./_baseGetTag"),c=T("./_toSource"),d="[object Map]",E="[object Object]",x="[object Promise]",a="[object Set]",O="[object WeakMap]",_="[object DataView]",L=c(r),B=c(m),k=c(f),P=c(b),A=c(g),R=p;(r&&R(new r(new ArrayBuffer(1)))!=_||m&&R(new m)!=d||f&&R(f.resolve())!=x||b&&R(new b)!=a||g&&R(new g)!=O)&&(R=function(j){var v=p(j),$=v==E?j.constructor:void 0,D=$?c($):"";if(D)switch(D){case L:return _;case B:return d;case k:return x;case P:return a;case A:return O}return v}),C.exports=R},{"./_DataView":105,"./_Map":108,"./_Promise":110,"./_Set":111,"./_WeakMap":115,"./_baseGetTag":128,"./_toSource":196}],161:[function(T,C,t){function r(m,f){return m==null?void 0:m[f]}C.exports=r},{}],162:[function(T,C,t){var r=T("./_nativeCreate");function m(){this.__data__=r?r(null):{},this.size=0}C.exports=m},{"./_nativeCreate":184}],163:[function(T,C,t){function r(m){var f=this.has(m)&&delete this.__data__[m];return this.size-=f?1:0,f}C.exports=r},{}],164:[function(T,C,t){var r=T("./_nativeCreate"),m="__lodash_hash_undefined__",f=Object.prototype,b=f.hasOwnProperty;function g(p){var c=this.__data__;if(r){var d=c[p];return d===m?void 0:d}return b.call(c,p)?c[p]:void 0}C.exports=g},{"./_nativeCreate":184}],165:[function(T,C,t){var r=T("./_nativeCreate"),m=Object.prototype,f=m.hasOwnProperty;function b(g){var p=this.__data__;return r?p[g]!==void 0:f.call(p,g)}C.exports=b},{"./_nativeCreate":184}],166:[function(T,C,t){var r=T("./_nativeCreate"),m="__lodash_hash_undefined__";function f(b,g){var p=this.__data__;return this.size+=this.has(b)?0:1,p[b]=r&&g===void 0?m:g,this}C.exports=f},{"./_nativeCreate":184}],167:[function(T,C,t){var r=Object.prototype,m=r.hasOwnProperty;function f(b){var g=b.length,p=new b.constructor(g);return g&&typeof b[0]=="string"&&m.call(b,"index")&&(p.index=b.index,p.input=b.input),p}C.exports=f},{}],168:[function(T,C,t){var r=T("./_cloneArrayBuffer"),m=T("./_cloneDataView"),f=T("./_cloneRegExp"),b=T("./_cloneSymbol"),g=T("./_cloneTypedArray"),p="[object Boolean]",c="[object Date]",d="[object Map]",E="[object Number]",x="[object RegExp]",a="[object Set]",O="[object String]",_="[object Symbol]",L="[object ArrayBuffer]",B="[object DataView]",k="[object Float32Array]",P="[object Float64Array]",A="[object Int8Array]",R="[object Int16Array]",j="[object Int32Array]",v="[object Uint8Array]",$="[object Uint8ClampedArray]",D="[object Uint16Array]",oe="[object Uint32Array]";function z(Q,re,K){var H=Q.constructor;switch(re){case L:return r(Q);case p:case c:return new H(+Q);case B:return m(Q,K);case k:case P:case A:case R:case j:case v:case $:case D:case oe:return g(Q,K);case d:return new H;case E:case O:return new H(Q);case x:return f(Q);case a:return new H;case _:return b(Q)}}C.exports=z},{"./_cloneArrayBuffer":139,"./_cloneDataView":141,"./_cloneRegExp":142,"./_cloneSymbol":143,"./_cloneTypedArray":144}],169:[function(T,C,t){var r=T("./_baseCreate"),m=T("./_getPrototype"),f=T("./_isPrototype");function b(g){return typeof g.constructor=="function"&&!f(g)?r(m(g)):{}}C.exports=b},{"./_baseCreate":126,"./_getPrototype":156,"./_isPrototype":173}],170:[function(T,C,t){var r=9007199254740991,m=/^(?:0|[1-9]\d*)$/;function f(b,g){var p=typeof b;return g=g??r,!!g&&(p=="number"||p!="symbol"&&m.test(b))&&(b>-1&&b%1==0)&&b<g}C.exports=f},{}],171:[function(T,C,t){function r(m){var f=typeof m;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?m!=="__proto__":m===null}C.exports=r},{}],172:[function(T,C,t){var r=T("./_coreJsData"),m=function(){var b=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return b?"Symbol(src)_1."+b:""}();function f(b){return!!m&&m in b}C.exports=f},{"./_coreJsData":149}],173:[function(T,C,t){var r=Object.prototype;function m(f){var b=f&&f.constructor,g=typeof b=="function"&&b.prototype||r;return f===g}C.exports=m},{}],174:[function(T,C,t){function r(){this.__data__=[],this.size=0}C.exports=r},{}],175:[function(T,C,t){var r=T("./_assocIndexOf"),m=Array.prototype,f=m.splice;function b(g){var p=this.__data__,c=r(p,g);if(c<0)return!1;var d=p.length-1;return c==d?p.pop():f.call(p,c,1),--this.size,!0}C.exports=b},{"./_assocIndexOf":121}],176:[function(T,C,t){var r=T("./_assocIndexOf");function m(f){var b=this.__data__,g=r(b,f);return g<0?void 0:b[g][1]}C.exports=m},{"./_assocIndexOf":121}],177:[function(T,C,t){var r=T("./_assocIndexOf");function m(f){return r(this.__data__,f)>-1}C.exports=m},{"./_assocIndexOf":121}],178:[function(T,C,t){var r=T("./_assocIndexOf");function m(f,b){var g=this.__data__,p=r(g,f);return p<0?(++this.size,g.push([f,b])):g[p][1]=b,this}C.exports=m},{"./_assocIndexOf":121}],179:[function(T,C,t){var r=T("./_Hash"),m=T("./_ListCache"),f=T("./_Map");function b(){this.size=0,this.__data__={hash:new r,map:new(f||m),string:new r}}C.exports=b},{"./_Hash":106,"./_ListCache":107,"./_Map":108}],180:[function(T,C,t){var r=T("./_getMapData");function m(f){var b=r(this,f).delete(f);return this.size-=b?1:0,b}C.exports=m},{"./_getMapData":154}],181:[function(T,C,t){var r=T("./_getMapData");function m(f){return r(this,f).get(f)}C.exports=m},{"./_getMapData":154}],182:[function(T,C,t){var r=T("./_getMapData");function m(f){return r(this,f).has(f)}C.exports=m},{"./_getMapData":154}],183:[function(T,C,t){var r=T("./_getMapData");function m(f,b){var g=r(this,f),p=g.size;return g.set(f,b),this.size+=g.size==p?0:1,this}C.exports=m},{"./_getMapData":154}],184:[function(T,C,t){var r=T("./_getNative"),m=r(Object,"create");C.exports=m},{"./_getNative":155}],185:[function(T,C,t){var r=T("./_overArg"),m=r(Object.keys,Object);C.exports=m},{"./_overArg":189}],186:[function(T,C,t){function r(m){var f=[];if(m!=null)for(var b in Object(m))f.push(b);return f}C.exports=r},{}],187:[function(T,C,t){var r=T("./_freeGlobal"),m=typeof t=="object"&&t&&!t.nodeType&&t,f=m&&typeof C=="object"&&C&&!C.nodeType&&C,b=f&&f.exports===m,g=b&&r.process,p=function(){try{var c=f&&f.require&&f.require("util").types;return c||g&&g.binding&&g.binding("util")}catch(d){}}();C.exports=p},{"./_freeGlobal":151}],188:[function(T,C,t){var r=Object.prototype,m=r.toString;function f(b){return m.call(b)}C.exports=f},{}],189:[function(T,C,t){function r(m,f){return function(b){return m(f(b))}}C.exports=r},{}],190:[function(T,C,t){var r=T("./_freeGlobal"),m=typeof self=="object"&&self&&self.Object===Object&&self,f=r||m||Function("return this")();C.exports=f},{"./_freeGlobal":151}],191:[function(T,C,t){var r=T("./_ListCache");function m(){this.__data__=new r,this.size=0}C.exports=m},{"./_ListCache":107}],192:[function(T,C,t){function r(m){var f=this.__data__,b=f.delete(m);return this.size=f.size,b}C.exports=r},{}],193:[function(T,C,t){function r(m){return this.__data__.get(m)}C.exports=r},{}],194:[function(T,C,t){function r(m){return this.__data__.has(m)}C.exports=r},{}],195:[function(T,C,t){var r=T("./_ListCache"),m=T("./_Map"),f=T("./_MapCache"),b=200;function g(p,c){var d=this.__data__;if(d instanceof r){var E=d.__data__;if(!m||E.length<b-1)return E.push([p,c]),this.size=++d.size,this;d=this.__data__=new f(E)}return d.set(p,c),this.size=d.size,this}C.exports=g},{"./_ListCache":107,"./_Map":108,"./_MapCache":109}],196:[function(T,C,t){var r=Function.prototype,m=r.toString;function f(b){if(b!=null){try{return m.call(b)}catch(g){}try{return b+""}catch(g){}}return""}C.exports=f},{}],197:[function(T,C,t){var r=T("./_baseClone"),m=4;function f(b){return r(b,m)}C.exports=f},{"./_baseClone":125}],198:[function(T,C,t){function r(m,f){return m===f||m!==m&&f!==f}C.exports=r},{}],199:[function(T,C,t){var r=T("./_baseIsArguments"),m=T("./isObjectLike"),f=Object.prototype,b=f.hasOwnProperty,g=f.propertyIsEnumerable,p=r(function(){return arguments}())?r:function(c){return m(c)&&b.call(c,"callee")&&!g.call(c,"callee")};C.exports=p},{"./_baseIsArguments":129,"./isObjectLike":207}],200:[function(T,C,t){var r=Array.isArray;C.exports=r},{}],201:[function(T,C,t){var r=T("./isFunction"),m=T("./isLength");function f(b){return b!=null&&m(b.length)&&!r(b)}C.exports=f},{"./isFunction":203,"./isLength":204}],202:[function(T,C,t){var r=T("./_root"),m=T("./stubFalse"),f=typeof t=="object"&&t&&!t.nodeType&&t,b=f&&typeof C=="object"&&C&&!C.nodeType&&C,g=b&&b.exports===f,p=g?r.Buffer:void 0,c=p?p.isBuffer:void 0,d=c||m;C.exports=d},{"./_root":190,"./stubFalse":215}],203:[function(T,C,t){var r=T("./_baseGetTag"),m=T("./isObject"),f="[object AsyncFunction]",b="[object Function]",g="[object GeneratorFunction]",p="[object Proxy]";function c(d){if(!m(d))return!1;var E=r(d);return E==b||E==g||E==f||E==p}C.exports=c},{"./_baseGetTag":128,"./isObject":206}],204:[function(T,C,t){var r=9007199254740991;function m(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=r}C.exports=m},{}],205:[function(T,C,t){var r=T("./_baseIsMap"),m=T("./_baseUnary"),f=T("./_nodeUtil"),b=f&&f.isMap,g=b?m(b):r;C.exports=g},{"./_baseIsMap":130,"./_baseUnary":138,"./_nodeUtil":187}],206:[function(T,C,t){function r(m){var f=typeof m;return m!=null&&(f=="object"||f=="function")}C.exports=r},{}],207:[function(T,C,t){function r(m){return m!=null&&typeof m=="object"}C.exports=r},{}],208:[function(T,C,t){var r=T("./_baseGetTag"),m=T("./_getPrototype"),f=T("./isObjectLike"),b="[object Object]",g=Function.prototype,p=Object.prototype,c=g.toString,d=p.hasOwnProperty,E=c.call(Object);function x(a){if(!f(a)||r(a)!=b)return!1;var O=m(a);if(O===null)return!0;var _=d.call(O,"constructor")&&O.constructor;return typeof _=="function"&&_ instanceof _&&c.call(_)==E}C.exports=x},{"./_baseGetTag":128,"./_getPrototype":156,"./isObjectLike":207}],209:[function(T,C,t){var r=T("./_baseIsRegExp"),m=T("./_baseUnary"),f=T("./_nodeUtil"),b=f&&f.isRegExp,g=b?m(b):r;C.exports=g},{"./_baseIsRegExp":132,"./_baseUnary":138,"./_nodeUtil":187}],210:[function(T,C,t){var r=T("./_baseIsSet"),m=T("./_baseUnary"),f=T("./_nodeUtil"),b=f&&f.isSet,g=b?m(b):r;C.exports=g},{"./_baseIsSet":133,"./_baseUnary":138,"./_nodeUtil":187}],211:[function(T,C,t){var r=T("./_baseIsTypedArray"),m=T("./_baseUnary"),f=T("./_nodeUtil"),b=f&&f.isTypedArray,g=b?m(b):r;C.exports=g},{"./_baseIsTypedArray":134,"./_baseUnary":138,"./_nodeUtil":187}],212:[function(T,C,t){var r=T("./_arrayLikeKeys"),m=T("./_baseKeys"),f=T("./isArrayLike");function b(g){return f(g)?r(g):m(g)}C.exports=b},{"./_arrayLikeKeys":118,"./_baseKeys":135,"./isArrayLike":201}],213:[function(T,C,t){var r=T("./_arrayLikeKeys"),m=T("./_baseKeysIn"),f=T("./isArrayLike");function b(g){return f(g)?r(g,!0):m(g)}C.exports=b},{"./_arrayLikeKeys":118,"./_baseKeysIn":136,"./isArrayLike":201}],214:[function(T,C,t){function r(){return[]}C.exports=r},{}],215:[function(T,C,t){function r(){return!1}C.exports=r},{}],216:[function(T,C,t){/*
|
|
32
|
+
object-assign
|
|
33
|
+
(c) Sindre Sorhus
|
|
34
|
+
@license MIT
|
|
35
|
+
*/"use strict";var r=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;function b(p){if(p==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(p)}function g(){try{if(!Object.assign)return!1;var p=new String("abc");if(p[5]="de",Object.getOwnPropertyNames(p)[0]==="5")return!1;for(var c={},d=0;d<10;d++)c["_"+String.fromCharCode(d)]=d;var E=Object.getOwnPropertyNames(c).map(function(a){return c[a]});if(E.join("")!=="0123456789")return!1;var x={};return"abcdefghijklmnopqrst".split("").forEach(function(a){x[a]=a}),!(Object.keys(Object.assign({},x)).join("")!=="abcdefghijklmnopqrst")}catch(a){return!1}}C.exports=g()?Object.assign:function(p,c){for(var d,E=b(p),x,a=1;a<arguments.length;a++){d=Object(arguments[a]);for(var O in d)m.call(d,O)&&(E[O]=d[O]);if(r){x=r(d);for(var _=0;_<x.length;_++)f.call(d,x[_])&&(E[x[_]]=d[x[_]])}}return E}},{}],217:[function(T,C,t){(function(r){(function(){function m(p,c){for(var d=0,E=p.length-1;E>=0;E--){var x=p[E];x==="."?p.splice(E,1):x===".."?(p.splice(E,1),d++):d&&(p.splice(E,1),d--)}if(c)for(;d--;d)p.unshift("..");return p}t.resolve=function(){for(var p="",c=!1,d=arguments.length-1;d>=-1&&!c;d--){var E=d>=0?arguments[d]:r.cwd();if(typeof E!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!E)continue;p=E+"/"+p,c=E.charAt(0)==="/"}return p=m(b(p.split("/"),function(x){return!!x}),!c).join("/"),(c?"/":"")+p||"."},t.normalize=function(p){var c=t.isAbsolute(p),d=g(p,-1)==="/";return p=m(b(p.split("/"),function(E){return!!E}),!c).join("/"),!p&&!c&&(p="."),p&&d&&(p+="/"),(c?"/":"")+p},t.isAbsolute=function(p){return p.charAt(0)==="/"},t.join=function(){var p=Array.prototype.slice.call(arguments,0);return t.normalize(b(p,function(c,d){if(typeof c!="string")throw new TypeError("Arguments to path.join must be strings");return c}).join("/"))},t.relative=function(p,c){p=t.resolve(p).substr(1),c=t.resolve(c).substr(1);function d(B){for(var k=0;k<B.length&&!(B[k]!=="");k++);for(var P=B.length-1;P>=0&&!(B[P]!=="");P--);return k>P?[]:B.slice(k,P-k+1)}for(var E=d(p.split("/")),x=d(c.split("/")),a=Math.min(E.length,x.length),O=a,_=0;_<a;_++)if(E[_]!==x[_]){O=_;break}for(var L=[],_=O;_<E.length;_++)L.push("..");return L=L.concat(x.slice(O)),L.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(p){if(typeof p!="string"&&(p=p+""),p.length===0)return".";for(var c=p.charCodeAt(0),d=c===47,E=-1,x=!0,a=p.length-1;a>=1;--a)if(c=p.charCodeAt(a),c===47){if(!x){E=a;break}}else x=!1;return E===-1?d?"/":".":d&&E===1?"/":p.slice(0,E)};function f(p){typeof p!="string"&&(p=p+"");var c=0,d=-1,E=!0,x;for(x=p.length-1;x>=0;--x)if(p.charCodeAt(x)===47){if(!E){c=x+1;break}}else d===-1&&(E=!1,d=x+1);return d===-1?"":p.slice(c,d)}t.basename=function(p,c){var d=f(p);return c&&d.substr(-1*c.length)===c&&(d=d.substr(0,d.length-c.length)),d},t.extname=function(p){typeof p!="string"&&(p=p+"");for(var c=-1,d=0,E=-1,x=!0,a=0,O=p.length-1;O>=0;--O){var _=p.charCodeAt(O);if(_===47){if(!x){d=O+1;break}continue}E===-1&&(x=!1,E=O+1),_===46?c===-1?c=O:a!==1&&(a=1):c!==-1&&(a=-1)}return c===-1||E===-1||a===0||a===1&&c===E-1&&c===d+1?"":p.slice(c,E)};function b(p,c){if(p.filter)return p.filter(c);for(var d=[],E=0;E<p.length;E++)c(p[E],E,p)&&d.push(p[E]);return d}var g="ab".substr(-1)==="b"?function(p,c,d){return p.substr(c,d)}:function(p,c,d){return c<0&&(c=p.length+c),p.substr(c,d)}}).call(this)}).call(this,T("_process"))},{_process:218}],218:[function(T,C,t){var r=C.exports={},m,f;function b(){throw new Error("setTimeout has not been defined")}function g(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?m=setTimeout:m=b}catch(k){m=b}try{typeof clearTimeout=="function"?f=clearTimeout:f=g}catch(k){f=g}})();function p(k){if(m===setTimeout)return setTimeout(k,0);if((m===b||!m)&&setTimeout)return m=setTimeout,setTimeout(k,0);try{return m(k,0)}catch(P){try{return m.call(null,k,0)}catch(A){return m.call(this,k,0)}}}function c(k){if(f===clearTimeout)return clearTimeout(k);if((f===g||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(k);try{return f(k)}catch(P){try{return f.call(null,k)}catch(A){return f.call(this,k)}}}var d=[],E=!1,x,a=-1;function O(){if(!E||!x)return;E=!1,x.length?d=x.concat(d):a=-1,d.length&&_()}function _(){if(E)return;var k=p(O);E=!0;for(var P=d.length;P;){for(x=d,d=[];++a<P;)x&&x[a].run();a=-1,P=d.length}x=null,E=!1,c(k)}r.nextTick=function(k){var P=new Array(arguments.length-1);if(arguments.length>1)for(var A=1;A<arguments.length;A++)P[A-1]=arguments[A];d.push(new L(k,P)),d.length===1&&!E&&p(_)};function L(k,P){this.fun=k,this.array=P}L.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={};function B(){}r.on=B,r.addListener=B,r.once=B,r.off=B,r.removeListener=B,r.removeAllListeners=B,r.emit=B,r.prependListener=B,r.prependOnceListener=B,r.listeners=function(k){return[]},r.binding=function(k){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(k){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},{}],219:[function(T,C,t){"use strict";var r=T("assert"),m=T("constantinople"),f=T("pug-runtime"),b=T("js-stringify");function g(d){return m(d,{pug:f,pug_interp:void 0})}function p(d){return m.toConstant(d,{pug:f,pug_interp:void 0})}C.exports=c;function c(d,E){r(Array.isArray(d),"Attrs should be an array"),r(d.every(function(B){return B&&typeof B=="object"&&typeof B.name=="string"&&(typeof B.val=="string"||typeof B.val=="boolean")&&typeof B.mustEscape=="boolean"}),"All attributes should be supplied as an object of the form {name, val, mustEscape}"),r(E&&typeof E=="object","Options should be an object"),r(typeof E.terse=="boolean","Options.terse should be a boolean"),r(typeof E.runtime=="function","Options.runtime should be a function that takes a runtime function name and returns the source code that will evaluate to that function at runtime"),r(E.format==="html"||E.format==="object",'Options.format should be "html" or "object"');var x=[],a=[],O=[];function _(B,k,P,A){if(g(k))if(E.format==="html"){var R=b(f.attr(B,p(k),P,E.terse)),j=A[A.length-1];j&&j[j.length-1]===R[0]?A[A.length-1]=j.substr(0,j.length-1)+R.substr(1):A.push(R)}else k=p(k),P&&(k=f.escape(k)),A.push(b(B)+": "+b(k));else E.format==="html"?A.push(E.runtime("attr")+'("'+B+'", '+k+", "+b(P)+", "+b(E.terse)+")"):(P&&(k=E.runtime("escape")+"("+k+")"),A.push(b(B)+": "+k))}d.forEach(function(B){var k=B.name,P=B.val,A=B.mustEscape;k==="class"?(a.push(P),O.push(A)):(k==="style"&&(g(P)?P=b(f.style(p(P))):P=E.runtime("style")+"("+P+")"),_(k,P,A,x))});var L=[];return a.length&&(a.every(g)?_("class",b(f.classes(a.map(p),O)),!1,L):(a=a.map(function(B,k){return g(B)&&(B=b(O[k]?f.escape(p(B)):p(B)),O[k]=!1),B}),_("class",E.runtime("classes")+"(["+a.join(",")+"], "+b(O)+")",!1,L))),x=L.concat(x),E.format==="html"?x.length?x.join("+"):'""':"{"+x.join(",")+"}"}},{assert:88,constantinople:98,"js-stringify":104,"pug-runtime":228}],220:[function(T,C,t){"use strict";var r=T("doctypes"),m=T("pug-error"),f=T("pug-runtime/build"),b=T("pug-runtime"),g=T("pug-attrs"),p=T("void-elements"),c=T("constantinople"),d=T("js-stringify"),E=T("with"),x={pre:!0,textarea:!0},a=["pug","pug_mixins","pug_interp","pug_debug_filename","pug_debug_line","pug_debug_sources","pug_html"];C.exports=O,C.exports.CodeGenerator=B;function O(P,A){return new B(P,A).compile()}function _(P){return c(P,{pug:b,pug_interp:void 0})}function L(P){return c.toConstant(P,{pug:b,pug_interp:void 0})}function B(P,A){this.options=A=A||{},this.node=P,this.bufferedConcatenationCount=0,this.hasCompiledDoctype=!1,this.hasCompiledTag=!1,this.pp=A.pretty||!1,this.pp&&typeof this.pp!="string"&&(this.pp=" "),this.debug=A.compileDebug!==!1,this.indents=0,this.parentIndents=0,this.terse=!1,this.mixins={},this.dynamicMixins=!1,this.eachCount=0,A.doctype&&this.setDoctype(A.doctype),this.runtimeFunctionsUsed=[],this.inlineRuntimeFunctions=A.inlineRuntimeFunctions||!1,this.debug&&this.inlineRuntimeFunctions&&this.runtimeFunctionsUsed.push("rethrow")}B.prototype={runtime:function(P){return this.inlineRuntimeFunctions?(this.runtimeFunctionsUsed.push(P),"pug_"+P):"pug."+P},error:function(P,A,R){var j=m(A,P,{line:R.line,column:R.column,filename:R.filename});throw j},compile:function(){if(this.buf=[],this.pp&&this.buf.push("var pug_indent = [];"),this.lastBufferedIdx=-1,this.visit(this.node),!this.dynamicMixins)for(var P=Object.keys(this.mixins),A=0;A<P.length;A++){var R=this.mixins[P[A]];if(!R.used)for(var j=0;j<R.instances.length;j++)for(var v=R.instances[j].start;v<R.instances[j].end;v++)this.buf[v]=""}var $=this.buf.join(`
|
|
36
|
+
`),D=this.options.globals?this.options.globals.concat(a):a;return this.options.self?$="var self = locals || {};"+$:$=E("locals || {}",$,D.concat(this.runtimeFunctionsUsed.map(function(oe){return"pug_"+oe}))),this.debug&&(this.options.includeSources&&($="var pug_debug_sources = "+d(this.options.includeSources)+`;
|
|
37
|
+
`+$),$="var pug_debug_filename, pug_debug_line;try {"+$+"} catch (err) {"+(this.inlineRuntimeFunctions?"pug_rethrow":"pug.rethrow")+"(err, pug_debug_filename, pug_debug_line"+(this.options.includeSources?", pug_debug_sources[pug_debug_filename]":"")+");}"),f(this.runtimeFunctionsUsed)+"function "+(this.options.templateName||"template")+'(locals) {var pug_html = "", pug_mixins = {}, pug_interp;'+$+";return pug_html;}"},setDoctype:function(P){this.doctype=r[P.toLowerCase()]||"<!DOCTYPE "+P+">",this.terse=this.doctype.toLowerCase()=="<!doctype html>",this.xml=this.doctype.indexOf("<?xml")==0},buffer:function(P){var A=this;P=d(P),P=P.substr(1,P.length-2),this.lastBufferedIdx==this.buf.length&&this.bufferedConcatenationCount<100?(this.lastBufferedType==="code"&&(this.lastBuffered+=' + "',this.bufferedConcatenationCount++),this.lastBufferedType="text",this.lastBuffered+=P,this.buf[this.lastBufferedIdx-1]="pug_html = pug_html + "+this.bufferStartChar+this.lastBuffered+'";'):(this.bufferedConcatenationCount=0,this.buf.push('pug_html = pug_html + "'+P+'";'),this.lastBufferedType="text",this.bufferStartChar='"',this.lastBuffered=P,this.lastBufferedIdx=this.buf.length)},bufferExpression:function(P){if(_(P))return this.buffer(L(P)+"");this.lastBufferedIdx==this.buf.length&&this.bufferedConcatenationCount<100?(this.bufferedConcatenationCount++,this.lastBufferedType==="text"&&(this.lastBuffered+='"'),this.lastBufferedType="code",this.lastBuffered+=" + ("+P+")",this.buf[this.lastBufferedIdx-1]="pug_html = pug_html + ("+this.bufferStartChar+this.lastBuffered+");"):(this.bufferedConcatenationCount=0,this.buf.push("pug_html = pug_html + ("+P+");"),this.lastBufferedType="code",this.bufferStartChar="",this.lastBuffered="("+P+")",this.lastBufferedIdx=this.buf.length)},prettyIndent:function(P,A){P=P||0,A=A?`
|
|
38
|
+
`:"",this.buffer(A+Array(this.indents+P).join(this.pp)),this.parentIndents&&this.buf.push('pug_html = pug_html + pug_indent.join("");')},visit:function(P,A){var R=this.debug;if(!P){var j;throw A?j="A child of "+A.type+" ("+(A.filename||"Pug")+":"+A.line+")":j="A top-level node",j+=" is "+P+", expected a Pug AST Node.",new TypeError(j)}if(R&&P.debug!==!1&&P.type!=="Block"&&P.line){var v=";pug_debug_line = "+P.line;P.filename&&(v+=";pug_debug_filename = "+d(P.filename)),this.buf.push(v+";")}if(!this["visit"+P.type]){var j;A?j="A child of "+A.type:j="A top-level node",j+=" ("+(P.filename||"Pug")+":"+P.line+") is of type "+P.type+", which is not supported by pug-code-gen.";switch(P.type){case"Filter":j+=" Please use pug-filters to preprocess this AST.";break;case"Extends":case"Include":case"NamedBlock":case"FileReference":j+=" Please use pug-linker to preprocess this AST.";break}throw new TypeError(j)}this.visitNode(P)},visitNode:function(P){return this["visit"+P.type](P)},visitCase:function(P){this.buf.push("switch ("+P.expr+"){"),this.visit(P.block,P),this.buf.push("}")},visitWhen:function(P){P.expr=="default"?this.buf.push("default:"):this.buf.push("case "+P.expr+":"),P.block&&(this.visit(P.block,P),this.buf.push(" break;"))},visitLiteral:function(P){this.buffer(P.str)},visitNamedBlock:function(P){return this.visitBlock(P)},visitBlock:function(P){var A=this.escapePrettyMode,R=this.pp;R&&P.nodes.length>1&&!A&&P.nodes[0].type==="Text"&&P.nodes[1].type==="Text"&&this.prettyIndent(1,!0);for(var j=0;j<P.nodes.length;++j)R&&j>0&&!A&&P.nodes[j].type==="Text"&&P.nodes[j-1].type==="Text"&&/\n$/.test(P.nodes[j-1].val)&&this.prettyIndent(1,!1),this.visit(P.nodes[j],P)},visitMixinBlock:function(P){this.pp&&this.buf.push("pug_indent.push('"+Array(this.indents+1).join(this.pp)+"');"),this.buf.push("block && block();"),this.pp&&this.buf.push("pug_indent.pop();")},visitDoctype:function(P){P&&(P.val||!this.doctype)&&this.setDoctype(P.val||"html"),this.doctype&&this.buffer(this.doctype),this.hasCompiledDoctype=!0},visitMixin:function(P){var A="pug_mixins[",R=P.args||"",j=P.block,v=P.attrs,$=this.attributeBlocks(P.attributeBlocks),D=this.pp,oe=P.name[0]==="#",z=P.name;if(oe&&(this.dynamicMixins=!0),A+=(oe?P.name.substr(2,P.name.length-3):'"'+P.name+'"')+"]",this.mixins[z]=this.mixins[z]||{used:!1,instances:[]},P.call){if(this.mixins[z].used=!0,D&&this.buf.push("pug_indent.push('"+Array(this.indents+1).join(D)+"');"),j||v.length||$.length){if(this.buf.push(A+".call({"),j){this.buf.push("block: function(){"),this.parentIndents++;var Q=this.indents;this.indents=0,this.visit(P.block,P),this.indents=Q,this.parentIndents--,v.length||$.length?this.buf.push("},"):this.buf.push("}")}if($.length){if(v.length){var re=this.attrs(v);$.unshift(re)}$.length>1?this.buf.push("attributes: "+this.runtime("merge")+"(["+$.join(",")+"])"):this.buf.push("attributes: "+$[0])}else if(v.length){var re=this.attrs(v);this.buf.push("attributes: "+re)}R?this.buf.push("}, "+R+");"):this.buf.push("});")}else this.buf.push(A+"("+R+");");D&&this.buf.push("pug_indent.pop();")}else{var K=this.buf.length;R=R?R.split(","):[];var H;R.length&&/^\.\.\./.test(R[R.length-1].trim())&&(H=R.pop().trim().replace(/^\.\.\./,"")),this.buf.push(A+" = pug_interp = function("+R.join(",")+"){"),this.buf.push("var block = (this && this.block), attributes = (this && this.attributes) || {};"),H&&(this.buf.push("var "+H+" = [];"),this.buf.push("for (pug_interp = "+R.length+"; pug_interp < arguments.length; pug_interp++) {"),this.buf.push(" "+H+".push(arguments[pug_interp]);"),this.buf.push("}")),this.parentIndents++,this.visit(j,P),this.parentIndents--,this.buf.push("};");var ie=this.buf.length;this.mixins[z].instances.push({start:K,end:ie})}},visitTag:function(P,A){this.indents++;var R=P.name,j=this.pp,v=this;function $(){A?v.bufferExpression(P.expr):v.buffer(R)}x[P.name]===!0&&(this.escapePrettyMode=!0),this.hasCompiledTag||(!this.hasCompiledDoctype&&R=="html"&&this.visitDoctype(),this.hasCompiledTag=!0),j&&!P.isInline&&this.prettyIndent(0,!0),P.selfClosing||!this.xml&&p[P.name]?(this.buffer("<"),$(),this.visitAttributes(P.attrs,this.attributeBlocks(P.attributeBlocks)),this.terse&&!P.selfClosing?this.buffer(">"):this.buffer("/>"),(P.code||P.block&&!(P.block.type==="Block"&&P.block.nodes.length===0)&&P.block.nodes.some(function(D){return D.type!=="Text"||!/^\s*$/.test(D.val)}))&&this.error(R+" is a self closing element: <"+R+"/> but contains nested content.","SELF_CLOSING_CONTENT",P)):(this.buffer("<"),$(),this.visitAttributes(P.attrs,this.attributeBlocks(P.attributeBlocks)),this.buffer(">"),P.code&&this.visitCode(P.code),this.visit(P.block,P),j&&!P.isInline&&x[P.name]!==!0&&!k(P)&&this.prettyIndent(0,!0),this.buffer("</"),$(),this.buffer(">")),x[P.name]===!0&&(this.escapePrettyMode=!1),this.indents--},visitInterpolatedTag:function(P){return this.visitTag(P,!0)},visitText:function(P){this.buffer(P.val)},visitComment:function(P){if(!P.buffer)return;this.pp&&this.prettyIndent(1,!0),this.buffer("<!--"+P.val+"-->")},visitYieldBlock:function(P){},visitBlockComment:function(P){if(!P.buffer)return;this.pp&&this.prettyIndent(1,!0),this.buffer("<!--"+(P.val||"")),this.visit(P.block,P),this.pp&&this.prettyIndent(1,!0),this.buffer("-->")},visitCode:function(P){if(P.buffer){var A=P.val.trim();A="null == (pug_interp = "+A+') ? "" : pug_interp',P.mustEscape!==!1&&(A=this.runtime("escape")+"("+A+")"),this.bufferExpression(A)}else this.buf.push(P.val);P.block&&(P.buffer||this.buf.push("{"),this.visit(P.block,P),P.buffer||this.buf.push("}"))},visitConditional:function(P){var A=P.test;this.buf.push("if ("+A+") {"),this.visit(P.consequent,P),this.buf.push("}"),P.alternate&&(P.alternate.type==="Conditional"?(this.buf.push("else"),this.visitConditional(P.alternate)):(this.buf.push("else {"),this.visit(P.alternate,P),this.buf.push("}")))},visitWhile:function(P){var A=P.test;this.buf.push("while ("+A+") {"),this.visit(P.block,P),this.buf.push("}")},visitEach:function(P){var A=P.key||"pug_index"+this.eachCount;this.eachCount++,this.buf.push("// iterate "+P.obj+`
|
|
39
|
+
;(function(){
|
|
40
|
+
var $$obj = `+P.obj+`;
|
|
41
|
+
if ('number' == typeof $$obj.length) {`),P.alternate&&this.buf.push(" if ($$obj.length) {"),this.buf.push(" for (var "+A+" = 0, $$l = $$obj.length; "+A+" < $$l; "+A+`++) {
|
|
42
|
+
var `+P.val+" = $$obj["+A+"];"),this.visit(P.block,P),this.buf.push(" }"),P.alternate&&(this.buf.push(" } else {"),this.visit(P.alternate,P),this.buf.push(" }")),this.buf.push(` } else {
|
|
43
|
+
var $$l = 0;
|
|
44
|
+
for (var `+A+` in $$obj) {
|
|
45
|
+
$$l++;
|
|
46
|
+
var `+P.val+" = $$obj["+A+"];"),this.visit(P.block,P),this.buf.push(" }"),P.alternate&&(this.buf.push(" if ($$l === 0) {"),this.visit(P.alternate,P),this.buf.push(" }")),this.buf.push(` }
|
|
47
|
+
}).call(this);
|
|
48
|
+
`)},visitEachOf:function(P){this.buf.push("// iterate "+P.obj+`
|
|
49
|
+
for (const `+P.val+" of "+P.obj+`) {
|
|
50
|
+
`),this.visit(P.block,P),this.buf.push(`}
|
|
51
|
+
`)},visitAttributes:function(P,A){if(A.length){if(P.length){var R=this.attrs(P);A.unshift(R)}A.length>1?this.bufferExpression(this.runtime("attrs")+"("+this.runtime("merge")+"(["+A.join(",")+"]), "+d(this.terse)+")"):this.bufferExpression(this.runtime("attrs")+"("+A[0]+", "+d(this.terse)+")")}else P.length&&this.attrs(P,!0)},attrs:function(P,A){var R=g(P,{terse:this.terse,format:A?"html":"object",runtime:this.runtime.bind(this)});return A&&this.bufferExpression(R),R},attributeBlocks:function(P){return P&&P.slice().map(function(A){return A.val})}};function k(P){function A(R){return R.type==="Block"?R.nodes.every(A):R.type==="YieldBlock"?!0:R.type==="Text"&&!/\n/.test(R.val)||R.isInline}return P.block.nodes.every(A)}},{constantinople:98,doctypes:99,"js-stringify":104,"pug-attrs":219,"pug-error":221,"pug-runtime":228,"pug-runtime/build":227,"void-elements":239,with:241}],221:[function(T,C,t){"use strict";C.exports=r;function r(m,f,b){var g=b.line,p=b.column,c=b.filename,d=b.src,E,x=g+(p?":"+p:"");if(d&&g>=1&&g<=d.split(`
|
|
52
|
+
`).length){var a=d.split(`
|
|
53
|
+
`),O=Math.max(g-3,0),_=Math.min(a.length,g+3),L=a.slice(O,_).map(function(k,P){var A=P+O+1,R=(A==g?" > ":" ")+A+"| ",j=R+k;return A===g&&p>0&&(j+=`
|
|
54
|
+
`,j+=Array(R.length+p).join("-")+"^"),j}).join(`
|
|
55
|
+
`);E=(c||"Pug")+":"+x+`
|
|
56
|
+
`+L+`
|
|
57
|
+
|
|
58
|
+
`+f}else E=(c||"Pug")+":"+x+`
|
|
59
|
+
|
|
60
|
+
`+f;var B=new Error(E);return B.code="PUG:"+m,B.msg=f,B.line=g,B.column=p,B.filename=c,B.src=d,B.toJSON=function(){return{code:this.code,msg:this.msg,line:this.line,column:this.column,filename:this.filename}},B}},{}],222:[function(T,C,t){"use strict";var r=T("assert"),m=T("is-expression"),f=T("character-parser"),b=T("pug-error");C.exports=g,C.exports.Lexer=p;function g(c,d){var E=new p(c,d);return JSON.parse(JSON.stringify(E.getTokens()))}function p(c,d){if(d=d||{},typeof c!="string")throw new Error('Expected source code to be a string but got "'+typeof c+'"');if(typeof d!="object")throw new Error('Expected "options" to be an object but got "'+typeof d+'"');c=c.replace(/^\uFEFF/,""),this.input=c.replace(/\r\n|\r/g,`
|
|
61
|
+
`),this.originalInput=this.input,this.filename=d.filename,this.interpolated=d.interpolated||!1,this.lineno=d.startingLine||1,this.colno=d.startingColumn||1,this.plugins=d.plugins||[],this.indentStack=[0],this.indentRe=null,this.interpolationAllowed=!0,this.whitespaceRe=/[ \n\t]/,this.tokens=[],this.ended=!1}p.prototype={constructor:p,error:function(c,d){var E=b(c,d,{line:this.lineno,column:this.colno,filename:this.filename,src:this.originalInput});throw E},assert:function(c,d){c||this.error("ASSERT_FAILED",d)},isExpression:function(c){return m(c,{throw:!0})},assertExpression:function(c,d){try{return this.callLexerFunction("isExpression",c),!0}catch(x){if(d)return!1;if(!x.loc)throw x;this.incrementLine(x.loc.line-1),this.incrementColumn(x.loc.column);var E="Syntax Error: "+x.message.replace(/ \([0-9]+:[0-9]+\)$/,"");this.error("SYNTAX_ERROR",E)}},assertNestingCorrect:function(c){var d=f(c);d.isNesting()&&this.error("INCORRECT_NESTING","Nesting must match on expression `"+c+"`")},tok:function(c,d){var E={type:c,loc:{start:{line:this.lineno,column:this.colno},filename:this.filename}};return d!==void 0&&(E.val=d),E},tokEnd:function(c){return c.loc.end={line:this.lineno,column:this.colno},c},incrementLine:function(c){this.lineno+=c,c&&(this.colno=1)},incrementColumn:function(c){this.colno+=c},consume:function(c){this.input=this.input.substr(c)},scan:function(c,d){var E;if(E=c.exec(this.input)){var x=E[0].length,a=E[1],O=x-(a?a.length:0),_=this.tok(d,a);return this.consume(x),this.incrementColumn(O),_}},scanEndOfLine:function(c,d){var E;if(E=c.exec(this.input)){var x=0,a,O;(a=/^([ ]+)([^ ]*)/.exec(E[0]))&&(x=a[1].length,this.incrementColumn(x));var _=this.input.substr(E[0].length);if(_[0]===":")return this.input=_,O=this.tok(d,E[1]),this.incrementColumn(E[0].length-x),O;if(/^[ \t]*(\n|$)/.test(_))return this.input=_.substr(/^[ \t]*/.exec(_)[0].length),O=this.tok(d,E[1]),this.incrementColumn(E[0].length-x),O}},bracketExpression:function(c){c=c||0;var d=this.input[c];r(d==="("||d==="{"||d==="[",'The start character should be "(", "{" or "["');var E=f.BRACKETS[d],x;try{x=f.parseUntil(this.input,E,{start:c+1})}catch(B){if(B.index!==void 0){for(var a=B.index,O=this.input.substr(c).indexOf(`
|
|
62
|
+
`),_=O+c,L=0;a>_&&O!==-1;)this.incrementLine(1),a-=_+1,L+=_+1,O=_=this.input.substr(L).indexOf(`
|
|
63
|
+
`);this.incrementColumn(a)}throw B.code==="CHARACTER_PARSER:END_OF_STRING_REACHED"?this.error("NO_END_BRACKET","The end of the string reached with no closing bracket "+E+" found."):B.code==="CHARACTER_PARSER:MISMATCHED_BRACKET"&&this.error("BRACKET_MISMATCH",B.message),B}return x},scanIndentation:function(){var c,d;return this.indentRe?c=this.indentRe.exec(this.input):(d=/^\n(\t*) */,c=d.exec(this.input),c&&!c[1].length&&(d=/^\n( *)/,c=d.exec(this.input)),c&&c[1].length&&(this.indentRe=d)),c},eos:function(){if(this.input.length)return;this.interpolated&&this.error("NO_END_BRACKET","End of line was reached with no closing bracket for interpolation.");for(var c=0;this.indentStack[c];c++)this.tokens.push(this.tokEnd(this.tok("outdent")));return this.tokens.push(this.tokEnd(this.tok("eos"))),this.ended=!0,!0},blank:function(){var c;if(c=/^\n[ \t]*\n/.exec(this.input))return this.consume(c[0].length-1),this.incrementLine(1),!0},comment:function(){var c;if(c=/^\/\/(-)?([^\n]*)/.exec(this.input)){this.consume(c[0].length);var d=this.tok("comment",c[2]);return d.buffer=c[1]!="-",this.interpolationAllowed=d.buffer,this.tokens.push(d),this.incrementColumn(c[0].length),this.tokEnd(d),this.callLexerFunction("pipelessText"),!0}},interpolation:function(){if(/^#\{/.test(this.input)){var c=this.bracketExpression(1);this.consume(c.end+1);var d=this.tok("interpolation",c.src);this.tokens.push(d),this.incrementColumn(2),this.assertExpression(c.src);var E=c.src.split(`
|
|
64
|
+
`),x=E.length-1;return this.incrementLine(x),this.incrementColumn(E[x].length+1),this.tokEnd(d),!0}},tag:function(){var c;if(c=/^(\w(?:[-:\w]*\w)?)/.exec(this.input)){var d,E=c[1],x=c[0].length;return this.consume(x),d=this.tok("tag",E),this.tokens.push(d),this.incrementColumn(x),this.tokEnd(d),!0}},filter:function(c){var d=this.scan(/^:([\w\-]+)/,"filter"),E=c&&c.inInclude;if(d)return this.tokens.push(d),this.incrementColumn(d.val.length),this.tokEnd(d),this.callLexerFunction("attrs"),E||(this.interpolationAllowed=!1,this.callLexerFunction("pipelessText")),!0},doctype:function(){var c=this.scanEndOfLine(/^doctype *([^\n]*)/,"doctype");if(c)return this.tokens.push(this.tokEnd(c)),!0},id:function(){var c=this.scan(/^#([\w-]+)/,"id");if(c)return this.tokens.push(c),this.incrementColumn(c.val.length),this.tokEnd(c),!0;/^#/.test(this.input)&&this.error("INVALID_ID",'"'+/.[^ \t\(\#\.\:]*/.exec(this.input.substr(1))[0]+'" is not a valid ID.')},className:function(){var c=this.scan(/^\.([_a-z0-9\-]*[_a-z][_a-z0-9\-]*)/i,"class");if(c)return this.tokens.push(c),this.incrementColumn(c.val.length),this.tokEnd(c),!0;/^\.[_a-z0-9\-]+/i.test(this.input)&&this.error("INVALID_CLASS_NAME","Class names must contain at least one letter or underscore."),/^\./.test(this.input)&&this.error("INVALID_CLASS_NAME",'"'+/.[^ \t\(\#\.\:]*/.exec(this.input.substr(1))[0]+'" is not a valid class name. Class names can only contain "_", "-", a-z and 0-9, and must contain at least one of "_", or a-z')},endInterpolation:function(){if(this.interpolated&&this.input[0]==="]")return this.input=this.input.substr(1),this.ended=!0,!0},addText:function(c,d,E,x){var a;if(d+E==="")return;E=E||"",x=x||0;var O=this.interpolated?d.indexOf("]"):-1,_=this.interpolationAllowed?d.indexOf("#["):-1,L=this.interpolationAllowed?d.indexOf("\\#["):-1,B=/(\\)?([#!]){((?:.|\n)*)$/.exec(d),k=this.interpolationAllowed&&B?B.index:Infinity;if(O===-1&&(O=Infinity),_===-1&&(_=Infinity),L===-1&&(L=Infinity),L!==Infinity&&L<O&&L<_&&L<k)return E=E+d.substring(0,L)+"#[",this.addText(c,d.substring(L+3),E,x+1);if(_!==Infinity&&_<O&&_<L&&_<k){a=this.tok(c,E+d.substring(0,_)),this.incrementColumn(E.length+_+x),this.tokens.push(this.tokEnd(a)),a=this.tok("start-pug-interpolation"),this.incrementColumn(2),this.tokens.push(this.tokEnd(a));var P=new this.constructor(d.substr(_+2),{filename:this.filename,interpolated:!0,startingLine:this.lineno,startingColumn:this.colno}),A;try{A=P.getTokens()}catch($){throw $.code&&/^PUG:/.test($.code)&&(this.colno=$.column,this.error($.code.substr(4),$.msg)),$}this.colno=P.colno,this.tokens=this.tokens.concat(A),a=this.tok("end-pug-interpolation"),this.incrementColumn(1),this.tokens.push(this.tokEnd(a)),this.addText(c,P.input);return}if(O!==Infinity&&O<_&&O<L&&O<k){E+d.substring(0,O)&&this.addText(c,d.substring(0,O),E),this.ended=!0,this.input=d.substr(d.indexOf("]")+1)+this.input;return}if(k!==Infinity){if(B[1])return E=E+d.substring(0,k)+"#{",this.addText(c,d.substring(k+3),E,x+1);var R=d.substr(0,k);(E||R)&&(R=E+R,a=this.tok(c,R),this.incrementColumn(R.length+x),this.tokens.push(this.tokEnd(a)));var j=B[3],v;a=this.tok("interpolated-code"),this.incrementColumn(2);try{v=f.parseUntil(j,"}")}catch($){if($.index!==void 0&&this.incrementColumn($.index),$.code==="CHARACTER_PARSER:END_OF_STRING_REACHED")this.error("NO_END_BRACKET","End of line was reached with no closing bracket for interpolation.");else if($.code==="CHARACTER_PARSER:MISMATCHED_BRACKET")this.error("BRACKET_MISMATCH",$.message);else throw $}a.mustEscape=B[2]==="#",a.buffer=!0,a.val=v.src,this.assertExpression(v.src),v.end+1<j.length?(j=j.substr(v.end+1),this.incrementColumn(v.end+1),this.tokens.push(this.tokEnd(a)),this.addText(c,j)):(this.incrementColumn(j.length),this.tokens.push(this.tokEnd(a)));return}d=E+d,a=this.tok(c,d),this.incrementColumn(d.length+x),this.tokens.push(this.tokEnd(a))},text:function(){var c=this.scan(/^(?:\| ?| )([^\n]+)/,"text")||this.scan(/^( )/,"text")||this.scan(/^\|( ?)/,"text");if(c)return this.addText("text",c.val),!0},textHtml:function(){var c=this.scan(/^(<[^\n]*)/,"text-html");if(c)return this.addText("text-html",c.val),!0},dot:function(){var c;if(c=this.scanEndOfLine(/^\./,"dot"))return this.tokens.push(this.tokEnd(c)),this.callLexerFunction("pipelessText"),!0},extends:function(){var c=this.scan(/^extends?(?= |$|\n)/,"extends");if(c)return this.tokens.push(this.tokEnd(c)),this.callLexerFunction("path")||this.error("NO_EXTENDS_PATH","missing path for extends"),!0;this.scan(/^extends?\b/)&&this.error("MALFORMED_EXTENDS","malformed extends")},prepend:function(){var c;if(c=/^(?:block +)?prepend +([^\n]+)/.exec(this.input)){var d=c[1].trim(),E="";if(d.indexOf("//")!==-1&&(E="//"+d.split("//").slice(1).join("//"),d=d.split("//")[0].trim()),!d)return;for(var x=this.tok("block",d),a=c[0].length-E.length;this.whitespaceRe.test(this.input.charAt(a-1));)a--;return this.incrementColumn(a),x.mode="prepend",this.tokens.push(this.tokEnd(x)),this.consume(c[0].length-E.length),this.incrementColumn(c[0].length-E.length-a),!0}},append:function(){var c;if(c=/^(?:block +)?append +([^\n]+)/.exec(this.input)){var d=c[1].trim(),E="";if(d.indexOf("//")!==-1&&(E="//"+d.split("//").slice(1).join("//"),d=d.split("//")[0].trim()),!d)return;for(var x=this.tok("block",d),a=c[0].length-E.length;this.whitespaceRe.test(this.input.charAt(a-1));)a--;return this.incrementColumn(a),x.mode="append",this.tokens.push(this.tokEnd(x)),this.consume(c[0].length-E.length),this.incrementColumn(c[0].length-E.length-a),!0}},block:function(){var c;if(c=/^block +([^\n]+)/.exec(this.input)){var d=c[1].trim(),E="";if(d.indexOf("//")!==-1&&(E="//"+d.split("//").slice(1).join("//"),d=d.split("//")[0].trim()),!d)return;for(var x=this.tok("block",d),a=c[0].length-E.length;this.whitespaceRe.test(this.input.charAt(a-1));)a--;return this.incrementColumn(a),x.mode="replace",this.tokens.push(this.tokEnd(x)),this.consume(c[0].length-E.length),this.incrementColumn(c[0].length-E.length-a),!0}},mixinBlock:function(){var c;if(c=this.scanEndOfLine(/^block/,"mixin-block"))return this.tokens.push(this.tokEnd(c)),!0},yield:function(){var c=this.scanEndOfLine(/^yield/,"yield");if(c)return this.tokens.push(this.tokEnd(c)),!0},include:function(){var c=this.scan(/^include(?=:| |$|\n)/,"include");if(c){for(this.tokens.push(this.tokEnd(c));this.callLexerFunction("filter",{inInclude:!0}););return this.callLexerFunction("path")||(/^[^ \n]+/.test(this.input)?this.fail():this.error("NO_INCLUDE_PATH","missing path for include")),!0}this.scan(/^include\b/)&&this.error("MALFORMED_INCLUDE","malformed include")},path:function(){var c=this.scanEndOfLine(/^ ([^\n]+)/,"path");if(c&&(c.val=c.val.trim()))return this.tokens.push(this.tokEnd(c)),!0},case:function(){var c=this.scanEndOfLine(/^case +([^\n]+)/,"case");if(c)return this.incrementColumn(-c.val.length),this.assertExpression(c.val),this.incrementColumn(c.val.length),this.tokens.push(this.tokEnd(c)),!0;this.scan(/^case\b/)&&this.error("NO_CASE_EXPRESSION","missing expression for case")},when:function(){var c=this.scanEndOfLine(/^when +([^:\n]+)/,"when");if(c){for(var d=f(c.val);d.isNesting()||d.isString();){var E=/:([^:\n]+)/.exec(this.input);if(!E)break;c.val+=E[0],this.consume(E[0].length),this.incrementColumn(E[0].length),d=f(c.val)}return this.incrementColumn(-c.val.length),this.assertExpression(c.val),this.incrementColumn(c.val.length),this.tokens.push(this.tokEnd(c)),!0}this.scan(/^when\b/)&&this.error("NO_WHEN_EXPRESSION","missing expression for when")},default:function(){var c=this.scanEndOfLine(/^default/,"default");if(c)return this.tokens.push(this.tokEnd(c)),!0;this.scan(/^default\b/)&&this.error("DEFAULT_WITH_EXPRESSION","default should not have an expression")},call:function(){var c,d,E;if(d=/^\+(\s*)(([-\w]+)|(#\{))/.exec(this.input)){if(d[3])E=d[0].length,this.consume(E),c=this.tok("call",d[3]);else{var x=this.bracketExpression(2+d[1].length);E=x.end+1,this.consume(E),this.assertExpression(x.src),c=this.tok("call","#{"+x.src+"}")}if(this.incrementColumn(E),c.args=null,d=/^ *\(/.exec(this.input)){var a=this.bracketExpression(d[0].length-1);if(!/^\s*[-\w]+ *=/.test(a.src)){this.incrementColumn(1),this.consume(a.end+1),c.args=a.src,this.assertExpression("["+c.args+"]");for(var O=0;O<=c.args.length;O++)c.args[O]===`
|
|
65
|
+
`?this.incrementLine(1):this.incrementColumn(1)}}return this.tokens.push(this.tokEnd(c)),!0}},mixin:function(){var c;if(c=/^mixin +([-\w]+)(?: *\((.*)\))? */.exec(this.input)){this.consume(c[0].length);var d=this.tok("mixin",c[1]);return d.args=c[2]||null,this.incrementColumn(c[0].length),this.tokens.push(this.tokEnd(d)),!0}},conditional:function(){var c;if(c=/^(if|unless|else if|else)\b([^\n]*)/.exec(this.input)){this.consume(c[0].length);var d=c[1].replace(/ /g,"-"),E=c[2]&&c[2].trim(),x=this.tok(d,E);this.incrementColumn(c[0].length-E.length);switch(d){case"if":case"else-if":this.assertExpression(E);break;case"unless":this.assertExpression(E),x.val="!("+E+")",x.type="if";break;case"else":E&&this.error("ELSE_CONDITION","`else` cannot have a condition, perhaps you meant `else if`");break}return this.incrementColumn(E.length),this.tokens.push(this.tokEnd(x)),!0}},while:function(){var c,d;if(c=/^while +([^\n]+)/.exec(this.input))return this.consume(c[0].length),this.assertExpression(c[1]),d=this.tok("while",c[1]),this.incrementColumn(c[0].length),this.tokens.push(this.tokEnd(d)),!0;this.scan(/^while\b/)&&this.error("NO_WHILE_EXPRESSION","missing expression for while")},each:function(){var c;if(c=/^(?:each|for) +([a-zA-Z_$][\w$]*)(?: *, *([a-zA-Z_$][\w$]*))? * in *([^\n]+)/.exec(this.input)){this.consume(c[0].length);var d=this.tok("each",c[1]);return d.key=c[2]||null,this.incrementColumn(c[0].length-c[3].length),this.assertExpression(c[3]),d.code=c[3],this.incrementColumn(c[3].length),this.tokens.push(this.tokEnd(d)),!0}const E=/^each\b/.exec(this.input)?"each":"for";this.scan(/^(?:each|for)\b/)&&this.error("MALFORMED_EACH","This `"+E+"` has a syntax error. `"+E+"` statements should be of the form: `"+E+" VARIABLE_NAME of JS_EXPRESSION`"),(c=/^- *(?:each|for) +([a-zA-Z_$][\w$]*)(?: *, *([a-zA-Z_$][\w$]*))? +in +([^\n]+)/.exec(this.input))&&this.error("MALFORMED_EACH",'Pug each and for should no longer be prefixed with a dash ("-"). They are pug keywords and not part of JavaScript.')},eachOf:function(){var c;if(c=/^(?:each|for) (.*) of *([^\n]+)/.exec(this.input)){this.consume(c[0].length);var d=this.tok("eachOf",c[1]);return d.value=c[1],this.incrementColumn(c[0].length-c[2].length),this.assertExpression(c[2]),d.code=c[2],this.incrementColumn(c[2].length),this.tokens.push(this.tokEnd(d)),/^[a-zA-Z_$][\w$]*$/.test(d.value.trim())||/^\[ *[a-zA-Z_$][\w$]* *\, *[a-zA-Z_$][\w$]* *\]$/.test(d.value.trim())||this.error("MALFORMED_EACH_OF_LVAL","The value variable for each must either be a valid identifier (e.g. `item`) or a pair of identifiers in square brackets (e.g. `[key, value]`)."),!0}(c=/^- *(?:each|for) +([a-zA-Z_$][\w$]*)(?: *, *([a-zA-Z_$][\w$]*))? +of +([^\n]+)/.exec(this.input))&&this.error("MALFORMED_EACH",'Pug each and for should not be prefixed with a dash ("-"). They are pug keywords and not part of JavaScript.')},code:function(){var c;if(c=/^(!?=|-)[ \t]*([^\n]+)/.exec(this.input)){var d=c[1],E=c[2],x=0;if(this.interpolated){var a;try{a=f.parseUntil(E,"]")}catch(L){if(L.index!==void 0&&this.incrementColumn(c[0].length-E.length+L.index),L.code==="CHARACTER_PARSER:END_OF_STRING_REACHED")this.error("NO_END_BRACKET","End of line was reached with no closing bracket for interpolation.");else if(L.code==="CHARACTER_PARSER:MISMATCHED_BRACKET")this.error("BRACKET_MISMATCH",L.message);else throw L}x=E.length-a.end,E=a.src}var O=c[0].length-x;this.consume(O);var _=this.tok("code",E);return _.mustEscape=d.charAt(0)==="=",_.buffer=d.charAt(0)==="="||d.charAt(1)==="=",this.incrementColumn(c[0].length-c[2].length),_.buffer&&this.assertExpression(E),this.tokens.push(_),this.incrementColumn(E.length),this.tokEnd(_),!0}},blockCode:function(){var c;if(c=this.scanEndOfLine(/^-/,"blockcode"))return this.tokens.push(this.tokEnd(c)),this.interpolationAllowed=!1,this.callLexerFunction("pipelessText"),!0},attribute:function(c){var d="",E=/['"]/,x="",a;for(a=0;a<c.length&&this.whitespaceRe.test(c[a]);a++)c[a]===`
|
|
66
|
+
`?this.incrementLine(1):this.incrementColumn(1);if(a===c.length)return"";var O=this.tok("attribute");for(E.test(c[a])&&(d=c[a],this.incrementColumn(1),a++);a<c.length;a++){if(d){if(c[a]===d){this.incrementColumn(1),a++;break}}else if(this.whitespaceRe.test(c[a])||c[a]==="!"||c[a]==="="||c[a]===",")break;x+=c[a],c[a]===`
|
|
67
|
+
`?this.incrementLine(1):this.incrementColumn(1)}O.name=x;var _=this.attributeValue(c.substr(a));for(_.val?(O.val=_.val,O.mustEscape=_.mustEscape):(O.val=!0,O.mustEscape=!0),c=_.remainingSource,this.tokens.push(this.tokEnd(O)),a=0;a<c.length&&this.whitespaceRe.test(c[a]);a++)c[a]===`
|
|
68
|
+
`?this.incrementLine(1):this.incrementColumn(1);return c[a]===","&&(this.incrementColumn(1),a++),c.substr(a)},attributeValue:function(c){var d=/['"]/,E="",x,a,O,_=!0,L=f.defaultState(),B=this.colno,k=this.lineno;for(a=0;a<c.length&&this.whitespaceRe.test(c[a]);a++)c[a]===`
|
|
69
|
+
`?(k++,B=1):B++;if(a===c.length)return{remainingSource:c};if(c[a]==="!"&&(_=!1,B++,a++,c[a]!=="="&&this.error("INVALID_KEY_CHARACTER","Unexpected character "+c[a]+" expected `=`")),c[a]!=="=")if(a===0&&c&&!this.whitespaceRe.test(c[0])&&c[0]!==",")this.error("INVALID_KEY_CHARACTER","Unexpected character "+c[0]+" expected `=`");else return{remainingSource:c};for(this.lineno=k,this.colno=B+1,a++;a<c.length&&this.whitespaceRe.test(c[a]);a++)c[a]===`
|
|
70
|
+
`?this.incrementLine(1):this.incrementColumn(1);for(k=this.lineno,B=this.colno;a<c.length;a++){if(!(L.isNesting()||L.isString())){if(this.whitespaceRe.test(c[a])){for(x=!1,O=a;O<c.length;O++)if(!this.whitespaceRe.test(c[O])){const P=!f.isPunctuator(c[O]),A=d.test(c[O]),R=c[O]===":",j=c[O]+c[O+1]+c[O+2]==="...";(P||A||R||j)&&this.assertExpression(E,!0)&&(x=!0);break}if(x||O===c.length)break}if(c[a]===","&&this.assertExpression(E,!0))break}L=f.parseChar(c[a],L),E+=c[a],c[a]===`
|
|
71
|
+
`?(k++,B=1):B++}return this.assertExpression(E),this.lineno=k,this.colno=B,{val:E,mustEscape:_,remainingSource:c.substr(a)}},attrs:function(){var c;if(this.input.charAt(0)=="("){c=this.tok("start-attributes");var d=this.bracketExpression().end,E=this.input.substr(1,d-1);for(this.incrementColumn(1),this.tokens.push(this.tokEnd(c)),this.assertNestingCorrect(E),this.consume(d+1);E;)E=this.attribute(E);return c=this.tok("end-attributes"),this.incrementColumn(1),this.tokens.push(this.tokEnd(c)),!0}},attributesBlock:function(){if(/^&attributes\b/.test(this.input)){var c=11;this.consume(c);var d=this.tok("&attributes");this.incrementColumn(c);var E=this.bracketExpression();return c=E.end+1,this.consume(c),d.val=E.src,this.incrementColumn(c),this.tokens.push(this.tokEnd(d)),!0}},indent:function(){var c=this.scanIndentation(),d;if(c){var E=c[1].length;if(this.incrementLine(1),this.consume(E+1),(this.input[0]==" "||this.input[0]==" ")&&this.error("INVALID_INDENTATION","Invalid indentation, you can use tabs or spaces but not both"),this.input[0]==`
|
|
72
|
+
`)return this.interpolationAllowed=!0,this.tokEnd(this.tok("newline"));if(E<this.indentStack[0]){for(var x=0;this.indentStack[0]>E;)this.indentStack[1]<E&&this.error("INCONSISTENT_INDENTATION","Inconsistent indentation. Expecting either "+this.indentStack[1]+" or "+this.indentStack[0]+" spaces/tabs."),x++,this.indentStack.shift();for(;x--;)this.colno=1,d=this.tok("outdent"),this.colno=this.indentStack[0]+1,this.tokens.push(this.tokEnd(d))}else E&&E!=this.indentStack[0]?(d=this.tok("indent",E),this.colno=1+E,this.tokens.push(this.tokEnd(d)),this.indentStack.unshift(E)):(d=this.tok("newline"),this.colno=1+Math.min(this.indentStack[0]||0,E),this.tokens.push(this.tokEnd(d)));return this.interpolationAllowed=!0,!0}},pipelessText:function c(d){for(;this.callLexerFunction("blank"););var E=this.scanIndentation();if(d=d||E&&E[1].length,d>this.indentStack[0]){this.tokens.push(this.tokEnd(this.tok("start-pipeless-text")));var x=[],a=[],O,_=0;do{var L=this.input.substr(_+1).indexOf(`
|
|
73
|
+
`);L==-1&&(L=this.input.length-_-1);var B=this.input.substr(_+1,L),k=this.indentRe.exec(`
|
|
74
|
+
`+B),P=k&&k[1].length;if(O=P>=d,a.push(O),O=O||!B.trim(),O)_+=B.length+1,x.push(B.substr(d));else if(P>this.indentStack[0])return this.tokens.pop(),c.call(this,k[1].length)}while(this.input.length-_&&O);for(this.consume(_);this.input.length===0&&x[x.length-1]==="";)x.pop();return x.forEach(function(A,R){var j;this.incrementLine(1),R!==0&&(j=this.tok("newline")),a[R]&&this.incrementColumn(d),j&&this.tokens.push(this.tokEnd(j)),this.addText("text",A)}.bind(this)),this.tokens.push(this.tokEnd(this.tok("end-pipeless-text"))),!0}},slash:function(){var c=this.scan(/^\//,"slash");if(c)return this.tokens.push(this.tokEnd(c)),!0},colon:function(){var c=this.scan(/^: +/,":");if(c)return this.tokens.push(this.tokEnd(c)),!0},fail:function(){this.error("UNEXPECTED_TEXT",'unexpected text "'+this.input.substr(0,5)+'"')},callLexerFunction:function(c){for(var d=[],E=1;E<arguments.length;E++)d.push(arguments[E]);for(var x=[this].concat(d),E=0;E<this.plugins.length;E++){var a=this.plugins[E];if(a[c]&&a[c].apply(a,x))return!0}return this[c].apply(this,d)},advance:function(){return this.callLexerFunction("blank")||this.callLexerFunction("eos")||this.callLexerFunction("endInterpolation")||this.callLexerFunction("yield")||this.callLexerFunction("doctype")||this.callLexerFunction("interpolation")||this.callLexerFunction("case")||this.callLexerFunction("when")||this.callLexerFunction("default")||this.callLexerFunction("extends")||this.callLexerFunction("append")||this.callLexerFunction("prepend")||this.callLexerFunction("block")||this.callLexerFunction("mixinBlock")||this.callLexerFunction("include")||this.callLexerFunction("mixin")||this.callLexerFunction("call")||this.callLexerFunction("conditional")||this.callLexerFunction("eachOf")||this.callLexerFunction("each")||this.callLexerFunction("while")||this.callLexerFunction("tag")||this.callLexerFunction("filter")||this.callLexerFunction("blockCode")||this.callLexerFunction("code")||this.callLexerFunction("id")||this.callLexerFunction("dot")||this.callLexerFunction("className")||this.callLexerFunction("attrs")||this.callLexerFunction("attributesBlock")||this.callLexerFunction("indent")||this.callLexerFunction("text")||this.callLexerFunction("textHtml")||this.callLexerFunction("comment")||this.callLexerFunction("slash")||this.callLexerFunction("colon")||this.fail()},getTokens:function(){for(;!this.ended;)this.callLexerFunction("advance");return this.tokens}}},{assert:88,"character-parser":96,"is-expression":102,"pug-error":221}],223:[function(T,C,t){"use strict";var r=T("assert"),m=T("pug-walk");function f(){throw T("pug-error").apply(null,arguments)}C.exports=b;function b(O){r(O.type==="Block","The top level element should always be a block");var _=null;if(O.nodes.length){var L=O.nodes[0].type==="Extends";a(O,L),L&&(_=O.nodes.shift())}if(O=d(O),O.declaredBlocks=g(O),_){var B=[],k=[];O.nodes.forEach(function R(j){j.type==="NamedBlock"?k.push(j):j.type==="Block"?j.nodes.forEach(R):j.type==="Mixin"&&j.call===!1?B.push(j):f("UNEXPECTED_NODES_IN_EXTENDING_ROOT","Only named blocks and mixins can appear at the top level of an extending template",j)});var P=b(_.file.ast);c(P.declaredBlocks,O);var A=[];return m(P,function(R){R.type==="NamedBlock"&&A.push(R.name)}),k.forEach(function(R){A.indexOf(R.name)===-1&&f("UNEXPECTED_BLOCK","Unexpected block "+R.name,R)}),Object.keys(O.declaredBlocks).forEach(function(R){P.declaredBlocks[R]=O.declaredBlocks[R]}),P.nodes=B.concat(P.nodes),P.hasExtends=!0,P}return O}function g(O){var _={};return m(O,function(B){B.type==="NamedBlock"&&B.mode==="replace"&&(_[B.name]=_[B.name]||[],_[B.name].push(B))}),_}function p(O,_){return _=_||[],O.forEach(function(L){L.parents&&p(L.parents,_),_.push(L)}),_}function c(O,_){var L={};m(_,function(k){if(k.type==="NamedBlock"){if(L[k.name]===k.name)return k.ignore=!0;L[k.name]=k.name;var P=O[k.name]?p(O[k.name]):[];P.length&&(k.parents=P,P.forEach(function(A){switch(k.mode){case"append":A.nodes=A.nodes.concat(k.nodes);break;case"prepend":A.nodes=k.nodes.concat(A.nodes);break;case"replace":A.nodes=k.nodes;break}}))}},function(k){k.type==="NamedBlock"&&!k.ignore&&delete L[k.name]})}function d(O,_){return m(O,function(B,k){B.type==="RawInclude"&&k({type:"Text",val:B.file.str.replace(/\r/g,"")})},function(B,k){if(B.type==="Include"){var P=b(B.file.ast);P.hasExtends&&(P=E(P)),k(x(P,B.block))}})}function E(O){return m(O,function(_,L){_.type==="NamedBlock"&&L({type:"Block",nodes:_.nodes})})}function x(O,_){if(!_||!_.nodes.length)return O;var L=!1;O=m(O,null,function(k,P){k.type==="YieldBlock"&&(L=!0,k.type="Block",k.nodes=[_])});function B(k){for(var P=k,A=0;A<k.nodes.length;A++){if(k.nodes[A].textOnly)continue;k.nodes[A].type==="Block"?P=B(k.nodes[A]):k.nodes[A].block&&k.nodes[A].block.nodes.length&&(P=B(k.nodes[A].block))}return P}return L||B(O).nodes.push(_),O}function a(O,_){var L=!1;m(O,function(B){B.type==="Extends"&&(_&&!L?L=!0:f("EXTENDS_NOT_FIRST",'Declaration of template inheritance ("extends") should be the first thing in the file. There can only be one extends statement per file.',B))})}},{assert:88,"pug-error":221,"pug-walk":234}],224:[function(T,C,t){"use strict";var r=T("fs"),m=T("path"),f=T("pug-walk"),b=T("object-assign");C.exports=g;function g(c,d){return d=p(d),c=JSON.parse(JSON.stringify(c)),f(c,function(E){if(E.str===void 0&&(E.type==="Include"||E.type==="RawInclude"||E.type==="Extends")){var x=E.file;if(x.type!=="FileReference")throw new Error('Expected file.type to be "FileReference"');var a,O,_;try{a=d.resolve(x.path,x.filename,d),x.fullPath=a,_=d.read(a,d),O=_.toString("utf8")}catch(L){throw L.message+=`
|
|
75
|
+
at `+E.filename+" line "+E.line,L}x.str=O,x.raw=_,(E.type==="Extends"||E.type==="Include")&&(x.ast=g.string(O,b({},d,{filename:a})))}})}g.string=function(d,E){E=b(p(E),{src:d});var x=E.lex(d,E),a=E.parse(x,E);return g(a,E)},g.file=function(d,E){E=b(p(E),{filename:d});var x=E.read(d).toString("utf8");return g.string(x,E)},g.resolve=function(d,E,x){if(d=d.trim(),d[0]!=="/"&&!E)throw new Error('the "filename" option is required to use includes and extends with "relative" paths');if(d[0]==="/"&&!x.basedir)throw new Error('the "basedir" option is required to use includes and extends with "absolute" paths');return d=m.join(d[0]==="/"?x.basedir:m.dirname(E.trim()),d),d},g.read=function(d,E){return r.readFileSync(d)},g.validateOptions=function(d){if(typeof d!="object")throw new TypeError("options must be an object");if(typeof d.lex!="function")throw new TypeError("options.lex must be a function");if(typeof d.parse!="function")throw new TypeError("options.parse must be a function");if(d.resolve&&typeof d.resolve!="function")throw new TypeError("options.resolve must be a function");if(d.read&&typeof d.read!="function")throw new TypeError("options.read must be a function")};function p(c){return g.validateOptions(c),b({resolve:g.resolve,read:g.read},c)}},{fs:95,"object-assign":216,path:217,"pug-walk":234}],225:[function(T,C,t){"use strict";var r=T("assert"),m=T("token-stream"),f=T("pug-error"),b=T("./lib/inline-tags");C.exports=g,C.exports.Parser=p;function g(c,d){var E=new p(c,d),x=E.parse();return JSON.parse(JSON.stringify(x))}function p(c,d){if(d=d||{},!Array.isArray(c))throw new Error('Expected tokens to be an Array but got "'+typeof c+'"');if(typeof d!="object")throw new Error('Expected "options" to be an object but got "'+typeof d+'"');this.tokens=new m(c),this.filename=d.filename,this.src=d.src,this.inMixin=0,this.plugins=d.plugins||[]}p.prototype={constructor:p,error:function(c,d,E){var x=f(c,d,{line:E.loc.start.line,column:E.loc.start.column,filename:this.filename,src:this.src});throw x},advance:function(){return this.tokens.advance()},peek:function(){return this.tokens.peek()},lookahead:function(c){return this.tokens.lookahead(c)},parse:function(){for(var c=this.emptyBlock(0);this.peek().type!="eos";)if(this.peek().type=="newline")this.advance();else if(this.peek().type=="text-html")c.nodes=c.nodes.concat(this.parseTextHtml());else{var d=this.parseExpr();d&&(d.type==="Block"?c.nodes=c.nodes.concat(d.nodes):c.nodes.push(d))}return c},expect:function(c){if(this.peek().type===c)return this.advance();this.error("INVALID_TOKEN",'expected "'+c+'", but got "'+this.peek().type+'"',this.peek())},accept:function(c){if(this.peek().type===c)return this.advance()},initBlock:function(c,d){if((c|0)!==c)throw new Error("`line` is not an integer");if(!Array.isArray(d))throw new Error("`nodes` is not an array");return{type:"Block",nodes:d,line:c,filename:this.filename}},emptyBlock:function(c){return this.initBlock(c,[])},runPlugin:function(c,d){for(var E=[this],x=2;x<arguments.length;x++)E.push(arguments[x]);for(var a,x=0;x<this.plugins.length;x++){var O=this.plugins[x];if(O[c]&&O[c][d.type]){if(a)throw new Error("Multiple plugin handlers found for context "+JSON.stringify(c)+", token type "+JSON.stringify(d.type));a=O[c]}}if(a)return a[d.type].apply(a,E)},parseExpr:function(){switch(this.peek().type){case"tag":return this.parseTag();case"mixin":return this.parseMixin();case"block":return this.parseBlock();case"mixin-block":return this.parseMixinBlock();case"case":return this.parseCase();case"extends":return this.parseExtends();case"include":return this.parseInclude();case"doctype":return this.parseDoctype();case"filter":return this.parseFilter();case"comment":return this.parseComment();case"text":case"interpolated-code":case"start-pug-interpolation":return this.parseText({block:!0});case"text-html":return this.initBlock(this.peek().loc.start.line,this.parseTextHtml());case"dot":return this.parseDot();case"each":return this.parseEach();case"eachOf":return this.parseEachOf();case"code":return this.parseCode();case"blockcode":return this.parseBlockCode();case"if":return this.parseConditional();case"while":return this.parseWhile();case"call":return this.parseCall();case"interpolation":return this.parseInterpolation();case"yield":return this.parseYield();case"id":case"class":if(!this.peek().loc.start)debugger;return this.tokens.defer({type:"tag",val:"div",loc:this.peek().loc,filename:this.filename}),this.parseExpr();default:var c=this.runPlugin("expressionTokens",this.peek());if(c)return c;this.error("INVALID_TOKEN",'unexpected token "'+this.peek().type+'"',this.peek())}},parseDot:function(){return this.advance(),this.parseTextBlock()},parseText:function(c){var d=[],E=this.peek().loc.start.line,x=this.peek();e:for(;;){switch(x.type){case"text":var a=this.advance();d.push({type:"Text",val:a.val,line:a.loc.start.line,column:a.loc.start.column,filename:this.filename});break;case"interpolated-code":var a=this.advance();d.push({type:"Code",val:a.val,buffer:a.buffer,mustEscape:a.mustEscape!==!1,isInline:!0,line:a.loc.start.line,column:a.loc.start.column,filename:this.filename});break;case"newline":if(!c||!c.block)break e;var a=this.advance(),O=this.peek().type;(O==="text"||O==="interpolated-code")&&d.push({type:"Text",val:`
|
|
76
|
+
`,line:a.loc.start.line,column:a.loc.start.column,filename:this.filename});break;case"start-pug-interpolation":this.advance(),d.push(this.parseExpr()),this.expect("end-pug-interpolation");break;default:var _=this.runPlugin("textTokens",x,d);if(_)break;break e}x=this.peek()}return d.length===1?d[0]:this.initBlock(E,d)},parseTextHtml:function(){var c=[],d=null;e:for(;;)switch(this.peek().type){case"text-html":var E=this.advance();d?d.val+=`
|
|
77
|
+
`+E.val:(d={type:"Text",val:E.val,filename:this.filename,line:E.loc.start.line,column:E.loc.start.column,isHtml:!0},c.push(d));break;case"indent":var x=this.block();x.nodes.forEach(function(a){a.isHtml?d?d.val+=`
|
|
78
|
+
`+a.val:(d=a,c.push(d)):(d=null,c.push(a))});break;case"code":d=null,c.push(this.parseCode(!0));break;case"newline":this.advance();break;default:break e}return c},parseBlockExpansion:function(){var c=this.accept(":");if(c){var d=this.parseExpr();return d.type==="Block"?d:this.initBlock(c.loc.start.line,[d])}else return this.block()},parseCase:function(){var c=this.expect("case"),d={type:"Case",expr:c.val,line:c.loc.start.line,column:c.loc.start.column,filename:this.filename},E=this.emptyBlock(c.loc.start.line+1);for(this.expect("indent");this.peek().type!="outdent";)switch(this.peek().type){case"comment":case"newline":this.advance();break;case"when":E.nodes.push(this.parseWhen());break;case"default":E.nodes.push(this.parseDefault());break;default:var x=this.runPlugin("caseTokens",this.peek(),E);if(x)break;this.error("INVALID_TOKEN",'Unexpected token "'+this.peek().type+'", expected "when", "default" or "newline"',this.peek())}return this.expect("outdent"),d.block=E,d},parseWhen:function(){var c=this.expect("when");return this.peek().type!=="newline"?{type:"When",expr:c.val,block:this.parseBlockExpansion(),debug:!1,line:c.loc.start.line,column:c.loc.start.column,filename:this.filename}:{type:"When",expr:c.val,debug:!1,line:c.loc.start.line,column:c.loc.start.column,filename:this.filename}},parseDefault:function(){var c=this.expect("default");return{type:"When",expr:"default",block:this.parseBlockExpansion(),debug:!1,line:c.loc.start.line,column:c.loc.start.column,filename:this.filename}},parseCode:function(c){var d=this.expect("code");r(typeof d.mustEscape=="boolean","Please update to the newest version of pug-lexer.");var E={type:"Code",val:d.val,buffer:d.buffer,mustEscape:d.mustEscape!==!1,isInline:!!c,line:d.loc.start.line,column:d.loc.start.column,filename:this.filename};if(E.val.match(/^ *else/)&&(E.debug=!1),c)return E;var x;return x=this.peek().type=="indent",x&&(d.buffer&&this.error("BLOCK_IN_BUFFERED_CODE","Buffered code cannot have a block attached to it",this.peek()),E.block=this.block()),E},parseConditional:function(){var c=this.expect("if"),d={type:"Conditional",test:c.val,consequent:this.emptyBlock(c.loc.start.line),alternate:null,line:c.loc.start.line,column:c.loc.start.column,filename:this.filename};this.peek().type=="indent"&&(d.consequent=this.block());for(var E=d;;)if(this.peek().type==="newline")this.expect("newline");else if(this.peek().type==="else-if")c=this.expect("else-if"),E=E.alternate={type:"Conditional",test:c.val,consequent:this.emptyBlock(c.loc.start.line),alternate:null,line:c.loc.start.line,column:c.loc.start.column,filename:this.filename},this.peek().type=="indent"&&(E.consequent=this.block());else if(this.peek().type==="else"){this.expect("else"),this.peek().type==="indent"&&(E.alternate=this.block());break}else break;return d},parseWhile:function(){var c=this.expect("while"),d={type:"While",test:c.val,line:c.loc.start.line,column:c.loc.start.column,filename:this.filename};return this.peek().type=="indent"?d.block=this.block():d.block=this.emptyBlock(c.loc.start.line),d},parseBlockCode:function(){var c=this.expect("blockcode"),d=c.loc.start.line,E=c.loc.start.column,x=this.peek(),a="";if(x.type==="start-pipeless-text"){for(this.advance();this.peek().type!=="end-pipeless-text";){c=this.advance();switch(c.type){case"text":a+=c.val;break;case"newline":a+=`
|
|
79
|
+
`;break;default:var O=this.runPlugin("blockCodeTokens",c,c);if(O){a+=O;break}this.error("INVALID_TOKEN","Unexpected token type: "+c.type,c)}}this.advance()}return{type:"Code",val:a,buffer:!1,mustEscape:!1,isInline:!1,line:d,column:E,filename:this.filename}},parseComment:function(){var c=this.expect("comment"),d;return(d=this.parseTextBlock())?{type:"BlockComment",val:c.val,block:d,buffer:c.buffer,line:c.loc.start.line,column:c.loc.start.column,filename:this.filename}:{type:"Comment",val:c.val,buffer:c.buffer,line:c.loc.start.line,column:c.loc.start.column,filename:this.filename}},parseDoctype:function(){var c=this.expect("doctype");return{type:"Doctype",val:c.val,line:c.loc.start.line,column:c.loc.start.column,filename:this.filename}},parseIncludeFilter:function(){var c=this.expect("filter"),d=[];return this.peek().type==="start-attributes"&&(d=this.attrs()),{type:"IncludeFilter",name:c.val,attrs:d,line:c.loc.start.line,column:c.loc.start.column,filename:this.filename}},parseFilter:function(){var c=this.expect("filter"),d,E=[];if(this.peek().type==="start-attributes"&&(E=this.attrs()),this.peek().type==="text"){var x=this.advance();d=this.initBlock(x.loc.start.line,[{type:"Text",val:x.val,line:x.loc.start.line,column:x.loc.start.column,filename:this.filename}])}else this.peek().type==="filter"?d=this.initBlock(c.loc.start.line,[this.parseFilter()]):d=this.parseTextBlock()||this.emptyBlock(c.loc.start.line);return{type:"Filter",name:c.val,block:d,attrs:E,line:c.loc.start.line,column:c.loc.start.column,filename:this.filename}},parseEach:function(){var c=this.expect("each"),d={type:"Each",obj:c.code,val:c.val,key:c.key,block:this.block(),line:c.loc.start.line,column:c.loc.start.column,filename:this.filename};return this.peek().type=="else"&&(this.advance(),d.alternate=this.block()),d},parseEachOf:function(){var c=this.expect("eachOf"),d={type:"EachOf",obj:c.code,val:c.val,block:this.block(),line:c.loc.start.line,column:c.loc.start.column,filename:this.filename};return d},parseExtends:function(){var c=this.expect("extends"),d=this.expect("path");return{type:"Extends",file:{type:"FileReference",path:d.val.trim(),line:d.loc.start.line,column:d.loc.start.column,filename:this.filename},line:c.loc.start.line,column:c.loc.start.column,filename:this.filename}},parseBlock:function(){var c=this.expect("block"),d=this.peek().type=="indent"?this.block():this.emptyBlock(c.loc.start.line);return d.type="NamedBlock",d.name=c.val.trim(),d.mode=c.mode,d.line=c.loc.start.line,d.column=c.loc.start.column,d},parseMixinBlock:function(){var c=this.expect("mixin-block");return this.inMixin||this.error("BLOCK_OUTISDE_MIXIN","Anonymous blocks are not allowed unless they are part of a mixin.",c),{type:"MixinBlock",line:c.loc.start.line,column:c.loc.start.column,filename:this.filename}},parseYield:function(){var c=this.expect("yield");return{type:"YieldBlock",line:c.loc.start.line,column:c.loc.start.column,filename:this.filename}},parseInclude:function(){for(var c=this.expect("include"),d={type:"Include",file:{type:"FileReference",filename:this.filename},line:c.loc.start.line,column:c.loc.start.column,filename:this.filename},E=[];this.peek().type==="filter";)E.push(this.parseIncludeFilter());var x=this.expect("path");return d.file.path=x.val.trim(),d.file.line=x.loc.start.line,d.file.column=x.loc.start.column,(/\.jade$/.test(d.file.path)||/\.pug$/.test(d.file.path))&&!E.length?(d.block=this.peek().type=="indent"?this.block():this.emptyBlock(c.loc.start.line),/\.jade$/.test(d.file.path)&&console.warn(this.filename+", line "+c.loc.start.line+`:
|
|
80
|
+
The .jade extension is deprecated, use .pug for "`+d.file.path+'".')):(d.type="RawInclude",d.filters=E,this.peek().type==="indent"&&this.error("RAW_INCLUDE_BLOCK","Raw inclusion cannot contain a block",this.peek())),d},parseCall:function(){var c=this.expect("call"),d=c.val,E=c.args,x={type:"Mixin",name:d,args:E,block:this.emptyBlock(c.loc.start.line),call:!0,attrs:[],attributeBlocks:[],line:c.loc.start.line,column:c.loc.start.column,filename:this.filename};return this.tag(x),x.code&&(x.block.nodes.push(x.code),delete x.code),x.block.nodes.length===0&&(x.block=null),x},parseMixin:function(){var c=this.expect("mixin"),d=c.val,E=c.args;if(this.peek().type=="indent"){this.inMixin++;var x={type:"Mixin",name:d,args:E,block:this.block(),call:!1,line:c.loc.start.line,column:c.loc.start.column,filename:this.filename};return this.inMixin--,x}else this.error("MIXIN_WITHOUT_BODY","Mixin "+d+" declared without body",c)},parseTextBlock:function(){var c=this.accept("start-pipeless-text");if(!c)return;for(var d=this.emptyBlock(c.loc.start.line);this.peek().type!=="end-pipeless-text";){var c=this.advance();switch(c.type){case"text":d.nodes.push({type:"Text",val:c.val,line:c.loc.start.line,column:c.loc.start.column,filename:this.filename});break;case"newline":d.nodes.push({type:"Text",val:`
|
|
81
|
+
`,line:c.loc.start.line,column:c.loc.start.column,filename:this.filename});break;case"start-pug-interpolation":d.nodes.push(this.parseExpr()),this.expect("end-pug-interpolation");break;case"interpolated-code":d.nodes.push({type:"Code",val:c.val,buffer:c.buffer,mustEscape:c.mustEscape!==!1,isInline:!0,line:c.loc.start.line,column:c.loc.start.column,filename:this.filename});break;default:var E=this.runPlugin("textBlockTokens",c,d,c);if(E)break;this.error("INVALID_TOKEN","Unexpected token type: "+c.type,c)}}return this.advance(),d},block:function(){for(var c=this.expect("indent"),d=this.emptyBlock(c.loc.start.line);this.peek().type!="outdent";)if(this.peek().type=="newline")this.advance();else if(this.peek().type=="text-html")d.nodes=d.nodes.concat(this.parseTextHtml());else{var E=this.parseExpr();E.type==="Block"?d.nodes=d.nodes.concat(E.nodes):d.nodes.push(E)}return this.expect("outdent"),d},parseInterpolation:function(){var c=this.advance(),d={type:"InterpolatedTag",expr:c.val,selfClosing:!1,block:this.emptyBlock(c.loc.start.line),attrs:[],attributeBlocks:[],isInline:!1,line:c.loc.start.line,column:c.loc.start.column,filename:this.filename};return this.tag(d,{selfClosingAllowed:!0})},parseTag:function(){var c=this.advance(),d={type:"Tag",name:c.val,selfClosing:!1,block:this.emptyBlock(c.loc.start.line),attrs:[],attributeBlocks:[],isInline:b.indexOf(c.val)!==-1,line:c.loc.start.line,column:c.loc.start.column,filename:this.filename};return this.tag(d,{selfClosingAllowed:!0})},tag:function(c,d){var E=!1,x=[],a=d&&d.selfClosingAllowed;e:for(;;)switch(this.peek().type){case"id":case"class":var O=this.advance();O.type==="id"&&(x.indexOf("id")!==-1&&this.error("DUPLICATE_ID",'Duplicate attribute "id" is not allowed.',O),x.push("id")),c.attrs.push({name:O.type,val:"'"+O.val+"'",line:O.loc.start.line,column:O.loc.start.column,filename:this.filename,mustEscape:!1});continue;case"start-attributes":E&&console.warn(this.filename+", line "+this.peek().loc.start.line+`:
|
|
82
|
+
You should not have pug tags with multiple attributes.`),E=!0,c.attrs=c.attrs.concat(this.attrs(x));continue;case"&attributes":var O=this.advance();c.attributeBlocks.push({type:"AttributeBlock",val:O.val,line:O.loc.start.line,column:O.loc.start.column,filename:this.filename});break;default:var _=this.runPlugin("tagAttributeTokens",this.peek(),c,x);if(_)break;break e}this.peek().type=="dot"&&(c.textOnly=!0,this.advance());switch(this.peek().type){case"text":case"interpolated-code":var L=this.parseText();L.type==="Block"?c.block.nodes.push.apply(c.block.nodes,L.nodes):c.block.nodes.push(L);break;case"code":c.block.nodes.push(this.parseCode(!0));break;case":":this.advance();var B=this.parseExpr();c.block=B.type==="Block"?B:this.initBlock(c.line,[B]);break;case"newline":case"indent":case"outdent":case"eos":case"start-pipeless-text":case"end-pug-interpolation":break;case"slash":if(a){this.advance(),c.selfClosing=!0;break}default:var _=this.runPlugin("tagTokens",this.peek(),c,d);if(_)break;this.error("INVALID_TOKEN","Unexpected token `"+this.peek().type+"` expected `text`, `interpolated-code`, `code`, `:`"+(a?", `slash`":"")+", `newline` or `eos`",this.peek())}for(;this.peek().type=="newline";)this.advance();if(c.textOnly)c.block=this.parseTextBlock()||this.emptyBlock(c.line);else if(this.peek().type=="indent")for(var k=this.block(),P=0,A=k.nodes.length;P<A;++P)c.block.nodes.push(k.nodes[P]);return c},attrs:function(c){this.expect("start-attributes");for(var d=[],E=this.advance();E.type==="attribute";)E.name!=="class"&&c&&(c.indexOf(E.name)!==-1&&this.error("DUPLICATE_ATTRIBUTE",'Duplicate attribute "'+E.name+'" is not allowed.',E),c.push(E.name)),d.push({name:E.name,val:E.val,line:E.loc.start.line,column:E.loc.start.column,filename:this.filename,mustEscape:E.mustEscape!==!1}),E=this.advance();return this.tokens.defer(E),this.expect("end-attributes"),d}}},{"./lib/inline-tags":226,assert:88,"pug-error":221,"token-stream":238}],226:[function(T,C,t){"use strict";C.exports=["a","abbr","acronym","b","br","code","em","font","i","img","ins","kbd","map","samp","small","span","strong","sub","sup"]},{}],227:[function(T,C,t){"use strict";var r=T("fs"),m=T("./lib/dependencies.js"),f=T("./lib/internals.js"),b=T("./lib/sources.js");C.exports=g;function g(p){var c=[];p=p.filter(function(E){return!f[E]});for(var d=0;d<p.length;d++)c.indexOf(p[d])===-1&&(c.push(p[d]),p.push.apply(p,m[p[d]]));return c.sort().map(function(E){return b[E]}).join(`
|
|
83
|
+
`)}},{"./lib/dependencies.js":229,"./lib/internals.js":230,"./lib/sources.js":231,fs:94}],228:[function(T,C,t){"use strict";var r=Object.prototype.hasOwnProperty;t.merge=m;function m(O,_){if(arguments.length===1){for(var L=O[0],B=1;B<O.length;B++)L=m(L,O[B]);return L}for(var k in _)if(k==="class"){var P=O[k]||[];O[k]=(Array.isArray(P)?P:[P]).concat(_[k]||[])}else if(k==="style"){var P=p(O[k]);P=P&&P[P.length-1]!==";"?P+";":P;var A=p(_[k]);A=A&&A[A.length-1]!==";"?A+";":A,O[k]=P+A}else O[k]=_[k];return O}t.classes=g;function f(O,_){for(var L="",B,k="",P=Array.isArray(_),A=0;A<O.length;A++){if(B=g(O[A]),!B)continue;P&&_[A]&&(B=x(B)),L=L+k+B,k=" "}return L}function b(O){var _="",L="";for(var B in O)B&&O[B]&&r.call(O,B)&&(_=_+L+B,L=" ");return _}function g(O,_){return Array.isArray(O)?f(O,_):O&&typeof O=="object"?b(O):O||""}t.style=p;function p(O){if(!O)return"";if(typeof O=="object"){var _="";for(var L in O)r.call(O,L)&&(_=_+L+":"+O[L]+";");return _}else return O+""}t.attr=c;function c(O,_,L,B){if(_===!1||_==null||!_&&(O==="class"||O==="style"))return"";if(_===!0)return" "+(B?O:O+'="'+O+'"');var k=typeof _;return(k==="object"||k==="function")&&typeof _.toJSON=="function"&&(_=_.toJSON()),typeof _!="string"&&(_=JSON.stringify(_),!L&&_.indexOf('"')!==-1)?" "+O+"='"+_.replace(/'/g,"'")+"'":(L&&(_=x(_))," "+O+'="'+_+'"')}t.attrs=d;function d(O,_){var L="";for(var B in O)if(r.call(O,B)){var k=O[B];if(B==="class"){k=g(k),L=c(B,k,!1,_)+L;continue}B==="style"&&(k=p(k)),L+=c(B,k,!1,_)}return L}var E=/["&<>]/;t.escape=x;function x(O){var _=""+O,L=E.exec(_);if(!L)return O;var B="",k,P,A;for(k=L.index,P=0;k<_.length;k++){switch(_.charCodeAt(k)){case 34:A=""";break;case 38:A="&";break;case 60:A="<";break;case 62:A=">";break;default:continue}P!==k&&(B+=_.substring(P,k)),P=k+1,B+=A}return P!==k?B+_.substring(P,k):B}t.rethrow=a;function a(O,_,L,B){if(!(O instanceof Error))throw O;if((typeof window!="undefined"||!_)&&!B)throw O.message+=" on line "+L,O;try{B=B||T("fs").readFileSync(_,"utf8")}catch(j){a(O,null,L)}var k=3,P=B.split(`
|
|
84
|
+
`),A=Math.max(L-k,0),R=Math.min(P.length,L+k),k=P.slice(A,R).map(function(j,v){var $=v+A+1;return($==L?" > ":" ")+$+"| "+j}).join(`
|
|
85
|
+
`);O.path=_;try{O.message=(_||"Pug")+":"+L+`
|
|
86
|
+
`+k+`
|
|
87
|
+
|
|
88
|
+
`+O.message}catch(j){}throw O}},{fs:94}],229:[function(T,C,t){C.exports={has_own_property:[],merge:["style"],classes_array:["classes","escape"],classes_object:["has_own_property"],classes:["classes_array","classes_object"],style:["has_own_property"],attr:["escape"],attrs:["attr","classes","has_own_property","style"],match_html:[],escape:["match_html"],rethrow:[]}},{}],230:[function(T,C,t){C.exports={dependencies:!0,internals:!0,has_own_property:!0,classes_array:!0,classes_object:!0,match_html:!0}},{}],231:[function(T,C,t){C.exports={has_own_property:"var pug_has_own_property=Object.prototype.hasOwnProperty;",merge:'function pug_merge(e,r){if(1===arguments.length){for(var t=e[0],g=1;g<e.length;g++)t=pug_merge(t,e[g]);return t}for(var l in r)if("class"===l){var n=e[l]||[];e[l]=(Array.isArray(n)?n:[n]).concat(r[l]||[])}else if("style"===l){var n=pug_style(e[l]);n=n&&";"!==n[n.length-1]?n+";":n;var a=pug_style(r[l]);a=a&&";"!==a[a.length-1]?a+";":a,e[l]=n+a}else e[l]=r[l];return e}',classes_array:'function pug_classes_array(r,a){for(var s,e="",u="",c=Array.isArray(a),g=0;g<r.length;g++)(s=pug_classes(r[g]))&&(c&&a[g]&&(s=pug_escape(s)),e=e+u+s,u=" ");return e}',classes_object:'function pug_classes_object(r){var a="",n="";for(var o in r)o&&r[o]&&pug_has_own_property.call(r,o)&&(a=a+n+o,n=" ");return a}',classes:'function pug_classes(s,r){return Array.isArray(s)?pug_classes_array(s,r):s&&"object"==typeof s?pug_classes_object(s):s||""}',style:'function pug_style(r){if(!r)return"";if("object"==typeof r){var t="";for(var e in r)pug_has_own_property.call(r,e)&&(t=t+e+":"+r[e]+";");return t}return r+""}',attr:`function pug_attr(t,e,n,r){if(!1===e||null==e||!e&&("class"===t||"style"===t))return"";if(!0===e)return" "+(r?t:t+'="'+t+'"');var f=typeof e;return"object"!==f&&"function"!==f||"function"!=typeof e.toJSON||(e=e.toJSON()),"string"==typeof e||(e=JSON.stringify(e),n||-1===e.indexOf('"'))?(n&&(e=pug_escape(e))," "+t+'="'+e+'"'):" "+t+"='"+e.replace(/'/g,"'")+"'"}`,attrs:'function pug_attrs(t,r){var a="";for(var s in t)if(pug_has_own_property.call(t,s)){var u=t[s];if("class"===s){u=pug_classes(u),a=pug_attr(s,u,!1,r)+a;continue}"style"===s&&(u=pug_style(u)),a+=pug_attr(s,u,!1,r)}return a}',match_html:'var pug_match_html=/["&<>]/;',escape:'function pug_escape(e){var a=""+e,t=pug_match_html.exec(a);if(!t)return e;var r,c,n,s="";for(r=t.index,c=0;r<a.length;r++){switch(a.charCodeAt(r)){case 34:n=""";break;case 38:n="&";break;case 60:n="<";break;case 62:n=">";break;default:continue}c!==r&&(s+=a.substring(c,r)),c=r+1,s+=n}return c!==r?s+a.substring(c,r):s}',rethrow:'function pug_rethrow(n,e,t,r){if(!(n instanceof Error))throw n;if(!("undefined"==typeof window&&e||r))throw n.message+=" on line "+t,n;try{r=r||require("fs").readFileSync(e,"utf8")}catch(e){pug_rethrow(n,null,t)}var a=3,i=r.split("\\n"),o=Math.max(t-a,0),h=Math.min(i.length,t+a),a=i.slice(o,h).map(function(n,e){var r=e+o+1;return(r==t?" > ":" ")+r+"| "+n}).join("\\n");n.path=e;try{n.message=(e||"Pug")+":"+t+"\\n"+a+"\\n\\n"+n.message}catch(n){}throw n}'}},{}],232:[function(T,C,t){var r=T("./");C.exports=m;function m(f,b){return b=b||"template",Function("pug",f+`
|
|
89
|
+
return `+b+";")(r)}},{"./":228}],233:[function(T,C,t){"use strict";var r=T("pug-error");C.exports=f;function m(b,g,p,c){var d="`"+b+"` encountered when "+g;throw r("UNEXPECTED_TOKEN",d,{filename:p,line:c})}function f(b,g){g=g||{};var p=g.stripUnbuffered!==!1,c=g.stripBuffered===!0,d=g.filename,E=[],x=!1,a=!1;return b.filter(function(O){switch(O.type){case"comment":if(x)m("comment","already in a comment",d,O.line);else return x=O.buffer?c:p,!x;case"start-pipeless-text":return x?(a&&m("start-pipeless-text","already in pipeless text mode",d,O.line),a=!0,!1):!0;case"end-pipeless-text":return x?(a||m("end-pipeless-text","not in pipeless text mode",d,O.line),a=!1,x=!1,!1):!0;case"text":return!x;default:return a?!1:(x=!1,!0)}})}},{"pug-error":221}],234:[function(T,C,t){"use strict";C.exports=r;function r(m,f,b,g){b&&typeof b=="object"&&typeof g=="undefined"&&(g=b,b=null),g=g||{includeDependencies:!1};var p=g.parents=g.parents||[],c=function x(a){if(Array.isArray(a)&&!x.arrayAllowed)throw new Error("replace() can only be called with an array if the last parent is a Block or NamedBlock");m=a};if(c.arrayAllowed=p[0]&&(/^(Named)?Block$/.test(p[0].type)||p[0].type==="RawInclude"&&m.type==="IncludeFilter"),f){var d=f(m,c);if(d===!1)return m;if(Array.isArray(m))return E(m)}p.unshift(m);switch(m.type){case"NamedBlock":case"Block":m.nodes=E(m.nodes);break;case"Case":case"Filter":case"Mixin":case"Tag":case"InterpolatedTag":case"When":case"Code":case"While":m.block&&(m.block=r(m.block,f,b,g));break;case"Each":m.block&&(m.block=r(m.block,f,b,g)),m.alternate&&(m.alternate=r(m.alternate,f,b,g));break;case"EachOf":m.block&&(m.block=r(m.block,f,b,g));break;case"Conditional":m.consequent&&(m.consequent=r(m.consequent,f,b,g)),m.alternate&&(m.alternate=r(m.alternate,f,b,g));break;case"Include":r(m.block,f,b,g),r(m.file,f,b,g);break;case"Extends":r(m.file,f,b,g);break;case"RawInclude":m.filters=E(m.filters),r(m.file,f,b,g);break;case"Attrs":case"BlockComment":case"Comment":case"Doctype":case"IncludeFilter":case"MixinBlock":case"YieldBlock":case"Text":break;case"FileReference":g.includeDependencies&&m.ast&&r(m.ast,f,b,g);break;default:throw new Error("Unexpected node type "+m.type)}return p.shift(),b&&b(m,c),m;function E(x){return x.reduce(function(a,O){var _=r(O,f,b,g);return Array.isArray(_)?a.concat(_):a.concat([_])},[])}}},{}],235:[function(T,C,t){C.exports={handleFilters:function(r){return r}}},{}],236:[function(T,C,t){(function(r){(function(){"use strict";/*!
|
|
90
|
+
* Pug
|
|
91
|
+
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
|
|
92
|
+
* MIT Licensed
|
|
93
|
+
*/var m=T("fs"),f=T("path"),b=T("pug-lexer"),g=T("pug-strip-comments"),p=T("pug-parser"),c=T("pug-load"),d=T("pug-filters"),E=T("pug-linker"),x=T("pug-code-gen"),a=T("pug-runtime"),O=T("pug-runtime/wrap");t.name="Pug",t.runtime=a,t.cache={};function _(P,A,R,j){return R.reduce(function(v,$){return $[j]?$[j](v,A):v},P)}function L(P,A){var R=P.filter(function(j){return j[A]});if(R.length>1)throw new Error("Two or more plugins all implement "+A+" method.");return R.length?R[0][A].bind(R[0]):null}t.filters={};function B(P,A){var R={};R[A.filename]=P;var j=[],v=A.plugins||[],$=c.string(P,{filename:A.filename,basedir:A.basedir,lex:function(z,Q){var re={};Object.keys(Q).forEach(function(H){re[H]=Q[H]}),re.plugins=v.filter(function(H){return!!H.lex}).map(function(H){return H.lex});var K=_(z,{filename:Q.filename},v,"preLex");return _(b(K,re),Q,v,"postLex")},parse:function(z,Q){z=z.map(function(K){return K.type==="path"&&f.extname(K.val)===""?{type:"path",loc:K.loc,val:K.val+".pug"}:K}),z=g(z,Q),z=_(z,Q,v,"preParse");var re={};return Object.keys(Q).forEach(function(K){re[K]=Q[K]}),re.plugins=v.filter(function(K){return!!K.parse}).map(function(K){return K.parse}),_(_(p(z,re),Q,v,"postParse"),Q,v,"preLoad")},resolve:function(z,Q,re){var K=L(v,"resolve");return K?K(z,Q,A):c.resolve(z,Q,re)},read:function(z,Q){j.push(z);var re,K=L(v,"read");return K?re=K(z,A):re=c.read(z,Q),R[z]=re,re}});$=_($,A,v,"postLoad"),$=_($,A,v,"preFilters");var D={};Object.keys(t.filters).forEach(function(z){D[z]=t.filters[z]}),A.filters&&Object.keys(A.filters).forEach(function(z){D[z]=A.filters[z]}),$=d.handleFilters($,D,A.filterOptions,A.filterAliases),$=_($,A,v,"postFilters"),$=_($,A,v,"preLink"),$=E($),$=_($,A,v,"postLink"),$=_($,A,v,"preCodeGen");var oe=(L(v,"generateCode")||x)($,{pretty:A.pretty,compileDebug:A.compileDebug,doctype:A.doctype,inlineRuntimeFunctions:A.inlineRuntimeFunctions,globals:A.globals,self:A.self,includeSources:A.includeSources?R:!1,templateName:A.templateName});return oe=_(oe,A,v,"postCodeGen"),A.debug&&console.error(`
|
|
94
|
+
Compiled Function:
|
|
95
|
+
|
|
96
|
+
[90m%s[0m`,oe.replace(/^/gm," ")),{body:oe,dependencies:j}}function k(P,A){var R=P.filename;if(P.cache&&t.cache[R])return t.cache[R];A===void 0&&(A=m.readFileSync(P.filename,"utf8"));var j=t.compile(A,P);return P.cache&&(t.cache[R]=j),j}t.compile=function(P,A){var A=A||{};P=String(P);var R=B(P,{compileDebug:A.compileDebug!==!1,filename:A.filename,basedir:A.basedir,pretty:A.pretty,doctype:A.doctype,inlineRuntimeFunctions:A.inlineRuntimeFunctions,globals:A.globals,self:A.self,includeSources:A.compileDebug===!0,debug:A.debug,templateName:"template",filters:A.filters,filterOptions:A.filterOptions,filterAliases:A.filterAliases,plugins:A.plugins}),j=A.inlineRuntimeFunctions?new Function("",R.body+";return template;")():O(R.body);return j.dependencies=R.dependencies,j},t.compileClientWithDependenciesTracked=function(P,A){var A=A||{};P=String(P);var R=B(P,{compileDebug:A.compileDebug,filename:A.filename,basedir:A.basedir,pretty:A.pretty,doctype:A.doctype,inlineRuntimeFunctions:A.inlineRuntimeFunctions!==!1,globals:A.globals,self:A.self,includeSources:A.compileDebug,debug:A.debug,templateName:A.name||"template",filters:A.filters,filterOptions:A.filterOptions,filterAliases:A.filterAliases,plugins:A.plugins}),j=R.body;return A.module&&(A.inlineRuntimeFunctions===!1&&(j='var pug = require("pug-runtime");'+j),j+=" module.exports = "+(A.name||"template")+";"),{body:j,dependencies:R.dependencies}},t.compileClient=function(P,A){return t.compileClientWithDependenciesTracked(P,A).body},t.compileFile=function(P,A){return A=A||{},A.filename=P,k(A)},t.render=function(P,A,R){if(typeof A=="function"&&(R=A,A=void 0),typeof R=="function"){var j;try{j=t.render(P,A)}catch(v){return R(v)}return R(null,j)}if(A=A||{},A.cache&&!A.filename)throw new Error('the "filename" option is required for caching');return k(A,P)(A)},t.renderFile=function(P,A,R){if(typeof A=="function"&&(R=A,A=void 0),typeof R=="function"){var j;try{j=t.renderFile(P,A)}catch(v){return R(v)}return R(null,j)}return A=A||{},A.filename=P,k(A)(A)},t.compileFileClient=function(P,A){var R=P+":client";if(A=A||{},A.filename=P,A.cache&&t.cache[R])return t.cache[R];var j=m.readFileSync(A.filename,"utf8"),v=t.compileClient(j,A);return A.cache&&(t.cache[R]=v),v},t.__express=function(P,A,R){A.compileDebug==null&&r.env.NODE_ENV==="production"&&(A.compileDebug=!1),t.renderFile(P,A,R)}}).call(this)}).call(this,T("_process"))},{_process:218,fs:94,path:217,"pug-code-gen":220,"pug-filters":235,"pug-lexer":222,"pug-linker":223,"pug-load":224,"pug-parser":225,"pug-runtime":228,"pug-runtime/wrap":232,"pug-strip-comments":233}],237:[function(T,C,t){"use strict";let r=null;function m(f){if(r!==null&&typeof r.property){const b=r;return r=m.prototype=null,b}return r=m.prototype=f??Object.create(null),new m}m(),C.exports=function(b){return m(b)}},{}],238:[function(T,C,t){"use strict";C.exports=r;function r(m){if(!Array.isArray(m))throw new TypeError("tokens must be passed to TokenStream as an array.");this._tokens=m}r.prototype.lookahead=function(m){if(this._tokens.length<=m)throw new Error("Cannot read past the end of a stream");return this._tokens[m]},r.prototype.peek=function(){if(this._tokens.length===0)throw new Error("Cannot read past the end of a stream");return this._tokens[0]},r.prototype.advance=function(){if(this._tokens.length===0)throw new Error("Cannot read past the end of a stream");return this._tokens.shift()},r.prototype.defer=function(m){this._tokens.unshift(m)}},{}],239:[function(T,C,t){C.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},{}],240:[function(T,C,t){"use strict";var r=this&&this.__createBinding||(Object.create?function(D,oe,z,Q){Q===void 0&&(Q=z),Object.defineProperty(D,Q,{enumerable:!0,get:function(){return oe[z]}})}:function(D,oe,z,Q){Q===void 0&&(Q=z),D[Q]=oe[z]}),m=this&&this.__setModuleDefault||(Object.create?function(D,oe){Object.defineProperty(D,"default",{enumerable:!0,value:oe})}:function(D,oe){D.default=oe}),f=this&&this.__importStar||function(D){if(D&&D.__esModule)return D;var oe={};if(D!=null)for(var z in D)Object.hasOwnProperty.call(D,z)&&r(oe,D,z);return m(oe,D),oe},b=this&&this.__importDefault||function(D){return D&&D.__esModule?D:{default:D}};Object.defineProperty(t,"__esModule",{value:!0});const g=b(T("assert-never")),p=T("babel-walk"),c=f(T("@babel/types")),d=b(T("./reference")),E=D=>c.isFunctionParent(D)||c.isProgram(D),x=D=>c.isBlockStatement(D)||E(D),a=D=>c.isFunction(D)&&!c.isArrowFunctionExpression(D),O=a,_=Symbol("locals"),L=D=>D[_],B=D=>D[_]=D[_]||new Set,k=(D,oe)=>B(D).add(oe);function P(D){for(const z of D.params)A(z,D);const oe=D.id;oe&&k(D,oe.name)}function A(D,oe){switch(D.type){case"Identifier":k(oe,D.name);break;case"ObjectPattern":for(const z of D.properties)switch(z.type){case"RestElement":A(z.argument,oe);break;case"ObjectProperty":A(z.value,oe);break;default:g.default(z);break}break;case"ArrayPattern":for(const z of D.elements)z&&A(z,oe);break;case"RestElement":A(D.argument,oe);break;case"AssignmentPattern":A(D.left,oe);break;default:throw new Error("Unrecognized pattern type: "+D.type)}}function R(D,oe,z){for(let Q=z.length-2;Q>=0;Q--)if(E(z[Q])){k(z[Q],D.local.name);return}}const j=p.ancestor({VariableDeclaration(D,oe,z){for(let Q=z.length-2;Q>=0;Q--)if(D.kind==="var"?c.isFunctionParent(z[Q]):x(z[Q])){for(const re of D.declarations)A(re.id,z[Q]);return}},FunctionDeclaration(D,oe,z){if(D.id){for(let Q=z.length-2;Q>=0;Q--)if(E(z[Q])){k(z[Q],D.id.name);return}}},Function:P,ClassDeclaration(D,oe,z){for(let Q=z.length-2;Q>=0;Q--)if(E(z[Q])){k(z[Q],D.id.name);return}},TryStatement(D){if(D.handler===null)return;if(D.handler.param===null)return;A(D.handler.param,D.handler)},ImportDefaultSpecifier:R,ImportSpecifier:R,ImportNamespaceSpecifier:R}),v=p.ancestor({Identifier(D,oe,z){var Q;const re=D.name;if(re==="undefined")return;const K=z[z.length-2];if(K){if(!d.default(D,K))return;for(const H of z){if(re==="arguments"&&a(H))return;if((Q=L(H))===null||Q===void 0?void 0:Q.has(re))return}}oe.globals.push(D)},ThisExpression(D,oe,z){for(const Q of z)if(O(Q))return;oe.globals.push(D)}});function $(D){const oe=[];if(!c.isNode(D))throw new TypeError("Source must be a Babylon AST");j(D,void 0),v(D,{globals:oe});const z=new Map;for(const Q of oe){const re=Q.type==="ThisExpression"?"this":Q.name,K=z.get(re);K?K.push(Q):z.set(re,[Q])}return[...z].map(([Q,re])=>({name:Q,nodes:re})).sort((Q,re)=>Q.name<re.name?-1:1)}t.default=$},{"./reference":242,"@babel/types":50,"assert-never":87,"babel-walk":93}],241:[function(T,C,t){"use strict";var r=this&&this.__createBinding||(Object.create?function(_,L,B,k){k===void 0&&(k=B),Object.defineProperty(_,k,{enumerable:!0,get:function(){return L[B]}})}:function(_,L,B,k){k===void 0&&(k=B),_[k]=L[B]}),m=this&&this.__setModuleDefault||(Object.create?function(_,L){Object.defineProperty(_,"default",{enumerable:!0,value:L})}:function(_,L){_.default=L}),f=this&&this.__importStar||function(_){if(_&&_.__esModule)return _;var L={};if(_!=null)for(var B in _)Object.hasOwnProperty.call(_,B)&&r(L,_,B);return m(L,_),L},b=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(t,"__esModule",{value:!0});const g=T("@babel/parser"),p=T("babel-walk"),c=f(T("@babel/types")),d=b(T("./globals")),E={allowReturnOutsideFunction:!0,allowImportExportEverywhere:!0};function x(_,L,B=[]){_=_+"",L=L+"";let k;try{k=g.parse(L,E)}catch(z){throw Object.assign(new Error("Error parsing body of the with expression"),{component:"src",babylonError:z})}let P;try{P=g.parse(_,E)}catch(z){throw Object.assign(new Error("Error parsing object part of the with expression"),{component:"obj",babylonError:z})}const A=new Set(["undefined","this",...B,...d.default(P).map(z=>z.name)]),R=new Set(d.default(k).map(z=>z.name).filter(z=>!A.has(z)));if(R.size===0)return L;let j="",v="locals_for_with",$="result_of_with";if(c.isValidIdentifier(_))v=_;else{for(;R.has(v)||A.has(v);)v+="_";j=`var ${v} = (${_});`}for(;R.has($)||A.has($);)$+="_";const D=["this",...Array.from(R).map(z=>`${JSON.stringify(z)} in ${v} ?
|
|
97
|
+
${v}.${z} :
|
|
98
|
+
typeof ${z} !== 'undefined' ? ${z} : undefined`)],oe=O(k,L,$);return`;
|
|
99
|
+
${j}
|
|
100
|
+
${oe.before}
|
|
101
|
+
(function (${Array.from(R).join(", ")}) {
|
|
102
|
+
${oe.body}
|
|
103
|
+
}.call(${D.join(", ")}));
|
|
104
|
+
${oe.after};`}t.default=x;const a=p.recursive({Function(_,L,B){},ReturnStatement(_,L){L.hasReturn=!0;let B="";_.argument&&(B=`value: (${L.source(_.argument)})`),L.replace(_,`return {${B}};`)}});function O(_,L,B){const k=L.split(""),P={hasReturn:!1,source(A){return L.slice(A.start,A.end)},replace(A,R){k.fill("",A.start,A.end),k[A.start]=R}};return a(_,P),{before:P.hasReturn?`var ${B} = `:"",body:k.join(""),after:P.hasReturn?`;if (${B}) return ${B}.value`:""}}C.exports=x,C.exports.default=x},{"./globals":240,"@babel/parser":5,"@babel/types":50,"babel-walk":93}],242:[function(T,C,t){"use strict";var r=this&&this.__createBinding||(Object.create?function(p,c,d,E){E===void 0&&(E=d),Object.defineProperty(p,E,{enumerable:!0,get:function(){return c[d]}})}:function(p,c,d,E){E===void 0&&(E=d),p[E]=c[d]}),m=this&&this.__setModuleDefault||(Object.create?function(p,c){Object.defineProperty(p,"default",{enumerable:!0,value:c})}:function(p,c){p.default=c}),f=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var c={};if(p!=null)for(var d in p)Object.hasOwnProperty.call(p,d)&&r(c,p,d);return m(c,p),c};Object.defineProperty(t,"__esModule",{value:!0});const b=f(T("@babel/types"));function g(p,c){switch(c.type){case"ObjectProperty":return c.value===p||c.computed;case"BreakStatement":case"ContinueStatement":return!1;case"AssignmentExpression":return!0}return b.isReferenced(p,c)}t.default=g},{"@babel/types":50}]},{},[1]);
|