From 1c9ee6c5a7712207c31ba35f6a8015eb8804dbbd Mon Sep 17 00:00:00 2001 From: Ika Date: Mon, 27 Nov 2017 16:32:20 +0800 Subject: [PATCH 1/7] chore(website): ignore `` before passing into Docusaurus (#3326) prettier-ignore -->` before passing into Docusaurus --- website/siteConfig.js | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/website/siteConfig.js b/website/siteConfig.js index 5bcdf46f..be50e8de 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -47,7 +47,25 @@ const siteConfig = { algolia: { apiKey: process.env.ALGOLIA_PRETTIER_API_KEY, indexName: "prettier" - } + }, + markdownPlugins: [ + // ignore `` before passing into Docusaurus to avoid mis-parsing (#3322) + md => { + md.block.ruler.before( + "htmlblock", + "prettierignore", + (state, startLine) => { + const pos = state.bMarks[startLine]; + const max = state.eMarks[startLine]; + if (//.test(state.src.slice(pos, max))) { + state.line += 1; + return true; + } + return false; + } + ); + } + ] }; module.exports = siteConfig; From 9b4ecec18320931e1a8ddd44f1e368cf426f0040 Mon Sep 17 00:00:00 2001 From: Ika Date: Mon, 27 Nov 2017 16:37:52 +0800 Subject: [PATCH 2/7] fix(markdown): preserve non-breakable whitespaces (#3327) --- src/util.js | 3 +- .../__snapshots__/jsfmt.spec.js.snap | 39 +++++++++++++++++++ tests/markdown_paragraph/whitespace.md | 7 ++++ .../__snapshots__/jsfmt.spec.js.snap | 2 +- 4 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 tests/markdown_paragraph/whitespace.md diff --git a/src/util.js b/src/util.js index 069c2d59..a4ec8f02 100644 --- a/src/util.js +++ b/src/util.js @@ -683,8 +683,7 @@ function splitText(text) { text .replace(new RegExp(`(${cjkPattern})\n(${cjkPattern})`, "g"), "$1$2") - // `\s` but exclude full-width whitspace (`\u3000`) - .split(/([^\S\u3000]+)/) + .split(/([ \t\n]+)/) .forEach((token, index, tokens) => { // whitespace if (index % 2 === 1) { diff --git a/tests/markdown_paragraph/__snapshots__/jsfmt.spec.js.snap b/tests/markdown_paragraph/__snapshots__/jsfmt.spec.js.snap index baa312bc..1307e9f0 100644 --- a/tests/markdown_paragraph/__snapshots__/jsfmt.spec.js.snap +++ b/tests/markdown_paragraph/__snapshots__/jsfmt.spec.js.snap @@ -185,3 +185,42 @@ abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc * [valid-expect](/packages/eslint-plugin-jest/docs/rules/valid-expect.md) - ensure expect is called correctly. `; + +exports[`whitespace.md 1`] = ` + + +keep these words together keep these words together keep these words together keep these words together + + + +keep these words together keep these words together keep these words together keep these words together +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +keep these words together keep these words together keep these words together keep these words together + + + +keep these words together keep these words together keep these words together +keep these words together + +`; + +exports[`whitespace.md 2`] = ` + + +keep these words together keep these words together keep these words together keep these words together + + + +keep these words together keep these words together keep these words together keep these words together +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +keep these words together keep these words together keep these words together keep these words together + + + +keep these words together keep these words together keep these words together keep these words together + +`; diff --git a/tests/markdown_paragraph/whitespace.md b/tests/markdown_paragraph/whitespace.md new file mode 100644 index 00000000..6177e037 --- /dev/null +++ b/tests/markdown_paragraph/whitespace.md @@ -0,0 +1,7 @@ + + +keep these words together keep these words together keep these words together keep these words together + + + +keep these words together keep these words together keep these words together keep these words together diff --git a/tests/markdown_spec/__snapshots__/jsfmt.spec.js.snap b/tests/markdown_spec/__snapshots__/jsfmt.spec.js.snap index 8236588a..01d94deb 100644 --- a/tests/markdown_spec/__snapshots__/jsfmt.spec.js.snap +++ b/tests/markdown_spec/__snapshots__/jsfmt.spec.js.snap @@ -3635,7 +3635,7 @@ a*"foo"* exports[`example-328.md 1`] = ` * a * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -_ a _ +_ a _ `; From 2dd76c6a95971e39b3c1442c826054d1e72714ea Mon Sep 17 00:00:00 2001 From: Lucas Azzola Date: Mon, 27 Nov 2017 23:10:33 +1100 Subject: [PATCH 3/7] Print parens around type assertions for decorators (#3329) --- src/fast-path.js | 6 ++++++ .../__snapshots__/jsfmt.spec.js.snap | 19 +++++++++++++++++++ .../decorator-type-assertion.ts | 9 +++++++++ 3 files changed, 34 insertions(+) create mode 100644 tests/typescript_decorators/decorator-type-assertion.ts diff --git a/src/fast-path.js b/src/fast-path.js index be5bc1ef..7e346df6 100644 --- a/src/fast-path.js +++ b/src/fast-path.js @@ -322,6 +322,12 @@ FastPath.prototype.needsParens = function(options) { (node.type === "TSTypeAssertionExpression" || node.type === "TSAsExpression") ); + case "Decorator": + return ( + parent.expression === node && + (node.type === "TSTypeAssertionExpression" || + node.type === "TSAsExpression") + ); case "BinaryExpression": case "LogicalExpression": { diff --git a/tests/typescript_decorators/__snapshots__/jsfmt.spec.js.snap b/tests/typescript_decorators/__snapshots__/jsfmt.spec.js.snap index 226b949e..c715c505 100644 --- a/tests/typescript_decorators/__snapshots__/jsfmt.spec.js.snap +++ b/tests/typescript_decorators/__snapshots__/jsfmt.spec.js.snap @@ -1,5 +1,24 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`decorator-type-assertion.ts 1`] = ` +@(bind as ClassDecorator) +class Decorated { + +} + +@(bind) +class Decorated { + +} +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +@(bind as ClassDecorator) +class Decorated {} + +@(bind) +class Decorated {} + +`; + exports[`decorators.js 1`] = ` export class TestTextFileService { constructor( diff --git a/tests/typescript_decorators/decorator-type-assertion.ts b/tests/typescript_decorators/decorator-type-assertion.ts new file mode 100644 index 00000000..8700b159 --- /dev/null +++ b/tests/typescript_decorators/decorator-type-assertion.ts @@ -0,0 +1,9 @@ +@(bind as ClassDecorator) +class Decorated { + +} + +@(bind) +class Decorated { + +} From 56951a71b4d80fd520bf274440b2dfe722d4a670 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Mon, 27 Nov 2017 13:28:03 +0100 Subject: [PATCH 4/7] Don't lowercase element names and attribute names in selectors (#3317) * Don't lowercase element names and attribute names in selectors https://www.w3.org/TR/css3-selectors/#casesens > All Selectors syntax is case-insensitive within the ASCII range (i.e. > [a-z] and [A-Z] are equivalent), except for parts that are not under the > control of Selectors. The case sensitivity of document language element > names, attribute names, and attribute values in selectors depends on the > document language. For example, in HTML, element names are > case-insensitive, but in XML, they are case-sensitive. Fixes #3304. * Fix number normalization in selector interpolation --- src/clean-ast.js | 7 +-- src/printer-postcss.js | 9 +-- .../css_case/__snapshots__/jsfmt.spec.js.snap | 58 +++++++++++-------- tests/css_case/case.less | 20 ++++--- tests/css_case/case.scss | 8 ++- .../__snapshots__/jsfmt.spec.js.snap | 2 +- 6 files changed, 54 insertions(+), 50 deletions(-) diff --git a/src/clean-ast.js b/src/clean-ast.js index 44419e66..8608b46b 100644 --- a/src/clean-ast.js +++ b/src/clean-ast.js @@ -88,7 +88,6 @@ function massageAST(ast, parent) { (ast.type === "value-word" && ast.isColor && ast.isHex) || ast.type === "media-feature" || ast.type === "selector-root-invalid" || - ast.type === "selector-tag" || ast.type === "selector-pseudo" ) { newObj.value = newObj.value.toLowerCase(); @@ -99,9 +98,6 @@ function massageAST(ast, parent) { if (ast.type === "css-atrule" || ast.type === "css-import") { newObj.name = newObj.name.toLowerCase(); } - if (ast.type === "selector-attribute") { - newObj.attribute = newObj.attribute.toLowerCase(); - } if (ast.type === "value-number") { newObj.unit = newObj.unit.toLowerCase(); } @@ -139,7 +135,8 @@ function massageAST(ast, parent) { ast.type === "value-number" || ast.type === "selector-root-invalid" || ast.type === "selector-class" || - ast.type === "selector-combinator") && + ast.type === "selector-combinator" || + ast.type === "selector-tag") && newObj.value ) { newObj.value = newObj.value.replace( diff --git a/src/printer-postcss.js b/src/printer-postcss.js index f29b5e36..e5e7ffa7 100644 --- a/src/printer-postcss.js +++ b/src/printer-postcss.js @@ -222,12 +222,7 @@ function genericPrint(path, options, print) { return adjustStrings(n.value, options); } case "selector-tag": { - const parent = path.getParentNode(); - const index = parent.nodes.indexOf(n); - const previous = index > 0 ? parent.nodes[index - 1] : null; - return previous && previous.type === "selector-nesting" - ? n.value - : maybeToLowerCase(n.value); + return adjustNumbers(n.value); } case "selector-id": { return concat(["#", n.value]); @@ -238,7 +233,7 @@ function genericPrint(path, options, print) { case "selector-attribute": { return concat([ "[", - maybeToLowerCase(n.attribute), + n.attribute, n.operator ? n.operator : "", n.value ? quoteAttributeValue(adjustStrings(n.value, options), options) diff --git a/tests/css_case/__snapshots__/jsfmt.spec.js.snap b/tests/css_case/__snapshots__/jsfmt.spec.js.snap index b6fcf684..4435c485 100644 --- a/tests/css_case/__snapshots__/jsfmt.spec.js.snap +++ b/tests/css_case/__snapshots__/jsfmt.spec.js.snap @@ -3,7 +3,8 @@ exports[`case.less 1`] = ` // Convention in this test file: // - The case should be preserved for things prefixed with "Keep". -// - The case should always be preserved for function names and property keywords. +// - The case should always be preserved for element names and attribute names +// in selectors, as well as function names and property keywords. // - Other things should mostly be lowercase. // - The \`/*:*/\` comments are just to bust the \`isLikelySCSS\` check. @@ -11,6 +12,7 @@ exports[`case.less 1`] = ` HTML#KeepId.KeepClass, a[HREF=KeepAttrValue]:HOVER::FIRST-letter, +svg[viewBox] linearGradient, :Not(:NTH-child(2N+1)) { COLOR: #AAbbCC; BACKGROUND-image: URL("KeepString"); @@ -49,7 +51,7 @@ a[HREF=KeepAttrValue]:HOVER::FIRST-letter, @KeepTopLevelVar: val; $KeepScssVar: val; -.Keep(@Keep: 12e03PX) WHEN (@Keep=Case) /*:*/ { +.Keep(@Keep: 12e03PX) when (@Keep=Case) /*:*/ { @KeepVar: KeepName; /*:*/ @{KeepInterpolationVar}: val; $KeepScssVar: val; @@ -59,7 +61,7 @@ $KeepScssVar: val; prop: val; } - &Keep & NoKeep { + &Keep & Element { prop: val; } @@ -71,14 +73,14 @@ $KeepScssVar: val; .Keep; .Keep(); .Keep(4PX)!IMPORTANT; - .Keep() WHEN (@Keep=Keep); - .Keep() WHEN (@Keep=12PX); - .Keep() WHEN (@Keep=Keep12PX); + .Keep() when (@Keep=Keep); + .Keep() when (@Keep=12PX); + .Keep() when (@Keep=Keep12PX); } -.Keep (@Keep) WHEN (lightness(@Keep) >= 12PX) AND (@Keep > 0) {} -.Keep (@Keep) WHEN (lightness(@Keep) != '12PX') AND (@Keep != "12PX") {} -.Keep (@Keep) WHEN (lightness(@Keep) >= Keep12PX) AND (@Keep > @Keep12E5) {} +.Keep (@Keep) when (lightness(@Keep) >= 12PX) and (@Keep > 0) {} +.Keep (@Keep) when (lightness(@Keep) != '12PX') and (@Keep != "12PX") {} +.Keep (@Keep) when (lightness(@Keep) >= Keep12PX) and (@Keep > @Keep12E5) {} .Keep(@Keep: 12PX; @Keep: @Keep12PX; ...) /*:*/ {} .Keep(@Keep: '12PX'; @Keep: "12PX"; ...) /*:*/ {} @@ -89,14 +91,16 @@ $KeepScssVar: val; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Convention in this test file: // - The case should be preserved for things prefixed with "Keep". -// - The case should always be preserved for function names and property keywords. +// - The case should always be preserved for element names and attribute names +// in selectors, as well as function names and property keywords. // - Other things should mostly be lowercase. // - The \`/*:*/\` comments are just to bust the \`isLikelySCSS\` check. @import Keep; -html#KeepId.KeepClass, -a[href="KeepAttrValue"]:hover::first-letter, +HTML#KeepId.KeepClass, +a[HREF="KeepAttrValue"]:hover::first-letter, +svg[viewBox] linearGradient, :not(:nth-child(2n + 1)) { color: #aabbcc; background-image: URL("KeepString"); @@ -108,7 +112,7 @@ a[href="KeepAttrValue"]:hover::first-letter, } @keyframes KeepAnimationName { - from { + FROM { prop: val; } @@ -116,7 +120,7 @@ a[href="KeepAttrValue"]:hover::first-letter, prop: val; } - to { + TO { prop: val; } } @@ -146,7 +150,7 @@ $KeepScssVar: val; prop: val; } - &Keep & nokeep { + &Keep & Element { prop: val; } @@ -186,13 +190,15 @@ $KeepScssVar: val; exports[`case.scss 1`] = ` // Convention in this test file: // - The case should be preserved for things prefixed with "Keep". -// - The case should always be preserved for function names and property keywords. +// - The case should always be preserved for element names and attribute names +// in selectors, as well as function names and property keywords. // - Other things should mostly be lowercase. @IMPORT Keep; HTML#KeepId.KeepClass, a[HREF=KeepAttrValue]:HOVER::FIRST-letter, +svg[viewBox] linearGradient, :Not(:NTH-child(2N+1)) { COLOR: #AAbbCC; BACKGROUND-image: URL("KeepString"); @@ -209,7 +215,7 @@ a[HREF=KeepAttrValue]:HOVER::FIRST-letter, } #{$KeepInterpolationVar}, - #{$Keep + 15PX}, + #{$Keep + 15PX + Keep15PX + '15PX' + "15PX"}, #{$Keep + $Keep15PX} { prop: val; } @@ -245,7 +251,7 @@ $KeepTopLevelVar: val; prop: val; } - &Keep & NoKeep { + &Keep & Element { prop: val; } @@ -274,13 +280,15 @@ $KeepTopLevelVar: val; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Convention in this test file: // - The case should be preserved for things prefixed with "Keep". -// - The case should always be preserved for function names and property keywords. +// - The case should always be preserved for element names and attribute names +// in selectors, as well as function names and property keywords. // - Other things should mostly be lowercase. @import Keep; -html#KeepId.KeepClass, -a[href="KeepAttrValue"]:hover::first-letter, +HTML#KeepId.KeepClass, +a[HREF="KeepAttrValue"]:hover::first-letter, +svg[viewBox] linearGradient, :not(:nth-child(2n + 1)) { color: #aabbcc; background-image: URL("KeepString"); @@ -292,17 +300,17 @@ a[href="KeepAttrValue"]:hover::first-letter, } @keyframes KeepAnimationName { - from { + FROM { prop: val; } #{$KeepInterpolationVar}, - #{$Keep + 15px}, + #{$Keep + 15px + Keep15PX + "15PX" + "15PX"}, #{$Keep + $Keep15PX} { prop: val; } - to { + TO { prop: val; } } @@ -334,7 +342,7 @@ $KeepTopLevelVar: val; prop: val; } - &Keep & nokeep { + &Keep & Element { prop: val; } diff --git a/tests/css_case/case.less b/tests/css_case/case.less index 0cf13986..28ccd5ce 100644 --- a/tests/css_case/case.less +++ b/tests/css_case/case.less @@ -1,6 +1,7 @@ // Convention in this test file: // - The case should be preserved for things prefixed with "Keep". -// - The case should always be preserved for function names and property keywords. +// - The case should always be preserved for element names and attribute names +// in selectors, as well as function names and property keywords. // - Other things should mostly be lowercase. // - The `/*:*/` comments are just to bust the `isLikelySCSS` check. @@ -8,6 +9,7 @@ HTML#KeepId.KeepClass, a[HREF=KeepAttrValue]:HOVER::FIRST-letter, +svg[viewBox] linearGradient, :Not(:NTH-child(2N+1)) { COLOR: #AAbbCC; BACKGROUND-image: URL("KeepString"); @@ -46,7 +48,7 @@ a[HREF=KeepAttrValue]:HOVER::FIRST-letter, @KeepTopLevelVar: val; $KeepScssVar: val; -.Keep(@Keep: 12e03PX) WHEN (@Keep=Case) /*:*/ { +.Keep(@Keep: 12e03PX) when (@Keep=Case) /*:*/ { @KeepVar: KeepName; /*:*/ @{KeepInterpolationVar}: val; $KeepScssVar: val; @@ -56,7 +58,7 @@ $KeepScssVar: val; prop: val; } - &Keep & NoKeep { + &Keep & Element { prop: val; } @@ -68,14 +70,14 @@ $KeepScssVar: val; .Keep; .Keep(); .Keep(4PX)!IMPORTANT; - .Keep() WHEN (@Keep=Keep); - .Keep() WHEN (@Keep=12PX); - .Keep() WHEN (@Keep=Keep12PX); + .Keep() when (@Keep=Keep); + .Keep() when (@Keep=12PX); + .Keep() when (@Keep=Keep12PX); } -.Keep (@Keep) WHEN (lightness(@Keep) >= 12PX) AND (@Keep > 0) {} -.Keep (@Keep) WHEN (lightness(@Keep) != '12PX') AND (@Keep != "12PX") {} -.Keep (@Keep) WHEN (lightness(@Keep) >= Keep12PX) AND (@Keep > @Keep12E5) {} +.Keep (@Keep) when (lightness(@Keep) >= 12PX) and (@Keep > 0) {} +.Keep (@Keep) when (lightness(@Keep) != '12PX') and (@Keep != "12PX") {} +.Keep (@Keep) when (lightness(@Keep) >= Keep12PX) and (@Keep > @Keep12E5) {} .Keep(@Keep: 12PX; @Keep: @Keep12PX; ...) /*:*/ {} .Keep(@Keep: '12PX'; @Keep: "12PX"; ...) /*:*/ {} diff --git a/tests/css_case/case.scss b/tests/css_case/case.scss index 3cfa0915..ea8a7733 100644 --- a/tests/css_case/case.scss +++ b/tests/css_case/case.scss @@ -1,12 +1,14 @@ // Convention in this test file: // - The case should be preserved for things prefixed with "Keep". -// - The case should always be preserved for function names and property keywords. +// - The case should always be preserved for element names and attribute names +// in selectors, as well as function names and property keywords. // - Other things should mostly be lowercase. @IMPORT Keep; HTML#KeepId.KeepClass, a[HREF=KeepAttrValue]:HOVER::FIRST-letter, +svg[viewBox] linearGradient, :Not(:NTH-child(2N+1)) { COLOR: #AAbbCC; BACKGROUND-image: URL("KeepString"); @@ -23,7 +25,7 @@ a[HREF=KeepAttrValue]:HOVER::FIRST-letter, } #{$KeepInterpolationVar}, - #{$Keep + 15PX}, + #{$Keep + 15PX + Keep15PX + '15PX' + "15PX"}, #{$Keep + $Keep15PX} { prop: val; } @@ -59,7 +61,7 @@ $KeepTopLevelVar: val; prop: val; } - &Keep & NoKeep { + &Keep & Element { prop: val; } diff --git a/tests/css_combinator/__snapshots__/jsfmt.spec.js.snap b/tests/css_combinator/__snapshots__/jsfmt.spec.js.snap index 7597d5a0..8d7826ac 100644 --- a/tests/css_combinator/__snapshots__/jsfmt.spec.js.snap +++ b/tests/css_combinator/__snapshots__/jsfmt.spec.js.snap @@ -13,7 +13,7 @@ exports[`combinator.css 1`] = ` .x .y {} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --option/root .public/section ~ .public/section:before { +-Option/root .public/section ~ .public/section:before { } .x .y { From f514d1e93f7c467393d02506b4de0edd99d8622a Mon Sep 17 00:00:00 2001 From: Lucas Duailibe Date: Mon, 27 Nov 2017 19:27:25 -0300 Subject: [PATCH 5/7] Docs build script (#3332) * Remove artifacts from repo * Remove docs stuff from build script * Add new docs build script * Add 'third-party' shim in playground worker * Build from src if it's a PR * Add command to package.json and remove old stuff from travis --- .gitignore | 1 + .travis.yml | 7 - package.json | 1 + scripts/build/build-docs.js | 81 + scripts/build/build.js | 45 +- scripts/build/rollup.docs.config.js | 2 +- website/static/lib/index.js | 2124 -- website/static/lib/parser-babylon.js | 2166 -- website/static/lib/parser-flow.js | 6 - website/static/lib/parser-graphql.js | 18 - website/static/lib/parser-markdown.js | 236 - website/static/lib/parser-parse5.js | 9 - website/static/lib/parser-postcss.js | 28602 ---------------------- website/static/lib/parser-typescript.js | 2241 -- website/static/lib/sw-toolbox.js | 16 - website/static/worker.js | 3 + 16 files changed, 88 insertions(+), 35470 deletions(-) create mode 100644 scripts/build/build-docs.js delete mode 100644 website/static/lib/index.js delete mode 100644 website/static/lib/parser-babylon.js delete mode 100644 website/static/lib/parser-flow.js delete mode 100644 website/static/lib/parser-graphql.js delete mode 100644 website/static/lib/parser-markdown.js delete mode 100644 website/static/lib/parser-parse5.js delete mode 100644 website/static/lib/parser-postcss.js delete mode 100644 website/static/lib/parser-typescript.js delete mode 100644 website/static/lib/sw-toolbox.js diff --git a/.gitignore b/.gitignore index d59a09f6..d5d61155 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ /website/node_modules /website/build /website/i18n +/website/static/lib .DS_Store coverage .idea diff --git a/.travis.yml b/.travis.yml index 54625a78..de266037 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,10 +23,3 @@ script: - yarn lint-docs - AST_COMPARE=1 yarn test -- --runInBand - if [ "${NODE_ENV}" = "development" ]; then yarn codecov; fi -deploy: - provider: script - script: website/deploy.sh - skip_cleanup: true - on: - branch: master - node: stable diff --git a/package.json b/package.json index 69ca9cce..2869d4e6 100644 --- a/package.json +++ b/package.json @@ -88,6 +88,7 @@ "lint": "cross-env EFF_NO_LINK_RULES=true eslint . --format node_modules/eslint-friendly-formatter", "lint-docs": "prettylint {.,docs,website}/*.md", "build": "node ./scripts/build/build.js", + "build-docs": "node ./scripts/build/build-docs.js", "check-deps": "node ./scripts/check-deps.js" } } diff --git a/scripts/build/build-docs.js b/scripts/build/build-docs.js new file mode 100644 index 00000000..7db55799 --- /dev/null +++ b/scripts/build/build-docs.js @@ -0,0 +1,81 @@ +#!/usr/bin/env node + +"use strict"; + +const path = require("path"); +const shell = require("shelljs"); + +const rootDir = path.join(__dirname, "..", ".."); +const docs = path.join(rootDir, "website/static/lib"); +const parsers = [ + "babylon", + "flow", + "typescript", + "graphql", + "postcss", + "parse5", + "markdown" +]; + +function pipe(string) { + return new shell.ShellString(string); +} + +const isPullRequest = process.env.PULL_REQUEST === "true"; +const prettierPath = isPullRequest ? "dist" : "node_modules/prettier/"; + +// --- Build prettier for PR --- + +if (isPullRequest) { + const pkg = require("../../package.json"); + pkg.version = `preview-${process.env.REVIEW_ID}`; + pipe(JSON.stringify(pkg, null, 2)).to("package.json"); + shell.exec("node scripts/build/build.js"); +} + +// --- Docs --- + +shell.mkdir("-p", docs); + +shell.echo("Bundling docs index..."); +shell.cp(`${prettierPath}/index.js`, `${docs}/index.js`); +shell.exec( + `node_modules/babel-cli/bin/babel.js ${docs}/index.js --out-file ${ + docs + }/index.js --presets=es2015` +); + +shell.echo("Bundling docs babylon..."); +shell.exec( + `rollup -c scripts/build/rollup.docs.config.js --environment filepath:parser-babylon.js -i ${ + prettierPath + }/parser-babylon.js` +); +shell.exec( + `node_modules/babel-cli/bin/babel.js ${docs}/parser-babylon.js --out-file ${ + docs + }/parser-babylon.js --presets=es2015` +); + +for (const parser of parsers) { + if (parser === "babylon") { + continue; + } + shell.echo(`Bundling docs ${parser}...`); + shell.exec( + `rollup -c scripts/build/rollup.docs.config.js --environment filepath:parser-${ + parser + }.js -i ${prettierPath}/parser-${parser}.js` + ); +} + +shell.echo("Copy sw-toolbox.js to docs"); +shell.cp("node_modules/sw-toolbox/sw-toolbox.js", `${docs}/sw-toolbox.js`); + +// --- Site --- +shell.cd("website"); +shell.echo("Building website..."); +shell.exec("yarn install"); +shell.exec("yarn build"); + +shell.echo(); diff --git a/scripts/build/build.js b/scripts/build/build.js index 6ceca998..1943c6ca 100755 --- a/scripts/build/build.js +++ b/scripts/build/build.js @@ -8,7 +8,6 @@ const formatMarkdown = require("../../website/static/markdown"); const shell = require("shelljs"); const rootDir = path.join(__dirname, "..", ".."); -const docs = path.join(rootDir, "website/static/lib"); const parsers = [ "babylon", "flow", @@ -28,8 +27,7 @@ function pipe(string) { shell.set("-e"); shell.cd(rootDir); -shell.rm("-Rf", "dist/", docs); -shell.mkdir("-p", docs); +shell.rm("-Rf", "dist/"); // --- Lib --- @@ -66,44 +64,6 @@ pipe(`module.exports = ${content}`).to("dist/parser-postcss.js"); shell.echo(); -// --- Docs --- - -shell.echo("Bundling docs index..."); -shell.exec( - `rollup -c scripts/build/rollup.index.config.js --environment BUILD_TARGET:website -o ${ - docs - }/index.js` -); -shell.exec( - `node_modules/babel-cli/bin/babel.js ${docs}/index.js --out-file ${ - docs - }/index.js --presets=es2015` -); - -shell.echo("Bundling docs babylon..."); -shell.exec( - "rollup -c scripts/build/rollup.docs.config.js --environment filepath:parser-babylon.js" -); -shell.exec( - `node_modules/babel-cli/bin/babel.js ${docs}/parser-babylon.js --out-file ${ - docs - }/parser-babylon.js --presets=es2015` -); - -for (const parser of parsers) { - if (parser === "babylon") { - continue; - } - shell.echo(`Bundling docs ${parser}...`); - shell.exec( - `rollup -c scripts/build/rollup.docs.config.js --environment filepath:parser-${ - parser - }.js` - ); -} - -shell.echo(); - // --- Misc --- shell.echo("Remove eval"); @@ -133,9 +93,6 @@ const newIssueTemplate = issueTemplate.replace( ); pipe(newIssueTemplate).to(".github/ISSUE_TEMPLATE.md"); -shell.echo("Copy sw-toolbox.js to docs"); -shell.cp("node_modules/sw-toolbox/sw-toolbox.js", `${docs}/sw-toolbox.js`); - shell.echo("Copy package.json"); const pkgWithoutDependencies = Object.assign({}, pkg); delete pkgWithoutDependencies.dependencies; diff --git a/scripts/build/rollup.docs.config.js b/scripts/build/rollup.docs.config.js index 88f64470..46ad2ac9 100644 --- a/scripts/build/rollup.docs.config.js +++ b/scripts/build/rollup.docs.config.js @@ -9,7 +9,7 @@ const filename = filepath.replace(/.+\//, ""); const basename = filename.replace(/\..+/, ""); export default Object.assign(baseConfig, { - entry: "dist/" + filepath, + entry: "node_modules/prettier/" + filepath, dest: "website/static/lib/" + filename, format: "iife", plugins: [json(), resolve({ preferBuiltins: true }), commonjs(), globals()], diff --git a/website/static/lib/index.js b/website/static/lib/index.js deleted file mode 100644 index d88510ed..00000000 --- a/website/static/lib/index.js +++ /dev/null @@ -1,2124 +0,0 @@ -'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}function _interopDefault(ex){return ex&&(typeof ex==='undefined'?'undefined':_typeof(ex))==='object'&&'default'in ex?ex['default']:ex;}var require$$0=_interopDefault(require('assert'));var require$$0$1=_interopDefault(require('path'));var os=_interopDefault(require('os'));var fs=_interopDefault(require('fs'));var util=_interopDefault(require('util'));var module$1=_interopDefault(require('module'));var stream=_interopDefault(require('stream'));var index$2=function index$2(x){if(typeof x!=='string'){throw new TypeError('Expected a string, got '+(typeof x==='undefined'?'undefined':_typeof(x)));}// Catches EFBBBF (UTF-8 BOM) because the buffer-to-string -// conversion translates it to FEFF (UTF-16 BOM) -if(x.charCodeAt(0)===0xFEFF){return x.slice(1);}return x;};function assertDoc(val){/* istanbul ignore if */if(!(typeof val==="string"||val!=null&&typeof val.type==="string")){throw new Error("Value "+JSON.stringify(val)+" is not a valid document");}}function concat$1(parts){parts.forEach(assertDoc);// We cannot do this until we change `printJSXElement` to not -// access the internals of a document directly. -// if(parts.length === 1) { -// // If it's a single document, no need to concat it. -// return parts[0]; -// } -return{type:"concat",parts:parts};}function indent$1(contents){assertDoc(contents);return{type:"indent",contents:contents};}function align(n,contents){assertDoc(contents);return{type:"align",contents:contents,n:n};}function group(contents,opts){opts=opts||{};assertDoc(contents);return{type:"group",contents:contents,break:!!opts.shouldBreak,expandedStates:opts.expandedStates};}function conditionalGroup(states,opts){return group(states[0],Object.assign(opts||{},{expandedStates:states}));}function fill(parts){parts.forEach(assertDoc);return{type:"fill",parts:parts};}function ifBreak(breakContents,flatContents){if(breakContents){assertDoc(breakContents);}if(flatContents){assertDoc(flatContents);}return{type:"if-break",breakContents:breakContents,flatContents:flatContents};}function lineSuffix$1(contents){assertDoc(contents);return{type:"line-suffix",contents:contents};}var lineSuffixBoundary={type:"line-suffix-boundary"};var breakParent$1={type:"break-parent"};var line={type:"line"};var softline={type:"line",soft:true};var hardline$1=concat$1([{type:"line",hard:true},breakParent$1]);var literalline=concat$1([{type:"line",hard:true,literal:true},breakParent$1]);var cursor$1={type:"cursor",placeholder:Symbol("cursor")};function join$1(sep,arr){var res=[];for(var _i=0;_i0){// Use indent to add tabs for all the levels of tabs we need -for(var _i2=0;_i2<~]))'].join('|');return new RegExp(pattern,'g');};var ansiRegex=index$8;var index$6=function index$6(input){return typeof input==='string'?input.replace(ansiRegex(),''):input;};/* eslint-disable yoda */var index$10=function index$10(x){if(Number.isNaN(x)){return false;}// code points are derived from: -// http://www.unix.org/Public/UNIDATA/EastAsianWidth.txt -if(x>=0x1100&&(x<=0x115f||// Hangul Jamo -x===0x2329||// LEFT-POINTING ANGLE BRACKET -x===0x232a||// RIGHT-POINTING ANGLE BRACKET -// CJK Radicals Supplement .. Enclosed CJK Letters and Months -0x2e80<=x&&x<=0x3247&&x!==0x303f||// Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A -0x3250<=x&&x<=0x4dbf||// CJK Unified Ideographs .. Yi Radicals -0x4e00<=x&&x<=0xa4c6||// Hangul Jamo Extended-A -0xa960<=x&&x<=0xa97c||// Hangul Syllables -0xac00<=x&&x<=0xd7a3||// CJK Compatibility Ideographs -0xf900<=x&&x<=0xfaff||// Vertical Forms -0xfe10<=x&&x<=0xfe19||// CJK Compatibility Forms .. Small Form Variants -0xfe30<=x&&x<=0xfe6b||// Halfwidth and Fullwidth Forms -0xff01<=x&&x<=0xff60||0xffe0<=x&&x<=0xffe6||// Kana Supplement -0x1b000<=x&&x<=0x1b001||// Enclosed Ideographic Supplement -0x1f200<=x&&x<=0x1f251||// CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane -0x20000<=x&&x<=0x3fffd)){return true;}return false;};var stripAnsi=index$6;var isFullwidthCodePoint=index$10;var index$4=function index$4(str){if(typeof str!=='string'||str.length===0){return 0;}str=stripAnsi(str);var width=0;for(var _i3=0;_i3=0x7F&&_code<=0x9F){continue;}// Ignore combining characters -if(_code>=0x300&&_code<=0x36F){continue;}// Surrogates -if(_code>0xFFFF){_i3++;}width+=isFullwidthCodePoint(_code)?2:1;}return width;};var index$12=function index$12(){// https://mathiasbynens.be/notes/es-unicode-property-escapes#emoji -return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74)\uDB40\uDC7F|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]\uFE0F|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83D\uDC69\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83D\uDC69\u200D[\u2695\u2696\u2708])\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC68(?:\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F/g;};var matchOperatorsRe=/[|\\{}()[\]^$+*?.]/g;var index$14=function index$14(str){if(typeof str!=='string'){throw new TypeError('Expected a string');}return str.replace(matchOperatorsRe,'\\$&');};var punctuation_ranges=[// http://www.unicode.org/charts/PDF/U3000.pdf CJK Symbols and Punctuation -[0x3000,0x303f],// http://www.unicode.org/charts/PDF/UAC00.pdf Hangul Syllables -[0xac00,0xd7af],// http://www.unicode.org/charts/PDF/UFE10.pdf Vertical Forms -[0xfe10,0xfe1f],// http://www.unicode.org/charts/PDF/UFE30.pdf CJK Compatibility Forms -// http://www.unicode.org/charts/PDF/UFE50.pdf Small Form Variants -[0xfe30,0xfe6f],// http://www.unicode.org/charts/PDF/UFF00.pdf Halfwidth and Fullwidth Forms -[0xff00,0xff60],[0xffe0,0xffef]];var character_ranges=[// http://www.unicode.org/charts/PDF/U1100.pdf Hangul Jamo -[0x1100,0x11ff],// http://www.unicode.org/charts/PDF/U2E80.pdf CJK Radicals Supplement -// http://www.unicode.org/charts/PDF/U2F00.pdf Kangxi Radicals -[0x2e80,0x2fdf],// http://www.unicode.org/charts/PDF/U3040.pdf Hiragana -// http://www.unicode.org/charts/PDF/U30A0.pdf Katakana -// http://www.unicode.org/charts/PDF/U3100.pdf Bopomofo -// http://www.unicode.org/charts/PDF/U3130.pdf Hangul Compatibility Jamo -[0x3040,0x318f],// http://www.unicode.org/charts/PDF/U3200.pdf Enclosed CJK Letters and Months -// http://www.unicode.org/charts/PDF/U3300.pdf CJK Compatibility -// http://www.unicode.org/charts/PDF/U3400.pdf CJK Unified Ideographs Extension A -[0x3200,0x4dbf],// http://www.unicode.org/charts/PDF/U4E00.pdf CJK Unified Ideographs (Han) -[0x4e00,0x9fff],// http://www.unicode.org/charts/PDF/UA960.pdf Hangul Jamo Extended-A -[0xa960,0xa97f],// http://www.unicode.org/charts/PDF/UF900.pdf CJK Compatibility Ideographs -[0xf900,0xfaff]];function get_regex(){return create_regex(character_ranges.concat(punctuation_ranges));}// istanbul ignore next -// tslint:disable-next-line:no-namespace -(function(get_regex){function punctuations(){return create_regex(punctuation_ranges);}get_regex.punctuations=punctuations;function characters(){return create_regex(character_ranges);}get_regex.characters=characters;})(get_regex||(get_regex={}));function create_regex(ranges){return new RegExp("["+ranges.map(get_bracket_content).reduce(function(a,b){return a+b;})+"]",'g');}function get_bracket_content(range){return get_escaped_unicode(range[0])+"-"+get_escaped_unicode(range[1]);}function get_escaped_unicode(num){return'\\u'+num.toString(16);}var index$16=get_regex;var stringWidth=index$4;var emojiRegex=index$12();var escapeStringRegexp=index$14;var getCjkRegex=index$16;var cjkRegex=getCjkRegex();var cjkPunctuationRegex=getCjkRegex.punctuations();function isExportDeclaration(node){if(node){switch(node.type){case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return true;}}return false;}function getParentExportDeclaration(path){var parentNode=path.getParentNode();if(path.getName()==="declaration"&&isExportDeclaration(parentNode)){return parentNode;}return null;}function getPenultimate(arr){if(arr.length>1){return arr[arr.length-2];}return null;}function getLast(arr){if(arr.length>0){return arr[arr.length-1];}return null;}function skip(chars){return function(text,index,opts){var backwards=opts&&opts.backwards;// Allow `skip` functions to be threaded together without having -// to check for failures (did someone say monads?). -if(index===false){return false;}var length=text.length;var cursor=index;while(cursor>=0&&cursor0){return locStart$1(node.declaration.decorators[0]);}if(node.decorators&&node.decorators.length>0){return locStart$1(node.decorators[0]);}if(node.__location){return node.__location.startOffset;}if(node.range){return node.range[0];}if(typeof node.start==="number"){return node.start;}if(node.source){return lineColumnToIndex(node.source.start,node.source.input.css)-1;}if(node.loc){return node.loc.start;}}function locEnd$1(node){var endNode=node.nodes&&getLast(node.nodes);if(endNode&&node.source&&!node.source.end){node=endNode;}var loc=void 0;if(node.range){loc=node.range[1];}else if(typeof node.end==="number"){loc=node.end;}else if(node.source){loc=lineColumnToIndex(node.source.end,node.source.input.css);}if(node.__location){return node.__location.endOffset;}if(node.typeAnnotation){return Math.max(loc,locEnd$1(node.typeAnnotation));}if(node.loc&&!loc){return node.loc.end;}return loc;}// Super inefficient, needs to be cached. -function lineColumnToIndex(lineColumn,text){var index=0;for(var _i6=0;_i6"],["||","??"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(function(tier,i){tier.forEach(function(op){PRECEDENCE[op]=i;});});function getPrecedence(op){return PRECEDENCE[op];}var equalityOperators={"==":true,"!=":true,"===":true,"!==":true};var multiplicativeOperators={"*":true,"/":true,"%":true};var bitshiftOperators={">>":true,">>>":true,"<<":true};function shouldFlatten(parentOp,nodeOp){if(getPrecedence(nodeOp)!==getPrecedence(parentOp)){return false;}// ** is right-associative -// x ** y ** z --> x ** (y ** z) -if(parentOp==="**"){return false;}// x == y == z --> (x == y) == z -if(equalityOperators[parentOp]&&equalityOperators[nodeOp]){return false;}// x * y % z --> (x * y) % z -if(nodeOp==="%"&&multiplicativeOperators[parentOp]||parentOp==="%"&&multiplicativeOperators[nodeOp]){return false;}// x << y << z --> (x << y) << z -if(bitshiftOperators[parentOp]&&bitshiftOperators[nodeOp]){return false;}return true;}function isBitwiseOperator(operator){return!!bitshiftOperators[operator]||operator==="|"||operator==="^"||operator==="&";}// Tests if an expression starts with `{`, or (if forbidFunctionAndClass holds) `function` or `class`. -// Will be overzealous if there's already necessary grouping parentheses. -function startsWithNoLookaheadToken(node,forbidFunctionAndClass){node=getLeftMost(node);switch(node.type){// Hack. Remove after https://github.com/eslint/typescript-eslint-parser/issues/331 -case"ObjectPattern":return!forbidFunctionAndClass;case"FunctionExpression":case"ClassExpression":return forbidFunctionAndClass;case"ObjectExpression":return true;case"MemberExpression":return startsWithNoLookaheadToken(node.object,forbidFunctionAndClass);case"TaggedTemplateExpression":if(node.tag.type==="FunctionExpression"){// IIFEs are always already parenthesized -return false;}return startsWithNoLookaheadToken(node.tag,forbidFunctionAndClass);case"CallExpression":if(node.callee.type==="FunctionExpression"){// IIFEs are always already parenthesized -return false;}return startsWithNoLookaheadToken(node.callee,forbidFunctionAndClass);case"ConditionalExpression":return startsWithNoLookaheadToken(node.test,forbidFunctionAndClass);case"UpdateExpression":return!node.prefix&&startsWithNoLookaheadToken(node.argument,forbidFunctionAndClass);case"BindExpression":return node.object&&startsWithNoLookaheadToken(node.object,forbidFunctionAndClass);case"SequenceExpression":return startsWithNoLookaheadToken(node.expressions[0],forbidFunctionAndClass);case"TSAsExpression":return startsWithNoLookaheadToken(node.expression,forbidFunctionAndClass);default:return false;}}function getLeftMost(node){if(node.left){return getLeftMost(node.left);}return node;}function hasBlockComments(node){return node.comments&&node.comments.some(isBlockComment);}function isBlockComment(comment){return comment.type==="Block"||comment.type==="CommentBlock";}function hasClosureCompilerTypeCastComment(text,node){// https://github.com/google/closure-compiler/wiki/Annotating-Types#type-casts -// Syntax example: var x = /** @type {string} */ (fruit); -return node.comments&&node.comments.some(function(comment){return comment.leading&&isBlockComment(comment)&&comment.value.match(/^\*\s*@type\s*{[^}]+}\s*$/)&&getNextNonSpaceNonCommentCharacter$1(text,comment)==="(";});}function getAlignmentSize(value,tabWidth,startIndex){startIndex=startIndex||0;var size=0;for(var _i7=startIndex;_i7 4, 1 -> 4, 2 -> 4, 3 -> 4 -// 4 -> 8, 5 -> 8, 6 -> 8, 7 -> 8 ... -size=size+tabWidth-size%tabWidth;}else{size++;}}return size;}function getIndentSize(value,tabWidth){var lastNewlineIndex=value.lastIndexOf("\n");if(lastNewlineIndex===-1){return 0;}return getAlignmentSize(// All the leading whitespaces -value.slice(lastNewlineIndex+1).match(/^[ \t]*/)[0],tabWidth);}function printString(raw,options,isDirectiveLiteral){// `rawContent` is the string exactly like it appeared in the input source -// code, without its enclosing quotes. -var rawContent=raw.slice(1,-1);var double={quote:'"',regex:/"/g};var single={quote:"'",regex:/'/g};var preferred=options.singleQuote?single:double;var alternate=preferred===single?double:single;var shouldUseAlternateQuote=false;var canChangeDirectiveQuotes=false;// If `rawContent` contains at least one of the quote preferred for enclosing -// the string, we might want to enclose with the alternate quote instead, to -// minimize the number of escaped quotes. -// Also check for the alternate quote, to determine if we're allowed to swap -// the quotes on a DirectiveLiteral. -if(rawContent.includes(preferred.quote)||rawContent.includes(alternate.quote)){var numPreferredQuotes=(rawContent.match(preferred.regex)||[]).length;var numAlternateQuotes=(rawContent.match(alternate.regex)||[]).length;shouldUseAlternateQuote=numPreferredQuotes>numAlternateQuotes;}else{canChangeDirectiveQuotes=true;}var enclosingQuote=options.parser==="json"?double.quote:shouldUseAlternateQuote?alternate.quote:preferred.quote;// Directives are exact code unit sequences, which means that you can't -// change the escape sequences they use. -// See https://github.com/prettier/prettier/issues/1555 -// and https://tc39.github.io/ecma262/#directive-prologue -if(isDirectiveLiteral){if(canChangeDirectiveQuotes){return enclosingQuote+rawContent+enclosingQuote;}return raw;}// It might sound unnecessary to use `makeString` even if the string already -// is enclosed with `enclosingQuote`, but it isn't. The string could contain -// unnecessary escapes (such as in `"\'"`). Always using `makeString` makes -// sure that we consistently output the minimum amount of escaped quotes. -return makeString(rawContent,enclosingQuote,!(options.parser==="css"||options.parser==="less"||options.parser==="scss"));}function makeString(rawContent,enclosingQuote,unescapeUnnecessaryEscapes){var otherQuote=enclosingQuote==='"'?"'":'"';// Matches _any_ escape and unescaped quotes (both single and double). -var regex=/\\([\s\S])|(['"])/g;// Escape and unescape single and double quotes as needed to be able to -// enclose `rawContent` with `enclosingQuote`. -var newContent=rawContent.replace(regex,function(match,escaped,quote){// If we matched an escape, and the escaped character is a quote of the -// other type than we intend to enclose the string with, there's no need for -// it to be escaped, so return it _without_ the backslash. -if(escaped===otherQuote){return escaped;}// If we matched an unescaped quote and it is of the _same_ type as we -// intend to enclose the string with, it must be escaped, so return it with -// a backslash. -if(quote===enclosingQuote){return"\\"+quote;}if(quote){return quote;}// Unescape any unnecessarily escaped character. -// Adapted from https://github.com/eslint/eslint/blob/de0b4ad7bd820ade41b1f606008bea68683dc11a/lib/rules/no-useless-escape.js#L27 -return unescapeUnnecessaryEscapes&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(escaped)?escaped:"\\"+escaped;});return enclosingQuote+newContent+enclosingQuote;}function printNumber(rawNumber){return rawNumber.toLowerCase// Remove unnecessary plus and zeroes from scientific notation. -().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3"// Remove unnecessary scientific notation (1e0). -).replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1"// Make sure numbers always start with a digit. -).replace(/^([+-])?\./,"$10."// Remove extraneous trailing decimal zeroes. -).replace(/(\.\d+?)0+(?=e|$)/,"$1"// Remove trailing dot. -).replace(/\.(?=e|$)/,"");}function getMaxContinuousCount(str,target){var results=str.match(new RegExp('('+escapeStringRegexp(target)+')+',"g"));if(results===null){return 0;}return results.reduce(function(maxCount,result){return Math.max(maxCount,result.length/target.length);},0);}function mapDoc(doc,callback){if(doc.parts){var parts=doc.parts.map(function(part){return mapDoc(part,callback);});return callback(Object.assign({},doc,{parts:parts}));}if(doc.contents){var contents=mapDoc(doc.contents,callback);return callback(Object.assign({},doc,{contents:contents}));}return callback(doc);}/** - * split text into whitespaces and words - * @param {string} text - * @return {Array<{ type: "whitespace", value: " " | "" } | { type: "word", value: string }>} - */function splitText(text){var KIND_NON_CJK="non-cjk";var KIND_CJK_CHARACTER="cjk-character";var KIND_CJK_PUNCTUATION="cjk-punctuation";var nodes=[];text.replace(new RegExp('('+cjkRegex.source+')\n('+cjkRegex.source+')',"g"),"$1$2"// `\s` but exclude full-width whitspace (`\u3000`) -).split(/([^\S\u3000]+)/).forEach(function(token,index,tokens){// whitespace -if(index%2===1){nodes.push({type:"whitespace",value:" "});return;}// word separated by whitespace -if((index===0||index===tokens.length-1)&&token===""){return;}token.split(new RegExp('('+cjkRegex.source+')')).forEach(function(innerToken,innerIndex,innerTokens){if((innerIndex===0||innerIndex===innerTokens.length-1)&&innerToken===""){return;}// non-CJK word -if(innerIndex%2===0){if(innerToken!==""){appendNode({type:"word",value:innerToken,kind:KIND_NON_CJK});}return;}// CJK character -var kind=cjkPunctuationRegex.test(innerToken)?KIND_CJK_PUNCTUATION:KIND_CJK_CHARACTER;appendNode({type:"word",value:innerToken,kind:kind});});});return nodes;function appendNode(node){var lastNode=nodes[nodes.length-1];if(lastNode&&lastNode.type==="word"){if(isBetween(KIND_NON_CJK,KIND_CJK_CHARACTER)){nodes.push({type:"whitespace",value:" "});}else if(!isBetween(KIND_NON_CJK,KIND_CJK_PUNCTUATION)&&// disallow leading/trailing full-width whitespace -![lastNode.value,node.value].some(function(value){return /\u3000/.test(value);})){nodes.push({type:"whitespace",value:""});}}nodes.push(node);function isBetween(kind1,kind2){return lastNode.kind===kind1&&node.kind===kind2||lastNode.kind===kind2&&node.kind===kind1;}}}function getStringWidth(text){if(!text){return 0;}// emojis are considered 2-char width for consistency -// see https://github.com/sindresorhus/string-width/issues/11 -// for the reason why not implemented in `string-width` -return stringWidth(text.replace(emojiRegex," "));}var util$3={getStringWidth:getStringWidth,splitText:splitText,mapDoc:mapDoc,getMaxContinuousCount:getMaxContinuousCount,getPrecedence:getPrecedence,shouldFlatten:shouldFlatten,isBitwiseOperator:isBitwiseOperator,isExportDeclaration:isExportDeclaration,getParentExportDeclaration:getParentExportDeclaration,getPenultimate:getPenultimate,getLast:getLast,getNextNonSpaceNonCommentCharacterIndex:getNextNonSpaceNonCommentCharacterIndex,getNextNonSpaceNonCommentCharacter:getNextNonSpaceNonCommentCharacter$1,skipWhitespace:skipWhitespace,skipSpaces:skipSpaces,skipNewline:skipNewline,isNextLineEmptyAfterIndex:isNextLineEmptyAfterIndex,isNextLineEmpty:isNextLineEmpty,isPreviousLineEmpty:isPreviousLineEmpty,hasNewline:hasNewline,hasNewlineInRange:hasNewlineInRange,hasSpaces:hasSpaces,locStart:locStart$1,locEnd:locEnd$1,setLocStart:setLocStart,setLocEnd:setLocEnd,startsWithNoLookaheadToken:startsWithNoLookaheadToken,hasBlockComments:hasBlockComments,isBlockComment:isBlockComment,hasClosureCompilerTypeCastComment:hasClosureCompilerTypeCastComment,getAlignmentSize:getAlignmentSize,getIndentSize:getIndentSize,printString:printString,printNumber:printNumber};var assert=require$$0;var docBuilders=docBuilders$1;var concat=docBuilders.concat;var hardline=docBuilders.hardline;var breakParent=docBuilders.breakParent;var indent=docBuilders.indent;var lineSuffix=docBuilders.lineSuffix;var join=docBuilders.join;var cursor=docBuilders.cursor;var util$2=util$3;var childNodesCacheKey=Symbol("child-nodes");var locStart=util$2.locStart;var locEnd=util$2.locEnd;var getNextNonSpaceNonCommentCharacter=util$2.getNextNonSpaceNonCommentCharacter;function getSortedChildNodes(node,text,resultArray){if(!node){return;}if(resultArray){if(node&&(node.type&&node.type!=="CommentBlock"&&node.type!=="CommentLine"&&node.type!=="Line"&&node.type!=="Block"&&node.type!=="EmptyStatement"&&node.type!=="TemplateElement"&&node.type!=="Import"&&!(node.callee&&node.callee.type==="Import")||node.kind&&node.kind!=="Comment")){// This reverse insertion sort almost always takes constant -// time because we almost always (maybe always?) append the -// nodes in order anyway. -var _i8=void 0;for(_i8=resultArray.length-1;_i8>=0;--_i8){if(locStart(resultArray[_i8])<=locStart(node)&&locEnd(resultArray[_i8])<=locEnd(node)){break;}}resultArray.splice(_i8+1,0,node);return;}}else if(node[childNodesCacheKey]){return node[childNodesCacheKey];}var names=void 0;if(node&&(typeof node==='undefined'?'undefined':_typeof(node))==="object"){names=Object.keys(node).filter(function(n){return n!=="enclosingNode"&&n!=="precedingNode"&&n!=="followingNode";});}else{return;}if(!resultArray){Object.defineProperty(node,childNodesCacheKey,{value:resultArray=[],enumerable:false});}for(var _i9=0,nameCount=names.length;_i9>1;var child=childNodes[middle];if(locStart(child)-locStart(comment)<=0&&locEnd(comment)-locEnd(child)<=0){// The comment is completely contained by this child node. -comment.enclosingNode=child;decorateComment(child,comment,text);return;// Abandon the binary search at this level. -}if(locEnd(child)-locStart(comment)<=0){// This child node falls completely before the comment. -// Because we will never consider this node or any nodes -// before it again, this node must be the closest preceding -// node we have encountered so far. -precedingNode=child;left=middle+1;continue;}if(locEnd(comment)-locStart(child)<=0){// This child node falls completely after the comment. -// Because we will never consider this node or any nodes after -// it again, this node must be the closest following node we -// have encountered so far. -followingNode=child;right=middle;continue;}/* istanbul ignore next */throw new Error("Comment location overlaps with node location");}// We don't want comments inside of different expressions inside of the same -// template literal to move to another expression. -if(comment.enclosingNode&&comment.enclosingNode.type==="TemplateLiteral"){var quasis=comment.enclosingNode.quasis;var commentIndex=findExpressionIndexForComment(quasis,comment);if(precedingNode&&findExpressionIndexForComment(quasis,precedingNode)!==commentIndex){precedingNode=null;}if(followingNode&&findExpressionIndexForComment(quasis,followingNode)!==commentIndex){followingNode=null;}}if(precedingNode){comment.precedingNode=precedingNode;}if(followingNode){comment.followingNode=followingNode;}}function attach(comments,ast,text,options){if(!Array.isArray(comments)){return;}var tiesToBreak=[];comments.forEach(function(comment,i){if(options.parser==="json"&&locStart(comment)-locStart(ast)<=0){addLeadingComment(ast,comment);return;}decorateComment(ast,comment,text);var precedingNode=comment.precedingNode;var enclosingNode=comment.enclosingNode;var followingNode=comment.followingNode;var isLastComment=comments.length-1===i;if(util$2.hasNewline(text,locStart(comment),{backwards:true})){// If a comment exists on its own line, prefer a leading comment. -// We also need to check if it's the first line of the file. -if(handleLastFunctionArgComments(text,precedingNode,enclosingNode,followingNode,comment)||handleMemberExpressionComments(enclosingNode,followingNode,comment)||handleIfStatementComments(text,precedingNode,enclosingNode,followingNode,comment)||handleTryStatementComments(enclosingNode,followingNode,comment)||handleClassComments(enclosingNode,precedingNode,followingNode,comment)||handleImportSpecifierComments(enclosingNode,comment)||handleObjectPropertyComments(enclosingNode,comment)||handleForComments(enclosingNode,precedingNode,comment)||handleUnionTypeComments(precedingNode,enclosingNode,followingNode,comment)||handleOnlyComments(enclosingNode,ast,comment,isLastComment)||handleImportDeclarationComments(text,enclosingNode,precedingNode,comment)||handleAssignmentPatternComments(enclosingNode,comment)||handleMethodNameComments(text,enclosingNode,precedingNode,comment)){// We're good -}else if(followingNode){// Always a leading comment. -addLeadingComment(followingNode,comment);}else if(precedingNode){addTrailingComment(precedingNode,comment);}else if(enclosingNode){addDanglingComment(enclosingNode,comment);}else{// There are no nodes, let's attach it to the root of the ast -/* istanbul ignore next */addDanglingComment(ast,comment);}}else if(util$2.hasNewline(text,locEnd(comment))){if(handleLastFunctionArgComments(text,precedingNode,enclosingNode,followingNode,comment)||handleConditionalExpressionComments(enclosingNode,precedingNode,followingNode,comment,text)||handleImportSpecifierComments(enclosingNode,comment)||handleIfStatementComments(text,precedingNode,enclosingNode,followingNode,comment)||handleClassComments(enclosingNode,precedingNode,followingNode,comment)||handleLabeledStatementComments(enclosingNode,comment)||handleCallExpressionComments(precedingNode,enclosingNode,comment)||handlePropertyComments(enclosingNode,comment)||handleExportNamedDeclarationComments(enclosingNode,comment)||handleOnlyComments(enclosingNode,ast,comment,isLastComment)||handleClassMethodComments(enclosingNode,comment)||handleTypeAliasComments(enclosingNode,followingNode,comment)||handleVariableDeclaratorComments(enclosingNode,followingNode,comment)){// We're good -}else if(precedingNode){// There is content before this comment on the same line, but -// none after it, so prefer a trailing comment of the previous node. -addTrailingComment(precedingNode,comment);}else if(followingNode){addLeadingComment(followingNode,comment);}else if(enclosingNode){addDanglingComment(enclosingNode,comment);}else{// There are no nodes, let's attach it to the root of the ast -/* istanbul ignore next */addDanglingComment(ast,comment);}}else{if(handleIfStatementComments(text,precedingNode,enclosingNode,followingNode,comment)||handleObjectPropertyAssignment(enclosingNode,precedingNode,comment)||handleCommentInEmptyParens(text,enclosingNode,comment)||handleMethodNameComments(text,enclosingNode,precedingNode,comment)||handleOnlyComments(enclosingNode,ast,comment,isLastComment)||handleFunctionNameComments(text,enclosingNode,precedingNode,comment)){// We're good -}else if(precedingNode&&followingNode){// Otherwise, text exists both before and after the comment on -// the same line. If there is both a preceding and following -// node, use a tie-breaking algorithm to determine if it should -// be attached to the next or previous node. In the last case, -// simply attach the right node; -var tieCount=tiesToBreak.length;if(tieCount>0){var lastTie=tiesToBreak[tieCount-1];if(lastTie.followingNode!==comment.followingNode){breakTies(tiesToBreak,text);}}tiesToBreak.push(comment);}else if(precedingNode){addTrailingComment(precedingNode,comment);}else if(followingNode){addLeadingComment(followingNode,comment);}else if(enclosingNode){addDanglingComment(enclosingNode,comment);}else{// There are no nodes, let's attach it to the root of the ast -/* istanbul ignore next */addDanglingComment(ast,comment);}}});breakTies(tiesToBreak,text);comments.forEach(function(comment){// These node references were useful for breaking ties, but we -// don't need them anymore, and they create cycles in the AST that -// may lead to infinite recursion if we don't delete them here. -delete comment.precedingNode;delete comment.enclosingNode;delete comment.followingNode;});}function breakTies(tiesToBreak,text){var tieCount=tiesToBreak.length;if(tieCount===0){return;}var precedingNode=tiesToBreak[0].precedingNode;var followingNode=tiesToBreak[0].followingNode;var gapEndPos=locStart(followingNode);// Iterate backwards through tiesToBreak, examining the gaps -// between the tied comments. In order to qualify as leading, a -// comment must be separated from followingNode by an unbroken series of -// gaps (or other comments). Gaps should only contain whitespace or open -// parentheses. -var indexOfFirstLeadingComment=void 0;for(indexOfFirstLeadingComment=tieCount;indexOfFirstLeadingComment>0;--indexOfFirstLeadingComment){var comment=tiesToBreak[indexOfFirstLeadingComment-1];assert.strictEqual(comment.precedingNode,precedingNode);assert.strictEqual(comment.followingNode,followingNode);var gap=text.slice(locEnd(comment),gapEndPos).trim();if(gap===""||/^\(+$/.test(gap)){gapEndPos=locStart(comment);}else{// The gap string contained something other than whitespace or open -// parentheses. -break;}}tiesToBreak.forEach(function(comment,i){if(i0&&!(followingNode&&followingNode.type==="Decorator")){if(!enclosingNode.decorators||enclosingNode.decorators.length===0){addLeadingComment(enclosingNode,comment);}else{addTrailingComment(enclosingNode.decorators[enclosingNode.decorators.length-1],comment);}return true;}return false;}function handleMethodNameComments(text,enclosingNode,precedingNode,comment){// This is only needed for estree parsers (flow, typescript) to attach -// after a method name: -// obj = { fn /*comment*/() {} }; -if(enclosingNode&&precedingNode&&(enclosingNode.type==="Property"||enclosingNode.type==="MethodDefinition")&&precedingNode.type==="Identifier"&&enclosingNode.key===precedingNode&&// special Property case: { key: /*comment*/(value) }; -// comment should be attached to value instead of key -getNextNonSpaceNonCommentCharacter(text,precedingNode)!==":"){addTrailingComment(precedingNode,comment);return true;}// Print comments between decorators and class methods as a trailing comment -// on the decorator node instead of the method node -if(precedingNode&&enclosingNode&&precedingNode.type==="Decorator"&&(enclosingNode.type==="ClassMethod"||enclosingNode.type==="MethodDefinition")){addTrailingComment(precedingNode,comment);return true;}return false;}function handleFunctionNameComments(text,enclosingNode,precedingNode,comment){if(getNextNonSpaceNonCommentCharacter(text,comment)!=="("){return false;}if(precedingNode&&enclosingNode&&(enclosingNode.type==="FunctionDeclaration"||enclosingNode.type==="FunctionExpression"||enclosingNode.type==="ClassMethod"||enclosingNode.type==="MethodDefinition"||enclosingNode.type==="ObjectMethod")){addTrailingComment(precedingNode,comment);return true;}return false;}function handleCommentInEmptyParens(text,enclosingNode,comment){if(getNextNonSpaceNonCommentCharacter(text,comment)!==")"){return false;}// Only add dangling comments to fix the case when no params are present, -// i.e. a function without any argument. -if(enclosingNode&&((enclosingNode.type==="FunctionDeclaration"||enclosingNode.type==="FunctionExpression"||enclosingNode.type==="ArrowFunctionExpression"||enclosingNode.type==="ClassMethod"||enclosingNode.type==="ObjectMethod")&&enclosingNode.params.length===0||enclosingNode.type==="CallExpression"&&enclosingNode.arguments.length===0)){addDanglingComment(enclosingNode,comment);return true;}if(enclosingNode&&enclosingNode.type==="MethodDefinition"&&enclosingNode.value.params.length===0){addDanglingComment(enclosingNode.value,comment);return true;}return false;}function handleLastFunctionArgComments(text,precedingNode,enclosingNode,followingNode,comment){// Type definitions functions -if(precedingNode&&precedingNode.type==="FunctionTypeParam"&&enclosingNode&&enclosingNode.type==="FunctionTypeAnnotation"&&followingNode&&followingNode.type!=="FunctionTypeParam"){addTrailingComment(precedingNode,comment);return true;}// Real functions -if(precedingNode&&(precedingNode.type==="Identifier"||precedingNode.type==="AssignmentPattern")&&enclosingNode&&(enclosingNode.type==="ArrowFunctionExpression"||enclosingNode.type==="FunctionExpression"||enclosingNode.type==="FunctionDeclaration"||enclosingNode.type==="ObjectMethod"||enclosingNode.type==="ClassMethod")&&getNextNonSpaceNonCommentCharacter(text,comment)===")"){addTrailingComment(precedingNode,comment);return true;}return false;}function handleImportSpecifierComments(enclosingNode,comment){if(enclosingNode&&enclosingNode.type==="ImportSpecifier"){addLeadingComment(enclosingNode,comment);return true;}return false;}function handleObjectPropertyComments(enclosingNode,comment){if(enclosingNode&&enclosingNode.type==="ObjectProperty"){addLeadingComment(enclosingNode,comment);return true;}return false;}function handleLabeledStatementComments(enclosingNode,comment){if(enclosingNode&&enclosingNode.type==="LabeledStatement"){addLeadingComment(enclosingNode,comment);return true;}return false;}function handleCallExpressionComments(precedingNode,enclosingNode,comment){if(enclosingNode&&enclosingNode.type==="CallExpression"&&precedingNode&&enclosingNode.callee===precedingNode&&enclosingNode.arguments.length>0){addLeadingComment(enclosingNode.arguments[0],comment);return true;}return false;}function handleUnionTypeComments(precedingNode,enclosingNode,followingNode,comment){if(enclosingNode&&(enclosingNode.type==="UnionTypeAnnotation"||enclosingNode.type==="TSUnionType")){addTrailingComment(precedingNode,comment);return true;}return false;}function handlePropertyComments(enclosingNode,comment){if(enclosingNode&&(enclosingNode.type==="Property"||enclosingNode.type==="ObjectProperty")){addLeadingComment(enclosingNode,comment);return true;}return false;}function handleExportNamedDeclarationComments(enclosingNode,comment){if(enclosingNode&&enclosingNode.type==="ExportNamedDeclaration"){addLeadingComment(enclosingNode,comment);return true;}return false;}function handleOnlyComments(enclosingNode,ast,comment,isLastComment){// With Flow the enclosingNode is undefined so use the AST instead. -if(ast&&ast.body&&ast.body.length===0){if(isLastComment){addDanglingComment(ast,comment);}else{addLeadingComment(ast,comment);}return true;}else if(enclosingNode&&enclosingNode.type==="Program"&&enclosingNode.body.length===0&&enclosingNode.directives&&enclosingNode.directives.length===0){if(isLastComment){addDanglingComment(enclosingNode,comment);}else{addLeadingComment(enclosingNode,comment);}return true;}return false;}function handleForComments(enclosingNode,precedingNode,comment){if(enclosingNode&&(enclosingNode.type==="ForInStatement"||enclosingNode.type==="ForOfStatement")){addLeadingComment(enclosingNode,comment);return true;}return false;}function handleImportDeclarationComments(text,enclosingNode,precedingNode,comment){if(precedingNode&&enclosingNode&&enclosingNode.type==="ImportDeclaration"&&util$2.hasNewline(text,util$2.locEnd(comment))){addTrailingComment(precedingNode,comment);return true;}return false;}function handleAssignmentPatternComments(enclosingNode,comment){if(enclosingNode&&enclosingNode.type==="AssignmentPattern"){addLeadingComment(enclosingNode,comment);return true;}return false;}function handleClassMethodComments(enclosingNode,comment){if(enclosingNode&&enclosingNode.type==="ClassMethod"){addTrailingComment(enclosingNode,comment);return true;}return false;}function handleTypeAliasComments(enclosingNode,followingNode,comment){if(enclosingNode&&enclosingNode.type==="TypeAlias"){addLeadingComment(enclosingNode,comment);return true;}return false;}function handleVariableDeclaratorComments(enclosingNode,followingNode,comment){if(enclosingNode&&enclosingNode.type==="VariableDeclarator"&&followingNode&&(followingNode.type==="ObjectExpression"||followingNode.type==="ArrayExpression")){addLeadingComment(followingNode,comment);return true;}return false;}function printComment(commentPath,options){var comment=commentPath.getValue();comment.printed=true;switch(comment.type||comment.kind){case"Comment":return"#"+comment.value.trimRight();case"CommentBlock":case"Block":{if(isJsDocComment(comment)){return printJsDocComment(comment);}return"/*"+comment.value+"*/";}case"CommentLine":case"Line":// Print shebangs with the proper comment characters -if(options.originalText.slice(util$2.locStart(comment)).startsWith("#!")){return"#!"+comment.value.trimRight();}return"//"+comment.value.trimRight();default:throw new Error("Not a comment: "+JSON.stringify(comment));}}function isJsDocComment(comment){var lines=comment.value.split("\n");return lines.length>1&&lines.slice(0,lines.length-1).every(function(line){return line.trim()[0]==="*";});}function printJsDocComment(comment){var lines=comment.value.split("\n");return concat(["/*",join(hardline,lines.map(function(line,index){return(index>0?" ":"")+(index=4"};var dependencies={"babel-code-frame":"7.0.0-alpha.12","babylon":"7.0.0-beta.28","camelcase":"4.1.0","chalk":"2.1.0","cjk-regex":"1.0.2","cosmiconfig":"3.1.0","dashify":"0.2.2","diff":"3.2.0","emoji-regex":"6.5.1","escape-string-regexp":"1.0.5","esutils":"2.0.2","flow-parser":"0.51.1","get-stream":"3.0.0","globby":"6.1.0","graphql":"0.10.5","ignore":"3.3.7","jest-docblock":"21.3.0-beta.7","jest-validate":"21.1.0","leven":"2.1.0","mem":"1.1.0","minimatch":"3.0.4","minimist":"1.2.0","parse5":"3.0.3","postcss-less":"1.1.1","postcss-media-query-parser":"0.2.3","postcss-scss":"1.0.2","postcss-selector-parser":"2.2.3","postcss-values-parser":"1.3.1","remark-frontmatter":"1.1.0","remark-parse":"4.0.0","semver":"5.4.1","string-width":"2.1.1","strip-bom":"3.0.0","typescript":"2.5.3","typescript-eslint-parser":"git://github.com/eslint/typescript-eslint-parser.git#9c71a627da36e97da52ed2731d58509c952b67ae","unified":"6.1.5"};var devDependencies={"babel-cli":"6.24.1","babel-preset-es2015":"6.24.1","codecov":"2.2.0","cross-env":"5.0.5","eslint":"4.1.1","eslint-friendly-formatter":"3.0.0","eslint-plugin-import":"2.6.1","eslint-plugin-prettier":"2.1.2","eslint-plugin-react":"7.1.0","jest":"21.1.0","mkdirp":"0.5.1","prettier":"1.8.0","rimraf":"2.6.2","rollup":"0.41.6","rollup-plugin-commonjs":"7.0.2","rollup-plugin-json":"2.1.1","rollup-plugin-node-builtins":"2.0.0","rollup-plugin-node-globals":"1.1.0","rollup-plugin-node-resolve":"2.0.0","rollup-plugin-replace":"1.1.1","shelljs":"0.7.8","strip-ansi":"4.0.0","sw-toolbox":"3.6.0","uglify-es":"3.0.28","webpack":"2.6.1"};var scripts={"prepublishOnly":"echo \"Error: must publish from dist/\" && exit 1","prepare-release":"yarn && yarn build && yarn test:dist","test":"jest","test:dist":"cross-env NODE_ENV=production yarn test","test-integration":"jest tests_integration","lint":"cross-env EFF_NO_LINK_RULES=true eslint . --format node_modules/eslint-friendly-formatter","build":"node ./scripts/build/build.js","check-deps":"node ./scripts/check-deps.js"};var _package={name:name,version:version$1,description:description,bin:bin,repository:repository,homepage:homepage,author:author,license:license,main:main,engines:engines,dependencies:dependencies,devDependencies:devDependencies,scripts:scripts};var _package$1=Object.freeze({name:name,version:version$1,description:description,bin:bin,repository:repository,homepage:homepage,author:author,license:license,main:main,engines:engines,dependencies:dependencies,devDependencies:devDependencies,scripts:scripts,default:_package});var assert$2=require$$0;var util$6=util$3;var startsWithNoLookaheadToken$1=util$6.startsWithNoLookaheadToken;function FastPath$1(value){assert$2.ok(this instanceof FastPath$1);this.stack=[value];}// The name of the current property is always the penultimate element of -// this.stack, and always a String. -FastPath$1.prototype.getName=function getName(){var s=this.stack;var len=s.length;if(len>1){return s[len-2];}// Since the name is always a string, null is a safe sentinel value to -// return if we do not know the name of the (root) value. -/* istanbul ignore next */return null;};// The value of the current property is always the final element of -// this.stack. -FastPath$1.prototype.getValue=function getValue(){var s=this.stack;return s[s.length-1];};function getNodeHelper(path,count){var s=path.stack;for(var _i11=s.length-1;_i11>=0;_i11-=2){var value=s[_i11];if(value&&!Array.isArray(value)&&--count<0){return value;}}return null;}FastPath$1.prototype.getNode=function getNode(count){return getNodeHelper(this,~~count);};FastPath$1.prototype.getParentNode=function getParentNode(count){return getNodeHelper(this,~~count+1);};// Temporarily push properties named by string arguments given after the -// callback function onto this.stack, then call the callback with a -// reference to this (modified) FastPath object. Note that the stack will -// be restored to its original state after the callback is finished, so it -// is probably a mistake to retain a reference to the path. -FastPath$1.prototype.call=function call(callback/*, name1, name2, ... */){var s=this.stack;var origLen=s.length;var value=s[origLen-1];var argc=arguments.length;for(var _i12=1;_i12np){return true;}if((po==="||"||po==="??")&&no==="&&"){return true;}if(pp===np&&name==="right"){assert$2.strictEqual(parent.right,node);return true;}if(pp===np&&!util$6.shouldFlatten(po,no)){return true;}// Add parenthesis when working with binary operators -// It's not stricly needed but helps with code understanding -if(util$6.isBitwiseOperator(po)){return true;}return false;}default:return false;}case"TSParenthesizedType":{var grandParent=this.getParentNode(1);if((parent.type==="TypeParameter"||parent.type==="VariableDeclarator"||parent.type==="TypeAnnotation"||parent.type==="GenericTypeAnnotation"||parent.type==="TSTypeReference")&&node.typeAnnotation.type==="TypeAnnotation"&&node.typeAnnotation.typeAnnotation.type!=="TSFunctionType"&&grandParent.type!=="TSTypeOperator"){return false;}// Delegate to inner TSParenthesizedType -if(node.typeAnnotation.type==="TSParenthesizedType"){return false;}return true;}case"SequenceExpression":switch(parent.type){case"ReturnStatement":return false;case"ForStatement":// Although parentheses wouldn't hurt around sequence -// expressions in the head of for loops, traditional style -// dictates that e.g. i++, j++ should not be wrapped with -// parentheses. -return false;case"ExpressionStatement":return name!=="expression";case"ArrowFunctionExpression":// We do need parentheses, but SequenceExpressions are handled -// specially when printing bodies of arrow functions. -return name!=="body";default:// Otherwise err on the side of overparenthesization, adding -// explicit exceptions above if this proves overzealous. -return true;}case"YieldExpression":if(parent.type==="UnaryExpression"||parent.type==="AwaitExpression"||parent.type==="TSAsExpression"||parent.type==="TSNonNullExpression"){return true;}// else fallthrough -case"AwaitExpression":switch(parent.type){case"TaggedTemplateExpression":case"BinaryExpression":case"LogicalExpression":case"SpreadElement":case"SpreadProperty":case"TSAsExpression":case"TSNonNullExpression":return true;case"MemberExpression":return parent.object===node;case"NewExpression":case"CallExpression":return parent.callee===node;case"ConditionalExpression":return parent.test===node;default:return false;}case"ArrayTypeAnnotation":return parent.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return parent.type==="ArrayTypeAnnotation"||parent.type==="NullableTypeAnnotation"||parent.type==="IntersectionTypeAnnotation"||parent.type==="UnionTypeAnnotation";case"NullableTypeAnnotation":return parent.type==="ArrayTypeAnnotation";case"FunctionTypeAnnotation":return parent.type==="UnionTypeAnnotation"||parent.type==="IntersectionTypeAnnotation"||parent.type==="ArrayTypeAnnotation";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof node.value==="string"&&parent.type==="ExpressionStatement"&&(// TypeScript workaround for eslint/typescript-eslint-parser#267 -// See corresponding workaround in printer.js case: "Literal" -options.parser!=="typescript"&&!parent.directive||options.parser==="typescript"&&options.originalText.substr(util$6.locStart(node)-1,1)==="(")){// To avoid becoming a directive -var _grandParent=this.getParentNode(1);return _grandParent.type==="Program"||_grandParent.type==="BlockStatement";}return parent.type==="MemberExpression"&&typeof node.value==="number"&&name==="object"&&parent.object===node;case"AssignmentExpression":{var _grandParent2=this.getParentNode(1);if(parent.type==="ArrowFunctionExpression"&&parent.body===node){return true;}else if(parent.type==="ClassProperty"&&parent.key===node&&parent.computed){return false;}else if(parent.type==="TSPropertySignature"&&parent.name===node){return false;}else if(parent.type==="ForStatement"&&(parent.init===node||parent.update===node)){return false;}else if(parent.type==="ExpressionStatement"){return node.left.type==="ObjectPattern";}else if(parent.type==="TSPropertySignature"&&parent.key===node){return false;}else if(parent.type==="AssignmentExpression"){return false;}else if(parent.type==="SequenceExpression"&&_grandParent2&&_grandParent2.type==="ForStatement"&&(_grandParent2.init===parent||_grandParent2.update===parent)){return false;}return true;}case"ConditionalExpression":switch(parent.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertionExpression":case"TSAsExpression":case"TSNonNullExpression":return true;case"NewExpression":case"CallExpression":return name==="callee"&&parent.callee===node;case"ConditionalExpression":return name==="test"&&parent.test===node;case"MemberExpression":return name==="object"&&parent.object===node;default:return false;}case"FunctionExpression":switch(parent.type){case"CallExpression":return name==="callee";// Not strictly necessary, but it's clearer to the reader if IIFEs are wrapped in parentheses. -case"TaggedTemplateExpression":return true;// This is basically a kind of IIFE. -case"ExportDefaultDeclaration":return true;default:return false;}case"ArrowFunctionExpression":switch(parent.type){case"CallExpression":return name==="callee";case"NewExpression":return name==="callee";case"MemberExpression":return name==="object";case"TSAsExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"BinaryExpression":case"AwaitExpression":case"TSTypeAssertionExpression":return true;case"ConditionalExpression":return name==="test";default:return false;}case"ClassExpression":return parent.type==="ExportDefaultDeclaration";}return false;};function isStatement(node){return node.type==="BlockStatement"||node.type==="BreakStatement"||node.type==="ClassBody"||node.type==="ClassDeclaration"||node.type==="ClassMethod"||node.type==="ClassProperty"||node.type==="ClassPrivateProperty"||node.type==="ContinueStatement"||node.type==="DebuggerStatement"||node.type==="DeclareClass"||node.type==="DeclareExportAllDeclaration"||node.type==="DeclareExportDeclaration"||node.type==="DeclareFunction"||node.type==="DeclareInterface"||node.type==="DeclareModule"||node.type==="DeclareModuleExports"||node.type==="DeclareVariable"||node.type==="DoWhileStatement"||node.type==="ExportAllDeclaration"||node.type==="ExportDefaultDeclaration"||node.type==="ExportNamedDeclaration"||node.type==="ExpressionStatement"||node.type==="ForAwaitStatement"||node.type==="ForInStatement"||node.type==="ForOfStatement"||node.type==="ForStatement"||node.type==="FunctionDeclaration"||node.type==="IfStatement"||node.type==="ImportDeclaration"||node.type==="InterfaceDeclaration"||node.type==="LabeledStatement"||node.type==="MethodDefinition"||node.type==="ReturnStatement"||node.type==="SwitchStatement"||node.type==="ThrowStatement"||node.type==="TryStatement"||node.type==="TSAbstractClassDeclaration"||node.type==="TSEnumDeclaration"||node.type==="TSImportEqualsDeclaration"||node.type==="TSInterfaceDeclaration"||node.type==="TSModuleDeclaration"||node.type==="TSNamespaceExportDeclaration"||node.type==="TSNamespaceFunctionDeclaration"||node.type==="TypeAlias"||node.type==="VariableDeclaration"||node.type==="WhileStatement"||node.type==="WithStatement";}var fastPath=FastPath$1;function traverseDoc(doc,onEnter,onExit,shouldTraverseConditionalGroups){function traverseDocRec(doc){var shouldRecurse=true;if(onEnter){if(onEnter(doc)===false){shouldRecurse=false;}}if(shouldRecurse){if(doc.type==="concat"||doc.type==="fill"){for(var _i18=0;_i180){var parentGroup=groupStack[groupStack.length-1];// Breaks are not propagated through conditional groups because -// the user is expected to manually handle what breaks. -if(!parentGroup.expandedStates){parentGroup.break=true;}}return null;}function propagateBreaks(doc){var alreadyVisited=new Map();var groupStack=[];traverseDoc(doc,function(doc){if(doc.type==="break-parent"){breakParentGroup(groupStack);}if(doc.type==="group"){groupStack.push(doc);if(alreadyVisited.has(doc)){return false;}alreadyVisited.set(doc,true);}},function(doc){if(doc.type==="group"){var _group=groupStack.pop();if(_group.break){breakParentGroup(groupStack);}}},/* shouldTraverseConditionalGroups */true);}function removeLines(doc){// Force this doc into flat mode by statically converting all -// lines into spaces (or soft lines into nothing). Hard lines -// should still output because there's too great of a chance -// of breaking existing assumptions otherwise. -return mapDoc$1(doc,function(d){if(d.type==="line"&&!d.hard){return d.soft?"":" ";}else if(d.type==="if-break"){return d.flatContents||"";}return d;});}function rawText$1(node){return node.extra?node.extra.raw:node.raw;}var docUtils$2={isEmpty:isEmpty$1,willBreak:willBreak$1,isLineNext:isLineNext$1,traverseDoc:traverseDoc,mapDoc:mapDoc$1,propagateBreaks:propagateBreaks,removeLines:removeLines,rawText:rawText$1};var ConfigError$1=function(_Error){_inherits(ConfigError$1,_Error);function ConfigError$1(){_classCallCheck(this,ConfigError$1);return _possibleConstructorReturn(this,(ConfigError$1.__proto__||Object.getPrototypeOf(ConfigError$1)).apply(this,arguments));}return ConfigError$1;}(Error);var DebugError=function(_Error2){_inherits(DebugError,_Error2);function DebugError(){_classCallCheck(this,DebugError);return _possibleConstructorReturn(this,(DebugError.__proto__||Object.getPrototypeOf(DebugError)).apply(this,arguments));}return DebugError;}(Error);var errors={ConfigError:ConfigError$1,DebugError:DebugError};function commonjsRequire(){throw new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');}function createCommonjsModule(fn,module){return module={exports:{}},fn(module,module.exports),module.exports;}var index$20=createCommonjsModule(function(module,exports){// Copyright 2014, 2015, 2016, 2017 Simon Lydell -// License: MIT. (See LICENSE.) -Object.defineProperty(exports,"__esModule",{value:true});// This regex comes from regex.coffee, and is inserted here by generate-index.js -// (run `npm run build`). -exports.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyu]{1,5}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;exports.matchToToken=function(match){var token={type:"invalid",value:match[0]};if(match[1])token.type="string",token.closed=!!(match[3]||match[4]);else if(match[5])token.type="comment";else if(match[6])token.type="comment",token.closed=!!match[7];else if(match[8])token.type="regex";else if(match[9])token.type="number";else if(match[10])token.type="name";else if(match[11])token.type="punctuator";else if(match[12])token.type="whitespace";return token;};});var ast=createCommonjsModule(function(module){/* - Copyright (C) 2013 Yusuke Suzuki - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/(function(){'use strict';function isExpression(node){if(node==null){return false;}switch(node.type){case'ArrayExpression':case'AssignmentExpression':case'BinaryExpression':case'CallExpression':case'ConditionalExpression':case'FunctionExpression':case'Identifier':case'Literal':case'LogicalExpression':case'MemberExpression':case'NewExpression':case'ObjectExpression':case'SequenceExpression':case'ThisExpression':case'UnaryExpression':case'UpdateExpression':return true;}return false;}function isIterationStatement(node){if(node==null){return false;}switch(node.type){case'DoWhileStatement':case'ForInStatement':case'ForStatement':case'WhileStatement':return true;}return false;}function isStatement(node){if(node==null){return false;}switch(node.type){case'BlockStatement':case'BreakStatement':case'ContinueStatement':case'DebuggerStatement':case'DoWhileStatement':case'EmptyStatement':case'ExpressionStatement':case'ForInStatement':case'ForStatement':case'IfStatement':case'LabeledStatement':case'ReturnStatement':case'SwitchStatement':case'ThrowStatement':case'TryStatement':case'VariableDeclaration':case'WhileStatement':case'WithStatement':return true;}return false;}function isSourceElement(node){return isStatement(node)||node!=null&&node.type==='FunctionDeclaration';}function trailingStatement(node){switch(node.type){case'IfStatement':if(node.alternate!=null){return node.alternate;}return node.consequent;case'LabeledStatement':case'ForStatement':case'ForInStatement':case'WhileStatement':case'WithStatement':return node.body;}return null;}function isProblematicIfStatement(node){var current;if(node.type!=='IfStatement'){return false;}if(node.alternate==null){return false;}current=node.consequent;do{if(current.type==='IfStatement'){if(current.alternate==null){return true;}}current=trailingStatement(current);}while(current);return false;}module.exports={isExpression:isExpression,isStatement:isStatement,isIterationStatement:isIterationStatement,isSourceElement:isSourceElement,isProblematicIfStatement:isProblematicIfStatement,trailingStatement:trailingStatement};})();/* vim: set sw=4 ts=4 et tw=80 : */});var code=createCommonjsModule(function(module){/* - Copyright (C) 2013-2014 Yusuke Suzuki - Copyright (C) 2014 Ivan Nikulin - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/(function(){'use strict';var ES6Regex,ES5Regex,NON_ASCII_WHITESPACES,IDENTIFIER_START,IDENTIFIER_PART,ch;// See `tools/generate-identifier-regex.js`. -ES5Regex={// ECMAScript 5.1/Unicode v7.0.0 NonAsciiIdentifierStart: -NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,// ECMAScript 5.1/Unicode v7.0.0 NonAsciiIdentifierPart: -NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/};ES6Regex={// ECMAScript 6/Unicode v7.0.0 NonAsciiIdentifierStart: -NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDE00-\uDE11\uDE13-\uDE2B\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDE00-\uDE2F\uDE44\uDE80-\uDEAA]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/,// ECMAScript 6/Unicode v7.0.0 NonAsciiIdentifierPart: -NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDD0-\uDDDA\uDE00-\uDE11\uDE13-\uDE37\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF01-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function isDecimalDigit(ch){return 0x30<=ch&&ch<=0x39;// 0..9 -}function isHexDigit(ch){return 0x30<=ch&&ch<=0x39||// 0..9 -0x61<=ch&&ch<=0x66||// a..f -0x41<=ch&&ch<=0x46;// A..F -}function isOctalDigit(ch){return ch>=0x30&&ch<=0x37;// 0..7 -}// 7.2 White Space -NON_ASCII_WHITESPACES=[0x1680,0x180E,0x2000,0x2001,0x2002,0x2003,0x2004,0x2005,0x2006,0x2007,0x2008,0x2009,0x200A,0x202F,0x205F,0x3000,0xFEFF];function isWhiteSpace(ch){return ch===0x20||ch===0x09||ch===0x0B||ch===0x0C||ch===0xA0||ch>=0x1680&&NON_ASCII_WHITESPACES.indexOf(ch)>=0;}// 7.3 Line Terminators -function isLineTerminator(ch){return ch===0x0A||ch===0x0D||ch===0x2028||ch===0x2029;}// 7.6 Identifier Names and Identifiers -function fromCodePoint(cp){if(cp<=0xFFFF){return String.fromCharCode(cp);}var cu1=String.fromCharCode(Math.floor((cp-0x10000)/0x400)+0xD800);var cu2=String.fromCharCode((cp-0x10000)%0x400+0xDC00);return cu1+cu2;}IDENTIFIER_START=new Array(0x80);for(ch=0;ch<0x80;++ch){IDENTIFIER_START[ch]=ch>=0x61&&ch<=0x7A||// a..z -ch>=0x41&&ch<=0x5A||// A..Z -ch===0x24||ch===0x5F;// $ (dollar) and _ (underscore) -}IDENTIFIER_PART=new Array(0x80);for(ch=0;ch<0x80;++ch){IDENTIFIER_PART[ch]=ch>=0x61&&ch<=0x7A||// a..z -ch>=0x41&&ch<=0x5A||// A..Z -ch>=0x30&&ch<=0x39||// 0..9 -ch===0x24||ch===0x5F;// $ (dollar) and _ (underscore) -}function isIdentifierStartES5(ch){return ch<0x80?IDENTIFIER_START[ch]:ES5Regex.NonAsciiIdentifierStart.test(fromCodePoint(ch));}function isIdentifierPartES5(ch){return ch<0x80?IDENTIFIER_PART[ch]:ES5Regex.NonAsciiIdentifierPart.test(fromCodePoint(ch));}function isIdentifierStartES6(ch){return ch<0x80?IDENTIFIER_START[ch]:ES6Regex.NonAsciiIdentifierStart.test(fromCodePoint(ch));}function isIdentifierPartES6(ch){return ch<0x80?IDENTIFIER_PART[ch]:ES6Regex.NonAsciiIdentifierPart.test(fromCodePoint(ch));}module.exports={isDecimalDigit:isDecimalDigit,isHexDigit:isHexDigit,isOctalDigit:isOctalDigit,isWhiteSpace:isWhiteSpace,isLineTerminator:isLineTerminator,isIdentifierStartES5:isIdentifierStartES5,isIdentifierPartES5:isIdentifierPartES5,isIdentifierStartES6:isIdentifierStartES6,isIdentifierPartES6:isIdentifierPartES6};})();/* vim: set sw=4 ts=4 et tw=80 : */});var keyword=createCommonjsModule(function(module){/* - Copyright (C) 2013 Yusuke Suzuki - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/(function(){'use strict';var code$$1=code;function isStrictModeReservedWordES6(id){switch(id){case'implements':case'interface':case'package':case'private':case'protected':case'public':case'static':case'let':return true;default:return false;}}function isKeywordES5(id,strict){// yield should not be treated as keyword under non-strict mode. -if(!strict&&id==='yield'){return false;}return isKeywordES6(id,strict);}function isKeywordES6(id,strict){if(strict&&isStrictModeReservedWordES6(id)){return true;}switch(id.length){case 2:return id==='if'||id==='in'||id==='do';case 3:return id==='var'||id==='for'||id==='new'||id==='try';case 4:return id==='this'||id==='else'||id==='case'||id==='void'||id==='with'||id==='enum';case 5:return id==='while'||id==='break'||id==='catch'||id==='throw'||id==='const'||id==='yield'||id==='class'||id==='super';case 6:return id==='return'||id==='typeof'||id==='delete'||id==='switch'||id==='export'||id==='import';case 7:return id==='default'||id==='finally'||id==='extends';case 8:return id==='function'||id==='continue'||id==='debugger';case 10:return id==='instanceof';default:return false;}}function isReservedWordES5(id,strict){return id==='null'||id==='true'||id==='false'||isKeywordES5(id,strict);}function isReservedWordES6(id,strict){return id==='null'||id==='true'||id==='false'||isKeywordES6(id,strict);}function isRestrictedWord(id){return id==='eval'||id==='arguments';}function isIdentifierNameES5(id){var i,iz,ch;if(id.length===0){return false;}ch=id.charCodeAt(0);if(!code$$1.isIdentifierStartES5(ch)){return false;}for(i=1,iz=id.length;i=iz){return false;}lowCh=id.charCodeAt(i);if(!(0xDC00<=lowCh&&lowCh<=0xDFFF)){return false;}ch=decodeUtf16(ch,lowCh);}if(!check(ch)){return false;}check=code$$1.isIdentifierPartES6;}return true;}function isIdentifierES5(id,strict){return isIdentifierNameES5(id)&&!isReservedWordES5(id,strict);}function isIdentifierES6(id,strict){return isIdentifierNameES6(id)&&!isReservedWordES6(id,strict);}module.exports={isKeywordES5:isKeywordES5,isKeywordES6:isKeywordES6,isReservedWordES5:isReservedWordES5,isReservedWordES6:isReservedWordES6,isRestrictedWord:isRestrictedWord,isIdentifierNameES5:isIdentifierNameES5,isIdentifierNameES6:isIdentifierNameES6,isIdentifierES5:isIdentifierES5,isIdentifierES6:isIdentifierES6};})();/* vim: set sw=4 ts=4 et tw=80 : */});var utils=createCommonjsModule(function(module,exports){/* - Copyright (C) 2013 Yusuke Suzuki - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/(function(){'use strict';exports.ast=ast;exports.code=code;exports.keyword=keyword;})();/* vim: set sw=4 ts=4 et tw=80 : */});var index$24=createCommonjsModule(function(module){'use strict';function assembleStyles(){var styles={modifiers:{reset:[0,0],bold:[1,22],// 21 isn't widely supported and 22 does the same thing -dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},colors:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39]},bgColors:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49]}};// fix humans -styles.colors.grey=styles.colors.gray;Object.keys(styles).forEach(function(groupName){var group=styles[groupName];Object.keys(group).forEach(function(styleName){var style=group[styleName];styles[styleName]=group[styleName]={open:'\x1B['+style[0]+'m',close:'\x1B['+style[1]+'m'};});Object.defineProperty(styles,groupName,{value:group,enumerable:false});});return styles;}Object.defineProperty(module,'exports',{enumerable:true,get:assembleStyles});});var index$28=function index$28(){return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g;};var ansiRegex$1=index$28();var index$26=function index$26(str){return typeof str==='string'?str.replace(ansiRegex$1,''):str;};var index$32=function index$32(){return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g;};var ansiRegex$2=index$32;var re=new RegExp(ansiRegex$2().source);// remove the `g` flag -var index$30=re.test.bind(re);var argv=process.argv;var terminator=argv.indexOf('--');var hasFlag=function hasFlag(flag){flag='--'+flag;var pos=argv.indexOf(flag);return pos!==-1&&(terminator!==-1?pos1){// don't slice `arguments`, it prevents v8 optimizations -for(var a=1;a3&&arguments[3]!==undefined?arguments[3]:{};if(!deprecationWarningShown){deprecationWarningShown=true;var deprecationError=new Error("Passing lineNumber and colNumber is deprecated to babel-code-frame. Please use `codeFrameColumns`.");deprecationError.name="DeprecationWarning";if(process.emitWarning){process.emitWarning(deprecationError);}else{console.warn(deprecationError);}}colNumber=Math.max(colNumber,0);var location={start:{column:colNumber,line:lineNumber}};return codeFrameColumns(rawLines,location,opts);};var _jsTokens=index$20;var _jsTokens2=_interopRequireDefault(_jsTokens);var _esutils=utils;var _esutils2=_interopRequireDefault(_esutils);var _chalk=index$22;var _chalk2=_interopRequireDefault(_chalk);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var deprecationWarningShown=false;function getDefs(chalk){return{keyword:chalk.cyan,capitalized:chalk.yellow,jsx_tag:chalk.yellow,punctuator:chalk.yellow,number:chalk.magenta,string:chalk.green,regex:chalk.magenta,comment:chalk.grey,invalid:chalk.white.bgRed.bold,gutter:chalk.grey,marker:chalk.red.bold};}var NEWLINE=/\r\n|[\n\r\u2028\u2029]/;var JSX_TAG=/^[a-z][\w-]*$/i;var BRACKET=/^[()\[\]{}]$/;function getTokenType(match){var _match$slice=match.slice(-2),offset=_match$slice[0],text=_match$slice[1];var token=(0,_jsTokens.matchToToken)(match);if(token.type==="name"){if(_esutils2.default.keyword.isReservedWordES6(token.value)){return"keyword";}if(JSX_TAG.test(token.value)&&(text[offset-1]==="<"||text.substr(offset-2,2)=="2&&arguments[2]!==undefined?arguments[2]:{};var highlighted=opts.highlightCode&&_chalk2.default.supportsColor||opts.forceColor;var chalk=_chalk2.default;if(opts.forceColor){chalk=new _chalk2.default.constructor({enabled:true});}var maybeHighlight=function maybeHighlight(chalkFn,string){return highlighted?chalkFn(string):string;};var defs=getDefs(chalk);if(highlighted)rawLines=highlight(defs,rawLines);var lines=rawLines.split(NEWLINE);var _getMarkerLines=getMarkerLines(loc,lines,opts),start=_getMarkerLines.start,end=_getMarkerLines.end,markerLines=_getMarkerLines.markerLines;var numberMaxWidth=String(end).length;var frame=lines.slice(start,end).map(function(line,index){var number=start+1+index;var paddedNumber=(" "+number).slice(-numberMaxWidth);var gutter=" "+paddedNumber+" | ";var hasMarker=markerLines[number];if(hasMarker){var markerLine="";if(Array.isArray(hasMarker)){var markerSpacing=line.slice(0,Math.max(hasMarker[0]-1,0)).replace(/[^\t]/g," ");var numberOfMarkers=hasMarker[1]||1;markerLine=["\n ",maybeHighlight(defs.gutter,gutter.replace(/\d/g," ")),markerSpacing,maybeHighlight(defs.marker,"^").repeat(numberOfMarkers)].join("");}return[maybeHighlight(defs.marker,">"),maybeHighlight(defs.gutter,gutter),line,markerLine].join("");}else{return" "+maybeHighlight(defs.gutter,gutter)+line;}}).join("\n");if(highlighted){return chalk.reset(frame);}else{return frame;}}});var path=require$$0$1;var ConfigError=errors.ConfigError;var parsers={get flow(){return eval("require")("./parser-flow");},get graphql(){return eval("require")("./parser-graphql");},get parse5(){return eval("require")("./parser-parse5");},get babylon(){return eval("require")("./parser-babylon");},get typescript(){return eval("require")("./parser-typescript");},get css(){return eval("require")("./parser-postcss");},get less(){return eval("require")("./parser-postcss");},get scss(){return eval("require")("./parser-postcss");},get json(){return eval("require")("./parser-babylon");},get markdown(){return eval("require")("./parser-markdown");}};function resolveParseFunction(opts){if(typeof opts.parser==="function"){return opts.parser;}if(typeof opts.parser==="string"){if(parsers.hasOwnProperty(opts.parser)){return parsers[opts.parser];}try{return eval("require")(path.resolve(process.cwd(),opts.parser));}catch(err){/* istanbul ignore next */throw new ConfigError('Couldn\'t resolve parser "'+opts.parser+'"');}}/* istanbul ignore next */return parsers.babylon;}function parse(text,opts){var parseFunction=resolveParseFunction(opts);try{return parseFunction(text,parsers,opts);}catch(error){var loc=error.loc;if(loc){var codeFrame=index$18;error.codeFrame=codeFrame.codeFrameColumns(text,loc,{highlightCode:true});error.message+="\n"+error.codeFrame;throw error;}/* istanbul ignore next */throw error.stack;}}var parser$1={parse:parse};var util$7=util$3;var docUtils$1=docUtils$2;var docBuilders$4=docBuilders$1;var comments$4=comments$1;var indent$3=docBuilders$4.indent;var hardline$3=docBuilders$4.hardline;var softline$2=docBuilders$4.softline;var concat$3=docBuilders$4.concat;function printSubtree(subtreeParser,path,print,options){var next=Object.assign({},{transformDoc:function transformDoc(doc){return doc;}},subtreeParser);next.options=Object.assign({},options,next.options,{originalText:next.text});if(next.options.parser==="json"){next.options.trailingComma="none";}var ast=parser$1.parse(next.text,next.options);var astComments=ast.comments;delete ast.comments;comments$4.attach(astComments,ast,next.text,next.options);var nextDoc=printer.printAstToDoc(ast,next.options);return next.transformDoc(nextDoc,{path:path,print:print});}/** - * @returns {{ text, options?, transformDoc? } | void} - */function getSubtreeParser(path,options){switch(options.parser){case"parse5":return fromHtmlParser2(path,options);case"babylon":case"flow":case"typescript":return fromBabylonFlowOrTypeScript(path,options);case"markdown":return fromMarkdown(path,options);}}function fromMarkdown(path,options){var node=path.getValue();if(node.type==="code"){var _parser=getParserName(node.lang);if(_parser){var styleUnit=options.__inJsTemplate?"~":"`";var style=styleUnit.repeat(Math.max(3,util$7.getMaxContinuousCount(node.value,styleUnit)+1));return{options:{parser:_parser},transformDoc:function transformDoc(doc){return concat$3([style,node.lang,hardline$3,doc,style]);},text:node.value};}}return null;function getParserName(lang){switch(lang){case"js":case"jsx":case"javascript":return"babylon";case"ts":case"tsx":case"typescript":return"typescript";case"gql":case"graphql":return"graphql";case"css":return"css";case"less":return"less";case"scss":return"scss";case"json":case"json5":return"json";case"md":case"markdown":return"markdown";default:return null;}}}function fromBabylonFlowOrTypeScript(path){var node=path.getValue();switch(node.type){case"TemplateLiteral":{var isCss=[isStyledJsx,isStyledComponents].some(function(isIt){return isIt(path);});if(isCss){// Get full template literal with expressions replaced by placeholders -var rawQuasis=node.quasis.map(function(q){return q.value.raw;});var text=rawQuasis.join("@prettier-placeholder");return{options:{parser:"css"},transformDoc:transformCssDoc,text:text};}break;}case"TemplateElement":{var parent=path.getParentNode();var parentParent=path.getParentNode(1);/* - * react-relay and graphql-tag - * graphql`...` - * graphql.experimental`...` - * gql`...` - */if(// We currently don't support expression inside GraphQL template literals -parent.expressions.length===0&&parentParent&&(parentParent.type==="TaggedTemplateExpression"&&(parentParent.tag.type==="MemberExpression"&&parentParent.tag.object.name==="graphql"&&parentParent.tag.property.name==="experimental"||parentParent.tag.type==="Identifier"&&(parentParent.tag.name==="gql"||parentParent.tag.name==="graphql"))||parentParent.type==="CallExpression"&&parentParent.callee.type==="Identifier"&&parentParent.callee.name==="graphql")){return{options:{parser:"graphql"},transformDoc:function transformDoc(doc){return concat$3([indent$3(concat$3([softline$2,stripTrailingHardline(doc)])),softline$2]);},text:parent.quasis[0].value.raw};}/** - * md`...` - * markdown`...` - */if(parentParent&&parentParent.type==="TaggedTemplateExpression"&&parent.quasis.length===1&&parentParent.tag.type==="Identifier"&&(parentParent.tag.name==="md"||parentParent.tag.name==="markdown")){return{options:{parser:"markdown",__inJsTemplate:true},transformDoc:function transformDoc(doc){return concat$3([indent$3(concat$3([softline$2,stripTrailingHardline(escapeBackticks(doc))])),softline$2]);},// leading whitespaces matter in markdown -text:dedent(parent.quasis[0].value.cooked)};}break;}}}function dedent(str){var spaces=str.match(/\n^( *)/m)[1].length;return str.replace(new RegExp('^ {'+spaces+'}',"gm"),"").trim();}function escapeBackticks(doc){return util$7.mapDoc(doc,function(currentDoc){if(!currentDoc.parts){return currentDoc;}var parts=[];currentDoc.parts.forEach(function(part){if(typeof part==="string"){parts.push(part.replace(/`/g,"\\`"));}else{parts.push(part);}});return Object.assign({},currentDoc,{parts:parts});});}function fromHtmlParser2(path,options){var node=path.getValue();switch(node.type){case"text":{var parent=path.getParentNode();// Inline JavaScript -if(parent.type==="script"&&(!parent.attribs.lang&&!parent.attribs.lang||parent.attribs.type==="text/javascript"||parent.attribs.type==="application/javascript")){var _parser2=options.parser==="flow"?"flow":"babylon";return{options:{parser:_parser2},transformDoc:function transformDoc(doc){return concat$3([hardline$3,doc]);},text:getText(options,node)};}// Inline TypeScript -if(parent.type==="script"&&(parent.attribs.type==="application/x-typescript"||parent.attribs.lang==="ts")){return{options:{parser:"typescript"},transformDoc:function transformDoc(doc){return concat$3([hardline$3,doc]);},text:getText(options,node)};}// Inline Styles -if(parent.type==="style"){return{options:{parser:"css"},transformDoc:function transformDoc(doc){return concat$3([hardline$3,stripTrailingHardline(doc)]);},text:getText(options,node)};}break;}case"attribute":{/* - * Vue binding sytax: JS expressions - * :class="{ 'some-key': value }" - * v-bind:id="'list-' + id" - * v-if="foo && !bar" - * @click="someFunction()" - */if(/(^@)|(^v-)|:/.test(node.key)&&!/^\w+$/.test(node.value)){return{text:node.value,options:{parser:parseJavaScriptExpression,// Use singleQuote since HTML attributes use double-quotes. -// TODO(azz): We still need to do an entity escape on the attribute. -singleQuote:true},transformDoc:function transformDoc(doc){return concat$3([node.key,'="',util$7.hasNewlineInRange(node.value,0,node.value.length)?doc:docUtils$1.removeLines(doc),'"']);}};}}}}function transformCssDoc(quasisDoc,parent){var parentNode=parent.path.getValue();var isEmpty=parentNode.quasis.length===1&&!parentNode.quasis[0].value.raw.trim();if(isEmpty){return"``";}var expressionDocs=parentNode.expressions?parent.path.map(parent.print,"expressions"):[];var newDoc=replacePlaceholders(quasisDoc,expressionDocs);/* istanbul ignore if */if(!newDoc){throw new Error("Couldn't insert all the expressions");}return concat$3(["`",indent$3(concat$3([hardline$3,stripTrailingHardline(newDoc)])),softline$2,"`"]);}// Search all the placeholders in the quasisDoc tree -// and replace them with the expression docs one by one -// returns a new doc with all the placeholders replaced, -// or null if it couldn't replace any expression -function replacePlaceholders(quasisDoc,expressionDocs){if(!expressionDocs||!expressionDocs.length){return quasisDoc;}var expressions=expressionDocs.slice();var newDoc=docUtils$1.mapDoc(quasisDoc,function(doc){if(!doc||!doc.parts||!doc.parts.length){return doc;}var parts=doc.parts;if(parts.length>1&&parts[0]==="@"&&typeof parts[1]==="string"&&parts[1].startsWith("prettier-placeholder")){// If placeholder is split, join it -var at=parts[0];var placeholder=parts[1];var rest=parts.slice(2);parts=[at+placeholder].concat(rest);}if(typeof parts[0]==="string"&&parts[0].startsWith("@prettier-placeholder")){var _placeholder=parts[0];var _rest=parts.slice(1);// When the expression has a suffix appended, like: -// animation: linear ${time}s ease-out; -var suffix=_placeholder.slice("@prettier-placeholder".length);var expression=expressions.shift();parts=["${",expression,"}"+suffix].concat(_rest);}return Object.assign({},doc,{parts:parts});});return expressions.length===0?newDoc:null;}function parseJavaScriptExpression(text,parsers){// Force parsing as an expression -var ast=parsers.babylon('('+text+')');// Extract expression from the declaration -return{type:"File",program:ast.program.body[0].expression};}function getText(options,node){return options.originalText.slice(util$7.locStart(node),util$7.locEnd(node));}function stripTrailingHardline(doc){// HACK remove ending hardline, original PR: #1984 -if(doc.type==="concat"&&doc.parts[0].type==="concat"&&doc.parts[0].parts.length===2&&// doc.parts[0].parts[1] === hardline : -doc.parts[0].parts[1].type==="concat"&&doc.parts[0].parts[1].parts.length===2&&doc.parts[0].parts[1].parts[0].hard&&doc.parts[0].parts[1].parts[1].type==="break-parent"){return doc.parts[0].parts[0];}return doc;}/** - * Template literal in this context: - * - */function isStyledJsx(path){var node=path.getValue();var parent=path.getParentNode();var parentParent=path.getParentNode(1);return parentParent&&node.quasis&&parent.type==="JSXExpressionContainer"&&parentParent.type==="JSXElement"&&parentParent.openingElement.name.name==="style"&&parentParent.openingElement.attributes.some(function(attribute){return attribute.name.name==="jsx";});}/** - * styled-components template literals - */function isStyledComponents(path){var parent=path.getParentNode();if(!parent||parent.type!=="TaggedTemplateExpression"){return false;}var tag=parent.tag;switch(tag.type){case"MemberExpression":return(// styled.foo`` -isStyledIdentifier(tag.object)||// Component.extend`` -/^[A-Z]/.test(tag.object.name)&&tag.property.name==="extend");case"CallExpression":return(// styled(Component)`` -isStyledIdentifier(tag.callee)||tag.callee.type==="MemberExpression"&&(// styled.foo.attr({})`` -tag.callee.object.type==="MemberExpression"&&isStyledIdentifier(tag.callee.object.object)||// styled(Component).attr({})`` -tag.callee.object.type==="CallExpression"&&isStyledIdentifier(tag.callee.object.callee)));case"Identifier":// css`` -return tag.name==="css";default:return false;}}function isStyledIdentifier(node){return node.type==="Identifier"&&node.name==="styled";}var multiparser$1={getSubtreeParser:getSubtreeParser,printSubtree:printSubtree};var docBuilders$5=docBuilders$1;var concat$4=docBuilders$5.concat;var join$3=docBuilders$5.join;var hardline$4=docBuilders$5.hardline;var line$2=docBuilders$5.line;var softline$3=docBuilders$5.softline;var group$2=docBuilders$5.group;var indent$4=docBuilders$5.indent;var ifBreak$2=docBuilders$5.ifBreak;function genericPrint$1(path,options,print){var n=path.getValue();if(!n){return"";}if(typeof n==="string"){return n;}switch(n.kind){case"Document":{return concat$4([join$3(concat$4([hardline$4,hardline$4]),path.map(print,"definitions")),hardline$4]);}case"OperationDefinition":{return concat$4([n.name===null?"":n.operation,n.name?concat$4([" ",path.call(print,"name")]):"",n.variableDefinitions&&n.variableDefinitions.length?group$2(concat$4(["(",indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2("",", "),softline$3]),path.map(print,"variableDefinitions"))])),softline$3,")"])):"",printDirectives(path,print,n),n.selectionSet?n.name===null?"":" ":"",path.call(print,"selectionSet")]);}case"FragmentDefinition":{return concat$4(["fragment ",path.call(print,"name")," on ",path.call(print,"typeCondition"),printDirectives(path,print,n)," ",path.call(print,"selectionSet")]);}case"SelectionSet":{return concat$4(["{",indent$4(concat$4([hardline$4,join$3(hardline$4,path.map(print,"selections"))])),hardline$4,"}"]);}case"Field":{return group$2(concat$4([n.alias?concat$4([path.call(print,"alias"),": "]):"",path.call(print,"name"),n.arguments.length>0?group$2(concat$4(["(",indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2("",", "),softline$3]),path.map(print,"arguments"))])),softline$3,")"])):"",printDirectives(path,print,n),n.selectionSet?" ":"",path.call(print,"selectionSet")]));}case"Name":{return n.value;}case"StringValue":{return concat$4(['"',n.value.replace(/["\\]/g,"\\$&"),'"']);}case"IntValue":case"FloatValue":case"EnumValue":{return n.value;}case"BooleanValue":{return n.value?"true":"false";}case"NullValue":{return"null";}case"Variable":{return concat$4(["$",path.call(print,"name")]);}case"ListValue":{return group$2(concat$4(["[",indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2("",", "),softline$3]),path.map(print,"values"))])),softline$3,"]"]));}case"ObjectValue":{return group$2(concat$4(["{",options.bracketSpacing&&n.fields.length>0?" ":"",indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2("",", "),softline$3]),path.map(print,"fields"))])),softline$3,ifBreak$2("",options.bracketSpacing&&n.fields.length>0?" ":""),"}"]));}case"ObjectField":case"Argument":{return concat$4([path.call(print,"name"),": ",path.call(print,"value")]);}case"Directive":{return concat$4(["@",path.call(print,"name"),n.arguments.length>0?group$2(concat$4(["(",indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2("",", "),softline$3]),path.map(print,"arguments"))])),softline$3,")"])):""]);}case"NamedType":{return path.call(print,"name");}case"VariableDefinition":{return concat$4([path.call(print,"variable"),": ",path.call(print,"type"),n.defaultValue?concat$4([" = ",path.call(print,"defaultValue")]):""]);}case"TypeExtensionDefinition":{return concat$4(["extend ",path.call(print,"definition")]);}case"ObjectTypeDefinition":{return concat$4(["type ",path.call(print,"name"),n.interfaces.length>0?concat$4([" implements ",join$3(", ",path.map(print,"interfaces"))]):"",printDirectives(path,print,n)," {",n.fields.length>0?indent$4(concat$4([hardline$4,join$3(hardline$4,path.map(print,"fields"))])):"",hardline$4,"}"]);}case"FieldDefinition":{return concat$4([path.call(print,"name"),n.arguments.length>0?group$2(concat$4(["(",indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2("",", "),softline$3]),path.map(print,"arguments"))])),softline$3,")"])):"",": ",path.call(print,"type"),printDirectives(path,print,n)]);}case"DirectiveDefinition":{return concat$4(["directive ","@",path.call(print,"name"),n.arguments.length>0?group$2(concat$4(["(",indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2("",", "),softline$3]),path.map(print,"arguments"))])),softline$3,")"])):"",concat$4([" on ",join$3(" | ",path.map(print,"locations"))])]);}case"EnumTypeDefinition":{return concat$4(["enum ",path.call(print,"name"),printDirectives(path,print,n)," {",n.values.length>0?indent$4(concat$4([hardline$4,join$3(hardline$4,path.map(print,"values"))])):"",hardline$4,"}"]);}case"EnumValueDefinition":{return concat$4([path.call(print,"name"),printDirectives(path,print,n)]);}case"InputValueDefinition":{return concat$4([path.call(print,"name"),": ",path.call(print,"type"),n.defaultValue?concat$4([" = ",path.call(print,"defaultValue")]):"",printDirectives(path,print,n)]);}case"InputObjectTypeDefinition":{return concat$4(["input ",path.call(print,"name"),printDirectives(path,print,n)," {",n.fields.length>0?indent$4(concat$4([hardline$4,join$3(hardline$4,path.map(print,"fields"))])):"",hardline$4,"}"]);}case"SchemaDefinition":{return concat$4(["schema",printDirectives(path,print,n)," {",n.operationTypes.length>0?indent$4(concat$4([hardline$4,join$3(hardline$4,path.map(print,"operationTypes"))])):"",hardline$4,"}"]);}case"OperationTypeDefinition":{return concat$4([path.call(print,"operation"),": ",path.call(print,"type")]);}case"InterfaceTypeDefinition":{return concat$4(["interface ",path.call(print,"name"),printDirectives(path,print,n)," {",n.fields.length>0?indent$4(concat$4([hardline$4,join$3(hardline$4,path.map(print,"fields"))])):"",hardline$4,"}"]);}case"FragmentSpread":{return concat$4(["...",path.call(print,"name"),printDirectives(path,print,n)]);}case"InlineFragment":{return concat$4(["...",n.typeCondition?concat$4([" on ",path.call(print,"typeCondition")]):"",printDirectives(path,print,n)," ",path.call(print,"selectionSet")]);}case"UnionTypeDefinition":{return group$2(concat$4(["union ",path.call(print,"name")," =",ifBreak$2(""," "),indent$4(concat$4([ifBreak$2(concat$4([line$2," "])),join$3(concat$4([line$2,"| "]),path.map(print,"types"))]))]));}case"ScalarTypeDefinition":{return concat$4(["scalar ",path.call(print,"name"),printDirectives(path,print,n)]);}case"NonNullType":{return concat$4([path.call(print,"type"),"!"]);}case"ListType":{return concat$4(["[",path.call(print,"type"),"]"]);}default:/* istanbul ignore next */throw new Error("unknown graphql type: "+JSON.stringify(n.kind));}}function printDirectives(path,print,n){if(n.directives.length===0){return"";}return concat$4([" ",group$2(indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2(""," "),softline$3]),path.map(print,"directives"))])))]);}var printerGraphql=genericPrint$1;var util$8=util$3;var docBuilders$6=docBuilders$1;var concat$5=docBuilders$6.concat;var join$4=docBuilders$6.join;var hardline$5=docBuilders$6.hardline;var line$3=docBuilders$6.line;var softline$4=docBuilders$6.softline;var group$3=docBuilders$6.group;var indent$5=docBuilders$6.indent;// const ifBreak = docBuilders.ifBreak; -// http://w3c.github.io/html/single-page.html#void-elements -var voidTags={area:true,base:true,br:true,col:true,embed:true,hr:true,img:true,input:true,link:true,meta:true,param:true,source:true,track:true,wbr:true};function genericPrint$2(path,options,print){var n=path.getValue();if(!n){return"";}if(typeof n==="string"){return n;}switch(n.type){case"root":{return printChildren(path,print);}case"directive":{return concat$5(["<",n.data,">",hardline$5]);}case"text":{return n.data.replace(/\s+/g," ").trim();}case"script":case"style":case"tag":{var selfClose=voidTags[n.name]?">":" />";var children=printChildren(path,print);var _hasNewline=util$8.hasNewlineInRange(options.originalText,util$8.locStart(n),util$8.locEnd(n));return group$3(concat$5([_hasNewline?hardline$5:"","<",n.name,printAttributes(path,print),n.children.length?">":selfClose,n.name.toLowerCase()==="html"?concat$5([hardline$5,children]):indent$5(children),n.children.length?concat$5([softline$4,""]):hardline$5]));}case"comment":{return concat$5([""]);}case"attribute":{if(!n.value){return n.key;}return concat$5([n.key,'="',n.value,'"']);}default:/* istanbul ignore next */throw new Error("unknown htmlparser2 type: "+n.type);}}function printAttributes(path,print){var node=path.getValue();return concat$5([node.attributes.length?" ":"",indent$5(join$4(line$3,path.map(print,"attributes")))]);}function printChildren(path,print){var children=[];path.each(function(childPath){var child=childPath.getValue();if(child.type!=="text"){children.push(hardline$5);}children.push(childPath.call(print));},"children");return concat$5(children);}var printerHtmlparser2=genericPrint$2;var util$9=util$3;var docBuilders$7=docBuilders$1;var concat$6=docBuilders$7.concat;var join$5=docBuilders$7.join;var line$4=docBuilders$7.line;var hardline$6=docBuilders$7.hardline;var softline$5=docBuilders$7.softline;var group$4=docBuilders$7.group;var fill$2=docBuilders$7.fill;var indent$6=docBuilders$7.indent;var docUtils$4=docUtils$2;var removeLines$1=docUtils$4.removeLines;function genericPrint$3(path,options,print){var n=path.getValue();/* istanbul ignore if */if(!n){return"";}if(typeof n==="string"){return n;}switch(n.type){case"css-root":{return concat$6([printNodeSequence(path,options,print),hardline$6]);}case"css-comment":{if(n.raws.content){return n.raws.content;}var text=options.originalText.slice(util$9.locStart(n),util$9.locEnd(n));var _rawText=n.raws.text||n.text;// Workaround a bug where the location is off. -// https://github.com/postcss/postcss-scss/issues/63 -if(text.indexOf(_rawText)===-1){if(n.raws.inline){return concat$6(["// ",_rawText]);}return concat$6(["/* ",_rawText," */"]);}return text;}case"css-rule":{return concat$6([path.call(print,"selector"),n.important?" !important":"",n.nodes?concat$6([" {",n.nodes.length>0?indent$6(concat$6([hardline$6,printNodeSequence(path,options,print)])):"",hardline$6,"}"]):";"]);}case"css-decl":{// When the following less construct &:extend(.foo); is parsed with scss, -// it will put a space after `:` and break it. Ideally we should parse -// less files with less, but we can hardcode this to work with scss as -// well. -var isValueExtend=n.value.type==="value-root"&&n.value.group.type==="value-value"&&n.value.group.group.type==="value-func"&&n.value.group.group.value==="extend";var isComposed=n.value.type==="value-root"&&n.value.group.type==="value-value"&&n.prop==="composes";return concat$6([n.raws.before.replace(/[\s;]/g,""),maybeToLowerCase(n.prop),":",isValueExtend?"":" ",isComposed?removeLines$1(path.call(print,"value")):path.call(print,"value"),n.important?" !important":"",n.nodes?concat$6([" {",indent$6(concat$6([softline$5,printNodeSequence(path,options,print)])),softline$5,"}"]):";"]);}case"css-atrule":{var hasParams=n.params&&!(n.params.type==="media-query-list"&&n.params.value==="");var isDetachedRulesetCall=hasParams&&n.params.type==="media-query-list"&&/^\(\s*\)$/.test(n.params.value);return concat$6(["@",// If a Less file ends up being parsed with the SCSS parser, Less -// variable declarations will be parsed as atrules with names ending -// with a colon, so keep the original case then. -isDetachedRulesetCall||n.name.endsWith(":")?n.name:maybeToLowerCase(n.name),hasParams?concat$6([isDetachedRulesetCall?"":" ",path.call(print,"params")]):"",n.nodes?concat$6([" {",indent$6(concat$6([n.nodes.length>0?softline$5:"",printNodeSequence(path,options,print)])),softline$5,"}"]):";"]);}case"css-import":{return concat$6(["@",maybeToLowerCase(n.name)," ",n.directives?concat$6([n.directives," "]):"",adjustStrings(n.importPath,options),n.nodes.length>0?concat$6([" {",indent$6(concat$6([softline$5,printNodeSequence(path,options,print)])),softline$5,"}"]):";"]);}// postcss-media-query-parser -case"media-query-list":{var parts=[];path.each(function(childPath){var node=childPath.getValue();if(node.type==="media-query"&&node.value===""){return;}parts.push(childPath.call(print));},"nodes");return group$4(indent$6(join$5(concat$6([",",line$4]),parts)));}case"media-query":{return join$5(" ",path.map(print,"nodes"));}case"media-type":{var parent=path.getParentNode(2);if(parent.type==="css-atrule"&&parent.name.toLowerCase()==="charset"){return n.value;}return adjustNumbers(adjustStrings(n.value,options));}case"media-feature-expression":{if(!n.nodes){return n.value;}return concat$6(["(",concat$6(path.map(print,"nodes")),")"]);}case"media-feature":{return maybeToLowerCase(adjustStrings(n.value.replace(/ +/g," "),options));}case"media-colon":{return concat$6([n.value," "]);}case"media-value":{return adjustNumbers(adjustStrings(n.value,options));}case"media-keyword":{return adjustStrings(n.value,options);}case"media-url":{return adjustStrings(n.value,options);}case"media-unknown":{return adjustStrings(n.value,options);}// postcss-selector-parser -case"selector-root-invalid":{// This is likely a SCSS nested property: `background: { color: red; }`. -return adjustNumbers(adjustStrings(maybeToLowerCase(n.value),options));}case"selector-root":{return group$4(join$5(concat$6([",",hardline$6]),path.map(print,"nodes")));}case"selector-comment":{return n.value;}case"selector-string":{return adjustStrings(n.value,options);}case"selector-tag":{var _parent2=path.getParentNode();var _index=_parent2.nodes.indexOf(n);var previous=_index>0?_parent2.nodes[_index-1]:null;return previous&&previous.type==="selector-nesting"?n.value:maybeToLowerCase(n.value);}case"selector-id":{return concat$6(["#",n.value]);}case"selector-class":{return concat$6([".",adjustNumbers(adjustStrings(n.value,options))]);}case"selector-attribute":{return concat$6(["[",maybeToLowerCase(n.attribute),n.operator?n.operator:"",n.value?quoteAttributeValue(adjustStrings(n.value,options),options):"",n.insensitive?" i":"","]"]);}case"selector-combinator":{if(n.value==="+"||n.value===">"||n.value==="~"){var _parent3=path.getParentNode();var _leading=_parent3.type==="selector-selector"&&_parent3.nodes[0]===n?"":line$4;return concat$6([_leading,n.value," "]);}var leading=n.value.trim().startsWith("(")?line$4:"";var value=adjustNumbers(adjustStrings(n.value.trim(),options))||line$4;return concat$6([leading,value]);}case"selector-universal":{return n.value;}case"selector-selector":{return group$4(indent$6(concat$6(path.map(print,"nodes"))));}case"selector-pseudo":{return concat$6([maybeToLowerCase(n.value),n.nodes&&n.nodes.length>0?concat$6(["(",join$5(", ",path.map(print,"nodes")),")"]):""]);}case"selector-nesting":{return printValue(n.value);}// postcss-values-parser -case"value-root":{return path.call(print,"group");}case"value-comma_group":{var _parent4=path.getParentNode();var declParent=void 0;var _i19=0;do{declParent=path.getParentNode(_i19++);}while(declParent&&declParent.type!=="css-decl");var declParentProp=declParent.prop.toLowerCase();var isGridValue=_parent4.type==="value-value"&&(declParentProp==="grid"||declParentProp.startsWith("grid-template"));var printed=path.map(print,"groups");var _parts=[];var didBreak=false;for(var _i20=0;_i200&&n.groups[0].type==="value-comma_group"&&n.groups[0].groups.length>0&&n.groups[0].groups[0].type==="value-word"&&n.groups[0].groups[0].value==="data")){return concat$6([n.open?path.call(print,"open"):"",join$5(",",path.map(print,"groups")),n.close?path.call(print,"close"):""]);}if(!n.open){var _printed=path.map(print,"groups");var res=[];for(var _i21=0;_i21<_printed.length;_i21++){if(_i21!==0){res.push(concat$6([",",line$4]));}res.push(_printed[_i21]);}return group$4(indent$6(fill$2(res)));}var declaration=path.getParentNode(2);var isMap=declaration&&declaration.type==="css-decl"&&declaration.prop.startsWith("$");return group$4(concat$6([n.open?path.call(print,"open"):"",indent$6(concat$6([softline$5,join$5(concat$6([",",isMap?hardline$6:line$4]),path.map(print,"groups"))])),softline$5,n.close?path.call(print,"close"):""]));}case"value-value":{return path.call(print,"group");}case"value-func":{return concat$6([n.value,path.call(print,"group")]);}case"value-paren":{if(n.raws.before!==""){return concat$6([line$4,n.value]);}return n.value;}case"value-number":{return concat$6([printNumber$1(n.value),maybeToLowerCase(n.unit)]);}case"value-operator":{return n.value;}case"value-word":{if(n.isColor&&n.isHex){return n.value.toLowerCase();}return n.value;}case"value-colon":{return n.value;}case"value-comma":{return concat$6([n.value," "]);}case"value-string":{return util$9.printString(n.raws.quote+n.value+n.raws.quote,options);}case"value-atword":{return concat$6(["@",n.value]);}default:/* istanbul ignore next */throw new Error("unknown postcss type: "+JSON.stringify(n.type));}}function printNodeSequence(path,options,print){var node=path.getValue();var parts=[];var i=0;path.map(function(pathChild){var prevNode=node.nodes[i-1];if(prevNode&&prevNode.type==="css-comment"&&prevNode.text.trim()==="prettier-ignore"){var childNode=pathChild.getValue();parts.push(options.originalText.slice(util$9.locStart(childNode),util$9.locEnd(childNode)));}else{parts.push(pathChild.call(print));}if(i!==node.nodes.length-1){if(node.nodes[i+1].type==="css-comment"&&!util$9.hasNewline(options.originalText,util$9.locStart(node.nodes[i+1]),{backwards:true})||node.nodes[i+1].type==="css-atrule"&&node.nodes[i+1].name==="else"&&node.nodes[i].type!=="css-comment"){parts.push(" ");}else{parts.push(hardline$6);if(util$9.isNextLineEmpty(options.originalText,pathChild.getValue())){parts.push(hardline$6);}}}i++;},"nodes");return concat$6(parts);}function printValue(value){return value;}var STRING_REGEX=/(['"])(?:(?!\1)[^\\]|\\[\s\S])*\1/g;var NUMBER_REGEX=/(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g;var STANDARD_UNIT_REGEX=/[a-zA-Z]+/g;var WORD_PART_REGEX=/[$@]?[a-zA-Z_\u0080-\uFFFF][\w\-\u0080-\uFFFF]*/g;var ADJUST_NUMBERS_REGEX=RegExp(STRING_REGEX.source+'|'+('('+WORD_PART_REGEX.source+')?')+('('+NUMBER_REGEX.source+')')+('('+STANDARD_UNIT_REGEX.source+')?'),"g");function adjustStrings(value,options){return value.replace(STRING_REGEX,function(match){return util$9.printString(match,options);});}function quoteAttributeValue(value,options){var quote=options.singleQuote?"'":'"';return value.includes('"')||value.includes("'")?value:quote+value+quote;}function adjustNumbers(value){return value.replace(ADJUST_NUMBERS_REGEX,function(match,quote,wordPart,number,unit){return!wordPart&&number?(wordPart||"")+printNumber$1(number)+maybeToLowerCase(unit||""):match;});}function printNumber$1(rawNumber){return util$9.printNumber(rawNumber// Remove trailing `.0`. -).replace(/\.0(?=$|e)/,"");}function maybeToLowerCase(value){return value.includes("$")||value.includes("@")||value.includes("#")||value.startsWith("%")||value.startsWith("--")?value:value.toLowerCase();}var printerPostcss=genericPrint$3;var util$11=util$3;var docBuilders$9=docBuilders$1;var concat$8=docBuilders$9.concat;var fill$4=docBuilders$9.fill;var cursor$2=docBuilders$9.cursor;var MODE_BREAK=1;var MODE_FLAT=2;function rootIndent(){return{indent:0,align:{spaces:"",tabs:""}};}function makeIndent(ind){return{indent:ind.indent+1,align:ind.align};}function makeAlign(ind,n){if(n===-Infinity){return{indent:0,align:{spaces:"",tabs:""}};}return{indent:ind.indent,align:{spaces:ind.align.spaces+(typeof n==="number"?" ".repeat(n):n),tabs:ind.align.tabs+(n?"\t":"")}};}function fits(next,restCommands,width,mustBeFlat){var restIdx=restCommands.length;var cmds=[next];while(width>=0){if(cmds.length===0){if(restIdx===0){return true;}cmds.push(restCommands[restIdx-1]);restIdx--;continue;}var x=cmds.pop();var ind=x[0];var mode=x[1];var doc=x[2];if(typeof doc==="string"){width-=util$11.getStringWidth(doc);}else{switch(doc.type){case"concat":for(var _i22=doc.parts.length-1;_i22>=0;_i22--){cmds.push([ind,mode,doc.parts[_i22]]);}break;case"indent":cmds.push([makeIndent(ind),mode,doc.contents]);break;case"align":cmds.push([makeAlign(ind,doc.n),mode,doc.contents]);break;case"group":if(mustBeFlat&&doc.break){return false;}cmds.push([ind,doc.break?MODE_BREAK:mode,doc.contents]);break;case"fill":for(var _i23=doc.parts.length-1;_i23>=0;_i23--){cmds.push([ind,mode,doc.parts[_i23]]);}break;case"if-break":if(mode===MODE_BREAK){if(doc.breakContents){cmds.push([ind,mode,doc.breakContents]);}}if(mode===MODE_FLAT){if(doc.flatContents){cmds.push([ind,mode,doc.flatContents]);}}break;case"line":switch(mode){// fallthrough -case MODE_FLAT:if(!doc.hard){if(!doc.soft){width-=1;}break;}return true;case MODE_BREAK:return true;}break;}}}return false;}function printDocToString$2(doc,options){var width=options.printWidth;var newLine=options.newLine||"\n";var pos=0;// cmds is basically a stack. We've turned a recursive call into a -// while loop which is much faster. The while loop below adds new -// cmds to the array instead of recursively calling `print`. -var cmds=[[rootIndent(),MODE_BREAK,doc]];var out=[];var shouldRemeasure=false;var lineSuffix=[];while(cmds.length!==0){var x=cmds.pop();var ind=x[0];var mode=x[1];var _doc=x[2];if(typeof _doc==="string"){out.push(_doc);pos+=util$11.getStringWidth(_doc);}else{switch(_doc.type){case"cursor":out.push(cursor$2.placeholder);break;case"concat":for(var _i24=_doc.parts.length-1;_i24>=0;_i24--){cmds.push([ind,mode,_doc.parts[_i24]]);}break;case"indent":cmds.push([makeIndent(ind),mode,_doc.contents]);break;case"align":cmds.push([makeAlign(ind,_doc.n),mode,_doc.contents]);break;case"group":switch(mode){case MODE_FLAT:if(!shouldRemeasure){cmds.push([ind,_doc.break?MODE_BREAK:MODE_FLAT,_doc.contents]);break;}// fallthrough -case MODE_BREAK:{shouldRemeasure=false;var next=[ind,MODE_FLAT,_doc.contents];var rem=width-pos;if(!_doc.break&&fits(next,cmds,rem)){cmds.push(next);}else{// Expanded states are a rare case where a document -// can manually provide multiple representations of -// itself. It provides an array of documents -// going from the least expanded (most flattened) -// representation first to the most expanded. If a -// group has these, we need to manually go through -// these states and find the first one that fits. -if(_doc.expandedStates){var mostExpanded=_doc.expandedStates[_doc.expandedStates.length-1];if(_doc.break){cmds.push([ind,MODE_BREAK,mostExpanded]);break;}else{for(var _i25=1;_i25<_doc.expandedStates.length+1;_i25++){if(_i25>=_doc.expandedStates.length){cmds.push([ind,MODE_BREAK,mostExpanded]);break;}else{var state=_doc.expandedStates[_i25];var cmd=[ind,MODE_FLAT,state];if(fits(cmd,cmds,rem)){cmds.push(cmd);break;}}}}}else{cmds.push([ind,MODE_BREAK,_doc.contents]);}}break;}}break;// Fills each line with as much code as possible before moving to a new -// line with the same indentation. -// -// Expects doc.parts to be an array of alternating content and -// whitespace. The whitespace contains the linebreaks. -// -// For example: -// ["I", line, "love", line, "monkeys"] -// or -// [{ type: group, ... }, softline, { type: group, ... }] -// -// It uses this parts structure to handle three main layout cases: -// * The first two content items fit on the same line without -// breaking -// -> output the first content item and the whitespace "flat". -// * Only the first content item fits on the line without breaking -// -> output the first content item "flat" and the whitespace with -// "break". -// * Neither content item fits on the line without breaking -// -> output the first content item and the whitespace with "break". -case"fill":{var _rem=width-pos;var parts=_doc.parts;if(parts.length===0){break;}var content=parts[0];var contentFlatCmd=[ind,MODE_FLAT,content];var contentBreakCmd=[ind,MODE_BREAK,content];var contentFits=fits(contentFlatCmd,[],_rem,true);if(parts.length===1){if(contentFits){cmds.push(contentFlatCmd);}else{cmds.push(contentBreakCmd);}break;}var whitespace=parts[1];var whitespaceFlatCmd=[ind,MODE_FLAT,whitespace];var whitespaceBreakCmd=[ind,MODE_BREAK,whitespace];if(parts.length===2){if(contentFits){cmds.push(whitespaceFlatCmd);cmds.push(contentFlatCmd);}else{cmds.push(whitespaceBreakCmd);cmds.push(contentBreakCmd);}break;}var remaining=parts.slice(2);var remainingCmd=[ind,mode,fill$4(remaining)];var secondContent=parts[2];var firstAndSecondContentFlatCmd=[ind,MODE_FLAT,concat$8([content,whitespace,secondContent])];var firstAndSecondContentFits=fits(firstAndSecondContentFlatCmd,[],_rem,true);if(firstAndSecondContentFits){cmds.push(remainingCmd);cmds.push(whitespaceFlatCmd);cmds.push(contentFlatCmd);}else if(contentFits){cmds.push(remainingCmd);cmds.push(whitespaceBreakCmd);cmds.push(contentFlatCmd);}else{cmds.push(remainingCmd);cmds.push(whitespaceBreakCmd);cmds.push(contentBreakCmd);}break;}case"if-break":if(mode===MODE_BREAK){if(_doc.breakContents){cmds.push([ind,mode,_doc.breakContents]);}}if(mode===MODE_FLAT){if(_doc.flatContents){cmds.push([ind,mode,_doc.flatContents]);}}break;case"line-suffix":lineSuffix.push([ind,mode,_doc.contents]);break;case"line-suffix-boundary":if(lineSuffix.length>0){cmds.push([ind,mode,{type:"line",hard:true}]);}break;case"line":switch(mode){case MODE_FLAT:if(!_doc.hard){if(!_doc.soft){out.push(" ");pos+=1;}break;}else{// This line was forced into the output even if we -// were in flattened mode, so we need to tell the next -// group that no matter what, it needs to remeasure -// because the previous measurement didn't accurately -// capture the entire expression (this is necessary -// for nested groups) -shouldRemeasure=true;}// fallthrough -case MODE_BREAK:if(lineSuffix.length){cmds.push([ind,mode,_doc]);[].push.apply(cmds,lineSuffix.reverse());lineSuffix=[];break;}if(_doc.literal){out.push(newLine);pos=0;}else{if(out.length>0){// Trim whitespace at the end of line -while(out.length>0&&out[out.length-1].match(/^[^\S\n]*$/)){out.pop();}if(out.length){out[out.length-1]=out[out.length-1].replace(/[^\S\n]*$/,"");}}var indentLength=ind.indent*options.tabWidth;var _indentString=options.useTabs?"\t".repeat(ind.indent)+ind.align.tabs:" ".repeat(indentLength)+ind.align.spaces;out.push(newLine+_indentString);pos=indentLength+ind.align.spaces.length;}break;}break;default:}}}var cursorPlaceholderIndex=out.indexOf(cursor$2.placeholder);if(cursorPlaceholderIndex!==-1){var beforeCursor=out.slice(0,cursorPlaceholderIndex).join("");var afterCursor=out.slice(cursorPlaceholderIndex+1).join("");return{formatted:beforeCursor+afterCursor,cursor:beforeCursor.length};}return{formatted:out.join("")};}var docPrinter$1={printDocToString:printDocToString$2};var util$10=util$3;var docBuilders$8=docBuilders$1;var concat$7=docBuilders$8.concat;var join$6=docBuilders$8.join;var line$5=docBuilders$8.line;var hardline$7=docBuilders$8.hardline;var softline$6=docBuilders$8.softline;var fill$3=docBuilders$8.fill;var align$2=docBuilders$8.align;var docPrinter=docPrinter$1;var printDocToString$1=docPrinter.printDocToString;var escapeStringRegexp$2=index$14;// http://spec.commonmark.org/0.25/#ascii-punctuation-character -var asciiPunctuationPattern=escapeStringRegexp$2("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");var SINGLE_LINE_NODE_TYPES=["heading","tableCell","footnoteDefinition","link"];var SIBLING_NODE_TYPES=["listItem","definition","footnoteDefinition"];var INLINE_NODE_TYPES=["inlineCode","emphasis","strong","delete","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break"];var INLINE_NODE_WRAPPER_TYPES=INLINE_NODE_TYPES.concat(["tableCell","paragraph"]);function genericPrint$4(path,options,print){var node=path.getValue();if(shouldRemainTheSameContent(path)){return concat$7(util$10.splitText(options.originalText.slice(node.position.start.offset,node.position.end.offset)).map(function(node){return node.type==="word"?node.value:node.value===""?"":printLine(path,line$5,options);}));}switch(node.type){case"root":return normalizeDoc(concat$7([printChildren$1(path,options,print),hardline$7]));case"paragraph":return printChildren$1(path,options,print,{postprocessor:fill$3});case"sentence":return printChildren$1(path,options,print);case"word":return getAncestorNode(path,"inlineCode")?node.value:node.value.replace(/(^|[^\\])\*/g,"$1\\*"// escape all unescaped `*` and `_` -).replace(/\b(^|[^\\])_\b/g,"$1\\_");// `1_2_3` is not considered emphasis -case"whitespace":{var parentNode=path.getParentNode();var _index2=parentNode.children.indexOf(node);var nextNode=parentNode.children[_index2+1];// leading char that may cause different syntax -if(nextNode&&/^>|^([-+*]|#{1,6})$/.test(nextNode.value)){return node.value===""?"":" ";}return printLine(path,node.value===""?softline$6:line$5,options);}case"emphasis":{var _parentNode=path.getParentNode();var _index3=_parentNode.children.indexOf(node);var prevNode=_parentNode.children[_index3-1];var _nextNode=_parentNode.children[_index3+1];var hasPrevOrNextWord=// `1*2*3` is considered emphais but `1_2_3` is not -prevNode&&prevNode.type==="sentence"&&prevNode.children.length>0&&prevNode.children[prevNode.children.length-1].type==="word"&&new RegExp('[^'+asciiPunctuationPattern+']$').test(prevNode.children[prevNode.children.length-1].value)||_nextNode&&_nextNode.type==="sentence"&&_nextNode.children.length>0&&_nextNode.children[0].type==="word"&&new RegExp('^[^'+asciiPunctuationPattern+']').test(_nextNode.children[0].value);var style=hasPrevOrNextWord||getAncestorNode(path,"emphasis")?"*":"_";return concat$7([style,printChildren$1(path,options,print),style]);}case"strong":return concat$7(["**",printChildren$1(path,options,print),"**"]);case"delete":return concat$7(["~~",printChildren$1(path,options,print),"~~"]);case"inlineCode":{var backtickCount=util$10.getMaxContinuousCount(node.value,"`");var _style=backtickCount===1?"``":"`";var gap=backtickCount?printLine(path,line$5,options):"";return concat$7([_style,gap,printChildren$1(path,options,print),gap,_style]);}case"link":switch(options.originalText[node.position.start.offset]){case"<":return concat$7(["<",node.url,">"]);case"[":return concat$7(["[",printChildren$1(path,options,print),"](",printUrl(node.url,")"),node.title?' '+printTitle(node.title):"",")"]);default:return options.originalText.slice(node.position.start.offset,node.position.end.offset);}case"image":return concat$7(["![",node.alt||"","](",printUrl(node.url,")"),node.title?' '+printTitle(node.title):"",")"]);case"blockquote":return concat$7(["> ",align$2("> ",printChildren$1(path,options,print))]);case"heading":return concat$7(["#".repeat(node.depth)+" ",printChildren$1(path,options,print)]);case"code":{if(// the first char may point to `\n`, e.g. `\n\t\tbar`, just ignore it -/^\n?( {4,}|\t)/.test(options.originalText.slice(node.position.start.offset,node.position.end.offset))){// indented code block -return align$2(4,concat$7([" ".repeat(4),join$6(hardline$7,node.value.split("\n"))]));}// fenced code block -var styleUnit=options.__inJsTemplate?"~":"`";var _style2=styleUnit.repeat(Math.max(3,util$10.getMaxContinuousCount(node.value,styleUnit)+1));return concat$7([_style2,node.lang||"",hardline$7,join$6(hardline$7,node.value.split("\n")),hardline$7,_style2]);}case"yaml":return concat$7(["---",hardline$7,node.value,hardline$7,"---"]);case"html":{var _parentNode2=path.getParentNode();return _parentNode2.type==="root"&&_parentNode2.children[_parentNode2.children.length-1]===node?node.value.trimRight():node.value;}case"list":{var nthSiblingIndex=getNthListSiblingIndex(node,path.getParentNode());var isGitDiffFriendlyOrderedList=node.ordered&&node.children.length>1&&/^\s*1(\.|\))/.test(options.originalText.slice(node.children[1].position.start.offset,node.children[1].position.end.offset));return printChildren$1(path,options,print,{processor:function processor(childPath,index){var prefix=node.ordered?(index===0?node.start:isGitDiffFriendlyOrderedList?1:node.start+index)+(nthSiblingIndex%2===0?". ":") "):nthSiblingIndex%2===0?"* ":"- ";return concat$7([prefix,align$2(prefix.length,childPath.call(print))]);}});}case"listItem":{var prefix=node.checked===null?"":node.checked?"[x] ":"[ ] ";return concat$7([prefix,align$2(prefix.length,printChildren$1(path,options,print))]);}case"thematicBreak":{var counter=getAncestorCounter(path,"list");if(counter===-1){return"---";}var _nthSiblingIndex=getNthListSiblingIndex(path.getParentNode(counter),path.getParentNode(counter+1));return _nthSiblingIndex%2===0?"---":"***";}case"linkReference":return concat$7(["[",printChildren$1(path,options,print),"]",node.referenceType==="full"?concat$7(["[",node.identifier,"]"]):node.referenceType==="collapsed"?"[]":""]);case"imageReference":switch(node.referenceType){case"full":return concat$7(["![",node.alt,"][",node.identifier,"]"]);default:return concat$7(["![",node.alt,"]",node.referenceType==="collapsed"?"[]":""]);}case"definition":return concat$7(["[",node.identifier,"]: ",printUrl(node.url),node.title===null?"":' '+printTitle(node.title)]);case"footnote":return concat$7(["[^",printChildren$1(path,options,print),"]"]);case"footnoteReference":return concat$7(["[^",node.identifier,"]"]);case"footnoteDefinition":return concat$7(["[^",node.identifier,"]: ",printChildren$1(path,options,print)]);case"table":return printTable(path,options,print);case"tableCell":return printChildren$1(path,options,print);case"break":return concat$7(["\\",hardline$7]);case"tableRow":// handled in "table" -default:throw new Error('Unknown markdown type '+JSON.stringify(node.type));}}function getNthListSiblingIndex(node,parentNode){return getNthSiblingIndex(node,parentNode,function(siblingNode){return siblingNode.ordered===node.ordered;});}function getNthSiblingIndex(node,parentNode,condition){condition=condition||function(){return true;};var index=-1;var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=parentNode.children[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var childNode=_step.value;if(childNode.type===node.type&&condition(childNode)){index++;}else{index=-1;}if(childNode===node){return index;}}}catch(err){_didIteratorError=true;_iteratorError=err;}finally{try{if(!_iteratorNormalCompletion&&_iterator.return){_iterator.return();}}finally{if(_didIteratorError){throw _iteratorError;}}}}function getAncestorCounter(path,typeOrTypes){var types=[].concat(typeOrTypes);var counter=-1;var ancestorNode=void 0;while(ancestorNode=path.getParentNode(++counter)){if(types.indexOf(ancestorNode.type)!==-1){return counter;}}return-1;}function getAncestorNode(path,typeOrTypes){var counter=getAncestorCounter(path,typeOrTypes);return counter===-1?null:path.getParentNode(counter);}function printLine(path,lineOrSoftline,options){var isBreakable=options.proseWrap&&!getAncestorNode(path,SINGLE_LINE_NODE_TYPES);return lineOrSoftline===line$5?isBreakable?line$5:" ":isBreakable?softline$6:"";}function printTable(path,options,print){var node=path.getValue();var contents=[];// { [rowIndex: number]: { [columnIndex: number]: string } } -path.map(function(rowPath){var rowContents=[];rowPath.map(function(cellPath){rowContents.push(printDocToString$1(cellPath.call(print),options).formatted);},"children");contents.push(rowContents);},"children");var columnMaxWidths=contents.reduce(function(currentWidths,rowContents){return currentWidths.map(function(width,columnIndex){return Math.max(width,util$10.getStringWidth(rowContents[columnIndex]));});},contents[0].map(function(){return 3;}// minimum width = 3 (---, :--, :-:, --:) -));return join$6(hardline$7,[printRow(contents[0]),printSeparator(),join$6(hardline$7,contents.slice(1).map(printRow))]);function printSeparator(){return concat$7(["| ",join$6(" | ",columnMaxWidths.map(function(width,index){switch(node.align[index]){case"left":return":"+"-".repeat(width-1);case"right":return"-".repeat(width-1)+":";case"center":return":"+"-".repeat(width-2)+":";default:return"-".repeat(width);}}))," |"]);}function printRow(rowContents){return concat$7(["| ",join$6(" | ",rowContents.map(function(rowContent,columnIndex){switch(node.align[columnIndex]){case"right":return alignRight(rowContent,columnMaxWidths[columnIndex]);case"center":return alignCenter(rowContent,columnMaxWidths[columnIndex]);default:return alignLeft(rowContent,columnMaxWidths[columnIndex]);}}))," |"]);}function alignLeft(text,width){return concat$7([text," ".repeat(width-util$10.getStringWidth(text))]);}function alignRight(text,width){return concat$7([" ".repeat(width-util$10.getStringWidth(text)),text]);}function alignCenter(text,width){var spaces=width-util$10.getStringWidth(text);var left=Math.floor(spaces/2);var right=spaces-left;return concat$7([" ".repeat(left),text," ".repeat(right)]);}}function printChildren$1(path,options,print,events){events=events||{};var postprocessor=events.postprocessor||concat$7;var processor=events.processor||function(childPath){return childPath.call(print);};var node=path.getValue();var parts=[];var counter=0;var lastChildNode=void 0;var prettierIgnore=false;path.map(function(childPath,index){var childNode=childPath.getValue();var result=prettierIgnore?options.originalText.slice(childNode.position.start.offset,childNode.position.end.offset):processor(childPath,index);prettierIgnore=false;if(result!==false){prettierIgnore=isPrettierIgnore(childNode);var data={parts:parts,index:counter++,prevNode:lastChildNode,parentNode:node,options:options};if(!shouldNotPrePrintHardline(childNode,data)){parts.push(hardline$7);if(shouldPrePrintDoubleHardline(childNode,data)||shouldPrePrintTripleHardline(childNode,data)){parts.push(hardline$7);}if(shouldPrePrintTripleHardline(childNode,data)){parts.push(hardline$7);}}parts.push(result);lastChildNode=childNode;}},"children");return postprocessor(parts);}function isPrettierIgnore(node){return node.type==="html"&&/^$/.test(node.value);}function shouldNotPrePrintHardline(node,data){var isFirstNode=data.parts.length===0;var isInlineNode=INLINE_NODE_TYPES.indexOf(node.type)!==-1;var isInlineHTML=node.type==="html"&&INLINE_NODE_WRAPPER_TYPES.indexOf(data.parentNode.type)!==-1;return isFirstNode||isInlineNode||isInlineHTML;}function shouldPrePrintDoubleHardline(node,data){var isSequence=(data.prevNode&&data.prevNode.type)===node.type;var isSiblingNode=isSequence&&SIBLING_NODE_TYPES.indexOf(node.type)!==-1;var isInTightListItem=data.parentNode.type==="listItem"&&!data.parentNode.loose;var isPrevNodeLooseListItem=data.prevNode&&data.prevNode.type==="listItem"&&data.prevNode.loose;var isPrevNodePrettierIgnore=isPrettierIgnore(data.prevNode);return isPrevNodeLooseListItem||!(isSiblingNode||isInTightListItem||isPrevNodePrettierIgnore);}function shouldPrePrintTripleHardline(node,data){var isPrevNodeList=data.prevNode&&data.prevNode.type==="list";var isIndentedCode=node.type==="code"&&/\s/.test(data.options.originalText[node.position.start.offset]);return isPrevNodeList&&isIndentedCode;}function shouldRemainTheSameContent(path){var ancestorNode=getAncestorNode(path,["linkReference","imageReference"]);return ancestorNode&&(ancestorNode.type!=="linkReference"||ancestorNode.referenceType!=="full");}function normalizeDoc(doc){return util$10.mapDoc(doc,function(currentDoc){if(!currentDoc.parts){return currentDoc;}if(currentDoc.type==="concat"&¤tDoc.parts.length===1){return currentDoc.parts[0];}var parts=[];currentDoc.parts.forEach(function(part){if(part.type==="concat"){parts.push.apply(parts,part.parts);}else if(part!==""){parts.push(part);}});return Object.assign({},currentDoc,{parts:normalizeParts(parts)});});}function printUrl(url,dangerousCharOrChars){var dangerousChars=[" "].concat(dangerousCharOrChars||[]);return new RegExp(dangerousChars.map(function(x){return'\\'+x;}).join("|")).test(url)?'<'+url+'>':url;}function printTitle(title){return title.includes('"')&&!title.includes("'")?'\''+title+'\'':'"'+title.replace(/"/g,'\\"')+'"';}function normalizeParts(parts){return parts.reduce(function(current,part){var lastPart=current[current.length-1];if(typeof lastPart==="string"&&typeof part==="string"){current.splice(-1,1,lastPart+part);}else{current.push(part);}return current;},[]);}var printerMarkdown=genericPrint$4;var assert$1=require$$0;var comments$3=comments$1;var FastPath=fastPath;var multiparser=multiparser$1;var util$5=util$3;var isIdentifierName=utils.keyword.isIdentifierNameES6;var docBuilders$3=docBuilders$1;var concat$2=docBuilders$3.concat;var join$2=docBuilders$3.join;var line$1=docBuilders$3.line;var hardline$2=docBuilders$3.hardline;var softline$1=docBuilders$3.softline;var literalline$1=docBuilders$3.literalline;var group$1=docBuilders$3.group;var indent$2=docBuilders$3.indent;var align$1=docBuilders$3.align;var conditionalGroup$1=docBuilders$3.conditionalGroup;var fill$1=docBuilders$3.fill;var ifBreak$1=docBuilders$3.ifBreak;var breakParent$2=docBuilders$3.breakParent;var lineSuffixBoundary$1=docBuilders$3.lineSuffixBoundary;var addAlignmentToDoc$1=docBuilders$3.addAlignmentToDoc;var docUtils=docUtils$2;var willBreak=docUtils.willBreak;var isLineNext=docUtils.isLineNext;var isEmpty=docUtils.isEmpty;var rawText=docUtils.rawText;function shouldPrintComma(options,level){level=level||"es5";switch(options.trailingComma){case"all":if(level==="all"){return true;}// fallthrough -case"es5":if(level==="es5"){return true;}// fallthrough -case"none":default:return false;}}function getPrintFunction(options){switch(options.parser){case"graphql":return printerGraphql;case"parse5":return printerHtmlparser2;case"css":case"less":case"scss":return printerPostcss;case"markdown":return printerMarkdown;default:return genericPrintNoParens;}}function hasIgnoreComment(path){var node=path.getValue();return hasNodeIgnoreComment(node)||hasJsxIgnoreComment(path);}function hasNodeIgnoreComment(node){return node&&node.comments&&node.comments.length>0&&node.comments.some(function(comment){return comment.value.trim()==="prettier-ignore";});}function hasJsxIgnoreComment(path){var node=path.getValue();var parent=path.getParentNode();if(!parent||!node||node.type!=="JSXElement"||parent.type!=="JSXElement"){return false;}// Lookup the previous sibling, ignoring any empty JSXText elements -var index=parent.children.indexOf(node);var prevSibling=null;for(var _i26=index;_i26>0;_i26--){var candidate=parent.children[_i26-1];if(candidate.type==="JSXText"&&!isMeaningfulJSXText(candidate)){continue;}prevSibling=candidate;break;}return prevSibling&&prevSibling.type==="JSXExpressionContainer"&&prevSibling.expression.type==="JSXEmptyExpression"&&prevSibling.expression.comments&&prevSibling.expression.comments.find(function(comment){return comment.value.trim()==="prettier-ignore";});}function genericPrint(path,options,printPath,args){assert$1.ok(path instanceof FastPath);var node=path.getValue();// Escape hatch -if(hasIgnoreComment(path)){return options.originalText.slice(util$5.locStart(node),util$5.locEnd(node));}if(node){// Potentially switch to a different parser -var next=multiparser.getSubtreeParser(path,options);if(next){try{return multiparser.printSubtree(next,path,printPath,options);}catch(error){/* istanbul ignore if */if(process.env.PRETTIER_DEBUG){var e=new Error(error);e.parser=next.options.parser;throw e;}// Continue with current parser -}}}var needsParens=false;var linesWithoutParens=getPrintFunction(options)(path,options,printPath,args);if(!node||isEmpty(linesWithoutParens)){return linesWithoutParens;}var decorators=[];if(node.decorators&&node.decorators.length>0&&// If the parent node is an export declaration, it will be -// responsible for printing node.decorators. -!util$5.getParentExportDeclaration(path)){var separator=hardline$2;path.each(function(decoratorPath){var prefix="@";var decorator=decoratorPath.getValue();if(decorator.expression){decorator=decorator.expression;prefix="";}if(node.decorators.length===1&&node.type!=="ClassDeclaration"&&node.type!=="MethodDefinition"&&node.type!=="ClassMethod"&&(decorator.type==="Identifier"||decorator.type==="MemberExpression"||decorator.type==="CallExpression"&&(decorator.arguments.length===0||decorator.arguments.length===1&&(isStringLiteral(decorator.arguments[0])||decorator.arguments[0].type==="Identifier"||decorator.arguments[0].type==="MemberExpression")))){separator=line$1;}decorators.push(prefix,printPath(decoratorPath),separator);},"decorators");}else if(util$5.isExportDeclaration(node)&&node.declaration&&node.declaration.decorators){// Export declarations are responsible for printing any decorators -// that logically apply to node.declaration. -path.each(function(decoratorPath){var decorator=decoratorPath.getValue();var prefix=decorator.type==="Decorator"?"":"@";decorators.push(prefix,printPath(decoratorPath),hardline$2);},"declaration","decorators");}else{// Nodes with decorators can't have parentheses, so we can avoid -// computing path.needsParens() except in this case. -needsParens=path.needsParens(options);}if(node.type){// HACK: ASI prevention in no-semi mode relies on knowledge of whether -// or not a paren has been inserted (see `exprNeedsASIProtection()`). -// For now, we're just passing that information by mutating the AST here, -// but it would be nice to find a cleaner way to do this. -node.needsParens=needsParens;}var parts=[];if(needsParens){parts.unshift("(");}parts.push(linesWithoutParens);if(needsParens){parts.push(")");}if(decorators.length>0){return group$1(concat$2(decorators.concat(parts)));}return concat$2(parts);}function genericPrintNoParens(path,options,print,args){var n=path.getValue();var semi=options.semi?";":"";if(!n){return"";}if(typeof n==="string"){return n;}var parts=[];switch(n.type){case"File":return path.call(print,"program");case"Program":// Babel 6 -if(n.directives){path.each(function(childPath){parts.push(print(childPath),semi,hardline$2);if(util$5.isNextLineEmpty(options.originalText,childPath.getValue())){parts.push(hardline$2);}},"directives");}parts.push(path.call(function(bodyPath){return printStatementSequence(bodyPath,options,print);},"body"));parts.push(comments$3.printDanglingComments(path,options,/* sameIndent */true));// Only force a trailing newline if there were any contents. -if(n.body.length||n.comments){parts.push(hardline$2);}return concat$2(parts);// Babel extension. -case"EmptyStatement":return"";case"ExpressionStatement":// Detect Flow-parsed directives -if(n.directive){return concat$2([nodeStr(n.expression,options,true),semi]);}return concat$2([path.call(print,"expression"),semi]);// Babel extension. -case"ParenthesizedExpression":return concat$2(["(",path.call(print,"expression"),")"]);case"AssignmentExpression":return printAssignment(n.left,path.call(print,"left"),concat$2([" ",n.operator]),n.right,path.call(print,"right"),options);case"BinaryExpression":case"LogicalExpression":{var parent=path.getParentNode();var parentParent=path.getParentNode(1);var isInsideParenthesis=n!==parent.body&&(parent.type==="IfStatement"||parent.type==="WhileStatement"||parent.type==="DoWhileStatement");var _parts2=printBinaryishExpressions(path,print,options,/* isNested */false,isInsideParenthesis);// if ( -// this.hasPlugin("dynamicImports") && this.lookahead().type === tt.parenLeft -// ) { -// -// looks super weird, we want to break the children if the parent breaks -// -// if ( -// this.hasPlugin("dynamicImports") && -// this.lookahead().type === tt.parenLeft -// ) { -if(isInsideParenthesis){return concat$2(_parts2);}// Break between the parens in unaries or in a member expression, i.e. -// -// ( -// a && -// b && -// c -// ).call() -if(parent.type==="UnaryExpression"||parent.type==="MemberExpression"&&!parent.computed){return group$1(concat$2([indent$2(concat$2([softline$1,concat$2(_parts2)])),softline$1]));}// Avoid indenting sub-expressions in some cases where the first sub-expression is already -// indented accordingly. We should indent sub-expressions where the first case isn't indented. -var shouldNotIndent=parent.type==="ReturnStatement"||parent.type==="JSXExpressionContainer"&&parentParent.type==="JSXAttribute"||n===parent.body&&parent.type==="ArrowFunctionExpression"||n!==parent.body&&parent.type==="ForStatement"||parent.type==="ConditionalExpression"&&parentParent.type!=="ReturnStatement";var shouldIndentIfInlining=parent.type==="AssignmentExpression"||parent.type==="VariableDeclarator"||parent.type==="ObjectProperty"||parent.type==="Property";var samePrecedenceSubExpression=isBinaryish(n.left)&&util$5.shouldFlatten(n.operator,n.left.operator);if(shouldNotIndent||shouldInlineLogicalExpression(n)&&!samePrecedenceSubExpression||!shouldInlineLogicalExpression(n)&&shouldIndentIfInlining){return group$1(concat$2(_parts2));}var rest=concat$2(_parts2.slice(1));return group$1(concat$2([// Don't include the initial expression in the indentation -// level. The first item is guaranteed to be the first -// left-most expression. -_parts2.length>0?_parts2[0]:"",indent$2(rest)]));}case"AssignmentPattern":return concat$2([path.call(print,"left")," = ",path.call(print,"right")]);case"TSTypeAssertionExpression":return concat$2(["<",path.call(print,"typeAnnotation"),">",path.call(print,"expression")]);case"MemberExpression":{var _parent6=path.getParentNode();var firstNonMemberParent=void 0;var _i27=0;do{firstNonMemberParent=path.getParentNode(_i27);_i27++;}while(firstNonMemberParent&&firstNonMemberParent.type==="MemberExpression");var shouldInline=firstNonMemberParent&&(firstNonMemberParent.type==="NewExpression"||firstNonMemberParent.type==="VariableDeclarator"&&firstNonMemberParent.id.type!=="Identifier"||firstNonMemberParent.type==="AssignmentExpression"&&firstNonMemberParent.left.type!=="Identifier")||n.computed||n.object.type==="Identifier"&&n.property.type==="Identifier"&&_parent6.type!=="MemberExpression";return concat$2([path.call(print,"object"),shouldInline?printMemberLookup(path,options,print):group$1(indent$2(concat$2([softline$1,printMemberLookup(path,options,print)])))]);}case"MetaProperty":return concat$2([path.call(print,"meta"),".",path.call(print,"property")]);case"BindExpression":if(n.object){parts.push(path.call(print,"object"));}parts.push(printBindExpressionCallee(path,options,print));return concat$2(parts);case"Identifier":{var parentNode=path.getParentNode();var isFunctionDeclarationIdentifier=parentNode.type==="DeclareFunction"&&parentNode.id===n;return concat$2([n.name,printOptionalToken(path),n.typeAnnotation&&!isFunctionDeclarationIdentifier?": ":"",path.call(print,"typeAnnotation")]);}case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"ExperimentalRestProperty":case"ExperimentalSpreadProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return concat$2(["...",path.call(print,"argument"),n.typeAnnotation?": ":"",path.call(print,"typeAnnotation")]);case"FunctionDeclaration":case"FunctionExpression":case"TSNamespaceFunctionDeclaration":if(isNodeStartingWithDeclare(n,options)){parts.push("declare ");}parts.push(printFunctionDeclaration(path,print,options));if(!n.body){parts.push(semi);}return concat$2(parts);case"ArrowFunctionExpression":{if(n.async){parts.push("async ");}if(canPrintParamsWithoutParens(n)){parts.push(path.call(print,"params",0));}else{parts.push(group$1(concat$2([printFunctionParams(path,print,options,/* expandLast */args&&(args.expandLastArg||args.expandFirstArg),/* printTypeParams */true),printReturnType(path,print)])));}parts.push(" =>");var body=path.call(function(bodyPath){return print(bodyPath,args);},"body");// We want to always keep these types of nodes on the same line -// as the arrow. -if(!hasLeadingOwnLineComment(options.originalText,n.body)&&(n.body.type==="ArrayExpression"||n.body.type==="ObjectExpression"||n.body.type==="BlockStatement"||n.body.type==="JSXElement"||isTemplateOnItsOwnLine(n.body,options.originalText)||n.body.type==="ArrowFunctionExpression")){return group$1(concat$2([concat$2(parts)," ",body]));}// We handle sequence expressions as the body of arrows specially, -// so that the required parentheses end up on their own lines. -if(n.body.type==="SequenceExpression"){return group$1(concat$2([concat$2(parts),group$1(concat$2([" (",indent$2(concat$2([softline$1,body])),softline$1,")"]))]));}// if the arrow function is expanded as last argument, we are adding a -// level of indentation and need to add a softline to align the closing ) -// with the opening (, or if it's inside a JSXExpression (e.g. an attribute) -// we should align the expression's closing } with the line with the opening {. -var shouldAddSoftLine=args&&args.expandLastArg||path.getParentNode().type==="JSXExpressionContainer";var printTrailingComma=args&&args.expandLastArg&&shouldPrintComma(options,"all");// In order to avoid confusion between -// a => a ? a : a -// a <= a ? a : a -var shouldAddParens=n.body.type==="ConditionalExpression"&&!util$5.startsWithNoLookaheadToken(n.body,/* forbidFunctionAndClass */false);return group$1(concat$2([concat$2(parts),group$1(concat$2([indent$2(concat$2([line$1,shouldAddParens?ifBreak$1("","("):"",body,shouldAddParens?ifBreak$1("",")"):""])),shouldAddSoftLine?concat$2([ifBreak$1(printTrailingComma?",":""),softline$1]):""]))]));}case"MethodDefinition":case"TSAbstractMethodDefinition":if(n.accessibility){parts.push(n.accessibility+" ");}if(n.static){parts.push("static ");}if(n.type==="TSAbstractMethodDefinition"){parts.push("abstract ");}parts.push(printMethod(path,options,print));return concat$2(parts);case"YieldExpression":parts.push("yield");if(n.delegate){parts.push("*");}if(n.argument){parts.push(" ",path.call(print,"argument"));}return concat$2(parts);case"AwaitExpression":return concat$2(["await ",path.call(print,"argument")]);case"ImportSpecifier":if(n.importKind){parts.push(path.call(print,"importKind")," ");}parts.push(path.call(print,"imported"));if(n.local&&n.local.name!==n.imported.name){parts.push(" as ",path.call(print,"local"));}return concat$2(parts);case"ExportSpecifier":parts.push(path.call(print,"local"));if(n.exported&&n.exported.name!==n.local.name){parts.push(" as ",path.call(print,"exported"));}return concat$2(parts);case"ImportNamespaceSpecifier":parts.push("* as ");if(n.local){parts.push(path.call(print,"local"));}else if(n.id){parts.push(path.call(print,"id"));}return concat$2(parts);case"ImportDefaultSpecifier":if(n.local){return path.call(print,"local");}return path.call(print,"id");case"TSExportAssignment":return concat$2(["export = ",path.call(print,"expression"),semi]);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return printExportDeclaration(path,options,print);case"ExportAllDeclaration":parts.push("export ");if(n.exportKind==="type"){parts.push("type ");}parts.push("* from ",path.call(print,"source"),semi);return concat$2(parts);case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return path.call(print,"exported");case"ImportDeclaration":{parts.push("import ");if(n.importKind&&n.importKind!=="value"){parts.push(n.importKind+" ");}var standalones=[];var grouped=[];if(n.specifiers&&n.specifiers.length>0){path.each(function(specifierPath){var value=specifierPath.getValue();if(value.type==="ImportDefaultSpecifier"||value.type==="ImportNamespaceSpecifier"){standalones.push(print(specifierPath));}else{grouped.push(print(specifierPath));}},"specifiers");if(standalones.length>0){parts.push(join$2(", ",standalones));}if(standalones.length>0&&grouped.length>0){parts.push(", ");}if(grouped.length===1&&standalones.length===0&&n.specifiers&&!n.specifiers.some(function(node){return node.comments;})){parts.push(concat$2(["{",options.bracketSpacing?" ":"",concat$2(grouped),options.bracketSpacing?" ":"","}"]));}else if(grouped.length>=1){parts.push(group$1(concat$2(["{",indent$2(concat$2([options.bracketSpacing?line$1:softline$1,join$2(concat$2([",",line$1]),grouped)])),ifBreak$1(shouldPrintComma(options)?",":""),options.bracketSpacing?line$1:softline$1,"}"])));}parts.push(" from ");}else if(n.importKind&&n.importKind==="type"||// import {} from 'x' -/{\s*}/.test(options.originalText.slice(util$5.locStart(n),util$5.locStart(n.source)))){parts.push("{} from ");}parts.push(path.call(print,"source"),semi);return concat$2(parts);}case"Import":return"import";case"BlockStatement":{var naked=path.call(function(bodyPath){return printStatementSequence(bodyPath,options,print);},"body");var hasContent=n.body.find(function(node){return node.type!=="EmptyStatement";});var hasDirectives=n.directives&&n.directives.length>0;var _parent7=path.getParentNode();var _parentParent=path.getParentNode(1);if(!hasContent&&!hasDirectives&&!n.comments&&(_parent7.type==="ArrowFunctionExpression"||_parent7.type==="FunctionExpression"||_parent7.type==="FunctionDeclaration"||_parent7.type==="ObjectMethod"||_parent7.type==="ClassMethod"||_parent7.type==="ForStatement"||_parent7.type==="WhileStatement"||_parent7.type==="DoWhileStatement"||_parent7.type==="CatchClause"&&!_parentParent.finalizer)){return"{}";}parts.push("{");// Babel 6 -if(hasDirectives){path.each(function(childPath){parts.push(indent$2(concat$2([hardline$2,print(childPath),semi])));if(util$5.isNextLineEmpty(options.originalText,childPath.getValue())){parts.push(hardline$2);}},"directives");}if(hasContent){parts.push(indent$2(concat$2([hardline$2,naked])));}parts.push(comments$3.printDanglingComments(path,options));parts.push(hardline$2,"}");return concat$2(parts);}case"ReturnStatement":parts.push("return");if(n.argument){if(returnArgumentHasLeadingComment(options,n.argument)){parts.push(concat$2([" (",indent$2(concat$2([softline$1,path.call(print,"argument")])),line$1,")"]));}else if(n.argument.type==="LogicalExpression"||n.argument.type==="BinaryExpression"||n.argument.type==="SequenceExpression"){parts.push(group$1(concat$2([ifBreak$1(" ("," "),indent$2(concat$2([softline$1,path.call(print,"argument")])),softline$1,ifBreak$1(")")])));}else{parts.push(" ",path.call(print,"argument"));}}if(hasDanglingComments(n)){parts.push(" ",comments$3.printDanglingComments(path,options,/* sameIndent */true));}parts.push(semi);return concat$2(parts);case"NewExpression":case"CallExpression":{var isNew=n.type==="NewExpression";var unitTestRe=/^(f|x)?(it|describe|test)$/;var optional=printOptionalToken(path);if(// We want to keep require calls as a unit -!isNew&&n.callee.type==="Identifier"&&n.callee.name==="require"||n.callee.type==="Import"||// Template literals as single arguments -n.arguments.length===1&&isTemplateOnItsOwnLine(n.arguments[0],options.originalText)||// Keep test declarations on a single line -// e.g. `it('long name', () => {` -!isNew&&(n.callee.type==="Identifier"&&unitTestRe.test(n.callee.name)||n.callee.type==="MemberExpression"&&n.callee.object.type==="Identifier"&&n.callee.property.type==="Identifier"&&unitTestRe.test(n.callee.object.name)&&(n.callee.property.name==="only"||n.callee.property.name==="skip"))&&n.arguments.length===2&&(n.arguments[0].type==="StringLiteral"||n.arguments[0].type==="TemplateLiteral"||n.arguments[0].type==="Literal"&&typeof n.arguments[0].value==="string")&&(n.arguments[1].type==="FunctionExpression"||n.arguments[1].type==="ArrowFunctionExpression")&&n.arguments[1].params.length<=1){return concat$2([isNew?"new ":"",path.call(print,"callee"),optional,path.call(print,"typeParameters"),concat$2(["(",join$2(", ",path.map(print,"arguments")),")"])]);}// We detect calls on member lookups and possibly print them in a -// special chain format. See `printMemberChain` for more info. -if(!isNew&&isMemberish(n.callee)){return printMemberChain(path,options,print);}return concat$2([isNew?"new ":"",path.call(print,"callee"),optional,printFunctionTypeParameters(path,options,print),printArgumentsList(path,options,print)]);}case"TSInterfaceDeclaration":if(isNodeStartingWithDeclare(n,options)){parts.push("declare ");}parts.push(n.abstract?"abstract ":"",printTypeScriptModifiers(path,options,print),"interface ",path.call(print,"id"),n.typeParameters?path.call(print,"typeParameters"):""," ");if(n.heritage.length){parts.push(group$1(indent$2(concat$2([softline$1,"extends ",indent$2(join$2(concat$2([",",line$1]),path.map(print,"heritage")))," "]))));}parts.push(path.call(print,"body"));return concat$2(parts);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"TSInterfaceBody":case"TSTypeLiteral":{var isTypeAnnotation=n.type==="ObjectTypeAnnotation";var shouldBreak=n.type==="TSInterfaceBody"||n.type!=="ObjectPattern"&&util$5.hasNewlineInRange(options.originalText,util$5.locStart(n),util$5.locEnd(n));var _parent8=path.getParentNode(0);var isFlowInterfaceLikeBody=isTypeAnnotation&&_parent8&&(_parent8.type==="InterfaceDeclaration"||_parent8.type==="DeclareInterface"||_parent8.type==="DeclareClass")&&path.getName()==="body";var separator=isFlowInterfaceLikeBody?";":n.type==="TSInterfaceBody"||n.type==="TSTypeLiteral"?ifBreak$1(semi,";"):",";var fields=[];var leftBrace=n.exact?"{|":"{";var rightBrace=n.exact?"|}":"}";var propertiesField=void 0;if(n.type==="TSTypeLiteral"){propertiesField="members";}else if(n.type==="TSInterfaceBody"){propertiesField="body";}else{propertiesField="properties";}if(isTypeAnnotation){fields.push("indexers","callProperties");}fields.push(propertiesField);// Unfortunately, things are grouped together in the ast can be -// interleaved in the source code. So we need to reorder them before -// printing them. -var propsAndLoc=[];fields.forEach(function(field){path.each(function(childPath){var node=childPath.getValue();propsAndLoc.push({node:node,printed:print(childPath),loc:util$5.locStart(node)});},field);});var separatorParts=[];var props=propsAndLoc.sort(function(a,b){return a.loc-b.loc;}).map(function(prop){var result=concat$2(separatorParts.concat(group$1(prop.printed)));separatorParts=[separator,line$1];if(util$5.isNextLineEmpty(options.originalText,prop.node)){separatorParts.push(hardline$2);}return result;});var lastElem=util$5.getLast(n[propertiesField]);var canHaveTrailingSeparator=!(lastElem&&(lastElem.type==="RestProperty"||lastElem.type==="RestElement"));var content=void 0;if(props.length===0&&!n.typeAnnotation){if(!hasDanglingComments(n)){return concat$2([leftBrace,rightBrace]);}content=group$1(concat$2([leftBrace,comments$3.printDanglingComments(path,options),softline$1,rightBrace,printOptionalToken(path)]));}else{content=concat$2([leftBrace,indent$2(concat$2([options.bracketSpacing?line$1:softline$1,concat$2(props)])),ifBreak$1(canHaveTrailingSeparator&&(separator!==","||shouldPrintComma(options))?separator:""),concat$2([options.bracketSpacing?line$1:softline$1,rightBrace]),printOptionalToken(path),n.typeAnnotation?": ":"",path.call(print,"typeAnnotation")]);}// If we inline the object as first argument of the parent, we don't want -// to create another group so that the object breaks before the return -// type -var parentParentParent=path.getParentNode(2);if(n.type==="ObjectPattern"&&_parent8&&shouldHugArguments(_parent8)&&_parent8.params[0]===n||shouldHugType(n)&&parentParentParent&&shouldHugArguments(parentParentParent)&&parentParentParent.params[0].typeAnnotation.typeAnnotation===n){return content;}return group$1(content,{shouldBreak:shouldBreak});}// Babel 6 -case"ObjectProperty":// Non-standard AST node type. -case"Property":if(n.method||n.kind==="get"||n.kind==="set"){return printMethod(path,options,print);}if(n.shorthand){parts.push(path.call(print,"value"));}else{var printedLeft=void 0;if(n.computed){printedLeft=concat$2(["[",path.call(print,"key"),"]"]);}else{printedLeft=printPropertyKey(path,options,print);}parts.push(printAssignment(n.key,printedLeft,":",n.value,path.call(print,"value"),options));}return concat$2(parts);// Babel 6 -case"ClassMethod":if(n.static){parts.push("static ");}parts=parts.concat(printObjectMethod(path,options,print));return concat$2(parts);// Babel 6 -case"ObjectMethod":return printObjectMethod(path,options,print);case"Decorator":return concat$2(["@",path.call(print,"expression")]);case"ArrayExpression":case"ArrayPattern":if(n.elements.length===0){if(!hasDanglingComments(n)){parts.push("[]");}else{parts.push(group$1(concat$2(["[",comments$3.printDanglingComments(path,options),softline$1,"]"])));}}else{var _lastElem=util$5.getLast(n.elements);var canHaveTrailingComma=!(_lastElem&&_lastElem.type==="RestElement");// JavaScript allows you to have empty elements in an array which -// changes its length based on the number of commas. The algorithm -// is that if the last argument is null, we need to force insert -// a comma to ensure JavaScript recognizes it. -// [,].length === 1 -// [1,].length === 1 -// [1,,].length === 2 -// -// Note that util.getLast returns null if the array is empty, but -// we already check for an empty array just above so we are safe -var needsForcedTrailingComma=canHaveTrailingComma&&_lastElem===null;parts.push(group$1(concat$2(["[",indent$2(concat$2([softline$1,printArrayItems(path,options,"elements",print)])),needsForcedTrailingComma?",":"",ifBreak$1(canHaveTrailingComma&&!needsForcedTrailingComma&&shouldPrintComma(options)?",":""),comments$3.printDanglingComments(path,options,/* sameIndent */true),softline$1,"]"])));}parts.push(printOptionalToken(path));if(n.typeAnnotation){parts.push(": ",path.call(print,"typeAnnotation"));}return concat$2(parts);case"SequenceExpression":{var _parent9=path.getParentNode(0);if(_parent9.type==="ExpressionStatement"||_parent9.type==="ForStatement"){// For ExpressionStatements and for-loop heads, which are among -// the few places a SequenceExpression appears unparenthesized, we want -// to indent expressions after the first. -var _parts3=[];path.each(function(p){if(p.getName()===0){_parts3.push(print(p));}else{_parts3.push(",",indent$2(concat$2([line$1,print(p)])));}},"expressions");return group$1(concat$2(_parts3));}return group$1(concat$2([join$2(concat$2([",",line$1]),path.map(print,"expressions"))]));}case"ThisExpression":return"this";case"Super":return"super";case"NullLiteral":// Babel 6 Literal split -return"null";case"RegExpLiteral":// Babel 6 Literal split -return printRegex(n);case"NumericLiteral":// Babel 6 Literal split -return util$5.printNumber(n.extra.raw);case"BooleanLiteral":// Babel 6 Literal split -case"StringLiteral":// Babel 6 Literal split -case"Literal":{if(n.regex){return printRegex(n.regex);}if(typeof n.value==="number"){return util$5.printNumber(n.raw);}if(typeof n.value!=="string"){return""+n.value;}// TypeScript workaround for eslint/typescript-eslint-parser#267 -// See corresponding workaround in fast-path.js needsParens() -var grandParent=path.getParentNode(1);var isTypeScriptDirective=options.parser==="typescript"&&typeof n.value==="string"&&grandParent&&(grandParent.type==="Program"||grandParent.type==="BlockStatement");return nodeStr(n,options,isTypeScriptDirective);}case"Directive":return path.call(print,"value");// Babel 6 -case"DirectiveLiteral":return nodeStr(n,options);case"UnaryExpression":parts.push(n.operator);if(/[a-z]$/.test(n.operator)){parts.push(" ");}parts.push(path.call(print,"argument"));return concat$2(parts);case"UpdateExpression":parts.push(path.call(print,"argument"),n.operator);if(n.prefix){parts.reverse();}return concat$2(parts);case"ConditionalExpression":{// We print a ConditionalExpression in either "JSX mode" or "normal mode". -// See tests/jsx/conditional-expression.js for more info. -var jsxMode=false;var _parent10=path.getParentNode();var forceNoIndent=_parent10.type==="ConditionalExpression";// Find the outermost non-ConditionalExpression parent, and the outermost -// ConditionalExpression parent. We'll use these to determine if we should -// print in JSX mode. -var currentParent=void 0;var previousParent=void 0;var _i28=0;do{previousParent=currentParent||n;currentParent=path.getParentNode(_i28);_i28++;}while(currentParent&¤tParent.type==="ConditionalExpression");var firstNonConditionalParent=currentParent||_parent10;var lastConditionalParent=previousParent;if(n.test.type==="JSXElement"||n.consequent.type==="JSXElement"||n.alternate.type==="JSXElement"||conditionalExpressionChainContainsJSX(lastConditionalParent)){jsxMode=true;forceNoIndent=true;// Even though they don't need parens, we wrap (almost) everything in -// parens when using ?: within JSX, because the parens are analogous to -// curly braces in an if statement. -var wrap=function wrap(doc){return concat$2([ifBreak$1("(",""),indent$2(concat$2([softline$1,doc])),softline$1,ifBreak$1(")","")]);};// The only things we don't wrap are: -// * Nested conditional expressions in alternates -// * null -var _isNull=function _isNull(node){return node.type==="NullLiteral"||node.type==="Literal"&&node.value===null;};parts.push(" ? ",_isNull(n.consequent)?path.call(print,"consequent"):wrap(path.call(print,"consequent"))," : ",n.alternate.type==="ConditionalExpression"||_isNull(n.alternate)?path.call(print,"alternate"):wrap(path.call(print,"alternate")));}else{// normal mode -parts.push(line$1,"? ",n.consequent.type==="ConditionalExpression"?ifBreak$1("","("):"",align$1(2,path.call(print,"consequent")),n.consequent.type==="ConditionalExpression"?ifBreak$1("",")"):"",line$1,": ",align$1(2,path.call(print,"alternate")));}// In JSX mode, we want a whole chain of ConditionalExpressions to all -// break if any of them break. That means we should only group around the -// outer-most ConditionalExpression. -var maybeGroup=function maybeGroup(doc){return jsxMode?_parent10===firstNonConditionalParent?group$1(doc):doc:group$1(doc);};// Always group in normal mode. -// Break the closing paren to keep the chain right after it: -// (a -// ? b -// : c -// ).call() -var breakClosingParen=!jsxMode&&_parent10.type==="MemberExpression"&&!_parent10.computed;return maybeGroup(concat$2([path.call(print,"test"),forceNoIndent?concat$2(parts):indent$2(concat$2(parts)),breakClosingParen?softline$1:""]));}case"VariableDeclaration":{var printed=path.map(function(childPath){return print(childPath);},"declarations");// We generally want to terminate all variable declarations with a -// semicolon, except when they in the () part of for loops. -var _parentNode3=path.getParentNode();var isParentForLoop=_parentNode3.type==="ForStatement"||_parentNode3.type==="ForInStatement"||_parentNode3.type==="ForOfStatement"||_parentNode3.type==="ForAwaitStatement";var hasValue=n.declarations.some(function(decl){return decl.init;});var firstVariable=void 0;if(printed.length===1){firstVariable=printed[0];}else if(printed.length>1){// Indent first var to comply with eslint one-var rule -firstVariable=indent$2(printed[0]);}parts=[isNodeStartingWithDeclare(n,options)?"declare ":"",n.kind,firstVariable?concat$2([" ",firstVariable]):"",indent$2(concat$2(printed.slice(1).map(function(p){return concat$2([",",hasValue&&!isParentForLoop?hardline$2:line$1,p]);})))];if(!(isParentForLoop&&_parentNode3.body!==n)){parts.push(semi);}return group$1(concat$2(parts));}case"VariableDeclarator":return printAssignment(n.id,concat$2([path.call(print,"id"),path.call(print,"typeParameters")])," =",n.init,n.init&&path.call(print,"init"),options);case"WithStatement":return group$1(concat$2(["with (",path.call(print,"object"),")",adjustClause(n.body,path.call(print,"body"))]));case"IfStatement":{var con=adjustClause(n.consequent,path.call(print,"consequent"));var opening=group$1(concat$2(["if (",group$1(concat$2([indent$2(concat$2([softline$1,path.call(print,"test")])),softline$1])),")",con]));parts.push(opening);if(n.alternate){if(n.consequent.type==="BlockStatement"){parts.push(" else");}else{parts.push(hardline$2,"else");}parts.push(group$1(adjustClause(n.alternate,path.call(print,"alternate"),n.alternate.type==="IfStatement")));}return concat$2(parts);}case"ForStatement":{var _body=adjustClause(n.body,path.call(print,"body"));// We want to keep dangling comments above the loop to stay consistent. -// Any comment positioned between the for statement and the parentheses -// is going to be printed before the statement. -var dangling=comments$3.printDanglingComments(path,options,/* sameLine */true);var printedComments=dangling?concat$2([dangling,softline$1]):"";if(!n.init&&!n.test&&!n.update){return concat$2([printedComments,group$1(concat$2(["for (;;)",_body]))]);}return concat$2([printedComments,group$1(concat$2(["for (",group$1(concat$2([indent$2(concat$2([softline$1,path.call(print,"init"),";",line$1,path.call(print,"test"),";",line$1,path.call(print,"update")])),softline$1])),")",_body]))]);}case"WhileStatement":return group$1(concat$2(["while (",group$1(concat$2([indent$2(concat$2([softline$1,path.call(print,"test")])),softline$1])),")",adjustClause(n.body,path.call(print,"body"))]));case"ForInStatement":// Note: esprima can't actually parse "for each (". -return group$1(concat$2([n.each?"for each (":"for (",path.call(print,"left")," in ",path.call(print,"right"),")",adjustClause(n.body,path.call(print,"body"))]));case"ForOfStatement":case"ForAwaitStatement":{// Babylon 7 removed ForAwaitStatement in favor of ForOfStatement -// with `"await": true`: -// https://github.com/estree/estree/pull/138 -var isAwait=n.type==="ForAwaitStatement"||n.await;return group$1(concat$2(["for",isAwait?" await":""," (",path.call(print,"left")," of ",path.call(print,"right"),")",adjustClause(n.body,path.call(print,"body"))]));}case"DoWhileStatement":{var clause=adjustClause(n.body,path.call(print,"body"));var doBody=group$1(concat$2(["do",clause]));parts=[doBody];if(n.body.type==="BlockStatement"){parts.push(" ");}else{parts.push(hardline$2);}parts.push("while (");parts.push(group$1(concat$2([indent$2(concat$2([softline$1,path.call(print,"test")])),softline$1])),")",semi);return concat$2(parts);}case"DoExpression":return concat$2(["do ",path.call(print,"body")]);case"BreakStatement":parts.push("break");if(n.label){parts.push(" ",path.call(print,"label"));}parts.push(semi);return concat$2(parts);case"ContinueStatement":parts.push("continue");if(n.label){parts.push(" ",path.call(print,"label"));}parts.push(semi);return concat$2(parts);case"LabeledStatement":if(n.body.type==="EmptyStatement"){return concat$2([path.call(print,"label"),":;"]);}return concat$2([path.call(print,"label"),": ",path.call(print,"body")]);case"TryStatement":return concat$2(["try ",path.call(print,"block"),n.handler?concat$2([" ",path.call(print,"handler")]):"",n.finalizer?concat$2([" finally ",path.call(print,"finalizer")]):""]);case"CatchClause":return concat$2(["catch ",n.param?concat$2(["(",path.call(print,"param"),") "]):"",path.call(print,"body")]);case"ThrowStatement":return concat$2(["throw ",path.call(print,"argument"),semi]);// Note: ignoring n.lexical because it has no printing consequences. -case"SwitchStatement":return concat$2(["switch (",path.call(print,"discriminant"),") {",n.cases.length>0?indent$2(concat$2([hardline$2,join$2(hardline$2,path.map(function(casePath){var caseNode=casePath.getValue();return concat$2([casePath.call(print),n.cases.indexOf(caseNode)!==n.cases.length-1&&util$5.isNextLineEmpty(options.originalText,caseNode)?hardline$2:""]);},"cases"))])):"",hardline$2,"}"]);case"SwitchCase":{if(n.test){parts.push("case ",path.call(print,"test"),":");}else{parts.push("default:");}var consequent=n.consequent.filter(function(node){return node.type!=="EmptyStatement";});if(consequent.length>0){var cons=path.call(function(consequentPath){return printStatementSequence(consequentPath,options,print);},"consequent");parts.push(consequent.length===1&&consequent[0].type==="BlockStatement"?concat$2([" ",cons]):indent$2(concat$2([hardline$2,cons])));}return concat$2(parts);}// JSX extensions below. -case"DebuggerStatement":return concat$2(["debugger",semi]);case"JSXAttribute":parts.push(path.call(print,"name"));if(n.value){var res=void 0;if(isStringLiteral(n.value)){var value=rawText(n.value);res='"'+value.slice(1,-1).replace(/"/g,""")+'"';}else{res=path.call(print,"value");}parts.push("=",res);}return concat$2(parts);case"JSXIdentifier":// Can be removed when this is fixed: -// https://github.com/eslint/typescript-eslint-parser/issues/337 -if(!n.name){return"this";}return""+n.name;case"JSXNamespacedName":return join$2(":",[path.call(print,"namespace"),path.call(print,"name")]);case"JSXMemberExpression":return join$2(".",[path.call(print,"object"),path.call(print,"property")]);case"TSQualifiedName":return join$2(".",[path.call(print,"left"),path.call(print,"right")]);case"JSXSpreadAttribute":case"JSXSpreadChild":{return concat$2(["{",path.call(function(p){var printed=concat$2(["...",print(p)]);var n=p.getValue();if(!n.comments||!n.comments.length){return printed;}return concat$2([indent$2(concat$2([softline$1,comments$3.printComments(p,function(){return printed;},options)])),softline$1]);},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]);}case"JSXExpressionContainer":{var _parent11=path.getParentNode(0);var preventInline=_parent11.type==="JSXAttribute"&&n.expression.comments&&n.expression.comments.length>0;var _shouldInline=!preventInline&&(n.expression.type==="ArrayExpression"||n.expression.type==="ObjectExpression"||n.expression.type==="ArrowFunctionExpression"||n.expression.type==="CallExpression"||n.expression.type==="FunctionExpression"||n.expression.type==="JSXEmptyExpression"||n.expression.type==="TemplateLiteral"||n.expression.type==="TaggedTemplateExpression"||_parent11.type==="JSXElement"&&(n.expression.type==="ConditionalExpression"||isBinaryish(n.expression)));if(_shouldInline){return group$1(concat$2(["{",path.call(print,"expression"),lineSuffixBoundary$1,"}"]));}return group$1(concat$2(["{",indent$2(concat$2([softline$1,path.call(print,"expression")])),softline$1,lineSuffixBoundary$1,"}"]));}case"JSXElement":{var elem=comments$3.printComments(path,function(){return printJSXElement(path,options,print);},options);return maybeWrapJSXElementInParens(path,elem);}case"JSXOpeningElement":{var _n=path.getValue();// don't break up opening elements with a single long text attribute -if(_n.attributes.length===1&&_n.attributes[0].value&&isStringLiteral(_n.attributes[0].value)&&// We should break for the following cases: -//
-//
-!(_n.name&&_n.name.comments&&_n.name.comments.length||_n.attributes[0].comments&&_n.attributes[0].comments.length)){return group$1(concat$2(["<",path.call(print,"name")," ",concat$2(path.map(print,"attributes")),_n.selfClosing?" />":">"]));}var bracketSameLine=options.jsxBracketSameLine&&// We should print the bracket in a new line for the following cases: -//
-//
-!(_n.name&&!(_n.attributes&&_n.attributes.length)&&_n.name.comments&&_n.name.comments.length||_n.attributes&&_n.attributes.length&&hasTrailingComment(util$5.getLast(_n.attributes)));return group$1(concat$2(["<",path.call(print,"name"),concat$2([indent$2(concat$2(path.map(function(attr){return concat$2([line$1,print(attr)]);},"attributes"))),_n.selfClosing?line$1:bracketSameLine?">":softline$1]),_n.selfClosing?"/>":bracketSameLine?"":">"]));}case"JSXClosingElement":return concat$2([""]);case"JSXText":/* istanbul ignore next */throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":{var requiresHardline=n.comments&&!n.comments.every(util$5.isBlockComment);return concat$2([comments$3.printDanglingComments(path,options,/* sameIndent */!requiresHardline),requiresHardline?hardline$2:""]);}case"ClassBody":if(!n.comments&&n.body.length===0){return"{}";}return concat$2(["{",n.body.length>0?indent$2(concat$2([hardline$2,path.call(function(bodyPath){return printStatementSequence(bodyPath,options,print);},"body")])):comments$3.printDanglingComments(path,options),hardline$2,"}"]);case"ClassProperty":case"TSAbstractClassProperty":case"ClassPrivateProperty":{if(n.accessibility){parts.push(n.accessibility+" ");}if(n.static){parts.push("static ");}if(n.type==="TSAbstractClassProperty"){parts.push("abstract ");}if(n.readonly){parts.push("readonly ");}var variance=getFlowVariance(n);if(variance){parts.push(variance);}if(n.computed){parts.push("[",path.call(print,"key"),"]");}else{parts.push(printPropertyKey(path,options,print));}if(n.typeAnnotation){parts.push(": ",path.call(print,"typeAnnotation"));}if(n.value){parts.push(" =",printAssignmentRight(n.value,path.call(print,"value"),false,// canBreak -options));}parts.push(semi);return concat$2(parts);}case"ClassDeclaration":case"ClassExpression":case"TSAbstractClassDeclaration":if(isNodeStartingWithDeclare(n,options)){parts.push("declare ");}parts.push(concat$2(printClass(path,options,print)));return concat$2(parts);case"TSInterfaceHeritage":parts.push(path.call(print,"id"));if(n.typeParameters){parts.push(path.call(print,"typeParameters"));}return concat$2(parts);case"TemplateElement":return join$2(literalline$1,n.value.raw.split(/\r?\n/g));case"TemplateLiteral":{var expressions=path.map(print,"expressions");parts.push("`");path.each(function(childPath){var i=childPath.getName();parts.push(print(childPath));if(i void; -var _parent12=path.getParentNode(0);var _parentParent2=path.getParentNode(1);var _parentParentParent=path.getParentNode(2);var isArrowFunctionTypeAnnotation=n.type==="TSFunctionType"||!(_parent12.type==="ObjectTypeProperty"&&!getFlowVariance(_parent12)&&!_parent12.optional&&util$5.locStart(_parent12)===util$5.locStart(n)||_parent12.type==="ObjectTypeCallProperty"||_parentParentParent&&_parentParentParent.type==="DeclareFunction");var needsColon=isArrowFunctionTypeAnnotation&&_parent12.type==="TypeAnnotation";// Sadly we can't put it inside of FastPath::needsColon because we are -// printing ":" as part of the expression and it would put parenthesis -// around :( -var needsParens=needsColon&&isArrowFunctionTypeAnnotation&&_parent12.type==="TypeAnnotation"&&_parentParent2.type==="ArrowFunctionExpression";if(isObjectTypePropertyAFunction(_parent12)){isArrowFunctionTypeAnnotation=true;needsColon=true;}if(needsParens){parts.push("(");}parts.push(printFunctionParams(path,print,options,/* expandArg */false,/* printTypeParams */true));// The returnType is not wrapped in a TypeAnnotation, so the colon -// needs to be added separately. -if(n.returnType||n.predicate||n.typeAnnotation){parts.push(isArrowFunctionTypeAnnotation?" => ":": ",path.call(print,"returnType"),path.call(print,"predicate"),path.call(print,"typeAnnotation"));}if(needsParens){parts.push(")");}return group$1(concat$2(parts));}case"FunctionTypeParam":return concat$2([path.call(print,"name"),printOptionalToken(path),n.name?": ":"",path.call(print,"typeAnnotation")]);case"GenericTypeAnnotation":return concat$2([path.call(print,"id"),path.call(print,"typeParameters")]);case"DeclareInterface":case"InterfaceDeclaration":{if(n.type==="DeclareInterface"||isNodeStartingWithDeclare(n,options)){parts.push("declare ");}parts.push("interface ",path.call(print,"id"),path.call(print,"typeParameters"));if(n["extends"].length>0){parts.push(group$1(indent$2(concat$2([line$1,"extends ",join$2(", ",path.map(print,"extends"))]))));}parts.push(" ");parts.push(path.call(print,"body"));return group$1(concat$2(parts));}case"ClassImplements":case"InterfaceExtends":return concat$2([path.call(print,"id"),path.call(print,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":{var types=path.map(print,"types");var result=[];var wasIndented=false;for(var _i29=0;_i291){wasIndented=true;}result.push(" & ",_i29>1?indent$2(types[_i29]):types[_i29]);}}return group$1(concat$2(result));}case"TSUnionType":case"UnionTypeAnnotation":{// single-line variation -// A | B | C -// multi-line variation -// | A -// | B -// | C -var _parent13=path.getParentNode();// If there's a leading comment, the parent is doing the indentation -var shouldIndent=_parent13.type!=="TypeParameterInstantiation"&&_parent13.type!=="GenericTypeAnnotation"&&_parent13.type!=="TSTypeReference"&&!((_parent13.type==="TypeAlias"||_parent13.type==="VariableDeclarator")&&hasLeadingOwnLineComment(options.originalText,n));// { -// a: string -// } | null | void -// should be inlined and not be printed in the multi-line variant -var shouldHug=shouldHugType(n);// We want to align the children but without its comment, so it looks like -// | child1 -// // comment -// | child2 -var _printed3=path.map(function(typePath){var printedType=typePath.call(print);if(!shouldHug&&shouldIndent){printedType=align$1(2,printedType);}return comments$3.printComments(typePath,function(){return printedType;},options);},"types");if(shouldHug){return join$2(" | ",_printed3);}var _code2=concat$2([ifBreak$1(concat$2([shouldIndent?line$1:"","| "])),join$2(concat$2([line$1,"| "]),_printed3)]);return group$1(shouldIndent?indent$2(_code2):_code2);}case"NullableTypeAnnotation":return concat$2(["?",path.call(print,"typeAnnotation")]);case"TSNullKeyword":case"NullLiteralTypeAnnotation":return"null";case"ThisTypeAnnotation":return"this";case"NumberTypeAnnotation":return"number";case"ObjectTypeCallProperty":if(n.static){parts.push("static ");}parts.push(path.call(print,"value"));return concat$2(parts);case"ObjectTypeIndexer":{var _variance=getFlowVariance(n);return concat$2([_variance||"","[",path.call(print,"id"),n.id?": ":"",path.call(print,"key"),"]: ",path.call(print,"value")]);}case"ObjectTypeProperty":{var _variance2=getFlowVariance(n);return concat$2([n.static?"static ":"",isGetterOrSetter(n)?n.kind+" ":"",_variance2||"",printPropertyKey(path,options,print),printOptionalToken(path),isFunctionNotation(n)?"":": ",path.call(print,"value")]);}case"QualifiedTypeIdentifier":return concat$2([path.call(print,"qualification"),".",path.call(print,"id")]);case"StringLiteralTypeAnnotation":return nodeStr(n,options);case"NumberLiteralTypeAnnotation":assert$1.strictEqual(_typeof(n.value),"number");if(n.extra!=null){return util$5.printNumber(n.extra.raw);}return util$5.printNumber(n.raw);case"StringTypeAnnotation":return"string";case"DeclareTypeAlias":case"TypeAlias":{if(n.type==="DeclareTypeAlias"||isNodeStartingWithDeclare(n,options)){parts.push("declare ");}var canBreak=n.right.type==="StringLiteralTypeAnnotation";var _printed4=printAssignmentRight(n.right,path.call(print,"right"),canBreak,options);parts.push("type ",path.call(print,"id"),path.call(print,"typeParameters")," =",_printed4,semi);return group$1(concat$2(parts));}case"TypeCastExpression":return concat$2(["(",path.call(print,"expression"),": ",path.call(print,"typeAnnotation"),")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":return printTypeParameters(path,options,print,"params");case"TypeParameter":{var _variance3=getFlowVariance(n);if(_variance3){parts.push(_variance3);}parts.push(path.call(print,"name"));if(n.bound){parts.push(": ");parts.push(path.call(print,"bound"));}if(n.constraint){parts.push(" extends ",path.call(print,"constraint"));}if(n["default"]){parts.push(" = ",path.call(print,"default"));}return concat$2(parts);}case"TypeofTypeAnnotation":return concat$2(["typeof ",path.call(print,"argument")]);case"VoidTypeAnnotation":return"void";case"InferredPredicate":return"%checks";// Unhandled types below. If encountered, nodes of these types should -// be either left alone or desugared into AST types that are fully -// supported by the pretty-printer. -case"DeclaredPredicate":return concat$2(["%checks(",path.call(print,"value"),")"]);case"TSAbstractKeyword":return"abstract";case"TSAnyKeyword":return"any";case"TSAsyncKeyword":return"async";case"TSBooleanKeyword":return"boolean";case"TSConstKeyword":return"const";case"TSDeclareKeyword":return"declare";case"TSExportKeyword":return"export";case"TSNeverKeyword":return"never";case"TSNumberKeyword":return"number";case"TSObjectKeyword":return"object";case"TSProtectedKeyword":return"protected";case"TSPrivateKeyword":return"private";case"TSPublicKeyword":return"public";case"TSReadonlyKeyword":return"readonly";case"TSSymbolKeyword":return"symbol";case"TSStaticKeyword":return"static";case"TSStringKeyword":return"string";case"TSUndefinedKeyword":return"undefined";case"TSVoidKeyword":return"void";case"TSAsExpression":return concat$2([path.call(print,"expression")," as ",path.call(print,"typeAnnotation")]);case"TSArrayType":return concat$2([path.call(print,"elementType"),"[]"]);case"TSPropertySignature":{if(n.export){parts.push("export ");}if(n.accessibility){parts.push(n.accessibility+" ");}if(n.static){parts.push("static ");}if(n.readonly){parts.push("readonly ");}if(n.computed){parts.push("[");}parts.push(printPropertyKey(path,options,print));if(n.computed){parts.push("]");}parts.push(printOptionalToken(path));if(n.typeAnnotation){parts.push(": ");parts.push(path.call(print,"typeAnnotation"));}// This isn't valid semantically, but it's in the AST so we can print it. -if(n.initializer){parts.push(" = ",path.call(print,"initializer"));}return concat$2(parts);}case"TSParameterProperty":if(n.accessibility){parts.push(n.accessibility+" ");}if(n.export){parts.push("export ");}if(n.static){parts.push("static ");}if(n.readonly){parts.push("readonly ");}parts.push(path.call(print,"parameter"));return concat$2(parts);case"TSTypeReference":return concat$2([path.call(print,"typeName"),printTypeParameters(path,options,print,"typeParameters")]);case"TSTypeQuery":return concat$2(["typeof ",path.call(print,"exprName")]);case"TSParenthesizedType":{return path.call(print,"typeAnnotation");}case"TSIndexSignature":{var _parent14=path.getParentNode();return concat$2([n.export?"export ":"",n.accessibility?concat$2([n.accessibility," "]):"",n.static?"static ":"",n.readonly?"readonly ":"","[",path.call(print,"index"),"]: ",path.call(print,"typeAnnotation"),_parent14.type==="ClassBody"?semi:""]);}case"TSTypePredicate":return concat$2([path.call(print,"parameterName")," is ",path.call(print,"typeAnnotation")]);case"TSNonNullExpression":return concat$2([path.call(print,"expression"),"!"]);case"TSThisType":return"this";case"TSLastTypeNode":return path.call(print,"literal");case"TSIndexedAccessType":return concat$2([path.call(print,"objectType"),"[",path.call(print,"indexType"),"]"]);case"TSConstructSignature":case"TSConstructorType":case"TSCallSignature":{if(n.type!=="TSCallSignature"){parts.push("new ");}parts.push(group$1(printFunctionParams(path,print,options,/* expandArg */false,/* printTypeParams */true)));if(n.typeAnnotation){var isType=n.type==="TSConstructorType";parts.push(isType?" => ":": ",path.call(print,"typeAnnotation"));}return concat$2(parts);}case"TSTypeOperator":return concat$2(["keyof ",path.call(print,"typeAnnotation")]);case"TSMappedType":return group$1(concat$2(["{",indent$2(concat$2([options.bracketSpacing?line$1:softline$1,n.readonlyToken?concat$2([path.call(print,"readonlyToken")," "]):"",printTypeScriptModifiers(path,options,print),"[",path.call(print,"typeParameter"),"]",n.questionToken?"?":"",": ",path.call(print,"typeAnnotation")])),comments$3.printDanglingComments(path,options,/* sameIndent */true),options.bracketSpacing?line$1:softline$1,"}"]));case"TSTypeParameter":parts.push(path.call(print,"name"));if(n.constraint){parts.push(" in ",path.call(print,"constraint"));}return concat$2(parts);case"TSMethodSignature":parts.push(n.accessibility?concat$2([n.accessibility," "]):"",n.export?"export ":"",n.static?"static ":"",n.readonly?"readonly ":"",n.computed?"[":"",path.call(print,"key"),n.computed?"]":"",printOptionalToken(path),printFunctionParams(path,print,options,/* expandArg */false,/* printTypeParams */true));if(n.typeAnnotation){parts.push(": ",path.call(print,"typeAnnotation"));}return group$1(concat$2(parts));case"TSNamespaceExportDeclaration":parts.push("export as namespace ",path.call(print,"name"));if(options.semi){parts.push(";");}return group$1(concat$2(parts));case"TSEnumDeclaration":if(isNodeStartingWithDeclare(n,options)){parts.push("declare ");}if(n.modifiers){parts.push(printTypeScriptModifiers(path,options,print));}if(n.const){parts.push("const ");}parts.push("enum ",path.call(print,"id")," ");if(n.members.length===0){parts.push(group$1(concat$2(["{",comments$3.printDanglingComments(path,options),softline$1,"}"])));}else{parts.push(group$1(concat$2(["{",indent$2(concat$2([hardline$2,printArrayItems(path,options,"members",print),shouldPrintComma(options,"es5")?",":""])),comments$3.printDanglingComments(path,options,/* sameIndent */true),hardline$2,"}"])));}return concat$2(parts);case"TSEnumMember":parts.push(path.call(print,"id"));if(n.initializer){parts.push(" = ",path.call(print,"initializer"));}return concat$2(parts);case"TSImportEqualsDeclaration":parts.push(printTypeScriptModifiers(path,options,print),"import ",path.call(print,"name")," = ",path.call(print,"moduleReference"));if(options.semi){parts.push(";");}return group$1(concat$2(parts));case"TSExternalModuleReference":return concat$2(["require(",path.call(print,"expression"),")"]);case"TSModuleDeclaration":{var _parent15=path.getParentNode();var isExternalModule=isLiteral(n.id);var parentIsDeclaration=_parent15.type==="TSModuleDeclaration";var bodyIsDeclaration=n.body&&n.body.type==="TSModuleDeclaration";if(parentIsDeclaration){parts.push(".");}else{if(n.declare===true){parts.push("declare ");}parts.push(printTypeScriptModifiers(path,options,print));// Global declaration looks like this: -// (declare)? global { ... } -var isGlobalDeclaration=n.id.type==="Identifier"&&n.id.name==="global"&&!/namespace|module/.test(options.originalText.slice(util$5.locStart(n),util$5.locStart(n.id)));if(!isGlobalDeclaration){parts.push(isExternalModule?"module ":"namespace ");}}parts.push(path.call(print,"id"));if(bodyIsDeclaration){parts.push(path.call(print,"body"));}else if(n.body){parts.push(" {",indent$2(concat$2([line$1,path.call(function(bodyPath){return comments$3.printDanglingComments(bodyPath,options,true);},"body"),group$1(path.call(print,"body"))])),line$1,"}");}else{parts.push(semi);}return concat$2(parts);}case"TSModuleBlock":return path.call(function(bodyPath){return printStatementSequence(bodyPath,options,print);},"body");case"PrivateName":return concat$2(["#",path.call(print,"id")]);default:/* istanbul ignore next */throw new Error("unknown type: "+JSON.stringify(n.type));}}function printStatementSequence(path,options,print){var printed=[];var bodyNode=path.getNode();var isClass=bodyNode.type==="ClassBody";path.map(function(stmtPath,i){var stmt=stmtPath.getValue();// Just in case the AST has been modified to contain falsy -// "statements," it's safer simply to skip them. -/* istanbul ignore if */if(!stmt){return;}// Skip printing EmptyStatement nodes to avoid leaving stray -// semicolons lying around. -if(stmt.type==="EmptyStatement"){return;}var stmtPrinted=print(stmtPath);var text=options.originalText;var parts=[];// in no-semi mode, prepend statement with semicolon if it might break ASI -if(!options.semi&&!isClass&&stmtNeedsASIProtection(stmtPath)){if(stmt.comments&&stmt.comments.some(function(comment){return comment.leading;})){// Note: stmtNeedsASIProtection requires stmtPath to already be printed -// as it reads needsParens which is mutated on the instance -parts.push(print(stmtPath,{needsSemi:true}));}else{parts.push(";",stmtPrinted);}}else{parts.push(stmtPrinted);}if(!options.semi&&isClass){if(classPropMayCauseASIProblems(stmtPath)){parts.push(";");}else if(stmt.type==="ClassProperty"){var nextChild=bodyNode.body[i+1];if(classChildNeedsASIProtection(nextChild)){parts.push(";");}}}if(util$5.isNextLineEmpty(text,stmt)&&!isLastStatement(stmtPath)){parts.push(hardline$2);}printed.push(concat$2(parts));});return join$2(hardline$2,printed);}function printPropertyKey(path,options,print){var node=path.getNode();var key=node.key;if(isStringLiteral(key)&&isIdentifierName(key.value)&&!node.computed&&options.parser!=="json"){// 'a' -> a -return path.call(function(keyPath){return comments$3.printComments(keyPath,function(){return key.value;},options);},"key");}return path.call(print,"key");}function printMethod(path,options,print){var node=path.getNode();var semi=options.semi?";":"";var kind=node.kind;var parts=[];if(node.type==="ObjectMethod"||node.type==="ClassMethod"){node.value=node;}if(node.value.async){parts.push("async ");}if(!kind||kind==="init"||kind==="method"||kind==="constructor"){if(node.value.generator){parts.push("*");}}else{assert$1.ok(kind==="get"||kind==="set");parts.push(kind," ");}var key=printPropertyKey(path,options,print);if(node.computed){key=concat$2(["[",key,"]"]);}parts.push(key,concat$2(path.call(function(valuePath){return[printFunctionTypeParameters(valuePath,options,print),group$1(concat$2([printFunctionParams(valuePath,print,options),printReturnType(valuePath,print)]))];},"value")));if(!node.value.body||node.value.body.length===0){parts.push(semi);}else{parts.push(" ",path.call(print,"value","body"));}return concat$2(parts);}function couldGroupArg(arg){return arg.type==="ObjectExpression"&&(arg.properties.length>0||arg.comments)||arg.type==="ArrayExpression"&&(arg.elements.length>0||arg.comments)||arg.type==="TSTypeAssertionExpression"||arg.type==="TSAsExpression"||arg.type==="FunctionExpression"||arg.type==="ArrowFunctionExpression"&&(arg.body.type==="BlockStatement"||arg.body.type==="ArrowFunctionExpression"||arg.body.type==="ObjectExpression"||arg.body.type==="ArrayExpression"||arg.body.type==="CallExpression"||arg.body.type==="JSXElement");}function shouldGroupLastArg(args){var lastArg=util$5.getLast(args);var penultimateArg=util$5.getPenultimate(args);return!hasLeadingComment(lastArg)&&!hasTrailingComment(lastArg)&&couldGroupArg(lastArg)&&(// If the last two arguments are of the same type, -// disable last element expansion. -!penultimateArg||penultimateArg.type!==lastArg.type);}function shouldGroupFirstArg(args){if(args.length!==2){return false;}var firstArg=args[0];var secondArg=args[1];return(!firstArg.comments||!firstArg.comments.length)&&(firstArg.type==="FunctionExpression"||firstArg.type==="ArrowFunctionExpression"&&firstArg.body.type==="BlockStatement")&&!couldGroupArg(secondArg);}function printArgumentsList(path,options,print){var args=path.getValue().arguments;if(args.length===0){return concat$2(["(",comments$3.printDanglingComments(path,options,/* sameIndent */true),")"]);}var anyArgEmptyLine=false;var hasEmptyLineFollowingFirstArg=false;var lastArgIndex=args.length-1;var printedArguments=path.map(function(argPath,index){var arg=argPath.getNode();var parts=[print(argPath)];if(index===lastArgIndex){// do nothing -}else if(util$5.isNextLineEmpty(options.originalText,arg)){if(index===0){hasEmptyLineFollowingFirstArg=true;}anyArgEmptyLine=true;parts.push(",",hardline$2,hardline$2);}else{parts.push(",",line$1);}return concat$2(parts);},"arguments");// This is just an optimization; I think we could return the -// conditional group for all function calls, but it's more expensive -// so only do it for specific forms. -var shouldGroupFirst=shouldGroupFirstArg(args);var shouldGroupLast=shouldGroupLastArg(args);if(shouldGroupFirst||shouldGroupLast){var shouldBreak=(shouldGroupFirst?printedArguments.slice(1).some(willBreak):printedArguments.slice(0,-1).some(willBreak))||anyArgEmptyLine;// We want to print the last argument with a special flag -var printedExpanded=void 0;var _i30=0;path.each(function(argPath){if(shouldGroupFirst&&_i30===0){printedExpanded=[concat$2([argPath.call(function(p){return print(p,{expandFirstArg:true});}),printedArguments.length>1?",":"",hasEmptyLineFollowingFirstArg?hardline$2:line$1,hasEmptyLineFollowingFirstArg?hardline$2:""])].concat(printedArguments.slice(1));}if(shouldGroupLast&&_i30===args.length-1){printedExpanded=printedArguments.slice(0,-1).concat(argPath.call(function(p){return print(p,{expandLastArg:true});}));}_i30++;},"arguments");var somePrintedArgumentsWillBreak=printedArguments.some(willBreak);return concat$2([somePrintedArgumentsWillBreak?breakParent$2:"",conditionalGroup$1([concat$2([ifBreak$1(indent$2(concat$2(["(",softline$1,concat$2(printedExpanded)])),concat$2(["(",concat$2(printedExpanded)])),somePrintedArgumentsWillBreak?softline$1:"",")"]),shouldGroupFirst?concat$2(["(",group$1(printedExpanded[0],{shouldBreak:true}),concat$2(printedExpanded.slice(1)),")"]):concat$2(["(",concat$2(printedArguments.slice(0,-1)),group$1(util$5.getLast(printedExpanded),{shouldBreak:true}),")"]),group$1(concat$2(["(",indent$2(concat$2([line$1,concat$2(printedArguments)])),shouldPrintComma(options,"all")?",":"",line$1,")"]),{shouldBreak:true})],{shouldBreak:shouldBreak})]);}return group$1(concat$2(["(",indent$2(concat$2([softline$1,concat$2(printedArguments)])),ifBreak$1(shouldPrintComma(options,"all")?",":""),softline$1,")"]),{shouldBreak:printedArguments.some(willBreak)||anyArgEmptyLine});}function printFunctionTypeParameters(path,options,print){var fun=path.getValue();if(fun.typeParameters){return path.call(print,"typeParameters");}return"";}function printFunctionParams(path,print,options,expandArg,printTypeParams){var fun=path.getValue();var paramsField=fun.parameters?"parameters":"params";var typeParams=printTypeParams?printFunctionTypeParameters(path,options,print):"";var printed=[];if(fun[paramsField]){printed=path.map(print,paramsField);}if(fun.rest){printed.push(concat$2(["...",path.call(print,"rest")]));}if(printed.length===0){return concat$2([typeParams,"(",comments$3.printDanglingComments(path,options,/* sameIndent */true),")"]);}var lastParam=util$5.getLast(fun[paramsField]);// If the parent is a call with the first/last argument expansion and this is the -// params of the first/last argument, we dont want the arguments to break and instead -// want the whole expression to be on a new line. -// -// Good: Bad: -// verylongcall( verylongcall(( -// (a, b) => { a, -// } b, -// }) ) => { -// }) -if(expandArg&&!(fun[paramsField]&&fun[paramsField].some(function(n){return n.comments;}))){return group$1(concat$2([docUtils.removeLines(typeParams),"(",join$2(", ",printed.map(docUtils.removeLines)),")"]));}// Single object destructuring should hug -// -// function({ -// a, -// b, -// c -// }) {} -if(shouldHugArguments(fun)){return concat$2([typeParams,"(",join$2(", ",printed),")"]);}var parent=path.getParentNode();var flowTypeAnnotations=["AnyTypeAnnotation","NullLiteralTypeAnnotation","GenericTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation","BooleanTypeAnnotation","BooleanLiteralTypeAnnotation","StringTypeAnnotation"];var isFlowShorthandWithOneArg=(isObjectTypePropertyAFunction(parent)||isTypeAnnotationAFunction(parent)||parent.type==="TypeAlias"||parent.type==="UnionTypeAnnotation"||parent.type==="TSUnionType"||parent.type==="IntersectionTypeAnnotation"||parent.type==="FunctionTypeAnnotation"&&parent.returnType===fun)&&fun[paramsField].length===1&&fun[paramsField][0].name===null&&fun[paramsField][0].typeAnnotation&&fun.typeParameters===null&&flowTypeAnnotations.indexOf(fun[paramsField][0].typeAnnotation.type)!==-1&&!(fun[paramsField][0].typeAnnotation.type==="GenericTypeAnnotation"&&fun[paramsField][0].typeAnnotation.typeParameters)&&!fun.rest;if(isFlowShorthandWithOneArg){return concat$2(printed);}var canHaveTrailingComma=!(lastParam&&lastParam.type==="RestElement")&&!fun.rest;return concat$2([typeParams,"(",indent$2(concat$2([softline$1,join$2(concat$2([",",line$1]),printed)])),ifBreak$1(canHaveTrailingComma&&shouldPrintComma(options,"all")?",":""),softline$1,")"]);}function canPrintParamsWithoutParens(node){return node.params.length===1&&!node.rest&&!node.typeParameters&&node.params[0].type==="Identifier"&&!node.params[0].typeAnnotation&&!node.params[0].comments&&!node.params[0].optional&&!node.predicate&&!node.returnType;}function printFunctionDeclaration(path,print,options){var n=path.getValue();var parts=[];if(n.async){parts.push("async ");}parts.push("function");if(n.generator){parts.push("*");}if(n.id){parts.push(" ",path.call(print,"id"));}parts.push(printFunctionTypeParameters(path,options,print),group$1(concat$2([printFunctionParams(path,print,options),printReturnType(path,print)])),n.body?" ":"",path.call(print,"body"));return concat$2(parts);}function printObjectMethod(path,options,print){var objMethod=path.getValue();var parts=[];if(objMethod.async){parts.push("async ");}if(objMethod.generator){parts.push("*");}if(objMethod.method||objMethod.kind==="get"||objMethod.kind==="set"){return printMethod(path,options,print);}var key=printPropertyKey(path,options,print);if(objMethod.computed){parts.push("[",key,"]");}else{parts.push(key);}parts.push(printFunctionTypeParameters(path,options,print),group$1(concat$2([printFunctionParams(path,print,options),printReturnType(path,print)]))," ",path.call(print,"body"));return concat$2(parts);}function printReturnType(path,print){var n=path.getValue();var parts=[path.call(print,"returnType")];// prepend colon to TypeScript type annotation -if(n.returnType&&n.returnType.typeAnnotation){parts.unshift(": ");}if(n.predicate){// The return type will already add the colon, but otherwise we -// need to do it ourselves -parts.push(n.returnType?" ":": ",path.call(print,"predicate"));}return concat$2(parts);}function printExportDeclaration(path,options,print){var decl=path.getValue();var semi=options.semi?";":"";var parts=["export "];if(decl["default"]||decl.type==="ExportDefaultDeclaration"){parts.push("default ");}parts.push(comments$3.printDanglingComments(path,options,/* sameIndent */true));if(decl.declaration){parts.push(path.call(print,"declaration"));if(decl.type==="ExportDefaultDeclaration"&&decl.declaration.type!=="ClassDeclaration"&&decl.declaration.type!=="FunctionDeclaration"&&decl.declaration.type!=="TSAbstractClassDeclaration"&&decl.declaration.type!=="TSNamespaceFunctionDeclaration"){parts.push(semi);}}else{if(decl.specifiers&&decl.specifiers.length>0){var specifiers=[];var defaultSpecifiers=[];var namespaceSpecifiers=[];path.each(function(specifierPath){var specifierType=path.getValue().type;if(specifierType==="ExportSpecifier"){specifiers.push(print(specifierPath));}else if(specifierType==="ExportDefaultSpecifier"){defaultSpecifiers.push(print(specifierPath));}else if(specifierType==="ExportNamespaceSpecifier"){namespaceSpecifiers.push(concat$2(["* as ",print(specifierPath)]));}},"specifiers");var isNamespaceFollowed=namespaceSpecifiers.length!==0&&(specifiers.length!==0||defaultSpecifiers.length!==0);var isDefaultFollowed=defaultSpecifiers.length!==0&&specifiers.length!==0;parts.push(decl.exportKind==="type"?"type ":"",concat$2(namespaceSpecifiers),concat$2([isNamespaceFollowed?", ":""]),concat$2(defaultSpecifiers),concat$2([isDefaultFollowed?", ":""]),specifiers.length!==0?group$1(concat$2(["{",indent$2(concat$2([options.bracketSpacing?line$1:softline$1,join$2(concat$2([",",line$1]),specifiers)])),ifBreak$1(shouldPrintComma(options)?",":""),options.bracketSpacing?line$1:softline$1,"}"])):"");}else{parts.push("{}");}if(decl.source){parts.push(" from ",path.call(print,"source"));}parts.push(semi);}return concat$2(parts);}function printFlowDeclaration(path,parts){var parentExportDecl=util$5.getParentExportDeclaration(path);if(parentExportDecl){assert$1.strictEqual(parentExportDecl.type,"DeclareExportDeclaration");}else{// If the parent node has type DeclareExportDeclaration, then it -// will be responsible for printing the "declare" token. Otherwise -// it needs to be printed with this non-exported declaration node. -parts.unshift("declare ");}return concat$2(parts);}function getFlowVariance(path){if(!path.variance){return null;}// Babylon 7.0 currently uses variance node type, and flow should -// follow suit soon: -// https://github.com/babel/babel/issues/4722 -var variance=path.variance.kind||path.variance;switch(variance){case"plus":return"+";case"minus":return"-";default:/* istanbul ignore next */return variance;}}function printTypeScriptModifiers(path,options,print){var n=path.getValue();if(!n.modifiers||!n.modifiers.length){return"";}return concat$2([join$2(" ",path.map(print,"modifiers"))," "]);}function printTypeParameters(path,options,print,paramsKey){var n=path.getValue();if(!n[paramsKey]){return"";}// for TypeParameterDeclaration typeParameters is a single node -if(!Array.isArray(n[paramsKey])){return path.call(print,paramsKey);}var shouldInline=n[paramsKey].length===1&&(shouldHugType(n[paramsKey][0])||n[paramsKey][0].type==="GenericTypeAnnotation"&&shouldHugType(n[paramsKey][0].id)||n[paramsKey][0].type==="TSTypeReference"&&shouldHugType(n[paramsKey][0].typeName)||n[paramsKey][0].type==="NullableTypeAnnotation");if(shouldInline){return concat$2(["<",join$2(", ",path.map(print,paramsKey)),">"]);}return group$1(concat$2(["<",indent$2(concat$2([softline$1,join$2(concat$2([",",line$1]),path.map(print,paramsKey))])),ifBreak$1(options.parser!=="typescript"&&shouldPrintComma(options,"all")?",":""),softline$1,">"]));}function printClass(path,options,print){var n=path.getValue();var parts=[];if(n.type==="TSAbstractClassDeclaration"){parts.push("abstract ");}parts.push("class");if(n.id){parts.push(" ",path.call(print,"id"));}parts.push(path.call(print,"typeParameters"));var partsGroup=[];if(n.superClass){if(hasLeadingOwnLineComment(options.originalText,n.superClass)){parts.push(hardline$2);}else{parts.push(" ");}var printed=concat$2(["extends ",path.call(print,"superClass"),path.call(print,"superTypeParameters")]);parts.push(path.call(function(superClass){return comments$3.printComments(superClass,function(){return printed;},options);},"superClass"));}else if(n.extends&&n.extends.length>0){parts.push(" extends ",join$2(", ",path.map(print,"extends")));}if(n["implements"]&&n["implements"].length>0){partsGroup.push(line$1,"implements ",group$1(indent$2(join$2(concat$2([",",line$1]),path.map(print,"implements")))));}if(partsGroup.length>0){parts.push(group$1(indent$2(concat$2(partsGroup))));}if(n.body&&n.body.comments&&hasLeadingOwnLineComment(options.originalText,n.body)){parts.push(hardline$2);}else{parts.push(" ");}parts.push(path.call(print,"body"));return parts;}function printOptionalToken(path){var node=path.getValue();if(!node.optional){return"";}if(node.type==="CallExpression"||node.type==="MemberExpression"&&node.computed){return"?.";}return"?";}function printMemberLookup(path,options,print){var property=path.call(print,"property");var n=path.getValue();var optional=printOptionalToken(path);if(!n.computed){return concat$2([optional,".",property]);}if(!n.property||isNumericLiteral(n.property)){return concat$2([optional,"[",property,"]"]);}return group$1(concat$2([optional,"[",indent$2(concat$2([softline$1,property])),softline$1,"]"]));}function printBindExpressionCallee(path,options,print){return concat$2(["::",path.call(print,"callee")]);}// We detect calls on member expressions specially to format a -// common pattern better. The pattern we are looking for is this: -// -// arr -// .map(x => x + 1) -// .filter(x => x > 10) -// .some(x => x % 2) -// -// The way it is structured in the AST is via a nested sequence of -// MemberExpression and CallExpression. We need to traverse the AST -// and make groups out of it to print it in the desired way. -function printMemberChain(path,options,print){// The first phase is to linearize the AST by traversing it down. -// -// a().b() -// has the following AST structure: -// CallExpression(MemberExpression(CallExpression(Identifier))) -// and we transform it into -// [Identifier, CallExpression, MemberExpression, CallExpression] -var printedNodes=[];// Here we try to retain one typed empty line after each call expression or -// the first group whether it is in parentheses or not -function shouldInsertEmptyLineAfter(node){var originalText=options.originalText;var nextCharIndex=util$5.getNextNonSpaceNonCommentCharacterIndex(originalText,node);var nextChar=originalText.charAt(nextCharIndex);// if it is cut off by a parenthesis, we only account for one typed empty -// line after that parenthesis -if(nextChar==")"){return util$5.isNextLineEmptyAfterIndex(originalText,nextCharIndex+1);}return util$5.isNextLineEmpty(originalText,node);}function rec(path){var node=path.getValue();if(node.type==="CallExpression"&&(isMemberish(node.callee)||node.callee.type==="CallExpression")){printedNodes.unshift({node:node,printed:concat$2([comments$3.printComments(path,function(){return concat$2([printOptionalToken(path),printFunctionTypeParameters(path,options,print),printArgumentsList(path,options,print)]);},options),shouldInsertEmptyLineAfter(node)?hardline$2:""])});path.call(function(callee){return rec(callee);},"callee");}else if(isMemberish(node)){printedNodes.unshift({node:node,printed:comments$3.printComments(path,function(){return node.type==="MemberExpression"?printMemberLookup(path,options,print):printBindExpressionCallee(path,options,print);},options)});path.call(function(object){return rec(object);},"object");}else{printedNodes.unshift({node:node,printed:path.call(print)});}}// Note: the comments of the root node have already been printed, so we -// need to extract this first call without printing them as they would -// if handled inside of the recursive call. -var node=path.getValue();printedNodes.unshift({node:node,printed:concat$2([printOptionalToken(path),printFunctionTypeParameters(path,options,print),printArgumentsList(path,options,print)])});path.call(function(callee){return rec(callee);},"callee");// Once we have a linear list of printed nodes, we want to create groups out -// of it. -// -// a().b.c().d().e -// will be grouped as -// [ -// [Identifier, CallExpression], -// [MemberExpression, MemberExpression, CallExpression], -// [MemberExpression, CallExpression], -// [MemberExpression], -// ] -// so that we can print it as -// a() -// .b.c() -// .d() -// .e -// The first group is the first node followed by -// - as many CallExpression as possible -// < fn()()() >.something() -// - as many array acessors as possible -// < fn()[0][1][2] >.something() -// - then, as many MemberExpression as possible but the last one -// < this.items >.something() -var groups=[];var currentGroup=[printedNodes[0]];var i=1;for(;i0){groups.push(currentGroup);}// There are cases like Object.keys(), Observable.of(), _.values() where -// they are the subject of all the chained calls and therefore should -// be kept on the same line: -// -// Object.keys(items) -// .filter(x => x) -// .map(x => x) -// -// In order to detect those cases, we use an heuristic: if the first -// node is just an identifier with the name starting with a capital -// letter, just a sequence of _$ or this. The rationale is that they are -// likely to be factories. -function isFactory(name){return name.match(/(^[A-Z])|^[_$]+$/);}var shouldMerge=groups.length>=2&&!groups[1][0].node.comments&&(groups[0].length===1&&(groups[0][0].node.type==="ThisExpression"||groups[0][0].node.type==="Identifier"&&(isFactory(groups[0][0].node.name)||groups[1].length&&groups[1][0].node.computed))||groups[0].length>1&&groups[0][groups[0].length-1].node.type==="MemberExpression"&&groups[0][groups[0].length-1].node.property.type==="Identifier"&&(isFactory(groups[0][groups[0].length-1].node.property.name)||groups[1].length&&groups[1][0].node.computed));function printGroup(printedGroup){return concat$2(printedGroup.map(function(tuple){return tuple.printed;}));}function printIndentedGroup(groups){if(groups.length===0){return"";}return indent$2(group$1(concat$2([hardline$2,join$2(hardline$2,groups.map(printGroup))])));}var printedGroups=groups.map(printGroup);var oneLine=concat$2(printedGroups);var cutoff=shouldMerge?3:2;var flatGroups=groups.slice(0,cutoff).reduce(function(res,group){return res.concat(group);},[]);var hasComment=flatGroups.slice(1,-1).some(function(node){return hasLeadingComment(node.node);})||flatGroups.slice(0,-1).some(function(node){return hasTrailingComment(node.node);})||groups[cutoff]&&hasLeadingComment(groups[cutoff][0].node);// If we only have a single `.`, we shouldn't do anything fancy and just -// render everything concatenated together. -if(groups.length<=cutoff&&!hasComment){return group$1(oneLine);}// Find out the last node in the first group and check if it has an -// empty line after -var lastNodeBeforeIndent=util$5.getLast(shouldMerge?groups.slice(1,2)[0]:groups[0]).node;var shouldHaveEmptyLineBeforeIndent=lastNodeBeforeIndent.type!=="CallExpression"&&shouldInsertEmptyLineAfter(lastNodeBeforeIndent);var expanded=concat$2([printGroup(groups[0]),shouldMerge?concat$2(groups.slice(1,2).map(printGroup)):"",shouldHaveEmptyLineBeforeIndent?hardline$2:"",printIndentedGroup(groups.slice(shouldMerge?2:1))]);var callExpressionCount=printedNodes.filter(function(tuple){return tuple.node.type==="CallExpression";}).length;// We don't want to print in one line if there's: -// * A comment. -// * 3 or more chained calls. -// * Any group but the last one has a hard line. -// If the last group is a function it's okay to inline if it fits. -if(hasComment||callExpressionCount>=3||printedGroups.slice(0,-1).some(willBreak)){return group$1(expanded);}return concat$2([// We only need to check `oneLine` because if `expanded` is chosen -// that means that the parent group has already been broken -// naturally -willBreak(oneLine)||shouldHaveEmptyLineBeforeIndent?breakParent$2:"",conditionalGroup$1([oneLine,expanded])]);}function isEmptyJSXElement(node){if(node.children.length===0){return true;}if(node.children.length>1){return false;}// if there is one text child and does not contain any meaningful text -// we can treat the element as empty. -var child=node.children[0];return isLiteral(child)&&!isMeaningfulJSXText(child);}// Only space, newline, carriage return, and tab are treated as whitespace -// inside JSX. -var jsxWhitespaceChars=" \n\r\t";var containsNonJsxWhitespaceRegex=new RegExp("[^"+jsxWhitespaceChars+"]");var matchJsxWhitespaceRegex=new RegExp("(["+jsxWhitespaceChars+"]+)");// Meaningful if it contains non-whitespace characters, -// or it contains whitespace without a new line. -function isMeaningfulJSXText(node){return isLiteral(node)&&(containsNonJsxWhitespaceRegex.test(rawText(node))||!/\n/.test(rawText(node)));}function conditionalExpressionChainContainsJSX(node){return Boolean(getConditionalChainContents(node).find(function(child){return child.type==="JSXElement";}));}// If we have nested conditional expressions, we want to print them in JSX mode -// if there's at least one JSXElement somewhere in the tree. -// -// A conditional expression chain like this should be printed in normal mode, -// because there aren't JSXElements anywhere in it: -// -// isA ? "A" : isB ? "B" : isC ? "C" : "Unknown"; -// -// But a conditional expression chain like this should be printed in JSX mode, -// because there is a JSXElement in the last ConditionalExpression: -// -// isA ? "A" : isB ? "B" : isC ? "C" : Unknown; -// -// This type of ConditionalExpression chain is structured like this in the AST: -// -// ConditionalExpression { -// test: ..., -// consequent: ..., -// alternate: ConditionalExpression { -// test: ..., -// consequent: ..., -// alternate: ConditionalExpression { -// test: ..., -// consequent: ..., -// alternate: ..., -// } -// } -// } -// -// We want to traverse over that shape and convert it into a flat structure so -// that we can find if there's a JSXElement somewhere inside. -function getConditionalChainContents(node){// Given this code: -// -// // Using a ConditionalExpression as the consequent is uncommon, but should -// // be handled. -// A ? B : C ? D : E ? F ? G : H : I -// -// which has this AST: -// -// ConditionalExpression { -// test: Identifier(A), -// consequent: Identifier(B), -// alternate: ConditionalExpression { -// test: Identifier(C), -// consequent: Identifier(D), -// alternate: ConditionalExpression { -// test: Identifier(E), -// consequent: ConditionalExpression { -// test: Identifier(F), -// consequent: Identifier(G), -// alternate: Identifier(H), -// }, -// alternate: Identifier(I), -// } -// } -// } -// -// we should return this Array: -// -// [ -// Identifier(A), -// Identifier(B), -// Identifier(C), -// Identifier(D), -// Identifier(E), -// Identifier(F), -// Identifier(G), -// Identifier(H), -// Identifier(I) -// ]; -// -// This loses the information about whether each node was the test, -// consequent, or alternate, but we don't care about that here- we are only -// flattening this structure to find if there's any JSXElements inside. -var nonConditionalExpressions=[];function recurse(node){if(node.type==="ConditionalExpression"){recurse(node.test);recurse(node.consequent);recurse(node.alternate);}else{nonConditionalExpressions.push(node);}}recurse(node);return nonConditionalExpressions;}// Detect an expression node representing `{" "}` -function isJSXWhitespaceExpression(node){return node.type==="JSXExpressionContainer"&&isLiteral(node.expression)&&node.expression.value===" "&&!node.expression.comments;}// JSX Children are strange, mostly for two reasons: -// 1. JSX reads newlines into string values, instead of skipping them like JS -// 2. up to one whitespace between elements within a line is significant, -// but not between lines. -// -// Leading, trailing, and lone whitespace all need to -// turn themselves into the rather ugly `{' '}` when breaking. -// -// We print JSX using the `fill` doc primitive. -// This requires that we give it an array of alternating -// content and whitespace elements. -// To ensure this we add dummy `""` content elements as needed. -function printJSXChildren(path,options,print,jsxWhitespace){var n=path.getValue();var children=[];// using `map` instead of `each` because it provides `i` -path.map(function(childPath,i){var child=childPath.getValue();if(isLiteral(child)){var text=rawText(child);// Contains a non-whitespace character -if(isMeaningfulJSXText(child)){var words=text.split(matchJsxWhitespaceRegex);// Starts with whitespace -if(words[0]===""){children.push("");words.shift();if(/\n/.test(words[0])){children.push(hardline$2);}else{children.push(jsxWhitespace);}words.shift();}var endWhitespace=void 0;// Ends with whitespace -if(util$5.getLast(words)===""){words.pop();endWhitespace=words.pop();}// This was whitespace only without a new line. -if(words.length===0){return;}words.forEach(function(word,i){if(i%2===1){children.push(line$1);}else{children.push(word);}});if(endWhitespace!==undefined){if(/\n/.test(endWhitespace)){children.push(hardline$2);}else{children.push(jsxWhitespace);}}else{// Ideally this would be a `hardline` to allow a break between -// tags and text. -// Unfortunately Facebook have a custom translation pipeline -// (https://github.com/prettier/prettier/issues/1581#issuecomment-300975032) -// that uses the JSX syntax, but does not follow the React whitespace -// rules. -// Ensuring that we never have a break between tags and text in JSX -// will allow Facebook to adopt Prettier without too much of an -// adverse effect on formatting algorithm. -children.push("");}}else if(/\n/.test(text)){// Keep (up to one) blank line between tags/expressions/text. -// Note: We don't keep blank lines between text elements. -if(text.match(/\n/g).length>1){children.push("");children.push(hardline$2);}}else{children.push("");children.push(jsxWhitespace);}}else{var printedChild=print(childPath);children.push(printedChild);var next=n.children[i+1];var directlyFollowedByMeaningfulText=next&&isMeaningfulJSXText(next)&&!/^[ \n\r\t]/.test(rawText(next));if(directlyFollowedByMeaningfulText){// Potentially this could be a hardline as well. -// See the comment above about the Facebook translation pipeline as -// to why this is an empty string. -children.push("");}else{children.push(hardline$2);}}},"children");return children;}// JSX expands children from the inside-out, instead of the outside-in. -// This is both to break children before attributes, -// and to ensure that when children break, their parents do as well. -// -// Any element that is written without any newlines and fits on a single line -// is left that way. -// Not only that, any user-written-line containing multiple JSX siblings -// should also be kept on one line if possible, -// so each user-written-line is wrapped in its own group. -// -// Elements that contain newlines or don't fit on a single line (recursively) -// are fully-split, using hardline and shouldBreak: true. -// -// To support that case properly, all leading and trailing spaces -// are stripped from the list of children, and replaced with a single hardline. -function printJSXElement(path,options,print){var n=path.getValue();// Turn
into
-if(isEmptyJSXElement(n)){n.openingElement.selfClosing=true;delete n.closingElement;}var openingLines=path.call(print,"openingElement");var closingLines=path.call(print,"closingElement");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression")){return concat$2([openingLines,concat$2(path.map(print,"children")),closingLines]);}// If no children, just print the opening element -if(n.openingElement.selfClosing){assert$1.ok(!n.closingElement);return openingLines;}// Convert `{" "}` to text nodes containing a space. -// This makes it easy to turn them into `jsxWhitespace` which -// can then print as either a space or `{" "}` when breaking. -n.children=n.children.map(function(child){if(isJSXWhitespaceExpression(child)){return{type:"JSXText",value:" ",raw:" "};}return child;});var containsTag=n.children.filter(function(child){return child.type==="JSXElement";}).length>0;var containsMultipleExpressions=n.children.filter(function(child){return child.type==="JSXExpressionContainer";}).length>1;var containsMultipleAttributes=n.openingElement.attributes.length>1;// Record any breaks. Should never go from true to false, only false to true. -var forcedBreak=willBreak(openingLines)||containsTag||containsMultipleAttributes||containsMultipleExpressions;var rawJsxWhitespace=options.singleQuote?"{' '}":'{" "}';var jsxWhitespace=ifBreak$1(concat$2([rawJsxWhitespace,softline$1])," ");var children=printJSXChildren(path,options,print,jsxWhitespace);var containsText=n.children.filter(function(child){return isMeaningfulJSXText(child);}).length>0;// We can end up we multiple whitespace elements with empty string -// content between them. -// We need to remove empty whitespace and softlines before JSX whitespace -// to get the correct output. -for(var _i31=children.length-2;_i31>=0;_i31--){var isPairOfEmptyStrings=children[_i31]===""&&children[_i31+1]==="";var isPairOfHardlines=children[_i31]===hardline$2&&children[_i31+1]===""&&children[_i31+2]===hardline$2;var isLineFollowedByJSXWhitespace=(children[_i31]===softline$1||children[_i31]===hardline$2)&&children[_i31+1]===""&&children[_i31+2]===jsxWhitespace;var isJSXWhitespaceFollowedByLine=children[_i31]===jsxWhitespace&&children[_i31+1]===""&&(children[_i31+2]===softline$1||children[_i31+2]===hardline$2);var isDoubleJSXWhitespace=children[_i31]===jsxWhitespace&&children[_i31+1]===""&&children[_i31+2]===jsxWhitespace;if(isPairOfHardlines&&containsText||isPairOfEmptyStrings||isLineFollowedByJSXWhitespace||isDoubleJSXWhitespace){children.splice(_i31,2);}else if(isJSXWhitespaceFollowedByLine){children.splice(_i31+1,2);}}// Trim trailing lines (or empty strings) -while(children.length&&(isLineNext(util$5.getLast(children))||isEmpty(util$5.getLast(children)))){children.pop();}// Trim leading lines (or empty strings) -while(children.length&&(isLineNext(children[0])||isEmpty(children[0]))&&(isLineNext(children[1])||isEmpty(children[1]))){children.shift();children.shift();}// Tweak how we format children if outputting this element over multiple lines. -// Also detect whether we will force this element to output over multiple lines. -var multilineChildren=[];children.forEach(function(child,i){// There are a number of situations where we need to ensure we display -// whitespace as `{" "}` when outputting this element over multiple lines. -if(child===jsxWhitespace){if(i===1&&children[i-1]===""){if(children.length===2){// Solitary whitespace -multilineChildren.push(rawJsxWhitespace);return;}// Leading whitespace -multilineChildren.push(concat$2([rawJsxWhitespace,hardline$2]));return;}else if(i===children.length-1){// Trailing whitespace -multilineChildren.push(rawJsxWhitespace);return;}else if(children[i-1]===""&&children[i-2]===hardline$2){// Whitespace after line break -multilineChildren.push(rawJsxWhitespace);return;}}multilineChildren.push(child);if(willBreak(child)){forcedBreak=true;}});// If there is text we use `fill` to fit as much onto each line as possible. -// When there is no text (just tags and expressions) we use `group` -// to output each on a separate line. -var content=containsText?fill$1(multilineChildren):group$1(concat$2(multilineChildren),{shouldBreak:true});var multiLineElem=group$1(concat$2([openingLines,indent$2(concat$2([hardline$2,content])),hardline$2,closingLines]));if(forcedBreak){return multiLineElem;}return conditionalGroup$1([group$1(concat$2([openingLines,concat$2(children),closingLines])),multiLineElem]);}function maybeWrapJSXElementInParens(path,elem){var parent=path.getParentNode();if(!parent){return elem;}var NO_WRAP_PARENTS={ArrayExpression:true,JSXElement:true,JSXExpressionContainer:true,ExpressionStatement:true,CallExpression:true,ConditionalExpression:true};if(NO_WRAP_PARENTS[parent.type]){return elem;}return group$1(concat$2([ifBreak$1("("),indent$2(concat$2([softline$1,elem])),softline$1,ifBreak$1(")")]));}function isBinaryish(node){return node.type==="BinaryExpression"||node.type==="LogicalExpression";}function isMemberish(node){return node.type==="MemberExpression"||node.type==="BindExpression"&&node.object;}function shouldInlineLogicalExpression(node){if(node.type!=="LogicalExpression"){return false;}if(node.right.type==="ObjectExpression"&&node.right.properties.length!==0){return true;}if(node.right.type==="ArrayExpression"&&node.right.elements.length!==0){return true;}if(node.right.type==="JSXElement"){return true;}return false;}// For binary expressions to be consistent, we need to group -// subsequent operators with the same precedence level under a single -// group. Otherwise they will be nested such that some of them break -// onto new lines but not all. Operators with the same precedence -// level should either all break or not. Because we group them by -// precedence level and the AST is structured based on precedence -// level, things are naturally broken up correctly, i.e. `&&` is -// broken before `+`. -function printBinaryishExpressions(path,print,options,isNested,isInsideParenthesis){var parts=[];var node=path.getValue();// We treat BinaryExpression and LogicalExpression nodes the same. -if(isBinaryish(node)){// Put all operators with the same precedence level in the same -// group. The reason we only need to do this with the `left` -// expression is because given an expression like `1 + 2 - 3`, it -// is always parsed like `((1 + 2) - 3)`, meaning the `left` side -// is where the rest of the expression will exist. Binary -// expressions on the right side mean they have a difference -// precedence level and should be treated as a separate group, so -// print them normally. (This doesn't hold for the `**` operator, -// which is unique in that it is right-associative.) -if(util$5.shouldFlatten(node.operator,node.left.operator)){// Flatten them out by recursively calling this function. -parts=parts.concat(path.call(function(left){return printBinaryishExpressions(left,print,options,/* isNested */true,isInsideParenthesis);},"left"));}else{parts.push(path.call(print,"left"));}var shouldInline=shouldInlineLogicalExpression(node);var lineBeforeOperator=node.operator==="|>";var right=shouldInline?concat$2([node.operator," ",path.call(print,"right")]):concat$2([lineBeforeOperator?softline$1:"",node.operator,lineBeforeOperator?" ":line$1,path.call(print,"right")]);// If there's only a single binary expression, we want to create a group -// in order to avoid having a small right part like -1 be on its own line. -var parent=path.getParentNode();var shouldGroup=!(isInsideParenthesis&&node.type==="LogicalExpression")&&parent.type!==node.type&&node.left.type!==node.type&&node.right.type!==node.type;parts.push(" ",shouldGroup?group$1(right):right);// The root comments are already printed, but we need to manually print -// the other ones since we don't call the normal print on BinaryExpression, -// only for the left and right parts -if(isNested&&node.comments){parts=comments$3.printComments(path,function(){return concat$2(parts);},options);}}else{// Our stopping case. Simply print the node normally. -parts.push(path.call(print));}return parts;}function printAssignmentRight(rightNode,printedRight,canBreak,options){if(hasLeadingOwnLineComment(options.originalText,rightNode)){return indent$2(concat$2([hardline$2,printedRight]));}if(canBreak){return indent$2(concat$2([line$1,printedRight]));}return concat$2([" ",printedRight]);}function printAssignment(leftNode,printedLeft,operator,rightNode,printedRight,options){if(!rightNode){return printedLeft;}var canBreak=isBinaryish(rightNode)&&!shouldInlineLogicalExpression(rightNode)||rightNode.type==="ConditionalExpression"&&isBinaryish(rightNode.test)&&!shouldInlineLogicalExpression(rightNode.test)||(leftNode.type==="Identifier"||isStringLiteral(leftNode)||leftNode.type==="MemberExpression")&&(isStringLiteral(rightNode)||isMemberExpressionChain(rightNode));var printed=printAssignmentRight(rightNode,printedRight,canBreak,options);return group$1(concat$2([printedLeft,operator,printed]));}function adjustClause(node,clause,forceSpace){if(node.type==="EmptyStatement"){return";";}if(node.type==="BlockStatement"||forceSpace){return concat$2([" ",clause]);}return indent$2(concat$2([line$1,clause]));}function nodeStr(node,options,isFlowOrTypeScriptDirectiveLiteral){var raw=rawText(node);var isDirectiveLiteral=isFlowOrTypeScriptDirectiveLiteral||node.type==="DirectiveLiteral";return util$5.printString(raw,options,isDirectiveLiteral);}function printRegex(node){var flags=node.flags.split("").sort().join("");return'/'+node.pattern+'/'+flags;}function isLastStatement(path){var parent=path.getParentNode();if(!parent){return true;}var node=path.getValue();var body=(parent.body||parent.consequent).filter(function(stmt){return stmt.type!=="EmptyStatement";});return body&&body[body.length-1]===node;}function hasLeadingComment(node){return node.comments&&node.comments.some(function(comment){return comment.leading;});}function hasTrailingComment(node){return node.comments&&node.comments.some(function(comment){return comment.trailing;});}function hasLeadingOwnLineComment(text,node){if(node.type==="JSXElement"){return hasNodeIgnoreComment(node);}var res=node.comments&&node.comments.some(function(comment){return comment.leading&&util$5.hasNewline(text,util$5.locEnd(comment));});return res;}function hasNakedLeftSide(node){return node.type==="AssignmentExpression"||node.type==="BinaryExpression"||node.type==="LogicalExpression"||node.type==="ConditionalExpression"||node.type==="CallExpression"||node.type==="MemberExpression"||node.type==="SequenceExpression"||node.type==="TaggedTemplateExpression"||node.type==="BindExpression"&&!node.object||node.type==="UpdateExpression"&&!node.prefix;}function getLeftSide(node){if(node.expressions){return node.expressions[0];}return node.left||node.test||node.callee||node.object||node.tag||node.argument||node.expression;}function exprNeedsASIProtection(node){// HACK: node.needsParens is added in `genericPrint()` for the sole purpose -// of being used here. It'd be preferable to find a cleaner way to do this. -var maybeASIProblem=node.needsParens||node.type==="ParenthesizedExpression"||node.type==="TypeCastExpression"||node.type==="ArrowFunctionExpression"&&!canPrintParamsWithoutParens(node)||node.type==="ArrayExpression"||node.type==="ArrayPattern"||node.type==="UnaryExpression"&&node.prefix&&(node.operator==="+"||node.operator==="-")||node.type==="TemplateLiteral"||node.type==="TemplateElement"||node.type==="JSXElement"||node.type==="BindExpression"||node.type==="RegExpLiteral"||node.type==="Literal"&&node.pattern||node.type==="Literal"&&node.regex;if(maybeASIProblem){return true;}if(!hasNakedLeftSide(node)){return false;}return exprNeedsASIProtection(getLeftSide(node));}function stmtNeedsASIProtection(path){var node=path.getNode();if(node.type!=="ExpressionStatement"){return false;}return exprNeedsASIProtection(node.expression);}function classPropMayCauseASIProblems(path){var node=path.getNode();if(node.type!=="ClassProperty"){return false;}var name=node.key&&node.key.name;// this isn't actually possible yet with most parsers available today -// so isn't properly tested yet. -if((name==="static"||name==="get"||name==="set")&&!node.typeAnnotation){return true;}}function classChildNeedsASIProtection(node){if(!node){return;}if(!node.computed){var _name4=node.key&&node.key.name;if(_name4==="in"||_name4==="instanceof"){return true;}}switch(node.type){case"ClassProperty":case"TSAbstractClassProperty":return node.computed;case"MethodDefinition":// Flow -case"TSAbstractMethodDefinition":// TypeScript -case"ClassMethod":{// Babylon -var isAsync=node.value?node.value.async:node.async;var isGenerator=node.value?node.value.generator:node.generator;if(isAsync||node.static||node.kind==="get"||node.kind==="set"){return false;}if(node.computed||isGenerator){return true;}return false;}default:/* istanbul ignore next */return false;}}// This recurses the return argument, looking for the first token -// (the leftmost leaf node) and, if it (or its parents) has any -// leadingComments, returns true (so it can be wrapped in parens). -function returnArgumentHasLeadingComment(options,argument){if(hasLeadingOwnLineComment(options.originalText,argument)){return true;}if(hasNakedLeftSide(argument)){var leftMost=argument;var newLeftMost=void 0;while(newLeftMost=getLeftSide(leftMost)){leftMost=newLeftMost;if(hasLeadingOwnLineComment(options.originalText,leftMost)){return true;}}}return false;}function isMemberExpressionChain(node){if(node.type!=="MemberExpression"){return false;}if(node.object.type==="Identifier"){return true;}return isMemberExpressionChain(node.object);}// Hack to differentiate between the following two which have the same ast -// type T = { method: () => void }; -// type T = { method(): void }; -function isObjectTypePropertyAFunction(node){return node.type==="ObjectTypeProperty"&&node.value.type==="FunctionTypeAnnotation"&&!node.static&&!isFunctionNotation(node);}// TODO: This is a bad hack and we need a better way to distinguish between -// arrow functions and otherwise -function isFunctionNotation(node){return isGetterOrSetter(node)||sameLocStart(node,node.value);}function isGetterOrSetter(node){return node.kind==="get"||node.kind==="set";}function sameLocStart(nodeA,nodeB){return util$5.locStart(nodeA)===util$5.locStart(nodeB);}// Hack to differentiate between the following two which have the same ast -// declare function f(a): void; -// var f: (a) => void; -function isTypeAnnotationAFunction(node){return node.type==="TypeAnnotation"&&node.typeAnnotation.type==="FunctionTypeAnnotation"&&!node.static&&!sameLocStart(node,node.typeAnnotation);}function isNodeStartingWithDeclare(node,options){if(!(options.parser==="flow"||options.parser==="typescript")){return false;}return options.originalText.slice(0,util$5.locStart(node)).match(/declare[ \t]*$/)||options.originalText.slice(node.range[0],node.range[1]).startsWith("declare ");}function shouldHugType(node){if(isObjectType(node)){return true;}if(node.type==="UnionTypeAnnotation"||node.type==="TSUnionType"){var voidCount=node.types.filter(function(n){return n.type==="VoidTypeAnnotation"||n.type==="TSVoidKeyword"||n.type==="NullLiteralTypeAnnotation"||n.type==="TSNullKeyword";}).length;var objectCount=node.types.filter(function(n){return n.type==="ObjectTypeAnnotation"||n.type==="TSTypeLiteral"||// This is a bit aggressive but captures Array<{x}> -n.type==="GenericTypeAnnotation"||n.type==="TSTypeReference";}).length;if(node.types.length-1===voidCount&&objectCount>0){return true;}}return false;}function shouldHugArguments(fun){return fun&&fun.params&&fun.params.length===1&&!fun.params[0].comments&&(fun.params[0].type==="ObjectPattern"||fun.params[0].type==="Identifier"&&fun.params[0].typeAnnotation&&fun.params[0].typeAnnotation.type==="TypeAnnotation"&&isObjectType(fun.params[0].typeAnnotation.typeAnnotation)||fun.params[0].type==="FunctionTypeParam"&&isObjectType(fun.params[0].typeAnnotation))&&!fun.rest;}function templateLiteralHasNewLines(template){return template.quasis.some(function(quasi){return quasi.value.raw.includes("\n");});}function isTemplateOnItsOwnLine(n,text){return(n.type==="TemplateLiteral"&&templateLiteralHasNewLines(n)||n.type==="TaggedTemplateExpression"&&templateLiteralHasNewLines(n.quasi))&&!util$5.hasNewline(text,util$5.locStart(n),{backwards:true});}function printArrayItems(path,options,printPath,print){var printedElements=[];var separatorParts=[];path.each(function(childPath){printedElements.push(concat$2(separatorParts));printedElements.push(group$1(print(childPath)));separatorParts=[",",line$1];if(childPath.getValue()&&util$5.isNextLineEmpty(options.originalText,childPath.getValue())){separatorParts.push(softline$1);}},printPath);return concat$2(printedElements);}function hasDanglingComments(node){return node.comments&&node.comments.some(function(comment){return!comment.leading&&!comment.trailing;});}function isLiteral(node){return node.type==="BooleanLiteral"||node.type==="DirectiveLiteral"||node.type==="Literal"||node.type==="NullLiteral"||node.type==="NumericLiteral"||node.type==="RegExpLiteral"||node.type==="StringLiteral"||node.type==="TemplateLiteral"||node.type==="TSTypeLiteral"||node.type==="JSXText";}function isNumericLiteral(node){return node.type==="NumericLiteral"||node.type==="Literal"&&typeof node.value==="number";}function isStringLiteral(node){return node.type==="StringLiteral"||node.type==="Literal"&&typeof node.value==="string";}function isObjectType(n){return n.type==="ObjectTypeAnnotation"||n.type==="TSTypeLiteral";}function printAstToDoc$1(ast,options,addAlignmentSize){addAlignmentSize=addAlignmentSize||0;var cache=new Map();function printGenerically(path,args){var node=path.getValue();var shouldCache=node&&(typeof node==='undefined'?'undefined':_typeof(node))==="object"&&args===undefined;if(shouldCache&&cache.has(node)){return cache.get(node);}var parent=path.getParentNode(0);// We let JSXElement print its comments itself because it adds () around -// UnionTypeAnnotation has to align the child without the comments -var res=void 0;if((node&&node.type==="JSXElement"||parent&&(parent.type==="JSXSpreadAttribute"||parent.type==="JSXSpreadChild"||parent.type==="UnionTypeAnnotation"||parent.type==="TSUnionType"||(parent.type==="ClassDeclaration"||parent.type==="ClassExpression")&&parent.superClass===node))&&!hasIgnoreComment(path)){res=genericPrint(path,options,printGenerically,args);}else{res=comments$3.printComments(path,function(p){return genericPrint(p,options,printGenerically,args);},options,args&&args.needsSemi);}if(shouldCache){cache.set(node,res);}return res;}var doc=printGenerically(new FastPath(ast));if(addAlignmentSize>0){// Add a hardline to make the indents take effect -// It should be removed in index.js format() -doc=addAlignmentToDoc$1(docUtils.removeLines(concat$2([hardline$2,doc])),addAlignmentSize,options.tabWidth);}docUtils.propagateBreaks(doc);if(options.parser==="json"){doc=concat$2([doc,hardline$2]);}return doc;}var printer={printAstToDoc:printAstToDoc$1};var index$44={"aliceblue":[240,248,255],"antiquewhite":[250,235,215],"aqua":[0,255,255],"aquamarine":[127,255,212],"azure":[240,255,255],"beige":[245,245,220],"bisque":[255,228,196],"black":[0,0,0],"blanchedalmond":[255,235,205],"blue":[0,0,255],"blueviolet":[138,43,226],"brown":[165,42,42],"burlywood":[222,184,135],"cadetblue":[95,158,160],"chartreuse":[127,255,0],"chocolate":[210,105,30],"coral":[255,127,80],"cornflowerblue":[100,149,237],"cornsilk":[255,248,220],"crimson":[220,20,60],"cyan":[0,255,255],"darkblue":[0,0,139],"darkcyan":[0,139,139],"darkgoldenrod":[184,134,11],"darkgray":[169,169,169],"darkgreen":[0,100,0],"darkgrey":[169,169,169],"darkkhaki":[189,183,107],"darkmagenta":[139,0,139],"darkolivegreen":[85,107,47],"darkorange":[255,140,0],"darkorchid":[153,50,204],"darkred":[139,0,0],"darksalmon":[233,150,122],"darkseagreen":[143,188,143],"darkslateblue":[72,61,139],"darkslategray":[47,79,79],"darkslategrey":[47,79,79],"darkturquoise":[0,206,209],"darkviolet":[148,0,211],"deeppink":[255,20,147],"deepskyblue":[0,191,255],"dimgray":[105,105,105],"dimgrey":[105,105,105],"dodgerblue":[30,144,255],"firebrick":[178,34,34],"floralwhite":[255,250,240],"forestgreen":[34,139,34],"fuchsia":[255,0,255],"gainsboro":[220,220,220],"ghostwhite":[248,248,255],"gold":[255,215,0],"goldenrod":[218,165,32],"gray":[128,128,128],"green":[0,128,0],"greenyellow":[173,255,47],"grey":[128,128,128],"honeydew":[240,255,240],"hotpink":[255,105,180],"indianred":[205,92,92],"indigo":[75,0,130],"ivory":[255,255,240],"khaki":[240,230,140],"lavender":[230,230,250],"lavenderblush":[255,240,245],"lawngreen":[124,252,0],"lemonchiffon":[255,250,205],"lightblue":[173,216,230],"lightcoral":[240,128,128],"lightcyan":[224,255,255],"lightgoldenrodyellow":[250,250,210],"lightgray":[211,211,211],"lightgreen":[144,238,144],"lightgrey":[211,211,211],"lightpink":[255,182,193],"lightsalmon":[255,160,122],"lightseagreen":[32,178,170],"lightskyblue":[135,206,250],"lightslategray":[119,136,153],"lightslategrey":[119,136,153],"lightsteelblue":[176,196,222],"lightyellow":[255,255,224],"lime":[0,255,0],"limegreen":[50,205,50],"linen":[250,240,230],"magenta":[255,0,255],"maroon":[128,0,0],"mediumaquamarine":[102,205,170],"mediumblue":[0,0,205],"mediumorchid":[186,85,211],"mediumpurple":[147,112,219],"mediumseagreen":[60,179,113],"mediumslateblue":[123,104,238],"mediumspringgreen":[0,250,154],"mediumturquoise":[72,209,204],"mediumvioletred":[199,21,133],"midnightblue":[25,25,112],"mintcream":[245,255,250],"mistyrose":[255,228,225],"moccasin":[255,228,181],"navajowhite":[255,222,173],"navy":[0,0,128],"oldlace":[253,245,230],"olive":[128,128,0],"olivedrab":[107,142,35],"orange":[255,165,0],"orangered":[255,69,0],"orchid":[218,112,214],"palegoldenrod":[238,232,170],"palegreen":[152,251,152],"paleturquoise":[175,238,238],"palevioletred":[219,112,147],"papayawhip":[255,239,213],"peachpuff":[255,218,185],"peru":[205,133,63],"pink":[255,192,203],"plum":[221,160,221],"powderblue":[176,224,230],"purple":[128,0,128],"rebeccapurple":[102,51,153],"red":[255,0,0],"rosybrown":[188,143,143],"royalblue":[65,105,225],"saddlebrown":[139,69,19],"salmon":[250,128,114],"sandybrown":[244,164,96],"seagreen":[46,139,87],"seashell":[255,245,238],"sienna":[160,82,45],"silver":[192,192,192],"skyblue":[135,206,235],"slateblue":[106,90,205],"slategray":[112,128,144],"slategrey":[112,128,144],"snow":[255,250,250],"springgreen":[0,255,127],"steelblue":[70,130,180],"tan":[210,180,140],"teal":[0,128,128],"thistle":[216,191,216],"tomato":[255,99,71],"turquoise":[64,224,208],"violet":[238,130,238],"wheat":[245,222,179],"white":[255,255,255],"whitesmoke":[245,245,245],"yellow":[255,255,0],"yellowgreen":[154,205,50]};var conversions$1=createCommonjsModule(function(module){/* MIT license */var cssKeywords=index$44;// NOTE: conversions should only return primitive values (i.e. arrays, or -// values that give correct `typeof` results). -// do not use box values types (i.e. Number(), String(), etc.) -var reverseKeywords={};for(var key in cssKeywords){if(cssKeywords.hasOwnProperty(key)){reverseKeywords[cssKeywords[key]]=key;}}var convert=module.exports={rgb:{channels:3,labels:'rgb'},hsl:{channels:3,labels:'hsl'},hsv:{channels:3,labels:'hsv'},hwb:{channels:3,labels:'hwb'},cmyk:{channels:4,labels:'cmyk'},xyz:{channels:3,labels:'xyz'},lab:{channels:3,labels:'lab'},lch:{channels:3,labels:'lch'},hex:{channels:1,labels:['hex']},keyword:{channels:1,labels:['keyword']},ansi16:{channels:1,labels:['ansi16']},ansi256:{channels:1,labels:['ansi256']},hcg:{channels:3,labels:['h','c','g']},apple:{channels:3,labels:['r16','g16','b16']},gray:{channels:1,labels:['gray']}};// hide .channels and .labels properties -for(var model in convert){if(convert.hasOwnProperty(model)){if(!('channels'in convert[model])){throw new Error('missing channels property: '+model);}if(!('labels'in convert[model])){throw new Error('missing channel labels property: '+model);}if(convert[model].labels.length!==convert[model].channels){throw new Error('channel and label counts mismatch: '+model);}var channels=convert[model].channels;var labels=convert[model].labels;delete convert[model].channels;delete convert[model].labels;Object.defineProperty(convert[model],'channels',{value:channels});Object.defineProperty(convert[model],'labels',{value:labels});}}convert.rgb.hsl=function(rgb){var r=rgb[0]/255;var g=rgb[1]/255;var b=rgb[2]/255;var min=Math.min(r,g,b);var max=Math.max(r,g,b);var delta=max-min;var h;var s;var l;if(max===min){h=0;}else if(r===max){h=(g-b)/delta;}else if(g===max){h=2+(b-r)/delta;}else if(b===max){h=4+(r-g)/delta;}h=Math.min(h*60,360);if(h<0){h+=360;}l=(min+max)/2;if(max===min){s=0;}else if(l<=0.5){s=delta/(max+min);}else{s=delta/(2-max-min);}return[h,s*100,l*100];};convert.rgb.hsv=function(rgb){var r=rgb[0];var g=rgb[1];var b=rgb[2];var min=Math.min(r,g,b);var max=Math.max(r,g,b);var delta=max-min;var h;var s;var v;if(max===0){s=0;}else{s=delta/max*1000/10;}if(max===min){h=0;}else if(r===max){h=(g-b)/delta;}else if(g===max){h=2+(b-r)/delta;}else if(b===max){h=4+(r-g)/delta;}h=Math.min(h*60,360);if(h<0){h+=360;}v=max/255*1000/10;return[h,s,v];};convert.rgb.hwb=function(rgb){var r=rgb[0];var g=rgb[1];var b=rgb[2];var h=convert.rgb.hsl(rgb)[0];var w=1/255*Math.min(r,Math.min(g,b));b=1-1/255*Math.max(r,Math.max(g,b));return[h,w*100,b*100];};convert.rgb.cmyk=function(rgb){var r=rgb[0]/255;var g=rgb[1]/255;var b=rgb[2]/255;var c;var m;var y;var k;k=Math.min(1-r,1-g,1-b);c=(1-r-k)/(1-k)||0;m=(1-g-k)/(1-k)||0;y=(1-b-k)/(1-k)||0;return[c*100,m*100,y*100,k*100];};/** - * See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance - * */function comparativeDistance(x,y){return Math.pow(x[0]-y[0],2)+Math.pow(x[1]-y[1],2)+Math.pow(x[2]-y[2],2);}convert.rgb.keyword=function(rgb){var reversed=reverseKeywords[rgb];if(reversed){return reversed;}var currentClosestDistance=Infinity;var currentClosestKeyword;for(var keyword in cssKeywords){if(cssKeywords.hasOwnProperty(keyword)){var value=cssKeywords[keyword];// Compute comparative distance -var distance=comparativeDistance(rgb,value);// Check if its less, if so set as closest -if(distance0.04045?Math.pow((r+0.055)/1.055,2.4):r/12.92;g=g>0.04045?Math.pow((g+0.055)/1.055,2.4):g/12.92;b=b>0.04045?Math.pow((b+0.055)/1.055,2.4):b/12.92;var x=r*0.4124+g*0.3576+b*0.1805;var y=r*0.2126+g*0.7152+b*0.0722;var z=r*0.0193+g*0.1192+b*0.9505;return[x*100,y*100,z*100];};convert.rgb.lab=function(rgb){var xyz=convert.rgb.xyz(rgb);var x=xyz[0];var y=xyz[1];var z=xyz[2];var l;var a;var b;x/=95.047;y/=100;z/=108.883;x=x>0.008856?Math.pow(x,1/3):7.787*x+16/116;y=y>0.008856?Math.pow(y,1/3):7.787*y+16/116;z=z>0.008856?Math.pow(z,1/3):7.787*z+16/116;l=116*y-16;a=500*(x-y);b=200*(y-z);return[l,a,b];};convert.hsl.rgb=function(hsl){var h=hsl[0]/360;var s=hsl[1]/100;var l=hsl[2]/100;var t1;var t2;var t3;var rgb;var val;if(s===0){val=l*255;return[val,val,val];}if(l<0.5){t2=l*(1+s);}else{t2=l+s-l*s;}t1=2*l-t2;rgb=[0,0,0];for(var i=0;i<3;i++){t3=h+1/3*-(i-1);if(t3<0){t3++;}if(t3>1){t3--;}if(6*t3<1){val=t1+(t2-t1)*6*t3;}else if(2*t3<1){val=t2;}else if(3*t3<2){val=t1+(t2-t1)*(2/3-t3)*6;}else{val=t1;}rgb[i]=val*255;}return rgb;};convert.hsl.hsv=function(hsl){var h=hsl[0];var s=hsl[1]/100;var l=hsl[2]/100;var smin=s;var lmin=Math.max(l,0.01);var sv;var v;l*=2;s*=l<=1?l:2-l;smin*=lmin<=1?lmin:2-lmin;v=(l+s)/2;sv=l===0?2*smin/(lmin+smin):2*s/(l+s);return[h,sv*100,v*100];};convert.hsv.rgb=function(hsv){var h=hsv[0]/60;var s=hsv[1]/100;var v=hsv[2]/100;var hi=Math.floor(h)%6;var f=h-Math.floor(h);var p=255*v*(1-s);var q=255*v*(1-s*f);var t=255*v*(1-s*(1-f));v*=255;switch(hi){case 0:return[v,t,p];case 1:return[q,v,p];case 2:return[p,v,t];case 3:return[p,q,v];case 4:return[t,p,v];case 5:return[v,p,q];}};convert.hsv.hsl=function(hsv){var h=hsv[0];var s=hsv[1]/100;var v=hsv[2]/100;var vmin=Math.max(v,0.01);var lmin;var sl;var l;l=(2-s)*v;lmin=(2-s)*vmin;sl=s*vmin;sl/=lmin<=1?lmin:2-lmin;sl=sl||0;l/=2;return[h,sl*100,l*100];};// http://dev.w3.org/csswg/css-color/#hwb-to-rgb -convert.hwb.rgb=function(hwb){var h=hwb[0]/360;var wh=hwb[1]/100;var bl=hwb[2]/100;var ratio=wh+bl;var i;var v;var f;var n;// wh + bl cant be > 1 -if(ratio>1){wh/=ratio;bl/=ratio;}i=Math.floor(6*h);v=1-bl;f=6*h-i;if((i&0x01)!==0){f=1-f;}n=wh+f*(v-wh);// linear interpolation -var r;var g;var b;switch(i){default:case 6:case 0:r=v;g=n;b=wh;break;case 1:r=n;g=v;b=wh;break;case 2:r=wh;g=v;b=n;break;case 3:r=wh;g=n;b=v;break;case 4:r=n;g=wh;b=v;break;case 5:r=v;g=wh;b=n;break;}return[r*255,g*255,b*255];};convert.cmyk.rgb=function(cmyk){var c=cmyk[0]/100;var m=cmyk[1]/100;var y=cmyk[2]/100;var k=cmyk[3]/100;var r;var g;var b;r=1-Math.min(1,c*(1-k)+k);g=1-Math.min(1,m*(1-k)+k);b=1-Math.min(1,y*(1-k)+k);return[r*255,g*255,b*255];};convert.xyz.rgb=function(xyz){var x=xyz[0]/100;var y=xyz[1]/100;var z=xyz[2]/100;var r;var g;var b;r=x*3.2406+y*-1.5372+z*-0.4986;g=x*-0.9689+y*1.8758+z*0.0415;b=x*0.0557+y*-0.2040+z*1.0570;// assume sRGB -r=r>0.0031308?1.055*Math.pow(r,1.0/2.4)-0.055:r*12.92;g=g>0.0031308?1.055*Math.pow(g,1.0/2.4)-0.055:g*12.92;b=b>0.0031308?1.055*Math.pow(b,1.0/2.4)-0.055:b*12.92;r=Math.min(Math.max(0,r),1);g=Math.min(Math.max(0,g),1);b=Math.min(Math.max(0,b),1);return[r*255,g*255,b*255];};convert.xyz.lab=function(xyz){var x=xyz[0];var y=xyz[1];var z=xyz[2];var l;var a;var b;x/=95.047;y/=100;z/=108.883;x=x>0.008856?Math.pow(x,1/3):7.787*x+16/116;y=y>0.008856?Math.pow(y,1/3):7.787*y+16/116;z=z>0.008856?Math.pow(z,1/3):7.787*z+16/116;l=116*y-16;a=500*(x-y);b=200*(y-z);return[l,a,b];};convert.lab.xyz=function(lab){var l=lab[0];var a=lab[1];var b=lab[2];var x;var y;var z;y=(l+16)/116;x=a/500+y;z=y-b/200;var y2=Math.pow(y,3);var x2=Math.pow(x,3);var z2=Math.pow(z,3);y=y2>0.008856?y2:(y-16/116)/7.787;x=x2>0.008856?x2:(x-16/116)/7.787;z=z2>0.008856?z2:(z-16/116)/7.787;x*=95.047;y*=100;z*=108.883;return[x,y,z];};convert.lab.lch=function(lab){var l=lab[0];var a=lab[1];var b=lab[2];var hr;var h;var c;hr=Math.atan2(b,a);h=hr*360/2/Math.PI;if(h<0){h+=360;}c=Math.sqrt(a*a+b*b);return[l,c,h];};convert.lch.lab=function(lch){var l=lch[0];var c=lch[1];var h=lch[2];var a;var b;var hr;hr=h/360*2*Math.PI;a=c*Math.cos(hr);b=c*Math.sin(hr);return[l,a,b];};convert.rgb.ansi16=function(args){var r=args[0];var g=args[1];var b=args[2];var value=1 in arguments?arguments[1]:convert.rgb.hsv(args)[2];// hsv -> ansi16 optimization -value=Math.round(value/50);if(value===0){return 30;}var ansi=30+(Math.round(b/255)<<2|Math.round(g/255)<<1|Math.round(r/255));if(value===2){ansi+=60;}return ansi;};convert.hsv.ansi16=function(args){// optimization here; we already know the value and don't need to get -// it converted for us. -return convert.rgb.ansi16(convert.hsv.rgb(args),args[2]);};convert.rgb.ansi256=function(args){var r=args[0];var g=args[1];var b=args[2];// we use the extended greyscale palette here, with the exception of -// black and white. normal palette only has 4 greyscale shades. -if(r===g&&g===b){if(r<8){return 16;}if(r>248){return 231;}return Math.round((r-8)/247*24)+232;}var ansi=16+36*Math.round(r/255*5)+6*Math.round(g/255*5)+Math.round(b/255*5);return ansi;};convert.ansi16.rgb=function(args){var color=args%10;// handle greyscale -if(color===0||color===7){if(args>50){color+=3.5;}color=color/10.5*255;return[color,color,color];}var mult=(~~(args>50)+1)*0.5;var r=(color&1)*mult*255;var g=(color>>1&1)*mult*255;var b=(color>>2&1)*mult*255;return[r,g,b];};convert.ansi256.rgb=function(args){// handle greyscale -if(args>=232){var c=(args-232)*10+8;return[c,c,c];}args-=16;var rem;var r=Math.floor(args/36)/5*255;var g=Math.floor((rem=args%36)/6)/5*255;var b=rem%6/5*255;return[r,g,b];};convert.rgb.hex=function(args){var integer=((Math.round(args[0])&0xFF)<<16)+((Math.round(args[1])&0xFF)<<8)+(Math.round(args[2])&0xFF);var string=integer.toString(16).toUpperCase();return'000000'.substring(string.length)+string;};convert.hex.rgb=function(args){var match=args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!match){return[0,0,0];}var colorString=match[0];if(match[0].length===3){colorString=colorString.split('').map(function(char){return char+char;}).join('');}var integer=parseInt(colorString,16);var r=integer>>16&0xFF;var g=integer>>8&0xFF;var b=integer&0xFF;return[r,g,b];};convert.rgb.hcg=function(rgb){var r=rgb[0]/255;var g=rgb[1]/255;var b=rgb[2]/255;var max=Math.max(Math.max(r,g),b);var min=Math.min(Math.min(r,g),b);var chroma=max-min;var grayscale;var hue;if(chroma<1){grayscale=min/(1-chroma);}else{grayscale=0;}if(chroma<=0){hue=0;}else if(max===r){hue=(g-b)/chroma%6;}else if(max===g){hue=2+(b-r)/chroma;}else{hue=4+(r-g)/chroma+4;}hue/=6;hue%=1;return[hue*360,chroma*100,grayscale*100];};convert.hsl.hcg=function(hsl){var s=hsl[1]/100;var l=hsl[2]/100;var c=1;var f=0;if(l<0.5){c=2.0*s*l;}else{c=2.0*s*(1.0-l);}if(c<1.0){f=(l-0.5*c)/(1.0-c);}return[hsl[0],c*100,f*100];};convert.hsv.hcg=function(hsv){var s=hsv[1]/100;var v=hsv[2]/100;var c=s*v;var f=0;if(c<1.0){f=(v-c)/(1-c);}return[hsv[0],c*100,f*100];};convert.hcg.rgb=function(hcg){var h=hcg[0]/360;var c=hcg[1]/100;var g=hcg[2]/100;if(c===0.0){return[g*255,g*255,g*255];}var pure=[0,0,0];var hi=h%1*6;var v=hi%1;var w=1-v;var mg=0;switch(Math.floor(hi)){case 0:pure[0]=1;pure[1]=v;pure[2]=0;break;case 1:pure[0]=w;pure[1]=1;pure[2]=0;break;case 2:pure[0]=0;pure[1]=1;pure[2]=v;break;case 3:pure[0]=0;pure[1]=w;pure[2]=1;break;case 4:pure[0]=v;pure[1]=0;pure[2]=1;break;default:pure[0]=1;pure[1]=0;pure[2]=w;}mg=(1.0-c)*g;return[(c*pure[0]+mg)*255,(c*pure[1]+mg)*255,(c*pure[2]+mg)*255];};convert.hcg.hsv=function(hcg){var c=hcg[1]/100;var g=hcg[2]/100;var v=c+g*(1.0-c);var f=0;if(v>0.0){f=c/v;}return[hcg[0],f*100,v*100];};convert.hcg.hsl=function(hcg){var c=hcg[1]/100;var g=hcg[2]/100;var l=g*(1.0-c)+0.5*c;var s=0;if(l>0.0&&l<0.5){s=c/(2*l);}else if(l>=0.5&&l<1.0){s=c/(2*(1-l));}return[hcg[0],s*100,l*100];};convert.hcg.hwb=function(hcg){var c=hcg[1]/100;var g=hcg[2]/100;var v=c+g*(1.0-c);return[hcg[0],(v-c)*100,(1-v)*100];};convert.hwb.hcg=function(hwb){var w=hwb[1]/100;var b=hwb[2]/100;var v=1-b;var c=v-w;var g=0;if(c<1){g=(v-c)/(1-c);}return[hwb[0],c*100,g*100];};convert.apple.rgb=function(apple){return[apple[0]/65535*255,apple[1]/65535*255,apple[2]/65535*255];};convert.rgb.apple=function(rgb){return[rgb[0]/255*65535,rgb[1]/255*65535,rgb[2]/255*65535];};convert.gray.rgb=function(args){return[args[0]/100*255,args[0]/100*255,args[0]/100*255];};convert.gray.hsl=convert.gray.hsv=function(args){return[0,0,args[0]];};convert.gray.hwb=function(gray){return[0,100,gray[0]];};convert.gray.cmyk=function(gray){return[0,0,0,gray[0]];};convert.gray.lab=function(gray){return[gray[0],0,0];};convert.gray.hex=function(gray){var val=Math.round(gray[0]/100*255)&0xFF;var integer=(val<<16)+(val<<8)+val;var string=integer.toString(16).toUpperCase();return'000000'.substring(string.length)+string;};convert.rgb.gray=function(rgb){var val=(rgb[0]+rgb[1]+rgb[2])/3;return[val/255*100];};});var conversions$3=conversions$1;/* - this function routes a model to all other models. - - all functions that are routed have a property `.conversion` attached - to the returned synthetic function. This property is an array - of strings, each with the steps in between the 'from' and 'to' - color models (inclusive). - - conversions that are not possible simply are not included. -*/// https://jsperf.com/object-keys-vs-for-in-with-closure/3 -var models$1=Object.keys(conversions$3);function buildGraph(){var graph={};for(var len=models$1.length,i=0;i queue -> pop -graph[fromModel].distance=0;while(queue.length){var current=queue.pop();var adjacents=Object.keys(conversions$3[current]);for(var len=adjacents.length,i=0;i1){args=Array.prototype.slice.call(arguments);}return fn(args);};// preserve .conversion property if there is one -if('conversion'in fn){wrappedFn.conversion=fn.conversion;}return wrappedFn;}function wrapRounded(fn){var wrappedFn=function wrappedFn(args){if(args===undefined||args===null){return args;}if(arguments.length>1){args=Array.prototype.slice.call(arguments);}var result=fn(args);// we're assuming the result is an array here. -// see notice in conversions.js; don't use box types -// in conversion functions. -if((typeof result==='undefined'?'undefined':_typeof(result))==='object'){for(var len=result.length,i=0;i=2,has16m:level>=3};};var supportLevel=function(){if(hasFlag$1('no-color')||hasFlag$1('no-colors')||hasFlag$1('color=false')){return 0;}if(hasFlag$1('color=16m')||hasFlag$1('color=full')||hasFlag$1('color=truecolor')){return 3;}if(hasFlag$1('color=256')){return 2;}if(hasFlag$1('color')||hasFlag$1('colors')||hasFlag$1('color=true')||hasFlag$1('color=always')){return 1;}if(process.stdout&&!process.stdout.isTTY){return 0;}if(process.platform==='win32'){// Node.js 7.5.0 is the first version of Node.js to include a patch to -// libuv that enables 256 color output on Windows. Anything earlier and it -// won't work. However, here we target Node.js 8 at minimum as it is an LTS -// release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows -// release that supports 256 colors. -var osRelease=os$1.release().split('.');if(Number(process.version.split('.')[0])>=8&&Number(osRelease[0])>=10&&Number(osRelease[2])>=10586){return 2;}return 1;}if('CI'in env){if('TRAVIS'in env||env.CI==='Travis'||'CIRCLECI'in env){return 1;}return 0;}if('TEAMCITY_VERSION'in env){return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION)?1:0;}if('TERM_PROGRAM'in env){var _version=parseInt((env.TERM_PROGRAM_VERSION||'').split('.')[0],10);switch(env.TERM_PROGRAM){case'iTerm.app':return _version>=3?3:2;case'Hyper':return 3;case'Apple_Terminal':return 2;// No default -}}if(/^(screen|xterm)-256(?:color)?/.test(env.TERM)){return 2;}if(/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(env.TERM)){return 1;}if('COLORTERM'in env){return 1;}if(env.TERM==='dumb'){return 0;}return 0;}();if('FORCE_COLOR'in env){supportLevel=parseInt(env.FORCE_COLOR,10)===0?0:supportLevel||1;}var index$46=process&&support(supportLevel);var TEMPLATE_REGEX=/(?:\\(u[a-f0-9]{4}|x[a-f0-9]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;var STYLE_REGEX=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;var STRING_REGEX$1=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;var ESCAPE_REGEX=/\\(u[0-9a-f]{4}|x[0-9a-f]{2}|.)|([^\\])/gi;var ESCAPES={n:'\n',r:'\r',t:'\t',b:'\b',f:'\f',v:'\v',0:'\0','\\':'\\',e:'\x1B',a:'\x07'};function unescape(c){if(c[0]==='u'&&c.length===5||c[0]==='x'&&c.length===3){return String.fromCharCode(parseInt(c.slice(1),16));}return ESCAPES[c]||c;}function parseArguments(name,args){var results=[];var chunks=args.trim().split(/\s*,\s*/g);var matches=void 0;var _iteratorNormalCompletion3=true;var _didIteratorError3=false;var _iteratorError3=undefined;try{for(var _iterator3=chunks[Symbol.iterator](),_step3;!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=true){var chunk=_step3.value;if(!isNaN(chunk)){results.push(Number(chunk));}else if(matches=chunk.match(STRING_REGEX$1)){results.push(matches[2].replace(ESCAPE_REGEX,function(m,escape,chr){return escape?unescape(escape):chr;}));}else{throw new Error('Invalid Chalk template style argument: '+chunk+' (in style \''+name+'\')');}}}catch(err){_didIteratorError3=true;_iteratorError3=err;}finally{try{if(!_iteratorNormalCompletion3&&_iterator3.return){_iterator3.return();}}finally{if(_didIteratorError3){throw _iteratorError3;}}}return results;}function parseStyle(style){STYLE_REGEX.lastIndex=0;var results=[];var matches=void 0;while((matches=STYLE_REGEX.exec(style))!==null){var _name5=matches[1];if(matches[2]){var args=parseArguments(_name5,matches[2]);results.push([_name5].concat(args));}else{results.push([_name5]);}}return results;}function buildStyle(chalk,styles){var enabled={};var _iteratorNormalCompletion4=true;var _didIteratorError4=false;var _iteratorError4=undefined;try{for(var _iterator4=styles[Symbol.iterator](),_step4;!(_iteratorNormalCompletion4=(_step4=_iterator4.next()).done);_iteratorNormalCompletion4=true){var layer=_step4.value;var _iteratorNormalCompletion6=true;var _didIteratorError6=false;var _iteratorError6=undefined;try{for(var _iterator6=layer.styles[Symbol.iterator](),_step6;!(_iteratorNormalCompletion6=(_step6=_iterator6.next()).done);_iteratorNormalCompletion6=true){var style=_step6.value;enabled[style[0]]=layer.inverse?null:style.slice(1);}}catch(err){_didIteratorError6=true;_iteratorError6=err;}finally{try{if(!_iteratorNormalCompletion6&&_iterator6.return){_iterator6.return();}}finally{if(_didIteratorError6){throw _iteratorError6;}}}}}catch(err){_didIteratorError4=true;_iteratorError4=err;}finally{try{if(!_iteratorNormalCompletion4&&_iterator4.return){_iterator4.return();}}finally{if(_didIteratorError4){throw _iteratorError4;}}}var current=chalk;var _iteratorNormalCompletion5=true;var _didIteratorError5=false;var _iteratorError5=undefined;try{for(var _iterator5=Object.keys(enabled)[Symbol.iterator](),_step5;!(_iteratorNormalCompletion5=(_step5=_iterator5.next()).done);_iteratorNormalCompletion5=true){var styleName=_step5.value;if(Array.isArray(enabled[styleName])){if(!(styleName in current)){throw new Error('Unknown Chalk style: '+styleName);}if(enabled[styleName].length>0){current=current[styleName].apply(current,enabled[styleName]);}else{current=current[styleName];}}}}catch(err){_didIteratorError5=true;_iteratorError5=err;}finally{try{if(!_iteratorNormalCompletion5&&_iterator5.return){_iterator5.return();}}finally{if(_didIteratorError5){throw _iteratorError5;}}}return current;}var templates=function templates(chalk,tmp){var styles=[];var chunks=[];var chunk=[];// eslint-disable-next-line max-params -tmp.replace(TEMPLATE_REGEX,function(m,escapeChar,inverse,style,close,chr){if(escapeChar){chunk.push(unescape(escapeChar));}else if(style){var _str=chunk.join('');chunk=[];chunks.push(styles.length===0?_str:buildStyle(chalk,styles)(_str));styles.push({inverse:inverse,styles:parseStyle(style)});}else if(close){if(styles.length===0){throw new Error('Found extraneous } in Chalk template literal');}chunks.push(buildStyle(chalk,styles)(chunk.join('')));chunk=[];styles.pop();}else{chunk.push(chr);}});chunks.push(chunk.join(''));if(styles.length>0){var errMsg='Chalk template literal is missing '+styles.length+' closing bracket'+(styles.length===1?'':'s')+' (`}`)';throw new Error(errMsg);}return chunks.join('');};var escapeStringRegexp$3=index$14;var ansiStyles$1=index$40;var supportsColor$1=index$46;var template=templates;var isSimpleWindowsTerm$1=process.platform==='win32'&&!(process.env.TERM||'').toLowerCase().startsWith('xterm');// `supportsColor.level` → `ansiStyles.color[name]` mapping -var levelMapping=['ansi','ansi','ansi256','ansi16m'];// `color-convert` models to exclude from the Chalk API due to conflicts and such -var skipModels=new Set(['gray']);var styles$1=Object.create(null);function applyOptions(obj,options){options=options||{};// Detect level if not set manually -var scLevel=supportsColor$1?supportsColor$1.level:0;obj.level=options.level===undefined?scLevel:options.level;obj.enabled='enabled'in options?options.enabled:obj.level>0;}function Chalk$1(options){// We check for this.template here since calling `chalk.constructor()` -// by itself will have a `this` of a previously constructed chalk object -if(!this||!(this instanceof Chalk$1)||this.template){var chalk={};applyOptions(chalk,options);chalk.template=function(){var args=[].slice.call(arguments);return chalkTag.apply(null,[chalk.template].concat(args));};Object.setPrototypeOf(chalk,Chalk$1.prototype);Object.setPrototypeOf(chalk.template,chalk);chalk.template.constructor=Chalk$1;return chalk.template;}applyOptions(this,options);}// Use bright blue on Windows as the normal blue color is illegible -if(isSimpleWindowsTerm$1){ansiStyles$1.blue.open='\x1B[94m';}var _iteratorNormalCompletion7=true;var _didIteratorError7=false;var _iteratorError7=undefined;try{var _loop=function _loop(){var key=_step7.value;ansiStyles$1[key].closeRe=new RegExp(escapeStringRegexp$3(ansiStyles$1[key].close),'g');styles$1[key]={get:function get(){var codes=ansiStyles$1[key];return build$1.call(this,this._styles?this._styles.concat(codes):[codes],key);}};};for(var _iterator7=Object.keys(ansiStyles$1)[Symbol.iterator](),_step7;!(_iteratorNormalCompletion7=(_step7=_iterator7.next()).done);_iteratorNormalCompletion7=true){_loop();}}catch(err){_didIteratorError7=true;_iteratorError7=err;}finally{try{if(!_iteratorNormalCompletion7&&_iterator7.return){_iterator7.return();}}finally{if(_didIteratorError7){throw _iteratorError7;}}}ansiStyles$1.color.closeRe=new RegExp(escapeStringRegexp$3(ansiStyles$1.color.close),'g');var _iteratorNormalCompletion8=true;var _didIteratorError8=false;var _iteratorError8=undefined;try{var _loop2=function _loop2(){var model=_step8.value;if(skipModels.has(model)){return'continue';}styles$1[model]={get:function get(){var level=this.level;return function(){var open=ansiStyles$1.color[levelMapping[level]][model].apply(null,arguments);var codes={open:open,close:ansiStyles$1.color.close,closeRe:ansiStyles$1.color.closeRe};return build$1.call(this,this._styles?this._styles.concat(codes):[codes],model);};}};};for(var _iterator8=Object.keys(ansiStyles$1.color.ansi)[Symbol.iterator](),_step8;!(_iteratorNormalCompletion8=(_step8=_iterator8.next()).done);_iteratorNormalCompletion8=true){var _ret2=_loop2();if(_ret2==='continue')continue;}}catch(err){_didIteratorError8=true;_iteratorError8=err;}finally{try{if(!_iteratorNormalCompletion8&&_iterator8.return){_iterator8.return();}}finally{if(_didIteratorError8){throw _iteratorError8;}}}ansiStyles$1.bgColor.closeRe=new RegExp(escapeStringRegexp$3(ansiStyles$1.bgColor.close),'g');var _iteratorNormalCompletion9=true;var _didIteratorError9=false;var _iteratorError9=undefined;try{var _loop3=function _loop3(){var model=_step9.value;if(skipModels.has(model)){return'continue';}var bgModel='bg'+model[0].toUpperCase()+model.slice(1);styles$1[bgModel]={get:function get(){var level=this.level;return function(){var open=ansiStyles$1.bgColor[levelMapping[level]][model].apply(null,arguments);var codes={open:open,close:ansiStyles$1.bgColor.close,closeRe:ansiStyles$1.bgColor.closeRe};return build$1.call(this,this._styles?this._styles.concat(codes):[codes],model);};}};};for(var _iterator9=Object.keys(ansiStyles$1.bgColor.ansi)[Symbol.iterator](),_step9;!(_iteratorNormalCompletion9=(_step9=_iterator9.next()).done);_iteratorNormalCompletion9=true){var _ret3=_loop3();if(_ret3==='continue')continue;}}catch(err){_didIteratorError9=true;_iteratorError9=err;}finally{try{if(!_iteratorNormalCompletion9&&_iterator9.return){_iterator9.return();}}finally{if(_didIteratorError9){throw _iteratorError9;}}}var proto$1=Object.defineProperties(function(){},styles$1);function build$1(_styles,key){var builder=function builder(){return applyStyle$1.apply(builder,arguments);};builder._styles=_styles;var self=this;Object.defineProperty(builder,'level',{enumerable:true,get:function get(){return self.level;},set:function set(level){self.level=level;}});Object.defineProperty(builder,'enabled',{enumerable:true,get:function get(){return self.enabled;},set:function set(enabled){self.enabled=enabled;}});// See below for fix regarding invisible grey/dim combination on Windows -builder.hasGrey=this.hasGrey||key==='gray'||key==='grey';// `__proto__` is used because we must return a function, but there is -// no way to create a function with a different prototype -builder.__proto__=proto$1;// eslint-disable-line no-proto -return builder;}function applyStyle$1(){// Support varags, but simply cast to string in case there's only one arg -var args=arguments;var argsLen=args.length;var str=String(arguments[0]);if(argsLen===0){return'';}if(argsLen>1){// Don't slice `arguments`, it prevents V8 optimizations -for(var a=1;a6&&arguments[6]!==undefined?arguments[6]:': ';var result='';var current=iterator.next();if(!current.done){result+=config.spacingOuter;var indentationNext=indentation+config.indent;while(!current.done){var _name6=printer(current.value[0],config,indentationNext,depth,refs);var value=printer(current.value[1],config,indentationNext,depth,refs);result+=indentationNext+_name6+separator+value;current=iterator.next();if(!current.done){result+=','+config.spacingInner;}else if(!config.min){result+=',';}}result+=config.spacingOuter+indentation;}return result;}// Return values (for example, of a set) -// with spacing, indentation, and comma -// without surrounding punctuation (braces or brackets) -function printIteratorValues(iterator,config,indentation,depth,refs,printer){var result='';var current=iterator.next();if(!current.done){result+=config.spacingOuter;var indentationNext=indentation+config.indent;while(!current.done){result+=indentationNext+printer(current.value,config,indentationNext,depth,refs);current=iterator.next();if(!current.done){result+=','+config.spacingInner;}else if(!config.min){result+=',';}}result+=config.spacingOuter+indentation;}return result;}// Return items (for example, of an array) -// with spacing, indentation, and comma -// without surrounding punctuation (for example, brackets) -function printListItems(list,config,indentation,depth,refs,printer){var result='';if(list.length){result+=config.spacingOuter;var indentationNext=indentation+config.indent;for(var _i33=0;_i33config.maxDepth){return'['+stringedValue+']';}return stringedValue+SPACE+'['+(0,_collections.printListItems)(val.sample,config,indentation,depth,refs,printer)+']';}if(stringedValue==='ObjectContaining'){if(++depth>config.maxDepth){return'['+stringedValue+']';}return stringedValue+SPACE+'{'+(0,_collections.printObjectProperties)(val.sample,config,indentation,depth,refs,printer)+'}';}if(stringedValue==='StringMatching'){return stringedValue+SPACE+printer(val.sample,config,indentation,depth,refs);}if(stringedValue==='StringContaining'){return stringedValue+SPACE+printer(val.sample,config,indentation,depth,refs);}return val.toAsymmetricMatcher();};var test=exports.test=function(val){return val&&val.$$typeof===asymmetricMatcher;};exports.default={serialize:serialize,test:test};});var convert_ansi=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.serialize=exports.test=undefined;var _ansiRegex=index$8;var _ansiRegex2=_interopRequireDefault(_ansiRegex);var _ansiStyles=index$52;var _ansiStyles2=_interopRequireDefault(_ansiStyles);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var toHumanReadableAnsi=function toHumanReadableAnsi(text){return text.replace((0,_ansiRegex2.default)(),function(match,offset,string){switch(match){case _ansiStyles2.default.red.close:case _ansiStyles2.default.green.close:case _ansiStyles2.default.cyan.close:case _ansiStyles2.default.bgRed.close:case _ansiStyles2.default.bgGreen.close:case _ansiStyles2.default.bgCyan.close:case _ansiStyles2.default.reset.open:case _ansiStyles2.default.reset.close:return'';case _ansiStyles2.default.red.open:return'';case _ansiStyles2.default.green.open:return'';case _ansiStyles2.default.cyan.open:return'';case _ansiStyles2.default.bgRed.open:return'';case _ansiStyles2.default.bgGreen.open:return'';case _ansiStyles2.default.bgCyan.open:return'';case _ansiStyles2.default.dim.open:return'';case _ansiStyles2.default.bold.open:return'';default:return'';}});};/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var test=exports.test=function(val){return typeof val==='string'&&val.match((0,_ansiRegex2.default)());};var serialize=exports.serialize=function(val,config,indentation,depth,refs,printer){return printer(toHumanReadableAnsi(val),config,indentation,depth,refs);};exports.default={serialize:serialize,test:test};});var escape_html=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.default=escapeHTML;/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */function escapeHTML(str){return str.replace(//g,'>');}});var markup=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.printElementAsLeaf=exports.printElement=exports.printComment=exports.printText=exports.printChildren=exports.printProps=undefined;var _escape_html=escape_html;var _escape_html2=_interopRequireDefault(_escape_html);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}// Return empty string if keys is empty. -/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var printProps=exports.printProps=function(keys,props,config,indentation,depth,refs,printer){var indentationNext=indentation+config.indent;var colors=config.colors;return keys.map(function(key){var value=props[key];var printed=printer(value,config,indentationNext,depth,refs);if(typeof value!=='string'){if(printed.indexOf('\n')!==-1){printed=config.spacingOuter+indentationNext+printed+config.spacingOuter+indentation;}printed='{'+printed+'}';}return config.spacingInner+indentation+colors.prop.open+key+colors.prop.close+'='+colors.value.open+printed+colors.value.close;}).join('');};// Return empty string if children is empty. -var printChildren=exports.printChildren=function(children,config,indentation,depth,refs,printer){return children.map(function(child){return config.spacingOuter+indentation+(typeof child==='string'?printText(child,config):printer(child,config,indentation,depth,refs));}).join('');};var printText=exports.printText=function(text,config){var contentColor=config.colors.content;return contentColor.open+(0,_escape_html2.default)(text)+contentColor.close;};var printComment=exports.printComment=function(comment,config){var commentColor=config.colors.comment;return commentColor.open+''+commentColor.close;};// Separate the functions to format props, children, and element, -// so a plugin could override a particular function, if needed. -// Too bad, so sad: the traditional (but unnecessary) space -// in a self-closing tagColor requires a second test of printedProps. -var printElement=exports.printElement=function(type,printedProps,printedChildren,config,indentation){var tagColor=config.colors.tag;return tagColor.open+'<'+type+(printedProps&&tagColor.close+printedProps+config.spacingOuter+indentation+tagColor.open)+(printedChildren?'>'+tagColor.close+printedChildren+config.spacingOuter+indentation+tagColor.open+''+tagColor.close;};var printElementAsLeaf=exports.printElementAsLeaf=function(type,config){var tagColor=config.colors.tag;return tagColor.open+'<'+type+tagColor.close+' …'+tagColor.open+' />'+tagColor.close;};});var dom_element=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.serialize=exports.test=undefined;var _markup=markup;/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var ELEMENT_NODE=1;var TEXT_NODE=3;var COMMENT_NODE=8;var ELEMENT_REGEXP=/^(HTML|SVG)\w*?Element$/;var testNode=function testNode(nodeType,name){return nodeType===ELEMENT_NODE&&ELEMENT_REGEXP.test(name)||nodeType===TEXT_NODE&&name==='Text'||nodeType===COMMENT_NODE&&name==='Comment';};var test=exports.test=function(val){return val&&val.constructor&&val.constructor.name&&testNode(val.nodeType,val.constructor.name);};// Convert array of attribute objects to keys array and props object. -var keysMapper=function keysMapper(attribute){return attribute.name;};var propsReducer=function propsReducer(props,attribute){props[attribute.name]=attribute.value;return props;};var serialize=exports.serialize=function(node,config,indentation,depth,refs,printer){if(node.nodeType===TEXT_NODE){return(0,_markup.printText)(node.data,config);}if(node.nodeType===COMMENT_NODE){return(0,_markup.printComment)(node.data,config);}var type=node.tagName.toLowerCase();if(++depth>config.maxDepth){return(0,_markup.printElementAsLeaf)(type,config);}return(0,_markup.printElement)(type,(0,_markup.printProps)(Array.prototype.map.call(node.attributes,keysMapper).sort(),Array.prototype.reduce.call(node.attributes,propsReducer,{}),config,indentation+config.indent,depth,refs,printer),(0,_markup.printChildren)(Array.prototype.slice.call(node.childNodes),config,indentation+config.indent,depth,refs,printer),config,indentation);};exports.default={serialize:serialize,test:test};});var immutable=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.test=exports.serialize=undefined;var _collections=collections;// SENTINEL constants are from https://github.com/facebook/immutable-js -/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var IS_ITERABLE_SENTINEL='@@__IMMUTABLE_ITERABLE__@@';var IS_LIST_SENTINEL='@@__IMMUTABLE_LIST__@@';var IS_KEYED_SENTINEL='@@__IMMUTABLE_KEYED__@@';var IS_MAP_SENTINEL='@@__IMMUTABLE_MAP__@@';var IS_ORDERED_SENTINEL='@@__IMMUTABLE_ORDERED__@@';var IS_RECORD_SENTINEL='@@__IMMUTABLE_RECORD__@@';// immutable v4 -var IS_SEQ_SENTINEL='@@__IMMUTABLE_SEQ__@@';var IS_SET_SENTINEL='@@__IMMUTABLE_SET__@@';var IS_STACK_SENTINEL='@@__IMMUTABLE_STACK__@@';var getImmutableName=function getImmutableName(name){return'Immutable.'+name;};var printAsLeaf=function printAsLeaf(name){return'['+name+']';};var SPACE=' ';var LAZY='…';// Seq is lazy if it calls a method like filter -var printImmutableEntries=function printImmutableEntries(val,config,indentation,depth,refs,printer,type){return++depth>config.maxDepth?printAsLeaf(getImmutableName(type)):getImmutableName(type)+SPACE+'{'+(0,_collections.printIteratorEntries)(val.entries(),config,indentation,depth,refs,printer)+'}';};// Return an iterator for Immutable Record in v4 or later. -var getRecordEntries=function getRecordEntries(val){var i=0;return{next:function next(){if(iconfig.maxDepth?printAsLeaf(name):name+SPACE+'{'+(0,_collections.printIteratorEntries)(entries,config,indentation,depth,refs,printer)+'}';};var printImmutableSeq=function printImmutableSeq(val,config,indentation,depth,refs,printer){var name=getImmutableName('Seq');if(++depth>config.maxDepth){return printAsLeaf(name);}if(val[IS_KEYED_SENTINEL]){return name+SPACE+'{'+(// from Immutable collection of entries or from ECMAScript object -val._iter||val._object?(0,_collections.printIteratorEntries)(val.entries(),config,indentation,depth,refs,printer):LAZY)+'}';}return name+SPACE+'['+(val._iter||// from Immutable collection of values -val._array||// from ECMAScript array -val._collection||// from ECMAScript collection in immutable v4 -val._iterable// from ECMAScript collection in immutable v3 -?(0,_collections.printIteratorValues)(val.values(),config,indentation,depth,refs,printer):LAZY)+']';};var printImmutableValues=function printImmutableValues(val,config,indentation,depth,refs,printer,type){return++depth>config.maxDepth?printAsLeaf(getImmutableName(type)):getImmutableName(type)+SPACE+'['+(0,_collections.printIteratorValues)(val.values(),config,indentation,depth,refs,printer)+']';};var serialize=exports.serialize=function(val,config,indentation,depth,refs,printer){if(val[IS_MAP_SENTINEL]){return printImmutableEntries(val,config,indentation,depth,refs,printer,val[IS_ORDERED_SENTINEL]?'OrderedMap':'Map');}if(val[IS_LIST_SENTINEL]){return printImmutableValues(val,config,indentation,depth,refs,printer,'List');}if(val[IS_SET_SENTINEL]){return printImmutableValues(val,config,indentation,depth,refs,printer,val[IS_ORDERED_SENTINEL]?'OrderedSet':'Set');}if(val[IS_STACK_SENTINEL]){return printImmutableValues(val,config,indentation,depth,refs,printer,'Stack');}if(val[IS_SEQ_SENTINEL]){return printImmutableSeq(val,config,indentation,depth,refs,printer);}// For compatibility with immutable v3 and v4, let record be the default. -return printImmutableRecord(val,config,indentation,depth,refs,printer);};var test=exports.test=function(val){return val&&(val[IS_ITERABLE_SENTINEL]||val[IS_RECORD_SENTINEL]);};exports.default={serialize:serialize,test:test};});var react_element=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.test=exports.serialize=undefined;var _markup=markup;/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var elementSymbol=Symbol.for('react.element');// Given element.props.children, or subtree during recursive traversal, -// return flattened array of children. -var getChildren=function getChildren(arg){var children=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];if(Array.isArray(arg)){arg.forEach(function(item){getChildren(item,children);});}else if(arg!=null&&arg!==false){children.push(arg);}return children;};var getType=function getType(element){if(typeof element.type==='string'){return element.type;}if(typeof element.type==='function'){return element.type.displayName||element.type.name||'Unknown';}return'UNDEFINED';};var serialize=exports.serialize=function(element,config,indentation,depth,refs,printer){return++depth>config.maxDepth?(0,_markup.printElementAsLeaf)(getType(element),config):(0,_markup.printElement)(getType(element),(0,_markup.printProps)(Object.keys(element.props).filter(function(key){return key!=='children';}).sort(),element.props,config,indentation+config.indent,depth,refs,printer),(0,_markup.printChildren)(getChildren(element.props.children),config,indentation+config.indent,depth,refs,printer),config,indentation);};var test=exports.test=function(val){return val&&val.$$typeof===elementSymbol;};exports.default={serialize:serialize,test:test};});var react_test_component=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.test=exports.serialize=undefined;var _markup=markup;/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var testSymbol=Symbol.for('react.test.json');var serialize=exports.serialize=function(object,config,indentation,depth,refs,printer){return++depth>config.maxDepth?(0,_markup.printElementAsLeaf)(object.type,config):(0,_markup.printElement)(object.type,object.props?(0,_markup.printProps)(Object.keys(object.props).sort(),// Despite ternary expression, Flow 0.51.0 found incorrect error: -// undefined is incompatible with the expected param type of Object -// $FlowFixMe -object.props,config,indentation+config.indent,depth,refs,printer):'',object.children?(0,_markup.printChildren)(object.children,config,indentation+config.indent,depth,refs,printer):'',config,indentation);};var test=exports.test=function(val){return val&&val.$$typeof===testSymbol;};exports.default={serialize:serialize,test:test};});var index$50=createCommonjsModule(function(module){'use strict';var _ansiStyles=index$52;var _ansiStyles2=_interopRequireDefault(_ansiStyles);var _collections=collections;var _asymmetric_matcher=asymmetric_matcher;var _asymmetric_matcher2=_interopRequireDefault(_asymmetric_matcher);var _convert_ansi=convert_ansi;var _convert_ansi2=_interopRequireDefault(_convert_ansi);var _dom_element=dom_element;var _dom_element2=_interopRequireDefault(_dom_element);var _immutable=immutable;var _immutable2=_interopRequireDefault(_immutable);var _react_element=react_element;var _react_element2=_interopRequireDefault(_react_element);var _react_test_component=react_test_component;var _react_test_component2=_interopRequireDefault(_react_test_component);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var toString=Object.prototype.toString;/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var toISOString=Date.prototype.toISOString;var errorToString=Error.prototype.toString;var regExpToString=RegExp.prototype.toString;var symbolToString=Symbol.prototype.toString;var SYMBOL_REGEXP=/^Symbol\((.*)\)(.*)$/;var NEWLINE_REGEXP=/\n/gi;function isToStringedArrayType(toStringed){return toStringed==='[object Array]'||toStringed==='[object ArrayBuffer]'||toStringed==='[object DataView]'||toStringed==='[object Float32Array]'||toStringed==='[object Float64Array]'||toStringed==='[object Int8Array]'||toStringed==='[object Int16Array]'||toStringed==='[object Int32Array]'||toStringed==='[object Uint8Array]'||toStringed==='[object Uint8ClampedArray]'||toStringed==='[object Uint16Array]'||toStringed==='[object Uint32Array]';}function printNumber(val){if(val!=+val){return'NaN';}var isNegativeZero=val===0&&1/val<0;return isNegativeZero?'-0':''+val;}function printFunction(val,printFunctionName){if(!printFunctionName){return'[Function]';}return'[Function '+(val.name||'anonymous')+']';}function printSymbol(val){return symbolToString.call(val).replace(SYMBOL_REGEXP,'Symbol($1)');}function printError(val){return'['+errorToString.call(val)+']';}function printBasicValue(val,printFunctionName,escapeRegex){if(val===true||val===false){return''+val;}if(val===undefined){return'undefined';}if(val===null){return'null';}var typeOf=typeof val==='undefined'?'undefined':_typeof(val);if(typeOf==='number'){return printNumber(val);}if(typeOf==='string'){return'"'+val.replace(/"|\\/g,'\\$&')+'"';}if(typeOf==='function'){return printFunction(val,printFunctionName);}if(typeOf==='symbol'){return printSymbol(val);}var toStringed=toString.call(val);if(toStringed==='[object WeakMap]'){return'WeakMap {}';}if(toStringed==='[object WeakSet]'){return'WeakSet {}';}if(toStringed==='[object Function]'||toStringed==='[object GeneratorFunction]'){return printFunction(val,printFunctionName);}if(toStringed==='[object Symbol]'){return printSymbol(val);}if(toStringed==='[object Date]'){return toISOString.call(val);}if(toStringed==='[object Error]'){return printError(val);}if(toStringed==='[object RegExp]'){if(escapeRegex){// https://github.com/benjamingr/RegExp.escape/blob/master/polyfill.js -return regExpToString.call(val).replace(/[\\^$*+?.()|[\]{}]/g,'\\$&');}return regExpToString.call(val);}if(val instanceof Error){return printError(val);}return null;}function printComplexValue(val,config,indentation,depth,refs){if(refs.indexOf(val)!==-1){return'[Circular]';}refs=refs.slice();refs.push(val);var hitMaxDepth=++depth>config.maxDepth;var min=config.min;if(config.callToJSON&&!hitMaxDepth&&val.toJSON&&typeof val.toJSON==='function'){return printer(val.toJSON(),config,indentation,depth,refs);}var toStringed=toString.call(val);if(toStringed==='[object Arguments]'){return hitMaxDepth?'[Arguments]':(min?'':'Arguments ')+'['+(0,_collections.printListItems)(val,config,indentation,depth,refs,printer)+']';}if(isToStringedArrayType(toStringed)){return hitMaxDepth?'['+val.constructor.name+']':(min?'':val.constructor.name+' ')+'['+(0,_collections.printListItems)(val,config,indentation,depth,refs,printer)+']';}if(toStringed==='[object Map]'){return hitMaxDepth?'[Map]':'Map {'+(0,_collections.printIteratorEntries)(val.entries(),config,indentation,depth,refs,printer,' => ')+'}';}if(toStringed==='[object Set]'){return hitMaxDepth?'[Set]':'Set {'+(0,_collections.printIteratorValues)(val.values(),config,indentation,depth,refs,printer)+'}';}return hitMaxDepth?'['+(val.constructor?val.constructor.name:'Object')+']':(min?'':(val.constructor?val.constructor.name:'Object')+' ')+'{'+(0,_collections.printObjectProperties)(val,config,indentation,depth,refs,printer)+'}';}function printPlugin(plugin,val,config,indentation,depth,refs){var printed=plugin.serialize?plugin.serialize(val,config,indentation,depth,refs,printer):plugin.print(val,function(valChild){return printer(valChild,config,indentation,depth,refs);},function(str){var indentationNext=indentation+config.indent;return indentationNext+str.replace(NEWLINE_REGEXP,'\n'+indentationNext);},{edgeSpacing:config.spacingOuter,min:config.min,spacing:config.spacingInner},config.colors);if(typeof printed!=='string'){throw new Error('pretty-format: Plugin must return type "string" but instead returned "'+(typeof printed==='undefined'?'undefined':_typeof(printed))+'".');}return printed;}function findPlugin(plugins,val){for(var p=0;pb.length){a=b;b=swap;}var aLen=a.length;var bLen=b.length;if(aLen===0){return bLen;}if(bLen===0){return aLen;}// Performing suffix trimming: -// We can linearly drop suffix common to both strings since they -// don't increase distance at all -// Note: `~-` is the bitwise way to perform a `- 1` operation -while(aLen>0&&a.charCodeAt(~-aLen)===b.charCodeAt(~-bLen)){aLen--;bLen--;}if(aLen===0){return bLen;}// Performing prefix trimming -// We can linearly drop prefix common to both strings since they -// don't increase distance at all -var start=0;while(startret?tmp2>ret?ret+1:tmp2:tmp2>tmp?tmp+1:tmp2;}}return ret;};var utils$2=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.createDidYouMeanMessage=exports.logValidationWarning=exports.ValidationError=exports.format=exports.WARNING=exports.ERROR=exports.DEPRECATION=undefined;var _chalk;function _load_chalk(){return _chalk=_interopRequireDefault(index$38);}var _prettyFormat;function _load_prettyFormat(){return _prettyFormat=_interopRequireDefault(index$50);}var _leven;function _load_leven(){return _leven=_interopRequireDefault(index$54);}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var BULLET=(_chalk||_load_chalk()).default.bold('\u25CF');/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var DEPRECATION=exports.DEPRECATION=BULLET+' Deprecation Warning';var ERROR=exports.ERROR=BULLET+' Validation Error';var WARNING=exports.WARNING=BULLET+' Validation Warning';var format=exports.format=function(value){return typeof value==='function'?value.toString():(0,(_prettyFormat||_load_prettyFormat()).default)(value,{min:true});};var ValidationError=function(_Error3){_inherits(ValidationError,_Error3);function ValidationError(name,message,comment){_classCallCheck(this,ValidationError);var _this4=_possibleConstructorReturn(this,(ValidationError.__proto__||Object.getPrototypeOf(ValidationError)).call(this));comment=comment?'\n\n'+comment:'\n';_this4.name='';_this4.message=(_chalk||_load_chalk()).default.red((_chalk||_load_chalk()).default.bold(name)+':\n\n'+message+comment);Error.captureStackTrace(_this4,function(){});return _this4;}return ValidationError;}(Error);exports.ValidationError=ValidationError;var logValidationWarning=exports.logValidationWarning=function(name,message,comment){comment=comment?'\n\n'+comment:'\n';console.warn((_chalk||_load_chalk()).default.yellow((_chalk||_load_chalk()).default.bold(name)+':\n\n'+message+comment));};var createDidYouMeanMessage=exports.createDidYouMeanMessage=function(unrecognized,allowedOptions){var suggestion=allowedOptions.find(function(option){var steps=(0,(_leven||_load_leven()).default)(option,unrecognized);return steps<3;});return suggestion?'Did you mean '+(_chalk||_load_chalk()).default.bold(format(suggestion))+'?':'';};});var deprecated=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.deprecationWarning=undefined;var _utils;function _load_utils(){return _utils=utils$2;}/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var deprecationMessage=function deprecationMessage(message,options){var comment=options.comment;var name=options.title&&options.title.deprecation||(_utils||_load_utils()).DEPRECATION;(0,(_utils||_load_utils()).logValidationWarning)(name,message,comment);};var deprecationWarning=exports.deprecationWarning=function(config,option,deprecatedOptions,options){if(option in deprecatedOptions){deprecationMessage(deprecatedOptions[option](config),options);return true;}return false;};});var warnings=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.unknownOptionWarning=undefined;var _chalk;function _load_chalk(){return _chalk=_interopRequireDefault(index$38);}var _utils;function _load_utils(){return _utils=utils$2;}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var unknownOptionWarning=exports.unknownOptionWarning=function(config,exampleConfig,option,options){var didYouMean=(0,(_utils||_load_utils()).createDidYouMeanMessage)(option,Object.keys(exampleConfig));var message=' Unknown option '+(_chalk||_load_chalk()).default.bold('"'+option+'"')+' with value '+(_chalk||_load_chalk()).default.bold((0,(_utils||_load_utils()).format)(config[option]))+' was found.'+(didYouMean&&' '+didYouMean)+'\n This is probably a typing mistake. Fixing it will remove this message.';var comment=options.comment;var name=options.title&&options.title.warning||(_utils||_load_utils()).WARNING;(0,(_utils||_load_utils()).logValidationWarning)(name,message,comment);};/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */});/** - * Copyright (c) 2014, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */// get the type of a value with handling the edge cases like `typeof []` -// and `typeof null` -var getType=function getType(value){if(typeof value==='undefined'){return'undefined';}else if(value===null){return'null';}else if(Array.isArray(value)){return'array';}else if(typeof value==='boolean'){return'boolean';}else if(typeof value==='function'){return'function';}else if(typeof value==='number'){return'number';}else if(typeof value==='string'){return'string';}else if((typeof value==='undefined'?'undefined':_typeof(value))==='object'){if(value.constructor===RegExp){return'regexp';}else if(value.constructor===Map){return'map';}else if(value.constructor===Set){return'set';}return'object';// $FlowFixMe https://github.com/facebook/flow/issues/1015 -}else if((typeof value==='undefined'?'undefined':_typeof(value))==='symbol'){return'symbol';}throw new Error('value of unknown type: '+value);};var index$56=getType;var errors$2=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.errorMessage=undefined;var _chalk;function _load_chalk(){return _chalk=_interopRequireDefault(index$38);}var _jestGetType;function _load_jestGetType(){return _jestGetType=_interopRequireDefault(index$56);}var _utils;function _load_utils(){return _utils=utils$2;}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var errorMessage=exports.errorMessage=function(option,received,defaultValue,options){var message=' Option '+(_chalk||_load_chalk()).default.bold('"'+option+'"')+' must be of type:\n '+(_chalk||_load_chalk()).default.bold.green((0,(_jestGetType||_load_jestGetType()).default)(defaultValue))+'\n but instead received:\n '+(_chalk||_load_chalk()).default.bold.red((0,(_jestGetType||_load_jestGetType()).default)(received))+'\n\n Example:\n {\n '+(_chalk||_load_chalk()).default.bold('"'+option+'"')+': '+(_chalk||_load_chalk()).default.bold((0,(_utils||_load_utils()).format)(defaultValue))+'\n }';var comment=options.comment;var name=options.title&&options.title.error||(_utils||_load_utils()).ERROR;throw new(_utils||_load_utils()).ValidationError(name,message,comment);};});var example_config=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});var config={comment:' A comment',condition:function condition(option,validOption){return true;},deprecate:function deprecate(config,option,deprecatedOptions,options){return false;},deprecatedConfig:{key:function key(config){}},error:function error(option,received,defaultValue,options){},exampleConfig:{key:'value',test:'case'},title:{deprecation:'Deprecation Warning',error:'Validation Error',warning:'Validation Warning'},unknown:function unknown(config,option,options){}};/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */exports.default=config;});var condition=createCommonjsModule(function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=validationCondition;/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var toString=Object.prototype.toString;function validationCondition(option,validOption){return option===null||option===undefined||toString.call(option)===toString.call(validOption);}});var default_config=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});var _deprecated;function _load_deprecated(){return _deprecated=deprecated;}var _warnings;function _load_warnings(){return _warnings=warnings;}var _errors;function _load_errors(){return _errors=errors$2;}var _example_config;function _load_example_config(){return _example_config=_interopRequireDefault(example_config);}var _condition;function _load_condition(){return _condition=_interopRequireDefault(condition);}var _utils;function _load_utils(){return _utils=utils$2;}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default={comment:'',condition:(_condition||_load_condition()).default,deprecate:(_deprecated||_load_deprecated()).deprecationWarning,deprecatedConfig:{},error:(_errors||_load_errors()).errorMessage,exampleConfig:(_example_config||_load_example_config()).default,title:{deprecation:(_utils||_load_utils()).DEPRECATION,error:(_utils||_load_utils()).ERROR,warning:(_utils||_load_utils()).WARNING},unknown:(_warnings||_load_warnings()).unknownOptionWarning};/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */});var validate_1=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});var _default_config;function _load_default_config(){return _default_config=_interopRequireDefault(default_config);}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var _validate=function _validate(config,options){var hasDeprecationWarnings=false;for(var key in config){if(options.deprecatedConfig&&key in options.deprecatedConfig&&typeof options.deprecate==='function'){var isDeprecatedKey=options.deprecate(config,key,options.deprecatedConfig,options);hasDeprecationWarnings=hasDeprecationWarnings||isDeprecatedKey;}else if(hasOwnProperty.call(options.exampleConfig,key)){if(typeof options.condition==='function'&&typeof options.error==='function'&&!options.condition(config[key],options.exampleConfig[key])){options.error(key,config[key],options.exampleConfig[key],options);}}else{options.unknown&&options.unknown(config,options.exampleConfig,key,options);}}return{hasDeprecationWarnings:hasDeprecationWarnings};};var validate=function validate(config,options){_validate(options,(_default_config||_load_default_config()).default);// validate against jest-validate config -var defaultedOptions=Object.assign({},(_default_config||_load_default_config()).default,options,{title:Object.assign({},(_default_config||_load_default_config()).default.title,options.title)});var _validate2=_validate(config,defaultedOptions);var hasDeprecationWarnings=_validate2.hasDeprecationWarnings;return{hasDeprecationWarnings:hasDeprecationWarnings,isValid:true};};exports.default=validate;});var index$36=createCommonjsModule(function(module){'use strict';var _utils;function _load_utils(){return _utils=utils$2;}var _validate;function _load_validate(){return _validate=_interopRequireDefault(validate_1);}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */module.exports={ValidationError:(_utils||_load_utils()).ValidationError,createDidYouMeanMessage:(_utils||_load_utils()).createDidYouMeanMessage,format:(_utils||_load_utils()).format,logValidationWarning:(_utils||_load_utils()).logValidationWarning,validate:(_validate||_load_validate()).default};});var deprecated$2={useFlowParser:function useFlowParser(config){return' The '+'"useFlowParser"'+' option is deprecated. Use '+'"parser"'+' instead.\n\n Prettier now treats your configuration as:\n {\n '+'"parser"'+': '+(config.useFlowParser?'"flow"':'"babylon"')+'\n }';}};var deprecated_1$1=deprecated$2;var semver$1=createCommonjsModule(function(module,exports){exports=module.exports=SemVer;// The debug function is excluded entirely from the minified version. -/* nomin */var debug;/* nomin */if((typeof process==='undefined'?'undefined':_typeof(process))==='object'&&/* nomin */process.env&&/* nomin */process.env.NODE_DEBUG&&/* nomin *//\bsemver\b/i.test(process.env.NODE_DEBUG))/* nomin */debug=function debug(){/* nomin */var args=Array.prototype.slice.call(arguments,0);/* nomin */args.unshift('SEMVER');/* nomin */console.log.apply(console,args);/* nomin */};/* nomin */else/* nomin */debug=function debug(){};// Note: this is the semver.org version of the spec that it implements -// Not necessarily the package version of this code. -exports.SEMVER_SPEC_VERSION='2.0.0';var MAX_LENGTH=256;var MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991;// The actual regexps go on exports.re -var re=exports.re=[];var src=exports.src=[];var R=0;// The following Regular Expressions can be used for tokenizing, -// validating, and parsing SemVer version strings. -// ## Numeric Identifier -// A single `0`, or a non-zero digit followed by zero or more digits. -var NUMERICIDENTIFIER=R++;src[NUMERICIDENTIFIER]='0|[1-9]\\d*';var NUMERICIDENTIFIERLOOSE=R++;src[NUMERICIDENTIFIERLOOSE]='[0-9]+';// ## Non-numeric Identifier -// Zero or more digits, followed by a letter or hyphen, and then zero or -// more letters, digits, or hyphens. -var NONNUMERICIDENTIFIER=R++;src[NONNUMERICIDENTIFIER]='\\d*[a-zA-Z-][a-zA-Z0-9-]*';// ## Main Version -// Three dot-separated numeric identifiers. -var MAINVERSION=R++;src[MAINVERSION]='('+src[NUMERICIDENTIFIER]+')\\.'+'('+src[NUMERICIDENTIFIER]+')\\.'+'('+src[NUMERICIDENTIFIER]+')';var MAINVERSIONLOOSE=R++;src[MAINVERSIONLOOSE]='('+src[NUMERICIDENTIFIERLOOSE]+')\\.'+'('+src[NUMERICIDENTIFIERLOOSE]+')\\.'+'('+src[NUMERICIDENTIFIERLOOSE]+')';// ## Pre-release Version Identifier -// A numeric identifier, or a non-numeric identifier. -var PRERELEASEIDENTIFIER=R++;src[PRERELEASEIDENTIFIER]='(?:'+src[NUMERICIDENTIFIER]+'|'+src[NONNUMERICIDENTIFIER]+')';var PRERELEASEIDENTIFIERLOOSE=R++;src[PRERELEASEIDENTIFIERLOOSE]='(?:'+src[NUMERICIDENTIFIERLOOSE]+'|'+src[NONNUMERICIDENTIFIER]+')';// ## Pre-release Version -// Hyphen, followed by one or more dot-separated pre-release version -// identifiers. -var PRERELEASE=R++;src[PRERELEASE]='(?:-('+src[PRERELEASEIDENTIFIER]+'(?:\\.'+src[PRERELEASEIDENTIFIER]+')*))';var PRERELEASELOOSE=R++;src[PRERELEASELOOSE]='(?:-?('+src[PRERELEASEIDENTIFIERLOOSE]+'(?:\\.'+src[PRERELEASEIDENTIFIERLOOSE]+')*))';// ## Build Metadata Identifier -// Any combination of digits, letters, or hyphens. -var BUILDIDENTIFIER=R++;src[BUILDIDENTIFIER]='[0-9A-Za-z-]+';// ## Build Metadata -// Plus sign, followed by one or more period-separated build metadata -// identifiers. -var BUILD=R++;src[BUILD]='(?:\\+('+src[BUILDIDENTIFIER]+'(?:\\.'+src[BUILDIDENTIFIER]+')*))';// ## Full Version String -// A main version, followed optionally by a pre-release version and -// build metadata. -// Note that the only major, minor, patch, and pre-release sections of -// the version string are capturing groups. The build metadata is not a -// capturing group, because it should not ever be used in version -// comparison. -var FULL=R++;var FULLPLAIN='v?'+src[MAINVERSION]+src[PRERELEASE]+'?'+src[BUILD]+'?';src[FULL]='^'+FULLPLAIN+'$';// like full, but allows v1.2.3 and =1.2.3, which people do sometimes. -// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty -// common in the npm registry. -var LOOSEPLAIN='[v=\\s]*'+src[MAINVERSIONLOOSE]+src[PRERELEASELOOSE]+'?'+src[BUILD]+'?';var LOOSE=R++;src[LOOSE]='^'+LOOSEPLAIN+'$';var GTLT=R++;src[GTLT]='((?:<|>)?=?)';// Something like "2.*" or "1.2.x". -// Note that "x.x" is a valid xRange identifer, meaning "any version" -// Only the first item is strictly required. -var XRANGEIDENTIFIERLOOSE=R++;src[XRANGEIDENTIFIERLOOSE]=src[NUMERICIDENTIFIERLOOSE]+'|x|X|\\*';var XRANGEIDENTIFIER=R++;src[XRANGEIDENTIFIER]=src[NUMERICIDENTIFIER]+'|x|X|\\*';var XRANGEPLAIN=R++;src[XRANGEPLAIN]='[v=\\s]*('+src[XRANGEIDENTIFIER]+')'+'(?:\\.('+src[XRANGEIDENTIFIER]+')'+'(?:\\.('+src[XRANGEIDENTIFIER]+')'+'(?:'+src[PRERELEASE]+')?'+src[BUILD]+'?'+')?)?';var XRANGEPLAINLOOSE=R++;src[XRANGEPLAINLOOSE]='[v=\\s]*('+src[XRANGEIDENTIFIERLOOSE]+')'+'(?:\\.('+src[XRANGEIDENTIFIERLOOSE]+')'+'(?:\\.('+src[XRANGEIDENTIFIERLOOSE]+')'+'(?:'+src[PRERELEASELOOSE]+')?'+src[BUILD]+'?'+')?)?';var XRANGE=R++;src[XRANGE]='^'+src[GTLT]+'\\s*'+src[XRANGEPLAIN]+'$';var XRANGELOOSE=R++;src[XRANGELOOSE]='^'+src[GTLT]+'\\s*'+src[XRANGEPLAINLOOSE]+'$';// Tilde ranges. -// Meaning is "reasonably at or greater than" -var LONETILDE=R++;src[LONETILDE]='(?:~>?)';var TILDETRIM=R++;src[TILDETRIM]='(\\s*)'+src[LONETILDE]+'\\s+';re[TILDETRIM]=new RegExp(src[TILDETRIM],'g');var tildeTrimReplace='$1~';var TILDE=R++;src[TILDE]='^'+src[LONETILDE]+src[XRANGEPLAIN]+'$';var TILDELOOSE=R++;src[TILDELOOSE]='^'+src[LONETILDE]+src[XRANGEPLAINLOOSE]+'$';// Caret ranges. -// Meaning is "at least and backwards compatible with" -var LONECARET=R++;src[LONECARET]='(?:\\^)';var CARETTRIM=R++;src[CARETTRIM]='(\\s*)'+src[LONECARET]+'\\s+';re[CARETTRIM]=new RegExp(src[CARETTRIM],'g');var caretTrimReplace='$1^';var CARET=R++;src[CARET]='^'+src[LONECARET]+src[XRANGEPLAIN]+'$';var CARETLOOSE=R++;src[CARETLOOSE]='^'+src[LONECARET]+src[XRANGEPLAINLOOSE]+'$';// A simple gt/lt/eq thing, or just "" to indicate "any version" -var COMPARATORLOOSE=R++;src[COMPARATORLOOSE]='^'+src[GTLT]+'\\s*('+LOOSEPLAIN+')$|^$';var COMPARATOR=R++;src[COMPARATOR]='^'+src[GTLT]+'\\s*('+FULLPLAIN+')$|^$';// An expression to strip any whitespace between the gtlt and the thing -// it modifies, so that `> 1.2.3` ==> `>1.2.3` -var COMPARATORTRIM=R++;src[COMPARATORTRIM]='(\\s*)'+src[GTLT]+'\\s*('+LOOSEPLAIN+'|'+src[XRANGEPLAIN]+')';// this one has to use the /g flag -re[COMPARATORTRIM]=new RegExp(src[COMPARATORTRIM],'g');var comparatorTrimReplace='$1$2$3';// Something like `1.2.3 - 1.2.4` -// Note that these all use the loose form, because they'll be -// checked against either the strict or loose comparator form -// later. -var HYPHENRANGE=R++;src[HYPHENRANGE]='^\\s*('+src[XRANGEPLAIN]+')'+'\\s+-\\s+'+'('+src[XRANGEPLAIN]+')'+'\\s*$';var HYPHENRANGELOOSE=R++;src[HYPHENRANGELOOSE]='^\\s*('+src[XRANGEPLAINLOOSE]+')'+'\\s+-\\s+'+'('+src[XRANGEPLAINLOOSE]+')'+'\\s*$';// Star ranges basically just allow anything at all. -var STAR=R++;src[STAR]='(<|>)?=?\\s*\\*';// Compile to actual regexp objects. -// All are flag-free, unless they were created above with a flag. -for(var i=0;iMAX_LENGTH)return null;var r=loose?re[LOOSE]:re[FULL];if(!r.test(version))return null;try{return new SemVer(version,loose);}catch(er){return null;}}exports.valid=valid;function valid(version,loose){var v=parse(version,loose);return v?v.version:null;}exports.clean=clean;function clean(version,loose){var s=parse(version.trim().replace(/^[=v]+/,''),loose);return s?s.version:null;}exports.SemVer=SemVer;function SemVer(version,loose){if(version instanceof SemVer){if(version.loose===loose)return version;else version=version.version;}else if(typeof version!=='string'){throw new TypeError('Invalid Version: '+version);}if(version.length>MAX_LENGTH)throw new TypeError('version is longer than '+MAX_LENGTH+' characters');if(!(this instanceof SemVer))return new SemVer(version,loose);debug('SemVer',version,loose);this.loose=loose;var m=version.trim().match(loose?re[LOOSE]:re[FULL]);if(!m)throw new TypeError('Invalid Version: '+version);this.raw=version;// these are actually numbers -this.major=+m[1];this.minor=+m[2];this.patch=+m[3];if(this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError('Invalid major version');if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError('Invalid minor version');if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError('Invalid patch version');// numberify any prerelease numeric ids -if(!m[4])this.prerelease=[];else this.prerelease=m[4].split('.').map(function(id){if(/^[0-9]+$/.test(id)){var num=+id;if(num>=0&&num having one -if(this.prerelease.length&&!other.prerelease.length)return-1;else if(!this.prerelease.length&&other.prerelease.length)return 1;else if(!this.prerelease.length&&!other.prerelease.length)return 0;var i=0;do{var a=this.prerelease[i];var b=other.prerelease[i];debug('prerelease compare',i,a,b);if(a===undefined&&b===undefined)return 0;else if(b===undefined)return 1;else if(a===undefined)return-1;else if(a===b)continue;else return compareIdentifiers(a,b);}while(++i);};// preminor will bump the version up to the next minor release, and immediately -// down to pre-release. premajor and prepatch work the same way. -SemVer.prototype.inc=function(release,identifier){switch(release){case'premajor':this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc('pre',identifier);break;case'preminor':this.prerelease.length=0;this.patch=0;this.minor++;this.inc('pre',identifier);break;case'prepatch':// If this is already a prerelease, it will bump to the next version -// drop any prereleases that might already exist, since they are not -// relevant at this point. -this.prerelease.length=0;this.inc('patch',identifier);this.inc('pre',identifier);break;// If the input is a non-prerelease version, this acts the same as -// prepatch. -case'prerelease':if(this.prerelease.length===0)this.inc('patch',identifier);this.inc('pre',identifier);break;case'major':// If this is a pre-major version, bump up to the same major version. -// Otherwise increment major. -// 1.0.0-5 bumps to 1.0.0 -// 1.1.0 bumps to 2.0.0 -if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0;this.patch=0;this.prerelease=[];break;case'minor':// If this is a pre-minor version, bump up to the same minor version. -// Otherwise increment minor. -// 1.2.0-5 bumps to 1.2.0 -// 1.2.1 bumps to 1.3.0 -if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0;this.prerelease=[];break;case'patch':// If this is not a pre-release version, it will increment the patch. -// If it is a pre-release it will bump up to the same patch version. -// 1.2.0-5 patches to 1.2.0 -// 1.2.0 patches to 1.2.1 -if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;// This probably shouldn't be used publicly. -// 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction. -case'pre':if(this.prerelease.length===0)this.prerelease=[0];else{var i=this.prerelease.length;while(--i>=0){if(typeof this.prerelease[i]==='number'){this.prerelease[i]++;i=-2;}}if(i===-1)// didn't increment anything -this.prerelease.push(0);}if(identifier){// 1.2.0-beta.1 bumps to 1.2.0-beta.2, -// 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0 -if(this.prerelease[0]===identifier){if(isNaN(this.prerelease[1]))this.prerelease=[identifier,0];}else this.prerelease=[identifier,0];}break;default:throw new Error('invalid increment argument: '+release);}this.format();this.raw=this.version;return this;};exports.inc=inc;function inc(version,release,loose,identifier){if(typeof loose==='string'){identifier=loose;loose=undefined;}try{return new SemVer(version,loose).inc(release,identifier).version;}catch(er){return null;}}exports.diff=diff;function diff(version1,version2){if(eq(version1,version2)){return null;}else{var v1=parse(version1);var v2=parse(version2);if(v1.prerelease.length||v2.prerelease.length){for(var key in v1){if(key==='major'||key==='minor'||key==='patch'){if(v1[key]!==v2[key]){return'pre'+key;}}}return'prerelease';}for(var key in v1){if(key==='major'||key==='minor'||key==='patch'){if(v1[key]!==v2[key]){return key;}}}}}exports.compareIdentifiers=compareIdentifiers;var numeric=/^[0-9]+$/;function compareIdentifiers(a,b){var anum=numeric.test(a);var bnum=numeric.test(b);if(anum&&bnum){a=+a;b=+b;}return anum&&!bnum?-1:bnum&&!anum?1:ab?1:0;}exports.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(a,b){return compareIdentifiers(b,a);}exports.major=major;function major(a,loose){return new SemVer(a,loose).major;}exports.minor=minor;function minor(a,loose){return new SemVer(a,loose).minor;}exports.patch=patch;function patch(a,loose){return new SemVer(a,loose).patch;}exports.compare=compare;function compare(a,b,loose){return new SemVer(a,loose).compare(new SemVer(b,loose));}exports.compareLoose=compareLoose;function compareLoose(a,b){return compare(a,b,true);}exports.rcompare=rcompare;function rcompare(a,b,loose){return compare(b,a,loose);}exports.sort=sort;function sort(list,loose){return list.sort(function(a,b){return exports.compare(a,b,loose);});}exports.rsort=rsort;function rsort(list,loose){return list.sort(function(a,b){return exports.rcompare(a,b,loose);});}exports.gt=gt;function gt(a,b,loose){return compare(a,b,loose)>0;}exports.lt=lt;function lt(a,b,loose){return compare(a,b,loose)<0;}exports.eq=eq;function eq(a,b,loose){return compare(a,b,loose)===0;}exports.neq=neq;function neq(a,b,loose){return compare(a,b,loose)!==0;}exports.gte=gte;function gte(a,b,loose){return compare(a,b,loose)>=0;}exports.lte=lte;function lte(a,b,loose){return compare(a,b,loose)<=0;}exports.cmp=cmp;function cmp(a,op,b,loose){var ret;switch(op){case'===':if((typeof a==='undefined'?'undefined':_typeof(a))==='object')a=a.version;if((typeof b==='undefined'?'undefined':_typeof(b))==='object')b=b.version;ret=a===b;break;case'!==':if((typeof a==='undefined'?'undefined':_typeof(a))==='object')a=a.version;if((typeof b==='undefined'?'undefined':_typeof(b))==='object')b=b.version;ret=a!==b;break;case'':case'=':case'==':ret=eq(a,b,loose);break;case'!=':ret=neq(a,b,loose);break;case'>':ret=gt(a,b,loose);break;case'>=':ret=gte(a,b,loose);break;case'<':ret=lt(a,b,loose);break;case'<=':ret=lte(a,b,loose);break;default:throw new TypeError('Invalid operator: '+op);}return ret;}exports.Comparator=Comparator;function Comparator(comp,loose){if(comp instanceof Comparator){if(comp.loose===loose)return comp;else comp=comp.value;}if(!(this instanceof Comparator))return new Comparator(comp,loose);debug('comparator',comp,loose);this.loose=loose;this.parse(comp);if(this.semver===ANY)this.value='';else this.value=this.operator+this.semver.version;debug('comp',this);}var ANY={};Comparator.prototype.parse=function(comp){var r=this.loose?re[COMPARATORLOOSE]:re[COMPARATOR];var m=comp.match(r);if(!m)throw new TypeError('Invalid comparator: '+comp);this.operator=m[1];if(this.operator==='=')this.operator='';// if it literally is just '>' or '' then allow anything. -if(!m[2])this.semver=ANY;else this.semver=new SemVer(m[2],this.loose);};Comparator.prototype.toString=function(){return this.value;};Comparator.prototype.test=function(version){debug('Comparator.test',version,this.loose);if(this.semver===ANY)return true;if(typeof version==='string')version=new SemVer(version,this.loose);return cmp(version,this.operator,this.semver,this.loose);};Comparator.prototype.intersects=function(comp,loose){if(!(comp instanceof Comparator)){throw new TypeError('a Comparator is required');}var rangeTmp;if(this.operator===''){rangeTmp=new Range(comp.value,loose);return satisfies(this.value,rangeTmp,loose);}else if(comp.operator===''){rangeTmp=new Range(this.value,loose);return satisfies(comp.semver,rangeTmp,loose);}var sameDirectionIncreasing=(this.operator==='>='||this.operator==='>')&&(comp.operator==='>='||comp.operator==='>');var sameDirectionDecreasing=(this.operator==='<='||this.operator==='<')&&(comp.operator==='<='||comp.operator==='<');var sameSemVer=this.semver.version===comp.semver.version;var differentDirectionsInclusive=(this.operator==='>='||this.operator==='<=')&&(comp.operator==='>='||comp.operator==='<=');var oppositeDirectionsLessThan=cmp(this.semver,'<',comp.semver,loose)&&(this.operator==='>='||this.operator==='>')&&(comp.operator==='<='||comp.operator==='<');var oppositeDirectionsGreaterThan=cmp(this.semver,'>',comp.semver,loose)&&(this.operator==='<='||this.operator==='<')&&(comp.operator==='>='||comp.operator==='>');return sameDirectionIncreasing||sameDirectionDecreasing||sameSemVer&&differentDirectionsInclusive||oppositeDirectionsLessThan||oppositeDirectionsGreaterThan;};exports.Range=Range;function Range(range,loose){if(range instanceof Range){if(range.loose===loose){return range;}else{return new Range(range.raw,loose);}}if(range instanceof Comparator){return new Range(range.value,loose);}if(!(this instanceof Range))return new Range(range,loose);this.loose=loose;// First, split based on boolean or || -this.raw=range;this.set=range.split(/\s*\|\|\s*/).map(function(range){return this.parseRange(range.trim());},this).filter(function(c){// throw out any that are not relevant for whatever reason -return c.length;});if(!this.set.length){throw new TypeError('Invalid SemVer Range: '+range);}this.format();}Range.prototype.format=function(){this.range=this.set.map(function(comps){return comps.join(' ').trim();}).join('||').trim();return this.range;};Range.prototype.toString=function(){return this.range;};Range.prototype.parseRange=function(range){var loose=this.loose;range=range.trim();debug('range',range,loose);// `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4` -var hr=loose?re[HYPHENRANGELOOSE]:re[HYPHENRANGE];range=range.replace(hr,hyphenReplace);debug('hyphen replace',range);// `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5` -range=range.replace(re[COMPARATORTRIM],comparatorTrimReplace);debug('comparator trim',range,re[COMPARATORTRIM]);// `~ 1.2.3` => `~1.2.3` -range=range.replace(re[TILDETRIM],tildeTrimReplace);// `^ 1.2.3` => `^1.2.3` -range=range.replace(re[CARETTRIM],caretTrimReplace);// normalize spaces -range=range.split(/\s+/).join(' ');// At this point, the range is completely trimmed and -// ready to be split into comparators. -var compRe=loose?re[COMPARATORLOOSE]:re[COMPARATOR];var set=range.split(' ').map(function(comp){return parseComparator(comp,loose);}).join(' ').split(/\s+/);if(this.loose){// in loose mode, throw out any that are not valid comparators -set=set.filter(function(comp){return!!comp.match(compRe);});}set=set.map(function(comp){return new Comparator(comp,loose);});return set;};Range.prototype.intersects=function(range,loose){if(!(range instanceof Range)){throw new TypeError('a Range is required');}return this.set.some(function(thisComparators){return thisComparators.every(function(thisComparator){return range.set.some(function(rangeComparators){return rangeComparators.every(function(rangeComparator){return thisComparator.intersects(rangeComparator,loose);});});});});};// Mostly just for testing and legacy API reasons -exports.toComparators=toComparators;function toComparators(range,loose){return new Range(range,loose).set.map(function(comp){return comp.map(function(c){return c.value;}).join(' ').trim().split(' ');});}// comprised of xranges, tildes, stars, and gtlt's at this point. -// already replaced the hyphen ranges -// turn into a set of JUST comparators. -function parseComparator(comp,loose){debug('comp',comp);comp=replaceCarets(comp,loose);debug('caret',comp);comp=replaceTildes(comp,loose);debug('tildes',comp);comp=replaceXRanges(comp,loose);debug('xrange',comp);comp=replaceStars(comp,loose);debug('stars',comp);return comp;}function isX(id){return!id||id.toLowerCase()==='x'||id==='*';}// ~, ~> --> * (any, kinda silly) -// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0 -// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0 -// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0 -// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0 -// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0 -function replaceTildes(comp,loose){return comp.trim().split(/\s+/).map(function(comp){return replaceTilde(comp,loose);}).join(' ');}function replaceTilde(comp,loose){var r=loose?re[TILDELOOSE]:re[TILDE];return comp.replace(r,function(_,M,m,p,pr){debug('tilde',comp,_,M,m,p,pr);var ret;if(isX(M))ret='';else if(isX(m))ret='>='+M+'.0.0 <'+(+M+1)+'.0.0';else if(isX(p))// ~1.2 == >=1.2.0 <1.3.0 -ret='>='+M+'.'+m+'.0 <'+M+'.'+(+m+1)+'.0';else if(pr){debug('replaceTilde pr',pr);if(pr.charAt(0)!=='-')pr='-'+pr;ret='>='+M+'.'+m+'.'+p+pr+' <'+M+'.'+(+m+1)+'.0';}else// ~1.2.3 == >=1.2.3 <1.3.0 -ret='>='+M+'.'+m+'.'+p+' <'+M+'.'+(+m+1)+'.0';debug('tilde return',ret);return ret;});}// ^ --> * (any, kinda silly) -// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0 -// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0 -// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0 -// ^1.2.3 --> >=1.2.3 <2.0.0 -// ^1.2.0 --> >=1.2.0 <2.0.0 -function replaceCarets(comp,loose){return comp.trim().split(/\s+/).map(function(comp){return replaceCaret(comp,loose);}).join(' ');}function replaceCaret(comp,loose){debug('caret',comp,loose);var r=loose?re[CARETLOOSE]:re[CARET];return comp.replace(r,function(_,M,m,p,pr){debug('caret',comp,_,M,m,p,pr);var ret;if(isX(M))ret='';else if(isX(m))ret='>='+M+'.0.0 <'+(+M+1)+'.0.0';else if(isX(p)){if(M==='0')ret='>='+M+'.'+m+'.0 <'+M+'.'+(+m+1)+'.0';else ret='>='+M+'.'+m+'.0 <'+(+M+1)+'.0.0';}else if(pr){debug('replaceCaret pr',pr);if(pr.charAt(0)!=='-')pr='-'+pr;if(M==='0'){if(m==='0')ret='>='+M+'.'+m+'.'+p+pr+' <'+M+'.'+m+'.'+(+p+1);else ret='>='+M+'.'+m+'.'+p+pr+' <'+M+'.'+(+m+1)+'.0';}else ret='>='+M+'.'+m+'.'+p+pr+' <'+(+M+1)+'.0.0';}else{debug('no pr');if(M==='0'){if(m==='0')ret='>='+M+'.'+m+'.'+p+' <'+M+'.'+m+'.'+(+p+1);else ret='>='+M+'.'+m+'.'+p+' <'+M+'.'+(+m+1)+'.0';}else ret='>='+M+'.'+m+'.'+p+' <'+(+M+1)+'.0.0';}debug('caret return',ret);return ret;});}function replaceXRanges(comp,loose){debug('replaceXRanges',comp,loose);return comp.split(/\s+/).map(function(comp){return replaceXRange(comp,loose);}).join(' ');}function replaceXRange(comp,loose){comp=comp.trim();var r=loose?re[XRANGELOOSE]:re[XRANGE];return comp.replace(r,function(ret,gtlt,M,m,p,pr){debug('xRange',comp,ret,gtlt,M,m,p,pr);var xM=isX(M);var xm=xM||isX(m);var xp=xm||isX(p);var anyX=xp;if(gtlt==='='&&anyX)gtlt='';if(xM){if(gtlt==='>'||gtlt==='<'){// nothing is allowed -ret='<0.0.0';}else{// nothing is forbidden -ret='*';}}else if(gtlt&&anyX){// replace X with 0 -if(xm)m=0;if(xp)p=0;if(gtlt==='>'){// >1 => >=2.0.0 -// >1.2 => >=1.3.0 -// >1.2.3 => >= 1.2.4 -gtlt='>=';if(xm){M=+M+1;m=0;p=0;}else if(xp){m=+m+1;p=0;}}else if(gtlt==='<='){// <=0.7.x is actually <0.8.0, since any 0.7.x should -// pass. Similarly, <=7.x is actually <8.0.0, etc. -gtlt='<';if(xm)M=+M+1;else m=+m+1;}ret=gtlt+M+'.'+m+'.'+p;}else if(xm){ret='>='+M+'.0.0 <'+(+M+1)+'.0.0';}else if(xp){ret='>='+M+'.'+m+'.0 <'+M+'.'+(+m+1)+'.0';}debug('xRange return',ret);return ret;});}// Because * is AND-ed with everything else in the comparator, -// and '' means "any version", just remove the *s entirely. -function replaceStars(comp,loose){debug('replaceStars',comp,loose);// Looseness is ignored here. star is always as loose as it gets! -return comp.trim().replace(re[STAR],'');}// This function is passed to string.replace(re[HYPHENRANGE]) -// M, m, patch, prerelease, build -// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5 -// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do -// 1.2 - 3.4 => >=1.2.0 <3.5.0 -function hyphenReplace($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr,tb){if(isX(fM))from='';else if(isX(fm))from='>='+fM+'.0.0';else if(isX(fp))from='>='+fM+'.'+fm+'.0';else from='>='+from;if(isX(tM))to='';else if(isX(tm))to='<'+(+tM+1)+'.0.0';else if(isX(tp))to='<'+tM+'.'+(+tm+1)+'.0';else if(tpr)to='<='+tM+'.'+tm+'.'+tp+'-'+tpr;else to='<='+to;return(from+' '+to).trim();}// if ANY of the sets match ALL of its comparators, then pass -Range.prototype.test=function(version){if(!version)return false;if(typeof version==='string')version=new SemVer(version,this.loose);for(var i=0;i=1.2.3-pr.1 <2.0.0 -// That should allow `1.2.3-pr.2` to pass. -// However, `1.2.4-alpha.notready` should NOT be allowed, -// even though it's within the range set by the comparators. -for(var i=0;i0){var allowed=set[i].semver;if(allowed.major===version.major&&allowed.minor===version.minor&&allowed.patch===version.patch)return true;}}// Version has a -pre, but it's not one of the ones we like. -return false;}return true;}exports.satisfies=satisfies;function satisfies(version,range,loose){try{range=new Range(range,loose);}catch(er){return false;}return range.test(version);}exports.maxSatisfying=maxSatisfying;function maxSatisfying(versions,range,loose){var max=null;var maxSV=null;try{var rangeObj=new Range(range,loose);}catch(er){return null;}versions.forEach(function(v){if(rangeObj.test(v)){// satisfies(v, range, loose) -if(!max||maxSV.compare(v)===-1){// compare(max, v, true) -max=v;maxSV=new SemVer(max,loose);}}});return max;}exports.minSatisfying=minSatisfying;function minSatisfying(versions,range,loose){var min=null;var minSV=null;try{var rangeObj=new Range(range,loose);}catch(er){return null;}versions.forEach(function(v){if(rangeObj.test(v)){// satisfies(v, range, loose) -if(!min||minSV.compare(v)===1){// compare(min, v, true) -min=v;minSV=new SemVer(min,loose);}}});return min;}exports.validRange=validRange;function validRange(range,loose){try{// Return '*' instead of '' so that truthiness works. -// This will throw if it's invalid anyway -return new Range(range,loose).range||'*';}catch(er){return null;}}// Determine if version is less than all the versions possible in the range -exports.ltr=ltr;function ltr(version,range,loose){return outside(version,range,'<',loose);}// Determine if version is greater than all the versions possible in the range. -exports.gtr=gtr;function gtr(version,range,loose){return outside(version,range,'>',loose);}exports.outside=outside;function outside(version,range,hilo,loose){version=new SemVer(version,loose);range=new Range(range,loose);var gtfn,ltefn,ltfn,comp,ecomp;switch(hilo){case'>':gtfn=gt;ltefn=lte;ltfn=lt;comp='>';ecomp='>=';break;case'<':gtfn=lt;ltefn=gte;ltfn=gt;comp='<';ecomp='<=';break;default:throw new TypeError('Must provide a hilo val of "<" or ">"');}// If it satisifes the range it is not outside -if(satisfies(version,range,loose)){return false;}// From now on, variable terms are as if we're in "gtr" mode. -// but note that everything is flipped for the "ltr" function. -for(var i=0;i=0.0.0');}high=high||comparator;low=low||comparator;if(gtfn(comparator.semver,high.semver,loose)){high=comparator;}else if(ltfn(comparator.semver,low.semver,loose)){low=comparator;}});// If the edge version comparator has a operator then our version -// isn't outside it -if(high.operator===comp||high.operator===ecomp){return false;}// If the lowest version comparator has an operator and our version -// is less than it then it isn't higher than the range -if((!low.operator||low.operator===comp)&<efn(version,low.semver)){return false;}else if(low.operator===ecomp&<fn(version,low.semver)){return false;}}return true;}exports.prerelease=prerelease;function prerelease(version,loose){var parsed=parse(version,loose);return parsed&&parsed.prerelease.length?parsed.prerelease:null;}exports.intersects=intersects;function intersects(r1,r2,loose){r1=new Range(r1,loose);r2=new Range(r2,loose);return r1.intersects(r2);}});var require$$1$15=_package$1&&_package||_package$1;var semver=semver$1;var currentVersion=require$$1$15.version;// Based on: -// https://github.com/github/linguist/blob/master/lib/linguist/languages.yml -var supportTable$1=[{name:"JavaScript",since:"0.0.0",parsers:["babylon","flow"],group:"JavaScript",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["js","node"],extensions:[".js","._js",".bones",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"],linguistLanguageId:183,vscodeLanguageIds:["javascript"]},{name:"JSX",since:"0.0.0",parsers:["babylon","flow"],group:"JavaScript",extensions:[".jsx"],tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",liguistLanguageId:178,vscodeLanguageIds:["javascriptreact"]},{name:"TypeScript",since:"1.4.0",parsers:["typescript"],group:"JavaScript",aliases:["ts"],extensions:[".ts",".tsx"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",liguistLanguageId:378,vscodeLanguageIds:["typescript","typescriptreact"]},{name:"CSS",since:"1.4.0",parsers:["css"],group:"CSS",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",extensions:[".css"],liguistLanguageId:50,vscodeLanguageIds:["css"]},{name:"Less",since:"1.4.0",parsers:["less"],group:"CSS",extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",liguistLanguageId:198,vscodeLanguageIds:["less"]},{name:"SCSS",since:"1.4.0",parsers:["scss"],group:"CSS",tmScope:"source.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],liguistLanguageId:329,vscodeLanguageIds:["scss"]},{name:"GraphQL",since:"1.5.0",parsers:["graphql"],extensions:[".graphql",".gql"],tmScope:"source.graphql",aceMode:"text",liguistLanguageId:139,vscodeLanguageIds:["graphql"]},{name:"JSON",since:"1.5.0",parsers:["json"],group:"JavaScript",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",extensions:[".json",".json5",".geojson",".JSON-tmLanguage",".topojson"],filenames:[".arcconfig",".jshintrc",".babelrc",".eslintrc",".prettierrc","composer.lock","mcmod.info"],linguistLanguageId:174,vscodeLanguageIds:["json"]},{name:"Markdown",since:"1.8.0",parsers:["markdown"],aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:true,extensions:[".md",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ron",".workbook"],filenames:["README"],tmScope:"source.gfm",linguistLanguageId:222,vscodeLanguageIds:["markdown"]},{name:"HTML",since:undefined,// unreleased -parsers:["parse5"],group:"HTML",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",aliases:["xhtml"],extensions:[".html",".htm",".html.hl",".inc",".st",".xht",".xhtml"],linguistLanguageId:146,vscodeLanguageIds:["html"]}];function getSupportInfo$1(version){if(!version){version=currentVersion;}var usePostCssParser=semver.lt(version,"1.7.1");var languages=supportTable$1.filter(function(language){return language.since&&semver.gte(version,language.since);}).map(function(language){if(usePostCssParser&&language.group==="CSS"){return Object.assign({},language,{parsers:["postcss"]});}return language;});return{languages:languages};}var support$1={supportTable:supportTable$1,getSupportInfo:getSupportInfo$1};var path$1=require$$0$1;var validate=index$36.validate;var deprecatedConfig=deprecated_1$1;var supportTable=support$1.supportTable;var defaults={cursorOffset:-1,rangeStart:0,rangeEnd:Infinity,useTabs:false,tabWidth:2,printWidth:80,singleQuote:false,trailingComma:"none",bracketSpacing:true,jsxBracketSameLine:false,parser:"babylon",insertPragma:false,requirePragma:false,semi:true,proseWrap:true};var exampleConfig=Object.assign({},defaults,{filepath:"path/to/Filename",printWidth:80,originalText:"text"});// Copy options and fill in default values. -function normalize(options){var normalized=Object.assign({},options||{});var filepath=normalized.filepath;if(filepath&&(!normalized.parser||normalized.parser===defaults.parser)){var extension=path$1.extname(filepath);var filename=path$1.basename(filepath).toLowerCase();var language=supportTable.find(function(language){return typeof language.since==="string"&&(language.extensions.indexOf(extension)>-1||language.filenames&&language.filenames.find(function(name){return name.toLowerCase()===filename;}));});if(language){normalized.parser=language.parsers[0];}}if(normalized.parser==="json"){normalized.trailingComma="none";}/* istanbul ignore if */if(typeof normalized.trailingComma==="boolean"){// Support a deprecated boolean type for the trailing comma config -// for a few versions. This code can be removed later. -normalized.trailingComma="es5";console.warn("Warning: `trailingComma` without any argument is deprecated. "+'Specify "none", "es5", or "all".');}/* istanbul ignore if */if(normalized.parser==="postcss"){normalized.parser="css";console.warn('Warning: `parser` with value "postcss" is deprecated. '+'Use "css", "less" or "scss" instead.');}var parserBackup=normalized.parser;if(typeof normalized.parser==="function"){// Delete the function from the object to pass validation. -delete normalized.parser;}validate(normalized,{exampleConfig:exampleConfig,deprecatedConfig:deprecatedConfig});// Restore the option back to a function; -normalized.parser=parserBackup;// For backward compatibility. Deprecated in 0.0.10 -/* istanbul ignore if */if("useFlowParser"in normalized){normalized.parser=normalized.useFlowParser?"flow":"babylon";delete normalized.useFlowParser;}Object.keys(defaults).forEach(function(k){if(normalized[k]==null){normalized[k]=defaults[k];}});return normalized;}var options={normalize:normalize,defaults:defaults};function flattenDoc(doc){if(doc.type==="concat"){var res=[];for(var _i35=0;_i35=0&&obj.splice instanceof Function;};var util$12=util;var isArrayish=index$64;var errorEx$1=function errorEx(name,properties){if(!name||name.constructor!==String){properties=name||{};name=Error.name;}var errorExError=function ErrorEXError(message){if(!this){return new ErrorEXError(message);}message=message instanceof Error?message.message:message||this.message;Error.call(this,message);Error.captureStackTrace(this,errorExError);this.name=name;Object.defineProperty(this,'message',{configurable:true,enumerable:false,get:function get(){var newMessage=message.split(/\r?\n/g);for(var key in properties){if(!properties.hasOwnProperty(key)){continue;}var modifier=properties[key];if('message'in modifier){newMessage=modifier.message(this[key],newMessage)||newMessage;if(!isArrayish(newMessage)){newMessage=[newMessage];}}}return newMessage.join('\n');},set:function set(v){message=v;}});var stackDescriptor=Object.getOwnPropertyDescriptor(this,'stack');var stackGetter=stackDescriptor.get;var stackValue=stackDescriptor.value;delete stackDescriptor.value;delete stackDescriptor.writable;stackDescriptor.get=function(){var stack=stackGetter?stackGetter.call(this).split(/\r?\n+/g):stackValue.split(/\r?\n+/g);// starting in Node 7, the stack builder caches the message. -// just replace it. -stack[0]=this.name+': '+this.message;var lineCount=1;for(var key in properties){if(!properties.hasOwnProperty(key)){continue;}var modifier=properties[key];if('line'in modifier){var line=modifier.line(this[key]);if(line){stack.splice(lineCount++,0,' '+line);}}if('stack'in modifier){modifier.stack(this[key],stack);}}return stack.join('\n');};Object.defineProperty(this,'stack',stackDescriptor);};if(Object.setPrototypeOf){Object.setPrototypeOf(errorExError.prototype,Error.prototype);Object.setPrototypeOf(errorExError,Error);}else{util$12.inherits(errorExError,Error);}return errorExError;};errorEx$1.append=function(str,def){return{message:function message(v,_message){v=v||def;if(v){_message[0]+=' '+str.replace('%s',v.toString());}return _message;}};};errorEx$1.line=function(str,def){return{line:function line(v){v=v||def;if(v){return str.replace('%s',v.toString());}return null;}};};var index$62=errorEx$1;var unicode=createCommonjsModule(function(module){// This is autogenerated with esprima tools, see: -// https://github.com/ariya/esprima/blob/master/esprima.js -// -// PS: oh God, I hate Unicode -// ECMAScript 5.1/Unicode v6.3.0 NonAsciiIdentifierStart: -var Uni=module.exports;module.exports.isWhiteSpace=function isWhiteSpace(x){// section 7.2, table 2 -return x===' '||x==='\xA0'||x==='\uFEFF'// <-- this is not a Unicode WS, only a JS one -||x>='\t'&&x<='\r'// 9 A B C D -// + whitespace characters from unicode, category Zs -||x==='\u1680'||x==='\u180E'||x>='\u2000'&&x<='\u200A'// 0 1 2 3 4 5 6 7 8 9 A -||x==='\u2028'||x==='\u2029'||x==='\u202F'||x==='\u205F'||x==='\u3000';};module.exports.isWhiteSpaceJSON=function isWhiteSpaceJSON(x){return x===' '||x==='\t'||x==='\n'||x==='\r';};module.exports.isLineTerminator=function isLineTerminator(x){// ok, here is the part when JSON is wrong -// section 7.3, table 3 -return x==='\n'||x==='\r'||x==='\u2028'||x==='\u2029';};module.exports.isLineTerminatorJSON=function isLineTerminatorJSON(x){return x==='\n'||x==='\r';};module.exports.isIdentifierStart=function isIdentifierStart(x){return x==='$'||x==='_'||x>='A'&&x<='Z'||x>='a'&&x<='z'||x>='\x80'&&Uni.NonAsciiIdentifierStart.test(x);};module.exports.isIdentifierPart=function isIdentifierPart(x){return x==='$'||x==='_'||x>='A'&&x<='Z'||x>='a'&&x<='z'||x>='0'&&x<='9'// <-- addition to Start -||x>='\x80'&&Uni.NonAsciiIdentifierPart.test(x);};module.exports.NonAsciiIdentifierStart=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/;// ECMAScript 5.1/Unicode v6.3.0 NonAsciiIdentifierPart: -module.exports.NonAsciiIdentifierPart=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0\u08A2-\u08AC\u08E4-\u08FE\u0900-\u0963\u0966-\u096F\u0971-\u0977\u0979-\u097F\u0981-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191C\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1D00-\u1DE6\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA697\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7B\uAA80-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/;});var parse_1=createCommonjsModule(function(module){/* - * Author: Alex Kocharin - * GIT: https://github.com/rlidwka/jju - * License: WTFPL, grab your copy here: http://www.wtfpl.net/txt/copying/ - */// RTFM: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf -var Uni=unicode;function isHexDigit(x){return x>='0'&&x<='9'||x>='A'&&x<='F'||x>='a'&&x<='f';}function isOctDigit(x){return x>='0'&&x<='7';}function isDecDigit(x){return x>='0'&&x<='9';}var unescapeMap={'\'':'\'','"':'"','\\':'\\','b':'\b','f':'\f','n':'\n','r':'\r','t':'\t','v':'\v','/':'/'};function formatError(input,msg,position,lineno,column,json5){var result=msg+' at '+(lineno+1)+':'+(column+1),tmppos=position-column-1,srcline='',underline='';var isLineTerminator=json5?Uni.isLineTerminator:Uni.isLineTerminatorJSON;// output no more than 70 characters before the wrong ones -if(tmppos=tmppos){// ending line error, so show it after the last char -underline+='^';}break;}srcline+=chr;if(position===tmppos){underline+='^';}else if(position>tmppos){underline+=input[tmppos]==='\t'?'\t':' ';}// output no more than 78 characters on the string -if(srcline.length>78)break;}return result+'\n'+srcline+'\n'+underline;}function parse(input,options){// parse as a standard JSON mode -var json5=!(options.mode==='json'||options.legacy);var isLineTerminator=json5?Uni.isLineTerminator:Uni.isLineTerminatorJSON;var isWhiteSpace=json5?Uni.isWhiteSpace:Uni.isWhiteSpaceJSON;var length=input.length,lineno=0,linestart=0,position=0,stack=[];var tokenStart=function tokenStart(){};var tokenEnd=function tokenEnd(v){return v;};/* tokenize({ - raw: '...', - type: 'whitespace'|'comment'|'key'|'literal'|'separator'|'newline', - value: 'number'|'string'|'whatever', - path: [...], - }) - */if(options._tokenize){(function(){var start=null;tokenStart=function tokenStart(){if(start!==null)throw Error('internal error, token overlap');start=position;};tokenEnd=function tokenEnd(v,type){if(start!=position){var hash={raw:input.substr(start,position-start),type:type,stack:stack.slice(0)};if(v!==undefined)hash.value=v;options._tokenize.call(null,hash);}start=null;return v;};})();}function fail(msg){var column=position-linestart;if(!msg){if(position -if(chr==='\r'&&input[position]==='\n')position++;linestart=position;lineno++;}function parseGeneric(){var result;while(position=length||keyword[i]!=input[position]){position=_pos-1;fail();}position++;}}function parseObject(){var result=options.null_prototype?Object.create(null):{},empty_object={},is_non_empty=false;while(position='1'&&chr<='9'){// ex: -5982475.249875e+29384 -// ^^^ skipping these -while(position=length)fail();chr=input[position++];if(unescapeMap[chr]&&(json5||chr!='v'&&chr!="'")){result+=unescapeMap[chr];}else if(json5&&isLineTerminator(chr)){// line continuation -newline(chr);}else if(chr==='u'||chr==='x'&&json5){// unicode/character escape sequence -var off=chr==='u'?4:2;// validation for \uXXXX -for(var i=0;i=length)fail();if(!isHexDigit(input[position]))fail('Bad escape sequence');position++;}result+=String.fromCharCode(parseInt(input.substr(position-off,off),16));}else if(json5&&isOctDigit(chr)){if(chr<'4'&&isOctDigit(input[position])&&isOctDigit(input[position+1])){// three-digit octal -var digits=3;}else if(isOctDigit(input[position])){// two-digit octal -var digits=2;}else{var digits=1;}position+=digits-1;result+=String.fromCharCode(parseInt(input.substr(position-digits,digits),8));/*if (!isOctDigit(input[position])) { - // \0 is allowed still - result += '\0' - } else { - fail('Octal literals are not supported') - }*/}else if(json5){// \X -> x -result+=chr;}else{position--;fail();}}else if(isLineTerminator(chr)){fail();}else{if(!json5&&chr.charCodeAt(0)<32){position--;fail('Unexpected control character');}// SourceCharacter but not one of " or \ or LineTerminator -result+=chr;}}fail();}skipWhiteSpace();var return_value=parseGeneric();if(return_value!==undefined||position=length){if(typeof options.reviver==='function'){return_value=options.reviver.call(null,'',return_value);}return return_value;}else{fail();}}else{if(position){fail('No data, only a whitespace');}else{fail('No data, empty input');}}}/* - * parse(text, options) - * or - * parse(text, reviver) - * - * where: - * text - string - * options - object - * reviver - function - */module.exports.parse=function parseJSON(input,options){// support legacy functions -if(typeof options==='function'){options={reviver:options};}if(input===undefined){// parse(stringify(x)) should be equal x -// with JSON functions it is not 'cause of undefined -// so we're fixing it -return undefined;}// JSON.parse compat -if(typeof input!=='string')input=String(input);if(options==null)options={};if(options.reserved_keys==null)options.reserved_keys='ignore';if(options.reserved_keys==='throw'||options.reserved_keys==='ignore'){if(options.null_prototype==null){options.null_prototype=true;}}try{return parse(input,options);}catch(err){// jju is a recursive parser, so JSON.parse("{{{{{{{") could blow up the stack -// -// this catch is used to skip all those internal calls -if(err instanceof SyntaxError&&err.row!=null&&err.column!=null){var old_err=err;err=SyntaxError(old_err.message);err.column=old_err.column;err.row=old_err.row;}throw err;}};module.exports.tokenize=function tokenizeJSON(input,options){if(options==null)options={};options._tokenize=function(smth){if(options._addstack)smth.stack.unshift.apply(smth.stack,options._addstack);tokens.push(smth);};var tokens=[];tokens.data=module.exports.parse(input,options);return tokens;};});var errorEx=index$62;var fallback=parse_1;function appendPosition(message){var posRe=/ at (\d+:\d+) in/;var numbers=posRe.exec(message);return message.replace(posRe,' in')+':'+numbers[1];}var JSONError=errorEx('JSONError',{fileName:errorEx.append('in %s'),appendPosition:{message:function message(shouldAppend,original){if(shouldAppend){original[0]=appendPosition(original[0]);}return original;}}});var index$60=function index$60(input,reviver,filename){if(typeof reviver==='string'){filename=reviver;reviver=null;}try{try{return JSON.parse(input,reviver);}catch(err){fallback.parse(input,{mode:'json',reviver:reviver});throw err;}}catch(err){var jsonErr=new JSONError(err);if(filename){jsonErr.fileName=filename;jsonErr.appendPosition=true;}throw jsonErr;}};var parseJson$1=index$60;var parseJson_1=function parseJsonWrapper(json,filepath){try{return parseJson$1(json);}catch(err){err.message='JSON Error in '+filepath+':\n'+err.message;throw err;}};var path$4=require$$0$1;var readFile=readFile_1;var parseJson=parseJson_1;var loadPackageProp$1=function loadPackageProp(packageDir,options){var packagePath=path$4.join(packageDir,'package.json');function parseContent(content){if(!content)return null;var parsedContent=parseJson(content,packagePath);var packagePropValue=parsedContent[options.packageProp];if(!packagePropValue)return null;return{config:packagePropValue,filepath:packagePath};}return!options.sync?readFile(packagePath).then(parseContent):parseContent(readFile.sync(packagePath));};function isNothing(subject){return typeof subject==='undefined'||subject===null;}function isObject(subject){return(typeof subject==='undefined'?'undefined':_typeof(subject))==='object'&&subject!==null;}function toArray(sequence){if(Array.isArray(sequence))return sequence;else if(isNothing(sequence))return[];return[sequence];}function extend(target,source){var index,length,key,sourceKeys;if(source){sourceKeys=Object.keys(source);for(index=0,length=sourceKeys.length;index0&&'\0\r\n\x85\u2028\u2029'.indexOf(this.buffer.charAt(start-1))===-1){start-=1;if(this.position-start>maxLength/2-1){head=' ... ';start+=5;break;}}tail='';end=this.position;while(endmaxLength/2-1){tail=' ... ';end-=5;break;}}snippet=this.buffer.slice(start,end);return common$3.repeat(' ',indent)+head+snippet+tail+'\n'+common$3.repeat(' ',indent+this.position-start+head.length)+'^';};Mark$1.prototype.toString=function toString(compact){var snippet,where='';if(this.name){where+='in "'+this.name+'" ';}where+='at line '+(this.line+1)+', column '+(this.column+1);if(!compact){snippet=this.getSnippet();if(snippet){where+=':\n'+snippet;}}return where;};var mark=Mark$1;var YAMLException$4=exception;var TYPE_CONSTRUCTOR_OPTIONS=['kind','resolve','construct','instanceOf','predicate','represent','defaultStyle','styleAliases'];var YAML_NODE_KINDS=['scalar','sequence','mapping'];function compileStyleAliases(map){var result={};if(map!==null){Object.keys(map).forEach(function(style){map[style].forEach(function(alias){result[String(alias)]=style;});});}return result;}function Type$2(tag,options){options=options||{};Object.keys(options).forEach(function(name){if(TYPE_CONSTRUCTOR_OPTIONS.indexOf(name)===-1){throw new YAMLException$4('Unknown option "'+name+'" is met in definition of "'+tag+'" YAML type.');}});// TODO: Add tag format check. -this.tag=tag;this.kind=options['kind']||null;this.resolve=options['resolve']||function(){return true;};this.construct=options['construct']||function(data){return data;};this.instanceOf=options['instanceOf']||null;this.predicate=options['predicate']||null;this.represent=options['represent']||null;this.defaultStyle=options['defaultStyle']||null;this.styleAliases=compileStyleAliases(options['styleAliases']||null);if(YAML_NODE_KINDS.indexOf(this.kind)===-1){throw new YAMLException$4('Unknown kind "'+this.kind+'" is specified for "'+tag+'" YAML type.');}}var type=Type$2;/*eslint-disable max-len*/var common$4=common$1;var YAMLException$3=exception;var Type$1=type;function compileList(schema,name,result){var exclude=[];schema.include.forEach(function(includedSchema){result=compileList(includedSchema,name,result);});schema[name].forEach(function(currentType){result.forEach(function(previousType,previousIndex){if(previousType.tag===currentType.tag&&previousType.kind===currentType.kind){exclude.push(previousIndex);}});result.push(currentType);});return result.filter(function(type$$1,index){return exclude.indexOf(index)===-1;});}function compileMap()/* lists... */{var result={scalar:{},sequence:{},mapping:{},fallback:{}},index,length;function collectType(type$$1){result[type$$1.kind][type$$1.tag]=result['fallback'][type$$1.tag]=type$$1;}for(index=0,length=arguments.length;index=0){value=value.slice(1);}if(value==='.inf'){return sign===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;}else if(value==='.nan'){return NaN;}else if(value.indexOf(':')>=0){value.split(':').forEach(function(v){digits.unshift(parseFloat(v,10));});value=0.0;base=1;digits.forEach(function(d){value+=d*base;base*=60;});return sign*value;}return sign*parseFloat(value,10);}var SCIENTIFIC_WITHOUT_DOT=/^[-+]?[0-9]+e/;function representYamlFloat(object,style){var res;if(isNaN(object)){switch(style){case'lowercase':return'.nan';case'uppercase':return'.NAN';case'camelcase':return'.NaN';}}else if(Number.POSITIVE_INFINITY===object){switch(style){case'lowercase':return'.inf';case'uppercase':return'.INF';case'camelcase':return'.Inf';}}else if(Number.NEGATIVE_INFINITY===object){switch(style){case'lowercase':return'-.inf';case'uppercase':return'-.INF';case'camelcase':return'-.Inf';}}else if(common$6.isNegativeZero(object)){return'-0.0';}res=object.toString(10);// JS stringifier can build scientific format without dots: 5e-100, -// while YAML requres dot: 5.e-100. Fix it with simple hack -return SCIENTIFIC_WITHOUT_DOT.test(res)?res.replace('e','.e'):res;}function isFloat(object){return Object.prototype.toString.call(object)==='[object Number]'&&(object%1!==0||common$6.isNegativeZero(object));}var float_1=new Type$9('tag:yaml.org,2002:float',{kind:'scalar',resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:'lowercase'});var Schema$4=schema;var json=new Schema$4({include:[failsafe],implicit:[_null,bool,int_1,float_1]});var Schema$3=schema;var core=new Schema$3({include:[json]});var Type$10=type;var YAML_DATE_REGEXP=new RegExp('^([0-9][0-9][0-9][0-9])'+// [1] year -'-([0-9][0-9])'+// [2] month -'-([0-9][0-9])$');// [3] day -var YAML_TIMESTAMP_REGEXP=new RegExp('^([0-9][0-9][0-9][0-9])'+// [1] year -'-([0-9][0-9]?)'+// [2] month -'-([0-9][0-9]?)'+// [3] day -'(?:[Tt]|[ \\t]+)'+// ... -'([0-9][0-9]?)'+// [4] hour -':([0-9][0-9])'+// [5] minute -':([0-9][0-9])'+// [6] second -'(?:\\.([0-9]*))?'+// [7] fraction -'(?:[ \\t]*(Z|([-+])([0-9][0-9]?)'+// [8] tz [9] tz_sign [10] tz_hour -'(?::([0-9][0-9]))?))?$');// [11] tz_minute -function resolveYamlTimestamp(data){if(data===null)return false;if(YAML_DATE_REGEXP.exec(data)!==null)return true;if(YAML_TIMESTAMP_REGEXP.exec(data)!==null)return true;return false;}function constructYamlTimestamp(data){var match,year,month,day,hour,minute,second,fraction=0,delta=null,tz_hour,tz_minute,date;match=YAML_DATE_REGEXP.exec(data);if(match===null)match=YAML_TIMESTAMP_REGEXP.exec(data);if(match===null)throw new Error('Date resolve error');// match: [1] year [2] month [3] day -year=+match[1];month=+match[2]-1;// JS month starts with 0 -day=+match[3];if(!match[4]){// no hour -return new Date(Date.UTC(year,month,day));}// match: [4] hour [5] minute [6] second [7] fraction -hour=+match[4];minute=+match[5];second=+match[6];if(match[7]){fraction=match[7].slice(0,3);while(fraction.length<3){// milli-seconds -fraction+='0';}fraction=+fraction;}// match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute -if(match[9]){tz_hour=+match[10];tz_minute=+(match[11]||0);delta=(tz_hour*60+tz_minute)*60000;// delta in mili-seconds -if(match[9]==='-')delta=-delta;}date=new Date(Date.UTC(year,month,day,hour,minute,second,fraction));if(delta)date.setTime(date.getTime()-delta);return date;}function representYamlTimestamp(object/*, style*/){return object.toISOString();}var timestamp=new Type$10('tag:yaml.org,2002:timestamp',{kind:'scalar',resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp});var Type$11=type;function resolveYamlMerge(data){return data==='<<'||data===null;}var merge=new Type$11('tag:yaml.org,2002:merge',{kind:'scalar',resolve:resolveYamlMerge});/*eslint-disable no-bitwise*/var NodeBuffer;try{// A trick for browserified version, to not include `Buffer` shim -var _require=commonjsRequire;NodeBuffer=_require('buffer').Buffer;}catch(__){}var Type$12=type;// [ 64, 65, 66 ] -> [ padding, CR, LF ] -var BASE64_MAP='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r';function resolveYamlBinary(data){if(data===null)return false;var code,idx,bitlen=0,max=data.length,map=BASE64_MAP;// Convert one by one. -for(idx=0;idx64)continue;// Fail on illegal characters -if(code<0)return false;bitlen+=6;}// If there are any bits left, source was corrupted -return bitlen%8===0;}function constructYamlBinary(data){var idx,tailbits,input=data.replace(/[\r\n=]/g,''),// remove CR/LF & padding to simplify scan -max=input.length,map=BASE64_MAP,bits=0,result=[];// Collect by 6*4 bits (3 bytes) -for(idx=0;idx>16&0xFF);result.push(bits>>8&0xFF);result.push(bits&0xFF);}bits=bits<<6|map.indexOf(input.charAt(idx));}// Dump tail -tailbits=max%4*6;if(tailbits===0){result.push(bits>>16&0xFF);result.push(bits>>8&0xFF);result.push(bits&0xFF);}else if(tailbits===18){result.push(bits>>10&0xFF);result.push(bits>>2&0xFF);}else if(tailbits===12){result.push(bits>>4&0xFF);}// Wrap into Buffer for NodeJS and leave Array for browser -if(NodeBuffer){// Support node 6.+ Buffer API when available -return NodeBuffer.from?NodeBuffer.from(result):new NodeBuffer(result);}return result;}function representYamlBinary(object/*, style*/){var result='',bits=0,idx,tail,max=object.length,map=BASE64_MAP;// Convert every three bytes to 4 ASCII characters. -for(idx=0;idx>18&0x3F];result+=map[bits>>12&0x3F];result+=map[bits>>6&0x3F];result+=map[bits&0x3F];}bits=(bits<<8)+object[idx];}// Dump tail -tail=max%3;if(tail===0){result+=map[bits>>18&0x3F];result+=map[bits>>12&0x3F];result+=map[bits>>6&0x3F];result+=map[bits&0x3F];}else if(tail===2){result+=map[bits>>10&0x3F];result+=map[bits>>4&0x3F];result+=map[bits<<2&0x3F];result+=map[64];}else if(tail===1){result+=map[bits>>2&0x3F];result+=map[bits<<4&0x3F];result+=map[64];result+=map[64];}return result;}function isBinary(object){return NodeBuffer&&NodeBuffer.isBuffer(object);}var binary=new Type$12('tag:yaml.org,2002:binary',{kind:'scalar',resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary});var Type$13=type;var _hasOwnProperty$1=Object.prototype.hasOwnProperty;var _toString=Object.prototype.toString;function resolveYamlOmap(data){if(data===null)return true;var objectKeys=[],index,length,pair,pairKey,pairHasKey,object=data;for(index=0,length=object.length;index3)return false;// if expression starts with /, is should be properly terminated -if(regexp[regexp.length-modifiers.length-1]!=='/')return false;}return true;}function constructJavascriptRegExp(data){var regexp=data,tail=/\/([gim]*)$/.exec(data),modifiers='';// `/foo/gim` - tail can be maximum 4 chars -if(regexp[0]==='/'){if(tail)modifiers=tail[1];regexp=regexp.slice(1,regexp.length-modifiers.length-1);}return new RegExp(regexp,modifiers);}function representJavascriptRegExp(object/*, style*/){var result='/'+object.source+'/';if(object.global)result+='g';if(object.multiline)result+='m';if(object.ignoreCase)result+='i';return result;}function isRegExp(object){return Object.prototype.toString.call(object)==='[object RegExp]';}var regexp=new Type$17('tag:yaml.org,2002:js/regexp',{kind:'scalar',resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp});var esprima;// Browserified version does not have esprima -// -// 1. For node.js just require module as deps -// 2. For browser try to require mudule via external AMD system. -// If not found - try to fallback to window.esprima. If not -// found too - then fail to parse. -// -try{// workaround to exclude package from browserify list. -var _require$1=commonjsRequire;esprima=_require$1('esprima');}catch(_){/*global window */if(typeof window!=='undefined')esprima=window.esprima;}var Type$18=type;function resolveJavascriptFunction(data){if(data===null)return false;try{var source='('+data+')',ast=esprima.parse(source,{range:true});if(ast.type!=='Program'||ast.body.length!==1||ast.body[0].type!=='ExpressionStatement'||ast.body[0].expression.type!=='FunctionExpression'){return false;}return true;}catch(err){return false;}}function constructJavascriptFunction(data){/*jslint evil:true*/var source='('+data+')',ast=esprima.parse(source,{range:true}),params=[],body;if(ast.type!=='Program'||ast.body.length!==1||ast.body[0].type!=='ExpressionStatement'||ast.body[0].expression.type!=='FunctionExpression'){throw new Error('Failed to resolve function');}ast.body[0].expression.params.forEach(function(param){params.push(param.name);});body=ast.body[0].expression.body.range;// Esprima's ranges include the first '{' and the last '}' characters on -// function expressions. So cut them out. -/*eslint-disable no-new-func*/return new Function(params,source.slice(body[0]+1,body[1]-1));}function representJavascriptFunction(object/*, style*/){return object.toString();}function isFunction(object){return Object.prototype.toString.call(object)==='[object Function]';}var _function=new Type$18('tag:yaml.org,2002:js/function',{kind:'scalar',resolve:resolveJavascriptFunction,construct:constructJavascriptFunction,predicate:isFunction,represent:representJavascriptFunction});var Schema$6=schema;var default_full=Schema$6.DEFAULT=new Schema$6({include:[default_safe],explicit:[_undefined,regexp,_function]});/*eslint-disable max-len,no-use-before-define*/var common=common$1;var YAMLException$1=exception;var Mark=mark;var DEFAULT_SAFE_SCHEMA$1=default_safe;var DEFAULT_FULL_SCHEMA$1=default_full;var _hasOwnProperty=Object.prototype.hasOwnProperty;var CONTEXT_FLOW_IN=1;var CONTEXT_FLOW_OUT=2;var CONTEXT_BLOCK_IN=3;var CONTEXT_BLOCK_OUT=4;var CHOMPING_CLIP=1;var CHOMPING_STRIP=2;var CHOMPING_KEEP=3;var PATTERN_NON_PRINTABLE=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var PATTERN_NON_ASCII_LINE_BREAKS=/[\x85\u2028\u2029]/;var PATTERN_FLOW_INDICATORS=/[,\[\]\{\}]/;var PATTERN_TAG_HANDLE=/^(?:!|!!|![a-z\-]+!)$/i;var PATTERN_TAG_URI=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function is_EOL(c){return c===0x0A/* LF */||c===0x0D/* CR */;}function is_WHITE_SPACE(c){return c===0x09/* Tab */||c===0x20/* Space */;}function is_WS_OR_EOL(c){return c===0x09/* Tab */||c===0x20/* Space */||c===0x0A/* LF */||c===0x0D/* CR */;}function is_FLOW_INDICATOR(c){return c===0x2C/* , */||c===0x5B/* [ */||c===0x5D/* ] */||c===0x7B/* { */||c===0x7D/* } */;}function fromHexCode(c){var lc;if(0x30/* 0 */<=c&&c<=0x39/* 9 */){return c-0x30;}/*eslint-disable no-bitwise*/lc=c|0x20;if(0x61/* a */<=lc&&lc<=0x66/* f */){return lc-0x61+10;}return-1;}function escapedHexLen(c){if(c===0x78/* x */){return 2;}if(c===0x75/* u */){return 4;}if(c===0x55/* U */){return 8;}return 0;}function fromDecimalCode(c){if(0x30/* 0 */<=c&&c<=0x39/* 9 */){return c-0x30;}return-1;}function simpleEscapeSequence(c){/* eslint-disable indent */return c===0x30/* 0 */?'\x00':c===0x61/* a */?'\x07':c===0x62/* b */?'\x08':c===0x74/* t */?'\x09':c===0x09/* Tab */?'\x09':c===0x6E/* n */?'\x0A':c===0x76/* v */?'\x0B':c===0x66/* f */?'\x0C':c===0x72/* r */?'\x0D':c===0x65/* e */?'\x1B':c===0x20/* Space */?' ':c===0x22/* " */?'\x22':c===0x2F/* / */?'/':c===0x5C/* \ */?'\x5C':c===0x4E/* N */?'\x85':c===0x5F/* _ */?'\xA0':c===0x4C/* L */?'\u2028':c===0x50/* P */?'\u2029':'';}function charFromCodepoint(c){if(c<=0xFFFF){return String.fromCharCode(c);}// Encode UTF-16 surrogate pair -// https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF -return String.fromCharCode((c-0x010000>>10)+0xD800,(c-0x010000&0x03FF)+0xDC00);}var simpleEscapeCheck=new Array(256);// integer, for fast access -var simpleEscapeMap=new Array(256);for(var i=0;i<256;i++){simpleEscapeCheck[i]=simpleEscapeSequence(i)?1:0;simpleEscapeMap[i]=simpleEscapeSequence(i);}function State(input,options){this.input=input;this.filename=options['filename']||null;this.schema=options['schema']||DEFAULT_FULL_SCHEMA$1;this.onWarning=options['onWarning']||null;this.legacy=options['legacy']||false;this.json=options['json']||false;this.listener=options['listener']||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=input.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.documents=[];/* - this.version; - this.checkLineBreaks; - this.tagMap; - this.anchorMap; - this.tag; - this.anchor; - this.kind; - this.result;*/}function generateError(state,message){return new YAMLException$1(message,new Mark(state.filename,state.input,state.position,state.line,state.position-state.lineStart));}function throwError(state,message){throw generateError(state,message);}function throwWarning(state,message){if(state.onWarning){state.onWarning.call(null,generateError(state,message));}}var directiveHandlers={YAML:function handleYamlDirective(state,name,args){var match,major,minor;if(state.version!==null){throwError(state,'duplication of %YAML directive');}if(args.length!==1){throwError(state,'YAML directive accepts exactly one argument');}match=/^([0-9]+)\.([0-9]+)$/.exec(args[0]);if(match===null){throwError(state,'ill-formed argument of the YAML directive');}major=parseInt(match[1],10);minor=parseInt(match[2],10);if(major!==1){throwError(state,'unacceptable YAML version of the document');}state.version=args[0];state.checkLineBreaks=minor<2;if(minor!==1&&minor!==2){throwWarning(state,'unsupported YAML version of the document');}},TAG:function handleTagDirective(state,name,args){var handle,prefix;if(args.length!==2){throwError(state,'TAG directive accepts exactly two arguments');}handle=args[0];prefix=args[1];if(!PATTERN_TAG_HANDLE.test(handle)){throwError(state,'ill-formed tag handle (first argument) of the TAG directive');}if(_hasOwnProperty.call(state.tagMap,handle)){throwError(state,'there is a previously declared suffix for "'+handle+'" tag handle');}if(!PATTERN_TAG_URI.test(prefix)){throwError(state,'ill-formed tag prefix (second argument) of the TAG directive');}state.tagMap[handle]=prefix;}};function captureSegment(state,start,end,checkJson){var _position,_length,_character,_result;if(start1){state.result+=common.repeat('\n',count-1);}}function readPlainScalar(state,nodeIndent,withinFlowCollection){var preceding,following,captureStart,captureEnd,hasPendingContent,_line,_lineStart,_lineIndent,_kind=state.kind,_result=state.result,ch;ch=state.input.charCodeAt(state.position);if(is_WS_OR_EOL(ch)||is_FLOW_INDICATOR(ch)||ch===0x23/* # */||ch===0x26/* & */||ch===0x2A/* * */||ch===0x21/* ! */||ch===0x7C/* | */||ch===0x3E/* > */||ch===0x27/* ' */||ch===0x22/* " */||ch===0x25/* % */||ch===0x40/* @ */||ch===0x60/* ` */){return false;}if(ch===0x3F/* ? */||ch===0x2D/* - */){following=state.input.charCodeAt(state.position+1);if(is_WS_OR_EOL(following)||withinFlowCollection&&is_FLOW_INDICATOR(following)){return false;}}state.kind='scalar';state.result='';captureStart=captureEnd=state.position;hasPendingContent=false;while(ch!==0){if(ch===0x3A/* : */){following=state.input.charCodeAt(state.position+1);if(is_WS_OR_EOL(following)||withinFlowCollection&&is_FLOW_INDICATOR(following)){break;}}else if(ch===0x23/* # */){preceding=state.input.charCodeAt(state.position-1);if(is_WS_OR_EOL(preceding)){break;}}else if(state.position===state.lineStart&&testDocumentSeparator(state)||withinFlowCollection&&is_FLOW_INDICATOR(ch)){break;}else if(is_EOL(ch)){_line=state.line;_lineStart=state.lineStart;_lineIndent=state.lineIndent;skipSeparationSpace(state,false,-1);if(state.lineIndent>=nodeIndent){hasPendingContent=true;ch=state.input.charCodeAt(state.position);continue;}else{state.position=captureEnd;state.line=_line;state.lineStart=_lineStart;state.lineIndent=_lineIndent;break;}}if(hasPendingContent){captureSegment(state,captureStart,captureEnd,false);writeFoldedLines(state,state.line-_line);captureStart=captureEnd=state.position;hasPendingContent=false;}if(!is_WHITE_SPACE(ch)){captureEnd=state.position+1;}ch=state.input.charCodeAt(++state.position);}captureSegment(state,captureStart,captureEnd,false);if(state.result){return true;}state.kind=_kind;state.result=_result;return false;}function readSingleQuotedScalar(state,nodeIndent){var ch,captureStart,captureEnd;ch=state.input.charCodeAt(state.position);if(ch!==0x27/* ' */){return false;}state.kind='scalar';state.result='';state.position++;captureStart=captureEnd=state.position;while((ch=state.input.charCodeAt(state.position))!==0){if(ch===0x27/* ' */){captureSegment(state,captureStart,state.position,true);ch=state.input.charCodeAt(++state.position);if(ch===0x27/* ' */){captureStart=state.position;state.position++;captureEnd=state.position;}else{return true;}}else if(is_EOL(ch)){captureSegment(state,captureStart,captureEnd,true);writeFoldedLines(state,skipSeparationSpace(state,false,nodeIndent));captureStart=captureEnd=state.position;}else if(state.position===state.lineStart&&testDocumentSeparator(state)){throwError(state,'unexpected end of the document within a single quoted scalar');}else{state.position++;captureEnd=state.position;}}throwError(state,'unexpected end of the stream within a single quoted scalar');}function readDoubleQuotedScalar(state,nodeIndent){var captureStart,captureEnd,hexLength,hexResult,tmp,ch;ch=state.input.charCodeAt(state.position);if(ch!==0x22/* " */){return false;}state.kind='scalar';state.result='';state.position++;captureStart=captureEnd=state.position;while((ch=state.input.charCodeAt(state.position))!==0){if(ch===0x22/* " */){captureSegment(state,captureStart,state.position,true);state.position++;return true;}else if(ch===0x5C/* \ */){captureSegment(state,captureStart,state.position,true);ch=state.input.charCodeAt(++state.position);if(is_EOL(ch)){skipSeparationSpace(state,false,nodeIndent);// TODO: rework to inline fn with no type cast? -}else if(ch<256&&simpleEscapeCheck[ch]){state.result+=simpleEscapeMap[ch];state.position++;}else if((tmp=escapedHexLen(ch))>0){hexLength=tmp;hexResult=0;for(;hexLength>0;hexLength--){ch=state.input.charCodeAt(++state.position);if((tmp=fromHexCode(ch))>=0){hexResult=(hexResult<<4)+tmp;}else{throwError(state,'expected hexadecimal character');}}state.result+=charFromCodepoint(hexResult);state.position++;}else{throwError(state,'unknown escape sequence');}captureStart=captureEnd=state.position;}else if(is_EOL(ch)){captureSegment(state,captureStart,captureEnd,true);writeFoldedLines(state,skipSeparationSpace(state,false,nodeIndent));captureStart=captureEnd=state.position;}else if(state.position===state.lineStart&&testDocumentSeparator(state)){throwError(state,'unexpected end of the document within a double quoted scalar');}else{state.position++;captureEnd=state.position;}}throwError(state,'unexpected end of the stream within a double quoted scalar');}function readFlowCollection(state,nodeIndent){var readNext=true,_line,_tag=state.tag,_result,_anchor=state.anchor,following,terminator,isPair,isExplicitPair,isMapping,overridableKeys={},keyNode,keyTag,valueNode,ch;ch=state.input.charCodeAt(state.position);if(ch===0x5B/* [ */){terminator=0x5D;/* ] */isMapping=false;_result=[];}else if(ch===0x7B/* { */){terminator=0x7D;/* } */isMapping=true;_result={};}else{return false;}if(state.anchor!==null){state.anchorMap[state.anchor]=_result;}ch=state.input.charCodeAt(++state.position);while(ch!==0){skipSeparationSpace(state,true,nodeIndent);ch=state.input.charCodeAt(state.position);if(ch===terminator){state.position++;state.tag=_tag;state.anchor=_anchor;state.kind=isMapping?'mapping':'sequence';state.result=_result;return true;}else if(!readNext){throwError(state,'missed comma between flow collection entries');}keyTag=keyNode=valueNode=null;isPair=isExplicitPair=false;if(ch===0x3F/* ? */){following=state.input.charCodeAt(state.position+1);if(is_WS_OR_EOL(following)){isPair=isExplicitPair=true;state.position++;skipSeparationSpace(state,true,nodeIndent);}}_line=state.line;composeNode(state,nodeIndent,CONTEXT_FLOW_IN,false,true);keyTag=state.tag;keyNode=state.result;skipSeparationSpace(state,true,nodeIndent);ch=state.input.charCodeAt(state.position);if((isExplicitPair||state.line===_line)&&ch===0x3A/* : */){isPair=true;ch=state.input.charCodeAt(++state.position);skipSeparationSpace(state,true,nodeIndent);composeNode(state,nodeIndent,CONTEXT_FLOW_IN,false,true);valueNode=state.result;}if(isMapping){storeMappingPair(state,_result,overridableKeys,keyTag,keyNode,valueNode);}else if(isPair){_result.push(storeMappingPair(state,null,overridableKeys,keyTag,keyNode,valueNode));}else{_result.push(keyNode);}skipSeparationSpace(state,true,nodeIndent);ch=state.input.charCodeAt(state.position);if(ch===0x2C/* , */){readNext=true;ch=state.input.charCodeAt(++state.position);}else{readNext=false;}}throwError(state,'unexpected end of the stream within a flow collection');}function readBlockScalar(state,nodeIndent){var captureStart,folding,chomping=CHOMPING_CLIP,didReadContent=false,detectedIndent=false,textIndent=nodeIndent,emptyLines=0,atMoreIndented=false,tmp,ch;ch=state.input.charCodeAt(state.position);if(ch===0x7C/* | */){folding=false;}else if(ch===0x3E/* > */){folding=true;}else{return false;}state.kind='scalar';state.result='';while(ch!==0){ch=state.input.charCodeAt(++state.position);if(ch===0x2B/* + */||ch===0x2D/* - */){if(CHOMPING_CLIP===chomping){chomping=ch===0x2B/* + */?CHOMPING_KEEP:CHOMPING_STRIP;}else{throwError(state,'repeat of a chomping mode identifier');}}else if((tmp=fromDecimalCode(ch))>=0){if(tmp===0){throwError(state,'bad explicit indentation width of a block scalar; it cannot be less than one');}else if(!detectedIndent){textIndent=nodeIndent+tmp-1;detectedIndent=true;}else{throwError(state,'repeat of an indentation width identifier');}}else{break;}}if(is_WHITE_SPACE(ch)){do{ch=state.input.charCodeAt(++state.position);}while(is_WHITE_SPACE(ch));if(ch===0x23/* # */){do{ch=state.input.charCodeAt(++state.position);}while(!is_EOL(ch)&&ch!==0);}}while(ch!==0){readLineBreak(state);state.lineIndent=0;ch=state.input.charCodeAt(state.position);while((!detectedIndent||state.lineIndenttextIndent){textIndent=state.lineIndent;}if(is_EOL(ch)){emptyLines++;continue;}// End of the scalar. -if(state.lineIndentnodeIndent)&&ch!==0){throwError(state,'bad indentation of a sequence entry');}else if(state.lineIndentnodeIndent){if(composeNode(state,nodeIndent,CONTEXT_BLOCK_OUT,true,allowCompact)){if(atExplicitKey){keyNode=state.result;}else{valueNode=state.result;}}if(!atExplicitKey){storeMappingPair(state,_result,overridableKeys,keyTag,keyNode,valueNode,_line,_pos);keyTag=keyNode=valueNode=null;}skipSeparationSpace(state,true,-1);ch=state.input.charCodeAt(state.position);}if(state.lineIndent>nodeIndent&&ch!==0){throwError(state,'bad indentation of a mapping entry');}else if(state.lineIndent */);if(state.positionparent, 0: this=parent, -1: thisparentIndent){indentStatus=1;}else if(state.lineIndent===parentIndent){indentStatus=0;}else if(state.lineIndentparentIndent){indentStatus=1;}else if(state.lineIndent===parentIndent){indentStatus=0;}else if(state.lineIndent tag; it should be "'+type.kind+'", not "'+state.kind+'"');}if(!type.resolve(state.result)){// `state.result` updated in resolver if matched -throwError(state,'cannot resolve a node with !<'+state.tag+'> explicit tag');}else{state.result=type.construct(state.result);if(state.anchor!==null){state.anchorMap[state.anchor]=state.result;}}}else{throwError(state,'unknown tag !<'+state.tag+'>');}}if(state.listener!==null){state.listener('close',state);}return state.tag!==null||state.anchor!==null||hasContent;}function readDocument(state){var documentStart=state.position,_position,directiveName,directiveArgs,hasDirectives=false,ch;state.version=null;state.checkLineBreaks=state.legacy;state.tagMap={};state.anchorMap={};while((ch=state.input.charCodeAt(state.position))!==0){skipSeparationSpace(state,true,-1);ch=state.input.charCodeAt(state.position);if(state.lineIndent>0||ch!==0x25/* % */){break;}hasDirectives=true;ch=state.input.charCodeAt(++state.position);_position=state.position;while(ch!==0&&!is_WS_OR_EOL(ch)){ch=state.input.charCodeAt(++state.position);}directiveName=state.input.slice(_position,state.position);directiveArgs=[];if(directiveName.length<1){throwError(state,'directive name must not be less than one character in length');}while(ch!==0){while(is_WHITE_SPACE(ch)){ch=state.input.charCodeAt(++state.position);}if(ch===0x23/* # */){do{ch=state.input.charCodeAt(++state.position);}while(ch!==0&&!is_EOL(ch));break;}if(is_EOL(ch))break;_position=state.position;while(ch!==0&&!is_WS_OR_EOL(ch)){ch=state.input.charCodeAt(++state.position);}directiveArgs.push(state.input.slice(_position,state.position));}if(ch!==0)readLineBreak(state);if(_hasOwnProperty.call(directiveHandlers,directiveName)){directiveHandlers[directiveName](state,directiveName,directiveArgs);}else{throwWarning(state,'unknown document directive "'+directiveName+'"');}}skipSeparationSpace(state,true,-1);if(state.lineIndent===0&&state.input.charCodeAt(state.position)===0x2D/* - */&&state.input.charCodeAt(state.position+1)===0x2D/* - */&&state.input.charCodeAt(state.position+2)===0x2D/* - */){state.position+=3;skipSeparationSpace(state,true,-1);}else if(hasDirectives){throwError(state,'directives end mark is expected');}composeNode(state,state.lineIndent-1,CONTEXT_BLOCK_OUT,false,true);skipSeparationSpace(state,true,-1);if(state.checkLineBreaks&&PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart,state.position))){throwWarning(state,'non-ASCII line breaks are interpreted as content');}state.documents.push(state.result);if(state.position===state.lineStart&&testDocumentSeparator(state)){if(state.input.charCodeAt(state.position)===0x2E/* . */){state.position+=3;skipSeparationSpace(state,true,-1);}return;}if(state.position */var CHAR_QUESTION=0x3F;/* ? */var CHAR_COMMERCIAL_AT=0x40;/* @ */var CHAR_LEFT_SQUARE_BRACKET=0x5B;/* [ */var CHAR_RIGHT_SQUARE_BRACKET=0x5D;/* ] */var CHAR_GRAVE_ACCENT=0x60;/* ` */var CHAR_LEFT_CURLY_BRACKET=0x7B;/* { */var CHAR_VERTICAL_LINE=0x7C;/* | */var CHAR_RIGHT_CURLY_BRACKET=0x7D;/* } */var ESCAPE_SEQUENCES={};ESCAPE_SEQUENCES[0x00]='\\0';ESCAPE_SEQUENCES[0x07]='\\a';ESCAPE_SEQUENCES[0x08]='\\b';ESCAPE_SEQUENCES[0x09]='\\t';ESCAPE_SEQUENCES[0x0A]='\\n';ESCAPE_SEQUENCES[0x0B]='\\v';ESCAPE_SEQUENCES[0x0C]='\\f';ESCAPE_SEQUENCES[0x0D]='\\r';ESCAPE_SEQUENCES[0x1B]='\\e';ESCAPE_SEQUENCES[0x22]='\\"';ESCAPE_SEQUENCES[0x5C]='\\\\';ESCAPE_SEQUENCES[0x85]='\\N';ESCAPE_SEQUENCES[0xA0]='\\_';ESCAPE_SEQUENCES[0x2028]='\\L';ESCAPE_SEQUENCES[0x2029]='\\P';var DEPRECATED_BOOLEANS_SYNTAX=['y','Y','yes','Yes','YES','on','On','ON','n','N','no','No','NO','off','Off','OFF'];function compileStyleMap(schema,map){var result,keys,index,length,tag,style,type;if(map===null)return{};result={};keys=Object.keys(map);for(index=0,length=keys.length;index” | “'” | “"” -&&c!==CHAR_SHARP&&c!==CHAR_AMPERSAND&&c!==CHAR_ASTERISK&&c!==CHAR_EXCLAMATION&&c!==CHAR_VERTICAL_LINE&&c!==CHAR_GREATER_THAN&&c!==CHAR_SINGLE_QUOTE&&c!==CHAR_DOUBLE_QUOTE// | “%” | “@” | “`”) -&&c!==CHAR_PERCENT&&c!==CHAR_COMMERCIAL_AT&&c!==CHAR_GRAVE_ACCENT;}var STYLE_PLAIN=1;var STYLE_SINGLE=2;var STYLE_LITERAL=3;var STYLE_FOLDED=4;var STYLE_DOUBLE=5;// Determines which scalar styles are possible and returns the preferred style. -// lineWidth = -1 => no limit. -// Pre-conditions: str.length > 0. -// Post-conditions: -// STYLE_PLAIN or STYLE_SINGLE => no \n are in the string. -// STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1). -// STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1). -function chooseScalarStyle(string,singleLineOnly,indentPerLevel,lineWidth,testAmbiguousType){var i;var char;var hasLineBreak=false;var hasFoldableLine=false;// only checked if shouldTrackWidth -var shouldTrackWidth=lineWidth!==-1;var previousLineBreak=-1;// count the first line correctly -var plain=isPlainSafeFirst(string.charCodeAt(0))&&!isWhitespace(string.charCodeAt(string.length-1));if(singleLineOnly){// Case: no block styles. -// Check for disallowed characters to rule out plain and single. -for(i=0;ilineWidth&&string[previousLineBreak+1]!==' ';previousLineBreak=i;}}else if(!isPrintable(char)){return STYLE_DOUBLE;}plain=plain&&isPlainSafe(char);}// in case the end is missing a \n -hasFoldableLine=hasFoldableLine||shouldTrackWidth&&i-previousLineBreak-1>lineWidth&&string[previousLineBreak+1]!==' ';}// Although every style can represent \n without escaping, prefer block styles -// for multiline, since they're more readable and they don't add empty lines. -// Also prefer folding a super-long line. -if(!hasLineBreak&&!hasFoldableLine){// Strings interpretable as another type have to be quoted; -// e.g. the string 'true' vs. the boolean true. -return plain&&!testAmbiguousType(string)?STYLE_PLAIN:STYLE_SINGLE;}// Edge case: block indentation indicator can only have one digit. -if(string[0]===' '&&indentPerLevel>9){return STYLE_DOUBLE;}// At this point we know block styles are valid. -// Prefer literal style unless we want to fold. -return hasFoldableLine?STYLE_FOLDED:STYLE_LITERAL;}// Note: line breaking/folding is implemented for only the folded style. -// NB. We drop the last trailing newline (if any) of a returned block scalar -// since the dumper adds its own newline. This always works: -// • No ending newline => unaffected; already using strip "-" chomping. -// • Ending newline => removed then restored. -// Importantly, this keeps the "+" chomp indicator from gaining an extra line. -function writeScalar(state,string,level,iskey){state.dump=function(){if(string.length===0){return"''";}if(!state.noCompatMode&&DEPRECATED_BOOLEANS_SYNTAX.indexOf(string)!==-1){return"'"+string+"'";}var indent=state.indent*Math.max(1,level);// no 0-indent scalars -// As indentation gets deeper, let the width decrease monotonically -// to the lower bound min(state.lineWidth, 40). -// Note that this implies -// state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound. -// state.lineWidth > 40 + state.indent: width decreases until the lower bound. -// This behaves better than a constant minimum width which disallows narrower options, -// or an indent threshold which causes the width to suddenly increase. -var lineWidth=state.lineWidth===-1?-1:Math.max(Math.min(state.lineWidth,40),state.lineWidth-indent);// Without knowing if keys are implicit/explicit, assume implicit for safety. -var singleLineOnly=iskey// No block styles in flow mode. -||state.flowLevel>-1&&level>=state.flowLevel;function testAmbiguity(string){return testImplicitResolving(state,string);}switch(chooseScalarStyle(string,singleLineOnly,state.indent,lineWidth,testAmbiguity)){case STYLE_PLAIN:return string;case STYLE_SINGLE:return"'"+string.replace(/'/g,"''")+"'";case STYLE_LITERAL:return'|'+blockHeader(string,state.indent)+dropEndingNewline(indentString(string,indent));case STYLE_FOLDED:return'>'+blockHeader(string,state.indent)+dropEndingNewline(indentString(foldString(string,lineWidth),indent));case STYLE_DOUBLE:return'"'+escapeString(string,lineWidth)+'"';default:throw new YAMLException$5('impossible error: invalid scalar style');}}();}// Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9. -function blockHeader(string,indentPerLevel){var indentIndicator=string[0]===' '?String(indentPerLevel):'';// note the special case: the string '\n' counts as a "trailing" empty line. -var clip=string[string.length-1]==='\n';var keep=clip&&(string[string.length-2]==='\n'||string==='\n');var chomp=keep?'+':clip?'':'-';return indentIndicator+chomp+'\n';}// (See the note for writeScalar.) -function dropEndingNewline(string){return string[string.length-1]==='\n'?string.slice(0,-1):string;}// Note: a long line without a suitable break point will exceed the width limit. -// Pre-conditions: every char in str isPrintable, str.length > 0, width > 0. -function foldString(string,width){// In folded style, $k$ consecutive newlines output as $k+1$ newlines— -// unless they're before or after a more-indented line, or at the very -// beginning or end, in which case $k$ maps to $k$. -// Therefore, parse each chunk as newline(s) followed by a content line. -var lineRe=/(\n+)([^\n]*)/g;// first line (possibly an empty line) -var result=function(){var nextLF=string.indexOf('\n');nextLF=nextLF!==-1?nextLF:string.length;lineRe.lastIndex=nextLF;return foldLine(string.slice(0,nextLF),width);}();// If we haven't reached the first content line yet, don't add an extra \n. -var prevMoreIndented=string[0]==='\n'||string[0]===' ';var moreIndented;// rest of the lines -var match;while(match=lineRe.exec(string)){var prefix=match[1],line=match[2];moreIndented=line[0]===' ';result+=prefix+(!prevMoreIndented&&!moreIndented&&line!==''?'\n':'')+foldLine(line,width);prevMoreIndented=moreIndented;}return result;}// Greedy line breaking. -// Picks the longest line under the limit each time, -// otherwise settles for the shortest line over the limit. -// NB. More-indented lines *cannot* be folded, as that would add an extra \n. -function foldLine(line,width){if(line===''||line[0]===' ')return line;// Since a more-indented line adds a \n, breaks can't be followed by a space. -var breakRe=/ [^ ]/g;// note: the match index will always be <= length-2. -var match;// start is an inclusive index. end, curr, and next are exclusive. -var start=0,end,curr=0,next=0;var result='';// Invariants: 0 <= start <= length-1. -// 0 <= curr <= next <= max(0, length-2). curr - start <= width. -// Inside the loop: -// A match implies length >= 2, so curr and next are <= length-2. -while(match=breakRe.exec(line)){next=match.index;// maintain invariant: curr - start <= width -if(next-start>width){end=curr>start?curr:next;// derive end <= length-2 -result+='\n'+line.slice(start,end);// skip the space that was output as \n -start=end+1;// derive start <= length-1 -}curr=next;}// By the invariants, start <= length-1, so there is something left over. -// It is either the whole string or a part starting from non-whitespace. -result+='\n';// Insert a break if the remainder is too long and there is a break available. -if(line.length-start>width&&curr>start){result+=line.slice(start,curr)+'\n'+line.slice(curr+1);}else{result+=line.slice(start);}return result.slice(1);// drop extra \n joiner -}// Escapes a double-quoted string. -function escapeString(string){var result='';var char;var escapeSeq;for(var i=0;i1024)pairBuffer+='? ';pairBuffer+=state.dump+':'+(state.condenseFlow?'':' ');if(!writeNode(state,level,objectValue,false,false)){continue;// Skip this pair because of invalid value. -}pairBuffer+=state.dump;// Both key and value are valid. -_result+=pairBuffer;}state.tag=_tag;state.dump='{'+_result+'}';}function writeBlockMapping(state,level,object,compact){var _result='',_tag=state.tag,objectKeyList=Object.keys(object),index,length,objectKey,objectValue,explicitPair,pairBuffer;// Allow sorting keys so that the output file is deterministic -if(state.sortKeys===true){// Default sorting -objectKeyList.sort();}else if(typeof state.sortKeys==='function'){// Custom sort function -objectKeyList.sort(state.sortKeys);}else if(state.sortKeys){// Something is wrong -throw new YAMLException$5('sortKeys must be a boolean or a function');}for(index=0,length=objectKeyList.length;index1024;if(explicitPair){if(state.dump&&CHAR_LINE_FEED===state.dump.charCodeAt(0)){pairBuffer+='?';}else{pairBuffer+='? ';}}pairBuffer+=state.dump;if(explicitPair){pairBuffer+=generateNextLine(state,level);}if(!writeNode(state,level+1,objectValue,true,explicitPair)){continue;// Skip this pair because of invalid value. -}if(state.dump&&CHAR_LINE_FEED===state.dump.charCodeAt(0)){pairBuffer+=':';}else{pairBuffer+=': ';}pairBuffer+=state.dump;// Both key and value are valid. -_result+=pairBuffer;}state.tag=_tag;state.dump=_result||'{}';// Empty mapping if no valid pairs. -}function detectType(state,object,explicit){var _result,typeList,index,length,type,style;typeList=explicit?state.explicitTypes:state.implicitTypes;for(index=0,length=typeList.length;index tag resolver accepts not "'+style+'" style');}state.dump=_result;}return true;}}return false;}// Serializes `object` and writes it to global `result`. -// Returns true on success, or false on invalid object. -// -function writeNode(state,level,object,block,compact,iskey){state.tag=null;state.dump=object;if(!detectType(state,object,false)){detectType(state,object,true);}var type=_toString$2.call(state.dump);if(block){block=state.flowLevel<0||state.flowLevel>level;}var objectOrArray=type==='[object Object]'||type==='[object Array]',duplicateIndex,duplicate;if(objectOrArray){duplicateIndex=state.duplicates.indexOf(object);duplicate=duplicateIndex!==-1;}if(state.tag!==null&&state.tag!=='?'||duplicate||state.indent!==2&&level>0){compact=false;}if(duplicate&&state.usedDuplicates[duplicateIndex]){state.dump='*ref_'+duplicateIndex;}else{if(objectOrArray&&duplicate&&!state.usedDuplicates[duplicateIndex]){state.usedDuplicates[duplicateIndex]=true;}if(type==='[object Object]'){if(block&&Object.keys(state.dump).length!==0){writeBlockMapping(state,level,state.dump,compact);if(duplicate){state.dump='&ref_'+duplicateIndex+state.dump;}}else{writeFlowMapping(state,level,state.dump);if(duplicate){state.dump='&ref_'+duplicateIndex+' '+state.dump;}}}else if(type==='[object Array]'){if(block&&state.dump.length!==0){writeBlockSequence(state,level,state.dump,compact);if(duplicate){state.dump='&ref_'+duplicateIndex+state.dump;}}else{writeFlowSequence(state,level,state.dump);if(duplicate){state.dump='&ref_'+duplicateIndex+' '+state.dump;}}}else if(type==='[object String]'){if(state.tag!=='?'){writeScalar(state,state.dump,level,iskey);}}else{if(state.skipInvalid)return false;throw new YAMLException$5('unacceptable kind of an object to dump '+type);}if(state.tag!==null&&state.tag!=='?'){state.dump='!<'+state.tag+'> '+state.dump;}}return true;}function getDuplicateReferences(object,state){var objects=[],duplicatesIndexes=[],index,length;inspectNode(object,objects,duplicatesIndexes);for(index=0,length=duplicatesIndexes.length;index=0&&bi>0){begs=[];left=str.length;while(i>=0&&!result){if(i==ai){begs.push(i);ai=str.indexOf(a,i+1);}else if(begs.length==1){result=[begs.pop(),bi];}else{beg=begs.pop();if(beg=0?ai:bi;}if(begs.length){result=[left,right];}}return result;}var concatMap=index$74;var balanced=index$76;var index$72=expandTop;var escSlash='\0SLASH'+Math.random()+'\0';var escOpen='\0OPEN'+Math.random()+'\0';var escClose='\0CLOSE'+Math.random()+'\0';var escComma='\0COMMA'+Math.random()+'\0';var escPeriod='\0PERIOD'+Math.random()+'\0';function numeric(str){return parseInt(str,10)==str?parseInt(str,10):str.charCodeAt(0);}function escapeBraces(str){return str.split('\\\\').join(escSlash).split('\\{').join(escOpen).split('\\}').join(escClose).split('\\,').join(escComma).split('\\.').join(escPeriod);}function unescapeBraces(str){return str.split(escSlash).join('\\').split(escOpen).join('{').split(escClose).join('}').split(escComma).join(',').split(escPeriod).join('.');}// Basically just str.split(","), but handling cases -// where we have nested braced sections, which should be -// treated as individual members, like {a,{b,c},d} -function parseCommaParts(str){if(!str)return[''];var parts=[];var m=balanced('{','}',str);if(!m)return str.split(',');var pre=m.pre;var body=m.body;var post=m.post;var p=pre.split(',');p[p.length-1]+='{'+body+'}';var postParts=parseCommaParts(post);if(post.length){p[p.length-1]+=postParts.shift();p.push.apply(p,postParts);}parts.push.apply(parts,p);return parts;}function expandTop(str){if(!str)return[];// I don't know why Bash 4.3 does this, but it does. -// Anything starting with {} will have the first two bytes preserved -// but *only* at the top level, so {},a}b will not expand to anything, -// but a{},b}c will be expanded to [a}c,abc]. -// One could argue that this is a bug in Bash, but since the goal of -// this module is to match Bash's rules, we escape a leading {} -if(str.substr(0,2)==='{}'){str='\\{\\}'+str.substr(2);}return expand$1(escapeBraces(str),true).map(unescapeBraces);}function embrace(str){return'{'+str+'}';}function isPadded(el){return /^-?0\d/.test(el);}function lte(i,y){return i<=y;}function gte(i,y){return i>=y;}function expand$1(str,isTop){var expansions=[];var m=balanced('{','}',str);if(!m||/\$$/.test(m.pre))return[str];var isNumericSequence=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);var isAlphaSequence=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);var isSequence=isNumericSequence||isAlphaSequence;var isOptions=m.body.indexOf(',')>=0;if(!isSequence&&!isOptions){// {a},b} -if(m.post.match(/,.*\}/)){str=m.pre+'{'+m.body+escClose+m.post;return expand$1(str);}return[str];}var n;if(isSequence){n=m.body.split(/\.\./);}else{n=parseCommaParts(m.body);if(n.length===1){// x{{a,b}}y ==> x{a}y x{b}y -n=expand$1(n[0],false).map(embrace);if(n.length===1){var post=m.post.length?expand$1(m.post,false):[''];return post.map(function(p){return m.pre+n[0]+p;});}}}// at this point, n is the parts, and we know it's not a comma set -// with a single entry. -// no need to expand pre, since it is guaranteed to be free of brace-sets -var pre=m.pre;var post=m.post.length?expand$1(m.post,false):[''];var N;if(isSequence){var x=numeric(n[0]);var y=numeric(n[1]);var width=Math.max(n[0].length,n[1].length);var incr=n.length==3?Math.abs(numeric(n[2])):1;var test=lte;var reverse=y0){var z=new Array(need+1).join('0');if(i<0)c='-'+z+c.slice(1);else c=z+c;}}}N.push(c);}}else{N=concatMap(n,function(el){return expand$1(el,false);});}for(var j=0;j any number of characters -var star=qmark+'*?';// ** when dots are allowed. Anything goes, except .. and . -// not (^ or / followed by one or two dots followed by $ or /), -// followed by anything, any number of times. -var twoStarDot='(?:(?!(?:\\\/|^)(?:\\.{1,2})($|\\\/)).)*?';// not a ^ or / followed by a dot, -// followed by anything, any number of times. -var twoStarNoDot='(?:(?!(?:\\\/|^)\\.).)*?';// characters that need to be escaped in RegExp. -var reSpecials=charSet('().*{}+?[]^$\\!');// "abc" -> { a:true, b:true, c:true } -function charSet(s){return s.split('').reduce(function(set,c){set[c]=true;return set;},{});}// normalizes slashes. -var slashSplit=/\/+/;minimatch$1.filter=filter;function filter(pattern,options){options=options||{};return function(p,i,list){return minimatch$1(p,pattern,options);};}function ext(a,b){a=a||{};b=b||{};var t={};Object.keys(b).forEach(function(k){t[k]=b[k];});Object.keys(a).forEach(function(k){t[k]=a[k];});return t;}minimatch$1.defaults=function(def){if(!def||!Object.keys(def).length)return minimatch$1;var orig=minimatch$1;var m=function minimatch(p,pattern,options){return orig.minimatch(p,pattern,ext(def,options));};m.Minimatch=function Minimatch(pattern,options){return new orig.Minimatch(pattern,ext(def,options));};return m;};Minimatch.defaults=function(def){if(!def||!Object.keys(def).length)return Minimatch;return minimatch$1.defaults(def).Minimatch;};function minimatch$1(p,pattern,options){if(typeof pattern!=='string'){throw new TypeError('glob pattern string required');}if(!options)options={};// shortcut: comments match nothing. -if(!options.nocomment&&pattern.charAt(0)==='#'){return false;}// "" only matches "" -if(pattern.trim()==='')return p==='';return new Minimatch(pattern,options).match(p);}function Minimatch(pattern,options){if(!(this instanceof Minimatch)){return new Minimatch(pattern,options);}if(typeof pattern!=='string'){throw new TypeError('glob pattern string required');}if(!options)options={};pattern=pattern.trim();// windows support: need to use /, not \ -if(path$7.sep!=='/'){pattern=pattern.split(path$7.sep).join('/');}this.options=options;this.set=[];this.pattern=pattern;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;// make the set of regexps etc. -this.make();}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){// don't do it more than once. -if(this._made)return;var pattern=this.pattern;var options=this.options;// empty patterns and comments match nothing. -if(!options.nocomment&&pattern.charAt(0)==='#'){this.comment=true;return;}if(!pattern){this.empty=true;return;}// step 1: figure out negation, etc. -this.parseNegate();// step 2: expand braces -var set=this.globSet=this.braceExpand();if(options.debug)this.debug=console.error;this.debug(this.pattern,set);// step 3: now we have a set, so turn each one into a series of path-portion -// matching patterns. -// These will be regexps, except in the case of "**", which is -// set to the GLOBSTAR object for globstar behavior, -// and will not contain any / characters -set=this.globParts=set.map(function(s){return s.split(slashSplit);});this.debug(this.pattern,set);// glob --> regexps -set=set.map(function(s,si,set){return s.map(this.parse,this);},this);this.debug(this.pattern,set);// filter out everything that didn't compile properly. -set=set.filter(function(s){return s.indexOf(false)===-1;});this.debug(this.pattern,set);this.set=set;}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var pattern=this.pattern;var negate=false;var options=this.options;var negateOffset=0;if(options.nonegate)return;for(var i=0,l=pattern.length;i abd acd -// a{b,}c -> abc ac -// a{0..3}d -> a0d a1d a2d a3d -// a{b,c{d,e}f}g -> abg acdfg acefg -// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg -// -// Invalid sets are not expanded. -// a{2..}b -> a{2..}b -// a{b}c -> a{b}c -minimatch$1.braceExpand=function(pattern,options){return braceExpand(pattern,options);};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(pattern,options){if(!options){if(this instanceof Minimatch){options=this.options;}else{options={};}}pattern=typeof pattern==='undefined'?this.pattern:pattern;if(typeof pattern==='undefined'){throw new TypeError('undefined pattern');}if(options.nobrace||!pattern.match(/\{.*\}/)){// shortcut. no need to expand. -return[pattern];}return expand(pattern);}// parse a component of the expanded set. -// At this point, no pattern may contain "/" in it -// so we're going to return a 2d array, where each entry is the full -// pattern, split on '/', and then turned into a regular expression. -// A regexp is made at the end which joins each array with an -// escaped /, and another full one which joins each regexp with |. -// -// Following the lead of Bash 4.1, note that "**" only has special meaning -// when it is the *only* thing in a path portion. Otherwise, any series -// of * is equivalent to a single *. Globstar behavior is enabled by -// default, and can be disabled by setting options.noglobstar. -Minimatch.prototype.parse=parse$2;var SUBPARSE={};function parse$2(pattern,isSub){if(pattern.length>1024*64){throw new TypeError('pattern is too long');}var options=this.options;// shortcuts -if(!options.noglobstar&&pattern==='**')return GLOBSTAR;if(pattern==='')return'';var re='';var hasMagic=!!options.nocase;var escaping=false;// ? => one single character -var patternListStack=[];var negativeLists=[];var stateChar;var inClass=false;var reClassStart=-1;var classStart=-1;// . and .. never match anything that doesn't start with ., -// even when options.dot is set. -var patternStart=pattern.charAt(0)==='.'?''// anything -// not (start or / followed by . or .. followed by / or end) -:options.dot?'(?!(?:^|\\\/)\\.{1,2}(?:$|\\\/))':'(?!\\.)';var self=this;function clearStateChar(){if(stateChar){// we had some state-tracking character -// that wasn't consumed by this pass. -switch(stateChar){case'*':re+=star;hasMagic=true;break;case'?':re+=qmark;hasMagic=true;break;default:re+='\\'+stateChar;break;}self.debug('clearStateChar %j %j',stateChar,re);stateChar=false;}}for(var i=0,len=pattern.length,c;i) -re+=pl.close;if(pl.type==='!'){negativeLists.push(pl);}pl.reEnd=re.length;continue;case'|':if(inClass||!patternListStack.length||escaping){re+='\\|';escaping=false;continue;}clearStateChar();re+='|';continue;// these are mostly the same in regexp and glob -case'[':// swallow any state-tracking char before the [ -clearStateChar();if(inClass){re+='\\'+c;continue;}inClass=true;classStart=i;reClassStart=re.length;re+=c;continue;case']':// a right bracket shall lose its special -// meaning and represent itself in -// a bracket expression if it occurs -// first in the list. -- POSIX.2 2.8.3.2 -if(i===classStart+1||!inClass){re+='\\'+c;escaping=false;continue;}// handle the case where we left a class open. -// "[z-a]" is valid, equivalent to "\[z-a\]" -if(inClass){// split where the last [ was, make sure we don't have -// an invalid re. if so, re-walk the contents of the -// would-be class to re-translate any characters that -// were passed through as-is -// TODO: It would probably be faster to determine this -// without a try/catch and a new RegExp, but it's tricky -// to do safely. For now, this is safe and works. -var cs=pattern.substring(classStart+1,i);try{RegExp('['+cs+']');}catch(er){// not a valid class! -var sp=this.parse(cs,SUBPARSE);re=re.substr(0,reClassStart)+'\\['+sp[0]+'\\]';hasMagic=hasMagic||sp[1];inClass=false;continue;}}// finish up the class. -hasMagic=true;inClass=false;re+=c;continue;default:// swallow any state char that wasn't consumed -clearStateChar();if(escaping){// no need -escaping=false;}else if(reSpecials[c]&&!(c==='^'&&inClass)){re+='\\';}re+=c;}// switch -}// for -// handle the case where we left a class open. -// "[abc" is valid, equivalent to "\[abc" -if(inClass){// split where the last [ was, and escape it -// this is a huge pita. We now have to re-walk -// the contents of the would-be class to re-translate -// any characters that were passed through as-is -cs=pattern.substr(classStart+1);sp=this.parse(cs,SUBPARSE);re=re.substr(0,reClassStart)+'\\['+sp[0];hasMagic=hasMagic||sp[1];}// handle the case where we had a +( thing at the *end* -// of the pattern. -// each pattern list stack adds 3 chars, and we need to go through -// and escape any | chars that were passed through as-is for the regexp. -// Go through and escape them, taking care not to double-escape any -// | chars that were already escaped. -for(pl=patternListStack.pop();pl;pl=patternListStack.pop()){var tail=re.slice(pl.reStart+pl.open.length);this.debug('setting tail',re,pl);// maybe some even number of \, then maybe 1 \, followed by a | -tail=tail.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(_,$1,$2){if(!$2){// the | isn't already escaped, so escape it. -$2='\\';}// need to escape all those slashes *again*, without escaping the -// one that we need for escaping the | character. As it works out, -// escaping an even number of slashes can be done by simply repeating -// it exactly after itself. That's why this trick works. -// -// I am sorry that you have to see this. -return $1+$1+$2+'|';});this.debug('tail=%j\n %s',tail,tail,pl,re);var t=pl.type==='*'?star:pl.type==='?'?qmark:'\\'+pl.type;hasMagic=true;re=re.slice(0,pl.reStart)+t+'\\('+tail;}// handle trailing things that only matter at the very end. -clearStateChar();if(escaping){// trailing \\ -re+='\\\\';}// only need to apply the nodot start if the re starts with -// something that could conceivably capture a dot -var addPatternStart=false;switch(re.charAt(0)){case'.':case'[':case'(':addPatternStart=true;}// Hack to work around lack of negative lookbehind in JS -// A pattern like: *.!(x).!(y|z) needs to ensure that a name -// like 'a.xyz.yz' doesn't match. So, the first negative -// lookahead, has to look ALL the way ahead, to the end of -// the pattern. -for(var n=negativeLists.length-1;n>-1;n--){var nl=negativeLists[n];var nlBefore=re.slice(0,nl.reStart);var nlFirst=re.slice(nl.reStart,nl.reEnd-8);var nlLast=re.slice(nl.reEnd-8,nl.reEnd);var nlAfter=re.slice(nl.reEnd);nlLast+=nlAfter;// Handle nested stuff like *(*.js|!(*.json)), where open parens -// mean that we should *not* include the ) in the bit that is considered -// "after" the negated section. -var openParensBefore=nlBefore.split('(').length-1;var cleanAfter=nlAfter;for(i=0;i=0;i--){filename=f[i];if(filename)break;}for(i=0;i no -// - matchOne(y/z/c, c) -> no -// - matchOne(z/c, c) -> no -// - matchOne(c, c) yes, hit -var fr=fi;var pr=pi+1;if(pr===pl){this.debug('** at the end');// a ** at the end will just swallow the rest. -// We have found a match. -// however, it will not swallow /.x, unless -// options.dot is set. -// . and .. are *never* matched by **, for explosively -// exponential reasons. -for(;fi>> no match, partial?',file,fr,pattern,pr);if(fr===fl)return true;}return false;}// something other than ** -// non-magic patterns just have to match exactly -// patterns with magic have been turned into regexps. -var hit;if(typeof p==='string'){if(options.nocase){hit=f.toLowerCase()===p.toLowerCase();}else{hit=f===p;}this.debug('string match',p,f,hit);}else{hit=f.match(p);this.debug('pattern match',p,f,hit);}if(!hit)return false;}// Note: ending in / means that we'll get a final "" -// at the end of the pattern. This can only match a -// corresponding "" at the end of the file. -// If the file ends in /, then it can only match a -// a pattern that ends in /, unless the pattern just -// doesn't have any more for it. But, a/b/ should *not* -// match "a/b/*", even though "" matches against the -// [^/]*? pattern, except in partial mode, where it might -// simply not be reached yet. -// However, a/b/ should still satisfy a/* -// now either we fell off the end of the pattern, or we're done. -if(fi===fl&&pi===pl){// ran out of pattern and filename at the same time. -// an exact hit! -return true;}else if(fi===fl){// ran out of file, but still had pattern left. -// this is ok if we're doing the match as part of -// a glob fs traversal. -return partial;}else if(pi===pl){// ran out of pattern, still have file left. -// this is only acceptable if we're on the very last -// empty segment of a file with a trailing slash. -// a/* should match a/b/ -var emptyFileEnd=fi===fl-1&&file[fi]==='';return emptyFileEnd;}// should be unreachable. -throw new Error('wtf?');};// replace stuff like \* with * -function globUnescape(s){return s.replace(/\\(.)/g,'$1');}function regExpEscape(s){return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,'\\$&');}var index$80=function index$80(to,from){// TODO: use `Reflect.ownKeys()` when targeting Node.js 6 -var _iteratorNormalCompletion14=true;var _didIteratorError14=false;var _iteratorError14=undefined;try{for(var _iterator14=Object.getOwnPropertyNames(from).concat(Object.getOwnPropertySymbols(from))[Symbol.iterator](),_step14;!(_iteratorNormalCompletion14=(_step14=_iterator14.next()).done);_iteratorNormalCompletion14=true){var prop=_step14.value;Object.defineProperty(to,prop,Object.getOwnPropertyDescriptor(from,prop));}}catch(err){_didIteratorError14=true;_iteratorError14=err;}finally{try{if(!_iteratorNormalCompletion14&&_iterator14.return){_iterator14.return();}}finally{if(_didIteratorError14){throw _iteratorError14;}}}};var mimicFn=index$80;var cacheStore=new WeakMap();var defaultCacheKey=function defaultCacheKey(x){if(arguments.length===1&&(x===null||x===undefined||typeof x!=='function'&&(typeof x==='undefined'?'undefined':_typeof(x))!=='object')){return x;}return JSON.stringify(arguments);};var index$78=function index$78(fn,opts){opts=Object.assign({cacheKey:defaultCacheKey,cache:new Map()},opts);var memoized=function memoized(){var cache=cacheStore.get(memoized);var key=opts.cacheKey.apply(null,arguments);if(cache.has(key)){var c=cache.get(key);if(typeof opts.maxAge!=='number'||Date.now()lf?'\r\n':'\n';};module.exports.graceful=function(str){return module.exports(str)||'\n';};});var index$82=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.extract=extract;exports.strip=strip;exports.parse=parse;exports.parseWithComments=parseWithComments;exports.print=print;var _detectNewline;function _load_detectNewline(){return _detectNewline=_interopRequireDefault(index$84);}var _os;function _load_os(){return _os=os;}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * - */var commentEndRe=/\*\/$/;var commentStartRe=/^\/\*\*/;var docblockRe=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/;var lineCommentRe=/(^|\s+)\/\/([^\r\n]*)/g;var ltrimRe=/^\s*/;var rtrimRe=/\s*$/;var ltrimNewlineRe=/^(\r?\n)+/;var multilineRe=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g;var propertyRe=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g;var stringStartRe=/(\r?\n|^) *\* ?/g;function extract(contents){var match=contents.match(docblockRe);return match?match[0].replace(ltrimRe,'')||'':'';}function strip(contents){var match=contents.match(docblockRe);return match&&match[0]?contents.substring(match[0].length):contents;}function parse(docblock){return parseWithComments(docblock).pragmas;}function parseWithComments(docblock){var line=(0,(_detectNewline||_load_detectNewline()).default)(docblock)||(_os||_load_os()).EOL;docblock=docblock.replace(commentStartRe,'').replace(commentEndRe,'').replace(stringStartRe,'$1');// Normalize multi-line directives -var prev='';while(prev!==docblock){prev=docblock;docblock=docblock.replace(multilineRe,line+'$1 $2'+line);}docblock=docblock.replace(ltrimNewlineRe,'').replace(rtrimRe,'');var result=Object.create(null);var comments=docblock.replace(propertyRe,'').replace(ltrimNewlineRe,'').replace(rtrimRe,'');var match=void 0;while(match=propertyRe.exec(docblock)){// strip linecomments from pragmas -result[match[1]]=match[2].replace(lineCommentRe,'');}return{comments:comments,pragmas:result};}function print(_ref){var _ref$comments=_ref.comments;var comments=_ref$comments===undefined?'':_ref$comments;var _ref$pragmas=_ref.pragmas;var pragmas=_ref$pragmas===undefined?{}:_ref$pragmas;var line=(0,(_detectNewline||_load_detectNewline()).default)(comments)||(_os||_load_os()).EOL;var head='/**';var start=' *';var tail=' */';var keys=Object.keys(pragmas);var printedObject=keys.map(function(key){return start+' '+printKeyValue(key,pragmas[key])+line;}).join('');if(!comments){if(keys.length===0){return'';}if(keys.length===1){return head+' '+printKeyValue(keys[0],pragmas[keys[0]])+tail;}}var printedComments=comments.split(line).map(function(textLine){return start+' '+textLine;}).join(line)+line;return head+line+(comments?printedComments:'')+(comments&&keys.length?start+line:'')+printedObject+tail;}function printKeyValue(key,value){return('@'+key+' '+value).trim();}});var PassThrough=stream.PassThrough;var bufferStream$1=function bufferStream$1(opts){opts=Object.assign({},opts);var array=opts.array;var encoding=opts.encoding;var buffer=encoding==='buffer';var objectMode=false;if(array){objectMode=!(encoding||buffer);}else{encoding=encoding||'utf8';}if(buffer){encoding=null;}var len=0;var ret=[];var stream$$1=new PassThrough({objectMode:objectMode});if(encoding){stream$$1.setEncoding(encoding);}stream$$1.on('data',function(chunk){ret.push(chunk);if(objectMode){len=ret.length;}else{len+=chunk.length;}});stream$$1.getBufferedValue=function(){if(array){return ret;}return buffer?Buffer.concat(ret,len):ret.join('');};stream$$1.getBufferedLength=function(){return len;};return stream$$1;};var bufferStream=bufferStream$1;function getStream$1(inputStream,opts){if(!inputStream){return Promise.reject(new Error('Expected a stream'));}opts=Object.assign({maxBuffer:Infinity},opts);var maxBuffer=opts.maxBuffer;var stream$$1=void 0;var clean=void 0;var p=new Promise(function(resolve,reject){var error=function error(err){if(err){// null check -err.bufferedData=stream$$1.getBufferedValue();}reject(err);};stream$$1=bufferStream(opts);inputStream.once('error',error);inputStream.pipe(stream$$1);stream$$1.on('data',function(){if(stream$$1.getBufferedLength()>maxBuffer){reject(new Error('maxBuffer exceeded'));}});stream$$1.once('error',error);stream$$1.on('end',resolve);clean=function clean(){// some streams doesn't implement the `stream.Readable` interface correctly -if(inputStream.unpipe){inputStream.unpipe(stream$$1);}};});p.then(clean,clean);return p.then(function(){return stream$$1.getBufferedValue();});}var index$86=getStream$1;var buffer=function buffer(stream$$1,opts){return getStream$1(stream$$1,Object.assign({},opts,{encoding:'buffer'}));};var array=function array(stream$$1,opts){return getStream$1(stream$$1,Object.assign({},opts,{array:true}));};index$86.buffer=buffer;index$86.array=array;var stripBom=index$2;var comments=comments$1;var version=require$$1$15.version;var printAstToDoc=printer.printAstToDoc;var util$1=util$3;var _printDocToString=docPrinter$1.printDocToString;var normalizeOptions=options.normalize;var parser=parser$1;var printDocToDebug=docDebug.printDocToDebug;var config=resolveConfig_1;var getSupportInfo=support$1.getSupportInfo;var docblock=index$82;var getStream=index$86;function guessLineEnding(text){var index=text.indexOf("\n");if(index>=0&&text.charAt(index-1)==="\r"){return"\r\n";}return"\n";}function attachComments(text,ast,opts){var astComments=ast.comments;if(astComments){delete ast.comments;comments.attach(astComments,ast,text,opts);}ast.tokens=[];opts.originalText=text.trimRight();return astComments;}function hasPragma(text){var pragmas=Object.keys(docblock.parse(docblock.extract(text)));return pragmas.indexOf("prettier")!==-1||pragmas.indexOf("format")!==-1;}function ensureAllCommentsPrinted(astComments){if(!astComments){return;}for(var _i36=0;_i36=0){var cursorNodeAndParents=findNodeAtOffset(ast,opts.cursorOffset);var cursorNode=cursorNodeAndParents.node;if(cursorNode){cursorOffset=opts.cursorOffset-util$1.locStart(cursorNode);opts.cursorNode=cursorNode;}}var astComments=attachComments(text,ast,opts);var doc=printAstToDoc(ast,opts,addAlignmentSize);opts.newLine=guessLineEnding(text);var toStringResult=_printDocToString(doc,opts);var str=toStringResult.formatted;var cursorOffsetResult=toStringResult.cursor;ensureAllCommentsPrinted(astComments);// Remove extra leading indentation as well as the added indentation after last newline -if(addAlignmentSize>0){return{formatted:str.trim()+opts.newLine};}if(cursorOffset!==undefined){return{formatted:str,cursorOffset:cursorOffsetResult+cursorOffset};}return{formatted:str};}function _format(text,opts,addAlignmentSize){return _formatWithCursor(text,opts,addAlignmentSize).formatted;}function findSiblingAncestors(startNodeAndParents,endNodeAndParents){var resultStartNode=startNodeAndParents.node;var resultEndNode=endNodeAndParents.node;if(resultStartNode===resultEndNode){return{startNode:resultStartNode,endNode:resultEndNode};}var _iteratorNormalCompletion16=true;var _didIteratorError16=false;var _iteratorError16=undefined;try{for(var _iterator16=endNodeAndParents.parentNodes[Symbol.iterator](),_step16;!(_iteratorNormalCompletion16=(_step16=_iterator16.next()).done);_iteratorNormalCompletion16=true){var endParent=_step16.value;if(endParent.type!=="Program"&&endParent.type!=="File"&&util$1.locStart(endParent)>=util$1.locStart(startNodeAndParents.node)){resultEndNode=endParent;}else{break;}}}catch(err){_didIteratorError16=true;_iteratorError16=err;}finally{try{if(!_iteratorNormalCompletion16&&_iterator16.return){_iterator16.return();}}finally{if(_didIteratorError16){throw _iteratorError16;}}}var _iteratorNormalCompletion17=true;var _didIteratorError17=false;var _iteratorError17=undefined;try{for(var _iterator17=startNodeAndParents.parentNodes[Symbol.iterator](),_step17;!(_iteratorNormalCompletion17=(_step17=_iterator17.next()).done);_iteratorNormalCompletion17=true){var startParent=_step17.value;if(startParent.type!=="Program"&&startParent.type!=="File"&&util$1.locEnd(startParent)<=util$1.locEnd(endNodeAndParents.node)){resultStartNode=startParent;}else{break;}}}catch(err){_didIteratorError17=true;_iteratorError17=err;}finally{try{if(!_iteratorNormalCompletion17&&_iterator17.return){_iterator17.return();}}finally{if(_didIteratorError17){throw _iteratorError17;}}}return{startNode:resultStartNode,endNode:resultEndNode};}function findNodeAtOffset(node,offset,predicate,parentNodes){predicate=predicate||function(){return true;};parentNodes=parentNodes||[];var start=util$1.locStart(node);var end=util$1.locEnd(node);if(start<=offset&&offset<=end){var _iteratorNormalCompletion18=true;var _didIteratorError18=false;var _iteratorError18=undefined;try{for(var _iterator18=comments.getSortedChildNodes(node)[Symbol.iterator](),_step18;!(_iteratorNormalCompletion18=(_step18=_iterator18.next()).done);_iteratorNormalCompletion18=true){var childNode=_step18.value;var childResult=findNodeAtOffset(childNode,offset,predicate,[node].concat(parentNodes));if(childResult){return childResult;}}}catch(err){_didIteratorError18=true;_iteratorError18=err;}finally{try{if(!_iteratorNormalCompletion18&&_iterator18.return){_iterator18.return();}}finally{if(_didIteratorError18){throw _iteratorError18;}}}if(predicate(node)){return{node:node,parentNodes:parentNodes};}}}// See https://www.ecma-international.org/ecma-262/5.1/#sec-A.5 -function isSourceElement(opts,node){if(node==null){return false;}// JS and JS like to avoid repetitions -var jsSourceElements=["FunctionDeclaration","BlockStatement","BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","EmptyStatement","ExpressionStatement","ForInStatement","ForStatement","IfStatement","LabeledStatement","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","VariableDeclaration","WhileStatement","WithStatement","ClassDeclaration",// ES 2015 -"ImportDeclaration",// Module -"ExportDefaultDeclaration",// Module -"ExportNamedDeclaration",// Module -"ExportAllDeclaration",// Module -"TypeAlias",// Flow -"InterfaceDeclaration",// Flow, Typescript -"TypeAliasDeclaration",// Typescript -"ExportAssignment",// Typescript -"ExportDeclaration"// Typescript -];var jsonSourceElements=["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral"];var graphqlSourceElements=["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"];switch(opts.parser){case"flow":case"babylon":case"typescript":return jsSourceElements.indexOf(node.type)>-1;case"json":return jsonSourceElements.indexOf(node.type)>-1;case"graphql":return graphqlSourceElements.indexOf(node.kind)>-1;}return false;}function calculateRange(text,opts,ast){// Contract the range so that it has non-whitespace characters at its endpoints. -// This ensures we can format a range that doesn't end on a node. -var rangeStringOrig=text.slice(opts.rangeStart,opts.rangeEnd);var startNonWhitespace=Math.max(opts.rangeStart+rangeStringOrig.search(/\S/),opts.rangeStart);var endNonWhitespace=void 0;for(endNonWhitespace=opts.rangeEnd;endNonWhitespace>opts.rangeStart;--endNonWhitespace){if(text[endNonWhitespace-1].match(/\S/)){break;}}var startNodeAndParents=findNodeAtOffset(ast,startNonWhitespace,function(node){return isSourceElement(opts,node);});var endNodeAndParents=findNodeAtOffset(ast,endNonWhitespace,function(node){return isSourceElement(opts,node);});if(!startNodeAndParents||!endNodeAndParents){return{rangeStart:0,rangeEnd:0};}var siblingAncestors=findSiblingAncestors(startNodeAndParents,endNodeAndParents);var startNode=siblingAncestors.startNode;var endNode=siblingAncestors.endNode;var rangeStart=Math.min(util$1.locStart(startNode),util$1.locStart(endNode));var rangeEnd=Math.max(util$1.locEnd(startNode),util$1.locEnd(endNode));return{rangeStart:rangeStart,rangeEnd:rangeEnd};}function formatRange(text,opts,ast){if(opts.rangeStart<=0&&text.length<=opts.rangeEnd){return;}var range=calculateRange(text,opts,ast);var rangeStart=range.rangeStart;var rangeEnd=range.rangeEnd;var rangeString=text.slice(rangeStart,rangeEnd);// Try to extend the range backwards to the beginning of the line. -// This is so we can detect indentation correctly and restore it. -// Use `Math.min` since `lastIndexOf` returns 0 when `rangeStart` is 0 -var rangeStart2=Math.min(rangeStart,text.lastIndexOf("\n",rangeStart)+1);var indentString=text.slice(rangeStart2,rangeStart);var alignmentSize=util$1.getAlignmentSize(indentString,opts.tabWidth);var rangeFormatted=_format(rangeString,Object.assign({},opts,{rangeStart:0,rangeEnd:Infinity,printWidth:opts.printWidth-alignmentSize}),alignmentSize);// Since the range contracts to avoid trailing whitespace, -// we need to remove the newline that was inserted by the `format` call. -var rangeTrimmed=rangeFormatted.trimRight();return text.slice(0,rangeStart)+rangeTrimmed+text.slice(rangeEnd);}var index={formatWithCursor:function formatWithCursor(text,opts){return _formatWithCursor(text,normalizeOptions(opts));},format:function format(text,opts){return _format(text,normalizeOptions(opts));},check:function check(text,opts){try{var formatted=_format(text,normalizeOptions(opts));return formatted===text;}catch(e){return false;}},resolveConfig:config.resolveConfig,clearConfigCache:config.clearCache,getSupportInfo:getSupportInfo,version:version,/* istanbul ignore next */__debug:{getStream:getStream,parse:function parse(text,opts){return parser.parse(text,opts);},formatAST:function formatAST(ast,opts){opts=normalizeOptions(opts);var doc=printAstToDoc(ast,opts);var str=_printDocToString(doc,opts);return str;},// Doesn't handle shebang for now -formatDoc:function formatDoc(doc,opts){opts=normalizeOptions(opts);var debug=printDocToDebug(doc);var str=_format(debug,opts);return str;},printToDoc:function printToDoc(text,opts){opts=normalizeOptions(opts);var ast=parser.parse(text,opts);attachComments(text,ast,opts);var doc=printAstToDoc(ast,opts);return doc;},printDocToString:function printDocToString(doc,opts){opts=normalizeOptions(opts);var str=_printDocToString(doc,opts);return str;}}};module.exports=index; diff --git a/website/static/lib/parser-babylon.js b/website/static/lib/parser-babylon.js deleted file mode 100644 index b585a964..00000000 --- a/website/static/lib/parser-babylon.js +++ /dev/null @@ -1,2166 +0,0 @@ -"use strict"; - -var babylon = function () { - function unwrapExports(x) { - return x && x.__esModule ? x['default'] : x; - } - - function createCommonjsModule(fn, module) { - return module = { exports: {} }, fn(module, module.exports), module.exports; - } - - var parserBabylon_1 = createCommonjsModule(function (module) { - "use strict"; - function createError$1(t, e) { - var s = new SyntaxError(t + " (" + e.start.line + ":" + e.start.column + ")");return s.loc = e, s; - }function createCommonjsModule$$1(t, e) { - return e = { exports: {} }, t(e, e.exports), e.exports; - }function parse(t, e, s) { - var i = index, - r = { sourceType: "module", allowImportExportEverywhere: !0, allowReturnOutsideFunction: !0, plugins: ["jsx", "flow", "doExpressions", "objectRestSpread", "decorators", "classProperties", "exportExtensions", "asyncGenerators", "functionBind", "functionSent", "dynamicImport", "numericSeparator", "importMeta", "optionalCatchBinding", "optionalChaining", "classPrivateProperties", "pipelineOperator", "nullishCoalescingOperator"] }, - a = s && "json" === s.parser ? "parseExpression" : "parse";var n = void 0;try { - n = i[a](t, r); - } catch (e) { - try { - n = i[a](t, Object.assign({}, r, { strictMode: !1 })); - } catch (t) { - throw createError(e.message.replace(/ \(.*\)/, ""), { start: { line: e.loc.line, column: e.loc.column + 1 } }); - } - }return delete n.tokens, n; - }var parserCreateError = createError$1, - index = createCommonjsModule$$1(function (t, e) { - function s(t) { - var e = {};for (var s in g) { - e[s] = t && s in t ? t[s] : g[s]; - }return e; - }function i(t) { - var e = t.split(" ");return function (t) { - return e.indexOf(t) >= 0; - }; - }function r(t, e) { - for (var s = 65536, i = 0; i < e.length; i += 2) { - if ((s += e[i]) > t) return !1;if ((s += e[i + 1]) >= t) return !0; - }return !1; - }function a(t) { - return t < 65 ? 36 === t : t < 91 || (t < 97 ? 95 === t : t < 123 || (t <= 65535 ? t >= 170 && D.test(String.fromCharCode(t)) : r(t, R))); - }function n(t) { - return t < 48 ? 36 === t : t < 58 || !(t < 65) && (t < 91 || (t < 97 ? 95 === t : t < 123 || (t <= 65535 ? t >= 170 && O.test(String.fromCharCode(t)) : r(t, R) || r(t, _)))); - }function o(t) { - return 10 === t || 13 === t || 8232 === t || 8233 === t; - }function h(t, e) { - for (var s = 1, i = 0;;) { - F.lastIndex = i;var r = F.exec(t);if (!(r && r.index < e)) return new U(s, e - i);++s, i = r.index + r[0].length; - }throw new Error("Unreachable"); - }function p(t) { - return t[t.length - 1]; - }function c(t) { - return t <= 65535 ? String.fromCharCode(t) : String.fromCharCode(55296 + (t - 65536 >> 10), 56320 + (t - 65536 & 1023)); - }function l(t) { - for (var e = {}, s = t, i = Array.isArray(s), r = 0, s = i ? s : s[Symbol.iterator]();;) { - var a;if (i) { - if (r >= s.length) break;a = s[r++]; - } else { - if ((r = s.next()).done) break;a = r.value; - }e[a] = !0; - }return e; - }function u(t) { - return null != t && "Property" === t.type && "init" === t.kind && !1 === t.method; - }function d(t) { - return "DeclareExportAllDeclaration" === t.type || "DeclareExportDeclaration" === t.type && (!t.declaration || "TypeAlias" !== t.declaration.type && "InterfaceDeclaration" !== t.declaration.type); - }function f(t, e) { - for (var s = [], i = [], r = 0; r < t.length; r++) { - (e(t[r], r, t) ? s : i).push(t[r]); - }return [s, i]; - }function y(t) { - if ("JSXIdentifier" === t.type) return t.name;if ("JSXNamespacedName" === t.type) return t.namespace.name + ":" + t.name.name;if ("JSXMemberExpression" === t.type) return y(t.object) + "." + y(t.property);throw new Error("Node had unexpected type: " + t.type); - }function m(t) { - if (null == t) throw new Error("Unexpected " + t + " value.");return t; - }function x(t) { - if (!t) throw new Error("Assert fail"); - }function v(t) { - switch (t) {case "any": - return "TSAnyKeyword";case "boolean": - return "TSBooleanKeyword";case "never": - return "TSNeverKeyword";case "number": - return "TSNumberKeyword";case "object": - return "TSObjectKeyword";case "string": - return "TSStringKeyword";case "symbol": - return "TSSymbolKeyword";case "undefined": - return "TSUndefinedKeyword";default: - return;} - }function P(t, e) { - return new (t && t.plugins ? b(t.plugins) : st)(t, e); - }function b(t) { - if (t.indexOf("decorators") >= 0 && t.indexOf("decorators2") >= 0) throw new Error("Cannot use decorators and decorators2 plugin together");var e = t.filter(function (t) { - return "estree" === t || "flow" === t || "jsx" === t || "typescript" === t; - });if (e.indexOf("flow") >= 0 && (e = e.filter(function (t) { - return "flow" !== t; - })).push("flow"), e.indexOf("flow") >= 0 && e.indexOf("typescript") >= 0) throw new Error("Cannot combine flow and typescript plugins.");e.indexOf("typescript") >= 0 && (e = e.filter(function (t) { - return "typescript" !== t; - })).push("typescript"), e.indexOf("estree") >= 0 && (e = e.filter(function (t) { - return "estree" !== t; - })).unshift("estree");var s = e.join("/"), - i = ht[s];if (!i) { - i = st;for (var r = e, a = Array.isArray(r), n = 0, r = a ? r : r[Symbol.iterator]();;) { - var o;if (a) { - if (n >= r.length) break;o = r[n++]; - } else { - if ((n = r.next()).done) break;o = n.value; - }i = et[o](i); - }ht[s] = i; - }return i; - }Object.defineProperty(e, "__esModule", { value: !0 });var g = { sourceType: "script", sourceFilename: void 0, startLine: 1, allowReturnOutsideFunction: !1, allowImportExportEverywhere: !1, allowSuperOutsideMethod: !1, plugins: [], strictMode: null, ranges: !1, tokens: !1 }, - T = function T(t, e) { - t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e; - }, - A = !0, - w = function w(t, e) { - void 0 === e && (e = {}), this.label = t, this.keyword = e.keyword, this.beforeExpr = !!e.beforeExpr, this.startsExpr = !!e.startsExpr, this.rightAssociative = !!e.rightAssociative, this.isLoop = !!e.isLoop, this.isAssign = !!e.isAssign, this.prefix = !!e.prefix, this.postfix = !!e.postfix, this.binop = 0 === e.binop ? 0 : e.binop || null, this.updateContext = null; - }, - C = function (t) { - function e(e, s) { - return void 0 === s && (s = {}), s.keyword = e, t.call(this, e, s) || this; - }return T(e, t), e; - }(w), - N = function (t) { - function e(e, s) { - return t.call(this, e, { beforeExpr: A, binop: s }) || this; - }return T(e, t), e; - }(w), - k = { num: new w("num", { startsExpr: !0 }), bigint: new w("bigint", { startsExpr: !0 }), regexp: new w("regexp", { startsExpr: !0 }), string: new w("string", { startsExpr: !0 }), name: new w("name", { startsExpr: !0 }), eof: new w("eof"), bracketL: new w("[", { beforeExpr: A, startsExpr: !0 }), bracketR: new w("]"), braceL: new w("{", { beforeExpr: A, startsExpr: !0 }), braceBarL: new w("{|", { beforeExpr: A, startsExpr: !0 }), braceR: new w("}"), braceBarR: new w("|}"), parenL: new w("(", { beforeExpr: A, startsExpr: !0 }), parenR: new w(")"), comma: new w(",", { beforeExpr: A }), semi: new w(";", { beforeExpr: A }), colon: new w(":", { beforeExpr: A }), doubleColon: new w("::", { beforeExpr: A }), dot: new w("."), question: new w("?", { beforeExpr: A }), questionDot: new w("?."), arrow: new w("=>", { beforeExpr: A }), template: new w("template"), ellipsis: new w("...", { beforeExpr: A }), backQuote: new w("`", { startsExpr: !0 }), dollarBraceL: new w("${", { beforeExpr: A, startsExpr: !0 }), at: new w("@"), hash: new w("#"), eq: new w("=", { beforeExpr: A, isAssign: !0 }), assign: new w("_=", { beforeExpr: A, isAssign: !0 }), incDec: new w("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }), bang: new w("!", { beforeExpr: A, prefix: !0, startsExpr: !0 }), tilde: new w("~", { beforeExpr: A, prefix: !0, startsExpr: !0 }), pipeline: new N("|>", 0), nullishCoalescing: new N("??", 1), logicalOR: new N("||", 1), logicalAND: new N("&&", 2), bitwiseOR: new N("|", 3), bitwiseXOR: new N("^", 4), bitwiseAND: new N("&", 5), equality: new N("==/!=", 6), relational: new N("", 7), bitShift: new N("<>", 8), plusMin: new w("+/-", { beforeExpr: A, binop: 9, prefix: !0, startsExpr: !0 }), modulo: new N("%", 10), star: new N("*", 10), slash: new N("/", 10), exponent: new w("**", { beforeExpr: A, binop: 11, rightAssociative: !0 }) }, - E = { break: new C("break"), case: new C("case", { beforeExpr: A }), catch: new C("catch"), continue: new C("continue"), debugger: new C("debugger"), default: new C("default", { beforeExpr: A }), do: new C("do", { isLoop: !0, beforeExpr: A }), else: new C("else", { beforeExpr: A }), finally: new C("finally"), for: new C("for", { isLoop: !0 }), function: new C("function", { startsExpr: !0 }), if: new C("if"), return: new C("return", { beforeExpr: A }), switch: new C("switch"), throw: new C("throw", { beforeExpr: A, prefix: !0, startsExpr: !0 }), try: new C("try"), var: new C("var"), let: new C("let"), const: new C("const"), while: new C("while", { isLoop: !0 }), with: new C("with"), new: new C("new", { beforeExpr: A, startsExpr: !0 }), this: new C("this", { startsExpr: !0 }), super: new C("super", { startsExpr: !0 }), class: new C("class"), extends: new C("extends", { beforeExpr: A }), export: new C("export"), import: new C("import", { startsExpr: !0 }), yield: new C("yield", { beforeExpr: A, startsExpr: !0 }), null: new C("null", { startsExpr: !0 }), true: new C("true", { startsExpr: !0 }), false: new C("false", { startsExpr: !0 }), in: new C("in", { beforeExpr: A, binop: 7 }), instanceof: new C("instanceof", { beforeExpr: A, binop: 7 }), typeof: new C("typeof", { beforeExpr: A, prefix: !0, startsExpr: !0 }), void: new C("void", { beforeExpr: A, prefix: !0, startsExpr: !0 }), delete: new C("delete", { beforeExpr: A, prefix: !0, startsExpr: !0 }) };Object.keys(E).forEach(function (t) { - k["_" + t] = E[t]; - });var S = { 6: i("enum await"), strict: i("implements interface let package private protected public static yield"), strictBind: i("eval arguments") }, - L = i("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 let const class extends export import yield super"), - I = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞮꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", - M = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣔ-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_", - D = new RegExp("[" + I + "]"), - O = new RegExp("[" + I + M + "]");I = M = null;var R = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 17, 26, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 157, 310, 10, 21, 11, 7, 153, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 26, 45, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 785, 52, 76, 44, 33, 24, 27, 35, 42, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 85, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 54, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 86, 25, 391, 63, 32, 0, 449, 56, 264, 8, 2, 36, 18, 0, 50, 29, 881, 921, 103, 110, 18, 195, 2749, 1070, 4050, 582, 8634, 568, 8, 30, 114, 29, 19, 47, 17, 3, 32, 20, 6, 18, 881, 68, 12, 0, 67, 12, 65, 0, 32, 6124, 20, 754, 9486, 1, 3071, 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, 4149, 196, 60, 67, 1213, 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, 42710, 42, 4148, 12, 221, 3, 5761, 10591, 541], - _ = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 1306, 2, 54, 14, 32, 9, 16, 3, 46, 10, 54, 9, 7, 2, 37, 13, 2, 9, 52, 0, 13, 2, 49, 13, 10, 2, 4, 9, 83, 11, 7, 0, 161, 11, 6, 9, 7, 3, 57, 0, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 87, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 423, 9, 838, 7, 2, 7, 17, 9, 57, 21, 2, 13, 19882, 9, 135, 4, 60, 6, 26, 9, 1016, 45, 17, 3, 19723, 1, 5319, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 2214, 6, 110, 6, 6, 9, 792487, 239], - j = /\r\n?|\n|\u2028|\u2029/, - F = new RegExp(j.source, "g"), - B = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, - q = function q(t, e, s, i) { - this.token = t, this.isExpr = !!e, this.preserveSpace = !!s, this.override = i; - }, - V = { braceStatement: new q("{", !1), braceExpression: new q("{", !0), templateQuasi: new q("${", !0), parenStatement: new q("(", !1), parenExpression: new q("(", !0), template: new q("`", !0, !0, function (t) { - return t.readTmplToken(); - }), functionExpression: new q("function", !0) };k.parenR.updateContext = k.braceR.updateContext = function () { - if (1 !== this.state.context.length) { - var t = this.state.context.pop();t === V.braceStatement && this.curContext() === V.functionExpression ? (this.state.context.pop(), this.state.exprAllowed = !1) : t === V.templateQuasi ? this.state.exprAllowed = !0 : this.state.exprAllowed = !t.isExpr; - } else this.state.exprAllowed = !0; - }, k.name.updateContext = function (t) { - "of" !== this.state.value || this.curContext() !== V.parenStatement ? (this.state.exprAllowed = !1, t !== k._let && t !== k._const && t !== k._var || j.test(this.input.slice(this.state.end)) && (this.state.exprAllowed = !0)) : this.state.exprAllowed = !t.beforeExpr; - }, k.braceL.updateContext = function (t) { - this.state.context.push(this.braceIsBlock(t) ? V.braceStatement : V.braceExpression), this.state.exprAllowed = !0; - }, k.dollarBraceL.updateContext = function () { - this.state.context.push(V.templateQuasi), this.state.exprAllowed = !0; - }, k.parenL.updateContext = function (t) { - var e = t === k._if || t === k._for || t === k._with || t === k._while;this.state.context.push(e ? V.parenStatement : V.parenExpression), this.state.exprAllowed = !0; - }, k.incDec.updateContext = function () {}, k._function.updateContext = function () { - this.curContext() !== V.braceStatement && this.state.context.push(V.functionExpression), this.state.exprAllowed = !1; - }, k.backQuote.updateContext = function () { - this.curContext() === V.template ? this.state.context.pop() : this.state.context.push(V.template), this.state.exprAllowed = !1; - };var U = function U(t, e) { - this.line = t, this.column = e; - }, - W = function W(t, e) { - this.start = t, this.end = e; - }, - K = function (t) { - function e() { - return t.apply(this, arguments) || this; - }return T(e, t), e.prototype.raise = function (t, e, s) { - var i = h(this.input, t);e += " (" + i.line + ":" + i.column + ")";var r = new SyntaxError(e);throw r.pos = t, r.loc = i, s && (r.missingPlugin = s), r; - }, e; - }(function (t) { - function e() { - return t.apply(this, arguments) || this; - }return T(e, t), e.prototype.addComment = function (t) { - this.filename && (t.loc.filename = this.filename), this.state.trailingComments.push(t), this.state.leadingComments.push(t); - }, e.prototype.processComment = function (t) { - if (!("Program" === t.type && t.body.length > 0)) { - var e = this.state.commentStack, - s = void 0, - i = void 0, - r = void 0, - a = void 0, - n = void 0;if (this.state.trailingComments.length > 0) this.state.trailingComments[0].start >= t.end ? (r = this.state.trailingComments, this.state.trailingComments = []) : this.state.trailingComments.length = 0;else { - var o = p(e);e.length > 0 && o.trailingComments && o.trailingComments[0].start >= t.end && (r = o.trailingComments, o.trailingComments = null); - }for (e.length > 0 && p(e).start >= t.start && (s = e.pop()); e.length > 0 && p(e).start >= t.start;) { - i = e.pop(); - }if (!i && s && (i = s), s && this.state.leadingComments.length > 0) { - var h = p(this.state.leadingComments);if ("ObjectProperty" === s.type) { - if (h.start >= t.start && this.state.commentPreviousNode) { - for (n = 0; n < this.state.leadingComments.length; n++) { - this.state.leadingComments[n].end < this.state.commentPreviousNode.end && (this.state.leadingComments.splice(n, 1), n--); - }this.state.leadingComments.length > 0 && (s.trailingComments = this.state.leadingComments, this.state.leadingComments = []); - } - } else if ("CallExpression" === t.type && t.arguments && t.arguments.length) { - var c = p(t.arguments);c && h.start >= c.start && h.end <= t.end && this.state.commentPreviousNode && this.state.leadingComments.length > 0 && (c.trailingComments = this.state.leadingComments, this.state.leadingComments = []); - } - }if (i) { - if (i.leadingComments) if (i !== t && p(i.leadingComments).end <= t.start) t.leadingComments = i.leadingComments, i.leadingComments = null;else for (a = i.leadingComments.length - 2; a >= 0; --a) { - if (i.leadingComments[a].end <= t.start) { - t.leadingComments = i.leadingComments.splice(0, a + 1);break; - } - } - } else if (this.state.leadingComments.length > 0) if (p(this.state.leadingComments).end <= t.start) { - if (this.state.commentPreviousNode) for (n = 0; n < this.state.leadingComments.length; n++) { - this.state.leadingComments[n].end < this.state.commentPreviousNode.end && (this.state.leadingComments.splice(n, 1), n--); - }this.state.leadingComments.length > 0 && (t.leadingComments = this.state.leadingComments, this.state.leadingComments = []); - } else { - for (a = 0; a < this.state.leadingComments.length && !(this.state.leadingComments[a].end > t.start); a++) {}var l = this.state.leadingComments.slice(0, a);t.leadingComments = 0 === l.length ? null : l, 0 === (r = this.state.leadingComments.slice(a)).length && (r = null); - }this.state.commentPreviousNode = t, r && (r.length && r[0].start >= t.start && p(r).end <= t.end ? t.innerComments = r : t.trailingComments = r), e.push(t); - } - }, e; - }(function () { - function t() {}return t.prototype.isReservedWord = function (t) { - return "await" === t ? this.inModule : S[6](t); - }, t.prototype.hasPlugin = function (t) { - return !!this.plugins[t]; - }, t; - }())), - X = function () { - function t() {}return t.prototype.init = function (t, e) { - this.strict = !1 !== t.strictMode && "module" === t.sourceType, this.input = e, this.potentialArrowAt = -1, this.noArrowAt = [], this.noArrowParamsConversionAt = [], this.inMethod = this.inFunction = this.inGenerator = this.inAsync = this.inPropertyName = this.inType = this.inClassProperty = this.noAnonFunctionType = !1, this.classLevel = 0, this.labels = [], this.decoratorStack = [[]], this.tokens = [], this.comments = [], this.trailingComments = [], this.leadingComments = [], this.commentStack = [], this.commentPreviousNode = null, this.pos = this.lineStart = 0, this.curLine = t.startLine, this.type = k.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 = [V.braceStatement], this.exprAllowed = !0, this.containsEsc = this.containsOctal = !1, this.octalPosition = null, this.invalidTemplateEscapePosition = null, this.exportedIdentifiers = []; - }, t.prototype.curPosition = function () { - return new U(this.curLine, this.pos - this.lineStart); - }, t.prototype.clone = function (e) { - var s = new t();for (var i in this) { - var r = this[i];e && "context" !== i || !Array.isArray(r) || (r = r.slice()), s[i] = r; - }return s; - }, t; - }(), - G = { decBinOct: [46, 66, 69, 79, 95, 98, 101, 111], hex: [46, 88, 95, 120] }, - H = {};H.bin = [48, 49], H.oct = [].concat(H.bin, [50, 51, 52, 53, 54, 55]), H.dec = [].concat(H.oct, [56, 57]), H.hex = [].concat(H.dec, [65, 66, 67, 68, 69, 70, 97, 98, 99, 100, 101, 102]);var J = function J(t) { - this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, this.loc = new W(t.startLoc, t.endLoc); - }, - $ = function (t) { - function e() { - return t.apply(this, arguments) || this; - }return T(e, t), e.prototype.addExtra = function (t, e, s) { - t && ((t.extra = t.extra || {})[e] = s); - }, e.prototype.isRelational = function (t) { - return this.match(k.relational) && this.state.value === t; - }, e.prototype.expectRelational = function (t) { - this.isRelational(t) ? this.next() : this.unexpected(null, k.relational); - }, e.prototype.eatRelational = function (t) { - return !!this.isRelational(t) && (this.next(), !0); - }, e.prototype.isContextual = function (t) { - return this.match(k.name) && this.state.value === t; - }, e.prototype.eatContextual = function (t) { - return this.state.value === t && this.eat(k.name); - }, e.prototype.expectContextual = function (t, e) { - this.eatContextual(t) || this.unexpected(null, e); - }, e.prototype.canInsertSemicolon = function () { - return this.match(k.eof) || this.match(k.braceR) || this.hasPrecedingLineBreak(); - }, e.prototype.hasPrecedingLineBreak = function () { - return j.test(this.input.slice(this.state.lastTokEnd, this.state.start)); - }, e.prototype.isLineTerminator = function () { - return this.eat(k.semi) || this.canInsertSemicolon(); - }, e.prototype.semicolon = function () { - this.isLineTerminator() || this.unexpected(null, k.semi); - }, e.prototype.expect = function (t, e) { - this.eat(t) || this.unexpected(e, t); - }, e.prototype.unexpected = function (t, e) { - throw void 0 === e && (e = "Unexpected token"), "string" != typeof e && (e = "Unexpected token, expected " + e.label), this.raise(null != t ? t : this.state.start, e); - }, e.prototype.expectPlugin = function (t, e) { - if (!this.hasPlugin(t)) throw this.raise(null != e ? e : this.state.start, "This experimental syntax requires enabling the parser plugin: '" + t + "'", [t]); - }, e.prototype.expectOnePlugin = function (t, e) { - var s = this;if (!t.some(function (t) { - return s.hasPlugin(t); - })) throw this.raise(null != e ? e : this.state.start, "This experimental syntax requires enabling one of the following parser plugin(s): '" + t.join(", ") + "'", t); - }, e; - }(function (t) { - function e(e, s) { - var i;return i = t.call(this) || this, i.state = new X(), i.state.init(e, s), i.isLookahead = !1, i; - }return T(e, t), e.prototype.next = function () { - this.options.tokens && !this.isLookahead && this.state.tokens.push(new J(this.state)), this.state.lastTokEnd = this.state.end, this.state.lastTokStart = this.state.start, this.state.lastTokEndLoc = this.state.endLoc, this.state.lastTokStartLoc = this.state.startLoc, this.nextToken(); - }, e.prototype.eat = function (t) { - return !!this.match(t) && (this.next(), !0); - }, e.prototype.match = function (t) { - return this.state.type === t; - }, e.prototype.isKeyword = function (t) { - return L(t); - }, e.prototype.lookahead = function () { - var t = this.state;this.state = t.clone(!0), this.isLookahead = !0, this.next(), this.isLookahead = !1;var e = this.state;return this.state = t, e; - }, e.prototype.setStrict = function (t) { - if (this.state.strict = t, this.match(k.num) || this.match(k.string)) { - for (this.state.pos = this.state.start; this.state.pos < this.state.lineStart;) { - this.state.lineStart = this.input.lastIndexOf("\n", this.state.lineStart - 2) + 1, --this.state.curLine; - }this.nextToken(); - } - }, e.prototype.curContext = function () { - return this.state.context[this.state.context.length - 1]; - }, e.prototype.nextToken = function () { - var t = this.curContext();t && t.preserveSpace || this.skipSpace(), this.state.containsOctal = !1, this.state.octalPosition = null, this.state.start = this.state.pos, this.state.startLoc = this.state.curPosition(), this.state.pos >= this.input.length ? this.finishToken(k.eof) : t.override ? t.override(this) : this.readToken(this.fullCharCodeAtPos()); - }, e.prototype.readToken = function (t) { - a(t) || 92 === t ? this.readWord() : this.getTokenFromCode(t); - }, e.prototype.fullCharCodeAtPos = function () { - var t = this.input.charCodeAt(this.state.pos);return t <= 55295 || t >= 57344 ? t : (t << 10) + this.input.charCodeAt(this.state.pos + 1) - 56613888; - }, e.prototype.pushComment = function (t, e, s, i, r, a) { - var n = { type: t ? "CommentBlock" : "CommentLine", value: e, start: s, end: i, loc: new W(r, a) };this.isLookahead || (this.options.tokens && this.state.tokens.push(n), this.state.comments.push(n), this.addComment(n)); - }, e.prototype.skipBlockComment = function () { - var t = this.state.curPosition(), - e = this.state.pos, - s = this.input.indexOf("*/", this.state.pos += 2);-1 === s && this.raise(this.state.pos - 2, "Unterminated comment"), this.state.pos = s + 2, F.lastIndex = e;for (var i = void 0; (i = F.exec(this.input)) && i.index < this.state.pos;) { - ++this.state.curLine, this.state.lineStart = i.index + i[0].length; - }this.pushComment(!0, this.input.slice(e + 2, s), e, this.state.pos, t, this.state.curPosition()); - }, e.prototype.skipLineComment = function (t) { - var e = this.state.pos, - s = this.state.curPosition(), - i = this.input.charCodeAt(this.state.pos += t);if (this.state.pos < this.input.length) for (; 10 !== i && 13 !== i && 8232 !== i && 8233 !== i && ++this.state.pos < this.input.length;) { - i = this.input.charCodeAt(this.state.pos); - }this.pushComment(!1, this.input.slice(e + t, this.state.pos), e, this.state.pos, s, this.state.curPosition()); - }, e.prototype.skipSpace = function () { - t: for (; this.state.pos < this.input.length;) { - var t = this.input.charCodeAt(this.state.pos);switch (t) {case 32:case 160: - ++this.state.pos;break;case 13: - 10 === this.input.charCodeAt(this.state.pos + 1) && ++this.state.pos;case 10:case 8232:case 8233: - ++this.state.pos, ++this.state.curLine, this.state.lineStart = this.state.pos;break;case 47: - switch (this.input.charCodeAt(this.state.pos + 1)) {case 42: - this.skipBlockComment();break;case 47: - this.skipLineComment(2);break;default: - break t;}break;default: - if (!(t > 8 && t < 14 || t >= 5760 && B.test(String.fromCharCode(t)))) break t;++this.state.pos;} - } - }, e.prototype.finishToken = function (t, e) { - this.state.end = this.state.pos, this.state.endLoc = this.state.curPosition();var s = this.state.type;this.state.type = t, this.state.value = e, this.updateContext(s); - }, e.prototype.readToken_dot = function () { - var t = this.input.charCodeAt(this.state.pos + 1);if (t >= 48 && t <= 57) this.readNumber(!0);else { - var e = this.input.charCodeAt(this.state.pos + 2);46 === t && 46 === e ? (this.state.pos += 3, this.finishToken(k.ellipsis)) : (++this.state.pos, this.finishToken(k.dot)); - } - }, e.prototype.readToken_slash = function () { - if (this.state.exprAllowed) return ++this.state.pos, void this.readRegexp();61 === this.input.charCodeAt(this.state.pos + 1) ? this.finishOp(k.assign, 2) : this.finishOp(k.slash, 1); - }, e.prototype.readToken_mult_modulo = function (t) { - var e = 42 === t ? k.star : k.modulo, - s = 1, - i = this.input.charCodeAt(this.state.pos + 1);42 === t && 42 === i && (s++, i = this.input.charCodeAt(this.state.pos + 2), e = k.exponent), 61 === i && (s++, e = k.assign), this.finishOp(e, s); - }, e.prototype.readToken_pipe_amp = function (t) { - var e = this.input.charCodeAt(this.state.pos + 1);if (e !== t) { - if (124 === t) { - if (62 === e) return void this.finishOp(k.pipeline, 2);if (125 === e && this.hasPlugin("flow")) return void this.finishOp(k.braceBarR, 2); - }61 !== e ? this.finishOp(124 === t ? k.bitwiseOR : k.bitwiseAND, 1) : this.finishOp(k.assign, 2); - } else this.finishOp(124 === t ? k.logicalOR : k.logicalAND, 2); - }, e.prototype.readToken_caret = function () { - 61 === this.input.charCodeAt(this.state.pos + 1) ? this.finishOp(k.assign, 2) : this.finishOp(k.bitwiseXOR, 1); - }, e.prototype.readToken_plus_min = function (t) { - var e = this.input.charCodeAt(this.state.pos + 1);if (e === t) return 45 === e && !this.inModule && 62 === this.input.charCodeAt(this.state.pos + 2) && j.test(this.input.slice(this.state.lastTokEnd, this.state.pos)) ? (this.skipLineComment(3), this.skipSpace(), void this.nextToken()) : void this.finishOp(k.incDec, 2);61 === e ? this.finishOp(k.assign, 2) : this.finishOp(k.plusMin, 1); - }, e.prototype.readToken_lt_gt = function (t) { - var e = this.input.charCodeAt(this.state.pos + 1), - s = 1;return e === t ? (s = 62 === t && 62 === this.input.charCodeAt(this.state.pos + 2) ? 3 : 2, 61 === this.input.charCodeAt(this.state.pos + s) ? void this.finishOp(k.assign, s + 1) : void this.finishOp(k.bitShift, s)) : 33 !== e || 60 !== t || this.inModule || 45 !== this.input.charCodeAt(this.state.pos + 2) || 45 !== this.input.charCodeAt(this.state.pos + 3) ? (61 === e && (s = 2), void this.finishOp(k.relational, s)) : (this.skipLineComment(4), this.skipSpace(), void this.nextToken()); - }, e.prototype.readToken_eq_excl = function (t) { - var e = this.input.charCodeAt(this.state.pos + 1);if (61 !== e) return 61 === t && 62 === e ? (this.state.pos += 2, void this.finishToken(k.arrow)) : void this.finishOp(61 === t ? k.eq : k.bang, 1);this.finishOp(k.equality, 61 === this.input.charCodeAt(this.state.pos + 2) ? 3 : 2); - }, e.prototype.readToken_question = function () { - var t = this.input.charCodeAt(this.state.pos + 1), - e = this.input.charCodeAt(this.state.pos + 2);63 === t ? this.finishOp(k.nullishCoalescing, 2) : 46 !== t || e >= 48 && e <= 57 ? (++this.state.pos, this.finishToken(k.question)) : (this.state.pos += 2, this.finishToken(k.questionDot)); - }, e.prototype.getTokenFromCode = function (t) { - switch (t) {case 35: - if ((this.hasPlugin("classPrivateProperties") || this.hasPlugin("classPrivateMethods")) && this.state.classLevel > 0) return ++this.state.pos, void this.finishToken(k.hash);this.raise(this.state.pos, "Unexpected character '" + c(t) + "'");case 46: - return void this.readToken_dot();case 40: - return ++this.state.pos, void this.finishToken(k.parenL);case 41: - return ++this.state.pos, void this.finishToken(k.parenR);case 59: - return ++this.state.pos, void this.finishToken(k.semi);case 44: - return ++this.state.pos, void this.finishToken(k.comma);case 91: - return ++this.state.pos, void this.finishToken(k.bracketL);case 93: - return ++this.state.pos, void this.finishToken(k.bracketR);case 123: - return void (this.hasPlugin("flow") && 124 === this.input.charCodeAt(this.state.pos + 1) ? this.finishOp(k.braceBarL, 2) : (++this.state.pos, this.finishToken(k.braceL)));case 125: - return ++this.state.pos, void this.finishToken(k.braceR);case 58: - return void (this.hasPlugin("functionBind") && 58 === this.input.charCodeAt(this.state.pos + 1) ? this.finishOp(k.doubleColon, 2) : (++this.state.pos, this.finishToken(k.colon)));case 63: - return void this.readToken_question();case 64: - return ++this.state.pos, void this.finishToken(k.at);case 96: - return ++this.state.pos, void this.finishToken(k.backQuote);case 48: - var e = this.input.charCodeAt(this.state.pos + 1);if (120 === e || 88 === e) return void this.readRadixNumber(16);if (111 === e || 79 === e) return void this.readRadixNumber(8);if (98 === e || 66 === e) return void this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57: - return void this.readNumber(!1);case 34:case 39: - return void this.readString(t);case 47: - return void this.readToken_slash();case 37:case 42: - return void this.readToken_mult_modulo(t);case 124:case 38: - return void this.readToken_pipe_amp(t);case 94: - return void this.readToken_caret();case 43:case 45: - return void this.readToken_plus_min(t);case 60:case 62: - return void this.readToken_lt_gt(t);case 61:case 33: - return void this.readToken_eq_excl(t);case 126: - return void this.finishOp(k.tilde, 1);}this.raise(this.state.pos, "Unexpected character '" + c(t) + "'"); - }, e.prototype.finishOp = function (t, e) { - var s = this.input.slice(this.state.pos, this.state.pos + e);this.state.pos += e, this.finishToken(t, s); - }, e.prototype.readRegexp = function () { - for (var t = this.state.pos, e = void 0, s = void 0;;) { - this.state.pos >= this.input.length && this.raise(t, "Unterminated regular expression");var i = this.input.charAt(this.state.pos);if (j.test(i) && this.raise(t, "Unterminated regular expression"), e) e = !1;else { - if ("[" === i) s = !0;else if ("]" === i && s) s = !1;else if ("/" === i && !s) break;e = "\\" === i; - }++this.state.pos; - }var r = this.input.slice(t, this.state.pos);++this.state.pos;var a = this.readWord1();a && (/^[gmsiyu]*$/.test(a) || this.raise(t, "Invalid regular expression flag")), this.finishToken(k.regexp, { pattern: r, flags: a }); - }, e.prototype.readInt = function (t, e) { - for (var s = this.state.pos, i = 16 === t ? G.hex : G.decBinOct, r = 16 === t ? H.hex : 10 === t ? H.dec : 8 === t ? H.oct : H.bin, a = 0, n = 0, o = null == e ? 1 / 0 : e; n < o; ++n) { - var h = this.input.charCodeAt(this.state.pos), - p = void 0;if (this.hasPlugin("numericSeparator")) { - var c = this.input.charCodeAt(this.state.pos - 1), - l = this.input.charCodeAt(this.state.pos + 1);if (95 === h) { - -1 === r.indexOf(l) && this.raise(this.state.pos, "Invalid or unexpected token"), (i.indexOf(c) > -1 || i.indexOf(l) > -1 || Number.isNaN(l)) && this.raise(this.state.pos, "Invalid or unexpected token"), ++this.state.pos;continue; - } - }if ((p = h >= 97 ? h - 97 + 10 : h >= 65 ? h - 65 + 10 : h >= 48 && h <= 57 ? h - 48 : 1 / 0) >= t) break;++this.state.pos, a = a * t + p; - }return this.state.pos === s || null != e && this.state.pos - s !== e ? null : a; - }, e.prototype.readRadixNumber = function (t) { - var e = this.state.pos, - s = !1;this.state.pos += 2;var i = this.readInt(t);if (null == i && this.raise(this.state.start + 2, "Expected number in radix " + t), this.hasPlugin("bigInt") && 110 === this.input.charCodeAt(this.state.pos) && (++this.state.pos, s = !0), a(this.fullCharCodeAtPos()) && this.raise(this.state.pos, "Identifier directly after number"), s) { - var r = this.input.slice(e, this.state.pos).replace(/[_n]/g, "");this.finishToken(k.bigint, r); - } else this.finishToken(k.num, i); - }, e.prototype.readNumber = function (t) { - var e = this.state.pos, - s = 48 === this.input.charCodeAt(e), - i = !1, - r = !1;t || null !== this.readInt(10) || this.raise(e, "Invalid number"), s && this.state.pos == e + 1 && (s = !1);var n = this.input.charCodeAt(this.state.pos);46 !== n || s || (++this.state.pos, this.readInt(10), i = !0, n = this.input.charCodeAt(this.state.pos)), 69 !== n && 101 !== n || s || (43 !== (n = this.input.charCodeAt(++this.state.pos)) && 45 !== n || ++this.state.pos, null === this.readInt(10) && this.raise(e, "Invalid number"), i = !0, n = this.input.charCodeAt(this.state.pos)), this.hasPlugin("bigInt") && 110 === n && ((i || s) && this.raise(e, "Invalid BigIntLiteral"), ++this.state.pos, r = !0), a(this.fullCharCodeAtPos()) && this.raise(this.state.pos, "Identifier directly after number");var o = this.input.slice(e, this.state.pos).replace(/[_n]/g, "");if (r) this.finishToken(k.bigint, o);else { - var h = void 0;i ? h = parseFloat(o) : s && 1 !== o.length ? this.state.strict ? this.raise(e, "Invalid number") : h = /[89]/.test(o) ? parseInt(o, 10) : parseInt(o, 8) : h = parseInt(o, 10), this.finishToken(k.num, h); - } - }, e.prototype.readCodePoint = function (t) { - var e = void 0;if (123 === this.input.charCodeAt(this.state.pos)) { - var s = ++this.state.pos;if (e = this.readHexChar(this.input.indexOf("}", this.state.pos) - this.state.pos, t), ++this.state.pos, null === e) --this.state.invalidTemplateEscapePosition;else if (e > 1114111) { - if (!t) return this.state.invalidTemplateEscapePosition = s - 2, null;this.raise(s, "Code point out of bounds"); - } - } else e = this.readHexChar(4, t);return e; - }, e.prototype.readString = function (t) { - for (var e = "", s = ++this.state.pos;;) { - this.state.pos >= this.input.length && this.raise(this.state.start, "Unterminated string constant");var i = this.input.charCodeAt(this.state.pos);if (i === t) break;92 === i ? (e += this.input.slice(s, this.state.pos), e += this.readEscapedChar(!1), s = this.state.pos) : (o(i) && this.raise(this.state.start, "Unterminated string constant"), ++this.state.pos); - }e += this.input.slice(s, this.state.pos++), this.finishToken(k.string, e); - }, e.prototype.readTmplToken = function () { - for (var t = "", e = this.state.pos, s = !1;;) { - this.state.pos >= this.input.length && this.raise(this.state.start, "Unterminated template");var i = this.input.charCodeAt(this.state.pos);if (96 === i || 36 === i && 123 === this.input.charCodeAt(this.state.pos + 1)) return this.state.pos === this.state.start && this.match(k.template) ? 36 === i ? (this.state.pos += 2, void this.finishToken(k.dollarBraceL)) : (++this.state.pos, void this.finishToken(k.backQuote)) : (t += this.input.slice(e, this.state.pos), void this.finishToken(k.template, s ? null : t));if (92 === i) { - t += this.input.slice(e, this.state.pos);var r = this.readEscapedChar(!0);null === r ? s = !0 : t += r, e = this.state.pos; - } else if (o(i)) { - switch (t += this.input.slice(e, this.state.pos), ++this.state.pos, i) {case 13: - 10 === this.input.charCodeAt(this.state.pos) && ++this.state.pos;case 10: - t += "\n";break;default: - t += String.fromCharCode(i);}++this.state.curLine, this.state.lineStart = this.state.pos, e = this.state.pos; - } else ++this.state.pos; - } - }, e.prototype.readEscapedChar = function (t) { - var e = !t, - s = this.input.charCodeAt(++this.state.pos);switch (++this.state.pos, s) {case 110: - return "\n";case 114: - return "\r";case 120: - var i = this.readHexChar(2, e);return null === i ? null : String.fromCharCode(i);case 117: - var r = this.readCodePoint(e);return null === r ? null : c(r);case 116: - return "\t";case 98: - return "\b";case 118: - return "\v";case 102: - return "\f";case 13: - 10 === this.input.charCodeAt(this.state.pos) && ++this.state.pos;case 10: - return this.state.lineStart = this.state.pos, ++this.state.curLine, "";default: - if (s >= 48 && s <= 55) { - var a = this.state.pos - 1, - n = this.input.substr(this.state.pos - 1, 3).match(/^[0-7]+/)[0], - o = parseInt(n, 8);if (o > 255 && (n = n.slice(0, -1), o = parseInt(n, 8)), o > 0) { - if (t) return this.state.invalidTemplateEscapePosition = a, null;this.state.strict ? this.raise(a, "Octal literal in strict mode") : this.state.containsOctal || (this.state.containsOctal = !0, this.state.octalPosition = a); - }return this.state.pos += n.length - 1, String.fromCharCode(o); - }return String.fromCharCode(s);} - }, e.prototype.readHexChar = function (t, e) { - var s = this.state.pos, - i = this.readInt(16, t);return null === i && (e ? this.raise(s, "Bad character escape sequence") : (this.state.pos = s - 1, this.state.invalidTemplateEscapePosition = s - 1)), i; - }, e.prototype.readWord1 = function () { - this.state.containsEsc = !1;for (var t = "", e = !0, s = this.state.pos; this.state.pos < this.input.length;) { - var i = this.fullCharCodeAtPos();if (n(i)) this.state.pos += i <= 65535 ? 1 : 2;else { - if (92 !== i) break;this.state.containsEsc = !0, t += this.input.slice(s, this.state.pos);var r = this.state.pos;117 !== this.input.charCodeAt(++this.state.pos) && this.raise(this.state.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.state.pos;var o = this.readCodePoint(!0);(e ? a : n)(o, !0) || this.raise(r, "Invalid Unicode escape"), t += c(o), s = this.state.pos; - }e = !1; - }return t + this.input.slice(s, this.state.pos); - }, e.prototype.readWord = function () { - var t = this.readWord1(), - e = k.name;this.isKeyword(t) && (this.state.containsEsc && this.raise(this.state.pos, "Escape sequence in keyword " + t), e = E[t]), this.finishToken(e, t); - }, e.prototype.braceIsBlock = function (t) { - if (t === k.colon) { - var e = this.curContext();if (e === V.braceStatement || e === V.braceExpression) return !e.isExpr; - }return t === k._return ? j.test(this.input.slice(this.state.lastTokEnd, this.state.start)) : t === k._else || t === k.semi || t === k.eof || t === k.parenR || (t === k.braceL ? this.curContext() === V.braceStatement : t === k.relational || !this.state.exprAllowed); - }, e.prototype.updateContext = function (t) { - var e = this.state.type, - s = void 0;!e.keyword || t !== k.dot && t !== k.questionDot ? (s = e.updateContext) ? s.call(this, t) : this.state.exprAllowed = e.beforeExpr : this.state.exprAllowed = !1; - }, e; - }(K)), - z = ["leadingComments", "trailingComments", "innerComments"], - Q = function () { - function t(t, e, s) { - this.type = "", this.start = e, this.end = 0, this.loc = new W(s), t && t.options.ranges && (this.range = [e, 0]), t && t.filename && (this.loc.filename = t.filename); - }return t.prototype.__clone = function () { - var e = new t();for (var s in this) { - z.indexOf(s) < 0 && (e[s] = this[s]); - }return e; - }, t; - }(), - Y = [], - Z = { kind: "loop" }, - tt = { kind: "switch" }, - et = {}, - st = function (t) { - function e(e, i) { - var r;return e = s(e), r = t.call(this, e, i) || this, r.options = e, r.inModule = "module" === r.options.sourceType, r.input = i, r.plugins = l(r.options.plugins), r.filename = e.sourceFilename, 0 === r.state.pos && "#" === r.input[0] && "!" === r.input[1] && r.skipLineComment(2), r; - }return T(e, t), e.prototype.parse = function () { - var t = this.startNode(), - e = this.startNode();return this.nextToken(), this.parseTopLevel(t, e); - }, e; - }(function (t) { - function e() { - return t.apply(this, arguments) || this; - }return T(e, t), e.prototype.parseTopLevel = function (t, e) { - return e.sourceType = this.options.sourceType, this.parseBlockBody(e, !0, !0, k.eof), t.program = this.finishNode(e, "Program"), t.comments = this.state.comments, this.options.tokens && (t.tokens = this.state.tokens), this.finishNode(t, "File"); - }, e.prototype.stmtToDirective = function (t) { - var e = t.expression, - s = this.startNodeAt(e.start, e.loc.start), - i = this.startNodeAt(t.start, t.loc.start), - r = this.input.slice(e.start, e.end), - a = s.value = r.slice(1, -1);return this.addExtra(s, "raw", r), this.addExtra(s, "rawValue", a), i.value = this.finishNodeAt(s, "DirectiveLiteral", e.end, e.loc.end), this.finishNodeAt(i, "Directive", t.end, t.loc.end); - }, e.prototype.parseStatement = function (t, e) { - return this.match(k.at) && this.parseDecorators(!0), this.parseStatementContent(t, e); - }, e.prototype.parseStatementContent = function (t, e) { - var s = this.state.type, - i = this.startNode();switch (s) {case k._break:case k._continue: - return this.parseBreakContinueStatement(i, s.keyword);case k._debugger: - return this.parseDebuggerStatement(i);case k._do: - return this.parseDoStatement(i);case k._for: - return this.parseForStatement(i);case k._function: - if (this.lookahead().type === k.dot) break;return t || this.unexpected(), this.parseFunctionStatement(i);case k._class: - return t || this.unexpected(), this.parseClass(i, !0);case k._if: - return this.parseIfStatement(i);case k._return: - return this.parseReturnStatement(i);case k._switch: - return this.parseSwitchStatement(i);case k._throw: - return this.parseThrowStatement(i);case k._try: - return this.parseTryStatement(i);case k._let:case k._const: - t || this.unexpected();case k._var: - return this.parseVarStatement(i, s);case k._while: - return this.parseWhileStatement(i);case k._with: - return this.parseWithStatement(i);case k.braceL: - return this.parseBlock();case k.semi: - return this.parseEmptyStatement(i);case k._export:case k._import: - if (this.hasPlugin("dynamicImport") && this.lookahead().type === k.parenL || this.hasPlugin("importMeta") && this.lookahead().type === k.dot) break;return this.options.allowImportExportEverywhere || (e || this.raise(this.state.start, "'import' and 'export' may only appear at the top level"), this.inModule || this.raise(this.state.start, "'import' and 'export' may appear only with 'sourceType: \"module\"'")), this.next(), s == k._import ? this.parseImport(i) : this.parseExport(i);case k.name: - if ("async" === this.state.value) { - var r = this.state.clone();if (this.next(), this.match(k._function) && !this.canInsertSemicolon()) return this.expect(k._function), this.parseFunction(i, !0, !1, !0);this.state = r; - }}var a = this.state.value, - n = this.parseExpression();return s === k.name && "Identifier" === n.type && this.eat(k.colon) ? this.parseLabeledStatement(i, a, n) : this.parseExpressionStatement(i, n); - }, e.prototype.takeDecorators = function (t) { - var e = this.state.decoratorStack[this.state.decoratorStack.length - 1];e.length && (t.decorators = e, this.resetStartLocationFromNode(t, e[0]), this.state.decoratorStack[this.state.decoratorStack.length - 1] = []); - }, e.prototype.parseDecorators = function (t) { - this.hasPlugin("decorators2") && (t = !1);for (var e = this.state.decoratorStack[this.state.decoratorStack.length - 1]; this.match(k.at);) { - var s = this.parseDecorator();e.push(s); - }if (this.match(k._export)) { - if (t) return;this.raise(this.state.start, "Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead"); - }this.match(k._class) || this.raise(this.state.start, "Leading decorators must be attached to a class declaration"); - }, e.prototype.parseDecorator = function () { - this.expectOnePlugin(["decorators", "decorators2"]);var t = this.startNode();if (this.next(), this.hasPlugin("decorators2")) { - for (var e = this.state.start, s = this.state.startLoc, i = this.parseIdentifier(!1); this.eat(k.dot);) { - var r = this.startNodeAt(e, s);r.object = i, r.property = this.parseIdentifier(!0), r.computed = !1, i = this.finishNode(r, "MemberExpression"); - }if (this.eat(k.parenL)) { - var a = this.startNodeAt(e, s);a.callee = i, this.state.decoratorStack.push([]), a.arguments = this.parseCallExpressionArguments(k.parenR, !1), this.state.decoratorStack.pop(), i = this.finishNode(a, "CallExpression"), this.toReferencedList(i.arguments); - }t.expression = i; - } else t.expression = this.parseMaybeAssign();return this.finishNode(t, "Decorator"); - }, e.prototype.parseBreakContinueStatement = function (t, e) { - var s = "break" === e;this.next(), this.isLineTerminator() ? t.label = null : this.match(k.name) ? (t.label = this.parseIdentifier(), this.semicolon()) : this.unexpected();var i = void 0;for (i = 0; i < this.state.labels.length; ++i) { - var r = this.state.labels[i];if (null == t.label || r.name === t.label.name) { - if (null != r.kind && (s || "loop" === r.kind)) break;if (t.label && s) break; - } - }return i === this.state.labels.length && this.raise(t.start, "Unsyntactic " + e), this.finishNode(t, s ? "BreakStatement" : "ContinueStatement"); - }, e.prototype.parseDebuggerStatement = function (t) { - return this.next(), this.semicolon(), this.finishNode(t, "DebuggerStatement"); - }, e.prototype.parseDoStatement = function (t) { - return this.next(), this.state.labels.push(Z), t.body = this.parseStatement(!1), this.state.labels.pop(), this.expect(k._while), t.test = this.parseParenExpression(), this.eat(k.semi), this.finishNode(t, "DoWhileStatement"); - }, e.prototype.parseForStatement = function (t) { - this.next(), this.state.labels.push(Z);var e = !1;if (this.state.inAsync && this.isContextual("await") && (this.expectPlugin("asyncGenerators"), e = !0, this.next()), this.expect(k.parenL), this.match(k.semi)) return e && this.unexpected(), this.parseFor(t, null);if (this.match(k._var) || this.match(k._let) || this.match(k._const)) { - var s = this.startNode(), - i = this.state.type;return this.next(), this.parseVar(s, !0, i), this.finishNode(s, "VariableDeclaration"), !this.match(k._in) && !this.isContextual("of") || 1 !== s.declarations.length || s.declarations[0].init ? (e && this.unexpected(), this.parseFor(t, s)) : this.parseForIn(t, s, e); - }var r = { start: 0 }, - a = this.parseExpression(!0, r);if (this.match(k._in) || this.isContextual("of")) { - var n = this.isContextual("of") ? "for-of statement" : "for-in statement";return this.toAssignable(a, void 0, n), this.checkLVal(a, void 0, void 0, n), this.parseForIn(t, a, e); - }return r.start && this.unexpected(r.start), e && this.unexpected(), this.parseFor(t, a); - }, e.prototype.parseFunctionStatement = function (t) { - return this.next(), this.parseFunction(t, !0); - }, e.prototype.parseIfStatement = function (t) { - return this.next(), t.test = this.parseParenExpression(), t.consequent = this.parseStatement(!1), t.alternate = this.eat(k._else) ? this.parseStatement(!1) : null, this.finishNode(t, "IfStatement"); - }, e.prototype.parseReturnStatement = function (t) { - return this.state.inFunction || this.options.allowReturnOutsideFunction || this.raise(this.state.start, "'return' outside of function"), this.next(), this.isLineTerminator() ? t.argument = null : (t.argument = this.parseExpression(), this.semicolon()), this.finishNode(t, "ReturnStatement"); - }, e.prototype.parseSwitchStatement = function (t) { - this.next(), t.discriminant = this.parseParenExpression();var e = t.cases = [];this.expect(k.braceL), this.state.labels.push(tt);for (var s, i = void 0; !this.match(k.braceR);) { - if (this.match(k._case) || this.match(k._default)) { - var r = this.match(k._case);i && this.finishNode(i, "SwitchCase"), e.push(i = this.startNode()), i.consequent = [], this.next(), r ? i.test = this.parseExpression() : (s && this.raise(this.state.lastTokStart, "Multiple default clauses"), s = !0, i.test = null), this.expect(k.colon); - } else i ? i.consequent.push(this.parseStatement(!0)) : this.unexpected(); - }return i && this.finishNode(i, "SwitchCase"), this.next(), this.state.labels.pop(), this.finishNode(t, "SwitchStatement"); - }, e.prototype.parseThrowStatement = function (t) { - return this.next(), j.test(this.input.slice(this.state.lastTokEnd, this.state.start)) && this.raise(this.state.lastTokEnd, "Illegal newline after throw"), t.argument = this.parseExpression(), this.semicolon(), this.finishNode(t, "ThrowStatement"); - }, e.prototype.parseTryStatement = function (t) { - if (this.next(), t.block = this.parseBlock(), t.handler = null, this.match(k._catch)) { - var e = this.startNode();if (this.next(), this.match(k.parenL)) { - this.expect(k.parenL), e.param = this.parseBindingAtom();var s = Object.create(null);this.checkLVal(e.param, !0, s, "catch clause"), this.expect(k.parenR); - } else this.expectPlugin("optionalCatchBinding"), e.param = null;e.body = this.parseBlock(), t.handler = this.finishNode(e, "CatchClause"); - }return t.guardedHandlers = Y, t.finalizer = this.eat(k._finally) ? this.parseBlock() : null, t.handler || t.finalizer || this.raise(t.start, "Missing catch or finally clause"), this.finishNode(t, "TryStatement"); - }, e.prototype.parseVarStatement = function (t, e) { - return this.next(), this.parseVar(t, !1, e), this.semicolon(), this.finishNode(t, "VariableDeclaration"); - }, e.prototype.parseWhileStatement = function (t) { - return this.next(), t.test = this.parseParenExpression(), this.state.labels.push(Z), t.body = this.parseStatement(!1), this.state.labels.pop(), this.finishNode(t, "WhileStatement"); - }, e.prototype.parseWithStatement = function (t) { - return this.state.strict && this.raise(this.state.start, "'with' in strict mode"), this.next(), t.object = this.parseParenExpression(), t.body = this.parseStatement(!1), this.finishNode(t, "WithStatement"); - }, e.prototype.parseEmptyStatement = function (t) { - return this.next(), this.finishNode(t, "EmptyStatement"); - }, e.prototype.parseLabeledStatement = function (t, e, s) { - for (var i = this.state.labels, r = Array.isArray(i), a = 0, i = r ? i : i[Symbol.iterator]();;) { - var n;if (r) { - if (a >= i.length) break;n = i[a++]; - } else { - if ((a = i.next()).done) break;n = a.value; - }n.name === e && this.raise(s.start, "Label '" + e + "' is already declared"); - }for (var o = this.state.type.isLoop ? "loop" : this.match(k._switch) ? "switch" : null, h = this.state.labels.length - 1; h >= 0; h--) { - var p = this.state.labels[h];if (p.statementStart !== t.start) break;p.statementStart = this.state.start, p.kind = o; - }return this.state.labels.push({ name: e, kind: o, statementStart: this.state.start }), t.body = this.parseStatement(!0), ("ClassDeclaration" == t.body.type || "VariableDeclaration" == t.body.type && "var" !== t.body.kind || "FunctionDeclaration" == t.body.type && (this.state.strict || t.body.generator || t.body.async)) && this.raise(t.body.start, "Invalid labeled declaration"), this.state.labels.pop(), t.label = s, this.finishNode(t, "LabeledStatement"); - }, e.prototype.parseExpressionStatement = function (t, e) { - return t.expression = e, this.semicolon(), this.finishNode(t, "ExpressionStatement"); - }, e.prototype.parseBlock = function (t) { - var e = this.startNode();return this.expect(k.braceL), this.parseBlockBody(e, t, !1, k.braceR), this.finishNode(e, "BlockStatement"); - }, e.prototype.isValidDirective = function (t) { - return "ExpressionStatement" === t.type && "StringLiteral" === t.expression.type && !t.expression.extra.parenthesized; - }, e.prototype.parseBlockBody = function (t, e, s, i) { - var r = t.body = [], - a = t.directives = [];this.parseBlockOrModuleBlockBody(r, e ? a : void 0, s, i); - }, e.prototype.parseBlockOrModuleBlockBody = function (t, e, s, i) { - for (var r = !1, a = void 0, n = void 0; !this.eat(i);) { - r || !this.state.containsOctal || n || (n = this.state.octalPosition);var o = this.parseStatement(!0, s);if (e && !r && this.isValidDirective(o)) { - var h = this.stmtToDirective(o);e.push(h), void 0 === a && "use strict" === h.value.value && (a = this.state.strict, this.setStrict(!0), n && this.raise(n, "Octal literal in strict mode")); - } else r = !0, t.push(o); - }!1 === a && this.setStrict(!1); - }, e.prototype.parseFor = function (t, e) { - return t.init = e, this.expect(k.semi), t.test = this.match(k.semi) ? null : this.parseExpression(), this.expect(k.semi), t.update = this.match(k.parenR) ? null : this.parseExpression(), this.expect(k.parenR), t.body = this.parseStatement(!1), this.state.labels.pop(), this.finishNode(t, "ForStatement"); - }, e.prototype.parseForIn = function (t, e, s) { - var i = this.match(k._in) ? "ForInStatement" : "ForOfStatement";return s ? this.eatContextual("of") : this.next(), "ForOfStatement" === i && (t.await = !!s), t.left = e, t.right = this.parseExpression(), this.expect(k.parenR), t.body = this.parseStatement(!1), this.state.labels.pop(), this.finishNode(t, i); - }, e.prototype.parseVar = function (t, e, s) { - var i = t.declarations = [];for (t.kind = s.keyword;;) { - var r = this.startNode();if (this.parseVarHead(r), this.eat(k.eq) ? r.init = this.parseMaybeAssign(e) : (s !== k._const || this.match(k._in) || this.isContextual("of") ? "Identifier" === r.id.type || e && (this.match(k._in) || this.isContextual("of")) || this.raise(this.state.lastTokEnd, "Complex binding patterns require an initialization value") : this.hasPlugin("typescript") || this.unexpected(), r.init = null), i.push(this.finishNode(r, "VariableDeclarator")), !this.eat(k.comma)) break; - }return t; - }, e.prototype.parseVarHead = function (t) { - t.id = this.parseBindingAtom(), this.checkLVal(t.id, !0, void 0, "variable declaration"); - }, e.prototype.parseFunction = function (t, e, s, i, r) { - var a = this.state.inMethod;return this.state.inMethod = !1, this.initFunction(t, i), this.match(k.star) && (t.async && this.expectPlugin("asyncGenerators"), t.generator = !0, this.next()), !e || r || this.match(k.name) || this.match(k._yield) || this.unexpected(), (this.match(k.name) || this.match(k._yield)) && (t.id = this.parseBindingIdentifier()), this.parseFunctionParams(t), this.parseFunctionBodyAndFinish(t, e ? "FunctionDeclaration" : "FunctionExpression", s), this.state.inMethod = a, t; - }, e.prototype.parseFunctionParams = function (t) { - this.expect(k.parenL), t.params = this.parseBindingList(k.parenR); - }, e.prototype.parseClass = function (t, e, s) { - return this.next(), this.takeDecorators(t), this.parseClassId(t, e, s), this.parseClassSuper(t), this.parseClassBody(t), this.finishNode(t, e ? "ClassDeclaration" : "ClassExpression"); - }, e.prototype.isClassProperty = function () { - return this.match(k.eq) || this.match(k.semi) || this.match(k.braceR); - }, e.prototype.isClassMethod = function () { - return this.match(k.parenL); - }, e.prototype.isNonstaticConstructor = function (t) { - return !(t.computed || t.static || "constructor" !== t.key.name && "constructor" !== t.key.value); - }, e.prototype.parseClassBody = function (t) { - var e = this.state.strict;this.state.strict = !0, this.state.classLevel++;var s = { hadConstructor: !1 }, - i = [], - r = this.startNode();for (r.body = [], this.expect(k.braceL); !this.eat(k.braceR);) { - if (this.eat(k.semi)) i.length > 0 && this.raise(this.state.lastTokEnd, "Decorators must not be followed by a semicolon");else if (this.match(k.at)) i.push(this.parseDecorator());else { - var a = this.startNode();i.length && (a.decorators = i, this.resetStartLocationFromNode(a, i[0]), i = []), this.parseClassMember(r, a, s), this.hasPlugin("decorators2") && "method" != a.kind && a.decorators && a.decorators.length > 0 && this.raise(a.start, "Stage 2 decorators may only be used with a class or a class method"); - } - }i.length && this.raise(this.state.start, "You have trailing decorators with no method"), t.body = this.finishNode(r, "ClassBody"), this.state.classLevel--, this.state.strict = e; - }, e.prototype.parseClassMember = function (t, e, s) { - var i = !1;if (this.match(k.name) && "static" === this.state.value) { - var r = this.parseIdentifier(!0);if (this.isClassMethod()) { - var a = e;return a.kind = "method", a.computed = !1, a.key = r, a.static = !1, void this.pushClassMethod(t, a, !1, !1, !1); - }if (this.isClassProperty()) { - var n = e;return n.computed = !1, n.key = r, n.static = !1, void t.body.push(this.parseClassProperty(n)); - }i = !0; - }this.parseClassMemberWithIsStatic(t, e, s, i); - }, e.prototype.parseClassMemberWithIsStatic = function (t, e, s, i) { - var r = e, - a = e, - n = e, - o = e, - h = r, - p = r;if (e.static = i, this.eat(k.star)) return h.kind = "method", this.parseClassPropertyName(h), "PrivateName" === h.key.type ? void this.pushClassPrivateMethod(t, a, !0, !1) : (this.isNonstaticConstructor(r) && this.raise(r.key.start, "Constructor can't be a generator"), void this.pushClassMethod(t, r, !0, !1, !1));var c = this.parseClassPropertyName(e), - l = "PrivateName" === c.type, - u = "Identifier" === c.type;if (this.parsePostMemberNameModifiers(p), this.isClassMethod()) { - if (h.kind = "method", l) return void this.pushClassPrivateMethod(t, a, !1, !1);var d = this.isNonstaticConstructor(r);d && (r.kind = "constructor", r.decorators && this.raise(r.start, "You can't attach decorators to a class constructor"), s.hadConstructor && !this.hasPlugin("typescript") && this.raise(c.start, "Duplicate constructor in the same class"), s.hadConstructor = !0), this.pushClassMethod(t, r, !1, !1, d); - } else if (this.isClassProperty()) l ? this.pushClassPrivateProperty(t, o) : this.pushClassProperty(t, n);else if (u && "async" === c.name && !this.isLineTerminator()) { - var f = this.match(k.star);f && (this.expectPlugin("asyncGenerators"), this.next()), h.kind = "method", this.parseClassPropertyName(h), "PrivateName" === h.key.type ? this.pushClassPrivateMethod(t, a, f, !0) : (this.isNonstaticConstructor(r) && this.raise(r.key.start, "Constructor can't be an async function"), this.pushClassMethod(t, r, f, !0, !1)); - } else !u || "get" !== c.name && "set" !== c.name || this.isLineTerminator() && this.match(k.star) ? this.isLineTerminator() ? l ? this.pushClassPrivateProperty(t, o) : this.pushClassProperty(t, n) : this.unexpected() : (h.kind = c.name, this.parseClassPropertyName(r), "PrivateName" === h.key.type ? this.pushClassPrivateMethod(t, a, !1, !1) : (this.isNonstaticConstructor(r) && this.raise(r.key.start, "Constructor can't have get/set modifier"), this.pushClassMethod(t, r, !1, !1, !1)), this.checkGetterSetterParamCount(r)); - }, e.prototype.parseClassPropertyName = function (t) { - var e = this.parsePropertyName(t);return t.computed || !t.static || "prototype" !== e.name && "prototype" !== e.value || this.raise(e.start, "Classes may not have static property named prototype"), "PrivateName" === e.type && "constructor" === e.id.name && this.raise(e.start, "Classes may not have a private field named '#constructor'"), e; - }, e.prototype.pushClassProperty = function (t, e) { - this.isNonstaticConstructor(e) && this.raise(e.key.start, "Classes may not have a non-static field named 'constructor'"), t.body.push(this.parseClassProperty(e)); - }, e.prototype.pushClassPrivateProperty = function (t, e) { - this.expectPlugin("classPrivateProperties", e.key.start), t.body.push(this.parseClassPrivateProperty(e)); - }, e.prototype.pushClassMethod = function (t, e, s, i, r) { - t.body.push(this.parseMethod(e, s, i, r, "ClassMethod")); - }, e.prototype.pushClassPrivateMethod = function (t, e, s, i) { - this.expectPlugin("classPrivateMethods", e.key.start), t.body.push(this.parseMethod(e, s, i, !1, "ClassPrivateMethod")); - }, e.prototype.parsePostMemberNameModifiers = function (t) {}, e.prototype.parseAccessModifier = function () {}, e.prototype.parseClassPrivateProperty = function (t) { - return this.state.inClassProperty = !0, t.value = this.eat(k.eq) ? this.parseMaybeAssign() : null, this.semicolon(), this.state.inClassProperty = !1, this.finishNode(t, "ClassPrivateProperty"); - }, e.prototype.parseClassProperty = function (t) { - return t.typeAnnotation || this.expectPlugin("classProperties"), this.state.inClassProperty = !0, this.match(k.eq) ? (this.expectPlugin("classProperties"), this.next(), t.value = this.parseMaybeAssign()) : t.value = null, this.semicolon(), this.state.inClassProperty = !1, this.finishNode(t, "ClassProperty"); - }, e.prototype.parseClassId = function (t, e, s) { - this.match(k.name) ? t.id = this.parseIdentifier() : s || !e ? t.id = null : this.unexpected(null, "A class name is required"); - }, e.prototype.parseClassSuper = function (t) { - t.superClass = this.eat(k._extends) ? this.parseExprSubscripts() : null; - }, e.prototype.parseExport = function (t) { - if (this.shouldParseExportStar()) { - if (this.parseExportStar(t, this.hasPlugin("exportExtensions")), "ExportAllDeclaration" === t.type) return t; - } else if (this.hasPlugin("exportExtensions") && this.isExportDefaultSpecifier()) { - var e = this.startNode();e.exported = this.parseIdentifier(!0);var s = [this.finishNode(e, "ExportDefaultSpecifier")];if (t.specifiers = s, this.match(k.comma) && this.lookahead().type === k.star) { - this.expect(k.comma);var i = this.startNode();this.expect(k.star), this.expectContextual("as"), i.exported = this.parseIdentifier(), s.push(this.finishNode(i, "ExportNamespaceSpecifier")); - } else this.parseExportSpecifiersMaybe(t);this.parseExportFrom(t, !0); - } else { - if (this.eat(k._default)) { - var r = this.startNode(), - a = !1;return this.eat(k._function) ? r = this.parseFunction(r, !0, !1, !1, !0) : this.isContextual("async") && this.lookahead().type === k._function ? (this.eatContextual("async"), this.eat(k._function), r = this.parseFunction(r, !0, !1, !0, !0)) : this.match(k._class) ? r = this.parseClass(r, !0, !0) : (a = !0, r = this.parseMaybeAssign()), t.declaration = r, a && this.semicolon(), this.checkExport(t, !0, !0), this.finishNode(t, "ExportDefaultDeclaration"); - }if (this.shouldParseExportDeclaration()) { - if (this.isContextual("async")) { - var n = this.lookahead();n.type !== k._function && this.unexpected(n.start, "Unexpected token, expected function"); - }t.specifiers = [], t.source = null, t.declaration = this.parseExportDeclaration(t); - } else t.declaration = null, t.specifiers = this.parseExportSpecifiers(), this.parseExportFrom(t); - }return this.checkExport(t, !0), this.finishNode(t, "ExportNamedDeclaration"); - }, e.prototype.parseExportDeclaration = function (t) { - return this.parseStatement(!0); - }, e.prototype.isExportDefaultSpecifier = function () { - if (this.match(k.name)) return "async" !== this.state.value;if (!this.match(k._default)) return !1;var t = this.lookahead();return t.type === k.comma || t.type === k.name && "from" === t.value; - }, e.prototype.parseExportSpecifiersMaybe = function (t) { - this.eat(k.comma) && (t.specifiers = t.specifiers.concat(this.parseExportSpecifiers())); - }, e.prototype.parseExportFrom = function (t, e) { - this.eatContextual("from") ? (t.source = this.match(k.string) ? this.parseExprAtom() : this.unexpected(), this.checkExport(t)) : e ? this.unexpected() : t.source = null, this.semicolon(); - }, e.prototype.shouldParseExportStar = function () { - return this.match(k.star); - }, e.prototype.parseExportStar = function (t, e) { - if (this.expect(k.star), e && this.isContextual("as")) { - var s = this.startNodeAt(this.state.lastTokStart, this.state.lastTokStartLoc);this.next(), s.exported = this.parseIdentifier(!0), t.specifiers = [this.finishNode(s, "ExportNamespaceSpecifier")], this.parseExportSpecifiersMaybe(t), this.parseExportFrom(t, !0); - } else this.parseExportFrom(t, !0), this.finishNode(t, "ExportAllDeclaration"); - }, e.prototype.shouldParseExportDeclaration = function () { - return "var" === this.state.type.keyword || "const" === this.state.type.keyword || "let" === this.state.type.keyword || "function" === this.state.type.keyword || "class" === this.state.type.keyword || this.isContextual("async"); - }, e.prototype.checkExport = function (t, e, s) { - if (e) if (s) this.checkDuplicateExports(t, "default");else if (t.specifiers && t.specifiers.length) for (var i = t.specifiers, r = Array.isArray(i), a = 0, i = r ? i : i[Symbol.iterator]();;) { - var n;if (r) { - if (a >= i.length) break;n = i[a++]; - } else { - if ((a = i.next()).done) break;n = a.value; - }var o = n;this.checkDuplicateExports(o, o.exported.name); - } else if (t.declaration) if ("FunctionDeclaration" === t.declaration.type || "ClassDeclaration" === t.declaration.type) this.checkDuplicateExports(t, t.declaration.id.name);else if ("VariableDeclaration" === t.declaration.type) for (var h = t.declaration.declarations, p = Array.isArray(h), c = 0, h = p ? h : h[Symbol.iterator]();;) { - var l;if (p) { - if (c >= h.length) break;l = h[c++]; - } else { - if ((c = h.next()).done) break;l = c.value; - }var u = l;this.checkDeclaration(u.id); - }if (this.state.decoratorStack[this.state.decoratorStack.length - 1].length) { - var d = t.declaration && ("ClassDeclaration" === t.declaration.type || "ClassExpression" === t.declaration.type);if (!t.declaration || !d) throw this.raise(t.start, "You can only use decorators on an export when exporting a class");this.takeDecorators(t.declaration); - } - }, e.prototype.checkDeclaration = function (t) { - if ("ObjectPattern" === t.type) for (var e = t.properties, s = Array.isArray(e), i = 0, e = s ? e : e[Symbol.iterator]();;) { - var r;if (s) { - if (i >= e.length) break;r = e[i++]; - } else { - if ((i = e.next()).done) break;r = i.value; - }var a = r;this.checkDeclaration(a); - } else if ("ArrayPattern" === t.type) for (var n = t.elements, o = Array.isArray(n), h = 0, n = o ? n : n[Symbol.iterator]();;) { - var p;if (o) { - if (h >= n.length) break;p = n[h++]; - } else { - if ((h = n.next()).done) break;p = h.value; - }var c = p;c && this.checkDeclaration(c); - } else "ObjectProperty" === t.type ? this.checkDeclaration(t.value) : "RestElement" === t.type ? this.checkDeclaration(t.argument) : "Identifier" === t.type && this.checkDuplicateExports(t, t.name); - }, e.prototype.checkDuplicateExports = function (t, e) { - this.state.exportedIdentifiers.indexOf(e) > -1 && this.raiseDuplicateExportError(t, e), this.state.exportedIdentifiers.push(e); - }, e.prototype.raiseDuplicateExportError = function (t, e) { - throw this.raise(t.start, "default" === e ? "Only one default export allowed per module." : "`" + e + "` has already been exported. Exported identifiers must be unique."); - }, e.prototype.parseExportSpecifiers = function () { - var t = [], - e = !0, - s = void 0;for (this.expect(k.braceL); !this.eat(k.braceR);) { - if (e) e = !1;else if (this.expect(k.comma), this.eat(k.braceR)) break;var i = this.match(k._default);i && !s && (s = !0);var r = this.startNode();r.local = this.parseIdentifier(i), r.exported = this.eatContextual("as") ? this.parseIdentifier(!0) : r.local.__clone(), t.push(this.finishNode(r, "ExportSpecifier")); - }return s && !this.isContextual("from") && this.unexpected(), t; - }, e.prototype.parseImport = function (t) { - return this.match(k.string) ? (t.specifiers = [], t.source = this.parseExprAtom()) : (t.specifiers = [], this.parseImportSpecifiers(t), this.expectContextual("from"), t.source = this.match(k.string) ? this.parseExprAtom() : this.unexpected()), this.semicolon(), this.finishNode(t, "ImportDeclaration"); - }, e.prototype.parseImportSpecifiers = function (t) { - var e = !0;if (this.match(k.name)) { - var s = this.state.start, - i = this.state.startLoc;if (t.specifiers.push(this.parseImportSpecifierDefault(this.parseIdentifier(), s, i)), !this.eat(k.comma)) return; - }if (this.match(k.star)) { - var r = this.startNode();return this.next(), this.expectContextual("as"), r.local = this.parseIdentifier(), this.checkLVal(r.local, !0, void 0, "import namespace specifier"), void t.specifiers.push(this.finishNode(r, "ImportNamespaceSpecifier")); - }for (this.expect(k.braceL); !this.eat(k.braceR);) { - if (e) e = !1;else if (this.eat(k.colon) && this.unexpected(null, "ES2015 named imports do not destructure. Use another statement for destructuring after the import."), this.expect(k.comma), this.eat(k.braceR)) break;this.parseImportSpecifier(t); - } - }, e.prototype.parseImportSpecifier = function (t) { - var e = this.startNode();e.imported = this.parseIdentifier(!0), this.eatContextual("as") ? e.local = this.parseIdentifier() : (this.checkReservedWord(e.imported.name, e.start, !0, !0), e.local = e.imported.__clone()), this.checkLVal(e.local, !0, void 0, "import specifier"), t.specifiers.push(this.finishNode(e, "ImportSpecifier")); - }, e.prototype.parseImportSpecifierDefault = function (t, e, s) { - var i = this.startNodeAt(e, s);return i.local = t, this.checkLVal(i.local, !0, void 0, "default import specifier"), this.finishNode(i, "ImportDefaultSpecifier"); - }, e; - }(function (t) { - function e() { - return t.apply(this, arguments) || this; - }return T(e, t), e.prototype.checkPropClash = function (t, e) { - if (!t.computed && !t.kind) { - var s = t.key;"__proto__" === ("Identifier" === s.type ? s.name : String(s.value)) && (e.proto && this.raise(s.start, "Redefinition of __proto__ property"), e.proto = !0); - } - }, e.prototype.getExpression = function () { - this.nextToken();var t = this.parseExpression();return this.match(k.eof) || this.unexpected(), t.comments = this.state.comments, t; - }, e.prototype.parseExpression = function (t, e) { - var s = this.state.start, - i = this.state.startLoc, - r = this.parseMaybeAssign(t, e);if (this.match(k.comma)) { - var a = this.startNodeAt(s, i);for (a.expressions = [r]; this.eat(k.comma);) { - a.expressions.push(this.parseMaybeAssign(t, e)); - }return this.toReferencedList(a.expressions), this.finishNode(a, "SequenceExpression"); - }return r; - }, e.prototype.parseMaybeAssign = function (t, e, s, i) { - var r = this.state.start, - a = this.state.startLoc;if (this.match(k._yield) && this.state.inGenerator) { - var n = this.parseYield();return s && (n = s.call(this, n, r, a)), n; - }var o = void 0;e ? o = !1 : (e = { start: 0 }, o = !0), (this.match(k.parenL) || this.match(k.name)) && (this.state.potentialArrowAt = this.state.start);var h = this.parseMaybeConditional(t, e, i);if (s && (h = s.call(this, h, r, a)), this.state.type.isAssign) { - var p = this.startNodeAt(r, a);if (p.operator = this.state.value, p.left = this.match(k.eq) ? this.toAssignable(h, void 0, "assignment expression") : h, e.start = 0, this.checkLVal(h, void 0, void 0, "assignment expression"), h.extra && h.extra.parenthesized) { - var c = void 0;"ObjectPattern" === h.type ? c = "`({a}) = 0` use `({a} = 0)`" : "ArrayPattern" === h.type && (c = "`([a]) = 0` use `([a] = 0)`"), c && this.raise(h.start, "You're trying to assign to a parenthesized expression, eg. instead of " + c); - }return this.next(), p.right = this.parseMaybeAssign(t), this.finishNode(p, "AssignmentExpression"); - }return o && e.start && this.unexpected(e.start), h; - }, e.prototype.parseMaybeConditional = function (t, e, s) { - var i = this.state.start, - r = this.state.startLoc, - a = this.state.potentialArrowAt, - n = this.parseExprOps(t, e);return "ArrowFunctionExpression" === n.type && n.start === a ? n : e && e.start ? n : this.parseConditional(n, t, i, r, s); - }, e.prototype.parseConditional = function (t, e, s, i, r) { - if (this.eat(k.question)) { - var a = this.startNodeAt(s, i);return a.test = t, a.consequent = this.parseMaybeAssign(), this.expect(k.colon), a.alternate = this.parseMaybeAssign(e), this.finishNode(a, "ConditionalExpression"); - }return t; - }, e.prototype.parseExprOps = function (t, e) { - var s = this.state.start, - i = this.state.startLoc, - r = this.state.potentialArrowAt, - a = this.parseMaybeUnary(e);return "ArrowFunctionExpression" === a.type && a.start === r ? a : e && e.start ? a : this.parseExprOp(a, s, i, -1, t); - }, e.prototype.parseExprOp = function (t, e, s, i, r) { - var a = this.state.type.binop;if (!(null == a || r && this.match(k._in)) && a > i) { - var n = this.startNodeAt(e, s);n.left = t, n.operator = this.state.value, "**" !== n.operator || "UnaryExpression" !== t.type || !t.extra || t.extra.parenthesizedArgument || t.extra.parenthesized || this.raise(t.argument.start, "Illegal expression. Wrap left hand side or entire exponentiation in parentheses.");var o = this.state.type;this.next();var h = this.state.start, - p = this.state.startLoc;return "|>" === n.operator && (this.expectPlugin("pipelineOperator"), this.state.potentialArrowAt = h), "??" === n.operator && this.expectPlugin("nullishCoalescingOperator"), n.right = this.parseExprOp(this.parseMaybeUnary(), h, p, o.rightAssociative ? a - 1 : a, r), this.finishNode(n, o === k.logicalOR || o === k.logicalAND ? "LogicalExpression" : "BinaryExpression"), this.parseExprOp(n, e, s, i, r); - }return t; - }, e.prototype.parseMaybeUnary = function (t) { - if (this.state.type.prefix) { - var e = this.startNode(), - s = this.match(k.incDec);e.operator = this.state.value, e.prefix = !0, "throw" === e.operator && this.expectPlugin("throwExpressions"), this.next();var i = this.state.type;if (e.argument = this.parseMaybeUnary(), this.addExtra(e, "parenthesizedArgument", !(i !== k.parenL || e.argument.extra && e.argument.extra.parenthesized)), t && t.start && this.unexpected(t.start), s) this.checkLVal(e.argument, void 0, void 0, "prefix operation");else if (this.state.strict && "delete" === e.operator) { - var r = e.argument;"Identifier" === r.type ? this.raise(e.start, "Deleting local variable in strict mode") : "MemberExpression" === r.type && "PrivateName" === r.property.type && this.raise(e.start, "Deleting a private field is not allowed"); - }return this.finishNode(e, s ? "UpdateExpression" : "UnaryExpression"); - }var a = this.state.start, - n = this.state.startLoc, - o = this.parseExprSubscripts(t);if (t && t.start) return o;for (; this.state.type.postfix && !this.canInsertSemicolon();) { - var h = this.startNodeAt(a, n);h.operator = this.state.value, h.prefix = !1, h.argument = o, this.checkLVal(o, void 0, void 0, "postfix operation"), this.next(), o = this.finishNode(h, "UpdateExpression"); - }return o; - }, e.prototype.parseExprSubscripts = function (t) { - var e = this.state.start, - s = this.state.startLoc, - i = this.state.potentialArrowAt, - r = this.parseExprAtom(t);return "ArrowFunctionExpression" === r.type && r.start === i ? r : t && t.start ? r : this.parseSubscripts(r, e, s); - }, e.prototype.parseSubscripts = function (t, e, s, i) { - var r = { stop: !1 };do { - t = this.parseSubscript(t, e, s, i, r); - } while (!r.stop);return t; - }, e.prototype.parseSubscript = function (t, e, s, i, r) { - if (!i && this.eat(k.doubleColon)) { - var a = this.startNodeAt(e, s);return a.object = t, a.callee = this.parseNoCallExpr(), r.stop = !0, this.parseSubscripts(this.finishNode(a, "BindExpression"), e, s, i); - }if (this.match(k.questionDot)) { - if (this.expectPlugin("optionalChaining"), i && this.lookahead().type == k.parenL) return r.stop = !0, t;this.next();var n = this.startNodeAt(e, s);if (this.eat(k.bracketL)) return n.object = t, n.property = this.parseExpression(), n.computed = !0, n.optional = !0, this.expect(k.bracketR), this.finishNode(n, "MemberExpression");if (this.eat(k.parenL)) { - var o = this.atPossibleAsync(t);return n.callee = t, n.arguments = this.parseCallExpressionArguments(k.parenR, o), n.optional = !0, this.finishNode(n, "CallExpression"); - }return n.object = t, n.property = this.parseIdentifier(!0), n.computed = !1, n.optional = !0, this.finishNode(n, "MemberExpression"); - }if (this.eat(k.dot)) { - var h = this.startNodeAt(e, s);return h.object = t, h.property = this.parseMaybePrivateName(), h.computed = !1, this.finishNode(h, "MemberExpression"); - }if (this.eat(k.bracketL)) { - var p = this.startNodeAt(e, s);return p.object = t, p.property = this.parseExpression(), p.computed = !0, this.expect(k.bracketR), this.finishNode(p, "MemberExpression"); - }if (!i && this.match(k.parenL)) { - var c = this.atPossibleAsync(t);this.next();var l = this.startNodeAt(e, s);l.callee = t;var u = { start: -1 };return l.arguments = this.parseCallExpressionArguments(k.parenR, c, u), this.finishCallExpression(l), c && this.shouldParseAsyncArrow() ? (r.stop = !0, u.start > -1 && this.raise(u.start, "A trailing comma is not permitted after the rest element"), this.parseAsyncArrowFromCallExpression(this.startNodeAt(e, s), l)) : (this.toReferencedList(l.arguments), l); - }if (this.match(k.backQuote)) { - var d = this.startNodeAt(e, s);return d.tag = t, d.quasi = this.parseTemplate(!0), this.finishNode(d, "TaggedTemplateExpression"); - }return r.stop = !0, t; - }, e.prototype.atPossibleAsync = function (t) { - return this.state.potentialArrowAt === t.start && "Identifier" === t.type && "async" === t.name && !this.canInsertSemicolon(); - }, e.prototype.finishCallExpression = function (t) { - if ("Import" === t.callee.type) { - 1 !== t.arguments.length && this.raise(t.start, "import() requires exactly one argument");var e = t.arguments[0];e && "SpreadElement" === e.type && this.raise(e.start, "... is not allowed in import()"); - }return this.finishNode(t, "CallExpression"); - }, e.prototype.parseCallExpressionArguments = function (t, e, s) { - for (var i = [], r = void 0, a = !0; !this.eat(t);) { - if (a) a = !1;else if (this.expect(k.comma), this.eat(t)) break;this.match(k.parenL) && !r && (r = this.state.start), i.push(this.parseExprListItem(!1, e ? { start: 0 } : void 0, e ? { start: 0 } : void 0, e ? s : void 0)); - }return e && r && this.shouldParseAsyncArrow() && this.unexpected(), i; - }, e.prototype.shouldParseAsyncArrow = function () { - return this.match(k.arrow); - }, e.prototype.parseAsyncArrowFromCallExpression = function (t, e) { - return this.expect(k.arrow), this.parseArrowExpression(t, e.arguments, !0); - }, e.prototype.parseNoCallExpr = function () { - var t = this.state.start, - e = this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(), t, e, !0); - }, e.prototype.parseExprAtom = function (t) { - var e = this.state.potentialArrowAt === this.state.start, - s = void 0;switch (this.state.type) {case k._super: - return this.state.inMethod || this.state.inClassProperty || this.options.allowSuperOutsideMethod || this.raise(this.state.start, "'super' outside of function or class"), s = this.startNode(), this.next(), this.match(k.parenL) || this.match(k.bracketL) || this.match(k.dot) || this.unexpected(), this.match(k.parenL) && "constructor" !== this.state.inMethod && !this.options.allowSuperOutsideMethod && this.raise(s.start, "super() is only valid inside a class constructor. Make sure the method name is spelled exactly as 'constructor'."), this.finishNode(s, "Super");case k._import: - return this.lookahead().type === k.dot ? this.parseImportMetaProperty() : (this.expectPlugin("dynamicImport"), s = this.startNode(), this.next(), this.match(k.parenL) || this.unexpected(null, k.parenL), this.finishNode(s, "Import"));case k._this: - return s = this.startNode(), this.next(), this.finishNode(s, "ThisExpression");case k._yield: - this.state.inGenerator && this.unexpected();case k.name: - s = this.startNode();var i = "await" === this.state.value && this.state.inAsync, - r = this.shouldAllowYieldIdentifier(), - a = this.parseIdentifier(i || r);if ("await" === a.name) { - if (this.state.inAsync || this.inModule) return this.parseAwait(s); - } else { - if ("async" === a.name && this.match(k._function) && !this.canInsertSemicolon()) return this.next(), this.parseFunction(s, !1, !1, !0);if (e && "async" === a.name && this.match(k.name)) { - var n = [this.parseIdentifier()];return this.expect(k.arrow), this.parseArrowExpression(s, n, !0); - } - }return e && !this.canInsertSemicolon() && this.eat(k.arrow) ? this.parseArrowExpression(s, [a]) : a;case k._do: - this.expectPlugin("doExpressions");var o = this.startNode();this.next();var h = this.state.inFunction, - p = this.state.labels;return this.state.labels = [], this.state.inFunction = !1, o.body = this.parseBlock(!1), this.state.inFunction = h, this.state.labels = p, this.finishNode(o, "DoExpression");case k.regexp: - var c = this.state.value;return s = this.parseLiteral(c.value, "RegExpLiteral"), s.pattern = c.pattern, s.flags = c.flags, s;case k.num: - return this.parseLiteral(this.state.value, "NumericLiteral");case k.bigint: - return this.parseLiteral(this.state.value, "BigIntLiteral");case k.string: - return this.parseLiteral(this.state.value, "StringLiteral");case k._null: - return s = this.startNode(), this.next(), this.finishNode(s, "NullLiteral");case k._true:case k._false: - return this.parseBooleanLiteral();case k.parenL: - return this.parseParenAndDistinguishExpression(e);case k.bracketL: - return s = this.startNode(), this.next(), s.elements = this.parseExprList(k.bracketR, !0, t), this.toReferencedList(s.elements), this.finishNode(s, "ArrayExpression");case k.braceL: - return this.parseObj(!1, t);case k._function: - return this.parseFunctionExpression();case k.at: - this.parseDecorators();case k._class: - return s = this.startNode(), this.takeDecorators(s), this.parseClass(s, !1);case k._new: - return this.parseNew();case k.backQuote: - return this.parseTemplate(!1);case k.doubleColon: - s = this.startNode(), this.next(), s.object = null;var l = s.callee = this.parseNoCallExpr();if ("MemberExpression" === l.type) return this.finishNode(s, "BindExpression");throw this.raise(l.start, "Binding should be performed on object property.");default: - throw this.unexpected();} - }, e.prototype.parseBooleanLiteral = function () { - var t = this.startNode();return t.value = this.match(k._true), this.next(), this.finishNode(t, "BooleanLiteral"); - }, e.prototype.parseMaybePrivateName = function () { - if (this.match(k.hash)) { - this.expectOnePlugin(["classPrivateProperties", "classPrivateMethods"]);var t = this.startNode();return this.next(), t.id = this.parseIdentifier(!0), this.finishNode(t, "PrivateName"); - }return this.parseIdentifier(!0); - }, e.prototype.parseFunctionExpression = function () { - var t = this.startNode(), - e = this.parseIdentifier(!0);return this.state.inGenerator && this.eat(k.dot) ? this.parseMetaProperty(t, e, "sent") : this.parseFunction(t, !1); - }, e.prototype.parseMetaProperty = function (t, e, s) { - return t.meta = e, "function" === e.name && "sent" === s && (this.isContextual(s) ? this.expectPlugin("functionSent") : this.hasPlugin("functionSent") || this.unexpected()), t.property = this.parseIdentifier(!0), t.property.name !== s && this.raise(t.property.start, "The only valid meta property for " + e.name + " is " + e.name + "." + s), this.finishNode(t, "MetaProperty"); - }, e.prototype.parseImportMetaProperty = function () { - var t = this.startNode(), - e = this.parseIdentifier(!0);return this.expect(k.dot), "import" === e.name && (this.isContextual("meta") ? this.expectPlugin("importMeta") : this.hasPlugin("importMeta") || this.raise(e.start, "Dynamic imports require a parameter: import('a.js').then")), this.inModule || this.raise(e.start, "import.meta may appear only with 'sourceType: \"module\"'"), this.parseMetaProperty(t, e, "meta"); - }, e.prototype.parseLiteral = function (t, e, s, i) { - s = s || this.state.start, i = i || this.state.startLoc;var r = this.startNodeAt(s, i);return this.addExtra(r, "rawValue", t), this.addExtra(r, "raw", this.input.slice(s, this.state.end)), r.value = t, this.next(), this.finishNode(r, e); - }, e.prototype.parseParenExpression = function () { - this.expect(k.parenL);var t = this.parseExpression();return this.expect(k.parenR), t; - }, e.prototype.parseParenAndDistinguishExpression = function (t) { - var e = this.state.start, - s = this.state.startLoc, - i = void 0;this.expect(k.parenL);for (var r = this.state.start, a = this.state.startLoc, n = [], o = { start: 0 }, h = { start: 0 }, p = !0, c = void 0, l = void 0; !this.match(k.parenR);) { - if (p) p = !1;else if (this.expect(k.comma, h.start || null), this.match(k.parenR)) { - l = this.state.start;break; - }if (this.match(k.ellipsis)) { - var u = this.state.start, - d = this.state.startLoc;c = this.state.start, n.push(this.parseParenItem(this.parseRest(), u, d)), this.match(k.comma) && this.lookahead().type === k.parenR && this.raise(this.state.start, "A trailing comma is not permitted after the rest element");break; - }n.push(this.parseMaybeAssign(!1, o, this.parseParenItem, h)); - }var f = this.state.start, - y = this.state.startLoc;this.expect(k.parenR);var m = this.startNodeAt(e, s);if (t && this.shouldParseArrow() && (m = this.parseArrow(m))) { - for (var x = 0; x < n.length; x++) { - var v = n[x];v.extra && v.extra.parenthesized && this.unexpected(v.extra.parenStart); - }return this.parseArrowExpression(m, n); - }return n.length || this.unexpected(this.state.lastTokStart), l && this.unexpected(l), c && this.unexpected(c), o.start && this.unexpected(o.start), h.start && this.unexpected(h.start), n.length > 1 ? ((i = this.startNodeAt(r, a)).expressions = n, this.toReferencedList(i.expressions), this.finishNodeAt(i, "SequenceExpression", f, y)) : i = n[0], this.addExtra(i, "parenthesized", !0), this.addExtra(i, "parenStart", e), i; - }, e.prototype.shouldParseArrow = function () { - return !this.canInsertSemicolon(); - }, e.prototype.parseArrow = function (t) { - if (this.eat(k.arrow)) return t; - }, e.prototype.parseParenItem = function (t, e, s) { - return t; - }, e.prototype.parseNew = function () { - var t = this.startNode(), - e = this.parseIdentifier(!0);if (this.eat(k.dot)) { - var s = this.parseMetaProperty(t, e, "target");if (!this.state.inFunction && !this.state.inClassProperty) { - var i = "new.target can only be used in functions";this.hasPlugin("classProperties") && (i += " or class properties"), this.raise(s.start, i); - }return s; - }return t.callee = this.parseNoCallExpr(), this.eat(k.questionDot) && (t.optional = !0), this.parseNewArguments(t), this.finishNode(t, "NewExpression"); - }, e.prototype.parseNewArguments = function (t) { - if (this.eat(k.parenL)) { - var e = this.parseExprList(k.parenR);this.toReferencedList(e), t.arguments = e; - } else t.arguments = []; - }, e.prototype.parseTemplateElement = function (t) { - var e = this.startNode();return null === this.state.value && (t ? this.state.invalidTemplateEscapePosition = null : this.raise(this.state.invalidTemplateEscapePosition || 0, "Invalid escape sequence in template")), e.value = { raw: this.input.slice(this.state.start, this.state.end).replace(/\r\n?/g, "\n"), cooked: this.state.value }, this.next(), e.tail = this.match(k.backQuote), this.finishNode(e, "TemplateElement"); - }, e.prototype.parseTemplate = function (t) { - var e = this.startNode();this.next(), e.expressions = [];var s = this.parseTemplateElement(t);for (e.quasis = [s]; !s.tail;) { - this.expect(k.dollarBraceL), e.expressions.push(this.parseExpression()), this.expect(k.braceR), e.quasis.push(s = this.parseTemplateElement(t)); - }return this.next(), this.finishNode(e, "TemplateLiteral"); - }, e.prototype.parseObj = function (t, e) { - var s = [], - i = Object.create(null), - r = !0, - a = this.startNode();a.properties = [], this.next();for (var n = null; !this.eat(k.braceR);) { - if (r) r = !1;else if (this.expect(k.comma), this.eat(k.braceR)) break;if (this.match(k.at)) if (this.hasPlugin("decorators2")) this.raise(this.state.start, "Stage 2 decorators disallow object literal property decorators");else for (; this.match(k.at);) { - s.push(this.parseDecorator()); - }var o = this.startNode(), - h = !1, - p = !1, - c = void 0, - l = void 0;if (s.length && (o.decorators = s, s = []), this.match(k.ellipsis)) { - if (this.expectPlugin("objectRestSpread"), o = this.parseSpread(t ? { start: 0 } : void 0), t && this.toAssignable(o, !0, "object pattern"), a.properties.push(o), !t) continue;var u = this.state.start;if (null !== n) this.unexpected(n, "Cannot have multiple rest elements when destructuring");else { - if (this.eat(k.braceR)) break;if (!this.match(k.comma) || this.lookahead().type !== k.braceR) { - n = u;continue; - }this.unexpected(u, "A trailing comma is not permitted after the rest element"); - } - }if (o.method = !1, (t || e) && (c = this.state.start, l = this.state.startLoc), t || (h = this.eat(k.star)), !t && this.isContextual("async")) { - h && this.unexpected();var d = this.parseIdentifier();this.match(k.colon) || this.match(k.parenL) || this.match(k.braceR) || this.match(k.eq) || this.match(k.comma) ? (o.key = d, o.computed = !1) : (p = !0, this.match(k.star) && (this.expectPlugin("asyncGenerators"), this.next(), h = !0), this.parsePropertyName(o)); - } else this.parsePropertyName(o);this.parseObjPropValue(o, c, l, h, p, t, e), this.checkPropClash(o, i), o.shorthand && this.addExtra(o, "shorthand", !0), a.properties.push(o); - }return null !== n && this.unexpected(n, "The rest element has to be the last element when destructuring"), s.length && this.raise(this.state.start, "You have trailing decorators with no property"), this.finishNode(a, t ? "ObjectPattern" : "ObjectExpression"); - }, e.prototype.isGetterOrSetterMethod = function (t, e) { - return !e && !t.computed && "Identifier" === t.key.type && ("get" === t.key.name || "set" === t.key.name) && (this.match(k.string) || this.match(k.num) || this.match(k.bracketL) || this.match(k.name) || !!this.state.type.keyword); - }, e.prototype.checkGetterSetterParamCount = function (t) { - var e = "get" === t.kind ? 0 : 1;if (t.params.length !== e) { - var s = t.start;"get" === t.kind ? this.raise(s, "getter should have no params") : this.raise(s, "setter should have exactly one param"); - } - }, e.prototype.parseObjectMethod = function (t, e, s, i) { - return s || e || this.match(k.parenL) ? (i && this.unexpected(), t.kind = "method", t.method = !0, this.parseMethod(t, e, s, !1, "ObjectMethod")) : this.isGetterOrSetterMethod(t, i) ? ((e || s) && this.unexpected(), t.kind = t.key.name, this.parsePropertyName(t), this.parseMethod(t, !1, !1, !1, "ObjectMethod"), this.checkGetterSetterParamCount(t), t) : void 0; - }, e.prototype.parseObjectProperty = function (t, e, s, i, r) { - return t.shorthand = !1, this.eat(k.colon) ? (t.value = i ? this.parseMaybeDefault(this.state.start, this.state.startLoc) : this.parseMaybeAssign(!1, r), this.finishNode(t, "ObjectProperty")) : t.computed || "Identifier" !== t.key.type ? void 0 : (this.checkReservedWord(t.key.name, t.key.start, !0, !0), i ? t.value = this.parseMaybeDefault(e, s, t.key.__clone()) : this.match(k.eq) && r ? (r.start || (r.start = this.state.start), t.value = this.parseMaybeDefault(e, s, t.key.__clone())) : t.value = t.key.__clone(), t.shorthand = !0, this.finishNode(t, "ObjectProperty")); - }, e.prototype.parseObjPropValue = function (t, e, s, i, r, a, n) { - var o = this.parseObjectMethod(t, i, r, a) || this.parseObjectProperty(t, e, s, a, n);return o || this.unexpected(), o; - }, e.prototype.parsePropertyName = function (t) { - if (this.eat(k.bracketL)) t.computed = !0, t.key = this.parseMaybeAssign(), this.expect(k.bracketR);else { - var e = this.state.inPropertyName;this.state.inPropertyName = !0, t.key = this.match(k.num) || this.match(k.string) ? this.parseExprAtom() : this.parseMaybePrivateName(), "PrivateName" !== t.key.type && (t.computed = !1), this.state.inPropertyName = e; - }return t.key; - }, e.prototype.initFunction = function (t, e) { - t.id = null, t.generator = !1, t.expression = !1, t.async = !!e; - }, e.prototype.parseMethod = function (t, e, s, i, r) { - var a = this.state.inMethod;this.state.inMethod = t.kind || !0, this.initFunction(t, s), this.expect(k.parenL);var n = i;return t.params = this.parseBindingList(k.parenR, !1, n), t.generator = !!e, this.parseFunctionBodyAndFinish(t, r), this.state.inMethod = a, t; - }, e.prototype.parseArrowExpression = function (t, e, s) { - return this.initFunction(t, s), this.setArrowFunctionParameters(t, e), this.parseFunctionBody(t, !0), this.finishNode(t, "ArrowFunctionExpression"); - }, e.prototype.setArrowFunctionParameters = function (t, e) { - t.params = this.toAssignableList(e, !0, "arrow function parameters"); - }, e.prototype.isStrictBody = function (t, e) { - if (!e && t.body.directives.length) for (var s = t.body.directives, i = Array.isArray(s), r = 0, s = i ? s : s[Symbol.iterator]();;) { - var a;if (i) { - if (r >= s.length) break;a = s[r++]; - } else { - if ((r = s.next()).done) break;a = r.value; - }if ("use strict" === a.value.value) return !0; - }return !1; - }, e.prototype.parseFunctionBodyAndFinish = function (t, e, s) { - this.parseFunctionBody(t, s), this.finishNode(t, e); - }, e.prototype.parseFunctionBody = function (t, e) { - var s = e && !this.match(k.braceL), - i = this.state.inAsync;if (this.state.inAsync = t.async, s) t.body = this.parseMaybeAssign(), t.expression = !0;else { - var r = this.state.inFunction, - a = this.state.inGenerator, - n = this.state.labels;this.state.inFunction = !0, this.state.inGenerator = t.generator, this.state.labels = [], t.body = this.parseBlock(!0), t.expression = !1, this.state.inFunction = r, this.state.inGenerator = a, this.state.labels = n; - }this.state.inAsync = i, this.checkFunctionNameAndParams(t, e); - }, e.prototype.checkFunctionNameAndParams = function (t, e) { - var s = this.isStrictBody(t, t.expression), - i = this.state.strict || s || e;if (s && t.id && "Identifier" === t.id.type && "yield" === t.id.name && this.raise(t.id.start, "Binding yield in strict mode"), i) { - var r = Object.create(null), - a = this.state.strict;s && (this.state.strict = !0), t.id && this.checkLVal(t.id, !0, void 0, "function name");for (var n = t.params, o = Array.isArray(n), h = 0, n = o ? n : n[Symbol.iterator]();;) { - var p;if (o) { - if (h >= n.length) break;p = n[h++]; - } else { - if ((h = n.next()).done) break;p = h.value; - }var c = p;s && "Identifier" !== c.type && this.raise(c.start, "Non-simple parameter in strict mode"), this.checkLVal(c, !0, r, "function parameter list"); - }this.state.strict = a; - } - }, e.prototype.parseExprList = function (t, e, s) { - for (var i = [], r = !0; !this.eat(t);) { - if (r) r = !1;else if (this.expect(k.comma), this.eat(t)) break;i.push(this.parseExprListItem(e, s)); - }return i; - }, e.prototype.parseExprListItem = function (t, e, s, i) { - var r = void 0;return t && this.match(k.comma) ? r = null : this.match(k.ellipsis) ? (r = this.parseSpread(e), i && this.match(k.comma) && (i.start = this.state.start)) : r = this.parseMaybeAssign(!1, e, this.parseParenItem, s), r; - }, e.prototype.parseIdentifier = function (t) { - var e = this.startNode(), - s = this.parseIdentifierName(e.start, t);return e.name = s, e.loc.identifierName = s, this.finishNode(e, "Identifier"); - }, e.prototype.parseIdentifierName = function (t, e) { - e || this.checkReservedWord(this.state.value, this.state.start, !!this.state.type.keyword, !1);var s = void 0;if (this.match(k.name)) s = this.state.value;else { - if (!this.state.type.keyword) throw this.unexpected();s = this.state.type.keyword; - }return !e && "await" === s && this.state.inAsync && this.raise(t, "invalid use of await inside of an async function"), this.next(), s; - }, e.prototype.checkReservedWord = function (t, e, s, i) { - (this.isReservedWord(t) || s && this.isKeyword(t)) && this.raise(e, t + " is a reserved word"), this.state.strict && (S.strict(t) || i && S.strictBind(t)) && this.raise(e, t + " is a reserved word in strict mode"); - }, e.prototype.parseAwait = function (t) { - return this.state.inAsync || this.unexpected(), this.match(k.star) && this.raise(t.start, "await* has been removed from the async functions proposal. Use Promise.all() instead."), t.argument = this.parseMaybeUnary(), this.finishNode(t, "AwaitExpression"); - }, e.prototype.parseYield = function () { - var t = this.startNode();return this.next(), this.match(k.semi) || this.canInsertSemicolon() || !this.match(k.star) && !this.state.type.startsExpr ? (t.delegate = !1, t.argument = null) : (t.delegate = this.eat(k.star), t.argument = this.parseMaybeAssign()), this.finishNode(t, "YieldExpression"); - }, e; - }(function (t) { - function e() { - return t.apply(this, arguments) || this; - }return T(e, t), e.prototype.toAssignable = function (t, e, s) { - if (t) switch (t.type) {case "Identifier":case "ObjectPattern":case "ArrayPattern":case "AssignmentPattern": - break;case "ObjectExpression": - t.type = "ObjectPattern";for (var i = t.properties.entries(), r = Array.isArray(i), a = 0, i = r ? i : i[Symbol.iterator]();;) { - var n;if (r) { - if (a >= i.length) break;n = i[a++]; - } else { - if ((a = i.next()).done) break;n = a.value; - }var o = n, - h = o[0], - p = o[1];this.toAssignableObjectExpressionProp(p, e, h === t.properties.length - 1); - }break;case "ObjectProperty": - this.toAssignable(t.value, e, s);break;case "SpreadElement": - this.checkToRestConversion(t), t.type = "RestElement";var c = t.argument;this.toAssignable(c, e, s);break;case "ArrayExpression": - t.type = "ArrayPattern", this.toAssignableList(t.elements, e, s);break;case "AssignmentExpression": - "=" === t.operator ? (t.type = "AssignmentPattern", delete t.operator) : this.raise(t.left.end, "Only '=' operator can be used for specifying default value.");break;case "MemberExpression": - if (!e) break;default: - var l = "Invalid left-hand side" + (s ? " in " + s : "expression");this.raise(t.start, l);}return t; - }, e.prototype.toAssignableObjectExpressionProp = function (t, e, s) { - if ("ObjectMethod" === t.type) { - var i = "get" === t.kind || "set" === t.kind ? "Object pattern can't contain getter or setter" : "Object pattern can't contain methods";this.raise(t.key.start, i); - } else "SpreadElement" !== t.type || s ? this.toAssignable(t, e, "object destructuring pattern") : this.raise(t.start, "The rest element has to be the last element when destructuring"); - }, e.prototype.toAssignableList = function (t, e, s) { - var i = t.length;if (i) { - var r = t[i - 1];if (r && "RestElement" === r.type) --i;else if (r && "SpreadElement" === r.type) { - r.type = "RestElement";var a = r.argument;this.toAssignable(a, e, s), "Identifier" !== a.type && "MemberExpression" !== a.type && "ArrayPattern" !== a.type && this.unexpected(a.start), --i; - } - }for (var n = 0; n < i; n++) { - var o = t[n];o && "SpreadElement" === o.type && this.raise(o.start, "The rest element has to be the last element when destructuring"), o && this.toAssignable(o, e, s); - }return t; - }, e.prototype.toReferencedList = function (t) { - return t; - }, e.prototype.parseSpread = function (t) { - var e = this.startNode();return this.next(), e.argument = this.parseMaybeAssign(!1, t), this.finishNode(e, "SpreadElement"); - }, e.prototype.parseRest = function () { - var t = this.startNode();return this.next(), t.argument = this.parseBindingAtom(), this.finishNode(t, "RestElement"); - }, e.prototype.shouldAllowYieldIdentifier = function () { - return this.match(k._yield) && !this.state.strict && !this.state.inGenerator; - }, e.prototype.parseBindingIdentifier = function () { - return this.parseIdentifier(this.shouldAllowYieldIdentifier()); - }, e.prototype.parseBindingAtom = function () { - switch (this.state.type) {case k._yield:case k.name: - return this.parseBindingIdentifier();case k.bracketL: - var t = this.startNode();return this.next(), t.elements = this.parseBindingList(k.bracketR, !0), this.finishNode(t, "ArrayPattern");case k.braceL: - return this.parseObj(!0);default: - throw this.unexpected();} - }, e.prototype.parseBindingList = function (t, e, s) { - for (var i = [], r = !0; !this.eat(t);) { - if (r ? r = !1 : this.expect(k.comma), e && this.match(k.comma)) i.push(null);else { - if (this.eat(t)) break;if (this.match(k.ellipsis)) { - i.push(this.parseAssignableListItemTypes(this.parseRest())), this.expect(t);break; - }var a = [];for (this.match(k.at) && this.hasPlugin("decorators2") && this.raise(this.state.start, "Stage 2 decorators cannot be used to decorate parameters"); this.match(k.at);) { - a.push(this.parseDecorator()); - }i.push(this.parseAssignableListItem(s, a)); - } - }return i; - }, e.prototype.parseAssignableListItem = function (t, e) { - var s = this.parseMaybeDefault();this.parseAssignableListItemTypes(s);var i = this.parseMaybeDefault(s.start, s.loc.start, s);return e.length && (s.decorators = e), i; - }, e.prototype.parseAssignableListItemTypes = function (t) { - return t; - }, e.prototype.parseMaybeDefault = function (t, e, s) { - if (e = e || this.state.startLoc, t = t || this.state.start, s = s || this.parseBindingAtom(), !this.eat(k.eq)) return s;var i = this.startNodeAt(t, e);return i.left = s, i.right = this.parseMaybeAssign(), this.finishNode(i, "AssignmentPattern"); - }, e.prototype.checkLVal = function (t, e, s, i) { - switch (t.type) {case "Identifier": - if (this.checkReservedWord(t.name, t.start, !1, !0), s) { - var r = "_" + t.name;s[r] ? this.raise(t.start, "Argument name clash in strict mode") : s[r] = !0; - }break;case "MemberExpression": - e && this.raise(t.start, "Binding member expression");break;case "ObjectPattern": - for (var a = t.properties, n = Array.isArray(a), o = 0, a = n ? a : a[Symbol.iterator]();;) { - var h;if (n) { - if (o >= a.length) break;h = a[o++]; - } else { - if ((o = a.next()).done) break;h = o.value; - }var p = h;"ObjectProperty" === p.type && (p = p.value), this.checkLVal(p, e, s, "object destructuring pattern"); - }break;case "ArrayPattern": - for (var c = t.elements, l = Array.isArray(c), u = 0, c = l ? c : c[Symbol.iterator]();;) { - var d;if (l) { - if (u >= c.length) break;d = c[u++]; - } else { - if ((u = c.next()).done) break;d = u.value; - }var f = d;f && this.checkLVal(f, e, s, "array destructuring pattern"); - }break;case "AssignmentPattern": - this.checkLVal(t.left, e, s, "assignment pattern");break;case "RestElement": - this.checkLVal(t.argument, e, s, "rest element");break;default: - var y = (e ? "Binding invalid" : "Invalid") + " left-hand side" + (i ? " in " + i : "expression");this.raise(t.start, y);} - }, e.prototype.checkToRestConversion = function (t) { - -1 === ["Identifier", "MemberExpression"].indexOf(t.argument.type) && this.raise(t.argument.start, "Invalid rest operator's argument"); - }, e; - }(function (t) { - function e() { - return t.apply(this, arguments) || this; - }return T(e, t), e.prototype.startNode = function () { - return new Q(this, this.state.start, this.state.startLoc); - }, e.prototype.startNodeAt = function (t, e) { - return new Q(this, t, e); - }, e.prototype.startNodeAtNode = function (t) { - return this.startNodeAt(t.start, t.loc.start); - }, e.prototype.finishNode = function (t, e) { - return this.finishNodeAt(t, e, this.state.lastTokEnd, this.state.lastTokEndLoc); - }, e.prototype.finishNodeAt = function (t, e, s, i) { - return t.type = e, t.end = s, t.loc.end = i, this.options.ranges && (t.range[1] = s), this.processComment(t), t; - }, e.prototype.resetStartLocationFromNode = function (t, e) { - t.start = e.start, t.loc.start = e.loc.start, this.options.ranges && (t.range[0] = e.range[0]); - }, e; - }($))))), - it = ["any", "mixed", "empty", "bool", "boolean", "number", "string", "void", "null"], - rt = { const: "declare export var", let: "declare export var", type: "export type", interface: "export interface" }, - at = { quot: '"', amp: "&", apos: "'", lt: "<", gt: ">", nbsp: " ", iexcl: "¡", cent: "¢", pound: "£", curren: "¤", yen: "¥", brvbar: "¦", sect: "§", uml: "¨", copy: "©", ordf: "ª", laquo: "«", not: "¬", shy: "­", reg: "®", macr: "¯", deg: "°", plusmn: "±", sup2: "²", sup3: "³", acute: "´", micro: "µ", para: "¶", middot: "·", cedil: "¸", sup1: "¹", ordm: "º", raquo: "»", frac14: "¼", frac12: "½", frac34: "¾", iquest: "¿", Agrave: "À", Aacute: "Á", Acirc: "Â", Atilde: "Ã", Auml: "Ä", Aring: "Å", AElig: "Æ", Ccedil: "Ç", Egrave: "È", Eacute: "É", Ecirc: "Ê", Euml: "Ë", Igrave: "Ì", Iacute: "Í", Icirc: "Î", Iuml: "Ï", ETH: "Ð", Ntilde: "Ñ", Ograve: "Ò", Oacute: "Ó", Ocirc: "Ô", Otilde: "Õ", Ouml: "Ö", times: "×", Oslash: "Ø", Ugrave: "Ù", Uacute: "Ú", Ucirc: "Û", Uuml: "Ü", Yacute: "Ý", THORN: "Þ", szlig: "ß", agrave: "à", aacute: "á", acirc: "â", atilde: "ã", auml: "ä", aring: "å", aelig: "æ", ccedil: "ç", egrave: "è", eacute: "é", ecirc: "ê", euml: "ë", igrave: "ì", iacute: "í", icirc: "î", iuml: "ï", eth: "ð", ntilde: "ñ", ograve: "ò", oacute: "ó", ocirc: "ô", otilde: "õ", ouml: "ö", divide: "÷", oslash: "ø", ugrave: "ù", uacute: "ú", ucirc: "û", uuml: "ü", yacute: "ý", thorn: "þ", yuml: "ÿ", OElig: "Œ", oelig: "œ", Scaron: "Š", scaron: "š", Yuml: "Ÿ", fnof: "ƒ", circ: "ˆ", tilde: "˜", Alpha: "Α", Beta: "Β", Gamma: "Γ", Delta: "Δ", Epsilon: "Ε", Zeta: "Ζ", Eta: "Η", Theta: "Θ", Iota: "Ι", Kappa: "Κ", Lambda: "Λ", Mu: "Μ", Nu: "Ν", Xi: "Ξ", Omicron: "Ο", Pi: "Π", Rho: "Ρ", Sigma: "Σ", Tau: "Τ", Upsilon: "Υ", Phi: "Φ", Chi: "Χ", Psi: "Ψ", Omega: "Ω", alpha: "α", beta: "β", gamma: "γ", delta: "δ", epsilon: "ε", zeta: "ζ", eta: "η", theta: "θ", iota: "ι", kappa: "κ", lambda: "λ", mu: "μ", nu: "ν", xi: "ξ", omicron: "ο", pi: "π", rho: "ρ", sigmaf: "ς", sigma: "σ", tau: "τ", upsilon: "υ", phi: "φ", chi: "χ", psi: "ψ", omega: "ω", thetasym: "ϑ", upsih: "ϒ", piv: "ϖ", ensp: " ", emsp: " ", thinsp: " ", zwnj: "‌", zwj: "‍", lrm: "‎", rlm: "‏", ndash: "–", mdash: "—", lsquo: "‘", rsquo: "’", sbquo: "‚", ldquo: "“", rdquo: "”", bdquo: "„", dagger: "†", Dagger: "‡", bull: "•", hellip: "…", permil: "‰", prime: "′", Prime: "″", lsaquo: "‹", rsaquo: "›", oline: "‾", frasl: "⁄", euro: "€", image: "ℑ", weierp: "℘", real: "ℜ", trade: "™", alefsym: "ℵ", larr: "←", uarr: "↑", rarr: "→", darr: "↓", harr: "↔", crarr: "↵", lArr: "⇐", uArr: "⇑", rArr: "⇒", dArr: "⇓", hArr: "⇔", forall: "∀", part: "∂", exist: "∃", empty: "∅", nabla: "∇", isin: "∈", notin: "∉", ni: "∋", prod: "∏", sum: "∑", minus: "−", lowast: "∗", radic: "√", prop: "∝", infin: "∞", ang: "∠", and: "∧", or: "∨", cap: "∩", cup: "∪", int: "∫", there4: "∴", sim: "∼", cong: "≅", asymp: "≈", ne: "≠", equiv: "≡", le: "≤", ge: "≥", sub: "⊂", sup: "⊃", nsub: "⊄", sube: "⊆", supe: "⊇", oplus: "⊕", otimes: "⊗", perp: "⊥", sdot: "⋅", lceil: "⌈", rceil: "⌉", lfloor: "⌊", rfloor: "⌋", lang: "〈", rang: "〉", loz: "◊", spades: "♠", clubs: "♣", hearts: "♥", diams: "♦" }, - nt = /^[\da-fA-F]+$/, - ot = /^\d+$/;V.j_oTag = new q("...", !0, !0), k.jsxName = new w("jsxName"), k.jsxText = new w("jsxText", { beforeExpr: !0 }), k.jsxTagStart = new w("jsxTagStart", { startsExpr: !0 }), k.jsxTagEnd = new w("jsxTagEnd"), k.jsxTagStart.updateContext = function () { - this.state.context.push(V.j_expr), this.state.context.push(V.j_oTag), this.state.exprAllowed = !1; - }, k.jsxTagEnd.updateContext = function (t) { - var e = this.state.context.pop();e === V.j_oTag && t === k.slash || e === V.j_cTag ? (this.state.context.pop(), this.state.exprAllowed = this.curContext() === V.j_expr) : this.state.exprAllowed = !0; - };et.estree = function (t) { - return function (t) { - function e() { - return t.apply(this, arguments) || this; - }return T(e, t), e.prototype.estreeParseRegExpLiteral = function (t) { - var e = t.pattern, - s = t.flags, - i = null;try { - i = new RegExp(e, s); - } catch (t) {}var r = this.estreeParseLiteral(i);return r.regex = { pattern: e, flags: s }, r; - }, e.prototype.estreeParseLiteral = function (t) { - return this.parseLiteral(t, "Literal"); - }, e.prototype.directiveToStmt = function (t) { - var e = t.value, - s = this.startNodeAt(t.start, t.loc.start), - i = this.startNodeAt(e.start, e.loc.start);return i.value = e.value, i.raw = e.extra.raw, s.expression = this.finishNodeAt(i, "Literal", e.end, e.loc.end), s.directive = e.extra.raw.slice(1, -1), this.finishNodeAt(s, "ExpressionStatement", t.end, t.loc.end); - }, e.prototype.checkDeclaration = function (e) { - u(e) ? this.checkDeclaration(e.value) : t.prototype.checkDeclaration.call(this, e); - }, e.prototype.checkGetterSetterParamCount = function (t) { - var e = "get" === t.kind ? 0 : 1;if (t.value.params.length !== e) { - var s = t.start;"get" === t.kind ? this.raise(s, "getter should have no params") : this.raise(s, "setter should have exactly one param"); - } - }, e.prototype.checkLVal = function (e, s, i, r) { - var a = this;switch (e.type) {case "ObjectPattern": - e.properties.forEach(function (t) { - a.checkLVal("Property" === t.type ? t.value : t, s, i, "object destructuring pattern"); - });break;default: - t.prototype.checkLVal.call(this, e, s, i, r);} - }, e.prototype.checkPropClash = function (t, e) { - if (!t.computed && u(t)) { - var s = t.key;"__proto__" === ("Identifier" === s.type ? s.name : String(s.value)) && (e.proto && this.raise(s.start, "Redefinition of __proto__ property"), e.proto = !0); - } - }, e.prototype.isStrictBody = function (t, e) { - if (!e && t.body.body.length > 0) for (var s = t.body.body, i = Array.isArray(s), r = 0, s = i ? s : s[Symbol.iterator]();;) { - var a;if (i) { - if (r >= s.length) break;a = s[r++]; - } else { - if ((r = s.next()).done) break;a = r.value; - }var n = a;if ("ExpressionStatement" !== n.type || "Literal" !== n.expression.type) break;if ("use strict" === n.expression.value) return !0; - }return !1; - }, e.prototype.isValidDirective = function (t) { - return !("ExpressionStatement" !== t.type || "Literal" !== t.expression.type || "string" != typeof t.expression.value || t.expression.extra && t.expression.extra.parenthesized); - }, e.prototype.stmtToDirective = function (e) { - var s = t.prototype.stmtToDirective.call(this, e), - i = e.expression.value;return s.value.value = i, s; - }, e.prototype.parseBlockBody = function (e, s, i, r) { - var a = this;t.prototype.parseBlockBody.call(this, e, s, i, r);var n = e.directives.map(function (t) { - return a.directiveToStmt(t); - });e.body = n.concat(e.body), delete e.directives; - }, e.prototype.pushClassMethod = function (t, e, s, i, r) { - this.parseMethod(e, s, i, r, "MethodDefinition"), e.typeParameters && (e.value.typeParameters = e.typeParameters, delete e.typeParameters), t.body.push(e); - }, e.prototype.parseExprAtom = function (e) { - switch (this.state.type) {case k.regexp: - return this.estreeParseRegExpLiteral(this.state.value);case k.num:case k.string: - return this.estreeParseLiteral(this.state.value);case k._null: - return this.estreeParseLiteral(null);case k._true: - return this.estreeParseLiteral(!0);case k._false: - return this.estreeParseLiteral(!1);default: - return t.prototype.parseExprAtom.call(this, e);} - }, e.prototype.parseLiteral = function (e, s, i, r) { - var a = t.prototype.parseLiteral.call(this, e, s, i, r);return a.raw = a.extra.raw, delete a.extra, a; - }, e.prototype.parseMethod = function (e, s, i, r, a) { - var n = this.startNode();return n.kind = e.kind, n = t.prototype.parseMethod.call(this, n, s, i, r, "FunctionExpression"), delete n.kind, e.value = n, this.finishNode(e, a); - }, e.prototype.parseObjectMethod = function (e, s, i, r) { - var a = t.prototype.parseObjectMethod.call(this, e, s, i, r);return a && (a.type = "Property", "method" === a.kind && (a.kind = "init"), a.shorthand = !1), a; - }, e.prototype.parseObjectProperty = function (e, s, i, r, a) { - var n = t.prototype.parseObjectProperty.call(this, e, s, i, r, a);return n && (n.kind = "init", n.type = "Property"), n; - }, e.prototype.toAssignable = function (e, s, i) { - return u(e) ? (this.toAssignable(e.value, s, i), e) : t.prototype.toAssignable.call(this, e, s, i); - }, e.prototype.toAssignableObjectExpressionProp = function (e, s, i) { - "get" === e.kind || "set" === e.kind ? this.raise(e.key.start, "Object pattern can't contain getter or setter") : e.method ? this.raise(e.key.start, "Object pattern can't contain methods") : t.prototype.toAssignableObjectExpressionProp.call(this, e, s, i); - }, e; - }(t); - }, et.flow = function (t) { - return function (t) { - function e() { - return t.apply(this, arguments) || this; - }return T(e, t), e.prototype.flowParseTypeInitialiser = function (t) { - var e = this.state.inType;this.state.inType = !0, this.expect(t || k.colon);var s = this.flowParseType();return this.state.inType = e, s; - }, e.prototype.flowParsePredicate = function () { - var t = this.startNode(), - e = this.state.startLoc, - s = this.state.start;this.expect(k.modulo);var i = this.state.startLoc;return this.expectContextual("checks"), e.line === i.line && e.column === i.column - 1 || this.raise(s, "Spaces between ´%´ and ´checks´ are not allowed here."), this.eat(k.parenL) ? (t.value = this.parseExpression(), this.expect(k.parenR), this.finishNode(t, "DeclaredPredicate")) : this.finishNode(t, "InferredPredicate"); - }, e.prototype.flowParseTypeAndPredicateInitialiser = function () { - var t = this.state.inType;this.state.inType = !0, this.expect(k.colon);var e = null, - s = null;return this.match(k.modulo) ? (this.state.inType = t, s = this.flowParsePredicate()) : (e = this.flowParseType(), this.state.inType = t, this.match(k.modulo) && (s = this.flowParsePredicate())), [e, s]; - }, e.prototype.flowParseDeclareClass = function (t) { - return this.next(), this.flowParseInterfaceish(t), this.finishNode(t, "DeclareClass"); - }, e.prototype.flowParseDeclareFunction = function (t) { - this.next();var e = t.id = this.parseIdentifier(), - s = this.startNode(), - i = this.startNode();this.isRelational("<") ? s.typeParameters = this.flowParseTypeParameterDeclaration() : s.typeParameters = null, this.expect(k.parenL);var r = this.flowParseFunctionTypeParams();s.params = r.params, s.rest = r.rest, this.expect(k.parenR);var a = this.flowParseTypeAndPredicateInitialiser();return s.returnType = a[0], t.predicate = a[1], i.typeAnnotation = this.finishNode(s, "FunctionTypeAnnotation"), e.typeAnnotation = this.finishNode(i, "TypeAnnotation"), this.finishNode(e, e.type), this.semicolon(), this.finishNode(t, "DeclareFunction"); - }, e.prototype.flowParseDeclare = function (t, e) { - if (this.match(k._class)) return this.flowParseDeclareClass(t);if (this.match(k._function)) return this.flowParseDeclareFunction(t);if (this.match(k._var)) return this.flowParseDeclareVariable(t);if (this.isContextual("module")) return this.lookahead().type === k.dot ? this.flowParseDeclareModuleExports(t) : (e && this.unexpected(null, "`declare module` cannot be used inside another `declare module`"), this.flowParseDeclareModule(t));if (this.isContextual("type")) return this.flowParseDeclareTypeAlias(t);if (this.isContextual("opaque")) return this.flowParseDeclareOpaqueType(t);if (this.isContextual("interface")) return this.flowParseDeclareInterface(t);if (this.match(k._export)) return this.flowParseDeclareExportDeclaration(t, e);throw this.unexpected(); - }, e.prototype.flowParseDeclareVariable = function (t) { - return this.next(), t.id = this.flowParseTypeAnnotatableIdentifier(!0), this.semicolon(), this.finishNode(t, "DeclareVariable"); - }, e.prototype.flowParseDeclareModule = function (t) { - var e = this;this.next(), this.match(k.string) ? t.id = this.parseExprAtom() : t.id = this.parseIdentifier();var s = t.body = this.startNode(), - i = s.body = [];for (this.expect(k.braceL); !this.match(k.braceR);) { - var r = this.startNode();if (this.match(k._import)) { - var a = this.lookahead();"type" !== a.value && "typeof" !== a.value && this.unexpected(null, "Imports within a `declare module` body must always be `import type` or `import typeof`"), this.next(), this.parseImport(r); - } else this.expectContextual("declare", "Only declares and type imports are allowed inside declare module"), r = this.flowParseDeclare(r, !0);i.push(r); - }this.expect(k.braceR), this.finishNode(s, "BlockStatement");var n = null, - o = !1, - h = "Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module";return i.forEach(function (t) { - d(t) ? ("CommonJS" === n && e.unexpected(t.start, h), n = "ES") : "DeclareModuleExports" === t.type && (o && e.unexpected(t.start, "Duplicate `declare module.exports` statement"), "ES" === n && e.unexpected(t.start, h), n = "CommonJS", o = !0); - }), t.kind = n || "CommonJS", this.finishNode(t, "DeclareModule"); - }, e.prototype.flowParseDeclareExportDeclaration = function (t, e) { - if (this.expect(k._export), this.eat(k._default)) return this.match(k._function) || this.match(k._class) ? t.declaration = this.flowParseDeclare(this.startNode()) : (t.declaration = this.flowParseType(), this.semicolon()), t.default = !0, this.finishNode(t, "DeclareExportDeclaration");if (this.match(k._const) || this.match(k._let) || (this.isContextual("type") || this.isContextual("interface")) && !e) { - var s = this.state.value, - i = rt[s];this.unexpected(this.state.start, "`declare export " + s + "` is not supported. Use `" + i + "` instead"); - }if (this.match(k._var) || this.match(k._function) || this.match(k._class) || this.isContextual("opaque")) return t.declaration = this.flowParseDeclare(this.startNode()), t.default = !1, this.finishNode(t, "DeclareExportDeclaration");if (this.match(k.star) || this.match(k.braceL) || this.isContextual("interface") || this.isContextual("type") || this.isContextual("opaque")) return "ExportNamedDeclaration" === (t = this.parseExport(t)).type && (t.type = "ExportDeclaration", t.default = !1, delete t.exportKind), t.type = "Declare" + t.type, t;throw this.unexpected(); - }, e.prototype.flowParseDeclareModuleExports = function (t) { - return this.expectContextual("module"), this.expect(k.dot), this.expectContextual("exports"), t.typeAnnotation = this.flowParseTypeAnnotation(), this.semicolon(), this.finishNode(t, "DeclareModuleExports"); - }, e.prototype.flowParseDeclareTypeAlias = function (t) { - return this.next(), this.flowParseTypeAlias(t), this.finishNode(t, "DeclareTypeAlias"); - }, e.prototype.flowParseDeclareOpaqueType = function (t) { - return this.next(), this.flowParseOpaqueType(t, !0), this.finishNode(t, "DeclareOpaqueType"); - }, e.prototype.flowParseDeclareInterface = function (t) { - return this.next(), this.flowParseInterfaceish(t), this.finishNode(t, "DeclareInterface"); - }, e.prototype.flowParseInterfaceish = function (t) { - if (t.id = this.parseIdentifier(), this.isRelational("<") ? t.typeParameters = this.flowParseTypeParameterDeclaration() : t.typeParameters = null, t.extends = [], t.mixins = [], this.eat(k._extends)) do { - t.extends.push(this.flowParseInterfaceExtends()); - } while (this.eat(k.comma));if (this.isContextual("mixins")) { - this.next();do { - t.mixins.push(this.flowParseInterfaceExtends()); - } while (this.eat(k.comma)); - }t.body = this.flowParseObjectType(!0, !1, !1); - }, e.prototype.flowParseInterfaceExtends = function () { - var t = this.startNode();return t.id = this.flowParseQualifiedTypeIdentifier(), this.isRelational("<") ? t.typeParameters = this.flowParseTypeParameterInstantiation() : t.typeParameters = null, this.finishNode(t, "InterfaceExtends"); - }, e.prototype.flowParseInterface = function (t) { - return this.flowParseInterfaceish(t), this.finishNode(t, "InterfaceDeclaration"); - }, e.prototype.flowParseRestrictedIdentifier = function (t) { - return it.indexOf(this.state.value) > -1 && this.raise(this.state.start, "Cannot overwrite primitive type " + this.state.value), this.parseIdentifier(t); - }, e.prototype.flowParseTypeAlias = function (t) { - return t.id = this.flowParseRestrictedIdentifier(), this.isRelational("<") ? t.typeParameters = this.flowParseTypeParameterDeclaration() : t.typeParameters = null, t.right = this.flowParseTypeInitialiser(k.eq), this.semicolon(), this.finishNode(t, "TypeAlias"); - }, e.prototype.flowParseOpaqueType = function (t, e) { - return this.expectContextual("type"), t.id = this.flowParseRestrictedIdentifier(), this.isRelational("<") ? t.typeParameters = this.flowParseTypeParameterDeclaration() : t.typeParameters = null, t.supertype = null, this.match(k.colon) && (t.supertype = this.flowParseTypeInitialiser(k.colon)), t.impltype = null, e || (t.impltype = this.flowParseTypeInitialiser(k.eq)), this.semicolon(), this.finishNode(t, "OpaqueType"); - }, e.prototype.flowParseTypeParameter = function () { - var t = this.startNode(), - e = this.flowParseVariance(), - s = this.flowParseTypeAnnotatableIdentifier();return t.name = s.name, t.variance = e, t.bound = s.typeAnnotation, this.match(k.eq) && (this.eat(k.eq), t.default = this.flowParseType()), this.finishNode(t, "TypeParameter"); - }, e.prototype.flowParseTypeParameterDeclaration = function () { - var t = this.state.inType, - e = this.startNode();e.params = [], this.state.inType = !0, this.isRelational("<") || this.match(k.jsxTagStart) ? this.next() : this.unexpected();do { - e.params.push(this.flowParseTypeParameter()), this.isRelational(">") || this.expect(k.comma); - } while (!this.isRelational(">"));return this.expectRelational(">"), this.state.inType = t, this.finishNode(e, "TypeParameterDeclaration"); - }, e.prototype.flowParseTypeParameterInstantiation = function () { - var t = this.startNode(), - e = this.state.inType;for (t.params = [], this.state.inType = !0, this.expectRelational("<"); !this.isRelational(">");) { - t.params.push(this.flowParseType()), this.isRelational(">") || this.expect(k.comma); - }return this.expectRelational(">"), this.state.inType = e, this.finishNode(t, "TypeParameterInstantiation"); - }, e.prototype.flowParseObjectPropertyKey = function () { - return this.match(k.num) || this.match(k.string) ? this.parseExprAtom() : this.parseIdentifier(!0); - }, e.prototype.flowParseObjectTypeIndexer = function (t, e, s) { - return t.static = e, this.expect(k.bracketL), this.lookahead().type === k.colon ? (t.id = this.flowParseObjectPropertyKey(), t.key = this.flowParseTypeInitialiser()) : (t.id = null, t.key = this.flowParseType()), this.expect(k.bracketR), t.value = this.flowParseTypeInitialiser(), t.variance = s, this.finishNode(t, "ObjectTypeIndexer"); - }, e.prototype.flowParseObjectTypeMethodish = function (t) { - for (t.params = [], t.rest = null, t.typeParameters = null, this.isRelational("<") && (t.typeParameters = this.flowParseTypeParameterDeclaration()), this.expect(k.parenL); !this.match(k.parenR) && !this.match(k.ellipsis);) { - t.params.push(this.flowParseFunctionTypeParam()), this.match(k.parenR) || this.expect(k.comma); - }return this.eat(k.ellipsis) && (t.rest = this.flowParseFunctionTypeParam()), this.expect(k.parenR), t.returnType = this.flowParseTypeInitialiser(), this.finishNode(t, "FunctionTypeAnnotation"); - }, e.prototype.flowParseObjectTypeCallProperty = function (t, e) { - var s = this.startNode();return t.static = e, t.value = this.flowParseObjectTypeMethodish(s), this.finishNode(t, "ObjectTypeCallProperty"); - }, e.prototype.flowParseObjectType = function (t, e, s) { - var i = this.state.inType;this.state.inType = !0;var r = this.startNode();r.callProperties = [], r.properties = [], r.indexers = [];var a = void 0, - n = void 0;for (e && this.match(k.braceBarL) ? (this.expect(k.braceBarL), a = k.braceBarR, n = !0) : (this.expect(k.braceL), a = k.braceR, n = !1), r.exact = n; !this.match(a);) { - var o = !1, - h = this.startNode();t && this.isContextual("static") && this.lookahead().type !== k.colon && (this.next(), o = !0);var p = this.flowParseVariance();if (this.match(k.bracketL)) r.indexers.push(this.flowParseObjectTypeIndexer(h, o, p));else if (this.match(k.parenL) || this.isRelational("<")) p && this.unexpected(p.start), r.callProperties.push(this.flowParseObjectTypeCallProperty(h, o));else { - var c = "init";if (this.isContextual("get") || this.isContextual("set")) { - var l = this.lookahead();l.type !== k.name && l.type !== k.string && l.type !== k.num || (c = this.state.value, this.next()); - }r.properties.push(this.flowParseObjectTypeProperty(h, o, p, c, s)); - }this.flowObjectTypeSemicolon(); - }this.expect(a);var u = this.finishNode(r, "ObjectTypeAnnotation");return this.state.inType = i, u; - }, e.prototype.flowParseObjectTypeProperty = function (t, e, s, i, r) { - if (this.match(k.ellipsis)) return r || this.unexpected(null, "Spread operator cannot appear in class or interface definitions"), s && this.unexpected(s.start, "Spread properties cannot have variance"), this.expect(k.ellipsis), t.argument = this.flowParseType(), this.finishNode(t, "ObjectTypeSpreadProperty");t.key = this.flowParseObjectPropertyKey(), t.static = e, t.kind = i;var a = !1;return this.isRelational("<") || this.match(k.parenL) ? (s && this.unexpected(s.start), t.value = this.flowParseObjectTypeMethodish(this.startNodeAt(t.start, t.loc.start)), "get" !== i && "set" !== i || this.flowCheckGetterSetterParamCount(t)) : ("init" !== i && this.unexpected(), this.eat(k.question) && (a = !0), t.value = this.flowParseTypeInitialiser(), t.variance = s), t.optional = a, this.finishNode(t, "ObjectTypeProperty"); - }, e.prototype.flowCheckGetterSetterParamCount = function (t) { - var e = "get" === t.kind ? 0 : 1;if (t.value.params.length !== e) { - var s = t.start;"get" === t.kind ? this.raise(s, "getter should have no params") : this.raise(s, "setter should have exactly one param"); - } - }, e.prototype.flowObjectTypeSemicolon = function () { - this.eat(k.semi) || this.eat(k.comma) || this.match(k.braceR) || this.match(k.braceBarR) || this.unexpected(); - }, e.prototype.flowParseQualifiedTypeIdentifier = function (t, e, s) { - t = t || this.state.start, e = e || this.state.startLoc;for (var i = s || this.parseIdentifier(); this.eat(k.dot);) { - var r = this.startNodeAt(t, e);r.qualification = i, r.id = this.parseIdentifier(), i = this.finishNode(r, "QualifiedTypeIdentifier"); - }return i; - }, e.prototype.flowParseGenericType = function (t, e, s) { - var i = this.startNodeAt(t, e);return i.typeParameters = null, i.id = this.flowParseQualifiedTypeIdentifier(t, e, s), this.isRelational("<") && (i.typeParameters = this.flowParseTypeParameterInstantiation()), this.finishNode(i, "GenericTypeAnnotation"); - }, e.prototype.flowParseTypeofType = function () { - var t = this.startNode();return this.expect(k._typeof), t.argument = this.flowParsePrimaryType(), this.finishNode(t, "TypeofTypeAnnotation"); - }, e.prototype.flowParseTupleType = function () { - var t = this.startNode();for (t.types = [], this.expect(k.bracketL); this.state.pos < this.input.length && !this.match(k.bracketR) && (t.types.push(this.flowParseType()), !this.match(k.bracketR));) { - this.expect(k.comma); - }return this.expect(k.bracketR), this.finishNode(t, "TupleTypeAnnotation"); - }, e.prototype.flowParseFunctionTypeParam = function () { - var t = null, - e = !1, - s = null, - i = this.startNode(), - r = this.lookahead();return r.type === k.colon || r.type === k.question ? (t = this.parseIdentifier(), this.eat(k.question) && (e = !0), s = this.flowParseTypeInitialiser()) : s = this.flowParseType(), i.name = t, i.optional = e, i.typeAnnotation = s, this.finishNode(i, "FunctionTypeParam"); - }, e.prototype.reinterpretTypeAsFunctionTypeParam = function (t) { - var e = this.startNodeAt(t.start, t.loc.start);return e.name = null, e.optional = !1, e.typeAnnotation = t, this.finishNode(e, "FunctionTypeParam"); - }, e.prototype.flowParseFunctionTypeParams = function (t) { - void 0 === t && (t = []);for (var e = null; !this.match(k.parenR) && !this.match(k.ellipsis);) { - t.push(this.flowParseFunctionTypeParam()), this.match(k.parenR) || this.expect(k.comma); - }return this.eat(k.ellipsis) && (e = this.flowParseFunctionTypeParam()), { params: t, rest: e }; - }, e.prototype.flowIdentToTypeAnnotation = function (t, e, s, i) { - switch (i.name) {case "any": - return this.finishNode(s, "AnyTypeAnnotation");case "void": - return this.finishNode(s, "VoidTypeAnnotation");case "bool":case "boolean": - return this.finishNode(s, "BooleanTypeAnnotation");case "mixed": - return this.finishNode(s, "MixedTypeAnnotation");case "empty": - return this.finishNode(s, "EmptyTypeAnnotation");case "number": - return this.finishNode(s, "NumberTypeAnnotation");case "string": - return this.finishNode(s, "StringTypeAnnotation");default: - return this.flowParseGenericType(t, e, i);} - }, e.prototype.flowParsePrimaryType = function () { - var t = this.state.start, - e = this.state.startLoc, - s = this.startNode(), - i = void 0, - r = void 0, - a = !1, - n = this.state.noAnonFunctionType;switch (this.state.type) {case k.name: - return this.flowIdentToTypeAnnotation(t, e, s, this.parseIdentifier());case k.braceL: - return this.flowParseObjectType(!1, !1, !0);case k.braceBarL: - return this.flowParseObjectType(!1, !0, !0);case k.bracketL: - return this.flowParseTupleType();case k.relational: - if ("<" === this.state.value) return s.typeParameters = this.flowParseTypeParameterDeclaration(), this.expect(k.parenL), i = this.flowParseFunctionTypeParams(), s.params = i.params, s.rest = i.rest, this.expect(k.parenR), this.expect(k.arrow), s.returnType = this.flowParseType(), this.finishNode(s, "FunctionTypeAnnotation");break;case k.parenL: - if (this.next(), !this.match(k.parenR) && !this.match(k.ellipsis)) if (this.match(k.name)) { - var o = this.lookahead().type;a = o !== k.question && o !== k.colon; - } else a = !0;if (a) { - if (this.state.noAnonFunctionType = !1, r = this.flowParseType(), this.state.noAnonFunctionType = n, this.state.noAnonFunctionType || !(this.match(k.comma) || this.match(k.parenR) && this.lookahead().type === k.arrow)) return this.expect(k.parenR), r;this.eat(k.comma); - }return i = r ? this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]) : this.flowParseFunctionTypeParams(), s.params = i.params, s.rest = i.rest, this.expect(k.parenR), this.expect(k.arrow), s.returnType = this.flowParseType(), s.typeParameters = null, this.finishNode(s, "FunctionTypeAnnotation");case k.string: - return this.parseLiteral(this.state.value, "StringLiteralTypeAnnotation");case k._true:case k._false: - return s.value = this.match(k._true), this.next(), this.finishNode(s, "BooleanLiteralTypeAnnotation");case k.plusMin: - if ("-" === this.state.value) return this.next(), this.match(k.num) || this.unexpected(null, "Unexpected token, expected number"), this.parseLiteral(-this.state.value, "NumberLiteralTypeAnnotation", s.start, s.loc.start);this.unexpected();case k.num: - return this.parseLiteral(this.state.value, "NumberLiteralTypeAnnotation");case k._null: - return this.next(), this.finishNode(s, "NullLiteralTypeAnnotation");case k._this: - return this.next(), this.finishNode(s, "ThisTypeAnnotation");case k.star: - return this.next(), this.finishNode(s, "ExistsTypeAnnotation");default: - if ("typeof" === this.state.type.keyword) return this.flowParseTypeofType();}throw this.unexpected(); - }, e.prototype.flowParsePostfixType = function () { - for (var t = this.state.start, e = this.state.startLoc, s = this.flowParsePrimaryType(); !this.canInsertSemicolon() && this.match(k.bracketL);) { - var i = this.startNodeAt(t, e);i.elementType = s, this.expect(k.bracketL), this.expect(k.bracketR), s = this.finishNode(i, "ArrayTypeAnnotation"); - }return s; - }, e.prototype.flowParsePrefixType = function () { - var t = this.startNode();return this.eat(k.question) ? (t.typeAnnotation = this.flowParsePrefixType(), this.finishNode(t, "NullableTypeAnnotation")) : this.flowParsePostfixType(); - }, e.prototype.flowParseAnonFunctionWithoutParens = function () { - var t = this.flowParsePrefixType();if (!this.state.noAnonFunctionType && this.eat(k.arrow)) { - var e = this.startNodeAt(t.start, t.loc.start);return e.params = [this.reinterpretTypeAsFunctionTypeParam(t)], e.rest = null, e.returnType = this.flowParseType(), e.typeParameters = null, this.finishNode(e, "FunctionTypeAnnotation"); - }return t; - }, e.prototype.flowParseIntersectionType = function () { - var t = this.startNode();this.eat(k.bitwiseAND);var e = this.flowParseAnonFunctionWithoutParens();for (t.types = [e]; this.eat(k.bitwiseAND);) { - t.types.push(this.flowParseAnonFunctionWithoutParens()); - }return 1 === t.types.length ? e : this.finishNode(t, "IntersectionTypeAnnotation"); - }, e.prototype.flowParseUnionType = function () { - var t = this.startNode();this.eat(k.bitwiseOR);var e = this.flowParseIntersectionType();for (t.types = [e]; this.eat(k.bitwiseOR);) { - t.types.push(this.flowParseIntersectionType()); - }return 1 === t.types.length ? e : this.finishNode(t, "UnionTypeAnnotation"); - }, e.prototype.flowParseType = function () { - var t = this.state.inType;this.state.inType = !0;var e = this.flowParseUnionType();return this.state.inType = t, this.state.exprAllowed = this.state.exprAllowed || this.state.noAnonFunctionType, e; - }, e.prototype.flowParseTypeAnnotation = function () { - var t = this.startNode();return t.typeAnnotation = this.flowParseTypeInitialiser(), this.finishNode(t, "TypeAnnotation"); - }, e.prototype.flowParseTypeAnnotatableIdentifier = function (t) { - var e = t ? this.parseIdentifier() : this.flowParseRestrictedIdentifier();return this.match(k.colon) && (e.typeAnnotation = this.flowParseTypeAnnotation(), this.finishNode(e, e.type)), e; - }, e.prototype.typeCastToParameter = function (t) { - return t.expression.typeAnnotation = t.typeAnnotation, this.finishNodeAt(t.expression, t.expression.type, t.typeAnnotation.end, t.typeAnnotation.loc.end); - }, e.prototype.flowParseVariance = function () { - var t = null;return this.match(k.plusMin) && (t = this.startNode(), "+" === this.state.value ? t.kind = "plus" : t.kind = "minus", this.next(), this.finishNode(t, "Variance")), t; - }, e.prototype.parseFunctionBody = function (e, s) { - var i = this;return s ? this.forwardNoArrowParamsConversionAt(e, function () { - return t.prototype.parseFunctionBody.call(i, e, !0); - }) : t.prototype.parseFunctionBody.call(this, e, !1); - }, e.prototype.parseFunctionBodyAndFinish = function (e, s, i) { - if (!i && this.match(k.colon)) { - var r = this.startNode(), - a = this.flowParseTypeAndPredicateInitialiser();r.typeAnnotation = a[0], e.predicate = a[1], e.returnType = r.typeAnnotation ? this.finishNode(r, "TypeAnnotation") : null; - }t.prototype.parseFunctionBodyAndFinish.call(this, e, s, i); - }, e.prototype.parseStatement = function (e, s) { - if (this.state.strict && this.match(k.name) && "interface" === this.state.value) { - var i = this.startNode();return this.next(), this.flowParseInterface(i); - }return t.prototype.parseStatement.call(this, e, s); - }, e.prototype.parseExpressionStatement = function (e, s) { - if ("Identifier" === s.type) if ("declare" === s.name) { - if (this.match(k._class) || this.match(k.name) || this.match(k._function) || this.match(k._var) || this.match(k._export)) return this.flowParseDeclare(e); - } else if (this.match(k.name)) { - if ("interface" === s.name) return this.flowParseInterface(e);if ("type" === s.name) return this.flowParseTypeAlias(e);if ("opaque" === s.name) return this.flowParseOpaqueType(e, !1); - }return t.prototype.parseExpressionStatement.call(this, e, s); - }, e.prototype.shouldParseExportDeclaration = function () { - return this.isContextual("type") || this.isContextual("interface") || this.isContextual("opaque") || t.prototype.shouldParseExportDeclaration.call(this); - }, e.prototype.isExportDefaultSpecifier = function () { - return (!this.match(k.name) || "type" !== this.state.value && "interface" !== this.state.value && "opaque" != this.state.value) && t.prototype.isExportDefaultSpecifier.call(this); - }, e.prototype.parseConditional = function (e, s, i, r, a) { - var n = this;if (!this.match(k.question)) return e;if (a) { - var o = this.state.clone();try { - return t.prototype.parseConditional.call(this, e, s, i, r); - } catch (t) { - if (t instanceof SyntaxError) return this.state = o, a.start = t.pos || this.state.start, e;throw t; - } - }this.expect(k.question);var h = this.state.clone(), - p = this.state.noArrowAt, - c = this.startNodeAt(i, r), - l = this.tryParseConditionalConsequent(), - u = l.consequent, - d = l.failed, - f = this.getArrowLikeExpressions(u), - y = f[0], - m = f[1];if (d || m.length > 0) { - var x = [].concat(p);if (m.length > 0) { - this.state = h, this.state.noArrowAt = x;for (var v = 0; v < m.length; v++) { - x.push(m[v].start); - }var P = this.tryParseConditionalConsequent();u = P.consequent, d = P.failed;var b = this.getArrowLikeExpressions(u);y = b[0], m = b[1]; - }if (d && y.length > 1 && this.raise(h.start, "Ambiguous expression: wrap the arrow functions in parentheses to disambiguate."), d && 1 === y.length) { - this.state = h, this.state.noArrowAt = x.concat(y[0].start);var g = this.tryParseConditionalConsequent();u = g.consequent, d = g.failed; - }this.getArrowLikeExpressions(u, !0); - }return this.state.noArrowAt = p, this.expect(k.colon), c.test = e, c.consequent = u, c.alternate = this.forwardNoArrowParamsConversionAt(c, function () { - return n.parseMaybeAssign(s, void 0, void 0, void 0); - }), this.finishNode(c, "ConditionalExpression"); - }, e.prototype.tryParseConditionalConsequent = function () { - this.state.noArrowParamsConversionAt.push(this.state.start);var t = this.parseMaybeAssign(), - e = !this.match(k.colon);return this.state.noArrowParamsConversionAt.pop(), { consequent: t, failed: e }; - }, e.prototype.getArrowLikeExpressions = function (e, s) { - for (var i = this, r = [e], a = []; 0 !== r.length;) { - var n = r.pop();"ArrowFunctionExpression" === n.type ? (n.typeParameters || !n.returnType ? (this.toAssignableList(n.params, !0, "arrow function parameters"), t.prototype.checkFunctionNameAndParams.call(this, n, !0)) : a.push(n), r.push(n.body)) : "ConditionalExpression" === n.type && (r.push(n.consequent), r.push(n.alternate)); - }if (s) { - for (var o = 0; o < a.length; o++) { - this.toAssignableList(e.params, !0, "arrow function parameters"); - }return [a, []]; - }return f(a, function (t) { - try { - return i.toAssignableList(t.params, !0, "arrow function parameters"), !0; - } catch (t) { - return !1; - } - }); - }, e.prototype.forwardNoArrowParamsConversionAt = function (t, e) { - var s = void 0;return -1 !== this.state.noArrowParamsConversionAt.indexOf(t.start) ? (this.state.noArrowParamsConversionAt.push(this.state.start), s = e(), this.state.noArrowParamsConversionAt.pop()) : s = e(), s; - }, e.prototype.parseParenItem = function (e, s, i) { - if (e = t.prototype.parseParenItem.call(this, e, s, i), this.eat(k.question) && (e.optional = !0), this.match(k.colon)) { - var r = this.startNodeAt(s, i);return r.expression = e, r.typeAnnotation = this.flowParseTypeAnnotation(), this.finishNode(r, "TypeCastExpression"); - }return e; - }, e.prototype.parseExport = function (e) { - return "ExportNamedDeclaration" !== (e = t.prototype.parseExport.call(this, e)).type && "ExportAllDeclaration" !== e.type || (e.exportKind = e.exportKind || "value"), e; - }, e.prototype.parseExportDeclaration = function (e) { - if (this.isContextual("type")) { - e.exportKind = "type";var s = this.startNode();return this.next(), this.match(k.braceL) ? (e.specifiers = this.parseExportSpecifiers(), this.parseExportFrom(e), null) : this.flowParseTypeAlias(s); - }if (this.isContextual("opaque")) { - e.exportKind = "type";var i = this.startNode();return this.next(), this.flowParseOpaqueType(i, !1); - }if (this.isContextual("interface")) { - e.exportKind = "type";var r = this.startNode();return this.next(), this.flowParseInterface(r); - }return t.prototype.parseExportDeclaration.call(this, e); - }, e.prototype.shouldParseExportStar = function () { - return t.prototype.shouldParseExportStar.call(this) || this.isContextual("type") && this.lookahead().type === k.star; - }, e.prototype.parseExportStar = function (e, s) { - return this.eatContextual("type") && (e.exportKind = "type", s = !1), t.prototype.parseExportStar.call(this, e, s); - }, e.prototype.parseClassId = function (e, s, i) { - t.prototype.parseClassId.call(this, e, s, i), this.isRelational("<") && (e.typeParameters = this.flowParseTypeParameterDeclaration()); - }, e.prototype.isKeyword = function (e) { - return (!this.state.inType || "void" !== e) && t.prototype.isKeyword.call(this, e); - }, e.prototype.readToken = function (e) { - return !this.state.inType || 62 !== e && 60 !== e ? t.prototype.readToken.call(this, e) : this.finishOp(k.relational, 1); - }, e.prototype.toAssignable = function (e, s, i) { - return "TypeCastExpression" === e.type ? t.prototype.toAssignable.call(this, this.typeCastToParameter(e), s, i) : t.prototype.toAssignable.call(this, e, s, i); - }, e.prototype.toAssignableList = function (e, s, i) { - for (var r = 0; r < e.length; r++) { - var a = e[r];a && "TypeCastExpression" === a.type && (e[r] = this.typeCastToParameter(a)); - }return t.prototype.toAssignableList.call(this, e, s, i); - }, e.prototype.toReferencedList = function (t) { - for (var e = 0; e < t.length; e++) { - var s = t[e];s && s._exprListItem && "TypeCastExpression" === s.type && this.raise(s.start, "Unexpected type cast"); - }return t; - }, e.prototype.parseExprListItem = function (e, s, i) { - var r = this.startNode(), - a = t.prototype.parseExprListItem.call(this, e, s, i);return this.match(k.colon) ? (r._exprListItem = !0, r.expression = a, r.typeAnnotation = this.flowParseTypeAnnotation(), this.finishNode(r, "TypeCastExpression")) : a; - }, e.prototype.checkLVal = function (e, s, i, r) { - if ("TypeCastExpression" !== e.type) return t.prototype.checkLVal.call(this, e, s, i, r); - }, e.prototype.parseClassProperty = function (e) { - return this.match(k.colon) && (e.typeAnnotation = this.flowParseTypeAnnotation()), t.prototype.parseClassProperty.call(this, e); - }, e.prototype.isClassMethod = function () { - return this.isRelational("<") || t.prototype.isClassMethod.call(this); - }, e.prototype.isClassProperty = function () { - return this.match(k.colon) || t.prototype.isClassProperty.call(this); - }, e.prototype.isNonstaticConstructor = function (e) { - return !this.match(k.colon) && t.prototype.isNonstaticConstructor.call(this, e); - }, e.prototype.pushClassMethod = function (e, s, i, r, a) { - s.variance && this.unexpected(s.variance.start), delete s.variance, this.isRelational("<") && (s.typeParameters = this.flowParseTypeParameterDeclaration()), t.prototype.pushClassMethod.call(this, e, s, i, r, a); - }, e.prototype.pushClassPrivateMethod = function (e, s, i, r) { - s.variance && this.unexpected(s.variance.start), delete s.variance, this.isRelational("<") && (s.typeParameters = this.flowParseTypeParameterDeclaration()), t.prototype.pushClassPrivateMethod.call(this, e, s, i, r); - }, e.prototype.parseClassSuper = function (e) { - if (t.prototype.parseClassSuper.call(this, e), e.superClass && this.isRelational("<") && (e.superTypeParameters = this.flowParseTypeParameterInstantiation()), this.isContextual("implements")) { - this.next();var s = e.implements = [];do { - var i = this.startNode();i.id = this.parseIdentifier(), this.isRelational("<") ? i.typeParameters = this.flowParseTypeParameterInstantiation() : i.typeParameters = null, s.push(this.finishNode(i, "ClassImplements")); - } while (this.eat(k.comma)); - } - }, e.prototype.parsePropertyName = function (e) { - var s = this.flowParseVariance(), - i = t.prototype.parsePropertyName.call(this, e);return e.variance = s, i; - }, e.prototype.parseObjPropValue = function (e, s, i, r, a, n, o) { - e.variance && this.unexpected(e.variance.start), delete e.variance;var h = void 0;this.isRelational("<") && (h = this.flowParseTypeParameterDeclaration(), this.match(k.parenL) || this.unexpected()), t.prototype.parseObjPropValue.call(this, e, s, i, r, a, n, o), h && ((e.value || e).typeParameters = h); - }, e.prototype.parseAssignableListItemTypes = function (t) { - if (this.eat(k.question)) { - if ("Identifier" !== t.type) throw this.raise(t.start, "A binding pattern parameter cannot be optional in an implementation signature.");t.optional = !0; - }return this.match(k.colon) && (t.typeAnnotation = this.flowParseTypeAnnotation()), this.finishNode(t, t.type), t; - }, e.prototype.parseMaybeDefault = function (e, s, i) { - var r = t.prototype.parseMaybeDefault.call(this, e, s, i);return "AssignmentPattern" === r.type && r.typeAnnotation && r.right.start < r.typeAnnotation.start && this.raise(r.typeAnnotation.start, "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`"), r; - }, e.prototype.parseImportSpecifiers = function (e) { - e.importKind = "value";var s = null;if (this.match(k._typeof) ? s = "typeof" : this.isContextual("type") && (s = "type"), s) { - var i = this.lookahead();(i.type === k.name && "from" !== i.value || i.type === k.braceL || i.type === k.star) && (this.next(), e.importKind = s); - }t.prototype.parseImportSpecifiers.call(this, e); - }, e.prototype.parseImportSpecifier = function (t) { - var e = this.startNode(), - s = this.state.start, - i = this.parseIdentifier(!0), - r = null;"type" === i.name ? r = "type" : "typeof" === i.name && (r = "typeof");var a = !1;if (this.isContextual("as")) { - var n = this.parseIdentifier(!0);null === r || this.match(k.name) || this.state.type.keyword ? (e.imported = i, e.importKind = null, e.local = this.parseIdentifier()) : (e.imported = n, e.importKind = r, e.local = n.__clone()); - } else null !== r && (this.match(k.name) || this.state.type.keyword) ? (e.imported = this.parseIdentifier(!0), e.importKind = r, this.eatContextual("as") ? e.local = this.parseIdentifier() : (a = !0, e.local = e.imported.__clone())) : (a = !0, e.imported = i, e.importKind = null, e.local = e.imported.__clone());"type" !== t.importKind && "typeof" !== t.importKind || "type" !== e.importKind && "typeof" !== e.importKind || this.raise(s, "`The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements`"), a && this.checkReservedWord(e.local.name, e.start, !0, !0), this.checkLVal(e.local, !0, void 0, "import specifier"), t.specifiers.push(this.finishNode(e, "ImportSpecifier")); - }, e.prototype.parseFunctionParams = function (e) { - this.isRelational("<") && (e.typeParameters = this.flowParseTypeParameterDeclaration()), t.prototype.parseFunctionParams.call(this, e); - }, e.prototype.parseVarHead = function (e) { - t.prototype.parseVarHead.call(this, e), this.match(k.colon) && (e.id.typeAnnotation = this.flowParseTypeAnnotation(), this.finishNode(e.id, e.id.type)); - }, e.prototype.parseAsyncArrowFromCallExpression = function (e, s) { - if (this.match(k.colon)) { - var i = this.state.noAnonFunctionType;this.state.noAnonFunctionType = !0, e.returnType = this.flowParseTypeAnnotation(), this.state.noAnonFunctionType = i; - }return t.prototype.parseAsyncArrowFromCallExpression.call(this, e, s); - }, e.prototype.shouldParseAsyncArrow = function () { - return this.match(k.colon) || t.prototype.shouldParseAsyncArrow.call(this); - }, e.prototype.parseMaybeAssign = function (e, s, i, r) { - var a = this, - n = null;if (k.jsxTagStart && this.match(k.jsxTagStart)) { - var o = this.state.clone();try { - return t.prototype.parseMaybeAssign.call(this, e, s, i, r); - } catch (t) { - if (!(t instanceof SyntaxError)) throw t;this.state = o, this.state.context.length -= 2, n = t; - } - }if (null != n || this.isRelational("<")) { - var h = void 0, - p = void 0;try { - p = this.flowParseTypeParameterDeclaration(), (h = this.forwardNoArrowParamsConversionAt(p, function () { - return t.prototype.parseMaybeAssign.call(a, e, s, i, r); - })).typeParameters = p, this.resetStartLocationFromNode(h, p); - } catch (t) { - throw n || t; - }if ("ArrowFunctionExpression" === h.type) return h;if (null != n) throw n;this.raise(p.start, "Expected an arrow function after this type parameter declaration"); - }return t.prototype.parseMaybeAssign.call(this, e, s, i, r); - }, e.prototype.parseArrow = function (e) { - if (this.match(k.colon)) { - var s = this.state.clone();try { - var i = this.state.noAnonFunctionType;this.state.noAnonFunctionType = !0;var r = this.startNode(), - a = this.flowParseTypeAndPredicateInitialiser();r.typeAnnotation = a[0], e.predicate = a[1], this.state.noAnonFunctionType = i, this.canInsertSemicolon() && this.unexpected(), this.match(k.arrow) || this.unexpected(), e.returnType = r.typeAnnotation ? this.finishNode(r, "TypeAnnotation") : null; - } catch (t) { - if (!(t instanceof SyntaxError)) throw t;this.state = s; - } - }return t.prototype.parseArrow.call(this, e); - }, e.prototype.shouldParseArrow = function () { - return this.match(k.colon) || t.prototype.shouldParseArrow.call(this); - }, e.prototype.setArrowFunctionParameters = function (e, s) { - -1 !== this.state.noArrowParamsConversionAt.indexOf(e.start) ? e.params = s : t.prototype.setArrowFunctionParameters.call(this, e, s); - }, e.prototype.checkFunctionNameAndParams = function (e, s) { - if (!s || -1 === this.state.noArrowParamsConversionAt.indexOf(e.start)) return t.prototype.checkFunctionNameAndParams.call(this, e, s); - }, e.prototype.parseParenAndDistinguishExpression = function (e) { - return t.prototype.parseParenAndDistinguishExpression.call(this, e && -1 === this.state.noArrowAt.indexOf(this.state.start)); - }, e.prototype.parseSubscripts = function (e, s, i, r) { - if ("Identifier" === e.type && "async" === e.name && -1 !== this.state.noArrowAt.indexOf(s)) { - this.next();var a = this.startNodeAt(s, i);a.callee = e, a.arguments = this.parseCallExpressionArguments(k.parenR, !1), e = this.finishNode(a, "CallExpression"); - }return t.prototype.parseSubscripts.call(this, e, s, i, r); - }, e; - }(t); - }, et.jsx = function (t) { - return function (t) { - function e() { - return t.apply(this, arguments) || this; - }return T(e, t), e.prototype.jsxReadToken = function () { - for (var t = "", e = this.state.pos;;) { - this.state.pos >= this.input.length && this.raise(this.state.start, "Unterminated JSX contents");var s = this.input.charCodeAt(this.state.pos);switch (s) {case 60:case 123: - return this.state.pos === this.state.start ? 60 === s && this.state.exprAllowed ? (++this.state.pos, this.finishToken(k.jsxTagStart)) : this.getTokenFromCode(s) : (t += this.input.slice(e, this.state.pos), this.finishToken(k.jsxText, t));case 38: - t += this.input.slice(e, this.state.pos), t += this.jsxReadEntity(), e = this.state.pos;break;default: - o(s) ? (t += this.input.slice(e, this.state.pos), t += this.jsxReadNewLine(!0), e = this.state.pos) : ++this.state.pos;} - } - }, e.prototype.jsxReadNewLine = function (t) { - var e = this.input.charCodeAt(this.state.pos), - s = void 0;return ++this.state.pos, 13 === e && 10 === this.input.charCodeAt(this.state.pos) ? (++this.state.pos, s = t ? "\n" : "\r\n") : s = String.fromCharCode(e), ++this.state.curLine, this.state.lineStart = this.state.pos, s; - }, e.prototype.jsxReadString = function (t) { - for (var e = "", s = ++this.state.pos;;) { - this.state.pos >= this.input.length && this.raise(this.state.start, "Unterminated string constant");var i = this.input.charCodeAt(this.state.pos);if (i === t) break;38 === i ? (e += this.input.slice(s, this.state.pos), e += this.jsxReadEntity(), s = this.state.pos) : o(i) ? (e += this.input.slice(s, this.state.pos), e += this.jsxReadNewLine(!1), s = this.state.pos) : ++this.state.pos; - }return e += this.input.slice(s, this.state.pos++), this.finishToken(k.string, e); - }, e.prototype.jsxReadEntity = function () { - for (var t = "", e = 0, s = void 0, i = this.input[this.state.pos], r = ++this.state.pos; this.state.pos < this.input.length && e++ < 10;) { - if (";" === (i = this.input[this.state.pos++])) { - "#" === t[0] ? "x" === t[1] ? (t = t.substr(2), nt.test(t) && (s = String.fromCodePoint(parseInt(t, 16)))) : (t = t.substr(1), ot.test(t) && (s = String.fromCodePoint(parseInt(t, 10)))) : s = at[t];break; - }t += i; - }return s || (this.state.pos = r, "&"); - }, e.prototype.jsxReadWord = function () { - var t = void 0, - e = this.state.pos;do { - t = this.input.charCodeAt(++this.state.pos); - } while (n(t) || 45 === t);return this.finishToken(k.jsxName, this.input.slice(e, this.state.pos)); - }, e.prototype.jsxParseIdentifier = function () { - var t = this.startNode();return this.match(k.jsxName) ? t.name = this.state.value : this.state.type.keyword ? t.name = this.state.type.keyword : this.unexpected(), this.next(), this.finishNode(t, "JSXIdentifier"); - }, e.prototype.jsxParseNamespacedName = function () { - var t = this.state.start, - e = this.state.startLoc, - s = this.jsxParseIdentifier();if (!this.eat(k.colon)) return s;var i = this.startNodeAt(t, e);return i.namespace = s, i.name = this.jsxParseIdentifier(), this.finishNode(i, "JSXNamespacedName"); - }, e.prototype.jsxParseElementName = function () { - for (var t = this.state.start, e = this.state.startLoc, s = this.jsxParseNamespacedName(); this.eat(k.dot);) { - var i = this.startNodeAt(t, e);i.object = s, i.property = this.jsxParseIdentifier(), s = this.finishNode(i, "JSXMemberExpression"); - }return s; - }, e.prototype.jsxParseAttributeValue = function () { - var t = void 0;switch (this.state.type) {case k.braceL: - if ("JSXEmptyExpression" === (t = this.jsxParseExpressionContainer()).expression.type) throw this.raise(t.start, "JSX attributes must only be assigned a non-empty expression");return t;case k.jsxTagStart:case k.string: - return this.parseExprAtom();default: - throw this.raise(this.state.start, "JSX value should be either an expression or a quoted JSX text");} - }, e.prototype.jsxParseEmptyExpression = function () { - var t = this.startNodeAt(this.state.lastTokEnd, this.state.lastTokEndLoc);return this.finishNodeAt(t, "JSXEmptyExpression", this.state.start, this.state.startLoc); - }, e.prototype.jsxParseSpreadChild = function () { - var t = this.startNode();return this.expect(k.braceL), this.expect(k.ellipsis), t.expression = this.parseExpression(), this.expect(k.braceR), this.finishNode(t, "JSXSpreadChild"); - }, e.prototype.jsxParseExpressionContainer = function () { - var t = this.startNode();return this.next(), this.match(k.braceR) ? t.expression = this.jsxParseEmptyExpression() : t.expression = this.parseExpression(), this.expect(k.braceR), this.finishNode(t, "JSXExpressionContainer"); - }, e.prototype.jsxParseAttribute = function () { - var t = this.startNode();return this.eat(k.braceL) ? (this.expect(k.ellipsis), t.argument = this.parseMaybeAssign(), this.expect(k.braceR), this.finishNode(t, "JSXSpreadAttribute")) : (t.name = this.jsxParseNamespacedName(), t.value = this.eat(k.eq) ? this.jsxParseAttributeValue() : null, this.finishNode(t, "JSXAttribute")); - }, e.prototype.jsxParseOpeningElementAt = function (t, e) { - var s = this.startNodeAt(t, e);for (s.attributes = [], s.name = this.jsxParseElementName(); !this.match(k.slash) && !this.match(k.jsxTagEnd);) { - s.attributes.push(this.jsxParseAttribute()); - }return s.selfClosing = this.eat(k.slash), this.expect(k.jsxTagEnd), this.finishNode(s, "JSXOpeningElement"); - }, e.prototype.jsxParseClosingElementAt = function (t, e) { - var s = this.startNodeAt(t, e);return s.name = this.jsxParseElementName(), this.expect(k.jsxTagEnd), this.finishNode(s, "JSXClosingElement"); - }, e.prototype.jsxParseElementAt = function (t, e) { - var s = this.startNodeAt(t, e), - i = [], - r = this.jsxParseOpeningElementAt(t, e), - a = null;if (!r.selfClosing) { - t: for (;;) { - switch (this.state.type) {case k.jsxTagStart: - if (t = this.state.start, e = this.state.startLoc, this.next(), this.eat(k.slash)) { - a = this.jsxParseClosingElementAt(t, e);break t; - }i.push(this.jsxParseElementAt(t, e));break;case k.jsxText: - i.push(this.parseExprAtom());break;case k.braceL: - this.lookahead().type === k.ellipsis ? i.push(this.jsxParseSpreadChild()) : i.push(this.jsxParseExpressionContainer());break;default: - throw this.unexpected();} - }y(a.name) !== y(r.name) && this.raise(a.start, "Expected corresponding JSX closing tag for <" + y(r.name) + ">"); - }return s.openingElement = r, s.closingElement = a, s.children = i, this.match(k.relational) && "<" === this.state.value && this.raise(this.state.start, "Adjacent JSX elements must be wrapped in an enclosing tag"), this.finishNode(s, "JSXElement"); - }, e.prototype.jsxParseElement = function () { - var t = this.state.start, - e = this.state.startLoc;return this.next(), this.jsxParseElementAt(t, e); - }, e.prototype.parseExprAtom = function (e) { - return this.match(k.jsxText) ? this.parseLiteral(this.state.value, "JSXText") : this.match(k.jsxTagStart) ? this.jsxParseElement() : t.prototype.parseExprAtom.call(this, e); - }, e.prototype.readToken = function (e) { - if (this.state.inPropertyName) return t.prototype.readToken.call(this, e);var s = this.curContext();if (s === V.j_expr) return this.jsxReadToken();if (s === V.j_oTag || s === V.j_cTag) { - if (a(e)) return this.jsxReadWord();if (62 === e) return ++this.state.pos, this.finishToken(k.jsxTagEnd);if ((34 === e || 39 === e) && s === V.j_oTag) return this.jsxReadString(e); - }return 60 === e && this.state.exprAllowed ? (++this.state.pos, this.finishToken(k.jsxTagStart)) : t.prototype.readToken.call(this, e); - }, e.prototype.updateContext = function (e) { - if (this.match(k.braceL)) { - var s = this.curContext();s === V.j_oTag ? this.state.context.push(V.braceExpression) : s === V.j_expr ? this.state.context.push(V.templateQuasi) : t.prototype.updateContext.call(this, e), this.state.exprAllowed = !0; - } else { - if (!this.match(k.slash) || e !== k.jsxTagStart) return t.prototype.updateContext.call(this, e);this.state.context.length -= 2, this.state.context.push(V.j_cTag), this.state.exprAllowed = !1; - } - }, e; - }(t); - }, et.typescript = function (t) { - return function (t) { - function e() { - return t.apply(this, arguments) || this; - }return T(e, t), e.prototype.tsIsIdentifier = function () { - return this.match(k.name); - }, e.prototype.tsNextTokenCanFollowModifier = function () { - return this.next(), !(this.hasPrecedingLineBreak() || this.match(k.parenL) || this.match(k.colon) || this.match(k.eq) || this.match(k.question)); - }, e.prototype.tsParseModifier = function (t) { - if (this.match(k.name)) { - var e = this.state.value;return -1 !== t.indexOf(e) && this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)) ? e : void 0; - } - }, e.prototype.tsIsListTerminator = function (t) { - switch (t) {case "EnumMembers":case "TypeMembers": - return this.match(k.braceR);case "HeritageClauseElement": - return this.match(k.braceL);case "TupleElementTypes": - return this.match(k.bracketR);case "TypeParametersOrArguments": - return this.isRelational(">");}throw new Error("Unreachable"); - }, e.prototype.tsParseList = function (t, e) { - for (var s = []; !this.tsIsListTerminator(t);) { - s.push(e()); - }return s; - }, e.prototype.tsParseDelimitedList = function (t, e) { - return m(this.tsParseDelimitedListWorker(t, e, !0)); - }, e.prototype.tsTryParseDelimitedList = function (t, e) { - return this.tsParseDelimitedListWorker(t, e, !1); - }, e.prototype.tsParseDelimitedListWorker = function (t, e, s) { - for (var i = []; !this.tsIsListTerminator(t);) { - var r = e();if (null == r) return;if (i.push(r), !this.eat(k.comma)) { - if (this.tsIsListTerminator(t)) break;return void (s && this.expect(k.comma)); - } - }return i; - }, e.prototype.tsParseBracketedList = function (t, e, s, i) { - i || (s ? this.expect(k.bracketL) : this.expectRelational("<"));var r = this.tsParseDelimitedList(t, e);return s ? this.expect(k.bracketR) : this.expectRelational(">"), r; - }, e.prototype.tsParseEntityName = function (t) { - for (var e = this.parseIdentifier(); this.eat(k.dot);) { - var s = this.startNodeAtNode(e);s.left = e, s.right = this.parseIdentifier(t), e = this.finishNode(s, "TSQualifiedName"); - }return e; - }, e.prototype.tsParseTypeReference = function () { - var t = this.startNode();return t.typeName = this.tsParseEntityName(!1), !this.hasPrecedingLineBreak() && this.isRelational("<") && (t.typeParameters = this.tsParseTypeArguments()), this.finishNode(t, "TSTypeReference"); - }, e.prototype.tsParseThisTypePredicate = function (t) { - this.next();var e = this.startNode();return e.parameterName = t, e.typeAnnotation = this.tsParseTypeAnnotation(!1), this.finishNode(e, "TSTypePredicate"); - }, e.prototype.tsParseThisTypeNode = function () { - var t = this.startNode();return this.next(), this.finishNode(t, "TSThisType"); - }, e.prototype.tsParseTypeQuery = function () { - var t = this.startNode();return this.expect(k._typeof), t.exprName = this.tsParseEntityName(!0), this.finishNode(t, "TSTypeQuery"); - }, e.prototype.tsParseTypeParameter = function () { - var t = this.startNode();return t.name = this.parseIdentifierName(t.start), this.eat(k._extends) && (t.constraint = this.tsParseType()), this.eat(k.eq) && (t.default = this.tsParseType()), this.finishNode(t, "TSTypeParameter"); - }, e.prototype.tsTryParseTypeParameters = function () { - if (this.isRelational("<")) return this.tsParseTypeParameters(); - }, e.prototype.tsParseTypeParameters = function () { - var t = this.startNode();return this.isRelational("<") || this.match(k.jsxTagStart) ? this.next() : this.unexpected(), t.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this), !1, !0), this.finishNode(t, "TSTypeParameterDeclaration"); - }, e.prototype.tsFillSignature = function (t, e) { - var s = t === k.arrow;e.typeParameters = this.tsTryParseTypeParameters(), this.expect(k.parenL), e.parameters = this.tsParseBindingListForSignature(), s ? e.typeAnnotation = this.tsParseTypeOrTypePredicateAnnotation(t) : this.match(t) && (e.typeAnnotation = this.tsParseTypeOrTypePredicateAnnotation(t)); - }, e.prototype.tsParseBindingListForSignature = function () { - var t = this;return this.parseBindingList(k.parenR).map(function (e) { - if ("Identifier" !== e.type && "RestElement" !== e.type) throw t.unexpected(e.start, "Name in a signature must be an Identifier.");return e; - }); - }, e.prototype.tsParseTypeMemberSemicolon = function () { - this.eat(k.comma) || this.semicolon(); - }, e.prototype.tsParseSignatureMember = function (t) { - var e = this.startNode();return "TSConstructSignatureDeclaration" === t && this.expect(k._new), this.tsFillSignature(k.colon, e), this.tsParseTypeMemberSemicolon(), this.finishNode(e, t); - }, e.prototype.tsIsUnambiguouslyIndexSignature = function () { - return this.next(), this.eat(k.name) && this.match(k.colon); - }, e.prototype.tsTryParseIndexSignature = function (t) { - if (this.match(k.bracketL) && this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))) { - this.expect(k.bracketL);var e = this.parseIdentifier();this.expect(k.colon), e.typeAnnotation = this.tsParseTypeAnnotation(!1), this.expect(k.bracketR), t.parameters = [e];var s = this.tsTryParseTypeAnnotation();return s && (t.typeAnnotation = s), this.tsParseTypeMemberSemicolon(), this.finishNode(t, "TSIndexSignature"); - } - }, e.prototype.tsParsePropertyOrMethodSignature = function (t, e) { - this.parsePropertyName(t), this.eat(k.question) && (t.optional = !0);var s = t;if (e || !this.match(k.parenL) && !this.isRelational("<")) { - var i = s;e && (i.readonly = !0);var r = this.tsTryParseTypeAnnotation();return r && (i.typeAnnotation = r), this.tsParseTypeMemberSemicolon(), this.finishNode(i, "TSPropertySignature"); - }var a = s;return this.tsFillSignature(k.colon, a), this.tsParseTypeMemberSemicolon(), this.finishNode(a, "TSMethodSignature"); - }, e.prototype.tsParseTypeMember = function () { - if (this.match(k.parenL) || this.isRelational("<")) return this.tsParseSignatureMember("TSCallSignatureDeclaration");if (this.match(k._new) && this.tsLookAhead(this.tsIsStartOfConstructSignature.bind(this))) return this.tsParseSignatureMember("TSConstructSignatureDeclaration");var t = this.startNode(), - e = !!this.tsParseModifier(["readonly"]), - s = this.tsTryParseIndexSignature(t);return s ? (e && (t.readonly = !0), s) : this.tsParsePropertyOrMethodSignature(t, e); - }, e.prototype.tsIsStartOfConstructSignature = function () { - return this.next(), this.match(k.parenL) || this.isRelational("<"); - }, e.prototype.tsParseTypeLiteral = function () { - var t = this.startNode();return t.members = this.tsParseObjectTypeMembers(), this.finishNode(t, "TSTypeLiteral"); - }, e.prototype.tsParseObjectTypeMembers = function () { - this.expect(k.braceL);var t = this.tsParseList("TypeMembers", this.tsParseTypeMember.bind(this));return this.expect(k.braceR), t; - }, e.prototype.tsIsStartOfMappedType = function () { - return this.next(), this.isContextual("readonly") && this.next(), !!this.match(k.bracketL) && (this.next(), !!this.tsIsIdentifier() && (this.next(), this.match(k._in))); - }, e.prototype.tsParseMappedTypeParameter = function () { - var t = this.startNode();return t.name = this.parseIdentifierName(t.start), this.expect(k._in), t.constraint = this.tsParseType(), this.finishNode(t, "TSTypeParameter"); - }, e.prototype.tsParseMappedType = function () { - var t = this.startNode();return this.expect(k.braceL), this.eatContextual("readonly") && (t.readonly = !0), this.expect(k.bracketL), t.typeParameter = this.tsParseMappedTypeParameter(), this.expect(k.bracketR), this.eat(k.question) && (t.optional = !0), t.typeAnnotation = this.tsTryParseType(), this.semicolon(), this.expect(k.braceR), this.finishNode(t, "TSMappedType"); - }, e.prototype.tsParseTupleType = function () { - var t = this.startNode();return t.elementTypes = this.tsParseBracketedList("TupleElementTypes", this.tsParseType.bind(this), !0, !1), this.finishNode(t, "TSTupleType"); - }, e.prototype.tsParseParenthesizedType = function () { - var t = this.startNode();return this.expect(k.parenL), t.typeAnnotation = this.tsParseType(), this.expect(k.parenR), this.finishNode(t, "TSParenthesizedType"); - }, e.prototype.tsParseFunctionOrConstructorType = function (t) { - var e = this.startNode();return "TSConstructorType" === t && this.expect(k._new), this.tsFillSignature(k.arrow, e), this.finishNode(e, t); - }, e.prototype.tsParseLiteralTypeNode = function () { - var t = this, - e = this.startNode();return e.literal = function () { - switch (t.state.type) {case k.num: - return t.parseLiteral(t.state.value, "NumericLiteral");case k.string: - return t.parseLiteral(t.state.value, "StringLiteral");case k._true:case k._false: - return t.parseBooleanLiteral();default: - throw t.unexpected();} - }(), this.finishNode(e, "TSLiteralType"); - }, e.prototype.tsParseNonArrayType = function () { - switch (this.state.type) {case k.name:case k._void:case k._null: - var t = this.match(k._void) ? "TSVoidKeyword" : this.match(k._null) ? "TSNullKeyword" : v(this.state.value);if (void 0 !== t && this.lookahead().type !== k.dot) { - var e = this.startNode();return this.next(), this.finishNode(e, t); - }return this.tsParseTypeReference();case k.string:case k.num:case k._true:case k._false: - return this.tsParseLiteralTypeNode();case k.plusMin: - if ("-" === this.state.value) { - var s = this.startNode();if (this.next(), !this.match(k.num)) throw this.unexpected();return s.literal = this.parseLiteral(-this.state.value, "NumericLiteral", s.start, s.loc.start), this.finishNode(s, "TSLiteralType"); - }break;case k._this: - var i = this.tsParseThisTypeNode();return this.isContextual("is") && !this.hasPrecedingLineBreak() ? this.tsParseThisTypePredicate(i) : i;case k._typeof: - return this.tsParseTypeQuery();case k.braceL: - return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this)) ? this.tsParseMappedType() : this.tsParseTypeLiteral();case k.bracketL: - return this.tsParseTupleType();case k.parenL: - return this.tsParseParenthesizedType();}throw this.unexpected(); - }, e.prototype.tsParseArrayTypeOrHigher = function () { - for (var t = this.tsParseNonArrayType(); !this.hasPrecedingLineBreak() && this.eat(k.bracketL);) { - if (this.match(k.bracketR)) { - var e = this.startNodeAtNode(t);e.elementType = t, this.expect(k.bracketR), t = this.finishNode(e, "TSArrayType"); - } else { - var s = this.startNodeAtNode(t);s.objectType = t, s.indexType = this.tsParseType(), this.expect(k.bracketR), t = this.finishNode(s, "TSIndexedAccessType"); - } - }return t; - }, e.prototype.tsParseTypeOperator = function (t) { - var e = this.startNode();return this.expectContextual(t), e.operator = t, e.typeAnnotation = this.tsParseTypeOperatorOrHigher(), this.finishNode(e, "TSTypeOperator"); - }, e.prototype.tsParseTypeOperatorOrHigher = function () { - return this.isContextual("keyof") ? this.tsParseTypeOperator("keyof") : this.tsParseArrayTypeOrHigher(); - }, e.prototype.tsParseUnionOrIntersectionType = function (t, e, s) { - this.eat(s);var i = e();if (this.match(s)) { - for (var r = [i]; this.eat(s);) { - r.push(e()); - }var a = this.startNodeAtNode(i);a.types = r, i = this.finishNode(a, t); - }return i; - }, e.prototype.tsParseIntersectionTypeOrHigher = function () { - return this.tsParseUnionOrIntersectionType("TSIntersectionType", this.tsParseTypeOperatorOrHigher.bind(this), k.bitwiseAND); - }, e.prototype.tsParseUnionTypeOrHigher = function () { - return this.tsParseUnionOrIntersectionType("TSUnionType", this.tsParseIntersectionTypeOrHigher.bind(this), k.bitwiseOR); - }, e.prototype.tsIsStartOfFunctionType = function () { - return !!this.isRelational("<") || this.match(k.parenL) && this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this)); - }, e.prototype.tsSkipParameterStart = function () { - return !(!this.match(k.name) && !this.match(k._this) || (this.next(), 0)); - }, e.prototype.tsIsUnambiguouslyStartOfFunctionType = function () { - if (this.next(), this.match(k.parenR) || this.match(k.ellipsis)) return !0;if (this.tsSkipParameterStart()) { - if (this.match(k.colon) || this.match(k.comma) || this.match(k.question) || this.match(k.eq)) return !0;if (this.match(k.parenR) && (this.next(), this.match(k.arrow))) return !0; - }return !1; - }, e.prototype.tsParseTypeOrTypePredicateAnnotation = function (t) { - var e = this.startNode();this.expect(t);var s = this.tsIsIdentifier() && this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if (!s) return this.tsParseTypeAnnotation(!1, e);var i = this.tsParseTypeAnnotation(!1), - r = this.startNodeAtNode(s);return r.parameterName = s, r.typeAnnotation = i, e.typeAnnotation = this.finishNode(r, "TSTypePredicate"), this.finishNode(e, "TSTypeAnnotation"); - }, e.prototype.tsTryParseTypeOrTypePredicateAnnotation = function () { - return this.match(k.colon) ? this.tsParseTypeOrTypePredicateAnnotation(k.colon) : void 0; - }, e.prototype.tsTryParseTypeAnnotation = function () { - return this.match(k.colon) ? this.tsParseTypeAnnotation() : void 0; - }, e.prototype.tsTryParseType = function () { - return this.eat(k.colon) ? this.tsParseType() : void 0; - }, e.prototype.tsParseTypePredicatePrefix = function () { - var t = this.parseIdentifier();if (this.isContextual("is") && !this.hasPrecedingLineBreak()) return this.next(), t; - }, e.prototype.tsParseTypeAnnotation = function (t, e) { - return void 0 === t && (t = !0), void 0 === e && (e = this.startNode()), t && this.expect(k.colon), e.typeAnnotation = this.tsParseType(), this.finishNode(e, "TSTypeAnnotation"); - }, e.prototype.tsParseType = function () { - var t = this.state.inType;this.state.inType = !0;try { - return this.tsIsStartOfFunctionType() ? this.tsParseFunctionOrConstructorType("TSFunctionType") : this.match(k._new) ? this.tsParseFunctionOrConstructorType("TSConstructorType") : this.tsParseUnionTypeOrHigher(); - } finally { - this.state.inType = t; - } - }, e.prototype.tsParseTypeAssertion = function () { - var t = this.startNode();return t.typeAnnotation = this.tsParseType(), this.expectRelational(">"), t.expression = this.parseMaybeUnary(), this.finishNode(t, "TSTypeAssertion"); - }, e.prototype.tsTryParseTypeArgumentsInExpression = function () { - var t = this;return this.tsTryParseAndCatch(function () { - var e = t.startNode();t.expectRelational("<");var s = t.tsParseDelimitedList("TypeParametersOrArguments", t.tsParseType.bind(t));return t.expectRelational(">"), e.params = s, t.finishNode(e, "TSTypeParameterInstantiation"), t.expect(k.parenL), e; - }); - }, e.prototype.tsParseHeritageClause = function () { - return this.tsParseDelimitedList("HeritageClauseElement", this.tsParseExpressionWithTypeArguments.bind(this)); - }, e.prototype.tsParseExpressionWithTypeArguments = function () { - var t = this.startNode();return t.expression = this.tsParseEntityName(!1), this.isRelational("<") && (t.typeParameters = this.tsParseTypeArguments()), this.finishNode(t, "TSExpressionWithTypeArguments"); - }, e.prototype.tsParseInterfaceDeclaration = function (t) { - t.id = this.parseIdentifier(), t.typeParameters = this.tsTryParseTypeParameters(), this.eat(k._extends) && (t.extends = this.tsParseHeritageClause());var e = this.startNode();return e.body = this.tsParseObjectTypeMembers(), t.body = this.finishNode(e, "TSInterfaceBody"), this.finishNode(t, "TSInterfaceDeclaration"); - }, e.prototype.tsParseTypeAliasDeclaration = function (t) { - return t.id = this.parseIdentifier(), t.typeParameters = this.tsTryParseTypeParameters(), this.expect(k.eq), t.typeAnnotation = this.tsParseType(), this.semicolon(), this.finishNode(t, "TSTypeAliasDeclaration"); - }, e.prototype.tsParseEnumMember = function () { - var t = this.startNode();return t.id = this.match(k.string) ? this.parseLiteral(this.state.value, "StringLiteral") : this.parseIdentifier(!0), this.eat(k.eq) && (t.initializer = this.parseMaybeAssign()), this.finishNode(t, "TSEnumMember"); - }, e.prototype.tsParseEnumDeclaration = function (t, e) { - return e && (t.const = !0), t.id = this.parseIdentifier(), this.expect(k.braceL), t.members = this.tsParseDelimitedList("EnumMembers", this.tsParseEnumMember.bind(this)), this.expect(k.braceR), this.finishNode(t, "TSEnumDeclaration"); - }, e.prototype.tsParseModuleBlock = function () { - var t = this.startNode();return this.expect(k.braceL), this.parseBlockOrModuleBlockBody(t.body = [], void 0, !0, k.braceR), this.finishNode(t, "TSModuleBlock"); - }, e.prototype.tsParseModuleOrNamespaceDeclaration = function (t) { - if (t.id = this.parseIdentifier(), this.eat(k.dot)) { - var e = this.startNode();this.tsParseModuleOrNamespaceDeclaration(e), t.body = e; - } else t.body = this.tsParseModuleBlock();return this.finishNode(t, "TSModuleDeclaration"); - }, e.prototype.tsParseAmbientExternalModuleDeclaration = function (t) { - return this.isContextual("global") ? (t.global = !0, t.id = this.parseIdentifier()) : this.match(k.string) ? t.id = this.parseExprAtom() : this.unexpected(), this.match(k.braceL) ? t.body = this.tsParseModuleBlock() : this.semicolon(), this.finishNode(t, "TSModuleDeclaration"); - }, e.prototype.tsParseImportEqualsDeclaration = function (t, e) { - return t.isExport = e || !1, t.id = this.parseIdentifier(), this.expect(k.eq), t.moduleReference = this.tsParseModuleReference(), this.semicolon(), this.finishNode(t, "TSImportEqualsDeclaration"); - }, e.prototype.tsIsExternalModuleReference = function () { - return this.isContextual("require") && this.lookahead().type === k.parenL; - }, e.prototype.tsParseModuleReference = function () { - return this.tsIsExternalModuleReference() ? this.tsParseExternalModuleReference() : this.tsParseEntityName(!1); - }, e.prototype.tsParseExternalModuleReference = function () { - var t = this.startNode();if (this.expectContextual("require"), this.expect(k.parenL), !this.match(k.string)) throw this.unexpected();return t.expression = this.parseLiteral(this.state.value, "StringLiteral"), this.expect(k.parenR), this.finishNode(t, "TSExternalModuleReference"); - }, e.prototype.tsLookAhead = function (t) { - var e = this.state.clone(), - s = t();return this.state = e, s; - }, e.prototype.tsTryParseAndCatch = function (t) { - var e = this.state.clone();try { - return t(); - } catch (t) { - if (t instanceof SyntaxError) return void (this.state = e);throw t; - } - }, e.prototype.tsTryParse = function (t) { - var e = this.state.clone(), - s = t();return void 0 !== s && !1 !== s ? s : void (this.state = e); - }, e.prototype.nodeWithSamePosition = function (t, e) { - var s = this.startNodeAtNode(t);return s.type = e, s.end = t.end, s.loc.end = t.loc.end, t.leadingComments && (s.leadingComments = t.leadingComments), t.trailingComments && (s.trailingComments = t.trailingComments), t.innerComments && (s.innerComments = t.innerComments), s; - }, e.prototype.tsTryParseDeclare = function (t) { - switch (this.state.type) {case k._function: - return this.next(), this.parseFunction(t, !0);case k._class: - return this.parseClass(t, !0, !1);case k._const: - if (this.match(k._const) && this.lookaheadIsContextual("enum")) return this.expect(k._const), this.expectContextual("enum"), this.tsParseEnumDeclaration(t, !0);case k._var:case k._let: - return this.parseVarStatement(t, this.state.type);case k.name: - var e = this.state.value;return "global" === e ? this.tsParseAmbientExternalModuleDeclaration(t) : this.tsParseDeclaration(t, e, !0);} - }, e.prototype.lookaheadIsContextual = function (t) { - var e = this.lookahead();return e.type === k.name && e.value === t; - }, e.prototype.tsTryParseExportDeclaration = function () { - return this.tsParseDeclaration(this.startNode(), this.state.value, !0); - }, e.prototype.tsParseExpressionStatement = function (t, e) { - switch (e.name) {case "declare": - var s = this.tsTryParseDeclare(t);if (s) return s.declare = !0, s;break;case "global": - if (this.match(k.braceL)) { - var i = t;return i.global = !0, i.id = e, i.body = this.tsParseModuleBlock(), this.finishNode(i, "TSModuleDeclaration"); - }break;default: - return this.tsParseDeclaration(t, e.name, !1);} - }, e.prototype.tsParseDeclaration = function (t, e, s) { - switch (e) {case "abstract": - if (s || this.match(k._class)) { - var i = t;return i.abstract = !0, s && this.next(), this.parseClass(i, !0, !1); - }break;case "enum": - if (s || this.match(k.name)) return s && this.next(), this.tsParseEnumDeclaration(t, !1);break;case "interface": - if (s || this.match(k.name)) return s && this.next(), this.tsParseInterfaceDeclaration(t);break;case "module": - if (s && this.next(), this.match(k.string)) return this.tsParseAmbientExternalModuleDeclaration(t);if (s || this.match(k.name)) return this.tsParseModuleOrNamespaceDeclaration(t);break;case "namespace": - if (s || this.match(k.name)) return s && this.next(), this.tsParseModuleOrNamespaceDeclaration(t);break;case "type": - if (s || this.match(k.name)) return s && this.next(), this.tsParseTypeAliasDeclaration(t);} - }, e.prototype.tsTryParseGenericAsyncArrowFunction = function (e, s) { - var i = this, - r = this.tsTryParseAndCatch(function () { - var r = i.startNodeAt(e, s);return r.typeParameters = i.tsParseTypeParameters(), t.prototype.parseFunctionParams.call(i, r), r.returnType = i.tsTryParseTypeOrTypePredicateAnnotation(), i.expect(k.arrow), r; - });if (r) return r.id = null, r.generator = !1, r.expression = !0, r.async = !0, this.parseFunctionBody(r, !0), this.finishNode(r, "ArrowFunctionExpression"); - }, e.prototype.tsParseTypeArguments = function () { - var t = this.startNode();return this.expectRelational("<"), t.params = this.tsParseDelimitedList("TypeParametersOrArguments", this.tsParseType.bind(this)), this.expectRelational(">"), this.finishNode(t, "TSTypeParameterInstantiation"); - }, e.prototype.tsIsDeclarationStart = function () { - if (this.match(k.name)) switch (this.state.value) {case "abstract":case "declare":case "enum":case "interface":case "module":case "namespace":case "type": - return !0;}return !1; - }, e.prototype.isExportDefaultSpecifier = function () { - return !this.tsIsDeclarationStart() && t.prototype.isExportDefaultSpecifier.call(this); - }, e.prototype.parseAssignableListItem = function (t, e) { - var s = void 0, - i = !1;t && (s = this.parseAccessModifier(), i = !!this.tsParseModifier(["readonly"]));var r = this.parseMaybeDefault();this.parseAssignableListItemTypes(r);var a = this.parseMaybeDefault(r.start, r.loc.start, r);if (s || i) { - var n = this.startNodeAtNode(a);if (e.length && (n.decorators = e), s && (n.accessibility = s), i && (n.readonly = i), "Identifier" !== a.type && "AssignmentPattern" !== a.type) throw this.raise(n.start, "A parameter property may not be declared using a binding pattern.");return n.parameter = a, this.finishNode(n, "TSParameterProperty"); - }return e.length && (r.decorators = e), a; - }, e.prototype.parseFunctionBodyAndFinish = function (e, s, i) { - !i && this.match(k.colon) && (e.returnType = this.tsParseTypeOrTypePredicateAnnotation(k.colon));var r = "FunctionDeclaration" === s ? "TSDeclareFunction" : "ClassMethod" === s ? "TSDeclareMethod" : void 0;r && !this.match(k.braceL) && this.isLineTerminator() ? this.finishNode(e, r) : t.prototype.parseFunctionBodyAndFinish.call(this, e, s, i); - }, e.prototype.parseSubscript = function (e, s, i, r, a) { - if (this.eat(k.bang)) { - var n = this.startNodeAt(s, i);return n.expression = e, this.finishNode(n, "TSNonNullExpression"); - }if (!r && this.isRelational("<")) { - if (this.atPossibleAsync(e)) { - var o = this.tsTryParseGenericAsyncArrowFunction(s, i);if (o) return o; - }var h = this.startNodeAt(s, i);h.callee = e;var p = this.tsTryParseTypeArgumentsInExpression();if (p) return h.arguments = this.parseCallExpressionArguments(k.parenR, !1), h.typeParameters = p, this.finishCallExpression(h); - }return t.prototype.parseSubscript.call(this, e, s, i, r, a); - }, e.prototype.parseNewArguments = function (e) { - var s = this;if (this.isRelational("<")) { - var i = this.tsTryParseAndCatch(function () { - var t = s.tsParseTypeArguments();return s.match(k.parenL) || s.unexpected(), t; - });i && (e.typeParameters = i); - }t.prototype.parseNewArguments.call(this, e); - }, e.prototype.parseExprOp = function (e, s, i, r, a) { - if (m(k._in.binop) > r && !this.hasPrecedingLineBreak() && this.eatContextual("as")) { - var n = this.startNodeAt(s, i);return n.expression = e, n.typeAnnotation = this.tsParseType(), this.finishNode(n, "TSAsExpression"), this.parseExprOp(n, s, i, r, a); - }return t.prototype.parseExprOp.call(this, e, s, i, r, a); - }, e.prototype.checkReservedWord = function (t, e, s, i) {}, e.prototype.checkDuplicateExports = function () {}, e.prototype.parseImport = function (e) { - return this.match(k.name) && this.lookahead().type === k.eq ? this.tsParseImportEqualsDeclaration(e) : t.prototype.parseImport.call(this, e); - }, e.prototype.parseExport = function (e) { - if (this.match(k._import)) return this.expect(k._import), this.tsParseImportEqualsDeclaration(e, !0);if (this.eat(k.eq)) { - var s = e;return s.expression = this.parseExpression(), this.semicolon(), this.finishNode(s, "TSExportAssignment"); - }if (this.eatContextual("as")) { - var i = e;return this.expectContextual("namespace"), i.id = this.parseIdentifier(), this.semicolon(), this.finishNode(i, "TSNamespaceExportDeclaration"); - }return t.prototype.parseExport.call(this, e); - }, e.prototype.parseStatementContent = function (e, s) { - if (this.state.type === k._const) { - var i = this.lookahead();if (i.type === k.name && "enum" === i.value) { - var r = this.startNode();return this.expect(k._const), this.expectContextual("enum"), this.tsParseEnumDeclaration(r, !0); - } - }return t.prototype.parseStatementContent.call(this, e, s); - }, e.prototype.parseAccessModifier = function () { - return this.tsParseModifier(["public", "protected", "private"]); - }, e.prototype.parseClassMember = function (e, s, i) { - var r = this.parseAccessModifier();r && (s.accessibility = r), t.prototype.parseClassMember.call(this, e, s, i); - }, e.prototype.parseClassMemberWithIsStatic = function (e, s, i, r) { - var a = s, - n = s, - o = s, - h = !1, - p = !1;switch (this.tsParseModifier(["abstract", "readonly"])) {case "readonly": - p = !0, h = !!this.tsParseModifier(["abstract"]);break;case "abstract": - h = !0, p = !!this.tsParseModifier(["readonly"]);}if (h && (a.abstract = !0), p && (o.readonly = !0), !h && !r && !a.accessibility) { - var c = this.tsTryParseIndexSignature(s);if (c) return void e.body.push(c); - }if (p) return a.static = r, this.parseClassPropertyName(n), this.parsePostMemberNameModifiers(a), void this.pushClassProperty(e, n);t.prototype.parseClassMemberWithIsStatic.call(this, e, s, i, r); - }, e.prototype.parsePostMemberNameModifiers = function (t) { - this.eat(k.question) && (t.optional = !0); - }, e.prototype.parseExpressionStatement = function (e, s) { - return ("Identifier" === s.type ? this.tsParseExpressionStatement(e, s) : void 0) || t.prototype.parseExpressionStatement.call(this, e, s); - }, e.prototype.shouldParseExportDeclaration = function () { - return !!this.tsIsDeclarationStart() || t.prototype.shouldParseExportDeclaration.call(this); - }, e.prototype.parseConditional = function (e, s, i, r, a) { - if (!a || !this.match(k.question)) return t.prototype.parseConditional.call(this, e, s, i, r, a);var n = this.state.clone();try { - return t.prototype.parseConditional.call(this, e, s, i, r); - } catch (t) { - if (!(t instanceof SyntaxError)) throw t;return this.state = n, a.start = t.pos || this.state.start, e; - } - }, e.prototype.parseParenItem = function (e, s, i) { - if (e = t.prototype.parseParenItem.call(this, e, s, i), this.eat(k.question) && (e.optional = !0), this.match(k.colon)) { - var r = this.startNodeAt(s, i);return r.expression = e, r.typeAnnotation = this.tsParseTypeAnnotation(), this.finishNode(r, "TSTypeCastExpression"); - }return e; - }, e.prototype.parseExportDeclaration = function (e) { - var s = this.eatContextual("declare"), - i = void 0;return this.match(k.name) && (i = this.tsTryParseExportDeclaration()), i || (i = t.prototype.parseExportDeclaration.call(this, e)), i && s && (i.declare = !0), i; - }, e.prototype.parseClassId = function (e, s, i) { - var r;if (s && !i || !this.isContextual("implements")) { - (r = t.prototype.parseClassId).call.apply(r, [this].concat(Array.prototype.slice.call(arguments)));var a = this.tsTryParseTypeParameters();a && (e.typeParameters = a); - } - }, e.prototype.parseClassProperty = function (e) { - var s = this.tsTryParseTypeAnnotation();return s && (e.typeAnnotation = s), t.prototype.parseClassProperty.call(this, e); - }, e.prototype.pushClassMethod = function (e, s, i, r, a) { - var n = this.tsTryParseTypeParameters();n && (s.typeParameters = n), t.prototype.pushClassMethod.call(this, e, s, i, r, a); - }, e.prototype.pushClassPrivateMethod = function (e, s, i, r) { - var a = this.tsTryParseTypeParameters();a && (s.typeParameters = a), t.prototype.pushClassPrivateMethod.call(this, e, s, i, r); - }, e.prototype.parseClassSuper = function (e) { - t.prototype.parseClassSuper.call(this, e), e.superClass && this.isRelational("<") && (e.superTypeParameters = this.tsParseTypeArguments()), this.eatContextual("implements") && (e.implements = this.tsParseHeritageClause()); - }, e.prototype.parseObjPropValue = function (e) { - var s;if (this.isRelational("<")) throw new Error("TODO");for (var i = arguments.length, r = Array(i > 1 ? i - 1 : 0), a = 1; a < i; a++) { - r[a - 1] = arguments[a]; - }(s = t.prototype.parseObjPropValue).call.apply(s, [this, e].concat(r)); - }, e.prototype.parseFunctionParams = function (e) { - var s = this.tsTryParseTypeParameters();s && (e.typeParameters = s), t.prototype.parseFunctionParams.call(this, e); - }, e.prototype.parseVarHead = function (e) { - t.prototype.parseVarHead.call(this, e);var s = this.tsTryParseTypeAnnotation();s && (e.id.typeAnnotation = s, this.finishNode(e.id, e.id.type)); - }, e.prototype.parseAsyncArrowFromCallExpression = function (e, s) { - return this.match(k.colon) && (e.returnType = this.tsParseTypeAnnotation()), t.prototype.parseAsyncArrowFromCallExpression.call(this, e, s); - }, e.prototype.parseMaybeAssign = function () { - for (var e = void 0, s = arguments.length, i = Array(s), r = 0; r < s; r++) { - i[r] = arguments[r]; - }if (this.match(k.jsxTagStart)) { - x(this.curContext() === V.j_oTag), x(this.state.context[this.state.context.length - 2] === V.j_expr);var a = this.state.clone();try { - var n;return (n = t.prototype.parseMaybeAssign).call.apply(n, [this].concat(i)); - } catch (t) { - if (!(t instanceof SyntaxError)) throw t;this.state = a, x(this.curContext() === V.j_oTag), this.state.context.pop(), x(this.curContext() === V.j_expr), this.state.context.pop(), e = t; - } - }if (void 0 === e && !this.isRelational("<")) { - var o;return (o = t.prototype.parseMaybeAssign).call.apply(o, [this].concat(i)); - }var h = void 0, - p = void 0, - c = this.state.clone();try { - var l;p = this.tsParseTypeParameters(), "ArrowFunctionExpression" !== (h = (l = t.prototype.parseMaybeAssign).call.apply(l, [this].concat(i))).type && this.unexpected(); - } catch (s) { - var u;if (!(s instanceof SyntaxError)) throw s;if (e) throw e;return x(!this.hasPlugin("jsx")), this.state = c, (u = t.prototype.parseMaybeAssign).call.apply(u, [this].concat(i)); - }return p && 0 !== p.params.length && this.resetStartLocationFromNode(h, p.params[0]), h.typeParameters = p, h; - }, e.prototype.parseMaybeUnary = function (e) { - return !this.hasPlugin("jsx") && this.eatRelational("<") ? this.tsParseTypeAssertion() : t.prototype.parseMaybeUnary.call(this, e); - }, e.prototype.parseArrow = function (e) { - if (this.match(k.colon)) { - var s = this.state.clone();try { - var i = this.tsParseTypeOrTypePredicateAnnotation(k.colon);this.canInsertSemicolon() && this.unexpected(), this.match(k.arrow) || this.unexpected(), e.returnType = i; - } catch (t) { - if (!(t instanceof SyntaxError)) throw t;this.state = s; - } - }return t.prototype.parseArrow.call(this, e); - }, e.prototype.parseAssignableListItemTypes = function (t) { - if (this.eat(k.question)) { - if ("Identifier" !== t.type) throw this.raise(t.start, "A binding pattern parameter cannot be optional in an implementation signature.");t.optional = !0; - }var e = this.tsTryParseTypeAnnotation();return e && (t.typeAnnotation = e), this.finishNode(t, t.type); - }, e.prototype.toAssignable = function (e, s, i) { - switch (e.type) {case "TSTypeCastExpression": - return t.prototype.toAssignable.call(this, this.typeCastToParameter(e), s, i);case "TSParameterProperty":default: - return t.prototype.toAssignable.call(this, e, s, i);} - }, e.prototype.checkLVal = function (e, s, i, r) { - switch (e.type) {case "TSTypeCastExpression": - return;case "TSParameterProperty": - return void this.checkLVal(e.parameter, s, i, "parameter property");default: - return void t.prototype.checkLVal.call(this, e, s, i, r);} - }, e.prototype.parseBindingAtom = function () { - switch (this.state.type) {case k._this: - return this.parseIdentifier(!0);default: - return t.prototype.parseBindingAtom.call(this);} - }, e.prototype.isClassMethod = function () { - return this.isRelational("<") || t.prototype.isClassMethod.call(this); - }, e.prototype.isClassProperty = function () { - return this.match(k.colon) || t.prototype.isClassProperty.call(this); - }, e.prototype.parseMaybeDefault = function () { - for (var e, s = arguments.length, i = Array(s), r = 0; r < s; r++) { - i[r] = arguments[r]; - }var a = (e = t.prototype.parseMaybeDefault).call.apply(e, [this].concat(i));return "AssignmentPattern" === a.type && a.typeAnnotation && a.right.start < a.typeAnnotation.start && this.raise(a.typeAnnotation.start, "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`"), a; - }, e.prototype.readToken = function (e) { - return !this.state.inType || 62 !== e && 60 !== e ? t.prototype.readToken.call(this, e) : this.finishOp(k.relational, 1); - }, e.prototype.toAssignableList = function (e, s, i) { - for (var r = 0; r < e.length; r++) { - var a = e[r];a && "TSTypeCastExpression" === a.type && (e[r] = this.typeCastToParameter(a)); - }return t.prototype.toAssignableList.call(this, e, s, i); - }, e.prototype.typeCastToParameter = function (t) { - return t.expression.typeAnnotation = t.typeAnnotation, this.finishNodeAt(t.expression, t.expression.type, t.typeAnnotation.end, t.typeAnnotation.loc.end); - }, e.prototype.toReferencedList = function (t) { - for (var e = 0; e < t.length; e++) { - var s = t[e];s && s._exprListItem && "TsTypeCastExpression" === s.type && this.raise(s.start, "Did not expect a type annotation here."); - }return t; - }, e.prototype.shouldParseArrow = function () { - return this.match(k.colon) || t.prototype.shouldParseArrow.call(this); - }, e.prototype.shouldParseAsyncArrow = function () { - return this.match(k.colon) || t.prototype.shouldParseAsyncArrow.call(this); - }, e; - }(t); - };var ht = {};e.parse = function (t, e) { - return P(e, t).parse(); - }, e.parseExpression = function (t, e) { - var s = P(e, t);return s.options.strictMode && (s.state.strict = !0), s.getExpression(); - }, e.tokTypes = k; - });var createError = parserCreateError;var parserBabylon = parse;module.exports = parserBabylon; - }); - - var parserBabylon = unwrapExports(parserBabylon_1); - - return parserBabylon; -}(); diff --git a/website/static/lib/parser-flow.js b/website/static/lib/parser-flow.js deleted file mode 100644 index 9e7abf4d..00000000 --- a/website/static/lib/parser-flow.js +++ /dev/null @@ -1,6 +0,0 @@ -var flow = (function () { -function createError$1(t,r){const e=new SyntaxError(t+" ("+r.start.line+":"+r.start.column+")");return e.loc=r,e}function includeShebang$1(t,r){if(!t.startsWith("#!"))return;const e=t.indexOf("\n"),n={type:"Line",value:t.slice(2,e),range:[0,e],loc:{source:null,start:{line:1,column:0},end:{line:1,column:e}}};r.comments=[n].concat(r.comments);}function createCommonjsModule(t,r){return r={exports:{}},t(r,r.exports),r.exports}function parse(t){"use strict";const r=flow_parser.parse(t,{esproposal_class_instance_fields:!0,esproposal_class_static_fields:!0,esproposal_export_star_as:!0});if(r.errors.length>0){const t=r.errors[0].loc;throw createError(r.errors[0].message,{start:{line:t.start.line,column:t.start.column+1},end:{line:t.end.line,column:t.end.column+1}})}return includeShebang(t,r),r}var parserCreateError=createError$1; var parserIncludeShebang=includeShebang$1; var flow_parser=createCommonjsModule(function(t,r){!function(t){"use strict";function e(t,r){throw[0,t,r]}function n(t,r){if(typeof r===_k)return t.fun=r,0;if(r.fun)return t.fun=r.fun,0;for(var e=r.length;e--;)t[e]=r[e];return 0}function a(t,r,e){if("number"==typeof t)switch(t){case 0:r.fun=e;break;case 1:default:n(r,e);}else switch(t[0]){case 0:for(var u=1;u=1;u--)e[n+u]=t[r+u];return 0}function f(t,r,e){var n=new Array(e+1);n[0]=0;for(var a=1,u=r+1;a<=e;a++,u++)n[a]=t[u];return n}function c(t,r,e){for(var n=new Array(e),a=0;a=e.l||2==e.t&&a>=e.c.length))e.c=4==t.t?s(t.c,r,a):0==r&&t.c.length==a?t.c:t.c.substr(r,a),e.t=e.c.length==e.l?0:2;else if(2==e.t&&n==e.c.length)e.c+=4==t.t?s(t.c,r,a):0==r&&t.c.length==a?t.c:t.c.substr(r,a),e.t=e.c.length==e.l?0:2;else{4!=e.t&&o(e);var u=t.c,i=e.c;if(4==t.t)for(c=0;c>=1))return e;r+=r,9==++n&&r.slice(0,1);}}function p(t){2==t.t?t.c+=k(t.l-t.c.length,"\0"):t.c=s(t.c,0,t.c.length),t.t=0;}function h(t){if(t.length<24){for(var r=0;rXb)return!1;return!0}return!/[^\x00-\x7f]/.test(t)}function d(t){for(var r,e,n,a,u=fb,i=fb,f=0,c=t.length;fMn?(i.substr(0,1),u+=i,i=fb,u+=t.slice(f,s)):i+=t.slice(f,s),s==c)break;f=s;}a=1,++f=55295&&aWv)&&(a=3))))),a<4?(f-=a,i+="�"):i+=a>ii?String.fromCharCode(55232+(a>>10),Fi+(a&na)):String.fromCharCode(a),i.length>Tu&&(i.substr(0,1),u+=i,i=fb);}return u+i}function m(t){switch(t.t){case 9:return t.c;default:p(t);case 0:if(h(t.c))return t.t=9,t.c;t.t=8;case 8:return d(t.c)}}function y(t,r,e){this.t=t,this.c=r,this.l=e;}function w(t){return new y(0,t,t.length)}function g(t,r){e(t,w(r));}function T(t){g(Od.Invalid_argument,t);}function _(){T(fu);}function S(t,r){return r>>>0>=t.length-1&&_(),t}function A(t){return isFinite(t)?Math.abs(t)>=2.2250738585072014e-308?0:0!=t?1:2:isNaN(t)?4:3}function E(t,r){var e=t[3]<<16,n=r[3]<<16;return e>n?1:er[2]?1:t[2]r[1]?1:t[1]r.c?1:0}function C(t,r,e){for(var n=[];;){if(!e||t!==r)if(t instanceof y){if(!(r instanceof y))return 1;if(t!==r&&0!=(i=I(t,r)))return i}else if(t instanceof Array&&t[0]===(0|t[0])){var a=t[0];if(a===wn&&(a=0),a===Gl){t=t[1];continue}if(!(r instanceof Array&&r[0]===(0|r[0])))return 1;var u=r[0];if(u===wn&&(u=0),u===Gl){r=r[1];continue}if(a!=u)return a1&&n.push(t,r,1);}}else{if(r instanceof y||r instanceof Array&&r[0]===(0|r[0]))return-1;if("number"!=typeof t&&t&&t.compare)return t.compare(r,e);if(typeof t==_k)T("equal: functional value");else{if(tr)return 1;if(t!=r){if(!e)return NaN;if(t==t)return 1;if(r==r)return-1}}}if(0==n.length)return 0;var f=n.pop();r=n.pop(),f+1<(t=n.pop()).length&&n.push(t,r,f+1),t=t[f],r=r[f];}}function N(t,r){return C(t,r,!0)}function L(t){return t<0&&T("String.create"),new y(t?2:9,fb,t)}function R(t,r){return+(0==C(t,r,!1))}function O(t,r,e,n){if(e>0)if(0==r&&(e>=t.l||2==t.t&&e>=t.c.length))0==n?(t.c=fb,t.t=2):(t.c=k(e,String.fromCharCode(n)),t.t=e==t.l?0:2);else for(4!=t.t&&o(t),e+=r;r0&&r===r)return r;if(t=t.replace(/_/g,fb),r=+t,t.length>0&&r===r||/^[+-]?nan$/i.test(t))return r;var e=/^ *([+-]?)0x([0-9a-f]+)\.?([0-9a-f]*)p([+-]?[0-9]+)/i.exec(t);if(e){var n=e[3].replace(/0+$/,fb),a=parseInt(e[1]+e[2]+n,16),u=(0|e[4])-4*n.length;return r=a*Math.pow(2,u)}return/^\+?inf(inity)?$/i.test(t)?1/0:/^-inf(inity)?$/i.test(t)?-1/0:void P("float_of_string")}function M(t){var r=(t=D(t)).length;r>31&&T("format_int: format too long");for(var e={justify:Eb,signstyle:hl,filler:fd,alternate:!1,base:0,signedconv:!1,width:0,uppercase:!1,sign:1,prec:-1,conv:"f"},n=0;n=0&&a<=9;)e.width=10*e.width+a,n++;n--;break;case".":for(e.prec=0,n++;(a=t.charCodeAt(n)-48)>=0&&a<=9;)e.prec=10*e.prec+a,n++;n--;case"d":case"i":e.signedconv=!0;case"u":e.base=10;break;case"x":e.base=16;break;case"X":e.base=16,e.uppercase=!0;break;case"o":e.base=8;break;case"e":case"f":case"g":e.signedconv=!0,e.conv=a;break;case"E":case"F":case"G":e.signedconv=!0,e.uppercase=!0,e.conv=a.toLowerCase();}}return e}function F(t,r){t.uppercase&&(r=r.toUpperCase());var e=r.length;t.signedconv&&(t.sign<0||t.signstyle!=hl)&&e++,t.alternate&&(8==t.base&&(e+=1),16==t.base&&(e+=2));var n=fb;if(t.justify==Eb&&t.filler==fd)for(a=e;a=1e21||r.toFixed(0).length>a){for(c=u-1;e.charAt(c)==gv;)c--;e.charAt(c)==ui&&c--,c=(e=e.slice(0,c+1)+e.slice(u)).length,e.charAt(c-3)==Ba&&(e=e.slice(0,c-1)+gv+e.slice(c-1));break}var f=a;if(i<0)f-=i+1,e=r.toFixed(f);else for(;(e=r.toFixed(f)).length>a+1;)f--;if(f){for(var c=e.length-1;e.charAt(c)==gv;)c--;e.charAt(c)==ui&&c--,e=e.slice(0,c+1);}}else e="inf",n.filler=fd;return F(n,e)}function B(t,r){if(D(t)==sc)return w(fb+r);var e=M(t);r<0&&(e.signedconv?(e.sign=-1,r=-r):r>>>=0);var n=r.toString(e.base);if(e.prec>=0){e.filler=fd;var a=e.prec-n.length;a>0&&(n=k(a,gv)+n);}return F(e,n)}function G(){return Pd++}function q(t,r){return+(C(t,r,!1)>=0)}function j(t,r){return r=Dd(r,-862048943),r=r<<15|r>>>17,r=Dd(r,461845907),t^=r,((t=t<<13|t>>>19)+(t<<2)|0)-430675100|0}function Y(t,r){var e=r[1]|r[2]<<24;return t=j(t,(r[2]>>>8|r[3]<<16)^e)}function J(t){if(Ud)return Math.floor(Math.log2(t));var r=0;if(0==t)return-1/0;if(t>=1)for(;t>=2;)t/=2,r++;else for(;t<1;)t*=2,r--;return r}function H(t){if(!isFinite(t))return isNaN(t)?[nh,1,0,Pi]:t>0?[nh,0,0,32752]:[nh,0,0,Pi];var r=0==t&&1/t==-1/0?rh:t>=0?0:rh;r&&(t=-t);var e=J(t)+na;e<=0?(e=0,t/=Math.pow(2,-1026)):((t/=Math.pow(2,e-1027))<16&&(t*=2,e-=1),0==e&&(t/=2));var n=Math.pow(2,24),a=0|t,u=0|(t=(t-a)*n);return a=15&a|r|e<<4,[nh,0|(t=(t-u)*n),u,a]}function W(t,r){var e=H(r),n=e[1]|e[2]<<24,a=e[2]>>>8|e[3]<<16;return t=j(t,n),t=j(t,a)}function z(t,r){var e,n,a=r.length;for(e=0;e+4<=a;e+=4)t=j(t,n=r[e]|r[e+1]<<8|r[e+2]<<16|r[e+3]<<24);switch(n=0,3&a){case 3:n=r[e+2]<<16;case 2:n|=r[e+1]<<8;case 1:t=j(t,n|=r[e]);}return t^=a}function V(t,r){var e,n,a=r.length;for(e=0;e+4<=a;e+=4)t=j(t,n=r.charCodeAt(e)|r.charCodeAt(e+1)<<8|r.charCodeAt(e+2)<<16|r.charCodeAt(e+3)<<24);switch(n=0,3&a){case 3:n=r.charCodeAt(e+2)<<16;case 2:n|=r.charCodeAt(e+1)<<8;case 1:t=j(t,n|=r.charCodeAt(e));}return t^=a}function $(t,r){switch(6&r.t){default:p(r);case 0:t=V(t,r.c);break;case 2:t=z(t,r.c);}return t}function K(t){return t^=t>>>16,t=Dd(t,-2048144789),t^=t>>>13,t=Dd(t,-1028477387),t^=t>>>16}function Q(t,r,e,n){var a,u,i,f,c,s,o,v,l;for(((f=r)<0||f>Md)&&(f=Md),c=t,s=e,a=[n],u=0,i=1;u0;)if((o=a[u++])instanceof Array&&o[0]===(0|o[0]))switch(o[0]){case 248:s=j(s,o[2]),c--;break;case 250:a[--u]=o[1];break;case 255:s=Y(s,o),c--;break;default:for(s=j(s,o.length-1<<10|o[0]),v=1,l=o.length;v=f);v++)a[i++]=o[v];}else o instanceof y?(s=$(s,o),c--):o===(0|o)?(s=j(s,o+o+1),c--):o===+o&&(s=W(s,o),c--);return(s=K(s))&op}function Z(t){return[t[3]>>8,t[3]&nh,t[2]>>16,t[2]>>8&nh,t[2]&nh,t[1]>>16,t[1]>>8&nh,t[1]&nh]}function tt(t,r,e){function n(e){if(r--,!(t<0||r<0))if(e instanceof Array&&e[0]===(0|e[0]))switch(e[0]){case 248:t--,a=a*av+e[2]|0;break;case 250:r++,n(e);break;case 255:t--,a=a*av+e[1]+(e[2]<<24)|0;break;default:t--,a=19*a+e[0]|0;for(f=e.length-1;f>0;f--)n(e[f]);}else if(e instanceof y)switch(t--,6&e.t){default:p(e);case 0:for(var u=e.c,i=e.l,f=0;f=0;f--)a=19*a+s[f]|0;}}var a=0;return n(e),a&op}function rt(t){for(var r,e,n=fb,a=n,u=0,i=t.length;uMn?(a.substr(0,1),n+=a,a=fb,n+=t.slice(u,f)):a+=t.slice(u,f),f==i)break;u=f;}r>6),a+=String.fromCharCode(Yn|63&r)):r=lc?a+=String.fromCharCode(Pl|r>>12,Yn|r>>6&63,Yn|63&r):r>=56319||u+1==i||(e=t.charCodeAt(u+1))lc?a+="�":(u++,r=(r<<10)+e-56613888,a+=String.fromCharCode(qp|r>>18,Yn|r>>12&63,Yn|r>>6&63,Yn|63&r)),a.length>Tu&&(a.substr(0,1),n+=a,a=fb);}return n+a}function et(t){var r=9;return h(t)||(r=8,t=rt(t)),new y(r,t,t.length)}function nt(t,r,e){if(!isFinite(t))return et(isNaN(t)?zb:t>0?Ru:"-infinity");var n=0==t&&1/t==-1/0?1:t>=0?0:1;n&&(t=-t);var a=0;if(0==t);else if(t<1)for(;t<1&&a>-1022;)t*=2,a--;else for(;t>=2;)t/=2,a++;var u=a<0?fb:Eb,i=fb;if(n)i=hl;else switch(e){case 43:i=Eb;break;case 32:i=fd;}if(r>=0&&r<13){var f=Math.pow(2,4*r);t=Math.round(t*f)/f;}var c=t.toString(16);if(r>=0){var s=c.indexOf(ui);if(s<0)c+=ui+k(r,gv);else{var o=s+1+r;c.length>24&An,t>>31&ii]}function it(t){for(var r=t.length,e=new Array(r),n=0;n>24),a=t[3]-r[3]+(n>>24);return[nh,e&An,n&An,a&ii]}function ct(t,r){return t[3]>r[3]?1:t[3]r[2]?1:t[2]r[1]?1:t[1]>23,t[2]=(t[2]<<1|t[1]>>23)&An,t[1]=t[1]<<1&An;}function ot(t){t[1]=(t[1]>>>1|t[2]<<23)&An,t[2]=(t[2]>>>1|t[3]<<23)&An,t[3]=t[3]>>>1;}function vt(t,r){for(var e=0,n=it(t),a=it(r),u=[nh,0,0,0];ct(n,a)>0;)e++,st(a);for(;e>=0;)e--,st(u),ct(n,a)>=0&&(u[1]++,n=ft(n,a)),ot(a);return[0,u,n]}function lt(t){return t[1]|t[2]<<24}function bt(t){return t[3]<<16<0}function kt(t){var r=-t[1],e=-t[2]+(r>>24),n=-t[3]+(e>>24);return[nh,r&An,e&An,n&ii]}function pt(t,r){var e=M(t);e.signedconv&&bt(r)&&(e.sign=-1,r=kt(r));var n=fb,a=ut(e.base);do{var u=vt(r,a);r=u[1],n="0123456789abcdef".charAt(lt(u[2]))+n;}while(!at(r));if(e.prec>=0){e.filler=fd;var i=e.prec-n.length;i>0&&(n=k(i,gv)+n);}return F(e,n)}function ht(t){return t.l}function dt(t,r){switch(6&t.t){default:if(r>=t.c.length)return 0;case 0:return t.c.charCodeAt(r);case 4:return t.c[r]}}function mt(t,r){var e=t[1]+r[1],n=t[2]+r[2]+(e>>24),a=t[3]+r[3]+(n>>24);return[nh,e&An,n&An,a&ii]}function yt(t,r){var e=t[1]*r[1],n=(e*Fd|0)+t[2]*r[1]+t[1]*r[2],a=(n*Fd|0)+t[3]*r[1]+t[2]*r[2]+t[1]*r[3];return[nh,e&An,n&An,a&ii]}function wt(t,r){return ct(t,r)<0}function gt(t){var r=0,e=ht(t),n=10,a=e>0&&45==dt(t,0)?(r++,-1):1;if(r+1=48&&t<=57?t-48:t>=65&&t<=90?t-55:t>=97&&t<=ws?t-87:-1}function _t(t){var r=gt(t),e=r[0],n=r[1],a=r[2],u=ut(a),i=vt([nh,An,268435455,ii],u)[1],f=dt(t,e),c=Tt(f);(c<0||c>=a)&&P(pp);for(var s=ut(c);;)if(e++,95!=(f=dt(t,e))){if((c=Tt(f))<0||c>=a)break;wt(i,s)&&P(pp),c=ut(c),wt(s=mt(yt(u,s),c),c)&&P(pp);}return e!=ht(t)&&P(pp),10==r[2]&&wt([nh,0,0,rh],s)&&P(pp),n<0&&(s=kt(s)),s}function St(t){return(t[3]<<16)*Math.pow(2,32)+t[2]*Math.pow(2,24)+t[1]}function At(t){var r=gt(t),e=r[0],n=r[1],a=r[2],u=ht(t),i=e=a)&&P(pp);var c=f;for(e++;e=a)break;(c=a*c+f)>-1>>>0&&P(pp);}return e!=u&&P(pp),c*=n,10==a&&(0|c)!=c&&P(pp),0|c}function Et(t){return c(t,1,t.length-1)}function xt(t){for(var r={},e=1;e=0;e--)r=[0,t[e],r];return r}function Lt(t,r){var t=t+1|0,e=new Array(t);e[0]=0;for(var n=1;n=a){var i=L(u+n);v(t.file.data,0,i,0,a),v(e,0,i,u,n),t.file.data=i;}return t.offset+=n,t.file.modified(),0}function jt(t){var r;switch(t){case 1:r=Gt;break;case 2:r=Bt;break;default:r=qt;}var e=Od.fds[t];e.flags.rdonly&&Ot(ta+t+" is readonly");var n={file:e.file,offset:e.offset,fd:t,opened:!0,buffer:fb,output:r};return Gd[n.fd]=n,n}function Yt(){var t=0;for(var r in Gd)Gd[r].opened&&(t=[0,Gd[r],t]);return t}function Jt(t,r,e,n){t.opened||Ot("Cannot output to a closed channel");var a;0==e&&ht(r)==n?a=r:v(r,e,a=L(n),0,n);var u=a.toString(),i=u.lastIndexOf("\n");return i<0?t.buffer+=u:(t.buffer+=u.substr(0,i+1),Pt(t),t.buffer+=u.substr(i+1)),0}function Ht(t){throw t}function Wt(){Ht(Od.Division_by_zero);}function zt(t,r){return 0==r&&Wt(),t%r}function Vt(t,r){return+(0!=C(t,r,!1))}function $t(t){return+(t instanceof Array)}function Kt(t,r){return t[0]=r,0}function Qt(t){return t instanceof Array?t[0]:t instanceof y?ad:Sb}function Zt(t,r,e){Od[t+1]=r,e&&(Od[e]=r);}function tr(t,r){return qd[D(t)]=r,0}function rr(t,r){return 6&t.t&&p(t),6&r.t&&p(r),t.c==r.c?1:0}function er(){T(fu);}function nr(t,r){return r>>>0>=t.l&&er(),dt(t,r)}function ar(t,r){return 1-rr(t,r)}function ur(t,r,e){if(e&=nh,4!=t.t){if(r==t.c.length)return t.c+=String.fromCharCode(e),r+1==t.l&&(t.t=0),0;o(t);}return t.c[r]=e,0}function ir(t,r,e){return r>>>0>=t.l&&er(),ur(t,r,e)}function fr(){Ht(Od.Not_found);}function cr(r){var e=t,n=r.toString();if(e.process&&e.process.env&&void 0!=e.process.env[n])return et(e.process.env[n]);fr();}function sr(){return[0,new Date^4294967295*Math.random()]}function or(t){return t}function vr(t){return qd[t]}function lr(r){return r instanceof Array?r:t.RangeError&&r instanceof t.RangeError&&r.message&&r.message.match(/maximum call stack/i)?or(Od.Stack_overflow):t.InternalError&&r instanceof t.InternalError&&r.message&&r.message.match(/too much recursion/i)?or(Od.Stack_overflow):r instanceof t.Error?[0,vr(xk),r]:[0,Od.Failure,et(String(r))]}function br(t,r){return 1==t.length?t(r):b(t,[r])}function kr(t,r,e){return 2==t.length?t(r,e):b(t,[r,e])}function pr(t,r,e,n){return 3==t.length?t(r,e,n):b(t,[r,e,n])}function hr(t,r,e,n,a){return 4==t.length?t(r,e,n,a):b(t,[r,e,n,a])}function dr(t,r,e,n,a,u){return 5==t.length?t(r,e,n,a,u):b(t,[r,e,n,a,u])}function mr(t){if("number"==typeof t)return 0;switch(t[0]){case 0:return[0,mr(t[1])];case 1:return[1,mr(t[1])];case 2:return[2,mr(t[1])];case 3:return[3,mr(t[1])];case 4:return[4,mr(t[1])];case 5:return[5,mr(t[1])];case 6:return[6,mr(t[1])];case 7:return[7,mr(t[1])];case 8:return[8,t[1],mr(t[2])];case 9:var r=t[1];return[9,r,r,mr(t[3])];case 10:return[10,mr(t[1])];case 11:return[11,mr(t[1])];case 12:return[12,mr(t[1])];case 13:return[13,mr(t[1])];default:return[14,mr(t[1])]}}function yr(t,r){if("number"==typeof t)return r;switch(t[0]){case 0:return[0,yr(t[1],r)];case 1:return[1,yr(t[1],r)];case 2:return[2,yr(t[1],r)];case 3:return[3,yr(t[1],r)];case 4:return[4,yr(t[1],r)];case 5:return[5,yr(t[1],r)];case 6:return[6,yr(t[1],r)];case 7:return[7,yr(t[1],r)];case 8:return[8,t[1],yr(t[2],r)];case 9:var e=t[2];return[9,t[1],e,yr(t[3],r)];case 10:return[10,yr(t[1],r)];case 11:return[11,yr(t[1],r)];case 12:return[12,yr(t[1],r)];case 13:return[13,yr(t[1],r)];default:return[14,yr(t[1],r)]}}function wr(t,r){if("number"==typeof t)return r;switch(t[0]){case 0:return[0,wr(t[1],r)];case 1:return[1,wr(t[1],r)];case 2:return[2,t[1],wr(t[2],r)];case 3:return[3,t[1],wr(t[2],r)];case 4:var e=t[3],n=t[2];return[4,t[1],n,e,wr(t[4],r)];case 5:var a=t[3],u=t[2];return[5,t[1],u,a,wr(t[4],r)];case 6:var i=t[3],f=t[2];return[6,t[1],f,i,wr(t[4],r)];case 7:var c=t[3],s=t[2];return[7,t[1],s,c,wr(t[4],r)];case 8:var o=t[3],v=t[2];return[8,t[1],v,o,wr(t[4],r)];case 9:return[9,wr(t[1],r)];case 10:return[10,wr(t[1],r)];case 11:return[11,t[1],wr(t[2],r)];case 12:return[12,t[1],wr(t[2],r)];case 13:var l=t[2];return[13,t[1],l,wr(t[3],r)];case 14:var b=t[2];return[14,t[1],b,wr(t[3],r)];case 15:return[15,wr(t[1],r)];case 16:return[16,wr(t[1],r)];case 17:return[17,t[1],wr(t[2],r)];case 18:return[18,t[1],wr(t[2],r)];case 19:return[19,wr(t[1],r)];case 20:var k=t[2];return[20,t[1],k,wr(t[3],r)];case 21:return[21,t[1],wr(t[2],r)];case 22:return[22,wr(t[1],r)];case 23:return[23,t[1],wr(t[2],r)];default:var p=t[2];return[24,t[1],p,wr(t[3],r)]}}function gr(t){throw[0,Yd,t]}function Tr(t){throw[0,Jd,t]}function _r(t,r){return q(t,r)?t:r}function Sr(t){return 0<=t?t:0|-t}function Ar(t,r){var e=ht(t),n=ht(r),a=L(e+n|0);return v(t,0,a,0,e),v(r,0,a,e,n),a}function Er(t,r){return t?[0,t[1],Er(t[2],r)]:r}function xr(t){for(var r=0,e=t;;){if(!e)return r;var r=r+1|0,e=e[2];}}function Ir(t){return t?t[1]:gr(lm)}function Cr(t,r){for(var e=t,n=r;;){if(!e)return n;var a=[0,e[1],n],e=e[2],n=a;}}function Nr(t){return Cr(t,0)}function Lr(t,r){if(r){var e=r[2];return[0,br(t,r[1]),Lr(t,e)]}return 0}function Rr(t,r){for(n=r;;){if(!n)return 0;var e=n[2];br(t,n[1]);var n=e;}}function Or(t,r,e){for(var n=r,a=e;;){if(!a)return n;var u=a[2],n=kr(t,n,a[1]),a=u;}}function Pr(t,r){for(var e=t,n=r;;){if(0===e)return n;if(!n)throw[0,Vd,vm];var e=e-1|0,n=n[2];}}function Dr(t){return 0<=t&&!(nh>1,w=Pr(y,r),g=p(y,r),T=p(t-y|0,w),_=0;;){if(g){if(T){var S=T[2],A=T[1],E=g[2],x=g[1],I=kr(b,x,A);if(0===I){var g=E,T=S,_=[0,x,_];continue}if(0>1,w=Pr(y,r),g=k(y,r),T=k(t-y|0,w),_=0;;){if(g){if(T){var S=T[2],A=T[1],E=g[2],x=g[1],I=kr(b,x,A);if(0===I){var g=E,T=S,_=[0,x,_];continue}if(0<=I){var T=S,_=[0,A,_];continue}var g=E,_=[0,x,_];continue}return Cr(g,_)}return Cr(T,_)}},h=xr(r),d=2<=h?k(h,r):r,m=function(t,r){if(!(3>>0))switch(t){case 0:return[0,0,r];case 1:if(r)return[0,[0,0,r[1],0,1],r[2]];break;case 2:if(r){var n=r[2];if(n)return[0,[0,[0,0,r[1],0,1],n[1],0,2],n[2]]}break;default:if(r){var a=r[2];if(a){var u=a[2];if(u)return[0,[0,[0,0,r[1],0,1],a[1],[0,0,u[1],0,1],2],u[2]]}}}var i=t/2|0,f=m(i,r),c=f[2],s=f[1];if(c){var o=c[1],v=m((t-i|0)-1|0,c[2]),l=v[2];return[0,e(s,o,v[1]),l]}throw[0,Vd,Cm]};return m(xr(d),d)[1]}return a(v[1],a(l,a(o,a(c,u(i)))))}return a(l,a(o,a(c,u(i))))}return a(o,a(c,u(i)))}return a(c,u(i))}return u(i)}return 0}]}function Kr(t){throw rK}function Qr(t){var r=t[1];t[1]=Kr;try{var e=br(r,0);return t[1]=e,Kt(t,Gl),e}catch(r){throw r=lr(r),t[1]=function(t){throw r},r}}function Zr(t){var r=1<=t?t:1,e=tK>>0?1:0:65<=a?0:1;else{if(32===a)f=1;else if(43<=a)switch(a+zn|0){case 5:if(n<(e+2|0)&&1>>0)if(93<=e)n=0;else n=1;else if(56<(e-1|0)>>>0)n=0;else var n=1;if(n){var a=a+1|0;continue}}else;var u=1;}if(u){var i=[0,0],f=ht(t)-1|0;if(!(f<0))for(p=0;;){var c=dt(t,p);if(32<=c){var s=c+ap|0;if(58>>0)if(93<=s)var o=0,l=0;else l=1;else if(56<(s-1|0)>>>0)var o=1,l=0;else l=1;if(l)var b=1,o=2;}else o=11<=c?13===c?1:0:8<=c?1:0;switch(o){case 0:b=4;break;case 1:b=2;}i[1]=i[1]+b|0;var k=p+1|0;if(f===p)break;var p=k;}if(i[1]===ht(t)){var h=ht(t),d=L(h);v(t,0,d,0,h);S=d;}else{var m=L(i[1]);i[1]=0;var y=ht(t)-1|0;if(!(y<0))for(_=0;;){var w=dt(t,_);if(35<=w)g=92===w?1:Xb<=w?0:2;else if(32<=w)g=34<=w?1:2;else if(14<=w)g=0;else switch(w){case 8:ur(m,i[1],92),i[1]++,ur(m,i[1],98);g=3;break;case 9:ur(m,i[1],92),i[1]++,ur(m,i[1],hd);g=3;break;case 10:ur(m,i[1],92),i[1]++,ur(m,i[1],Qv);g=3;break;case 13:ur(m,i[1],92),i[1]++,ur(m,i[1],zi);g=3;break;default:var g=0;}switch(g){case 0:ur(m,i[1],92),i[1]++,ur(m,i[1],48+(w/vb|0)|0),i[1]++,ur(m,i[1],48+((w/10|0)%10|0)|0),i[1]++,ur(m,i[1],48+(w%10|0)|0);break;case 1:ur(m,i[1],92),i[1]++,ur(m,i[1],w);break;case 2:ur(m,i[1],w);}i[1]++;var T=_+1|0;if(y===_)break;var _=T;}S=m;}}else var S=t;var A=ht(S),E=Mr(A+2|0,34);return v(S,0,E,1,A),E}}function ge(t,r){switch(t){case 0:e=pw;break;case 1:e=hw;break;case 2:e=dw;break;case 3:e=mw;break;case 4:e=yw;break;case 5:e=ww;break;case 6:e=gw;break;case 7:e=Tw;break;case 8:e=_w;break;case 9:e=Sw;break;case 10:e=Aw;break;case 11:e=Ew;break;default:var e=xw;}return B(e,r)}function Te(t,r){switch(t){case 0:e=jy;break;case 1:e=Yy;break;case 2:e=Jy;break;case 3:e=Hy;break;case 4:e=Wy;break;case 5:e=zy;break;case 6:e=Vy;break;case 7:e=$y;break;case 8:e=Ky;break;case 9:e=Qy;break;case 10:e=Zy;break;case 11:e=tw;break;default:var e=rw;}return B(e,r)}function _e(t,r){switch(t){case 0:e=Ny;break;case 1:e=Ly;break;case 2:e=Ry;break;case 3:e=Oy;break;case 4:e=Py;break;case 5:e=Dy;break;case 6:e=Uy;break;case 7:e=My;break;case 8:e=Fy;break;case 9:e=Xy;break;case 10:e=By;break;case 11:e=Gy;break;default:var e=qy;}return B(e,r)}function Se(t,r){switch(t){case 0:e=ew;break;case 1:e=nw;break;case 2:e=aw;break;case 3:e=uw;break;case 4:e=iw;break;case 5:e=fw;break;case 6:e=cw;break;case 7:e=sw;break;case 8:e=ow;break;case 9:e=vw;break;case 10:e=lw;break;case 11:e=bw;break;default:var e=kw;}return pt(e,r)}function Ae(t,r,e){if(16<=t){if(17<=t)switch(t+hb|0){case 2:a=0;break;case 0:case 3:var n=43,a=1;break;default:var n=32,a=1;}else a=0;if(!a)n=45;var u=nt(e,r,n);if(19<=t){var i=ht(u);if(0===i)return u;var f=L(i),c=i-1|0;if(!(c<0))for(b=0;;){var s=dt(u,b);if(97<=s)if(ws>>0?55===T?1:0:21<(T-1|0)>>>0?1:0)){var _=_+1|0;continue}var S=1;}return S?m:Ar(m,Ey)}}return m}function Ee(t,r,e,n){for(var a=t,u=e,i=n;;){if("number"==typeof i)return kr(a,r,u);switch(i[0]){case 0:var f=i[1];return function(t){return Ee(a,r,[5,u,t],f)};case 1:var c=i[1];return function(t){var e=Ur(t),n=ht(e),i=Mr(n+2|0,39);return v(e,0,i,1,n),Ee(a,r,[4,u,i],c)};case 2:var s=i[2],o=i[1];return Ce(a,r,u,s,o,function(t){return t});case 3:return Ce(a,r,u,i[2],i[1],we);case 4:return Ne(a,r,u,i[4],i[2],i[3],ge,i[1]);case 5:return Ne(a,r,u,i[4],i[2],i[3],Te,i[1]);case 6:return Ne(a,r,u,i[4],i[2],i[3],_e,i[1]);case 7:return Ne(a,r,u,i[4],i[2],i[3],Se,i[1]);case 8:var l=i[4],b=i[3],k=i[2],p=i[1];if("number"==typeof k){if("number"==typeof b)return 0===b?function(t){return Ee(a,r,[4,u,Ae(p,eK,t)],l)}:function(t,e){return Ee(a,r,[4,u,Ae(p,t,e)],l)};var h=b[1];return function(t){return Ee(a,r,[4,u,Ae(p,h,t)],l)}}if(0===k[0]){var d=k[2],m=k[1];if("number"==typeof b)return 0===b?function(t){return Ee(a,r,[4,u,me(m,d,Ae(p,eK,t))],l)}:function(t,e){return Ee(a,r,[4,u,me(m,d,Ae(p,t,e))],l)};var y=b[1];return function(t){return Ee(a,r,[4,u,me(m,d,Ae(p,y,t))],l)}}var w=k[1];if("number"==typeof b)return 0===b?function(t,e){return Ee(a,r,[4,u,me(w,t,Ae(p,eK,e))],l)}:function(t,e,n){return Ee(a,r,[4,u,me(w,t,Ae(p,e,n))],l)};var g=b[1];return function(t,e){return Ee(a,r,[4,u,me(w,t,Ae(p,g,e))],l)};case 9:var T=i[1];return function(t){return Ee(a,r,[4,u,t?sm:om],T)};case 10:var u=[7,u],i=i[1];continue;case 11:var u=[2,u,i[1]],i=i[2];continue;case 12:var u=[3,u,i[1]],i=i[2];continue;case 13:var _=i[3],S=i[2],A=ae(16);se(A,S);var E=ce(A);return function(t){return Ee(a,r,[4,u,E],_)};case 14:var x=i[3],I=i[2];return function(t){var e=pe(t[1],mr(oe(I)));if("number"==typeof e[2])return Ee(a,r,u,wr(e[1],x));throw nK};case 15:var C=i[1];return function(t,e){return Ee(a,r,[6,u,function(r){return kr(t,r,e)}],C)};case 16:var N=i[1];return function(t){return Ee(a,r,[6,u,t],N)};case 17:var u=[0,u,i[1]],i=i[2];continue;case 18:var L=i[1];if(0===L[0]){var R=i[2],O=L[1][1],a=function(t,r,e){return function(n,a){return Ee(r,n,[1,t,[0,a]],e)}}(u,a,R),u=0,i=O;continue}var P=i[2],D=L[1][1],a=function(t,r,e){return function(n,a){return Ee(r,n,[1,t,[1,a]],e)}}(u,a,P),u=0,i=D;continue;case 19:throw[0,Vd,dy];case 20:var U=i[3],M=[8,u,my];return function(t){return Ee(a,r,M,U)};case 21:var F=i[2];return function(t){return Ee(a,r,[4,u,B(hy,t)],F)};case 22:var X=i[1];return function(t){return Ee(a,r,[5,u,t],X)};case 23:var G=i[2],q=i[1];if("number"==typeof q)switch(q){case 0:case 1:case 2:return Ie(a,r,u,G);case 3:throw[0,Vd,yy];default:return Ie(a,r,u,G)}else switch(q[0]){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:return Ie(a,r,u,G);case 8:return xe(a,r,u,q[2],G);case 9:default:return Ie(a,r,u,G)}default:var j=i[3],Y=i[1];return Le(a,r,u,j,Y,br(i[2],0))}}}function xe(t,r,e,n,a){if("number"==typeof n)return Ie(t,r,e,a);switch(n[0]){case 0:var u=n[1];return function(n){return xe(t,r,e,u,a)};case 1:var i=n[1];return function(n){return xe(t,r,e,i,a)};case 2:var f=n[1];return function(n){return xe(t,r,e,f,a)};case 3:var c=n[1];return function(n){return xe(t,r,e,c,a)};case 4:var s=n[1];return function(n){return xe(t,r,e,s,a)};case 5:var o=n[1];return function(n){return xe(t,r,e,o,a)};case 6:var v=n[1];return function(n){return xe(t,r,e,v,a)};case 7:var l=n[1];return function(n){return xe(t,r,e,l,a)};case 8:var b=n[2];return function(n){return xe(t,r,e,b,a)};case 9:var k=n[3],p=n[2],h=le(oe(n[1]),p);return function(n){return xe(t,r,e,yr(h,k),a)};case 10:var d=n[1];return function(n,u){return xe(t,r,e,d,a)};case 11:var m=n[1];return function(n){return xe(t,r,e,m,a)};case 12:var y=n[1];return function(n){return xe(t,r,e,y,a)};case 13:throw[0,Vd,wy];default:throw[0,Vd,gy]}}function Ie(t,r,e,n){return Ee(t,r,[8,e,Ty],n)}function Ce(t,r,e,n,a,u){if("number"==typeof a)return function(a){return Ee(t,r,[4,e,br(u,a)],n)};if(0===a[0]){var i=a[2],f=a[1];return function(a){return Ee(t,r,[4,e,me(f,i,br(u,a))],n)}}var c=a[1];return function(a,i){return Ee(t,r,[4,e,me(c,a,br(u,i))],n)}}function Ne(t,r,e,n,a,u,i,f){if("number"==typeof a){if("number"==typeof u)return 0===u?function(a){return Ee(t,r,[4,e,kr(i,f,a)],n)}:function(a,u){return Ee(t,r,[4,e,ye(a,kr(i,f,u))],n)};var c=u[1];return function(a){return Ee(t,r,[4,e,ye(c,kr(i,f,a))],n)}}if(0===a[0]){var s=a[2],o=a[1];if("number"==typeof u)return 0===u?function(a){return Ee(t,r,[4,e,me(o,s,kr(i,f,a))],n)}:function(a,u){return Ee(t,r,[4,e,me(o,s,ye(a,kr(i,f,u)))],n)};var v=u[1];return function(a){return Ee(t,r,[4,e,me(o,s,ye(v,kr(i,f,a)))],n)}}var l=a[1];if("number"==typeof u)return 0===u?function(a,u){return Ee(t,r,[4,e,me(l,a,kr(i,f,u))],n)}:function(a,u,c){return Ee(t,r,[4,e,me(l,a,ye(u,kr(i,f,c)))],n)};var b=u[1];return function(a,u){return Ee(t,r,[4,e,me(l,a,ye(b,kr(i,f,u)))],n)}}function Le(t,r,e,n,a,u){if(a){var i=a[1];return function(a){return Le(t,r,e,n,i,br(u,a))}}return Ee(t,r,[4,e,u],n)}function Re(t,r){for(o=r;;){if("number"==typeof o)return 0;switch(o[0]){case 0:var e=o[2],n=o[1];if("number"==typeof e)switch(e){case 0:a=Iw;break;case 1:a=Cw;break;case 2:a=Nw;break;case 3:a=Lw;break;case 4:a=Rw;break;case 5:a=Ow;break;default:a=Pw;}else switch(e[0]){case 0:case 1:a=e[1];break;default:var a=Ar(Dw,Yr(1,e[1]));}return Re(t,n),ne(t,a);case 1:var u=o[2],i=o[1];if(0===u[0]){var f=u[1];Re(t,i),ne(t,_y);o=f;continue}var c=u[1];Re(t,i),ne(t,Sy);o=c;continue;case 6:var s=o[2];return Re(t,o[1]),ne(t,br(s,0));case 7:var o=o[1];continue;case 8:var v=o[2];return Re(t,o[1]),Tr(v);case 2:case 4:var l=o[2];return Re(t,o[1]),ne(t,l);default:var b=o[2];return Re(t,o[1]),ee(t,b)}}}function Oe(t){return Ee(function(t,r){var e=Zr(64);return Re(e,r),te(e)},0,0,t[1])}function Pe(t,r){var e=t[r+1];if($t(e)){if(Qt(e)===ad)return br(Oe(Vw),e);if(Qt(e)===ll)for(var n=X(fm,e),a=0,u=ht(n);;){if(u<=a)return Ar(n,cm);var i=nr(n,a);if(!(48<=i?58<=i?0:1:45===i?1:0))return n;a=a+1|0;}return $w}return br(Oe(zw),e)}function De(t,r){if(t.length-1<=r)return Mw;var e=De(t,r+1|0),n=Pe(t,r);return kr(Oe(Fw),n,e)}function Ue(t){var r=t.length-1;if(2>>0){var e=De(t,2),n=Pe(t,1);return kr(Oe(Yw),n,e)}switch(r){case 0:return Jw;case 1:return Hw;default:var a=Pe(t,1);return br(Oe(Ww),a)}}function Me(t){return aK[1]=[0,t,aK[1]],0}function Fe(t,r){for(var e=t?t[1]:fK,n=16;;){if(r<=n||Z$<(2*n|0)){if(e){var a=Qt(cK),u=Gl===a?cK[1]:us===a?Qr(cK):cK;u[2]=(u[2]+1|0)%55|0;var i=u[2],f=S(u[1],i)[i+1],c=(u[2]+24|0)%55|0,s=(S(u[1],c)[c+1]+(f^31&(f>>>25|0))|0)&op,o=u[2];S(u[1],o)[o+1]=s;v=s;}else var v=0;return[0,0,Lt(n,0),v,n]}n=2*n|0;}}function Xe(t,r){return 3<=t.length-1?Q(10,vb,t[3],r)&(t[2].length-1-1|0):zt(tt(10,vb,r),t[2].length-1)}function Be(t,r,e){var n=Xe(t,r),a=[0,r,e,S(t[2],n)[n+1]];S(t[2],n)[n+1]=a,t[1]=t[1]+1|0;var u=t[2].length-1<<1>16)*r<<16)+(t&ii)*r|0});var Dd=Math.imul,Ud=Math.log2&&1020==Math.log2(1.1235582092889474e307),Md=256,Fd=Math.pow(2,-24),Xd=function(){function t(t,r){return t+r|0}function r(r,e,n,a,u,i){return e=t(t(e,r),t(a,i)),t(e<>>32-u,n)}function e(t,e,n,a,u,i,f){return r(e&n|~e&a,t,e,u,i,f)}function n(t,e,n,a,u,i,f){return r(e&a|n&~a,t,e,u,i,f)}function a(t,e,n,a,u,i,f){return r(e^n^a,t,e,u,i,f)}function u(t,e,n,a,u,i,f){return r(n^(e|~a),t,e,u,i,f)}function i(r,i){for(r[(b=i)>>2]|=Yn<<8*(3&b),b=8+(-4&b);(63&b)<60;b+=4)r[(b>>2)-1]=0;r[(b>>2)-1]=i<<3,r[b>>2]=i>>29&536870911;var f=[1732584193,4023233417,2562383102,271733878];for(b=0;b>8*k&nh;return l}return function(t,r,e){var n=[];switch(6&t.t){default:p(t);case 0:for(var a=t.c,u=0;u>2]=a.charCodeAt(c)|a.charCodeAt(c+1)<<8|a.charCodeAt(c+2)<<16|a.charCodeAt(c+3)<<24;}for(;u>2]|=a.charCodeAt(u+r)<<8*(3&u);break;case 4:for(var f=t.c,u=0;u>2]=f[c]|f[c+1]<<8|f[c+2]<<16|f[c+3]<<24;}for(;u>2]|=f[u+r]<<8*(3&u);}return Rt(i(n,e))}}(),Bd=0;Mt.prototype={truncate:function(){this.data=L(0),this.modified();},modified:function(){var t=Ut();this.atime=t,this.mtime=t;}};Ft.prototype={exists:function(t){return this.content[t]?1:0},mk:function(t,r){this.content[t]=r;},get:function(t){return this.content[t]},list:function(){var t=[];for(var r in this.content)t.push(r);return t},remove:function(t){delete this.content[t];}},(new Ft).mk(fb,new Ft),Xt(0,new Mt(L(0))),Xt(1,new Mt(L(0))),Xt(2,new Mt(L(0)));var Gd=new Array,qd={},jd=[Av,w(Za),-1],Yd=[Av,w(Bk),-3],Jd=[Av,w(Vo),-4],Hd=[Av,w(Ds),-7],Wd=[Av,w(wb),-8],zd=[Av,w(Ss),-9],Vd=[Av,w(Ji),-11],$d=[Av,w(od),-12],Kd=[0,[11,w('File "'),[2,0,[11,w('", line '),[4,0,0,0,[11,w(", characters "),[4,0,0,0,[12,45,[4,0,0,0,[11,w(": "),[2,0,0]]]]]]]]]],w('File "%s", line %d, characters %d-%d: %s')],Qd=[0,0,[0,0,0,0],[0,0,0,0]],Zd=[0,0,0],tm=w(""),rm=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),em=[0,0,0,0,0,1,0],nm=[0,0,0],am=[0,1],um=[0,0];Zt(11,$d,od),Zt(10,Vd,Ji),Zt(9,[Av,w(Cv),-10],Cv),Zt(8,zd,Ss),Zt(7,Wd,wb),Zt(6,Hd,Ds),Zt(5,[Av,w(Vf),-6],Vf),Zt(4,[Av,w(Uk),-5],Uk),Zt(3,Jd,Vo),Zt(2,Yd,Bk),Zt(1,[Av,w(up),-2],up),Zt(0,jd,Za);var im=w("output_substring"),fm=w("%.12g"),cm=w(ui),sm=w(jo),om=w(fo),vm=[0,w("list.ml"),227,11],lm=w("hd"),bm=w("\\\\"),km=w("\\'"),pm=w("\\b"),hm=w("\\t"),dm=w("\\n"),mm=w("\\r"),ym=w("Char.chr"),wm=w("String.contains_from / Bytes.contains_from"),gm=w("String.blit / Bytes.blit_string"),Tm=w("Bytes.blit"),_m=w("String.sub / Bytes.sub"),Sm=(w(fb),w("Array.blit")),Am=w("Array.init"),Em=w("Set.remove_min_elt"),xm=[0,0,0,0],Im=[0,0,0],Cm=[0,w("set.ml"),389,18],Nm=w(Ad),Lm=w(Ad),Rm=w(Ad),Om=w(Ad),Pm=w("CamlinternalLazy.Undefined"),Dm=w("Buffer.add_substring/add_subbytes"),Um=w("Buffer.add: cannot grow buffer"),Mm=w("%c"),Fm=w("%s"),Xm=w("%i"),Bm=w("%li"),Gm=w("%ni"),qm=w("%Li"),jm=w("%f"),Ym=w("%B"),Jm=w("%{"),Hm=w("%}"),Wm=w("%("),zm=w("%)"),Vm=w("%a"),$m=w("%t"),Km=w("%?"),Qm=w("%r"),Zm=w("%_r"),ty=[0,w(rp),845,23],ry=[0,w(rp),809,21],ey=[0,w(rp),810,21],ny=[0,w(rp),813,21],ay=[0,w(rp),814,21],uy=[0,w(rp),817,19],iy=[0,w(rp),818,19],fy=[0,w(rp),821,22],cy=[0,w(rp),822,22],sy=[0,w(rp),826,30],oy=[0,w(rp),827,30],vy=[0,w(rp),831,26],ly=[0,w(rp),832,26],by=[0,w(rp),841,28],ky=[0,w(rp),842,28],py=[0,w(rp),846,23],hy=w("%u"),dy=[0,w(rp),1520,4],my=w("Printf: bad conversion %["),yy=[0,w(rp),1588,39],wy=[0,w(rp),1611,31],gy=[0,w(rp),1612,31],Ty=w("Printf: bad conversion %_"),_y=w("@{"),Sy=w("@["),Ay=w(zb),Ey=w(ui),xy=w("neg_infinity"),Iy=w(Ru),Cy=w("%.12g"),Ny=w("%nd"),Ly=w("%+nd"),Ry=w("% nd"),Oy=w("%ni"),Py=w("%+ni"),Dy=w("% ni"),Uy=w("%nx"),My=w("%#nx"),Fy=w("%nX"),Xy=w("%#nX"),By=w("%no"),Gy=w("%#no"),qy=w("%nu"),jy=w("%ld"),Yy=w("%+ld"),Jy=w("% ld"),Hy=w("%li"),Wy=w("%+li"),zy=w("% li"),Vy=w("%lx"),$y=w("%#lx"),Ky=w("%lX"),Qy=w("%#lX"),Zy=w("%lo"),tw=w("%#lo"),rw=w("%lu"),ew=w("%Ld"),nw=w("%+Ld"),aw=w("% Ld"),uw=w("%Li"),iw=w("%+Li"),fw=w("% Li"),cw=w("%Lx"),sw=w("%#Lx"),ow=w("%LX"),vw=w("%#LX"),lw=w("%Lo"),bw=w("%#Lo"),kw=w("%Lu"),pw=w(sc),hw=w("%+d"),dw=w("% d"),mw=w("%i"),yw=w("%+i"),ww=w("% i"),gw=w("%x"),Tw=w("%#x"),_w=w("%X"),Sw=w("%#X"),Aw=w("%o"),Ew=w("%#o"),xw=w("%u"),Iw=w("@]"),Cw=w("@}"),Nw=w("@?"),Lw=w("@\n"),Rw=w("@."),Ow=w("@@"),Pw=w("@%"),Dw=w("@"),Uw=w("CamlinternalFormat.Type_mismatch"),Mw=w(fb),Fw=[0,[11,w(", "),[2,0,[2,0,0]]],w(", %s%s")],Xw=w("Out of memory"),Bw=w("Stack overflow"),Gw=w("Pattern matching failed"),qw=w("Assertion failed"),jw=w("Undefined recursive module"),Yw=[0,[12,40,[2,0,[2,0,[12,41,0]]]],w("(%s%s)")],Jw=w(fb),Hw=w(fb),Ww=[0,[12,40,[2,0,[12,41,0]]],w("(%s)")],zw=[0,[4,0,0,0,0],w(sc)],Vw=[0,[3,0,0],w("%S")],$w=w("_"),Kw=w("x"),Qw=w("OCAMLRUNPARAM"),Zw=w("CAMLRUNPARAM"),tg=w(fb),rg=[3,0,3],eg=w(ui),ng=w(">"),ag=w(""),ig=w("<"),fg=w("\n"),cg=w("Format.Empty_queue"),sg=[0,w(fb)],og=w("TMPDIR"),vg=w("TEMP"),lg=w("Cygwin"),bg=w(hp),kg=w("Win32"),pg=[0,w("filename.ml"),191,9],hg=[0,w("sedlexing.ml"),51,25],dg=w("Sedlexing.MalFormed"),mg=w("Js.Error"),yg=w(xk),wg=w(wf),gg=[0,[0]],Tg=[0,w(db),18,6],_g=[0,[0,[0,[0]]]],Sg=[0,w(db),39,6],Ag=[0,[0]],Eg=[0,w(db),44,6],xg=[0,[0,[0,[0,[0,[0]],[0,[0]]]],[0,[0,[0,[0]]]],[0,[0,[0,[0]],[0,[0]],[0,[0]],[0,[0]]]],[0,[0]],[0,[0]],[0,[0]],[0,[0,[0,[0]]]],[0,[0]],[0,[0]]]],Ig=[0,w(db),218,6],Cg=[0,[0,[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0,[0,[0]]]],[0,[0]],[0,[0]],[0,[0,[0,[0]]]],[0,[0,[0,[0]]]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0,[0,[0]]]],[0,[0]],[0,[0]],[0,[0]],[0,[0]]]],Ng=[0,w(db),530,6],Lg=[0,[0,[0,[0]],[0,[0]],[0,[0,[0,[0]]]],[0,[0]],[0,[0,[0,[0]],[0,[0]]]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0,[0,[0]]]],[0,[0]],[0,[0]],[0,[0]]]],Rg=[0,w(db),796,6],Og=[0,[0,[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]]]],Pg=[0,w(db),899,6],Dg=[0,[0,[0,[0,[0,[0]],[0,[0]]]],[0,[0,[0,[0]]]],[0,[0]],[0,[0]]]],Ug=[0,w(db),964,6],Mg=[0,[0]],Fg=[0,w(db),971,6],Xg=[0,[0,[0,[0]],[0,[0]],[0,[0]],[0,[0]]]],Bg=[0,w(db),Tu,6],Gg=[0,[0,[0,[0]]]],qg=[0,w(db),1047,6],jg=[0,[0]],Yg=[0,[0,[0,[0]]]],Jg=[0,[0]],Hg=[0,[0,[0,[0,[0,[0]],[0,[0]]]],[0,[0,[0,[0]]]],[0,[0,[0,[0]],[0,[0]],[0,[0]],[0,[0]]]],[0,[0]],[0,[0]],[0,[0]],[0,[0,[0,[0]]]],[0,[0]],[0,[0]]]],Wg=[0,[0,[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0,[0,[0]]]],[0,[0]],[0,[0]],[0,[0,[0,[0]]]],[0,[0,[0,[0]]]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0,[0,[0]]]],[0,[0]],[0,[0]],[0,[0]],[0,[0]]]],zg=[0,[0,[0,[0]],[0,[0]],[0,[0,[0,[0]]]],[0,[0]],[0,[0,[0,[0]],[0,[0]]]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0,[0,[0]]]],[0,[0]],[0,[0]],[0,[0]]]],Vg=[0,[0,[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]],[0,[0]]]],$g=[0,[0,[0,[0,[0,[0]],[0,[0]]]],[0,[0,[0,[0]]]],[0,[0]],[0,[0]]]],Kg=[0,[0]],Qg=[0,[0,[0,[0]],[0,[0]],[0,[0]],[0,[0]]]],Zg=[0,[0,[0,[0]]]],tT=w("Unexpected number"),rT=w("Unexpected string"),eT=w("Unexpected identifier"),nT=w("Unexpected reserved word"),aT=w("Unexpected end of input"),uT=w("Unexpected variance sigil"),iT=w("Type aliases are not allowed in untyped mode"),fT=w("Opaque type aliases are not allowed in untyped mode"),cT=w("Type annotations are not allowed in untyped mode"),sT=w("Type declarations are not allowed in untyped mode"),oT=w("Type imports are not allowed in untyped mode"),vT=w("Type exports are not allowed in untyped mode"),lT=w("Interfaces are not allowed in untyped mode"),bT=w("Illegal newline after throw"),kT=w("Invalid regular expression"),pT=w("Invalid regular expression: missing /"),hT=w("Invalid left-hand side in assignment"),dT=w("Invalid left-hand side in exponentiation expression"),mT=w("Invalid left-hand side in for-in"),yT=w("Invalid left-hand side in for-of"),wT=w("found an expression instead"),gT=w("Expected an object pattern, array pattern, or an identifier but "),TT=w("More than one default clause in switch statement"),_T=w("Missing catch or finally after try"),ST=w("Illegal continue statement"),AT=w("Illegal break statement"),ET=w("Illegal return statement"),xT=w("Illegal yield expression"),IT=w("Strict mode code may not include a with statement"),CT=w("Catch variable may not be eval or arguments in strict mode"),NT=w("Variable name may not be eval or arguments in strict mode"),LT=w("Parameter name eval or arguments is not allowed in strict mode"),RT=w("Strict mode function may not have duplicate parameter names"),OT=w("Function name may not be eval or arguments in strict mode"),PT=w("Octal literals are not allowed in strict mode."),DT=w("Delete of an unqualified identifier in strict mode."),UT=w("Duplicate data property in object literal not allowed in strict mode"),MT=w("Object literal may not have data and accessor property with the same name"),FT=w("Object literal may not have multiple get/set accessors with the same name"),XT=w("Assignment to eval or arguments is not allowed in strict mode"),BT=w("Postfix increment/decrement may not have eval or arguments operand in strict mode"),GT=w("Prefix increment/decrement may not have eval or arguments operand in strict mode"),qT=w("Use of future reserved word in strict mode"),jT=w("JSX attributes must only be assigned a non-empty expression"),YT=w("JSX value should be either an expression or a quoted JSX text"),JT=w("Const must be initialized"),HT=w("Destructuring assignment must be initialized"),WT=w("Illegal newline before arrow"),zT=w(" declared at top level or immediately within another function."),VT=w("In strict mode code, functions can only be"),$T=w("elements must be wrapped in an enclosing parent tag"),KT=w("Unexpected token <. Remember, adjacent JSX "),QT=w("Rest parameter must be final parameter of an argument list"),ZT=w("async is an implementation detail and isn't necessary for your declare function statement. It is sufficient for your declare function to just have a Promise return type."),t_=w("`declare export let` is not supported. Use `declare export var` instead."),r_=w("`declare export const` is not supported. Use `declare export var` instead."),e_=w("`declare export type` is not supported. Use `export type` instead."),n_=w("`declare export interface` is not supported. Use `export interface` instead."),a_=w("`export * as` is an early-stage proposal and is not enabled by default. To enable support in the parser, use the `esproposal_export_star_as` option"),u_=w("When exporting a class as a named export, you must specify a class name. Did you mean `export default class ...`?"),i_=w("When exporting a function as a named export, you must specify a function name. Did you mean `export default function ...`?"),f_=w("Found a decorator in an unsupported position."),c_=w("Type parameter declaration needs a default, since a preceding type parameter declaration has a default."),s_=w("The Windows version of OCaml has a bug in how it parses hexidecimal numbers. It is fixed in OCaml 4.03.0. Until we can switch to 4.03.0, please avoid either hexidecimal notation or Windows."),o_=w("Duplicate `declare module.exports` statement!"),v_=w("Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module xor they are a CommonJS module."),l_=w("Getter should have zero parameters"),b_=w("Setter should have exactly one parameter"),k_=w("`import type` or `import typeof`!"),p_=w("Imports within a `declare module` body must always be "),h_=w("The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements"),d_=w("Missing comma between import specifiers"),m_=w("Malformed unicode"),y_=w("Unexpected parser state: "),w_=w("Unexpected token "),g_=[0,[11,w("Unexpected token `"),[2,0,[11,w("`. Did you mean `"),[2,0,[11,w("`?"),0]]]]],w("Unexpected token `%s`. Did you mean `%s`?")],T_=w("'"),__=w("Invalid flags supplied to RegExp constructor '"),S_=w("'"),A_=w("Undefined label '"),E_=w("' has already been declared"),x_=w(" '"),I_=w("Expected corresponding JSX closing tag for "),C_=[0,[11,w("Duplicate export for `"),[2,0,[12,96,0]]],w("Duplicate export for `%s`")],N_=w("Parse_error.Error"),L_=w("comments"),R_=w(Dc),O_=w("Program"),P_=w("DebuggerStatement"),D_=w("EmptyStatement"),U_=w(ov),M_=w("BreakStatement"),F_=w(ov),X_=w("ContinueStatement"),B_=w(lh),G_=w("DeclareExportAllDeclaration"),q_=w(lh),j_=w(Sd),Y_=w(ss),J_=w(ub),H_=w("DeclareExportDeclaration"),W_=w(ci),z_=w(Dc),V_=w(Go),$_=w("DeclareModule"),K_=w(yd),Q_=w("DeclareModuleExports"),Z_=w(vo),tS=w(Dc),rS=w("DoWhileStatement"),eS=w(cb),nS=w(ss),aS=w("ExportDefaultDeclaration"),uS=w(cb),iS=w(lh),fS=w("ExportAllDeclaration"),cS=w(cb),sS=w(lh),oS=w(Sd),vS=w(ss),lS=w("ExportNamedDeclaration"),bS=w("directive"),kS=w(Oi),pS=w("ExpressionStatement"),hS=w(Dc),dS=w("update"),mS=w(vo),yS=w(ps),wS=w("ForStatement"),gS=w("each"),TS=w(Dc),_S=w(Rc),SS=w(gl),AS=w("ForInStatement"),ES=w("ForAwaitStatement"),xS=w("ForOfStatement"),IS=w(Dc),CS=w(Rc),NS=w(gl),LS=w(ti),RS=w(Un),OS=w(vo),PS=w("IfStatement"),DS=w(hu),US=w(Nl),MS=w(Ui),FS=w(Ld),XS=w(lh),BS=w(Sd),GS=w("ImportDeclaration"),qS=w(Dc),jS=w(ov),YS=w("LabeledStatement"),JS=w(lb),HS=w("ReturnStatement"),WS=w("cases"),zS=w("discriminant"),VS=w("SwitchStatement"),$S=w(lb),KS=w("ThrowStatement"),QS=w("finalizer"),ZS=w("handler"),tA=w("block"),rA=w("TryStatement"),eA=w(Dc),nA=w(vo),aA=w("WhileStatement"),uA=w(Dc),iA=w(Kv),fA=w("WithStatement"),cA=w("Super"),sA=w("ThisExpression"),oA=w(ep),vA=w("ArrayExpression"),lA=w(uo),bA=w(bl),kA=w(Oi),pA=w(Up),hA=w(wh),dA=w(ml),mA=w(Dc),yA=w(jn),wA=w(Go),gA=w("ArrowFunctionExpression"),TA=w("="),_A=w("+="),SA=w("-="),AA=w("*="),EA=w("**="),xA=w("/="),IA=w("%="),CA=w("<<="),NA=w(">>="),LA=w(">>>="),RA=w("|="),OA=w("^="),PA=w("&="),DA=w(Rc),UA=w(gl),MA=w(wp),FA=w("AssignmentExpression"),XA=w("=="),BA=w("!="),GA=w("==="),qA=w("!=="),jA=w("<"),YA=w("<="),JA=w(">"),HA=w(">="),WA=w("<<"),zA=w(">>"),VA=w(">>>"),$A=w(Eb),KA=w(hl),QA=w("*"),ZA=w("**"),tE=w("/"),rE=w("%"),eE=w("|"),nE=w("^"),aE=w("&"),uE=w("in"),iE=w(sb),fE=w(Rc),cE=w(gl),sE=w(wp),oE=w("BinaryExpression"),vE=w(ts),lE=w(xp),bE=w(qs),kE=w("filter"),pE=w("blocks"),hE=w("ComprehensionExpression"),dE=w(ti),mE=w(Un),yE=w(vo),wE=w("ConditionalExpression"),gE=w("filter"),TE=w("blocks"),_E=w("GeneratorExpression"),SE=w(ts),AE=w("Import"),EE=w(xp),xE=w(qs),IE=w("&&"),CE=w("||"),NE=w(Rc),LE=w(gl),RE=w(wp),OE=w("LogicalExpression"),PE=w(Do),DE=w(ck),UE=w(Kv),ME=w("MemberExpression"),FE=w(ck),XE=w("meta"),BE=w("MetaProperty"),GE=w(ts),qE=w(xp),jE=w("NewExpression"),YE=w(Vc),JE=w("ObjectExpression"),HE=w(ef),WE=w("SequenceExpression"),zE=w(yd),VE=w(Oi),$E=w("TypeCastExpression"),KE=w(lb),QE=w("AwaitExpression"),ZE=w(hl),tx=w(Eb),rx=w("!"),ex=w("~"),nx=w(Nl),ax=w(jb),ux=w("delete"),ix=w("matched above"),fx=w(lb),cx=w("prefix"),sx=w(wp),ox=w("UnaryExpression"),vx=w("--"),lx=w("++"),bx=w("prefix"),kx=w(lb),px=w(wp),hx=w("UpdateExpression"),dx=w("delegate"),mx=w(lb),yx=w("YieldExpression"),wx=w(uo),gx=w(bl),Tx=w(Oi),_x=w(Up),Sx=w(wh),Ax=w(ml),Ex=w(Dc),xx=w(jn),Ix=w(Go),Cx=w("FunctionDeclaration"),Nx=w(uo),Lx=w(bl),Rx=w(Oi),Ox=w(Up),Px=w(wh),Dx=w(ml),Ux=w(Dc),Mx=w(jn),Fx=w(Go),Xx=w("FunctionExpression"),Bx=w(Vp),Gx=w(yd),qx=w(gp),jx=w(Sn),Yx=w(Vp),Jx=w(yd),Hx=w(gp),Wx=w(Sn),zx=w(Un),Vx=w(vo),$x=w("SwitchCase"),Kx=w(Dc),Qx=w("param"),Zx=w("CatchClause"),tI=w(Dc),rI=w("BlockStatement"),eI=w(Go),nI=w("DeclareVariable"),aI=w(Up),uI=w(Go),iI=w("DeclareFunction"),fI=w(Nd),cI=w(Dc),sI=w(uo),oI=w(Go),vI=w("DeclareClass"),lI=w(Nd),bI=w(Dc),kI=w(uo),pI=w(Go),hI=w("DeclareInterface"),dI=w(Ui),mI=w(hu),yI=w(ff),wI=w("ExportNamespaceSpecifier"),gI=w(Rc),TI=w(uo),_I=w(Go),SI=w("DeclareTypeAlias"),AI=w(Rc),EI=w(uo),xI=w(Go),II=w("TypeAlias"),CI=w("DeclareOpaqueType"),NI=w("OpaqueType"),LI=w("supertype"),RI=w("impltype"),OI=w(uo),PI=w(Go),DI=w(ka),UI=w(Hu),MI=w(Lv),FI=w(uo),XI=w(ro),BI=w(Dc),GI=w(Go),qI=w("ClassDeclaration"),jI=w(ka),YI=w(Hu),JI=w(Lv),HI=w(uo),WI=w(ro),zI=w(Dc),VI=w(Go),$I=w("ClassExpression"),KI=w(uo),QI=w(Go),ZI=w("ClassImplements"),tC=w(Dc),rC=w("ClassBody"),eC=w($n),nC=w(Ea),aC=w(af),uC=w(Ic),iC=w(ka),fC=w(Do),cC=w(cs),sC=w(ci),oC=w(Ui),vC=w(id),lC=w("MethodDefinition"),bC=w(Cn),kC=w(cs),pC=w(Do),hC=w(yd),dC=w(Ui),mC=w(id),yC=w("ClassProperty"),wC=w(Nd),gC=w(Dc),TC=w(uo),_C=w(Go),SC=w("InterfaceDeclaration"),AC=w(uo),EC=w(Go),xC=w("InterfaceExtends"),IC=w(yd),CC=w(Vc),NC=w("ObjectPattern"),LC=w(yd),RC=w(ep),OC=w("ArrayPattern"),PC=w(Rc),DC=w(gl),UC=w("AssignmentPattern"),MC=w(lb),FC=w(sd),XC=w(lb),BC=w(sd),GC=w(ps),qC=w(af),jC=w(Ic),YC=w(Do),JC=w(hv),HC=w(Ea),WC=w(ci),zC=w(Ui),VC=w(id),$C=w(ju),KC=w(lb),QC=w("SpreadProperty"),ZC=w(Do),tN=w(hv),rN=w(Ea),eN=w(ci),nN=w(Ui),aN=w(id),uN=w(ju),iN=w(lb),fN=w("RestProperty"),cN=w(lb),sN=w("SpreadElement"),oN=w("each"),vN=w(Rc),lN=w(gl),bN=w("ComprehensionBlock"),kN=w("regex"),pN=w(Ku),hN=w(Ui),dN=w(Ku),mN=w(Ui),yN=w("Literal"),wN=w(ef),gN=w("quasis"),TN=w("TemplateLiteral"),_N=w("tail"),SN=w(Ui),AN=w("TemplateElement"),EN=w("quasi"),xN=w("tag"),IN=w("TaggedTemplateExpression"),CN=w("var"),NN=w("let"),LN=w("const"),RN=w(ci),ON=w("declarations"),PN=w("VariableDeclaration"),DN=w(ps),UN=w(Go),MN=w("VariableDeclarator"),FN=w("AnyTypeAnnotation"),XN=w("MixedTypeAnnotation"),BN=w("EmptyTypeAnnotation"),GN=w("VoidTypeAnnotation"),qN=w("NullLiteralTypeAnnotation"),jN=w("NumberTypeAnnotation"),YN=w("StringTypeAnnotation"),JN=w("BooleanTypeAnnotation"),HN=w(yd),WN=w("NullableTypeAnnotation"),zN=w(uo),VN=w("rest"),$N=w(bl),KN=w(jn),QN=w("FunctionTypeAnnotation"),ZN=w(Vp),tL=w(yd),rL=w(gp),eL=w("FunctionTypeParam"),nL=[0,0,0,0],aL=w("callProperties"),uL=w("indexers"),iL=w(Vc),fL=w("exact"),cL=w("ObjectTypeAnnotation"),sL=w("There should not be computed object type property keys"),oL=w(ps),vL=w(af),lL=w(Ic),bL=w(ci),kL=w(Cn),pL=w(cs),hL=w(Vp),dL=w(Ui),mL=w(id),yL=w("ObjectTypeProperty"),wL=w(lb),gL=w("ObjectTypeSpreadProperty"),TL=w(Cn),_L=w(cs),SL=w(Ui),AL=w(id),EL=w(Go),xL=w("ObjectTypeIndexer"),IL=w(cs),CL=w(Ui),NL=w("ObjectTypeCallProperty"),LL=w("elementType"),RL=w("ArrayTypeAnnotation"),OL=w(Go),PL=w("qualification"),DL=w("QualifiedTypeIdentifier"),UL=w(uo),ML=w(Go),FL=w("GenericTypeAnnotation"),XL=w(Fp),BL=w("UnionTypeAnnotation"),GL=w(Fp),qL=w("IntersectionTypeAnnotation"),jL=w(lb),YL=w("TypeofTypeAnnotation"),JL=w(Fp),HL=w("TupleTypeAnnotation"),WL=w(Ku),zL=w(Ui),VL=w("StringLiteralTypeAnnotation"),$L=w(Ku),KL=w(Ui),QL=w("NumberLiteralTypeAnnotation"),ZL=w(Ku),tR=w(Ui),rR=w("BooleanLiteralTypeAnnotation"),eR=w("ExistsTypeAnnotation"),nR=w(yd),aR=w("TypeAnnotation"),uR=w(jn),iR=w("TypeParameterDeclaration"),fR=w(ub),cR=w(Cn),sR=w("bound"),oR=w(gp),vR=w("TypeParameter"),lR=w(jn),bR=w("TypeParameterInstantiation"),kR=w("children"),pR=w("closingElement"),hR=w("openingElement"),dR=w("JSXElement"),mR=w("selfClosing"),yR=w("attributes"),wR=w(gp),gR=w("JSXOpeningElement"),TR=w(gp),_R=w("JSXClosingElement"),SR=w(Ui),AR=w(gp),ER=w("JSXAttribute"),xR=w(lb),IR=w("JSXSpreadAttribute"),CR=w("JSXEmptyExpression"),NR=w(Oi),LR=w("JSXExpressionContainer"),RR=w(Ku),OR=w(Ui),PR=w("JSXText"),DR=w(ck),UR=w(Kv),MR=w("JSXMemberExpression"),FR=w(gp),XR=w("namespace"),BR=w("JSXNamespacedName"),GR=w(gp),qR=w("JSXIdentifier"),jR=w(ff),YR=w(qk),JR=w("ExportSpecifier"),HR=w(qk),WR=w("ImportDefaultSpecifier"),zR=w(qk),VR=w("ImportNamespaceSpecifier"),$R=w(Ld),KR=w(qk),QR=w("imported"),ZR=w("ImportSpecifier"),tO=w("Block"),rO=w("Line"),eO=w(Ui),nO=w(Ui),aO=w("DeclaredPredicate"),uO=w("InferredPredicate"),iO=w("range"),fO=w("loc"),cO=w(hu),sO=[0,1,0],oO=w("T_IDENTIFIER"),vO=w("T_LCURLY"),lO=w("T_RCURLY"),bO=w("T_LCURLYBAR"),kO=w("T_RCURLYBAR"),pO=w("T_LPAREN"),hO=w("T_RPAREN"),dO=w("T_LBRACKET"),mO=w("T_RBRACKET"),yO=w("T_SEMICOLON"),wO=w("T_COMMA"),gO=w("T_PERIOD"),TO=w("T_ARROW"),_O=w("T_ELLIPSIS"),SO=w("T_AT"),AO=w("T_FUNCTION"),EO=w("T_IF"),xO=w("T_IN"),IO=w("T_INSTANCEOF"),CO=w("T_RETURN"),NO=w("T_SWITCH"),LO=w("T_THIS"),RO=w("T_THROW"),OO=w("T_TRY"),PO=w("T_VAR"),DO=w("T_WHILE"),UO=w("T_WITH"),MO=w("T_CONST"),FO=w("T_LET"),XO=w("T_NULL"),BO=w("T_FALSE"),GO=w("T_TRUE"),qO=w("T_BREAK"),jO=w("T_CASE"),YO=w("T_CATCH"),JO=w("T_CONTINUE"),HO=w("T_DEFAULT"),WO=w("T_DO"),zO=w("T_FINALLY"),VO=w("T_FOR"),$O=w("T_CLASS"),KO=w("T_EXTENDS"),QO=w("T_STATIC"),ZO=w("T_ELSE"),tP=w("T_NEW"),rP=w("T_DELETE"),eP=w("T_TYPEOF"),nP=w("T_VOID"),aP=w("T_ENUM"),uP=w("T_EXPORT"),iP=w("T_IMPORT"),fP=w("T_SUPER"),cP=w("T_IMPLEMENTS"),sP=w("T_INTERFACE"),oP=w("T_PACKAGE"),vP=w("T_PRIVATE"),lP=w("T_PROTECTED"),bP=w("T_PUBLIC"),kP=w("T_YIELD"),pP=w("T_DEBUGGER"),hP=w("T_DECLARE"),dP=w("T_TYPE"),mP=w("T_OPAQUE"),yP=w("T_OF"),wP=w("T_ASYNC"),gP=w("T_AWAIT"),TP=w("T_CHECKS"),_P=w("T_RSHIFT3_ASSIGN"),SP=w("T_RSHIFT_ASSIGN"),AP=w("T_LSHIFT_ASSIGN"),EP=w("T_BIT_XOR_ASSIGN"),xP=w("T_BIT_OR_ASSIGN"),IP=w("T_BIT_AND_ASSIGN"),CP=w("T_MOD_ASSIGN"),NP=w("T_DIV_ASSIGN"),LP=w("T_MULT_ASSIGN"),RP=w("T_EXP_ASSIGN"),OP=w("T_MINUS_ASSIGN"),PP=w("T_PLUS_ASSIGN"),DP=w("T_ASSIGN"),UP=w("T_PLING"),MP=w("T_COLON"),FP=w("T_OR"),XP=w("T_AND"),BP=w("T_BIT_OR"),GP=w("T_BIT_XOR"),qP=w("T_BIT_AND"),jP=w("T_EQUAL"),YP=w("T_NOT_EQUAL"),JP=w("T_STRICT_EQUAL"),HP=w("T_STRICT_NOT_EQUAL"),WP=w("T_LESS_THAN_EQUAL"),zP=w("T_GREATER_THAN_EQUAL"),VP=w("T_LESS_THAN"),$P=w("T_GREATER_THAN"),KP=w("T_LSHIFT"),QP=w("T_RSHIFT"),ZP=w("T_RSHIFT3"),tD=w("T_PLUS"),rD=w("T_MINUS"),eD=w("T_DIV"),nD=w("T_MULT"),aD=w("T_EXP"),uD=w("T_MOD"),iD=w("T_NOT"),fD=w("T_BIT_NOT"),cD=w("T_INCR"),sD=w("T_DECR"),oD=w("T_ERROR"),vD=w("T_EOF"),lD=w("T_JSX_IDENTIFIER"),bD=w("T_ANY_TYPE"),kD=w("T_MIXED_TYPE"),pD=w("T_EMPTY_TYPE"),hD=w("T_BOOLEAN_TYPE"),dD=w("T_NUMBER_TYPE"),mD=w("T_STRING_TYPE"),yD=w("T_VOID_TYPE"),wD=w("T_NUMBER"),gD=w("T_STRING"),TD=w("T_TEMPLATE_PART"),_D=w("T_REGEXP"),SD=w("T_JSX_TEXT"),AD=w("T_NUMBER_SINGLETON_TYPE"),ED=w(Pk),xD=[0,3],ID=w(Pk),CD=[0,3],ND=w(Pk),LD=[0,3],RD=w(Pk),OD=[0,1],PD=w(Pk),DD=[0,2],UD=w(Pk),MD=[0,0],FD=w(Pk),XD=w(":"),BD=w(":"),GD=w(Ai),qD=[0,0],jD=[0,2],YD=[0,1],JD=[0,3],HD=w(Pk),WD=w(Pk),zD=w(Pk),VD=w(Pk),$D=w(Pk),KD=w(Pk),QD=w(Pk),ZD=w(":"),tU=w(":"),rU=w(Ai),eU=w(Pk),nU=w("\\"),aU=w(Pk),uU=w("\\"),iU=w(gv),fU=w(ca),cU=w(ca),sU=w(ca),oU=w(Wp),vU=w(Wp),lU=w("*-/"),bU=w("*/"),kU=w("*-/"),pU=w(Pk),hU=w(Pk),dU=w(Pk),mU=w(fb),yU=w(fb),wU=w(fb),gU=w(fb),TU=w(Pk),_U=w("\\\\"),SU=w(Pk),AU=w("'"),EU=w(Pk),xU=w(Pk),IU=w("'"),CU=w('"'),NU=w("<"),LU=w("{"),RU=w(Wp),OU=w("iexcl"),PU=w("aelig"),DU=w("Nu"),UU=w("Eacute"),MU=w("Atilde"),FU=w("'int'"),XU=w("AElig"),BU=w("Aacute"),GU=w("Acirc"),qU=w("Agrave"),jU=w("Alpha"),YU=w("Aring"),JU=[0,197],HU=[0,913],WU=[0,go],zU=[0,194],VU=[0,193],$U=[0,198],KU=[0,8747],QU=w("Auml"),ZU=w("Beta"),tM=w("Ccedil"),rM=w("Chi"),eM=w("Dagger"),nM=w("Delta"),aM=w("ETH"),uM=[0,208],iM=[0,916],fM=[0,8225],cM=[0,935],sM=[0,199],oM=[0,914],vM=[0,196],lM=[0,195],bM=w("Icirc"),kM=w("Ecirc"),pM=w("Egrave"),hM=w("Epsilon"),dM=w("Eta"),mM=w("Euml"),yM=w("Gamma"),wM=w("Iacute"),gM=[0,205],TM=[0,915],_M=[0,203],SM=[0,919],AM=[0,917],EM=[0,200],xM=[0,202],IM=w("Igrave"),CM=w("Iota"),NM=w("Iuml"),LM=w("Kappa"),RM=w("Lambda"),OM=w("Mu"),PM=w("Ntilde"),DM=[0,209],UM=[0,924],MM=[0,923],FM=[0,922],XM=[0,207],BM=[0,921],GM=[0,204],qM=[0,206],jM=[0,201],YM=w("Sigma"),JM=w("Otilde"),HM=w("OElig"),WM=w("Oacute"),zM=w("Ocirc"),VM=w("Ograve"),$M=w("Omega"),KM=w("Omicron"),QM=w("Oslash"),ZM=[0,216],tF=[0,927],rF=[0,937],eF=[0,210],nF=[0,212],aF=[0,211],uF=[0,338],iF=w("Ouml"),fF=w("Phi"),cF=w("Pi"),sF=w("Prime"),oF=w("Psi"),vF=w("Rho"),lF=w("Scaron"),bF=[0,352],kF=[0,929],pF=[0,936],hF=[0,8243],dF=[0,928],mF=[0,934],yF=[0,214],wF=[0,213],gF=w("Uuml"),TF=w("THORN"),_F=w("Tau"),SF=w("Theta"),AF=w("Uacute"),EF=w("Ucirc"),xF=w("Ugrave"),IF=w("Upsilon"),CF=[0,933],NF=[0,217],LF=[0,219],RF=[0,218],OF=[0,920],PF=[0,932],DF=[0,222],UF=w("Xi"),MF=w("Yacute"),FF=w("Yuml"),XF=w("Zeta"),BF=w("aacute"),GF=w("acirc"),qF=w("acute"),jF=[0,180],YF=[0,226],JF=[0,225],HF=[0,918],WF=[0,376],zF=[0,221],VF=[0,926],$F=[0,220],KF=[0,931],QF=[0,925],ZF=w("delta"),tX=w("cap"),rX=w("aring"),eX=w("agrave"),nX=w("alefsym"),aX=w("alpha"),uX=w("amp"),iX=w("and"),fX=w("ang"),cX=w("apos"),sX=[0,39],oX=[0,8736],vX=[0,8743],lX=[0,38],bX=[0,945],kX=[0,8501],pX=[0,Pl],hX=w("asymp"),dX=w("atilde"),mX=w("auml"),yX=w("bdquo"),wX=w("beta"),gX=w("brvbar"),TX=w("bull"),_X=[0,8226],SX=[0,166],AX=[0,946],EX=[0,8222],xX=[0,228],IX=[0,227],CX=[0,8776],NX=[0,229],LX=w("copy"),RX=w("ccedil"),OX=w("cedil"),PX=w("cent"),DX=w("chi"),UX=w("circ"),MX=w("clubs"),FX=w("cong"),XX=[0,8773],BX=[0,9827],GX=[0,710],qX=[0,967],jX=[0,162],YX=[0,184],JX=[0,231],HX=w("crarr"),WX=w("cup"),zX=w("curren"),VX=w("dArr"),$X=w("dagger"),KX=w("darr"),QX=w("deg"),ZX=[0,176],tB=[0,8595],rB=[0,8224],eB=[0,8659],nB=[0,164],aB=[0,8746],uB=[0,8629],iB=[0,169],fB=[0,8745],cB=w("fnof"),sB=w("ensp"),oB=w("diams"),vB=w("divide"),lB=w("eacute"),bB=w("ecirc"),kB=w("egrave"),pB=w("empty"),hB=w("emsp"),dB=[0,8195],mB=[0,8709],yB=[0,232],wB=[0,234],gB=[0,233],TB=[0,247],_B=[0,9830],SB=w("epsilon"),AB=w("equiv"),EB=w("eta"),xB=w("eth"),IB=w("euml"),CB=w("euro"),NB=w("exist"),LB=[0,8707],RB=[0,8364],OB=[0,235],PB=[0,qp],DB=[0,951],UB=[0,8801],MB=[0,949],FB=[0,8194],XB=w("gt"),BB=w("forall"),GB=w("frac12"),qB=w("frac14"),jB=w("frac34"),YB=w("frasl"),JB=w("gamma"),HB=w("ge"),WB=[0,8805],zB=[0,947],VB=[0,8260],$B=[0,190],KB=[0,188],QB=[0,189],ZB=[0,8704],tG=w("hArr"),rG=w("harr"),eG=w("hearts"),nG=w("hellip"),aG=w("iacute"),uG=w("icirc"),iG=[0,238],fG=[0,237],cG=[0,8230],sG=[0,9829],oG=[0,8596],vG=[0,8660],lG=[0,62],bG=[0,402],kG=[0,948],pG=[0,230],hG=w("prime"),dG=w("ndash"),mG=w("le"),yG=w("kappa"),wG=w("igrave"),gG=w("image"),TG=w("infin"),_G=w("iota"),SG=w("iquest"),AG=w("isin"),EG=w("iuml"),xG=[0,239],IG=[0,8712],CG=[0,191],NG=[0,953],LG=[0,8734],RG=[0,8465],OG=[0,236],PG=w("lArr"),DG=w("lambda"),UG=w("lang"),MG=w("laquo"),FG=w("larr"),XG=w("lceil"),BG=w("ldquo"),GG=[0,8220],qG=[0,8968],jG=[0,8592],YG=[0,171],JG=[0,10216],HG=[0,955],WG=[0,8656],zG=[0,954],VG=w("macr"),$G=w("lfloor"),KG=w("lowast"),QG=w("loz"),ZG=w("lrm"),tq=w("lsaquo"),rq=w("lsquo"),eq=w("lt"),nq=[0,60],aq=[0,8216],uq=[0,8249],iq=[0,8206],fq=[0,9674],cq=[0,8727],sq=[0,8970],oq=w("mdash"),vq=w("micro"),lq=w("middot"),bq=w(Io),kq=w("mu"),pq=w("nabla"),hq=w("nbsp"),dq=[0,160],mq=[0,8711],yq=[0,956],wq=[0,8722],gq=[0,183],Tq=[0,181],_q=[0,8212],Sq=[0,175],Aq=[0,8804],Eq=w("or"),xq=w("oacute"),Iq=w("ne"),Cq=w("ni"),Nq=w("not"),Lq=w("notin"),Rq=w("nsub"),Oq=w("ntilde"),Pq=w("nu"),Dq=[0,957],Uq=[0,241],Mq=[0,8836],Fq=[0,8713],Xq=[0,172],Bq=[0,8715],Gq=[0,8800],qq=w("ocirc"),jq=w("oelig"),Yq=w("ograve"),Jq=w("oline"),Hq=w("omega"),Wq=w("omicron"),zq=w("oplus"),Vq=[0,8853],$q=[0,959],Kq=[0,969],Qq=[0,Xu],Zq=[0,242],tj=[0,339],rj=[0,244],ej=[0,243],nj=w("part"),aj=w("ordf"),uj=w("ordm"),ij=w("oslash"),fj=w("otilde"),cj=w("otimes"),sj=w("ouml"),oj=w("para"),vj=[0,182],lj=[0,us],bj=[0,8855],kj=[0,No],pj=[0,Av],hj=[0,186],dj=[0,170],mj=w("permil"),yj=w("perp"),wj=w("phi"),gj=w("pi"),Tj=w("piv"),_j=w("plusmn"),Sj=w("pound"),Aj=[0,163],Ej=[0,177],xj=[0,982],Ij=[0,960],Cj=[0,966],Nj=[0,8869],Lj=[0,8240],Rj=[0,8706],Oj=[0,8744],Pj=[0,8211],Dj=w("sup1"),Uj=w("rlm"),Mj=w("raquo"),Fj=w("prod"),Xj=w("prop"),Bj=w("psi"),Gj=w("quot"),qj=w("rArr"),jj=w("radic"),Yj=w("rang"),Jj=[0,10217],Hj=[0,8730],Wj=[0,8658],zj=[0,34],Vj=[0,968],$j=[0,8733],Kj=[0,8719],Qj=w("rarr"),Zj=w("rceil"),tY=w("rdquo"),rY=w("real"),eY=w("reg"),nY=w("rfloor"),aY=w("rho"),uY=[0,961],iY=[0,8971],fY=[0,174],cY=[0,8476],sY=[0,8221],oY=[0,8969],vY=[0,8594],lY=[0,187],bY=w("sigma"),kY=w("rsaquo"),pY=w("rsquo"),hY=w("sbquo"),dY=w("scaron"),mY=w("sdot"),yY=w("sect"),wY=w("shy"),gY=[0,173],TY=[0,167],_Y=[0,8901],SY=[0,353],AY=[0,8218],EY=[0,8217],xY=[0,8250],IY=w("sigmaf"),CY=w("sim"),NY=w("spades"),LY=w("sub"),RY=w("sube"),OY=w("sum"),PY=w("sup"),DY=[0,8835],UY=[0,8721],MY=[0,8838],FY=[0,8834],XY=[0,9824],BY=[0,8764],GY=[0,962],qY=[0,963],jY=[0,8207],YY=w("uarr"),JY=w("thetasym"),HY=w("sup2"),WY=w("sup3"),zY=w("supe"),VY=w("szlig"),$Y=w("tau"),KY=w("there4"),QY=w("theta"),ZY=[0,952],tJ=[0,8756],rJ=[0,964],eJ=[0,223],nJ=[0,8839],aJ=[0,179],uJ=[0,178],iJ=w("thinsp"),fJ=w("thorn"),cJ=w("tilde"),sJ=w("times"),oJ=w("trade"),vJ=w("uArr"),lJ=w("uacute"),bJ=[0,Gl],kJ=[0,8657],pJ=[0,8482],hJ=[0,215],dJ=[0,732],mJ=[0,wn],yJ=[0,8201],wJ=[0,977],gJ=w("xi"),TJ=w("ucirc"),_J=w("ugrave"),SJ=w("uml"),AJ=w("upsih"),EJ=w("upsilon"),xJ=w("uuml"),IJ=w("weierp"),CJ=[0,8472],NJ=[0,ad],LJ=[0,965],RJ=[0,978],OJ=[0,168],PJ=[0,249],DJ=[0,251],UJ=w("yacute"),MJ=w("yen"),FJ=w("yuml"),XJ=w("zeta"),BJ=w("zwj"),GJ=w("zwnj"),qJ=[0,8204],jJ=[0,dl],YJ=[0,950],JJ=[0,nh],HJ=[0,165],WJ=[0,ll],zJ=[0,958],VJ=[0,8593],$J=[0,185],KJ=[0,8242],QJ=[0,161],ZJ=w(";"),tH=w("&"),rH=w(Pk),eH=w("}"),nH=[0,w(fb),w(fb),w(fb)],aH=w(Pk),uH=w("${"),iH=w("\r\n"),fH=w("\r\n"),cH=w("\n"),sH=w(ca),oH=w(Il),vH=w(Xc),lH=w($a),bH=(w("src/parser/lexer.ml"),w(fb),[1,w("ILLEGAL")]),kH=w("/"),pH=w("/"),hH=w(""),dH=w("\0"),mH=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),yH=w("\b\t\n\v\f\r"),wH=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),gH=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),TH=w(""),_H=w("\0"),SH=w(""),AH=w(""),EH=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),xH=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),IH=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),CH=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),NH=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),LH=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),RH=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),OH=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),PH=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),DH=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\b\0\0\0\0\0\b"),UH=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),MH=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),FH=w("\0\0\0"),XH=w('\b\t\n\v\f\r\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t!\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"#$%\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'),BH=w("\b\t\n\v\f\r"),GH=w("\0\0\0\0"),qH=w(""),jH=w("\b\t\n\v\f\r"),YH=w(""),JH=w("\0\0"),HH=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),WH=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),zH=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),VH=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),$H=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),KH=w(""),QH=w(""),ZH=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),tW=w("\0"),rW=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),eW=w(""),nW=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),aW=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),uW=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),iW=w("\0"),fW=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),cW=w("\0"),sW=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),oW=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),vW=w(""),lW=w(""),bW=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),kW=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),pW=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),hW=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),dW=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),mW=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),yW=w("\0"),wW=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),gW=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),TW=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),_W=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),SW=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),AW=w("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"),EW=w("Lexer.FloatOfString.No_good"),xW=Nt([[0,w(_k),15],[0,w("if"),16],[0,w("in"),17],[0,w(sb),18],[0,w("return"),19],[0,w("switch"),20],[0,w("this"),21],[0,w("throw"),22],[0,w("try"),23],[0,w("var"),24],[0,w("while"),25],[0,w("with"),26],[0,w("const"),27],[0,w("let"),28],[0,w(Zi),29],[0,w(fo),30],[0,w(jo),31],[0,w("break"),32],[0,w("case"),33],[0,w("catch"),34],[0,w("continue"),35],[0,w(ub),36],[0,w("do"),37],[0,w("finally"),38],[0,w("for"),39],[0,w("class"),40],[0,w(Nd),41],[0,w(cs),42],[0,w("else"),43],[0,w("new"),44],[0,w("delete"),45],[0,w(Nl),46],[0,w(jb),47],[0,w("enum"),48],[0,w("export"),49],[0,w("import"),50],[0,w("super"),51],[0,w(Hu),52],[0,w(Wl),53],[0,w(cu),54],[0,w(Pu),55],[0,w(Jv),56],[0,w("public"),57],[0,w("yield"),58],[0,w("debugger"),59],[0,w("declare"),60],[0,w(hu),61],[0,w("opaque"),62],[0,w("of"),63],[0,w(ml),64],[0,w("await"),65]]),IW=Nt([[0,w(cs),42],[0,w(Nl),46],[0,w("any"),111],[0,w("mixed"),112],[0,w("empty"),113],[0,w("bool"),zi],[0,w("boolean"),zi],[0,w(jo),31],[0,w(fo),30],[0,w("number"),115],[0,w("string"),hd],[0,w(jb),117],[0,w(Zi),29]]),CW=w(Pa),NW=w(Pa),LW=w(ts),RW=w("eval"),OW=w(Hu),PW=w(Wl),DW=w(cu),UW=w(Pu),MW=w(Jv),FW=w("public"),XW=w(cs),BW=w("yield"),GW=w("enum"),qW=[0,w("src/parser/parser_env.ml"),289,2],jW=w(fb),YW=[0,0,0],JW=w(Yc),HW=w(Yc),WW=w("Parser_env.Try.Rollback"),zW=[0,w("did not consume any tokens")],VW=[0,1],$W=[0,0,0],KW=[0,w(Vu),494,6],QW=w(cs),ZW=w(af),tz=w(Ic),rz=w(af),ez=[0,1],nz=[0,[0,0,0]],az=[0,1],uz=[0,1],iz=[0,1],fz=[0,0],cz=[0,1],sz=[0,2],oz=[0,7],vz=[0,5],lz=[0,6],bz=[0,3],kz=[0,4],pz=[0,w(Vu),106,17],hz=[0,w(Vu),85,17],dz=[0,w(Vu),63,11],mz=[0,w(Vu),67,11],yz=[0,w(Vu),45,14],wz=[0,32],gz=[0,32],Tz=[0,1],_z=[0,30],Sz=[0,w(yf),826,13],Az=[0,w(yf),728,17],Ez=[0,[0,w(fb),w(fb)],1],xz=w(Zi),Iz=w(ca),Cz=w(Il),Nz=w(Xc),Lz=w($a),Rz=[0,32],Oz=w("new"),Pz=w("target"),Dz=[0,1],Uz=[0,0],Mz=[0,1],Fz=[0,0],Xz=[0,1],Bz=[0,0],Gz=[0,2],qz=[0,3],jz=[0,7],Yz=[0,6],Jz=[0,4],Hz=[0,5],Wz=[0,[0,17,[0,2]]],zz=[0,[0,18,[0,3]]],Vz=[0,[0,19,[0,4]]],$z=[0,[0,0,[0,5]]],Kz=[0,[0,1,[0,5]]],Qz=[0,[0,2,[0,5]]],Zz=[0,[0,3,[0,5]]],tV=[0,[0,5,[0,6]]],rV=[0,[0,7,[0,6]]],eV=[0,[0,4,[0,6]]],nV=[0,[0,6,[0,6]]],aV=[0,[0,8,[0,7]]],uV=[0,[0,9,[0,7]]],iV=[0,[0,10,[0,7]]],fV=[0,[0,11,[0,8]]],cV=[0,[0,12,[0,8]]],sV=[0,[0,15,[0,9]]],oV=[0,[0,13,[0,9]]],vV=[0,[0,14,[1,10]]],lV=[0,[0,16,[0,9]]],bV=[0,[0,21,[0,6]]],kV=[0,[0,20,[0,6]]],pV=[0,9],hV=[0,8],dV=[0,7],mV=[0,11],yV=[0,10],wV=[0,12],gV=[0,6],TV=[0,5],_V=[0,3],SV=[0,4],AV=[0,2],EV=[0,1],xV=[0,0],IV=[0,6],CV=w(ml),NV=w(":"),LV=w(ui),RV=w(fb),OV=[0,w(fb)],PV=w($n),DV=w($n),UV=[0,1],MV=[0,1],FV=[0,1],XV=[0,1],BV=w(af),GV=w(Ic),qV=w(af),jV=w(Ic),YV=w(hu),JV=[0,0],HV=w(Nl),WV=[0,1],zV=w(qo),VV=w(qo),$V=w(qo),KV=w(_c),QV=w(qo),ZV=w(_c),t$=[0,1],r$=w(qo),e$=w(qo),n$=w(_c),a$=[0,w(Ga),1142,15],u$=w(ub),i$=w("other than an interface declaration!"),f$=w("Internal Flow Error! Parsed `export interface` into something "),c$=[0,1],s$=[0,1],o$=w(qo),v$=w(qo),l$=w(_c),b$=w("Internal Flow Error! Unexpected export statement declaration!"),k$=w(qo),p$=w(qo),h$=w(_c),d$=[0,1],m$=w("module"),y$=[0,1],w$=w("module"),g$=w("exports"),T$=[0,1],_$=[0,1],S$=[0,1],A$=[0,1],E$=[0,0],x$=[0,1],I$=[0,1],C$=[0,28],N$=[0,0,0],L$=[0,w(Ga),200,20],R$=[0,w(Ga),217,20],O$=w("Parser error: No such thing as an expression pattern!"),P$=w("mixins"),D$=w("mixins"),U$=w("Label"),M$=[0,1],F$=[0,1],X$=w("use strict"),B$=[0,0,0],G$=w("\n"),q$=w("Nooo: "),j$=[0,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],Y$=[0,w("src/parser/parser_flow.ml"),37,28],J$=[0,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],H$=w("Internal error: ");G();var W$=Jc;!function(t){var r=Od.fds[t];r.flags.wronly&&Ot(ta+t+" is writeonly"),r.file,r.offset;}(0);var z$=jt(1),V$=jt(2),$$=[0,function(t){return function(t){for(n=t;;){if(!n)return 0;var r=n[2],e=n[1];try{Pt(e);}catch(n){}var n=r;}}(Yt())}],K$=I,Q$=[0,w(hp),32,0][1],Z$=Jc/4|0,tK=(4*Z$|0)-1|0;G(),G(),G();var rK=[Av,Pm,G()];G(),G();var eK=-6,nK=[Av,Uw,G()],aK=[0,0];try{iK=cr(Qw);}catch(w){if((w=lr(w))!==Hd)throw w;try{uK=cr(Zw);}catch(w){if((w=lr(w))!==Hd)throw w;var uK=tg;}var iK=uK;}var fK=function(t,r){return jr(t,0,r)}(iK,82),cK=[us,function(t){for(var r=sr(),e=[0,Lt(55,0),0],n=0==r.length-1?[0,0]:r,a=n.length-1,u=0;;){S(e[1],u)[u+1]=u;var i=u+1|0;if(54===u){var f=[0,Kw],c=54+_r(55,a)|0;if(!(c<0))for(g=0;;){var s=g%55|0,o=zt(g,a),v=S(n,o)[o+1],l=Ar(f[1],w(fb+v));f[1]=Xd(l,0,ht(l));var b=f[1],k=nr(b,3)<<24,p=nr(b,2)<<16,h=nr(b,1)<<8,d=((nr(b,0)+h|0)+p|0)+k|0,m=(S(e[1],s)[s+1]^d)&op;S(e[1],s)[s+1]=m;var y=g+1|0;if(c===g)break;var g=y;}return e[2]=0,e}u=i;}}],sK=[Av,cg,G()],oK=1000000010,vK=[0,[0,-1,[0,-1,sg,0]],0],lK=Yr(80,32),bK=Zr(Mn),kK=on(z$);on(V$),function(t){sn(function(r,e,n){var a=e<0?1:0;if(a)i=a;else var u=n<0?1:0,i=u||(ht(r)<(e+n|0)?1:0);i&&Tr(Dm);var f=t[2]+n|0;return t[3]>>6|0)?1:0;if(l)k=l;else var b=2!=(o>>>6|0)?1:0,k=b||(2!=(v>>>6|0)?1:0);if(k)throw dK;var p=(7&c)<<18|(63&s)<<12|(63&o)<<6|63&v,h=1;}else if(Pl<=c){var d=nr(t,u+1|0),m=nr(t,u+2|0);if((2!=(d>>>6|0)?1:0)||(2!=(m>>>6|0)?1:0))throw dK;var y=(15&c)<<12|(63&d)<<6|63&m,w=Ju<=y?1:0;if(w?y<=57088?1:0:w)throw dK;var p=y,h=1;}else{var g=nr(t,u+1|0);if(2!=(g>>>6|0))throw dK;var p=(31&c)<<6|63&g,h=1;}else if(Yn<=c)h=0;else var p=c,h=1;if(h){S(a,i)[i+1]=p;var T=nr(t,u),u=u+S(wK,T)[T+1]|0,i=i+1|0,f=f-1|0;continue}throw dK}var _=a.length-1;return[0,vn,Wr(_,function(t){return S(a,t)[t+1]}),_,0,0,0,0,0,1]}throw dK}var A=nr(t,n),E=S(wK,A)[A+1];if(!(0>>18|0)),ee(u,Dr(Yn|63&(c>>>12|0))),ee(u,Dr(Yn|63&(c>>>6|0))),ee(u,Dr(Yn|63&c));}else{var s=Ju<=c?1:0;if(s?c>>12|0)),ee(u,Dr(Yn|63&(c>>>6|0))),ee(u,Dr(Yn|63&c));}else ee(u,Dr(go|c>>>6|0)),ee(u,Dr(Yn|63&c));else ee(u,Dr(c));var i=i+1|0,f=f-1|0;}},IK=function(t){return xK(t,0,t[5]-t[6]|0)},CK=t,NK=null,LK=function(t){return void 0!==t?1:0},RK=CK.Array,OK=[Av,mg,G()],PK=CK.Error;!function(t,r){tr(t,Qt(r)===Av?r:r[1]);}(yg,[0,OK,{}]);var DK=function(t){throw t};Me(function(t){return t[1]===OK?[0,et(t[2].toString())]:0}),Me(function(t){return t instanceof RK?0:[0,et(t.toString())]});var UK=function(t,r){return[0,t[1],t[2],r[3]]},MK=function(t){return"number"==typeof t?wg:t[1]},FK=function(t,r){var e=t[1]-r[1]|0;return 0===e?t[2]-r[2]|0:e},XK=function(t){if("number"==typeof t)return 1;switch(t[0]){case 0:return 2;case 3:return 4;default:return 3}},BK=kr(hK,Tg,gg),GK=kr(hK,Sg,_g),qK=kr(hK,Eg,Ag),jK=kr(hK,Ig,xg),YK=kr(hK,Ng,Cg),JK=kr(hK,Rg,Lg),HK=kr(hK,Pg,Og),WK=kr(hK,Ug,Dg),zK=kr(hK,Fg,Mg),VK=kr(hK,Bg,Xg),$K=kr(hK,qg,Gg);pr(pK,jg,BK,BK),pr(pK,Yg,GK,GK),pr(pK,Jg,qK,qK),pr(pK,Hg,jK,jK),pr(pK,Wg,YK,YK),pr(pK,zg,JK,JK),pr(pK,Vg,HK,HK),pr(pK,$g,WK,WK),pr(pK,Kg,zK,zK),pr(pK,Qg,VK,VK),pr(pK,Zg,$K,$K);var KK=[Av,N_,G()],QK=function(t,r,e){return[0,t,r,sO,0,e,Zd]},ZK=function(t,r){var e=r.slice();return e[2]=t,e},tQ=function(t){return t[3][1]},rQ=function(t){return t[3][2]},eQ=function(t,r){if(t!==r[4]){var e=r.slice();return e[4]=t,e}return r},nQ=function(t){return 35>>6|0)),r],n=[0,Dr(Yn|63&(t>>>12|0)),e];return[0,Dr(qp|t>>>18|0),n]}if(Nc<=t){var a=[0,Dr(Yn|63&t),0],u=[0,Dr(Yn|63&(t>>>6|0)),a];return[0,Dr(Pl|t>>>12|0),u]}if(Yn<=t){var i=[0,Dr(Yn|63&t),0];return[0,Dr(go|t>>>6|0),i]}return[0,Dr(t),0]},vZ=function(t,r){if(45===nr(r,0))var e=1,n=Jr(r,1,ht(r)-1|0);else var e=0,n=r;if(0===t)f=0;else switch(t-1|0){case 0:var a=1;try{var u=St(_t(Ar(sH,n)));}catch(r){if(a=0,(r=lr(r))[1]!==Yd)throw r;var i=gr(Ar(oH,n)),f=1;}if(a)var i=u,f=1;break;case 2:var c=1;try{var s=cZ(n);}catch(r){if(c=0,(r=lr(r))[1]!==Yd)throw r;var i=gr(Ar(vH,n)),f=1;}if(c)var i=s,f=1;break;default:f=0;}if(!f)try{i=St(_t(n));}catch(f){if((f=lr(f))[1]!==Yd)throw f;i=gr(Ar(lH,n));}return[5,t,e?-i:i]},lZ=function(t,r,e){var n=iZ(t,eZ(t,r));return hn(r),kr(e,n,r)},bZ=Fe(0,53),kZ=Fe(0,53);Rr(function(t){return Be(bZ,t[1],t[2])},xW),Rr(function(t){return Be(kZ,t[1],t[2])},IW);var pZ=function(t,r){for(l=t;;){var e=function(t){for(;;)if(kn(t,20),0!==xQ(ln(t)))return pn(t)},n=function(t){return function(r){kn(r,21);var e=aQ(ln(r));if(0===e)return t(r);if(1===e)for(;;){kn(r,21);var n=aQ(ln(r));if(0===n)return t(r);if(1!==n)return pn(r)}return pn(r)}}(e),a=function(t){for(;;)if(kn(t,14),0!==xQ(ln(t)))return pn(t)},u=function(t){return function(r){kn(r,20);var e=tZ(ln(r));if(2>>0)return pn(r);switch(e){case 0:return t(r);case 1:if(0===pQ(ln(r)))for(;;){kn(r,19);var n=aQ(ln(r));if(0===n)for(;;)if(kn(r,18),0!==xQ(ln(r)))return pn(r);if(1!==n)return pn(r)}return pn(r);default:for(;;){kn(r,19);var a=aQ(ln(r));if(0===a)for(;;)if(kn(r,18),0!==xQ(ln(r)))return pn(r);if(1!==a)return pn(r)}}}}(e),i=function(t,r,e,n,a,u,i,f){return function(c){var s=ln(c),o=Lo>>0)return pn(c);switch(o){case 0:return 76;case 1:return 77;case 2:if(kn(c,2),0===oQ(ln(c)))for(;;)if(kn(c,2),0!==oQ(ln(c)))return pn(c);return pn(c);case 3:return 0;case 4:return kn(c,0),0===_Q(ln(c))?0:pn(c);case 5:return kn(c,69),0===DQ(ln(c))?(kn(c,42),0===DQ(ln(c))?38:pn(c)):pn(c);case 6:return 8;case 7:kn(c,77);var v=ln(c);return 0===(32>>0)return pn(c);switch(k){case 0:return kn(c,64),0===DQ(ln(c))?54:pn(c);case 1:return 5;default:return 53}case 14:kn(c,61);var p=ln(c),h=42>>0)return pn(c);switch(w){case 0:return r(c);case 1:continue;default:return e(c)}}return pn(c);case 18:kn(c,74);var g=vQ(ln(c));if(2>>0)return pn(c);switch(g){case 0:kn(c,3);var T=RQ(ln(c));if(2>>0)return pn(c);switch(T){case 0:for(;;){var _=RQ(ln(c));if(2<_>>>0)return pn(c);switch(_){case 0:continue;case 1:return n(c);default:return a(c)}}case 1:return n(c);default:return a(c)}case 1:return 6;default:return 73}case 19:kn(c,21);var S=CQ(ln(c));if(7>>0)return pn(c);switch(S){case 0:return r(c);case 1:return u(c);case 2:for(;;){kn(c,15);var A=EQ(ln(c));if(3>>0)return pn(c);switch(A){case 0:return i(c);case 1:return f(c);case 2:continue;default:for(;;){kn(c,14);var E=FQ(ln(c));if(2>>0)return pn(c);switch(E){case 0:return i(c);case 1:return f(c);default:continue}}}}case 3:for(;;){kn(c,21);var x=FQ(ln(c));if(2>>0)return pn(c);switch(x){case 0:return r(c);case 1:return f(c);default:continue}}case 4:kn(c,20);var I=VQ(ln(c));if(0===I)return r(c);if(1===I)for(;;){kn(c,11);var C=VQ(ln(c));if(0===C)for(;;)if(kn(c,10),0!==xQ(ln(c)))return pn(c);if(1!==C)return pn(c)}return pn(c);case 5:return e(c);case 6:kn(c,20);var N=iQ(ln(c));if(0===N)return r(c);if(1===N)for(;;){kn(c,13);var L=iQ(ln(c));if(0===L)for(;;)if(kn(c,12),0!==xQ(ln(c)))return pn(c);if(1!==L)return pn(c)}return pn(c);default:kn(c,20);var R=gQ(ln(c));if(0===R)return r(c);if(1===R)for(;;){kn(c,17);var O=gQ(ln(c));if(0===O)for(;;)if(kn(c,16),0!==xQ(ln(c)))return pn(c);if(1!==O)return pn(c)}return pn(c)}case 20:kn(c,21);var P=cQ(ln(c));if(3

>>0)return pn(c);switch(P){case 0:return r(c);case 1:return u(c);case 2:for(;;){kn(c,21);var D=cQ(ln(c));if(3>>0)return pn(c);switch(D){case 0:return r(c);case 1:return u(c);case 2:continue;default:return e(c)}}default:return e(c)}case 21:return 33;case 22:return 31;case 23:kn(c,59);var U=ln(c),M=59>>0)return pn(e);switch(n){case 0:return t(e);case 1:for(;;){kn(e,21);var a=nQ(ln(e));if(2>>0)return pn(e);switch(a){case 0:return t(e);case 1:continue;default:return r(e)}}default:return r(e)}}}(e,u),a,n);bn(r);var f=i(r);if(77>>0)return gr(FD);var c=f;if(39<=c)switch(c){case 39:return[0,l,91];case 40:return[0,l,92];case 41:return[0,l,87];case 42:return[0,l,88];case 43:return[0,l,106];case 44:return[0,l,107];case 45:return[0,l,69];case 46:return[0,l,95];case 47:return[0,l,68];case 48:return[0,l,67];case 49:return[0,l,97];case 50:return[0,l,96];case 51:return[0,l,78];case 52:return[0,l,77];case 53:return[0,l,75];case 54:return[0,l,76];case 55:return[0,l,73];case 56:return[0,l,72];case 57:return[0,l,71];case 58:return[0,l,70];case 59:return[0,l,93];case 60:return[0,l,94];case 61:return[0,l,98];case 62:return[0,l,99];case 63:return[0,l,nu];case 64:return[0,l,Kl];case 65:return[0,l,$u];case 66:return[0,l,84];case 67:return[0,l,86];case 68:return[0,l,85];case 69:return[0,l,Ho];case 70:return[0,l,105];case 71:return[0,l,79];case 72:return[0,l,12];case 73:return[0,l,74];case 74:return[0,l,vb];case 75:return[0,l,14];case 76:return[0,l[4]?aZ(l,eZ(l,r),4):l,ja];default:return[0,iZ(l,eZ(l,r)),108]}switch(c){case 0:l=fZ(l,r);continue;case 1:l=iZ(l,eZ(l,r));continue;case 2:continue;case 3:var s=eZ(l,r),o=Zr(Xb),v=yZ(l,o,r),l=sZ(v[1],s,v[2],o,1);continue;case 4:var b=IK(r);if(l[5]){var k=l[4]?uZ(l,eZ(l,r),b):l,p=eQ(1,k),h=yn(r);if(rr(xK(r,h-1|0,1),XD)&&ar(xK(r,h-2|0,1),BD))return[0,p,81];l=p;continue}var d=eZ(l,r),m=Zr(Xb);ne(m,Jr(b,2,ht(b)-2|0));var y=yZ(l,m,r),l=sZ(y[1],d,y[2],m,1);continue;case 5:if(l[4]){l=eQ(0,l);continue}hn(r);var w=function(t){return 0===$Q(ln(t))?0:pn(t)};return bn(r),0===w(r)?[0,l,nu]:gr(GD);case 6:var g=eZ(l,r),T=Zr(Xb),_=wZ(l,T,r),l=sZ(_[1],g,_[2],T,0);continue;case 7:if(0===dn(r)){l=wZ(l,Zr(Xb),r)[1];continue}return[0,l,108];case 8:var S=IK(r),A=eZ(l,r),E=Zr(Xb),x=Zr(Xb);ne(x,S);var I=dZ(l,S,E,x,0,r),C=UK(A,I[2]),N=I[3],L=te(x),R=[1,[0,C,te(E),L,N]];return[0,I[1],R];case 9:var O=Zr(Xb),P=Zr(Xb),D=Zr(Xb);ne(D,IK(r));var U=TZ(l,eZ(l,r),O,P,D,r),M=U[3],F=te(D),X=te(P),B=[0,te(O),X,F];return[0,U[1],[2,[0,U[2],B,M]]];case 10:return lZ(l,r,function(t,r){if(bn(r),0===JQ(ln(r)))if(0===BQ(ln(r)))if(0===PQ(ln(r))){for(;;)if(kn(r,0),0!==PQ(ln(r))){e=pn(r);break}}else e=pn(r);else e=pn(r);else var e=pn(r);return 0===e?[0,t,MD]:gr(UD)});case 11:return[0,l,qD];case 12:return lZ(l,r,function(t,r){if(bn(r),0===JQ(ln(r)))if(0===zQ(ln(r)))if(0===GQ(ln(r))){for(;;)if(kn(r,0),0!==GQ(ln(r))){e=pn(r);break}}else e=pn(r);else e=pn(r);else var e=pn(r);return 0===e?[0,t,DD]:gr(PD)});case 13:return[0,l,jD];case 14:return lZ(l,r,function(t,r){if(bn(r),0===JQ(ln(r)))if(0===GQ(ln(r))){for(;;)if(kn(r,0),0!==GQ(ln(r))){e=pn(r);break}}else e=pn(r);else var e=pn(r);return 0===e?[0,t,OD]:gr(RD)});case 15:return[0,l,YD];case 16:return lZ(l,r,function(t,r){if(bn(r),0===JQ(ln(r)))if(0===TQ(ln(r)))if(0===wQ(ln(r))){for(;;)if(kn(r,0),0!==wQ(ln(r))){e=pn(r);break}}else e=pn(r);else e=pn(r);else var e=pn(r);return 0===e?[0,t,LD]:gr(ND)});case 18:return lZ(l,r,function(t,r){function e(t){for(;;)if(kn(t,0),0!==pQ(ln(t)))return pn(t)}function n(t){var r=hQ(ln(t));return 0===r?0===pQ(ln(t))?e(t):pn(t):1===r?e(t):pn(t)}function a(t){for(;;){var r=sQ(ln(t));if(0!==r)return 1===r?n(t):pn(t)}}bn(r);var u=ln(r),i=45>>0)s=pn(r);else switch(i){case 0:if(0===pQ(ln(r)))for(;;){var f=sQ(ln(r));if(0!==f){s=1===f?n(r):pn(r);break}}else s=pn(r);break;case 1:var c=AQ(ln(r)),s=0===c?a(r):1===c?n(r):pn(r);break;default:for(;;){var o=WQ(ln(r));if(2>>0)s=pn(r);else switch(o){case 0:s=a(r);break;case 1:continue;default:s=n(r);}break}}return 0===s?[0,t,CD]:gr(ID)});case 20:return lZ(l,r,function(t,r){function e(t){for(;;)if(kn(t,0),0!==pQ(ln(t)))return pn(t)}bn(r);var n=yQ(ln(r));if(0===n)u=0===pQ(ln(r))?e(r):pn(r);else if(1===n)for(;;){kn(r,0);var a=yQ(ln(r));if(0===a){kn(r,0);u=0===pQ(ln(r))?e(r):pn(r);}else{if(1===a)continue;u=pn(r);}break}else var u=pn(r);return 0===u?[0,t,xD]:gr(ED)});case 22:var G=IK(r);if(64===nr(G,0))if(64===nr(G,1))var q=Jr(G,2,ht(G)-2|0),j=1;else j=0;else j=0;if(!j)q=G;try{return[0,l,Ge(bZ,q)]}catch(r){if((r=lr(r))===Hd)return[0,l,0];throw r}case 23:return[0,l,1];case 24:return[0,l,2];case 25:return[0,l,5];case 26:return[0,l,6];case 27:return[0,l,7];case 28:return[0,l,8];case 29:return[0,l,13];case 30:return[0,l,11];case 31:return[0,l,9];case 32:return[0,l,10];case 33:return[0,l,81];case 34:return[0,l,80];case 35:return[0,l,83];case 36:return[0,l,82];case 37:return[0,l,89];case 38:return[0,l,90];default:return[0,l,JD]}}},hZ=function(t,r){for(g=t;;){var e=function(t){return 0===dQ(ln(t))&&0===jQ(ln(t))&&0===MQ(ln(t))&&0===bQ(ln(t))&&0===kQ(ln(t))&&0===qQ(ln(t))&&0===YQ(ln(t))&&0===dQ(ln(t))&&0===KQ(ln(t))&&0===mQ(ln(t))&&0===LQ(ln(t))?3:pn(t)},n=function(t){return kn(t,3),0===ZQ(ln(t))?3:pn(t)},a=function(t){for(;;)if(kn(t,17),0!==xQ(ln(t)))return pn(t)},u=function(t){return function(r){kn(r,17);var e=tZ(ln(r));if(2>>0)return pn(r);switch(e){case 0:return t(r);case 1:if(0===pQ(ln(r)))for(;;){kn(r,16);var n=aQ(ln(r));if(0===n)for(;;)if(kn(r,15),0!==xQ(ln(r)))return pn(r);if(1!==n)return pn(r)}return pn(r);default:for(;;){kn(r,16);var a=aQ(ln(r));if(0===a)for(;;)if(kn(r,15),0!==xQ(ln(r)))return pn(r);if(1!==a)return pn(r)}}}}(a),i=function(t,r){return function(e){kn(e,18);var n=nQ(ln(e));if(2>>0)return pn(e);switch(n){case 0:return t(e);case 1:for(;;){kn(e,18);var a=nQ(ln(e));if(2>>0)return pn(e);switch(a){case 0:return t(e);case 1:continue;default:return r(e)}}default:return r(e)}}}(a,u),f=function(t,r,e){return function(n){for(;;){kn(n,18);var a=cQ(ln(n));if(3>>0)return pn(n);switch(a){case 0:return t(n);case 1:return e(n);case 2:continue;default:return r(n)}}}}(a,u,i),c=function(t){return function(r){kn(r,17);var e=gQ(ln(r));if(0===e)return t(r);if(1===e)for(;;){kn(r,14);var n=gQ(ln(r));if(0===n)for(;;)if(kn(r,13),0!==xQ(ln(r)))return pn(r);if(1!==n)return pn(r)}return pn(r)}}(a),s=function(t){return function(r){kn(r,17);var e=iQ(ln(r));if(0===e)return t(r);if(1===e)for(;;){kn(r,10);var n=iQ(ln(r));if(0===n)for(;;)if(kn(r,9),0!==xQ(ln(r)))return pn(r);if(1!==n)return pn(r)}return pn(r)}}(a),o=function(t){return function(r){kn(r,17);var e=VQ(ln(r));if(0===e)return t(r);if(1===e)for(;;){kn(r,8);var n=VQ(ln(r));if(0===n)for(;;)if(kn(r,7),0!==xQ(ln(r)))return pn(r);if(1!==n)return pn(r)}return pn(r)}}(a),v=function(t){return function(r){kn(r,18);var e=aQ(ln(r));if(0===e)return t(r);if(1===e)for(;;){kn(r,18);var n=aQ(ln(r));if(0===n)return t(r);if(1!==n)return pn(r)}return pn(r)}}(a),l=function(t,r){return function(e){for(;;){kn(e,18);var n=FQ(ln(e));if(2>>0)return pn(e);switch(n){case 0:return t(e);case 1:return r(e);default:continue}}}}(a,v),b=function(t,r){return function(e){for(;;){kn(e,12);var n=EQ(ln(e));if(3>>0)return pn(e);switch(n){case 0:return t(e);case 1:return r(e);case 2:continue;default:for(;;){kn(e,11);var a=FQ(ln(e));if(2>>0)return pn(e);switch(a){case 0:return t(e);case 1:return r(e);default:continue}}}}}}(function(t){for(;;)if(kn(t,11),0!==xQ(ln(t)))return pn(t)},v),k=function(t,r,e,n,a,u,i,f){return function(c){kn(c,18);var s=CQ(ln(c));if(7>>0)return pn(c);switch(s){case 0:return t(c);case 1:return e(c);case 2:return n(c);case 3:return a(c);case 4:return u(c);case 5:return r(c);case 6:return i(c);default:return f(c)}}}(a,u,i,b,l,o,s,c),p=function(t,r){return function(e){for(;;){kn(e,18);var n=nQ(ln(e));if(2>>0)return pn(e);switch(n){case 0:return t(e);case 1:continue;default:return r(e)}}}}(a,u),h=function(t,r,e,n,a,u,i,f,c,s,o,v,l,b,k){return function(p){var h=ln(p),d=Lo>>0)return pn(p);switch(d){case 0:return 50;case 1:return 51;case 2:if(kn(p,1),0===oQ(ln(p)))for(;;)if(kn(p,1),0!==oQ(ln(p)))return pn(p);return pn(p);case 3:return 0;case 4:return kn(p,0),0===_Q(ln(p))?0:pn(p);case 5:return 6;case 6:return kn(p,19),0===UQ(ln(p))?t(p):pn(p);case 7:if(kn(p,51),0===YQ(ln(p))){var m=ln(p);if(0===($u>>0)return pn(p);switch(g){case 0:for(;;){var T=HQ(ln(p));if(3>>0)return pn(p);switch(T){case 0:continue;case 1:return r(p);case 2:return u(p);default:return l(p)}}case 1:return r(p);case 2:return u(p);default:return l(p)}case 15:kn(p,30);var _=yQ(ln(p));return 0===_?0===fQ(ln(p))?29:pn(p):1===_?e(p):pn(p);case 16:kn(p,51);var S=OQ(ln(p));if(0===S){kn(p,2);var A=RQ(ln(p));if(2>>0)return pn(p);switch(A){case 0:for(;;){var E=RQ(ln(p));if(2>>0)return pn(p);switch(E){case 0:continue;case 1:return b(p);default:return k(p)}}case 1:return b(p);default:return k(p)}}return 1===S?5:pn(p);case 17:kn(p,18);var x=CQ(ln(p));if(7>>0)return pn(p);switch(x){case 0:return n(p);case 1:return i(p);case 2:return f(p);case 3:return c(p);case 4:return s(p);case 5:return a(p);case 6:return o(p);default:return v(p)}case 18:kn(p,18);var I=cQ(ln(p));if(3>>0)return pn(p);switch(I){case 0:return n(p);case 1:return i(p);case 2:return l(p);default:return a(p)}case 19:return 33;case 20:return 31;case 21:return 37;case 22:kn(p,39);var C=ln(p);return 0===(61>>0)return gr(QD);switch(d){case 0:g=fZ(g,r);continue;case 1:continue;case 2:var m=eZ(g,r),y=Zr(Xb),w=yZ(g,y,r),g=sZ(w[1],m,w[2],y,1);continue;case 3:var T=IK(r);if(g[5]){var _=g[4]?uZ(g,eZ(g,r),T):g,S=eQ(1,_),A=yn(r);if(rr(xK(r,A-1|0,1),ZD)&&ar(xK(r,A-2|0,1),tU))return[0,S,81];g=S;continue}var E=eZ(g,r),x=Zr(Xb);ne(x,T);var I=yZ(g,x,r),g=sZ(I[1],E,I[2],x,1);continue;case 4:if(g[4]){g=eQ(0,g);continue}hn(r);var C=function(t){return 0===$Q(ln(t))?0:pn(t)};return bn(r),0===C(r)?[0,g,nu]:gr(rU);case 5:var N=eZ(g,r),L=Zr(Xb),R=wZ(g,L,r),g=sZ(R[1],N,R[2],L,0);continue;case 6:var O=IK(r),P=eZ(g,r),D=Zr(Xb),U=Zr(Xb);ne(U,O);var M=dZ(g,O,D,U,0,r),F=UK(P,M[2]),X=M[3],B=te(U),G=[1,[0,F,te(D),B,X]];return[0,M[1],G];case 7:return lZ(g,r,function(t,r){function e(t){if(0===BQ(ln(t))){if(0===PQ(ln(t)))for(;;)if(kn(t,0),0!==PQ(ln(t)))return pn(t);return pn(t)}return pn(t)}bn(r);var n=lQ(ln(r));if(0===n)for(;;){var a=SQ(ln(r));if(0!==a){u=1===a?e(r):pn(r);break}}else var u=1===n?e(r):pn(r);return 0===u?[0,t,vZ(0,IK(r))]:gr(KD)});case 8:return[0,g,vZ(0,IK(r))];case 9:return lZ(g,r,function(t,r){function e(t){if(0===zQ(ln(t))){if(0===GQ(ln(t)))for(;;)if(kn(t,0),0!==GQ(ln(t)))return pn(t);return pn(t)}return pn(t)}bn(r);var n=lQ(ln(r));if(0===n)for(;;){var a=SQ(ln(r));if(0!==a){u=1===a?e(r):pn(r);break}}else var u=1===n?e(r):pn(r);return 0===u?[0,t,vZ(2,IK(r))]:gr($D)});case 10:return[0,g,vZ(2,IK(r))];case 11:return lZ(g,r,function(t,r){function e(t){if(0===GQ(ln(t)))for(;;)if(kn(t,0),0!==GQ(ln(t)))return pn(t);return pn(t)}bn(r);var n=lQ(ln(r));if(0===n)for(;;){var a=SQ(ln(r));if(0!==a){u=1===a?e(r):pn(r);break}}else var u=1===n?e(r):pn(r);return 0===u?[0,t,vZ(1,IK(r))]:gr(VD)});case 12:return[0,g,vZ(1,IK(r))];case 13:return lZ(g,r,function(t,r){function e(t){if(0===TQ(ln(t))){if(0===wQ(ln(t)))for(;;)if(kn(t,0),0!==wQ(ln(t)))return pn(t);return pn(t)}return pn(t)}if(bn(r),0===function(t){var r=lQ(ln(t));if(0===r)for(;;){var n=SQ(ln(t));if(0!==n)return 1===n?e(t):pn(t)}return 1===r?e(t):pn(t)}(r)){var n=IK(r);try{return[0,t,vZ(3,n)]}catch(e){throw e=lr(e)}}return gr(zD)});case 14:var q=IK(r);try{return[0,g,vZ(3,q)]}catch(t){throw t=lr(t)}case 15:return lZ(g,r,function(t,r){function e(t){for(;;)if(kn(t,0),0!==pQ(ln(t)))return pn(t)}function n(t){var r=hQ(ln(t));return 0===r?0===pQ(ln(t))?e(t):pn(t):1===r?e(t):pn(t)}function a(t){if(0===pQ(ln(t)))for(;;){var r=sQ(ln(t));if(0!==r)return 1===r?n(t):pn(t)}return pn(t)}function u(t){for(;;){var r=sQ(ln(t));if(0!==r)return 1===r?n(t):pn(t)}}function i(t){var r=AQ(ln(t));return 0===r?u(t):1===r?n(t):pn(t)}function f(t){for(;;){var r=WQ(ln(t));if(2>>0)return pn(t);switch(r){case 0:return u(t);case 1:continue;default:return n(t)}}}bn(r);var c=ln(r),s=44>>0)v=pn(r);else switch(s){case 0:for(;;){var o=HQ(ln(r));if(3>>0)v=pn(r);else switch(o){case 0:continue;case 1:v=a(r);break;case 2:v=i(r);break;default:v=f(r);}break}break;case 1:v=a(r);break;case 2:v=i(r);break;default:var v=f(r);}return 0===v?[0,t,vZ(3,IK(r))]:gr(WD)});case 17:return lZ(g,r,function(t,r){function e(t){for(;;)if(kn(t,0),0!==pQ(ln(t)))return pn(t)}bn(r);var n=ln(r),a=44>>0)s=pn(r);else switch(a){case 0:for(;;){var u=ln(r),i=8>>0)o=pn(u);else switch(s){case 1:o=3;break;case 3:o=0;break;case 4:o=1;break;default:var o=2;}if(3>>0)return gr(eU);switch(o){case 0:var v=IK(u);if(ne(n,v),rr(r,v))return[0,i,eZ(i,u),f];ne(e,v);continue;case 1:ne(n,nU);var l=mZ(i,e,u),b=l[2]||f;ne(n,IK(u));var i=l[1],f=b;continue;case 2:var k=IK(u);ne(n,k);var p=iZ(i,eZ(i,u));return ne(e,k),[0,p,eZ(p,u),f];default:var h=IK(u);ne(n,h),ne(e,h);continue}}},mZ=function(t,r,e){function n(t){return kn(t,4),0===GQ(ln(t))?3:pn(t)}bn(e);var a=ln(e),u=Ef>>0)o=pn(e);else switch(u){case 0:o=0;break;case 1:o=17;break;case 2:o=16;break;case 3:kn(e,16);o=0===_Q(ln(e))?16:pn(e);break;case 4:kn(e,5);o=0===GQ(ln(e))?n(e):pn(e);break;case 5:kn(e,12);o=0===GQ(ln(e))?n(e):pn(e);break;case 6:o=1;break;case 7:o=6;break;case 8:o=7;break;case 9:o=8;break;case 10:o=9;break;case 11:o=10;break;case 12:kn(e,15);var i=ln(e),f=47>>0)return gr(aU);switch(o){case 0:return[0,t,0];case 1:return ne(r,uU),[0,t,0];case 2:return Rr(function(t){return ee(r,t)},oZ(At(Ar(iU,IK(e))))),[0,t,0];case 3:var v=At(Ar(fU,IK(e)));if(256<=v){var l=7&v;Rr(function(t){return ee(r,t)},oZ(v>>>3|0)),ee(r,Dr(48+l|0));}else Rr(function(t){return ee(r,t)},oZ(v));return[0,t,1];case 4:return Rr(function(t){return ee(r,t)},oZ(At(Ar(cU,IK(e))))),[0,t,1];case 5:return ee(r,Dr(0)),[0,t,0];case 6:return ee(r,Dr(8)),[0,t,0];case 7:return ee(r,Dr(12)),[0,t,0];case 8:return ee(r,Dr(10)),[0,t,0];case 9:return ee(r,Dr(13)),[0,t,0];case 10:return ee(r,Dr(9)),[0,t,0];case 11:return ee(r,Dr(11)),[0,t,0];case 12:return Rr(function(t){return ee(r,t)},oZ(At(Ar(sU,IK(e))))),[0,t,1];case 13:var b=IK(e);return Rr(function(t){return ee(r,t)},oZ(At(Ar(oU,Jr(b,1,ht(b)-1|0))))),[0,t,0];case 14:var k=IK(e),p=At(Ar(vU,Jr(k,2,ht(k)-3|0))),h=Wv>>0)f=pn(e);else switch(a){case 0:f=3;break;case 1:f=0;break;case 2:kn(e,0);f=0===_Q(ln(e))?0:pn(e);break;default:kn(e,3);var u=ln(e),i=44>>0){var c=iZ(o,eZ(o,e));return[0,c,eZ(c,e)]}switch(f){case 0:var s=fZ(o,e);ne(r,IK(e));var o=s;continue;case 1:var v=eZ(o,e);return[0,o[4]?aZ(o,v,[2,bU,lU]):o,v];case 2:if(o[4])return[0,o,eZ(o,e)];ne(r,kU);continue;default:ne(r,IK(e));continue}}},wZ=function(t,r,e){for(;;){bn(e);var n=ln(e),a=13>>0)u=pn(e);else switch(a){case 0:u=0;break;case 1:u=2;break;case 2:u=1;break;default:kn(e,1);var u=0===_Q(ln(e))?1:pn(e);}if(2>>0)return gr(pU);switch(u){case 0:return[0,t,eZ(t,e)];case 1:var i=eZ(t,e),f=i[3],c=fZ(t,e),s=yn(e);return[0,c,[0,i[1],i[2],[0,f[1],f[2]-s|0,f[3]-s|0]]];default:ne(r,IK(e));continue}}},gZ=function(t,r,e,n,a){for(N=t;;){bn(a);var u=ln(a),i=123>>0)_=pn(a);else switch(i){case 0:_=1;break;case 1:_=6;break;case 2:_=2;break;case 3:kn(a,2);_=0===_Q(ln(a))?2:pn(a);break;case 4:_=0;break;default:kn(a,6);var f=ln(a),c=34>>0)return gr(xU);switch(_){case 0:var S=IK(a);switch(r){case 0:A=ar(S,IU)?0:1;break;case 1:A=ar(S,CU)?0:1;break;default:if(ar(S,NU))if(ar(S,LU))var A=0,E=0;else E=1;else E=1;if(E)return hn(a),[0,N,eZ(N,a)]}if(A)return[0,N,eZ(N,a)];ne(n,S),ne(e,S);continue;case 1:var x=iZ(N,eZ(N,a));return[0,x,eZ(x,a)];case 2:var C=IK(a);ne(n,C),ne(e,C);var N=fZ(N,a);continue;case 3:var L=IK(a),R=Jr(L,3,ht(L)-4|0);ne(n,L),Rr(function(t){return ee(e,t)},oZ(At(Ar(RU,R))));continue;case 4:var O=IK(a),P=Jr(O,2,ht(O)-3|0);ne(n,O),Rr(function(t){return ee(e,t)},oZ(At(P)));continue;case 5:var D=IK(a),U=Jr(D,1,ht(D)-2|0);ne(n,D);var M=I(U,OU);if(0<=M)if(0>>0)s=pn(u);else switch(f){case 0:s=0;break;case 1:s=6;break;case 2:s=5;break;case 3:kn(u,5);s=0===_Q(ln(u))?4:pn(u);break;case 4:kn(u,6);var c=ln(u),s=0===(ws>>0)return gr(aH);switch(s){case 0:var o=iZ(k,eZ(k,u));return[0,o,UK(r,eZ(o,u)),1];case 1:return ee(a,96),[0,k,UK(r,eZ(k,u)),1];case 2:return ne(a,uH),[0,k,UK(r,eZ(k,u)),0];case 3:ee(n,92),ee(a,92);var v=mZ(k,e,u),l=IK(u);ne(n,l),ne(a,l);k=v[1];continue;case 4:ne(n,iH),ne(a,fH),ne(e,cH);k=fZ(k,u);continue;case 5:var b=IK(u);ne(n,b),ne(a,b),ee(e,10);var k=fZ(k,u);continue;default:var p=IK(u);ne(n,p),ne(a,p),ne(e,p);continue}}},_Z=$r([0,K$]),SZ=function(t,r){return[0,[0],0,r,ZK(t[2].slice(),t)]},AZ=function(t,r){var e=r+1|0;if(t[1].length-1>>0)o=pn(u);else switch(c){case 0:o=0;break;case 1:o=14;break;case 2:if(kn(u,2),0===oQ(ln(u))){for(;;)if(kn(u,2),0!==oQ(ln(u))){o=pn(u);break}}else o=pn(u);break;case 3:o=1;break;case 4:kn(u,1);o=0===_Q(ln(u))?1:pn(u);break;case 5:o=13;break;case 6:if(kn(u,12),0===NQ(ln(u))){for(;;)if(kn(u,12),0!==NQ(ln(u))){o=pn(u);break}}else o=pn(u);break;case 7:o=10;break;case 8:kn(u,6);var s=OQ(ln(u)),o=0===s?4:1===s?3:pn(u);break;case 9:o=9;break;case 10:o=5;break;case 11:o=11;break;case 12:o=7;break;default:o=8;}if(14>>0)x=gr(SU);else switch(o){case 0:x=[0,i,ja];break;case 1:i=fZ(i,u);continue;case 2:continue;case 3:var v=eZ(i,u),l=Zr(Xb),b=wZ(i,l,u),i=sZ(b[1],v,b[2],l,0);continue;case 4:var k=eZ(i,u),p=Zr(Xb),h=yZ(i,p,u),i=sZ(h[1],k,h[2],p,1);continue;case 5:x=[0,i,93];break;case 6:x=[0,i,vb];break;case 7:x=[0,i,94];break;case 8:x=[0,i,1];break;case 9:x=[0,i,81];break;case 10:x=[0,i,11];break;case 11:x=[0,i,79];break;case 12:x=[0,i,Qv];break;case 13:var d=IK(u),m=eZ(i,u),y=Zr(Xb),w=Zr(Xb);ne(w,d);var g=rr(d,AU)?0:1,T=gZ(i,g,y,w,u);ne(w,d);var _=te(y),A=te(w),E=[4,[0,UK(m,T[2]),_,A]],x=[0,T[1],E];break;default:x=[0,i,108];}Vt=nZ(x);break}break;case 3:var I=mn(a[2]),C=rZ(a,I,I),N=Zr(Xb),L=Zr(Xb),R=a[2];bn(R);var O=ln(R),P=123>>0)D=pn(R);else switch(P){case 0:D=1;break;case 1:D=4;break;case 2:D=0;break;case 3:kn(R,0);D=0===_Q(ln(R))?0:pn(R);break;case 4:D=2;break;default:var D=3;}if(4>>0)G=gr(EU);else switch(D){case 0:var U=IK(R);ne(L,U),ne(N,U);var M=gZ(fZ(a,R),2,N,L,R),F=te(N),X=te(L),B=[4,[0,UK(C,M[2]),F,X]],G=[0,M[1],B];break;case 1:G=[0,a,ja];break;case 2:G=[0,a,93];break;case 3:G=[0,a,1];break;default:var q=IK(R);ne(L,q),ne(N,q);var j=gZ(a,2,N,L,R),Y=te(N),J=te(L),H=[4,[0,UK(C,j[2]),Y,J]],G=[0,j[1],H];}Vt=nZ([0,G[1],G[2]]);break;case 4:for(var W=a[2],z=a;;){bn(W);var V=ln(W),$=-1>>0)Q=pn(W);else switch($){case 0:Q=5;break;case 1:if(kn(W,1),0===oQ(ln(W))){for(;;)if(kn(W,1),0!==oQ(ln(W))){Q=pn(W);break}}else Q=pn(W);break;case 2:Q=0;break;case 3:kn(W,0);Q=0===_Q(ln(W))?0:pn(W);break;case 4:kn(W,5);var K=OQ(ln(W)),Q=0===K?3:1===K?2:pn(W);break;default:Q=4;}if(5>>0)kt=gr(rH);else switch(Q){case 0:z=fZ(z,W);continue;case 1:continue;case 2:var Z=eZ(z,W),tt=Zr(Xb),rt=wZ(z,tt,W),z=sZ(rt[1],Z,rt[2],tt,0);continue;case 3:var et=eZ(z,W),nt=Zr(Xb),at=yZ(z,nt,W),z=sZ(at[1],et,at[2],nt,1);continue;case 4:var ut=eZ(z,W),it=Zr(Xb),ft=Zr(Xb),ct=Zr(Xb);ne(ct,eH);var st=TZ(z,ut,it,ft,ct,W),ot=st[3],vt=te(ct),lt=te(ft),bt=[0,te(it),lt,vt],kt=[0,st[1],[2,[0,st[2],bt,ot]]];break;default:var pt=iZ(z,eZ(z,W)),kt=[0,pt,[2,[0,eZ(pt,W),nH,1]]];}Vt=nZ(kt);break}break;default:for(var dt=a[2],mt=a;;){bn(dt);var yt=ln(dt),wt=Lo>>0)Tt=pn(dt);else switch(wt){case 0:Tt=0;break;case 1:Tt=6;break;case 2:if(kn(dt,2),0===oQ(ln(dt))){for(;;)if(kn(dt,2),0!==oQ(ln(dt))){Tt=pn(dt);break}}else Tt=pn(dt);break;case 3:Tt=1;break;case 4:kn(dt,1);Tt=0===_Q(ln(dt))?1:pn(dt);break;default:kn(dt,5);var gt=OQ(ln(dt)),Tt=0===gt?4:1===gt?3:pn(dt);}if(6>>0)zt=gr(hU);else switch(Tt){case 0:zt=[0,mt,ja];break;case 1:mt=fZ(mt,dt);continue;case 2:continue;case 3:var _t=eZ(mt,dt),St=Zr(Xb),At=wZ(mt,St,dt),mt=sZ(At[1],_t,At[2],St,0);continue;case 4:var Et=eZ(mt,dt),xt=Zr(Xb),It=yZ(mt,xt,dt),mt=sZ(It[1],Et,It[2],xt,1);continue;case 5:var Ct=eZ(mt,dt),Nt=Zr(Xb),Lt=mt;t:for(;;){bn(dt);var Rt=ln(dt),Ot=92>>0)Ut=pn(dt);else switch(Ot){case 0:Ut=0;break;case 1:Ut=7;break;case 2:Ut=6;break;case 3:kn(dt,6);Ut=0===_Q(ln(dt))?6:pn(dt);break;case 4:if(kn(dt,4),0===IQ(ln(dt))){for(;;)if(kn(dt,3),0!==IQ(ln(dt))){Ut=pn(dt);break}}else Ut=pn(dt);break;case 5:Ut=5;break;default:kn(dt,7);var Pt=ln(dt),Dt=-1>>0)Ut=pn(dt);else switch(Dt){case 0:Ut=2;break;case 1:Ut=1;break;default:kn(dt,1);var Ut=0===_Q(ln(dt))?1:pn(dt);}}if(7>>0)Ft=gr(dU);else switch(Ut){case 0:Ft=[0,aZ(Lt,eZ(Lt,dt),15),mU];break;case 1:Ft=[0,aZ(Lt,eZ(Lt,dt),15),yU];break;case 3:var Mt=IK(dt),Ft=[0,Lt,Jr(Mt,1,ht(Mt)-1|0)];break;case 4:Ft=[0,Lt,wU];break;case 5:for(ee(Nt,91);;){bn(dt);var Xt=ln(dt),Bt=93>>0)jt=pn(dt);else switch(Bt){case 0:jt=0;break;case 1:jt=4;break;case 2:kn(dt,4);var Gt=ln(dt),qt=91>>0)Yt=gr(TU);else switch(jt){case 0:Yt=Lt;break;case 1:ne(Nt,_U);continue;case 2:ee(Nt,92),ee(Nt,93);continue;case 3:ee(Nt,93);var Yt=Lt;break;default:ne(Nt,IK(dt));continue}Lt=Yt;continue t}case 6:Ft=[0,aZ(Lt,eZ(Lt,dt),15),gU];break;default:ne(Nt,IK(dt));continue}var Jt=Ft[1],Ht=UK(Ct,eZ(Jt,dt)),Wt=Ft[2],zt=[0,Jt,[3,[0,Ht,te(Nt),Wt]]];break}break;default:zt=[0,iZ(mt,eZ(mt,dt)),108];}var Vt=nZ(zt);break}}var $t=Vt[1],Kt=ZK($t[2].slice(),$t);t[4]=$t;var Qt=t[2],Zt=[0,[0,Kt,Vt[2]]];S(t[1],Qt)[Qt+1]=Zt,t[2]=t[2]+1|0;}},EZ=function(t,r,e,n){var a=t?t[1]:t,u=r?r[1]:r;try{var i=EK(n),f=0;}catch(r){if((r=lr(r))!==dK)throw r;var c=[0,[0,[0,e,Qd[2],Qd[3]],68],0],i=EK(jW),f=c;}var s=u?u[1]:em,o=QK(e,i,s[5]),v=[0,SZ(o,0)];return[0,[0,f],[0,0],_Z[1],[0,_Z[1]],[0,0],s[6],0,0,0,0,0,0,0,0,0,1,0,0,0,[0,YW],[0,o],v,[0,a],s,e]},xZ=function(t){return Ir(t[20][1])},IZ=function(t){return t[24][5]},CZ=function(t,r){var e=r[2];t[1][1]=[0,[0,r[1],e],t[1][1]];var n=t[19];return n?kr(n[1],t,e):n},NZ=function(t,r){var e=r[2];if(kr(_Z[3],e,t[4][1]))return CZ(t,[0,r[1],[7,e]]);var n=kr(_Z[4],e,t[4][1]);return t[4][1]=n,0},LZ=function(t,r){var e=t?t[1]:0;if(e<2){var n=r[22][1];AZ(n,e);var a=S(n[1],e)[e+1];return a?a[1][2]:gr(HW)}throw[0,Vd,qW]},RZ=function(t,r){var e=r.slice();return e[6]=t,e},OZ=function(t,r){var e=r.slice();return e[18]=t,e},PZ=function(t,r){var e=r.slice();return e[13]=t,e},DZ=function(t,r){var e=r.slice();return e[8]=t,e},UZ=function(t,r){var e=r.slice();return e[11]=t,e},MZ=function(t,r){var e=r.slice();return e[14]=t,e},FZ=function(t,r){var e=r.slice();return e[7]=t,e},XZ=function(t,r){var e=r.slice();return e[12]=t,e},BZ=function(t,r){var e=r.slice();return e[19]=[0,t],e},GZ=function(t){function r(r){return CZ(t,r)}return function(t){return Rr(r,t)}},qZ=function(t){var r=t[5][1];return r?[0,r[1][2]]:r},jZ=function(t){var r=t.slice();return r[19]=0,r},YZ=function(t,r,e){var n=t.slice();return n[3]=_Z[1],n[8]=0,n[9]=0,n[10]=1,n[16]=e,n[17]=r,n},JZ=function(t){return ar(t,GW)?0:1},HZ=function(t){return ar(t,OW)&&ar(t,PW)&&ar(t,DW)&&ar(t,UW)&&ar(t,MW)&&ar(t,FW)&&ar(t,XW)&&ar(t,BW)?0:1},WZ=function(t){return ar(t,LW)&&ar(t,RW)?0:1},zZ=function(t,r){var e=t?t[1]:0;return LZ([0,e],r)[1]},VZ=function(t,r){var e=t?t[1]:0;return LZ([0,e],r)[3]},$Z=function(t,r){var e=t?t[1]:0;return LZ([0,e],r)[2]},KZ=function(t,r){var e=t?t[1]:0;return LZ([0,e],r)[4]},QZ=function(t){var r=qZ(t);if(r)var e=r[1][2][1],n=e<$Z(0,t)[2][1]?1:0;else n=r;return n},ZZ=function(t){var r=zZ(0,t);if("number"==typeof r){var e=r-3|0;if(105>>0){if(!(107<(e+1|0)>>>0))return 1}else{var n=6!==e?1:0;if(!n)return n}}return QZ(t)},t0=function(t,r){var e=t?t[1]:0,n=9===zZ([0,e],r)?1:0;return n?[0,$Z([0,e],r)]:n},r0=function(t,r){var e=t?t[1]:0,n=VZ([0,e],r),a=zZ([0,e],r);if(!HZ(n)&&!WZ(n)&&!JZ(n)){if("number"==typeof a){var u=a-1|0;if(58>>0?65<=u?0:1:27===u?1:0)return 1}return 0}return 1},e0=function(t,r){var e=t?t[1]:0,n=15===zZ([0,e],r)?1:0;if(n)u=n;else var a=64===zZ([0,e],r)?1:0,u=a?15===zZ([0,e+1|0],r)?1:0:a;return u},n0=function(t,r){var e=t?t[1]:0,n=zZ([0,e],r);return"number"==typeof n&&(14===n?1:40===n?1:0)?1:0},a0=function(t,r){return CZ(t,[0,$Z(0,t),r])},u0=function(t){var r=t[1];if("number"==typeof r)switch(r){case 0:return 2;case 109:return 4}else switch(r[0]){case 0:return 0;case 1:case 4:return 1}var e=t[2];return JZ(e)?3:HZ(e)?41:[1,e]},i0=function(t){var r=KZ(0,t);br(GZ(t),r);var e=VZ(0,t);return a0(t,u0([0,zZ(0,t),e]))},f0=function(t){function r(r){return CZ(t,[0,r[1],58])}return function(t){return Rr(r,t)}},c0=function(t,r){var e=t[6];return e?a0(t,r):e},s0=function(t,r){var e=t[6];return e?CZ(t,[0,r[1],r[2]]):e},o0=function(t){var r=t[23][1];if(r){var e=$Z(0,t),n=zZ(0,t),a=VZ(0,t),u=[0,e,n,xZ(t),a];br(r[1],u);}var i=t[22][1];AZ(i,0);var f=S(i[1],0)[1],c=f?f[1][1]:gr(JW);t[21][1]=c;var s=KZ(0,t);br(GZ(t),s),Rr(function(r){return t[2][1]=[0,r,t[2][1]],0},LZ([0,0],t)[5]);var o=[0,LZ(0,t)];t[5][1]=o;var v=t[22][1];AZ(v,0),1>>0?kr(x,r,br(v,r)):kr(I,r,br(t[14],r)[1])}function e(t,r,e){var n=br(N,t);k0(t,81);var a=br(v,t);return[0,UK(r,a[1]),[0,n,a,e]]}function a(t,r,n,a){var u=e(t,r,kr(M,0,t)),i=[0,u[1],[1,u[2]]];return[0,[0,i[1],[0,a,[0,i],0,n,1,0]]]}function u(t,r,e,n,a){1-IZ(t)&&a0(t,8);var u=p0(t,80);k0(t,81);var i=br(v,t);return[0,[0,UK(r,i[1]),[0,a,[0,i],u,e,0,n]]]}function i(t,r){var e=zZ(0,r);if("number"==typeof e&&!(11<=e))switch(e){case 2:if(!t)return 0;break;case 4:if(t)return 0;break;case 9:case 10:return o0(r)}return i0(r)}function f(t,r){return r?CZ(t,[0,r[1][1],5]):r}function c(r){var e=MZ(0,r),n=zZ(0,e);if("number"==typeof n&&66===n){var a=$Z(0,e);if(k0(e,66),5===zZ(0,e)){k0(e,5),v0(e,0);var u=br(t[8],e);l0(e);var i=$Z(0,e);k0(e,6);f=[0,UK(a,i),[0,u]];}else var f=[0,a,0];return[0,f]}return 0}function s(t){var r=zZ(0,t),e=zZ(VW,t);return"number"==typeof r&&81===r?"number"==typeof e&&66===e?(k0(t,81),[0,0,c(t)]):[0,br(q,t),c(t)]:$W}function o(t,r){var e=RZ(1,r);v0(e,1);var n=br(t,e);return l0(e),n}var v=function t(r){return t.fun(r)},l=function t(r){return t.fun(r)},b=function t(r){return t.fun(r)},k=function t(r){return t.fun(r)},p=function t(r){return t.fun(r)},h=function t(r,e){return t.fun(r,e)},d=function t(r){return t.fun(r)},m=function t(r,e){return t.fun(r,e)},y=function t(r){return t.fun(r)},w=function t(r,e){return t.fun(r,e)},g=function t(r){return t.fun(r)},T=function t(r){return t.fun(r)},_=function t(r,e){return t.fun(r,e)},S=function t(r){return t.fun(r)},A=function t(r){return t.fun(r)},E=function t(r){return t.fun(r)},x=function t(r,e){return t.fun(r,e)},I=function t(r,e){return t.fun(r,e)},C=function t(r){return t.fun(r)},N=function t(r){return t.fun(r)},L=function t(r){return t.fun(r)},R=function t(r){return t.fun(r)},O=function t(r){return t.fun(r)},P=function t(r){return t.fun(r)},D=function t(r,e,n,a){return t.fun(r,e,n,a)},U=function t(r,e,n,a){return t.fun(r,e,n,a)},M=function t(r,e){return t.fun(r,e)},F=function t(r){return t.fun(r)},X=function t(r){return t.fun(r)},B=function t(r,e){return t.fun(r,e)},G=function t(r,e){return t.fun(r,e)},q=function t(r){return t.fun(r)};n(v,function(t){return br(p,t)}),n(l,function(t){1-IZ(t)&&a0(t,8);var r=$Z(0,t);k0(t,81);var e=br(v,t),n=qZ(t);if(n)return[0,UK(r,n[1]),e];throw[0,Vd,yz]}),n(b,function(t){var r=$Z(0,t),e=zZ(0,t);if("number"==typeof e){if(98===e)return o0(t),[0,[0,r,0]];if(99===e)return o0(t),[0,[0,r,1]]}return 0}),n(k,function(t){if(t){var r=t[1][1],e=Nr(t);if(e)return[0,UK(e[1][1],r),e];throw[0,Vd,mz]}throw[0,Vd,dz]}),n(p,function(t){return p0(t,84),kr(h,t,br(d,t))}),n(h,function(t,r){if(84===zZ(0,t))for(i=[0,r,0];;){var e=zZ(0,t);if("number"!=typeof e||84!==e){var n=br(k,i),a=n[2];if(a){var u=a[2];if(u)return[0,n[1],[5,a[1],u[1],u[2]]]}throw[0,Vd,hz]}k0(t,84);var i=[0,br(d,t),i];}return r}),n(d,function(t){return p0(t,86),kr(m,t,br(y,t))}),n(m,function(t,r){if(86===zZ(0,t))for(i=[0,r,0];;){var e=zZ(0,t);if("number"!=typeof e||86!==e){var n=br(k,i),a=n[2];if(a){var u=a[2];if(u)return[0,n[1],[6,a[1],u[1],u[2]]]}throw[0,Vd,pz]}k0(t,86);var i=[0,br(y,t),i];}return r}),n(y,function(t){return kr(w,t,br(g,t))}),n(w,function(t,r){var e=zZ(0,t);if("number"==typeof e&&12===e&&!t[14]){var n=kr(x,t,r);return hr(D,t,n[1],0,[0,[0,n,0],0])}return r}),n(g,function(t){var r=zZ(0,t);if("number"==typeof r&&80===r){var e=$Z(0,t);k0(t,80);var n=br(g,t);return[0,UK(e,n[1]),[0,n]]}return br(T,t)}),n(T,function(t){return kr(_,t,br(S,t))}),n(_,function(t,r){if(!QZ(t)&&p0(t,7)){var e=$Z(0,t);return k0(t,8),kr(_,t,[0,UK(r[1],e),[3,r]])}return r}),n(S,function(t){var r=$Z(0,t),e=zZ(0,t);if("number"==typeof e)switch(e){case 0:var n=br(X,t);return[0,n[1],[4,n[2]]];case 5:return br(O,t);case 7:return br(E,t);case 46:var a=$Z(0,t);k0(t,46);var u=br(S,t);return[0,UK(a,u[1]),[7,u]];case 93:return br(P,t);case 101:return k0(t,nu),[0,r,8];case 1:case 3:var i=hr(U,0,1,1,t);return[0,i[1],[2,i[2]]];case 30:case 31:var f=VZ(0,t);return k0(t,e),[0,r,[11,[0,31===e?1:0,f]]]}else switch(e[0]){case 1:var c=e[1],s=c[4],o=c[3],v=c[2],l=c[1];return s&&c0(t,33),k0(t,[1,[0,l,v,o,s]]),[0,l,[9,[0,v,o]]];case 5:var b=e[2],k=e[1],p=VZ(0,t);return k0(t,[5,k,b]),1===k&&c0(t,33),[0,r,[10,[0,b,p]]]}var h=br(A,e);return h?(k0(t,e),[0,r,h[1]]):(i0(t),[0,r,0])}),n(A,function(t){if("number"==typeof t){if(29===t)return kz;if(111<=t)switch(t-111|0){case 0:return fz;case 1:return cz;case 2:return sz;case 3:return oz;case 4:return vz;case 5:return lz;default:return bz}}return 0}),n(E,function(t){var r=$Z(0,t);k0(t,7);for(i=0;;){var e=zZ(0,t);if("number"==typeof e&&(8===e?1:ja===e?1:0)){var n=Nr(i),a=$Z(0,t);return k0(t,8),[0,UK(r,a),[8,n]]}var u=[0,br(v,t),i];8!==zZ(0,t)&&k0(t,10);var i=u;}}),n(x,function(t,r){return[0,r[1],[0,0,r,0]]}),n(I,function(t,r){1-IZ(t)&&a0(t,8);var e=p0(t,80);k0(t,81);var n=br(v,t);return[0,UK(r[1],n[1]),[0,[0,r],n,e]]}),n(C,function(t){return function(e){for(o=e;;){var n=zZ(0,t);if("number"==typeof n){var a=n-6|0;if(7>>0?$u===a?1:0:5<(a-1|0)>>>0?1:0){var u=13===n?1:0;if(u){var i=$Z(0,t);k0(t,13);var f=r(t),c=[0,[0,UK(i,f[1]),[0,f]]];}else c=u;return[0,Nr(o),c]}}var s=[0,r(t),o];6!==zZ(0,t)&&k0(t,10);var o=s;}}}),n(N,function(t){k0(t,5);var r=kr(C,t,0);return k0(t,6),r}),n(L,function(t){k0(t,5);var r=MZ(0,t),e=zZ(0,r);if("number"==typeof e)if(13<=e){if(ja===e)a=1;else if(14<=e)var n=0,a=0;else a=1;if(a)var u=[0,kr(C,r,0)],n=1;}else if(6===e)var u=nz,n=1;else if(0===e)var u=br(R,r),n=1;else n=0;else n=0;if(!n){if(br(A,e)){var i=zZ(az,r);if("number"==typeof i)if(1<(i+Fa|0)>>>0)c=0;else var f=[0,kr(C,r,0)],c=1;else c=0;if(!c)f=[1,br(v,r)];s=f;}else var s=[1,br(v,r)];u=s;}if(0===u[0])h=u;else{var o=u[1];if(t[14])p=u;else{var l=zZ(0,t);if("number"==typeof l)if(6===l)if(12===zZ(uz,t))var b=[0,kr(C,t,[0,kr(x,t,o),0])],k=1;else var b=[1,o],k=1;else if(10===l){k0(t,10);var b=[0,kr(C,t,[0,kr(x,t,o),0])],k=1;}else k=0;else k=0;if(!k)b=u;var p=b;}var h=p;}return k0(t,6),h}),n(R,function(r){var e=kr(t[13],0,r),n=zZ(0,r);if("number"==typeof n&&!(1<(n+Fa|0)>>>0)){var a=kr(I,r,e);return p0(r,10),[0,kr(C,r,[0,a,0])]}return[1,kr(h,r,kr(m,r,kr(w,r,kr(_,r,kr(G,r,e)))))]}),n(O,function(t){var r=$Z(0,t),e=br(L,t);return 0===e[0]?hr(D,t,r,0,e[1]):e[1]}),n(P,function(t){var r=$Z(0,t),e=kr(M,0,t);return hr(D,t,r,e,br(N,t))}),n(D,function(t,r,e,n){k0(t,12);var a=br(v,t);return[0,UK(r,a[1]),[1,[0,n,a,e]]]}),n(U,function(r,n,c,s){var o=n?3===zZ(0,s)?1:0:n,l=$Z(0,s);k0(s,o?3:1);for(vt=0;;){if(r&&c)throw[0,Vd,KW];var k=$Z(0,s),p=r?p0(s,42):r,h=br(b,s),d=zZ(0,s);if("number"==typeof d){if(93===d)w=1;else{if(ja===d)var m=Nr(vt),y=1;else if(14<=d)var w=0,y=0;else switch(d){case 2:if(o)var w=0,y=0;else var m=Nr(vt),y=1;break;case 4:if(o)var m=Nr(vt),y=1;else var w=0,y=0;break;case 7:k0(s,7);var g=81===zZ(ez,s)?1:0;if(g){var T=br(t[14],s);k0(s,81);_=[0,T[1]];}else var _=g;var S=br(v,s);k0(s,8),k0(s,81);var A=br(v,s),E=[2,[0,UK(k,A[1]),[0,_,S,A,p,h]]];i(o,s);vt=[0,E,vt];continue;case 13:if(c){f(s,h),o0(s);var x=br(v,s),I=[1,[0,UK(k,x[1]),[0,x]]];i(o,s);vt=[0,I,vt];continue}var w=0,y=0;break;case 5:var w=1,y=0;break;default:var w=0,y=0;}if(y){var C=$Z(0,s);return k0(s,o?4:2),[0,UK(l,C),[0,o,m]]}}if(w){f(s,h);var N=kr(M,0,s),L=e(s,$Z(0,s),N),R=[3,[0,UK(k,L[1]),[0,L,p]]];i(o,s);vt=[0,R,vt];continue}}if(0===p)B=0;else if(h)B=0;else if("number"==typeof d)if(81===d){s0(s,[0,k,41]);var O=[1,[0,k,QW]],P=zZ(0,s);if("number"==typeof P){if(5===P)U=1;else if(93===P)U=1;else var D=0,U=0;if(U){f(s,h);var F=a(s,k,0,O),D=1;}}else D=0;if(!D)F=u(s,k,0,h,O);var X=F,B=1;}else B=0;else B=0;if(!B){var G=function(r){v0(r,0);var e=br(t[21],r);return l0(r),e},q=G(s)[2];if(1===q[0]){var j=q[1][2];if(ar(j,ZW))if(ar(j,tz))var Y=0,J=0;else J=1;else J=1;if(J){var H=zZ(0,s);if("number"==typeof H){var W=H-6|0;if(86>>0)if(88<(W+1|0)>>>0)var z=0,V=0;else{f(s,h);var $=a(s,k,p,q),V=1;}else if(1<(W-74|0)>>>0)var z=0,V=0;else var $=u(s,k,p,h,q),V=1;if(V)var K=$,z=1;}else z=0;if(!z){var Q=G(s),Z=rr(j,rz);f(s,h);var tt=e(s,k,0),rt=tt[2][1],et=Q[1];if(0===Z){var nt=rt[1];rt[2]?CZ(s,[0,et,64]):(nt?nt[2]?0:1:0)||CZ(s,[0,et,64]);}else(rt[1]?0:rt[2]?0:1)||CZ(s,[0,et,63]);var at=Z?[1,tt]:[2,tt],ut=[0,Q[2],at,0,p,0,0],K=[0,[0,UK(k,tt[1]),ut]];}var it=K,Y=1;}}else Y=0;if(!Y){var ft=zZ(0,s);if("number"==typeof ft){if(5===ft)st=1;else if(93===ft)st=1;else var ct=0,st=0;if(st){f(s,h);var ot=a(s,k,p,q),ct=1;}}else ct=0;if(!ct)ot=u(s,k,p,h,q);it=ot;}X=it;}i(o,s);var vt=[0,X,vt];}}),n(M,function(r,e){var n=$Z(0,e),a=93===zZ(0,e)?1:0;if(a){1-IZ(e)&&a0(e,8),k0(e,93);for(var u=0,i=0;;){var f=br(b,e),c=pr(t[15],e,0,30),s=c[2],o=c[1],l=zZ(0,e);if(0===r)var k=0,p=0;else{if("number"==typeof l)if(79===l){o0(e);var k=[0,br(v,e)],p=1,h=1;}else h=0;else h=0;if(!h){u&&CZ(e,[0,o,59]);var k=0,p=u;}}var d=[0,[0,o,[0,s[1][2],s[2],f,k]],i],m=zZ(0,e);if("number"==typeof m){if(94===m)w=1;else if(ja===m)w=1;else var y=0,w=0;if(w)var g=Nr(d),y=1;}else y=0;if(!y){if(k0(e,10),94!==zZ(0,e)){var u=p,i=d;continue}g=Nr(d);}var T=UK(n,$Z(0,e));k0(e,94);_=[0,[0,T,[0,g]]];break}}else var _=a;return _}),n(F,function(t){var r=$Z(0,t),e=93===zZ(0,t)?1:0;if(e){k0(t,93);for(o=0;;){var n=zZ(0,t);if("number"==typeof n){if(94===n)u=1;else if(ja===n)u=1;else var a=0,u=0;if(u){var i=Nr(o),f=UK(r,$Z(0,t));k0(t,94);var c=[0,[0,f,[0,i]]],a=1;}}else a=0;if(a)break;var s=[0,br(v,t),o];94!==zZ(0,t)&&k0(t,10);var o=s;}}else c=e;return c}),n(X,function(r){return kr(B,r,kr(t[13],0,r))}),n(B,function(r,e){for(c=[0,e[1],[0,e]];;){var n=c[2],a=c[1];if(11!==zZ(0,r)){var u=br(F,r);return[0,u?UK(a,u[1][1]):a,[0,n,u]]}k0(r,11);var i=kr(t[13],0,r),f=UK(a,i[1]),c=[0,f,[1,[0,f,[0,n,i]]]];}}),n(G,function(t,r){var e=kr(B,t,r);return[0,e[1],[4,e[2]]]}),n(q,function(t){var r=zZ(0,t);return"number"==typeof r&&81===r?[0,br(l,t)]:0});var j=br(M,1),Y=br(M,0);return[0,function(t){return o(v,t)},function(t){return o(Y,t)},function(t){return o(j,t)},function(t){return o(F,t)},function(t){return o(X,t)},function(t,r){return o(pr(U,t,0,0),r)},function(t){return o(N,t)},function(t){return o(l,t)},function(t){return o(q,t)},function(t){return o(c,t)},function(t){return o(s,t)}]},A0=$r([0,K$]),E0=function(t){function r(r){v0(r,0);var e=$Z(0,r);k0(r,1),k0(r,13);var n=br(t[9],r),a=$Z(0,r);return k0(r,2),l0(r),[0,UK(e,a),[0,n]]}function e(r){v0(r,0);var e=$Z(0,r);if(k0(r,1),2===zZ(0,r))var n=$Z(0,r)[2],a=[1,[0,e[1],e[3],n]];else a=[0,br(t[7],r)];var u=$Z(0,r);return k0(r,2),l0(r),[0,UK(e,u),[0,a]]}function a(t){var r=$Z(0,t),e=VZ(0,t);return k0(t,Qv),[0,r,[0,e]]}function u(t){var r=a(t),e=zZ(0,t);if("number"==typeof e){if(11===e){k0(t,11);for(var n=a(t),u=[0,UK(r[1],n[1]),[0,[0,r],n]];;){var i=zZ(0,t);if("number"!=typeof i||11!==i)return[2,u];k0(t,11);var f=a(t),u=[0,UK(u[1],f[1]),[0,[1,u],f]];}}if(81===e){k0(t,81);var c=a(t);return[1,[0,UK(r[1],c[1]),[0,r,c]]]}}return[0,r]}function i(t){var r=$Z(0,t),n=a(t);if(81===zZ(0,t)){k0(t,81);var u=a(t),i=UK(n[1],u[1]),f=i,c=[1,[0,i,[0,n,u]]];}else var f=n[1],c=[0,n];if(79===zZ(0,t)){k0(t,79);var s=zZ(0,t);if("number"==typeof s)if(1===s){var o=e(t),v=o[2],l=o[1];0!==v[1][0]&&CZ(t,[0,l,42]);var b=[0,l,[0,[1,l,v]]],k=0;}else k=1;else if(4===s[0]){var p=s[1],h=p[1];k0(t,s);var b=[0,h,[0,[0,h,[0,[0,p[2]],p[3]]]]],k=0;}else k=1;if(k){a0(t,43);var d=$Z(0,t),m=d,y=[0,[0,d,[0,OV,RV]]];}else var m=b[1],y=b[2];}else var m=f,y=0;return[0,UK(r,m),[0,c,y]]}function f(t,e){for(var n=0,a=u(t);;){var f=zZ(0,t);if("number"==typeof f){if(95<=f)c=vb===f?1:ja===f?1:0;else{if(1===f){n=[0,[1,r(t)],n];continue}var c=94<=f?1:0;}if(c){var s=Nr(n),o=vb===zZ(0,t)?1:0;o&&k0(t,vb);var v=$Z(0,t);return k0(t,94),l0(t),[0,UK(e,v),[0,a,o,s]]}}n=[0,[0,i(t)],n];}}function c(t,r){k0(t,vb);var e=u(t),n=$Z(0,t);k0(t,94);var a=t[20][1];if(a){var i=a[2];if(i)var f=i[2],c=1;else c=0;}else c=0;if(!c)f=gr(CW);t[20][1]=f;var s=xZ(t),o=SZ(t[21][1],s);return t[22][1]=o,[0,UK(r,n),[0,e]]}function s(t){switch(t[0]){case 0:return t[1][2][1];case 1:var r=t[1][2],e=Ar(NV,r[2][2][1]);return Ar(r[1][2][1],e);default:var n=t[1][2],a=n[1];return Ar(0===a[0]?a[1][2][1]:s([2,a[1]]),Ar(LV,n[2][2][1]))}}var o=function t(r){return t.fun(r)},v=function t(r,e){return t.fun(r,e)},l=function t(r){return t.fun(r)};return n(o,function(t){var r=zZ(0,t);if("number"==typeof r){if(1===r){var n=e(t);return[0,n[1],[1,n[2]]]}}else if(4===r[0]){var a=r[1];return k0(t,r),[0,a[1],[2,[0,a[2],a[3]]]]}var u=br(l,t);return[0,u[1],[0,u[2]]]}),n(v,function(t,r){var e=f(t,r);if(e[2][2])var n=0,a=0;else{v0(t,3);for(d=0;;){var u=zZ(0,t);if("number"==typeof u){if(93===u){v0(t,2);var i=$Z(0,t);k0(t,93);var l=zZ(0,t);if("number"==typeof l){if(vb===l)k=1;else if(ja===l)k=1;else var b=0,k=0;if(k)var p=[0,c(t,i)],b=1;}else b=0;if(!b)p=[1,kr(v,t,i)];if(0!==p[0]){var h=p[1],d=[0,[0,h[1],[0,h[2]]],d];continue}var m=[0,p[1]],y=[0,Nr(d),m],w=1;}else if(ja===u){i0(t);var y=[0,Nr(d),0],w=1;}else var g=0,w=0;if(w)var n=y[1],a=y[2],g=1;}else g=0;if(g)break;d=[0,br(o,t),d];}}if(a){var T=a[1],_=s(e[2][1]);ar(s(T[2][1]),_)&&a0(t,[6,_]);S=T[1];}else var S=e[1];return[0,UK(e[1],S),[0,e,a,n]]}),n(l,function(t){var r=$Z(0,t);return v0(t,2),k0(t,93),kr(v,t,r)}),[0,r,e,a,u,i,f,c,o,v,l]},x0=$r([0,K$]),I0=$r([0,function(t,r){var e=r[1],n=t[1],a=e[1],u=n[1];if(u)if(a){var i=a[1],f=u[1],c=XK(i),s=XK(f)-c|0;if(0===s)var o=MK(i),v=I(MK(f),o);else v=s;}else v=-1;else v=a?1:0;if(0===v)var l=FK(n[2],e[2]),b=0===l?FK(n[3],e[3]):l;else b=v;return 0===b?N(t[2],r[2]):b}]),C0=kr(hK,Y$,j$),N0=S0(C0),L0=function(t){function r(t,r){for(i=r;;){var u=i[2];switch(u[0]){case 0:return Or(e,t,u[1][1]);case 1:return Or(n,t,u[1][1]);case 2:var i=u[1][1];continue;case 3:var f=u[1][1],c=f[2],s=t[2],o=t[1];kr(A0[3],c,s)&&CZ(o,[0,f[1],31]);var v=a([0,o,s],f),l=kr(A0[4],c,v[2]);return[0,v[1],l];default:return CZ(t[1],[0,i[1],20]),t}}}function e(t,e){if(0===e[0]){var n=e[1][2],u=n[1];return r(1===u[0]?a(t,u[1]):t,n[2])}return r(t,e[1][2][1])}function n(t,e){if(e){var n=e[1];return 0===n[0]?r(t,n[1]):r(t,n[1][2][1])}return t}function a(t,r){var e=r[2],n=r[1],a=t[1];return WZ(e)&&s0(a,[0,n,30]),(JZ(e)||HZ(e))&&s0(a,[0,n,41]),[0,a,t[2]]}function u(t,e,n,a,u){var i=e||1-n;if(i){var f=u[2],c=e?RZ(1-t[6],t):t;if(a){var s=a[1],o=s[2],v=s[1];WZ(o)&&s0(c,[0,v,32]),(JZ(o)||HZ(o))&&s0(c,[0,v,41]);}var l=Or(r,[0,c,A0[1]],u[1]),b=f?(r(l,f[1][2][1]),0):f;}else b=i;return b}function i(t){k0(t,5);for(v=0;;){var r=zZ(0,t);if("number"==typeof r){var e=r-6|0;if(7>>0?$u===e?1:0:5<(e-1|0)>>>0?1:0){var n=13===r?1:0;if(n){var a=$Z(0,t);k0(t,13);var u=kr(C0[19],t,30),i=[0,[0,UK(a,u[1]),[0,u]]];}else i=n;6!==zZ(0,t)&&a0(t,49);var f=[0,Nr(v),i];return k0(t,6),f}}var c=kr(C0[19],t,30);if(79===zZ(0,t)){k0(t,79);var s=br(C0[9],t),o=[0,UK(c[1],s[1]),[2,[0,c,s]]];}else o=c;6!==zZ(0,t)&&k0(t,10);var v=[0,o,v];}}function f(t,r,e){var n=YZ(t,r,e),a=br(C0[17],n),u=a[1];return[0,u,[0,[0,u,a[2]]],a[3]]}function c(t){return p0(t,nu)}function s(t){return p0(t,64)}function o(t){var r=0===t[2]?1:0;if(r)for(a=t[1];;){if(a){var e=a[2],n=3===a[1][2][0]?1:0;if(n){var a=e;continue}return n}return 1}return r}function v(t){for(var r=0,e=0;;){var n=_0(function(t){var r=kr(C0[19],t,29);if(79===zZ(0,t)){k0(t,79);var e=[0,br(C0[9],t)],n=0;}else if(3===r[2][0])var e=nm[1],n=nm[2];else var e=0,n=[0,[0,r[1],45],0];return[0,[0,r,e],n]},t),a=n[2],u=[0,[0,n[1],a[1]],r],i=Er(a[2],e);if(10!==zZ(0,t)){var f=Nr(i);return[0,Nr(u),f]}k0(t,10);var r=u,e=i;}}function l(t,r,e){k0(e,t);var n=v(e);return[0,[0,n[1],r],n[2]]}function b(t){return l(d,h,t)}function k(t){var r=l(27,2,PZ(1,t)),e=r[1],n=e[1];return[0,e,Nr(Or(function(t,r){return r[2][2]?t:[0,[0,r[1],44],t]},r[2],n))]}function p(t){return l(28,1,PZ(1,t))}var h=0,d=24;return[0,s,c,function(t,r,e){var n=$Z(0,t),a=zZ(0,t);if("number"==typeof a)if(98===a){o0(t);var u=[0,[0,n,0]],i=1;}else if(99===a){o0(t);var u=[0,[0,n,1]],i=1;}else i=0;else i=0;i||(u=0);return u&&!(r?0:e?0:1)?(CZ(t,[0,u[1][1],5]),0):u},i,f,o,u,function(t,r,e){var n=t.slice();n[10]=1;var a=zZ(0,n);if("number"==typeof a&&1===a){var u=f(n,r,e);return[0,u[2],u[3]]}var i=YZ(n,r,e);return[0,[1,br(C0[9],i)],i[6]]},function(t){var r=_0(function(t){var r=zZ(0,t);if("number"==typeof r){var e=r+pl|0;if(4>>0)u=0;else{switch(e){case 0:var n=b(t),a=1;break;case 3:var n=k(t),a=1;break;case 4:var n=p(t),a=1;break;default:var u=0,a=0;}if(a)var i=n,u=1;}}else u=0;if(!u){i0(t);i=b(t);}return[0,[31,i[1]],i[2]]},t),e=r[2];return[0,[0,r[1],e[1]],e[2]]},v,p,k,b,function(r){var e=$Z(0,r),n=s(r);k0(r,15);var a=c(r),v=r[7],l=zZ(0,r);if(0===v)p=0;else if("number"==typeof l)if(5===l)var b=0,k=0,p=1;else if(93===l)var h=br(t[2],r),d=5===zZ(0,r)?0:[0,kr(C0[13],wz,r)],b=h,k=d,p=1;else p=0;else p=0;if(!p)var m=[0,kr(C0[13],gz,r)],b=br(t[2],r),k=m;var y=i(r),w=br(t[11],r),g=f(r,n,a),T=g[2],_=o(y);u(r,g[3],_,k,y);var S=0===T[0]?[0,T[1][1],0]:[0,T[1][1],1],A=[20,[0,k,y,T,n,a,w[2],S[2],w[1],b]];return[0,UK(e,S[1]),A]}]}(N0),R0=function(t){function r(t){var r=br(k,t),e=br(b,t);if(e){1-br(l,r)&&CZ(t,[0,r[1],16]);var n=r[2],a=("number"==typeof n||10===n[0]&&WZ(n[1][2])&&s0(t,[0,r[1],38]),kr(C0[20],t,r)),u=br(s,t);return[0,UK(a[1],u[1]),[2,[0,e[1],a,u]]]}return r}function e(t,r){throw d0}function a(t){var n=BZ(e,t),a=r(n),u=zZ(0,n);if("number"==typeof u){if(12===u)throw d0;if(81===u){var i=n[5][1];if(R(i?[0,i[1][1]]:i,IV))throw d0}}if(r0(0,n)){var f=a[2];if("number"!=typeof f&&10===f[0]&&!ar(f[1][2],CV)&&!QZ(n))throw d0;return a}return a}function u(t,r,e,n){return[0,n,[14,[0,e,t,r]]]}function i(t,r,e){for(var n=r,a=e;;){var i=zZ(0,t);if("number"!=typeof i||83!==i)return[0,a,n];k0(t,83);var f=_0(h,t),c=UK(a,f[1]),n=u(n,f[2],1,c),a=c;}}function f(t,r,e,n){return[0,n,[3,[0,e,t,r]]]}function c(t,r){if("number"==typeof r){var e=r-30|0;if(16>>0?19===e?1:0:14<(e-1|0)>>>0?1:0)return 0}throw d0}var s=function t(r){return t.fun(r)},o=function t(r){return t.fun(r)},v=function t(r){return t.fun(r)},l=function t(r){return t.fun(r)},b=function t(r){return t.fun(r)},k=function t(r){return t.fun(r)},p=function t(r){return t.fun(r)},h=function t(r){return t.fun(r)},d=function t(r){return t.fun(r)},m=function t(r){return t.fun(r)},y=function t(r){return t.fun(r)},w=function t(r){return t.fun(r)},g=function t(r,e){return t.fun(r,e)},T=function t(r,e,n){return t.fun(r,e,n)},_=function t(r){return t.fun(r)},S=function t(r){return t.fun(r)},A=function t(r,e,n){return t.fun(r,e,n)},E=function t(r){return t.fun(r)},x=function t(r,e){return t.fun(r,e)},I=function t(r){return t.fun(r)},C=function t(r){return t.fun(r)},N=function t(r,e){return t.fun(r,e)},L=function t(r,e,n,a){return t.fun(r,e,n,a)},O=function t(r){return t.fun(r)},P=function t(r){return t.fun(r)},D=function t(r){return t.fun(r)},U=function t(r){return t.fun(r)},M=function t(r,e){return t.fun(r,e)},F=function t(r){return t.fun(r)};return n(s,function(t){var e=zZ(0,t),n=r0(0,t);if("number"==typeof e){var u=e-6|0;if(86>>0)i=88<(u+1|0)>>>0?0:1;else if(52===u){if(t[16])return br(o,t);i=0;}else i=0;}else var i=0;if(!i&&0===n)return r(t);var f=T0(t,a);if(f)return f[1];var c=T0(t,U);return c?c[1]:r(t)}),n(o,function(t){return _0(function(t){k0(t,58),1-t[16]&&a0(t,26);var r=p0(t,nu),e=1-((9===zZ(0,t)?1:0)||ZZ(t)),n=r||e;return[25,[0,n?[0,br(s,t)]:n,r]]},t)}),n(v,function(t){var r=t[2];if("number"!=typeof r)switch(r[0]){case 10:case 15:case 16:return 1}return 0}),n(l,function(t){var r=t[2];if("number"!=typeof r)switch(r[0]){case 0:case 10:case 15:case 16:case 18:return 1}return 0}),n(b,function(t){var r=zZ(0,t);if("number"==typeof r){var e=r+-67|0;if(12>>0)u=0;else{switch(e){case 0:n=pV;break;case 1:n=hV;break;case 2:n=dV;break;case 3:n=mV;break;case 4:n=yV;break;case 5:n=wV;break;case 6:n=gV;break;case 7:n=TV;break;case 8:n=_V;break;case 9:n=SV;break;case 10:n=AV;break;case 11:n=EV;break;default:var n=xV;}var a=n,u=1;}}else u=0;if(!u)a=0;return 0!==a&&o0(t),a}),n(k,function(t){var r=$Z(0,t),e=br(p,t);if(80===zZ(0,t)){k0(t,80);var n=br(s,UZ(0,t));k0(t,81);var a=_0(s,t);return[0,UK(r,a[1]),[7,[0,e,n,a[2]]]]}return e}),n(p,function(t){for(var r=_0(h,t),e=i(t,r[2],r[1]),n=e[2],a=e[1];;){var f=zZ(0,t);if("number"!=typeof f||82!==f)return n;k0(t,82);var c=_0(h,t),s=i(t,c[2],c[1]),o=UK(a,s[1]),n=u(n,s[2],0,o),a=o;}}),n(h,function(t){N=0;t:for(;;){var r=$Z(0,t),e=0!==br(d,t)?1:0,n=br(m,UZ(0,t)),a=qZ(t),u=a?a[1]:n[1],i=UK(r,u);if(93===zZ(0,t)){var c=n[2];"number"==typeof c||12===c[0]&&a0(t,48);}var s=zZ(0,t);if("number"==typeof s){var o=s+hb|0;if(1>>0)if(67<=o)switch(o+-67|0){case 0:var v=Wz,l=1;break;case 1:var v=zz,l=1;break;case 2:var v=Vz,l=1;break;case 3:var v=$z,l=1;break;case 4:var v=Kz,l=1;break;case 5:var v=Qz,l=1;break;case 6:var v=Zz,l=1;break;case 7:var v=tV,l=1;break;case 8:var v=rV,l=1;break;case 9:var v=eV,l=1;break;case 10:var v=nV,l=1;break;case 11:var v=aV,l=1;break;case 12:var v=uV,l=1;break;case 13:var v=iV,l=1;break;case 14:var v=fV,l=1;break;case 15:var v=cV,l=1;break;case 16:var v=sV,l=1;break;case 17:var v=oV,l=1;break;case 18:var v=vV,l=1;break;case 19:var v=lV,l=1;break;default:var b=0,l=0;}else var b=0,l=0;else if(0===o)if(t[11])var v=0,l=1;else var v=kV,l=1;else var v=bV,l=1;if(l)var k=v,b=1;}else b=0;if(!b)k=0;if(0!==k&&o0(t),k){var p=k[1],h=p[1];(e?14===h?1:0:e)&&CZ(t,[0,i,17]);for(var y=n,w=[0,h,p[2]],g=i,T=N;;){var _=w[2],S=w[1];if(T){var A=T[1],E=A[2],x=E[2],I=0===x[0]?x[1]:x[1]-1|0;if(_[1]<=I){var C=UK(A[3],g),y=f(A[1],y,E[1],C),w=[0,S,_],g=C,T=T[2];continue}}var N=[0,[0,y,[0,S,_],g],T];continue t}}for(var L=n,R=i,O=N;;){if(!O)return L;var P=O[1],D=UK(P[3],R),U=O[2],L=f(P[1],L,P[2][1],D),R=D,O=U;}}}),n(d,function(t){var r=zZ(0,t);if("number"==typeof r)if(48<=r){if(98<=r){if(!(106<=r))switch(r-98|0){case 0:return Xz;case 1:return Bz;case 6:return Gz;case 7:return qz}}else if(65===r&&t[17])return jz}else if(45<=r)switch(r+-45|0){case 0:return Yz;case 1:return Jz;default:return Hz}return 0}),n(m,function(t){var r=$Z(0,t),e=br(d,t);if(e){var n=e[1];o0(t);var a=_0(m,t),u=a[2],i=UK(r,a[1]);if(6===n){var f=u[2];"number"==typeof f||10===f[0]&&s0(t,[0,i,34]);}else;return[0,i,[23,[0,n,1,u]]]}var c=zZ(0,t);if("number"==typeof c)if(106===c)var s=Fz,o=1;else if(107===c)var s=Mz,o=1;else o=0;else o=0;if(!o)s=0;if(s){o0(t);var l=_0(m,t),b=l[2];1-br(v,b)&&CZ(t,[0,b[1],16]);var k=b[2],p=("number"==typeof k||10===k[0]&&WZ(k[1][2])&&c0(t,40),[24,[0,s[1],b,1]]);return[0,UK(r,l[1]),p]}return br(y,t)}),n(y,function(t){var r=br(w,t);if(QZ(t))return r;var e=zZ(0,t);if("number"==typeof e)if(106===e)var n=Uz,a=1;else if(107===e)var n=Dz,a=1;else a=0;else a=0;if(!a)n=0;if(n){1-br(v,r)&&CZ(t,[0,r[1],16]);var u=r[2],i=("number"==typeof u||10===u[0]&&WZ(u[1][2])&&c0(t,39),$Z(0,t));o0(t);var f=[24,[0,n[1],r,0]];return[0,UK(r[1],i),f]}return r}),n(w,function(t){var r=$Z(0,t),e=t.slice(),n=1-t[15];e[15]=0;var a=zZ(0,e);if("number"==typeof a)if(44===a)if(n)var u=br(_,e),i=1;else i=0;else if(50===a)var u=kr(g,e,r),i=1;else i=0;else i=0;if(!i)u=e0(0,e)?br(E,e):br(I,e);return pr(T,e,r,pr(A,e,r,u))}),n(g,function(t,r){k0(t,50),k0(t,5);var e=br(s,UZ(0,t));return k0(t,6),[0,UK(r,e[1]),[11,e]]}),n(T,function(t,r,e){var n=zZ(0,t);if("number"==typeof n)switch(n){case 5:if(!t[12]){var a=br(S,t),u=UK(r,a[1]);return pr(T,t,r,[0,u,[4,[0,e,a[2]]]])}break;case 7:k0(t,7);var i=br(C0[7],t),f=UK(r,$Z(0,t));return k0(t,8),pr(T,t,r,[0,f,[15,[0,e,[1,i],1]]]);case 11:k0(t,11);var c=br(F,t)[1];return pr(T,t,r,[0,UK(r,c[1]),[15,[0,e,[0,c],0]]])}else if(2===n[0])return pr(T,t,r,hr(L,t,r,e,n[1]));return e}),n(_,function(t){var r=$Z(0,t);if(k0(t,44),t[10]&&11===zZ(0,t)){k0(t,11);var e=[0,r,Oz];if(rr(VZ(0,t),Pz)){var n=kr(C0[13],0,t);return[0,UK(r,n[1]),[16,[0,e,n]]]}return i0(t),o0(t),[0,r,[10,e]]}var a=$Z(0,t),u=zZ(0,t);if("number"==typeof u)if(44===u)var i=br(_,t),f=1;else f=0;else f=0;if(!f)i=e0(0,t)?br(E,t):br(I,t);var c=pr(A,XZ(1,t),a,i),s=zZ(0,t);if("number"==typeof s)v=0;else if(2===s[0])var o=hr(L,t,a,c,s[1]),v=1;else v=0;if(!v)o=c;var l=zZ(0,t);if("number"==typeof l)if(5===l)var b=br(S,t),k=b[1],p=b[2],h=1;else h=0;else h=0;if(!h)var k=o[1],p=0;return[0,UK(r,k),[17,[0,o,p]]]}),n(S,function(t){var r=$Z(0,t);k0(t,5);for(l=0;;){var e=zZ(0,t);if("number"==typeof e&&(6===e?1:ja===e?1:0)){var n=Nr(l),a=$Z(0,t);return k0(t,6),[0,UK(r,a),n]}var u=zZ(0,t);if("number"==typeof u)if(13===u){var i=$Z(0,t);k0(t,13);var f=br(s,t),c=[1,[0,UK(i,f[1]),[0,f]]],o=1;}else o=0;else o=0;if(!o)c=[0,br(s,t)];var v=[0,c,l];6!==zZ(0,t)&&k0(t,10);var l=v;}}),n(A,function(t,r,e){var n=zZ(0,t);if("number"==typeof n)switch(n){case 7:k0(t,7);var a=XZ(0,t),u=br(C0[7],a),i=$Z(0,t);return k0(t,8),pr(T,t,r,[0,UK(r,i),[15,[0,e,[1,u],1]]]);case 11:k0(t,11);var f=br(F,t)[1];return pr(T,t,r,[0,UK(r,f[1]),[15,[0,e,[0,f],0]]])}else if(2===n[0])return pr(T,t,r,hr(L,t,r,e,n[1]));return e}),n(E,function(r){var e=$Z(0,r),n=br(t[1],r);k0(r,15);var a=br(t[2],r);if(5===zZ(0,r))var u=0,i=0;else{var f=zZ(0,r);if("number"==typeof f){var c=93!==f?1:0;if(c)o=0;else var s=c,o=1;}else o=0;if(!o)s=[0,kr(C0[13],Rz,r)];var u=s,i=br(N0[2],r);}var v=br(t[4],r),l=br(N0[11],r),b=pr(t[5],r,n,a),k=b[2],p=br(t[6],v);dr(t[7],r,b[3],p,u,v);var h=0===k[0]?0:1,d=[8,[0,u,v,k,n,a,l[2],h,l[1],i]];return[0,UK(e,b[1]),d]}),n(x,function(t,r){var e=VZ(0,t);if(0===r)i=0;else switch(r-1|0){case 0:c0(t,33);var n=1;try{var a=St(_t(Ar(Iz,e)));}catch(t){if(n=0,(t=lr(t))[1]!==Yd)throw t;var u=gr(Ar(Cz,e)),i=1;}if(n)var u=a,i=1;break;case 2:var f=1;try{var c=cZ(e);}catch(t){f=0;if((t=lr(t))[1]!==Yd)throw t;var u=gr(Ar(Nz,e)),i=1;}if(f)var u=c,i=1;break;default:i=0;}if(!i)try{u=St(_t(e));}catch(i){if((i=lr(i))[1]!==Yd)throw i;u=gr(Ar(Lz,e));}return k0(t,[0,r]),u}),n(I,function(t){var r=$Z(0,t),e=zZ(0,t);if("number"==typeof e)switch(e){case 1:return br(C,t);case 5:return br(O,t);case 7:var n=br(P,t);return[0,n[1],[0,n[2]]];case 21:return k0(t,21),[0,r,1];case 29:var a=VZ(0,t);return k0(t,29),[0,r,[13,[0,0,a]]];case 40:return br(C0[23],t);case 51:var u=$Z(0,t);return k0(t,51),[0,u,0];case 93:var i=br(C0[18],t);return[0,i[1],[12,i[2]]];case 30:case 31:var f=VZ(0,t);return k0(t,e),[0,r,[13,[0,[1,31===e?1:0],f]]];case 74:case 100:return br(D,t)}else switch(e[0]){case 0:var c=VZ(0,t);return[0,r,[13,[0,[2,kr(x,t,e[1])],c]]];case 1:var s=e[1],o=s[4],v=s[3],l=s[2],b=s[1];return o&&c0(t,33),k0(t,[1,[0,b,l,v,o]]),[0,b,[13,[0,[0,l],v]]];case 2:var k=kr(N,t,e[1]);return[0,k[1],[21,k[2]]]}if(r0(0,t)){var p=kr(C0[13],0,t);return[0,p[1],[10,p]]}return i0(t),108===e&&o0(t),[0,r,[13,[0,0,xz]]]}),n(C,function(t){var r=br(C0[11],t);return[0,r[1],[18,r[2]]]}),n(N,function(t,r){var e=r[3],n=r[2],a=r[1];k0(t,[2,r]);var u=[0,a,[0,[0,n[2],n[1]],e]];if(e)var i=a,f=[0,u,0],c=0;else for(var s=[0,u,0],o=0;;){var v=br(C0[7],t),l=[0,v,o],b=zZ(0,t);if("number"==typeof b)if(2===b){v0(t,4);var k=zZ(0,t);if("number"==typeof k)S=1;else if(2===k[0]){var p=k[1],h=p[3],d=p[2];o0(t);var m=p[1],y=[0,[0,d[2],d[1]],h];l0(t);var w=[0,[0,m,y],s];if(!h){var s=w,o=l;continue}var g=Nr(l),T=[0,m,Nr(w),g],_=1,S=0;}else S=1;if(S)throw[0,Vd,Az]}else _=0;else _=0;if(!_){i0(t);var A=[0,v[1],Ez],E=Nr(l),x=Nr([0,A,s]),T=[0,v[1],x,E];}var i=T[1],f=T[2],c=T[3];break}return[0,UK(a,i),[0,f,c]]}),n(L,function(t,r,e,n){var a=kr(N,t,n);return[0,UK(r,a[1]),[20,[0,e,a]]]}),n(O,function(t){k0(t,5);var r=br(s,t),e=zZ(0,t);if("number"==typeof e)if(10===e)var n=kr(M,t,[0,r,0]),a=1;else if(81===e)var u=br(N0[8],t),n=[0,UK(r[1],u[1]),[22,[0,r,u]]],a=1;else a=0;else a=0;if(!a)n=r;return k0(t,6),n}),n(P,function(t){var r=$Z(0,t);k0(t,7);for(v=0;;){var e=zZ(0,t);if("number"==typeof e){if(14<=e)i=ja===e?1:0;else if(8<=e)switch(e-8|0){case 2:k0(t,10);v=[0,0,v];continue;case 5:var n=$Z(0,t);k0(t,13);var a=br(s,t),u=[1,[0,UK(n,a[1]),[0,a]]];8!==zZ(0,t)&&k0(t,10);v=[0,[0,u],v];continue;case 0:i=1;break;default:i=0;}else var i=0;if(i){var f=Nr(v),c=$Z(0,t);return k0(t,8),[0,UK(r,c),[0,f]]}}var o=[0,br(s,t)];8!==zZ(0,t)&&k0(t,10);var v=[0,[0,o],v];}}),n(D,function(t){v0(t,5);var r=$Z(0,t),e=zZ(0,t);if("number"!=typeof e&&3===e[0]){var n=e[1],a=VZ(0,t);o0(t);var u=n[3],i=n[2];l0(t);var f=Zr(ht(u));Hr(function(t){var r=t-103|0;if(!(18>>0))switch(r){case 0:case 2:case 6:case 14:case 18:return ee(f,t)}return 0},u);var c=te(f);return ar(c,u)&&a0(t,[3,u]),[0,r,[13,[0,[3,[0,i,c]],a]]]}throw[0,Vd,Sz]}),n(U,function(r){var e=BZ(c,r),n=$Z(0,e),a=12!==zZ(Tz,e)?1:0,u=a?br(t[1],e):a,i=br(N0[2],e);if(r0(0,e))if(0===i)var f=kr(C0[13],_z,e),s=f[1],o=[0,[0,[0,s,[3,[0,[0,s,f[2]],0,0]]],0],0],v=0,l=0,b=1;else b=0;else b=0;if(!b)var k=br(t[4],e),p=MZ(1,e),h=br(N0[11],p),o=k,v=h[1],l=h[2];if(o[2])m=0;else if(o[1])var d=e,m=1;else m=0;if(!m)d=jZ(e);var y=QZ(d);(y?12===zZ(0,d)?1:0:y)&&a0(d,46),k0(d,12);var w=jZ(d),g=t[8],T=_0(function(t){return pr(g,t,u,0)},w),_=T[2],S=_[1],A=br(t[6],o);dr(t[7],w,_[2],A,0,o);var E=0===S[0]?0:1;return[0,UK(n,T[1]),[1,[0,0,o,S,u,0,l,E,v,i]]]}),n(M,function(t,r){var e=zZ(0,t);if("number"==typeof e&&10===e)return k0(t,10),kr(M,t,[0,br(s,t),r]);var n=Ir(r),a=Nr(r),u=Ir(a);return[0,UK(u[1],n[1]),[19,[0,a]]]}),n(F,function(t){var r=zZ(0,t),e=VZ(0,t),n=$Z(0,t);if("number"==typeof r&&(60<=r?65<=r?0:1:0===r?1:0))return[0,kr(C0[13],0,t),0];if("number"==typeof r){if(66<=r)if(111===r)u=1;else if(zi<=r)u=1;else var a=0,u=0;else if(60<=r)if(65<=r)u=1;else var a=0,u=0;else if(15<=r)u=1;else var a=0,u=0;if(u)var i=[0,[0,n,u0([0,r,e])]],a=1;}else a=0;if(!a){i0(t);i=0;}return o0(t),[0,[0,n,e],i]}),[0,P,s,k,F,l,w,x,M]}(L0),O0=function(t){function r(r){var e=r[24][3];if(e)for(a=0;;){var n=zZ(0,r);if("number"!=typeof n||14!==n)return Nr(a);o0(r);var a=[0,br(t[6],r),a];}return e}function e(r){var e=zZ(0,r);if("number"==typeof e){if(7===e){var n=$Z(0,r);k0(r,7);var a=UZ(0,r),u=br(C0[9],a),i=$Z(0,r);return k0(r,8),[0,UK(n,i),[2,u]]}}else switch(e[0]){case 0:var f=VZ(0,r),c=$Z(0,r);return[0,c,[0,[0,c,[0,[2,kr(t[7],r,e[1])],f]]]];case 1:var s=e[1],o=s[4],v=s[3],l=s[2],b=s[1];return o&&c0(r,33),k0(r,[1,[0,b,l,v,o]]),[0,b,[0,[0,b,[0,[0,l],v]]]]}var k=br(t[4],r)[1];return[0,k[1],[1,k]]}function a(t,r){var n=br(L0[2],t),a=e(t),u=a[1],i=$Z(0,t),f=br(L0[4],t);if(0===r){var c=f[1];f[2]?CZ(t,[0,u,64]):(c?c[2]?0:1:0)||CZ(t,[0,u,64]);}else(f[1]?0:f[2]?0:1)||CZ(t,[0,u,63]);var s=br(N0[9],t),o=pr(L0[5],t,0,n),v=o[2],l=br(L0[6],f);dr(L0[7],t,o[3],l,0,f);var b=0===v[0]?[0,v[1][1],0]:[0,v[1][1],1],k=UK(i,b[1]);return[0,a[2],[0,k,[0,0,f,v,0,n,0,b[2],s,0]]]}function u(t,r){return r?CZ(t,[0,r[1][1],5]):r}function i(t,r,e,n,a,i,f,c){for(;;){var s=zZ(0,t);if("number"==typeof s){var o=s+Ch|0;if(2>>0)v=Yb===o?0:1;else{if(1===o){i0(t),o0(t);continue}var v=0;}if(!v&&!a&&!i){var l=_0(function(t){var r=br(N0[9],t),e=t[24],n=79===zZ(0,t)?1:0;if(n){var a=f?e[2]:f;if(a)i=a;else var u=1-f,i=u?e[1]:u;c=i?(k0(t,79),[0,br(C0[7],t)]):i;}else var c=n;return p0(t,9)||((7===zZ(0,t)?1:0)||(5===zZ(0,t)?1:0))&&i0(t),[0,r,c]},t),b=l[2];return[1,[0,UK(r,l[1]),[0,n,b[2],b[1],f,c]]]}}u(t,c);var k=$Z(0,t),p=br(N0[2],t),h=br(L0[4],t),d=br(N0[9],t),m=pr(L0[5],t,a,i),y=m[2],w=br(L0[6],h);dr(L0[7],t,m[3],w,0,h);var g=0===y[0]?[0,y[1][1],0]:[0,y[1][1],1],T=g[1],_=[0,UK(k,T),[0,0,h,y,a,i,0,g[2],d,p]];if(0===f){switch(n[0]){case 0:var S=n[1][2][1];if("number"==typeof S)x=1;else if(0===S[0])if(ar(S[1],PV))var A=0,E=0,x=0;else var E=1,x=0;else x=1;if(x)var A=0,E=0;break;case 1:if(ar(n[1][2],DV))var A=0,E=0;else E=1;break;default:var A=0,E=0;}if(E)var I=0,A=1;}else A=0;if(!A)I=1;return[0,[0,UK(r,T),[0,I,n,_,f,e]]]}}var f=function t(r){return t.fun(r)},c=function t(r,e){return t.fun(r,e)},s=function t(r,e){return t.fun(r,e)},o=function t(r,e,n,a,u){return t.fun(r,e,n,a,u)},v=function t(r,e){return t.fun(r,e)};n(f,function(t){var r=$Z(0,t);if(13===zZ(0,t)){k0(t,13);var n=br(C0[9],t);return[1,[0,UK(r,n[1]),[0,n]]]}var a=am?am[1]:0,u=r0([0,a],t);if(u)var i=u,f=0;else{var v=zZ([0,a],t);if("number"==typeof v)l=1;else if(1>>0)if(Yb<=T)var _=0,S=0;else switch(T+81|0){case 2:case 5:case 10:S=1;break;default:var _=0,S=0;}else if(10<(T-1|0)>>>0)S=1;else var _=0,S=0;if(S)var A=dr(o,t,r,d,0,0),_=1;}else _=0;if(!_)A=kr(s,t,r);var E=A,w=1;}else{var x=zZ(0,t);if("number"==typeof x){var I=x+-81|0;if(12>>0)if(Yb<=I)var C=0,N=0;else switch(I+81|0){case 2:case 5:case 10:N=1;break;default:var C=0,N=0;}else if(10<(I-1|0)>>>0)N=1;else var C=0,N=0;if(N)var L=dr(o,t,r,d,0,0),C=1;}else C=0;if(!C)L=kr(c,t,r);var E=L,w=1;}if(w)var R=E,y=1;}else y=0;}else y=0;else y=0;if(!y)R=dr(o,t,r,h[2],k,p);return[0,R]}),n(c,function(t,r){var e=a(t,1),n=e[2],u=n[1],i=[0,e[1],[1,[0,u,n[2]]],0,0];return[0,UK(r,u),i]}),n(s,function(t,r){var e=a(t,0),n=e[2],u=n[1],i=[0,e[1],[2,[0,u,n[2]]],0,0];return[0,UK(r,u),i]}),n(o,function(t,r,e,n,a){var u=_0(function(t){var r=zZ(0,t);if("number"==typeof r){if(93===r)c=1;else if(11<=r)c=0;else switch(r){case 5:c=1;break;case 2:case 10:switch(e[0]){case 0:var u=e[1],i=[0,u[1],[13,u[2]]];break;case 1:var f=e[1],i=[0,f[1],[10,f]];break;default:i=e[1];}return[0,i,1,0];default:var c=0;}if(c){var s=$Z(0,t),o=br(N0[2],t),v=br(L0[4],t),l=br(N0[9],t),b=pr(L0[5],t,n,a),k=b[2],p=br(L0[6],v);dr(L0[7],t,b[3],p,0,v);var h=0===k[0]?[0,k[1][1],0]:[0,k[1][1],1];return[0,[0,UK(s,h[1]),[8,[0,0,v,k,n,a,0,h[2],l,o]]],0,1]}}return k0(t,81),[0,br(C0[9],t),0,0]},t),i=u[2],f=[0,e,[0,i[1]],i[3],i[2]];return[0,UK(r,u[1]),f]}),n(v,function(t,r){var e=zZ(0,t);if("number"==typeof e&&(2===e?1:ja===e?1:0))return Nr(r);var n=br(f,t);return 2!==zZ(0,t)&&k0(t,10),kr(v,t,[0,n,r])});var l=function t(r){return t.fun(r)},b=function t(r,e){return t.fun(r,e)},k=function t(r){return t.fun(r)},p=function t(r){return t.fun(r)};return n(l,function(r){if(41===zZ(0,r)){k0(r,41);var e=r.slice();e[16]=0;var n=[0,br(t[6],e)],a=br(N0[4],r);}else var n=0,a=0;var u=52===zZ(0,r)?1:0;if(u){1-IZ(r)&&a0(r,12),k0(r,52);i=kr(b,r,0);}else var i=u;return[0,br(k,r),n,a,i]}),n(b,function(t,r){var e=kr(C0[13],0,t),n=br(N0[4],t),a=[0,[0,n?UK(e[1],n[1][1]):e[1],[0,e,n]],r],u=zZ(0,t);return"number"==typeof u&&10===u?(k0(t,10),kr(b,t,a)):Nr(a)}),n(k,function(t){var r=$Z(0,t);k0(t,1);for(i=0;;){var e=zZ(0,t);if("number"==typeof e){var n=e-3|0;if(105>>0){if(!(107<(n+1|0)>>>0)){var a=Nr(i),u=$Z(0,t);return k0(t,2),[0,UK(r,u),[0,a]]}}else if(6===n){k0(t,9);continue}}var i=[0,br(p,t),i];}}),n(p,function(t){var n=$Z(0,t),f=r(t),c=5!==zZ(UV,t)?1:0;if(c)var s=93!==zZ(MV,t)?1:0,o=s?p0(t,42):s;else o=c;var v=5!==zZ(FV,t)?1:0;if(v)var l=81!==zZ(XV,t)?1:0,b=l?br(L0[1],t):l;else b=v;var k=br(L0[2],t),p=pr(L0[3],t,b,k);if(0===k)if(p)var h=br(L0[2],t),d=1;else d=0;else d=0;if(!d)h=k;var m=e(t);if(0===b&&0===h){var y=m[2];if(1===y[0]){var w=y[1][2];if(!ar(w,BV)){var g=zZ(0,t);if("number"==typeof g&&(79<=g?82<=g?93===g?1:0:80===g?0:1:5===g?1:9===g?1:0))return i(t,n,f,y,b,h,o,p);u(t,p);var T=a(t,1),_=T[2],S=[0,2,T[1],_,o,f];return[0,[0,UK(n,_[1]),S]]}if(!ar(w,GV)){var A=zZ(0,t);if("number"==typeof A&&(79<=A?82<=A?93===A?1:0:80===A?0:1:5===A?1:9===A?1:0))return i(t,n,f,y,b,h,o,p);u(t,p);var E=a(t,0),x=E[2],I=[0,3,E[1],x,o,f];return[0,[0,UK(n,x[1]),I]]}}}return i(t,n,f,m[2],b,h,o,p)}),[0,e,function(t){var r=$Z(0,t);k0(t,1);var e=kr(v,t,0),n=$Z(0,t);return k0(t,2),[0,UK(r,n),[0,e]]},function(t,e){var n=RZ(1,t),a=$Z(0,n),u=Er(e,r(n));k0(n,40);var i=PZ(1,n),f=n[7],c=r0(0,i);if(0===f)v=0;else{var s=0!==c?1:0;if(s)v=0;else var o=s,v=1;}v||(o=[0,kr(C0[13],0,i)]);var b=br(N0[3],n),k=br(l,n),p=k[1];return[0,UK(a,p[1]),[2,[0,o,p,k[2],b,k[3],k[4],u]]]},function(t){var e=$Z(0,t),n=r(t);k0(t,40);var a=zZ(0,t);if("number"==typeof a){var u=a-1|0;if(40>>0)if(92===u)f=1;else var i=0,f=0;else if(38<(u-1|0)>>>0)f=1;else var i=0,f=0;if(f)var c=0,s=0,i=1;}else i=0;if(!i)var o=[0,kr(C0[13],0,t)],c=o,s=br(N0[3],t);var v=br(l,t),b=v[1];return[0,UK(e,b[1]),[5,[0,c,b,v[2],s,v[3],v[4],n]]]},r]}(R0),P0=function(t){function r(t){if(1-t[10]&&a0(t,25),k0(t,19),9===zZ(0,t))e=0;else if(ZZ(t))e=0;else var r=[0,br(C0[7],t)],e=1;if(!e)r=0;return b0(t),[25,[0,r]]}function e(t){var r=$Z(0,t);k0(t,22),QZ(t)&&CZ(t,[0,r,13]);var e=br(C0[7],t);return b0(t),[27,[0,e]]}function a(t){var r=br(L0[9],t);return b0(t),Rr(function(r){return CZ(t,r)},r[2]),r[1][2]}function u(t){k0(t,28);var r=PZ(1,t),e=br(L0[10],r),n=[31,[0,e[1],1]];return b0(t),Rr(function(r){return CZ(t,r)},e[2]),n}function i(t){var r=br(C0[7],t),e=zZ(0,t),n=r[2];if("number"!=typeof n&&10===n[0]&&"number"==typeof e&&81===e){var a=n[1],u=a[2];k0(t,81),kr(x0[3],u,t[3])&&CZ(t,[0,r[1],[5,U$,u]]);var i=t.slice();return i[3]=kr(_Z[4],u,t[3]),[24,[0,a,br(C0[2],i)]]}return b0(t),[16,[0,r,0]]}function f(t,r){for(a=r;;){var e=[0,br(N0[5],t),a],n=zZ(0,t);if("number"!=typeof n||10!==n)return Nr(e);k0(t,10);var a=e;}}function c(t){var r=RZ(1,t);k0(r,40);var e=kr(C0[13],0,r),n=br(N0[3],r),a=41===zZ(0,r)?1:0,u=a?(k0(r,41),f(r,0)):a,i=rr(VZ(0,r),P$),c=i?(h0(r,D$),f(r,0)):i;return[0,e,n,kr(N0[6],1,r),u,c]}function s(t){return _0(c,t)}function o(t,r){for(n=r;;){var e=n[2];switch(e[0]){case 0:return Or(function(t,r){return o(t,0===r[0]?r[1][2][2]:r[1][2][1])},t,e[1][1]);case 1:return Or(function(t,r){if(r){var e=r[1];return o(t,0===e[0]?e[1]:e[1][2][1])}return t},t,e[1][1]);case 2:var n=e[1][1];continue;case 3:return[0,e[1][1],t];default:return gr(O$)}}}function v(t,r,e){if(e){var n=e[1];if(0===n[0]){var a=n[1],u=a[2][1];if(u&&!u[1][2][2]){var i=u[2];if(!i)return i}return CZ(t,[0,a[1],r])}var f=n[1],c=f[1],s=1-br(C0[24],[0,c,f[2]]);return s?CZ(t,[0,c,r]):s}return a0(t,r)}function l(t){h0(t,ZV);var r=zZ(0,t);if("number"!=typeof r&&1===r[0]){var e=r[1],n=e[4],a=e[3],u=e[2],i=e[1];return n&&c0(t,33),k0(t,[1,[0,i,u,a,n]]),[0,i,[0,[0,u],a]]}var f=VZ(0,t),c=[0,$Z(0,t),[0,[0,f],f]];return i0(t),c}function b(t,r){var e=$Z(0,t),n=zZ(0,t);if("number"==typeof n&&nu===n){k0(t,nu),h0(t,QV);var a=kr(C0[13],0,t);return[0,[2,[0,UK(e,a[1]),a]],0]}k0(t,1);for(var u=0,i=0;;){var f=u?u[1]:1,c=zZ(0,t);if("number"==typeof c&&(2===c?1:ja===c?1:0)){var s=Nr(i);return k0(t,2),s}1-f&&CZ(t,[0,$Z(0,t),67]);var o=br(C0[14],t),v=o[2],l=o[1],b=l[2];if(rr(b,YV))var k=1,p=JV;else if(rr(b,HV))var k=1,p=WV;else var k=0,p=0;if(rr(VZ(0,t),zV)){var h=kr(C0[13],0,t);if(k)if(r0(0,t))m=0;else{r&&CZ(t,[0,l[1],66]);var d=[0,[0,p,0,h]],m=1;}else m=0;if(!m)d=[0,[0,0,[0,kr(C0[13],0,t)],l]];T=d;}else{if(k)if(r0(0,t)){r&&CZ(t,[0,l[1],66]);var y=br(C0[14],t),w=y[2];w&&CZ(t,w[1]);var g=rr(VZ(0,t),VV),T=[0,[0,p,g?(h0(t,$V),[0,kr(C0[13],0,t)]):g,y[1]]],_=1;}else _=0;else _=0;if(!_){v&&CZ(t,v[1]);T=[0,[0,0,0,l]];}}var u=[0,p0(t,10)],i=[0,T,i];}}var k=function t(r){return t.fun(r)},p=function t(r){return t.fun(r)},h=function t(r){return t.fun(r)},d=function t(r){return t.fun(r)},m=function t(r){return t.fun(r)},y=function t(r){return t.fun(r)},w=function t(r){return t.fun(r)},g=function t(r){return t.fun(r)},T=function t(r){return t.fun(r)},_=function t(r){return t.fun(r)},S=function t(r){return t.fun(r)},A=function t(r){return t.fun(r)},E=function t(r){return t.fun(r)},x=function t(r){return t.fun(r)},I=function t(r){return t.fun(r)},C=function t(r){return t.fun(r)},N=function t(r,e){return t.fun(r,e)},L=function t(r){return t.fun(r)},R=function t(r){return t.fun(r)},O=function t(r){return t.fun(r)},P=function t(r){return t.fun(r)},D=function t(r){return t.fun(r)},U=function t(r,e){return t.fun(r,e)},M=function t(r){return t.fun(r)},F=function t(r,e){return t.fun(r,e)},X=function t(r){return t.fun(r)},B=function t(r,e){return t.fun(r,e)},G=function t(r,e){return t.fun(r,e)},q=function t(r,e){return t.fun(r,e)},j=function t(r,e){return t.fun(r,e)},Y=function t(r){return t.fun(r)},J=function t(r){return t.fun(r)},H=function t(r,e,n){return t.fun(r,e,n)},W=function t(r){return t.fun(r)},z=function t(r){return t.fun(r)},V=function t(r){return t.fun(r)};return n(k,function(t){var r=$Z(0,t);return k0(t,9),[0,r,1]}),n(p,function(t){var r=$Z(0,t);if(k0(t,32),9===zZ(0,t))u=0;else if(ZZ(t))u=0;else{var e=kr(C0[13],0,t),n=e[2];1-kr(x0[3],n,t[3])&&a0(t,[4,n]);var a=[0,e],u=1;}if(!u)a=0;var i=t0(0,t),f=i?i[1]:a?a[1][1]:r,c=UK(r,f),s=0===a?1:0;if(s)var o=t[8],v=o||t[9],l=1-v;else l=s;return l&&CZ(t,[0,c,24]),b0(t),[0,c,[1,[0,a]]]}),n(h,function(t){var r=$Z(0,t);if(k0(t,35),9===zZ(0,t))u=0;else if(ZZ(t))u=0;else{var e=kr(C0[13],0,t),n=e[2];1-kr(x0[3],n,t[3])&&a0(t,[4,n]);var a=[0,e],u=1;}if(!u)a=0;var i=t0(0,t),f=i?i[1]:a?a[1][1]:r,c=UK(r,f);return 1-t[8]&&CZ(t,[0,c,23]),b0(t),[0,c,[3,[0,a]]]}),n(d,function(t){var r=$Z(0,t);k0(t,59);var e=t0(0,t),n=e?e[1]:r;return b0(t),[0,UK(r,n),0]}),n(m,function(t){var r=$Z(0,t);k0(t,37);var e=DZ(1,t),n=br(C0[2],e);k0(t,25),k0(t,5);var a=br(C0[7],t),u=$Z(0,t);k0(t,6);var i=t0(0,t),f=i?i[1]:u;return 9===zZ(0,t)&&b0(t),[0,UK(r,f),[13,[0,n,a]]]}),n(y,function(t){var r=$Z(0,t);k0(t,39);var e=t[17],n=e?p0(t,65):e;k0(t,5);var a=UZ(1,t),u=zZ(0,a);if("number"==typeof u)if(24<=u)if(29<=u)p=0;else{switch(u+pl|0){case 0:var i=_0(L0[13],a),f=i[2],c=[0,[0,[0,[0,i[1],f[1]]]],f[2]],s=1;break;case 3:var o=_0(L0[12],a),l=o[2],c=[0,[0,[0,[0,o[1],l[1]]]],l[2]],s=1;break;case 4:var b=_0(L0[11],a),k=b[2],c=[0,[0,[0,[0,b[1],k[1]]]],k[2]],s=1;break;default:var p=0,s=0;}if(s)var h=c[1],d=c[2],p=1;}else if(9===u)var h=0,d=0,p=1;else p=0;else p=0;if(!p)var m=PZ(1,a),h=[0,[1,br(C0[7],m)]],d=0;var y=zZ(0,t);if(63!==y&&!n){if("number"==typeof y&&17===y){if(v(t,18,h),h){var w=h[1],g=0===w[0]?[0,w[1]]:[1,w[1]];k0(t,17);var T=br(C0[7],t);k0(t,6);var _=DZ(1,t),S=br(C0[2],_);return[0,UK(r,S[1]),[18,[0,g,T,S,0]]]}throw[0,Vd,R$]}Rr(function(r){return CZ(t,r)},d),k0(t,9);var A=zZ(0,t);if("number"==typeof A){var E=9!==A?1:0;if(E)I=0;else var x=E,I=1;}else I=0;if(!I)x=[0,br(C0[7],t)];k0(t,9);var C=zZ(0,t);if("number"==typeof C){var N=6!==C?1:0;if(N)R=0;else var L=N,R=1;}else R=0;if(!R)L=[0,br(C0[7],t)];k0(t,6);var O=DZ(1,t),P=br(C0[2],O);return[0,UK(r,P[1]),[17,[0,h,x,L,P]]]}if(v(t,19,h),h){var D=h[1],U=0===D[0]?[0,D[1]]:[1,D[1]];k0(t,63);var M=br(C0[9],t);k0(t,6);var F=DZ(1,t),X=br(C0[2],F);return[0,UK(r,X[1]),[19,[0,U,M,X,n]]]}throw[0,Vd,L$]}),n(w,function(t){var r=$Z(0,t);k0(t,16),k0(t,5);var e=br(C0[7],t);k0(t,6),zZ(0,t);var n=e0(0,t)?(c0(t,47),br(L0[14],t)):br(C0[2],t),a=43===zZ(0,t)?1:0,u=a?(k0(t,43),[0,br(C0[2],t)]):a,i=u?u[1][1]:n[1];return[0,UK(r,i),[21,[0,e,n,u]]]}),n(g,function(t){var r=$Z(0,t);k0(t,20),k0(t,5);var e=br(C0[7],t);k0(t,6),k0(t,1);for(y=N$;;){var n=y[2],a=y[1],u=zZ(0,t);if("number"==typeof u&&(2===u?1:ja===u?1:0)){var i=Nr(n),f=$Z(0,t);return k0(t,2),[0,UK(r,f),[26,[0,e,i]]]}var c=$Z(0,t),s=zZ(0,t);if("number"==typeof s)if(36===s){a&&a0(t,21),k0(t,36);var o=0,v=1;}else v=0;else v=0;if(!v){k0(t,33);o=[0,br(C0[7],t)];}var l=a||(0===o?1:0),b=$Z(0,t);k0(t,81);var k=function(t){if("number"==typeof t){var r=t-2|0;if(31>>0?34===r?1:0:29<(r-1|0)>>>0?1:0)return 1}return 0},p=t.slice();p[9]=1;var h=kr(C0[4],k,p),d=Nr(h),m=d?d[1][1]:b,y=[0,l,[0,[0,UK(c,m),[0,o,h]],n]];}}),n(T,function(t){var r=$Z(0,t);k0(t,23);var e=br(C0[16],t),n=zZ(0,t);if("number"==typeof n)if(34===n){var a=$Z(0,t);k0(t,34),k0(t,5);var u=kr(C0[13],C$,t),i=[0,u[1],[3,[0,u,0,0]]];k0(t,6);var f=br(C0[16],t),c=[0,[0,UK(a,f[1]),[0,i,f]]],s=1;}else s=0;else s=0;if(!s)c=0;var o=zZ(0,t);if("number"==typeof o)if(38===o){k0(t,38);var v=[0,br(C0[16],t)],l=1;}else l=0;else l=0;if(!l)v=0;var b=v?v[1][1]:c?c[1][1]:(CZ(t,[0,e[1],22]),e[1]);return[0,UK(r,b),[28,[0,e,c,v]]]}),n(_,function(t){var r=$Z(0,t);k0(t,25),k0(t,5);var e=br(C0[7],t);k0(t,6);var n=DZ(1,t),a=br(C0[2],n);return[0,UK(r,a[1]),[32,[0,e,a]]]}),n(S,function(t){var r=$Z(0,t);k0(t,26),k0(t,5);var e=br(C0[7],t);k0(t,6);var n=br(C0[2],t),a=UK(r,n[1]);return s0(t,[0,a,27]),[0,a,[33,[0,e,n]]]}),n(A,function(t){var r=br(C0[16],t);return[0,r[1],[0,r[2]]]}),n(E,function(t){var r=_0(C0[7],t),e=r[2],n=r[1],a=t0(0,t),u=a?UK(n,a[1]):n;b0(t);var i=t[18];if(i){var f=e[2];if("number"==typeof f)l=0;else if(13===f[0]){var c=f[1],s=c[1];if("number"==typeof s)b=1;else if(0===s[0])var o=c[2],v=[0,Jr(o,1,ht(o)-2|0)],l=1,b=0;else b=1;if(b)l=0;}else l=0;if(!l)v=0;k=v;}else var k=i;return[0,u,[16,[0,e,k]]]}),n(x,function(t){1-IZ(t)&&a0(t,6),k0(t,61),v0(t,1);var r=kr(C0[13],0,t),e=br(N0[3],t);k0(t,79);var n=br(N0[1],t);return b0(t),l0(t),[0,r,e,n]}),n(I,function(t){return _0(function(t){return k0(t,60),[10,br(x,t)]},t)}),n(C,function(t){if(r0(I$,t)){var r=_0(x,t);return[0,r[1],[29,r[2]]]}return br(C0[2],t)}),n(N,function(t,r){var e=t?t[1]:t;1-IZ(r)&&a0(r,7),k0(r,62),k0(r,61),v0(r,1);var n=kr(C0[13],0,r),a=br(N0[3],r),u=zZ(0,r);if("number"==typeof u)if(81===u){k0(r,81);var i=[0,br(N0[1],r)],f=1;}else f=0;else f=0;if(!f)i=0;var c=1-e,s=c?(k0(r,79),[0,br(N0[1],r)]):c;return b0(r),l0(r),[0,n,a,s,i]}),n(L,function(t){return _0(function(t){return k0(t,60),[11,kr(N,x$,t)]},t)}),n(R,function(t){var r=zZ(A$,t);if("number"==typeof r&&61===r){var e=_0(br(N,E$),t);return[0,e[1],[30,e[2]]]}return br(C0[2],t)}),n(O,function(t){1-IZ(t)&&a0(t,12),k0(t,53);var r=kr(C0[13],0,t),e=br(N0[3],t),n=41===zZ(0,t)?1:0;if(n){k0(t,41);for(i=0;;){var a=[0,br(N0[5],t),i],u=zZ(0,t);if("number"!=typeof u||10!==u){f=Nr(a);break}k0(t,10);var i=a;}}else var f=n;return[0,r,e,kr(N0[6],1,t),f,0]}),n(P,function(t){return _0(function(t){return k0(t,60),[7,br(O,t)]},t)}),n(D,function(t){if(r0(S$,t)){var r=_0(O,t);return[0,r[1],[23,r[2]]]}return br(E,t)}),n(U,function(t,r){var e=s(t),n=[4,e[2]];return[0,UK(r,e[1]),n]}),n(M,function(t){return _0(function(t){k0(t,15);var r=kr(C0[13],0,t),e=$Z(0,t),n=br(N0[2],t),a=br(N0[7],t);k0(t,81);var u=br(N0[1],t),i=u[1],f=[0,UK(e,i),[1,[0,a,u,n]]],c=[0,f[1],f],s=r[2],o=[0,UK(r[1],i),s],v=br(N0[10],t);return b0(t),[0,o,c,v]},t)}),n(F,function(t,r){var e=br(M,t),n=[6,e[2]];return[0,UK(r,e[1]),n]}),n(X,function(t){return _0(function(t){k0(t,24);var r=pr(C0[15],t,_$,29)[2];return b0(t),[0,r[1],r[2]]},t)}),n(B,function(t,r){var e=br(X,t),n=[12,e[2]];return[0,UK(r,e[1]),n]}),n(G,function(t,r){var e=zZ(0,t);if("number"==typeof e)s=0;else if(1===e[0]){var n=e[1],a=n[4],u=n[3],i=n[2],f=n[1];a&&c0(t,33),k0(t,[1,[0,f,i,u,a]]);var c=[1,[0,f,[0,[0,i],u]]],s=1;}else s=0;if(!s)c=[0,kr(C0[13],0,t)];var o=_0(function(t){k0(t,1);for(var r=0,e=0;;){var n=zZ(0,t);if("number"==typeof n&&(2===n?1:ja===n?1:0)){var a=[0,r,Nr(e)];return k0(t,2),a}var u=kr(j,T$,t),i=u[2],f=u[1];if(r)if(0===r[1][0])if("number"==typeof i)v=0;else switch(i[0]){case 5:var c=i[1][2];if(c)switch(c[1][0]){case 4:case 6:s=1;break;default:s=0;}else var s=0;s||a0(t,62);var o=r,v=1;break;case 9:a0(t,61);var o=r,v=1;break;default:v=0;}else if("number"==typeof i)v=0;else if(9===i[0]){a0(t,62);var o=r,v=1;}else v=0;else if("number"==typeof i)v=0;else switch(i[0]){case 5:var l=i[1][2];if(l)switch(l[1][0]){case 4:case 6:var b=r,k=1;break;default:k=0;}else k=0;if(!k)b=[0,[1,f]];var o=b,v=1;break;case 9:var o=[0,[0,f]],v=1;break;default:v=0;}if(!v)o=r;var r=o,e=[0,u,e];}},t),v=o[2],l=v[1],b=o[1],k=[0,b,[0,v[2]]],p=UK(r,b);return[0,p,[8,[0,c,k,l?l[1]:[0,p]]]]}),n(q,function(t,r){k0(t,11),h0(t,g$);var e=br(N0[8],t),n=t0(0,t),a=n?n[1]:e[1];return b0(t),[0,UK(r,a),[9,e]]}),n(j,function(t,r){var e=t?t[1]:t;1-IZ(r)&&a0(r,9);var n=$Z(0,r),a=zZ(d$,r);if("number"==typeof a){if(15===a)return k0(r,60),kr(F,r,n);if(24<=a){if(!(65<=a))switch(a+pl|0){case 0:return k0(r,60),kr(B,r,n);case 16:return k0(r,60),kr(U,r,n);case 22:if(50===zZ(0,r))return br(V,r);break;case 25:if(e)return kr(z,[0,e],r);break;case 29:return br(P,r);case 37:var u=zZ(0,r);return"number"==typeof u&&50===u&&e?br(V,r):br(I,r);case 38:return br(L,r);case 40:return k0(r,60),a0(r,50),k0(r,64),kr(F,r,n)}}else if(0===a&&rr(VZ(y$,r),m$))return k0(r,60),h0(r,w$),e||11===zZ(0,r)?kr(q,r,n):kr(G,r,n)}if(e){var i=zZ(0,r);return"number"==typeof i&&50===i?(a0(r,65),br(C0[2],r)):(k0(r,60),kr(B,r,n))}return br(C0[2],r)}),n(Y,function(t){h0(t,h$);var r=zZ(0,t);if("number"!=typeof r&&1===r[0]){var e=r[1],n=e[4],a=e[3],u=e[2],i=e[1];return n&&c0(t,33),k0(t,[1,[0,i,u,a,n]]),[0,i,[0,[0,u],a]]}var f=VZ(0,t),c=[0,$Z(0,t),[0,[0,f],f]];return i0(t),c}),n(J,function(t){return t[2]}),n(H,function(t,r,e){var n=zZ(0,t);if("number"==typeof n&&(2===n?1:ja===n?1:0)){var a=Nr(e);return[0,Nr(r),a]}var u=br(C0[14],t),i=u[1];if(rr(VZ(0,t),k$)){h0(t,p$);var f=br(C0[14],t)[1],c=br(J,f);NZ(t,[0,f[1],c]);var s=[0,f],o=0,v=f[1];}else{var l=i[1];NZ(t,[0,l,br(J,i)]);var s=0,o=u[2],v=l;}var b=[0,UK(i[1],v),[0,i,s]];10===zZ(0,t)&&k0(t,10);var k=o?[0,o[1],e]:e;return pr(H,t,[0,b,r],k)}),n(W,function(r){function e(e){var n=FZ(1,RZ(1,e)),a=$Z(0,n);k0(n,49);var u=zZ(0,n);if("number"==typeof u){if(24<=u){if(nu===u){var i=$Z(0,n);k0(n,nu);var f=n[24][4],c=rr(VZ(0,n),o$),s=c?(h0(n,v$),f?[0,kr(C0[13],0,n)]:(a0(n,9),0)):c,v=[0,br(Y,n)];return b0(n),[15,[0,0,[0,[1,i,s]],v,1]]}if(65<=u)L=0;else switch(u+pl|0){case 12:k0(n,36),NZ(n,[0,UK(a,$Z(0,n)),u$]);var l=zZ(0,n);if("number"==typeof l)if(15===l)var b=[0,br(L0[14],n)],k=1;else k=0;else k=0;if(!k)if(n0(0,n))b=[0,kr(t[3],n,r)];else{var p=br(C0[9],n);b0(n);b=[1,p];}return[14,[0,b,1]];case 29:1-IZ(n)&&a0(n,11);var h=br(D,n),d=h[2];if("number"==typeof d)y=0;else if(23===d[0]){var m=br(J,d[1][1]);NZ(n,[0,h[1],m]);y=1;}else var y=0;return y||gr(Ar(f$,i$)),[15,[0,[0,h],0,0,0]];case 37:if(1!==zZ(c$,n)){1-IZ(n)&&a0(n,11);var w=zZ(s$,n);if("number"==typeof w&&nu===w){k0(n,61);var g=$Z(0,n);k0(n,nu);var T=br(Y,n);return b0(n),[15,[0,0,[0,[1,g,0]],[0,T],0]]}var _=_0(x,n),S=_[2],A=_[1];return NZ(n,[0,A,br(J,S[1])]),[15,[0,[0,[0,A,[29,S]]],0,0,0]]}L=0;break;case 38:var E=_0(function(t){return kr(N,0,t)},n),I=E[2],C=E[1];return NZ(n,[0,C,br(J,I[1])]),[15,[0,[0,[0,C,[30,I]]],0,0,0]];case 0:case 3:case 4:case 16:case 40:L=1;break;default:L=0;}}else var L=1<(u-14|0)>>>0?0:1;if(L){var R=kr(C0[3],[0,r],n),O=R[2],P=R[1];if("number"==typeof O)F=0;else switch(O[0]){case 2:var U=O[1][1];if(U)var M=U[1],F=2;else{CZ(n,[0,P,56]);var X=0,F=1;}break;case 20:var B=O[1][1];if(B)var M=B[1],F=2;else{CZ(n,[0,P,57]);var X=0,F=1;}break;case 31:var X=Or(function(t,r){return Or(o,t,[0,r[2][1],0])},0,O[1][1]),F=1;break;default:F=0;}switch(F){case 0:var X=gr(b$),G=0;break;case 1:G=0;break;default:var q=[0,[0,P,br(J,M)],0],G=1;}if(!G)q=X;return Rr(function(t){return NZ(n,t)},q),[15,[0,[0,R],0,0,1]]}}var j=zZ(0,n);if("number"==typeof j)if(61===j){o0(n);var W=0,z=1;}else z=0;else z=0;if(!z)W=1;k0(n,1);var V=pr(H,n,0,0),$=[0,[0,V[1]]];if(k0(n,2),rr(VZ(0,n),l$))K=[0,br(Y,n)];else{Rr(function(t){return CZ(n,t)},V[2]);var K=0;}return b0(n),[15,[0,0,$,K,W]]}return function(t){return _0(e,t)}}),n(z,function(t){function r(t){1-IZ(t)&&a0(t,9),k0(t,60);var r=FZ(1,RZ(1,t));k0(r,49);var n=zZ(0,r);if("number"==typeof n)if(53<=n){if(nu===n){var a=$Z(0,r);k0(r,nu);var u=r[24][4],i=rr(VZ(0,r),r$),f=i?(h0(r,e$),u?[0,kr(C0[13],0,r)]:(a0(r,9),0)):i,c=br(Y,r);return b0(r),[5,[0,0,0,[0,[1,a,f]],[0,c]]]}if(!(63<=n))switch(n+Zn|0){case 0:if(e)return[5,[0,0,[0,[6,_0(O,r)]],0,0]];break;case 8:if(e)return[5,[0,0,[0,[4,_0(x,r)]],0,0]];break;case 9:return[5,[0,0,[0,[5,_0(br(N,t$),r)]],0,0]]}}else{var o=n-15|0;if(!(25>>0))switch(o){case 21:k0(r,36);var v=zZ(0,r);if("number"==typeof v)if(15===v)var l=[0,[1,br(M,r)]],b=1;else if(40===v)var l=[0,[2,s(r)]],b=1;else b=0;else b=0;if(!b){var k=br(N0[1],r);b0(r);l=[0,[3,k]];}return[5,[0,1,l,0,0]];case 0:case 9:case 12:case 13:case 25:var p=zZ(0,r);if("number"==typeof p){if(25<=p)if(29<=p)if(40===p)var h=[0,[2,s(r)]],d=2;else d=0;else d=27<=p?1:0;else if(15===p)var h=[0,[1,br(M,r)]],d=2;else d=24<=p?1:0;switch(d){case 0:m=0;break;case 1:"number"==typeof p&&(27===p?a0(r,52):28===p&&a0(r,51));var h=[0,[0,br(X,r)]],m=1;break;default:m=1;}if(m)return[5,[0,0,h,0,0]]}throw[0,Vd,a$]}}var y=zZ(0,r);"number"==typeof y&&(53===y?a0(r,54):61===y&&a0(r,53));k0(r,1);var w=pr(H,r,0,0),g=[0,[0,w[1]]];if(k0(r,2),rr(VZ(0,r),n$))T=[0,br(Y,r)];else{Rr(function(t){return CZ(r,t)},w[2]);var T=0;}return b0(r),[5,[0,0,0,g,T]]}var e=t?t[1]:t;return function(t){return _0(r,t)}}),n(V,function(t){var r=RZ(1,t),e=$Z(0,r);k0(r,50);var n=zZ(0,r);if("number"==typeof n)if(46===n){1-IZ(r)&&a0(r,10),k0(r,46);var a=1,u=0,i=1;}else if(61===n){1-IZ(r)&&a0(r,10);var a=0,u=[0,kr(C0[13],0,r)],i=1;}else i=0;else i=0;if(!i)var a=2,u=0;var f=2!==a?1:0,c=zZ(0,r),s=r0(0,r);if("number"==typeof c)w=10===c?1:0;else if(1===c[0]){if(2===a){var o=c[1],v=o[4],k=o[3],p=o[2],h=o[1];v&&c0(r,33),k0(r,[1,[0,h,p,k,v]]);var d=t0(0,r),m=[0,h,[0,[0,p],k]],y=d?d[1]:h;return b0(r),[0,UK(e,y),[22,[0,a,m,0]]]}w=0;}else var w=0;if(!w&&0===s){var g=b(r,f),T=l(r),_=t0(0,r),S=_?_[1]:T[1];return b0(r),[0,UK(e,S),[22,[0,a,T,g]]]}var A=zZ(0,r),E=VZ(0,r);if(u)if("number"==typeof A){var x=u[1];if(10===A)C=1;else if(0===A)if(ar(E,KV))var I=0,C=0;else C=1;else var I=0,C=0;if(C)var N=2,L=[1,x],I=1;}else I=0;else I=0;if(!I)var N=a,L=[1,kr(C0[13],0,r)];var R=zZ(0,r);if("number"==typeof R)if(10===R){k0(r,10);var O=b(r,f),P=1;}else P=0;else P=0;if(!P)O=0;var D=l(r),U=t0(0,r),M=U?U[1]:D[1];return b0(r),[0,UK(e,M),[22,[0,N,D,[0,L,O]]]]}),[0,y,w,function(t){return _0(u,t)},T,_,S,A,p,h,d,j,z,L,m,k,W,E,V,D,function(t){return _0(i,t)},R,function(t){return _0(r,t)},g,function(t){return _0(e,t)},C,function(t){return _0(a,t)}]}(O0),D0=function(t){function r(t,r){var e=[0,[0,Lr(function(r){if(0===r[0]){var e=r[1],n=e[2],a=n[2],u=n[1];switch(u[0]){case 0:i=[0,u[1]];break;case 1:i=[1,u[1]];break;default:var i=[2,u[1]];}if(0===a[0])s=kr(C0[20],t,a[1]);else{var f=a[1],c=f[1];CZ(t,[0,c,2]);var s=[0,c,[4,[0,c,[8,f[2]]]]];}return[0,[0,e[1],[0,i,s,n[4]]]]}var o=r[1],v=[0,kr(C0[20],t,o[2][1])];return[1,[0,o[1],v]]},r[2][1]),0]];return[0,r[1],e]}function e(t,r){var e=[1,[0,Lr(function(r){if(r){var e=r[1];if(0===e[0]){var n=e[1];return[0,[0,kr(C0[20],t,[0,n[1],n[2]])]]}var a=e[1],u=[0,kr(C0[20],t,a[2][1])];return[0,[1,[0,a[1],u]]]}return r},r[2][1]),0]];return[0,r[1],e]}function n(r){return function(e){var n=$Z(0,e);k0(e,1);for(x=0;;){var a=zZ(0,e);if("number"==typeof a&&(2===a?1:ja===a?1:0)){var i=Nr(x),f=$Z(0,e);if(k0(e,2),81===zZ(0,e))var c=br(t[8],e),s=c[1],o=[0,c];else var s=f,o=0;return[0,UK(n,s),[0,[0,i,o]]]}var v=$Z(0,e);if(p0(e,13))var l=u(e,r),b=[0,[1,[0,UK(v,l[1]),[0,l]]]];else{var k=br(C0[21],e)[2];switch(k[0]){case 0:p=[0,k[1]];break;case 1:p=[1,k[1]];break;default:var p=[2,k[1]];}var h=zZ(0,e);if("number"==typeof h)if(81===h){k0(e,81);var d=[0,[0,u(e,r),0]],m=1;}else m=0;else m=0;if(!m)if(1===p[0])var y=p[1],d=[0,[0,[0,y[1],[3,[0,y,0,0]]],1]];else{i0(e);d=0;}if(d){var w=d[1],g=w[1],T=zZ(0,e);if("number"==typeof T)if(79===T){k0(e,79);var _=br(C0[9],e),S=[0,UK(g[1],_[1]),[2,[0,g,_]]],A=1;}else A=0;else A=0;if(!A)S=g;E=[0,[0,[0,UK(v,S[1]),[0,p,S,w[2]]]]];}else var E=d;b=E;}if(b){2!==zZ(0,e)&&k0(e,10);var x=[0,b[1],x];}else;}}}function a(r){return function(e){var n=$Z(0,e);k0(e,7);for(c=0;;){var a=zZ(0,e);if("number"==typeof a){if(14<=a)s=ja===a?1:0;else if(8<=a)switch(a-8|0){case 2:k0(e,10);c=[0,0,c];continue;case 5:var i=$Z(0,e);k0(e,13);var f=u(e,r),c=[0,[0,[1,[0,UK(i,f[1]),[0,f]]]],c];continue;case 0:s=1;break;default:s=0;}else var s=0;if(s){var o=Nr(c),v=$Z(0,e);if(k0(e,8),81===zZ(0,e))var l=br(t[8],e),b=l[1],k=[0,l];else var b=v,k=0;return[0,UK(n,b),[1,[0,o,k]]]}}var p=u(e,r),h=zZ(0,e);if("number"==typeof h)if(79===h){k0(e,79);var d=br(C0[9],e),m=[0,UK(p[1],d[1]),[2,[0,p,d]]],y=1;}else y=0;else y=0;if(!y)m=p;var w=[0,m];8!==zZ(0,e)&&k0(e,10);c=[0,[0,w],c];}}}function u(t,r){var e=zZ(0,t);if("number"==typeof e){if(1===e)return br(n(r),t);if(7===e)return br(a(r),t)}var u=pr(C0[15],t,0,r);return[0,u[1],[3,u[2]]]}return[0,r,e,function(t,n){var a=n[2],u=n[1];if("number"!=typeof a)switch(a[0]){case 0:return e(t,[0,u,a[1]]);case 2:var i=a[1];if(0===i[1])return[0,u,[2,[0,i[2],i[3]]]];break;case 10:return[0,u,[3,[0,a[1],0,0]]];case 18:return r(t,[0,u,a[1]])}return[0,u,[4,[0,u,a]]]},n,a,u]}(N0),U0=function t(r){return t.fun(r)},M0=function t(r,e,n){return t.fun(r,e,n)},F0=function t(r){return t.fun(r)},X0=function t(r,e){return t.fun(r,e)},B0=function t(r,e){return t.fun(r,e)},G0=function t(r,e){return t.fun(r,e)},q0=function t(r,e){return t.fun(r,e)},j0=function t(r,e){return t.fun(r,e)},Y0=function t(r){return t.fun(r)},J0=function t(r){return t.fun(r)},H0=function t(r,e){return t.fun(r,e)},W0=function t(r,e,n){return t.fun(r,e,n)},z0=function t(r){return t.fun(r)},V0=function t(r){return t.fun(r)},$0=E0(C0),K0=O0[3],Q0=R0[3],Z0=R0[2],t1=R0[6],r1=O0[2],e1=O0[1],n1=O0[4],a1=R0[1],u1=R0[5],i1=R0[4],f1=$0[10],c1=D0[6],s1=D0[3];n(U0,function(t){var r=kr(X0,t,function(t){return 0}),e=$Z(0,t);if(k0(t,ja),r)var n=Ir(Nr(r))[1],a=UK(Ir(r)[1],n);else a=e;return[0,a,r,Nr(t[2][1])]}),n(M0,function(t,r,e){for(var n=OZ(1,t),a=B$;;){var u=a[2],i=a[1],f=zZ(0,n);if("number"==typeof f)if(ja===f)var c=[0,n,i,u],s=1;else s=0;else s=0;if(!s)if(br(r,f))c=[0,n,i,u];else{if("number"==typeof f)p=0;else if(1===f[0]){var o=br(e,n),v=[0,o,u],l=o[2];if("number"!=typeof l&&16===l[0]){var b=l[1][2];if(b){var k=n[6]||rr(b[1],X$),n=RZ(k,n),a=[0,[0,f,i],v];continue}}var c=[0,n,i,v],p=1;}else p=0;if(!p)c=[0,n,i,u];}var h=OZ(0,n);return Rr(function(t){if("number"!=typeof t&&1===t[0]){var r=t[1],e=r[4];return e?s0(h,[0,r[1],33]):e}if("number"==typeof t){var n=t;if(59<=n)switch(n){case 59:a=pP;break;case 60:a=hP;break;case 61:a=dP;break;case 62:a=mP;break;case 63:a=yP;break;case 64:a=wP;break;case 65:a=gP;break;case 66:a=TP;break;case 67:a=_P;break;case 68:a=SP;break;case 69:a=AP;break;case 70:a=EP;break;case 71:a=xP;break;case 72:a=IP;break;case 73:a=CP;break;case 74:a=NP;break;case 75:a=LP;break;case 76:a=RP;break;case 77:a=OP;break;case 78:a=PP;break;case 79:a=DP;break;case 80:a=UP;break;case 81:a=MP;break;case 82:a=FP;break;case 83:a=XP;break;case 84:a=BP;break;case 85:a=GP;break;case 86:a=qP;break;case 87:a=jP;break;case 88:a=YP;break;case 89:a=JP;break;case 90:a=HP;break;case 91:a=WP;break;case 92:a=zP;break;case 93:a=VP;break;case 94:a=$P;break;case 95:a=KP;break;case 96:a=QP;break;case 97:a=ZP;break;case 98:a=tD;break;case 99:a=rD;break;case 100:a=eD;break;case 101:a=nD;break;case 102:a=aD;break;case 103:a=uD;break;case 104:a=iD;break;case 105:a=fD;break;case 106:a=cD;break;case 107:a=sD;break;case 108:a=oD;break;case 109:a=vD;break;case 110:a=lD;break;case 111:a=bD;break;case 112:a=kD;break;case 113:a=pD;break;case 114:a=hD;break;case 115:a=dD;break;case 116:a=mD;break;default:a=yD;}else switch(n){case 0:a=oO;break;case 1:a=vO;break;case 2:a=lO;break;case 3:a=bO;break;case 4:a=kO;break;case 5:a=pO;break;case 6:a=hO;break;case 7:a=dO;break;case 8:a=mO;break;case 9:a=yO;break;case 10:a=wO;break;case 11:a=gO;break;case 12:a=TO;break;case 13:a=_O;break;case 14:a=SO;break;case 15:a=AO;break;case 16:a=EO;break;case 17:a=xO;break;case 18:a=IO;break;case 19:a=CO;break;case 20:a=NO;break;case 21:a=LO;break;case 22:a=RO;break;case 23:a=OO;break;case 24:a=PO;break;case 25:a=DO;break;case 26:a=UO;break;case 27:a=MO;break;case 28:a=FO;break;case 29:a=XO;break;case 30:a=BO;break;case 31:a=GO;break;case 32:a=qO;break;case 33:a=jO;break;case 34:a=YO;break;case 35:a=JO;break;case 36:a=HO;break;case 37:a=WO;break;case 38:a=zO;break;case 39:a=VO;break;case 40:a=$O;break;case 41:a=KO;break;case 42:a=QO;break;case 43:a=ZO;break;case 44:a=tP;break;case 45:a=rP;break;case 46:a=eP;break;case 47:a=nP;break;case 48:a=aP;break;case 49:a=uP;break;case 50:a=iP;break;case 51:a=fP;break;case 52:a=cP;break;case 53:a=sP;break;case 54:a=oP;break;case 55:a=vP;break;case 56:a=lP;break;case 57:a=bP;break;default:a=kP;}}else switch(t[0]){case 0:a=wD;break;case 1:a=gD;break;case 2:a=TD;break;case 3:a=_D;break;case 4:a=SD;break;default:var a=AD;}return gr(Ar(q$,Ar(a,G$)))},Nr(i)),[0,h,c[3]]}}),n(F0,function(t){var r=br(O0[5],t),e=zZ(0,t);if("number"==typeof e){var n=e-49|0;if(!(11>>0))switch(n){case 0:return kr(P0[16],r,t);case 1:br(f0(t),r);var a=zZ(M$,t);return"number"==typeof a&&5===a?br(P0[17],t):br(P0[18],t);case 11:if(49===zZ(F$,t))return br(f0(t),r),kr(P0[12],0,t)}}return kr(j0,[0,r],t)}),n(X0,function(t,r){var e=pr(M0,t,r,F0);return Or(function(t,r){return[0,r,t]},kr(B0,r,e[1]),e[2])}),n(B0,function(t,r){for(n=0;;){var e=zZ(0,r);if("number"==typeof e&&ja===e)return Nr(n);if(br(t,e))return Nr(n);var n=[0,br(F0,r),n];}}),n(G0,function(t,r){var e=pr(M0,r,t,function(t){return kr(j0,0,t)}),n=e[1];return[0,Or(function(t,r){return[0,r,t]},kr(q0,t,n),e[2]),n[6]]}),n(q0,function(t,r){for(n=0;;){var e=zZ(0,r);if("number"==typeof e&&ja===e)return Nr(n);if(br(t,e))return Nr(n);var n=[0,kr(j0,0,r),n];}}),n(j0,function(t,r){var e=t?t[1]:t;1-n0(0,r)&&br(f0(r),e);var n=zZ(0,r);if("number"==typeof n){if(27===n)return br(P0[26],r);if(28===n)return br(P0[3],r)}if(e0(0,r))return br(L0[14],r);if(n0(0,r))return kr(K0,r,e);if("number"==typeof n){var a=n+Zn|0;if(!(9>>0))switch(a){case 0:return br(P0[19],r);case 7:return kr(P0[11],0,r);case 8:return br(P0[25],r);case 9:return br(P0[21],r)}}return br(Y0,r)}),n(Y0,function(t){var r=zZ(0,t);if("number"==typeof r){if(ja===r)return i0(t),[0,$Z(0,t),1];if(!(60<=r))switch(r){case 1:return br(P0[7],t);case 9:return br(P0[15],t);case 16:return br(P0[2],t);case 19:return br(P0[22],t);case 20:return br(P0[23],t);case 22:return br(P0[24],t);case 23:return br(P0[4],t);case 24:return br(P0[26],t);case 25:return br(P0[5],t);case 26:return br(P0[6],t);case 32:return br(P0[8],t);case 35:return br(P0[9],t);case 37:return br(P0[14],t);case 39:return br(P0[1],t);case 59:return br(P0[10],t)}}if(r0(0,t))return br(P0[20],t);if("number"==typeof r){if(81===r)e=1;else if(50<=r)e=0;else switch(r){case 43:return br(P0[2],t);case 2:case 6:case 8:case 10:case 11:case 12:case 13:case 17:case 18:case 33:case 34:case 36:case 38:case 41:case 42:case 49:e=1;break;default:var e=0;}if(e)return i0(t),o0(t),br(Y0,t)}return br(P0[17],t)}),n(J0,function(t){var r=br(R0[2],t),e=zZ(0,t);return"number"==typeof e&&10===e?kr(R0[8],t,[0,r,0]):r}),n(H0,function(t,r){var e=$Z(0,r),n=VZ(0,r),a=zZ(0,r);if("number"==typeof a)if(28===a){r[6]?c0(r,41):r[13]&&a0(r,[1,n]),o0(r);u=1;}else u=0;else var u=0;u||(HZ(n)?(c0(r,41),o0(r)):("number"==typeof a?5<(a+-60|0)>>>0?0:(k0(r,a),1):0)||k0(r,0));t&&WZ(n)&&s0(r,[0,e,t[1]]);return[0,e,n]}),n(W0,function(t,r,e){var n=r?r[1]:r;return _0(function(t){var r=1-n,a=kr(H0,[0,e],t),u=r?80===zZ(0,t)?1:0:r;u&&(1-IZ(t)&&a0(t,8),k0(t,80));var i=81===zZ(0,t)?1:0;return[0,a,i?[0,br(N0[8],t)]:i,u]},t)}),n(z0,function(t){var r=$Z(0,t);k0(t,1);var e=kr(q0,function(t){return 2===t?1:0},t),n=$Z(0,t);return k0(t,2),[0,UK(r,n),[0,e]]}),n(V0,function(t){var r=$Z(0,t);k0(t,1);var e=kr(G0,function(t){return 2===t?1:0},t),n=$Z(0,t);k0(t,2);var a=e[2],u=[0,e[1]];return[0,UK(r,n),u,a]}),pr(pK,J$,C0,[0,U0,Y0,j0,q0,G0,B0,J0,Q0,Z0,t1,r1,a1,H0,i1,W0,z0,V0,f1,c1,s1,e1,K0,n1,u1]);var o1=[0,0],v1=function(t){return t.toString()},l1=function(t,r,e){try{n=new RegExp(r.toString(),e.toString());}catch(r){o1[1]=[0,[0,t,14],o1[1]];var n=new RegExp(fb,e.toString());}return n},b1=function(t,r){function e(t,r){return Et(Vr(Lr(t,r)))}function n(t,r){return r?br(t,r[1]):NK}function a(t){return{line:t[1],column:t[2]}}function i(t){var r=t[1];if(r)var e=r[1],n="number"==typeof e?wf:e[1].toString(),u=n;else u=NK;var i=a(t[3]);return{source:u,start:a(t[2]),end:i}}function c(t,r,e){var n=[0,iO,Et([0,r[2][3],r[3][3]])],a=[0,fO,i(r)],c=[0,[0,cO,t.toString()],a,n],s=c.length-1;if(0===s)var o=e.length-1,v=0===o?[0]:f(e,0,o);else v=0==e.length-1?f(c,0,s):u(c,e);return xt(v)}function s(t){return e(m,t)}function o(t){var r=t[2];switch(r[2]){case 0:n=CN;break;case 1:n=NN;break;default:var n=LN;}var a=[0,RN,n.toString()],u=[0,[0,ON,e(j,r[1])],a];return c(PN,t[1],u)}function v(t){var r=t[2],a=[0,wC,e(P,r[4])],u=[0,gC,J(r[3])],i=[0,TC,n(Q,r[2])],f=[0,[0,_C,T(r[1])],i,u,a];return c(SC,t[1],f)}function l(t,r){var e=r[2],a=t?CI:NI,u=[0,LI,n(W,e[4])],i=[0,RI,n(W,e[3])],f=[0,OI,n(Q,e[2])],s=[0,[0,PI,T(e[1])],f,i,u];return c(a,r[1],s)}function b(t){var r=t[2],e=[0,AI,W(r[3])],a=[0,EI,n(Q,r[2])],u=[0,[0,xI,T(r[1])],a,e];return c(II,t[1],u)}function k(t){var r=t[2],a=[0,fI,e(P,r[4])],u=[0,cI,J(r[3])],i=[0,sI,n(Q,r[2])],f=[0,[0,oI,T(r[1])],i,u,a];return c(vI,t[1],f)}function p(t){var r=t[2],e=UK(r[1][1],r[2][1]),a=[0,aI,n(lt,r[3])],u=[0,[0,uI,A(e,[0,r[1],[0,r[2]],0])],a];return c(iI,t[1],u)}function h(t){var r=t[2],e=r[2],n=e?e[1][1]:r[1][1],a=UK(r[1][1],n),u=[0,[0,eI,A(a,[0,r[1],r[2],0])]];return c(nI,t[1],u)}function d(t){var r=[0,[0,tI,s(t[2][1])]];return c(rI,t[1],r)}function m(t){var r=t[2],a=t[1];if("number"==typeof r)return 0===r?c(P_,a,[0]):c(D_,a,[0]);switch(r[0]){case 0:return d([0,a,r[1]]);case 1:return c(M_,a,[0,[0,U_,n(T,r[1][1])]]);case 2:var u=r[1],i=[0,DI,e(S,u[7])],f=[0,UI,e(N,u[6])],s=[0,MI,n(tt,u[5])],y=[0,FI,n(Q,u[4])],w=[0,XI,n(S,u[3])],_=[0,BI,L(u[2])];return c(qI,a,[0,[0,GI,n(T,u[1])],_,w,y,s,f,i]);case 3:return c(X_,a,[0,[0,F_,n(T,r[1][1])]]);case 4:return k([0,a,r[1]]);case 5:var A=r[1],R=A[3];if(R){var O=R[1];if(0!==O[0]&&!O[2])return c(G_,a,[0,[0,B_,n(g,A[4])]])}var D=A[2];if(D){var M=D[1];switch(M[0]){case 0:F=h(M[1]);break;case 1:F=p(M[1]);break;case 2:F=k(M[1]);break;case 3:F=W(M[1]);break;case 4:F=b(M[1]);break;case 5:F=l(1,M[1]);break;default:var F=v(M[1]);}X=F;}else var X=NK;var B=[0,q_,n(g,A[4])],G=[0,j_,C(A[3])];return c(H_,a,[0,[0,J_,!!A[1]],[0,Y_,X],G,B]);case 6:return p([0,a,r[1]]);case 7:var q=r[1],j=[0,lI,e(P,q[4])],Y=[0,bI,J(q[3])],H=[0,kI,n(Q,q[2])];return c(hI,a,[0,[0,pI,T(q[1])],H,Y,j]);case 8:var z=r[1],V=z[1],$=0===V[0]?T(V[1]):g(V[1]),Z=0===z[3][0]?"CommonJS":"ES";return c($_,a,[0,[0,V_,$],[0,z_,d(z[2])],[0,W_,Z]]);case 9:return c(Q_,a,[0,[0,K_,K(r[1])]]);case 10:var rt=r[1],et=[0,gI,W(rt[3])],nt=[0,TI,n(Q,rt[2])];return c(SI,a,[0,[0,_I,T(rt[1])],nt,et]);case 11:return l(1,[0,a,r[1]]);case 12:return h([0,a,r[1]]);case 13:var at=r[1],ut=[0,Z_,S(at[2])];return c(rS,a,[0,[0,tS,m(at[1])],ut]);case 14:var it=r[1],ft=it[1],ct=0===ft[0]?m(ft[1]):S(ft[1]);return c(aS,a,[0,[0,nS,ct],[0,eS,I(it[2]).toString()]]);case 15:var st=r[1],ot=st[2];if(ot){var vt=ot[1];if(0!==vt[0]&&!vt[2]){var bt=[0,uS,I(st[4]).toString()];return c(fS,a,[0,[0,iS,n(g,st[3])],bt])}}var kt=[0,cS,I(st[4]).toString()],pt=[0,sS,n(g,st[3])],ht=[0,oS,C(st[2])];return c(lS,a,[0,[0,vS,n(m,st[1])],ht,pt,kt]);case 16:var dt=r[1],mt=[0,bS,n(v1,dt[2])];return c(pS,a,[0,[0,kS,S(dt[1])],mt]);case 17:var yt=r[1],wt=function(t){return 0===t[0]?o(t[1]):S(t[1])},gt=[0,hS,m(yt[4])],Tt=[0,dS,n(S,yt[3])],_t=[0,mS,n(S,yt[2])];return c(wS,a,[0,[0,yS,n(wt,yt[1])],_t,Tt,gt]);case 18:var St=r[1],At=St[1],xt=0===At[0]?o(At[1]):S(At[1]),It=[0,gS,!!St[4]],Ct=[0,TS,m(St[3])];return c(AS,a,[0,[0,SS,xt],[0,_S,S(St[2])],Ct,It]);case 19:var Nt=r[1],Lt=Nt[4]?ES:xS,Rt=Nt[1],Ot=0===Rt[0]?o(Rt[1]):S(Rt[1]),Pt=[0,IS,m(Nt[3])];return c(Lt,a,[0,[0,NS,Ot],[0,CS,S(Nt[2])],Pt]);case 20:var Dt=r[1],Ut=Dt[3],Mt=0===Ut[0]?d(Ut[1]):S(Ut[1]),Ft=[0,wx,n(Q,Dt[9])],Xt=[0,gx,n(K,Dt[8])],Bt=[0,Tx,!!Dt[7]],Gt=[0,_x,n(lt,Dt[6])],qt=[0,Sx,!!Dt[5]],jt=[0,Ax,!!Dt[4]],Yt=[0,xx,U(Dt[2])];return c(Cx,a,[0,[0,Ix,n(T,Dt[1])],Yt,[0,Ex,Mt],jt,qt,Gt,Bt,Xt,Ft]);case 21:var Jt=r[1],Ht=[0,LS,n(m,Jt[3])],Wt=[0,RS,m(Jt[2])];return c(PS,a,[0,[0,OS,S(Jt[1])],Wt,Ht]);case 22:var zt=r[1],Vt=Lr(function(t){switch(t[0]){case 0:var r=t[1],e=r[1],n=r[3],a=r[2],u=a?UK(n[1],a[1][1]):n[1],i=a?a[1]:n;if(e)switch(e[1]){case 0:var f=hu,s=1;break;case 1:var f=Nl,s=1;break;default:s=0;}else s=0;if(!s)f=NK;var o=[0,KR,T(i)];return c(ZR,u,[0,[0,QR,T(n)],o,[0,$R,f]]);case 1:var v=t[1],l=[0,[0,HR,T(v)]];return c(WR,v[1],l);default:var b=t[1],k=[0,[0,zR,T(b[2])]];return c(VR,b[1],k)}},zt[3]);switch(zt[1]){case 0:$t=DS;break;case 1:$t=US;break;default:var $t=MS;}var Kt=[0,FS,$t.toString()],Qt=[0,XS,g(zt[2])];return c(GS,a,[0,[0,BS,Et(Vr(Vt))],Qt,Kt]);case 23:return v([0,a,r[1]]);case 24:var Zt=r[1],tr=[0,qS,m(Zt[2])];return c(YS,a,[0,[0,jS,T(Zt[1])],tr]);case 25:return c(HS,a,[0,[0,JS,n(S,r[1][1])]]);case 26:var rr=r[1],er=[0,WS,e(E,rr[2])];return c(VS,a,[0,[0,zS,S(rr[1])],er]);case 27:return c(KS,a,[0,[0,$S,S(r[1][1])]]);case 28:var nr=r[1],ar=[0,QS,n(d,nr[3])],ur=[0,ZS,n(x,nr[2])];return c(rA,a,[0,[0,tA,d(nr[1])],ur,ar]);case 29:return b([0,a,r[1]]);case 30:return l(0,[0,a,r[1]]);case 31:return o([0,a,r[1]]);case 32:var ir=r[1],fr=[0,eA,m(ir[2])];return c(aA,a,[0,[0,nA,S(ir[1])],fr]);default:var cr=r[1],sr=[0,uA,m(cr[2])];return c(fA,a,[0,[0,iA,S(cr[1])],sr])}}function y(t){var r=t[2],a=[0,kR,e(ut,r[3])],u=[0,pR,n(nt,r[2])],i=r[1],f=i[2],s=[0,mR,!!f[2]],o=[0,yR,e(rt,f[3])],v=[0,[0,wR,st(f[1])],o,s],l=[0,[0,hR,c(gR,i[1],v)],u,a];return c(dR,t[1],l)}function w(t){var r=t[2],n=[0,wN,e(S,r[2])],a=[0,[0,gN,e(q,r[1])],n];return c(TN,t[1],a)}function g(t){var r=t[2],e=r[2],n=r[1],a=t[1];if("number"==typeof n)i=NK;else switch(n[0]){case 0:i=n[1].toString();break;case 1:i=!!n[1];break;case 2:i=n[1];break;default:var u=n[1],i=l1(a,u[1],u[2]);}if("number"==typeof n)o=0;else if(3===n[0])var f=n[1],s=[0,[0,hN,i],[0,pN,e.toString()],[0,kN,{pattern:f[1].toString(),flags:f[2].toString()}]],o=1;else o=0;if(!o)s=[0,[0,mN,i],[0,dN,e.toString()]];return c(yN,a,s)}function T(t){return c(jx,t[1],[0,[0,qx,t[2].toString()],[0,Gx,NK],[0,Bx,!1]])}function _(t){var r=t[2],e=r[3],a=0===e[0]?d(e[1]):S(e[1]),u=[0,Nx,n(Q,r[9])],i=[0,Lx,n(K,r[8])],f=[0,Rx,!!r[7]],s=[0,Ox,n(lt,r[6])],o=[0,Px,!!r[5]],v=[0,Dx,!!r[4]],l=[0,Mx,U(r[2])],b=[0,[0,Fx,n(T,r[1])],l,[0,Ux,a],v,o,s,f,i,u];return c(Xx,t[1],b)}function S(t){var r=t[2],a=t[1];if("number"==typeof r)return 0===r?c(cA,a,[0]):c(sA,a,[0]);switch(r[0]){case 0:var u=r[1][1];return c(vA,a,[0,[0,oA,e(function(t){return n(B,t)},u)]]);case 1:var i=r[1],f=i[3],s=0===f[0]?d(f[1]):S(f[1]),o=[0,lA,n(Q,i[9])],v=[0,bA,n(K,i[8])],l=[0,kA,!!i[7]],b=[0,pA,n(lt,i[6])],k=[0,hA,!!i[5]],p=[0,dA,!!i[4]],h=[0,yA,U(i[2])];return c(gA,a,[0,[0,wA,n(T,i[1])],h,[0,mA,s],p,k,b,l,v,o]);case 2:var m=r[1];switch(m[1]){case 0:A=TA;break;case 1:A=_A;break;case 2:A=SA;break;case 3:A=AA;break;case 4:A=EA;break;case 5:A=xA;break;case 6:A=IA;break;case 7:A=CA;break;case 8:A=NA;break;case 9:A=LA;break;case 10:A=RA;break;case 11:A=OA;break;default:var A=PA;}var E=[0,DA,S(m[3])],x=[0,UA,D(m[2])];return c(FA,a,[0,[0,MA,A.toString()],x,E]);case 3:var I=r[1];switch(I[1]){case 0:C=XA;break;case 1:C=BA;break;case 2:C=GA;break;case 3:C=qA;break;case 4:C=jA;break;case 5:C=YA;break;case 6:C=JA;break;case 7:C=HA;break;case 8:C=WA;break;case 9:C=zA;break;case 10:C=VA;break;case 11:C=$A;break;case 12:C=KA;break;case 13:C=QA;break;case 14:C=ZA;break;case 15:C=tE;break;case 16:C=rE;break;case 17:C=eE;break;case 18:C=nE;break;case 19:C=aE;break;case 20:C=uE;break;default:var C=iE;}var R=[0,fE,S(I[3])],O=[0,cE,S(I[2])];return c(oE,a,[0,[0,sE,C.toString()],O,R]);case 4:var P=r[1],M=[0,vE,e(B,P[2])];return c(bE,a,[0,[0,lE,S(P[1])],M]);case 5:var X=r[1],q=[0,jI,e(S,X[7])],j=[0,YI,e(N,X[6])],Y=[0,JI,n(tt,X[5])],J=[0,HI,n(Q,X[4])],H=[0,WI,n(S,X[3])],W=[0,zI,L(X[2])];return c($I,a,[0,[0,VI,n(T,X[1])],W,H,J,Y,j,q]);case 6:var z=r[1],V=[0,kE,n(S,z[2])];return c(hE,a,[0,[0,pE,e(G,z[1])],V]);case 7:var $=r[1],Z=[0,dE,S($[3])],rt=[0,mE,S($[2])];return c(wE,a,[0,[0,yE,S($[1])],rt,Z]);case 8:return _([0,a,r[1]]);case 9:var et=r[1],nt=[0,gE,n(S,et[2])];return c(_E,a,[0,[0,TE,e(G,et[1])],nt]);case 10:return T(r[1]);case 11:var at=r[1],ut=[0,SE,e(S,[0,at,0])];return c(xE,a,[0,[0,EE,c(AE,UK(a,at[1]),[0])],ut]);case 12:return y([0,a,r[1]]);case 13:return g([0,a,r[1]]);case 14:var it=r[1],ft=0===it[1]?CE:IE,ct=[0,NE,S(it[3])],st=[0,LE,S(it[2])];return c(OE,a,[0,[0,RE,ft.toString()],st,ct]);case 15:var ot=r[1],vt=ot[2],bt=0===vt[0]?T(vt[1]):S(vt[1]),kt=[0,PE,!!ot[3]];return c(ME,a,[0,[0,UE,S(ot[1])],[0,DE,bt],kt]);case 16:var pt=r[1],ht=[0,FE,T(pt[2])];return c(BE,a,[0,[0,XE,T(pt[1])],ht]);case 17:var dt=r[1],mt=[0,GE,e(B,dt[2])];return c(jE,a,[0,[0,qE,S(dt[1])],mt]);case 18:return c(JE,a,[0,[0,YE,e(F,r[1][1])]]);case 19:return c(WE,a,[0,[0,HE,e(S,r[1][1])]]);case 20:var yt=r[1],wt=[0,EN,w(yt[2])];return c(IN,a,[0,[0,xN,S(yt[1])],wt]);case 21:return w([0,a,r[1]]);case 22:var gt=r[1],Tt=[0,zE,K(gt[2])];return c($E,a,[0,[0,VE,S(gt[1])],Tt]);case 23:var _t=r[1];if(7<=_t[1])return c(QE,a,[0,[0,KE,S(_t[3])]]);switch(_t[1]){case 0:St=ZE;break;case 1:St=tx;break;case 2:St=rx;break;case 3:St=ex;break;case 4:St=nx;break;case 5:St=ax;break;case 6:St=ux;break;default:var St=gr(ix);}var At=[0,fx,S(_t[3])];return c(ox,a,[0,[0,sx,St.toString()],[0,cx,!!_t[2]],At]);case 24:var Et=r[1],xt=0===Et[1]?lx:vx,It=[0,bx,!!Et[3]],Ct=[0,kx,S(Et[2])];return c(hx,a,[0,[0,px,xt.toString()],Ct,It]);default:var Nt=r[1],Lt=[0,dx,!!Nt[2]];return c(yx,a,[0,[0,mx,n(S,Nt[1])],Lt])}}function A(t,r){var e=[0,Yx,!!r[3]],a=[0,Jx,n(K,r[2])];return c(Wx,t,[0,[0,Hx,r[1][2].toString()],a,e])}function E(t){var r=t[2],a=[0,zx,e(m,r[2])],u=[0,[0,Vx,n(S,r[1])],a];return c($x,t[1],u)}function x(t){var r=t[2],e=[0,Kx,d(r[2])],n=[0,[0,Qx,D(r[1])],e];return c(Zx,t[1],n)}function I(t){return 0===t?mI:dI}function C(t){if(t){var r=t[1];if(0===r[0])return e(vt,r[1]);var n=r[2];if(n){var a=[0,[0,yI,T(n[1])]];return Et([0,c(wI,r[1],a)])}return Et([0])}return Et([0])}function N(t){var r=t[2],e=[0,KI,n(tt,r[2])],a=[0,[0,QI,T(r[1])],e];return c(ZI,t[1],a)}function L(t){var r=[0,[0,tC,e(O,t[2][1])]];return c(rC,t[1],r)}function O(t){if(0===t[0]){var r=t[1],a=r[2],u=a[2];switch(u[0]){case 0:i=[0,g(u[1]),0];break;case 1:i=[0,T(u[1]),0];break;default:var i=[0,S(u[1]),1];}switch(a[1]){case 0:f=eC;break;case 1:f=nC;break;case 2:f=aC;break;default:var f=uC;}var s=[0,iC,e(S,a[5])],o=[0,fC,!!i[2]],v=[0,cC,!!a[4]],l=[0,sC,f.toString()],b=[0,oC,_(a[3])];return c(lC,r[1],[0,[0,vC,i[1]],b,l,v,o,s])}var k=t[1],p=k[2],h=p[1];switch(h[0]){case 0:d=[0,g(h[1]),0];break;case 1:d=[0,T(h[1]),0];break;default:var d=[0,S(h[1]),1];}var m=[0,bC,n(Y,p[5])],y=[0,kC,!!p[4]],w=[0,pC,!!d[2]],A=[0,hC,n(K,p[3])],E=[0,dC,n(S,p[2])];return c(yC,k[1],[0,[0,mC,d[1]],E,A,w,y,m])}function P(t){var r=t[2],e=r[1],a=0===e[0]?T(e[1]):$(e[1]),u=[0,[0,EC,a],[0,AC,n(tt,r[2])]];return c(xC,t[1],u)}function D(t){var r=t[2],a=t[1];switch(r[0]){case 0:var u=r[1],i=[0,IC,n(K,u[2])];return c(NC,a,[0,[0,CC,e(X,u[1])],i]);case 1:var f=r[1],s=[0,LC,n(K,f[2])],o=f[1];return c(OC,a,[0,[0,RC,e(function(t){return n(M,t)},o)],s]);case 2:var v=r[1],l=[0,PC,S(v[2])];return c(UC,a,[0,[0,DC,D(v[1])],l]);case 3:return A(a,r[1]);default:return S(r[1])}}function U(t){var r=t[2],n=t[1];if(r){var a=r[1],u=[0,[0,MC,D(a[2][1])]];return Et(Vr(Nr([0,c(FC,a[1],u),Nr(Lr(D,n))])))}return e(D,n)}function M(t){if(0===t[0])return D(t[1]);var r=t[1],e=[0,[0,XC,D(r[2][1])]];return c(BC,r[1],e)}function F(t){if(0===t[0]){var r=t[1],e=r[2],n=e[1];switch(n[0]){case 0:a=[0,g(n[1]),0];break;case 1:a=[0,T(n[1]),0];break;default:var a=[0,S(n[1]),1];}var u=e[2];switch(u[0]){case 0:i=[0,S(u[1]),GC];break;case 1:i=[0,_(u[1]),qC];break;default:var i=[0,_(u[1]),jC];}return c($C,r[1],[0,[0,VC,a[1]],[0,zC,i[1]],[0,WC,i[2].toString()],[0,HC,!!e[3]],[0,JC,!!e[4]],[0,YC,!!a[2]]])}var f=t[1],s=[0,[0,KC,S(f[2][1])]];return c(QC,f[1],s)}function X(t){if(0===t[0]){var r=t[1],e=r[2],n=e[1];switch(n[0]){case 0:a=[0,g(n[1]),0];break;case 1:a=[0,T(n[1]),0];break;default:var a=[0,S(n[1]),1];}var u=[0,ZC,!!a[2]],i=[0,tN,!!e[3]],f=[0,nN,D(e[2])];return c(uN,r[1],[0,[0,aN,a[1]],f,[0,eN,ps],[0,rN,!1],i,u])}var s=t[1],o=[0,[0,iN,D(s[2][1])]];return c(fN,s[1],o)}function B(t){if(0===t[0])return S(t[1]);var r=t[1],e=[0,[0,cN,S(r[2][1])]];return c(sN,r[1],e)}function G(t){var r=t[2],e=[0,oN,!!r[3]],n=[0,vN,S(r[2])],a=[0,[0,lN,D(r[1])],n,e];return c(bN,t[1],a)}function q(t){var r=t[2];return c(AN,t[1],[0,[0,SN,{raw:r[1][1].toString(),cooked:r[1][2].toString()}],[0,_N,!!r[2]]])}function j(t){var r=t[2],e=[0,DN,n(S,r[2])],a=[0,[0,UN,D(r[1])],e];return c(MN,t[1],a)}function Y(t){return 0===t[2]?"plus":Io}function J(t){var r=t[2],e=r[2],a=Or(function(t,r){var e=t[3],a=t[2],u=t[1];switch(r[0]){case 0:var i=r[1],f=i[2],s=f[1];switch(s[0]){case 0:o=g(s[1]);break;case 1:o=T(s[1]);break;default:var o=gr(sL);}var v=f[2];switch(v[0]){case 0:b=[0,W(v[1]),oL];break;case 1:var l=v[1],b=[0,H([0,l[1],l[2]]),vL];break;default:var k=v[1],b=[0,H([0,k[1],k[2]]),lL];}var p=[0,bL,b[2].toString()],h=[0,kL,n(Y,f[6])];return[0,[0,c(yL,i[1],[0,[0,mL,o],[0,dL,b[1]],[0,hL,!!f[3]],[0,pL,!!f[4]],h,p]),u],a,e];case 1:var d=r[1],m=[0,[0,wL,W(d[2][1])]];return[0,[0,c(gL,d[1],m),u],a,e];case 2:var y=r[1],w=y[2],_=[0,TL,n(Y,w[5])],S=[0,_L,!!w[4]],A=[0,SL,W(w[3])],E=[0,AL,W(w[2])],x=[0,[0,EL,n(T,w[1])],E,A,S,_];return[0,u,[0,c(xL,y[1],x),a],e];default:var I=r[1],C=I[2],N=[0,IL,!!C[2]],L=[0,[0,CL,H(C[1])],N];return[0,u,a,[0,c(NL,I[1],L),e]]}},nL,e),u=[0,aL,Et(Vr(Nr(a[3])))],i=[0,uL,Et(Vr(Nr(a[2])))],f=[0,iL,Et(Vr(Nr(a[1])))];return c(cL,t[1],[0,[0,fL,!!r[1]],f,i,u])}function H(t){var r=t[2],a=r[1],u=[0,zN,n(Q,r[3])],i=[0,VN,n(V,a[2])],f=[0,$N,W(r[2])],s=[0,[0,KN,e(z,a[1])],f,i,u];return c(QN,t[1],s)}function W(t){var r=t[2],a=t[1];if("number"==typeof r)switch(r){case 0:return c(FN,a,[0]);case 1:return c(XN,a,[0]);case 2:return c(BN,a,[0]);case 3:return c(GN,a,[0]);case 4:return c(qN,a,[0]);case 5:return c(jN,a,[0]);case 6:return c(YN,a,[0]);case 7:return c(JN,a,[0]);default:return c(eR,a,[0])}else switch(r[0]){case 0:return c(WN,a,[0,[0,HN,W(r[1])]]);case 1:return H([0,a,r[1]]);case 2:return J([0,a,r[1]]);case 3:return c(RL,a,[0,[0,LL,W(r[1])]]);case 4:var u=r[1],i=u[1],f=0===i[0]?T(i[1]):$(i[1]);return c(FL,a,[0,[0,ML,f],[0,UL,n(tt,u[2])]]);case 5:return c(BL,a,[0,[0,XL,e(W,[0,r[1],[0,r[2],r[3]]])]]);case 6:return c(qL,a,[0,[0,GL,e(W,[0,r[1],[0,r[2],r[3]]])]]);case 7:return c(YL,a,[0,[0,jL,W(r[1])]]);case 8:return c(HL,a,[0,[0,JL,e(W,r[1])]]);case 9:var s=r[1];return c(VL,a,[0,[0,zL,s[1].toString()],[0,WL,s[2].toString()]]);case 10:var o=r[1];return c(QL,a,[0,[0,KL,o[1]],[0,$L,o[2].toString()]]);default:var v=r[1];return c(rR,a,[0,[0,tR,!!v[1]],[0,ZL,v[2].toString()]])}}function z(t){var r=t[2],e=[0,ZN,!!r[3]],a=[0,tL,W(r[2])],u=[0,[0,rL,n(T,r[1])],a,e];return c(eL,t[1],u)}function V(t){return z(t[2][1])}function $(t){var r=t[2],e=r[1],n=0===e[0]?T(e[1]):$(e[1]),a=[0,[0,PL,n],[0,OL,T(r[2])]];return c(DL,t[1],a)}function K(t){var r=[0,[0,nR,W(t[2])]];return c(aR,t[1],r)}function Q(t){var r=[0,[0,uR,e(Z,t[2][1])]];return c(iR,t[1],r)}function Z(t){var r=t[2],e=[0,fR,n(W,r[4])],a=[0,cR,n(Y,r[3])],u=[0,sR,n(K,r[2])];return c(vR,t[1],[0,[0,oR,r[1].toString()],u,a,e])}function tt(t){var r=[0,[0,lR,e(W,t[2][1])]];return c(bR,t[1],r)}function rt(t){if(0===t[0]){var r=t[1],e=r[2],a=e[1],u=0===a[0]?it(a[1]):ft(a[1]),i=[0,[0,AR,u],[0,SR,n(ot,e[2])]];return c(ER,r[1],i)}var f=t[1],s=[0,[0,xR,S(f[2][1])]];return c(IR,f[1],s)}function nt(t){var r=[0,[0,TR,st(t[2][1])]];return c(_R,t[1],r)}function at(t){var r=t[2][1],e=0===r[0]?S(r[1]):c(CR,r[1],[0]);return c(LR,t[1],[0,[0,NR,e]])}function ut(t){var r=t[2],e=t[1];switch(r[0]){case 0:return y([0,e,r[1]]);case 1:return at([0,e,r[1]]);default:var n=r[1];return c(PR,e,[0,[0,OR,n[1].toString()],[0,RR,n[2].toString()]])}}function it(t){return c(qR,t[1],[0,[0,GR,t[2][1].toString()]])}function ft(t){var r=t[2],e=[0,FR,it(r[2])],n=[0,[0,XR,it(r[1])],e];return c(BR,t[1],n)}function ct(t){var r=t[2],e=r[1],n=0===e[0]?it(e[1]):ct(e[1]),a=[0,[0,UR,n],[0,DR,it(r[2])]];return c(MR,t[1],a)}function st(t){switch(t[0]){case 0:return it(t[1]);case 1:return ft(t[1]);default:return ct(t[1])}}function ot(t){return 0===t[0]?g([0,t[1],t[2]]):at([0,t[1],t[2]])}function vt(t){var r=t[2],e=r[2],n=T(e?e[1]:r[1]),a=[0,[0,YR,T(r[1])],[0,jR,n]];return c(JR,t[1],a)}function lt(t){var r=t[2];if(r)var e=aO,n=[0,[0,nO,S(r[1])]];else var e=uO,n=[0];return c(e,t[1],n)}var bt=R(r,void 0)?{}:r,kt=bt.esproposal_decorators,pt=et(t);if(LK(kt)){var ht=em.slice();ht[3]=0|kt;dt=ht;}else var dt=em;var mt=bt.esproposal_class_instance_fields;if(LK(mt)){var yt=dt.slice();yt[1]=0|mt;wt=yt;}else var wt=dt;var gt=bt.esproposal_class_static_fields;if(LK(gt)){var Tt=wt.slice();Tt[2]=0|gt;_t=Tt;}else var _t=wt;var St=bt.esproposal_export_star_as;if(LK(St)){var At=_t.slice();At[4]=0|St;It=At;}else var It=_t;var Ct=bt.types;if(LK(Ct)){var Nt=It.slice();Nt[5]=0|Ct;Lt=Nt;}else var Lt=It;var Rt=[0,[0,Lt]],Ot=um?um[1]:1,Pt=[0,Rt?Rt[1]:Rt],Dt=[0,0],Ut=EZ([0,Dt?Dt[1]:Dt],[0,Pt?Pt[1]:Pt],0,pt),Mt=br(C0[1],Ut),Ft=Nr(Ut[1][1]),Xt=Nr(Or(function(t,r){var e=t[2],n=t[1];return kr(I0[3],r,n)?[0,n,e]:[0,kr(I0[4],r,n),[0,r,e]]},[0,I0[1],0],Ft)[2]);if(Ot?0!==Xt?1:0:Ot)throw[0,KK,Xt];o1[1]=0;var Bt=s(Mt[2]),Gt=[0,[0,R_,Bt],[0,L_,e(function(t){var r=t[2],e=0===r[0]?[0,tO,r[1]]:[0,rO,r[1]];return c(e[1],t[1],[0,[0,eO,e[2].toString()]])},Mt[3])]],qt=c(O_,Mt[1],Gt),jt=Er(Xt,o1[1]);return qt.errors=e(function(t){var r=t[2];if("number"==typeof r){var e=r;if(35<=e)switch(e){case 35:u=UT;break;case 36:u=MT;break;case 37:u=FT;break;case 38:u=XT;break;case 39:u=BT;break;case 40:u=GT;break;case 41:u=qT;break;case 42:u=jT;break;case 43:u=YT;break;case 44:u=JT;break;case 45:u=HT;break;case 46:u=WT;break;case 47:u=Ar(VT,zT);break;case 48:u=Ar(KT,$T);break;case 49:u=QT;break;case 50:u=ZT;break;case 51:u=t_;break;case 52:u=r_;break;case 53:u=e_;break;case 54:u=n_;break;case 55:u=a_;break;case 56:u=u_;break;case 57:u=i_;break;case 58:u=f_;break;case 59:u=c_;break;case 60:u=s_;break;case 61:u=o_;break;case 62:u=v_;break;case 63:u=l_;break;case 64:u=b_;break;case 65:u=Ar(p_,k_);break;case 66:u=h_;break;case 67:u=d_;break;default:u=m_;}else switch(e){case 0:u=tT;break;case 1:u=rT;break;case 2:u=eT;break;case 3:u=nT;break;case 4:u=aT;break;case 5:u=uT;break;case 6:u=iT;break;case 7:u=fT;break;case 8:u=cT;break;case 9:u=sT;break;case 10:u=oT;break;case 11:u=vT;break;case 12:u=lT;break;case 13:u=bT;break;case 14:u=kT;break;case 15:u=pT;break;case 16:u=hT;break;case 17:u=dT;break;case 18:u=mT;break;case 19:u=yT;break;case 20:u=Ar(gT,wT);break;case 21:u=TT;break;case 22:u=_T;break;case 23:u=ST;break;case 24:u=AT;break;case 25:u=ET;break;case 26:u=xT;break;case 27:u=IT;break;case 28:u=CT;break;case 29:u=NT;break;case 30:u=LT;break;case 31:u=RT;break;case 32:u=OT;break;case 33:u=PT;break;default:u=DT;}}else switch(r[0]){case 0:u=Ar(y_,r[1]);break;case 1:u=Ar(w_,r[1]);break;case 2:var n=r[2],a=r[1],u=kr(Oe(g_),a,n);break;case 3:u=Ar(__,Ar(r[1],T_));break;case 4:u=Ar(A_,Ar(r[1],S_));break;case 5:var f=Ar(x_,Ar(r[2],E_)),u=Ar(r[1],f);break;case 6:u=Ar(I_,r[1]);break;default:var c=r[1],u=br(Oe(C_),c);}var s=u.toString();return{loc:i(t[1]),message:s}},jt),qt},k1=function(t){return t[1]===OK?br(DK,t[2]):br(DK,new PK(Ar(H$,function(r){for(d=r;;){if(!d){if(t===jd)return Xw;if(t===zd)return Bw;if(t[1]===Wd){var e=t[2],n=e[3],a=e[2],u=e[1];return dr(Oe(Kd),u,a,n,n+5|0,Gw)}if(t[1]===Vd){var i=t[2],f=i[3],c=i[2],s=i[1];return dr(Oe(Kd),s,c,f,f+6|0,qw)}if(t[1]===$d){var o=t[2],v=o[3],l=o[2],b=o[1];return dr(Oe(Kd),b,l,v,v+6|0,jw)}return 0===Qt(t)?Ar(t[1][1],Ue(t)):t[1]}var k=d[2],p=d[1];try{h=br(p,t);}catch(t){var h=0;}if(h)return h[1];var d=k;}}(aK[1])).toString()))};return r.parse=function(t,r){try{return b1(t,r)}catch(r){return r=lr(r),k1(r)}},void br($$[1],0)}var p1=AK;}else var h1=SK;}else var d1=_K;}else gK=TK;}}(function(){return this}());});const createError=parserCreateError; const includeShebang=parserIncludeShebang;var parserFlow=parse;var parserFlow_1=parserFlow; - -return parserFlow_1; - -}()); diff --git a/website/static/lib/parser-graphql.js b/website/static/lib/parser-graphql.js deleted file mode 100644 index 506b8354..00000000 --- a/website/static/lib/parser-graphql.js +++ /dev/null @@ -1,18 +0,0 @@ -var graphql = (function () { -function unwrapExports (x) { - return x && x.__esModule ? x['default'] : x; -} - -function createCommonjsModule(fn, module) { - return module = { exports: {} }, fn(module, module.exports), module.exports; -} - -var parserGraphql_1 = createCommonjsModule(function (module) { -"use strict";function createError$1(e,n){const r=new SyntaxError(e+" ("+n.start.line+":"+n.start.column+")");return r.loc=n,r}function createCommonjsModule$$1(e,n){return n={exports:{}},e(n,n.exports),n.exports}function parseComments(e){const n=[];let r=e.loc.startToken.next;for(;""!==r.kind;)"Comment"===r.kind&&(Object.assign(r,{column:r.column-1}),n.push(r)),r=r.next;return n}function removeTokens(e){if(e&&"object"==typeof e){delete e.startToken,delete e.endToken,delete e.prev,delete e.next;for(const n in e)removeTokens(e[n]);}return e}function parse(e){const n=index;try{const r=n.parse(e);return r.comments=parseComments(r),removeTokens(r),r}catch(e){throw e instanceof index$2.GraphQLError?createError(e.message,{start:{line:e.locations[0].line,column:e.locations[0].column}}):e}}var parserCreateError=createError$1,location=createCommonjsModule$$1(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getLocation=function(e,n){for(var r=/\r\n|[\n\r]/g,t=1,i=n+1,o=void 0;(o=r.exec(e.body))&&o.index0){var l=n[0];c=l&&l.loc&&l.loc.source;}var s=o;!s&&n&&(s=n.filter(function(e){return Boolean(e.loc)}).map(function(e){return e.loc.start})),s&&0===s.length&&(s=void 0);var f=void 0,d=c;d&&s&&(f=s.map(function(e){return(0,t.getLocation)(d,e)})),Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:f||void 0,enumerable:!0},path:{value:a||void 0,enumerable:!0},nodes:{value:n||void 0},source:{value:c||void 0},positions:{value:s||void 0},originalError:{value:u}}),u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,r):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0});}Object.defineProperty(n,"__esModule",{value:!0}),n.GraphQLError=r;var t=location;r.prototype=Object.create(Error.prototype,{constructor:{value:r},name:{value:"GraphQLError"}});}),syntaxError_1=createCommonjsModule$$1(function(e,n){function r(e,n){var r=n.line,a=e.locationOffset.line-1,u=t(e,n),c=r+a,l=(c-1).toString(),s=c.toString(),f=(c+1).toString(),d=f.length,v=e.body.split(/\r\n|[\n\r]/g);return v[0]=i(e.locationOffset.column-1)+v[0],(r>=2?o(d,l)+": "+v[r-2]+"\n":"")+o(d,s)+": "+v[r-1]+"\n"+i(2+d+n.column-1+u)+"^\n"+(r=s)return new t(m,s,s,v,T,n);var C=w.call(o,d);if(C<32&&9!==C&&10!==C&&13!==C)throw(0,E.syntaxError)(r,d,"Cannot contain the invalid character "+i(C)+".");switch(C){case 33:return new t(k,d,d+1,v,T,n);case 35:return c(r,d,v,T,n);case 36:return new t(y,d,d+1,v,T,n);case 40:return new t(N,d,d+1,v,T,n);case 41:return new t(I,d,d+1,v,T,n);case 46:if(46===w.call(o,d+1)&&46===w.call(o,d+2))return new t(O,d,d+3,v,T,n);break;case 58:return new t(_,d,d+1,v,T,n);case 61:return new t(h,d,d+1,v,T,n);case 64:return new t(A,d,d+1,v,T,n);case 91:return new t(D,d,d+1,v,T,n);case 93:return new t(b,d,d+1,v,T,n);case 123:return new t(g,d,d+1,v,T,n);case 124:return new t(L,d,d+1,v,T,n);case 125:return new t(S,d,d+1,v,T,n);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return p(r,d,v,T,n);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return l(r,d,C,v,T,n);case 34:return f(r,d,v,T,n)}throw(0,E.syntaxError)(r,d,a(C))}function a(e){return 39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character "+i(e)+"."}function u(e,n,r){for(var t=e.length,i=n;i31||9===u));return new t(F,n,c,r,i,o,j.call(a,n+1,c))}function l(e,n,r,o,a,u){var c=e.body,l=r,f=n,d=!1;if(45===l&&(l=w.call(c,++f)),48===l){if((l=w.call(c,++f))>=48&&l<=57)throw(0,E.syntaxError)(e,f,"Invalid number, unexpected digit after 0: "+i(l)+".")}else f=s(e,f,l),l=w.call(c,f);return 46===l&&(d=!0,l=w.call(c,++f),f=s(e,f,l),l=w.call(c,f)),69!==l&&101!==l||(d=!0,43!==(l=w.call(c,++f))&&45!==l||(l=w.call(c,++f)),f=s(e,f,l)),new t(d?R:P,n,f,o,a,u,j.call(c,n,f))}function s(e,n,r){var t=e.body,o=n,a=r;if(a>=48&&a<=57){do{a=w.call(t,++o);}while(a>=48&&a<=57);return o}throw(0,E.syntaxError)(e,o,"Invalid number, expected digit but got: "+i(a)+".")}function f(e,n,r,o,a){for(var u=e.body,c=n+1,l=c,s=0,f="";c=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function p(e,n,r,i,o){for(var a=e.body,u=a.length,c=n+1,l=0;c!==u&&null!==(l=w.call(a,c))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++c;return new t(C,n,c,r,i,o,j.call(a,n,c))}Object.defineProperty(n,"__esModule",{value:!0}),n.TokenKind=void 0,n.createLexer=function(e,n){var i=new t(T,0,0,0,0,null);return{source:e,options:n,lastToken:i,token:i,line:1,lineStart:0,advance:r}},n.getTokenDesc=function(e){var n=e.value;return n?e.kind+' "'+n+'"':e.kind};var E=index$2,T="",m="",k="!",y="$",N="(",I=")",O="...",_=":",h="=",A="@",D="[",b="]",g="{",L="|",S="}",C="Name",P="Int",R="Float",K="String",F="Comment",w=(n.TokenKind={SOF:T,EOF:m,BANG:k,DOLLAR:y,PAREN_L:N,PAREN_R:I,SPREAD:O,COLON:_,EQUALS:h,AT:A,BRACKET_L:D,BRACKET_R:b,BRACE_L:g,PIPE:L,BRACE_R:S,NAME:C,INT:P,FLOAT:R,STRING:K,COMMENT:F},String.prototype.charCodeAt),j=String.prototype.slice;t.prototype.toJSON=t.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}};}),source=createCommonjsModule$$1(function(e,n){function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0}),n.Source=void 0;var t=function(e){return e&&e.__esModule?e:{default:e}}(invariant_1);n.Source=function e(n,i,o){r(this,e),this.body=n,this.name=i||"GraphQL request",this.locationOffset=o||{line:1,column:1},this.locationOffset.line>0||(0,t.default)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||(0,t.default)(0,"column in locationOffset is 1-indexed and must be positive");};}),kinds=createCommonjsModule$$1(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});n.NAME="Name",n.DOCUMENT="Document",n.OPERATION_DEFINITION="OperationDefinition",n.VARIABLE_DEFINITION="VariableDefinition",n.VARIABLE="Variable",n.SELECTION_SET="SelectionSet",n.FIELD="Field",n.ARGUMENT="Argument",n.FRAGMENT_SPREAD="FragmentSpread",n.INLINE_FRAGMENT="InlineFragment",n.FRAGMENT_DEFINITION="FragmentDefinition",n.INT="IntValue",n.FLOAT="FloatValue",n.STRING="StringValue",n.BOOLEAN="BooleanValue",n.NULL="NullValue",n.ENUM="EnumValue",n.LIST="ListValue",n.OBJECT="ObjectValue",n.OBJECT_FIELD="ObjectField",n.DIRECTIVE="Directive",n.NAMED_TYPE="NamedType",n.LIST_TYPE="ListType",n.NON_NULL_TYPE="NonNullType",n.SCHEMA_DEFINITION="SchemaDefinition",n.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",n.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",n.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",n.FIELD_DEFINITION="FieldDefinition",n.INPUT_VALUE_DEFINITION="InputValueDefinition",n.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",n.UNION_TYPE_DEFINITION="UnionTypeDefinition",n.ENUM_TYPE_DEFINITION="EnumTypeDefinition",n.ENUM_VALUE_DEFINITION="EnumValueDefinition",n.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",n.TYPE_EXTENSION_DEFINITION="TypeExtensionDefinition",n.DIRECTIVE_DEFINITION="DirectiveDefinition";}),parser=createCommonjsModule$$1(function(e,n){function r(e){var n=H(e,te.TokenKind.NAME);return{kind:ie.NAME,value:n.value,loc:J(e,n)}}function t(e){var n=e.token;H(e,te.TokenKind.SOF);var r=[];do{r.push(i(e));}while(!W(e,te.TokenKind.EOF));return{kind:ie.DOCUMENT,definitions:r,loc:J(e,n)}}function i(e){if($(e,te.TokenKind.BRACE_L))return o(e);if($(e,te.TokenKind.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":return o(e);case"fragment":return T(e);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"extend":case"directive":return g(e)}throw z(e)}function o(e){var n=e.token;if($(e,te.TokenKind.BRACE_L))return{kind:ie.OPERATION_DEFINITION,operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:s(e),loc:J(e,n)};var t=a(e),i=void 0;return $(e,te.TokenKind.NAME)&&(i=r(e)),{kind:ie.OPERATION_DEFINITION,operation:t,name:i,variableDefinitions:u(e),directives:h(e),selectionSet:s(e),loc:J(e,n)}}function a(e){var n=H(e,te.TokenKind.NAME);switch(n.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw z(e,n)}function u(e){return $(e,te.TokenKind.PAREN_L)?ee(e,te.TokenKind.PAREN_L,c,te.TokenKind.PAREN_R):[]}function c(e){var n=e.token;return{kind:ie.VARIABLE_DEFINITION,variable:l(e),type:(H(e,te.TokenKind.COLON),D(e)),defaultValue:W(e,te.TokenKind.EQUALS)?k(e,!0):null,loc:J(e,n)}}function l(e){var n=e.token;return H(e,te.TokenKind.DOLLAR),{kind:ie.VARIABLE,name:r(e),loc:J(e,n)}}function s(e){var n=e.token;return{kind:ie.SELECTION_SET,selections:ee(e,te.TokenKind.BRACE_L,f,te.TokenKind.BRACE_R),loc:J(e,n)}}function f(e){return $(e,te.TokenKind.SPREAD)?E(e):d(e)}function d(e){var n=e.token,t=r(e),i=void 0,o=void 0;return W(e,te.TokenKind.COLON)?(i=t,o=r(e)):(i=null,o=t),{kind:ie.FIELD,alias:i,name:o,arguments:v(e),directives:h(e),selectionSet:$(e,te.TokenKind.BRACE_L)?s(e):null,loc:J(e,n)}}function v(e){return $(e,te.TokenKind.PAREN_L)?ee(e,te.TokenKind.PAREN_L,p,te.TokenKind.PAREN_R):[]}function p(e){var n=e.token;return{kind:ie.ARGUMENT,name:r(e),value:(H(e,te.TokenKind.COLON),k(e,!1)),loc:J(e,n)}}function E(e){var n=e.token;if(H(e,te.TokenKind.SPREAD),$(e,te.TokenKind.NAME)&&"on"!==e.token.value)return{kind:ie.FRAGMENT_SPREAD,name:m(e),directives:h(e),loc:J(e,n)};var r=null;return"on"===e.token.value&&(e.advance(),r=b(e)),{kind:ie.INLINE_FRAGMENT,typeCondition:r,directives:h(e),selectionSet:s(e),loc:J(e,n)}}function T(e){var n=e.token;return X(e,"fragment"),{kind:ie.FRAGMENT_DEFINITION,name:m(e),typeCondition:(X(e,"on"),b(e)),directives:h(e),selectionSet:s(e),loc:J(e,n)}}function m(e){if("on"===e.token.value)throw z(e);return r(e)}function k(e,n){var r=e.token;switch(r.kind){case te.TokenKind.BRACKET_L:return I(e,n);case te.TokenKind.BRACE_L:return O(e,n);case te.TokenKind.INT:return e.advance(),{kind:ie.INT,value:r.value,loc:J(e,r)};case te.TokenKind.FLOAT:return e.advance(),{kind:ie.FLOAT,value:r.value,loc:J(e,r)};case te.TokenKind.STRING:return e.advance(),{kind:ie.STRING,value:r.value,loc:J(e,r)};case te.TokenKind.NAME:return"true"===r.value||"false"===r.value?(e.advance(),{kind:ie.BOOLEAN,value:"true"===r.value,loc:J(e,r)}):"null"===r.value?(e.advance(),{kind:ie.NULL,loc:J(e,r)}):(e.advance(),{kind:ie.ENUM,value:r.value,loc:J(e,r)});case te.TokenKind.DOLLAR:if(!n)return l(e)}throw z(e)}function y(e){return k(e,!0)}function N(e){return k(e,!1)}function I(e,n){var r=e.token,t=n?y:N;return{kind:ie.LIST,values:Z(e,te.TokenKind.BRACKET_L,t,te.TokenKind.BRACKET_R),loc:J(e,r)}}function O(e,n){var r=e.token;H(e,te.TokenKind.BRACE_L);for(var t=[];!W(e,te.TokenKind.BRACE_R);)t.push(_(e,n));return{kind:ie.OBJECT,fields:t,loc:J(e,r)}}function _(e,n){var t=e.token;return{kind:ie.OBJECT_FIELD,name:r(e),value:(H(e,te.TokenKind.COLON),k(e,n)),loc:J(e,t)}}function h(e){for(var n=[];$(e,te.TokenKind.AT);)n.push(A(e));return n}function A(e){var n=e.token;return H(e,te.TokenKind.AT),{kind:ie.DIRECTIVE,name:r(e),arguments:v(e),loc:J(e,n)}}function D(e){var n=e.token,r=void 0;return W(e,te.TokenKind.BRACKET_L)?(r=D(e),H(e,te.TokenKind.BRACKET_R),r={kind:ie.LIST_TYPE,type:r,loc:J(e,n)}):r=b(e),W(e,te.TokenKind.BANG)?{kind:ie.NON_NULL_TYPE,type:r,loc:J(e,n)}:r}function b(e){var n=e.token;return{kind:ie.NAMED_TYPE,name:r(e),loc:J(e,n)}}function g(e){if($(e,te.TokenKind.NAME))switch(e.token.value){case"schema":return L(e);case"scalar":return C(e);case"type":return P(e);case"interface":return j(e);case"union":return M(e);case"enum":return V(e);case"input":return U(e);case"extend":return G(e);case"directive":return Y(e)}throw z(e)}function L(e){var n=e.token;X(e,"schema");var r=h(e),t=ee(e,te.TokenKind.BRACE_L,S,te.TokenKind.BRACE_R);return{kind:ie.SCHEMA_DEFINITION,directives:r,operationTypes:t,loc:J(e,n)}}function S(e){var n=e.token,r=a(e);H(e,te.TokenKind.COLON);var t=b(e);return{kind:ie.OPERATION_TYPE_DEFINITION,operation:r,type:t,loc:J(e,n)}}function C(e){var n=e.token;X(e,"scalar");var t=r(e),i=h(e);return{kind:ie.SCALAR_TYPE_DEFINITION,name:t,directives:i,loc:J(e,n)}}function P(e){var n=e.token;X(e,"type");var t=r(e),i=R(e),o=h(e),a=Z(e,te.TokenKind.BRACE_L,K,te.TokenKind.BRACE_R);return{kind:ie.OBJECT_TYPE_DEFINITION,name:t,interfaces:i,directives:o,fields:a,loc:J(e,n)}}function R(e){var n=[];if("implements"===e.token.value){e.advance();do{n.push(b(e));}while($(e,te.TokenKind.NAME))}return n}function K(e){var n=e.token,t=r(e),i=F(e);H(e,te.TokenKind.COLON);var o=D(e),a=h(e);return{kind:ie.FIELD_DEFINITION,name:t,arguments:i,type:o,directives:a,loc:J(e,n)}}function F(e){return $(e,te.TokenKind.PAREN_L)?ee(e,te.TokenKind.PAREN_L,w,te.TokenKind.PAREN_R):[]}function w(e){var n=e.token,t=r(e);H(e,te.TokenKind.COLON);var i=D(e),o=null;W(e,te.TokenKind.EQUALS)&&(o=y(e));var a=h(e);return{kind:ie.INPUT_VALUE_DEFINITION,name:t,type:i,defaultValue:o,directives:a,loc:J(e,n)}}function j(e){var n=e.token;X(e,"interface");var t=r(e),i=h(e),o=Z(e,te.TokenKind.BRACE_L,K,te.TokenKind.BRACE_R);return{kind:ie.INTERFACE_TYPE_DEFINITION,name:t,directives:i,fields:o,loc:J(e,n)}}function M(e){var n=e.token;X(e,"union");var t=r(e),i=h(e);H(e,te.TokenKind.EQUALS);var o=x(e);return{kind:ie.UNION_TYPE_DEFINITION,name:t,directives:i,types:o,loc:J(e,n)}}function x(e){W(e,te.TokenKind.PIPE);var n=[];do{n.push(b(e));}while(W(e,te.TokenKind.PIPE));return n}function V(e){var n=e.token;X(e,"enum");var t=r(e),i=h(e),o=ee(e,te.TokenKind.BRACE_L,B,te.TokenKind.BRACE_R);return{kind:ie.ENUM_TYPE_DEFINITION,name:t,directives:i,values:o,loc:J(e,n)}}function B(e){var n=e.token,t=r(e),i=h(e);return{kind:ie.ENUM_VALUE_DEFINITION,name:t,directives:i,loc:J(e,n)}}function U(e){var n=e.token;X(e,"input");var t=r(e),i=h(e),o=Z(e,te.TokenKind.BRACE_L,w,te.TokenKind.BRACE_R);return{kind:ie.INPUT_OBJECT_TYPE_DEFINITION,name:t,directives:i,fields:o,loc:J(e,n)}}function G(e){var n=e.token;X(e,"extend");var r=P(e);return{kind:ie.TYPE_EXTENSION_DEFINITION,definition:r,loc:J(e,n)}}function Y(e){var n=e.token;X(e,"directive"),H(e,te.TokenKind.AT);var t=r(e),i=F(e);X(e,"on");var o=Q(e);return{kind:ie.DIRECTIVE_DEFINITION,name:t,arguments:i,locations:o,loc:J(e,n)}}function Q(e){W(e,te.TokenKind.PIPE);var n=[];do{n.push(r(e));}while(W(e,te.TokenKind.PIPE));return n}function J(e,n){if(!e.options.noLocation)return new q(n,e.lastToken,e.source)}function q(e,n,r){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=r;}function $(e,n){return e.token.kind===n}function W(e,n){var r=e.token.kind===n;return r&&e.advance(),r}function H(e,n){var r=e.token;if(r.kind===n)return e.advance(),r;throw(0,re.syntaxError)(e.source,r.start,"Expected "+n+", found "+(0,te.getTokenDesc)(r))}function X(e,n){var r=e.token;if(r.kind===te.TokenKind.NAME&&r.value===n)return e.advance(),r;throw(0,re.syntaxError)(e.source,r.start,'Expected "'+n+'", found '+(0,te.getTokenDesc)(r))}function z(e,n){var r=n||e.token;return(0,re.syntaxError)(e.source,r.start,"Unexpected "+(0,te.getTokenDesc)(r))}function Z(e,n,r,t){H(e,n);for(var i=[];!W(e,t);)i.push(r(e));return i}function ee(e,n,r,t){H(e,n);for(var i=[r(e)];!W(e,t);)i.push(r(e));return i}Object.defineProperty(n,"__esModule",{value:!0}),n.parse=function(e,n){var r="string"==typeof e?new ne.Source(e):e;if(!(r instanceof ne.Source))throw new TypeError("Must provide Source. Received: "+String(r));return t((0,te.createLexer)(r,n||{}))},n.parseValue=function(e,n){var r="string"==typeof e?new ne.Source(e):e,t=(0,te.createLexer)(r,n||{});H(t,te.TokenKind.SOF);var i=k(t,!1);return H(t,te.TokenKind.EOF),i},n.parseType=function(e,n){var r="string"==typeof e?new ne.Source(e):e,t=(0,te.createLexer)(r,n||{});H(t,te.TokenKind.SOF);var i=D(t);return H(t,te.TokenKind.EOF),i},n.parseConstValue=y,n.parseTypeReference=D,n.parseNamedType=b;var ne=source,re=index$2,te=lexer,ie=kinds;q.prototype.toJSON=q.prototype.inspect=function(){return{start:this.start,end:this.end}};}),visitor=createCommonjsModule$$1(function(e,n){function r(e){return e&&"string"==typeof e.kind}function t(e,n,r){var t=e[n];if(t){if(!r&&"function"==typeof t)return t;var i=r?t.leave:t.enter;if("function"==typeof i)return i}else{var o=r?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[n];if("function"==typeof a)return a}}}Object.defineProperty(n,"__esModule",{value:!0}),n.visit=function(e,n,a){var u=a||i,c=void 0,l=Array.isArray(e),s=[e],f=-1,d=[],v=void 0,p=[],E=[],T=e;do{var m=++f===s.length,k=void 0,y=void 0,N=m&&0!==d.length;if(m){if(k=0===E.length?void 0:p.pop(),y=v,v=E.pop(),N){if(l)y=y.slice();else{var I={};for(var O in y)y.hasOwnProperty(O)&&(I[O]=y[O]);y=I;}for(var _=0,h=0;h 1) { - for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - } - queue.push(new Item(fun, args)); - if (queue.length === 1 && !draining) { - runTimeout(drainQueue); - } -} -// v8 likes predictible objects -function Item(fun, array) { - this.fun = fun; - this.array = array; -} -Item.prototype.run = function () { - this.fun.apply(null, this.array); -}; -var title = 'browser'; -var platform = 'browser'; -var browser = true; -var env = {}; -var argv = []; -var version = ''; // empty string to avoid regexp issues -var versions = {}; -var release = {}; -var config = {}; - -function noop$1() {} - -var on = noop$1; -var addListener = noop$1; -var once = noop$1; -var off = noop$1; -var removeListener = noop$1; -var removeAllListeners = noop$1; -var emit = noop$1; - -function binding(name) { - throw new Error('process.binding is not supported'); -} - -function cwd () { return '/' } -function chdir (dir) { - throw new Error('process.chdir is not supported'); -} -function umask() { return 0; } - -// from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js -var performance = global$1.performance || {}; -var performanceNow = - performance.now || - performance.mozNow || - performance.msNow || - performance.oNow || - performance.webkitNow || - function(){ return (new Date()).getTime() }; - -// generate timestamp or delta -// see http://nodejs.org/api/process.html#process_process_hrtime -function hrtime(previousTimestamp){ - var clocktime = performanceNow.call(performance)*1e-3; - var seconds = Math.floor(clocktime); - var nanoseconds = Math.floor((clocktime%1)*1e9); - if (previousTimestamp) { - seconds = seconds - previousTimestamp[0]; - nanoseconds = nanoseconds - previousTimestamp[1]; - if (nanoseconds<0) { - seconds--; - nanoseconds += 1e9; - } - } - return [seconds,nanoseconds] -} - -var startTime = new Date(); -function uptime() { - var currentTime = new Date(); - var dif = currentTime - startTime; - return dif / 1000; -} - -var process = { - nextTick: nextTick, - title: title, - browser: browser, - env: env, - argv: argv, - version: version, - versions: versions, - on: on, - addListener: addListener, - once: once, - off: off, - removeListener: removeListener, - removeAllListeners: removeAllListeners, - emit: emit, - binding: binding, - cwd: cwd, - chdir: chdir, - umask: umask, - hrtime: hrtime, - platform: platform, - release: release, - config: config, - uptime: uptime -}; - -function _interopDefault$1(r){return r&&"object"==typeof r&&"default"in r?r.default:r}function extend(){for(var r={},e=0;ee)return{line:t+1,column:e-(r[t-1]||0)+1,offset:e};return{}}}function positionToOffsetFactory(r){return function(e){var t=e&&e.line,a=e&&e.column;return!isNaN(t)&&!isNaN(a)&&t-1 in r?(r[t-2]||0)+a-1||0:-1}}function indices(r){for(var e=[],t=r.indexOf("\n");-1!==t;)e.push(t+1),t=r.indexOf("\n",t+1);return e.push(r.length+1),e}function factory$2(r,e){return function(t){for(var a,o=0,n=t.indexOf("\\"),i=r[e],s=[];-1!==n;)s.push(t.slice(o,n)),o=n+1,(a=t.charAt(o))&&-1!==i.indexOf(a)||s.push("\\"),n=t.indexOf("\\",o);return s.push(t.slice(o)),s.join("")}}function decimal$1(r){var e="string"==typeof r?r.charCodeAt(0):r;return e>=48&&e<=57}function hexadecimal$1(r){var e="string"==typeof r?r.charCodeAt(0):r;return e>=97&&e<=102||e>=65&&e<=70||e>=48&&e<=57}function alphabetical$1(r){var e="string"==typeof r?r.charCodeAt(0):r;return e>=97&&e<=122||e>=65&&e<=90}function alphanumerical$1(r){return alphabetical(r)||decimal$2(r)}function wrapper(r,e){var t,a,o={};e||(e={});for(a in defaults)t=e[a],o[a]=null===t||void 0===t?defaults[a]:t;return(o.position.indent||o.position.start)&&(o.indent=o.position.indent||[],o.position=o.position.start),parse$5(r,o)}function parse$5(r,e){function t(){return{line:B,column:I,offset:R+(x.offset||0)}}function a(e){return r.charAt(e)}function o(){F&&(P.push(F),$&&$.call(S,F,{start:b,end:t()}),F=EMPTY);}var n,i,s,l,c,u,p,d,f,g,h,m,D,E,b,C,A,w,q=e.additional,v=e.nonTerminated,$=e.text,y=e.reference,L=e.warning,S=e.textContext,T=e.referenceContext,N=e.warningContext,x=e.position,k=e.indent||[],_=r.length,R=0,O=-1,I=x.column||1,B=x.line||1,F=EMPTY,P=[];for(b=t(),p=L?function(r,e){var a=t();a.column+=e,a.offset+=e,L.call(N,MESSAGES[r],a,r);}:noop,R--,_++;++R<_;)if(l===NEWLINE&&(I=k[O]||1),(l=a(R))!==AMPERSAND)l===NEWLINE&&(B++,O++,I=0),l?(F+=l,I++):o();else{if((u=a(R+1))===TAB||u===NEWLINE||u===FORM_FEED||u===SPACE||u===LESS_THAN||u===AMPERSAND||u===EMPTY||q&&u===q){F+=l,I++;continue}for(h=m=R+1,w=m,u!==OCTOTHORP?D=NAMED:(u=a(w=++h))===X_LOWER||u===X_UPPER?(D=HEXADECIMAL,w=++h):D=DECIMAL,n=EMPTY,g=EMPTY,s=EMPTY,E=TESTS[D],w--;++w<_&&(u=a(w),E(u));)s+=u,D===NAMED&&own$1.call(legacy,s)&&(n=s,g=legacy[s]);(i=a(w)===SEMICOLON)&&(w++,D===NAMED&&own$1.call(characterEntities,s)&&(n=s,g=characterEntities[s])),A=1+w-m,(i||v)&&(s?D===NAMED?(i&&!g?p(NAMED_UNKNOWN,1):(n!==s&&(A=1+(w=h+n.length)-h,i=!1),i||(d=n?NAMED_NOT_TERMINATED:NAMED_EMPTY,e.attribute?(u=a(w))===EQUAL?(p(d,A),g=null):alphanumerical(u)?g=null:p(d,A):p(d,A))),c=g):(i||p(NUMERIC_NOT_TERMINATED,A),isProhibited(c=parseInt(s,BASE[D]))?(p(NUMERIC_PROHIBITED,A),c=REPLACEMENT):c in invalid?(p(NUMERIC_DISALLOWED,A),c=invalid[c]):(f=EMPTY,isWarning(c)&&p(NUMERIC_DISALLOWED,A),c>65535&&(f+=fromCharCode((c-=65536)>>>10|55296),c=56320|1023&c),c=f+fromCharCode(c))):D!==NAMED&&p(NUMERIC_EMPTY,A)),c?(o(),b=t(),R=w-1,I+=w-m+1,P.push(c),(C=t()).offset++,y&&y.call(T,c,{start:b,end:C},r.slice(m-1,w)),b=C):(s=r.slice(m-1,w),F+=s,I+=s.length,R=w-1);}return P.join(EMPTY)}function isProhibited(r){return r>=55296&&r<=57343||r>1114111}function isWarning(r){return r>=1&&r<=8||11===r||r>=13&&r<=31||r>=127&&r<=159||r>=64976&&r<=65007||65535==(65535&r)||65534==(65535&r)}function factory$3(r){function e(e){for(var t=r.offset,a=e.line,o=[];++a&&a in t;)o.push((t[a]||0)+1);return{start:e,indent:o}}function t(e,t,a){3!==a&&r.file.message(e,t);}function a(a,o,n){entities(a,{position:e(o),warning:t,text:n,reference:n,textContext:r,referenceContext:r});}return a.raw=function(r,a){return entities(r,{position:e(a),warning:t})},a}function mergeable(r){var e,t;return"text"!==r.type||!r.position||(e=r.position.start,t=r.position.end,e.line!==t.line||t.column-e.column===r.value.length)}function mergeText(r,e){return r.value+=e.value,r}function mergeBlockquote(r,e){return this.options.commonmark?e:(r.children=r.children.concat(e.children),r)}function factory$4(r){return function(e,t){function a(r){for(var e=-1,t=r.indexOf("\n");-1!==t;)w++,e=t,t=r.indexOf("\n",t+1);-1===e?q+=r.length:q=r.length-e,w in E&&(-1!==e?q+=E[w]:q<=E[w]&&(q=E[w]+1));}function o(){var r=[],e=w+1;return function(){for(var t=w+1;e-1&&s=t)return res.substr(0,t);for(;t>res.length&&e>1;)1&e&&(res+=r),e>>=1,r+=r;return res+=r,res=res.substr(0,t)}function trimTrailingLines(r){for(var e=String(r),t=e.length;e.charAt(--t)===line;);return e.slice(0,t+1)}function indentedCode(r,e,t){for(var a,o,n,i=-1,s=e.length,l="",c="",u="",p="";++i=CODE_INDENT_COUNT$1)){for(s="";DMAX_ATX_COUNT)&&n&&(s.pedantic||e.charAt(c+1)!==C_HASH)){for(l=e.length+1,o="";++c=THEMATIC_BREAK_MARKER_COUNT&&(!a||a===C_NEWLINE$5)?(c+=i,!!t||r(c)({type:"thematicBreak"})):void 0;i+=a;}}function indentation(r){for(var e,t=0,a=0,o=r.charAt(t),n={};o in characters;)a+=e=characters[o],e>1&&(a=Math.floor(a/e)*e),n[a]=t,o=r.charAt(++t);return{indent:a,stops:n}}function indentation$1(r,e){var t,a,o,n,i=r.split(C_NEWLINE$7),s=i.length+1,l=1/0,c=[];for(i.unshift(repeat$3(C_SPACE$6,e)+"!");s--;)if(a=getIndent$1(i[s]),c[s]=a.stops,0!==trim$4(i[s]).length){if(!a.indent){l=1/0;break}a.indent>0&&a.indent=TAB_SIZE)){if(i=e.charAt(k),a=S?LIST_ORDERED_COMMONMARK_MARKERS:LIST_ORDERED_MARKERS,!0===LIST_UNORDERED_MARKERS[i])s=i,n=!1;else{for(n=!0,o="";k<_&&(i=e.charAt(k),decimal$3(i));)o+=i,k++;if(i=e.charAt(k),!o||!0!==a[i])return;R=parseInt(o,10),s=i;}if((i=e.charAt(++k))===C_SPACE$5||i===C_TAB$5){if(t)return!0;for(k=0,m=[],D=[],E=[];k<_;){for(c=k,u=!1,y=!1,-1===(l=e.indexOf(C_NEWLINE$6,k))&&(l=_),$=k+TAB_SIZE,O=0;k<_;){if((i=e.charAt(k))===C_TAB$5)O+=TAB_SIZE-O%TAB_SIZE;else{if(i!==C_SPACE$5)break;O++;}k++;}if(O>=TAB_SIZE&&(y=!0),b&&O>=b.indent&&(y=!0),i=e.charAt(k),p=null,!y){if(!0===LIST_UNORDERED_MARKERS[i])p=i,k++,O++;else{for(o="";k<_&&(i=e.charAt(k),decimal$3(i));)o+=i,k++;i=e.charAt(k),k++,o&&!0===a[i]&&(p=i,O+=o.length+1);}if(p)if((i=e.charAt(k))===C_TAB$5)O+=TAB_SIZE-O%TAB_SIZE,k++;else if(i===C_SPACE$5){for($=k+TAB_SIZE;k<$&&e.charAt(k)===C_SPACE$5;)k++,O++;k===$&&e.charAt(k)===C_SPACE$5&&(k-=TAB_SIZE-1,O-=TAB_SIZE-1);}else i!==C_NEWLINE$6&&""!==i&&(p=null);}if(p){if(!T&&s!==p)break;u=!0;}else S||y||e.charAt(c)!==C_SPACE$5?S&&b&&(y=O>=b.indent||O>TAB_SIZE):y=!0,u=!1,k=c;if(f=e.slice(c,l),d=c===k?f:e.slice(k,l),(p===C_ASTERISK$1||p===C_UNDERSCORE$1||p===C_DASH$1)&&N.thematicBreak.call(L,r,f,!0))break;if(g=h,h=!trim$3(d).length,y&&b)b.value=b.value.concat(E,f),D=D.concat(E,f),E=[];else if(u)0!==E.length&&(b.value.push(""),b.trail=E.concat()),b={value:[f],indent:O,trail:[]},m.push(b),D=D.concat(E,f),E=[];else if(h){if(g)break;E.push(f);}else{if(g)break;if(interrupt$2(x,N,L,[r,f,!0]))break;b.value=b.value.concat(E,f),D=D.concat(E,f),E=[];}k=l+1;}for(q=r(D.join(C_NEWLINE$6)).reset({type:"list",ordered:n,start:R,loose:null,children:[]}),C=L.enterList(),A=L.enterBlock(),w=!1,k=-1,_=m.length;++k<_;)b=m[k].value.join(C_NEWLINE$6),v=r.now(),(b=r(b)(listItem(L,b,v),q)).loose&&(w=!0),b=m[k].trail.join(C_NEWLINE$6),k!==_-1&&(b+=C_NEWLINE$6),r(b);return C(),A(),q.loose=w,q}}}function listItem(r,e,t){var a,o,n=r.offset,i=null;return e=(r.options.pedantic?pedanticListItem:normalListItem).apply(null,arguments),r.options.gfm&&(a=e.match(EXPRESSION_TASK_ITEM))&&(o=a[0].length,i=a[1].toLowerCase()===C_X_LOWER,n[t.line]+=o,e=e.slice(o)),{type:"listItem",loose:EXPRESSION_LOOSE_LIST_ITEM.test(e)||e.charAt(e.length-1)===C_NEWLINE$6,checked:i,children:r.tokenizeBlock(e,t)}}function pedanticListItem(r,e,t){function a(r){return o[n]=(o[n]||0)+r.length,n++,""}var o=r.offset,n=t.line;return e=e.replace(EXPRESSION_PEDANTIC_BULLET,a),n=t.line,e.replace(EXPRESSION_INITIAL_INDENT,a)}function normalListItem(r,e,t){var a,o,n,i,s,l,c,u=r.offset,p=t.line;for(i=(e=e.replace(EXPRESSION_BULLET,function(r,e,t,i,s){return o=e+t+i,n=s,Number(t)<10&&o.length%2==1&&(t=C_SPACE$5+t),(a=e+repeat$2(C_SPACE$5,t.length)+i)+n})).split(C_NEWLINE$6),(s=removeIndent(e,getIndent(a).indent).split(C_NEWLINE$6))[0]=n,u[p]=(u[p]||0)+o.length,p++,l=0,c=i.length;++l=MAX_HEADING_INDENT){p--;break}d+=n;}for(a="",o="";++p|$))/i,/<\/(script|pre|style)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(openCloseTag.source+"\\s*$"),/^$/,!1]];dv){if(C1&&(p?(i+=u.slice(0,u.length-1),u=u.charAt(u.length-1)):(i+=u,u="")),E=r.now(),r(i)({type:"tableCell",children:L.tokenizeInline(g,E)},s)),r(u+p),u="",g="";}else if(u&&(g+=u,u=""),g+=p,p===C_BACKSLASH$2&&a!==l-2&&(g+=A.charAt(a+1),a++),p===C_TICK$1){for(m=1;A.charAt(a+1)===p;)g+=p,a++,m++;D?m>=D&&(D=0):D=m;}h=!1,a++;}else g?u+=p:r(p),a++;b||r(C_NEWLINE$12+o);}return q}}}function paragraph(r,e,t){for(var a,o,n,i,s,l=this,c=l.options,u=c.commonmark,p=c.gfm,d=l.blockTokenizers,f=l.interruptParagraph,g=e.indexOf(C_NEWLINE$13),h=e.length;g=TAB_SIZE$1){g=e.indexOf(C_NEWLINE$13,g+1);continue}}if(o=e.slice(g+1),interrupt$3(f,d,l,[r,o,!0]))break;if(d.list.call(l,r,o,!0)&&(l.inList||u||p&&!decimal$4(trim$5.left(o).charAt(0))))break;if(a=g,-1!==(g=e.indexOf(C_NEWLINE$13,g+1))&&""===trim$5(e.slice(a,g))){g=a;break}}return o=e.slice(0,g),""===trim$5(o)?(r(o),null):!!t||(s=r.now(),o=trimTrailingLines$1(o),r(o)({type:"paragraph",children:l.tokenizeInline(o,s)}))}function locate$1(r,e){return r.indexOf("\\",e)}function escape(r,e,t){var a,o,n=this;if("\\"===e.charAt(0)&&(a=e.charAt(1),-1!==n.escape.indexOf(a)))return!!t||(o="\n"===a?{type:"break"}:{type:"text",value:a},r("\\"+a)(o))}function locate$3(r,e){return r.indexOf("<",e)}function autoLink(r,e,t){var a,o,n,i,s,l,c,u,p,d,f,g;if(e.charAt(0)===C_LT$2){for(a=this,o="",n=e.length,i=0,s="",c=!1,u="",i++,o=C_LT$2;i=n&&(n=0):n=o;}else if($===C_BACKSLASH$3)v++,l+=e.charAt(v);else if(n&&!S||$!==C_BRACKET_OPEN$3){if((!n||S)&&$===C_BRACKET_CLOSE$3){if(!m){if(!y)for(;ve&&" "===r.charAt(t-1);)t--;return t}function hardBreak(r,e,t){for(var a,o=e.length,n=-1,i="";++nn.length;i&&n.push(t);try{e=r.apply(null,n);}catch(r){if(i&&o)throw r;return t(r)}i||(e&&"function"==typeof e.then?e.then(a,t):e instanceof Error?t(e):a(e));}}function isString(r){return"[object String]"===toString$1.call(r)}function pipelineParse(r,e){e.tree=r.parse(e.file);}function pipelineRun(r,e,t){r.run(e.tree,e.file,function(r,a,o){r?t(r):(e.tree=a,e.file=o,t());});}function pipelineStringify(r,e){e.file.contents=r.stringify(e.tree,e.file);}function unified$1(){function r(){for(var r=unified$1(),e=n.length,t=-1;++t1?r[r.length-2]:null}function getLast(r){return r.length>0?r[r.length-1]:null}function skip(r){return(e,t,a)=>{const o=a&&a.backwards;if(!1===t)return!1;const n=e.length;let i=t;for(;i>=0&&i0?locStart(r.declaration.decorators[0]):r.decorators&&r.decorators.length>0?locStart(r.decorators[0]):r.__location?r.__location.startOffset:r.range?r.range[0]:"number"==typeof r.start?r.start:r.source?lineColumnToIndex(r.source.start,r.source.input.css)-1:r.loc?r.loc.start:void 0}function locEnd(r){const e=r.nodes&&getLast(r.nodes);e&&r.source&&!r.source.end&&(r=e);let t;return r.range?t=r.range[1]:"number"==typeof r.end?t=r.end:r.source&&(t=lineColumnToIndex(r.source.end,r.source.input.css)),r.__location?r.__location.endOffset:r.typeAnnotation?Math.max(t,locEnd(r.typeAnnotation)):r.loc&&!t?r.loc.end:t}function lineColumnToIndex(r,e){let t=0;for(let a=0;ae.leading&&isBlockComment(e)&&e.value.match(/^\*\s*@type\s*{[^}]+}\s*$/)&&"("===getNextNonSpaceNonCommentCharacter(r,e))}function getAlignmentSize(r,e,t){let a=0;for(let o=t=t||0;o(a.match(s.regex)||[]).length:c=!0;const u="json"===e.parser?o.quote:l?s.quote:i.quote;return t?c?u+a+u:r:makeString(a,u,!("css"===e.parser||"less"===e.parser||"scss"===e.parser))}function makeString(r,e,t){const a='"'===e?"'":'"',o=/\\([\s\S])|(['"])/g,n=r.replace(o,(r,o,n)=>o===a?o:n===e?"\\"+n:n||(t&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(o)?o:"\\"+o));return e+n+e}function printNumber(r){return r.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}function getMaxContinuousCount(r,e){const t=r.match(new RegExp(`(${escapeStringRegexp(e)})+`,"g"));return null===t?0:t.reduce((r,t)=>Math.max(r,t.length/e.length),0)}function mapDoc(r,e){if(r.parts){const t=r.parts.map(r=>mapDoc(r,e));return e(Object.assign({},r,{parts:t}))}if(r.contents){const t=mapDoc(r.contents,e);return e(Object.assign({},r,{contents:t}))}return e(r)}function splitText$1(r){function e(r){function e(e,t){return i.kind===e&&r.kind===t||i.kind===t&&r.kind===e}const i=n[n.length-1];i&&"word"===i.type&&(e(t,a)?n.push({type:"whitespace",value:" "}):e(t,o)||[i.value,r.value].some(r=>/\u3000/.test(r))||n.push({type:"whitespace",value:""})),n.push(r);}const t="non-cjk",a="cjk-character",o="cjk-punctuation",n=[];return r.replace(new RegExp(`(${cjkRegex.source})\n(${cjkRegex.source})`,"g"),"$1$2").split(/([^\S\u3000]+)/).forEach((r,i,s)=>{i%2!=1?(0!==i&&i!==s.length-1||""!==r)&&r.split(new RegExp(`(${cjkRegex.source})`)).forEach((r,n,i)=>{(0!==n&&n!==i.length-1||""!==r)&&(n%2!=0?e({type:"word",value:r,kind:cjkPunctuationRegex.test(r)?o:a}):""!==r&&e({type:"word",value:r,kind:t}));}):n.push({type:"whitespace",value:" "});}),n}function getStringWidth(r){return r?stringWidth(r.replace(emojiRegex," ")):0}function parse(r){const e=unified().use(remarkParse,{footnotes:!0,commonmark:!0}).use(remarkFrontmatter,["yaml"]).use(restoreUnescapedCharacter(r)).use(mergeContinuousTexts).use(transformInlineCode(r)).use(splitText);return e.runSync(e.parse(r))}function map(r,e){return function r(t,a,o){const n=Object.assign({},e(t,a,o));return n.children&&(n.children=n.children.map((e,t)=>r(e,t,n))),n}(r,null,null)}function transformInlineCode(r){return()=>e=>map(e,e=>{if("inlineCode"!==e.type)return e;const t=r.slice(e.position.start.offset,e.position.end.offset).match(/^`+/)[0];return Object.assign({},e,{value:e.value.replace(/\s+/g," "),children:[{type:"text",value:e.value,position:{start:{line:e.position.start.line,column:e.position.start.column+t.length,offset:e.position.start.offset+t.length},end:{line:e.position.end.line,column:e.position.end.column-t.length,offset:e.position.end.offset-t.length}}}]})})}function restoreUnescapedCharacter(r){return()=>e=>map(e,e=>"text"!==e.type?e:Object.assign({},e,{value:"*"!==e.value&&"_"!==e.value&&1===e.value.length&&e.position.end.offset-e.position.start.offset>1?r.slice(e.position.start.offset,e.position.end.offset):e.value}))}function mergeContinuousTexts(){return r=>map(r,r=>{if(!r.children)return r;const e=r.children.reduce((r,e)=>{const t=r[r.length-1];return t&&"text"===t.type&&"text"===e.type?r.splice(-1,1,{type:"text",value:t.value+e.value,position:{start:t.position.start,end:e.position.end}}):r.push(e),r},[]);return Object.assign({},r,{children:e})})}function splitText(){return r=>map(r,(r,e,t)=>{if("text"!==r.type)return r;let a=r.value;return"paragraph"===t.type&&(0===e&&(a=a.trimLeft()),e===t.children.length-1&&(a=a.trimRight())),{type:"sentence",position:r.position,children:util$1$1.splitText(a)}})}var util$1=_interopDefault$1(util); var path$1=_interopDefault$1(path); var immutable=extend; var hasOwnProperty=Object.prototype.hasOwnProperty; var format=createCommonjsModule(function(r){!function(){function e(r){for(var e,t,a,o,n=1,i=[].slice.call(arguments),s=0,l=r.length,c="",u=!1,p=!1,d=function(){return i[n++]};s0?parseInt(t):null}(),e){case"b":c+=parseInt(d(),10).toString(2);break;case"c":"string"==typeof(t=d())||t instanceof String?c+=t:c+=String.fromCharCode(parseInt(t,10));break;case"d":c+=parseInt(d(),10);break;case"f":a=String(parseFloat(d()).toFixed(o||6)),c+=p?a:a.replace(/^0/,"");break;case"j":c+=JSON.stringify(d());break;case"o":c+="0"+parseInt(d(),10).toString(8);break;case"s":c+=d();break;case"x":c+="0x"+parseInt(d(),10).toString(16);break;case"X":c+="0x"+parseInt(d(),10).toString(16).toUpperCase();break;default:c+=e;}else"%"===e?u=!0:c+=e;return c}var t;(t=r.exports=e).format=e,t.vsprintf=function(r,t){return e.apply(null,[r].concat(t))},"undefined"!=typeof console&&"function"==typeof console.log&&(t.printf=function(){console.log(e.apply(null,arguments));});}();}); var formatter=format; var fault$1=create(Error); var index$2=fault$1;fault$1.eval=create(EvalError),fault$1.range=create(RangeError),fault$1.reference=create(ReferenceError),fault$1.syntax=create(SyntaxError),fault$1.type=create(TypeError),fault$1.uri=create(URIError),fault$1.create=create;var fault=index$2; var matters_1=matters$1; var own={}.hasOwnProperty; var markers={yaml:"-",toml:"+"}; var parse$2=create$1; var compile$1=create$2; var xtend=immutable; var matters=matters_1; var parse$1=parse$2; var compile=compile$1; var index=frontmatter; var inherits_browser=createCommonjsModule(function(r){"function"==typeof Object.create?r.exports=function(r,e){r.super_=e,r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}});}:r.exports=function(r,e){r.super_=e;var t=function(){};t.prototype=e.prototype,r.prototype=new t,r.prototype.constructor=r;};}); var inherits$1=createCommonjsModule(function(r){try{var e=util$1;if("function"!=typeof e.inherits)throw"";r.exports=e.inherits;}catch(e){r.exports=inherits_browser;}}); var xtend$2=immutable; var inherits=inherits$1; var index$6=unherit$1; var index$8=factory; var index$10=factory$1; var _unescape=factory$2; var AEli="Æ"; var AElig="Æ"; var AM="&"; var AMP="&"; var Aacut="Á"; var Aacute="Á"; var Abreve="Ă"; var Acir="Â"; var Acirc="Â"; var Acy="А"; var Afr="𝔄"; var Agrav="À"; var Agrave="À"; var Alpha="Α"; var Amacr="Ā"; var And="⩓"; var Aogon="Ą"; var Aopf="𝔸"; var ApplyFunction="⁡"; var Arin="Å"; var Aring="Å"; var Ascr="𝒜"; var Assign="≔"; var Atild="Ã"; var Atilde="Ã"; var Aum="Ä"; var Auml="Ä"; var Backslash="∖"; var Barv="⫧"; var Barwed="⌆"; var Bcy="Б"; var Because="∵"; var Bernoullis="ℬ"; var Beta="Β"; var Bfr="𝔅"; var Bopf="𝔹"; var Breve="˘"; var Bscr="ℬ"; var Bumpeq="≎"; var CHcy="Ч"; var COP="©"; var COPY="©"; var Cacute="Ć"; var Cap="⋒"; var CapitalDifferentialD="ⅅ"; var Cayleys="ℭ"; var Ccaron="Č"; var Ccedi="Ç"; var Ccedil="Ç"; var Ccirc="Ĉ"; var Cconint="∰"; var Cdot="Ċ"; var Cedilla="¸"; var CenterDot="·"; var Cfr="ℭ"; var Chi="Χ"; var CircleDot="⊙"; var CircleMinus="⊖"; var CirclePlus="⊕"; var CircleTimes="⊗"; var ClockwiseContourIntegral="∲"; var CloseCurlyDoubleQuote="”"; var CloseCurlyQuote="’"; var Colon="∷"; var Colone="⩴"; var Congruent="≡"; var Conint="∯"; var ContourIntegral="∮"; var Copf="ℂ"; var Coproduct="∐"; var CounterClockwiseContourIntegral="∳"; var Cross="⨯"; var Cscr="𝒞"; var Cup="⋓"; var CupCap="≍"; var DD="ⅅ"; var DDotrahd="⤑"; var DJcy="Ђ"; var DScy="Ѕ"; var DZcy="Џ"; var Dagger="‡"; var Darr="↡"; var Dashv="⫤"; var Dcaron="Ď"; var Dcy="Д"; var Del="∇"; var Delta="Δ"; var Dfr="𝔇"; var DiacriticalAcute="´"; var DiacriticalDot="˙"; var DiacriticalDoubleAcute="˝"; var DiacriticalGrave="`"; var DiacriticalTilde="˜"; var Diamond="⋄"; var DifferentialD="ⅆ"; var Dopf="𝔻"; var Dot="¨"; var DotDot="⃜"; var DotEqual="≐"; var DoubleContourIntegral="∯"; var DoubleDot="¨"; var DoubleDownArrow="⇓"; var DoubleLeftArrow="⇐"; var DoubleLeftRightArrow="⇔"; var DoubleLeftTee="⫤"; var DoubleLongLeftArrow="⟸"; var DoubleLongLeftRightArrow="⟺"; var DoubleLongRightArrow="⟹"; var DoubleRightArrow="⇒"; var DoubleRightTee="⊨"; var DoubleUpArrow="⇑"; var DoubleUpDownArrow="⇕"; var DoubleVerticalBar="∥"; var DownArrow="↓"; var DownArrowBar="⤓"; var DownArrowUpArrow="⇵"; var DownBreve="̑"; var DownLeftRightVector="⥐"; var DownLeftTeeVector="⥞"; var DownLeftVector="↽"; var DownLeftVectorBar="⥖"; var DownRightTeeVector="⥟"; var DownRightVector="⇁"; var DownRightVectorBar="⥗"; var DownTee="⊤"; var DownTeeArrow="↧"; var Downarrow="⇓"; var Dscr="𝒟"; var Dstrok="Đ"; var ENG="Ŋ"; var ET="Ð"; var ETH="Ð"; var Eacut="É"; var Eacute="É"; var Ecaron="Ě"; var Ecir="Ê"; var Ecirc="Ê"; var Ecy="Э"; var Edot="Ė"; var Efr="𝔈"; var Egrav="È"; var Egrave="È"; var Element="∈"; var Emacr="Ē"; var EmptySmallSquare="◻"; var EmptyVerySmallSquare="▫"; var Eogon="Ę"; var Eopf="𝔼"; var Epsilon="Ε"; var Equal="⩵"; var EqualTilde="≂"; var Equilibrium="⇌"; var Escr="ℰ"; var Esim="⩳"; var Eta="Η"; var Eum="Ë"; var Euml="Ë"; var Exists="∃"; var ExponentialE="ⅇ"; var Fcy="Ф"; var Ffr="𝔉"; var FilledSmallSquare="◼"; var FilledVerySmallSquare="▪"; var Fopf="𝔽"; var ForAll="∀"; var Fouriertrf="ℱ"; var Fscr="ℱ"; var GJcy="Ѓ"; var G=">"; var GT=">"; var Gamma="Γ"; var Gammad="Ϝ"; var Gbreve="Ğ"; var Gcedil="Ģ"; var Gcirc="Ĝ"; var Gcy="Г"; var Gdot="Ġ"; var Gfr="𝔊"; var Gg="⋙"; var Gopf="𝔾"; var GreaterEqual="≥"; var GreaterEqualLess="⋛"; var GreaterFullEqual="≧"; var GreaterGreater="⪢"; var GreaterLess="≷"; var GreaterSlantEqual="⩾"; var GreaterTilde="≳"; var Gscr="𝒢"; var Gt="≫"; var HARDcy="Ъ"; var Hacek="ˇ"; var Hat="^"; var Hcirc="Ĥ"; var Hfr="ℌ"; var HilbertSpace="ℋ"; var Hopf="ℍ"; var HorizontalLine="─"; var Hscr="ℋ"; var Hstrok="Ħ"; var HumpDownHump="≎"; var HumpEqual="≏"; var IEcy="Е"; var IJlig="IJ"; var IOcy="Ё"; var Iacut="Í"; var Iacute="Í"; var Icir="Î"; var Icirc="Î"; var Icy="И"; var Idot="İ"; var Ifr="ℑ"; var Igrav="Ì"; var Igrave="Ì"; var Im="ℑ"; var Imacr="Ī"; var ImaginaryI="ⅈ"; var Implies="⇒"; var Int="∬"; var Integral="∫"; var Intersection="⋂"; var InvisibleComma="⁣"; var InvisibleTimes="⁢"; var Iogon="Į"; var Iopf="𝕀"; var Iota="Ι"; var Iscr="ℐ"; var Itilde="Ĩ"; var Iukcy="І"; var Ium="Ï"; var Iuml="Ï"; var Jcirc="Ĵ"; var Jcy="Й"; var Jfr="𝔍"; var Jopf="𝕁"; var Jscr="𝒥"; var Jsercy="Ј"; var Jukcy="Є"; var KHcy="Х"; var KJcy="Ќ"; var Kappa="Κ"; var Kcedil="Ķ"; var Kcy="К"; var Kfr="𝔎"; var Kopf="𝕂"; var Kscr="𝒦"; var LJcy="Љ"; var L="<"; var LT="<"; var Lacute="Ĺ"; var Lambda="Λ"; var Lang="⟪"; var Laplacetrf="ℒ"; var Larr="↞"; var Lcaron="Ľ"; var Lcedil="Ļ"; var Lcy="Л"; var LeftAngleBracket="⟨"; var LeftArrow="←"; var LeftArrowBar="⇤"; var LeftArrowRightArrow="⇆"; var LeftCeiling="⌈"; var LeftDoubleBracket="⟦"; var LeftDownTeeVector="⥡"; var LeftDownVector="⇃"; var LeftDownVectorBar="⥙"; var LeftFloor="⌊"; var LeftRightArrow="↔"; var LeftRightVector="⥎"; var LeftTee="⊣"; var LeftTeeArrow="↤"; var LeftTeeVector="⥚"; var LeftTriangle="⊲"; var LeftTriangleBar="⧏"; var LeftTriangleEqual="⊴"; var LeftUpDownVector="⥑"; var LeftUpTeeVector="⥠"; var LeftUpVector="↿"; var LeftUpVectorBar="⥘"; var LeftVector="↼"; var LeftVectorBar="⥒"; var Leftarrow="⇐"; var Leftrightarrow="⇔"; var LessEqualGreater="⋚"; var LessFullEqual="≦"; var LessGreater="≶"; var LessLess="⪡"; var LessSlantEqual="⩽"; var LessTilde="≲"; var Lfr="𝔏"; var Ll="⋘"; var Lleftarrow="⇚"; var Lmidot="Ŀ"; var LongLeftArrow="⟵"; var LongLeftRightArrow="⟷"; var LongRightArrow="⟶"; var Longleftarrow="⟸"; var Longleftrightarrow="⟺"; var Longrightarrow="⟹"; var Lopf="𝕃"; var LowerLeftArrow="↙"; var LowerRightArrow="↘"; var Lscr="ℒ"; var Lsh="↰"; var Lstrok="Ł"; var Lt="≪"; var Mcy="М"; var MediumSpace=" "; var Mellintrf="ℳ"; var Mfr="𝔐"; var MinusPlus="∓"; var Mopf="𝕄"; var Mscr="ℳ"; var Mu="Μ"; var NJcy="Њ"; var Nacute="Ń"; var Ncaron="Ň"; var Ncedil="Ņ"; var Ncy="Н"; var NegativeMediumSpace="​"; var NegativeThickSpace="​"; var NegativeThinSpace="​"; var NegativeVeryThinSpace="​"; var NestedGreaterGreater="≫"; var NestedLessLess="≪"; var NewLine="\n"; var Nfr="𝔑"; var NoBreak="⁠"; var NonBreakingSpace=" "; var Nopf="ℕ"; var Not="⫬"; var NotCongruent="≢"; var NotCupCap="≭"; var NotDoubleVerticalBar="∦"; var NotElement="∉"; var NotEqual="≠"; var NotEqualTilde="≂̸"; var NotExists="∄"; var NotGreater="≯"; var NotGreaterEqual="≱"; var NotGreaterFullEqual="≧̸"; var NotGreaterGreater="≫̸"; var NotGreaterLess="≹"; var NotGreaterSlantEqual="⩾̸"; var NotGreaterTilde="≵"; var NotHumpDownHump="≎̸"; var NotHumpEqual="≏̸"; var NotLeftTriangle="⋪"; var NotLeftTriangleBar="⧏̸"; var NotLeftTriangleEqual="⋬"; var NotLess="≮"; var NotLessEqual="≰"; var NotLessGreater="≸"; var NotLessLess="≪̸"; var NotLessSlantEqual="⩽̸"; var NotLessTilde="≴"; var NotNestedGreaterGreater="⪢̸"; var NotNestedLessLess="⪡̸"; var NotPrecedes="⊀"; var NotPrecedesEqual="⪯̸"; var NotPrecedesSlantEqual="⋠"; var NotReverseElement="∌"; var NotRightTriangle="⋫"; var NotRightTriangleBar="⧐̸"; var NotRightTriangleEqual="⋭"; var NotSquareSubset="⊏̸"; var NotSquareSubsetEqual="⋢"; var NotSquareSuperset="⊐̸"; var NotSquareSupersetEqual="⋣"; var NotSubset="⊂⃒"; var NotSubsetEqual="⊈"; var NotSucceeds="⊁"; var NotSucceedsEqual="⪰̸"; var NotSucceedsSlantEqual="⋡"; var NotSucceedsTilde="≿̸"; var NotSuperset="⊃⃒"; var NotSupersetEqual="⊉"; var NotTilde="≁"; var NotTildeEqual="≄"; var NotTildeFullEqual="≇"; var NotTildeTilde="≉"; var NotVerticalBar="∤"; var Nscr="𝒩"; var Ntild="Ñ"; var Ntilde="Ñ"; var Nu="Ν"; var OElig="Œ"; var Oacut="Ó"; var Oacute="Ó"; var Ocir="Ô"; var Ocirc="Ô"; var Ocy="О"; var Odblac="Ő"; var Ofr="𝔒"; var Ograv="Ò"; var Ograve="Ò"; var Omacr="Ō"; var Omega="Ω"; var Omicron="Ο"; var Oopf="𝕆"; var OpenCurlyDoubleQuote="“"; var OpenCurlyQuote="‘"; var Or="⩔"; var Oscr="𝒪"; var Oslas="Ø"; var Oslash="Ø"; var Otild="Õ"; var Otilde="Õ"; var Otimes="⨷"; var Oum="Ö"; var Ouml="Ö"; var OverBar="‾"; var OverBrace="⏞"; var OverBracket="⎴"; var OverParenthesis="⏜"; var PartialD="∂"; var Pcy="П"; var Pfr="𝔓"; var Phi="Φ"; var Pi="Π"; var PlusMinus="±"; var Poincareplane="ℌ"; var Popf="ℙ"; var Pr="⪻"; var Precedes="≺"; var PrecedesEqual="⪯"; var PrecedesSlantEqual="≼"; var PrecedesTilde="≾"; var Prime="″"; var Product="∏"; var Proportion="∷"; var Proportional="∝"; var Pscr="𝒫"; var Psi="Ψ"; var QUO='"'; var QUOT='"'; var Qfr="𝔔"; var Qopf="ℚ"; var Qscr="𝒬"; var RBarr="⤐"; var RE="®"; var REG="®"; var Racute="Ŕ"; var Rang="⟫"; var Rarr="↠"; var Rarrtl="⤖"; var Rcaron="Ř"; var Rcedil="Ŗ"; var Rcy="Р"; var Re="ℜ"; var ReverseElement="∋"; var ReverseEquilibrium="⇋"; var ReverseUpEquilibrium="⥯"; var Rfr="ℜ"; var Rho="Ρ"; var RightAngleBracket="⟩"; var RightArrow="→"; var RightArrowBar="⇥"; var RightArrowLeftArrow="⇄"; var RightCeiling="⌉"; var RightDoubleBracket="⟧"; var RightDownTeeVector="⥝"; var RightDownVector="⇂"; var RightDownVectorBar="⥕"; var RightFloor="⌋"; var RightTee="⊢"; var RightTeeArrow="↦"; var RightTeeVector="⥛"; var RightTriangle="⊳"; var RightTriangleBar="⧐"; var RightTriangleEqual="⊵"; var RightUpDownVector="⥏"; var RightUpTeeVector="⥜"; var RightUpVector="↾"; var RightUpVectorBar="⥔"; var RightVector="⇀"; var RightVectorBar="⥓"; var Rightarrow="⇒"; var Ropf="ℝ"; var RoundImplies="⥰"; var Rrightarrow="⇛"; var Rscr="ℛ"; var Rsh="↱"; var RuleDelayed="⧴"; var SHCHcy="Щ"; var SHcy="Ш"; var SOFTcy="Ь"; var Sacute="Ś"; var Sc="⪼"; var Scaron="Š"; var Scedil="Ş"; var Scirc="Ŝ"; var Scy="С"; var Sfr="𝔖"; var ShortDownArrow="↓"; var ShortLeftArrow="←"; var ShortRightArrow="→"; var ShortUpArrow="↑"; var Sigma="Σ"; var SmallCircle="∘"; var Sopf="𝕊"; var Sqrt="√"; var Square="□"; var SquareIntersection="⊓"; var SquareSubset="⊏"; var SquareSubsetEqual="⊑"; var SquareSuperset="⊐"; var SquareSupersetEqual="⊒"; var SquareUnion="⊔"; var Sscr="𝒮"; var Star="⋆"; var Sub="⋐"; var Subset="⋐"; var SubsetEqual="⊆"; var Succeeds="≻"; var SucceedsEqual="⪰"; var SucceedsSlantEqual="≽"; var SucceedsTilde="≿"; var SuchThat="∋"; var Sum="∑"; var Sup="⋑"; var Superset="⊃"; var SupersetEqual="⊇"; var Supset="⋑"; var THOR="Þ"; var THORN="Þ"; var TRADE="™"; var TSHcy="Ћ"; var TScy="Ц"; var Tab="\t"; var Tau="Τ"; var Tcaron="Ť"; var Tcedil="Ţ"; var Tcy="Т"; var Tfr="𝔗"; var Therefore="∴"; var Theta="Θ"; var ThickSpace="  "; var ThinSpace=" "; var Tilde="∼"; var TildeEqual="≃"; var TildeFullEqual="≅"; var TildeTilde="≈"; var Topf="𝕋"; var TripleDot="⃛"; var Tscr="𝒯"; var Tstrok="Ŧ"; var Uacut="Ú"; var Uacute="Ú"; var Uarr="↟"; var Uarrocir="⥉"; var Ubrcy="Ў"; var Ubreve="Ŭ"; var Ucir="Û"; var Ucirc="Û"; var Ucy="У"; var Udblac="Ű"; var Ufr="𝔘"; var Ugrav="Ù"; var Ugrave="Ù"; var Umacr="Ū"; var UnderBar="_"; var UnderBrace="⏟"; var UnderBracket="⎵"; var UnderParenthesis="⏝"; var Union="⋃"; var UnionPlus="⊎"; var Uogon="Ų"; var Uopf="𝕌"; var UpArrow="↑"; var UpArrowBar="⤒"; var UpArrowDownArrow="⇅"; var UpDownArrow="↕"; var UpEquilibrium="⥮"; var UpTee="⊥"; var UpTeeArrow="↥"; var Uparrow="⇑"; var Updownarrow="⇕"; var UpperLeftArrow="↖"; var UpperRightArrow="↗"; var Upsi="ϒ"; var Upsilon="Υ"; var Uring="Ů"; var Uscr="𝒰"; var Utilde="Ũ"; var Uum="Ü"; var Uuml="Ü"; var VDash="⊫"; var Vbar="⫫"; var Vcy="В"; var Vdash="⊩"; var Vdashl="⫦"; var Vee="⋁"; var Verbar="‖"; var Vert="‖"; var VerticalBar="∣"; var VerticalLine="|"; var VerticalSeparator="❘"; var VerticalTilde="≀"; var VeryThinSpace=" "; var Vfr="𝔙"; var Vopf="𝕍"; var Vscr="𝒱"; var Vvdash="⊪"; var Wcirc="Ŵ"; var Wedge="⋀"; var Wfr="𝔚"; var Wopf="𝕎"; var Wscr="𝒲"; var Xfr="𝔛"; var Xi="Ξ"; var Xopf="𝕏"; var Xscr="𝒳"; var YAcy="Я"; var YIcy="Ї"; var YUcy="Ю"; var Yacut="Ý"; var Yacute="Ý"; var Ycirc="Ŷ"; var Ycy="Ы"; var Yfr="𝔜"; var Yopf="𝕐"; var Yscr="𝒴"; var Yuml="Ÿ"; var ZHcy="Ж"; var Zacute="Ź"; var Zcaron="Ž"; var Zcy="З"; var Zdot="Ż"; var ZeroWidthSpace="​"; var Zeta="Ζ"; var Zfr="ℨ"; var Zopf="ℤ"; var Zscr="𝒵"; var aacut="á"; var aacute="á"; var abreve="ă"; var ac="∾"; var acE="∾̳"; var acd="∿"; var acir="â"; var acirc="â"; var acut="´"; var acute="´"; var acy="а"; var aeli="æ"; var aelig="æ"; var af="⁡"; var afr="𝔞"; var agrav="à"; var agrave="à"; var alefsym="ℵ"; var aleph="ℵ"; var alpha="α"; var amacr="ā"; var amalg="⨿"; var am="&"; var amp="&"; var and="∧"; var andand="⩕"; var andd="⩜"; var andslope="⩘"; var andv="⩚"; var ang="∠"; var ange="⦤"; var angle="∠"; var angmsd="∡"; var angmsdaa="⦨"; var angmsdab="⦩"; var angmsdac="⦪"; var angmsdad="⦫"; var angmsdae="⦬"; var angmsdaf="⦭"; var angmsdag="⦮"; var angmsdah="⦯"; var angrt="∟"; var angrtvb="⊾"; var angrtvbd="⦝"; var angsph="∢"; var angst="Å"; var angzarr="⍼"; var aogon="ą"; var aopf="𝕒"; var ap="≈"; var apE="⩰"; var apacir="⩯"; var ape="≊"; var apid="≋"; var apos="'"; var approx="≈"; var approxeq="≊"; var arin="å"; var aring="å"; var ascr="𝒶"; var ast="*"; var asymp="≈"; var asympeq="≍"; var atild="ã"; var atilde="ã"; var aum="ä"; var auml="ä"; var awconint="∳"; var awint="⨑"; var bNot="⫭"; var backcong="≌"; var backepsilon="϶"; var backprime="‵"; var backsim="∽"; var backsimeq="⋍"; var barvee="⊽"; var barwed="⌅"; var barwedge="⌅"; var bbrk="⎵"; var bbrktbrk="⎶"; var bcong="≌"; var bcy="б"; var bdquo="„"; var becaus="∵"; var because="∵"; var bemptyv="⦰"; var bepsi="϶"; var bernou="ℬ"; var beta="β"; var beth="ℶ"; var between="≬"; var bfr="𝔟"; var bigcap="⋂"; var bigcirc="◯"; var bigcup="⋃"; var bigodot="⨀"; var bigoplus="⨁"; var bigotimes="⨂"; var bigsqcup="⨆"; var bigstar="★"; var bigtriangledown="▽"; var bigtriangleup="△"; var biguplus="⨄"; var bigvee="⋁"; var bigwedge="⋀"; var bkarow="⤍"; var blacklozenge="⧫"; var blacksquare="▪"; var blacktriangle="▴"; var blacktriangledown="▾"; var blacktriangleleft="◂"; var blacktriangleright="▸"; var blank="␣"; var blk12="▒"; var blk14="░"; var blk34="▓"; var block="█"; var bne="=⃥"; var bnequiv="≡⃥"; var bnot="⌐"; var bopf="𝕓"; var bot="⊥"; var bottom="⊥"; var bowtie="⋈"; var boxDL="╗"; var boxDR="╔"; var boxDl="╖"; var boxDr="╓"; var boxH="═"; var boxHD="╦"; var boxHU="╩"; var boxHd="╤"; var boxHu="╧"; var boxUL="╝"; var boxUR="╚"; var boxUl="╜"; var boxUr="╙"; var boxV="║"; var boxVH="╬"; var boxVL="╣"; var boxVR="╠"; var boxVh="╫"; var boxVl="╢"; var boxVr="╟"; var boxbox="⧉"; var boxdL="╕"; var boxdR="╒"; var boxdl="┐"; var boxdr="┌"; var boxh="─"; var boxhD="╥"; var boxhU="╨"; var boxhd="┬"; var boxhu="┴"; var boxminus="⊟"; var boxplus="⊞"; var boxtimes="⊠"; var boxuL="╛"; var boxuR="╘"; var boxul="┘"; var boxur="└"; var boxv="│"; var boxvH="╪"; var boxvL="╡"; var boxvR="╞"; var boxvh="┼"; var boxvl="┤"; var boxvr="├"; var bprime="‵"; var breve="˘"; var brvba="¦"; var brvbar="¦"; var bscr="𝒷"; var bsemi="⁏"; var bsim="∽"; var bsime="⋍"; var bsol="\\"; var bsolb="⧅"; var bsolhsub="⟈"; var bull="•"; var bullet="•"; var bump="≎"; var bumpE="⪮"; var bumpe="≏"; var bumpeq="≏"; var cacute="ć"; var cap="∩"; var capand="⩄"; var capbrcup="⩉"; var capcap="⩋"; var capcup="⩇"; var capdot="⩀"; var caps="∩︀"; var caret="⁁"; var caron="ˇ"; var ccaps="⩍"; var ccaron="č"; var ccedi="ç"; var ccedil="ç"; var ccirc="ĉ"; var ccups="⩌"; var ccupssm="⩐"; var cdot="ċ"; var cedi="¸"; var cedil="¸"; var cemptyv="⦲"; var cen="¢"; var cent="¢"; var centerdot="·"; var cfr="𝔠"; var chcy="ч"; var check="✓"; var checkmark="✓"; var chi="χ"; var cir="○"; var cirE="⧃"; var circ="ˆ"; var circeq="≗"; var circlearrowleft="↺"; var circlearrowright="↻"; var circledR="®"; var circledS="Ⓢ"; var circledast="⊛"; var circledcirc="⊚"; var circleddash="⊝"; var cire="≗"; var cirfnint="⨐"; var cirmid="⫯"; var cirscir="⧂"; var clubs="♣"; var clubsuit="♣"; var colon=":"; var colone="≔"; var coloneq="≔"; var comma=","; var commat="@"; var comp="∁"; var compfn="∘"; var complement="∁"; var complexes="ℂ"; var cong="≅"; var congdot="⩭"; var conint="∮"; var copf="𝕔"; var coprod="∐"; var cop="©"; var copy="©"; var copysr="℗"; var crarr="↵"; var cross="✗"; var cscr="𝒸"; var csub="⫏"; var csube="⫑"; var csup="⫐"; var csupe="⫒"; var ctdot="⋯"; var cudarrl="⤸"; var cudarrr="⤵"; var cuepr="⋞"; var cuesc="⋟"; var cularr="↶"; var cularrp="⤽"; var cup="∪"; var cupbrcap="⩈"; var cupcap="⩆"; var cupcup="⩊"; var cupdot="⊍"; var cupor="⩅"; var cups="∪︀"; var curarr="↷"; var curarrm="⤼"; var curlyeqprec="⋞"; var curlyeqsucc="⋟"; var curlyvee="⋎"; var curlywedge="⋏"; var curre="¤"; var curren="¤"; var curvearrowleft="↶"; var curvearrowright="↷"; var cuvee="⋎"; var cuwed="⋏"; var cwconint="∲"; var cwint="∱"; var cylcty="⌭"; var dArr="⇓"; var dHar="⥥"; var dagger="†"; var daleth="ℸ"; var darr="↓"; var dash="‐"; var dashv="⊣"; var dbkarow="⤏"; var dblac="˝"; var dcaron="ď"; var dcy="д"; var dd="ⅆ"; var ddagger="‡"; var ddarr="⇊"; var ddotseq="⩷"; var de="°"; var deg="°"; var delta="δ"; var demptyv="⦱"; var dfisht="⥿"; var dfr="𝔡"; var dharl="⇃"; var dharr="⇂"; var diam="⋄"; var diamond="⋄"; var diamondsuit="♦"; var diams="♦"; var die="¨"; var digamma="ϝ"; var disin="⋲"; var div="÷"; var divid="÷"; var divide="÷"; var divideontimes="⋇"; var divonx="⋇"; var djcy="ђ"; var dlcorn="⌞"; var dlcrop="⌍"; var dollar="$"; var dopf="𝕕"; var dot="˙"; var doteq="≐"; var doteqdot="≑"; var dotminus="∸"; var dotplus="∔"; var dotsquare="⊡"; var doublebarwedge="⌆"; var downarrow="↓"; var downdownarrows="⇊"; var downharpoonleft="⇃"; var downharpoonright="⇂"; var drbkarow="⤐"; var drcorn="⌟"; var drcrop="⌌"; var dscr="𝒹"; var dscy="ѕ"; var dsol="⧶"; var dstrok="đ"; var dtdot="⋱"; var dtri="▿"; var dtrif="▾"; var duarr="⇵"; var duhar="⥯"; var dwangle="⦦"; var dzcy="џ"; var dzigrarr="⟿"; var eDDot="⩷"; var eDot="≑"; var eacut="é"; var eacute="é"; var easter="⩮"; var ecaron="ě"; var ecir="ê"; var ecirc="ê"; var ecolon="≕"; var ecy="э"; var edot="ė"; var ee="ⅇ"; var efDot="≒"; var efr="𝔢"; var eg="⪚"; var egrav="è"; var egrave="è"; var egs="⪖"; var egsdot="⪘"; var el="⪙"; var elinters="⏧"; var ell="ℓ"; var els="⪕"; var elsdot="⪗"; var emacr="ē"; var empty="∅"; var emptyset="∅"; var emptyv="∅"; var emsp13=" "; var emsp14=" "; var emsp=" "; var eng="ŋ"; var ensp=" "; var eogon="ę"; var eopf="𝕖"; var epar="⋕"; var eparsl="⧣"; var eplus="⩱"; var epsi="ε"; var epsilon="ε"; var epsiv="ϵ"; var eqcirc="≖"; var eqcolon="≕"; var eqsim="≂"; var eqslantgtr="⪖"; var eqslantless="⪕"; var equals="="; var equest="≟"; var equiv="≡"; var equivDD="⩸"; var eqvparsl="⧥"; var erDot="≓"; var erarr="⥱"; var escr="ℯ"; var esdot="≐"; var esim="≂"; var eta="η"; var et="ð"; var eth="ð"; var eum="ë"; var euml="ë"; var euro="€"; var excl="!"; var exist="∃"; var expectation="ℰ"; var exponentiale="ⅇ"; var fallingdotseq="≒"; var fcy="ф"; var female="♀"; var ffilig="ffi"; var fflig="ff"; var ffllig="ffl"; var ffr="𝔣"; var filig="fi"; var fjlig="fj"; var flat="♭"; var fllig="fl"; var fltns="▱"; var fnof="ƒ"; var fopf="𝕗"; var forall="∀"; var fork="⋔"; var forkv="⫙"; var fpartint="⨍"; var frac1="¼"; var frac12="½"; var frac13="⅓"; var frac14="¼"; var frac15="⅕"; var frac16="⅙"; var frac18="⅛"; var frac23="⅔"; var frac25="⅖"; var frac3="¾"; var frac34="¾"; var frac35="⅗"; var frac38="⅜"; var frac45="⅘"; var frac56="⅚"; var frac58="⅝"; var frac78="⅞"; var frasl="⁄"; var frown="⌢"; var fscr="𝒻"; var gE="≧"; var gEl="⪌"; var gacute="ǵ"; var gamma="γ"; var gammad="ϝ"; var gap="⪆"; var gbreve="ğ"; var gcirc="ĝ"; var gcy="г"; var gdot="ġ"; var ge="≥"; var gel="⋛"; var geq="≥"; var geqq="≧"; var geqslant="⩾"; var ges="⩾"; var gescc="⪩"; var gesdot="⪀"; var gesdoto="⪂"; var gesdotol="⪄"; var gesl="⋛︀"; var gesles="⪔"; var gfr="𝔤"; var gg="≫"; var ggg="⋙"; var gimel="ℷ"; var gjcy="ѓ"; var gl="≷"; var glE="⪒"; var gla="⪥"; var glj="⪤"; var gnE="≩"; var gnap="⪊"; var gnapprox="⪊"; var gne="⪈"; var gneq="⪈"; var gneqq="≩"; var gnsim="⋧"; var gopf="𝕘"; var grave="`"; var gscr="ℊ"; var gsim="≳"; var gsime="⪎"; var gsiml="⪐"; var g=">"; var gt=">"; var gtcc="⪧"; var gtcir="⩺"; var gtdot="⋗"; var gtlPar="⦕"; var gtquest="⩼"; var gtrapprox="⪆"; var gtrarr="⥸"; var gtrdot="⋗"; var gtreqless="⋛"; var gtreqqless="⪌"; var gtrless="≷"; var gtrsim="≳"; var gvertneqq="≩︀"; var gvnE="≩︀"; var hArr="⇔"; var hairsp=" "; var half="½"; var hamilt="ℋ"; var hardcy="ъ"; var harr="↔"; var harrcir="⥈"; var harrw="↭"; var hbar="ℏ"; var hcirc="ĥ"; var hearts="♥"; var heartsuit="♥"; var hellip="…"; var hercon="⊹"; var hfr="𝔥"; var hksearow="⤥"; var hkswarow="⤦"; var hoarr="⇿"; var homtht="∻"; var hookleftarrow="↩"; var hookrightarrow="↪"; var hopf="𝕙"; var horbar="―"; var hscr="𝒽"; var hslash="ℏ"; var hstrok="ħ"; var hybull="⁃"; var hyphen="‐"; var iacut="í"; var iacute="í"; var ic="⁣"; var icir="î"; var icirc="î"; var icy="и"; var iecy="е"; var iexc="¡"; var iexcl="¡"; var iff="⇔"; var ifr="𝔦"; var igrav="ì"; var igrave="ì"; var ii="ⅈ"; var iiiint="⨌"; var iiint="∭"; var iinfin="⧜"; var iiota="℩"; var ijlig="ij"; var imacr="ī"; var image="ℑ"; var imagline="ℐ"; var imagpart="ℑ"; var imath="ı"; var imof="⊷"; var imped="Ƶ"; var incare="℅"; var infin="∞"; var infintie="⧝"; var inodot="ı"; var int="∫"; var intcal="⊺"; var integers="ℤ"; var intercal="⊺"; var intlarhk="⨗"; var intprod="⨼"; var iocy="ё"; var iogon="į"; var iopf="𝕚"; var iota="ι"; var iprod="⨼"; var iques="¿"; var iquest="¿"; var iscr="𝒾"; var isin="∈"; var isinE="⋹"; var isindot="⋵"; var isins="⋴"; var isinsv="⋳"; var isinv="∈"; var it="⁢"; var itilde="ĩ"; var iukcy="і"; var ium="ï"; var iuml="ï"; var jcirc="ĵ"; var jcy="й"; var jfr="𝔧"; var jmath="ȷ"; var jopf="𝕛"; var jscr="𝒿"; var jsercy="ј"; var jukcy="є"; var kappa="κ"; var kappav="ϰ"; var kcedil="ķ"; var kcy="к"; var kfr="𝔨"; var kgreen="ĸ"; var khcy="х"; var kjcy="ќ"; var kopf="𝕜"; var kscr="𝓀"; var lAarr="⇚"; var lArr="⇐"; var lAtail="⤛"; var lBarr="⤎"; var lE="≦"; var lEg="⪋"; var lHar="⥢"; var lacute="ĺ"; var laemptyv="⦴"; var lagran="ℒ"; var lambda="λ"; var lang="⟨"; var langd="⦑"; var langle="⟨"; var lap="⪅"; var laqu="«"; var laquo="«"; var larr="←"; var larrb="⇤"; var larrbfs="⤟"; var larrfs="⤝"; var larrhk="↩"; var larrlp="↫"; var larrpl="⤹"; var larrsim="⥳"; var larrtl="↢"; var lat="⪫"; var latail="⤙"; var late="⪭"; var lates="⪭︀"; var lbarr="⤌"; var lbbrk="❲"; var lbrace="{"; var lbrack="["; var lbrke="⦋"; var lbrksld="⦏"; var lbrkslu="⦍"; var lcaron="ľ"; var lcedil="ļ"; var lceil="⌈"; var lcub="{"; var lcy="л"; var ldca="⤶"; var ldquo="“"; var ldquor="„"; var ldrdhar="⥧"; var ldrushar="⥋"; var ldsh="↲"; var le="≤"; var leftarrow="←"; var leftarrowtail="↢"; var leftharpoondown="↽"; var leftharpoonup="↼"; var leftleftarrows="⇇"; var leftrightarrow="↔"; var leftrightarrows="⇆"; var leftrightharpoons="⇋"; var leftrightsquigarrow="↭"; var leftthreetimes="⋋"; var leg="⋚"; var leq="≤"; var leqq="≦"; var leqslant="⩽"; var les="⩽"; var lescc="⪨"; var lesdot="⩿"; var lesdoto="⪁"; var lesdotor="⪃"; var lesg="⋚︀"; var lesges="⪓"; var lessapprox="⪅"; var lessdot="⋖"; var lesseqgtr="⋚"; var lesseqqgtr="⪋"; var lessgtr="≶"; var lesssim="≲"; var lfisht="⥼"; var lfloor="⌊"; var lfr="𝔩"; var lg="≶"; var lgE="⪑"; var lhard="↽"; var lharu="↼"; var lharul="⥪"; var lhblk="▄"; var ljcy="љ"; var ll="≪"; var llarr="⇇"; var llcorner="⌞"; var llhard="⥫"; var lltri="◺"; var lmidot="ŀ"; var lmoust="⎰"; var lmoustache="⎰"; var lnE="≨"; var lnap="⪉"; var lnapprox="⪉"; var lne="⪇"; var lneq="⪇"; var lneqq="≨"; var lnsim="⋦"; var loang="⟬"; var loarr="⇽"; var lobrk="⟦"; var longleftarrow="⟵"; var longleftrightarrow="⟷"; var longmapsto="⟼"; var longrightarrow="⟶"; var looparrowleft="↫"; var looparrowright="↬"; var lopar="⦅"; var lopf="𝕝"; var loplus="⨭"; var lotimes="⨴"; var lowast="∗"; var lowbar="_"; var loz="◊"; var lozenge="◊"; var lozf="⧫"; var lpar="("; var lparlt="⦓"; var lrarr="⇆"; var lrcorner="⌟"; var lrhar="⇋"; var lrhard="⥭"; var lrm="‎"; var lrtri="⊿"; var lsaquo="‹"; var lscr="𝓁"; var lsh="↰"; var lsim="≲"; var lsime="⪍"; var lsimg="⪏"; var lsqb="["; var lsquo="‘"; var lsquor="‚"; var lstrok="ł"; var l="<"; var lt="<"; var ltcc="⪦"; var ltcir="⩹"; var ltdot="⋖"; var lthree="⋋"; var ltimes="⋉"; var ltlarr="⥶"; var ltquest="⩻"; var ltrPar="⦖"; var ltri="◃"; var ltrie="⊴"; var ltrif="◂"; var lurdshar="⥊"; var luruhar="⥦"; var lvertneqq="≨︀"; var lvnE="≨︀"; var mDDot="∺"; var mac="¯"; var macr="¯"; var male="♂"; var malt="✠"; var maltese="✠"; var map$1="↦"; var mapsto="↦"; var mapstodown="↧"; var mapstoleft="↤"; var mapstoup="↥"; var marker="▮"; var mcomma="⨩"; var mcy="м"; var mdash="—"; var measuredangle="∡"; var mfr="𝔪"; var mho="℧"; var micr="µ"; var micro="µ"; var mid="∣"; var midast="*"; var midcir="⫰"; var middo="·"; var middot="·"; var minus="−"; var minusb="⊟"; var minusd="∸"; var minusdu="⨪"; var mlcp="⫛"; var mldr="…"; var mnplus="∓"; var models="⊧"; var mopf="𝕞"; var mp="∓"; var mscr="𝓂"; var mstpos="∾"; var mu="μ"; var multimap="⊸"; var mumap="⊸"; var nGg="⋙̸"; var nGt="≫⃒"; var nGtv="≫̸"; var nLeftarrow="⇍"; var nLeftrightarrow="⇎"; var nLl="⋘̸"; var nLt="≪⃒"; var nLtv="≪̸"; var nRightarrow="⇏"; var nVDash="⊯"; var nVdash="⊮"; var nabla="∇"; var nacute="ń"; var nang="∠⃒"; var nap="≉"; var napE="⩰̸"; var napid="≋̸"; var napos="ʼn"; var napprox="≉"; var natur="♮"; var natural="♮"; var naturals="ℕ"; var nbs=" "; var nbsp=" "; var nbump="≎̸"; var nbumpe="≏̸"; var ncap="⩃"; var ncaron="ň"; var ncedil="ņ"; var ncong="≇"; var ncongdot="⩭̸"; var ncup="⩂"; var ncy="н"; var ndash="–"; var ne="≠"; var neArr="⇗"; var nearhk="⤤"; var nearr="↗"; var nearrow="↗"; var nedot="≐̸"; var nequiv="≢"; var nesear="⤨"; var nesim="≂̸"; var nexist="∄"; var nexists="∄"; var nfr="𝔫"; var ngE="≧̸"; var nge="≱"; var ngeq="≱"; var ngeqq="≧̸"; var ngeqslant="⩾̸"; var nges="⩾̸"; var ngsim="≵"; var ngt="≯"; var ngtr="≯"; var nhArr="⇎"; var nharr="↮"; var nhpar="⫲"; var ni="∋"; var nis="⋼"; var nisd="⋺"; var niv="∋"; var njcy="њ"; var nlArr="⇍"; var nlE="≦̸"; var nlarr="↚"; var nldr="‥"; var nle="≰"; var nleftarrow="↚"; var nleftrightarrow="↮"; var nleq="≰"; var nleqq="≦̸"; var nleqslant="⩽̸"; var nles="⩽̸"; var nless="≮"; var nlsim="≴"; var nlt="≮"; var nltri="⋪"; var nltrie="⋬"; var nmid="∤"; var nopf="𝕟"; var no="¬"; var not="¬"; var notin="∉"; var notinE="⋹̸"; var notindot="⋵̸"; var notinva="∉"; var notinvb="⋷"; var notinvc="⋶"; var notni="∌"; var notniva="∌"; var notnivb="⋾"; var notnivc="⋽"; var npar="∦"; var nparallel="∦"; var nparsl="⫽⃥"; var npart="∂̸"; var npolint="⨔"; var npr="⊀"; var nprcue="⋠"; var npre="⪯̸"; var nprec="⊀"; var npreceq="⪯̸"; var nrArr="⇏"; var nrarr="↛"; var nrarrc="⤳̸"; var nrarrw="↝̸"; var nrightarrow="↛"; var nrtri="⋫"; var nrtrie="⋭"; var nsc="⊁"; var nsccue="⋡"; var nsce="⪰̸"; var nscr="𝓃"; var nshortmid="∤"; var nshortparallel="∦"; var nsim="≁"; var nsime="≄"; var nsimeq="≄"; var nsmid="∤"; var nspar="∦"; var nsqsube="⋢"; var nsqsupe="⋣"; var nsub="⊄"; var nsubE="⫅̸"; var nsube="⊈"; var nsubset="⊂⃒"; var nsubseteq="⊈"; var nsubseteqq="⫅̸"; var nsucc="⊁"; var nsucceq="⪰̸"; var nsup="⊅"; var nsupE="⫆̸"; var nsupe="⊉"; var nsupset="⊃⃒"; var nsupseteq="⊉"; var nsupseteqq="⫆̸"; var ntgl="≹"; var ntild="ñ"; var ntilde="ñ"; var ntlg="≸"; var ntriangleleft="⋪"; var ntrianglelefteq="⋬"; var ntriangleright="⋫"; var ntrianglerighteq="⋭"; var nu="ν"; var num="#"; var numero="№"; var numsp=" "; var nvDash="⊭"; var nvHarr="⤄"; var nvap="≍⃒"; var nvdash="⊬"; var nvge="≥⃒"; var nvgt=">⃒"; var nvinfin="⧞"; var nvlArr="⤂"; var nvle="≤⃒"; var nvlt="<⃒"; var nvltrie="⊴⃒"; var nvrArr="⤃"; var nvrtrie="⊵⃒"; var nvsim="∼⃒"; var nwArr="⇖"; var nwarhk="⤣"; var nwarr="↖"; var nwarrow="↖"; var nwnear="⤧"; var oS="Ⓢ"; var oacut="ó"; var oacute="ó"; var oast="⊛"; var ocir="ô"; var ocirc="ô"; var ocy="о"; var odash="⊝"; var odblac="ő"; var odiv="⨸"; var odot="⊙"; var odsold="⦼"; var oelig="œ"; var ofcir="⦿"; var ofr="𝔬"; var ogon="˛"; var ograv="ò"; var ograve="ò"; var ogt="⧁"; var ohbar="⦵"; var ohm="Ω"; var oint="∮"; var olarr="↺"; var olcir="⦾"; var olcross="⦻"; var oline="‾"; var olt="⧀"; var omacr="ō"; var omega="ω"; var omicron="ο"; var omid="⦶"; var ominus="⊖"; var oopf="𝕠"; var opar="⦷"; var operp="⦹"; var oplus="⊕"; var or="∨"; var orarr="↻"; var ord="º"; var order="ℴ"; var orderof="ℴ"; var ordf="ª"; var ordm="º"; var origof="⊶"; var oror="⩖"; var orslope="⩗"; var orv="⩛"; var oscr="ℴ"; var oslas="ø"; var oslash="ø"; var osol="⊘"; var otild="õ"; var otilde="õ"; var otimes="⊗"; var otimesas="⨶"; var oum="ö"; var ouml="ö"; var ovbar="⌽"; var par="¶"; var para="¶"; var parallel="∥"; var parsim="⫳"; var parsl="⫽"; var part="∂"; var pcy="п"; var percnt="%"; var period="."; var permil="‰"; var perp="⊥"; var pertenk="‱"; var pfr="𝔭"; var phi="φ"; var phiv="ϕ"; var phmmat="ℳ"; var phone="☎"; var pi="π"; var pitchfork="⋔"; var piv="ϖ"; var planck="ℏ"; var planckh="ℎ"; var plankv="ℏ"; var plus="+"; var plusacir="⨣"; var plusb="⊞"; var pluscir="⨢"; var plusdo="∔"; var plusdu="⨥"; var pluse="⩲"; var plusm="±"; var plusmn="±"; var plussim="⨦"; var plustwo="⨧"; var pm="±"; var pointint="⨕"; var popf="𝕡"; var poun="£"; var pound="£"; var pr="≺"; var prE="⪳"; var prap="⪷"; var prcue="≼"; var pre="⪯"; var prec="≺"; var precapprox="⪷"; var preccurlyeq="≼"; var preceq="⪯"; var precnapprox="⪹"; var precneqq="⪵"; var precnsim="⋨"; var precsim="≾"; var prime="′"; var primes="ℙ"; var prnE="⪵"; var prnap="⪹"; var prnsim="⋨"; var prod="∏"; var profalar="⌮"; var profline="⌒"; var profsurf="⌓"; var prop="∝"; var propto="∝"; var prsim="≾"; var prurel="⊰"; var pscr="𝓅"; var psi="ψ"; var puncsp=" "; var qfr="𝔮"; var qint="⨌"; var qopf="𝕢"; var qprime="⁗"; var qscr="𝓆"; var quaternions="ℍ"; var quatint="⨖"; var quest="?"; var questeq="≟"; var quo='"'; var quot='"'; var rAarr="⇛"; var rArr="⇒"; var rAtail="⤜"; var rBarr="⤏"; var rHar="⥤"; var race="∽̱"; var racute="ŕ"; var radic="√"; var raemptyv="⦳"; var rang="⟩"; var rangd="⦒"; var range="⦥"; var rangle="⟩"; var raqu="»"; var raquo="»"; var rarr="→"; var rarrap="⥵"; var rarrb="⇥"; var rarrbfs="⤠"; var rarrc="⤳"; var rarrfs="⤞"; var rarrhk="↪"; var rarrlp="↬"; var rarrpl="⥅"; var rarrsim="⥴"; var rarrtl="↣"; var rarrw="↝"; var ratail="⤚"; var ratio="∶"; var rationals="ℚ"; var rbarr="⤍"; var rbbrk="❳"; var rbrace="}"; var rbrack="]"; var rbrke="⦌"; var rbrksld="⦎"; var rbrkslu="⦐"; var rcaron="ř"; var rcedil="ŗ"; var rceil="⌉"; var rcub="}"; var rcy="р"; var rdca="⤷"; var rdldhar="⥩"; var rdquo="”"; var rdquor="”"; var rdsh="↳"; var real="ℜ"; var realine="ℛ"; var realpart="ℜ"; var reals="ℝ"; var rect="▭"; var re="®"; var reg="®"; var rfisht="⥽"; var rfloor="⌋"; var rfr="𝔯"; var rhard="⇁"; var rharu="⇀"; var rharul="⥬"; var rho="ρ"; var rhov="ϱ"; var rightarrow="→"; var rightarrowtail="↣"; var rightharpoondown="⇁"; var rightharpoonup="⇀"; var rightleftarrows="⇄"; var rightleftharpoons="⇌"; var rightrightarrows="⇉"; var rightsquigarrow="↝"; var rightthreetimes="⋌"; var ring="˚"; var risingdotseq="≓"; var rlarr="⇄"; var rlhar="⇌"; var rlm="‏"; var rmoust="⎱"; var rmoustache="⎱"; var rnmid="⫮"; var roang="⟭"; var roarr="⇾"; var robrk="⟧"; var ropar="⦆"; var ropf="𝕣"; var roplus="⨮"; var rotimes="⨵"; var rpar=")"; var rpargt="⦔"; var rppolint="⨒"; var rrarr="⇉"; var rsaquo="›"; var rscr="𝓇"; var rsh="↱"; var rsqb="]"; var rsquo="’"; var rsquor="’"; var rthree="⋌"; var rtimes="⋊"; var rtri="▹"; var rtrie="⊵"; var rtrif="▸"; var rtriltri="⧎"; var ruluhar="⥨"; var rx="℞"; var sacute="ś"; var sbquo="‚"; var sc="≻"; var scE="⪴"; var scap="⪸"; var scaron="š"; var sccue="≽"; var sce="⪰"; var scedil="ş"; var scirc="ŝ"; var scnE="⪶"; var scnap="⪺"; var scnsim="⋩"; var scpolint="⨓"; var scsim="≿"; var scy="с"; var sdot="⋅"; var sdotb="⊡"; var sdote="⩦"; var seArr="⇘"; var searhk="⤥"; var searr="↘"; var searrow="↘"; var sec="§"; var sect="§"; var semi=";"; var seswar="⤩"; var setminus="∖"; var setmn="∖"; var sext="✶"; var sfr="𝔰"; var sfrown="⌢"; var sharp="♯"; var shchcy="щ"; var shcy="ш"; var shortmid="∣"; var shortparallel="∥"; var sh="­"; var shy="­"; var sigma="σ"; var sigmaf="ς"; var sigmav="ς"; var sim="∼"; var simdot="⩪"; var sime="≃"; var simeq="≃"; var simg="⪞"; var simgE="⪠"; var siml="⪝"; var simlE="⪟"; var simne="≆"; var simplus="⨤"; var simrarr="⥲"; var slarr="←"; var smallsetminus="∖"; var smashp="⨳"; var smeparsl="⧤"; var smid="∣"; var smile="⌣"; var smt="⪪"; var smte="⪬"; var smtes="⪬︀"; var softcy="ь"; var sol="/"; var solb="⧄"; var solbar="⌿"; var sopf="𝕤"; var spades="♠"; var spadesuit="♠"; var spar="∥"; var sqcap="⊓"; var sqcaps="⊓︀"; var sqcup="⊔"; var sqcups="⊔︀"; var sqsub="⊏"; var sqsube="⊑"; var sqsubset="⊏"; var sqsubseteq="⊑"; var sqsup="⊐"; var sqsupe="⊒"; var sqsupset="⊐"; var sqsupseteq="⊒"; var squ="□"; var square="□"; var squarf="▪"; var squf="▪"; var srarr="→"; var sscr="𝓈"; var ssetmn="∖"; var ssmile="⌣"; var sstarf="⋆"; var star="☆"; var starf="★"; var straightepsilon="ϵ"; var straightphi="ϕ"; var strns="¯"; var sub="⊂"; var subE="⫅"; var subdot="⪽"; var sube="⊆"; var subedot="⫃"; var submult="⫁"; var subnE="⫋"; var subne="⊊"; var subplus="⪿"; var subrarr="⥹"; var subset="⊂"; var subseteq="⊆"; var subseteqq="⫅"; var subsetneq="⊊"; var subsetneqq="⫋"; var subsim="⫇"; var subsub="⫕"; var subsup="⫓"; var succ="≻"; var succapprox="⪸"; var succcurlyeq="≽"; var succeq="⪰"; var succnapprox="⪺"; var succneqq="⪶"; var succnsim="⋩"; var succsim="≿"; var sum="∑"; var sung="♪"; var sup="⊃"; var sup1="¹"; var sup2="²"; var sup3="³"; var supE="⫆"; var supdot="⪾"; var supdsub="⫘"; var supe="⊇"; var supedot="⫄"; var suphsol="⟉"; var suphsub="⫗"; var suplarr="⥻"; var supmult="⫂"; var supnE="⫌"; var supne="⊋"; var supplus="⫀"; var supset="⊃"; var supseteq="⊇"; var supseteqq="⫆"; var supsetneq="⊋"; var supsetneqq="⫌"; var supsim="⫈"; var supsub="⫔"; var supsup="⫖"; var swArr="⇙"; var swarhk="⤦"; var swarr="↙"; var swarrow="↙"; var swnwar="⤪"; var szli="ß"; var szlig="ß"; var target="⌖"; var tau="τ"; var tbrk="⎴"; var tcaron="ť"; var tcedil="ţ"; var tcy="т"; var tdot="⃛"; var telrec="⌕"; var tfr="𝔱"; var there4="∴"; var therefore="∴"; var theta="θ"; var thetasym="ϑ"; var thetav="ϑ"; var thickapprox="≈"; var thicksim="∼"; var thinsp=" "; var thkap="≈"; var thksim="∼"; var thor="þ"; var thorn="þ"; var tilde="˜"; var time="×"; var times="×"; var timesb="⊠"; var timesbar="⨱"; var timesd="⨰"; var tint="∭"; var toea="⤨"; var top="⊤"; var topbot="⌶"; var topcir="⫱"; var topf="𝕥"; var topfork="⫚"; var tosa="⤩"; var tprime="‴"; var trade="™"; var triangle="▵"; var triangledown="▿"; var triangleleft="◃"; var trianglelefteq="⊴"; var triangleq="≜"; var triangleright="▹"; var trianglerighteq="⊵"; var tridot="◬"; var trie="≜"; var triminus="⨺"; var triplus="⨹"; var trisb="⧍"; var tritime="⨻"; var trpezium="⏢"; var tscr="𝓉"; var tscy="ц"; var tshcy="ћ"; var tstrok="ŧ"; var twixt="≬"; var twoheadleftarrow="↞"; var twoheadrightarrow="↠"; var uArr="⇑"; var uHar="⥣"; var uacut="ú"; var uacute="ú"; var uarr="↑"; var ubrcy="ў"; var ubreve="ŭ"; var ucir="û"; var ucirc="û"; var ucy="у"; var udarr="⇅"; var udblac="ű"; var udhar="⥮"; var ufisht="⥾"; var ufr="𝔲"; var ugrav="ù"; var ugrave="ù"; var uharl="↿"; var uharr="↾"; var uhblk="▀"; var ulcorn="⌜"; var ulcorner="⌜"; var ulcrop="⌏"; var ultri="◸"; var umacr="ū"; var um="¨"; var uml="¨"; var uogon="ų"; var uopf="𝕦"; var uparrow="↑"; var updownarrow="↕"; var upharpoonleft="↿"; var upharpoonright="↾"; var uplus="⊎"; var upsi="υ"; var upsih="ϒ"; var upsilon="υ"; var upuparrows="⇈"; var urcorn="⌝"; var urcorner="⌝"; var urcrop="⌎"; var uring="ů"; var urtri="◹"; var uscr="𝓊"; var utdot="⋰"; var utilde="ũ"; var utri="▵"; var utrif="▴"; var uuarr="⇈"; var uum="ü"; var uuml="ü"; var uwangle="⦧"; var vArr="⇕"; var vBar="⫨"; var vBarv="⫩"; var vDash="⊨"; var vangrt="⦜"; var varepsilon="ϵ"; var varkappa="ϰ"; var varnothing="∅"; var varphi="ϕ"; var varpi="ϖ"; var varpropto="∝"; var varr="↕"; var varrho="ϱ"; var varsigma="ς"; var varsubsetneq="⊊︀"; var varsubsetneqq="⫋︀"; var varsupsetneq="⊋︀"; var varsupsetneqq="⫌︀"; var vartheta="ϑ"; var vartriangleleft="⊲"; var vartriangleright="⊳"; var vcy="в"; var vdash="⊢"; var vee="∨"; var veebar="⊻"; var veeeq="≚"; var vellip="⋮"; var verbar="|"; var vert="|"; var vfr="𝔳"; var vltri="⊲"; var vnsub="⊂⃒"; var vnsup="⊃⃒"; var vopf="𝕧"; var vprop="∝"; var vrtri="⊳"; var vscr="𝓋"; var vsubnE="⫋︀"; var vsubne="⊊︀"; var vsupnE="⫌︀"; var vsupne="⊋︀"; var vzigzag="⦚"; var wcirc="ŵ"; var wedbar="⩟"; var wedge="∧"; var wedgeq="≙"; var weierp="℘"; var wfr="𝔴"; var wopf="𝕨"; var wp="℘"; var wr="≀"; var wreath="≀"; var wscr="𝓌"; var xcap="⋂"; var xcirc="◯"; var xcup="⋃"; var xdtri="▽"; var xfr="𝔵"; var xhArr="⟺"; var xharr="⟷"; var xi="ξ"; var xlArr="⟸"; var xlarr="⟵"; var xmap="⟼"; var xnis="⋻"; var xodot="⨀"; var xopf="𝕩"; var xoplus="⨁"; var xotime="⨂"; var xrArr="⟹"; var xrarr="⟶"; var xscr="𝓍"; var xsqcup="⨆"; var xuplus="⨄"; var xutri="△"; var xvee="⋁"; var xwedge="⋀"; var yacut="ý"; var yacute="ý"; var yacy="я"; var ycirc="ŷ"; var ycy="ы"; var ye="¥"; var yen="¥"; var yfr="𝔶"; var yicy="ї"; var yopf="𝕪"; var yscr="𝓎"; var yucy="ю"; var yum="ÿ"; var yuml="ÿ"; var zacute="ź"; var zcaron="ž"; var zcy="з"; var zdot="ż"; var zeetrf="ℨ"; var zeta="ζ"; var zfr="𝔷"; var zhcy="ж"; var zigrarr="⇝"; var zopf="𝕫"; var zscr="𝓏"; var zwj="‍"; var zwnj="‌"; var index$14={AEli:AEli,AElig:AElig,AM:AM,AMP:AMP,Aacut:Aacut,Aacute:Aacute,Abreve:Abreve,Acir:Acir,Acirc:Acirc,Acy:Acy,Afr:Afr,Agrav:Agrav,Agrave:Agrave,Alpha:Alpha,Amacr:Amacr,And:And,Aogon:Aogon,Aopf:Aopf,ApplyFunction:ApplyFunction,Arin:Arin,Aring:Aring,Ascr:Ascr,Assign:Assign,Atild:Atild,Atilde:Atilde,Aum:Aum,Auml:Auml,Backslash:Backslash,Barv:Barv,Barwed:Barwed,Bcy:Bcy,Because:Because,Bernoullis:Bernoullis,Beta:Beta,Bfr:Bfr,Bopf:Bopf,Breve:Breve,Bscr:Bscr,Bumpeq:Bumpeq,CHcy:CHcy,COP:COP,COPY:COPY,Cacute:Cacute,Cap:Cap,CapitalDifferentialD:CapitalDifferentialD,Cayleys:Cayleys,Ccaron:Ccaron,Ccedi:Ccedi,Ccedil:Ccedil,Ccirc:Ccirc,Cconint:Cconint,Cdot:Cdot,Cedilla:Cedilla,CenterDot:CenterDot,Cfr:Cfr,Chi:Chi,CircleDot:CircleDot,CircleMinus:CircleMinus,CirclePlus:CirclePlus,CircleTimes:CircleTimes,ClockwiseContourIntegral:ClockwiseContourIntegral,CloseCurlyDoubleQuote:CloseCurlyDoubleQuote,CloseCurlyQuote:CloseCurlyQuote,Colon:Colon,Colone:Colone,Congruent:Congruent,Conint:Conint,ContourIntegral:ContourIntegral,Copf:Copf,Coproduct:Coproduct,CounterClockwiseContourIntegral:CounterClockwiseContourIntegral,Cross:Cross,Cscr:Cscr,Cup:Cup,CupCap:CupCap,DD:DD,DDotrahd:DDotrahd,DJcy:DJcy,DScy:DScy,DZcy:DZcy,Dagger:Dagger,Darr:Darr,Dashv:Dashv,Dcaron:Dcaron,Dcy:Dcy,Del:Del,Delta:Delta,Dfr:Dfr,DiacriticalAcute:DiacriticalAcute,DiacriticalDot:DiacriticalDot,DiacriticalDoubleAcute:DiacriticalDoubleAcute,DiacriticalGrave:DiacriticalGrave,DiacriticalTilde:DiacriticalTilde,Diamond:Diamond,DifferentialD:DifferentialD,Dopf:Dopf,Dot:Dot,DotDot:DotDot,DotEqual:DotEqual,DoubleContourIntegral:DoubleContourIntegral,DoubleDot:DoubleDot,DoubleDownArrow:DoubleDownArrow,DoubleLeftArrow:DoubleLeftArrow,DoubleLeftRightArrow:DoubleLeftRightArrow,DoubleLeftTee:DoubleLeftTee,DoubleLongLeftArrow:DoubleLongLeftArrow,DoubleLongLeftRightArrow:DoubleLongLeftRightArrow,DoubleLongRightArrow:DoubleLongRightArrow,DoubleRightArrow:DoubleRightArrow,DoubleRightTee:DoubleRightTee,DoubleUpArrow:DoubleUpArrow,DoubleUpDownArrow:DoubleUpDownArrow,DoubleVerticalBar:DoubleVerticalBar,DownArrow:DownArrow,DownArrowBar:DownArrowBar,DownArrowUpArrow:DownArrowUpArrow,DownBreve:DownBreve,DownLeftRightVector:DownLeftRightVector,DownLeftTeeVector:DownLeftTeeVector,DownLeftVector:DownLeftVector,DownLeftVectorBar:DownLeftVectorBar,DownRightTeeVector:DownRightTeeVector,DownRightVector:DownRightVector,DownRightVectorBar:DownRightVectorBar,DownTee:DownTee,DownTeeArrow:DownTeeArrow,Downarrow:Downarrow,Dscr:Dscr,Dstrok:Dstrok,ENG:ENG,ET:ET,ETH:ETH,Eacut:Eacut,Eacute:Eacute,Ecaron:Ecaron,Ecir:Ecir,Ecirc:Ecirc,Ecy:Ecy,Edot:Edot,Efr:Efr,Egrav:Egrav,Egrave:Egrave,Element:Element,Emacr:Emacr,EmptySmallSquare:EmptySmallSquare,EmptyVerySmallSquare:EmptyVerySmallSquare,Eogon:Eogon,Eopf:Eopf,Epsilon:Epsilon,Equal:Equal,EqualTilde:EqualTilde,Equilibrium:Equilibrium,Escr:Escr,Esim:Esim,Eta:Eta,Eum:Eum,Euml:Euml,Exists:Exists,ExponentialE:ExponentialE,Fcy:Fcy,Ffr:Ffr,FilledSmallSquare:FilledSmallSquare,FilledVerySmallSquare:FilledVerySmallSquare,Fopf:Fopf,ForAll:ForAll,Fouriertrf:Fouriertrf,Fscr:Fscr,GJcy:GJcy,G:G,GT:GT,Gamma:Gamma,Gammad:Gammad,Gbreve:Gbreve,Gcedil:Gcedil,Gcirc:Gcirc,Gcy:Gcy,Gdot:Gdot,Gfr:Gfr,Gg:Gg,Gopf:Gopf,GreaterEqual:GreaterEqual,GreaterEqualLess:GreaterEqualLess,GreaterFullEqual:GreaterFullEqual,GreaterGreater:GreaterGreater,GreaterLess:GreaterLess,GreaterSlantEqual:GreaterSlantEqual,GreaterTilde:GreaterTilde,Gscr:Gscr,Gt:Gt,HARDcy:HARDcy,Hacek:Hacek,Hat:Hat,Hcirc:Hcirc,Hfr:Hfr,HilbertSpace:HilbertSpace,Hopf:Hopf,HorizontalLine:HorizontalLine,Hscr:Hscr,Hstrok:Hstrok,HumpDownHump:HumpDownHump,HumpEqual:HumpEqual,IEcy:IEcy,IJlig:IJlig,IOcy:IOcy,Iacut:Iacut,Iacute:Iacute,Icir:Icir,Icirc:Icirc,Icy:Icy,Idot:Idot,Ifr:Ifr,Igrav:Igrav,Igrave:Igrave,Im:Im,Imacr:Imacr,ImaginaryI:ImaginaryI,Implies:Implies,Int:Int,Integral:Integral,Intersection:Intersection,InvisibleComma:InvisibleComma,InvisibleTimes:InvisibleTimes,Iogon:Iogon,Iopf:Iopf,Iota:Iota,Iscr:Iscr,Itilde:Itilde,Iukcy:Iukcy,Ium:Ium,Iuml:Iuml,Jcirc:Jcirc,Jcy:Jcy,Jfr:Jfr,Jopf:Jopf,Jscr:Jscr,Jsercy:Jsercy,Jukcy:Jukcy,KHcy:KHcy,KJcy:KJcy,Kappa:Kappa,Kcedil:Kcedil,Kcy:Kcy,Kfr:Kfr,Kopf:Kopf,Kscr:Kscr,LJcy:LJcy,L:L,LT:LT,Lacute:Lacute,Lambda:Lambda,Lang:Lang,Laplacetrf:Laplacetrf,Larr:Larr,Lcaron:Lcaron,Lcedil:Lcedil,Lcy:Lcy,LeftAngleBracket:LeftAngleBracket,LeftArrow:LeftArrow,LeftArrowBar:LeftArrowBar,LeftArrowRightArrow:LeftArrowRightArrow,LeftCeiling:LeftCeiling,LeftDoubleBracket:LeftDoubleBracket,LeftDownTeeVector:LeftDownTeeVector,LeftDownVector:LeftDownVector,LeftDownVectorBar:LeftDownVectorBar,LeftFloor:LeftFloor,LeftRightArrow:LeftRightArrow,LeftRightVector:LeftRightVector,LeftTee:LeftTee,LeftTeeArrow:LeftTeeArrow,LeftTeeVector:LeftTeeVector,LeftTriangle:LeftTriangle,LeftTriangleBar:LeftTriangleBar,LeftTriangleEqual:LeftTriangleEqual,LeftUpDownVector:LeftUpDownVector,LeftUpTeeVector:LeftUpTeeVector,LeftUpVector:LeftUpVector,LeftUpVectorBar:LeftUpVectorBar,LeftVector:LeftVector,LeftVectorBar:LeftVectorBar,Leftarrow:Leftarrow,Leftrightarrow:Leftrightarrow,LessEqualGreater:LessEqualGreater,LessFullEqual:LessFullEqual,LessGreater:LessGreater,LessLess:LessLess,LessSlantEqual:LessSlantEqual,LessTilde:LessTilde,Lfr:Lfr,Ll:Ll,Lleftarrow:Lleftarrow,Lmidot:Lmidot,LongLeftArrow:LongLeftArrow,LongLeftRightArrow:LongLeftRightArrow,LongRightArrow:LongRightArrow,Longleftarrow:Longleftarrow,Longleftrightarrow:Longleftrightarrow,Longrightarrow:Longrightarrow,Lopf:Lopf,LowerLeftArrow:LowerLeftArrow,LowerRightArrow:LowerRightArrow,Lscr:Lscr,Lsh:Lsh,Lstrok:Lstrok,Lt:Lt,Mcy:Mcy,MediumSpace:MediumSpace,Mellintrf:Mellintrf,Mfr:Mfr,MinusPlus:MinusPlus,Mopf:Mopf,Mscr:Mscr,Mu:Mu,NJcy:NJcy,Nacute:Nacute,Ncaron:Ncaron,Ncedil:Ncedil,Ncy:Ncy,NegativeMediumSpace:NegativeMediumSpace,NegativeThickSpace:NegativeThickSpace,NegativeThinSpace:NegativeThinSpace,NegativeVeryThinSpace:NegativeVeryThinSpace,NestedGreaterGreater:NestedGreaterGreater,NestedLessLess:NestedLessLess,NewLine:NewLine,Nfr:Nfr,NoBreak:NoBreak,NonBreakingSpace:NonBreakingSpace,Nopf:Nopf,Not:Not,NotCongruent:NotCongruent,NotCupCap:NotCupCap,NotDoubleVerticalBar:NotDoubleVerticalBar,NotElement:NotElement,NotEqual:NotEqual,NotEqualTilde:NotEqualTilde,NotExists:NotExists,NotGreater:NotGreater,NotGreaterEqual:NotGreaterEqual,NotGreaterFullEqual:NotGreaterFullEqual,NotGreaterGreater:NotGreaterGreater,NotGreaterLess:NotGreaterLess,NotGreaterSlantEqual:NotGreaterSlantEqual,NotGreaterTilde:NotGreaterTilde,NotHumpDownHump:NotHumpDownHump,NotHumpEqual:NotHumpEqual,NotLeftTriangle:NotLeftTriangle,NotLeftTriangleBar:NotLeftTriangleBar,NotLeftTriangleEqual:NotLeftTriangleEqual,NotLess:NotLess,NotLessEqual:NotLessEqual,NotLessGreater:NotLessGreater,NotLessLess:NotLessLess,NotLessSlantEqual:NotLessSlantEqual,NotLessTilde:NotLessTilde,NotNestedGreaterGreater:NotNestedGreaterGreater,NotNestedLessLess:NotNestedLessLess,NotPrecedes:NotPrecedes,NotPrecedesEqual:NotPrecedesEqual,NotPrecedesSlantEqual:NotPrecedesSlantEqual,NotReverseElement:NotReverseElement,NotRightTriangle:NotRightTriangle,NotRightTriangleBar:NotRightTriangleBar,NotRightTriangleEqual:NotRightTriangleEqual,NotSquareSubset:NotSquareSubset,NotSquareSubsetEqual:NotSquareSubsetEqual,NotSquareSuperset:NotSquareSuperset,NotSquareSupersetEqual:NotSquareSupersetEqual,NotSubset:NotSubset,NotSubsetEqual:NotSubsetEqual,NotSucceeds:NotSucceeds,NotSucceedsEqual:NotSucceedsEqual,NotSucceedsSlantEqual:NotSucceedsSlantEqual,NotSucceedsTilde:NotSucceedsTilde,NotSuperset:NotSuperset,NotSupersetEqual:NotSupersetEqual,NotTilde:NotTilde,NotTildeEqual:NotTildeEqual,NotTildeFullEqual:NotTildeFullEqual,NotTildeTilde:NotTildeTilde,NotVerticalBar:NotVerticalBar,Nscr:Nscr,Ntild:Ntild,Ntilde:Ntilde,Nu:Nu,OElig:OElig,Oacut:Oacut,Oacute:Oacute,Ocir:Ocir,Ocirc:Ocirc,Ocy:Ocy,Odblac:Odblac,Ofr:Ofr,Ograv:Ograv,Ograve:Ograve,Omacr:Omacr,Omega:Omega,Omicron:Omicron,Oopf:Oopf,OpenCurlyDoubleQuote:OpenCurlyDoubleQuote,OpenCurlyQuote:OpenCurlyQuote,Or:Or,Oscr:Oscr,Oslas:Oslas,Oslash:Oslash,Otild:Otild,Otilde:Otilde,Otimes:Otimes,Oum:Oum,Ouml:Ouml,OverBar:OverBar,OverBrace:OverBrace,OverBracket:OverBracket,OverParenthesis:OverParenthesis,PartialD:PartialD,Pcy:Pcy,Pfr:Pfr,Phi:Phi,Pi:Pi,PlusMinus:PlusMinus,Poincareplane:Poincareplane,Popf:Popf,Pr:Pr,Precedes:Precedes,PrecedesEqual:PrecedesEqual,PrecedesSlantEqual:PrecedesSlantEqual,PrecedesTilde:PrecedesTilde,Prime:Prime,Product:Product,Proportion:Proportion,Proportional:Proportional,Pscr:Pscr,Psi:Psi,QUO:QUO,QUOT:QUOT,Qfr:Qfr,Qopf:Qopf,Qscr:Qscr,RBarr:RBarr,RE:RE,REG:REG,Racute:Racute,Rang:Rang,Rarr:Rarr,Rarrtl:Rarrtl,Rcaron:Rcaron,Rcedil:Rcedil,Rcy:Rcy,Re:Re,ReverseElement:ReverseElement,ReverseEquilibrium:ReverseEquilibrium,ReverseUpEquilibrium:ReverseUpEquilibrium,Rfr:Rfr,Rho:Rho,RightAngleBracket:RightAngleBracket,RightArrow:RightArrow,RightArrowBar:RightArrowBar,RightArrowLeftArrow:RightArrowLeftArrow,RightCeiling:RightCeiling,RightDoubleBracket:RightDoubleBracket,RightDownTeeVector:RightDownTeeVector,RightDownVector:RightDownVector,RightDownVectorBar:RightDownVectorBar,RightFloor:RightFloor,RightTee:RightTee,RightTeeArrow:RightTeeArrow,RightTeeVector:RightTeeVector,RightTriangle:RightTriangle,RightTriangleBar:RightTriangleBar,RightTriangleEqual:RightTriangleEqual,RightUpDownVector:RightUpDownVector,RightUpTeeVector:RightUpTeeVector,RightUpVector:RightUpVector,RightUpVectorBar:RightUpVectorBar,RightVector:RightVector,RightVectorBar:RightVectorBar,Rightarrow:Rightarrow,Ropf:Ropf,RoundImplies:RoundImplies,Rrightarrow:Rrightarrow,Rscr:Rscr,Rsh:Rsh,RuleDelayed:RuleDelayed,SHCHcy:SHCHcy,SHcy:SHcy,SOFTcy:SOFTcy,Sacute:Sacute,Sc:Sc,Scaron:Scaron,Scedil:Scedil,Scirc:Scirc,Scy:Scy,Sfr:Sfr,ShortDownArrow:ShortDownArrow,ShortLeftArrow:ShortLeftArrow,ShortRightArrow:ShortRightArrow,ShortUpArrow:ShortUpArrow,Sigma:Sigma,SmallCircle:SmallCircle,Sopf:Sopf,Sqrt:Sqrt,Square:Square,SquareIntersection:SquareIntersection,SquareSubset:SquareSubset,SquareSubsetEqual:SquareSubsetEqual,SquareSuperset:SquareSuperset,SquareSupersetEqual:SquareSupersetEqual,SquareUnion:SquareUnion,Sscr:Sscr,Star:Star,Sub:Sub,Subset:Subset,SubsetEqual:SubsetEqual,Succeeds:Succeeds,SucceedsEqual:SucceedsEqual,SucceedsSlantEqual:SucceedsSlantEqual,SucceedsTilde:SucceedsTilde,SuchThat:SuchThat,Sum:Sum,Sup:Sup,Superset:Superset,SupersetEqual:SupersetEqual,Supset:Supset,THOR:THOR,THORN:THORN,TRADE:TRADE,TSHcy:TSHcy,TScy:TScy,Tab:Tab,Tau:Tau,Tcaron:Tcaron,Tcedil:Tcedil,Tcy:Tcy,Tfr:Tfr,Therefore:Therefore,Theta:Theta,ThickSpace:ThickSpace,ThinSpace:ThinSpace,Tilde:Tilde,TildeEqual:TildeEqual,TildeFullEqual:TildeFullEqual,TildeTilde:TildeTilde,Topf:Topf,TripleDot:TripleDot,Tscr:Tscr,Tstrok:Tstrok,Uacut:Uacut,Uacute:Uacute,Uarr:Uarr,Uarrocir:Uarrocir,Ubrcy:Ubrcy,Ubreve:Ubreve,Ucir:Ucir,Ucirc:Ucirc,Ucy:Ucy,Udblac:Udblac,Ufr:Ufr,Ugrav:Ugrav,Ugrave:Ugrave,Umacr:Umacr,UnderBar:UnderBar,UnderBrace:UnderBrace,UnderBracket:UnderBracket,UnderParenthesis:UnderParenthesis,Union:Union,UnionPlus:UnionPlus,Uogon:Uogon,Uopf:Uopf,UpArrow:UpArrow,UpArrowBar:UpArrowBar,UpArrowDownArrow:UpArrowDownArrow,UpDownArrow:UpDownArrow,UpEquilibrium:UpEquilibrium,UpTee:UpTee,UpTeeArrow:UpTeeArrow,Uparrow:Uparrow,Updownarrow:Updownarrow,UpperLeftArrow:UpperLeftArrow,UpperRightArrow:UpperRightArrow,Upsi:Upsi,Upsilon:Upsilon,Uring:Uring,Uscr:Uscr,Utilde:Utilde,Uum:Uum,Uuml:Uuml,VDash:VDash,Vbar:Vbar,Vcy:Vcy,Vdash:Vdash,Vdashl:Vdashl,Vee:Vee,Verbar:Verbar,Vert:Vert,VerticalBar:VerticalBar,VerticalLine:VerticalLine,VerticalSeparator:VerticalSeparator,VerticalTilde:VerticalTilde,VeryThinSpace:VeryThinSpace,Vfr:Vfr,Vopf:Vopf,Vscr:Vscr,Vvdash:Vvdash,Wcirc:Wcirc,Wedge:Wedge,Wfr:Wfr,Wopf:Wopf,Wscr:Wscr,Xfr:Xfr,Xi:Xi,Xopf:Xopf,Xscr:Xscr,YAcy:YAcy,YIcy:YIcy,YUcy:YUcy,Yacut:Yacut,Yacute:Yacute,Ycirc:Ycirc,Ycy:Ycy,Yfr:Yfr,Yopf:Yopf,Yscr:Yscr,Yuml:Yuml,ZHcy:ZHcy,Zacute:Zacute,Zcaron:Zcaron,Zcy:Zcy,Zdot:Zdot,ZeroWidthSpace:ZeroWidthSpace,Zeta:Zeta,Zfr:Zfr,Zopf:Zopf,Zscr:Zscr,aacut:aacut,aacute:aacute,abreve:abreve,ac:ac,acE:acE,acd:acd,acir:acir,acirc:acirc,acut:acut,acute:acute,acy:acy,aeli:aeli,aelig:aelig,af:af,afr:afr,agrav:agrav,agrave:agrave,alefsym:alefsym,aleph:aleph,alpha:alpha,amacr:amacr,amalg:amalg,am:am,amp:amp,and:and,andand:andand,andd:andd,andslope:andslope,andv:andv,ang:ang,ange:ange,angle:angle,angmsd:angmsd,angmsdaa:angmsdaa,angmsdab:angmsdab,angmsdac:angmsdac,angmsdad:angmsdad,angmsdae:angmsdae,angmsdaf:angmsdaf,angmsdag:angmsdag,angmsdah:angmsdah,angrt:angrt,angrtvb:angrtvb,angrtvbd:angrtvbd,angsph:angsph,angst:angst,angzarr:angzarr,aogon:aogon,aopf:aopf,ap:ap,apE:apE,apacir:apacir,ape:ape,apid:apid,apos:apos,approx:approx,approxeq:approxeq,arin:arin,aring:aring,ascr:ascr,ast:ast,asymp:asymp,asympeq:asympeq,atild:atild,atilde:atilde,aum:aum,auml:auml,awconint:awconint,awint:awint,bNot:bNot,backcong:backcong,backepsilon:backepsilon,backprime:backprime,backsim:backsim,backsimeq:backsimeq,barvee:barvee,barwed:barwed,barwedge:barwedge,bbrk:bbrk,bbrktbrk:bbrktbrk,bcong:bcong,bcy:bcy,bdquo:bdquo,becaus:becaus,because:because,bemptyv:bemptyv,bepsi:bepsi,bernou:bernou,beta:beta,beth:beth,between:between,bfr:bfr,bigcap:bigcap,bigcirc:bigcirc,bigcup:bigcup,bigodot:bigodot,bigoplus:bigoplus,bigotimes:bigotimes,bigsqcup:bigsqcup,bigstar:bigstar,bigtriangledown:bigtriangledown,bigtriangleup:bigtriangleup,biguplus:biguplus,bigvee:bigvee,bigwedge:bigwedge,bkarow:bkarow,blacklozenge:blacklozenge,blacksquare:blacksquare,blacktriangle:blacktriangle,blacktriangledown:blacktriangledown,blacktriangleleft:blacktriangleleft,blacktriangleright:blacktriangleright,blank:blank,blk12:blk12,blk14:blk14,blk34:blk34,block:block,bne:bne,bnequiv:bnequiv,bnot:bnot,bopf:bopf,bot:bot,bottom:bottom,bowtie:bowtie,boxDL:boxDL,boxDR:boxDR,boxDl:boxDl,boxDr:boxDr,boxH:boxH,boxHD:boxHD,boxHU:boxHU,boxHd:boxHd,boxHu:boxHu,boxUL:boxUL,boxUR:boxUR,boxUl:boxUl,boxUr:boxUr,boxV:boxV,boxVH:boxVH,boxVL:boxVL,boxVR:boxVR,boxVh:boxVh,boxVl:boxVl,boxVr:boxVr,boxbox:boxbox,boxdL:boxdL,boxdR:boxdR,boxdl:boxdl,boxdr:boxdr,boxh:boxh,boxhD:boxhD,boxhU:boxhU,boxhd:boxhd,boxhu:boxhu,boxminus:boxminus,boxplus:boxplus,boxtimes:boxtimes,boxuL:boxuL,boxuR:boxuR,boxul:boxul,boxur:boxur,boxv:boxv,boxvH:boxvH,boxvL:boxvL,boxvR:boxvR,boxvh:boxvh,boxvl:boxvl,boxvr:boxvr,bprime:bprime,breve:breve,brvba:brvba,brvbar:brvbar,bscr:bscr,bsemi:bsemi,bsim:bsim,bsime:bsime,bsol:bsol,bsolb:bsolb,bsolhsub:bsolhsub,bull:bull,bullet:bullet,bump:bump,bumpE:bumpE,bumpe:bumpe,bumpeq:bumpeq,cacute:cacute,cap:cap,capand:capand,capbrcup:capbrcup,capcap:capcap,capcup:capcup,capdot:capdot,caps:caps,caret:caret,caron:caron,ccaps:ccaps,ccaron:ccaron,ccedi:ccedi,ccedil:ccedil,ccirc:ccirc,ccups:ccups,ccupssm:ccupssm,cdot:cdot,cedi:cedi,cedil:cedil,cemptyv:cemptyv,cen:cen,cent:cent,centerdot:centerdot,cfr:cfr,chcy:chcy,check:check,checkmark:checkmark,chi:chi,cir:cir,cirE:cirE,circ:circ,circeq:circeq,circlearrowleft:circlearrowleft,circlearrowright:circlearrowright,circledR:circledR,circledS:circledS,circledast:circledast,circledcirc:circledcirc,circleddash:circleddash,cire:cire,cirfnint:cirfnint,cirmid:cirmid,cirscir:cirscir,clubs:clubs,clubsuit:clubsuit,colon:colon,colone:colone,coloneq:coloneq,comma:comma,commat:commat,comp:comp,compfn:compfn,complement:complement,complexes:complexes,cong:cong,congdot:congdot,conint:conint,copf:copf,coprod:coprod,cop:cop,copy:copy,copysr:copysr,crarr:crarr,cross:cross,cscr:cscr,csub:csub,csube:csube,csup:csup,csupe:csupe,ctdot:ctdot,cudarrl:cudarrl,cudarrr:cudarrr,cuepr:cuepr,cuesc:cuesc,cularr:cularr,cularrp:cularrp,cup:cup,cupbrcap:cupbrcap,cupcap:cupcap,cupcup:cupcup,cupdot:cupdot,cupor:cupor,cups:cups,curarr:curarr,curarrm:curarrm,curlyeqprec:curlyeqprec,curlyeqsucc:curlyeqsucc,curlyvee:curlyvee,curlywedge:curlywedge,curre:curre,curren:curren,curvearrowleft:curvearrowleft,curvearrowright:curvearrowright,cuvee:cuvee,cuwed:cuwed,cwconint:cwconint,cwint:cwint,cylcty:cylcty,dArr:dArr,dHar:dHar,dagger:dagger,daleth:daleth,darr:darr,dash:dash,dashv:dashv,dbkarow:dbkarow,dblac:dblac,dcaron:dcaron,dcy:dcy,dd:dd,ddagger:ddagger,ddarr:ddarr,ddotseq:ddotseq,de:de,deg:deg,delta:delta,demptyv:demptyv,dfisht:dfisht,dfr:dfr,dharl:dharl,dharr:dharr,diam:diam,diamond:diamond,diamondsuit:diamondsuit,diams:diams,die:die,digamma:digamma,disin:disin,div:div,divid:divid,divide:divide,divideontimes:divideontimes,divonx:divonx,djcy:djcy,dlcorn:dlcorn,dlcrop:dlcrop,dollar:dollar,dopf:dopf,dot:dot,doteq:doteq,doteqdot:doteqdot,dotminus:dotminus,dotplus:dotplus,dotsquare:dotsquare,doublebarwedge:doublebarwedge,downarrow:downarrow,downdownarrows:downdownarrows,downharpoonleft:downharpoonleft,downharpoonright:downharpoonright,drbkarow:drbkarow,drcorn:drcorn,drcrop:drcrop,dscr:dscr,dscy:dscy,dsol:dsol,dstrok:dstrok,dtdot:dtdot,dtri:dtri,dtrif:dtrif,duarr:duarr,duhar:duhar,dwangle:dwangle,dzcy:dzcy,dzigrarr:dzigrarr,eDDot:eDDot,eDot:eDot,eacut:eacut,eacute:eacute,easter:easter,ecaron:ecaron,ecir:ecir,ecirc:ecirc,ecolon:ecolon,ecy:ecy,edot:edot,ee:ee,efDot:efDot,efr:efr,eg:eg,egrav:egrav,egrave:egrave,egs:egs,egsdot:egsdot,el:el,elinters:elinters,ell:ell,els:els,elsdot:elsdot,emacr:emacr,empty:empty,emptyset:emptyset,emptyv:emptyv,emsp13:emsp13,emsp14:emsp14,emsp:emsp,eng:eng,ensp:ensp,eogon:eogon,eopf:eopf,epar:epar,eparsl:eparsl,eplus:eplus,epsi:epsi,epsilon:epsilon,epsiv:epsiv,eqcirc:eqcirc,eqcolon:eqcolon,eqsim:eqsim,eqslantgtr:eqslantgtr,eqslantless:eqslantless,equals:equals,equest:equest,equiv:equiv,equivDD:equivDD,eqvparsl:eqvparsl,erDot:erDot,erarr:erarr,escr:escr,esdot:esdot,esim:esim,eta:eta,et:et,eth:eth,eum:eum,euml:euml,euro:euro,excl:excl,exist:exist,expectation:expectation,exponentiale:exponentiale,fallingdotseq:fallingdotseq,fcy:fcy,female:female,ffilig:ffilig,fflig:fflig,ffllig:ffllig,ffr:ffr,filig:filig,fjlig:fjlig,flat:flat,fllig:fllig,fltns:fltns,fnof:fnof,fopf:fopf,forall:forall,fork:fork,forkv:forkv,fpartint:fpartint,frac1:frac1,frac12:frac12,frac13:frac13,frac14:frac14,frac15:frac15,frac16:frac16,frac18:frac18,frac23:frac23,frac25:frac25,frac3:frac3,frac34:frac34,frac35:frac35,frac38:frac38,frac45:frac45,frac56:frac56,frac58:frac58,frac78:frac78,frasl:frasl,frown:frown,fscr:fscr,gE:gE,gEl:gEl,gacute:gacute,gamma:gamma,gammad:gammad,gap:gap,gbreve:gbreve,gcirc:gcirc,gcy:gcy,gdot:gdot,ge:ge,gel:gel,geq:geq,geqq:geqq,geqslant:geqslant,ges:ges,gescc:gescc,gesdot:gesdot,gesdoto:gesdoto,gesdotol:gesdotol,gesl:gesl,gesles:gesles,gfr:gfr,gg:gg,ggg:ggg,gimel:gimel,gjcy:gjcy,gl:gl,glE:glE,gla:gla,glj:glj,gnE:gnE,gnap:gnap,gnapprox:gnapprox,gne:gne,gneq:gneq,gneqq:gneqq,gnsim:gnsim,gopf:gopf,grave:grave,gscr:gscr,gsim:gsim,gsime:gsime,gsiml:gsiml,g:g,gt:gt,gtcc:gtcc,gtcir:gtcir,gtdot:gtdot,gtlPar:gtlPar,gtquest:gtquest,gtrapprox:gtrapprox,gtrarr:gtrarr,gtrdot:gtrdot,gtreqless:gtreqless,gtreqqless:gtreqqless,gtrless:gtrless,gtrsim:gtrsim,gvertneqq:gvertneqq,gvnE:gvnE,hArr:hArr,hairsp:hairsp,half:half,hamilt:hamilt,hardcy:hardcy,harr:harr,harrcir:harrcir,harrw:harrw,hbar:hbar,hcirc:hcirc,hearts:hearts,heartsuit:heartsuit,hellip:hellip,hercon:hercon,hfr:hfr,hksearow:hksearow,hkswarow:hkswarow,hoarr:hoarr,homtht:homtht,hookleftarrow:hookleftarrow,hookrightarrow:hookrightarrow,hopf:hopf,horbar:horbar,hscr:hscr,hslash:hslash,hstrok:hstrok,hybull:hybull,hyphen:hyphen,iacut:iacut,iacute:iacute,ic:ic,icir:icir,icirc:icirc,icy:icy,iecy:iecy,iexc:iexc,iexcl:iexcl,iff:iff,ifr:ifr,igrav:igrav,igrave:igrave,ii:ii,iiiint:iiiint,iiint:iiint,iinfin:iinfin,iiota:iiota,ijlig:ijlig,imacr:imacr,image:image,imagline:imagline,imagpart:imagpart,imath:imath,imof:imof,imped:imped,incare:incare,infin:infin,infintie:infintie,inodot:inodot,int:int,intcal:intcal,integers:integers,intercal:intercal,intlarhk:intlarhk,intprod:intprod,iocy:iocy,iogon:iogon,iopf:iopf,iota:iota,iprod:iprod,iques:iques,iquest:iquest,iscr:iscr,isin:isin,isinE:isinE,isindot:isindot,isins:isins,isinsv:isinsv,isinv:isinv,it:it,itilde:itilde,iukcy:iukcy,ium:ium,iuml:iuml,jcirc:jcirc,jcy:jcy,jfr:jfr,jmath:jmath,jopf:jopf,jscr:jscr,jsercy:jsercy,jukcy:jukcy,kappa:kappa,kappav:kappav,kcedil:kcedil,kcy:kcy,kfr:kfr,kgreen:kgreen,khcy:khcy,kjcy:kjcy,kopf:kopf,kscr:kscr,lAarr:lAarr,lArr:lArr,lAtail:lAtail,lBarr:lBarr,lE:lE,lEg:lEg,lHar:lHar,lacute:lacute,laemptyv:laemptyv,lagran:lagran,lambda:lambda,lang:lang,langd:langd,langle:langle,lap:lap,laqu:laqu,laquo:laquo,larr:larr,larrb:larrb,larrbfs:larrbfs,larrfs:larrfs,larrhk:larrhk,larrlp:larrlp,larrpl:larrpl,larrsim:larrsim,larrtl:larrtl,lat:lat,latail:latail,late:late,lates:lates,lbarr:lbarr,lbbrk:lbbrk,lbrace:lbrace,lbrack:lbrack,lbrke:lbrke,lbrksld:lbrksld,lbrkslu:lbrkslu,lcaron:lcaron,lcedil:lcedil,lceil:lceil,lcub:lcub,lcy:lcy,ldca:ldca,ldquo:ldquo,ldquor:ldquor,ldrdhar:ldrdhar,ldrushar:ldrushar,ldsh:ldsh,le:le,leftarrow:leftarrow,leftarrowtail:leftarrowtail,leftharpoondown:leftharpoondown,leftharpoonup:leftharpoonup,leftleftarrows:leftleftarrows,leftrightarrow:leftrightarrow,leftrightarrows:leftrightarrows,leftrightharpoons:leftrightharpoons,leftrightsquigarrow:leftrightsquigarrow,leftthreetimes:leftthreetimes,leg:leg,leq:leq,leqq:leqq,leqslant:leqslant,les:les,lescc:lescc,lesdot:lesdot,lesdoto:lesdoto,lesdotor:lesdotor,lesg:lesg,lesges:lesges,lessapprox:lessapprox,lessdot:lessdot,lesseqgtr:lesseqgtr,lesseqqgtr:lesseqqgtr,lessgtr:lessgtr,lesssim:lesssim,lfisht:lfisht,lfloor:lfloor,lfr:lfr,lg:lg,lgE:lgE,lhard:lhard,lharu:lharu,lharul:lharul,lhblk:lhblk,ljcy:ljcy,ll:ll,llarr:llarr,llcorner:llcorner,llhard:llhard,lltri:lltri,lmidot:lmidot,lmoust:lmoust,lmoustache:lmoustache,lnE:lnE,lnap:lnap,lnapprox:lnapprox,lne:lne,lneq:lneq,lneqq:lneqq,lnsim:lnsim,loang:loang,loarr:loarr,lobrk:lobrk,longleftarrow:longleftarrow,longleftrightarrow:longleftrightarrow,longmapsto:longmapsto,longrightarrow:longrightarrow,looparrowleft:looparrowleft,looparrowright:looparrowright,lopar:lopar,lopf:lopf,loplus:loplus,lotimes:lotimes,lowast:lowast,lowbar:lowbar,loz:loz,lozenge:lozenge,lozf:lozf,lpar:lpar,lparlt:lparlt,lrarr:lrarr,lrcorner:lrcorner,lrhar:lrhar,lrhard:lrhard,lrm:lrm,lrtri:lrtri,lsaquo:lsaquo,lscr:lscr,lsh:lsh,lsim:lsim,lsime:lsime,lsimg:lsimg,lsqb:lsqb,lsquo:lsquo,lsquor:lsquor,lstrok:lstrok,l:l,lt:lt,ltcc:ltcc,ltcir:ltcir,ltdot:ltdot,lthree:lthree,ltimes:ltimes,ltlarr:ltlarr,ltquest:ltquest,ltrPar:ltrPar,ltri:ltri,ltrie:ltrie,ltrif:ltrif,lurdshar:lurdshar,luruhar:luruhar,lvertneqq:lvertneqq,lvnE:lvnE,mDDot:mDDot,mac:mac,macr:macr,male:male,malt:malt,maltese:maltese,map:map$1,mapsto:mapsto,mapstodown:mapstodown,mapstoleft:mapstoleft,mapstoup:mapstoup,marker:marker,mcomma:mcomma,mcy:mcy,mdash:mdash,measuredangle:measuredangle,mfr:mfr,mho:mho,micr:micr,micro:micro,mid:mid,midast:midast,midcir:midcir,middo:middo,middot:middot,minus:minus,minusb:minusb,minusd:minusd,minusdu:minusdu,mlcp:mlcp,mldr:mldr,mnplus:mnplus,models:models,mopf:mopf,mp:mp,mscr:mscr,mstpos:mstpos,mu:mu,multimap:multimap,mumap:mumap,nGg:nGg,nGt:nGt,nGtv:nGtv,nLeftarrow:nLeftarrow,nLeftrightarrow:nLeftrightarrow,nLl:nLl,nLt:nLt,nLtv:nLtv,nRightarrow:nRightarrow,nVDash:nVDash,nVdash:nVdash,nabla:nabla,nacute:nacute,nang:nang,nap:nap,napE:napE,napid:napid,napos:napos,napprox:napprox,natur:natur,natural:natural,naturals:naturals,nbs:nbs,nbsp:nbsp,nbump:nbump,nbumpe:nbumpe,ncap:ncap,ncaron:ncaron,ncedil:ncedil,ncong:ncong,ncongdot:ncongdot,ncup:ncup,ncy:ncy,ndash:ndash,ne:ne,neArr:neArr,nearhk:nearhk,nearr:nearr,nearrow:nearrow,nedot:nedot,nequiv:nequiv,nesear:nesear,nesim:nesim,nexist:nexist,nexists:nexists,nfr:nfr,ngE:ngE,nge:nge,ngeq:ngeq,ngeqq:ngeqq,ngeqslant:ngeqslant,nges:nges,ngsim:ngsim,ngt:ngt,ngtr:ngtr,nhArr:nhArr,nharr:nharr,nhpar:nhpar,ni:ni,nis:nis,nisd:nisd,niv:niv,njcy:njcy,nlArr:nlArr,nlE:nlE,nlarr:nlarr,nldr:nldr,nle:nle,nleftarrow:nleftarrow,nleftrightarrow:nleftrightarrow,nleq:nleq,nleqq:nleqq,nleqslant:nleqslant,nles:nles,nless:nless,nlsim:nlsim,nlt:nlt,nltri:nltri,nltrie:nltrie,nmid:nmid,nopf:nopf,no:no,not:not,notin:notin,notinE:notinE,notindot:notindot,notinva:notinva,notinvb:notinvb,notinvc:notinvc,notni:notni,notniva:notniva,notnivb:notnivb,notnivc:notnivc,npar:npar,nparallel:nparallel,nparsl:nparsl,npart:npart,npolint:npolint,npr:npr,nprcue:nprcue,npre:npre,nprec:nprec,npreceq:npreceq,nrArr:nrArr,nrarr:nrarr,nrarrc:nrarrc,nrarrw:nrarrw,nrightarrow:nrightarrow,nrtri:nrtri,nrtrie:nrtrie,nsc:nsc,nsccue:nsccue,nsce:nsce,nscr:nscr,nshortmid:nshortmid,nshortparallel:nshortparallel,nsim:nsim,nsime:nsime,nsimeq:nsimeq,nsmid:nsmid,nspar:nspar,nsqsube:nsqsube,nsqsupe:nsqsupe,nsub:nsub,nsubE:nsubE,nsube:nsube,nsubset:nsubset,nsubseteq:nsubseteq,nsubseteqq:nsubseteqq,nsucc:nsucc,nsucceq:nsucceq,nsup:nsup,nsupE:nsupE,nsupe:nsupe,nsupset:nsupset,nsupseteq:nsupseteq,nsupseteqq:nsupseteqq,ntgl:ntgl,ntild:ntild,ntilde:ntilde,ntlg:ntlg,ntriangleleft:ntriangleleft,ntrianglelefteq:ntrianglelefteq,ntriangleright:ntriangleright,ntrianglerighteq:ntrianglerighteq,nu:nu,num:num,numero:numero,numsp:numsp,nvDash:nvDash,nvHarr:nvHarr,nvap:nvap,nvdash:nvdash,nvge:nvge,nvgt:nvgt,nvinfin:nvinfin,nvlArr:nvlArr,nvle:nvle,nvlt:nvlt,nvltrie:nvltrie,nvrArr:nvrArr,nvrtrie:nvrtrie,nvsim:nvsim,nwArr:nwArr,nwarhk:nwarhk,nwarr:nwarr,nwarrow:nwarrow,nwnear:nwnear,oS:oS,oacut:oacut,oacute:oacute,oast:oast,ocir:ocir,ocirc:ocirc,ocy:ocy,odash:odash,odblac:odblac,odiv:odiv,odot:odot,odsold:odsold,oelig:oelig,ofcir:ofcir,ofr:ofr,ogon:ogon,ograv:ograv,ograve:ograve,ogt:ogt,ohbar:ohbar,ohm:ohm,oint:oint,olarr:olarr,olcir:olcir,olcross:olcross,oline:oline,olt:olt,omacr:omacr,omega:omega,omicron:omicron,omid:omid,ominus:ominus,oopf:oopf,opar:opar,operp:operp,oplus:oplus,or:or,orarr:orarr,ord:ord,order:order,orderof:orderof,ordf:ordf,ordm:ordm,origof:origof,oror:oror,orslope:orslope,orv:orv,oscr:oscr,oslas:oslas,oslash:oslash,osol:osol,otild:otild,otilde:otilde,otimes:otimes,otimesas:otimesas,oum:oum,ouml:ouml,ovbar:ovbar,par:par,para:para,parallel:parallel,parsim:parsim,parsl:parsl,part:part,pcy:pcy,percnt:percnt,period:period,permil:permil,perp:perp,pertenk:pertenk,pfr:pfr,phi:phi,phiv:phiv,phmmat:phmmat,phone:phone,pi:pi,pitchfork:pitchfork,piv:piv,planck:planck,planckh:planckh,plankv:plankv,plus:plus,plusacir:plusacir,plusb:plusb,pluscir:pluscir,plusdo:plusdo,plusdu:plusdu,pluse:pluse,plusm:plusm,plusmn:plusmn,plussim:plussim,plustwo:plustwo,pm:pm,pointint:pointint,popf:popf,poun:poun,pound:pound,pr:pr,prE:prE,prap:prap,prcue:prcue,pre:pre,prec:prec,precapprox:precapprox,preccurlyeq:preccurlyeq,preceq:preceq,precnapprox:precnapprox,precneqq:precneqq,precnsim:precnsim,precsim:precsim,prime:prime,primes:primes,prnE:prnE,prnap:prnap,prnsim:prnsim,prod:prod,profalar:profalar,profline:profline,profsurf:profsurf,prop:prop,propto:propto,prsim:prsim,prurel:prurel,pscr:pscr,psi:psi,puncsp:puncsp,qfr:qfr,qint:qint,qopf:qopf,qprime:qprime,qscr:qscr,quaternions:quaternions,quatint:quatint,quest:quest,questeq:questeq,quo:quo,quot:quot,rAarr:rAarr,rArr:rArr,rAtail:rAtail,rBarr:rBarr,rHar:rHar,race:race,racute:racute,radic:radic,raemptyv:raemptyv,rang:rang,rangd:rangd,range:range,rangle:rangle,raqu:raqu,raquo:raquo,rarr:rarr,rarrap:rarrap,rarrb:rarrb,rarrbfs:rarrbfs,rarrc:rarrc,rarrfs:rarrfs,rarrhk:rarrhk,rarrlp:rarrlp,rarrpl:rarrpl,rarrsim:rarrsim,rarrtl:rarrtl,rarrw:rarrw,ratail:ratail,ratio:ratio,rationals:rationals,rbarr:rbarr,rbbrk:rbbrk,rbrace:rbrace,rbrack:rbrack,rbrke:rbrke,rbrksld:rbrksld,rbrkslu:rbrkslu,rcaron:rcaron,rcedil:rcedil,rceil:rceil,rcub:rcub,rcy:rcy,rdca:rdca,rdldhar:rdldhar,rdquo:rdquo,rdquor:rdquor,rdsh:rdsh,real:real,realine:realine,realpart:realpart,reals:reals,rect:rect,re:re,reg:reg,rfisht:rfisht,rfloor:rfloor,rfr:rfr,rhard:rhard,rharu:rharu,rharul:rharul,rho:rho,rhov:rhov,rightarrow:rightarrow,rightarrowtail:rightarrowtail,rightharpoondown:rightharpoondown,rightharpoonup:rightharpoonup,rightleftarrows:rightleftarrows,rightleftharpoons:rightleftharpoons,rightrightarrows:rightrightarrows,rightsquigarrow:rightsquigarrow,rightthreetimes:rightthreetimes,ring:ring,risingdotseq:risingdotseq,rlarr:rlarr,rlhar:rlhar,rlm:rlm,rmoust:rmoust,rmoustache:rmoustache,rnmid:rnmid,roang:roang,roarr:roarr,robrk:robrk,ropar:ropar,ropf:ropf,roplus:roplus,rotimes:rotimes,rpar:rpar,rpargt:rpargt,rppolint:rppolint,rrarr:rrarr,rsaquo:rsaquo,rscr:rscr,rsh:rsh,rsqb:rsqb,rsquo:rsquo,rsquor:rsquor,rthree:rthree,rtimes:rtimes,rtri:rtri,rtrie:rtrie,rtrif:rtrif,rtriltri:rtriltri,ruluhar:ruluhar,rx:rx,sacute:sacute,sbquo:sbquo,sc:sc,scE:scE,scap:scap,scaron:scaron,sccue:sccue,sce:sce,scedil:scedil,scirc:scirc,scnE:scnE,scnap:scnap,scnsim:scnsim,scpolint:scpolint,scsim:scsim,scy:scy,sdot:sdot,sdotb:sdotb,sdote:sdote,seArr:seArr,searhk:searhk,searr:searr,searrow:searrow,sec:sec,sect:sect,semi:semi,seswar:seswar,setminus:setminus,setmn:setmn,sext:sext,sfr:sfr,sfrown:sfrown,sharp:sharp,shchcy:shchcy,shcy:shcy,shortmid:shortmid,shortparallel:shortparallel,sh:sh,shy:shy,sigma:sigma,sigmaf:sigmaf,sigmav:sigmav,sim:sim,simdot:simdot,sime:sime,simeq:simeq,simg:simg,simgE:simgE,siml:siml,simlE:simlE,simne:simne,simplus:simplus,simrarr:simrarr,slarr:slarr,smallsetminus:smallsetminus,smashp:smashp,smeparsl:smeparsl,smid:smid,smile:smile,smt:smt,smte:smte,smtes:smtes,softcy:softcy,sol:sol,solb:solb,solbar:solbar,sopf:sopf,spades:spades,spadesuit:spadesuit,spar:spar,sqcap:sqcap,sqcaps:sqcaps,sqcup:sqcup,sqcups:sqcups,sqsub:sqsub,sqsube:sqsube,sqsubset:sqsubset,sqsubseteq:sqsubseteq,sqsup:sqsup,sqsupe:sqsupe,sqsupset:sqsupset,sqsupseteq:sqsupseteq,squ:squ,square:square,squarf:squarf,squf:squf,srarr:srarr,sscr:sscr,ssetmn:ssetmn,ssmile:ssmile,sstarf:sstarf,star:star,starf:starf,straightepsilon:straightepsilon,straightphi:straightphi,strns:strns,sub:sub,subE:subE,subdot:subdot,sube:sube,subedot:subedot,submult:submult,subnE:subnE,subne:subne,subplus:subplus,subrarr:subrarr,subset:subset,subseteq:subseteq,subseteqq:subseteqq,subsetneq:subsetneq,subsetneqq:subsetneqq,subsim:subsim,subsub:subsub,subsup:subsup,succ:succ,succapprox:succapprox,succcurlyeq:succcurlyeq,succeq:succeq,succnapprox:succnapprox,succneqq:succneqq,succnsim:succnsim,succsim:succsim,sum:sum,sung:sung,sup:sup,sup1:sup1,sup2:sup2,sup3:sup3,supE:supE,supdot:supdot,supdsub:supdsub,supe:supe,supedot:supedot,suphsol:suphsol,suphsub:suphsub,suplarr:suplarr,supmult:supmult,supnE:supnE,supne:supne,supplus:supplus,supset:supset,supseteq:supseteq,supseteqq:supseteqq,supsetneq:supsetneq,supsetneqq:supsetneqq,supsim:supsim,supsub:supsub,supsup:supsup,swArr:swArr,swarhk:swarhk,swarr:swarr,swarrow:swarrow,swnwar:swnwar,szli:szli,szlig:szlig,target:target,tau:tau,tbrk:tbrk,tcaron:tcaron,tcedil:tcedil,tcy:tcy,tdot:tdot,telrec:telrec,tfr:tfr,there4:there4,therefore:therefore,theta:theta,thetasym:thetasym,thetav:thetav,thickapprox:thickapprox,thicksim:thicksim,thinsp:thinsp,thkap:thkap,thksim:thksim,thor:thor,thorn:thorn,tilde:tilde,time:time,times:times,timesb:timesb,timesbar:timesbar,timesd:timesd,tint:tint,toea:toea,top:top,topbot:topbot,topcir:topcir,topf:topf,topfork:topfork,tosa:tosa,tprime:tprime,trade:trade,triangle:triangle,triangledown:triangledown,triangleleft:triangleleft,trianglelefteq:trianglelefteq,triangleq:triangleq,triangleright:triangleright,trianglerighteq:trianglerighteq,tridot:tridot,trie:trie,triminus:triminus,triplus:triplus,trisb:trisb,tritime:tritime,trpezium:trpezium,tscr:tscr,tscy:tscy,tshcy:tshcy,tstrok:tstrok,twixt:twixt,twoheadleftarrow:twoheadleftarrow,twoheadrightarrow:twoheadrightarrow,uArr:uArr,uHar:uHar,uacut:uacut,uacute:uacute,uarr:uarr,ubrcy:ubrcy,ubreve:ubreve,ucir:ucir,ucirc:ucirc,ucy:ucy,udarr:udarr,udblac:udblac,udhar:udhar,ufisht:ufisht,ufr:ufr,ugrav:ugrav,ugrave:ugrave,uharl:uharl,uharr:uharr,uhblk:uhblk,ulcorn:ulcorn,ulcorner:ulcorner,ulcrop:ulcrop,ultri:ultri,umacr:umacr,um:um,uml:uml,uogon:uogon,uopf:uopf,uparrow:uparrow,updownarrow:updownarrow,upharpoonleft:upharpoonleft,upharpoonright:upharpoonright,uplus:uplus,upsi:upsi,upsih:upsih,upsilon:upsilon,upuparrows:upuparrows,urcorn:urcorn,urcorner:urcorner,urcrop:urcrop,uring:uring,urtri:urtri,uscr:uscr,utdot:utdot,utilde:utilde,utri:utri,utrif:utrif,uuarr:uuarr,uum:uum,uuml:uuml,uwangle:uwangle,vArr:vArr,vBar:vBar,vBarv:vBarv,vDash:vDash,vangrt:vangrt,varepsilon:varepsilon,varkappa:varkappa,varnothing:varnothing,varphi:varphi,varpi:varpi,varpropto:varpropto,varr:varr,varrho:varrho,varsigma:varsigma,varsubsetneq:varsubsetneq,varsubsetneqq:varsubsetneqq,varsupsetneq:varsupsetneq,varsupsetneqq:varsupsetneqq,vartheta:vartheta,vartriangleleft:vartriangleleft,vartriangleright:vartriangleright,vcy:vcy,vdash:vdash,vee:vee,veebar:veebar,veeeq:veeeq,vellip:vellip,verbar:verbar,vert:vert,vfr:vfr,vltri:vltri,vnsub:vnsub,vnsup:vnsup,vopf:vopf,vprop:vprop,vrtri:vrtri,vscr:vscr,vsubnE:vsubnE,vsubne:vsubne,vsupnE:vsupnE,vsupne:vsupne,vzigzag:vzigzag,wcirc:wcirc,wedbar:wedbar,wedge:wedge,wedgeq:wedgeq,weierp:weierp,wfr:wfr,wopf:wopf,wp:wp,wr:wr,wreath:wreath,wscr:wscr,xcap:xcap,xcirc:xcirc,xcup:xcup,xdtri:xdtri,xfr:xfr,xhArr:xhArr,xharr:xharr,xi:xi,xlArr:xlArr,xlarr:xlarr,xmap:xmap,xnis:xnis,xodot:xodot,xopf:xopf,xoplus:xoplus,xotime:xotime,xrArr:xrArr,xrarr:xrarr,xscr:xscr,xsqcup:xsqcup,xuplus:xuplus,xutri:xutri,xvee:xvee,xwedge:xwedge,yacut:yacut,yacute:yacute,yacy:yacy,ycirc:ycirc,ycy:ycy,ye:ye,yen:yen,yfr:yfr,yicy:yicy,yopf:yopf,yscr:yscr,yucy:yucy,yum:yum,yuml:yuml,zacute:zacute,zcaron:zcaron,zcy:zcy,zdot:zdot,zeetrf:zeetrf,zeta:zeta,zfr:zfr,zhcy:zhcy,zigrarr:zigrarr,zopf:zopf,zscr:zscr,zwj:zwj,zwnj:zwnj,Map:"⤅",in:"∈"}; var index$15=Object.freeze({AEli:AEli,AElig:AElig,AM:AM,AMP:AMP,Aacut:Aacut,Aacute:Aacute,Abreve:Abreve,Acir:Acir,Acirc:Acirc,Acy:Acy,Afr:Afr,Agrav:Agrav,Agrave:Agrave,Alpha:Alpha,Amacr:Amacr,And:And,Aogon:Aogon,Aopf:Aopf,ApplyFunction:ApplyFunction,Arin:Arin,Aring:Aring,Ascr:Ascr,Assign:Assign,Atild:Atild,Atilde:Atilde,Aum:Aum,Auml:Auml,Backslash:Backslash,Barv:Barv,Barwed:Barwed,Bcy:Bcy,Because:Because,Bernoullis:Bernoullis,Beta:Beta,Bfr:Bfr,Bopf:Bopf,Breve:Breve,Bscr:Bscr,Bumpeq:Bumpeq,CHcy:CHcy,COP:COP,COPY:COPY,Cacute:Cacute,Cap:Cap,CapitalDifferentialD:CapitalDifferentialD,Cayleys:Cayleys,Ccaron:Ccaron,Ccedi:Ccedi,Ccedil:Ccedil,Ccirc:Ccirc,Cconint:Cconint,Cdot:Cdot,Cedilla:Cedilla,CenterDot:CenterDot,Cfr:Cfr,Chi:Chi,CircleDot:CircleDot,CircleMinus:CircleMinus,CirclePlus:CirclePlus,CircleTimes:CircleTimes,ClockwiseContourIntegral:ClockwiseContourIntegral,CloseCurlyDoubleQuote:CloseCurlyDoubleQuote,CloseCurlyQuote:CloseCurlyQuote,Colon:Colon,Colone:Colone,Congruent:Congruent,Conint:Conint,ContourIntegral:ContourIntegral,Copf:Copf,Coproduct:Coproduct,CounterClockwiseContourIntegral:CounterClockwiseContourIntegral,Cross:Cross,Cscr:Cscr,Cup:Cup,CupCap:CupCap,DD:DD,DDotrahd:DDotrahd,DJcy:DJcy,DScy:DScy,DZcy:DZcy,Dagger:Dagger,Darr:Darr,Dashv:Dashv,Dcaron:Dcaron,Dcy:Dcy,Del:Del,Delta:Delta,Dfr:Dfr,DiacriticalAcute:DiacriticalAcute,DiacriticalDot:DiacriticalDot,DiacriticalDoubleAcute:DiacriticalDoubleAcute,DiacriticalGrave:DiacriticalGrave,DiacriticalTilde:DiacriticalTilde,Diamond:Diamond,DifferentialD:DifferentialD,Dopf:Dopf,Dot:Dot,DotDot:DotDot,DotEqual:DotEqual,DoubleContourIntegral:DoubleContourIntegral,DoubleDot:DoubleDot,DoubleDownArrow:DoubleDownArrow,DoubleLeftArrow:DoubleLeftArrow,DoubleLeftRightArrow:DoubleLeftRightArrow,DoubleLeftTee:DoubleLeftTee,DoubleLongLeftArrow:DoubleLongLeftArrow,DoubleLongLeftRightArrow:DoubleLongLeftRightArrow,DoubleLongRightArrow:DoubleLongRightArrow,DoubleRightArrow:DoubleRightArrow,DoubleRightTee:DoubleRightTee,DoubleUpArrow:DoubleUpArrow,DoubleUpDownArrow:DoubleUpDownArrow,DoubleVerticalBar:DoubleVerticalBar,DownArrow:DownArrow,DownArrowBar:DownArrowBar,DownArrowUpArrow:DownArrowUpArrow,DownBreve:DownBreve,DownLeftRightVector:DownLeftRightVector,DownLeftTeeVector:DownLeftTeeVector,DownLeftVector:DownLeftVector,DownLeftVectorBar:DownLeftVectorBar,DownRightTeeVector:DownRightTeeVector,DownRightVector:DownRightVector,DownRightVectorBar:DownRightVectorBar,DownTee:DownTee,DownTeeArrow:DownTeeArrow,Downarrow:Downarrow,Dscr:Dscr,Dstrok:Dstrok,ENG:ENG,ET:ET,ETH:ETH,Eacut:Eacut,Eacute:Eacute,Ecaron:Ecaron,Ecir:Ecir,Ecirc:Ecirc,Ecy:Ecy,Edot:Edot,Efr:Efr,Egrav:Egrav,Egrave:Egrave,Element:Element,Emacr:Emacr,EmptySmallSquare:EmptySmallSquare,EmptyVerySmallSquare:EmptyVerySmallSquare,Eogon:Eogon,Eopf:Eopf,Epsilon:Epsilon,Equal:Equal,EqualTilde:EqualTilde,Equilibrium:Equilibrium,Escr:Escr,Esim:Esim,Eta:Eta,Eum:Eum,Euml:Euml,Exists:Exists,ExponentialE:ExponentialE,Fcy:Fcy,Ffr:Ffr,FilledSmallSquare:FilledSmallSquare,FilledVerySmallSquare:FilledVerySmallSquare,Fopf:Fopf,ForAll:ForAll,Fouriertrf:Fouriertrf,Fscr:Fscr,GJcy:GJcy,G:G,GT:GT,Gamma:Gamma,Gammad:Gammad,Gbreve:Gbreve,Gcedil:Gcedil,Gcirc:Gcirc,Gcy:Gcy,Gdot:Gdot,Gfr:Gfr,Gg:Gg,Gopf:Gopf,GreaterEqual:GreaterEqual,GreaterEqualLess:GreaterEqualLess,GreaterFullEqual:GreaterFullEqual,GreaterGreater:GreaterGreater,GreaterLess:GreaterLess,GreaterSlantEqual:GreaterSlantEqual,GreaterTilde:GreaterTilde,Gscr:Gscr,Gt:Gt,HARDcy:HARDcy,Hacek:Hacek,Hat:Hat,Hcirc:Hcirc,Hfr:Hfr,HilbertSpace:HilbertSpace,Hopf:Hopf,HorizontalLine:HorizontalLine,Hscr:Hscr,Hstrok:Hstrok,HumpDownHump:HumpDownHump,HumpEqual:HumpEqual,IEcy:IEcy,IJlig:IJlig,IOcy:IOcy,Iacut:Iacut,Iacute:Iacute,Icir:Icir,Icirc:Icirc,Icy:Icy,Idot:Idot,Ifr:Ifr,Igrav:Igrav,Igrave:Igrave,Im:Im,Imacr:Imacr,ImaginaryI:ImaginaryI,Implies:Implies,Int:Int,Integral:Integral,Intersection:Intersection,InvisibleComma:InvisibleComma,InvisibleTimes:InvisibleTimes,Iogon:Iogon,Iopf:Iopf,Iota:Iota,Iscr:Iscr,Itilde:Itilde,Iukcy:Iukcy,Ium:Ium,Iuml:Iuml,Jcirc:Jcirc,Jcy:Jcy,Jfr:Jfr,Jopf:Jopf,Jscr:Jscr,Jsercy:Jsercy,Jukcy:Jukcy,KHcy:KHcy,KJcy:KJcy,Kappa:Kappa,Kcedil:Kcedil,Kcy:Kcy,Kfr:Kfr,Kopf:Kopf,Kscr:Kscr,LJcy:LJcy,L:L,LT:LT,Lacute:Lacute,Lambda:Lambda,Lang:Lang,Laplacetrf:Laplacetrf,Larr:Larr,Lcaron:Lcaron,Lcedil:Lcedil,Lcy:Lcy,LeftAngleBracket:LeftAngleBracket,LeftArrow:LeftArrow,LeftArrowBar:LeftArrowBar,LeftArrowRightArrow:LeftArrowRightArrow,LeftCeiling:LeftCeiling,LeftDoubleBracket:LeftDoubleBracket,LeftDownTeeVector:LeftDownTeeVector,LeftDownVector:LeftDownVector,LeftDownVectorBar:LeftDownVectorBar,LeftFloor:LeftFloor,LeftRightArrow:LeftRightArrow,LeftRightVector:LeftRightVector,LeftTee:LeftTee,LeftTeeArrow:LeftTeeArrow,LeftTeeVector:LeftTeeVector,LeftTriangle:LeftTriangle,LeftTriangleBar:LeftTriangleBar,LeftTriangleEqual:LeftTriangleEqual,LeftUpDownVector:LeftUpDownVector,LeftUpTeeVector:LeftUpTeeVector,LeftUpVector:LeftUpVector,LeftUpVectorBar:LeftUpVectorBar,LeftVector:LeftVector,LeftVectorBar:LeftVectorBar,Leftarrow:Leftarrow,Leftrightarrow:Leftrightarrow,LessEqualGreater:LessEqualGreater,LessFullEqual:LessFullEqual,LessGreater:LessGreater,LessLess:LessLess,LessSlantEqual:LessSlantEqual,LessTilde:LessTilde,Lfr:Lfr,Ll:Ll,Lleftarrow:Lleftarrow,Lmidot:Lmidot,LongLeftArrow:LongLeftArrow,LongLeftRightArrow:LongLeftRightArrow,LongRightArrow:LongRightArrow,Longleftarrow:Longleftarrow,Longleftrightarrow:Longleftrightarrow,Longrightarrow:Longrightarrow,Lopf:Lopf,LowerLeftArrow:LowerLeftArrow,LowerRightArrow:LowerRightArrow,Lscr:Lscr,Lsh:Lsh,Lstrok:Lstrok,Lt:Lt,Mcy:Mcy,MediumSpace:MediumSpace,Mellintrf:Mellintrf,Mfr:Mfr,MinusPlus:MinusPlus,Mopf:Mopf,Mscr:Mscr,Mu:Mu,NJcy:NJcy,Nacute:Nacute,Ncaron:Ncaron,Ncedil:Ncedil,Ncy:Ncy,NegativeMediumSpace:NegativeMediumSpace,NegativeThickSpace:NegativeThickSpace,NegativeThinSpace:NegativeThinSpace,NegativeVeryThinSpace:NegativeVeryThinSpace,NestedGreaterGreater:NestedGreaterGreater,NestedLessLess:NestedLessLess,NewLine:NewLine,Nfr:Nfr,NoBreak:NoBreak,NonBreakingSpace:NonBreakingSpace,Nopf:Nopf,Not:Not,NotCongruent:NotCongruent,NotCupCap:NotCupCap,NotDoubleVerticalBar:NotDoubleVerticalBar,NotElement:NotElement,NotEqual:NotEqual,NotEqualTilde:NotEqualTilde,NotExists:NotExists,NotGreater:NotGreater,NotGreaterEqual:NotGreaterEqual,NotGreaterFullEqual:NotGreaterFullEqual,NotGreaterGreater:NotGreaterGreater,NotGreaterLess:NotGreaterLess,NotGreaterSlantEqual:NotGreaterSlantEqual,NotGreaterTilde:NotGreaterTilde,NotHumpDownHump:NotHumpDownHump,NotHumpEqual:NotHumpEqual,NotLeftTriangle:NotLeftTriangle,NotLeftTriangleBar:NotLeftTriangleBar,NotLeftTriangleEqual:NotLeftTriangleEqual,NotLess:NotLess,NotLessEqual:NotLessEqual,NotLessGreater:NotLessGreater,NotLessLess:NotLessLess,NotLessSlantEqual:NotLessSlantEqual,NotLessTilde:NotLessTilde,NotNestedGreaterGreater:NotNestedGreaterGreater,NotNestedLessLess:NotNestedLessLess,NotPrecedes:NotPrecedes,NotPrecedesEqual:NotPrecedesEqual,NotPrecedesSlantEqual:NotPrecedesSlantEqual,NotReverseElement:NotReverseElement,NotRightTriangle:NotRightTriangle,NotRightTriangleBar:NotRightTriangleBar,NotRightTriangleEqual:NotRightTriangleEqual,NotSquareSubset:NotSquareSubset,NotSquareSubsetEqual:NotSquareSubsetEqual,NotSquareSuperset:NotSquareSuperset,NotSquareSupersetEqual:NotSquareSupersetEqual,NotSubset:NotSubset,NotSubsetEqual:NotSubsetEqual,NotSucceeds:NotSucceeds,NotSucceedsEqual:NotSucceedsEqual,NotSucceedsSlantEqual:NotSucceedsSlantEqual,NotSucceedsTilde:NotSucceedsTilde,NotSuperset:NotSuperset,NotSupersetEqual:NotSupersetEqual,NotTilde:NotTilde,NotTildeEqual:NotTildeEqual,NotTildeFullEqual:NotTildeFullEqual,NotTildeTilde:NotTildeTilde,NotVerticalBar:NotVerticalBar,Nscr:Nscr,Ntild:Ntild,Ntilde:Ntilde,Nu:Nu,OElig:OElig,Oacut:Oacut,Oacute:Oacute,Ocir:Ocir,Ocirc:Ocirc,Ocy:Ocy,Odblac:Odblac,Ofr:Ofr,Ograv:Ograv,Ograve:Ograve,Omacr:Omacr,Omega:Omega,Omicron:Omicron,Oopf:Oopf,OpenCurlyDoubleQuote:OpenCurlyDoubleQuote,OpenCurlyQuote:OpenCurlyQuote,Or:Or,Oscr:Oscr,Oslas:Oslas,Oslash:Oslash,Otild:Otild,Otilde:Otilde,Otimes:Otimes,Oum:Oum,Ouml:Ouml,OverBar:OverBar,OverBrace:OverBrace,OverBracket:OverBracket,OverParenthesis:OverParenthesis,PartialD:PartialD,Pcy:Pcy,Pfr:Pfr,Phi:Phi,Pi:Pi,PlusMinus:PlusMinus,Poincareplane:Poincareplane,Popf:Popf,Pr:Pr,Precedes:Precedes,PrecedesEqual:PrecedesEqual,PrecedesSlantEqual:PrecedesSlantEqual,PrecedesTilde:PrecedesTilde,Prime:Prime,Product:Product,Proportion:Proportion,Proportional:Proportional,Pscr:Pscr,Psi:Psi,QUO:QUO,QUOT:QUOT,Qfr:Qfr,Qopf:Qopf,Qscr:Qscr,RBarr:RBarr,RE:RE,REG:REG,Racute:Racute,Rang:Rang,Rarr:Rarr,Rarrtl:Rarrtl,Rcaron:Rcaron,Rcedil:Rcedil,Rcy:Rcy,Re:Re,ReverseElement:ReverseElement,ReverseEquilibrium:ReverseEquilibrium,ReverseUpEquilibrium:ReverseUpEquilibrium,Rfr:Rfr,Rho:Rho,RightAngleBracket:RightAngleBracket,RightArrow:RightArrow,RightArrowBar:RightArrowBar,RightArrowLeftArrow:RightArrowLeftArrow,RightCeiling:RightCeiling,RightDoubleBracket:RightDoubleBracket,RightDownTeeVector:RightDownTeeVector,RightDownVector:RightDownVector,RightDownVectorBar:RightDownVectorBar,RightFloor:RightFloor,RightTee:RightTee,RightTeeArrow:RightTeeArrow,RightTeeVector:RightTeeVector,RightTriangle:RightTriangle,RightTriangleBar:RightTriangleBar,RightTriangleEqual:RightTriangleEqual,RightUpDownVector:RightUpDownVector,RightUpTeeVector:RightUpTeeVector,RightUpVector:RightUpVector,RightUpVectorBar:RightUpVectorBar,RightVector:RightVector,RightVectorBar:RightVectorBar,Rightarrow:Rightarrow,Ropf:Ropf,RoundImplies:RoundImplies,Rrightarrow:Rrightarrow,Rscr:Rscr,Rsh:Rsh,RuleDelayed:RuleDelayed,SHCHcy:SHCHcy,SHcy:SHcy,SOFTcy:SOFTcy,Sacute:Sacute,Sc:Sc,Scaron:Scaron,Scedil:Scedil,Scirc:Scirc,Scy:Scy,Sfr:Sfr,ShortDownArrow:ShortDownArrow,ShortLeftArrow:ShortLeftArrow,ShortRightArrow:ShortRightArrow,ShortUpArrow:ShortUpArrow,Sigma:Sigma,SmallCircle:SmallCircle,Sopf:Sopf,Sqrt:Sqrt,Square:Square,SquareIntersection:SquareIntersection,SquareSubset:SquareSubset,SquareSubsetEqual:SquareSubsetEqual,SquareSuperset:SquareSuperset,SquareSupersetEqual:SquareSupersetEqual,SquareUnion:SquareUnion,Sscr:Sscr,Star:Star,Sub:Sub,Subset:Subset,SubsetEqual:SubsetEqual,Succeeds:Succeeds,SucceedsEqual:SucceedsEqual,SucceedsSlantEqual:SucceedsSlantEqual,SucceedsTilde:SucceedsTilde,SuchThat:SuchThat,Sum:Sum,Sup:Sup,Superset:Superset,SupersetEqual:SupersetEqual,Supset:Supset,THOR:THOR,THORN:THORN,TRADE:TRADE,TSHcy:TSHcy,TScy:TScy,Tab:Tab,Tau:Tau,Tcaron:Tcaron,Tcedil:Tcedil,Tcy:Tcy,Tfr:Tfr,Therefore:Therefore,Theta:Theta,ThickSpace:ThickSpace,ThinSpace:ThinSpace,Tilde:Tilde,TildeEqual:TildeEqual,TildeFullEqual:TildeFullEqual,TildeTilde:TildeTilde,Topf:Topf,TripleDot:TripleDot,Tscr:Tscr,Tstrok:Tstrok,Uacut:Uacut,Uacute:Uacute,Uarr:Uarr,Uarrocir:Uarrocir,Ubrcy:Ubrcy,Ubreve:Ubreve,Ucir:Ucir,Ucirc:Ucirc,Ucy:Ucy,Udblac:Udblac,Ufr:Ufr,Ugrav:Ugrav,Ugrave:Ugrave,Umacr:Umacr,UnderBar:UnderBar,UnderBrace:UnderBrace,UnderBracket:UnderBracket,UnderParenthesis:UnderParenthesis,Union:Union,UnionPlus:UnionPlus,Uogon:Uogon,Uopf:Uopf,UpArrow:UpArrow,UpArrowBar:UpArrowBar,UpArrowDownArrow:UpArrowDownArrow,UpDownArrow:UpDownArrow,UpEquilibrium:UpEquilibrium,UpTee:UpTee,UpTeeArrow:UpTeeArrow,Uparrow:Uparrow,Updownarrow:Updownarrow,UpperLeftArrow:UpperLeftArrow,UpperRightArrow:UpperRightArrow,Upsi:Upsi,Upsilon:Upsilon,Uring:Uring,Uscr:Uscr,Utilde:Utilde,Uum:Uum,Uuml:Uuml,VDash:VDash,Vbar:Vbar,Vcy:Vcy,Vdash:Vdash,Vdashl:Vdashl,Vee:Vee,Verbar:Verbar,Vert:Vert,VerticalBar:VerticalBar,VerticalLine:VerticalLine,VerticalSeparator:VerticalSeparator,VerticalTilde:VerticalTilde,VeryThinSpace:VeryThinSpace,Vfr:Vfr,Vopf:Vopf,Vscr:Vscr,Vvdash:Vvdash,Wcirc:Wcirc,Wedge:Wedge,Wfr:Wfr,Wopf:Wopf,Wscr:Wscr,Xfr:Xfr,Xi:Xi,Xopf:Xopf,Xscr:Xscr,YAcy:YAcy,YIcy:YIcy,YUcy:YUcy,Yacut:Yacut,Yacute:Yacute,Ycirc:Ycirc,Ycy:Ycy,Yfr:Yfr,Yopf:Yopf,Yscr:Yscr,Yuml:Yuml,ZHcy:ZHcy,Zacute:Zacute,Zcaron:Zcaron,Zcy:Zcy,Zdot:Zdot,ZeroWidthSpace:ZeroWidthSpace,Zeta:Zeta,Zfr:Zfr,Zopf:Zopf,Zscr:Zscr,aacut:aacut,aacute:aacute,abreve:abreve,ac:ac,acE:acE,acd:acd,acir:acir,acirc:acirc,acut:acut,acute:acute,acy:acy,aeli:aeli,aelig:aelig,af:af,afr:afr,agrav:agrav,agrave:agrave,alefsym:alefsym,aleph:aleph,alpha:alpha,amacr:amacr,amalg:amalg,am:am,amp:amp,and:and,andand:andand,andd:andd,andslope:andslope,andv:andv,ang:ang,ange:ange,angle:angle,angmsd:angmsd,angmsdaa:angmsdaa,angmsdab:angmsdab,angmsdac:angmsdac,angmsdad:angmsdad,angmsdae:angmsdae,angmsdaf:angmsdaf,angmsdag:angmsdag,angmsdah:angmsdah,angrt:angrt,angrtvb:angrtvb,angrtvbd:angrtvbd,angsph:angsph,angst:angst,angzarr:angzarr,aogon:aogon,aopf:aopf,ap:ap,apE:apE,apacir:apacir,ape:ape,apid:apid,apos:apos,approx:approx,approxeq:approxeq,arin:arin,aring:aring,ascr:ascr,ast:ast,asymp:asymp,asympeq:asympeq,atild:atild,atilde:atilde,aum:aum,auml:auml,awconint:awconint,awint:awint,bNot:bNot,backcong:backcong,backepsilon:backepsilon,backprime:backprime,backsim:backsim,backsimeq:backsimeq,barvee:barvee,barwed:barwed,barwedge:barwedge,bbrk:bbrk,bbrktbrk:bbrktbrk,bcong:bcong,bcy:bcy,bdquo:bdquo,becaus:becaus,because:because,bemptyv:bemptyv,bepsi:bepsi,bernou:bernou,beta:beta,beth:beth,between:between,bfr:bfr,bigcap:bigcap,bigcirc:bigcirc,bigcup:bigcup,bigodot:bigodot,bigoplus:bigoplus,bigotimes:bigotimes,bigsqcup:bigsqcup,bigstar:bigstar,bigtriangledown:bigtriangledown,bigtriangleup:bigtriangleup,biguplus:biguplus,bigvee:bigvee,bigwedge:bigwedge,bkarow:bkarow,blacklozenge:blacklozenge,blacksquare:blacksquare,blacktriangle:blacktriangle,blacktriangledown:blacktriangledown,blacktriangleleft:blacktriangleleft,blacktriangleright:blacktriangleright,blank:blank,blk12:blk12,blk14:blk14,blk34:blk34,block:block,bne:bne,bnequiv:bnequiv,bnot:bnot,bopf:bopf,bot:bot,bottom:bottom,bowtie:bowtie,boxDL:boxDL,boxDR:boxDR,boxDl:boxDl,boxDr:boxDr,boxH:boxH,boxHD:boxHD,boxHU:boxHU,boxHd:boxHd,boxHu:boxHu,boxUL:boxUL,boxUR:boxUR,boxUl:boxUl,boxUr:boxUr,boxV:boxV,boxVH:boxVH,boxVL:boxVL,boxVR:boxVR,boxVh:boxVh,boxVl:boxVl,boxVr:boxVr,boxbox:boxbox,boxdL:boxdL,boxdR:boxdR,boxdl:boxdl,boxdr:boxdr,boxh:boxh,boxhD:boxhD,boxhU:boxhU,boxhd:boxhd,boxhu:boxhu,boxminus:boxminus,boxplus:boxplus,boxtimes:boxtimes,boxuL:boxuL,boxuR:boxuR,boxul:boxul,boxur:boxur,boxv:boxv,boxvH:boxvH,boxvL:boxvL,boxvR:boxvR,boxvh:boxvh,boxvl:boxvl,boxvr:boxvr,bprime:bprime,breve:breve,brvba:brvba,brvbar:brvbar,bscr:bscr,bsemi:bsemi,bsim:bsim,bsime:bsime,bsol:bsol,bsolb:bsolb,bsolhsub:bsolhsub,bull:bull,bullet:bullet,bump:bump,bumpE:bumpE,bumpe:bumpe,bumpeq:bumpeq,cacute:cacute,cap:cap,capand:capand,capbrcup:capbrcup,capcap:capcap,capcup:capcup,capdot:capdot,caps:caps,caret:caret,caron:caron,ccaps:ccaps,ccaron:ccaron,ccedi:ccedi,ccedil:ccedil,ccirc:ccirc,ccups:ccups,ccupssm:ccupssm,cdot:cdot,cedi:cedi,cedil:cedil,cemptyv:cemptyv,cen:cen,cent:cent,centerdot:centerdot,cfr:cfr,chcy:chcy,check:check,checkmark:checkmark,chi:chi,cir:cir,cirE:cirE,circ:circ,circeq:circeq,circlearrowleft:circlearrowleft,circlearrowright:circlearrowright,circledR:circledR,circledS:circledS,circledast:circledast,circledcirc:circledcirc,circleddash:circleddash,cire:cire,cirfnint:cirfnint,cirmid:cirmid,cirscir:cirscir,clubs:clubs,clubsuit:clubsuit,colon:colon,colone:colone,coloneq:coloneq,comma:comma,commat:commat,comp:comp,compfn:compfn,complement:complement,complexes:complexes,cong:cong,congdot:congdot,conint:conint,copf:copf,coprod:coprod,cop:cop,copy:copy,copysr:copysr,crarr:crarr,cross:cross,cscr:cscr,csub:csub,csube:csube,csup:csup,csupe:csupe,ctdot:ctdot,cudarrl:cudarrl,cudarrr:cudarrr,cuepr:cuepr,cuesc:cuesc,cularr:cularr,cularrp:cularrp,cup:cup,cupbrcap:cupbrcap,cupcap:cupcap,cupcup:cupcup,cupdot:cupdot,cupor:cupor,cups:cups,curarr:curarr,curarrm:curarrm,curlyeqprec:curlyeqprec,curlyeqsucc:curlyeqsucc,curlyvee:curlyvee,curlywedge:curlywedge,curre:curre,curren:curren,curvearrowleft:curvearrowleft,curvearrowright:curvearrowright,cuvee:cuvee,cuwed:cuwed,cwconint:cwconint,cwint:cwint,cylcty:cylcty,dArr:dArr,dHar:dHar,dagger:dagger,daleth:daleth,darr:darr,dash:dash,dashv:dashv,dbkarow:dbkarow,dblac:dblac,dcaron:dcaron,dcy:dcy,dd:dd,ddagger:ddagger,ddarr:ddarr,ddotseq:ddotseq,de:de,deg:deg,delta:delta,demptyv:demptyv,dfisht:dfisht,dfr:dfr,dharl:dharl,dharr:dharr,diam:diam,diamond:diamond,diamondsuit:diamondsuit,diams:diams,die:die,digamma:digamma,disin:disin,div:div,divid:divid,divide:divide,divideontimes:divideontimes,divonx:divonx,djcy:djcy,dlcorn:dlcorn,dlcrop:dlcrop,dollar:dollar,dopf:dopf,dot:dot,doteq:doteq,doteqdot:doteqdot,dotminus:dotminus,dotplus:dotplus,dotsquare:dotsquare,doublebarwedge:doublebarwedge,downarrow:downarrow,downdownarrows:downdownarrows,downharpoonleft:downharpoonleft,downharpoonright:downharpoonright,drbkarow:drbkarow,drcorn:drcorn,drcrop:drcrop,dscr:dscr,dscy:dscy,dsol:dsol,dstrok:dstrok,dtdot:dtdot,dtri:dtri,dtrif:dtrif,duarr:duarr,duhar:duhar,dwangle:dwangle,dzcy:dzcy,dzigrarr:dzigrarr,eDDot:eDDot,eDot:eDot,eacut:eacut,eacute:eacute,easter:easter,ecaron:ecaron,ecir:ecir,ecirc:ecirc,ecolon:ecolon,ecy:ecy,edot:edot,ee:ee,efDot:efDot,efr:efr,eg:eg,egrav:egrav,egrave:egrave,egs:egs,egsdot:egsdot,el:el,elinters:elinters,ell:ell,els:els,elsdot:elsdot,emacr:emacr,empty:empty,emptyset:emptyset,emptyv:emptyv,emsp13:emsp13,emsp14:emsp14,emsp:emsp,eng:eng,ensp:ensp,eogon:eogon,eopf:eopf,epar:epar,eparsl:eparsl,eplus:eplus,epsi:epsi,epsilon:epsilon,epsiv:epsiv,eqcirc:eqcirc,eqcolon:eqcolon,eqsim:eqsim,eqslantgtr:eqslantgtr,eqslantless:eqslantless,equals:equals,equest:equest,equiv:equiv,equivDD:equivDD,eqvparsl:eqvparsl,erDot:erDot,erarr:erarr,escr:escr,esdot:esdot,esim:esim,eta:eta,et:et,eth:eth,eum:eum,euml:euml,euro:euro,excl:excl,exist:exist,expectation:expectation,exponentiale:exponentiale,fallingdotseq:fallingdotseq,fcy:fcy,female:female,ffilig:ffilig,fflig:fflig,ffllig:ffllig,ffr:ffr,filig:filig,fjlig:fjlig,flat:flat,fllig:fllig,fltns:fltns,fnof:fnof,fopf:fopf,forall:forall,fork:fork,forkv:forkv,fpartint:fpartint,frac1:frac1,frac12:frac12,frac13:frac13,frac14:frac14,frac15:frac15,frac16:frac16,frac18:frac18,frac23:frac23,frac25:frac25,frac3:frac3,frac34:frac34,frac35:frac35,frac38:frac38,frac45:frac45,frac56:frac56,frac58:frac58,frac78:frac78,frasl:frasl,frown:frown,fscr:fscr,gE:gE,gEl:gEl,gacute:gacute,gamma:gamma,gammad:gammad,gap:gap,gbreve:gbreve,gcirc:gcirc,gcy:gcy,gdot:gdot,ge:ge,gel:gel,geq:geq,geqq:geqq,geqslant:geqslant,ges:ges,gescc:gescc,gesdot:gesdot,gesdoto:gesdoto,gesdotol:gesdotol,gesl:gesl,gesles:gesles,gfr:gfr,gg:gg,ggg:ggg,gimel:gimel,gjcy:gjcy,gl:gl,glE:glE,gla:gla,glj:glj,gnE:gnE,gnap:gnap,gnapprox:gnapprox,gne:gne,gneq:gneq,gneqq:gneqq,gnsim:gnsim,gopf:gopf,grave:grave,gscr:gscr,gsim:gsim,gsime:gsime,gsiml:gsiml,g:g,gt:gt,gtcc:gtcc,gtcir:gtcir,gtdot:gtdot,gtlPar:gtlPar,gtquest:gtquest,gtrapprox:gtrapprox,gtrarr:gtrarr,gtrdot:gtrdot,gtreqless:gtreqless,gtreqqless:gtreqqless,gtrless:gtrless,gtrsim:gtrsim,gvertneqq:gvertneqq,gvnE:gvnE,hArr:hArr,hairsp:hairsp,half:half,hamilt:hamilt,hardcy:hardcy,harr:harr,harrcir:harrcir,harrw:harrw,hbar:hbar,hcirc:hcirc,hearts:hearts,heartsuit:heartsuit,hellip:hellip,hercon:hercon,hfr:hfr,hksearow:hksearow,hkswarow:hkswarow,hoarr:hoarr,homtht:homtht,hookleftarrow:hookleftarrow,hookrightarrow:hookrightarrow,hopf:hopf,horbar:horbar,hscr:hscr,hslash:hslash,hstrok:hstrok,hybull:hybull,hyphen:hyphen,iacut:iacut,iacute:iacute,ic:ic,icir:icir,icirc:icirc,icy:icy,iecy:iecy,iexc:iexc,iexcl:iexcl,iff:iff,ifr:ifr,igrav:igrav,igrave:igrave,ii:ii,iiiint:iiiint,iiint:iiint,iinfin:iinfin,iiota:iiota,ijlig:ijlig,imacr:imacr,image:image,imagline:imagline,imagpart:imagpart,imath:imath,imof:imof,imped:imped,incare:incare,infin:infin,infintie:infintie,inodot:inodot,int:int,intcal:intcal,integers:integers,intercal:intercal,intlarhk:intlarhk,intprod:intprod,iocy:iocy,iogon:iogon,iopf:iopf,iota:iota,iprod:iprod,iques:iques,iquest:iquest,iscr:iscr,isin:isin,isinE:isinE,isindot:isindot,isins:isins,isinsv:isinsv,isinv:isinv,it:it,itilde:itilde,iukcy:iukcy,ium:ium,iuml:iuml,jcirc:jcirc,jcy:jcy,jfr:jfr,jmath:jmath,jopf:jopf,jscr:jscr,jsercy:jsercy,jukcy:jukcy,kappa:kappa,kappav:kappav,kcedil:kcedil,kcy:kcy,kfr:kfr,kgreen:kgreen,khcy:khcy,kjcy:kjcy,kopf:kopf,kscr:kscr,lAarr:lAarr,lArr:lArr,lAtail:lAtail,lBarr:lBarr,lE:lE,lEg:lEg,lHar:lHar,lacute:lacute,laemptyv:laemptyv,lagran:lagran,lambda:lambda,lang:lang,langd:langd,langle:langle,lap:lap,laqu:laqu,laquo:laquo,larr:larr,larrb:larrb,larrbfs:larrbfs,larrfs:larrfs,larrhk:larrhk,larrlp:larrlp,larrpl:larrpl,larrsim:larrsim,larrtl:larrtl,lat:lat,latail:latail,late:late,lates:lates,lbarr:lbarr,lbbrk:lbbrk,lbrace:lbrace,lbrack:lbrack,lbrke:lbrke,lbrksld:lbrksld,lbrkslu:lbrkslu,lcaron:lcaron,lcedil:lcedil,lceil:lceil,lcub:lcub,lcy:lcy,ldca:ldca,ldquo:ldquo,ldquor:ldquor,ldrdhar:ldrdhar,ldrushar:ldrushar,ldsh:ldsh,le:le,leftarrow:leftarrow,leftarrowtail:leftarrowtail,leftharpoondown:leftharpoondown,leftharpoonup:leftharpoonup,leftleftarrows:leftleftarrows,leftrightarrow:leftrightarrow,leftrightarrows:leftrightarrows,leftrightharpoons:leftrightharpoons,leftrightsquigarrow:leftrightsquigarrow,leftthreetimes:leftthreetimes,leg:leg,leq:leq,leqq:leqq,leqslant:leqslant,les:les,lescc:lescc,lesdot:lesdot,lesdoto:lesdoto,lesdotor:lesdotor,lesg:lesg,lesges:lesges,lessapprox:lessapprox,lessdot:lessdot,lesseqgtr:lesseqgtr,lesseqqgtr:lesseqqgtr,lessgtr:lessgtr,lesssim:lesssim,lfisht:lfisht,lfloor:lfloor,lfr:lfr,lg:lg,lgE:lgE,lhard:lhard,lharu:lharu,lharul:lharul,lhblk:lhblk,ljcy:ljcy,ll:ll,llarr:llarr,llcorner:llcorner,llhard:llhard,lltri:lltri,lmidot:lmidot,lmoust:lmoust,lmoustache:lmoustache,lnE:lnE,lnap:lnap,lnapprox:lnapprox,lne:lne,lneq:lneq,lneqq:lneqq,lnsim:lnsim,loang:loang,loarr:loarr,lobrk:lobrk,longleftarrow:longleftarrow,longleftrightarrow:longleftrightarrow,longmapsto:longmapsto,longrightarrow:longrightarrow,looparrowleft:looparrowleft,looparrowright:looparrowright,lopar:lopar,lopf:lopf,loplus:loplus,lotimes:lotimes,lowast:lowast,lowbar:lowbar,loz:loz,lozenge:lozenge,lozf:lozf,lpar:lpar,lparlt:lparlt,lrarr:lrarr,lrcorner:lrcorner,lrhar:lrhar,lrhard:lrhard,lrm:lrm,lrtri:lrtri,lsaquo:lsaquo,lscr:lscr,lsh:lsh,lsim:lsim,lsime:lsime,lsimg:lsimg,lsqb:lsqb,lsquo:lsquo,lsquor:lsquor,lstrok:lstrok,l:l,lt:lt,ltcc:ltcc,ltcir:ltcir,ltdot:ltdot,lthree:lthree,ltimes:ltimes,ltlarr:ltlarr,ltquest:ltquest,ltrPar:ltrPar,ltri:ltri,ltrie:ltrie,ltrif:ltrif,lurdshar:lurdshar,luruhar:luruhar,lvertneqq:lvertneqq,lvnE:lvnE,mDDot:mDDot,mac:mac,macr:macr,male:male,malt:malt,maltese:maltese,map:map$1,mapsto:mapsto,mapstodown:mapstodown,mapstoleft:mapstoleft,mapstoup:mapstoup,marker:marker,mcomma:mcomma,mcy:mcy,mdash:mdash,measuredangle:measuredangle,mfr:mfr,mho:mho,micr:micr,micro:micro,mid:mid,midast:midast,midcir:midcir,middo:middo,middot:middot,minus:minus,minusb:minusb,minusd:minusd,minusdu:minusdu,mlcp:mlcp,mldr:mldr,mnplus:mnplus,models:models,mopf:mopf,mp:mp,mscr:mscr,mstpos:mstpos,mu:mu,multimap:multimap,mumap:mumap,nGg:nGg,nGt:nGt,nGtv:nGtv,nLeftarrow:nLeftarrow,nLeftrightarrow:nLeftrightarrow,nLl:nLl,nLt:nLt,nLtv:nLtv,nRightarrow:nRightarrow,nVDash:nVDash,nVdash:nVdash,nabla:nabla,nacute:nacute,nang:nang,nap:nap,napE:napE,napid:napid,napos:napos,napprox:napprox,natur:natur,natural:natural,naturals:naturals,nbs:nbs,nbsp:nbsp,nbump:nbump,nbumpe:nbumpe,ncap:ncap,ncaron:ncaron,ncedil:ncedil,ncong:ncong,ncongdot:ncongdot,ncup:ncup,ncy:ncy,ndash:ndash,ne:ne,neArr:neArr,nearhk:nearhk,nearr:nearr,nearrow:nearrow,nedot:nedot,nequiv:nequiv,nesear:nesear,nesim:nesim,nexist:nexist,nexists:nexists,nfr:nfr,ngE:ngE,nge:nge,ngeq:ngeq,ngeqq:ngeqq,ngeqslant:ngeqslant,nges:nges,ngsim:ngsim,ngt:ngt,ngtr:ngtr,nhArr:nhArr,nharr:nharr,nhpar:nhpar,ni:ni,nis:nis,nisd:nisd,niv:niv,njcy:njcy,nlArr:nlArr,nlE:nlE,nlarr:nlarr,nldr:nldr,nle:nle,nleftarrow:nleftarrow,nleftrightarrow:nleftrightarrow,nleq:nleq,nleqq:nleqq,nleqslant:nleqslant,nles:nles,nless:nless,nlsim:nlsim,nlt:nlt,nltri:nltri,nltrie:nltrie,nmid:nmid,nopf:nopf,no:no,not:not,notin:notin,notinE:notinE,notindot:notindot,notinva:notinva,notinvb:notinvb,notinvc:notinvc,notni:notni,notniva:notniva,notnivb:notnivb,notnivc:notnivc,npar:npar,nparallel:nparallel,nparsl:nparsl,npart:npart,npolint:npolint,npr:npr,nprcue:nprcue,npre:npre,nprec:nprec,npreceq:npreceq,nrArr:nrArr,nrarr:nrarr,nrarrc:nrarrc,nrarrw:nrarrw,nrightarrow:nrightarrow,nrtri:nrtri,nrtrie:nrtrie,nsc:nsc,nsccue:nsccue,nsce:nsce,nscr:nscr,nshortmid:nshortmid,nshortparallel:nshortparallel,nsim:nsim,nsime:nsime,nsimeq:nsimeq,nsmid:nsmid,nspar:nspar,nsqsube:nsqsube,nsqsupe:nsqsupe,nsub:nsub,nsubE:nsubE,nsube:nsube,nsubset:nsubset,nsubseteq:nsubseteq,nsubseteqq:nsubseteqq,nsucc:nsucc,nsucceq:nsucceq,nsup:nsup,nsupE:nsupE,nsupe:nsupe,nsupset:nsupset,nsupseteq:nsupseteq,nsupseteqq:nsupseteqq,ntgl:ntgl,ntild:ntild,ntilde:ntilde,ntlg:ntlg,ntriangleleft:ntriangleleft,ntrianglelefteq:ntrianglelefteq,ntriangleright:ntriangleright,ntrianglerighteq:ntrianglerighteq,nu:nu,num:num,numero:numero,numsp:numsp,nvDash:nvDash,nvHarr:nvHarr,nvap:nvap,nvdash:nvdash,nvge:nvge,nvgt:nvgt,nvinfin:nvinfin,nvlArr:nvlArr,nvle:nvle,nvlt:nvlt,nvltrie:nvltrie,nvrArr:nvrArr,nvrtrie:nvrtrie,nvsim:nvsim,nwArr:nwArr,nwarhk:nwarhk,nwarr:nwarr,nwarrow:nwarrow,nwnear:nwnear,oS:oS,oacut:oacut,oacute:oacute,oast:oast,ocir:ocir,ocirc:ocirc,ocy:ocy,odash:odash,odblac:odblac,odiv:odiv,odot:odot,odsold:odsold,oelig:oelig,ofcir:ofcir,ofr:ofr,ogon:ogon,ograv:ograv,ograve:ograve,ogt:ogt,ohbar:ohbar,ohm:ohm,oint:oint,olarr:olarr,olcir:olcir,olcross:olcross,oline:oline,olt:olt,omacr:omacr,omega:omega,omicron:omicron,omid:omid,ominus:ominus,oopf:oopf,opar:opar,operp:operp,oplus:oplus,or:or,orarr:orarr,ord:ord,order:order,orderof:orderof,ordf:ordf,ordm:ordm,origof:origof,oror:oror,orslope:orslope,orv:orv,oscr:oscr,oslas:oslas,oslash:oslash,osol:osol,otild:otild,otilde:otilde,otimes:otimes,otimesas:otimesas,oum:oum,ouml:ouml,ovbar:ovbar,par:par,para:para,parallel:parallel,parsim:parsim,parsl:parsl,part:part,pcy:pcy,percnt:percnt,period:period,permil:permil,perp:perp,pertenk:pertenk,pfr:pfr,phi:phi,phiv:phiv,phmmat:phmmat,phone:phone,pi:pi,pitchfork:pitchfork,piv:piv,planck:planck,planckh:planckh,plankv:plankv,plus:plus,plusacir:plusacir,plusb:plusb,pluscir:pluscir,plusdo:plusdo,plusdu:plusdu,pluse:pluse,plusm:plusm,plusmn:plusmn,plussim:plussim,plustwo:plustwo,pm:pm,pointint:pointint,popf:popf,poun:poun,pound:pound,pr:pr,prE:prE,prap:prap,prcue:prcue,pre:pre,prec:prec,precapprox:precapprox,preccurlyeq:preccurlyeq,preceq:preceq,precnapprox:precnapprox,precneqq:precneqq,precnsim:precnsim,precsim:precsim,prime:prime,primes:primes,prnE:prnE,prnap:prnap,prnsim:prnsim,prod:prod,profalar:profalar,profline:profline,profsurf:profsurf,prop:prop,propto:propto,prsim:prsim,prurel:prurel,pscr:pscr,psi:psi,puncsp:puncsp,qfr:qfr,qint:qint,qopf:qopf,qprime:qprime,qscr:qscr,quaternions:quaternions,quatint:quatint,quest:quest,questeq:questeq,quo:quo,quot:quot,rAarr:rAarr,rArr:rArr,rAtail:rAtail,rBarr:rBarr,rHar:rHar,race:race,racute:racute,radic:radic,raemptyv:raemptyv,rang:rang,rangd:rangd,range:range,rangle:rangle,raqu:raqu,raquo:raquo,rarr:rarr,rarrap:rarrap,rarrb:rarrb,rarrbfs:rarrbfs,rarrc:rarrc,rarrfs:rarrfs,rarrhk:rarrhk,rarrlp:rarrlp,rarrpl:rarrpl,rarrsim:rarrsim,rarrtl:rarrtl,rarrw:rarrw,ratail:ratail,ratio:ratio,rationals:rationals,rbarr:rbarr,rbbrk:rbbrk,rbrace:rbrace,rbrack:rbrack,rbrke:rbrke,rbrksld:rbrksld,rbrkslu:rbrkslu,rcaron:rcaron,rcedil:rcedil,rceil:rceil,rcub:rcub,rcy:rcy,rdca:rdca,rdldhar:rdldhar,rdquo:rdquo,rdquor:rdquor,rdsh:rdsh,real:real,realine:realine,realpart:realpart,reals:reals,rect:rect,re:re,reg:reg,rfisht:rfisht,rfloor:rfloor,rfr:rfr,rhard:rhard,rharu:rharu,rharul:rharul,rho:rho,rhov:rhov,rightarrow:rightarrow,rightarrowtail:rightarrowtail,rightharpoondown:rightharpoondown,rightharpoonup:rightharpoonup,rightleftarrows:rightleftarrows,rightleftharpoons:rightleftharpoons,rightrightarrows:rightrightarrows,rightsquigarrow:rightsquigarrow,rightthreetimes:rightthreetimes,ring:ring,risingdotseq:risingdotseq,rlarr:rlarr,rlhar:rlhar,rlm:rlm,rmoust:rmoust,rmoustache:rmoustache,rnmid:rnmid,roang:roang,roarr:roarr,robrk:robrk,ropar:ropar,ropf:ropf,roplus:roplus,rotimes:rotimes,rpar:rpar,rpargt:rpargt,rppolint:rppolint,rrarr:rrarr,rsaquo:rsaquo,rscr:rscr,rsh:rsh,rsqb:rsqb,rsquo:rsquo,rsquor:rsquor,rthree:rthree,rtimes:rtimes,rtri:rtri,rtrie:rtrie,rtrif:rtrif,rtriltri:rtriltri,ruluhar:ruluhar,rx:rx,sacute:sacute,sbquo:sbquo,sc:sc,scE:scE,scap:scap,scaron:scaron,sccue:sccue,sce:sce,scedil:scedil,scirc:scirc,scnE:scnE,scnap:scnap,scnsim:scnsim,scpolint:scpolint,scsim:scsim,scy:scy,sdot:sdot,sdotb:sdotb,sdote:sdote,seArr:seArr,searhk:searhk,searr:searr,searrow:searrow,sec:sec,sect:sect,semi:semi,seswar:seswar,setminus:setminus,setmn:setmn,sext:sext,sfr:sfr,sfrown:sfrown,sharp:sharp,shchcy:shchcy,shcy:shcy,shortmid:shortmid,shortparallel:shortparallel,sh:sh,shy:shy,sigma:sigma,sigmaf:sigmaf,sigmav:sigmav,sim:sim,simdot:simdot,sime:sime,simeq:simeq,simg:simg,simgE:simgE,siml:siml,simlE:simlE,simne:simne,simplus:simplus,simrarr:simrarr,slarr:slarr,smallsetminus:smallsetminus,smashp:smashp,smeparsl:smeparsl,smid:smid,smile:smile,smt:smt,smte:smte,smtes:smtes,softcy:softcy,sol:sol,solb:solb,solbar:solbar,sopf:sopf,spades:spades,spadesuit:spadesuit,spar:spar,sqcap:sqcap,sqcaps:sqcaps,sqcup:sqcup,sqcups:sqcups,sqsub:sqsub,sqsube:sqsube,sqsubset:sqsubset,sqsubseteq:sqsubseteq,sqsup:sqsup,sqsupe:sqsupe,sqsupset:sqsupset,sqsupseteq:sqsupseteq,squ:squ,square:square,squarf:squarf,squf:squf,srarr:srarr,sscr:sscr,ssetmn:ssetmn,ssmile:ssmile,sstarf:sstarf,star:star,starf:starf,straightepsilon:straightepsilon,straightphi:straightphi,strns:strns,sub:sub,subE:subE,subdot:subdot,sube:sube,subedot:subedot,submult:submult,subnE:subnE,subne:subne,subplus:subplus,subrarr:subrarr,subset:subset,subseteq:subseteq,subseteqq:subseteqq,subsetneq:subsetneq,subsetneqq:subsetneqq,subsim:subsim,subsub:subsub,subsup:subsup,succ:succ,succapprox:succapprox,succcurlyeq:succcurlyeq,succeq:succeq,succnapprox:succnapprox,succneqq:succneqq,succnsim:succnsim,succsim:succsim,sum:sum,sung:sung,sup:sup,sup1:sup1,sup2:sup2,sup3:sup3,supE:supE,supdot:supdot,supdsub:supdsub,supe:supe,supedot:supedot,suphsol:suphsol,suphsub:suphsub,suplarr:suplarr,supmult:supmult,supnE:supnE,supne:supne,supplus:supplus,supset:supset,supseteq:supseteq,supseteqq:supseteqq,supsetneq:supsetneq,supsetneqq:supsetneqq,supsim:supsim,supsub:supsub,supsup:supsup,swArr:swArr,swarhk:swarhk,swarr:swarr,swarrow:swarrow,swnwar:swnwar,szli:szli,szlig:szlig,target:target,tau:tau,tbrk:tbrk,tcaron:tcaron,tcedil:tcedil,tcy:tcy,tdot:tdot,telrec:telrec,tfr:tfr,there4:there4,therefore:therefore,theta:theta,thetasym:thetasym,thetav:thetav,thickapprox:thickapprox,thicksim:thicksim,thinsp:thinsp,thkap:thkap,thksim:thksim,thor:thor,thorn:thorn,tilde:tilde,time:time,times:times,timesb:timesb,timesbar:timesbar,timesd:timesd,tint:tint,toea:toea,top:top,topbot:topbot,topcir:topcir,topf:topf,topfork:topfork,tosa:tosa,tprime:tprime,trade:trade,triangle:triangle,triangledown:triangledown,triangleleft:triangleleft,trianglelefteq:trianglelefteq,triangleq:triangleq,triangleright:triangleright,trianglerighteq:trianglerighteq,tridot:tridot,trie:trie,triminus:triminus,triplus:triplus,trisb:trisb,tritime:tritime,trpezium:trpezium,tscr:tscr,tscy:tscy,tshcy:tshcy,tstrok:tstrok,twixt:twixt,twoheadleftarrow:twoheadleftarrow,twoheadrightarrow:twoheadrightarrow,uArr:uArr,uHar:uHar,uacut:uacut,uacute:uacute,uarr:uarr,ubrcy:ubrcy,ubreve:ubreve,ucir:ucir,ucirc:ucirc,ucy:ucy,udarr:udarr,udblac:udblac,udhar:udhar,ufisht:ufisht,ufr:ufr,ugrav:ugrav,ugrave:ugrave,uharl:uharl,uharr:uharr,uhblk:uhblk,ulcorn:ulcorn,ulcorner:ulcorner,ulcrop:ulcrop,ultri:ultri,umacr:umacr,um:um,uml:uml,uogon:uogon,uopf:uopf,uparrow:uparrow,updownarrow:updownarrow,upharpoonleft:upharpoonleft,upharpoonright:upharpoonright,uplus:uplus,upsi:upsi,upsih:upsih,upsilon:upsilon,upuparrows:upuparrows,urcorn:urcorn,urcorner:urcorner,urcrop:urcrop,uring:uring,urtri:urtri,uscr:uscr,utdot:utdot,utilde:utilde,utri:utri,utrif:utrif,uuarr:uuarr,uum:uum,uuml:uuml,uwangle:uwangle,vArr:vArr,vBar:vBar,vBarv:vBarv,vDash:vDash,vangrt:vangrt,varepsilon:varepsilon,varkappa:varkappa,varnothing:varnothing,varphi:varphi,varpi:varpi,varpropto:varpropto,varr:varr,varrho:varrho,varsigma:varsigma,varsubsetneq:varsubsetneq,varsubsetneqq:varsubsetneqq,varsupsetneq:varsupsetneq,varsupsetneqq:varsupsetneqq,vartheta:vartheta,vartriangleleft:vartriangleleft,vartriangleright:vartriangleright,vcy:vcy,vdash:vdash,vee:vee,veebar:veebar,veeeq:veeeq,vellip:vellip,verbar:verbar,vert:vert,vfr:vfr,vltri:vltri,vnsub:vnsub,vnsup:vnsup,vopf:vopf,vprop:vprop,vrtri:vrtri,vscr:vscr,vsubnE:vsubnE,vsubne:vsubne,vsupnE:vsupnE,vsupne:vsupne,vzigzag:vzigzag,wcirc:wcirc,wedbar:wedbar,wedge:wedge,wedgeq:wedgeq,weierp:weierp,wfr:wfr,wopf:wopf,wp:wp,wr:wr,wreath:wreath,wscr:wscr,xcap:xcap,xcirc:xcirc,xcup:xcup,xdtri:xdtri,xfr:xfr,xhArr:xhArr,xharr:xharr,xi:xi,xlArr:xlArr,xlarr:xlarr,xmap:xmap,xnis:xnis,xodot:xodot,xopf:xopf,xoplus:xoplus,xotime:xotime,xrArr:xrArr,xrarr:xrarr,xscr:xscr,xsqcup:xsqcup,xuplus:xuplus,xutri:xutri,xvee:xvee,xwedge:xwedge,yacut:yacut,yacute:yacute,yacy:yacy,ycirc:ycirc,ycy:ycy,ye:ye,yen:yen,yfr:yfr,yicy:yicy,yopf:yopf,yscr:yscr,yucy:yucy,yum:yum,yuml:yuml,zacute:zacute,zcaron:zcaron,zcy:zcy,zdot:zdot,zeetrf:zeetrf,zeta:zeta,zfr:zfr,zhcy:zhcy,zigrarr:zigrarr,zopf:zopf,zscr:zscr,zwj:zwj,zwnj:zwnj,default:index$14}); var AElig$1="Æ"; var AMP$1="&"; var Aacute$1="Á"; var Acirc$1="Â"; var Agrave$1="À"; var Aring$1="Å"; var Atilde$1="Ã"; var Auml$1="Ä"; var COPY$1="©"; var Ccedil$1="Ç"; var ETH$1="Ð"; var Eacute$1="É"; var Ecirc$1="Ê"; var Egrave$1="È"; var Euml$1="Ë"; var GT$1=">"; var Iacute$1="Í"; var Icirc$1="Î"; var Igrave$1="Ì"; var Iuml$1="Ï"; var LT$1="<"; var Ntilde$1="Ñ"; var Oacute$1="Ó"; var Ocirc$1="Ô"; var Ograve$1="Ò"; var Oslash$1="Ø"; var Otilde$1="Õ"; var Ouml$1="Ö"; var QUOT$1='"'; var REG$1="®"; var THORN$1="Þ"; var Uacute$1="Ú"; var Ucirc$1="Û"; var Ugrave$1="Ù"; var Uuml$1="Ü"; var Yacute$1="Ý"; var aacute$1="á"; var acirc$1="â"; var acute$1="´"; var aelig$1="æ"; var agrave$1="à"; var amp$1="&"; var aring$1="å"; var atilde$1="ã"; var auml$1="ä"; var brvbar$1="¦"; var ccedil$1="ç"; var cedil$1="¸"; var cent$1="¢"; var copy$1="©"; var curren$1="¤"; var deg$1="°"; var divide$1="÷"; var eacute$1="é"; var ecirc$1="ê"; var egrave$1="è"; var eth$1="ð"; var euml$1="ë"; var frac12$1="½"; var frac14$1="¼"; var frac34$1="¾"; var gt$1=">"; var iacute$1="í"; var icirc$1="î"; var iexcl$1="¡"; var igrave$1="ì"; var iquest$1="¿"; var iuml$1="ï"; var laquo$1="«"; var lt$1="<"; var macr$1="¯"; var micro$1="µ"; var middot$1="·"; var nbsp$1=" "; var not$1="¬"; var ntilde$1="ñ"; var oacute$1="ó"; var ocirc$1="ô"; var ograve$1="ò"; var ordf$1="ª"; var ordm$1="º"; var oslash$1="ø"; var otilde$1="õ"; var ouml$1="ö"; var para$1="¶"; var plusmn$1="±"; var pound$1="£"; var quot$1='"'; var raquo$1="»"; var reg$1="®"; var sect$1="§"; var shy$1="­"; var sup1$1="¹"; var sup2$1="²"; var sup3$1="³"; var szlig$1="ß"; var thorn$1="þ"; var times$1="×"; var uacute$1="ú"; var ucirc$1="û"; var ugrave$1="ù"; var uml$1="¨"; var uuml$1="ü"; var yacute$1="ý"; var yen$1="¥"; var yuml$1="ÿ"; var index$16={AElig:AElig$1,AMP:AMP$1,Aacute:Aacute$1,Acirc:Acirc$1,Agrave:Agrave$1,Aring:Aring$1,Atilde:Atilde$1,Auml:Auml$1,COPY:COPY$1,Ccedil:Ccedil$1,ETH:ETH$1,Eacute:Eacute$1,Ecirc:Ecirc$1,Egrave:Egrave$1,Euml:Euml$1,GT:GT$1,Iacute:Iacute$1,Icirc:Icirc$1,Igrave:Igrave$1,Iuml:Iuml$1,LT:LT$1,Ntilde:Ntilde$1,Oacute:Oacute$1,Ocirc:Ocirc$1,Ograve:Ograve$1,Oslash:Oslash$1,Otilde:Otilde$1,Ouml:Ouml$1,QUOT:QUOT$1,REG:REG$1,THORN:THORN$1,Uacute:Uacute$1,Ucirc:Ucirc$1,Ugrave:Ugrave$1,Uuml:Uuml$1,Yacute:Yacute$1,aacute:aacute$1,acirc:acirc$1,acute:acute$1,aelig:aelig$1,agrave:agrave$1,amp:amp$1,aring:aring$1,atilde:atilde$1,auml:auml$1,brvbar:brvbar$1,ccedil:ccedil$1,cedil:cedil$1,cent:cent$1,copy:copy$1,curren:curren$1,deg:deg$1,divide:divide$1,eacute:eacute$1,ecirc:ecirc$1,egrave:egrave$1,eth:eth$1,euml:euml$1,frac12:frac12$1,frac14:frac14$1,frac34:frac34$1,gt:gt$1,iacute:iacute$1,icirc:icirc$1,iexcl:iexcl$1,igrave:igrave$1,iquest:iquest$1,iuml:iuml$1,laquo:laquo$1,lt:lt$1,macr:macr$1,micro:micro$1,middot:middot$1,nbsp:nbsp$1,not:not$1,ntilde:ntilde$1,oacute:oacute$1,ocirc:ocirc$1,ograve:ograve$1,ordf:ordf$1,ordm:ordm$1,oslash:oslash$1,otilde:otilde$1,ouml:ouml$1,para:para$1,plusmn:plusmn$1,pound:pound$1,quot:quot$1,raquo:raquo$1,reg:reg$1,sect:sect$1,shy:shy$1,sup1:sup1$1,sup2:sup2$1,sup3:sup3$1,szlig:szlig$1,thorn:thorn$1,times:times$1,uacute:uacute$1,ucirc:ucirc$1,ugrave:ugrave$1,uml:uml$1,uuml:uuml$1,yacute:yacute$1,yen:yen$1,yuml:yuml$1}; var index$17=Object.freeze({AElig:AElig$1,AMP:AMP$1,Aacute:Aacute$1,Acirc:Acirc$1,Agrave:Agrave$1,Aring:Aring$1,Atilde:Atilde$1,Auml:Auml$1,COPY:COPY$1,Ccedil:Ccedil$1,ETH:ETH$1,Eacute:Eacute$1,Ecirc:Ecirc$1,Egrave:Egrave$1,Euml:Euml$1,GT:GT$1,Iacute:Iacute$1,Icirc:Icirc$1,Igrave:Igrave$1,Iuml:Iuml$1,LT:LT$1,Ntilde:Ntilde$1,Oacute:Oacute$1,Ocirc:Ocirc$1,Ograve:Ograve$1,Oslash:Oslash$1,Otilde:Otilde$1,Ouml:Ouml$1,QUOT:QUOT$1,REG:REG$1,THORN:THORN$1,Uacute:Uacute$1,Ucirc:Ucirc$1,Ugrave:Ugrave$1,Uuml:Uuml$1,Yacute:Yacute$1,aacute:aacute$1,acirc:acirc$1,acute:acute$1,aelig:aelig$1,agrave:agrave$1,amp:amp$1,aring:aring$1,atilde:atilde$1,auml:auml$1,brvbar:brvbar$1,ccedil:ccedil$1,cedil:cedil$1,cent:cent$1,copy:copy$1,curren:curren$1,deg:deg$1,divide:divide$1,eacute:eacute$1,ecirc:ecirc$1,egrave:egrave$1,eth:eth$1,euml:euml$1,frac12:frac12$1,frac14:frac14$1,frac34:frac34$1,gt:gt$1,iacute:iacute$1,icirc:icirc$1,iexcl:iexcl$1,igrave:igrave$1,iquest:iquest$1,iuml:iuml$1,laquo:laquo$1,lt:lt$1,macr:macr$1,micro:micro$1,middot:middot$1,nbsp:nbsp$1,not:not$1,ntilde:ntilde$1,oacute:oacute$1,ocirc:ocirc$1,ograve:ograve$1,ordf:ordf$1,ordm:ordm$1,oslash:oslash$1,otilde:otilde$1,ouml:ouml$1,para:para$1,plusmn:plusmn$1,pound:pound$1,quot:quot$1,raquo:raquo$1,reg:reg$1,sect:sect$1,shy:shy$1,sup1:sup1$1,sup2:sup2$1,sup3:sup3$1,szlig:szlig$1,thorn:thorn$1,times:times$1,uacute:uacute$1,ucirc:ucirc$1,ugrave:ugrave$1,uml:uml$1,uuml:uuml$1,yacute:yacute$1,yen:yen$1,yuml:yuml$1,default:index$16}); var index$18={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"}; var index$19=Object.freeze({default:index$18}); var index$20=decimal$1; var index$22=hexadecimal$1; var index$26=alphabetical$1; var alphabetical=index$26; var decimal$2=index$20; var index$24=alphanumerical$1; var require$$0$5=index$15&&index$14||index$15; var require$$1$4=index$17&&index$16||index$17; var require$$2$1=index$19&&index$18||index$19; var characterEntities=require$$0$5; var legacy=require$$1$4; var invalid=require$$2$1; var decimal=index$20; var hexadecimal=index$22; var alphanumerical=index$24; var index$12=wrapper; var own$1={}.hasOwnProperty; var fromCharCode=String.fromCharCode; var noop=Function.prototype; var REPLACEMENT="�"; var FORM_FEED="\f"; var AMPERSAND="&"; var OCTOTHORP="#"; var SEMICOLON=";"; var NEWLINE="\n"; var X_LOWER="x"; var X_UPPER="X"; var SPACE=" "; var LESS_THAN="<"; var EQUAL="="; var EMPTY=""; var TAB="\t"; var defaults={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0}; var NAMED="named"; var HEXADECIMAL="hexadecimal"; var DECIMAL="decimal"; var BASE={};BASE[HEXADECIMAL]=16,BASE[DECIMAL]=10;var TESTS={};TESTS[NAMED]=alphanumerical,TESTS[DECIMAL]=decimal,TESTS[HEXADECIMAL]=hexadecimal;var NAMED_NOT_TERMINATED=1; var NUMERIC_NOT_TERMINATED=2; var NAMED_EMPTY=3; var NUMERIC_EMPTY=4; var NAMED_UNKNOWN=5; var NUMERIC_DISALLOWED=6; var NUMERIC_PROHIBITED=7; var NUMERIC_REFERENCE="Numeric character references"; var NAMED_REFERENCE="Named character references"; var TERMINATED=" must be terminated by a semicolon"; var VOID=" cannot be empty"; var MESSAGES={};MESSAGES[NAMED_NOT_TERMINATED]=NAMED_REFERENCE+TERMINATED,MESSAGES[NUMERIC_NOT_TERMINATED]=NUMERIC_REFERENCE+TERMINATED,MESSAGES[NAMED_EMPTY]=NAMED_REFERENCE+VOID,MESSAGES[NUMERIC_EMPTY]=NUMERIC_REFERENCE+VOID,MESSAGES[NAMED_UNKNOWN]=NAMED_REFERENCE+" must be known",MESSAGES[NUMERIC_DISALLOWED]=NUMERIC_REFERENCE+" cannot be disallowed",MESSAGES[NUMERIC_PROHIBITED]=NUMERIC_REFERENCE+" cannot be outside the permissible Unicode range";var entities=index$12; var decode$1=factory$3; var tokenizer$1=factory$4; var MERGEABLE_NODES={text:mergeText,blockquote:mergeBlockquote}; var index$28=escapes$1; var defaults$2=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"]; var gfm=defaults$2.concat(["~","|"]); var commonmark=gfm.concat(["\n",'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);escapes$1.default=defaults$2,escapes$1.gfm=gfm,escapes$1.commonmark=commonmark;var blockElements=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]; var blockElements$1=Object.freeze({default:blockElements}); var require$$0$7=blockElements$1&&blockElements||blockElements$1; var defaults$3={position:!0,gfm:!0,commonmark:!1,footnotes:!1,pedantic:!1,blocks:require$$0$7}; var xtend$4=immutable; var escapes=index$28; var defaults$1=defaults$3; var setOptions_1=setOptions; var index$32=visit$1; var visit=index$32; var index$30=removePosition$1; var xtend$5=immutable; var removePosition=index$30; var parse_1=parse$6; var C_NEWLINE="\n"; var EXPRESSION_LINE_BREAKS=/\r\n|\r/g; var index$34=whitespace$1; var fromCode=String.fromCharCode; var re$1=/\s/; var whitespace=index$34; var newline_1=newline; var res=""; var cache; var index$36=repeat$1; var index$38=trimTrailingLines; var line="\n"; var repeat=index$36; var trim=index$38; var codeIndented=indentedCode; var C_NEWLINE$1="\n"; var C_TAB="\t"; var C_SPACE=" "; var CODE_INDENT_COUNT=4; var CODE_INDENT=repeat(C_SPACE,CODE_INDENT_COUNT); var trim$1=index$38; var codeFenced=fencedCode; var C_NEWLINE$2="\n"; var C_TAB$1="\t"; var C_SPACE$1=" "; var C_TILDE="~"; var C_TICK="`"; var MIN_FENCE_COUNT=3; var CODE_INDENT_COUNT$1=4; var index$40=createCommonjsModule(function(r,e){(e=r.exports=function(r){return r.replace(/^\s*|\s*$/g,"")}).left=function(r){return r.replace(/^\s*/,"")},e.right=function(r){return r.replace(/\s*$/,"")};}); var interrupt_1=interrupt$1; var trim$2=index$40; var interrupt=interrupt_1; var blockquote_1=blockquote; var C_NEWLINE$3="\n"; var C_TAB$2="\t"; var C_SPACE$2=" "; var C_GT=">"; var headingAtx=atxHeading; var C_NEWLINE$4="\n"; var C_TAB$3="\t"; var C_SPACE$3=" "; var C_HASH="#"; var MAX_ATX_COUNT=6; var thematicBreak_1=thematicBreak; var C_NEWLINE$5="\n"; var C_TAB$4="\t"; var C_SPACE$4=" "; var C_ASTERISK="*"; var C_UNDERSCORE="_"; var C_DASH="-"; var THEMATIC_BREAK_MARKER_COUNT=3; var getIndentation=indentation; var characters={" ":1,"\t":4}; var trim$4=index$40; var repeat$3=index$36; var getIndent$1=getIndentation; var removeIndentation=indentation$1; var C_SPACE$6=" "; var C_NEWLINE$7="\n"; var C_TAB$6="\t"; var trim$3=index$40; var repeat$2=index$36; var decimal$3=index$20; var getIndent=getIndentation; var removeIndent=removeIndentation; var interrupt$2=interrupt_1; var list_1=list; var C_ASTERISK$1="*"; var C_UNDERSCORE$1="_"; var C_PLUS="+"; var C_DASH$1="-"; var C_DOT="."; var C_SPACE$5=" "; var C_NEWLINE$6="\n"; var C_TAB$5="\t"; var C_PAREN_CLOSE=")"; var C_X_LOWER="x"; var TAB_SIZE=4; var EXPRESSION_LOOSE_LIST_ITEM=/\n\n(?!\s*$)/; var EXPRESSION_TASK_ITEM=/^\[([ \t]|x|X)][ \t]/; var EXPRESSION_BULLET=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/; var EXPRESSION_PEDANTIC_BULLET=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/; var EXPRESSION_INITIAL_INDENT=/^( {1,4}|\t)?/gm; var LIST_UNORDERED_MARKERS={};LIST_UNORDERED_MARKERS[C_ASTERISK$1]=!0,LIST_UNORDERED_MARKERS[C_PLUS]=!0,LIST_UNORDERED_MARKERS[C_DASH$1]=!0;var LIST_ORDERED_MARKERS={};LIST_ORDERED_MARKERS[C_DOT]=!0;var LIST_ORDERED_COMMONMARK_MARKERS={};LIST_ORDERED_COMMONMARK_MARKERS[C_DOT]=!0,LIST_ORDERED_COMMONMARK_MARKERS[C_PAREN_CLOSE]=!0;var headingSetext=setextHeading; var C_NEWLINE$8="\n"; var C_TAB$7="\t"; var C_SPACE$7=" "; var C_EQUALS="="; var C_DASH$2="-"; var MAX_HEADING_INDENT=3; var SETEXT_MARKERS={};SETEXT_MARKERS[C_EQUALS]=1,SETEXT_MARKERS[C_DASH$2]=2;var attributeName="[a-zA-Z_:][a-zA-Z0-9:._-]*"; var unquoted="[^\"'=<>`\\u0000-\\u0020]+"; var singleQuoted="'[^']*'"; var doubleQuoted='"[^"]*"'; var attributeValue="(?:"+unquoted+"|"+singleQuoted+"|"+doubleQuoted+")"; var attribute="(?:\\s+"+attributeName+"(?:\\s*=\\s*"+attributeValue+")?)"; var openTag="<[A-Za-z][A-Za-z0-9\\-]*"+attribute+"*\\s*\\/?>"; var closeTag="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>"; var comment="\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e"; var processing="<[?].*?[?]>"; var declaration="]*>"; var cdata=""; var openCloseTag$1=new RegExp("^(?:"+openTag+"|"+closeTag+")"); var tag=new RegExp("^(?:"+openTag+"|"+closeTag+"|"+comment+"|"+processing+"|"+declaration+"|"+cdata+")"); var html={openCloseTag:openCloseTag$1,tag:tag}; var openCloseTag=html.openCloseTag; var htmlBlock=blockHTML; var C_TAB$8="\t"; var C_SPACE$8=" "; var C_NEWLINE$9="\n"; var C_LT="<"; var index$42=collapse; var collapseWhiteSpace=index$42; var normalize_1=normalize$1; var whitespace$2=index$34; var normalize=normalize_1; var footnoteDefinition_1=footnoteDefinition;footnoteDefinition.notInList=!0,footnoteDefinition.notInBlock=!0;var C_BACKSLASH="\\"; var C_NEWLINE$10="\n"; var C_TAB$9="\t"; var C_SPACE$9=" "; var C_BRACKET_OPEN="["; var C_BRACKET_CLOSE="]"; var C_CARET="^"; var C_COLON=":"; var EXPRESSION_INITIAL_TAB=/^( {4}|\t)?/gm; var whitespace$3=index$34; var normalize$2=normalize_1; var definition_1=definition;definition.notInList=!0,definition.notInBlock=!0;var C_DOUBLE_QUOTE='"'; var C_SINGLE_QUOTE="'"; var C_BACKSLASH$1="\\"; var C_NEWLINE$11="\n"; var C_TAB$10="\t"; var C_SPACE$10=" "; var C_BRACKET_OPEN$1="["; var C_BRACKET_CLOSE$1="]"; var C_PAREN_OPEN="("; var C_PAREN_CLOSE$1=")"; var C_COLON$1=":"; var C_LT$1="<"; var C_GT$1=">";isEnclosedURLCharacter.delimiter=C_GT$1;var whitespace$4=index$34; var table_1=table; var C_BACKSLASH$2="\\"; var C_TICK$1="`"; var C_DASH$3="-"; var C_PIPE="|"; var C_COLON$2=":"; var C_SPACE$11=" "; var C_NEWLINE$12="\n"; var C_TAB$11="\t"; var MIN_TABLE_COLUMNS=1; var MIN_TABLE_ROWS=2; var TABLE_ALIGN_LEFT="left"; var TABLE_ALIGN_CENTER="center"; var TABLE_ALIGN_RIGHT="right"; var TABLE_ALIGN_NONE=null; var trim$5=index$40; var decimal$4=index$20; var trimTrailingLines$1=index$38; var interrupt$3=interrupt_1; var paragraph_1=paragraph; var C_NEWLINE$13="\n"; var C_TAB$12="\t"; var C_SPACE$12=" "; var TAB_SIZE$1=4; var _escape$2=locate$1; var locate=_escape$2; var _escape=escape;escape.locator=locate;var tag$1=locate$3; var whitespace$5=index$34; var decode$3=index$12; var locate$2=tag$1; var autoLink_1=autoLink;autoLink.locator=locate$2,autoLink.notInLink=!0;var C_LT$2="<"; var C_GT$2=">"; var C_AT_SIGN="@"; var C_SLASH="/"; var MAILTO="mailto:"; var MAILTO_LENGTH=MAILTO.length; var url$1=locate$5; var PROTOCOLS$1=["https://","http://","mailto:"]; var decode$4=index$12; var whitespace$6=index$34; var locate$4=url$1; var url_1=url;url.locator=locate$4,url.notInLink=!0;var C_BRACKET_OPEN$2="["; var C_BRACKET_CLOSE$2="]"; var C_PAREN_OPEN$1="("; var C_PAREN_CLOSE$2=")"; var C_LT$3="<"; var C_AT_SIGN$1="@"; var HTTP_PROTOCOL="http://"; var HTTPS_PROTOCOL="https://"; var MAILTO_PROTOCOL="mailto:"; var PROTOCOLS=[HTTP_PROTOCOL,HTTPS_PROTOCOL,MAILTO_PROTOCOL]; var PROTOCOLS_LENGTH=PROTOCOLS.length; var alphabetical$2=index$26; var locate$6=tag$1; var tag$3=html.tag; var htmlInline=inlineHTML;inlineHTML.locator=locate$6;var EXPRESSION_HTML_LINK_OPEN=/^/i; var link$1=locate$8; var whitespace$7=index$34; var locate$7=link$1; var link_1=link;link.locator=locate$7;var own$2={}.hasOwnProperty; var C_BACKSLASH$3="\\"; var C_BRACKET_OPEN$3="["; var C_BRACKET_CLOSE$3="]"; var C_PAREN_OPEN$2="("; var C_PAREN_CLOSE$3=")"; var C_LT$4="<"; var C_GT$3=">"; var C_TICK$2="`"; var C_DOUBLE_QUOTE$1='"'; var C_SINGLE_QUOTE$1="'"; var LINK_MARKERS={};LINK_MARKERS[C_DOUBLE_QUOTE$1]=C_DOUBLE_QUOTE$1,LINK_MARKERS[C_SINGLE_QUOTE$1]=C_SINGLE_QUOTE$1;var COMMONMARK_LINK_MARKERS={};COMMONMARK_LINK_MARKERS[C_DOUBLE_QUOTE$1]=C_DOUBLE_QUOTE$1,COMMONMARK_LINK_MARKERS[C_SINGLE_QUOTE$1]=C_SINGLE_QUOTE$1,COMMONMARK_LINK_MARKERS[C_PAREN_OPEN$2]=C_PAREN_CLOSE$3;var whitespace$8=index$34; var locate$9=link$1; var normalize$3=normalize_1; var reference_1=reference;reference.locator=locate$9;var T_LINK="link"; var T_IMAGE="image"; var T_FOOTNOTE="footnote"; var REFERENCE_TYPE_SHORTCUT="shortcut"; var REFERENCE_TYPE_COLLAPSED="collapsed"; var REFERENCE_TYPE_FULL="full"; var C_CARET$1="^"; var C_BACKSLASH$4="\\"; var C_BRACKET_OPEN$4="["; var C_BRACKET_CLOSE$4="]"; var strong$1=locate$11; var trim$6=index$40; var whitespace$9=index$34; var locate$10=strong$1; var strong_1=strong;strong.locator=locate$10;var C_ASTERISK$2="*"; var C_UNDERSCORE$2="_"; var index$44=wordCharacter; var fromCode$1=String.fromCharCode; var re$2=/\w/; var emphasis$1=locate$13; var trim$7=index$40; var word=index$44; var whitespace$10=index$34; var locate$12=emphasis$1; var emphasis_1=emphasis;emphasis.locator=locate$12;var C_ASTERISK$3="*"; var C_UNDERSCORE$3="_"; var _delete$2=locate$15; var whitespace$11=index$34; var locate$14=_delete$2; var _delete=strikethrough;strikethrough.locator=locate$14;var C_TILDE$1="~"; var DOUBLE="~~"; var codeInline$2=locate$17; var whitespace$12=index$34; var locate$16=codeInline$2; var codeInline=inlineCode;inlineCode.locator=locate$16;var C_TICK$3="`"; var _break$2=locate$19; var locate$18=_break$2; var _break=hardBreak;hardBreak.locator=locate$18;var MIN_BREAK_LENGTH=2; var text_1=text; var xtend$3=immutable; var toggle=index$8; var vfileLocation=index$10; var unescape=_unescape; var decode=decode$1; var tokenizer=tokenizer$1; var parser=Parser$1; var proto=Parser$1.prototype;proto.setOptions=setOptions_1,proto.parse=parse_1,proto.options=defaults$3,proto.exitStart=toggle("atStart",!0),proto.enterList=toggle("inList",!1),proto.enterLink=toggle("inLink",!1),proto.enterBlock=toggle("inBlock",!1),proto.interruptParagraph=[["thematicBreak"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],proto.interruptList=[["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],proto.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],proto.blockTokenizers={newline:newline_1,indentedCode:codeIndented,fencedCode:codeFenced,blockquote:blockquote_1,atxHeading:headingAtx,thematicBreak:thematicBreak_1,list:list_1,setextHeading:headingSetext,html:htmlBlock,footnote:footnoteDefinition_1,definition:definition_1,table:table_1,paragraph:paragraph_1},proto.inlineTokenizers={escape:_escape,autoLink:autoLink_1,url:url_1,html:htmlInline,link:link_1,reference:reference_1,strong:strong_1,emphasis:emphasis_1,deletion:_delete,code:codeInline,break:_break,text:text_1},proto.blockMethods=keys(proto.blockTokenizers),proto.inlineMethods=keys(proto.inlineTokenizers),proto.tokenizeBlock=tokenizer("block"),proto.tokenizeInline=tokenizer("inline"),proto.tokenizeFactory=tokenizer;var unherit=index$6; var xtend$1=immutable; var Parser=parser; var index$4=parse$4;parse$4.Parser=Parser;var hasOwn=Object.prototype.hasOwnProperty; var toStr=Object.prototype.toString; var isArray=function(r){return"function"==typeof Array.isArray?Array.isArray(r):"[object Array]"===toStr.call(r)}; var isPlainObject=function(r){if(!r||"[object Object]"!==toStr.call(r))return!1;var e=hasOwn.call(r,"constructor"),t=r.constructor&&r.constructor.prototype&&hasOwn.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!e&&!t)return!1;var a;for(a in r);return void 0===a||hasOwn.call(r,a)}; var index$48=function r(){var e,t,a,o,n,i,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l{const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");return new RegExp(r,"g")};const ansiRegex=index$71;var index$69=r=>"string"==typeof r?r.replace(ansiRegex(),""):r; var index$73=r=>!Number.isNaN(r)&&(r>=4352&&(r<=4447||9001===r||9002===r||11904<=r&&r<=12871&&12351!==r||12880<=r&&r<=19903||19968<=r&&r<=42182||43360<=r&&r<=43388||44032<=r&&r<=55203||63744<=r&&r<=64255||65040<=r&&r<=65049||65072<=r&&r<=65131||65281<=r&&r<=65376||65504<=r&&r<=65510||110592<=r&&r<=110593||127488<=r&&r<=127569||131072<=r&&r<=262141));const stripAnsi=index$69; const isFullwidthCodePoint=index$73;var index$67=r=>{if("string"!=typeof r||0===r.length)return 0;r=stripAnsi(r);let e=0;for(let t=0;t=127&&a<=159||(a>=768&&a<=879||(a>65535&&t++,e+=isFullwidthCodePoint(a)?2:1));}return e}; var index$75=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74)\uDB40\uDC7F|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]\uFE0F|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83D\uDC69\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83D\uDC69\u200D[\u2695\u2696\u2708])\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC68(?:\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F/g}; var matchOperatorsRe=/[|\\{}()[\]^$+*?.]/g; var index$77=function(r){if("string"!=typeof r)throw new TypeError("Expected a string");return r.replace(matchOperatorsRe,"\\$&")}; var punctuation_ranges=[[12288,12351],[44032,55215],[65040,65055],[65072,65135],[65280,65376],[65504,65519]]; var character_ranges=[[4352,4607],[11904,12255],[12352,12687],[12800,19903],[19968,40959],[43360,43391],[63744,64255]];!function(r){r.punctuations=function(){return create_regex(punctuation_ranges)},r.characters=function(){return create_regex(character_ranges)};}(get_regex||(get_regex={}));var index$79=get_regex;const stringWidth=index$67; const emojiRegex=index$75(); const escapeStringRegexp=index$77; const getCjkRegex=index$79; const cjkRegex=getCjkRegex(); const cjkPunctuationRegex=getCjkRegex.punctuations(); const skipWhitespace=skip(/\s/); const skipSpaces=skip(" \t"); const skipToLineEnd=skip(",; \t"); const skipEverythingButNewLine=skip(/[^\r\n]/); const PRECEDENCE={};[["|>"],["||","??"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((r,e)=>{r.forEach(r=>{PRECEDENCE[r]=e;});});const equalityOperators={"==":!0,"!=":!0,"===":!0,"!==":!0}; const multiplicativeOperators={"*":!0,"/":!0,"%":!0}; const bitshiftOperators={">>":!0,">>>":!0,"<<":!0};var util$2={getStringWidth:getStringWidth,splitText:splitText$1,mapDoc:mapDoc,getMaxContinuousCount:getMaxContinuousCount,getPrecedence:getPrecedence,shouldFlatten:shouldFlatten,isBitwiseOperator:isBitwiseOperator,isExportDeclaration:isExportDeclaration,getParentExportDeclaration:getParentExportDeclaration,getPenultimate:getPenultimate,getLast:getLast,getNextNonSpaceNonCommentCharacterIndex:getNextNonSpaceNonCommentCharacterIndex,getNextNonSpaceNonCommentCharacter:getNextNonSpaceNonCommentCharacter,skipWhitespace:skipWhitespace,skipSpaces:skipSpaces,skipNewline:skipNewline,isNextLineEmptyAfterIndex:isNextLineEmptyAfterIndex,isNextLineEmpty:isNextLineEmpty,isPreviousLineEmpty:isPreviousLineEmpty,hasNewline:hasNewline,hasNewlineInRange:hasNewlineInRange,hasSpaces:hasSpaces,locStart:locStart,locEnd:locEnd,setLocStart:setLocStart,setLocEnd:setLocEnd,startsWithNoLookaheadToken:startsWithNoLookaheadToken,hasBlockComments:hasBlockComments,isBlockComment:isBlockComment,hasClosureCompilerTypeCastComment:hasClosureCompilerTypeCastComment,getAlignmentSize:getAlignmentSize,getIndentSize:getIndentSize,printString:printString,printNumber:printNumber};const remarkFrontmatter=index; const remarkParse=index$4; const unified=index$46; const util$1$1=util$2;var parserMarkdown=parse;var parserMarkdown_1=parserMarkdown; - -return parserMarkdown_1; - -}(util,path)); diff --git a/website/static/lib/parser-parse5.js b/website/static/lib/parser-parse5.js deleted file mode 100644 index a0c3c29d..00000000 --- a/website/static/lib/parser-parse5.js +++ /dev/null @@ -1,9 +0,0 @@ -var parse5 = (function (util,stream) { -util = 'default' in util ? util['default'] : util; -stream = 'default' in stream ? stream['default'] : stream; - -function _interopDefault$1(e){return e&&"object"==typeof e&&"default"in e?e.default:e}function createCommonjsModule(e,t){return t={exports:{}},e(t,t.exports),t.exports}function enquoteDoctypeId(e){var t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function hasPrefix(e,t){for(var n=0;n({type:"attribute",key:t,value:e[t]}))}var require$$1=_interopDefault$1(require$$0); var require$$0=_interopDefault$1(require$$1); var REPLACEMENT_CHARACTER="�"; var CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533}; var CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],CDATA_END_STRING:[93,93,62],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]}; var unicode={REPLACEMENT_CHARACTER:REPLACEMENT_CHARACTER,CODE_POINTS:CODE_POINTS,CODE_POINT_SEQUENCES:CODE_POINT_SEQUENCES}; var preprocessor=createCommonjsModule(function(e){function t(e,t){return e>=55296&&e<=56319&&t>=56320&&t<=57343}function n(e,t){return 1024*(e-55296)+9216+t}var r=unicode.CODE_POINTS,i=e.exports=function(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536;};i.prototype.dropParsedChunk=function(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[]);},i.prototype._addGap=function(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos;},i.prototype._processHighRangeCodePoint=function(e){if(this.pos!==this.lastCharPos){var i=this.html.charCodeAt(this.pos+1);t(e,i)&&(this.pos++,e=n(e,i),this._addGap());}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,r.EOF;return e},i.prototype.write=function(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t;},i.prototype.insertHtmlAtCurrentPos=function(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1;},i.prototype.advance=function(){if(++this.pos>this.lastCharPos)return this.lastChunkWritten||(this.endOfChunkHit=!0),r.EOF;var e=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&e===r.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):e===r.CARRIAGE_RETURN?(this.skipNextNewLine=!0,r.LINE_FEED):(this.skipNextNewLine=!1,e>=55296?this._processHighRangeCodePoint(e):e)},i.prototype.retreat=function(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--;};}); var named_entity_data=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]); var index$4=createCommonjsModule(function(e){function t(e){return e===u.SPACE||e===u.LINE_FEED||e===u.TABULATION||e===u.FORM_FEED}function n(e){return e>=u.DIGIT_0&&e<=u.DIGIT_9}function r(e){return e>=u.LATIN_CAPITAL_A&&e<=u.LATIN_CAPITAL_Z}function i(e){return e>=u.LATIN_SMALL_A&&e<=u.LATIN_SMALL_Z}function o(e){return i(e)||r(e)}function s(e){return o(e)||n(e)}function T(e,t){return n(e)||t&&(e>=u.LATIN_CAPITAL_A&&e<=u.LATIN_CAPITAL_F||e>=u.LATIN_SMALL_A&&e<=u.LATIN_SMALL_F)}function a(e){return e>=55296&&e<=57343||e>1114111}function E(e){return e+32}function _(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function c(e){return String.fromCharCode(E(e))}function p(e,t){for(var n=l[++e],r=++e,i=r+n-1;r<=i;){var o=r+i>>>1,s=l[o];if(st))return l[o+n];i=o-1;}}return-1}var h=preprocessor,A=unicode,l=named_entity_data,u=A.CODE_POINTS,m=A.CODE_POINT_SEQUENCES,N={0:65533,13:13,128:8364,129:129,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,141:141,142:381,143:143,144:144,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,157:157,158:382,159:376},d="DATA_STATE",C=e.exports=function(){this.preprocessor=new h,this.tokenQueue=[],this.allowCDATA=!1,this.state=d,this.returnState="",this.tempBuff=[],this.additionalAllowedCp=void 0,this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null;};C.CHARACTER_TOKEN="CHARACTER_TOKEN",C.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",C.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",C.START_TAG_TOKEN="START_TAG_TOKEN",C.END_TAG_TOKEN="END_TAG_TOKEN",C.COMMENT_TOKEN="COMMENT_TOKEN",C.DOCTYPE_TOKEN="DOCTYPE_TOKEN",C.EOF_TOKEN="EOF_TOKEN",C.HIBERNATION_TOKEN="HIBERNATION_TOKEN",C.MODE={DATA:d,RCDATA:"RCDATA_STATE",RAWTEXT:"RAWTEXT_STATE",SCRIPT_DATA:"SCRIPT_DATA_STATE",PLAINTEXT:"PLAINTEXT_STATE"},C.getTokenAttr=function(e,t){for(var n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},C.prototype.getNextToken=function(){for(;!this.tokenQueue.length&&this.active;){this._hibernationSnapshot();var e=this._consume();this._ensureHibernation()||this[this.state](e);}return this.tokenQueue.shift()},C.prototype.write=function(e,t){this.active=!0,this.preprocessor.write(e,t);},C.prototype.insertHtmlAtCurrentPos=function(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e);},C.prototype._hibernationSnapshot=function(){this.consumedAfterSnapshot=0;},C.prototype._ensureHibernation=function(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:C.HIBERNATION_TOKEN}),!0}return!1},C.prototype._consume=function(){return this.consumedAfterSnapshot++,this.preprocessor.advance()},C.prototype._unconsume=function(){this.consumedAfterSnapshot--,this.preprocessor.retreat();},C.prototype._unconsumeSeveral=function(e){for(;e--;)this._unconsume();},C.prototype._reconsumeInState=function(e){this.state=e,this._unconsume();},C.prototype._consumeSubsequentIfMatch=function(e,t,n){for(var r=0,i=!0,o=e.length,s=0,T=t,a=void 0;s0&&(T=this._consume(),r++),T===u.EOF){i=!1;break}if(a=e[s],T!==a&&(n||T!==E(a))){i=!1;break}}return i||this._unconsumeSeveral(r),i},C.prototype._lookahead=function(){var e=this._consume();return this._unconsume(),e},C.prototype.isTempBufferEqualToScriptString=function(){if(this.tempBuff.length!==m.SCRIPT_STRING.length)return!1;for(var e=0;e-1;){var a=l[T],E=a<7;if(E&&1&a&&(t=2&a?[l[++T],l[++T]]:[l[++T]],n=i,r===u.SEMICOLON)){o=!0;break}if(r=this._consume(),i++,r===u.EOF)break;T=E?4&a?p(T,r):-1:r===a?++T:-1;}if(t){if(!o&&(this._unconsumeSeveral(i-n),e)){var _=this._lookahead();if(_===u.EQUALS_SIGN||s(_))return this._unconsumeSeveral(n),null}return t}return this._unconsumeSeveral(i),null},C.prototype._consumeCharacterReference=function(e,n){if(t(e)||e===u.GREATER_THAN_SIGN||e===u.AMPERSAND||e===this.additionalAllowedCp||e===u.EOF)return this._unconsume(),null;if(e===u.NUMBER_SIGN){var r=!1,i=this._lookahead();return i!==u.LATIN_SMALL_X&&i!==u.LATIN_CAPITAL_X||(this._consume(),r=!0),(i=this._lookahead())!==u.EOF&&T(i,r)?[this._consumeNumericEntity(r)]:(this._unconsumeSeveral(r?2:1),null)}return this._unconsume(),this._consumeNamedEntity(n)};var S=C.prototype;S[d]=function(e){this.preprocessor.dropParsedChunk(),e===u.AMPERSAND?this.state="CHARACTER_REFERENCE_IN_DATA_STATE":e===u.LESS_THAN_SIGN?this.state="TAG_OPEN_STATE":e===u.NULL?this._emitCodePoint(e):e===u.EOF?this._emitEOFToken():this._emitCodePoint(e);},S.CHARACTER_REFERENCE_IN_DATA_STATE=function(e){this.additionalAllowedCp=void 0;var t=this._consumeCharacterReference(e,!1);this._ensureHibernation()||(t?this._emitSeveralCodePoints(t):this._emitChar("&"),this.state=d);},S.RCDATA_STATE=function(e){this.preprocessor.dropParsedChunk(),e===u.AMPERSAND?this.state="CHARACTER_REFERENCE_IN_RCDATA_STATE":e===u.LESS_THAN_SIGN?this.state="RCDATA_LESS_THAN_SIGN_STATE":e===u.NULL?this._emitChar(A.REPLACEMENT_CHARACTER):e===u.EOF?this._emitEOFToken():this._emitCodePoint(e);},S.CHARACTER_REFERENCE_IN_RCDATA_STATE=function(e){this.additionalAllowedCp=void 0;var t=this._consumeCharacterReference(e,!1);this._ensureHibernation()||(t?this._emitSeveralCodePoints(t):this._emitChar("&"),this.state="RCDATA_STATE");},S.RAWTEXT_STATE=function(e){this.preprocessor.dropParsedChunk(),e===u.LESS_THAN_SIGN?this.state="RAWTEXT_LESS_THAN_SIGN_STATE":e===u.NULL?this._emitChar(A.REPLACEMENT_CHARACTER):e===u.EOF?this._emitEOFToken():this._emitCodePoint(e);},S.SCRIPT_DATA_STATE=function(e){this.preprocessor.dropParsedChunk(),e===u.LESS_THAN_SIGN?this.state="SCRIPT_DATA_LESS_THAN_SIGN_STATE":e===u.NULL?this._emitChar(A.REPLACEMENT_CHARACTER):e===u.EOF?this._emitEOFToken():this._emitCodePoint(e);},S.PLAINTEXT_STATE=function(e){this.preprocessor.dropParsedChunk(),e===u.NULL?this._emitChar(A.REPLACEMENT_CHARACTER):e===u.EOF?this._emitEOFToken():this._emitCodePoint(e);},S.TAG_OPEN_STATE=function(e){e===u.EXCLAMATION_MARK?this.state="MARKUP_DECLARATION_OPEN_STATE":e===u.SOLIDUS?this.state="END_TAG_OPEN_STATE":o(e)?(this._createStartTagToken(),this._reconsumeInState("TAG_NAME_STATE")):e===u.QUESTION_MARK?this._reconsumeInState("BOGUS_COMMENT_STATE"):(this._emitChar("<"),this._reconsumeInState(d));},S.END_TAG_OPEN_STATE=function(e){o(e)?(this._createEndTagToken(),this._reconsumeInState("TAG_NAME_STATE")):e===u.GREATER_THAN_SIGN?this.state=d:e===u.EOF?(this._reconsumeInState(d),this._emitChar("<"),this._emitChar("/")):this._reconsumeInState("BOGUS_COMMENT_STATE");},S.TAG_NAME_STATE=function(e){t(e)?this.state="BEFORE_ATTRIBUTE_NAME_STATE":e===u.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":e===u.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):r(e)?this.currentToken.tagName+=c(e):e===u.NULL?this.currentToken.tagName+=A.REPLACEMENT_CHARACTER:e===u.EOF?this._reconsumeInState(d):this.currentToken.tagName+=_(e);},S.RCDATA_LESS_THAN_SIGN_STATE=function(e){e===u.SOLIDUS?(this.tempBuff=[],this.state="RCDATA_END_TAG_OPEN_STATE"):(this._emitChar("<"),this._reconsumeInState("RCDATA_STATE"));},S.RCDATA_END_TAG_OPEN_STATE=function(e){o(e)?(this._createEndTagToken(),this._reconsumeInState("RCDATA_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("RCDATA_STATE"));},S.RCDATA_END_TAG_NAME_STATE=function(e){if(r(e))this.currentToken.tagName+=c(e),this.tempBuff.push(e);else if(i(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(t(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===u.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===u.GREATER_THAN_SIGN)return this.state=d,void this._emitCurrentToken()}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RCDATA_STATE");}},S.RAWTEXT_LESS_THAN_SIGN_STATE=function(e){e===u.SOLIDUS?(this.tempBuff=[],this.state="RAWTEXT_END_TAG_OPEN_STATE"):(this._emitChar("<"),this._reconsumeInState("RAWTEXT_STATE"));},S.RAWTEXT_END_TAG_OPEN_STATE=function(e){o(e)?(this._createEndTagToken(),this._reconsumeInState("RAWTEXT_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("RAWTEXT_STATE"));},S.RAWTEXT_END_TAG_NAME_STATE=function(e){if(r(e))this.currentToken.tagName+=c(e),this.tempBuff.push(e);else if(i(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(t(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===u.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===u.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=d)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RAWTEXT_STATE");}},S.SCRIPT_DATA_LESS_THAN_SIGN_STATE=function(e){e===u.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_END_TAG_OPEN_STATE"):e===u.EXCLAMATION_MARK?(this.state="SCRIPT_DATA_ESCAPE_START_STATE",this._emitChar("<"),this._emitChar("!")):(this._emitChar("<"),this._reconsumeInState("SCRIPT_DATA_STATE"));},S.SCRIPT_DATA_END_TAG_OPEN_STATE=function(e){o(e)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("SCRIPT_DATA_STATE"));},S.SCRIPT_DATA_END_TAG_NAME_STATE=function(e){if(r(e))this.currentToken.tagName+=c(e),this.tempBuff.push(e);else if(i(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(t(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===u.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===u.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=d)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_STATE");}},S.SCRIPT_DATA_ESCAPE_START_STATE=function(e){e===u.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPE_START_DASH_STATE",this._emitChar("-")):this._reconsumeInState("SCRIPT_DATA_STATE");},S.SCRIPT_DATA_ESCAPE_START_DASH_STATE=function(e){e===u.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChar("-")):this._reconsumeInState("SCRIPT_DATA_STATE");},S.SCRIPT_DATA_ESCAPED_STATE=function(e){e===u.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_STATE",this._emitChar("-")):e===u.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===u.NULL?this._emitChar(A.REPLACEMENT_CHARACTER):e===u.EOF?this._reconsumeInState(d):this._emitCodePoint(e);},S.SCRIPT_DATA_ESCAPED_DASH_STATE=function(e){e===u.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChar("-")):e===u.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===u.NULL?(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChar(A.REPLACEMENT_CHARACTER)):e===u.EOF?this._reconsumeInState(d):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e));},S.SCRIPT_DATA_ESCAPED_DASH_DASH_STATE=function(e){e===u.HYPHEN_MINUS?this._emitChar("-"):e===u.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===u.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChar(">")):e===u.NULL?(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChar(A.REPLACEMENT_CHARACTER)):e===u.EOF?this._reconsumeInState(d):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e));},S.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE=function(e){e===u.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE"):o(e)?(this.tempBuff=[],this._emitChar("<"),this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE")):(this._emitChar("<"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"));},S.SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE=function(e){o(e)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"));},S.SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE=function(e){if(r(e))this.currentToken.tagName+=c(e),this.tempBuff.push(e);else if(i(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(t(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===u.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===u.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=d)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE");}},S.SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE=function(e){t(e)||e===u.SOLIDUS||e===u.GREATER_THAN_SIGN?(this.state=this.isTempBufferEqualToScriptString()?"SCRIPT_DATA_DOUBLE_ESCAPED_STATE":"SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e)):r(e)?(this.tempBuff.push(E(e)),this._emitCodePoint(e)):i(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE");},S.SCRIPT_DATA_DOUBLE_ESCAPED_STATE=function(e){e===u.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",this._emitChar("-")):e===u.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChar("<")):e===u.NULL?this._emitChar(A.REPLACEMENT_CHARACTER):e===u.EOF?this._reconsumeInState(d):this._emitCodePoint(e);},S.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE=function(e){e===u.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",this._emitChar("-")):e===u.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChar("<")):e===u.NULL?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChar(A.REPLACEMENT_CHARACTER)):e===u.EOF?this._reconsumeInState(d):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e));},S.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE=function(e){e===u.HYPHEN_MINUS?this._emitChar("-"):e===u.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChar("<")):e===u.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChar(">")):e===u.NULL?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChar(A.REPLACEMENT_CHARACTER)):e===u.EOF?this._reconsumeInState(d):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e));},S.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE=function(e){e===u.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",this._emitChar("/")):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE");},S.SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE=function(e){t(e)||e===u.SOLIDUS||e===u.GREATER_THAN_SIGN?(this.state=this.isTempBufferEqualToScriptString()?"SCRIPT_DATA_ESCAPED_STATE":"SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e)):r(e)?(this.tempBuff.push(E(e)),this._emitCodePoint(e)):i(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE");},S.BEFORE_ATTRIBUTE_NAME_STATE=function(e){t(e)||(e===u.SOLIDUS||e===u.GREATER_THAN_SIGN||e===u.EOF?this._reconsumeInState("AFTER_ATTRIBUTE_NAME_STATE"):e===u.EQUALS_SIGN?(this._createAttr("="),this.state="ATTRIBUTE_NAME_STATE"):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")));},S.ATTRIBUTE_NAME_STATE=function(e){t(e)||e===u.SOLIDUS||e===u.GREATER_THAN_SIGN||e===u.EOF?(this._leaveAttrName("AFTER_ATTRIBUTE_NAME_STATE"),this._unconsume()):e===u.EQUALS_SIGN?this._leaveAttrName("BEFORE_ATTRIBUTE_VALUE_STATE"):r(e)?this.currentAttr.name+=c(e):e===u.QUOTATION_MARK||e===u.APOSTROPHE||e===u.LESS_THAN_SIGN?this.currentAttr.name+=_(e):e===u.NULL?this.currentAttr.name+=A.REPLACEMENT_CHARACTER:this.currentAttr.name+=_(e);},S.AFTER_ATTRIBUTE_NAME_STATE=function(e){t(e)||(e===u.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":e===u.EQUALS_SIGN?this.state="BEFORE_ATTRIBUTE_VALUE_STATE":e===u.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):e===u.EOF?this._reconsumeInState(d):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")));},S.BEFORE_ATTRIBUTE_VALUE_STATE=function(e){t(e)||(e===u.QUOTATION_MARK?this.state="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE":e===u.APOSTROPHE?this.state="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE":this._reconsumeInState("ATTRIBUTE_VALUE_UNQUOTED_STATE"));},S.ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE=function(e){e===u.QUOTATION_MARK?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":e===u.AMPERSAND?(this.additionalAllowedCp=u.QUOTATION_MARK,this.returnState=this.state,this.state="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE"):e===u.NULL?this.currentAttr.value+=A.REPLACEMENT_CHARACTER:e===u.EOF?this._reconsumeInState(d):this.currentAttr.value+=_(e);},S.ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE=function(e){e===u.APOSTROPHE?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":e===u.AMPERSAND?(this.additionalAllowedCp=u.APOSTROPHE,this.returnState=this.state,this.state="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE"):e===u.NULL?this.currentAttr.value+=A.REPLACEMENT_CHARACTER:e===u.EOF?this._reconsumeInState(d):this.currentAttr.value+=_(e);},S.ATTRIBUTE_VALUE_UNQUOTED_STATE=function(e){t(e)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):e===u.AMPERSAND?(this.additionalAllowedCp=u.GREATER_THAN_SIGN,this.returnState=this.state,this.state="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE"):e===u.GREATER_THAN_SIGN?(this._leaveAttrValue(d),this._emitCurrentToken()):e===u.NULL?this.currentAttr.value+=A.REPLACEMENT_CHARACTER:e===u.QUOTATION_MARK||e===u.APOSTROPHE||e===u.LESS_THAN_SIGN||e===u.EQUALS_SIGN||e===u.GRAVE_ACCENT?this.currentAttr.value+=_(e):e===u.EOF?this._reconsumeInState(d):this.currentAttr.value+=_(e);},S.CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE=function(e){var t=this._consumeCharacterReference(e,!0);if(!this._ensureHibernation()){if(t)for(var n=0;n=0;n--)if(this.items[n]===e){t=n;break}return t},s.prototype._isInTemplate=function(){return this.currentTagName===i.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===o.HTML},s.prototype._updateCurrentElement=function(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null;},s.prototype.push=function(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++;},s.prototype.pop=function(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement();},s.prototype.replace=function(e,t){var n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement();},s.prototype.insertAfter=function(e,t){var n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement();},s.prototype.popUntilTagNamePopped=function(e){for(;this.stackTop>-1;){var t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===o.HTML)break}},s.prototype.popUntilElementPopped=function(e){for(;this.stackTop>-1;){var t=this.current;if(this.pop(),t===e)break}},s.prototype.popUntilNumberedHeaderPopped=function(){for(;this.stackTop>-1;){var e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.H1||e===i.H2||e===i.H3||e===i.H4||e===i.H5||e===i.H6&&t===o.HTML)break}},s.prototype.popUntilTableCellPopped=function(){for(;this.stackTop>-1;){var e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.TD||e===i.TH&&t===o.HTML)break}},s.prototype.popAllUpToHtmlElement=function(){this.stackTop=0,this._updateCurrentElement();},s.prototype.clearBackToTableContext=function(){for(;this.currentTagName!==i.TABLE&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop();},s.prototype.clearBackToTableBodyContext=function(){for(;this.currentTagName!==i.TBODY&&this.currentTagName!==i.TFOOT&&this.currentTagName!==i.THEAD&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop();},s.prototype.clearBackToTableRowContext=function(){for(;this.currentTagName!==i.TR&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop();},s.prototype.remove=function(e){for(var t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}},s.prototype.tryPeekProperlyNestedBodyElement=function(){var e=this.items[1];return e&&this.treeAdapter.getTagName(e)===i.BODY?e:null},s.prototype.contains=function(e){return this._indexOf(e)>-1},s.prototype.getCommonAncestor=function(e){var t=this._indexOf(e);return--t>=0?this.items[t]:null},s.prototype.isRootHtmlElementCurrent=function(){return 0===this.stackTop&&this.currentTagName===i.HTML},s.prototype.hasInScope=function(e){for(var t=this.stackTop;t>=0;t--){var r=this.treeAdapter.getTagName(this.items[t]),i=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&i===o.HTML)return!0;if(n(r,i))return!1}return!0},s.prototype.hasNumberedHeaderInScope=function(){for(var e=this.stackTop;e>=0;e--){var t=this.treeAdapter.getTagName(this.items[e]),r=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===i.H1||t===i.H2||t===i.H3||t===i.H4||t===i.H5||t===i.H6)&&r===o.HTML)return!0;if(n(t,r))return!1}return!0},s.prototype.hasInListItemScope=function(e){for(var t=this.stackTop;t>=0;t--){var r=this.treeAdapter.getTagName(this.items[t]),s=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&s===o.HTML)return!0;if((r===i.UL||r===i.OL)&&s===o.HTML||n(r,s))return!1}return!0},s.prototype.hasInButtonScope=function(e){for(var t=this.stackTop;t>=0;t--){var r=this.treeAdapter.getTagName(this.items[t]),s=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&s===o.HTML)return!0;if(r===i.BUTTON&&s===o.HTML||n(r,s))return!1}return!0},s.prototype.hasInTableScope=function(e){for(var t=this.stackTop;t>=0;t--){var n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===o.HTML){if(n===e)return!0;if(n===i.TABLE||n===i.TEMPLATE||n===i.HTML)return!1}}return!0},s.prototype.hasTableBodyContextInTableScope=function(){for(var e=this.stackTop;e>=0;e--){var t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===o.HTML){if(t===i.TBODY||t===i.THEAD||t===i.TFOOT)return!0;if(t===i.TABLE||t===i.HTML)return!1}}return!0},s.prototype.hasInSelectScope=function(e){for(var t=this.stackTop;t>=0;t--){var n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===o.HTML){if(n===e)return!0;if(n!==i.OPTION&&n!==i.OPTGROUP)return!1}}return!0},s.prototype.generateImpliedEndTags=function(){for(;t(this.currentTagName);)this.pop();},s.prototype.generateImpliedEndTagsWithExclusion=function(e){for(;t(this.currentTagName)&&this.currentTagName!==e;)this.pop();};}); var formatting_element_list=createCommonjsModule(function(e){var t=e.exports=function(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null;};t.MARKER_ENTRY="MARKER_ENTRY",t.ELEMENT_ENTRY="ELEMENT_ENTRY",t.prototype._getNoahArkConditionCandidates=function(e){var n=[];if(this.length>=3)for(var r=this.treeAdapter.getAttrList(e).length,i=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e),s=this.length-1;s>=0;s--){var T=this.entries[s];if(T.type===t.MARKER_ENTRY)break;var a=T.element,E=this.treeAdapter.getAttrList(a);this.treeAdapter.getTagName(a)===i&&this.treeAdapter.getNamespaceURI(a)===o&&E.length===r&&n.push({idx:s,attrs:E});}return n.length<3?[]:n},t.prototype._ensureNoahArkCondition=function(e){var t=this._getNoahArkConditionCandidates(e),n=t.length;if(n){for(var r=this.treeAdapter.getAttrList(e),i=r.length,o=Object.create(null),s=0;s=2;s--)this.entries.splice(t[s].idx,1),this.length--;}},t.prototype.insertMarker=function(){this.entries.push({type:t.MARKER_ENTRY}),this.length++;},t.prototype.pushElement=function(e,n){this._ensureNoahArkCondition(e),this.entries.push({type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++;},t.prototype.insertElementAfterBookmark=function(e,n){for(var r=this.length-1;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++;},t.prototype.removeEntry=function(e){for(var t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}},t.prototype.clearToLastMarker=function(){for(;this.length;){var e=this.entries.pop();if(this.length--,e.type===t.MARKER_ENTRY)break}},t.prototype.getElementEntryInScopeWithTagName=function(e){for(var n=this.length-1;n>=0;n--){var r=this.entries[n];if(r.type===t.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===e)return r}return null},t.prototype.getElementEntry=function(e){for(var n=this.length-1;n>=0;n--){var r=this.entries[n];if(r.type===t.ELEMENT_ENTRY&&r.element===e)return r}return null};}); var mixin=createCommonjsModule(function(e){(e.exports=function(e){var t={},n=this._getOverriddenMethods(this,t);Object.keys(n).forEach(function(r){"function"==typeof n[r]&&(t[r]=e[r],e[r]=n[r]);});}).prototype._getOverriddenMethods=function(){throw new Error("Not implemented")};}); var preprocessor_mixin=createCommonjsModule(function(e){var t=mixin,n=require$$1.inherits,r=unicode.CODE_POINTS,i=e.exports=function(e){return e.__locTracker||(e.__locTracker=this,t.call(this,e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.col=-1,this.line=1),e.__locTracker};n(i,t),Object.defineProperty(i.prototype,"offset",{get:function(){return this.droppedBufferSize+this.preprocessor.pos}}),i.prototype._getOverriddenMethods=function(e,t){return{advance:function(){var n=t.advance.call(this);return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=e.offset),n===r.LINE_FEED&&(e.isEol=!0),e.col=e.offset-e.lineStartPos+1,n},retreat:function(){t.retreat.call(this),e.isEol=!1,e.col=e.offset-e.lineStartPos+1;},dropParsedChunk:function(){var n=this.pos;t.dropParsedChunk.call(this),e.droppedBufferSize+=n-this.pos;}}};}); var tokenizer_mixin=createCommonjsModule(function(e){var t=mixin,n=index$4,r=preprocessor_mixin,i=require$$1.inherits,o=e.exports=function(e){t.call(this,e),this.tokenizer=e,this.posTracker=new r(e.preprocessor),this.currentAttrLocation=null,this.currentTokenLocation=null;};i(o,t),o.prototype._getCurrentLocation=function(){return{line:this.posTracker.line,col:this.posTracker.col,startOffset:this.posTracker.offset,endOffset:-1}},o.prototype._attachCurrentAttrLocationInfo=function(){this.currentAttrLocation.endOffset=this.posTracker.offset;var e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation;},o.prototype._getOverriddenMethods=function(e,t){var r={_createStartTagToken:function(){t._createStartTagToken.call(this),this.currentToken.location=e.currentTokenLocation;},_createEndTagToken:function(){t._createEndTagToken.call(this),this.currentToken.location=e.currentTokenLocation;},_createCommentToken:function(){t._createCommentToken.call(this),this.currentToken.location=e.currentTokenLocation;},_createDoctypeToken:function(n){t._createDoctypeToken.call(this,n),this.currentToken.location=e.currentTokenLocation;},_createCharacterToken:function(n,r){t._createCharacterToken.call(this,n,r),this.currentCharacterToken.location=e.currentTokenLocation;},_createAttr:function(n){t._createAttr.call(this,n),e.currentAttrLocation=e._getCurrentLocation();},_leaveAttrName:function(n){t._leaveAttrName.call(this,n),e._attachCurrentAttrLocationInfo();},_leaveAttrValue:function(n){t._leaveAttrValue.call(this,n),e._attachCurrentAttrLocationInfo();},_emitCurrentToken:function(){this.currentCharacterToken&&(this.currentCharacterToken.location.endOffset=this.currentToken.location.startOffset),this.currentToken.location.endOffset=e.posTracker.offset+1,t._emitCurrentToken.call(this);},_emitCurrentCharacterToken:function(){this.currentCharacterToken&&-1===this.currentCharacterToken.location.endOffset&&(this.currentCharacterToken.location.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this);}};return Object.keys(n.MODE).forEach(function(i){var o=n.MODE[i];r[o]=function(n){e.currentTokenLocation=e._getCurrentLocation(),t[o].call(this,n);};}),r};}); var open_element_stack_mixin=createCommonjsModule(function(e){var t=mixin,n=require$$1.inherits,r=e.exports=function(e,n){t.call(this,e),this.onItemPop=n.onItemPop;};n(r,t),r.prototype._getOverriddenMethods=function(e,t){return{pop:function(){e.onItemPop(this.current),t.pop.call(this);},popAllUpToHtmlElement:function(){for(var n=this.stackTop;n>0;n--)e.onItemPop(this.items[n]);t.popAllUpToHtmlElement.call(this);},remove:function(n){e.onItemPop(this.current),t.remove.call(this,n);}}};}); var parser_mixin=createCommonjsModule(function(e){var t=mixin,n=index$4,r=tokenizer_mixin,i=preprocessor_mixin,o=open_element_stack_mixin,s=html,T=require$$1.inherits,a=s.TAG_NAMES,E=e.exports=function(e){t.call(this,e),this.parser=e,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null;};T(E,t),E.prototype._setStartLocation=function(e){this.lastStartTagToken?(e.__location=Object.create(this.lastStartTagToken.location),e.__location.startTag=this.lastStartTagToken.location):e.__location=null;},E.prototype._setEndLocation=function(e,t){var r=e.__location;if(r)if(t.location){var i=t.location,o=this.parser.treeAdapter.getTagName(e);t.type===n.END_TAG_TOKEN&&o===t.tagName?(r.endTag=Object.create(i),r.endOffset=i.endOffset):r.endOffset=i.startOffset;}else t.type===n.EOF_TOKEN&&(r.endOffset=this.posTracker.offset);},E.prototype._getOverriddenMethods=function(e,t){return{_bootstrap:function(n,s){t._bootstrap.call(this,n,s),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null,e.posTracker=new i(this.tokenizer.preprocessor),new r(this.tokenizer),new o(this.openElements,{onItemPop:function(t){e._setEndLocation(t,e.currentToken);}});},_runParsingLoop:function(n){t._runParsingLoop.call(this,n);for(var r=this.openElements.stackTop;r>=0;r--)e._setEndLocation(this.openElements.items[r],e.currentToken);},_processTokenInForeignContent:function(n){e.currentToken=n,t._processTokenInForeignContent.call(this,n);},_processToken:function(r){if(e.currentToken=r,t._processToken.call(this,r),r.type===n.END_TAG_TOKEN&&(r.tagName===a.HTML||r.tagName===a.BODY&&this.openElements.hasInScope(a.BODY)))for(var i=this.openElements.stackTop;i>=0;i--){var o=this.openElements.items[i];if(this.treeAdapter.getTagName(o)===r.tagName){e._setEndLocation(o,r);break}}},_setDocumentType:function(e){t._setDocumentType.call(this,e);for(var n=this.treeAdapter.getChildNodes(this.document),r=n.length,i=0;i-1)return DOCUMENT_MODE.QUIRKS;var r=null===n?QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES:QUIRKS_MODE_PUBLIC_ID_PREFIXES;if(hasPrefix(t,r))return DOCUMENT_MODE.QUIRKS;if(r=null===n?LIMITED_QUIRKS_PUBLIC_ID_PREFIXES:LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES,hasPrefix(t,r))return DOCUMENT_MODE.LIMITED_QUIRKS}return DOCUMENT_MODE.NO_QUIRKS}; var serializeContent=function(e,t,n){var r="!DOCTYPE ";return e&&(r+=e),null!==t?r+=" PUBLIC "+enquoteDoctypeId(t):null!==n&&(r+=" SYSTEM"),null!==n&&(r+=" "+enquoteDoctypeId(n)),r}; var doctype={getDocumentMode:getDocumentMode,serializeContent:serializeContent}; var foreign_content=createCommonjsModule(function(e,t){function n(e,t){return t===T.MATHML&&(e===s.MI||e===s.MO||e===s.MN||e===s.MS||e===s.MTEXT)}function r(e,t,n){if(t===T.MATHML&&e===s.ANNOTATION_XML)for(var r=0;r=0;r--){var i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i);}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function r(e,t,n){for(var r=t,o=e.openElements.getCommonAncestor(t),s=0,T=o;T!==n;s++,T=o){o=e.openElements.getCommonAncestor(T);var a=e.activeFormattingElements.getElementEntry(T),E=a&&s>=Ze;!a||E?(E&&e.activeFormattingElements.removeEntry(a),e.openElements.remove(T)):(T=i(e,a),r===t&&(e.activeFormattingElements.bookmark=a),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(T,r),r=T);}return r}function i(e,t){var n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function o(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{var r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===We.TEMPLATE&&i===ze.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n);}}function s(e,t,n){var r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o);}function T(e,i){for(var T,a=0;a0&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(We.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode());}function N(e,t){e.openElements.pop(),e.insertionMode=rt,e._processToken(t);}function d(e,t){e._insertFakeElement(We.BODY),e.insertionMode=it,e._processToken(t);}function C(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t);}function S(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1;}function f(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs);}function O(e,t){var n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs));}function I(e,t){var n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ze.HTML),e.insertionMode=mt);}function R(e,t){e.openElements.hasInButtonScope(We.P)&&e._closePElement(),e._insertElement(t,ze.HTML);}function M(e,t){e.openElements.hasInButtonScope(We.P)&&e._closePElement();var n=e.openElements.currentTagName;n!==We.H1&&n!==We.H2&&n!==We.H3&&n!==We.H4&&n!==We.H5&&n!==We.H6||e.openElements.pop(),e._insertElement(t,ze.HTML);}function L(e,t){e.openElements.hasInButtonScope(We.P)&&e._closePElement(),e._insertElement(t,ze.HTML),e.skipNextNewLine=!0,e.framesetOk=!1;}function P(e,t){var n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(We.P)&&e._closePElement(),e._insertElement(t,ze.HTML),n||(e.formElement=e.openElements.current));}function g(e,t){e.framesetOk=!1;for(var n=t.tagName,r=e.openElements.stackTop;r>=0;r--){var i=e.openElements.items[r],o=e.treeAdapter.getTagName(i),s=null;if(n===We.LI&&o===We.LI?s=We.LI:n!==We.DD&&n!==We.DT||o!==We.DD&&o!==We.DT||(s=o),s){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.popUntilTagNamePopped(s);break}if(o!==We.ADDRESS&&o!==We.DIV&&o!==We.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(We.P)&&e._closePElement(),e._insertElement(t,ze.HTML);}function D(e,t){e.openElements.hasInButtonScope(We.P)&&e._closePElement(),e._insertElement(t,ze.HTML),e.tokenizer.state=Be.MODE.PLAINTEXT;}function k(e,t){e.openElements.hasInScope(We.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(We.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ze.HTML),e.framesetOk=!1;}function H(e,t){var n=e.activeFormattingElements.getElementEntryInScopeWithTagName(We.A);n&&(T(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,ze.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);}function v(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ze.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);}function U(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(We.NOBR)&&(T(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ze.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);}function F(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ze.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1;}function G(e,t){e.treeAdapter.getDocumentMode(e.document)!==je.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(We.P)&&e._closePElement(),e._insertElement(t,ze.HTML),e.framesetOk=!1,e.insertionMode=st;}function B(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ze.HTML),e.framesetOk=!1;}function y(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ze.HTML);var n=Be.getTokenAttr(t,Ve.TYPE);n&&n.toLowerCase()===qe||(e.framesetOk=!1);}function b(e,t){e._appendElement(t,ze.HTML);}function K(e,t){e.openElements.hasInButtonScope(We.P)&&e._closePElement(),e.openElements.currentTagName===We.MENUITEM&&e.openElements.pop(),e._appendElement(t,ze.HTML),e.framesetOk=!1;}function x(e,t){t.tagName=We.IMG,B(e,t);}function Y(e,t){e._insertElement(t,ze.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Be.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=ot;}function w(e,t){e.openElements.hasInButtonScope(We.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Be.MODE.RAWTEXT);}function X(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Be.MODE.RAWTEXT);}function Q(e,t){e._switchToTextParsing(t,Be.MODE.RAWTEXT);}function j(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ze.HTML),e.framesetOk=!1,e.insertionMode===st||e.insertionMode===at||e.insertionMode===_t||e.insertionMode===ct||e.insertionMode===pt?e.insertionMode=At:e.insertionMode=ht;}function W(e,t){e.openElements.currentTagName===We.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ze.HTML);}function z(e,t){e.openElements.hasInScope(We.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ze.HTML);}function V(e,t){e.openElements.hasInScope(We.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(We.RTC),e._insertElement(t,ze.HTML);}function $(e,t){e.openElements.currentTagName===We.MENUITEM&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ze.HTML);}function q(e,t){e.openElements.hasInButtonScope(We.P)&&e._closePElement(),e.openElements.currentTagName===We.MENUITEM&&e.openElements.pop(),e._insertElement(t,ze.HTML);}function J(e,t){e._reconstructActiveFormattingElements(),Xe.adjustTokenMathMLAttrs(t),Xe.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,ze.MATHML):e._insertElement(t,ze.MATHML);}function Z(e,t){e._reconstructActiveFormattingElements(),Xe.adjustTokenSVGAttrs(t),Xe.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,ze.SVG):e._insertElement(t,ze.SVG);}function ee(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ze.HTML);}function te(e,t){var n=t.tagName;switch(n.length){case 1:n===We.I||n===We.S||n===We.B||n===We.U?v(e,t):n===We.P?R(e,t):n===We.A?H(e,t):ee(e,t);break;case 2:n===We.DL||n===We.OL||n===We.UL?R(e,t):n===We.H1||n===We.H2||n===We.H3||n===We.H4||n===We.H5||n===We.H6?M(e,t):n===We.LI||n===We.DD||n===We.DT?g(e,t):n===We.EM||n===We.TT?v(e,t):n===We.BR?B(e,t):n===We.HR?K(e,t):n===We.RB?z(e,t):n===We.RT||n===We.RP?V(e,t):n!==We.TH&&n!==We.TD&&n!==We.TR&&ee(e,t);break;case 3:n===We.DIV||n===We.DIR||n===We.NAV?R(e,t):n===We.PRE?L(e,t):n===We.BIG?v(e,t):n===We.IMG||n===We.WBR?B(e,t):n===We.XMP?w(e,t):n===We.SVG?Z(e,t):n===We.RTC?z(e,t):n!==We.COL&&ee(e,t);break;case 4:n===We.HTML?f(e,t):n===We.BASE||n===We.LINK||n===We.META?u(e,t):n===We.BODY?O(e,t):n===We.MAIN?R(e,t):n===We.FORM?P(e,t):n===We.CODE||n===We.FONT?v(e,t):n===We.NOBR?U(e,t):n===We.AREA?B(e,t):n===We.MATH?J(e,t):n===We.MENU?q(e,t):n!==We.HEAD&&ee(e,t);break;case 5:n===We.STYLE||n===We.TITLE?u(e,t):n===We.ASIDE?R(e,t):n===We.SMALL?v(e,t):n===We.TABLE?G(e,t):n===We.EMBED?B(e,t):n===We.INPUT?y(e,t):n===We.PARAM||n===We.TRACK?b(e,t):n===We.IMAGE?x(e,t):n!==We.FRAME&&n!==We.TBODY&&n!==We.TFOOT&&n!==We.THEAD&&ee(e,t);break;case 6:n===We.SCRIPT?u(e,t):n===We.CENTER||n===We.FIGURE||n===We.FOOTER||n===We.HEADER||n===We.HGROUP?R(e,t):n===We.BUTTON?k(e,t):n===We.STRIKE||n===We.STRONG?v(e,t):n===We.APPLET||n===We.OBJECT?F(e,t):n===We.KEYGEN?B(e,t):n===We.SOURCE?b(e,t):n===We.IFRAME?X(e,t):n===We.SELECT?j(e,t):n===We.OPTION?W(e,t):ee(e,t);break;case 7:n===We.BGSOUND?u(e,t):n===We.DETAILS||n===We.ADDRESS||n===We.ARTICLE||n===We.SECTION||n===We.SUMMARY?R(e,t):n===We.LISTING?L(e,t):n===We.MARQUEE?F(e,t):n===We.NOEMBED?Q(e,t):n!==We.CAPTION&&ee(e,t);break;case 8:n===We.BASEFONT?u(e,t):n===We.MENUITEM?$(e,t):n===We.FRAMESET?I(e,t):n===We.FIELDSET?R(e,t):n===We.TEXTAREA?Y(e,t):n===We.TEMPLATE?u(e,t):n===We.NOSCRIPT?Q(e,t):n===We.OPTGROUP?W(e,t):n!==We.COLGROUP&&ee(e,t);break;case 9:n===We.PLAINTEXT?D(e,t):ee(e,t);break;case 10:n===We.BLOCKQUOTE||n===We.FIGCAPTION?R(e,t):ee(e,t);break;default:ee(e,t);}}function ne(e){e.openElements.hasInScope(We.BODY)&&(e.insertionMode=ut);}function re(e,t){e.openElements.hasInScope(We.BODY)&&(e.insertionMode=ut,e._processToken(t));}function ie(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n));}function oe(e){var t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(We.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(We.FORM):e.openElements.remove(n));}function se(e){e.openElements.hasInButtonScope(We.P)||e._insertFakeElement(We.P),e._closePElement();}function Te(e){e.openElements.hasInListItemScope(We.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(We.LI),e.openElements.popUntilTagNamePopped(We.LI));}function ae(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n));}function Ee(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped());}function _e(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker());}function ce(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(We.BR),e.openElements.pop(),e.framesetOk=!1;}function pe(e,t){for(var n=t.tagName,r=e.openElements.stackTop;r>0;r--){var i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function he(e,t){var n=t.tagName;switch(n.length){case 1:n===We.A||n===We.B||n===We.I||n===We.S||n===We.U?T(e,t):n===We.P?se(e,t):pe(e,t);break;case 2:n===We.DL||n===We.UL||n===We.OL?ie(e,t):n===We.LI?Te(e,t):n===We.DD||n===We.DT?ae(e,t):n===We.H1||n===We.H2||n===We.H3||n===We.H4||n===We.H5||n===We.H6?Ee(e,t):n===We.BR?ce(e,t):n===We.EM||n===We.TT?T(e,t):pe(e,t);break;case 3:n===We.BIG?T(e,t):n===We.DIR||n===We.DIV||n===We.NAV?ie(e,t):pe(e,t);break;case 4:n===We.BODY?ne(e,t):n===We.HTML?re(e,t):n===We.FORM?oe(e,t):n===We.CODE||n===We.FONT||n===We.NOBR?T(e,t):n===We.MAIN||n===We.MENU?ie(e,t):pe(e,t);break;case 5:n===We.ASIDE?ie(e,t):n===We.SMALL?T(e,t):pe(e,t);break;case 6:n===We.CENTER||n===We.FIGURE||n===We.FOOTER||n===We.HEADER||n===We.HGROUP?ie(e,t):n===We.APPLET||n===We.OBJECT?_e(e,t):n===We.STRIKE||n===We.STRONG?T(e,t):pe(e,t);break;case 7:n===We.ADDRESS||n===We.ARTICLE||n===We.DETAILS||n===We.SECTION||n===We.SUMMARY?ie(e,t):n===We.MARQUEE?_e(e,t):pe(e,t);break;case 8:n===We.FIELDSET?ie(e,t):n===We.TEMPLATE?m(e,t):pe(e,t);break;case 10:n===We.BLOCKQUOTE||n===We.FIGCAPTION?ie(e,t):pe(e,t);break;default:pe(e,t);}}function Ae(e,t){e.tmplInsertionModeStackTop>-1?De(e,t):e.stopped=!0;}function le(e,t){var n=e.openElements.currentTagName;n===We.TABLE||n===We.TBODY||n===We.TFOOT||n===We.THEAD||n===We.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Tt,e._processToken(t)):Me(e,t);}function ue(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ze.HTML),e.insertionMode=at;}function me(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ze.HTML),e.insertionMode=Et;}function Ne(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(We.COLGROUP),e.insertionMode=Et,e._processToken(t);}function de(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ze.HTML),e.insertionMode=_t;}function Ce(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(We.TBODY),e.insertionMode=_t,e._processToken(t);}function Se(e,t){e.openElements.hasInTableScope(We.TABLE)&&(e.openElements.popUntilTagNamePopped(We.TABLE),e._resetInsertionMode(),e._processToken(t));}function fe(e,t){var n=Be.getTokenAttr(t,Ve.TYPE);n&&n.toLowerCase()===qe?e._appendElement(t,ze.HTML):Me(e,t);}function Oe(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,ze.HTML),e.formElement=e.openElements.current,e.openElements.pop());}function Ie(e,t){var n=t.tagName;switch(n.length){case 2:n===We.TD||n===We.TH||n===We.TR?Ce(e,t):Me(e,t);break;case 3:n===We.COL?Ne(e,t):Me(e,t);break;case 4:n===We.FORM?Oe(e,t):Me(e,t);break;case 5:n===We.TABLE?Se(e,t):n===We.STYLE?u(e,t):n===We.TBODY||n===We.TFOOT||n===We.THEAD?de(e,t):n===We.INPUT?fe(e,t):Me(e,t);break;case 6:n===We.SCRIPT?u(e,t):Me(e,t);break;case 7:n===We.CAPTION?ue(e,t):Me(e,t);break;case 8:n===We.COLGROUP?me(e,t):n===We.TEMPLATE?u(e,t):Me(e,t);break;default:Me(e,t);}}function Re(e,t){var n=t.tagName;n===We.TABLE?e.openElements.hasInTableScope(We.TABLE)&&(e.openElements.popUntilTagNamePopped(We.TABLE),e._resetInsertionMode()):n===We.TEMPLATE?m(e,t):n!==We.BODY&&n!==We.CAPTION&&n!==We.COL&&n!==We.COLGROUP&&n!==We.HTML&&n!==We.TBODY&&n!==We.TD&&n!==We.TFOOT&&n!==We.TH&&n!==We.THEAD&&n!==We.TR&&Me(e,t);}function Me(e,t){var n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n;}function Le(e,t){e.openElements.currentTagName===We.COLGROUP&&(e.openElements.pop(),e.insertionMode=st,e._processToken(t));}function Pe(e,t){var n=t.tagName;n===We.HTML?te(e,t):n===We.OPTION?(e.openElements.currentTagName===We.OPTION&&e.openElements.pop(),e._insertElement(t,ze.HTML)):n===We.OPTGROUP?(e.openElements.currentTagName===We.OPTION&&e.openElements.pop(),e.openElements.currentTagName===We.OPTGROUP&&e.openElements.pop(),e._insertElement(t,ze.HTML)):n===We.INPUT||n===We.KEYGEN||n===We.TEXTAREA||n===We.SELECT?e.openElements.hasInSelectScope(We.SELECT)&&(e.openElements.popUntilTagNamePopped(We.SELECT),e._resetInsertionMode(),n!==We.SELECT&&e._processToken(t)):n!==We.SCRIPT&&n!==We.TEMPLATE||u(e,t);}function ge(e,t){var n=t.tagName;if(n===We.OPTGROUP){var r=e.openElements.items[e.openElements.stackTop-1],i=r&&e.treeAdapter.getTagName(r);e.openElements.currentTagName===We.OPTION&&i===We.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===We.OPTGROUP&&e.openElements.pop();}else n===We.OPTION?e.openElements.currentTagName===We.OPTION&&e.openElements.pop():n===We.SELECT&&e.openElements.hasInSelectScope(We.SELECT)?(e.openElements.popUntilTagNamePopped(We.SELECT),e._resetInsertionMode()):n===We.TEMPLATE&&m(e,t);}function De(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(We.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0;}function ke(e,t){e.insertionMode=it,e._processToken(t);}function He(e,t){e.insertionMode=it,e._processToken(t);}function ve(e,t){t.chars=Qe.REPLACEMENT_CHARACTER,e._insertCharacters(t);}function Ue(e,t){e._insertCharacters(t),e.framesetOk=!1;}function Fe(e,t){if(Xe.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ze.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t);}else{var n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===ze.MATHML?Xe.adjustTokenMathMLAttrs(t):r===ze.SVG&&(Xe.adjustTokenSVGTagName(t),Xe.adjustTokenSVGAttrs(t)),Xe.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r);}}function Ge(e,t){for(var n=e.openElements.stackTop;n>0;n--){var r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===ze.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}var Be=index$4,ye=open_element_stack,be=formatting_element_list,Ke=parser_mixin,xe=_default,Ye=merge_options,we=doctype,Xe=foreign_content,Qe=unicode,je=html,We=je.TAG_NAMES,ze=je.NAMESPACES,Ve=je.ATTRS,$e={locationInfo:!1,treeAdapter:xe},qe="hidden",Je=8,Ze=3,et="BEFORE_HTML_MODE",tt="BEFORE_HEAD_MODE",nt="IN_HEAD_MODE",rt="AFTER_HEAD_MODE",it="IN_BODY_MODE",ot="TEXT_MODE",st="IN_TABLE_MODE",Tt="IN_TABLE_TEXT_MODE",at="IN_CAPTION_MODE",Et="IN_COLUMN_GROUP_MODE",_t="IN_TABLE_BODY_MODE",ct="IN_ROW_MODE",pt="IN_CELL_MODE",ht="IN_SELECT_MODE",At="IN_SELECT_IN_TABLE_MODE",lt="IN_TEMPLATE_MODE",ut="AFTER_BODY_MODE",mt="IN_FRAMESET_MODE",Nt="AFTER_FRAMESET_MODE",dt="AFTER_AFTER_BODY_MODE",Ct="AFTER_AFTER_FRAMESET_MODE",St=Object.create(null);St[We.TR]=ct,St[We.TBODY]=St[We.THEAD]=St[We.TFOOT]=_t,St[We.CAPTION]=at,St[We.COLGROUP]=Et,St[We.TABLE]=st,St[We.BODY]=it,St[We.FRAMESET]=mt;var ft=Object.create(null);ft[We.CAPTION]=ft[We.COLGROUP]=ft[We.TBODY]=ft[We.TFOOT]=ft[We.THEAD]=st,ft[We.COL]=Et,ft[We.TR]=_t,ft[We.TD]=ft[We.TH]=ct;var Ot=Object.create(null);Ot.INITIAL_MODE=Object.create(null),Ot.INITIAL_MODE[Be.CHARACTER_TOKEN]=Ot.INITIAL_MODE[Be.NULL_CHARACTER_TOKEN]=h,Ot.INITIAL_MODE[Be.WHITESPACE_CHARACTER_TOKEN]=a,Ot.INITIAL_MODE[Be.COMMENT_TOKEN]=E,Ot.INITIAL_MODE[Be.DOCTYPE_TOKEN]=function(e,t){e._setDocumentType(t);var n=t.forceQuirks?je.DOCUMENT_MODE.QUIRKS:we.getDocumentMode(t.name,t.publicId,t.systemId);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=et;},Ot.INITIAL_MODE[Be.START_TAG_TOKEN]=Ot.INITIAL_MODE[Be.END_TAG_TOKEN]=Ot.INITIAL_MODE[Be.EOF_TOKEN]=h,Ot[et]=Object.create(null),Ot[et][Be.CHARACTER_TOKEN]=Ot[et][Be.NULL_CHARACTER_TOKEN]=A,Ot[et][Be.WHITESPACE_CHARACTER_TOKEN]=a,Ot[et][Be.COMMENT_TOKEN]=E,Ot[et][Be.DOCTYPE_TOKEN]=a,Ot[et][Be.START_TAG_TOKEN]=function(e,t){t.tagName===We.HTML?(e._insertElement(t,ze.HTML),e.insertionMode=tt):A(e,t);},Ot[et][Be.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n!==We.HTML&&n!==We.HEAD&&n!==We.BODY&&n!==We.BR||A(e,t);},Ot[et][Be.EOF_TOKEN]=A,Ot[tt]=Object.create(null),Ot[tt][Be.CHARACTER_TOKEN]=Ot[tt][Be.NULL_CHARACTER_TOKEN]=l,Ot[tt][Be.WHITESPACE_CHARACTER_TOKEN]=a,Ot[tt][Be.COMMENT_TOKEN]=E,Ot[tt][Be.DOCTYPE_TOKEN]=a,Ot[tt][Be.START_TAG_TOKEN]=function(e,t){var n=t.tagName;n===We.HTML?te(e,t):n===We.HEAD?(e._insertElement(t,ze.HTML),e.headElement=e.openElements.current,e.insertionMode=nt):l(e,t);},Ot[tt][Be.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n!==We.HEAD&&n!==We.BODY&&n!==We.HTML&&n!==We.BR||l(e,t);},Ot[tt][Be.EOF_TOKEN]=l,Ot[nt]=Object.create(null),Ot[nt][Be.CHARACTER_TOKEN]=Ot[nt][Be.NULL_CHARACTER_TOKEN]=N,Ot[nt][Be.WHITESPACE_CHARACTER_TOKEN]=c,Ot[nt][Be.COMMENT_TOKEN]=E,Ot[nt][Be.DOCTYPE_TOKEN]=a,Ot[nt][Be.START_TAG_TOKEN]=u,Ot[nt][Be.END_TAG_TOKEN]=m,Ot[nt][Be.EOF_TOKEN]=N,Ot[rt]=Object.create(null),Ot[rt][Be.CHARACTER_TOKEN]=Ot[rt][Be.NULL_CHARACTER_TOKEN]=d,Ot[rt][Be.WHITESPACE_CHARACTER_TOKEN]=c,Ot[rt][Be.COMMENT_TOKEN]=E,Ot[rt][Be.DOCTYPE_TOKEN]=a,Ot[rt][Be.START_TAG_TOKEN]=function(e,t){var n=t.tagName;n===We.HTML?te(e,t):n===We.BODY?(e._insertElement(t,ze.HTML),e.framesetOk=!1,e.insertionMode=it):n===We.FRAMESET?(e._insertElement(t,ze.HTML),e.insertionMode=mt):n===We.BASE||n===We.BASEFONT||n===We.BGSOUND||n===We.LINK||n===We.META||n===We.NOFRAMES||n===We.SCRIPT||n===We.STYLE||n===We.TEMPLATE||n===We.TITLE?(e.openElements.push(e.headElement),u(e,t),e.openElements.remove(e.headElement)):n!==We.HEAD&&d(e,t);},Ot[rt][Be.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n===We.BODY||n===We.HTML||n===We.BR?d(e,t):n===We.TEMPLATE&&m(e,t);},Ot[rt][Be.EOF_TOKEN]=d,Ot[it]=Object.create(null),Ot[it][Be.CHARACTER_TOKEN]=S,Ot[it][Be.NULL_CHARACTER_TOKEN]=a,Ot[it][Be.WHITESPACE_CHARACTER_TOKEN]=C,Ot[it][Be.COMMENT_TOKEN]=E,Ot[it][Be.DOCTYPE_TOKEN]=a,Ot[it][Be.START_TAG_TOKEN]=te,Ot[it][Be.END_TAG_TOKEN]=he,Ot[it][Be.EOF_TOKEN]=Ae,Ot[ot]=Object.create(null),Ot[ot][Be.CHARACTER_TOKEN]=Ot[ot][Be.NULL_CHARACTER_TOKEN]=Ot[ot][Be.WHITESPACE_CHARACTER_TOKEN]=c,Ot[ot][Be.COMMENT_TOKEN]=Ot[ot][Be.DOCTYPE_TOKEN]=Ot[ot][Be.START_TAG_TOKEN]=a,Ot[ot][Be.END_TAG_TOKEN]=function(e,t){t.tagName===We.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode;},Ot[ot][Be.EOF_TOKEN]=function(e,t){e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t);},Ot[st]=Object.create(null),Ot[st][Be.CHARACTER_TOKEN]=Ot[st][Be.NULL_CHARACTER_TOKEN]=Ot[st][Be.WHITESPACE_CHARACTER_TOKEN]=le,Ot[st][Be.COMMENT_TOKEN]=E,Ot[st][Be.DOCTYPE_TOKEN]=a,Ot[st][Be.START_TAG_TOKEN]=Ie,Ot[st][Be.END_TAG_TOKEN]=Re,Ot[st][Be.EOF_TOKEN]=Ae,Ot[Tt]=Object.create(null),Ot[Tt][Be.CHARACTER_TOKEN]=function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0;},Ot[Tt][Be.NULL_CHARACTER_TOKEN]=a,Ot[Tt][Be.WHITESPACE_CHARACTER_TOKEN]=function(e,t){e.pendingCharacterTokens.push(t);},Ot[Tt][Be.COMMENT_TOKEN]=Ot[Tt][Be.DOCTYPE_TOKEN]=Ot[Tt][Be.START_TAG_TOKEN]=Ot[Tt][Be.END_TAG_TOKEN]=Ot[Tt][Be.EOF_TOKEN]=function(e,t){var n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0);for(var r=t;r=0;e--){var n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));var r=this.treeAdapter.getTagName(n),i=St[r];if(i){this.insertionMode=i;break}if(!(t||r!==We.TD&&r!==We.TH)){this.insertionMode=pt;break}if(!t&&r===We.HEAD){this.insertionMode=nt;break}if(r===We.SELECT){this._resetInsertionModeForSelect(e);break}if(r===We.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(r===We.HTML){this.insertionMode=this.headElement?rt:tt;break}if(t){this.insertionMode=it;break}}},It.prototype._resetInsertionModeForSelect=function(e){if(e>0)for(var t=e-1;t>0;t--){var n=this.openElements.items[t],r=this.treeAdapter.getTagName(n);if(r===We.TEMPLATE)break;if(r===We.TABLE)return void(this.insertionMode=At)}this.insertionMode=ht;},It.prototype._pushTmplInsertionMode=function(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e;},It.prototype._popTmplInsertionMode=function(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop];},It.prototype._isElementCausesFosterParenting=function(e){var t=this.treeAdapter.getTagName(e);return t===We.TABLE||t===We.TBODY||t===We.TFOOT||t===We.THEAD||t===We.TR},It.prototype._shouldFosterParentOnInsertion=function(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)},It.prototype._findFosterParentingLocation=function(){for(var e={parent:null,beforeElement:null},t=this.openElements.stackTop;t>=0;t--){var n=this.openElements.items[t],r=this.treeAdapter.getTagName(n),i=this.treeAdapter.getNamespaceURI(n);if(r===We.TEMPLATE&&i===ze.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(r===We.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e},It.prototype._fosterParentElement=function(e){var t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e);},It.prototype._fosterParentText=function(e){var t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e);},It.prototype._isSpecialElement=function(e){var t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return je.SPECIAL_ELEMENTS[n][t]};}); var index$6=createCommonjsModule(function(e){var t=_default,n=merge_options,r=doctype,i=html,o=i.TAG_NAMES,s=i.NAMESPACES,T={treeAdapter:t},a=/&/g,E=/\u00a0/g,_=/"/g,c=//g,h=e.exports=function(e,t){this.options=n(T,t),this.treeAdapter=this.options.treeAdapter,this.html="",this.startNode=e;};h.escapeString=function(e,t){return e=e.replace(a,"&").replace(E," "),e=t?e.replace(_,"""):e.replace(c,"<").replace(p,">")},h.prototype.serialize=function(){return this._serializeChildNodes(this.startNode),this.html},h.prototype._serializeChildNodes=function(e){var t=this.treeAdapter.getChildNodes(e);if(t)for(var n=0,r=t.length;n",t!==o.AREA&&t!==o.BASE&&t!==o.BASEFONT&&t!==o.BGSOUND&&t!==o.BR&&t!==o.BR&&t!==o.COL&&t!==o.EMBED&&t!==o.FRAME&&t!==o.HR&&t!==o.IMG&&t!==o.INPUT&&t!==o.KEYGEN&&t!==o.LINK&&t!==o.MENUITEM&&t!==o.META&&t!==o.PARAM&&t!==o.SOURCE&&t!==o.TRACK&&t!==o.WBR){var r=t===o.TEMPLATE&&n===s.HTML?this.treeAdapter.getTemplateContent(e):e;this._serializeChildNodes(r),this.html+="";}},h.prototype._serializeAttributes=function(e){for(var t=this.treeAdapter.getAttrList(e),n=0,r=t.length;n";};}); var htmlparser2=createCommonjsModule(function(e,t){var n=doctype,r=html.DOCUMENT_MODE,i={element:1,text:3,cdata:4,comment:8},o={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},s=function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);};s.prototype={get firstChild(){var e=this.children;return e&&e[0]||null},get lastChild(){var e=this.children;return e&&e[e.length-1]||null},get nodeType(){return i[this.type]||i.element}},Object.keys(o).forEach(function(e){var t=o[e];Object.defineProperty(s.prototype,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}});}),t.createDocument=function(){return new s({type:"root",name:"root",parent:null,prev:null,next:null,children:[],"x-mode":r.NO_QUIRKS})},t.createDocumentFragment=function(){return new s({type:"root",name:"root",parent:null,prev:null,next:null,children:[]})},t.createElement=function(e,t,n){for(var r=Object.create(null),i=Object.create(null),o=Object.create(null),T=0;T { - let result = callback(child, i); - if (result !== false && child.walk) { - result = child.walk(callback); - } - return result; - }); - } - - walkType (type, callback) { - if (!type || !callback) { - throw new Error('Parameters {type} and {callback} are required.'); - } - - // allow users to pass a constructor, or node type string; eg. Word. - type = type.name && type.prototype ? type.name : type; - - return this.walk((node, index) => { - if (node.type === type) { - return callback.call(this, node, index); - } - }); - } - - append (node) { - node.parent = this; - this.nodes.push(node); - return this; - } - - prepend (node) { - node.parent = this; - this.nodes.unshift(node); - return this; - } - - cleanRaws (keepBetween) { - super.cleanRaws(keepBetween); - if (this.nodes) { - for (let node of this.nodes) node.cleanRaws(keepBetween); - } - } - - insertAfter (oldNode, newNode) { - let oldIndex = this.index(oldNode), - index; - - this.nodes.splice(oldIndex + 1, 0, newNode); - - for (let id in this.indexes) { - index = this.indexes[id]; - if (oldIndex <= index) { - this.indexes[id] = index + this.nodes.length; - } - } - - return this; - } - - insertBefore (oldNode, newNode) { - let oldIndex = this.index(oldNode), - index; - - this.nodes.splice(oldIndex, 0, newNode); - - for (let id in this.indexes) { - index = this.indexes[id]; - if (oldIndex <= index) { - this.indexes[id] = index + this.nodes.length; - } - } - - return this; - } - - removeChild (child) { - child = this.index(child); - this.nodes[child].parent = undefined; - this.nodes.splice(child, 1); - - let index; - for (let id in this.indexes) { - index = this.indexes[id]; - if (index >= child) { - this.indexes[id] = index - 1; - } - } - - return this; - } - - removeAll () { - for (let node of this.nodes) node.parent = undefined; - this.nodes = []; - return this; - } - - every (condition) { - return this.nodes.every(condition); - } - - some (condition) { - return this.nodes.some(condition); - } - - index (child) { - if (typeof child === 'number') { - return child; - } - else { - return this.nodes.indexOf(child); - } - } - - get first () { - if (!this.nodes) return undefined; - return this.nodes[0]; - } - - get last () { - if (!this.nodes) return undefined; - return this.nodes[this.nodes.length - 1]; - } - - toString () { - let result = this.nodes.map(String).join(''); - - if (this.value) { - result = this.value + result; - } - - if (this.raws.before) { - result = this.raws.before + result; - } - - if (this.raws.after) { - result += this.raws.after; - } - - return result; - } -} - -Container.registerWalker = (constructor) => { - let walkerName = 'walk' + constructor.name; - - // plural sugar - if (walkerName.lastIndexOf('s') !== walkerName.length - 1) { - walkerName += 's'; - } - - if (Container.prototype[walkerName]) { - return; - } - - // we need access to `this` so we can't use an arrow function - Container.prototype[walkerName] = function (callback) { - return this.walkType(constructor, callback); - }; -}; - -module.exports = Container; - - -/***/ }), -/* 2 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -var singleQuote = exports.singleQuote = '\''.charCodeAt(0); -var doubleQuote = exports.doubleQuote = '"'.charCodeAt(0); -var backslash = exports.backslash = '\\'.charCodeAt(0); -var backTick = exports.backTick = '`'.charCodeAt(0); -var slash = exports.slash = '/'.charCodeAt(0); -var newline = exports.newline = '\n'.charCodeAt(0); -var space = exports.space = ' '.charCodeAt(0); -var feed = exports.feed = '\f'.charCodeAt(0); -var tab = exports.tab = '\t'.charCodeAt(0); -var carriageReturn = exports.carriageReturn = '\r'.charCodeAt(0); -var openedParenthesis = exports.openedParenthesis = '('.charCodeAt(0); -var closedParenthesis = exports.closedParenthesis = ')'.charCodeAt(0); -var openedCurlyBracket = exports.openedCurlyBracket = '{'.charCodeAt(0); -var closedCurlyBracket = exports.closedCurlyBracket = '}'.charCodeAt(0); -var openSquareBracket = exports.openSquareBracket = '['.charCodeAt(0); -var closeSquareBracket = exports.closeSquareBracket = ']'.charCodeAt(0); -var semicolon = exports.semicolon = ';'.charCodeAt(0); -var asterisk = exports.asterisk = '*'.charCodeAt(0); -var colon = exports.colon = ':'.charCodeAt(0); -var comma = exports.comma = ','.charCodeAt(0); -var dot = exports.dot = '.'.charCodeAt(0); -var atRule = exports.atRule = '@'.charCodeAt(0); -var tilde = exports.tilde = '~'.charCodeAt(0); -var hash = exports.hash = '#'.charCodeAt(0); - -var atEndPattern = exports.atEndPattern = /[ \n\t\r\f\{\(\)'"\\;/\[\]#]/g; -var wordEndPattern = exports.wordEndPattern = /[ \n\t\r\f\(\)\{\}:,;@!'"\\\]\[#]|\/(?=\*)/g; -var badBracketPattern = exports.badBracketPattern = /.[\\\/\("'\n]/; - -var variablePattern = exports.variablePattern = /^@[^:\(\{]+:/; -var hashColorPattern = exports.hashColorPattern = /^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/; - -/***/ }), -/* 3 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -let cloneNode = function (obj, parent) { - let cloned = new obj.constructor(); - - for (let i in obj) { - if (!obj.hasOwnProperty(i)) continue; - - let value = obj[i], - type = typeof value; - - if (i === 'parent' && type === 'object') { - if (parent) cloned[i] = parent; - } - else if (i === 'source') { - cloned[i] = value; - } - else if (value instanceof Array) { - cloned[i] = value.map(j => cloneNode(j, cloned)); - } - else if (i !== 'before' && i !== 'after' && i !== 'between' && i !== 'semicolon') { - if (type === 'object' && value !== null) value = cloneNode(value); - cloned[i] = value; - } - } - - return cloned; -}; - -module.exports = class Node { - - constructor (defaults) { - defaults = defaults || {}; - this.raws = { before: '', after: '' }; - - for (let name in defaults) { - this[name] = defaults[name]; - } - } - - remove () { - if (this.parent) { - this.parent.removeChild(this); - } - - this.parent = undefined; - - return this; - } - - toString () { - return [ - this.raws.before, - String(this.value), - this.raws.after - ].join(''); - } - - clone (overrides) { - overrides = overrides || {}; - - let cloned = cloneNode(this); - - for (let name in overrides) { - cloned[name] = overrides[name]; - } - - return cloned; - } - - cloneBefore (overrides) { - overrides = overrides || {}; - - let cloned = this.clone(overrides); - - this.parent.insertBefore(this, cloned); - return cloned; - } - - cloneAfter (overrides) { - overrides = overrides || {}; - - let cloned = this.clone(overrides); - - this.parent.insertAfter(this, cloned); - return cloned; - } - - replaceWith () { - let nodes = Array.prototype.slice.call(arguments); - - if (this.parent) { - for (let node of nodes) { - this.parent.insertBefore(this, node); - } - - this.remove(); - } - - return this; - } - - moveTo (container) { - this.cleanRaws(this.root() === container.root()); - this.remove(); - - container.append(this); - - return this; - } - - moveBefore (node) { - this.cleanRaws(this.root() === node.root()); - this.remove(); - - node.parent.insertBefore(node, this); - - return this; - } - - moveAfter (node) { - this.cleanRaws(this.root() === node.root()); - this.remove(); - node.parent.insertAfter(node, this); - return this; - } - - next () { - let index = this.parent.index(this); - - return this.parent.nodes[index + 1]; - } - - prev () { - let index = this.parent.index(this); - - return this.parent.nodes[index - 1]; - } - - toJSON () { - let fixed = { }; - - for (let name in this) { - if (!this.hasOwnProperty(name)) continue; - if (name === 'parent') continue; - let value = this[name]; - - if (value instanceof Array) { - fixed[name] = value.map(i => { - if (typeof i === 'object' && i.toJSON) { - return i.toJSON(); - } - else { - return i; - } - }); - } - else if (typeof value === 'object' && value.toJSON) { - fixed[name] = value.toJSON(); - } - else { - fixed[name] = value; - } - } - - return fixed; - } - - root () { - let result = this; - - while (result.parent) result = result.parent; - - return result; - } - - cleanRaws (keepBetween) { - delete this.raws.before; - delete this.raws.after; - if (!keepBetween) delete this.raws.between; - } - - positionInside (index) { - let string = this.toString(), - column = this.source.start.column, - line = this.source.start.line; - - for (let i = 0; i < index; i++) { - if (string[i] === '\n') { - column = 1; - line += 1; - } - else { - column += 1; - } - } - - return { line, column }; - } - - positionBy (opts) { - let pos = this.source.start; - - if (opts.index) { - pos = this.positionInside(opts.index); - } - else if (opts.word) { - let index = this.toString().indexOf(opts.word); - if (index !== -1) pos = this.positionInside(index); - } - - return pos; - } -}; - - -/***/ }), -/* 4 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -exports.default = warnOnce; -var printed = {}; - -function warnOnce(message) { - if (printed[message]) return; - printed[message] = true; - - if (typeof console !== 'undefined' && console.warn) console.warn(message); -} -module.exports = exports['default']; - - - -/***/ }), -/* 5 */ -/***/ (function(module, exports, __webpack_require__) { - -/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -// resolves . and .. elements in a path array with directory names there -// must be no slashes, empty elements, or device names (c:\) in the array -// (so also no leading and trailing slashes - it does not distinguish -// relative and absolute paths) -function normalizeArray(parts, allowAboveRoot) { - // if the path tries to go above the root, `up` ends up > 0 - var up = 0; - for (var i = parts.length - 1; i >= 0; i--) { - var last = parts[i]; - if (last === '.') { - parts.splice(i, 1); - } else if (last === '..') { - parts.splice(i, 1); - up++; - } else if (up) { - parts.splice(i, 1); - up--; - } - } - - // if the path is allowed to go above the root, restore leading ..s - if (allowAboveRoot) { - for (; up--; up) { - parts.unshift('..'); - } - } - - return parts; -} - -// Split a filename into [root, dir, basename, ext], unix version -// 'root' is just a slash, or nothing. -var splitPathRe = - /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/; -var splitPath = function(filename) { - return splitPathRe.exec(filename).slice(1); -}; - -// path.resolve([from ...], to) -// posix version -exports.resolve = function() { - var resolvedPath = '', - resolvedAbsolute = false; - - for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) { - var path = (i >= 0) ? arguments[i] : process.cwd(); - - // Skip empty and invalid entries - if (typeof path !== 'string') { - throw new TypeError('Arguments to path.resolve must be strings'); - } else if (!path) { - continue; - } - - resolvedPath = path + '/' + resolvedPath; - resolvedAbsolute = path.charAt(0) === '/'; - } - - // At this point the path should be resolved to a full absolute path, but - // handle relative paths to be safe (might happen when process.cwd() fails) - - // Normalize the path - resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) { - return !!p; - }), !resolvedAbsolute).join('/'); - - return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.'; -}; - -// path.normalize(path) -// posix version -exports.normalize = function(path) { - var isAbsolute = exports.isAbsolute(path), - trailingSlash = substr(path, -1) === '/'; - - // Normalize the path - path = normalizeArray(filter(path.split('/'), function(p) { - return !!p; - }), !isAbsolute).join('/'); - - if (!path && !isAbsolute) { - path = '.'; - } - if (path && trailingSlash) { - path += '/'; - } - - return (isAbsolute ? '/' : '') + path; -}; - -// posix version -exports.isAbsolute = function(path) { - return path.charAt(0) === '/'; -}; - -// posix version -exports.join = function() { - var paths = Array.prototype.slice.call(arguments, 0); - return exports.normalize(filter(paths, function(p, index) { - if (typeof p !== 'string') { - throw new TypeError('Arguments to path.join must be strings'); - } - return p; - }).join('/')); -}; - - -// path.relative(from, to) -// posix version -exports.relative = function(from, to) { - from = exports.resolve(from).substr(1); - to = exports.resolve(to).substr(1); - - function trim(arr) { - var start = 0; - for (; start < arr.length; start++) { - if (arr[start] !== '') break; - } - - var end = arr.length - 1; - for (; end >= 0; end--) { - if (arr[end] !== '') break; - } - - if (start > end) return []; - return arr.slice(start, end - start + 1); - } - - var fromParts = trim(from.split('/')); - var toParts = trim(to.split('/')); - - var length = Math.min(fromParts.length, toParts.length); - var samePartsLength = length; - for (var i = 0; i < length; i++) { - if (fromParts[i] !== toParts[i]) { - samePartsLength = i; - break; - } - } - - var outputParts = []; - for (var i = samePartsLength; i < fromParts.length; i++) { - outputParts.push('..'); - } - - outputParts = outputParts.concat(toParts.slice(samePartsLength)); - - return outputParts.join('/'); -}; - -exports.sep = '/'; -exports.delimiter = ':'; - -exports.dirname = function(path) { - var result = splitPath(path), - root = result[0], - dir = result[1]; - - if (!root && !dir) { - // No dirname whatsoever - return '.'; - } - - if (dir) { - // It has a dirname, strip trailing slash - dir = dir.substr(0, dir.length - 1); - } - - return root + dir; -}; - - -exports.basename = function(path, ext) { - var f = splitPath(path)[2]; - // TODO: make this comparison case-insensitive on windows? - if (ext && f.substr(-1 * ext.length) === ext) { - f = f.substr(0, f.length - ext.length); - } - return f; -}; - - -exports.extname = function(path) { - return splitPath(path)[3]; -}; - -function filter (xs, f) { - if (xs.filter) return xs.filter(f); - var res = []; - for (var i = 0; i < xs.length; i++) { - if (f(xs[i], i, xs)) res.push(xs[i]); - } - return res; -} - -// String.prototype.substr - negative index don't work in IE8 -var substr = 'ab'.substr(-1) === 'b' - ? function (str, start, len) { return str.substr(start, len) } - : function (str, start, len) { - if (start < 0) start = str.length + start; - return str.substr(start, len); - }; - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(14))); - -/***/ }), -/* 6 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var cloneNode = function cloneNode(obj, parent) { - if ((typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) !== 'object') { - return obj; - } - - var cloned = new obj.constructor(); - - for (var i in obj) { - if (!obj.hasOwnProperty(i)) { - continue; - } - var value = obj[i]; - var type = typeof value === 'undefined' ? 'undefined' : _typeof(value); - - if (i === 'parent' && type === 'object') { - if (parent) { - cloned[i] = parent; - } - } else if (value instanceof Array) { - cloned[i] = value.map(function (j) { - return cloneNode(j, cloned); - }); - } else { - cloned[i] = cloneNode(value, cloned); - } - } - - return cloned; -}; - -var _class = function () { - function _class() { - var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - _classCallCheck(this, _class); - - for (var key in opts) { - this[key] = opts[key]; - } - var _opts$spaces = opts.spaces; - _opts$spaces = _opts$spaces === undefined ? {} : _opts$spaces; - var _opts$spaces$before = _opts$spaces.before, - before = _opts$spaces$before === undefined ? '' : _opts$spaces$before, - _opts$spaces$after = _opts$spaces.after, - after = _opts$spaces$after === undefined ? '' : _opts$spaces$after; - - this.spaces = { before: before, after: after }; - } - - _class.prototype.remove = function remove() { - if (this.parent) { - this.parent.removeChild(this); - } - this.parent = undefined; - return this; - }; - - _class.prototype.replaceWith = function replaceWith() { - if (this.parent) { - for (var index in arguments) { - this.parent.insertBefore(this, arguments[index]); - } - this.remove(); - } - return this; - }; - - _class.prototype.next = function next() { - return this.parent.at(this.parent.index(this) + 1); - }; - - _class.prototype.prev = function prev() { - return this.parent.at(this.parent.index(this) - 1); - }; - - _class.prototype.clone = function clone() { - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var cloned = cloneNode(this); - for (var name in overrides) { - cloned[name] = overrides[name]; - } - return cloned; - }; - - _class.prototype.toString = function toString() { - return [this.spaces.before, String(this.value), this.spaces.after].join(''); - }; - - return _class; -}(); - -exports.default = _class; -module.exports = exports['default']; - -/***/ }), -/* 7 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = unclosed; -function unclosed(state, what) { - throw state.input.error("Unclosed " + what, state.line, state.pos - state.offset); -} -module.exports = exports["default"]; - -/***/ }), -/* 8 */ -/***/ (function(module, exports) { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -/** - * This is a helper function for getting values from parameter/options - * objects. - * - * @param args The object we are extracting values from - * @param name The name of the property we are getting. - * @param defaultValue An optional value to return if the property is missing - * from the object. If this is not specified and the property is missing, an - * error will be thrown. - */ -function getArg(aArgs, aName, aDefaultValue) { - if (aName in aArgs) { - return aArgs[aName]; - } else if (arguments.length === 3) { - return aDefaultValue; - } else { - throw new Error('"' + aName + '" is a required argument.'); - } -} -exports.getArg = getArg; - -var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/; -var dataUrlRegexp = /^data:.+\,.+$/; - -function urlParse(aUrl) { - var match = aUrl.match(urlRegexp); - if (!match) { - return null; - } - return { - scheme: match[1], - auth: match[2], - host: match[3], - port: match[4], - path: match[5] - }; -} -exports.urlParse = urlParse; - -function urlGenerate(aParsedUrl) { - var url = ''; - if (aParsedUrl.scheme) { - url += aParsedUrl.scheme + ':'; - } - url += '//'; - if (aParsedUrl.auth) { - url += aParsedUrl.auth + '@'; - } - if (aParsedUrl.host) { - url += aParsedUrl.host; - } - if (aParsedUrl.port) { - url += ":" + aParsedUrl.port; - } - if (aParsedUrl.path) { - url += aParsedUrl.path; - } - return url; -} -exports.urlGenerate = urlGenerate; - -/** - * Normalizes a path, or the path portion of a URL: - * - * - Replaces consecutive slashes with one slash. - * - Removes unnecessary '.' parts. - * - Removes unnecessary '

/..' parts. - * - * Based on code in the Node.js 'path' core module. - * - * @param aPath The path or url to normalize. - */ -function normalize(aPath) { - var path = aPath; - var url = urlParse(aPath); - if (url) { - if (!url.path) { - return aPath; - } - path = url.path; - } - var isAbsolute = exports.isAbsolute(path); - - var parts = path.split(/\/+/); - for (var part, up = 0, i = parts.length - 1; i >= 0; i--) { - part = parts[i]; - if (part === '.') { - parts.splice(i, 1); - } else if (part === '..') { - up++; - } else if (up > 0) { - if (part === '') { - // The first part is blank if the path is absolute. Trying to go - // above the root is a no-op. Therefore we can remove all '..' parts - // directly after the root. - parts.splice(i + 1, up); - up = 0; - } else { - parts.splice(i, 2); - up--; - } - } - } - path = parts.join('/'); - - if (path === '') { - path = isAbsolute ? '/' : '.'; - } - - if (url) { - url.path = path; - return urlGenerate(url); - } - return path; -} -exports.normalize = normalize; - -/** - * Joins two paths/URLs. - * - * @param aRoot The root path or URL. - * @param aPath The path or URL to be joined with the root. - * - * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a - * scheme-relative URL: Then the scheme of aRoot, if any, is prepended - * first. - * - Otherwise aPath is a path. If aRoot is a URL, then its path portion - * is updated with the result and aRoot is returned. Otherwise the result - * is returned. - * - If aPath is absolute, the result is aPath. - * - Otherwise the two paths are joined with a slash. - * - Joining for example 'http://' and 'www.example.com' is also supported. - */ -function join(aRoot, aPath) { - if (aRoot === "") { - aRoot = "."; - } - if (aPath === "") { - aPath = "."; - } - var aPathUrl = urlParse(aPath); - var aRootUrl = urlParse(aRoot); - if (aRootUrl) { - aRoot = aRootUrl.path || '/'; - } - - // `join(foo, '//www.example.org')` - if (aPathUrl && !aPathUrl.scheme) { - if (aRootUrl) { - aPathUrl.scheme = aRootUrl.scheme; - } - return urlGenerate(aPathUrl); - } - - if (aPathUrl || aPath.match(dataUrlRegexp)) { - return aPath; - } - - // `join('http://', 'www.example.com')` - if (aRootUrl && !aRootUrl.host && !aRootUrl.path) { - aRootUrl.host = aPath; - return urlGenerate(aRootUrl); - } - - var joined = aPath.charAt(0) === '/' - ? aPath - : normalize(aRoot.replace(/\/+$/, '') + '/' + aPath); - - if (aRootUrl) { - aRootUrl.path = joined; - return urlGenerate(aRootUrl); - } - return joined; -} -exports.join = join; - -exports.isAbsolute = function (aPath) { - return aPath.charAt(0) === '/' || urlRegexp.test(aPath); -}; - -/** - * Make a path relative to a URL or another path. - * - * @param aRoot The root path or URL. - * @param aPath The path or URL to be made relative to aRoot. - */ -function relative(aRoot, aPath) { - if (aRoot === "") { - aRoot = "."; - } - - aRoot = aRoot.replace(/\/$/, ''); - - // It is possible for the path to be above the root. In this case, simply - // checking whether the root is a prefix of the path won't work. Instead, we - // need to remove components from the root one by one, until either we find - // a prefix that fits, or we run out of components to remove. - var level = 0; - while (aPath.indexOf(aRoot + '/') !== 0) { - var index = aRoot.lastIndexOf("/"); - if (index < 0) { - return aPath; - } - - // If the only part of the root that is left is the scheme (i.e. http://, - // file:///, etc.), one or more slashes (/), or simply nothing at all, we - // have exhausted all components, so the path is not relative to the root. - aRoot = aRoot.slice(0, index); - if (aRoot.match(/^([^\/]+:\/)?\/*$/)) { - return aPath; - } - - ++level; - } - - // Make sure we add a "../" for each component we removed from the root. - return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1); -} -exports.relative = relative; - -var supportsNullProto = (function () { - var obj = Object.create(null); - return !('__proto__' in obj); -}()); - -function identity (s) { - return s; -} - -/** - * Because behavior goes wacky when you set `__proto__` on objects, we - * have to prefix all the strings in our set with an arbitrary character. - * - * See https://github.com/mozilla/source-map/pull/31 and - * https://github.com/mozilla/source-map/issues/30 - * - * @param String aStr - */ -function toSetString(aStr) { - if (isProtoString(aStr)) { - return '$' + aStr; - } - - return aStr; -} -exports.toSetString = supportsNullProto ? identity : toSetString; - -function fromSetString(aStr) { - if (isProtoString(aStr)) { - return aStr.slice(1); - } - - return aStr; -} -exports.fromSetString = supportsNullProto ? identity : fromSetString; - -function isProtoString(s) { - if (!s) { - return false; - } - - var length = s.length; - - if (length < 9 /* "__proto__".length */) { - return false; - } - - if (s.charCodeAt(length - 1) !== 95 /* '_' */ || - s.charCodeAt(length - 2) !== 95 /* '_' */ || - s.charCodeAt(length - 3) !== 111 /* 'o' */ || - s.charCodeAt(length - 4) !== 116 /* 't' */ || - s.charCodeAt(length - 5) !== 111 /* 'o' */ || - s.charCodeAt(length - 6) !== 114 /* 'r' */ || - s.charCodeAt(length - 7) !== 112 /* 'p' */ || - s.charCodeAt(length - 8) !== 95 /* '_' */ || - s.charCodeAt(length - 9) !== 95 /* '_' */) { - return false; - } - - for (var i = length - 10; i >= 0; i--) { - if (s.charCodeAt(i) !== 36 /* '$' */) { - return false; - } - } - - return true; -} - -/** - * Comparator between two mappings where the original positions are compared. - * - * Optionally pass in `true` as `onlyCompareGenerated` to consider two - * mappings with the same original source/line/column, but different generated - * line and column the same. Useful when searching for a mapping with a - * stubbed out mapping. - */ -function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) { - var cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0 || onlyCompareOriginal) { - return cmp; - } - - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - - return strcmp(mappingA.name, mappingB.name); -} -exports.compareByOriginalPositions = compareByOriginalPositions; - -/** - * Comparator between two mappings with deflated source and name indices where - * the generated positions are compared. - * - * Optionally pass in `true` as `onlyCompareGenerated` to consider two - * mappings with the same generated line and column, but different - * source/name/original line and column the same. Useful when searching for a - * mapping with a stubbed out mapping. - */ -function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) { - var cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0 || onlyCompareGenerated) { - return cmp; - } - - cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0) { - return cmp; - } - - return strcmp(mappingA.name, mappingB.name); -} -exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated; - -function strcmp(aStr1, aStr2) { - if (aStr1 === aStr2) { - return 0; - } - - if (aStr1 === null) { - return 1; // aStr2 !== null - } - - if (aStr2 === null) { - return -1; // aStr1 !== null - } - - if (aStr1 > aStr2) { - return 1; - } - - return -1; -} - -/** - * Comparator between two mappings with inflated source and name strings where - * the generated positions are compared. - */ -function compareByGeneratedPositionsInflated(mappingA, mappingB) { - var cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0) { - return cmp; - } - - cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0) { - return cmp; - } - - return strcmp(mappingA.name, mappingB.name); -} -exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated; - -/** - * Strip any JSON XSSI avoidance prefix from the string (as documented - * in the source maps specification), and then parse the string as - * JSON. - */ -function parseSourceMapInput(str) { - return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, '')); -} -exports.parseSourceMapInput = parseSourceMapInput; - -/** - * Compute the URL of a source given the the source root, the source's - * URL, and the source map's URL. - */ -function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) { - sourceURL = sourceURL || ''; - - if (sourceRoot) { - // This follows what Chrome does. - if (sourceRoot[sourceRoot.length - 1] !== '/' && sourceURL[0] !== '/') { - sourceRoot += '/'; - } - // The spec says: - // Line 4: An optional source root, useful for relocating source - // files on a server or removing repeated values in the - // “sources” entry. This value is prepended to the individual - // entries in the “source” field. - sourceURL = sourceRoot + sourceURL; - } - - // Historically, SourceMapConsumer did not take the sourceMapURL as - // a parameter. This mode is still somewhat supported, which is why - // this code block is conditional. However, it's preferable to pass - // the source map URL to SourceMapConsumer, so that this function - // can implement the source URL resolution algorithm as outlined in - // the spec. This block is basically the equivalent of: - // new URL(sourceURL, sourceMapURL).toString() - // ... except it avoids using URL, which wasn't available in the - // older releases of node still supported by this library. - // - // The spec says: - // If the sources are not absolute URLs after prepending of the - // “sourceRoot”, the sources are resolved relative to the - // SourceMap (like resolving script src in a html document). - if (sourceMapURL) { - var parsed = urlParse(sourceMapURL); - if (!parsed) { - throw new Error("sourceMapURL could not be parsed"); - } - if (parsed.path) { - // Strip the last path component, but keep the "/". - var index = parsed.path.lastIndexOf('/'); - if (index >= 0) { - parsed.path = parsed.path.substring(0, index + 1); - } - } - sourceURL = join(urlGenerate(parsed), sourceURL); - } - - return normalize(sourceURL); -} -exports.computeSourceURL = computeSourceURL; - - -/***/ }), -/* 9 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _node = __webpack_require__(6); - -var _node2 = _interopRequireDefault(_node); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Namespace = function (_Node) { - _inherits(Namespace, _Node); - - function Namespace() { - _classCallCheck(this, Namespace); - - return _possibleConstructorReturn(this, _Node.apply(this, arguments)); - } - - Namespace.prototype.toString = function toString() { - return [this.spaces.before, this.ns, String(this.value), this.spaces.after].join(''); - }; - - _createClass(Namespace, [{ - key: 'ns', - get: function get() { - var n = this.namespace; - return n ? (typeof n === 'string' ? n : '') + '|' : ''; - } - }]); - - return Namespace; -}(_node2.default); - -exports.default = Namespace; - -module.exports = exports['default']; - -/***/ }), -/* 10 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _container = __webpack_require__(25); - -var _container2 = _interopRequireDefault(_container); - -var _warnOnce = __webpack_require__(4); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -var _list = __webpack_require__(149); - -var _list2 = _interopRequireDefault(_list); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -/** - * Represents a CSS rule: a selector followed by a declaration block. - * - * @extends Container - * - * @example - * const root = postcss.parse('a{}'); - * const rule = root.first; - * rule.type //=> 'rule' - * rule.toString() //=> 'a{}' - */ -var Rule = function (_Container) { - _inherits(Rule, _Container); - - function Rule(defaults) { - _classCallCheck(this, Rule); - - var _this = _possibleConstructorReturn(this, _Container.call(this, defaults)); - - _this.type = 'rule'; - if (!_this.nodes) _this.nodes = []; - return _this; - } - - /** - * An array containing the rule’s individual selectors. - * Groups of selectors are split at commas. - * - * @type {string[]} - * - * @example - * const root = postcss.parse('a, b { }'); - * const rule = root.first; - * - * rule.selector //=> 'a, b' - * rule.selectors //=> ['a', 'b'] - * - * rule.selectors = ['a', 'strong']; - * rule.selector //=> 'a, strong' - */ - - - _createClass(Rule, [{ - key: 'selectors', - get: function get() { - return _list2.default.comma(this.selector); - }, - set: function set(values) { - var match = this.selector ? this.selector.match(/,\s*/) : null; - var sep = match ? match[0] : ',' + this.raw('between', 'beforeOpen'); - this.selector = values.join(sep); - } - }, { - key: '_selector', - get: function get() { - (0, _warnOnce2.default)('Rule#_selector is deprecated. Use Rule#raws.selector'); - return this.raws.selector; - }, - set: function set(val) { - (0, _warnOnce2.default)('Rule#_selector is deprecated. Use Rule#raws.selector'); - this.raws.selector = val; - } - - /** - * @memberof Rule# - * @member {string} selector - the rule’s full selector represented - * as a string - * - * @example - * const root = postcss.parse('a, b { }'); - * const rule = root.first; - * rule.selector //=> 'a, b' - */ - - /** - * @memberof Rule# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `before`: the space symbols before the node. It also stores `*` - * and `_` symbols before the declaration (IE hack). - * * `after`: the space symbols after the last child of the node - * to the end of the node. - * * `between`: the symbols between the property and value - * for declarations, selector and `{` for rules, or last parameter - * and `{` for at-rules. - * * `semicolon`: contains true if the last child has - * an (optional) semicolon. - * - * PostCSS cleans selectors from comments and extra spaces, - * but it stores origin content in raws properties. - * As such, if you don’t change a declaration’s value, - * PostCSS will use the raw value with comments. - * - * @example - * const root = postcss.parse('a {\n color:black\n}') - * root.first.first.raws //=> { before: '', between: ' ', after: '\n' } - */ - - }]); - - return Rule; -}(_container2.default); - -exports.default = Rule; -module.exports = exports['default']; - - - -/***/ }), -/* 11 */ -/***/ (function(module, exports) { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -/** - * This is a helper function for getting values from parameter/options - * objects. - * - * @param args The object we are extracting values from - * @param name The name of the property we are getting. - * @param defaultValue An optional value to return if the property is missing - * from the object. If this is not specified and the property is missing, an - * error will be thrown. - */ -function getArg(aArgs, aName, aDefaultValue) { - if (aName in aArgs) { - return aArgs[aName]; - } else if (arguments.length === 3) { - return aDefaultValue; - } else { - throw new Error('"' + aName + '" is a required argument.'); - } -} -exports.getArg = getArg; - -var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/; -var dataUrlRegexp = /^data:.+\,.+$/; - -function urlParse(aUrl) { - var match = aUrl.match(urlRegexp); - if (!match) { - return null; - } - return { - scheme: match[1], - auth: match[2], - host: match[3], - port: match[4], - path: match[5] - }; -} -exports.urlParse = urlParse; - -function urlGenerate(aParsedUrl) { - var url = ''; - if (aParsedUrl.scheme) { - url += aParsedUrl.scheme + ':'; - } - url += '//'; - if (aParsedUrl.auth) { - url += aParsedUrl.auth + '@'; - } - if (aParsedUrl.host) { - url += aParsedUrl.host; - } - if (aParsedUrl.port) { - url += ":" + aParsedUrl.port; - } - if (aParsedUrl.path) { - url += aParsedUrl.path; - } - return url; -} -exports.urlGenerate = urlGenerate; - -/** - * Normalizes a path, or the path portion of a URL: - * - * - Replaces consecutive slashes with one slash. - * - Removes unnecessary '.' parts. - * - Removes unnecessary '/..' parts. - * - * Based on code in the Node.js 'path' core module. - * - * @param aPath The path or url to normalize. - */ -function normalize(aPath) { - var path = aPath; - var url = urlParse(aPath); - if (url) { - if (!url.path) { - return aPath; - } - path = url.path; - } - var isAbsolute = exports.isAbsolute(path); - - var parts = path.split(/\/+/); - for (var part, up = 0, i = parts.length - 1; i >= 0; i--) { - part = parts[i]; - if (part === '.') { - parts.splice(i, 1); - } else if (part === '..') { - up++; - } else if (up > 0) { - if (part === '') { - // The first part is blank if the path is absolute. Trying to go - // above the root is a no-op. Therefore we can remove all '..' parts - // directly after the root. - parts.splice(i + 1, up); - up = 0; - } else { - parts.splice(i, 2); - up--; - } - } - } - path = parts.join('/'); - - if (path === '') { - path = isAbsolute ? '/' : '.'; - } - - if (url) { - url.path = path; - return urlGenerate(url); - } - return path; -} -exports.normalize = normalize; - -/** - * Joins two paths/URLs. - * - * @param aRoot The root path or URL. - * @param aPath The path or URL to be joined with the root. - * - * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a - * scheme-relative URL: Then the scheme of aRoot, if any, is prepended - * first. - * - Otherwise aPath is a path. If aRoot is a URL, then its path portion - * is updated with the result and aRoot is returned. Otherwise the result - * is returned. - * - If aPath is absolute, the result is aPath. - * - Otherwise the two paths are joined with a slash. - * - Joining for example 'http://' and 'www.example.com' is also supported. - */ -function join(aRoot, aPath) { - if (aRoot === "") { - aRoot = "."; - } - if (aPath === "") { - aPath = "."; - } - var aPathUrl = urlParse(aPath); - var aRootUrl = urlParse(aRoot); - if (aRootUrl) { - aRoot = aRootUrl.path || '/'; - } - - // `join(foo, '//www.example.org')` - if (aPathUrl && !aPathUrl.scheme) { - if (aRootUrl) { - aPathUrl.scheme = aRootUrl.scheme; - } - return urlGenerate(aPathUrl); - } - - if (aPathUrl || aPath.match(dataUrlRegexp)) { - return aPath; - } - - // `join('http://', 'www.example.com')` - if (aRootUrl && !aRootUrl.host && !aRootUrl.path) { - aRootUrl.host = aPath; - return urlGenerate(aRootUrl); - } - - var joined = aPath.charAt(0) === '/' - ? aPath - : normalize(aRoot.replace(/\/+$/, '') + '/' + aPath); - - if (aRootUrl) { - aRootUrl.path = joined; - return urlGenerate(aRootUrl); - } - return joined; -} -exports.join = join; - -exports.isAbsolute = function (aPath) { - return aPath.charAt(0) === '/' || !!aPath.match(urlRegexp); -}; - -/** - * Make a path relative to a URL or another path. - * - * @param aRoot The root path or URL. - * @param aPath The path or URL to be made relative to aRoot. - */ -function relative(aRoot, aPath) { - if (aRoot === "") { - aRoot = "."; - } - - aRoot = aRoot.replace(/\/$/, ''); - - // It is possible for the path to be above the root. In this case, simply - // checking whether the root is a prefix of the path won't work. Instead, we - // need to remove components from the root one by one, until either we find - // a prefix that fits, or we run out of components to remove. - var level = 0; - while (aPath.indexOf(aRoot + '/') !== 0) { - var index = aRoot.lastIndexOf("/"); - if (index < 0) { - return aPath; - } - - // If the only part of the root that is left is the scheme (i.e. http://, - // file:///, etc.), one or more slashes (/), or simply nothing at all, we - // have exhausted all components, so the path is not relative to the root. - aRoot = aRoot.slice(0, index); - if (aRoot.match(/^([^\/]+:\/)?\/*$/)) { - return aPath; - } - - ++level; - } - - // Make sure we add a "../" for each component we removed from the root. - return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1); -} -exports.relative = relative; - -var supportsNullProto = (function () { - var obj = Object.create(null); - return !('__proto__' in obj); -}()); - -function identity (s) { - return s; -} - -/** - * Because behavior goes wacky when you set `__proto__` on objects, we - * have to prefix all the strings in our set with an arbitrary character. - * - * See https://github.com/mozilla/source-map/pull/31 and - * https://github.com/mozilla/source-map/issues/30 - * - * @param String aStr - */ -function toSetString(aStr) { - if (isProtoString(aStr)) { - return '$' + aStr; - } - - return aStr; -} -exports.toSetString = supportsNullProto ? identity : toSetString; - -function fromSetString(aStr) { - if (isProtoString(aStr)) { - return aStr.slice(1); - } - - return aStr; -} -exports.fromSetString = supportsNullProto ? identity : fromSetString; - -function isProtoString(s) { - if (!s) { - return false; - } - - var length = s.length; - - if (length < 9 /* "__proto__".length */) { - return false; - } - - if (s.charCodeAt(length - 1) !== 95 /* '_' */ || - s.charCodeAt(length - 2) !== 95 /* '_' */ || - s.charCodeAt(length - 3) !== 111 /* 'o' */ || - s.charCodeAt(length - 4) !== 116 /* 't' */ || - s.charCodeAt(length - 5) !== 111 /* 'o' */ || - s.charCodeAt(length - 6) !== 114 /* 'r' */ || - s.charCodeAt(length - 7) !== 112 /* 'p' */ || - s.charCodeAt(length - 8) !== 95 /* '_' */ || - s.charCodeAt(length - 9) !== 95 /* '_' */) { - return false; - } - - for (var i = length - 10; i >= 0; i--) { - if (s.charCodeAt(i) !== 36 /* '$' */) { - return false; - } - } - - return true; -} - -/** - * Comparator between two mappings where the original positions are compared. - * - * Optionally pass in `true` as `onlyCompareGenerated` to consider two - * mappings with the same original source/line/column, but different generated - * line and column the same. Useful when searching for a mapping with a - * stubbed out mapping. - */ -function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) { - var cmp = mappingA.source - mappingB.source; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0 || onlyCompareOriginal) { - return cmp; - } - - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - - return mappingA.name - mappingB.name; -} -exports.compareByOriginalPositions = compareByOriginalPositions; - -/** - * Comparator between two mappings with deflated source and name indices where - * the generated positions are compared. - * - * Optionally pass in `true` as `onlyCompareGenerated` to consider two - * mappings with the same generated line and column, but different - * source/name/original line and column the same. Useful when searching for a - * mapping with a stubbed out mapping. - */ -function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) { - var cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0 || onlyCompareGenerated) { - return cmp; - } - - cmp = mappingA.source - mappingB.source; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0) { - return cmp; - } - - return mappingA.name - mappingB.name; -} -exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated; - -function strcmp(aStr1, aStr2) { - if (aStr1 === aStr2) { - return 0; - } - - if (aStr1 > aStr2) { - return 1; - } - - return -1; -} - -/** - * Comparator between two mappings with inflated source and name strings where - * the generated positions are compared. - */ -function compareByGeneratedPositionsInflated(mappingA, mappingB) { - var cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0) { - return cmp; - } - - cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0) { - return cmp; - } - - return strcmp(mappingA.name, mappingB.name); -} -exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated; - - -/***/ }), -/* 12 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = lessStringify; - -var _lessStringifier = __webpack_require__(102); - -var _lessStringifier2 = _interopRequireDefault(_lessStringifier); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function lessStringify(node, builder) { - var str = new _lessStringifier2.default(builder); - - str.stringify(node); -} -module.exports = exports['default']; - -/***/ }), -/* 13 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _declaration = __webpack_require__(38); - -var _declaration2 = _interopRequireDefault(_declaration); - -var _comment = __webpack_require__(17); - -var _comment2 = _interopRequireDefault(_comment); - -var _node = __webpack_require__(19); - -var _node2 = _interopRequireDefault(_node); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -function cleanSource(nodes) { - return nodes.map(function (i) { - if (i.nodes) i.nodes = cleanSource(i.nodes); - delete i.source; - return i; - }); -} - -/** - * The {@link Root}, {@link AtRule}, and {@link Rule} container nodes - * inherit some common methods to help work with their children. - * - * Note that all containers can store any content. If you write a rule inside - * a rule, PostCSS will parse it. - * - * @extends Node - * @abstract - */ - -var Container = function (_Node) { - _inherits(Container, _Node); - - function Container() { - _classCallCheck(this, Container); - - return _possibleConstructorReturn(this, _Node.apply(this, arguments)); - } - - Container.prototype.push = function push(child) { - child.parent = this; - this.nodes.push(child); - return this; - }; - - /** - * Iterates through the container’s immediate children, - * calling `callback` for each child. - * - * Returning `false` in the callback will break iteration. - * - * This method only iterates through the container’s immediate children. - * If you need to recursively iterate through all the container’s descendant - * nodes, use {@link Container#walk}. - * - * Unlike the for `{}`-cycle or `Array#forEach` this iterator is safe - * if you are mutating the array of child nodes during iteration. - * PostCSS will adjust the current index to match the mutations. - * - * @param {childIterator} callback - iterator receives each node and index - * - * @return {false|undefined} returns `false` if iteration was broke - * - * @example - * const root = postcss.parse('a { color: black; z-index: 1 }'); - * const rule = root.first; - * - * for ( let decl of rule.nodes ) { - * decl.cloneBefore({ prop: '-webkit-' + decl.prop }); - * // Cycle will be infinite, because cloneBefore moves the current node - * // to the next index - * } - * - * rule.each(decl => { - * decl.cloneBefore({ prop: '-webkit-' + decl.prop }); - * // Will be executed only for color and z-index - * }); - */ - - - Container.prototype.each = function each(callback) { - if (!this.lastEach) this.lastEach = 0; - if (!this.indexes) this.indexes = {}; - - this.lastEach += 1; - var id = this.lastEach; - this.indexes[id] = 0; - - if (!this.nodes) return undefined; - - var index = void 0, - result = void 0; - while (this.indexes[id] < this.nodes.length) { - index = this.indexes[id]; - result = callback(this.nodes[index], index); - if (result === false) break; - - this.indexes[id] += 1; - } - - delete this.indexes[id]; - - return result; - }; - - /** - * Traverses the container’s descendant nodes, calling callback - * for each node. - * - * Like container.each(), this method is safe to use - * if you are mutating arrays during iteration. - * - * If you only need to iterate through the container’s immediate children, - * use {@link Container#each}. - * - * @param {childIterator} callback - iterator receives each node and index - * - * @return {false|undefined} returns `false` if iteration was broke - * - * @example - * root.walk(node => { - * // Traverses all descendant nodes. - * }); - */ - - - Container.prototype.walk = function walk(callback) { - return this.each(function (child, i) { - var result = callback(child, i); - if (result !== false && child.walk) { - result = child.walk(callback); - } - return result; - }); - }; - - /** - * Traverses the container’s descendant nodes, calling callback - * for each declaration node. - * - * If you pass a filter, iteration will only happen over declarations - * with matching properties. - * - * Like {@link Container#each}, this method is safe - * to use if you are mutating arrays during iteration. - * - * @param {string|RegExp} [prop] - string or regular expression - * to filter declarations by property name - * @param {childIterator} callback - iterator receives each node and index - * - * @return {false|undefined} returns `false` if iteration was broke - * - * @example - * root.walkDecls(decl => { - * checkPropertySupport(decl.prop); - * }); - * - * root.walkDecls('border-radius', decl => { - * decl.remove(); - * }); - * - * root.walkDecls(/^background/, decl => { - * decl.value = takeFirstColorFromGradient(decl.value); - * }); - */ - - - Container.prototype.walkDecls = function walkDecls(prop, callback) { - if (!callback) { - callback = prop; - return this.walk(function (child, i) { - if (child.type === 'decl') { - return callback(child, i); - } - }); - } else if (prop instanceof RegExp) { - return this.walk(function (child, i) { - if (child.type === 'decl' && prop.test(child.prop)) { - return callback(child, i); - } - }); - } else { - return this.walk(function (child, i) { - if (child.type === 'decl' && child.prop === prop) { - return callback(child, i); - } - }); - } - }; - - /** - * Traverses the container’s descendant nodes, calling callback - * for each rule node. - * - * If you pass a filter, iteration will only happen over rules - * with matching selectors. - * - * Like {@link Container#each}, this method is safe - * to use if you are mutating arrays during iteration. - * - * @param {string|RegExp} [selector] - string or regular expression - * to filter rules by selector - * @param {childIterator} callback - iterator receives each node and index - * - * @return {false|undefined} returns `false` if iteration was broke - * - * @example - * const selectors = []; - * root.walkRules(rule => { - * selectors.push(rule.selector); - * }); - * console.log(`Your CSS uses ${selectors.length} selectors`); - */ - - - Container.prototype.walkRules = function walkRules(selector, callback) { - if (!callback) { - callback = selector; - - return this.walk(function (child, i) { - if (child.type === 'rule') { - return callback(child, i); - } - }); - } else if (selector instanceof RegExp) { - return this.walk(function (child, i) { - if (child.type === 'rule' && selector.test(child.selector)) { - return callback(child, i); - } - }); - } else { - return this.walk(function (child, i) { - if (child.type === 'rule' && child.selector === selector) { - return callback(child, i); - } - }); - } - }; - - /** - * Traverses the container’s descendant nodes, calling callback - * for each at-rule node. - * - * If you pass a filter, iteration will only happen over at-rules - * that have matching names. - * - * Like {@link Container#each}, this method is safe - * to use if you are mutating arrays during iteration. - * - * @param {string|RegExp} [name] - string or regular expression - * to filter at-rules by name - * @param {childIterator} callback - iterator receives each node and index - * - * @return {false|undefined} returns `false` if iteration was broke - * - * @example - * root.walkAtRules(rule => { - * if ( isOld(rule.name) ) rule.remove(); - * }); - * - * let first = false; - * root.walkAtRules('charset', rule => { - * if ( !first ) { - * first = true; - * } else { - * rule.remove(); - * } - * }); - */ - - - Container.prototype.walkAtRules = function walkAtRules(name, callback) { - if (!callback) { - callback = name; - return this.walk(function (child, i) { - if (child.type === 'atrule') { - return callback(child, i); - } - }); - } else if (name instanceof RegExp) { - return this.walk(function (child, i) { - if (child.type === 'atrule' && name.test(child.name)) { - return callback(child, i); - } - }); - } else { - return this.walk(function (child, i) { - if (child.type === 'atrule' && child.name === name) { - return callback(child, i); - } - }); - } - }; - - /** - * Traverses the container’s descendant nodes, calling callback - * for each comment node. - * - * Like {@link Container#each}, this method is safe - * to use if you are mutating arrays during iteration. - * - * @param {childIterator} callback - iterator receives each node and index - * - * @return {false|undefined} returns `false` if iteration was broke - * - * @example - * root.walkComments(comment => { - * comment.remove(); - * }); - */ - - - Container.prototype.walkComments = function walkComments(callback) { - return this.walk(function (child, i) { - if (child.type === 'comment') { - return callback(child, i); - } - }); - }; - - /** - * Inserts new nodes to the end of the container. - * - * @param {...(Node|object|string|Node[])} children - new nodes - * - * @return {Node} this node for methods chain - * - * @example - * const decl1 = postcss.decl({ prop: 'color', value: 'black' }); - * const decl2 = postcss.decl({ prop: 'background-color', value: 'white' }); - * rule.append(decl1, decl2); - * - * root.append({ name: 'charset', params: '"UTF-8"' }); // at-rule - * root.append({ selector: 'a' }); // rule - * rule.append({ prop: 'color', value: 'black' }); // declaration - * rule.append({ text: 'Comment' }) // comment - * - * root.append('a {}'); - * root.first.append('color: black; z-index: 1'); - */ - - - Container.prototype.append = function append() { - for (var _len = arguments.length, children = Array(_len), _key = 0; _key < _len; _key++) { - children[_key] = arguments[_key]; - } - - for (var _iterator = children, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var child = _ref; - - var nodes = this.normalize(child, this.last); - for (var _iterator2 = nodes, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) { - var _ref2; - - if (_isArray2) { - if (_i2 >= _iterator2.length) break; - _ref2 = _iterator2[_i2++]; - } else { - _i2 = _iterator2.next(); - if (_i2.done) break; - _ref2 = _i2.value; - } - - var node = _ref2; - this.nodes.push(node); - } - } - return this; - }; - - /** - * Inserts new nodes to the start of the container. - * - * @param {...(Node|object|string|Node[])} children - new nodes - * - * @return {Node} this node for methods chain - * - * @example - * const decl1 = postcss.decl({ prop: 'color', value: 'black' }); - * const decl2 = postcss.decl({ prop: 'background-color', value: 'white' }); - * rule.prepend(decl1, decl2); - * - * root.append({ name: 'charset', params: '"UTF-8"' }); // at-rule - * root.append({ selector: 'a' }); // rule - * rule.append({ prop: 'color', value: 'black' }); // declaration - * rule.append({ text: 'Comment' }) // comment - * - * root.append('a {}'); - * root.first.append('color: black; z-index: 1'); - */ - - - Container.prototype.prepend = function prepend() { - for (var _len2 = arguments.length, children = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - children[_key2] = arguments[_key2]; - } - - children = children.reverse(); - for (var _iterator3 = children, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) { - var _ref3; - - if (_isArray3) { - if (_i3 >= _iterator3.length) break; - _ref3 = _iterator3[_i3++]; - } else { - _i3 = _iterator3.next(); - if (_i3.done) break; - _ref3 = _i3.value; - } - - var child = _ref3; - - var nodes = this.normalize(child, this.first, 'prepend').reverse(); - for (var _iterator4 = nodes, _isArray4 = Array.isArray(_iterator4), _i4 = 0, _iterator4 = _isArray4 ? _iterator4 : _iterator4[Symbol.iterator]();;) { - var _ref4; - - if (_isArray4) { - if (_i4 >= _iterator4.length) break; - _ref4 = _iterator4[_i4++]; - } else { - _i4 = _iterator4.next(); - if (_i4.done) break; - _ref4 = _i4.value; - } - - var node = _ref4; - this.nodes.unshift(node); - }for (var id in this.indexes) { - this.indexes[id] = this.indexes[id] + nodes.length; - } - } - return this; - }; - - Container.prototype.cleanRaws = function cleanRaws(keepBetween) { - _Node.prototype.cleanRaws.call(this, keepBetween); - if (this.nodes) { - for (var _iterator5 = this.nodes, _isArray5 = Array.isArray(_iterator5), _i5 = 0, _iterator5 = _isArray5 ? _iterator5 : _iterator5[Symbol.iterator]();;) { - var _ref5; - - if (_isArray5) { - if (_i5 >= _iterator5.length) break; - _ref5 = _iterator5[_i5++]; - } else { - _i5 = _iterator5.next(); - if (_i5.done) break; - _ref5 = _i5.value; - } - - var node = _ref5; - node.cleanRaws(keepBetween); - } - } - }; - - /** - * Insert new node before old node within the container. - * - * @param {Node|number} exist - child or child’s index. - * @param {Node|object|string|Node[]} add - new node - * - * @return {Node} this node for methods chain - * - * @example - * rule.insertBefore(decl, decl.clone({ prop: '-webkit-' + decl.prop })); - */ - - - Container.prototype.insertBefore = function insertBefore(exist, add) { - exist = this.index(exist); - - var type = exist === 0 ? 'prepend' : false; - var nodes = this.normalize(add, this.nodes[exist], type).reverse(); - for (var _iterator6 = nodes, _isArray6 = Array.isArray(_iterator6), _i6 = 0, _iterator6 = _isArray6 ? _iterator6 : _iterator6[Symbol.iterator]();;) { - var _ref6; - - if (_isArray6) { - if (_i6 >= _iterator6.length) break; - _ref6 = _iterator6[_i6++]; - } else { - _i6 = _iterator6.next(); - if (_i6.done) break; - _ref6 = _i6.value; - } - - var node = _ref6; - this.nodes.splice(exist, 0, node); - }var index = void 0; - for (var id in this.indexes) { - index = this.indexes[id]; - if (exist <= index) { - this.indexes[id] = index + nodes.length; - } - } - - return this; - }; - - /** - * Insert new node after old node within the container. - * - * @param {Node|number} exist - child or child’s index - * @param {Node|object|string|Node[]} add - new node - * - * @return {Node} this node for methods chain - */ - - - Container.prototype.insertAfter = function insertAfter(exist, add) { - exist = this.index(exist); - - var nodes = this.normalize(add, this.nodes[exist]).reverse(); - for (var _iterator7 = nodes, _isArray7 = Array.isArray(_iterator7), _i7 = 0, _iterator7 = _isArray7 ? _iterator7 : _iterator7[Symbol.iterator]();;) { - var _ref7; - - if (_isArray7) { - if (_i7 >= _iterator7.length) break; - _ref7 = _iterator7[_i7++]; - } else { - _i7 = _iterator7.next(); - if (_i7.done) break; - _ref7 = _i7.value; - } - - var node = _ref7; - this.nodes.splice(exist + 1, 0, node); - }var index = void 0; - for (var id in this.indexes) { - index = this.indexes[id]; - if (exist < index) { - this.indexes[id] = index + nodes.length; - } - } - - return this; - }; - - /** - * Removes node from the container and cleans the parent properties - * from the node and its children. - * - * @param {Node|number} child - child or child’s index - * - * @return {Node} this node for methods chain - * - * @example - * rule.nodes.length //=> 5 - * rule.removeChild(decl); - * rule.nodes.length //=> 4 - * decl.parent //=> undefined - */ - - - Container.prototype.removeChild = function removeChild(child) { - child = this.index(child); - this.nodes[child].parent = undefined; - this.nodes.splice(child, 1); - - var index = void 0; - for (var id in this.indexes) { - index = this.indexes[id]; - if (index >= child) { - this.indexes[id] = index - 1; - } - } - - return this; - }; - - /** - * Removes all children from the container - * and cleans their parent properties. - * - * @return {Node} this node for methods chain - * - * @example - * rule.removeAll(); - * rule.nodes.length //=> 0 - */ - - - Container.prototype.removeAll = function removeAll() { - for (var _iterator8 = this.nodes, _isArray8 = Array.isArray(_iterator8), _i8 = 0, _iterator8 = _isArray8 ? _iterator8 : _iterator8[Symbol.iterator]();;) { - var _ref8; - - if (_isArray8) { - if (_i8 >= _iterator8.length) break; - _ref8 = _iterator8[_i8++]; - } else { - _i8 = _iterator8.next(); - if (_i8.done) break; - _ref8 = _i8.value; - } - - var node = _ref8; - node.parent = undefined; - }this.nodes = []; - return this; - }; - - /** - * Passes all declaration values within the container that match pattern - * through callback, replacing those values with the returned result - * of callback. - * - * This method is useful if you are using a custom unit or function - * and need to iterate through all values. - * - * @param {string|RegExp} pattern - replace pattern - * @param {object} opts - options to speed up the search - * @param {string|string[]} opts.props - an array of property names - * @param {string} opts.fast - string that’s used - * to narrow down values and speed up - the regexp search - * @param {function|string} callback - string to replace pattern - * or callback that returns a new - * value. - * The callback will receive - * the same arguments as those - * passed to a function parameter - * of `String#replace`. - * - * @return {Node} this node for methods chain - * - * @example - * root.replaceValues(/\d+rem/, { fast: 'rem' }, string => { - * return 15 * parseInt(string) + 'px'; - * }); - */ - - - Container.prototype.replaceValues = function replaceValues(pattern, opts, callback) { - if (!callback) { - callback = opts; - opts = {}; - } - - this.walkDecls(function (decl) { - if (opts.props && opts.props.indexOf(decl.prop) === -1) return; - if (opts.fast && decl.value.indexOf(opts.fast) === -1) return; - - decl.value = decl.value.replace(pattern, callback); - }); - - return this; - }; - - /** - * Returns `true` if callback returns `true` - * for all of the container’s children. - * - * @param {childCondition} condition - iterator returns true or false. - * - * @return {boolean} is every child pass condition - * - * @example - * const noPrefixes = rule.every(i => i.prop[0] !== '-'); - */ - - - Container.prototype.every = function every(condition) { - return this.nodes.every(condition); - }; - - /** - * Returns `true` if callback returns `true` for (at least) one - * of the container’s children. - * - * @param {childCondition} condition - iterator returns true or false. - * - * @return {boolean} is some child pass condition - * - * @example - * const hasPrefix = rule.some(i => i.prop[0] === '-'); - */ - - - Container.prototype.some = function some(condition) { - return this.nodes.some(condition); - }; - - /** - * Returns a `child`’s index within the {@link Container#nodes} array. - * - * @param {Node} child - child of the current container. - * - * @return {number} child index - * - * @example - * rule.index( rule.nodes[2] ) //=> 2 - */ - - - Container.prototype.index = function index(child) { - if (typeof child === 'number') { - return child; - } else { - return this.nodes.indexOf(child); - } - }; - - /** - * The container’s first child. - * - * @type {Node} - * - * @example - * rule.first == rules.nodes[0]; - */ - - - Container.prototype.normalize = function normalize(nodes, sample) { - var _this2 = this; - - if (typeof nodes === 'string') { - var parse = __webpack_require__(40); - nodes = cleanSource(parse(nodes).nodes); - } else if (Array.isArray(nodes)) { - nodes = nodes.slice(0); - for (var _iterator9 = nodes, _isArray9 = Array.isArray(_iterator9), _i9 = 0, _iterator9 = _isArray9 ? _iterator9 : _iterator9[Symbol.iterator]();;) { - var _ref9; - - if (_isArray9) { - if (_i9 >= _iterator9.length) break; - _ref9 = _iterator9[_i9++]; - } else { - _i9 = _iterator9.next(); - if (_i9.done) break; - _ref9 = _i9.value; - } - - var i = _ref9; - - if (i.parent) i.parent.removeChild(i, 'ignore'); - } - } else if (nodes.type === 'root') { - nodes = nodes.nodes.slice(0); - for (var _iterator10 = nodes, _isArray10 = Array.isArray(_iterator10), _i11 = 0, _iterator10 = _isArray10 ? _iterator10 : _iterator10[Symbol.iterator]();;) { - var _ref10; - - if (_isArray10) { - if (_i11 >= _iterator10.length) break; - _ref10 = _iterator10[_i11++]; - } else { - _i11 = _iterator10.next(); - if (_i11.done) break; - _ref10 = _i11.value; - } - - var _i10 = _ref10; - - if (_i10.parent) _i10.parent.removeChild(_i10, 'ignore'); - } - } else if (nodes.type) { - nodes = [nodes]; - } else if (nodes.prop) { - if (typeof nodes.value === 'undefined') { - throw new Error('Value field is missed in node creation'); - } else if (typeof nodes.value !== 'string') { - nodes.value = String(nodes.value); - } - nodes = [new _declaration2.default(nodes)]; - } else if (nodes.selector) { - var Rule = __webpack_require__(20); - nodes = [new Rule(nodes)]; - } else if (nodes.name) { - var AtRule = __webpack_require__(16); - nodes = [new AtRule(nodes)]; - } else if (nodes.text) { - nodes = [new _comment2.default(nodes)]; - } else { - throw new Error('Unknown node type in node creation'); - } - - var processed = nodes.map(function (i) { - if (typeof i.before !== 'function') i = _this2.rebuild(i); - - if (i.parent) i.parent.removeChild(i); - if (typeof i.raws.before === 'undefined') { - if (sample && typeof sample.raws.before !== 'undefined') { - i.raws.before = sample.raws.before.replace(/[^\s]/g, ''); - } - } - i.parent = _this2; - return i; - }); - - return processed; - }; - - Container.prototype.rebuild = function rebuild(node, parent) { - var _this3 = this; - - var fix = void 0; - if (node.type === 'root') { - var Root = __webpack_require__(42); - fix = new Root(); - } else if (node.type === 'atrule') { - var AtRule = __webpack_require__(16); - fix = new AtRule(); - } else if (node.type === 'rule') { - var Rule = __webpack_require__(20); - fix = new Rule(); - } else if (node.type === 'decl') { - fix = new _declaration2.default(); - } else if (node.type === 'comment') { - fix = new _comment2.default(); - } - - for (var i in node) { - if (i === 'nodes') { - fix.nodes = node.nodes.map(function (j) { - return _this3.rebuild(j, fix); - }); - } else if (i === 'parent' && parent) { - fix.parent = parent; - } else if (node.hasOwnProperty(i)) { - fix[i] = node[i]; - } - } - - return fix; - }; - - /** - * @memberof Container# - * @member {Node[]} nodes - an array containing the container’s children - * - * @example - * const root = postcss.parse('a { color: black }'); - * root.nodes.length //=> 1 - * root.nodes[0].selector //=> 'a' - * root.nodes[0].nodes[0].prop //=> 'color' - */ - - _createClass(Container, [{ - key: 'first', - get: function get() { - if (!this.nodes) return undefined; - return this.nodes[0]; - } - - /** - * The container’s last child. - * - * @type {Node} - * - * @example - * rule.last == rule.nodes[rule.nodes.length - 1]; - */ - - }, { - key: 'last', - get: function get() { - if (!this.nodes) return undefined; - return this.nodes[this.nodes.length - 1]; - } - }]); - - return Container; -}(_node2.default); - -exports.default = Container; - -/** - * @callback childCondition - * @param {Node} node - container child - * @param {number} index - child index - * @param {Node[]} nodes - all container children - * @return {boolean} - */ - -/** - * @callback childIterator - * @param {Node} node - container child - * @param {number} index - child index - * @return {false|undefined} returning `false` will break iteration - */ - -module.exports = exports['default']; - - - -/***/ }), -/* 14 */ -/***/ (function(module, exports) { - -// shim for using process in browser -var process = module.exports = {}; - -// cached from whatever global is present so that test runners that stub it -// don't break things. But we need to wrap it in a try catch in case it is -// wrapped in strict mode code which doesn't define any globals. It's inside a -// function because try/catches deoptimize in certain engines. - -var cachedSetTimeout; -var cachedClearTimeout; - -function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); -} -function defaultClearTimeout () { - throw new Error('clearTimeout has not been defined'); -} -(function () { - try { - if (typeof setTimeout === 'function') { - cachedSetTimeout = setTimeout; - } else { - cachedSetTimeout = defaultSetTimout; - } - } catch (e) { - cachedSetTimeout = defaultSetTimout; - } - try { - if (typeof clearTimeout === 'function') { - cachedClearTimeout = clearTimeout; - } else { - cachedClearTimeout = defaultClearTimeout; - } - } catch (e) { - cachedClearTimeout = defaultClearTimeout; - } -} ()); -function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) { - //normal enviroments in sane situations - return setTimeout(fun, 0); - } - // if setTimeout wasn't available but was latter defined - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { - cachedSetTimeout = setTimeout; - return setTimeout(fun, 0); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedSetTimeout(fun, 0); - } catch(e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedSetTimeout.call(null, fun, 0); - } catch(e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error - return cachedSetTimeout.call(this, fun, 0); - } - } - - -} -function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) { - //normal enviroments in sane situations - return clearTimeout(marker); - } - // if clearTimeout wasn't available but was latter defined - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { - cachedClearTimeout = clearTimeout; - return clearTimeout(marker); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedClearTimeout(marker); - } catch (e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedClearTimeout.call(null, marker); - } catch (e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. - // Some versions of I.E. have different rules for clearTimeout vs setTimeout - return cachedClearTimeout.call(this, marker); - } - } - - - -} -var queue = []; -var draining = false; -var currentQueue; -var queueIndex = -1; - -function cleanUpNextTick() { - if (!draining || !currentQueue) { - return; - } - draining = false; - if (currentQueue.length) { - queue = currentQueue.concat(queue); - } else { - queueIndex = -1; - } - if (queue.length) { - drainQueue(); - } -} - -function drainQueue() { - if (draining) { - return; - } - var timeout = runTimeout(cleanUpNextTick); - draining = true; - - var len = queue.length; - while(len) { - currentQueue = queue; - queue = []; - while (++queueIndex < len) { - if (currentQueue) { - currentQueue[queueIndex].run(); - } - } - queueIndex = -1; - len = queue.length; - } - currentQueue = null; - draining = false; - runClearTimeout(timeout); -} - -process.nextTick = function (fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) { - for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - } - queue.push(new Item(fun, args)); - if (queue.length === 1 && !draining) { - runTimeout(drainQueue); - } -}; - -// v8 likes predictible objects -function Item(fun, array) { - this.fun = fun; - this.array = array; -} -Item.prototype.run = function () { - this.fun.apply(null, this.array); -}; -process.title = 'browser'; -process.browser = true; -process.env = {}; -process.argv = []; -process.version = ''; // empty string to avoid regexp issues -process.versions = {}; - -function noop() {} - -process.on = noop; -process.addListener = noop; -process.once = noop; -process.off = noop; -process.removeListener = noop; -process.removeAllListeners = noop; -process.emit = noop; -process.prependListener = noop; -process.prependOnceListener = noop; - -process.listeners = function (name) { return [] }; - -process.binding = function (name) { - throw new Error('process.binding is not supported'); -}; - -process.cwd = function () { return '/' }; -process.chdir = function (dir) { - throw new Error('process.chdir is not supported'); -}; -process.umask = function() { return 0; }; - - -/***/ }), -/* 15 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(global) {/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ -/* eslint-disable no-proto */ - - - -var base64 = __webpack_require__(92); -var ieee754 = __webpack_require__(96); -var isArray = __webpack_require__(97); - -exports.Buffer = Buffer; -exports.SlowBuffer = SlowBuffer; -exports.INSPECT_MAX_BYTES = 50; - -/** - * If `Buffer.TYPED_ARRAY_SUPPORT`: - * === true Use Uint8Array implementation (fastest) - * === false Use Object implementation (most compatible, even IE6) - * - * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+, - * Opera 11.6+, iOS 4.2+. - * - * Due to various browser bugs, sometimes the Object implementation will be used even - * when the browser supports typed arrays. - * - * Note: - * - * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances, - * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438. - * - * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function. - * - * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of - * incorrect length in some situations. - - * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they - * get the Object implementation, which is slower but behaves correctly. - */ -Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined - ? global.TYPED_ARRAY_SUPPORT - : typedArraySupport(); - -/* - * Export kMaxLength after typed array support is determined. - */ -exports.kMaxLength = kMaxLength(); - -function typedArraySupport () { - try { - var arr = new Uint8Array(1); - arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}; - return arr.foo() === 42 && // typed array instances can be augmented - typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray` - arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray` - } catch (e) { - return false - } -} - -function kMaxLength () { - return Buffer.TYPED_ARRAY_SUPPORT - ? 0x7fffffff - : 0x3fffffff -} - -function createBuffer (that, length) { - if (kMaxLength() < length) { - throw new RangeError('Invalid typed array length') - } - if (Buffer.TYPED_ARRAY_SUPPORT) { - // Return an augmented `Uint8Array` instance, for best performance - that = new Uint8Array(length); - that.__proto__ = Buffer.prototype; - } else { - // Fallback: Return an object instance of the Buffer class - if (that === null) { - that = new Buffer(length); - } - that.length = length; - } - - return that -} - -/** - * The Buffer constructor returns instances of `Uint8Array` that have their - * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of - * `Uint8Array`, so the returned instances will have all the node `Buffer` methods - * and the `Uint8Array` methods. Square bracket notation works as expected -- it - * returns a single octet. - * - * The `Uint8Array` prototype remains unmodified. - */ - -function Buffer (arg, encodingOrOffset, length) { - if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) { - return new Buffer(arg, encodingOrOffset, length) - } - - // Common case. - if (typeof arg === 'number') { - if (typeof encodingOrOffset === 'string') { - throw new Error( - 'If encoding is specified then the first argument must be a string' - ) - } - return allocUnsafe(this, arg) - } - return from(this, arg, encodingOrOffset, length) -} - -Buffer.poolSize = 8192; // not used by this implementation - -// TODO: Legacy, not needed anymore. Remove in next major version. -Buffer._augment = function (arr) { - arr.__proto__ = Buffer.prototype; - return arr -}; - -function from (that, value, encodingOrOffset, length) { - if (typeof value === 'number') { - throw new TypeError('"value" argument must not be a number') - } - - if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) { - return fromArrayBuffer(that, value, encodingOrOffset, length) - } - - if (typeof value === 'string') { - return fromString(that, value, encodingOrOffset) - } - - return fromObject(that, value) -} - -/** - * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError - * if value is a number. - * Buffer.from(str[, encoding]) - * Buffer.from(array) - * Buffer.from(buffer) - * Buffer.from(arrayBuffer[, byteOffset[, length]]) - **/ -Buffer.from = function (value, encodingOrOffset, length) { - return from(null, value, encodingOrOffset, length) -}; - -if (Buffer.TYPED_ARRAY_SUPPORT) { - Buffer.prototype.__proto__ = Uint8Array.prototype; - Buffer.__proto__ = Uint8Array; - if (typeof Symbol !== 'undefined' && Symbol.species && - Buffer[Symbol.species] === Buffer) { - // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97 - Object.defineProperty(Buffer, Symbol.species, { - value: null, - configurable: true - }); - } -} - -function assertSize (size) { - if (typeof size !== 'number') { - throw new TypeError('"size" argument must be a number') - } else if (size < 0) { - throw new RangeError('"size" argument must not be negative') - } -} - -function alloc (that, size, fill, encoding) { - assertSize(size); - if (size <= 0) { - return createBuffer(that, size) - } - if (fill !== undefined) { - // Only pay attention to encoding if it's a string. This - // prevents accidentally sending in a number that would - // be interpretted as a start offset. - return typeof encoding === 'string' - ? createBuffer(that, size).fill(fill, encoding) - : createBuffer(that, size).fill(fill) - } - return createBuffer(that, size) -} - -/** - * Creates a new filled Buffer instance. - * alloc(size[, fill[, encoding]]) - **/ -Buffer.alloc = function (size, fill, encoding) { - return alloc(null, size, fill, encoding) -}; - -function allocUnsafe (that, size) { - assertSize(size); - that = createBuffer(that, size < 0 ? 0 : checked(size) | 0); - if (!Buffer.TYPED_ARRAY_SUPPORT) { - for (var i = 0; i < size; ++i) { - that[i] = 0; - } - } - return that -} - -/** - * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance. - * */ -Buffer.allocUnsafe = function (size) { - return allocUnsafe(null, size) -}; -/** - * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance. - */ -Buffer.allocUnsafeSlow = function (size) { - return allocUnsafe(null, size) -}; - -function fromString (that, string, encoding) { - if (typeof encoding !== 'string' || encoding === '') { - encoding = 'utf8'; - } - - if (!Buffer.isEncoding(encoding)) { - throw new TypeError('"encoding" must be a valid string encoding') - } - - var length = byteLength(string, encoding) | 0; - that = createBuffer(that, length); - - var actual = that.write(string, encoding); - - if (actual !== length) { - // Writing a hex string, for example, that contains invalid characters will - // cause everything after the first invalid character to be ignored. (e.g. - // 'abxxcd' will be treated as 'ab') - that = that.slice(0, actual); - } - - return that -} - -function fromArrayLike (that, array) { - var length = array.length < 0 ? 0 : checked(array.length) | 0; - that = createBuffer(that, length); - for (var i = 0; i < length; i += 1) { - that[i] = array[i] & 255; - } - return that -} - -function fromArrayBuffer (that, array, byteOffset, length) { - array.byteLength; // this throws if `array` is not a valid ArrayBuffer - - if (byteOffset < 0 || array.byteLength < byteOffset) { - throw new RangeError('\'offset\' is out of bounds') - } - - if (array.byteLength < byteOffset + (length || 0)) { - throw new RangeError('\'length\' is out of bounds') - } - - if (byteOffset === undefined && length === undefined) { - array = new Uint8Array(array); - } else if (length === undefined) { - array = new Uint8Array(array, byteOffset); - } else { - array = new Uint8Array(array, byteOffset, length); - } - - if (Buffer.TYPED_ARRAY_SUPPORT) { - // Return an augmented `Uint8Array` instance, for best performance - that = array; - that.__proto__ = Buffer.prototype; - } else { - // Fallback: Return an object instance of the Buffer class - that = fromArrayLike(that, array); - } - return that -} - -function fromObject (that, obj) { - if (Buffer.isBuffer(obj)) { - var len = checked(obj.length) | 0; - that = createBuffer(that, len); - - if (that.length === 0) { - return that - } - - obj.copy(that, 0, 0, len); - return that - } - - if (obj) { - if ((typeof ArrayBuffer !== 'undefined' && - obj.buffer instanceof ArrayBuffer) || 'length' in obj) { - if (typeof obj.length !== 'number' || isnan(obj.length)) { - return createBuffer(that, 0) - } - return fromArrayLike(that, obj) - } - - if (obj.type === 'Buffer' && isArray(obj.data)) { - return fromArrayLike(that, obj.data) - } - } - - throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.') -} - -function checked (length) { - // Note: cannot use `length < kMaxLength()` here because that fails when - // length is NaN (which is otherwise coerced to zero.) - if (length >= kMaxLength()) { - throw new RangeError('Attempt to allocate Buffer larger than maximum ' + - 'size: 0x' + kMaxLength().toString(16) + ' bytes') - } - return length | 0 -} - -function SlowBuffer (length) { - if (+length != length) { // eslint-disable-line eqeqeq - length = 0; - } - return Buffer.alloc(+length) -} - -Buffer.isBuffer = function isBuffer (b) { - return !!(b != null && b._isBuffer) -}; - -Buffer.compare = function compare (a, b) { - if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) { - throw new TypeError('Arguments must be Buffers') - } - - if (a === b) return 0 - - var x = a.length; - var y = b.length; - - for (var i = 0, len = Math.min(x, y); i < len; ++i) { - if (a[i] !== b[i]) { - x = a[i]; - y = b[i]; - break - } - } - - if (x < y) return -1 - if (y < x) return 1 - return 0 -}; - -Buffer.isEncoding = function isEncoding (encoding) { - switch (String(encoding).toLowerCase()) { - case 'hex': - case 'utf8': - case 'utf-8': - case 'ascii': - case 'latin1': - case 'binary': - case 'base64': - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return true - default: - return false - } -}; - -Buffer.concat = function concat (list, length) { - if (!isArray(list)) { - throw new TypeError('"list" argument must be an Array of Buffers') - } - - if (list.length === 0) { - return Buffer.alloc(0) - } - - var i; - if (length === undefined) { - length = 0; - for (i = 0; i < list.length; ++i) { - length += list[i].length; - } - } - - var buffer = Buffer.allocUnsafe(length); - var pos = 0; - for (i = 0; i < list.length; ++i) { - var buf = list[i]; - if (!Buffer.isBuffer(buf)) { - throw new TypeError('"list" argument must be an Array of Buffers') - } - buf.copy(buffer, pos); - pos += buf.length; - } - return buffer -}; - -function byteLength (string, encoding) { - if (Buffer.isBuffer(string)) { - return string.length - } - if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' && - (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) { - return string.byteLength - } - if (typeof string !== 'string') { - string = '' + string; - } - - var len = string.length; - if (len === 0) return 0 - - // Use a for loop to avoid recursion - var loweredCase = false; - for (;;) { - switch (encoding) { - case 'ascii': - case 'latin1': - case 'binary': - return len - case 'utf8': - case 'utf-8': - case undefined: - return utf8ToBytes(string).length - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return len * 2 - case 'hex': - return len >>> 1 - case 'base64': - return base64ToBytes(string).length - default: - if (loweredCase) return utf8ToBytes(string).length // assume utf8 - encoding = ('' + encoding).toLowerCase(); - loweredCase = true; - } - } -} -Buffer.byteLength = byteLength; - -function slowToString (encoding, start, end) { - var loweredCase = false; - - // No need to verify that "this.length <= MAX_UINT32" since it's a read-only - // property of a typed array. - - // This behaves neither like String nor Uint8Array in that we set start/end - // to their upper/lower bounds if the value passed is out of range. - // undefined is handled specially as per ECMA-262 6th Edition, - // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization. - if (start === undefined || start < 0) { - start = 0; - } - // Return early if start > this.length. Done here to prevent potential uint32 - // coercion fail below. - if (start > this.length) { - return '' - } - - if (end === undefined || end > this.length) { - end = this.length; - } - - if (end <= 0) { - return '' - } - - // Force coersion to uint32. This will also coerce falsey/NaN values to 0. - end >>>= 0; - start >>>= 0; - - if (end <= start) { - return '' - } - - if (!encoding) encoding = 'utf8'; - - while (true) { - switch (encoding) { - case 'hex': - return hexSlice(this, start, end) - - case 'utf8': - case 'utf-8': - return utf8Slice(this, start, end) - - case 'ascii': - return asciiSlice(this, start, end) - - case 'latin1': - case 'binary': - return latin1Slice(this, start, end) - - case 'base64': - return base64Slice(this, start, end) - - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return utf16leSlice(this, start, end) - - default: - if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding) - encoding = (encoding + '').toLowerCase(); - loweredCase = true; - } - } -} - -// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect -// Buffer instances. -Buffer.prototype._isBuffer = true; - -function swap (b, n, m) { - var i = b[n]; - b[n] = b[m]; - b[m] = i; -} - -Buffer.prototype.swap16 = function swap16 () { - var len = this.length; - if (len % 2 !== 0) { - throw new RangeError('Buffer size must be a multiple of 16-bits') - } - for (var i = 0; i < len; i += 2) { - swap(this, i, i + 1); - } - return this -}; - -Buffer.prototype.swap32 = function swap32 () { - var len = this.length; - if (len % 4 !== 0) { - throw new RangeError('Buffer size must be a multiple of 32-bits') - } - for (var i = 0; i < len; i += 4) { - swap(this, i, i + 3); - swap(this, i + 1, i + 2); - } - return this -}; - -Buffer.prototype.swap64 = function swap64 () { - var len = this.length; - if (len % 8 !== 0) { - throw new RangeError('Buffer size must be a multiple of 64-bits') - } - for (var i = 0; i < len; i += 8) { - swap(this, i, i + 7); - swap(this, i + 1, i + 6); - swap(this, i + 2, i + 5); - swap(this, i + 3, i + 4); - } - return this -}; - -Buffer.prototype.toString = function toString () { - var length = this.length | 0; - if (length === 0) return '' - if (arguments.length === 0) return utf8Slice(this, 0, length) - return slowToString.apply(this, arguments) -}; - -Buffer.prototype.equals = function equals (b) { - if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer') - if (this === b) return true - return Buffer.compare(this, b) === 0 -}; - -Buffer.prototype.inspect = function inspect () { - var str = ''; - var max = exports.INSPECT_MAX_BYTES; - if (this.length > 0) { - str = this.toString('hex', 0, max).match(/.{2}/g).join(' '); - if (this.length > max) str += ' ... '; - } - return '' -}; - -Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) { - if (!Buffer.isBuffer(target)) { - throw new TypeError('Argument must be a Buffer') - } - - if (start === undefined) { - start = 0; - } - if (end === undefined) { - end = target ? target.length : 0; - } - if (thisStart === undefined) { - thisStart = 0; - } - if (thisEnd === undefined) { - thisEnd = this.length; - } - - if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) { - throw new RangeError('out of range index') - } - - if (thisStart >= thisEnd && start >= end) { - return 0 - } - if (thisStart >= thisEnd) { - return -1 - } - if (start >= end) { - return 1 - } - - start >>>= 0; - end >>>= 0; - thisStart >>>= 0; - thisEnd >>>= 0; - - if (this === target) return 0 - - var x = thisEnd - thisStart; - var y = end - start; - var len = Math.min(x, y); - - var thisCopy = this.slice(thisStart, thisEnd); - var targetCopy = target.slice(start, end); - - for (var i = 0; i < len; ++i) { - if (thisCopy[i] !== targetCopy[i]) { - x = thisCopy[i]; - y = targetCopy[i]; - break - } - } - - if (x < y) return -1 - if (y < x) return 1 - return 0 -}; - -// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`, -// OR the last index of `val` in `buffer` at offset <= `byteOffset`. -// -// Arguments: -// - buffer - a Buffer to search -// - val - a string, Buffer, or number -// - byteOffset - an index into `buffer`; will be clamped to an int32 -// - encoding - an optional encoding, relevant is val is a string -// - dir - true for indexOf, false for lastIndexOf -function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) { - // Empty buffer means no match - if (buffer.length === 0) return -1 - - // Normalize byteOffset - if (typeof byteOffset === 'string') { - encoding = byteOffset; - byteOffset = 0; - } else if (byteOffset > 0x7fffffff) { - byteOffset = 0x7fffffff; - } else if (byteOffset < -0x80000000) { - byteOffset = -0x80000000; - } - byteOffset = +byteOffset; // Coerce to Number. - if (isNaN(byteOffset)) { - // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer - byteOffset = dir ? 0 : (buffer.length - 1); - } - - // Normalize byteOffset: negative offsets start from the end of the buffer - if (byteOffset < 0) byteOffset = buffer.length + byteOffset; - if (byteOffset >= buffer.length) { - if (dir) return -1 - else byteOffset = buffer.length - 1; - } else if (byteOffset < 0) { - if (dir) byteOffset = 0; - else return -1 - } - - // Normalize val - if (typeof val === 'string') { - val = Buffer.from(val, encoding); - } - - // Finally, search either indexOf (if dir is true) or lastIndexOf - if (Buffer.isBuffer(val)) { - // Special case: looking for empty string/buffer always fails - if (val.length === 0) { - return -1 - } - return arrayIndexOf(buffer, val, byteOffset, encoding, dir) - } else if (typeof val === 'number') { - val = val & 0xFF; // Search for a byte value [0-255] - if (Buffer.TYPED_ARRAY_SUPPORT && - typeof Uint8Array.prototype.indexOf === 'function') { - if (dir) { - return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset) - } else { - return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset) - } - } - return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir) - } - - throw new TypeError('val must be string, number or Buffer') -} - -function arrayIndexOf (arr, val, byteOffset, encoding, dir) { - var indexSize = 1; - var arrLength = arr.length; - var valLength = val.length; - - if (encoding !== undefined) { - encoding = String(encoding).toLowerCase(); - if (encoding === 'ucs2' || encoding === 'ucs-2' || - encoding === 'utf16le' || encoding === 'utf-16le') { - if (arr.length < 2 || val.length < 2) { - return -1 - } - indexSize = 2; - arrLength /= 2; - valLength /= 2; - byteOffset /= 2; - } - } - - function read (buf, i) { - if (indexSize === 1) { - return buf[i] - } else { - return buf.readUInt16BE(i * indexSize) - } - } - - var i; - if (dir) { - var foundIndex = -1; - for (i = byteOffset; i < arrLength; i++) { - if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) { - if (foundIndex === -1) foundIndex = i; - if (i - foundIndex + 1 === valLength) return foundIndex * indexSize - } else { - if (foundIndex !== -1) i -= i - foundIndex; - foundIndex = -1; - } - } - } else { - if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength; - for (i = byteOffset; i >= 0; i--) { - var found = true; - for (var j = 0; j < valLength; j++) { - if (read(arr, i + j) !== read(val, j)) { - found = false; - break - } - } - if (found) return i - } - } - - return -1 -} - -Buffer.prototype.includes = function includes (val, byteOffset, encoding) { - return this.indexOf(val, byteOffset, encoding) !== -1 -}; - -Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) { - return bidirectionalIndexOf(this, val, byteOffset, encoding, true) -}; - -Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) { - return bidirectionalIndexOf(this, val, byteOffset, encoding, false) -}; - -function hexWrite (buf, string, offset, length) { - offset = Number(offset) || 0; - var remaining = buf.length - offset; - if (!length) { - length = remaining; - } else { - length = Number(length); - if (length > remaining) { - length = remaining; - } - } - - // must be an even number of digits - var strLen = string.length; - if (strLen % 2 !== 0) throw new TypeError('Invalid hex string') - - if (length > strLen / 2) { - length = strLen / 2; - } - for (var i = 0; i < length; ++i) { - var parsed = parseInt(string.substr(i * 2, 2), 16); - if (isNaN(parsed)) return i - buf[offset + i] = parsed; - } - return i -} - -function utf8Write (buf, string, offset, length) { - return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length) -} - -function asciiWrite (buf, string, offset, length) { - return blitBuffer(asciiToBytes(string), buf, offset, length) -} - -function latin1Write (buf, string, offset, length) { - return asciiWrite(buf, string, offset, length) -} - -function base64Write (buf, string, offset, length) { - return blitBuffer(base64ToBytes(string), buf, offset, length) -} - -function ucs2Write (buf, string, offset, length) { - return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length) -} - -Buffer.prototype.write = function write (string, offset, length, encoding) { - // Buffer#write(string) - if (offset === undefined) { - encoding = 'utf8'; - length = this.length; - offset = 0; - // Buffer#write(string, encoding) - } else if (length === undefined && typeof offset === 'string') { - encoding = offset; - length = this.length; - offset = 0; - // Buffer#write(string, offset[, length][, encoding]) - } else if (isFinite(offset)) { - offset = offset | 0; - if (isFinite(length)) { - length = length | 0; - if (encoding === undefined) encoding = 'utf8'; - } else { - encoding = length; - length = undefined; - } - // legacy write(string, encoding, offset, length) - remove in v0.13 - } else { - throw new Error( - 'Buffer.write(string, encoding, offset[, length]) is no longer supported' - ) - } - - var remaining = this.length - offset; - if (length === undefined || length > remaining) length = remaining; - - if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) { - throw new RangeError('Attempt to write outside buffer bounds') - } - - if (!encoding) encoding = 'utf8'; - - var loweredCase = false; - for (;;) { - switch (encoding) { - case 'hex': - return hexWrite(this, string, offset, length) - - case 'utf8': - case 'utf-8': - return utf8Write(this, string, offset, length) - - case 'ascii': - return asciiWrite(this, string, offset, length) - - case 'latin1': - case 'binary': - return latin1Write(this, string, offset, length) - - case 'base64': - // Warning: maxLength not taken into account in base64Write - return base64Write(this, string, offset, length) - - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return ucs2Write(this, string, offset, length) - - default: - if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding) - encoding = ('' + encoding).toLowerCase(); - loweredCase = true; - } - } -}; - -Buffer.prototype.toJSON = function toJSON () { - return { - type: 'Buffer', - data: Array.prototype.slice.call(this._arr || this, 0) - } -}; - -function base64Slice (buf, start, end) { - if (start === 0 && end === buf.length) { - return base64.fromByteArray(buf) - } else { - return base64.fromByteArray(buf.slice(start, end)) - } -} - -function utf8Slice (buf, start, end) { - end = Math.min(buf.length, end); - var res = []; - - var i = start; - while (i < end) { - var firstByte = buf[i]; - var codePoint = null; - var bytesPerSequence = (firstByte > 0xEF) ? 4 - : (firstByte > 0xDF) ? 3 - : (firstByte > 0xBF) ? 2 - : 1; - - if (i + bytesPerSequence <= end) { - var secondByte, thirdByte, fourthByte, tempCodePoint; - - switch (bytesPerSequence) { - case 1: - if (firstByte < 0x80) { - codePoint = firstByte; - } - break - case 2: - secondByte = buf[i + 1]; - if ((secondByte & 0xC0) === 0x80) { - tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F); - if (tempCodePoint > 0x7F) { - codePoint = tempCodePoint; - } - } - break - case 3: - secondByte = buf[i + 1]; - thirdByte = buf[i + 2]; - if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) { - tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F); - if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) { - codePoint = tempCodePoint; - } - } - break - case 4: - secondByte = buf[i + 1]; - thirdByte = buf[i + 2]; - fourthByte = buf[i + 3]; - if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) { - tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F); - if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) { - codePoint = tempCodePoint; - } - } - } - } - - if (codePoint === null) { - // we did not generate a valid codePoint so insert a - // replacement char (U+FFFD) and advance only 1 byte - codePoint = 0xFFFD; - bytesPerSequence = 1; - } else if (codePoint > 0xFFFF) { - // encode to utf16 (surrogate pair dance) - codePoint -= 0x10000; - res.push(codePoint >>> 10 & 0x3FF | 0xD800); - codePoint = 0xDC00 | codePoint & 0x3FF; - } - - res.push(codePoint); - i += bytesPerSequence; - } - - return decodeCodePointsArray(res) -} - -// Based on http://stackoverflow.com/a/22747272/680742, the browser with -// the lowest limit is Chrome, with 0x10000 args. -// We go 1 magnitude less, for safety -var MAX_ARGUMENTS_LENGTH = 0x1000; - -function decodeCodePointsArray (codePoints) { - var len = codePoints.length; - if (len <= MAX_ARGUMENTS_LENGTH) { - return String.fromCharCode.apply(String, codePoints) // avoid extra slice() - } - - // Decode in chunks to avoid "call stack size exceeded". - var res = ''; - var i = 0; - while (i < len) { - res += String.fromCharCode.apply( - String, - codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH) - ); - } - return res -} - -function asciiSlice (buf, start, end) { - var ret = ''; - end = Math.min(buf.length, end); - - for (var i = start; i < end; ++i) { - ret += String.fromCharCode(buf[i] & 0x7F); - } - return ret -} - -function latin1Slice (buf, start, end) { - var ret = ''; - end = Math.min(buf.length, end); - - for (var i = start; i < end; ++i) { - ret += String.fromCharCode(buf[i]); - } - return ret -} - -function hexSlice (buf, start, end) { - var len = buf.length; - - if (!start || start < 0) start = 0; - if (!end || end < 0 || end > len) end = len; - - var out = ''; - for (var i = start; i < end; ++i) { - out += toHex(buf[i]); - } - return out -} - -function utf16leSlice (buf, start, end) { - var bytes = buf.slice(start, end); - var res = ''; - for (var i = 0; i < bytes.length; i += 2) { - res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256); - } - return res -} - -Buffer.prototype.slice = function slice (start, end) { - var len = this.length; - start = ~~start; - end = end === undefined ? len : ~~end; - - if (start < 0) { - start += len; - if (start < 0) start = 0; - } else if (start > len) { - start = len; - } - - if (end < 0) { - end += len; - if (end < 0) end = 0; - } else if (end > len) { - end = len; - } - - if (end < start) end = start; - - var newBuf; - if (Buffer.TYPED_ARRAY_SUPPORT) { - newBuf = this.subarray(start, end); - newBuf.__proto__ = Buffer.prototype; - } else { - var sliceLen = end - start; - newBuf = new Buffer(sliceLen, undefined); - for (var i = 0; i < sliceLen; ++i) { - newBuf[i] = this[i + start]; - } - } - - return newBuf -}; - -/* - * Need to make sure that buffer isn't trying to write out of bounds. - */ -function checkOffset (offset, ext, length) { - if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint') - if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length') -} - -Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) { - offset = offset | 0; - byteLength = byteLength | 0; - if (!noAssert) checkOffset(offset, byteLength, this.length); - - var val = this[offset]; - var mul = 1; - var i = 0; - while (++i < byteLength && (mul *= 0x100)) { - val += this[offset + i] * mul; - } - - return val -}; - -Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) { - offset = offset | 0; - byteLength = byteLength | 0; - if (!noAssert) { - checkOffset(offset, byteLength, this.length); - } - - var val = this[offset + --byteLength]; - var mul = 1; - while (byteLength > 0 && (mul *= 0x100)) { - val += this[offset + --byteLength] * mul; - } - - return val -}; - -Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) { - if (!noAssert) checkOffset(offset, 1, this.length); - return this[offset] -}; - -Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 2, this.length); - return this[offset] | (this[offset + 1] << 8) -}; - -Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 2, this.length); - return (this[offset] << 8) | this[offset + 1] -}; - -Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length); - - return ((this[offset]) | - (this[offset + 1] << 8) | - (this[offset + 2] << 16)) + - (this[offset + 3] * 0x1000000) -}; - -Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length); - - return (this[offset] * 0x1000000) + - ((this[offset + 1] << 16) | - (this[offset + 2] << 8) | - this[offset + 3]) -}; - -Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) { - offset = offset | 0; - byteLength = byteLength | 0; - if (!noAssert) checkOffset(offset, byteLength, this.length); - - var val = this[offset]; - var mul = 1; - var i = 0; - while (++i < byteLength && (mul *= 0x100)) { - val += this[offset + i] * mul; - } - mul *= 0x80; - - if (val >= mul) val -= Math.pow(2, 8 * byteLength); - - return val -}; - -Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) { - offset = offset | 0; - byteLength = byteLength | 0; - if (!noAssert) checkOffset(offset, byteLength, this.length); - - var i = byteLength; - var mul = 1; - var val = this[offset + --i]; - while (i > 0 && (mul *= 0x100)) { - val += this[offset + --i] * mul; - } - mul *= 0x80; - - if (val >= mul) val -= Math.pow(2, 8 * byteLength); - - return val -}; - -Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) { - if (!noAssert) checkOffset(offset, 1, this.length); - if (!(this[offset] & 0x80)) return (this[offset]) - return ((0xff - this[offset] + 1) * -1) -}; - -Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 2, this.length); - var val = this[offset] | (this[offset + 1] << 8); - return (val & 0x8000) ? val | 0xFFFF0000 : val -}; - -Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 2, this.length); - var val = this[offset + 1] | (this[offset] << 8); - return (val & 0x8000) ? val | 0xFFFF0000 : val -}; - -Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length); - - return (this[offset]) | - (this[offset + 1] << 8) | - (this[offset + 2] << 16) | - (this[offset + 3] << 24) -}; - -Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length); - - return (this[offset] << 24) | - (this[offset + 1] << 16) | - (this[offset + 2] << 8) | - (this[offset + 3]) -}; - -Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length); - return ieee754.read(this, offset, true, 23, 4) -}; - -Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length); - return ieee754.read(this, offset, false, 23, 4) -}; - -Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 8, this.length); - return ieee754.read(this, offset, true, 52, 8) -}; - -Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 8, this.length); - return ieee754.read(this, offset, false, 52, 8) -}; - -function checkInt (buf, value, offset, ext, max, min) { - if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance') - if (value > max || value < min) throw new RangeError('"value" argument is out of bounds') - if (offset + ext > buf.length) throw new RangeError('Index out of range') -} - -Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) { - value = +value; - offset = offset | 0; - byteLength = byteLength | 0; - if (!noAssert) { - var maxBytes = Math.pow(2, 8 * byteLength) - 1; - checkInt(this, value, offset, byteLength, maxBytes, 0); - } - - var mul = 1; - var i = 0; - this[offset] = value & 0xFF; - while (++i < byteLength && (mul *= 0x100)) { - this[offset + i] = (value / mul) & 0xFF; - } - - return offset + byteLength -}; - -Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) { - value = +value; - offset = offset | 0; - byteLength = byteLength | 0; - if (!noAssert) { - var maxBytes = Math.pow(2, 8 * byteLength) - 1; - checkInt(this, value, offset, byteLength, maxBytes, 0); - } - - var i = byteLength - 1; - var mul = 1; - this[offset + i] = value & 0xFF; - while (--i >= 0 && (mul *= 0x100)) { - this[offset + i] = (value / mul) & 0xFF; - } - - return offset + byteLength -}; - -Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0); - if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value); - this[offset] = (value & 0xff); - return offset + 1 -}; - -function objectWriteUInt16 (buf, value, offset, littleEndian) { - if (value < 0) value = 0xffff + value + 1; - for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) { - buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>> - (littleEndian ? i : 1 - i) * 8; - } -} - -Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0); - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value & 0xff); - this[offset + 1] = (value >>> 8); - } else { - objectWriteUInt16(this, value, offset, true); - } - return offset + 2 -}; - -Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0); - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value >>> 8); - this[offset + 1] = (value & 0xff); - } else { - objectWriteUInt16(this, value, offset, false); - } - return offset + 2 -}; - -function objectWriteUInt32 (buf, value, offset, littleEndian) { - if (value < 0) value = 0xffffffff + value + 1; - for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) { - buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff; - } -} - -Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0); - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset + 3] = (value >>> 24); - this[offset + 2] = (value >>> 16); - this[offset + 1] = (value >>> 8); - this[offset] = (value & 0xff); - } else { - objectWriteUInt32(this, value, offset, true); - } - return offset + 4 -}; - -Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0); - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value >>> 24); - this[offset + 1] = (value >>> 16); - this[offset + 2] = (value >>> 8); - this[offset + 3] = (value & 0xff); - } else { - objectWriteUInt32(this, value, offset, false); - } - return offset + 4 -}; - -Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) { - var limit = Math.pow(2, 8 * byteLength - 1); - - checkInt(this, value, offset, byteLength, limit - 1, -limit); - } - - var i = 0; - var mul = 1; - var sub = 0; - this[offset] = value & 0xFF; - while (++i < byteLength && (mul *= 0x100)) { - if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) { - sub = 1; - } - this[offset + i] = ((value / mul) >> 0) - sub & 0xFF; - } - - return offset + byteLength -}; - -Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) { - var limit = Math.pow(2, 8 * byteLength - 1); - - checkInt(this, value, offset, byteLength, limit - 1, -limit); - } - - var i = byteLength - 1; - var mul = 1; - var sub = 0; - this[offset + i] = value & 0xFF; - while (--i >= 0 && (mul *= 0x100)) { - if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) { - sub = 1; - } - this[offset + i] = ((value / mul) >> 0) - sub & 0xFF; - } - - return offset + byteLength -}; - -Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80); - if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value); - if (value < 0) value = 0xff + value + 1; - this[offset] = (value & 0xff); - return offset + 1 -}; - -Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000); - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value & 0xff); - this[offset + 1] = (value >>> 8); - } else { - objectWriteUInt16(this, value, offset, true); - } - return offset + 2 -}; - -Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000); - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value >>> 8); - this[offset + 1] = (value & 0xff); - } else { - objectWriteUInt16(this, value, offset, false); - } - return offset + 2 -}; - -Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000); - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value & 0xff); - this[offset + 1] = (value >>> 8); - this[offset + 2] = (value >>> 16); - this[offset + 3] = (value >>> 24); - } else { - objectWriteUInt32(this, value, offset, true); - } - return offset + 4 -}; - -Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000); - if (value < 0) value = 0xffffffff + value + 1; - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value >>> 24); - this[offset + 1] = (value >>> 16); - this[offset + 2] = (value >>> 8); - this[offset + 3] = (value & 0xff); - } else { - objectWriteUInt32(this, value, offset, false); - } - return offset + 4 -}; - -function checkIEEE754 (buf, value, offset, ext, max, min) { - if (offset + ext > buf.length) throw new RangeError('Index out of range') - if (offset < 0) throw new RangeError('Index out of range') -} - -function writeFloat (buf, value, offset, littleEndian, noAssert) { - if (!noAssert) { - checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38); - } - ieee754.write(buf, value, offset, littleEndian, 23, 4); - return offset + 4 -} - -Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) { - return writeFloat(this, value, offset, true, noAssert) -}; - -Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) { - return writeFloat(this, value, offset, false, noAssert) -}; - -function writeDouble (buf, value, offset, littleEndian, noAssert) { - if (!noAssert) { - checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308); - } - ieee754.write(buf, value, offset, littleEndian, 52, 8); - return offset + 8 -} - -Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) { - return writeDouble(this, value, offset, true, noAssert) -}; - -Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) { - return writeDouble(this, value, offset, false, noAssert) -}; - -// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length) -Buffer.prototype.copy = function copy (target, targetStart, start, end) { - if (!start) start = 0; - if (!end && end !== 0) end = this.length; - if (targetStart >= target.length) targetStart = target.length; - if (!targetStart) targetStart = 0; - if (end > 0 && end < start) end = start; - - // Copy 0 bytes; we're done - if (end === start) return 0 - if (target.length === 0 || this.length === 0) return 0 - - // Fatal error conditions - if (targetStart < 0) { - throw new RangeError('targetStart out of bounds') - } - if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds') - if (end < 0) throw new RangeError('sourceEnd out of bounds') - - // Are we oob? - if (end > this.length) end = this.length; - if (target.length - targetStart < end - start) { - end = target.length - targetStart + start; - } - - var len = end - start; - var i; - - if (this === target && start < targetStart && targetStart < end) { - // descending copy from end - for (i = len - 1; i >= 0; --i) { - target[i + targetStart] = this[i + start]; - } - } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) { - // ascending copy from start - for (i = 0; i < len; ++i) { - target[i + targetStart] = this[i + start]; - } - } else { - Uint8Array.prototype.set.call( - target, - this.subarray(start, start + len), - targetStart - ); - } - - return len -}; - -// Usage: -// buffer.fill(number[, offset[, end]]) -// buffer.fill(buffer[, offset[, end]]) -// buffer.fill(string[, offset[, end]][, encoding]) -Buffer.prototype.fill = function fill (val, start, end, encoding) { - // Handle string cases: - if (typeof val === 'string') { - if (typeof start === 'string') { - encoding = start; - start = 0; - end = this.length; - } else if (typeof end === 'string') { - encoding = end; - end = this.length; - } - if (val.length === 1) { - var code = val.charCodeAt(0); - if (code < 256) { - val = code; - } - } - if (encoding !== undefined && typeof encoding !== 'string') { - throw new TypeError('encoding must be a string') - } - if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) { - throw new TypeError('Unknown encoding: ' + encoding) - } - } else if (typeof val === 'number') { - val = val & 255; - } - - // Invalid ranges are not set to a default, so can range check early. - if (start < 0 || this.length < start || this.length < end) { - throw new RangeError('Out of range index') - } - - if (end <= start) { - return this - } - - start = start >>> 0; - end = end === undefined ? this.length : end >>> 0; - - if (!val) val = 0; - - var i; - if (typeof val === 'number') { - for (i = start; i < end; ++i) { - this[i] = val; - } - } else { - var bytes = Buffer.isBuffer(val) - ? val - : utf8ToBytes(new Buffer(val, encoding).toString()); - var len = bytes.length; - for (i = 0; i < end - start; ++i) { - this[i + start] = bytes[i % len]; - } - } - - return this -}; - -// HELPER FUNCTIONS -// ================ - -var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g; - -function base64clean (str) { - // Node strips out invalid characters like \n and \t from the string, base64-js does not - str = stringtrim(str).replace(INVALID_BASE64_RE, ''); - // Node converts strings with length < 2 to '' - if (str.length < 2) return '' - // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not - while (str.length % 4 !== 0) { - str = str + '='; - } - return str -} - -function stringtrim (str) { - if (str.trim) return str.trim() - return str.replace(/^\s+|\s+$/g, '') -} - -function toHex (n) { - if (n < 16) return '0' + n.toString(16) - return n.toString(16) -} - -function utf8ToBytes (string, units) { - units = units || Infinity; - var codePoint; - var length = string.length; - var leadSurrogate = null; - var bytes = []; - - for (var i = 0; i < length; ++i) { - codePoint = string.charCodeAt(i); - - // is surrogate component - if (codePoint > 0xD7FF && codePoint < 0xE000) { - // last char was a lead - if (!leadSurrogate) { - // no lead yet - if (codePoint > 0xDBFF) { - // unexpected trail - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD); - continue - } else if (i + 1 === length) { - // unpaired lead - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD); - continue - } - - // valid lead - leadSurrogate = codePoint; - - continue - } - - // 2 leads in a row - if (codePoint < 0xDC00) { - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD); - leadSurrogate = codePoint; - continue - } - - // valid surrogate pair - codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000; - } else if (leadSurrogate) { - // valid bmp char, but last char was a lead - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD); - } - - leadSurrogate = null; - - // encode utf8 - if (codePoint < 0x80) { - if ((units -= 1) < 0) break - bytes.push(codePoint); - } else if (codePoint < 0x800) { - if ((units -= 2) < 0) break - bytes.push( - codePoint >> 0x6 | 0xC0, - codePoint & 0x3F | 0x80 - ); - } else if (codePoint < 0x10000) { - if ((units -= 3) < 0) break - bytes.push( - codePoint >> 0xC | 0xE0, - codePoint >> 0x6 & 0x3F | 0x80, - codePoint & 0x3F | 0x80 - ); - } else if (codePoint < 0x110000) { - if ((units -= 4) < 0) break - bytes.push( - codePoint >> 0x12 | 0xF0, - codePoint >> 0xC & 0x3F | 0x80, - codePoint >> 0x6 & 0x3F | 0x80, - codePoint & 0x3F | 0x80 - ); - } else { - throw new Error('Invalid code point') - } - } - - return bytes -} - -function asciiToBytes (str) { - var byteArray = []; - for (var i = 0; i < str.length; ++i) { - // Node's code seems to be doing this and not & 0x7F.. - byteArray.push(str.charCodeAt(i) & 0xFF); - } - return byteArray -} - -function utf16leToBytes (str, units) { - var c, hi, lo; - var byteArray = []; - for (var i = 0; i < str.length; ++i) { - if ((units -= 2) < 0) break - - c = str.charCodeAt(i); - hi = c >> 8; - lo = c % 256; - byteArray.push(lo); - byteArray.push(hi); - } - - return byteArray -} - -function base64ToBytes (str) { - return base64.toByteArray(base64clean(str)) -} - -function blitBuffer (src, dst, offset, length) { - for (var i = 0; i < length; ++i) { - if ((i + offset >= dst.length) || (i >= src.length)) break - dst[i + offset] = src[i]; - } - return i -} - -function isnan (val) { - return val !== val // eslint-disable-line no-self-compare -} - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(30))); - -/***/ }), -/* 16 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _container = __webpack_require__(13); - -var _container2 = _interopRequireDefault(_container); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -/** - * Represents an at-rule. - * - * If it’s followed in the CSS by a {} block, this node will have - * a nodes property representing its children. - * - * @extends Container - * - * @example - * const root = postcss.parse('@charset "UTF-8"; @media print {}'); - * - * const charset = root.first; - * charset.type //=> 'atrule' - * charset.nodes //=> undefined - * - * const media = root.last; - * media.nodes //=> [] - */ -var AtRule = function (_Container) { - _inherits(AtRule, _Container); - - function AtRule(defaults) { - _classCallCheck(this, AtRule); - - var _this = _possibleConstructorReturn(this, _Container.call(this, defaults)); - - _this.type = 'atrule'; - return _this; - } - - AtRule.prototype.append = function append() { - var _Container$prototype$; - - if (!this.nodes) this.nodes = []; - - for (var _len = arguments.length, children = Array(_len), _key = 0; _key < _len; _key++) { - children[_key] = arguments[_key]; - } - - return (_Container$prototype$ = _Container.prototype.append).call.apply(_Container$prototype$, [this].concat(children)); - }; - - AtRule.prototype.prepend = function prepend() { - var _Container$prototype$2; - - if (!this.nodes) this.nodes = []; - - for (var _len2 = arguments.length, children = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - children[_key2] = arguments[_key2]; - } - - return (_Container$prototype$2 = _Container.prototype.prepend).call.apply(_Container$prototype$2, [this].concat(children)); - }; - - /** - * @memberof AtRule# - * @member {string} name - the at-rule’s name immediately follows the `@` - * - * @example - * const root = postcss.parse('@media print {}'); - * media.name //=> 'media' - * const media = root.first; - */ - - /** - * @memberof AtRule# - * @member {string} params - the at-rule’s parameters, the values - * that follow the at-rule’s name but precede - * any {} block - * - * @example - * const root = postcss.parse('@media print, screen {}'); - * const media = root.first; - * media.params //=> 'print, screen' - */ - - /** - * @memberof AtRule# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `before`: the space symbols before the node. It also stores `*` - * and `_` symbols before the declaration (IE hack). - * * `after`: the space symbols after the last child of the node - * to the end of the node. - * * `between`: the symbols between the property and value - * for declarations, selector and `{` for rules, or last parameter - * and `{` for at-rules. - * * `semicolon`: contains true if the last child has - * an (optional) semicolon. - * * `afterName`: the space between the at-rule name and its parameters. - * - * PostCSS cleans at-rule parameters from comments and extra spaces, - * but it stores origin content in raws properties. - * As such, if you don’t change a declaration’s value, - * PostCSS will use the raw value with comments. - * - * @example - * const root = postcss.parse(' @media\nprint {\n}') - * root.first.first.raws //=> { before: ' ', - * // between: ' ', - * // afterName: '\n', - * // after: '\n' } - */ - - - return AtRule; -}(_container2.default); - -exports.default = AtRule; -module.exports = exports['default']; - - - -/***/ }), -/* 17 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _node = __webpack_require__(19); - -var _node2 = _interopRequireDefault(_node); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -/** - * Represents a comment between declarations or statements (rule and at-rules). - * - * Comments inside selectors, at-rule parameters, or declaration values - * will be stored in the `raws` properties explained above. - * - * @extends Node - */ -var Comment = function (_Node) { - _inherits(Comment, _Node); - - function Comment(defaults) { - _classCallCheck(this, Comment); - - var _this = _possibleConstructorReturn(this, _Node.call(this, defaults)); - - _this.type = 'comment'; - return _this; - } - - /** - * @memberof Comment# - * @member {string} text - the comment’s text - */ - - /** - * @memberof Comment# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `before`: the space symbols before the node. - * * `left`: the space symbols between `/*` and the comment’s text. - * * `right`: the space symbols between the comment’s text. - */ - - - return Comment; -}(_node2.default); - -exports.default = Comment; -module.exports = exports['default']; - - - -/***/ }), -/* 18 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _cssSyntaxError = __webpack_require__(37); - -var _cssSyntaxError2 = _interopRequireDefault(_cssSyntaxError); - -var _previousMap = __webpack_require__(128); - -var _previousMap2 = _interopRequireDefault(_previousMap); - -var _path = __webpack_require__(5); - -var _path2 = _interopRequireDefault(_path); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var sequence = 0; - -/** - * Represents the source CSS. - * - * @example - * const root = postcss.parse(css, { from: file }); - * const input = root.source.input; - */ - -var Input = function () { - - /** - * @param {string} css - input CSS source - * @param {object} [opts] - {@link Processor#process} options - */ - function Input(css) { - var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - _classCallCheck(this, Input); - - /** - * @member {string} - input CSS source - * - * @example - * const input = postcss.parse('a{}', { from: file }).input; - * input.css //=> "a{}"; - */ - this.css = css.toString(); - - if (this.css[0] === '\uFEFF' || this.css[0] === '\uFFFE') { - this.css = this.css.slice(1); - } - - if (opts.from) { - if (/^\w+:\/\//.test(opts.from)) { - /** - * @member {string} - The absolute path to the CSS source file - * defined with the `from` option. - * - * @example - * const root = postcss.parse(css, { from: 'a.css' }); - * root.source.input.file //=> '/home/ai/a.css' - */ - this.file = opts.from; - } else { - this.file = _path2.default.resolve(opts.from); - } - } - - var map = new _previousMap2.default(this.css, opts); - if (map.text) { - /** - * @member {PreviousMap} - The input source map passed from - * a compilation step before PostCSS - * (for example, from Sass compiler). - * - * @example - * root.source.input.map.consumer().sources //=> ['a.sass'] - */ - this.map = map; - var file = map.consumer().file; - if (!this.file && file) this.file = this.mapResolve(file); - } - - if (!this.file) { - sequence += 1; - /** - * @member {string} - The unique ID of the CSS source. It will be - * created if `from` option is not provided - * (because PostCSS does not know the file path). - * - * @example - * const root = postcss.parse(css); - * root.source.input.file //=> undefined - * root.source.input.id //=> "" - */ - this.id = ''; - } - if (this.map) this.map.file = this.from; - } - - Input.prototype.error = function error(message, line, column) { - var opts = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; - - var result = void 0; - var origin = this.origin(line, column); - if (origin) { - result = new _cssSyntaxError2.default(message, origin.line, origin.column, origin.source, origin.file, opts.plugin); - } else { - result = new _cssSyntaxError2.default(message, line, column, this.css, this.file, opts.plugin); - } - - result.input = { line: line, column: column, source: this.css }; - if (this.file) result.input.file = this.file; - - return result; - }; - - /** - * Reads the input source map and returns a symbol position - * in the input source (e.g., in a Sass file that was compiled - * to CSS before being passed to PostCSS). - * - * @param {number} line - line in input CSS - * @param {number} column - column in input CSS - * - * @return {filePosition} position in input source - * - * @example - * root.source.input.origin(1, 1) //=> { file: 'a.css', line: 3, column: 1 } - */ - - - Input.prototype.origin = function origin(line, column) { - if (!this.map) return false; - var consumer = this.map.consumer(); - - var from = consumer.originalPositionFor({ line: line, column: column }); - if (!from.source) return false; - - var result = { - file: this.mapResolve(from.source), - line: from.line, - column: from.column - }; - - var source = consumer.sourceContentFor(from.source); - if (source) result.source = source; - - return result; - }; - - Input.prototype.mapResolve = function mapResolve(file) { - if (/^\w+:\/\//.test(file)) { - return file; - } else { - return _path2.default.resolve(this.map.consumer().sourceRoot || '.', file); - } - }; - - /** - * The CSS source identifier. Contains {@link Input#file} if the user - * set the `from` option, or {@link Input#id} if they did not. - * @type {string} - * - * @example - * const root = postcss.parse(css, { from: 'a.css' }); - * root.source.input.from //=> "/home/ai/a.css" - * - * const root = postcss.parse(css); - * root.source.input.from //=> "" - */ - - - _createClass(Input, [{ - key: 'from', - get: function get() { - return this.file || this.id; - } - }]); - - return Input; -}(); - -exports.default = Input; - -/** - * @typedef {object} filePosition - * @property {string} file - path to file - * @property {number} line - source line in file - * @property {number} column - source column in file - */ - -module.exports = exports['default']; - - - -/***/ }), -/* 19 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _cssSyntaxError = __webpack_require__(37); - -var _cssSyntaxError2 = _interopRequireDefault(_cssSyntaxError); - -var _stringifier = __webpack_require__(21); - -var _stringifier2 = _interopRequireDefault(_stringifier); - -var _stringify = __webpack_require__(43); - -var _stringify2 = _interopRequireDefault(_stringify); - -var _warnOnce = __webpack_require__(132); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var cloneNode = function cloneNode(obj, parent) { - var cloned = new obj.constructor(); - - for (var i in obj) { - if (!obj.hasOwnProperty(i)) continue; - var value = obj[i]; - var type = typeof value === 'undefined' ? 'undefined' : _typeof(value); - - if (i === 'parent' && type === 'object') { - if (parent) cloned[i] = parent; - } else if (i === 'source') { - cloned[i] = value; - } else if (value instanceof Array) { - cloned[i] = value.map(function (j) { - return cloneNode(j, cloned); - }); - } else { - if (type === 'object' && value !== null) value = cloneNode(value); - cloned[i] = value; - } - } - - return cloned; -}; - -/** - * All node classes inherit the following common methods. - * - * @abstract - */ - -var Node = function () { - - /** - * @param {object} [defaults] - value for node properties - */ - function Node() { - var defaults = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - _classCallCheck(this, Node); - - this.raws = {}; - if ((typeof defaults === 'undefined' ? 'undefined' : _typeof(defaults)) !== 'object' && typeof defaults !== 'undefined') { - throw new Error('PostCSS nodes constructor accepts object, not ' + JSON.stringify(defaults)); - } - for (var name in defaults) { - this[name] = defaults[name]; - } - } - - /** - * Returns a CssSyntaxError instance containing the original position - * of the node in the source, showing line and column numbers and also - * a small excerpt to facilitate debugging. - * - * If present, an input source map will be used to get the original position - * of the source, even from a previous compilation step - * (e.g., from Sass compilation). - * - * This method produces very useful error messages. - * - * @param {string} message - error description - * @param {object} [opts] - options - * @param {string} opts.plugin - plugin name that created this error. - * PostCSS will set it automatically. - * @param {string} opts.word - a word inside a node’s string that should - * be highlighted as the source of the error - * @param {number} opts.index - an index inside a node’s string that should - * be highlighted as the source of the error - * - * @return {CssSyntaxError} error object to throw it - * - * @example - * if ( !variables[name] ) { - * throw decl.error('Unknown variable ' + name, { word: name }); - * // CssSyntaxError: postcss-vars:a.sass:4:3: Unknown variable $black - * // color: $black - * // a - * // ^ - * // background: white - * } - */ - - - Node.prototype.error = function error(message) { - var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - if (this.source) { - var pos = this.positionBy(opts); - return this.source.input.error(message, pos.line, pos.column, opts); - } else { - return new _cssSyntaxError2.default(message); - } - }; - - /** - * This method is provided as a convenience wrapper for {@link Result#warn}. - * - * @param {Result} result - the {@link Result} instance - * that will receive the warning - * @param {string} text - warning message - * @param {object} [opts] - options - * @param {string} opts.plugin - plugin name that created this warning. - * PostCSS will set it automatically. - * @param {string} opts.word - a word inside a node’s string that should - * be highlighted as the source of the warning - * @param {number} opts.index - an index inside a node’s string that should - * be highlighted as the source of the warning - * - * @return {Warning} created warning object - * - * @example - * const plugin = postcss.plugin('postcss-deprecated', () => { - * return (root, result) => { - * root.walkDecls('bad', decl => { - * decl.warn(result, 'Deprecated property bad'); - * }); - * }; - * }); - */ - - - Node.prototype.warn = function warn(result, text, opts) { - var data = { node: this }; - for (var i in opts) { - data[i] = opts[i]; - }return result.warn(text, data); - }; - - /** - * Removes the node from its parent and cleans the parent properties - * from the node and its children. - * - * @example - * if ( decl.prop.match(/^-webkit-/) ) { - * decl.remove(); - * } - * - * @return {Node} node to make calls chain - */ - - - Node.prototype.remove = function remove() { - if (this.parent) { - this.parent.removeChild(this); - } - this.parent = undefined; - return this; - }; - - /** - * Returns a CSS string representing the node. - * - * @param {stringifier|syntax} [stringifier] - a syntax to use - * in string generation - * - * @return {string} CSS string of this node - * - * @example - * postcss.rule({ selector: 'a' }).toString() //=> "a {}" - */ - - - Node.prototype.toString = function toString() { - var stringifier = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _stringify2.default; - - if (stringifier.stringify) stringifier = stringifier.stringify; - var result = ''; - stringifier(this, function (i) { - result += i; - }); - return result; - }; - - /** - * Returns a clone of the node. - * - * The resulting cloned node and its (cloned) children will have - * a clean parent and code style properties. - * - * @param {object} [overrides] - new properties to override in the clone. - * - * @example - * const cloned = decl.clone({ prop: '-moz-' + decl.prop }); - * cloned.raws.before //=> undefined - * cloned.parent //=> undefined - * cloned.toString() //=> -moz-transform: scale(0) - * - * @return {Node} clone of the node - */ - - - Node.prototype.clone = function clone() { - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var cloned = cloneNode(this); - for (var name in overrides) { - cloned[name] = overrides[name]; - } - return cloned; - }; - - /** - * Shortcut to clone the node and insert the resulting cloned node - * before the current node. - * - * @param {object} [overrides] - new properties to override in the clone. - * - * @example - * decl.cloneBefore({ prop: '-moz-' + decl.prop }); - * - * @return {Node} - new node - */ - - - Node.prototype.cloneBefore = function cloneBefore() { - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var cloned = this.clone(overrides); - this.parent.insertBefore(this, cloned); - return cloned; - }; - - /** - * Shortcut to clone the node and insert the resulting cloned node - * after the current node. - * - * @param {object} [overrides] - new properties to override in the clone. - * - * @return {Node} - new node - */ - - - Node.prototype.cloneAfter = function cloneAfter() { - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var cloned = this.clone(overrides); - this.parent.insertAfter(this, cloned); - return cloned; - }; - - /** - * Inserts node(s) before the current node and removes the current node. - * - * @param {...Node} nodes - node(s) to replace current one - * - * @example - * if ( atrule.name == 'mixin' ) { - * atrule.replaceWith(mixinRules[atrule.params]); - * } - * - * @return {Node} current node to methods chain - */ - - - Node.prototype.replaceWith = function replaceWith() { - if (this.parent) { - for (var _len = arguments.length, nodes = Array(_len), _key = 0; _key < _len; _key++) { - nodes[_key] = arguments[_key]; - } - - for (var _iterator = nodes, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var node = _ref; - - this.parent.insertBefore(this, node); - } - - this.remove(); - } - - return this; - }; - - Node.prototype.moveTo = function moveTo(newParent) { - (0, _warnOnce2.default)('Node#moveTo was deprecated. Use Container#append.'); - this.cleanRaws(this.root() === newParent.root()); - this.remove(); - newParent.append(this); - return this; - }; - - Node.prototype.moveBefore = function moveBefore(otherNode) { - (0, _warnOnce2.default)('Node#moveBefore was deprecated. Use Node#before.'); - this.cleanRaws(this.root() === otherNode.root()); - this.remove(); - otherNode.parent.insertBefore(otherNode, this); - return this; - }; - - Node.prototype.moveAfter = function moveAfter(otherNode) { - (0, _warnOnce2.default)('Node#moveAfter was deprecated. Use Node#after.'); - this.cleanRaws(this.root() === otherNode.root()); - this.remove(); - otherNode.parent.insertAfter(otherNode, this); - return this; - }; - - /** - * Returns the next child of the node’s parent. - * Returns `undefined` if the current node is the last child. - * - * @return {Node|undefined} next node - * - * @example - * if ( comment.text === 'delete next' ) { - * const next = comment.next(); - * if ( next ) { - * next.remove(); - * } - * } - */ - - - Node.prototype.next = function next() { - var index = this.parent.index(this); - return this.parent.nodes[index + 1]; - }; - - /** - * Returns the previous child of the node’s parent. - * Returns `undefined` if the current node is the first child. - * - * @return {Node|undefined} previous node - * - * @example - * const annotation = decl.prev(); - * if ( annotation.type == 'comment' ) { - * readAnnotation(annotation.text); - * } - */ - - - Node.prototype.prev = function prev() { - var index = this.parent.index(this); - return this.parent.nodes[index - 1]; - }; - - /** - * Insert new node before current node to current node’s parent. - * - * Just alias for `node.parent.insertBefore(node, add)`. - * - * @param {Node|object|string|Node[]} add - new node - * - * @return {Node} this node for methods chain. - * - * @example - * decl.before('content: ""'); - */ - - - Node.prototype.before = function before(add) { - this.parent.insertBefore(this, add); - return this; - }; - - /** - * Insert new node after current node to current node’s parent. - * - * Just alias for `node.parent.insertAfter(node, add)`. - * - * @param {Node|object|string|Node[]} add - new node - * - * @return {Node} this node for methods chain. - * - * @example - * decl.after('color: black'); - */ - - - Node.prototype.after = function after(add) { - this.parent.insertAfter(this, add); - return this; - }; - - Node.prototype.toJSON = function toJSON() { - var fixed = {}; - - for (var name in this) { - if (!this.hasOwnProperty(name)) continue; - if (name === 'parent') continue; - var value = this[name]; - - if (value instanceof Array) { - fixed[name] = value.map(function (i) { - if ((typeof i === 'undefined' ? 'undefined' : _typeof(i)) === 'object' && i.toJSON) { - return i.toJSON(); - } else { - return i; - } - }); - } else if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && value.toJSON) { - fixed[name] = value.toJSON(); - } else { - fixed[name] = value; - } - } - - return fixed; - }; - - /** - * Returns a {@link Node#raws} value. If the node is missing - * the code style property (because the node was manually built or cloned), - * PostCSS will try to autodetect the code style property by looking - * at other nodes in the tree. - * - * @param {string} prop - name of code style property - * @param {string} [defaultType] - name of default value, it can be missed - * if the value is the same as prop - * - * @example - * const root = postcss.parse('a { background: white }'); - * root.nodes[0].append({ prop: 'color', value: 'black' }); - * root.nodes[0].nodes[1].raws.before //=> undefined - * root.nodes[0].nodes[1].raw('before') //=> ' ' - * - * @return {string} code style value - */ - - - Node.prototype.raw = function raw(prop, defaultType) { - var str = new _stringifier2.default(); - return str.raw(this, prop, defaultType); - }; - - /** - * Finds the Root instance of the node’s tree. - * - * @example - * root.nodes[0].nodes[0].root() === root - * - * @return {Root} root parent - */ - - - Node.prototype.root = function root() { - var result = this; - while (result.parent) { - result = result.parent; - }return result; - }; - - Node.prototype.cleanRaws = function cleanRaws(keepBetween) { - delete this.raws.before; - delete this.raws.after; - if (!keepBetween) delete this.raws.between; - }; - - Node.prototype.positionInside = function positionInside(index) { - var string = this.toString(); - var column = this.source.start.column; - var line = this.source.start.line; - - for (var i = 0; i < index; i++) { - if (string[i] === '\n') { - column = 1; - line += 1; - } else { - column += 1; - } - } - - return { line: line, column: column }; - }; - - Node.prototype.positionBy = function positionBy(opts) { - var pos = this.source.start; - if (opts.index) { - pos = this.positionInside(opts.index); - } else if (opts.word) { - var index = this.toString().indexOf(opts.word); - if (index !== -1) pos = this.positionInside(index); - } - return pos; - }; - - /** - * @memberof Node# - * @member {string} type - String representing the node’s type. - * Possible values are `root`, `atrule`, `rule`, - * `decl`, or `comment`. - * - * @example - * postcss.decl({ prop: 'color', value: 'black' }).type //=> 'decl' - */ - - /** - * @memberof Node# - * @member {Container} parent - the node’s parent node. - * - * @example - * root.nodes[0].parent == root; - */ - - /** - * @memberof Node# - * @member {source} source - the input source of the node - * - * The property is used in source map generation. - * - * If you create a node manually (e.g., with `postcss.decl()`), - * that node will not have a `source` property and will be absent - * from the source map. For this reason, the plugin developer should - * consider cloning nodes to create new ones (in which case the new node’s - * source will reference the original, cloned node) or setting - * the `source` property manually. - * - * ```js - * // Bad - * const prefixed = postcss.decl({ - * prop: '-moz-' + decl.prop, - * value: decl.value - * }); - * - * // Good - * const prefixed = decl.clone({ prop: '-moz-' + decl.prop }); - * ``` - * - * ```js - * if ( atrule.name == 'add-link' ) { - * const rule = postcss.rule({ selector: 'a', source: atrule.source }); - * atrule.parent.insertBefore(atrule, rule); - * } - * ``` - * - * @example - * decl.source.input.from //=> '/home/ai/a.sass' - * decl.source.start //=> { line: 10, column: 2 } - * decl.source.end //=> { line: 10, column: 12 } - */ - - /** - * @memberof Node# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `before`: the space symbols before the node. It also stores `*` - * and `_` symbols before the declaration (IE hack). - * * `after`: the space symbols after the last child of the node - * to the end of the node. - * * `between`: the symbols between the property and value - * for declarations, selector and `{` for rules, or last parameter - * and `{` for at-rules. - * * `semicolon`: contains true if the last child has - * an (optional) semicolon. - * * `afterName`: the space between the at-rule name and its parameters. - * * `left`: the space symbols between `/*` and the comment’s text. - * * `right`: the space symbols between the comment’s text - * and */. - * * `important`: the content of the important statement, - * if it is not just `!important`. - * - * PostCSS cleans selectors, declaration values and at-rule parameters - * from comments and extra spaces, but it stores origin content in raws - * properties. As such, if you don’t change a declaration’s value, - * PostCSS will use the raw value with comments. - * - * @example - * const root = postcss.parse('a {\n color:black\n}') - * root.first.first.raws //=> { before: '\n ', between: ':' } - */ - - return Node; -}(); - -exports.default = Node; - -/** - * @typedef {object} position - * @property {number} line - source line in file - * @property {number} column - source column in file - */ - -/** - * @typedef {object} source - * @property {Input} input - {@link Input} with input file - * @property {position} start - The starting position of the node’s source - * @property {position} end - The ending position of the node’s source - */ - -module.exports = exports['default']; - - - -/***/ }), -/* 20 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _container = __webpack_require__(13); - -var _container2 = _interopRequireDefault(_container); - -var _list = __webpack_require__(126); - -var _list2 = _interopRequireDefault(_list); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -/** - * Represents a CSS rule: a selector followed by a declaration block. - * - * @extends Container - * - * @example - * const root = postcss.parse('a{}'); - * const rule = root.first; - * rule.type //=> 'rule' - * rule.toString() //=> 'a{}' - */ -var Rule = function (_Container) { - _inherits(Rule, _Container); - - function Rule(defaults) { - _classCallCheck(this, Rule); - - var _this = _possibleConstructorReturn(this, _Container.call(this, defaults)); - - _this.type = 'rule'; - if (!_this.nodes) _this.nodes = []; - return _this; - } - - /** - * An array containing the rule’s individual selectors. - * Groups of selectors are split at commas. - * - * @type {string[]} - * - * @example - * const root = postcss.parse('a, b { }'); - * const rule = root.first; - * - * rule.selector //=> 'a, b' - * rule.selectors //=> ['a', 'b'] - * - * rule.selectors = ['a', 'strong']; - * rule.selector //=> 'a, strong' - */ - - - _createClass(Rule, [{ - key: 'selectors', - get: function get() { - return _list2.default.comma(this.selector); - }, - set: function set(values) { - var match = this.selector ? this.selector.match(/,\s*/) : null; - var sep = match ? match[0] : ',' + this.raw('between', 'beforeOpen'); - this.selector = values.join(sep); - } - - /** - * @memberof Rule# - * @member {string} selector - the rule’s full selector represented - * as a string - * - * @example - * const root = postcss.parse('a, b { }'); - * const rule = root.first; - * rule.selector //=> 'a, b' - */ - - /** - * @memberof Rule# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `before`: the space symbols before the node. It also stores `*` - * and `_` symbols before the declaration (IE hack). - * * `after`: the space symbols after the last child of the node - * to the end of the node. - * * `between`: the symbols between the property and value - * for declarations, selector and `{` for rules, or last parameter - * and `{` for at-rules. - * * `semicolon`: contains `true` if the last child has - * an (optional) semicolon. - * * `ownSemicolon`: contains `true` if there is semicolon after rule. - * - * PostCSS cleans selectors from comments and extra spaces, - * but it stores origin content in raws properties. - * As such, if you don’t change a declaration’s value, - * PostCSS will use the raw value with comments. - * - * @example - * const root = postcss.parse('a {\n color:black\n}') - * root.first.first.raws //=> { before: '', between: ' ', after: '\n' } - */ - - }]); - - return Rule; -}(_container2.default); - -exports.default = Rule; -module.exports = exports['default']; - - - -/***/ }), -/* 21 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var defaultRaw = { - colon: ': ', - indent: ' ', - beforeDecl: '\n', - beforeRule: '\n', - beforeOpen: ' ', - beforeClose: '\n', - beforeComment: '\n', - after: '\n', - emptyBody: '', - commentLeft: ' ', - commentRight: ' ' -}; - -function capitalize(str) { - return str[0].toUpperCase() + str.slice(1); -} - -var Stringifier = function () { - function Stringifier(builder) { - _classCallCheck(this, Stringifier); - - this.builder = builder; - } - - Stringifier.prototype.stringify = function stringify(node, semicolon) { - this[node.type](node, semicolon); - }; - - Stringifier.prototype.root = function root(node) { - this.body(node); - if (node.raws.after) this.builder(node.raws.after); - }; - - Stringifier.prototype.comment = function comment(node) { - var left = this.raw(node, 'left', 'commentLeft'); - var right = this.raw(node, 'right', 'commentRight'); - this.builder('/*' + left + node.text + right + '*/', node); - }; - - Stringifier.prototype.decl = function decl(node, semicolon) { - var between = this.raw(node, 'between', 'colon'); - var string = node.prop + between + this.rawValue(node, 'value'); - - if (node.important) { - string += node.raws.important || ' !important'; - } - - if (semicolon) string += ';'; - this.builder(string, node); - }; - - Stringifier.prototype.rule = function rule(node) { - this.block(node, this.rawValue(node, 'selector')); - if (node.raws.ownSemicolon) { - this.builder(node.raws.ownSemicolon, node, 'end'); - } - }; - - Stringifier.prototype.atrule = function atrule(node, semicolon) { - var name = '@' + node.name; - var params = node.params ? this.rawValue(node, 'params') : ''; - - if (typeof node.raws.afterName !== 'undefined') { - name += node.raws.afterName; - } else if (params) { - name += ' '; - } - - if (node.nodes) { - this.block(node, name + params); - } else { - var end = (node.raws.between || '') + (semicolon ? ';' : ''); - this.builder(name + params + end, node); - } - }; - - Stringifier.prototype.body = function body(node) { - var last = node.nodes.length - 1; - while (last > 0) { - if (node.nodes[last].type !== 'comment') break; - last -= 1; - } - - var semicolon = this.raw(node, 'semicolon'); - for (var i = 0; i < node.nodes.length; i++) { - var child = node.nodes[i]; - var before = this.raw(child, 'before'); - if (before) this.builder(before); - this.stringify(child, last !== i || semicolon); - } - }; - - Stringifier.prototype.block = function block(node, start) { - var between = this.raw(node, 'between', 'beforeOpen'); - this.builder(start + between + '{', node, 'start'); - - var after = void 0; - if (node.nodes && node.nodes.length) { - this.body(node); - after = this.raw(node, 'after'); - } else { - after = this.raw(node, 'after', 'emptyBody'); - } - - if (after) this.builder(after); - this.builder('}', node, 'end'); - }; - - Stringifier.prototype.raw = function raw(node, own, detect) { - var value = void 0; - if (!detect) detect = own; - - // Already had - if (own) { - value = node.raws[own]; - if (typeof value !== 'undefined') return value; - } - - var parent = node.parent; - - // Hack for first rule in CSS - if (detect === 'before') { - if (!parent || parent.type === 'root' && parent.first === node) { - return ''; - } - } - - // Floating child without parent - if (!parent) return defaultRaw[detect]; - - // Detect style by other nodes - var root = node.root(); - if (!root.rawCache) root.rawCache = {}; - if (typeof root.rawCache[detect] !== 'undefined') { - return root.rawCache[detect]; - } - - if (detect === 'before' || detect === 'after') { - return this.beforeAfter(node, detect); - } else { - var method = 'raw' + capitalize(detect); - if (this[method]) { - value = this[method](root, node); - } else { - root.walk(function (i) { - value = i.raws[own]; - if (typeof value !== 'undefined') return false; - }); - } - } - - if (typeof value === 'undefined') value = defaultRaw[detect]; - - root.rawCache[detect] = value; - return value; - }; - - Stringifier.prototype.rawSemicolon = function rawSemicolon(root) { - var value = void 0; - root.walk(function (i) { - if (i.nodes && i.nodes.length && i.last.type === 'decl') { - value = i.raws.semicolon; - if (typeof value !== 'undefined') return false; - } - }); - return value; - }; - - Stringifier.prototype.rawEmptyBody = function rawEmptyBody(root) { - var value = void 0; - root.walk(function (i) { - if (i.nodes && i.nodes.length === 0) { - value = i.raws.after; - if (typeof value !== 'undefined') return false; - } - }); - return value; - }; - - Stringifier.prototype.rawIndent = function rawIndent(root) { - if (root.raws.indent) return root.raws.indent; - var value = void 0; - root.walk(function (i) { - var p = i.parent; - if (p && p !== root && p.parent && p.parent === root) { - if (typeof i.raws.before !== 'undefined') { - var parts = i.raws.before.split('\n'); - value = parts[parts.length - 1]; - value = value.replace(/[^\s]/g, ''); - return false; - } - } - }); - return value; - }; - - Stringifier.prototype.rawBeforeComment = function rawBeforeComment(root, node) { - var value = void 0; - root.walkComments(function (i) { - if (typeof i.raws.before !== 'undefined') { - value = i.raws.before; - if (value.indexOf('\n') !== -1) { - value = value.replace(/[^\n]+$/, ''); - } - return false; - } - }); - if (typeof value === 'undefined') { - value = this.raw(node, null, 'beforeDecl'); - } else if (value) { - value = value.replace(/[^\s]/g, ''); - } - return value; - }; - - Stringifier.prototype.rawBeforeDecl = function rawBeforeDecl(root, node) { - var value = void 0; - root.walkDecls(function (i) { - if (typeof i.raws.before !== 'undefined') { - value = i.raws.before; - if (value.indexOf('\n') !== -1) { - value = value.replace(/[^\n]+$/, ''); - } - return false; - } - }); - if (typeof value === 'undefined') { - value = this.raw(node, null, 'beforeRule'); - } else if (value) { - value = value.replace(/[^\s]/g, ''); - } - return value; - }; - - Stringifier.prototype.rawBeforeRule = function rawBeforeRule(root) { - var value = void 0; - root.walk(function (i) { - if (i.nodes && (i.parent !== root || root.first !== i)) { - if (typeof i.raws.before !== 'undefined') { - value = i.raws.before; - if (value.indexOf('\n') !== -1) { - value = value.replace(/[^\n]+$/, ''); - } - return false; - } - } - }); - if (value) value = value.replace(/[^\s]/g, ''); - return value; - }; - - Stringifier.prototype.rawBeforeClose = function rawBeforeClose(root) { - var value = void 0; - root.walk(function (i) { - if (i.nodes && i.nodes.length > 0) { - if (typeof i.raws.after !== 'undefined') { - value = i.raws.after; - if (value.indexOf('\n') !== -1) { - value = value.replace(/[^\n]+$/, ''); - } - return false; - } - } - }); - if (value) value = value.replace(/[^\s]/g, ''); - return value; - }; - - Stringifier.prototype.rawBeforeOpen = function rawBeforeOpen(root) { - var value = void 0; - root.walk(function (i) { - if (i.type !== 'decl') { - value = i.raws.between; - if (typeof value !== 'undefined') return false; - } - }); - return value; - }; - - Stringifier.prototype.rawColon = function rawColon(root) { - var value = void 0; - root.walkDecls(function (i) { - if (typeof i.raws.between !== 'undefined') { - value = i.raws.between.replace(/[^\s:]/g, ''); - return false; - } - }); - return value; - }; - - Stringifier.prototype.beforeAfter = function beforeAfter(node, detect) { - var value = void 0; - if (node.type === 'decl') { - value = this.raw(node, null, 'beforeDecl'); - } else if (node.type === 'comment') { - value = this.raw(node, null, 'beforeComment'); - } else if (detect === 'before') { - value = this.raw(node, null, 'beforeRule'); - } else { - value = this.raw(node, null, 'beforeClose'); - } - - var buf = node.parent; - var depth = 0; - while (buf && buf.type !== 'root') { - depth += 1; - buf = buf.parent; - } - - if (value.indexOf('\n') !== -1) { - var indent = this.raw(node, null, 'indent'); - if (indent.length) { - for (var step = 0; step < depth; step++) { - value += indent; - } - } - } - - return value; - }; - - Stringifier.prototype.rawValue = function rawValue(node, prop) { - var value = node[prop]; - var raw = node.raws[prop]; - if (raw && raw.value === value) { - return raw.raw; - } else { - return value; - } - }; - - return Stringifier; -}(); - -exports.default = Stringifier; -module.exports = exports['default']; - - - -/***/ }), -/* 22 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _node = __webpack_require__(6); - -var _node2 = _interopRequireDefault(_node); - -var _types = __webpack_require__(0); - -var types = _interopRequireWildcard(_types); - -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Container = function (_Node) { - _inherits(Container, _Node); - - function Container(opts) { - _classCallCheck(this, Container); - - var _this = _possibleConstructorReturn(this, _Node.call(this, opts)); - - if (!_this.nodes) { - _this.nodes = []; - } - return _this; - } - - Container.prototype.append = function append(selector) { - selector.parent = this; - this.nodes.push(selector); - return this; - }; - - Container.prototype.prepend = function prepend(selector) { - selector.parent = this; - this.nodes.unshift(selector); - return this; - }; - - Container.prototype.at = function at(index) { - return this.nodes[index]; - }; - - Container.prototype.index = function index(child) { - if (typeof child === 'number') { - return child; - } - return this.nodes.indexOf(child); - }; - - Container.prototype.removeChild = function removeChild(child) { - child = this.index(child); - this.at(child).parent = undefined; - this.nodes.splice(child, 1); - - var index = void 0; - for (var id in this.indexes) { - index = this.indexes[id]; - if (index >= child) { - this.indexes[id] = index - 1; - } - } - - return this; - }; - - Container.prototype.removeAll = function removeAll() { - for (var _iterator = this.nodes, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var node = _ref; - - node.parent = undefined; - } - this.nodes = []; - return this; - }; - - Container.prototype.empty = function empty() { - return this.removeAll(); - }; - - Container.prototype.insertAfter = function insertAfter(oldNode, newNode) { - var oldIndex = this.index(oldNode); - this.nodes.splice(oldIndex + 1, 0, newNode); - - var index = void 0; - for (var id in this.indexes) { - index = this.indexes[id]; - if (oldIndex <= index) { - this.indexes[id] = index + this.nodes.length; - } - } - - return this; - }; - - Container.prototype.insertBefore = function insertBefore(oldNode, newNode) { - var oldIndex = this.index(oldNode); - this.nodes.splice(oldIndex, 0, newNode); - - var index = void 0; - for (var id in this.indexes) { - index = this.indexes[id]; - if (oldIndex <= index) { - this.indexes[id] = index + this.nodes.length; - } - } - - return this; - }; - - Container.prototype.each = function each(callback) { - if (!this.lastEach) { - this.lastEach = 0; - } - if (!this.indexes) { - this.indexes = {}; - } - - this.lastEach++; - var id = this.lastEach; - this.indexes[id] = 0; - - if (!this.length) { - return undefined; - } - - var index = void 0, - result = void 0; - while (this.indexes[id] < this.length) { - index = this.indexes[id]; - result = callback(this.at(index), index); - if (result === false) { - break; - } - - this.indexes[id] += 1; - } - - delete this.indexes[id]; - - if (result === false) { - return false; - } - }; - - Container.prototype.walk = function walk(callback) { - return this.each(function (node, i) { - var result = callback(node, i); - - if (result !== false && node.length) { - result = node.walk(callback); - } - - if (result === false) { - return false; - } - }); - }; - - Container.prototype.walkAttributes = function walkAttributes(callback) { - var _this2 = this; - - return this.walk(function (selector) { - if (selector.type === types.ATTRIBUTE) { - return callback.call(_this2, selector); - } - }); - }; - - Container.prototype.walkClasses = function walkClasses(callback) { - var _this3 = this; - - return this.walk(function (selector) { - if (selector.type === types.CLASS) { - return callback.call(_this3, selector); - } - }); - }; - - Container.prototype.walkCombinators = function walkCombinators(callback) { - var _this4 = this; - - return this.walk(function (selector) { - if (selector.type === types.COMBINATOR) { - return callback.call(_this4, selector); - } - }); - }; - - Container.prototype.walkComments = function walkComments(callback) { - var _this5 = this; - - return this.walk(function (selector) { - if (selector.type === types.COMMENT) { - return callback.call(_this5, selector); - } - }); - }; - - Container.prototype.walkIds = function walkIds(callback) { - var _this6 = this; - - return this.walk(function (selector) { - if (selector.type === types.ID) { - return callback.call(_this6, selector); - } - }); - }; - - Container.prototype.walkNesting = function walkNesting(callback) { - var _this7 = this; - - return this.walk(function (selector) { - if (selector.type === types.NESTING) { - return callback.call(_this7, selector); - } - }); - }; - - Container.prototype.walkPseudos = function walkPseudos(callback) { - var _this8 = this; - - return this.walk(function (selector) { - if (selector.type === types.PSEUDO) { - return callback.call(_this8, selector); - } - }); - }; - - Container.prototype.walkTags = function walkTags(callback) { - var _this9 = this; - - return this.walk(function (selector) { - if (selector.type === types.TAG) { - return callback.call(_this9, selector); - } - }); - }; - - Container.prototype.walkUniversals = function walkUniversals(callback) { - var _this10 = this; - - return this.walk(function (selector) { - if (selector.type === types.UNIVERSAL) { - return callback.call(_this10, selector); - } - }); - }; - - Container.prototype.split = function split(callback) { - var _this11 = this; - - var current = []; - return this.reduce(function (memo, node, index) { - var split = callback.call(_this11, node); - current.push(node); - if (split) { - memo.push(current); - current = []; - } else if (index === _this11.length - 1) { - memo.push(current); - } - return memo; - }, []); - }; - - Container.prototype.map = function map(callback) { - return this.nodes.map(callback); - }; - - Container.prototype.reduce = function reduce(callback, memo) { - return this.nodes.reduce(callback, memo); - }; - - Container.prototype.every = function every(callback) { - return this.nodes.every(callback); - }; - - Container.prototype.some = function some(callback) { - return this.nodes.some(callback); - }; - - Container.prototype.filter = function filter(callback) { - return this.nodes.filter(callback); - }; - - Container.prototype.sort = function sort(callback) { - return this.nodes.sort(callback); - }; - - Container.prototype.toString = function toString() { - return this.map(String).join(''); - }; - - _createClass(Container, [{ - key: 'first', - get: function get() { - return this.at(0); - } - }, { - key: 'last', - get: function get() { - return this.at(this.length - 1); - } - }, { - key: 'length', - get: function get() { - return this.nodes.length; - } - }]); - - return Container; -}(_node2.default); - -exports.default = Container; -module.exports = exports['default']; - -/***/ }), -/* 23 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _container = __webpack_require__(25); - -var _container2 = _interopRequireDefault(_container); - -var _warnOnce = __webpack_require__(4); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -/** - * Represents an at-rule. - * - * If it’s followed in the CSS by a {} block, this node will have - * a nodes property representing its children. - * - * @extends Container - * - * @example - * const root = postcss.parse('@charset "UTF-8"; @media print {}'); - * - * const charset = root.first; - * charset.type //=> 'atrule' - * charset.nodes //=> undefined - * - * const media = root.last; - * media.nodes //=> [] - */ -var AtRule = function (_Container) { - _inherits(AtRule, _Container); - - function AtRule(defaults) { - _classCallCheck(this, AtRule); - - var _this = _possibleConstructorReturn(this, _Container.call(this, defaults)); - - _this.type = 'atrule'; - return _this; - } - - AtRule.prototype.append = function append() { - var _Container$prototype$; - - if (!this.nodes) this.nodes = []; - - for (var _len = arguments.length, children = Array(_len), _key = 0; _key < _len; _key++) { - children[_key] = arguments[_key]; - } - - return (_Container$prototype$ = _Container.prototype.append).call.apply(_Container$prototype$, [this].concat(children)); - }; - - AtRule.prototype.prepend = function prepend() { - var _Container$prototype$2; - - if (!this.nodes) this.nodes = []; - - for (var _len2 = arguments.length, children = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - children[_key2] = arguments[_key2]; - } - - return (_Container$prototype$2 = _Container.prototype.prepend).call.apply(_Container$prototype$2, [this].concat(children)); - }; - - _createClass(AtRule, [{ - key: 'afterName', - get: function get() { - (0, _warnOnce2.default)('AtRule#afterName was deprecated. Use AtRule#raws.afterName'); - return this.raws.afterName; - }, - set: function set(val) { - (0, _warnOnce2.default)('AtRule#afterName was deprecated. Use AtRule#raws.afterName'); - this.raws.afterName = val; - } - }, { - key: '_params', - get: function get() { - (0, _warnOnce2.default)('AtRule#_params was deprecated. Use AtRule#raws.params'); - return this.raws.params; - }, - set: function set(val) { - (0, _warnOnce2.default)('AtRule#_params was deprecated. Use AtRule#raws.params'); - this.raws.params = val; - } - - /** - * @memberof AtRule# - * @member {string} name - the at-rule’s name immediately follows the `@` - * - * @example - * const root = postcss.parse('@media print {}'); - * media.name //=> 'media' - * const media = root.first; - */ - - /** - * @memberof AtRule# - * @member {string} params - the at-rule’s parameters, the values - * that follow the at-rule’s name but precede - * any {} block - * - * @example - * const root = postcss.parse('@media print, screen {}'); - * const media = root.first; - * media.params //=> 'print, screen' - */ - - /** - * @memberof AtRule# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `before`: the space symbols before the node. It also stores `*` - * and `_` symbols before the declaration (IE hack). - * * `after`: the space symbols after the last child of the node - * to the end of the node. - * * `between`: the symbols between the property and value - * for declarations, selector and `{` for rules, or last parameter - * and `{` for at-rules. - * * `semicolon`: contains true if the last child has - * an (optional) semicolon. - * * `afterName`: the space between the at-rule name and its parameters. - * - * PostCSS cleans at-rule parameters from comments and extra spaces, - * but it stores origin content in raws properties. - * As such, if you don’t change a declaration’s value, - * PostCSS will use the raw value with comments. - * - * @example - * const root = postcss.parse(' @media\nprint {\n}') - * root.first.first.raws //=> { before: ' ', - * // between: ' ', - * // afterName: '\n', - * // after: '\n' } - */ - - }]); - - return AtRule; -}(_container2.default); - -exports.default = AtRule; -module.exports = exports['default']; - - - -/***/ }), -/* 24 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _warnOnce = __webpack_require__(4); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -var _node = __webpack_require__(27); - -var _node2 = _interopRequireDefault(_node); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -/** - * Represents a comment between declarations or statements (rule and at-rules). - * - * Comments inside selectors, at-rule parameters, or declaration values - * will be stored in the `raws` properties explained above. - * - * @extends Node - */ -var Comment = function (_Node) { - _inherits(Comment, _Node); - - function Comment(defaults) { - _classCallCheck(this, Comment); - - var _this = _possibleConstructorReturn(this, _Node.call(this, defaults)); - - _this.type = 'comment'; - return _this; - } - - _createClass(Comment, [{ - key: 'left', - get: function get() { - (0, _warnOnce2.default)('Comment#left was deprecated. Use Comment#raws.left'); - return this.raws.left; - }, - set: function set(val) { - (0, _warnOnce2.default)('Comment#left was deprecated. Use Comment#raws.left'); - this.raws.left = val; - } - }, { - key: 'right', - get: function get() { - (0, _warnOnce2.default)('Comment#right was deprecated. Use Comment#raws.right'); - return this.raws.right; - }, - set: function set(val) { - (0, _warnOnce2.default)('Comment#right was deprecated. Use Comment#raws.right'); - this.raws.right = val; - } - - /** - * @memberof Comment# - * @member {string} text - the comment’s text - */ - - /** - * @memberof Comment# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `before`: the space symbols before the node. - * * `left`: the space symbols between `/*` and the comment’s text. - * * `right`: the space symbols between the comment’s text. - */ - - }]); - - return Comment; -}(_node2.default); - -exports.default = Comment; -module.exports = exports['default']; - - - -/***/ }), -/* 25 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _declaration = __webpack_require__(73); - -var _declaration2 = _interopRequireDefault(_declaration); - -var _warnOnce = __webpack_require__(4); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -var _comment = __webpack_require__(24); - -var _comment2 = _interopRequireDefault(_comment); - -var _node = __webpack_require__(27); - -var _node2 = _interopRequireDefault(_node); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -function cleanSource(nodes) { - return nodes.map(function (i) { - if (i.nodes) i.nodes = cleanSource(i.nodes); - delete i.source; - return i; - }); -} - -/** - * The {@link Root}, {@link AtRule}, and {@link Rule} container nodes - * inherit some common methods to help work with their children. - * - * Note that all containers can store any content. If you write a rule inside - * a rule, PostCSS will parse it. - * - * @extends Node - * @abstract - */ - -var Container = function (_Node) { - _inherits(Container, _Node); - - function Container() { - _classCallCheck(this, Container); - - return _possibleConstructorReturn(this, _Node.apply(this, arguments)); - } - - Container.prototype.push = function push(child) { - child.parent = this; - this.nodes.push(child); - return this; - }; - - /** - * Iterates through the container’s immediate children, - * calling `callback` for each child. - * - * Returning `false` in the callback will break iteration. - * - * This method only iterates through the container’s immediate children. - * If you need to recursively iterate through all the container’s descendant - * nodes, use {@link Container#walk}. - * - * Unlike the for `{}`-cycle or `Array#forEach` this iterator is safe - * if you are mutating the array of child nodes during iteration. - * PostCSS will adjust the current index to match the mutations. - * - * @param {childIterator} callback - iterator receives each node and index - * - * @return {false|undefined} returns `false` if iteration was broke - * - * @example - * const root = postcss.parse('a { color: black; z-index: 1 }'); - * const rule = root.first; - * - * for ( let decl of rule.nodes ) { - * decl.cloneBefore({ prop: '-webkit-' + decl.prop }); - * // Cycle will be infinite, because cloneBefore moves the current node - * // to the next index - * } - * - * rule.each(decl => { - * decl.cloneBefore({ prop: '-webkit-' + decl.prop }); - * // Will be executed only for color and z-index - * }); - */ - - - Container.prototype.each = function each(callback) { - if (!this.lastEach) this.lastEach = 0; - if (!this.indexes) this.indexes = {}; - - this.lastEach += 1; - var id = this.lastEach; - this.indexes[id] = 0; - - if (!this.nodes) return undefined; - - var index = void 0, - result = void 0; - while (this.indexes[id] < this.nodes.length) { - index = this.indexes[id]; - result = callback(this.nodes[index], index); - if (result === false) break; - - this.indexes[id] += 1; - } - - delete this.indexes[id]; - - return result; - }; - - /** - * Traverses the container’s descendant nodes, calling callback - * for each node. - * - * Like container.each(), this method is safe to use - * if you are mutating arrays during iteration. - * - * If you only need to iterate through the container’s immediate children, - * use {@link Container#each}. - * - * @param {childIterator} callback - iterator receives each node and index - * - * @return {false|undefined} returns `false` if iteration was broke - * - * @example - * root.walk(node => { - * // Traverses all descendant nodes. - * }); - */ - - - Container.prototype.walk = function walk(callback) { - return this.each(function (child, i) { - var result = callback(child, i); - if (result !== false && child.walk) { - result = child.walk(callback); - } - return result; - }); - }; - - /** - * Traverses the container’s descendant nodes, calling callback - * for each declaration node. - * - * If you pass a filter, iteration will only happen over declarations - * with matching properties. - * - * Like {@link Container#each}, this method is safe - * to use if you are mutating arrays during iteration. - * - * @param {string|RegExp} [prop] - string or regular expression - * to filter declarations by property name - * @param {childIterator} callback - iterator receives each node and index - * - * @return {false|undefined} returns `false` if iteration was broke - * - * @example - * root.walkDecls(decl => { - * checkPropertySupport(decl.prop); - * }); - * - * root.walkDecls('border-radius', decl => { - * decl.remove(); - * }); - * - * root.walkDecls(/^background/, decl => { - * decl.value = takeFirstColorFromGradient(decl.value); - * }); - */ - - - Container.prototype.walkDecls = function walkDecls(prop, callback) { - if (!callback) { - callback = prop; - return this.walk(function (child, i) { - if (child.type === 'decl') { - return callback(child, i); - } - }); - } else if (prop instanceof RegExp) { - return this.walk(function (child, i) { - if (child.type === 'decl' && prop.test(child.prop)) { - return callback(child, i); - } - }); - } else { - return this.walk(function (child, i) { - if (child.type === 'decl' && child.prop === prop) { - return callback(child, i); - } - }); - } - }; - - /** - * Traverses the container’s descendant nodes, calling callback - * for each rule node. - * - * If you pass a filter, iteration will only happen over rules - * with matching selectors. - * - * Like {@link Container#each}, this method is safe - * to use if you are mutating arrays during iteration. - * - * @param {string|RegExp} [selector] - string or regular expression - * to filter rules by selector - * @param {childIterator} callback - iterator receives each node and index - * - * @return {false|undefined} returns `false` if iteration was broke - * - * @example - * const selectors = []; - * root.walkRules(rule => { - * selectors.push(rule.selector); - * }); - * console.log(`Your CSS uses ${selectors.length} selectors`); - */ - - - Container.prototype.walkRules = function walkRules(selector, callback) { - if (!callback) { - callback = selector; - - return this.walk(function (child, i) { - if (child.type === 'rule') { - return callback(child, i); - } - }); - } else if (selector instanceof RegExp) { - return this.walk(function (child, i) { - if (child.type === 'rule' && selector.test(child.selector)) { - return callback(child, i); - } - }); - } else { - return this.walk(function (child, i) { - if (child.type === 'rule' && child.selector === selector) { - return callback(child, i); - } - }); - } - }; - - /** - * Traverses the container’s descendant nodes, calling callback - * for each at-rule node. - * - * If you pass a filter, iteration will only happen over at-rules - * that have matching names. - * - * Like {@link Container#each}, this method is safe - * to use if you are mutating arrays during iteration. - * - * @param {string|RegExp} [name] - string or regular expression - * to filter at-rules by name - * @param {childIterator} callback - iterator receives each node and index - * - * @return {false|undefined} returns `false` if iteration was broke - * - * @example - * root.walkAtRules(rule => { - * if ( isOld(rule.name) ) rule.remove(); - * }); - * - * let first = false; - * root.walkAtRules('charset', rule => { - * if ( !first ) { - * first = true; - * } else { - * rule.remove(); - * } - * }); - */ - - - Container.prototype.walkAtRules = function walkAtRules(name, callback) { - if (!callback) { - callback = name; - return this.walk(function (child, i) { - if (child.type === 'atrule') { - return callback(child, i); - } - }); - } else if (name instanceof RegExp) { - return this.walk(function (child, i) { - if (child.type === 'atrule' && name.test(child.name)) { - return callback(child, i); - } - }); - } else { - return this.walk(function (child, i) { - if (child.type === 'atrule' && child.name === name) { - return callback(child, i); - } - }); - } - }; - - /** - * Traverses the container’s descendant nodes, calling callback - * for each comment node. - * - * Like {@link Container#each}, this method is safe - * to use if you are mutating arrays during iteration. - * - * @param {childIterator} callback - iterator receives each node and index - * - * @return {false|undefined} returns `false` if iteration was broke - * - * @example - * root.walkComments(comment => { - * comment.remove(); - * }); - */ - - - Container.prototype.walkComments = function walkComments(callback) { - return this.walk(function (child, i) { - if (child.type === 'comment') { - return callback(child, i); - } - }); - }; - - /** - * Inserts new nodes to the end of the container. - * - * @param {...(Node|object|string|Node[])} children - new nodes - * - * @return {Node} this node for methods chain - * - * @example - * const decl1 = postcss.decl({ prop: 'color', value: 'black' }); - * const decl2 = postcss.decl({ prop: 'background-color', value: 'white' }); - * rule.append(decl1, decl2); - * - * root.append({ name: 'charset', params: '"UTF-8"' }); // at-rule - * root.append({ selector: 'a' }); // rule - * rule.append({ prop: 'color', value: 'black' }); // declaration - * rule.append({ text: 'Comment' }) // comment - * - * root.append('a {}'); - * root.first.append('color: black; z-index: 1'); - */ - - - Container.prototype.append = function append() { - for (var _len = arguments.length, children = Array(_len), _key = 0; _key < _len; _key++) { - children[_key] = arguments[_key]; - } - - for (var _iterator = children, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var child = _ref; - - var nodes = this.normalize(child, this.last); - for (var _iterator2 = nodes, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) { - var _ref2; - - if (_isArray2) { - if (_i2 >= _iterator2.length) break; - _ref2 = _iterator2[_i2++]; - } else { - _i2 = _iterator2.next(); - if (_i2.done) break; - _ref2 = _i2.value; - } - - var node = _ref2; - this.nodes.push(node); - } - } - return this; - }; - - /** - * Inserts new nodes to the start of the container. - * - * @param {...(Node|object|string|Node[])} children - new nodes - * - * @return {Node} this node for methods chain - * - * @example - * const decl1 = postcss.decl({ prop: 'color', value: 'black' }); - * const decl2 = postcss.decl({ prop: 'background-color', value: 'white' }); - * rule.prepend(decl1, decl2); - * - * root.append({ name: 'charset', params: '"UTF-8"' }); // at-rule - * root.append({ selector: 'a' }); // rule - * rule.append({ prop: 'color', value: 'black' }); // declaration - * rule.append({ text: 'Comment' }) // comment - * - * root.append('a {}'); - * root.first.append('color: black; z-index: 1'); - */ - - - Container.prototype.prepend = function prepend() { - for (var _len2 = arguments.length, children = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - children[_key2] = arguments[_key2]; - } - - children = children.reverse(); - for (var _iterator3 = children, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) { - var _ref3; - - if (_isArray3) { - if (_i3 >= _iterator3.length) break; - _ref3 = _iterator3[_i3++]; - } else { - _i3 = _iterator3.next(); - if (_i3.done) break; - _ref3 = _i3.value; - } - - var child = _ref3; - - var nodes = this.normalize(child, this.first, 'prepend').reverse(); - for (var _iterator4 = nodes, _isArray4 = Array.isArray(_iterator4), _i4 = 0, _iterator4 = _isArray4 ? _iterator4 : _iterator4[Symbol.iterator]();;) { - var _ref4; - - if (_isArray4) { - if (_i4 >= _iterator4.length) break; - _ref4 = _iterator4[_i4++]; - } else { - _i4 = _iterator4.next(); - if (_i4.done) break; - _ref4 = _i4.value; - } - - var node = _ref4; - this.nodes.unshift(node); - }for (var id in this.indexes) { - this.indexes[id] = this.indexes[id] + nodes.length; - } - } - return this; - }; - - Container.prototype.cleanRaws = function cleanRaws(keepBetween) { - _Node.prototype.cleanRaws.call(this, keepBetween); - if (this.nodes) { - for (var _iterator5 = this.nodes, _isArray5 = Array.isArray(_iterator5), _i5 = 0, _iterator5 = _isArray5 ? _iterator5 : _iterator5[Symbol.iterator]();;) { - var _ref5; - - if (_isArray5) { - if (_i5 >= _iterator5.length) break; - _ref5 = _iterator5[_i5++]; - } else { - _i5 = _iterator5.next(); - if (_i5.done) break; - _ref5 = _i5.value; - } - - var node = _ref5; - node.cleanRaws(keepBetween); - } - } - }; - - /** - * Insert new node before old node within the container. - * - * @param {Node|number} exist - child or child’s index. - * @param {Node|object|string|Node[]} add - new node - * - * @return {Node} this node for methods chain - * - * @example - * rule.insertBefore(decl, decl.clone({ prop: '-webkit-' + decl.prop })); - */ - - - Container.prototype.insertBefore = function insertBefore(exist, add) { - exist = this.index(exist); - - var type = exist === 0 ? 'prepend' : false; - var nodes = this.normalize(add, this.nodes[exist], type).reverse(); - for (var _iterator6 = nodes, _isArray6 = Array.isArray(_iterator6), _i6 = 0, _iterator6 = _isArray6 ? _iterator6 : _iterator6[Symbol.iterator]();;) { - var _ref6; - - if (_isArray6) { - if (_i6 >= _iterator6.length) break; - _ref6 = _iterator6[_i6++]; - } else { - _i6 = _iterator6.next(); - if (_i6.done) break; - _ref6 = _i6.value; - } - - var node = _ref6; - this.nodes.splice(exist, 0, node); - }var index = void 0; - for (var id in this.indexes) { - index = this.indexes[id]; - if (exist <= index) { - this.indexes[id] = index + nodes.length; - } - } - - return this; - }; - - /** - * Insert new node after old node within the container. - * - * @param {Node|number} exist - child or child’s index - * @param {Node|object|string|Node[]} add - new node - * - * @return {Node} this node for methods chain - */ - - - Container.prototype.insertAfter = function insertAfter(exist, add) { - exist = this.index(exist); - - var nodes = this.normalize(add, this.nodes[exist]).reverse(); - for (var _iterator7 = nodes, _isArray7 = Array.isArray(_iterator7), _i7 = 0, _iterator7 = _isArray7 ? _iterator7 : _iterator7[Symbol.iterator]();;) { - var _ref7; - - if (_isArray7) { - if (_i7 >= _iterator7.length) break; - _ref7 = _iterator7[_i7++]; - } else { - _i7 = _iterator7.next(); - if (_i7.done) break; - _ref7 = _i7.value; - } - - var node = _ref7; - this.nodes.splice(exist + 1, 0, node); - }var index = void 0; - for (var id in this.indexes) { - index = this.indexes[id]; - if (exist < index) { - this.indexes[id] = index + nodes.length; - } - } - - return this; - }; - - Container.prototype.remove = function remove(child) { - if (typeof child !== 'undefined') { - (0, _warnOnce2.default)('Container#remove is deprecated. ' + 'Use Container#removeChild'); - this.removeChild(child); - } else { - _Node.prototype.remove.call(this); - } - return this; - }; - - /** - * Removes node from the container and cleans the parent properties - * from the node and its children. - * - * @param {Node|number} child - child or child’s index - * - * @return {Node} this node for methods chain - * - * @example - * rule.nodes.length //=> 5 - * rule.removeChild(decl); - * rule.nodes.length //=> 4 - * decl.parent //=> undefined - */ - - - Container.prototype.removeChild = function removeChild(child) { - child = this.index(child); - this.nodes[child].parent = undefined; - this.nodes.splice(child, 1); - - var index = void 0; - for (var id in this.indexes) { - index = this.indexes[id]; - if (index >= child) { - this.indexes[id] = index - 1; - } - } - - return this; - }; - - /** - * Removes all children from the container - * and cleans their parent properties. - * - * @return {Node} this node for methods chain - * - * @example - * rule.removeAll(); - * rule.nodes.length //=> 0 - */ - - - Container.prototype.removeAll = function removeAll() { - for (var _iterator8 = this.nodes, _isArray8 = Array.isArray(_iterator8), _i8 = 0, _iterator8 = _isArray8 ? _iterator8 : _iterator8[Symbol.iterator]();;) { - var _ref8; - - if (_isArray8) { - if (_i8 >= _iterator8.length) break; - _ref8 = _iterator8[_i8++]; - } else { - _i8 = _iterator8.next(); - if (_i8.done) break; - _ref8 = _i8.value; - } - - var node = _ref8; - node.parent = undefined; - }this.nodes = []; - return this; - }; - - /** - * Passes all declaration values within the container that match pattern - * through callback, replacing those values with the returned result - * of callback. - * - * This method is useful if you are using a custom unit or function - * and need to iterate through all values. - * - * @param {string|RegExp} pattern - replace pattern - * @param {object} opts - options to speed up the search - * @param {string|string[]} opts.props - an array of property names - * @param {string} opts.fast - string that’s used - * to narrow down values and speed up - the regexp search - * @param {function|string} callback - string to replace pattern - * or callback that returns a new - * value. - * The callback will receive - * the same arguments as those - * passed to a function parameter - * of `String#replace`. - * - * @return {Node} this node for methods chain - * - * @example - * root.replaceValues(/\d+rem/, { fast: 'rem' }, string => { - * return 15 * parseInt(string) + 'px'; - * }); - */ - - - Container.prototype.replaceValues = function replaceValues(pattern, opts, callback) { - if (!callback) { - callback = opts; - opts = {}; - } - - this.walkDecls(function (decl) { - if (opts.props && opts.props.indexOf(decl.prop) === -1) return; - if (opts.fast && decl.value.indexOf(opts.fast) === -1) return; - - decl.value = decl.value.replace(pattern, callback); - }); - - return this; - }; - - /** - * Returns `true` if callback returns `true` - * for all of the container’s children. - * - * @param {childCondition} condition - iterator returns true or false. - * - * @return {boolean} is every child pass condition - * - * @example - * const noPrefixes = rule.every(i => i.prop[0] !== '-'); - */ - - - Container.prototype.every = function every(condition) { - return this.nodes.every(condition); - }; - - /** - * Returns `true` if callback returns `true` for (at least) one - * of the container’s children. - * - * @param {childCondition} condition - iterator returns true or false. - * - * @return {boolean} is some child pass condition - * - * @example - * const hasPrefix = rule.some(i => i.prop[0] === '-'); - */ - - - Container.prototype.some = function some(condition) { - return this.nodes.some(condition); - }; - - /** - * Returns a `child`’s index within the {@link Container#nodes} array. - * - * @param {Node} child - child of the current container. - * - * @return {number} child index - * - * @example - * rule.index( rule.nodes[2] ) //=> 2 - */ - - - Container.prototype.index = function index(child) { - if (typeof child === 'number') { - return child; - } else { - return this.nodes.indexOf(child); - } - }; - - /** - * The container’s first child. - * - * @type {Node} - * - * @example - * rule.first == rules.nodes[0]; - */ - - - Container.prototype.normalize = function normalize(nodes, sample) { - var _this2 = this; - - if (typeof nodes === 'string') { - var parse = __webpack_require__(75); - nodes = cleanSource(parse(nodes).nodes); - } else if (!Array.isArray(nodes)) { - if (nodes.type === 'root') { - nodes = nodes.nodes; - } else if (nodes.type) { - nodes = [nodes]; - } else if (nodes.prop) { - if (typeof nodes.value === 'undefined') { - throw new Error('Value field is missed in node creation'); - } else if (typeof nodes.value !== 'string') { - nodes.value = String(nodes.value); - } - nodes = [new _declaration2.default(nodes)]; - } else if (nodes.selector) { - var Rule = __webpack_require__(10); - nodes = [new Rule(nodes)]; - } else if (nodes.name) { - var AtRule = __webpack_require__(23); - nodes = [new AtRule(nodes)]; - } else if (nodes.text) { - nodes = [new _comment2.default(nodes)]; - } else { - throw new Error('Unknown node type in node creation'); - } - } - - var processed = nodes.map(function (i) { - if (typeof i.raws === 'undefined') i = _this2.rebuild(i); - - if (i.parent) i = i.clone(); - if (typeof i.raws.before === 'undefined') { - if (sample && typeof sample.raws.before !== 'undefined') { - i.raws.before = sample.raws.before.replace(/[^\s]/g, ''); - } - } - i.parent = _this2; - return i; - }); - - return processed; - }; - - Container.prototype.rebuild = function rebuild(node, parent) { - var _this3 = this; - - var fix = void 0; - if (node.type === 'root') { - var Root = __webpack_require__(28); - fix = new Root(); - } else if (node.type === 'atrule') { - var AtRule = __webpack_require__(23); - fix = new AtRule(); - } else if (node.type === 'rule') { - var Rule = __webpack_require__(10); - fix = new Rule(); - } else if (node.type === 'decl') { - fix = new _declaration2.default(); - } else if (node.type === 'comment') { - fix = new _comment2.default(); - } - - for (var i in node) { - if (i === 'nodes') { - fix.nodes = node.nodes.map(function (j) { - return _this3.rebuild(j, fix); - }); - } else if (i === 'parent' && parent) { - fix.parent = parent; - } else if (node.hasOwnProperty(i)) { - fix[i] = node[i]; - } - } - - return fix; - }; - - Container.prototype.eachInside = function eachInside(callback) { - (0, _warnOnce2.default)('Container#eachInside is deprecated. ' + 'Use Container#walk instead.'); - return this.walk(callback); - }; - - Container.prototype.eachDecl = function eachDecl(prop, callback) { - (0, _warnOnce2.default)('Container#eachDecl is deprecated. ' + 'Use Container#walkDecls instead.'); - return this.walkDecls(prop, callback); - }; - - Container.prototype.eachRule = function eachRule(selector, callback) { - (0, _warnOnce2.default)('Container#eachRule is deprecated. ' + 'Use Container#walkRules instead.'); - return this.walkRules(selector, callback); - }; - - Container.prototype.eachAtRule = function eachAtRule(name, callback) { - (0, _warnOnce2.default)('Container#eachAtRule is deprecated. ' + 'Use Container#walkAtRules instead.'); - return this.walkAtRules(name, callback); - }; - - Container.prototype.eachComment = function eachComment(callback) { - (0, _warnOnce2.default)('Container#eachComment is deprecated. ' + 'Use Container#walkComments instead.'); - return this.walkComments(callback); - }; - - _createClass(Container, [{ - key: 'first', - get: function get() { - if (!this.nodes) return undefined; - return this.nodes[0]; - } - - /** - * The container’s last child. - * - * @type {Node} - * - * @example - * rule.last == rule.nodes[rule.nodes.length - 1]; - */ - - }, { - key: 'last', - get: function get() { - if (!this.nodes) return undefined; - return this.nodes[this.nodes.length - 1]; - } - }, { - key: 'semicolon', - get: function get() { - (0, _warnOnce2.default)('Node#semicolon is deprecated. Use Node#raws.semicolon'); - return this.raws.semicolon; - }, - set: function set(val) { - (0, _warnOnce2.default)('Node#semicolon is deprecated. Use Node#raws.semicolon'); - this.raws.semicolon = val; - } - }, { - key: 'after', - get: function get() { - (0, _warnOnce2.default)('Node#after is deprecated. Use Node#raws.after'); - return this.raws.after; - }, - set: function set(val) { - (0, _warnOnce2.default)('Node#after is deprecated. Use Node#raws.after'); - this.raws.after = val; - } - - /** - * @memberof Container# - * @member {Node[]} nodes - an array containing the container’s children - * - * @example - * const root = postcss.parse('a { color: black }'); - * root.nodes.length //=> 1 - * root.nodes[0].selector //=> 'a' - * root.nodes[0].nodes[0].prop //=> 'color' - */ - - }]); - - return Container; -}(_node2.default); - -exports.default = Container; - -/** - * @callback childCondition - * @param {Node} node - container child - * @param {number} index - child index - * @param {Node[]} nodes - all container children - * @return {boolean} - */ - -/** - * @callback childIterator - * @param {Node} node - container child - * @param {number} index - child index - * @return {false|undefined} returning `false` will break iteration - */ - -module.exports = exports['default']; - - - -/***/ }), -/* 26 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _cssSyntaxError = __webpack_require__(72); - -var _cssSyntaxError2 = _interopRequireDefault(_cssSyntaxError); - -var _previousMap = __webpack_require__(151); - -var _previousMap2 = _interopRequireDefault(_previousMap); - -var _path = __webpack_require__(5); - -var _path2 = _interopRequireDefault(_path); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var sequence = 0; - -/** - * Represents the source CSS. - * - * @example - * const root = postcss.parse(css, { from: file }); - * const input = root.source.input; - */ - -var Input = function () { - - /** - * @param {string} css - input CSS source - * @param {object} [opts] - {@link Processor#process} options - */ - function Input(css) { - var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - _classCallCheck(this, Input); - - /** - * @member {string} - input CSS source - * - * @example - * const input = postcss.parse('a{}', { from: file }).input; - * input.css //=> "a{}"; - */ - this.css = css.toString(); - - if (this.css[0] === '\uFEFF' || this.css[0] === '\uFFFE') { - this.css = this.css.slice(1); - } - - if (opts.from) { - if (/^\w+:\/\//.test(opts.from)) { - /** - * @member {string} - The absolute path to the CSS source file - * defined with the `from` option. - * - * @example - * const root = postcss.parse(css, { from: 'a.css' }); - * root.source.input.file //=> '/home/ai/a.css' - */ - this.file = opts.from; - } else { - this.file = _path2.default.resolve(opts.from); - } - } - - var map = new _previousMap2.default(this.css, opts); - if (map.text) { - /** - * @member {PreviousMap} - The input source map passed from - * a compilation step before PostCSS - * (for example, from Sass compiler). - * - * @example - * root.source.input.map.consumer().sources //=> ['a.sass'] - */ - this.map = map; - var file = map.consumer().file; - if (!this.file && file) this.file = this.mapResolve(file); - } - - if (!this.file) { - sequence += 1; - /** - * @member {string} - The unique ID of the CSS source. It will be - * created if `from` option is not provided - * (because PostCSS does not know the file path). - * - * @example - * const root = postcss.parse(css); - * root.source.input.file //=> undefined - * root.source.input.id //=> "" - */ - this.id = ''; - } - if (this.map) this.map.file = this.from; - } - - Input.prototype.error = function error(message, line, column) { - var opts = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; - - var result = void 0; - var origin = this.origin(line, column); - if (origin) { - result = new _cssSyntaxError2.default(message, origin.line, origin.column, origin.source, origin.file, opts.plugin); - } else { - result = new _cssSyntaxError2.default(message, line, column, this.css, this.file, opts.plugin); - } - - result.input = { line: line, column: column, source: this.css }; - if (this.file) result.input.file = this.file; - - return result; - }; - - /** - * Reads the input source map and returns a symbol position - * in the input source (e.g., in a Sass file that was compiled - * to CSS before being passed to PostCSS). - * - * @param {number} line - line in input CSS - * @param {number} column - column in input CSS - * - * @return {filePosition} position in input source - * - * @example - * root.source.input.origin(1, 1) //=> { file: 'a.css', line: 3, column: 1 } - */ - - - Input.prototype.origin = function origin(line, column) { - if (!this.map) return false; - var consumer = this.map.consumer(); - - var from = consumer.originalPositionFor({ line: line, column: column }); - if (!from.source) return false; - - var result = { - file: this.mapResolve(from.source), - line: from.line, - column: from.column - }; - - var source = consumer.sourceContentFor(from.source); - if (source) result.source = source; - - return result; - }; - - Input.prototype.mapResolve = function mapResolve(file) { - if (/^\w+:\/\//.test(file)) { - return file; - } else { - return _path2.default.resolve(this.map.consumer().sourceRoot || '.', file); - } - }; - - /** - * The CSS source identifier. Contains {@link Input#file} if the user - * set the `from` option, or {@link Input#id} if they did not. - * @type {string} - * - * @example - * const root = postcss.parse(css, { from: 'a.css' }); - * root.source.input.from //=> "/home/ai/a.css" - * - * const root = postcss.parse(css); - * root.source.input.from //=> "" - */ - - - _createClass(Input, [{ - key: 'from', - get: function get() { - return this.file || this.id; - } - }]); - - return Input; -}(); - -exports.default = Input; - -/** - * @typedef {object} filePosition - * @property {string} file - path to file - * @property {number} line - source line in file - * @property {number} column - source column in file - */ - -module.exports = exports['default']; - - - -/***/ }), -/* 27 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _cssSyntaxError = __webpack_require__(72); - -var _cssSyntaxError2 = _interopRequireDefault(_cssSyntaxError); - -var _stringifier = __webpack_require__(29); - -var _stringifier2 = _interopRequireDefault(_stringifier); - -var _stringify = __webpack_require__(77); - -var _stringify2 = _interopRequireDefault(_stringify); - -var _warnOnce = __webpack_require__(4); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var cloneNode = function cloneNode(obj, parent) { - var cloned = new obj.constructor(); - - for (var i in obj) { - if (!obj.hasOwnProperty(i)) continue; - var value = obj[i]; - var type = typeof value === 'undefined' ? 'undefined' : _typeof(value); - - if (i === 'parent' && type === 'object') { - if (parent) cloned[i] = parent; - } else if (i === 'source') { - cloned[i] = value; - } else if (value instanceof Array) { - cloned[i] = value.map(function (j) { - return cloneNode(j, cloned); - }); - } else if (i !== 'before' && i !== 'after' && i !== 'between' && i !== 'semicolon') { - if (type === 'object' && value !== null) value = cloneNode(value); - cloned[i] = value; - } - } - - return cloned; -}; - -/** - * All node classes inherit the following common methods. - * - * @abstract - */ - -var Node = function () { - - /** - * @param {object} [defaults] - value for node properties - */ - function Node() { - var defaults = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - _classCallCheck(this, Node); - - this.raws = {}; - if ((typeof defaults === 'undefined' ? 'undefined' : _typeof(defaults)) !== 'object' && typeof defaults !== 'undefined') { - throw new Error('PostCSS nodes constructor accepts object, not ' + JSON.stringify(defaults)); - } - for (var name in defaults) { - this[name] = defaults[name]; - } - } - - /** - * Returns a CssSyntaxError instance containing the original position - * of the node in the source, showing line and column numbers and also - * a small excerpt to facilitate debugging. - * - * If present, an input source map will be used to get the original position - * of the source, even from a previous compilation step - * (e.g., from Sass compilation). - * - * This method produces very useful error messages. - * - * @param {string} message - error description - * @param {object} [opts] - options - * @param {string} opts.plugin - plugin name that created this error. - * PostCSS will set it automatically. - * @param {string} opts.word - a word inside a node’s string that should - * be highlighted as the source of the error - * @param {number} opts.index - an index inside a node’s string that should - * be highlighted as the source of the error - * - * @return {CssSyntaxError} error object to throw it - * - * @example - * if ( !variables[name] ) { - * throw decl.error('Unknown variable ' + name, { word: name }); - * // CssSyntaxError: postcss-vars:a.sass:4:3: Unknown variable $black - * // color: $black - * // a - * // ^ - * // background: white - * } - */ - - - Node.prototype.error = function error(message) { - var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - if (this.source) { - var pos = this.positionBy(opts); - return this.source.input.error(message, pos.line, pos.column, opts); - } else { - return new _cssSyntaxError2.default(message); - } - }; - - /** - * This method is provided as a convenience wrapper for {@link Result#warn}. - * - * @param {Result} result - the {@link Result} instance - * that will receive the warning - * @param {string} text - warning message - * @param {object} [opts] - options - * @param {string} opts.plugin - plugin name that created this warning. - * PostCSS will set it automatically. - * @param {string} opts.word - a word inside a node’s string that should - * be highlighted as the source of the warning - * @param {number} opts.index - an index inside a node’s string that should - * be highlighted as the source of the warning - * - * @return {Warning} created warning object - * - * @example - * const plugin = postcss.plugin('postcss-deprecated', () => { - * return (root, result) => { - * root.walkDecls('bad', decl => { - * decl.warn(result, 'Deprecated property bad'); - * }); - * }; - * }); - */ - - - Node.prototype.warn = function warn(result, text, opts) { - var data = { node: this }; - for (var i in opts) { - data[i] = opts[i]; - }return result.warn(text, data); - }; - - /** - * Removes the node from its parent and cleans the parent properties - * from the node and its children. - * - * @example - * if ( decl.prop.match(/^-webkit-/) ) { - * decl.remove(); - * } - * - * @return {Node} node to make calls chain - */ - - - Node.prototype.remove = function remove() { - if (this.parent) { - this.parent.removeChild(this); - } - this.parent = undefined; - return this; - }; - - /** - * Returns a CSS string representing the node. - * - * @param {stringifier|syntax} [stringifier] - a syntax to use - * in string generation - * - * @return {string} CSS string of this node - * - * @example - * postcss.rule({ selector: 'a' }).toString() //=> "a {}" - */ - - - Node.prototype.toString = function toString() { - var stringifier = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _stringify2.default; - - if (stringifier.stringify) stringifier = stringifier.stringify; - var result = ''; - stringifier(this, function (i) { - result += i; - }); - return result; - }; - - /** - * Returns a clone of the node. - * - * The resulting cloned node and its (cloned) children will have - * a clean parent and code style properties. - * - * @param {object} [overrides] - new properties to override in the clone. - * - * @example - * const cloned = decl.clone({ prop: '-moz-' + decl.prop }); - * cloned.raws.before //=> undefined - * cloned.parent //=> undefined - * cloned.toString() //=> -moz-transform: scale(0) - * - * @return {Node} clone of the node - */ - - - Node.prototype.clone = function clone() { - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var cloned = cloneNode(this); - for (var name in overrides) { - cloned[name] = overrides[name]; - } - return cloned; - }; - - /** - * Shortcut to clone the node and insert the resulting cloned node - * before the current node. - * - * @param {object} [overrides] - new properties to override in the clone. - * - * @example - * decl.cloneBefore({ prop: '-moz-' + decl.prop }); - * - * @return {Node} - new node - */ - - - Node.prototype.cloneBefore = function cloneBefore() { - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var cloned = this.clone(overrides); - this.parent.insertBefore(this, cloned); - return cloned; - }; - - /** - * Shortcut to clone the node and insert the resulting cloned node - * after the current node. - * - * @param {object} [overrides] - new properties to override in the clone. - * - * @return {Node} - new node - */ - - - Node.prototype.cloneAfter = function cloneAfter() { - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var cloned = this.clone(overrides); - this.parent.insertAfter(this, cloned); - return cloned; - }; - - /** - * Inserts node(s) before the current node and removes the current node. - * - * @param {...Node} nodes - node(s) to replace current one - * - * @example - * if ( atrule.name == 'mixin' ) { - * atrule.replaceWith(mixinRules[atrule.params]); - * } - * - * @return {Node} current node to methods chain - */ - - - Node.prototype.replaceWith = function replaceWith() { - if (this.parent) { - for (var _len = arguments.length, nodes = Array(_len), _key = 0; _key < _len; _key++) { - nodes[_key] = arguments[_key]; - } - - for (var _iterator = nodes, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var node = _ref; - - this.parent.insertBefore(this, node); - } - - this.remove(); - } - - return this; - }; - - /** - * Removes the node from its current parent and inserts it - * at the end of `newParent`. - * - * This will clean the `before` and `after` code {@link Node#raws} data - * from the node and replace them with the indentation style of `newParent`. - * It will also clean the `between` property - * if `newParent` is in another {@link Root}. - * - * @param {Container} newParent - container node where the current node - * will be moved - * - * @example - * atrule.moveTo(atrule.root()); - * - * @return {Node} current node to methods chain - */ - - - Node.prototype.moveTo = function moveTo(newParent) { - this.cleanRaws(this.root() === newParent.root()); - this.remove(); - newParent.append(this); - return this; - }; - - /** - * Removes the node from its current parent and inserts it into - * a new parent before `otherNode`. - * - * This will also clean the node’s code style properties just as it would - * in {@link Node#moveTo}. - * - * @param {Node} otherNode - node that will be before current node - * - * @return {Node} current node to methods chain - */ - - - Node.prototype.moveBefore = function moveBefore(otherNode) { - this.cleanRaws(this.root() === otherNode.root()); - this.remove(); - otherNode.parent.insertBefore(otherNode, this); - return this; - }; - - /** - * Removes the node from its current parent and inserts it into - * a new parent after `otherNode`. - * - * This will also clean the node’s code style properties just as it would - * in {@link Node#moveTo}. - * - * @param {Node} otherNode - node that will be after current node - * - * @return {Node} current node to methods chain - */ - - - Node.prototype.moveAfter = function moveAfter(otherNode) { - this.cleanRaws(this.root() === otherNode.root()); - this.remove(); - otherNode.parent.insertAfter(otherNode, this); - return this; - }; - - /** - * Returns the next child of the node’s parent. - * Returns `undefined` if the current node is the last child. - * - * @return {Node|undefined} next node - * - * @example - * if ( comment.text === 'delete next' ) { - * const next = comment.next(); - * if ( next ) { - * next.remove(); - * } - * } - */ - - - Node.prototype.next = function next() { - var index = this.parent.index(this); - return this.parent.nodes[index + 1]; - }; - - /** - * Returns the previous child of the node’s parent. - * Returns `undefined` if the current node is the first child. - * - * @return {Node|undefined} previous node - * - * @example - * const annotation = decl.prev(); - * if ( annotation.type == 'comment' ) { - * readAnnotation(annotation.text); - * } - */ - - - Node.prototype.prev = function prev() { - var index = this.parent.index(this); - return this.parent.nodes[index - 1]; - }; - - Node.prototype.toJSON = function toJSON() { - var fixed = {}; - - for (var name in this) { - if (!this.hasOwnProperty(name)) continue; - if (name === 'parent') continue; - var value = this[name]; - - if (value instanceof Array) { - fixed[name] = value.map(function (i) { - if ((typeof i === 'undefined' ? 'undefined' : _typeof(i)) === 'object' && i.toJSON) { - return i.toJSON(); - } else { - return i; - } - }); - } else if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && value.toJSON) { - fixed[name] = value.toJSON(); - } else { - fixed[name] = value; - } - } - - return fixed; - }; - - /** - * Returns a {@link Node#raws} value. If the node is missing - * the code style property (because the node was manually built or cloned), - * PostCSS will try to autodetect the code style property by looking - * at other nodes in the tree. - * - * @param {string} prop - name of code style property - * @param {string} [defaultType] - name of default value, it can be missed - * if the value is the same as prop - * - * @example - * const root = postcss.parse('a { background: white }'); - * root.nodes[0].append({ prop: 'color', value: 'black' }); - * root.nodes[0].nodes[1].raws.before //=> undefined - * root.nodes[0].nodes[1].raw('before') //=> ' ' - * - * @return {string} code style value - */ - - - Node.prototype.raw = function raw(prop, defaultType) { - var str = new _stringifier2.default(); - return str.raw(this, prop, defaultType); - }; - - /** - * Finds the Root instance of the node’s tree. - * - * @example - * root.nodes[0].nodes[0].root() === root - * - * @return {Root} root parent - */ - - - Node.prototype.root = function root() { - var result = this; - while (result.parent) { - result = result.parent; - }return result; - }; - - Node.prototype.cleanRaws = function cleanRaws(keepBetween) { - delete this.raws.before; - delete this.raws.after; - if (!keepBetween) delete this.raws.between; - }; - - Node.prototype.positionInside = function positionInside(index) { - var string = this.toString(); - var column = this.source.start.column; - var line = this.source.start.line; - - for (var i = 0; i < index; i++) { - if (string[i] === '\n') { - column = 1; - line += 1; - } else { - column += 1; - } - } - - return { line: line, column: column }; - }; - - Node.prototype.positionBy = function positionBy(opts) { - var pos = this.source.start; - if (opts.index) { - pos = this.positionInside(opts.index); - } else if (opts.word) { - var index = this.toString().indexOf(opts.word); - if (index !== -1) pos = this.positionInside(index); - } - return pos; - }; - - Node.prototype.removeSelf = function removeSelf() { - (0, _warnOnce2.default)('Node#removeSelf is deprecated. Use Node#remove.'); - return this.remove(); - }; - - Node.prototype.replace = function replace(nodes) { - (0, _warnOnce2.default)('Node#replace is deprecated. Use Node#replaceWith'); - return this.replaceWith(nodes); - }; - - Node.prototype.style = function style(own, detect) { - (0, _warnOnce2.default)('Node#style() is deprecated. Use Node#raw()'); - return this.raw(own, detect); - }; - - Node.prototype.cleanStyles = function cleanStyles(keepBetween) { - (0, _warnOnce2.default)('Node#cleanStyles() is deprecated. Use Node#cleanRaws()'); - return this.cleanRaws(keepBetween); - }; - - _createClass(Node, [{ - key: 'before', - get: function get() { - (0, _warnOnce2.default)('Node#before is deprecated. Use Node#raws.before'); - return this.raws.before; - }, - set: function set(val) { - (0, _warnOnce2.default)('Node#before is deprecated. Use Node#raws.before'); - this.raws.before = val; - } - }, { - key: 'between', - get: function get() { - (0, _warnOnce2.default)('Node#between is deprecated. Use Node#raws.between'); - return this.raws.between; - }, - set: function set(val) { - (0, _warnOnce2.default)('Node#between is deprecated. Use Node#raws.between'); - this.raws.between = val; - } - - /** - * @memberof Node# - * @member {string} type - String representing the node’s type. - * Possible values are `root`, `atrule`, `rule`, - * `decl`, or `comment`. - * - * @example - * postcss.decl({ prop: 'color', value: 'black' }).type //=> 'decl' - */ - - /** - * @memberof Node# - * @member {Container} parent - the node’s parent node. - * - * @example - * root.nodes[0].parent == root; - */ - - /** - * @memberof Node# - * @member {source} source - the input source of the node - * - * The property is used in source map generation. - * - * If you create a node manually (e.g., with `postcss.decl()`), - * that node will not have a `source` property and will be absent - * from the source map. For this reason, the plugin developer should - * consider cloning nodes to create new ones (in which case the new node’s - * source will reference the original, cloned node) or setting - * the `source` property manually. - * - * ```js - * // Bad - * const prefixed = postcss.decl({ - * prop: '-moz-' + decl.prop, - * value: decl.value - * }); - * - * // Good - * const prefixed = decl.clone({ prop: '-moz-' + decl.prop }); - * ``` - * - * ```js - * if ( atrule.name == 'add-link' ) { - * const rule = postcss.rule({ selector: 'a', source: atrule.source }); - * atrule.parent.insertBefore(atrule, rule); - * } - * ``` - * - * @example - * decl.source.input.from //=> '/home/ai/a.sass' - * decl.source.start //=> { line: 10, column: 2 } - * decl.source.end //=> { line: 10, column: 12 } - */ - - /** - * @memberof Node# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `before`: the space symbols before the node. It also stores `*` - * and `_` symbols before the declaration (IE hack). - * * `after`: the space symbols after the last child of the node - * to the end of the node. - * * `between`: the symbols between the property and value - * for declarations, selector and `{` for rules, or last parameter - * and `{` for at-rules. - * * `semicolon`: contains true if the last child has - * an (optional) semicolon. - * * `afterName`: the space between the at-rule name and its parameters. - * * `left`: the space symbols between `/*` and the comment’s text. - * * `right`: the space symbols between the comment’s text - * and */. - * * `important`: the content of the important statement, - * if it is not just `!important`. - * - * PostCSS cleans selectors, declaration values and at-rule parameters - * from comments and extra spaces, but it stores origin content in raws - * properties. As such, if you don’t change a declaration’s value, - * PostCSS will use the raw value with comments. - * - * @example - * const root = postcss.parse('a {\n color:black\n}') - * root.first.first.raws //=> { before: '\n ', between: ':' } - */ - - }]); - - return Node; -}(); - -exports.default = Node; - -/** - * @typedef {object} position - * @property {number} line - source line in file - * @property {number} column - source column in file - */ - -/** - * @typedef {object} source - * @property {Input} input - {@link Input} with input file - * @property {position} start - The starting position of the node’s source - * @property {position} end - The ending position of the node’s source - */ - -module.exports = exports['default']; - - - -/***/ }), -/* 28 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _container = __webpack_require__(25); - -var _container2 = _interopRequireDefault(_container); - -var _warnOnce = __webpack_require__(4); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -/** - * Represents a CSS file and contains all its parsed nodes. - * - * @extends Container - * - * @example - * const root = postcss.parse('a{color:black} b{z-index:2}'); - * root.type //=> 'root' - * root.nodes.length //=> 2 - */ -var Root = function (_Container) { - _inherits(Root, _Container); - - function Root(defaults) { - _classCallCheck(this, Root); - - var _this = _possibleConstructorReturn(this, _Container.call(this, defaults)); - - _this.type = 'root'; - if (!_this.nodes) _this.nodes = []; - return _this; - } - - Root.prototype.removeChild = function removeChild(child) { - child = this.index(child); - - if (child === 0 && this.nodes.length > 1) { - this.nodes[1].raws.before = this.nodes[child].raws.before; - } - - return _Container.prototype.removeChild.call(this, child); - }; - - Root.prototype.normalize = function normalize(child, sample, type) { - var nodes = _Container.prototype.normalize.call(this, child); - - if (sample) { - if (type === 'prepend') { - if (this.nodes.length > 1) { - sample.raws.before = this.nodes[1].raws.before; - } else { - delete sample.raws.before; - } - } else if (this.first !== sample) { - for (var _iterator = nodes, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var node = _ref; - - node.raws.before = sample.raws.before; - } - } - } - - return nodes; - }; - - /** - * Returns a {@link Result} instance representing the root’s CSS. - * - * @param {processOptions} [opts] - options with only `to` and `map` keys - * - * @return {Result} result with current root’s CSS - * - * @example - * const root1 = postcss.parse(css1, { from: 'a.css' }); - * const root2 = postcss.parse(css2, { from: 'b.css' }); - * root1.append(root2); - * const result = root1.toResult({ to: 'all.css', map: true }); - */ - - - Root.prototype.toResult = function toResult() { - var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var LazyResult = __webpack_require__(74); - var Processor = __webpack_require__(152); - - var lazy = new LazyResult(new Processor(), this, opts); - return lazy.stringify(); - }; - - Root.prototype.remove = function remove(child) { - (0, _warnOnce2.default)('Root#remove is deprecated. Use Root#removeChild'); - this.removeChild(child); - }; - - Root.prototype.prevMap = function prevMap() { - (0, _warnOnce2.default)('Root#prevMap is deprecated. Use Root#source.input.map'); - return this.source.input.map; - }; - - /** - * @memberof Root# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `after`: the space symbols after the last child to the end of file. - * * `semicolon`: is the last child has an (optional) semicolon. - * - * @example - * postcss.parse('a {}\n').raws //=> { after: '\n' } - * postcss.parse('a {}').raws //=> { after: '' } - */ - - return Root; -}(_container2.default); - -exports.default = Root; -module.exports = exports['default']; - - - -/***/ }), -/* 29 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var defaultRaw = { - colon: ': ', - indent: ' ', - beforeDecl: '\n', - beforeRule: '\n', - beforeOpen: ' ', - beforeClose: '\n', - beforeComment: '\n', - after: '\n', - emptyBody: '', - commentLeft: ' ', - commentRight: ' ' -}; - -function capitalize(str) { - return str[0].toUpperCase() + str.slice(1); -} - -var Stringifier = function () { - function Stringifier(builder) { - _classCallCheck(this, Stringifier); - - this.builder = builder; - } - - Stringifier.prototype.stringify = function stringify(node, semicolon) { - this[node.type](node, semicolon); - }; - - Stringifier.prototype.root = function root(node) { - this.body(node); - if (node.raws.after) this.builder(node.raws.after); - }; - - Stringifier.prototype.comment = function comment(node) { - var left = this.raw(node, 'left', 'commentLeft'); - var right = this.raw(node, 'right', 'commentRight'); - this.builder('/*' + left + node.text + right + '*/', node); - }; - - Stringifier.prototype.decl = function decl(node, semicolon) { - var between = this.raw(node, 'between', 'colon'); - var string = node.prop + between + this.rawValue(node, 'value'); - - if (node.important) { - string += node.raws.important || ' !important'; - } - - if (semicolon) string += ';'; - this.builder(string, node); - }; - - Stringifier.prototype.rule = function rule(node) { - this.block(node, this.rawValue(node, 'selector')); - }; - - Stringifier.prototype.atrule = function atrule(node, semicolon) { - var name = '@' + node.name; - var params = node.params ? this.rawValue(node, 'params') : ''; - - if (typeof node.raws.afterName !== 'undefined') { - name += node.raws.afterName; - } else if (params) { - name += ' '; - } - - if (node.nodes) { - this.block(node, name + params); - } else { - var end = (node.raws.between || '') + (semicolon ? ';' : ''); - this.builder(name + params + end, node); - } - }; - - Stringifier.prototype.body = function body(node) { - var last = node.nodes.length - 1; - while (last > 0) { - if (node.nodes[last].type !== 'comment') break; - last -= 1; - } - - var semicolon = this.raw(node, 'semicolon'); - for (var i = 0; i < node.nodes.length; i++) { - var child = node.nodes[i]; - var before = this.raw(child, 'before'); - if (before) this.builder(before); - this.stringify(child, last !== i || semicolon); - } - }; - - Stringifier.prototype.block = function block(node, start) { - var between = this.raw(node, 'between', 'beforeOpen'); - this.builder(start + between + '{', node, 'start'); - - var after = void 0; - if (node.nodes && node.nodes.length) { - this.body(node); - after = this.raw(node, 'after'); - } else { - after = this.raw(node, 'after', 'emptyBody'); - } - - if (after) this.builder(after); - this.builder('}', node, 'end'); - }; - - Stringifier.prototype.raw = function raw(node, own, detect) { - var value = void 0; - if (!detect) detect = own; - - // Already had - if (own) { - value = node.raws[own]; - if (typeof value !== 'undefined') return value; - } - - var parent = node.parent; - - // Hack for first rule in CSS - if (detect === 'before') { - if (!parent || parent.type === 'root' && parent.first === node) { - return ''; - } - } - - // Floating child without parent - if (!parent) return defaultRaw[detect]; - - // Detect style by other nodes - var root = node.root(); - if (!root.rawCache) root.rawCache = {}; - if (typeof root.rawCache[detect] !== 'undefined') { - return root.rawCache[detect]; - } - - if (detect === 'before' || detect === 'after') { - return this.beforeAfter(node, detect); - } else { - var method = 'raw' + capitalize(detect); - if (this[method]) { - value = this[method](root, node); - } else { - root.walk(function (i) { - value = i.raws[own]; - if (typeof value !== 'undefined') return false; - }); - } - } - - if (typeof value === 'undefined') value = defaultRaw[detect]; - - root.rawCache[detect] = value; - return value; - }; - - Stringifier.prototype.rawSemicolon = function rawSemicolon(root) { - var value = void 0; - root.walk(function (i) { - if (i.nodes && i.nodes.length && i.last.type === 'decl') { - value = i.raws.semicolon; - if (typeof value !== 'undefined') return false; - } - }); - return value; - }; - - Stringifier.prototype.rawEmptyBody = function rawEmptyBody(root) { - var value = void 0; - root.walk(function (i) { - if (i.nodes && i.nodes.length === 0) { - value = i.raws.after; - if (typeof value !== 'undefined') return false; - } - }); - return value; - }; - - Stringifier.prototype.rawIndent = function rawIndent(root) { - if (root.raws.indent) return root.raws.indent; - var value = void 0; - root.walk(function (i) { - var p = i.parent; - if (p && p !== root && p.parent && p.parent === root) { - if (typeof i.raws.before !== 'undefined') { - var parts = i.raws.before.split('\n'); - value = parts[parts.length - 1]; - value = value.replace(/[^\s]/g, ''); - return false; - } - } - }); - return value; - }; - - Stringifier.prototype.rawBeforeComment = function rawBeforeComment(root, node) { - var value = void 0; - root.walkComments(function (i) { - if (typeof i.raws.before !== 'undefined') { - value = i.raws.before; - if (value.indexOf('\n') !== -1) { - value = value.replace(/[^\n]+$/, ''); - } - return false; - } - }); - if (typeof value === 'undefined') { - value = this.raw(node, null, 'beforeDecl'); - } - return value; - }; - - Stringifier.prototype.rawBeforeDecl = function rawBeforeDecl(root, node) { - var value = void 0; - root.walkDecls(function (i) { - if (typeof i.raws.before !== 'undefined') { - value = i.raws.before; - if (value.indexOf('\n') !== -1) { - value = value.replace(/[^\n]+$/, ''); - } - return false; - } - }); - if (typeof value === 'undefined') { - value = this.raw(node, null, 'beforeRule'); - } - return value; - }; - - Stringifier.prototype.rawBeforeRule = function rawBeforeRule(root) { - var value = void 0; - root.walk(function (i) { - if (i.nodes && (i.parent !== root || root.first !== i)) { - if (typeof i.raws.before !== 'undefined') { - value = i.raws.before; - if (value.indexOf('\n') !== -1) { - value = value.replace(/[^\n]+$/, ''); - } - return false; - } - } - }); - return value; - }; - - Stringifier.prototype.rawBeforeClose = function rawBeforeClose(root) { - var value = void 0; - root.walk(function (i) { - if (i.nodes && i.nodes.length > 0) { - if (typeof i.raws.after !== 'undefined') { - value = i.raws.after; - if (value.indexOf('\n') !== -1) { - value = value.replace(/[^\n]+$/, ''); - } - return false; - } - } - }); - return value; - }; - - Stringifier.prototype.rawBeforeOpen = function rawBeforeOpen(root) { - var value = void 0; - root.walk(function (i) { - if (i.type !== 'decl') { - value = i.raws.between; - if (typeof value !== 'undefined') return false; - } - }); - return value; - }; - - Stringifier.prototype.rawColon = function rawColon(root) { - var value = void 0; - root.walkDecls(function (i) { - if (typeof i.raws.between !== 'undefined') { - value = i.raws.between.replace(/[^\s:]/g, ''); - return false; - } - }); - return value; - }; - - Stringifier.prototype.beforeAfter = function beforeAfter(node, detect) { - var value = void 0; - if (node.type === 'decl') { - value = this.raw(node, null, 'beforeDecl'); - } else if (node.type === 'comment') { - value = this.raw(node, null, 'beforeComment'); - } else if (detect === 'before') { - value = this.raw(node, null, 'beforeRule'); - } else { - value = this.raw(node, null, 'beforeClose'); - } - - var buf = node.parent; - var depth = 0; - while (buf && buf.type !== 'root') { - depth += 1; - buf = buf.parent; - } - - if (value.indexOf('\n') !== -1) { - var indent = this.raw(node, null, 'indent'); - if (indent.length) { - for (var step = 0; step < depth; step++) { - value += indent; - } - } - } - - return value; - }; - - Stringifier.prototype.rawValue = function rawValue(node, prop) { - var value = node[prop]; - var raw = node.raws[prop]; - if (raw && raw.value === value) { - return raw.raw; - } else { - return value; - } - }; - - return Stringifier; -}(); - -exports.default = Stringifier; -module.exports = exports['default']; - - - -/***/ }), -/* 30 */ -/***/ (function(module, exports) { - -var g; - -// This works in non-strict mode -g = (function() { - return this; -})(); - -try { - // This works if eval is allowed (see CSP) - g = g || Function("return this")() || (1,eval)("this"); -} catch(e) { - // This works if the window reference is available - if(typeof window === "object") - g = window; -} - -// g can still be undefined, but nothing to do about it... -// We return undefined, instead of nothing here, so it's -// easier to handle this case. if(!global) { ...} - -module.exports = g; - - -/***/ }), -/* 31 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - -var _comment = __webpack_require__(24); - -var _comment2 = _interopRequireDefault(_comment); - -var _import2 = __webpack_require__(99); - -var _import3 = _interopRequireDefault(_import2); - -var _parser = __webpack_require__(76); - -var _parser2 = _interopRequireDefault(_parser); - -var _rule = __webpack_require__(105); - -var _rule2 = _interopRequireDefault(_rule); - -var _root = __webpack_require__(104); - -var _root2 = _interopRequireDefault(_root); - -var _findExtendRule = __webpack_require__(98); - -var _findExtendRule2 = _interopRequireDefault(_findExtendRule); - -var _isMixinToken = __webpack_require__(100); - -var _isMixinToken2 = _interopRequireDefault(_isMixinToken); - -var _lessTokenize = __webpack_require__(103); - -var _lessTokenize2 = _interopRequireDefault(_lessTokenize); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var blockCommentEndPattern = /\*\/$/; - -var LessParser = function (_Parser) { - _inherits(LessParser, _Parser); - - function LessParser(input) { - _classCallCheck(this, LessParser); - - var _this = _possibleConstructorReturn(this, (LessParser.__proto__ || Object.getPrototypeOf(LessParser)).call(this, input)); - - _this.root = new _root2.default(); - _this.current = _this.root; - _this.root.source = { input: input, start: { line: 1, column: 1 } }; - return _this; - } - - _createClass(LessParser, [{ - key: 'atrule', - value: function atrule(token) { - if (token[1] === '@import') { - this.import(token); - } else { - _get(LessParser.prototype.__proto__ || Object.getPrototypeOf(LessParser.prototype), 'atrule', this).call(this, token); - } - } - }, { - key: 'comment', - value: function comment(token) { - var node = new _comment2.default(); - var content = token[1]; - var text = content.slice(2).replace(blockCommentEndPattern, ''); - - this.init(node, token[2], token[3]); - node.source.end = { - line: token[4], - column: token[5] - }; - - node.raws.content = content; - node.raws.begin = content[0] + content[1]; - node.inline = token[6] === 'inline'; - node.block = !node.inline; - - if (/^\s*$/.test(text)) { - node.text = ''; - node.raws.left = text; - node.raws.right = ''; - } else { - var match = text.match(/^(\s*)([^]*[^\s])(\s*)$/); - - node.text = match[2]; - - // Add extra spaces to generate a comment in a common style /*[space][text][space]*/ - node.raws.left = match[1] || ' '; - node.raws.right = match[3] || ' '; - } - } - - /** - * @description Create a Declaration - * @param options {{start: number}} - */ - - }, { - key: 'createDeclaration', - value: function createDeclaration(options) { - this.decl(this.tokens.slice(options.start, this.pos + 1)); - } - - /** - * @description Create a Rule node - * @param options {{start: number, params: Array}} - */ - - }, { - key: 'createRule', - value: function createRule(options) { - - var semi = this.tokens[this.pos][0] === ';'; - var end = this.pos + (options.empty && semi ? 2 : 1); - var tokens = this.tokens.slice(options.start, end); - var node = this.rule(tokens); - - /** - * By default in PostCSS `Rule.params` is `undefined`. - * To preserve compability with PostCSS: - * - Don't set empty params for a Rule. - * - Set params for a Rule only if it can be a mixin or &:extend rule. - */ - if (options.params[0] && (options.mixin || options.extend)) { - this.raw(node, 'params', options.params); - } - - if (options.empty) { - // if it's an empty mixin or extend, it must have a semicolon - // (that's the only way we get to this point) - if (semi) { - node.raws.semicolon = this.semicolon = true; - node.selector = node.selector.replace(/;$/, ''); - } - - if (options.extend) { - node.extend = true; - } - - if (options.mixin) { - node.mixin = true; - } - - /** - * @description Mark mixin without declarations. - * @type {boolean} - */ - node.empty = true; - - // eslint-disable-next-line - delete this.current.nodes; - - if (/!important/i.test(node.selector)) { - node.important = true; - node.selector = node.selector.replace(/\s*!important/i, ''); - } - - // rules don't have trailing semicolons in vanilla css, so they get - // added to this.spaces by the parser loop, so don't step back. - if (!semi) { - this.pos--; - } - - this.end(this.tokens[this.pos]); - } - } - }, { - key: 'end', - value: function end(token) { - var node = this.current; - - // if a Rule contains other Rules (mixins, extends) and those have - // semicolons, assert that the parent Rule has a semicolon - if (node.nodes && node.nodes.length && node.last.raws.semicolon && !node.last.nodes) { - this.semicolon = true; - } - - _get(LessParser.prototype.__proto__ || Object.getPrototypeOf(LessParser.prototype), 'end', this).call(this, token); - } - }, { - key: 'import', - value: function _import(token) { - /* eslint complexity: 0 */ - var last = false, - open = false, - end = { line: 0, column: 0 }; - - var directives = []; - var node = new _import3.default(); - - node.name = token[1].slice(1); - - this.init(node, token[2], token[3]); - - this.pos += 1; - - while (this.pos < this.tokens.length) { - var tokn = this.tokens[this.pos]; - - if (tokn[0] === ';') { - end = { line: tokn[2], column: tokn[3] }; - node.raws.semicolon = true; - break; - } else if (tokn[0] === '{') { - open = true; - break; - } else if (tokn[0] === '}') { - this.end(tokn); - break; - } else if (tokn[0] === 'brackets') { - if (node.urlFunc) { - node.importPath = tokn[1].replace(/[()]/g, ''); - } else { - directives.push(tokn); - } - } else if (tokn[0] === 'space') { - if (directives.length) { - node.raws.between = tokn[1]; - } else if (node.urlFunc) { - node.raws.beforeUrl = tokn[1]; - } else if (node.importPath) { - if (node.urlFunc) { - node.raws.afterUrl = tokn[1]; - } else { - node.raws.after = tokn[1]; - } - } else { - node.raws.afterName = tokn[1]; - } - } else if (tokn[0] === 'word' && tokn[1] === 'url') { - node.urlFunc = true; - } else { - if (tokn[0] !== '(' && tokn[0] !== ')') { - node.importPath = tokn[1]; - } - } - - if (this.pos === this.tokens.length) { - last = true; - break; - } - - this.pos += 1; - } - - if (node.raws.between && !node.raws.afterName) { - node.raws.afterName = node.raws.between; - node.raws.between = ''; - } - - node.source.end = end; - - if (directives.length) { - this.raw(node, 'directives', directives); - - if (last) { - token = directives[directives.length - 1]; - node.source.end = { line: token[4], column: token[5] }; - this.spaces = node.raws.between; - node.raws.between = ''; - } - } else { - node.directives = ''; - } - - if (open) { - node.nodes = []; - this.current = node; - } - } - - /* eslint-disable max-statements, complexity */ - - }, { - key: 'other', - value: function other() { - var brackets = []; - var params = []; - var start = this.pos; - - var end = false, - colon = false, - bracket = null; - - // we need pass "()" as spaces - // However we can override method Parser.loop, but it seems less maintainable - if (this.tokens[start][0] === 'brackets') { - this.spaces += this.tokens[start][1]; - return; - } - - var mixin = (0, _isMixinToken2.default)(this.tokens[start]); - var extend = Boolean((0, _findExtendRule2.default)(this.tokens, start)); - - while (this.pos < this.tokens.length) { - var token = this.tokens[this.pos]; - var type = token[0]; - - if (type === '(' || type === '[') { - if (!bracket) { - bracket = token; - } - - brackets.push(type === '(' ? ')' : ']'); - } else if (brackets.length === 0) { - if (type === ';') { - var foundEndOfRule = this.ruleEnd({ - start: start, - params: params, - colon: colon, - mixin: mixin, - extend: extend - }); - - if (foundEndOfRule) { - return; - } - - break; - } else if (type === '{') { - this.createRule({ start: start, params: params, mixin: mixin }); - return; - } else if (type === '}') { - this.pos -= 1; - end = true; - break; - } else if (type === ':') { - colon = true; - } - } else if (type === brackets[brackets.length - 1]) { - brackets.pop(); - if (brackets.length === 0) { - bracket = null; - } - } - - // we don't want to add params for pseudo-selectors that utilize parens (#56) - if ((extend || !colon) && (brackets.length > 0 || type === 'brackets' || params[0])) { - params.push(token); - } - - this.pos += 1; - } - - if (this.pos === this.tokens.length) { - this.pos -= 1; - end = true; - } - - if (brackets.length > 0) { - this.unclosedBracket(bracket); - } - - // dont process an end of rule if there's only one token and it's unknown (#64) - if (end && this.tokens.length > 1) { - // Handle the case where the there is only a single token in the end rule. - if (start === this.pos) { - this.pos += 1; - } - - var _foundEndOfRule = this.ruleEnd({ - start: start, - params: params, - colon: colon, - mixin: mixin, - extend: extend, - isEndOfBlock: true - }); - - if (_foundEndOfRule) { - return; - } - } - - this.unknownWord(start); - } - }, { - key: 'rule', - value: function rule(tokens) { - tokens.pop(); - - var node = new _rule2.default(); - - this.init(node, tokens[0][2], tokens[0][3]); - - //node.raws.between = this.spacesFromEnd(tokens); - node.raws.between = this.spacesAndCommentsFromEnd(tokens); - - this.raw(node, 'selector', tokens); - this.current = node; - - return node; - } - }, { - key: 'ruleEnd', - value: function ruleEnd(options) { - var start = options.start; - - - if (options.extend || options.mixin) { - this.createRule(Object.assign(options, { empty: true })); - return true; - } - - if (options.colon) { - if (options.isEndOfBlock) { - while (this.pos > start) { - var token = this.tokens[this.pos][0]; - - if (token !== 'space' && token !== 'comment') { - break; - } - - this.pos -= 1; - } - } - - this.createDeclaration({ start: start }); - return true; - } - - return false; - } - }, { - key: 'tokenize', - value: function tokenize() { - this.tokens = (0, _lessTokenize2.default)(this.input); - } - - /* eslint-enable max-statements, complexity */ - - }]); - - return LessParser; -}(_parser2.default); - -exports.default = LessParser; -module.exports = exports['default']; - -/***/ }), -/* 32 */ -/***/ (function(module, exports) { - -module.exports = function flatten(list, depth) { - depth = (typeof depth == 'number') ? depth : Infinity; - - if (!depth) { - if (Array.isArray(list)) { - return list.map(function(i) { return i; }); - } - return list; - } - - return _flatten(list, 1); - - function _flatten(list, d) { - return list.reduce(function (acc, item) { - if (Array.isArray(item) && d < depth) { - return acc.concat(_flatten(item, d + 1)); - } - else { - return acc.concat(item); - } - }, []); - } -}; - - -/***/ }), -/* 33 */ -/***/ (function(module, exports) { - -module.exports = function (ary, item) { - var i = -1, indexes = []; - while((i = ary.indexOf(item, i + 1)) !== -1) - indexes.push(i); - return indexes -}; - - -/***/ }), -/* 34 */ -/***/ (function(module, exports, __webpack_require__) { - -/* WEBPACK VAR INJECTION */(function(global) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* - * $Id: base64.js,v 2.15 2014/04/05 12:58:57 dankogai Exp dankogai $ - * - * Licensed under the BSD 3-Clause License. - * http://opensource.org/licenses/BSD-3-Clause - * - * References: - * http://en.wikipedia.org/wiki/Base64 - */ - -(function(global) { - 'use strict'; - // existing version for noConflict() - var _Base64 = global.Base64; - var version = "2.3.2"; - // if node.js, we use Buffer - var buffer; - if (typeof module !== 'undefined' && module.exports) { - try { - buffer = __webpack_require__(15).Buffer; - } catch (err) {} - } - // constants - var b64chars - = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; - var b64tab = function(bin) { - var t = {}; - for (var i = 0, l = bin.length; i < l; i++) t[bin.charAt(i)] = i; - return t; - }(b64chars); - var fromCharCode = String.fromCharCode; - // encoder stuff - var cb_utob = function(c) { - if (c.length < 2) { - var cc = c.charCodeAt(0); - return cc < 0x80 ? c - : cc < 0x800 ? (fromCharCode(0xc0 | (cc >>> 6)) - + fromCharCode(0x80 | (cc & 0x3f))) - : (fromCharCode(0xe0 | ((cc >>> 12) & 0x0f)) - + fromCharCode(0x80 | ((cc >>> 6) & 0x3f)) - + fromCharCode(0x80 | ( cc & 0x3f))); - } else { - var cc = 0x10000 - + (c.charCodeAt(0) - 0xD800) * 0x400 - + (c.charCodeAt(1) - 0xDC00); - return (fromCharCode(0xf0 | ((cc >>> 18) & 0x07)) - + fromCharCode(0x80 | ((cc >>> 12) & 0x3f)) - + fromCharCode(0x80 | ((cc >>> 6) & 0x3f)) - + fromCharCode(0x80 | ( cc & 0x3f))); - } - }; - var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g; - var utob = function(u) { - return u.replace(re_utob, cb_utob); - }; - var cb_encode = function(ccc) { - var padlen = [0, 2, 1][ccc.length % 3], - ord = ccc.charCodeAt(0) << 16 - | ((ccc.length > 1 ? ccc.charCodeAt(1) : 0) << 8) - | ((ccc.length > 2 ? ccc.charCodeAt(2) : 0)), - chars = [ - b64chars.charAt( ord >>> 18), - b64chars.charAt((ord >>> 12) & 63), - padlen >= 2 ? '=' : b64chars.charAt((ord >>> 6) & 63), - padlen >= 1 ? '=' : b64chars.charAt(ord & 63) - ]; - return chars.join(''); - }; - var btoa = global.btoa ? function(b) { - return global.btoa(b); - } : function(b) { - return b.replace(/[\s\S]{1,3}/g, cb_encode); - }; - var _encode = buffer ? - buffer.from && buffer.from !== Uint8Array.from ? function (u) { - return (u.constructor === buffer.constructor ? u : buffer.from(u)) - .toString('base64') - } - : function (u) { - return (u.constructor === buffer.constructor ? u : new buffer(u)) - .toString('base64') - } - : function (u) { return btoa(utob(u)) }; - var encode = function(u, urisafe) { - return !urisafe - ? _encode(String(u)) - : _encode(String(u)).replace(/[+\/]/g, function(m0) { - return m0 == '+' ? '-' : '_'; - }).replace(/=/g, ''); - }; - var encodeURI = function(u) { return encode(u, true) }; - // decoder stuff - var re_btou = new RegExp([ - '[\xC0-\xDF][\x80-\xBF]', - '[\xE0-\xEF][\x80-\xBF]{2}', - '[\xF0-\xF7][\x80-\xBF]{3}' - ].join('|'), 'g'); - var cb_btou = function(cccc) { - switch(cccc.length) { - case 4: - var cp = ((0x07 & cccc.charCodeAt(0)) << 18) - | ((0x3f & cccc.charCodeAt(1)) << 12) - | ((0x3f & cccc.charCodeAt(2)) << 6) - | (0x3f & cccc.charCodeAt(3)), - offset = cp - 0x10000; - return (fromCharCode((offset >>> 10) + 0xD800) - + fromCharCode((offset & 0x3FF) + 0xDC00)); - case 3: - return fromCharCode( - ((0x0f & cccc.charCodeAt(0)) << 12) - | ((0x3f & cccc.charCodeAt(1)) << 6) - | (0x3f & cccc.charCodeAt(2)) - ); - default: - return fromCharCode( - ((0x1f & cccc.charCodeAt(0)) << 6) - | (0x3f & cccc.charCodeAt(1)) - ); - } - }; - var btou = function(b) { - return b.replace(re_btou, cb_btou); - }; - var cb_decode = function(cccc) { - var len = cccc.length, - padlen = len % 4, - n = (len > 0 ? b64tab[cccc.charAt(0)] << 18 : 0) - | (len > 1 ? b64tab[cccc.charAt(1)] << 12 : 0) - | (len > 2 ? b64tab[cccc.charAt(2)] << 6 : 0) - | (len > 3 ? b64tab[cccc.charAt(3)] : 0), - chars = [ - fromCharCode( n >>> 16), - fromCharCode((n >>> 8) & 0xff), - fromCharCode( n & 0xff) - ]; - chars.length -= [0, 0, 2, 1][padlen]; - return chars.join(''); - }; - var atob = global.atob ? function(a) { - return global.atob(a); - } : function(a){ - return a.replace(/[\s\S]{1,4}/g, cb_decode); - }; - var _decode = buffer ? - buffer.from && buffer.from !== Uint8Array.from ? function(a) { - return (a.constructor === buffer.constructor - ? a : buffer.from(a, 'base64')).toString(); - } - : function(a) { - return (a.constructor === buffer.constructor - ? a : new buffer(a, 'base64')).toString(); - } - : function(a) { return btou(atob(a)) }; - var decode = function(a){ - return _decode( - String(a).replace(/[-_]/g, function(m0) { return m0 == '-' ? '+' : '/' }) - .replace(/[^A-Za-z0-9\+\/]/g, '') - ); - }; - var noConflict = function() { - var Base64 = global.Base64; - global.Base64 = _Base64; - return Base64; - }; - // export Base64 - global.Base64 = { - VERSION: version, - atob: atob, - btoa: btoa, - fromBase64: decode, - toBase64: encode, - utob: utob, - encode: encode, - encodeURI: encodeURI, - btou: btou, - decode: decode, - noConflict: noConflict - }; - // if ES5 is available, make Base64.extendString() available - if (typeof Object.defineProperty === 'function') { - var noEnum = function(v){ - return {value:v,enumerable:false,writable:true,configurable:true}; - }; - global.Base64.extendString = function () { - Object.defineProperty( - String.prototype, 'fromBase64', noEnum(function () { - return decode(this) - })); - Object.defineProperty( - String.prototype, 'toBase64', noEnum(function (urisafe) { - return encode(this, urisafe) - })); - Object.defineProperty( - String.prototype, 'toBase64URI', noEnum(function () { - return encode(this, true) - })); - }; - } - // - // export Base64 to the namespace - // - if (global['Meteor']) { // Meteor.js - Base64 = global.Base64; - } - // module.exports and AMD are mutually exclusive. - // module.exports has precedence. - if (typeof module !== 'undefined' && module.exports) { - module.exports.Base64 = global.Base64; - } - else { - // AMD. Register as an anonymous module. - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function(){ return global.Base64 }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } - // that's it! -})( typeof self !== 'undefined' ? self - : typeof window !== 'undefined' ? window - : typeof global !== 'undefined' ? global - : this -); - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(30))); - -/***/ }), -/* 35 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _Node = __webpack_require__(36); - -var _Node2 = _interopRequireDefault(_Node); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function Container(opts) { - var _this = this; - - this.constructor(opts); - - this.nodes = opts.nodes; - - if (this.after === undefined) { - this.after = this.nodes.length > 0 ? this.nodes[this.nodes.length - 1].after : ''; - } - - if (this.before === undefined) { - this.before = this.nodes.length > 0 ? this.nodes[0].before : ''; - } - - if (this.sourceIndex === undefined) { - this.sourceIndex = this.before.length; - } - - this.nodes.forEach(function (node) { - node.parent = _this; // eslint-disable-line no-param-reassign - }); -} /** - * A node that contains other nodes and support traversing over them - */ - -Container.prototype = Object.create(_Node2.default.prototype); -Container.constructor = _Node2.default; - -/** - * Iterate over descendant nodes of the node - * - * @param {RegExp|string} filter - Optional. Only nodes with node.type that - * satisfies the filter will be traversed over - * @param {function} cb - callback to call on each node. Takes theese params: - * node - the node being processed, i - it's index, nodes - the array - * of all nodes - * If false is returned, the iteration breaks - * - * @return (boolean) false, if the iteration was broken - */ -Container.prototype.walk = function walk(filter, cb) { - var hasFilter = typeof filter === 'string' || filter instanceof RegExp; - var callback = hasFilter ? cb : filter; - var filterReg = typeof filter === 'string' ? new RegExp(filter) : filter; - - for (var i = 0; i < this.nodes.length; i++) { - var node = this.nodes[i]; - var filtered = hasFilter ? filterReg.test(node.type) : true; - if (filtered && callback && callback(node, i, this.nodes) === false) { - return false; - } - if (node.nodes && node.walk(filter, cb) === false) { - return false; - } - } - return true; -}; - -/** - * Iterate over immediate children of the node - * - * @param {function} cb - callback to call on each node. Takes theese params: - * node - the node being processed, i - it's index, nodes - the array - * of all nodes - * If false is returned, the iteration breaks - * - * @return (boolean) false, if the iteration was broken - */ -Container.prototype.each = function each() { - var cb = arguments.length <= 0 || arguments[0] === undefined ? function () {} : arguments[0]; - - for (var i = 0; i < this.nodes.length; i++) { - var node = this.nodes[i]; - if (cb(node, i, this.nodes) === false) { - return false; - } - } - return true; -}; - -exports.default = Container; - -/***/ }), -/* 36 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -/** - * A very generic node. Pretty much any element of a media query - */ - -function Node(opts) { - this.after = opts.after; - this.before = opts.before; - this.type = opts.type; - this.value = opts.value; - this.sourceIndex = opts.sourceIndex; -} - -exports.default = Node; - -/***/ }), -/* 37 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _supportsColor = __webpack_require__(173); - -var _supportsColor2 = _interopRequireDefault(_supportsColor); - -var _chalk = __webpack_require__(85); - -var _chalk2 = _interopRequireDefault(_chalk); - -var _terminalHighlight = __webpack_require__(131); - -var _terminalHighlight2 = _interopRequireDefault(_terminalHighlight); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * The CSS parser throws this error for broken CSS. - * - * Custom parsers can throw this error for broken custom syntax using - * the {@link Node#error} method. - * - * PostCSS will use the input source map to detect the original error location. - * If you wrote a Sass file, compiled it to CSS and then parsed it with PostCSS, - * PostCSS will show the original position in the Sass file. - * - * If you need the position in the PostCSS input - * (e.g., to debug the previous compiler), use `error.input.file`. - * - * @example - * // Catching and checking syntax error - * try { - * postcss.parse('a{') - * } catch (error) { - * if ( error.name === 'CssSyntaxError' ) { - * error //=> CssSyntaxError - * } - * } - * - * @example - * // Raising error from plugin - * throw node.error('Unknown variable', { plugin: 'postcss-vars' }); - */ -var CssSyntaxError = function () { - - /** - * @param {string} message - error message - * @param {number} [line] - source line of the error - * @param {number} [column] - source column of the error - * @param {string} [source] - source code of the broken file - * @param {string} [file] - absolute path to the broken file - * @param {string} [plugin] - PostCSS plugin name, if error came from plugin - */ - function CssSyntaxError(message, line, column, source, file, plugin) { - _classCallCheck(this, CssSyntaxError); - - /** - * @member {string} - Always equal to `'CssSyntaxError'`. You should - * always check error type - * by `error.name === 'CssSyntaxError'` instead of - * `error instanceof CssSyntaxError`, because - * npm could have several PostCSS versions. - * - * @example - * if ( error.name === 'CssSyntaxError' ) { - * error //=> CssSyntaxError - * } - */ - this.name = 'CssSyntaxError'; - /** - * @member {string} - Error message. - * - * @example - * error.message //=> 'Unclosed block' - */ - this.reason = message; - - if (file) { - /** - * @member {string} - Absolute path to the broken file. - * - * @example - * error.file //=> 'a.sass' - * error.input.file //=> 'a.css' - */ - this.file = file; - } - if (source) { - /** - * @member {string} - Source code of the broken file. - * - * @example - * error.source //=> 'a { b {} }' - * error.input.column //=> 'a b { }' - */ - this.source = source; - } - if (plugin) { - /** - * @member {string} - Plugin name, if error came from plugin. - * - * @example - * error.plugin //=> 'postcss-vars' - */ - this.plugin = plugin; - } - if (typeof line !== 'undefined' && typeof column !== 'undefined') { - /** - * @member {number} - Source line of the error. - * - * @example - * error.line //=> 2 - * error.input.line //=> 4 - */ - this.line = line; - /** - * @member {number} - Source column of the error. - * - * @example - * error.column //=> 1 - * error.input.column //=> 4 - */ - this.column = column; - } - - this.setMessage(); - - if (Error.captureStackTrace) { - Error.captureStackTrace(this, CssSyntaxError); - } - } - - CssSyntaxError.prototype.setMessage = function setMessage() { - /** - * @member {string} - Full error text in the GNU error format - * with plugin, file, line and column. - * - * @example - * error.message //=> 'a.css:1:1: Unclosed block' - */ - this.message = this.plugin ? this.plugin + ': ' : ''; - this.message += this.file ? this.file : ''; - if (typeof this.line !== 'undefined') { - this.message += ':' + this.line + ':' + this.column; - } - this.message += ': ' + this.reason; - }; - - /** - * Returns a few lines of CSS source that caused the error. - * - * If the CSS has an input source map without `sourceContent`, - * this method will return an empty string. - * - * @param {boolean} [color] whether arrow will be colored red by terminal - * color codes. By default, PostCSS will detect - * color support by `process.stdout.isTTY` - * and `process.env.NODE_DISABLE_COLORS`. - * - * @example - * error.showSourceCode() //=> " 4 | } - * // 5 | a { - * // > 6 | bad - * // | ^ - * // 7 | } - * // 8 | b {" - * - * @return {string} few lines of CSS source that caused the error - */ - - - CssSyntaxError.prototype.showSourceCode = function showSourceCode(color) { - var _this = this; - - if (!this.source) return ''; - - var css = this.source; - if (typeof color === 'undefined') color = _supportsColor2.default; - if (color) css = (0, _terminalHighlight2.default)(css); - - var lines = css.split(/\r?\n/); - var start = Math.max(this.line - 3, 0); - var end = Math.min(this.line + 2, lines.length); - - var maxWidth = String(end).length; - - function mark(text) { - if (color && _chalk2.default.red) { - return _chalk2.default.red.bold(text); - } else { - return text; - } - } - function aside(text) { - if (color && _chalk2.default.gray) { - return _chalk2.default.gray(text); - } else { - return text; - } - } - - return lines.slice(start, end).map(function (line, index) { - var number = start + 1 + index; - var gutter = ' ' + (' ' + number).slice(-maxWidth) + ' | '; - if (number === _this.line) { - var spacing = aside(gutter.replace(/\d/g, ' ')) + line.slice(0, _this.column - 1).replace(/[^\t]/g, ' '); - return mark('>') + aside(gutter) + line + '\n ' + spacing + mark('^'); - } else { - return ' ' + aside(gutter) + line; - } - }).join('\n'); - }; - - /** - * Returns error position, message and source code of the broken part. - * - * @example - * error.toString() //=> "CssSyntaxError: app.css:1:1: Unclosed block - * // > 1 | a { - * // | ^" - * - * @return {string} error position, message and source code - */ - - - CssSyntaxError.prototype.toString = function toString() { - var code = this.showSourceCode(); - if (code) { - code = '\n\n' + code + '\n'; - } - return this.name + ': ' + this.message + code; - }; - - /** - * @memberof CssSyntaxError# - * @member {Input} input - Input object with PostCSS internal information - * about input file. If input has source map - * from previous tool, PostCSS will use origin - * (for example, Sass) source. You can use this - * object to get PostCSS input source. - * - * @example - * error.input.file //=> 'a.css' - * error.file //=> 'a.sass' - */ - - return CssSyntaxError; -}(); - -exports.default = CssSyntaxError; -module.exports = exports['default']; - - - -/***/ }), -/* 38 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _node = __webpack_require__(19); - -var _node2 = _interopRequireDefault(_node); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -/** - * Represents a CSS declaration. - * - * @extends Node - * - * @example - * const root = postcss.parse('a { color: black }'); - * const decl = root.first.first; - * decl.type //=> 'decl' - * decl.toString() //=> ' color: black' - */ -var Declaration = function (_Node) { - _inherits(Declaration, _Node); - - function Declaration(defaults) { - _classCallCheck(this, Declaration); - - var _this = _possibleConstructorReturn(this, _Node.call(this, defaults)); - - _this.type = 'decl'; - return _this; - } - - /** - * @memberof Declaration# - * @member {string} prop - the declaration’s property name - * - * @example - * const root = postcss.parse('a { color: black }'); - * const decl = root.first.first; - * decl.prop //=> 'color' - */ - - /** - * @memberof Declaration# - * @member {string} value - the declaration’s value - * - * @example - * const root = postcss.parse('a { color: black }'); - * const decl = root.first.first; - * decl.value //=> 'black' - */ - - /** - * @memberof Declaration# - * @member {boolean} important - `true` if the declaration - * has an !important annotation. - * - * @example - * const root = postcss.parse('a { color: black !important; color: red }'); - * root.first.first.important //=> true - * root.first.last.important //=> undefined - */ - - /** - * @memberof Declaration# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `before`: the space symbols before the node. It also stores `*` - * and `_` symbols before the declaration (IE hack). - * * `between`: the symbols between the property and value - * for declarations. - * * `important`: the content of the important statement, - * if it is not just `!important`. - * - * PostCSS cleans declaration from comments and extra spaces, - * but it stores origin content in raws properties. - * As such, if you don’t change a declaration’s value, - * PostCSS will use the raw value with comments. - * - * @example - * const root = postcss.parse('a {\n color:black\n}') - * root.first.first.raws //=> { before: '\n ', between: ':' } - */ - - return Declaration; -}(_node2.default); - -exports.default = Declaration; -module.exports = exports['default']; - - - -/***/ }), -/* 39 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _mapGenerator = __webpack_require__(127); - -var _mapGenerator2 = _interopRequireDefault(_mapGenerator); - -var _stringify2 = __webpack_require__(43); - -var _stringify3 = _interopRequireDefault(_stringify2); - -var _result = __webpack_require__(130); - -var _result2 = _interopRequireDefault(_result); - -var _parse = __webpack_require__(40); - -var _parse2 = _interopRequireDefault(_parse); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function isPromise(obj) { - return (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && typeof obj.then === 'function'; -} - -/** - * A Promise proxy for the result of PostCSS transformations. - * - * A `LazyResult` instance is returned by {@link Processor#process}. - * - * @example - * const lazy = postcss([cssnext]).process(css); - */ - -var LazyResult = function () { - function LazyResult(processor, css, opts) { - _classCallCheck(this, LazyResult); - - this.stringified = false; - this.processed = false; - - var root = void 0; - if ((typeof css === 'undefined' ? 'undefined' : _typeof(css)) === 'object' && css.type === 'root') { - root = css; - } else if (css instanceof LazyResult || css instanceof _result2.default) { - root = css.root; - if (css.map) { - if (typeof opts.map === 'undefined') opts.map = {}; - if (!opts.map.inline) opts.map.inline = false; - opts.map.prev = css.map; - } - } else { - var parser = _parse2.default; - if (opts.syntax) parser = opts.syntax.parse; - if (opts.parser) parser = opts.parser; - if (parser.parse) parser = parser.parse; - - try { - root = parser(css, opts); - } catch (error) { - this.error = error; - } - } - - this.result = new _result2.default(processor, root, opts); - } - - /** - * Returns a {@link Processor} instance, which will be used - * for CSS transformations. - * @type {Processor} - */ - - - /** - * Processes input CSS through synchronous plugins - * and calls {@link Result#warnings()}. - * - * @return {Warning[]} warnings from plugins - */ - LazyResult.prototype.warnings = function warnings() { - return this.sync().warnings(); - }; - - /** - * Alias for the {@link LazyResult#css} property. - * - * @example - * lazy + '' === lazy.css; - * - * @return {string} output CSS - */ - - - LazyResult.prototype.toString = function toString() { - return this.css; - }; - - /** - * Processes input CSS through synchronous and asynchronous plugins - * and calls `onFulfilled` with a Result instance. If a plugin throws - * an error, the `onRejected` callback will be executed. - * - * It implements standard Promise API. - * - * @param {onFulfilled} onFulfilled - callback will be executed - * when all plugins will finish work - * @param {onRejected} onRejected - callback will be executed on any error - * - * @return {Promise} Promise API to make queue - * - * @example - * postcss([cssnext]).process(css).then(result => { - * console.log(result.css); - * }); - */ - - - LazyResult.prototype.then = function then(onFulfilled, onRejected) { - return this.async().then(onFulfilled, onRejected); - }; - - /** - * Processes input CSS through synchronous and asynchronous plugins - * and calls onRejected for each error thrown in any plugin. - * - * It implements standard Promise API. - * - * @param {onRejected} onRejected - callback will be executed on any error - * - * @return {Promise} Promise API to make queue - * - * @example - * postcss([cssnext]).process(css).then(result => { - * console.log(result.css); - * }).catch(error => { - * console.error(error); - * }); - */ - - - LazyResult.prototype.catch = function _catch(onRejected) { - return this.async().catch(onRejected); - }; - - LazyResult.prototype.handleError = function handleError(error, plugin) { - try { - this.error = error; - if (error.name === 'CssSyntaxError' && !error.plugin) { - error.plugin = plugin.postcssPlugin; - error.setMessage(); - } else if (plugin.postcssVersion) { - var pluginName = plugin.postcssPlugin; - var pluginVer = plugin.postcssVersion; - var runtimeVer = this.result.processor.version; - var a = pluginVer.split('.'); - var b = runtimeVer.split('.'); - - if (a[0] !== b[0] || parseInt(a[1]) > parseInt(b[1])) { - console.error('Unknown error from PostCSS plugin. ' + 'Your current PostCSS version ' + 'is ' + runtimeVer + ', but ' + pluginName + ' ' + 'uses ' + pluginVer + '. Perhaps this is ' + 'the source of the error below.'); - } - } - } catch (err) { - if (console && console.error) console.error(err); - } - }; - - LazyResult.prototype.asyncTick = function asyncTick(resolve, reject) { - var _this = this; - - if (this.plugin >= this.processor.plugins.length) { - this.processed = true; - return resolve(); - } - - try { - var plugin = this.processor.plugins[this.plugin]; - var promise = this.run(plugin); - this.plugin += 1; - - if (isPromise(promise)) { - promise.then(function () { - _this.asyncTick(resolve, reject); - }).catch(function (error) { - _this.handleError(error, plugin); - _this.processed = true; - reject(error); - }); - } else { - this.asyncTick(resolve, reject); - } - } catch (error) { - this.processed = true; - reject(error); - } - }; - - LazyResult.prototype.async = function async() { - var _this2 = this; - - if (this.processed) { - return new Promise(function (resolve, reject) { - if (_this2.error) { - reject(_this2.error); - } else { - resolve(_this2.stringify()); - } - }); - } - if (this.processing) { - return this.processing; - } - - this.processing = new Promise(function (resolve, reject) { - if (_this2.error) return reject(_this2.error); - _this2.plugin = 0; - _this2.asyncTick(resolve, reject); - }).then(function () { - _this2.processed = true; - return _this2.stringify(); - }); - - return this.processing; - }; - - LazyResult.prototype.sync = function sync() { - if (this.processed) return this.result; - this.processed = true; - - if (this.processing) { - throw new Error('Use process(css).then(cb) to work with async plugins'); - } - - if (this.error) throw this.error; - - for (var _iterator = this.result.processor.plugins, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var plugin = _ref; - - var promise = this.run(plugin); - if (isPromise(promise)) { - throw new Error('Use process(css).then(cb) to work with async plugins'); - } - } - - return this.result; - }; - - LazyResult.prototype.run = function run(plugin) { - this.result.lastPlugin = plugin; - - try { - return plugin(this.result.root, this.result); - } catch (error) { - this.handleError(error, plugin); - throw error; - } - }; - - LazyResult.prototype.stringify = function stringify() { - if (this.stringified) return this.result; - this.stringified = true; - - this.sync(); - - var opts = this.result.opts; - var str = _stringify3.default; - if (opts.syntax) str = opts.syntax.stringify; - if (opts.stringifier) str = opts.stringifier; - if (str.stringify) str = str.stringify; - - var map = new _mapGenerator2.default(str, this.result.root, this.result.opts); - var data = map.generate(); - this.result.css = data[0]; - this.result.map = data[1]; - - return this.result; - }; - - _createClass(LazyResult, [{ - key: 'processor', - get: function get() { - return this.result.processor; - } - - /** - * Options from the {@link Processor#process} call. - * @type {processOptions} - */ - - }, { - key: 'opts', - get: function get() { - return this.result.opts; - } - - /** - * Processes input CSS through synchronous plugins, converts `Root` - * to a CSS string and returns {@link Result#css}. - * - * This property will only work with synchronous plugins. - * If the processor contains any asynchronous plugins - * it will throw an error. This is why this method is only - * for debug purpose, you should always use {@link LazyResult#then}. - * - * @type {string} - * @see Result#css - */ - - }, { - key: 'css', - get: function get() { - return this.stringify().css; - } - - /** - * An alias for the `css` property. Use it with syntaxes - * that generate non-CSS output. - * - * This property will only work with synchronous plugins. - * If the processor contains any asynchronous plugins - * it will throw an error. This is why this method is only - * for debug purpose, you should always use {@link LazyResult#then}. - * - * @type {string} - * @see Result#content - */ - - }, { - key: 'content', - get: function get() { - return this.stringify().content; - } - - /** - * Processes input CSS through synchronous plugins - * and returns {@link Result#map}. - * - * This property will only work with synchronous plugins. - * If the processor contains any asynchronous plugins - * it will throw an error. This is why this method is only - * for debug purpose, you should always use {@link LazyResult#then}. - * - * @type {SourceMapGenerator} - * @see Result#map - */ - - }, { - key: 'map', - get: function get() { - return this.stringify().map; - } - - /** - * Processes input CSS through synchronous plugins - * and returns {@link Result#root}. - * - * This property will only work with synchronous plugins. If the processor - * contains any asynchronous plugins it will throw an error. - * - * This is why this method is only for debug purpose, - * you should always use {@link LazyResult#then}. - * - * @type {Root} - * @see Result#root - */ - - }, { - key: 'root', - get: function get() { - return this.sync().root; - } - - /** - * Processes input CSS through synchronous plugins - * and returns {@link Result#messages}. - * - * This property will only work with synchronous plugins. If the processor - * contains any asynchronous plugins it will throw an error. - * - * This is why this method is only for debug purpose, - * you should always use {@link LazyResult#then}. - * - * @type {Message[]} - * @see Result#messages - */ - - }, { - key: 'messages', - get: function get() { - return this.sync().messages; - } - }]); - - return LazyResult; -}(); - -exports.default = LazyResult; - -/** - * @callback onFulfilled - * @param {Result} result - */ - -/** - * @callback onRejected - * @param {Error} error - */ - -module.exports = exports['default']; - - - -/***/ }), -/* 40 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -exports.default = parse; - -var _parser = __webpack_require__(41); - -var _parser2 = _interopRequireDefault(_parser); - -var _input = __webpack_require__(18); - -var _input2 = _interopRequireDefault(_input); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function parse(css, opts) { - if (opts && opts.safe) { - throw new Error('Option safe was removed. ' + 'Use parser: require("postcss-safe-parser")'); - } - - var input = new _input2.default(css, opts); - var parser = new _parser2.default(input); - try { - parser.parse(); - } catch (e) { - if (e.name === 'CssSyntaxError' && opts && opts.from) { - if (/\.scss$/i.test(opts.from)) { - e.message += '\nYou tried to parse SCSS with ' + 'the standard CSS parser; ' + 'try again with the postcss-scss parser'; - } else if (/\.sass/i.test(opts.from)) { - e.message += '\nYou tried to parse Sass with ' + 'the standard CSS parser; ' + 'try again with the postcss-sass parser'; - } else if (/\.less$/i.test(opts.from)) { - e.message += '\nYou tried to parse Less with ' + 'the standard CSS parser; ' + 'try again with the postcss-less parser'; - } - } - throw e; - } - - return parser.root; -} -module.exports = exports['default']; - - - -/***/ }), -/* 41 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _declaration = __webpack_require__(38); - -var _declaration2 = _interopRequireDefault(_declaration); - -var _tokenize = __webpack_require__(44); - -var _tokenize2 = _interopRequireDefault(_tokenize); - -var _comment = __webpack_require__(17); - -var _comment2 = _interopRequireDefault(_comment); - -var _atRule = __webpack_require__(16); - -var _atRule2 = _interopRequireDefault(_atRule); - -var _root = __webpack_require__(42); - -var _root2 = _interopRequireDefault(_root); - -var _rule = __webpack_require__(20); - -var _rule2 = _interopRequireDefault(_rule); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var Parser = function () { - function Parser(input) { - _classCallCheck(this, Parser); - - this.input = input; - - this.root = new _root2.default(); - this.current = this.root; - this.spaces = ''; - this.semicolon = false; - - this.createTokenizer(); - this.root.source = { input: input, start: { line: 1, column: 1 } }; - } - - Parser.prototype.createTokenizer = function createTokenizer() { - this.tokenizer = (0, _tokenize2.default)(this.input); - }; - - Parser.prototype.parse = function parse() { - var token = void 0; - while (!this.tokenizer.endOfFile()) { - token = this.tokenizer.nextToken(); - - switch (token[0]) { - - case 'space': - this.spaces += token[1]; - break; - - case ';': - this.freeSemicolon(token); - break; - - case '}': - this.end(token); - break; - - case 'comment': - this.comment(token); - break; - - case 'at-word': - this.atrule(token); - break; - - case '{': - this.emptyRule(token); - break; - - default: - this.other(token); - break; - } - } - this.endFile(); - }; - - Parser.prototype.comment = function comment(token) { - var node = new _comment2.default(); - this.init(node, token[2], token[3]); - node.source.end = { line: token[4], column: token[5] }; - - var text = token[1].slice(2, -2); - if (/^\s*$/.test(text)) { - node.text = ''; - node.raws.left = text; - node.raws.right = ''; - } else { - var match = text.match(/^(\s*)([^]*[^\s])(\s*)$/); - node.text = match[2]; - node.raws.left = match[1]; - node.raws.right = match[3]; - } - }; - - Parser.prototype.emptyRule = function emptyRule(token) { - var node = new _rule2.default(); - this.init(node, token[2], token[3]); - node.selector = ''; - node.raws.between = ''; - this.current = node; - }; - - Parser.prototype.other = function other(start) { - var end = false; - var type = null; - var colon = false; - var bracket = null; - var brackets = []; - - var tokens = []; - var token = start; - while (token) { - type = token[0]; - tokens.push(token); - - if (type === '(' || type === '[') { - if (!bracket) bracket = token; - brackets.push(type === '(' ? ')' : ']'); - } else if (brackets.length === 0) { - if (type === ';') { - if (colon) { - this.decl(tokens); - return; - } else { - break; - } - } else if (type === '{') { - this.rule(tokens); - return; - } else if (type === '}') { - this.tokenizer.back(tokens.pop()); - end = true; - break; - } else if (type === ':') { - colon = true; - } - } else if (type === brackets[brackets.length - 1]) { - brackets.pop(); - if (brackets.length === 0) bracket = null; - } - - token = this.tokenizer.nextToken(); - } - - if (this.tokenizer.endOfFile()) end = true; - if (brackets.length > 0) this.unclosedBracket(bracket); - - if (end && colon) { - while (tokens.length) { - token = tokens[tokens.length - 1][0]; - if (token !== 'space' && token !== 'comment') break; - this.tokenizer.back(tokens.pop()); - } - this.decl(tokens); - return; - } else { - this.unknownWord(tokens); - } - }; - - Parser.prototype.rule = function rule(tokens) { - tokens.pop(); - - var node = new _rule2.default(); - this.init(node, tokens[0][2], tokens[0][3]); - - node.raws.between = this.spacesAndCommentsFromEnd(tokens); - this.raw(node, 'selector', tokens); - this.current = node; - }; - - Parser.prototype.decl = function decl(tokens) { - var node = new _declaration2.default(); - this.init(node); - - var last = tokens[tokens.length - 1]; - if (last[0] === ';') { - this.semicolon = true; - tokens.pop(); - } - if (last[4]) { - node.source.end = { line: last[4], column: last[5] }; - } else { - node.source.end = { line: last[2], column: last[3] }; - } - - while (tokens[0][0] !== 'word') { - if (tokens.length === 1) this.unknownWord(tokens); - node.raws.before += tokens.shift()[1]; - } - node.source.start = { line: tokens[0][2], column: tokens[0][3] }; - - node.prop = ''; - while (tokens.length) { - var type = tokens[0][0]; - if (type === ':' || type === 'space' || type === 'comment') { - break; - } - node.prop += tokens.shift()[1]; - } - - node.raws.between = ''; - - var token = void 0; - while (tokens.length) { - token = tokens.shift(); - - if (token[0] === ':') { - node.raws.between += token[1]; - break; - } else { - node.raws.between += token[1]; - } - } - - if (node.prop[0] === '_' || node.prop[0] === '*') { - node.raws.before += node.prop[0]; - node.prop = node.prop.slice(1); - } - node.raws.between += this.spacesAndCommentsFromStart(tokens); - this.precheckMissedSemicolon(tokens); - - for (var i = tokens.length - 1; i > 0; i--) { - token = tokens[i]; - if (token[1].toLowerCase() === '!important') { - node.important = true; - var string = this.stringFrom(tokens, i); - string = this.spacesFromEnd(tokens) + string; - if (string !== ' !important') node.raws.important = string; - break; - } else if (token[1].toLowerCase() === 'important') { - var cache = tokens.slice(0); - var str = ''; - for (var j = i; j > 0; j--) { - var _type = cache[j][0]; - if (str.trim().indexOf('!') === 0 && _type !== 'space') { - break; - } - str = cache.pop()[1] + str; - } - if (str.trim().indexOf('!') === 0) { - node.important = true; - node.raws.important = str; - tokens = cache; - } - } - - if (token[0] !== 'space' && token[0] !== 'comment') { - break; - } - } - - this.raw(node, 'value', tokens); - - if (node.value.indexOf(':') !== -1) this.checkMissedSemicolon(tokens); - }; - - Parser.prototype.atrule = function atrule(token) { - var node = new _atRule2.default(); - node.name = token[1].slice(1); - if (node.name === '') { - this.unnamedAtrule(node, token); - } - this.init(node, token[2], token[3]); - - var prev = void 0; - var shift = void 0; - var last = false; - var open = false; - var params = []; - - while (!this.tokenizer.endOfFile()) { - token = this.tokenizer.nextToken(); - - if (token[0] === ';') { - node.source.end = { line: token[2], column: token[3] }; - this.semicolon = true; - break; - } else if (token[0] === '{') { - open = true; - break; - } else if (token[0] === '}') { - if (params.length > 0) { - shift = params.length - 1; - prev = params[shift]; - while (prev && prev[0] === 'space') { - prev = params[--shift]; - } - if (prev) { - node.source.end = { line: prev[4], column: prev[5] }; - } - } - this.end(token); - break; - } else { - params.push(token); - } - - if (this.tokenizer.endOfFile()) { - last = true; - break; - } - } - - node.raws.between = this.spacesAndCommentsFromEnd(params); - if (params.length) { - node.raws.afterName = this.spacesAndCommentsFromStart(params); - this.raw(node, 'params', params); - if (last) { - token = params[params.length - 1]; - node.source.end = { line: token[4], column: token[5] }; - this.spaces = node.raws.between; - node.raws.between = ''; - } - } else { - node.raws.afterName = ''; - node.params = ''; - } - - if (open) { - node.nodes = []; - this.current = node; - } - }; - - Parser.prototype.end = function end(token) { - if (this.current.nodes && this.current.nodes.length) { - this.current.raws.semicolon = this.semicolon; - } - this.semicolon = false; - - this.current.raws.after = (this.current.raws.after || '') + this.spaces; - this.spaces = ''; - - if (this.current.parent) { - this.current.source.end = { line: token[2], column: token[3] }; - this.current = this.current.parent; - } else { - this.unexpectedClose(token); - } - }; - - Parser.prototype.endFile = function endFile() { - if (this.current.parent) this.unclosedBlock(); - if (this.current.nodes && this.current.nodes.length) { - this.current.raws.semicolon = this.semicolon; - } - this.current.raws.after = (this.current.raws.after || '') + this.spaces; - }; - - Parser.prototype.freeSemicolon = function freeSemicolon(token) { - this.spaces += token[1]; - if (this.current.nodes) { - var prev = this.current.nodes[this.current.nodes.length - 1]; - if (prev && prev.type === 'rule' && !prev.raws.ownSemicolon) { - prev.raws.ownSemicolon = this.spaces; - this.spaces = ''; - } - } - }; - - // Helpers - - Parser.prototype.init = function init(node, line, column) { - this.current.push(node); - - node.source = { start: { line: line, column: column }, input: this.input }; - node.raws.before = this.spaces; - this.spaces = ''; - if (node.type !== 'comment') this.semicolon = false; - }; - - Parser.prototype.raw = function raw(node, prop, tokens) { - var token = void 0, - type = void 0; - var length = tokens.length; - var value = ''; - var clean = true; - for (var i = 0; i < length; i += 1) { - token = tokens[i]; - type = token[0]; - if (type === 'comment' || type === 'space' && i === length - 1) { - clean = false; - } else { - value += token[1]; - } - } - if (!clean) { - var raw = tokens.reduce(function (all, i) { - return all + i[1]; - }, ''); - node.raws[prop] = { value: value, raw: raw }; - } - node[prop] = value; - }; - - Parser.prototype.spacesAndCommentsFromEnd = function spacesAndCommentsFromEnd(tokens) { - var lastTokenType = void 0; - var spaces = ''; - while (tokens.length) { - lastTokenType = tokens[tokens.length - 1][0]; - if (lastTokenType !== 'space' && lastTokenType !== 'comment') break; - spaces = tokens.pop()[1] + spaces; - } - return spaces; - }; - - Parser.prototype.spacesAndCommentsFromStart = function spacesAndCommentsFromStart(tokens) { - var next = void 0; - var spaces = ''; - while (tokens.length) { - next = tokens[0][0]; - if (next !== 'space' && next !== 'comment') break; - spaces += tokens.shift()[1]; - } - return spaces; - }; - - Parser.prototype.spacesFromEnd = function spacesFromEnd(tokens) { - var lastTokenType = void 0; - var spaces = ''; - while (tokens.length) { - lastTokenType = tokens[tokens.length - 1][0]; - if (lastTokenType !== 'space') break; - spaces = tokens.pop()[1] + spaces; - } - return spaces; - }; - - Parser.prototype.stringFrom = function stringFrom(tokens, from) { - var result = ''; - for (var i = from; i < tokens.length; i++) { - result += tokens[i][1]; - } - tokens.splice(from, tokens.length - from); - return result; - }; - - Parser.prototype.colon = function colon(tokens) { - var brackets = 0; - var token = void 0, - type = void 0, - prev = void 0; - for (var i = 0; i < tokens.length; i++) { - token = tokens[i]; - type = token[0]; - - if (type === '(') { - brackets += 1; - } else if (type === ')') { - brackets -= 1; - } else if (brackets === 0 && type === ':') { - if (!prev) { - this.doubleColon(token); - } else if (prev[0] === 'word' && prev[1] === 'progid') { - continue; - } else { - return i; - } - } - - prev = token; - } - return false; - }; - - // Errors - - Parser.prototype.unclosedBracket = function unclosedBracket(bracket) { - throw this.input.error('Unclosed bracket', bracket[2], bracket[3]); - }; - - Parser.prototype.unknownWord = function unknownWord(tokens) { - throw this.input.error('Unknown word', tokens[0][2], tokens[0][3]); - }; - - Parser.prototype.unexpectedClose = function unexpectedClose(token) { - throw this.input.error('Unexpected }', token[2], token[3]); - }; - - Parser.prototype.unclosedBlock = function unclosedBlock() { - var pos = this.current.source.start; - throw this.input.error('Unclosed block', pos.line, pos.column); - }; - - Parser.prototype.doubleColon = function doubleColon(token) { - throw this.input.error('Double colon', token[2], token[3]); - }; - - Parser.prototype.unnamedAtrule = function unnamedAtrule(node, token) { - throw this.input.error('At-rule without name', token[2], token[3]); - }; - - Parser.prototype.precheckMissedSemicolon = function precheckMissedSemicolon(tokens) { - // Hook for Safe Parser - tokens; - }; - - Parser.prototype.checkMissedSemicolon = function checkMissedSemicolon(tokens) { - var colon = this.colon(tokens); - if (colon === false) return; - - var founded = 0; - var token = void 0; - for (var j = colon - 1; j >= 0; j--) { - token = tokens[j]; - if (token[0] !== 'space') { - founded += 1; - if (founded === 2) break; - } - } - throw this.input.error('Missed semicolon', token[2], token[3]); - }; - - return Parser; -}(); - -exports.default = Parser; -module.exports = exports['default']; - - - -/***/ }), -/* 42 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _container = __webpack_require__(13); - -var _container2 = _interopRequireDefault(_container); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -/** - * Represents a CSS file and contains all its parsed nodes. - * - * @extends Container - * - * @example - * const root = postcss.parse('a{color:black} b{z-index:2}'); - * root.type //=> 'root' - * root.nodes.length //=> 2 - */ -var Root = function (_Container) { - _inherits(Root, _Container); - - function Root(defaults) { - _classCallCheck(this, Root); - - var _this = _possibleConstructorReturn(this, _Container.call(this, defaults)); - - _this.type = 'root'; - if (!_this.nodes) _this.nodes = []; - return _this; - } - - Root.prototype.removeChild = function removeChild(child, ignore) { - var index = this.index(child); - - if (!ignore && index === 0 && this.nodes.length > 1) { - this.nodes[1].raws.before = this.nodes[index].raws.before; - } - - return _Container.prototype.removeChild.call(this, child); - }; - - Root.prototype.normalize = function normalize(child, sample, type) { - var nodes = _Container.prototype.normalize.call(this, child); - - if (sample) { - if (type === 'prepend') { - if (this.nodes.length > 1) { - sample.raws.before = this.nodes[1].raws.before; - } else { - delete sample.raws.before; - } - } else if (this.first !== sample) { - for (var _iterator = nodes, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var node = _ref; - - node.raws.before = sample.raws.before; - } - } - } - - return nodes; - }; - - /** - * Returns a {@link Result} instance representing the root’s CSS. - * - * @param {processOptions} [opts] - options with only `to` and `map` keys - * - * @return {Result} result with current root’s CSS - * - * @example - * const root1 = postcss.parse(css1, { from: 'a.css' }); - * const root2 = postcss.parse(css2, { from: 'b.css' }); - * root1.append(root2); - * const result = root1.toResult({ to: 'all.css', map: true }); - */ - - - Root.prototype.toResult = function toResult() { - var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var LazyResult = __webpack_require__(39); - var Processor = __webpack_require__(129); - - var lazy = new LazyResult(new Processor(), this, opts); - return lazy.stringify(); - }; - - /** - * @memberof Root# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `after`: the space symbols after the last child to the end of file. - * * `semicolon`: is the last child has an (optional) semicolon. - * - * @example - * postcss.parse('a {}\n').raws //=> { after: '\n' } - * postcss.parse('a {}').raws //=> { after: '' } - */ - - return Root; -}(_container2.default); - -exports.default = Root; -module.exports = exports['default']; - - - -/***/ }), -/* 43 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -exports.default = stringify; - -var _stringifier = __webpack_require__(21); - -var _stringifier2 = _interopRequireDefault(_stringifier); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function stringify(node, builder) { - var str = new _stringifier2.default(builder); - str.stringify(node); -} -module.exports = exports['default']; - - - -/***/ }), -/* 44 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -exports.default = tokenizer; -var SINGLE_QUOTE = 39; -var DOUBLE_QUOTE = 34; -var BACKSLASH = 92; -var SLASH = 47; -var NEWLINE = 10; -var SPACE = 32; -var FEED = 12; -var TAB = 9; -var CR = 13; -var OPEN_SQUARE = 91; -var CLOSE_SQUARE = 93; -var OPEN_PARENTHESES = 40; -var CLOSE_PARENTHESES = 41; -var OPEN_CURLY = 123; -var CLOSE_CURLY = 125; -var SEMICOLON = 59; -var ASTERISK = 42; -var COLON = 58; -var AT = 64; - -var RE_AT_END = /[ \n\t\r\f\{\(\)'"\\;/\[\]#]/g; -var RE_WORD_END = /[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g; -var RE_BAD_BRACKET = /.[\\\/\("'\n]/; -var RE_HEX_ESCAPE = /[a-f0-9]/i; - -function tokenizer(input) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - var css = input.css.valueOf(); - var ignore = options.ignoreErrors; - - var code = void 0, - next = void 0, - quote = void 0, - lines = void 0, - last = void 0, - content = void 0, - escape = void 0, - nextLine = void 0, - nextOffset = void 0, - escaped = void 0, - escapePos = void 0, - prev = void 0, - n = void 0, - currentToken = void 0; - - var length = css.length; - var offset = -1; - var line = 1; - var pos = 0; - var buffer = []; - var returned = []; - - function unclosed(what) { - throw input.error('Unclosed ' + what, line, pos - offset); - } - - function endOfFile() { - return returned.length === 0 && pos >= length; - } - - function nextToken() { - if (returned.length) return returned.pop(); - if (pos >= length) return; - - code = css.charCodeAt(pos); - if (code === NEWLINE || code === FEED || code === CR && css.charCodeAt(pos + 1) !== NEWLINE) { - offset = pos; - line += 1; - } - - switch (code) { - case NEWLINE: - case SPACE: - case TAB: - case CR: - case FEED: - next = pos; - do { - next += 1; - code = css.charCodeAt(next); - if (code === NEWLINE) { - offset = next; - line += 1; - } - } while (code === SPACE || code === NEWLINE || code === TAB || code === CR || code === FEED); - - currentToken = ['space', css.slice(pos, next)]; - pos = next - 1; - break; - - case OPEN_SQUARE: - currentToken = ['[', '[', line, pos - offset]; - break; - - case CLOSE_SQUARE: - currentToken = [']', ']', line, pos - offset]; - break; - - case OPEN_CURLY: - currentToken = ['{', '{', line, pos - offset]; - break; - - case CLOSE_CURLY: - currentToken = ['}', '}', line, pos - offset]; - break; - - case COLON: - currentToken = [':', ':', line, pos - offset]; - break; - - case SEMICOLON: - currentToken = [';', ';', line, pos - offset]; - break; - - case OPEN_PARENTHESES: - prev = buffer.length ? buffer.pop()[1] : ''; - n = css.charCodeAt(pos + 1); - if (prev === 'url' && n !== SINGLE_QUOTE && n !== DOUBLE_QUOTE && n !== SPACE && n !== NEWLINE && n !== TAB && n !== FEED && n !== CR) { - next = pos; - do { - escaped = false; - next = css.indexOf(')', next + 1); - if (next === -1) { - if (ignore) { - next = pos; - break; - } else { - unclosed('bracket'); - } - } - escapePos = next; - while (css.charCodeAt(escapePos - 1) === BACKSLASH) { - escapePos -= 1; - escaped = !escaped; - } - } while (escaped); - - currentToken = ['brackets', css.slice(pos, next + 1), line, pos - offset, line, next - offset]; - - pos = next; - } else { - next = css.indexOf(')', pos + 1); - content = css.slice(pos, next + 1); - - if (next === -1 || RE_BAD_BRACKET.test(content)) { - currentToken = ['(', '(', line, pos - offset]; - } else { - currentToken = ['brackets', content, line, pos - offset, line, next - offset]; - pos = next; - } - } - - break; - - case CLOSE_PARENTHESES: - currentToken = [')', ')', line, pos - offset]; - break; - - case SINGLE_QUOTE: - case DOUBLE_QUOTE: - quote = code === SINGLE_QUOTE ? '\'' : '"'; - next = pos; - do { - escaped = false; - next = css.indexOf(quote, next + 1); - if (next === -1) { - if (ignore) { - next = pos + 1; - break; - } else { - unclosed('string'); - } - } - escapePos = next; - while (css.charCodeAt(escapePos - 1) === BACKSLASH) { - escapePos -= 1; - escaped = !escaped; - } - } while (escaped); - - content = css.slice(pos, next + 1); - lines = content.split('\n'); - last = lines.length - 1; - - if (last > 0) { - nextLine = line + last; - nextOffset = next - lines[last].length; - } else { - nextLine = line; - nextOffset = offset; - } - - currentToken = ['string', css.slice(pos, next + 1), line, pos - offset, nextLine, next - nextOffset]; - - offset = nextOffset; - line = nextLine; - pos = next; - break; - - case AT: - RE_AT_END.lastIndex = pos + 1; - RE_AT_END.test(css); - if (RE_AT_END.lastIndex === 0) { - next = css.length - 1; - } else { - next = RE_AT_END.lastIndex - 2; - } - - currentToken = ['at-word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]; - - pos = next; - break; - - case BACKSLASH: - next = pos; - escape = true; - while (css.charCodeAt(next + 1) === BACKSLASH) { - next += 1; - escape = !escape; - } - code = css.charCodeAt(next + 1); - if (escape && code !== SLASH && code !== SPACE && code !== NEWLINE && code !== TAB && code !== CR && code !== FEED) { - next += 1; - if (RE_HEX_ESCAPE.test(css.charAt(next))) { - while (RE_HEX_ESCAPE.test(css.charAt(next + 1))) { - next += 1; - } - if (css.charCodeAt(next + 1) === SPACE) { - next += 1; - } - } - } - - currentToken = ['word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]; - - pos = next; - break; - - default: - if (code === SLASH && css.charCodeAt(pos + 1) === ASTERISK) { - next = css.indexOf('*/', pos + 2) + 1; - if (next === 0) { - if (ignore) { - next = css.length; - } else { - unclosed('comment'); - } - } - - content = css.slice(pos, next + 1); - lines = content.split('\n'); - last = lines.length - 1; - - if (last > 0) { - nextLine = line + last; - nextOffset = next - lines[last].length; - } else { - nextLine = line; - nextOffset = offset; - } - - currentToken = ['comment', content, line, pos - offset, nextLine, next - nextOffset]; - - offset = nextOffset; - line = nextLine; - pos = next; - } else { - RE_WORD_END.lastIndex = pos + 1; - RE_WORD_END.test(css); - if (RE_WORD_END.lastIndex === 0) { - next = css.length - 1; - } else { - next = RE_WORD_END.lastIndex - 2; - } - - currentToken = ['word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]; - - buffer.push(currentToken); - - pos = next; - } - - break; - } - - pos++; - return currentToken; - } - - function back(token) { - returned.push(token); - } - - return { - back: back, - nextToken: nextToken, - endOfFile: endOfFile - }; -} -module.exports = exports['default']; - - - -/***/ }), -/* 45 */ -/***/ (function(module, exports, __webpack_require__) { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -var util = __webpack_require__(8); -var has = Object.prototype.hasOwnProperty; -var hasNativeMap = typeof Map !== "undefined"; - -/** - * A data structure which is a combination of an array and a set. Adding a new - * member is O(1), testing for membership is O(1), and finding the index of an - * element is O(1). Removing elements from the set is not supported. Only - * strings are supported for membership. - */ -function ArraySet() { - this._array = []; - this._set = hasNativeMap ? new Map() : Object.create(null); -} - -/** - * Static method for creating ArraySet instances from an existing array. - */ -ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) { - var set = new ArraySet(); - for (var i = 0, len = aArray.length; i < len; i++) { - set.add(aArray[i], aAllowDuplicates); - } - return set; -}; - -/** - * Return how many unique items are in this ArraySet. If duplicates have been - * added, than those do not count towards the size. - * - * @returns Number - */ -ArraySet.prototype.size = function ArraySet_size() { - return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length; -}; - -/** - * Add the given string to this set. - * - * @param String aStr - */ -ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) { - var sStr = hasNativeMap ? aStr : util.toSetString(aStr); - var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr); - var idx = this._array.length; - if (!isDuplicate || aAllowDuplicates) { - this._array.push(aStr); - } - if (!isDuplicate) { - if (hasNativeMap) { - this._set.set(aStr, idx); - } else { - this._set[sStr] = idx; - } - } -}; - -/** - * Is the given string a member of this set? - * - * @param String aStr - */ -ArraySet.prototype.has = function ArraySet_has(aStr) { - if (hasNativeMap) { - return this._set.has(aStr); - } else { - var sStr = util.toSetString(aStr); - return has.call(this._set, sStr); - } -}; - -/** - * What is the index of the given string in the array? - * - * @param String aStr - */ -ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) { - if (hasNativeMap) { - var idx = this._set.get(aStr); - if (idx >= 0) { - return idx; - } - } else { - var sStr = util.toSetString(aStr); - if (has.call(this._set, sStr)) { - return this._set[sStr]; - } - } - - throw new Error('"' + aStr + '" is not in the set.'); -}; - -/** - * What is the element at the given index? - * - * @param Number aIdx - */ -ArraySet.prototype.at = function ArraySet_at(aIdx) { - if (aIdx >= 0 && aIdx < this._array.length) { - return this._array[aIdx]; - } - throw new Error('No element indexed by ' + aIdx); -}; - -/** - * Returns the array representation of this set (which has the proper indices - * indicated by indexOf). Note that this is a copy of the internal array used - * for storing the members so that no one can mess with internal state. - */ -ArraySet.prototype.toArray = function ArraySet_toArray() { - return this._array.slice(); -}; - -exports.ArraySet = ArraySet; - - -/***/ }), -/* 46 */ -/***/ (function(module, exports, __webpack_require__) { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - * - * Based on the Base 64 VLQ implementation in Closure Compiler: - * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java - * - * Copyright 2011 The Closure Compiler Authors. All rights reserved. - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials provided - * with the distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -var base64 = __webpack_require__(134); - -// A single base 64 digit can contain 6 bits of data. For the base 64 variable -// length quantities we use in the source map spec, the first bit is the sign, -// the next four bits are the actual value, and the 6th bit is the -// continuation bit. The continuation bit tells us whether there are more -// digits in this value following this digit. -// -// Continuation -// | Sign -// | | -// V V -// 101011 - -var VLQ_BASE_SHIFT = 5; - -// binary: 100000 -var VLQ_BASE = 1 << VLQ_BASE_SHIFT; - -// binary: 011111 -var VLQ_BASE_MASK = VLQ_BASE - 1; - -// binary: 100000 -var VLQ_CONTINUATION_BIT = VLQ_BASE; - -/** - * Converts from a two-complement value to a value where the sign bit is - * placed in the least significant bit. For example, as decimals: - * 1 becomes 2 (10 binary), -1 becomes 3 (11 binary) - * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary) - */ -function toVLQSigned(aValue) { - return aValue < 0 - ? ((-aValue) << 1) + 1 - : (aValue << 1) + 0; -} - -/** - * Converts to a two-complement value from a value where the sign bit is - * placed in the least significant bit. For example, as decimals: - * 2 (10 binary) becomes 1, 3 (11 binary) becomes -1 - * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2 - */ -function fromVLQSigned(aValue) { - var isNegative = (aValue & 1) === 1; - var shifted = aValue >> 1; - return isNegative - ? -shifted - : shifted; -} - -/** - * Returns the base 64 VLQ encoded value. - */ -exports.encode = function base64VLQ_encode(aValue) { - var encoded = ""; - var digit; - - var vlq = toVLQSigned(aValue); - - do { - digit = vlq & VLQ_BASE_MASK; - vlq >>>= VLQ_BASE_SHIFT; - if (vlq > 0) { - // There are still more digits in this value, so we must make sure the - // continuation bit is marked. - digit |= VLQ_CONTINUATION_BIT; - } - encoded += base64.encode(digit); - } while (vlq > 0); - - return encoded; -}; - -/** - * Decodes the next base 64 VLQ value from the given string and returns the - * value and the rest of the string via the out parameter. - */ -exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) { - var strLen = aStr.length; - var result = 0; - var shift = 0; - var continuation, digit; - - do { - if (aIndex >= strLen) { - throw new Error("Expected more digits in base 64 VLQ value."); - } - - digit = base64.decode(aStr.charCodeAt(aIndex++)); - if (digit === -1) { - throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1)); - } - - continuation = !!(digit & VLQ_CONTINUATION_BIT); - digit &= VLQ_BASE_MASK; - result = result + (digit << shift); - shift += VLQ_BASE_SHIFT; - } while (continuation); - - aOutParam.value = fromVLQSigned(result); - aOutParam.rest = aIndex; -}; - - -/***/ }), -/* 47 */ -/***/ (function(module, exports, __webpack_require__) { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -var base64VLQ = __webpack_require__(46); -var util = __webpack_require__(8); -var ArraySet = __webpack_require__(45).ArraySet; -var MappingList = __webpack_require__(136).MappingList; - -/** - * An instance of the SourceMapGenerator represents a source map which is - * being built incrementally. You may pass an object with the following - * properties: - * - * - file: The filename of the generated source. - * - sourceRoot: A root for all relative URLs in this source map. - */ -function SourceMapGenerator(aArgs) { - if (!aArgs) { - aArgs = {}; - } - this._file = util.getArg(aArgs, 'file', null); - this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null); - this._skipValidation = util.getArg(aArgs, 'skipValidation', false); - this._sources = new ArraySet(); - this._names = new ArraySet(); - this._mappings = new MappingList(); - this._sourcesContents = null; -} - -SourceMapGenerator.prototype._version = 3; - -/** - * Creates a new SourceMapGenerator based on a SourceMapConsumer - * - * @param aSourceMapConsumer The SourceMap. - */ -SourceMapGenerator.fromSourceMap = - function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) { - var sourceRoot = aSourceMapConsumer.sourceRoot; - var generator = new SourceMapGenerator({ - file: aSourceMapConsumer.file, - sourceRoot: sourceRoot - }); - aSourceMapConsumer.eachMapping(function (mapping) { - var newMapping = { - generated: { - line: mapping.generatedLine, - column: mapping.generatedColumn - } - }; - - if (mapping.source != null) { - newMapping.source = mapping.source; - if (sourceRoot != null) { - newMapping.source = util.relative(sourceRoot, newMapping.source); - } - - newMapping.original = { - line: mapping.originalLine, - column: mapping.originalColumn - }; - - if (mapping.name != null) { - newMapping.name = mapping.name; - } - } - - generator.addMapping(newMapping); - }); - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var sourceRelative = sourceFile; - if (sourceRoot !== null) { - sourceRelative = util.relative(sourceRoot, sourceFile); - } - - if (!generator._sources.has(sourceRelative)) { - generator._sources.add(sourceRelative); - } - - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - generator.setSourceContent(sourceFile, content); - } - }); - return generator; - }; - -/** - * Add a single mapping from original source line and column to the generated - * source's line and column for this source map being created. The mapping - * object should have the following properties: - * - * - generated: An object with the generated line and column positions. - * - original: An object with the original line and column positions. - * - source: The original source file (relative to the sourceRoot). - * - name: An optional original token name for this mapping. - */ -SourceMapGenerator.prototype.addMapping = - function SourceMapGenerator_addMapping(aArgs) { - var generated = util.getArg(aArgs, 'generated'); - var original = util.getArg(aArgs, 'original', null); - var source = util.getArg(aArgs, 'source', null); - var name = util.getArg(aArgs, 'name', null); - - if (!this._skipValidation) { - this._validateMapping(generated, original, source, name); - } - - if (source != null) { - source = String(source); - if (!this._sources.has(source)) { - this._sources.add(source); - } - } - - if (name != null) { - name = String(name); - if (!this._names.has(name)) { - this._names.add(name); - } - } - - this._mappings.add({ - generatedLine: generated.line, - generatedColumn: generated.column, - originalLine: original != null && original.line, - originalColumn: original != null && original.column, - source: source, - name: name - }); - }; - -/** - * Set the source content for a source file. - */ -SourceMapGenerator.prototype.setSourceContent = - function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) { - var source = aSourceFile; - if (this._sourceRoot != null) { - source = util.relative(this._sourceRoot, source); - } - - if (aSourceContent != null) { - // Add the source content to the _sourcesContents map. - // Create a new _sourcesContents map if the property is null. - if (!this._sourcesContents) { - this._sourcesContents = Object.create(null); - } - this._sourcesContents[util.toSetString(source)] = aSourceContent; - } else if (this._sourcesContents) { - // Remove the source file from the _sourcesContents map. - // If the _sourcesContents map is empty, set the property to null. - delete this._sourcesContents[util.toSetString(source)]; - if (Object.keys(this._sourcesContents).length === 0) { - this._sourcesContents = null; - } - } - }; - -/** - * Applies the mappings of a sub-source-map for a specific source file to the - * source map being generated. Each mapping to the supplied source file is - * rewritten using the supplied source map. Note: The resolution for the - * resulting mappings is the minimium of this map and the supplied map. - * - * @param aSourceMapConsumer The source map to be applied. - * @param aSourceFile Optional. The filename of the source file. - * If omitted, SourceMapConsumer's file property will be used. - * @param aSourceMapPath Optional. The dirname of the path to the source map - * to be applied. If relative, it is relative to the SourceMapConsumer. - * This parameter is needed when the two source maps aren't in the same - * directory, and the source map to be applied contains relative source - * paths. If so, those relative source paths need to be rewritten - * relative to the SourceMapGenerator. - */ -SourceMapGenerator.prototype.applySourceMap = - function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) { - var sourceFile = aSourceFile; - // If aSourceFile is omitted, we will use the file property of the SourceMap - if (aSourceFile == null) { - if (aSourceMapConsumer.file == null) { - throw new Error( - 'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' + - 'or the source map\'s "file" property. Both were omitted.' - ); - } - sourceFile = aSourceMapConsumer.file; - } - var sourceRoot = this._sourceRoot; - // Make "sourceFile" relative if an absolute Url is passed. - if (sourceRoot != null) { - sourceFile = util.relative(sourceRoot, sourceFile); - } - // Applying the SourceMap can add and remove items from the sources and - // the names array. - var newSources = new ArraySet(); - var newNames = new ArraySet(); - - // Find mappings for the "sourceFile" - this._mappings.unsortedForEach(function (mapping) { - if (mapping.source === sourceFile && mapping.originalLine != null) { - // Check if it can be mapped by the source map, then update the mapping. - var original = aSourceMapConsumer.originalPositionFor({ - line: mapping.originalLine, - column: mapping.originalColumn - }); - if (original.source != null) { - // Copy mapping - mapping.source = original.source; - if (aSourceMapPath != null) { - mapping.source = util.join(aSourceMapPath, mapping.source); - } - if (sourceRoot != null) { - mapping.source = util.relative(sourceRoot, mapping.source); - } - mapping.originalLine = original.line; - mapping.originalColumn = original.column; - if (original.name != null) { - mapping.name = original.name; - } - } - } - - var source = mapping.source; - if (source != null && !newSources.has(source)) { - newSources.add(source); - } - - var name = mapping.name; - if (name != null && !newNames.has(name)) { - newNames.add(name); - } - - }, this); - this._sources = newSources; - this._names = newNames; - - // Copy sourcesContents of applied map. - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - if (aSourceMapPath != null) { - sourceFile = util.join(aSourceMapPath, sourceFile); - } - if (sourceRoot != null) { - sourceFile = util.relative(sourceRoot, sourceFile); - } - this.setSourceContent(sourceFile, content); - } - }, this); - }; - -/** - * A mapping can have one of the three levels of data: - * - * 1. Just the generated position. - * 2. The Generated position, original position, and original source. - * 3. Generated and original position, original source, as well as a name - * token. - * - * To maintain consistency, we validate that any new mapping being added falls - * in to one of these categories. - */ -SourceMapGenerator.prototype._validateMapping = - function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, - aName) { - // When aOriginal is truthy but has empty values for .line and .column, - // it is most likely a programmer error. In this case we throw a very - // specific error message to try to guide them the right way. - // For example: https://github.com/Polymer/polymer-bundler/pull/519 - if (aOriginal && typeof aOriginal.line !== 'number' && typeof aOriginal.column !== 'number') { - throw new Error( - 'original.line and original.column are not numbers -- you probably meant to omit ' + - 'the original mapping entirely and only map the generated position. If so, pass ' + - 'null for the original mapping instead of an object with empty or null values.' - ); - } - - if (aGenerated && 'line' in aGenerated && 'column' in aGenerated - && aGenerated.line > 0 && aGenerated.column >= 0 - && !aOriginal && !aSource && !aName) { - // Case 1. - return; - } - else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated - && aOriginal && 'line' in aOriginal && 'column' in aOriginal - && aGenerated.line > 0 && aGenerated.column >= 0 - && aOriginal.line > 0 && aOriginal.column >= 0 - && aSource) { - // Cases 2 and 3. - return; - } - else { - throw new Error('Invalid mapping: ' + JSON.stringify({ - generated: aGenerated, - source: aSource, - original: aOriginal, - name: aName - })); - } - }; - -/** - * Serialize the accumulated mappings in to the stream of base 64 VLQs - * specified by the source map format. - */ -SourceMapGenerator.prototype._serializeMappings = - function SourceMapGenerator_serializeMappings() { - var previousGeneratedColumn = 0; - var previousGeneratedLine = 1; - var previousOriginalColumn = 0; - var previousOriginalLine = 0; - var previousName = 0; - var previousSource = 0; - var result = ''; - var next; - var mapping; - var nameIdx; - var sourceIdx; - - var mappings = this._mappings.toArray(); - for (var i = 0, len = mappings.length; i < len; i++) { - mapping = mappings[i]; - next = ''; - - if (mapping.generatedLine !== previousGeneratedLine) { - previousGeneratedColumn = 0; - while (mapping.generatedLine !== previousGeneratedLine) { - next += ';'; - previousGeneratedLine++; - } - } - else { - if (i > 0) { - if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) { - continue; - } - next += ','; - } - } - - next += base64VLQ.encode(mapping.generatedColumn - - previousGeneratedColumn); - previousGeneratedColumn = mapping.generatedColumn; - - if (mapping.source != null) { - sourceIdx = this._sources.indexOf(mapping.source); - next += base64VLQ.encode(sourceIdx - previousSource); - previousSource = sourceIdx; - - // lines are stored 0-based in SourceMap spec version 3 - next += base64VLQ.encode(mapping.originalLine - 1 - - previousOriginalLine); - previousOriginalLine = mapping.originalLine - 1; - - next += base64VLQ.encode(mapping.originalColumn - - previousOriginalColumn); - previousOriginalColumn = mapping.originalColumn; - - if (mapping.name != null) { - nameIdx = this._names.indexOf(mapping.name); - next += base64VLQ.encode(nameIdx - previousName); - previousName = nameIdx; - } - } - - result += next; - } - - return result; - }; - -SourceMapGenerator.prototype._generateSourcesContent = - function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) { - return aSources.map(function (source) { - if (!this._sourcesContents) { - return null; - } - if (aSourceRoot != null) { - source = util.relative(aSourceRoot, source); - } - var key = util.toSetString(source); - return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) - ? this._sourcesContents[key] - : null; - }, this); - }; - -/** - * Externalize the source map. - */ -SourceMapGenerator.prototype.toJSON = - function SourceMapGenerator_toJSON() { - var map = { - version: this._version, - sources: this._sources.toArray(), - names: this._names.toArray(), - mappings: this._serializeMappings() - }; - if (this._file != null) { - map.file = this._file; - } - if (this._sourceRoot != null) { - map.sourceRoot = this._sourceRoot; - } - if (this._sourcesContents) { - map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot); - } - - return map; - }; - -/** - * Render the source map being generated to a string. - */ -SourceMapGenerator.prototype.toString = - function SourceMapGenerator_toString() { - return JSON.stringify(this.toJSON()); - }; - -exports.SourceMapGenerator = SourceMapGenerator; - - -/***/ }), -/* 48 */ -/***/ (function(module, exports, __webpack_require__) { - -/* - * Copyright 2009-2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE.txt or: - * http://opensource.org/licenses/BSD-3-Clause - */ -exports.SourceMapGenerator = __webpack_require__(47).SourceMapGenerator; -exports.SourceMapConsumer = __webpack_require__(138).SourceMapConsumer; -exports.SourceNode = __webpack_require__(139).SourceNode; - - -/***/ }), -/* 49 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _namespace = __webpack_require__(9); - -var _namespace2 = _interopRequireDefault(_namespace); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Attribute = function (_Namespace) { - _inherits(Attribute, _Namespace); - - function Attribute(opts) { - _classCallCheck(this, Attribute); - - var _this = _possibleConstructorReturn(this, _Namespace.call(this, opts)); - - _this.type = _types.ATTRIBUTE; - _this.raws = {}; - return _this; - } - - Attribute.prototype.toString = function toString() { - var selector = [this.spaces.before, '[', this.ns, this.attribute]; - - if (this.operator) { - selector.push(this.operator); - } - if (this.value) { - selector.push(this.value); - } - if (this.raws.insensitive) { - selector.push(this.raws.insensitive); - } else if (this.insensitive) { - selector.push(' i'); - } - selector.push(']'); - return selector.concat(this.spaces.after).join(''); - }; - - return Attribute; -}(_namespace2.default); - -exports.default = Attribute; -module.exports = exports['default']; - -/***/ }), -/* 50 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _namespace = __webpack_require__(9); - -var _namespace2 = _interopRequireDefault(_namespace); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var ClassName = function (_Namespace) { - _inherits(ClassName, _Namespace); - - function ClassName(opts) { - _classCallCheck(this, ClassName); - - var _this = _possibleConstructorReturn(this, _Namespace.call(this, opts)); - - _this.type = _types.CLASS; - return _this; - } - - ClassName.prototype.toString = function toString() { - return [this.spaces.before, this.ns, String('.' + this.value), this.spaces.after].join(''); - }; - - return ClassName; -}(_namespace2.default); - -exports.default = ClassName; -module.exports = exports['default']; - -/***/ }), -/* 51 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _node = __webpack_require__(6); - -var _node2 = _interopRequireDefault(_node); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Combinator = function (_Node) { - _inherits(Combinator, _Node); - - function Combinator(opts) { - _classCallCheck(this, Combinator); - - var _this = _possibleConstructorReturn(this, _Node.call(this, opts)); - - _this.type = _types.COMBINATOR; - return _this; - } - - return Combinator; -}(_node2.default); - -exports.default = Combinator; -module.exports = exports['default']; - -/***/ }), -/* 52 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _node = __webpack_require__(6); - -var _node2 = _interopRequireDefault(_node); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Comment = function (_Node) { - _inherits(Comment, _Node); - - function Comment(opts) { - _classCallCheck(this, Comment); - - var _this = _possibleConstructorReturn(this, _Node.call(this, opts)); - - _this.type = _types.COMMENT; - return _this; - } - - return Comment; -}(_node2.default); - -exports.default = Comment; -module.exports = exports['default']; - -/***/ }), -/* 53 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _namespace = __webpack_require__(9); - -var _namespace2 = _interopRequireDefault(_namespace); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var ID = function (_Namespace) { - _inherits(ID, _Namespace); - - function ID(opts) { - _classCallCheck(this, ID); - - var _this = _possibleConstructorReturn(this, _Namespace.call(this, opts)); - - _this.type = _types.ID; - return _this; - } - - ID.prototype.toString = function toString() { - return [this.spaces.before, this.ns, String('#' + this.value), this.spaces.after].join(''); - }; - - return ID; -}(_namespace2.default); - -exports.default = ID; -module.exports = exports['default']; - -/***/ }), -/* 54 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _node = __webpack_require__(6); - -var _node2 = _interopRequireDefault(_node); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Nesting = function (_Node) { - _inherits(Nesting, _Node); - - function Nesting(opts) { - _classCallCheck(this, Nesting); - - var _this = _possibleConstructorReturn(this, _Node.call(this, opts)); - - _this.type = _types.NESTING; - _this.value = '&'; - return _this; - } - - return Nesting; -}(_node2.default); - -exports.default = Nesting; -module.exports = exports['default']; - -/***/ }), -/* 55 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _container = __webpack_require__(22); - -var _container2 = _interopRequireDefault(_container); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Pseudo = function (_Container) { - _inherits(Pseudo, _Container); - - function Pseudo(opts) { - _classCallCheck(this, Pseudo); - - var _this = _possibleConstructorReturn(this, _Container.call(this, opts)); - - _this.type = _types.PSEUDO; - return _this; - } - - Pseudo.prototype.toString = function toString() { - var params = this.length ? '(' + this.map(String).join(',') + ')' : ''; - return [this.spaces.before, String(this.value), params, this.spaces.after].join(''); - }; - - return Pseudo; -}(_container2.default); - -exports.default = Pseudo; -module.exports = exports['default']; - -/***/ }), -/* 56 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _container = __webpack_require__(22); - -var _container2 = _interopRequireDefault(_container); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Root = function (_Container) { - _inherits(Root, _Container); - - function Root(opts) { - _classCallCheck(this, Root); - - var _this = _possibleConstructorReturn(this, _Container.call(this, opts)); - - _this.type = _types.ROOT; - return _this; - } - - Root.prototype.toString = function toString() { - var str = this.reduce(function (memo, selector) { - var sel = String(selector); - return sel ? memo + sel + ',' : ''; - }, '').slice(0, -1); - return this.trailingComma ? str + ',' : str; - }; - - return Root; -}(_container2.default); - -exports.default = Root; -module.exports = exports['default']; - -/***/ }), -/* 57 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _container = __webpack_require__(22); - -var _container2 = _interopRequireDefault(_container); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Selector = function (_Container) { - _inherits(Selector, _Container); - - function Selector(opts) { - _classCallCheck(this, Selector); - - var _this = _possibleConstructorReturn(this, _Container.call(this, opts)); - - _this.type = _types.SELECTOR; - return _this; - } - - return Selector; -}(_container2.default); - -exports.default = Selector; -module.exports = exports['default']; - -/***/ }), -/* 58 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _node = __webpack_require__(6); - -var _node2 = _interopRequireDefault(_node); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var String = function (_Node) { - _inherits(String, _Node); - - function String(opts) { - _classCallCheck(this, String); - - var _this = _possibleConstructorReturn(this, _Node.call(this, opts)); - - _this.type = _types.STRING; - return _this; - } - - return String; -}(_node2.default); - -exports.default = String; -module.exports = exports['default']; - -/***/ }), -/* 59 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _namespace = __webpack_require__(9); - -var _namespace2 = _interopRequireDefault(_namespace); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Tag = function (_Namespace) { - _inherits(Tag, _Namespace); - - function Tag(opts) { - _classCallCheck(this, Tag); - - var _this = _possibleConstructorReturn(this, _Namespace.call(this, opts)); - - _this.type = _types.TAG; - return _this; - } - - return Tag; -}(_namespace2.default); - -exports.default = Tag; -module.exports = exports['default']; - -/***/ }), -/* 60 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _namespace = __webpack_require__(9); - -var _namespace2 = _interopRequireDefault(_namespace); - -var _types = __webpack_require__(0); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Universal = function (_Namespace) { - _inherits(Universal, _Namespace); - - function Universal(opts) { - _classCallCheck(this, Universal); - - var _this = _possibleConstructorReturn(this, _Namespace.call(this, opts)); - - _this.type = _types.UNIVERSAL; - _this.value = '*'; - return _this; - } - - return Universal; -}(_namespace2.default); - -exports.default = Universal; -module.exports = exports['default']; - -/***/ }), -/* 61 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); - -class AtWord extends Container { - constructor (opts) { - super(opts); - this.type = 'atword'; - } - - toString () { - let quote = this.quoted ? this.raws.quote : ''; - return [ - this.raws.before, - '@', - // we can't use String() here because it'll try using itself - // as the constructor - String.prototype.toString.call(this.value), - this.raws.after - ].join(''); - } -} - -Container.registerWalker(AtWord); - -module.exports = AtWord; - - -/***/ }), -/* 62 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); -const Node = __webpack_require__(3); - -class Colon extends Node { - constructor (opts) { - super(opts); - this.type = 'colon'; - } -} - -Container.registerWalker(Colon); - -module.exports = Colon; - - -/***/ }), -/* 63 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); -const Node = __webpack_require__(3); - -class Comma extends Node { - constructor (opts) { - super(opts); - this.type = 'comma'; - } -} - -Container.registerWalker(Comma); - -module.exports = Comma; - - -/***/ }), -/* 64 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); -const Node = __webpack_require__(3); - -class Comment extends Node { - constructor (opts) { - super(opts); - this.type = 'comment'; - } - - toString () { - return [ - this.raws.before, - '/*', - String(this.value), - '*/', - this.raws.after - ].join(''); - } -} - -Container.registerWalker(Comment); - -module.exports = Comment; - - -/***/ }), -/* 65 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); - -class FunctionNode extends Container { - constructor (opts) { - super(opts); - this.type = 'func'; - // start off at -1 so we know there haven't been any parens added - this.unbalanced = -1; - } -} - -Container.registerWalker(FunctionNode); - -module.exports = FunctionNode; - - -/***/ }), -/* 66 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); -const Node = __webpack_require__(3); - -class NumberNode extends Node { - constructor (opts) { - super(opts); - this.type = 'number'; - this.unit = opts.unit || ''; - } - - toString () { - return [ - this.raws.before, - String(this.value), - this.unit, - this.raws.after - ].join(''); - } -} - -Container.registerWalker(NumberNode); - -module.exports = NumberNode; - - -/***/ }), -/* 67 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); -const Node = __webpack_require__(3); - -class Operator extends Node { - constructor (opts) { - super(opts); - this.type = 'operator'; - } -} - -Container.registerWalker(Operator); - -module.exports = Operator; - - -/***/ }), -/* 68 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); -const Node = __webpack_require__(3); - -class Parenthesis extends Node { - constructor (opts) { - super(opts); - this.type = 'paren'; - this.parenType = ''; - } -} - -Container.registerWalker(Parenthesis); - -module.exports = Parenthesis; - - -/***/ }), -/* 69 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); -const Node = __webpack_require__(3); - -class StringNode extends Node { - constructor (opts) { - super(opts); - this.type = 'string'; - } - - toString () { - let quote = this.quoted ? this.raws.quote : ''; - return [ - this.raws.before, - quote, - // we can't use String() here because it'll try using itself - // as the constructor - this.value + '', - quote, - this.raws.after - ].join(''); - } -} - -Container.registerWalker(StringNode); - -module.exports = StringNode; - - -/***/ }), -/* 70 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); - -module.exports = class Value extends Container { - constructor (opts) { - super(opts); - this.type = 'value'; - this.unbalanced = 0; - } -}; - - -/***/ }), -/* 71 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); -const Node = __webpack_require__(3); - -class Word extends Node { - constructor (opts) { - super(opts); - this.type = 'word'; - } -} - -Container.registerWalker(Word); - -module.exports = Word; - - -/***/ }), -/* 72 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _supportsColor = __webpack_require__(166); - -var _supportsColor2 = _interopRequireDefault(_supportsColor); - -var _chalk = __webpack_require__(79); - -var _chalk2 = _interopRequireDefault(_chalk); - -var _terminalHighlight = __webpack_require__(154); - -var _terminalHighlight2 = _interopRequireDefault(_terminalHighlight); - -var _warnOnce = __webpack_require__(4); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * The CSS parser throws this error for broken CSS. - * - * Custom parsers can throw this error for broken custom syntax using - * the {@link Node#error} method. - * - * PostCSS will use the input source map to detect the original error location. - * If you wrote a Sass file, compiled it to CSS and then parsed it with PostCSS, - * PostCSS will show the original position in the Sass file. - * - * If you need the position in the PostCSS input - * (e.g., to debug the previous compiler), use `error.input.file`. - * - * @example - * // Catching and checking syntax error - * try { - * postcss.parse('a{') - * } catch (error) { - * if ( error.name === 'CssSyntaxError' ) { - * error //=> CssSyntaxError - * } - * } - * - * @example - * // Raising error from plugin - * throw node.error('Unknown variable', { plugin: 'postcss-vars' }); - */ -var CssSyntaxError = function () { - - /** - * @param {string} message - error message - * @param {number} [line] - source line of the error - * @param {number} [column] - source column of the error - * @param {string} [source] - source code of the broken file - * @param {string} [file] - absolute path to the broken file - * @param {string} [plugin] - PostCSS plugin name, if error came from plugin - */ - function CssSyntaxError(message, line, column, source, file, plugin) { - _classCallCheck(this, CssSyntaxError); - - /** - * @member {string} - Always equal to `'CssSyntaxError'`. You should - * always check error type - * by `error.name === 'CssSyntaxError'` instead of - * `error instanceof CssSyntaxError`, because - * npm could have several PostCSS versions. - * - * @example - * if ( error.name === 'CssSyntaxError' ) { - * error //=> CssSyntaxError - * } - */ - this.name = 'CssSyntaxError'; - /** - * @member {string} - Error message. - * - * @example - * error.message //=> 'Unclosed block' - */ - this.reason = message; - - if (file) { - /** - * @member {string} - Absolute path to the broken file. - * - * @example - * error.file //=> 'a.sass' - * error.input.file //=> 'a.css' - */ - this.file = file; - } - if (source) { - /** - * @member {string} - Source code of the broken file. - * - * @example - * error.source //=> 'a { b {} }' - * error.input.column //=> 'a b { }' - */ - this.source = source; - } - if (plugin) { - /** - * @member {string} - Plugin name, if error came from plugin. - * - * @example - * error.plugin //=> 'postcss-vars' - */ - this.plugin = plugin; - } - if (typeof line !== 'undefined' && typeof column !== 'undefined') { - /** - * @member {number} - Source line of the error. - * - * @example - * error.line //=> 2 - * error.input.line //=> 4 - */ - this.line = line; - /** - * @member {number} - Source column of the error. - * - * @example - * error.column //=> 1 - * error.input.column //=> 4 - */ - this.column = column; - } - - this.setMessage(); - - if (Error.captureStackTrace) { - Error.captureStackTrace(this, CssSyntaxError); - } - } - - CssSyntaxError.prototype.setMessage = function setMessage() { - /** - * @member {string} - Full error text in the GNU error format - * with plugin, file, line and column. - * - * @example - * error.message //=> 'a.css:1:1: Unclosed block' - */ - this.message = this.plugin ? this.plugin + ': ' : ''; - this.message += this.file ? this.file : ''; - if (typeof this.line !== 'undefined') { - this.message += ':' + this.line + ':' + this.column; - } - this.message += ': ' + this.reason; - }; - - /** - * Returns a few lines of CSS source that caused the error. - * - * If the CSS has an input source map without `sourceContent`, - * this method will return an empty string. - * - * @param {boolean} [color] whether arrow will be colored red by terminal - * color codes. By default, PostCSS will detect - * color support by `process.stdout.isTTY` - * and `process.env.NODE_DISABLE_COLORS`. - * - * @example - * error.showSourceCode() //=> " 4 | } - * // 5 | a { - * // > 6 | bad - * // | ^ - * // 7 | } - * // 8 | b {" - * - * @return {string} few lines of CSS source that caused the error - */ - - - CssSyntaxError.prototype.showSourceCode = function showSourceCode(color) { - var _this = this; - - if (!this.source) return ''; - - var css = this.source; - if (typeof color === 'undefined') color = _supportsColor2.default; - if (color) css = (0, _terminalHighlight2.default)(css); - - var lines = css.split(/\r?\n/); - var start = Math.max(this.line - 3, 0); - var end = Math.min(this.line + 2, lines.length); - - var maxWidth = String(end).length; - var colors = new _chalk2.default.constructor({ enabled: true }); - - function mark(text) { - if (color) { - return colors.red.bold(text); - } else { - return text; - } - } - function aside(text) { - if (color) { - return colors.gray(text); - } else { - return text; - } - } - - return lines.slice(start, end).map(function (line, index) { - var number = start + 1 + index; - var gutter = ' ' + (' ' + number).slice(-maxWidth) + ' | '; - if (number === _this.line) { - var spacing = aside(gutter.replace(/\d/g, ' ')) + line.slice(0, _this.column - 1).replace(/[^\t]/g, ' '); - return mark('>') + aside(gutter) + line + '\n ' + spacing + mark('^'); - } else { - return ' ' + aside(gutter) + line; - } - }).join('\n'); - }; - - /** - * Returns error position, message and source code of the broken part. - * - * @example - * error.toString() //=> "CssSyntaxError: app.css:1:1: Unclosed block - * // > 1 | a { - * // | ^" - * - * @return {string} error position, message and source code - */ - - - CssSyntaxError.prototype.toString = function toString() { - var code = this.showSourceCode(); - if (code) { - code = '\n\n' + code + '\n'; - } - return this.name + ': ' + this.message + code; - }; - - _createClass(CssSyntaxError, [{ - key: 'generated', - get: function get() { - (0, _warnOnce2.default)('CssSyntaxError#generated is deprecated. Use input instead.'); - return this.input; - } - - /** - * @memberof CssSyntaxError# - * @member {Input} input - Input object with PostCSS internal information - * about input file. If input has source map - * from previous tool, PostCSS will use origin - * (for example, Sass) source. You can use this - * object to get PostCSS input source. - * - * @example - * error.input.file //=> 'a.css' - * error.file //=> 'a.sass' - */ - - }]); - - return CssSyntaxError; -}(); - -exports.default = CssSyntaxError; -module.exports = exports['default']; - - - -/***/ }), -/* 73 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _warnOnce = __webpack_require__(4); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -var _node = __webpack_require__(27); - -var _node2 = _interopRequireDefault(_node); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -/** - * Represents a CSS declaration. - * - * @extends Node - * - * @example - * const root = postcss.parse('a { color: black }'); - * const decl = root.first.first; - * decl.type //=> 'decl' - * decl.toString() //=> ' color: black' - */ -var Declaration = function (_Node) { - _inherits(Declaration, _Node); - - function Declaration(defaults) { - _classCallCheck(this, Declaration); - - var _this = _possibleConstructorReturn(this, _Node.call(this, defaults)); - - _this.type = 'decl'; - return _this; - } - - _createClass(Declaration, [{ - key: '_value', - get: function get() { - (0, _warnOnce2.default)('Node#_value was deprecated. Use Node#raws.value'); - return this.raws.value; - }, - set: function set(val) { - (0, _warnOnce2.default)('Node#_value was deprecated. Use Node#raws.value'); - this.raws.value = val; - } - }, { - key: '_important', - get: function get() { - (0, _warnOnce2.default)('Node#_important was deprecated. Use Node#raws.important'); - return this.raws.important; - }, - set: function set(val) { - (0, _warnOnce2.default)('Node#_important was deprecated. Use Node#raws.important'); - this.raws.important = val; - } - - /** - * @memberof Declaration# - * @member {string} prop - the declaration’s property name - * - * @example - * const root = postcss.parse('a { color: black }'); - * const decl = root.first.first; - * decl.prop //=> 'color' - */ - - /** - * @memberof Declaration# - * @member {string} value - the declaration’s value - * - * @example - * const root = postcss.parse('a { color: black }'); - * const decl = root.first.first; - * decl.value //=> 'black' - */ - - /** - * @memberof Declaration# - * @member {boolean} important - `true` if the declaration - * has an !important annotation. - * - * @example - * const root = postcss.parse('a { color: black !important; color: red }'); - * root.first.first.important //=> true - * root.first.last.important //=> undefined - */ - - /** - * @memberof Declaration# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `before`: the space symbols before the node. It also stores `*` - * and `_` symbols before the declaration (IE hack). - * * `between`: the symbols between the property and value - * for declarations. - * * `important`: the content of the important statement, - * if it is not just `!important`. - * - * PostCSS cleans declaration from comments and extra spaces, - * but it stores origin content in raws properties. - * As such, if you don’t change a declaration’s value, - * PostCSS will use the raw value with comments. - * - * @example - * const root = postcss.parse('a {\n color:black\n}') - * root.first.first.raws //=> { before: '\n ', between: ':' } - */ - - }]); - - return Declaration; -}(_node2.default); - -exports.default = Declaration; -module.exports = exports['default']; - - - -/***/ }), -/* 74 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _mapGenerator = __webpack_require__(150); - -var _mapGenerator2 = _interopRequireDefault(_mapGenerator); - -var _stringify2 = __webpack_require__(77); - -var _stringify3 = _interopRequireDefault(_stringify2); - -var _warnOnce = __webpack_require__(4); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -var _result = __webpack_require__(153); - -var _result2 = _interopRequireDefault(_result); - -var _parse = __webpack_require__(75); - -var _parse2 = _interopRequireDefault(_parse); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function isPromise(obj) { - return (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && typeof obj.then === 'function'; -} - -/** - * A Promise proxy for the result of PostCSS transformations. - * - * A `LazyResult` instance is returned by {@link Processor#process}. - * - * @example - * const lazy = postcss([cssnext]).process(css); - */ - -var LazyResult = function () { - function LazyResult(processor, css, opts) { - _classCallCheck(this, LazyResult); - - this.stringified = false; - this.processed = false; - - var root = void 0; - if ((typeof css === 'undefined' ? 'undefined' : _typeof(css)) === 'object' && css.type === 'root') { - root = css; - } else if (css instanceof LazyResult || css instanceof _result2.default) { - root = css.root; - if (css.map) { - if (typeof opts.map === 'undefined') opts.map = {}; - if (!opts.map.inline) opts.map.inline = false; - opts.map.prev = css.map; - } - } else { - var parser = _parse2.default; - if (opts.syntax) parser = opts.syntax.parse; - if (opts.parser) parser = opts.parser; - if (parser.parse) parser = parser.parse; - - try { - root = parser(css, opts); - } catch (error) { - this.error = error; - } - } - - this.result = new _result2.default(processor, root, opts); - } - - /** - * Returns a {@link Processor} instance, which will be used - * for CSS transformations. - * @type {Processor} - */ - - - /** - * Processes input CSS through synchronous plugins - * and calls {@link Result#warnings()}. - * - * @return {Warning[]} warnings from plugins - */ - LazyResult.prototype.warnings = function warnings() { - return this.sync().warnings(); - }; - - /** - * Alias for the {@link LazyResult#css} property. - * - * @example - * lazy + '' === lazy.css; - * - * @return {string} output CSS - */ - - - LazyResult.prototype.toString = function toString() { - return this.css; - }; - - /** - * Processes input CSS through synchronous and asynchronous plugins - * and calls `onFulfilled` with a Result instance. If a plugin throws - * an error, the `onRejected` callback will be executed. - * - * It implements standard Promise API. - * - * @param {onFulfilled} onFulfilled - callback will be executed - * when all plugins will finish work - * @param {onRejected} onRejected - callback will be executed on any error - * - * @return {Promise} Promise API to make queue - * - * @example - * postcss([cssnext]).process(css).then(result => { - * console.log(result.css); - * }); - */ - - - LazyResult.prototype.then = function then(onFulfilled, onRejected) { - return this.async().then(onFulfilled, onRejected); - }; - - /** - * Processes input CSS through synchronous and asynchronous plugins - * and calls onRejected for each error thrown in any plugin. - * - * It implements standard Promise API. - * - * @param {onRejected} onRejected - callback will be executed on any error - * - * @return {Promise} Promise API to make queue - * - * @example - * postcss([cssnext]).process(css).then(result => { - * console.log(result.css); - * }).catch(error => { - * console.error(error); - * }); - */ - - - LazyResult.prototype.catch = function _catch(onRejected) { - return this.async().catch(onRejected); - }; - - LazyResult.prototype.handleError = function handleError(error, plugin) { - try { - this.error = error; - if (error.name === 'CssSyntaxError' && !error.plugin) { - error.plugin = plugin.postcssPlugin; - error.setMessage(); - } else if (plugin.postcssVersion) { - var pluginName = plugin.postcssPlugin; - var pluginVer = plugin.postcssVersion; - var runtimeVer = this.result.processor.version; - var a = pluginVer.split('.'); - var b = runtimeVer.split('.'); - - if (a[0] !== b[0] || parseInt(a[1]) > parseInt(b[1])) { - (0, _warnOnce2.default)('Your current PostCSS version ' + 'is ' + runtimeVer + ', but ' + pluginName + ' ' + 'uses ' + pluginVer + '. Perhaps this is ' + 'the source of the error below.'); - } - } - } catch (err) { - if (console && console.error) console.error(err); - } - }; - - LazyResult.prototype.asyncTick = function asyncTick(resolve, reject) { - var _this = this; - - if (this.plugin >= this.processor.plugins.length) { - this.processed = true; - return resolve(); - } - - try { - var plugin = this.processor.plugins[this.plugin]; - var promise = this.run(plugin); - this.plugin += 1; - - if (isPromise(promise)) { - promise.then(function () { - _this.asyncTick(resolve, reject); - }).catch(function (error) { - _this.handleError(error, plugin); - _this.processed = true; - reject(error); - }); - } else { - this.asyncTick(resolve, reject); - } - } catch (error) { - this.processed = true; - reject(error); - } - }; - - LazyResult.prototype.async = function async() { - var _this2 = this; - - if (this.processed) { - return new Promise(function (resolve, reject) { - if (_this2.error) { - reject(_this2.error); - } else { - resolve(_this2.stringify()); - } - }); - } - if (this.processing) { - return this.processing; - } - - this.processing = new Promise(function (resolve, reject) { - if (_this2.error) return reject(_this2.error); - _this2.plugin = 0; - _this2.asyncTick(resolve, reject); - }).then(function () { - _this2.processed = true; - return _this2.stringify(); - }); - - return this.processing; - }; - - LazyResult.prototype.sync = function sync() { - if (this.processed) return this.result; - this.processed = true; - - if (this.processing) { - throw new Error('Use process(css).then(cb) to work with async plugins'); - } - - if (this.error) throw this.error; - - for (var _iterator = this.result.processor.plugins, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var plugin = _ref; - - var promise = this.run(plugin); - if (isPromise(promise)) { - throw new Error('Use process(css).then(cb) to work with async plugins'); - } - } - - return this.result; - }; - - LazyResult.prototype.run = function run(plugin) { - this.result.lastPlugin = plugin; - - try { - return plugin(this.result.root, this.result); - } catch (error) { - this.handleError(error, plugin); - throw error; - } - }; - - LazyResult.prototype.stringify = function stringify() { - if (this.stringified) return this.result; - this.stringified = true; - - this.sync(); - - var opts = this.result.opts; - var str = _stringify3.default; - if (opts.syntax) str = opts.syntax.stringify; - if (opts.stringifier) str = opts.stringifier; - if (str.stringify) str = str.stringify; - - var map = new _mapGenerator2.default(str, this.result.root, this.result.opts); - var data = map.generate(); - this.result.css = data[0]; - this.result.map = data[1]; - - return this.result; - }; - - _createClass(LazyResult, [{ - key: 'processor', - get: function get() { - return this.result.processor; - } - - /** - * Options from the {@link Processor#process} call. - * @type {processOptions} - */ - - }, { - key: 'opts', - get: function get() { - return this.result.opts; - } - - /** - * Processes input CSS through synchronous plugins, converts `Root` - * to a CSS string and returns {@link Result#css}. - * - * This property will only work with synchronous plugins. - * If the processor contains any asynchronous plugins - * it will throw an error. This is why this method is only - * for debug purpose, you should always use {@link LazyResult#then}. - * - * @type {string} - * @see Result#css - */ - - }, { - key: 'css', - get: function get() { - return this.stringify().css; - } - - /** - * An alias for the `css` property. Use it with syntaxes - * that generate non-CSS output. - * - * This property will only work with synchronous plugins. - * If the processor contains any asynchronous plugins - * it will throw an error. This is why this method is only - * for debug purpose, you should always use {@link LazyResult#then}. - * - * @type {string} - * @see Result#content - */ - - }, { - key: 'content', - get: function get() { - return this.stringify().content; - } - - /** - * Processes input CSS through synchronous plugins - * and returns {@link Result#map}. - * - * This property will only work with synchronous plugins. - * If the processor contains any asynchronous plugins - * it will throw an error. This is why this method is only - * for debug purpose, you should always use {@link LazyResult#then}. - * - * @type {SourceMapGenerator} - * @see Result#map - */ - - }, { - key: 'map', - get: function get() { - return this.stringify().map; - } - - /** - * Processes input CSS through synchronous plugins - * and returns {@link Result#root}. - * - * This property will only work with synchronous plugins. If the processor - * contains any asynchronous plugins it will throw an error. - * - * This is why this method is only for debug purpose, - * you should always use {@link LazyResult#then}. - * - * @type {Root} - * @see Result#root - */ - - }, { - key: 'root', - get: function get() { - return this.sync().root; - } - - /** - * Processes input CSS through synchronous plugins - * and returns {@link Result#messages}. - * - * This property will only work with synchronous plugins. If the processor - * contains any asynchronous plugins it will throw an error. - * - * This is why this method is only for debug purpose, - * you should always use {@link LazyResult#then}. - * - * @type {Message[]} - * @see Result#messages - */ - - }, { - key: 'messages', - get: function get() { - return this.sync().messages; - } - }]); - - return LazyResult; -}(); - -exports.default = LazyResult; - -/** - * @callback onFulfilled - * @param {Result} result - */ - -/** - * @callback onRejected - * @param {Error} error - */ - -module.exports = exports['default']; - - - -/***/ }), -/* 75 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -exports.default = parse; - -var _parser = __webpack_require__(76); - -var _parser2 = _interopRequireDefault(_parser); - -var _input = __webpack_require__(26); - -var _input2 = _interopRequireDefault(_input); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function parse(css, opts) { - if (opts && opts.safe) { - throw new Error('Option safe was removed. ' + 'Use parser: require("postcss-safe-parser")'); - } - - var input = new _input2.default(css, opts); - - var parser = new _parser2.default(input); - try { - parser.tokenize(); - parser.loop(); - } catch (e) { - if (e.name === 'CssSyntaxError' && opts && opts.from) { - if (/\.scss$/i.test(opts.from)) { - e.message += '\nYou tried to parse SCSS with ' + 'the standard CSS parser; ' + 'try again with the postcss-scss parser'; - } else if (/\.sass/i.test(opts.from)) { - e.message += '\nYou tried to parse Sass with ' + 'the standard CSS parser; ' + 'try again with the postcss-sass parser'; - } else if (/\.less$/i.test(opts.from)) { - e.message += '\nYou tried to parse Less with ' + 'the standard CSS parser; ' + 'try again with the postcss-less parser'; - } - } - throw e; - } - - return parser.root; -} -module.exports = exports['default']; - - - -/***/ }), -/* 76 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _declaration = __webpack_require__(73); - -var _declaration2 = _interopRequireDefault(_declaration); - -var _tokenize = __webpack_require__(78); - -var _tokenize2 = _interopRequireDefault(_tokenize); - -var _comment = __webpack_require__(24); - -var _comment2 = _interopRequireDefault(_comment); - -var _atRule = __webpack_require__(23); - -var _atRule2 = _interopRequireDefault(_atRule); - -var _root = __webpack_require__(28); - -var _root2 = _interopRequireDefault(_root); - -var _rule = __webpack_require__(10); - -var _rule2 = _interopRequireDefault(_rule); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var Parser = function () { - function Parser(input) { - _classCallCheck(this, Parser); - - this.input = input; - - this.pos = 0; - this.root = new _root2.default(); - this.current = this.root; - this.spaces = ''; - this.semicolon = false; - - this.root.source = { input: input, start: { line: 1, column: 1 } }; - } - - Parser.prototype.tokenize = function tokenize() { - this.tokens = (0, _tokenize2.default)(this.input); - }; - - Parser.prototype.loop = function loop() { - var token = void 0; - while (this.pos < this.tokens.length) { - token = this.tokens[this.pos]; - - switch (token[0]) { - - case 'space': - case ';': - this.spaces += token[1]; - break; - - case '}': - this.end(token); - break; - - case 'comment': - this.comment(token); - break; - - case 'at-word': - this.atrule(token); - break; - - case '{': - this.emptyRule(token); - break; - - default: - this.other(); - break; - } - - this.pos += 1; - } - this.endFile(); - }; - - Parser.prototype.comment = function comment(token) { - var node = new _comment2.default(); - this.init(node, token[2], token[3]); - node.source.end = { line: token[4], column: token[5] }; - - var text = token[1].slice(2, -2); - if (/^\s*$/.test(text)) { - node.text = ''; - node.raws.left = text; - node.raws.right = ''; - } else { - var match = text.match(/^(\s*)([^]*[^\s])(\s*)$/); - node.text = match[2]; - node.raws.left = match[1]; - node.raws.right = match[3]; - } - }; - - Parser.prototype.emptyRule = function emptyRule(token) { - var node = new _rule2.default(); - this.init(node, token[2], token[3]); - node.selector = ''; - node.raws.between = ''; - this.current = node; - }; - - Parser.prototype.other = function other() { - var token = void 0; - var end = false; - var type = null; - var colon = false; - var bracket = null; - var brackets = []; - - var start = this.pos; - while (this.pos < this.tokens.length) { - token = this.tokens[this.pos]; - type = token[0]; - - if (type === '(' || type === '[') { - if (!bracket) bracket = token; - brackets.push(type === '(' ? ')' : ']'); - } else if (brackets.length === 0) { - if (type === ';') { - if (colon) { - this.decl(this.tokens.slice(start, this.pos + 1)); - return; - } else { - break; - } - } else if (type === '{') { - this.rule(this.tokens.slice(start, this.pos + 1)); - return; - } else if (type === '}') { - this.pos -= 1; - end = true; - break; - } else if (type === ':') { - colon = true; - } - } else if (type === brackets[brackets.length - 1]) { - brackets.pop(); - if (brackets.length === 0) bracket = null; - } - - this.pos += 1; - } - if (this.pos === this.tokens.length) { - this.pos -= 1; - end = true; - } - - if (brackets.length > 0) this.unclosedBracket(bracket); - - if (end && colon) { - while (this.pos > start) { - token = this.tokens[this.pos][0]; - if (token !== 'space' && token !== 'comment') break; - this.pos -= 1; - } - this.decl(this.tokens.slice(start, this.pos + 1)); - return; - } - - this.unknownWord(start); - }; - - Parser.prototype.rule = function rule(tokens) { - tokens.pop(); - - var node = new _rule2.default(); - this.init(node, tokens[0][2], tokens[0][3]); - - node.raws.between = this.spacesAndCommentsFromEnd(tokens); - this.raw(node, 'selector', tokens); - this.current = node; - }; - - Parser.prototype.decl = function decl(tokens) { - var node = new _declaration2.default(); - this.init(node); - - var last = tokens[tokens.length - 1]; - if (last[0] === ';') { - this.semicolon = true; - tokens.pop(); - } - if (last[4]) { - node.source.end = { line: last[4], column: last[5] }; - } else { - node.source.end = { line: last[2], column: last[3] }; - } - - while (tokens[0][0] !== 'word') { - node.raws.before += tokens.shift()[1]; - } - node.source.start = { line: tokens[0][2], column: tokens[0][3] }; - - node.prop = ''; - while (tokens.length) { - var type = tokens[0][0]; - if (type === ':' || type === 'space' || type === 'comment') { - break; - } - node.prop += tokens.shift()[1]; - } - - node.raws.between = ''; - - var token = void 0; - while (tokens.length) { - token = tokens.shift(); - - if (token[0] === ':') { - node.raws.between += token[1]; - break; - } else { - node.raws.between += token[1]; - } - } - - if (node.prop[0] === '_' || node.prop[0] === '*') { - node.raws.before += node.prop[0]; - node.prop = node.prop.slice(1); - } - node.raws.between += this.spacesAndCommentsFromStart(tokens); - this.precheckMissedSemicolon(tokens); - - for (var i = tokens.length - 1; i > 0; i--) { - token = tokens[i]; - if (token[1] === '!important') { - node.important = true; - var string = this.stringFrom(tokens, i); - string = this.spacesFromEnd(tokens) + string; - if (string !== ' !important') node.raws.important = string; - break; - } else if (token[1] === 'important') { - var cache = tokens.slice(0); - var str = ''; - for (var j = i; j > 0; j--) { - var _type = cache[j][0]; - if (str.trim().indexOf('!') === 0 && _type !== 'space') { - break; - } - str = cache.pop()[1] + str; - } - if (str.trim().indexOf('!') === 0) { - node.important = true; - node.raws.important = str; - tokens = cache; - } - } - - if (token[0] !== 'space' && token[0] !== 'comment') { - break; - } - } - - this.raw(node, 'value', tokens); - - if (node.value.indexOf(':') !== -1) this.checkMissedSemicolon(tokens); - }; - - Parser.prototype.atrule = function atrule(token) { - var node = new _atRule2.default(); - node.name = token[1].slice(1); - if (node.name === '') { - this.unnamedAtrule(node, token); - } - this.init(node, token[2], token[3]); - - var last = false; - var open = false; - var params = []; - - this.pos += 1; - while (this.pos < this.tokens.length) { - token = this.tokens[this.pos]; - - if (token[0] === ';') { - node.source.end = { line: token[2], column: token[3] }; - this.semicolon = true; - break; - } else if (token[0] === '{') { - open = true; - break; - } else if (token[0] === '}') { - this.end(token); - break; - } else { - params.push(token); - } - - this.pos += 1; - } - if (this.pos === this.tokens.length) { - last = true; - } - - node.raws.between = this.spacesAndCommentsFromEnd(params); - if (params.length) { - node.raws.afterName = this.spacesAndCommentsFromStart(params); - this.raw(node, 'params', params); - if (last) { - token = params[params.length - 1]; - node.source.end = { line: token[4], column: token[5] }; - this.spaces = node.raws.between; - node.raws.between = ''; - } - } else { - node.raws.afterName = ''; - node.params = ''; - } - - if (open) { - node.nodes = []; - this.current = node; - } - }; - - Parser.prototype.end = function end(token) { - if (this.current.nodes && this.current.nodes.length) { - this.current.raws.semicolon = this.semicolon; - } - this.semicolon = false; - - this.current.raws.after = (this.current.raws.after || '') + this.spaces; - this.spaces = ''; - - if (this.current.parent) { - this.current.source.end = { line: token[2], column: token[3] }; - this.current = this.current.parent; - } else { - this.unexpectedClose(token); - } - }; - - Parser.prototype.endFile = function endFile() { - if (this.current.parent) this.unclosedBlock(); - if (this.current.nodes && this.current.nodes.length) { - this.current.raws.semicolon = this.semicolon; - } - this.current.raws.after = (this.current.raws.after || '') + this.spaces; - }; - - // Helpers - - Parser.prototype.init = function init(node, line, column) { - this.current.push(node); - - node.source = { start: { line: line, column: column }, input: this.input }; - node.raws.before = this.spaces; - this.spaces = ''; - if (node.type !== 'comment') this.semicolon = false; - }; - - Parser.prototype.raw = function raw(node, prop, tokens) { - var token = void 0, - type = void 0; - var length = tokens.length; - var value = ''; - var clean = true; - for (var i = 0; i < length; i += 1) { - token = tokens[i]; - type = token[0]; - if (type === 'comment' || type === 'space' && i === length - 1) { - clean = false; - } else { - value += token[1]; - } - } - if (!clean) { - var raw = tokens.reduce(function (all, i) { - return all + i[1]; - }, ''); - node.raws[prop] = { value: value, raw: raw }; - } - node[prop] = value; - }; - - Parser.prototype.spacesAndCommentsFromEnd = function spacesAndCommentsFromEnd(tokens) { - var lastTokenType = void 0; - var spaces = ''; - while (tokens.length) { - lastTokenType = tokens[tokens.length - 1][0]; - if (lastTokenType !== 'space' && lastTokenType !== 'comment') break; - spaces = tokens.pop()[1] + spaces; - } - return spaces; - }; - - Parser.prototype.spacesAndCommentsFromStart = function spacesAndCommentsFromStart(tokens) { - var next = void 0; - var spaces = ''; - while (tokens.length) { - next = tokens[0][0]; - if (next !== 'space' && next !== 'comment') break; - spaces += tokens.shift()[1]; - } - return spaces; - }; - - Parser.prototype.spacesFromEnd = function spacesFromEnd(tokens) { - var lastTokenType = void 0; - var spaces = ''; - while (tokens.length) { - lastTokenType = tokens[tokens.length - 1][0]; - if (lastTokenType !== 'space') break; - spaces = tokens.pop()[1] + spaces; - } - return spaces; - }; - - Parser.prototype.stringFrom = function stringFrom(tokens, from) { - var result = ''; - for (var i = from; i < tokens.length; i++) { - result += tokens[i][1]; - } - tokens.splice(from, tokens.length - from); - return result; - }; - - Parser.prototype.colon = function colon(tokens) { - var brackets = 0; - var token = void 0, - type = void 0, - prev = void 0; - for (var i = 0; i < tokens.length; i++) { - token = tokens[i]; - type = token[0]; - - if (type === '(') { - brackets += 1; - } else if (type === ')') { - brackets -= 1; - } else if (brackets === 0 && type === ':') { - if (!prev) { - this.doubleColon(token); - } else if (prev[0] === 'word' && prev[1] === 'progid') { - continue; - } else { - return i; - } - } - - prev = token; - } - return false; - }; - - // Errors - - Parser.prototype.unclosedBracket = function unclosedBracket(bracket) { - throw this.input.error('Unclosed bracket', bracket[2], bracket[3]); - }; - - Parser.prototype.unknownWord = function unknownWord(start) { - var token = this.tokens[start]; - throw this.input.error('Unknown word', token[2], token[3]); - }; - - Parser.prototype.unexpectedClose = function unexpectedClose(token) { - throw this.input.error('Unexpected }', token[2], token[3]); - }; - - Parser.prototype.unclosedBlock = function unclosedBlock() { - var pos = this.current.source.start; - throw this.input.error('Unclosed block', pos.line, pos.column); - }; - - Parser.prototype.doubleColon = function doubleColon(token) { - throw this.input.error('Double colon', token[2], token[3]); - }; - - Parser.prototype.unnamedAtrule = function unnamedAtrule(node, token) { - throw this.input.error('At-rule without name', token[2], token[3]); - }; - - Parser.prototype.precheckMissedSemicolon = function precheckMissedSemicolon(tokens) { - // Hook for Safe Parser - tokens; - }; - - Parser.prototype.checkMissedSemicolon = function checkMissedSemicolon(tokens) { - var colon = this.colon(tokens); - if (colon === false) return; - - var founded = 0; - var token = void 0; - for (var j = colon - 1; j >= 0; j--) { - token = tokens[j]; - if (token[0] !== 'space') { - founded += 1; - if (founded === 2) break; - } - } - throw this.input.error('Missed semicolon', token[2], token[3]); - }; - - return Parser; -}(); - -exports.default = Parser; -module.exports = exports['default']; - - - -/***/ }), -/* 77 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -exports.default = stringify; - -var _stringifier = __webpack_require__(29); - -var _stringifier2 = _interopRequireDefault(_stringifier); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function stringify(node, builder) { - var str = new _stringifier2.default(builder); - str.stringify(node); -} -module.exports = exports['default']; - - - -/***/ }), -/* 78 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -exports.default = tokenize; -var SINGLE_QUOTE = 39; -var DOUBLE_QUOTE = 34; -var BACKSLASH = 92; -var SLASH = 47; -var NEWLINE = 10; -var SPACE = 32; -var FEED = 12; -var TAB = 9; -var CR = 13; -var OPEN_SQUARE = 91; -var CLOSE_SQUARE = 93; -var OPEN_PARENTHESES = 40; -var CLOSE_PARENTHESES = 41; -var OPEN_CURLY = 123; -var CLOSE_CURLY = 125; -var SEMICOLON = 59; -var ASTERISK = 42; -var COLON = 58; -var AT = 64; - -var RE_AT_END = /[ \n\t\r\f\{\(\)'"\\;/\[\]#]/g; -var RE_WORD_END = /[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g; -var RE_BAD_BRACKET = /.[\\\/\("'\n]/; - -function tokenize(input) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - var tokens = []; - var css = input.css.valueOf(); - - var ignore = options.ignoreErrors; - - var code = void 0, - next = void 0, - quote = void 0, - lines = void 0, - last = void 0, - content = void 0, - escape = void 0, - nextLine = void 0, - nextOffset = void 0, - escaped = void 0, - escapePos = void 0, - prev = void 0, - n = void 0; - - var length = css.length; - var offset = -1; - var line = 1; - var pos = 0; - - function unclosed(what) { - throw input.error('Unclosed ' + what, line, pos - offset); - } - - while (pos < length) { - code = css.charCodeAt(pos); - - if (code === NEWLINE || code === FEED || code === CR && css.charCodeAt(pos + 1) !== NEWLINE) { - offset = pos; - line += 1; - } - - switch (code) { - case NEWLINE: - case SPACE: - case TAB: - case CR: - case FEED: - next = pos; - do { - next += 1; - code = css.charCodeAt(next); - if (code === NEWLINE) { - offset = next; - line += 1; - } - } while (code === SPACE || code === NEWLINE || code === TAB || code === CR || code === FEED); - - tokens.push(['space', css.slice(pos, next)]); - pos = next - 1; - break; - - case OPEN_SQUARE: - tokens.push(['[', '[', line, pos - offset]); - break; - - case CLOSE_SQUARE: - tokens.push([']', ']', line, pos - offset]); - break; - - case OPEN_CURLY: - tokens.push(['{', '{', line, pos - offset]); - break; - - case CLOSE_CURLY: - tokens.push(['}', '}', line, pos - offset]); - break; - - case COLON: - tokens.push([':', ':', line, pos - offset]); - break; - - case SEMICOLON: - tokens.push([';', ';', line, pos - offset]); - break; - - case OPEN_PARENTHESES: - prev = tokens.length ? tokens[tokens.length - 1][1] : ''; - n = css.charCodeAt(pos + 1); - if (prev === 'url' && n !== SINGLE_QUOTE && n !== DOUBLE_QUOTE && n !== SPACE && n !== NEWLINE && n !== TAB && n !== FEED && n !== CR) { - next = pos; - do { - escaped = false; - next = css.indexOf(')', next + 1); - if (next === -1) { - if (ignore) { - next = pos; - break; - } else { - unclosed('bracket'); - } - } - escapePos = next; - while (css.charCodeAt(escapePos - 1) === BACKSLASH) { - escapePos -= 1; - escaped = !escaped; - } - } while (escaped); - - tokens.push(['brackets', css.slice(pos, next + 1), line, pos - offset, line, next - offset]); - pos = next; - } else { - next = css.indexOf(')', pos + 1); - content = css.slice(pos, next + 1); - - if (next === -1 || RE_BAD_BRACKET.test(content)) { - tokens.push(['(', '(', line, pos - offset]); - } else { - tokens.push(['brackets', content, line, pos - offset, line, next - offset]); - pos = next; - } - } - - break; - - case CLOSE_PARENTHESES: - tokens.push([')', ')', line, pos - offset]); - break; - - case SINGLE_QUOTE: - case DOUBLE_QUOTE: - quote = code === SINGLE_QUOTE ? '\'' : '"'; - next = pos; - do { - escaped = false; - next = css.indexOf(quote, next + 1); - if (next === -1) { - if (ignore) { - next = pos + 1; - break; - } else { - unclosed('string'); - } - } - escapePos = next; - while (css.charCodeAt(escapePos - 1) === BACKSLASH) { - escapePos -= 1; - escaped = !escaped; - } - } while (escaped); - - content = css.slice(pos, next + 1); - lines = content.split('\n'); - last = lines.length - 1; - - if (last > 0) { - nextLine = line + last; - nextOffset = next - lines[last].length; - } else { - nextLine = line; - nextOffset = offset; - } - - tokens.push(['string', css.slice(pos, next + 1), line, pos - offset, nextLine, next - nextOffset]); - - offset = nextOffset; - line = nextLine; - pos = next; - break; - - case AT: - RE_AT_END.lastIndex = pos + 1; - RE_AT_END.test(css); - if (RE_AT_END.lastIndex === 0) { - next = css.length - 1; - } else { - next = RE_AT_END.lastIndex - 2; - } - tokens.push(['at-word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]); - pos = next; - break; - - case BACKSLASH: - next = pos; - escape = true; - while (css.charCodeAt(next + 1) === BACKSLASH) { - next += 1; - escape = !escape; - } - code = css.charCodeAt(next + 1); - if (escape && code !== SLASH && code !== SPACE && code !== NEWLINE && code !== TAB && code !== CR && code !== FEED) { - next += 1; - } - tokens.push(['word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]); - pos = next; - break; - - default: - if (code === SLASH && css.charCodeAt(pos + 1) === ASTERISK) { - next = css.indexOf('*/', pos + 2) + 1; - if (next === 0) { - if (ignore) { - next = css.length; - } else { - unclosed('comment'); - } - } - - content = css.slice(pos, next + 1); - lines = content.split('\n'); - last = lines.length - 1; - - if (last > 0) { - nextLine = line + last; - nextOffset = next - lines[last].length; - } else { - nextLine = line; - nextOffset = offset; - } - - tokens.push(['comment', content, line, pos - offset, nextLine, next - nextOffset]); - - offset = nextOffset; - line = nextLine; - pos = next; - } else { - RE_WORD_END.lastIndex = pos + 1; - RE_WORD_END.test(css); - if (RE_WORD_END.lastIndex === 0) { - next = css.length - 1; - } else { - next = RE_WORD_END.lastIndex - 2; - } - - tokens.push(['word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]); - pos = next; - } - - break; - } - - pos++; - } - - return tokens; -} -module.exports = exports['default']; - - - -/***/ }), -/* 79 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) { -var escapeStringRegexp = __webpack_require__(93); -var ansiStyles = __webpack_require__(157); -var stripAnsi = __webpack_require__(159); -var hasAnsi = __webpack_require__(94); -var supportsColor = __webpack_require__(158); -var defineProps = Object.defineProperties; -var isSimpleWindowsTerm = process.platform === 'win32' && !/^xterm/i.test(process.env.TERM); - -function Chalk(options) { - // detect mode if not set manually - this.enabled = !options || options.enabled === undefined ? supportsColor : options.enabled; -} - -// use bright blue on Windows as the normal blue color is illegible -if (isSimpleWindowsTerm) { - ansiStyles.blue.open = '\u001b[94m'; -} - -var styles = (function () { - var ret = {}; - - Object.keys(ansiStyles).forEach(function (key) { - ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g'); - - ret[key] = { - get: function () { - return build.call(this, this._styles.concat(key)); - } - }; - }); - - return ret; -})(); - -var proto = defineProps(function chalk() {}, styles); - -function build(_styles) { - var builder = function () { - return applyStyle.apply(builder, arguments); - }; - - builder._styles = _styles; - builder.enabled = this.enabled; - // __proto__ is used because we must return a function, but there is - // no way to create a function with a different prototype. - /* eslint-disable no-proto */ - builder.__proto__ = proto; - - return builder; -} - -function applyStyle() { - // support varags, but simply cast to string in case there's only one arg - var args = arguments; - var argsLen = args.length; - var str = argsLen !== 0 && String(arguments[0]); - - if (argsLen > 1) { - // don't slice `arguments`, it prevents v8 optimizations - for (var a = 1; a < argsLen; a++) { - str += ' ' + args[a]; - } - } - - if (!this.enabled || !str) { - return str; - } - - var nestedStyles = this._styles; - var i = nestedStyles.length; - - // Turns out that on Windows dimmed gray text becomes invisible in cmd.exe, - // see https://github.com/chalk/chalk/issues/58 - // If we're on Windows and we're dealing with a gray color, temporarily make 'dim' a noop. - var originalDim = ansiStyles.dim.open; - if (isSimpleWindowsTerm && (nestedStyles.indexOf('gray') !== -1 || nestedStyles.indexOf('grey') !== -1)) { - ansiStyles.dim.open = ''; - } - - while (i--) { - var code = ansiStyles[nestedStyles[i]]; - - // Replace any instances already present with a re-opening code - // otherwise only the part of the string until said closing code - // will be colored, and the rest will simply be 'plain'. - str = code.open + str.replace(code.closeRe, code.open) + code.close; - } - - // Reset the original 'dim' if we changed it to work around the Windows dimmed gray issue. - ansiStyles.dim.open = originalDim; - - return str; -} - -function init() { - var ret = {}; - - Object.keys(styles).forEach(function (name) { - ret[name] = { - get: function () { - return build.call(this, [name]); - } - }; - }); - - return ret; -} - -defineProps(Chalk.prototype, init()); - -module.exports = new Chalk(); -module.exports.styles = ansiStyles; -module.exports.hasColor = hasAnsi; -module.exports.stripColor = stripAnsi; -module.exports.supportsColor = supportsColor; - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(14))); - -/***/ }), -/* 80 */ -/***/ (function(module, exports, __webpack_require__) { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -var util = __webpack_require__(11); -var has = Object.prototype.hasOwnProperty; - -/** - * A data structure which is a combination of an array and a set. Adding a new - * member is O(1), testing for membership is O(1), and finding the index of an - * element is O(1). Removing elements from the set is not supported. Only - * strings are supported for membership. - */ -function ArraySet() { - this._array = []; - this._set = Object.create(null); -} - -/** - * Static method for creating ArraySet instances from an existing array. - */ -ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) { - var set = new ArraySet(); - for (var i = 0, len = aArray.length; i < len; i++) { - set.add(aArray[i], aAllowDuplicates); - } - return set; -}; - -/** - * Return how many unique items are in this ArraySet. If duplicates have been - * added, than those do not count towards the size. - * - * @returns Number - */ -ArraySet.prototype.size = function ArraySet_size() { - return Object.getOwnPropertyNames(this._set).length; -}; - -/** - * Add the given string to this set. - * - * @param String aStr - */ -ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) { - var sStr = util.toSetString(aStr); - var isDuplicate = has.call(this._set, sStr); - var idx = this._array.length; - if (!isDuplicate || aAllowDuplicates) { - this._array.push(aStr); - } - if (!isDuplicate) { - this._set[sStr] = idx; - } -}; - -/** - * Is the given string a member of this set? - * - * @param String aStr - */ -ArraySet.prototype.has = function ArraySet_has(aStr) { - var sStr = util.toSetString(aStr); - return has.call(this._set, sStr); -}; - -/** - * What is the index of the given string in the array? - * - * @param String aStr - */ -ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) { - var sStr = util.toSetString(aStr); - if (has.call(this._set, sStr)) { - return this._set[sStr]; - } - throw new Error('"' + aStr + '" is not in the set.'); -}; - -/** - * What is the element at the given index? - * - * @param Number aIdx - */ -ArraySet.prototype.at = function ArraySet_at(aIdx) { - if (aIdx >= 0 && aIdx < this._array.length) { - return this._array[aIdx]; - } - throw new Error('No element indexed by ' + aIdx); -}; - -/** - * Returns the array representation of this set (which has the proper indices - * indicated by indexOf). Note that this is a copy of the internal array used - * for storing the members so that no one can mess with internal state. - */ -ArraySet.prototype.toArray = function ArraySet_toArray() { - return this._array.slice(); -}; - -exports.ArraySet = ArraySet; - - -/***/ }), -/* 81 */ -/***/ (function(module, exports, __webpack_require__) { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - * - * Based on the Base 64 VLQ implementation in Closure Compiler: - * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java - * - * Copyright 2011 The Closure Compiler Authors. All rights reserved. - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials provided - * with the distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -var base64 = __webpack_require__(160); - -// A single base 64 digit can contain 6 bits of data. For the base 64 variable -// length quantities we use in the source map spec, the first bit is the sign, -// the next four bits are the actual value, and the 6th bit is the -// continuation bit. The continuation bit tells us whether there are more -// digits in this value following this digit. -// -// Continuation -// | Sign -// | | -// V V -// 101011 - -var VLQ_BASE_SHIFT = 5; - -// binary: 100000 -var VLQ_BASE = 1 << VLQ_BASE_SHIFT; - -// binary: 011111 -var VLQ_BASE_MASK = VLQ_BASE - 1; - -// binary: 100000 -var VLQ_CONTINUATION_BIT = VLQ_BASE; - -/** - * Converts from a two-complement value to a value where the sign bit is - * placed in the least significant bit. For example, as decimals: - * 1 becomes 2 (10 binary), -1 becomes 3 (11 binary) - * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary) - */ -function toVLQSigned(aValue) { - return aValue < 0 - ? ((-aValue) << 1) + 1 - : (aValue << 1) + 0; -} - -/** - * Converts to a two-complement value from a value where the sign bit is - * placed in the least significant bit. For example, as decimals: - * 2 (10 binary) becomes 1, 3 (11 binary) becomes -1 - * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2 - */ -function fromVLQSigned(aValue) { - var isNegative = (aValue & 1) === 1; - var shifted = aValue >> 1; - return isNegative - ? -shifted - : shifted; -} - -/** - * Returns the base 64 VLQ encoded value. - */ -exports.encode = function base64VLQ_encode(aValue) { - var encoded = ""; - var digit; - - var vlq = toVLQSigned(aValue); - - do { - digit = vlq & VLQ_BASE_MASK; - vlq >>>= VLQ_BASE_SHIFT; - if (vlq > 0) { - // There are still more digits in this value, so we must make sure the - // continuation bit is marked. - digit |= VLQ_CONTINUATION_BIT; - } - encoded += base64.encode(digit); - } while (vlq > 0); - - return encoded; -}; - -/** - * Decodes the next base 64 VLQ value from the given string and returns the - * value and the rest of the string via the out parameter. - */ -exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) { - var strLen = aStr.length; - var result = 0; - var shift = 0; - var continuation, digit; - - do { - if (aIndex >= strLen) { - throw new Error("Expected more digits in base 64 VLQ value."); - } - - digit = base64.decode(aStr.charCodeAt(aIndex++)); - if (digit === -1) { - throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1)); - } - - continuation = !!(digit & VLQ_CONTINUATION_BIT); - digit &= VLQ_BASE_MASK; - result = result + (digit << shift); - shift += VLQ_BASE_SHIFT; - } while (continuation); - - aOutParam.value = fromVLQSigned(result); - aOutParam.rest = aIndex; -}; - - -/***/ }), -/* 82 */ -/***/ (function(module, exports, __webpack_require__) { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -var base64VLQ = __webpack_require__(81); -var util = __webpack_require__(11); -var ArraySet = __webpack_require__(80).ArraySet; -var MappingList = __webpack_require__(162).MappingList; - -/** - * An instance of the SourceMapGenerator represents a source map which is - * being built incrementally. You may pass an object with the following - * properties: - * - * - file: The filename of the generated source. - * - sourceRoot: A root for all relative URLs in this source map. - */ -function SourceMapGenerator(aArgs) { - if (!aArgs) { - aArgs = {}; - } - this._file = util.getArg(aArgs, 'file', null); - this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null); - this._skipValidation = util.getArg(aArgs, 'skipValidation', false); - this._sources = new ArraySet(); - this._names = new ArraySet(); - this._mappings = new MappingList(); - this._sourcesContents = null; -} - -SourceMapGenerator.prototype._version = 3; - -/** - * Creates a new SourceMapGenerator based on a SourceMapConsumer - * - * @param aSourceMapConsumer The SourceMap. - */ -SourceMapGenerator.fromSourceMap = - function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) { - var sourceRoot = aSourceMapConsumer.sourceRoot; - var generator = new SourceMapGenerator({ - file: aSourceMapConsumer.file, - sourceRoot: sourceRoot - }); - aSourceMapConsumer.eachMapping(function (mapping) { - var newMapping = { - generated: { - line: mapping.generatedLine, - column: mapping.generatedColumn - } - }; - - if (mapping.source != null) { - newMapping.source = mapping.source; - if (sourceRoot != null) { - newMapping.source = util.relative(sourceRoot, newMapping.source); - } - - newMapping.original = { - line: mapping.originalLine, - column: mapping.originalColumn - }; - - if (mapping.name != null) { - newMapping.name = mapping.name; - } - } - - generator.addMapping(newMapping); - }); - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - generator.setSourceContent(sourceFile, content); - } - }); - return generator; - }; - -/** - * Add a single mapping from original source line and column to the generated - * source's line and column for this source map being created. The mapping - * object should have the following properties: - * - * - generated: An object with the generated line and column positions. - * - original: An object with the original line and column positions. - * - source: The original source file (relative to the sourceRoot). - * - name: An optional original token name for this mapping. - */ -SourceMapGenerator.prototype.addMapping = - function SourceMapGenerator_addMapping(aArgs) { - var generated = util.getArg(aArgs, 'generated'); - var original = util.getArg(aArgs, 'original', null); - var source = util.getArg(aArgs, 'source', null); - var name = util.getArg(aArgs, 'name', null); - - if (!this._skipValidation) { - this._validateMapping(generated, original, source, name); - } - - if (source != null) { - source = String(source); - if (!this._sources.has(source)) { - this._sources.add(source); - } - } - - if (name != null) { - name = String(name); - if (!this._names.has(name)) { - this._names.add(name); - } - } - - this._mappings.add({ - generatedLine: generated.line, - generatedColumn: generated.column, - originalLine: original != null && original.line, - originalColumn: original != null && original.column, - source: source, - name: name - }); - }; - -/** - * Set the source content for a source file. - */ -SourceMapGenerator.prototype.setSourceContent = - function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) { - var source = aSourceFile; - if (this._sourceRoot != null) { - source = util.relative(this._sourceRoot, source); - } - - if (aSourceContent != null) { - // Add the source content to the _sourcesContents map. - // Create a new _sourcesContents map if the property is null. - if (!this._sourcesContents) { - this._sourcesContents = Object.create(null); - } - this._sourcesContents[util.toSetString(source)] = aSourceContent; - } else if (this._sourcesContents) { - // Remove the source file from the _sourcesContents map. - // If the _sourcesContents map is empty, set the property to null. - delete this._sourcesContents[util.toSetString(source)]; - if (Object.keys(this._sourcesContents).length === 0) { - this._sourcesContents = null; - } - } - }; - -/** - * Applies the mappings of a sub-source-map for a specific source file to the - * source map being generated. Each mapping to the supplied source file is - * rewritten using the supplied source map. Note: The resolution for the - * resulting mappings is the minimium of this map and the supplied map. - * - * @param aSourceMapConsumer The source map to be applied. - * @param aSourceFile Optional. The filename of the source file. - * If omitted, SourceMapConsumer's file property will be used. - * @param aSourceMapPath Optional. The dirname of the path to the source map - * to be applied. If relative, it is relative to the SourceMapConsumer. - * This parameter is needed when the two source maps aren't in the same - * directory, and the source map to be applied contains relative source - * paths. If so, those relative source paths need to be rewritten - * relative to the SourceMapGenerator. - */ -SourceMapGenerator.prototype.applySourceMap = - function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) { - var sourceFile = aSourceFile; - // If aSourceFile is omitted, we will use the file property of the SourceMap - if (aSourceFile == null) { - if (aSourceMapConsumer.file == null) { - throw new Error( - 'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' + - 'or the source map\'s "file" property. Both were omitted.' - ); - } - sourceFile = aSourceMapConsumer.file; - } - var sourceRoot = this._sourceRoot; - // Make "sourceFile" relative if an absolute Url is passed. - if (sourceRoot != null) { - sourceFile = util.relative(sourceRoot, sourceFile); - } - // Applying the SourceMap can add and remove items from the sources and - // the names array. - var newSources = new ArraySet(); - var newNames = new ArraySet(); - - // Find mappings for the "sourceFile" - this._mappings.unsortedForEach(function (mapping) { - if (mapping.source === sourceFile && mapping.originalLine != null) { - // Check if it can be mapped by the source map, then update the mapping. - var original = aSourceMapConsumer.originalPositionFor({ - line: mapping.originalLine, - column: mapping.originalColumn - }); - if (original.source != null) { - // Copy mapping - mapping.source = original.source; - if (aSourceMapPath != null) { - mapping.source = util.join(aSourceMapPath, mapping.source); - } - if (sourceRoot != null) { - mapping.source = util.relative(sourceRoot, mapping.source); - } - mapping.originalLine = original.line; - mapping.originalColumn = original.column; - if (original.name != null) { - mapping.name = original.name; - } - } - } - - var source = mapping.source; - if (source != null && !newSources.has(source)) { - newSources.add(source); - } - - var name = mapping.name; - if (name != null && !newNames.has(name)) { - newNames.add(name); - } - - }, this); - this._sources = newSources; - this._names = newNames; - - // Copy sourcesContents of applied map. - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - if (aSourceMapPath != null) { - sourceFile = util.join(aSourceMapPath, sourceFile); - } - if (sourceRoot != null) { - sourceFile = util.relative(sourceRoot, sourceFile); - } - this.setSourceContent(sourceFile, content); - } - }, this); - }; - -/** - * A mapping can have one of the three levels of data: - * - * 1. Just the generated position. - * 2. The Generated position, original position, and original source. - * 3. Generated and original position, original source, as well as a name - * token. - * - * To maintain consistency, we validate that any new mapping being added falls - * in to one of these categories. - */ -SourceMapGenerator.prototype._validateMapping = - function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, - aName) { - if (aGenerated && 'line' in aGenerated && 'column' in aGenerated - && aGenerated.line > 0 && aGenerated.column >= 0 - && !aOriginal && !aSource && !aName) { - // Case 1. - return; - } - else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated - && aOriginal && 'line' in aOriginal && 'column' in aOriginal - && aGenerated.line > 0 && aGenerated.column >= 0 - && aOriginal.line > 0 && aOriginal.column >= 0 - && aSource) { - // Cases 2 and 3. - return; - } - else { - throw new Error('Invalid mapping: ' + JSON.stringify({ - generated: aGenerated, - source: aSource, - original: aOriginal, - name: aName - })); - } - }; - -/** - * Serialize the accumulated mappings in to the stream of base 64 VLQs - * specified by the source map format. - */ -SourceMapGenerator.prototype._serializeMappings = - function SourceMapGenerator_serializeMappings() { - var previousGeneratedColumn = 0; - var previousGeneratedLine = 1; - var previousOriginalColumn = 0; - var previousOriginalLine = 0; - var previousName = 0; - var previousSource = 0; - var result = ''; - var next; - var mapping; - var nameIdx; - var sourceIdx; - - var mappings = this._mappings.toArray(); - for (var i = 0, len = mappings.length; i < len; i++) { - mapping = mappings[i]; - next = ''; - - if (mapping.generatedLine !== previousGeneratedLine) { - previousGeneratedColumn = 0; - while (mapping.generatedLine !== previousGeneratedLine) { - next += ';'; - previousGeneratedLine++; - } - } - else { - if (i > 0) { - if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) { - continue; - } - next += ','; - } - } - - next += base64VLQ.encode(mapping.generatedColumn - - previousGeneratedColumn); - previousGeneratedColumn = mapping.generatedColumn; - - if (mapping.source != null) { - sourceIdx = this._sources.indexOf(mapping.source); - next += base64VLQ.encode(sourceIdx - previousSource); - previousSource = sourceIdx; - - // lines are stored 0-based in SourceMap spec version 3 - next += base64VLQ.encode(mapping.originalLine - 1 - - previousOriginalLine); - previousOriginalLine = mapping.originalLine - 1; - - next += base64VLQ.encode(mapping.originalColumn - - previousOriginalColumn); - previousOriginalColumn = mapping.originalColumn; - - if (mapping.name != null) { - nameIdx = this._names.indexOf(mapping.name); - next += base64VLQ.encode(nameIdx - previousName); - previousName = nameIdx; - } - } - - result += next; - } - - return result; - }; - -SourceMapGenerator.prototype._generateSourcesContent = - function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) { - return aSources.map(function (source) { - if (!this._sourcesContents) { - return null; - } - if (aSourceRoot != null) { - source = util.relative(aSourceRoot, source); - } - var key = util.toSetString(source); - return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) - ? this._sourcesContents[key] - : null; - }, this); - }; - -/** - * Externalize the source map. - */ -SourceMapGenerator.prototype.toJSON = - function SourceMapGenerator_toJSON() { - var map = { - version: this._version, - sources: this._sources.toArray(), - names: this._names.toArray(), - mappings: this._serializeMappings() - }; - if (this._file != null) { - map.file = this._file; - } - if (this._sourceRoot != null) { - map.sourceRoot = this._sourceRoot; - } - if (this._sourcesContents) { - map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot); - } - - return map; - }; - -/** - * Render the source map being generated to a string. - */ -SourceMapGenerator.prototype.toString = - function SourceMapGenerator_toString() { - return JSON.stringify(this.toJSON()); - }; - -exports.SourceMapGenerator = SourceMapGenerator; - - -/***/ }), -/* 83 */ -/***/ (function(module, exports, __webpack_require__) { - -/* - * Copyright 2009-2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE.txt or: - * http://opensource.org/licenses/BSD-3-Clause - */ -exports.SourceMapGenerator = __webpack_require__(82).SourceMapGenerator; -exports.SourceMapConsumer = __webpack_require__(164).SourceMapConsumer; -exports.SourceNode = __webpack_require__(165).SourceNode; - - -/***/ }), -/* 84 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -function unique_pred(list, compare) { - var ptr = 1 - , len = list.length - , a=list[0], b=list[0]; - for(var i=1; i 0) { - throw new Error('Invalid string. Length must be a multiple of 4') - } - - // the number of equal signs (place holders) - // if there are two placeholders, than the two characters before it - // represent one byte - // if there is only one, then the three characters before it represent 2 bytes - // this is just a cheap hack to not do indexOf twice - return b64[len - 2] === '=' ? 2 : b64[len - 1] === '=' ? 1 : 0 -} - -function byteLength (b64) { - // base64 is 4/3 + up to two characters of the original data - return b64.length * 3 / 4 - placeHoldersCount(b64) -} - -function toByteArray (b64) { - var i, j, l, tmp, placeHolders, arr; - var len = b64.length; - placeHolders = placeHoldersCount(b64); - - arr = new Arr(len * 3 / 4 - placeHolders); - - // if there are placeholders, only get up to the last complete 4 chars - l = placeHolders > 0 ? len - 4 : len; - - var L = 0; - - for (i = 0, j = 0; i < l; i += 4, j += 3) { - tmp = (revLookup[b64.charCodeAt(i)] << 18) | (revLookup[b64.charCodeAt(i + 1)] << 12) | (revLookup[b64.charCodeAt(i + 2)] << 6) | revLookup[b64.charCodeAt(i + 3)]; - arr[L++] = (tmp >> 16) & 0xFF; - arr[L++] = (tmp >> 8) & 0xFF; - arr[L++] = tmp & 0xFF; - } - - if (placeHolders === 2) { - tmp = (revLookup[b64.charCodeAt(i)] << 2) | (revLookup[b64.charCodeAt(i + 1)] >> 4); - arr[L++] = tmp & 0xFF; - } else if (placeHolders === 1) { - tmp = (revLookup[b64.charCodeAt(i)] << 10) | (revLookup[b64.charCodeAt(i + 1)] << 4) | (revLookup[b64.charCodeAt(i + 2)] >> 2); - arr[L++] = (tmp >> 8) & 0xFF; - arr[L++] = tmp & 0xFF; - } - - return arr -} - -function tripletToBase64 (num) { - return lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[num & 0x3F] -} - -function encodeChunk (uint8, start, end) { - var tmp; - var output = []; - for (var i = start; i < end; i += 3) { - tmp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2]); - output.push(tripletToBase64(tmp)); - } - return output.join('') -} - -function fromByteArray (uint8) { - var tmp; - var len = uint8.length; - var extraBytes = len % 3; // if we have 1 byte left, pad 2 bytes - var output = ''; - var parts = []; - var maxChunkLength = 16383; // must be multiple of 3 - - // go through the array every three bytes, we'll deal with trailing stuff later - for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) { - parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength))); - } - - // pad the end with zeros, but make sure to not forget the extra bytes - if (extraBytes === 1) { - tmp = uint8[len - 1]; - output += lookup[tmp >> 2]; - output += lookup[(tmp << 4) & 0x3F]; - output += '=='; - } else if (extraBytes === 2) { - tmp = (uint8[len - 2] << 8) + (uint8[len - 1]); - output += lookup[tmp >> 10]; - output += lookup[(tmp >> 4) & 0x3F]; - output += lookup[(tmp << 2) & 0x3F]; - output += '='; - } - - parts.push(output); - - return parts.join('') -} - - -/***/ }), -/* 93 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; - -module.exports = function (str) { - if (typeof str !== 'string') { - throw new TypeError('Expected a string'); - } - - return str.replace(matchOperatorsRe, '\\$&'); -}; - - -/***/ }), -/* 94 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var ansiRegex = __webpack_require__(95); -var re = new RegExp(ansiRegex().source); // remove the `g` flag -module.exports = re.test.bind(re); - - -/***/ }), -/* 95 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -module.exports = function () { - return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g; -}; - - -/***/ }), -/* 96 */ -/***/ (function(module, exports) { - -exports.read = function (buffer, offset, isLE, mLen, nBytes) { - var e, m; - var eLen = nBytes * 8 - mLen - 1; - var eMax = (1 << eLen) - 1; - var eBias = eMax >> 1; - var nBits = -7; - var i = isLE ? (nBytes - 1) : 0; - var d = isLE ? -1 : 1; - var s = buffer[offset + i]; - - i += d; - - e = s & ((1 << (-nBits)) - 1); - s >>= (-nBits); - nBits += eLen; - for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {} - - m = e & ((1 << (-nBits)) - 1); - e >>= (-nBits); - nBits += mLen; - for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {} - - if (e === 0) { - e = 1 - eBias; - } else if (e === eMax) { - return m ? NaN : ((s ? -1 : 1) * Infinity) - } else { - m = m + Math.pow(2, mLen); - e = e - eBias; - } - return (s ? -1 : 1) * m * Math.pow(2, e - mLen) -}; - -exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { - var e, m, c; - var eLen = nBytes * 8 - mLen - 1; - var eMax = (1 << eLen) - 1; - var eBias = eMax >> 1; - var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0); - var i = isLE ? 0 : (nBytes - 1); - var d = isLE ? 1 : -1; - var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0; - - value = Math.abs(value); - - if (isNaN(value) || value === Infinity) { - m = isNaN(value) ? 1 : 0; - e = eMax; - } else { - e = Math.floor(Math.log(value) / Math.LN2); - if (value * (c = Math.pow(2, -e)) < 1) { - e--; - c *= 2; - } - if (e + eBias >= 1) { - value += rt / c; - } else { - value += rt * Math.pow(2, 1 - eBias); - } - if (value * c >= 2) { - e++; - c /= 2; - } - - if (e + eBias >= eMax) { - m = 0; - e = eMax; - } else if (e + eBias >= 1) { - m = (value * c - 1) * Math.pow(2, mLen); - e = e + eBias; - } else { - m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen); - e = 0; - } - } - - for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {} - - e = (e << mLen) | m; - eLen += mLen; - for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {} - - buffer[offset + i - d] |= s * 128; -}; - - -/***/ }), -/* 97 */ -/***/ (function(module, exports) { - -var toString = {}.toString; - -module.exports = Array.isArray || function (arr) { - return toString.call(arr) == '[object Array]'; -}; - - -/***/ }), -/* 98 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = findExtendRule; -var extendRuleKeyWords = ['&', ':', 'extend']; -var extendRuleKeyWordsCount = extendRuleKeyWords.length; - -function findExtendRule(tokens) { - var start = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - - var stack = []; - var len = tokens.length; - var end = start; - - while (end < len) { - var token = tokens[end]; - - if (extendRuleKeyWords.indexOf(token[1]) >= 0) { - stack.push(token[1]); - } else if (token[0] !== 'space') { - break; - } - - end++; - } - - for (var index = 0; index < extendRuleKeyWordsCount; index++) { - if (stack[index] !== extendRuleKeyWords[index]) { - return null; - } - } - - return tokens.slice(start, end); -} -module.exports = exports['default']; - -/***/ }), -/* 99 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - -var _rule = __webpack_require__(10); - -var _rule2 = _interopRequireDefault(_rule); - -var _lessStringify = __webpack_require__(12); - -var _lessStringify2 = _interopRequireDefault(_lessStringify); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Import = function (_PostCssRule) { - _inherits(Import, _PostCssRule); - - function Import(defaults) { - _classCallCheck(this, Import); - - var _this = _possibleConstructorReturn(this, (Import.__proto__ || Object.getPrototypeOf(Import)).call(this, defaults)); - - _this.type = 'import'; - return _this; - } - - _createClass(Import, [{ - key: 'toString', - value: function toString(stringifier) { - if (!stringifier) { - stringifier = { - stringify: _lessStringify2.default - }; - } - - return _get(Import.prototype.__proto__ || Object.getPrototypeOf(Import.prototype), 'toString', this).call(this, stringifier); - } - }]); - - return Import; -}(_rule2.default); - -exports.default = Import; -module.exports = exports['default']; - -/***/ }), -/* 100 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isMixinToken; - -var _globals = __webpack_require__(2); - -var unpaddedFractionalNumbersPattern = /\.[0-9]/; - -function isMixinToken(token) { - var symbol = token[1]; - var firstSymbolCode = symbol ? symbol[0].charCodeAt(0) : null; - - return (firstSymbolCode === _globals.dot || firstSymbolCode === _globals.hash) && - // ignore hashes used for colors - _globals.hashColorPattern.test(symbol) === false && - // ignore dots used for unpadded fractional numbers - unpaddedFractionalNumbersPattern.test(symbol) === false; -} -module.exports = exports['default']; - -/***/ }), -/* 101 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = lessParse; - -var _input = __webpack_require__(26); - -var _input2 = _interopRequireDefault(_input); - -var _lessParser = __webpack_require__(31); - -var _lessParser2 = _interopRequireDefault(_lessParser); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function lessParse(less, opts) { - var input = new _input2.default(less, opts); - var parser = new _lessParser2.default(input, opts); - // const parser = new Parser(input, opts); - - parser.tokenize(); - parser.loop(); - - return parser.root; -} -// import Parser from 'postcss/lib/parser'; - -module.exports = exports['default']; - -/***/ }), -/* 102 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - -var _stringifier = __webpack_require__(29); - -var _stringifier2 = _interopRequireDefault(_stringifier); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var LessStringifier = function (_Stringifier) { - _inherits(LessStringifier, _Stringifier); - - function LessStringifier() { - _classCallCheck(this, LessStringifier); - - return _possibleConstructorReturn(this, (LessStringifier.__proto__ || Object.getPrototypeOf(LessStringifier)).apply(this, arguments)); - } - - _createClass(LessStringifier, [{ - key: 'comment', - value: function comment(node) { - this.builder(node.raws.content, node); - } - }, { - key: 'import', - value: function _import(node) { - this.builder('@' + node.name); - this.builder((node.raws.afterName || '') + (node.directives || '') + (node.raws.between || '') + (node.urlFunc ? 'url(' : '') + (node.raws.beforeUrl || '') + (node.importPath || '') + (node.raws.afterUrl || '') + (node.urlFunc ? ')' : '') + (node.raws.after || '')); - - if (node.raws.semicolon) { - this.builder(';'); - } - } - }, { - key: 'rule', - value: function rule(node) { - _get(LessStringifier.prototype.__proto__ || Object.getPrototypeOf(LessStringifier.prototype), 'rule', this).call(this, node); - - if (node.empty && node.raws.semicolon) { - if (node.important) { - this.builder(' !important'); - } - - if (node.raws.semicolon) { - this.builder(';'); - } - } - } - }, { - key: 'block', - value: function block(node, start) { - var empty = node.empty; - - var between = this.raw(node, 'between', 'beforeOpen'); - var after = ''; - - if (empty) { - this.builder(start + between, node, 'start'); - } else { - this.builder(start + between + '{', node, 'start'); - } - - if (node.nodes && node.nodes.length) { - this.body(node); - after = this.raw(node, 'after'); - } else { - after = this.raw(node, 'after', 'emptyBody'); - } - - if (after) { - this.builder(after); - } - - if (!empty) { - this.builder('}', node, 'end'); - } - } - }]); - - return LessStringifier; -}(_stringifier2.default); - -exports.default = LessStringifier; -module.exports = exports['default']; - -/***/ }), -/* 103 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = lessTokenize; - -var _globals = __webpack_require__(2); - -var _tokenizeSymbol = __webpack_require__(117); - -var _tokenizeSymbol2 = _interopRequireDefault(_tokenizeSymbol); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function lessTokenize(input) { - var state = { - input: input, - tokens: [], - css: input.css.valueOf(), - offset: -1, - line: 1, - pos: 0 - }; - - state.length = state.css.length; - - while (state.pos < state.length) { - state.symbolCode = state.css.charCodeAt(state.pos); - state.symbol = state.css[state.pos]; - state.nextPos = null; - state.escaped = null; - state.lines = null; - state.lastLine = null; - state.cssPart = null; - state.escape = null; - state.nextLine = null; - state.nextOffset = null; - state.escapePos = null; - state.token = null; - - if (state.symbolCode === _globals.newline) { - state.offset = state.pos; - state.line += 1; - } - - (0, _tokenizeSymbol2.default)(state); - - state.pos++; - } - - return state.tokens; -} -module.exports = exports['default']; - -/***/ }), -/* 104 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - -var _root = __webpack_require__(28); - -var _root2 = _interopRequireDefault(_root); - -var _lessStringify = __webpack_require__(12); - -var _lessStringify2 = _interopRequireDefault(_lessStringify); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Root = function (_PostCssRoot) { - _inherits(Root, _PostCssRoot); - - function Root() { - _classCallCheck(this, Root); - - return _possibleConstructorReturn(this, (Root.__proto__ || Object.getPrototypeOf(Root)).apply(this, arguments)); - } - - _createClass(Root, [{ - key: 'toString', - value: function toString(stringifier) { - if (!stringifier) { - stringifier = { - stringify: _lessStringify2.default - }; - } - - return _get(Root.prototype.__proto__ || Object.getPrototypeOf(Root.prototype), 'toString', this).call(this, stringifier); - } - }]); - - return Root; -}(_root2.default); - -exports.default = Root; -module.exports = exports['default']; - -/***/ }), -/* 105 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - -var _rule = __webpack_require__(10); - -var _rule2 = _interopRequireDefault(_rule); - -var _lessStringify = __webpack_require__(12); - -var _lessStringify2 = _interopRequireDefault(_lessStringify); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Rule = function (_PostCssRule) { - _inherits(Rule, _PostCssRule); - - function Rule() { - _classCallCheck(this, Rule); - - return _possibleConstructorReturn(this, (Rule.__proto__ || Object.getPrototypeOf(Rule)).apply(this, arguments)); - } - - _createClass(Rule, [{ - key: 'toString', - value: function toString(stringifier) { - if (!stringifier) { - stringifier = { - stringify: _lessStringify2.default - }; - } - - return _get(Rule.prototype.__proto__ || Object.getPrototypeOf(Rule.prototype), 'toString', this).call(this, stringifier); - } - }]); - - return Rule; -}(_rule2.default); - -exports.default = Rule; -module.exports = exports['default']; - -/***/ }), -/* 106 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = findEndOfEscaping; - -var _globals = __webpack_require__(2); - -/** - * @param state - * @returns {number} - */ -function findEndOfEscaping(state) { - var openQuotesCount = 0, - quoteCode = -1; - - for (var i = state.pos + 1; i < state.length; i++) { - var symbolCode = state.css.charCodeAt(i); - var prevSymbolCode = state.css.charCodeAt(i - 1); - - if (prevSymbolCode !== _globals.backslash && (symbolCode === _globals.singleQuote || symbolCode === _globals.doubleQuote || symbolCode === _globals.backTick)) { - if (quoteCode === -1) { - quoteCode = symbolCode; - openQuotesCount++; - } else if (symbolCode === quoteCode) { - openQuotesCount--; - - if (!openQuotesCount) { - return i; - } - } - } - } - - return -1; -} -module.exports = exports['default']; - -/***/ }), -/* 107 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isEscaping; - -var _globals = __webpack_require__(2); - -var nextSymbolVariants = [_globals.backTick, _globals.doubleQuote, _globals.singleQuote]; - -function isEscaping(state) { - var nextSymbolCode = state.css.charCodeAt(state.pos + 1); - - return state.symbolCode === _globals.tilde && nextSymbolVariants.indexOf(nextSymbolCode) >= 0; -} -module.exports = exports['default']; - -/***/ }), -/* 108 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = tokenizeAtRule; - -var _globals = __webpack_require__(2); - -var _unclosed = __webpack_require__(7); - -var _unclosed2 = _interopRequireDefault(_unclosed); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function tokenizeAtRule(state) { - // it's an interpolation - if (state.css.charCodeAt(state.pos + 1) === _globals.openedCurlyBracket) { - state.nextPos = state.css.indexOf('}', state.pos + 2); - - if (state.nextPos === -1) { - (0, _unclosed2.default)(state, 'interpolation'); - } - - state.cssPart = state.css.slice(state.pos, state.nextPos + 1); - state.lines = state.cssPart.split('\n'); - state.lastLine = state.lines.length - 1; - - if (state.lastLine > 0) { - state.nextLine = state.line + state.lastLine; - state.nextOffset = state.nextPos - state.lines[state.lastLine].length; - } else { - state.nextLine = state.line; - state.nextOffset = state.offset; - } - - state.tokens.push(['word', state.cssPart, state.line, state.pos - state.offset, state.nextLine, state.nextPos - state.nextOffset]); - - state.offset = state.nextOffset; - state.line = state.nextLine; - } else { - _globals.atEndPattern.lastIndex = state.pos + 1; - _globals.atEndPattern.test(state.css); - - if (_globals.atEndPattern.lastIndex === 0) { - state.nextPos = state.css.length - 1; - } else { - state.nextPos = _globals.atEndPattern.lastIndex - 2; - } - - state.cssPart = state.css.slice(state.pos, state.nextPos + 1); - state.token = 'at-word'; - - // check if it's a variable - if (_globals.variablePattern.test(state.cssPart)) { - _globals.wordEndPattern.lastIndex = state.pos + 1; - _globals.wordEndPattern.test(state.css); - if (_globals.wordEndPattern.lastIndex === 0) { - state.nextPos = state.css.length - 1; - } else { - state.nextPos = _globals.wordEndPattern.lastIndex - 2; - } - - state.cssPart = state.css.slice(state.pos, state.nextPos + 1); - state.token = 'word'; - } - - state.tokens.push([state.token, state.cssPart, state.line, state.pos - state.offset, state.line, state.nextPos - state.offset]); - } - - state.pos = state.nextPos; -} -module.exports = exports['default']; - -/***/ }), -/* 109 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = tokenizeBackslash; - -var _globals = __webpack_require__(2); - -function tokenizeBackslash(state) { - state.nextPos = state.pos; - state.escape = true; - - while (state.css.charCodeAt(state.nextPos + 1) === _globals.backslash) { - state.nextPos += 1; - state.escape = !state.escape; - } - - state.symbolCode = state.css.charCodeAt(state.nextPos + 1); - - if (state.escape && state.symbolCode !== _globals.slash && state.symbolCode !== _globals.space && state.symbolCode !== _globals.newline && state.symbolCode !== _globals.tab && state.symbolCode !== _globals.carriageReturn && state.symbolCode !== _globals.feed) { - state.nextPos += 1; - } - - state.tokens.push(['word', state.css.slice(state.pos, state.nextPos + 1), state.line, state.pos - state.offset, state.line, state.nextPos - state.offset]); - - state.pos = state.nextPos; -} -module.exports = exports['default']; - -/***/ }), -/* 110 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = tokenizeBasicSymbol; -function tokenizeBasicSymbol(state) { - state.tokens.push([state.symbol, state.symbol, state.line, state.pos - state.offset]); -} -module.exports = exports["default"]; - -/***/ }), -/* 111 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = tokenizeComma; -function tokenizeComma(state) { - state.tokens.push(['word', state.symbol, state.line, state.pos - state.offset, state.line, state.pos - state.offset + 1]); -} -module.exports = exports['default']; - -/***/ }), -/* 112 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = tokenizeDefault; - -var _globals = __webpack_require__(2); - -var _findEndOfEscaping = __webpack_require__(106); - -var _findEndOfEscaping2 = _interopRequireDefault(_findEndOfEscaping); - -var _isEscaping = __webpack_require__(107); - -var _isEscaping2 = _interopRequireDefault(_isEscaping); - -var _tokenizeInlineComment = __webpack_require__(113); - -var _tokenizeInlineComment2 = _interopRequireDefault(_tokenizeInlineComment); - -var _tokenizeMultilineComment = __webpack_require__(114); - -var _tokenizeMultilineComment2 = _interopRequireDefault(_tokenizeMultilineComment); - -var _unclosed = __webpack_require__(7); - -var _unclosed2 = _interopRequireDefault(_unclosed); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function tokenizeDefault(state) { - var nextSymbolCode = state.css.charCodeAt(state.pos + 1); - - if (state.symbolCode === _globals.slash && nextSymbolCode === _globals.asterisk) { - (0, _tokenizeMultilineComment2.default)(state); - } else if (state.symbolCode === _globals.slash && nextSymbolCode === _globals.slash) { - (0, _tokenizeInlineComment2.default)(state); - } else { - if ((0, _isEscaping2.default)(state)) { - var pos = (0, _findEndOfEscaping2.default)(state); - - if (pos < 0) { - (0, _unclosed2.default)(state, 'escaping'); - } else { - state.nextPos = pos; - } - } else { - _globals.wordEndPattern.lastIndex = state.pos + 1; - _globals.wordEndPattern.test(state.css); - - if (_globals.wordEndPattern.lastIndex === 0) { - state.nextPos = state.css.length - 1; - } else { - state.nextPos = _globals.wordEndPattern.lastIndex - 2; - } - } - - state.cssPart = state.css.slice(state.pos, state.nextPos + 1); - - state.tokens.push(['word', state.cssPart, state.line, state.pos - state.offset, state.line, state.nextPos - state.offset]); - - state.pos = state.nextPos; - } -} -module.exports = exports['default']; - -/***/ }), -/* 113 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = tokenizeInlineComment; -function tokenizeInlineComment(state) { - state.nextPos = state.css.indexOf('\n', state.pos + 2) - 1; - - if (state.nextPos === -2) { - state.nextPos = state.css.length - 1; - } - - state.tokens.push(['comment', state.css.slice(state.pos, state.nextPos + 1), state.line, state.pos - state.offset, state.line, state.nextPos - state.offset, 'inline']); - - state.pos = state.nextPos; -} -module.exports = exports['default']; - -/***/ }), -/* 114 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = tokenizeMultilineComment; - -var _unclosed = __webpack_require__(7); - -var _unclosed2 = _interopRequireDefault(_unclosed); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function tokenizeMultilineComment(state) { - state.nextPos = state.css.indexOf('*/', state.pos + 2) + 1; - - if (state.nextPos === 0) { - (0, _unclosed2.default)(state, 'comment'); - } - - state.cssPart = state.css.slice(state.pos, state.nextPos + 1); - state.lines = state.cssPart.split('\n'); - state.lastLine = state.lines.length - 1; - - if (state.lastLine > 0) { - state.nextLine = state.line + state.lastLine; - state.nextOffset = state.nextPos - state.lines[state.lastLine].length; - } else { - state.nextLine = state.line; - state.nextOffset = state.offset; - } - - state.tokens.push(['comment', state.cssPart, state.line, state.pos - state.offset, state.nextLine, state.nextPos - state.nextOffset]); - - state.offset = state.nextOffset; - state.line = state.nextLine; - state.pos = state.nextPos; -} -module.exports = exports['default']; - -/***/ }), -/* 115 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = tokenizeOpenedParenthesis; - -var _globals = __webpack_require__(2); - -var _unclosed = __webpack_require__(7); - -var _unclosed2 = _interopRequireDefault(_unclosed); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function findClosedParenthesisPosition(css, length, start) { - var openedParenthesisCount = 0; - - for (var i = start; i < length; i++) { - var symbol = css[i]; - - if (symbol === '(') { - openedParenthesisCount++; - } else if (symbol === ')') { - openedParenthesisCount--; - - if (!openedParenthesisCount) { - return i; - } - } - } - - return -1; -} - -// it is not very reasonable to reduce complexity beyond this level -// eslint-disable-next-line complexity -function tokenizeOpenedParenthesis(state) { - var nextSymbolCode = state.css.charCodeAt(state.pos + 1); - var tokensCount = state.tokens.length; - var prevTokenCssPart = tokensCount ? state.tokens[tokensCount - 1][1] : ''; - - if (prevTokenCssPart === 'url' && nextSymbolCode !== _globals.singleQuote && nextSymbolCode !== _globals.doubleQuote && nextSymbolCode !== _globals.space && nextSymbolCode !== _globals.newline && nextSymbolCode !== _globals.tab && nextSymbolCode !== _globals.feed && nextSymbolCode !== _globals.carriageReturn) { - state.nextPos = state.pos; - - do { - state.escaped = false; - state.nextPos = state.css.indexOf(')', state.nextPos + 1); - - if (state.nextPos === -1) { - (0, _unclosed2.default)(state, 'bracket'); - } - - state.escapePos = state.nextPos; - - while (state.css.charCodeAt(state.escapePos - 1) === _globals.backslash) { - state.escapePos -= 1; - state.escaped = !state.escaped; - } - } while (state.escaped); - - state.tokens.push(['brackets', state.css.slice(state.pos, state.nextPos + 1), state.line, state.pos - state.offset, state.line, state.nextPos - state.offset]); - state.pos = state.nextPos; - } else { - state.nextPos = findClosedParenthesisPosition(state.css, state.length, state.pos); - state.cssPart = state.css.slice(state.pos, state.nextPos + 1); - - var foundParam = state.cssPart.indexOf('@') >= 0; - var foundString = /['"]/.test(state.cssPart); - - if (state.cssPart.length === 0 || state.cssPart === '...' || foundParam && !foundString) { - // we're dealing with a mixin param block - if (state.nextPos === -1) { - (0, _unclosed2.default)(state, 'bracket'); - } - - state.tokens.push([state.symbol, state.symbol, state.line, state.pos - state.offset]); - } else { - var badBracket = _globals.badBracketPattern.test(state.cssPart); - - if (state.nextPos === -1 || badBracket) { - state.tokens.push([state.symbol, state.symbol, state.line, state.pos - state.offset]); - } else { - state.tokens.push(['brackets', state.cssPart, state.line, state.pos - state.offset, state.line, state.nextPos - state.offset]); - state.pos = state.nextPos; - } - } - } -} -module.exports = exports['default']; - -/***/ }), -/* 116 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = tokenizeQuotes; - -var _globals = __webpack_require__(2); - -var _unclosed = __webpack_require__(7); - -var _unclosed2 = _interopRequireDefault(_unclosed); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function tokenizeQuotes(state) { - state.nextPos = state.pos; - - do { - state.escaped = false; - state.nextPos = state.css.indexOf(state.symbol, state.nextPos + 1); - - if (state.nextPos === -1) { - (0, _unclosed2.default)(state, 'quote'); - } - - state.escapePos = state.nextPos; - - while (state.css.charCodeAt(state.escapePos - 1) === _globals.backslash) { - state.escapePos -= 1; - state.escaped = !state.escaped; - } - } while (state.escaped); - - state.tokens.push(['string', state.css.slice(state.pos, state.nextPos + 1), state.line, state.pos - state.offset, state.line, state.nextPos - state.offset]); - - state.pos = state.nextPos; -} -module.exports = exports['default']; - -/***/ }), -/* 117 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = tokenizeSymbol; - -var _globals = __webpack_require__(2); - -var _tokenizeAtRule = __webpack_require__(108); - -var _tokenizeAtRule2 = _interopRequireDefault(_tokenizeAtRule); - -var _tokenizeBackslash = __webpack_require__(109); - -var _tokenizeBackslash2 = _interopRequireDefault(_tokenizeBackslash); - -var _tokenizeBasicSymbol = __webpack_require__(110); - -var _tokenizeBasicSymbol2 = _interopRequireDefault(_tokenizeBasicSymbol); - -var _tokenizeComma = __webpack_require__(111); - -var _tokenizeComma2 = _interopRequireDefault(_tokenizeComma); - -var _tokenizeDefault = __webpack_require__(112); - -var _tokenizeDefault2 = _interopRequireDefault(_tokenizeDefault); - -var _tokenizeOpenedParenthesis = __webpack_require__(115); - -var _tokenizeOpenedParenthesis2 = _interopRequireDefault(_tokenizeOpenedParenthesis); - -var _tokenizeQuotes = __webpack_require__(116); - -var _tokenizeQuotes2 = _interopRequireDefault(_tokenizeQuotes); - -var _tokenizeWhitespace = __webpack_require__(118); - -var _tokenizeWhitespace2 = _interopRequireDefault(_tokenizeWhitespace); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -// we cannot reduce complexity beyond this level -// eslint-disable-next-line complexity -function tokenizeSymbol(state) { - switch (state.symbolCode) { - case _globals.newline: - case _globals.space: - case _globals.tab: - case _globals.carriageReturn: - case _globals.feed: - (0, _tokenizeWhitespace2.default)(state); - break; - - case _globals.comma: - (0, _tokenizeComma2.default)(state); - break; - - case _globals.colon: - case _globals.semicolon: - case _globals.openedCurlyBracket: - case _globals.closedCurlyBracket: - case _globals.closedParenthesis: - case _globals.openSquareBracket: - case _globals.closeSquareBracket: - (0, _tokenizeBasicSymbol2.default)(state); - break; - - case _globals.openedParenthesis: - (0, _tokenizeOpenedParenthesis2.default)(state); - break; - - case _globals.singleQuote: - case _globals.doubleQuote: - (0, _tokenizeQuotes2.default)(state); - break; - - case _globals.atRule: - (0, _tokenizeAtRule2.default)(state); - break; - - case _globals.backslash: - (0, _tokenizeBackslash2.default)(state); - break; - - default: - (0, _tokenizeDefault2.default)(state); - break; - } -} -module.exports = exports['default']; - -/***/ }), -/* 118 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = tokenizeWhitespace; - -var _globals = __webpack_require__(2); - -function tokenizeWhitespace(state) { - state.nextPos = state.pos; - - // collect all neighbour space symbols - do { - state.nextPos += 1; - state.symbolCode = state.css.charCodeAt(state.nextPos); - if (state.symbolCode === _globals.newline) { - state.offset = state.nextPos; - state.line += 1; - } - } while (state.symbolCode === _globals.space || state.symbolCode === _globals.newline || state.symbolCode === _globals.tab || state.symbolCode === _globals.carriageReturn || state.symbolCode === _globals.feed); - - state.tokens.push(['space', state.css.slice(state.pos, state.nextPos)]); - state.pos = state.nextPos - 1; -} -module.exports = exports['default']; - -/***/ }), -/* 119 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.parseMediaFeature = parseMediaFeature; -exports.parseMediaQuery = parseMediaQuery; -exports.parseMediaList = parseMediaList; - -var _Node = __webpack_require__(36); - -var _Node2 = _interopRequireDefault(_Node); - -var _Container = __webpack_require__(35); - -var _Container2 = _interopRequireDefault(_Container); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Parses a media feature expression, e.g. `max-width: 10px`, `(color)` - * - * @param {string} string - the source expression string, can be inside parens - * @param {Number} index - the index of `string` in the overall input - * - * @return {Array} an array of Nodes, the first element being a media feature, - * the secont - its value (may be missing) - */ - -function parseMediaFeature(string) { - var index = arguments.length <= 1 || arguments[1] === undefined ? 0 : arguments[1]; - - var modesEntered = [{ - mode: 'normal', - character: null - }]; - var result = []; - var lastModeIndex = 0; - var mediaFeature = ''; - var colon = null; - var mediaFeatureValue = null; - var indexLocal = index; - - var stringNormalized = string; - // Strip trailing parens (if any), and correct the starting index - if (string[0] === '(' && string[string.length - 1] === ')') { - stringNormalized = string.substring(1, string.length - 1); - indexLocal++; - } - - for (var i = 0; i < stringNormalized.length; i++) { - var character = stringNormalized[i]; - - // If entering/exiting a string - if (character === '\'' || character === '"') { - if (modesEntered[lastModeIndex].isCalculationEnabled === true) { - modesEntered.push({ - mode: 'string', - isCalculationEnabled: false, - character: character - }); - lastModeIndex++; - } else if (modesEntered[lastModeIndex].mode === 'string' && modesEntered[lastModeIndex].character === character && stringNormalized[i - 1] !== '\\') { - modesEntered.pop(); - lastModeIndex--; - } - } - - // If entering/exiting interpolation - if (character === '{') { - modesEntered.push({ - mode: 'interpolation', - isCalculationEnabled: true - }); - lastModeIndex++; - } else if (character === '}') { - modesEntered.pop(); - lastModeIndex--; - } - - // If a : is met outside of a string, function call or interpolation, than - // this : separates a media feature and a value - if (modesEntered[lastModeIndex].mode === 'normal' && character === ':') { - var mediaFeatureValueStr = stringNormalized.substring(i + 1); - mediaFeatureValue = { - type: 'value', - before: /^(\s*)/.exec(mediaFeatureValueStr)[1], - after: /(\s*)$/.exec(mediaFeatureValueStr)[1], - value: mediaFeatureValueStr.trim() - }; - // +1 for the colon - mediaFeatureValue.sourceIndex = mediaFeatureValue.before.length + i + 1 + indexLocal; - colon = { - type: 'colon', - sourceIndex: i + indexLocal, - after: mediaFeatureValue.before, - value: ':' }; - break; - } - - mediaFeature += character; - } - - // Forming a media feature node - mediaFeature = { - type: 'media-feature', - before: /^(\s*)/.exec(mediaFeature)[1], - after: /(\s*)$/.exec(mediaFeature)[1], - value: mediaFeature.trim() - }; - mediaFeature.sourceIndex = mediaFeature.before.length + indexLocal; - result.push(mediaFeature); - - if (colon !== null) { - colon.before = mediaFeature.after; - result.push(colon); - } - - if (mediaFeatureValue !== null) { - result.push(mediaFeatureValue); - } - - return result; -} - -/** - * Parses a media query, e.g. `screen and (color)`, `only tv` - * - * @param {string} string - the source media query string - * @param {Number} index - the index of `string` in the overall input - * - * @return {Array} an array of Nodes and Containers - */ - -function parseMediaQuery(string) { - var index = arguments.length <= 1 || arguments[1] === undefined ? 0 : arguments[1]; - - var result = []; - - // How many timies the parser entered parens/curly braces - var localLevel = 0; - // Has any keyword, media type, media feature expression or interpolation - // ('element' hereafter) started - var insideSomeValue = false; - var node = void 0; - - function resetNode() { - return { - before: '', - after: '', - value: '' - }; - } - - node = resetNode(); - - for (var i = 0; i < string.length; i++) { - var character = string[i]; - // If not yet entered any element - if (!insideSomeValue) { - if (character.search(/\s/) !== -1) { - // A whitespace - // Don't form 'after' yet; will do it later - node.before += character; - } else { - // Not a whitespace - entering an element - // Expression start - if (character === '(') { - node.type = 'media-feature-expression'; - localLevel++; - } - node.value = character; - node.sourceIndex = index + i; - insideSomeValue = true; - } - } else { - // Already in the middle of some alement - node.value += character; - - // Here parens just increase localLevel and don't trigger a start of - // a media feature expression (since they can't be nested) - // Interpolation start - if (character === '{' || character === '(') { - localLevel++; - } - // Interpolation/function call/media feature expression end - if (character === ')' || character === '}') { - localLevel--; - } - } - - // If exited all parens/curlies and the next symbol - if (insideSomeValue && localLevel === 0 && (character === ')' || i === string.length - 1 || string[i + 1].search(/\s/) !== -1)) { - if (['not', 'only', 'and'].indexOf(node.value) !== -1) { - node.type = 'keyword'; - } - // if it's an expression, parse its contents - if (node.type === 'media-feature-expression') { - node.nodes = parseMediaFeature(node.value, node.sourceIndex); - } - result.push(Array.isArray(node.nodes) ? new _Container2.default(node) : new _Node2.default(node)); - node = resetNode(); - insideSomeValue = false; - } - } - - // Now process the result array - to specify undefined types of the nodes - // and specify the `after` prop - for (var _i = 0; _i < result.length; _i++) { - node = result[_i]; - if (_i > 0) { - result[_i - 1].after = node.before; - } - - // Node types. Might not be set because contains interpolation/function - // calls or fully consists of them - if (node.type === undefined) { - if (_i > 0) { - // only `and` can follow an expression - if (result[_i - 1].type === 'media-feature-expression') { - node.type = 'keyword'; - continue; - } - // Anything after 'only|not' is a media type - if (result[_i - 1].value === 'not' || result[_i - 1].value === 'only') { - node.type = 'media-type'; - continue; - } - // Anything after 'and' is an expression - if (result[_i - 1].value === 'and') { - node.type = 'media-feature-expression'; - continue; - } - - if (result[_i - 1].type === 'media-type') { - // if it is the last element - it might be an expression - // or 'and' depending on what is after it - if (!result[_i + 1]) { - node.type = 'media-feature-expression'; - } else { - node.type = result[_i + 1].type === 'media-feature-expression' ? 'keyword' : 'media-feature-expression'; - } - } - } - - if (_i === 0) { - // `screen`, `fn( ... )`, `#{ ... }`. Not an expression, since then - // its type would have been set by now - if (!result[_i + 1]) { - node.type = 'media-type'; - continue; - } - - // `screen and` or `#{...} (max-width: 10px)` - if (result[_i + 1] && (result[_i + 1].type === 'media-feature-expression' || result[_i + 1].type === 'keyword')) { - node.type = 'media-type'; - continue; - } - if (result[_i + 2]) { - // `screen and (color) ...` - if (result[_i + 2].type === 'media-feature-expression') { - node.type = 'media-type'; - result[_i + 1].type = 'keyword'; - continue; - } - // `only screen and ...` - if (result[_i + 2].type === 'keyword') { - node.type = 'keyword'; - result[_i + 1].type = 'media-type'; - continue; - } - } - if (result[_i + 3]) { - // `screen and (color) ...` - if (result[_i + 3].type === 'media-feature-expression') { - node.type = 'keyword'; - result[_i + 1].type = 'media-type'; - result[_i + 2].type = 'keyword'; - continue; - } - } - } - } - } - return result; -} - -/** - * Parses a media query list. Takes a possible `url()` at the start into - * account, and divides the list into media queries that are parsed separately - * - * @param {string} string - the source media query list string - * - * @return {Array} an array of Nodes/Containers - */ - -function parseMediaList(string) { - var result = []; - var interimIndex = 0; - var levelLocal = 0; - - // Check for a `url(...)` part (if it is contents of an @import rule) - var doesHaveUrl = /^(\s*)url\s*\(/.exec(string); - if (doesHaveUrl !== null) { - var i = doesHaveUrl[0].length; - var parenthesesLv = 1; - while (parenthesesLv > 0) { - var character = string[i]; - if (character === '(') { - parenthesesLv++; - } - if (character === ')') { - parenthesesLv--; - } - i++; - } - result.unshift(new _Node2.default({ - type: 'url', - value: string.substring(0, i).trim(), - sourceIndex: doesHaveUrl[1].length, - before: doesHaveUrl[1], - after: /^(\s*)/.exec(string.substring(i))[1] - })); - interimIndex = i; - } - - // Start processing the media query list - for (var _i2 = interimIndex; _i2 < string.length; _i2++) { - var _character = string[_i2]; - - // Dividing the media query list into comma-separated media queries - // Only count commas that are outside of any parens - // (i.e., not part of function call params list, etc.) - if (_character === '(') { - levelLocal++; - } - if (_character === ')') { - levelLocal--; - } - if (levelLocal === 0 && _character === ',') { - var _mediaQueryString = string.substring(interimIndex, _i2); - var _spaceBefore = /^(\s*)/.exec(_mediaQueryString)[1]; - result.push(new _Container2.default({ - type: 'media-query', - value: _mediaQueryString.trim(), - sourceIndex: interimIndex + _spaceBefore.length, - nodes: parseMediaQuery(_mediaQueryString, interimIndex), - before: _spaceBefore, - after: /(\s*)$/.exec(_mediaQueryString)[1] - })); - interimIndex = _i2 + 1; - } - } - - var mediaQueryString = string.substring(interimIndex); - var spaceBefore = /^(\s*)/.exec(mediaQueryString)[1]; - result.push(new _Container2.default({ - type: 'media-query', - value: mediaQueryString.trim(), - sourceIndex: interimIndex + spaceBefore.length, - nodes: parseMediaQuery(mediaQueryString, interimIndex), - before: spaceBefore, - after: /(\s*)$/.exec(mediaQueryString)[1] - })); - - return result; -} - -/***/ }), -/* 120 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _container = __webpack_require__(13); - -var _container2 = _interopRequireDefault(_container); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var NestedDeclaration = function (_Container) { - _inherits(NestedDeclaration, _Container); - - function NestedDeclaration(defaults) { - _classCallCheck(this, NestedDeclaration); - - var _this = _possibleConstructorReturn(this, _Container.call(this, defaults)); - - _this.type = 'decl'; - _this.isNested = true; - if (!_this.nodes) _this.nodes = []; - return _this; - } - - return NestedDeclaration; -}(_container2.default); - -exports.default = NestedDeclaration; -module.exports = exports['default']; - - - -/***/ }), -/* 121 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -exports.default = scssParse; - -var _input = __webpack_require__(18); - -var _input2 = _interopRequireDefault(_input); - -var _scssParser = __webpack_require__(122); - -var _scssParser2 = _interopRequireDefault(_scssParser); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function scssParse(scss, opts) { - var input = new _input2.default(scss, opts); - - var parser = new _scssParser2.default(input); - parser.parse(); - - return parser.root; -} -module.exports = exports['default']; - - - -/***/ }), -/* 122 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _comment = __webpack_require__(17); - -var _comment2 = _interopRequireDefault(_comment); - -var _parser = __webpack_require__(41); - -var _parser2 = _interopRequireDefault(_parser); - -var _nestedDeclaration = __webpack_require__(120); - -var _nestedDeclaration2 = _interopRequireDefault(_nestedDeclaration); - -var _scssTokenize = __webpack_require__(125); - -var _scssTokenize2 = _interopRequireDefault(_scssTokenize); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var ScssParser = function (_Parser) { - _inherits(ScssParser, _Parser); - - function ScssParser() { - _classCallCheck(this, ScssParser); - - return _possibleConstructorReturn(this, _Parser.apply(this, arguments)); - } - - ScssParser.prototype.createTokenizer = function createTokenizer() { - this.tokenizer = (0, _scssTokenize2.default)(this.input); - }; - - ScssParser.prototype.rule = function rule(tokens) { - var withColon = false; - var brackets = 0; - var value = ''; - for (var _iterator = tokens, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var i = _ref; - - if (withColon) { - if (i[0] !== 'comment' && i[0] !== '{') { - value += i[1]; - } - } else if (i[0] === 'space' && i[1].indexOf('\n') !== -1) { - break; - } else if (i[0] === '(') { - brackets += 1; - } else if (i[0] === ')') { - brackets -= 1; - } else if (brackets === 0 && i[0] === ':') { - withColon = true; - } - } - - if (!withColon || value.trim() === '' || /^[a-zA-Z-:#]/.test(value)) { - _Parser.prototype.rule.call(this, tokens); - } else { - - tokens.pop(); - var node = new _nestedDeclaration2.default(); - this.init(node); - - var last = tokens[tokens.length - 1]; - if (last[4]) { - node.source.end = { line: last[4], column: last[5] }; - } else { - node.source.end = { line: last[2], column: last[3] }; - } - - while (tokens[0][0] !== 'word') { - node.raws.before += tokens.shift()[1]; - } - node.source.start = { line: tokens[0][2], column: tokens[0][3] }; - - node.prop = ''; - while (tokens.length) { - var type = tokens[0][0]; - if (type === ':' || type === 'space' || type === 'comment') { - break; - } - node.prop += tokens.shift()[1]; - } - - node.raws.between = ''; - - var token = void 0; - while (tokens.length) { - token = tokens.shift(); - - if (token[0] === ':') { - node.raws.between += token[1]; - break; - } else { - node.raws.between += token[1]; - } - } - - if (node.prop[0] === '_' || node.prop[0] === '*') { - node.raws.before += node.prop[0]; - node.prop = node.prop.slice(1); - } - node.raws.between += this.spacesAndCommentsFromStart(tokens); - this.precheckMissedSemicolon(tokens); - - for (var _i2 = tokens.length - 1; _i2 > 0; _i2--) { - token = tokens[_i2]; - if (token[1] === '!important') { - node.important = true; - var string = this.stringFrom(tokens, _i2); - string = this.spacesFromEnd(tokens) + string; - if (string !== ' !important') { - node.raws.important = string; - } - break; - } else if (token[1] === 'important') { - var cache = tokens.slice(0); - var str = ''; - for (var j = _i2; j > 0; j--) { - var _type = cache[j][0]; - if (str.trim().indexOf('!') === 0 && _type !== 'space') { - break; - } - str = cache.pop()[1] + str; - } - if (str.trim().indexOf('!') === 0) { - node.important = true; - node.raws.important = str; - tokens = cache; - } - } - - if (token[0] !== 'space' && token[0] !== 'comment') { - break; - } - } - - this.raw(node, 'value', tokens); - - if (node.value.indexOf(':') !== -1) { - this.checkMissedSemicolon(tokens); - } - - this.current = node; - } - }; - - ScssParser.prototype.comment = function comment(token) { - if (token[6] === 'inline') { - var node = new _comment2.default(); - this.init(node, token[2], token[3]); - node.raws.inline = true; - node.source.end = { line: token[4], column: token[5] }; - - var text = token[1].slice(2); - if (/^\s*$/.test(text)) { - node.text = ''; - node.raws.left = text; - node.raws.right = ''; - } else { - var match = text.match(/^(\s*)([^]*[^\s])(\s*)$/); - var fixed = match[2].replace(/(\*\/|\/\*)/g, '*//*'); - node.text = fixed; - node.raws.left = match[1]; - node.raws.right = match[3]; - node.raws.text = match[2]; - } - } else { - _Parser.prototype.comment.call(this, token); - } - }; - - return ScssParser; -}(_parser2.default); - -exports.default = ScssParser; -module.exports = exports['default']; - - - -/***/ }), -/* 123 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _stringifier = __webpack_require__(21); - -var _stringifier2 = _interopRequireDefault(_stringifier); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var ScssStringifier = function (_Stringifier) { - _inherits(ScssStringifier, _Stringifier); - - function ScssStringifier() { - _classCallCheck(this, ScssStringifier); - - return _possibleConstructorReturn(this, _Stringifier.apply(this, arguments)); - } - - ScssStringifier.prototype.comment = function comment(node) { - var left = this.raw(node, 'left', 'commentLeft'); - var right = this.raw(node, 'right', 'commentRight'); - - if (node.raws.inline) { - var text = node.raws.text || node.text; - this.builder('//' + left + text + right, node); - } else { - this.builder('/*' + left + node.text + right + '*/', node); - } - }; - - ScssStringifier.prototype.decl = function decl(node, semicolon) { - if (!node.isNested) { - _Stringifier.prototype.decl.call(this, node, semicolon); - } else { - - var between = this.raw(node, 'between', 'colon'); - var string = node.prop + between + this.rawValue(node, 'value'); - if (node.important) { - string += node.raws.important || ' !important'; - } - - this.builder(string + '{', node, 'start'); - - var after = void 0; - if (node.nodes && node.nodes.length) { - this.body(node); - after = this.raw(node, 'after'); - } else { - after = this.raw(node, 'after', 'emptyBody'); - } - if (after) this.builder(after); - this.builder('}', node, 'end'); - } - }; - - return ScssStringifier; -}(_stringifier2.default); - -exports.default = ScssStringifier; -module.exports = exports['default']; - - - -/***/ }), -/* 124 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -exports.default = scssStringify; - -var _scssStringifier = __webpack_require__(123); - -var _scssStringifier2 = _interopRequireDefault(_scssStringifier); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function scssStringify(node, builder) { - var str = new _scssStringifier2.default(builder); - str.stringify(node); -} -module.exports = exports['default']; - - - -/***/ }), -/* 125 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -exports.default = scssTokenize; -var SINGLE_QUOTE = 39; -var DOUBLE_QUOTE = 34; -var BACKSLASH = 92; -var SLASH = 47; -var NEWLINE = 10; -var SPACE = 32; -var FEED = 12; -var TAB = 9; -var CR = 13; -var OPEN_SQUARE = 91; -var CLOSE_SQUARE = 93; -var OPEN_PARENTHESES = 40; -var CLOSE_PARENTHESES = 41; -var OPEN_CURLY = 123; -var CLOSE_CURLY = 125; -var SEMICOLON = 59; -var ASTERISK = 42; -var COLON = 58; -var AT = 64; - -// SCSS PATCH { -var COMMA = 44; -var HASH = 35; -// } SCSS PATCH - -var RE_AT_END = /[ \n\t\r\f\{\(\)'"\\;/\[\]#]/g; -var RE_WORD_END = /[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g; -var RE_BAD_BRACKET = /.[\\\/\("'\n]/; -var RE_HEX_ESCAPE = /[a-f0-9]/i; - -var RE_NEW_LINE = /[\r\f\n]/g; // SCSS PATCH - -// SCSS PATCH function name was changed -function scssTokenize(input) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - var css = input.css.valueOf(); - var ignore = options.ignoreErrors; - - var code = void 0, - next = void 0, - quote = void 0, - lines = void 0, - last = void 0, - content = void 0, - escape = void 0, - nextLine = void 0, - nextOffset = void 0, - escaped = void 0, - escapePos = void 0, - prev = void 0, - n = void 0, - currentToken = void 0; - - var brackets = void 0; // SCSS PATCH - - var length = css.length; - var offset = -1; - var line = 1; - var pos = 0; - var buffer = []; - var returned = []; - - function unclosed(what) { - throw input.error('Unclosed ' + what, line, pos - offset); - } - - function endOfFile() { - return returned.length === 0 && pos >= length; - } - - function nextToken() { - if (returned.length) return returned.pop(); - if (pos >= length) return; - - code = css.charCodeAt(pos); - if (code === NEWLINE || code === FEED || code === CR && css.charCodeAt(pos + 1) !== NEWLINE) { - offset = pos; - line += 1; - } - - switch (code) { - case NEWLINE: - case SPACE: - case TAB: - case CR: - case FEED: - next = pos; - do { - next += 1; - code = css.charCodeAt(next); - if (code === NEWLINE) { - offset = next; - line += 1; - } - } while (code === SPACE || code === NEWLINE || code === TAB || code === CR || code === FEED); - - currentToken = ['space', css.slice(pos, next)]; - pos = next - 1; - break; - - case OPEN_SQUARE: - currentToken = ['[', '[', line, pos - offset]; - break; - - case CLOSE_SQUARE: - currentToken = [']', ']', line, pos - offset]; - break; - - case OPEN_CURLY: - currentToken = ['{', '{', line, pos - offset]; - break; - - case CLOSE_CURLY: - currentToken = ['}', '}', line, pos - offset]; - break; - - // SCSS PATCH { - case COMMA: - currentToken = ['word', ',', line, pos - offset, line, pos - offset + 1]; - break; - // } SCSS PATCH - - case COLON: - currentToken = [':', ':', line, pos - offset]; - break; - - case SEMICOLON: - currentToken = [';', ';', line, pos - offset]; - break; - - case OPEN_PARENTHESES: - prev = buffer.length ? buffer.pop()[1] : ''; - n = css.charCodeAt(pos + 1); - if (prev === 'url' && n !== SINGLE_QUOTE && n !== DOUBLE_QUOTE && n !== SPACE && n !== NEWLINE && n !== TAB && n !== FEED && n !== CR) { - // SCSS PATCH { - brackets = 1; - escaped = false; - next = pos + 1; - while (next <= css.length - 1) { - n = css.charCodeAt(next); - if (n === BACKSLASH) { - escaped = !escaped; - } else if (n === OPEN_PARENTHESES) { - brackets += 1; - } else if (n === CLOSE_PARENTHESES) { - brackets -= 1; - if (brackets === 0) break; - } - next += 1; - } - - content = css.slice(pos, next + 1); - lines = content.split('\n'); - last = lines.length - 1; - - if (last > 0) { - nextLine = line + last; - nextOffset = next - lines[last].length; - } else { - nextLine = line; - nextOffset = offset; - } - - currentToken = ['brackets', content, line, pos - offset, nextLine, next - nextOffset]; - - offset = nextOffset; - line = nextLine; - pos = next; - // } SCSS PATCH - } else { - next = css.indexOf(')', pos + 1); - content = css.slice(pos, next + 1); - - if (next === -1 || RE_BAD_BRACKET.test(content)) { - currentToken = ['(', '(', line, pos - offset]; - } else { - currentToken = ['brackets', content, line, pos - offset, line, next - offset]; - pos = next; - } - } - - break; - - case CLOSE_PARENTHESES: - currentToken = [')', ')', line, pos - offset]; - break; - - case SINGLE_QUOTE: - case DOUBLE_QUOTE: - quote = code === SINGLE_QUOTE ? '\'' : '"'; - next = pos; - do { - escaped = false; - next = css.indexOf(quote, next + 1); - if (next === -1) { - if (ignore) { - next = pos + 1; - break; - } else { - unclosed('string'); - } - } - escapePos = next; - while (css.charCodeAt(escapePos - 1) === BACKSLASH) { - escapePos -= 1; - escaped = !escaped; - } - } while (escaped); - - content = css.slice(pos, next + 1); - lines = content.split('\n'); - last = lines.length - 1; - - if (last > 0) { - nextLine = line + last; - nextOffset = next - lines[last].length; - } else { - nextLine = line; - nextOffset = offset; - } - - currentToken = ['string', css.slice(pos, next + 1), line, pos - offset, nextLine, next - nextOffset]; - - offset = nextOffset; - line = nextLine; - pos = next; - break; - - case AT: - RE_AT_END.lastIndex = pos + 1; - RE_AT_END.test(css); - if (RE_AT_END.lastIndex === 0) { - next = css.length - 1; - } else { - next = RE_AT_END.lastIndex - 2; - } - - currentToken = ['at-word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]; - - pos = next; - break; - - case BACKSLASH: - next = pos; - escape = true; - while (css.charCodeAt(next + 1) === BACKSLASH) { - next += 1; - escape = !escape; - } - code = css.charCodeAt(next + 1); - if (escape && code !== SLASH && code !== SPACE && code !== NEWLINE && code !== TAB && code !== CR && code !== FEED) { - next += 1; - if (RE_HEX_ESCAPE.test(css.charAt(next))) { - while (RE_HEX_ESCAPE.test(css.charAt(next + 1))) { - next += 1; - } - if (css.charCodeAt(next + 1) === SPACE) { - next += 1; - } - } - } - - currentToken = ['word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]; - - pos = next; - break; - - default: - // SCSS PATCH { - n = css.charCodeAt(pos + 1); - - if (code === HASH && n === OPEN_CURLY) { - var deep = 1; - next = pos; - while (deep > 0) { - next += 1; - if (css.length <= next) unclosed('interpolation'); - - code = css.charCodeAt(next); - n = css.charCodeAt(next + 1); - - if (code === CLOSE_CURLY) { - deep -= 1; - } else if (code === HASH && n === OPEN_CURLY) { - deep += 1; - } - } - - content = css.slice(pos, next + 1); - lines = content.split('\n'); - last = lines.length - 1; - - if (last > 0) { - nextLine = line + last; - nextOffset = next - lines[last].length; - } else { - nextLine = line; - nextOffset = offset; - } - - currentToken = ['word', content, line, pos - offset, nextLine, next - nextOffset]; - - offset = nextOffset; - line = nextLine; - pos = next; - } else if (code === SLASH && n === ASTERISK) { - // } SCSS PATCH - next = css.indexOf('*/', pos + 2) + 1; - if (next === 0) { - if (ignore) { - next = css.length; - } else { - unclosed('comment'); - } - } - - content = css.slice(pos, next + 1); - lines = content.split('\n'); - last = lines.length - 1; - - if (last > 0) { - nextLine = line + last; - nextOffset = next - lines[last].length; - } else { - nextLine = line; - nextOffset = offset; - } - - currentToken = ['comment', content, line, pos - offset, nextLine, next - nextOffset]; - - offset = nextOffset; - line = nextLine; - pos = next; - - // SCSS PATCH { - } else if (code === SLASH && n === SLASH) { - RE_NEW_LINE.lastIndex = pos + 1; - RE_NEW_LINE.test(css); - if (RE_NEW_LINE.lastIndex === 0) { - next = css.length - 1; - } else { - next = RE_NEW_LINE.lastIndex - 2; - } - - content = css.slice(pos, next + 1); - - currentToken = ['comment', content, line, pos - offset, line, next - offset, 'inline']; - - pos = next; - // } SCSS PATCH - } else { - RE_WORD_END.lastIndex = pos + 1; - RE_WORD_END.test(css); - if (RE_WORD_END.lastIndex === 0) { - next = css.length - 1; - } else { - next = RE_WORD_END.lastIndex - 2; - } - - currentToken = ['word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]; - - buffer.push(currentToken); - - pos = next; - } - - break; - } - - pos++; - return currentToken; - } - - function back(token) { - returned.push(token); - } - - return { - back: back, - nextToken: nextToken, - endOfFile: endOfFile - }; -} -module.exports = exports['default']; - - - -/***/ }), -/* 126 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -/** - * Contains helpers for safely splitting lists of CSS values, - * preserving parentheses and quotes. - * - * @example - * const list = postcss.list; - * - * @namespace list - */ -var list = { - split: function split(string, separators, last) { - var array = []; - var current = ''; - var split = false; - - var func = 0; - var quote = false; - var escape = false; - - for (var i = 0; i < string.length; i++) { - var letter = string[i]; - - if (quote) { - if (escape) { - escape = false; - } else if (letter === '\\') { - escape = true; - } else if (letter === quote) { - quote = false; - } - } else if (letter === '"' || letter === '\'') { - quote = letter; - } else if (letter === '(') { - func += 1; - } else if (letter === ')') { - if (func > 0) func -= 1; - } else if (func === 0) { - if (separators.indexOf(letter) !== -1) split = true; - } - - if (split) { - if (current !== '') array.push(current.trim()); - current = ''; - split = false; - } else { - current += letter; - } - } - - if (last || current !== '') array.push(current.trim()); - return array; - }, - - - /** - * Safely splits space-separated values (such as those for `background`, - * `border-radius`, and other shorthand properties). - * - * @param {string} string - space-separated values - * - * @return {string[]} split values - * - * @example - * postcss.list.space('1px calc(10% + 1px)') //=> ['1px', 'calc(10% + 1px)'] - */ - space: function space(string) { - var spaces = [' ', '\n', '\t']; - return list.split(string, spaces); - }, - - - /** - * Safely splits comma-separated values (such as those for `transition-*` - * and `background` properties). - * - * @param {string} string - comma-separated values - * - * @return {string[]} split values - * - * @example - * postcss.list.comma('black, linear-gradient(white, black)') - * //=> ['black', 'linear-gradient(white, black)'] - */ - comma: function comma(string) { - var comma = ','; - return list.split(string, [comma], true); - } -}; - -exports.default = list; -module.exports = exports['default']; - - - -/***/ }), -/* 127 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(Buffer) { - -exports.__esModule = true; - -var _sourceMap = __webpack_require__(48); - -var _sourceMap2 = _interopRequireDefault(_sourceMap); - -var _path = __webpack_require__(5); - -var _path2 = _interopRequireDefault(_path); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var MapGenerator = function () { - function MapGenerator(stringify, root, opts) { - _classCallCheck(this, MapGenerator); - - this.stringify = stringify; - this.mapOpts = opts.map || {}; - this.root = root; - this.opts = opts; - } - - MapGenerator.prototype.isMap = function isMap() { - if (typeof this.opts.map !== 'undefined') { - return !!this.opts.map; - } else { - return this.previous().length > 0; - } - }; - - MapGenerator.prototype.previous = function previous() { - var _this = this; - - if (!this.previousMaps) { - this.previousMaps = []; - this.root.walk(function (node) { - if (node.source && node.source.input.map) { - var map = node.source.input.map; - if (_this.previousMaps.indexOf(map) === -1) { - _this.previousMaps.push(map); - } - } - }); - } - - return this.previousMaps; - }; - - MapGenerator.prototype.isInline = function isInline() { - if (typeof this.mapOpts.inline !== 'undefined') { - return this.mapOpts.inline; - } - - var annotation = this.mapOpts.annotation; - if (typeof annotation !== 'undefined' && annotation !== true) { - return false; - } - - if (this.previous().length) { - return this.previous().some(function (i) { - return i.inline; - }); - } else { - return true; - } - }; - - MapGenerator.prototype.isSourcesContent = function isSourcesContent() { - if (typeof this.mapOpts.sourcesContent !== 'undefined') { - return this.mapOpts.sourcesContent; - } - if (this.previous().length) { - return this.previous().some(function (i) { - return i.withContent(); - }); - } else { - return true; - } - }; - - MapGenerator.prototype.clearAnnotation = function clearAnnotation() { - if (this.mapOpts.annotation === false) return; - - var node = void 0; - for (var i = this.root.nodes.length - 1; i >= 0; i--) { - node = this.root.nodes[i]; - if (node.type !== 'comment') continue; - if (node.text.indexOf('# sourceMappingURL=') === 0) { - this.root.removeChild(i); - } - } - }; - - MapGenerator.prototype.setSourcesContent = function setSourcesContent() { - var _this2 = this; - - var already = {}; - this.root.walk(function (node) { - if (node.source) { - var from = node.source.input.from; - if (from && !already[from]) { - already[from] = true; - var relative = _this2.relative(from); - _this2.map.setSourceContent(relative, node.source.input.css); - } - } - }); - }; - - MapGenerator.prototype.applyPrevMaps = function applyPrevMaps() { - for (var _iterator = this.previous(), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var prev = _ref; - - var from = this.relative(prev.file); - var root = prev.root || _path2.default.dirname(prev.file); - var map = void 0; - - if (this.mapOpts.sourcesContent === false) { - map = new _sourceMap2.default.SourceMapConsumer(prev.text); - if (map.sourcesContent) { - map.sourcesContent = map.sourcesContent.map(function () { - return null; - }); - } - } else { - map = prev.consumer(); - } - - this.map.applySourceMap(map, from, this.relative(root)); - } - }; - - MapGenerator.prototype.isAnnotation = function isAnnotation() { - if (this.isInline()) { - return true; - } else if (typeof this.mapOpts.annotation !== 'undefined') { - return this.mapOpts.annotation; - } else if (this.previous().length) { - return this.previous().some(function (i) { - return i.annotation; - }); - } else { - return true; - } - }; - - MapGenerator.prototype.toBase64 = function toBase64(str) { - if (Buffer) { - if (Buffer.from && Buffer.from !== Uint8Array.from) { - return Buffer.from(str).toString('base64'); - } else { - return new Buffer(str).toString('base64'); - } - } else { - return window.btoa(unescape(encodeURIComponent(str))); - } - }; - - MapGenerator.prototype.addAnnotation = function addAnnotation() { - var content = void 0; - - if (this.isInline()) { - - content = 'data:application/json;base64,' + this.toBase64(this.map.toString()); - } else if (typeof this.mapOpts.annotation === 'string') { - content = this.mapOpts.annotation; - } else { - content = this.outputFile() + '.map'; - } - - var eol = '\n'; - if (this.css.indexOf('\r\n') !== -1) eol = '\r\n'; - - this.css += eol + '/*# sourceMappingURL=' + content + ' */'; - }; - - MapGenerator.prototype.outputFile = function outputFile() { - if (this.opts.to) { - return this.relative(this.opts.to); - } else if (this.opts.from) { - return this.relative(this.opts.from); - } else { - return 'to.css'; - } - }; - - MapGenerator.prototype.generateMap = function generateMap() { - this.generateString(); - if (this.isSourcesContent()) this.setSourcesContent(); - if (this.previous().length > 0) this.applyPrevMaps(); - if (this.isAnnotation()) this.addAnnotation(); - - if (this.isInline()) { - return [this.css]; - } else { - return [this.css, this.map]; - } - }; - - MapGenerator.prototype.relative = function relative(file) { - if (file.indexOf('<') === 0) return file; - if (/^\w+:\/\//.test(file)) return file; - - var from = this.opts.to ? _path2.default.dirname(this.opts.to) : '.'; - - if (typeof this.mapOpts.annotation === 'string') { - from = _path2.default.dirname(_path2.default.resolve(from, this.mapOpts.annotation)); - } - - file = _path2.default.relative(from, file); - if (_path2.default.sep === '\\') { - return file.replace(/\\/g, '/'); - } else { - return file; - } - }; - - MapGenerator.prototype.sourcePath = function sourcePath(node) { - if (this.mapOpts.from) { - return this.mapOpts.from; - } else { - return this.relative(node.source.input.from); - } - }; - - MapGenerator.prototype.generateString = function generateString() { - var _this3 = this; - - this.css = ''; - this.map = new _sourceMap2.default.SourceMapGenerator({ file: this.outputFile() }); - - var line = 1; - var column = 1; - - var lines = void 0, - last = void 0; - this.stringify(this.root, function (str, node, type) { - _this3.css += str; - - if (node && type !== 'end') { - if (node.source && node.source.start) { - _this3.map.addMapping({ - source: _this3.sourcePath(node), - generated: { line: line, column: column - 1 }, - original: { - line: node.source.start.line, - column: node.source.start.column - 1 - } - }); - } else { - _this3.map.addMapping({ - source: '', - original: { line: 1, column: 0 }, - generated: { line: line, column: column - 1 } - }); - } - } - - lines = str.match(/\n/g); - if (lines) { - line += lines.length; - last = str.lastIndexOf('\n'); - column = str.length - last; - } else { - column += str.length; - } - - if (node && type !== 'start') { - if (node.source && node.source.end) { - _this3.map.addMapping({ - source: _this3.sourcePath(node), - generated: { line: line, column: column - 1 }, - original: { - line: node.source.end.line, - column: node.source.end.column - } - }); - } else { - _this3.map.addMapping({ - source: '', - original: { line: 1, column: 0 }, - generated: { line: line, column: column - 1 } - }); - } - } - }); - }; - - MapGenerator.prototype.generate = function generate() { - this.clearAnnotation(); - - if (this.isMap()) { - return this.generateMap(); - } else { - var result = ''; - this.stringify(this.root, function (i) { - result += i; - }); - return [result]; - } - }; - - return MapGenerator; -}(); - -exports.default = MapGenerator; -module.exports = exports['default']; - - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(15).Buffer)); - -/***/ }), -/* 128 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(Buffer) { - -exports.__esModule = true; - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _sourceMap = __webpack_require__(48); - -var _sourceMap2 = _interopRequireDefault(_sourceMap); - -var _path = __webpack_require__(5); - -var _path2 = _interopRequireDefault(_path); - -var _fs = __webpack_require__(172); - -var _fs2 = _interopRequireDefault(_fs); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function fromBase64(str) { - if (Buffer) { - if (Buffer.from && Buffer.from !== Uint8Array.from) { - return Buffer.from(str, 'base64').toString(); - } else { - return new Buffer(str, 'base64').toString(); - } - } else { - return window.atob(str); - } -} - -/** - * Source map information from input CSS. - * For example, source map after Sass compiler. - * - * This class will automatically find source map in input CSS or in file system - * near input file (according `from` option). - * - * @example - * const root = postcss.parse(css, { from: 'a.sass.css' }); - * root.input.map //=> PreviousMap - */ - -var PreviousMap = function () { - - /** - * @param {string} css - input CSS source - * @param {processOptions} [opts] - {@link Processor#process} options - */ - function PreviousMap(css, opts) { - _classCallCheck(this, PreviousMap); - - this.loadAnnotation(css); - /** - * @member {boolean} - Was source map inlined by data-uri to input CSS. - */ - this.inline = this.startWith(this.annotation, 'data:'); - - var prev = opts.map ? opts.map.prev : undefined; - var text = this.loadMap(opts.from, prev); - if (text) this.text = text; - } - - /** - * Create a instance of `SourceMapGenerator` class - * from the `source-map` library to work with source map information. - * - * It is lazy method, so it will create object only on first call - * and then it will use cache. - * - * @return {SourceMapGenerator} object with source map information - */ - - - PreviousMap.prototype.consumer = function consumer() { - if (!this.consumerCache) { - this.consumerCache = new _sourceMap2.default.SourceMapConsumer(this.text); - } - return this.consumerCache; - }; - - /** - * Does source map contains `sourcesContent` with input source text. - * - * @return {boolean} Is `sourcesContent` present - */ - - - PreviousMap.prototype.withContent = function withContent() { - return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0); - }; - - PreviousMap.prototype.startWith = function startWith(string, start) { - if (!string) return false; - return string.substr(0, start.length) === start; - }; - - PreviousMap.prototype.loadAnnotation = function loadAnnotation(css) { - var match = css.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//); - if (match) this.annotation = match[1].trim(); - }; - - PreviousMap.prototype.decodeInline = function decodeInline(text) { - // data:application/json;charset=utf-8;base64, - // data:application/json;charset=utf8;base64, - // data:application/json;base64, - var baseUri = /^data:application\/json;(?:charset=utf-?8;)?base64,/; - var uri = 'data:application/json,'; - - if (this.startWith(text, uri)) { - return decodeURIComponent(text.substr(uri.length)); - } else if (baseUri.test(text)) { - return fromBase64(text.substr(RegExp.lastMatch.length)); - } else { - var encoding = text.match(/data:application\/json;([^,]+),/)[1]; - throw new Error('Unsupported source map encoding ' + encoding); - } - }; - - PreviousMap.prototype.loadMap = function loadMap(file, prev) { - if (prev === false) return false; - - if (prev) { - if (typeof prev === 'string') { - return prev; - } else if (typeof prev === 'function') { - var prevPath = prev(file); - if (prevPath && _fs2.default.existsSync && _fs2.default.existsSync(prevPath)) { - return _fs2.default.readFileSync(prevPath, 'utf-8').toString().trim(); - } else { - throw new Error('Unable to load previous source map: ' + prevPath.toString()); - } - } else if (prev instanceof _sourceMap2.default.SourceMapConsumer) { - return _sourceMap2.default.SourceMapGenerator.fromSourceMap(prev).toString(); - } else if (prev instanceof _sourceMap2.default.SourceMapGenerator) { - return prev.toString(); - } else if (this.isMap(prev)) { - return JSON.stringify(prev); - } else { - throw new Error('Unsupported previous source map format: ' + prev.toString()); - } - } else if (this.inline) { - return this.decodeInline(this.annotation); - } else if (this.annotation) { - var map = this.annotation; - if (file) map = _path2.default.join(_path2.default.dirname(file), map); - - this.root = _path2.default.dirname(map); - if (_fs2.default.existsSync && _fs2.default.existsSync(map)) { - return _fs2.default.readFileSync(map, 'utf-8').toString().trim(); - } else { - return false; - } - } - }; - - PreviousMap.prototype.isMap = function isMap(map) { - if ((typeof map === 'undefined' ? 'undefined' : _typeof(map)) !== 'object') return false; - return typeof map.mappings === 'string' || typeof map._mappings === 'string'; - }; - - return PreviousMap; -}(); - -exports.default = PreviousMap; -module.exports = exports['default']; - - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(15).Buffer)); - -/***/ }), -/* 129 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _lazyResult = __webpack_require__(39); - -var _lazyResult2 = _interopRequireDefault(_lazyResult); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * Contains plugins to process CSS. Create one `Processor` instance, - * initialize its plugins, and then use that instance on numerous CSS files. - * - * @example - * const processor = postcss([autoprefixer, precss]); - * processor.process(css1).then(result => console.log(result.css)); - * processor.process(css2).then(result => console.log(result.css)); - */ -var Processor = function () { - - /** - * @param {Array.|Processor} plugins - PostCSS - * plugins. See {@link Processor#use} for plugin format. - */ - function Processor() { - var plugins = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - - _classCallCheck(this, Processor); - - /** - * @member {string} - Current PostCSS version. - * - * @example - * if ( result.processor.version.split('.')[0] !== '6' ) { - * throw new Error('This plugin works only with PostCSS 6'); - * } - */ - this.version = '6.0.14'; - /** - * @member {pluginFunction[]} - Plugins added to this processor. - * - * @example - * const processor = postcss([autoprefixer, precss]); - * processor.plugins.length //=> 2 - */ - this.plugins = this.normalize(plugins); - } - - /** - * Adds a plugin to be used as a CSS processor. - * - * PostCSS plugin can be in 4 formats: - * * A plugin created by {@link postcss.plugin} method. - * * A function. PostCSS will pass the function a @{link Root} - * as the first argument and current {@link Result} instance - * as the second. - * * An object with a `postcss` method. PostCSS will use that method - * as described in #2. - * * Another {@link Processor} instance. PostCSS will copy plugins - * from that instance into this one. - * - * Plugins can also be added by passing them as arguments when creating - * a `postcss` instance (see [`postcss(plugins)`]). - * - * Asynchronous plugins should return a `Promise` instance. - * - * @param {Plugin|pluginFunction|Processor} plugin - PostCSS plugin - * or {@link Processor} - * with plugins - * - * @example - * const processor = postcss() - * .use(autoprefixer) - * .use(precss); - * - * @return {Processes} current processor to make methods chain - */ - - - Processor.prototype.use = function use(plugin) { - this.plugins = this.plugins.concat(this.normalize([plugin])); - return this; - }; - - /** - * Parses source CSS and returns a {@link LazyResult} Promise proxy. - * Because some plugins can be asynchronous it doesn’t make - * any transformations. Transformations will be applied - * in the {@link LazyResult} methods. - * - * @param {string|toString|Result} css - String with input CSS or - * any object with a `toString()` - * method, like a Buffer. - * Optionally, send a {@link Result} - * instance and the processor will - * take the {@link Root} from it. - * @param {processOptions} [opts] - options - * - * @return {LazyResult} Promise proxy - * - * @example - * processor.process(css, { from: 'a.css', to: 'a.out.css' }) - * .then(result => { - * console.log(result.css); - * }); - */ - - - Processor.prototype.process = function process(css) { - var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - return new _lazyResult2.default(this, css, opts); - }; - - Processor.prototype.normalize = function normalize(plugins) { - var normalized = []; - for (var _iterator = plugins, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var i = _ref; - - if (i.postcss) i = i.postcss; - - if ((typeof i === 'undefined' ? 'undefined' : _typeof(i)) === 'object' && Array.isArray(i.plugins)) { - normalized = normalized.concat(i.plugins); - } else if (typeof i === 'function') { - normalized.push(i); - } else if ((typeof i === 'undefined' ? 'undefined' : _typeof(i)) === 'object' && (i.parse || i.stringify)) { - throw new Error('PostCSS syntaxes cannot be used as plugins. ' + 'Instead, please use one of the ' + 'syntax/parser/stringifier options as ' + 'outlined in your PostCSS ' + 'runner documentation.'); - } else { - throw new Error(i + ' is not a PostCSS plugin'); - } - } - return normalized; - }; - - return Processor; -}(); - -exports.default = Processor; - -/** - * @callback builder - * @param {string} part - part of generated CSS connected to this node - * @param {Node} node - AST node - * @param {"start"|"end"} [type] - node’s part type - */ - -/** - * @callback parser - * - * @param {string|toString} css - string with input CSS or any object - * with toString() method, like a Buffer - * @param {processOptions} [opts] - options with only `from` and `map` keys - * - * @return {Root} PostCSS AST - */ - -/** - * @callback stringifier - * - * @param {Node} node - start node for stringifing. Usually {@link Root}. - * @param {builder} builder - function to concatenate CSS from node’s parts - * or generate string and source map - * - * @return {void} - */ - -/** - * @typedef {object} syntax - * @property {parser} parse - function to generate AST by string - * @property {stringifier} stringify - function to generate string by AST - */ - -/** - * @typedef {object} toString - * @property {function} toString - */ - -/** - * @callback pluginFunction - * @param {Root} root - parsed input CSS - * @param {Result} result - result to set warnings or check other plugins - */ - -/** - * @typedef {object} Plugin - * @property {function} postcss - PostCSS plugin function - */ - -/** - * @typedef {object} processOptions - * @property {string} from - the path of the CSS source file. - * You should always set `from`, - * because it is used in source map - * generation and syntax error messages. - * @property {string} to - the path where you’ll put the output - * CSS file. You should always set `to` - * to generate correct source maps. - * @property {parser} parser - function to generate AST by string - * @property {stringifier} stringifier - class to generate string by AST - * @property {syntax} syntax - object with `parse` and `stringify` - * @property {object} map - source map options - * @property {boolean} map.inline - does source map should - * be embedded in the output - * CSS as a base64-encoded - * comment - * @property {string|object|false|function} map.prev - source map content - * from a previous - * processing step - * (for example, Sass). - * PostCSS will try to find - * previous map - * automatically, so you - * could disable it by - * `false` value. - * @property {boolean} map.sourcesContent - does PostCSS should set - * the origin content to map - * @property {string|false} map.annotation - does PostCSS should set - * annotation comment to map - * @property {string} map.from - override `from` in map’s - * `sources` - */ - -module.exports = exports['default']; - - - -/***/ }), -/* 130 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _warning = __webpack_require__(133); - -var _warning2 = _interopRequireDefault(_warning); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * Provides the result of the PostCSS transformations. - * - * A Result instance is returned by {@link LazyResult#then} - * or {@link Root#toResult} methods. - * - * @example - * postcss([cssnext]).process(css).then(function (result) { - * console.log(result.css); - * }); - * - * @example - * var result2 = postcss.parse(css).toResult(); - */ -var Result = function () { - - /** - * @param {Processor} processor - processor used for this transformation. - * @param {Root} root - Root node after all transformations. - * @param {processOptions} opts - options from the {@link Processor#process} - * or {@link Root#toResult} - */ - function Result(processor, root, opts) { - _classCallCheck(this, Result); - - /** - * @member {Processor} - The Processor instance used - * for this transformation. - * - * @example - * for ( let plugin of result.processor.plugins) { - * if ( plugin.postcssPlugin === 'postcss-bad' ) { - * throw 'postcss-good is incompatible with postcss-bad'; - * } - * }); - */ - this.processor = processor; - /** - * @member {Message[]} - Contains messages from plugins - * (e.g., warnings or custom messages). - * Each message should have type - * and plugin properties. - * - * @example - * postcss.plugin('postcss-min-browser', () => { - * return (root, result) => { - * var browsers = detectMinBrowsersByCanIUse(root); - * result.messages.push({ - * type: 'min-browser', - * plugin: 'postcss-min-browser', - * browsers: browsers - * }); - * }; - * }); - */ - this.messages = []; - /** - * @member {Root} - Root node after all transformations. - * - * @example - * root.toResult().root == root; - */ - this.root = root; - /** - * @member {processOptions} - Options from the {@link Processor#process} - * or {@link Root#toResult} call - * that produced this Result instance. - * - * @example - * root.toResult(opts).opts == opts; - */ - this.opts = opts; - /** - * @member {string} - A CSS string representing of {@link Result#root}. - * - * @example - * postcss.parse('a{}').toResult().css //=> "a{}" - */ - this.css = undefined; - /** - * @member {SourceMapGenerator} - An instance of `SourceMapGenerator` - * class from the `source-map` library, - * representing changes - * to the {@link Result#root} instance. - * - * @example - * result.map.toJSON() //=> { version: 3, file: 'a.css', … } - * - * @example - * if ( result.map ) { - * fs.writeFileSync(result.opts.to + '.map', result.map.toString()); - * } - */ - this.map = undefined; - } - - /** - * Returns for @{link Result#css} content. - * - * @example - * result + '' === result.css - * - * @return {string} string representing of {@link Result#root} - */ - - - Result.prototype.toString = function toString() { - return this.css; - }; - - /** - * Creates an instance of {@link Warning} and adds it - * to {@link Result#messages}. - * - * @param {string} text - warning message - * @param {Object} [opts] - warning options - * @param {Node} opts.node - CSS node that caused the warning - * @param {string} opts.word - word in CSS source that caused the warning - * @param {number} opts.index - index in CSS node string that caused - * the warning - * @param {string} opts.plugin - name of the plugin that created - * this warning. {@link Result#warn} fills - * this property automatically. - * - * @return {Warning} created warning - */ - - - Result.prototype.warn = function warn(text) { - var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - if (!opts.plugin) { - if (this.lastPlugin && this.lastPlugin.postcssPlugin) { - opts.plugin = this.lastPlugin.postcssPlugin; - } - } - - var warning = new _warning2.default(text, opts); - this.messages.push(warning); - - return warning; - }; - - /** - * Returns warnings from plugins. Filters {@link Warning} instances - * from {@link Result#messages}. - * - * @example - * result.warnings().forEach(warn => { - * console.warn(warn.toString()); - * }); - * - * @return {Warning[]} warnings from plugins - */ - - - Result.prototype.warnings = function warnings() { - return this.messages.filter(function (i) { - return i.type === 'warning'; - }); - }; - - /** - * An alias for the {@link Result#css} property. - * Use it with syntaxes that generate non-CSS output. - * @type {string} - * - * @example - * result.css === result.content; - */ - - - _createClass(Result, [{ - key: 'content', - get: function get() { - return this.css; - } - }]); - - return Result; -}(); - -exports.default = Result; - -/** - * @typedef {object} Message - * @property {string} type - message type - * @property {string} plugin - source PostCSS plugin name - */ - -module.exports = exports['default']; - - - -/***/ }), -/* 131 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _chalk = __webpack_require__(85); - -var _chalk2 = _interopRequireDefault(_chalk); - -var _tokenize = __webpack_require__(44); - -var _tokenize2 = _interopRequireDefault(_tokenize); - -var _input = __webpack_require__(18); - -var _input2 = _interopRequireDefault(_input); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var HIGHLIGHT_THEME = { - 'brackets': _chalk2.default.cyan, - 'at-word': _chalk2.default.cyan, - 'call': _chalk2.default.cyan, - 'comment': _chalk2.default.gray, - 'string': _chalk2.default.green, - 'class': _chalk2.default.yellow, - 'hash': _chalk2.default.magenta, - '(': _chalk2.default.cyan, - ')': _chalk2.default.cyan, - '{': _chalk2.default.yellow, - '}': _chalk2.default.yellow, - '[': _chalk2.default.yellow, - ']': _chalk2.default.yellow, - ':': _chalk2.default.yellow, - ';': _chalk2.default.yellow -}; - -function getTokenType(_ref, processor) { - var type = _ref[0], - value = _ref[1]; - - if (type === 'word') { - if (value[0] === '.') { - return 'class'; - } - if (value[0] === '#') { - return 'hash'; - } - } - - if (!processor.endOfFile()) { - var next = processor.nextToken(); - processor.back(next); - if (next[0] === 'brackets' || next[0] === '(') return 'call'; - } - - return type; -} - -function terminalHighlight(css) { - var processor = (0, _tokenize2.default)(new _input2.default(css), { ignoreErrors: true }); - var result = ''; - - var _loop = function _loop() { - var token = processor.nextToken(); - var color = HIGHLIGHT_THEME[getTokenType(token, processor)]; - if (color) { - result += token[1].split(/\r?\n/).map(function (i) { - return color(i); - }).join('\n'); - } else { - result += token[1]; - } - }; - - while (!processor.endOfFile()) { - _loop(); - } - return result; -} - -exports.default = terminalHighlight; -module.exports = exports['default']; - - - -/***/ }), -/* 132 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -exports.default = warnOnce; -var printed = {}; - -function warnOnce(message) { - if (printed[message]) return; - printed[message] = true; - - if (typeof console !== 'undefined' && console.warn) console.warn(message); -} -module.exports = exports['default']; - - - -/***/ }), -/* 133 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * Represents a plugin’s warning. It can be created using {@link Node#warn}. - * - * @example - * if ( decl.important ) { - * decl.warn(result, 'Avoid !important', { word: '!important' }); - * } - */ -var Warning = function () { - - /** - * @param {string} text - warning message - * @param {Object} [opts] - warning options - * @param {Node} opts.node - CSS node that caused the warning - * @param {string} opts.word - word in CSS source that caused the warning - * @param {number} opts.index - index in CSS node string that caused - * the warning - * @param {string} opts.plugin - name of the plugin that created - * this warning. {@link Result#warn} fills - * this property automatically. - */ - function Warning(text) { - var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - _classCallCheck(this, Warning); - - /** - * @member {string} - Type to filter warnings from - * {@link Result#messages}. Always equal - * to `"warning"`. - * - * @example - * const nonWarning = result.messages.filter(i => i.type !== 'warning') - */ - this.type = 'warning'; - /** - * @member {string} - The warning message. - * - * @example - * warning.text //=> 'Try to avoid !important' - */ - this.text = text; - - if (opts.node && opts.node.source) { - var pos = opts.node.positionBy(opts); - /** - * @member {number} - Line in the input file - * with this warning’s source - * - * @example - * warning.line //=> 5 - */ - this.line = pos.line; - /** - * @member {number} - Column in the input file - * with this warning’s source. - * - * @example - * warning.column //=> 6 - */ - this.column = pos.column; - } - - for (var opt in opts) { - this[opt] = opts[opt]; - } - } - - /** - * Returns a warning position and message. - * - * @example - * warning.toString() //=> 'postcss-lint:a.css:10:14: Avoid !important' - * - * @return {string} warning position and message - */ - - - Warning.prototype.toString = function toString() { - if (this.node) { - return this.node.error(this.text, { - plugin: this.plugin, - index: this.index, - word: this.word - }).message; - } else if (this.plugin) { - return this.plugin + ': ' + this.text; - } else { - return this.text; - } - }; - - /** - * @memberof Warning# - * @member {string} plugin - The name of the plugin that created - * it will fill this property automatically. - * this warning. When you call {@link Node#warn} - * - * @example - * warning.plugin //=> 'postcss-important' - */ - - /** - * @memberof Warning# - * @member {Node} node - Contains the CSS node that caused the warning. - * - * @example - * warning.node.toString() //=> 'color: white !important' - */ - - return Warning; -}(); - -exports.default = Warning; -module.exports = exports['default']; - - - -/***/ }), -/* 134 */ -/***/ (function(module, exports) { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -var intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split(''); - -/** - * Encode an integer in the range of 0 to 63 to a single base 64 digit. - */ -exports.encode = function (number) { - if (0 <= number && number < intToCharMap.length) { - return intToCharMap[number]; - } - throw new TypeError("Must be between 0 and 63: " + number); -}; - -/** - * Decode a single base 64 character code digit to an integer. Returns -1 on - * failure. - */ -exports.decode = function (charCode) { - var bigA = 65; // 'A' - var bigZ = 90; // 'Z' - - var littleA = 97; // 'a' - var littleZ = 122; // 'z' - - var zero = 48; // '0' - var nine = 57; // '9' - - var plus = 43; // '+' - var slash = 47; // '/' - - var littleOffset = 26; - var numberOffset = 52; - - // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ - if (bigA <= charCode && charCode <= bigZ) { - return (charCode - bigA); - } - - // 26 - 51: abcdefghijklmnopqrstuvwxyz - if (littleA <= charCode && charCode <= littleZ) { - return (charCode - littleA + littleOffset); - } - - // 52 - 61: 0123456789 - if (zero <= charCode && charCode <= nine) { - return (charCode - zero + numberOffset); - } - - // 62: + - if (charCode == plus) { - return 62; - } - - // 63: / - if (charCode == slash) { - return 63; - } - - // Invalid base64 digit. - return -1; -}; - - -/***/ }), -/* 135 */ -/***/ (function(module, exports) { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -exports.GREATEST_LOWER_BOUND = 1; -exports.LEAST_UPPER_BOUND = 2; - -/** - * Recursive implementation of binary search. - * - * @param aLow Indices here and lower do not contain the needle. - * @param aHigh Indices here and higher do not contain the needle. - * @param aNeedle The element being searched for. - * @param aHaystack The non-empty array being searched. - * @param aCompare Function which takes two elements and returns -1, 0, or 1. - * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or - * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - */ -function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) { - // This function terminates when one of the following is true: - // - // 1. We find the exact element we are looking for. - // - // 2. We did not find the exact element, but we can return the index of - // the next-closest element. - // - // 3. We did not find the exact element, and there is no next-closest - // element than the one we are searching for, so we return -1. - var mid = Math.floor((aHigh - aLow) / 2) + aLow; - var cmp = aCompare(aNeedle, aHaystack[mid], true); - if (cmp === 0) { - // Found the element we are looking for. - return mid; - } - else if (cmp > 0) { - // Our needle is greater than aHaystack[mid]. - if (aHigh - mid > 1) { - // The element is in the upper half. - return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias); - } - - // The exact needle element was not found in this haystack. Determine if - // we are in termination case (3) or (2) and return the appropriate thing. - if (aBias == exports.LEAST_UPPER_BOUND) { - return aHigh < aHaystack.length ? aHigh : -1; - } else { - return mid; - } - } - else { - // Our needle is less than aHaystack[mid]. - if (mid - aLow > 1) { - // The element is in the lower half. - return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias); - } - - // we are in termination case (3) or (2) and return the appropriate thing. - if (aBias == exports.LEAST_UPPER_BOUND) { - return mid; - } else { - return aLow < 0 ? -1 : aLow; - } - } -} - -/** - * This is an implementation of binary search which will always try and return - * the index of the closest element if there is no exact hit. This is because - * mappings between original and generated line/col pairs are single points, - * and there is an implicit region between each of them, so a miss just means - * that you aren't on the very start of a region. - * - * @param aNeedle The element you are looking for. - * @param aHaystack The array that is being searched. - * @param aCompare A function which takes the needle and an element in the - * array and returns -1, 0, or 1 depending on whether the needle is less - * than, equal to, or greater than the element, respectively. - * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or - * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'. - */ -exports.search = function search(aNeedle, aHaystack, aCompare, aBias) { - if (aHaystack.length === 0) { - return -1; - } - - var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, - aCompare, aBias || exports.GREATEST_LOWER_BOUND); - if (index < 0) { - return -1; - } - - // We have found either the exact element, or the next-closest element than - // the one we are searching for. However, there may be more than one such - // element. Make sure we always return the smallest of these. - while (index - 1 >= 0) { - if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) { - break; - } - --index; - } - - return index; -}; - - -/***/ }), -/* 136 */ -/***/ (function(module, exports, __webpack_require__) { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2014 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -var util = __webpack_require__(8); - -/** - * Determine whether mappingB is after mappingA with respect to generated - * position. - */ -function generatedPositionAfter(mappingA, mappingB) { - // Optimized for most common case - var lineA = mappingA.generatedLine; - var lineB = mappingB.generatedLine; - var columnA = mappingA.generatedColumn; - var columnB = mappingB.generatedColumn; - return lineB > lineA || lineB == lineA && columnB >= columnA || - util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0; -} - -/** - * A data structure to provide a sorted view of accumulated mappings in a - * performance conscious manner. It trades a neglibable overhead in general - * case for a large speedup in case of mappings being added in order. - */ -function MappingList() { - this._array = []; - this._sorted = true; - // Serves as infimum - this._last = {generatedLine: -1, generatedColumn: 0}; -} - -/** - * Iterate through internal items. This method takes the same arguments that - * `Array.prototype.forEach` takes. - * - * NOTE: The order of the mappings is NOT guaranteed. - */ -MappingList.prototype.unsortedForEach = - function MappingList_forEach(aCallback, aThisArg) { - this._array.forEach(aCallback, aThisArg); - }; - -/** - * Add the given source mapping. - * - * @param Object aMapping - */ -MappingList.prototype.add = function MappingList_add(aMapping) { - if (generatedPositionAfter(this._last, aMapping)) { - this._last = aMapping; - this._array.push(aMapping); - } else { - this._sorted = false; - this._array.push(aMapping); - } -}; - -/** - * Returns the flat, sorted array of mappings. The mappings are sorted by - * generated position. - * - * WARNING: This method returns internal data without copying, for - * performance. The return value must NOT be mutated, and should be treated as - * an immutable borrow. If you want to take ownership, you must make your own - * copy. - */ -MappingList.prototype.toArray = function MappingList_toArray() { - if (!this._sorted) { - this._array.sort(util.compareByGeneratedPositionsInflated); - this._sorted = true; - } - return this._array; -}; - -exports.MappingList = MappingList; - - -/***/ }), -/* 137 */ -/***/ (function(module, exports) { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -// It turns out that some (most?) JavaScript engines don't self-host -// `Array.prototype.sort`. This makes sense because C++ will likely remain -// faster than JS when doing raw CPU-intensive sorting. However, when using a -// custom comparator function, calling back and forth between the VM's C++ and -// JIT'd JS is rather slow *and* loses JIT type information, resulting in -// worse generated code for the comparator function than would be optimal. In -// fact, when sorting with a comparator, these costs outweigh the benefits of -// sorting in C++. By using our own JS-implemented Quick Sort (below), we get -// a ~3500ms mean speed-up in `bench/bench.html`. - -/** - * Swap the elements indexed by `x` and `y` in the array `ary`. - * - * @param {Array} ary - * The array. - * @param {Number} x - * The index of the first item. - * @param {Number} y - * The index of the second item. - */ -function swap(ary, x, y) { - var temp = ary[x]; - ary[x] = ary[y]; - ary[y] = temp; -} - -/** - * Returns a random integer within the range `low .. high` inclusive. - * - * @param {Number} low - * The lower bound on the range. - * @param {Number} high - * The upper bound on the range. - */ -function randomIntInRange(low, high) { - return Math.round(low + (Math.random() * (high - low))); -} - -/** - * The Quick Sort algorithm. - * - * @param {Array} ary - * An array to sort. - * @param {function} comparator - * Function to use to compare two items. - * @param {Number} p - * Start index of the array - * @param {Number} r - * End index of the array - */ -function doQuickSort(ary, comparator, p, r) { - // If our lower bound is less than our upper bound, we (1) partition the - // array into two pieces and (2) recurse on each half. If it is not, this is - // the empty array and our base case. - - if (p < r) { - // (1) Partitioning. - // - // The partitioning chooses a pivot between `p` and `r` and moves all - // elements that are less than or equal to the pivot to the before it, and - // all the elements that are greater than it after it. The effect is that - // once partition is done, the pivot is in the exact place it will be when - // the array is put in sorted order, and it will not need to be moved - // again. This runs in O(n) time. - - // Always choose a random pivot so that an input array which is reverse - // sorted does not cause O(n^2) running time. - var pivotIndex = randomIntInRange(p, r); - var i = p - 1; - - swap(ary, pivotIndex, r); - var pivot = ary[r]; - - // Immediately after `j` is incremented in this loop, the following hold - // true: - // - // * Every element in `ary[p .. i]` is less than or equal to the pivot. - // - // * Every element in `ary[i+1 .. j-1]` is greater than the pivot. - for (var j = p; j < r; j++) { - if (comparator(ary[j], pivot) <= 0) { - i += 1; - swap(ary, i, j); - } - } - - swap(ary, i + 1, j); - var q = i + 1; - - // (2) Recurse on each half. - - doQuickSort(ary, comparator, p, q - 1); - doQuickSort(ary, comparator, q + 1, r); - } -} - -/** - * Sort the given array in-place with the given comparator function. - * - * @param {Array} ary - * An array to sort. - * @param {function} comparator - * Function to use to compare two items. - */ -exports.quickSort = function (ary, comparator) { - doQuickSort(ary, comparator, 0, ary.length - 1); -}; - - -/***/ }), -/* 138 */ -/***/ (function(module, exports, __webpack_require__) { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -var util = __webpack_require__(8); -var binarySearch = __webpack_require__(135); -var ArraySet = __webpack_require__(45).ArraySet; -var base64VLQ = __webpack_require__(46); -var quickSort = __webpack_require__(137).quickSort; - -function SourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap); - } - - return sourceMap.sections != null - ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) - : new BasicSourceMapConsumer(sourceMap, aSourceMapURL); -} - -SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) { - return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL); -}; - -/** - * The version of the source mapping spec that we are consuming. - */ -SourceMapConsumer.prototype._version = 3; - -// `__generatedMappings` and `__originalMappings` are arrays that hold the -// parsed mapping coordinates from the source map's "mappings" attribute. They -// are lazily instantiated, accessed via the `_generatedMappings` and -// `_originalMappings` getters respectively, and we only parse the mappings -// and create these arrays once queried for a source location. We jump through -// these hoops because there can be many thousands of mappings, and parsing -// them is expensive, so we only want to do it if we must. -// -// Each object in the arrays is of the form: -// -// { -// generatedLine: The line number in the generated code, -// generatedColumn: The column number in the generated code, -// source: The path to the original source file that generated this -// chunk of code, -// originalLine: The line number in the original source that -// corresponds to this chunk of generated code, -// originalColumn: The column number in the original source that -// corresponds to this chunk of generated code, -// name: The name of the original symbol which generated this chunk of -// code. -// } -// -// All properties except for `generatedLine` and `generatedColumn` can be -// `null`. -// -// `_generatedMappings` is ordered by the generated positions. -// -// `_originalMappings` is ordered by the original positions. - -SourceMapConsumer.prototype.__generatedMappings = null; -Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', { - configurable: true, - enumerable: true, - get: function () { - if (!this.__generatedMappings) { - this._parseMappings(this._mappings, this.sourceRoot); - } - - return this.__generatedMappings; - } -}); - -SourceMapConsumer.prototype.__originalMappings = null; -Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', { - configurable: true, - enumerable: true, - get: function () { - if (!this.__originalMappings) { - this._parseMappings(this._mappings, this.sourceRoot); - } - - return this.__originalMappings; - } -}); - -SourceMapConsumer.prototype._charIsMappingSeparator = - function SourceMapConsumer_charIsMappingSeparator(aStr, index) { - var c = aStr.charAt(index); - return c === ";" || c === ","; - }; - -/** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). - */ -SourceMapConsumer.prototype._parseMappings = - function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { - throw new Error("Subclasses must implement _parseMappings"); - }; - -SourceMapConsumer.GENERATED_ORDER = 1; -SourceMapConsumer.ORIGINAL_ORDER = 2; - -SourceMapConsumer.GREATEST_LOWER_BOUND = 1; -SourceMapConsumer.LEAST_UPPER_BOUND = 2; - -/** - * Iterate over each mapping between an original source/line/column and a - * generated line/column in this source map. - * - * @param Function aCallback - * The function that is called with each mapping. - * @param Object aContext - * Optional. If specified, this object will be the value of `this` every - * time that `aCallback` is called. - * @param aOrder - * Either `SourceMapConsumer.GENERATED_ORDER` or - * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to - * iterate over the mappings sorted by the generated file's line/column - * order or the original's source/line/column order, respectively. Defaults to - * `SourceMapConsumer.GENERATED_ORDER`. - */ -SourceMapConsumer.prototype.eachMapping = - function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) { - var context = aContext || null; - var order = aOrder || SourceMapConsumer.GENERATED_ORDER; - - var mappings; - switch (order) { - case SourceMapConsumer.GENERATED_ORDER: - mappings = this._generatedMappings; - break; - case SourceMapConsumer.ORIGINAL_ORDER: - mappings = this._originalMappings; - break; - default: - throw new Error("Unknown order of iteration."); - } - - var sourceRoot = this.sourceRoot; - mappings.map(function (mapping) { - var source = mapping.source === null ? null : this._sources.at(mapping.source); - source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL); - return { - source: source, - generatedLine: mapping.generatedLine, - generatedColumn: mapping.generatedColumn, - originalLine: mapping.originalLine, - originalColumn: mapping.originalColumn, - name: mapping.name === null ? null : this._names.at(mapping.name) - }; - }, this).forEach(aCallback, context); - }; - -/** - * Returns all generated line and column information for the original source, - * line, and column provided. If no column is provided, returns all mappings - * corresponding to a either the line we are searching for or the next - * closest line that has any mappings. Otherwise, returns all mappings - * corresponding to the given line and either the column we are searching for - * or the next closest column that has any offsets. - * - * The only argument is an object with the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. The line number is 1-based. - * - column: Optional. the column number in the original source. - * The column number is 0-based. - * - * and an array of objects is returned, each with the following properties: - * - * - line: The line number in the generated source, or null. The - * line number is 1-based. - * - column: The column number in the generated source, or null. - * The column number is 0-based. - */ -SourceMapConsumer.prototype.allGeneratedPositionsFor = - function SourceMapConsumer_allGeneratedPositionsFor(aArgs) { - var line = util.getArg(aArgs, 'line'); - - // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping - // returns the index of the closest mapping less than the needle. By - // setting needle.originalColumn to 0, we thus find the last mapping for - // the given line, provided such a mapping exists. - var needle = { - source: util.getArg(aArgs, 'source'), - originalLine: line, - originalColumn: util.getArg(aArgs, 'column', 0) - }; - - needle.source = this._findSourceIndex(needle.source); - if (needle.source < 0) { - return []; - } - - var mappings = []; - - var index = this._findMapping(needle, - this._originalMappings, - "originalLine", - "originalColumn", - util.compareByOriginalPositions, - binarySearch.LEAST_UPPER_BOUND); - if (index >= 0) { - var mapping = this._originalMappings[index]; - - if (aArgs.column === undefined) { - var originalLine = mapping.originalLine; - - // Iterate until either we run out of mappings, or we run into - // a mapping for a different line than the one we found. Since - // mappings are sorted, this is guaranteed to find all mappings for - // the line we found. - while (mapping && mapping.originalLine === originalLine) { - mappings.push({ - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }); - - mapping = this._originalMappings[++index]; - } - } else { - var originalColumn = mapping.originalColumn; - - // Iterate until either we run out of mappings, or we run into - // a mapping for a different line than the one we were searching for. - // Since mappings are sorted, this is guaranteed to find all mappings for - // the line we are searching for. - while (mapping && - mapping.originalLine === line && - mapping.originalColumn == originalColumn) { - mappings.push({ - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }); - - mapping = this._originalMappings[++index]; - } - } - } - - return mappings; - }; - -exports.SourceMapConsumer = SourceMapConsumer; - -/** - * A BasicSourceMapConsumer instance represents a parsed source map which we can - * query for information about the original file positions by giving it a file - * position in the generated source. - * - * The first parameter is the raw source map (either as a JSON string, or - * already parsed to an object). According to the spec, source maps have the - * following attributes: - * - * - version: Which version of the source map spec this map is following. - * - sources: An array of URLs to the original source files. - * - names: An array of identifiers which can be referrenced by individual mappings. - * - sourceRoot: Optional. The URL root from which all sources are relative. - * - sourcesContent: Optional. An array of contents of the original source files. - * - mappings: A string of base64 VLQs which contain the actual mappings. - * - file: Optional. The generated file this source map is associated with. - * - * Here is an example source map, taken from the source map spec[0]: - * - * { - * version : 3, - * file: "out.js", - * sourceRoot : "", - * sources: ["foo.js", "bar.js"], - * names: ["src", "maps", "are", "fun"], - * mappings: "AA,AB;;ABCDE;" - * } - * - * The second parameter, if given, is a string whose value is the URL - * at which the source map was found. This URL is used to compute the - * sources array. - * - * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1# - */ -function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap); - } - - var version = util.getArg(sourceMap, 'version'); - var sources = util.getArg(sourceMap, 'sources'); - // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which - // requires the array) to play nice here. - var names = util.getArg(sourceMap, 'names', []); - var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null); - var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null); - var mappings = util.getArg(sourceMap, 'mappings'); - var file = util.getArg(sourceMap, 'file', null); - - // Once again, Sass deviates from the spec and supplies the version as a - // string rather than a number, so we use loose equality checking here. - if (version != this._version) { - throw new Error('Unsupported version: ' + version); - } - - if (sourceRoot) { - sourceRoot = util.normalize(sourceRoot); - } - - sources = sources - .map(String) - // Some source maps produce relative source paths like "./foo.js" instead of - // "foo.js". Normalize these first so that future comparisons will succeed. - // See bugzil.la/1090768. - .map(util.normalize) - // Always ensure that absolute sources are internally stored relative to - // the source root, if the source root is absolute. Not doing this would - // be particularly problematic when the source root is a prefix of the - // source (valid, but why??). See github issue #199 and bugzil.la/1188982. - .map(function (source) { - return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) - ? util.relative(sourceRoot, source) - : source; - }); - - // Pass `true` below to allow duplicate names and sources. While source maps - // are intended to be compressed and deduplicated, the TypeScript compiler - // sometimes generates source maps with duplicates in them. See Github issue - // #72 and bugzil.la/889492. - this._names = ArraySet.fromArray(names.map(String), true); - this._sources = ArraySet.fromArray(sources, true); - - this._absoluteSources = this._sources.toArray().map(function (s) { - return util.computeSourceURL(sourceRoot, s, aSourceMapURL); - }); - - this.sourceRoot = sourceRoot; - this.sourcesContent = sourcesContent; - this._mappings = mappings; - this._sourceMapURL = aSourceMapURL; - this.file = file; -} - -BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); -BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer; - -/** - * Utility function to find the index of a source. Returns -1 if not - * found. - */ -BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) { - var relativeSource = aSource; - if (this.sourceRoot != null) { - relativeSource = util.relative(this.sourceRoot, relativeSource); - } - - if (this._sources.has(relativeSource)) { - return this._sources.indexOf(relativeSource); - } - - // Maybe aSource is an absolute URL as returned by |sources|. In - // this case we can't simply undo the transform. - var i; - for (i = 0; i < this._absoluteSources.length; ++i) { - if (this._absoluteSources[i] == aSource) { - return i; - } - } - - return -1; -}; - -/** - * Create a BasicSourceMapConsumer from a SourceMapGenerator. - * - * @param SourceMapGenerator aSourceMap - * The source map that will be consumed. - * @param String aSourceMapURL - * The URL at which the source map can be found (optional) - * @returns BasicSourceMapConsumer - */ -BasicSourceMapConsumer.fromSourceMap = - function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) { - var smc = Object.create(BasicSourceMapConsumer.prototype); - - var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true); - var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true); - smc.sourceRoot = aSourceMap._sourceRoot; - smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(), - smc.sourceRoot); - smc.file = aSourceMap._file; - smc._sourceMapURL = aSourceMapURL; - smc._absoluteSources = smc._sources.toArray().map(function (s) { - return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL); - }); - - // Because we are modifying the entries (by converting string sources and - // names to indices into the sources and names ArraySets), we have to make - // a copy of the entry or else bad things happen. Shared mutable state - // strikes again! See github issue #191. - - var generatedMappings = aSourceMap._mappings.toArray().slice(); - var destGeneratedMappings = smc.__generatedMappings = []; - var destOriginalMappings = smc.__originalMappings = []; - - for (var i = 0, length = generatedMappings.length; i < length; i++) { - var srcMapping = generatedMappings[i]; - var destMapping = new Mapping; - destMapping.generatedLine = srcMapping.generatedLine; - destMapping.generatedColumn = srcMapping.generatedColumn; - - if (srcMapping.source) { - destMapping.source = sources.indexOf(srcMapping.source); - destMapping.originalLine = srcMapping.originalLine; - destMapping.originalColumn = srcMapping.originalColumn; - - if (srcMapping.name) { - destMapping.name = names.indexOf(srcMapping.name); - } - - destOriginalMappings.push(destMapping); - } - - destGeneratedMappings.push(destMapping); - } - - quickSort(smc.__originalMappings, util.compareByOriginalPositions); - - return smc; - }; - -/** - * The version of the source mapping spec that we are consuming. - */ -BasicSourceMapConsumer.prototype._version = 3; - -/** - * The list of original sources. - */ -Object.defineProperty(BasicSourceMapConsumer.prototype, 'sources', { - get: function () { - return this._absoluteSources.slice(); - } -}); - -/** - * Provide the JIT with a nice shape / hidden class. - */ -function Mapping() { - this.generatedLine = 0; - this.generatedColumn = 0; - this.source = null; - this.originalLine = null; - this.originalColumn = null; - this.name = null; -} - -/** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). - */ -BasicSourceMapConsumer.prototype._parseMappings = - function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { - var generatedLine = 1; - var previousGeneratedColumn = 0; - var previousOriginalLine = 0; - var previousOriginalColumn = 0; - var previousSource = 0; - var previousName = 0; - var length = aStr.length; - var index = 0; - var cachedSegments = {}; - var temp = {}; - var originalMappings = []; - var generatedMappings = []; - var mapping, str, segment, end, value; - - while (index < length) { - if (aStr.charAt(index) === ';') { - generatedLine++; - index++; - previousGeneratedColumn = 0; - } - else if (aStr.charAt(index) === ',') { - index++; - } - else { - mapping = new Mapping(); - mapping.generatedLine = generatedLine; - - // Because each offset is encoded relative to the previous one, - // many segments often have the same encoding. We can exploit this - // fact by caching the parsed variable length fields of each segment, - // allowing us to avoid a second parse if we encounter the same - // segment again. - for (end = index; end < length; end++) { - if (this._charIsMappingSeparator(aStr, end)) { - break; - } - } - str = aStr.slice(index, end); - - segment = cachedSegments[str]; - if (segment) { - index += str.length; - } else { - segment = []; - while (index < end) { - base64VLQ.decode(aStr, index, temp); - value = temp.value; - index = temp.rest; - segment.push(value); - } - - if (segment.length === 2) { - throw new Error('Found a source, but no line and column'); - } - - if (segment.length === 3) { - throw new Error('Found a source and line, but no column'); - } - - cachedSegments[str] = segment; - } - - // Generated column. - mapping.generatedColumn = previousGeneratedColumn + segment[0]; - previousGeneratedColumn = mapping.generatedColumn; - - if (segment.length > 1) { - // Original source. - mapping.source = previousSource + segment[1]; - previousSource += segment[1]; - - // Original line. - mapping.originalLine = previousOriginalLine + segment[2]; - previousOriginalLine = mapping.originalLine; - // Lines are stored 0-based - mapping.originalLine += 1; - - // Original column. - mapping.originalColumn = previousOriginalColumn + segment[3]; - previousOriginalColumn = mapping.originalColumn; - - if (segment.length > 4) { - // Original name. - mapping.name = previousName + segment[4]; - previousName += segment[4]; - } - } - - generatedMappings.push(mapping); - if (typeof mapping.originalLine === 'number') { - originalMappings.push(mapping); - } - } - } - - quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated); - this.__generatedMappings = generatedMappings; - - quickSort(originalMappings, util.compareByOriginalPositions); - this.__originalMappings = originalMappings; - }; - -/** - * Find the mapping that best matches the hypothetical "needle" mapping that - * we are searching for in the given "haystack" of mappings. - */ -BasicSourceMapConsumer.prototype._findMapping = - function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, - aColumnName, aComparator, aBias) { - // To return the position we are searching for, we must first find the - // mapping for the given position and then return the opposite position it - // points to. Because the mappings are sorted, we can use binary search to - // find the best mapping. - - if (aNeedle[aLineName] <= 0) { - throw new TypeError('Line must be greater than or equal to 1, got ' - + aNeedle[aLineName]); - } - if (aNeedle[aColumnName] < 0) { - throw new TypeError('Column must be greater than or equal to 0, got ' - + aNeedle[aColumnName]); - } - - return binarySearch.search(aNeedle, aMappings, aComparator, aBias); - }; - -/** - * Compute the last column for each generated mapping. The last column is - * inclusive. - */ -BasicSourceMapConsumer.prototype.computeColumnSpans = - function SourceMapConsumer_computeColumnSpans() { - for (var index = 0; index < this._generatedMappings.length; ++index) { - var mapping = this._generatedMappings[index]; - - // Mappings do not contain a field for the last generated columnt. We - // can come up with an optimistic estimate, however, by assuming that - // mappings are contiguous (i.e. given two consecutive mappings, the - // first mapping ends where the second one starts). - if (index + 1 < this._generatedMappings.length) { - var nextMapping = this._generatedMappings[index + 1]; - - if (mapping.generatedLine === nextMapping.generatedLine) { - mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1; - continue; - } - } - - // The last mapping for each line spans the entire line. - mapping.lastGeneratedColumn = Infinity; - } - }; - -/** - * Returns the original source, line, and column information for the generated - * source's line and column positions provided. The only argument is an object - * with the following properties: - * - * - line: The line number in the generated source. The line number - * is 1-based. - * - column: The column number in the generated source. The column - * number is 0-based. - * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or - * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. - * - * and an object is returned with the following properties: - * - * - source: The original source file, or null. - * - line: The line number in the original source, or null. The - * line number is 1-based. - * - column: The column number in the original source, or null. The - * column number is 0-based. - * - name: The original identifier, or null. - */ -BasicSourceMapConsumer.prototype.originalPositionFor = - function SourceMapConsumer_originalPositionFor(aArgs) { - var needle = { - generatedLine: util.getArg(aArgs, 'line'), - generatedColumn: util.getArg(aArgs, 'column') - }; - - var index = this._findMapping( - needle, - this._generatedMappings, - "generatedLine", - "generatedColumn", - util.compareByGeneratedPositionsDeflated, - util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) - ); - - if (index >= 0) { - var mapping = this._generatedMappings[index]; - - if (mapping.generatedLine === needle.generatedLine) { - var source = util.getArg(mapping, 'source', null); - if (source !== null) { - source = this._sources.at(source); - source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL); - } - var name = util.getArg(mapping, 'name', null); - if (name !== null) { - name = this._names.at(name); - } - return { - source: source, - line: util.getArg(mapping, 'originalLine', null), - column: util.getArg(mapping, 'originalColumn', null), - name: name - }; - } - } - - return { - source: null, - line: null, - column: null, - name: null - }; - }; - -/** - * Return true if we have the source content for every source in the source - * map, false otherwise. - */ -BasicSourceMapConsumer.prototype.hasContentsOfAllSources = - function BasicSourceMapConsumer_hasContentsOfAllSources() { - if (!this.sourcesContent) { - return false; - } - return this.sourcesContent.length >= this._sources.size() && - !this.sourcesContent.some(function (sc) { return sc == null; }); - }; - -/** - * Returns the original source content. The only argument is the url of the - * original source file. Returns null if no original source content is - * available. - */ -BasicSourceMapConsumer.prototype.sourceContentFor = - function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { - if (!this.sourcesContent) { - return null; - } - - var index = this._findSourceIndex(aSource); - if (index >= 0) { - return this.sourcesContent[index]; - } - - var relativeSource = aSource; - if (this.sourceRoot != null) { - relativeSource = util.relative(this.sourceRoot, relativeSource); - } - - var url; - if (this.sourceRoot != null - && (url = util.urlParse(this.sourceRoot))) { - // XXX: file:// URIs and absolute paths lead to unexpected behavior for - // many users. We can help them out when they expect file:// URIs to - // behave like it would if they were running a local HTTP server. See - // https://bugzilla.mozilla.org/show_bug.cgi?id=885597. - var fileUriAbsPath = relativeSource.replace(/^file:\/\//, ""); - if (url.scheme == "file" - && this._sources.has(fileUriAbsPath)) { - return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)] - } - - if ((!url.path || url.path == "/") - && this._sources.has("/" + relativeSource)) { - return this.sourcesContent[this._sources.indexOf("/" + relativeSource)]; - } - } - - // This function is used recursively from - // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we - // don't want to throw if we can't find the source - we just want to - // return null, so we provide a flag to exit gracefully. - if (nullOnMissing) { - return null; - } - else { - throw new Error('"' + relativeSource + '" is not in the SourceMap.'); - } - }; - -/** - * Returns the generated line and column information for the original source, - * line, and column positions provided. The only argument is an object with - * the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. The line number - * is 1-based. - * - column: The column number in the original source. The column - * number is 0-based. - * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or - * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. - * - * and an object is returned with the following properties: - * - * - line: The line number in the generated source, or null. The - * line number is 1-based. - * - column: The column number in the generated source, or null. - * The column number is 0-based. - */ -BasicSourceMapConsumer.prototype.generatedPositionFor = - function SourceMapConsumer_generatedPositionFor(aArgs) { - var source = util.getArg(aArgs, 'source'); - source = this._findSourceIndex(source); - if (source < 0) { - return { - line: null, - column: null, - lastColumn: null - }; - } - - var needle = { - source: source, - originalLine: util.getArg(aArgs, 'line'), - originalColumn: util.getArg(aArgs, 'column') - }; - - var index = this._findMapping( - needle, - this._originalMappings, - "originalLine", - "originalColumn", - util.compareByOriginalPositions, - util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) - ); - - if (index >= 0) { - var mapping = this._originalMappings[index]; - - if (mapping.source === needle.source) { - return { - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }; - } - } - - return { - line: null, - column: null, - lastColumn: null - }; - }; - -exports.BasicSourceMapConsumer = BasicSourceMapConsumer; - -/** - * An IndexedSourceMapConsumer instance represents a parsed source map which - * we can query for information. It differs from BasicSourceMapConsumer in - * that it takes "indexed" source maps (i.e. ones with a "sections" field) as - * input. - * - * The first parameter is a raw source map (either as a JSON string, or already - * parsed to an object). According to the spec for indexed source maps, they - * have the following attributes: - * - * - version: Which version of the source map spec this map is following. - * - file: Optional. The generated file this source map is associated with. - * - sections: A list of section definitions. - * - * Each value under the "sections" field has two fields: - * - offset: The offset into the original specified at which this section - * begins to apply, defined as an object with a "line" and "column" - * field. - * - map: A source map definition. This source map could also be indexed, - * but doesn't have to be. - * - * Instead of the "map" field, it's also possible to have a "url" field - * specifying a URL to retrieve a source map from, but that's currently - * unsupported. - * - * Here's an example source map, taken from the source map spec[0], but - * modified to omit a section which uses the "url" field. - * - * { - * version : 3, - * file: "app.js", - * sections: [{ - * offset: {line:100, column:10}, - * map: { - * version : 3, - * file: "section.js", - * sources: ["foo.js", "bar.js"], - * names: ["src", "maps", "are", "fun"], - * mappings: "AAAA,E;;ABCDE;" - * } - * }], - * } - * - * The second parameter, if given, is a string whose value is the URL - * at which the source map was found. This URL is used to compute the - * sources array. - * - * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt - */ -function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap); - } - - var version = util.getArg(sourceMap, 'version'); - var sections = util.getArg(sourceMap, 'sections'); - - if (version != this._version) { - throw new Error('Unsupported version: ' + version); - } - - this._sources = new ArraySet(); - this._names = new ArraySet(); - - var lastOffset = { - line: -1, - column: 0 - }; - this._sections = sections.map(function (s) { - if (s.url) { - // The url field will require support for asynchronicity. - // See https://github.com/mozilla/source-map/issues/16 - throw new Error('Support for url field in sections not implemented.'); - } - var offset = util.getArg(s, 'offset'); - var offsetLine = util.getArg(offset, 'line'); - var offsetColumn = util.getArg(offset, 'column'); - - if (offsetLine < lastOffset.line || - (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) { - throw new Error('Section offsets must be ordered and non-overlapping.'); - } - lastOffset = offset; - - return { - generatedOffset: { - // The offset fields are 0-based, but we use 1-based indices when - // encoding/decoding from VLQ. - generatedLine: offsetLine + 1, - generatedColumn: offsetColumn + 1 - }, - consumer: new SourceMapConsumer(util.getArg(s, 'map'), aSourceMapURL) - } - }); -} - -IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); -IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer; - -/** - * The version of the source mapping spec that we are consuming. - */ -IndexedSourceMapConsumer.prototype._version = 3; - -/** - * The list of original sources. - */ -Object.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', { - get: function () { - var sources = []; - for (var i = 0; i < this._sections.length; i++) { - for (var j = 0; j < this._sections[i].consumer.sources.length; j++) { - sources.push(this._sections[i].consumer.sources[j]); - } - } - return sources; - } -}); - -/** - * Returns the original source, line, and column information for the generated - * source's line and column positions provided. The only argument is an object - * with the following properties: - * - * - line: The line number in the generated source. The line number - * is 1-based. - * - column: The column number in the generated source. The column - * number is 0-based. - * - * and an object is returned with the following properties: - * - * - source: The original source file, or null. - * - line: The line number in the original source, or null. The - * line number is 1-based. - * - column: The column number in the original source, or null. The - * column number is 0-based. - * - name: The original identifier, or null. - */ -IndexedSourceMapConsumer.prototype.originalPositionFor = - function IndexedSourceMapConsumer_originalPositionFor(aArgs) { - var needle = { - generatedLine: util.getArg(aArgs, 'line'), - generatedColumn: util.getArg(aArgs, 'column') - }; - - // Find the section containing the generated position we're trying to map - // to an original position. - var sectionIndex = binarySearch.search(needle, this._sections, - function(needle, section) { - var cmp = needle.generatedLine - section.generatedOffset.generatedLine; - if (cmp) { - return cmp; - } - - return (needle.generatedColumn - - section.generatedOffset.generatedColumn); - }); - var section = this._sections[sectionIndex]; - - if (!section) { - return { - source: null, - line: null, - column: null, - name: null - }; - } - - return section.consumer.originalPositionFor({ - line: needle.generatedLine - - (section.generatedOffset.generatedLine - 1), - column: needle.generatedColumn - - (section.generatedOffset.generatedLine === needle.generatedLine - ? section.generatedOffset.generatedColumn - 1 - : 0), - bias: aArgs.bias - }); - }; - -/** - * Return true if we have the source content for every source in the source - * map, false otherwise. - */ -IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = - function IndexedSourceMapConsumer_hasContentsOfAllSources() { - return this._sections.every(function (s) { - return s.consumer.hasContentsOfAllSources(); - }); - }; - -/** - * Returns the original source content. The only argument is the url of the - * original source file. Returns null if no original source content is - * available. - */ -IndexedSourceMapConsumer.prototype.sourceContentFor = - function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - - var content = section.consumer.sourceContentFor(aSource, true); - if (content) { - return content; - } - } - if (nullOnMissing) { - return null; - } - else { - throw new Error('"' + aSource + '" is not in the SourceMap.'); - } - }; - -/** - * Returns the generated line and column information for the original source, - * line, and column positions provided. The only argument is an object with - * the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. The line number - * is 1-based. - * - column: The column number in the original source. The column - * number is 0-based. - * - * and an object is returned with the following properties: - * - * - line: The line number in the generated source, or null. The - * line number is 1-based. - * - column: The column number in the generated source, or null. - * The column number is 0-based. - */ -IndexedSourceMapConsumer.prototype.generatedPositionFor = - function IndexedSourceMapConsumer_generatedPositionFor(aArgs) { - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - - // Only consider this section if the requested source is in the list of - // sources of the consumer. - if (section.consumer._findSourceIndex(util.getArg(aArgs, 'source')) === -1) { - continue; - } - var generatedPosition = section.consumer.generatedPositionFor(aArgs); - if (generatedPosition) { - var ret = { - line: generatedPosition.line + - (section.generatedOffset.generatedLine - 1), - column: generatedPosition.column + - (section.generatedOffset.generatedLine === generatedPosition.line - ? section.generatedOffset.generatedColumn - 1 - : 0) - }; - return ret; - } - } - - return { - line: null, - column: null - }; - }; - -/** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). - */ -IndexedSourceMapConsumer.prototype._parseMappings = - function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) { - this.__generatedMappings = []; - this.__originalMappings = []; - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - var sectionMappings = section.consumer._generatedMappings; - for (var j = 0; j < sectionMappings.length; j++) { - var mapping = sectionMappings[j]; - - var source = section.consumer._sources.at(mapping.source); - source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL); - this._sources.add(source); - source = this._sources.indexOf(source); - - var name = null; - if (mapping.name) { - name = section.consumer._names.at(mapping.name); - this._names.add(name); - name = this._names.indexOf(name); - } - - // The mappings coming from the consumer for the section have - // generated positions relative to the start of the section, so we - // need to offset them to be relative to the start of the concatenated - // generated file. - var adjustedMapping = { - source: source, - generatedLine: mapping.generatedLine + - (section.generatedOffset.generatedLine - 1), - generatedColumn: mapping.generatedColumn + - (section.generatedOffset.generatedLine === mapping.generatedLine - ? section.generatedOffset.generatedColumn - 1 - : 0), - originalLine: mapping.originalLine, - originalColumn: mapping.originalColumn, - name: name - }; - - this.__generatedMappings.push(adjustedMapping); - if (typeof adjustedMapping.originalLine === 'number') { - this.__originalMappings.push(adjustedMapping); - } - } - } - - quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated); - quickSort(this.__originalMappings, util.compareByOriginalPositions); - }; - -exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer; - - -/***/ }), -/* 139 */ -/***/ (function(module, exports, __webpack_require__) { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -var SourceMapGenerator = __webpack_require__(47).SourceMapGenerator; -var util = __webpack_require__(8); - -// Matches a Windows-style `\r\n` newline or a `\n` newline used by all other -// operating systems these days (capturing the result). -var REGEX_NEWLINE = /(\r?\n)/; - -// Newline character code for charCodeAt() comparisons -var NEWLINE_CODE = 10; - -// Private symbol for identifying `SourceNode`s when multiple versions of -// the source-map library are loaded. This MUST NOT CHANGE across -// versions! -var isSourceNode = "$$$isSourceNode$$$"; - -/** - * SourceNodes provide a way to abstract over interpolating/concatenating - * snippets of generated JavaScript source code while maintaining the line and - * column information associated with the original source code. - * - * @param aLine The original line number. - * @param aColumn The original column number. - * @param aSource The original source's filename. - * @param aChunks Optional. An array of strings which are snippets of - * generated JS, or other SourceNodes. - * @param aName The original identifier. - */ -function SourceNode(aLine, aColumn, aSource, aChunks, aName) { - this.children = []; - this.sourceContents = {}; - this.line = aLine == null ? null : aLine; - this.column = aColumn == null ? null : aColumn; - this.source = aSource == null ? null : aSource; - this.name = aName == null ? null : aName; - this[isSourceNode] = true; - if (aChunks != null) this.add(aChunks); -} - -/** - * Creates a SourceNode from generated code and a SourceMapConsumer. - * - * @param aGeneratedCode The generated code - * @param aSourceMapConsumer The SourceMap for the generated code - * @param aRelativePath Optional. The path that relative sources in the - * SourceMapConsumer should be relative to. - */ -SourceNode.fromStringWithSourceMap = - function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) { - // The SourceNode we want to fill with the generated code - // and the SourceMap - var node = new SourceNode(); - - // All even indices of this array are one line of the generated code, - // while all odd indices are the newlines between two adjacent lines - // (since `REGEX_NEWLINE` captures its match). - // Processed fragments are accessed by calling `shiftNextLine`. - var remainingLines = aGeneratedCode.split(REGEX_NEWLINE); - var remainingLinesIndex = 0; - var shiftNextLine = function() { - var lineContents = getNextLine(); - // The last line of a file might not have a newline. - var newLine = getNextLine() || ""; - return lineContents + newLine; - - function getNextLine() { - return remainingLinesIndex < remainingLines.length ? - remainingLines[remainingLinesIndex++] : undefined; - } - }; - - // We need to remember the position of "remainingLines" - var lastGeneratedLine = 1, lastGeneratedColumn = 0; - - // The generate SourceNodes we need a code range. - // To extract it current and last mapping is used. - // Here we store the last mapping. - var lastMapping = null; - - aSourceMapConsumer.eachMapping(function (mapping) { - if (lastMapping !== null) { - // We add the code from "lastMapping" to "mapping": - // First check if there is a new line in between. - if (lastGeneratedLine < mapping.generatedLine) { - // Associate first line with "lastMapping" - addMappingWithCode(lastMapping, shiftNextLine()); - lastGeneratedLine++; - lastGeneratedColumn = 0; - // The remaining code is added without mapping - } else { - // There is no new line in between. - // Associate the code between "lastGeneratedColumn" and - // "mapping.generatedColumn" with "lastMapping" - var nextLine = remainingLines[remainingLinesIndex] || ''; - var code = nextLine.substr(0, mapping.generatedColumn - - lastGeneratedColumn); - remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - - lastGeneratedColumn); - lastGeneratedColumn = mapping.generatedColumn; - addMappingWithCode(lastMapping, code); - // No more remaining code, continue - lastMapping = mapping; - return; - } - } - // We add the generated code until the first mapping - // to the SourceNode without any mapping. - // Each line is added as separate string. - while (lastGeneratedLine < mapping.generatedLine) { - node.add(shiftNextLine()); - lastGeneratedLine++; - } - if (lastGeneratedColumn < mapping.generatedColumn) { - var nextLine = remainingLines[remainingLinesIndex] || ''; - node.add(nextLine.substr(0, mapping.generatedColumn)); - remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn); - lastGeneratedColumn = mapping.generatedColumn; - } - lastMapping = mapping; - }, this); - // We have processed all mappings. - if (remainingLinesIndex < remainingLines.length) { - if (lastMapping) { - // Associate the remaining code in the current line with "lastMapping" - addMappingWithCode(lastMapping, shiftNextLine()); - } - // and add the remaining lines without any mapping - node.add(remainingLines.splice(remainingLinesIndex).join("")); - } - - // Copy sourcesContent into SourceNode - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - if (aRelativePath != null) { - sourceFile = util.join(aRelativePath, sourceFile); - } - node.setSourceContent(sourceFile, content); - } - }); - - return node; - - function addMappingWithCode(mapping, code) { - if (mapping === null || mapping.source === undefined) { - node.add(code); - } else { - var source = aRelativePath - ? util.join(aRelativePath, mapping.source) - : mapping.source; - node.add(new SourceNode(mapping.originalLine, - mapping.originalColumn, - source, - code, - mapping.name)); - } - } - }; - -/** - * Add a chunk of generated JS to this source node. - * - * @param aChunk A string snippet of generated JS code, another instance of - * SourceNode, or an array where each member is one of those things. - */ -SourceNode.prototype.add = function SourceNode_add(aChunk) { - if (Array.isArray(aChunk)) { - aChunk.forEach(function (chunk) { - this.add(chunk); - }, this); - } - else if (aChunk[isSourceNode] || typeof aChunk === "string") { - if (aChunk) { - this.children.push(aChunk); - } - } - else { - throw new TypeError( - "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk - ); - } - return this; -}; - -/** - * Add a chunk of generated JS to the beginning of this source node. - * - * @param aChunk A string snippet of generated JS code, another instance of - * SourceNode, or an array where each member is one of those things. - */ -SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) { - if (Array.isArray(aChunk)) { - for (var i = aChunk.length-1; i >= 0; i--) { - this.prepend(aChunk[i]); - } - } - else if (aChunk[isSourceNode] || typeof aChunk === "string") { - this.children.unshift(aChunk); - } - else { - throw new TypeError( - "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk - ); - } - return this; -}; - -/** - * Walk over the tree of JS snippets in this node and its children. The - * walking function is called once for each snippet of JS and is passed that - * snippet and the its original associated source's line/column location. - * - * @param aFn The traversal function. - */ -SourceNode.prototype.walk = function SourceNode_walk(aFn) { - var chunk; - for (var i = 0, len = this.children.length; i < len; i++) { - chunk = this.children[i]; - if (chunk[isSourceNode]) { - chunk.walk(aFn); - } - else { - if (chunk !== '') { - aFn(chunk, { source: this.source, - line: this.line, - column: this.column, - name: this.name }); - } - } - } -}; - -/** - * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between - * each of `this.children`. - * - * @param aSep The separator. - */ -SourceNode.prototype.join = function SourceNode_join(aSep) { - var newChildren; - var i; - var len = this.children.length; - if (len > 0) { - newChildren = []; - for (i = 0; i < len-1; i++) { - newChildren.push(this.children[i]); - newChildren.push(aSep); - } - newChildren.push(this.children[i]); - this.children = newChildren; - } - return this; -}; - -/** - * Call String.prototype.replace on the very right-most source snippet. Useful - * for trimming whitespace from the end of a source node, etc. - * - * @param aPattern The pattern to replace. - * @param aReplacement The thing to replace the pattern with. - */ -SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) { - var lastChild = this.children[this.children.length - 1]; - if (lastChild[isSourceNode]) { - lastChild.replaceRight(aPattern, aReplacement); - } - else if (typeof lastChild === 'string') { - this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement); - } - else { - this.children.push(''.replace(aPattern, aReplacement)); - } - return this; -}; - -/** - * Set the source content for a source file. This will be added to the SourceMapGenerator - * in the sourcesContent field. - * - * @param aSourceFile The filename of the source file - * @param aSourceContent The content of the source file - */ -SourceNode.prototype.setSourceContent = - function SourceNode_setSourceContent(aSourceFile, aSourceContent) { - this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent; - }; - -/** - * Walk over the tree of SourceNodes. The walking function is called for each - * source file content and is passed the filename and source content. - * - * @param aFn The traversal function. - */ -SourceNode.prototype.walkSourceContents = - function SourceNode_walkSourceContents(aFn) { - for (var i = 0, len = this.children.length; i < len; i++) { - if (this.children[i][isSourceNode]) { - this.children[i].walkSourceContents(aFn); - } - } - - var sources = Object.keys(this.sourceContents); - for (var i = 0, len = sources.length; i < len; i++) { - aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]); - } - }; - -/** - * Return the string representation of this source node. Walks over the tree - * and concatenates all the various snippets together to one string. - */ -SourceNode.prototype.toString = function SourceNode_toString() { - var str = ""; - this.walk(function (chunk) { - str += chunk; - }); - return str; -}; - -/** - * Returns the string representation of this source node along with a source - * map. - */ -SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) { - var generated = { - code: "", - line: 1, - column: 0 - }; - var map = new SourceMapGenerator(aArgs); - var sourceMappingActive = false; - var lastOriginalSource = null; - var lastOriginalLine = null; - var lastOriginalColumn = null; - var lastOriginalName = null; - this.walk(function (chunk, original) { - generated.code += chunk; - if (original.source !== null - && original.line !== null - && original.column !== null) { - if(lastOriginalSource !== original.source - || lastOriginalLine !== original.line - || lastOriginalColumn !== original.column - || lastOriginalName !== original.name) { - map.addMapping({ - source: original.source, - original: { - line: original.line, - column: original.column - }, - generated: { - line: generated.line, - column: generated.column - }, - name: original.name - }); - } - lastOriginalSource = original.source; - lastOriginalLine = original.line; - lastOriginalColumn = original.column; - lastOriginalName = original.name; - sourceMappingActive = true; - } else if (sourceMappingActive) { - map.addMapping({ - generated: { - line: generated.line, - column: generated.column - } - }); - lastOriginalSource = null; - sourceMappingActive = false; - } - for (var idx = 0, length = chunk.length; idx < length; idx++) { - if (chunk.charCodeAt(idx) === NEWLINE_CODE) { - generated.line++; - generated.column = 0; - // Mappings end at eol - if (idx + 1 === length) { - lastOriginalSource = null; - sourceMappingActive = false; - } else if (sourceMappingActive) { - map.addMapping({ - source: original.source, - original: { - line: original.line, - column: original.column - }, - generated: { - line: generated.line, - column: generated.column - }, - name: original.name - }); - } - } else { - generated.column++; - } - } - }); - this.walkSourceContents(function (sourceFile, sourceContent) { - map.setSourceContent(sourceFile, sourceContent); - }); - - return { code: generated.code, map: map }; -}; - -exports.SourceNode = SourceNode; - - -/***/ }), -/* 140 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _flatten = __webpack_require__(32); - -var _flatten2 = _interopRequireDefault(_flatten); - -var _indexesOf = __webpack_require__(33); - -var _indexesOf2 = _interopRequireDefault(_indexesOf); - -var _uniq = __webpack_require__(84); - -var _uniq2 = _interopRequireDefault(_uniq); - -var _root = __webpack_require__(56); - -var _root2 = _interopRequireDefault(_root); - -var _selector = __webpack_require__(57); - -var _selector2 = _interopRequireDefault(_selector); - -var _className = __webpack_require__(50); - -var _className2 = _interopRequireDefault(_className); - -var _comment = __webpack_require__(52); - -var _comment2 = _interopRequireDefault(_comment); - -var _id = __webpack_require__(53); - -var _id2 = _interopRequireDefault(_id); - -var _tag = __webpack_require__(59); - -var _tag2 = _interopRequireDefault(_tag); - -var _string = __webpack_require__(58); - -var _string2 = _interopRequireDefault(_string); - -var _pseudo = __webpack_require__(55); - -var _pseudo2 = _interopRequireDefault(_pseudo); - -var _attribute = __webpack_require__(49); - -var _attribute2 = _interopRequireDefault(_attribute); - -var _universal = __webpack_require__(60); - -var _universal2 = _interopRequireDefault(_universal); - -var _combinator = __webpack_require__(51); - -var _combinator2 = _interopRequireDefault(_combinator); - -var _nesting = __webpack_require__(54); - -var _nesting2 = _interopRequireDefault(_nesting); - -var _sortAscending = __webpack_require__(142); - -var _sortAscending2 = _interopRequireDefault(_sortAscending); - -var _tokenize = __webpack_require__(143); - -var _tokenize2 = _interopRequireDefault(_tokenize); - -var _types = __webpack_require__(0); - -var types = _interopRequireWildcard(_types); - -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var Parser = function () { - function Parser(input) { - _classCallCheck(this, Parser); - - this.input = input; - this.lossy = input.options.lossless === false; - this.position = 0; - this.root = new _root2.default(); - - var selectors = new _selector2.default(); - this.root.append(selectors); - - this.current = selectors; - if (this.lossy) { - this.tokens = (0, _tokenize2.default)({ safe: input.safe, css: input.css.trim() }); - } else { - this.tokens = (0, _tokenize2.default)(input); - } - - return this.loop(); - } - - Parser.prototype.attribute = function attribute() { - var str = ''; - var attr = void 0; - var startingToken = this.currToken; - this.position++; - while (this.position < this.tokens.length && this.currToken[0] !== ']') { - str += this.tokens[this.position][1]; - this.position++; - } - if (this.position === this.tokens.length && !~str.indexOf(']')) { - this.error('Expected a closing square bracket.'); - } - var parts = str.split(/((?:[*~^$|]?=))([^]*)/); - var namespace = parts[0].split(/(\|)/g); - var attributeProps = { - operator: parts[1], - value: parts[2], - source: { - start: { - line: startingToken[2], - column: startingToken[3] - }, - end: { - line: this.currToken[2], - column: this.currToken[3] - } - }, - sourceIndex: startingToken[4] - }; - if (namespace.length > 1) { - if (namespace[0] === '') { - namespace[0] = true; - } - attributeProps.attribute = this.parseValue(namespace[2]); - attributeProps.namespace = this.parseNamespace(namespace[0]); - } else { - attributeProps.attribute = this.parseValue(parts[0]); - } - attr = new _attribute2.default(attributeProps); - - if (parts[2]) { - var insensitive = parts[2].split(/(\s+i\s*?)$/); - var trimmedValue = insensitive[0].trim(); - attr.value = this.lossy ? trimmedValue : insensitive[0]; - if (insensitive[1]) { - attr.insensitive = true; - if (!this.lossy) { - attr.raws.insensitive = insensitive[1]; - } - } - attr.quoted = trimmedValue[0] === '\'' || trimmedValue[0] === '"'; - attr.raws.unquoted = attr.quoted ? trimmedValue.slice(1, -1) : trimmedValue; - } - this.newNode(attr); - this.position++; - }; - - Parser.prototype.combinator = function combinator() { - if (this.currToken[1] === '|') { - return this.namespace(); - } - var node = new _combinator2.default({ - value: '', - source: { - start: { - line: this.currToken[2], - column: this.currToken[3] - }, - end: { - line: this.currToken[2], - column: this.currToken[3] - } - }, - sourceIndex: this.currToken[4] - }); - while (this.position < this.tokens.length && this.currToken && (this.currToken[0] === 'space' || this.currToken[0] === 'combinator')) { - if (this.nextToken && this.nextToken[0] === 'combinator') { - node.spaces.before = this.parseSpace(this.currToken[1]); - node.source.start.line = this.nextToken[2]; - node.source.start.column = this.nextToken[3]; - node.source.end.column = this.nextToken[3]; - node.source.end.line = this.nextToken[2]; - node.sourceIndex = this.nextToken[4]; - } else if (this.prevToken && this.prevToken[0] === 'combinator') { - node.spaces.after = this.parseSpace(this.currToken[1]); - } else if (this.currToken[0] === 'combinator') { - node.value = this.currToken[1]; - } else if (this.currToken[0] === 'space') { - node.value = this.parseSpace(this.currToken[1], ' '); - } - this.position++; - } - return this.newNode(node); - }; - - Parser.prototype.comma = function comma() { - if (this.position === this.tokens.length - 1) { - this.root.trailingComma = true; - this.position++; - return; - } - var selectors = new _selector2.default(); - this.current.parent.append(selectors); - this.current = selectors; - this.position++; - }; - - Parser.prototype.comment = function comment() { - var node = new _comment2.default({ - value: this.currToken[1], - source: { - start: { - line: this.currToken[2], - column: this.currToken[3] - }, - end: { - line: this.currToken[4], - column: this.currToken[5] - } - }, - sourceIndex: this.currToken[6] - }); - this.newNode(node); - this.position++; - }; - - Parser.prototype.error = function error(message) { - throw new this.input.error(message); // eslint-disable-line new-cap - }; - - Parser.prototype.missingBackslash = function missingBackslash() { - return this.error('Expected a backslash preceding the semicolon.'); - }; - - Parser.prototype.missingParenthesis = function missingParenthesis() { - return this.error('Expected opening parenthesis.'); - }; - - Parser.prototype.missingSquareBracket = function missingSquareBracket() { - return this.error('Expected opening square bracket.'); - }; - - Parser.prototype.namespace = function namespace() { - var before = this.prevToken && this.prevToken[1] || true; - if (this.nextToken[0] === 'word') { - this.position++; - return this.word(before); - } else if (this.nextToken[0] === '*') { - this.position++; - return this.universal(before); - } - }; - - Parser.prototype.nesting = function nesting() { - this.newNode(new _nesting2.default({ - value: this.currToken[1], - source: { - start: { - line: this.currToken[2], - column: this.currToken[3] - }, - end: { - line: this.currToken[2], - column: this.currToken[3] - } - }, - sourceIndex: this.currToken[4] - })); - this.position++; - }; - - Parser.prototype.parentheses = function parentheses() { - var last = this.current.last; - if (last && last.type === types.PSEUDO) { - var selector = new _selector2.default(); - var cache = this.current; - last.append(selector); - this.current = selector; - var balanced = 1; - this.position++; - while (this.position < this.tokens.length && balanced) { - if (this.currToken[0] === '(') { - balanced++; - } - if (this.currToken[0] === ')') { - balanced--; - } - if (balanced) { - this.parse(); - } else { - selector.parent.source.end.line = this.currToken[2]; - selector.parent.source.end.column = this.currToken[3]; - this.position++; - } - } - if (balanced) { - this.error('Expected closing parenthesis.'); - } - this.current = cache; - } else { - var _balanced = 1; - this.position++; - last.value += '('; - while (this.position < this.tokens.length && _balanced) { - if (this.currToken[0] === '(') { - _balanced++; - } - if (this.currToken[0] === ')') { - _balanced--; - } - last.value += this.parseParenthesisToken(this.currToken); - this.position++; - } - if (_balanced) { - this.error('Expected closing parenthesis.'); - } - } - }; - - Parser.prototype.pseudo = function pseudo() { - var _this = this; - - var pseudoStr = ''; - var startingToken = this.currToken; - while (this.currToken && this.currToken[0] === ':') { - pseudoStr += this.currToken[1]; - this.position++; - } - if (!this.currToken) { - return this.error('Expected pseudo-class or pseudo-element'); - } - if (this.currToken[0] === 'word') { - var pseudo = void 0; - this.splitWord(false, function (first, length) { - pseudoStr += first; - pseudo = new _pseudo2.default({ - value: pseudoStr, - source: { - start: { - line: startingToken[2], - column: startingToken[3] - }, - end: { - line: _this.currToken[4], - column: _this.currToken[5] - } - }, - sourceIndex: startingToken[4] - }); - _this.newNode(pseudo); - if (length > 1 && _this.nextToken && _this.nextToken[0] === '(') { - _this.error('Misplaced parenthesis.'); - } - }); - } else { - this.error('Unexpected "' + this.currToken[0] + '" found.'); - } - }; - - Parser.prototype.space = function space() { - var token = this.currToken; - // Handle space before and after the selector - if (this.position === 0 || this.prevToken[0] === ',' || this.prevToken[0] === '(') { - this.spaces = this.parseSpace(token[1]); - this.position++; - } else if (this.position === this.tokens.length - 1 || this.nextToken[0] === ',' || this.nextToken[0] === ')') { - this.current.last.spaces.after = this.parseSpace(token[1]); - this.position++; - } else { - this.combinator(); - } - }; - - Parser.prototype.string = function string() { - var token = this.currToken; - this.newNode(new _string2.default({ - value: this.currToken[1], - source: { - start: { - line: token[2], - column: token[3] - }, - end: { - line: token[4], - column: token[5] - } - }, - sourceIndex: token[6] - })); - this.position++; - }; - - Parser.prototype.universal = function universal(namespace) { - var nextToken = this.nextToken; - if (nextToken && nextToken[1] === '|') { - this.position++; - return this.namespace(); - } - this.newNode(new _universal2.default({ - value: this.currToken[1], - source: { - start: { - line: this.currToken[2], - column: this.currToken[3] - }, - end: { - line: this.currToken[2], - column: this.currToken[3] - } - }, - sourceIndex: this.currToken[4] - }), namespace); - this.position++; - }; - - Parser.prototype.splitWord = function splitWord(namespace, firstCallback) { - var _this2 = this; - - var nextToken = this.nextToken; - var word = this.currToken[1]; - while (nextToken && nextToken[0] === 'word') { - this.position++; - var current = this.currToken[1]; - word += current; - if (current.lastIndexOf('\\') === current.length - 1) { - var next = this.nextToken; - if (next && next[0] === 'space') { - word += this.parseSpace(next[1], ' '); - this.position++; - } - } - nextToken = this.nextToken; - } - var hasClass = (0, _indexesOf2.default)(word, '.'); - var hasId = (0, _indexesOf2.default)(word, '#'); - // Eliminate Sass interpolations from the list of id indexes - var interpolations = (0, _indexesOf2.default)(word, '#{'); - if (interpolations.length) { - hasId = hasId.filter(function (hashIndex) { - return !~interpolations.indexOf(hashIndex); - }); - } - var indices = (0, _sortAscending2.default)((0, _uniq2.default)((0, _flatten2.default)([[0], hasClass, hasId]))); - indices.forEach(function (ind, i) { - var index = indices[i + 1] || word.length; - var value = word.slice(ind, index); - if (i === 0 && firstCallback) { - return firstCallback.call(_this2, value, indices.length); - } - var node = void 0; - if (~hasClass.indexOf(ind)) { - node = new _className2.default({ - value: value.slice(1), - source: { - start: { - line: _this2.currToken[2], - column: _this2.currToken[3] + ind - }, - end: { - line: _this2.currToken[4], - column: _this2.currToken[3] + (index - 1) - } - }, - sourceIndex: _this2.currToken[6] + indices[i] - }); - } else if (~hasId.indexOf(ind)) { - node = new _id2.default({ - value: value.slice(1), - source: { - start: { - line: _this2.currToken[2], - column: _this2.currToken[3] + ind - }, - end: { - line: _this2.currToken[4], - column: _this2.currToken[3] + (index - 1) - } - }, - sourceIndex: _this2.currToken[6] + indices[i] - }); - } else { - node = new _tag2.default({ - value: value, - source: { - start: { - line: _this2.currToken[2], - column: _this2.currToken[3] + ind - }, - end: { - line: _this2.currToken[4], - column: _this2.currToken[3] + (index - 1) - } - }, - sourceIndex: _this2.currToken[6] + indices[i] - }); - } - _this2.newNode(node, namespace); - }); - this.position++; - }; - - Parser.prototype.word = function word(namespace) { - var nextToken = this.nextToken; - if (nextToken && nextToken[1] === '|') { - this.position++; - return this.namespace(); - } - return this.splitWord(namespace); - }; - - Parser.prototype.loop = function loop() { - while (this.position < this.tokens.length) { - this.parse(true); - } - return this.root; - }; - - Parser.prototype.parse = function parse(throwOnParenthesis) { - switch (this.currToken[0]) { - case 'space': - this.space(); - break; - case 'comment': - this.comment(); - break; - case '(': - this.parentheses(); - break; - case ')': - if (throwOnParenthesis) { - this.missingParenthesis(); - } - break; - case '[': - this.attribute(); - break; - case ']': - this.missingSquareBracket(); - break; - case 'at-word': - case 'word': - this.word(); - break; - case ':': - this.pseudo(); - break; - case ';': - this.missingBackslash(); - break; - case ',': - this.comma(); - break; - case '*': - this.universal(); - break; - case '&': - this.nesting(); - break; - case 'combinator': - this.combinator(); - break; - case 'string': - this.string(); - break; - } - }; - - /** - * Helpers - */ - - Parser.prototype.parseNamespace = function parseNamespace(namespace) { - if (this.lossy && typeof namespace === 'string') { - var trimmed = namespace.trim(); - if (!trimmed.length) { - return true; - } - - return trimmed; - } - - return namespace; - }; - - Parser.prototype.parseSpace = function parseSpace(space, replacement) { - return this.lossy ? replacement || '' : space; - }; - - Parser.prototype.parseValue = function parseValue(value) { - return this.lossy && value && typeof value === 'string' ? value.trim() : value; - }; - - Parser.prototype.parseParenthesisToken = function parseParenthesisToken(token) { - if (!this.lossy) { - return token[1]; - } - - if (token[0] === 'space') { - return this.parseSpace(token[1], ' '); - } - - return this.parseValue(token[1]); - }; - - Parser.prototype.newNode = function newNode(node, namespace) { - if (namespace) { - node.namespace = this.parseNamespace(namespace); - } - if (this.spaces) { - node.spaces.before = this.spaces; - this.spaces = ''; - } - return this.current.append(node); - }; - - _createClass(Parser, [{ - key: 'currToken', - get: function get() { - return this.tokens[this.position]; - } - }, { - key: 'nextToken', - get: function get() { - return this.tokens[this.position + 1]; - } - }, { - key: 'prevToken', - get: function get() { - return this.tokens[this.position - 1]; - } - }]); - - return Parser; -}(); - -exports.default = Parser; -module.exports = exports['default']; - -/***/ }), -/* 141 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _parser = __webpack_require__(140); - -var _parser2 = _interopRequireDefault(_parser); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var Processor = function () { - function Processor(func) { - _classCallCheck(this, Processor); - - this.func = func || function noop() {}; - return this; - } - - Processor.prototype.process = function process(selectors) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - var input = new _parser2.default({ - css: selectors, - error: function error(e) { - throw new Error(e); - }, - options: options - }); - this.res = input; - this.func(input); - return this; - }; - - _createClass(Processor, [{ - key: 'result', - get: function get() { - return String(this.res); - } - }]); - - return Processor; -}(); - -exports.default = Processor; -module.exports = exports['default']; - -/***/ }), -/* 142 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -exports.default = sortAscending; -function sortAscending(list) { - return list.sort(function (a, b) { - return a - b; - }); -} -module.exports = exports["default"]; - -/***/ }), -/* 143 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -exports.default = tokenize; -var singleQuote = 39, - doubleQuote = 34, - backslash = 92, - slash = 47, - newline = 10, - space = 32, - feed = 12, - tab = 9, - cr = 13, - plus = 43, - gt = 62, - tilde = 126, - pipe = 124, - comma = 44, - openBracket = 40, - closeBracket = 41, - openSq = 91, - closeSq = 93, - semicolon = 59, - asterisk = 42, - colon = 58, - ampersand = 38, - at = 64, - atEnd = /[ \n\t\r\{\(\)'"\\;/]/g, - wordEnd = /[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g; - -function tokenize(input) { - var tokens = []; - var css = input.css.valueOf(); - - var code = void 0, - next = void 0, - quote = void 0, - lines = void 0, - last = void 0, - content = void 0, - escape = void 0, - nextLine = void 0, - nextOffset = void 0, - escaped = void 0, - escapePos = void 0; - - var length = css.length; - var offset = -1; - var line = 1; - var pos = 0; - - var unclosed = function unclosed(what, end) { - if (input.safe) { - css += end; - next = css.length - 1; - } else { - throw input.error('Unclosed ' + what, line, pos - offset, pos); - } - }; - - while (pos < length) { - code = css.charCodeAt(pos); - - if (code === newline) { - offset = pos; - line += 1; - } - - switch (code) { - case newline: - case space: - case tab: - case cr: - case feed: - next = pos; - do { - next += 1; - code = css.charCodeAt(next); - if (code === newline) { - offset = next; - line += 1; - } - } while (code === space || code === newline || code === tab || code === cr || code === feed); - - tokens.push(['space', css.slice(pos, next), line, pos - offset, pos]); - pos = next - 1; - break; - - case plus: - case gt: - case tilde: - case pipe: - next = pos; - do { - next += 1; - code = css.charCodeAt(next); - } while (code === plus || code === gt || code === tilde || code === pipe); - tokens.push(['combinator', css.slice(pos, next), line, pos - offset, pos]); - pos = next - 1; - break; - - case asterisk: - tokens.push(['*', '*', line, pos - offset, pos]); - break; - - case ampersand: - tokens.push(['&', '&', line, pos - offset, pos]); - break; - - case comma: - tokens.push([',', ',', line, pos - offset, pos]); - break; - - case openSq: - tokens.push(['[', '[', line, pos - offset, pos]); - break; - - case closeSq: - tokens.push([']', ']', line, pos - offset, pos]); - break; - - case colon: - tokens.push([':', ':', line, pos - offset, pos]); - break; - - case semicolon: - tokens.push([';', ';', line, pos - offset, pos]); - break; - - case openBracket: - tokens.push(['(', '(', line, pos - offset, pos]); - break; - - case closeBracket: - tokens.push([')', ')', line, pos - offset, pos]); - break; - - case singleQuote: - case doubleQuote: - quote = code === singleQuote ? "'" : '"'; - next = pos; - do { - escaped = false; - next = css.indexOf(quote, next + 1); - if (next === -1) { - unclosed('quote', quote); - } - escapePos = next; - while (css.charCodeAt(escapePos - 1) === backslash) { - escapePos -= 1; - escaped = !escaped; - } - } while (escaped); - - tokens.push(['string', css.slice(pos, next + 1), line, pos - offset, line, next - offset, pos]); - pos = next; - break; - - case at: - atEnd.lastIndex = pos + 1; - atEnd.test(css); - if (atEnd.lastIndex === 0) { - next = css.length - 1; - } else { - next = atEnd.lastIndex - 2; - } - tokens.push(['at-word', css.slice(pos, next + 1), line, pos - offset, line, next - offset, pos]); - pos = next; - break; - - case backslash: - next = pos; - escape = true; - while (css.charCodeAt(next + 1) === backslash) { - next += 1; - escape = !escape; - } - code = css.charCodeAt(next + 1); - if (escape && code !== slash && code !== space && code !== newline && code !== tab && code !== cr && code !== feed) { - next += 1; - } - tokens.push(['word', css.slice(pos, next + 1), line, pos - offset, line, next - offset, pos]); - pos = next; - break; - - default: - if (code === slash && css.charCodeAt(pos + 1) === asterisk) { - next = css.indexOf('*/', pos + 2) + 1; - if (next === 0) { - unclosed('comment', '*/'); - } - - content = css.slice(pos, next + 1); - lines = content.split('\n'); - last = lines.length - 1; - - if (last > 0) { - nextLine = line + last; - nextOffset = next - lines[last].length; - } else { - nextLine = line; - nextOffset = offset; - } - - tokens.push(['comment', content, line, pos - offset, nextLine, next - nextOffset, pos]); - - offset = nextOffset; - line = nextLine; - pos = next; - } else { - wordEnd.lastIndex = pos + 1; - wordEnd.test(css); - if (wordEnd.lastIndex === 0) { - next = css.length - 1; - } else { - next = wordEnd.lastIndex - 2; - } - - tokens.push(['word', css.slice(pos, next + 1), line, pos - offset, line, next - offset, pos]); - pos = next; - } - - break; - } - - pos++; - } - - return tokens; -} -module.exports = exports['default']; - -/***/ }), -/* 144 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -class ParserError extends Error { - constructor(message) { - super(message); - - this.name = this.constructor.name; - this.message = message || 'An error ocurred while parsing.'; - - if (typeof Error.captureStackTrace === 'function') { - Error.captureStackTrace(this, this.constructor); - } - else { - this.stack = (new Error(message)).stack; - } - } -} - -module.exports = ParserError; - - -/***/ }), -/* 145 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -class TokenizeError extends Error { - constructor(message) { - super(message); - - this.name = this.constructor.name; - this.message = message || 'An error ocurred while tokzenizing.'; - - if (typeof Error.captureStackTrace === 'function') { - Error.captureStackTrace(this, this.constructor); - } - else { - this.stack = (new Error(message)).stack; - } - } -} - -module.exports = TokenizeError; - - -/***/ }), -/* 146 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Root = __webpack_require__(147); -const Value = __webpack_require__(70); - -const AtWord = __webpack_require__(61); -const Colon = __webpack_require__(62); -const Comma = __webpack_require__(63); -const Comment = __webpack_require__(64); -const Func = __webpack_require__(65); -const Numbr = __webpack_require__(66); -const Operator = __webpack_require__(67); -const Paren = __webpack_require__(68); -const Str = __webpack_require__(69); -const Word = __webpack_require__(71); - -const tokenize = __webpack_require__(148); - -const flatten = __webpack_require__(32); -const indexesOf = __webpack_require__(33); -const uniq = __webpack_require__(84); -const ParserError = __webpack_require__(144); - -function sortAscending (list) { - return list.sort((a, b) => a - b); -} - -module.exports = class Parser { - constructor (input, options) { - const defaults = { loose: false }; - - // cache needs to be an array for values with more than 1 level of function nesting - this.cache = []; - this.input = input; - this.options = Object.assign({}, defaults, options); - this.position = 0; - // we'll use this to keep track of the paren balance - this.unbalanced = 0; - this.root = new Root(); - - let value = new Value(); - - this.root.append(value); - - this.current = value; - this.tokens = tokenize(input, this.options); - } - - parse () { - return this.loop(); - } - - colon () { - let token = this.currToken; - - this.newNode(new Colon({ - value: token[1], - source: { - start: { - line: token[2], - column: token[3] - }, - end: { - line: token[4], - column: token[5] - } - }, - sourceIndex: token[6] - })); - - this.position ++; - } - - comma () { - let token = this.currToken; - - this.newNode(new Comma({ - value: token[1], - source: { - start: { - line: token[2], - column: token[3] - }, - end: { - line: token[4], - column: token[5] - } - }, - sourceIndex: token[6] - })); - - this.position ++; - } - - comment () { - let node = new Comment({ - value: this.currToken[1].replace(/\/\*|\*\//g, ''), - source: { - start: { - line: this.currToken[2], - column: this.currToken[3] - }, - end: { - line: this.currToken[4], - column: this.currToken[5] - } - }, - sourceIndex: this.currToken[6] - }); - - this.newNode(node); - this.position++; - } - - error (message, token) { - throw new ParserError(message + ` at line: ${token[2]}, column ${token[3]}`); - } - - loop () { - while (this.position < this.tokens.length) { - this.parseTokens(); - } - - if (!this.current.last && this.spaces) { - this.current.raws.before += this.spaces; - } - else if (this.spaces) { - this.current.last.raws.after += this.spaces; - } - - this.spaces = ''; - - return this.root; - } - - operator () { - - // if a +|- operator is followed by a non-word character (. is allowed) and - // is preceded by a non-word character. (5+5) - let char = this.currToken[1], - node; - - if (char === '+' || char === '-') { - // only inspect if the operator is not the first token, and we're only - // within a calc() function: the only spec-valid place for math expressions - if (!this.options.loose) { - if (this.position > 0) { - if (this.current.type === 'func' && this.current.value === 'calc') { - // allow operators to be proceeded by spaces and opening parens - if (this.prevToken[0] !== 'space' && this.prevToken[0] !== '(') { - this.error('Syntax Error', this.currToken); - } - // valid: calc(1 - +2) - // invalid: calc(1 -+2) - else if (this.nextToken[0] !== 'space' && this.nextToken[0] !== 'word') { - this.error('Syntax Error', this.currToken); - } - // valid: calc(1 - +2) - // valid: calc(-0.5 + 2) - // invalid: calc(1 -2) - else if (this.nextToken[0] === 'word' && this.current.last.type !== 'operator' && - this.current.last.value !== '(') { - this.error('Syntax Error', this.currToken); - } - } - // if we're not in a function and someone has doubled up on operators, - // or they're trying to perform a calc outside of a calc - // eg. +-4px or 5+ 5, throw an error - else if (this.nextToken[0] === 'space' - || this.nextToken[0] === 'operator' - || this.prevToken[0] === 'operator') { - this.error('Syntax Error', this.currToken); - } - } - } - - if (!this.options.loose) { - if (this.nextToken[0] === 'word') { - return this.word(); - } - } - else { - if ((!this.current.nodes.length || (this.current.last && this.current.last.type === 'operator')) && this.nextToken[0] === 'word') { - return this.word(); - } - } - } - - node = new Operator({ - value: this.currToken[1], - source: { - start: { - line: this.currToken[2], - column: this.currToken[3] - }, - end: { - line: this.currToken[2], - column: this.currToken[3] - } - }, - sourceIndex: this.currToken[4] - }); - - this.position ++; - - return this.newNode(node); - } - - parseTokens () { - switch (this.currToken[0]) { - case 'space': - this.space(); - break; - case 'colon': - this.colon(); - break; - case 'comma': - this.comma(); - break; - case 'comment': - this.comment(); - break; - case '(': - this.parenOpen(); - break; - case ')': - this.parenClose(); - break; - case 'atword': - case 'word': - this.word(); - break; - case 'operator': - this.operator(); - break; - case 'string': - this.string(); - break; - default: - this.word(); - break; - } - } - - parenOpen () { - let unbalanced = 1, - pos = this.position + 1, - token = this.currToken, - last; - - // check for balanced parens - while (pos < this.tokens.length && unbalanced) { - let tkn = this.tokens[pos]; - - if (tkn[0] === '(') { - unbalanced++; - } - if (tkn[0] === ')') { - unbalanced--; - } - pos ++; - } - - if (unbalanced) { - this.error('Expected closing parenthesis', token); - } - - // ok, all parens are balanced. continue on - - last = this.current.last; - - if (last && last.type === 'func' && last.unbalanced < 0) { - last.unbalanced = 0; // ok we're ready to add parens now - this.current = last; - } - - this.current.unbalanced ++; - - this.newNode(new Paren({ - value: token[1], - source: { - start: { - line: token[2], - column: token[3] - }, - end: { - line: token[4], - column: token[5] - } - }, - sourceIndex: token[6] - })); - - this.position ++; - - // url functions get special treatment, and anything between the function - // parens get treated as one word, if the contents aren't not a string. - if (this.current.type === 'func' && this.current.unbalanced && - this.current.value === 'url' && this.currToken[0] !== 'string' && - this.currToken[0] !== ')' && !this.options.loose) { - - let nextToken = this.nextToken, - value = this.currToken[1], - start = { - line: this.currToken[2], - column: this.currToken[3] - }; - - while (nextToken && nextToken[0] !== ')' && this.current.unbalanced) { - this.position ++; - value += this.currToken[1]; - nextToken = this.nextToken; - } - - if (this.position !== this.tokens.length - 1) { - // skip the following word definition, or it'll be a duplicate - this.position ++; - - this.newNode(new Word({ - value, - source: { - start, - end: { - line: this.currToken[4], - column: this.currToken[5] - } - }, - sourceIndex: this.currToken[6] - })); - } - } - } - - parenClose () { - let token = this.currToken; - - this.newNode(new Paren({ - value: token[1], - source: { - start: { - line: token[2], - column: token[3] - }, - end: { - line: token[4], - column: token[5] - } - }, - sourceIndex: token[6] - })); - - this.position ++; - - if (this.position >= this.tokens.length - 1 && !this.current.unbalanced) { - return; - } - - this.current.unbalanced --; - - if (this.current.unbalanced < 0) { - this.error('Expected opening parenthesis', token); - } - - if (!this.current.unbalanced && this.cache.length) { - this.current = this.cache.pop(); - } - } - - space () { - let token = this.currToken; - // Handle space before and after the selector - if (this.position === (this.tokens.length - 1) || this.nextToken[0] === ',' || this.nextToken[0] === ')') { - this.current.last.raws.after += token[1]; - this.position ++; - } - else { - this.spaces = token[1]; - this.position ++; - } - } - - splitWord () { - let nextToken = this.nextToken, - word = this.currToken[1], - rNumber = /^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/, - - // treat css-like groupings differently so they can be inspected, - // but don't address them as anything but a word, but allow hex values - // to pass through. - rNoFollow = /^(?!\#([a-z0-9]+))[\#\{\}]/gi, - - hasAt, indices; - - if (!rNoFollow.test(word)) { - while (nextToken && nextToken[0] === 'word') { - this.position ++; - - let current = this.currToken[1]; - word += current; - - nextToken = this.nextToken; - } - } - - hasAt = indexesOf(word, '@'); - indices = sortAscending(uniq(flatten([[0], hasAt]))); - - indices.forEach((ind, i) => { - let index = indices[i + 1] || word.length, - value = word.slice(ind, index), - node; - - if (~hasAt.indexOf(ind)) { - node = new AtWord({ - value: value.slice(1), - source: { - start: { - line: this.currToken[2], - column: this.currToken[3] + ind - }, - end: { - line: this.currToken[4], - column: this.currToken[3] + (index - 1) - } - }, - sourceIndex: this.currToken[6] + indices[i] - }); - } - else if (rNumber.test(this.currToken[1])) { - let unit = value.replace(rNumber, ''); - - node = new Numbr({ - value: value.replace(unit, ''), - source: { - start: { - line: this.currToken[2], - column: this.currToken[3] + ind - }, - end: { - line: this.currToken[4], - column: this.currToken[3] + (index - 1) - } - }, - sourceIndex: this.currToken[6] + indices[i], - unit - }); - } - else { - node = new (nextToken && nextToken[0] === '(' ? Func : Word)({ - value, - source: { - start: { - line: this.currToken[2], - column: this.currToken[3] + ind - }, - end: { - line: this.currToken[4], - column: this.currToken[3] + (index - 1) - } - }, - sourceIndex: this.currToken[6] + indices[i] - }); - - if (node.constructor.name === 'Word') { - node.isHex = /^#(.+)/.test(value); - node.isColor = /^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(value); - } - else { - this.cache.push(this.current); - } - } - - this.newNode(node); - - }); - - this.position ++; - } - - string () { - let token = this.currToken, - value = this.currToken[1], - rQuote = /^(\"|\')/, - quoted = rQuote.test(value), - quote = '', - node; - - if (quoted) { - quote = value.match(rQuote)[0]; - // set value to the string within the quotes - // quotes are stored in raws - value = value.slice(1, value.length - 1); - } - - node = new Str({ - value, - source: { - start: { - line: token[2], - column: token[3] - }, - end: { - line: token[4], - column: token[5] - } - }, - sourceIndex: token[6], - quoted - }); - - node.raws.quote = quote; - - this.newNode(node); - this.position++; - } - - word () { - return this.splitWord(); - } - - newNode (node) { - if (this.spaces) { - node.raws.before += this.spaces; - this.spaces = ''; - } - - return this.current.append(node); - } - - get currToken () { - return this.tokens[this.position]; - } - - get nextToken () { - return this.tokens[this.position + 1]; - } - - get prevToken () { - return this.tokens[this.position - 1]; - } -}; - - -/***/ }), -/* 147 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const Container = __webpack_require__(1); - -module.exports = class Root extends Container { - constructor (opts) { - super(opts); - this.type = 'root'; - } -}; - - -/***/ }), -/* 148 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const openBracket = '{'.charCodeAt(0); -const closeBracket = '}'.charCodeAt(0); -const openParen = '('.charCodeAt(0); -const closeParen = ')'.charCodeAt(0); -const singleQuote = '\''.charCodeAt(0); -const doubleQuote = '"'.charCodeAt(0); -const backslash = '\\'.charCodeAt(0); -const slash = '/'.charCodeAt(0); -const period = '.'.charCodeAt(0); -const comma = ','.charCodeAt(0); -const colon = ':'.charCodeAt(0); -const asterisk = '*'.charCodeAt(0); -const minus = '-'.charCodeAt(0); -const plus = '+'.charCodeAt(0); -const pound = '#'.charCodeAt(0); -const newline = '\n'.charCodeAt(0); -const space = ' '.charCodeAt(0); -const feed = '\f'.charCodeAt(0); -const tab = '\t'.charCodeAt(0); -const cr = '\r'.charCodeAt(0); -const at = '@'.charCodeAt(0); -const lowerE = 'e'.charCodeAt(0); -const upperE = 'E'.charCodeAt(0); -const digit0 = '0'.charCodeAt(0); -const digit9 = '9'.charCodeAt(0); -const atEnd = /[ \n\t\r\{\(\)'"\\;,/]/g; -const wordEnd = /[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g; -const wordEndNum = /[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g; -const alphaNum = /^[a-z0-9]/i; - -const util = __webpack_require__(169); -const TokenizeError = __webpack_require__(145); - -module.exports = function tokenize (input, options) { - - options = options || {}; - - let tokens = [], - css = input.valueOf(), - length = css.length, - offset = -1, - line = 1, - pos = 0, - - code, next, quote, lines, last, content, escape, nextLine, nextOffset, - escaped, escapePos, nextChar; - - function unclosed (what) { - let message = util.format('Unclosed %s at line: %d, column: %d, token: %d', what, line, pos - offset, pos); - throw new TokenizeError(message); - } - - while (pos < length) { - code = css.charCodeAt(pos); - - if (code === newline) { - offset = pos; - line += 1; - } - - switch (code) { - case newline: - case space: - case tab: - case cr: - case feed: - next = pos; - do { - next += 1; - code = css.charCodeAt(next); - if (code === newline) { - offset = next; - line += 1; - } - } while (code === space || - code === newline || - code === tab || - code === cr || - code === feed); - - tokens.push(['space', css.slice(pos, next), - line, pos - offset, - line, next - offset, - pos - ]); - - pos = next - 1; - break; - - case colon: - next = pos + 1; - tokens.push(['colon', css.slice(pos, next), - line, pos - offset, - line, next - offset, - pos - ]); - - pos = next - 1; - break; - - case comma: - next = pos + 1; - tokens.push(['comma', css.slice(pos, next), - line, pos - offset, - line, next - offset, - pos - ]); - - pos = next - 1; - break; - - case openBracket: - tokens.push(['{', '{', - line, pos - offset, - line, next - offset, - pos - ]); - break; - - case closeBracket: - tokens.push(['}', '}', - line, pos - offset, - line, next - offset, - pos - ]); - break; - - case openParen: - tokens.push(['(', '(', - line, pos - offset, - line, next - offset, - pos - ]); - break; - - case closeParen: - tokens.push([')', ')', - line, pos - offset, - line, next - offset, - pos - ]); - break; - - case singleQuote: - case doubleQuote: - quote = code === singleQuote ? '\'' : '"'; - next = pos; - do { - escaped = false; - next = css.indexOf(quote, next + 1); - if (next === -1) { - unclosed('quote', quote); - } - escapePos = next; - while (css.charCodeAt(escapePos - 1) === backslash) { - escapePos -= 1; - escaped = !escaped; - } - } while (escaped); - - tokens.push(['string', css.slice(pos, next + 1), - line, pos - offset, - line, next - offset, - pos - ]); - pos = next; - break; - - case at: - atEnd.lastIndex = pos + 1; - atEnd.test(css); - - if (atEnd.lastIndex === 0) { - next = css.length - 1; - } - else { - next = atEnd.lastIndex - 2; - } - - tokens.push(['atword', css.slice(pos, next + 1), - line, pos - offset, - line, next - offset, - pos - ]); - pos = next; - break; - - case backslash: - next = pos; - code = css.charCodeAt(next + 1); - - if (escape && (code !== slash && code !== space && - code !== newline && code !== tab && - code !== cr && code !== feed)) { - next += 1; - } - - tokens.push(['word', css.slice(pos, next + 1), - line, pos - offset, - line, next - offset, - pos - ]); - - pos = next; - break; - - case plus: - case minus: - case asterisk: - next = pos + 1; - nextChar = css.slice(pos + 1, next + 1); - - let prevChar = css.slice(pos - 1, pos); - - // if the operator is immediately followed by a word character, then we - // have a prefix of some kind, and should fall-through. eg. -webkit - - // look for --* for custom variables - if (code === minus && nextChar.charCodeAt(0) === minus) { - next++; - - tokens.push(['word', css.slice(pos, next), - line, pos - offset, - line, next - offset, - pos - ]); - - pos = next - 1; - break; - } - - tokens.push(['operator', css.slice(pos, next), - line, pos - offset, - line, next - offset, - pos - ]); - - pos = next - 1; - break; - - default: - if (code === slash && css.charCodeAt(pos + 1) === asterisk) { - next = css.indexOf('*/', pos + 2) + 1; - if (next === 0) { - unclosed('comment', '*/'); - } - - content = css.slice(pos, next + 1); - lines = content.split('\n'); - last = lines.length - 1; - - if (last > 0) { - nextLine = line + last; - nextOffset = next - lines[last].length; - } - else { - nextLine = line; - nextOffset = offset; - } - - tokens.push(['comment', content, - line, pos - offset, - nextLine, next - nextOffset, - pos - ]); - - offset = nextOffset; - line = nextLine; - pos = next; - - } - else if (code === pound && !alphaNum.test(css.slice(pos + 1, pos + 2))) { - next = pos + 1; - - tokens.push(['#', css.slice(pos, next), - line, pos - offset, - line, next - offset, - pos - ]); - - pos = next - 1; - } - // catch a regular slash, that isn't a comment - else if (code === slash) { - next = pos + 1; - - tokens.push(['operator', css.slice(pos, next), - line, pos - offset, - line, next - offset, - pos - ]); - - pos = next - 1; - } - else { - let regex = wordEnd; - - // we're dealing with a word that starts with a number - // those get treated differently - if (code >= digit0 && code <= digit9) { - regex = wordEndNum; - } - - regex.lastIndex = pos + 1; - regex.test(css); - - if (regex.lastIndex === 0) { - next = css.length - 1; - } - else { - next = regex.lastIndex - 2; - } - - // Exponential number notation with minus or plus: 1e-10, 1e+10 - if (regex === wordEndNum || code === period) { - let ncode = css.charCodeAt(next), - ncode1 = css.charCodeAt(next + 1), - ncode2 = css.charCodeAt(next + 2); - - if ( - (ncode === lowerE || ncode === upperE) && - (ncode1 === minus || ncode1 === plus) && - (ncode2 >= digit0 && ncode2 <= digit9) - ) { - wordEndNum.lastIndex = next + 2; - wordEndNum.test(css); - - if (wordEndNum.lastIndex === 0) { - next = css.length - 1; - } - else { - next = wordEndNum.lastIndex - 2; - } - } - } - - tokens.push(['word', css.slice(pos, next + 1), - line, pos - offset, - line, next - offset, - pos - ]); - pos = next; - } - break; - } - - pos ++; - } - - return tokens; -}; - - -/***/ }), -/* 149 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -/** - * Contains helpers for safely splitting lists of CSS values, - * preserving parentheses and quotes. - * - * @example - * const list = postcss.list; - * - * @namespace list - */ -var list = { - split: function split(string, separators, last) { - var array = []; - var current = ''; - var split = false; - - var func = 0; - var quote = false; - var escape = false; - - for (var i = 0; i < string.length; i++) { - var letter = string[i]; - - if (quote) { - if (escape) { - escape = false; - } else if (letter === '\\') { - escape = true; - } else if (letter === quote) { - quote = false; - } - } else if (letter === '"' || letter === '\'') { - quote = letter; - } else if (letter === '(') { - func += 1; - } else if (letter === ')') { - if (func > 0) func -= 1; - } else if (func === 0) { - if (separators.indexOf(letter) !== -1) split = true; - } - - if (split) { - if (current !== '') array.push(current.trim()); - current = ''; - split = false; - } else { - current += letter; - } - } - - if (last || current !== '') array.push(current.trim()); - return array; - }, - - - /** - * Safely splits space-separated values (such as those for `background`, - * `border-radius`, and other shorthand properties). - * - * @param {string} string - space-separated values - * - * @return {string[]} split values - * - * @example - * postcss.list.space('1px calc(10% + 1px)') //=> ['1px', 'calc(10% + 1px)'] - */ - space: function space(string) { - var spaces = [' ', '\n', '\t']; - return list.split(string, spaces); - }, - - - /** - * Safely splits comma-separated values (such as those for `transition-*` - * and `background` properties). - * - * @param {string} string - comma-separated values - * - * @return {string[]} split values - * - * @example - * postcss.list.comma('black, linear-gradient(white, black)') - * //=> ['black', 'linear-gradient(white, black)'] - */ - comma: function comma(string) { - var comma = ','; - return list.split(string, [comma], true); - } -}; - -exports.default = list; -module.exports = exports['default']; - - - -/***/ }), -/* 150 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _jsBase = __webpack_require__(34); - -var _sourceMap = __webpack_require__(83); - -var _sourceMap2 = _interopRequireDefault(_sourceMap); - -var _path = __webpack_require__(5); - -var _path2 = _interopRequireDefault(_path); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var MapGenerator = function () { - function MapGenerator(stringify, root, opts) { - _classCallCheck(this, MapGenerator); - - this.stringify = stringify; - this.mapOpts = opts.map || {}; - this.root = root; - this.opts = opts; - } - - MapGenerator.prototype.isMap = function isMap() { - if (typeof this.opts.map !== 'undefined') { - return !!this.opts.map; - } else { - return this.previous().length > 0; - } - }; - - MapGenerator.prototype.previous = function previous() { - var _this = this; - - if (!this.previousMaps) { - this.previousMaps = []; - this.root.walk(function (node) { - if (node.source && node.source.input.map) { - var map = node.source.input.map; - if (_this.previousMaps.indexOf(map) === -1) { - _this.previousMaps.push(map); - } - } - }); - } - - return this.previousMaps; - }; - - MapGenerator.prototype.isInline = function isInline() { - if (typeof this.mapOpts.inline !== 'undefined') { - return this.mapOpts.inline; - } - - var annotation = this.mapOpts.annotation; - if (typeof annotation !== 'undefined' && annotation !== true) { - return false; - } - - if (this.previous().length) { - return this.previous().some(function (i) { - return i.inline; - }); - } else { - return true; - } - }; - - MapGenerator.prototype.isSourcesContent = function isSourcesContent() { - if (typeof this.mapOpts.sourcesContent !== 'undefined') { - return this.mapOpts.sourcesContent; - } - if (this.previous().length) { - return this.previous().some(function (i) { - return i.withContent(); - }); - } else { - return true; - } - }; - - MapGenerator.prototype.clearAnnotation = function clearAnnotation() { - if (this.mapOpts.annotation === false) return; - - var node = void 0; - for (var i = this.root.nodes.length - 1; i >= 0; i--) { - node = this.root.nodes[i]; - if (node.type !== 'comment') continue; - if (node.text.indexOf('# sourceMappingURL=') === 0) { - this.root.removeChild(i); - } - } - }; - - MapGenerator.prototype.setSourcesContent = function setSourcesContent() { - var _this2 = this; - - var already = {}; - this.root.walk(function (node) { - if (node.source) { - var from = node.source.input.from; - if (from && !already[from]) { - already[from] = true; - var relative = _this2.relative(from); - _this2.map.setSourceContent(relative, node.source.input.css); - } - } - }); - }; - - MapGenerator.prototype.applyPrevMaps = function applyPrevMaps() { - for (var _iterator = this.previous(), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var prev = _ref; - - var from = this.relative(prev.file); - var root = prev.root || _path2.default.dirname(prev.file); - var map = void 0; - - if (this.mapOpts.sourcesContent === false) { - map = new _sourceMap2.default.SourceMapConsumer(prev.text); - if (map.sourcesContent) { - map.sourcesContent = map.sourcesContent.map(function () { - return null; - }); - } - } else { - map = prev.consumer(); - } - - this.map.applySourceMap(map, from, this.relative(root)); - } - }; - - MapGenerator.prototype.isAnnotation = function isAnnotation() { - if (this.isInline()) { - return true; - } else if (typeof this.mapOpts.annotation !== 'undefined') { - return this.mapOpts.annotation; - } else if (this.previous().length) { - return this.previous().some(function (i) { - return i.annotation; - }); - } else { - return true; - } - }; - - MapGenerator.prototype.addAnnotation = function addAnnotation() { - var content = void 0; - - if (this.isInline()) { - content = 'data:application/json;base64,' + _jsBase.Base64.encode(this.map.toString()); - } else if (typeof this.mapOpts.annotation === 'string') { - content = this.mapOpts.annotation; - } else { - content = this.outputFile() + '.map'; - } - - var eol = '\n'; - if (this.css.indexOf('\r\n') !== -1) eol = '\r\n'; - - this.css += eol + '/*# sourceMappingURL=' + content + ' */'; - }; - - MapGenerator.prototype.outputFile = function outputFile() { - if (this.opts.to) { - return this.relative(this.opts.to); - } else if (this.opts.from) { - return this.relative(this.opts.from); - } else { - return 'to.css'; - } - }; - - MapGenerator.prototype.generateMap = function generateMap() { - this.generateString(); - if (this.isSourcesContent()) this.setSourcesContent(); - if (this.previous().length > 0) this.applyPrevMaps(); - if (this.isAnnotation()) this.addAnnotation(); - - if (this.isInline()) { - return [this.css]; - } else { - return [this.css, this.map]; - } - }; - - MapGenerator.prototype.relative = function relative(file) { - if (file.indexOf('<') === 0) return file; - if (/^\w+:\/\//.test(file)) return file; - - var from = this.opts.to ? _path2.default.dirname(this.opts.to) : '.'; - - if (typeof this.mapOpts.annotation === 'string') { - from = _path2.default.dirname(_path2.default.resolve(from, this.mapOpts.annotation)); - } - - file = _path2.default.relative(from, file); - if (_path2.default.sep === '\\') { - return file.replace(/\\/g, '/'); - } else { - return file; - } - }; - - MapGenerator.prototype.sourcePath = function sourcePath(node) { - if (this.mapOpts.from) { - return this.mapOpts.from; - } else { - return this.relative(node.source.input.from); - } - }; - - MapGenerator.prototype.generateString = function generateString() { - var _this3 = this; - - this.css = ''; - this.map = new _sourceMap2.default.SourceMapGenerator({ file: this.outputFile() }); - - var line = 1; - var column = 1; - - var lines = void 0, - last = void 0; - this.stringify(this.root, function (str, node, type) { - _this3.css += str; - - if (node && type !== 'end') { - if (node.source && node.source.start) { - _this3.map.addMapping({ - source: _this3.sourcePath(node), - generated: { line: line, column: column - 1 }, - original: { - line: node.source.start.line, - column: node.source.start.column - 1 - } - }); - } else { - _this3.map.addMapping({ - source: '', - original: { line: 1, column: 0 }, - generated: { line: line, column: column - 1 } - }); - } - } - - lines = str.match(/\n/g); - if (lines) { - line += lines.length; - last = str.lastIndexOf('\n'); - column = str.length - last; - } else { - column += str.length; - } - - if (node && type !== 'start') { - if (node.source && node.source.end) { - _this3.map.addMapping({ - source: _this3.sourcePath(node), - generated: { line: line, column: column - 1 }, - original: { - line: node.source.end.line, - column: node.source.end.column - } - }); - } else { - _this3.map.addMapping({ - source: '', - original: { line: 1, column: 0 }, - generated: { line: line, column: column - 1 } - }); - } - } - }); - }; - - MapGenerator.prototype.generate = function generate() { - this.clearAnnotation(); - - if (this.isMap()) { - return this.generateMap(); - } else { - var result = ''; - this.stringify(this.root, function (i) { - result += i; - }); - return [result]; - } - }; - - return MapGenerator; -}(); - -exports.default = MapGenerator; -module.exports = exports['default']; - - - -/***/ }), -/* 151 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _jsBase = __webpack_require__(34); - -var _sourceMap = __webpack_require__(83); - -var _sourceMap2 = _interopRequireDefault(_sourceMap); - -var _path = __webpack_require__(5); - -var _path2 = _interopRequireDefault(_path); - -var _fs = __webpack_require__(174); - -var _fs2 = _interopRequireDefault(_fs); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * Source map information from input CSS. - * For example, source map after Sass compiler. - * - * This class will automatically find source map in input CSS or in file system - * near input file (according `from` option). - * - * @example - * const root = postcss.parse(css, { from: 'a.sass.css' }); - * root.input.map //=> PreviousMap - */ -var PreviousMap = function () { - - /** - * @param {string} css - input CSS source - * @param {processOptions} [opts] - {@link Processor#process} options - */ - function PreviousMap(css, opts) { - _classCallCheck(this, PreviousMap); - - this.loadAnnotation(css); - /** - * @member {boolean} - Was source map inlined by data-uri to input CSS. - */ - this.inline = this.startWith(this.annotation, 'data:'); - - var prev = opts.map ? opts.map.prev : undefined; - var text = this.loadMap(opts.from, prev); - if (text) this.text = text; - } - - /** - * Create a instance of `SourceMapGenerator` class - * from the `source-map` library to work with source map information. - * - * It is lazy method, so it will create object only on first call - * and then it will use cache. - * - * @return {SourceMapGenerator} object with source map information - */ - - - PreviousMap.prototype.consumer = function consumer() { - if (!this.consumerCache) { - this.consumerCache = new _sourceMap2.default.SourceMapConsumer(this.text); - } - return this.consumerCache; - }; - - /** - * Does source map contains `sourcesContent` with input source text. - * - * @return {boolean} Is `sourcesContent` present - */ - - - PreviousMap.prototype.withContent = function withContent() { - return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0); - }; - - PreviousMap.prototype.startWith = function startWith(string, start) { - if (!string) return false; - return string.substr(0, start.length) === start; - }; - - PreviousMap.prototype.loadAnnotation = function loadAnnotation(css) { - var match = css.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//); - if (match) this.annotation = match[1].trim(); - }; - - PreviousMap.prototype.decodeInline = function decodeInline(text) { - var utfd64 = 'data:application/json;charset=utf-8;base64,'; - var utf64 = 'data:application/json;charset=utf8;base64,'; - var b64 = 'data:application/json;base64,'; - var uri = 'data:application/json,'; - - if (this.startWith(text, uri)) { - return decodeURIComponent(text.substr(uri.length)); - } else if (this.startWith(text, b64)) { - return _jsBase.Base64.decode(text.substr(b64.length)); - } else if (this.startWith(text, utf64)) { - return _jsBase.Base64.decode(text.substr(utf64.length)); - } else if (this.startWith(text, utfd64)) { - return _jsBase.Base64.decode(text.substr(utfd64.length)); - } else { - var encoding = text.match(/data:application\/json;([^,]+),/)[1]; - throw new Error('Unsupported source map encoding ' + encoding); - } - }; - - PreviousMap.prototype.loadMap = function loadMap(file, prev) { - if (prev === false) return false; - - if (prev) { - if (typeof prev === 'string') { - return prev; - } else if (typeof prev === 'function') { - var prevPath = prev(file); - if (prevPath && _fs2.default.existsSync && _fs2.default.existsSync(prevPath)) { - return _fs2.default.readFileSync(prevPath, 'utf-8').toString().trim(); - } else { - throw new Error('Unable to load previous source map: ' + prevPath.toString()); - } - } else if (prev instanceof _sourceMap2.default.SourceMapConsumer) { - return _sourceMap2.default.SourceMapGenerator.fromSourceMap(prev).toString(); - } else if (prev instanceof _sourceMap2.default.SourceMapGenerator) { - return prev.toString(); - } else if (this.isMap(prev)) { - return JSON.stringify(prev); - } else { - throw new Error('Unsupported previous source map format: ' + prev.toString()); - } - } else if (this.inline) { - return this.decodeInline(this.annotation); - } else if (this.annotation) { - var map = this.annotation; - if (file) map = _path2.default.join(_path2.default.dirname(file), map); - - this.root = _path2.default.dirname(map); - if (_fs2.default.existsSync && _fs2.default.existsSync(map)) { - return _fs2.default.readFileSync(map, 'utf-8').toString().trim(); - } else { - return false; - } - } - }; - - PreviousMap.prototype.isMap = function isMap(map) { - if ((typeof map === 'undefined' ? 'undefined' : _typeof(map)) !== 'object') return false; - return typeof map.mappings === 'string' || typeof map._mappings === 'string'; - }; - - return PreviousMap; -}(); - -exports.default = PreviousMap; -module.exports = exports['default']; - - - -/***/ }), -/* 152 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _lazyResult = __webpack_require__(74); - -var _lazyResult2 = _interopRequireDefault(_lazyResult); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * Contains plugins to process CSS. Create one `Processor` instance, - * initialize its plugins, and then use that instance on numerous CSS files. - * - * @example - * const processor = postcss([autoprefixer, precss]); - * processor.process(css1).then(result => console.log(result.css)); - * processor.process(css2).then(result => console.log(result.css)); - */ -var Processor = function () { - - /** - * @param {Array.|Processor} plugins - PostCSS - * plugins. See {@link Processor#use} for plugin format. - */ - function Processor() { - var plugins = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - - _classCallCheck(this, Processor); - - /** - * @member {string} - Current PostCSS version. - * - * @example - * if ( result.processor.version.split('.')[0] !== '5' ) { - * throw new Error('This plugin works only with PostCSS 5'); - * } - */ - this.version = '5.2.17'; - /** - * @member {pluginFunction[]} - Plugins added to this processor. - * - * @example - * const processor = postcss([autoprefixer, precss]); - * processor.plugins.length //=> 2 - */ - this.plugins = this.normalize(plugins); - } - - /** - * Adds a plugin to be used as a CSS processor. - * - * PostCSS plugin can be in 4 formats: - * * A plugin created by {@link postcss.plugin} method. - * * A function. PostCSS will pass the function a @{link Root} - * as the first argument and current {@link Result} instance - * as the second. - * * An object with a `postcss` method. PostCSS will use that method - * as described in #2. - * * Another {@link Processor} instance. PostCSS will copy plugins - * from that instance into this one. - * - * Plugins can also be added by passing them as arguments when creating - * a `postcss` instance (see [`postcss(plugins)`]). - * - * Asynchronous plugins should return a `Promise` instance. - * - * @param {Plugin|pluginFunction|Processor} plugin - PostCSS plugin - * or {@link Processor} - * with plugins - * - * @example - * const processor = postcss() - * .use(autoprefixer) - * .use(precss); - * - * @return {Processes} current processor to make methods chain - */ - - - Processor.prototype.use = function use(plugin) { - this.plugins = this.plugins.concat(this.normalize([plugin])); - return this; - }; - - /** - * Parses source CSS and returns a {@link LazyResult} Promise proxy. - * Because some plugins can be asynchronous it doesn’t make - * any transformations. Transformations will be applied - * in the {@link LazyResult} methods. - * - * @param {string|toString|Result} css - String with input CSS or - * any object with a `toString()` - * method, like a Buffer. - * Optionally, send a {@link Result} - * instance and the processor will - * take the {@link Root} from it. - * @param {processOptions} [opts] - options - * - * @return {LazyResult} Promise proxy - * - * @example - * processor.process(css, { from: 'a.css', to: 'a.out.css' }) - * .then(result => { - * console.log(result.css); - * }); - */ - - - Processor.prototype.process = function process(css) { - var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - return new _lazyResult2.default(this, css, opts); - }; - - Processor.prototype.normalize = function normalize(plugins) { - var normalized = []; - for (var _iterator = plugins, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var i = _ref; - - if (i.postcss) i = i.postcss; - - if ((typeof i === 'undefined' ? 'undefined' : _typeof(i)) === 'object' && Array.isArray(i.plugins)) { - normalized = normalized.concat(i.plugins); - } else if (typeof i === 'function') { - normalized.push(i); - } else if ((typeof i === 'undefined' ? 'undefined' : _typeof(i)) === 'object' && (i.parse || i.stringify)) { - throw new Error('PostCSS syntaxes cannot be used as plugins. ' + 'Instead, please use one of the ' + 'syntax/parser/stringifier options as ' + 'outlined in your PostCSS ' + 'runner documentation.'); - } else { - throw new Error(i + ' is not a PostCSS plugin'); - } - } - return normalized; - }; - - return Processor; -}(); - -exports.default = Processor; - -/** - * @callback builder - * @param {string} part - part of generated CSS connected to this node - * @param {Node} node - AST node - * @param {"start"|"end"} [type] - node’s part type - */ - -/** - * @callback parser - * - * @param {string|toString} css - string with input CSS or any object - * with toString() method, like a Buffer - * @param {processOptions} [opts] - options with only `from` and `map` keys - * - * @return {Root} PostCSS AST - */ - -/** - * @callback stringifier - * - * @param {Node} node - start node for stringifing. Usually {@link Root}. - * @param {builder} builder - function to concatenate CSS from node’s parts - * or generate string and source map - * - * @return {void} - */ - -/** - * @typedef {object} syntax - * @property {parser} parse - function to generate AST by string - * @property {stringifier} stringify - function to generate string by AST - */ - -/** - * @typedef {object} toString - * @property {function} toString - */ - -/** - * @callback pluginFunction - * @param {Root} root - parsed input CSS - * @param {Result} result - result to set warnings or check other plugins - */ - -/** - * @typedef {object} Plugin - * @property {function} postcss - PostCSS plugin function - */ - -/** - * @typedef {object} processOptions - * @property {string} from - the path of the CSS source file. - * You should always set `from`, - * because it is used in source map - * generation and syntax error messages. - * @property {string} to - the path where you’ll put the output - * CSS file. You should always set `to` - * to generate correct source maps. - * @property {parser} parser - function to generate AST by string - * @property {stringifier} stringifier - class to generate string by AST - * @property {syntax} syntax - object with `parse` and `stringify` - * @property {object} map - source map options - * @property {boolean} map.inline - does source map should - * be embedded in the output - * CSS as a base64-encoded - * comment - * @property {string|object|false|function} map.prev - source map content - * from a previous - * processing step - * (for example, Sass). - * PostCSS will try to find - * previous map - * automatically, so you - * could disable it by - * `false` value. - * @property {boolean} map.sourcesContent - does PostCSS should set - * the origin content to map - * @property {string|false} map.annotation - does PostCSS should set - * annotation comment to map - * @property {string} map.from - override `from` in map’s - * `sources` - */ - -module.exports = exports['default']; - - - -/***/ }), -/* 153 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _warning = __webpack_require__(155); - -var _warning2 = _interopRequireDefault(_warning); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * Provides the result of the PostCSS transformations. - * - * A Result instance is returned by {@link LazyResult#then} - * or {@link Root#toResult} methods. - * - * @example - * postcss([cssnext]).process(css).then(function (result) { - * console.log(result.css); - * }); - * - * @example - * var result2 = postcss.parse(css).toResult(); - */ -var Result = function () { - - /** - * @param {Processor} processor - processor used for this transformation. - * @param {Root} root - Root node after all transformations. - * @param {processOptions} opts - options from the {@link Processor#process} - * or {@link Root#toResult} - */ - function Result(processor, root, opts) { - _classCallCheck(this, Result); - - /** - * @member {Processor} - The Processor instance used - * for this transformation. - * - * @example - * for ( let plugin of result.processor.plugins) { - * if ( plugin.postcssPlugin === 'postcss-bad' ) { - * throw 'postcss-good is incompatible with postcss-bad'; - * } - * }); - */ - this.processor = processor; - /** - * @member {Message[]} - Contains messages from plugins - * (e.g., warnings or custom messages). - * Each message should have type - * and plugin properties. - * - * @example - * postcss.plugin('postcss-min-browser', () => { - * return (root, result) => { - * var browsers = detectMinBrowsersByCanIUse(root); - * result.messages.push({ - * type: 'min-browser', - * plugin: 'postcss-min-browser', - * browsers: browsers - * }); - * }; - * }); - */ - this.messages = []; - /** - * @member {Root} - Root node after all transformations. - * - * @example - * root.toResult().root == root; - */ - this.root = root; - /** - * @member {processOptions} - Options from the {@link Processor#process} - * or {@link Root#toResult} call - * that produced this Result instance. - * - * @example - * root.toResult(opts).opts == opts; - */ - this.opts = opts; - /** - * @member {string} - A CSS string representing of {@link Result#root}. - * - * @example - * postcss.parse('a{}').toResult().css //=> "a{}" - */ - this.css = undefined; - /** - * @member {SourceMapGenerator} - An instance of `SourceMapGenerator` - * class from the `source-map` library, - * representing changes - * to the {@link Result#root} instance. - * - * @example - * result.map.toJSON() //=> { version: 3, file: 'a.css', … } - * - * @example - * if ( result.map ) { - * fs.writeFileSync(result.opts.to + '.map', result.map.toString()); - * } - */ - this.map = undefined; - } - - /** - * Returns for @{link Result#css} content. - * - * @example - * result + '' === result.css - * - * @return {string} string representing of {@link Result#root} - */ - - - Result.prototype.toString = function toString() { - return this.css; - }; - - /** - * Creates an instance of {@link Warning} and adds it - * to {@link Result#messages}. - * - * @param {string} text - warning message - * @param {Object} [opts] - warning options - * @param {Node} opts.node - CSS node that caused the warning - * @param {string} opts.word - word in CSS source that caused the warning - * @param {number} opts.index - index in CSS node string that caused - * the warning - * @param {string} opts.plugin - name of the plugin that created - * this warning. {@link Result#warn} fills - * this property automatically. - * - * @return {Warning} created warning - */ - - - Result.prototype.warn = function warn(text) { - var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - if (!opts.plugin) { - if (this.lastPlugin && this.lastPlugin.postcssPlugin) { - opts.plugin = this.lastPlugin.postcssPlugin; - } - } - - var warning = new _warning2.default(text, opts); - this.messages.push(warning); - - return warning; - }; - - /** - * Returns warnings from plugins. Filters {@link Warning} instances - * from {@link Result#messages}. - * - * @example - * result.warnings().forEach(warn => { - * console.warn(warn.toString()); - * }); - * - * @return {Warning[]} warnings from plugins - */ - - - Result.prototype.warnings = function warnings() { - return this.messages.filter(function (i) { - return i.type === 'warning'; - }); - }; - - /** - * An alias for the {@link Result#css} property. - * Use it with syntaxes that generate non-CSS output. - * @type {string} - * - * @example - * result.css === result.content; - */ - - - _createClass(Result, [{ - key: 'content', - get: function get() { - return this.css; - } - }]); - - return Result; -}(); - -exports.default = Result; - -/** - * @typedef {object} Message - * @property {string} type - message type - * @property {string} plugin - source PostCSS plugin name - */ - -module.exports = exports['default']; - - - -/***/ }), -/* 154 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _chalk = __webpack_require__(79); - -var _chalk2 = _interopRequireDefault(_chalk); - -var _tokenize = __webpack_require__(78); - -var _tokenize2 = _interopRequireDefault(_tokenize); - -var _input = __webpack_require__(26); - -var _input2 = _interopRequireDefault(_input); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var colors = new _chalk2.default.constructor({ enabled: true }); - -var HIGHLIGHT_THEME = { - 'brackets': colors.cyan, - 'at-word': colors.cyan, - 'call': colors.cyan, - 'comment': colors.gray, - 'string': colors.green, - 'class': colors.yellow, - 'hash': colors.magenta, - '(': colors.cyan, - ')': colors.cyan, - '{': colors.yellow, - '}': colors.yellow, - '[': colors.yellow, - ']': colors.yellow, - ':': colors.yellow, - ';': colors.yellow -}; - -function getTokenType(_ref, index, tokens) { - var type = _ref[0], - value = _ref[1]; - - if (type === 'word') { - if (value[0] === '.') { - return 'class'; - } - if (value[0] === '#') { - return 'hash'; - } - } - - var nextToken = tokens[index + 1]; - if (nextToken && (nextToken[0] === 'brackets' || nextToken[0] === '(')) { - return 'call'; - } - - return type; -} - -function terminalHighlight(css) { - var tokens = (0, _tokenize2.default)(new _input2.default(css), { ignoreErrors: true }); - return tokens.map(function (token, index) { - var color = HIGHLIGHT_THEME[getTokenType(token, index, tokens)]; - if (color) { - return token[1].split(/\r?\n/).map(function (i) { - return color(i); - }).join('\n'); - } else { - return token[1]; - } - }).join(''); -} - -exports.default = terminalHighlight; -module.exports = exports['default']; - - - -/***/ }), -/* 155 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * Represents a plugin’s warning. It can be created using {@link Node#warn}. - * - * @example - * if ( decl.important ) { - * decl.warn(result, 'Avoid !important', { word: '!important' }); - * } - */ -var Warning = function () { - - /** - * @param {string} text - warning message - * @param {Object} [opts] - warning options - * @param {Node} opts.node - CSS node that caused the warning - * @param {string} opts.word - word in CSS source that caused the warning - * @param {number} opts.index - index in CSS node string that caused - * the warning - * @param {string} opts.plugin - name of the plugin that created - * this warning. {@link Result#warn} fills - * this property automatically. - */ - function Warning(text) { - var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - _classCallCheck(this, Warning); - - /** - * @member {string} - Type to filter warnings from - * {@link Result#messages}. Always equal - * to `"warning"`. - * - * @example - * const nonWarning = result.messages.filter(i => i.type !== 'warning') - */ - this.type = 'warning'; - /** - * @member {string} - The warning message. - * - * @example - * warning.text //=> 'Try to avoid !important' - */ - this.text = text; - - if (opts.node && opts.node.source) { - var pos = opts.node.positionBy(opts); - /** - * @member {number} - Line in the input file - * with this warning’s source - * - * @example - * warning.line //=> 5 - */ - this.line = pos.line; - /** - * @member {number} - Column in the input file - * with this warning’s source. - * - * @example - * warning.column //=> 6 - */ - this.column = pos.column; - } - - for (var opt in opts) { - this[opt] = opts[opt]; - } - } - - /** - * Returns a warning position and message. - * - * @example - * warning.toString() //=> 'postcss-lint:a.css:10:14: Avoid !important' - * - * @return {string} warning position and message - */ - - - Warning.prototype.toString = function toString() { - if (this.node) { - return this.node.error(this.text, { - plugin: this.plugin, - index: this.index, - word: this.word - }).message; - } else if (this.plugin) { - return this.plugin + ': ' + this.text; - } else { - return this.text; - } - }; - - /** - * @memberof Warning# - * @member {string} plugin - The name of the plugin that created - * it will fill this property automatically. - * this warning. When you call {@link Node#warn} - * - * @example - * warning.plugin //=> 'postcss-important' - */ - - /** - * @memberof Warning# - * @member {Node} node - Contains the CSS node that caused the warning. - * - * @example - * warning.node.toString() //=> 'color: white !important' - */ - - return Warning; -}(); - -exports.default = Warning; -module.exports = exports['default']; - - - -/***/ }), -/* 156 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -module.exports = function () { - return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g; -}; - - -/***/ }), -/* 157 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(module) { - -function assembleStyles () { - var styles = { - modifiers: { - reset: [0, 0], - bold: [1, 22], // 21 isn't widely supported and 22 does the same thing - dim: [2, 22], - italic: [3, 23], - underline: [4, 24], - inverse: [7, 27], - hidden: [8, 28], - strikethrough: [9, 29] - }, - colors: { - black: [30, 39], - red: [31, 39], - green: [32, 39], - yellow: [33, 39], - blue: [34, 39], - magenta: [35, 39], - cyan: [36, 39], - white: [37, 39], - gray: [90, 39] - }, - bgColors: { - bgBlack: [40, 49], - bgRed: [41, 49], - bgGreen: [42, 49], - bgYellow: [43, 49], - bgBlue: [44, 49], - bgMagenta: [45, 49], - bgCyan: [46, 49], - bgWhite: [47, 49] - } - }; - - // fix humans - styles.colors.grey = styles.colors.gray; - - Object.keys(styles).forEach(function (groupName) { - var group = styles[groupName]; - - Object.keys(group).forEach(function (styleName) { - var style = group[styleName]; - - styles[styleName] = group[styleName] = { - open: '\u001b[' + style[0] + 'm', - close: '\u001b[' + style[1] + 'm' - }; - }); - - Object.defineProperty(styles, groupName, { - value: group, - enumerable: false - }); - }); - - return styles; -} - -Object.defineProperty(module, 'exports', { - enumerable: true, - get: assembleStyles -}); - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(170)(module))); - -/***/ }), -/* 158 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) { -var argv = process.argv; - -var terminator = argv.indexOf('--'); -var hasFlag = function (flag) { - flag = '--' + flag; - var pos = argv.indexOf(flag); - return pos !== -1 && (terminator !== -1 ? pos < terminator : true); -}; - -module.exports = (function () { - if ('FORCE_COLOR' in process.env) { - return true; - } - - if (hasFlag('no-color') || - hasFlag('no-colors') || - hasFlag('color=false')) { - return false; - } - - if (hasFlag('color') || - hasFlag('colors') || - hasFlag('color=true') || - hasFlag('color=always')) { - return true; - } - - if (process.stdout && !process.stdout.isTTY) { - return false; - } - - if (process.platform === 'win32') { - return true; - } - - if ('COLORTERM' in process.env) { - return true; - } - - if (process.env.TERM === 'dumb') { - return false; - } - - if (/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)) { - return true; - } - - return false; -})(); - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(14))); - -/***/ }), -/* 159 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var ansiRegex = __webpack_require__(156)(); - -module.exports = function (str) { - return typeof str === 'string' ? str.replace(ansiRegex, '') : str; -}; - - -/***/ }), -/* 160 */ -/***/ (function(module, exports) { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -var intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split(''); - -/** - * Encode an integer in the range of 0 to 63 to a single base 64 digit. - */ -exports.encode = function (number) { - if (0 <= number && number < intToCharMap.length) { - return intToCharMap[number]; - } - throw new TypeError("Must be between 0 and 63: " + number); -}; - -/** - * Decode a single base 64 character code digit to an integer. Returns -1 on - * failure. - */ -exports.decode = function (charCode) { - var bigA = 65; // 'A' - var bigZ = 90; // 'Z' - - var littleA = 97; // 'a' - var littleZ = 122; // 'z' - - var zero = 48; // '0' - var nine = 57; // '9' - - var plus = 43; // '+' - var slash = 47; // '/' - - var littleOffset = 26; - var numberOffset = 52; - - // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ - if (bigA <= charCode && charCode <= bigZ) { - return (charCode - bigA); - } - - // 26 - 51: abcdefghijklmnopqrstuvwxyz - if (littleA <= charCode && charCode <= littleZ) { - return (charCode - littleA + littleOffset); - } - - // 52 - 61: 0123456789 - if (zero <= charCode && charCode <= nine) { - return (charCode - zero + numberOffset); - } - - // 62: + - if (charCode == plus) { - return 62; - } - - // 63: / - if (charCode == slash) { - return 63; - } - - // Invalid base64 digit. - return -1; -}; - - -/***/ }), -/* 161 */ -/***/ (function(module, exports) { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -exports.GREATEST_LOWER_BOUND = 1; -exports.LEAST_UPPER_BOUND = 2; - -/** - * Recursive implementation of binary search. - * - * @param aLow Indices here and lower do not contain the needle. - * @param aHigh Indices here and higher do not contain the needle. - * @param aNeedle The element being searched for. - * @param aHaystack The non-empty array being searched. - * @param aCompare Function which takes two elements and returns -1, 0, or 1. - * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or - * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - */ -function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) { - // This function terminates when one of the following is true: - // - // 1. We find the exact element we are looking for. - // - // 2. We did not find the exact element, but we can return the index of - // the next-closest element. - // - // 3. We did not find the exact element, and there is no next-closest - // element than the one we are searching for, so we return -1. - var mid = Math.floor((aHigh - aLow) / 2) + aLow; - var cmp = aCompare(aNeedle, aHaystack[mid], true); - if (cmp === 0) { - // Found the element we are looking for. - return mid; - } - else if (cmp > 0) { - // Our needle is greater than aHaystack[mid]. - if (aHigh - mid > 1) { - // The element is in the upper half. - return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias); - } - - // The exact needle element was not found in this haystack. Determine if - // we are in termination case (3) or (2) and return the appropriate thing. - if (aBias == exports.LEAST_UPPER_BOUND) { - return aHigh < aHaystack.length ? aHigh : -1; - } else { - return mid; - } - } - else { - // Our needle is less than aHaystack[mid]. - if (mid - aLow > 1) { - // The element is in the lower half. - return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias); - } - - // we are in termination case (3) or (2) and return the appropriate thing. - if (aBias == exports.LEAST_UPPER_BOUND) { - return mid; - } else { - return aLow < 0 ? -1 : aLow; - } - } -} - -/** - * This is an implementation of binary search which will always try and return - * the index of the closest element if there is no exact hit. This is because - * mappings between original and generated line/col pairs are single points, - * and there is an implicit region between each of them, so a miss just means - * that you aren't on the very start of a region. - * - * @param aNeedle The element you are looking for. - * @param aHaystack The array that is being searched. - * @param aCompare A function which takes the needle and an element in the - * array and returns -1, 0, or 1 depending on whether the needle is less - * than, equal to, or greater than the element, respectively. - * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or - * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'. - */ -exports.search = function search(aNeedle, aHaystack, aCompare, aBias) { - if (aHaystack.length === 0) { - return -1; - } - - var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, - aCompare, aBias || exports.GREATEST_LOWER_BOUND); - if (index < 0) { - return -1; - } - - // We have found either the exact element, or the next-closest element than - // the one we are searching for. However, there may be more than one such - // element. Make sure we always return the smallest of these. - while (index - 1 >= 0) { - if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) { - break; - } - --index; - } - - return index; -}; - - -/***/ }), -/* 162 */ -/***/ (function(module, exports, __webpack_require__) { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2014 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -var util = __webpack_require__(11); - -/** - * Determine whether mappingB is after mappingA with respect to generated - * position. - */ -function generatedPositionAfter(mappingA, mappingB) { - // Optimized for most common case - var lineA = mappingA.generatedLine; - var lineB = mappingB.generatedLine; - var columnA = mappingA.generatedColumn; - var columnB = mappingB.generatedColumn; - return lineB > lineA || lineB == lineA && columnB >= columnA || - util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0; -} - -/** - * A data structure to provide a sorted view of accumulated mappings in a - * performance conscious manner. It trades a neglibable overhead in general - * case for a large speedup in case of mappings being added in order. - */ -function MappingList() { - this._array = []; - this._sorted = true; - // Serves as infimum - this._last = {generatedLine: -1, generatedColumn: 0}; -} - -/** - * Iterate through internal items. This method takes the same arguments that - * `Array.prototype.forEach` takes. - * - * NOTE: The order of the mappings is NOT guaranteed. - */ -MappingList.prototype.unsortedForEach = - function MappingList_forEach(aCallback, aThisArg) { - this._array.forEach(aCallback, aThisArg); - }; - -/** - * Add the given source mapping. - * - * @param Object aMapping - */ -MappingList.prototype.add = function MappingList_add(aMapping) { - if (generatedPositionAfter(this._last, aMapping)) { - this._last = aMapping; - this._array.push(aMapping); - } else { - this._sorted = false; - this._array.push(aMapping); - } -}; - -/** - * Returns the flat, sorted array of mappings. The mappings are sorted by - * generated position. - * - * WARNING: This method returns internal data without copying, for - * performance. The return value must NOT be mutated, and should be treated as - * an immutable borrow. If you want to take ownership, you must make your own - * copy. - */ -MappingList.prototype.toArray = function MappingList_toArray() { - if (!this._sorted) { - this._array.sort(util.compareByGeneratedPositionsInflated); - this._sorted = true; - } - return this._array; -}; - -exports.MappingList = MappingList; - - -/***/ }), -/* 163 */ -/***/ (function(module, exports) { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -// It turns out that some (most?) JavaScript engines don't self-host -// `Array.prototype.sort`. This makes sense because C++ will likely remain -// faster than JS when doing raw CPU-intensive sorting. However, when using a -// custom comparator function, calling back and forth between the VM's C++ and -// JIT'd JS is rather slow *and* loses JIT type information, resulting in -// worse generated code for the comparator function than would be optimal. In -// fact, when sorting with a comparator, these costs outweigh the benefits of -// sorting in C++. By using our own JS-implemented Quick Sort (below), we get -// a ~3500ms mean speed-up in `bench/bench.html`. - -/** - * Swap the elements indexed by `x` and `y` in the array `ary`. - * - * @param {Array} ary - * The array. - * @param {Number} x - * The index of the first item. - * @param {Number} y - * The index of the second item. - */ -function swap(ary, x, y) { - var temp = ary[x]; - ary[x] = ary[y]; - ary[y] = temp; -} - -/** - * Returns a random integer within the range `low .. high` inclusive. - * - * @param {Number} low - * The lower bound on the range. - * @param {Number} high - * The upper bound on the range. - */ -function randomIntInRange(low, high) { - return Math.round(low + (Math.random() * (high - low))); -} - -/** - * The Quick Sort algorithm. - * - * @param {Array} ary - * An array to sort. - * @param {function} comparator - * Function to use to compare two items. - * @param {Number} p - * Start index of the array - * @param {Number} r - * End index of the array - */ -function doQuickSort(ary, comparator, p, r) { - // If our lower bound is less than our upper bound, we (1) partition the - // array into two pieces and (2) recurse on each half. If it is not, this is - // the empty array and our base case. - - if (p < r) { - // (1) Partitioning. - // - // The partitioning chooses a pivot between `p` and `r` and moves all - // elements that are less than or equal to the pivot to the before it, and - // all the elements that are greater than it after it. The effect is that - // once partition is done, the pivot is in the exact place it will be when - // the array is put in sorted order, and it will not need to be moved - // again. This runs in O(n) time. - - // Always choose a random pivot so that an input array which is reverse - // sorted does not cause O(n^2) running time. - var pivotIndex = randomIntInRange(p, r); - var i = p - 1; - - swap(ary, pivotIndex, r); - var pivot = ary[r]; - - // Immediately after `j` is incremented in this loop, the following hold - // true: - // - // * Every element in `ary[p .. i]` is less than or equal to the pivot. - // - // * Every element in `ary[i+1 .. j-1]` is greater than the pivot. - for (var j = p; j < r; j++) { - if (comparator(ary[j], pivot) <= 0) { - i += 1; - swap(ary, i, j); - } - } - - swap(ary, i + 1, j); - var q = i + 1; - - // (2) Recurse on each half. - - doQuickSort(ary, comparator, p, q - 1); - doQuickSort(ary, comparator, q + 1, r); - } -} - -/** - * Sort the given array in-place with the given comparator function. - * - * @param {Array} ary - * An array to sort. - * @param {function} comparator - * Function to use to compare two items. - */ -exports.quickSort = function (ary, comparator) { - doQuickSort(ary, comparator, 0, ary.length - 1); -}; - - -/***/ }), -/* 164 */ -/***/ (function(module, exports, __webpack_require__) { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -var util = __webpack_require__(11); -var binarySearch = __webpack_require__(161); -var ArraySet = __webpack_require__(80).ArraySet; -var base64VLQ = __webpack_require__(81); -var quickSort = __webpack_require__(163).quickSort; - -function SourceMapConsumer(aSourceMap) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = JSON.parse(aSourceMap.replace(/^\)\]\}'/, '')); - } - - return sourceMap.sections != null - ? new IndexedSourceMapConsumer(sourceMap) - : new BasicSourceMapConsumer(sourceMap); -} - -SourceMapConsumer.fromSourceMap = function(aSourceMap) { - return BasicSourceMapConsumer.fromSourceMap(aSourceMap); -}; - -/** - * The version of the source mapping spec that we are consuming. - */ -SourceMapConsumer.prototype._version = 3; - -// `__generatedMappings` and `__originalMappings` are arrays that hold the -// parsed mapping coordinates from the source map's "mappings" attribute. They -// are lazily instantiated, accessed via the `_generatedMappings` and -// `_originalMappings` getters respectively, and we only parse the mappings -// and create these arrays once queried for a source location. We jump through -// these hoops because there can be many thousands of mappings, and parsing -// them is expensive, so we only want to do it if we must. -// -// Each object in the arrays is of the form: -// -// { -// generatedLine: The line number in the generated code, -// generatedColumn: The column number in the generated code, -// source: The path to the original source file that generated this -// chunk of code, -// originalLine: The line number in the original source that -// corresponds to this chunk of generated code, -// originalColumn: The column number in the original source that -// corresponds to this chunk of generated code, -// name: The name of the original symbol which generated this chunk of -// code. -// } -// -// All properties except for `generatedLine` and `generatedColumn` can be -// `null`. -// -// `_generatedMappings` is ordered by the generated positions. -// -// `_originalMappings` is ordered by the original positions. - -SourceMapConsumer.prototype.__generatedMappings = null; -Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', { - get: function () { - if (!this.__generatedMappings) { - this._parseMappings(this._mappings, this.sourceRoot); - } - - return this.__generatedMappings; - } -}); - -SourceMapConsumer.prototype.__originalMappings = null; -Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', { - get: function () { - if (!this.__originalMappings) { - this._parseMappings(this._mappings, this.sourceRoot); - } - - return this.__originalMappings; - } -}); - -SourceMapConsumer.prototype._charIsMappingSeparator = - function SourceMapConsumer_charIsMappingSeparator(aStr, index) { - var c = aStr.charAt(index); - return c === ";" || c === ","; - }; - -/** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). - */ -SourceMapConsumer.prototype._parseMappings = - function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { - throw new Error("Subclasses must implement _parseMappings"); - }; - -SourceMapConsumer.GENERATED_ORDER = 1; -SourceMapConsumer.ORIGINAL_ORDER = 2; - -SourceMapConsumer.GREATEST_LOWER_BOUND = 1; -SourceMapConsumer.LEAST_UPPER_BOUND = 2; - -/** - * Iterate over each mapping between an original source/line/column and a - * generated line/column in this source map. - * - * @param Function aCallback - * The function that is called with each mapping. - * @param Object aContext - * Optional. If specified, this object will be the value of `this` every - * time that `aCallback` is called. - * @param aOrder - * Either `SourceMapConsumer.GENERATED_ORDER` or - * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to - * iterate over the mappings sorted by the generated file's line/column - * order or the original's source/line/column order, respectively. Defaults to - * `SourceMapConsumer.GENERATED_ORDER`. - */ -SourceMapConsumer.prototype.eachMapping = - function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) { - var context = aContext || null; - var order = aOrder || SourceMapConsumer.GENERATED_ORDER; - - var mappings; - switch (order) { - case SourceMapConsumer.GENERATED_ORDER: - mappings = this._generatedMappings; - break; - case SourceMapConsumer.ORIGINAL_ORDER: - mappings = this._originalMappings; - break; - default: - throw new Error("Unknown order of iteration."); - } - - var sourceRoot = this.sourceRoot; - mappings.map(function (mapping) { - var source = mapping.source === null ? null : this._sources.at(mapping.source); - if (source != null && sourceRoot != null) { - source = util.join(sourceRoot, source); - } - return { - source: source, - generatedLine: mapping.generatedLine, - generatedColumn: mapping.generatedColumn, - originalLine: mapping.originalLine, - originalColumn: mapping.originalColumn, - name: mapping.name === null ? null : this._names.at(mapping.name) - }; - }, this).forEach(aCallback, context); - }; - -/** - * Returns all generated line and column information for the original source, - * line, and column provided. If no column is provided, returns all mappings - * corresponding to a either the line we are searching for or the next - * closest line that has any mappings. Otherwise, returns all mappings - * corresponding to the given line and either the column we are searching for - * or the next closest column that has any offsets. - * - * The only argument is an object with the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. - * - column: Optional. the column number in the original source. - * - * and an array of objects is returned, each with the following properties: - * - * - line: The line number in the generated source, or null. - * - column: The column number in the generated source, or null. - */ -SourceMapConsumer.prototype.allGeneratedPositionsFor = - function SourceMapConsumer_allGeneratedPositionsFor(aArgs) { - var line = util.getArg(aArgs, 'line'); - - // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping - // returns the index of the closest mapping less than the needle. By - // setting needle.originalColumn to 0, we thus find the last mapping for - // the given line, provided such a mapping exists. - var needle = { - source: util.getArg(aArgs, 'source'), - originalLine: line, - originalColumn: util.getArg(aArgs, 'column', 0) - }; - - if (this.sourceRoot != null) { - needle.source = util.relative(this.sourceRoot, needle.source); - } - if (!this._sources.has(needle.source)) { - return []; - } - needle.source = this._sources.indexOf(needle.source); - - var mappings = []; - - var index = this._findMapping(needle, - this._originalMappings, - "originalLine", - "originalColumn", - util.compareByOriginalPositions, - binarySearch.LEAST_UPPER_BOUND); - if (index >= 0) { - var mapping = this._originalMappings[index]; - - if (aArgs.column === undefined) { - var originalLine = mapping.originalLine; - - // Iterate until either we run out of mappings, or we run into - // a mapping for a different line than the one we found. Since - // mappings are sorted, this is guaranteed to find all mappings for - // the line we found. - while (mapping && mapping.originalLine === originalLine) { - mappings.push({ - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }); - - mapping = this._originalMappings[++index]; - } - } else { - var originalColumn = mapping.originalColumn; - - // Iterate until either we run out of mappings, or we run into - // a mapping for a different line than the one we were searching for. - // Since mappings are sorted, this is guaranteed to find all mappings for - // the line we are searching for. - while (mapping && - mapping.originalLine === line && - mapping.originalColumn == originalColumn) { - mappings.push({ - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }); - - mapping = this._originalMappings[++index]; - } - } - } - - return mappings; - }; - -exports.SourceMapConsumer = SourceMapConsumer; - -/** - * A BasicSourceMapConsumer instance represents a parsed source map which we can - * query for information about the original file positions by giving it a file - * position in the generated source. - * - * The only parameter is the raw source map (either as a JSON string, or - * already parsed to an object). According to the spec, source maps have the - * following attributes: - * - * - version: Which version of the source map spec this map is following. - * - sources: An array of URLs to the original source files. - * - names: An array of identifiers which can be referrenced by individual mappings. - * - sourceRoot: Optional. The URL root from which all sources are relative. - * - sourcesContent: Optional. An array of contents of the original source files. - * - mappings: A string of base64 VLQs which contain the actual mappings. - * - file: Optional. The generated file this source map is associated with. - * - * Here is an example source map, taken from the source map spec[0]: - * - * { - * version : 3, - * file: "out.js", - * sourceRoot : "", - * sources: ["foo.js", "bar.js"], - * names: ["src", "maps", "are", "fun"], - * mappings: "AA,AB;;ABCDE;" - * } - * - * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1# - */ -function BasicSourceMapConsumer(aSourceMap) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = JSON.parse(aSourceMap.replace(/^\)\]\}'/, '')); - } - - var version = util.getArg(sourceMap, 'version'); - var sources = util.getArg(sourceMap, 'sources'); - // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which - // requires the array) to play nice here. - var names = util.getArg(sourceMap, 'names', []); - var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null); - var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null); - var mappings = util.getArg(sourceMap, 'mappings'); - var file = util.getArg(sourceMap, 'file', null); - - // Once again, Sass deviates from the spec and supplies the version as a - // string rather than a number, so we use loose equality checking here. - if (version != this._version) { - throw new Error('Unsupported version: ' + version); - } - - sources = sources - .map(String) - // Some source maps produce relative source paths like "./foo.js" instead of - // "foo.js". Normalize these first so that future comparisons will succeed. - // See bugzil.la/1090768. - .map(util.normalize) - // Always ensure that absolute sources are internally stored relative to - // the source root, if the source root is absolute. Not doing this would - // be particularly problematic when the source root is a prefix of the - // source (valid, but why??). See github issue #199 and bugzil.la/1188982. - .map(function (source) { - return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) - ? util.relative(sourceRoot, source) - : source; - }); - - // Pass `true` below to allow duplicate names and sources. While source maps - // are intended to be compressed and deduplicated, the TypeScript compiler - // sometimes generates source maps with duplicates in them. See Github issue - // #72 and bugzil.la/889492. - this._names = ArraySet.fromArray(names.map(String), true); - this._sources = ArraySet.fromArray(sources, true); - - this.sourceRoot = sourceRoot; - this.sourcesContent = sourcesContent; - this._mappings = mappings; - this.file = file; -} - -BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); -BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer; - -/** - * Create a BasicSourceMapConsumer from a SourceMapGenerator. - * - * @param SourceMapGenerator aSourceMap - * The source map that will be consumed. - * @returns BasicSourceMapConsumer - */ -BasicSourceMapConsumer.fromSourceMap = - function SourceMapConsumer_fromSourceMap(aSourceMap) { - var smc = Object.create(BasicSourceMapConsumer.prototype); - - var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true); - var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true); - smc.sourceRoot = aSourceMap._sourceRoot; - smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(), - smc.sourceRoot); - smc.file = aSourceMap._file; - - // Because we are modifying the entries (by converting string sources and - // names to indices into the sources and names ArraySets), we have to make - // a copy of the entry or else bad things happen. Shared mutable state - // strikes again! See github issue #191. - - var generatedMappings = aSourceMap._mappings.toArray().slice(); - var destGeneratedMappings = smc.__generatedMappings = []; - var destOriginalMappings = smc.__originalMappings = []; - - for (var i = 0, length = generatedMappings.length; i < length; i++) { - var srcMapping = generatedMappings[i]; - var destMapping = new Mapping; - destMapping.generatedLine = srcMapping.generatedLine; - destMapping.generatedColumn = srcMapping.generatedColumn; - - if (srcMapping.source) { - destMapping.source = sources.indexOf(srcMapping.source); - destMapping.originalLine = srcMapping.originalLine; - destMapping.originalColumn = srcMapping.originalColumn; - - if (srcMapping.name) { - destMapping.name = names.indexOf(srcMapping.name); - } - - destOriginalMappings.push(destMapping); - } - - destGeneratedMappings.push(destMapping); - } - - quickSort(smc.__originalMappings, util.compareByOriginalPositions); - - return smc; - }; - -/** - * The version of the source mapping spec that we are consuming. - */ -BasicSourceMapConsumer.prototype._version = 3; - -/** - * The list of original sources. - */ -Object.defineProperty(BasicSourceMapConsumer.prototype, 'sources', { - get: function () { - return this._sources.toArray().map(function (s) { - return this.sourceRoot != null ? util.join(this.sourceRoot, s) : s; - }, this); - } -}); - -/** - * Provide the JIT with a nice shape / hidden class. - */ -function Mapping() { - this.generatedLine = 0; - this.generatedColumn = 0; - this.source = null; - this.originalLine = null; - this.originalColumn = null; - this.name = null; -} - -/** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). - */ -BasicSourceMapConsumer.prototype._parseMappings = - function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { - var generatedLine = 1; - var previousGeneratedColumn = 0; - var previousOriginalLine = 0; - var previousOriginalColumn = 0; - var previousSource = 0; - var previousName = 0; - var length = aStr.length; - var index = 0; - var cachedSegments = {}; - var temp = {}; - var originalMappings = []; - var generatedMappings = []; - var mapping, str, segment, end, value; - - while (index < length) { - if (aStr.charAt(index) === ';') { - generatedLine++; - index++; - previousGeneratedColumn = 0; - } - else if (aStr.charAt(index) === ',') { - index++; - } - else { - mapping = new Mapping(); - mapping.generatedLine = generatedLine; - - // Because each offset is encoded relative to the previous one, - // many segments often have the same encoding. We can exploit this - // fact by caching the parsed variable length fields of each segment, - // allowing us to avoid a second parse if we encounter the same - // segment again. - for (end = index; end < length; end++) { - if (this._charIsMappingSeparator(aStr, end)) { - break; - } - } - str = aStr.slice(index, end); - - segment = cachedSegments[str]; - if (segment) { - index += str.length; - } else { - segment = []; - while (index < end) { - base64VLQ.decode(aStr, index, temp); - value = temp.value; - index = temp.rest; - segment.push(value); - } - - if (segment.length === 2) { - throw new Error('Found a source, but no line and column'); - } - - if (segment.length === 3) { - throw new Error('Found a source and line, but no column'); - } - - cachedSegments[str] = segment; - } - - // Generated column. - mapping.generatedColumn = previousGeneratedColumn + segment[0]; - previousGeneratedColumn = mapping.generatedColumn; - - if (segment.length > 1) { - // Original source. - mapping.source = previousSource + segment[1]; - previousSource += segment[1]; - - // Original line. - mapping.originalLine = previousOriginalLine + segment[2]; - previousOriginalLine = mapping.originalLine; - // Lines are stored 0-based - mapping.originalLine += 1; - - // Original column. - mapping.originalColumn = previousOriginalColumn + segment[3]; - previousOriginalColumn = mapping.originalColumn; - - if (segment.length > 4) { - // Original name. - mapping.name = previousName + segment[4]; - previousName += segment[4]; - } - } - - generatedMappings.push(mapping); - if (typeof mapping.originalLine === 'number') { - originalMappings.push(mapping); - } - } - } - - quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated); - this.__generatedMappings = generatedMappings; - - quickSort(originalMappings, util.compareByOriginalPositions); - this.__originalMappings = originalMappings; - }; - -/** - * Find the mapping that best matches the hypothetical "needle" mapping that - * we are searching for in the given "haystack" of mappings. - */ -BasicSourceMapConsumer.prototype._findMapping = - function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, - aColumnName, aComparator, aBias) { - // To return the position we are searching for, we must first find the - // mapping for the given position and then return the opposite position it - // points to. Because the mappings are sorted, we can use binary search to - // find the best mapping. - - if (aNeedle[aLineName] <= 0) { - throw new TypeError('Line must be greater than or equal to 1, got ' - + aNeedle[aLineName]); - } - if (aNeedle[aColumnName] < 0) { - throw new TypeError('Column must be greater than or equal to 0, got ' - + aNeedle[aColumnName]); - } - - return binarySearch.search(aNeedle, aMappings, aComparator, aBias); - }; - -/** - * Compute the last column for each generated mapping. The last column is - * inclusive. - */ -BasicSourceMapConsumer.prototype.computeColumnSpans = - function SourceMapConsumer_computeColumnSpans() { - for (var index = 0; index < this._generatedMappings.length; ++index) { - var mapping = this._generatedMappings[index]; - - // Mappings do not contain a field for the last generated columnt. We - // can come up with an optimistic estimate, however, by assuming that - // mappings are contiguous (i.e. given two consecutive mappings, the - // first mapping ends where the second one starts). - if (index + 1 < this._generatedMappings.length) { - var nextMapping = this._generatedMappings[index + 1]; - - if (mapping.generatedLine === nextMapping.generatedLine) { - mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1; - continue; - } - } - - // The last mapping for each line spans the entire line. - mapping.lastGeneratedColumn = Infinity; - } - }; - -/** - * Returns the original source, line, and column information for the generated - * source's line and column positions provided. The only argument is an object - * with the following properties: - * - * - line: The line number in the generated source. - * - column: The column number in the generated source. - * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or - * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. - * - * and an object is returned with the following properties: - * - * - source: The original source file, or null. - * - line: The line number in the original source, or null. - * - column: The column number in the original source, or null. - * - name: The original identifier, or null. - */ -BasicSourceMapConsumer.prototype.originalPositionFor = - function SourceMapConsumer_originalPositionFor(aArgs) { - var needle = { - generatedLine: util.getArg(aArgs, 'line'), - generatedColumn: util.getArg(aArgs, 'column') - }; - - var index = this._findMapping( - needle, - this._generatedMappings, - "generatedLine", - "generatedColumn", - util.compareByGeneratedPositionsDeflated, - util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) - ); - - if (index >= 0) { - var mapping = this._generatedMappings[index]; - - if (mapping.generatedLine === needle.generatedLine) { - var source = util.getArg(mapping, 'source', null); - if (source !== null) { - source = this._sources.at(source); - if (this.sourceRoot != null) { - source = util.join(this.sourceRoot, source); - } - } - var name = util.getArg(mapping, 'name', null); - if (name !== null) { - name = this._names.at(name); - } - return { - source: source, - line: util.getArg(mapping, 'originalLine', null), - column: util.getArg(mapping, 'originalColumn', null), - name: name - }; - } - } - - return { - source: null, - line: null, - column: null, - name: null - }; - }; - -/** - * Return true if we have the source content for every source in the source - * map, false otherwise. - */ -BasicSourceMapConsumer.prototype.hasContentsOfAllSources = - function BasicSourceMapConsumer_hasContentsOfAllSources() { - if (!this.sourcesContent) { - return false; - } - return this.sourcesContent.length >= this._sources.size() && - !this.sourcesContent.some(function (sc) { return sc == null; }); - }; - -/** - * Returns the original source content. The only argument is the url of the - * original source file. Returns null if no original source content is - * available. - */ -BasicSourceMapConsumer.prototype.sourceContentFor = - function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { - if (!this.sourcesContent) { - return null; - } - - if (this.sourceRoot != null) { - aSource = util.relative(this.sourceRoot, aSource); - } - - if (this._sources.has(aSource)) { - return this.sourcesContent[this._sources.indexOf(aSource)]; - } - - var url; - if (this.sourceRoot != null - && (url = util.urlParse(this.sourceRoot))) { - // XXX: file:// URIs and absolute paths lead to unexpected behavior for - // many users. We can help them out when they expect file:// URIs to - // behave like it would if they were running a local HTTP server. See - // https://bugzilla.mozilla.org/show_bug.cgi?id=885597. - var fileUriAbsPath = aSource.replace(/^file:\/\//, ""); - if (url.scheme == "file" - && this._sources.has(fileUriAbsPath)) { - return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)] - } - - if ((!url.path || url.path == "/") - && this._sources.has("/" + aSource)) { - return this.sourcesContent[this._sources.indexOf("/" + aSource)]; - } - } - - // This function is used recursively from - // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we - // don't want to throw if we can't find the source - we just want to - // return null, so we provide a flag to exit gracefully. - if (nullOnMissing) { - return null; - } - else { - throw new Error('"' + aSource + '" is not in the SourceMap.'); - } - }; - -/** - * Returns the generated line and column information for the original source, - * line, and column positions provided. The only argument is an object with - * the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. - * - column: The column number in the original source. - * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or - * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. - * - * and an object is returned with the following properties: - * - * - line: The line number in the generated source, or null. - * - column: The column number in the generated source, or null. - */ -BasicSourceMapConsumer.prototype.generatedPositionFor = - function SourceMapConsumer_generatedPositionFor(aArgs) { - var source = util.getArg(aArgs, 'source'); - if (this.sourceRoot != null) { - source = util.relative(this.sourceRoot, source); - } - if (!this._sources.has(source)) { - return { - line: null, - column: null, - lastColumn: null - }; - } - source = this._sources.indexOf(source); - - var needle = { - source: source, - originalLine: util.getArg(aArgs, 'line'), - originalColumn: util.getArg(aArgs, 'column') - }; - - var index = this._findMapping( - needle, - this._originalMappings, - "originalLine", - "originalColumn", - util.compareByOriginalPositions, - util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) - ); - - if (index >= 0) { - var mapping = this._originalMappings[index]; - - if (mapping.source === needle.source) { - return { - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }; - } - } - - return { - line: null, - column: null, - lastColumn: null - }; - }; - -exports.BasicSourceMapConsumer = BasicSourceMapConsumer; - -/** - * An IndexedSourceMapConsumer instance represents a parsed source map which - * we can query for information. It differs from BasicSourceMapConsumer in - * that it takes "indexed" source maps (i.e. ones with a "sections" field) as - * input. - * - * The only parameter is a raw source map (either as a JSON string, or already - * parsed to an object). According to the spec for indexed source maps, they - * have the following attributes: - * - * - version: Which version of the source map spec this map is following. - * - file: Optional. The generated file this source map is associated with. - * - sections: A list of section definitions. - * - * Each value under the "sections" field has two fields: - * - offset: The offset into the original specified at which this section - * begins to apply, defined as an object with a "line" and "column" - * field. - * - map: A source map definition. This source map could also be indexed, - * but doesn't have to be. - * - * Instead of the "map" field, it's also possible to have a "url" field - * specifying a URL to retrieve a source map from, but that's currently - * unsupported. - * - * Here's an example source map, taken from the source map spec[0], but - * modified to omit a section which uses the "url" field. - * - * { - * version : 3, - * file: "app.js", - * sections: [{ - * offset: {line:100, column:10}, - * map: { - * version : 3, - * file: "section.js", - * sources: ["foo.js", "bar.js"], - * names: ["src", "maps", "are", "fun"], - * mappings: "AAAA,E;;ABCDE;" - * } - * }], - * } - * - * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt - */ -function IndexedSourceMapConsumer(aSourceMap) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = JSON.parse(aSourceMap.replace(/^\)\]\}'/, '')); - } - - var version = util.getArg(sourceMap, 'version'); - var sections = util.getArg(sourceMap, 'sections'); - - if (version != this._version) { - throw new Error('Unsupported version: ' + version); - } - - this._sources = new ArraySet(); - this._names = new ArraySet(); - - var lastOffset = { - line: -1, - column: 0 - }; - this._sections = sections.map(function (s) { - if (s.url) { - // The url field will require support for asynchronicity. - // See https://github.com/mozilla/source-map/issues/16 - throw new Error('Support for url field in sections not implemented.'); - } - var offset = util.getArg(s, 'offset'); - var offsetLine = util.getArg(offset, 'line'); - var offsetColumn = util.getArg(offset, 'column'); - - if (offsetLine < lastOffset.line || - (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) { - throw new Error('Section offsets must be ordered and non-overlapping.'); - } - lastOffset = offset; - - return { - generatedOffset: { - // The offset fields are 0-based, but we use 1-based indices when - // encoding/decoding from VLQ. - generatedLine: offsetLine + 1, - generatedColumn: offsetColumn + 1 - }, - consumer: new SourceMapConsumer(util.getArg(s, 'map')) - } - }); -} - -IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); -IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer; - -/** - * The version of the source mapping spec that we are consuming. - */ -IndexedSourceMapConsumer.prototype._version = 3; - -/** - * The list of original sources. - */ -Object.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', { - get: function () { - var sources = []; - for (var i = 0; i < this._sections.length; i++) { - for (var j = 0; j < this._sections[i].consumer.sources.length; j++) { - sources.push(this._sections[i].consumer.sources[j]); - } - } - return sources; - } -}); - -/** - * Returns the original source, line, and column information for the generated - * source's line and column positions provided. The only argument is an object - * with the following properties: - * - * - line: The line number in the generated source. - * - column: The column number in the generated source. - * - * and an object is returned with the following properties: - * - * - source: The original source file, or null. - * - line: The line number in the original source, or null. - * - column: The column number in the original source, or null. - * - name: The original identifier, or null. - */ -IndexedSourceMapConsumer.prototype.originalPositionFor = - function IndexedSourceMapConsumer_originalPositionFor(aArgs) { - var needle = { - generatedLine: util.getArg(aArgs, 'line'), - generatedColumn: util.getArg(aArgs, 'column') - }; - - // Find the section containing the generated position we're trying to map - // to an original position. - var sectionIndex = binarySearch.search(needle, this._sections, - function(needle, section) { - var cmp = needle.generatedLine - section.generatedOffset.generatedLine; - if (cmp) { - return cmp; - } - - return (needle.generatedColumn - - section.generatedOffset.generatedColumn); - }); - var section = this._sections[sectionIndex]; - - if (!section) { - return { - source: null, - line: null, - column: null, - name: null - }; - } - - return section.consumer.originalPositionFor({ - line: needle.generatedLine - - (section.generatedOffset.generatedLine - 1), - column: needle.generatedColumn - - (section.generatedOffset.generatedLine === needle.generatedLine - ? section.generatedOffset.generatedColumn - 1 - : 0), - bias: aArgs.bias - }); - }; - -/** - * Return true if we have the source content for every source in the source - * map, false otherwise. - */ -IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = - function IndexedSourceMapConsumer_hasContentsOfAllSources() { - return this._sections.every(function (s) { - return s.consumer.hasContentsOfAllSources(); - }); - }; - -/** - * Returns the original source content. The only argument is the url of the - * original source file. Returns null if no original source content is - * available. - */ -IndexedSourceMapConsumer.prototype.sourceContentFor = - function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - - var content = section.consumer.sourceContentFor(aSource, true); - if (content) { - return content; - } - } - if (nullOnMissing) { - return null; - } - else { - throw new Error('"' + aSource + '" is not in the SourceMap.'); - } - }; - -/** - * Returns the generated line and column information for the original source, - * line, and column positions provided. The only argument is an object with - * the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. - * - column: The column number in the original source. - * - * and an object is returned with the following properties: - * - * - line: The line number in the generated source, or null. - * - column: The column number in the generated source, or null. - */ -IndexedSourceMapConsumer.prototype.generatedPositionFor = - function IndexedSourceMapConsumer_generatedPositionFor(aArgs) { - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - - // Only consider this section if the requested source is in the list of - // sources of the consumer. - if (section.consumer.sources.indexOf(util.getArg(aArgs, 'source')) === -1) { - continue; - } - var generatedPosition = section.consumer.generatedPositionFor(aArgs); - if (generatedPosition) { - var ret = { - line: generatedPosition.line + - (section.generatedOffset.generatedLine - 1), - column: generatedPosition.column + - (section.generatedOffset.generatedLine === generatedPosition.line - ? section.generatedOffset.generatedColumn - 1 - : 0) - }; - return ret; - } - } - - return { - line: null, - column: null - }; - }; - -/** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). - */ -IndexedSourceMapConsumer.prototype._parseMappings = - function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) { - this.__generatedMappings = []; - this.__originalMappings = []; - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - var sectionMappings = section.consumer._generatedMappings; - for (var j = 0; j < sectionMappings.length; j++) { - var mapping = sectionMappings[j]; - - var source = section.consumer._sources.at(mapping.source); - if (section.consumer.sourceRoot !== null) { - source = util.join(section.consumer.sourceRoot, source); - } - this._sources.add(source); - source = this._sources.indexOf(source); - - var name = section.consumer._names.at(mapping.name); - this._names.add(name); - name = this._names.indexOf(name); - - // The mappings coming from the consumer for the section have - // generated positions relative to the start of the section, so we - // need to offset them to be relative to the start of the concatenated - // generated file. - var adjustedMapping = { - source: source, - generatedLine: mapping.generatedLine + - (section.generatedOffset.generatedLine - 1), - generatedColumn: mapping.generatedColumn + - (section.generatedOffset.generatedLine === mapping.generatedLine - ? section.generatedOffset.generatedColumn - 1 - : 0), - originalLine: mapping.originalLine, - originalColumn: mapping.originalColumn, - name: name - }; - - this.__generatedMappings.push(adjustedMapping); - if (typeof adjustedMapping.originalLine === 'number') { - this.__originalMappings.push(adjustedMapping); - } - } - } - - quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated); - quickSort(this.__originalMappings, util.compareByOriginalPositions); - }; - -exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer; - - -/***/ }), -/* 165 */ -/***/ (function(module, exports, __webpack_require__) { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -var SourceMapGenerator = __webpack_require__(82).SourceMapGenerator; -var util = __webpack_require__(11); - -// Matches a Windows-style `\r\n` newline or a `\n` newline used by all other -// operating systems these days (capturing the result). -var REGEX_NEWLINE = /(\r?\n)/; - -// Newline character code for charCodeAt() comparisons -var NEWLINE_CODE = 10; - -// Private symbol for identifying `SourceNode`s when multiple versions of -// the source-map library are loaded. This MUST NOT CHANGE across -// versions! -var isSourceNode = "$$$isSourceNode$$$"; - -/** - * SourceNodes provide a way to abstract over interpolating/concatenating - * snippets of generated JavaScript source code while maintaining the line and - * column information associated with the original source code. - * - * @param aLine The original line number. - * @param aColumn The original column number. - * @param aSource The original source's filename. - * @param aChunks Optional. An array of strings which are snippets of - * generated JS, or other SourceNodes. - * @param aName The original identifier. - */ -function SourceNode(aLine, aColumn, aSource, aChunks, aName) { - this.children = []; - this.sourceContents = {}; - this.line = aLine == null ? null : aLine; - this.column = aColumn == null ? null : aColumn; - this.source = aSource == null ? null : aSource; - this.name = aName == null ? null : aName; - this[isSourceNode] = true; - if (aChunks != null) this.add(aChunks); -} - -/** - * Creates a SourceNode from generated code and a SourceMapConsumer. - * - * @param aGeneratedCode The generated code - * @param aSourceMapConsumer The SourceMap for the generated code - * @param aRelativePath Optional. The path that relative sources in the - * SourceMapConsumer should be relative to. - */ -SourceNode.fromStringWithSourceMap = - function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) { - // The SourceNode we want to fill with the generated code - // and the SourceMap - var node = new SourceNode(); - - // All even indices of this array are one line of the generated code, - // while all odd indices are the newlines between two adjacent lines - // (since `REGEX_NEWLINE` captures its match). - // Processed fragments are removed from this array, by calling `shiftNextLine`. - var remainingLines = aGeneratedCode.split(REGEX_NEWLINE); - var shiftNextLine = function() { - var lineContents = remainingLines.shift(); - // The last line of a file might not have a newline. - var newLine = remainingLines.shift() || ""; - return lineContents + newLine; - }; - - // We need to remember the position of "remainingLines" - var lastGeneratedLine = 1, lastGeneratedColumn = 0; - - // The generate SourceNodes we need a code range. - // To extract it current and last mapping is used. - // Here we store the last mapping. - var lastMapping = null; - - aSourceMapConsumer.eachMapping(function (mapping) { - if (lastMapping !== null) { - // We add the code from "lastMapping" to "mapping": - // First check if there is a new line in between. - if (lastGeneratedLine < mapping.generatedLine) { - // Associate first line with "lastMapping" - addMappingWithCode(lastMapping, shiftNextLine()); - lastGeneratedLine++; - lastGeneratedColumn = 0; - // The remaining code is added without mapping - } else { - // There is no new line in between. - // Associate the code between "lastGeneratedColumn" and - // "mapping.generatedColumn" with "lastMapping" - var nextLine = remainingLines[0]; - var code = nextLine.substr(0, mapping.generatedColumn - - lastGeneratedColumn); - remainingLines[0] = nextLine.substr(mapping.generatedColumn - - lastGeneratedColumn); - lastGeneratedColumn = mapping.generatedColumn; - addMappingWithCode(lastMapping, code); - // No more remaining code, continue - lastMapping = mapping; - return; - } - } - // We add the generated code until the first mapping - // to the SourceNode without any mapping. - // Each line is added as separate string. - while (lastGeneratedLine < mapping.generatedLine) { - node.add(shiftNextLine()); - lastGeneratedLine++; - } - if (lastGeneratedColumn < mapping.generatedColumn) { - var nextLine = remainingLines[0]; - node.add(nextLine.substr(0, mapping.generatedColumn)); - remainingLines[0] = nextLine.substr(mapping.generatedColumn); - lastGeneratedColumn = mapping.generatedColumn; - } - lastMapping = mapping; - }, this); - // We have processed all mappings. - if (remainingLines.length > 0) { - if (lastMapping) { - // Associate the remaining code in the current line with "lastMapping" - addMappingWithCode(lastMapping, shiftNextLine()); - } - // and add the remaining lines without any mapping - node.add(remainingLines.join("")); - } - - // Copy sourcesContent into SourceNode - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - if (aRelativePath != null) { - sourceFile = util.join(aRelativePath, sourceFile); - } - node.setSourceContent(sourceFile, content); - } - }); - - return node; - - function addMappingWithCode(mapping, code) { - if (mapping === null || mapping.source === undefined) { - node.add(code); - } else { - var source = aRelativePath - ? util.join(aRelativePath, mapping.source) - : mapping.source; - node.add(new SourceNode(mapping.originalLine, - mapping.originalColumn, - source, - code, - mapping.name)); - } - } - }; - -/** - * Add a chunk of generated JS to this source node. - * - * @param aChunk A string snippet of generated JS code, another instance of - * SourceNode, or an array where each member is one of those things. - */ -SourceNode.prototype.add = function SourceNode_add(aChunk) { - if (Array.isArray(aChunk)) { - aChunk.forEach(function (chunk) { - this.add(chunk); - }, this); - } - else if (aChunk[isSourceNode] || typeof aChunk === "string") { - if (aChunk) { - this.children.push(aChunk); - } - } - else { - throw new TypeError( - "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk - ); - } - return this; -}; - -/** - * Add a chunk of generated JS to the beginning of this source node. - * - * @param aChunk A string snippet of generated JS code, another instance of - * SourceNode, or an array where each member is one of those things. - */ -SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) { - if (Array.isArray(aChunk)) { - for (var i = aChunk.length-1; i >= 0; i--) { - this.prepend(aChunk[i]); - } - } - else if (aChunk[isSourceNode] || typeof aChunk === "string") { - this.children.unshift(aChunk); - } - else { - throw new TypeError( - "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk - ); - } - return this; -}; - -/** - * Walk over the tree of JS snippets in this node and its children. The - * walking function is called once for each snippet of JS and is passed that - * snippet and the its original associated source's line/column location. - * - * @param aFn The traversal function. - */ -SourceNode.prototype.walk = function SourceNode_walk(aFn) { - var chunk; - for (var i = 0, len = this.children.length; i < len; i++) { - chunk = this.children[i]; - if (chunk[isSourceNode]) { - chunk.walk(aFn); - } - else { - if (chunk !== '') { - aFn(chunk, { source: this.source, - line: this.line, - column: this.column, - name: this.name }); - } - } - } -}; - -/** - * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between - * each of `this.children`. - * - * @param aSep The separator. - */ -SourceNode.prototype.join = function SourceNode_join(aSep) { - var newChildren; - var i; - var len = this.children.length; - if (len > 0) { - newChildren = []; - for (i = 0; i < len-1; i++) { - newChildren.push(this.children[i]); - newChildren.push(aSep); - } - newChildren.push(this.children[i]); - this.children = newChildren; - } - return this; -}; - -/** - * Call String.prototype.replace on the very right-most source snippet. Useful - * for trimming whitespace from the end of a source node, etc. - * - * @param aPattern The pattern to replace. - * @param aReplacement The thing to replace the pattern with. - */ -SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) { - var lastChild = this.children[this.children.length - 1]; - if (lastChild[isSourceNode]) { - lastChild.replaceRight(aPattern, aReplacement); - } - else if (typeof lastChild === 'string') { - this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement); - } - else { - this.children.push(''.replace(aPattern, aReplacement)); - } - return this; -}; - -/** - * Set the source content for a source file. This will be added to the SourceMapGenerator - * in the sourcesContent field. - * - * @param aSourceFile The filename of the source file - * @param aSourceContent The content of the source file - */ -SourceNode.prototype.setSourceContent = - function SourceNode_setSourceContent(aSourceFile, aSourceContent) { - this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent; - }; - -/** - * Walk over the tree of SourceNodes. The walking function is called for each - * source file content and is passed the filename and source content. - * - * @param aFn The traversal function. - */ -SourceNode.prototype.walkSourceContents = - function SourceNode_walkSourceContents(aFn) { - for (var i = 0, len = this.children.length; i < len; i++) { - if (this.children[i][isSourceNode]) { - this.children[i].walkSourceContents(aFn); - } - } - - var sources = Object.keys(this.sourceContents); - for (var i = 0, len = sources.length; i < len; i++) { - aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]); - } - }; - -/** - * Return the string representation of this source node. Walks over the tree - * and concatenates all the various snippets together to one string. - */ -SourceNode.prototype.toString = function SourceNode_toString() { - var str = ""; - this.walk(function (chunk) { - str += chunk; - }); - return str; -}; - -/** - * Returns the string representation of this source node along with a source - * map. - */ -SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) { - var generated = { - code: "", - line: 1, - column: 0 - }; - var map = new SourceMapGenerator(aArgs); - var sourceMappingActive = false; - var lastOriginalSource = null; - var lastOriginalLine = null; - var lastOriginalColumn = null; - var lastOriginalName = null; - this.walk(function (chunk, original) { - generated.code += chunk; - if (original.source !== null - && original.line !== null - && original.column !== null) { - if(lastOriginalSource !== original.source - || lastOriginalLine !== original.line - || lastOriginalColumn !== original.column - || lastOriginalName !== original.name) { - map.addMapping({ - source: original.source, - original: { - line: original.line, - column: original.column - }, - generated: { - line: generated.line, - column: generated.column - }, - name: original.name - }); - } - lastOriginalSource = original.source; - lastOriginalLine = original.line; - lastOriginalColumn = original.column; - lastOriginalName = original.name; - sourceMappingActive = true; - } else if (sourceMappingActive) { - map.addMapping({ - generated: { - line: generated.line, - column: generated.column - } - }); - lastOriginalSource = null; - sourceMappingActive = false; - } - for (var idx = 0, length = chunk.length; idx < length; idx++) { - if (chunk.charCodeAt(idx) === NEWLINE_CODE) { - generated.line++; - generated.column = 0; - // Mappings end at eol - if (idx + 1 === length) { - lastOriginalSource = null; - sourceMappingActive = false; - } else if (sourceMappingActive) { - map.addMapping({ - source: original.source, - original: { - line: original.line, - column: original.column - }, - generated: { - line: generated.line, - column: generated.column - }, - name: original.name - }); - } - } else { - generated.column++; - } - } - }); - this.walkSourceContents(function (sourceFile, sourceContent) { - map.setSourceContent(sourceFile, sourceContent); - }); - - return { code: generated.code, map: map }; -}; - -exports.SourceNode = SourceNode; - - -/***/ }), -/* 166 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -module.exports = false; - - -/***/ }), -/* 167 */ -/***/ (function(module, exports) { - -if (typeof Object.create === 'function') { - // implementation from standard node.js 'util' module - module.exports = function inherits(ctor, superCtor) { - ctor.super_ = superCtor; - ctor.prototype = Object.create(superCtor.prototype, { - constructor: { - value: ctor, - enumerable: false, - writable: true, - configurable: true - } - }); - }; -} else { - // old school shim for old browsers - module.exports = function inherits(ctor, superCtor) { - ctor.super_ = superCtor; - var TempCtor = function () {}; - TempCtor.prototype = superCtor.prototype; - ctor.prototype = new TempCtor(); - ctor.prototype.constructor = ctor; - }; -} - - -/***/ }), -/* 168 */ -/***/ (function(module, exports) { - -module.exports = function isBuffer(arg) { - return arg && typeof arg === 'object' - && typeof arg.copy === 'function' - && typeof arg.fill === 'function' - && typeof arg.readUInt8 === 'function'; -}; - -/***/ }), -/* 169 */ -/***/ (function(module, exports, __webpack_require__) { - -/* WEBPACK VAR INJECTION */(function(global, process) {// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -var formatRegExp = /%[sdj%]/g; -exports.format = function(f) { - if (!isString(f)) { - var objects = []; - for (var i = 0; i < arguments.length; i++) { - objects.push(inspect(arguments[i])); - } - return objects.join(' '); - } - - var i = 1; - var args = arguments; - var len = args.length; - var str = String(f).replace(formatRegExp, function(x) { - if (x === '%%') return '%'; - if (i >= len) return x; - switch (x) { - case '%s': return String(args[i++]); - case '%d': return Number(args[i++]); - case '%j': - try { - return JSON.stringify(args[i++]); - } catch (_) { - return '[Circular]'; - } - default: - return x; - } - }); - for (var x = args[i]; i < len; x = args[++i]) { - if (isNull(x) || !isObject(x)) { - str += ' ' + x; - } else { - str += ' ' + inspect(x); - } - } - return str; -}; - - -// Mark that a method should not be used. -// Returns a modified function which warns once by default. -// If --no-deprecation is set, then it is a no-op. -exports.deprecate = function(fn, msg) { - // Allow for deprecating things in the process of starting up. - if (isUndefined(global.process)) { - return function() { - return exports.deprecate(fn, msg).apply(this, arguments); - }; - } - - if (process.noDeprecation === true) { - return fn; - } - - var warned = false; - function deprecated() { - if (!warned) { - if (process.throwDeprecation) { - throw new Error(msg); - } else if (process.traceDeprecation) { - console.trace(msg); - } else { - console.error(msg); - } - warned = true; - } - return fn.apply(this, arguments); - } - - return deprecated; -}; - - -var debugs = {}; -var debugEnviron; -exports.debuglog = function(set) { - if (isUndefined(debugEnviron)) - debugEnviron = process.env.NODE_DEBUG || ''; - set = set.toUpperCase(); - if (!debugs[set]) { - if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) { - var pid = process.pid; - debugs[set] = function() { - var msg = exports.format.apply(exports, arguments); - console.error('%s %d: %s', set, pid, msg); - }; - } else { - debugs[set] = function() {}; - } - } - return debugs[set]; -}; - - -/** - * Echos the value of a value. Trys to print the value out - * in the best way possible given the different types. - * - * @param {Object} obj The object to print out. - * @param {Object} opts Optional options object that alters the output. - */ -/* legacy: obj, showHidden, depth, colors*/ -function inspect(obj, opts) { - // default options - var ctx = { - seen: [], - stylize: stylizeNoColor - }; - // legacy... - if (arguments.length >= 3) ctx.depth = arguments[2]; - if (arguments.length >= 4) ctx.colors = arguments[3]; - if (isBoolean(opts)) { - // legacy... - ctx.showHidden = opts; - } else if (opts) { - // got an "options" object - exports._extend(ctx, opts); - } - // set default options - if (isUndefined(ctx.showHidden)) ctx.showHidden = false; - if (isUndefined(ctx.depth)) ctx.depth = 2; - if (isUndefined(ctx.colors)) ctx.colors = false; - if (isUndefined(ctx.customInspect)) ctx.customInspect = true; - if (ctx.colors) ctx.stylize = stylizeWithColor; - return formatValue(ctx, obj, ctx.depth); -} -exports.inspect = inspect; - - -// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics -inspect.colors = { - 'bold' : [1, 22], - 'italic' : [3, 23], - 'underline' : [4, 24], - 'inverse' : [7, 27], - 'white' : [37, 39], - 'grey' : [90, 39], - 'black' : [30, 39], - 'blue' : [34, 39], - 'cyan' : [36, 39], - 'green' : [32, 39], - 'magenta' : [35, 39], - 'red' : [31, 39], - 'yellow' : [33, 39] -}; - -// Don't use 'blue' not visible on cmd.exe -inspect.styles = { - 'special': 'cyan', - 'number': 'yellow', - 'boolean': 'yellow', - 'undefined': 'grey', - 'null': 'bold', - 'string': 'green', - 'date': 'magenta', - // "name": intentionally not styling - 'regexp': 'red' -}; - - -function stylizeWithColor(str, styleType) { - var style = inspect.styles[styleType]; - - if (style) { - return '\u001b[' + inspect.colors[style][0] + 'm' + str + - '\u001b[' + inspect.colors[style][1] + 'm'; - } else { - return str; - } -} - - -function stylizeNoColor(str, styleType) { - return str; -} - - -function arrayToHash(array) { - var hash = {}; - - array.forEach(function(val, idx) { - hash[val] = true; - }); - - return hash; -} - - -function formatValue(ctx, value, recurseTimes) { - // Provide a hook for user-specified inspect functions. - // Check that value is an object with an inspect function on it - if (ctx.customInspect && - value && - isFunction(value.inspect) && - // Filter out the util module, it's inspect function is special - value.inspect !== exports.inspect && - // Also filter out any prototype objects using the circular check. - !(value.constructor && value.constructor.prototype === value)) { - var ret = value.inspect(recurseTimes, ctx); - if (!isString(ret)) { - ret = formatValue(ctx, ret, recurseTimes); - } - return ret; - } - - // Primitive types cannot have properties - var primitive = formatPrimitive(ctx, value); - if (primitive) { - return primitive; - } - - // Look up the keys of the object. - var keys = Object.keys(value); - var visibleKeys = arrayToHash(keys); - - if (ctx.showHidden) { - keys = Object.getOwnPropertyNames(value); - } - - // IE doesn't make error fields non-enumerable - // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx - if (isError(value) - && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) { - return formatError(value); - } - - // Some type of object without properties can be shortcutted. - if (keys.length === 0) { - if (isFunction(value)) { - var name = value.name ? ': ' + value.name : ''; - return ctx.stylize('[Function' + name + ']', 'special'); - } - if (isRegExp(value)) { - return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); - } - if (isDate(value)) { - return ctx.stylize(Date.prototype.toString.call(value), 'date'); - } - if (isError(value)) { - return formatError(value); - } - } - - var base = '', array = false, braces = ['{', '}']; - - // Make Array say that they are Array - if (isArray(value)) { - array = true; - braces = ['[', ']']; - } - - // Make functions say that they are functions - if (isFunction(value)) { - var n = value.name ? ': ' + value.name : ''; - base = ' [Function' + n + ']'; - } - - // Make RegExps say that they are RegExps - if (isRegExp(value)) { - base = ' ' + RegExp.prototype.toString.call(value); - } - - // Make dates with properties first say the date - if (isDate(value)) { - base = ' ' + Date.prototype.toUTCString.call(value); - } - - // Make error with message first say the error - if (isError(value)) { - base = ' ' + formatError(value); - } - - if (keys.length === 0 && (!array || value.length == 0)) { - return braces[0] + base + braces[1]; - } - - if (recurseTimes < 0) { - if (isRegExp(value)) { - return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); - } else { - return ctx.stylize('[Object]', 'special'); - } - } - - ctx.seen.push(value); - - var output; - if (array) { - output = formatArray(ctx, value, recurseTimes, visibleKeys, keys); - } else { - output = keys.map(function(key) { - return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array); - }); - } - - ctx.seen.pop(); - - return reduceToSingleString(output, base, braces); -} - - -function formatPrimitive(ctx, value) { - if (isUndefined(value)) - return ctx.stylize('undefined', 'undefined'); - if (isString(value)) { - var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '') - .replace(/'/g, "\\'") - .replace(/\\"/g, '"') + '\''; - return ctx.stylize(simple, 'string'); - } - if (isNumber(value)) - return ctx.stylize('' + value, 'number'); - if (isBoolean(value)) - return ctx.stylize('' + value, 'boolean'); - // For some reason typeof null is "object", so special case here. - if (isNull(value)) - return ctx.stylize('null', 'null'); -} - - -function formatError(value) { - return '[' + Error.prototype.toString.call(value) + ']'; -} - - -function formatArray(ctx, value, recurseTimes, visibleKeys, keys) { - var output = []; - for (var i = 0, l = value.length; i < l; ++i) { - if (hasOwnProperty(value, String(i))) { - output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, - String(i), true)); - } else { - output.push(''); - } - } - keys.forEach(function(key) { - if (!key.match(/^\d+$/)) { - output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, - key, true)); - } - }); - return output; -} - - -function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) { - var name, str, desc; - desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] }; - if (desc.get) { - if (desc.set) { - str = ctx.stylize('[Getter/Setter]', 'special'); - } else { - str = ctx.stylize('[Getter]', 'special'); - } - } else { - if (desc.set) { - str = ctx.stylize('[Setter]', 'special'); - } - } - if (!hasOwnProperty(visibleKeys, key)) { - name = '[' + key + ']'; - } - if (!str) { - if (ctx.seen.indexOf(desc.value) < 0) { - if (isNull(recurseTimes)) { - str = formatValue(ctx, desc.value, null); - } else { - str = formatValue(ctx, desc.value, recurseTimes - 1); - } - if (str.indexOf('\n') > -1) { - if (array) { - str = str.split('\n').map(function(line) { - return ' ' + line; - }).join('\n').substr(2); - } else { - str = '\n' + str.split('\n').map(function(line) { - return ' ' + line; - }).join('\n'); - } - } - } else { - str = ctx.stylize('[Circular]', 'special'); - } - } - if (isUndefined(name)) { - if (array && key.match(/^\d+$/)) { - return str; - } - name = JSON.stringify('' + key); - if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) { - name = name.substr(1, name.length - 2); - name = ctx.stylize(name, 'name'); - } else { - name = name.replace(/'/g, "\\'") - .replace(/\\"/g, '"') - .replace(/(^"|"$)/g, "'"); - name = ctx.stylize(name, 'string'); - } - } - - return name + ': ' + str; -} - - -function reduceToSingleString(output, base, braces) { - var numLinesEst = 0; - var length = output.reduce(function(prev, cur) { - numLinesEst++; - if (cur.indexOf('\n') >= 0) numLinesEst++; - return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1; - }, 0); - - if (length > 60) { - return braces[0] + - (base === '' ? '' : base + '\n ') + - ' ' + - output.join(',\n ') + - ' ' + - braces[1]; - } - - return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1]; -} - - -// NOTE: These type checking functions intentionally don't use `instanceof` -// because it is fragile and can be easily faked with `Object.create()`. -function isArray(ar) { - return Array.isArray(ar); -} -exports.isArray = isArray; - -function isBoolean(arg) { - return typeof arg === 'boolean'; -} -exports.isBoolean = isBoolean; - -function isNull(arg) { - return arg === null; -} -exports.isNull = isNull; - -function isNullOrUndefined(arg) { - return arg == null; -} -exports.isNullOrUndefined = isNullOrUndefined; - -function isNumber(arg) { - return typeof arg === 'number'; -} -exports.isNumber = isNumber; - -function isString(arg) { - return typeof arg === 'string'; -} -exports.isString = isString; - -function isSymbol(arg) { - return typeof arg === 'symbol'; -} -exports.isSymbol = isSymbol; - -function isUndefined(arg) { - return arg === void 0; -} -exports.isUndefined = isUndefined; - -function isRegExp(re) { - return isObject(re) && objectToString(re) === '[object RegExp]'; -} -exports.isRegExp = isRegExp; - -function isObject(arg) { - return typeof arg === 'object' && arg !== null; -} -exports.isObject = isObject; - -function isDate(d) { - return isObject(d) && objectToString(d) === '[object Date]'; -} -exports.isDate = isDate; - -function isError(e) { - return isObject(e) && - (objectToString(e) === '[object Error]' || e instanceof Error); -} -exports.isError = isError; - -function isFunction(arg) { - return typeof arg === 'function'; -} -exports.isFunction = isFunction; - -function isPrimitive(arg) { - return arg === null || - typeof arg === 'boolean' || - typeof arg === 'number' || - typeof arg === 'string' || - typeof arg === 'symbol' || // ES6 symbol - typeof arg === 'undefined'; -} -exports.isPrimitive = isPrimitive; - -exports.isBuffer = __webpack_require__(168); - -function objectToString(o) { - return Object.prototype.toString.call(o); -} - - -function pad(n) { - return n < 10 ? '0' + n.toString(10) : n.toString(10); -} - - -var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', - 'Oct', 'Nov', 'Dec']; - -// 26 Feb 16:19:34 -function timestamp() { - var d = new Date(); - var time = [pad(d.getHours()), - pad(d.getMinutes()), - pad(d.getSeconds())].join(':'); - return [d.getDate(), months[d.getMonth()], time].join(' '); -} - - -// log is just a thin wrapper to console.log that prepends a timestamp -exports.log = function() { - console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments)); -}; - - -/** - * Inherit the prototype methods from one constructor into another. - * - * The Function.prototype.inherits from lang.js rewritten as a standalone - * function (not on Function.prototype). NOTE: If this file is to be loaded - * during bootstrapping this function needs to be rewritten using some native - * functions as prototype setup using normal JavaScript does not work as - * expected during bootstrapping (see mirror.js in r114903). - * - * @param {function} ctor Constructor function which needs to inherit the - * prototype. - * @param {function} superCtor Constructor function to inherit prototype from. - */ -exports.inherits = __webpack_require__(167); - -exports._extend = function(origin, add) { - // Don't do anything if add isn't an object - if (!add || !isObject(add)) return origin; - - var keys = Object.keys(add); - var i = keys.length; - while (i--) { - origin[keys[i]] = add[keys[i]]; - } - return origin; -}; - -function hasOwnProperty(obj, prop) { - return Object.prototype.hasOwnProperty.call(obj, prop); -} - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(30), __webpack_require__(14))); - -/***/ }), -/* 170 */ -/***/ (function(module, exports) { - -module.exports = function(module) { - if(!module.webpackPolyfill) { - module.deprecate = function() {}; - module.paths = []; - // module.parent = undefined by default - if(!module.children) module.children = []; - Object.defineProperty(module, "loaded", { - enumerable: true, - get: function() { - return module.l; - } - }); - Object.defineProperty(module, "id", { - enumerable: true, - get: function() { - return module.i; - } - }); - module.webpackPolyfill = 1; - } - return module; -}; - - -/***/ }), -/* 171 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const createError = __webpack_require__(91); - -function parseSelector(selector) { - const selectorParser = __webpack_require__(89); - let result; - selectorParser(result_ => { - result = result_; - }).process(selector); - return addTypePrefix(result, "selector-"); -} - -function parseValueNodes(nodes) { - let parenGroup = { - open: null, - close: null, - groups: [], - type: "paren_group" - }; - const parenGroupStack = [parenGroup]; - const rootParenGroup = parenGroup; - let commaGroup = { - groups: [], - type: "comma_group" - }; - const commaGroupStack = [commaGroup]; - - for (let i = 0; i < nodes.length; ++i) { - const node = nodes[i]; - if (node.type === "paren" && node.value === "(") { - parenGroup = { - open: node, - close: null, - groups: [], - type: "paren_group" - }; - parenGroupStack.push(parenGroup); - - commaGroup = { - groups: [], - type: "comma_group" - }; - commaGroupStack.push(commaGroup); - } else if (node.type === "paren" && node.value === ")") { - if (commaGroup.groups.length) { - parenGroup.groups.push(commaGroup); - } - parenGroup.close = node; - - if (commaGroupStack.length === 1) { - throw new Error("Unbalanced parenthesis"); - } - - commaGroupStack.pop(); - commaGroup = commaGroupStack[commaGroupStack.length - 1]; - commaGroup.groups.push(parenGroup); - - parenGroupStack.pop(); - parenGroup = parenGroupStack[parenGroupStack.length - 1]; - } else if (node.type === "comma") { - parenGroup.groups.push(commaGroup); - commaGroup = { - groups: [], - type: "comma_group" - }; - commaGroupStack[commaGroupStack.length - 1] = commaGroup; - } else { - commaGroup.groups.push(node); - } - } - if (commaGroup.groups.length > 0) { - parenGroup.groups.push(commaGroup); - } - return rootParenGroup; -} - -function flattenGroups(node) { - if ( - node.type === "paren_group" && - !node.open && - !node.close && - node.groups.length === 1 - ) { - return flattenGroups(node.groups[0]); - } - - if (node.type === "comma_group" && node.groups.length === 1) { - return flattenGroups(node.groups[0]); - } - - if (node.type === "paren_group" || node.type === "comma_group") { - return Object.assign({}, node, { groups: node.groups.map(flattenGroups) }); - } - - return node; -} - -function addTypePrefix(node, prefix) { - if (node && typeof node === "object") { - delete node.parent; - for (const key in node) { - addTypePrefix(node[key], prefix); - if (key === "type" && typeof node[key] === "string") { - if (!node[key].startsWith(prefix)) { - node[key] = prefix + node[key]; - } - } - } - } - return node; -} - -function addMissingType(node) { - if (node && typeof node === "object") { - delete node.parent; - for (const key in node) { - addMissingType(node[key]); - } - if (!Array.isArray(node) && node.value && !node.type) { - node.type = "unknown"; - } - } - return node; -} - -function parseNestedValue(node) { - if (node && typeof node === "object") { - delete node.parent; - for (const key in node) { - parseNestedValue(node[key]); - if (key === "nodes") { - node.group = flattenGroups(parseValueNodes(node[key])); - delete node[key]; - } - } - } - return node; -} - -function parseValue(value) { - const valueParser = __webpack_require__(90); - const result = valueParser(value, { loose: true }).parse(); - const parsedResult = parseNestedValue(result); - return addTypePrefix(parsedResult, "value-"); -} - -function parseMediaQuery(value) { - const mediaParser = __webpack_require__(87).default; - const result = addMissingType(mediaParser(value)); - return addTypePrefix(result, "media-"); -} - -function parseNestedCSS(node) { - if (node && typeof node === "object") { - delete node.parent; - for (const key in node) { - parseNestedCSS(node[key]); - } - if (typeof node.selector === "string") { - const selector = node.raws.selector - ? node.raws.selector.raw - : node.selector; - - try { - node.selector = parseSelector(selector); - } catch (e) { - // Fail silently. It's better to print it as is than to try and parse it - // Note: A common failure is for SCSS nested properties. `background: - // none { color: red; }` is parsed as a NestedDeclaration by - // postcss-scss, while `background: { color: red; }` is parsed as a Rule - // with a selector ending with a colon. See: - // https://github.com/postcss/postcss-scss/issues/39 - node.selector = { - type: "selector-root-invalid", - value: selector - }; - } - } - if (node.type && typeof node.value === "string") { - try { - node.value = parseValue(node.value); - } catch (e) { - throw createError( - "(postcss-values-parser) " + e.toString(), - node.source - ); - } - } - if (node.type === "css-atrule" && typeof node.params === "string") { - node.params = parseMediaQuery(node.params); - } - } - return node; -} - -function parseWithParser(parser, text) { - let result; - try { - result = parser.parse(text); - } catch (e) { - if (typeof e.line !== "number") { - throw e; - } - throw createError("(postcss) " + e.name + " " + e.reason, { start: e }); - } - const prefixedResult = addTypePrefix(result, "css-"); - const parsedResult = parseNestedCSS(prefixedResult); - return parsedResult; -} - -function requireParser(isSCSS) { - if (isSCSS) { - return __webpack_require__(88); - } - - // TODO: Remove this hack when this issue is fixed: - // https://github.com/shellscape/postcss-less/issues/88 - const LessParser = __webpack_require__(31); - LessParser.prototype.atrule = function() { - return Object.getPrototypeOf(LessParser.prototype).atrule.apply( - this, - arguments - ); - }; - - return __webpack_require__(86); -} - -const IS_POSSIBLY_SCSS = /(\w\s*: [^}:]+|#){|@import[^\n]+(url|,)/; - -function parse(text, parsers, opts) { - const hasExplicitParserChoice = - opts.parser === "less" || opts.parser === "scss"; - - const isSCSS = hasExplicitParserChoice - ? opts.parser === "scss" - : IS_POSSIBLY_SCSS.test(text); - - try { - return parseWithParser(requireParser(isSCSS), text); - } catch (originalError) { - if (hasExplicitParserChoice) { - throw originalError; - } - - try { - return parseWithParser(requireParser(!isSCSS), text); - } catch (_secondError) { - throw originalError; - } - } -} - -module.exports = parse; - - -/***/ }), -/* 172 */ -/***/ (function(module, exports) { - -/* (ignored) */ - -/***/ }), -/* 173 */ -/***/ (function(module, exports) { - -/* (ignored) */ - -/***/ }), -/* 174 */ -/***/ (function(module, exports) { - -/* (ignored) */ - -/***/ }) -/******/ ]); -}); - -var parserPostcss$1 = unwrapExports(parserPostcss); - -return parserPostcss$1; - -}()); diff --git a/website/static/lib/parser-typescript.js b/website/static/lib/parser-typescript.js deleted file mode 100644 index 3e164590..00000000 --- a/website/static/lib/parser-typescript.js +++ /dev/null @@ -1,2241 +0,0 @@ -var typescript = (function (fs,path,os,crypto,module$1) { -fs = 'default' in fs ? fs['default'] : fs; -path = 'default' in path ? path['default'] : path; -os = 'default' in os ? os['default'] : os; -crypto = 'default' in crypto ? crypto['default'] : crypto; -module$1 = 'default' in module$1 ? module$1['default'] : module$1; - -var global$1 = typeof global !== "undefined" ? global : - typeof self !== "undefined" ? self : - typeof window !== "undefined" ? window : {}; - -// shim for using process in browser -// based off https://github.com/defunctzombie/node-process/blob/master/browser.js - -function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); -} -function defaultClearTimeout () { - throw new Error('clearTimeout has not been defined'); -} -var cachedSetTimeout = defaultSetTimout; -var cachedClearTimeout = defaultClearTimeout; -if (typeof global$1.setTimeout === 'function') { - cachedSetTimeout = setTimeout; -} -if (typeof global$1.clearTimeout === 'function') { - cachedClearTimeout = clearTimeout; -} - -function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) { - //normal enviroments in sane situations - return setTimeout(fun, 0); - } - // if setTimeout wasn't available but was latter defined - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { - cachedSetTimeout = setTimeout; - return setTimeout(fun, 0); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedSetTimeout(fun, 0); - } catch(e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedSetTimeout.call(null, fun, 0); - } catch(e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error - return cachedSetTimeout.call(this, fun, 0); - } - } - - -} -function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) { - //normal enviroments in sane situations - return clearTimeout(marker); - } - // if clearTimeout wasn't available but was latter defined - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { - cachedClearTimeout = clearTimeout; - return clearTimeout(marker); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedClearTimeout(marker); - } catch (e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedClearTimeout.call(null, marker); - } catch (e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. - // Some versions of I.E. have different rules for clearTimeout vs setTimeout - return cachedClearTimeout.call(this, marker); - } - } - - - -} -var queue = []; -var draining = false; -var currentQueue; -var queueIndex = -1; - -function cleanUpNextTick() { - if (!draining || !currentQueue) { - return; - } - draining = false; - if (currentQueue.length) { - queue = currentQueue.concat(queue); - } else { - queueIndex = -1; - } - if (queue.length) { - drainQueue(); - } -} - -function drainQueue() { - if (draining) { - return; - } - var timeout = runTimeout(cleanUpNextTick); - draining = true; - - var len = queue.length; - while(len) { - currentQueue = queue; - queue = []; - while (++queueIndex < len) { - if (currentQueue) { - currentQueue[queueIndex].run(); - } - } - queueIndex = -1; - len = queue.length; - } - currentQueue = null; - draining = false; - runClearTimeout(timeout); -} -function nextTick(fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) { - for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - } - queue.push(new Item(fun, args)); - if (queue.length === 1 && !draining) { - runTimeout(drainQueue); - } -} -// v8 likes predictible objects -function Item(fun, array) { - this.fun = fun; - this.array = array; -} -Item.prototype.run = function () { - this.fun.apply(null, this.array); -}; -var title = 'browser'; -var platform = 'browser'; -var browser = true; -var env = {}; -var argv = []; -var version = ''; // empty string to avoid regexp issues -var versions = {}; -var release = {}; -var config = {}; - -function noop() {} - -var on = noop; -var addListener = noop; -var once = noop; -var off = noop; -var removeListener = noop; -var removeAllListeners = noop; -var emit = noop; - -function binding(name) { - throw new Error('process.binding is not supported'); -} - -function cwd () { return '/' } -function chdir (dir) { - throw new Error('process.chdir is not supported'); -} -function umask() { return 0; } - -// from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js -var performance$1 = global$1.performance || {}; -var performanceNow = - performance$1.now || - performance$1.mozNow || - performance$1.msNow || - performance$1.oNow || - performance$1.webkitNow || - function(){ return (new Date()).getTime() }; - -// generate timestamp or delta -// see http://nodejs.org/api/process.html#process_process_hrtime -function hrtime(previousTimestamp){ - var clocktime = performanceNow.call(performance$1)*1e-3; - var seconds = Math.floor(clocktime); - var nanoseconds = Math.floor((clocktime%1)*1e9); - if (previousTimestamp) { - seconds = seconds - previousTimestamp[0]; - nanoseconds = nanoseconds - previousTimestamp[1]; - if (nanoseconds<0) { - seconds--; - nanoseconds += 1e9; - } - } - return [seconds,nanoseconds] -} - -var startTime = new Date(); -function uptime() { - var currentTime = new Date(); - var dif = currentTime - startTime; - return dif / 1000; -} - -var process = { - nextTick: nextTick, - title: title, - browser: browser, - env: env, - argv: argv, - version: version, - versions: versions, - on: on, - addListener: addListener, - once: once, - off: off, - removeListener: removeListener, - removeAllListeners: removeAllListeners, - emit: emit, - binding: binding, - cwd: cwd, - chdir: chdir, - umask: umask, - hrtime: hrtime, - platform: platform, - release: release, - config: config, - uptime: uptime -}; - -var __dirname = '/Users/azz/code/prettier/dist'; - -var __filename = '/Users/azz/code/prettier/dist/parser-typescript.js'; - -var browser$1 = true; - -var lookup = []; -var revLookup = []; -var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array; -var inited = false; -function init () { - inited = true; - var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; - for (var i = 0, len = code.length; i < len; ++i) { - lookup[i] = code[i]; - revLookup[code.charCodeAt(i)] = i; - } - - revLookup['-'.charCodeAt(0)] = 62; - revLookup['_'.charCodeAt(0)] = 63; -} - -function toByteArray (b64) { - if (!inited) { - init(); - } - var i, j, l, tmp, placeHolders, arr; - var len = b64.length; - - if (len % 4 > 0) { - throw new Error('Invalid string. Length must be a multiple of 4') - } - - // the number of equal signs (place holders) - // if there are two placeholders, than the two characters before it - // represent one byte - // if there is only one, then the three characters before it represent 2 bytes - // this is just a cheap hack to not do indexOf twice - placeHolders = b64[len - 2] === '=' ? 2 : b64[len - 1] === '=' ? 1 : 0; - - // base64 is 4/3 + up to two characters of the original data - arr = new Arr(len * 3 / 4 - placeHolders); - - // if there are placeholders, only get up to the last complete 4 chars - l = placeHolders > 0 ? len - 4 : len; - - var L = 0; - - for (i = 0, j = 0; i < l; i += 4, j += 3) { - tmp = (revLookup[b64.charCodeAt(i)] << 18) | (revLookup[b64.charCodeAt(i + 1)] << 12) | (revLookup[b64.charCodeAt(i + 2)] << 6) | revLookup[b64.charCodeAt(i + 3)]; - arr[L++] = (tmp >> 16) & 0xFF; - arr[L++] = (tmp >> 8) & 0xFF; - arr[L++] = tmp & 0xFF; - } - - if (placeHolders === 2) { - tmp = (revLookup[b64.charCodeAt(i)] << 2) | (revLookup[b64.charCodeAt(i + 1)] >> 4); - arr[L++] = tmp & 0xFF; - } else if (placeHolders === 1) { - tmp = (revLookup[b64.charCodeAt(i)] << 10) | (revLookup[b64.charCodeAt(i + 1)] << 4) | (revLookup[b64.charCodeAt(i + 2)] >> 2); - arr[L++] = (tmp >> 8) & 0xFF; - arr[L++] = tmp & 0xFF; - } - - return arr -} - -function tripletToBase64 (num) { - return lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[num & 0x3F] -} - -function encodeChunk (uint8, start, end) { - var tmp; - var output = []; - for (var i = start; i < end; i += 3) { - tmp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2]); - output.push(tripletToBase64(tmp)); - } - return output.join('') -} - -function fromByteArray (uint8) { - if (!inited) { - init(); - } - var tmp; - var len = uint8.length; - var extraBytes = len % 3; // if we have 1 byte left, pad 2 bytes - var output = ''; - var parts = []; - var maxChunkLength = 16383; // must be multiple of 3 - - // go through the array every three bytes, we'll deal with trailing stuff later - for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) { - parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength))); - } - - // pad the end with zeros, but make sure to not forget the extra bytes - if (extraBytes === 1) { - tmp = uint8[len - 1]; - output += lookup[tmp >> 2]; - output += lookup[(tmp << 4) & 0x3F]; - output += '=='; - } else if (extraBytes === 2) { - tmp = (uint8[len - 2] << 8) + (uint8[len - 1]); - output += lookup[tmp >> 10]; - output += lookup[(tmp >> 4) & 0x3F]; - output += lookup[(tmp << 2) & 0x3F]; - output += '='; - } - - parts.push(output); - - return parts.join('') -} - -function read (buffer, offset, isLE, mLen, nBytes) { - var e, m; - var eLen = nBytes * 8 - mLen - 1; - var eMax = (1 << eLen) - 1; - var eBias = eMax >> 1; - var nBits = -7; - var i = isLE ? (nBytes - 1) : 0; - var d = isLE ? -1 : 1; - var s = buffer[offset + i]; - - i += d; - - e = s & ((1 << (-nBits)) - 1); - s >>= (-nBits); - nBits += eLen; - for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {} - - m = e & ((1 << (-nBits)) - 1); - e >>= (-nBits); - nBits += mLen; - for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {} - - if (e === 0) { - e = 1 - eBias; - } else if (e === eMax) { - return m ? NaN : ((s ? -1 : 1) * Infinity) - } else { - m = m + Math.pow(2, mLen); - e = e - eBias; - } - return (s ? -1 : 1) * m * Math.pow(2, e - mLen) -} - -function write (buffer, value, offset, isLE, mLen, nBytes) { - var e, m, c; - var eLen = nBytes * 8 - mLen - 1; - var eMax = (1 << eLen) - 1; - var eBias = eMax >> 1; - var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0); - var i = isLE ? 0 : (nBytes - 1); - var d = isLE ? 1 : -1; - var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0; - - value = Math.abs(value); - - if (isNaN(value) || value === Infinity) { - m = isNaN(value) ? 1 : 0; - e = eMax; - } else { - e = Math.floor(Math.log(value) / Math.LN2); - if (value * (c = Math.pow(2, -e)) < 1) { - e--; - c *= 2; - } - if (e + eBias >= 1) { - value += rt / c; - } else { - value += rt * Math.pow(2, 1 - eBias); - } - if (value * c >= 2) { - e++; - c /= 2; - } - - if (e + eBias >= eMax) { - m = 0; - e = eMax; - } else if (e + eBias >= 1) { - m = (value * c - 1) * Math.pow(2, mLen); - e = e + eBias; - } else { - m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen); - e = 0; - } - } - - for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {} - - e = (e << mLen) | m; - eLen += mLen; - for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {} - - buffer[offset + i - d] |= s * 128; -} - -var toString = {}.toString; - -var isArray = Array.isArray || function (arr) { - return toString.call(arr) == '[object Array]'; -}; - -/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ -/* eslint-disable no-proto */ - - -var INSPECT_MAX_BYTES = 50; - -/** - * If `Buffer.TYPED_ARRAY_SUPPORT`: - * === true Use Uint8Array implementation (fastest) - * === false Use Object implementation (most compatible, even IE6) - * - * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+, - * Opera 11.6+, iOS 4.2+. - * - * Due to various browser bugs, sometimes the Object implementation will be used even - * when the browser supports typed arrays. - * - * Note: - * - * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances, - * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438. - * - * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function. - * - * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of - * incorrect length in some situations. - - * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they - * get the Object implementation, which is slower but behaves correctly. - */ -Buffer.TYPED_ARRAY_SUPPORT = global$1.TYPED_ARRAY_SUPPORT !== undefined - ? global$1.TYPED_ARRAY_SUPPORT - : true; - -function kMaxLength () { - return Buffer.TYPED_ARRAY_SUPPORT - ? 0x7fffffff - : 0x3fffffff -} - -function createBuffer (that, length) { - if (kMaxLength() < length) { - throw new RangeError('Invalid typed array length') - } - if (Buffer.TYPED_ARRAY_SUPPORT) { - // Return an augmented `Uint8Array` instance, for best performance - that = new Uint8Array(length); - that.__proto__ = Buffer.prototype; - } else { - // Fallback: Return an object instance of the Buffer class - if (that === null) { - that = new Buffer(length); - } - that.length = length; - } - - return that -} - -/** - * The Buffer constructor returns instances of `Uint8Array` that have their - * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of - * `Uint8Array`, so the returned instances will have all the node `Buffer` methods - * and the `Uint8Array` methods. Square bracket notation works as expected -- it - * returns a single octet. - * - * The `Uint8Array` prototype remains unmodified. - */ - -function Buffer (arg, encodingOrOffset, length) { - if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) { - return new Buffer(arg, encodingOrOffset, length) - } - - // Common case. - if (typeof arg === 'number') { - if (typeof encodingOrOffset === 'string') { - throw new Error( - 'If encoding is specified then the first argument must be a string' - ) - } - return allocUnsafe(this, arg) - } - return from(this, arg, encodingOrOffset, length) -} - -Buffer.poolSize = 8192; // not used by this implementation - -// TODO: Legacy, not needed anymore. Remove in next major version. -Buffer._augment = function (arr) { - arr.__proto__ = Buffer.prototype; - return arr -}; - -function from (that, value, encodingOrOffset, length) { - if (typeof value === 'number') { - throw new TypeError('"value" argument must not be a number') - } - - if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) { - return fromArrayBuffer(that, value, encodingOrOffset, length) - } - - if (typeof value === 'string') { - return fromString(that, value, encodingOrOffset) - } - - return fromObject(that, value) -} - -/** - * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError - * if value is a number. - * Buffer.from(str[, encoding]) - * Buffer.from(array) - * Buffer.from(buffer) - * Buffer.from(arrayBuffer[, byteOffset[, length]]) - **/ -Buffer.from = function (value, encodingOrOffset, length) { - return from(null, value, encodingOrOffset, length) -}; - -if (Buffer.TYPED_ARRAY_SUPPORT) { - Buffer.prototype.__proto__ = Uint8Array.prototype; - Buffer.__proto__ = Uint8Array; - if (typeof Symbol !== 'undefined' && Symbol.species && - Buffer[Symbol.species] === Buffer) { - // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97 - // Object.defineProperty(Buffer, Symbol.species, { - // value: null, - // configurable: true - // }) - } -} - -function assertSize (size) { - if (typeof size !== 'number') { - throw new TypeError('"size" argument must be a number') - } else if (size < 0) { - throw new RangeError('"size" argument must not be negative') - } -} - -function alloc (that, size, fill, encoding) { - assertSize(size); - if (size <= 0) { - return createBuffer(that, size) - } - if (fill !== undefined) { - // Only pay attention to encoding if it's a string. This - // prevents accidentally sending in a number that would - // be interpretted as a start offset. - return typeof encoding === 'string' - ? createBuffer(that, size).fill(fill, encoding) - : createBuffer(that, size).fill(fill) - } - return createBuffer(that, size) -} - -/** - * Creates a new filled Buffer instance. - * alloc(size[, fill[, encoding]]) - **/ -Buffer.alloc = function (size, fill, encoding) { - return alloc(null, size, fill, encoding) -}; - -function allocUnsafe (that, size) { - assertSize(size); - that = createBuffer(that, size < 0 ? 0 : checked(size) | 0); - if (!Buffer.TYPED_ARRAY_SUPPORT) { - for (var i = 0; i < size; ++i) { - that[i] = 0; - } - } - return that -} - -/** - * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance. - * */ -Buffer.allocUnsafe = function (size) { - return allocUnsafe(null, size) -}; -/** - * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance. - */ -Buffer.allocUnsafeSlow = function (size) { - return allocUnsafe(null, size) -}; - -function fromString (that, string, encoding) { - if (typeof encoding !== 'string' || encoding === '') { - encoding = 'utf8'; - } - - if (!Buffer.isEncoding(encoding)) { - throw new TypeError('"encoding" must be a valid string encoding') - } - - var length = byteLength(string, encoding) | 0; - that = createBuffer(that, length); - - var actual = that.write(string, encoding); - - if (actual !== length) { - // Writing a hex string, for example, that contains invalid characters will - // cause everything after the first invalid character to be ignored. (e.g. - // 'abxxcd' will be treated as 'ab') - that = that.slice(0, actual); - } - - return that -} - -function fromArrayLike (that, array) { - var length = array.length < 0 ? 0 : checked(array.length) | 0; - that = createBuffer(that, length); - for (var i = 0; i < length; i += 1) { - that[i] = array[i] & 255; - } - return that -} - -function fromArrayBuffer (that, array, byteOffset, length) { - array.byteLength; // this throws if `array` is not a valid ArrayBuffer - - if (byteOffset < 0 || array.byteLength < byteOffset) { - throw new RangeError('\'offset\' is out of bounds') - } - - if (array.byteLength < byteOffset + (length || 0)) { - throw new RangeError('\'length\' is out of bounds') - } - - if (byteOffset === undefined && length === undefined) { - array = new Uint8Array(array); - } else if (length === undefined) { - array = new Uint8Array(array, byteOffset); - } else { - array = new Uint8Array(array, byteOffset, length); - } - - if (Buffer.TYPED_ARRAY_SUPPORT) { - // Return an augmented `Uint8Array` instance, for best performance - that = array; - that.__proto__ = Buffer.prototype; - } else { - // Fallback: Return an object instance of the Buffer class - that = fromArrayLike(that, array); - } - return that -} - -function fromObject (that, obj) { - if (internalIsBuffer(obj)) { - var len = checked(obj.length) | 0; - that = createBuffer(that, len); - - if (that.length === 0) { - return that - } - - obj.copy(that, 0, 0, len); - return that - } - - if (obj) { - if ((typeof ArrayBuffer !== 'undefined' && - obj.buffer instanceof ArrayBuffer) || 'length' in obj) { - if (typeof obj.length !== 'number' || isnan(obj.length)) { - return createBuffer(that, 0) - } - return fromArrayLike(that, obj) - } - - if (obj.type === 'Buffer' && isArray(obj.data)) { - return fromArrayLike(that, obj.data) - } - } - - throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.') -} - -function checked (length) { - // Note: cannot use `length < kMaxLength()` here because that fails when - // length is NaN (which is otherwise coerced to zero.) - if (length >= kMaxLength()) { - throw new RangeError('Attempt to allocate Buffer larger than maximum ' + - 'size: 0x' + kMaxLength().toString(16) + ' bytes') - } - return length | 0 -} - - -Buffer.isBuffer = isBuffer; -function internalIsBuffer (b) { - return !!(b != null && b._isBuffer) -} - -Buffer.compare = function compare (a, b) { - if (!internalIsBuffer(a) || !internalIsBuffer(b)) { - throw new TypeError('Arguments must be Buffers') - } - - if (a === b) return 0 - - var x = a.length; - var y = b.length; - - for (var i = 0, len = Math.min(x, y); i < len; ++i) { - if (a[i] !== b[i]) { - x = a[i]; - y = b[i]; - break - } - } - - if (x < y) return -1 - if (y < x) return 1 - return 0 -}; - -Buffer.isEncoding = function isEncoding (encoding) { - switch (String(encoding).toLowerCase()) { - case 'hex': - case 'utf8': - case 'utf-8': - case 'ascii': - case 'latin1': - case 'binary': - case 'base64': - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return true - default: - return false - } -}; - -Buffer.concat = function concat (list, length) { - if (!isArray(list)) { - throw new TypeError('"list" argument must be an Array of Buffers') - } - - if (list.length === 0) { - return Buffer.alloc(0) - } - - var i; - if (length === undefined) { - length = 0; - for (i = 0; i < list.length; ++i) { - length += list[i].length; - } - } - - var buffer = Buffer.allocUnsafe(length); - var pos = 0; - for (i = 0; i < list.length; ++i) { - var buf = list[i]; - if (!internalIsBuffer(buf)) { - throw new TypeError('"list" argument must be an Array of Buffers') - } - buf.copy(buffer, pos); - pos += buf.length; - } - return buffer -}; - -function byteLength (string, encoding) { - if (internalIsBuffer(string)) { - return string.length - } - if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' && - (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) { - return string.byteLength - } - if (typeof string !== 'string') { - string = '' + string; - } - - var len = string.length; - if (len === 0) return 0 - - // Use a for loop to avoid recursion - var loweredCase = false; - for (;;) { - switch (encoding) { - case 'ascii': - case 'latin1': - case 'binary': - return len - case 'utf8': - case 'utf-8': - case undefined: - return utf8ToBytes(string).length - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return len * 2 - case 'hex': - return len >>> 1 - case 'base64': - return base64ToBytes(string).length - default: - if (loweredCase) return utf8ToBytes(string).length // assume utf8 - encoding = ('' + encoding).toLowerCase(); - loweredCase = true; - } - } -} -Buffer.byteLength = byteLength; - -function slowToString (encoding, start, end) { - var loweredCase = false; - - // No need to verify that "this.length <= MAX_UINT32" since it's a read-only - // property of a typed array. - - // This behaves neither like String nor Uint8Array in that we set start/end - // to their upper/lower bounds if the value passed is out of range. - // undefined is handled specially as per ECMA-262 6th Edition, - // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization. - if (start === undefined || start < 0) { - start = 0; - } - // Return early if start > this.length. Done here to prevent potential uint32 - // coercion fail below. - if (start > this.length) { - return '' - } - - if (end === undefined || end > this.length) { - end = this.length; - } - - if (end <= 0) { - return '' - } - - // Force coersion to uint32. This will also coerce falsey/NaN values to 0. - end >>>= 0; - start >>>= 0; - - if (end <= start) { - return '' - } - - if (!encoding) encoding = 'utf8'; - - while (true) { - switch (encoding) { - case 'hex': - return hexSlice(this, start, end) - - case 'utf8': - case 'utf-8': - return utf8Slice(this, start, end) - - case 'ascii': - return asciiSlice(this, start, end) - - case 'latin1': - case 'binary': - return latin1Slice(this, start, end) - - case 'base64': - return base64Slice(this, start, end) - - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return utf16leSlice(this, start, end) - - default: - if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding) - encoding = (encoding + '').toLowerCase(); - loweredCase = true; - } - } -} - -// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect -// Buffer instances. -Buffer.prototype._isBuffer = true; - -function swap (b, n, m) { - var i = b[n]; - b[n] = b[m]; - b[m] = i; -} - -Buffer.prototype.swap16 = function swap16 () { - var len = this.length; - if (len % 2 !== 0) { - throw new RangeError('Buffer size must be a multiple of 16-bits') - } - for (var i = 0; i < len; i += 2) { - swap(this, i, i + 1); - } - return this -}; - -Buffer.prototype.swap32 = function swap32 () { - var len = this.length; - if (len % 4 !== 0) { - throw new RangeError('Buffer size must be a multiple of 32-bits') - } - for (var i = 0; i < len; i += 4) { - swap(this, i, i + 3); - swap(this, i + 1, i + 2); - } - return this -}; - -Buffer.prototype.swap64 = function swap64 () { - var len = this.length; - if (len % 8 !== 0) { - throw new RangeError('Buffer size must be a multiple of 64-bits') - } - for (var i = 0; i < len; i += 8) { - swap(this, i, i + 7); - swap(this, i + 1, i + 6); - swap(this, i + 2, i + 5); - swap(this, i + 3, i + 4); - } - return this -}; - -Buffer.prototype.toString = function toString () { - var length = this.length | 0; - if (length === 0) return '' - if (arguments.length === 0) return utf8Slice(this, 0, length) - return slowToString.apply(this, arguments) -}; - -Buffer.prototype.equals = function equals (b) { - if (!internalIsBuffer(b)) throw new TypeError('Argument must be a Buffer') - if (this === b) return true - return Buffer.compare(this, b) === 0 -}; - -Buffer.prototype.inspect = function inspect () { - var str = ''; - var max = INSPECT_MAX_BYTES; - if (this.length > 0) { - str = this.toString('hex', 0, max).match(/.{2}/g).join(' '); - if (this.length > max) str += ' ... '; - } - return '' -}; - -Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) { - if (!internalIsBuffer(target)) { - throw new TypeError('Argument must be a Buffer') - } - - if (start === undefined) { - start = 0; - } - if (end === undefined) { - end = target ? target.length : 0; - } - if (thisStart === undefined) { - thisStart = 0; - } - if (thisEnd === undefined) { - thisEnd = this.length; - } - - if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) { - throw new RangeError('out of range index') - } - - if (thisStart >= thisEnd && start >= end) { - return 0 - } - if (thisStart >= thisEnd) { - return -1 - } - if (start >= end) { - return 1 - } - - start >>>= 0; - end >>>= 0; - thisStart >>>= 0; - thisEnd >>>= 0; - - if (this === target) return 0 - - var x = thisEnd - thisStart; - var y = end - start; - var len = Math.min(x, y); - - var thisCopy = this.slice(thisStart, thisEnd); - var targetCopy = target.slice(start, end); - - for (var i = 0; i < len; ++i) { - if (thisCopy[i] !== targetCopy[i]) { - x = thisCopy[i]; - y = targetCopy[i]; - break - } - } - - if (x < y) return -1 - if (y < x) return 1 - return 0 -}; - -// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`, -// OR the last index of `val` in `buffer` at offset <= `byteOffset`. -// -// Arguments: -// - buffer - a Buffer to search -// - val - a string, Buffer, or number -// - byteOffset - an index into `buffer`; will be clamped to an int32 -// - encoding - an optional encoding, relevant is val is a string -// - dir - true for indexOf, false for lastIndexOf -function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) { - // Empty buffer means no match - if (buffer.length === 0) return -1 - - // Normalize byteOffset - if (typeof byteOffset === 'string') { - encoding = byteOffset; - byteOffset = 0; - } else if (byteOffset > 0x7fffffff) { - byteOffset = 0x7fffffff; - } else if (byteOffset < -0x80000000) { - byteOffset = -0x80000000; - } - byteOffset = +byteOffset; // Coerce to Number. - if (isNaN(byteOffset)) { - // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer - byteOffset = dir ? 0 : (buffer.length - 1); - } - - // Normalize byteOffset: negative offsets start from the end of the buffer - if (byteOffset < 0) byteOffset = buffer.length + byteOffset; - if (byteOffset >= buffer.length) { - if (dir) return -1 - else byteOffset = buffer.length - 1; - } else if (byteOffset < 0) { - if (dir) byteOffset = 0; - else return -1 - } - - // Normalize val - if (typeof val === 'string') { - val = Buffer.from(val, encoding); - } - - // Finally, search either indexOf (if dir is true) or lastIndexOf - if (internalIsBuffer(val)) { - // Special case: looking for empty string/buffer always fails - if (val.length === 0) { - return -1 - } - return arrayIndexOf(buffer, val, byteOffset, encoding, dir) - } else if (typeof val === 'number') { - val = val & 0xFF; // Search for a byte value [0-255] - if (Buffer.TYPED_ARRAY_SUPPORT && - typeof Uint8Array.prototype.indexOf === 'function') { - if (dir) { - return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset) - } else { - return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset) - } - } - return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir) - } - - throw new TypeError('val must be string, number or Buffer') -} - -function arrayIndexOf (arr, val, byteOffset, encoding, dir) { - var indexSize = 1; - var arrLength = arr.length; - var valLength = val.length; - - if (encoding !== undefined) { - encoding = String(encoding).toLowerCase(); - if (encoding === 'ucs2' || encoding === 'ucs-2' || - encoding === 'utf16le' || encoding === 'utf-16le') { - if (arr.length < 2 || val.length < 2) { - return -1 - } - indexSize = 2; - arrLength /= 2; - valLength /= 2; - byteOffset /= 2; - } - } - - function read$$1 (buf, i) { - if (indexSize === 1) { - return buf[i] - } else { - return buf.readUInt16BE(i * indexSize) - } - } - - var i; - if (dir) { - var foundIndex = -1; - for (i = byteOffset; i < arrLength; i++) { - if (read$$1(arr, i) === read$$1(val, foundIndex === -1 ? 0 : i - foundIndex)) { - if (foundIndex === -1) foundIndex = i; - if (i - foundIndex + 1 === valLength) return foundIndex * indexSize - } else { - if (foundIndex !== -1) i -= i - foundIndex; - foundIndex = -1; - } - } - } else { - if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength; - for (i = byteOffset; i >= 0; i--) { - var found = true; - for (var j = 0; j < valLength; j++) { - if (read$$1(arr, i + j) !== read$$1(val, j)) { - found = false; - break - } - } - if (found) return i - } - } - - return -1 -} - -Buffer.prototype.includes = function includes (val, byteOffset, encoding) { - return this.indexOf(val, byteOffset, encoding) !== -1 -}; - -Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) { - return bidirectionalIndexOf(this, val, byteOffset, encoding, true) -}; - -Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) { - return bidirectionalIndexOf(this, val, byteOffset, encoding, false) -}; - -function hexWrite (buf, string, offset, length) { - offset = Number(offset) || 0; - var remaining = buf.length - offset; - if (!length) { - length = remaining; - } else { - length = Number(length); - if (length > remaining) { - length = remaining; - } - } - - // must be an even number of digits - var strLen = string.length; - if (strLen % 2 !== 0) throw new TypeError('Invalid hex string') - - if (length > strLen / 2) { - length = strLen / 2; - } - for (var i = 0; i < length; ++i) { - var parsed = parseInt(string.substr(i * 2, 2), 16); - if (isNaN(parsed)) return i - buf[offset + i] = parsed; - } - return i -} - -function utf8Write (buf, string, offset, length) { - return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length) -} - -function asciiWrite (buf, string, offset, length) { - return blitBuffer(asciiToBytes(string), buf, offset, length) -} - -function latin1Write (buf, string, offset, length) { - return asciiWrite(buf, string, offset, length) -} - -function base64Write (buf, string, offset, length) { - return blitBuffer(base64ToBytes(string), buf, offset, length) -} - -function ucs2Write (buf, string, offset, length) { - return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length) -} - -Buffer.prototype.write = function write$$1 (string, offset, length, encoding) { - // Buffer#write(string) - if (offset === undefined) { - encoding = 'utf8'; - length = this.length; - offset = 0; - // Buffer#write(string, encoding) - } else if (length === undefined && typeof offset === 'string') { - encoding = offset; - length = this.length; - offset = 0; - // Buffer#write(string, offset[, length][, encoding]) - } else if (isFinite(offset)) { - offset = offset | 0; - if (isFinite(length)) { - length = length | 0; - if (encoding === undefined) encoding = 'utf8'; - } else { - encoding = length; - length = undefined; - } - // legacy write(string, encoding, offset, length) - remove in v0.13 - } else { - throw new Error( - 'Buffer.write(string, encoding, offset[, length]) is no longer supported' - ) - } - - var remaining = this.length - offset; - if (length === undefined || length > remaining) length = remaining; - - if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) { - throw new RangeError('Attempt to write outside buffer bounds') - } - - if (!encoding) encoding = 'utf8'; - - var loweredCase = false; - for (;;) { - switch (encoding) { - case 'hex': - return hexWrite(this, string, offset, length) - - case 'utf8': - case 'utf-8': - return utf8Write(this, string, offset, length) - - case 'ascii': - return asciiWrite(this, string, offset, length) - - case 'latin1': - case 'binary': - return latin1Write(this, string, offset, length) - - case 'base64': - // Warning: maxLength not taken into account in base64Write - return base64Write(this, string, offset, length) - - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return ucs2Write(this, string, offset, length) - - default: - if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding) - encoding = ('' + encoding).toLowerCase(); - loweredCase = true; - } - } -}; - -Buffer.prototype.toJSON = function toJSON () { - return { - type: 'Buffer', - data: Array.prototype.slice.call(this._arr || this, 0) - } -}; - -function base64Slice (buf, start, end) { - if (start === 0 && end === buf.length) { - return fromByteArray(buf) - } else { - return fromByteArray(buf.slice(start, end)) - } -} - -function utf8Slice (buf, start, end) { - end = Math.min(buf.length, end); - var res = []; - - var i = start; - while (i < end) { - var firstByte = buf[i]; - var codePoint = null; - var bytesPerSequence = (firstByte > 0xEF) ? 4 - : (firstByte > 0xDF) ? 3 - : (firstByte > 0xBF) ? 2 - : 1; - - if (i + bytesPerSequence <= end) { - var secondByte, thirdByte, fourthByte, tempCodePoint; - - switch (bytesPerSequence) { - case 1: - if (firstByte < 0x80) { - codePoint = firstByte; - } - break - case 2: - secondByte = buf[i + 1]; - if ((secondByte & 0xC0) === 0x80) { - tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F); - if (tempCodePoint > 0x7F) { - codePoint = tempCodePoint; - } - } - break - case 3: - secondByte = buf[i + 1]; - thirdByte = buf[i + 2]; - if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) { - tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F); - if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) { - codePoint = tempCodePoint; - } - } - break - case 4: - secondByte = buf[i + 1]; - thirdByte = buf[i + 2]; - fourthByte = buf[i + 3]; - if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) { - tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F); - if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) { - codePoint = tempCodePoint; - } - } - } - } - - if (codePoint === null) { - // we did not generate a valid codePoint so insert a - // replacement char (U+FFFD) and advance only 1 byte - codePoint = 0xFFFD; - bytesPerSequence = 1; - } else if (codePoint > 0xFFFF) { - // encode to utf16 (surrogate pair dance) - codePoint -= 0x10000; - res.push(codePoint >>> 10 & 0x3FF | 0xD800); - codePoint = 0xDC00 | codePoint & 0x3FF; - } - - res.push(codePoint); - i += bytesPerSequence; - } - - return decodeCodePointsArray(res) -} - -// Based on http://stackoverflow.com/a/22747272/680742, the browser with -// the lowest limit is Chrome, with 0x10000 args. -// We go 1 magnitude less, for safety -var MAX_ARGUMENTS_LENGTH = 0x1000; - -function decodeCodePointsArray (codePoints) { - var len = codePoints.length; - if (len <= MAX_ARGUMENTS_LENGTH) { - return String.fromCharCode.apply(String, codePoints) // avoid extra slice() - } - - // Decode in chunks to avoid "call stack size exceeded". - var res = ''; - var i = 0; - while (i < len) { - res += String.fromCharCode.apply( - String, - codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH) - ); - } - return res -} - -function asciiSlice (buf, start, end) { - var ret = ''; - end = Math.min(buf.length, end); - - for (var i = start; i < end; ++i) { - ret += String.fromCharCode(buf[i] & 0x7F); - } - return ret -} - -function latin1Slice (buf, start, end) { - var ret = ''; - end = Math.min(buf.length, end); - - for (var i = start; i < end; ++i) { - ret += String.fromCharCode(buf[i]); - } - return ret -} - -function hexSlice (buf, start, end) { - var len = buf.length; - - if (!start || start < 0) start = 0; - if (!end || end < 0 || end > len) end = len; - - var out = ''; - for (var i = start; i < end; ++i) { - out += toHex(buf[i]); - } - return out -} - -function utf16leSlice (buf, start, end) { - var bytes = buf.slice(start, end); - var res = ''; - for (var i = 0; i < bytes.length; i += 2) { - res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256); - } - return res -} - -Buffer.prototype.slice = function slice (start, end) { - var len = this.length; - start = ~~start; - end = end === undefined ? len : ~~end; - - if (start < 0) { - start += len; - if (start < 0) start = 0; - } else if (start > len) { - start = len; - } - - if (end < 0) { - end += len; - if (end < 0) end = 0; - } else if (end > len) { - end = len; - } - - if (end < start) end = start; - - var newBuf; - if (Buffer.TYPED_ARRAY_SUPPORT) { - newBuf = this.subarray(start, end); - newBuf.__proto__ = Buffer.prototype; - } else { - var sliceLen = end - start; - newBuf = new Buffer(sliceLen, undefined); - for (var i = 0; i < sliceLen; ++i) { - newBuf[i] = this[i + start]; - } - } - - return newBuf -}; - -/* - * Need to make sure that buffer isn't trying to write out of bounds. - */ -function checkOffset (offset, ext, length) { - if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint') - if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length') -} - -Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) { - offset = offset | 0; - byteLength = byteLength | 0; - if (!noAssert) checkOffset(offset, byteLength, this.length); - - var val = this[offset]; - var mul = 1; - var i = 0; - while (++i < byteLength && (mul *= 0x100)) { - val += this[offset + i] * mul; - } - - return val -}; - -Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) { - offset = offset | 0; - byteLength = byteLength | 0; - if (!noAssert) { - checkOffset(offset, byteLength, this.length); - } - - var val = this[offset + --byteLength]; - var mul = 1; - while (byteLength > 0 && (mul *= 0x100)) { - val += this[offset + --byteLength] * mul; - } - - return val -}; - -Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) { - if (!noAssert) checkOffset(offset, 1, this.length); - return this[offset] -}; - -Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 2, this.length); - return this[offset] | (this[offset + 1] << 8) -}; - -Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 2, this.length); - return (this[offset] << 8) | this[offset + 1] -}; - -Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length); - - return ((this[offset]) | - (this[offset + 1] << 8) | - (this[offset + 2] << 16)) + - (this[offset + 3] * 0x1000000) -}; - -Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length); - - return (this[offset] * 0x1000000) + - ((this[offset + 1] << 16) | - (this[offset + 2] << 8) | - this[offset + 3]) -}; - -Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) { - offset = offset | 0; - byteLength = byteLength | 0; - if (!noAssert) checkOffset(offset, byteLength, this.length); - - var val = this[offset]; - var mul = 1; - var i = 0; - while (++i < byteLength && (mul *= 0x100)) { - val += this[offset + i] * mul; - } - mul *= 0x80; - - if (val >= mul) val -= Math.pow(2, 8 * byteLength); - - return val -}; - -Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) { - offset = offset | 0; - byteLength = byteLength | 0; - if (!noAssert) checkOffset(offset, byteLength, this.length); - - var i = byteLength; - var mul = 1; - var val = this[offset + --i]; - while (i > 0 && (mul *= 0x100)) { - val += this[offset + --i] * mul; - } - mul *= 0x80; - - if (val >= mul) val -= Math.pow(2, 8 * byteLength); - - return val -}; - -Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) { - if (!noAssert) checkOffset(offset, 1, this.length); - if (!(this[offset] & 0x80)) return (this[offset]) - return ((0xff - this[offset] + 1) * -1) -}; - -Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 2, this.length); - var val = this[offset] | (this[offset + 1] << 8); - return (val & 0x8000) ? val | 0xFFFF0000 : val -}; - -Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 2, this.length); - var val = this[offset + 1] | (this[offset] << 8); - return (val & 0x8000) ? val | 0xFFFF0000 : val -}; - -Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length); - - return (this[offset]) | - (this[offset + 1] << 8) | - (this[offset + 2] << 16) | - (this[offset + 3] << 24) -}; - -Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length); - - return (this[offset] << 24) | - (this[offset + 1] << 16) | - (this[offset + 2] << 8) | - (this[offset + 3]) -}; - -Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length); - return read(this, offset, true, 23, 4) -}; - -Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length); - return read(this, offset, false, 23, 4) -}; - -Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 8, this.length); - return read(this, offset, true, 52, 8) -}; - -Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 8, this.length); - return read(this, offset, false, 52, 8) -}; - -function checkInt (buf, value, offset, ext, max, min) { - if (!internalIsBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance') - if (value > max || value < min) throw new RangeError('"value" argument is out of bounds') - if (offset + ext > buf.length) throw new RangeError('Index out of range') -} - -Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) { - value = +value; - offset = offset | 0; - byteLength = byteLength | 0; - if (!noAssert) { - var maxBytes = Math.pow(2, 8 * byteLength) - 1; - checkInt(this, value, offset, byteLength, maxBytes, 0); - } - - var mul = 1; - var i = 0; - this[offset] = value & 0xFF; - while (++i < byteLength && (mul *= 0x100)) { - this[offset + i] = (value / mul) & 0xFF; - } - - return offset + byteLength -}; - -Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) { - value = +value; - offset = offset | 0; - byteLength = byteLength | 0; - if (!noAssert) { - var maxBytes = Math.pow(2, 8 * byteLength) - 1; - checkInt(this, value, offset, byteLength, maxBytes, 0); - } - - var i = byteLength - 1; - var mul = 1; - this[offset + i] = value & 0xFF; - while (--i >= 0 && (mul *= 0x100)) { - this[offset + i] = (value / mul) & 0xFF; - } - - return offset + byteLength -}; - -Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0); - if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value); - this[offset] = (value & 0xff); - return offset + 1 -}; - -function objectWriteUInt16 (buf, value, offset, littleEndian) { - if (value < 0) value = 0xffff + value + 1; - for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) { - buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>> - (littleEndian ? i : 1 - i) * 8; - } -} - -Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0); - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value & 0xff); - this[offset + 1] = (value >>> 8); - } else { - objectWriteUInt16(this, value, offset, true); - } - return offset + 2 -}; - -Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0); - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value >>> 8); - this[offset + 1] = (value & 0xff); - } else { - objectWriteUInt16(this, value, offset, false); - } - return offset + 2 -}; - -function objectWriteUInt32 (buf, value, offset, littleEndian) { - if (value < 0) value = 0xffffffff + value + 1; - for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) { - buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff; - } -} - -Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0); - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset + 3] = (value >>> 24); - this[offset + 2] = (value >>> 16); - this[offset + 1] = (value >>> 8); - this[offset] = (value & 0xff); - } else { - objectWriteUInt32(this, value, offset, true); - } - return offset + 4 -}; - -Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0); - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value >>> 24); - this[offset + 1] = (value >>> 16); - this[offset + 2] = (value >>> 8); - this[offset + 3] = (value & 0xff); - } else { - objectWriteUInt32(this, value, offset, false); - } - return offset + 4 -}; - -Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) { - var limit = Math.pow(2, 8 * byteLength - 1); - - checkInt(this, value, offset, byteLength, limit - 1, -limit); - } - - var i = 0; - var mul = 1; - var sub = 0; - this[offset] = value & 0xFF; - while (++i < byteLength && (mul *= 0x100)) { - if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) { - sub = 1; - } - this[offset + i] = ((value / mul) >> 0) - sub & 0xFF; - } - - return offset + byteLength -}; - -Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) { - var limit = Math.pow(2, 8 * byteLength - 1); - - checkInt(this, value, offset, byteLength, limit - 1, -limit); - } - - var i = byteLength - 1; - var mul = 1; - var sub = 0; - this[offset + i] = value & 0xFF; - while (--i >= 0 && (mul *= 0x100)) { - if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) { - sub = 1; - } - this[offset + i] = ((value / mul) >> 0) - sub & 0xFF; - } - - return offset + byteLength -}; - -Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80); - if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value); - if (value < 0) value = 0xff + value + 1; - this[offset] = (value & 0xff); - return offset + 1 -}; - -Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000); - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value & 0xff); - this[offset + 1] = (value >>> 8); - } else { - objectWriteUInt16(this, value, offset, true); - } - return offset + 2 -}; - -Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000); - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value >>> 8); - this[offset + 1] = (value & 0xff); - } else { - objectWriteUInt16(this, value, offset, false); - } - return offset + 2 -}; - -Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000); - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value & 0xff); - this[offset + 1] = (value >>> 8); - this[offset + 2] = (value >>> 16); - this[offset + 3] = (value >>> 24); - } else { - objectWriteUInt32(this, value, offset, true); - } - return offset + 4 -}; - -Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) { - value = +value; - offset = offset | 0; - if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000); - if (value < 0) value = 0xffffffff + value + 1; - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value >>> 24); - this[offset + 1] = (value >>> 16); - this[offset + 2] = (value >>> 8); - this[offset + 3] = (value & 0xff); - } else { - objectWriteUInt32(this, value, offset, false); - } - return offset + 4 -}; - -function checkIEEE754 (buf, value, offset, ext, max, min) { - if (offset + ext > buf.length) throw new RangeError('Index out of range') - if (offset < 0) throw new RangeError('Index out of range') -} - -function writeFloat (buf, value, offset, littleEndian, noAssert) { - if (!noAssert) { - checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38); - } - write(buf, value, offset, littleEndian, 23, 4); - return offset + 4 -} - -Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) { - return writeFloat(this, value, offset, true, noAssert) -}; - -Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) { - return writeFloat(this, value, offset, false, noAssert) -}; - -function writeDouble (buf, value, offset, littleEndian, noAssert) { - if (!noAssert) { - checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308); - } - write(buf, value, offset, littleEndian, 52, 8); - return offset + 8 -} - -Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) { - return writeDouble(this, value, offset, true, noAssert) -}; - -Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) { - return writeDouble(this, value, offset, false, noAssert) -}; - -// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length) -Buffer.prototype.copy = function copy (target, targetStart, start, end) { - if (!start) start = 0; - if (!end && end !== 0) end = this.length; - if (targetStart >= target.length) targetStart = target.length; - if (!targetStart) targetStart = 0; - if (end > 0 && end < start) end = start; - - // Copy 0 bytes; we're done - if (end === start) return 0 - if (target.length === 0 || this.length === 0) return 0 - - // Fatal error conditions - if (targetStart < 0) { - throw new RangeError('targetStart out of bounds') - } - if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds') - if (end < 0) throw new RangeError('sourceEnd out of bounds') - - // Are we oob? - if (end > this.length) end = this.length; - if (target.length - targetStart < end - start) { - end = target.length - targetStart + start; - } - - var len = end - start; - var i; - - if (this === target && start < targetStart && targetStart < end) { - // descending copy from end - for (i = len - 1; i >= 0; --i) { - target[i + targetStart] = this[i + start]; - } - } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) { - // ascending copy from start - for (i = 0; i < len; ++i) { - target[i + targetStart] = this[i + start]; - } - } else { - Uint8Array.prototype.set.call( - target, - this.subarray(start, start + len), - targetStart - ); - } - - return len -}; - -// Usage: -// buffer.fill(number[, offset[, end]]) -// buffer.fill(buffer[, offset[, end]]) -// buffer.fill(string[, offset[, end]][, encoding]) -Buffer.prototype.fill = function fill (val, start, end, encoding) { - // Handle string cases: - if (typeof val === 'string') { - if (typeof start === 'string') { - encoding = start; - start = 0; - end = this.length; - } else if (typeof end === 'string') { - encoding = end; - end = this.length; - } - if (val.length === 1) { - var code = val.charCodeAt(0); - if (code < 256) { - val = code; - } - } - if (encoding !== undefined && typeof encoding !== 'string') { - throw new TypeError('encoding must be a string') - } - if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) { - throw new TypeError('Unknown encoding: ' + encoding) - } - } else if (typeof val === 'number') { - val = val & 255; - } - - // Invalid ranges are not set to a default, so can range check early. - if (start < 0 || this.length < start || this.length < end) { - throw new RangeError('Out of range index') - } - - if (end <= start) { - return this - } - - start = start >>> 0; - end = end === undefined ? this.length : end >>> 0; - - if (!val) val = 0; - - var i; - if (typeof val === 'number') { - for (i = start; i < end; ++i) { - this[i] = val; - } - } else { - var bytes = internalIsBuffer(val) - ? val - : utf8ToBytes(new Buffer(val, encoding).toString()); - var len = bytes.length; - for (i = 0; i < end - start; ++i) { - this[i + start] = bytes[i % len]; - } - } - - return this -}; - -// HELPER FUNCTIONS -// ================ - -var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g; - -function base64clean (str) { - // Node strips out invalid characters like \n and \t from the string, base64-js does not - str = stringtrim(str).replace(INVALID_BASE64_RE, ''); - // Node converts strings with length < 2 to '' - if (str.length < 2) return '' - // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not - while (str.length % 4 !== 0) { - str = str + '='; - } - return str -} - -function stringtrim (str) { - if (str.trim) return str.trim() - return str.replace(/^\s+|\s+$/g, '') -} - -function toHex (n) { - if (n < 16) return '0' + n.toString(16) - return n.toString(16) -} - -function utf8ToBytes (string, units) { - units = units || Infinity; - var codePoint; - var length = string.length; - var leadSurrogate = null; - var bytes = []; - - for (var i = 0; i < length; ++i) { - codePoint = string.charCodeAt(i); - - // is surrogate component - if (codePoint > 0xD7FF && codePoint < 0xE000) { - // last char was a lead - if (!leadSurrogate) { - // no lead yet - if (codePoint > 0xDBFF) { - // unexpected trail - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD); - continue - } else if (i + 1 === length) { - // unpaired lead - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD); - continue - } - - // valid lead - leadSurrogate = codePoint; - - continue - } - - // 2 leads in a row - if (codePoint < 0xDC00) { - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD); - leadSurrogate = codePoint; - continue - } - - // valid surrogate pair - codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000; - } else if (leadSurrogate) { - // valid bmp char, but last char was a lead - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD); - } - - leadSurrogate = null; - - // encode utf8 - if (codePoint < 0x80) { - if ((units -= 1) < 0) break - bytes.push(codePoint); - } else if (codePoint < 0x800) { - if ((units -= 2) < 0) break - bytes.push( - codePoint >> 0x6 | 0xC0, - codePoint & 0x3F | 0x80 - ); - } else if (codePoint < 0x10000) { - if ((units -= 3) < 0) break - bytes.push( - codePoint >> 0xC | 0xE0, - codePoint >> 0x6 & 0x3F | 0x80, - codePoint & 0x3F | 0x80 - ); - } else if (codePoint < 0x110000) { - if ((units -= 4) < 0) break - bytes.push( - codePoint >> 0x12 | 0xF0, - codePoint >> 0xC & 0x3F | 0x80, - codePoint >> 0x6 & 0x3F | 0x80, - codePoint & 0x3F | 0x80 - ); - } else { - throw new Error('Invalid code point') - } - } - - return bytes -} - -function asciiToBytes (str) { - var byteArray = []; - for (var i = 0; i < str.length; ++i) { - // Node's code seems to be doing this and not & 0x7F.. - byteArray.push(str.charCodeAt(i) & 0xFF); - } - return byteArray -} - -function utf16leToBytes (str, units) { - var c, hi, lo; - var byteArray = []; - for (var i = 0; i < str.length; ++i) { - if ((units -= 2) < 0) break - - c = str.charCodeAt(i); - hi = c >> 8; - lo = c % 256; - byteArray.push(lo); - byteArray.push(hi); - } - - return byteArray -} - - -function base64ToBytes (str) { - return toByteArray(base64clean(str)) -} - -function blitBuffer (src, dst, offset, length) { - for (var i = 0; i < length; ++i) { - if ((i + offset >= dst.length) || (i >= src.length)) break - dst[i + offset] = src[i]; - } - return i -} - -function isnan (val) { - return val !== val // eslint-disable-line no-self-compare -} - - -// the following is from is-buffer, also by Feross Aboukhadijeh and with same lisence -// The _isBuffer check is for Safari 5-7 support, because it's missing -// Object.prototype.constructor. Remove this eventually -function isBuffer(obj) { - return obj != null && (!!obj._isBuffer || isFastBuffer(obj) || isSlowBuffer(obj)) -} - -function isFastBuffer (obj) { - return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj) -} - -// For Node v0.10 support. Remove this eventually. -function isSlowBuffer (obj) { - return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isFastBuffer(obj.slice(0, 0)) -} - -var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; - - - -function unwrapExports (x) { - return x && x.__esModule ? x['default'] : x; -} - -function createCommonjsModule(fn, module) { - return module = { exports: {} }, fn(module, module.exports), module.exports; -} - -var parserTypescript_1 = createCommonjsModule(function (module) { -"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}function createError$1(e,t){const n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n}function includeShebang$1(e,t){if(!e.startsWith("#!"))return;const n=e.indexOf("\n"),r={type:"Line",value:e.slice(2,n),range:[0,n],loc:{source:null,start:{line:1,column:0},end:{line:1,column:n}}};t.comments=[r].concat(t.comments);}function commonjsRequire$$1(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function createCommonjsModule$$1(e,t){return t={exports:{}},e(t,t.exports),t.exports}function toVLQSigned(e){return e<0?1+(-e<<1):0+(e<<1)}function fromVLQSigned(e){var t=e>>1;return 1==(1&e)?-t:t}function ArraySet$1(){this._array=[],this._set=Object.create(null);}function generatedPositionAfter(e,t){var n=e.generatedLine,r=t.generatedLine,i=e.generatedColumn,a=t.generatedColumn;return r>n||r==n&&a>=i||util$4.compareByGeneratedPositionsInflated(e,t)<=0}function MappingList$1(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0};}function SourceMapGenerator$1(e){e||(e={}),this._file=util.getArg(e,"file",null),this._sourceRoot=util.getArg(e,"sourceRoot",null),this._skipValidation=util.getArg(e,"skipValidation",!1),this._sources=new ArraySet,this._names=new ArraySet,this._mappings=new MappingList,this._sourcesContents=null;}function swap(e,t,n){var r=e[t];e[t]=e[n],e[n]=r;}function randomIntInRange(e,t){return Math.round(e+Math.random()*(t-e))}function doQuickSort(e,t,n,r){if(n";var n=this.getLineNumber();if(null!=n){t+=":"+n;var r=this.getColumnNumber();r&&(t+=":"+r);}}var i="",a=this.getFunctionName(),o=!0,s=this.isConstructor();if(!(this.isToplevel()||s)){var c=this.getTypeName();"[object Object]"===c&&(c="null");var u=this.getMethodName();a?(c&&0!=a.indexOf(c)&&(i+=c+"."),i+=a,u&&a.indexOf("."+u)!=a.length-u.length-1&&(i+=" [as "+u+"]")):i+=c+"."+(u||"");}else s?i+="new "+(a||""):a?i+=a:(i+=t,o=!1);return o&&(i+=" ("+t+")"),i}function cloneCallSite(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(n){t[n]=/^(?:is|get)/.test(n)?function(){return e[n].call(e)}:e[n];}),t.toString=CallSiteToString,t}function wrapCallSite(e){if(e.isNative())return e;var t=e.getFileName()||e.getScriptNameOrSourceURL();if(t){var n=e.getLineNumber(),r=e.getColumnNumber()-1;1!==n||isInBrowser()||e.isEval()||(r-=62);var i=mapSourcePosition({source:t,line:n,column:r});return e=cloneCallSite(e),e.getFileName=function(){return i.source},e.getLineNumber=function(){return i.line},e.getColumnNumber=function(){return i.column+1},e.getScriptNameOrSourceURL=function(){return i.source},e}var a=e.isEval()&&e.getEvalOrigin();return a?(a=mapEvalOrigin(a),e=cloneCallSite(e),e.getEvalOrigin=function(){return a},e):e}function prepareStackTrace(e,t){return emptyCacheBetweenOperations&&(fileContentsCache={},sourceMapCache={}),e+t.map(function(e){return"\n at "+wrapCallSite(e)}).join("")}function getErrorSource(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var n=t[1],r=+t[2],i=+t[3],a=fileContentsCache[n];if(!a&&fs$1&&fs$1.existsSync(n)&&(a=fs$1.readFileSync(n,"utf8")),a){var o=a.split(/(?:\r\n|\r|\n)/)[r-1];if(o)return n+":"+r+"\n"+o+"\n"+new Array(i).join(" ")+"^"}}return null}function printErrorAndExit(e){var t=getErrorSource(e);t&&(console.error(),console.error(t)),console.error(e.stack),process.exit(1);}function shimEmitUncaughtException(){var e=process.emit;process.emit=function(t){if("uncaughtException"===t){var n=arguments[1]&&arguments[1].stack,r=this.listeners(t).length>0;if(n&&!r)return printErrorAndExit(arguments[1])}return e.apply(this,arguments)};}function basePropertyOf(e){return function(t){return null==e?void 0:e[t]}}function baseToString(e){if("string"==typeof e)return e;if(isSymbol(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return"0"==t&&1/e==-INFINITY?"-0":t}function isObjectLike(e){return!!e&&"object"==typeof e}function isSymbol(e){return"symbol"==typeof e||isObjectLike(e)&&objectToString.call(e)==symbolTag}function toString(e){return null==e?"":baseToString(e)}function unescape$1(e){return(e=toString(e))&&reHasEscapedHtml.test(e)?e.replace(reEscapedHtml,unescapeHtmlChar):e}function findFirstMatchingChild(e,t,n){const r=e.getChildren(t);for(let e=0;e-1}function isLogicalOperator(e){return LOGICAL_OPERATORS.indexOf(e.kind)>-1}function getTextForTokenKind(e){return TOKEN_TO_TEXT[e]}function isESTreeClassMember(e){return e.kind!==SyntaxKind$1.SemicolonClassElement}function hasModifier(e,t){return!!t.modifiers&&!!t.modifiers.length&&t.modifiers.some(t=>t.kind===e)}function isComma(e){return e.kind===SyntaxKind$1.CommaToken}function getBinaryExpressionType(e){return isAssignmentOperator(e)?"AssignmentExpression":isLogicalOperator(e)?"LogicalExpression":"BinaryExpression"}function getLocFor(e,t,n){const r=n.getLineAndCharacterOfPosition(e),i=n.getLineAndCharacterOfPosition(t);return{start:{line:r.line+1,column:r.character},end:{line:i.line+1,column:i.character}}}function getLoc(e,t){return getLocFor(e.getStart(),e.end,t)}function isToken(e){return e.kind>=SyntaxKind$1.FirstToken&&e.kind<=SyntaxKind$1.LastToken}function isJSXToken(e){return e.kind>=SyntaxKind$1.JsxElement&&e.kind<=SyntaxKind$1.JsxAttribute}function isTypeKeyword(e){switch(e){case SyntaxKind$1.AnyKeyword:case SyntaxKind$1.BooleanKeyword:case SyntaxKind$1.NeverKeyword:case SyntaxKind$1.NumberKeyword:case SyntaxKind$1.ObjectKeyword:case SyntaxKind$1.StringKeyword:case SyntaxKind$1.SymbolKeyword:case SyntaxKind$1.VoidKeyword:return!0;default:return!1}}function getDeclarationKind(e){let t;switch(e.kind){case SyntaxKind$1.TypeAliasDeclaration:t="type";break;case SyntaxKind$1.VariableDeclarationList:t=isLet(e)?"let":isConst(e)?"const":"var";break;default:throw"Unable to determine declaration kind."}return t}function getTSNodeAccessibility(e){const t=e.modifiers;if(!t)return null;for(let e=0;ee.kind===t)}function findFirstMatchingAncestor(e,t){for(;e;){if(t(e))return e;e=e.parent;}}function findAncestorOfKind(e,t){return findFirstMatchingAncestor(e,e=>e.kind===t)}function hasJSXAncestor(e){return!!findFirstMatchingAncestor(e,isJSXToken)}function unescapeIdentifier(e){return ts$1.unescapeIdentifier(e)}function unescapeStringLiteralText(e){return unescape(e)}function isComputedProperty(e){return e.kind===SyntaxKind$1.ComputedPropertyName}function isOptional(e){return!!e.questionToken&&e.questionToken.kind===SyntaxKind$1.QuestionToken}function isWithinTypeAnnotation(e){return e.parent.type===e||e.parent.types&&e.parent.types.indexOf(e)>-1}function fixExports(e,t,n){if(e.modifiers&&e.modifiers[0].kind===SyntaxKind$1.ExportKeyword){const r=e.modifiers[0],i=e.modifiers[1],a=e.modifiers[e.modifiers.length-1],o=i&&i.kind===SyntaxKind$1.DefaultKeyword,s=findNextToken(a,n);t.range[0]=s.getStart(),t.loc=getLocFor(t.range[0],t.range[1],n);const c={type:o?"ExportDefaultDeclaration":"ExportNamedDeclaration",declaration:t,range:[r.getStart(),t.range[1]],loc:getLocFor(r.getStart(),t.range[1],n)};return o||(c.specifiers=[],c.source=null),c}return t}function getTokenType(e){if(e.originalKeywordKind)switch(e.originalKeywordKind){case SyntaxKind$1.NullKeyword:return"Null";case SyntaxKind$1.GetKeyword:case SyntaxKind$1.SetKeyword:case SyntaxKind$1.TypeKeyword:case SyntaxKind$1.ModuleKeyword:return"Identifier";default:return"Keyword"}if(e.kind>=SyntaxKind$1.FirstKeyword&&e.kind<=SyntaxKind$1.LastFutureReservedWord)return e.kind===SyntaxKind$1.FalseKeyword||e.kind===SyntaxKind$1.TrueKeyword?"Boolean":"Keyword";if(e.kind>=SyntaxKind$1.FirstPunctuation&&e.kind<=SyntaxKind$1.LastBinaryOperator)return"Punctuator";if(e.kind>=SyntaxKind$1.NoSubstitutionTemplateLiteral&&e.kind<=SyntaxKind$1.TemplateTail)return"Template";switch(e.kind){case SyntaxKind$1.NumericLiteral:return"Numeric";case SyntaxKind$1.JsxText:return"JSXText";case SyntaxKind$1.StringLiteral:return!e.parent||e.parent.kind!==SyntaxKind$1.JsxAttribute&&e.parent.kind!==SyntaxKind$1.JsxElement?"String":"JSXText";case SyntaxKind$1.RegularExpressionLiteral:return"RegularExpression";case SyntaxKind$1.Identifier:case SyntaxKind$1.ConstructorKeyword:case SyntaxKind$1.GetKeyword:case SyntaxKind$1.SetKeyword:}if(e.parent){if(e.kind===SyntaxKind$1.Identifier&&e.parent.kind===SyntaxKind$1.PropertyAccessExpression&&hasJSXAncestor(e))return"JSXIdentifier";if(isJSXToken(e.parent)){if(e.kind===SyntaxKind$1.PropertyAccessExpression)return"JSXMemberExpression";if(e.kind===SyntaxKind$1.Identifier)return"JSXIdentifier"}}return"Identifier"}function convertToken(e,t){const n=e.kind===SyntaxKind$1.JsxText?e.getFullStart():e.getStart(),r=e.getEnd(),i=t.text.slice(n,r),a={type:getTokenType(e),value:i,range:[n,r],loc:getLocFor(n,r,t)};return"RegularExpression"===a.type&&(a.regex={pattern:i.slice(1,i.lastIndexOf("/")),flags:i.slice(i.lastIndexOf("/")+1)}),a}function convertTokens(e){function t(r){if(isToken(r)&&r.kind!==SyntaxKind$1.EndOfFileToken){const t=convertToken(r,e);t&&n.push(t);}else r.getChildren().forEach(t);}const n=[];return t(e),n}function getNodeContainer(e,t,n){function r(e){const a=e.pos,o=e.end;t>=a&&n<=o&&(isToken(e)?i=e:e.getChildren().forEach(r));}let i=null;return r(e),i}function convertTypeScriptCommentToEsprimaComment(e,t,n,r,i,a){const o={type:e?"Block":"Line",value:t};return"number"==typeof n&&(o.range=[n,r]),"object"==typeof i&&(o.loc={start:i,end:a}),o}function getCommentFromTriviaScanner(e,t,n){const r=e.getToken()===ts$2.SyntaxKind.MultiLineCommentTrivia,i={pos:e.getTokenPos(),end:e.getTextPos(),kind:e.getToken()},a=n.substring(i.pos,i.end),o=r?a.replace(/^\/\*/,"").replace(/\*\/$/,""):a.replace(/^\/\//,""),s=nodeUtils$4.getLocFor(i.pos,i.end,t);return convertTypeScriptCommentToEsprimaComment(r,o,i.pos,i.end,s.start,s.end)}function convertComments$1(e,t){const n=[],r=ts$2.createScanner(e.languageVersion,!1,0,t);let i=r.scan();for(;i!==ts$2.SyntaxKind.EndOfFileToken;){const a=r.getTokenPos(),o=r.getTextPos();let s=null;switch(i){case ts$2.SyntaxKind.SingleLineCommentTrivia:case ts$2.SyntaxKind.MultiLineCommentTrivia:{const i=getCommentFromTriviaScanner(r,e,t);n.push(i);break}case ts$2.SyntaxKind.CloseBraceToken:if((s=nodeUtils$4.getNodeContainer(e,a,o)).kind===ts$2.SyntaxKind.TemplateMiddle||s.kind===ts$2.SyntaxKind.TemplateTail){i=r.reScanTemplateToken();continue}break;case ts$2.SyntaxKind.SlashToken:case ts$2.SyntaxKind.SlashEqualsToken:if((s=nodeUtils$4.getNodeContainer(e,a,o)).kind===ts$2.SyntaxKind.RegularExpressionLiteral){i=r.reScanSlashToken();continue}}i=r.scan();}return n}function convertError(e){const t=e.file.getLineAndCharacterOfPosition(e.start);return{index:e.start,lineNumber:t.line+1,column:t.character,message:e.message||e.messageText}}function resetExtra(){extra={tokens:null,range:!1,loc:!1,comment:!1,comments:[],tolerant:!1,errors:[],strict:!1,ecmaFeatures:{},useJSXTextNode:!1,log:console.log};}function parse$1(e,t){const n=String;if("string"==typeof e||e instanceof String||(e=n(e)),resetExtra(),void 0!==t&&(extra.range="boolean"==typeof t.range&&t.range,extra.loc="boolean"==typeof t.loc&&t.loc,extra.loc&&null!==t.source&&void 0!==t.source&&(extra.source=n(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(extra.tokens=[]),"boolean"==typeof t.comment&&t.comment&&(extra.comment=!0,extra.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(extra.errors=[]),t.ecmaFeatures&&"object"==typeof t.ecmaFeatures&&(extra.ecmaFeatures.jsx=t.ecmaFeatures.jsx),t.errorOnUnknownASTType&&(extra.errorOnUnknownASTType=!0),"boolean"==typeof t.useJSXTextNode&&t.useJSXTextNode&&(extra.useJSXTextNode=!0),"function"==typeof t.loggerFn?extra.log=t.loggerFn:!1===t.loggerFn&&(extra.log=Function.prototype)),!isRunningSupportedTypeScriptVersion&&!warnedAboutTSVersion){const e=["=============","WARNING: You are currently running a version of TypeScript which is not officially supported by typescript-eslint-parser.","You may find that it works just fine, or you may not.",`SUPPORTED TYPESCRIPT VERSIONS: ${SUPPORTED_TYPESCRIPT_VERSIONS}`,`YOUR TYPESCRIPT VERSION: ${ACTIVE_TYPESCRIPT_VERSION}`,"Please only submit bug reports when using the officially supported version.","============="];extra.log(e.join("\n\n")),warnedAboutTSVersion=!0;}const r=extra.ecmaFeatures.jsx?"eslint.tsx":"eslint.ts",i={fileExists:()=>!0,getCanonicalFileName:()=>r,getCurrentDirectory:()=>"",getDefaultLibFileName:()=>"lib.d.ts",getNewLine:()=>"\n",getSourceFile:t=>ts.createSourceFile(t,e,ts.ScriptTarget.Latest,!0),readFile:()=>null,useCaseSensitiveFileNames:()=>!0,writeFile:()=>null},a=ts.createProgram([r],{noResolve:!0,target:ts.ScriptTarget.Latest,jsx:extra.ecmaFeatures.jsx?"preserve":void 0},i).getSourceFile(r);return extra.code=e,convert(a,extra)}function parse(e){const t=isProbablyJsx(e);let n;try{try{n=tryParseTypeScript(e,t);}catch(r){n=tryParseTypeScript(e,!t);}}catch(e){if(void 0===e.lineNumber)throw e;throw createError(e.message,{start:{line:e.lineNumber,column:e.column+1}})}return delete n.tokens,includeShebang(e,n),n}function tryParseTypeScript(e,t){return parser.parse(e,{loc:!0,range:!0,tokens:!0,comment:!0,useJSXTextNode:!0,ecmaFeatures:{jsx:t},loggerFn:()=>{}})}function isProbablyJsx(e){return new RegExp(["(^[^\"'`]*)"].join(""),"m").test(e)}var fs$$1=_interopDefault(fs),path$$1=_interopDefault(path),os$$1=_interopDefault(os),crypto$$1=_interopDefault(crypto),module$1$$1=_interopDefault(module$1),parserCreateError=createError$1,parserIncludeShebang=includeShebang$1,astNodeTypes$1={ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",AwaitExpression:"AwaitExpression",BinaryExpression:"BinaryExpression",BlockStatement:"BlockStatement",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ClassImplements:"ClassImplements",ClassProperty:"ClassProperty",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DeclareFunction:"DeclareFunction",Decorator:"Decorator",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExperimentalRestProperty:"ExperimentalRestProperty",ExperimentalSpreadProperty:"ExperimentalSpreadProperty",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",ForStatement:"ForStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GenericTypeAnnotation:"GenericTypeAnnotation",Identifier:"Identifier",IfStatement:"IfStatement",Import:"Import",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText",LabeledStatement:"LabeledStatement",Literal:"Literal",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",TSAbstractClassProperty:"TSAbstractClassProperty",TSAbstractKeyword:"TSAbstractKeyword",TSAbstractMethodDefinition:"TSAbstractMethodDefinition",TSAnyKeyword:"TSAnyKeyword",TSArrayType:"TSArrayType",TSAsyncKeyword:"TSAsyncKeyword",TSBooleanKeyword:"TSBooleanKeyword",TSConstructorType:"TSConstructorType",TSConstructSignature:"TSConstructSignature",TSDeclareKeyword:"TSDeclareKeyword",TSEnumDeclaration:"TSEnumDeclaration",TSEnumMember:"TSEnumMember",TSExportAssignment:"TSExportAssignment",TSExportKeyword:"TSExportKeyword",TSIndexSignature:"TSIndexSignature",TSInterfaceBody:"TSInterfaceBody",TSInterfaceDeclaration:"TSInterfaceDeclaration",TSInterfaceHeritage:"TSInterfaceHeritage",TSFunctionType:"TSFunctionType",TSMethodSignature:"TSMethodSignature",TSModuleBlock:"TSModuleBlock",TSModuleDeclaration:"TSModuleDeclaration",TSNamespaceFunctionDeclaration:"TSNamespaceFunctionDeclaration",TSNonNullExpression:"TSNonNullExpression",TSNeverKeyword:"TSNeverKeyword",TSNullKeyword:"TSNullKeyword",TSNumberKeyword:"TSNumberKeyword",TSObjectKeyword:"TSObjectKeyword",TSParameterProperty:"TSParameterProperty",TSPrivateKeyword:"TSPrivateKeyword",TSPropertySignature:"TSPropertySignature",TSProtectedKeyword:"TSProtectedKeyword",TSPublicKeyword:"TSPublicKeyword",TSQualifiedName:"TSQualifiedName",TSQuestionToken:"TSQuestionToken",TSReadonlyKeyword:"TSReadonlyKeyword",TSStaticKeyword:"TSStaticKeyword",TSStringKeyword:"TSStringKeyword",TSSymbolKeyword:"TSSymbolKeyword",TSTypeLiteral:"TSTypeLiteral",TSTypePredicate:"TSTypePredicate",TSTypeReference:"TSTypeReference",TSUnionType:"TSUnionType",TSUndefinedKeyword:"TSUndefinedKeyword",TSVoidKeyword:"TSVoidKeyword",TypeAnnotation:"TypeAnnotation",TypeParameter:"TypeParameter",TypeParameterDeclaration:"TypeParameterDeclaration",TypeParameterInstantiation:"TypeParameterInstantiation",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},commonjsGlobal$$1="undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{},intToCharMap="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),encode$1=function(e){if(0<=e&&e>>=VLQ_BASE_SHIFT)>0&&(t|=VLQ_CONTINUATION_BIT),n+=base64.encode(t);}while(r>0);return n},decode=function(e,t,n){var r,i,a=e.length,o=0,s=0;do{if(t>=a)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=base64.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(i&VLQ_CONTINUATION_BIT),o+=(i&=VLQ_BASE_MASK)<=0;l--)"."===(o=c[l])?c.splice(l,1):".."===o?u++:u>0&&(""===o?(c.splice(l+1,u),u=0):(c.splice(l,2),u--));return""===(i=c.join("/"))&&(i=s?"/":"."),a?(a.path=i,r(a)):i}function a(e){return e}function o(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function s(e,t){return e===t?0:e>t?1:-1}t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var c=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,u=/^data:.+\,.+$/;t.urlParse=n,t.urlGenerate=r,t.normalize=i,t.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var a=n(t),o=n(e);if(o&&(e=o.path||"/"),a&&!a.scheme)return o&&(a.scheme=o.scheme),r(a);if(a||t.match(u))return t;if(o&&!o.host&&!o.path)return o.host=t,r(o);var s="/"===t.charAt(0)?t:i(e.replace(/\/+$/,"")+"/"+t);return o?(o.path=s,r(o)):s},t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(c)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n;}return Array(n+1).join("../")+t.substr(e.length+1)};var l=!("__proto__"in Object.create(null));t.toSetString=l?a:function(e){return o(e)?"$"+e:e},t.fromSetString=l?a:function(e){return o(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var r=e.source-t.source;return 0!==r?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)||n?r:0!=(r=e.generatedColumn-t.generatedColumn)?r:0!=(r=e.generatedLine-t.generatedLine)?r:e.name-t.name},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!=(r=e.generatedColumn-t.generatedColumn)||n?r:0!=(r=e.source-t.source)?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)?r:e.name-t.name},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!=(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=s(e.source,t.source))?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)?n:s(e.name,t.name)};}),util$3=util$1,has=Object.prototype.hasOwnProperty;ArraySet$1.fromArray=function(e,t){for(var n=new ArraySet$1,r=0,i=e.length;r=0&&e0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},SourceMapGenerator$1.prototype._serializeMappings=function(){for(var e,t,n,r,i=0,a=1,o=0,s=0,c=0,u=0,l="",_=this._mappings.toArray(),d=0,p=_.length;d0){if(!util.compareByGeneratedPositionsInflated(t,_[d-1]))continue;e+=",";}e+=base64VLQ.encode(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=base64VLQ.encode(r-u),u=r,e+=base64VLQ.encode(t.originalLine-1-s),s=t.originalLine-1,e+=base64VLQ.encode(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=base64VLQ.encode(n-c),c=n)),l+=e;}return l},SourceMapGenerator$1.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=util.relative(t,e));var n=util.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},SourceMapGenerator$1.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},SourceMapGenerator$1.prototype.toString=function(){return JSON.stringify(this.toJSON())};var SourceMapGenerator_1=SourceMapGenerator$1,sourceMapGenerator={SourceMapGenerator:SourceMapGenerator_1},binarySearch$1=createCommonjsModule$$1(function(e,t){function n(e,r,i,a,o,s){var c=Math.floor((r-e)/2)+e,u=o(i,a[c],!0);return 0===u?c:u>0?r-c>1?n(c,r,i,a,o,s):s==t.LEAST_UPPER_BOUND?r1?n(e,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,i,a){if(0===r.length)return-1;var o=n(-1,r.length,e,r,i,a||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===i(r[o],r[o-1],!0);)--o;return o};}),quickSort_1=function(e,t){doQuickSort(e,t,0,e.length-1);},quickSort$1={quickSort:quickSort_1},util$5=util$1,binarySearch=binarySearch$1,ArraySet$2=arraySet.ArraySet,base64VLQ$1=base64Vlq,quickSort=quickSort$1.quickSort;SourceMapConsumer$2.fromSourceMap=function(e){return BasicSourceMapConsumer.fromSourceMap(e)},SourceMapConsumer$2.prototype._version=3,SourceMapConsumer$2.prototype.__generatedMappings=null,Object.defineProperty(SourceMapConsumer$2.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),SourceMapConsumer$2.prototype.__originalMappings=null,Object.defineProperty(SourceMapConsumer$2.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),SourceMapConsumer$2.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},SourceMapConsumer$2.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},SourceMapConsumer$2.GENERATED_ORDER=1,SourceMapConsumer$2.ORIGINAL_ORDER=2,SourceMapConsumer$2.GREATEST_LOWER_BOUND=1,SourceMapConsumer$2.LEAST_UPPER_BOUND=2,SourceMapConsumer$2.prototype.eachMapping=function(e,t,n){var r,i=t||null;switch(n||SourceMapConsumer$2.GENERATED_ORDER){case SourceMapConsumer$2.GENERATED_ORDER:r=this._generatedMappings;break;case SourceMapConsumer$2.ORIGINAL_ORDER:r=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;r.map(function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=a&&(t=util$5.join(a,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}},this).forEach(e,i);},SourceMapConsumer$2.prototype.allGeneratedPositionsFor=function(e){var t=util$5.getArg(e,"line"),n={source:util$5.getArg(e,"source"),originalLine:t,originalColumn:util$5.getArg(e,"column",0)};if(null!=this.sourceRoot&&(n.source=util$5.relative(this.sourceRoot,n.source)),!this._sources.has(n.source))return[];n.source=this._sources.indexOf(n.source);var r=[],i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",util$5.compareByOriginalPositions,binarySearch.LEAST_UPPER_BOUND);if(i>=0){var a=this._originalMappings[i];if(void 0===e.column)for(var o=a.originalLine;a&&a.originalLine===o;)r.push({line:util$5.getArg(a,"generatedLine",null),column:util$5.getArg(a,"generatedColumn",null),lastColumn:util$5.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var s=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==s;)r.push({line:util$5.getArg(a,"generatedLine",null),column:util$5.getArg(a,"generatedColumn",null),lastColumn:util$5.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];}return r};var SourceMapConsumer_1=SourceMapConsumer$2;BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer$2.prototype),BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer$2,BasicSourceMapConsumer.fromSourceMap=function(e){var t=Object.create(BasicSourceMapConsumer.prototype),n=t._names=ArraySet$2.fromArray(e._names.toArray(),!0),r=t._sources=ArraySet$2.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var i=e._mappings.toArray().slice(),a=t.__generatedMappings=[],o=t.__originalMappings=[],s=0,c=i.length;s1&&(n.source=_+i[1],_+=i[1],n.originalLine=u+i[2],u=n.originalLine,n.originalLine+=1,n.originalColumn=l+i[3],l=n.originalColumn,i.length>4&&(n.name=d+i[4],d+=i[4])),h.push(n),"number"==typeof n.originalLine&&y.push(n);}quickSort(h,util$5.compareByGeneratedPositionsDeflated),this.__generatedMappings=h,quickSort(y,util$5.compareByOriginalPositions),this.__originalMappings=y;},BasicSourceMapConsumer.prototype._findMapping=function(e,t,n,r,i,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return binarySearch.search(e,t,i,a)},BasicSourceMapConsumer.prototype.computeColumnSpans=function(){for(var e=0;e=0){var r=this._generatedMappings[n];if(r.generatedLine===t.generatedLine){var i=util$5.getArg(r,"source",null);null!==i&&(i=this._sources.at(i),null!=this.sourceRoot&&(i=util$5.join(this.sourceRoot,i)));var a=util$5.getArg(r,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:util$5.getArg(r,"originalLine",null),column:util$5.getArg(r,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},BasicSourceMapConsumer.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=util$5.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=util$5.urlParse(this.sourceRoot))){var r=e.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(r))return this.sourcesContent[this._sources.indexOf(r)];if((!n.path||"/"==n.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},BasicSourceMapConsumer.prototype.generatedPositionFor=function(e){var t=util$5.getArg(e,"source");if(null!=this.sourceRoot&&(t=util$5.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var n={source:t=this._sources.indexOf(t),originalLine:util$5.getArg(e,"line"),originalColumn:util$5.getArg(e,"column")},r=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",util$5.compareByOriginalPositions,util$5.getArg(e,"bias",SourceMapConsumer$2.GREATEST_LOWER_BOUND));if(r>=0){var i=this._originalMappings[r];if(i.source===n.source)return{line:util$5.getArg(i,"generatedLine",null),column:util$5.getArg(i,"generatedColumn",null),lastColumn:util$5.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var BasicSourceMapConsumer_1=BasicSourceMapConsumer;IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer$2.prototype),IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer$2,IndexedSourceMapConsumer.prototype._version=3,Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){for(var e=[],t=0;t0&&(u&&r(u,o()),i.add(a.join(""))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);null!=r&&(null!=n&&(e=util$6.join(n,e)),i.setSourceContent(e,r));}),i},SourceNode$1.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e);},this);else{if(!e[isSourceNode]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e);}return this},SourceNode$1.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[isSourceNode]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e);}return this},SourceNode$1.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n0){for(t=[],n=0;n0;for(var n=0,r=e;n0){var a=e.length;if(a>0){var o=void 0===r||r<0?0:r,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=n;o<=s;)c=t(c,e[o],o),o++;return c}}return n}function v(e,t){return Ke.call(e,t)}function b(e,t){e.forEach(function(e,n){t.set(n,e);});}function x(e,t,n){if(e===t)return!0;if(!e||!t)return!1;for(var r in e)if(Ke.call(e,r)){if(void 0===!Ke.call(t,r))return!1;if(n?!n(e[r],t[r]):e[r]!==t[r])return!1}for(var r in t)if(Ke.call(t,r)&&!Ke.call(e,r))return!1;return!0}function S(e,t,r){for(var i=n(),a=0,o=e;a0?1:0}if(t=t.toUpperCase(),n=n.toUpperCase(),t===n)return 0}return t0&&".."!==y(r)?r.pop():o&&r.push(o));}return r}function K(t){var n=M(t=R(t)),r=t.substr(0,n),i=B(t,n);if(i.length){var a=r+i.join(e.directorySeparator);return j(t)?a+e.directorySeparator:a}return r}function j(e){return e.charCodeAt(e.length-1)===je}function J(t){return t.substr(0,Math.max(M(t),t.lastIndexOf(e.directorySeparator)))}function z(e){return e&&!G(e)&&-1!==e.indexOf("://")}function U(e){return/^\.\.?($|[\\/])/.test(e)}function q(e){return U(e)||G(e)}function V(e){return e.target||0}function $(t){return"number"==typeof t.module?t.module:V(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function W(e){for(var t=!1,n=0;n1&&""===y(s)&&s.pop();var c;for(c=0;c=0&&e.indexOf(t,n)===n}function ce(e){return ne(e).indexOf(".")>=0}function ue(e,t){return e.length>t.length&&se(e,t)}function le(e,t){for(var n=0,r=t;n0;)c+=")?",p--;return c}}function me(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function ge(e,t,n,r,i){e=K(e);var a=re(i=K(i),e);return{includeFilePatterns:c(de(n,a,"files"),function(e){return"^"+e+"$"}),includeFilePattern:_e(n,a,"files"),includeDirectoryPattern:_e(n,a,"directories"),excludePattern:_e(t,a,"exclude"),basePaths:ye(e,n,r)}}function ye(t,n,r){var i=[t];if(n){for(var a=[],o=0,s=n;oi&&(i=c.prefix.length,r=s);}return r}function Le(e,t){var n=e.prefix,r=e.suffix;return t.length>=n.length+r.length&&oe(t,n)&&se(t,r)}function Re(e){Xe.assert(W(e));var t=e.indexOf("*");return-1===t?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function Me(t){return i(e.supportedTypescriptExtensionsForExtractExtension,function(e){return ue(t,e)})||i(e.supportedJavascriptExtensions,function(e){return ue(t,e)})}e.collator="object"==typeof Intl&&"function"==typeof Intl.Collator?new Intl.Collator(void 0,{usage:"sort",sensitivity:"accent"}):void 0,e.localeCompareIsCorrect=e.collator&&e.collator.compare("a","B")<0,e.createMap=n,e.createUnderscoreEscapedMap=function(){return new Be},e.createSymbolTable=function(e){var t=n();if(e)for(var r=0,i=e;rt?1:0};i<=a;){var o=i+(a-i>>1),s=e[o];if(0===n(s,t))return o;n(s,t)>0?a=o-1:i=o+1;}return~i},e.reduceLeft=h,e.reduceRight=function(e,t,n,r,i){if(e){var a=e.length;if(a>0){var o=void 0===r||r>a-1?a-1:r,s=void 0===i||o-i<0?0:o-i,c=void 0;for(arguments.length<=2?(c=e[o],o--):c=n;o>=s;)c=t(c,e[o],o),o--;return c}}return n};var Ke=Object.prototype.hasOwnProperty;e.hasProperty=v,e.getProperty=function(e,t){return Ke.call(e,t)?e[t]:void 0},e.getOwnKeys=function(e){var t=[];for(var n in e)Ke.call(e,n)&&t.push(n);return t},e.arrayFrom=function(e,t){for(var n=[],r=e.next(),i=r.value,a=r.done;!a;o=e.next(),i=o.value,a=o.done,o)n.push(t?t(i):i);return n;var o;},e.forEachEntry=function(e,t){for(var n=e.entries(),r=n.next(),i=r.value,a=r.done;!a;c=n.next(),i=c.value,a=c.done,c){var o=i[0],s=t(i[1],o);if(s)return s}return;var c;},e.forEachKey=function(e,t){for(var n=e.keys(),r=n.next(),i=r.value,a=r.done;!a;s=n.next(),i=s.value,a=s.done,s){var o=t(i);if(o)return o}return;var s;},e.copyEntries=b,e.assign=function(e){for(var t=[],n=1;n4&&(a=E(a,arguments,4)),{file:e,start:t,length:n,messageText:a,category:r.category,code:r.code}},e.formatMessage=function(e,t){var n=N(t);return arguments.length>2&&(n=E(n,arguments,2)),n},e.createCompilerDiagnostic=function(e){var t=N(e);return arguments.length>1&&(t=E(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code}},e.createCompilerDiagnosticFromMessageChain=function(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}},e.chainDiagnosticMessages=function(e,t){var n=N(t);return arguments.length>2&&(n=E(n,arguments,2)),{messageText:n,category:t.category,code:t.code,next:e}},e.concatenateDiagnosticMessageChains=function(e,t){for(var n=e;n.next;)n=n.next;return n.next=t,e},e.compareValues=A,e.compareStrings=w,e.compareStringsCaseInsensitive=O,e.compareDiagnostics=F,e.sortAndDeduplicateDiagnostics=function(e){return L(e.sort(F))},e.deduplicateSortedDiagnostics=L,e.normalizeSlashes=R,e.getRootLength=M,e.directorySeparator="/";var je=47;e.normalizePath=K,e.pathEndsWithDirectorySeparator=j,e.getDirectoryPath=J,e.isUrl=z,e.pathIsRelative=U,e.isExternalModuleNameRelative=q,e.moduleHasNonRelativeName=function(e){return!q(e)},e.getEmitScriptTarget=V,e.getEmitModuleKind=$,e.getEmitModuleResolutionKind=function(t){var n=t.moduleResolution;return void 0===n&&(n=$(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),n},e.hasZeroOrOneAsteriskCharacter=W,e.isRootedDiskPath=G,e.convertToRelativePath=function(e,t,n){return G(e)?te(t,e,t,n,!1):e},e.getNormalizedPathComponents=X,e.getNormalizedAbsolutePath=Y,e.getNormalizedPathFromPathComponents=Q,e.getRelativePathToDirectoryOrUrl=te,e.getBaseFileName=ne,e.combinePaths=re,e.removeTrailingDirectorySeparator=ie,e.ensureTrailingDirectorySeparator=function(t){return t.charAt(t.length-1)!==e.directorySeparator?t+e.directorySeparator:t},e.comparePaths=function(e,t,n,r){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;e=ie(e),t=ie(t);for(var i=X(e,n),a=X(t,n),o=Math.min(i.length,a.length),s=0;s=0;n--)if(ue(e,t[n]))return xe(n,t);return 0},e.adjustExtensionPriority=xe,e.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var He=[".d.ts",".ts",".js",".tsx",".jsx"];e.removeFileExtension=Se,e.tryRemoveExtension=ke,e.removeExtension=Te,e.changeExtension=function(e,t){return Se(e)+t},e.objectAllocator={getNodeConstructor:function(){return Ne},getTokenConstructor:function(){return Ne},getIdentifierConstructor:function(){return Ne},getSourceFileConstructor:function(){return Ne},getSymbolConstructor:function(){return Ce},getTypeConstructor:function(){return De},getSignatureConstructor:function(){return Ee},getSourceMapSourceConstructor:function(){return Ae}};!function(e){e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive";}(e.AssertionLevel||(e.AssertionLevel={}));var Xe;!function(e){function t(e,r,i,a){e||(i&&(r+="\r\nVerbose Debug Information: "+("string"==typeof i?i:i())),n(r?"False expression: "+r:"False expression.",a||t));}function n(e,t){var r=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||n),r}e.currentAssertionLevel=0,e.isDebugging=!1,e.shouldAssert=function(t){return e.currentAssertionLevel>=t},e.assert=t,e.assertEqual=function(e,t,r,i){e!==t&&n("Expected "+e+" === "+t+". "+(r?i?r+" "+i:r:""));},e.assertLessThan=function(e,t,r){e>=t&&n("Expected "+e+" < "+t+". "+(r||""));},e.assertLessThanOrEqual=function(e,t){e>t&&n("Expected "+e+" <= "+t);},e.assertGreaterThanOrEqual=function(e,t){e= "+t);},e.fail=n,e.getFunctionName=function(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var t=Function.prototype.toString.call(e),n=/^function\s+([\w\$]+)\s*\(/.exec(t);return n?n[1]:""};}(Xe=e.Debug||(e.Debug={})),e.orderedRemoveItem=function(e,t){for(var n=0;n=0)},e.extensionIsTypeScript=function(e){return".ts"===e||".tsx"===e||".d.ts"===e},e.extensionFromPath=function(e){var t=Me(e);if(void 0!==t)return t;Xe.fail("File "+e+" has unknown extension.");},e.isAnySupportedFileExtension=function(e){return void 0!==Me(e)},e.tryGetExtensionFromPath=Me,e.isCheckJsEnabledForFile=function(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs},e.assertTypeIsNever=function(e){};}(r||(r={}));!function(e){function t(){if("undefined"!=typeof process){var e=process.version;if(e){var t=e.indexOf(".");if(-1!==t)return parseInt(e.substring(1,t))}}}e.setStackTraceLimit=function(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100);};var n;!function(e){e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted";}(n=e.FileWatcherEventKind||(e.FileWatcherEventKind={})),e.getNodeMajorVersion=t,e.sys=function(){function r(t,n){var i=e.getDirectoryPath(t),a=t!==i&&!n.directoryExists(i);a&&r(i,n),!a&&n.directoryExists(t)||n.createDirectory(t);}var i;if("undefined"!=typeof ChakraHost?i=function(){var t=ChakraHost.realpath&&function(e){return ChakraHost.realpath(e)};return{newLine:ChakraHost.newLine||"\r\n",args:ChakraHost.args,useCaseSensitiveFileNames:!!ChakraHost.useCaseSensitiveFileNames,write:ChakraHost.echo,readFile:function(e,t){return ChakraHost.readFile(e)},writeFile:function(e,t,n){n&&(t="\ufeff"+t),ChakraHost.writeFile(e,t);},resolvePath:ChakraHost.resolvePath,fileExists:ChakraHost.fileExists,directoryExists:ChakraHost.directoryExists,createDirectory:ChakraHost.createDirectory,getExecutingFilePath:function(){return ChakraHost.executingFile},getCurrentDirectory:function(){return ChakraHost.currentDirectory},getDirectories:ChakraHost.getDirectories,getEnvironmentVariable:ChakraHost.getEnvironmentVariable||function(){return""},readDirectory:function(t,n,r,i,a){var o=e.getFileMatcherPatterns(t,r,i,!!ChakraHost.useCaseSensitiveFileNames,ChakraHost.currentDirectory);return ChakraHost.readDirectory(t,n,o.basePaths,o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern)},exit:ChakraHost.quit,realpath:t}}():"undefined"!=typeof process&&nextTick&&!browser$1&&void 0!==commonjsRequire$$1&&(i=function(){function r(e){return e.replace(/\w/g,function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t})}function i(t){try{for(var n=[],r=[],i=0,a=u.readdirSync(t||".").sort();i=4,g=_.platform(),y="win32"!==g&&"win64"!==g&&!o(r(__filename));!function(e){e[e.File=0]="File",e[e.Directory=1]="Directory";}(c||(c={}));var h={close:e.noop},v={args:process.argv.slice(2),newLine:_.EOL,useCaseSensitiveFileNames:y,write:function(e){process.stdout.write(e);},readFile:function(e,t){if(o(e)){var n=u.readFileSync(e),r=n.length;if(r>=2&&254===n[0]&&255===n[1]){r&=-2;for(var i=0;i=2&&255===n[0]&&254===n[1]?n.toString("utf16le",2):r>=3&&239===n[0]&&187===n[1]&&191===n[2]?n.toString("utf8",3):n.toString("utf8")}},writeFile:function(e,t,n){n&&(t="\ufeff"+t);var r;try{r=u.openSync(e,"w"),u.writeSync(r,t,void 0,"utf8");}finally{void 0!==r&&u.closeSync(r);}},watchFile:function(e,t,r){function i(r,i){var a=0==+r.mtime,o=0==+i.mtime,s=!a&&o,c=a&&!o,u=s?n.Created:c?n.Deleted:n.Changed;u===n.Changed&&+r.mtime<=+i.mtime||t(e,u);}if(p){var a=f.addFile(e,t);return{close:function(){return f.removeFile(a)}}}return u.watchFile(e,{persistent:!0,interval:r||250},i),{close:function(){return u.unwatchFile(e,i)}}},watchDirectory:function(t,n,r){var i;return s(t)?(i=!m||"win32"!==process.platform&&"darwin"!==process.platform?{persistent:!0}:{persistent:!0,recursive:!!r},u.watch(t,i,function(r,i){"rename"===r&&n(i?e.normalizePath(e.combinePaths(t,i)):i);})):h},resolvePath:function(e){return l.resolve(e)},fileExists:o,directoryExists:s,createDirectory:function(e){v.directoryExists(e)||u.mkdirSync(e);},getExecutingFilePath:function(){return __filename},getCurrentDirectory:function(){return process.cwd()},getDirectories:function(t){return e.filter(u.readdirSync(t),function(n){return a(e.combinePaths(t,n),1)})},getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:function(t,n,r,a,o){return e.matchFiles(t,n,r,a,y,process.cwd(),o,i)},getModifiedTime:function(e){try{return u.statSync(e).mtime}catch(e){return}},createHash:function(e){var t=d.createHash("md5");return t.update(e),t.digest("hex")},getMemoryUsage:function(){return commonjsGlobal$$1.gc&&commonjsGlobal$$1.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=u.statSync(e);if(t.isFile())return t.size}catch(e){}return 0},exit:function(e){process.exit(e);},realpath:function(e){return u.realpathSync(e)},debugMode:e.some(process.execArgv,function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)}),tryEnableSourceMapsForHost:function(){try{sourceMapSupport.install();}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout};return v}()),i){var a=i.writeFile;i.writeFile=function(t,n,o){var s=e.getDirectoryPath(e.normalizeSlashes(t));s&&!i.directoryExists(s)&&r(s,i),a.call(i,t,n,o);};}return i}(),e.sys&&e.sys.getEnvironmentVariable&&(e.Debug.currentAssertionLevel=/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0);}(r||(r={}));!function(e){function t(e,t,n,r){return{code:e,category:t,key:n,message:r}}e.Diagnostics={Unterminated_string_literal:t(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:t(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:t(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:t(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),Trailing_comma_not_allowed:t(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:t(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),Unexpected_token:t(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_must_be_last_in_a_parameter_list:t(1014,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:t(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:t(1016,e.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:t(1017,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:t(1018,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:t(1019,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:t(1020,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:t(1021,e.DiagnosticCategory.Error,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:t(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),An_index_signature_parameter_type_must_be_string_or_number:t(1023,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_or_number_1023","An index signature parameter type must be 'string' or 'number'."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:t(1024,e.DiagnosticCategory.Error,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),Accessibility_modifier_already_seen:t(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:t(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:t(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_a_class_element:t(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_class_element_1031","'{0}' modifier cannot appear on a class element."),super_must_be_followed_by_an_argument_list_or_member_access:t(1034,e.DiagnosticCategory.Error,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:t(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:t(1036,e.DiagnosticCategory.Error,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:t(1038,e.DiagnosticCategory.Error,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:t(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:t(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_with_a_class_declaration:t(1041,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_class_declaration_1041","'{0}' modifier cannot be used with a class declaration."),_0_modifier_cannot_be_used_here:t(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_data_property:t(1043,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_data_property_1043","'{0}' modifier cannot appear on a data property."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:t(1044,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),A_0_modifier_cannot_be_used_with_an_interface_declaration:t(1045,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045","A '{0}' modifier cannot be used with an interface declaration."),A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file:t(1046,e.DiagnosticCategory.Error,"A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file_1046","A 'declare' modifier is required for a top level declaration in a .d.ts file."),A_rest_parameter_cannot_be_optional:t(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:t(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:t(1049,e.DiagnosticCategory.Error,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:t(1051,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:t(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:t(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:t(1054,e.DiagnosticCategory.Error,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:t(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:t(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),An_async_function_or_method_must_have_a_valid_awaitable_return_type:t(1057,e.DiagnosticCategory.Error,"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057","An async function or method must have a valid awaitable return type."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1058,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:t(1059,e.DiagnosticCategory.Error,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:t(1060,e.DiagnosticCategory.Error,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:t(1061,e.DiagnosticCategory.Error,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:t(1062,e.DiagnosticCategory.Error,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:t(1063,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:t(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1064","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:t(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:t(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),An_accessor_cannot_be_declared_in_an_ambient_context:t(1086,e.DiagnosticCategory.Error,"An_accessor_cannot_be_declared_in_an_ambient_context_1086","An accessor cannot be declared in an ambient context."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:t(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:t(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:t(1103,e.DiagnosticCategory.Error,"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103","A 'for-await-of' statement is only allowed within an async function or async generator."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:t(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),Jump_target_cannot_cross_function_boundary:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:t(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:t(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:t(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:t(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),A_tuple_type_element_list_cannot_be_empty:t(1122,e.DiagnosticCategory.Error,"A_tuple_type_element_list_cannot_be_empty_1122","A tuple type element list cannot be empty."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:t(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:t(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead:t(1150,e.DiagnosticCategory.Error,"new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead_1150","'new T[]' cannot be used to create an array. Use 'new Array()' instead."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:t(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:t(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol_1165","A computed property name in an ambient context must directly refer to a built-in symbol."),A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol_1166","A computed property name in a class property declaration must directly refer to a built-in symbol."),A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol_1168","A computed property name in a method overload must directly refer to a built-in symbol."),A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol_1169","A computed property name in an interface must directly refer to a built-in symbol."),A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol_1170","A computed property name in a type literal must directly refer to a built-in symbol."),A_comma_expression_is_not_allowed_in_a_computed_property_name:t(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:t(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:t(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:t(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:t(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),Catch_clause_variable_cannot_have_a_type_annotation:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_a_type_annotation_1196","Catch clause variable cannot have a type annotation."),Catch_clause_variable_cannot_have_an_initializer:t(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:t(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:t(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_import_Asteri_1202","Import assignment cannot be used when targeting ECMAScript 2015 modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_export_default_or_another_module_format_instead:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_export_defaul_1203","Export assignment cannot be used when targeting ECMAScript 2015 modules. Consider using 'export default' or another module format instead."),Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided:t(1205,e.DiagnosticCategory.Error,"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205","Cannot re-export a type when the '--isolatedModules' flag is provided."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided:t(1208,e.DiagnosticCategory.Error,"Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided_1208","Cannot compile namespaces when the '--isolatedModules' flag is provided."),Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided:t(1209,e.DiagnosticCategory.Error,"Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided_1209","Ambient const enums are not allowed when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:t(1210,e.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:t(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:t(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:t(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:t(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:t(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:t(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:t(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:t(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:t(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_can_only_be_used_in_a_module:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_in_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:t(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:t(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:t(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:t(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:t(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:t(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:t(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:t(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:t(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:t(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:t(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:t(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:t(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:t(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_1254","A 'const' initializer in an ambient context must be a string or numeric literal."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expression_is_only_allowed_within_an_async_function:t(1308,e.DiagnosticCategory.Error,"await_expression_is_only_allowed_within_an_async_function_1308","'await' expression is only allowed within an async function."),can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:t(1312,e.DiagnosticCategory.Error,"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312","'=' can only be used in an object literal property inside a destructuring assignment."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:t(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:t(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:t(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:t(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:t(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:t(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules:t(1323,e.DiagnosticCategory.Error,"Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules_1323","Dynamic import cannot be used when targeting ECMAScript 2015 modules."),Dynamic_import_must_have_one_specifier_as_an_argument:t(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments"),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:t(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_2307","Cannot find module '{0}'."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:t(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:t(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_may_only_extend_a_class_or_another_interface:t(2312,e.DiagnosticCategory.Error,"An_interface_may_only_extend_a_class_or_another_interface_2312","An interface may only extend a class or another interface."),Type_parameter_0_has_a_circular_constraint:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:t(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:t(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:t(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:t(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:t(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_is_missing_in_type_0:t(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:t(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:t(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:t(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:t(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:t(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:t(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:t(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343","This syntax requires an imported helper named '{1}', but module '{0}' has no exported member '{1}'."),Type_0_does_not_satisfy_the_constraint_1:t(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:t(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:t(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:t(2349,e.DiagnosticCategory.Error,"Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatur_2349","Cannot invoke an expression whose type lacks a call signature. Type '{0}' has no compatible call signatures."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:t(2351,e.DiagnosticCategory.Error,"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351","Cannot use 'new' with an expression whose type lacks a call or construct signature."),Type_0_cannot_be_converted_to_type_1:t(2352,e.DiagnosticCategory.Error,"Type_0_cannot_be_converted_to_type_1_2352","Type '{0}' cannot be converted to type '{1}'."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:t(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:t(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:t(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:t(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:t(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_be_referenced_in_its_initializer:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_be_referenced_in_its_initializer_2372","Parameter '{0}' cannot be referenced in its initializer."),Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:t(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:t(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Getter_and_setter_accessors_do_not_agree_in_visibility:t(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:t(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type:t(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:t(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:t(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:t(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),Overload_signature_is_not_compatible_with_function_implementation:t(2394,e.DiagnosticCategory.Error,"Overload_signature_is_not_compatible_with_function_implementation_2394","Overload signature is not compatible with function implementation."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:t(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:t(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:t(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:t(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:t(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:t(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:t(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter."),Setters_cannot_return_a_value:t(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:t(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:t(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Property_0_of_type_1_is_not_assignable_to_string_index_type_2:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:t(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:t(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_may_only_implement_another_class_or_interface:t(2422,e.DiagnosticCategory.Error,"A_class_may_only_implement_another_class_or_interface_2422","A class may only implement another class or interface."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property:t(2424,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_proper_2424","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:t(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:t(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:t(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:t(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:t(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:t(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:t(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:t(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:t(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:t(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:t(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:t(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:t(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:t(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:t(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:t(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:t(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:t(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Type_0_has_no_property_1_and_no_string_index_signature:t(2459,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_and_no_string_index_signature_2459","Type '{0}' has no property '{1}' and no string index signature."),Type_0_has_no_property_1:t(2460,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_2460","Type '{0}' has no property '{1}'."),Type_0_is_not_an_array_type:t(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:t(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:t(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:t(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:t(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:t(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:t(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:t(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:t(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),In_const_enum_declarations_member_initializer_must_be_constant_expression:t(2474,e.DiagnosticCategory.Error,"In_const_enum_declarations_member_initializer_must_be_constant_expression_2474","In 'const' enum declarations member initializer must be constant expression."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment:t(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:t(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:t(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:t(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:t(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:t(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:t(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:t(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:t(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the 'next()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:t(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:t(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2_2493","Tuple type '{0}' with length '{1}' cannot be assigned to tuple with length '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:t(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:t(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:t(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct:t(2497,e.DiagnosticCategory.Error,"Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct_2497","Module '{0}' resolves to a non-module entity and cannot be imported using this construct."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:t(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:t(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:t(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:t(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:t(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:t(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_a_class_or_interface_type:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_a_class_or_interface_type_2509","Base constructor return type '{0}' is not a class or interface type."),Base_constructors_must_all_have_the_same_return_type:t(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_the_abstract_class_0:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_the_abstract_class_0_2511","Cannot create an instance of the abstract class '{0}'."),Overload_signatures_must_all_be_abstract_or_non_abstract:t(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:t(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Classes_containing_abstract_methods_must_be_marked_abstract:t(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:t(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:t(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:t(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:t(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:t(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:t(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:t(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:t(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:t(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:t(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_this_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_this_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible 'this' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:t(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:t(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:t(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:t(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:t(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property_2540","Cannot assign to '{0}' because it is a constant or a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:t(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:t(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:t(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:t(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:t(2546,e.DiagnosticCategory.Error,"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546","Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."),The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value__2547","The type returned by the 'next()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Generic_type_instantiation_is_excessively_deep_and_possibly_infinite:t(2550,e.DiagnosticCategory.Error,"Generic_type_instantiation_is_excessively_deep_and_possibly_infinite_2550","Generic type instantiation is excessively deep and possibly infinite."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:t(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:t(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),Expected_0_arguments_but_got_a_minimum_of_1:t(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_a_minimum_of_1_2556","Expected {0} arguments, but got a minimum of {1}."),Expected_at_least_0_arguments_but_got_a_minimum_of_1:t(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_a_minimum_of_1_2557","Expected at least {0} arguments, but got a minimum of {1}."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:t(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:t(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),JSX_element_attributes_type_0_may_not_be_a_union_type:t(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:t(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:t(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:t(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:t(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:t(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:t(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:t(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:t(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:t(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:t(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:t(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),JSX_expressions_must_have_one_parent_element:t(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:t(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:t(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:t(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:t(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:t(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:t(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:t(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:t(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:t(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:t(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:t(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:t(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:t(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:t(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:t(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:t(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:t(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:t(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:t(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:t(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:t(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:t(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:t(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:t(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:t(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:t(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:t(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:t(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:t(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:t(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects."),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),Spread_types_may_only_be_created_from_object_types:t(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:t(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:t(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:t(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:t(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:t(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a delete operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:t(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a delete operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Required_type_parameters_may_not_follow_optional_type_parameters:t(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:t(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:t(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:t(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),Import_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:t(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:t(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:t(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:t(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:t(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:t(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:t(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_4034","Parameter '{0}' of public static property setter from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1_4035","Parameter '{0}' of public static property setter from exported class has or is using private name '{1}'."),Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_4036","Parameter '{0}' of public property setter from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1_4037","Parameter '{0}' of public property setter from exported class has or is using private name '{1}'."),Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_externa_4038","Return type of public static property getter from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_4039","Return type of public static property getter from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0_4040","Return type of public static property getter from exported class has or is using private name '{0}'."),Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_modul_4041","Return type of public property getter from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_4042","Return type of public property getter from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0_4043","Return type of public property getter from exported class has or is using private name '{0}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:t(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:t(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:t(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:t(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:t(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:t(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:t(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:t(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:t(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:t(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:t(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Message,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:t(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:t(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:t(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0:t(5011,e.DiagnosticCategory.Error,"File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0_5011","File specification cannot contain multiple recursive directory wildcards ('**'): '{0}'."),Cannot_read_file_0_Colon_1:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:t(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:t(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:t(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:t(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:t(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:t(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:t(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:t(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:t(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:t(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Option_paths_cannot_be_used_without_specifying_baseUrl_option:t(5060,e.DiagnosticCategory.Error,"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060","Option 'paths' cannot be used without specifying '--baseUrl' option."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' in can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:t(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:t(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:t(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:t(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Concatenate_and_emit_output_to_single_file:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:t(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:t(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext_6016","Specify module code generation: 'none', commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:t(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Compilation_complete_Watching_for_file_changes:t(6042,e.DiagnosticCategory.Message,"Compilation_complete_Watching_for_file_changes_6042","Compilation complete. Watching for file changes."),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:t(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unsupported_locale_0:t(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:t(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:t(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:t(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:t(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_6064","Option '{0}' can only be specified in 'tsconfig.json' file."),Enables_experimental_support_for_ES7_decorators:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:t(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:t(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:t(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation_Colon:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_Colon_6079","Specify library files to be included in the compilation: "),Specify_JSX_code_generation_Colon_preserve_react_native_or_react:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:t(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:t(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:t(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:t(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:t(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:t(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_string_got_1:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_string_got_1_6105","Expected type of '{0}' field in 'package.json' to be 'string', got '{1}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:t(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:t(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:t(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:t(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:t(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:t(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:t(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:t(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:t(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:t(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:t(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:t(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:t(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),The_config_file_0_found_doesn_t_contain_any_source_files:t(6129,e.DiagnosticCategory.Error,"The_config_file_0_found_doesn_t_contain_any_source_files_6129","The config file '{0}' found doesn't contain any source files."),Resolving_real_path_for_0_result_1:t(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:t(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:t(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_never_used:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6133","'{0}' is declared but never used."),Report_errors_on_unused_locals:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:t(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_never_used:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_never_used_6138","Property '{0}' is declared but never used."),Import_emit_helpers_from_tslib:t(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:t(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:t(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:t(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_to_1_but_allowJs_is_not_set:t(6143,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_allowJs_is_not_set_6143","Module '{0}' was resolved to '{1}', but '--allowJs' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:t(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:t(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:t(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_6147","Resolution for module '{0}' was found in cache."),Directory_0_does_not_exist_skipping_all_lookups_in_it:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:t(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:t(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:t(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:t(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:t(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:t(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:t(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:t(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:t(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:t(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:t(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:t(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:t(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:t(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:t(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:t(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:t(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:t(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:t(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_to_file_1_from_old_program:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:t(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:t(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:t(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:t(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:t(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:t(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:t(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:t(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_typ_7025","Generator implicitly has type '{0}' because it does not yield any values. Consider supplying a return type."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:t(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected."),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label."),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:t(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:t(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:t(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @types/{0}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:t(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_a_ts_file:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_a_ts_file_8002","'import ... =' can only be used in a .ts file."),export_can_only_be_used_in_a_ts_file:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_a_ts_file_8003","'export=' can only be used in a .ts file."),type_parameter_declarations_can_only_be_used_in_a_ts_file:t(8004,e.DiagnosticCategory.Error,"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004","'type parameter declarations' can only be used in a .ts file."),implements_clauses_can_only_be_used_in_a_ts_file:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_a_ts_file_8005","'implements clauses' can only be used in a .ts file."),interface_declarations_can_only_be_used_in_a_ts_file:t(8006,e.DiagnosticCategory.Error,"interface_declarations_can_only_be_used_in_a_ts_file_8006","'interface declarations' can only be used in a .ts file."),module_declarations_can_only_be_used_in_a_ts_file:t(8007,e.DiagnosticCategory.Error,"module_declarations_can_only_be_used_in_a_ts_file_8007","'module declarations' can only be used in a .ts file."),type_aliases_can_only_be_used_in_a_ts_file:t(8008,e.DiagnosticCategory.Error,"type_aliases_can_only_be_used_in_a_ts_file_8008","'type aliases' can only be used in a .ts file."),_0_can_only_be_used_in_a_ts_file:t(8009,e.DiagnosticCategory.Error,"_0_can_only_be_used_in_a_ts_file_8009","'{0}' can only be used in a .ts file."),types_can_only_be_used_in_a_ts_file:t(8010,e.DiagnosticCategory.Error,"types_can_only_be_used_in_a_ts_file_8010","'types' can only be used in a .ts file."),type_arguments_can_only_be_used_in_a_ts_file:t(8011,e.DiagnosticCategory.Error,"type_arguments_can_only_be_used_in_a_ts_file_8011","'type arguments' can only be used in a .ts file."),parameter_modifiers_can_only_be_used_in_a_ts_file:t(8012,e.DiagnosticCategory.Error,"parameter_modifiers_can_only_be_used_in_a_ts_file_8012","'parameter modifiers' can only be used in a .ts file."),non_null_assertions_can_only_be_used_in_a_ts_file:t(8013,e.DiagnosticCategory.Error,"non_null_assertions_can_only_be_used_in_a_ts_file_8013","'non-null assertions' can only be used in a .ts file."),enum_declarations_can_only_be_used_in_a_ts_file:t(8015,e.DiagnosticCategory.Error,"enum_declarations_can_only_be_used_in_a_ts_file_8015","'enum declarations' can only be used in a .ts file."),type_assertion_expressions_can_only_be_used_in_a_ts_file:t(8016,e.DiagnosticCategory.Error,"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016","'type assertion expressions' can only be used in a .ts file."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:t(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:t(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:t(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:t(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:t(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:t(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:t(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:t(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:t(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:t(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:t(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:t(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:t(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:t(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:t(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call."),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor."),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'."),Remove_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_declaration_for_Colon_0_90004","Remove declaration for: '{0}'."),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'."),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class."),Add_this_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_this_to_unresolved_variable_90008","Add 'this.' to unresolved variable."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:t(90009,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__90009","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(90010,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_90010","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Import_0_from_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_1_90013","Import {0} from {1}."),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change {0} to {1}."),Add_0_to_existing_import_declaration_from_1:t(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add {0} to existing import declaration from {1}."),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'."),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'."),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file."),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message."),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor."),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'."),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'."),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'."),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'."),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore."),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'."),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:t(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Extract_function:t(95003,e.DiagnosticCategory.Message,"Extract_function_95003","Extract function"),Extract_function_into_0:t(95004,e.DiagnosticCategory.Message,"Extract_function_into_0_95004","Extract function into {0}")};}(r||(r={}));!function(e){function t(e){return e>=71}function n(e,t){if(e=1?n(e,E):n(e,C)}function i(e,t){return t>=1?n(e,N):n(e,D)}function a(e){for(var t=new Array,n=0,r=0;n127&&_(i)&&(t.push(r),r=n);}}return t.push(r),t}function o(t,n,r,i){e.Debug.assert(n>=0&&n=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function _(e){return 10===e||13===e||8232===e||8233===e}function d(e){return e>=48&&e<=57}function p(e){return e>=48&&e<=55}function f(t,n){if(e.Debug.assert(n>=0),0===n||_(t.charCodeAt(n-1))){var r=t.charCodeAt(n);if(n+w=0&&n127&&u(g)){p&&_(g)&&(d=!0),n++;continue}break e}}return p&&(m=i(s,c,l,d,a,m)),m}function v(e,t,n,r,i){return h(!0,e,t,!1,n,r,i)}function b(e,t,n,r,i){return h(!0,e,t,!0,n,r,i)}function x(e,t,n,r,i,a){return a||(a=[]),a.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),a}function S(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&r(e,t)}function k(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&i(e,t)}e.tokenIsIdentifierOrKeyword=t;var T=e.createMapFromTemplate({abstract:117,any:119,as:118,boolean:122,break:72,case:73,catch:74,class:75,continue:77,const:76,constructor:123,debugger:78,declare:124,default:79,delete:80,do:81,else:82,enum:83,export:84,extends:85,false:86,finally:87,for:88,from:140,function:89,get:125,if:90,implements:108,import:91,in:92,instanceof:93,interface:109,is:126,keyof:127,let:110,module:128,namespace:129,never:130,new:94,null:95,number:133,object:134,package:111,private:112,protected:113,public:114,readonly:131,require:132,global:141,return:96,set:135,static:115,string:136,super:97,switch:98,symbol:137,this:99,throw:100,true:101,try:102,type:138,typeof:103,undefined:139,var:104,void:105,while:106,with:107,yield:116,async:120,await:121,of:142,"{":17,"}":18,"(":19,")":20,"[":21,"]":22,".":23,"...":24,";":25,",":26,"<":27,">":29,"<=":30,">=":31,"==":32,"!=":33,"===":34,"!==":35,"=>":36,"+":37,"-":38,"**":40,"*":39,"/":41,"%":42,"++":43,"--":44,"<<":45,">":46,">>>":47,"&":48,"|":49,"^":50,"!":51,"~":52,"&&":53,"||":54,"?":55,":":56,"=":58,"+=":59,"-=":60,"*=":61,"**=":62,"/=":63,"%=":64,"<<=":65,">>=":66,">>>=":67,"&=":68,"|=":69,"^=":70,"@":57}),C=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],D=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],E=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],N=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500];e.isUnicodeIdentifierStart=r;var A=function(e){var t=[];return e.forEach(function(e,n){t[e]=n;}),t}(T);e.tokenToString=function(e){return A[e]},e.stringToToken=function(e){return T.get(e)},e.computeLineStarts=a,e.getPositionOfLineAndCharacter=function(e,t,n){return o(s(e),t,n,e.text)},e.computePositionOfLineAndCharacter=o,e.getLineStarts=s,e.computeLineAndCharacterOfPosition=c,e.getLineAndCharacterOfPosition=function(e,t){return c(s(e),t)},e.isWhiteSpaceLike=u,e.isWhiteSpaceSingleLine=l,e.isLineBreak=_,e.isOctalDigit=p,e.couldStartTrivia=function(e,t){var n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return n>127}},e.skipTrivia=function(t,n,r,i){if(void 0===i&&(i=!1),e.positionIsSynthesized(n))return n;for(;;){var a=t.charCodeAt(n);switch(a){case 13:10===t.charCodeAt(n+1)&&n++;case 10:if(n++,r)return n;continue;case 9:case 11:case 12:case 32:n++;continue;case 47:if(i)break;if(47===t.charCodeAt(n+1)){for(n+=2;n127&&u(a)){n++;continue}}return n}};var w="<<<<<<<".length,O=/^#!.*/;e.forEachLeadingCommentRange=function(e,t,n,r){return h(!1,e,t,!1,n,r)},e.forEachTrailingCommentRange=function(e,t,n,r){return h(!1,e,t,!0,n,r)},e.reduceEachLeadingCommentRange=v,e.reduceEachTrailingCommentRange=b,e.getLeadingCommentRanges=function(e,t){return v(e,t,x,void 0,void 0)},e.getTrailingCommentRanges=function(e,t){return b(e,t,x,void 0,void 0)},e.getShebang=function(e){var t=O.exec(e);if(t)return t[0]},e.isIdentifierStart=S,e.isIdentifierPart=k,e.isIdentifierText=function(e,t){if(!S(e.charCodeAt(0),t))return!1;for(var n=1;n=48&&i<=57)r=16*r+i-48;else if(i>=65&&i<=70)r=16*r+i-65+10;else{if(!(i>=97&&i<=102))break;r=16*r+i-97+10;}z++,n++;}return n=U){r+=a.substring(i,z),X=!0,h(e.Diagnostics.Unterminated_string_literal);break}var o=a.charCodeAt(z);if(o===n){r+=a.substring(i,z),z++;break}if(92===o&&t)r+=a.substring(i,z),r+=A(),i=z;else{if(_(o)){r+=a.substring(i,z),X=!0,h(e.Diagnostics.Unterminated_string_literal);break}z++;}}return r}function N(){for(var t,n=96===a.charCodeAt(z),r=++z,i="";;){if(z>=U){i+=a.substring(r,z),X=!0,h(e.Diagnostics.Unterminated_template_literal),t=n?13:16;break}var o=a.charCodeAt(z);if(96===o){i+=a.substring(r,z),z++,t=n?13:16;break}if(36===o&&z+1=U)return h(e.Diagnostics.Unexpected_end_of_text),"";var t=a.charCodeAt(z);switch(z++,t){case 48:return"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:return z=0?String.fromCharCode(n):(h(e.Diagnostics.Hexadecimal_digit_expected),"")}function O(){var t=C(1),n=!1;return t<0?(h(e.Diagnostics.Hexadecimal_digit_expected),n=!0):t>1114111&&(h(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),z>=U?(h(e.Diagnostics.Unexpected_end_of_text),n=!0):125===a.charCodeAt(z)?z++:(h(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":P(t)}function P(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var n=Math.floor((t-65536)/1024)+55296,r=(t-65536)%1024+56320;return String.fromCharCode(n,r)}function F(){if(z+5=0&&k(r,n)))break;e+=a.substring(t,z),e+=String.fromCharCode(r),t=z+=6;}}return e+=a.substring(t,z)}function L(){var e=W.length;if(e>=2&&e<=11){var t=W.charCodeAt(0);if(t>=97&&t<=122&&void 0!==($=T.get(W)))return $}return $=71}function R(t){e.Debug.assert(2===t||8===t,"Expected either base 2 or base 8");for(var n=0,r=0;;){var i=a.charCodeAt(z),o=i-48;if(!d(i)||o>=t)break;n=n*t+o,z++,r++;}return 0===r?-1:n}function M(){for(q=z,H=!1,G=!1,X=!1,Y=0;;){if(V=z,z>=U)return $=1;var t=a.charCodeAt(z);if(35===t&&0===z&&g(a,z)){if(z=y(a,z),r)continue;return $=6}switch(t){case 10:case 13:if(G=!0,r){z++;continue}return 13===t&&z+1=0&&S(u,n)?(z+=6,W=String.fromCharCode(u)+I(),$=L()):(h(e.Diagnostics.Invalid_character),z++,$=0);default:if(S(t,n)){for(z++;z=U)return $=1;var e=a.charCodeAt(z);if(60===e)return 47===a.charCodeAt(z+1)?(z+=2,$=28):(z++,$=27);if(123===e)return z++,$=17;for(var t=0;z=0),z=t,q=t,V=t,$=0,G=!1,W=void 0,H=!1,X=!1;}void 0===i&&(i=0);var z,U,q,V,$,W,G,H,X,Y;return j(a,s,c),{getStartPos:function(){return q},getTextPos:function(){return z},getToken:function(){return $},getTokenPos:function(){return V},getTokenText:function(){return a.substring(V,z)},getTokenValue:function(){return W},hasExtendedUnicodeEscape:function(){return H},hasPrecedingLineBreak:function(){return G},isIdentifier:function(){return 71===$||$>107},isReservedWord:function(){return $>=72&&$<=107},isUnterminated:function(){return X},getNumericLiteralFlags:function(){return Y},reScanGreaterToken:function(){if(29===$){if(62===a.charCodeAt(z))return 62===a.charCodeAt(z+1)?61===a.charCodeAt(z+2)?(z+=3,$=67):(z+=2,$=47):61===a.charCodeAt(z+1)?(z+=2,$=66):(z++,$=46);if(61===a.charCodeAt(z))return z++,$=31}return $},reScanSlashToken:function(){if(41===$||63===$){for(var t=V+1,r=!1,i=!1;;){if(t>=U){X=!0,h(e.Diagnostics.Unterminated_regular_expression_literal);break}var o=a.charCodeAt(t);if(_(o)){X=!0,h(e.Diagnostics.Unterminated_regular_expression_literal);break}if(r)r=!1;else{if(47===o&&!i){t++;break}91===o?i=!0:92===o?r=!0:93===o&&(i=!1);}t++;}for(;t=U)return $=1;q=z,V=z;var e=a.charCodeAt(z);switch(e){case 9:case 11:case 12:case 32:for(;z=0);var r=e.getLineStarts(n),i=t,a=n.text;if(i+1===r.length)return a.length-1;var o=r[i],s=r[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function s(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function c(e){return!s(e)}function u(e,t){return 42===e.charCodeAt(t.pos+1)&&33===e.charCodeAt(t.pos+2)}function l(t,n,r){return s(t)?t.pos:e.isJSDocNode(t)?e.skipTrivia((n||a(t)).text,t.pos,!1,!0):r&&t.jsDoc&&t.jsDoc.length>0?l(t.jsDoc[0]):286===t.kind&&t._children.length>0?l(t._children[0],n,r):e.skipTrivia((n||a(t)).text,t.pos)}function _(t,n,r){if(void 0===r&&(r=!1),s(n))return"";var i=t.text;return i.substring(r?n.pos:e.skipTrivia(i,n.pos),n.end)}function d(t,n){return s(n)?"":t.substring(e.skipTrivia(t,n.pos),n.end)}function p(e,t){return void 0===t&&(t=!1),_(a(e),e,t)}function f(e){var t=e.emitNode;return t&&t.flags}function m(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function g(e){var t=ce(e);return 226===t.kind&&260===t.parent.kind}function y(e){return e&&233===e.kind&&(9===e.name.kind||v(e))}function h(e){return e&&233===e.kind&&!e.body}function v(e){return!!(512&e.flags)}function b(t,n){switch(t.kind){case 265:case 235:case 260:case 233:case 214:case 215:case 216:case 152:case 151:case 153:case 154:case 228:case 186:case 187:return!0;case 207:return n&&!e.isFunctionLike(n)}return!1}function x(e){return 0===t(e)?"(Missing)":p(e)}function S(e){switch(e.kind){case 71:return e.escapedText;case 9:case 8:return m(e.text);case 144:if(te(e.expression))return m(e.expression.text)}}function k(n){switch(n.kind){case 71:return 0===t(n)?e.unescapeLeadingUnderscores(n.escapedText):p(n);case 143:return k(n.left)+"."+k(n.right);case 179:return k(n.expression)+"."+k(n.name)}}function T(t,n,r,i,a,o){var s=E(t,n);return e.createFileDiagnostic(t,s.start,s.length,r,i,a,o)}function C(t,n){var r=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,n);r.scan();var i=r.getTokenPos();return e.createTextSpanFromBounds(i,r.getTextPos())}function D(t,n){var r=e.skipTrivia(t.text,n.pos);if(n.body&&207===n.body.kind){var i=e.getLineAndCharacterOfPosition(t,n.body.pos).line;if(i=0;case 183:return!1}}return!1}function w(e){if(e)switch(e.kind){case 176:case 264:case 146:case 261:case 149:case 148:case 262:case 226:return!0}return!1}function O(t,n){for(;;){if(!(t=t.parent))return;switch(t.kind){case 144:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 147:146===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 187:if(!n)continue;case 228:case 186:case 233:case 149:case 148:case 151:case 150:case 152:case 153:case 154:case 155:case 156:case 157:case 232:case 265:return t}}}function P(e){switch(e.kind){case 229:return!0;case 149:return 229===e.parent.kind;case 153:case 154:case 151:return void 0!==e.body&&229===e.parent.kind;case 146:return void 0!==e.parent.body&&(152===e.parent.kind||151===e.parent.kind||154===e.parent.kind)&&229===e.parent.parent.kind}return!1}function F(e){return void 0!==e.decorators&&P(e)}function I(e){return F(e)||L(e)}function L(t){switch(t.kind){case 229:return e.forEach(t.members,I);case 151:case 154:return e.forEach(t.parameters,F)}}function R(e){var t=e.parent;return(251===t.kind||250===t.kind||252===t.kind)&&t.tagName===e}function M(e){switch(e.kind){case 97:case 95:case 101:case 86:case 12:case 177:case 178:case 179:case 180:case 181:case 182:case 183:case 202:case 184:case 203:case 185:case 186:case 199:case 187:case 190:case 188:case 189:case 192:case 193:case 194:case 195:case 198:case 196:case 13:case 200:case 249:case 250:case 197:case 191:case 204:return!0;case 143:for(;143===e.parent.kind;)e=e.parent;return 162===e.parent.kind||R(e);case 71:if(162===e.parent.kind||R(e))return!0;case 8:case 9:case 99:var t=e.parent;switch(t.kind){case 226:case 146:case 149:case 148:case 264:case 261:case 176:return t.initializer===e;case 210:case 211:case 212:case 213:case 219:case 220:case 221:case 257:case 223:return t.expression===e;case 214:var n=t;return n.initializer===e&&227!==n.initializer.kind||n.condition===e||n.incrementor===e;case 215:case 216:var r=t;return r.initializer===e&&227!==r.initializer.kind||r.expression===e;case 184:case 202:case 205:case 144:return e===t.expression;case 147:case 256:case 255:case 263:return!0;case 201:return t.expression===e&&Ue(t);default:if(M(t))return!0}}return!1}function B(e){return 237===e.kind&&248===e.moduleReference.kind}function K(e){return j(e)}function j(e){return e&&!!(65536&e.flags)}function J(e){if(!j(e))return 0;var t=e;if(58!==t.operatorToken.kind||179!==t.left.kind)return 0;var n=t.left;if(71===n.expression.kind){var r=n.expression;return"exports"===r.escapedText?1:"module"===r.escapedText&&"exports"===n.name.escapedText?2:5}if(99===n.expression.kind)return 4;if(179===n.expression.kind){var i=n.expression;if(71===i.expression.kind){if("module"===i.expression.escapedText&&"exports"===i.name.escapedText)return 1;if("prototype"===i.name.escapedText)return 3}}return 0}function z(t,n){var r=U(t);return e.find(r,function(e){return e.kind===n})}function U(t){var n=t.jsDocCache;return void 0===n&&(t.jsDocCache=n=e.flatMap(q(t),function(t){return e.isJSDoc(t)?t.tags:t})),n}function q(t){function n(t){var i=t.parent,a=w(i)&&i.initializer===t&&208===i.parent.parent.kind,o=w(t)&&208===i.parent.kind,s=a?i.parent.parent:o?i.parent:void 0;s&&n(s),i&&i.parent&&194===i.kind&&58===i.operatorToken.kind&&210===i.parent.kind&&n(i.parent);var c=233===t.kind&&i&&233===i.kind,u=i&&261===i.kind;(c||u)&&n(i),146===t.kind&&(r=e.addRange(r,V(t))),w(t)&&t.initializer&&(r=e.addRange(r,t.initializer.jsDoc)),r=e.addRange(r,t.jsDoc);}var r;return n(t),r||e.emptyArray}function V(t){if(t.name&&e.isIdentifier(t.name)){var n=t.name.escapedText;return U(t.parent).filter(function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n})}}function $(t){var n=z(t,281);if(!n&&146===t.kind){var r=V(t);r&&(n=e.find(r,function(e){return!!e.typeExpression}));}return n&&n.typeExpression&&n.typeExpression.type}function W(e){return z(e,280)}function G(e){var t=W(e);return t&&t.typeExpression&&t.typeExpression.type}function H(e){return z(e,282)}function X(t){return!(!j(t)||!(t.type&&274===t.type.kind||e.forEach(V(t),function(e){return e.typeExpression&&274===e.typeExpression.type.kind})))||Y(t)}function Y(e){return e&&void 0!==e.dotDotDotToken}function Q(e){for(var t=e.parent;;){switch(t.kind){case 194:var n=t.operatorToken.kind;return je(n)&&t.left===e?58===n?1:2:0;case 192:case 193:var r=t.operator;return 43===r||44===r?2:0;case 215:case 216:return t.initializer===e?1:0;case 185:case 177:case 198:e=t;break;case 262:if(t.name!==e)return 0;e=t.parent;break;case 261:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent;}}function Z(e){return qe(e.expression)}function ee(e,t){if(e)for(var n=0,r=e;n0){var t=2===e.parameters.length&&De(e.parameters[0]);return e.parameters[t?1:0]}}function De(e){return Ee(e.name)}function Ee(e){return e&&71===e.kind&&Ne(e)}function Ne(e){return 99===e.originalKeywordKind}function Ae(e){return e.type?e.type:j(e)?$(e):void 0}function we(e,t,n,r){Oe(e,t,n.pos,r);}function Oe(e,t,n,r){r&&r.length&&n!==r[0].pos&&Te(e,n)!==Te(e,r[0].pos)&&t.writeLine();}function Pe(e,t,n,r,i,a,o,s){if(r&&r.length>0){i&&n.write(" ");for(var c=!1,u=0,l=r;u=58&&e<=70}function Je(t){if(201===t.kind&&85===t.parent.token&&e.isClassLike(t.parent.parent))return t.parent.parent}function ze(t,n){return e.isBinaryExpression(t)&&(n?58===t.operatorToken.kind:je(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function Ue(e){return void 0!==Je(e)}function qe(e){return 71===e.kind||179===e.kind&&qe(e.expression)}function Ve(t){return t&&e.length(t.declarations)>0&&Le(t.declarations[0],512)}function $e(t){for(var n=[],r=t.length,i=0;i>6|192),n.push(63&a|128)):a<65536?(n.push(a>>12|224),n.push(a>>6&63|128),n.push(63&a|128)):a<131072?(n.push(a>>18|240),n.push(a>>12&63|128),n.push(a>>6&63|128),n.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point");}return n}function We(e,t,n){void 0===e&&(e=0);var r=Ge(t);if(0===e)return r.length>0&&0===r[0][0]?r[0][1]:"0";if(n){for(var i="",a=e,o=r.length-1;o>=0&&0!==a;o--){var s=r[o],c=s[0],u=s[1];0!==c&&(a&c)===c&&(a&=~c,i=u+(i?", ":"")+i);}if(0===a)return i}else for(var l=0,_=r;l<_.length;l++){var d=_[l],c=d[0],u=d[1];if(c===e)return u}return e.toString()}function Ge(t){var n=[];for(var r in t){var i=t[r];"number"==typeof i&&n.push([i,r]);}return e.stableSort(n,function(t,n){return e.compareValues(t[0],n[0])})}function He(e,t){return{pos:e,end:t}}function Xe(e,t){return He(t,e.end)}function Ye(e){return e.decorators&&e.decorators.length>0?Xe(e,e.decorators.end):e}function Qe(e,t,n){return Ze(et(e,n),t.end,n)}function Ze(e,t,n){return e===t||ke(n,e)===ke(n,t)}function et(t,n){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(n.text,t.pos)}function tt(e){return void 0!==e.initializer}function nt(e){return 33554432&e.flags?e.checkFlags:0}e.emptyArray=[],e.emptyMap=e.createMap(),e.externalHelpersModuleNameText="tslib",e.getDeclarationOfKind=function(e,t){var n=e.declarations;if(n)for(var r=0,i=n;r=0),e.getLineStarts(n)[t]},e.nodePosToString=function(t){var n=a(t),r=e.getLineAndCharacterOfPosition(n,t.pos);return n.fileName+"("+(r.line+1)+","+(r.character+1)+")"},e.getEndLinePosition=o,e.nodeIsMissing=s,e.nodeIsPresent=c,e.isRecognizedTripleSlashComment=function(t,n,r){if(47===t.charCodeAt(n+1)&&n+2/;var at=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var ot=/^(\/\/\/\s*/;e.isPartOfTypeNode=A,e.isChildOfNodeWithKind=function(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent;}return!1},e.forEachReturnStatement=function(t,n){function r(t){switch(t.kind){case 219:return n(t);case 235:case 207:case 211:case 212:case 213:case 214:case 215:case 216:case 220:case 221:case 257:case 258:case 222:case 224:case 260:return e.forEachChild(t,r)}}return r(t)},e.forEachYieldExpression=function(t,n){function r(t){switch(t.kind){case 197:n(t);var i=t.expression;return void(i&&r(i));case 232:case 230:case 233:case 231:case 229:case 199:return;default:if(e.isFunctionLike(t)){var a=t.name;if(a&&144===a.kind)return void r(a.expression)}else A(t)||e.forEachChild(t,r);}}return r(t)},e.getRestParameterElementType=function(t){return t&&164===t.kind?t.elementType:t&&159===t.kind?e.singleOrUndefined(t.typeArguments):void 0},e.isVariableLike=w,e.introducesArgumentsExoticObject=function(e){switch(e.kind){case 151:case 150:case 152:case 153:case 154:case 228:case 186:return!0}return!1},e.unwrapInnermostStatementOfLabel=function(e,t){for(;;){if(t&&t(e),222!==e.statement.kind)return e.statement;e=e.statement;}},e.isFunctionBlock=function(t){return t&&207===t.kind&&e.isFunctionLike(t.parent)},e.isObjectLiteralMethod=function(e){return e&&151===e.kind&&178===e.parent.kind},e.isObjectLiteralOrClassExpressionMethod=function(e){return 151===e.kind&&(178===e.parent.kind||199===e.parent.kind)},e.isIdentifierTypePredicate=function(e){return e&&1===e.kind},e.isThisTypePredicate=function(e){return e&&0===e.kind},e.getPropertyAssignment=function(t,n,r){return e.filter(t.properties,function(e){if(261===e.kind){var t=S(e.name);return n===t||r&&r===t}})},e.getContainingFunction=function(t){return e.findAncestor(t.parent,e.isFunctionLike)},e.getContainingClass=function(t){return e.findAncestor(t.parent,e.isClassLike)},e.getThisContainer=O,e.getNewTargetContainer=function(e){var t=O(e,!1);if(t)switch(t.kind){case 152:case 228:case 186:return t}},e.getSuperContainer=function(t,n){for(;;){if(!(t=t.parent))return t;switch(t.kind){case 144:t=t.parent;break;case 228:case 186:case 187:if(!n)continue;case 149:case 148:case 151:case 150:case 152:case 153:case 154:return t;case 147:146===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);}}},e.getImmediatelyInvokedFunctionExpression=function(e){if(186===e.kind||187===e.kind){for(var t=e,n=e.parent;185===n.kind;)t=n,n=n.parent;if(181===n.kind&&n.expression===t)return n}},e.isSuperProperty=function(e){var t=e.kind;return(179===t||180===t)&&97===e.expression.kind},e.getEntityNameFromTypeNode=function(e){switch(e.kind){case 159:return e.typeName;case 201:return qe(e.expression)?e.expression:void 0;case 71:case 143:return e}},e.getInvokedExpression=function(t){return 183===t.kind?t.tag:e.isJsxOpeningLikeElement(t)?t.tagName:t.expression},e.nodeCanBeDecorated=P,e.nodeIsDecorated=F,e.nodeOrChildIsDecorated=I,e.childIsDecorated=L,e.isJSXTagName=R,e.isPartOfExpression=M,e.isExternalModuleImportEqualsDeclaration=B,e.getExternalModuleImportEqualsDeclarationExpression=function(t){return e.Debug.assert(B(t)),t.moduleReference.expression},e.isInternalModuleImportEqualsDeclaration=function(e){return 237===e.kind&&248!==e.moduleReference.kind},e.isSourceFileJavaScript=K,e.isInJavaScriptFile=j,e.isInJSDoc=function(e){return e&&!!(1048576&e.flags)},e.isRequireCall=function(e,t){if(181!==e.kind)return!1;var n=e,r=n.expression,i=n.arguments;if(71!==r.kind||"require"!==r.escapedText)return!1;if(1!==i.length)return!1;var a=i[0];return!t||9===a.kind||13===a.kind},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isDeclarationOfFunctionOrClassExpression=function(e){if(e.valueDeclaration&&226===e.valueDeclaration.kind){var t=e.valueDeclaration;return t.initializer&&(186===t.initializer.kind||199===t.initializer.kind)}return!1},e.getRightMostAssignedExpression=function(e){for(;ze(e,!0);)e=e.right;return e},e.isExportsIdentifier=function(t){return e.isIdentifier(t)&&"exports"===t.escapedText},e.isModuleExportsPropertyAccessExpression=function(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.expression)&&"module"===t.expression.escapedText&&"exports"===t.name.escapedText},e.getSpecialPropertyAssignmentKind=J,e.getExternalModuleName=function(e){if(238===e.kind)return e.moduleSpecifier;if(237===e.kind){var t=e.moduleReference;if(248===t.kind)return t.expression}return 244===e.kind?e.moduleSpecifier:233===e.kind&&9===e.name.kind?e.name:void 0},e.getNamespaceDeclarationNode=function(e){if(237===e.kind)return e;var t=e.importClause;return t&&t.namedBindings&&240===t.namedBindings.kind?t.namedBindings:void 0},e.isDefaultImport=function(e){return 238===e.kind&&e.importClause&&!!e.importClause.name},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 146:case 151:case 150:case 262:case 261:case 149:case 148:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=function(e){return 273===e.kind&&e.parameters.length>0&&e.parameters[0].name&&"new"===e.parameters[0].name.escapedText},e.hasJSDocParameterTags=function(e){return!!z(e,279)},e.getAllJSDocs=function(t){return e.isJSDocTypedefTag(t)?[t.parent]:q(t)},e.getJSDocTags=U,e.getJSDocParameterTags=V,e.getParameterSymbolFromJSDoc=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var n=t.name.escapedText;e.Debug.assert(275===t.parent.kind);var r=t.parent.parent;if(e.isFunctionLike(r)){var i=e.find(r.parameters,function(e){return 71===e.name.kind&&e.name.escapedText===n});return i&&i.symbol}}},e.getTypeParameterFromJsDoc=function(t){var n=t.name.escapedText,r=t.parent.parent.parent.typeParameters;return e.find(r,function(e){return e.name.escapedText===n})},e.getJSDocType=$,e.getJSDocAugmentsTag=function(e){return z(e,277)},e.getJSDocClassTag=function(e){return z(e,278)},e.getJSDocReturnTag=W,e.getJSDocReturnType=G,e.getJSDocTemplateTag=H,e.hasRestParameter=function(t){return X(e.lastOrUndefined(t.parameters))},e.hasDeclaredRestParameter=function(t){return Y(e.lastOrUndefined(t.parameters))},e.isRestParameter=X,e.isDeclaredRestParam=Y;!function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound";}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=Q,e.isAssignmentTarget=function(e){return 0!==Q(e)},e.isDeleteTarget=function(e){if(179!==e.kind&&180!==e.kind)return!1;for(e=e.parent;e&&185===e.kind;)e=e.parent;return e&&188===e.kind},e.isNodeDescendantOf=function(e,t){for(;e;){if(e===t)return!0;e=e.parent;}return!1},e.isInAmbientContext=function(e){for(;e;){if(Le(e,2)||265===e.kind&&e.isDeclarationFile)return!0;e=e.parent;}return!1},e.isDeclarationName=function(t){switch(t.kind){case 71:case 9:case 8:return e.isDeclaration(t.parent)&&t.parent.name===t;default:return!1}},e.isAnyDeclarationName=function(t){switch(t.kind){case 71:case 9:case 8:if(e.isDeclaration(t.parent))return t.parent.name===t;var n=t.parent.parent;return e.isBinaryExpression(n)&&0!==J(n)&&e.getNameOfDeclaration(n)===t;default:return!1}},e.isLiteralComputedPropertyDeclarationName=function(t){return(9===t.kind||8===t.kind)&&144===t.parent.kind&&e.isDeclaration(t.parent.parent)},e.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 149:case 148:case 151:case 150:case 153:case 154:case 264:case 261:case 179:return t.name===e;case 143:if(t.right===e){for(;143===t.kind;)t=t.parent;return 162===t.kind}return!1;case 176:case 242:return t.propertyName===e;case 246:case 253:return!0}return!1},e.isAliasSymbolDeclaration=function(e){return 237===e.kind||236===e.kind||239===e.kind&&!!e.name||240===e.kind||242===e.kind||246===e.kind||243===e.kind&&Z(e)},e.exportAssignmentIsAlias=Z,e.getClassExtendsHeritageClauseElement=function(e){var t=ee(e.heritageClauses,85);return t&&t.types.length>0?t.types[0]:void 0},e.getClassImplementsHeritageClauseElements=function(e){var t=ee(e.heritageClauses,108);return t?t.types:void 0},e.getInterfaceBaseTypeNodes=function(e){var t=ee(e.heritageClauses,85);return t?t.types:void 0},e.getHeritageClause=ee,e.tryResolveScriptReference=function(t,n,r){if(!t.getCompilerOptions().noResolve){var i=e.isRootedDiskPath(r.fileName)?r.fileName:e.combinePaths(e.getDirectoryPath(n.fileName),r.fileName);return t.getSourceFile(i)}},e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent;}},e.getFileReferenceFromReferencePath=function(t,n){var r=/^\/\/\/\s*1&&(s=s+r.length-1,c=i.length-t.length+e.lastOrUndefined(r));}},writeLine:function(){o||(s++,c=(i+=t).length,o=!0);},increaseIndent:function(){a++;},decreaseIndent:function(){a--;},getIndent:function(){return a},getTextPos:function(){return i.length},getLine:function(){return s+1},getColumn:function(){return o?a*he()+1:i.length-c+1},getText:function(){return i},isAtStartOfLine:function(){return o},reset:r}},e.getResolvedExternalModuleName=ve,e.getExternalModuleNameFromDeclaration=function(e,t,n){var r=t.getExternalModuleFileFromDeclaration(n);if(r&&!r.isDeclarationFile)return ve(e,r)},e.getExternalModuleNameFromPath=be,e.getOwnEmitOutputFilePath=function(t,n,r){var i=n.getCompilerOptions();return(i.outDir?e.removeFileExtension(Se(t,n,i.outDir)):e.removeFileExtension(t.fileName))+r},e.getDeclarationEmitOutputFilePath=function(t,n){var r=n.getCompilerOptions(),i=r.declarationDir||r.outDir,a=i?Se(t,n,i):t.fileName;return e.removeFileExtension(a)+".d.ts"},e.getSourceFilesToEmit=function(t,n){var r=t.getCompilerOptions(),i=function(e){return t.isSourceFileFromExternalLibrary(e)};if(r.outFile||r.out){var a=e.getEmitModuleKind(r),o=a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(t){return(o||!e.isExternalModule(t))&&xe(t,r,i)})}var s=void 0===n?t.getSourceFiles():[n];return e.filter(s,function(e){return xe(e,r,i)})},e.sourceFileMayBeEmitted=xe,e.getSourceFilePathInNewDir=Se,e.writeFile=function(t,n,r,i,a,o){t.writeFile(r,i,a,function(t){n.add(e.createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,r,t));},o);},e.getLineOfLocalPosition=ke,e.getLineOfLocalPositionFromLineMap=Te,e.getFirstConstructorWithBody=function(t){return e.forEach(t.members,function(e){if(152===e.kind&&c(e.body))return e})},e.getSetAccessorTypeAnnotationNode=function(e){var t=Ce(e);return t&&t.type},e.getThisParameter=function(e){if(e.parameters.length){var t=e.parameters[0];if(De(t))return t}},e.parameterIsThisKeyword=De,e.isThisIdentifier=Ee,e.identifierIsThisKeyword=Ne,e.getAllAccessorDeclarations=function(t,n){var r,i,a,o;return ne(n)?(r=n,153===n.kind?a=n:154===n.kind?o=n:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(e){153!==e.kind&&154!==e.kind||Le(e,32)!==Le(n,32)||ae(e.name)===ae(n.name)&&(r?i||(i=e):r=e,153!==e.kind||a||(a=e),154!==e.kind||o||(o=e));}),{firstAccessor:r,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=Ae,e.getEffectiveReturnTypeNode=function(e){return e.type?e.type:j(e)?G(e):void 0},e.getEffectiveTypeParameterDeclarations=function(e){if(e.typeParameters)return e.typeParameters;if(j(e)){var t=H(e);return t&&t.typeParameters}},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=Ce(e);return t&&Ae(t)},e.emitNewLineBeforeLeadingComments=we,e.emitNewLineBeforeLeadingCommentsOfPosition=Oe,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,n,r){n!==r&&Te(e,n)!==Te(e,r)&&t.writeLine();},e.emitComments=Pe,e.emitDetachedComments=function(t,n,r,i,a,o,s){var c,l;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),function(e){return u(t,e)})):c=e.getLeadingCommentRanges(t,a.pos),c){for(var _=[],d=void 0,p=0,f=c;p=g+2))break;_.push(m),d=m;}if(_.length){var g=Te(n,e.lastOrUndefined(_).end);Te(n,e.skipTrivia(t,a.pos))>=g+2&&(we(n,r,a,c),Pe(t,n,r,_,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.lastOrUndefined(_).end});}}return l},e.writeCommentRange=function(t,n,r,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(n,i),c=n.length,u=void 0,l=i,_=s.line;l0){var f=p%he(),m=ye((p-f)/he());for(r.rawWrite(m);f;)r.rawWrite(" "),f--;}else r.rawWrite("");}Fe(t,a,r,o,l,d),l=d;}else r.write(t.substring(i,a));},e.hasModifiers=function(e){return 0!==Me(e)},e.hasModifier=Le,e.getSelectedModifierFlags=Re,e.getModifierFlags=Me,e.getModifierFlagsNoCache=Be,e.modifierToFlag=Ke,e.isLogicalOperator=function(e){return 54===e||53===e||51===e},e.isAssignmentOperator=je,e.tryGetClassExtendingExpressionWithTypeArguments=Je,e.isAssignmentExpression=ze,e.isDestructuringAssignment=function(e){if(ze(e,!0)){var t=e.left.kind;return 178===t||177===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Ue,e.isExpressionWithTypeArgumentsInClassImplementsClause=function(t){return 201===t.kind&&qe(t.expression)&&t.parent&&108===t.parent.token&&t.parent.parent&&e.isClassLike(t.parent.parent)},e.isEntityNameExpression=qe,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 143===e.parent.kind&&e.parent.right===e||179===e.parent.kind&&e.parent.name===e},e.isEmptyObjectLiteral=function(e){return 178===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 177===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(e){return Ve(e)?e.declarations[0].localSymbol:void 0},e.tryExtractTypeScriptExtension=function(t){return e.find(e.supportedTypescriptExtensionsForExtractExtension,function(n){return e.fileExtensionIs(t,n)})};var pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.convertToBase64=function(e){for(var t,n,r,i,a="",o=$e(e),s=0,c=o.length;s>2,n=(3&o[s])<<4|o[s+1]>>4,r=(15&o[s+1])<<2|o[s+2]>>6,i=63&o[s+2],s+1>=c?r=i=64:s+2>=c&&(i=64),a+=pt.charAt(t)+pt.charAt(n)+pt.charAt(r)+pt.charAt(i),s+=3;return a};var ft="\r\n",mt="\n";e.getNewLineCharacter=function(t){switch(t.newLine){case 0:return ft;case 1:return mt}return e.sys?e.sys.newLine:ft},e.formatSyntaxKind=function(t){return We(t,e.SyntaxKind,!1)},e.formatModifierFlags=function(t){return We(t,e.ModifierFlags,!0)},e.formatTransformFlags=function(t){return We(t,e.TransformFlags,!0)},e.formatEmitFlags=function(t){return We(t,e.EmitFlags,!0)},e.formatSymbolFlags=function(t){return We(t,e.SymbolFlags,!0)},e.formatTypeFlags=function(t){return We(t,e.TypeFlags,!0)},e.formatObjectFlags=function(t){return We(t,e.ObjectFlags,!0)},e.createRange=He,e.moveRangeEnd=function(e,t){return He(e.pos,t)},e.moveRangePos=Xe,e.moveRangePastDecorators=Ye,e.moveRangePastModifiers=function(e){return e.modifiers&&e.modifiers.length>0?Xe(e,e.modifiers.end):Ye(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(t,n){return He(t,t+e.tokenToString(n).length)},e.rangeIsOnSingleLine=function(e,t){return Qe(e,e,t)},e.rangeStartPositionsAreOnSameLine=function(e,t,n){return Ze(et(e,n),et(t,n),n)},e.rangeEndPositionsAreOnSameLine=function(e,t,n){return Ze(e.end,t.end,n)},e.rangeStartIsOnSameLineAsRangeEnd=Qe,e.rangeEndIsOnSameLineAsRangeStart=function(e,t,n){return Ze(e.end,et(t,n),n)},e.positionsAreOnSameLine=Ze,e.getStartPositionOfRange=et,e.isDeclarationNameOfEnumOrNamespace=function(t){var n=e.getParseTreeNode(t);if(n)switch(n.parent.kind){case 232:case 233:return n===n.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,tt)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.getCheckFlags=nt,e.getDeclarationModifierFlagsFromSymbol=function(t){if(t.valueDeclaration){var n=e.getCombinedModifierFlags(t.valueDeclaration);return t.parent&&32&t.parent.flags?n:-29&n}if(6&nt(t)){var r=t.checkFlags;return(256&r?8:64&r?4:16)|(512&r?32:0)}return 4194304&t.flags?36:0},e.levenshtein=function(e,t){for(var n=new Array(t.length+1),r=new Array(t.length+1),i=0;i=e.start&&n=e.start&&t(n)<=t(e)},e.textSpanOverlapsWith=function(e,n){return Math.max(e.start,n.start)=e.start},e.textSpanIntersectsWith=function(e,n,r){var i=n+r;return n<=t(e)&&i>=e.start},e.decodedTextSpanIntersectsWith=function(e,t,n,r){var i=n+r;return n<=e+t&&i>=e},e.textSpanIntersectsWithPosition=function(e,n){return n<=t(e)&&n>=e.start},e.textSpanIntersection=function(e,n){var r=Math.max(e.start,n.start),a=Math.min(t(e),t(n));if(r<=a)return i(r,a)},e.createTextSpan=r,e.createTextSpanFromBounds=i,e.textChangeRangeNewSpan=function(e){return r(e.span.start,e.newLength)},e.textChangeRangeIsUnchanged=function(e){return n(e.span)&&0===e.newLength},e.createTextChangeRange=a,e.unchangedTextChangeRange=a(r(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(n){if(0===n.length)return e.unchangedTextChangeRange;if(1===n.length)return n[0];for(var r=n[0],o=r.span.start,s=t(r.span),c=o+r.newLength,u=1;u=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t},e.unescapeIdentifier=function(e){return e},e.getNameOfDeclaration=function(t){if(t){if(e.isJSDocPropertyLikeTag(t)&&143===t.name.kind)return t.name.right;if(194!==t.kind)return t.name;var n=t;switch(e.getSpecialPropertyAssignmentKind(n)){case 1:case 4:case 5:case 3:return n.left.name;default:return}}};}(r||(r={})),function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isStringLiteral=function(e){return 9===e.kind},e.isJsxText=function(e){return 10===e.kind},e.isRegularExpressionLiteral=function(e){return 12===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 13===e.kind},e.isTemplateHead=function(e){return 14===e.kind},e.isTemplateMiddle=function(e){return 15===e.kind},e.isTemplateTail=function(e){return 16===e.kind},e.isIdentifier=function(e){return 71===e.kind},e.isQualifiedName=function(e){return 143===e.kind},e.isComputedPropertyName=function(e){return 144===e.kind},e.isTypeParameterDeclaration=function(e){return 145===e.kind},e.isParameter=function(e){return 146===e.kind},e.isDecorator=function(e){return 147===e.kind},e.isPropertySignature=function(e){return 148===e.kind},e.isPropertyDeclaration=function(e){return 149===e.kind},e.isMethodSignature=function(e){return 150===e.kind},e.isMethodDeclaration=function(e){return 151===e.kind},e.isConstructorDeclaration=function(e){return 152===e.kind},e.isGetAccessorDeclaration=function(e){return 153===e.kind},e.isSetAccessorDeclaration=function(e){return 154===e.kind},e.isCallSignatureDeclaration=function(e){return 155===e.kind},e.isConstructSignatureDeclaration=function(e){return 156===e.kind},e.isIndexSignatureDeclaration=function(e){return 157===e.kind},e.isTypePredicateNode=function(e){return 158===e.kind},e.isTypeReferenceNode=function(e){return 159===e.kind},e.isFunctionTypeNode=function(e){return 160===e.kind},e.isConstructorTypeNode=function(e){return 161===e.kind},e.isTypeQueryNode=function(e){return 162===e.kind},e.isTypeLiteralNode=function(e){return 163===e.kind},e.isArrayTypeNode=function(e){return 164===e.kind},e.isTupleTypeNode=function(e){return 165===e.kind},e.isUnionTypeNode=function(e){return 166===e.kind},e.isIntersectionTypeNode=function(e){return 167===e.kind},e.isParenthesizedTypeNode=function(e){return 168===e.kind},e.isThisTypeNode=function(e){return 169===e.kind},e.isTypeOperatorNode=function(e){return 170===e.kind},e.isIndexedAccessTypeNode=function(e){return 171===e.kind},e.isMappedTypeNode=function(e){return 172===e.kind},e.isLiteralTypeNode=function(e){return 173===e.kind},e.isObjectBindingPattern=function(e){return 174===e.kind},e.isArrayBindingPattern=function(e){return 175===e.kind},e.isBindingElement=function(e){return 176===e.kind},e.isArrayLiteralExpression=function(e){return 177===e.kind},e.isObjectLiteralExpression=function(e){return 178===e.kind},e.isPropertyAccessExpression=function(e){return 179===e.kind},e.isElementAccessExpression=function(e){return 180===e.kind},e.isCallExpression=function(e){return 181===e.kind},e.isNewExpression=function(e){return 182===e.kind},e.isTaggedTemplateExpression=function(e){return 183===e.kind},e.isTypeAssertion=function(e){return 184===e.kind},e.isParenthesizedExpression=function(e){return 185===e.kind},e.skipPartiallyEmittedExpressions=function(e){for(;288===e.kind;)e=e.expression;return e},e.isFunctionExpression=function(e){return 186===e.kind},e.isArrowFunction=function(e){return 187===e.kind},e.isDeleteExpression=function(e){return 188===e.kind},e.isTypeOfExpression=function(e){return 191===e.kind},e.isVoidExpression=function(e){return 190===e.kind},e.isAwaitExpression=function(e){return 191===e.kind},e.isPrefixUnaryExpression=function(e){return 192===e.kind},e.isPostfixUnaryExpression=function(e){return 193===e.kind},e.isBinaryExpression=function(e){return 194===e.kind},e.isConditionalExpression=function(e){return 195===e.kind},e.isTemplateExpression=function(e){return 196===e.kind},e.isYieldExpression=function(e){return 197===e.kind},e.isSpreadElement=function(e){return 198===e.kind},e.isClassExpression=function(e){return 199===e.kind},e.isOmittedExpression=function(e){return 200===e.kind},e.isExpressionWithTypeArguments=function(e){return 201===e.kind},e.isAsExpression=function(e){return 202===e.kind},e.isNonNullExpression=function(e){return 203===e.kind},e.isMetaProperty=function(e){return 204===e.kind},e.isTemplateSpan=function(e){return 205===e.kind},e.isSemicolonClassElement=function(e){return 206===e.kind},e.isBlock=function(e){return 207===e.kind},e.isVariableStatement=function(e){return 208===e.kind},e.isEmptyStatement=function(e){return 209===e.kind},e.isExpressionStatement=function(e){return 210===e.kind},e.isIfStatement=function(e){return 211===e.kind},e.isDoStatement=function(e){return 212===e.kind},e.isWhileStatement=function(e){return 213===e.kind},e.isForStatement=function(e){return 214===e.kind},e.isForInStatement=function(e){return 215===e.kind},e.isForOfStatement=function(e){return 216===e.kind},e.isContinueStatement=function(e){return 217===e.kind},e.isBreakStatement=function(e){return 218===e.kind},e.isReturnStatement=function(e){return 219===e.kind},e.isWithStatement=function(e){return 220===e.kind},e.isSwitchStatement=function(e){return 221===e.kind},e.isLabeledStatement=function(e){return 222===e.kind},e.isThrowStatement=function(e){return 223===e.kind},e.isTryStatement=function(e){return 224===e.kind},e.isDebuggerStatement=function(e){return 225===e.kind},e.isVariableDeclaration=function(e){return 226===e.kind},e.isVariableDeclarationList=function(e){return 227===e.kind},e.isFunctionDeclaration=function(e){return 228===e.kind},e.isClassDeclaration=function(e){return 229===e.kind},e.isInterfaceDeclaration=function(e){return 230===e.kind},e.isTypeAliasDeclaration=function(e){return 231===e.kind},e.isEnumDeclaration=function(e){return 232===e.kind},e.isModuleDeclaration=function(e){return 233===e.kind},e.isModuleBlock=function(e){return 234===e.kind},e.isCaseBlock=function(e){return 235===e.kind},e.isNamespaceExportDeclaration=function(e){return 236===e.kind},e.isImportEqualsDeclaration=function(e){return 237===e.kind},e.isImportDeclaration=function(e){return 238===e.kind},e.isImportClause=function(e){return 239===e.kind},e.isNamespaceImport=function(e){return 240===e.kind},e.isNamedImports=function(e){return 241===e.kind},e.isImportSpecifier=function(e){return 242===e.kind},e.isExportAssignment=function(e){return 243===e.kind},e.isExportDeclaration=function(e){return 244===e.kind},e.isNamedExports=function(e){return 245===e.kind},e.isExportSpecifier=function(e){return 246===e.kind},e.isMissingDeclaration=function(e){return 247===e.kind},e.isExternalModuleReference=function(e){return 248===e.kind},e.isJsxElement=function(e){return 249===e.kind},e.isJsxSelfClosingElement=function(e){return 250===e.kind},e.isJsxOpeningElement=function(e){return 251===e.kind},e.isJsxClosingElement=function(e){return 252===e.kind},e.isJsxAttribute=function(e){return 253===e.kind},e.isJsxAttributes=function(e){return 254===e.kind},e.isJsxSpreadAttribute=function(e){return 255===e.kind},e.isJsxExpression=function(e){return 256===e.kind},e.isCaseClause=function(e){return 257===e.kind},e.isDefaultClause=function(e){return 258===e.kind},e.isHeritageClause=function(e){return 259===e.kind},e.isCatchClause=function(e){return 260===e.kind},e.isPropertyAssignment=function(e){return 261===e.kind},e.isShorthandPropertyAssignment=function(e){return 262===e.kind},e.isSpreadAssignment=function(e){return 263===e.kind},e.isEnumMember=function(e){return 264===e.kind},e.isSourceFile=function(e){return 265===e.kind},e.isBundle=function(e){return 266===e.kind},e.isJSDocTypeExpression=function(e){return 267===e.kind},e.isJSDocAllType=function(e){return 268===e.kind},e.isJSDocUnknownType=function(e){return 269===e.kind},e.isJSDocNullableType=function(e){return 270===e.kind},e.isJSDocNonNullableType=function(e){return 271===e.kind},e.isJSDocOptionalType=function(e){return 272===e.kind},e.isJSDocFunctionType=function(e){return 273===e.kind},e.isJSDocVariadicType=function(e){return 274===e.kind},e.isJSDoc=function(e){return 275===e.kind},e.isJSDocAugmentsTag=function(e){return 277===e.kind},e.isJSDocParameterTag=function(e){return 279===e.kind},e.isJSDocReturnTag=function(e){return 280===e.kind},e.isJSDocTypeTag=function(e){return 281===e.kind},e.isJSDocTemplateTag=function(e){return 282===e.kind},e.isJSDocTypedefTag=function(e){return 283===e.kind},e.isJSDocPropertyTag=function(e){return 284===e.kind},e.isJSDocPropertyLikeTag=function(e){return 284===e.kind||279===e.kind},e.isJSDocTypeLiteral=function(e){return 285===e.kind};}(r||(r={})),function(e){function t(e){return e>=143}function n(e){return 8<=e&&e<=13}function r(e){switch(e){case 117:case 120:case 76:case 124:case 79:case 84:case 114:case 112:case 113:case 131:case 115:return!0}return!1}function i(e){switch(e){case 152:case 186:case 228:case 187:case 151:case 150:case 153:case 154:case 155:case 156:case 157:case 160:case 273:case 161:return!0}return!1}function a(e){return e>=158&&e<=173||119===e||133===e||134===e||122===e||136===e||137===e||99===e||105===e||139===e||95===e||130===e||201===e}function o(e){switch(e.kind){case 174:case 178:return!0}return!1}function s(e){switch(e.kind){case 175:case 177:return!0}return!1}function c(e){return 179===e||180===e||182===e||181===e||249===e||250===e||183===e||177===e||185===e||178===e||199===e||186===e||71===e||12===e||8===e||9===e||13===e||196===e||86===e||95===e||99===e||101===e||97===e||91===e||203===e||204===e}function u(e){return 192===e||193===e||188===e||189===e||190===e||191===e||184===e||c(e)}function l(e){return 195===e||197===e||187===e||194===e||198===e||202===e||200===e||289===e||u(e)}function _(t){return l(e.skipPartiallyEmittedExpressions(t).kind)}function d(e){return 288===e.kind}function p(e){return 287===e.kind}function f(e,t){switch(e.kind){case 214:case 215:case 216:case 212:case 213:return!0;case 222:return t&&f(e.statement,t)}return!1}function m(e){return 187===e||176===e||229===e||199===e||152===e||232===e||264===e||246===e||228===e||186===e||153===e||239===e||237===e||242===e||230===e||253===e||151===e||150===e||233===e||236===e||240===e||146===e||261===e||149===e||148===e||154===e||262===e||231===e||145===e||226===e||283===e}function g(e){return 228===e||247===e||229===e||230===e||231===e||232===e||233===e||238===e||237===e||244===e||243===e||236===e}function y(e){return 218===e||217===e||225===e||212===e||210===e||209===e||215===e||216===e||214===e||211===e||222===e||219===e||221===e||223===e||224===e||208===e||213===e||220===e||287===e||291===e||290===e}function h(t){return 207===t.kind&&((void 0===t.parent||224!==t.parent.kind&&260!==t.parent.kind)&&!e.isFunctionBlock(t))}function v(e){return e.kind>=276&&e.kind<=285}e.isSyntaxList=function(e){return 286===e.kind},e.isNode=function(e){return t(e.kind)},e.isNodeKind=t,e.isToken=function(e){return e.kind>=0&&e.kind<=142},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=n,e.isLiteralExpression=function(e){return n(e.kind)},e.isTemplateLiteralKind=function(e){return 13<=e&&e<=16},e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 15===t||16===t},e.isStringTextContainingNode=function(e){switch(e.kind){case 9:case 14:case 15:case 16:case 13:return!0;default:return!1}},e.isGeneratedIdentifier=function(t){return e.isIdentifier(t)&&t.autoGenerateKind>0},e.isModifierKind=r,e.isModifier=function(e){return r(e.kind)},e.isEntityName=function(e){var t=e.kind;return 143===t||71===t},e.isPropertyName=function(e){var t=e.kind;return 71===t||9===t||8===t||144===t},e.isBindingName=function(e){var t=e.kind;return 71===t||174===t||175===t},e.isFunctionLike=function(e){return e&&i(e.kind)},e.isFunctionLikeKind=i,e.isClassElement=function(e){var t=e.kind;return 152===t||149===t||151===t||153===t||154===t||157===t||206===t||247===t},e.isClassLike=function(e){return e&&(229===e.kind||199===e.kind)},e.isAccessor=function(e){return e&&(153===e.kind||154===e.kind)},e.isTypeElement=function(e){var t=e.kind;return 156===t||155===t||148===t||150===t||157===t||247===t},e.isObjectLiteralElementLike=function(e){var t=e.kind;return 261===t||262===t||263===t||151===t||153===t||154===t||247===t},e.isTypeNode=function(e){return a(e.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 160:case 161:return!0}return!1},e.isBindingPattern=function(e){if(e){var t=e.kind;return 175===t||174===t}return!1},e.isAssignmentPattern=function(e){var t=e.kind;return 177===t||178===t},e.isArrayBindingElement=function(e){var t=e.kind;return 176===t||200===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 226:case 146:case 176:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return o(e)||s(e)},e.isObjectBindingOrAssignmentPattern=o,e.isArrayBindingOrAssignmentPattern=s,e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 179===t||143===t},e.isCallLikeExpression=function(e){switch(e.kind){case 251:case 250:case 181:case 182:case 183:case 147:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 181===e.kind||182===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 196===t||13===t},e.isLeftHandSideExpression=function(t){return c(e.skipPartiallyEmittedExpressions(t).kind)},e.isUnaryExpression=function(t){return u(e.skipPartiallyEmittedExpressions(t).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 193:return!0;case 192:return 43===e.operator||44===e.operator;default:return!1}},e.isExpression=_,e.isAssertionExpression=function(e){var t=e.kind;return 184===t||202===t},e.isPartiallyEmittedExpression=d,e.isNotEmittedStatement=p,e.isNotEmittedOrPartiallyEmittedNode=function(e){return p(e)||d(e)},e.isIterationStatement=f,e.isForInOrOfStatement=function(e){return 215===e.kind||216===e.kind},e.isConciseBody=function(t){return e.isBlock(t)||_(t)},e.isFunctionBody=function(t){return e.isBlock(t)},e.isForInitializer=function(t){return e.isVariableDeclarationList(t)||_(t)},e.isModuleBody=function(e){var t=e.kind;return 234===t||233===t||71===t},e.isNamespaceBody=function(e){var t=e.kind;return 234===t||233===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 71===t||233===t},e.isNamedImportBindings=function(e){var t=e.kind;return 241===t||240===t},e.isModuleOrEnumDeclaration=function(e){return 233===e.kind||232===e.kind},e.isDeclaration=function(t){return 145===t.kind?282!==t.parent.kind||e.isInJavaScriptFile(t):m(t.kind)},e.isDeclarationStatement=function(e){return g(e.kind)},e.isStatementButNotDeclaration=function(e){return y(e.kind)},e.isStatement=function(e){var t=e.kind;return y(t)||g(t)||h(e)},e.isModuleReference=function(e){var t=e.kind;return 248===t||143===t||71===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 99===t||71===t||179===t},e.isJsxChild=function(e){var t=e.kind;return 249===t||256===t||250===t||10===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 253===t||255===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 9===t||256===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 251===t||250===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 257===t||258===t},e.isJSDocNode=function(e){return e.kind>=267&&e.kind<=285},e.isJSDocCommentContainingNode=function(e){return 275===e.kind||v(e)},e.isJSDocTag=v;}(r||(r={}));!function(e){function t(e,t){return t&&e(t)}function n(e,t,n){if(n){if(t)return t(n);for(var r=0,i=n;r107)}function $(t,n,r){return void 0===r&&(r=!0),I()===t?(r&&L(),!0):(n?A(n):A(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function W(e){return I()===e&&(L(),!0)}function G(e){if(I()===e)return X()}function H(e,t,n,r){return G(e)||ne(e,t,n,r)}function X(){var e=Z(I());return L(),te(e)}function Y(){return 25===I()||(18===I()||1===I()||da.hasPrecedingLineBreak())}function Q(){return Y()?(25===I()&&L(),!0):$(25)}function Z(t,n){return sa++,n>=0||(n=da.getStartPos()),e.isNodeKind(t)?new Qi(t,n,n):71===t?new ea(t,n,n):new Zi(t,n,n)}function ee(e,t){var n=e||[];return t>=0||(t=P()),n.pos=t,n.end=t,n}function te(e,t){return e.end=void 0===t?da.getStartPos():t,_a&&(e.flags|=_a),fa&&(fa=!1,e.flags|=32768),e}function ne(t,n,r,i){n?w(da.getStartPos(),0,r,i):A(r,i);var a=Z(t,da.getStartPos());return 71===t?a.escapedText="":(e.isLiteralKind(t)||e.isTemplateLiteralKind(t))&&(a.text=""),te(a)}function re(e){var t=ca.get(e);return void 0===t&&ca.set(e,t=e),t}function ie(t,n){if(ua++,t){var r=Z(71);return 71!==I()&&(r.originalKeywordKind=I()),r.escapedText=e.escapeLeadingUnderscores(re(da.getTokenValue())),L(),te(r)}return ne(71,!1,n||e.Diagnostics.Identifier_expected)}function ae(e){return ie(V(),e)}function oe(){return ie(e.tokenIsIdentifierOrKeyword(I()))}function se(){return e.tokenIsIdentifierOrKeyword(I())||9===I()||8===I()}function ce(e){if(9===I()||8===I()){var t=Ge();return t.text=re(t.text),t}return e&&21===I()?le():oe()}function ue(){return ce(!0)}function le(){var e=Z(144);return $(21),e.expression=y(tn),$(22),te(e)}function _e(e){return I()===e&&q(pe)}function de(){return L(),!da.hasPrecedingLineBreak()&&me()}function pe(){return 76===I()?83===L():84===I()?(L(),79===I()?U(ge):39!==I()&&118!==I()&&17!==I()&&me()):79===I()?ge():115===I()?(L(),me()):de()}function fe(){return e.isModifierKind(I())&&q(pe)}function me(){return 21===I()||17===I()||39===I()||24===I()||se()}function ge(){return L(),75===I()||89===I()||109===I()||117===I()&&U(Ir)||120===I()&&U(Lr)}function ye(t,n){if(Ne(t))return!0;switch(t){case 0:case 1:case 3:return!(25===I()&&n)&&Kr();case 2:return 73===I()||79===I();case 4:return U(bt);case 5:return U(li)||25===I()&&!n;case 6:return 21===I()||se();case 12:return 21===I()||39===I()||24===I()||se();case 17:return se();case 9:return 21===I()||24===I()||se();case 7:return 17===I()?U(he):n?V()&&!xe():Qt()&&!xe();case 8:return Xr();case 10:return 26===I()||24===I()||Xr();case 18:return V();case 11:case 15:return 26===I()||24===I()||Zt();case 16:return lt();case 19:case 20:return 26===I()||Lt();case 21:return ki();case 22:return e.tokenIsIdentifierOrKeyword(I());case 13:return e.tokenIsIdentifierOrKeyword(I())||17===I();case 14:return!0}e.Debug.fail("Non-exhaustive case in 'isListElement'.");}function he(){if(e.Debug.assert(17===I()),18===L()){var t=L();return 26===t||17===t||85===t||108===t}return!0}function ve(){return L(),V()}function be(){return L(),e.tokenIsIdentifierOrKeyword(I())}function xe(){return(108===I()||85===I())&&U(Se)}function Se(){return L(),Zt()}function ke(e){if(1===I())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 22:return 18===I();case 3:return 18===I()||73===I()||79===I();case 7:return 17===I()||85===I()||108===I();case 8:return Te();case 18:return 29===I()||19===I()||17===I()||85===I()||108===I();case 11:return 20===I()||25===I();case 15:case 20:case 10:return 22===I();case 16:case 17:return 20===I()||22===I();case 19:return 26!==I();case 21:return 17===I()||18===I();case 13:return 29===I()||41===I();case 14:return 27===I()&&U(Li)}}function Te(){return!!Y()||(!!vn(I())||36===I())}function Ce(){for(var e=0;e<23;e++)if(la&1<=0&&(i.hasTrailingComma=!0),i.end=F(),la=r,i}function Je(){return ee()}function ze(e,t,n,r){if($(n)){var i=je(e,t);return $(r),i}return Je()}function Ue(e,t){for(var n=e?oe():ae(t),r=da.getStartPos();W(23);){if(27===I()){n.jsdocDotPos=r;break}r=da.getStartPos(),n=qe(n,Ve(e));}return n}function qe(e,t){var n=Z(143,e.pos);return n.left=e,n.right=t,te(n)}function Ve(t){return da.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(I())&&U(Fr)?ne(71,!0,e.Diagnostics.Identifier_expected):t?oe():ae()}function $e(){var t=Z(196);t.head=He(),e.Debug.assert(14===t.head.kind,"Template head has wrong token kind");var n=ee();do{n.push(We());}while(15===e.lastOrUndefined(n).literal.kind);return n.end=F(),t.templateSpans=n,te(t)}function We(){var t=Z(205);t.expression=y(tn);var n;return 18===I()?(B(),n=Xe()):n=H(16,!1,e.Diagnostics._0_expected,e.tokenToString(18)),t.literal=n,te(t)}function Ge(){return Ye(I())}function He(){var t=Ye(I());return e.Debug.assert(14===t.kind,"Template head has wrong token kind"),t}function Xe(){var t=Ye(I());return e.Debug.assert(15===t.kind||16===t.kind,"Template fragment has wrong token kind"),t}function Ye(e){var t=Z(e),n=da.getTokenValue();return t.text=n,da.hasExtendedUnicodeEscape()&&(t.hasExtendedUnicodeEscape=!0),da.isUnterminated()&&(t.isUnterminated=!0),8===t.kind&&(t.numericLiteralFlags=da.getNumericLiteralFlags()),L(),te(t),t}function Qe(){var t=Z(159);return t.typeName=Ue(!!(1048576&_a),e.Diagnostics.Type_expected),da.hasPrecedingLineBreak()||27!==I()||(t.typeArguments=ze(19,Ht,27,29)),te(t)}function Ze(e){L();var t=Z(158,e.pos);return t.parameterName=e,t.type=Ht(),te(t)}function et(){var e=Z(169);return L(),te(e)}function tt(){var e=Z(268);return L(),te(e)}function nt(){var e=da.getStartPos();if(L(),26===I()||18===I()||20===I()||29===I()||58===I()||49===I())return te(t=Z(269,e));var t=Z(270,e);return t.type=Ht(),te(t)}function rt(){if(U(Ii)){var e=Z(273);return L(),dt(56,36,e),te(e)}var t=Z(159);return t.typeName=oe(),te(t)}function it(){var e=Z(146);return 99!==I()&&94!==I()||(e.name=oe(),$(56)),e.type=Ht(),te(e)}function at(e){var t=Z(e);return L(),t.type=Ht(),te(t)}function ot(){var e=Z(162);return $(103),e.exprName=Ue(!0),te(e)}function st(){var e=Z(145);return e.name=ae(),W(85)&&(Lt()||!Zt()?e.constraint=Ht():e.expression=On()),W(58)&&(e.default=Ht()),te(e)}function ct(){if(27===I())return ze(18,st,27,29)}function ut(){if(W(56))return Ht()}function lt(){return 24===I()||Xr()||e.isModifierKind(I())||57===I()||Lt(!0)}function _t(t){var n=Z(146);return 99===I()?(n.name=ie(!0),n.type=ut(),te(n)):(n.decorators=_i(),n.modifiers=di(),n.dotDotDotToken=G(24),n.name=Yr(),0===e.getFullWidth(n.name)&&!e.hasModifiers(n)&&e.isModifierKind(I())&&L(),n.questionToken=G(55),n.type=ut(),n.initializer=nn(!0,t),s(te(n)))}function dt(t,n,r){if(32&n||(r.typeParameters=ct()),r.parameters=pt(n),36===t)$(t),r.type=Wt();else if(W(t))r.type=Wt();else if(4&n){var i=da.getTokenPos(),a=da.getTextPos()-i;W(56===t?36:56)&&(r.type=Wt(),w(i,a,e.Diagnostics._0_expected,e.tokenToString(t)));}}function pt(e){if($(19)){var t=C(),n=N();d(!!(1&e)),f(!!(2&e));var r=je(16,32&e?it:function(){return _t(!!(8&e))});if(d(t),f(n),!$(20)&&8&e)return;return r}return 8&e?void 0:Je()}function ft(){W(26)||Q();}function mt(e){var t=Z(e);return 156===e&&$(94),dt(56,4,t),ft(),s(te(t))}function gt(){return 21===I()&&U(yt)}function yt(){if(L(),24===I()||22===I())return!0;if(e.isModifierKind(I())){if(L(),V())return!0}else{if(!V())return!1;L();}return 56===I()||26===I()||55===I()&&(L(),56===I()||26===I()||22===I())}function ht(e,t,n){var r=Z(157,e);return r.decorators=t,r.modifiers=n,r.parameters=ze(16,_t,21,22),r.type=Yt(),ft(),te(r)}function vt(e,t){var n=ue(),r=G(55);if(19===I()||27===I()){var i=Z(150,e);return i.modifiers=t,i.name=n,i.questionToken=r,dt(56,4,i),ft(),s(te(i))}var a=Z(148,e);return a.modifiers=t,a.name=n,a.questionToken=r,a.type=Yt(),58===I()&&(a.initializer=si()),ft(),s(te(a))}function bt(){if(19===I()||27===I())return!0;for(var t;e.isModifierKind(I());)t=!0,L();return 21===I()||(se()&&(t=!0,L()),!!t&&(19===I()||27===I()||55===I()||56===I()||26===I()||Y()))}function xt(){if(19===I()||27===I())return mt(155);if(94===I()&&U(St))return mt(156);var e=P(),t=di();return gt()?ht(e,void 0,t):vt(e,t)}function St(){return L(),19===I()||27===I()}function kt(){var e=Z(163);return e.members=Tt(),te(e)}function Tt(){var e;return $(17)?(e=De(4,xt),$(18)):e=Je(),e}function Ct(){return L(),131===I()&&L(),21===I()&&ve()&&92===L()}function Dt(){var e=Z(145);return e.name=ae(),$(92),e.constraint=Ht(),te(e)}function Et(){var e=Z(172);return $(17),e.readonlyToken=G(131),$(21),e.typeParameter=Dt(),$(22),e.questionToken=G(55),e.type=Yt(),Q(),$(18),te(e)}function Nt(){var e=Z(165);return e.elementTypes=ze(20,Ht,21,22),te(e)}function At(){var e=Z(168);return $(19),e.type=Ht(),$(20),te(e)}function wt(e){var t=Z(e);return 161===e&&$(94),dt(36,4,t),te(t)}function Ot(){var e=X();return 23===I()?void 0:e}function Pt(e){var t,n=Z(173);e&&((t=Z(192)).operator=38,L());var r;switch(I()){case 9:case 8:r=Ye(I());break;case 101:case 86:r=X();}return e&&(t.operand=r,te(t),r=t),n.literal=r,te(n)}function Ft(){return 8===L()}function It(){switch(I()){case 119:case 136:case 133:case 122:case 137:case 139:case 130:case 134:return q(Ot)||Qe();case 39:return tt();case 55:return nt();case 89:return rt();case 24:return at(274);case 51:return at(271);case 9:case 8:case 101:case 86:return Pt();case 38:return U(Ft)?Pt(!0):Qe();case 105:case 95:return X();case 99:var e=et();return 126!==I()||da.hasPrecedingLineBreak()?e:Ze(e);case 103:return ot();case 17:return U(Ct)?Et():kt();case 21:return Nt();case 19:return At();default:return Qe()}}function Lt(e){switch(I()){case 119:case 136:case 133:case 122:case 137:case 105:case 139:case 95:case 99:case 103:case 130:case 17:case 21:case 27:case 49:case 48:case 94:case 9:case 8:case 101:case 86:case 134:case 39:return!0;case 38:return!e&&U(Ft);case 19:return!e&&U(Rt);default:return V()}}function Rt(){return L(),20===I()||lt()||Lt()}function Mt(){var e=It(),t=function(e){switch(e){case 58:return 1048576&_a?272:void 0;case 51:return 271;case 55:return 270}}(I());if(!t)return e;L();var n=Z(t,e.pos);return n.type=e,te(n)}function Bt(){for(var e=Mt();!da.hasPrecedingLineBreak()&&W(21);)if(Lt())(t=Z(171,e.pos)).objectType=e,t.indexType=Ht(),$(22),e=te(t);else{var t=Z(164,e.pos);t.elementType=e,$(22),e=te(t);}return e}function Kt(e){var t=Z(170);return $(e),t.operator=e,t.type=jt(),te(t)}function jt(){switch(I()){case 127:return Kt(127)}return Bt()}function Jt(e,t,n){W(n);var r=t();if(I()===n){for(var i=ee([r],r.pos);W(n);)i.push(t());i.end=F();var a=Z(e,r.pos);a.types=i,r=te(a);}return r}function zt(){return Jt(167,jt,48)}function Ut(){return Jt(166,zt,49)}function qt(){return 27===I()||19===I()&&U($t)}function Vt(){if(e.isModifierKind(I())&&di(),V()||99===I())return L(),!0;if(21===I()||17===I()){var t=ra.length;return Yr(),t===ra.length}return!1}function $t(){if(L(),20===I()||24===I())return!0;if(Vt()){if(56===I()||26===I()||55===I()||58===I())return!0;if(20===I()&&(L(),36===I()))return!0}return!1}function Wt(){var e=V()&&q(Gt),t=Ht();if(e){var n=Z(158,e.pos);return n.parameterName=e,n.type=t,te(n)}return t}function Gt(){var e=ae();if(126===I()&&!da.hasPrecedingLineBreak())return L(),e}function Ht(){return m(20480,Xt)}function Xt(){return qt()?wt(160):94===I()?wt(161):Ut()}function Yt(){return W(56)?Ht():void 0}function Qt(){switch(I()){case 99:case 97:case 95:case 101:case 86:case 8:case 9:case 13:case 14:case 19:case 21:case 17:case 89:case 75:case 94:case 41:case 63:case 71:return!0;case 91:return U(St);default:return V()}}function Zt(){if(Qt())return!0;switch(I()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 43:case 44:case 27:case 121:case 116:return!0;default:return!!xn()||V()}}function en(){return 17!==I()&&89!==I()&&75!==I()&&57!==I()&&Zt()}function tn(){var e=E();e&&p(!1);for(var t,n=rn();t=G(26);)n=kn(n,t,rn());return e&&p(!0),n}function nn(t,n){if(58!==I()){if(da.hasPrecedingLineBreak()||t&&17===I()||!Zt())return;if(t&&n){var r=ne(71,!0,e.Diagnostics._0_expected,"=");return r.escapedText="= not found",r}}return $(58),rn()}function rn(){if(an())return sn();var t=un()||pn();if(t)return t;var n=hn(0);return 71===n.kind&&36===I()?cn(n):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(R())?kn(n,X(),rn()):yn(n)}function an(){return 116===I()&&(!!C()||U(Rr))}function on$$1(){return L(),!da.hasPrecedingLineBreak()&&V()}function sn(){var e=Z(197);return L(),da.hasPrecedingLineBreak()||39!==I()&&!Zt()?te(e):(e.asteriskToken=G(39),e.expression=rn(),te(e))}function cn(t,n){e.Debug.assert(36===I(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var r;n?(r=Z(187,n.pos)).modifiers=n:r=Z(187,t.pos);var i=Z(146,t.pos);return i.name=t,te(i),r.parameters=ee([i],i.pos),r.parameters.end=i.end,r.equalsGreaterThanToken=H(36,!1,e.Diagnostics._0_expected,"=>"),r.body=gn(!!n),s(te(r))}function un(){var t=ln();if(0!==t){var n=1===t?mn(!0):q(dn);if(n){var r=e.hasModifier(n,256),i=I();return n.equalsGreaterThanToken=H(36,!1,e.Diagnostics._0_expected,"=>"),n.body=36===i||17===i?gn(r):ae(),s(te(n))}}}function ln(){return 19===I()||27===I()||120===I()?U(_n):36===I()?1:0}function _n(){if(120===I()){if(L(),da.hasPrecedingLineBreak())return 0;if(19!==I()&&27!==I())return 0}var t=I(),n=L();if(19===t){if(20===n)switch(L()){case 36:case 56:case 17:return 1;default:return 0}return 21===n||17===n?2:24===n?1:V()?56===L()?1:2:0}return e.Debug.assert(27===t),V()?1===na.languageVariant?U(function(){var e=L();if(85===e)switch(L()){case 58:case 29:return!1;default:return!0}else if(26===e)return!0;return!1})?1:0:2:0}function dn(){return mn(!1)}function pn(){if(120===I()&&1===U(fn)){var e=pi();return cn(hn(0),e)}}function fn(){if(120===I()){if(L(),da.hasPrecedingLineBreak()||36===I())return 0;var e=hn(0);if(!da.hasPrecedingLineBreak()&&71===e.kind&&36===I())return 1}return 0}function mn(t){var n=Z(187);if(n.modifiers=pi(),dt(56,(e.hasModifier(n,256)?2:0)|(t?0:8),n),n.parameters&&(t||!(36!==I()&&17!==I()||e.find(n.parameters,function(t){return t.initializer&&e.isIdentifier(t.initializer)&&"= not found"===t.initializer.escapedText}))))return n}function gn(e){return 17===I()?mr(e?2:0):25!==I()&&89!==I()&&75!==I()&&Kr()&&!en()?mr(16|(e?2:0)):e?x(rn):S(rn)}function yn(t){var n=G(55);if(!n)return t;var r=Z(195,t.pos);return r.condition=t,r.questionToken=n,r.whenTrue=m(pa,rn),r.colonToken=H(56,!1,e.Diagnostics._0_expected,e.tokenToString(56)),r.whenFalse=rn(),te(r)}function hn(e){return bn(e,On())}function vn(e){return 92===e||142===e}function bn(e,t){for(;;){R();var n=Sn();if(!(40===I()?n>=e:n>e))break;if(92===I()&&D())break;if(118===I()){if(da.hasPrecedingLineBreak())break;L(),t=Tn(t,Ht());}else t=kn(t,X(),hn(n));}return t}function xn(){return(!D()||92!==I())&&Sn()>0}function Sn(){switch(I()){case 54:return 1;case 53:return 2;case 49:return 3;case 50:return 4;case 48:return 5;case 32:case 33:case 34:case 35:return 6;case 27:case 29:case 30:case 31:case 93:case 92:case 118:return 7;case 45:case 46:case 47:return 8;case 37:case 38:return 9;case 39:case 41:case 42:return 10;case 40:return 11}return-1}function kn(e,t,n){var r=Z(194,e.pos);return r.left=e,r.operatorToken=t,r.right=n,te(r)}function Tn(e,t){var n=Z(202,e.pos);return n.expression=e,n.type=t,te(n)}function Cn(){var e=Z(192);return e.operator=I(),L(),e.operand=Pn(),te(e)}function Dn(){var e=Z(188);return L(),e.expression=Pn(),te(e)}function En(){var e=Z(189);return L(),e.expression=Pn(),te(e)}function Nn(){var e=Z(190);return L(),e.expression=Pn(),te(e)}function An(){return 121===I()&&(!!N()||U(Rr))}function wn(){var e=Z(191);return L(),e.expression=Pn(),te(e)}function On(){if(Fn()){var t=In();return 40===I()?bn(Sn(),t):t}var n=I(),r=Pn();if(40===I()){var i=e.skipTrivia(oa,r.pos);184===r.kind?w(i,r.end-i,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):w(i,r.end-i,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(n));}return r}function Pn(){switch(I()){case 37:case 38:case 52:case 51:return Cn();case 80:return Dn();case 103:return En();case 105:return Nn();case 27:return Xn();case 121:if(An())return wn();default:return In()}}function Fn(){switch(I()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 121:return!1;case 27:if(1!==na.languageVariant)return!1;default:return!0}}function In(){if(43===I()||44===I())return(n=Z(192)).operator=I(),L(),n.operand=Ln(),te(n);if(1===na.languageVariant&&27===I()&&U(be))return Kn(!0);var t=Ln();if(e.Debug.assert(e.isLeftHandSideExpression(t)),(43===I()||44===I())&&!da.hasPrecedingLineBreak()){var n=Z(193,t.pos);return n.operand=t,n.operator=I(),L(),te(n)}return t}function Ln(){var e;return 91===I()&&U(St)?(na.flags|=524288,e=X()):e=97===I()?Mn():Rn(),Qn(e)}function Rn(){return Yn(nr())}function Mn(){var t=X();if(19===I()||23===I()||21===I())return t;var n=Z(179,t.pos);return n.expression=t,H(23,!1,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),n.name=Ve(!0),te(n)}function Bn(e,t){return e.kind===t.kind&&(71===e.kind?e.escapedText===t.escapedText:99===e.kind||e.name.escapedText===t.name.escapedText&&Bn(e.expression,t.expression))}function Kn(t){var n,r=qn(t);if(251===r.kind){var i=Z(249,r.pos);i.openingElement=r,i.children=zn(i.openingElement.tagName),i.closingElement=Hn(t),Bn(i.openingElement.tagName,i.closingElement.tagName)||w(i.closingElement.pos,i.closingElement.end-i.closingElement.pos,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(oa,i.openingElement.tagName)),n=te(i);}else e.Debug.assert(250===r.kind),n=r;if(t&&27===I()){var a=q(function(){return Kn(!0)});if(a){A(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=Z(194,n.pos);return o.end=a.end,o.left=n,o.right=a,o.operatorToken=ne(26,!1,void 0),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return n}function jn(){var e=Z(10,da.getStartPos());return e.containsOnlyWhiteSpaces=11===aa,aa=da.scanJsxToken(),te(e)}function Jn(){switch(I()){case 10:case 11:return jn();case 17:return $n(!1);case 27:return Kn(!1)}e.Debug.fail("Unknown JSX child kind "+I());}function zn(t){var n=ee(),r=la;for(la|=16384;;){if(aa=da.reScanJsxToken(),28===I())break;if(1===I()){w(t.pos,t.end-t.pos,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(oa,t));break}if(7===I())break;var i=Jn();i&&n.push(i);}return n.end=da.getTokenPos(),la=r,n}function Un(){var e=Z(254);return e.properties=De(13,Wn),te(e)}function qn(e){var t=da.getStartPos();$(27);var n,r=Vn(),i=Un();return 29===I()?(n=Z(251,t),j()):($(41),e?$(29):($(29,void 0,!1),j()),n=Z(250,t)),n.tagName=r,n.attributes=i,te(n)}function Vn(){K();for(var e=99===I()?X():oe();W(23);){var t=Z(179,e.pos);t.expression=e,t.name=Ve(!0),e=te(t);}return e}function $n(e){var t=Z(256);return $(17),18!==I()&&(t.dotDotDotToken=G(24),t.expression=rn()),e?$(18):($(18,void 0,!1),j()),te(t)}function Wn(){if(17===I())return Gn();K();var e=Z(253);if(e.name=oe(),58===I())switch(J()){case 9:e.initializer=Ge();break;default:e.initializer=$n(!0);}return te(e)}function Gn(){var e=Z(255);return $(17),$(24),e.expression=tn(),$(18),te(e)}function Hn(e){var t=Z(252);return $(28),t.tagName=Vn(),e?$(29):($(29,void 0,!1),j()),te(t)}function Xn(){var e=Z(184);return $(27),e.type=Ht(),$(29),e.expression=Pn(),te(e)}function Yn(e){for(;;)if(G(23)){var t=Z(179,e.pos);t.expression=e,t.name=Ve(!0),e=te(t);}else if(51!==I()||da.hasPrecedingLineBreak())if(E()||!W(21)){if(13!==I()&&14!==I())return e;var n=Z(183,e.pos);n.tag=e,n.template=13===I()?Ge():$e(),e=te(n);}else{var r=Z(180,e.pos);if(r.expression=e,22!==I()&&(r.argumentExpression=y(tn),9===r.argumentExpression.kind||8===r.argumentExpression.kind)){var i=r.argumentExpression;i.text=re(i.text);}$(22),e=te(r);}else{L();var a=Z(203,e.pos);a.expression=e,e=te(a);}}function Qn(e){for(;;)if(e=Yn(e),27!==I()){if(19!==I())return e;var t=Z(181,e.pos);t.expression=e,t.arguments=Zn(),e=te(t);}else{var n=q(er);if(!n)return e;(t=Z(181,e.pos)).expression=e,t.typeArguments=n,t.arguments=Zn(),e=te(t);}}function Zn(){$(19);var e=je(11,or);return $(20),e}function er(){if(W(27)){var e=je(19,Ht);if($(29))return e&&tr()?e:void 0}}function tr(){switch(I()){case 19:case 23:case 20:case 22:case 56:case 25:case 55:case 32:case 34:case 33:case 35:case 53:case 54:case 50:case 48:case 49:case 18:case 1:return!0;case 26:case 17:default:return!1}}function nr(){switch(I()){case 8:case 9:case 13:return Ge();case 99:case 97:case 95:case 101:case 86:return X();case 19:return rr();case 21:return sr();case 17:return lr();case 120:if(!U(Lr))break;return _r();case 75:return mi();case 89:return _r();case 94:return pr();case 41:case 63:if(12===M())return Ge();break;case 14:return $e()}return ae(e.Diagnostics.Expression_expected)}function rr(){var e=Z(185);return $(19),e.expression=y(tn),$(20),s(te(e))}function ir(){var e=Z(198);return $(24),e.expression=rn(),te(e)}function ar(){return 24===I()?ir():26===I()?Z(200):rn()}function or(){return m(pa,ar)}function sr(){var e=Z(177);return $(21),da.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=je(15,ar),$(22),te(e)}function cr(e,t,n){return _e(125)?ci(153,e,t,n):_e(135)?ci(154,e,t,n):void 0}function ur(){var e=da.getStartPos();if(G(24)){var t=Z(263,e);return t.expression=rn(),s(te(t))}var n=_i(),r=di(),i=cr(e,n,r);if(i)return i;var a=G(39),o=V(),c=ue(),u=G(55);if(a||19===I()||27===I())return ii(e,n,r,a,c,u);if(o&&(26===I()||18===I()||58===I())){var l=Z(262,e);l.name=c,l.questionToken=u;var _=G(58);return _&&(l.equalsToken=_,l.objectAssignmentInitializer=y(rn)),s(te(l))}var d=Z(261,e);return d.modifiers=r,d.name=c,d.questionToken=u,$(56),d.initializer=y(rn),s(te(d))}function lr(){var e=Z(178);return $(17),da.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=je(12,ur,!0),$(18),te(e)}function _r(){var t=E();t&&p(!1);var n=Z(186);n.modifiers=di(),$(89),n.asteriskToken=G(39);var r=n.asteriskToken?1:0,i=e.hasModifier(n,256)?2:0;return n.name=r&&i?k(dr):r?v(dr):i?x(dr):dr(),dt(56,r|i,n),n.body=mr(r|i),t&&p(!0),s(te(n))}function dr(){return V()?ae():void 0}function pr(){var e=da.getStartPos();if($(94),W(23)){var t=Z(204,e);return t.keywordToken=94,t.name=oe(),te(t)}var n=Z(182,e);return n.expression=Rn(),n.typeArguments=q(er),(n.typeArguments||19===I())&&(n.arguments=Zn()),te(n)}function fr(e,t){var n=Z(207);return $(17,t)||e?(da.hasPrecedingLineBreak()&&(n.multiLine=!0),n.statements=De(1,zr),$(18)):n.statements=Je(),te(n)}function mr(e,t){var n=C();d(!!(1&e));var r=N();f(!!(2&e));var i=E();i&&p(!1);var a=fr(!!(16&e),t);return i&&p(!0),d(n),f(r),a}function gr(){var e=Z(209);return $(25),te(e)}function yr(){var e=Z(211);return $(90),$(19),e.expression=y(tn),$(20),e.thenStatement=zr(),e.elseStatement=W(82)?zr():void 0,te(e)}function hr(){var e=Z(212);return $(81),e.statement=zr(),$(106),$(19),e.expression=y(tn),$(20),W(25),te(e)}function vr(){var e=Z(213);return $(106),$(19),e.expression=y(tn),$(20),e.statement=zr(),te(e)}function br(){var e=P();$(88);var t=G(121);$(19);var n=void 0;25!==I()&&(n=104===I()||110===I()||76===I()?Zr(!0):h(tn));var r;if(t?$(142):W(142)){var i=Z(216,e);i.awaitModifier=t,i.initializer=n,i.expression=y(rn),$(20),r=i;}else if(W(92)){var a=Z(215,e);a.initializer=n,a.expression=y(tn),$(20),r=a;}else{var o=Z(214,e);o.initializer=n,$(25),25!==I()&&20!==I()&&(o.condition=y(tn)),$(25),20!==I()&&(o.incrementor=y(tn)),$(20),r=o;}return r.statement=zr(),te(r)}function xr(e){var t=Z(e);return $(218===e?72:77),Y()||(t.label=ae()),Q(),te(t)}function Sr(){var e=Z(219);return $(96),Y()||(e.expression=y(tn)),Q(),te(e)}function kr(){var e=Z(220);return $(107),$(19),e.expression=y(tn),$(20),e.statement=zr(),te(e)}function Tr(){var e=Z(257);return $(73),e.expression=y(tn),$(56),e.statements=De(3,zr),te(e)}function Cr(){var e=Z(258);return $(79),$(56),e.statements=De(3,zr),te(e)}function Dr(){return 73===I()?Tr():Cr()}function Er(){var e=Z(221);$(98),$(19),e.expression=y(tn),$(20);var t=Z(235,da.getStartPos());return $(17),t.clauses=De(2,Dr),$(18),e.caseBlock=te(t),te(e)}function Nr(){var e=Z(223);return $(100),e.expression=da.hasPrecedingLineBreak()?void 0:y(tn),Q(),te(e)}function Ar(){var e=Z(224);return $(102),e.tryBlock=fr(!1),e.catchClause=74===I()?wr():void 0,e.catchClause&&87!==I()||($(87),e.finallyBlock=fr(!1)),te(e)}function wr(){var e=Z(260);return $(74),W(19)?(e.variableDeclaration=Qr(),$(20)):e.variableDeclaration=void 0,e.block=fr(!1),te(e)}function Or(){var e=Z(225);return $(78),Q(),te(e)}function Pr(){var e=da.getStartPos(),t=y(tn);if(71===t.kind&&W(56)){var n=Z(222,e);return n.label=t,n.statement=zr(),s(te(n))}var r=Z(210,e);return r.expression=t,Q(),s(te(r))}function Fr(){return L(),e.tokenIsIdentifierOrKeyword(I())&&!da.hasPrecedingLineBreak()}function Ir(){return L(),75===I()&&!da.hasPrecedingLineBreak()}function Lr(){return L(),89===I()&&!da.hasPrecedingLineBreak()}function Rr(){return L(),(e.tokenIsIdentifierOrKeyword(I())||8===I()||9===I())&&!da.hasPrecedingLineBreak()}function Mr(){for(;;)switch(I()){case 104:case 110:case 76:case 89:case 75:case 83:return!0;case 109:case 138:return on$$1();case 128:case 129:return qr();case 117:case 120:case 124:case 112:case 113:case 114:case 131:if(L(),da.hasPrecedingLineBreak())return!1;continue;case 141:return L(),17===I()||71===I()||84===I();case 91:return L(),9===I()||39===I()||17===I()||e.tokenIsIdentifierOrKeyword(I());case 84:if(L(),58===I()||39===I()||17===I()||79===I()||118===I())return!0;continue;case 115:L();continue;default:return!1}}function Br(){return U(Mr)}function Kr(){switch(I()){case 57:case 25:case 17:case 104:case 110:case 89:case 75:case 83:case 90:case 81:case 106:case 88:case 77:case 72:case 96:case 107:case 98:case 100:case 102:case 78:case 74:case 87:return!0;case 91:return Br()||U(St);case 76:case 84:return Br();case 120:case 124:case 109:case 128:case 129:case 138:case 141:return!0;case 114:case 112:case 113:case 115:case 131:return Br()||!U(Fr);default:return Zt()}}function jr(){return L(),V()||17===I()||21===I()}function Jr(){return U(jr)}function zr(){switch(I()){case 25:return gr();case 17:return fr(!1);case 104:return ti(da.getStartPos(),void 0,void 0);case 110:if(Jr())return ti(da.getStartPos(),void 0,void 0);break;case 89:return ni(da.getStartPos(),void 0,void 0);case 75:return gi(da.getStartPos(),void 0,void 0);case 90:return yr();case 81:return hr();case 106:return vr();case 88:return br();case 77:return xr(217);case 72:return xr(218);case 96:return Sr();case 107:return kr();case 98:return Er();case 100:return Nr();case 102:case 74:case 87:return Ar();case 78:return Or();case 57:return Ur();case 120:case 109:case 138:case 128:case 129:case 124:case 76:case 83:case 84:case 91:case 112:case 113:case 114:case 117:case 115:case 131:case 141:if(Br())return Ur()}return Pr()}function Ur(){var t=P(),n=_i(),r=di();switch(I()){case 104:case 110:case 76:return ti(t,n,r);case 89:return ni(t,n,r);case 75:return gi(t,n,r);case 109:return Ci(t,n,r);case 138:return Di(t,n,r);case 83:return Ni(t,n,r);case 141:case 128:case 129:return Pi(t,n,r);case 91:return Mi(t,n,r);case 84:switch(L(),I()){case 79:case 58:return Hi(t,n,r);case 118:return Ri(t,n,r);default:return Gi(t,n,r)}default:if(n||r){var i=ne(247,!0,e.Diagnostics.Declaration_expected);return i.pos=t,i.decorators=n,i.modifiers=r,te(i)}}}function qr(){return L(),!da.hasPrecedingLineBreak()&&(V()||9===I())}function Vr(e,t){if(17===I()||!Y())return mr(e,t);Q();}function $r(){if(26===I())return Z(200);var e=Z(176);return e.dotDotDotToken=G(24),e.name=Yr(),e.initializer=nn(!1),te(e)}function Wr(){var e=Z(176);e.dotDotDotToken=G(24);var t=V(),n=ue();return t&&56!==I()?e.name=n:($(56),e.propertyName=n,e.name=Yr()),e.initializer=nn(!1),te(e)}function Gr(){var e=Z(174);return $(17),e.elements=je(9,Wr),$(18),te(e)}function Hr(){var e=Z(175);return $(21),e.elements=je(10,$r),$(22),te(e)}function Xr(){return 17===I()||21===I()||V()}function Yr(){return 21===I()?Hr():17===I()?Gr():ae()}function Qr(){var e=Z(226);return e.name=Yr(),e.type=Yt(),vn(I())||(e.initializer=si()),te(e)}function Zr(t){var n=Z(227);switch(I()){case 104:break;case 110:n.flags|=1;break;case 76:n.flags|=2;break;default:e.Debug.fail();}if(L(),142===I()&&U(ei))n.declarations=Je();else{var r=D();_(t),n.declarations=je(8,Qr),_(r);}return te(n)}function ei(){return ve()&&20===L()}function ti(e,t,n){var r=Z(208,e);return r.decorators=t,r.modifiers=n,r.declarationList=Zr(!1),Q(),s(te(r))}function ni(t,n,r){var i=Z(228,t);i.decorators=n,i.modifiers=r,$(89),i.asteriskToken=G(39),i.name=e.hasModifier(i,512)?dr():ae();var a=i.asteriskToken?1:0,o=e.hasModifier(i,256)?2:0;return dt(56,a|o,i),i.body=Vr(a|o,e.Diagnostics.or_expected),s(te(i))}function ri(t,n,r){var i=Z(152,t);return i.decorators=n,i.modifiers=r,$(123),dt(56,0,i),i.body=Vr(0,e.Diagnostics.or_expected),s(te(i))}function ii(t,n,r,i,a,o,c){var u=Z(151,t);u.decorators=n,u.modifiers=r,u.asteriskToken=i,u.name=a,u.questionToken=o;var l=i?1:0,_=e.hasModifier(u,256)?2:0;return dt(56,l|_,u),u.body=Vr(l|_,c),s(te(u))}function ai(t,n,r,i,a){var o=Z(149,t);return o.decorators=n,o.modifiers=r,o.name=i,o.questionToken=a,o.type=Yt(),o.initializer=e.hasModifier(o,32)?y(si):m(6144,si),Q(),s(te(o))}function oi(t,n,r){var i=G(39),a=ue(),o=G(55);return i||19===I()||27===I()?ii(t,n,r,i,a,o,e.Diagnostics.or_expected):ai(t,n,r,a,o)}function si(){return nn(!1)}function ci(e,t,n,r){var i=Z(e,t);return i.decorators=n,i.modifiers=r,i.name=ue(),dt(56,0,i),i.body=Vr(0),s(te(i))}function ui(e){switch(e){case 114:case 112:case 113:case 115:case 131:return!0;default:return!1}}function li(){var t;if(57===I())return!0;for(;e.isModifierKind(I());){if(t=I(),ui(t))return!0;L();}if(39===I())return!0;if(se()&&(t=I(),L()),21===I())return!0;if(void 0!==t){if(!e.isKeyword(t)||135===t||125===t)return!0;switch(I()){case 19:case 27:case 56:case 58:case 55:return!0;default:return Y()}}return!1}function _i(){for(var e;;){var t=P();if(!W(57))break;var n=Z(147,t);n.expression=b(Ln),te(n),e?e.push(n):e=ee([n],t);}return e&&(e.end=F()),e}function di(e){for(var t;;){var n=da.getStartPos(),r=I();if(76===I()&&e){if(!q(de))break}else if(!fe())break;var i=te(Z(r,n));t?t.push(i):t=ee([i],n);}return t&&(t.end=da.getStartPos()),t}function pi(){var e;if(120===I()){var t=da.getStartPos(),n=I();L(),(e=ee([te(Z(n,t))],t)).end=da.getStartPos();}return e}function fi(){if(25===I()){var t=Z(206);return L(),te(t)}var n=P(),r=_i(),i=di(!0),a=cr(n,r,i);return a||(123===I()?ri(n,r,i):gt()?ht(n,r,i):e.tokenIsIdentifierOrKeyword(I())||9===I()||8===I()||39===I()||21===I()?oi(n,r,i):r||i?ai(n,r,i,ne(71,!0,e.Diagnostics.Declaration_expected),void 0):void e.Debug.fail("Should not have attempted to parse class member declaration."))}function mi(){return yi(da.getStartPos(),void 0,void 0,199)}function gi(e,t,n){return yi(e,t,n,229)}function yi(e,t,n,r){var i=Z(r,e);return i.decorators=t,i.modifiers=n,$(75),i.name=hi(),i.typeParameters=ct(),i.heritageClauses=bi(),$(17)?(i.members=Ti(),$(18)):i.members=Je(),s(te(i))}function hi(){return V()&&!vi()?ae():void 0}function vi(){return 108===I()&&U(be)}function bi(){if(ki())return De(21,xi)}function xi(){var e=I();if(85===e||108===e){var t=Z(259);return t.token=e,L(),t.types=je(7,Si),te(t)}}function Si(){var e=Z(201);return e.expression=Ln(),27===I()&&(e.typeArguments=ze(19,Ht,27,29)),te(e)}function ki(){return 85===I()||108===I()}function Ti(){return De(5,fi)}function Ci(e,t,n){var r=Z(230,e);return r.decorators=t,r.modifiers=n,$(109),r.name=ae(),r.typeParameters=ct(),r.heritageClauses=bi(),r.members=Tt(),s(te(r))}function Di(e,t,n){var r=Z(231,e);return r.decorators=t,r.modifiers=n,$(138),r.name=ae(),r.typeParameters=ct(),$(58),r.type=Ht(),Q(),s(te(r))}function Ei(){var e=Z(264,da.getStartPos());return e.name=ue(),e.initializer=y(si),s(te(e))}function Ni(e,t,n){var r=Z(232,e);return r.decorators=t,r.modifiers=n,$(83),r.name=ae(),$(17)?(r.members=je(6,Ei),$(18)):r.members=Je(),s(te(r))}function Ai(){var e=Z(234,da.getStartPos());return $(17)?(e.statements=De(1,zr),$(18)):e.statements=Je(),te(e)}function wi(e,t,n,r){var i=Z(233,e),a=16&r;return i.decorators=t,i.modifiers=n,i.flags|=r,i.name=ae(),i.body=W(23)?wi(P(),void 0,void 0,4|a):Ai(),s(te(i))}function Oi(e,t,n){var r=Z(233,e);return r.decorators=t,r.modifiers=n,141===I()?(r.name=ae(),r.flags|=512):(r.name=Ge(),r.name.text=re(r.name.text)),17===I()?r.body=Ai():Q(),te(r)}function Pi(e,t,n){var r=0;if(141===I())return Oi(e,t,n);if(W(129))r|=16;else if($(128),9===I())return Oi(e,t,n);return wi(e,t,n,r)}function Fi(){return 132===I()&&U(Ii)}function Ii(){return 19===L()}function Li(){return 41===L()}function Ri(e,t,n){var r=Z(236,e);return r.decorators=t,r.modifiers=n,$(118),$(129),r.name=ae(),Q(),te(r)}function Mi(e,t,n){$(91);var r,i=da.getStartPos();if(V()&&(r=ae(),26!==I()&&140!==I()))return Bi(e,t,n,r);var a=Z(238,e);return a.decorators=t,a.modifiers=n,(r||39===I()||17===I())&&(a.importClause=Ki(r,i),$(140)),a.moduleSpecifier=zi(),Q(),te(a)}function Bi(e,t,n,r){var i=Z(237,e);return i.decorators=t,i.modifiers=n,i.name=r,$(58),i.moduleReference=ji(),Q(),s(te(i))}function Ki(e,t){var n=Z(239,t);return e&&(n.name=e),n.name&&!W(26)||(n.namedBindings=39===I()?Ui():qi(241)),te(n)}function ji(){return Fi()?Ji():Ue(!1)}function Ji(){var e=Z(248);return $(132),$(19),e.expression=zi(),$(20),te(e)}function zi(){if(9===I()){var e=Ge();return e.text=re(e.text),e}return tn()}function Ui(){var e=Z(240);return $(39),$(118),e.name=ae(),te(e)}function qi(e){var t=Z(e);return t.elements=ze(22,241===e?$i:Vi,17,18),te(t)}function Vi(){return Wi(246)}function $i(){return Wi(242)}function Wi(t){var n=Z(t),r=e.isKeyword(I())&&!V(),i=da.getTokenPos(),a=da.getTextPos(),o=oe();return 118===I()?(n.propertyName=o,$(118),r=e.isKeyword(I())&&!V(),i=da.getTokenPos(),a=da.getTextPos(),n.name=oe()):n.name=o,242===t&&r&&w(i,a-i,e.Diagnostics.Identifier_expected),te(n)}function Gi(e,t,n){var r=Z(244,e);return r.decorators=t,r.modifiers=n,W(39)?($(140),r.moduleSpecifier=zi()):(r.exportClause=qi(245),(140===I()||9===I()&&!da.hasPrecedingLineBreak())&&($(140),r.moduleSpecifier=zi())),Q(),te(r)}function Hi(e,t,n){var r=Z(243,e);return r.decorators=t,r.modifiers=n,W(58)?r.isExportEquals=!0:$(79),r.expression=rn(),Q(),te(r)}function Xi(t){for(var n,r=e.createScanner(t.languageVersion,!1,0,oa),i=[],a=[],o=[],s=void 0;;){var c=r.scan();if(2!==c){if(e.isTrivia(c))continue;break}var u={kind:r.getToken(),pos:r.getTokenPos(),end:r.getTextPos()},l=oa.substring(u.pos,u.end),_=e.getFileReferenceFromReferencePath(l,u);if(_){var d=_.fileReference;t.hasNoDefaultLib=_.isNoDefaultLib;var p=_.diagnosticMessage;d&&(_.isTypeReferenceDirective?a.push(d):i.push(d)),p&&ra.push(e.createFileDiagnostic(t,u.pos,u.end-u.pos,p));}else{var f=/^\/\/\/\s*=1&&(o=0,r.push(da.getTokenText())),e=0;break;case 57:break;case 5:if(2===o)t(da.getTokenText());else{var s=da.getTokenText();void 0!==n&&e+s.length>n&&r.push(s.slice(n-e-1)),e+=s.length;}break;case 39:if(0===o){o=1,e+=da.getTokenText().length;break}default:o=2,t(da.getTokenText());}if(57===I())break;D();}return i(r),a(r),r}function l(e,t){var n=Z(276,e.pos);return n.atToken=e,n.tagName=t,te(n)}function _(e,t){e.comment=t.join(""),F?F.push(e):F=ee([e],e.pos),F.end=e.end;}function d(){return q(function(){if(s(),17===I())return n()})}function p(){var e=W(21),t=E();return e&&(s(),G(58)&&tn(),$(22)),{name:t,isBracketed:e}}function f(t){switch(t.kind){case 134:return!0;case 164:return f(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText}}function m(e,t,n){var r=d(),i=!r;s();var a=p(),o=a.name,c=a.isBracketed;s(),i&&(r=d());var u=1===n?Z(279,e.pos):Z(284,e.pos),l=g(r,o);return l&&(r=l,i=!0),u.atToken=e,u.tagName=t,u.typeExpression=r,u.name=o,u.isNameFirst=i,u.isBracketed=c,te(u)}function g(e,t){if(e&&f(e.type)){for(var n=Z(267,da.getTokenPos()),r=void 0,i=void 0,a=da.getStartPos(),o=void 0;r=q(function(){return k(1,t)});)o||(o=[]),o.push(r);if(o)return i=Z(285,a),i.jsDocPropertyTags=o,164===e.type.kind&&(i.isArrayType=!0),n.type=te(i),te(n)}}function y(t,n){e.forEach(F,function(e){return 280===e.kind})&&w(n.pos,da.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);var r=Z(280,t.pos);return r.atToken=t,r.tagName=n,r.typeExpression=d(),te(r)}function h(t,n){e.forEach(F,function(e){return 281===e.kind})&&w(n.pos,da.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);var r=Z(281,t.pos);return r.atToken=t,r.tagName=n,r.typeExpression=d(),te(r)}function v(e,t){var n=d(),r=Z(277,e.pos);return r.atToken=e,r.tagName=t,r.typeExpression=n,te(r)}function b(e,t){var n=Z(278,e.pos);return n.atToken=e,n.tagName=t,te(n)}function x(e,t){function n(e){var t=da.getTokenPos(),r=N();if(r&&W(23)){var i=Z(233,t);return i.flags|=e,i.name=r,i.body=n(4),te(i)}return r&&4&e&&(r.isInJSDocNamespace=!0),r}var r=d();s();var i=Z(283,e.pos);if(i.atToken=e,i.tagName=t,i.fullName=n(0),i.fullName)for(var a=i.fullName;;){if(71===a.kind||!a.body){i.name=71===a.kind?a:a.name;break}a=a.body;}if(s(),i.typeExpression=r,!r||f(r.type)){for(var o=void 0,c=void 0,u=void 0,l=da.getStartPos();o=q(function(){return k(0)});)if(c||(c=Z(285,l)),281===o.kind){if(u)break;u=o;}else c.jsDocPropertyTags||(c.jsDocPropertyTags=[]),c.jsDocPropertyTags.push(o);c&&(r&&164===r.type.kind&&(c.isArrayType=!0),i.typeExpression=u&&!f(u.typeExpression.type)?u.typeExpression:te(c));}return te(i)}function S(t,n){for(;!e.isIdentifier(t)||!e.isIdentifier(n);){if(e.isIdentifier(t)||e.isIdentifier(n)||t.right.escapedText!==n.right.escapedText)return!1;t=t.left,n=n.left;}return t.escapedText===n.escapedText}function k(t,n){for(var r=!0,i=!1;;)switch(D(),I()){case 57:if(r){var a=T(t);return!(a&&279===a.kind&&(e.isIdentifier(a.name)||!S(n,a.name.left)))&&a}i=!1;break;case 4:r=!0,i=!1;break;case 39:i&&(r=!1),i=!0;break;case 71:r=!1;break;case 1:return!1}}function T(t){e.Debug.assert(57===I());var n=Z(57,da.getStartPos());n.end=da.getTextPos(),D();var r=N();if(s(),!r)return!1;switch(r.escapedText){case"type":return 0===t&&h(n,r);case"prop":case"property":return 0===t&&m(n,r,t);case"arg":case"argument":case"param":return 1===t&&m(n,r,t)}return!1}function C(t,n){e.forEach(F,function(e){return 282===e.kind})&&w(n.pos,da.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);for(var r=ee();;){var i=N();if(s(),!i)return void w(da.getStartPos(),0,e.Diagnostics.Identifier_expected);var a=Z(145,i.pos);if(a.name=i,te(a),r.push(a),26!==I())break;D(),s();}var o=Z(282,t.pos);return o.atToken=t,o.tagName=n,o.typeParameters=r,te(o),r.end=o.end,o}function D(){return aa=da.scanJSDocToken()}function E(){var e=N(!0);for(W(21)&&$(22);W(23);){var t=N(!0);W(21)&&$(22),e=qe(e,t);}return e}function N(t){if(void 0===t&&(t=!1),!e.tokenIsIdentifierOrKeyword(I()))return t?ne(71,!0,e.Diagnostics.Identifier_expected):void A(e.Diagnostics.Identifier_expected);var n=da.getTokenPos(),r=da.getTextPos(),i=Z(71,n);return i.escapedText=e.escapeLeadingUnderscores(O.substring(n,r)),te(i,r),D(),i}var O=oa;t=t||0;var P=void 0===r?O.length:t+r;r=P-t,e.Debug.assert(t>=0),e.Debug.assert(t<=P),e.Debug.assert(P<=O.length);var F,L,R=[];return function(e,t){return 47===e.charCodeAt(t)&&42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&42!==e.charCodeAt(t+3)}(O,t)?(da.scanRange(t+3,r-5,function(){function e(e){s||(s=u),R.push(e),u+=e.length;}var n=!0,r=1,s=void 0,u=t-Math.max(O.lastIndexOf("\n",t),0)+4;for(D();5===I();)D();for(4===I()&&(r=0,u=0,D());1!==I();){switch(I()){case 57:0===r||1===r?(a(R),c(u),r=0,n=!1,s=void 0,u++):e(da.getTokenText());break;case 4:R.push(da.getTokenText()),r=0,u=0;break;case 39:var l=da.getTokenText();1===r||2===r?(r=2,e(l)):(r=1,u+=l.length);break;case 71:e(da.getTokenText()),r=2;break;case 5:var _=da.getTokenText();2===r?R.push(_):void 0!==s&&u+_.length>s&&R.push(_.slice(s-u-1)),u+=_.length;break;case 1:break;default:r=2,e(da.getTokenText());}n?D():n=!0;}i(R),a(R),L=o();}),L):L}t.parseJSDocTypeExpressionForTests=function(e,t,r){i(e,5,void 0,1),na=u("file.js",5,1),da.setText(e,t,r),aa=da.scan();var o=n(),s=ra;return a(),o?{jsDocTypeExpression:o,diagnostics:s}:void 0},t.parseJSDocTypeExpression=n,t.parseIsolatedJSDocComment=function(e,t,n){i(e,5,void 0,1),na={languageVariant:0,text:e};var o=r(t,n),s=ra;return a(),o?{jsDoc:o,diagnostics:s}:void 0},t.parseJSDocComment=function(t,n,i){var a=aa,o=ra.length,s=fa,c=r(n,i);return c&&(c.parent=t),e.isInJavaScriptFile(t)&&(na.jsDocDiagnostics||(na.jsDocDiagnostics=[]),(u=na.jsDocDiagnostics).push.apply(u,ra)),aa=a,ra.length=o,fa=s,c;var u;};var o;!function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments";}(o||(o={}));var s;!function(e){e[e.Property=0]="Property",e[e.Parameter=1]="Parameter";}(s||(s={})),t.parseJSDocCommentWorker=r;}(ya=t.JSDocParser||(t.JSDocParser={}));}(u||(u={}));var l;!function(t){function n(t,n,a,s,c,u){function l(t){var n="";if(u&&i(t)&&(n=s.substring(t.pos,t.end)),t._children&&(t._children=void 0),t.pos+=a,t.end+=a,u&&i(t)&&e.Debug.assert(n===c.substring(t.pos,t.end)),r(t,l,_),t.jsDoc)for(var d=0,p=t.jsDoc;d=n,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=r,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end),t.pos=Math.min(t.pos,i),t.end>=r?t.end+=a:t.end=Math.min(t.end,i),e.Debug.assert(t.pos<=t.end),t.parent&&(e.Debug.assert(t.pos>=t.parent.pos),e.Debug.assert(t.end<=t.parent.end));}function o(t,n){if(n){var i=t.pos;r(t,function(t){e.Debug.assert(t.pos>=i),i=t.end;}),e.Debug.assert(i<=t.end);}}function s(t,i,s,c,u,l,_,d){function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>s)n(t,!1,u,l,_,d);else{var m=t.end;if(m>=i)return t.intersectsChange=!0,t._children=void 0,a(t,i,s,c,u),r(t,p,f),void o(t,d);e.Debug.assert(ms)n(t,!0,u,l,_,d);else{var r=t.end;if(r>=i){t.intersectsChange=!0,t._children=void 0,a(t,i,s,c,u);for(var o=0,f=t;o0&&i<=1;i++){var a=l(t,r);e.Debug.assert(a.pos<=r);var o=a.pos;r=Math.max(0,o-1);}var s=e.createTextSpanFromBounds(r,e.textSpanEnd(n.span)),c=n.newLength+(n.span.start-r);return e.createTextChangeRange(s,c)}function l(t,n){function i(t){var n=void 0;return r(t,function(t){e.nodeIsPresent(t)&&(n=t);}),n}function a(t){if(!e.nodeIsMissing(t))return t.pos<=n?(t.pos>=s.pos&&(s=t),nn),!0)}var o,s=t;if(r(t,a),o){var c=function(e){for(;;){var t=i(e);if(!t)return e;e=t;}}(o);c.pos>s.pos&&(s=c);}return s}function _(t,n,r,i){var a=t.text;if(r&&(e.Debug.assert(a.length-r.span.length+r.newLength===n.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,r.span.start),s=n.substr(0,r.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(r.span),a.length),u=n.substring(e.textSpanEnd(e.textChangeRangeNewSpan(r)),n.length);e.Debug.assert(c===u);}}function d(t){function n(e){function n(t){return e>=t.pos&&e=t.pos&&e=158&&e<=173)return-3;switch(e){case 181:case 182:case 177:return 537396545;case 233:return 574674241;case 146:return 536872257;case 187:return 601249089;case 186:case 228:return 601281857;case 227:return 546309441;case 229:case 199:return 539358529;case 152:return 601015617;case 151:case 153:case 154:return 601015617;case 119:case 133:case 130:case 136:case 134:case 122:case 137:case 105:case 145:case 148:case 150:case 155:case 156:case 157:case 230:case 231:return-3;case 178:return 540087617;case 260:return 537920833;case 174:case 175:return 537396545;default:return 536872257}}function O(t,n){n.parent=t,e.forEachChild(n,function(e){return O(n,e)});}!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly";}(e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=t;var P;!function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod";}(P||(P={}));var F=function(){function r(e,t){return!((void 0===t.alwaysStrict?!t.strict:!t.alwaysStrict)||e.isDeclarationFile)||!!e.externalModuleIndicator}function i(e,t){return Gt++,new Vt(e,t)}function a(t,n,r){if(t.flags|=r,n.symbol=t,t.declarations||(t.declarations=[]),t.declarations.push(n),1952&r&&!t.exports&&(t.exports=e.createSymbolTable()),6240&r&&!t.members&&(t.members=e.createSymbolTable()),107455&r){var i=t.valueDeclaration;(!i||i.kind!==n.kind&&233===i.kind)&&(t.valueDeclaration=n);}}function o(t){var n=e.getNameOfDeclaration(t);if(n){if(e.isAmbientModule(t)){var r=e.getTextOfIdentifierOrLiteral(n);return e.isGlobalScopeAugmentation(t)?"__global":'"'+r+'"'}if(144===n.kind){var i=n.expression;return e.isStringOrNumericLiteral(i)?e.escapeLeadingUnderscores(i.text):(e.Debug.assert(e.isWellKnownSymbolSyntactically(i)),e.getPropertyNameForKnownSymbolName(e.unescapeLeadingUnderscores(i.name.escapedText)))}return e.getEscapedTextOfIdentifierOrLiteral(n)}switch(t.kind){case 152:return"__constructor";case 160:case 155:return"__call";case 161:case 156:return"__new";case 157:return"__index";case 244:return"__export";case 243:return t.isExportEquals?"export=":"default";case 194:if(2===e.getSpecialPropertyAssignmentKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 228:case 229:return e.hasModifier(t,512)?"default":void 0;case 273:return e.isJSDocConstructSignature(t)?"__new":"__call";case 146:e.Debug.assert(273===t.parent.kind);var a=t.parent;return"arg"+e.indexOf(a.parameters,t);case 283:var o=t.parent&&t.parent.parent,s=void 0;if(o&&208===o.kind&&o.declarationList.declarations.length>0){var c=o.declarationList.declarations[0].name;e.isIdentifier(c)&&(s=c.escapedText);}return s}}function s(t){return t.name?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(o(t))}function c(t,n,r,c,u,l){e.Debug.assert(!e.hasDynamicName(r));var _,d=e.hasModifier(r,512),p=d&&n?"default":o(r);if(void 0===p)_=i(0,"__missing");else if(_=t.get(p),788448&c&&$t.set(p,!0),_){if(l&&!_.isReplaceableByMethod)return _;if(_.flags&u)if(_.isReplaceableByMethod)t.set(p,_=i(0,p));else{r.name&&(r.name.parent=r);var f=2&_.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;_.declarations&&_.declarations.length&&(d?f=e.Diagnostics.A_module_cannot_have_multiple_default_exports:_.declarations&&_.declarations.length&&(d||243===r.kind&&!r.isExportEquals)&&(f=e.Diagnostics.A_module_cannot_have_multiple_default_exports)),e.forEach(_.declarations,function(t){Dt.bindDiagnostics.push(e.createDiagnosticForNode(e.getNameOfDeclaration(t)||t,f,s(t)));}),Dt.bindDiagnostics.push(e.createDiagnosticForNode(e.getNameOfDeclaration(r)||r,f,s(r))),_=i(0,p);}}else t.set(p,_=i(0,p)),l&&(_.isReplaceableByMethod=!0);return a(_,r,c),_.parent=n,_}function u(t,n,r){var i=1&e.getCombinedModifierFlags(t);if(2097152&n)return 246===t.kind||237===t.kind&&i?c(wt.symbol.exports,wt.symbol,t,n,r):c(wt.locals,void 0,t,n,r);283===t.kind&&e.Debug.assert(e.isInJavaScriptFile(t));var a=283===t.kind&&t.name&&71===t.name.kind&&t.name.isInJSDocNamespace;if(!e.isAmbientModule(t)&&(i||32&wt.flags)||a){var o=107455&n?1048576:0,s=c(wt.locals,void 0,t,o,r);return s.exportSymbol=c(wt.symbol.exports,wt.symbol,t,n,r),t.localSymbol=s,s}return c(wt.locals,void 0,t,n,r)}function l(t,n){var r=wt,i=Ot;if(1&n?(wt=Ot=t,32&n&&(wt.locals=e.createSymbolTable()),pe(wt)):2&n&&((Ot=t).locals=void 0),4&n){var a=It,o=Lt,s=Rt,c=Mt,u=Jt,l=zt,d=16&n&&!e.hasModifier(t,256)&&!!e.getImmediatelyInvokedFunctionExpression(t);d?Mt=x():(It={flags:2},144&n&&(It.container=t),Mt=void 0),Lt=void 0,Rt=void 0,Jt=void 0,zt=!1,_(t),t.flags&=-1409,!(1&It.flags)&&8&n&&e.nodeIsPresent(t.body)&&(t.flags|=128,zt&&(t.flags|=256)),265===t.kind&&(t.flags|=Ut),d?(T(Mt,It),It=A(Mt)):It=a,Lt=o,Rt=s,Mt=c,Jt=u,zt=l;}else 64&n?(Ft=!1,_(t),t.flags=Ft?64|t.flags:-65&t.flags):_(t);wt=r,Ot=i;}function _(e){if(Wt)f(e);else if(536870912&e.transformFlags)Wt=!0,f(e),Wt=!1,Yt|=e.transformFlags&~w(e.kind);else{var t=Yt;Yt=0,f(e),Yt=t|n(e,Yt);}}function d(t){if(void 0!==t)if(Wt)e.forEach(t,Ve);else{var n=Yt;Yt=0;for(var r=0,i=0,a=t;i=108&&t.originalKeywordKind<=116&&!e.isIdentifierName(t)&&!e.isInAmbientContext(t)&&(Dt.parseDiagnostics.length||Dt.bindDiagnostics.push(e.createDiagnosticForNode(t,we(t),e.declarationNameToString(t))));}function we(t){return e.getContainingClass(t)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:Dt.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Oe(t){qt&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Le(t,t.left);}function Pe(e){qt&&e.variableDeclaration&&Le(e,e.variableDeclaration.name);}function Fe(t){if(qt&&71===t.expression.kind){var n=e.getErrorSpanForNode(Dt,t.expression);Dt.bindDiagnostics.push(e.createFileDiagnostic(Dt,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode));}}function Ie(t){return e.isIdentifier(t)&&("eval"===t.escapedText||"arguments"===t.escapedText)}function Le(t,n){if(n&&71===n.kind){var r=n;if(Ie(r)){var i=e.getErrorSpanForNode(Dt,n);Dt.bindDiagnostics.push(e.createFileDiagnostic(Dt,i.start,i.length,Re(t),e.unescapeLeadingUnderscores(r.escapedText)));}}}function Re(t){return e.getContainingClass(t)?e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:Dt.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function Me(e){qt&&Le(e,e.name);}function Be(t){return e.getContainingClass(t)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:Dt.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Ke(t){if(Nt<2&&265!==Ot.kind&&233!==Ot.kind&&!e.isFunctionLike(Ot)){var n=e.getErrorSpanForNode(Dt,t);Dt.bindDiagnostics.push(e.createFileDiagnostic(Dt,n.start,n.length,Be(t)));}}function je(t){qt&&4&t.numericLiteralFlags&&Dt.bindDiagnostics.push(e.createDiagnosticForNode(t,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode));}function Je(e){qt&&Le(e,e.operand);}function ze(e){qt&&(43!==e.operator&&44!==e.operator||Le(e,e.operand));}function Ue(t){qt&&qe(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode);}function qe(t,n,r,i,a){var o=e.getSpanOfTokenAtPosition(Dt,t.pos);Dt.bindDiagnostics.push(e.createFileDiagnostic(Dt,o.start,o.length,n,r,i,a));}function Ve(t){if(t){t.parent=At;var r=qt;if(e.isInJavaScriptFile(t)&&$e(t),He(t),t.kind>142){var i=At;At=t;var a=de(t);0===a?_(t):l(t,a),At=i;}else Wt||0!=(536870912&t.transformFlags)||(Yt|=n(t,0));qt=r;}}function $e(e){if(e.jsDoc)for(var t=0,n=e.jsDoc;t1);}function x(t,n,r){function i(t,n){return function(r){return mb.add(e.createDiagnosticForNode(r,n,t))}}n.forEach(function(n,a){var o=t.get(a);o?e.forEach(o.declarations,i(e.unescapeLeadingUnderscores(a),r)):t.set(a,n);});}function S(e){if(33554432&e.flags)return e;var t=n(e);return ib[t]||(ib[t]={})}function k(e){var n=t(e);return ab[n]||(ab[n]={flags:0})}function T(e){return 32768&e.flags?e.objectFlags:0}function C(t){return 265===t.kind&&!e.isExternalOrCommonJsModule(t)}function D(t,n,r){if(r){var i=t.get(n);if(i){if(e.Debug.assert(0==(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&r)return i;if(2097152&i.flags){var a=re(i);if(a===Rh||a.flags&r)return i}}}}function E(t,n){var r=t.parent,i=t.parent.parent,a=D(r.locals,n,107455),o=D(i.symbol.members,n,107455);if(a&&o)return[a,o];e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration");}function N(t,n){function r(t,n,r){return!!e.findAncestor(t,function(i){if(i===r)return"quit";if(e.isFunctionLike(i))return!0;if(i.parent&&149===i.parent.kind&&i.parent.initializer===i)if(e.hasModifier(i.parent,32)){if(151===n.kind)return!0}else if(149!==n.kind||e.hasModifier(n,32)||e.getContainingClass(t)!==e.getContainingClass(n))return!0})}var i=e.getSourceFileOfNode(t),a=e.getSourceFileOfNode(n);if(i!==a){if(hh&&(i.externalModuleIndicator||a.externalModuleIndicator)||!gh.outFile&&!gh.out||Ys(n)||e.isInAmbientContext(t))return!0;if(r(n,t))return!0;var o=s.getSourceFiles();return e.indexOf(o,i)<=e.indexOf(o,a)}if(t.pos<=n.pos){if(176===t.kind){var c=e.getAncestor(n,176);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos=l?u.substr(0,l-"...".length)+"...":u}function Ye(t,n,r){return e.usingSingleLineStringWriter(function(e){it().buildTypePredicateDisplay(t,e,n,r);})}function Qe(e){for(var t=[],n=0,r=0;r0&&(26!==t&&We(i),$e(i,t),We(i)),c(e[n],26===t?0:128);}function l(e,t,n,o,s){if((32&e.flags||!Oe(e.escapedName))&&r(e,i,a,793064,0,s),n0&&($e(t,26),We(t)),n(e[r]);}function d(e,t,n,r){if(e&&e.length){$e(n,27);for(var a=512,o=0;o0&&($e(n,26),We(n),a=0),i(t(e[o]),n,r,a);$e(n,29);}}function p(e,t,n,r,i,a){$e(n,19),e&&s(e,n,r,i,a);for(var o=0;o0||e)&&($e(n,26),We(n)),s(t[o],n,r,i,a);$e(n,20);}function m(t,n,r,a,o){e.isIdentifierTypePredicate(t)?n.writeParameter(t.parameterName):Ve(n,99),We(n),Ve(n,126),We(n),i(t.type,n,r,a,o);}function g(e,t,n,r,a){var o=Br(e);4096&r&&ft(o)||(16&r?(We(t),$e(t,36)):$e(t,56),We(t),e.typePredicate?m(e.typePredicate,t,n,r,a):i(o,t,n,r,a));}function y(e,t,n,r,i,a){1===i&&(Ve(t,94),We(t)),e.target&&64&r?d(e.target.typeParameters,e.mapper,t,n):l(e.typeParameters,t,n,r,a),p(e.thisParameter,e.parameters,t,n,r,a),g(e,t,n,r,a);}function h(t,n,r,a,o,s){if(t){switch(t.isReadonly&&(Ve(n,131),We(n)),$e(n,21),n.writeParameter(t.declaration?e.declarationNameToString(t.declaration.parameters[0].name):"x"),$e(n,56),We(n),r){case 1:Ve(n,133);break;case 0:Ve(n,136);}$e(n,22),$e(n,56),We(n),i(t.type,n,a,o,s),$e(n,25),n.writeLine();}}return bb||(bb={buildSymbolDisplay:r,buildTypeDisplay:i,buildTypeParameterDisplay:o,buildTypePredicateDisplay:m,buildParameterDisplay:s,buildDisplayForParametersAndDelimiters:p,buildDisplayForTypeParametersAndDelimiters:l,buildTypeParameterDisplayFromSymbol:a,buildSignatureDisplay:y,buildIndexSignatureDisplay:h,buildReturnTypeDisplay:g})}function at(t){if(t){var n=k(t);return void 0===n.isVisible&&(n.isVisible=!!function(){switch(t.kind){case 176:return at(t.parent.parent);case 226:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 233:case 229:case 230:case 231:case 228:case 232:case 237:if(e.isExternalModuleAugmentation(t))return!0;var n=_t(t);return 1&e.getCombinedModifierFlags(t)||237!==t.kind&&265!==n.kind&&e.isInAmbientContext(n)?at(n):C(n);case 149:case 148:case 153:case 154:case 151:case 150:if(e.hasModifier(t,24))return!1;case 152:case 156:case 155:case 157:case 146:case 234:case 160:case 161:case 163:case 159:case 164:case 165:case 166:case 167:case 168:return at(t.parent);case 239:case 240:case 242:return!1;case 145:case 265:case 236:return!0;case 243:default:return!1}}()),n.isVisible}return!1}function ot(t){function n(t){e.forEach(t,function(t){k(t).isVisible=!0;var r=J(t)||t;if(e.contains(i,r)||i.push(r),e.isInternalModuleImportEqualsDeclaration(t)){var a=A(t,Lm(t.moduleReference).escapedText,901119,void 0,void 0);a&&n(a.declarations);}});}var r;t.parent&&243===t.parent.kind?r=A(t.parent,t.escapedText,2998271,e.Diagnostics.Cannot_find_name_0,t):246===t.parent.kind&&(r=Q(t.parent,2998271));var i=[];return r&&n(r.declarations),i}function st(e,t){var n=ct(e,t);if(n>=0){for(var r=Qv.length,i=n;i=0;n--){if(ut(Qv[n],eb[n]))return-1;if(Qv[n]===e&&eb[n]===t)return n}return-1}function ut(t,n){return 0===n?S(t).type:2===n?S(t).declaredType:1===n?t.resolvedBaseConstructorType:3===n?t.resolvedReturnType:void e.Debug.fail("Unhandled TypeSystemPropertyName "+n)}function lt(){return Qv.pop(),eb.pop(),Zv.pop()}function _t(t){return(t=e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 226:case 227:case 242:case 241:case 240:case 239:return!1;default:return!0}}))&&t.parent}function dt(t){var n=vn(Te(t));return n.typeParameters?ri(n,e.map(n.typeParameters,function(e){return Bh})):n}function pt(e,t){var n=gr(e,t);return n?zt(n):void 0}function ft(e){return e&&0!=(1&e.flags)}function mt(e){var t=ke(e);return t&&S(t).type||kt(e,!1)}function gt(t){return 144===t.kind&&!e.isStringOrNumericLiteral(t.expression)}function yt(t,n,r){if(8192&(t=Kc(t,function(e){return!(6144&e.flags)})).flags)return tv;if(65536&t.flags)return jc(t,function(e){return yt(e,n,r)});for(var i=e.createSymbolTable(),a=e.createUnderscoreEscapedMap(),o=0,s=n;o=2?qi(Bh):gv;var o=Xi(e.map(i,function(t){return e.isOmittedExpression(t)?Bh:Ct(t,n,r)}));return n&&((o=ii(o)).pattern=t),o}function Nt(e,t,n){return 174===e.kind?Dt(e,t,n):Et(e,t,n)}function At(e,t){var n=kt(e,!0);return n?(t&&Fs(e,n),261===e.kind?n:ws(n)):(n=e.dotDotDotToken?gv:Bh,t&&Sh&&(wt(e)||Ps(e,n)),n)}function wt(t){var n=e.getRootDeclaration(t);return qp(146===n.kind?n.parent:n)}function Ot(t){var n=S(t);if(!n.type){if(4194304&t.flags)return n.type=dt(t);var r=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(r))return n.type=Bh;if(243===r.kind)return n.type=fp(r.expression);if(e.isInJavaScriptFile(r)&&e.isJSDocPropertyLikeTag(r)&&r.typeExpression)return n.type=qa(r.typeExpression.type);if(!st(t,0))return jh;var i=void 0;i=194===r.kind||179===r.kind&&194===r.parent.kind?Tt(t):At(r,!0),lt()||(i=Jt(t)),n.type=i;}return n.type}function Pt(t){if(t){if(153===t.kind){var n=e.getEffectiveReturnTypeNode(t);return n&&qa(n)}var r=e.getEffectiveSetAccessorTypeAnnotationNode(t);return r&&qa(r)}}function Ft(e){var t=Py(e);return t&&t.symbol}function It(e){return Mr(Pr(e))}function Lt(t){var n=S(t);if(!n.type){var r=e.getDeclarationOfKind(t,153),i=e.getDeclarationOfKind(t,154);if(r&&e.isInJavaScriptFile(r)){var a=vt(r);if(a)return n.type=a}if(!st(t,0))return jh;var o=void 0,s=Pt(r);if(s)o=s;else{var c=Pt(i);c?o=c:r&&r.body?o=gd(r):(Sh&&(i?d(i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Ge(t)):(e.Debug.assert(!!r,"there must existed getter as we are current checking either setter or getter in this function"),d(r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Ge(t)))),o=Bh);}lt()||(o=Bh,Sh&&d(e.getDeclarationOfKind(t,153),e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Ge(t))),n.type=o;}return n.type}function Rt(e){var t=nn(ln(e));return 540672&t.flags?t:void 0}function Mt(t){var n=S(t);if(!n.type)if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))n.type=Bh;else{var r=we(16,t);if(32&t.flags){var i=Rt(t);n.type=i?da([r,i]):r;}else n.type=xh&&16777216&t.flags?xs(r,2048):r;}return n.type}function Bt(e){var t=S(e);return t.type||(t.type=gn(e)),t.type}function Kt(e){var t=S(e);if(!t.type){var n=re(e);t.type=107455&n.flags?zt(n):jh;}return t.type}function jt(t){var n=S(t);if(!n.type)if(100===fh)d(t.valueDeclaration,e.Diagnostics.Generic_type_instantiation_is_excessively_deep_and_possibly_infinite),n.type=jh;else{if(!st(t,0))return jh;fh++;var r=mo(zt(n.target),n.mapper);fh--,lt()||(r=Jt(t)),n.type=r;}return n.type}function Jt(t){return e.getEffectiveTypeAnnotationNode(t.valueDeclaration)?(d(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ge(t)),jh):(Sh&&d(t.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Ge(t)),Bh)}function zt(t){return 1&e.getCheckFlags(t)?jt(t):7&t.flags?Ot(t):9136&t.flags?Mt(t):8&t.flags?Bt(t):98304&t.flags?Lt(t):2097152&t.flags?Kt(t):jh}function Ut(e,t){return void 0!==e&&void 0!==t&&0!=(4&T(e))&&e.target===t}function qt(e){return 4&T(e)?e.target:e}function Vt(t,n){function r(t){if(7&T(t)){var i=qt(t);return i===n||e.forEach(rn(i),r)}if(131072&t.flags)return e.forEach(t.types,r)}return r(t)}function $t(t,n){for(var r=0,i=n;r0)return!0;if(540672&e.flags){var t=sr(e);return t&&sn(t)&&Yt(t)}return!1}function Zt(t){return e.getClassExtendsHeritageClauseElement(t.symbol.valueDeclaration)}function en(t,n,r){var i=e.length(n),a=e.isInJavaScriptFile(r);return e.filter(hr(t,1),function(t){return(a||i>=wr(t.typeParameters))&&i<=e.length(t.typeParameters)})}function tn(t,n,r){var i=en(t,n,r),a=e.map(n,qa);return e.sameMap(i,function(t){return e.some(t.typeParameters)?Jr(t,a):t})}function nn(t){if(!t.resolvedBaseConstructorType){var n=Zt(t);if(!n)return t.resolvedBaseConstructorType=Jh;if(!st(t,1))return jh;var r=fp(n.expression);if(163840&r.flags&&Zn(r),!lt())return d(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Ge(t.symbol)),t.resolvedBaseConstructorType=jh;if(!(1&r.flags||r===qh||Qt(r)))return d(n.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Xe(r)),t.resolvedBaseConstructorType=jh;t.resolvedBaseConstructorType=r;}return t.resolvedBaseConstructorType}function rn(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[$i(sa(t.typeParameters))]:96&t.symbol.flags?(32&t.symbol.flags&&an(t),64&t.symbol.flags&&cn(t)):e.Debug.fail("type must be class or interface")),t.resolvedBaseTypes}function an(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;var n=dr(nn(t));if(163841&n.flags){var r,i=Zt(t),a=hi(i),o=n&&n.symbol?vn(n.symbol):void 0;if(n.symbol&&32&n.symbol.flags&&on$$1(o))r=oi(i,n.symbol,a);else if(1&n.flags)r=n;else{var s=tn(n,i.typeArguments,i);if(!s.length)return void d(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments);r=Br(s[0]);}var c=t.symbol.valueDeclaration;if(c&&e.isInJavaScriptFile(c)){var u=e.getJSDocAugmentsTag(t.symbol.valueDeclaration);u&&(r=qa(u.typeExpression.type));}r!==jh&&(sn(r)?t===r||Vt(r,t)?d(c,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Xe(t,void 0,1)):t.resolvedBaseTypes===e.emptyArray?t.resolvedBaseTypes=[r]:t.resolvedBaseTypes.push(r):d(i.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_a_class_or_interface_type,Xe(r)));}}function on$$1(e){var t=e.outerTypeParameters;if(t){var n=t.length-1,r=e.typeArguments;return t[n].symbol!==r[n].symbol}return!0}function sn(t){return 16809985&t.flags&&!Qn(t)||131072&t.flags&&!e.forEach(t.types,function(e){return!sn(e)})}function cn(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;for(var n=0,r=t.symbol.declarations;n=_)&&o<=d){var p=d?zr(l,Or(a,l.typeParameters,_,r)):Fn(l);p.typeParameters=t.localTypeParameters,p.resolvedReturnType=t,s.push(p);}}return s}function Ln(e,t,n,r,i){for(var a=0,o=e;a0)return;for(a=1;a1){if(l=Fn(c),e.forEach(u,function(e){return e.thisParameter})){var _=sa(e.map(u,function(e){return zt(e.thisParameter)||Bh}),!0);l.thisParameter=Ts(c.thisParameter,_);}l.resolvedReturnType=void 0,l.unionSignatures=u;}(i||(i=[])).push(l);}}}return i||e.emptyArray}function Bn(e,t){for(var n=[],r=!1,i=0,a=e;i0&&(l=e.map(l,function(e){var t=Fn(e);return t.resolvedReturnType=Un(Br(e),o,c),t})),a=e.concatenate(a,l);}i=e.concatenate(i,hr(u,0)),n=Jn(n,xr(u,0)),r=Jn(r,xr(u,1));}(c);Fe(t,mh,i,a,n,r);}function Vn(t){var n=t.symbol;if(t.target)Fe(t,i=Cn(er(t.target),t.mapper,!1),r=Wa(hr(t.target,0),t.mapper),a=Wa(hr(t.target,1),t.mapper),o=go(xr(t.target,0),t.mapper),u=go(xr(t.target,1),t.mapper));else if(2048&n.flags){var r=Lr((i=n.members).get("__call"));Fe(t,i,r,a=Lr(i.get("__new")),o=Yr(n,0),u=Yr(n,1));}else{var i=mh,a=e.emptyArray,o=void 0;if(n.exports&&(i=he(n)),32&n.flags){var s=ln(n);(a=Lr(n.members.get("__constructor"))).length||(a=In(s));var c=nn(s);704512&c.flags?Dn(i=e.createSymbolTable(Pe(i)),rr(c)):c===Bh&&(o=Xr(Bh,!1));}var u=384&n.flags?qv:void 0;Fe(t,i,e.emptyArray,a,o,u),8208&n.flags&&(t.callSignatures=Lr(n));}}function $n(t){function n(n,o){var _=Ya([a],[n]),d=t.mapper?ro(t.mapper,_):_,f=mo(s,d);if(32&n.flags){var m=e.escapeLeadingUnderscores(n.value),g=gr(c,m),y=p(4|(l||g&&16777216&g.flags?16777216:0),m);y.checkFlags=u||g&&Cd(g)?8:0,y.type=f,o&&(y.syntheticOrigin=o,y.declarations=o.declarations),i.set(m,y);}else 2&n.flags&&(r=Xr(f,u));}var r,i=e.createSymbolTable();Fe(t,mh,e.emptyArray,e.emptyArray,void 0,void 0);var a=Wn(t),o=Gn(t),s=Hn(t),c=dr(Xn(t)),u=!!t.declaration.readonlyToken,l=!!t.declaration.questionToken;if(170===t.declaration.typeParameter.constraint.kind){for(var _=0,d=rr(c);_=2):16777216&t.flags?tv:t}function pr(t,n){for(var r,i=t.types,a=65536&t.flags,o=a?24:0,s=a?0:16777216,c=4,u=0,l=0,_=i;l<_.length;l++)if((b=dr(_[l]))!==jh){var d=(v=gr(b,n))?e.getDeclarationModifierFlagsFromSymbol(v):0;!v||d&o?a&&(u|=16):(s&=v.flags,r?e.contains(r,v)||r.push(v):r=[v],u|=(Cd(v)?8:0)|(24&d?0:64)|(16&d?128:0)|(8&d?256:0)|(32&d?512:0),Wl(v)||(c=2));}if(r){if(1===r.length&&!(16&u))return r[0];for(var f=[],m=[],g=void 0,y=0,h=r;y=0),i>=r.minArgumentCount}var a=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!a&&!t.type&&!t.dotDotDotToken&&e.indexOf(t.parent.parameters,t)>=a.arguments.length}function Ar(e){var t=e.parameterName;return 71===t.kind?{kind:1,parameterName:t?t.escapedText:void 0,parameterIndex:t?vp(e.parent.parameters,t):void 0,type:qa(e.type)}:{kind:0,type:qa(e.type)}}function wr(e){var t=0;if(e)for(var n=0;n=r)&&o<=a){for(t||(t=[]),c=o;cc.arguments.length&&!d.type||Dr(d)||l||(a=r.length);}if(!(153!==t.kind&&154!==t.kind||e.hasDynamicName(t)||s&&o)){var m=153===t.kind?154:153,g=e.getDeclarationOfKind(t.symbol,m);g&&(o=Ft(g));}var y=152===t.kind?ln(Se(t.parent.symbol)):void 0,h=y?y.localTypeParameters:Tr(t),v=Fr(t,u,y),b=t.type&&158===t.type.kind?Ar(t.type):void 0,x=e.hasRestParameter(t);if(!x&&e.isInJavaScriptFile(t)&&Ir(t)){x=!0;var S=p(3,"args");S.type=gv,S.isRestParameter=!0,r.push(S);}n.resolvedSignature=Pn(t,h,o,r,v,b,a,x,i);}return n.resolvedSignature}function Fr(t,n,r){if(n)return qa(t.parameters[0].type);if(r)return r;var i=e.getEffectiveReturnTypeNode(t);return i?qa(i):153!==t.kind||e.hasDynamicName(t)?e.nodeIsMissing(t.body)?Bh:void 0:Pt(e.getDeclarationOfKind(t.symbol,154))}function Ir(t){function n(t){if(!t)return!1;switch(t.kind){case 71:return"arguments"===t.escapedText&&e.isPartOfExpression(t);case 149:case 151:case 153:case 154:return 144===t.name.kind&&n(t.name);default:return!e.nodeStartsNewLexicalEnvironment(t)&&!e.isPartOfTypeNode(t)&&e.forEachChild(t,n)}}var r=k(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=n(t.body)),r.containsArgumentsReference}function Lr(t){if(!t)return e.emptyArray;for(var n=[],r=0;r0&&i.body){var a=t.declarations[r-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)break}n.push(Pr(i));}}return n}function Rr(e){var t=ue(e,e);if(t){var n=de(t);if(n)return zt(n)}return Bh}function Mr(e){if(e.thisParameter)return zt(e.thisParameter)}function Br(t){if(!t.resolvedReturnType){if(!st(t,3))return jh;var n=void 0;if(n=t.target?mo(Br(t.target),t.mapper):t.unionSignatures?sa(e.map(t.unionSignatures,Br),!0):gd(t.declaration),!lt()&&(n=Bh,Sh)){var r=t.declaration,i=e.getNameOfDeclaration(r);i?d(i,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,e.declarationNameToString(i)):d(r,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions);}t.resolvedReturnType=n;}return t.resolvedReturnType}function Kr(e){return!e.resolvedReturnType&&ct(e,3)>=0}function jr(t){if(t.hasRestParameter){var n=zt(e.lastOrUndefined(t.parameters));if(4&T(n)&&n.target===uv)return n.typeArguments[0]}return Bh}function Jr(t,n){n=Or(n,t.typeParameters,wr(t.typeParameters));var r=t.instantiations||(t.instantiations=e.createMap()),i=ti(n),a=r.get(i);return a||r.set(i,a=zr(t,n)),a}function zr(e,t){return so(e,Ya(e.typeParameters,t),!0)}function Ur(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=qr(e)):e}function qr(e){return so(e,Qa(e.typeParameters),!0)}function Vr(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=$r(e)):e}function $r(t){return Jr(t,e.map(t.typeParameters,function(e){return e.target&&!ar(e.target)?e.target:e}))}function Wr(t){if(!t.isolatedSignatureType){var n=152===t.declaration.kind||156===t.declaration.kind,r=we(16);r.members=mh,r.properties=e.emptyArray,r.callSignatures=n?e.emptyArray:[t],r.constructSignatures=n?[t]:e.emptyArray,t.isolatedSignatureType=r;}return t.isolatedSignatureType}function Gr(e){return e.members.get("__index")}function Hr(e,t){var n=1===t?133:136,r=Gr(e);if(r)for(var i=0,a=r.declarations;i1&&(t+=":"+a),r+=a;}return t}function ni(e,t){for(var n=0,r=0,i=e;ra.length)?(d(t,s===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Xe(i,void 0,1),s,a.length),jh):ri(i,e.concatenate(i.outerTypeParameters,Or(r,a,s,t)))}return t.typeArguments?(d(t,e.Diagnostics.Type_0_is_not_generic,Xe(i)),jh):i}function si(e,t){var n=vn(e),r=S(e),i=r.typeParameters,a=ti(t),o=r.instantiations.get(a);return o||r.instantiations.set(a,o=mo(n,Ya(i,Or(t,i,wr(i))))),o}function ci(t,n,r){var i=vn(n),a=S(n).typeParameters;if(a){var o=e.length(t.typeArguments),s=wr(a);return oa.length?(d(t,s===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Ge(n),s,a.length),jh):si(n,r)}return t.typeArguments?(d(t,e.Diagnostics.Type_0_is_not_generic,Ge(n)),jh):i}function ui(t,n){return t.typeArguments?(d(t,e.Diagnostics.Type_0_is_not_generic,Ge(n)),jh):vn(n)}function li(t){switch(t.kind){case 159:return t.typeName;case 201:var n=t.expression;if(e.isEntityNameExpression(n))return n}}function _i(e,t){return e?ce(e,t)||Rh:Rh}function di(e,t){var n=hi(e);if(t===Rh)return jh;var r=pi(e,t,n);if(r)return r;if(107455&t.flags&&fi(e)){var i=zt(t);if(i.symbol&&!Y_(i)){var a=pi(e,i.symbol,n);if(a)return a}return _i(li(e),793064),i}return ui(e,t)}function pi(t,n,r){return 96&n.flags?oi(t,n,r):524288&n.flags?ci(t,n,r):16&n.flags&&fi(t)&&(n.members||e.getJSDocClassTag(n.valueDeclaration))?X_(n):void 0}function fi(e){return 1048576&e.flags&&159===e.kind}function mi(t){if(e.isIdentifier(t.typeName)){if("Object"===t.typeName.escapedText){if(t.typeArguments&&2===t.typeArguments.length){var n=qa(t.typeArguments[0]),r=Xr(qa(t.typeArguments[1]),!1);if(n===Vh||n===$h)return Ie(void 0,mh,e.emptyArray,e.emptyArray,n===Vh&&r,n===$h&&r)}return Bh}switch(t.typeName.escapedText){case"String":return Vh;case"Number":return $h;case"Boolean":return Hh;case"Void":return Yh;case"Undefined":return Jh;case"Null":return Uh;case"Function":case"function":return cv;case"Array":case"array":return t.typeArguments&&t.typeArguments.length?void 0:gv;case"Promise":case"promise":return t.typeArguments&&t.typeArguments.length?void 0:fd(Bh)}}}function gi(e){var t=qa(e.type);return xh?sa([t,Uh]):t}function yi(e){var t=k(e);if(!t.resolvedType){var n=void 0,r=void 0,i=793064;fi(e)&&(r=mi(e),i|=107455),r||(r=di(e,n=_i(li(e),i))),t.resolvedSymbol=n,t.resolvedType=r;}return t.resolvedType}function hi(t){return e.map(t.typeArguments,qa)}function vi(e){var t=k(e);return t.resolvedType||(t.resolvedType=ws(fp(e.exprName))),t.resolvedType}function bi(t,n){function r(e){for(var t=0,n=e.declarations;t>1),o=e[a].id;if(o===i)return a;o>i?r=a-1:n=a+1;}return~n}function Zi(e,t){return Qi(e,t)>=0}function ea(e,t){var n=t.flags;if(65536&n)ta(e,t.types);else if(1&n)e.containsAny=!0;else if(!xh&&6144&n)2048&n&&(e.containsUndefined=!0),4096&n&&(e.containsNull=!0),2097152&n||(e.containsNonWideningType=!0);else if(!(8192&n)){2&n&&(e.containsString=!0),4&n&&(e.containsNumber=!0),96&n&&(e.containsStringOrNumberLiteral=!0);var r=e.length,i=r&&t.id>e[r-1].id?~r:Qi(e,t);i<0&&(32768&n&&16&t.objectFlags&&t.symbol&&8208&t.symbol.flags&&na(e,t)||e.splice(~i,0,t));}}function ta(e,t){for(var n=0,r=t;n0;)ra(t[--n],t)&&e.orderedRemoveItemAt(t,n);}function oa(t){for(var n=t.length;n>0;){var r=t[--n];(32&r.flags&&t.containsString||64&r.flags&&t.containsNumber||96&r.flags&&1048576&r.flags&&Zi(t,r.regularType))&&e.orderedRemoveItemAt(t,n);}}function sa(e,t,n,r){if(0===e.length)return Qh;if(1===e.length)return e[0];var i=[];return ta(i,e),i.containsAny?Bh:(t?aa(i):i.containsStringOrNumberLiteral&&oa(i),0===i.length?i.containsNull?i.containsNonWideningType?Uh:qh:i.containsUndefined?i.containsNonWideningType?Jh:zh:Qh:ca(i,n,r))}function ca(e,t,n){if(0===e.length)return Qh;if(1===e.length)return e[0];var r=ti(e),i=Oh.get(r);return i||(i=Ne(65536|ni(e,6144)),Oh.set(r,i),i.types=e,i.aliasSymbol=t,i.aliasTypeArguments=n),i}function ua(t){var n=k(t);return n.resolvedType||(n.resolvedType=sa(e.map(t.types,qa),!1,Oa(t),Pa(t))),n.resolvedType}function la(t,n){131072&n.flags?_a(t,n.types):1&n.flags?t.containsAny=!0:8192&n.flags?t.containsNever=!0:16&T(n)&&Bo(n)?t.containsEmptyObject=!0:!xh&&6144&n.flags||e.contains(t,n)||(32768&n.flags&&(t.containsObjectType=!0),65536&n.flags&&void 0===t.unionIndex&&(t.unionIndex=t.length),32768&n.flags&&16&n.objectFlags&&n.symbol&&8208&n.symbol.flags&&na(t,n)||t.push(n));}function _a(e,t){for(var n=0,r=t;n=n?tv:r}}function eo(e){return!!e.signature}function to(e){return e&&eo(e)?Ls(e.signature,2|e.flags,e.compareTypes,e.inferences):e}function no(e){return e}function ro(e,t){return function(n){return mo(e(n),t)}}function io(e,t,n){return function(r){return r===e?t:n(r)}}function ao(e){var t=Ne(16384);return t.symbol=e.symbol,t.target=e,t}function oo(t,n){return e.isIdentifierTypePredicate(t)?{kind:1,parameterName:t.parameterName,parameterIndex:t.parameterIndex,type:mo(t.type,n)}:{kind:0,type:mo(t.type,n)}}function so(t,n,r){var i,a;if(t.typeParameters&&!r){i=e.map(t.typeParameters,ao),n=ro(Ya(t.typeParameters,i),n);for(var o=0,s=i;on.parameters.length)return 0;t.typeParameters&&t.typeParameters!==n.typeParameters&&(t=b_(t,n=Vr(n),void 0,s));var c=-1,u=Mr(t);if(u&&u!==Yh){var l=Mr(n);if(l){if(!(x=s(u,l,!1)||s(l,u,a)))return a&&o(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;c&=x;}}for(var _=Lo(t),d=Lo(n),p=Ro(t,_,n,d),f=t.parameters,m=n.parameters,g=0;g0||hr(t,0).length>0||hr(t,1).length>0)&&E(n)&&!N(t,n)){if(i){var o=hr(t,0),d=hr(t,1);o.length>0&&_(Br(o[0]),n,!1)||d.length>0&&_(Br(d[0]),n,!1)?s(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Xe(t),Xe(n)):s(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Xe(t),Xe(n));}return 0}var m=0,y=B,x=$;return $=!1,65536&t.flags?m=r===Pb?v(t,n,i&&!(8190&t.flags)):b(t,n,i&&!(8190&t.flags)):(65536&n.flags?m=g(t,n,i&&!(8190&t.flags)&&!(8190&n.flags)):131072&n.flags?($=!0,m=h(t,n,i)):131072&t.flags&&(m=v(t,n,!1)),!m&&(1032192&t.flags||1032192&n.flags)&&(m=S(t,n,i))&&(B=y)),$=x,!m&&i&&(32768&t.flags&&8190&n.flags?u(t,n):t.symbol&&32768&t.flags&&sv===t&&s(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead),c(a,t,n)),m}function p(e,t){var n;return 32768&e.flags&&32768&t.flags?S(e,t,!1):(65536&e.flags&&65536&t.flags||131072&e.flags&&131072&t.flags)&&(n=m(e,t))&&(n&=m(t,e))?n:0}function f(t,n,a){if(Ld(n,32768)&&!(512&T(n))){var o=!!(33554432&t.flags);if((r===Ob||r===Pb)&&(Rc(sv,n)||!o&&Bo(n)))return!1;for(var c=function(r){if(!zl(n,r.escapedName,o)){if(a)if(e.Debug.assert(!!i),e.isJsxAttributes(i)||e.isJsxOpeningLikeElement(i))s(e.Diagnostics.Property_0_does_not_exist_on_type_1,Ge(r),Xe(n));else{var c=t.symbol&&e.firstOrUndefined(t.symbol.declarations);r.valueDeclaration&&e.findAncestor(r.valueDeclaration,function(e){return e===c})&&(i=r.valueDeclaration),s(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ge(r),Xe(n));}return{value:!0}}},u=0,l=er(t);u0&&e.every(n.properties,function(e){return!!(16777216&e.flags)})}return!!(131072&t.flags)&&e.every(t.types,E)}function N(e,t){for(var n=!!(33554432&e.flags),r=0,i=rr(e);rt.id){var r=e;e=t,t=r;}if(qo(e)&&qo(t)){var i=[];return Vo(e,i)+","+Vo(t,i)}return e.id+","+t.id}function Wo(t,n){if(!(6&e.getCheckFlags(t)))return n(t);for(var r=0,i=t.containingType.types;r=5&&32768&e.flags){var r=e.symbol;if(r)for(var i=0,a=0;a=5)return!0}}return!1}function es(e,t){return 0!==ts(e,t,So)}function ts(t,n,r){if(t===n)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(n)))return 0;if(i){if(vm(t)!==vm(n))return 0}else if((16777216&t.flags)!=(16777216&n.flags))return 0;return Cd(t)!==Cd(n)?0:r(zt(t),zt(n))}function ns(e,t,n){if(e.parameters.length===t.parameters.length&&e.minArgumentCount===t.minArgumentCount&&e.hasRestParameter===t.hasRestParameter)return!0;var r=e.hasRestParameter?1:0,i=t.hasRestParameter?1:0;return!!(n&&e.minArgumentCount<=t.minArgumentCount&&(r>i||r===i&&e.parameters.length>=t.parameters.length))}function rs(t,n,r,i,a,o){if(t===n)return-1;if(!ns(t,n,r))return 0;if(e.length(t.typeParameters)!==e.length(n.typeParameters))return 0;t=Ur(t),n=Ur(n);var s=-1;if(!i){var c=Mr(t);if(c){var u=Mr(n);if(u){if(!(d=o(c,u)))return 0;s&=d;}}}for(var l=n.parameters.length,_=0;_=e.parameters.length-1}function as(e){for(var t,n=0,r=e;n=2||0==(34&n.flags)||260===n.valueDeclaration.parent.kind)){for(var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration),i=gu(t.parent,r),a=r,o=!1;a&&!e.nodeStartsNewLexicalEnvironment(a);){if(e.isIterationStatement(a,!1)){o=!0;break}a=a.parent;}o&&(i&&(k(a).flags|=65536),214===r.kind&&e.getAncestor(n.valueDeclaration,227).parent===r&&hu(t,r)&&(k(n.valueDeclaration).flags|=2097152),k(n.valueDeclaration).flags|=262144),i&&(k(n.valueDeclaration).flags|=131072);}}function hu(t,n){for(var r=t;185===r.parent.kind;)r=r.parent;var i=!1;if(e.isAssignmentTarget(r))i=!0;else if(192===r.parent.kind||193===r.parent.kind){var a=r.parent;i=43===a.operator||44===a.operator;}return!!i&&!!e.findAncestor(r,function(e){return e===n?"quit":e===n.statement})}function vu(e,t){k(e).flags|=2,149===t.kind||152===t.kind?k(t.parent).flags|=4:k(t).flags|=4;}function bu(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,bu)}function xu(e){var t=k(e);return void 0===t.hasSuperCall&&(t.superCall=bu(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function Su(e){return nn(vn(ke(e)))===qh}function ku(t,n,r){var i=n.parent;if(e.getClassExtendsHeritageClauseElement(i)&&!Su(i)){var a=xu(n);(!a||a.end>t.pos)&&d(t,r);}}function Tu(t){var n=e.getThisContainer(t,!0),r=!1;switch(152===n.kind&&ku(t,n,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),187===n.kind&&(n=e.getThisContainer(n,!1),r=yh<2),n.kind){case 233:d(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 232:d(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 152:Du(t,n)&&d(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 149:case 148:e.hasModifier(n,32)&&d(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 144:d(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);}if(r&&vu(t,n),e.isFunctionLike(n)&&(!Ru(t)||e.getThisParameter(n))){if(186===n.kind&&194===n.parent.kind&&3===e.getSpecialPropertyAssignmentKind(n.parent)){var i=fp(n.parent.left.expression.expression).symbol;if(i&&i.members&&16&i.flags)return X_(i)}var a=It(n)||Ou(n);if(a)return a}if(e.isClassLike(n.parent)){var o=ke(n.parent);return iu(t,s=e.hasModifier(n,32)?zt(o):vn(o).thisType)}if(e.isInJavaScriptFile(t)){var s=Cu(n);if(s&&s!==jh)return s}return kh&&d(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),Bh}function Cu(t){var n=e.getJSDocType(t);if(n&&273===n.kind){var r=n;if(r.parameters.length>0&&r.parameters[0].name&&"this"===r.parameters[0].name.escapedText)return qa(r.parameters[0].type)}}function Du(t,n){return!!e.findAncestor(t,function(e){return e===n?"quit":146===e.kind})}function Eu(t){var n=181===t.parent.kind&&t.parent.expression===t,r=e.getSuperContainer(t,!0),i=!1;if(!n)for(;r&&187===r.kind;)r=e.getSuperContainer(r,!0),i=yh<2;var a=0;if(!function(t){return!(!t||(n?152!==t.kind:!e.isClassLike(t.parent)&&178!==t.parent.kind||(e.hasModifier(t,32)?151!==t.kind&&150!==t.kind&&153!==t.kind&&154!==t.kind:151!==t.kind&&150!==t.kind&&153!==t.kind&&154!==t.kind&&149!==t.kind&&148!==t.kind&&152!==t.kind)))}(r)){var o=e.findAncestor(t,function(e){return e===r?"quit":144===e.kind});return o&&144===o.kind?d(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):n?d(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(e.isClassLike(r.parent)||178===r.parent.kind)?d(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):d(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),jh}if(n||152!==r.kind||ku(t,r,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),a=e.hasModifier(r,32)||n?512:256,k(t).flags|=a,151===r.kind&&e.hasModifier(r,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?k(r).flags|=4096:k(r).flags|=2048),i&&vu(t.parent,r),178===r.parent.kind)return yh<2?(d(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),jh):Bh;var s=r.parent,c=vn(ke(s)),u=c&&rn(c)[0];return u?152===r.kind&&Du(t,r)?(d(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),jh):512===a?nn(c):Nn(u,c.thisType):(e.getClassExtendsHeritageClauseElement(s)||d(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),jh)}function Nu(e){return 151!==e.kind&&153!==e.kind&&154!==e.kind||178!==e.parent.kind?186===e.kind&&261===e.parent.kind?e.parent.parent:void 0:e.parent}function Au(e){return 4&T(e)&&e.target===mv?e.typeArguments[0]:void 0}function wu(t){return jc(t,function(t){return 131072&t.flags?e.forEach(t.types,Au):Au(t)})}function Ou(t){if(187!==t.kind){if(vo(t)){var n=il(t);if(n){var r=n.thisParameter;if(r)return zt(r)}}if(kh||e.isInJavaScriptFile(t)){var i=Nu(t);if(i){for(var a=Xu(i),o=i,s=a;s;){var c=wu(s);if(c)return mo(c,Qu(i));if(261!==o.parent.kind)break;s=Xu(o=o.parent.parent);}return a?Ss(a):ip(i)}if(194===t.parent.kind&&58===t.parent.operatorToken.kind){var u=t.parent.left;if(179===u.kind||180===u.kind)return ip(u.expression)}}}}function Pu(t){var n=t.parent;if(vo(n)){var r=e.getImmediatelyInvokedFunctionExpression(n);if(r&&r.arguments){var i=e.indexOf(n.parameters,t);if(t.dotDotDotToken){for(var a=[],o=i;o=0)return cd(k(t).resolvedSignature===zv?zv:W_(t),i)}function Ku(e,t){if(183===e.parent.kind)return Bu(e.parent,t)}function ju(t){var n=t.parent,r=n.operatorToken.kind;if(e.isAssignmentOperator(r)){if(0!==e.getSpecialPropertyAssignmentKind(n))return;if(t===n.right)return dp(n.left)}else{if(54===r){var i=Yu(n);return i||t!==n.right||(i=dp(n.left)),i}if((53===r||26===r)&&t===n.right)return Yu(n)}}function Ju(e,t){return jc(e,function(e){var n=229376&e.flags?gr(e,t):void 0;return n?zt(n):void 0})}function zu(e,t){return jc(e,function(e){return br(e,t)})}function Uu(t){return!!(65536&t.flags?e.forEach(t.types,ls):ls(t))}function qu(t){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!tg(t))return Vu(t)}function Vu(t){var n=Xu(t.parent);if(n){if(!e.hasDynamicName(t)){var r=Ju(n,ke(t).escapedName);if(r)return r}return cl(t.name)&&zu(n,1)||zu(n,0)}}function $u(t){var n=t.parent,r=Xu(n);if(r)return Ju(r,""+e.indexOf(n.elements,t))||zu(r,1)||Xf(r,void 0,!1,!1,!1)}function Wu(e){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?Yu(t):void 0}function Gu(t){var n=Yu(e.isJsxAttributeLike(t.parent)?t.parent.parent:t.parent.openingElement.attributes);if(n&&!ft(n)){if(e.isJsxAttribute(t.parent))return pt(n,t.parent.name.escapedText);if(249===t.parent.kind){var r=El();return r&&""!==r?pt(n,r):Bh}return n}}function Hu(t){var n=Yu(t.parent);if(e.isJsxAttribute(t)){if(!n||ft(n))return;return pt(n,t.name.escapedText)}return n}function Xu(e){var t=Yu(e);return t&&dr(t)}function Yu(t){if(!tg(t)){if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 226:case 146:case 149:case 148:case 176:return Fu(t);case 187:case 219:return Iu(t);case 197:return Lu(n);case 181:case 182:return Bu(n,t);case 184:case 202:return qa(n.type);case 194:return ju(t);case 261:case 262:return Vu(n);case 263:return Xu(n.parent);case 177:return $u(t);case 195:return Wu(t);case 205:return e.Debug.assert(196===n.parent.kind),Ku(n.parent,t);case 185:return Yu(n);case 256:return Gu(n);case 253:case 255:return Hu(n);case 251:case 250:return Ll(n)}}}function Qu(t){return(t=e.findAncestor(t,function(e){return!!e.contextualMapper}))?t.contextualMapper:no}function Zu(e,t){var n=yr(e,0);if(1===n.length){var r=n[0];if(!el(r,t))return r}}function el(t,n){for(var r=0;r0&&(s=Fa(s,r()),o=[],a=e.createSymbolTable(),g=!1,y=!1,f=0),!ml(C=fp(x.expression)))return d(x,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),jh;s=Fa(s,C),v=b+1;continue}e.Debug.assert(153===x.kind||154===x.kind),Gm(x);}e.hasDynamicName(x)?cl(x.name)?y=!0:g=!0:a.set(S.escapedName,S),o.push(S);}if(l)for(var E=0,N=rr(u);E0&&(s=Fa(s,r())),32768&s.flags&&(s.flags|=c,s.flags|=1048576,s.objectFlags|=128,s.symbol=t.symbol),s):r()}function ml(t){return!!(16783361&t.flags||32768&t.flags&&!Qn(t)||196608&t.flags&&!e.forEach(t.types,function(e){return!ml(e)}))}function gl(e){return Jl(e),Bl()||Bh}function yl(e){return Jl(e.openingElement),vl(e.closingElement.tagName)?kl(e.closingElement):fp(e.closingElement.tagName),Bl()||Bh}function hl(e){return e.indexOf("-")<0}function vl(t){switch(t.kind){case 179:case 99:return!1;case 71:return e.isIntrinsicJsxName(t.escapedText);default:e.Debug.fail();}}function bl(t,n,r){function i(t,n){var r=Ie(t,n,e.emptyArray,e.emptyArray,void 0,void 0);return r.flags|=37748736,r.objectFlags|=128,r}for(var a,o=t.attributes,s=e.createSymbolTable(),c=tv,u=[],l=!1,_=!1,f=El(),m=0,g=o.properties;m0&&(c=Fa(c,i(o.symbol,s)),u=[],s=e.createSymbolTable()),ft(v=fp(y.expression))&&(l=!0),ml(v)?c=Fa(c,v):a=a?da([a,v]):v;}if(!l){c!==tv&&(u.length>0&&(c=Fa(c,i(o.symbol,s))),u=rr(c)),s=e.createSymbolTable();for(var x=0,S=u;x0){for(var C=[],D=0,E=T.children;D1&&d(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t));}}function Dl(){return Db||(Db=!0,hb=Cl(Ab.ElementAttributesPropertyNameContainer)),hb}function El(){return Eb||(Eb=!0,vb=Cl(Ab.ElementChildrenAttributeNameContainer)),vb}function Nl(e){if(e){if(131072&e.flags){for(var t=[],n=0,r=e.types;n0))d(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(Dl()));else if(Ao(r,n,t.attributes.properties.length>0?t.attributes:t)&&!ft(r)&&!ft(n))for(var i=0,a=t.attributes.properties;i30)){t=t.toLowerCase();for(var u=0,l=n;ui)continue;p<3?(c=!0,s=_):p=m&&o.length<=f))return!1;if(c>=0)return is(r,c)||c>=r.minArgumentCount;if(!r.hasRestParameter&&a>r.parameters.length)return!1;var g=a>=r.minArgumentCount;return s||g}function v_(e){if(32768&e.flags){var t=Zn(e);if(1===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo)return t.callSignatures[0]}}function b_(e,t,n,r){var i=Ls(e,1,r);return Is(t,e,function(e,t){Us(i.inferences,mo(e,n||no),t);}),n||Us(i.inferences,Br(t),Br(e),4),Jr(e,Hs(i))}function x_(t,n,r,i,a){for(var o=0,s=a.inferences;o0?[t.attributes]:e.emptyArray:t.arguments||e.emptyArray}function E_(e,t,n){if(147!==e.kind)return t.length;switch(e.parent.kind){case 229:case 199:return 1;case 149:return 2;case 151:case 153:case 154:return 0===yh?2:n.parameters.length>=3?3:2;case 146:return 3}}function N_(t){if(229===t.kind)return zt(n=ke(t));if(146===t.kind&&152===(t=t.parent).kind){var n=ke(t);return zt(n)}return 149===t.kind||151===t.kind||153===t.kind||154===t.kind?bg(t):(e.Debug.fail("Unsupported decorator target."),jh)}function A_(t){if(229===t.kind)return e.Debug.fail("Class decorators should not have a second synthetic argument."),jh;if(146===t.kind&&152===(t=t.parent).kind)return Bh;if(149===t.kind||151===t.kind||153===t.kind||154===t.kind){var n=t;switch(n.name.kind){case 71:return Ka(e.unescapeLeadingUnderscores(n.name.escapedText));case 8:case 9:return Ka(n.name.text);case 144:var r=dl(n.name);return Rd(r,512)?r:Vh;default:return e.Debug.fail("Unsupported property name."),jh}}return e.Debug.fail("Unsupported decorator target."),jh}function w_(t){return 229===t.kind?(e.Debug.fail("Class decorators should not have a third synthetic argument."),jh):146===t.kind?$h:149===t.kind?(e.Debug.fail("Property decorators should not have a third synthetic argument."),jh):151===t.kind||153===t.kind||154===t.kind?Ji(gg(t)):(e.Debug.fail("Unsupported decorator target."),jh)}function O_(t,n){return 0===n?N_(t.parent):1===n?A_(t.parent):2===n?w_(t.parent):(e.Debug.fail("Decorators should not have a fourth synthetic argument."),jh)}function P_(e,t){return 147===e.kind?O_(e,t):0===t&&183===e.kind?Di():void 0}function F_(e,t,n){if(147!==e.kind&&(0!==n||183!==e.kind))return t[n]}function I_(e,t,n){return 147===e.kind?e.expression:0===t&&183===e.kind?e.template:n}function L_(t,n,r,i){function a(n,r,i){if(void 0===i&&(i=!1),y=void 0,h=void 0,f){if(c=n[0],!h_(t,p,c,i))return;return T_(t,p,c,r,d,!1)?c:void(y=c)}for(var a=0;a0?d[e.indexOf(d,!0)]=!1:d=void 0;}}}var o,s=183===t.kind,u=147===t.kind,l=e.isJsxOpeningLikeElement(t);s||u||l||(o=t.typeArguments,97!==t.expression.kind&&e.forEach(o,Wm));var _=r||[];if(g_(n,_),!_.length)return mb.add(e.createDiagnosticForNode(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),m_(t);var d,p=D_(t),f=1===_.length&&!_[0].typeParameters,m=0;if(!u&&!f)for(var g=s?1:0;g1&&(v=a(_,wb,b)),v||(v=a(_,Ob,b)),v)return v;if(y){if(l)return y;T_(t,p,y,Ob,void 0,!0);}else if(h){var x=t.typeArguments;S_(h,x,e.map(x,qa),!0,i);}else if(o&&e.every(n,function(t){return e.length(t.typeParameters)!==o.length})){for(var S=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,T=0,C=n;T-1,O=A?S:S0);var I=R_(_,void 0===Eh?p.length:Eh),L=_[I],R=L.typeParameters;if(R&&p_(t)&&t.typeArguments){for(var M=t.typeArguments.map(gg);M.length>R.length;)M.pop();for(;M.length=t)return i;a.parameters.length>r&&(r=a.parameters.length,n=i);}return n}function M_(t,n){if(97===t.expression.kind){var r=Eu(t.expression);if(r!==jh){var i=e.getClassExtendsHeritageClauseElement(e.getContainingClass(t));if(i)return L_(t,tn(r,i.typeArguments,i),n)}return f_(t)}var a=Hl(t.expression);if(a===Zh)return Uv;var o=dr(a);if(o===jh)return m_(t);var s=hr(o,0),c=hr(o,1);return B_(a,o,s.length,c.length)?(a!==jh&&t.typeArguments&&d(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),f_(t)):s.length?L_(t,s,n):(c.length?d(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Xe(a)):d(t,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Xe(o)),m_(t))}function B_(e,t,n,r){return!!ft(e)||!!(ft(t)&&16384&e.flags)||!n&&!r&&!(65536&e.flags)&&Co(e,cv)}function K_(t,n){if(t.arguments&&yh<1){var r=y_(t.arguments);r>=0&&d(t.arguments[r],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher);}var i=Hl(t.expression);if(i===Zh)return Uv;if((i=dr(i))===jh)return m_(t);var a=i.symbol&&bm(i.symbol);if(a&&e.hasModifier(a,128))return d(t,e.Diagnostics.Cannot_create_an_instance_of_the_abstract_class_0,e.declarationNameToString(e.getNameOfDeclaration(a))),m_(t);if(ft(i))return t.typeArguments&&d(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),f_(t);var o=hr(i,1);if(o.length)return j_(t,o[0])?L_(t,o,n):m_(t);var s=hr(i,0);if(s.length){var c=L_(t,s,n);return G_(c.declaration)||Br(c)===Yh||d(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Mr(c)===Yh&&d(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void),c}return d(t,e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature),m_(t)}function j_(t,n){if(!n||!n.declaration)return!0;var r=n.declaration,i=e.getSelectedModifierFlags(r,24);if(!i)return!0;var a=bm(r.parent.symbol),o=vn(r.parent.symbol);if(!cg(t,a)){var s=e.getContainingClass(t);if(s)for(var c=rn(gg(s));c.length;){var u=c[0];if(16&i&&u.symbol===r.parent.symbol)return!0;c=rn(u);}return 8&i&&d(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Xe(o)),16&i&&d(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Xe(o)),!1}return!0}function J_(t,n){var r=fp(t.tag),i=dr(r);if(i===jh)return m_(t);var a=hr(i,0),o=hr(i,1);return B_(r,i,a.length,o.length)?f_(t):a.length?L_(t,a,n):(d(t,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Xe(i)),m_(t))}function z_(t){switch(t.parent.kind){case 229:case 199:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 146:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 149:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 151:case 153:case 154:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression}}function U_(t,n){var r=fp(t.expression),i=dr(r);if(i===jh)return m_(t);var a=hr(i,0),o=hr(i,1);if(B_(r,i,a.length,o.length))return f_(t);var s=z_(t);if(!a.length){var c=void 0;return c=e.chainDiagnosticMessages(c,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Xe(i)),c=e.chainDiagnosticMessages(c,s),mb.add(e.createDiagnosticForNodeFromMessageChain(t,c)),m_(t)}return L_(t,a,n,s)}function q_(t,n,r){return e.Debug.assert(!(65536&n.flags)),V_(t,n,r)}function V_(e,t,n){if(65536&t.flags){for(var r=void 0,i=0,a=t.types;i0)return L_(e,s,n)}function $_(t,n){switch(t.kind){case 181:return M_(t,n);case 182:return K_(t,n);case 183:return J_(t,n);case 147:return U_(t,n);case 251:case 250:return V_(t,fp(t.tagName),n)}e.Debug.fail("Branch in 'resolveSignature' should be unreachable.");}function W_(e,t){var n=k(e),r=n.resolvedSignature;if(r&&r!==zv&&!t)return r;n.resolvedSignature=zv;var i=$_(e,t);return n.resolvedSignature=Wv===Gv?i:r,i}function G_(t){if(t&&e.isInJavaScriptFile(t)){if(e.getJSDocClassTag(t))return!0;var n=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?ke(t):e.isVariableDeclaration(t)&&e.isFunctionExpression(t.initializer)?ke(t.initializer):void 0;return n&&void 0!==n.members}return!1}function H_(t){if(e.isDeclarationOfFunctionOrClassExpression(t)&&(t=ke(t.valueDeclaration.initializer)),G_(t.valueDeclaration))return X_(t);if(3&t.flags){var n=zt(t);if(n.symbol&&!Y_(n)&&G_(n.symbol.valueDeclaration))return X_(n.symbol)}}function X_(t){var n=S(t);return n.inferredClassType||(n.inferredClassType=Ie(t,t.members||mh,e.emptyArray,e.emptyArray,void 0,void 0)),n.inferredClassType}function Y_(e){return e.symbol&&16&T(e)&&S(e.symbol).inferredClassType===e}function Q_(t){yy(t,t.typeArguments)||vy(t,t.arguments);var n=W_(t);if(97===t.expression.kind)return Yh;if(182===t.kind){var r=n.declaration;if(r&&152!==r.kind&&156!==r.kind&&161!==r.kind&&!e.isJSDocConstructSignature(r)){var i=71===t.expression.kind?Xs(t.expression):fp(t.expression).symbol,a=i&&H_(i);return a||(Sh&&d(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Bh)}}return e.isInJavaScriptFile(t)&&td(t)?Rr(t.arguments[0]):Br(n)}function Z_(t){if(vy(t,t.arguments)||ih(t),0===t.arguments.length)return md(t,Bh);for(var n=t.arguments[0],r=ip(n),i=1;i0?cd(e,0):Qh}function ld(t,n,r){for(var i=t.parameters.length-(t.hasRestParameter?1:0),a=0;a=0)if(n.parameters[r.parameterIndex].dotDotDotToken)d(i,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else{var a=e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);Ao(r.type,gg(n.parameters[r.parameterIndex]),t.type,void 0,a);}else if(i){for(var o=!1,s=0,c=n.parameters;s0&&n.declarations[0]!==t)return}var r=Gr(ke(t));if(r)for(var i=!1,a=!1,o=0,s=r.declarations;o=0)return void(n&&d(n,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));fb.push(t.id);var l=Yp(u,n,r);if(fb.pop(),!l)return;return i.awaitedTypeOfType=l}var _=pt(t,"then");if(!(_&&hr(_,0).length>0))return i.awaitedTypeOfType=t;n&&(e.Debug.assert(!!r),d(n,r));}function Qp(t){var n=e.getEffectiveReturnTypeNode(t),r=qa(n);if(yh>=2){if(r===jh)return jh;var i=Ai(!0);if(i!==iv&&!Ut(r,i))return d(n,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),jh}else{if(ef(n),r===jh)return jh;var a=e.getEntityNameFromTypeNode(n);if(void 0===a)return d(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Xe(r)),jh;var o=ce(a,107455,!0),s=o?zt(o):jh;if(s===jh)return 71===a.kind&&"Promise"===a.escapedText&&qt(r)===Ai(!1)?d(n,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):d(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)),jh;var c=Oi(!0);if(c===tv)return d(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)),jh;if(!Ao(s,c,n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return jh;var u=a&&Lm(a),l=D(t.locals,u.escapedText,107455);if(l)return d(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.unescapeLeadingUnderscores(u.escapedText),e.entityNameToString(a)),jh}return Xp(r,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function Zp(t){var n=Br(W_(t));if(!(1&n.flags)){var r,i,a=z_(t);switch(t.parent.kind){case 229:r=sa([zt(ke(t.parent)),Yh]);break;case 146:r=Yh,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 149:r=Yh,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 151:case 153:case 154:r=sa([Ji(gg(t.parent)),Yh]);}Ao(n,r,t,a,i);}}function ef(t){tf(t&&e.getEntityNameFromTypeNode(t));}function tf(e){var t=e&&Lm(e),n=t&&A(t,t.escapedText,2097152|(71===e.kind?793064:1920),void 0,void 0);n&&2097152&n.flags&&De(n)&&!Fg(re(n))&&ae(n);}function nf(t){var n=rf(t);n&&e.isEntityName(n)&&tf(n);}function rf(t){if(t)switch(t.kind){case 167:case 166:for(var n=void 0,r=0,i=t.types;r=e.ModuleKind.ES2015)&&(kf(t,n,"require")||kf(t,n,"exports"))&&(233!==t.kind||1===e.getModuleInstanceState(t))){var r=_t(t);265===r.kind&&e.isExternalOrCommonJsModule(r)&&d(n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(n),e.declarationNameToString(n));}}function wf(t,n){if(!(yh>=4)&&kf(t,n,"Promise")&&(233!==t.kind||1===e.getModuleInstanceState(t))){var r=_t(t);265===r.kind&&e.isExternalOrCommonJsModule(r)&&1024&r.flags&&d(n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(n),e.declarationNameToString(n));}}function Of(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(226!==t.kind||t.initializer)){var n=ke(t);if(1&n.flags){if(!e.isIdentifier(t.name))throw e.Debug.fail();var r=A(t,t.name.escapedText,3,void 0,void 0);if(r&&r!==n&&2&r.flags&&3&$l(r)){var i=e.getAncestor(r.valueDeclaration,227),a=208===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(207===a.kind&&e.isFunctionLike(a.parent)||234===a.kind||233===a.kind||265===a.kind)){var o=Ge(r);d(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o);}}}}}function Pf(t){function n(i){if(!e.isTypeNode(i)&&!e.isDeclarationName(i)){if(179===i.kind)return n(i.expression);if(71!==i.kind)return e.forEachChild(i,n);var a=A(i,i.escapedText,2204607,void 0,void 0);if(a&&a!==Rh&&a.valueDeclaration)if(a.valueDeclaration!==t){if(e.getEnclosingBlockScopeContainer(a.valueDeclaration)===r){if(146===a.valueDeclaration.kind||176===a.valueDeclaration.kind){if(a.valueDeclaration.pos1)return $y(t,e.Diagnostics.Modifiers_cannot_appear_here)}}function jf(e){th(e),fp(e.expression);}function Jf(t){th(t),fp(t.expression),Wm(t.thenStatement),209===t.thenStatement.kind&&d(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),Wm(t.elseStatement);}function zf(e){th(e),Wm(e.statement),fp(e.expression);}function Uf(e){th(e),fp(e.expression),Wm(e.statement);}function qf(t){th(t)||t.initializer&&227===t.initializer.kind&&Jy(t.initializer),t.initializer&&(227===t.initializer.kind?e.forEach(t.initializer.declarations,Rf):fp(t.initializer)),t.condition&&fp(t.condition),t.incrementor&&fp(t.incrementor),Wm(t.statement),t.locals&&_f(t);}function Vf(t){if(Ay(t),216===t.kind&&(t.awaitModifier?2==(6&e.getFunctionFlags(e.getContainingFunction(t)))&&yh<5&&Zg(t,16384):gh.downlevelIteration&&yh<2&&Zg(t,256)),227===t.initializer.kind)Wf(t);else{var n=t.initializer,r=Gf(t.expression,t.awaitModifier);if(177===n.kind||178===n.kind)Vd(n,r||jh);else{var i=fp(n);Nd(n,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access),r&&Ao(r,i,n,void 0);}}Wm(t.statement),t.locals&&_f(t);}function $f(t){Ay(t);var n=Hl(t.expression);if(227===t.initializer.kind){var r=t.initializer.declarations[0];r&&e.isBindingPattern(r.name)&&d(r.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Wf(t);}else{var i=t.initializer,a=fp(i);177===i.kind||178===i.kind?d(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Co(ha(n),a)?Nd(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access):d(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any);}Rd(n,17317888)||d(t.expression,e.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter),Wm(t.statement),t.locals&&_f(t);}function Wf(e){var t=e.initializer;t.declarations.length>=1&&Rf(t.declarations[0]);}function Gf(e,t){return Hf(Hl(e),e,!0,void 0!==t)}function Hf(e,t,n,r){return ft(e)?e:Xf(e,t,n,r,!0)||Bh}function Xf(t,n,r,i,a){var o=yh>=2,s=!o&&gh.downlevelIteration;if(o||s||i){var c=Yf(t,o?n:void 0,i,!0,a);if(c||o)return c}var u=t,l=!1,_=!1;if(r){if(65536&u.flags){var p=t.types,f=e.filter(p,function(e){return!(262178&e.flags)});f!==p&&(u=sa(f,!0));}else 262178&u.flags&&(u=Qh);if((_=u!==t)&&(yh<1&&n&&(d(n,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),l=!0),8192&u.flags))return Vh}if(!us(u))return n&&!l&&d(n,!r||_?s?e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:e.Diagnostics.Type_0_is_not_an_array_type:s?e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,Xe(u)),_?Vh:void 0;var m=Sr(u,1);return _&&m?262178&m.flags?Vh:sa([m,Vh],!0):m}function Yf(t,n,r,i,a){if(!ft(t))return jc(t,function(t){var o=t;if(r){if(o.iteratedTypeOfAsyncIterable)return o.iteratedTypeOfAsyncIterable;if(Ut(t,Pi(!1))||Ut(t,Ii(!1)))return o.iteratedTypeOfAsyncIterable=t.typeArguments[0]}if(i){if(o.iteratedTypeOfIterable)return o.iteratedTypeOfIterable;if(Ut(t,Li(!1))||Ut(t,Mi(!1)))return o.iteratedTypeOfIterable=t.typeArguments[0]}var s=r&&pt(t,e.getPropertyNameForKnownSymbolName("asyncIterator")),c=s||i&&pt(t,e.getPropertyNameForKnownSymbolName("iterator"));if(!ft(c)){var u=c&&hr(c,0);if(e.some(u)){var l=Qf(sa(e.map(u,Br),!0),n,!!s);return a&&n&&l&&Ao(t,s?zi(l):qi(l),n),s?o.iteratedTypeOfAsyncIterable=l:o.iteratedTypeOfIterable=l}n&&(d(n,r?e.Diagnostics.Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator),n=void 0);}})}function Qf(t,n,r){if(!ft(t)){var i=t;if(r?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator)return r?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator;if(Ut(t,(r?Fi:Ri)(!1)))return r?i.iteratedTypeOfAsyncIterator=t.typeArguments[0]:i.iteratedTypeOfIterator=t.typeArguments[0];var a=pt(t,"next");if(!ft(a)){var o=a?hr(a,0):e.emptyArray;if(0!==o.length){var s=sa(e.map(o,Br),!0);if(!(ft(s)||r&&(s=Gp(s,n,e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property),ft(s)))){var c=s&&pt(s,"value");if(c)return r?i.iteratedTypeOfAsyncIterator=c:i.iteratedTypeOfIterator=c;n&&d(n,r?e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:e.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property);}}else n&&d(n,r?e.Diagnostics.An_async_iterator_must_have_a_next_method:e.Diagnostics.An_iterator_must_have_a_next_method);}}}function Zf(e,t){if(!ft(e))return Yf(e,void 0,t,!t,!1)||Qf(e,void 0,t)}function em(e){th(e)||Ly(e);}function tm(t){return 153===t.kind&&void 0!==e.getEffectiveSetAccessorTypeAnnotationNode(e.getDeclarationOfKind(t.symbol,154))}function nm(t,n){var r=2==(3&e.getFunctionFlags(t))?Hp(n):n;return r&&Ld(r,1025)}function rm(t){th(t)||e.getContainingFunction(t)||$y(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body);var n=e.getContainingFunction(t);if(n){var r=Br(Pr(n));if(xh||t.expression||8192&r.flags){var i=t.expression?ip(t.expression):Jh,a=e.getFunctionFlags(n);if(1&a)return;if(154===n.kind)t.expression&&d(t,e.Diagnostics.Setters_cannot_return_a_value);else if(152===n.kind)t.expression&&!Ao(i,r,t)&&d(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(e.getEffectiveReturnTypeNode(n)||tm(n))if(2&a){var o=Hp(r),s=Xp(i,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);o&&Ao(s,o,t);}else Ao(i,r,t);}else 152!==n.kind&&gh.noImplicitReturns&&!nm(n,r)&&d(t,e.Diagnostics.Not_all_code_paths_return_a_value);}}function im(t){th(t)||16384&t.flags&&$y(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),fp(t.expression);var n=e.getSourceFileOfNode(t);if(!Vy(n)){var r=e.getSpanOfTokenAtPosition(n,t.pos).start;Wy(n,r,t.statement.pos-r,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any);}}function am(t){th(t);var n,r=!1,i=fp(t.expression),a=ds(i);e.forEach(t.caseBlock.clauses,function(o){if(258===o.kind&&!r)if(void 0===n)n=o;else{var s=e.getSourceFileOfNode(t),u=e.skipTrivia(s.text,o.pos);Wy(s,u,(o.statements.length>0?o.statements[0].pos:o.end)-u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),r=!0;}if(c&&257===o.kind){var l=o,_=fp(l.expression),d=ds(_),p=i;d&&a||(_=d?ps(_):_,p=ps(i)),Gd(p,_)||wo(_,p,l.expression,void 0);}e.forEach(o.statements,Wm);}),t.caseBlock.locals&&_f(t.caseBlock);}function om(t){th(t)||e.findAncestor(t.parent,function(n){if(e.isFunctionLike(n))return"quit";if(222===n.kind&&n.label.escapedText===t.label.escapedText){var r=e.getSourceFileOfNode(t);return Gy(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNodeFromSourceText(r.text,t.label)),!0}}),Wm(t.statement);}function sm(t){th(t)||void 0===t.expression&&rh(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&fp(t.expression);}function cm(t){th(t),xf(t.tryBlock);var n=t.catchClause;if(n){if(n.variableDeclaration)if(n.variableDeclaration.type)$y(n.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(n.variableDeclaration.initializer)$y(n.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var r=n.block.locals;r&&e.forEachKey(n.locals,function(t){var n=r.get(t);n&&0!=(2&n.flags)&&Gy(n.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t);});}xf(n.block);}t.finallyBlock&&xf(t.finallyBlock);}function um(t){function n(t,n,r,i,a,o){if(a){var s=t.valueDeclaration;if(1!==o||(s?cl(e.getNameOfDeclaration(s)):_l(t.escapedName))){var c;!s||194!==s.kind&&144!==e.getNameOfDeclaration(s).kind&&t.parent!==r.symbol?i?c=i:2&T(r)&&(c=e.forEach(rn(r),function(e){return tr(e,t.escapedName)&&Sr(e,o)})?void 0:r.symbol.declarations[0]):c=s,c&&!Co(n,a)&&d(c,0===o?e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2:e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2,Ge(t),Xe(n),Xe(a));}}}var r=Hr(t.symbol,1),i=Hr(t.symbol,0),a=Sr(t,0),o=Sr(t,1);if((a||o)&&(e.forEach(er(t),function(e){var s=zt(e);n(e,s,t,i,a,0),n(e,s,t,r,o,1);}),1&T(t)&&e.isClassLike(t.symbol.valueDeclaration)))for(var s=0,c=t.symbol.valueDeclaration.members;sr)return!1;for(var u=0;u>s;case 47:return o>>>s;case 45:return o<1&&e.forEach(r.declarations,function(t){e.isConstEnumDeclaration(t)!==n&&d(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const);});var i=!1;e.forEach(r.declarations,function(t){if(232!==t.kind)return!1;var n=t;if(!n.members.length)return!1;var r=n.members[0];r.initializer||(i?d(r.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0);});}}}function Om(t){for(var n=0,r=t.declarations;n1&&!i&&r(t,gh.preserveConstEnums||gh.isolatedModules)){var s=Om(o);s&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(s)?d(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos1)for(var s=0,c=i;s0?e.concatenate(a,i):i}return e.forEach(s.getSourceFiles(),Xm),mb.getDiagnostics()}function eg(){if(!c)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function tg(e){if(e)for(;e.parent;){if(220===e.parent.kind&&e.parent.statement===e)return!0;e=e.parent;}return!1}function ng(t,n){function r(t,n){if(e.getCombinedLocalAndExportSymbolFlags(t)&n){var r=t.escapedName;a.has(r)||a.set(r,t);}}function i(e,t){t&&e.forEach(function(e){r(e,t);});}if(tg(t))return[];var a=e.createSymbolTable(),o=!1;return function(){for(;t;){switch(t.locals&&!C(t)&&i(t.locals,n),t.kind){case 233:i(ke(t).exports,2623475&n);break;case 232:i(ke(t).exports,8&n);break;case 199:t.name&&r(t.symbol,n);case 229:case 230:o||i(ke(t).members,793064&n);break;case 186:t.name&&r(t.symbol,n);}e.introducesArgumentsExoticObject(t)&&r(Nh,n),o=e.hasModifier(t,32),t=t.parent;}i($v,n);}(),Cr(a)}function rg(e){return 71===e.kind&&ig(e.parent)&&e.parent.name===e}function ig(e){switch(e.kind){case 145:case 229:case 230:case 231:case 232:return!0}}function ag(e){for(var t=e;t.parent&&143===t.parent.kind;)t=t.parent;return t.parent&&159===t.parent.kind}function og(e){for(var t=e;t.parent&&179===t.parent.kind;)t=t.parent;return t.parent&&201===t.parent.kind}function sg(t,n){for(var r;(t=e.getContainingClass(t))&&!(r=n(t)););return r}function cg(e,t){return!!sg(e,function(e){return e===t})}function ug(e){for(;143===e.parent.kind;)e=e.parent;return 237===e.parent.kind?e.parent.moduleReference===e&&e.parent:243===e.parent.kind?e.parent.expression===e&&e.parent:void 0}function lg(e){return void 0!==ug(e)}function _g(t){switch(e.getSpecialPropertyAssignmentKind(t.parent.parent)){case 1:case 3:return ke(t.parent);case 4:case 2:case 5:return ke(t.parent.parent)}}function dg(t){if(e.isDeclarationName(t))return ke(t.parent);if(e.isInJavaScriptFile(t)&&179===t.parent.kind&&t.parent===t.parent.parent.left){var n=_g(t);if(n)return n}if(243===t.parent.kind&&e.isEntityNameExpression(t))return ce(t,2998271);if(179!==t.kind&&lg(t)){var r=e.getAncestor(t,237);return e.Debug.assert(void 0!==r),oe(t,!0)}if(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),og(t)){var i=0;201===t.parent.kind?(i=793064,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(i|=107455)):i=1920;var a=ce(t,i|=2097152);if(a)return a}if(279===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(145===t.parent.kind&&282===t.parent.parent.kind){e.Debug.assert(!e.isInJavaScriptFile(t));var o=e.getTypeParameterFromJsDoc(t.parent);return o&&o.symbol}if(e.isPartOfExpression(t)){if(e.nodeIsMissing(t))return;if(71===t.kind)return e.isJSXTagName(t)&&vl(t)?kl(t.parent):ce(t,107455,!1,!0);if(179===t.kind||143===t.kind){var s=k(t);return s.resolvedSymbol?s.resolvedSymbol:(179===t.kind?Yl(t):Ql(t),s.resolvedSymbol)}}else{if(ag(t))return ce(t,i=159===t.parent.kind?793064:1920,!1,!0);if(253===t.parent.kind)return Rl(t.parent)}return 158===t.parent.kind?ce(t,1):void 0}function pg(t){if(265===t.kind)return e.isExternalModule(t)?Se(t.symbol):void 0;if(!tg(t)){if(i(t))return ke(t.parent);if(e.isLiteralComputedPropertyDeclarationName(t))return ke(t.parent.parent);if(71===t.kind){if(lg(t))return dg(t);if(176===t.parent.kind&&174===t.parent.parent.kind&&t===t.parent.propertyName){var n=gg(t.parent.parent),r=n&&gr(n,t.escapedText);if(r)return r}}switch(t.kind){case 71:case 179:case 143:return dg(t);case 99:var a=e.getThisContainer(t,!1);if(e.isFunctionLike(a)){var o=Pr(a);if(o.thisParameter)return o.thisParameter}case 97:return(e.isPartOfExpression(t)?dp(t):qa(t)).symbol;case 169:return qa(t).symbol;case 123:var s=t.parent;if(s&&152===s.kind)return s.parent.symbol;return;case 9:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(238===t.parent.kind||244===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJavaScriptFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent))return ue(t,t);case 8:if(180===t.parent.kind&&t.parent.argumentExpression===t){var c=dp(t.parent.expression);if(c===jh)return;var u=dr(c);if(u===jh)return;return gr(u,t.text)}}}}function fg(e){if(e&&262===e.kind)return ce(e.name,2204607)}function mg(e){return e.parent.parent.moduleSpecifier?H(e.parent.parent,e):ce(e.propertyName||e.name,2998271)}function gg(t){if(tg(t))return jh;if(e.isPartOfTypeNode(t)){var n=qa(t);return n&&e.isExpressionWithTypeArgumentsInClassImplementsClause(t)&&(n=Nn(n,(r=gg(e.getContainingClass(t))).thisType)),n}if(e.isPartOfExpression(t))return vg(t);if(e.isExpressionWithTypeArgumentsInClassExtendsClause(t)){var r=vn(ke(e.getContainingClass(t))),a=rn(r)[0];return a&&Nn(a,r.thisType)}if(ig(t))return vn(o=ke(t));if(rg(t))return(o=pg(t))&&vn(o);if(e.isDeclaration(t))return zt(o=ke(t));if(i(t))return(o=pg(t))&&zt(o);if(e.isBindingPattern(t))return kt(t.parent,!0);if(lg(t)){var o=pg(t),s=o&&vn(o);return s!==jh?s:zt(o)}return jh}function yg(t){if(e.Debug.assert(178===t.kind||177===t.kind),216===t.parent.kind)return Vd(t,(n=Gf(t.parent.expression,t.parent.awaitModifier))||jh);if(194===t.parent.kind){var n=dp(t.parent.right);return Vd(t,n||jh)}if(261===t.parent.kind)return zd(yg(t.parent.parent)||jh,t.parent);e.Debug.assert(177===t.parent.kind);var r=yg(t.parent),i=Hf(r||jh,t.parent,!1,!1)||jh;return qd(t.parent,r,e.indexOf(t.parent.elements,t),i||jh)}function hg(e){var t=yg(e.parent.parent);return t&&gr(t,e.escapedText)}function vg(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Ba(dp(t))}function bg(t){var n=ke(t.parent);return e.hasModifier(t,32)?zt(n):vn(n)}function xg(t){if(6&e.getCheckFlags(t)){var n=[],r=t.escapedName;return e.forEach(S(t).containingType.types,function(e){var t=gr(e,r);t&&n.push(t);}),n}if(33554432&t.flags){var i=t;if(i.leftSpread)return xg(i.leftSpread).concat(xg(i.rightSpread));if(i.syntheticOrigin)return xg(i.syntheticOrigin);for(var a=void 0,o=t;o=S(o).target;)a=o;if(a)return[a]}return[t]}function Sg(t){return!(e.isGeneratedIdentifier(t)||!(t=e.getParseTreeNode(t,e.isIdentifier))||179===t.parent.kind&&t.parent.name===t||Gg(t)!==Nh)}function kg(t){var n=ue(t.parent,t);if(!n||e.isShorthandAmbientModuleSymbol(n))return!0;var r=fe(n),i=S(n=de(n));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=r?!!(107455&n.flags):e.forEachEntry(ve(n),function(e){return(e=ne(e))&&!!(107455&e.flags)})),i.exportsSomeValue}function Tg(t){var n=t.parent;return n&&e.isModuleOrEnumDeclaration(n)&&t===n.name}function Cg(t,n){if(t=e.getParseTreeNode(t,e.isIdentifier)){var r=Gg(t,Tg(t));if(r){if(1048576&r.flags){var i=Se(r.exportSymbol);if(!n&&944&i.flags)return;r=i;}var a=Te(r);if(a){if(512&a.flags&&265===a.valueDeclaration.kind){var o=a.valueDeclaration;return o!==e.getSourceFileOfNode(t)?void 0:o}return e.findAncestor(t.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&ke(t)===a})}}}}function Dg(t){if(t=e.getParseTreeNode(t,e.isIdentifier)){var n=Gg(t);if(te(n,107455))return z(n)}}function Eg(t){if(418&t.flags){var n=S(t);if(void 0===n.isDeclarationWithCollidingName){var r=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(r)){var i=k(t.valueDeclaration);if(A(r.parent,t.escapedName,107455,void 0,void 0))n.isDeclarationWithCollidingName=!0;else if(131072&i.flags){var a=262144&i.flags,o=e.isIterationStatement(r,!1),s=207===r.kind&&e.isIterationStatement(r.parent,!1);n.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(r)||a&&(o||s));}else n.isDeclarationWithCollidingName=!1;}}return n.isDeclarationWithCollidingName}return!1}function Ng(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var n=Gg(t);if(n&&Eg(n))return n.valueDeclaration}}function Ag(t){if(t=e.getParseTreeNode(t,e.isDeclaration)){var n=ke(t);if(n)return Eg(n)}return!1}function wg(t){switch(t.kind){case 237:case 239:case 240:case 242:case 246:return Pg(ke(t)||Rh);case 244:var n=t.exportClause;return n&&e.forEach(n.elements,wg);case 243:return!t.expression||71!==t.expression.kind||Pg(ke(t)||Rh)}return!1}function Og(t){return!(void 0===(t=e.getParseTreeNode(t,e.isImportEqualsDeclaration))||265!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))&&Pg(ke(t))&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference)}function Pg(e){var t=re(e);return t===Rh||107455&t.flags&&(gh.preserveConstEnums||!Fg(t))}function Fg(e){return Bd(e)||e.constEnumOnlyModule}function Ig(t,n){if(e.isAliasSymbolDeclaration(t)){var r=ke(t);if(r&&S(r).referenced)return!0}return!!n&&e.forEachChild(t,function(e){return Ig(e,n)})}function Lg(t){if(e.nodeIsPresent(t.body)){var n=Lr(ke(t));return n.length>1||1===n.length&&n[0].declaration!==t}return!1}function Rg(t){return xh&&!Nr(t)&&t.initializer&&!e.hasModifier(t,92)}function Mg(t){return xh&&Nr(t)&&!t.initializer&&e.hasModifier(t,92)}function Bg(e){return k(e).flags}function Kg(e){return Dm(e.parent),k(e).enumMemberValue}function jg(e){switch(e.kind){case 264:case 179:case 180:return!0}return!1}function Jg(t){if(264===t.kind)return Kg(t);var n=k(t).resolvedSymbol;return n&&8&n.flags&&e.isConstEnumDeclaration(n.valueDeclaration.parent)?Kg(n.valueDeclaration):void 0}function zg(e){return 32768&e.flags&&hr(e,0).length>0}function Ug(t,n){if(!(t=e.getParseTreeNode(t,e.isEntityName)))return e.TypeReferenceSerializationKind.Unknown;if(n&&!(n=e.getParseTreeNode(n)))return e.TypeReferenceSerializationKind.Unknown;var r=ce(t,107455,!0,!1,n),i=ce(t,793064,!0,!1,n);if(r&&r===i){var a=wi(!1);if(a&&r===a)return e.TypeReferenceSerializationKind.Promise;var o=zt(r);if(o&&Qt(o))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!i)return e.TypeReferenceSerializationKind.ObjectType;var s=vn(i);return s===jh?e.TypeReferenceSerializationKind.Unknown:1&s.flags?e.TypeReferenceSerializationKind.ObjectType:Rd(s,15360)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Rd(s,136)?e.TypeReferenceSerializationKind.BooleanType:Rd(s,84)?e.TypeReferenceSerializationKind.NumberLikeType:Rd(s,262178)?e.TypeReferenceSerializationKind.StringLikeType:ms(s)?e.TypeReferenceSerializationKind.ArrayLikeType:Rd(s,512)?e.TypeReferenceSerializationKind.ESSymbolType:zg(s)?e.TypeReferenceSerializationKind.TypeWithCallSignature:cs(s)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function qg(e,t,n,r){var i=ke(e),a=!i||133120&i.flags?jh:fs$$1(zt(i));8192&n&&(a=xs(a,2048)),it().buildTypeDisplay(a,r,t,n);}function Vg(e,t,n,r){var i=Pr(e);it().buildTypeDisplay(Br(i),r,t,n);}function $g(e,t,n,r){var i=ws(vg(e));it().buildTypeDisplay(i,r,t,n);}function Wg(t){return $v.has(e.escapeLeadingUnderscores(t))}function Gg(t,n){var r=k(t).resolvedSymbol;if(r)return r;var i=t;if(n){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=_t(a));}return A(i,t.escapedText,3253183,void 0,void 0)}function Hg(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var n=Gg(t);if(n)return Ce(n).valueDeclaration}}function Xg(t){if(e.isConst(t)){var n=zt(ke(t));return!!(96&n.flags&&1048576&n.flags)}return!1}function Yg(e,t){var n=zt(ke(e));t.writeStringLiteral(nt(n));}function Qg(t){var n=e.getExternalModuleName(t),r=le(n,n,void 0);if(r)return e.getDeclarationOfKind(r,265)}function Zg(t,n){if((oh&n)!==n&&gh.importHelpers){var r=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(r,gh)&&!e.isInAmbientContext(t)){var i=ty(r,t);if(i!==Rh)for(var a=n&~oh,o=1;o<=32768;o<<=1)if(a&o){var s=ey(o);D(i.exports,e.escapeLeadingUnderscores(s),107455)||d(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,e.externalHelpersModuleNameText,s);}oh|=n;}}}function ey(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spread";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";default:e.Debug.fail("Unrecognized helper");}}function ty(t,n){return sh||(sh=_e(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,n)||Rh),sh}function ny(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t))return 151!==t.kind||e.nodeIsPresent(t.body)?$y(t,e.Diagnostics.Decorators_are_not_valid_here):$y(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(153===t.kind||154===t.kind){var n=e.getAllAccessorDeclarations(t.parent.members,t);if(n.firstAccessor.decorators&&t===n.secondAccessor)return $y(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}function ry(t){var n=iy(t);if(void 0!==n)return n;for(var r,i,a,o,s=0,c=0,u=t.modifiers;c1||e.modifiers[0].kind!==t}function sy(t,n){switch(t.kind){case 151:case 228:case 186:case 187:return!1}return Gy(n,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function cy(t){if(t&&t.hasTrailingComma){var n=t.end-",".length,r=t.end;return Wy(e.getSourceFileOfNode(t[0]),n,r-n,e.Diagnostics.Trailing_comma_not_allowed)}}function uy(t,n){if(cy(t))return!0;if(t&&0===t.length){var r=t.pos-"<".length;return Wy(n,r,e.skipTrivia(n.text,t.end)+">".length-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}}function ly(t){for(var n=!1,r=t.length,i=0;i".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}}function yy(e,t){return cy(t)||gy(e,t)}function hy(t,n){if(n)for(var r=e.getSourceFileOfNode(t),i=0,a=n;i1)return $y(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);n=!0;}else{if(e.Debug.assert(108===o.token),r)return $y(o,e.Diagnostics.implements_clause_already_seen);r=!0;}by(o);}}function ky(t){var n=!1;if(t.heritageClauses)for(var r=0,i=t.heritageClauses;r1)return a=215===t.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement,$y(n.declarations[1],a);var i=r[0];if(i.initializer){var a=215===t.kind?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Gy(i.name,a)}if(i.type)return Gy(i,a=215===t.kind?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function wy(t){var n=t.kind;if(yh<1)return Gy(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(e.isInAmbientContext(t))return Gy(t.name,e.Diagnostics.An_accessor_cannot_be_declared_in_an_ambient_context);if(void 0===t.body&&!e.hasModifier(t,128))return Wy(e.getSourceFileOfNode(t),t.end-1,";".length,e.Diagnostics._0_expected,"{");if(t.body&&e.hasModifier(t,128))return Gy(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(t.typeParameters)return Gy(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!Oy(t))return Gy(t.name,153===n?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(154===n){if(t.type)return Gy(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var r=t.parameters[0];if(r.dotDotDotToken)return Gy(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return Gy(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return Gy(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}}function Oy(e){return Py(e)||e.parameters.length===(153===e.kind?0:1)}function Py(t){if(t.parameters.length===(153===t.kind?1:2))return e.getThisParameter(t)}function Fy(t,n){if(e.isDynamicName(t))return Gy(t,n)}function Iy(t){if(Kf(t)||_y(t)||Cy(t))return!0;if(178===t.parent.kind){if(Dy(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(void 0===t.body)return Wy(e.getSourceFileOfNode(t),t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(e.isClassLike(t.parent)){if(e.isInAmbientContext(t))return Fy(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol);if(!t.body)return Fy(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol)}else{if(230===t.parent.kind)return Fy(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol);if(163===t.parent.kind)return Fy(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol)}}function Ly(t){for(var n=t;n;){if(e.isFunctionLike(n))return Gy(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(n.kind){case 222:if(t.label&&n.label.escapedText===t.label.escapedText)return!(217!==t.kind||e.isIterationStatement(n.statement,!0))&&Gy(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 221:if(218===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(n,!1)&&!t.label)return!1}n=n.parent;}if(t.label)return Gy(t,r=218===t.kind?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);var r=218===t.kind?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Gy(t,r)}function Ry(t){if(t.dotDotDotToken){var n=t.parent.elements;if(t!==e.lastOrUndefined(n))return Gy(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(175===t.name.kind||174===t.name.kind)return Gy(t.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(t.initializer)return Wy(e.getSourceFileOfNode(t),t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function My(e){return 9===e.kind||8===e.kind||192===e.kind&&38===e.operator&&8===e.operand.kind}function By(t){if(215!==t.parent.parent.kind&&216!==t.parent.parent.kind)if(e.isInAmbientContext(t)){if(t.initializer){if(!e.isConst(t)||t.type)return n="=".length,Wy(e.getSourceFileOfNode(t),t.initializer.pos-n,n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(!My(t.initializer))return Gy(t.initializer,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal)}if(t.initializer&&(!e.isConst(t)||!My(t.initializer))){var n="=".length;return Wy(e.getSourceFileOfNode(t),t.initializer.pos-n,n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return Gy(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isConst(t))return Gy(t,e.Diagnostics.const_declarations_must_be_initialized)}return gh.module===e.ModuleKind.ES2015||gh.module===e.ModuleKind.System||gh.noEmit||e.isInAmbientContext(t.parent.parent)||!e.hasModifier(t.parent.parent,1)||Ky(t.name),(e.isLet(t)||e.isConst(t))&&jy(t.name)}function Ky(t){if(71===t.kind){if("__esModule"===e.unescapeLeadingUnderscores(t.escapedText))return Gy(t,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var n=0,r=t.elements;n0}function $y(t,n,r,i,a){var o=e.getSourceFileOfNode(t);if(!Vy(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return mb.add(e.createFileDiagnostic(o,s.start,s.length,n,r,i,a)),!0}}function Wy(t,n,r,i,a,o,s){if(!Vy(t))return mb.add(e.createFileDiagnostic(t,n,r,i,a,o,s)),!0}function Gy(t,n,r,i,a){if(!Vy(e.getSourceFileOfNode(t)))return mb.add(e.createDiagnosticForNode(t,n,r,i,a)),!0}function Hy(t){if(t.typeParameters)return Wy(e.getSourceFileOfNode(t),t.typeParameters.pos,t.typeParameters.end-t.typeParameters.pos,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}function Xy(t){if(t.type)return Gy(t.type,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Yy(t){if(e.isClassLike(t.parent)){if(Fy(t.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol))return!0}else if(230===t.parent.kind){if(Fy(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol))return!0;if(t.initializer)return Gy(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(163===t.parent.kind){if(Fy(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol))return!0;if(t.initializer)return Gy(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(e.isInAmbientContext(t)&&t.initializer)return $y(t.initializer,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}function Qy(t){return 230!==t.kind&&231!==t.kind&&238!==t.kind&&237!==t.kind&&244!==t.kind&&243!==t.kind&&236!==t.kind&&!e.hasModifier(t,515)&&$y(t,e.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file)}function Zy(t){for(var n=0,r=t.statements;n=1?n=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,173)?n=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,264)&&(n=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),n){var r=e.isPrefixUnaryExpression(t.parent)&&38===t.parent.operator,i=(r?"-":"")+"0o"+t.text;return Gy(r?t.parent:t,n,i)}}}function rh(t,n,r,i,a){var o=e.getSourceFileOfNode(t);if(!Vy(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return mb.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,n,r,i,a)),!0}}function ih(t){if(hh===e.ModuleKind.ES2015)return Gy(t,e.Diagnostics.Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules);if(t.typeArguments)return Gy(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var n=t.arguments;return 1!==n.length?Gy(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):e.isSpreadElement(n[0])?Gy(n[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element):void 0}var ah,oh,sh,ch=e.objectAllocator.getSymbolConstructor(),uh=e.objectAllocator.getTypeConstructor(),lh=e.objectAllocator.getSignatureConstructor(),_h=0,dh=0,ph=0,fh=0,mh=e.createSymbolTable(),gh=s.getCompilerOptions(),yh=e.getEmitScriptTarget(gh),hh=e.getEmitModuleKind(gh),vh=!!gh.noUnusedLocals||!!gh.noUnusedParameters,bh=void 0!==gh.allowSyntheticDefaultImports?gh.allowSyntheticDefaultImports:hh===e.ModuleKind.System,xh=void 0===gh.strictNullChecks?gh.strict:gh.strictNullChecks,Sh=void 0===gh.noImplicitAny?gh.strict:gh.noImplicitAny,kh=void 0===gh.noImplicitThis?gh.strict:gh.noImplicitThis,Th=function(){function t(t,i){if(r&&n(t)){for(var a,o=0,s=t.declarations;o0){var c=r(i.slice(0,ai(t)),s);if(c&&c.length>0)return e.createTupleTypeNode(c)}return s.encounteredError||s.flags&e.NodeBuilderFlags.AllowEmptyTuple?e.createTupleTypeNode([]):void(s.encounteredError=!0)}var u=t.target.outerTypeParameters,l=0,_=void 0;if(u)for(var d=u.length;l0){var k=(t.target.typeParameters||e.emptyArray).length;S=r(i.slice(l,k),s);}return S&&((71===b.kind?b:b.right).typeArguments=void 0),e.createTypeReferenceNode(b,S)}(t);if(16384&t.flags||3&b)return x=c(t.symbol,s,793064,!1),e.createTypeReferenceNode(x,void 0);if(!g&&t.aliasSymbol&&je(t.aliasSymbol,s.enclosingDeclaration)){var x=p(t.aliasSymbol),S=r(t.aliasTypeArguments,s);return e.createTypeReferenceNode(x,S)}if(196608&t.flags){var k=r(65536&t.flags?Qe(t.types):t.types,s);return k&&k.length>0?e.createUnionOrIntersectionTypeNode(65536&t.flags?166:167,k):void(s.encounteredError||s.flags&e.NodeBuilderFlags.AllowEmptyUnionOrIntersection||(s.encounteredError=!0))}if(48&b)return e.Debug.assert(!!(32768&t.flags)),function(t){var n=t.symbol;if(n){if(32&n.flags&&!Rt(n)||896&n.flags||function(){var t=!!(8192&n.flags)&&e.some(n.declarations,function(t){return e.hasModifier(t,32)}),r=!!(16&n.flags)&&(n.parent||e.forEach(n.declarations,function(e){return 265===e.parent.kind||234===e.parent.kind}));if(t||r)return e.contains(s.symbolStack,n)}())return d(n,107455);if(e.contains(s.symbolStack,n)){var r=et(t);if(r){var i=c(r,s,793064,!1);return e.createTypeReferenceNode(i,void 0)}return e.createKeywordTypeNode(119)}s.symbolStack||(s.symbolStack=[]),s.symbolStack.push(n);var a=_(t);return s.symbolStack.pop(),a}return _(t)}(t);if(262144&t.flags)return D=n(t.type,s),e.createTypeOperatorNode(D);if(524288&t.flags){var C=n(t.objectType,s),D=n(t.indexType,s);return e.createIndexedAccessTypeNode(C,D)}e.Debug.fail("Should be unreachable.");}else s.encounteredError=!0;}function r(t,r){if(e.some(t)){for(var i=[],a=0;a0){var c=t[i-1],l=void 0;1&e.getCheckFlags(s)?l=Xt(c):524384&vm(c).flags&&(l=Ht(s)),a=r(l,n);}var _=u(s,n),d=e.setEmitFlags(e.createIdentifier(_,a),16777216);return i>0?e.createQualifiedName(o(t,i-1),d):d}function s(t,r,i){var a,o=Me(t,n.enclosingDeclaration,r,!1);if(!o||Be(o[0],n.enclosingDeclaration,1===o.length?r:Re(r))){var c=Te(o?o[0]:t);if(c){var u=s(c,Re(r),!1);u&&(a=c,o=u.concat(o||[t]));}}return o||(!i&&(!a&&e.forEach(t.declarations,ze)||6144&t.flags)?void 0:[t])}var c;return 262144&t.flags||!(n.enclosingDeclaration||n.flags&e.NodeBuilderFlags.UseFullyQualifiedType)?c=[t]:(c=s(t,i,!0),e.Debug.assert(c&&c.length>0)),!a||1===c.length||n.encounteredError||n.flags&e.NodeBuilderFlags.AllowQualifedNameInPlaceOfIdentifier||(n.encounteredError=!0),o(c,c.length-1)}function u(t,n){var r=e.firstOrUndefined(t.declarations);if(r){var i=e.getNameOfDeclaration(r);if(i)return e.declarationNameToString(i);if(r.parent&&226===r.parent.kind)return e.declarationNameToString(r.parent.name);switch(n.encounteredError||n.flags&e.NodeBuilderFlags.AllowAnonymousIdentifier||(n.encounteredError=!0),r.kind){case 199:return"(Anonymous class)";case 186:case 187:return"(Anonymous function)"}}return e.unescapeLeadingUnderscores(t.escapedName)}return{typeToTypeNode:function(e,r,i){var a=t(r,i),o=n(e,a);return a.encounteredError?void 0:o},indexInfoToIndexSignatureDeclaration:function(e,n,r,a){var o=t(r,a),s=i(e,n,o);return o.encounteredError?void 0:s},signatureToSignatureDeclaration:function(e,n,r,i){var o=t(r,i),s=a(e,n,o);return o.encounteredError?void 0:s}}}(),Dh=p(4,"undefined");Dh.declarations=[];var Eh,Nh=p(4,"arguments"),Ah={getNodeCount:function(){return e.sum(s.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(s.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(s.getSourceFiles(),"symbolCount")+dh},getTypeCount:function(){return _h},isUndefinedSymbol:function(e){return e===Dh},isArgumentsSymbol:function(e){return e===Nh},isUnknownSymbol:function(e){return e===Rh},getMergedSymbol:Se,getDiagnostics:Qm,getGlobalDiagnostics:function(){return eg(),mb.getGlobalDiagnostics()},getTypeOfSymbolAtLocation:function(t,n){return(n=e.getParseTreeNode(n))?au(t,n):jh},getSymbolsOfParameterPropertyDeclaration:function(t,n){return t=e.getParseTreeNode(t,e.isParameter),e.Debug.assert(void 0!==t,"Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."),E(t,e.escapeLeadingUnderscores(n))},getDeclaredTypeOfSymbol:vn,getPropertiesOfType:rr,getPropertyOfType:function(t,n){return gr(t,e.escapeLeadingUnderscores(n))},getIndexInfoOfType:xr,getSignaturesOfType:hr,getIndexTypeOfType:Sr,getBaseTypes:rn,getBaseTypeOfLiteralType:ps,getWidenedType:ws,getTypeFromTypeNode:function(t){return(t=e.getParseTreeNode(t,e.isTypeNode))?qa(t):jh},getParameterType:cd,getReturnTypeOfSignature:Br,getNullableType:xs,getNonNullableType:Ss,typeToTypeNode:Ch.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Ch.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Ch.signatureToSignatureDeclaration,getSymbolsInScope:function(t,n){return(t=e.getParseTreeNode(t))?ng(t,n):[]},getSymbolAtLocation:function(t){return(t=e.getParseTreeNode(t))?pg(t):void 0},getShorthandAssignmentValueSymbol:function(t){return(t=e.getParseTreeNode(t))?fg(t):void 0},getExportSpecifierLocalTargetSymbol:function(t){return(t=e.getParseTreeNode(t,e.isExportSpecifier))?mg(t):void 0},getTypeAtLocation:function(t){return(t=e.getParseTreeNode(t))?gg(t):jh},getPropertySymbolOfDestructuringAssignment:function(t){return(t=e.getParseTreeNode(t,e.isIdentifier))?hg(t):void 0},signatureToString:function(t,n,r,i){return He(t,e.getParseTreeNode(n),r,i)},typeToString:function(t,n,r){return Xe(t,e.getParseTreeNode(n),r)},getSymbolDisplayBuilder:it,symbolToString:function(t,n,r){return Ge(t,e.getParseTreeNode(n),r)},getAugmentedPropertiesOfType:function(t){t=dr(t);var n=e.createSymbolTable(rr(t));return(hr(t,0).length||hr(t,1).length)&&e.forEach(rr(cv),function(e){n.has(e.escapedName)||n.set(e.escapedName,e);}),Pe(n)},getRootSymbols:xg,getContextualType:function(t){return(t=e.getParseTreeNode(t,e.isExpression))?Yu(t):void 0},getFullyQualifiedName:se,getResolvedSignature:function(t,n,r){t=e.getParseTreeNode(t,e.isCallLikeExpression),Eh=r;var i=t?W_(t,n):void 0;return Eh=void 0,i},getConstantValue:function(t){return(t=e.getParseTreeNode(t,jg))?Jg(t):void 0},isValidPropertyAccess:function(t,n){return!!(t=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedName))&&o_(t,e.escapeLeadingUnderscores(n))},getSignatureFromDeclaration:function(t){return(t=e.getParseTreeNode(t,e.isFunctionLike))?Pr(t):void 0},isImplementationOfOverload:function(t){var n=e.getParseTreeNode(t,e.isFunctionLike);return n?Lg(n):void 0},getImmediateAliasedSymbol:function(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var n=S(t);if(!n.immediateTarget){var r=z(t);e.Debug.assert(!!r),n.immediateTarget=ee(r,!0);}return n.immediateTarget},getAliasedSymbol:re,getEmitResolver:function(e,t){return Qm(e,t),Th},getExportsOfModule:me,getExportsAndPropertiesOfModule:function(t){var n=me(t),r=de(t);return r!==t&&e.addRange(n,rr(zt(r))),n},getAmbientModules:function(){var t=[];return $v.forEach(function(n,r){o.test(e.unescapeLeadingUnderscores(r))&&t.push(n);}),t},getAllAttributesTypeFromJsxOpeningLikeElement:function(t){return(t=e.getParseTreeNode(t,e.isJsxOpeningLikeElement))?Il(t):void 0},getJsxIntrinsicTagNames:function(){var t=Sl(Ab.IntrinsicElements);return t?rr(t):e.emptyArray},isOptionalParameter:function(t){return!!(t=e.getParseTreeNode(t,e.isParameter))&&Nr(t)},tryGetMemberInModuleExports:function(t,n){return ge(e.escapeLeadingUnderscores(t),n)},tryGetMemberInModuleExportsAndProperties:function(t,n){return ye(e.escapeLeadingUnderscores(t),n)},tryFindAmbientModuleWithoutAugmentations:function(e){return Er(e,!1)},getApparentType:dr,getAllPossiblePropertiesOfType:function(t){if(65536&t.flags){for(var n=e.createSymbolTable(),r=0,i=t.types;r0&&(a[c-s]=u);}s>0&&(a.length-=s);}},e.compareEmitHelpers=function(t,n){return t===n?0:t.priority===n.priority?0:void 0===t.priority?1:void 0===n.priority?-1:e.compareValues(t.priority,n.priority)},e.setOriginalNode=Lt;}(r||(r={})),function(e){function t(t,n,r){if(e.isComputedPropertyName(n))return e.setTextRange(e.createElementAccess(t,n.expression),r);var i=e.setTextRange(e.isIdentifier(n)?e.createPropertyAccess(t,n):e.createElementAccess(t,n),n);return e.getOrCreateEmitNode(i).flags|=64,i}function n(t,n){var r=e.createIdentifier(t||"React");return r.flags&=-9,r.parent=e.getParseTreeNode(n),r}function r(t,i){if(e.isQualifiedName(t)){var a=r(t.left,i),o=e.createIdentifier(e.unescapeLeadingUnderscores(t.right.escapedText));return o.escapedText=t.right.escapedText,e.createPropertyAccess(a,o)}return n(e.unescapeLeadingUnderscores(t.escapedText),i)}function i(t,i,a){return t?r(t,a):e.createPropertyAccess(n(i,a),"createElement")}function a(t){return e.setEmitFlags(e.createIdentifier(t),4098)}function o(t,n,r){if(!n)return t;var i=e.updateLabel(n,n.label,222===n.statement.kind?o(t,n.statement):t);return r&&r(n),i}function s(e,t){var n=A(e);switch(n.kind){case 71:return t;case 99:case 8:case 9:return!1;case 177:return 0!==n.elements.length;case 178:return n.properties.length>0;default:return!0}}function c(t){if(e.isQualifiedName(t)){var n=c(t.left),r=e.getMutableClone(t.right);return e.setTextRange(e.createPropertyAccess(n,r),t)}return e.getMutableClone(t)}function u(t){return e.isIdentifier(t)?e.createLiteral(t):e.isComputedPropertyName(t)?e.getMutableClone(t.expression):e.getMutableClone(t)}function l(t,n,r,i){var a=e.getAllAccessorDeclarations(t,n),o=a.firstAccessor,s=a.getAccessor,c=a.setAccessor;if(n===o){var l=[];if(s){var _=e.createFunctionExpression(s.modifiers,void 0,void 0,void 0,s.parameters,void 0,s.body);e.setTextRange(_,s),e.setOriginalNode(_,s);var d=e.createPropertyAssignment("get",_);l.push(d);}if(c){var p=e.createFunctionExpression(c.modifiers,void 0,void 0,void 0,c.parameters,void 0,c.body);e.setTextRange(p,c),e.setOriginalNode(p,c);var f=e.createPropertyAssignment("set",p);l.push(f);}l.push(e.createPropertyAssignment("enumerable",e.createTrue())),l.push(e.createPropertyAssignment("configurable",e.createTrue()));var m=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[r,u(n.name),e.createObjectLiteral(l,i)]),o);return e.aggregateTransformFlags(m)}}function _(n,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(r,n.name,n.name),n.initializer),n),n))}function d(n,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(r,n.name,n.name),e.getSynthesizedClone(n.name)),n),n))}function p(n,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(r,n.name,n.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(n.modifiers,n.asteriskToken,void 0,void 0,n.parameters,void 0,n.body),n),n)),n),n))}function f(e,t,n){return m(e,t,n,8192)}function m(t,n,r,i){var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.getMutableClone(a);return i|=e.getEmitFlags(a),r||(i|=48),n||(i|=1536),i&&e.setEmitFlags(o,i),o}return e.getGeneratedNameForNode(t)}function g(t,n,r,i){var a=e.createPropertyAccess(t,e.nodeIsSynthesized(n)?n:e.getSynthesizedClone(n));e.setTextRange(a,n);var o;return i||(o|=48),r||(o|=1536),o&&e.setEmitFlags(a,o),a}function y(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function h(t,n,r){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var i=!1,a=0,o=n.length;ae.getOperatorPrecedence(194,26)?t:e.setTextRange(e.createParen(t),t)}function C(t){switch(t.kind){case 166:case 167:case 160:case 161:return e.createParenthesizedType(t)}return t}function D(e){for(;;){switch(e.kind){case 193:e=e.operand;continue;case 194:e=e.left;continue;case 195:e=e.condition;continue;case 181:case 180:case 179:case 288:e=e.expression;continue}return e}}function E(e,t){switch(void 0===t&&(t=7),e.kind){case 185:return 0!=(1&t);case 184:case 202:case 203:return 0!=(2&t);case 288:return 0!=(4&t)}return!1}function N(t,n){void 0===n&&(n=7);var r;do{r=t,1&n&&(t=A(t)),2&n&&(t=w(t)),4&n&&(t=e.skipPartiallyEmittedExpressions(t));}while(r!==t);return t}function A(e){for(;185===e.kind;)e=e.expression;return e}function w(t){for(;e.isAssertionExpression(t)||203===t.kind;)t=t.expression;return t}function O(t,n){switch(t.kind){case 185:return e.updateParen(t,n);case 184:return e.updateTypeAssertion(t,t.type,n);case 202:return e.updateAsExpression(t,n,t.type);case 203:return e.updateNonNullExpression(t,n);case 288:return e.updatePartiallyEmittedExpression(t,n)}}function P(t){return 185===t.kind&&e.nodeIsSynthesized(t)&&e.nodeIsSynthesized(e.getSourceMapRange(t))&&e.nodeIsSynthesized(e.getCommentRange(t))&&!e.some(e.getSyntheticLeadingComments(t))&&!e.some(e.getSyntheticTrailingComments(t))}function F(e,t,n){return void 0===n&&(n=7),e&&E(e,n)&&!P(e)?O(e,F(e.expression,t)):t}function I(e){return e.startsOnNewLine=!0,e}function L(t){var n=e.getOriginalNode(t,e.isSourceFile),r=n&&n.emitNode;return r&&r.externalHelpersModuleName}function R(t,n){var r=n.renamedDependencies&&n.renamedDependencies.get(t.text);return r&&e.createLiteral(r)}function M(t,n,r){if(t)return t.moduleName?e.createLiteral(t.moduleName):t.isDeclarationFile||!r.out&&!r.outFile?void 0:e.createLiteral(e.getExternalModuleNameFromPath(n,t.fileName))}function B(e,t,n,r){return M(n.getExternalModuleFileFromDeclaration(e),t,r)}function K(t){return e.isDeclarationBindingElement(t)?t.initializer:e.isPropertyAssignment(t)?e.isAssignmentExpression(t.initializer,!0)?t.initializer.right:void 0:e.isShorthandPropertyAssignment(t)?t.objectAssignmentInitializer:e.isAssignmentExpression(t,!0)?t.right:e.isSpreadElement(t)?K(t.expression):void 0}function j(t){if(e.isDeclarationBindingElement(t))return t.name;if(!e.isObjectLiteralElementLike(t))return e.isAssignmentExpression(t,!0)?j(t.left):e.isSpreadElement(t)?j(t.expression):t;switch(t.kind){case 261:return j(t.initializer);case 262:return t.name;case 263:return j(t.expression)}}function J(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpread(t.name),t),t);var n=$(t.name);return t.initializer?e.setOriginalNode(e.setTextRange(e.createAssignment(n,t.initializer),t),t):n}return e.Debug.assertNode(t,e.isExpression),t}function z(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){var n=$(t.name);return e.setOriginalNode(e.setTextRange(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(n,t.initializer):n),t),t)}return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return e.Debug.assertNode(t,e.isObjectLiteralElementLike),t}function U(e){switch(e.kind){case 175:case 177:return V(e);case 174:case 178:return q(e)}}function q(t){return e.isObjectBindingPattern(t)?e.setOriginalNode(e.setTextRange(e.createObjectLiteral(e.map(t.elements,z)),t),t):(e.Debug.assertNode(t,e.isObjectLiteralExpression),t)}function V(t){return e.isArrayBindingPattern(t)?e.setOriginalNode(e.setTextRange(e.createArrayLiteral(e.map(t.elements,J)),t),t):(e.Debug.assertNode(t,e.isArrayLiteralExpression),t)}function $(t){return e.isBindingPattern(t)?U(t):(e.Debug.assertNode(t,e.isExpression),t)}e.nullTransformationContext={enableEmitNotification:e.noop,enableSubstitution:e.noop,endLexicalEnvironment:function(){},getCompilerOptions:e.notImplemented,getEmitHost:e.notImplemented,getEmitResolver:e.notImplemented,hoistFunctionDeclaration:e.noop,hoistVariableDeclaration:e.noop,isEmitNotificationEnabled:e.notImplemented,isSubstitutionEnabled:e.notImplemented,onEmitNode:e.noop,onSubstituteNode:e.notImplemented,readEmitHelpers:e.notImplemented,requestEmitHelper:e.noop,resumeLexicalEnvironment:e.noop,startLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop},e.createTypeCheck=function(t,n){return"undefined"===n?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(n))},e.createMemberAccessForPropertyName=t,e.createFunctionCall=function(t,n,r,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),void 0,[n].concat(r)),i)},e.createFunctionApply=function(t,n,r,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),void 0,[n,r]),i)},e.createArraySlice=function(t,n){var r=[];return void 0!==n&&r.push("number"==typeof n?e.createLiteral(n):n),e.createCall(e.createPropertyAccess(t,"slice"),void 0,r)},e.createArrayConcat=function(t,n){return e.createCall(e.createPropertyAccess(t,"concat"),void 0,n)},e.createMathPow=function(t,n,r){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[t,n]),r)},e.createExpressionForJsxElement=function(t,n,r,a,o,s,c){var u=[r];if(a&&u.push(a),o&&o.length>0)if(a||u.push(e.createNull()),o.length>1)for(var l=0,_=o;l<_.length;l++){var d=_[l];d.startsOnNewLine=!0,u.push(d);}else u.push(o[0]);return e.setTextRange(e.createCall(i(t,n,s),void 0,u),c)},e.getHelperName=a;var W={name:"typescript:values",scoped:!1,text:'\n var __values = (this && this.__values) || function (o) {\n var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;\n if (m) return m.call(o);\n return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n };\n '};e.createValuesHelper=function(t,n,r){return t.requestEmitHelper(W),e.setTextRange(e.createCall(a("__values"),void 0,[n]),r)};var G={name:"typescript:read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };\n '};e.createReadHelper=function(t,n,r,i){return t.requestEmitHelper(G),e.setTextRange(e.createCall(a("__read"),void 0,void 0!==r?[n,e.createLiteral(r)]:[n]),i)};var H={name:"typescript:spread",scoped:!1,text:"\n var __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n };"};e.createSpreadHelper=function(t,n,r){return t.requestEmitHelper(G),t.requestEmitHelper(H),e.setTextRange(e.createCall(a("__spread"),void 0,n),r)},e.createForOfBindingStatement=function(t,n){if(e.isVariableDeclarationList(t)){var r=e.firstOrUndefined(t.declarations),i=e.updateVariableDeclaration(r,r.name,void 0,n);return e.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}var a=e.setTextRange(e.createAssignment(t,n),t);return e.setTextRange(e.createStatement(a),t)},e.insertLeadingStatement=function(t,n){return e.isBlock(t)?e.updateBlock(t,e.setTextRange(e.createNodeArray([n].concat(t.statements)),t.statements)):e.createBlock(e.createNodeArray([t,n]),!0)},e.restoreEnclosingLabel=o,e.createCallBinding=function(t,n,r,i){var a,o,c=N(t,7);if(e.isSuperProperty(c))a=e.createThis(),o=c;else if(97===c.kind)a=e.createThis(),o=r<2?e.setTextRange(e.createIdentifier("_super"),c):c;else if(4096&e.getEmitFlags(c))a=e.createVoidZero(),o=k(c);else switch(c.kind){case 179:s(c.expression,i)?(a=e.createTempVariable(n),o=e.createPropertyAccess(e.setTextRange(e.createAssignment(a,c.expression),c.expression),c.name),e.setTextRange(o,c)):(a=c.expression,o=c);break;case 180:s(c.expression,i)?(a=e.createTempVariable(n),o=e.createElementAccess(e.setTextRange(e.createAssignment(a,c.expression),c.expression),c.argumentExpression),e.setTextRange(o,c)):(a=c.expression,o=c);break;default:a=e.createVoidZero(),o=k(t);}return{target:o,thisArg:a}},e.inlineExpressions=function(t){return t.length>10?e.createCommaList(t):e.reduceLeft(t,e.createComma)},e.createExpressionFromEntityName=c,e.createExpressionForPropertyName=u,e.createExpressionForObjectLiteralElementLike=function(e,t,n){switch(t.kind){case 153:case 154:return l(e.properties,t,n,e.multiLine);case 261:return _(t,n);case 262:return d(t,n);case 151:return p(t,n)}},e.getInternalName=function(e,t,n){return m(e,t,n,49152)},e.isInternalName=function(t){return 0!=(32768&e.getEmitFlags(t))},e.getLocalName=function(e,t,n){return m(e,t,n,16384)},e.isLocalName=function(t){return 0!=(16384&e.getEmitFlags(t))},e.getExportName=f,e.isExportName=function(t){return 0!=(8192&e.getEmitFlags(t))},e.getDeclarationName=function(e,t,n){return m(e,t,n)},e.getExternalModuleOrNamespaceExportName=function(t,n,r,i){return t&&e.hasModifier(n,1)?g(t,m(n),r,i):f(n,r,i)},e.getNamespaceMemberName=g,e.convertToFunctionBody=function(t,n){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],n),t)},e.convertFunctionDeclarationToExpression=function(t){e.Debug.assert(!!t.body);var n=e.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return e.setOriginalNode(n,t),e.setTextRange(n,t),t.startsOnNewLine&&(n.startsOnNewLine=!0),e.aggregateTransformFlags(n),n},e.addPrologue=function(e,t,n,r){return v(e,t,h(e,t,n),r)},e.addStandardPrologue=h,e.addCustomPrologue=v,e.startsWithUseStrict=function(t){var n=e.firstOrUndefined(t);return void 0!==n&&e.isPrologueDirective(n)&&y(n)},e.ensureUseStrict=function(t){for(var n=!1,r=0,i=t;rs-i)&&(a=s-i),(i>0||a0&&_<=142||169===_)return o;switch(_){case 71:return e.updateIdentifier(o,u(o.typeArguments,s,e.isTypeNode));case 143:return e.updateQualifiedName(o,t(o.left,s,e.isEntityName),t(o.right,s,e.isIdentifier));case 144:return e.updateComputedPropertyName(o,t(o.expression,s,e.isExpression));case 145:return e.updateTypeParameterDeclaration(o,t(o.name,s,e.isIdentifier),t(o.constraint,s,e.isTypeNode),t(o.default,s,e.isTypeNode));case 146:return e.updateParameter(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.dotDotDotToken,l,e.isToken),t(o.name,s,e.isBindingName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 147:return e.updateDecorator(o,t(o.expression,s,e.isExpression));case 148:return e.updatePropertySignature(o,u(o.modifiers,s,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 149:return e.updateProperty(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 150:return e.updateMethodSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken));case 151:return e.updateMethod(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 152:return e.updateConstructor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),i(o.parameters,s,c,u),a(o.body,s,c));case 153:return e.updateGetAccessor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 154:return e.updateSetAccessor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),i(o.parameters,s,c,u),a(o.body,s,c));case 155:return e.updateCallSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 156:return e.updateConstructSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 157:return e.updateIndexSignature(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 158:return e.updateTypePredicateNode(o,t(o.parameterName,s),t(o.type,s,e.isTypeNode));case 159:return e.updateTypeReferenceNode(o,t(o.typeName,s,e.isEntityName),u(o.typeArguments,s,e.isTypeNode));case 160:return e.updateFunctionTypeNode(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 161:return e.updateConstructorTypeNode(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 162:return e.updateTypeQueryNode(o,t(o.exprName,s,e.isEntityName));case 163:return e.updateTypeLiteralNode(o,u(o.members,s,e.isTypeElement));case 164:return e.updateArrayTypeNode(o,t(o.elementType,s,e.isTypeNode));case 165:return e.updateTypleTypeNode(o,u(o.elementTypes,s,e.isTypeNode));case 166:return e.updateUnionTypeNode(o,u(o.types,s,e.isTypeNode));case 167:return e.updateIntersectionTypeNode(o,u(o.types,s,e.isTypeNode));case 168:return e.updateParenthesizedType(o,t(o.type,s,e.isTypeNode));case 170:return e.updateTypeOperatorNode(o,t(o.type,s,e.isTypeNode));case 171:return e.updateIndexedAccessTypeNode(o,t(o.objectType,s,e.isTypeNode),t(o.indexType,s,e.isTypeNode));case 172:return e.updateMappedTypeNode(o,t(o.readonlyToken,l,e.isToken),t(o.typeParameter,s,e.isTypeParameterDeclaration),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode));case 173:return e.updateLiteralTypeNode(o,t(o.literal,s,e.isExpression));case 174:return e.updateObjectBindingPattern(o,u(o.elements,s,e.isBindingElement));case 175:return e.updateArrayBindingPattern(o,u(o.elements,s,e.isArrayBindingElement));case 176:return e.updateBindingElement(o,t(o.dotDotDotToken,l,e.isToken),t(o.propertyName,s,e.isPropertyName),t(o.name,s,e.isBindingName),t(o.initializer,s,e.isExpression));case 177:return e.updateArrayLiteral(o,u(o.elements,s,e.isExpression));case 178:return e.updateObjectLiteral(o,u(o.properties,s,e.isObjectLiteralElementLike));case 179:return e.updatePropertyAccess(o,t(o.expression,s,e.isExpression),t(o.name,s,e.isIdentifier));case 180:return e.updateElementAccess(o,t(o.expression,s,e.isExpression),t(o.argumentExpression,s,e.isExpression));case 181:return e.updateCall(o,t(o.expression,s,e.isExpression),u(o.typeArguments,s,e.isTypeNode),u(o.arguments,s,e.isExpression));case 182:return e.updateNew(o,t(o.expression,s,e.isExpression),u(o.typeArguments,s,e.isTypeNode),u(o.arguments,s,e.isExpression));case 183:return e.updateTaggedTemplate(o,t(o.tag,s,e.isExpression),t(o.template,s,e.isTemplateLiteral));case 184:return e.updateTypeAssertion(o,t(o.type,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 185:return e.updateParen(o,t(o.expression,s,e.isExpression));case 186:return e.updateFunctionExpression(o,u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 187:return e.updateArrowFunction(o,u(o.modifiers,s,e.isModifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),t(o.equalsGreaterThanToken,s,e.isToken),a(o.body,s,c));case 188:return e.updateDelete(o,t(o.expression,s,e.isExpression));case 189:return e.updateTypeOf(o,t(o.expression,s,e.isExpression));case 190:return e.updateVoid(o,t(o.expression,s,e.isExpression));case 191:return e.updateAwait(o,t(o.expression,s,e.isExpression));case 192:return e.updatePrefix(o,t(o.operand,s,e.isExpression));case 193:return e.updatePostfix(o,t(o.operand,s,e.isExpression));case 194:return e.updateBinary(o,t(o.left,s,e.isExpression),t(o.right,s,e.isExpression),t(o.operatorToken,s,e.isToken));case 195:return e.updateConditional(o,t(o.condition,s,e.isExpression),t(o.questionToken,s,e.isToken),t(o.whenTrue,s,e.isExpression),t(o.colonToken,s,e.isToken),t(o.whenFalse,s,e.isExpression));case 196:return e.updateTemplateExpression(o,t(o.head,s,e.isTemplateHead),u(o.templateSpans,s,e.isTemplateSpan));case 197:return e.updateYield(o,t(o.asteriskToken,l,e.isToken),t(o.expression,s,e.isExpression));case 198:return e.updateSpread(o,t(o.expression,s,e.isExpression));case 199:return e.updateClassExpression(o,u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isClassElement));case 201:return e.updateExpressionWithTypeArguments(o,u(o.typeArguments,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 202:return e.updateAsExpression(o,t(o.expression,s,e.isExpression),t(o.type,s,e.isTypeNode));case 203:return e.updateNonNullExpression(o,t(o.expression,s,e.isExpression));case 204:return e.updateMetaProperty(o,t(o.name,s,e.isIdentifier));case 205:return e.updateTemplateSpan(o,t(o.expression,s,e.isExpression),t(o.literal,s,e.isTemplateMiddleOrTemplateTail));case 207:return e.updateBlock(o,u(o.statements,s,e.isStatement));case 208:return e.updateVariableStatement(o,u(o.modifiers,s,e.isModifier),t(o.declarationList,s,e.isVariableDeclarationList));case 210:return e.updateStatement(o,t(o.expression,s,e.isExpression));case 211:return e.updateIf(o,t(o.expression,s,e.isExpression),t(o.thenStatement,s,e.isStatement,e.liftToBlock),t(o.elseStatement,s,e.isStatement,e.liftToBlock));case 212:return e.updateDo(o,t(o.statement,s,e.isStatement,e.liftToBlock),t(o.expression,s,e.isExpression));case 213:return e.updateWhile(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 214:return e.updateFor(o,t(o.initializer,s,e.isForInitializer),t(o.condition,s,e.isExpression),t(o.incrementor,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 215:return e.updateForIn(o,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 216:return e.updateForOf(o,o.awaitModifier,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 217:return e.updateContinue(o,t(o.label,s,e.isIdentifier));case 218:return e.updateBreak(o,t(o.label,s,e.isIdentifier));case 219:return e.updateReturn(o,t(o.expression,s,e.isExpression));case 220:return e.updateWith(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 221:return e.updateSwitch(o,t(o.expression,s,e.isExpression),t(o.caseBlock,s,e.isCaseBlock));case 222:return e.updateLabel(o,t(o.label,s,e.isIdentifier),t(o.statement,s,e.isStatement,e.liftToBlock));case 223:return e.updateThrow(o,t(o.expression,s,e.isExpression));case 224:return e.updateTry(o,t(o.tryBlock,s,e.isBlock),t(o.catchClause,s,e.isCatchClause),t(o.finallyBlock,s,e.isBlock));case 226:return e.updateVariableDeclaration(o,t(o.name,s,e.isBindingName),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 227:return e.updateVariableDeclarationList(o,u(o.declarations,s,e.isVariableDeclaration));case 228:return e.updateFunctionDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 229:return e.updateClassDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isClassElement));case 230:return e.updateInterfaceDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isTypeElement));case 231:return e.updateTypeAliasDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),t(o.type,s,e.isTypeNode));case 232:return e.updateEnumDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.members,s,e.isEnumMember));case 233:return e.updateModuleDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.body,s,e.isModuleBody));case 234:return e.updateModuleBlock(o,u(o.statements,s,e.isStatement));case 235:return e.updateCaseBlock(o,u(o.clauses,s,e.isCaseOrDefaultClause));case 236:return e.updateNamespaceExportDeclaration(o,t(o.name,s,e.isIdentifier));case 237:return e.updateImportEqualsDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.moduleReference,s,e.isModuleReference));case 238:return e.updateImportDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.importClause,s,e.isImportClause),t(o.moduleSpecifier,s,e.isExpression));case 239:return e.updateImportClause(o,t(o.name,s,e.isIdentifier),t(o.namedBindings,s,e.isNamedImportBindings));case 240:return e.updateNamespaceImport(o,t(o.name,s,e.isIdentifier));case 241:return e.updateNamedImports(o,u(o.elements,s,e.isImportSpecifier));case 242:return e.updateImportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 243:return e.updateExportAssignment(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.expression,s,e.isExpression));case 244:return e.updateExportDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.exportClause,s,e.isNamedExports),t(o.moduleSpecifier,s,e.isExpression));case 245:return e.updateNamedExports(o,u(o.elements,s,e.isExportSpecifier));case 246:return e.updateExportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 248:return e.updateExternalModuleReference(o,t(o.expression,s,e.isExpression));case 249:return e.updateJsxElement(o,t(o.openingElement,s,e.isJsxOpeningElement),u(o.children,s,e.isJsxChild),t(o.closingElement,s,e.isJsxClosingElement));case 250:return e.updateJsxSelfClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression),t(o.attributes,s,e.isJsxAttributes));case 251:return e.updateJsxOpeningElement(o,t(o.tagName,s,e.isJsxTagNameExpression),t(o.attributes,s,e.isJsxAttributes));case 252:return e.updateJsxClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression));case 253:return e.updateJsxAttribute(o,t(o.name,s,e.isIdentifier),t(o.initializer,s,e.isStringLiteralOrJsxExpression));case 254:return e.updateJsxAttributes(o,u(o.properties,s,e.isJsxAttributeLike));case 255:return e.updateJsxSpreadAttribute(o,t(o.expression,s,e.isExpression));case 256:return e.updateJsxExpression(o,t(o.expression,s,e.isExpression));case 257:return e.updateCaseClause(o,t(o.expression,s,e.isExpression),u(o.statements,s,e.isStatement));case 258:return e.updateDefaultClause(o,u(o.statements,s,e.isStatement));case 259:return e.updateHeritageClause(o,u(o.types,s,e.isExpressionWithTypeArguments));case 260:return e.updateCatchClause(o,t(o.variableDeclaration,s,e.isVariableDeclaration),t(o.block,s,e.isBlock));case 261:return e.updatePropertyAssignment(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 262:return e.updateShorthandPropertyAssignment(o,t(o.name,s,e.isIdentifier),t(o.objectAssignmentInitializer,s,e.isExpression));case 263:return e.updateSpreadAssignment(o,t(o.expression,s,e.isExpression));case 264:return e.updateEnumMember(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 265:return e.updateSourceFileNode(o,r(o.statements,s,c));case 288:return e.updatePartiallyEmittedExpression(o,t(o.expression,s,e.isExpression));case 289:return e.updateCommaList(o,u(o.elements,s,e.isExpression));default:return o}}};}(r||(r={})),function(e){function t(e,t,n){return e?t(n,e):n}function n(e,t,n){return e?t(n,e):n}function r(r,i,a,o){if(void 0===r)return i;var s=o?n:e.reduceLeft,c=o||a,u=r.kind;if(u>0&&u<=142)return i;if(u>=158&&u<=173)return i;var l=i;switch(r.kind){case 206:case 209:case 200:case 225:case 287:break;case 143:l=t(r.left,a,l),l=t(r.right,a,l);break;case 144:l=t(r.expression,a,l);break;case 146:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 147:l=t(r.expression,a,l);break;case 148:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.questionToken,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 149:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 151:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 152:l=s(r.modifiers,c,l),l=s(r.parameters,c,l),l=t(r.body,a,l);break;case 153:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 154:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.parameters,c,l),l=t(r.body,a,l);break;case 174:case 175:l=s(r.elements,c,l);break;case 176:l=t(r.propertyName,a,l),l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 177:l=s(r.elements,c,l);break;case 178:l=s(r.properties,c,l);break;case 179:l=t(r.expression,a,l),l=t(r.name,a,l);break;case 180:l=t(r.expression,a,l),l=t(r.argumentExpression,a,l);break;case 181:case 182:l=t(r.expression,a,l),l=s(r.typeArguments,c,l),l=s(r.arguments,c,l);break;case 183:l=t(r.tag,a,l),l=t(r.template,a,l);break;case 184:l=t(r.type,a,l),l=t(r.expression,a,l);break;case 186:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 187:l=s(r.modifiers,c,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 185:case 188:case 189:case 190:case 191:case 197:case 198:case 203:l=t(r.expression,a,l);break;case 192:case 193:l=t(r.operand,a,l);break;case 194:l=t(r.left,a,l),l=t(r.right,a,l);break;case 195:l=t(r.condition,a,l),l=t(r.whenTrue,a,l),l=t(r.whenFalse,a,l);break;case 196:l=t(r.head,a,l),l=s(r.templateSpans,c,l);break;case 199:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.heritageClauses,c,l),l=s(r.members,c,l);break;case 201:l=t(r.expression,a,l),l=s(r.typeArguments,c,l);break;case 202:l=t(r.expression,a,l),l=t(r.type,a,l);break;case 205:l=t(r.expression,a,l),l=t(r.literal,a,l);break;case 207:l=s(r.statements,c,l);break;case 208:l=s(r.modifiers,c,l),l=t(r.declarationList,a,l);break;case 210:l=t(r.expression,a,l);break;case 211:l=t(r.expression,a,l),l=t(r.thenStatement,a,l),l=t(r.elseStatement,a,l);break;case 212:l=t(r.statement,a,l),l=t(r.expression,a,l);break;case 213:case 220:l=t(r.expression,a,l),l=t(r.statement,a,l);break;case 214:l=t(r.initializer,a,l),l=t(r.condition,a,l),l=t(r.incrementor,a,l),l=t(r.statement,a,l);break;case 215:case 216:l=t(r.initializer,a,l),l=t(r.expression,a,l),l=t(r.statement,a,l);break;case 219:case 223:l=t(r.expression,a,l);break;case 221:l=t(r.expression,a,l),l=t(r.caseBlock,a,l);break;case 222:l=t(r.label,a,l),l=t(r.statement,a,l);break;case 224:l=t(r.tryBlock,a,l),l=t(r.catchClause,a,l),l=t(r.finallyBlock,a,l);break;case 226:l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 227:l=s(r.declarations,c,l);break;case 228:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 229:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.heritageClauses,c,l),l=s(r.members,c,l);break;case 232:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.members,c,l);break;case 233:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.body,a,l);break;case 234:l=s(r.statements,c,l);break;case 235:l=s(r.clauses,c,l);break;case 237:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.moduleReference,a,l);break;case 238:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.importClause,a,l),l=t(r.moduleSpecifier,a,l);break;case 239:l=t(r.name,a,l),l=t(r.namedBindings,a,l);break;case 240:l=t(r.name,a,l);break;case 241:case 245:l=s(r.elements,c,l);break;case 242:case 246:l=t(r.propertyName,a,l),l=t(r.name,a,l);break;case 243:l=e.reduceLeft(r.decorators,a,l),l=e.reduceLeft(r.modifiers,a,l),l=t(r.expression,a,l);break;case 244:l=e.reduceLeft(r.decorators,a,l),l=e.reduceLeft(r.modifiers,a,l),l=t(r.exportClause,a,l),l=t(r.moduleSpecifier,a,l);break;case 248:l=t(r.expression,a,l);break;case 249:l=t(r.openingElement,a,l),l=e.reduceLeft(r.children,a,l),l=t(r.closingElement,a,l);break;case 250:case 251:l=t(r.tagName,a,l),l=t(r.attributes,a,l);break;case 254:l=s(r.properties,c,l);break;case 252:l=t(r.tagName,a,l);break;case 253:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 255:case 256:l=t(r.expression,a,l);break;case 257:l=t(r.expression,a,l);case 258:l=s(r.statements,c,l);break;case 259:l=s(r.types,c,l);break;case 260:l=t(r.variableDeclaration,a,l),l=t(r.block,a,l);break;case 261:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 262:l=t(r.name,a,l),l=t(r.objectAssignmentInitializer,a,l);break;case 263:l=t(r.expression,a,l);break;case 264:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 265:l=s(r.statements,c,l);break;case 288:l=t(r.expression,a,l);break;case 289:l=s(r.elements,c,l);}return l}function i(t){if(void 0===t)return 0;if(536870912&t.transformFlags)return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind);var n=o(t);return e.computeTransformFlagsForNode(t,n)}function a(e){if(void 0===e)return 0;for(var t=0,n=0,r=0,a=e;r=1)||1572864&m.transformFlags||1572864&e.getTargetOfBindingOrAssignmentElement(m).transformFlags||e.isComputedPropertyName(g)){_&&(n.emitBindingOrAssignment(n.createObjectBindingOrAssignmentPattern(_),s,c,i),_=void 0);var y=a(n,s,g);e.isComputedPropertyName(g)&&(d=e.append(d,y.argumentExpression)),t(n,m,y,m);}else _=e.append(_,m);}}_&&n.emitBindingOrAssignment(n.createObjectBindingOrAssignmentPattern(_),s,c,i);}function r(n,r,i,a,s){var c=e.getElementsOfBindingOrAssignmentPattern(i),u=c.length;n.level<1&&n.downlevelIteration?a=o(n,e.createReadHelper(n.context,a,u>0&&e.getRestIndicatorOfBindingOrAssignmentElement(c[u-1])?void 0:u,s),!1,s):(1!==u&&(n.level<1||0===u)||e.every(c,e.isOmittedExpression))&&(a=o(n,a,!e.isDeclarationBindingElement(r)||0!==u,s));for(var l,_,d=0;d=1)if(1048576&p.transformFlags){var f=e.createTempVariable(void 0);n.hoistTempVariables&&n.context.hoistVariableDeclaration(f),_=e.append(_,[f,p]),l=e.append(l,n.createArrayBindingOrAssignmentElement(f));}else l=e.append(l,p);else{if(e.isOmittedExpression(p))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(p)){if(d===u-1){var m=e.createArraySlice(a,d);t(n,p,m,p);}}else t(n,p,m=e.createElementAccess(a,d),p);}}if(l&&n.emitBindingOrAssignment(n.createArrayBindingOrAssignmentPattern(l),a,s,i),_)for(var g=0,y=_;g0)return!0;var n=e.getFirstConstructorWithBody(t);return!!n&&e.forEach(n.parameters,b)}function b(e){return void 0!==e.decorators&&e.decorators.length>0}function x(t,n){var r=0;return e.some(n)&&(r|=1),e.getClassExtendsHeritageClauseElement(t)&&(r|=64),v(t)&&(r|=2),e.childIsDecorated(t)&&(r|=4),pt(t)?r|=8:gt(t)?r|=32:mt(t)&&(r|=16),Wt<=1&&7&r&&(r|=128),r}function S(t){var n=I(t,!0),r=x(t,n);128&r&&i.startLexicalEnvironment();var a=t.name||(5&r?e.getGeneratedNameForNode(t):void 0),o=2&r?T(t,a,r):k(t,a,r),s=[o];if(1&r&&B(s,n,128&r?e.getInternalName(t):e.getLocalName(t)),Q(s,t,!1),Q(s,t,!0),te(s,t),128&r){var c=e.createTokenRange(e.skipTrivia(Yt.text,t.members.end),18),u=e.getInternalName(t),l=e.createPartiallyEmittedExpression(u);l.end=c.end,e.setEmitFlags(l,1536);var _=e.createReturn(l);_.pos=c.pos,e.setEmitFlags(_,1920),s.push(_),e.addRange(s,i.endLexicalEnvironment());var d=e.createImmediatelyInvokedArrowFunction(s);e.setEmitFlags(d,33554432);var p=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(t,!1,!1),void 0,d)]));e.setOriginalNode(p,t),e.setCommentRange(p,t),e.setSourceMapRange(p,e.moveRangePastDecorators(t)),e.startOnNewLine(p),s=[p];}return 8&r?ht(s,t):(128&r||2&r)&&(32&r?s.push(e.createExportDefault(e.getLocalName(t,!1,!0))):16&r&&s.push(e.createExternalModuleExport(e.getLocalName(t,!1,!0)))),s.length>1&&(s.push(e.createEndOfDeclarationMarker(t)),e.setEmitFlags(o,4194304|e.getEmitFlags(o))),e.singleOrMany(s)}function k(t,n,r){var i=128&r?void 0:e.visitNodes(t.modifiers,g,e.isModifier),a=e.createClassDeclaration(void 0,i,n,void 0,e.visitNodes(t.heritageClauses,c,e.isHeritageClause),D(t,0!=(64&r))),o=e.getEmitFlags(t);return 1&r&&(o|=32),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}function T(t,n,r){var i=e.moveRangePastDecorators(t),a=Tt(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,c,e.isHeritageClause),u=D(t,0!=(64&r)),l=e.createClassExpression(void 0,n,void 0,s,u);e.setOriginalNode(l,t),e.setTextRange(l,i);var _=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,a?e.createAssignment(a,l):l)],1));return e.setOriginalNode(_,t),e.setTextRange(_,i),e.setCommentRange(_,t),_}function C(t){var n=I(t,!0),r=e.visitNodes(t.heritageClauses,c,e.isHeritageClause),i=D(t,e.some(r,function(e){return 85===e.token})),a=e.createClassExpression(void 0,t.name,void 0,r,i);if(e.setOriginalNode(a,t),e.setTextRange(a,t),n.length>0){var o=[],s=e.createTempVariable(qt);return 8388608&Vt.getNodeCheckFlags(t)&&(Nt(),rn[e.getOriginalNodeId(t)]=e.getSynthesizedClone(s)),e.setEmitFlags(a,65536|e.getEmitFlags(a)),o.push(e.startOnNewLine(e.createAssignment(s,a))),e.addRange(o,K(n,s)),o.push(e.startOnNewLine(s)),e.inlineExpressions(o)}return a}function D(t,n){var r=[],i=E(t,n);return i&&r.push(i),e.addRange(r,e.visitNodes(t.members,f,e.isClassElement)),e.setTextRange(e.createNodeArray(r),t.members)}function E(t,n){var r=e.forEach(t.members,R),a=262144&t.transformFlags,o=e.getFirstConstructorWithBody(t);if(!r&&!a)return e.visitEachChild(o,c,i);var s=N(o),u=A(t,o,n);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,s,u),o||t),o))}function N(t){return e.visitParameterList(t&&t.parameters,c,i)||[]}function A(t,n,r){var i=[],a=0;if(zt(),n){a=w(n,i);var o=O(n);e.addRange(i,e.map(o,F));}else r&&i.push(e.createStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));return B(i,I(t,!1),e.createThis()),n&&e.addRange(i,e.visitNodes(n.body.statements,c,e.isStatement,a)),i=e.mergeLexicalEnvironment(i,Ut()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(i),n?n.body.statements:t.members),!0),n?n.body:void 0)}function w(t,n){if(t.body){var r=t.body.statements,i=e.addPrologue(n,r,!1,c);if(i===r.length)return i;var a=r[i];return 210===a.kind&&e.isSuperCall(a.expression)?(n.push(e.visitNode(a,c,e.isStatement)),i+1):i}return 0}function O(t){return e.filter(t.parameters,P)}function P(t){return e.hasModifier(t,92)&&e.isIdentifier(t.name)}function F(t){e.Debug.assert(e.isIdentifier(t.name));var n=t.name,r=e.getMutableClone(n);e.setEmitFlags(r,1584);var i=e.getMutableClone(n);return e.setEmitFlags(i,1536),e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),r),t.name),i)),e.moveRangePos(t,-1)))}function I(t,n){return e.filter(t.members,n?L:R)}function L(e){return M(e,!0)}function R(e){return M(e,!1)}function M(t,n){return 149===t.kind&&n===e.hasModifier(t,32)&&void 0!==t.initializer}function B(t,n,r){for(var i=0,a=n;i0?149===r.kind?e.createVoidZero():e.createNull():void 0,u=t(i,a,o,s,c,e.moveRangePastDecorators(r));return e.setEmitFlags(u,1536),u}}function te(t,n){var r=ne(n);r&&t.push(e.setOriginalNode(e.createStatement(r),n));}function ne(n){var r=Y(n,n,$(n));if(r){var a=rn&&rn[e.getOriginalNodeId(n)],o=e.getLocalName(n,!1,!0),s=t(i,r,o),c=e.createAssignment(o,a?e.createAssignment(a,s):s);return e.setEmitFlags(c,1536),e.setSourceMapRange(c,e.moveRangePastDecorators(n)),c}}function re(t){return e.visitNode(t.expression,c,e.isExpression)}function ie(t,n){var a;if(t){a=[];for(var o=0,s=t;o= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},c={name:"typescript:metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},u={name:"typescript:param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"};}(r||(r={}));!function(e){function t(t,n,i,a){t.requestEmitHelper(r);var o=e.createFunctionExpression(void 0,e.createToken(39),void 0,void 0,[],void 0,a);return(o.emitNode||(o.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__awaiter"),void 0,[e.createThis(),n?e.createIdentifier("arguments"):e.createVoidZero(),i?e.createExpressionFromEntityName(i):e.createVoidZero(),o])}var n;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper";}(n||(n={})),e.transformES2017=function(n){function r(t){if(0==(16&t.transformFlags))return t;switch(t.kind){case 120:return;case 191:return i(t);case 151:return a(t);case 228:return o(t);case 186:return s(t);case 187:return c(t);default:return e.visitEachChild(t,r,n)}}function i(t){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,r,e.isExpression)),t),t)}function a(t){return e.updateMethod(t,void 0,e.visitNodes(t.modifiers,r,e.isModifier),t.asteriskToken,t.name,void 0,void 0,e.visitParameterList(t.parameters,r,n),void 0,2&e.getFunctionFlags(t)?u(t):e.visitFunctionBody(t.body,r,n))}function o(t){return e.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,r,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,r,n),void 0,2&e.getFunctionFlags(t)?u(t):e.visitFunctionBody(t.body,r,n))}function s(t){return e.updateFunctionExpression(t,e.visitNodes(t.modifiers,r,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,r,n),void 0,2&e.getFunctionFlags(t)?u(t):e.visitFunctionBody(t.body,r,n))}function c(t){return e.updateArrowFunction(t,e.visitNodes(t.modifiers,r,e.isModifier),void 0,e.visitParameterList(t.parameters,r,n),void 0,t.equalsGreaterThanToken,2&e.getFunctionFlags(t)?u(t):e.visitFunctionBody(t.body,r,n))}function u(i){S();var a=e.getOriginalNode(i,e.isFunctionLike).type,o=D<2?_(a):void 0,s=187===i.kind,c=0!=(8192&T.getNodeCheckFlags(i));if(s){var u=t(n,c,o,l(i.body)),p=k();return e.some(p)?(g=e.convertToFunctionBody(u),e.updateBlock(g,e.setTextRange(e.createNodeArray(e.concatenate(g.statements,p)),g.statements))):u}var f=[],m=e.addPrologue(f,i.body.statements,!1,r);f.push(e.createReturn(t(n,c,o,l(i.body,m)))),e.addRange(f,k());var g=e.createBlock(f,!0);return e.setTextRange(g,i.body),D>=2&&(4096&T.getNodeCheckFlags(i)?(d(),e.addEmitHelper(g,e.advancedAsyncSuperHelper)):2048&T.getNodeCheckFlags(i)&&(d(),e.addEmitHelper(g,e.asyncSuperHelper))),g}function l(t,i){if(e.isBlock(t))return e.updateBlock(t,e.visitLexicalEnvironment(t.statements,r,n,i));x();var a=e.convertToFunctionBody(e.visitNode(t,r,e.isConciseBody)),o=k();return e.updateBlock(a,e.setTextRange(e.createNodeArray(e.concatenate(a.statements,o)),a.statements))}function _(t){var n=t&&e.getEntityNameFromTypeNode(t);if(n&&e.isEntityName(n)){var r=T.getTypeReferenceSerializationKind(n);if(r===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||r===e.TypeReferenceSerializationKind.Unknown)return n}}function d(){0==(1&b)&&(b|=1,n.enableSubstitution(181),n.enableSubstitution(179),n.enableSubstitution(180),n.enableEmitNotification(229),n.enableEmitNotification(151),n.enableEmitNotification(153),n.enableEmitNotification(154),n.enableEmitNotification(152));}function p(e){switch(e.kind){case 179:return f(e);case 180:return m(e);case 181:return g(e)}return e}function f(t){return 97===t.expression.kind?h(e.createLiteral(e.unescapeLeadingUnderscores(t.name.escapedText)),t):t}function m(e){return 97===e.expression.kind?h(e.argumentExpression,e):e}function g(t){var n=t.expression;if(e.isSuperProperty(n)){var r=e.isPropertyAccessExpression(n)?f(n):m(n);return e.createCall(e.createPropertyAccess(r,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}function y(e){var t=e.kind;return 229===t||152===t||151===t||153===t||154===t}function h(t,n){return 4096&E?e.setTextRange(e.createPropertyAccess(e.createCall(e.createIdentifier("_super"),void 0,[t]),"value"),n):e.setTextRange(e.createCall(e.createIdentifier("_super"),void 0,[t]),n)}var v,b,x=n.startLexicalEnvironment,S=n.resumeLexicalEnvironment,k=n.endLexicalEnvironment,T=n.getEmitResolver(),C=n.getCompilerOptions(),D=e.getEmitScriptTarget(C),E=0,N=n.onEmitNode,A=n.onSubstituteNode;return n.onEmitNode=function(e,t,n){if(1&b&&y(t)){var r=6144&T.getNodeCheckFlags(t);if(r!==E){var i=E;return E=r,N(e,t,n),void(E=i)}}N(e,t,n);},n.onSubstituteNode=function(e,t){return t=A(e,t),1===e&&E?p(t):t},function(t){if(t.isDeclarationFile)return t;v=t;var i=e.visitEachChild(t,r,n);return e.addEmitHelpers(i,n.readEmitHelpers()),v=void 0,i}};var r={name:"typescript:awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'};e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:"\n const _super = name => super[name];\n "},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:"\n const _super = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);\n "};}(r||(r={}));!function(e){function t(t,n){return t.getCompilerOptions().target>=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,n):(t.requestEmitHelper(s),e.createCall(e.getHelperName("__assign"),void 0,n))}function n(t,n){return t.requestEmitHelper(c),e.createCall(e.getHelperName("__await"),void 0,[n])}function r(t,n){return t.requestEmitHelper(c),t.requestEmitHelper(u),(n.emitNode||(n.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__asyncGenerator"),void 0,[e.createThis(),e.createIdentifier("arguments"),n])}function i(t,n,r){return t.requestEmitHelper(c),t.requestEmitHelper(l),e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),void 0,[n]),r)}function a(t,n,r){return t.requestEmitHelper(_),e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),void 0,[n]),r)}var o;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper";}(o||(o={})),e.transformESNext=function(o){function s(e){return l(e,!1)}function c(e){return l(e,!0)}function u(e){if(120!==e.kind)return e}function l(t,n){if(0==(8&t.transformFlags))return t;switch(t.kind){case 191:return _(t);case 197:return d(t);case 222:return p(t);case 178:return m(t);case 194:return v(t,n);case 226:return b(t);case 216:return k(t,void 0);case 214:return x(t);case 190:return S(t);case 152:return A(t);case 151:return P(t);case 153:return w(t);case 154:return O(t);case 228:return F(t);case 186:return L(t);case 187:return I(t);case 146:return N(t);case 210:return g(t);case 185:return y(t,n);case 260:return h(t);default:return e.visitEachChild(t,s,o)}}function _(t){return 2&te&&1&te?e.setOriginalNode(e.setTextRange(e.createYield(n(o,e.visitNode(t.expression,s,e.isExpression))),t),t):e.visitEachChild(t,s,o)}function d(t){if(2&te&&1&te&&t.asteriskToken){var r=e.visitNode(t.expression,s,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(n(o,e.updateYield(t,t.asteriskToken,i(o,a(o,r,r),r)))),t),t)}return e.visitEachChild(t,s,o)}function p(t){if(2&te&&1&te){var n=e.unwrapInnermostStatementOfLabel(t);return 216===n.kind&&n.awaitModifier?k(n,t):e.restoreEnclosingLabel(e.visitEachChild(t,s,o),t)}return e.visitEachChild(t,s,o)}function f(t){for(var n,r=[],i=0,a=t;i=2&&(4096&H.getNodeCheckFlags(t)?(K(),e.addEmitHelper(a,e.advancedAsyncSuperHelper)):2048&H.getNodeCheckFlags(t)&&(K(),e.addEmitHelper(a,e.asyncSuperHelper))),a}function M(t){$();var n=0,r=[],i=e.visitNode(t.body,s,e.isConciseBody);e.isBlock(i)&&(n=e.addPrologue(r,i.statements,!1,s)),e.addRange(r,B(void 0,t));var a=W();if(n>0||e.some(r)||e.some(a)){var o=e.convertToFunctionBody(i,!0);return e.addRange(r,o.statements.slice(n)),e.addRange(r,a),e.updateBlock(o,e.setTextRange(e.createNodeArray(r),o.statements))}return i}function B(t,n){for(var r=0,i=n.parameters;r 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };\n '},l={name:"typescript:asyncDelegator",scoped:!1,text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; }\n };\n '},_={name:"typescript:asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncIterator) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator];\n return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator]();\n };\n '};}(r||(r={}));!function(e){e.transformJsx=function(n){function r(e){return 4&e.transformFlags?i(e):e}function i(t){switch(t.kind){case 249:return o(t,!1);case 250:return s(t,!1);case 256:return v(t);default:return e.visitEachChild(t,r,n)}}function a(t){switch(t.kind){case 10:return d(t);case 256:return v(t);case 249:return o(t,!0);case 250:return s(t,!0);default:return void e.Debug.failBadSyntaxKind(t)}}function o(e,t){return c(e.openingElement,e.children,t,e)}function s(e,t){return c(e,void 0,t,e)}function c(t,r,i,o){var s,c=y(t),_=t.attributes.properties;if(0===_.length)s=e.createNull();else{var d=e.flatten(e.spanMap(_,e.isJsxSpreadAttribute,function(t,n){return n?e.map(t,u):e.createObjectLiteral(e.map(t,l))}));e.isJsxSpreadAttribute(_[0])&&d.unshift(e.createObjectLiteral()),(s=e.singleOrUndefined(d))||(s=e.createAssignHelper(n,d));}var p=e.createExpressionForJsxElement(n.getEmitResolver().getJsxFactoryEntity(),b.reactNamespace,c,s,e.mapDefined(r,a),t,o);return i&&e.startOnNewLine(p),p}function u(t){return e.visitNode(t.expression,r,e.isExpression)}function l(t){var n=h(t),r=_(t.initializer);return e.createPropertyAssignment(n,r)}function _(t){if(void 0===t)return e.createTrue();if(9===t.kind){var n=g(t.text);return n?e.setTextRange(e.createLiteral(n),t):t}if(256===t.kind)return void 0===t.expression?e.createTrue():v(t);e.Debug.failBadSyntaxKind(t);}function d(t){var n=p(e.getTextOfNode(t,!0));return void 0===n?void 0:e.createLiteral(n)}function p(t){for(var n,r=0,i=-1,a=0;a=0,"statementOffset not initialized correctly!"));var c=r&&95!==e.skipOuterExpressions(r.expression).kind,u=N(a,t,c,i,o);1!==u&&2!==u||o++,t&&(1===u&&(At|=4096),e.addRange(a,e.visitNodes(t.body.statements,s,e.isStatement,o))),!c||2===u||t&&E(t.body)||a.push(e.createReturn(e.createIdentifier("_this"))),e.addRange(a,xt()),t&&j(a,t,!1);var l=e.createBlock(e.setTextRange(e.createNodeArray(a),t?t.body.statements:n.members),!0);return e.setTextRange(l,t?t.body:n),t||e.setEmitFlags(l,1536),l}function E(t){if(219===t.kind)return!0;if(211===t.kind){var n=t;if(n.elseStatement)return E(n.thenStatement)&&E(n.elseStatement)}else if(207===t.kind){var r=e.lastOrUndefined(t.statements);if(r&&E(r))return!0}return!1}function N(t,n,r,i,a){if(!r)return n&&B(t,n),0;if(!n)return t.push(e.createReturn(w())),2;if(i)return K(t,n,w()),lt(),1;var o,s,c=n.body.statements;if(a0?t.push(e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(r,s,n,0,o))),1048576)):a&&t.push(e.setEmitFlags(e.createStatement(e.createAssignment(o,e.visitNode(a,s,e.isExpression))),1048576));}function L(t,n,r,i){i=e.visitNode(i,s,e.isExpression);var a=e.createIf(e.createTypeCheck(e.getSynthesizedClone(r),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createStatement(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(r),48),e.setEmitFlags(i,48|e.getEmitFlags(i))),n))]),n),417));a.startsOnNewLine=!0,e.setTextRange(a,n),e.setEmitFlags(a,1048992),t.push(a);}function R(e,t){return e&&e.dotDotDotToken&&71===e.name.kind&&!t}function M(t,n,r){var i=e.lastOrUndefined(n.parameters);if(R(i,r)){var a=e.getMutableClone(i.name);e.setEmitFlags(a,48);var o=e.getSynthesizedClone(i.name),s=n.parameters.length-1,c=e.createLoopVariable();t.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0,e.createArrayLiteral([]))])),i),1048576));var u=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(c,void 0,e.createLiteral(s))]),i),e.setTextRange(e.createLessThan(c,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),i),e.setTextRange(e.createPostfixIncrement(c),i),e.createBlock([e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.createElementAccess(o,0===s?c:e.createSubtract(c,e.createLiteral(s))),e.createElementAccess(e.createIdentifier("arguments"),c))),i))]));e.setEmitFlags(u,1048576),e.startOnNewLine(u),t.push(u);}}function B(t,n){32768&n.transformFlags&&187!==n.kind&&K(t,n,e.createThis());}function K(t,n,r,i){lt();var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_this",void 0,r)]));e.setEmitFlags(a,1050112),e.setTextRange(a,i),e.setSourceMapRange(a,n),t.push(a);}function j(t,n,r){if(16384&At){var i=void 0;switch(n.kind){case 187:return t;case 151:case 153:case 154:i=e.createVoidZero();break;case 152:i=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 228:case 186:i=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),93,e.getLocalName(n))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:e.Debug.failBadSyntaxKind(n);}var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_newTarget",void 0,i)]));if(r)return[a].concat(t);t.unshift(a);}return t}function J(t,n){for(var r=0,i=n.members;r0&&(o=!0),e.isBlock(l))a=e.addCustomPrologue(u,l.statements,a,s),r=l.statements,e.addRange(u,e.visitNodes(l.statements,s,e.isStatement,a)),!o&&l.multiLine&&(o=!0);else{e.Debug.assert(187===t.kind),r=e.moveRangeEnd(l,-1);var _=t.equalsGreaterThanToken;e.nodeIsSynthesized(_)||e.nodeIsSynthesized(l)||(e.rangeEndIsOnSameLineAsRangeStart(_,l,Et)?c=!0:o=!0);var d=e.visitNode(l,s,e.isExpression),p=e.createReturn(d);e.setTextRange(p,l),e.setEmitFlags(p,1440),u.push(p),i=l;}var f=n.endLexicalEnvironment();e.addRange(u,f),j(u,t,!1),!o&&f&&f.length&&(o=!0);var m=e.createBlock(e.setTextRange(e.createNodeArray(u),r),o);return e.setTextRange(m,t.body),!o&&c&&e.setEmitFlags(m,1),i&&e.setTokenSourceMapRange(m,18,i),e.setOriginalNode(m,t.body),m}function Y(t){var r=e.visitFunctionBody(t.body,c,n);return e.updateBlock(r,e.setTextRange(e.createNodeArray(j(r.statements,t,!0)),r.statements))}function Q(t,a){if(a)return e.visitEachChild(t,s,n);var o=256&At?r(4032,512):r(3904,128),c=e.visitEachChild(t,s,n);return i(o,0,0),c}function Z(t){switch(t.expression.kind){case 185:return e.updateStatement(t,ee(t.expression,!1));case 194:return e.updateStatement(t,te(t.expression,!1))}return e.visitEachChild(t,s,n)}function ee(t,r){if(!r)switch(t.expression.kind){case 185:return e.updateParen(t,ee(t.expression,!1));case 194:return e.updateParen(t,te(t.expression,!1))}return e.visitEachChild(t,s,n)}function te(t,r){return e.isDestructuringAssignment(t)?e.flattenDestructuringAssignment(t,s,n,0,r):e.visitEachChild(t,s,n)}function ne(t){var a,o=r(0,e.hasModifier(t,1)?32:0);if(wt&&0==(3&t.declarationList.flags)){for(var c=void 0,u=0,l=t.declarationList.declarations;u=t.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(t);r;){if(r===i||r===t)return!1;if(e.isClassElement(r)&&r.parent===t)return!0;r=r.parent;}return!1}function gt(t){return 1&Ot&&16&At?e.setTextRange(e.createIdentifier("_this"),t):t}function yt(t,n){return e.hasModifier(n,32)?e.getInternalName(t):e.createPropertyAccess(e.getInternalName(t),"prototype")}function ht(t,n){if(!t||!n)return!1;if(e.some(t.parameters))return!1;var r=e.firstOrUndefined(t.body.statements);if(!r||!e.nodeIsSynthesized(r)||210!==r.kind)return!1;var i=r.expression;if(!e.nodeIsSynthesized(i)||181!==i.kind)return!1;var a=i.expression;if(!e.nodeIsSynthesized(a)||97!==a.kind)return!1;var o=e.singleOrUndefined(i.arguments);if(!o||!e.nodeIsSynthesized(o)||198!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText}var vt=n.startLexicalEnvironment,bt=n.resumeLexicalEnvironment,xt=n.endLexicalEnvironment,St=n.hoistVariableDeclaration,kt=n.getCompilerOptions(),Tt=n.getEmitResolver(),Ct=n.onSubstituteNode,Dt=n.onEmitNode;n.onEmitNode=function(t,n,a){if(1&Ot&&e.isFunctionLike(n)){var o=r(16286,8&e.getEmitFlags(n)?81:65);return Dt(t,n,a),void i(o,0,0)}Dt(t,n,a);},n.onSubstituteNode=function(t,n){return n=Ct(t,n),1===t?pt(n):e.isIdentifier(n)?_t(n):n};var Et,Nt,At,wt,Ot;return function(t){if(t.isDeclarationFile)return t;Et=t,Nt=t.text;var r=_(t);return e.addEmitHelpers(r,n.readEmitHelpers()),Et=void 0,Nt=void 0,At=0,r}};var s={name:"typescript:extends",scoped:!1,priority:0,text:"\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();"};}(r||(r={}));!function(e){e.transformES5=function(t){function n(t){var n=i(t.name);return n?e.setTextRange(e.createElementAccess(t.expression,n),t):t}function r(t){var n=e.isIdentifier(t.name)&&i(t.name);return n?e.updatePropertyAssignment(t,n,t.initializer):t}function i(t){var n=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(e.unescapeLeadingUnderscores(t.escapedText)):void 0);if(n>=72&&n<=107)return e.setTextRange(e.createLiteral(t),t)}var a,o,s=t.getCompilerOptions();1!==s.jsx&&3!==s.jsx||(a=t.onEmitNode,t.onEmitNode=function(t,n,r){switch(n.kind){case 251:case 252:case 250:var i=n.tagName;o[e.getOriginalNodeId(i)]=!0;}a(t,n,r);},t.enableEmitNotification(251),t.enableEmitNotification(252),t.enableEmitNotification(250),o=[]);var c=t.onSubstituteNode;return t.onSubstituteNode=function(t,i){return i.id&&o&&o[i.id]?c(t,i):(i=c(t,i),e.isPropertyAccessExpression(i)?n(i):e.isPropertyAssignment(i)?r(i):i)},t.enableSubstitution(179),t.enableSubstitution(261),function(e){return e}};}(r||(r={}));!function(e){function t(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally"}}function n(t,n){return t.requestEmitHelper(c),e.createCall(e.getHelperName("__generator"),void 0,[e.createThis(),n])}var r;!function(e){e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally";}(r||(r={}));var i;!function(e){e[e.Open=0]="Open",e[e.Close=1]="Close";}(i||(i={}));var a;!function(e){e[e.Exception=0]="Exception",e[e.With=1]="With",e[e.Switch=2]="Switch",e[e.Loop=3]="Loop",e[e.Labeled=4]="Labeled";}(a||(a={}));var o;!function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done";}(o||(o={}));var s;!function(e){e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally";}(s||(s={})),e.transformGenerators=function(r){function i(t){var n=t.transformFlags;return Ft?a(t):Pt?o(t):256&n?c(t):512&n?e.visitEachChild(t,i,r):t}function a(e){switch(e.kind){case 212:return K(e);case 213:return J(e);case 221:return ee(e);case 222:return ne(e);default:return o(e)}}function o(t){switch(t.kind){case 228:return u(t);case 186:return l(t);case 153:case 154:return _(t);case 208:return p(t);case 214:return U(t);case 215:return V(t);case 218:return H(t);case 217:return W(t);case 219:return Y(t);default:return 16777216&t.transformFlags?s(t):33554944&t.transformFlags?e.visitEachChild(t,i,r):t}}function s(t){switch(t.kind){case 194:return f(t);case 195:return x(t);case 197:return S(t);case 177:return k(t);case 178:return C(t);case 180:return D(t);case 181:return E(t);case 182:return N(t);default:return e.visitEachChild(t,i,r)}}function c(t){switch(t.kind){case 228:return u(t);case 186:return l(t);default:return e.Debug.failBadSyntaxKind(t),e.visitEachChild(t,i,r)}}function u(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,t.modifiers,void 0,t.name,void 0,e.visitParameterList(t.parameters,i,r),void 0,d(t.body)),t),t);else{var n=Pt,a=Ft;Pt=!1,Ft=!1,t=e.visitEachChild(t,i,r),Pt=n,Ft=a;}return Pt?void kt(t):t}function l(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,i,r),void 0,d(t.body)),t),t);else{var n=Pt,a=Ft;Pt=!1,Ft=!1,t=e.visitEachChild(t,i,r),Pt=n,Ft=a;}return t}function _(t){var n=Pt,a=Ft;return Pt=!1,Ft=!1,t=e.visitEachChild(t,i,r),Pt=n,Ft=a,t}function d(t){var n=[],r=Pt,a=Ft,o=It,s=Lt,c=Rt,u=Mt,l=Bt,_=Kt,d=Qt,p=jt,f=Jt,m=zt,g=Ut;Pt=!0,Ft=!1,It=void 0,Lt=void 0,Rt=void 0,Mt=void 0,Bt=void 0,Kt=void 0,Qt=1,jt=void 0,Jt=void 0,zt=void 0,Ut=e.createTempVariable(void 0),xt();var y=e.addPrologue(n,t.statements,!1,i);A(t.statements,y);var h=tt();return e.addRange(n,St()),n.push(e.createReturn(h)),Pt=r,Ft=a,It=o,Lt=s,Rt=c,Mt=u,Bt=l,Kt=_,Qt=d,jt=p,Jt=f,zt=m,Ut=g,e.setTextRange(e.createBlock(n,t.multiLine),t)}function p(t){if(16777216&t.transformFlags)L(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var n=0,r=t.declarationList.declarations;n=59&&e<=70}function g(e){switch(e){case 59:return 37;case 60:return 38;case 61:return 39;case 62:return 40;case 63:return 41;case 64:return 42;case 65:return 45;case 66:return 46;case 67:return 47;case 68:return 48;case 69:return 49;case 70:return 50}}function y(t){var n=t.left,a=t.right;if(ae(a)){var o=void 0;switch(n.kind){case 179:o=e.updatePropertyAccess(n,ue(e.visitNode(n.expression,i,e.isLeftHandSideExpression)),n.name);break;case 180:o=e.updateElementAccess(n,ue(e.visitNode(n.expression,i,e.isLeftHandSideExpression)),ue(e.visitNode(n.argumentExpression,i,e.isExpression)));break;default:o=e.visitNode(n,i,e.isExpression);}var s=t.operatorToken.kind;return m(s)?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(ue(o),g(s),e.visitNode(a,i,e.isExpression)),t)),t):e.updateBinary(t,o,e.visitNode(a,i,e.isExpression))}return e.visitEachChild(t,i,r)}function h(t){if(ae(t.right)){if(e.isLogicalOperator(t.operatorToken.kind))return v(t);if(26===t.operatorToken.kind)return b(t);var n=e.getMutableClone(t);return n.left=ue(e.visitNode(t.left,i,e.isExpression)),n.right=e.visitNode(t.right,i,e.isExpression),n}return e.visitEachChild(t,i,r)}function v(t){var n=_e(),r=le();return Ve(r,e.visitNode(t.left,i,e.isExpression),t.left),53===t.operatorToken.kind?Ge(n,r,t.left):We(n,r,t.left),Ve(r,e.visitNode(t.right,i,e.isExpression),t.right),de(n),r}function b(t){function n(t){e.isBinaryExpression(t)&&26===t.operatorToken.kind?(n(t.left),n(t.right)):(ae(t)&&r.length>0&&(et(1,[e.createStatement(e.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,i,e.isExpression)));}var r=[];return n(t.left),n(t.right),e.inlineExpressions(r)}function x(t){if(ae(t.whenTrue)||ae(t.whenFalse)){var n=_e(),a=_e(),o=le();return Ge(n,e.visitNode(t.condition,i,e.isExpression),t.condition),Ve(o,e.visitNode(t.whenTrue,i,e.isExpression),t.whenTrue),$e(a),de(n),Ve(o,e.visitNode(t.whenFalse,i,e.isExpression),t.whenFalse),de(a),o}return e.visitEachChild(t,i,r)}function S(t){var n=_e(),a=e.visitNode(t.expression,i,e.isExpression);return t.asteriskToken?He(0==(8388608&e.getEmitFlags(t.expression))?e.createValuesHelper(r,a,t):a,t):Xe(a,t),de(n),ze(t)}function k(e){return T(e.elements,void 0,void 0,e.multiLine)}function T(t,n,r,a){var o,s=oe(t);if(s>0){o=le();var c=e.visitNodes(t,i,e.isExpression,0,s);Ve(o,e.createArrayLiteral(n?[n].concat(c):c)),n=void 0;}var u=e.reduceLeft(t,function(t,r){if(ae(r)&&t.length>0){var s=void 0!==o;o||(o=le()),Ve(o,s?e.createArrayConcat(o,[e.createArrayLiteral(t,a)]):e.createArrayLiteral(n?[n].concat(t):t,a)),n=void 0,t=[];}return t.push(e.visitNode(r,i,e.isExpression)),t},[],s);return o?e.createArrayConcat(o,[e.createArrayLiteral(u,a)]):e.setTextRange(e.createArrayLiteral(n?[n].concat(u):u,a),r)}function C(t){var n=t.properties,r=t.multiLine,a=oe(n),o=le();Ve(o,e.createObjectLiteral(e.visitNodes(n,i,e.isObjectLiteralElementLike,0,a),r));var s=e.reduceLeft(n,function(n,a){ae(a)&&n.length>0&&(qe(e.createStatement(e.inlineExpressions(n))),n=[]);var s=e.createExpressionForObjectLiteralElementLike(t,a,o),c=e.visitNode(s,i,e.isExpression);return c&&(r&&(c.startsOnNewLine=!0),n.push(c)),n},[],a);return s.push(r?e.startOnNewLine(e.getMutableClone(o)):o),e.inlineExpressions(s)}function D(t){if(ae(t.argumentExpression)){var n=e.getMutableClone(t);return n.expression=ue(e.visitNode(t.expression,i,e.isLeftHandSideExpression)),n.argumentExpression=e.visitNode(t.argumentExpression,i,e.isExpression),n}return e.visitEachChild(t,i,r)}function E(t){if(e.forEach(t.arguments,ae)){var n=e.createCallBinding(t.expression,Tt,Dt,!0),a=n.target,o=n.thisArg;return e.setOriginalNode(e.createFunctionApply(ue(e.visitNode(a,i,e.isLeftHandSideExpression)),o,T(t.arguments),t),t)}return e.visitEachChild(t,i,r)}function N(t){if(e.forEach(t.arguments,ae)){var n=e.createCallBinding(e.createPropertyAccess(t.expression,"bind"),Tt),a=n.target,o=n.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(ue(e.visitNode(a,i,e.isExpression)),o,T(t.arguments,e.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,i,r)}function A(e,t){void 0===t&&(t=0);for(var n=e.length,r=t;r0);l++)u.push(R(i));u.length&&(qe(e.createStatement(e.inlineExpressions(u))),c+=u.length,u=[]);}}function R(t){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(t.name),t.name),e.visitNode(t.initializer,i,e.isExpression)),t)}function M(t){if(ae(t))if(ae(t.thenStatement)||ae(t.elseStatement)){var n=_e(),r=t.elseStatement?_e():void 0;Ge(t.elseStatement?r:n,e.visitNode(t.expression,i,e.isExpression),t.expression),w(t.thenStatement),t.elseStatement&&($e(n),de(r),w(t.elseStatement)),de(n);}else qe(e.visitNode(t,i,e.isStatement));else qe(e.visitNode(t,i,e.isStatement));}function B(t){if(ae(t)){var n=_e(),r=_e();Te(n),de(r),w(t.statement),de(n),We(r,e.visitNode(t.expression,i,e.isExpression)),Ce();}else qe(e.visitNode(t,i,e.isStatement));}function K(t){return Ft?(ke(),t=e.visitEachChild(t,i,r),Ce(),t):e.visitEachChild(t,i,r)}function j(t){if(ae(t)){var n=_e(),r=Te(n);de(n),Ge(r,e.visitNode(t.expression,i,e.isExpression)),w(t.statement),$e(n),Ce();}else qe(e.visitNode(t,i,e.isStatement));}function J(t){return Ft?(ke(),t=e.visitEachChild(t,i,r),Ce(),t):e.visitEachChild(t,i,r)}function z(t){if(ae(t)){var n=_e(),r=_e(),a=Te(r);if(t.initializer){var o=t.initializer;e.isVariableDeclarationList(o)?L(o):qe(e.setTextRange(e.createStatement(e.visitNode(o,i,e.isExpression)),o));}de(n),t.condition&&Ge(a,e.visitNode(t.condition,i,e.isExpression)),w(t.statement),de(r),t.incrementor&&qe(e.setTextRange(e.createStatement(e.visitNode(t.incrementor,i,e.isExpression)),t.incrementor)),$e(n),Ce();}else qe(e.visitNode(t,i,e.isStatement));}function U(t){Ft&&ke();var n=t.initializer;if(n&&e.isVariableDeclarationList(n)){for(var a=0,o=n.declarations;a0?e.inlineExpressions(e.map(c,R)):void 0,e.visitNode(t.condition,i,e.isExpression),e.visitNode(t.incrementor,i,e.isExpression),e.visitNode(t.statement,i,e.isStatement,e.liftToBlock));}else t=e.visitEachChild(t,i,r);return Ft&&Ce(),t}function q(t){if(ae(t)){var n=le(),r=le(),a=e.createLoopVariable(),o=t.initializer;Tt(a),Ve(n,e.createArrayLiteral()),qe(e.createForIn(r,e.visitNode(t.expression,i,e.isExpression),e.createStatement(e.createCall(e.createPropertyAccess(n,"push"),void 0,[r])))),Ve(a,e.createLiteral(0));var s=_e(),c=_e(),u=Te(c);de(s),Ge(u,e.createLessThan(a,e.createPropertyAccess(n,"length")));var l=void 0;if(e.isVariableDeclarationList(o)){for(var _=0,d=o.declarations;_0?$e(n,t):qe(t);}function W(t){if(Ft){var n=Me(t.label&&e.unescapeLeadingUnderscores(t.label.escapedText));if(n>0)return je(n,t)}return e.visitEachChild(t,i,r)}function G(t){var n=Re(t.label?e.unescapeLeadingUnderscores(t.label.escapedText):void 0);n>0?$e(n,t):qe(t);}function H(t){if(Ft){var n=Re(t.label&&e.unescapeLeadingUnderscores(t.label.escapedText));if(n>0)return je(n,t)}return e.visitEachChild(t,i,r)}function X(t){Ye(e.visitNode(t.expression,i,e.isExpression),t);}function Y(t){return Je(e.visitNode(t.expression,i,e.isExpression),t)}function Q(t){ae(t)?(ye(ue(e.visitNode(t.expression,i,e.isExpression))),w(t.statement),he()):qe(e.visitNode(t,i,e.isStatement));}function Z(t){if(ae(t.caseBlock)){for(var n=t.caseBlock,r=n.clauses.length,a=Ee(),o=ue(e.visitNode(t.expression,i,e.isExpression)),s=[],c=-1,u=0;u0)break;d.push(e.createCaseClause(e.visitNode(f.expression,i,e.isExpression),[je(s[u],f.expression)]));}else p++;d.length&&(qe(e.createSwitch(o,e.createCaseBlock(d))),_+=d.length,d=[]),p>0&&(_+=p,p=0);}for($e(c>=0?s[c]:a),u=0;u=0;n--){var r=Mt[n];if(!Fe(r))break;if(r.labelText===e)return!0}return!1}function Re(e){if(Mt)if(e)for(t=Mt.length-1;t>=0;t--){if(Fe(n=Mt[t])&&n.labelText===e)return n.breakLabel;if(Pe(n)&&Le(e,t-1))return n.breakLabel}else for(var t=Mt.length-1;t>=0;t--){var n=Mt[t];if(Pe(n))return n.breakLabel}return 0}function Me(e){if(Mt)if(e){for(t=Mt.length-1;t>=0;t--)if(Ie(n=Mt[t])&&Le(e,t-1))return n.continueLabel}else for(var t=Mt.length-1;t>=0;t--){var n=Mt[t];if(Ie(n))return n.continueLabel}return 0}function Be(t){if(t>0){void 0===Kt&&(Kt=[]);var n=e.createLiteral(-1);return void 0===Kt[t]?Kt[t]=[n]:Kt[t].push(n),n}return e.createOmittedExpression()}function Ke(n){var r=e.createLiteral(n);return e.addSyntheticTrailingComment(r,3,t(n)),r}function je(t,n){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([Ke(3),Be(t)])),n)}function Je(t,n){return e.setTextRange(e.createReturn(e.createArrayLiteral(t?[Ke(2),t]:[Ke(2)])),n)}function ze(t){return e.setTextRange(e.createCall(e.createPropertyAccess(Ut,"sent"),void 0,[]),t)}function Ue(){et(0);}function qe(e){e?et(1,[e]):Ue();}function Ve(e,t,n){et(2,[e,t],n);}function $e(e,t){et(3,[e],t);}function We(e,t,n){et(4,[e,t],n);}function Ge(e,t,n){et(5,[e,t],n);}function He(e,t){et(7,[e],t);}function Xe(e,t){et(6,[e],t);}function Ye(e,t){et(8,[e],t);}function Qe(e,t){et(9,[e],t);}function Ze(){et(10);}function et(e,t,n){void 0===jt&&(jt=[],Jt=[],zt=[]),void 0===Bt&&de(_e());var r=jt.length;jt[r]=e,Jt[r]=t,zt[r]=n;}function tt(){Zt=0,en=0,qt=void 0,Vt=!1,$t=!1,Wt=void 0,Gt=void 0,Ht=void 0,Xt=void 0,Yt=void 0;var t=nt();return n(r,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,Ut)],void 0,e.createBlock(t,t.length>0)),524288))}function nt(){if(jt){for(var t=0;t=0;n--){var r=Yt[n];Gt=[e.createWith(r.expression,e.createBlock(Gt))];}if(Xt){var i=Xt.startLabel,a=Xt.catchLabel,o=Xt.finallyLabel,s=Xt.endLabel;Gt.unshift(e.createStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(Ut,"trys"),"push"),void 0,[e.createArrayLiteral([Be(i),Be(a),Be(o),Be(s)])]))),Xt=void 0;}t&&Gt.push(e.createStatement(e.createAssignment(e.createPropertyAccess(Ut,"label"),e.createLiteral(en+1))));}Wt.push(e.createCaseClause(e.createLiteral(en),Gt||[])),Gt=void 0;}function st(e){if(Bt)for(var t=0;t 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'};}(r||(r={}));!function(e){function t(t,n){return t.getCompilerOptions().importHelpers?e.createCall(e.getHelperName("__exportStar"),void 0,[n,e.createIdentifier("exports")]):e.createCall(e.createIdentifier("__export"),void 0,[n])}e.transformModule=function(i){function a(t){switch(t){case e.ModuleKind.AMD:return c;case e.ModuleKind.UMD:return u;default:return s}}function o(){return!(ie.exportEquals||!e.isExternalModule(re))}function s(t){G();var r=[],a=X.alwaysStrict||!X.noImplicitUseStrict&&e.isExternalModule(re),s=e.addPrologue(r,t.statements,a,p);o()&&e.append(r,B()),e.append(r,e.visitNode(ie.externalHelpersImportDeclaration,p,e.isStatement)),e.addRange(r,e.visitNodes(t.statements,p,e.isStatement,s)),d(r,!1),e.addRange(r,H());var c=e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray(r),t.statements));return ie.hasExportStarsToExportValues&&!X.importHelpers&&e.addEmitHelper(c,n),e.addEmitHelpers(c,i.readEmitHelpers()),c}function c(t){var n=e.createIdentifier("define"),r=e.tryGetModuleNameFromFile(t,Q,X),i=l(t,!0),a=i.aliasedModuleNames,o=i.unaliasedModuleNames,s=i.importAliasNames;return e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(n,void 0,(r?[r]:[]).concat([e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(a,o)),e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(s),void 0,_(t))])))]),t.statements))}function u(t){var n=l(t,!1),r=n.aliasedModuleNames,i=n.unaliasedModuleNames,a=n.importAliasNames,o=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(e.createBlock([e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("module"),"object"),e.createTypeCheck(e.createPropertyAccess(e.createIdentifier("module"),"exports"),"object")),e.createBlock([e.createVariableStatement(void 0,[e.createVariableDeclaration("v",void 0,e.createCall(e.createIdentifier("factory"),void 0,[e.createIdentifier("require"),e.createIdentifier("exports")]))]),e.setEmitFlags(e.createIf(e.createStrictInequality(e.createIdentifier("v"),e.createIdentifier("undefined")),e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),e.createIdentifier("v")))),1)]),e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("define"),"function"),e.createPropertyAccess(e.createIdentifier("define"),"amd")),e.createBlock([e.createStatement(e.createCall(e.createIdentifier("define"),void 0,[e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(r,i)),e.createIdentifier("factory")]))])))],!0),void 0));return e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(o,void 0,[e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(a),void 0,_(t))]))]),t.statements))}function l(t,n){for(var r=[],i=[],a=[],o=0,s=t.amdDependencies;o=2?2:0)),t));}else r&&e.isDefaultImport(t)&&(n=e.append(n,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,e.getGeneratedNameForNode(t)),t)],Z>=2?2:0))));if(A(t)){var a=e.getOriginalNodeId(t);ce[a]=O(ce[a],t);}else n=O(n,t);return e.singleOrMany(n)}function b(t){var n=e.getExternalModuleNameLiteral(t,re,Q,Y,X),r=[];return n&&r.push(n),e.createCall(e.createIdentifier("require"),void 0,r)}function x(t){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer.");var n;if(ee!==e.ModuleKind.AMD?n=e.hasModifier(t,1)?e.append(n,e.setTextRange(e.createStatement(j(t.name,b(t))),t)):e.append(n,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,b(t))],Z>=2?2:0)),t)):e.hasModifier(t,1)&&(n=e.append(n,e.setTextRange(e.createStatement(j(e.getExportName(t),e.getLocalName(t))),t))),A(t)){var r=e.getOriginalNodeId(t);ce[r]=P(ce[r],t);}else n=P(n,t);return e.singleOrMany(n)}function S(n){if(n.moduleSpecifier){var r=e.getGeneratedNameForNode(n);if(n.exportClause){var a=[];ee!==e.ModuleKind.AMD&&a.push(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(r,void 0,b(n))])),n));for(var o=0,s=n.exportClause.elements;o0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!g,"Lexical environment is suspended."),p[m]=u,f[m]=l,m++,u=void 0,l=void 0;},suspendLexicalEnvironment:function(){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!g,"Lexical environment is already suspended."),g=!0;},resumeLexicalEnvironment:function(){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(g,"Lexical environment is not suspended."),g=!1;},endLexicalEnvironment:function(){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!g,"Lexical environment is suspended.");var t;if((u||l)&&(l&&(t=l.slice()),u)){var n=e.createVariableStatement(void 0,e.createVariableDeclarationList(u));t?t.push(n):t=[n];}return m--,u=p[m],l=f[m],0===m&&(p=[],f=[]),t},hoistVariableDeclaration:function(t){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed.");var n=e.setEmitFlags(e.createVariableDeclaration(t),64);u?u.push(n):u=[n];},hoistFunctionDeclaration:function(t){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),l?l.push(t):l=[t];},requestEmitHelper:function(t){e.Debug.assert(v>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(v<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),_=e.append(_,t);},readEmitHelpers:function(){e.Debug.assert(v>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(v<2,"Cannot modify the transformation context after transformation has completed.");var t=_;return _=void 0,t},enableSubstitution:function(t){e.Debug.assert(v<2,"Cannot modify the transformation context after transformation has completed."),d[t]|=1;},enableEmitNotification:function(t){e.Debug.assert(v<2,"Cannot modify the transformation context after transformation has completed."),d[t]|=2;},isSubstitutionEnabled:s,isEmitNotificationEnabled:c,get onSubstituteNode(){return y},set onSubstituteNode(t){e.Debug.assert(v<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),y=t;},get onEmitNode(){return h},set onEmitNode(t){e.Debug.assert(v<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),h=t;}},x=0,S=i;x>=5)>0&&(r|=32),n+=t(r);}while(e>0);return n}var r={emittedLine:1,emittedColumn:1,sourceLine:1,sourceColumn:1,sourceIndex:0};e.createSourceMapWriter=function(t,i){function a(t){return _.skipTrivia?_.skipTrivia(t):e.skipTrivia(d,t)}function o(){x||(_=void 0,p=void 0,f=void 0,m=void 0,g=void 0,y=void 0,h=void 0);}function s(){if(m&&m!==g){var t=g.emittedColumn;if(g.emittedLine===m.emittedLine)h.sourceMapMappings&&(h.sourceMapMappings+=",");else{for(var r=g.emittedLine;r=0&&(e.Debug.assert(!1,"We do not support name index right now, Make sure to update updateLastEncodedAndRecordedSpans when we start using this"),h.sourceMapMappings+=n(m.nameIndex-y),y=m.nameIndex),g=m,h.sourceMapDecodedMappings.push(g);}}function c(t){if(!x&&!e.positionIsSynthesized(t)){b&&e.performance.mark("beforeSourcemap");var n=e.getLineAndCharacterOfPosition(_,t);n.line++,n.character++;var r=i.getLine(),a=i.getColumn();!m||m.emittedLine!==r||m.emittedColumn!==a||m.sourceIndex===f&&(m.sourceLine>n.line||m.sourceLine===n.line&&m.sourceColumn>n.character)?(s(),m={emittedLine:r,emittedColumn:a,sourceLine:n.line,sourceColumn:n.character,sourceIndex:f}):(m.sourceLine=n.line,m.sourceColumn=n.character,m.sourceIndex=f),b&&(e.performance.mark("afterSourcemap"),e.performance.measure("Source Map","beforeSourcemap","afterSourcemap"));}}function u(n){if(!x){d=(_=n).text;var r=v.sourceRoot?t.getCommonSourceDirectory():p,i=e.getRelativePathToDirectoryOrUrl(r,_.fileName,t.getCurrentDirectory(),t.getCanonicalFileName,!0);-1===(f=e.indexOf(h.sourceMapSources,i))&&(f=h.sourceMapSources.length,h.sourceMapSources.push(i),h.inputSourceFileNames.push(_.fileName),v.inlineSources&&h.sourceMapSourcesContent.push(_.text));}}function l(){if(!x)return s(),JSON.stringify({version:3,file:h.sourceMapFile,sourceRoot:h.sourceMapSourceRoot,sources:h.sourceMapSources,names:h.sourceMapNames,mappings:h.sourceMapMappings,sourcesContent:h.sourceMapSourcesContent})}var _,d,p,f,m,g,y,h,v=t.getCompilerOptions(),b=v.extendedDiagnostics,x=!(v.sourceMap||v.inlineSourceMap);return{initialize:function(n,i,a){x||(h&&o(),_=void 0,d=void 0,f=-1,m=void 0,g=r,y=0,(h={sourceMapFilePath:i,jsSourceMappingURL:v.inlineSourceMap?void 0:e.getBaseFileName(e.normalizeSlashes(i)),sourceMapFile:e.getBaseFileName(e.normalizeSlashes(n)),sourceMapSourceRoot:v.sourceRoot||"",sourceMapSources:[],inputSourceFileNames:[],sourceMapNames:[],sourceMapMappings:"",sourceMapSourcesContent:v.inlineSources?[]:void 0,sourceMapDecodedMappings:[]}).sourceMapSourceRoot=e.normalizeSlashes(h.sourceMapSourceRoot),h.sourceMapSourceRoot.length&&47!==h.sourceMapSourceRoot.charCodeAt(h.sourceMapSourceRoot.length-1)&&(h.sourceMapSourceRoot+=e.directorySeparator),v.mapRoot?(p=e.normalizeSlashes(v.mapRoot),265===a.kind&&(p=e.getDirectoryPath(e.getSourceFilePathInNewDir(a,t,p))),e.isRootedDiskPath(p)||e.isUrl(p)?h.jsSourceMappingURL=e.combinePaths(p,h.jsSourceMappingURL):(p=e.combinePaths(t.getCommonSourceDirectory(),p),h.jsSourceMappingURL=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(n)),e.combinePaths(p,h.jsSourceMappingURL),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):p=e.getDirectoryPath(e.normalizePath(n)));},reset:o,getSourceMapData:function(){return h},setSourceFile:u,emitPos:c,emitNodeWithSourceMap:function(e,t,n){if(x)return n(e,t);if(t){var r=t.emitNode,i=r&&r.flags,o=r&&r.sourceMapRange,s=o||t,l=s.pos,d=s.end,p=o&&o.source,f=_;p===f&&(p=void 0),p&&u(p),287!==t.kind&&0==(16&i)&&l>=0&&c(a(l)),p&&u(f),64&i?(x=!0,n(e,t),x=!1):n(e,t),p&&u(p),287!==t.kind&&0==(32&i)&&d>=0&&c(d),p&&u(f);}},emitTokenWithSourceMap:function(e,t,n,r){if(x)return r(t,n);var i=e&&e.emitNode,o=i&&i.flags,s=i&&i.tokenSourceMapRanges&&i.tokenSourceMapRanges[t];return n=a(s?s.pos:n),0==(128&o)&&n>=0&&c(n),n=r(t,n),s&&(n=s.end),0==(256&o)&&n>=0&&c(n),n},getText:l,getSourceMappingURL:function(){if(!x){if(v.inlineSourceMap){var t=e.convertToBase64(l());return h.jsSourceMappingURL="data:application/json;base64,"+t}return h.jsSourceMappingURL}}}};var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";}(r||(r={}));!function(e){e.createCommentWriter=function(t,n){function r(t,n,r,o,s){var u=r&&r.leadingComments;e.some(u)&&(E&&e.performance.mark("preEmitNodeWithSynthesizedComments"),e.forEach(u,i),E&&e.performance.measure("commentTime","preEmitNodeWithSynthesizedComments")),c(t,n,o,s);var l=r&&r.trailingComments;e.some(l)&&(E&&e.performance.mark("postEmitNodeWithSynthesizedComments"),e.forEach(l,a),E&&e.performance.measure("commentTime","postEmitNodeWithSynthesizedComments"));}function i(e){2===e.kind&&S.writeLine(),o(e),e.hasTrailingNewLine||2===e.kind?S.writeLine():S.write(" ");}function a(e){S.isAtStartOfLine()||S.write(" "),o(e),e.hasTrailingNewLine&&S.writeLine();}function o(t){var n=s(t),r=3===t.kind?e.computeLineStarts(n):void 0;e.writeCommentRange(n,r,S,0,n.length,N);}function s(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}function c(e,t,n,r){2048&n?(F=!0,r(e,t),F=!1):r(e,t);}function u(e,t){P=!1,t?m(e,_):0===e&&m(e,l);}function l(e,t,n,r,i){x(e,t)&&_(e,t,0,r,i);}function _(t,r,i,a,o){P||(e.emitNewLineBeforeLeadingCommentOfPosition(C,S,o,t),P=!0),n&&n(t),e.writeCommentRange(T,C,S,t,r,N),n&&n(r),a?S.writeLine():S.write(" ");}function d(e){g(e,p);}function p(t,r,i,a){S.isAtStartOfLine()||S.write(" "),n&&n(t),e.writeCommentRange(T,C,S,t,r,N),n&&n(r),a&&S.writeLine();}function f(t,r,i,a){n&&n(t),e.writeCommentRange(T,C,S,t,r,N),n&&n(r),a?S.writeLine():S.write(" ");}function m(t,n){-1!==A&&t===A||(y(t)?h(n):e.forEachLeadingCommentRange(T,t,n,t));}function g(t,n){(-1===w||t!==w&&t!==O)&&e.forEachTrailingCommentRange(T,t,n);}function y(t){return void 0!==D&&e.lastOrUndefined(D).nodePos===t}function h(t){var n=e.lastOrUndefined(D).detachedCommentEndPos;D.length-1?D.pop():D=void 0,e.forEachLeadingCommentRange(T,n,t,n);}function v(t){var n=e.emitDetachedComments(T,C,S,b,t,N,F);n&&(D?D.push(n):D=[n]);}function b(t,r,i,a,o,s){n&&n(a),e.writeCommentRange(t,r,i,a,o,s),n&&n(o);}function x(t,n){return e.isRecognizedTripleSlashComment(T,t,n)}var S,k,T,C,D,E=t.extendedDiagnostics,N=e.getNewLineCharacter(t),A=-1,w=-1,O=-1,P=!1,F=t.removeComments;return{reset:function(){k=void 0,T=void 0,C=void 0,D=void 0;},setWriter:function(e){S=e;},setSourceFile:function(t){T=(k=t).text,C=e.getLineStarts(k),D=void 0;},emitNodeWithComments:function(t,n,i){if(F)i(t,n);else if(n){P=!1;var a=n.emitNode,o=a&&a.flags,s=a&&a.commentRange||n,c=s.pos,l=s.end;if(c<0&&l<0||c===l)r(t,n,a,o,i);else{E&&e.performance.mark("preEmitNodeWithComment");var _=287!==n.kind,p=c<0||0!=(512&o)||10===n.kind,f=l<0||0!=(1024&o)||10===n.kind;p||u(c,_);var m=A,g=w,y=O;p||(A=c),f||(w=l,227===n.kind&&(O=l)),E&&e.performance.measure("commentTime","preEmitNodeWithComment"),r(t,n,a,o,i),E&&e.performance.mark("postEmitNodeWithComment"),A=m,w=g,O=y,!f&&_&&d(l),E&&e.performance.measure("commentTime","postEmitNodeWithComment");}}},emitBodyWithDetachedComments:function(t,n,r){E&&e.performance.mark("preEmitBodyWithDetachedComments");var i=n.pos,a=n.end,o=e.getEmitFlags(t),s=i<0||0!=(512&o),c=F||a<0||0!=(1024&o);s||v(n),E&&e.performance.measure("commentTime","preEmitBodyWithDetachedComments"),2048&o&&!F?(F=!0,r(t),F=!1):r(t),E&&e.performance.mark("beginEmitBodyWithDetachedCommetns"),c||(u(n.end,!0),P&&!S.isAtStartOfLine()&&S.writeLine()),E&&e.performance.measure("commentTime","beginEmitBodyWithDetachedCommetns");},emitTrailingCommentsOfPosition:function(t,n){F||(E&&e.performance.mark("beforeEmitTrailingCommentsOfPosition"),g(t,n?p:f),E&&e.performance.measure("commentTime","beforeEmitTrailingCommentsOfPosition"));},emitLeadingCommentsOfPosition:function(e){F||-1===e||u(e,!0);}}};}(r||(r={}));!function(e){function t(t,n,r,i,a,o){function s(e){return he.substring(e.pos,e.end).indexOf("@internal")>=0}function c(){var t=e.createTextWriter(fe);t.trackSymbol=p,t.reportInaccessibleThisError=m,t.reportPrivateInBaseOfClassExpression=f,t.writeKeyword=t.write,t.writeOperator=t.write,t.writePunctuation=t.write,t.writeSpace=t.write,t.writeStringLiteral=t.writeLiteral,t.writeParameter=t.write,t.writeProperty=t.write,t.writeSymbol=t.write,u(t);}function u(e){_e=e,oe=e.write,le=e.writeTextOfNode,se=e.writeLine,ce=e.increaseIndent,ue=e.decreaseIndent;}function l(t){var n=_e;e.forEach(t,function(t){var n;226===t.kind?n=t.parent.parent:241===t.kind||242===t.kind||239===t.kind?e.Debug.fail("We should be getting ImportDeclaration instead to write"):n=t;var r=e.forEach(Ae,function(e){return e.node===n?e:void 0});if(!r&&ke&&(r=e.forEach(ke,function(e){return e.node===n?e:void 0})),r)if(238===r.node.kind)r.isVisible=!0;else{c();for(var i=r.indent;i;i--)ce();233===n.kind&&(e.Debug.assert(void 0===ke),ke=[]),A(n),233===n.kind&&(r.subModuleElementDeclarationEmitInfo=ke,ke=void 0),r.asynchronousOutput=_e.getText();}}),u(n);}function _(t){if(t){Te||(Te=e.createMap());for(var n=0,r=t;n")));}(t);case 159:return function(e){i(e.typeName),e.typeArguments&&(oe("<"),b(e.typeArguments,S),oe(">"));}(t);case 162:return function(e){oe("typeof "),i(e.exprName);}(t);case 164:return function(e){S(e.elementType),oe("[]");}(t);case 165:return function(e){oe("["),b(e.elementTypes,S),oe("]");}(t);case 166:return function(e){v(e.types," | ",S);}(t);case 167:return function(e){v(e.types," & ",S);}(t);case 168:return function(e){oe("("),S(e.type),oe(")");}(t);case 170:return function(t){oe(e.tokenToString(t.operator)),oe(" "),S(t.type);}(t);case 171:return function(e){S(e.objectType),oe("["),S(e.indexType),oe("]");}(t);case 172:return function(e){var t=ge;ge=e,oe("{"),se(),ce(),e.readonlyToken&&oe("readonly "),oe("["),r(e.typeParameter.name),oe(" in "),S(e.typeParameter.constraint),oe("]"),e.questionToken&&oe("?"),oe(": "),S(e.type),oe(";"),se(),ue(),oe("}"),ge=t;}(t);case 160:case 161:return te(t);case 163:return function(e){oe("{"),e.members.length&&(se(),ce(),h(e.members),ue()),oe("}");}(t);case 71:case 143:return i(t);case 158:return function(e){le(he,e.parameterName),oe(" is "),S(e.type);}(t)}}function k(t){he=t.text,ve=e.getLineStarts(t),be=t.identifiers,xe=e.isExternalModule(t),ge=t,e.emitDetachedComments(he,ve,_e,e.writeCommentRange,t,fe,!0),h(t.statements);}function T(e){if(!be.has(e))return e;for(var t=0;;){var n=e+"_"+ ++t;if(!be.has(n))return n}}function C(e,t,r,i){var a=T(t);return i&&oe("declare "),oe("const "),oe(a),oe(": "),_e.getSymbolAccessibilityDiagnostic=function(){return r},n.writeTypeOfExpression(e,ge,18436,_e),oe(";"),se(),a}function D(t){if(71===t.expression.kind)oe(t.isExportEquals?"export = ":"export default "),le(he,t.expression);else{var r=C(t.expression,"_default",{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t},Ne);oe(t.isExportEquals?"export = ":"export default "),oe(r);}oe(";"),se(),71===t.expression.kind&&l(n.collectLinkedAliases(t.expression));}function E(e){return n.isDeclarationVisible(e)}function N(e,t){if(t)A(e);else if(237===e.kind||265===e.parent.kind&&xe){var r=void 0;if(ke&&265!==e.parent.kind)ke.push({node:e,outputPos:_e.getTextPos(),indent:_e.getIndent(),isVisible:r});else{if(238===e.kind){var i=e;i.importClause&&(r=i.importClause.name&&n.isDeclarationVisible(i.importClause)||F(i.importClause.namedBindings));}Ae.push({node:e,outputPos:_e.getTextPos(),indent:_e.getIndent(),isVisible:r});}}}function A(t){switch(t.kind){case 228:return ee(t);case 208:return Q(t);case 230:return W(t);case 229:return $(t);case 231:return j(t);case 232:return J(t);case 233:return K(t);case 237:return P(t);case 238:return I(t);default:e.Debug.fail("Unknown symbol kind");}}function w(t){if(265===t.parent.kind){var n=e.getModifierFlags(t);1&n&&oe("export "),512&n?oe("default "):230!==t.kind&&Ne&&oe("declare ");}}function O(e){8&e?oe("private "):16&e&&oe("protected "),32&e&&oe("static "),64&e&&oe("readonly "),128&e&&oe("abstract ");}function P(t){De(t),e.hasModifier(t,1)&&oe("export "),oe("import "),le(he,t.name),oe(" = "),e.isInternalModuleImportEqualsDeclaration(t)?(x(t.moduleReference,function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}),oe(";")):(oe("require("),L(t),oe(");")),_e.writeLine();}function F(t){if(t)return 240===t.kind?n.isDeclarationVisible(t):e.forEach(t.elements,function(e){return n.isDeclarationVisible(e)})}function I(t){if(De(t),e.hasModifier(t,1)&&oe("export "),oe("import "),t.importClause){var r=_e.getTextPos();t.importClause.name&&n.isDeclarationVisible(t.importClause)&&le(he,t.importClause.name),t.importClause.namedBindings&&F(t.importClause.namedBindings)&&(r!==_e.getTextPos()&&oe(", "),240===t.importClause.namedBindings.kind?(oe("* as "),le(he,t.importClause.namedBindings.name)):(oe("{ "),b(t.importClause.namedBindings.elements,R,n.isDeclarationVisible),oe(" }"))),oe(" from ");}L(t),oe(";"),_e.writeLine();}function L(r){ye=ye||233!==r.kind;var i;if(237===r.kind){var a=r;i=e.getExternalModuleImportEqualsDeclarationExpression(a);}else i=233===r.kind?r.name:(a=r).moduleSpecifier;if(9===i.kind&&pe&&(me.out||me.outFile)){var o=e.getExternalModuleNameFromDeclaration(t,n,r);if(o)return oe('"'),oe(o),void oe('"')}le(he,i);}function R(e){e.propertyName&&(le(he,e.propertyName),oe(" as ")),le(he,e.name);}function M(e){R(e),l(n.collectLinkedAliases(e.propertyName||e.name));}function B(e){De(e),oe("export "),e.exportClause?(oe("{ "),b(e.exportClause.elements,M),oe(" }")):oe("*"),e.moduleSpecifier&&(oe(" from "),L(e)),oe(";"),_e.writeLine();}function K(t){for(De(t),w(t),e.isGlobalScopeAugmentation(t)?oe("global "):(oe(16&t.flags?"namespace ":"module "),e.isExternalModuleAugmentation(t)?L(t):le(he,t.name));t.body&&234!==t.body.kind;)t=t.body,oe("."),le(he,t.name);var n=ge;t.body?(ge=t,oe(" {"),se(),ce(),h(t.body.statements),ue(),oe("}"),se(),ge=n):oe(";");}function j(t){var n=ge;ge=t,De(t),w(t),oe("type "),le(he,t.name),q(t.typeParameters),oe(" = "),x(t.type,function(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t.type,typeName:t.name}}),oe(";"),se(),ge=n;}function J(t){De(t),w(t),e.isConst(t)&&oe("const "),oe("enum "),le(he,t.name),oe(" {"),se(),ce(),h(t.members),ue(),oe("}"),se();}function z(t){De(t),le(he,t.name);var r=n.getConstantValue(t);void 0!==r&&(oe(" = "),oe(e.getTextOfConstantValue(r))),oe(","),se();}function U(t){return 151===t.parent.kind&&e.hasModifier(t.parent,8)}function q(t){t&&(oe("<"),b(t,function(t){function n(){var n;switch(t.parent.kind){case 229:n=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 230:n=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 156:n=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 155:n=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 151:case 150:n=e.hasModifier(t.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:229===t.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 228:n=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 231:n=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind);}return{diagnosticMessage:n,errorNode:t,typeName:t.name}}ce(),De(t),ue(),le(he,t.name),t.constraint&&!U(t)&&(oe(" extends "),160===t.parent.kind||161===t.parent.kind||t.parent.parent&&163===t.parent.parent.kind?(e.Debug.assert(151===t.parent.kind||150===t.parent.kind||160===t.parent.kind||161===t.parent.kind||155===t.parent.kind||156===t.parent.kind),S(t.constraint)):x(t.constraint,n)),t.default&&!U(t)&&(oe(" = "),160===t.parent.kind||161===t.parent.kind||t.parent.parent&&163===t.parent.parent.kind?(e.Debug.assert(151===t.parent.kind||150===t.parent.kind||160===t.parent.kind||161===t.parent.kind||155===t.parent.kind||156===t.parent.kind),S(t.default)):x(t.default,n));}),oe(">"));}function V(t,n){t&&(oe(n?" implements ":" extends "),b(t,function(t){e.isEntityNameExpression(t.expression)?x(t,function(){var r;return r=229===t.parent.parent.kind?n?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:r,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}):n||95!==t.expression.kind||oe("null");}));}function $(t){var n=ge;ge=t;var r,i=e.getClassExtendsHeritageClauseElement(t);i&&!e.isEntityNameExpression(i.expression)&&(r=95===i.expression.kind?"null":C(i.expression,t.name.escapedText+"_base",{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:i,typeName:t.name},!e.findAncestor(t,function(e){return 233===e.kind}))),De(t),w(t),e.hasModifier(t,128)&&oe("abstract "),oe("class "),le(he,t.name),q(t.typeParameters),i&&(e.isEntityNameExpression(i.expression)?V([i],!1):(oe(" extends "),oe(r),i.typeArguments&&(oe("<"),b(i.typeArguments,S),oe(">")))),V(e.getClassImplementsHeritageClauseElements(t),!0),oe(" {"),se(),ce(),function(t){t&&e.forEach(t.parameters,function(t){e.hasModifier(t,92)&&G(t);});}(e.getFirstConstructorWithBody(t)),h(t.members),ue(),oe("}"),se(),ge=n;}function W(t){De(t),w(t),oe("interface "),le(he,t.name);var n=ge;ge=t,q(t.typeParameters);var r=e.filter(e.getInterfaceBaseTypeNodes(t),function(t){return e.isEntityNameExpression(t.expression)});r&&r.length&&V(r,!1),oe(" {"),se(),ce(),h(t.members),ue(),oe("}"),se(),ge=n;}function G(t){e.hasDynamicName(t)||(De(t),O(e.getModifierFlags(t)),H(t),oe(";"),se());}function H(t){function r(n){return 226===t.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:149===t.kind||148===t.kind||146===t.kind&&e.hasModifier(t.parent,8)?e.hasModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:229===t.parent.kind||146===t.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}function i(e){for(var t=[],n=0,r=e.elements;n0?e.parameters[0].type:void 0}if(!e.hasDynamicName(t)){var r,i=e.getAllAccessorDeclarations(t.parent.members,t);if(t===i.firstAccessor){if(De(i.getAccessor),De(i.setAccessor),O(e.getModifierFlags(t)|(i.setAccessor?0:64)),le(he,t.name),!e.hasModifier(t,8)){r=t;var a=n(t);if(!a){var o=153===t.kind?i.setAccessor:i.getAccessor;(a=n(o))&&(r=o);}g(t,a,function(t){var n;return 154===r.kind?(n=e.hasModifier(r.parent,32)?t.errorModuleName?e.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:n,errorNode:r.parameters[0],typeName:r.name}):(n=e.hasModifier(r,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0,{diagnosticMessage:n,errorNode:r.name,typeName:void 0})});}oe(";"),se();}}}function ee(t){e.hasDynamicName(t)||n.isImplementationOfOverload(t)||(De(t),228===t.kind?w(t):151!==t.kind&&152!==t.kind||O(e.getModifierFlags(t)),228===t.kind?(oe("function "),le(he,t.name)):152===t.kind?oe("constructor"):(le(he,t.name),e.hasQuestionToken(t)&&oe("?")),ne(t));}function te(e){De(e),ne(e);}function ne(t){var n=ge;ge=t;var r=!1;if(157===t.kind)O(e.getModifierFlags(t)),oe("[");else{if(152===t.kind&&e.hasModifier(t,8))return oe("();"),void se();if(156===t.kind||161===t.kind)oe("new ");else if(160===t.kind){var i=_e.getText();t.typeParameters&&"<"===i.charAt(i.length-1)&&(r=!0,oe("("));}q(t.typeParameters),oe("(");}b(t.parameters,re),oe(157===t.kind?"]":")");var a=160===t.kind||161===t.kind;a||163===t.parent.kind?t.type&&(oe(a?" => ":": "),S(t.type)):152===t.kind||e.hasModifier(t,8)||y(t,function(n){var r;switch(t.kind){case 156:r=n.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 155:r=n.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 157:r=n.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 151:case 150:r=e.hasModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:229===t.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:n.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 228:r=n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:e.Debug.fail("This is unknown kind for signature: "+t.kind);}return{diagnosticMessage:r,errorNode:t.name||t}}),ge=n,a?r&&oe(")"):(oe(";"),se());}function re(t){function r(n){switch(t.parent.kind){case 152:return n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 156:return n.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 155:return n.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 157:return n.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 151:case 150:return e.hasModifier(t.parent,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:229===t.parent.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 228:return n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;default:e.Debug.fail("This is unknown parent for parameter: "+t.parent.kind);}}function i(e){if(174===e.kind)oe("{"),b(e.elements,a),oe("}");else if(175===e.kind){oe("[");var t=e.elements;b(t,a),t&&t.hasTrailingComma&&oe(", "),oe("]");}}function a(t){200===t.kind?oe(" "):176===t.kind&&(t.propertyName&&(le(he,t.propertyName),oe(": ")),t.name&&(e.isBindingPattern(t.name)?i(t.name):(e.Debug.assert(71===t.name.kind),t.dotDotDotToken&&oe("..."),le(he,t.name))));}ce(),De(t),t.dotDotDotToken&&oe("..."),e.isBindingPattern(t.name)?i(t.name):le(he,t.name),n.isOptionalParameter(t)&&oe("?"),ue(),160===t.parent.kind||161===t.parent.kind||163===t.parent.parent.kind?X(t):e.hasModifier(t.parent,8)||g(t,t.type,function(e){var n=r(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0});}function ie(e){switch(e.kind){case 228:case 233:case 237:case 230:case 229:case 231:case 232:return N(e,E(e));case 208:return N(e,Y(e));case 238:return N(e,!e.importClause);case 244:return B(e);case 152:case 151:case 150:return ee(e);case 156:case 155:case 157:return te(e);case 153:case 154:return Z(e);case 149:case 148:return G(e);case 264:return z(e);case 243:return D(e);case 265:return k(e)}}function ae(n,r,a){var o,s=!1;return n.isDeclarationFile?o=n.fileName:e.forEachEmittedFile(t,function(t,i){var a=266===i.kind;a&&!r||(e.Debug.assert(!!t.declarationFilePath||e.isSourceFileJavaScript(n),"Declaration file is not present only for javascript files"),o=t.declarationFilePath||t.jsFilePath,s=a);},n,a),o&&(o=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizeSlashes(i)),o,t.getCurrentDirectory(),t.getCanonicalFileName,!1),we+='/// '+fe),s}var oe,se,ce,ue,le,_e,de=266===a.kind?a.sourceFiles:[a],pe=266===a.kind,fe=t.getNewLine(),me=t.getCompilerOptions();c();var ge,ye,he,ve,be,xe,Se,ke,Te,Ce=!1,De=me.removeComments?e.noop:function(t){if(t){var n=e.getJSDocCommentRanges(t,he);e.emitNewLineBeforeLeadingComments(ve,_e,t,n),e.emitComments(he,ve,_e,n,!1,!0,fe,e.writeCommentRange);}},Ee=me.stripInternal?function(t){if(t){var n=e.getLeadingCommentRanges(he,t.pos);if(e.forEach(n,s))return;ie(t);}}:ie,Ne=!0,Ae=[],we="",Oe=[],Pe=!1,Fe=[];return e.forEach(de,function(n){if(!e.isSourceFileJavaScript(n)){if(me.noResolve||e.forEach(n.referencedFiles,function(r){var i=e.tryResolveScriptReference(t,n,r);i&&!e.contains(Oe,i)&&(ae(i,!pe&&!Pe,o)&&(Pe=!0),Oe.push(i));}),ye=!1,pe&&e.isExternalModule(n)?e.isExternalModule(n)&&(Ne=!1,oe('declare module "'+e.getResolvedExternalModuleName(t,n)+'" {'),se(),ce(),k(n),ue(),oe("}"),se()):(Ne=!0,k(n)),Ae.length){var r=_e;e.forEach(Ae,function(t){if(t.isVisible&&!t.asynchronousOutput){e.Debug.assert(238===t.node.kind),c(),e.Debug.assert(0===t.indent||1===t.indent&&pe);for(n=0;n'+fe;}),{reportedDeclarationError:Ce,moduleElementDeclarationEmitInfo:Fe,synchronousDeclarationOutput:_e.getText(),referencesOutput:we}}e.getDeclarationDiagnostics=function(n,r,i){var a=e.createDiagnosticCollection();return e.forEachEmittedFile(n,function(e,i){var o=e.declarationFilePath;t(n,r,a,o,i,!1);},i),a.getDiagnostics(i?i.fileName:void 0)},e.writeDeclarationFile=function(n,r,i,a,o,s){function c(t,n){var r=0,i="";return e.forEach(n,function(e){e.asynchronousOutput&&(i+=t.substring(r,e.outputPos),i+=c(e.asynchronousOutput,e.subModuleElementDeclarationEmitInfo),r=e.outputPos);}),i+=t.substring(r)}var u=t(i,a,o,n,r,s),l=u.reportedDeclarationError||i.isEmitBlocked(n)||i.getCompilerOptions().noEmit;if(!l){var _=266===r.kind?r.sourceFiles:[r],d=u.referencesOutput+c(u.synchronousDeclarationOutput,u.moduleElementDeclarationEmitInfo);e.writeFile(i,o,n,d,i.getCompilerOptions().emitBOM,_);}return l};}(r||(r={}));!function(e){function t(t,i,a,o){var s=e.isArray(a)?a:e.getSourceFilesToEmit(t,a),c=t.getCompilerOptions();if(c.outFile||c.out)s.length&&i({jsFilePath:d=c.outFile||c.out,sourceMapFilePath:p=n(d,c),declarationFilePath:f=c.declaration?e.removeFileExtension(d)+".d.ts":""},e.createBundle(s),o);else for(var u=0,l=s;u "),h(e.type);}function ee(e){Bn("new "),wn(e,e.typeParameters),On(e,e.parameters),Bn(" => "),h(e.type);}function te(e){Bn("typeof "),h(e.exprName);}function ne(t){Bn("{");var n=1&e.getEmitFlags(t)?448:65;Ln(t,t.members,262144|n),Bn("}");}function re(e){h(e.elementType),Bn("[]");}function ie(e){Bn("["),Ln(e,e.elementTypes,336),Bn("]");}function ae(e){Ln(e,e.types,260);}function oe(e){Ln(e,e.types,264);}function se(e){Bn("("),h(e.type),Bn(")");}function ce(){Bn("this");}function ue(e){Vn(e.operator),Bn(" "),h(e.type);}function le(e){h(e.objectType),Bn("["),h(e.indexType),Bn("]");}function _e(t){var n=e.getEmitFlags(t);Bn("{"),1&n?Bn(" "):(Kn(),jn()),t.readonlyToken&&(h(t.readonlyToken),Bn(" ")),Bn("["),x(3,t.typeParameter),Bn("]"),y(t.questionToken),Bn(": "),h(t.type),Bn(";"),1&n?Bn(" "):(Kn(),Jn()),Bn("}");}function de(e){b(e.literal);}function pe(e){var t=e.elements;0===t.length?Bn("{}"):(Bn("{"),Ln(e,t,432),Bn("}"));}function fe(e){0===e.elements.length?Bn("[]"):(Bn("["),Ln(e,e.elements,304),Bn("]"));}function me(e){Dn(e.propertyName,": "),y(e.dotDotDotToken),h(e.name),Tn(" = ",e.initializer);}function ge(e){Rn(e,e.elements,4466|(e.multiLine?32768:0));}function ye(t){var n=65536&e.getEmitFlags(t);n&&jn();var r=t.multiLine?32768:0,i=Sr.languageVersion>=1?32:0;Ln(t,t.properties,263122|i|r),n&&Jn();}function he(t){var n=!1,r=!1;if(!(131072&e.getEmitFlags(t))){var i=t.expression.end,a=e.skipTrivia(Sr.text,t.expression.end)+1,o=e.createToken(23);o.pos=i,o.end=a,n=tr(t,t.expression,o),r=tr(t,o,t.name);}b(t.expression),Hn(n),Bn(!n&&ve(t.expression)?"..":"."),Hn(r),h(t.name),Xn(n,r);}function ve(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isNumericLiteral(n)){var r=ar(n);return!n.numericLiteralFlags&&r.indexOf(e.tokenToString(23))<0}if(e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)){var i=e.getConstantValue(n);return"number"==typeof i&&isFinite(i)&&Math.floor(i)===i&&t.removeComments}}function be(e){b(e.expression),Bn("["),b(e.argumentExpression),Bn("]");}function xe(e){b(e.expression),An(e,e.typeArguments),Rn(e,e.arguments,1296);}function Se(e){Bn("new "),b(e.expression),An(e,e.typeArguments),Rn(e,e.arguments,9488);}function ke(e){b(e.tag),Bn(" "),b(e.template);}function Te(e){Bn("<"),h(e.type),Bn(">"),b(e.expression);}function Ce(e){Bn("("),b(e.expression),Bn(")");}function De(e){ht(e);}function Ee(e){Nn(e,e.decorators),Sn(e,e.modifiers),bt(e,Ne);}function Ne(e){wn(e,e.typeParameters),Fn(e,e.parameters),kn(": ",e.type),Bn(" "),h(e.equalsGreaterThanToken);}function Ae(e){Bn("delete "),b(e.expression);}function we(e){Bn("typeof "),b(e.expression);}function Oe(e){Bn("void "),b(e.expression);}function Pe(e){Bn("await "),b(e.expression);}function Fe(e){Vn(e.operator),Ie(e)&&Bn(" "),b(e.operand);}function Ie(e){var t=e.operand;return 192===t.kind&&(37===e.operator&&(37===t.operator||43===t.operator)||38===e.operator&&(38===t.operator||44===t.operator))}function Le(e){b(e.operand),Vn(e.operator);}function Re(e){var t=26!==e.operatorToken.kind,n=tr(e,e.left,e.operatorToken),r=tr(e,e.operatorToken,e.right);b(e.left),Hn(n,t?" ":void 0),Wr(e.operatorToken.pos),qn(e.operatorToken),$r(e.operatorToken.end,!0),Hn(r," "),b(e.right),Xn(n,r);}function Me(e){var t=tr(e,e.condition,e.questionToken),n=tr(e,e.questionToken,e.whenTrue),r=tr(e,e.whenTrue,e.colonToken),i=tr(e,e.colonToken,e.whenFalse);b(e.condition),Hn(t," "),h(e.questionToken),Hn(n," "),b(e.whenTrue),Xn(t,n),Hn(r," "),h(e.colonToken),Hn(i," "),b(e.whenFalse),Xn(r,i);}function Be(e){h(e.head),Ln(e,e.templateSpans,131072);}function Ke(e){Bn("yield"),h(e.asteriskToken),Tn(" ",e.expression);}function je(e){Bn("..."),b(e.expression);}function Je(e){Et(e);}function ze(e){b(e.expression),An(e,e.typeArguments);}function Ue(e){b(e.expression),e.type&&(Bn(" as "),h(e.type));}function qe(e){b(e.expression),Bn("!");}function Ve(e){Un(e.keywordToken,e.pos),Bn("."),h(e.name);}function $e(e){b(e.expression),h(e.literal);}function We(e){Un(17,e.pos,e),Ge(e,!e.multiLine&&nr(e)),jn(),Wr(e.statements.end),Jn(),Un(18,e.statements.end,e);}function Ge(t,n){var r=n||1&e.getEmitFlags(t)?384:65;Ln(t,t.statements,r);}function He(e){Sn(e,e.modifiers),h(e.declarationList),Bn(";");}function Xe(){Bn(";");}function Ye(e){b(e.expression),Bn(";");}function Qe(e){var t=Un(90,e.pos,e);Bn(" "),Un(19,t,e),b(e.expression),Un(20,e.expression.end,e),En(e,e.thenStatement),e.elseStatement&&($n(e),Un(82,e.thenStatement.end,e),211===e.elseStatement.kind?(Bn(" "),h(e.elseStatement)):En(e,e.elseStatement));}function Ze(t){Bn("do"),En(t,t.statement),e.isBlock(t.statement)?Bn(" "):$n(t),Bn("while ("),b(t.expression),Bn(");");}function et(e){Bn("while ("),b(e.expression),Bn(")"),En(e,e.statement);}function tt(e){var t=Un(88,e.pos);Bn(" "),Un(19,t,e),it(e.initializer),Bn(";"),Tn(" ",e.condition),Bn(";"),Tn(" ",e.incrementor),Bn(")"),En(e,e.statement);}function nt(e){var t=Un(88,e.pos);Bn(" "),Un(19,t),it(e.initializer),Bn(" in "),b(e.expression),Un(20,e.expression.end),En(e,e.statement);}function rt(e){var t=Un(88,e.pos);Bn(" "),Dn(e.awaitModifier," "),Un(19,t),it(e.initializer),Bn(" of "),b(e.expression),Un(20,e.expression.end),En(e,e.statement);}function it(e){void 0!==e&&(227===e.kind?h(e):b(e));}function at(e){Un(77,e.pos),kn(" ",e.label),Bn(";");}function ot(e){Un(72,e.pos),kn(" ",e.label),Bn(";");}function st(t,n,r){var i=r&&e.getParseTreeNode(r);return i&&i.kind===r.kind&&(n=e.skipTrivia(Sr.text,n)),n=Un(t,n,r),i&&i.kind===r.kind&&$r(n,!0),n}function ct(e){st(96,e.pos,e),Tn(" ",e.expression),Bn(";");}function ut(e){Bn("with ("),b(e.expression),Bn(")"),En(e,e.statement);}function lt(e){var t=Un(98,e.pos);Bn(" "),Un(19,t),b(e.expression),Un(20,e.expression.end),Bn(" "),h(e.caseBlock);}function _t(e){h(e.label),Bn(": "),h(e.statement);}function dt(e){Bn("throw"),Tn(" ",e.expression),Bn(";");}function pt(e){Bn("try "),h(e.tryBlock),e.catchClause&&($n(e),h(e.catchClause)),e.finallyBlock&&($n(e),Bn("finally "),h(e.finallyBlock));}function ft(e){Un(78,e.pos),Bn(";");}function mt(e){h(e.name),kn(": ",e.type),Tn(" = ",e.initializer);}function gt(t){Bn(e.isLet(t)?"let ":e.isConst(t)?"const ":"var "),Ln(t,t.declarations,272);}function yt(e){ht(e);}function ht(e){Nn(e,e.decorators),Sn(e,e.modifiers),Bn("function"),y(e.asteriskToken),Bn(" "),v(e.name),bt(e,xt);}function vt(e,t){kt(t);}function bt(t,n){var r=t.body;if(r)if(e.isBlock(r)){var i=65536&e.getEmitFlags(t);i&&jn(),524288&e.getEmitFlags(t)?(n(t),Ir?Ir(4,r,vt):kt(r)):(or(),n(t),Ir?Ir(4,r,vt):kt(r),sr()),i&&Jn();}else n(t),Bn(" "),b(r);else n(t),Bn(";");}function xt(e){wn(e,e.typeParameters),On(e,e.parameters),kn(": ",e.type);}function St(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,Sr))return!1;if(Yn(t,t.statements,2)||Zn(t,t.statements,2))return!1;for(var n,r=0,i=t.statements;r0&&h(e.attributes),Bn("/>");}function Yt(e){Bn("<"),an(e.tagName),zn(e.attributes.properties," "),e.attributes.properties&&e.attributes.properties.length>0&&h(e.attributes),Bn(">");}function Qt(e){Nr.writeLiteral(ir(e,!0));}function Zt(e){Bn("");}function en(e){Ln(e,e.properties,131328);}function tn(e){h(e.name),kn("=",e.initializer);}function nn(e){Bn("{..."),b(e.expression),Bn("}");}function rn(e){e.expression&&(Bn("{"),y(e.dotDotDotToken),b(e.expression),Bn("}"));}function an(e){71===e.kind?b(e):h(e);}function on$$1(e){Bn("case "),b(e.expression),Bn(":"),cn(e,e.statements);}function sn(e){Bn("default:"),cn(e,e.statements);}function cn(t,n){var r=1===n.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(n[0])||e.rangeStartPositionsAreOnSameLine(t,n[0],Sr));n.length>0&&$r(n.pos);var i=81985;r&&(Bn(" "),i&=-66),Ln(t,n,i);}function un(e){Bn(" "),Vn(e.token),Bn(" "),Ln(e,e.types,272);}function ln(e){var t=Un(74,e.pos);Bn(" "),e.variableDeclaration&&(Un(19,t),h(e.variableDeclaration),Un(20,e.variableDeclaration.end),Bn(" ")),h(e.block);}function _n(t){h(t.name),Bn(": ");var n=t.initializer;if($r&&0==(512&e.getEmitFlags(n))){var r=e.getCommentRange(n);$r(r.pos);}b(n);}function dn(e){h(e.name),e.objectAssignmentInitializer&&(Bn(" = "),b(e.objectAssignmentInitializer));}function pn(e){e.expression&&(Bn("..."),b(e.expression));}function fn(e){h(e.name),Tn(" = ",e.initializer);}function mn(t){Kn();var n=t.statements;!Vr||0!==n.length&&e.isPrologueDirective(n[0])&&!e.nodeIsSynthesized(n[0])?gn(t):Vr(t,n,gn);}function gn(t){var n=t.statements;or(),O(t);var r=e.findIndex(n,function(t){return!e.isPrologueDirective(t)});Ln(t,n,1,-1===r?n.length:r),sr();}function yn(e){b(e.expression);}function hn(e){Rn(e,e.elements,272);}function vn(t,n,r){for(var i=0;i0)&&Kn(),h(a),r&&r.set(a.expression.text,!0));}return t.length}function bn(t){if(e.isSourceFile(t))f(t),vn(t.statements);else for(var n=e.createMap(),r=0,i=t.sourceFiles;r=r.length||0===u;if(_&&16384&i)return Br&&Br(r),void(Kr&&Kr(r));if(7680&i&&Bn(s(i)),Br&&Br(r),_)1&i?Kn():128&i&&!(262144&i)&&Bn(" ");else{var d=0==(131072&i),p=d;Yn(n,r,i)?(Kn(),p=!1):128&i&&Bn(" "),64&i&&jn();for(var f=void 0,m=void 0,g=o(i),y=0;y"],e[4096]=["[","]"],e}();e.forEachEmittedFile=t,e.emitFiles=function(n,r,o,s,c){function u(t,n,i){var a=266===i.kind?i:void 0,o=265===i.kind?i:void 0,s=a?a.sourceFiles:[o];b.initialize(t,n,i),a?(_=e.createMap(),d=!1,T.writeBundle(a,v)):(d=!0,T.writeFile(o,v)),v.writeLine();var c=b.getSourceMappingURL();c&&v.write("//# sourceMappingURL="+c),p.sourceMap&&!p.inlineSourceMap&&e.writeFile(r,y,n,b.getText(),!1,s),m&&m.push(b.getSourceMapData()),e.writeFile(r,y,t,v.getText(),p.emitBOM,s),b.reset(),v.reset(),l=void 0,_=void 0,d=!1;}var l,_,d,p=r.getCompilerOptions(),f=e.getEmitModuleKind(p),m=p.sourceMap||p.inlineSourceMap?[]:void 0,g=p.listEmittedFiles?[]:void 0,y=e.createDiagnosticCollection(),h=r.getNewLine(),v=e.createTextWriter(h),b=e.createSourceMapWriter(r,v),x=!1,S=e.getSourceFilesToEmit(r,o),k=e.transformNodes(n,r,p,S,c,!1),T=a(p,{hasGlobalName:n.hasGlobalName,onEmitNode:k.emitNodeWithNotification,substituteNode:k.substituteNode,onEmitSourceMapOfNode:b.emitNodeWithSourceMap,onEmitSourceMapOfToken:b.emitTokenWithSourceMap,onEmitSourceMapOfPosition:b.emitPos,onEmitHelpers:function(t,n){var r=!1,i=266===t.kind?t:void 0;if(!i||f!==e.ModuleKind.None){for(var a=i?i.sourceFiles.length:1,o=0;oe.getRootLength(t)&&!r(t)&&(i(e.getDirectoryPath(t)),e.sys.createDirectory(t));}function a(t,n,r){s||(s=e.createMap());var i=e.sys.createHash(n),a=e.sys.getModifiedTime(t);if(a){var o=s.get(t);if(o&&o.byteOrderMark===r&&o.hash===i&&o.mtime.getTime()===a.getTime())return}e.sys.writeFile(t,n,r);var c=e.sys.getModifiedTime(t);s.set(t,{hash:i,byteOrderMark:r,mtime:c});}function o(){return e.getDirectoryPath(e.normalizePath(e.sys.getExecutingFilePath()))}var s,c=e.createMap(),u=e.getNewLineCharacter(t),l=e.sys.realpath&&function(t){return e.sys.realpath(t)};return{getSourceFile:function(r,i,a){var o;try{e.performance.mark("beforeIORead"),o=e.sys.readFile(r,t.charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead");}catch(e){a&&a(e.message),o="";}return void 0!==o?e.createSourceFile(r,o,i,n):void 0},getDefaultLibLocation:o,getDefaultLibFileName:function(t){return e.combinePaths(o(),e.getDefaultLibFileName(t))},writeFile:function(n,r,o,s){try{e.performance.mark("beforeIOWrite"),i(e.getDirectoryPath(e.normalizePath(n))),e.isWatchSet(t)&&e.sys.createHash&&e.sys.getModifiedTime?a(n,r,o):e.sys.writeFile(n,r,o),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite");}catch(e){s&&s(e.message);}},getCurrentDirectory:e.memoize(function(){return e.sys.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return e.sys.useCaseSensitiveFileNames},getCanonicalFileName:function(t){return e.sys.useCaseSensitiveFileNames?t:t.toLowerCase()},getNewLine:function(){return u},fileExists:function(t){return e.sys.fileExists(t)},readFile:function(t){return e.sys.readFile(t)},trace:function(t){return e.sys.write(t+u)},directoryExists:function(t){return e.sys.directoryExists(t)},getEnvironmentVariable:function(t){return e.sys.getEnvironmentVariable?e.sys.getEnvironmentVariable(t):""},getDirectories:function(t){return e.sys.getDirectories(t)},realpath:l}}function i(t){switch(t){case e.DiagnosticCategory.Warning:return p;case e.DiagnosticCategory.Error:return d;case e.DiagnosticCategory.Message:return f}}function a(e,t){return t+e+y}function o(e,t){for(;e.length=4,N=(k+1+"").length;E&&(N=Math.max(h.length,N)),r+=e.sys.newLine;for(var A=b;A<=k;A++){E&&b+10||c.length>0)return{diagnostics:e.concatenate(u,c),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}var l=y().getEmitResolver(a.outFile||a.out?void 0:n);e.performance.mark("beforeEmit");var _=o?[]:e.getTransformers(a,s),d=e.emitFiles(l,m(r),n,o,_);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),d}function x(e){return S(d(e))}function S(e){return Re.get(e)}function k(t,n,r){return t?n(t,r):e.sortAndDeduplicateDiagnostics(e.flatMap(se.getSourceFiles(),function(e){return r&&r.throwIfCancellationRequested(),n(e,r)}))}function T(t){return e.isSourceFileJavaScript(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=A(t),e.isCheckJsEnabledForFile(t,a)&&(t.additionalSyntacticDiagnostics=e.concatenate(t.additionalSyntacticDiagnostics,t.jsDocDiagnostics))),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function C(t){try{return t()}catch(t){throw t instanceof e.OperationCanceledException&&(le=void 0,ue=void 0),t}}function D(e,t){return P(e,t,fe,E)}function E(t,n){return C(function(){if(a.skipLibCheck&&t.isDeclarationFile||a.skipDefaultLibCheck&&t.hasNoDefaultLib)return e.emptyArray;var r=y();e.Debug.assert(!!t.bindDiagnostics);var i=!e.isSourceFileJavaScript(t)||e.isCheckJsEnabledForFile(t,a),o=i?t.bindDiagnostics:e.emptyArray,s=i?r.getDiagnostics(t,n):e.emptyArray,c=ye.getDiagnostics(t.fileName),u=De.getDiagnostics(t.fileName),l=o.concat(s,c,u);return e.isSourceFileJavaScript(t)?e.filter(l,N):l})}function N(t){var n=t.file,r=t.start;if(n)for(var i=e.getLineStarts(n),a=e.computeLineAndCharacterOfPosition(i,r).line;a>0;){var o=n.text.slice(i[a-1],i[a]),s=_.exec(o);if(!s)return!0;if(s[3])return!1;a--;}return!0}function A(t){return C(function(){function n(t){switch(u.kind){case 146:case 149:if(u.questionToken===t)return void c.push(s(t,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));case 151:case 150:case 152:case 153:case 154:case 186:case 228:case 187:case 226:if(u.type===t)return void c.push(s(t,e.Diagnostics.types_can_only_be_used_in_a_ts_file))}switch(t.kind){case 237:return void c.push(s(t,e.Diagnostics.import_can_only_be_used_in_a_ts_file));case 243:if(t.isExportEquals)return void c.push(s(t,e.Diagnostics.export_can_only_be_used_in_a_ts_file));break;case 259:if(108===t.token)return void c.push(s(t,e.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));break;case 230:return void c.push(s(t,e.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));case 233:return void c.push(s(t,e.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));case 231:return void c.push(s(t,e.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));case 232:return void c.push(s(t,e.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));case 203:return void c.push(s(t,e.Diagnostics.non_null_assertions_can_only_be_used_in_a_ts_file));case 202:return void c.push(s(t.type,e.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file));case 184:e.Debug.fail();}var i=u;u=t,e.forEachChild(t,n,r),u=i;}function r(t){switch(u.decorators!==t||a.experimentalDecorators||c.push(s(u,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning)),u.kind){case 229:case 151:case 150:case 152:case 153:case 154:case 186:case 228:case 187:if(t===u.typeParameters)return void c.push(o(t,e.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));case 208:if(t===u.modifiers)return i(t,208===u.kind);break;case 149:if(t===u.modifiers){for(var r=0,l=t;r0),_.path=n,o.useCaseSensitiveFileNames()){var m=n.toLowerCase(),g=Me.get(m);g?J(t,g.fileName,i,s,c):Me.set(m,_);}Ce=Ce||_.hasNoDefaultLib,a.noResolve||(q(_,r),V(_)),H(_),r?pe.unshift(_):pe.push(_);}return _}function q(n,r){e.forEach(n.referencedFiles,function(e){j(t(e.fileName,n.fileName),r,void 0,n,e.pos,e.end);});}function V(t){for(var n=e.map(t.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()}),r=Oe(n,t.fileName),i=0;ihe,y=m&&!u(a,l)&&!a.noResolve&&cn&&(De.add(e.createDiagnosticForNodeInSourceFile(a.configFile,f.initializer.elements[n],r,i,o,s)),c=!1);}}c&&De.add(e.createCompilerDiagnostic(r,i,o,s));}function Z(t,n,r,i){for(var a=!0,o=0,s=ee();o1})&&te(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir");}if(!a.noEmit&&a.allowJs&&a.declaration&&te(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs","declaration"),a.checkJs&&!a.allowJs&&De.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),a.emitDecoratorMetadata&&!a.experimentalDecorators&&te(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),a.jsxFactory?(a.reactNamespace&&te(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(a.jsxFactory,u)||ne("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,a.jsxFactory)):a.reactNamespace&&!e.isIdentifierText(a.reactNamespace,u)&&ne("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,a.reactNamespace),!a.noEmit&&!a.suppressOutputPathCheck){var b=m(),x=e.createMap();e.forEachEmittedFile(b,function(e){t(e.jsFilePath,x),t(e.declarationFilePath,x);});}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),se},e.getResolutionDiagnostic=u;}(r||(r={}));!function(e){function t(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function n(){if(W)return W;var t=e.createMap(),n=e.createMap();return e.forEach(e.optionDeclarations,function(e){t.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name);}),W={optionNameMap:t,shortOptionNames:n}}function r(t){return i(t,e.createCompilerDiagnostic)}function i(t,n){var r=e.arrayFrom(t.type.keys()).map(function(e){return"'"+e+"'"}).join(", ");return n(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+t.name,r)}function a(e,t,n){return I(e,R(t||""),n)}function o(t,n,r){if(void 0===n&&(n=""),n=R(n),!e.startsWith(n,"-")){if(""===n)return[];var i=n.split(",");switch(t.element.type){case"number":return e.map(i,parseInt);case"string":return e.map(i,function(e){return e||""});default:return e.filter(e.map(i,function(e){return a(t.element,e,r)}),function(e){return!!e})}}}function s(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var r=n(),i=r.optionNameMap,a=r.shortOptionNames;if(t){var o=a.get(e);void 0!==o&&(e=o);}return i.get(e)}function c(t,n){var r=e.parseJsonText(t,n);return{config:p(r,r.parseDiagnostics),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function u(t,n){var r=l(t,n);return"string"==typeof r?e.parseJsonText(t,r):{parseDiagnostics:[r]}}function l(t,n){var r;try{r=n(t);}catch(n){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,n.message)}return void 0===r?e.createCompilerDiagnostic(e.Diagnostics.The_specified_path_does_not_exist_Colon_0,t):r}function _(t){return e.arrayToMap(t,function(e){return e.name})}function d(){return void 0===G&&(G=_([{name:"compilerOptions",type:"object",elementOptions:_(e.optionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:_(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:_(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"extends",type:"string"},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},e.compileOnSaveCommandLineOption])),G}function p(e,t){return f(e,t,void 0,void 0)}function f(t,n,r,a){function o(i,o,s,l){for(var _={},d=0,p=i.properties;d=0)return s.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,o.concat([u]).join(" -> "))),{raw:t||p(n,s)};var l=t?x(t,r,i,c,a,s):S(n,r,i,c,a,s);if(l.extendedConfigPath){o=o.concat([u]);var _=T(n,l.extendedConfigPath,r,i,c,o,s);if(_&&v(_)){var d=_.raw,f=l.raw,m=function(e){var t=f[e]||d[e];t&&(f[e]=t);};m("include"),m("exclude"),m("files"),void 0===f.compileOnSave&&(f.compileOnSave=d.compileOnSave),l.options=e.assign({},_.options,l.options);}}return l}function x(t,n,r,i,a,o){e.hasProperty(t,"excludes")&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var s=E(t.compilerOptions,r,o,a),c=A(t.typeAcquisition||t.typingOptions,r,o,a);t.compileOnSave=C(t,r,o);var u;return t.extends&&("string"!=typeof t.extends?o.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string")):u=k(t.extends,n,r,i,o,e.createCompilerDiagnostic)),{raw:t,options:s,typeAcquisition:c,extendedConfigPath:u}}function S(t,n,r,i,a,o){var s,c,u,l=D(a),_={onSetValidOptionKeyValueInParent:function(t,n,i){e.Debug.assert("compilerOptions"===t||"typeAcquisition"===t||"typingOptions"===t),("compilerOptions"===t?l:"typeAcquisition"===t?s||(s=N(a)):c||(c=N(a)))[n.name]=P(n,r,i);},onSetValidOptionKeyValueInRoot:function(s,c,l,_){switch(s){case"extends":return void(u=k(l,n,r,i,o,function(n,r){return e.createDiagnosticForNodeInSourceFile(t,_,n,r)}));case"files":return void(0===l.length&&o.push(e.createDiagnosticForNodeInSourceFile(t,_,e.Diagnostics.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json")))}},onSetUnknownOptionKeyValueInRoot:function(n,r,i,a){"excludes"===n&&o.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));}},p=f(t,o,d(),_);return s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:N(a)),{raw:p,options:l,typeAcquisition:s,extendedConfigPath:u}}function k(t,n,r,i,a,o){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var s=e.toPath(t,r,i);if(n.fileExists(s)||e.endsWith(s,".json")||(s+=".json",n.fileExists(s)))return s;a.push(o(e.Diagnostics.File_0_does_not_exist,t));}else a.push(o(e.Diagnostics.A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not,t));}function T(t,n,r,i,a,o,s){var c=u(n,function(e){return r.readFile(e)});if(t&&(t.extendedSourceFiles||(t.extendedSourceFiles=[])).push(c.fileName),c.parseDiagnostics.length)s.push.apply(s,c.parseDiagnostics);else{var l=e.getDirectoryPath(n),_=b(void 0,c,r,l,e.getBaseFileName(n),o,s);if(t&&(g=t.extendedSourceFiles).push.apply(g,c.extendedSourceFiles),v(_)){var d=e.convertToRelativePath(l,i,a),p=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(d,t)},f=function(t){m[t]&&(m[t]=e.map(m[t],p));},m=_.raw;f("include"),f("exclude"),f("files");}return _;var g;}}function C(t,n,r){if(e.hasProperty(t,e.compileOnSaveCommandLineOption.name)){var i=O(e.compileOnSaveCommandLineOption,t.compileOnSave,n,r);return!("boolean"!=typeof i||!i)&&i}}function D(t){return"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0}:{}}function E(t,n,r,i){var a=D(i);return w(e.optionDeclarations,t,n,a,e.Diagnostics.Unknown_compiler_option_0,r),a}function N(t){return{enable:"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function A(n,r,i,a){var o=N(a),s=t(n);return w(e.typeAcquisitionDeclarations,s,r,o,e.Diagnostics.Unknown_type_acquisition_option_0,i),o}function w(t,n,r,i,a,o){if(n){var s=_(t);for(var c in n){var u=s.get(c);u?i[u.name]=O(u,n[c],r,o):o.push(e.createCompilerDiagnostic(a,c));}}}function O(t,n,r,i){if(g(t,n)){var a=t.type;return"list"===a&&e.isArray(n)?L(t,n,r,i):"string"!=typeof a?I(t,n,i):F(t,r,n)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,m(t)));}function P(t,n,r){if("list"===t.type){var i=t;return i.element.isFilePath||"string"!=typeof i.element.type?e.filter(e.map(r,function(e){return P(i.element,n,e)}),function(e){return!!e}):r}return"string"!=typeof t.type?t.type.get("string"==typeof r?r.toLowerCase():r):F(t,n,r)}function F(t,n,r){return t.isFilePath&&""===(r=e.normalizePath(e.combinePaths(n,r)))&&(r="."),r}function I(e,t,n){var i=t.toLowerCase(),a=e.type.get(i);if(void 0!==a)return a;n.push(r(e));}function L(t,n,r,i){return e.filter(e.map(n,function(e){return O(t.element,e,r,i)}),function(e){return!!e})}function R(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}function M(t,n,r,i,a,o,s,c,u){i=e.normalizePath(i);var l=o.useCaseSensitiveFileNames?q:V,_=e.createMap(),d=e.createMap();n&&(n=B(n,s,!1,u,"include")),r&&(r=B(r,s,!0,u,"exclude"));var p=j(n,r,i,o.useCaseSensitiveFileNames),f=e.getSupportedExtensions(a,c);if(t)for(var m=0,g=t;m0)for(var v=0,b=o.readDirectory(i,f,r,n,void 0);v=i.length)break;var s=o;if(34===i.charCodeAt(s)){for(o++;o32;)o++;a.push(i.substring(s,o));}}r(a);}else l.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t));}var c={},u=[],l=[];return r(t),{options:c,fileNames:u,errors:l}},e.readConfigFile=function(e,t){var n=l(e,t);return"string"==typeof n?c(e,n):{config:{},error:n}},e.parseConfigFileTextToJson=c,e.readJsonConfigFile=u;var G;e.convertToObject=p,e.generateTSConfig=function(t,r,i){function a(e){return"string"===e.type||"number"===e.type||"boolean"===e.type?void 0:"list"===e.type?a(e.element):e.type}function o(t,n){return e.forEachEntry(n,function(e,n){if(e===t)return n})}function s(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":return e.isFilePath?"./":"";case"list":return[];case"object":return{};default:return e.type.keys().next().value}}function c(e){return Array(e+1).join(" ")}var u=function(t){var r=e.createMap(),i=n().optionNameMap;for(var s in t)!function(n){if(e.hasProperty(t,n)){if(i.has(n)&&i.get(n).category===e.Diagnostics.Command_line_Options)return"continue";var s=t[n],c=i.get(n.toLowerCase());if(c){var u=a(c);u?"list"===c.type?r.set(n,s.map(function(e){return o(e,u)})):r.set(n,o(s,u)):r.set(n,s);}}}(s);return r}(e.extend(t,e.defaultInitCompilerOptions));return function(){for(var t=e.createMultiMap(),n=0,a=e.optionDeclarations;n=n.end}function f(e,t,n,r){return Math.max(e,n)=t.end)return n});return e.Debug.assert(!n||e.contains(n.getChildren(),t)),n}function b(e,t,n,r){return S(e,t,!1,r,!1,n)}function x(e,t,n,r){return S(e,t,!0,void 0,r,n)}function S(t,n,r,i,a,o){var s=t;e:for(;;){if(e.isToken(s))return s;for(var c=0,u=s.getChildren();cn)break;var _=l.getEnd();if(n<_||n===_&&(1===l.kind||a)){s=l;continue e}if(i&&_===n){var d=k(n,t,l);if(d&&i(d))return d}}}return s}}function k(t,n,r,i){function a(t){if(e.isToken(t))return t;var n=t.getChildren(),r=s(n,n.length);return r&&a(r)}function o(c){if(e.isToken(c))return c;for(var u=c.getChildren(),l=0;l=t||10===_.kind&&d===_.end?(p=s(u,l))&&a(p):o(_)}}if(e.Debug.assert(void 0!==r||265===c.kind||e.isJSDocCommentContainingNode(c)),u.length){var p=s(u,u.length);return p&&a(p)}}function s(e,t){for(var n=t-1;n>=0;n--)if(D(e[n]))return e[n]}return o(r||n)}function T(t,n,r,i){function a(r){return e.forEach(r,function(e){return C(e,n,t.text)&&(!i||i(e))})}return void 0===r&&(r=x(t,n,!1)),n<=r.getStart(t)&&(a(e.getLeadingCommentRanges(t.text,r.pos))||a(e.getTrailingCommentRanges(t.text,r.pos)))}function C(e,t,n){var r=e.pos,i=e.end,a=e.kind;return r=n},e.rangeOverlapsWithStartEnd=function(e,t,n){return f(e.pos,e.end,t,n)},e.startEndOverlapsWithStartEnd=f,e.positionBelongsToNode=function(e,t,n){return e.end>t||!m(e,n)},e.isCompletedNode=m,e.findListItemInfo=function(t){var n=v(t);if(n){var r=n.getChildren();return{listItemIndex:e.indexOf(r,t),list:n}}},e.hasChildOfKind=y,e.findChildOfKind=h,e.findContainingList=v,e.getTouchingWord=function(e,t,n){return b(e,t,n,function(e){return E(e.kind)})},e.getTouchingPropertyName=function(e,t,n){return b(e,t,n,function(e){return N(e.kind)})},e.getTouchingToken=b,e.getTokenAtPosition=x,e.findTokenOnLeftOfPosition=function(t,n){var r=x(t,n,!1);return e.isToken(r)&&n>r.getStart(t)&&nt.end||o.pos===t.end)&&D(o))return r(o)}}return r(n)},e.findPrecedingToken=k,e.isInString=function(t,n){var r=k(n,t);if(r&&e.isStringTextContainingNode(r)){var i=r.getStart(),a=r.getEnd();if(ir.getStart(t)},e.isInComment=T,e.hasDocComment=function(t,n){var r=x(t,n,!1),i=e.getLeadingCommentRanges(t.text,r.pos);return e.forEach(i,function(e){var n=t.text;return n.length>=e.pos+3&&"/"===n[e.pos]&&"*"===n[e.pos+1]&&"*"===n[e.pos+2]})},e.getNodeModifiers=function(t){var n=e.getCombinedModifierFlags(t),r=[];return 8&n&&r.push("private"),16&n&&r.push("protected"),4&n&&r.push("public"),32&n&&r.push("static"),128&n&&r.push("abstract"),1&n&&r.push("export"),e.isInAmbientContext(t)&&r.push("declare"),r.length>0?r.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 159===t.kind||181===t.kind?t.typeArguments:e.isFunctionLike(t)||229===t.kind||230===t.kind?t.typeParameters:void 0},e.isWord=E,e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(t){return!(9!==t&&12!==t&&!e.isTemplateLiteralKind(t))},e.isPunctuation=function(e){return 17<=e&&e<=70},e.isInsideTemplateLiteral=function(t,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart()0&&146===e.declarations[0].kind}function n(n,i){return r(n,function(n){var r=n.flags;return 3&r?t(n)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&r?e.SymbolDisplayPartKind.propertyName:32768&r?e.SymbolDisplayPartKind.propertyName:65536&r?e.SymbolDisplayPartKind.propertyName:8&r?e.SymbolDisplayPartKind.enumMemberName:16&r?e.SymbolDisplayPartKind.functionName:32&r?e.SymbolDisplayPartKind.className:64&r?e.SymbolDisplayPartKind.interfaceName:384&r?e.SymbolDisplayPartKind.enumName:1536&r?e.SymbolDisplayPartKind.moduleName:8192&r?e.SymbolDisplayPartKind.methodName:262144&r?e.SymbolDisplayPartKind.typeParameterName:524288&r?e.SymbolDisplayPartKind.aliasName:2097152&r?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(i))}function r(t,n){return{text:t,kind:e.SymbolDisplayPartKind[n]}}function i(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function a(t){return r(t,e.SymbolDisplayPartKind.text)}function o(){return r("\n",e.SymbolDisplayPartKind.lineBreak)}function s(e){try{return e(l),l.displayParts()}finally{l.clear();}}function c(e){return e.parent&&(242===e.parent.kind||246===e.parent.kind)&&e.parent.propertyName===e}function u(t,n){return e.ensureScriptKind(t,n&&n.getScriptKind&&n.getScriptKind(t))}e.isFirstDeclarationOfSymbolParameter=t;var l=function(){function t(){if(c){var t=e.getIndentString(u);t&&s.push(r(t,e.SymbolDisplayPartKind.space)),c=!1;}}function i(e,n){t(),s.push(r(e,n));}function a(){s=[],c=!0,u=0;}var s,c,u;return a(),{displayParts:function(){return s},writeKeyword:function(t){return i(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return i(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return i(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return i(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return i(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return i(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return i(t,e.SymbolDisplayPartKind.propertyName)},writeSymbol:function(e,r){t(),s.push(n(e,r));},writeLine:function(){s.push(o()),c=!0;},increaseIndent:function(){u++;},decreaseIndent:function(){u--;},clear:a,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop}}();e.symbolPart=n,e.displayPart=r,e.spacePart=function(){return r(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=i,e.punctuationPart=function(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.operator)},e.textOrKeywordPart=function(t){var n=e.stringToToken(t);return void 0===n?a(t):i(n)},e.textPart=a;var _="\r\n";e.getNewLineOrDefaultFromHost=function(e){return e.getNewLine?e.getNewLine():_},e.lineBreakPart=o,e.mapToDisplayParts=s,e.typeToDisplayParts=function(e,t,n,r){return s(function(i){e.getSymbolDisplayBuilder().buildTypeDisplay(t,i,n,r);})},e.symbolToDisplayParts=function(e,t,n,r,i){return s(function(a){e.getSymbolDisplayBuilder().buildSymbolDisplay(t,a,n,r,i);})},e.signatureToDisplayParts=function(e,t,n,r){return r|=65536,s(function(i){e.getSymbolDisplayBuilder().buildSignatureDisplay(t,i,n,r);})},e.getDeclaredName=function(t,n,r){if(c(r)||e.isStringOrNumericLiteral(r)&&144===r.parent.kind)return e.getTextOfIdentifierOrLiteral(r);var i=e.getLocalSymbolForExportDefault(n);return t.symbolToString(i||n)},e.isImportOrExportSpecifierName=c,e.stripQuotes=function(e){var t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(34===e.charCodeAt(0)||39===e.charCodeAt(0))?e.substring(1,t-1):e},e.scriptKindIs=function(t,n){for(var r=[],i=2;i=0),i>0){var s=n||m(t.kind,t);s&&a(r,i,s);}return!0}function f(e){switch(e.parent&&e.parent.kind){case 251:if(e.parent.tagName===e)return 19;break;case 252:if(e.parent.tagName===e)return 20;break;case 250:if(e.parent.tagName===e)return 21;break;case 253:if(e.parent.name===e)return 22}}function m(t,n){if(e.isKeyword(t))return 3;if((27===t||29===t)&&n&&e.getTypeArgumentOrTypeParameterList(n.parent))return 10;if(e.isPunctuation(t)){if(n){if(58===t&&(226===n.parent.kind||149===n.parent.kind||146===n.parent.kind||253===n.parent.kind))return 5;if(194===n.parent.kind||192===n.parent.kind||193===n.parent.kind||195===n.parent.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 253===n.parent.kind?24:6;if(12===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(10===t)return 23;if(71===t){if(n)switch(n.parent.kind){case 229:if(n.parent.name===n)return 11;return;case 145:if(n.parent.name===n)return 15;return;case 230:if(n.parent.name===n)return 13;return;case 232:if(n.parent.name===n)return 12;return;case 233:if(n.parent.name===n)return 14;return;case 146:if(n.parent.name===n)return e.isThisIdentifier(n)?3:17;return}return 2}}function g(i){if(i&&e.decodedTextSpanIntersectsWith(y,h,i.pos,i.getFullWidth())){t(n,i.kind);for(var a=0,o=i.getChildren(r);a=0){var _=c-o;_>0&&i.push({length:_,classification:e.TokenClass.Whitespace});}i.push({length:u,classification:r(l)}),o=c+u;}var d=n.length-o;return d>0&&i.push({length:d,classification:e.TokenClass.Whitespace}),{entries:i,finalLexState:t.endOfLineState}}function r(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:default:return e.TokenClass.Identifier}}function i(n,r,i){function a(e,t,n){if(8!==n){0===e&&o>0&&(e+=o);var r=(t-=o)-(e-=o);r>0&&(f.spans.push(e),f.spans.push(r),f.spans.push(n));}}for(var o=0,d=0,p=0;_.length>0;)_.pop();switch(r){case 3:n='"\\\n'+n,o=3;break;case 2:n="'\\\n"+n,o=3;break;case 1:n="/*\n"+n,o=3;break;case 4:n="`\n"+n,o=2;break;case 5:n="}\n"+n,o=2;case 6:_.push(14);}u.setText(n);var f={endOfLineState:0,spans:[]},m=0;do{if(d=u.scan(),!e.isTrivia(d)){if(41!==d&&63!==d||l[p]){if(23===p&&s(d))d=71;else if(s(p)&&s(d)&&!t(p,d))d=71;else if(71===p&&27===d)m++;else if(29===d&&m>0)m--;else if(119===d||136===d||133===d||122===d||137===d)m>0&&!i&&(d=71);else if(14===d)_.push(d);else if(17===d)_.length>0&&_.push(d);else if(18===d&&_.length>0){var g=e.lastOrUndefined(_);14===g?16===(d=u.reScanTemplateToken())?_.pop():e.Debug.assertEqual(d,15,"Should have been a template middle."):(e.Debug.assertEqual(g,17,"Should have been an open brace"),_.pop());}}else 12===u.reScanSlashToken()&&(d=12);p=d;}!function(){var t=u.getTokenPos(),r=u.getTextPos();if(a(t,r,c(d)),r>=n.length)if(9===d){var i=u.getTokenText();if(u.isUnterminated()){for(var o=i.length-1,s=0;92===i.charCodeAt(o-s);)s++;if(1&s){var l=i.charCodeAt(0);f.endOfLineState=34===l?3:2;}}}else 3===d?u.isUnterminated()&&(f.endOfLineState=1):e.isTemplateLiteralKind(d)?u.isUnterminated()&&(16===d?f.endOfLineState=5:13===d?f.endOfLineState=4:e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+d)):_.length>0&&14===e.lastOrUndefined(_)&&(f.endOfLineState=6);}();}while(1!==d);return f}function a(e){switch(e){case 39:case 41:case 42:case 37:case 38:case 45:case 46:case 47:case 27:case 29:case 30:case 31:case 93:case 92:case 118:case 32:case 33:case 34:case 35:case 48:case 50:case 49:case 53:case 54:case 69:case 68:case 70:case 65:case 66:case 67:case 59:case 60:case 61:case 63:case 64:case 58:case 26:return!0;default:return!1}}function o(e){switch(e){case 37:case 38:case 52:case 51:case 43:case 44:return!0;default:return!1}}function s(e){return e>=72&&e<=142}function c(t){if(s(t))return 3;if(a(t)||o(t))return 5;if(t>=17&&t<=70)return 10;switch(t){case 8:return 4;case 9:return 6;case 12:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 71:default:return e.isTemplateLiteralKind(t)?6:2}}var u=e.createScanner(5,!1),l=[];l[71]=!0,l[9]=!0,l[8]=!0,l[12]=!0,l[99]=!0,l[43]=!0,l[44]=!0,l[20]=!0,l[22]=!0,l[18]=!0,l[101]=!0,l[86]=!0;var _=[];return{getClassificationsForLine:function(e,t,r){return n(i(e,t,r),e)},getEncodedLexicalClassifications:i}},e.getSemanticClassifications=function(e,t,r,a,o){return i(n(e,t,r,a,o))},e.getEncodedSemanticClassifications=n,e.getSyntacticClassifications=function(e,t,n){return i(a(e,t,n))},e.getEncodedSyntacticClassifications=a;}(r||(r={}));!function(e){!function(t){!function(t){function n(t,n,r,i){t=e.map(t,function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(n,t))});var a=e.forEach(t,function(t){return e.containsPath(t,r,n,i)?r.substr(t.length):void 0});return e.deduplicate(e.map(t,function(t){return e.combinePaths(t,a)}))}function r(e,t,r,a,o,s,c,u,l){for(var _=[],d=0,p=n(e,c.project||u.getCurrentDirectory(),r,!(u.useCaseSensitiveFileNames&&u.useCaseSensitiveFileNames()));d=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,n=e.charCodeAt(t);return 47===n||92===n}return!1}function m(t){return e.hasTrailingDirectorySeparator(t)?e.ensureTrailingDirectorySeparator(e.normalizePath(t)):e.normalizePath(t)}function g(e,t){return x(e,e.getDirectories,t)}function y(e,t,n,r,i){return x(e,e.readDirectory,t,n,r,i)}function h(e,t){return x(e,e.readFile,t)}function v(e,t){return x(e,e.fileExists,t)}function b(t,n){try{return e.directoryProbablyExists(n,t)}catch(e){}}function x(e,t){for(var n=[],r=2;r=e.pos&&n<=e.end&&e});if(u){var l={isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:[]},_=t.text.substr(u.pos,n-u.pos),d=S.exec(_);if(d){var f=d[1],m=d[2],g=d[3],y=e.getDirectoryPath(t.path);if("path"===m){var h=p(g,u.pos+f.length);l.entries=i(g,y,e.getSupportedExtensions(r),!0,h,a,t.path);}else{var v={start:u.pos+f.length,length:d[0].length-f.length};l.entries=c(a,r,y,v);}}return l}}}};var S=/^(\/\/\/\s*0&&(se=L(r,i)),!0}function b(n){var r=241===n.kind?238:244,i=e.getAncestor(n,r).moduleSpecifier;if(!i)return!1;ne=!0,re=!1;var a=t.getSymbolAtLocation(i);if(!a)return se=e.emptyArray,!0;var o=t.getExportsAndPropertiesOfModule(a);return se=I(o,n.elements),!0}function S(n){ne=!0,re=!0,oe=1;var r=e.getClassExtendsHeritageClauseElement(n),i=e.getClassImplementsHeritageClauseElements(n);if(r||i){var a=G.parent,o=e.isClassElement(a)&&e.getModifierFlags(a);if(71===G.kind&&!B(G))switch(G.getText()){case"private":o|=8;break;case"static":o|=32;}if(!(8&o)){var s=void 0;r&&(s=t.getTypeAtLocation(r),32&o&&(s=t.getTypeOfSymbolAtLocation(s.symbol,n)));var c=32&o?e.emptyArray:e.flatMap(i||e.emptyArray,function(e){return t.getPropertiesOfType(t.getTypeAtLocation(e))});se=R(s?t.getPropertiesOfType(s):e.emptyArray,c,n.members,o);}}}function k(t){if(t)switch(t.kind){case 17:case 26:var n=t.parent;if(e.isObjectLiteralExpression(n)||e.isObjectBindingPattern(n))return n}}function T(e){if(e)switch(e.kind){case 17:case 26:switch(e.parent.kind){case 241:case 245:return e.parent}}}function C(t){return e.isClassElement(t.parent)&&e.isClassLike(t.parent.parent)}function D(t){return e.isParameter(t)&&e.isConstructorDeclaration(t.parent)}function E(t){return t.parent&&D(t.parent)&&(y(t.kind)||e.isDeclarationName(t))}function N(t){if(t)switch(t.kind){case 17:case 26:if(e.isClassLike(t.parent))return t.parent;break;case 25:case 18:if(e.isClassLike(ee))return ee;break;default:if(C(t)&&(m(t.kind)||g(t.getText())))return t.parent.parent}if(ee&&286===ee.kind&&e.isClassLike(ee.parent))return ee.parent}function A(t){if(t)switch(t.kind){case 19:case 26:return e.isConstructorDeclaration(t.parent)&&t.parent;default:if(E(t))return t.parent.parent}}function w(e){if(e){var t=e.parent;switch(e.kind){case 28:case 41:case 71:case 179:case 254:case 253:case 255:if(t&&(250===t.kind||251===t.kind))return t;if(253===t.kind)return t.parent.parent;break;case 9:if(t&&(253===t.kind||255===t.kind))return t.parent.parent;break;case 18:if(t&&256===t.kind&&t.parent&&253===t.parent.kind)return t.parent.parent.parent;if(t&&255===t.kind)return t.parent.parent}}}function O(t){var n=t.parent.kind;switch(t.kind){case 26:return 226===n||227===n||208===n||232===n||P(n)||230===n||175===n||231===n||e.isClassLike(t.parent)&&t.parent.typeParameters&&t.parent.typeParameters.end>=t.pos;case 23:return 175===n;case 56:return 176===n;case 21:return 175===n;case 19:return 260===n||P(n);case 17:return 232===n||230===n||163===n;case 25:return 148===n&&t.parent&&t.parent.parent&&(230===t.parent.parent.kind||163===t.parent.parent.kind);case 27:return 229===n||199===n||230===n||231===n||e.isFunctionLikeKind(n);case 115:return 149===n&&!e.isClassLike(t.parent.parent);case 24:return 146===n||t.parent&&t.parent.parent&&175===t.parent.parent.kind;case 114:case 112:case 113:return 146===n&&!e.isConstructorDeclaration(t.parent.parent);case 118:return 242===n||246===n||240===n;case 125:case 135:if(C(t))return!1;case 75:case 83:case 109:case 89:case 104:case 91:case 110:case 76:case 116:case 138:return!0}if(g(t.getText())&&C(t))return!1;if(E(t)&&(!e.isIdentifier(t)||h(t.getText())||B(t)))return!1;switch(t.getText()){case"abstract":case"async":case"class":case"const":case"declare":case"enum":case"function":case"interface":case"let":case"private":case"protected":case"public":case"static":case"var":case"yield":return!0}return e.isDeclarationName(t)&&!e.isJsxAttribute(t.parent)}function P(t){return e.isFunctionLikeKind(t)&&152!==t}function F(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}function I(t,n){for(var r=e.createUnderscoreEscapedMap(),i=0,a=n;is))for(var u=c.length-1;u>=0;u--){var l=c[u];if(t>=l.pos)return l}}}function S(t){if(!e.isToken(t))return t;switch(t.kind){case 104:case 110:case 76:return t.parent.parent;default:return t.parent}}var k;!function(e){e[e.None=0]="None",e[e.ClassElementKeywords=1]="ClassElementKeywords",e[e.ConstructorParameterKeywords=2]="ConstructorParameterKeywords";}(k||(k={})),t.getCompletionsAtPosition=function(r,o,s,c,u,l){if(e.isInReferenceComment(u,l))return t.PathCompletions.getTripleSlashReferenceCompletion(u,l,c,r);if(e.isInString(u,l))return a(u,l,o,c,r,s);var d=_(o,s,u,l);if(d){var p=d.symbols,m=d.isGlobalCompletion,g=d.isMemberCompletion,y=d.isNewIdentifierLocation,h=d.location,v=d.request,b=d.keywordFilters;if(1===u.languageVariant&&h&&h.parent&&252===h.parent.kind)return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,entries:[{name:h.parent.parent.openingElement.tagName.getFullText(),kind:"class",kindModifiers:void 0,sortText:"0"}]};if(v)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:"JsDocTagName"===v.kind?e.JsDoc.getJSDocTagNameCompletions():"JsDocTag"===v.kind?e.JsDoc.getJSDocTagCompletions():e.JsDoc.getJSDocParameterNameCompletions(v.tag)};var x=[];if(e.isSourceFileJavaScript(u)){var S=i(p,x,h,!0,o,c.target,s);n(u,h.pos,S,c.target,x);}else{if((!p||0===p.length)&&0===b)return;i(p,x,h,!0,o,c.target,s);}return 0===b&&g||e.addRange(x,f(b)),{isGlobalCompletion:m,isMemberCompletion:g,isNewIdentifierLocation:y,entries:x}}},t.getCompletionEntryDetails=function(t,n,r,i,a,o){var s=_(t,n,i,a);if(s){var c=s.symbols,u=s.location,l=e.forEach(c,function(e){return d(e,r.target,!1)===o?e:void 0});if(l){var p=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,l,i,u,u,7),m=p.displayParts,g=p.documentation,y=p.symbolKind,h=p.tags;return{name:o,kindModifiers:e.SymbolDisplay.getSymbolModifiers(l),kind:y,displayParts:m,documentation:g,tags:h}}}if(e.forEach(f(0),function(e){return e.name===o}))return{name:o,kind:"keyword",kindModifiers:"",displayParts:[e.displayPart(o,e.SymbolDisplayPartKind.keyword)],documentation:void 0,tags:void 0}},t.getCompletionEntrySymbol=function(t,n,r,i,a,o){var s=_(t,n,i,a);return s&&e.forEach(s.symbols,function(e){return d(e,r.target,!1)===o?e:void 0})};var T=[];}(e.Completions||(e.Completions={}));}(r||(r={}));!function(e){!function(t){function n(t,n){return{fileName:n.fileName,textSpan:e.createTextSpanFromNode(t,n),kind:"none"}}function r(t,n,r,a){var o=e.FindAllReferences.getReferenceEntriesForNode(t,n,a,r);return o&&i(o)}function i(t){for(var n=e.createMap(),r=0,i=t;r=0&&!m(n,r[i],106);i--);var a=_(t.statement);return e.forEach(a,function(e){d(t,e)&&m(n,e.getFirstToken(),72,77);}),n}function v(e){var t=p(e);if(t)switch(t.kind){case 214:case 215:case 216:case 212:case 213:return h(t);case 221:return b(t)}}function b(t){var n=[];return m(n,t.getFirstToken(),98),e.forEach(t.caseBlock.clauses,function(r){m(n,r.getFirstToken(),73,79);var i=_(r);e.forEach(i,function(e){d(t,e)&&m(n,e.getFirstToken(),72);});}),n}function x(t,n){var r=[];return m(r,t.getFirstToken(),102),t.catchClause&&m(r,t.catchClause.getFirstToken(),74),t.finallyBlock&&m(r,e.findChildOfKind(t,87,n),87),r}function S(t){var n=l(t);if(n){var r=[];return e.forEach(u(n),function(e){m(r,e.getFirstToken(),100);}),e.isFunctionBlock(n)&&e.forEachReturnStatement(n,function(e){m(r,e.getFirstToken(),96);}),r}}function k(t){var n=e.getContainingFunction(t);if(n&&o(n.body,207)){var r=[];return e.forEachReturnStatement(n.body,function(e){m(r,e.getFirstToken(),96);}),e.forEach(u(n.body),function(e){m(r,e.getFirstToken(),100);}),r}}function T(t,r){for(var i=[];o(t.parent,211)&&t.parent.elseStatement===t;)t=t.parent;for(;t;){var a=t.getChildren();m(i,a[0],90);for(c=a.length-1;c>=0&&!m(i,a[c],82);c--);if(!o(t.elseStatement,211))break;t=t.elseStatement;}for(var s=[],c=0;c=u.end;d--)if(!e.isWhiteSpaceSingleLine(r.text.charCodeAt(d))){_=!1;break}if(_){s.push({fileName:r.fileName,textSpan:e.createTextSpanFromBounds(u.getStart(),l.end),kind:"reference"}),c++;continue}}s.push(n(i[c],r));}return s}function C(e,t){for(var n=e.parent;222===n.kind;n=n.parent)if(n.label.escapedText===t)return!0;return!1}t.getDocumentHighlights=function(t,i,o,s,c){var u=e.getTouchingWord(o,s,!0);if(u!==o){if(e.Debug.assert(void 0!==u.parent),e.isJsxOpeningElement(u.parent)&&u.parent.tagName===u||e.isJsxClosingElement(u.parent)){var l=u.parent.parent,_=[l.openingElement,l.closingElement].map(function(e){return n(e.tagName,o)});return[{fileName:o.fileName,highlightSpans:_}]}return r(u,t,i,c)||a(u,o)}};}(e.DocumentHighlights||(e.DocumentHighlights={}));}(r||(r={}));!function(e){e.createDocumentRegistry=function(t,n){function r(e){return"_"+e.target+"|"+e.module+"|"+e.noResolve+"|"+e.jsx+"|"+e.allowJs+"|"+e.baseUrl+"|"+JSON.stringify(e.typeRoots)+"|"+JSON.stringify(e.rootDirs)+"|"+JSON.stringify(e.paths)}function i(t,n){var r=u.get(t);return!r&&n&&u.set(t,r=e.createMap()),r}function a(e,t,n,r,i,a,o){return s(e,t,n,r,i,a,!0,o)}function o(e,t,n,r,i,a,o){return s(e,t,n,r,i,a,!1,o)}function s(t,n,r,a,o,s,c,u){var l=i(a,!0),_=l.get(n);return _?(_.sourceFile.version!==s&&(_.sourceFile=e.updateLanguageServiceSourceFile(_.sourceFile,o,s,o.getChangeRange(_.sourceFile.scriptSnapshot))),c&&_.languageServiceRefCount++):(_={sourceFile:e.createLanguageServiceSourceFile(t,o,r.target,s,!1,u),languageServiceRefCount:1,owners:[]},l.set(n,_)),_.sourceFile}function c(t,n){var r=i(n,!1);e.Debug.assert(void 0!==r);var a=r.get(t);a.languageServiceRefCount--,e.Debug.assert(a.languageServiceRefCount>=0),0===a.languageServiceRefCount&&r.delete(t);}void 0===n&&(n="");var u=e.createMap(),l=e.createGetCanonicalFileName(!!t);return{acquireDocument:function(t,i,o,s,c){return a(t,e.toPath(t,n,l),i,r(i),o,s,c)},acquireDocumentWithKey:a,updateDocument:function(t,i,a,s,c){return o(t,e.toPath(t,n,l),i,r(i),a,s,c)},updateDocumentWithKey:o,releaseDocument:function(t,i){return c(e.toPath(t,n,l),r(i))},releaseDocumentWithKey:c,reportStats:function(){var t=e.arrayFrom(u.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=[];return u.get(e).forEach(function(e,n){t.push({name:n,refCount:e.languageServiceRefCount,references:e.owners.slice(0)});}),t.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:t}});return JSON.stringify(t,void 0,2)},getKeyForCompilationSettings:r}};}(r||(r={}));!function(e){!function(n){function r(t,n,r,i,o){function s(t){var n=_(t);if(n)for(var r=0,a=n;r=0&&!(c>r.end);){var u=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),5)||u!==o&&e.isIdentifierPart(a.charCodeAt(u),5)||i.push(c),c=a.indexOf(n,c+s+1);}return i}function g(n,r){for(var i=[],a=n.getSourceFile(),o=r.text,s=0,c=m(a,o,n);s0);for(var n=0,r=t;n0);for(var n=e.PatternMatchKind.camelCase,r=0,i=t;r0)return i}switch(t.kind){case 265:var a=t;return e.isExternalModule(a)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(a.fileName))))+'"':"";case 187:case 228:case 186:case 229:case 199:return 512&e.getModifierFlags(t)?"default":N(t);case 152:return"constructor";case 156:return"new()";case 155:return"()";case 157:return"[]";case 283:return h(t);default:return""}}function h(e){if(e.name)return e.name.text;var t=e.parent&&e.parent.parent;if(t&&208===t.kind&&t.declarationList.declarations.length>0){var n=t.declarationList.declarations[0].name;if(71===n.kind)return n.text}return""}function v(t){function n(e){if(r(e)&&(a.push(e),e.children))for(var t=0,i=e.children;t0?e.declarationNameToString(t.name):226===t.parent.kind?e.declarationNameToString(t.parent.name):194===t.parent.kind&&58===t.parent.operatorToken.kind?r(t.parent.left).replace(F,""):261===t.parent.kind&&t.parent.name?r(t.parent.name):512&e.getModifierFlags(t)?"default":e.isClassLike(t)?"":""}function A(e){return 186===e.kind||187===e.kind||199===e.kind}var w,O,P,F=/\s+/g,I=[],L=[];t.getNavigationBarItems=function(t,r){w=r,O=t;try{return e.map(v(o(t)),x)}finally{n();}},t.getNavigationTree=function(e,t){w=t,O=e;try{return b(o(e))}finally{n();}};}(e.NavigationBar||(e.NavigationBar={}));}(r||(r={}));!function(e){!function(t){t.collectElements=function(t,n){function r(n,r,i,a){if(n&&r&&i){var o={textSpan:e.createTextSpanFromBounds(r.pos,i.end),hintSpan:e.createTextSpanFromNode(n,t),bannerText:l,autoCollapse:a};u.push(o);}}function i(t,n){if(t){var r={textSpan:e.createTextSpanFromBounds(t.pos,t.end),hintSpan:e.createTextSpanFromBounds(t.pos,t.end),bannerText:l,autoCollapse:n};u.push(r);}}function a(r){var a=e.getLeadingCommentRangesOfNode(r,t);if(a){for(var s=-1,c=-1,u=!0,l=0,_=0,d=a;_1&&i({kind:2,pos:t,end:n},!1);}function s(t){return e.isFunctionBlock(t)&&187!==t.parent.kind}function c(i){if(n.throwIfCancellationRequested(),!(_>d)){switch(e.isDeclaration(i)&&a(i),i.kind){case 207:if(!e.isFunctionBlock(i)){var o=i.parent,p=e.findChildOfKind(i,17,t),f=e.findChildOfKind(i,18,t);if(212===o.kind||215===o.kind||216===o.kind||214===o.kind||211===o.kind||213===o.kind||220===o.kind||260===o.kind){r(o,p,f,s(i));break}if(224===o.kind){var m=o;if(m.tryBlock===i){r(o,p,f,s(i));break}if(m.finallyBlock===i){var g=e.findChildOfKind(m,87,t);if(g){r(g,p,f,s(i));break}}}var y=e.createTextSpanFromNode(i);u.push({textSpan:y,hintSpan:y,bannerText:l,autoCollapse:s(i)});break}case 234:var p=e.findChildOfKind(i,17,t),f=e.findChildOfKind(i,18,t);r(i.parent,p,f,s(i));break;case 229:case 230:case 232:case 178:case 235:r(i,p=e.findChildOfKind(i,17,t),f=e.findChildOfKind(i,18,t),s(i));break;case 177:r(i,e.findChildOfKind(i,21,t),e.findChildOfKind(i,22,t),s(i));}_++,e.forEachChild(i,c),_--;}}var u=[],l="...",_=0,d=20;return c(t),u};}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}));}(r||(r={}));!function(e){function t(e,t,n,r){return{kind:e,punctuationStripped:t,isCaseSensitive:n,camelCaseWeight:r}}function n(e){return{totalTextChunk:d(e),subWordTextChunks:_(e)}}function r(e){return 0===e.subWordTextChunks.length}function i(t){if(t>=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,5))return!1;var n=String.fromCharCode(t);return n===n.toUpperCase()}function a(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,5))return!1;var n=String.fromCharCode(t);return n===n.toLowerCase()}function o(e,t){for(var n=e.length-t.length,r=0;r<=n;r++)if(s(e,t,r))return r;return-1}function s(e,t,n){for(var r=0;r=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function u(e){return e>=48&&e<=57}function l(e){return i(e)||a(e)||u(e)||95===e||36===e}function _(e){for(var t=[],n=0,r=0,i=0;i0&&(t.push(d(e.substr(n,r))),r=0);return r>0&&t.push(d(e.substr(n,r))),t}function d(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:p(e)}}function p(e){return m(e,!1)}function f(e){return m(e,!0)}function m(t,n){for(var r=[],i=0,a=1;a0)for(var l=0,_=u(n);l<_.length;l++){var d=_[l];if(p(n,d,r.text,!0))return t(b.substring,a,p(n,d,r.text,!1))}}else if(n.indexOf(r.text)>0)return t(b.substring,a,!0);if(!c&&r.characterSpans.length>0){var f=u(n),g=m(n,f,r,!1);if(void 0!==g)return t(b.camelCase,a,!0,g);if(void 0!==(g=m(n,f,r,!0)))return t(b.camelCase,a,!1,g)}return c&&r.text.length0&&i(n.charCodeAt(s))?t(b.substring,a,!1):void 0}function _(e){for(var t=0;tt.length)return!1;if(r)for(l=0;lt.length))){for(var i=r,a=y.length-2,o=t.length-1;a>=0;a-=1,o-=1){var c=y[a],u=d(t[o],c);if(!u)return;e.addRange(i,u);}return i}}},getMatchesForLastSegmentOfPattern:function(t){if(!s(t))return d(t,e.lastOrUndefined(y))},patternContainsDots:y.length>1}},e.breakIntoCharacterSpans=p,e.breakIntoWordSpans=f;}(r||(r={}));!function(e){e.preProcessFile=function(t,n,r){function i(){var t=e.scanner.scan();return 17===t?v++:18===t&&v--,t}function a(){var t=e.scanner.getTokenValue(),n=e.scanner.getTokenPos();return{fileName:t,pos:n,end:n+t.length}}function o(){f||(f=[]),f.push({ref:a(),depth:v});}function s(){y.push(a()),c();}function c(){0===v&&(b=!0);}function u(){var t=e.scanner.getToken();return 124===t&&(128===(t=i())&&9===(t=i())&&o(),!0)}function l(){var t=e.scanner.getToken();if(91===t){if(19===(t=i())){if(9===(t=i()))return s(),!0}else{if(9===t)return s(),!0;if(71===t||e.isKeyword(t))if(140===(t=i())){if(9===(t=i()))return s(),!0}else if(58===t){if(d(!0))return!0}else{if(26!==t)return!0;t=i();}if(17===t){for(t=i();18!==t&&1!==t;)t=i();18===t&&140===(t=i())&&9===(t=i())&&s();}else 39===t&&118===(t=i())&&(71===(t=i())||e.isKeyword(t))&&140===(t=i())&&9===(t=i())&&s();}return!0}return!1}function _(){var t=e.scanner.getToken();if(84===t){if(c(),17===(t=i())){for(t=i();18!==t&&1!==t;)t=i();18===t&&140===(t=i())&&9===(t=i())&&s();}else if(39===t)140===(t=i())&&9===(t=i())&&s();else if(91===t&&(71===(t=i())||e.isKeyword(t))&&58===(t=i())&&d(!0))return!0;return!0}return!1}function d(t){var n=t?i():e.scanner.getToken();return 132===n&&(19===(n=i())&&9===(n=i())&&s(),!0)}function p(){var t=e.scanner.getToken();if(71===t&&"define"===e.scanner.getTokenValue()){if(19!==(t=i()))return!0;if(9===(t=i())){if(26!==(t=i()))return!0;t=i();}if(21!==t)return!0;for(t=i();22!==t&&1!==t;)9===t&&s(),t=i();return!0}return!1}void 0===n&&(n=!0),void 0===r&&(r=!1);var f,m=[],g=[],y=[],h=!1,v=0,b=!1;if(n&&function(){for(e.scanner.setText(t),i();1!==e.scanner.getToken();)u()||l()||_()||r&&(d(!1)||p())||i();e.scanner.setText(void 0);}(),function(){var n=e.getLeadingCommentRanges(t,0);e.forEach(n,function(n){var r=t.substring(n.pos,n.end),i=e.getFileReferenceFromReferencePath(r,n);if(i){h=i.isNoDefaultLib;var a=i.fileReference;a&&(i.isTypeReferenceDirective?g:m).push(a);}});}(),b){if(f)for(var x=0,S=f;x0){if(e.some(c,o))return i(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(71===t.kind&&79===t.originalKeywordKind&&1536&s.parent.flags)return;var u=e.stripQuotes(e.getDeclaredName(n,s,t)),l=e.SymbolDisplay.getSymbolKind(n,s,t);return l?r(u,n.getFullyQualifiedName(s),l,e.SymbolDisplay.getSymbolModifiers(s),t,a):void 0}}else if(9===t.kind)return o(t)?i(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library):r(u=e.stripQuotes(t.text),u,"var","",t,a)}function r(e,t,n,r,i,o){return{canRename:!0,kind:n,displayName:e,localizedErrorMessage:void 0,fullDisplayName:t,kindModifiers:r,triggerSpan:a(i,o)}}function i(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t),displayName:void 0,fullDisplayName:void 0,kind:void 0,kindModifiers:void 0,triggerSpan:void 0}}function a(t,n){var r=t.getStart(n),i=t.getWidth(n);return 9===t.kind&&(r+=1,i-=2),e.createTextSpan(r,i)}function o(t){return 71===t.kind||9===t.kind||e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)||e.isThis(t)}t.getRenameInfo=function(t,r,a,s,c){var u=e.memoize(function(){return a(e.normalizePath(r))}),l=e.getTouchingWord(s,c,!0);return(l&&o(l)?n(l,t,s,function(t){if(!r)return!1;var n=t.getSourceFile();return a(e.normalizePath(n.fileName))===u()}):void 0)||i(e.Diagnostics.You_cannot_rename_this_element)};}(e.Rename||(e.Rename={}));}(r||(r={}));!function(e){!function(t){function n(e,t){if(181===e.invocation.kind){var n=e.invocation.expression,r=71===n.kind?n:179===n.kind?n.name:void 0;if(r&&r.escapedText)for(var i=t.getTypeChecker(),a=0,o=t.getSourceFiles();a0&&26===e.lastOrUndefined(n).kind&&r++,r}function o(t,n,r){return e.Debug.assert(r>=n.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralKind(n.kind)?e.isInsideTemplateLiteral(n,r)?0:t+2:t+1}function s(t,n,r){var i=13===t.template.kind?1:t.template.templateSpans.length+1;return 0!==n&&e.Debug.assertLessThan(n,i),{kind:2,invocation:t,argumentsSpan:u(t,r),argumentIndex:n,argumentCount:i}}function c(t,n){var r=t.getFullStart(),i=e.skipTrivia(n.text,t.getEnd(),!1);return e.createTextSpan(r,i-r)}function u(t,n){var r=t.template,i=r.getStart(),a=r.getEnd();return 196===r.kind&&0===e.lastOrUndefined(r.templateSpans).literal.getFullWidth()&&(a=e.skipTrivia(n.text,a,!1)),e.createTextSpan(i,a-i)}function l(t,n,i){for(var a=t;265!==a.kind;a=a.parent){if(e.isFunctionBlock(a))return;(a.posa.parent.end)&&e.Debug.fail("Node of kind "+a.kind+" is not a subspan of its parent of kind "+a.parent.kind);var o=r(a,n,i);if(o)return o}}function _(t,n,r){var i=t.getChildren(r),a=i.indexOf(n);return e.Debug.assert(a>=0&&i.length>a+1),i[a+1]}function d(t,n,r,i){function a(t){var n=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildParameterDisplay(t,e,u)});return{name:t.name,documentation:t.getDocumentationComment(),displayParts:n,isOptional:i.isOptionalParameter(t.valueDeclaration)}}function o(t){var n=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildTypeParameterDisplay(t,e,u)});return{name:t.symbol.name,documentation:e.emptyArray,displayParts:n,isOptional:!1}}var s=r.argumentCount,c=r.argumentsSpan,u=r.invocation,l=r.argumentIndex,_=0===r.kind,d=e.getInvokedExpression(u),p=i.getSymbolAtLocation(d),f=p&&e.symbolToDisplayParts(i,p,void 0,void 0),m=e.map(t,function(t){var n,r=[],s=[];f&&e.addRange(r,f);var c;if(_){c=!1,r.push(e.punctuationPart(27));var l=(t.target||t).typeParameters;n=l&&l.length>0?e.map(l,o):e.emptyArray,s.push(e.punctuationPart(29));var d=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildDisplayForParametersAndDelimiters(t.thisParameter,t.parameters,e,u)});e.addRange(s,d);}else{c=t.hasRestParameter;var p=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildDisplayForTypeParametersAndDelimiters(t.typeParameters,e,u)});e.addRange(r,p),r.push(e.punctuationPart(19)),n=e.map(t.parameters,a),s.push(e.punctuationPart(20));}var m=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildReturnTypeDisplay(t,e,u)});return e.addRange(s,m),{isVariadic:c,prefixDisplayParts:r,suffixDisplayParts:s,separatorDisplayParts:[e.punctuationPart(26),e.spacePart()],parameters:n,documentation:t.getDocumentationComment(),tags:t.getJsDocTags()}});0!==l&&e.Debug.assertLessThan(l,s);var g=t.indexOf(n);return e.Debug.assert(-1!==g),{items:m,applicableSpan:c,selectedItemIndex:g,argumentIndex:l,argumentCount:s}}!function(e){e[e.TypeArguments=0]="TypeArguments",e[e.CallArguments=1]="CallArguments",e[e.TaggedTemplateArguments=2]="TaggedTemplateArguments",e[e.JSXAttributesArguments=3]="JSXAttributesArguments";}(t.ArgumentListKind||(t.ArgumentListKind={})),t.getSignatureHelpItems=function(t,r,i,a){var o=t.getTypeChecker(),s=e.findTokenOnLeftOfPosition(r,i);if(s){var c=l(s,i,r);if(c){a.throwIfCancellationRequested();var u=c.invocation,_=[],p=o.getResolvedSignature(u,_,c.argumentCount);if(a.throwIfCancellationRequested(),_.length)return d(_,p,c,o);if(e.isSourceFileJavaScript(r))return n(c,t)}}},t.getImmediatelyContainingArgumentInfo=r,t.getContainingArgumentInfo=l;}(e.SignatureHelp||(e.SignatureHelp={}));}(r||(r={}));!function(e){!function(t){function n(t,n,i){var a=e.getCombinedLocalAndExportSymbolFlags(n);if(32&a)return e.getDeclarationOfKind(n,199)?"local class":"class";if(384&a)return"enum";if(524288&a)return"type";if(64&a)return"interface";if(262144&a)return"type parameter";var o=r(t,n,i);if(""===o){if(262144&a)return"type parameter";if(8&a)return"enum member";if(2097152&a)return"alias";if(1536&a)return"module"}return o}function r(t,n,r){if(t.isUndefinedSymbol(n))return"var";if(t.isArgumentsSymbol(n))return"local var";if(99===r.kind&&e.isExpression(r))return"parameter";var a=e.getCombinedLocalAndExportSymbolFlags(n);if(3&a)return e.isFirstDeclarationOfSymbolParameter(n)?"parameter":n.valueDeclaration&&e.isConst(n.valueDeclaration)?"const":e.forEach(n.declarations,e.isLet)?"let":i(n)?"local var":"var";if(16&a)return i(n)?"local function":"function";if(32768&a)return"getter";if(65536&a)return"setter";if(8192&a)return"method";if(16384&a)return"constructor";if(4&a){if(33554432&a&&6&n.checkFlags){var o=e.forEach(t.getRootSymbols(n),function(t){var n=t.getFlags();if(98311&n)return"property";e.Debug.assert(!!(8192&n));});return o||(t.getTypeOfSymbolAtLocation(n,r).getCallSignatures().length?"method":"property")}return r.parent&&e.isJsxAttribute(r.parent)?"JSX attribute":"property"}return""}function i(t){return!t.parent&&e.forEach(t.declarations,function(t){if(186===t.kind)return!0;if(226!==t.kind&&228!==t.kind)return!1;for(var n=t.parent;!e.isFunctionBlock(n);n=n.parent)if(265===n.kind||234===n.kind)return!1;return!0})}t.getSymbolKind=n,t.getSymbolModifiers=function(t){return t&&t.declarations&&t.declarations.length>0?e.getNodeModifiers(t.declarations[0]):""},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function(t,i,a,o,s,c){function u(){b.length&&b.push(e.lineBreakPart());}function l(){b.push(e.spacePart()),b.push(e.keywordPart(92)),b.push(e.spacePart());}function _(n,r){var i=e.symbolToDisplayParts(t,n,r||a,void 0,3);e.addRange(b,i);}function d(t,n){u(),n&&(p(n),b.push(e.spacePart()),_(t));}function p(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void b.push(e.textOrKeywordPart(t));default:return b.push(e.punctuationPart(19)),b.push(e.textOrKeywordPart(t)),void b.push(e.punctuationPart(20))}}function f(n,r,i){e.addRange(b,e.signatureToDisplayParts(t,n,o,64|i)),r.length>1&&(b.push(e.spacePart()),b.push(e.punctuationPart(19)),b.push(e.operatorPart(37)),b.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),b.push(e.spacePart()),b.push(e.textPart(2===r.length?"overload":"overloads")),b.push(e.punctuationPart(20))),g=n.getDocumentationComment(),y=n.getJsDocTags();}function m(n,r){var i=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplayFromSymbol(n,e,r);});e.addRange(b,i);}void 0===c&&(c=e.getMeaningFromLocation(s));var g,y,h,v,b=[],x=e.getCombinedLocalAndExportSymbolFlags(i),S=r(t,i,s),k=99===s.kind&&e.isExpression(s);if((""!==S||32&x||2097152&x)&&("getter"!==S&&"setter"!==S||(S="property"),P=void 0,v=k?t.getTypeAtLocation(s):t.getTypeOfSymbolAtLocation(i.exportSymbol||i,s))){if(s.parent&&179===s.parent.kind){var T=s.parent.name;(T===s||T&&0===T.getFullWidth())&&(s=s.parent);}var C=void 0;if(e.isCallOrNewExpression(s)?C=s:e.isCallExpressionTarget(s)||e.isNewExpressionTarget(s)?C=s.parent:s.parent&&e.isJsxOpeningLikeElement(s.parent)&&e.isFunctionLike(i.valueDeclaration)&&(C=s.parent),C){var D=[];!(P=t.getResolvedSignature(C,D))&&D.length&&(P=D[0]);var E=182===C.kind||e.isCallExpression(C)&&97===C.expression.kind,N=E?v.getConstructSignatures():v.getCallSignatures();if(e.contains(N,P.target)||e.contains(N,P)||(P=N.length?N[0]:void 0),P){switch(E&&32&x?(S="constructor",d(v.symbol,S)):2097152&x?(p(S="alias"),b.push(e.spacePart()),E&&(b.push(e.keywordPart(94)),b.push(e.spacePart())),_(i)):d(i,S),S){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":b.push(e.punctuationPart(56)),b.push(e.spacePart()),E&&(b.push(e.keywordPart(94)),b.push(e.spacePart())),32768&v.flags&&16&v.objectFlags||!v.symbol||e.addRange(b,e.symbolToDisplayParts(t,v.symbol,o,void 0,1)),f(P,N,16);break;default:f(P,N);}h=!0;}}else if(e.isNameOfFunctionDeclaration(s)&&!(98304&x)||123===s.kind&&152===s.parent.kind){var A=s.parent;e.find(i.declarations,function(e){return e===(123===s.kind?A.parent:A)})&&(N=152===A.kind?v.getNonNullableType().getConstructSignatures():v.getNonNullableType().getCallSignatures(),P=t.isImplementationOfOverload(A)?N[0]:t.getSignatureFromDeclaration(A),152===A.kind?(S="constructor",d(v.symbol,S)):d(155!==A.kind||2048&v.symbol.flags||4096&v.symbol.flags?i:v.symbol,S),f(P,N),h=!0);}}if(32&x&&!h&&!k&&(e.getDeclarationOfKind(i,199)?p("local class"):b.push(e.keywordPart(75)),b.push(e.spacePart()),_(i),m(i,a)),64&x&&2&c&&(u(),b.push(e.keywordPart(109)),b.push(e.spacePart()),_(i),m(i,a)),524288&x&&(u(),b.push(e.keywordPart(138)),b.push(e.spacePart()),_(i),m(i,a),b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),e.addRange(b,e.typeToDisplayParts(t,t.getDeclaredTypeOfSymbol(i),o,1024))),384&x&&(u(),e.forEach(i.declarations,e.isConstEnumDeclaration)&&(b.push(e.keywordPart(76)),b.push(e.spacePart())),b.push(e.keywordPart(83)),b.push(e.spacePart()),_(i)),1536&x){u();var w=(M=e.getDeclarationOfKind(i,233))&&M.name&&71===M.name.kind;b.push(e.keywordPart(w?129:128)),b.push(e.spacePart()),_(i);}if(262144&x&&2&c)if(u(),b.push(e.punctuationPart(19)),b.push(e.textPart("type parameter")),b.push(e.punctuationPart(20)),b.push(e.spacePart()),_(i),i.parent)l(),_(i.parent,o),m(i.parent,o);else{var O=e.getDeclarationOfKind(i,145);if(e.Debug.assert(void 0!==O),M=O.parent)if(e.isFunctionLikeKind(M.kind)){l();var P=t.getSignatureFromDeclaration(M);156===M.kind?(b.push(e.keywordPart(94)),b.push(e.spacePart())):155!==M.kind&&M.name&&_(M.symbol),e.addRange(b,e.signatureToDisplayParts(t,P,a,64));}else 231===M.kind&&(l(),b.push(e.keywordPart(138)),b.push(e.spacePart()),_(M.symbol),m(M.symbol,a));}if(8&x&&(S="enum member",d(i,"enum member"),264===(M=i.declarations[0]).kind)){var F=t.getConstantValue(M);void 0!==F&&(b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),b.push(e.displayPart(e.getTextOfConstantValue(F),"number"==typeof F?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)));}if(2097152&x&&(u(),236===i.declarations[0].kind?(b.push(e.keywordPart(84)),b.push(e.spacePart()),b.push(e.keywordPart(129))):b.push(e.keywordPart(91)),b.push(e.spacePart()),_(i),e.forEach(i.declarations,function(n){if(237===n.kind){var r=n;if(e.isExternalModuleImportEqualsDeclaration(r))b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),b.push(e.keywordPart(132)),b.push(e.punctuationPart(19)),b.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),b.push(e.punctuationPart(20));else{var i=t.getSymbolAtLocation(r.moduleReference);i&&(b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),_(i,o));}return!0}})),!h)if(""!==S){if(v)if(k?(u(),b.push(e.keywordPart(99))):d(i,S),"property"===S||"JSX attribute"===S||3&x||"local var"===S||k)if(b.push(e.punctuationPart(56)),b.push(e.spacePart()),v.symbol&&262144&v.symbol.flags){var I=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplay(v,e,o);});e.addRange(b,I);}else e.addRange(b,e.typeToDisplayParts(t,v,o));else(16&x||8192&x||16384&x||131072&x||98304&x||"method"===S)&&f((N=v.getNonNullableType().getCallSignatures())[0],N);}else S=n(t,i,s);if(!g&&(g=i.getDocumentationComment(),y=i.getJsDocTags(),0===g.length&&4&x&&i.parent&&e.forEach(i.parent.declarations,function(e){return 265===e.kind})))for(var L=0,R=i.declarations;L0))break}}return{displayParts:b,documentation:g,symbolKind:S,tags:y}};}(e.SymbolDisplay||(e.SymbolDisplay={}));}(r||(r={}));!function(e){function t(t,r){var i=[],a=r.compilerOptions?n(r.compilerOptions,i):e.getDefaultCompilerOptions();a.isolatedModules=!0,a.suppressOutputPathCheck=!0,a.allowNonTsExtensions=!0,a.noLib=!0,a.lib=void 0,a.types=void 0,a.noEmit=void 0,a.noEmitOnError=void 0,a.paths=void 0,a.rootDirs=void 0,a.declaration=void 0,a.declarationDir=void 0,a.out=void 0,a.outFile=void 0,a.noResolve=!0;var o=r.fileName||(a.jsx?"module.tsx":"module.ts"),s=e.createSourceFile(o,t,a.target);r.moduleName&&(s.moduleName=r.moduleName),r.renamedDependencies&&(s.renamedDependencies=e.createMapFromTemplate(r.renamedDependencies));var c,u,l=e.getNewLineCharacter(a),_={getSourceFile:function(t){return t===e.normalizePath(o)?s:void 0},writeFile:function(t,n){e.fileExtensionIs(t,".map")?(e.Debug.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",t),u=n):(e.Debug.assertEqual(c,void 0,"Unexpected multiple outputs, file:",t),c=n);},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return l},fileExists:function(e){return e===o},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},d=e.createProgram([o],a,_);return r.reportDiagnostics&&(e.addRange(i,d.getSyntacticDiagnostics(s)),e.addRange(i,d.getOptionsDiagnostics())),d.emit(void 0,void 0,void 0,void 0,r.transformers),e.Debug.assert(void 0!==c,"Output generation failed"),{outputText:c,diagnostics:i,sourceMapText:u}}function n(t,n){r=r||e.filter(e.optionDeclarations,function(t){return"object"==typeof t.type&&!e.forEachEntry(t.type,function(e){return"number"!=typeof e})}),t=e.cloneCompilerOptions(t);for(var i=0,a=r;i>=5,n+=5;return t},t.prototype.IncreaseInsertionIndex=function(t){var n=this.rulesInsertionIndexBitmap>>t&31;n++,e.Debug.assert((31&n)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules.");var r=this.rulesInsertionIndexBitmap&~(31<=0},e.prototype.isSpecific=function(){return!0},e}(),a=function(){function e(e){this.token=e;}return e.prototype.GetTokens=function(){return[this.token]},e.prototype.Contains=function(e){return e===this.token},e.prototype.isSpecific=function(){return!0},e}(),o=function(){function e(){}return e.prototype.GetTokens=function(){return n},e.prototype.Contains=function(){return!0},e.prototype.toString=function(){return"[allTokens]"},e.prototype.isSpecific=function(){return!1},e}(),s=function(){function e(e){this.except=e;}return e.prototype.GetTokens=function(){var e=this;return n.filter(function(t){return t!==e.except})},e.prototype.Contains=function(e){return e!==this.except},e.prototype.isSpecific=function(){return!1},e}();!function(t){t.FromToken=function(e){return new a(e)},t.FromTokens=function(e){return new i(e)},t.FromRange=function(t,n,r){void 0===r&&(r=[]);for(var a=[],o=t;o<=n;o++)e.indexOf(r,o)<0&&a.push(o);return new i(a)},t.AnyExcept=function(e){return new s(e)},t.Any=new o,t.AnyIncludingMultilineComments=t.FromTokens(n.concat([3])),t.Keywords=t.FromRange(72,142),t.BinaryOperators=t.FromRange(27,70),t.BinaryKeywordOperators=t.FromTokens([92,93,142,118,126]),t.UnaryPrefixOperators=t.FromTokens([43,44,52,51]),t.UnaryPrefixExpressions=t.FromTokens([8,71,19,21,17,99,94]),t.UnaryPreincrementExpressions=t.FromTokens([71,19,99,94]),t.UnaryPostincrementExpressions=t.FromTokens([71,20,22,94]),t.UnaryPredecrementExpressions=t.FromTokens([71,19,99,94]),t.UnaryPostdecrementExpressions=t.FromTokens([71,20,22,94]),t.Comments=t.FromTokens([2,3]),t.TypeNames=t.FromTokens([71,133,136,122,137,105,119]);}(t.TokenRange||(t.TokenRange={}));}(t.Shared||(t.Shared={}));}(e.formatting||(e.formatting={}));}(r||(r={}));!function(e){!function(t){var n=function(){function n(){this.globalRules=new t.Rules;var e=this.globalRules.HighPriorityCommonRules.slice(0).concat(this.globalRules.UserConfigurableRules).concat(this.globalRules.LowPriorityCommonRules);this.rulesMap=t.RulesMap.create(e);}return n.prototype.getRuleName=function(e){return this.globalRules.getRuleName(e)},n.prototype.getRuleByName=function(e){return this.globalRules[e]},n.prototype.getRulesMap=function(){return this.rulesMap},n.prototype.getFormatOptions=function(){return this.options},n.prototype.ensureUpToDate=function(t){this.options&&e.compareDataObjects(this.options,t)||(this.options=e.clone(t));},n}();t.RulesProvider=n;}(e.formatting||(e.formatting={}));}(r||(r={}));!function(e){!function(t){function n(t,n,r){var i=e.findPrecedingToken(t,r);return i&&i.kind===n&&t===i.getEnd()?i:void 0}function r(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!i(t.parent,t);)t=t.parent;return t}function i(t,n){switch(t.kind){case 229:case 230:return e.rangeContainsRange(t.members,n);case 233:var r=t.body;return r&&234===r.kind&&e.rangeContainsRange(r.statements,n);case 265:case 207:case 234:return e.rangeContainsRange(t.statements,n);case 260:return e.rangeContainsRange(t.block.statements,n)}return!1}function a(t,n){function r(i){var a=e.forEachChild(i,function(r){return e.startEndContainsRange(r.getStart(n),r.end,t)&&r});if(a){var o=r(a);if(o)return o}return i}return r(n)}function o(t,n){function r(){return!1}if(!t.length)return r;var i=t.filter(function(t){return e.rangeOverlapsWithStartEnd(n,t.start,t.start+t.length)}).sort(function(e,t){return e.start-t.start});if(!i.length)return r;var a=0;return function(t){for(;;){if(a>=i.length)return!1;var n=i[a];if(t.end<=n.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,n.start,n.start+n.length))return!0;a++;}}}function s(t,n,r){var i=t.getStart(r);if(i===n.pos&&t.end===n.end)return i;var a=e.findPrecedingToken(n.pos,r);return a?a.end>=n.pos?t.pos:a.end:t.pos}function c(e,n,r){for(var i,a=-1;e;){var o=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(e,i))return n.indentSize;a=o,i=e,e=e.parent;}return 0}function u(t,n,r,i,a){return t?l({pos:e.getLineStartPositionForPosition(t.getStart(n),n),end:t.end},n,r,i,a):[]}function l(e,n,r,i,u){var l=a(e,n);return _(e,l,t.SmartIndenter.getIndentationForNode(l,e,n,r),c(l,r,n),t.getFormattingScanner(n.text,n.languageVariant,s(l,e,n),e.end),r,i,u,o(n.parseDiagnostics,e),n)}function _(n,r,i,a,o,s,c,u,l,_){function m(n,r,i,a,o){if(e.rangeOverlapsWithStartEnd(a,n,r)||e.rangeContainsStartEnd(a,n,r)){if(-1!==o)return o}else{var c=_.getLineAndCharacterOfPosition(n).line,u=e.getLineStartPositionForPosition(n,_),l=t.SmartIndenter.findFirstNonWhitespaceColumn(u,n,_,s);if(c!==i||n===l){var d=t.SmartIndenter.getBaseIndentation(s);return d>l?d:l}}return-1}function g(e,n,r,i,a,o){var c=r,u=t.SmartIndenter.shouldIndentChildNode(e)?s.indentSize:0;return o===n?(c=n===M?B:a.getIndentation(),u=Math.min(s.indentSize,a.getDelta(e)+u)):-1===c&&(c=t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,n,_)?a.getIndentation():a.getIndentation()+a.getDelta(e)),{indentation:c,delta:u}}function y(t){if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 229:return 75;case 230:return 109;case 228:return 89;case 232:return 232;case 153:return 125;case 154:return 135;case 151:if(t.asteriskToken)return 39;case 149:case 146:return e.getNameOfDeclaration(t).kind}}function h(e,n,r,i){function a(n,r){return t.SmartIndenter.nodeWillIndentChild(e,r,!0)?n:0}return{getIndentationForComment:function(e,t,n){switch(e){case 18:case 22:case 20:return r+a(i,n)}return-1!==t?t:r},getIndentationForToken:function(t,o,s){if(n!==t&&e.decorators&&o===y(e))return r;switch(o){case 17:case 18:case 19:case 20:case 82:case 106:case 57:return r;case 41:case 29:if(251===s.kind||252===s.kind||250===s.kind)return r;break;case 21:case 22:if(172!==s.kind)return r}return n!==t?r+a(i,s):r},getIndentation:function(){return r},getDelta:function(e){return a(i,e)},recomputeIndentation:function(n){e.parent&&t.SmartIndenter.shouldIndentChildNode(e.parent,e)&&(n?r+=s.indentSize:r-=s.indentSize,i=t.SmartIndenter.shouldIndentChildNode(e)?s.indentSize:0);}}}function v(t,r,i,a,s,c){function u(r,i,a,s,c,u,l,d){var p=r.getStart(_),f=_.getLineAndCharacterOfPosition(p).line,h=f;r.decorators&&(h=_.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,_)).line);var b=-1;if(l&&-1!==(b=m(p,r.end,c,n,i))&&(i=b),!e.rangeOverlapsWithStartEnd(n,r.pos,r.end))return r.endp);)y(x,t,s,t);if(!o.isOnToken())return i;if(e.isToken(r)&&10!==r.kind){var x=o.readTokenInfo(r);return e.Debug.assert(x.token.end===r.end,"Token end is child end"),y(x,t,s,r),i}var S=147===r.kind?f:u,k=g(r,f,b,t,s,S);return v(r,T,f,h,k.indentation,k.delta),T=t,d&&177===a.kind&&-1===i&&(i=k.indentation),i}function f(n,r,i,a){e.Debug.assert(e.isNodeArray(n));var s=d(r,n),c=p(s),l=a,f=i;if(0!==s)for(;o.isOnToken()&&!((x=o.readTokenInfo(r)).token.end>n.pos);)if(x.token.kind===s){f=_.getLineAndCharacterOfPosition(x.token.pos).line;var m=g(x.token,f,-1,r,a,i);y(x,r,l=h(r,i,m.indentation,m.delta),r);}else y(x,r,a,r);for(var v=-1,b=0;bt.end)break;y(C,t,S,t);}}}function b(t,r,i,a){for(var o=0,s=t;o0){var S=f(x,s);O(v,b.character,S);}else w(v,b.character);}}}else i||k(n.pos,r,!1);}function E(t,n,r){for(var i=t;io)){var s=N(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(_.text.charCodeAt(s-1))),w(s,o+1-s));}}}function N(t,n){for(var r=n;r>=t&&e.isWhiteSpaceSingleLine(_.text.charCodeAt(r));)r--;return r!==n?r+1:-1}function A(t,n,r){return{span:e.createTextSpan(t,n),newText:r}}function w(e,t){t&&j.push(A(e,t,""));}function O(e,t,n){(t||n)&&j.push(A(e,t,n));}function P(e,t,n,r,i){switch(e.Operation.Action){case 1:return;case 8:t.end!==r.pos&&w(t.end,r.pos-t.end);break;case 4:if(1!==e.Flag&&n!==i)return;1!==i-n&&O(t.end,r.pos-t.end,s.newLineCharacter);break;case 2:if(1!==e.Flag&&n!==i)return;1===r.pos-t.end&&32===_.text.charCodeAt(t.end)||O(t.end,r.pos-t.end," ");}}var F,I,L,R,M,B,K=new t.FormattingContext(_,u,s),j=[];if(o.advance(),o.isOnToken()){var J=_.getLineAndCharacterOfPosition(r.getStart(_)).line,z=J;r.decorators&&(z=_.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,_)).line),v(r,r,J,z,i,a);}if(!o.isOnToken()){var U=o.getCurrentLeadingTrivia();U&&(b(U,r,r,void 0),function(){var e=I?I.end:n.pos;E(_.getLineAndCharacterOfPosition(e).line,_.getLineAndCharacterOfPosition(n.end).line+1,I);}());}return o.close(),j}function d(e,t){switch(e.kind){case 152:case 228:case 186:case 151:case 150:case 187:if(e.typeParameters===t)return 27;if(e.parameters===t)return 19;break;case 181:case 182:if(e.typeArguments===t)return 27;if(e.arguments===t)return 19;break;case 159:if(e.typeArguments===t)return 27}return 0}function p(e){switch(e){case 19:return 20;case 27:return 29}return 0}function f(e,t){function n(e,t){for(var n="",r=0;rr.end;}if(f&&-1!==(y=d(e,s,c)))return y+a;var g=(l=i(_,e,s)).line===t.line||u(_,e,t.line,s);if(f){var y=o(e,_,t,g,s,c);if(-1!==y)return y+a;if(-1!==(y=p(e,s,c)))return y+a}b(_,e)&&!g&&(a+=c.indentSize),t=l,_=(e=_).parent;}return a+n(c)}function i(e,t,n){var r=_(t,n);return r?n.getLineAndCharacterOfPosition(r.pos):n.getLineAndCharacterOfPosition(e.getStart(n))}function a(t,n,r){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?f(i.list.getChildren(),i.listItemIndex-1,n,r):-1}function o(t,n,r,i,a,o){return(e.isDeclaration(t)||e.isStatementButNotDeclaration(t))&&(265===n.kind||!i)?m(r,a,o):-1}function s(t,n,r,i){var a=e.findNextToken(t,n);return a?17===a.kind?1:18===a.kind&&r===c(a,i).line?2:0:0}function c(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function u(t,n,r,i){if(211===t.kind&&t.elseStatement===n){var a=e.findChildOfKind(t,82,i);return e.Debug.assert(void 0!==a),c(a,i).line===r}return!1}function l(t,n,r){return t&&e.rangeContainsStartEnd(t,n,r)?t:void 0}function _(e,t){if(e.parent)switch(e.parent.kind){case 159:return l(e.parent.typeArguments,e.getStart(t),e.getEnd());case 178:return e.parent.properties;case 177:return e.parent.elements;case 228:case 186:case 187:case 151:case 150:case 155:case 152:case 161:case 156:n=e.getStart(t);return l(e.parent.typeParameters,n,e.getEnd())||l(e.parent.parameters,n,e.getEnd());case 229:return l(e.parent.typeParameters,e.getStart(t),e.getEnd());case 182:case 181:var n=e.getStart(t);return l(e.parent.typeArguments,n,e.getEnd())||l(e.parent.arguments,n,e.getEnd());case 227:return l(e.parent.declarations,e.getStart(t),e.getEnd());case 241:case 245:return l(e.parent.elements,e.getStart(t),e.getEnd())}}function d(t,n,r){var i=_(t,n);return i?function(i){var a=e.indexOf(i,t);return-1!==a?f(i,a,n,r):-1}(i):-1}function p(t,n,r){if(20===t.kind)return-1;if(t.parent&&e.isCallOrNewExpression(t.parent)&&t.parent.expression!==t){var i=t.parent.expression,a=function(e){for(;;)switch(e.kind){case 181:case 182:case 179:case 180:e=e.expression;break;default:return e}}(i);if(i===a)return-1;var o=n.getLineAndCharacterOfPosition(i.end),s=n.getLineAndCharacterOfPosition(a.end);return o.line===s.line?-1:m(o,n,r)}return-1}function f(t,n,r,i){e.Debug.assert(n>=0&&n=0;o--)if(26!==t[o].kind){if(r.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return m(a,r,i);a=c(t[o],r);}return-1}function m(e,t,n){var r=t.getPositionOfLineAndCharacter(e.line,0);return y(r,r+e.character,t,n)}function g(t,n,r,i){for(var a=0,o=0,s=t;so.text.length)return n(u);if(u.indentStyle===e.IndentStyle.None)return 0;var _=e.findPrecedingToken(i,o);if(!_)return n(u);if(e.isStringOrRegularExpressionOrTemplateLiteral(_.kind)&&_.getStart(o)<=i&&_.end>i)return 0;var f=o.getLineAndCharacterOfPosition(i).line;if(u.indentStyle===e.IndentStyle.Block){for(var m=i;m>0;){var g=o.text.charCodeAt(m);if(!e.isWhiteSpaceLike(g))break;m--;}var y=e.getLineStartPositionForPosition(m,o);return t.findFirstNonWhitespaceColumn(y,m,o,u)}if(26===_.kind&&194!==_.parent.kind&&-1!==(T=a(_,o,u)))return T;for(var h,v,x,S=_;S;){if(e.positionBelongsToNode(S,i,o)&&b(S,h)){v=c(S,o);var k=s(_,S,f,o);x=0!==k?l&&2===k?u.indentSize:0:f!==v.line?u.indentSize:0;break}var T=d(S,o,u);if(-1!==T)return T;if(-1!==(T=p(S,o,u)))return T+u.indentSize;h=S,S=S.parent;}return S?r(S,v,void 0,x,o,u):n(u)},t.getIndentationForNode=function(e,t,n,i){return r(e,n.getLineAndCharacterOfPosition(e.getStart(n)),t,0,n,i)},t.getBaseIndentation=n;var S;!function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace";}(S||(S={})),t.childStartsOnTheSameLineWithElseInIfStatement=u,t.getContainingList=_,t.findFirstNonWhitespaceCharacterAndColumn=g,t.findFirstNonWhitespaceColumn=y,t.nodeWillIndentChild=v,t.shouldIndentChildNode=b;}(t.SmartIndenter||(t.SmartIndenter={}));}(e.formatting||(e.formatting={}));}(r||(r={}));!function(e){!function(t){function n(t){var n=t.__pos;return e.Debug.assert("number"==typeof n),n}function r(t,n){e.Debug.assert("number"==typeof n),t.__pos=n;}function i(t){var n=t.__end;return e.Debug.assert("number"==typeof n),n}function a(t,n){e.Debug.assert("number"==typeof n),t.__end=n;}function o(t,n){return e.skipTrivia(t,n,!1,!0)}function s(t,n){for(var r=n;r=0;r--){var i=n[r];t=""+t.substring(0,i.span.start)+i.newText+t.substring(e.textSpanEnd(i.span));}return t}function g(t){return e.skipTrivia(t,0)===t.length}function y(t){var r=e.visitEachChild(t,y,e.nullTransformationContext,h,y),a=e.nodeIsSynthesized(r)?r:Object.create(r);return a.pos=n(t),a.end=i(t),a}function h(t,r,a,o,s){var c=e.visitNodes(t,r,a,o,s);if(!c)return c;var u=c===t?e.createNodeArray(c.slice(0)):c;return u.pos=n(t),u.end=i(t),u}var v;!function(e){e[e.FullStart=0]="FullStart",e[e.Start=1]="Start";}(v=t.Position||(t.Position={}));var b;!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes";}(b||(b={})),t.getSeparatorCharacter=function(t){return e.tokenToString(t.kind)},t.getAdjustedStartPosition=c,t.getAdjustedEndPosition=u;var x=function(){function t(t,n,r){this.newLine=t,this.rulesProvider=n,this.validator=r,this.changes=[],this.newLineCharacter=e.getNewLineCharacter({newLine:t});}return t.fromCodeFixContext=function(e){return new t(d(e),e.rulesProvider)},t.prototype.deleteRange=function(e,t){return this.changes.push({kind:b.Remove,sourceFile:e,range:t}),this},t.prototype.deleteNode=function(e,t,n){void 0===n&&(n={});var r=c(e,t,n,v.FullStart),i=u(e,t,n);return this.changes.push({kind:b.Remove,sourceFile:e,range:{pos:r,end:i}}),this},t.prototype.deleteNodeRange=function(e,t,n,r){void 0===r&&(r={});var i=c(e,t,r,v.FullStart),a=u(e,n,r);return this.changes.push({kind:b.Remove,sourceFile:e,range:{pos:i,end:a}}),this},t.prototype.deleteNodeInList=function(t,n){var r=e.formatting.SmartIndenter.getContainingList(n,t);if(!r)return e.Debug.fail("node is not a list element"),this;var i=r.indexOf(n);if(i<0)return this;if(1===r.length)return this.deleteNode(t,n),this;if(i!==r.length-1){var a=e.getTokenAtPosition(t,n.end,!1);if(a&&l(n,a)){var o=e.skipTrivia(t.text,c(t,n,{},v.FullStart),!1,!0),s=r[i+1],u=e.skipTrivia(t.text,c(t,s,{},v.FullStart),!1,!0);this.deleteRange(t,{pos:o,end:u});}}else{var _=e.getTokenAtPosition(t,r[i-1].end,!1);_&&l(n,_)&&this.deleteNodeRange(t,_,n);}return this},t.prototype.replaceRange=function(e,t,n,r){return void 0===r&&(r={}),this.changes.push({kind:b.ReplaceWithSingleNode,sourceFile:e,range:t,options:r,node:n}),this},t.prototype.replaceNode=function(e,t,n,r){void 0===r&&(r={});var i=c(e,t,r,v.Start),a=u(e,t,r);return this.replaceWithSingle(e,i,a,n,r)},t.prototype.replaceNodeRange=function(e,t,n,r,i){void 0===i&&(i={});var a=c(e,t,i,v.Start),o=u(e,n,i);return this.replaceWithSingle(e,a,o,r,i)},t.prototype.replaceWithSingle=function(e,t,n,r,i){return this.changes.push({kind:b.ReplaceWithSingleNode,sourceFile:e,options:i,node:r,range:{pos:t,end:n}}),this},t.prototype.replaceWithMultiple=function(e,t,n,r,i){return this.changes.push({kind:b.ReplaceWithMultipleNodes,sourceFile:e,options:i,nodes:r,range:{pos:t,end:n}}),this},t.prototype.replaceNodeWithNodes=function(e,t,n,r){var i=c(e,t,r,v.Start),a=u(e,t,r);return this.replaceWithMultiple(e,i,a,n,r)},t.prototype.replaceNodesWithNodes=function(t,n,r,i){var a=c(t,n[0],i,v.Start),o=u(t,e.lastOrUndefined(n),i);return this.replaceWithMultiple(t,a,o,r,i)},t.prototype.replaceRangeWithNodes=function(e,t,n,r){return this.replaceWithMultiple(e,t.pos,t.end,n,r)},t.prototype.replaceNodeRangeWithNodes=function(e,t,n,r,i){var a=c(e,t,i,v.Start),o=u(e,n,i);return this.replaceWithMultiple(e,a,o,r,i)},t.prototype.insertNodeAt=function(e,t,n,r){return void 0===r&&(r={}),this.changes.push({kind:b.ReplaceWithSingleNode,sourceFile:e,options:r,node:n,range:{pos:t,end:t}}),this},t.prototype.insertNodeBefore=function(e,t,n,r){void 0===r&&(r={});var i=c(e,t,r,v.Start);return this.replaceWithSingle(e,i,i,n,r)},t.prototype.insertNodeAfter=function(t,n,r,i){void 0===i&&(i={}),(e.isStatementButNotDeclaration(n)||149===n.kind||148===n.kind||150===n.kind)&&59!==t.text.charCodeAt(n.end-1)&&this.changes.push({kind:b.ReplaceWithSingleNode,sourceFile:t,options:{},range:{pos:n.end,end:n.end},node:e.createToken(25)});var a=u(t,n,i);return this.replaceWithSingle(t,a,a,r,i)},t.prototype.insertNodeInListAfter=function(t,n,r){var i=e.formatting.SmartIndenter.getContainingList(n,t);if(!i)return e.Debug.fail("node is not a list element"),this;var a=i.indexOf(n);if(a<0)return this;var c=n.getEnd();if(a!==i.length-1){var u=e.getTokenAtPosition(t,n.end,!1);if(u&&l(n,u)){var d=e.getLineAndCharacterOfPosition(t,o(t.text,i[a+1].getFullStart())),p=e.getLineAndCharacterOfPosition(t,u.end),f=void 0,m=void 0;p.line===d.line?(m=u.end,f=_(d.character-p.character)):m=e.getStartPositionOfLine(d.line,t),this.changes.push({kind:b.ReplaceWithSingleNode,sourceFile:t,range:{pos:m,end:i[a+1].getStart(t)},node:r,options:{prefix:f,suffix:""+e.tokenToString(u.kind)+t.text.substring(u.end,i[a+1].getStart(t))}});}}else{var g=n.getStart(t),y=e.getLineStartPositionForPosition(g,t),h=void 0,v=!1;if(1===i.length)h=26;else{var x=e.findPrecedingToken(n.pos,t);h=l(n,x)?x.kind:26,v=e.getLineStartPositionForPosition(i[a-1].getStart(t),t)!==y;}if(s(t.text,n.end)&&(v=!0),v){this.changes.push({kind:b.ReplaceWithSingleNode,sourceFile:t,range:{pos:c,end:c},node:e.createToken(h),options:{}});var S=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(y,g,t,this.rulesProvider.getFormatOptions()),k=e.skipTrivia(t.text,c,!0,!1);k!==c&&e.isLineBreak(t.text.charCodeAt(k-1))&&k--,this.changes.push({kind:b.ReplaceWithSingleNode,sourceFile:t,range:{pos:k,end:k},node:r,options:{indentation:S,prefix:this.newLineCharacter}});}else this.changes.push({kind:b.ReplaceWithSingleNode,sourceFile:t,range:{pos:c,end:c},node:r,options:{prefix:e.tokenToString(h)+" "}});}return this},t.prototype.getChanges=function(){for(var n=this,r=e.createMap(),i=0,a=this.changes;i0&&(i=i.concat(n));}),i};}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){var n=e.createMap();t.registerRefactor=function(e){n.set(e.name,e);},t.getApplicableRefactors=function(t){return e.flatMapIter(n.values(),function(e){return t.cancellationToken&&t.cancellationToken.isCancellationRequested()?[]:e.getAvailableActions(t)})},t.getEditsForRefactor=function(e,t,r){var i=n.get(t);return i&&i.getEditsForAction(e,r)};}(e.refactor||(e.refactor={}));}(r||(r={}));!function(e){!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code],getCodeActions:function(t){var n=t.sourceFile,r=e.getTokenAtPosition(n,t.span.start,!1),i=e.getAncestor(r,143);if(e.Debug.assert(!!i,"Expected position to be owned by a qualified name."),e.isIdentifier(i.left)){var a=i.left.getText(n),o=i.right.getText(n),s=e.createIndexedAccessTypeNode(e.createTypeReferenceNode(i.left,void 0),e.createLiteralTypeNode(e.createLiteral(o))),c=e.textChanges.ChangeTracker.fromCodeFixContext(t);return c.replaceNode(n,i,s),[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Rewrite_as_the_indexed_access_type_0),[a+'["'+o+'"]']),changes:c.getChanges()}]}}});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code],getCodeActions:function(n){function r(e,t,n,r){if(!n){var i=s.getIndexInfoOfType(e,t);if(i){var a=s.indexInfoToIndexSignatureDeclaration(i,t,c);r.push(a);}}}var i=n.sourceFile,a=n.span.start,o=e.getTokenAtPosition(i,a,!1),s=n.program.getTypeChecker(),c=e.getContainingClass(o);if(c){for(var u=e.getOpenBraceOfClassLike(c,i),l=s.getTypeAtLocation(c),_=e.getClassImplementsHeritageClauseElements(c),d=!!s.getIndexTypeOfType(l,1),p=!!s.getIndexTypeOfType(l,0),f=[],m=0,g=_;m0&&function(e,r,i){e.push({description:i,changes:t.newNodesToChanges(r,u,n)});}(f,b,x);}return f}}});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code],getCodeActions:function(n){function r(r){if(181===o.parent.parent.kind){var i=o.parent.parent,a=t.createMethodFromCallExpression(i,c,r,u),s=e.textChanges.ChangeTracker.fromCodeFixContext(n);return s.insertNodeAfter(m,g,a,{suffix:n.newLineCharacter}),{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(u?e.Diagnostics.Declare_method_0:e.Diagnostics.Declare_static_method_0),[c]),changes:s.getChanges()}}}var i=n.sourceFile,a=n.span.start,o=e.getTokenAtPosition(i,a,!1);if(71===o.kind&&e.isPropertyAccessExpression(o.parent)){var s,c=o.getText(i),u=!1;if(99===o.parent.expression.kind){var l=e.getThisContainer(o,!1);if(!e.isClassElement(l))return;s=l.parent,u=s&&e.hasModifier(l,32);}else{var _=n.program.getTypeChecker(),d=o.parent.expression,p=_.getTypeAtLocation(d);if(32768&p.flags){var f=p.symbol;32&f.flags&&(s=f.declarations&&f.declarations[0],p!==_.getDeclaredTypeOfSymbol(f)&&(u=!0));}}if(s&&e.isClassLike(s)){var m=e.getSourceFileOfNode(s),g=e.getOpenBraceOfClassLike(s,m);return e.isInJavaScriptFile(m)?function(t,i){var a,o=r(!1);if(o&&(a=[o]),i){if(199===t.kind)return a;var s=t.name.getText(),u=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier(s),c),e.createIdentifier("undefined"))),l=e.textChanges.ChangeTracker.fromCodeFixContext(n);l.insertNodeAfter(m,t,u,{suffix:n.newLineCharacter});var _={description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Initialize_static_property_0),[c]),changes:l.getChanges()};return(a||(a=[])).push(_),a}var d=e.getFirstConstructorWithBody(t);if(!d)return a;var p=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createThis(),c),e.createIdentifier("undefined"))),f=e.textChanges.ChangeTracker.fromCodeFixContext(n);f.insertNodeAt(m,d.body.getEnd()-1,p,{prefix:n.newLineCharacter,suffix:n.newLineCharacter});var g={description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Initialize_property_0_in_the_constructor),[c]),changes:f.getChanges()};return(a||(a=[])).push(g),a}(s,u):function(t,i){var a,s=r(!0);s&&(a=[s]);var u;if(194===o.parent.parent.kind){var l=o.parent.parent,_=o.parent===l.left?l.right:l.left,d=n.program.getTypeChecker(),p=d.getWidenedType(d.getBaseTypeOfLiteralType(d.getTypeAtLocation(_)));u=d.typeToTypeNode(p,t);}u=u||e.createKeywordTypeNode(119);var f=e.createProperty(void 0,i?[e.createToken(115)]:void 0,c,void 0,u,void 0),y=e.textChanges.ChangeTracker.fromCodeFixContext(n);if(y.insertNodeAfter(m,g,f,{suffix:n.newLineCharacter}),(a||(a=[])).push({description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Declare_property_0),[c]),changes:y.getChanges()}),!i){var h=e.createKeywordTypeNode(136),v=e.createParameter(void 0,void 0,void 0,"x",void 0,h,void 0),b=e.createIndexSignature(void 0,void 0,[v],u),x=e.textChanges.ChangeTracker.fromCodeFixContext(n);x.insertNodeAfter(m,g,b,{suffix:n.newLineCharacter}),a.push({description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Add_index_signature_for_property_0),[c]),changes:x.getChanges()});}return a}(s,u)}}}});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(e){var t=0;return 4&e&&(t|=1920),2&e&&(t|=793064),1&e&&(t|=107455),t}t.registerCodeFix({errorCodes:[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code],getCodeActions:function(t){var r,i=t.sourceFile,a=e.getTokenAtPosition(i,t.span.start,!1),o=t.program.getTypeChecker();if(e.isPropertyAccessExpression(a.parent)&&a.parent.name===a){e.Debug.assert(71===a.kind);var s=o.getTypeAtLocation(a.parent.expression);r=o.getSuggestionForNonexistentProperty(a,s);}else{var c=e.getMeaningFromLocation(a);r=o.getSuggestionForNonexistentSymbol(a,e.getTextOfNode(a),n(c));}if(r)return[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Change_spelling_to_0),[r]),changes:[{fileName:i.fileName,textChanges:[{span:{start:a.getStart(),length:a.getWidth()},newText:r}]}]}]}});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(n){var i=n.sourceFile,a=n.span.start,o=e.getTokenAtPosition(i,a,!1),s=n.program.getTypeChecker();if(e.isClassLike(o.parent)){var c=o.parent,u=e.getClassExtendsHeritageClauseElement(c),l=s.getTypeAtLocation(u),_=s.getPropertiesOfType(l).filter(r),d=t.createMissingMemberNodes(c,_,s),p=t.newNodesToChanges(d,e.getOpenBraceOfClassLike(c,i),n);if(p&&p.length>0)return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Implement_inherited_abstract_class),changes:p}]}}function r(t){var n=t.getDeclarations();e.Debug.assert(!!(n&&n.length>0));var r=e.getModifierFlags(n[0]);return!(8&r||!(128&r))}t.registerCodeFix({errorCodes:[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code],getCodeActions:n}),t.registerCodeFix({errorCodes:[e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],getCodeActions:function(t){function n(t){if(210===t.kind&&e.isSuperCall(t.expression))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,n)}var r=t.sourceFile,i=e.getTokenAtPosition(r,t.span.start,!1);if(99===i.kind){var a=e.getContainingFunction(i),o=n(a.body);if(o){if(o.expression&&181===o.expression.kind)for(var s=o.expression.arguments,c=0;c0){var s=o[0].getFirstToken();if(s&&85===s.kind){var c=e.textChanges.ChangeTracker.fromCodeFixContext(t);c.replaceNode(n,s,e.createToken(108));for(var u=1;u=0;)switch(o=s,s=e.indexOf("/",o+1),c){case 0:e.indexOf("/node_modules/",o)===o&&(n=o,r=s,c=1);break;case 1:case 2:1===c&&"@"===e.charAt(o+1)?c=2:(i=s,c=3);break;case 3:c=e.indexOf("/node_modules/",o)===o?1:3;}return a=o,c>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:a}:void 0}function d(e,t){for(var n=0,r=t;n=0;y--){var h=l.statements[y];if(237===h.kind||238===h.kind){u=h;break}}var v=e.createGetCanonicalFileName(p),b=e.stripQuotes(n||function(){var n=l.fileName,i=r.valueDeclaration.getSourceFile().fileName,a=e.getDirectoryPath(n),o=t.program.getCompilerOptions();return function(){var t=r.valueDeclaration;if(e.isModuleDeclaration(t)&&e.isStringLiteral(t.name))return t.name.text}()||function(){var n=e.getEffectiveTypeRoots(o,t.host);if(n)for(var r=0,a=e.map(n,function(t){return e.toPath(t,void 0,v)});r=l.length+_.length&&e.startsWith(t,l)&&e.endsWith(t,_)){var d=t.substr(l.length,t.length-_.length);return r.replace("*",d)}}else if(c===t||c===n)return r}return t}}}()||function(){if(o.rootDirs){var t=d(i,o.rootDirs),n=d(a,o.rootDirs);if(void 0!==t){var r=void 0!==n?g(t,n):t;return e.removeFileExtension(r)}}}()||e.removeFileExtension(g(i,a))}()),x=s(),S=a?e.createImportClause(e.createIdentifier(i),void 0):o?e.createImportClause(void 0,e.createNamespaceImport(e.createIdentifier(i))):e.createImportClause(void 0,e.createNamedImports([e.createImportSpecifier(void 0,e.createIdentifier(i))])),k=e.createLiteral(b);k.singleQuote=function(){var t=e.forEach(l.statements,function(t){if(e.isImportDeclaration(t)||e.isExportDeclaration(t)){if(t.moduleSpecifier&&e.isStringLiteral(t.moduleSpecifier))return t.moduleSpecifier}else if(e.isImportEqualsDeclaration(t)&&e.isExternalModuleReference(t.moduleReference)&&e.isStringLiteral(t.moduleReference.expression))return t.moduleReference.expression});if(t)return 39===l.text.charCodeAt(t.getStart())}();var T=e.createImportDeclaration(void 0,void 0,S,k);return u?x.insertNodeAfter(l,u,T,{suffix:t.newLineCharacter}):x.insertNodeAt(l,function(t){var n=t.text,r=e.getLeadingCommentRanges(n,0);if(!r)return 0;var i=0;r.length&&3===r[0].kind&&e.isPinnedComment(n,r[0])&&(i=r[0].end+1,r=r.slice(1));for(var a=0,o=r;a0?function(t){for(var n,r,i,a=[],u=0,p=d;u=o)return{span:{start:o,length:0},newText:"// @ts-ignore"+r}}return{span:{start:n,length:0},newText:(n===o?"":r)+"// @ts-ignore"+r}}t.registerCodeFix({errorCodes:function(){var t=e.Diagnostics;return Object.keys(t).filter(function(n){return t[n]&&t[n].category===e.DiagnosticCategory.Error}).map(function(e){return t[e].code})}(),getCodeActions:function(t){var r=t.sourceFile,i=t.program,a=t.newLineCharacter,o=t.span;if(e.isInJavaScriptFile(r)&&e.isCheckJsEnabledForFile(r,i.getCompilerOptions()))return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Ignore_this_error_message),changes:[{fileName:r.fileName,textChanges:[n(r,o.start,a)]}]},{description:e.getLocaleSpecificMessage(e.Diagnostics.Disable_checking_for_this_file),changes:[{fileName:r.fileName,textChanges:[{span:{start:r.checkJsDirective?r.checkJsDirective.pos:0,length:r.checkJsDirective?r.checkJsDirective.end-r.checkJsDirective.pos:0},newText:"// @ts-nocheck"+a}]}]}]}});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(t,n,r){function a(t,n,i){var a=r.signatureToSignatureDeclaration(t,151,n,e.NodeBuilderFlags.SuppressAnyReturnType);return a&&(a.decorators=void 0,a.modifiers=d,a.name=l,a.questionToken=f?e.createToken(55):void 0,a.body=i),a}var c=t.getDeclarations();if(c&&c.length){var u=c[0],l=e.getSynthesizedClone(e.getNameOfDeclaration(u)),_=s(e.getModifierFlags(u)),d=_?e.createNodeArray([_]):void 0,p=r.getWidenedType(r.getTypeOfSymbolAtLocation(t,n)),f=!!(16777216&t.flags);switch(u.kind){case 153:case 154:case 148:case 149:var m=r.typeToTypeNode(p,n);return e.createProperty(void 0,d,l,f?e.createToken(55):void 0,m,void 0);case 150:case 151:var g=r.getSignaturesOfType(p,0);if(!e.some(g))return;if(1===c.length)return e.Debug.assert(1===g.length),a(v=g[0],n,o());for(var y=[],h=0;hg.length){var v=r.getSignatureFromDeclaration(c[c.length-1]),b=a(v,n,o());b&&y.push(b);}else{e.Debug.assert(c.length===g.length);var x=i(g,l,f,d);y.push(x);}return y;default:return}}}function r(t,n,r,i){for(var a=[],o=0;o=r?e.createToken(55):void 0,i?e.createKeywordTypeNode(119):void 0,void 0);a.push(s);}return a}function i(t,n,i,o){for(var s=t[0],c=t[0].minArgumentCount,u=!1,l=0;l=s.parameters.length&&(!_.hasRestParameter||s.hasRestParameter)&&(s=_);}var d=s.parameters.length-(s.hasRestParameter?1:0),p=s.parameters.map(function(e){return e.name}),f=r(d,p,c,!0);if(u){var m=e.createArrayTypeNode(e.createKeywordTypeNode(119)),g=e.createParameter(void 0,void 0,e.createToken(24),p[d]||"rest",d>=c?e.createToken(55):void 0,m,void 0);f.push(g);}return a(o,n,i,void 0,f,void 0)}function a(t,n,r,i,a,s){return e.createMethod(void 0,t,void 0,n,r?e.createToken(55):void 0,i,a,s,o())}function o(){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.")]))],!0)}function s(t){return 4&t?e.createToken(114):16&t?e.createToken(113):void 0}t.newNodesToChanges=function(t,n,r){for(var i=r.sourceFile,a=e.textChanges.ChangeTracker.fromCodeFixContext(r),o=0,s=t;o0?[{name:i.name,description:i.description,actions:[{description:i.description,name:r}]}]:void 0}}};t.registerRefactor(i);}(t.convertFunctionToES6Class||(t.convertFunctionToES6Class={}));}(e.refactor||(e.refactor={}));}(r||(r={}));!function(e){!function(t){!function(n){function r(t,n){function r(t,n,r,i){return{errors:[e.createFileDiagnostic(t,n,r,i)]}}function a(t,n){for(var r=t;r!==n;){if(149===r.kind){e.hasModifier(r,32)&&(_|=D.InStaticRegion);break}if(146===r.kind){152===e.getContainingFunction(r).kind&&(_|=D.InStaticRegion);break}151===r.kind&&e.hasModifier(r,32)&&(_|=D.InStaticRegion),r=r.parent;}}function o(t){function r(t){if(s)return!0;if(e.isDeclaration(t)){var i=226===t.kind?t.parent.parent:t;if(e.hasModifier(i,1))return(s||(s=[])).push(e.createDiagnosticForNode(t,C.CannotExtractExportedEntity)),!0;l.push(t.symbol);}switch(t.kind){case 238:return(s||(s=[])).push(e.createDiagnosticForNode(t,C.CannotExtractFunction)),!0;case 97:if(181===t.parent.kind){var a=e.getContainingClass(t);if(a.pos=n.start+n.length)return(s||(s=[])).push(e.createDiagnosticForNode(t,C.CannotExtractFunction)),!0}else _|=D.UsesThis;}if(!t||e.isFunctionLike(t)||e.isClassLike(t)){switch(t.kind){case 228:case 229:265===t.parent.kind&&void 0===t.parent.externalModuleIndicator&&(s||(s=[])).push(e.createDiagnosticForNode(t,C.FunctionWillNotBeVisibleInTheNewScope));}return!1}var o=u;switch(t.kind){case 211:case 224:u=0;break;case 207:t.parent&&224===t.parent.kind&&t.finallyBlock===t&&(u=4);break;case 257:u|=1;break;default:e.isIterationStatement(t,!1)&&(u|=3);}switch(t.kind){case 169:case 99:_|=D.UsesThis;break;case 222:var d=t.label;(c||(c=[])).push(d.escapedText),e.forEachChild(t,r),c.pop();break;case 218:case 217:(d=t.label)?e.contains(c,d.escapedText)||(s||(s=[])).push(e.createDiagnosticForNode(t,C.CannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):u&(218===t.kind?1:2)||(s||(s=[])).push(e.createDiagnosticForNode(t,C.CannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 191:_|=D.IsAsyncFunction;break;case 197:_|=D.IsGenerator;break;case 219:4&u?_|=D.HasReturn:(s||(s=[])).push(e.createDiagnosticForNode(t,C.CannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(t,r);}u=o;}var i;if(function(e){e[e.None=0]="None",e[e.Break=1]="Break",e[e.Continue=2]="Continue",e[e.Return=4]="Return";}(i||(i={})),!(e.isStatement(t)||e.isExpression(t)&&S(t)))return[e.createDiagnosticForNode(t,C.StatementOrExpressionExpected)];if(e.isInAmbientContext(t))return[e.createDiagnosticForNode(t,C.CannotExtractAmbientBlock)];var o=e.getContainingClass(t);o&&a(t,o);var s,c,u=4;return r(t),s}var s=n.length||0;if(0===s)return{errors:[e.createFileDiagnostic(t,n.start,s,C.StatementOrExpressionExpected)]};var c=b(e.getTokenAtPosition(t,n.start,!1),t,n),u=b(e.findTokenOnLeftOfPosition(t,e.textSpanEnd(n)),t,n),l=[],_=D.None;if(!c||!u)return{errors:[e.createFileDiagnostic(t,n.start,s,C.CannotExtractFunction)]};if(c.parent!==u.parent){var d=e.skipParentheses(c.parent),p=e.skipParentheses(u.parent);if(!(e.isBinaryExpression(d)&&e.isBinaryExpression(p)&&e.isNodeDescendantOf(d,p)))return r(t,n.start,s,C.CannotExtractFunction);c=u=p;}if(c!==u){if(!k(c.parent))return r(t,n.start,s,C.CannotExtractFunction);for(var f=[],m=0,g=c.parent.statements;m=t&&e.isFunctionLike(a)&&!e.isConstructorDeclaration(a))return a}}((y(i.range)?e.lastOrUndefined(i.range):i.range).end,n);O?w.insertNodeBefore(a.file,O,T,{suffix:a.newLineCharacter+a.newLineCharacter}):w.insertNodeBefore(a.file,n.getLastToken(),T,{prefix:a.newLineCharacter,suffix:a.newLineCharacter});var P=[],F=f(n,i,d),I=e.createCall(F,void 0,S);if(i.facts&D.IsGenerator&&(I=e.createYield(e.createToken(39),I)),i.facts&D.IsAsyncFunction&&(I=e.createAwait(I)),s){N&&P.push(e.createVariableStatement(void 0,[e.createVariableDeclaration(N,e.createKeywordTypeNode(119))]));var L=g(s);N&&L.unshift(e.createShorthandPropertyAssignment(N)),1===L.length?N?P.push(e.createReturn(e.createIdentifier(N))):(P.push(e.createStatement(e.createBinary(L[0].name,58,I))),i.facts&D.HasReturn&&P.push(e.createReturn())):(P.push(e.createStatement(e.createBinary(e.createObjectLiteral(L),58,I))),N&&P.push(e.createReturn(e.createIdentifier(N))));}else i.facts&D.HasReturn?P.push(e.createReturn(I)):y(i.range)?P.push(e.createStatement(I)):P.push(I);y(i.range)?w.replaceNodesWithNodes(a.file,i.range,P,{nodeSeparator:a.newLineCharacter,suffix:a.newLineCharacter}):w.replaceNodeWithNodes(a.file,i.range,P,{nodeSeparator:a.newLineCharacter});var R=w.getChanges(),M=(y(i.range)?i.range[0]:i.range).getSourceFile().fileName;return{renameFilename:M,renameLocation:p(R,M,d),edits:R}}function p(t,n,r){for(var i=0,a=0,o=t;a=s)return f;if(h.set(f,s),m){for(var g=0,y=_;g=0)){var r=a.getSymbolAtLocation(n);if(r&&f.some(function(e){return e===r})){for(var i=0,o=p;i0&&p[n].push(e.createDiagnosticForNode(i,C.CannotCombineWritesAndReturns));}(x);return f.length&&e.forEachChild(b,u),{target:v,usagesPerScope:_,errorsPerScope:p}}function b(t,n,r){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!x(r,t.parent,n))return t;t=t.parent;}}function x(t,n,r){return e.textSpanContainsPosition(t,n.getStart(r))&&n.getEnd()<=e.textSpanEnd(t)}function S(e){switch(e.parent.kind){case 264:return!1}switch(e.kind){case 9:return 238!==e.parent.kind&&242!==e.parent.kind;case 198:case 174:case 176:return!1;case 71:return 176!==e.parent.kind&&242!==e.parent.kind&&246!==e.parent.kind}return!0}function k(e){switch(e.kind){case 207:case 265:case 234:case 257:return!0;default:return!1}}var T={name:"Extract Method",description:e.Diagnostics.Extract_function.message,getAvailableActions:function(t){var n=r(t.file,{start:t.startPosition,length:t.endPosition-t.startPosition}).targetRange;if(void 0!==n){var i=c(n,t);if(void 0!==i){for(var a=[],o=e.createMap(),s=0,u=0,l=i;u285});return r.kind<143?r:r.getFirstToken(t)}},n.prototype.getLastToken=function(t){var n=this.getChildren(t),r=e.lastOrUndefined(n);if(r)return r.kind<143?r:r.getLastToken(t)},n.prototype.forEachChild=function(t,n){return e.forEachChild(this,t,n)},n}(),g=function(){function t(e,t){this.pos=e,this.end=t,this.flags=0,this.parent=void 0;}return t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(t,n){return e.getTokenPosOfNode(this,t,n)},t.prototype.getFullStart=function(){return this.pos},t.prototype.getEnd=function(){return this.end},t.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return(e||this.getSourceFile()).text.substring(this.getStart(),this.getEnd())},t.prototype.getChildCount=function(){return 0},t.prototype.getChildAt=function(){},t.prototype.getChildren=function(){return e.emptyArray},t.prototype.getFirstToken=function(){},t.prototype.getLastToken=function(){},t.prototype.forEachChild=function(){},t}(),y=function(){function t(e,t){this.flags=e,this.escapedName=t;}return t.prototype.getFlags=function(){return this.flags},Object.defineProperty(t.prototype,"name",{get:function(){return e.unescapeLeadingUnderscores(this.escapedName)},enumerable:!0,configurable:!0}),t.prototype.getEscapedName=function(){return this.escapedName},t.prototype.getName=function(){return this.name},t.prototype.getDeclarations=function(){return this.declarations},t.prototype.getDocumentationComment=function(){return void 0===this.documentationComment&&(this.documentationComment=e.JsDoc.getJsDocCommentsFromDeclarations(this.declarations)),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},t}(),h=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.kind=t,i}return n(t,e),t}(g),v=function(t){function r(e,n,r){return t.call(this,n,r)||this}return n(r,t),Object.defineProperty(r.prototype,"text",{get:function(){return e.unescapeLeadingUnderscores(this.escapedText)},enumerable:!0,configurable:!0}),r}(g);v.prototype.kind=71;var b=function(){function e(e,t){this.checker=e,this.flags=t;}return e.prototype.getFlags=function(){return this.flags},e.prototype.getSymbol=function(){return this.symbol},e.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},e.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},e.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},e.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},e.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},e.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},e.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},e.prototype.getBaseTypes=function(){return 32768&this.flags&&3&this.objectFlags?this.checker.getBaseTypes(this):void 0},e.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},e}(),x=function(){function t(e){this.checker=e;}return t.prototype.getDeclaration=function(){return this.declaration},t.prototype.getTypeParameters=function(){return this.typeParameters},t.prototype.getParameters=function(){return this.parameters},t.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},t.prototype.getDocumentationComment=function(){return void 0===this.documentationComment&&(this.documentationComment=this.declaration?e.JsDoc.getJsDocCommentsFromDeclarations([this.declaration]):[]),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},t}(),S=function(t){function r(e,n,r){return t.call(this,e,n,r)||this}return n(r,t),r.prototype.update=function(t,n){return e.updateSourceFile(this,t,n)},r.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},r.prototype.getLineStarts=function(){return e.getLineStarts(this)},r.prototype.getPositionOfLineAndCharacter=function(t,n){return e.getPositionOfLineAndCharacter(this,t,n)},r.prototype.getLineEndOfPosition=function(e){var t,n=this.getLineAndCharacterOfPosition(e).line,r=this.getLineStarts();n+1>=r.length&&(t=this.getEnd()),t||(t=r[n+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){function t(e){var t=r(e);t&&a.add(t,e);}function n(e){var t=a.get(e);return t||a.set(e,t=[]),t}function r(t){var n=e.getNameOfDeclaration(t);if(n){var r=e.getTextOfIdentifierOrLiteral(n);if(void 0!==r)return r;if(144===n.kind){var i=n.expression;return 179===i.kind?i.name.text:e.getTextOfIdentifierOrLiteral(i)}}}function i(a){switch(a.kind){case 228:case 186:case 151:case 150:var o=a,s=r(o);if(s){var c=n(s),u=e.lastOrUndefined(c);u&&o.parent===u.parent&&o.symbol===u.symbol?o.body&&!u.body&&(c[c.length-1]=o):c.push(o);}e.forEachChild(a,i);break;case 229:case 199:case 230:case 231:case 232:case 233:case 237:case 246:case 242:case 239:case 240:case 153:case 154:case 163:t(a),e.forEachChild(a,i);break;case 146:if(!e.hasModifier(a,92))break;case 226:case 176:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 264:case 149:case 148:t(a);break;case 244:a.exportClause&&e.forEach(a.exportClause.elements,i);break;case 238:var _=a.importClause;_&&(_.name&&t(_),_.namedBindings&&(240===_.namedBindings.kind?t(_.namedBindings):e.forEach(_.namedBindings.elements,i)));break;default:e.forEachChild(a,i);}}var a=e.createMultiMap();return e.forEachChild(this,i),a},r}(m),k=function(){function t(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n;}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();e.toEditorSettings=r,e.displayPartsToString=function(t){return t?e.map(t,function(e){return e.text}).join(""):""},e.getDefaultCompilerOptions=a,e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var T=function(){function t(t,n){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=e.createMap();for(var r=0,i=t.getScriptFileNames();r=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();e.ThrottledCancellationToken=E,e.createLanguageService=function(t,n){function i(e){t.log&&t.log(e);}function a(e){var t=y.getSourceFile(e);if(!t)throw new Error("Could not find file: '"+e+"'.");return t}function o(e){return f.ensureUpToDate(e),f}function s(){function r(t,r){e.Debug.assert(void 0!==c);var i=c.getOrCreateEntryByPath(t,r);if(i){if(!_){var a=y&&y.getSourceFileByPath(r);if(a)return e.Debug.assertEqual(i.scriptKind,a.scriptKind,"Registered script kind should match new script kind.",r),n.updateDocumentWithKey(t,r,l,p,i.scriptSnapshot,i.version,i.scriptKind)}return n.acquireDocumentWithKey(t,r,l,p,i.scriptSnapshot,i.version,i.scriptKind)}}function a(t){if(!t)return!1;var n=t.path||e.toPath(t.fileName,S,k);return t.version===c.getVersion(n)}if(t.getProjectVersion){var o=t.getProjectVersion();if(o){if(h===o)return;h=o;}}var s=t.getTypeRootsVersion?t.getTypeRootsVersion():0;v!==s&&(i("TypeRoots version has changed; provide new program"),y=void 0,v=s);var c=new T(t,k);if(!function(){if(!y)return!1;var t=c.getRootFileNames();if(y.getSourceFiles().length!==t.length)return!1;for(var n=0,r=t;n0&&-1===i.fileName.indexOf("/node_modules/"))for(var u=function(){var t=/(?:\/\/+\s*)/.source,i=/(?:\/\*+\s*)/.source,a="("+/(?:^(?:\s|\*)*)/.source+"|"+t+"|"+i+")",o="(?:"+e.map(n,function(e){return"("+r(e.text)+")"}).join("|")+")",s=/(?:$|\*\/)/.source,c=a+"("+o+/(?:.*?)/.source+")"+s;return new RegExp(c,"gim")}(),l=void 0;l=u.exec(o);){x.throwIfCancellationRequested(),e.Debug.assert(l.length===n.length+3);var _=l[1],d=l.index+_.length;if(e.isInComment(i,d)){for(var p=void 0,f=0;f=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}(o.charCodeAt(d+p.text.length))){var m=l[2];c.push({descriptor:p,message:m,position:d});}}}return c},getBraceMatchingAtPosition:function(t,n){var r=g.getCurrentSourceFile(t),i=[],a=e.getTouchingToken(r,n,!1);if(a.getStart(r)===n){var o=function(e){switch(e.kind){case 17:return 18;case 19:return 20;case 21:return 22;case 27:return 29;case 18:return 17;case 20:return 19;case 22:return 21;case 29:return 27}}(a);if(o)for(var s=0,c=a.parent.getChildren(r);s0?u(t.declarations[0]):void 0}function y(t){var n=e.forEach(t.elements,function(e){return 200!==e.kind?e:void 0});return n?u(n):176===t.parent.kind?r(t.parent):l(t.parent)}function h(t){e.Debug.assert(175!==t.kind&&174!==t.kind);var n=177===t.kind?t.elements:t.properties,i=e.forEach(n,function(e){return 200!==e.kind?e:void 0});return i?u(i):r(194===t.parent.kind?t.parent:t)}if(n)switch(n.kind){case 208:return _(n.declarationList.declarations[0]);case 226:case 149:case 148:return _(n);case 146:return p(n);case 228:case 151:case 150:case 153:case 154:case 152:case 186:case 187:return function(e){if(e.body)return f(e)?r(e):u(e.body)}(n);case 207:if(e.isFunctionBlock(n))return function(e){var t=e.statements.length?e.statements[0]:e.getLastToken();return f(e.parent)?a(e.parent,t):u(t)}(n);case 234:return m(n);case 260:return m(n.block);case 210:return r(n.expression);case 219:return r(n.getChildAt(0),n.expression);case 213:return i(n,n.expression);case 212:return u(n.statement);case 225:return r(n.getChildAt(0));case 211:return i(n,n.expression);case 222:return u(n.statement);case 218:case 217:return r(n.getChildAt(0),n.label);case 214:return function(e){return e.initializer?g(e):e.condition?r(e.condition):e.incrementor?r(e.incrementor):void 0}(n);case 215:return i(n,n.expression);case 216:return g(n);case 221:return i(n,n.expression);case 257:case 258:return u(n.statements[0]);case 224:return m(n.tryBlock);case 223:case 243:return r(n,n.expression);case 237:return r(n,n.moduleReference);case 238:case 244:return r(n,n.moduleSpecifier);case 233:if(1!==e.getModuleInstanceState(n))return;case 229:case 232:case 264:case 176:return r(n);case 220:return u(n.statement);case 147:return o(n.parent.decorators);case 174:case 175:return y(n);case 230:case 231:return;case 25:case 1:return a(e.findPrecedingToken(n.pos,t));case 26:return s(n);case 17:return function(n){switch(n.parent.kind){case 232:var r=n.parent;return a(e.findPrecedingToken(n.pos,t,n.parent),r.members.length?r.members[0]:r.getLastToken(t));case 229:var i=n.parent;return a(e.findPrecedingToken(n.pos,t,n.parent),i.members.length?i.members[0]:i.getLastToken(t));case 235:return a(n.parent.parent,n.parent.clauses[0])}return u(n.parent)}(n);case 18:return function(t){switch(t.parent.kind){case 234:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 232:case 229:return r(t);case 207:if(e.isFunctionBlock(t.parent))return r(t);case 260:return u(e.lastOrUndefined(t.parent.statements));case 235:var n=t.parent,i=e.lastOrUndefined(n.clauses);if(i)return u(e.lastOrUndefined(i.statements));return;case 174:var a=t.parent;return u(e.lastOrUndefined(a.elements)||a);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var o=t.parent;return r(e.lastOrUndefined(o.properties)||o)}return u(t.parent)}}(n);case 22:return function(t){switch(t.parent.kind){case 175:var n=t.parent;return r(e.lastOrUndefined(n.elements)||n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var i=t.parent;return r(e.lastOrUndefined(i.elements)||i)}return u(t.parent)}}(n);case 19:return function(e){return 212===e.parent.kind||181===e.parent.kind||182===e.parent.kind?s(e):185===e.parent.kind?c(e):u(e.parent)}(n);case 20:return function(e){switch(e.parent.kind){case 186:case 228:case 187:case 151:case 150:case 153:case 154:case 152:case 213:case 212:case 214:case 216:case 181:case 182:case 185:return s(e);default:return u(e.parent)}}(n);case 56:return function(t){return e.isFunctionLike(t.parent)||261===t.parent.kind||146===t.parent.kind?s(t):u(t.parent)}(n);case 29:case 27:return function(e){return 184===e.parent.kind?c(e):u(e.parent)}(n);case 106:return function(e){return 212===e.parent.kind?i(e,e.parent.expression):u(e.parent)}(n);case 82:case 74:case 87:return c(n);case 142:return function(e){return 216===e.parent.kind?c(e):u(e.parent)}(n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return h(n);if((71===n.kind||198===n.kind||261===n.kind||262===n.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent))return r(n);if(194===n.kind){if(b=n,e.isArrayLiteralOrObjectLiteralDestructuringPattern(b.left))return h(b.left);if(58===b.operatorToken.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(b.parent))return r(n);if(26===b.operatorToken.kind)return u(b.left)}if(e.isPartOfExpression(n))switch(n.parent.kind){case 212:return s(n);case 147:return u(n.parent);case 214:case 216:return r(n);case 194:if(26===n.parent.operatorToken.kind)return r(n);break;case 187:if(n.parent.body===n)return r(n)}if(261===n.parent.kind&&n.parent.name===n&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent.parent))return u(n.parent.initializer);if(184===n.parent.kind&&n.parent.type===n)return c(n.parent.type);if(e.isFunctionLike(n.parent)&&n.parent.type===n)return s(n);if(226===n.parent.kind||146===n.parent.kind){var v=n.parent;if(v.initializer===n||v.type===n||e.isAssignmentOperator(n.kind))return s(n)}if(194===n.parent.kind){var b=n.parent;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(b.left)&&(b.right===n||b.operatorToken===n))return s(n)}return u(n.parent)}}if(!t.isDeclarationFile){var l=e.getTokenAtPosition(t,n,!1),_=t.getLineAndCharacterOfPosition(n).line;if((!(t.getLineAndCharacterOfPosition(l.getStart(t)).line>_)||(l=e.findPrecedingToken(l.pos,t))&&t.getLineAndCharacterOfPosition(l.getEnd()).line===_)&&!e.isInAmbientContext(l))return u(l)}};}(e.BreakpointResolver||(e.BreakpointResolver={}));}(r||(r={}));!function(e){e.transform=function(t,n,r){var i=[];r=e.fixupCompilerOptions(r,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,r,a,n,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o};}(r||(r={}));var r,i=function(){return this}();!function(t){function r(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message);}function a(e,n,r,i){var a;i&&(e.log(n),a=t.timestamp());var o=r();if(i){var s=t.timestamp();if(e.log(n+" completed in "+(s-a)+" msec"),"string"==typeof o){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),e.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'");}}return o}function o(e,t,n,r){return s(e,t,!0,n,r)}function s(e,n,i,o,s){try{var c=a(e,n,o,s);return i?JSON.stringify({result:c}):c}catch(i){return i instanceof t.OperationCanceledException?JSON.stringify({canceled:!0}):(r(e,i),i.description=n,JSON.stringify({error:i}))}}function c(e,t){return e.map(function(e){return u(e,t)})}function u(e,n){return{message:t.flattenDiagnosticMessageText(e.messageText,n),start:e.start,length:e.length,category:t.DiagnosticCategory[e.category].toLowerCase(),code:e.code}}function l(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var _=function(){function e(e){this.scriptSnapshotShim=e;}return e.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},e.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},e.prototype.getChangeRange=function(e){var n=e,r=this.scriptSnapshotShim.getChangeRange(n.scriptSnapshotShim);if(null===r)return null;var i=JSON.parse(r);return t.createTextChangeRange(t.createTextSpan(i.span.start,i.span.length),i.newLength)},e.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose();},e}(),d=function(){function e(e){var n=this;this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(e,r){var i=JSON.parse(n.shimHost.getModuleResolutionsForFile(r));return t.map(e,function(e){var n=t.getProperty(i,e);return n?{resolvedFileName:n,extension:t.extensionFromPath(n),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return n.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(e,r){var i=JSON.parse(n.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return t.map(e,function(e){return t.getProperty(i,e)})});}return e.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e);},e.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e);},e.prototype.error=function(e){this.shimHost.error(e);},e.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},e.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},e.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},e.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},e.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return this.files=JSON.parse(e)},e.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new _(t)},e.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},e.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},e.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(e){return this.log(e.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},e.prototype.getCancellationToken=function(){var e=this.shimHost.getCancellationToken();return new t.ThrottledCancellationToken(e)},e.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},e.prototype.readDirectory=function(e,n,r,i,a){var o=t.getFileMatcherPatterns(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},e.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e}();t.LanguageServiceShimHostAdapter=d;var p=function(){function e(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return t.shimHost.directoryExists(e)}),"realpath"in this.shimHost&&(this.realpath=function(e){return t.shimHost.realpath(e)});}return e.prototype.readDirectory=function(e,n,r,i,a){var o=t.getFileMatcherPatterns(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e.prototype.readFile=function(e){return this.shimHost.readFile(e)},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e}();t.CoreServicesShimHostAdapter=p;var f=function(){function e(e){this.factory=e,e.registerShim(this);}return e.prototype.dispose=function(e){this.factory.unregisterShim(this);},e}();t.realizeDiagnostics=c;var m=function(e){function r(t,n,r){var i=e.call(this,t)||this;return i.host=n,i.languageService=r,i.logPerformance=!1,i.logger=i.host,i}return n(r,e),r.prototype.forwardJSONCall=function(e,t){return o(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(t){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,i&&i.CollectGarbage&&(i.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,e.prototype.dispose.call(this,t);},r.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null});},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null});},r.prototype.realizeDiagnostics=function(e){var n=t.getNewLineOrDefaultFromHost(this.host);return t.realizeDiagnostics(e,n)},r.prototype.getSyntacticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+e+"', "+n+", "+r+")",function(){return i.languageService.getSyntacticClassifications(e,t.createTextSpan(n,r))})},r.prototype.getSemanticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+e+"', "+n+", "+r+")",function(){return i.languageService.getSemanticClassifications(e,t.createTextSpan(n,r))})},r.prototype.getEncodedSyntacticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+e+"', "+n+", "+r+")",function(){return l(i.languageService.getEncodedSyntacticClassifications(e,t.createTextSpan(n,r)))})},r.prototype.getEncodedSemanticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+e+"', "+n+", "+r+")",function(){return l(i.languageService.getEncodedSemanticClassifications(e,t.createTextSpan(n,r)))})},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",function(){var n=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(n)})},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",function(){var n=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(n)})},r.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)})},r.prototype.getQuickInfoAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return n.languageService.getQuickInfoAtPosition(e,t)})},r.prototype.getNameOrDottedNameSpan=function(e,t,n){var r=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+n+")",function(){return r.languageService.getNameOrDottedNameSpan(e,t,n)})},r.prototype.getBreakpointStatementAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return n.languageService.getBreakpointStatementAtPosition(e,t)})},r.prototype.getSignatureHelpItems=function(e,t){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return n.languageService.getSignatureHelpItems(e,t)})},r.prototype.getDefinitionAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return n.languageService.getDefinitionAtPosition(e,t)})},r.prototype.getTypeDefinitionAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return n.languageService.getTypeDefinitionAtPosition(e,t)})},r.prototype.getImplementationAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return n.languageService.getImplementationAtPosition(e,t)})},r.prototype.getRenameInfo=function(e,t){var n=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return n.languageService.getRenameInfo(e,t)})},r.prototype.findRenameLocations=function(e,t,n,r){var i=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+n+", "+r+")",function(){return i.languageService.findRenameLocations(e,t,n,r)})},r.prototype.getBraceMatchingAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return n.languageService.getBraceMatchingAtPosition(e,t)})},r.prototype.isValidBraceCompletionAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+n+")",function(){return r.languageService.isValidBraceCompletionAtPosition(e,t,n)})},r.prototype.getIndentationAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+t+")",function(){var i=JSON.parse(n);return r.languageService.getIndentationAtPosition(e,t,i)})},r.prototype.getReferencesAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return n.languageService.getReferencesAtPosition(e,t)})},r.prototype.findReferences=function(e,t){var n=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return n.languageService.findReferences(e,t)})},r.prototype.getOccurrencesAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return n.languageService.getOccurrencesAtPosition(e,t)})},r.prototype.getDocumentHighlights=function(e,n,r){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+e+"', "+n+")",function(){var a=i.languageService.getDocumentHighlights(e,n,JSON.parse(r)),o=t.normalizeSlashes(e).toLowerCase();return t.filter(a,function(e){return t.normalizeSlashes(e.fileName).toLowerCase()===o})})},r.prototype.getCompletionsAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+")",function(){return n.languageService.getCompletionsAtPosition(e,t)})},r.prototype.getCompletionEntryDetails=function(e,t,n){var r=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+n+"')",function(){return r.languageService.getCompletionEntryDetails(e,t,n)})},r.prototype.getFormattingEditsForRange=function(e,t,n,r){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+t+", "+n+")",function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsForRange(e,t,n,a)})},r.prototype.getFormattingEditsForDocument=function(e,t){var n=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",function(){var r=JSON.parse(t);return n.languageService.getFormattingEditsForDocument(e,r)})},r.prototype.getFormattingEditsAfterKeystroke=function(e,t,n,r){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+t+", '"+n+"')",function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsAfterKeystroke(e,t,n,a)})},r.prototype.getDocCommentTemplateAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return n.languageService.getDocCommentTemplateAtPosition(e,t)})},r.prototype.getNavigateToItems=function(e,t,n){var r=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+n+")",function(){return r.languageService.getNavigateToItems(e,t,n)})},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return t.languageService.getNavigationBarItems(e)})},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return t.languageService.getNavigationTree(e)})},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return t.languageService.getOutliningSpans(e)})},r.prototype.getTodoComments=function(e,t){var n=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return n.languageService.getTodoComments(e,JSON.parse(t))})},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){return t.languageService.getEmitOutput(e)})},r.prototype.getEmitOutputObject=function(e){var t=this;return s(this.logger,"getEmitOutput('"+e+"')",!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},r}(f),g=function(e){function r(n,r){var i=e.call(this,n)||this;return i.logger=r,i.logPerformance=!1,i.classifier=t.createClassifier(),i}return n(r,e),r.prototype.getEncodedLexicalClassifications=function(e,t,n){var r=this;return o(this.logger,"getEncodedLexicalClassifications",function(){return l(r.classifier.getEncodedLexicalClassifications(e,t,n))},this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,n){for(var r=this.classifier.getClassificationsForLine(e,t,n),i="",a=0,o=r.entries;a",""":'"',"'":"'","`":"`"},freeGlobal="object"==typeof commonjsGlobal$$1&&commonjsGlobal$$1&&commonjsGlobal$$1.Object===Object&&commonjsGlobal$$1,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),unescapeHtmlChar=basePropertyOf(htmlUnescapes),objectProto=Object.prototype,objectToString=objectProto.toString,Symbol=root.Symbol,symbolProto=Symbol?Symbol.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0,index=unescape$1;const ts$1=typescript,unescape=index,SyntaxKind$1=ts$1.SyntaxKind,ASSIGNMENT_OPERATORS=[SyntaxKind$1.EqualsToken,SyntaxKind$1.PlusEqualsToken,SyntaxKind$1.MinusEqualsToken,SyntaxKind$1.AsteriskEqualsToken,SyntaxKind$1.SlashEqualsToken,SyntaxKind$1.PercentEqualsToken,SyntaxKind$1.LessThanLessThanEqualsToken,SyntaxKind$1.GreaterThanGreaterThanEqualsToken,SyntaxKind$1.GreaterThanGreaterThanGreaterThanEqualsToken,SyntaxKind$1.AmpersandEqualsToken,SyntaxKind$1.BarEqualsToken,SyntaxKind$1.CaretEqualsToken],LOGICAL_OPERATORS=[SyntaxKind$1.BarBarToken,SyntaxKind$1.AmpersandAmpersandToken],TOKEN_TO_TEXT={};TOKEN_TO_TEXT[SyntaxKind$1.OpenBraceToken]="{",TOKEN_TO_TEXT[SyntaxKind$1.CloseBraceToken]="}",TOKEN_TO_TEXT[SyntaxKind$1.OpenParenToken]="(",TOKEN_TO_TEXT[SyntaxKind$1.CloseParenToken]=")",TOKEN_TO_TEXT[SyntaxKind$1.OpenBracketToken]="[",TOKEN_TO_TEXT[SyntaxKind$1.CloseBracketToken]="]",TOKEN_TO_TEXT[SyntaxKind$1.DotToken]=".",TOKEN_TO_TEXT[SyntaxKind$1.DotDotDotToken]="...",TOKEN_TO_TEXT[SyntaxKind$1.SemicolonToken]=";",TOKEN_TO_TEXT[SyntaxKind$1.CommaToken]=",",TOKEN_TO_TEXT[SyntaxKind$1.LessThanToken]="<",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanToken]=">",TOKEN_TO_TEXT[SyntaxKind$1.LessThanEqualsToken]="<=",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanEqualsToken]=">=",TOKEN_TO_TEXT[SyntaxKind$1.EqualsEqualsToken]="==",TOKEN_TO_TEXT[SyntaxKind$1.ExclamationEqualsToken]="!=",TOKEN_TO_TEXT[SyntaxKind$1.EqualsEqualsEqualsToken]="===",TOKEN_TO_TEXT[SyntaxKind$1.InstanceOfKeyword]="instanceof",TOKEN_TO_TEXT[SyntaxKind$1.ExclamationEqualsEqualsToken]="!==",TOKEN_TO_TEXT[SyntaxKind$1.EqualsGreaterThanToken]="=>",TOKEN_TO_TEXT[SyntaxKind$1.PlusToken]="+",TOKEN_TO_TEXT[SyntaxKind$1.MinusToken]="-",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskToken]="*",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskAsteriskToken]="**",TOKEN_TO_TEXT[SyntaxKind$1.SlashToken]="/",TOKEN_TO_TEXT[SyntaxKind$1.PercentToken]="%",TOKEN_TO_TEXT[SyntaxKind$1.PlusPlusToken]="++",TOKEN_TO_TEXT[SyntaxKind$1.MinusMinusToken]="--",TOKEN_TO_TEXT[SyntaxKind$1.LessThanLessThanToken]="<<",TOKEN_TO_TEXT[SyntaxKind$1.LessThanSlashToken]=">",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanGreaterThanGreaterThanToken]=">>>",TOKEN_TO_TEXT[SyntaxKind$1.AmpersandToken]="&",TOKEN_TO_TEXT[SyntaxKind$1.BarToken]="|",TOKEN_TO_TEXT[SyntaxKind$1.CaretToken]="^",TOKEN_TO_TEXT[SyntaxKind$1.ExclamationToken]="!",TOKEN_TO_TEXT[SyntaxKind$1.TildeToken]="~",TOKEN_TO_TEXT[SyntaxKind$1.AmpersandAmpersandToken]="&&",TOKEN_TO_TEXT[SyntaxKind$1.BarBarToken]="||",TOKEN_TO_TEXT[SyntaxKind$1.QuestionToken]="?",TOKEN_TO_TEXT[SyntaxKind$1.ColonToken]=":",TOKEN_TO_TEXT[SyntaxKind$1.EqualsToken]="=",TOKEN_TO_TEXT[SyntaxKind$1.PlusEqualsToken]="+=",TOKEN_TO_TEXT[SyntaxKind$1.MinusEqualsToken]="-=",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskEqualsToken]="*=",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskAsteriskEqualsToken]="**=",TOKEN_TO_TEXT[SyntaxKind$1.SlashEqualsToken]="/=",TOKEN_TO_TEXT[SyntaxKind$1.PercentEqualsToken]="%=",TOKEN_TO_TEXT[SyntaxKind$1.LessThanLessThanEqualsToken]="<<=",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanGreaterThanEqualsToken]=">>=",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanGreaterThanGreaterThanEqualsToken]=">>>=",TOKEN_TO_TEXT[SyntaxKind$1.AmpersandEqualsToken]="&=",TOKEN_TO_TEXT[SyntaxKind$1.BarEqualsToken]="|=",TOKEN_TO_TEXT[SyntaxKind$1.CaretEqualsToken]="^=",TOKEN_TO_TEXT[SyntaxKind$1.AtToken]="@",TOKEN_TO_TEXT[SyntaxKind$1.InKeyword]="in";var nodeUtils$2={SyntaxKind:SyntaxKind$1,isAssignmentOperator:isAssignmentOperator,isLogicalOperator:isLogicalOperator,getTextForTokenKind:getTextForTokenKind,isESTreeClassMember:isESTreeClassMember,hasModifier:hasModifier,isComma:isComma,getBinaryExpressionType:getBinaryExpressionType,getLocFor:getLocFor,getLoc:getLoc,isToken:isToken,isJSXToken:isJSXToken,getDeclarationKind:getDeclarationKind,getTSNodeAccessibility:getTSNodeAccessibility,hasStaticModifierFlag:hasStaticModifierFlag,findNextToken:findNextToken,findFirstMatchingToken:findFirstMatchingToken,findChildOfKind:findChildOfKind,findFirstMatchingAncestor:findFirstMatchingAncestor,findAncestorOfKind:findAncestorOfKind,hasJSXAncestor:hasJSXAncestor,unescapeIdentifier:unescapeIdentifier,unescapeStringLiteralText:unescapeStringLiteralText,isComputedProperty:isComputedProperty,isOptional:isOptional,fixExports:fixExports,getTokenType:getTokenType,convertToken:convertToken,convertTokens:convertTokens,getNodeContainer:getNodeContainer,isWithinTypeAnnotation:isWithinTypeAnnotation,isTypeKeyword:isTypeKeyword};const nodeUtils$1=nodeUtils$2,AST_NODE_TYPES=astNodeTypes$1,SyntaxKind=nodeUtils$1.SyntaxKind;var convert$2=function e(t){function n(t){return e({node:t,parent:_,ast:p,additionalOptions:f})}function r(e){const t=n(e),r=e.getFullStart()-1,i=nodeUtils$1.getLocFor(r,e.end,p);return{type:AST_NODE_TYPES.TypeAnnotation,loc:i,range:[r,e.end],typeAnnotation:t}}function i(e){const t=e[0],r=e[e.length-1],a=nodeUtils$1.findNextToken(r,p);return{type:AST_NODE_TYPES.TypeParameterInstantiation,range:[t.pos-1,a.end],loc:nodeUtils$1.getLocFor(t.pos-1,a.end,p),params:e.map(e=>nodeUtils$1.isTypeKeyword(e.kind)?{type:AST_NODE_TYPES[`TS${SyntaxKind[e.kind]}`],range:[e.getStart(),e.getEnd()],loc:nodeUtils$1.getLoc(e,p)}:{type:AST_NODE_TYPES.TSTypeReference,range:[e.getStart(),e.getEnd()],loc:nodeUtils$1.getLoc(e,p),typeName:n(e.typeName||e),typeParameters:e.typeArguments?i(e.typeArguments):void 0})}}function a(t){const n=t[0],r=t[t.length-1],i=nodeUtils$1.findNextToken(r,p);return{type:AST_NODE_TYPES.TypeParameterDeclaration,range:[n.pos-1,i.end],loc:nodeUtils$1.getLocFor(n.pos-1,i.end,p),params:t.map(t=>{const n=nodeUtils$1.unescapeIdentifier(t.name.text),r=t.constraint?e({node:t.constraint,parent:t,ast:p,additionalOptions:f}):void 0,i=t.default?e({node:t.default,parent:t,ast:p,additionalOptions:f}):t.default;return{type:AST_NODE_TYPES.TypeParameter,range:[t.getStart(),t.getEnd()],loc:nodeUtils$1.getLoc(t,p),name:n,constraint:r,default:i}})}}function o(e){return e&&e.length?e.map(e=>{const t=n(e.expression);return{type:AST_NODE_TYPES.Decorator,range:[e.getStart(),e.end],loc:nodeUtils$1.getLoc(e,p),expression:t}}):[]}function s(e){return e&&e.length?e.map(e=>{const t=n(e);return e.decorators&&e.decorators.length?Object.assign(t,{decorators:o(e.decorators)}):t}):[]}function c(e){const t=nodeUtils$1.convertToken(e,p);if(t.type===AST_NODE_TYPES.JSXMemberExpression){const r=_.tagName.expression.kind===SyntaxKind.PropertyAccessExpression;t.object=n(_.tagName.expression),t.property=n(_.tagName.name),t.object.type=r?AST_NODE_TYPES.JSXMemberExpression:AST_NODE_TYPES.JSXIdentifier,t.property.type=AST_NODE_TYPES.JSXIdentifier,e.expression.kind===SyntaxKind.ThisKeyword&&(t.object.name="this");}else t.type=AST_NODE_TYPES.JSXIdentifier,t.name=t.value;return delete t.value,t}function u(e){if(!e||!e.length)return;const t={};for(let n=0;n!t[n]);r&&r.length&&(m.modifiers=r.map(n));}function l(e){const t=_.type.getEnd();e.range[1]=t;const n=nodeUtils$1.getLocFor(e.range[0],e.range[1],p);e.loc=n;}const _=t.node,d=t.parent,p=t.ast,f=t.additionalOptions||{};if(!_)return null;let m={type:"",range:[_.getStart(),_.end],loc:nodeUtils$1.getLoc(_,p)};switch(_.kind){case SyntaxKind.SourceFile:Object.assign(m,{type:AST_NODE_TYPES.Program,body:[],sourceType:_.externalModuleIndicator?"module":"script"}),_.statements.forEach(e=>{const t=n(e);t&&m.body.push(t);}),m.range[1]=_.endOfFileToken.end,m.loc=nodeUtils$1.getLocFor(_.getStart(),m.range[1],p);break;case SyntaxKind.Block:Object.assign(m,{type:AST_NODE_TYPES.BlockStatement,body:_.statements.map(n)});break;case SyntaxKind.Identifier:Object.assign(m,{type:AST_NODE_TYPES.Identifier,name:nodeUtils$1.unescapeIdentifier(_.text)});break;case SyntaxKind.WithStatement:Object.assign(m,{type:AST_NODE_TYPES.WithStatement,object:n(_.expression),body:n(_.statement)});break;case SyntaxKind.ReturnStatement:Object.assign(m,{type:AST_NODE_TYPES.ReturnStatement,argument:n(_.expression)});break;case SyntaxKind.LabeledStatement:Object.assign(m,{type:AST_NODE_TYPES.LabeledStatement,label:n(_.label),body:n(_.statement)});break;case SyntaxKind.BreakStatement:case SyntaxKind.ContinueStatement:Object.assign(m,{type:SyntaxKind[_.kind],label:n(_.label)});break;case SyntaxKind.IfStatement:Object.assign(m,{type:AST_NODE_TYPES.IfStatement,test:n(_.expression),consequent:n(_.thenStatement),alternate:n(_.elseStatement)});break;case SyntaxKind.SwitchStatement:Object.assign(m,{type:AST_NODE_TYPES.SwitchStatement,discriminant:n(_.expression),cases:_.caseBlock.clauses.map(n)});break;case SyntaxKind.CaseClause:case SyntaxKind.DefaultClause:Object.assign(m,{type:AST_NODE_TYPES.SwitchCase,test:n(_.expression),consequent:_.statements.map(n)});break;case SyntaxKind.ThrowStatement:Object.assign(m,{type:AST_NODE_TYPES.ThrowStatement,argument:n(_.expression)});break;case SyntaxKind.TryStatement:Object.assign(m,{type:AST_NODE_TYPES.TryStatement,block:e({node:_.tryBlock,parent:null,ast:p,additionalOptions:f}),handler:n(_.catchClause),finalizer:n(_.finallyBlock)});break;case SyntaxKind.CatchClause:Object.assign(m,{type:AST_NODE_TYPES.CatchClause,param:_.variableDeclaration?n(_.variableDeclaration.name):null,body:n(_.block)});break;case SyntaxKind.WhileStatement:Object.assign(m,{type:AST_NODE_TYPES.WhileStatement,test:n(_.expression),body:n(_.statement)});break;case SyntaxKind.DoStatement:Object.assign(m,{type:AST_NODE_TYPES.DoWhileStatement,test:n(_.expression),body:n(_.statement)});break;case SyntaxKind.ForStatement:Object.assign(m,{type:AST_NODE_TYPES.ForStatement,init:n(_.initializer),test:n(_.condition),update:n(_.incrementor),body:n(_.statement)});break;case SyntaxKind.ForInStatement:case SyntaxKind.ForOfStatement:{const e=!(!_.awaitModifier||_.awaitModifier.kind!==SyntaxKind.AwaitKeyword);Object.assign(m,{type:SyntaxKind[_.kind],left:n(_.initializer),right:n(_.expression),body:n(_.statement),await:e});break}case SyntaxKind.FunctionDeclaration:{let e=AST_NODE_TYPES.FunctionDeclaration;_.modifiers&&_.modifiers.length&&nodeUtils$1.hasModifier(SyntaxKind.DeclareKeyword,_)&&(e=AST_NODE_TYPES.DeclareFunction),_.parent&&_.parent.kind===SyntaxKind.ModuleBlock&&(e=AST_NODE_TYPES.TSNamespaceFunctionDeclaration),Object.assign(m,{type:e,id:n(_.name),generator:!!_.asteriskToken,expression:!1,async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,_),params:s(_.parameters),body:n(_.body)}),_.type&&(m.returnType=r(_.type)),_.typeParameters&&_.typeParameters.length&&(m.typeParameters=a(_.typeParameters)),m=nodeUtils$1.fixExports(_,m,p);break}case SyntaxKind.VariableDeclaration:Object.assign(m,{type:AST_NODE_TYPES.VariableDeclarator,id:n(_.name),init:n(_.initializer)}),_.type&&(m.id.typeAnnotation=r(_.type),l(m.id));break;case SyntaxKind.VariableStatement:Object.assign(m,{type:AST_NODE_TYPES.VariableDeclaration,declarations:_.declarationList.declarations.map(n),kind:nodeUtils$1.getDeclarationKind(_.declarationList)}),m=nodeUtils$1.fixExports(_,m,p);break;case SyntaxKind.VariableDeclarationList:Object.assign(m,{type:AST_NODE_TYPES.VariableDeclaration,declarations:_.declarations.map(n),kind:nodeUtils$1.getDeclarationKind(_)});break;case SyntaxKind.ExpressionStatement:Object.assign(m,{type:AST_NODE_TYPES.ExpressionStatement,expression:n(_.expression)});break;case SyntaxKind.ThisKeyword:Object.assign(m,{type:AST_NODE_TYPES.ThisExpression});break;case SyntaxKind.ArrayLiteralExpression:{const e=nodeUtils$1.findAncestorOfKind(_,SyntaxKind.BinaryExpression),t=_.parent&&_.parent.kind===SyntaxKind.ForOfStatement,r=_.parent&&_.parent.kind===SyntaxKind.ForInStatement;let i;e&&(i=e.left===_||nodeUtils$1.findChildOfKind(e.left,SyntaxKind.ArrayLiteralExpression,p)===_),i||t||r?Object.assign(m,{type:AST_NODE_TYPES.ArrayPattern,elements:_.elements.map(n)}):Object.assign(m,{type:AST_NODE_TYPES.ArrayExpression,elements:_.elements.map(n)});break}case SyntaxKind.ObjectLiteralExpression:{const e=nodeUtils$1.findFirstMatchingAncestor(_,e=>e.kind===SyntaxKind.BinaryExpression||e.kind===SyntaxKind.ArrowFunction),t=e&&e.kind===SyntaxKind.BinaryExpression&&e.operatorToken.kind===SyntaxKind.FirstAssignment?e:null;let r=!1;t&&(r=t.left===_||nodeUtils$1.findChildOfKind(t.left,SyntaxKind.ObjectLiteralExpression,p)===_),r?Object.assign(m,{type:AST_NODE_TYPES.ObjectPattern,properties:_.properties.map(n)}):Object.assign(m,{type:AST_NODE_TYPES.ObjectExpression,properties:_.properties.map(n)});break}case SyntaxKind.PropertyAssignment:Object.assign(m,{type:AST_NODE_TYPES.Property,key:n(_.name),value:n(_.initializer),computed:nodeUtils$1.isComputedProperty(_.name),method:!1,shorthand:!1,kind:"init"});break;case SyntaxKind.ShorthandPropertyAssignment:_.objectAssignmentInitializer?Object.assign(m,{type:AST_NODE_TYPES.Property,key:n(_.name),value:{type:AST_NODE_TYPES.AssignmentPattern,left:n(_.name),right:n(_.objectAssignmentInitializer),loc:m.loc,range:m.range},computed:!1,method:!1,shorthand:!0,kind:"init"}):Object.assign(m,{type:AST_NODE_TYPES.Property,key:n(_.name),value:n(_.initializer||_.name),computed:!1,method:!1,shorthand:!0,kind:"init"});break;case SyntaxKind.ComputedPropertyName:if(d.kind!==SyntaxKind.ObjectLiteralExpression)return n(_.expression);Object.assign(m,{type:AST_NODE_TYPES.Property,key:n(_.name),value:n(_.name),computed:!1,method:!1,shorthand:!0,kind:"init"});break;case SyntaxKind.PropertyDeclaration:{const e=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,_);Object.assign(m,{type:e?AST_NODE_TYPES.TSAbstractClassProperty:AST_NODE_TYPES.ClassProperty,key:n(_.name),value:n(_.initializer),computed:nodeUtils$1.isComputedProperty(_.name),static:nodeUtils$1.hasStaticModifierFlag(_),readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,_)||void 0}),_.type&&(m.typeAnnotation=r(_.type)),_.decorators&&(m.decorators=o(_.decorators));const t=nodeUtils$1.getTSNodeAccessibility(_);t&&(m.accessibility=t),_.name.kind===SyntaxKind.Identifier&&_.questionToken&&(m.key.optional=!0),m.key.type===AST_NODE_TYPES.Literal&&_.questionToken&&(m.optional=!0);break}case SyntaxKind.GetAccessor:case SyntaxKind.SetAccessor:case SyntaxKind.MethodDeclaration:{const e=nodeUtils$1.findFirstMatchingToken(_.name,p,e=>!(!e||!e.kind)&&"("===nodeUtils$1.getTextForTokenKind(e.kind)),t=p.getLineAndCharacterOfPosition(e.getStart()),i=_.kind===SyntaxKind.MethodDeclaration,c={type:AST_NODE_TYPES.FunctionExpression,id:null,generator:!!_.asteriskToken,expression:!1,async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,_),body:n(_.body),range:[_.parameters.pos-1,m.range[1]],loc:{start:{line:t.line+1,column:t.character},end:m.loc.end}};if(_.type&&(c.returnType=r(_.type)),d.kind===SyntaxKind.ObjectLiteralExpression)c.params=_.parameters.map(n),Object.assign(m,{type:AST_NODE_TYPES.Property,key:n(_.name),value:c,computed:nodeUtils$1.isComputedProperty(_.name),method:i,shorthand:!1,kind:"init"});else{c.params=s(_.parameters);const e=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,_)?AST_NODE_TYPES.TSAbstractMethodDefinition:AST_NODE_TYPES.MethodDefinition;Object.assign(m,{type:e,key:n(_.name),value:c,computed:nodeUtils$1.isComputedProperty(_.name),static:nodeUtils$1.hasStaticModifierFlag(_),kind:"method"}),_.decorators&&(m.decorators=o(_.decorators));const t=nodeUtils$1.getTSNodeAccessibility(_);t&&(m.accessibility=t);}m.key.type===AST_NODE_TYPES.Identifier&&_.questionToken&&(m.key.optional=!0),_.kind===SyntaxKind.GetAccessor?m.kind="get":_.kind===SyntaxKind.SetAccessor?m.kind="set":m.static||_.name.kind!==SyntaxKind.StringLiteral||"constructor"!==_.name.text||(m.kind="constructor"),_.typeParameters&&_.typeParameters.length&&(c.typeParameters=a(_.typeParameters));break}case SyntaxKind.Constructor:{const e=nodeUtils$1.hasStaticModifierFlag(_),t=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,_),r=e?nodeUtils$1.findNextToken(_.getFirstToken(),p):_.getFirstToken(),i=p.getLineAndCharacterOfPosition(_.parameters.pos-1),a={type:AST_NODE_TYPES.FunctionExpression,id:null,params:s(_.parameters),generator:!1,expression:!1,async:!1,body:n(_.body),range:[_.parameters.pos-1,m.range[1]],loc:{start:{line:i.line+1,column:i.character},end:m.loc.end}},o=p.getLineAndCharacterOfPosition(r.getStart()),c=p.getLineAndCharacterOfPosition(r.getEnd()),u=!!_.name&&nodeUtils$1.isComputedProperty(_.name);let l;l=u?{type:AST_NODE_TYPES.Literal,value:"constructor",raw:_.name.getText(),range:[r.getStart(),r.end],loc:{start:{line:o.line+1,column:o.character},end:{line:c.line+1,column:c.character}}}:{type:AST_NODE_TYPES.Identifier,name:"constructor",range:[r.getStart(),r.end],loc:{start:{line:o.line+1,column:o.character},end:{line:c.line+1,column:c.character}}},Object.assign(m,{type:t?AST_NODE_TYPES.TSAbstractMethodDefinition:AST_NODE_TYPES.MethodDefinition,key:l,value:a,computed:u,static:e,kind:e||u?"method":"constructor"});const d=nodeUtils$1.getTSNodeAccessibility(_);d&&(m.accessibility=d);break}case SyntaxKind.FunctionExpression:Object.assign(m,{type:AST_NODE_TYPES.FunctionExpression,id:n(_.name),generator:!!_.asteriskToken,params:s(_.parameters),body:n(_.body),async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,_),expression:!1}),_.type&&(m.returnType=r(_.type)),_.typeParameters&&_.typeParameters.length&&(m.typeParameters=a(_.typeParameters));break;case SyntaxKind.SuperKeyword:Object.assign(m,{type:AST_NODE_TYPES.Super});break;case SyntaxKind.ArrayBindingPattern:Object.assign(m,{type:AST_NODE_TYPES.ArrayPattern,elements:_.elements.map(n)});break;case SyntaxKind.OmittedExpression:return null;case SyntaxKind.ObjectBindingPattern:Object.assign(m,{type:AST_NODE_TYPES.ObjectPattern,properties:_.elements.map(n)});break;case SyntaxKind.BindingElement:if(d.kind===SyntaxKind.ArrayBindingPattern){const t=e({node:_.name,parent:d,ast:p,additionalOptions:f});if(_.initializer)Object.assign(m,{type:AST_NODE_TYPES.AssignmentPattern,left:t,right:n(_.initializer)});else{if(!_.dotDotDotToken)return t;Object.assign(m,{type:AST_NODE_TYPES.RestElement,argument:t});}}else d.kind===SyntaxKind.ObjectBindingPattern&&(_.dotDotDotToken?Object.assign(m,{type:AST_NODE_TYPES.ExperimentalRestProperty,argument:n(_.propertyName||_.name),computed:Boolean(_.propertyName&&_.propertyName.kind===SyntaxKind.ComputedPropertyName),shorthand:!_.propertyName}):Object.assign(m,{type:AST_NODE_TYPES.Property,key:n(_.propertyName||_.name),value:n(_.name),computed:Boolean(_.propertyName&&_.propertyName.kind===SyntaxKind.ComputedPropertyName),method:!1,shorthand:!_.propertyName,kind:"init"}),_.initializer&&(m.value={type:AST_NODE_TYPES.AssignmentPattern,left:n(_.name),right:n(_.initializer),range:[_.name.getStart(),_.initializer.end],loc:nodeUtils$1.getLocFor(_.name.getStart(),_.initializer.end,p)}));break;case SyntaxKind.ArrowFunction:Object.assign(m,{type:AST_NODE_TYPES.ArrowFunctionExpression,generator:!1,id:null,params:s(_.parameters),body:n(_.body),async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,_),expression:_.body.kind!==SyntaxKind.Block}),_.type&&(m.returnType=r(_.type)),_.typeParameters&&_.typeParameters.length&&(m.typeParameters=a(_.typeParameters));break;case SyntaxKind.YieldExpression:Object.assign(m,{type:AST_NODE_TYPES.YieldExpression,delegate:!!_.asteriskToken,argument:n(_.expression)});break;case SyntaxKind.AwaitExpression:Object.assign(m,{type:AST_NODE_TYPES.AwaitExpression,argument:n(_.expression)});break;case SyntaxKind.NoSubstitutionTemplateLiteral:Object.assign(m,{type:AST_NODE_TYPES.TemplateLiteral,quasis:[{type:AST_NODE_TYPES.TemplateElement,value:{raw:p.text.slice(_.getStart()+1,_.end-1),cooked:_.text},tail:!0,range:m.range,loc:m.loc}],expressions:[]});break;case SyntaxKind.TemplateExpression:Object.assign(m,{type:AST_NODE_TYPES.TemplateLiteral,quasis:[n(_.head)],expressions:[]}),_.templateSpans.forEach(e=>{m.expressions.push(n(e.expression)),m.quasis.push(n(e.literal));});break;case SyntaxKind.TaggedTemplateExpression:Object.assign(m,{type:AST_NODE_TYPES.TaggedTemplateExpression,tag:n(_.tag),quasi:n(_.template)});break;case SyntaxKind.TemplateHead:case SyntaxKind.TemplateMiddle:case SyntaxKind.TemplateTail:{const e=_.kind===SyntaxKind.TemplateTail;Object.assign(m,{type:AST_NODE_TYPES.TemplateElement,value:{raw:p.text.slice(_.getStart()+1,_.end-(e?1:2)),cooked:_.text},tail:e});break}case SyntaxKind.SpreadElement:{let e=AST_NODE_TYPES.SpreadElement;_.parent&&_.parent.parent&&_.parent.parent.kind===SyntaxKind.BinaryExpression&&(_.parent.parent.left===_.parent?e=AST_NODE_TYPES.RestElement:_.parent.parent.right===_.parent&&(e=AST_NODE_TYPES.SpreadElement)),Object.assign(m,{type:e,argument:n(_.expression)});break}case SyntaxKind.SpreadAssignment:{let e=AST_NODE_TYPES.ExperimentalSpreadProperty;_.parent&&_.parent.parent&&_.parent.parent.kind===SyntaxKind.BinaryExpression&&(_.parent.parent.right===_.parent?e=AST_NODE_TYPES.ExperimentalSpreadProperty:_.parent.parent.left===_.parent&&(e=AST_NODE_TYPES.ExperimentalRestProperty)),Object.assign(m,{type:e,argument:n(_.expression)});break}case SyntaxKind.Parameter:{let t;if(_.dotDotDotToken?(t=n(_.name),Object.assign(m,{type:AST_NODE_TYPES.RestElement,argument:t})):_.initializer?(t=n(_.name),Object.assign(m,{type:AST_NODE_TYPES.AssignmentPattern,left:t,right:n(_.initializer)})):(t=e({node:_.name,parent:d,ast:p,additionalOptions:f}),m=t),_.type&&(t.typeAnnotation=r(_.type),l(t)),_.questionToken&&(t.optional=!0),_.modifiers)return{type:AST_NODE_TYPES.TSParameterProperty,range:[_.getStart(),_.end],loc:nodeUtils$1.getLoc(_,p),accessibility:nodeUtils$1.getTSNodeAccessibility(_)||void 0,readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,_)||void 0,static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,_)||void 0,export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,_)||void 0,parameter:m};break}case SyntaxKind.ClassDeclaration:case SyntaxKind.ClassExpression:{const e=_.heritageClauses||[];let t=SyntaxKind[_.kind],r=e.length?e[e.length-1]:_.name;if(_.typeParameters&&_.typeParameters.length){const e=_.typeParameters[_.typeParameters.length-1];(!r||e.pos>r.pos)&&(r=nodeUtils$1.findNextToken(e,p)),m.typeParameters=a(_.typeParameters);}if(_.modifiers&&_.modifiers.length){_.kind===SyntaxKind.ClassDeclaration&&nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,_)&&(t=`TSAbstract${t}`);const e=_.modifiers[_.modifiers.length-1];(!r||e.pos>r.pos)&&(r=nodeUtils$1.findNextToken(e,p));}else r||(r=_.getFirstToken());const s=nodeUtils$1.findNextToken(r,p),c=e.find(e=>e.token===SyntaxKind.ExtendsKeyword);c&&c.types[0]&&c.types[0].typeArguments&&(m.superTypeParameters=i(c.types[0].typeArguments));const u=e.find(e=>e.token===SyntaxKind.ImplementsKeyword);Object.assign(m,{type:t,id:n(_.name),body:{type:AST_NODE_TYPES.ClassBody,body:[],range:[s.getStart(),m.range[1]],loc:nodeUtils$1.getLocFor(s.getStart(),_.end,p)},superClass:c&&c.types[0]?n(c.types[0].expression):null}),u&&(m.implements=u.types.map(function(e){const t=n(e.expression),r={type:AST_NODE_TYPES.ClassImplements,loc:t.loc,range:t.range,id:t};return e.typeArguments&&e.typeArguments.length&&(r.typeParameters=i(e.typeArguments)),r})),_.decorators&&(m.decorators=o(_.decorators));const l=_.members.filter(nodeUtils$1.isESTreeClassMember);l.length&&(m.body.body=l.map(n)),m=nodeUtils$1.fixExports(_,m,p);break}case SyntaxKind.ModuleBlock:Object.assign(m,{type:AST_NODE_TYPES.TSModuleBlock,body:_.statements.map(n)});break;case SyntaxKind.ImportDeclaration:Object.assign(m,{type:AST_NODE_TYPES.ImportDeclaration,source:n(_.moduleSpecifier),specifiers:[]}),_.importClause&&(_.importClause.name&&m.specifiers.push(n(_.importClause)),_.importClause.namedBindings&&(_.importClause.namedBindings.kind===SyntaxKind.NamespaceImport?m.specifiers.push(n(_.importClause.namedBindings)):m.specifiers=m.specifiers.concat(_.importClause.namedBindings.elements.map(n))));break;case SyntaxKind.NamespaceImport:Object.assign(m,{type:AST_NODE_TYPES.ImportNamespaceSpecifier,local:n(_.name)});break;case SyntaxKind.ImportSpecifier:Object.assign(m,{type:AST_NODE_TYPES.ImportSpecifier,local:n(_.name),imported:n(_.propertyName||_.name)});break;case SyntaxKind.ImportClause:Object.assign(m,{type:AST_NODE_TYPES.ImportDefaultSpecifier,local:n(_.name)}),m.range[1]=_.name.end,m.loc=nodeUtils$1.getLocFor(m.range[0],m.range[1],p);break;case SyntaxKind.NamedImports:Object.assign(m,{type:AST_NODE_TYPES.ImportDefaultSpecifier,local:n(_.name)});break;case SyntaxKind.ExportDeclaration:_.exportClause?Object.assign(m,{type:AST_NODE_TYPES.ExportNamedDeclaration,source:n(_.moduleSpecifier),specifiers:_.exportClause.elements.map(n),declaration:null}):Object.assign(m,{type:AST_NODE_TYPES.ExportAllDeclaration,source:n(_.moduleSpecifier)});break;case SyntaxKind.ExportSpecifier:Object.assign(m,{type:AST_NODE_TYPES.ExportSpecifier,local:n(_.propertyName||_.name),exported:n(_.name)});break;case SyntaxKind.ExportAssignment:_.isExportEquals?Object.assign(m,{type:AST_NODE_TYPES.TSExportAssignment,expression:n(_.expression)}):Object.assign(m,{type:AST_NODE_TYPES.ExportDefaultDeclaration,declaration:n(_.expression)});break;case SyntaxKind.PrefixUnaryExpression:case SyntaxKind.PostfixUnaryExpression:{const e=nodeUtils$1.getTextForTokenKind(_.operator);Object.assign(m,{type:/^(?:\+\+|--)$/.test(e)?AST_NODE_TYPES.UpdateExpression:AST_NODE_TYPES.UnaryExpression,operator:e,prefix:_.kind===SyntaxKind.PrefixUnaryExpression,argument:n(_.operand)});break}case SyntaxKind.DeleteExpression:Object.assign(m,{type:AST_NODE_TYPES.UnaryExpression,operator:"delete",prefix:!0,argument:n(_.expression)});break;case SyntaxKind.VoidExpression:Object.assign(m,{type:AST_NODE_TYPES.UnaryExpression,operator:"void",prefix:!0,argument:n(_.expression)});break;case SyntaxKind.TypeOfExpression:Object.assign(m,{type:AST_NODE_TYPES.UnaryExpression,operator:"typeof",prefix:!0,argument:n(_.expression)});break;case SyntaxKind.BinaryExpression:if(nodeUtils$1.isComma(_.operatorToken)){Object.assign(m,{type:AST_NODE_TYPES.SequenceExpression,expressions:[]});const e=n(_.left),t=n(_.right);e.type===AST_NODE_TYPES.SequenceExpression?m.expressions=m.expressions.concat(e.expressions):m.expressions.push(e),t.type===AST_NODE_TYPES.SequenceExpression?m.expressions=m.expressions.concat(t.expressions):m.expressions.push(t);}else if(_.operatorToken&&_.operatorToken.kind===SyntaxKind.AsteriskAsteriskEqualsToken)Object.assign(m,{type:AST_NODE_TYPES.AssignmentExpression,operator:nodeUtils$1.getTextForTokenKind(_.operatorToken.kind),left:n(_.left),right:n(_.right)});else if(Object.assign(m,{type:nodeUtils$1.getBinaryExpressionType(_.operatorToken),operator:nodeUtils$1.getTextForTokenKind(_.operatorToken.kind),left:n(_.left),right:n(_.right)}),m.type===AST_NODE_TYPES.AssignmentExpression){const e=nodeUtils$1.findAncestorOfKind(_,SyntaxKind.ArrayLiteralExpression),t=e&&nodeUtils$1.findAncestorOfKind(e,SyntaxKind.BinaryExpression);let n;t&&(n=t.left===e||nodeUtils$1.findChildOfKind(t.left,SyntaxKind.ArrayLiteralExpression,p)===e),n&&(delete m.operator,m.type=AST_NODE_TYPES.AssignmentPattern);}break;case SyntaxKind.PropertyAccessExpression:if(nodeUtils$1.isJSXToken(d)){const e={type:AST_NODE_TYPES.MemberExpression,object:n(_.expression),property:n(_.name)},t=_.expression.kind===SyntaxKind.PropertyAccessExpression;_.expression.kind===SyntaxKind.ThisKeyword&&(e.object.name="this"),e.object.type=t?AST_NODE_TYPES.MemberExpression:AST_NODE_TYPES.JSXIdentifier,e.property.type=AST_NODE_TYPES.JSXIdentifier,Object.assign(m,e);}else Object.assign(m,{type:AST_NODE_TYPES.MemberExpression,object:n(_.expression),property:n(_.name),computed:!1});break;case SyntaxKind.ElementAccessExpression:Object.assign(m,{type:AST_NODE_TYPES.MemberExpression,object:n(_.expression),property:n(_.argumentExpression),computed:!0});break;case SyntaxKind.ConditionalExpression:Object.assign(m,{type:AST_NODE_TYPES.ConditionalExpression,test:n(_.condition),consequent:n(_.whenTrue),alternate:n(_.whenFalse)});break;case SyntaxKind.CallExpression:Object.assign(m,{type:AST_NODE_TYPES.CallExpression,callee:n(_.expression),arguments:_.arguments.map(n)}),_.typeArguments&&_.typeArguments.length&&(m.typeParameters=i(_.typeArguments));break;case SyntaxKind.NewExpression:Object.assign(m,{type:AST_NODE_TYPES.NewExpression,callee:n(_.expression),arguments:_.arguments?_.arguments.map(n):[]}),_.typeArguments&&_.typeArguments.length&&(m.typeParameters=i(_.typeArguments));break;case SyntaxKind.MetaProperty:{const e=nodeUtils$1.convertToken(_.getFirstToken(),p);Object.assign(m,{type:AST_NODE_TYPES.MetaProperty,meta:{type:AST_NODE_TYPES.Identifier,range:e.range,loc:e.loc,name:"new"},property:n(_.name)});break}case SyntaxKind.StringLiteral:Object.assign(m,{type:AST_NODE_TYPES.Literal,raw:p.text.slice(m.range[0],m.range[1])}),d.name&&d.name===_?m.value=nodeUtils$1.unescapeIdentifier(_.text):m.value=nodeUtils$1.unescapeStringLiteralText(_.text);break;case SyntaxKind.NumericLiteral:Object.assign(m,{type:AST_NODE_TYPES.Literal,value:Number(_.text),raw:p.text.slice(m.range[0],m.range[1])});break;case SyntaxKind.RegularExpressionLiteral:{const e=_.text.slice(1,_.text.lastIndexOf("/")),t=_.text.slice(_.text.lastIndexOf("/")+1);let n=null;try{n=new RegExp(e,t);}catch(e){n=null;}Object.assign(m,{type:AST_NODE_TYPES.Literal,value:n,raw:_.text,regex:{pattern:e,flags:t}});break}case SyntaxKind.TrueKeyword:Object.assign(m,{type:AST_NODE_TYPES.Literal,value:!0,raw:"true"});break;case SyntaxKind.FalseKeyword:Object.assign(m,{type:AST_NODE_TYPES.Literal,value:!1,raw:"false"});break;case SyntaxKind.NullKeyword:nodeUtils$1.isWithinTypeAnnotation(_)?Object.assign(m,{type:AST_NODE_TYPES.TSNullKeyword}):Object.assign(m,{type:AST_NODE_TYPES.Literal,value:null,raw:"null"});break;case SyntaxKind.ImportKeyword:Object.assign(m,{type:AST_NODE_TYPES.Import});break;case SyntaxKind.EmptyStatement:case SyntaxKind.DebuggerStatement:Object.assign(m,{type:SyntaxKind[_.kind]});break;case SyntaxKind.JsxElement:Object.assign(m,{type:AST_NODE_TYPES.JSXElement,openingElement:n(_.openingElement),closingElement:n(_.closingElement),children:_.children.map(n)});break;case SyntaxKind.JsxSelfClosingElement:{_.kind=SyntaxKind.JsxOpeningElement;const e=n(_);e.selfClosing=!0,Object.assign(m,{type:AST_NODE_TYPES.JSXElement,openingElement:e,closingElement:null,children:[]});break}case SyntaxKind.JsxOpeningElement:Object.assign(m,{type:AST_NODE_TYPES.JSXOpeningElement,selfClosing:!1,name:c(_.tagName),attributes:_.attributes.properties.map(n)});break;case SyntaxKind.JsxClosingElement:Object.assign(m,{type:AST_NODE_TYPES.JSXClosingElement,name:c(_.tagName)});break;case SyntaxKind.JsxExpression:{const e=p.getLineAndCharacterOfPosition(m.range[0]+1),t=_.expression?n(_.expression):{type:AST_NODE_TYPES.JSXEmptyExpression,loc:{start:{line:e.line+1,column:e.character},end:{line:m.loc.end.line,column:m.loc.end.column-1}},range:[m.range[0]+1,m.range[1]-1]};Object.assign(m,{type:AST_NODE_TYPES.JSXExpressionContainer,expression:t});break}case SyntaxKind.JsxAttribute:{const e=nodeUtils$1.convertToken(_.name,p);e.type=AST_NODE_TYPES.JSXIdentifier,e.name=e.value,delete e.value,Object.assign(m,{type:AST_NODE_TYPES.JSXAttribute,name:e,value:n(_.initializer)});break}case SyntaxKind.JsxText:{const e=_.getFullStart(),t=_.getEnd(),n=f.useJSXTextNode?AST_NODE_TYPES.JSXText:AST_NODE_TYPES.Literal;Object.assign(m,{type:n,value:p.text.slice(e,t),raw:p.text.slice(e,t)}),m.loc=nodeUtils$1.getLocFor(e,t,p),m.range=[e,t];break}case SyntaxKind.JsxSpreadAttribute:Object.assign(m,{type:AST_NODE_TYPES.JSXSpreadAttribute,argument:n(_.expression)});break;case SyntaxKind.FirstNode:Object.assign(m,{type:AST_NODE_TYPES.TSQualifiedName,left:n(_.left),right:n(_.right)});break;case SyntaxKind.ParenthesizedExpression:return e({node:_.expression,parent:d,ast:p,additionalOptions:f});case SyntaxKind.TypeAliasDeclaration:{const e={type:AST_NODE_TYPES.VariableDeclarator,id:n(_.name),init:n(_.type),range:[_.name.getStart(),_.end]};e.loc=nodeUtils$1.getLocFor(e.range[0],e.range[1],p),_.typeParameters&&_.typeParameters.length&&(e.typeParameters=a(_.typeParameters)),Object.assign(m,{type:AST_NODE_TYPES.VariableDeclaration,kind:nodeUtils$1.getDeclarationKind(_),declarations:[e]}),m=nodeUtils$1.fixExports(_,m,p);break}case SyntaxKind.MethodSignature:{Object.assign(m,{type:AST_NODE_TYPES.TSMethodSignature,optional:nodeUtils$1.isOptional(_),computed:nodeUtils$1.isComputedProperty(_.name),key:n(_.name),params:s(_.parameters),typeAnnotation:_.type?r(_.type):null,readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,_)||void 0,static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,_),export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,_)||void 0});const e=nodeUtils$1.getTSNodeAccessibility(_);e&&(m.accessibility=e),_.typeParameters&&(m.typeParameters=a(_.typeParameters));break}case SyntaxKind.PropertySignature:{Object.assign(m,{type:AST_NODE_TYPES.TSPropertySignature,optional:nodeUtils$1.isOptional(_)||void 0,computed:nodeUtils$1.isComputedProperty(_.name),key:n(_.name),typeAnnotation:_.type?r(_.type):void 0,initializer:n(_.initializer)||void 0,readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,_)||void 0,static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,_)||void 0,export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,_)||void 0});const e=nodeUtils$1.getTSNodeAccessibility(_);e&&(m.accessibility=e);break}case SyntaxKind.IndexSignature:{Object.assign(m,{type:AST_NODE_TYPES.TSIndexSignature,index:n(_.parameters[0]),typeAnnotation:_.type?r(_.type):null,readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,_)||void 0,static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,_),export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,_)||void 0});const e=nodeUtils$1.getTSNodeAccessibility(_);e&&(m.accessibility=e);break}case SyntaxKind.ConstructSignature:Object.assign(m,{type:AST_NODE_TYPES.TSConstructSignature,params:s(_.parameters),typeAnnotation:_.type?r(_.type):null}),_.typeParameters&&(m.typeParameters=a(_.typeParameters));break;case SyntaxKind.InterfaceDeclaration:{const e=_.heritageClauses||[];let t=e.length?e[e.length-1]:_.name;if(_.typeParameters&&_.typeParameters.length){const e=_.typeParameters[_.typeParameters.length-1];(!t||e.pos>t.pos)&&(t=nodeUtils$1.findNextToken(e,p)),m.typeParameters=a(_.typeParameters);}const r=e.length>0,o=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,_),s=nodeUtils$1.findNextToken(t,p),c={type:AST_NODE_TYPES.TSInterfaceBody,body:_.members.map(e=>n(e)),range:[s.getStart(),m.range[1]],loc:nodeUtils$1.getLocFor(s.getStart(),_.end,p)};Object.assign(m,{abstract:o,type:AST_NODE_TYPES.TSInterfaceDeclaration,body:c,id:n(_.name),heritage:r?e[0].types.map(function(e){const t=n(e.expression),r={type:AST_NODE_TYPES.TSInterfaceHeritage,loc:t.loc,range:t.range,id:t};return e.typeArguments&&e.typeArguments.length&&(r.typeParameters=i(e.typeArguments)),r}):[]}),m=nodeUtils$1.fixExports(_,m,p);break}case SyntaxKind.FirstTypeNode:Object.assign(m,{type:AST_NODE_TYPES.TSTypePredicate,parameterName:n(_.parameterName),typeAnnotation:r(_.type)}),m.typeAnnotation.loc=m.typeAnnotation.typeAnnotation.loc,m.typeAnnotation.range=m.typeAnnotation.typeAnnotation.range;break;case SyntaxKind.EnumDeclaration:Object.assign(m,{type:AST_NODE_TYPES.TSEnumDeclaration,id:n(_.name),members:_.members.map(n)}),u(_.modifiers),m=nodeUtils$1.fixExports(_,m,p),_.decorators&&(m.decorators=o(_.decorators));break;case SyntaxKind.EnumMember:Object.assign(m,{type:AST_NODE_TYPES.TSEnumMember,id:n(_.name)}),_.initializer&&(m.initializer=n(_.initializer));break;case SyntaxKind.ModuleDeclaration:Object.assign(m,{type:AST_NODE_TYPES.TSModuleDeclaration,id:n(_.name)}),_.body&&(m.body=n(_.body)),u(_.modifiers),m=nodeUtils$1.fixExports(_,m,p);break;default:!function(){const e=`TS${SyntaxKind[_.kind]}`;if(f.errorOnUnknownASTType&&!AST_NODE_TYPES[e])throw new Error(`Unknown AST_NODE_TYPE: "${e}"`);m.type=e,Object.keys(_).filter(e=>!/^(?:_children|kind|parent|pos|end|flags|modifierFlagsCache|jsDoc)$/.test(e)).forEach(e=>{if("type"===e)m.typeAnnotation=_.type?r(_.type):null;else if("typeArguments"===e)m.typeParameters=_.typeArguments?i(_.typeArguments):null;else if("typeParameters"===e)m.typeParameters=_.typeParameters?a(_.typeParameters):null;else if("decorators"===e){const e=o(_.decorators);e&&e.length&&(m.decorators=e);}else Array.isArray(_[e])?m[e]=_[e].map(n):_[e]&&"object"==typeof _[e]?m[e]=n(_[e]):m[e]=_[e];});}();}return m};const ts$2=typescript,nodeUtils$4=nodeUtils$2;var convertComments_1={convertComments:convertComments$1};const convert$1=convert$2,convertComments=convertComments_1.convertComments,nodeUtils=nodeUtils$2;var astConverter=(e,t)=>{if(e.parseDiagnostics.length)throw convertError(e.parseDiagnostics[0]);const n=convert$1({node:e,parent:null,ast:e,additionalOptions:{errorOnUnknownASTType:t.errorOnUnknownASTType||!1,useJSXTextNode:t.useJSXTextNode||!1}});return t.tokens&&(n.tokens=nodeUtils.convertTokens(e)),t.comment&&(n.comments=convertComments(e,t.code)),n},semver$1=createCommonjsModule$$1(function(e,t){function n(e,t){if(e instanceof r)return e;if("string"!=typeof e)return null;if(e.length>A)return null;if(!(t?O[G]:O[V]).test(e))return null;try{return new r(e,t)}catch(e){return null}}function r(e,t){if(e instanceof r){if(e.loose===t)return e;e=e.version;}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>A)throw new TypeError("version is longer than "+A+" characters");if(!(this instanceof r))return new r(e,t);N("SemVer",e,t),this.loose=t;var n=e.trim().match(t?O[G]:O[V]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>w||this.major<0)throw new TypeError("Invalid major version");if(this.minor>w||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>w||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&tt?1:0}function a(e,t,n){return new r(e,n).compare(new r(t,n))}function o(e,t,n){return a(e,t,n)>0}function s(e,t,n){return a(e,t,n)<0}function c(e,t,n){return 0===a(e,t,n)}function u(e,t,n){return 0!==a(e,t,n)}function l(e,t,n){return a(e,t,n)>=0}function _(e,t,n){return a(e,t,n)<=0}function d(e,t,n,r){var i;switch(t){case"===":"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),i=e===n;break;case"!==":"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),i=e!==n;break;case"":case"=":case"==":i=c(e,n,r);break;case"!=":i=u(e,n,r);break;case">":i=o(e,n,r);break;case">=":i=l(e,n,r);break;case"<":i=s(e,n,r);break;case"<=":i=_(e,n,r);break;default:throw new TypeError("Invalid operator: "+t)}return i}function p(e,t){if(e instanceof p){if(e.loose===t)return e;e=e.value;}if(!(this instanceof p))return new p(e,t);N("comparator",e,t),this.loose=t,this.parse(e),this.semver===he?this.value="":this.value=this.operator+this.semver.version,N("comp",this);}function f(e,t){if(e instanceof f)return e.loose===t?e:new f(e.raw,t);if(e instanceof p)return new f(e.value,t);if(!(this instanceof f))return new f(e,t);if(this.loose=t,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format();}function m(e,t){return N("comp",e),e=v(e,t),N("caret",e),e=y(e,t),N("tildes",e),e=x(e,t),N("xrange",e),e=k(e,t),N("stars",e),e}function g(e){return!e||"x"===e.toLowerCase()||"*"===e}function y(e,t){return e.trim().split(/\s+/).map(function(e){return h(e,t)}).join(" ")}function h(e,t){var n=t?O[ae]:O[ie];return e.replace(n,function(t,n,r,i,a){N("tilde",e,t,n,r,i,a);var o;return g(n)?o="":g(r)?o=">="+n+".0.0 <"+(+n+1)+".0.0":g(i)?o=">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":a?(N("replaceTilde pr",a),"-"!==a.charAt(0)&&(a="-"+a),o=">="+n+"."+r+"."+i+a+" <"+n+"."+(+r+1)+".0"):o=">="+n+"."+r+"."+i+" <"+n+"."+(+r+1)+".0",N("tilde return",o),o})}function v(e,t){return e.trim().split(/\s+/).map(function(e){return b(e,t)}).join(" ")}function b(e,t){N("caret",e,t);var n=t?O[ue]:O[ce];return e.replace(n,function(t,n,r,i,a){N("caret",e,t,n,r,i,a);var o;return g(n)?o="":g(r)?o=">="+n+".0.0 <"+(+n+1)+".0.0":g(i)?o="0"===n?">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":">="+n+"."+r+".0 <"+(+n+1)+".0.0":a?(N("replaceCaret pr",a),"-"!==a.charAt(0)&&(a="-"+a),o="0"===n?"0"===r?">="+n+"."+r+"."+i+a+" <"+n+"."+r+"."+(+i+1):">="+n+"."+r+"."+i+a+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+i+a+" <"+(+n+1)+".0.0"):(N("no pr"),o="0"===n?"0"===r?">="+n+"."+r+"."+i+" <"+n+"."+r+"."+(+i+1):">="+n+"."+r+"."+i+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+i+" <"+(+n+1)+".0.0"),N("caret return",o),o})}function x(e,t){return N("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return S(e,t)}).join(" ")}function S(e,t){e=e.trim();var n=t?O[te]:O[ee];return e.replace(n,function(t,n,r,i,a,o){N("xRange",e,t,n,r,i,a,o);var s=g(r),c=s||g(i),u=c||g(a),l=u;return"="===n&&l&&(n=""),s?t=">"===n||"<"===n?"<0.0.0":"*":n&&l?(c&&(i=0),u&&(a=0),">"===n?(n=">=",c?(r=+r+1,i=0,a=0):u&&(i=+i+1,a=0)):"<="===n&&(n="<",c?r=+r+1:i=+i+1),t=n+r+"."+i+"."+a):c?t=">="+r+".0.0 <"+(+r+1)+".0.0":u&&(t=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0"),N("xRange return",t),t})}function k(e,t){return N("replaceStars",e,t),e.trim().replace(O[me],"")}function T(e,t,n,r,i,a,o,s,c,u,l,_,d){return t=g(n)?"":g(r)?">="+n+".0.0":g(i)?">="+n+"."+r+".0":">="+t,s=g(c)?"":g(u)?"<"+(+c+1)+".0.0":g(l)?"<"+c+"."+(+u+1)+".0":_?"<="+c+"."+u+"."+l+"-"+_:"<="+s,(t+" "+s).trim()}function C(e,t){for(n=0;n0){var r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}function D(e,t,n){try{t=new f(t,n);}catch(e){return!1}return t.test(e)}function E(e,t,n,i){e=new r(e,i),t=new f(t,i);var a,c,u,d,m;switch(n){case">":a=o,c=_,u=s,d=">",m=">=";break;case"<":a=s,c=l,u=o,d="<",m="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(D(e,t,i))return!1;for(var g=0;g=0.0.0")),y=y||e,h=h||e,a(e.semver,y.semver,i)?y=e:u(e.semver,h.semver,i)&&(h=e);}),y.operator===d||y.operator===m)return!1;if((!h.operator||h.operator===d)&&c(e,h.semver))return!1;if(h.operator===m&&u(e,h.semver))return!1}return!0}t=e.exports=r;var N;N="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var A=256,w=Number.MAX_SAFE_INTEGER||9007199254740991,O=t.re=[],P=t.src=[],F=0,I=F++;P[I]="0|[1-9]\\d*";var L=F++;P[L]="[0-9]+";var R=F++;P[R]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var M=F++;P[M]="("+P[I]+")\\.("+P[I]+")\\.("+P[I]+")";var B=F++;P[B]="("+P[L]+")\\.("+P[L]+")\\.("+P[L]+")";var K=F++;P[K]="(?:"+P[I]+"|"+P[R]+")";var j=F++;P[j]="(?:"+P[L]+"|"+P[R]+")";var J=F++;P[J]="(?:-("+P[K]+"(?:\\."+P[K]+")*))";var z=F++;P[z]="(?:-?("+P[j]+"(?:\\."+P[j]+")*))";var U=F++;P[U]="[0-9A-Za-z-]+";var q=F++;P[q]="(?:\\+("+P[U]+"(?:\\."+P[U]+")*))";var V=F++,$="v?"+P[M]+P[J]+"?"+P[q]+"?";P[V]="^"+$+"$";var W="[v=\\s]*"+P[B]+P[z]+"?"+P[q]+"?",G=F++;P[G]="^"+W+"$";var H=F++;P[H]="((?:<|>)?=?)";var X=F++;P[X]=P[L]+"|x|X|\\*";var Y=F++;P[Y]=P[I]+"|x|X|\\*";var Q=F++;P[Q]="[v=\\s]*("+P[Y]+")(?:\\.("+P[Y]+")(?:\\.("+P[Y]+")(?:"+P[J]+")?"+P[q]+"?)?)?";var Z=F++;P[Z]="[v=\\s]*("+P[X]+")(?:\\.("+P[X]+")(?:\\.("+P[X]+")(?:"+P[z]+")?"+P[q]+"?)?)?";var ee=F++;P[ee]="^"+P[H]+"\\s*"+P[Q]+"$";var te=F++;P[te]="^"+P[H]+"\\s*"+P[Z]+"$";var ne=F++;P[ne]="(?:~>?)";var re=F++;P[re]="(\\s*)"+P[ne]+"\\s+",O[re]=new RegExp(P[re],"g");var ie=F++;P[ie]="^"+P[ne]+P[Q]+"$";var ae=F++;P[ae]="^"+P[ne]+P[Z]+"$";var oe=F++;P[oe]="(?:\\^)";var se=F++;P[se]="(\\s*)"+P[oe]+"\\s+",O[se]=new RegExp(P[se],"g");var ce=F++;P[ce]="^"+P[oe]+P[Q]+"$";var ue=F++;P[ue]="^"+P[oe]+P[Z]+"$";var le=F++;P[le]="^"+P[H]+"\\s*("+W+")$|^$";var _e=F++;P[_e]="^"+P[H]+"\\s*("+$+")$|^$";var de=F++;P[de]="(\\s*)"+P[H]+"\\s*("+W+"|"+P[Q]+")",O[de]=new RegExp(P[de],"g");var pe=F++;P[pe]="^\\s*("+P[Q]+")\\s+-\\s+("+P[Q]+")\\s*$";var fe=F++;P[fe]="^\\s*("+P[Z]+")\\s+-\\s+("+P[Z]+")\\s*$";var me=F++;P[me]="(<|>)?=?\\s*\\*";for(var ge=0;ge=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,i){"string"==typeof n&&(i=n,n=void 0);try{return new r(e,n).inc(t,i).version}catch(e){return null}},t.diff=function(e,t){if(c(e,t))return null;var r=n(e),i=n(t);if(r.prerelease.length||i.prerelease.length){for(var a in r)if(("major"===a||"minor"===a||"patch"===a)&&r[a]!==i[a])return"pre"+a;return"prerelease"}for(var a in r)if(("major"===a||"minor"===a||"patch"===a)&&r[a]!==i[a])return a},t.compareIdentifiers=i;var ye=/^[0-9]+$/;t.rcompareIdentifiers=function(e,t){return i(t,e)},t.major=function(e,t){return new r(e,t).major},t.minor=function(e,t){return new r(e,t).minor},t.patch=function(e,t){return new r(e,t).patch},t.compare=a,t.compareLoose=function(e,t){return a(e,t,!0)},t.rcompare=function(e,t,n){return a(t,e,n)},t.sort=function(e,n){return e.sort(function(e,r){return t.compare(e,r,n)})},t.rsort=function(e,n){return e.sort(function(e,r){return t.rcompare(e,r,n)})},t.gt=o,t.lt=s,t.eq=c,t.neq=u,t.gte=l,t.lte=_,t.cmp=d,t.Comparator=p;var he={};p.prototype.parse=function(e){var t=this.loose?O[le]:O[_e],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new r(n[2],this.loose):this.semver=he;},p.prototype.toString=function(){return this.value},p.prototype.test=function(e){return N("Comparator.test",e,this.loose),this.semver===he||("string"==typeof e&&(e=new r(e,this.loose)),d(e,this.operator,this.semver,this.loose))},p.prototype.intersects=function(e,t){if(!(e instanceof p))throw new TypeError("a Comparator is required");var n;if(""===this.operator)return n=new f(e.value,t),D(this.value,n,t);if(""===e.operator)return n=new f(this.value,t),D(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=d(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=d(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||a&&o||s||c},t.Range=f,f.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},f.prototype.toString=function(){return this.range},f.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),N("range",e,t);var n=t?O[fe]:O[pe];e=e.replace(n,T),N("hyphen replace",e),e=e.replace(O[de],"$1$2$3"),N("comparator trim",e,O[de]),e=(e=(e=e.replace(O[re],"$1~")).replace(O[se],"$1^")).split(/\s+/).join(" ");var r=t?O[le]:O[_e],i=e.split(" ").map(function(e){return m(e,t)}).join(" ").split(/\s+/);return this.loose&&(i=i.filter(function(e){return!!e.match(r)})),i=i.map(function(e){return new p(e,t)})},f.prototype.intersects=function(e,t){if(!(e instanceof f))throw new TypeError("a Range is required");return this.set.some(function(n){return n.every(function(n){return e.set.some(function(e){return e.every(function(e){return n.intersects(e,t)})})})})},t.toComparators=function(e,t){return new f(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},f.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new r(e,this.loose));for(var t=0;t",n)},t.outside=E,t.prerelease=function(e,t){var r=n(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,n){return e=new f(e,n),t=new f(t,n),e.intersects(t)};}),name="typescript-eslint-parser",description="An Esprima-style parser for TypeScript",author="Nicholas C. Zakas ",homepage="https://github.com/eslint/typescript-eslint-parser",main="parser.js",version$1="8.0.0",files=["lib","parser.js"],engines={node:">=4"},repository="eslint/typescript-eslint-parser",bugs={url:"https://github.com/eslint/typescript-eslint-parser/issues"},license="BSD-2-Clause",devDependencies={"babel-code-frame":"^6.26.0",babylon:"7.0.0-beta.24",eslint:"4.6.1","eslint-config-eslint":"4.0.0","eslint-plugin-node":"5.1.1","eslint-release":"0.10.3",glob:"^7.1.2",jest:"21.0.1","lodash.isplainobject":"^4.0.6","npm-license":"0.3.3",shelljs:"0.7.8","shelljs-nodecli":"0.1.1",typescript:"~2.5.1"},keywords=["ast","ecmascript","javascript","typescript","parser","syntax","eslint"],scripts={test:"node Makefile.js test && npm run ast-alignment-tests",jest:"jest","ast-alignment-tests":"jest --config={} ./tests/ast-alignment/spec.js",lint:"node Makefile.js lint",release:"eslint-release","ci-release":"eslint-ci-release","gh-release":"eslint-gh-release",alpharelease:"eslint-prerelease alpha",betarelease:"eslint-prerelease beta"},dependencies={"lodash.unescape":"4.0.1",semver:"5.4.1"},peerDependencies={typescript:"*"},jest={testRegex:"tests/lib/.+\\.js$",testPathIgnorePatterns:[],collectCoverage:!0,coverageReporters:["text-summary"]},_package={name:name,description:description,author:author,homepage:homepage,main:main,version:version$1,files:files,engines:engines,repository:repository,bugs:bugs,license:license,devDependencies:devDependencies,keywords:keywords,scripts:scripts,dependencies:dependencies,peerDependencies:peerDependencies,jest:jest},_package$1=Object.freeze({name:name,description:description,author:author,homepage:homepage,main:main,version:version$1,files:files,engines:engines,repository:repository,bugs:bugs,license:license,devDependencies:devDependencies,keywords:keywords,scripts:scripts,dependencies:dependencies,peerDependencies:peerDependencies,jest:jest,default:_package}),require$$4$2=_package$1&&_package||_package$1;const astNodeTypes=astNodeTypes$1,ts=typescript,convert=astConverter,semver=semver$1,SUPPORTED_TYPESCRIPT_VERSIONS=require$$4$2.devDependencies.typescript,ACTIVE_TYPESCRIPT_VERSION=ts.version,isRunningSupportedTypeScriptVersion=semver.satisfies(ACTIVE_TYPESCRIPT_VERSION,SUPPORTED_TYPESCRIPT_VERSIONS);let extra,warnedAboutTSVersion=!1;var version$$1=require$$4$2.version,parse_1=parse$1;!function(){let e,t={};"function"==typeof Object.create&&(t=Object.create(null));for(e in astNodeTypes)astNodeTypes.hasOwnProperty(e)&&(t[e]=astNodeTypes[e]);"function"==typeof Object.freeze&&Object.freeze(t);}();var parser={version:version$$1,parse:parse_1};const createError=parserCreateError,includeShebang=parserIncludeShebang;var parserTypescript=parse;module.exports=parserTypescript; -}); - -var parserTypescript = unwrapExports(parserTypescript_1); - -return parserTypescript; - -}(fs,path,os,crypto,module$1)); diff --git a/website/static/lib/sw-toolbox.js b/website/static/lib/sw-toolbox.js deleted file mode 100644 index 08f8d926..00000000 --- a/website/static/lib/sw-toolbox.js +++ /dev/null @@ -1,16 +0,0 @@ -/* - Copyright 2016 Google Inc. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.toolbox=e()}}(function(){return function e(t,n,r){function o(c,s){if(!n[c]){if(!t[c]){var a="function"==typeof require&&require;if(!s&&a)return a(c,!0);if(i)return i(c,!0);var u=new Error("Cannot find module '"+c+"'");throw u.code="MODULE_NOT_FOUND",u}var f=n[c]={exports:{}};t[c][0].call(f.exports,function(e){var n=t[c][1][e];return o(n?n:e)},f,f.exports,e,t,n,r)}return n[c].exports}for(var i="function"==typeof require&&require,c=0;ct.value[l]){var r=t.value[p];c.push(r),a.delete(r),t.continue()}},s.oncomplete=function(){r(c)},s.onabort=o}):Promise.resolve([])}function s(e,t){return t?new Promise(function(n,r){var o=[],i=e.transaction(h,"readwrite"),c=i.objectStore(h),s=c.index(l),a=s.count();s.count().onsuccess=function(){var e=a.result;e>t&&(s.openCursor().onsuccess=function(n){var r=n.target.result;if(r){var i=r.value[p];o.push(i),c.delete(i),e-o.length>t&&r.continue()}})},i.oncomplete=function(){n(o)},i.onabort=r}):Promise.resolve([])}function a(e,t,n,r){return c(e,n,r).then(function(n){return s(e,t).then(function(e){return n.concat(e)})})}var u="sw-toolbox-",f=1,h="store",p="url",l="timestamp",d={};t.exports={getDb:o,setTimestampForUrl:i,expireEntries:a}},{}],3:[function(e,t,n){"use strict";function r(e){var t=a.match(e.request);t?e.respondWith(t(e.request)):a.default&&"GET"===e.request.method&&0===e.request.url.indexOf("http")&&e.respondWith(a.default(e.request))}function o(e){s.debug("activate event fired");var t=u.cache.name+"$$$inactive$$$";e.waitUntil(s.renameCache(t,u.cache.name))}function i(e){return e.reduce(function(e,t){return e.concat(t)},[])}function c(e){var t=u.cache.name+"$$$inactive$$$";s.debug("install event fired"),s.debug("creating cache ["+t+"]"),e.waitUntil(s.openCache({cache:{name:t}}).then(function(e){return Promise.all(u.preCacheItems).then(i).then(s.validatePrecacheInput).then(function(t){return s.debug("preCache list: "+(t.join(", ")||"(none)")),e.addAll(t)})}))}e("serviceworker-cache-polyfill");var s=e("./helpers"),a=e("./router"),u=e("./options");t.exports={fetchListener:r,activateListener:o,installListener:c}},{"./helpers":1,"./options":4,"./router":6,"serviceworker-cache-polyfill":16}],4:[function(e,t,n){"use strict";var r;r=self.registration?self.registration.scope:self.scope||new URL("./",self.location).href,t.exports={cache:{name:"$$$toolbox-cache$$$"+r+"$$$",maxAgeSeconds:null,maxEntries:null},debug:!1,networkTimeoutSeconds:null,preCacheItems:[],successResponses:/^0|([123]\d\d)|(40[14567])|410$/}},{}],5:[function(e,t,n){"use strict";var r=new URL("./",self.location),o=r.pathname,i=e("path-to-regexp"),c=function(e,t,n,r){t instanceof RegExp?this.fullUrlRegExp=t:(0!==t.indexOf("/")&&(t=o+t),this.keys=[],this.regexp=i(t,this.keys)),this.method=e,this.options=r,this.handler=n};c.prototype.makeHandler=function(e){var t;if(this.regexp){var n=this.regexp.exec(e);t={},this.keys.forEach(function(e,r){t[e.name]=n[r+1]})}return function(e){return this.handler(e,t,this.options)}.bind(this)},t.exports=c},{"path-to-regexp":15}],6:[function(e,t,n){"use strict";function r(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var o=e("./route"),i=e("./helpers"),c=function(e,t){for(var n=e.entries(),r=n.next(),o=[];!r.done;){var i=new RegExp(r.value[0]);i.test(t)&&o.push(r.value[1]),r=n.next()}return o},s=function(){this.routes=new Map,this.routes.set(RegExp,new Map),this.default=null};["get","post","put","delete","head","any"].forEach(function(e){s.prototype[e]=function(t,n,r){return this.add(e,t,n,r)}}),s.prototype.add=function(e,t,n,c){c=c||{};var s;t instanceof RegExp?s=RegExp:(s=c.origin||self.location.origin,s=s instanceof RegExp?s.source:r(s)),e=e.toLowerCase();var a=new o(e,t,n,c);this.routes.has(s)||this.routes.set(s,new Map);var u=this.routes.get(s);u.has(e)||u.set(e,new Map);var f=u.get(e),h=a.regexp||a.fullUrlRegExp;f.has(h.source)&&i.debug('"'+t+'" resolves to same regex as existing route.'),f.set(h.source,a)},s.prototype.matchMethod=function(e,t){var n=new URL(t),r=n.origin,o=n.pathname;return this._match(e,c(this.routes,r),o)||this._match(e,[this.routes.get(RegExp)],t)},s.prototype._match=function(e,t,n){if(0===t.length)return null;for(var r=0;r0)return s[0].makeHandler(n)}}return null},s.prototype.match=function(e){return this.matchMethod(e.method,e.url)||this.matchMethod("any",e.url)},t.exports=new s},{"./helpers":1,"./route":5}],7:[function(e,t,n){"use strict";function r(e,t,n){return n=n||{},i.debug("Strategy: cache first ["+e.url+"]",n),i.openCache(n).then(function(t){return t.match(e).then(function(t){var r=n.cache||o.cache,c=Date.now();return i.isResponseFresh(t,r.maxAgeSeconds,c)?t:i.fetchAndCache(e,n)})})}var o=e("../options"),i=e("../helpers");t.exports=r},{"../helpers":1,"../options":4}],8:[function(e,t,n){"use strict";function r(e,t,n){return n=n||{},i.debug("Strategy: cache only ["+e.url+"]",n),i.openCache(n).then(function(t){return t.match(e).then(function(e){var t=n.cache||o.cache,r=Date.now();if(i.isResponseFresh(e,t.maxAgeSeconds,r))return e})})}var o=e("../options"),i=e("../helpers");t.exports=r},{"../helpers":1,"../options":4}],9:[function(e,t,n){"use strict";function r(e,t,n){return o.debug("Strategy: fastest ["+e.url+"]",n),new Promise(function(r,c){var s=!1,a=[],u=function(e){a.push(e.toString()),s?c(new Error('Both cache and network failed: "'+a.join('", "')+'"')):s=!0},f=function(e){e instanceof Response?r(e):u("No result returned")};o.fetchAndCache(e.clone(),n).then(f,u),i(e,t,n).then(f,u)})}var o=e("../helpers"),i=e("./cacheOnly");t.exports=r},{"../helpers":1,"./cacheOnly":8}],10:[function(e,t,n){t.exports={networkOnly:e("./networkOnly"),networkFirst:e("./networkFirst"),cacheOnly:e("./cacheOnly"),cacheFirst:e("./cacheFirst"),fastest:e("./fastest")}},{"./cacheFirst":7,"./cacheOnly":8,"./fastest":9,"./networkFirst":11,"./networkOnly":12}],11:[function(e,t,n){"use strict";function r(e,t,n){n=n||{};var r=n.successResponses||o.successResponses,c=n.networkTimeoutSeconds||o.networkTimeoutSeconds;return i.debug("Strategy: network first ["+e.url+"]",n),i.openCache(n).then(function(t){var s,a,u=[];if(c){var f=new Promise(function(r){s=setTimeout(function(){t.match(e).then(function(e){var t=n.cache||o.cache,c=Date.now(),s=t.maxAgeSeconds;i.isResponseFresh(e,s,c)&&r(e)})},1e3*c)});u.push(f)}var h=i.fetchAndCache(e,n).then(function(e){if(s&&clearTimeout(s),r.test(e.status))return e;throw i.debug("Response was an HTTP error: "+e.statusText,n),a=e,new Error("Bad response")}).catch(function(r){return i.debug("Network or response error, fallback to cache ["+e.url+"]",n),t.match(e).then(function(e){if(e)return e;if(a)return a;throw r})});return u.push(h),Promise.race(u)})}var o=e("../options"),i=e("../helpers");t.exports=r},{"../helpers":1,"../options":4}],12:[function(e,t,n){"use strict";function r(e,t,n){return o.debug("Strategy: network only ["+e.url+"]",n),fetch(e)}var o=e("../helpers");t.exports=r},{"../helpers":1}],13:[function(e,t,n){"use strict";var r=e("./options"),o=e("./router"),i=e("./helpers"),c=e("./strategies"),s=e("./listeners");i.debug("Service Worker Toolbox is loading"),self.addEventListener("install",s.installListener),self.addEventListener("activate",s.activateListener),self.addEventListener("fetch",s.fetchListener),t.exports={networkOnly:c.networkOnly,networkFirst:c.networkFirst,cacheOnly:c.cacheOnly,cacheFirst:c.cacheFirst,fastest:c.fastest,router:o,options:r,cache:i.cache,uncache:i.uncache,precache:i.precache}},{"./helpers":1,"./listeners":3,"./options":4,"./router":6,"./strategies":10}],14:[function(e,t,n){t.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},{}],15:[function(e,t,n){function r(e,t){for(var n,r=[],o=0,i=0,c="",s=t&&t.delimiter||"/";null!=(n=x.exec(e));){var f=n[0],h=n[1],p=n.index;if(c+=e.slice(i,p),i=p+f.length,h)c+=h[1];else{var l=e[i],d=n[2],m=n[3],g=n[4],v=n[5],w=n[6],y=n[7];c&&(r.push(c),c="");var b=null!=d&&null!=l&&l!==d,E="+"===w||"*"===w,R="?"===w||"*"===w,k=n[2]||s,$=g||v;r.push({name:m||o++,prefix:d||"",delimiter:k,optional:R,repeat:E,partial:b,asterisk:!!y,pattern:$?u($):y?".*":"[^"+a(k)+"]+?"})}}return i=46||"Chrome"===n&&r>=50)||(Cache.prototype.addAll=function(e){function t(e){this.name="NetworkError",this.code=19,this.message=e}var n=this;return t.prototype=Object.create(Error.prototype),Promise.resolve().then(function(){if(arguments.length<1)throw new TypeError;return e=e.map(function(e){return e instanceof Request?e:String(e)}),Promise.all(e.map(function(e){"string"==typeof e&&(e=new Request(e));var n=new URL(e.url).protocol;if("http:"!==n&&"https:"!==n)throw new t("Invalid scheme");return fetch(e.clone())}))}).then(function(r){if(r.some(function(e){return!e.ok}))throw new t("Incorrect response status");return Promise.all(r.map(function(t,r){return n.put(e[r],t)}))}).then(function(){})},Cache.prototype.add=function(e){return this.addAll([e])})}()},{}]},{},[13])(13)}); -//# sourceMappingURL=sw-toolbox.js.map diff --git a/website/static/worker.js b/website/static/worker.js index da78364b..d3b7ce78 100644 --- a/website/static/worker.js +++ b/website/static/worker.js @@ -22,6 +22,9 @@ self.require = function require(path) { if (path === "stream") { return { PassThrough() {} }; } + if (path === "./third-party") { + return {}; + } return self[path.replace(/.+-/, "")]; }; From 172d34e43dd7893e876497cb398a438070280a99 Mon Sep 17 00:00:00 2001 From: Artem Sapegin Date: Tue, 28 Nov 2017 06:04:12 +0100 Subject: [PATCH 6/7] Do not prepend / append with a semicolon the only JSX element in a program (#3330) * Do not prepend / append with a semicolon the only JSX element in a program Fixes #3196 * Limit single JSX element without semicolon to Markdown only * Fix tests --- src/multiparser.js | 1 + src/printer.js | 30 ++++++++++++- .../__snapshots__/jsfmt.spec.js.snap | 43 +++++++++++++++++++ tests/markdown_jsx_semi/jsfmt.spec.js | 2 + tests/markdown_jsx_semi/semi.md | 8 ++++ 5 files changed, 82 insertions(+), 2 deletions(-) create mode 100644 tests/markdown_jsx_semi/__snapshots__/jsfmt.spec.js.snap create mode 100644 tests/markdown_jsx_semi/jsfmt.spec.js create mode 100644 tests/markdown_jsx_semi/semi.md diff --git a/src/multiparser.js b/src/multiparser.js index b0c007d9..46941c96 100644 --- a/src/multiparser.js +++ b/src/multiparser.js @@ -12,6 +12,7 @@ const concat = docBuilders.concat; function printSubtree(subtreeParser, path, print, options) { const next = Object.assign({}, { transformDoc: doc => doc }, subtreeParser); next.options = Object.assign({}, options, next.options, { + parentParser: options.parser, originalText: next.text }); if (next.options.parser === "json") { diff --git a/src/printer.js b/src/printer.js index 51a17ea8..4351710d 100644 --- a/src/printer.js +++ b/src/printer.js @@ -292,7 +292,11 @@ function genericPrintNoParens(path, options, print, args) { if (n.directive) { return concat([nodeStr(n.expression, options, true), semi]); } - return concat([path.call(print, "expression"), semi]); // Babel extension. + // Do not append semicolon after the only JSX element in a program + return concat([ + path.call(print, "expression"), + isTheOnlyJSXElementInMarkdown(options, path) ? "" : semi + ]); // Babel extension. case "ParenthesizedExpression": return concat(["(", path.call(print, "expression"), ")"]); case "AssignmentExpression": @@ -2864,7 +2868,13 @@ function printStatementSequence(path, options, print) { const parts = []; // in no-semi mode, prepend statement with semicolon if it might break ASI - if (!options.semi && !isClass && stmtNeedsASIProtection(stmtPath)) { + // don't prepend the only JSX element in a program with semicolon + if ( + !options.semi && + !isClass && + !isTheOnlyJSXElementInMarkdown(options, stmtPath) && + stmtNeedsASIProtection(stmtPath) + ) { if (stmt.comments && stmt.comments.some(comment => comment.leading)) { // Note: stmtNeedsASIProtection requires stmtPath to already be printed // as it reads needsParens which is mutated on the instance @@ -5047,4 +5057,20 @@ function printAstToDoc(ast, options, addAlignmentSize) { return doc; } +function isTheOnlyJSXElementInMarkdown(options, path) { + if (options.parentParser !== "markdown") { + return false; + } + + const node = path.getNode(); + + if (!node.expression || node.expression.type !== "JSXElement") { + return false; + } + + const parent = path.getParentNode(); + + return parent.type === "Program" && parent.body.length == 1; +} + module.exports = { printAstToDoc }; diff --git a/tests/markdown_jsx_semi/__snapshots__/jsfmt.spec.js.snap b/tests/markdown_jsx_semi/__snapshots__/jsfmt.spec.js.snap new file mode 100644 index 00000000..e5822a95 --- /dev/null +++ b/tests/markdown_jsx_semi/__snapshots__/jsfmt.spec.js.snap @@ -0,0 +1,43 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`semi.md 1`] = ` +\`\`\`jsx +
foo
+\`\`\` + +\`\`\`jsx +const a = 1; +
foo
; +\`\`\` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +\`\`\`jsx +
foo
+\`\`\` + +\`\`\`jsx +const a = 1; +
foo
; +\`\`\` + +`; + +exports[`semi.md 2`] = ` +\`\`\`jsx +
foo
+\`\`\` + +\`\`\`jsx +const a = 1; +
foo
; +\`\`\` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +\`\`\`jsx +
foo
+\`\`\` + +\`\`\`jsx +const a = 1 +;
foo
+\`\`\` + +`; diff --git a/tests/markdown_jsx_semi/jsfmt.spec.js b/tests/markdown_jsx_semi/jsfmt.spec.js new file mode 100644 index 00000000..4d995230 --- /dev/null +++ b/tests/markdown_jsx_semi/jsfmt.spec.js @@ -0,0 +1,2 @@ +run_spec(__dirname, { semi: true, parser: "markdown" }); +run_spec(__dirname, { semi: false, parser: "markdown" }); diff --git a/tests/markdown_jsx_semi/semi.md b/tests/markdown_jsx_semi/semi.md new file mode 100644 index 00000000..4f5b640a --- /dev/null +++ b/tests/markdown_jsx_semi/semi.md @@ -0,0 +1,8 @@ +```jsx +
foo
+``` + +```jsx +const a = 1; +
foo
; +``` From a02e3b3464246dc10add6e805769d3a6f84a8426 Mon Sep 17 00:00:00 2001 From: Jacky Ho Date: Tue, 28 Nov 2017 02:58:39 -0800 Subject: [PATCH 7/7] Fix format of comment in paren of call expression in arrow expression (#3334) --- src/comments.js | 4 +++- tests/empty_paren_comment/__snapshots__/jsfmt.spec.js.snap | 6 ++++++ tests/empty_paren_comment/empty_paren_comment.js | 3 +++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/comments.js b/src/comments.js index a3da1b02..bd1cbf83 100644 --- a/src/comments.js +++ b/src/comments.js @@ -683,7 +683,9 @@ function handleCommentInEmptyParens(text, enclosingNode, comment) { enclosingNode && (((enclosingNode.type === "FunctionDeclaration" || enclosingNode.type === "FunctionExpression" || - enclosingNode.type === "ArrowFunctionExpression" || + (enclosingNode.type === "ArrowFunctionExpression" && + (enclosingNode.body.type !== "CallExpression" || + enclosingNode.body.arguments.length === 0)) || enclosingNode.type === "ClassMethod" || enclosingNode.type === "ObjectMethod") && enclosingNode.params.length === 0) || diff --git a/tests/empty_paren_comment/__snapshots__/jsfmt.spec.js.snap b/tests/empty_paren_comment/__snapshots__/jsfmt.spec.js.snap index 9e81219d..f5ec778a 100644 --- a/tests/empty_paren_comment/__snapshots__/jsfmt.spec.js.snap +++ b/tests/empty_paren_comment/__snapshots__/jsfmt.spec.js.snap @@ -44,6 +44,9 @@ f(/* ... */); f(a, /* ... */); f(a, /* ... */ b); f(/* ... */ a, b); + +let f = () => import(a /* ... */); +let f = () => doThing(a, /* ... */ b); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ let f = (/* ... */) => {}; (function(/* ... */) {})(/* ... */); @@ -72,4 +75,7 @@ f(a /* ... */); f(a, /* ... */ b); f(/* ... */ a, b); +let f = () => import(a /* ... */); +let f = () => doThing(a, /* ... */ b); + `; diff --git a/tests/empty_paren_comment/empty_paren_comment.js b/tests/empty_paren_comment/empty_paren_comment.js index 72859b21..71576218 100644 --- a/tests/empty_paren_comment/empty_paren_comment.js +++ b/tests/empty_paren_comment/empty_paren_comment.js @@ -23,3 +23,6 @@ f(/* ... */); f(a, /* ... */); f(a, /* ... */ b); f(/* ... */ a, b); + +let f = () => import(a /* ... */); +let f = () => doThing(a, /* ... */ b);