eslint-config-sukka 6.2.0 → 6.2.2

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/dist/index.cjs CHANGED
@@ -1,6 +1,3 @@
1
- let e;"use strict";const t=e=>Promise.resolve(require(e));var s=require("@eslint-sukka/shared"),r=require("node:fs"),i=require("node:process");require("node:fs/promises");var n=require("node:url"),a=require("node:path"),o=require("./vendor-BoZ9pZii.cjs"),l=require("fs"),c=require("@eslint-community/eslint-plugin-eslint-comments"),p=require("eslint-plugin-sukka"),h=require("eslint-plugin-promise"),u=require("eslint-plugin-regexp"),f=require("@eslint/js"),d=require("@stylistic/eslint-plugin-js"),m=require("@stylistic/eslint-plugin-plus"),g=require("eslint-plugin-unused-imports"),y=require("eslint-plugin-import-x"),x=require("eslint-plugin-autofix"),v=require("eslint-plugin-jsonc"),k=require("jsonc-eslint-parser"),b=require("eslint-plugin-sukka-ts"),w=require("typescript-eslint"),_=require("@stylistic/eslint-plugin-ts"),S=require("eslint-plugin-deprecation"),E=require("@eslint/compat"),C=require("node:module"),P=require("node:assert"),I=require("node:v8"),A=require("node:util"),R=require("picocolors"),T=require("defu"),L=require("ci-info"),N="undefined"!=typeof document?document.currentScript:null;function j(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(s){if("default"!==s){var r=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:function(){return e[s]}})}}),t.default=e,Object.freeze(t)}var O=/*#__PURE__*/j(l),V=/*#__PURE__*/j(u);const D=e=>e instanceof URL?n.fileURLToPath(e):e;var U=/*@__PURE__*/o.g(O);const M=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),F=/[<>:"|?*\n\r\t\f\x00-\x1F]/,B=/(?:^|\/)[*]{2}($|\/)/,$=e=>"string"==typeof e&&e.length<=248&&!F.test(e),q=e=>String(e).split(/\r\n?|\n/),W=e=>e.startsWith("#"),G=e=>M(e)&&e.patterns&&e.sections,H=(e,t={})=>{let s,r=t.path;if(G(e))return e;$(e)&&U.existsSync(e)&&(r=e,e=U.readFileSync(e));let i=q(e),n=new Map,a={sections:[],patterns:[]},o={name:"default",patterns:[]};for(let e of i){let t=e.trim();if(t.startsWith("#")){let[,e]=/^#+\s*(.*)\s*$/.exec(t);if(s){n.delete(s.name),s.comment+=t?`
2
- ${t}`:"",s.name=e?`${s.name.trim()}
3
- ${e.trim()}`:s.name.trim(),n.set(s.name.toLowerCase().trim(),s);continue}o={name:e.trim(),comment:t,patterns:[]},n.set(o.name.toLowerCase(),o),a.sections.push(o),s=o;continue}""!==t&&(o.patterns.push(t),a.patterns.push(t)),s=null}return(!0===t.dedupe||!0===t.unique)&&(a=z(a,{...t,format:!1})),a.path=r,a.input=Buffer.from(e),a.format=e=>J(a,{...t,...e}),a.dedupe=e=>z(a,{...t,...e}),a.globs=e=>Q(a,{path:r,...t,...e}),a},z=(e,t)=>{let s;let r=H(e,{...t,dedupe:!1}),i=new Map,n={sections:[],patterns:new Set};for(let e of r.sections){let{name:t="",comment:r,patterns:a}=e,o=t.trim().toLowerCase();for(let e of a)n.patterns.add(e);t&&i.has(o)?(s=i.get(o)).patterns=[...s.patterns,...a]:(s={name:t,comment:r,patterns:a},n.sections.push(s),i.set(o,s))}for(let e of n.sections)e.patterns=[...new Set(e.patterns)];return n.patterns=[...n.patterns],n},K=(e,t)=>{if(B.test(e))return e;let s=!1;return e.startsWith("/")?(e=e.slice(1),s=!0):e.slice(1,e.length-1).includes("/")&&(s=!0),e+=e.endsWith("/")?"**/":"/**",s?e:`**/${e}`},Q=(e,t={})=>{let s=H(e,t),r=[],i=0,n=s.patterns.concat(t.ignore||[]).concat((t.unignore||[]).map(e=>e.startsWith("!")?e:"!"+e)),a=(e,s)=>{let n=r[r.length-1],a=e?"unignore":"ignore";n&&n.type===a?n.patterns.includes(s)||n.patterns.push(s):(r.push({type:a,path:t.path||null,patterns:[s],index:i}),i++)};for(let e of n){let t="";e.startsWith("!")&&(e=e.slice(1),t="!"),a(t,e.startsWith("/")?e.slice(1):e),a(t,K(e))}return r},X=(e={})=>{let t=[e.comment||""];return e.patterns?.length&&(t.push(e.patterns.join("\n")),t.push("")),t.join("\n")},J=(e,t={})=>{let s=H(e,t),r=t.formatSection||X,i=s.sections||s,n=[];for(let e of[].concat(i))n.push(r(e));return n.join("\n")};H.file=(e,t)=>H(U.readFileSync(e,"utf8"),t),H.parse=H,H.dedupe=z,H.format=J,H.globs=Q,H.formatSection=X,H.patterns=e=>q(e).map(e=>e.trim()).filter(e=>""!==e&&!W(e));var Y=/*@__PURE__*/o.a(H);const Z=".gitignore";function ee(e={}){let t=[],{root:s=!1,files:n=s?Z:function(e,{cwd:t=i.cwd(),type:s="file",stopAt:n}={}){let o=a.resolve(D(t)??""),{root:l}=a.parse(o);for(n=a.resolve(o,D(n)??l);o&&o!==n&&o!==l;){let t=a.isAbsolute(e)?e:a.join(o,e);try{let e=r.statSync(t,{throwIfNoEntry:!1});if("file"===s&&e?.isFile()||"directory"===s&&e?.isDirectory())return t}catch{}o=a.dirname(o)}}(Z)||[],strict:o=!0}=e,l=Array.isArray(n)?n:[n];for(let e of l){let s="";try{s=r.readFileSync(e,"utf8")}catch(e){if(o)throw e;continue}for(let e of Y(`${s}
4
- `).globs())"ignore"===e.type?t.push(...e.patterns):"unignore"===e.type&&t.push(...e.patterns.map(e=>`!${e}`))}if(o&&0===l.length)throw Error("No .gitignore file found");return{ignores:t}}const et=(e={})=>{let{customGlobs:t=null,gitignore:r=[".gitignore"]}=e,i=[],n=[];return!1===t||null===t?n=s.constants.GLOB_EXCLUDE:"function"==typeof t?n=t(s.constants.GLOB_EXCLUDE):"string"==typeof t?n.push(...s.constants.GLOB_EXCLUDE,t):Array.isArray(t)&&n.push(...s.constants.GLOB_EXCLUDE,...t),i.push({ignores:n}),!1===r||null===r||(!0===r?i.push(ee({files:[".gitignore"],strict:!1})):("string"==typeof r||Array.isArray(r))&&i.push(ee({files:r,strict:!1}))),i},es=()=>[{name:"sukka/eslint-comments",plugins:{"@eslint-community/eslint-comments":c,sukka:s.memo(p,"eslint-plugin-sukka")},rules:{"sukka/ban-eslint-disable":["error","allow-with-description"],"@eslint-community/eslint-comments/disable-enable-pair":["error",{allowWholeFile:!0}],"@eslint-community/eslint-comments/no-aggregating-enable":"error","@eslint-community/eslint-comments/no-duplicate-disable":"error","@eslint-community/eslint-comments/no-unlimited-disable":"error","@eslint-community/eslint-comments/no-unused-disable":"error","@eslint-community/eslint-comments/no-unused-enable":"error"}}],er=({typescript:e})=>[{name:"sukka/promise",plugins:{promise:h},rules:{"promise/always-return":e?"off":["error",{ignoreLastCallback:!0}],"promise/no-return-wrap":"error","promise/param-names":"error","promise/catch-or-return":["error",{allowFinally:!0,terminationMethod:["catch","asCallback","finally"]}],"promise/no-native":"off","promise/no-nesting":"warn","promise/no-promise-in-callback":"warn","promise/no-callback-in-promise":"warn","promise/avoid-new":"off","promise/no-new-statics":"error","promise/no-return-in-finally":"warn","promise/valid-params":"warn"}}],ei=()=>[{name:"sukka/regexp",plugins:{sukka:s.memo(p,"eslint-plugin-sukka"),regexp:s.memo(V,"eslint-plugin-regexp")},rules:{"sukka/unicorn/better-regex":"error",...u.configs["flat/recommended"].rules}}],en=[".js",".jsx",".mjs",".cjs"],ea=(e={})=>{let{files:t,disableNoConsoleInCLI:r=!0,env:i={}}=e,{browser:n=!0,webextensions:a=!1,greasemonkey:o=!1,customGlobals:l={}}=i,c=e.module??s.getPackageJson()?.type==="module",h=[{name:"@eslint/js recommended",...f.configs.recommended},{linterOptions:{reportUnusedDisableDirectives:!0}},{name:"@eslint-sukka/js base",...t?{files:t}:{},languageOptions:{ecmaVersion:"latest",sourceType:c?"module":"commonjs",parserOptions:{ecmaVersion:"latest",sourceType:c?"module":"commonjs",ecmaFeatures:{jsx:!0}},globals:{...s.globals.es2025,...n&&s.globals.browser,...a&&s.globals.webextensions,...o&&s.globals.greasemonkey,...l}},settings:{"import-x/parsers":{espree:en},"import-x/extensions":en},plugins:{"unused-imports":s.memo(g,"eslint-plugin-unused-imports"),"@stylistic/js":s.memo(d,"@stylistic/eslint-plugin-js"),"@stylistic/plus":s.memo(m,"@stylistic/eslint-plugin-plus"),sukka:s.memo(p,"eslint-plugin-sukka"),"import-x":s.memo(y,"eslint-plugin-import-x"),autofix:x},rules:{...y.configs.recommended.rules,"accessor-pairs":"off","array-callback-return":["error",{allowImplicit:!0}],"block-scoped-var":"error","class-methods-use-this":["error",{exceptMethods:[]}],curly:["error","multi-line"],"default-case":["error",{commentPattern:"^no default$"}],"default-case-last":"error","default-param-last":"error","dot-notation":["error",{allowKeywords:!0}],"@stylistic/js/dot-location":["error","property"],eqeqeq:["error","always",{null:"ignore"}],"grouped-accessor-pairs":"error","guard-for-in":"error","no-alert":"warn","no-caller":"off","autofix/no-caller":"error","no-constructor-return":"error","no-else-return":["error",{allowElseIf:!1}],"no-empty-pattern":"error","no-empty-static-block":"error","no-eval":"error","no-extend-native":"error","no-extra-bind":"error","no-extra-label":"error","no-implicit-coercion":["off",{boolean:!1,number:!0,string:!0,allow:[]}],"no-implicit-globals":"off","no-implied-eval":"error","no-invalid-this":"off","no-labels":["error",{allowLoop:!1,allowSwitch:!1}],"no-lone-blocks":"error","no-loop-func":"error","@stylistic/js/no-multi-spaces":["error",{ignoreEOLComments:!1}],"no-multi-str":"error","no-new":"error","no-new-func":"error","no-new-wrappers":"error","no-octal-escape":"error","no-proto":"off","autofix/no-proto":"error","no-restricted-properties":["error",...[["isFinite","Number.isFinite"],["isNaN","Number.isNaN"]].flatMap(([e,t])=>["global","globalThis","window","self"].map(s=>({object:s,property:e,message:`Please use ${t} instead`}))),{object:"arguments",property:"callee",message:"arguments.callee is deprecated"},{property:"__defineGetter__",message:"Please use Object.defineProperty instead."},{property:"__defineSetter__",message:"Please use Object.defineProperty instead."},{object:"Math",property:"pow",message:"Use the exponentiation operator (**) instead."}],"no-return-assign":["error","always"],"no-return-await":"off","sukka/no-return-await":"error","no-self-compare":"off","no-sequences":"error","no-unmodified-loop-condition":"off","no-unused-expressions":["error",{allowShortCircuit:!1,allowTernary:!1,allowTaggedTemplates:!1}],"no-useless-call":"off","no-useless-catch":"off","autofix/no-useless-catch":"error","no-useless-concat":"off","autofix/no-useless-concat":"error","no-useless-escape":"error","no-useless-return":"error","no-void":["error",{allowAsStatement:!0}],"no-with":"error","prefer-promise-reject-errors":["error",{allowEmptyReject:!0}],"prefer-object-has-own":"error","prefer-regex-literals":["error",{disallowRedundantWrapping:!0}],radix:"off","autofix/radix":"error","require-await":"error","require-yield":"error","require-unicode-regexp":"off","vars-on-top":"error","@stylistic/js/wrap-iife":["error","outside",{functionPrototypeMethods:!1}],yoda:"error","no-await-in-loop":"warn","no-console":"warn","no-constant-condition":"warn","no-empty-function":"error","no-empty":["error",{allowEmptyCatch:!0}],"no-constant-binary-expression":"error","@stylistic/js/no-extra-parens":["off","all",{conditionalAssign:!0,nestedBinaryExpressions:!1,returnAssign:!1,ignoreJSX:"all",enforceForArrowConditionals:!1}],"no-loss-of-precision":"warn","no-promise-executor-return":"error","no-template-curly-in-string":"error","no-unreachable-loop":["error",{ignore:[]}],"no-unused-vars":["error",{vars:"all",varsIgnorePattern:"^_",args:"after-used",argsIgnorePattern:"^_",ignoreRestSiblings:!0}],"unused-imports/no-unused-vars":"off","unused-imports/no-unused-imports":"off","no-unused-private-class-members":"error","no-useless-backreference":"error","no-negated-in-lhs":"off","require-atomic-updates":"off","use-isnan":["error",{enforceForIndexOf:!0}],"valid-typeof":"off","autofix/valid-typeof":["error",{requireStringLiterals:!0}],"no-new-native-nonconstructor":"off","autofix/no-new-native-nonconstructor":"error","@stylistic/js/arrow-spacing":["error",{before:!0,after:!0}],"@stylistic/js/generator-star-spacing":["error",{before:!0,after:!1}],"@stylistic/js/no-confusing-arrow":["error",{allowParens:!0}],"no-duplicate-imports":"off","no-restricted-exports":["error",{restrictedNamedExports:["then"]}],"no-useless-constructor":"error","no-useless-rename":["error",{ignoreDestructuring:!1,ignoreImport:!1,ignoreExport:!1}],"no-var":"warn","object-shorthand":["error","always",{ignoreConstructors:!1,avoidQuotes:!0,avoidExplicitReturnArrows:!0}],"prefer-arrow-callback":["error",{allowNamedFunctions:!1,allowUnboundThis:!0}],"prefer-const":["error",{ignoreReadBeforeAssign:!0}],"prefer-numeric-literals":"error","prefer-rest-params":"error","prefer-template":"off","symbol-description":"error","@stylistic/js/template-curly-spacing":["error","never"],"@stylistic/js/yield-star-spacing":["error","before"],"@stylistic/js/array-bracket-newline":["off","consistent"],"@stylistic/js/array-bracket-spacing":["error","never"],"@stylistic/js/array-element-newline":["off",{multiline:!0,minItems:5}],"@stylistic/js/block-spacing":["error","always"],"@stylistic/js/brace-style":["error","1tbs",{allowSingleLine:!0}],camelcase:["warn",{properties:"never",ignoreDestructuring:!1,ignoreImports:!0,ignoreGlobals:!0,allow:["^UNSAFE_","^experimental_","^__DEV__"]}],"@stylistic/js/comma-dangle":["error","never"],"@stylistic/js/comma-spacing":["error",{before:!1,after:!0}],"@stylistic/js/comma-style":["error","last",{exceptions:{ArrayExpression:!1,ArrayPattern:!1,ArrowFunctionExpression:!1,CallExpression:!1,FunctionDeclaration:!1,FunctionExpression:!1,ImportDeclaration:!1,ObjectExpression:!1,ObjectPattern:!1,VariableDeclaration:!1,NewExpression:!1}}],"@stylistic/js/computed-property-spacing":["error","never"],"consistent-this":"off","@stylistic/js/eol-last":["error","always"],"@stylistic/js/func-call-spacing":["error","never"],"@stylistic/js/function-call-argument-newline":["off","consistent"],"@stylistic/js/function-paren-newline":["error","consistent"],"@stylistic/js/implicit-arrow-linebreak":["error","beside"],"@stylistic/js/indent":["error",2,{SwitchCase:1}],"@stylistic/plus/indent-binary-ops":["error",2],"@stylistic/js/key-spacing":["error",{beforeColon:!1,afterColon:!0}],"@stylistic/js/keyword-spacing":["error",{before:!0,after:!0,overrides:{return:{after:!0},throw:{after:!0},case:{after:!0}}}],"@stylistic/js/linebreak-style":"error","@stylistic/js/lines-around-comment":"off","@stylistic/js/lines-around-directive":"off","@stylistic/js/lines-between-class-members":["error","always",{exceptAfterSingleLine:!0}],"@stylistic/js/multiline-ternary":"off","new-cap":["error",{newIsCap:!0,newIsCapExceptions:[],capIsNew:!1,capIsNewExceptions:["Immutable.Map","Immutable.Set","Immutable.List"]}],"@stylistic/js/newline-per-chained-call":["error",{ignoreChainWithDepth:6}],"@stylistic/js/new-parens":"error","no-bitwise":"off","no-lonely-if":"error","sukka/unicorn/no-lonely-if":"error","@stylistic/js/no-mixed-operators":["error",{groups:[["**","+"],["**","-"],["**","*"],["**","/"],["%","+"],["%","-"],["%","*"],["%","/"],["%","**"],["==","!=","===","!==",">",">=","<","<="],["&&","||"],["in","instanceof"]],allowSamePrecedence:!0}],"@stylistic/js/no-mixed-spaces-and-tabs":"error","no-multi-assign":"error","@stylistic/js/no-multiple-empty-lines":["error",{max:1,maxBOF:0,maxEOF:0}],"no-negated-condition":"off","sukka/unicorn/no-negated-condition":"warn","no-nested-ternary":"off","sukka/unicorn/no-nested-ternary":"warn","no-new-object":"off","no-object-constructor":"error","no-array-constructor":"error","@stylistic/js/no-spaced-func":"off","@stylistic/js/no-tabs":"error","no-ternary":"off","@stylistic/js/no-trailing-spaces":"error","no-unneeded-ternary":"error","@stylistic/js/no-whitespace-before-property":"error","@stylistic/js/nonblock-statement-body-position":"error","@stylistic/js/object-curly-newline":"off","@stylistic/js/object-curly-spacing":["error","always"],"@stylistic/js/object-property-newline":"off","@stylistic/js/one-var-declaration-per-line":"off","prefer-exponentiation-operator":"error","@stylistic/js/operator-linebreak":["error","before"],"@stylistic/js/padded-blocks":["error","never"],"@stylistic/js/padding-line-between-statements":["error",{blankLine:"always",prev:"directive",next:"*"},{blankLine:"always",prev:"*",next:["class","with"]},{blankLine:"always",prev:["class","with"],next:"*"}],"@stylistic/js/quotes":["error","single"],"@stylistic/js/quote-props":["error","as-needed",{keywords:!1,unnecessary:!0,numbers:!1}],"@stylistic/js/jsx-quotes":["error","prefer-double"],"@stylistic/js/rest-spread-spacing":["error","never"],"@stylistic/js/semi":["error","always"],"@stylistic/js/semi-spacing":["error",{before:!1,after:!0}],"@stylistic/js/semi-style":["error","last"],"@stylistic/js/space-before-blocks":"error","@stylistic/js/space-before-function-paren":["error",{anonymous:"always",named:"never",asyncArrow:"always"}],"@stylistic/js/space-in-parens":["error","never"],"@stylistic/js/space-infix-ops":"error","@stylistic/js/space-unary-ops":["error",{words:!0,nonwords:!1,overrides:{}}],"@stylistic/js/spaced-comment":["error","always",{line:{exceptions:["-","+"],markers:["=","!","/"]},block:{exceptions:["-","+"],markers:["=","!",":","::"],balanced:!0}}],"@stylistic/js/switch-colon-spacing":["error",{after:!0,before:!1}],"@stylistic/js/template-tag-spacing":["error","never"],"unicode-bom":["error","never"],"@stylistic/js/wrap-regex":"off","no-label-var":"error","no-use-before-define":["error",{functions:!1,classes:!0,variables:!0}],"no-restricted-globals":["error",{name:"isFinite",message:"Use Number.isFinite instead https://github.com/airbnb/javascript#standard-library--isfinite"},{name:"isNaN",message:"Use Number.isNaN instead https://github.com/airbnb/javascript#standard-library--isnan"}],"no-undef-init":"error","sukka/array/no-unneeded-flat-map":"error","sukka/browser/prefer-location-assign":"warn","sukka/jsx/no-template-literal":"error","sukka/jsx/no-unneeded-nested":"error","sukka/string/no-locale-case":"warn","sukka/string/no-simple-template-literal":"error","sukka/type/no-instanceof-wrapper":"error","sukka/unicode/no-bidi":"warn","sukka/unicode/no-invisible":"warn","sukka/no-redundant-variable":"error","sukka/no-single-return":"error","sukka/prefer-early-return":["error",{maximumStatements:16}],"sukka/prefer-fetch":"error","sukka/prefer-timer-id":"warn","sukka/unicorn/catch-error-name":["error",{ignore:[/^(?:e|err|error|\w+Err|\w+Error)[\d_]?$/]}],"sukka/unicorn/custom-error-definition":"error","sukka/unicorn/require-array-join-separator":"warn","sukka/unicorn/no-thenable":"error","sukka/unicorn/no-invalid-remove-event-listener":"error","sukka/unicorn/consistent-function-scoping":"warn","sukka/unicorn/prefer-event-target":"warn","sukka/unicorn/prefer-keyboard-event-key":"warn","sukka/unicorn/prefer-text-content":"warn","sukka/unicorn/no-console-spaces":"warn","sukka/unicorn/no-empty-file":"warn","sukka/unicorn/no-useless-fallback-in-spread":"warn","sukka/unicorn/no-useless-length-check":"warn","sukka/unicorn/no-useless-promise-resolve-reject":"warn","sukka/unicorn/no-zero-fractions":"warn","sukka/unicorn/prefer-export-from":["warn",{ignoreUsedVariables:!0}],"sukka/unicorn/prefer-native-coercion-functions":"warn","sukka/unicorn/prefer-negative-index":"warn","sukka/unicorn/no-document-cookie":"error","sukka/unicorn/prefer-add-event-listener":"warn","sukka/unicorn/prefer-array-index-of":"warn","sukka/unicorn/prefer-blob-reading-methods":"warn","sukka/unicorn/prefer-date-now":"warn","sukka/unicorn/prefer-dom-node-dataset":"warn","sukka/unicorn/prefer-modern-math-apis":"warn","sukka/unicorn/number-literal-case":"error","sukka/unicorn/prefer-number-properties":["warn",{checkInfinity:!1}],"sukka/unicorn/prefer-reflect-apply":"warn","sukka/unicorn/prefer-set-size":"warn","sukka/unicorn/prefer-string-replace-all":"warn","sukka/unicorn/prefer-string-slice":"warn","sukka/unicorn/prefer-string-trim-start-end":"warn","sukka/unicorn/no-unreadable-iife":"warn","sukka/unicorn/throw-new-error":"warn","sukka/unicorn/escape-case":"warn","sukka/unicorn/no-hex-escape":"warn","sukka/unicorn/prefer-prototype-methods":"warn","sukka/unicorn/error-message":"error","sukka/unicorn/no-instanceof-array":"error","sukka/unicorn/prefer-type-error":"error","sukka/unicorn/consistent-destructuring":"warn","sukka/unicorn/new-for-builtins":"warn","sukka/unicorn/no-array-push-push":"warn","sukka/unicorn/no-static-only-class":"warn","sukka/unicorn/no-unreadable-array-destructuring":"error","sukka/unicorn/no-useless-spread":"error","sukka/unicorn/no-useless-switch-case":"warn","sukka/unicorn/no-useless-undefined":["error",{checkArguments:!1}],"sukka/unicorn/numeric-separators-style":["warn",{onlyIfContainsSeparator:!1,number:{minimumDigits:7,groupLength:3},binary:{minimumDigits:9,groupLength:4},octal:{minimumDigits:9,groupLength:4},hexadecimal:{minimumDigits:5,groupLength:2}}],"sukka/unicorn/prefer-array-find":"warn","sukka/unicorn/prefer-array-flat-map":"warn","sukka/unicorn/prefer-array-flat":"warn","sukka/unicorn/prefer-array-some":"warn","sukka/unicorn/prefer-code-point":"warn","sukka/unicorn/prefer-default-parameters":"warn","sukka/unicorn/prefer-logical-operator-over-ternary":"warn","sukka/unicorn/prefer-optional-catch-binding":"error","sukka/unicorn/prefer-regexp-test":"warn","sukka/unicorn/prefer-set-has":"error","sukka/unicorn/prefer-switch":"warn","sukka/unicorn/require-number-to-fixed-digits-argument":"warn","sukka/import-dedupe":"error","sukka/unicorn/prefer-string-raw":"warn","sukka/unicorn/no-single-promise-in-promise-methods":"error","sukka/unicorn/no-await-in-promise-methods":"error","sukka/unicorn/no-magic-array-flat-depth":"error","sukka/unicorn/no-object-as-default-parameter":"error","sukka/unicorn/template-indent":["warn",{tags:["outdent","dedent","gql","sql","html","styled","css"],functions:["dedent","stripIndent","strip_indent","stripTags","striptags","strip_tags","stripHtml","stripHTML","strip_html"],selectors:[],comments:["HTML","html","CSS","css","indent"]}],"sukka/unicorn/no-negation-in-equality-check":"error","sukka/unicorn/no-length-as-slice-end":"error","no-restricted-imports":["error",{paths:s.RESTRICTED_IMPORT_JS}],"no-prototype-builtins":"off","autofix/no-prototype-builtins":"error"}}];if(!1!==r){let e="boolean"==typeof r?null:Array.isArray(r)?r:[r];h.push({name:"@eslint-sukka/js cli specific",files:e??[`**/scripts/${s.constants.GLOB_SRC}`,`**/cli/${s.constants.GLOB_SRC}`,`**/cli.${s.constants.GLOB_SRC_EXT}`],rules:{"no-console":"off"}})}return h},eo={plugins:{jsonc:s.memo(v,"eslint-plugin-jsonc")},languageOptions:{parser:k}},el={"jsonc/array-bracket-spacing":["error","never"],"jsonc/comma-dangle":["error","never"],"jsonc/comma-style":["error","last"],"jsonc/indent":["error",2],"jsonc/key-spacing":["error",{beforeColon:!1,afterColon:!0}],"jsonc/object-curly-newline":"off","jsonc/object-curly-spacing":["error","always"],"jsonc/object-property-newline":["error",{allowMultiplePropertiesPerLine:!0}],"jsonc/quote-props":"error","jsonc/quotes":"error"},ec=()=>[...v.configs["flat/base"],{name:"@eslint-sukka/json json",files:[s.constants.GLOB_JSON],rules:{...v.configs["flat/recommended-with-json"].reduce((e,t)=>({...e,...t.rules}),{}),...el}},{name:"@eslint-sukka/json json5",...eo,files:[s.constants.GLOB_JSON5],rules:{...v.configs["flat/recommended-with-json5"].reduce((e,t)=>({...e,...t.rules}),{}),...el}},{name:"@eslint-sukka/json jsonc",...eo,files:[s.constants.GLOB_JSONC],rules:{...v.configs["flat/recommended-with-jsonc"].reduce((e,t)=>({...e,...t.rules}),{}),...el}},{name:"@eslint-sukka/json package.json",...eo,files:["**/package.json"],rules:{"jsonc/sort-array-values":["error",{order:{type:"asc"},pathPattern:"^files$"}],"jsonc/sort-keys":["error",{order:["$schema","publisher","name","displayName","version","private","description","funding","homepage","repository","bugs","categories","type","main","module","types","typesVersions","bin","files","exports","icon","unpkg","jsdelivr","sideEffects","activationEvents","contributes","scripts","keywords","author","license","dependencies","devDependencies","peerDependencies","peerDependenciesMeta","optionalDependencies","packageManager","engines","pnpm","overrides","resolutions","husky","simple-git-hooks","lint-staged","eslintConfig"],pathPattern:"^$"},{order:{type:"asc"},pathPattern:"^(?:dev|peer|optional|bundled)?[Dd]ependencies(Meta)?$"},{order:["types","import","module","require","default"],pathPattern:"^exports.*$"}]}},{name:"@eslint-sukka/json tsconfig.json",...eo,files:["**/tsconfig.json","**/tsconfig.*.json","**/tsconfig-*.json","**/jsconfig.json","**/jsconfig.*.json","**/jsconfig-*.json"],rules:{"jsonc/sort-keys":["error",{order:["$schema","extends","compilerOptions","references","files","include","exclude"],pathPattern:"^$"},{order:["incremental","composite","tsBuildInfoFile","disableSourceOfProjectReferenceRedirect","disableSolutionSearching","disableReferencedProjectLoad","target","lib","jsx","experimentalDecorators","emitDecoratorMetadata","jsxFactory","jsxFragmentFactory","jsxImportSource","reactNamespace","noLib","useDefineForClassFields","moduleDetection","module","rootDir","moduleResolution","baseUrl","paths","rootDirs","typeRoots","types","allowUmdGlobalAccess","moduleSuffixes","allowImportingTsExtensions","resolvePackageJsonExports","resolvePackageJsonImports","customConditions","resolveJsonModule","allowArbitraryExtensions","noResolve","allowJs","checkJs","maxNodeModuleJsDepth","declaration","declarationMap","emitDeclarationOnly","sourceMap","inlineSourceMap","outFile","outDir","removeComments","noEmit","importHelpers","importsNotUsedAsValues","downlevelIteration","sourceRoot","mapRoot","inlineSources","emitBOM","newLine","stripInternal","noEmitHelpers","noEmitOnError","preserveConstEnums","declarationDir","preserveValueImports","isolatedModules","verbatimModuleSyntax","allowSyntheticDefaultImports","esModuleInterop","preserveSymlinks","forceConsistentCasingInFileNames","strict","strictBindCallApply","strictFunctionTypes","strictNullChecks","strictPropertyInitialization","allowUnreachableCode","allowUnusedLabels","alwaysStrict","exactOptionalPropertyTypes","noFallthroughCasesInSwitch","noImplicitAny","noImplicitOverride","noImplicitReturns","noImplicitThis","noPropertyAccessFromIndexSignature","noUncheckedIndexedAccess","noUnusedLocals","noUnusedParameters","useUnknownInCatchVariables","skipDefaultLibCheck","skipLibCheck"],pathPattern:"^compilerOptions$"}]}}],ep={"no-dupe-class-members":"off","@typescript-eslint/no-dupe-class-members":"error","no-redeclare":"off","@typescript-eslint/no-redeclare":"error","no-unused-vars":"off","@typescript-eslint/no-unused-vars":["error",{vars:"all",varsIgnorePattern:"^_",args:"after-used",argsIgnorePattern:"^_",ignoreRestSiblings:!0}],"class-methods-use-this":"off","@typescript-eslint/class-methods-use-this":["error",{exceptMethods:[]}],"default-param-last":"off","@typescript-eslint/default-param-last":"error","dot-notation":"off","@typescript-eslint/dot-notation":["error",{allowKeywords:!0}],"no-implied-eval":"off","@typescript-eslint/no-implied-eval":"error","no-invalid-this":"off","@typescript-eslint/no-invalid-this":"off","no-loop-func":"off","@typescript-eslint/no-loop-func":"error","no-return-await":"off","@typescript-eslint/return-await":"error","sukka/no-return-await":"off","no-unused-expressions":"off","@typescript-eslint/no-unused-expressions":["error",{allowShortCircuit:!1,allowTernary:!1,allowTaggedTemplates:!1}],"prefer-promise-reject-errors":"off","@typescript-eslint/prefer-promise-reject-errors":["error",{allowEmptyReject:!0}],"require-await":"off","@typescript-eslint/require-await":"error","no-empty-function":"off","@typescript-eslint/no-empty-function":"error","@stylistic/js/no-extra-parens":"off","@stylistic/ts/no-extra-parens":["off","all",{conditionalAssign:!0,nestedBinaryExpressions:!1,returnAssign:!1,ignoreJSX:"all",enforceForArrowConditionals:!1}],"no-useless-constructor":"off","@typescript-eslint/no-useless-constructor":"error","@stylistic/js/block-spacing":"off","@stylistic/ts/block-spacing":["error","always"],"@stylistic/js/brace-style":"off","@stylistic/ts/brace-style":["error","1tbs",{allowSingleLine:!0}],camelcase:"off","@stylistic/js/comma-dangle":"off","@stylistic/ts/comma-dangle":["error","never"],"@stylistic/js/comma-spacing":"off","@stylistic/ts/comma-spacing":["error",{before:!1,after:!0}],"@stylistic/js/func-call-spacing":"off","@stylistic/ts/func-call-spacing":["error","never"],"@stylistic/js/indent":"off","@stylistic/ts/indent":["error",2,{SwitchCase:1}],"@stylistic/js/key-spacing":"off","@stylistic/ts/key-spacing":["error",{beforeColon:!1,afterColon:!0}],"@stylistic/js/keyword-spacing":"off","@stylistic/ts/keyword-spacing":["error",{before:!0,after:!0,overrides:{return:{after:!0},throw:{after:!0},case:{after:!0}}}],"@stylistic/js/lines-around-comment":"off","@stylistic/ts/lines-around-comment":"off","@stylistic/js/lines-between-class-members":"off","@stylistic/ts/lines-between-class-members":["error","always",{exceptAfterSingleLine:!0}],"no-array-constructor":"off","@typescript-eslint/no-array-constructor":"error","@stylistic/js/object-curly-newline":"off","@stylistic/ts/object-curly-newline":"off","@stylistic/js/object-curly-spacing":"off","@stylistic/ts/object-curly-spacing":["error","always"],"@stylistic/js/object-property-newline":"off","@stylistic/ts/object-property-newline":"off","@stylistic/js/padding-line-between-statements":"off","@stylistic/ts/padding-line-between-statements":["error",{blankLine:"always",prev:"directive",next:"*"},{blankLine:"always",prev:"*",next:["class","with"]},{blankLine:"always",prev:["class","with"],next:"*"}],"@stylistic/js/quotes":"off","@stylistic/ts/quotes":["error","single"],"@stylistic/js/quote-props":"off","@stylistic/ts/quote-props":["error","as-needed",{keywords:!1,unnecessary:!0,numbers:!1}],"@stylistic/js/semi":"off","@stylistic/ts/semi":["error","always"],"@stylistic/js/space-before-blocks":"off","@stylistic/ts/space-before-blocks":"error","@stylistic/js/space-before-function-paren":"off","@stylistic/ts/space-before-function-paren":["error",{anonymous:"always",named:"never",asyncArrow:"always"}],"@stylistic/js/space-infix-ops":"off","@stylistic/ts/space-infix-ops":"error","no-use-before-define":"off","@typescript-eslint/no-use-before-define":["error",{functions:!1,classes:!0,variables:!0}],"no-restricted-imports":"off"},eh=[".js",".jsx",".mjs",".cjs"],eu=[".ts",".cts",".mts",".tsx",".d.ts"],ef=[...eu,...eh],ed=[".ts",".cts",".mts",".tsx",...eh],em=(e={})=>{let{tsconfigPath:t=!0,tsconfigRootDir:r=i.cwd(),componentExtentions:a=[]}=e,o="string"==typeof __dirname?n.pathToFileURL(__dirname).href:"undefined"==typeof document?require("url").pathToFileURL(__filename).href:N&&N.src||new URL("index.cjs",document.baseURI).href,l=n.fileURLToPath(s.importMetaResolve("@typescript-eslint/parser",o)),c=n.fileURLToPath(s.importMetaResolve("eslint-import-resolver-ts-bundled",o));return[{name:"@eslint-sukka/ts base",files:[s.constants.GLOB_TS,s.constants.GLOB_TSX,...a.map(e=>`**/*.${e}`)],plugins:{...w.configs.base.plugins,"@stylistic/ts":s.memo(_,"@stylistic/eslint-plugin-ts"),"sukka-ts":s.memo(b,"eslint-plugin-sukka-ts"),"@stylistic/plus":s.memo(m,"@stylistic/eslint-plugin-plus"),"import-x":s.memo(y,"eslint-plugin-import-x"),deprecation:E.fixupPluginRules(S)},languageOptions:{parser:w.configs.base.languageOptions.parser,sourceType:"module",parserOptions:{sourceType:"module",ecmaVersion:"latest",...!0===t?{projectService:!0,allowDefaultProject:[]}:{project:t},tsconfigRootDir:r,ecmaFeatures:{jsx:!0},jsxPragma:void 0,warnOnUnsupportedTypeScriptVersion:!0}},settings:{"import-x/extensions":ef,"import-x/external-module-folders":["node_modules","node_modules/@types"],"import-x/resolver":{node:{extensions:ed},[c]:{alwaysTryTypes:!0,...!0===t?{}:{project:t}}},"import-x/parsers":{espree:eh,[l]:eu}},rules:{...w.configs.base.rules,...w.configs.recommendedTypeChecked.reduce((e,t)=>({...e,...t.rules}),{}),...w.configs.stylisticTypeChecked.reduce((e,t)=>({...e,...t.rules}),{}),...y.configs.typescript.rules,...ep,"@typescript-eslint/ban-ts-comment":["error",{"ts-expect-error":"allow-with-description","ts-ignore":!0,"ts-nocheck":!0,"ts-check":!1,minimumDescriptionLength:10}],"@typescript-eslint/naming-convention":["warn",{selector:"variable",format:["camelCase","PascalCase","UPPER_CASE","snake_case"],leadingUnderscore:"allowSingleOrDouble",trailingUnderscore:"allowSingleOrDouble"},{selector:"function",format:["camelCase","PascalCase"],leadingUnderscore:"allowSingleOrDouble",trailingUnderscore:"allowSingleOrDouble"},{selector:"typeLike",format:["PascalCase"],leadingUnderscore:"allowSingleOrDouble",trailingUnderscore:"allowSingleOrDouble"}],"@typescript-eslint/consistent-type-assertions":["error",{assertionStyle:"as",objectLiteralTypeAssertions:"allow"}],"@typescript-eslint/require-await":"error","@typescript-eslint/await-thenable":"error","@typescript-eslint/no-for-in-array":"error","@typescript-eslint/no-misused-promises":["error",{checksVoidReturn:!1}],"@typescript-eslint/no-unnecessary-type-assertion":"error","@typescript-eslint/restrict-template-expressions":["error",{allowNumber:!0,allowAny:!0,allowBoolean:!0,allowNever:!0}],"@typescript-eslint/unbound-method":"error","@typescript-eslint/consistent-type-imports":["warn",{prefer:"type-imports",disallowTypeAnnotations:!1,fixStyle:"separate-type-imports"}],"@typescript-eslint/no-import-type-side-effects":"warn","@typescript-eslint/consistent-type-exports":["warn",{fixMixedExportsWithInlineTypeSpecifier:!1}],"@typescript-eslint/consistent-type-definitions":"warn","@typescript-eslint/consistent-generic-constructors":["error","constructor"],"@typescript-eslint/no-base-to-string":["error",{ignoredTypeNames:["Error","RegExp","URL","URLSearchParams"]}],"@typescript-eslint/no-confusing-non-null-assertion":"error","@typescript-eslint/no-dynamic-delete":"warn","@typescript-eslint/no-extraneous-class":["warn",{allowConstructorOnly:!0,allowEmpty:!0,allowWithDecorator:!0}],"@typescript-eslint/no-invalid-void-type":["off",{allowInGenericTypeArguments:!0,allowAsThisParameter:!0}],"@typescript-eslint/no-non-null-asserted-nullish-coalescing":"error","@typescript-eslint/no-unnecessary-boolean-literal-compare":"error","@typescript-eslint/no-unnecessary-condition":["warn",{allowConstantLoopConditions:!0}],"@typescript-eslint/no-unnecessary-type-arguments":"error","@typescript-eslint/no-unsafe-declaration-merging":"error","@typescript-eslint/non-nullable-type-assertion-style":"error","@typescript-eslint/prefer-includes":"error","@typescript-eslint/prefer-literal-enum-member":["error",{allowBitwiseExpressions:!0}],"@typescript-eslint/prefer-nullish-coalescing":"off","@typescript-eslint/prefer-return-this-type":"error","@typescript-eslint/prefer-optional-chain":"error","@typescript-eslint/prefer-reduce-type-parameter":"error","@typescript-eslint/unified-signatures":["error",{ignoreDifferentlyNamedParameters:!0}],"@typescript-eslint/prefer-for-of":"off","@typescript-eslint/prefer-function-type":"off","@typescript-eslint/consistent-indexed-object-style":"off","@typescript-eslint/prefer-enum-initializers":"warn","@typescript-eslint/no-duplicate-enum-values":"error","@typescript-eslint/no-extra-non-null-assertion":"error","@typescript-eslint/no-meaningless-void-operator":"warn","@typescript-eslint/no-unnecessary-qualifier":"warn","@typescript-eslint/array-type":["warn",{default:"array-simple"}],"@typescript-eslint/no-restricted-imports":["error",{paths:s.RESTRICTED_IMPORT_TS}],"@typescript-eslint/no-empty-object-type":["error",{allowInterfaces:"with-single-extends",allowObjectTypes:"never",allowWithName:"Props$"}],"@typescript-eslint/no-unsafe-function-type":"warn","@typescript-eslint/no-restricted-types":["error",{types:{FC:{message:"To declare a component, you don't have to use FC to annotate it. To type something that accepts/is a React Component, use ComponentType<T>.",fixWith:"ComponentType"},"React.FC":{message:"To declare a component, you don't have to use React.FC to annotate it. To type something that accepts/is a React Component, use React.ComponentType<T>.",fixWith:"React.ComponentType"},ReactElement:{message:"In most cases, you want ReactNode. Only ignore this rule when you want to use cloneElement.",fixWith:"ReactNode"},"React.ReactElement":{message:"In most cases, you want React.ReactNode. Only ignore this rule when you want to use cloneElement.",fixWith:"React.ReactNode"}}}],"@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-argument":"off","@typescript-eslint/no-explicit-any":"warn","@typescript-eslint/no-loop-func":"warn","@typescript-eslint/no-redundant-type-constituents":"off","@typescript-eslint/no-floating-promises":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unsafe-enum-comparison":"warn","@typescript-eslint/prefer-regexp-exec":"warn","@stylistic/ts/member-delimiter-style":["error",{multiline:{delimiter:"comma",requireLast:!1},singleline:{delimiter:"comma",requireLast:!1}}],"@stylistic/ts/lines-between-class-members":["error","always",{exceptAfterSingleLine:!0,exceptAfterOverload:!0}],"@stylistic/ts/padding-line-between-statements":["error",{blankLine:"always",prev:"directive",next:"*"},{blankLine:"always",prev:"*",next:["class","with"]},{blankLine:"always",prev:["class","with"],next:"*"},{blankLine:"any",prev:["interface","type"],next:["interface","type"]}],"@stylistic/ts/type-annotation-spacing":["error",{before:!1,after:!0,overrides:{arrow:{before:!0,after:!0}}}],"@typescript-eslint/no-namespace":"off","@typescript-eslint/prefer-string-starts-ends-with":"off","sukka-ts/string/prefer-string-starts-ends-with":"error","@typescript-eslint/switch-exhaustiveness-check":"error","sukka-ts/string/no-unneeded-to-string":"error","sukka-ts/type/no-force-cast-via-top-type":"error","sukka-ts/type/no-wrapper-type-reference":"error","sukka-ts/no-default-error":"off","sukka-ts/no-export-const-enum":"error","@stylistic/plus/type-generic-spacing":"error","@stylistic/plus/type-named-tuple-spacing":"error","deprecation/deprecation":"error","@typescript-eslint/no-unused-vars":"off","unused-imports/no-unused-vars":["error",{vars:"all",varsIgnorePattern:"^_",args:"after-used",argsIgnorePattern:"^_",ignoreRestSiblings:!0}],"unused-imports/no-unused-imports":"error","import-x/named":"off","import-x/no-duplicates":"off","import-x/namespace":"off","import-x/default":"off","import-x/no-named-as-default-member":"off"}},{name:"@eslint-sukka/ts dts",files:["**/*.d.ts"],plugins:{"import-x":s.memo(y,"eslint-plugin-import-x")},rules:{"import-x/no-duplicates":"off","unused-imports/no-unused-vars":"off"}},{name:"@eslint-sukka/ts jest/mocha",files:["**/*.{test,spec}.ts?(x)"],rules:{"no-unused-expressions":"off"}},{name:"@eslint-sukka/ts commonjs",files:["**/*.js","**/*.cjs"],plugins:w.configs.base.plugins,rules:{"@typescript-eslint/no-require-imports":"off","@typescript-eslint/no-var-requires":"off"}}]},eg=(e={})=>[{name:"@eslint-sukka/legacy base",...e.files?{files:e.files}:{},plugins:{sukka:s.memo(p,"eslint-plugin-sukka")},rules:{"prefer-numeric-literals":"off","no-restricted-properties":["error",{object:"arguments",property:"callee",message:"arguments.callee is deprecated"},{property:"__defineGetter__",message:"Please use Object.defineProperty instead."},{property:"__defineSetter__",message:"Please use Object.defineProperty instead."}],"no-var":"off","prefer-object-spread":"off",strict:["error","safe"],"sukka/unicorn/prefer-default-parameters":"off","sukka/unicorn/prefer-logical-operator-over-ternary":"off","sukka/unicorn/prefer-optional-catch-binding":"off"},languageOptions:{globals:{...e.browser??!0?s.globals.browser:{},...e.node?s.globals.node:{}}}}];var ey=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],ex=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],ev="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ek={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"},eb="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",ew={5:eb,"5module":eb+" export import",6:eb+" const class extends export import super"},e_=/^in(stanceof)?$/,eS=RegExp("["+ev+"]"),eE=RegExp("["+ev+"‌‍\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function eC(e,t){for(var s=65536,r=0;r<t.length&&!((s+=t[r])>e);r+=2)if((s+=t[r+1])>=e)return!0;return!1}function eP(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&eS.test(String.fromCharCode(e)):!1!==t&&eC(e,ex)))}function eI(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&eE.test(String.fromCharCode(e)):!1!==t&&(eC(e,ex)||eC(e,ey)))))}var eA=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function eR(e,t){return new eA(e,{beforeExpr:!0,binop:t})}var eT={beforeExpr:!0},eL={startsExpr:!0},eN={};function ej(e,t){return void 0===t&&(t={}),t.keyword=e,eN[e]=new eA(e,t)}var eO={num:new eA("num",eL),regexp:new eA("regexp",eL),string:new eA("string",eL),name:new eA("name",eL),privateId:new eA("privateId",eL),eof:new eA("eof"),bracketL:new eA("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new eA("]"),braceL:new eA("{",{beforeExpr:!0,startsExpr:!0}),braceR:new eA("}"),parenL:new eA("(",{beforeExpr:!0,startsExpr:!0}),parenR:new eA(")"),comma:new eA(",",eT),semi:new eA(";",eT),colon:new eA(":",eT),dot:new eA("."),question:new eA("?",eT),questionDot:new eA("?."),arrow:new eA("=>",eT),template:new eA("template"),invalidTemplate:new eA("invalidTemplate"),ellipsis:new eA("...",eT),backQuote:new eA("`",eL),dollarBraceL:new eA("${",{beforeExpr:!0,startsExpr:!0}),eq:new eA("=",{beforeExpr:!0,isAssign:!0}),assign:new eA("_=",{beforeExpr:!0,isAssign:!0}),incDec:new eA("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new eA("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:eR("||",1),logicalAND:eR("&&",2),bitwiseOR:eR("|",3),bitwiseXOR:eR("^",4),bitwiseAND:eR("&",5),equality:eR("==/!=/===/!==",6),relational:eR("</>/<=/>=",7),bitShift:eR("<</>>/>>>",8),plusMin:new eA("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:eR("%",10),star:eR("*",10),slash:eR("/",10),starstar:new eA("**",{beforeExpr:!0}),coalesce:eR("??",1),_break:ej("break"),_case:ej("case",eT),_catch:ej("catch"),_continue:ej("continue"),_debugger:ej("debugger"),_default:ej("default",eT),_do:ej("do",{isLoop:!0,beforeExpr:!0}),_else:ej("else",eT),_finally:ej("finally"),_for:ej("for",{isLoop:!0}),_function:ej("function",eL),_if:ej("if"),_return:ej("return",eT),_switch:ej("switch"),_throw:ej("throw",eT),_try:ej("try"),_var:ej("var"),_const:ej("const"),_while:ej("while",{isLoop:!0}),_with:ej("with"),_new:ej("new",{beforeExpr:!0,startsExpr:!0}),_this:ej("this",eL),_super:ej("super",eL),_class:ej("class",eL),_extends:ej("extends",eT),_export:ej("export"),_import:ej("import",eL),_null:ej("null",eL),_true:ej("true",eL),_false:ej("false",eL),_in:ej("in",{beforeExpr:!0,binop:7}),_instanceof:ej("instanceof",{beforeExpr:!0,binop:7}),_typeof:ej("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:ej("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:ej("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},eV=/\r\n?|\n|\u2028|\u2029/,eD=RegExp(eV.source,"g");function eU(e){return 10===e||13===e||8232===e||8233===e}function eM(e,t,s){void 0===s&&(s=e.length);for(var r=t;r<s;r++){var i=e.charCodeAt(r);if(eU(i))return r<s-1&&13===i&&10===e.charCodeAt(r+1)?r+2:r+1}return -1}var eF=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,eB=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,e$=Object.prototype,eq=e$.hasOwnProperty,eW=e$.toString,eG=Object.hasOwn||function(e,t){return eq.call(e,t)},eH=Array.isArray||function(e){return"[object Array]"===eW.call(e)},ez=Object.create(null);function eK(e){return ez[e]||(ez[e]=RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function eQ(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320)}var eX=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,eJ=function(e,t){this.line=e,this.column=t};eJ.prototype.offset=function(e){return new eJ(this.line,this.column+e)};var eY=function(e,t,s){this.start=t,this.end=s,null!==e.sourceFile&&(this.source=e.sourceFile)};function eZ(e,t){for(var s=1,r=0;;){var i=eM(e,r,t);if(i<0)return new eJ(s,t-r);++s,r=i}}var e1={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},e0=!1;function e2(e,t){return 2|(e?4:0)|(t?8:0)}var e3=function(e,t,s){this.options=e=function(e){var t,s={};for(var r in e1)s[r]=e&&eG(e,r)?e[r]:e1[r];if("latest"===s.ecmaVersion?s.ecmaVersion=1e8:null==s.ecmaVersion?(!e0&&"object"==typeof console&&console.warn&&(e0=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),s.ecmaVersion=11):s.ecmaVersion>=2015&&(s.ecmaVersion-=2009),null==s.allowReserved&&(s.allowReserved=s.ecmaVersion<5),e&&null!=e.allowHashBang||(s.allowHashBang=s.ecmaVersion>=14),eH(s.onToken)){var i=s.onToken;s.onToken=function(e){return i.push(e)}}return eH(s.onComment)&&(s.onComment=(t=s.onComment,function(e,r,i,n,a,o){var l={type:e?"Block":"Line",value:r,start:i,end:n};s.locations&&(l.loc=new eY(this,a,o)),s.ranges&&(l.range=[i,n]),t.push(l)})),s}(e),this.sourceFile=e.sourceFile,this.keywords=eK(ew[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=ek[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=eK(r);var i=(r?r+" ":"")+ek.strict;this.reservedWordsStrict=eK(i),this.reservedWordsStrictBind=eK(i+" "+ek.strictBind),this.input=String(t),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf("\n",s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(eV).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=eO.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="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},e4={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};e3.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},e4.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},e4.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},e4.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},e4.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||256&t.flags)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},e4.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,s=e.inClassFieldInit;return(64&t)>0||s||this.options.allowSuperOutsideMethod},e4.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},e4.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},e4.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,s=e.inClassFieldInit;return(258&t)>0||s},e4.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},e3.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var s=this,r=0;r<e.length;r++)s=e[r](s);return s},e3.parse=function(e,t){return new this(t,e).parse()},e3.parseExpressionAt=function(e,t,s){var r=new this(s,e,t);return r.nextToken(),r.parseExpression()},e3.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(e3.prototype,e4);var e6=e3.prototype,e5=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;e6.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){eB.lastIndex=e,e+=eB.exec(this.input)[0].length;var t=e5.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){eB.lastIndex=e+t[0].length;var s=eB.exec(this.input),r=s.index+s[0].length,i=this.input.charAt(r);return";"===i||"}"===i||eV.test(s[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}e+=t[0].length,eB.lastIndex=e,e+=eB.exec(this.input)[0].length,";"===this.input[e]&&e++}},e6.eat=function(e){return this.type===e&&(this.next(),!0)},e6.isContextual=function(e){return this.type===eO.name&&this.value===e&&!this.containsEsc},e6.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},e6.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},e6.canInsertSemicolon=function(){return this.type===eO.eof||this.type===eO.braceR||eV.test(this.input.slice(this.lastTokEnd,this.start))},e6.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},e6.semicolon=function(){this.eat(eO.semi)||this.insertSemicolon()||this.unexpected()},e6.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},e6.expect=function(e){this.eat(e)||this.unexpected()},e6.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var e9=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};e6.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var s=t?e.parenthesizedAssign:e.parenthesizedBind;s>-1&&this.raiseRecoverable(s,t?"Assigning to rvalue":"Parenthesized pattern")}},e6.checkExpressionErrors=function(e,t){if(!e)return!1;var s=e.shorthandAssign,r=e.doubleProto;if(!t)return s>=0||r>=0;s>=0&&this.raise(s,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},e6.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")},e6.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var e8=e3.prototype;e8.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==eO.eof;){var s=this.parseStatement(null,!0,t);e.body.push(s)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var n=i[r];this.raiseRecoverable(this.undefinedExports[n].start,"Export '"+n+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var e7={kind:"loop"},te={kind:"switch"};e8.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;eB.lastIndex=this.pos;var t=eB.exec(this.input),s=this.pos+t[0].length,r=this.input.charCodeAt(s);if(91===r||92===r)return!0;if(e)return!1;if(123===r||r>55295&&r<56320)return!0;if(eP(r,!0)){for(var i=s+1;eI(r=this.input.charCodeAt(i),!0);)++i;if(92===r||r>55295&&r<56320)return!0;var n=this.input.slice(s,i);if(!e_.test(n))return!0}return!1},e8.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;eB.lastIndex=this.pos;var e,t=eB.exec(this.input),s=this.pos+t[0].length;return!eV.test(this.input.slice(this.pos,s))&&"function"===this.input.slice(s,s+8)&&(s+8===this.input.length||!(eI(e=this.input.charCodeAt(s+8))||e>55295&&e<56320))},e8.parseStatement=function(e,t,s){var r,i=this.type,n=this.startNode();switch(this.isLet(e)&&(i=eO._var,r="let"),i){case eO._break:case eO._continue:return this.parseBreakContinueStatement(n,i.keyword);case eO._debugger:return this.parseDebuggerStatement(n);case eO._do:return this.parseDoStatement(n);case eO._for:return this.parseForStatement(n);case eO._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case eO._class:return e&&this.unexpected(),this.parseClass(n,!0);case eO._if:return this.parseIfStatement(n);case eO._return:return this.parseReturnStatement(n);case eO._switch:return this.parseSwitchStatement(n);case eO._throw:return this.parseThrowStatement(n);case eO._try:return this.parseTryStatement(n);case eO._const:case eO._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(n,r);case eO._while:return this.parseWhileStatement(n);case eO._with:return this.parseWithStatement(n);case eO.braceL:return this.parseBlock(!0,n);case eO.semi:return this.parseEmptyStatement(n);case eO._export:case eO._import:if(this.options.ecmaVersion>10&&i===eO._import){eB.lastIndex=this.pos;var a=eB.exec(this.input),o=this.pos+a[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(n,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===eO._import?this.parseImport(n):this.parseExport(n,s);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!e);var c=this.value,p=this.parseExpression();if(i===eO.name&&"Identifier"===p.type&&this.eat(eO.colon))return this.parseLabeledStatement(n,c,p,e);return this.parseExpressionStatement(n,p)}},e8.parseBreakContinueStatement=function(e,t){var s="break"===t;this.next(),this.eat(eO.semi)||this.insertSemicolon()?e.label=null:this.type!==eO.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((null==e.label||i.name===e.label.name)&&(null!=i.kind&&(s||"loop"===i.kind)||e.label&&s))break}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,s?"BreakStatement":"ContinueStatement")},e8.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},e8.parseDoStatement=function(e){return this.next(),this.labels.push(e7),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(eO._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(eO.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},e8.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(e7),this.enterScope(0),this.expect(eO.parenL),this.type===eO.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var s=this.isLet();if(this.type===eO._var||this.type===eO._const||s){var r=this.startNode(),i=s?"let":this.value;return(this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),(this.type===eO._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length)?(this.options.ecmaVersion>=9&&(this.type===eO._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var n=this.isContextual("let"),a=!1,o=new e9,l=this.parseExpression(!(t>-1)||"await",o);return this.type===eO._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===eO._in?t>-1&&this.unexpected(t):e.await=t>-1),n&&a&&this.raise(l.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(l,!1,o),this.checkLValPattern(l),this.parseForIn(e,l)):(this.checkExpressionErrors(o,!0),t>-1&&this.unexpected(t),this.parseFor(e,l))},e8.parseFunctionStatement=function(e,t,s){return this.next(),this.parseFunction(e,ts|(s?0:tr),!1,t)},e8.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(eO._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},e8.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(eO.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},e8.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(eO.braceL),this.labels.push(te),this.enterScope(0);for(var t,s=!1;this.type!==eO.braceR;)if(this.type===eO._case||this.type===eO._default){var r=this.type===eO._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(s&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),s=!0,t.test=null),this.expect(eO.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},e8.parseThrowStatement=function(e){return this.next(),eV.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var tt=[];e8.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(eO.parenR),e},e8.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===eO._catch){var t=this.startNode();this.next(),this.eat(eO.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(eO._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},e8.parseVarStatement=function(e,t,s){return this.next(),this.parseVar(e,!1,t,s),this.semicolon(),this.finishNode(e,"VariableDeclaration")},e8.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(e7),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},e8.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},e8.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},e8.parseLabeledStatement=function(e,t,s,r){for(var i=0,n=this.labels;i<n.length;i+=1)n[i].name===t&&this.raise(s.start,"Label '"+t+"' is already declared");for(var a=this.type.isLoop?"loop":this.type===eO._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var l=this.labels[o];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=a;else break}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=s,this.finishNode(e,"LabeledStatement")},e8.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},e8.parseBlock=function(e,t,s){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(eO.braceL),e&&this.enterScope(0);this.type!==eO.braceR;){var r=this.parseStatement(null);t.body.push(r)}return s&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},e8.parseFor=function(e,t){return e.init=t,this.expect(eO.semi),e.test=this.type===eO.semi?null:this.parseExpression(),this.expect(eO.semi),e.update=this.type===eO.parenR?null:this.parseExpression(),this.expect(eO.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},e8.parseForIn=function(e,t){var s=this.type===eO._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!s||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(s?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=s?this.parseExpression():this.parseMaybeAssign(),this.expect(eO.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")},e8.parseVar=function(e,t,s,r){for(e.declarations=[],e.kind=s;;){var i=this.startNode();if(this.parseVarId(i,s),this.eat(eO.eq)?i.init=this.parseMaybeAssign(t):r||"const"!==s||this.type===eO._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"Identifier"===i.id.type||t&&(this.type===eO._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(eO.comma))break}return e},e8.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var ts=1,tr=2;function ti(e,t){var s=e.computed,r=e.key;return!s&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}e8.parseFunction=function(e,t,s,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===eO.star&&t&tr&&this.unexpected(),e.generator=this.eat(eO.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&ts&&(e.id=4&t&&this.type!==eO.name?null:this.parseIdent(),e.id&&!(t&tr)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var n=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(e2(e.async,e.generator)),t&ts||(e.id=this.type===eO.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,s,!1,i),this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&ts?"FunctionDeclaration":"FunctionExpression")},e8.parseFunctionParams=function(e){this.expect(eO.parenL),e.params=this.parseBindingList(eO.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},e8.parseClass=function(e,t){this.next();var s=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),n=!1;for(i.body=[],this.expect(eO.braceL);this.type!==eO.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(i.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(n&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),n=!0):a.key&&"PrivateIdentifier"===a.key.type&&function(e,t){var s=t.key.name,r=e[s],i="true";return("MethodDefinition"===t.type&&("get"===t.kind||"set"===t.kind)&&(i=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===i||"iset"===r&&"iget"===i||"sget"===r&&"sset"===i||"sset"===r&&"sget"===i)?(e[s]="true",!1):!!r||(e[s]=i,!1)}(r,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=s,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},e8.parseClassElement=function(e){if(this.eat(eO.semi))return null;var t=this.options.ecmaVersion,s=this.startNode(),r="",i=!1,n=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(eO.braceL))return this.parseClassStaticBlock(s),s;this.isClassElementNameStart()||this.type===eO.star?o=!0:r="static"}if(s.static=o,!r&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===eO.star)&&!this.canInsertSemicolon()?n=!0:r="async"),!r&&(t>=9||!n)&&this.eat(eO.star)&&(i=!0),!r&&!n&&!i){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=l:r=l)}if(r?(s.computed=!1,s.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),s.key.name=r,this.finishNode(s.key,"Identifier")):this.parseClassElementName(s),t<13||this.type===eO.parenL||"method"!==a||i||n){var c=!s.static&&ti(s,"constructor");c&&"method"!==a&&this.raise(s.key.start,"Constructor can't have get/set modifier"),s.kind=c?"constructor":a,this.parseClassMethod(s,i,n,c&&e)}else this.parseClassField(s);return s},e8.isClassElementNameStart=function(){return this.type===eO.name||this.type===eO.privateId||this.type===eO.num||this.type===eO.string||this.type===eO.bracketL||this.type.keyword},e8.parseClassElementName=function(e){this.type===eO.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},e8.parseClassMethod=function(e,t,s,r){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),s&&this.raise(i.start,"Constructor can't be an async method")):e.static&&ti(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var n=e.value=this.parseMethod(t,s,r);return"get"===e.kind&&0!==n.params.length&&this.raiseRecoverable(n.start,"getter should have no params"),"set"===e.kind&&1!==n.params.length&&this.raiseRecoverable(n.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===n.params[0].type&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},e8.parseClassField=function(e){if(ti(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&ti(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(eO.eq)){var t=this.currentThisScope(),s=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=s}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},e8.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==eO.braceR;){var s=this.parseStatement(null);e.body.push(s)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},e8.parseClassId=function(e,t){this.type===eO.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},e8.parseClassSuper=function(e){e.superClass=this.eat(eO._extends)?this.parseExprSubscripts(null,!1):null},e8.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},e8.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,s=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=0===r?null:this.privateNameStack[r-1],n=0;n<s.length;++n){var a=s[n];eG(t,a.name)||(i?i.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},e8.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==eO.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},e8.parseExport=function(e,t){if(this.next(),this.eat(eO.star))return this.parseExportAllDeclaration(e,t);if(this.eat(eO._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==eO.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var s=0,r=e.specifiers;s<r.length;s+=1){var i=r[s];this.checkUnreserved(i.local),this.checkLocalExport(i.local),"Literal"===i.local.type&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},e8.parseExportDeclaration=function(e){return this.parseStatement(null)},e8.parseExportDefaultDeclaration=function(){if(this.type===eO._function||(e=this.isAsyncFunction())){var e,t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|ts,!1,e)}if(this.type===eO._class){var s=this.startNode();return this.parseClass(s,"nullableID")}var r=this.parseMaybeAssign();return this.semicolon(),r},e8.checkExport=function(e,t,s){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),eG(e,t)&&this.raiseRecoverable(s,"Duplicate export '"+t+"'"),e[t]=!0)},e8.checkPatternExport=function(e,t){var s=t.type;if("Identifier"===s)this.checkExport(e,t,t.start);else if("ObjectPattern"===s)for(var r=0,i=t.properties;r<i.length;r+=1){var n=i[r];this.checkPatternExport(e,n)}else if("ArrayPattern"===s)for(var a=0,o=t.elements;a<o.length;a+=1){var l=o[a];l&&this.checkPatternExport(e,l)}else"Property"===s?this.checkPatternExport(e,t.value):"AssignmentPattern"===s?this.checkPatternExport(e,t.left):"RestElement"===s&&this.checkPatternExport(e,t.argument)},e8.checkVariableExport=function(e,t){if(e)for(var s=0;s<t.length;s+=1){var r=t[s];this.checkPatternExport(e,r.id)}},e8.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},e8.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},e8.parseExportSpecifiers=function(e){var t=[],s=!0;for(this.expect(eO.braceL);!this.eat(eO.braceR);){if(s)s=!1;else if(this.expect(eO.comma),this.afterTrailingComma(eO.braceR))break;t.push(this.parseExportSpecifier(e))}return t},e8.parseImport=function(e){return this.next(),this.type===eO.string?(e.specifiers=tt,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===eO.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},e8.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportSpecifier")},e8.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},e8.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportNamespaceSpecifier")},e8.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===eO.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(eO.comma)))return e;if(this.type===eO.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(eO.braceL);!this.eat(eO.braceR);){if(t)t=!1;else if(this.expect(eO.comma),this.afterTrailingComma(eO.braceR))break;e.push(this.parseImportSpecifier())}return e},e8.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===eO.string){var e=this.parseLiteral(this.value);return eX.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},e8.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},e8.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var tn=e3.prototype;tn.toAssignable=function(e,t,s){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",s&&this.checkPatternErrors(s,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var n=i[r];this.toAssignable(n,t),"RestElement"===n.type&&("ArrayPattern"===n.argument.type||"ObjectPattern"===n.argument.type)&&this.raise(n.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",s&&this.checkPatternErrors(s,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,s);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else s&&this.checkPatternErrors(s,!0);return e},tn.toAssignableList=function(e,t){for(var s=e.length,r=0;r<s;r++){var i=e[r];i&&this.toAssignable(i,t)}if(s){var n=e[s-1];6===this.options.ecmaVersion&&t&&n&&"RestElement"===n.type&&"Identifier"!==n.argument.type&&this.unexpected(n.argument.start)}return e},tn.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},tn.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==eO.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},tn.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case eO.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(eO.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case eO.braceL:return this.parseObj(!0)}return this.parseIdent()},tn.parseBindingList=function(e,t,s,r){for(var i=[],n=!0;!this.eat(e);)if(n?n=!1:this.expect(eO.comma),t&&this.type===eO.comma)i.push(null);else if(s&&this.afterTrailingComma(e))break;else if(this.type===eO.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),i.push(a),this.type===eO.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else i.push(this.parseAssignableListItem(r));return i},tn.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},tn.parseBindingListItem=function(e){return e},tn.parseMaybeDefault=function(e,t,s){if(s=s||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(eO.eq))return s;var r=this.startNodeAt(e,t);return r.left=s,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},tn.checkLValSimple=function(e,t,s){void 0===t&&(t=0);var r=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),s&&(eG(s,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),s[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,s);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}},tn.checkLValPattern=function(e,t,s){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var r=0,i=e.properties;r<i.length;r+=1){var n=i[r];this.checkLValInnerPattern(n,t,s)}break;case"ArrayPattern":for(var a=0,o=e.elements;a<o.length;a+=1){var l=o[a];l&&this.checkLValInnerPattern(l,t,s)}break;default:this.checkLValSimple(e,t,s)}},tn.checkLValInnerPattern=function(e,t,s){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,s);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,s);break;case"RestElement":this.checkLValPattern(e.argument,t,s);break;default:this.checkLValPattern(e,t,s)}};var ta=function(e,t,s,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!s,this.override=r,this.generator=!!i},to={b_stat:new ta("{",!1),b_expr:new ta("{",!0),b_tmpl:new ta("${",!1),p_stat:new ta("(",!1),p_expr:new ta("(",!0),q_tmpl:new ta("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new ta("function",!1),f_expr:new ta("function",!0),f_expr_gen:new ta("function",!0,!1,null,!0),f_gen:new ta("function",!1,!1,null,!0)},tl=e3.prototype;tl.initialContext=function(){return[to.b_stat]},tl.curContext=function(){return this.context[this.context.length-1]},tl.braceIsBlock=function(e){var t=this.curContext();return t===to.f_expr||t===to.f_stat||(e===eO.colon&&(t===to.b_stat||t===to.b_expr)?!t.isExpr:e===eO._return||e===eO.name&&this.exprAllowed?eV.test(this.input.slice(this.lastTokEnd,this.start)):e===eO._else||e===eO.semi||e===eO.eof||e===eO.parenR||e===eO.arrow||(e===eO.braceL?t===to.b_stat:e!==eO._var&&e!==eO._const&&e!==eO.name&&!this.exprAllowed))},tl.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},tl.updateContext=function(e){var t,s=this.type;s.keyword&&e===eO.dot?this.exprAllowed=!1:(t=s.updateContext)?t.call(this,e):this.exprAllowed=s.beforeExpr},tl.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},eO.parenR.updateContext=eO.braceR.updateContext=function(){if(1===this.context.length){this.exprAllowed=!0;return}var e=this.context.pop();e===to.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},eO.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?to.b_stat:to.b_expr),this.exprAllowed=!0},eO.dollarBraceL.updateContext=function(){this.context.push(to.b_tmpl),this.exprAllowed=!0},eO.parenL.updateContext=function(e){var t=e===eO._if||e===eO._for||e===eO._with||e===eO._while;this.context.push(t?to.p_stat:to.p_expr),this.exprAllowed=!0},eO.incDec.updateContext=function(){},eO._function.updateContext=eO._class.updateContext=function(e){!e.beforeExpr||e===eO._else||e===eO.semi&&this.curContext()!==to.p_stat||e===eO._return&&eV.test(this.input.slice(this.lastTokEnd,this.start))||(e===eO.colon||e===eO.braceL)&&this.curContext()===to.b_stat?this.context.push(to.f_stat):this.context.push(to.f_expr),this.exprAllowed=!1},eO.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},eO.backQuote.updateContext=function(){this.curContext()===to.q_tmpl?this.context.pop():this.context.push(to.q_tmpl),this.exprAllowed=!1},eO.star.updateContext=function(e){if(e===eO._function){var t=this.context.length-1;this.context[t]===to.f_expr?this.context[t]=to.f_expr_gen:this.context[t]=to.f_gen}this.exprAllowed=!0},eO.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==eO.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var tc=e3.prototype;tc.checkPropClash=function(e,t,s){if((!(this.options.ecmaVersion>=9)||"SpreadElement"!==e.type)&&(!(this.options.ecmaVersion>=6)||!e.computed&&!e.method&&!e.shorthand)){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var n=e.kind;if(this.options.ecmaVersion>=6){"__proto__"===r&&"init"===n&&(t.proto&&(s?s.doubleProto<0&&(s.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);return}var a=t[r="$"+r];a?("init"===n?this.strict&&a.init||a.get||a.set:a.init||a[n])&&this.raiseRecoverable(i.start,"Redefinition of property"):a=t[r]={init:!1,get:!1,set:!1},a[n]=!0}},tc.parseExpression=function(e,t){var s=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===eO.comma){var n=this.startNodeAt(s,r);for(n.expressions=[i];this.eat(eO.comma);)n.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(n,"SequenceExpression")}return i},tc.parseMaybeAssign=function(e,t,s){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,n=-1,a=-1;t?(i=t.parenthesizedAssign,n=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new e9,r=!0);var o=this.start,l=this.startLoc;(this.type===eO.parenL||this.type===eO.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var c=this.parseMaybeConditional(e,t);if(s&&(c=s.call(this,c,o,l)),this.type.isAssign){var p=this.startNodeAt(o,l);return p.operator=this.value,this.type===eO.eq&&(c=this.toAssignable(c,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===eO.eq?this.checkLValPattern(c):this.checkLValSimple(c),p.left=c,this.next(),p.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(p,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),n>-1&&(t.trailingComma=n),c},tc.parseMaybeConditional=function(e,t){var s=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(eO.question)){var n=this.startNodeAt(s,r);return n.test=i,n.consequent=this.parseMaybeAssign(),this.expect(eO.colon),n.alternate=this.parseMaybeAssign(e),this.finishNode(n,"ConditionalExpression")}return i},tc.parseExprOps=function(e,t){var s=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)?i:i.start===s&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,s,r,-1,e)},tc.parseExprOp=function(e,t,s,r,i){var n=this.type.binop;if(null!=n&&(!i||this.type!==eO._in)&&n>r){var a=this.type===eO.logicalOR||this.type===eO.logicalAND,o=this.type===eO.coalesce;o&&(n=eO.logicalAND.binop);var l=this.value;this.next();var c=this.start,p=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),c,p,n,i),u=this.buildBinary(t,s,e,h,l,a||o);return(a&&this.type===eO.coalesce||o&&(this.type===eO.logicalOR||this.type===eO.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(u,t,s,r,i)}return e},tc.buildBinary=function(e,t,s,r,i,n){"PrivateIdentifier"===r.type&&this.raise(r.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=s,a.operator=i,a.right=r,this.finishNode(a,n?"LogicalExpression":"BinaryExpression")},tc.parseMaybeUnary=function(e,t,s,r){var i,n=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)i=this.parseAwait(r),t=!0;else if(this.type.prefix){var o=this.startNode(),l=this.type===eO.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,l,r),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&"Identifier"===o.argument.type?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&function e(t){return"MemberExpression"===t.type&&"PrivateIdentifier"===t.property.type||"ChainExpression"===t.type&&e(t.expression)}(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,i=this.finishNode(o,l?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==eO.privateId){if(i=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(n,a);c.operator=this.value,c.prefix=!1,c.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(c,"UpdateExpression")}}else(r||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),i=this.parsePrivateIdent(),this.type!==eO._in&&this.unexpected();return!s&&this.eat(eO.starstar)?t?void this.unexpected(this.lastTokStart):this.buildBinary(n,a,i,this.parseMaybeUnary(null,!1,!1,r),"**",!1):i},tc.parseExprSubscripts=function(e,t){var s=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===i.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return i;var n=this.parseSubscripts(i,s,r,!1,t);return e&&"MemberExpression"===n.type&&(e.parenthesizedAssign>=n.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=n.start&&(e.parenthesizedBind=-1),e.trailingComma>=n.start&&(e.trailingComma=-1)),n},tc.parseSubscripts=function(e,t,s,r,i){for(var n=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,s,r,n,a,i);if(o.optional&&(a=!0),o===e||"ArrowFunctionExpression"===o.type){if(a){var l=this.startNodeAt(t,s);l.expression=o,o=this.finishNode(l,"ChainExpression")}return o}e=o}},tc.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(eO.arrow)},tc.parseSubscriptAsyncArrow=function(e,t,s,r){return this.parseArrowExpression(this.startNodeAt(e,t),s,!0,r)},tc.parseSubscript=function(e,t,s,r,i,n,a){var o=this.options.ecmaVersion>=11,l=o&&this.eat(eO.questionDot);r&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(eO.bracketL);if(c||l&&this.type!==eO.parenL&&this.type!==eO.backQuote||this.eat(eO.dot)){var p=this.startNodeAt(t,s);p.object=e,c?(p.property=this.parseExpression(),this.expect(eO.bracketR)):this.type===eO.privateId&&"Super"!==e.type?p.property=this.parsePrivateIdent():p.property=this.parseIdent("never"!==this.options.allowReserved),p.computed=!!c,o&&(p.optional=l),e=this.finishNode(p,"MemberExpression")}else if(!r&&this.eat(eO.parenL)){var h=new e9,u=this.yieldPos,f=this.awaitPos,d=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(eO.parenR,this.options.ecmaVersion>=8,!1,h);if(i&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=u,this.awaitPos=f,this.awaitIdentPos=d,this.parseSubscriptAsyncArrow(t,s,m,a);this.checkExpressionErrors(h,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=f||this.awaitPos,this.awaitIdentPos=d||this.awaitIdentPos;var g=this.startNodeAt(t,s);g.callee=e,g.arguments=m,o&&(g.optional=l),e=this.finishNode(g,"CallExpression")}else if(this.type===eO.backQuote){(l||n)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(t,s);y.tag=e,y.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(y,"TaggedTemplateExpression")}return e},tc.parseExprAtom=function(e,t,s){this.type===eO.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case eO._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==eO.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==eO.dot&&this.type!==eO.bracketL&&this.type!==eO.parenL&&this.unexpected(),this.finishNode(r,"Super");case eO._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case eO.name:var n=this.start,a=this.startLoc,o=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(eO._function))return this.overrideContext(to.f_expr),this.parseFunction(this.startNodeAt(n,a),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(eO.arrow))return this.parseArrowExpression(this.startNodeAt(n,a),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===eO.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(eO.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,a),[l],!0,t)}return l;case eO.regexp:var c=this.value;return(r=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},r;case eO.num:case eO.string:return this.parseLiteral(this.value);case eO._null:case eO._true:case eO._false:return(r=this.startNode()).value=this.type===eO._null?null:this.type===eO._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case eO.parenL:var p=this.start,h=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),h;case eO.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(eO.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case eO.braceL:return this.overrideContext(to.b_expr),this.parseObj(!1,e);case eO._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case eO._class:return this.parseClass(this.startNode(),!1);case eO._new:return this.parseNew();case eO.backQuote:return this.parseTemplate();case eO._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(s);return this.unexpected();default:return this.parseExprAtomDefault()}},tc.parseExprAtomDefault=function(){this.unexpected()},tc.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===eO.parenL&&!e)return this.parseDynamicImport(t);if(this.type===eO.dot){var s=this.startNodeAt(t.start,t.loc&&t.loc.start);return s.name="import",t.meta=this.finishNode(s,"Identifier"),this.parseImportMeta(t)}this.unexpected()},tc.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(eO.parenR)){var t=this.start;this.eat(eO.comma)&&this.eat(eO.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},tc.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},tc.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},tc.parseParenExpression=function(){this.expect(eO.parenL);var e=this.parseExpression();return this.expect(eO.parenR),e},tc.shouldParseArrow=function(e){return!this.canInsertSemicolon()},tc.parseParenAndDistinguishExpression=function(e,t){var s,r=this.start,i=this.startLoc,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,l=this.startLoc,c=[],p=!0,h=!1,u=new e9,f=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==eO.parenR;){if(p?p=!1:this.expect(eO.comma),n&&this.afterTrailingComma(eO.parenR,!0)){h=!0;break}if(this.type===eO.ellipsis){a=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===eO.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,u,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(eO.parenR),e&&this.shouldParseArrow(c)&&this.eat(eO.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=d,this.parseParenArrowList(r,i,c,t);(!c.length||h)&&this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(u,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=d||this.awaitPos,c.length>1?((s=this.startNodeAt(o,l)).expressions=c,this.finishNodeAt(s,"SequenceExpression",m,g)):s=c[0]}else s=this.parseParenExpression();if(!this.options.preserveParens)return s;var y=this.startNodeAt(r,i);return y.expression=s,this.finishNode(y,"ParenthesizedExpression")},tc.parseParenItem=function(e){return e},tc.parseParenArrowList=function(e,t,s,r){return this.parseArrowExpression(this.startNodeAt(e,t),s,!1,r)};var tp=[];tc.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===eO.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var s=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),s&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),this.eat(eO.parenL)?e.arguments=this.parseExprList(eO.parenR,this.options.ecmaVersion>=8,!1):e.arguments=tp,this.finishNode(e,"NewExpression")},tc.parseTemplateElement=function(e){var t=e.isTagged,s=this.startNode();return this.type===eO.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),s.value={raw:this.value,cooked:null}):s.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),s.tail=this.type===eO.backQuote,this.finishNode(s,"TemplateElement")},tc.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var s=this.startNode();this.next(),s.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(s.quasis=[r];!r.tail;)this.type===eO.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(eO.dollarBraceL),s.expressions.push(this.parseExpression()),this.expect(eO.braceR),s.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(s,"TemplateLiteral")},tc.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===eO.name||this.type===eO.num||this.type===eO.string||this.type===eO.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===eO.star)&&!eV.test(this.input.slice(this.lastTokEnd,this.start))},tc.parseObj=function(e,t){var s=this.startNode(),r=!0,i={};for(s.properties=[],this.next();!this.eat(eO.braceR);){if(r)r=!1;else if(this.expect(eO.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(eO.braceR))break;var n=this.parseProperty(e,t);e||this.checkPropClash(n,i,t),s.properties.push(n)}return this.finishNode(s,e?"ObjectPattern":"ObjectExpression")},tc.parseProperty=function(e,t){var s,r,i,n,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(eO.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===eO.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,t),this.type===eO.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(i=this.start,n=this.startLoc),e||(s=this.eat(eO.star)));var o=this.containsEsc;return this.parsePropertyName(a),!e&&!o&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(a)?(r=!0,s=this.options.ecmaVersion>=9&&this.eat(eO.star),this.parsePropertyName(a)):r=!1,this.parsePropertyValue(a,e,s,r,i,n,t,o),this.finishNode(a,"Property")},tc.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t="get"===e.kind?0:1;if(e.value.params.length!==t){var s=e.value.start;"get"===e.kind?this.raiseRecoverable(s,"getter should have no params"):this.raiseRecoverable(s,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},tc.parsePropertyValue=function(e,t,s,r,i,n,a,o){(s||r)&&this.type===eO.colon&&this.unexpected(),this.eat(eO.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===eO.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(s,r)):t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===eO.comma||this.type===eO.braceR||this.type===eO.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((s||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,n,this.copyNode(e.key)):this.type===eO.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,n,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected():((s||r)&&this.unexpected(),this.parseGetterSetter(e))},tc.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(eO.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(eO.bracketR),e.key;e.computed=!1}return e.key=this.type===eO.num||this.type===eO.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},tc.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},tc.parseMethod=function(e,t,s){var r=this.startNode(),i=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|e2(t,r.generator)|(s?128:0)),this.expect(eO.parenL),r.params=this.parseBindingList(eO.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")},tc.parseArrowExpression=function(e,t,s,r){var i=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|e2(s,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!s),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},tc.parseFunctionBody=function(e,t,s,r){var i=t&&this.type!==eO.braceL,n=this.strict,a=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!n||o)&&(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!n&&!a&&!t&&!s&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,a&&!n),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},tc.isSimpleParamList=function(e){for(var t=0;t<e.length;t+=1)if("Identifier"!==e[t].type)return!1;return!0},tc.checkParams=function(e,t){for(var s=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var n=i[r];this.checkLValInnerPattern(n,1,t?null:s)}},tc.parseExprList=function(e,t,s,r){for(var i=[],n=!0;!this.eat(e);){if(n)n=!1;else if(this.expect(eO.comma),t&&this.afterTrailingComma(e))break;var a=void 0;s&&this.type===eO.comma?a=null:this.type===eO.ellipsis?(a=this.parseSpread(r),r&&this.type===eO.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):a=this.parseMaybeAssign(!1,r),i.push(a)}return i},tc.checkUnreserved=function(e){var t=e.start,s=e.end,r=e.name;this.inGenerator&&"yield"===r&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===r&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&("arguments"===r||"await"===r)&&this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),(!(this.options.ecmaVersion<6)||-1===this.input.slice(t,s).indexOf("\\"))&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))},tc.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},tc.parseIdentNode=function(){var e=this.startNode();return this.type===eO.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,("class"===e.name||"function"===e.name)&&(this.lastTokEnd!==this.lastTokStart+1||46!==this.input.charCodeAt(this.lastTokStart))&&this.context.pop(),this.type=eO.name):this.unexpected(),e},tc.parsePrivateIdent=function(){var e=this.startNode();return this.type===eO.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},tc.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===eO.semi||this.canInsertSemicolon()||this.type!==eO.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(eO.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},tc.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var th=e3.prototype;th.raise=function(e,t){var s=eZ(this.input,e),r=SyntaxError(t+=" ("+s.line+":"+s.column+")");throw r.pos=e,r.loc=s,r.raisedAt=this.pos,r},th.raiseRecoverable=th.raise,th.curPosition=function(){if(this.options.locations)return new eJ(this.curLine,this.pos-this.lineStart)};var tu=e3.prototype,tf=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};tu.enterScope=function(e){this.scopeStack.push(new tf(e))},tu.exitScope=function(){this.scopeStack.pop()},tu.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},tu.declareName=function(e,t,s){var r=!1;if(2===t){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var n=this.currentScope();r=this.treatFunctionsAsVar?n.lexical.indexOf(e)>-1:n.lexical.indexOf(e)>-1||n.var.indexOf(e)>-1,n.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(e)>-1&&!(32&o.flags&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){r=!0;break}if(o.var.push(e),this.inModule&&1&o.flags&&delete this.undefinedExports[e],259&o.flags)break}r&&this.raiseRecoverable(s,"Identifier '"+e+"' has already been declared")},tu.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},tu.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},tu.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},tu.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags&&!(16&t.flags))return t}};var td=function(e,t,s){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new eY(e,s)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},tm=e3.prototype;function tg(e,t,s,r){return e.type=t,e.end=s,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=s),e}tm.startNode=function(){return new td(this,this.start,this.startLoc)},tm.startNodeAt=function(e,t){return new td(this,e,t)},tm.finishNode=function(e,t){return tg.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},tm.finishNodeAt=function(e,t,s,r){return tg.call(this,e,t,s,r)},tm.copyNode=function(e){var t=new td(this,e.start,this.startLoc);for(var s in e)t[s]=e[s];return t};for(var ty="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",tx=ty+" Extended_Pictographic",tv=tx+" EBase EComp EMod EPres ExtPict",tk={9:ty,10:tx,11:tx,12:tv,13:tv,14:tv},tb={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},tw="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",t_="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",tS=t_+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",tE=tS+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",tC=tE+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",tP=tC+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",tI={9:t_,10:tS,11:tE,12:tC,13:tP,14:tP+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"},tA={},tR=0,tT=[9,10,11,12,13,14];tR<tT.length;tR+=1)!function(e){var t=tA[e]={binary:eK(tk[e]+" "+tw),binaryOfStrings:eK(tb[e]),nonBinary:{General_Category:eK(tw),Script:eK(tI[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}(tT[tR]);var tL=e3.prototype,tN=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=tA[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function tj(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function tO(e){return e>=65&&e<=90||e>=97&&e<=122}function tV(e){return tO(e)||95===e}function tD(e){return e>=48&&e<=57}function tU(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function tM(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}function tF(e){return e>=48&&e<=55}tN.prototype.reset=function(e,t,s){var r=-1!==s.indexOf("v"),i=-1!==s.indexOf("u");this.start=0|e,this.source=t+"",this.flags=s,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},tN.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},tN.prototype.at=function(e,t){void 0===t&&(t=!1);var s=this.source,r=s.length;if(e>=r)return -1;var i=s.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var n=s.charCodeAt(e+1);return n>=56320&&n<=57343?(i<<10)+n-56613888:i},tN.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var s=this.source,r=s.length;if(e>=r)return r;var i,n=s.charCodeAt(e);return!(t||this.switchU)||n<=55295||n>=57344||e+1>=r||(i=s.charCodeAt(e+1))<56320||i>57343?e+1:e+2},tN.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},tN.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},tN.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},tN.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},tN.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var s=this.pos,r=0;r<e.length;r+=1){var i=e[r],n=this.at(s,t);if(-1===n||n!==i)return!1;s=this.nextIndex(s,t)}return this.pos=s,!0},tL.validateRegExpFlags=function(e){for(var t=e.validFlags,s=e.flags,r=!1,i=!1,n=0;n<s.length;n++){var a=s.charAt(n);-1===t.indexOf(a)&&this.raise(e.start,"Invalid regular expression flag"),s.indexOf(a,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===a&&(r=!0),"v"===a&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,"Invalid regular expression flag")},tL.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},tL.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,s=e.backReferenceNames;t<s.length;t+=1){var r=s[t];-1===e.groupNames.indexOf(r)&&e.raise("Invalid named capture referenced")}},tL.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},tL.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},tL.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?!!this.regexp_eatAtom(e):!!this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},tL.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var s=!1;if(this.options.ecmaVersion>=9&&(s=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!s,!0}return e.pos=t,!1},tL.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},tL.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},tL.regexp_eatBracedQuantifier=function(e,t){var s=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return -1!==i&&i<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=s}return!1},tL.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},tL.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},tL.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},tL.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},tL.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},tL.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},tL.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!tj(t)&&(e.lastIntValue=t,e.advance(),!0)},tL.regexp_eatPatternCharacters=function(e){for(var t=e.pos,s=0;-1!==(s=e.current())&&!tj(s);)e.advance();return e.pos!==t},tL.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return -1!==t&&36!==t&&(!(t>=40)||!(t<=43))&&46!==t&&63!==t&&91!==t&&94!==t&&124!==t&&(e.advance(),!0)},tL.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}},tL.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},tL.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=eQ(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=eQ(e.lastIntValue);return!0}return!1},tL.regexp_eatRegExpIdentifierStart=function(e){var t,s=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return(e.advance(r),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),eP(t=i,!0)||36===t||95===t)?(e.lastIntValue=i,!0):(e.pos=s,!1)},tL.regexp_eatRegExpIdentifierPart=function(e){var t,s=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return(e.advance(r),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),eI(t=i,!0)||36===t||95===t||8204===t||8205===t)?(e.lastIntValue=i,!0):(e.pos=s,!1)},tL.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},tL.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var s=e.lastIntValue;if(e.switchU)return s>e.maxBackReference&&(e.maxBackReference=s),!0;if(s<=e.numCapturingParens)return!0;e.pos=t}return!1},tL.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},tL.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},tL.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},tL.regexp_eatZero=function(e){return!(48!==e.current()||tD(e.lookahead()))&&(e.lastIntValue=0,e.advance(),!0)},tL.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},tL.regexp_eatControlLetter=function(e){var t=e.current();return!!tO(t)&&(e.lastIntValue=t%32,e.advance(),!0)},tL.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var s=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i,n=e.lastIntValue;if(r&&n>=55296&&n<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(n-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=n}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(i=e.lastIntValue)>=0&&i<=1114111)return!0;r&&e.raise("Invalid unicode escape"),e.pos=s}return!1},tL.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return 99!==t&&(!e.switchN||107!==t)&&(e.lastIntValue=t,e.advance(),!0)},tL.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1},tL.regexp_eatCharacterClassEscape=function(e){var t,s=e.current();if(100===s||68===s||115===s||83===s||119===s||87===s)return e.lastIntValue=-1,e.advance(),1;var r=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((r=80===s)||112===s)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(t=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return r&&2===t&&e.raise("Invalid property name"),t;e.raise("Invalid property name")}return 0},tL.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var s=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,s,r),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return 0},tL.regexp_validateUnicodePropertyNameAndValue=function(e,t,s){eG(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(s)||e.raise("Invalid property value")},tL.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise("Invalid property name")},tL.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";tV(t=e.current());)e.lastStringValue+=eQ(t),e.advance();return""!==e.lastStringValue},tL.regexp_eatUnicodePropertyValue=function(e){var t,s=0;for(e.lastStringValue="";tV(t=s=e.current())||tD(t);)e.lastStringValue+=eQ(s),e.advance();return""!==e.lastStringValue},tL.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},tL.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),s=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&2===s&&e.raise("Negated character class may contain strings"),!0}return!1},tL.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},tL.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var s=e.lastIntValue;e.switchU&&(-1===t||-1===s)&&e.raise("Invalid character class"),-1!==t&&-1!==s&&t>s&&e.raise("Range out of order in character class")}}},tL.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var s=e.current();(99===s||tF(s))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},tL.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},tL.regexp_classSetExpression=function(e){var t,s=1;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){2===t&&(s=2);for(var r=e.pos;e.eatChars([38,38]);){if(38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))){2!==t&&(s=1);continue}e.raise("Invalid character in character class")}if(r!==e.pos)return s;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return s}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return s;2===t&&(s=2)}},tL.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return -1!==s&&-1!==r&&s>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},tL.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},tL.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var s=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return s&&2===r&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},tL.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var s=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return s}else e.raise("Invalid escape");e.pos=t}return null},tL.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},tL.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},tL.regexp_eatClassSetCharacter=function(e){var t,s=e.pos;if(e.eat(92))return!!(this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=s,!1));var r=e.current();return!(r<0||r===e.lookahead()&&(33===r||r>=35&&r<=38||r>=42&&r<=44||46===r||r>=58&&r<=64||94===r||96===r||126===r)||40===(t=r)||41===t||45===t||47===t||t>=91&&t<=93||t>=123&&t<=125)&&(e.advance(),e.lastIntValue=r,!0)},tL.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!(33===t||35===t||37===t||38===t||44===t||45===t||t>=58&&t<=62||64===t||96===t||126===t)&&(e.lastIntValue=t,e.advance(),!0)},tL.regexp_eatClassControlLetter=function(e){var t=e.current();return(!!tD(t)||95===t)&&(e.lastIntValue=t%32,e.advance(),!0)},tL.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},tL.regexp_eatDecimalDigits=function(e){var t=e.pos,s=0;for(e.lastIntValue=0;tD(s=e.current());)e.lastIntValue=10*e.lastIntValue+(s-48),e.advance();return e.pos!==t},tL.regexp_eatHexDigits=function(e){var t=e.pos,s=0;for(e.lastIntValue=0;tU(s=e.current());)e.lastIntValue=16*e.lastIntValue+tM(s),e.advance();return e.pos!==t},tL.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var s=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*s+e.lastIntValue:e.lastIntValue=8*t+s}else e.lastIntValue=t;return!0}return!1},tL.regexp_eatOctalDigit=function(e){var t=e.current();return tF(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},tL.regexp_eatFixedHexDigits=function(e,t){var s=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!tU(i))return e.pos=s,!1;e.lastIntValue=16*e.lastIntValue+tM(i),e.advance()}return!0};var tB=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new eY(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},t$=e3.prototype;function tq(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}t$.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new tB(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},t$.getToken=function(){return this.next(),new tB(this)},"undefined"!=typeof Symbol&&(t$[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===eO.eof,value:t}}}}),t$.nextToken=function(){var e=this.curContext();return(e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)?this.finishToken(eO.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},t$.readToken=function(e){return eP(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},t$.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},t$.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,s=this.input.indexOf("*/",this.pos+=2);if(-1===s&&this.raise(this.pos-2,"Unterminated comment"),this.pos=s+2,this.options.locations)for(var r=void 0,i=t;(r=eM(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,s),t,this.pos,e,this.curPosition())},t$.skipLineComment=function(e){for(var t=this.pos,s=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!eU(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,s,this.curPosition())},t$.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++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(e>8&&e<14||e>=5760&&eF.test(String.fromCharCode(e)))++this.pos;else break e}}},t$.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var s=this.type;this.type=e,this.value=t,this.updateContext(s)},t$.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(eO.ellipsis)):(++this.pos,this.finishToken(eO.dot))},t$.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(eO.assign,2):this.finishOp(eO.slash,1)},t$.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),s=1,r=42===e?eO.star:eO.modulo;return(this.options.ecmaVersion>=7&&42===e&&42===t&&(++s,r=eO.starstar,t=this.input.charCodeAt(this.pos+2)),61===t)?this.finishOp(eO.assign,s+1):this.finishOp(r,s)},t$.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(eO.assign,3):this.finishOp(124===e?eO.logicalOR:eO.logicalAND,2):61===t?this.finishOp(eO.assign,2):this.finishOp(124===e?eO.bitwiseOR:eO.bitwiseAND,1)},t$.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(eO.assign,2):this.finishOp(eO.bitwiseXOR,1)},t$.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45===t&&!this.inModule&&62===this.input.charCodeAt(this.pos+2)&&(0===this.lastTokEnd||eV.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(eO.incDec,2):61===t?this.finishOp(eO.assign,2):this.finishOp(eO.plusMin,1)},t$.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),s=1;return t===e?(s=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+s))?this.finishOp(eO.assign,s+1):this.finishOp(eO.bitShift,s):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(s=2),this.finishOp(eO.relational,s)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},t$.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(eO.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(eO.arrow)):this.finishOp(61===e?eO.eq:eO.prefix,1)},t$.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var s=this.input.charCodeAt(this.pos+2);if(s<48||s>57)return this.finishOp(eO.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(eO.assign,3):this.finishOp(eO.coalesce,2)}return this.finishOp(eO.question,1)},t$.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,eP(t=this.fullCharCodeAtPos(),!0)||92===t))return this.finishToken(eO.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+eQ(t)+"'")},t$.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(eO.parenL);case 41:return++this.pos,this.finishToken(eO.parenR);case 59:return++this.pos,this.finishToken(eO.semi);case 44:return++this.pos,this.finishToken(eO.comma);case 91:return++this.pos,this.finishToken(eO.bracketL);case 93:return++this.pos,this.finishToken(eO.bracketR);case 123:return++this.pos,this.finishToken(eO.braceL);case 125:return++this.pos,this.finishToken(eO.braceR);case 58:return++this.pos,this.finishToken(eO.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(eO.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(eO.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+eQ(e)+"'")},t$.finishOp=function(e,t){var s=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,s)},t$.readRegexp=function(){for(var e,t,s=this.pos;;){this.pos>=this.input.length&&this.raise(s,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(eV.test(r)&&this.raise(s,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(s,this.pos);++this.pos;var n=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(n);var o=this.regexpState||(this.regexpState=new tN(this));o.reset(s,i,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=new RegExp(i,a)}catch(e){}return this.finishToken(eO.regexp,{pattern:i,flags:a,value:l})},t$.readInt=function(e,t,s){for(var r=this.options.ecmaVersion>=12&&void 0===t,i=s&&48===this.input.charCodeAt(this.pos),n=this.pos,a=0,o=0,l=0,c=null==t?1/0:t;l<c;++l,++this.pos){var p=this.input.charCodeAt(this.pos),h=void 0;if(r&&95===p){i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=p;continue}if((h=p>=97?p-97+10:p>=65?p-65+10:p>=48&&p<=57?p-48:1/0)>=e)break;o=p,a=a*e+h}return(r&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||null!=t&&this.pos-n!==t)?null:a},t$.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var s=this.readInt(e);return null==s&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(s=tq(this.input.slice(t,this.pos)),++this.pos):eP(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(eO.num,s)},t$.readNumber=function(e){var t,s=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(s,"Invalid number");var r=this.pos-s>=2&&48===this.input.charCodeAt(s);r&&this.strict&&this.raise(s,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&110===i){var n=tq(this.input.slice(s,this.pos));return++this.pos,eP(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(eO.num,n)}r&&/[89]/.test(this.input.slice(s,this.pos))&&(r=!1),46!==i||r||(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),69!==i&&101!==i||r||((43===(i=this.input.charCodeAt(++this.pos))||45===i)&&++this.pos,null===this.readInt(10)&&this.raise(s,"Invalid number")),eP(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=(t=this.input.slice(s,this.pos),r?parseInt(t,8):parseFloat(t.replace(/_/g,"")));return this.finishToken(eO.num,a)},t$.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},t$.readString=function(e){for(var t="",s=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(s,this.pos)+this.readEscapedChar(!1),s=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(eU(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(s,this.pos++),this.finishToken(eO.string,t)};var tW={};t$.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===tW)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},t$.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw tW;this.raise(e,t)},t$.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var s=this.input.charCodeAt(this.pos);if(96===s||36===s&&123===this.input.charCodeAt(this.pos+1)){if(this.pos===this.start&&(this.type===eO.template||this.type===eO.invalidTemplate)){if(36===s)return this.pos+=2,this.finishToken(eO.dollarBraceL);return++this.pos,this.finishToken(eO.backQuote)}return e+=this.input.slice(t,this.pos),this.finishToken(eO.template,e)}if(92===s)e+=this.input.slice(t,this.pos)+this.readEscapedChar(!0),t=this.pos;else if(eU(s)){switch(e+=this.input.slice(t,this.pos),++this.pos,s){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(s)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},t$.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(eO.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},t$.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return eQ(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var s=this.pos-1;this.invalidStringToken(s,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(i=parseInt(r=r.slice(0,-1),8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),("0"!==r||56===t||57===t)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}if(eU(t))return"";return String.fromCharCode(t)}},t$.readHexChar=function(e){var t=this.pos,s=this.readInt(16,e);return null===s&&this.invalidStringToken(t,"Bad character escape sequence"),s},t$.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,s=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(eI(i,r))this.pos+=i<=65535?1:2;else if(92===i){this.containsEsc=!0,e+=this.input.slice(s,this.pos);var n=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?eP:eI)(a,r)||this.invalidStringToken(n,"Invalid Unicode escape"),e+=eQ(a),s=this.pos}else break;t=!1}return e+this.input.slice(s,this.pos)},t$.readWord=function(){var e=this.readWord1(),t=eO.name;return this.keywords.test(e)&&(t=eN[e]),this.finishToken(t,e)},e3.acorn={Parser:e3,version:"8.11.3",defaultOptions:e1,Position:eJ,SourceLocation:eY,getLineInfo:eZ,Node:td,TokenType:eA,tokTypes:eO,keywordTypes:eN,TokContext:ta,tokContexts:to,isIdentifierChar:eI,isIdentifierStart:eP,Token:tB,isNewLine:eU,lineBreak:eV,lineBreakG:eD,nonASCIIwhitespace:eF};const tG=/^\.?\//;var tH=function(e,...t){let s=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(s){let t=e.replace(tG,"");s=function(e="",t){return e.endsWith("/")?e:e+"/"}(s)+t}else s=e;return s};const tz=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,tK=new Set(C.builtinModules);function tQ(e){return e.replace(/\\/g,"/")}const tX={}.hasOwnProperty,tJ=/^([A-Z][a-z\d]*)+$/,tY=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),tZ={};function t1(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}const t0=new Map;function t2(e,t,s){return t0.set(e,t),function(...t){let r=Error.stackTraceLimit;t3()&&(Error.stackTraceLimit=0);let i=new s;t3()&&(Error.stackTraceLimit=r);let n=function(e,t,s){let r=t0.get(e);if(P(void 0!==r,"expected `message` to be found"),"function"==typeof r)return P(r.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${r.length}).`),Reflect.apply(r,s,t);let i=/%[dfijoOs]/g,n=0;for(;null!==i.exec(r);)n++;return(P(n===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${n}).`),0===t.length)?r:(t.unshift(r),Reflect.apply(A.format,null,t))}(e,t,i);return Object.defineProperties(i,{message:{value:n,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),t4(i),i.code=e,i}}function t3(){try{if(I.startupSnapshot.isBuildingSnapshot())return!1}catch{}let e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return void 0===e?Object.isExtensible(Error):tX.call(e,"writable")&&void 0!==e.writable?e.writable:void 0!==e.set}tZ.ERR_INVALID_ARG_TYPE=t2("ERR_INVALID_ARG_TYPE",(e,t,s)=>{P("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let r="The ";if(e.endsWith(" argument"))r+=`${e} `;else{let t=e.includes(".")?"property":"argument";r+=`"${e}" ${t} `}r+="must be ";let i=[],n=[],a=[];for(let e of t)P("string"==typeof e,"All expected entries have to be of type string"),tY.has(e)?i.push(e.toLowerCase()):null===tJ.exec(e)?(P("object"!==e,'The value "object" should be written as "Object"'),a.push(e)):n.push(e);if(n.length>0){let e=i.indexOf("object");-1!==e&&(i.slice(e,1),n.push("Object"))}return i.length>0&&(r+=`${i.length>1?"one of type":"of type"} ${t1(i,"or")}`,(n.length>0||a.length>0)&&(r+=" or ")),n.length>0&&(r+=`an instance of ${t1(n,"or")}`,a.length>0&&(r+=" or ")),a.length>0&&(a.length>1?r+=`one of ${t1(a,"or")}`:(a[0].toLowerCase()!==a[0]&&(r+="an "),r+=`${a[0]}`)),r+=`. Received ${function(e){if(null==e)return String(e);if("function"==typeof e&&e.name)return`function ${e.name}`;if("object"==typeof e)return e.constructor&&e.constructor.name?`an instance of ${e.constructor.name}`:`${A.inspect(e,{depth:-1})}`;let t=A.inspect(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}(s)}`},TypeError),tZ.ERR_INVALID_MODULE_SPECIFIER=t2("ERR_INVALID_MODULE_SPECIFIER",(e,t,s)=>`Invalid module "${e}" ${t}${s?` imported from ${s}`:""}`,TypeError),tZ.ERR_INVALID_PACKAGE_CONFIG=t2("ERR_INVALID_PACKAGE_CONFIG",(e,t,s)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${s?`. ${s}`:""}`,Error),tZ.ERR_INVALID_PACKAGE_TARGET=t2("ERR_INVALID_PACKAGE_TARGET",(e,t,s,r=!1,i)=>{let n="string"==typeof s&&!r&&s.length>0&&!s.startsWith("./");return"."===t?(P(!1===r),`Invalid "exports" main target ${JSON.stringify(s)} defined in the package config ${e}package.json${i?` imported from ${i}`:""}${n?'; targets must start with "./"':""}`):`Invalid "${r?"imports":"exports"}" target ${JSON.stringify(s)} defined for '${t}' in the package config ${e}package.json${i?` imported from ${i}`:""}${n?'; targets must start with "./"':""}`},Error),tZ.ERR_MODULE_NOT_FOUND=t2("ERR_MODULE_NOT_FOUND",(e,t,s=!1)=>`Cannot find ${s?"module":"package"} '${e}' imported from ${t}`,Error),tZ.ERR_NETWORK_IMPORT_DISALLOWED=t2("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error),tZ.ERR_PACKAGE_IMPORT_NOT_DEFINED=t2("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e,t,s)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${s}`,TypeError),tZ.ERR_PACKAGE_PATH_NOT_EXPORTED=t2("ERR_PACKAGE_PATH_NOT_EXPORTED",(e,t,s)=>"."===t?`No "exports" main defined in ${e}package.json${s?` imported from ${s}`:""}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${s?` imported from ${s}`:""}`,Error),tZ.ERR_UNSUPPORTED_DIR_IMPORT=t2("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error),tZ.ERR_UNSUPPORTED_RESOLVE_REQUEST=t2("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError),tZ.ERR_UNKNOWN_FILE_EXTENSION=t2("ERR_UNKNOWN_FILE_EXTENSION",(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError),tZ.ERR_INVALID_ARG_VALUE=t2("ERR_INVALID_ARG_VALUE",(e,t,s="is invalid")=>{let r=A.inspect(t);r.length>128&&(r=`${r.slice(0,128)}...`);let i=e.includes(".")?"property":"argument";return`The ${i} '${e}' ${s}. Received ${r}`},TypeError);const t4=function(e){let t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}(function(t){let s=t3();return s&&(e=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(t),s&&(Error.stackTraceLimit=e),t}),t6={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:t5}=tZ,t9=new Map;function t8(e,{base:t,specifier:s}){let i;let o=t9.get(e);if(o)return o;try{i=r.readFileSync(a.toNamespacedPath(e),"utf8")}catch(e){if("ENOENT"!==e.code)throw e}let l={exists:!1,pjsonPath:e,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(void 0!==i){let r;try{r=JSON.parse(i)}catch(i){let r=new t5(e,(t?`"${s}" from `:"")+n.fileURLToPath(t||s),i.message);throw r.cause=i,r}l.exists=!0,t6.call(r,"name")&&"string"==typeof r.name&&(l.name=r.name),t6.call(r,"main")&&"string"==typeof r.main&&(l.main=r.main),t6.call(r,"exports")&&(l.exports=r.exports),t6.call(r,"imports")&&(l.imports=r.imports),t6.call(r,"type")&&("commonjs"===r.type||"module"===r.type)&&(l.type=r.type)}return t9.set(e,l),l}function t7(e){let t=new URL("package.json",e);for(;!t.pathname.endsWith("node_modules/package.json");){let s=t8(n.fileURLToPath(t),{specifier:e});if(s.exists)return s;let r=t;if((t=new URL("../package.json",t)).pathname===r.pathname)break}return{pjsonPath:n.fileURLToPath(t),exists:!1,type:"none"}}const{ERR_UNKNOWN_FILE_EXTENSION:se}=tZ,st={}.hasOwnProperty,ss={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"},sr={__proto__:null,"data:":function(e){let{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return t&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(t)?"module":"application/json"===t?"json":null},"file:":function(e,t,s){let r=function(e){let t=e.pathname,s=t.length;for(;s--;){let e=t.codePointAt(s);if(47===e)break;if(46===e)return 47===t.codePointAt(s-1)?"":t.slice(s)}return""}(e);if(".js"===r){let t=t7(e).type;return"none"!==t?t:"commonjs"}if(""===r){let t=t7(e).type;return"none"===t||"commonjs"===t?"commonjs":"module"}let i=ss[r];if(i)return i;if(!s)throw new se(r,n.fileURLToPath(e))},"http:":si,"https:":si,"node:":()=>"builtin"};function si(){}const sn=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:sa,ERR_INVALID_MODULE_SPECIFIER:so,ERR_INVALID_PACKAGE_CONFIG:sl,ERR_INVALID_PACKAGE_TARGET:sc,ERR_MODULE_NOT_FOUND:sp,ERR_PACKAGE_IMPORT_NOT_DEFINED:sh,ERR_PACKAGE_PATH_NOT_EXPORTED:su,ERR_UNSUPPORTED_DIR_IMPORT:sf,ERR_UNSUPPORTED_RESOLVE_REQUEST:sd}=tZ,sm={}.hasOwnProperty,sg=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,sy=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,sx=/^\.|%|\\/,sv=/\*/g,sk=/%2f|%5c/i,sb=new Set,sw=/[/\\]{2}/;function s_(e,t,s,r,a,o,l){if(i.noDeprecation)return;let c=n.fileURLToPath(r),p=null!==sw.exec(l?e:t);i.emitWarning(`Use of deprecated ${p?"double slash":"leading or trailing slash matching"} resolving "${e}" for module request "${t}" ${t===s?"":`matched to "${s}" `}in the "${a?"imports":"exports"}" field module resolution of the package at ${c}${o?` imported from ${n.fileURLToPath(o)}`:""}.`,"DeprecationWarning","DEP0166")}function sS(e,t,s,r){if(i.noDeprecation||"module"!==function(e,t){let s=e.protocol;return st.call(sr,s)&&sr[s](e,t,!0)||null}(e,{parentURL:s.href}))return;let o=n.fileURLToPath(e.href),l=n.fileURLToPath(new n.URL(".",t)),c=n.fileURLToPath(s);r?a.resolve(l,r)!==o&&i.emitWarning(`Package ${l} has a "main" field set to "${r}", excluding the full filename and extension to the resolved file at "${o.slice(l.length)}", imported from ${c}.
5
- Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):i.emitWarning(`No "main" or "exports" field defined in the package.json for ${l} resolving the main entry point "${o.slice(l.length)}", imported from ${c}.
6
- Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function sE(e){try{return r.statSync(e)}catch{}}function sC(e){let t=r.statSync(e,{throwIfNoEntry:!1}),s=t?t.isFile():void 0;return null!=s&&s}function sP(e,t,s){return new su(n.fileURLToPath(new n.URL(".",t)),e,s&&n.fileURLToPath(s))}function sI(e,t,s,r,i){return t="object"==typeof t&&null!==t?JSON.stringify(t,null,""):`${t}`,new sc(n.fileURLToPath(new n.URL(".",s)),e,t,r,i&&n.fileURLToPath(i))}function sA(e,t,s,r,i,a,o,l,c){if("string"==typeof t)return function(e,t,s,r,i,a,o,l,c){if(""!==t&&!a&&"/"!==e[e.length-1])throw sI(s,e,r,o,i);if(!e.startsWith("./")){if(o&&!e.startsWith("../")&&!e.startsWith("/")){let s=!1;try{new n.URL(e),s=!0}catch{}if(!s)return sL(a?sn.call(sv,e,()=>t):e+t,r,c)}throw sI(s,e,r,o,i)}if(null!==sg.exec(e.slice(2))){if(null===sy.exec(e.slice(2))){if(!l){let n=a?s.replace("*",()=>t):s+t;s_(a?sn.call(sv,e,()=>t):e,n,s,r,o,i,!0)}}else throw sI(s,e,r,o,i)}let p=new n.URL(e,r),h=p.pathname,u=new n.URL(".",r).pathname;if(!h.startsWith(u))throw sI(s,e,r,o,i);if(""===t)return p;if(null!==sg.exec(t)){let c=a?s.replace("*",()=>t):s+t;null===sy.exec(t)?l||s_(a?sn.call(sv,e,()=>t):e,c,s,r,o,i,!1):function(e,t,s,r,i){throw new so(e,`request is not a valid match in pattern "${t}" for the "${r?"imports":"exports"}" resolution of ${n.fileURLToPath(s)}`,i&&n.fileURLToPath(i))}(c,s,r,o,i)}return a?new n.URL(sn.call(sv,p.href,()=>t)):new n.URL(t,p)}(t,s,r,e,i,a,o,l,c);if(Array.isArray(t)){let n;if(0===t.length)return null;let p=-1;for(;++p<t.length;){let h;let u=t[p];try{h=sA(e,u,s,r,i,a,o,l,c)}catch(e){if(n=e,"ERR_INVALID_PACKAGE_TARGET"===e.code)continue;throw e}if(void 0!==h){if(null===h){n=null;continue}return h}}if(null==n)return null;throw n}if("object"==typeof t&&null!==t){let p=Object.getOwnPropertyNames(t),h=-1;for(;++h<p.length;)if(function(e){let t=Number(e);return`${t}`===e&&t>=0&&t<4294967295}(p[h]))throw new sl(n.fileURLToPath(e),i,'"exports" cannot contain numeric property keys.');for(h=-1;++h<p.length;){let n=p[h];if("default"===n||c&&c.has(n)){let p=sA(e,t[n],s,r,i,a,o,l,c);if(void 0===p)continue;return p}}return null}if(null===t)return null;throw sI(r,t,e,o,i)}function sR(e,t,s,r,a){let o=s.exports;if(function(e,t,s){if("string"==typeof e||Array.isArray(e))return!0;if("object"!=typeof e||null===e)return!1;let r=Object.getOwnPropertyNames(e),i=!1,a=0,o=-1;for(;++o<r.length;){let e=r[o],l=""===e||"."!==e[0];if(0==a++)i=l;else if(i!==l)throw new sl(n.fileURLToPath(t),s,"\"exports\" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.")}return i}(o,e,r)&&(o={".":o}),sm.call(o,t)&&!t.includes("*")&&!t.endsWith("/")){let s=sA(e,o[t],"",t,r,!1,!1,!1,a);if(null==s)throw sP(t,e,r);return s}let l="",c="",p=Object.getOwnPropertyNames(o),h=-1;for(;++h<p.length;){let s=p[h],a=s.indexOf("*");if(-1!==a&&t.startsWith(s.slice(0,a))){t.endsWith("/")&&function(e,t,s){if(i.noDeprecation)return;let r=n.fileURLToPath(t);sb.has(r+"|"+e)||(sb.add(r+"|"+e),i.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${r}${s?` imported from ${n.fileURLToPath(s)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}(t,e,r);let o=s.slice(a+1);t.length>=s.length&&t.endsWith(o)&&1===sT(l,s)&&s.lastIndexOf("*")===a&&(l=s,c=t.slice(a,t.length-o.length))}}if(l){let s=sA(e,o[l],c,l,r,!0,!1,t.endsWith("/"),a);if(null==s)throw sP(t,e,r);return s}throw sP(t,e,r)}function sT(e,t){let s=e.indexOf("*"),r=t.indexOf("*"),i=-1===s?e.length:s+1,n=-1===r?t.length:r+1;return i>n?-1:n>i||-1===s?1:-1===r||e.length>t.length?-1:t.length>e.length?1:0}function sL(e,t,s){let r;if(C.builtinModules.includes(e))return new n.URL("node:"+e);let{packageName:i,packageSubpath:a,isScoped:o}=function(e,t){let s=e.indexOf("/"),r=!0,i=!1;"@"===e[0]&&(i=!0,-1===s||0===e.length?r=!1:s=e.indexOf("/",s+1));let a=-1===s?e:e.slice(0,s);if(null!==sx.exec(a)&&(r=!1),!r)throw new so(e,"is not a valid package name",n.fileURLToPath(t));return{packageName:a,packageSubpath:"."+(-1===s?"":e.slice(s)),isScoped:i}}(e,t),l=t7(t);if(l.exists){let e=n.pathToFileURL(l.pjsonPath);if(l.name===i&&void 0!==l.exports&&null!==l.exports)return sR(e,a,l,t,s)}let c=new n.URL("./node_modules/"+i+"/package.json",t),p=n.fileURLToPath(c);do{let l=sE(p.slice(0,-13));if(!l||!l.isDirectory()){r=p,c=new n.URL((o?"../../../../node_modules/":"../../../node_modules/")+i+"/package.json",c),p=n.fileURLToPath(c);continue}let h=t8(p,{base:t,specifier:e});if(void 0!==h.exports&&null!==h.exports)return sR(c,a,h,t,s);if("."===a)return function(e,t,s){let r;if(void 0!==t.main){if(sC(r=new n.URL(t.main,e)))return r;let i=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`],a=-1;for(;++a<i.length&&!sC(r=new n.URL(i[a],e));)r=void 0;if(r)return sS(r,e,s,t.main),r}let i=["./index.js","./index.json","./index.node"],a=-1;for(;++a<i.length&&!sC(r=new n.URL(i[a],e));)r=void 0;if(r)return sS(r,e,s,t.main),r;throw new sp(n.fileURLToPath(new n.URL(".",e)),n.fileURLToPath(s))}(c,h,t);return new n.URL(a,c)}while(p.length!==r.length);throw new sp(i,n.fileURLToPath(t),!1)}function sN(e){return"string"!=typeof e||e.startsWith("file://")?tQ(n.fileURLToPath(e)):tQ(e)}function sj(e){return n.pathToFileURL(sN(e)).toString()}const sO=/* @__PURE__ */new Set(["node","import"]),sV=[".mjs",".cjs",".js",".json"],sD=/* @__PURE__ */new Set(["ERR_MODULE_NOT_FOUND","ERR_UNSUPPORTED_DIR_IMPORT","MODULE_NOT_FOUND","ERR_PACKAGE_PATH_NOT_EXPORTED"]);function sU(e,t,s){try{return function(e,t,s,i){var o;let l;let c=t.protocol;if(o=e,""!==o&&("/"===o[0]||"."===o[0]&&(1===o.length||"/"===o[1]||"."===o[1]&&(2===o.length||"/"===o[2]))))try{l=new n.URL(e,t)}catch(r){let s=new sd(e,t);throw s.cause=r,s}else if("file:"===c&&"#"===e[0])l=function(e,t,s){var r;let i;if("#"===e||e.startsWith("#/")||e.endsWith("/"))throw new so(e,"is not a valid internal imports specifier name",n.fileURLToPath(t));let a=t7(t);if(a.exists){i=n.pathToFileURL(a.pjsonPath);let r=a.imports;if(r){if(sm.call(r,e)&&!e.includes("*")){let n=sA(i,r[e],"",e,t,!1,!0,!1,s);if(null!=n)return n}else{let n="",a="",o=Object.getOwnPropertyNames(r),l=-1;for(;++l<o.length;){let t=o[l],s=t.indexOf("*");if(-1!==s&&e.startsWith(t.slice(0,-1))){let r=t.slice(s+1);e.length>=t.length&&e.endsWith(r)&&1===sT(n,t)&&t.lastIndexOf("*")===s&&(n=t,a=e.slice(s,e.length-r.length))}}if(n){let e=sA(i,r[n],a,n,t,!0,!0,!1,s);if(null!=e)return e}}}}throw r=i,new sh(e,r&&n.fileURLToPath(new n.URL(".",r)),n.fileURLToPath(t))}(e,t,s);else try{l=new n.URL(e)}catch(r){if(("data:"===c||"http:"===c||"https:"===c)&&!C.builtinModules.includes(e)){let s=new sd(e,t);throw s.cause=r,s}l=sL(e,t,s)}return(P(void 0!==l,"expected to be defined"),"file:"!==l.protocol)?l:function(e,t,s){let i;if(null!==sk.exec(e.pathname))throw new so(e.pathname,'must not include encoded "/" or "\\" characters',n.fileURLToPath(t));try{i=n.fileURLToPath(e)}catch(s){throw Object.defineProperty(s,"input",{value:String(e)}),Object.defineProperty(s,"module",{value:String(t)}),s}let o=sE(i.endsWith("/")?i.slice(-1):i);if(o&&o.isDirectory()){let s=new sf(i,n.fileURLToPath(t));throw s.url=String(e),s}if(!o||!o.isFile()){let s=new sp(i||e.pathname,t&&n.fileURLToPath(t),!0);throw s.url=String(e),s}{let t=r.realpathSync(i),{search:s,hash:o}=e;(e=n.pathToFileURL(t+(i.endsWith(a.sep)?"/":""))).search=s,e.hash=o}return e}(l,t)}(e,t,s)}catch(e){if(!sD.has(e?.code))throw e}}function sM(e,t={}){"auto"!==t.platform&&t.platform||(t.platform="win32"===i.platform?"win32":"posix");let s=sN(function(e,t={}){var s;let i;if("string"!=typeof e){if(e instanceof URL)e=sN(e);else throw TypeError("input must be a `string` or `URL`")}if(/(node|data|http|https):/.test(e))return e;if(tK.has(e))return"node:"+e;if(e.startsWith("file://")&&(e=sN(e)),s=e,tz.test(s))try{if(r.statSync(e).isFile())return sj(e)}catch(e){if(e?.code!=="ENOENT")throw e}let n=t.conditions?new Set(t.conditions):sO,a=(Array.isArray(t.url)?t.url:[t.url]).filter(Boolean).map(e=>{var t;return new URL(("string"!=typeof(t=e.toString())&&(t=t.toString()),/(node|data|http|https|file):/.test(t))?t:tK.has(t)?"node:"+t:"file://"+encodeURI(tQ(t)))});0===a.length&&a.push(new URL(sj(process.cwd())));let o=[...a];for(let e of a)"file:"===e.protocol&&o.push(new URL("./",e),new URL(tH(e.pathname,"_index.js"),e),new URL("node_modules",e));for(let s of o){if(i=sU(e,s,n))break;for(let r of["","/index"]){for(let a of t.extensions||sV)if(i=sU(e+r+a,s,n))break;if(i)break}if(i)break}if(!i){let t=Error(`Cannot find module ${e} imported from ${o.join(", ")}`);throw t.code="ERR_MODULE_NOT_FOUND",t}return sj(i)}(e,{url:t.paths}));return"win32"===t.platform?a.win32.normalize(s):s}function sF(e,t={}){return!!function(e,t={}){try{return sM(`${e}/package.json`,t)}catch{}try{return sM(e,t)}catch(e){return"MODULE_NOT_FOUND"!==e.code&&"ERR_MODULE_NOT_FOUND"!==e.code&&console.error(e),!1}}(e,t)}const sB=async e=>{if(!L.isCI&&i.stdout.isTTY&&!sF(e)){let{confirm:t}=await Promise.resolve().then(function(){return require("./vendor-BoZ9pZii.cjs")}).then(function(e){return e.i});await t({message:`Package is required for this config: ${e}. Do you want to install it?`})&&await Promise.resolve().then(function(){return require("./vendor-BoZ9pZii.cjs")}).then(function(e){return e.b}).then(t=>t.installPackage(e,{dev:!0}))}return t(e)};function s$(e,t=!1){return"boolean"==typeof e?e:e?.enable??t}function sq(e,...t){if("boolean"==typeof e||void 0===e)return;let{enable:s,...r}=e;return t.length?T.defu(r,...t):r}function sW(e){sF(e)&&console.error(R.yellow(`[eslint-config-sukka] "${e}" is deprecated and you should uninstall it`))}const sG=async(e,...t)=>{let s=[];sW("@eslint-sukka/js"),sW("@eslint-sukka/json"),sW("@eslint-sukka/ts"),sW("@eslint-sukka/legacy");let r=s$(e?.ts,sF("typescript"));s.push(et(e?.ignores),es()),s$(e?.js,!0)&&s.push(ea(sq(e?.js)),er({typescript:r}),ei()),s$(e?.json,!0)&&s.push(ec()),r&&s.push(em(sq(e?.ts)));let i=sF("next");if(s$(e?.react,sF("react")||i)){if(r){let t=await sB("@eslint-sukka/react"),r=sF("@remix-run/node")||sF("@remix-run/react")||sF("@remix-run/serve")||sF("@remix-run/dev");s.push(t.react(sq(e?.react,{nextjs:i,remix:r,reactRefresh:{allowConstantExport:sF("vite")},reactCompiler:sF("babel-plugin-react-compiler")||sF("react-compiler-webpack")?"error":"off"}))),s$(e?.next,i)&&s.push(t.next()),s$(e?.stylex,sF("@stylexjs/stylex")||sF("stylex-webpack"))&&s.push(t.stylex(sq(e?.stylex)))}else console.warn("[eslint-config-sukka] React preset will not be enabled when TypeScript is missing.")}return s$(e?.node,sF("@types/node")||sF("@types/bun"))&&s.push((await sB("@eslint-sukka/node")).node(sq(e?.node))),s$(e?.legacy)&&s.push(eg(sq(e?.legacy))),s.push(t),s.flat()};Object.defineProperty(exports,"constants",{enumerable:!0,get:function(){return s.constants}}),exports.ignores=et,exports.sukka=sG;
1
+ "use strict";let e;const t=e=>Promise.resolve(require(e));var s,r=require("@eslint-sukka/shared"),i=require("node:fs"),n=require("node:process"),a=require("node:path");require("node:fs/promises");var o=require("node:url"),l=require("@eslint/compat"),c=require("@eslint-community/eslint-plugin-eslint-comments"),p=require("eslint-plugin-sukka"),h=require("eslint-plugin-promise"),u=require("eslint-plugin-regexp"),f=require("@eslint/js"),d=require("@stylistic/eslint-plugin-js"),m=require("@stylistic/eslint-plugin-plus"),g=require("eslint-plugin-unused-imports"),y=require("eslint-plugin-import-x"),x=require("eslint-plugin-autofix"),v=require("eslint-plugin-jsonc"),k=require("jsonc-eslint-parser"),b=require("eslint-plugin-sukka-ts"),w=require("typescript-eslint"),_=require("@stylistic/eslint-plugin-ts"),E=require("eslint-plugin-deprecation"),S=require("node:module"),C=require("node:assert"),P=require("node:v8"),I=require("node:util"),A=require("picocolors"),R=require("defu"),T=require("ci-info"),L="undefined"!=typeof document?document.currentScript:null,N=(s=Object.create(null),u&&Object.keys(u).forEach(function(e){if("default"!==e){var t=Object.getOwnPropertyDescriptor(u,e);Object.defineProperty(s,e,t.get?t:{enumerable:!0,get:function(){return u[e]}})}}),s.default=u,Object.freeze(s));const j=e=>e instanceof URL?o.fileURLToPath(e):e,O=".gitignore";function V(e={}){let t=[],{root:s=!1,files:r=s?O:function(e,{cwd:t=n.cwd(),type:s="file",stopAt:r}={}){let o=a.resolve(j(t)??""),{root:l}=a.parse(o);for(r=a.resolve(o,j(r)??l);o&&o!==r&&o!==l;){let t=a.isAbsolute(e)?e:a.join(o,e);try{let e=i.statSync(t,{throwIfNoEntry:!1});if("file"===s&&e?.isFile()||"directory"===s&&e?.isDirectory())return t}catch{}o=a.dirname(o)}}(O)||[],strict:o=!0,cwd:c=n.cwd()}=e,p=Array.isArray(r)?r:[r];for(let e of p){let s="";try{s=i.readFileSync(e,"utf8")}catch(e){if(o)throw e;continue}let r=a.relative(c,a.dirname(e)).replaceAll("\\","/"),n=s.split(/\r?\n/u).filter(e=>e&&!e.startsWith("#")).map(e=>l.convertIgnorePatternToMinimatch(e)).map(e=>(function(e,t,s){if(["",".","/"].includes(t))return e;let r=e.startsWith("!")?"!":"",i=r?e.slice(1):e;if(t.endsWith("/")||(t=`${t}/`),!t.startsWith(".."))return`${r}${t}${i}`;if(!t.match(/^(\.\.\/)+$/))throw Error("The ignore file location should be either a parent or child directory");if(i.startsWith("**"))return e;let n=a.relative(a.resolve(s,t),s).split(/[/\\]/);for(;n.length&&i.startsWith(`${n[0]}/`);)i=i.slice(n[0].length+1),n.shift();return i.startsWith("**")||0===n.length?`${r}${i}`:null})(e,r,c)).filter(e=>null!==e);t.push(...n)}if(o&&0===p.length)throw Error("No .gitignore file found");return{name:e.name||"gitignore",ignores:t}}const D=(e={})=>{let{customGlobs:t=null,gitignore:s=[".gitignore"]}=e,i=[],n=[];return!1===t||null===t?n=r.constants.GLOB_EXCLUDE:"function"==typeof t?n=t(r.constants.GLOB_EXCLUDE):"string"==typeof t?n.push(...r.constants.GLOB_EXCLUDE,t):Array.isArray(t)&&n.push(...r.constants.GLOB_EXCLUDE,...t),i.push({ignores:n}),!1===s||null===s||(!0===s?i.push(V({files:[".gitignore"],strict:!1})):("string"==typeof s||Array.isArray(s))&&i.push(V({files:s,strict:!1}))),i},U=()=>[{name:"sukka/eslint-comments",plugins:{"@eslint-community/eslint-comments":c,sukka:r.memo(p,"eslint-plugin-sukka")},rules:{"sukka/ban-eslint-disable":["error","allow-with-description"],"@eslint-community/eslint-comments/disable-enable-pair":["error",{allowWholeFile:!0}],"@eslint-community/eslint-comments/no-aggregating-enable":"error","@eslint-community/eslint-comments/no-duplicate-disable":"error","@eslint-community/eslint-comments/no-unlimited-disable":"error","@eslint-community/eslint-comments/no-unused-disable":"error","@eslint-community/eslint-comments/no-unused-enable":"error"}}],M=({typescript:e})=>[{name:"sukka/promise",plugins:{promise:h},rules:{"promise/always-return":e?"off":["error",{ignoreLastCallback:!0}],"promise/no-return-wrap":"error","promise/param-names":"error","promise/catch-or-return":["error",{allowFinally:!0,terminationMethod:["catch","asCallback","finally"]}],"promise/no-native":"off","promise/no-nesting":"warn","promise/no-promise-in-callback":"warn","promise/no-callback-in-promise":"warn","promise/avoid-new":"off","promise/no-new-statics":"error","promise/no-return-in-finally":"warn","promise/valid-params":"warn"}}],F=()=>[{name:"sukka/regexp",plugins:{sukka:r.memo(p,"eslint-plugin-sukka"),regexp:r.memo(N,"eslint-plugin-regexp")},rules:{"sukka/unicorn/better-regex":"error",...u.configs["flat/recommended"].rules,"regexp/strict":"off"}}],B=[".js",".jsx",".mjs",".cjs"],$=(e={})=>{let{files:t,disableNoConsoleInCLI:s=!0,env:i={}}=e,{browser:n=!0,webextensions:a=!1,greasemonkey:o=!1,customGlobals:l={}}=i,c=e.module??r.getPackageJson()?.type==="module",h=[{name:"@eslint/js recommended",...f.configs.recommended},{linterOptions:{reportUnusedDisableDirectives:!0}},{name:"@eslint-sukka/js base",...t?{files:t}:{},languageOptions:{ecmaVersion:"latest",sourceType:c?"module":"commonjs",parserOptions:{ecmaVersion:"latest",sourceType:c?"module":"commonjs",ecmaFeatures:{jsx:!0}},globals:{...r.globals.es2025,...n&&r.globals.browser,...a&&r.globals.webextensions,...o&&r.globals.greasemonkey,...l}},settings:{"import-x/parsers":{espree:B},"import-x/extensions":B},plugins:{"unused-imports":r.memo(g,"eslint-plugin-unused-imports"),"@stylistic/js":r.memo(d,"@stylistic/eslint-plugin-js"),"@stylistic/plus":r.memo(m,"@stylistic/eslint-plugin-plus"),sukka:r.memo(p,"eslint-plugin-sukka"),"import-x":r.memo(y,"eslint-plugin-import-x"),autofix:x},rules:{...y.configs.recommended.rules,"accessor-pairs":"off","array-callback-return":["error",{allowImplicit:!0}],"block-scoped-var":"error","class-methods-use-this":["error",{exceptMethods:[]}],curly:["error","multi-line"],"default-case":["error",{commentPattern:"^no default$"}],"default-case-last":"error","default-param-last":"error","dot-notation":["error",{allowKeywords:!0}],"@stylistic/js/dot-location":["error","property"],eqeqeq:["error","always",{null:"ignore"}],"grouped-accessor-pairs":"error","guard-for-in":"error","no-alert":"warn","no-caller":"off","autofix/no-caller":"error","no-constructor-return":"error","no-else-return":["error",{allowElseIf:!1}],"no-empty-pattern":"error","no-empty-static-block":"error","no-eval":"error","no-extend-native":"error","no-extra-bind":"error","no-extra-label":"error","no-implicit-coercion":["off",{boolean:!1,number:!0,string:!0,allow:[]}],"no-implicit-globals":"off","no-implied-eval":"error","no-invalid-this":"off","no-labels":["error",{allowLoop:!1,allowSwitch:!1}],"no-lone-blocks":"error","no-loop-func":"error","@stylistic/js/no-multi-spaces":["error",{ignoreEOLComments:!1}],"no-multi-str":"error","no-new":"error","no-new-func":"error","no-new-wrappers":"error","no-octal-escape":"error","no-proto":"off","autofix/no-proto":"error","no-restricted-properties":["error",...[["isFinite","Number.isFinite"],["isNaN","Number.isNaN"]].flatMap(([e,t])=>["global","globalThis","window","self"].map(s=>({object:s,property:e,message:`Please use ${t} instead`}))),{object:"arguments",property:"callee",message:"arguments.callee is deprecated"},{property:"__defineGetter__",message:"Please use Object.defineProperty instead."},{property:"__defineSetter__",message:"Please use Object.defineProperty instead."},{object:"Math",property:"pow",message:"Use the exponentiation operator (**) instead."}],"no-return-assign":["error","always"],"no-return-await":"off","sukka/no-return-await":"error","no-self-compare":"off","no-sequences":"error","no-unmodified-loop-condition":"off","no-unused-expressions":["error",{allowShortCircuit:!1,allowTernary:!1,allowTaggedTemplates:!1}],"no-useless-call":"off","no-useless-catch":"off","autofix/no-useless-catch":"error","no-useless-concat":"off","autofix/no-useless-concat":"error","no-useless-escape":"error","no-useless-return":"error","no-void":["error",{allowAsStatement:!0}],"no-with":"error","prefer-promise-reject-errors":["error",{allowEmptyReject:!0}],"prefer-object-has-own":"error","prefer-regex-literals":["error",{disallowRedundantWrapping:!0}],radix:"off","autofix/radix":"error","require-await":"error","require-yield":"error","require-unicode-regexp":"off","vars-on-top":"error","@stylistic/js/wrap-iife":["error","outside",{functionPrototypeMethods:!1}],yoda:"error","no-await-in-loop":"warn","no-console":"warn","no-constant-condition":"warn","no-empty-function":"error","no-empty":["error",{allowEmptyCatch:!0}],"no-constant-binary-expression":"error","@stylistic/js/no-extra-parens":["off","all",{conditionalAssign:!0,nestedBinaryExpressions:!1,returnAssign:!1,ignoreJSX:"all",enforceForArrowConditionals:!1}],"no-loss-of-precision":"warn","no-promise-executor-return":"error","no-template-curly-in-string":"error","no-unreachable-loop":["error",{ignore:[]}],"no-unused-vars":["error",{vars:"all",varsIgnorePattern:"^_",args:"after-used",argsIgnorePattern:"^_",ignoreRestSiblings:!0}],"unused-imports/no-unused-vars":"off","unused-imports/no-unused-imports":"off","no-unused-private-class-members":"error","no-useless-backreference":"error","no-negated-in-lhs":"off","require-atomic-updates":"off","use-isnan":["error",{enforceForIndexOf:!0}],"valid-typeof":"off","autofix/valid-typeof":["error",{requireStringLiterals:!0}],"no-new-native-nonconstructor":"off","autofix/no-new-native-nonconstructor":"error","@stylistic/js/arrow-spacing":["error",{before:!0,after:!0}],"@stylistic/js/generator-star-spacing":["error",{before:!0,after:!1}],"@stylistic/js/no-confusing-arrow":["error",{allowParens:!0}],"no-duplicate-imports":"off","no-restricted-exports":["error",{restrictedNamedExports:["then"]}],"no-useless-constructor":"error","no-useless-rename":["error",{ignoreDestructuring:!1,ignoreImport:!1,ignoreExport:!1}],"no-var":"warn","object-shorthand":["error","always",{ignoreConstructors:!1,avoidQuotes:!0,avoidExplicitReturnArrows:!0}],"prefer-arrow-callback":["error",{allowNamedFunctions:!1,allowUnboundThis:!0}],"prefer-const":["error",{ignoreReadBeforeAssign:!0}],"prefer-numeric-literals":"error","prefer-rest-params":"error","prefer-template":"off","symbol-description":"error","@stylistic/js/template-curly-spacing":["error","never"],"@stylistic/js/yield-star-spacing":["error","before"],"@stylistic/js/array-bracket-newline":["off","consistent"],"@stylistic/js/array-bracket-spacing":["error","never"],"@stylistic/js/array-element-newline":["off",{multiline:!0,minItems:5}],"@stylistic/js/block-spacing":["error","always"],"@stylistic/js/brace-style":["error","1tbs",{allowSingleLine:!0}],camelcase:["warn",{properties:"never",ignoreDestructuring:!1,ignoreImports:!0,ignoreGlobals:!0,allow:["^UNSAFE_","^experimental_","^__DEV__"]}],"@stylistic/js/comma-dangle":["error","never"],"@stylistic/js/comma-spacing":["error",{before:!1,after:!0}],"@stylistic/js/comma-style":["error","last",{exceptions:{ArrayExpression:!1,ArrayPattern:!1,ArrowFunctionExpression:!1,CallExpression:!1,FunctionDeclaration:!1,FunctionExpression:!1,ImportDeclaration:!1,ObjectExpression:!1,ObjectPattern:!1,VariableDeclaration:!1,NewExpression:!1}}],"@stylistic/js/computed-property-spacing":["error","never"],"consistent-this":"off","@stylistic/js/eol-last":["error","always"],"@stylistic/js/func-call-spacing":["error","never"],"@stylistic/js/function-call-argument-newline":["off","consistent"],"@stylistic/js/function-paren-newline":["error","consistent"],"@stylistic/js/implicit-arrow-linebreak":["error","beside"],"@stylistic/js/indent":["error",2,{SwitchCase:1}],"@stylistic/plus/indent-binary-ops":["error",2],"@stylistic/js/key-spacing":["error",{beforeColon:!1,afterColon:!0}],"@stylistic/js/keyword-spacing":["error",{before:!0,after:!0,overrides:{return:{after:!0},throw:{after:!0},case:{after:!0}}}],"@stylistic/js/linebreak-style":"error","@stylistic/js/lines-around-comment":"off","@stylistic/js/lines-around-directive":"off","@stylistic/js/lines-between-class-members":["error","always",{exceptAfterSingleLine:!0}],"@stylistic/js/multiline-ternary":"off","new-cap":["error",{newIsCap:!0,newIsCapExceptions:[],capIsNew:!1,capIsNewExceptions:["Immutable.Map","Immutable.Set","Immutable.List"]}],"@stylistic/js/newline-per-chained-call":["error",{ignoreChainWithDepth:6}],"@stylistic/js/new-parens":"error","no-bitwise":"off","no-lonely-if":"error","sukka/unicorn/no-lonely-if":"error","@stylistic/js/no-mixed-operators":["error",{groups:[["**","+"],["**","-"],["**","*"],["**","/"],["%","+"],["%","-"],["%","*"],["%","/"],["%","**"],["==","!=","===","!==",">",">=","<","<="],["&&","||"],["in","instanceof"]],allowSamePrecedence:!0}],"@stylistic/js/no-mixed-spaces-and-tabs":"error","no-multi-assign":"error","@stylistic/js/no-multiple-empty-lines":["error",{max:1,maxBOF:0,maxEOF:0}],"no-negated-condition":"off","sukka/unicorn/no-negated-condition":"warn","no-nested-ternary":"off","sukka/unicorn/no-nested-ternary":"warn","no-new-object":"off","no-object-constructor":"error","no-array-constructor":"error","@stylistic/js/no-spaced-func":"off","@stylistic/js/no-tabs":"error","no-ternary":"off","@stylistic/js/no-trailing-spaces":"error","no-unneeded-ternary":"error","@stylistic/js/no-whitespace-before-property":"error","@stylistic/js/nonblock-statement-body-position":"error","@stylistic/js/object-curly-newline":"off","@stylistic/js/object-curly-spacing":["error","always"],"@stylistic/js/object-property-newline":"off","@stylistic/js/one-var-declaration-per-line":"off","prefer-exponentiation-operator":"error","@stylistic/js/operator-linebreak":["error","before"],"@stylistic/js/padded-blocks":["error","never"],"@stylistic/js/padding-line-between-statements":["error",{blankLine:"always",prev:"directive",next:"*"},{blankLine:"always",prev:"*",next:["class","with"]},{blankLine:"always",prev:["class","with"],next:"*"}],"@stylistic/js/quotes":["error","single"],"@stylistic/js/quote-props":["error","as-needed",{keywords:!1,unnecessary:!0,numbers:!1}],"@stylistic/js/jsx-quotes":["error","prefer-double"],"@stylistic/js/rest-spread-spacing":["error","never"],"@stylistic/js/semi":["error","always"],"@stylistic/js/semi-spacing":["error",{before:!1,after:!0}],"@stylistic/js/semi-style":["error","last"],"@stylistic/js/space-before-blocks":"error","@stylistic/js/space-before-function-paren":["error",{anonymous:"always",named:"never",asyncArrow:"always"}],"@stylistic/js/space-in-parens":["error","never"],"@stylistic/js/space-infix-ops":"error","@stylistic/js/space-unary-ops":["error",{words:!0,nonwords:!1,overrides:{}}],"@stylistic/js/spaced-comment":["error","always",{line:{exceptions:["-","+"],markers:["=","!","/"]},block:{exceptions:["-","+"],markers:["=","!",":","::"],balanced:!0}}],"@stylistic/js/switch-colon-spacing":["error",{after:!0,before:!1}],"@stylistic/js/template-tag-spacing":["error","never"],"unicode-bom":["error","never"],"@stylistic/js/wrap-regex":"off","no-label-var":"error","no-use-before-define":["error",{functions:!1,classes:!0,variables:!0}],"no-restricted-globals":["error",{name:"isFinite",message:"Use Number.isFinite instead https://github.com/airbnb/javascript#standard-library--isfinite"},{name:"isNaN",message:"Use Number.isNaN instead https://github.com/airbnb/javascript#standard-library--isnan"}],"no-undef-init":"error","sukka/array/no-unneeded-flat-map":"error","sukka/browser/prefer-location-assign":"warn","sukka/jsx/no-template-literal":"error","sukka/jsx/no-unneeded-nested":"error","sukka/string/no-locale-case":"warn","sukka/string/no-simple-template-literal":"error","sukka/type/no-instanceof-wrapper":"error","sukka/unicode/no-bidi":"warn","sukka/unicode/no-invisible":"warn","sukka/no-redundant-variable":"error","sukka/no-single-return":"error","sukka/prefer-early-return":["error",{maximumStatements:16}],"sukka/prefer-fetch":"error","sukka/prefer-timer-id":"warn","sukka/unicorn/catch-error-name":["error",{ignore:[/^(?:e|err|error|\w+Err|\w+Error)[\d_]?$/]}],"sukka/unicorn/custom-error-definition":"error","sukka/unicorn/require-array-join-separator":"warn","sukka/unicorn/no-thenable":"error","sukka/unicorn/no-invalid-remove-event-listener":"error","sukka/unicorn/consistent-function-scoping":"warn","sukka/unicorn/prefer-event-target":"warn","sukka/unicorn/prefer-keyboard-event-key":"warn","sukka/unicorn/prefer-text-content":"warn","sukka/unicorn/no-console-spaces":"warn","sukka/unicorn/no-empty-file":"warn","sukka/unicorn/no-useless-fallback-in-spread":"warn","sukka/unicorn/no-useless-length-check":"warn","sukka/unicorn/no-useless-promise-resolve-reject":"warn","sukka/unicorn/no-zero-fractions":"warn","sukka/unicorn/prefer-export-from":["warn",{ignoreUsedVariables:!0}],"sukka/unicorn/prefer-native-coercion-functions":"warn","sukka/unicorn/prefer-negative-index":"warn","sukka/unicorn/no-document-cookie":"error","sukka/unicorn/prefer-add-event-listener":"warn","sukka/unicorn/prefer-array-index-of":"warn","sukka/unicorn/prefer-blob-reading-methods":"warn","sukka/unicorn/prefer-date-now":"warn","sukka/unicorn/prefer-dom-node-dataset":"warn","sukka/unicorn/prefer-modern-math-apis":"warn","sukka/unicorn/number-literal-case":"error","sukka/unicorn/prefer-number-properties":["warn",{checkInfinity:!1}],"sukka/unicorn/prefer-reflect-apply":"warn","sukka/unicorn/prefer-set-size":"warn","sukka/unicorn/prefer-string-replace-all":"warn","sukka/unicorn/prefer-string-slice":"warn","sukka/unicorn/prefer-string-trim-start-end":"warn","sukka/unicorn/no-unreadable-iife":"warn","sukka/unicorn/throw-new-error":"warn","sukka/unicorn/escape-case":"warn","sukka/unicorn/no-hex-escape":"warn","sukka/unicorn/prefer-prototype-methods":"warn","sukka/unicorn/error-message":"error","sukka/unicorn/no-instanceof-array":"error","sukka/unicorn/prefer-type-error":"error","sukka/unicorn/consistent-destructuring":"warn","sukka/unicorn/new-for-builtins":"warn","sukka/unicorn/no-array-push-push":"warn","sukka/unicorn/no-static-only-class":"warn","sukka/unicorn/no-unreadable-array-destructuring":"error","sukka/unicorn/no-useless-spread":"error","sukka/unicorn/no-useless-switch-case":"warn","sukka/unicorn/no-useless-undefined":["error",{checkArguments:!1}],"sukka/unicorn/numeric-separators-style":["warn",{onlyIfContainsSeparator:!1,number:{minimumDigits:7,groupLength:3},binary:{minimumDigits:9,groupLength:4},octal:{minimumDigits:9,groupLength:4},hexadecimal:{minimumDigits:5,groupLength:2}}],"sukka/unicorn/prefer-array-find":"warn","sukka/unicorn/prefer-array-flat-map":"warn","sukka/unicorn/prefer-array-flat":"warn","sukka/unicorn/prefer-array-some":"warn","sukka/unicorn/prefer-code-point":"warn","sukka/unicorn/prefer-default-parameters":"warn","sukka/unicorn/prefer-logical-operator-over-ternary":"warn","sukka/unicorn/prefer-optional-catch-binding":"error","sukka/unicorn/prefer-regexp-test":"warn","sukka/unicorn/prefer-set-has":"error","sukka/unicorn/prefer-switch":"warn","sukka/unicorn/require-number-to-fixed-digits-argument":"warn","sukka/import-dedupe":"error","sukka/unicorn/prefer-string-raw":"warn","sukka/unicorn/no-single-promise-in-promise-methods":"error","sukka/unicorn/no-await-in-promise-methods":"error","sukka/unicorn/no-magic-array-flat-depth":"error","sukka/unicorn/no-object-as-default-parameter":"error","sukka/unicorn/template-indent":["warn",{tags:["outdent","dedent","gql","sql","html","styled","css"],functions:["dedent","stripIndent","strip_indent","stripTags","striptags","strip_tags","stripHtml","stripHTML","strip_html"],selectors:[],comments:["HTML","html","CSS","css","indent"]}],"sukka/unicorn/no-negation-in-equality-check":"error","sukka/unicorn/no-length-as-slice-end":"error","no-restricted-imports":["error",{paths:r.RESTRICTED_IMPORT_JS}],"no-prototype-builtins":"off","autofix/no-prototype-builtins":"error"}}];if(!1!==s){let e="boolean"==typeof s?null:Array.isArray(s)?s:[s];h.push({name:"@eslint-sukka/js cli specific",files:e??[`**/scripts/${r.constants.GLOB_SRC}`,`**/cli/${r.constants.GLOB_SRC}`,`**/cli.${r.constants.GLOB_SRC_EXT}`],rules:{"no-console":"off"}})}return h},q={plugins:{jsonc:r.memo(v,"eslint-plugin-jsonc")},languageOptions:{parser:k}},W={"jsonc/array-bracket-spacing":["error","never"],"jsonc/comma-dangle":["error","never"],"jsonc/comma-style":["error","last"],"jsonc/indent":["error",2],"jsonc/key-spacing":["error",{beforeColon:!1,afterColon:!0}],"jsonc/object-curly-newline":"off","jsonc/object-curly-spacing":["error","always"],"jsonc/object-property-newline":["error",{allowMultiplePropertiesPerLine:!0}],"jsonc/quote-props":"error","jsonc/quotes":"error"},G=()=>[...v.configs["flat/base"],{name:"@eslint-sukka/json json",files:[r.constants.GLOB_JSON],rules:{...v.configs["flat/recommended-with-json"].reduce((e,t)=>({...e,...t.rules}),{}),...W}},{name:"@eslint-sukka/json json5",...q,files:[r.constants.GLOB_JSON5],rules:{...v.configs["flat/recommended-with-json5"].reduce((e,t)=>({...e,...t.rules}),{}),...W}},{name:"@eslint-sukka/json jsonc",...q,files:[r.constants.GLOB_JSONC],rules:{...v.configs["flat/recommended-with-jsonc"].reduce((e,t)=>({...e,...t.rules}),{}),...W}},{name:"@eslint-sukka/json package.json",...q,files:["**/package.json"],rules:{"jsonc/sort-array-values":["error",{order:{type:"asc"},pathPattern:"^files$"}],"jsonc/sort-keys":["error",{order:["$schema","publisher","name","displayName","version","private","description","funding","homepage","repository","bugs","categories","type","main","module","types","typesVersions","bin","files","exports","icon","unpkg","jsdelivr","sideEffects","activationEvents","contributes","scripts","keywords","author","license","dependencies","devDependencies","peerDependencies","peerDependenciesMeta","optionalDependencies","packageManager","engines","pnpm","overrides","resolutions","husky","simple-git-hooks","lint-staged","eslintConfig"],pathPattern:"^$"},{order:{type:"asc"},pathPattern:"^(?:dev|peer|optional|bundled)?[Dd]ependencies(Meta)?$"},{order:["types","import","module","require","default"],pathPattern:"^exports.*$"}]}},{name:"@eslint-sukka/json tsconfig.json",...q,files:["**/tsconfig.json","**/tsconfig.*.json","**/tsconfig-*.json","**/jsconfig.json","**/jsconfig.*.json","**/jsconfig-*.json"],rules:{"jsonc/sort-keys":["error",{order:["$schema","extends","compilerOptions","references","files","include","exclude"],pathPattern:"^$"},{order:["incremental","composite","tsBuildInfoFile","disableSourceOfProjectReferenceRedirect","disableSolutionSearching","disableReferencedProjectLoad","target","lib","jsx","experimentalDecorators","emitDecoratorMetadata","jsxFactory","jsxFragmentFactory","jsxImportSource","reactNamespace","noLib","useDefineForClassFields","moduleDetection","module","rootDir","moduleResolution","baseUrl","paths","rootDirs","typeRoots","types","allowUmdGlobalAccess","moduleSuffixes","allowImportingTsExtensions","resolvePackageJsonExports","resolvePackageJsonImports","customConditions","resolveJsonModule","allowArbitraryExtensions","noResolve","allowJs","checkJs","maxNodeModuleJsDepth","declaration","declarationMap","emitDeclarationOnly","sourceMap","inlineSourceMap","outFile","outDir","removeComments","noEmit","importHelpers","importsNotUsedAsValues","downlevelIteration","sourceRoot","mapRoot","inlineSources","emitBOM","newLine","stripInternal","noEmitHelpers","noEmitOnError","preserveConstEnums","declarationDir","preserveValueImports","isolatedModules","verbatimModuleSyntax","allowSyntheticDefaultImports","esModuleInterop","preserveSymlinks","forceConsistentCasingInFileNames","strict","strictBindCallApply","strictFunctionTypes","strictNullChecks","strictPropertyInitialization","allowUnreachableCode","allowUnusedLabels","alwaysStrict","exactOptionalPropertyTypes","noFallthroughCasesInSwitch","noImplicitAny","noImplicitOverride","noImplicitReturns","noImplicitThis","noPropertyAccessFromIndexSignature","noUncheckedIndexedAccess","noUnusedLocals","noUnusedParameters","useUnknownInCatchVariables","skipDefaultLibCheck","skipLibCheck"],pathPattern:"^compilerOptions$"}]}}],H={"no-dupe-class-members":"off","@typescript-eslint/no-dupe-class-members":"error","no-redeclare":"off","@typescript-eslint/no-redeclare":"error","no-unused-vars":"off","@typescript-eslint/no-unused-vars":["error",{vars:"all",varsIgnorePattern:"^_",args:"after-used",argsIgnorePattern:"^_",ignoreRestSiblings:!0}],"class-methods-use-this":"off","@typescript-eslint/class-methods-use-this":["error",{exceptMethods:[]}],"default-param-last":"off","@typescript-eslint/default-param-last":"error","dot-notation":"off","@typescript-eslint/dot-notation":["error",{allowKeywords:!0}],"no-implied-eval":"off","@typescript-eslint/no-implied-eval":"error","no-invalid-this":"off","@typescript-eslint/no-invalid-this":"off","no-loop-func":"off","@typescript-eslint/no-loop-func":"error","no-return-await":"off","@typescript-eslint/return-await":"error","sukka/no-return-await":"off","no-unused-expressions":"off","@typescript-eslint/no-unused-expressions":["error",{allowShortCircuit:!1,allowTernary:!1,allowTaggedTemplates:!1}],"prefer-promise-reject-errors":"off","@typescript-eslint/prefer-promise-reject-errors":["error",{allowEmptyReject:!0}],"require-await":"off","@typescript-eslint/require-await":"error","no-empty-function":"off","@typescript-eslint/no-empty-function":"error","@stylistic/js/no-extra-parens":"off","@stylistic/ts/no-extra-parens":["off","all",{conditionalAssign:!0,nestedBinaryExpressions:!1,returnAssign:!1,ignoreJSX:"all",enforceForArrowConditionals:!1}],"no-useless-constructor":"off","@typescript-eslint/no-useless-constructor":"error","@stylistic/js/block-spacing":"off","@stylistic/ts/block-spacing":["error","always"],"@stylistic/js/brace-style":"off","@stylistic/ts/brace-style":["error","1tbs",{allowSingleLine:!0}],camelcase:"off","@stylistic/js/comma-dangle":"off","@stylistic/ts/comma-dangle":["error","never"],"@stylistic/js/comma-spacing":"off","@stylistic/ts/comma-spacing":["error",{before:!1,after:!0}],"@stylistic/js/func-call-spacing":"off","@stylistic/ts/func-call-spacing":["error","never"],"@stylistic/js/indent":"off","@stylistic/ts/indent":["error",2,{SwitchCase:1}],"@stylistic/js/key-spacing":"off","@stylistic/ts/key-spacing":["error",{beforeColon:!1,afterColon:!0}],"@stylistic/js/keyword-spacing":"off","@stylistic/ts/keyword-spacing":["error",{before:!0,after:!0,overrides:{return:{after:!0},throw:{after:!0},case:{after:!0}}}],"@stylistic/js/lines-around-comment":"off","@stylistic/ts/lines-around-comment":"off","@stylistic/js/lines-between-class-members":"off","@stylistic/ts/lines-between-class-members":["error","always",{exceptAfterSingleLine:!0}],"no-array-constructor":"off","@typescript-eslint/no-array-constructor":"error","@stylistic/js/object-curly-newline":"off","@stylistic/ts/object-curly-newline":"off","@stylistic/js/object-curly-spacing":"off","@stylistic/ts/object-curly-spacing":["error","always"],"@stylistic/js/object-property-newline":"off","@stylistic/ts/object-property-newline":"off","@stylistic/js/padding-line-between-statements":"off","@stylistic/ts/padding-line-between-statements":["error",{blankLine:"always",prev:"directive",next:"*"},{blankLine:"always",prev:"*",next:["class","with"]},{blankLine:"always",prev:["class","with"],next:"*"}],"@stylistic/js/quotes":"off","@stylistic/ts/quotes":["error","single"],"@stylistic/js/quote-props":"off","@stylistic/ts/quote-props":["error","as-needed",{keywords:!1,unnecessary:!0,numbers:!1}],"@stylistic/js/semi":"off","@stylistic/ts/semi":["error","always"],"@stylistic/js/space-before-blocks":"off","@stylistic/ts/space-before-blocks":"error","@stylistic/js/space-before-function-paren":"off","@stylistic/ts/space-before-function-paren":["error",{anonymous:"always",named:"never",asyncArrow:"always"}],"@stylistic/js/space-infix-ops":"off","@stylistic/ts/space-infix-ops":"error","no-use-before-define":"off","@typescript-eslint/no-use-before-define":["error",{functions:!1,classes:!0,variables:!0}],"no-restricted-imports":"off"},z=[".js",".jsx",".mjs",".cjs"],K=[".ts",".cts",".mts",".tsx",".d.ts"],Q=[...K,...z],X=[".ts",".cts",".mts",".tsx",...z],J=(e={})=>{let{tsconfigPath:t=!0,tsconfigRootDir:s=n.cwd(),componentExtentions:i=[]}=e,a="string"==typeof __dirname?o.pathToFileURL(__dirname).href:"undefined"==typeof document?require("url").pathToFileURL(__filename).href:L&&L.src||new URL("index.cjs",document.baseURI).href,c=o.fileURLToPath(r.importMetaResolve("@typescript-eslint/parser",a)),p=o.fileURLToPath(r.importMetaResolve("eslint-import-resolver-ts-bundled",a));return[{name:"@eslint-sukka/ts base",files:[r.constants.GLOB_TS,r.constants.GLOB_TSX,...i.map(e=>`**/*.${e}`)],plugins:{...w.configs.base.plugins,"@stylistic/ts":r.memo(_,"@stylistic/eslint-plugin-ts"),"sukka-ts":r.memo(b,"eslint-plugin-sukka-ts"),"@stylistic/plus":r.memo(m,"@stylistic/eslint-plugin-plus"),"import-x":r.memo(y,"eslint-plugin-import-x"),deprecation:l.fixupPluginRules(E)},languageOptions:{parser:w.configs.base.languageOptions.parser,sourceType:"module",parserOptions:{sourceType:"module",ecmaVersion:"latest",...!0===t?{projectService:!0,allowDefaultProject:[]}:{project:t},tsconfigRootDir:s,ecmaFeatures:{jsx:!0},jsxPragma:void 0,warnOnUnsupportedTypeScriptVersion:!0}},settings:{"import-x/extensions":Q,"import-x/external-module-folders":["node_modules","node_modules/@types"],"import-x/resolver":{node:{extensions:X},[p]:{alwaysTryTypes:!0,...!0===t?{}:{project:t}}},"import-x/parsers":{espree:z,[c]:K}},rules:{...w.configs.base.rules,...w.configs.recommendedTypeChecked.reduce((e,t)=>({...e,...t.rules}),{}),...w.configs.stylisticTypeChecked.reduce((e,t)=>({...e,...t.rules}),{}),...y.configs.typescript.rules,...H,"@typescript-eslint/ban-ts-comment":["error",{"ts-expect-error":"allow-with-description","ts-ignore":!0,"ts-nocheck":!0,"ts-check":!1,minimumDescriptionLength:10}],"@typescript-eslint/naming-convention":["warn",{selector:"variable",format:["camelCase","PascalCase","UPPER_CASE","snake_case"],leadingUnderscore:"allowSingleOrDouble",trailingUnderscore:"allowSingleOrDouble"},{selector:"function",format:["camelCase","PascalCase"],leadingUnderscore:"allowSingleOrDouble",trailingUnderscore:"allowSingleOrDouble"},{selector:"typeLike",format:["PascalCase"],leadingUnderscore:"allowSingleOrDouble",trailingUnderscore:"allowSingleOrDouble"}],"@typescript-eslint/consistent-type-assertions":["error",{assertionStyle:"as",objectLiteralTypeAssertions:"allow"}],"@typescript-eslint/require-await":"error","@typescript-eslint/await-thenable":"error","@typescript-eslint/no-for-in-array":"error","@typescript-eslint/no-misused-promises":["error",{checksVoidReturn:!1}],"@typescript-eslint/no-unnecessary-type-assertion":"error","@typescript-eslint/restrict-template-expressions":["error",{allowNumber:!0,allowAny:!0,allowBoolean:!0,allowNever:!0}],"@typescript-eslint/unbound-method":"error","@typescript-eslint/consistent-type-imports":["warn",{prefer:"type-imports",disallowTypeAnnotations:!1,fixStyle:"separate-type-imports"}],"@typescript-eslint/no-import-type-side-effects":"warn","@typescript-eslint/consistent-type-exports":["warn",{fixMixedExportsWithInlineTypeSpecifier:!1}],"@typescript-eslint/consistent-type-definitions":"warn","@typescript-eslint/consistent-generic-constructors":["error","constructor"],"@typescript-eslint/no-base-to-string":["error",{ignoredTypeNames:["Error","RegExp","URL","URLSearchParams"]}],"@typescript-eslint/no-confusing-non-null-assertion":"error","@typescript-eslint/no-dynamic-delete":"warn","@typescript-eslint/no-extraneous-class":["warn",{allowConstructorOnly:!0,allowEmpty:!0,allowWithDecorator:!0}],"@typescript-eslint/no-invalid-void-type":["off",{allowInGenericTypeArguments:!0,allowAsThisParameter:!0}],"@typescript-eslint/no-non-null-asserted-nullish-coalescing":"error","@typescript-eslint/no-unnecessary-boolean-literal-compare":"error","@typescript-eslint/no-unnecessary-condition":["warn",{allowConstantLoopConditions:!0}],"@typescript-eslint/no-unnecessary-type-arguments":"error","@typescript-eslint/no-unsafe-declaration-merging":"error","@typescript-eslint/non-nullable-type-assertion-style":"error","@typescript-eslint/prefer-includes":"error","@typescript-eslint/prefer-literal-enum-member":["error",{allowBitwiseExpressions:!0}],"@typescript-eslint/prefer-nullish-coalescing":"off","@typescript-eslint/prefer-return-this-type":"error","@typescript-eslint/prefer-optional-chain":"error","@typescript-eslint/prefer-reduce-type-parameter":"error","@typescript-eslint/unified-signatures":["error",{ignoreDifferentlyNamedParameters:!0}],"@typescript-eslint/prefer-for-of":"off","@typescript-eslint/prefer-function-type":"off","@typescript-eslint/consistent-indexed-object-style":"off","@typescript-eslint/prefer-enum-initializers":"warn","@typescript-eslint/no-duplicate-enum-values":"error","@typescript-eslint/no-extra-non-null-assertion":"error","@typescript-eslint/no-meaningless-void-operator":"warn","@typescript-eslint/no-unnecessary-qualifier":"warn","@typescript-eslint/array-type":["warn",{default:"array-simple"}],"@typescript-eslint/no-restricted-imports":["error",{paths:r.RESTRICTED_IMPORT_TS}],"@typescript-eslint/no-empty-object-type":["error",{allowInterfaces:"with-single-extends",allowObjectTypes:"never",allowWithName:"Props$"}],"@typescript-eslint/no-unsafe-function-type":"warn","@typescript-eslint/no-restricted-types":["error",{types:{FC:{message:"To declare a component, you don't have to use FC to annotate it. To type something that accepts/is a React Component, use ComponentType<T>.",fixWith:"ComponentType"},"React.FC":{message:"To declare a component, you don't have to use React.FC to annotate it. To type something that accepts/is a React Component, use React.ComponentType<T>.",fixWith:"React.ComponentType"},ReactElement:{message:"In most cases, you want ReactNode. Only ignore this rule when you want to use cloneElement.",fixWith:"ReactNode"},"React.ReactElement":{message:"In most cases, you want React.ReactNode. Only ignore this rule when you want to use cloneElement.",fixWith:"React.ReactNode"}}}],"@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-argument":"off","@typescript-eslint/no-explicit-any":"warn","@typescript-eslint/no-loop-func":"warn","@typescript-eslint/no-redundant-type-constituents":"off","@typescript-eslint/no-floating-promises":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unsafe-enum-comparison":"warn","@typescript-eslint/prefer-regexp-exec":"warn","@stylistic/ts/member-delimiter-style":["error",{multiline:{delimiter:"comma",requireLast:!1},singleline:{delimiter:"comma",requireLast:!1}}],"@stylistic/ts/lines-between-class-members":["error","always",{exceptAfterSingleLine:!0,exceptAfterOverload:!0}],"@stylistic/ts/padding-line-between-statements":["error",{blankLine:"always",prev:"directive",next:"*"},{blankLine:"always",prev:"*",next:["class","with"]},{blankLine:"always",prev:["class","with"],next:"*"},{blankLine:"any",prev:["interface","type"],next:["interface","type"]}],"@stylistic/ts/type-annotation-spacing":["error",{before:!1,after:!0,overrides:{arrow:{before:!0,after:!0}}}],"@typescript-eslint/no-namespace":"off","@typescript-eslint/prefer-string-starts-ends-with":"off","sukka-ts/string/prefer-string-starts-ends-with":"error","@typescript-eslint/switch-exhaustiveness-check":"error","sukka-ts/string/no-unneeded-to-string":"error","sukka-ts/type/no-force-cast-via-top-type":"error","sukka-ts/type/no-wrapper-type-reference":"error","sukka-ts/no-default-error":"off","sukka-ts/no-export-const-enum":"error","@stylistic/plus/type-generic-spacing":"error","@stylistic/plus/type-named-tuple-spacing":"error","deprecation/deprecation":"error","@typescript-eslint/no-unused-vars":"off","unused-imports/no-unused-vars":["error",{vars:"all",varsIgnorePattern:"^_",args:"after-used",argsIgnorePattern:"^_",ignoreRestSiblings:!0}],"unused-imports/no-unused-imports":"error","import-x/named":"off","import-x/no-duplicates":"off","import-x/namespace":"off","import-x/default":"off","import-x/no-named-as-default-member":"off"}},{name:"@eslint-sukka/ts dts",files:["**/*.d.ts"],plugins:{"import-x":r.memo(y,"eslint-plugin-import-x")},rules:{"import-x/no-duplicates":"off","unused-imports/no-unused-vars":"off"}},{name:"@eslint-sukka/ts jest/mocha",files:["**/*.{test,spec}.ts?(x)"],rules:{"no-unused-expressions":"off"}},{name:"@eslint-sukka/ts commonjs",files:["**/*.js","**/*.cjs"],plugins:w.configs.base.plugins,rules:{"@typescript-eslint/no-require-imports":"off","@typescript-eslint/no-var-requires":"off"}}]},Y=(e={})=>[{name:"@eslint-sukka/legacy base",...e.files?{files:e.files}:{},plugins:{sukka:r.memo(p,"eslint-plugin-sukka")},rules:{"prefer-numeric-literals":"off","no-restricted-properties":["error",{object:"arguments",property:"callee",message:"arguments.callee is deprecated"},{property:"__defineGetter__",message:"Please use Object.defineProperty instead."},{property:"__defineSetter__",message:"Please use Object.defineProperty instead."}],"no-var":"off","prefer-object-spread":"off",strict:["error","safe"],"sukka/unicorn/prefer-default-parameters":"off","sukka/unicorn/prefer-logical-operator-over-ternary":"off","sukka/unicorn/prefer-optional-catch-binding":"off"},languageOptions:{globals:{...e.browser??!0?r.globals.browser:{},...e.node?r.globals.node:{}}}}];var Z=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],ee=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],et="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",es={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"},er="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",ei={5:er,"5module":er+" export import",6:er+" const class extends export import super"},en=/^in(stanceof)?$/,ea=RegExp("["+et+"]"),eo=RegExp("["+et+"‌‍\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function el(e,t){for(var s=65536,r=0;r<t.length&&!((s+=t[r])>e);r+=2)if((s+=t[r+1])>=e)return!0;return!1}function ec(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&ea.test(String.fromCharCode(e)):!1!==t&&el(e,ee)))}function ep(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&eo.test(String.fromCharCode(e)):!1!==t&&(el(e,ee)||el(e,Z)))))}var eh=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function eu(e,t){return new eh(e,{beforeExpr:!0,binop:t})}var ef={beforeExpr:!0},ed={startsExpr:!0},em={};function eg(e,t){return void 0===t&&(t={}),t.keyword=e,em[e]=new eh(e,t)}var ey={num:new eh("num",ed),regexp:new eh("regexp",ed),string:new eh("string",ed),name:new eh("name",ed),privateId:new eh("privateId",ed),eof:new eh("eof"),bracketL:new eh("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new eh("]"),braceL:new eh("{",{beforeExpr:!0,startsExpr:!0}),braceR:new eh("}"),parenL:new eh("(",{beforeExpr:!0,startsExpr:!0}),parenR:new eh(")"),comma:new eh(",",ef),semi:new eh(";",ef),colon:new eh(":",ef),dot:new eh("."),question:new eh("?",ef),questionDot:new eh("?."),arrow:new eh("=>",ef),template:new eh("template"),invalidTemplate:new eh("invalidTemplate"),ellipsis:new eh("...",ef),backQuote:new eh("`",ed),dollarBraceL:new eh("${",{beforeExpr:!0,startsExpr:!0}),eq:new eh("=",{beforeExpr:!0,isAssign:!0}),assign:new eh("_=",{beforeExpr:!0,isAssign:!0}),incDec:new eh("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new eh("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:eu("||",1),logicalAND:eu("&&",2),bitwiseOR:eu("|",3),bitwiseXOR:eu("^",4),bitwiseAND:eu("&",5),equality:eu("==/!=/===/!==",6),relational:eu("</>/<=/>=",7),bitShift:eu("<</>>/>>>",8),plusMin:new eh("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:eu("%",10),star:eu("*",10),slash:eu("/",10),starstar:new eh("**",{beforeExpr:!0}),coalesce:eu("??",1),_break:eg("break"),_case:eg("case",ef),_catch:eg("catch"),_continue:eg("continue"),_debugger:eg("debugger"),_default:eg("default",ef),_do:eg("do",{isLoop:!0,beforeExpr:!0}),_else:eg("else",ef),_finally:eg("finally"),_for:eg("for",{isLoop:!0}),_function:eg("function",ed),_if:eg("if"),_return:eg("return",ef),_switch:eg("switch"),_throw:eg("throw",ef),_try:eg("try"),_var:eg("var"),_const:eg("const"),_while:eg("while",{isLoop:!0}),_with:eg("with"),_new:eg("new",{beforeExpr:!0,startsExpr:!0}),_this:eg("this",ed),_super:eg("super",ed),_class:eg("class",ed),_extends:eg("extends",ef),_export:eg("export"),_import:eg("import",ed),_null:eg("null",ed),_true:eg("true",ed),_false:eg("false",ed),_in:eg("in",{beforeExpr:!0,binop:7}),_instanceof:eg("instanceof",{beforeExpr:!0,binop:7}),_typeof:eg("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:eg("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:eg("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},ex=/\r\n?|\n|\u2028|\u2029/,ev=RegExp(ex.source,"g");function ek(e){return 10===e||13===e||8232===e||8233===e}function eb(e,t,s){void 0===s&&(s=e.length);for(var r=t;r<s;r++){var i=e.charCodeAt(r);if(ek(i))return r<s-1&&13===i&&10===e.charCodeAt(r+1)?r+2:r+1}return -1}var ew=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,e_=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,eE=Object.prototype,eS=eE.hasOwnProperty,eC=eE.toString,eP=Object.hasOwn||function(e,t){return eS.call(e,t)},eI=Array.isArray||function(e){return"[object Array]"===eC.call(e)},eA=Object.create(null);function eR(e){return eA[e]||(eA[e]=RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function eT(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320)}var eL=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,eN=function(e,t){this.line=e,this.column=t};eN.prototype.offset=function(e){return new eN(this.line,this.column+e)};var ej=function(e,t,s){this.start=t,this.end=s,null!==e.sourceFile&&(this.source=e.sourceFile)};function eO(e,t){for(var s=1,r=0;;){var i=eb(e,r,t);if(i<0)return new eN(s,t-r);++s,r=i}}var eV={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},eD=!1;function eU(e,t){return 2|(e?4:0)|(t?8:0)}var eM=function(e,t,s){this.options=e=function(e){var t,s={};for(var r in eV)s[r]=e&&eP(e,r)?e[r]:eV[r];if("latest"===s.ecmaVersion?s.ecmaVersion=1e8:null==s.ecmaVersion?(!eD&&"object"==typeof console&&console.warn&&(eD=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),s.ecmaVersion=11):s.ecmaVersion>=2015&&(s.ecmaVersion-=2009),null==s.allowReserved&&(s.allowReserved=s.ecmaVersion<5),e&&null!=e.allowHashBang||(s.allowHashBang=s.ecmaVersion>=14),eI(s.onToken)){var i=s.onToken;s.onToken=function(e){return i.push(e)}}return eI(s.onComment)&&(s.onComment=(t=s.onComment,function(e,r,i,n,a,o){var l={type:e?"Block":"Line",value:r,start:i,end:n};s.locations&&(l.loc=new ej(this,a,o)),s.ranges&&(l.range=[i,n]),t.push(l)})),s}(e),this.sourceFile=e.sourceFile,this.keywords=eR(ei[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=es[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=eR(r);var i=(r?r+" ":"")+es.strict;this.reservedWordsStrict=eR(i),this.reservedWordsStrictBind=eR(i+" "+es.strictBind),this.input=String(t),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf("\n",s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(ex).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=ey.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="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},eF={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};eM.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},eF.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},eF.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},eF.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},eF.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||256&t.flags)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},eF.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,s=e.inClassFieldInit;return(64&t)>0||s||this.options.allowSuperOutsideMethod},eF.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},eF.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},eF.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,s=e.inClassFieldInit;return(258&t)>0||s},eF.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},eM.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var s=this,r=0;r<e.length;r++)s=e[r](s);return s},eM.parse=function(e,t){return new this(t,e).parse()},eM.parseExpressionAt=function(e,t,s){var r=new this(s,e,t);return r.nextToken(),r.parseExpression()},eM.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(eM.prototype,eF);var eB=eM.prototype,e$=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;eB.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){e_.lastIndex=e,e+=e_.exec(this.input)[0].length;var t=e$.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){e_.lastIndex=e+t[0].length;var s=e_.exec(this.input),r=s.index+s[0].length,i=this.input.charAt(r);return";"===i||"}"===i||ex.test(s[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}e+=t[0].length,e_.lastIndex=e,e+=e_.exec(this.input)[0].length,";"===this.input[e]&&e++}},eB.eat=function(e){return this.type===e&&(this.next(),!0)},eB.isContextual=function(e){return this.type===ey.name&&this.value===e&&!this.containsEsc},eB.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},eB.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},eB.canInsertSemicolon=function(){return this.type===ey.eof||this.type===ey.braceR||ex.test(this.input.slice(this.lastTokEnd,this.start))},eB.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},eB.semicolon=function(){this.eat(ey.semi)||this.insertSemicolon()||this.unexpected()},eB.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},eB.expect=function(e){this.eat(e)||this.unexpected()},eB.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var eq=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};eB.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var s=t?e.parenthesizedAssign:e.parenthesizedBind;s>-1&&this.raiseRecoverable(s,t?"Assigning to rvalue":"Parenthesized pattern")}},eB.checkExpressionErrors=function(e,t){if(!e)return!1;var s=e.shorthandAssign,r=e.doubleProto;if(!t)return s>=0||r>=0;s>=0&&this.raise(s,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},eB.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")},eB.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var eW=eM.prototype;eW.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==ey.eof;){var s=this.parseStatement(null,!0,t);e.body.push(s)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var n=i[r];this.raiseRecoverable(this.undefinedExports[n].start,"Export '"+n+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var eG={kind:"loop"},eH={kind:"switch"};eW.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;e_.lastIndex=this.pos;var t=e_.exec(this.input),s=this.pos+t[0].length,r=this.input.charCodeAt(s);if(91===r||92===r)return!0;if(e)return!1;if(123===r||r>55295&&r<56320)return!0;if(ec(r,!0)){for(var i=s+1;ep(r=this.input.charCodeAt(i),!0);)++i;if(92===r||r>55295&&r<56320)return!0;var n=this.input.slice(s,i);if(!en.test(n))return!0}return!1},eW.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;e_.lastIndex=this.pos;var e,t=e_.exec(this.input),s=this.pos+t[0].length;return!ex.test(this.input.slice(this.pos,s))&&"function"===this.input.slice(s,s+8)&&(s+8===this.input.length||!(ep(e=this.input.charCodeAt(s+8))||e>55295&&e<56320))},eW.parseStatement=function(e,t,s){var r,i=this.type,n=this.startNode();switch(this.isLet(e)&&(i=ey._var,r="let"),i){case ey._break:case ey._continue:return this.parseBreakContinueStatement(n,i.keyword);case ey._debugger:return this.parseDebuggerStatement(n);case ey._do:return this.parseDoStatement(n);case ey._for:return this.parseForStatement(n);case ey._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case ey._class:return e&&this.unexpected(),this.parseClass(n,!0);case ey._if:return this.parseIfStatement(n);case ey._return:return this.parseReturnStatement(n);case ey._switch:return this.parseSwitchStatement(n);case ey._throw:return this.parseThrowStatement(n);case ey._try:return this.parseTryStatement(n);case ey._const:case ey._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(n,r);case ey._while:return this.parseWhileStatement(n);case ey._with:return this.parseWithStatement(n);case ey.braceL:return this.parseBlock(!0,n);case ey.semi:return this.parseEmptyStatement(n);case ey._export:case ey._import:if(this.options.ecmaVersion>10&&i===ey._import){e_.lastIndex=this.pos;var a=e_.exec(this.input),o=this.pos+a[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(n,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===ey._import?this.parseImport(n):this.parseExport(n,s);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!e);var c=this.value,p=this.parseExpression();if(i===ey.name&&"Identifier"===p.type&&this.eat(ey.colon))return this.parseLabeledStatement(n,c,p,e);return this.parseExpressionStatement(n,p)}},eW.parseBreakContinueStatement=function(e,t){var s="break"===t;this.next(),this.eat(ey.semi)||this.insertSemicolon()?e.label=null:this.type!==ey.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((null==e.label||i.name===e.label.name)&&(null!=i.kind&&(s||"loop"===i.kind)||e.label&&s))break}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,s?"BreakStatement":"ContinueStatement")},eW.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},eW.parseDoStatement=function(e){return this.next(),this.labels.push(eG),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(ey._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(ey.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},eW.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(eG),this.enterScope(0),this.expect(ey.parenL),this.type===ey.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var s=this.isLet();if(this.type===ey._var||this.type===ey._const||s){var r=this.startNode(),i=s?"let":this.value;return(this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),(this.type===ey._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length)?(this.options.ecmaVersion>=9&&(this.type===ey._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var n=this.isContextual("let"),a=!1,o=new eq,l=this.parseExpression(!(t>-1)||"await",o);return this.type===ey._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===ey._in?t>-1&&this.unexpected(t):e.await=t>-1),n&&a&&this.raise(l.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(l,!1,o),this.checkLValPattern(l),this.parseForIn(e,l)):(this.checkExpressionErrors(o,!0),t>-1&&this.unexpected(t),this.parseFor(e,l))},eW.parseFunctionStatement=function(e,t,s){return this.next(),this.parseFunction(e,eK|(s?0:eQ),!1,t)},eW.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(ey._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},eW.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(ey.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},eW.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(ey.braceL),this.labels.push(eH),this.enterScope(0);for(var t,s=!1;this.type!==ey.braceR;)if(this.type===ey._case||this.type===ey._default){var r=this.type===ey._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(s&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),s=!0,t.test=null),this.expect(ey.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},eW.parseThrowStatement=function(e){return this.next(),ex.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var ez=[];eW.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(ey.parenR),e},eW.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===ey._catch){var t=this.startNode();this.next(),this.eat(ey.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(ey._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},eW.parseVarStatement=function(e,t,s){return this.next(),this.parseVar(e,!1,t,s),this.semicolon(),this.finishNode(e,"VariableDeclaration")},eW.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(eG),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},eW.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},eW.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},eW.parseLabeledStatement=function(e,t,s,r){for(var i=0,n=this.labels;i<n.length;i+=1)n[i].name===t&&this.raise(s.start,"Label '"+t+"' is already declared");for(var a=this.type.isLoop?"loop":this.type===ey._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var l=this.labels[o];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=a;else break}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=s,this.finishNode(e,"LabeledStatement")},eW.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},eW.parseBlock=function(e,t,s){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(ey.braceL),e&&this.enterScope(0);this.type!==ey.braceR;){var r=this.parseStatement(null);t.body.push(r)}return s&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},eW.parseFor=function(e,t){return e.init=t,this.expect(ey.semi),e.test=this.type===ey.semi?null:this.parseExpression(),this.expect(ey.semi),e.update=this.type===ey.parenR?null:this.parseExpression(),this.expect(ey.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},eW.parseForIn=function(e,t){var s=this.type===ey._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!s||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(s?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=s?this.parseExpression():this.parseMaybeAssign(),this.expect(ey.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")},eW.parseVar=function(e,t,s,r){for(e.declarations=[],e.kind=s;;){var i=this.startNode();if(this.parseVarId(i,s),this.eat(ey.eq)?i.init=this.parseMaybeAssign(t):r||"const"!==s||this.type===ey._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"Identifier"===i.id.type||t&&(this.type===ey._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(ey.comma))break}return e},eW.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var eK=1,eQ=2;function eX(e,t){var s=e.computed,r=e.key;return!s&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}eW.parseFunction=function(e,t,s,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===ey.star&&t&eQ&&this.unexpected(),e.generator=this.eat(ey.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&eK&&(e.id=4&t&&this.type!==ey.name?null:this.parseIdent(),e.id&&!(t&eQ)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var n=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(eU(e.async,e.generator)),t&eK||(e.id=this.type===ey.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,s,!1,i),this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&eK?"FunctionDeclaration":"FunctionExpression")},eW.parseFunctionParams=function(e){this.expect(ey.parenL),e.params=this.parseBindingList(ey.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},eW.parseClass=function(e,t){this.next();var s=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),n=!1;for(i.body=[],this.expect(ey.braceL);this.type!==ey.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(i.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(n&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),n=!0):a.key&&"PrivateIdentifier"===a.key.type&&function(e,t){var s=t.key.name,r=e[s],i="true";return("MethodDefinition"===t.type&&("get"===t.kind||"set"===t.kind)&&(i=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===i||"iset"===r&&"iget"===i||"sget"===r&&"sset"===i||"sset"===r&&"sget"===i)?(e[s]="true",!1):!!r||(e[s]=i,!1)}(r,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=s,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},eW.parseClassElement=function(e){if(this.eat(ey.semi))return null;var t=this.options.ecmaVersion,s=this.startNode(),r="",i=!1,n=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(ey.braceL))return this.parseClassStaticBlock(s),s;this.isClassElementNameStart()||this.type===ey.star?o=!0:r="static"}if(s.static=o,!r&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===ey.star)&&!this.canInsertSemicolon()?n=!0:r="async"),!r&&(t>=9||!n)&&this.eat(ey.star)&&(i=!0),!r&&!n&&!i){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=l:r=l)}if(r?(s.computed=!1,s.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),s.key.name=r,this.finishNode(s.key,"Identifier")):this.parseClassElementName(s),t<13||this.type===ey.parenL||"method"!==a||i||n){var c=!s.static&&eX(s,"constructor");c&&"method"!==a&&this.raise(s.key.start,"Constructor can't have get/set modifier"),s.kind=c?"constructor":a,this.parseClassMethod(s,i,n,c&&e)}else this.parseClassField(s);return s},eW.isClassElementNameStart=function(){return this.type===ey.name||this.type===ey.privateId||this.type===ey.num||this.type===ey.string||this.type===ey.bracketL||this.type.keyword},eW.parseClassElementName=function(e){this.type===ey.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},eW.parseClassMethod=function(e,t,s,r){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),s&&this.raise(i.start,"Constructor can't be an async method")):e.static&&eX(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var n=e.value=this.parseMethod(t,s,r);return"get"===e.kind&&0!==n.params.length&&this.raiseRecoverable(n.start,"getter should have no params"),"set"===e.kind&&1!==n.params.length&&this.raiseRecoverable(n.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===n.params[0].type&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},eW.parseClassField=function(e){if(eX(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&eX(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(ey.eq)){var t=this.currentThisScope(),s=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=s}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},eW.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==ey.braceR;){var s=this.parseStatement(null);e.body.push(s)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},eW.parseClassId=function(e,t){this.type===ey.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},eW.parseClassSuper=function(e){e.superClass=this.eat(ey._extends)?this.parseExprSubscripts(null,!1):null},eW.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},eW.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,s=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=0===r?null:this.privateNameStack[r-1],n=0;n<s.length;++n){var a=s[n];eP(t,a.name)||(i?i.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},eW.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==ey.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},eW.parseExport=function(e,t){if(this.next(),this.eat(ey.star))return this.parseExportAllDeclaration(e,t);if(this.eat(ey._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==ey.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var s=0,r=e.specifiers;s<r.length;s+=1){var i=r[s];this.checkUnreserved(i.local),this.checkLocalExport(i.local),"Literal"===i.local.type&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},eW.parseExportDeclaration=function(e){return this.parseStatement(null)},eW.parseExportDefaultDeclaration=function(){if(this.type===ey._function||(e=this.isAsyncFunction())){var e,t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|eK,!1,e)}if(this.type===ey._class){var s=this.startNode();return this.parseClass(s,"nullableID")}var r=this.parseMaybeAssign();return this.semicolon(),r},eW.checkExport=function(e,t,s){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),eP(e,t)&&this.raiseRecoverable(s,"Duplicate export '"+t+"'"),e[t]=!0)},eW.checkPatternExport=function(e,t){var s=t.type;if("Identifier"===s)this.checkExport(e,t,t.start);else if("ObjectPattern"===s)for(var r=0,i=t.properties;r<i.length;r+=1){var n=i[r];this.checkPatternExport(e,n)}else if("ArrayPattern"===s)for(var a=0,o=t.elements;a<o.length;a+=1){var l=o[a];l&&this.checkPatternExport(e,l)}else"Property"===s?this.checkPatternExport(e,t.value):"AssignmentPattern"===s?this.checkPatternExport(e,t.left):"RestElement"===s&&this.checkPatternExport(e,t.argument)},eW.checkVariableExport=function(e,t){if(e)for(var s=0;s<t.length;s+=1){var r=t[s];this.checkPatternExport(e,r.id)}},eW.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},eW.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},eW.parseExportSpecifiers=function(e){var t=[],s=!0;for(this.expect(ey.braceL);!this.eat(ey.braceR);){if(s)s=!1;else if(this.expect(ey.comma),this.afterTrailingComma(ey.braceR))break;t.push(this.parseExportSpecifier(e))}return t},eW.parseImport=function(e){return this.next(),this.type===ey.string?(e.specifiers=ez,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===ey.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},eW.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportSpecifier")},eW.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},eW.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportNamespaceSpecifier")},eW.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===ey.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(ey.comma)))return e;if(this.type===ey.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(ey.braceL);!this.eat(ey.braceR);){if(t)t=!1;else if(this.expect(ey.comma),this.afterTrailingComma(ey.braceR))break;e.push(this.parseImportSpecifier())}return e},eW.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===ey.string){var e=this.parseLiteral(this.value);return eL.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},eW.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},eW.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var eJ=eM.prototype;eJ.toAssignable=function(e,t,s){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",s&&this.checkPatternErrors(s,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var n=i[r];this.toAssignable(n,t),"RestElement"===n.type&&("ArrayPattern"===n.argument.type||"ObjectPattern"===n.argument.type)&&this.raise(n.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",s&&this.checkPatternErrors(s,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,s);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else s&&this.checkPatternErrors(s,!0);return e},eJ.toAssignableList=function(e,t){for(var s=e.length,r=0;r<s;r++){var i=e[r];i&&this.toAssignable(i,t)}if(s){var n=e[s-1];6===this.options.ecmaVersion&&t&&n&&"RestElement"===n.type&&"Identifier"!==n.argument.type&&this.unexpected(n.argument.start)}return e},eJ.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},eJ.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==ey.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},eJ.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case ey.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(ey.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case ey.braceL:return this.parseObj(!0)}return this.parseIdent()},eJ.parseBindingList=function(e,t,s,r){for(var i=[],n=!0;!this.eat(e);)if(n?n=!1:this.expect(ey.comma),t&&this.type===ey.comma)i.push(null);else if(s&&this.afterTrailingComma(e))break;else if(this.type===ey.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),i.push(a),this.type===ey.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else i.push(this.parseAssignableListItem(r));return i},eJ.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},eJ.parseBindingListItem=function(e){return e},eJ.parseMaybeDefault=function(e,t,s){if(s=s||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(ey.eq))return s;var r=this.startNodeAt(e,t);return r.left=s,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},eJ.checkLValSimple=function(e,t,s){void 0===t&&(t=0);var r=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),s&&(eP(s,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),s[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,s);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}},eJ.checkLValPattern=function(e,t,s){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var r=0,i=e.properties;r<i.length;r+=1){var n=i[r];this.checkLValInnerPattern(n,t,s)}break;case"ArrayPattern":for(var a=0,o=e.elements;a<o.length;a+=1){var l=o[a];l&&this.checkLValInnerPattern(l,t,s)}break;default:this.checkLValSimple(e,t,s)}},eJ.checkLValInnerPattern=function(e,t,s){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,s);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,s);break;case"RestElement":this.checkLValPattern(e.argument,t,s);break;default:this.checkLValPattern(e,t,s)}};var eY=function(e,t,s,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!s,this.override=r,this.generator=!!i},eZ={b_stat:new eY("{",!1),b_expr:new eY("{",!0),b_tmpl:new eY("${",!1),p_stat:new eY("(",!1),p_expr:new eY("(",!0),q_tmpl:new eY("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new eY("function",!1),f_expr:new eY("function",!0),f_expr_gen:new eY("function",!0,!1,null,!0),f_gen:new eY("function",!1,!1,null,!0)},e1=eM.prototype;e1.initialContext=function(){return[eZ.b_stat]},e1.curContext=function(){return this.context[this.context.length-1]},e1.braceIsBlock=function(e){var t=this.curContext();return t===eZ.f_expr||t===eZ.f_stat||(e===ey.colon&&(t===eZ.b_stat||t===eZ.b_expr)?!t.isExpr:e===ey._return||e===ey.name&&this.exprAllowed?ex.test(this.input.slice(this.lastTokEnd,this.start)):e===ey._else||e===ey.semi||e===ey.eof||e===ey.parenR||e===ey.arrow||(e===ey.braceL?t===eZ.b_stat:e!==ey._var&&e!==ey._const&&e!==ey.name&&!this.exprAllowed))},e1.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},e1.updateContext=function(e){var t,s=this.type;s.keyword&&e===ey.dot?this.exprAllowed=!1:(t=s.updateContext)?t.call(this,e):this.exprAllowed=s.beforeExpr},e1.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},ey.parenR.updateContext=ey.braceR.updateContext=function(){if(1===this.context.length){this.exprAllowed=!0;return}var e=this.context.pop();e===eZ.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},ey.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?eZ.b_stat:eZ.b_expr),this.exprAllowed=!0},ey.dollarBraceL.updateContext=function(){this.context.push(eZ.b_tmpl),this.exprAllowed=!0},ey.parenL.updateContext=function(e){var t=e===ey._if||e===ey._for||e===ey._with||e===ey._while;this.context.push(t?eZ.p_stat:eZ.p_expr),this.exprAllowed=!0},ey.incDec.updateContext=function(){},ey._function.updateContext=ey._class.updateContext=function(e){!e.beforeExpr||e===ey._else||e===ey.semi&&this.curContext()!==eZ.p_stat||e===ey._return&&ex.test(this.input.slice(this.lastTokEnd,this.start))||(e===ey.colon||e===ey.braceL)&&this.curContext()===eZ.b_stat?this.context.push(eZ.f_stat):this.context.push(eZ.f_expr),this.exprAllowed=!1},ey.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},ey.backQuote.updateContext=function(){this.curContext()===eZ.q_tmpl?this.context.pop():this.context.push(eZ.q_tmpl),this.exprAllowed=!1},ey.star.updateContext=function(e){if(e===ey._function){var t=this.context.length-1;this.context[t]===eZ.f_expr?this.context[t]=eZ.f_expr_gen:this.context[t]=eZ.f_gen}this.exprAllowed=!0},ey.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==ey.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var e0=eM.prototype;e0.checkPropClash=function(e,t,s){if((!(this.options.ecmaVersion>=9)||"SpreadElement"!==e.type)&&(!(this.options.ecmaVersion>=6)||!e.computed&&!e.method&&!e.shorthand)){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var n=e.kind;if(this.options.ecmaVersion>=6){"__proto__"===r&&"init"===n&&(t.proto&&(s?s.doubleProto<0&&(s.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);return}var a=t[r="$"+r];a?("init"===n?this.strict&&a.init||a.get||a.set:a.init||a[n])&&this.raiseRecoverable(i.start,"Redefinition of property"):a=t[r]={init:!1,get:!1,set:!1},a[n]=!0}},e0.parseExpression=function(e,t){var s=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===ey.comma){var n=this.startNodeAt(s,r);for(n.expressions=[i];this.eat(ey.comma);)n.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(n,"SequenceExpression")}return i},e0.parseMaybeAssign=function(e,t,s){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,n=-1,a=-1;t?(i=t.parenthesizedAssign,n=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new eq,r=!0);var o=this.start,l=this.startLoc;(this.type===ey.parenL||this.type===ey.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var c=this.parseMaybeConditional(e,t);if(s&&(c=s.call(this,c,o,l)),this.type.isAssign){var p=this.startNodeAt(o,l);return p.operator=this.value,this.type===ey.eq&&(c=this.toAssignable(c,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===ey.eq?this.checkLValPattern(c):this.checkLValSimple(c),p.left=c,this.next(),p.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(p,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),n>-1&&(t.trailingComma=n),c},e0.parseMaybeConditional=function(e,t){var s=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(ey.question)){var n=this.startNodeAt(s,r);return n.test=i,n.consequent=this.parseMaybeAssign(),this.expect(ey.colon),n.alternate=this.parseMaybeAssign(e),this.finishNode(n,"ConditionalExpression")}return i},e0.parseExprOps=function(e,t){var s=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)?i:i.start===s&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,s,r,-1,e)},e0.parseExprOp=function(e,t,s,r,i){var n=this.type.binop;if(null!=n&&(!i||this.type!==ey._in)&&n>r){var a=this.type===ey.logicalOR||this.type===ey.logicalAND,o=this.type===ey.coalesce;o&&(n=ey.logicalAND.binop);var l=this.value;this.next();var c=this.start,p=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),c,p,n,i),u=this.buildBinary(t,s,e,h,l,a||o);return(a&&this.type===ey.coalesce||o&&(this.type===ey.logicalOR||this.type===ey.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(u,t,s,r,i)}return e},e0.buildBinary=function(e,t,s,r,i,n){"PrivateIdentifier"===r.type&&this.raise(r.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=s,a.operator=i,a.right=r,this.finishNode(a,n?"LogicalExpression":"BinaryExpression")},e0.parseMaybeUnary=function(e,t,s,r){var i,n=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)i=this.parseAwait(r),t=!0;else if(this.type.prefix){var o=this.startNode(),l=this.type===ey.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,l,r),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&"Identifier"===o.argument.type?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&function e(t){return"MemberExpression"===t.type&&"PrivateIdentifier"===t.property.type||"ChainExpression"===t.type&&e(t.expression)}(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,i=this.finishNode(o,l?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==ey.privateId){if(i=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(n,a);c.operator=this.value,c.prefix=!1,c.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(c,"UpdateExpression")}}else(r||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),i=this.parsePrivateIdent(),this.type!==ey._in&&this.unexpected();return!s&&this.eat(ey.starstar)?t?void this.unexpected(this.lastTokStart):this.buildBinary(n,a,i,this.parseMaybeUnary(null,!1,!1,r),"**",!1):i},e0.parseExprSubscripts=function(e,t){var s=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===i.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return i;var n=this.parseSubscripts(i,s,r,!1,t);return e&&"MemberExpression"===n.type&&(e.parenthesizedAssign>=n.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=n.start&&(e.parenthesizedBind=-1),e.trailingComma>=n.start&&(e.trailingComma=-1)),n},e0.parseSubscripts=function(e,t,s,r,i){for(var n=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,s,r,n,a,i);if(o.optional&&(a=!0),o===e||"ArrowFunctionExpression"===o.type){if(a){var l=this.startNodeAt(t,s);l.expression=o,o=this.finishNode(l,"ChainExpression")}return o}e=o}},e0.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(ey.arrow)},e0.parseSubscriptAsyncArrow=function(e,t,s,r){return this.parseArrowExpression(this.startNodeAt(e,t),s,!0,r)},e0.parseSubscript=function(e,t,s,r,i,n,a){var o=this.options.ecmaVersion>=11,l=o&&this.eat(ey.questionDot);r&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(ey.bracketL);if(c||l&&this.type!==ey.parenL&&this.type!==ey.backQuote||this.eat(ey.dot)){var p=this.startNodeAt(t,s);p.object=e,c?(p.property=this.parseExpression(),this.expect(ey.bracketR)):this.type===ey.privateId&&"Super"!==e.type?p.property=this.parsePrivateIdent():p.property=this.parseIdent("never"!==this.options.allowReserved),p.computed=!!c,o&&(p.optional=l),e=this.finishNode(p,"MemberExpression")}else if(!r&&this.eat(ey.parenL)){var h=new eq,u=this.yieldPos,f=this.awaitPos,d=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(ey.parenR,this.options.ecmaVersion>=8,!1,h);if(i&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=u,this.awaitPos=f,this.awaitIdentPos=d,this.parseSubscriptAsyncArrow(t,s,m,a);this.checkExpressionErrors(h,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=f||this.awaitPos,this.awaitIdentPos=d||this.awaitIdentPos;var g=this.startNodeAt(t,s);g.callee=e,g.arguments=m,o&&(g.optional=l),e=this.finishNode(g,"CallExpression")}else if(this.type===ey.backQuote){(l||n)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(t,s);y.tag=e,y.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(y,"TaggedTemplateExpression")}return e},e0.parseExprAtom=function(e,t,s){this.type===ey.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case ey._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==ey.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==ey.dot&&this.type!==ey.bracketL&&this.type!==ey.parenL&&this.unexpected(),this.finishNode(r,"Super");case ey._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case ey.name:var n=this.start,a=this.startLoc,o=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(ey._function))return this.overrideContext(eZ.f_expr),this.parseFunction(this.startNodeAt(n,a),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(ey.arrow))return this.parseArrowExpression(this.startNodeAt(n,a),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===ey.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(ey.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,a),[l],!0,t)}return l;case ey.regexp:var c=this.value;return(r=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},r;case ey.num:case ey.string:return this.parseLiteral(this.value);case ey._null:case ey._true:case ey._false:return(r=this.startNode()).value=this.type===ey._null?null:this.type===ey._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case ey.parenL:var p=this.start,h=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),h;case ey.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(ey.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case ey.braceL:return this.overrideContext(eZ.b_expr),this.parseObj(!1,e);case ey._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case ey._class:return this.parseClass(this.startNode(),!1);case ey._new:return this.parseNew();case ey.backQuote:return this.parseTemplate();case ey._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(s);return this.unexpected();default:return this.parseExprAtomDefault()}},e0.parseExprAtomDefault=function(){this.unexpected()},e0.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===ey.parenL&&!e)return this.parseDynamicImport(t);if(this.type===ey.dot){var s=this.startNodeAt(t.start,t.loc&&t.loc.start);return s.name="import",t.meta=this.finishNode(s,"Identifier"),this.parseImportMeta(t)}this.unexpected()},e0.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(ey.parenR)){var t=this.start;this.eat(ey.comma)&&this.eat(ey.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},e0.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},e0.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},e0.parseParenExpression=function(){this.expect(ey.parenL);var e=this.parseExpression();return this.expect(ey.parenR),e},e0.shouldParseArrow=function(e){return!this.canInsertSemicolon()},e0.parseParenAndDistinguishExpression=function(e,t){var s,r=this.start,i=this.startLoc,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,l=this.startLoc,c=[],p=!0,h=!1,u=new eq,f=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==ey.parenR;){if(p?p=!1:this.expect(ey.comma),n&&this.afterTrailingComma(ey.parenR,!0)){h=!0;break}if(this.type===ey.ellipsis){a=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===ey.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,u,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(ey.parenR),e&&this.shouldParseArrow(c)&&this.eat(ey.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=d,this.parseParenArrowList(r,i,c,t);(!c.length||h)&&this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(u,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=d||this.awaitPos,c.length>1?((s=this.startNodeAt(o,l)).expressions=c,this.finishNodeAt(s,"SequenceExpression",m,g)):s=c[0]}else s=this.parseParenExpression();if(!this.options.preserveParens)return s;var y=this.startNodeAt(r,i);return y.expression=s,this.finishNode(y,"ParenthesizedExpression")},e0.parseParenItem=function(e){return e},e0.parseParenArrowList=function(e,t,s,r){return this.parseArrowExpression(this.startNodeAt(e,t),s,!1,r)};var e2=[];e0.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===ey.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var s=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),s&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),this.eat(ey.parenL)?e.arguments=this.parseExprList(ey.parenR,this.options.ecmaVersion>=8,!1):e.arguments=e2,this.finishNode(e,"NewExpression")},e0.parseTemplateElement=function(e){var t=e.isTagged,s=this.startNode();return this.type===ey.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),s.value={raw:this.value,cooked:null}):s.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),s.tail=this.type===ey.backQuote,this.finishNode(s,"TemplateElement")},e0.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var s=this.startNode();this.next(),s.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(s.quasis=[r];!r.tail;)this.type===ey.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(ey.dollarBraceL),s.expressions.push(this.parseExpression()),this.expect(ey.braceR),s.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(s,"TemplateLiteral")},e0.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===ey.name||this.type===ey.num||this.type===ey.string||this.type===ey.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===ey.star)&&!ex.test(this.input.slice(this.lastTokEnd,this.start))},e0.parseObj=function(e,t){var s=this.startNode(),r=!0,i={};for(s.properties=[],this.next();!this.eat(ey.braceR);){if(r)r=!1;else if(this.expect(ey.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(ey.braceR))break;var n=this.parseProperty(e,t);e||this.checkPropClash(n,i,t),s.properties.push(n)}return this.finishNode(s,e?"ObjectPattern":"ObjectExpression")},e0.parseProperty=function(e,t){var s,r,i,n,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(ey.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===ey.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,t),this.type===ey.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(i=this.start,n=this.startLoc),e||(s=this.eat(ey.star)));var o=this.containsEsc;return this.parsePropertyName(a),!e&&!o&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(a)?(r=!0,s=this.options.ecmaVersion>=9&&this.eat(ey.star),this.parsePropertyName(a)):r=!1,this.parsePropertyValue(a,e,s,r,i,n,t,o),this.finishNode(a,"Property")},e0.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t="get"===e.kind?0:1;if(e.value.params.length!==t){var s=e.value.start;"get"===e.kind?this.raiseRecoverable(s,"getter should have no params"):this.raiseRecoverable(s,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},e0.parsePropertyValue=function(e,t,s,r,i,n,a,o){(s||r)&&this.type===ey.colon&&this.unexpected(),this.eat(ey.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===ey.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(s,r)):t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===ey.comma||this.type===ey.braceR||this.type===ey.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((s||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,n,this.copyNode(e.key)):this.type===ey.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,n,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected():((s||r)&&this.unexpected(),this.parseGetterSetter(e))},e0.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(ey.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(ey.bracketR),e.key;e.computed=!1}return e.key=this.type===ey.num||this.type===ey.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},e0.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},e0.parseMethod=function(e,t,s){var r=this.startNode(),i=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|eU(t,r.generator)|(s?128:0)),this.expect(ey.parenL),r.params=this.parseBindingList(ey.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")},e0.parseArrowExpression=function(e,t,s,r){var i=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|eU(s,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!s),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},e0.parseFunctionBody=function(e,t,s,r){var i=t&&this.type!==ey.braceL,n=this.strict,a=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!n||o)&&(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!n&&!a&&!t&&!s&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,a&&!n),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},e0.isSimpleParamList=function(e){for(var t=0;t<e.length;t+=1)if("Identifier"!==e[t].type)return!1;return!0},e0.checkParams=function(e,t){for(var s=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var n=i[r];this.checkLValInnerPattern(n,1,t?null:s)}},e0.parseExprList=function(e,t,s,r){for(var i=[],n=!0;!this.eat(e);){if(n)n=!1;else if(this.expect(ey.comma),t&&this.afterTrailingComma(e))break;var a=void 0;s&&this.type===ey.comma?a=null:this.type===ey.ellipsis?(a=this.parseSpread(r),r&&this.type===ey.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):a=this.parseMaybeAssign(!1,r),i.push(a)}return i},e0.checkUnreserved=function(e){var t=e.start,s=e.end,r=e.name;this.inGenerator&&"yield"===r&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===r&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&("arguments"===r||"await"===r)&&this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),(!(this.options.ecmaVersion<6)||-1===this.input.slice(t,s).indexOf("\\"))&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))},e0.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},e0.parseIdentNode=function(){var e=this.startNode();return this.type===ey.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,("class"===e.name||"function"===e.name)&&(this.lastTokEnd!==this.lastTokStart+1||46!==this.input.charCodeAt(this.lastTokStart))&&this.context.pop(),this.type=ey.name):this.unexpected(),e},e0.parsePrivateIdent=function(){var e=this.startNode();return this.type===ey.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},e0.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===ey.semi||this.canInsertSemicolon()||this.type!==ey.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(ey.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},e0.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var e3=eM.prototype;e3.raise=function(e,t){var s=eO(this.input,e),r=SyntaxError(t+=" ("+s.line+":"+s.column+")");throw r.pos=e,r.loc=s,r.raisedAt=this.pos,r},e3.raiseRecoverable=e3.raise,e3.curPosition=function(){if(this.options.locations)return new eN(this.curLine,this.pos-this.lineStart)};var e4=eM.prototype,e6=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};e4.enterScope=function(e){this.scopeStack.push(new e6(e))},e4.exitScope=function(){this.scopeStack.pop()},e4.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},e4.declareName=function(e,t,s){var r=!1;if(2===t){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var n=this.currentScope();r=this.treatFunctionsAsVar?n.lexical.indexOf(e)>-1:n.lexical.indexOf(e)>-1||n.var.indexOf(e)>-1,n.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(e)>-1&&!(32&o.flags&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){r=!0;break}if(o.var.push(e),this.inModule&&1&o.flags&&delete this.undefinedExports[e],259&o.flags)break}r&&this.raiseRecoverable(s,"Identifier '"+e+"' has already been declared")},e4.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},e4.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},e4.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},e4.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags&&!(16&t.flags))return t}};var e5=function(e,t,s){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new ej(e,s)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},e9=eM.prototype;function e8(e,t,s,r){return e.type=t,e.end=s,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=s),e}e9.startNode=function(){return new e5(this,this.start,this.startLoc)},e9.startNodeAt=function(e,t){return new e5(this,e,t)},e9.finishNode=function(e,t){return e8.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},e9.finishNodeAt=function(e,t,s,r){return e8.call(this,e,t,s,r)},e9.copyNode=function(e){var t=new e5(this,e.start,this.startLoc);for(var s in e)t[s]=e[s];return t};for(var e7="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",te=e7+" Extended_Pictographic",tt=te+" EBase EComp EMod EPres ExtPict",ts={9:e7,10:te,11:te,12:tt,13:tt,14:tt},tr={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},ti="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",tn="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ta=tn+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",to=ta+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",tl=to+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",tc=tl+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",tp={9:tn,10:ta,11:to,12:tl,13:tc,14:tc+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"},th={},tu=0,tf=[9,10,11,12,13,14];tu<tf.length;tu+=1)!function(e){var t=th[e]={binary:eR(ts[e]+" "+ti),binaryOfStrings:eR(tr[e]),nonBinary:{General_Category:eR(ti),Script:eR(tp[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}(tf[tu]);var td=eM.prototype,tm=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=th[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function tg(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function ty(e){return e>=65&&e<=90||e>=97&&e<=122}function tx(e){return ty(e)||95===e}function tv(e){return e>=48&&e<=57}function tk(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function tb(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}function tw(e){return e>=48&&e<=55}tm.prototype.reset=function(e,t,s){var r=-1!==s.indexOf("v"),i=-1!==s.indexOf("u");this.start=0|e,this.source=t+"",this.flags=s,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},tm.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},tm.prototype.at=function(e,t){void 0===t&&(t=!1);var s=this.source,r=s.length;if(e>=r)return -1;var i=s.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var n=s.charCodeAt(e+1);return n>=56320&&n<=57343?(i<<10)+n-56613888:i},tm.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var s=this.source,r=s.length;if(e>=r)return r;var i,n=s.charCodeAt(e);return!(t||this.switchU)||n<=55295||n>=57344||e+1>=r||(i=s.charCodeAt(e+1))<56320||i>57343?e+1:e+2},tm.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},tm.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},tm.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},tm.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},tm.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var s=this.pos,r=0;r<e.length;r+=1){var i=e[r],n=this.at(s,t);if(-1===n||n!==i)return!1;s=this.nextIndex(s,t)}return this.pos=s,!0},td.validateRegExpFlags=function(e){for(var t=e.validFlags,s=e.flags,r=!1,i=!1,n=0;n<s.length;n++){var a=s.charAt(n);-1===t.indexOf(a)&&this.raise(e.start,"Invalid regular expression flag"),s.indexOf(a,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===a&&(r=!0),"v"===a&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,"Invalid regular expression flag")},td.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},td.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,s=e.backReferenceNames;t<s.length;t+=1){var r=s[t];-1===e.groupNames.indexOf(r)&&e.raise("Invalid named capture referenced")}},td.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},td.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},td.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?!!this.regexp_eatAtom(e):!!this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},td.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var s=!1;if(this.options.ecmaVersion>=9&&(s=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!s,!0}return e.pos=t,!1},td.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},td.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},td.regexp_eatBracedQuantifier=function(e,t){var s=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return -1!==i&&i<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=s}return!1},td.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},td.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},td.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},td.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},td.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},td.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},td.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!tg(t)&&(e.lastIntValue=t,e.advance(),!0)},td.regexp_eatPatternCharacters=function(e){for(var t=e.pos,s=0;-1!==(s=e.current())&&!tg(s);)e.advance();return e.pos!==t},td.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return -1!==t&&36!==t&&(!(t>=40)||!(t<=43))&&46!==t&&63!==t&&91!==t&&94!==t&&124!==t&&(e.advance(),!0)},td.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}},td.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},td.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=eT(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=eT(e.lastIntValue);return!0}return!1},td.regexp_eatRegExpIdentifierStart=function(e){var t,s=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return(e.advance(r),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),ec(t=i,!0)||36===t||95===t)?(e.lastIntValue=i,!0):(e.pos=s,!1)},td.regexp_eatRegExpIdentifierPart=function(e){var t,s=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return(e.advance(r),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),ep(t=i,!0)||36===t||95===t||8204===t||8205===t)?(e.lastIntValue=i,!0):(e.pos=s,!1)},td.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},td.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var s=e.lastIntValue;if(e.switchU)return s>e.maxBackReference&&(e.maxBackReference=s),!0;if(s<=e.numCapturingParens)return!0;e.pos=t}return!1},td.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},td.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},td.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},td.regexp_eatZero=function(e){return!(48!==e.current()||tv(e.lookahead()))&&(e.lastIntValue=0,e.advance(),!0)},td.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},td.regexp_eatControlLetter=function(e){var t=e.current();return!!ty(t)&&(e.lastIntValue=t%32,e.advance(),!0)},td.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var s=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i,n=e.lastIntValue;if(r&&n>=55296&&n<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(n-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=n}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(i=e.lastIntValue)>=0&&i<=1114111)return!0;r&&e.raise("Invalid unicode escape"),e.pos=s}return!1},td.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return 99!==t&&(!e.switchN||107!==t)&&(e.lastIntValue=t,e.advance(),!0)},td.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1},td.regexp_eatCharacterClassEscape=function(e){var t,s=e.current();if(100===s||68===s||115===s||83===s||119===s||87===s)return e.lastIntValue=-1,e.advance(),1;var r=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((r=80===s)||112===s)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(t=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return r&&2===t&&e.raise("Invalid property name"),t;e.raise("Invalid property name")}return 0},td.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var s=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,s,r),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return 0},td.regexp_validateUnicodePropertyNameAndValue=function(e,t,s){eP(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(s)||e.raise("Invalid property value")},td.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise("Invalid property name")},td.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";tx(t=e.current());)e.lastStringValue+=eT(t),e.advance();return""!==e.lastStringValue},td.regexp_eatUnicodePropertyValue=function(e){var t,s=0;for(e.lastStringValue="";tx(t=s=e.current())||tv(t);)e.lastStringValue+=eT(s),e.advance();return""!==e.lastStringValue},td.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},td.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),s=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&2===s&&e.raise("Negated character class may contain strings"),!0}return!1},td.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},td.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var s=e.lastIntValue;e.switchU&&(-1===t||-1===s)&&e.raise("Invalid character class"),-1!==t&&-1!==s&&t>s&&e.raise("Range out of order in character class")}}},td.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var s=e.current();(99===s||tw(s))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},td.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},td.regexp_classSetExpression=function(e){var t,s=1;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){2===t&&(s=2);for(var r=e.pos;e.eatChars([38,38]);){if(38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))){2!==t&&(s=1);continue}e.raise("Invalid character in character class")}if(r!==e.pos)return s;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return s}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return s;2===t&&(s=2)}},td.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return -1!==s&&-1!==r&&s>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},td.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},td.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var s=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return s&&2===r&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},td.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var s=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return s}else e.raise("Invalid escape");e.pos=t}return null},td.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},td.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},td.regexp_eatClassSetCharacter=function(e){var t,s=e.pos;if(e.eat(92))return!!(this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=s,!1));var r=e.current();return!(r<0||r===e.lookahead()&&(33===r||r>=35&&r<=38||r>=42&&r<=44||46===r||r>=58&&r<=64||94===r||96===r||126===r)||40===(t=r)||41===t||45===t||47===t||t>=91&&t<=93||t>=123&&t<=125)&&(e.advance(),e.lastIntValue=r,!0)},td.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!(33===t||35===t||37===t||38===t||44===t||45===t||t>=58&&t<=62||64===t||96===t||126===t)&&(e.lastIntValue=t,e.advance(),!0)},td.regexp_eatClassControlLetter=function(e){var t=e.current();return(!!tv(t)||95===t)&&(e.lastIntValue=t%32,e.advance(),!0)},td.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},td.regexp_eatDecimalDigits=function(e){var t=e.pos,s=0;for(e.lastIntValue=0;tv(s=e.current());)e.lastIntValue=10*e.lastIntValue+(s-48),e.advance();return e.pos!==t},td.regexp_eatHexDigits=function(e){var t=e.pos,s=0;for(e.lastIntValue=0;tk(s=e.current());)e.lastIntValue=16*e.lastIntValue+tb(s),e.advance();return e.pos!==t},td.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var s=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*s+e.lastIntValue:e.lastIntValue=8*t+s}else e.lastIntValue=t;return!0}return!1},td.regexp_eatOctalDigit=function(e){var t=e.current();return tw(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},td.regexp_eatFixedHexDigits=function(e,t){var s=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!tk(i))return e.pos=s,!1;e.lastIntValue=16*e.lastIntValue+tb(i),e.advance()}return!0};var t_=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new ej(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},tE=eM.prototype;function tS(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}tE.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new t_(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},tE.getToken=function(){return this.next(),new t_(this)},"undefined"!=typeof Symbol&&(tE[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===ey.eof,value:t}}}}),tE.nextToken=function(){var e=this.curContext();return(e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)?this.finishToken(ey.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},tE.readToken=function(e){return ec(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},tE.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},tE.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,s=this.input.indexOf("*/",this.pos+=2);if(-1===s&&this.raise(this.pos-2,"Unterminated comment"),this.pos=s+2,this.options.locations)for(var r=void 0,i=t;(r=eb(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,s),t,this.pos,e,this.curPosition())},tE.skipLineComment=function(e){for(var t=this.pos,s=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!ek(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,s,this.curPosition())},tE.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++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(e>8&&e<14||e>=5760&&ew.test(String.fromCharCode(e)))++this.pos;else break e}}},tE.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var s=this.type;this.type=e,this.value=t,this.updateContext(s)},tE.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(ey.ellipsis)):(++this.pos,this.finishToken(ey.dot))},tE.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(ey.assign,2):this.finishOp(ey.slash,1)},tE.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),s=1,r=42===e?ey.star:ey.modulo;return(this.options.ecmaVersion>=7&&42===e&&42===t&&(++s,r=ey.starstar,t=this.input.charCodeAt(this.pos+2)),61===t)?this.finishOp(ey.assign,s+1):this.finishOp(r,s)},tE.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(ey.assign,3):this.finishOp(124===e?ey.logicalOR:ey.logicalAND,2):61===t?this.finishOp(ey.assign,2):this.finishOp(124===e?ey.bitwiseOR:ey.bitwiseAND,1)},tE.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(ey.assign,2):this.finishOp(ey.bitwiseXOR,1)},tE.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45===t&&!this.inModule&&62===this.input.charCodeAt(this.pos+2)&&(0===this.lastTokEnd||ex.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(ey.incDec,2):61===t?this.finishOp(ey.assign,2):this.finishOp(ey.plusMin,1)},tE.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),s=1;return t===e?(s=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+s))?this.finishOp(ey.assign,s+1):this.finishOp(ey.bitShift,s):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(s=2),this.finishOp(ey.relational,s)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},tE.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(ey.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(ey.arrow)):this.finishOp(61===e?ey.eq:ey.prefix,1)},tE.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var s=this.input.charCodeAt(this.pos+2);if(s<48||s>57)return this.finishOp(ey.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(ey.assign,3):this.finishOp(ey.coalesce,2)}return this.finishOp(ey.question,1)},tE.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,ec(t=this.fullCharCodeAtPos(),!0)||92===t))return this.finishToken(ey.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+eT(t)+"'")},tE.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(ey.parenL);case 41:return++this.pos,this.finishToken(ey.parenR);case 59:return++this.pos,this.finishToken(ey.semi);case 44:return++this.pos,this.finishToken(ey.comma);case 91:return++this.pos,this.finishToken(ey.bracketL);case 93:return++this.pos,this.finishToken(ey.bracketR);case 123:return++this.pos,this.finishToken(ey.braceL);case 125:return++this.pos,this.finishToken(ey.braceR);case 58:return++this.pos,this.finishToken(ey.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(ey.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(ey.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+eT(e)+"'")},tE.finishOp=function(e,t){var s=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,s)},tE.readRegexp=function(){for(var e,t,s=this.pos;;){this.pos>=this.input.length&&this.raise(s,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(ex.test(r)&&this.raise(s,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(s,this.pos);++this.pos;var n=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(n);var o=this.regexpState||(this.regexpState=new tm(this));o.reset(s,i,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=new RegExp(i,a)}catch(e){}return this.finishToken(ey.regexp,{pattern:i,flags:a,value:l})},tE.readInt=function(e,t,s){for(var r=this.options.ecmaVersion>=12&&void 0===t,i=s&&48===this.input.charCodeAt(this.pos),n=this.pos,a=0,o=0,l=0,c=null==t?1/0:t;l<c;++l,++this.pos){var p=this.input.charCodeAt(this.pos),h=void 0;if(r&&95===p){i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=p;continue}if((h=p>=97?p-97+10:p>=65?p-65+10:p>=48&&p<=57?p-48:1/0)>=e)break;o=p,a=a*e+h}return(r&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||null!=t&&this.pos-n!==t)?null:a},tE.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var s=this.readInt(e);return null==s&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(s=tS(this.input.slice(t,this.pos)),++this.pos):ec(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(ey.num,s)},tE.readNumber=function(e){var t,s=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(s,"Invalid number");var r=this.pos-s>=2&&48===this.input.charCodeAt(s);r&&this.strict&&this.raise(s,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&110===i){var n=tS(this.input.slice(s,this.pos));return++this.pos,ec(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(ey.num,n)}r&&/[89]/.test(this.input.slice(s,this.pos))&&(r=!1),46!==i||r||(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),69!==i&&101!==i||r||((43===(i=this.input.charCodeAt(++this.pos))||45===i)&&++this.pos,null===this.readInt(10)&&this.raise(s,"Invalid number")),ec(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=(t=this.input.slice(s,this.pos),r?parseInt(t,8):parseFloat(t.replace(/_/g,"")));return this.finishToken(ey.num,a)},tE.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},tE.readString=function(e){for(var t="",s=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(s,this.pos)+this.readEscapedChar(!1),s=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(ek(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(s,this.pos++),this.finishToken(ey.string,t)};var tC={};tE.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===tC)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},tE.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw tC;this.raise(e,t)},tE.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var s=this.input.charCodeAt(this.pos);if(96===s||36===s&&123===this.input.charCodeAt(this.pos+1)){if(this.pos===this.start&&(this.type===ey.template||this.type===ey.invalidTemplate)){if(36===s)return this.pos+=2,this.finishToken(ey.dollarBraceL);return++this.pos,this.finishToken(ey.backQuote)}return e+=this.input.slice(t,this.pos),this.finishToken(ey.template,e)}if(92===s)e+=this.input.slice(t,this.pos)+this.readEscapedChar(!0),t=this.pos;else if(ek(s)){switch(e+=this.input.slice(t,this.pos),++this.pos,s){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(s)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},tE.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(ey.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},tE.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return eT(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var s=this.pos-1;this.invalidStringToken(s,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(i=parseInt(r=r.slice(0,-1),8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),("0"!==r||56===t||57===t)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}if(ek(t))return"";return String.fromCharCode(t)}},tE.readHexChar=function(e){var t=this.pos,s=this.readInt(16,e);return null===s&&this.invalidStringToken(t,"Bad character escape sequence"),s},tE.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,s=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(ep(i,r))this.pos+=i<=65535?1:2;else if(92===i){this.containsEsc=!0,e+=this.input.slice(s,this.pos);var n=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?ec:ep)(a,r)||this.invalidStringToken(n,"Invalid Unicode escape"),e+=eT(a),s=this.pos}else break;t=!1}return e+this.input.slice(s,this.pos)},tE.readWord=function(){var e=this.readWord1(),t=ey.name;return this.keywords.test(e)&&(t=em[e]),this.finishToken(t,e)},eM.acorn={Parser:eM,version:"8.11.3",defaultOptions:eV,Position:eN,SourceLocation:ej,getLineInfo:eO,Node:e5,TokenType:eh,tokTypes:ey,keywordTypes:em,TokContext:eY,tokContexts:eZ,isIdentifierChar:ep,isIdentifierStart:ec,Token:t_,isNewLine:ek,lineBreak:ex,lineBreakG:ev,nonASCIIwhitespace:ew};const tP=/^\.?\//;var tI=function(e,...t){let s=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(s){let t=e.replace(tP,"");s=function(e="",t){return e.endsWith("/")?e:e+"/"}(s)+t}else s=e;return s};const tA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,tR=new Set(S.builtinModules);function tT(e){return e.replace(/\\/g,"/")}const tL={}.hasOwnProperty,tN=/^([A-Z][a-z\d]*)+$/,tj=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),tO={};function tV(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}const tD=new Map;function tU(e,t,s){return tD.set(e,t),function(...t){let r=Error.stackTraceLimit;tM()&&(Error.stackTraceLimit=0);let i=new s;tM()&&(Error.stackTraceLimit=r);let n=function(e,t,s){let r=tD.get(e);if(C(void 0!==r,"expected `message` to be found"),"function"==typeof r)return C(r.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${r.length}).`),Reflect.apply(r,s,t);let i=/%[dfijoOs]/g,n=0;for(;null!==i.exec(r);)n++;return(C(n===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${n}).`),0===t.length)?r:(t.unshift(r),Reflect.apply(I.format,null,t))}(e,t,i);return Object.defineProperties(i,{message:{value:n,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),tF(i),i.code=e,i}}function tM(){try{if(P.startupSnapshot.isBuildingSnapshot())return!1}catch{}let e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return void 0===e?Object.isExtensible(Error):tL.call(e,"writable")&&void 0!==e.writable?e.writable:void 0!==e.set}tO.ERR_INVALID_ARG_TYPE=tU("ERR_INVALID_ARG_TYPE",(e,t,s)=>{C("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let r="The ";if(e.endsWith(" argument"))r+=`${e} `;else{let t=e.includes(".")?"property":"argument";r+=`"${e}" ${t} `}r+="must be ";let i=[],n=[],a=[];for(let e of t)C("string"==typeof e,"All expected entries have to be of type string"),tj.has(e)?i.push(e.toLowerCase()):null===tN.exec(e)?(C("object"!==e,'The value "object" should be written as "Object"'),a.push(e)):n.push(e);if(n.length>0){let e=i.indexOf("object");-1!==e&&(i.slice(e,1),n.push("Object"))}return i.length>0&&(r+=`${i.length>1?"one of type":"of type"} ${tV(i,"or")}`,(n.length>0||a.length>0)&&(r+=" or ")),n.length>0&&(r+=`an instance of ${tV(n,"or")}`,a.length>0&&(r+=" or ")),a.length>0&&(a.length>1?r+=`one of ${tV(a,"or")}`:(a[0].toLowerCase()!==a[0]&&(r+="an "),r+=`${a[0]}`)),r+=`. Received ${function(e){if(null==e)return String(e);if("function"==typeof e&&e.name)return`function ${e.name}`;if("object"==typeof e)return e.constructor&&e.constructor.name?`an instance of ${e.constructor.name}`:`${I.inspect(e,{depth:-1})}`;let t=I.inspect(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}(s)}`},TypeError),tO.ERR_INVALID_MODULE_SPECIFIER=tU("ERR_INVALID_MODULE_SPECIFIER",(e,t,s)=>`Invalid module "${e}" ${t}${s?` imported from ${s}`:""}`,TypeError),tO.ERR_INVALID_PACKAGE_CONFIG=tU("ERR_INVALID_PACKAGE_CONFIG",(e,t,s)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${s?`. ${s}`:""}`,Error),tO.ERR_INVALID_PACKAGE_TARGET=tU("ERR_INVALID_PACKAGE_TARGET",(e,t,s,r=!1,i)=>{let n="string"==typeof s&&!r&&s.length>0&&!s.startsWith("./");return"."===t?(C(!1===r),`Invalid "exports" main target ${JSON.stringify(s)} defined in the package config ${e}package.json${i?` imported from ${i}`:""}${n?'; targets must start with "./"':""}`):`Invalid "${r?"imports":"exports"}" target ${JSON.stringify(s)} defined for '${t}' in the package config ${e}package.json${i?` imported from ${i}`:""}${n?'; targets must start with "./"':""}`},Error),tO.ERR_MODULE_NOT_FOUND=tU("ERR_MODULE_NOT_FOUND",(e,t,s=!1)=>`Cannot find ${s?"module":"package"} '${e}' imported from ${t}`,Error),tO.ERR_NETWORK_IMPORT_DISALLOWED=tU("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error),tO.ERR_PACKAGE_IMPORT_NOT_DEFINED=tU("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e,t,s)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${s}`,TypeError),tO.ERR_PACKAGE_PATH_NOT_EXPORTED=tU("ERR_PACKAGE_PATH_NOT_EXPORTED",(e,t,s)=>"."===t?`No "exports" main defined in ${e}package.json${s?` imported from ${s}`:""}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${s?` imported from ${s}`:""}`,Error),tO.ERR_UNSUPPORTED_DIR_IMPORT=tU("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error),tO.ERR_UNSUPPORTED_RESOLVE_REQUEST=tU("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError),tO.ERR_UNKNOWN_FILE_EXTENSION=tU("ERR_UNKNOWN_FILE_EXTENSION",(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError),tO.ERR_INVALID_ARG_VALUE=tU("ERR_INVALID_ARG_VALUE",(e,t,s="is invalid")=>{let r=I.inspect(t);r.length>128&&(r=`${r.slice(0,128)}...`);let i=e.includes(".")?"property":"argument";return`The ${i} '${e}' ${s}. Received ${r}`},TypeError);const tF=function(e){let t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}(function(t){let s=tM();return s&&(e=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(t),s&&(Error.stackTraceLimit=e),t}),tB={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:t$}=tO,tq=new Map;function tW(e,{base:t,specifier:s}){let r;let n=tq.get(e);if(n)return n;try{r=i.readFileSync(a.toNamespacedPath(e),"utf8")}catch(e){if("ENOENT"!==e.code)throw e}let l={exists:!1,pjsonPath:e,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(void 0!==r){let i;try{i=JSON.parse(r)}catch(i){let r=new t$(e,(t?`"${s}" from `:"")+o.fileURLToPath(t||s),i.message);throw r.cause=i,r}l.exists=!0,tB.call(i,"name")&&"string"==typeof i.name&&(l.name=i.name),tB.call(i,"main")&&"string"==typeof i.main&&(l.main=i.main),tB.call(i,"exports")&&(l.exports=i.exports),tB.call(i,"imports")&&(l.imports=i.imports),tB.call(i,"type")&&("commonjs"===i.type||"module"===i.type)&&(l.type=i.type)}return tq.set(e,l),l}function tG(e){let t=new URL("package.json",e);for(;!t.pathname.endsWith("node_modules/package.json");){let s=tW(o.fileURLToPath(t),{specifier:e});if(s.exists)return s;let r=t;if((t=new URL("../package.json",t)).pathname===r.pathname)break}return{pjsonPath:o.fileURLToPath(t),exists:!1,type:"none"}}const{ERR_UNKNOWN_FILE_EXTENSION:tH}=tO,tz={}.hasOwnProperty,tK={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"},tQ={__proto__:null,"data:":function(e){let{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return t&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(t)?"module":"application/json"===t?"json":null},"file:":function(e,t,s){let r=function(e){let t=e.pathname,s=t.length;for(;s--;){let e=t.codePointAt(s);if(47===e)break;if(46===e)return 47===t.codePointAt(s-1)?"":t.slice(s)}return""}(e);if(".js"===r){let t=tG(e).type;return"none"!==t?t:"commonjs"}if(""===r){let t=tG(e).type;return"none"===t||"commonjs"===t?"commonjs":"module"}let i=tK[r];if(i)return i;if(!s)throw new tH(r,o.fileURLToPath(e))},"http:":tX,"https:":tX,"node:":()=>"builtin"};function tX(){}const tJ=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:tY,ERR_INVALID_MODULE_SPECIFIER:tZ,ERR_INVALID_PACKAGE_CONFIG:t1,ERR_INVALID_PACKAGE_TARGET:t0,ERR_MODULE_NOT_FOUND:t2,ERR_PACKAGE_IMPORT_NOT_DEFINED:t3,ERR_PACKAGE_PATH_NOT_EXPORTED:t4,ERR_UNSUPPORTED_DIR_IMPORT:t6,ERR_UNSUPPORTED_RESOLVE_REQUEST:t5}=tO,t9={}.hasOwnProperty,t8=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,t7=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,se=/^\.|%|\\/,st=/\*/g,ss=/%2f|%5c/i,sr=new Set,si=/[/\\]{2}/;function sn(e,t,s,r,i,a,l){if(n.noDeprecation)return;let c=o.fileURLToPath(r),p=null!==si.exec(l?e:t);n.emitWarning(`Use of deprecated ${p?"double slash":"leading or trailing slash matching"} resolving "${e}" for module request "${t}" ${t===s?"":`matched to "${s}" `}in the "${i?"imports":"exports"}" field module resolution of the package at ${c}${a?` imported from ${o.fileURLToPath(a)}`:""}.`,"DeprecationWarning","DEP0166")}function sa(e,t,s,r){if(n.noDeprecation||"module"!==function(e,t){let s=e.protocol;return tz.call(tQ,s)&&tQ[s](e,t,!0)||null}(e,{parentURL:s.href}))return;let i=o.fileURLToPath(e.href),l=o.fileURLToPath(new o.URL(".",t)),c=o.fileURLToPath(s);r?a.resolve(l,r)!==i&&n.emitWarning(`Package ${l} has a "main" field set to "${r}", excluding the full filename and extension to the resolved file at "${i.slice(l.length)}", imported from ${c}.
2
+ Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):n.emitWarning(`No "main" or "exports" field defined in the package.json for ${l} resolving the main entry point "${i.slice(l.length)}", imported from ${c}.
3
+ Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function so(e){try{return i.statSync(e)}catch{}}function sl(e){let t=i.statSync(e,{throwIfNoEntry:!1}),s=t?t.isFile():void 0;return null!=s&&s}function sc(e,t,s){return new t4(o.fileURLToPath(new o.URL(".",t)),e,s&&o.fileURLToPath(s))}function sp(e,t,s,r,i){return t="object"==typeof t&&null!==t?JSON.stringify(t,null,""):`${t}`,new t0(o.fileURLToPath(new o.URL(".",s)),e,t,r,i&&o.fileURLToPath(i))}function sh(e,t,s,r,i,n,a,l,c){if("string"==typeof t)return function(e,t,s,r,i,n,a,l,c){if(""!==t&&!n&&"/"!==e[e.length-1])throw sp(s,e,r,a,i);if(!e.startsWith("./")){if(a&&!e.startsWith("../")&&!e.startsWith("/")){let s=!1;try{new o.URL(e),s=!0}catch{}if(!s)return sd(n?tJ.call(st,e,()=>t):e+t,r,c)}throw sp(s,e,r,a,i)}if(null!==t8.exec(e.slice(2))){if(null===t7.exec(e.slice(2))){if(!l){let o=n?s.replace("*",()=>t):s+t;sn(n?tJ.call(st,e,()=>t):e,o,s,r,a,i,!0)}}else throw sp(s,e,r,a,i)}let p=new o.URL(e,r),h=p.pathname,u=new o.URL(".",r).pathname;if(!h.startsWith(u))throw sp(s,e,r,a,i);if(""===t)return p;if(null!==t8.exec(t)){let c=n?s.replace("*",()=>t):s+t;null===t7.exec(t)?l||sn(n?tJ.call(st,e,()=>t):e,c,s,r,a,i,!1):function(e,t,s,r,i){throw new tZ(e,`request is not a valid match in pattern "${t}" for the "${r?"imports":"exports"}" resolution of ${o.fileURLToPath(s)}`,i&&o.fileURLToPath(i))}(c,s,r,a,i)}return n?new o.URL(tJ.call(st,p.href,()=>t)):new o.URL(t,p)}(t,s,r,e,i,n,a,l,c);if(Array.isArray(t)){let o;if(0===t.length)return null;let p=-1;for(;++p<t.length;){let h;let u=t[p];try{h=sh(e,u,s,r,i,n,a,l,c)}catch(e){if(o=e,"ERR_INVALID_PACKAGE_TARGET"===e.code)continue;throw e}if(void 0!==h){if(null===h){o=null;continue}return h}}if(null==o)return null;throw o}if("object"==typeof t&&null!==t){let p=Object.getOwnPropertyNames(t),h=-1;for(;++h<p.length;)if(function(e){let t=Number(e);return`${t}`===e&&t>=0&&t<4294967295}(p[h]))throw new t1(o.fileURLToPath(e),i,'"exports" cannot contain numeric property keys.');for(h=-1;++h<p.length;){let o=p[h];if("default"===o||c&&c.has(o)){let p=sh(e,t[o],s,r,i,n,a,l,c);if(void 0===p)continue;return p}}return null}if(null===t)return null;throw sp(r,t,e,a,i)}function su(e,t,s,r,i){let a=s.exports;if(function(e,t,s){if("string"==typeof e||Array.isArray(e))return!0;if("object"!=typeof e||null===e)return!1;let r=Object.getOwnPropertyNames(e),i=!1,n=0,a=-1;for(;++a<r.length;){let e=r[a],l=""===e||"."!==e[0];if(0==n++)i=l;else if(i!==l)throw new t1(o.fileURLToPath(t),s,"\"exports\" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.")}return i}(a,e,r)&&(a={".":a}),t9.call(a,t)&&!t.includes("*")&&!t.endsWith("/")){let s=sh(e,a[t],"",t,r,!1,!1,!1,i);if(null==s)throw sc(t,e,r);return s}let l="",c="",p=Object.getOwnPropertyNames(a),h=-1;for(;++h<p.length;){let s=p[h],i=s.indexOf("*");if(-1!==i&&t.startsWith(s.slice(0,i))){t.endsWith("/")&&function(e,t,s){if(n.noDeprecation)return;let r=o.fileURLToPath(t);sr.has(r+"|"+e)||(sr.add(r+"|"+e),n.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${r}${s?` imported from ${o.fileURLToPath(s)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}(t,e,r);let a=s.slice(i+1);t.length>=s.length&&t.endsWith(a)&&1===sf(l,s)&&s.lastIndexOf("*")===i&&(l=s,c=t.slice(i,t.length-a.length))}}if(l){let s=sh(e,a[l],c,l,r,!0,!1,t.endsWith("/"),i);if(null==s)throw sc(t,e,r);return s}throw sc(t,e,r)}function sf(e,t){let s=e.indexOf("*"),r=t.indexOf("*"),i=-1===s?e.length:s+1,n=-1===r?t.length:r+1;return i>n?-1:n>i||-1===s?1:-1===r||e.length>t.length?-1:t.length>e.length?1:0}function sd(e,t,s){let r;if(S.builtinModules.includes(e))return new o.URL("node:"+e);let{packageName:i,packageSubpath:n,isScoped:a}=function(e,t){let s=e.indexOf("/"),r=!0,i=!1;"@"===e[0]&&(i=!0,-1===s||0===e.length?r=!1:s=e.indexOf("/",s+1));let n=-1===s?e:e.slice(0,s);if(null!==se.exec(n)&&(r=!1),!r)throw new tZ(e,"is not a valid package name",o.fileURLToPath(t));return{packageName:n,packageSubpath:"."+(-1===s?"":e.slice(s)),isScoped:i}}(e,t),l=tG(t);if(l.exists){let e=o.pathToFileURL(l.pjsonPath);if(l.name===i&&void 0!==l.exports&&null!==l.exports)return su(e,n,l,t,s)}let c=new o.URL("./node_modules/"+i+"/package.json",t),p=o.fileURLToPath(c);do{let l=so(p.slice(0,-13));if(!l||!l.isDirectory()){r=p,c=new o.URL((a?"../../../../node_modules/":"../../../node_modules/")+i+"/package.json",c),p=o.fileURLToPath(c);continue}let h=tW(p,{base:t,specifier:e});if(void 0!==h.exports&&null!==h.exports)return su(c,n,h,t,s);if("."===n)return function(e,t,s){let r;if(void 0!==t.main){if(sl(r=new o.URL(t.main,e)))return r;let i=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`],n=-1;for(;++n<i.length&&!sl(r=new o.URL(i[n],e));)r=void 0;if(r)return sa(r,e,s,t.main),r}let i=["./index.js","./index.json","./index.node"],n=-1;for(;++n<i.length&&!sl(r=new o.URL(i[n],e));)r=void 0;if(r)return sa(r,e,s,t.main),r;throw new t2(o.fileURLToPath(new o.URL(".",e)),o.fileURLToPath(s))}(c,h,t);return new o.URL(n,c)}while(p.length!==r.length);throw new t2(i,o.fileURLToPath(t),!1)}function sm(e){return"string"!=typeof e||e.startsWith("file://")?tT(o.fileURLToPath(e)):tT(e)}function sg(e){return o.pathToFileURL(sm(e)).toString()}const sy=/* @__PURE__ */new Set(["node","import"]),sx=[".mjs",".cjs",".js",".json"],sv=/* @__PURE__ */new Set(["ERR_MODULE_NOT_FOUND","ERR_UNSUPPORTED_DIR_IMPORT","MODULE_NOT_FOUND","ERR_PACKAGE_PATH_NOT_EXPORTED"]);function sk(e,t,s){try{return function(e,t,s,r){var n;let l;let c=t.protocol;if(n=e,""!==n&&("/"===n[0]||"."===n[0]&&(1===n.length||"/"===n[1]||"."===n[1]&&(2===n.length||"/"===n[2]))))try{l=new o.URL(e,t)}catch(r){let s=new t5(e,t);throw s.cause=r,s}else if("file:"===c&&"#"===e[0])l=function(e,t,s){var r;let i;if("#"===e||e.startsWith("#/")||e.endsWith("/"))throw new tZ(e,"is not a valid internal imports specifier name",o.fileURLToPath(t));let n=tG(t);if(n.exists){i=o.pathToFileURL(n.pjsonPath);let r=n.imports;if(r){if(t9.call(r,e)&&!e.includes("*")){let n=sh(i,r[e],"",e,t,!1,!0,!1,s);if(null!=n)return n}else{let n="",a="",o=Object.getOwnPropertyNames(r),l=-1;for(;++l<o.length;){let t=o[l],s=t.indexOf("*");if(-1!==s&&e.startsWith(t.slice(0,-1))){let r=t.slice(s+1);e.length>=t.length&&e.endsWith(r)&&1===sf(n,t)&&t.lastIndexOf("*")===s&&(n=t,a=e.slice(s,e.length-r.length))}}if(n){let e=sh(i,r[n],a,n,t,!0,!0,!1,s);if(null!=e)return e}}}}throw r=i,new t3(e,r&&o.fileURLToPath(new o.URL(".",r)),o.fileURLToPath(t))}(e,t,s);else try{l=new o.URL(e)}catch(r){if(("data:"===c||"http:"===c||"https:"===c)&&!S.builtinModules.includes(e)){let s=new t5(e,t);throw s.cause=r,s}l=sd(e,t,s)}return(C(void 0!==l,"expected to be defined"),"file:"!==l.protocol)?l:function(e,t,s){let r;if(null!==ss.exec(e.pathname))throw new tZ(e.pathname,'must not include encoded "/" or "\\" characters',o.fileURLToPath(t));try{r=o.fileURLToPath(e)}catch(s){throw Object.defineProperty(s,"input",{value:String(e)}),Object.defineProperty(s,"module",{value:String(t)}),s}let n=so(r.endsWith("/")?r.slice(-1):r);if(n&&n.isDirectory()){let s=new t6(r,o.fileURLToPath(t));throw s.url=String(e),s}if(!n||!n.isFile()){let s=new t2(r||e.pathname,t&&o.fileURLToPath(t),!0);throw s.url=String(e),s}{let t=i.realpathSync(r),{search:s,hash:n}=e;(e=o.pathToFileURL(t+(r.endsWith(a.sep)?"/":""))).search=s,e.hash=n}return e}(l,t)}(e,t,s)}catch(e){if(!sv.has(e?.code))throw e}}function sb(e,t={}){"auto"!==t.platform&&t.platform||(t.platform="win32"===n.platform?"win32":"posix");let s=sm(function(e,t={}){var s;let r;if("string"!=typeof e){if(e instanceof URL)e=sm(e);else throw TypeError("input must be a `string` or `URL`")}if(/(node|data|http|https):/.test(e))return e;if(tR.has(e))return"node:"+e;if(e.startsWith("file://")&&(e=sm(e)),s=e,tA.test(s))try{if(i.statSync(e).isFile())return sg(e)}catch(e){if(e?.code!=="ENOENT")throw e}let n=t.conditions?new Set(t.conditions):sy,a=(Array.isArray(t.url)?t.url:[t.url]).filter(Boolean).map(e=>{var t;return new URL(("string"!=typeof(t=e.toString())&&(t=t.toString()),/(node|data|http|https|file):/.test(t))?t:tR.has(t)?"node:"+t:"file://"+encodeURI(tT(t)))});0===a.length&&a.push(new URL(sg(process.cwd())));let o=[...a];for(let e of a)"file:"===e.protocol&&o.push(new URL("./",e),new URL(tI(e.pathname,"_index.js"),e),new URL("node_modules",e));for(let s of o){if(r=sk(e,s,n))break;for(let i of["","/index"]){for(let a of t.extensions||sx)if(r=sk(e+i+a,s,n))break;if(r)break}if(r)break}if(!r){let t=Error(`Cannot find module ${e} imported from ${o.join(", ")}`);throw t.code="ERR_MODULE_NOT_FOUND",t}return sg(r)}(e,{url:t.paths}));return"win32"===t.platform?a.win32.normalize(s):s}function sw(e,t={}){return!!function(e,t={}){try{return sb(`${e}/package.json`,t)}catch{}try{return sb(e,t)}catch(e){return"MODULE_NOT_FOUND"!==e.code&&"ERR_MODULE_NOT_FOUND"!==e.code&&console.error(e),!1}}(e,t)}const s_=async e=>{if(!T.isCI&&n.stdout.isTTY&&!sw(e)){let{confirm:t}=await Promise.resolve().then(function(){return require("./vendor-DekA__rQ.cjs")}).then(function(e){return e.i});await t({message:`Package is required for this config: ${e}. Do you want to install it?`})&&await Promise.resolve().then(function(){return require("./vendor-DekA__rQ.cjs")}).then(function(e){return e.a}).then(t=>t.installPackage(e,{dev:!0}))}return t(e)};function sE(e,t=!1){return"boolean"==typeof e?e:e?.enable??t}function sS(e,...t){if("boolean"==typeof e||void 0===e)return;let{enable:s,...r}=e;return t.length?R.defu(r,...t):r}function sC(e){sw(e)&&console.error(A.yellow(`[eslint-config-sukka] "${e}" is deprecated and you should uninstall it`))}const sP=async(e,...t)=>{let s=[];sC("@eslint-sukka/js"),sC("@eslint-sukka/json"),sC("@eslint-sukka/ts"),sC("@eslint-sukka/legacy");let r=sE(e?.ts,sw("typescript"));s.push(D(e?.ignores),U()),sE(e?.js,!0)&&s.push($(sS(e?.js)),M({typescript:r}),F()),sE(e?.json,!0)&&s.push(G()),r&&s.push(J(sS(e?.ts)));let i=sw("next"),n=sE(e?.react,sw("react")||i);if(n){if(r){let t=await s_("@eslint-sukka/react"),r=sw("@remix-run/node")||sw("@remix-run/react")||sw("@remix-run/serve")||sw("@remix-run/dev");s.push(t.react(sS(e?.react,{nextjs:i,remix:r,reactRefresh:{allowConstantExport:sw("vite")},reactCompiler:sw("babel-plugin-react-compiler")||sw("react-compiler-webpack")?"error":"off"}))),sE(e?.next,i)&&s.push(t.next()),sE(e?.stylex,sw("@stylexjs/stylex")||sw("stylex-webpack"))&&s.push(t.stylex(sS(e?.stylex)))}else console.warn("[eslint-config-sukka] React preset will not be enabled when TypeScript is missing.")}return sE(e?.node,sw("@types/node")||sw("@types/bun"))&&s.push((await s_("@eslint-sukka/node")).node({...sS(e?.node),hasTypeScript:r,hasReact:n})),sE(e?.legacy)&&s.push(Y(sS(e?.legacy))),s.push(t),s.flat()};Object.defineProperty(exports,"constants",{enumerable:!0,get:function(){return r.constants}}),exports.ignores=D,exports.sukka=sP;