From f49c9a1f687c81968f390ff6c3d1a47970919d55 Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Thu, 25 Oct 2018 16:15:47 +0530 Subject: [PATCH] add prettier inside worker on shift-tab --- gulpfile.js | 4 +++- src/components/UserCodeMirror.jsx | 4 ++-- src/lib/prettier-worker.js | 25 +++++++++++++++++++++++++ src/lib/prettier/parser-babylon.js | 1 + src/lib/prettier/parser-postcss.js | 1 + src/lib/prettier/standalone.js | 1 + src/utils.js | 24 +++++++----------------- 7 files changed, 40 insertions(+), 20 deletions(-) create mode 100644 src/lib/prettier-worker.js create mode 100644 src/lib/prettier/parser-babylon.js create mode 100644 src/lib/prettier/parser-postcss.js create mode 100644 src/lib/prettier/standalone.js diff --git a/gulpfile.js b/gulpfile.js index 65dc89c..16179f6 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -17,7 +17,7 @@ function minifyJs(fileName) { const content = fs.readFileSync(fileName, 'utf8'); const minifiedContent = babelMinify( content, - { mangle: content.length < 500000 }, + { mangle: content.length < 700000 }, { sourceMaps: false } ).code; fs.writeFileSync(fileName, minifiedContent); @@ -39,6 +39,8 @@ gulp.task('copyFiles', function() { .src('src/lib/codemirror/mode/**/*') .pipe(gulp.dest('app/lib/codemirror/mode')), gulp.src('src/lib/transpilers/*').pipe(gulp.dest('app/lib/transpilers')), + gulp.src('src/lib/prettier-worker.js').pipe(gulp.dest('app/lib/')), + gulp.src('src/lib/prettier/*').pipe(gulp.dest('app/lib/prettier')), gulp.src('src/lib/screenlog.js').pipe(gulp.dest('app/lib')), gulp.src('icons/*').pipe(gulp.dest('app/icons')), gulp.src('src/assets/*').pipe(gulp.dest('app/assets')), diff --git a/src/components/UserCodeMirror.jsx b/src/components/UserCodeMirror.jsx index 708c5a3..a9a1563 100644 --- a/src/components/UserCodeMirror.jsx +++ b/src/components/UserCodeMirror.jsx @@ -81,8 +81,8 @@ export default class UserCodeMirror extends Component { }, 'Shift-Tab': function(editor) { if (options.prettier) { - editor.setValue( - prettify(editor.getValue(), options.prettierParser) + prettify(editor.getValue(), options.prettierParser).then( + formattedCode => editor.setValue(formattedCode) ); } else { CodeMirror.commands.indentAuto(editor); diff --git a/src/lib/prettier-worker.js b/src/lib/prettier-worker.js new file mode 100644 index 0000000..b45751f --- /dev/null +++ b/src/lib/prettier-worker.js @@ -0,0 +1,25 @@ +importScripts('/lib/prettier/standalone.js'); + +function prettify({ content, type }) { + let plugins, parser; + if (type === 'js') { + parser = 'babylon'; + importScripts('/lib/prettier/parser-babylon.js'); + } else if (type === 'css') { + parser = 'css'; + importScripts('/lib/prettier/parser-postcss.js'); + } + + if (!parser) { + return content; + } + const formattedContent = prettier.format(content, { + parser, + plugins: self.prettierPlugins + }); + return formattedContent || content; +} + +onmessage = e => { + postMessage(prettify(e.data)); +}; diff --git a/src/lib/prettier/parser-babylon.js b/src/lib/prettier/parser-babylon.js new file mode 100644 index 0000000..9d73377 --- /dev/null +++ b/src/lib/prettier/parser-babylon.js @@ -0,0 +1 @@ +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.babylon=e())}(this,function(){"use strict";var t=function(t,e){var s=new SyntaxError(t+" ("+e.start.line+":"+e.start.column+")");return s.loc=e,s};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function s(t,e){return t(e={exports:{}},e.exports),e.exports}var i=s(function(t){t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");var e=t.match(/(?:\r?\n)/g)||[];if(0===e.length)return null;var s=e.filter(function(t){return"\r\n"===t}).length;return s>e.length-s?"\r\n":"\n"},t.exports.graceful=function(e){return t.exports(e)||"\n"}}),r={},a=Object.freeze({default:r,__moduleExports:r}),n=a&&r||a,o=s(function(t,e){var s,r;function a(){return s=(t=i)&&t.__esModule?t:{default:t};var t}function o(){return r=n}Object.defineProperty(e,"__esModule",{value:!0}),e.extract=function(t){var e=t.match(c);return e&&e[0].replace(u,"")||""},e.strip=function(t){var e=t.match(c);return e&&e[0]?t.substring(e[0].length):t},e.parse=function(t){return v(t).pragmas},e.parseWithComments=v,e.print=function(t){var e=t.comments,i=void 0===e?"":e,n=t.pragmas,h=void 0===n?{}:n,p=(0,(s||a()).default)(i)||(r||o()).EOL,c=Object.keys(h),l=c.map(function(t){return P(t,h[t])}).reduce(function(t,e){return t.concat(e)},[]).map(function(t){return" * "+t+p}).join("");if(!i){if(0===c.length)return"";if(1===c.length&&!Array.isArray(h[c[0]])){var u=h[c[0]];return"".concat("/**"," ").concat(P(c[0],u)[0]).concat(" */")}}var d=i.split(p).map(function(t){return"".concat(" *"," ").concat(t)}).join(p)+p;return"/**"+p+(i?d:"")+(i&&c.length?" *"+p:"")+l+" */"};var h=/\*\/$/,p=/^\/\*\*/,c=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,l=/(^|\s+)\/\/([^\r\n]*)/g,u=/^\s*/,d=/\s*$/,f=/^(\r?\n)+/,m=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,y=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,x=/(\r?\n|^) *\* ?/g;function v(t){var e=(0,(s||a()).default)(t)||(r||o()).EOL;t=t.replace(p,"").replace(h,"").replace(x,"$1");for(var i="";i!==t;)i=t,t=t.replace(m,"".concat(e,"$1 $2").concat(e));t=t.replace(f,"").replace(d,"");for(var n,c=Object.create(null),u=t.replace(y,"").replace(f,"").replace(d,"");n=y.exec(t);){var v=n[2].replace(l,"");"string"==typeof c[n[1]]||Array.isArray(c[n[1]])?c[n[1]]=[].concat(c[n[1]],v):c[n[1]]=v}return{comments:u,pragmas:c}}function P(t,e){return[].concat(e).map(function(e){return"@".concat(t," ").concat(e).trim()})}});e(o);var h=function(t){var e=Object.keys(o.parse(o.extract(t)));return-1!==e.indexOf("prettier")||-1!==e.indexOf("format")},p=function(t){return t.length>0?t[t.length-1]:null};var c={locStart:function t(e){return e.declaration&&e.declaration.decorators&&e.declaration.decorators.length>0?t(e.declaration.decorators[0]):e.decorators&&e.decorators.length>0?t(e.decorators[0]):e.__location?e.__location.startOffset:e.range?e.range[0]:"number"==typeof e.start?e.start:e.loc?e.loc.start:null},locEnd:function t(e){var s=e.nodes&&p(e.nodes);if(s&&e.source&&!e.source.end&&(e=s),e.__location)return e.__location.endOffset;var i=e.range?e.range[1]:"number"==typeof e.end?e.end:null;return e.typeAnnotation?Math.max(i,t(e.typeAnnotation)):e.loc&&!i?e.loc.end:i}},l=s(function(t,e){function s(t){var e,s;function i(e,s){try{var a=t[e](s),n=a.value,o=n instanceof function(t){this.wrapped=t};Promise.resolve(o?n.wrapped:n).then(function(t){o?i("next",t):r(a.done?"return":"normal",t)},function(t){i("throw",t)})}catch(t){r("throw",t)}}function r(t,r){switch(t){case"return":e.resolve({value:r,done:!0});break;case"throw":e.reject(r);break;default:e.resolve({value:r,done:!1})}(e=e.next)?i(e.key,e.arg):s=null}this._invoke=function(t,r){return new Promise(function(a,n){var o={key:t,arg:r,resolve:a,reject:n,next:null};s?s=s.next=o:(e=s=o,i(t,r))})},"function"!=typeof t.return&&(this.return=void 0)}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}Object.defineProperty(e,"__esModule",{value:!0}),"function"==typeof Symbol&&Symbol.asyncIterator&&(s.prototype[Symbol.asyncIterator]=function(){return this}),s.prototype.next=function(t){return this._invoke("next",t)},s.prototype.throw=function(t){return this._invoke("throw",t)},s.prototype.return=function(t){return this._invoke("return",t)};var r=!0,a=function(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},n=function(t){function e(e,s){return void 0===s&&(s={}),s.keyword=e,t.call(this,e,s)||this}return i(e,t),e}(a),o=function(t){function e(e,s){return t.call(this,e,{beforeExpr:r,binop:s})||this}return i(e,t),e}(a),h={num:new a("num",{startsExpr:!0}),bigint:new a("bigint",{startsExpr:!0}),regexp:new a("regexp",{startsExpr:!0}),string:new a("string",{startsExpr:!0}),name:new a("name",{startsExpr:!0}),eof:new a("eof"),bracketL:new a("[",{beforeExpr:r,startsExpr:!0}),bracketR:new a("]"),braceL:new a("{",{beforeExpr:r,startsExpr:!0}),braceBarL:new a("{|",{beforeExpr:r,startsExpr:!0}),braceR:new a("}"),braceBarR:new a("|}"),parenL:new a("(",{beforeExpr:r,startsExpr:!0}),parenR:new a(")"),comma:new a(",",{beforeExpr:r}),semi:new a(";",{beforeExpr:r}),colon:new a(":",{beforeExpr:r}),doubleColon:new a("::",{beforeExpr:r}),dot:new a("."),question:new a("?",{beforeExpr:r}),questionDot:new a("?."),arrow:new a("=>",{beforeExpr:r}),template:new a("template"),ellipsis:new a("...",{beforeExpr:r}),backQuote:new a("`",{startsExpr:!0}),dollarBraceL:new a("${",{beforeExpr:r,startsExpr:!0}),at:new a("@"),hash:new a("#"),interpreterDirective:new a("#!..."),eq:new a("=",{beforeExpr:r,isAssign:!0}),assign:new a("_=",{beforeExpr:r,isAssign:!0}),incDec:new a("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),bang:new a("!",{beforeExpr:r,prefix:!0,startsExpr:!0}),tilde:new a("~",{beforeExpr:r,prefix:!0,startsExpr:!0}),pipeline:new o("|>",0),nullishCoalescing:new o("??",1),logicalOR:new o("||",1),logicalAND:new o("&&",2),bitwiseOR:new o("|",3),bitwiseXOR:new o("^",4),bitwiseAND:new o("&",5),equality:new o("==/!=",6),relational:new o("",7),bitShift:new o("<>",8),plusMin:new a("+/-",{beforeExpr:r,binop:9,prefix:!0,startsExpr:!0}),modulo:new o("%",10),star:new o("*",10),slash:new o("/",10),exponent:new a("**",{beforeExpr:r,binop:11,rightAssociative:!0})},p={break:new n("break"),case:new n("case",{beforeExpr:r}),catch:new n("catch"),continue:new n("continue"),debugger:new n("debugger"),default:new n("default",{beforeExpr:r}),do:new n("do",{isLoop:!0,beforeExpr:r}),else:new n("else",{beforeExpr:r}),finally:new n("finally"),for:new n("for",{isLoop:!0}),function:new n("function",{startsExpr:!0}),if:new n("if"),return:new n("return",{beforeExpr:r}),switch:new n("switch"),throw:new n("throw",{beforeExpr:r,prefix:!0,startsExpr:!0}),try:new n("try"),var:new n("var"),let:new n("let"),const:new n("const"),while:new n("while",{isLoop:!0}),with:new n("with"),new:new n("new",{beforeExpr:r,startsExpr:!0}),this:new n("this",{startsExpr:!0}),super:new n("super",{startsExpr:!0}),class:new n("class"),extends:new n("extends",{beforeExpr:r}),export:new n("export"),import:new n("import",{startsExpr:!0}),yield:new n("yield",{beforeExpr:r,startsExpr:!0}),null:new n("null",{startsExpr:!0}),true:new n("true",{startsExpr:!0}),false:new n("false",{startsExpr:!0}),in:new n("in",{beforeExpr:r,binop:7}),instanceof:new n("instanceof",{beforeExpr:r,binop:7}),typeof:new n("typeof",{beforeExpr:r,prefix:!0,startsExpr:!0}),void:new n("void",{beforeExpr:r,prefix:!0,startsExpr:!0}),delete:new n("delete",{beforeExpr:r,prefix:!0,startsExpr:!0})};function c(t){return null!=t&&"Property"===t.type&&"init"===t.kind&&!1===t.method}Object.keys(p).forEach(function(t){h["_"+t]=p[t]});function l(t){var e=t.split(" ");return function(t){return e.indexOf(t)>=0}}var u={6:l("enum await"),strict:l("implements interface let package private protected public static yield"),strictBind:l("eval arguments")},d=l("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"),f="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄮㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿪ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞮꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",m="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣔ-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",y=new RegExp("["+f+"]"),x=new RegExp("["+f+m+"]");f=m=null;var v=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,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,257,0,11,39,8,0,22,0,12,39,3,3,55,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,698,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,1,31,6124,20,754,9486,286,82,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,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,15,7472,3104,541],P=[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,280,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,19719,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];function g(t,e){for(var s=65536,i=0;it)return!1;if((s+=e[i+1])>=t)return!0}return!1}function b(t){return t<65?36===t:t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&y.test(String.fromCharCode(t)):g(t,v)))}function T(t){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&x.test(String.fromCharCode(t)):g(t,v)||g(t,P))))}var w=["any","bool","boolean","empty","false","mixed","null","number","static","string","true","typeof","void"];function A(t){return"type"===t.importKind||"typeof"===t.importKind}function E(t){return(t.type===h.name||!!t.type.keyword)&&"from"!==t.value}var C={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};var N=/\*?\s*@((?:no)?flow)\b/,k={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},S=/\r\n?|\n|\u2028|\u2029/,I=new RegExp(S.source,"g");function L(t){return 10===t||13===t||8232===t||8233===t}var O=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,M=function(t,e,s,i){this.token=t,this.isExpr=!!e,this.preserveSpace=!!s,this.override=i},D={braceStatement:new M("{",!1),braceExpression:new M("{",!0),templateQuasi:new M("${",!0),parenStatement:new M("(",!1),parenExpression:new M("(",!0),template:new M("`",!0,!0,function(t){return t.readTmplToken()}),functionExpression:new M("function",!0)};h.parenR.updateContext=h.braceR.updateContext=function(){if(1!==this.state.context.length){var t=this.state.context.pop();t===D.braceStatement&&this.curContext()===D.functionExpression?(this.state.context.pop(),this.state.exprAllowed=!1):t===D.templateQuasi?this.state.exprAllowed=!0:this.state.exprAllowed=!t.isExpr}else this.state.exprAllowed=!0},h.name.updateContext=function(t){"of"!==this.state.value||this.curContext()!==D.parenStatement?(this.state.exprAllowed=!1,t!==h._let&&t!==h._const&&t!==h._var||S.test(this.input.slice(this.state.end))&&(this.state.exprAllowed=!0),this.state.isIterator&&(this.state.isIterator=!1)):this.state.exprAllowed=!t.beforeExpr},h.braceL.updateContext=function(t){this.state.context.push(this.braceIsBlock(t)?D.braceStatement:D.braceExpression),this.state.exprAllowed=!0},h.dollarBraceL.updateContext=function(){this.state.context.push(D.templateQuasi),this.state.exprAllowed=!0},h.parenL.updateContext=function(t){var e=t===h._if||t===h._for||t===h._with||t===h._while;this.state.context.push(e?D.parenStatement:D.parenExpression),this.state.exprAllowed=!0},h.incDec.updateContext=function(){},h._function.updateContext=function(t){this.state.exprAllowed&&!this.braceIsBlock(t)&&this.state.context.push(D.functionExpression),this.state.exprAllowed=!1},h.backQuote.updateContext=function(){this.curContext()===D.template?this.state.context.pop():this.state.context.push(D.template),this.state.exprAllowed=!1};var _=/^[\da-fA-F]+$/,R=/^\d+$/;function j(t){return!!t&&("JSXOpeningFragment"===t.type||"JSXClosingFragment"===t.type)}function F(t){if("JSXIdentifier"===t.type)return t.name;if("JSXNamespacedName"===t.type)return t.namespace.name+":"+t.name.name;if("JSXMemberExpression"===t.type)return F(t.object)+"."+F(t.property);throw new Error("Node had unexpected type: "+t.type)}D.j_oTag=new M("...",!0,!0),h.jsxName=new a("jsxName"),h.jsxText=new a("jsxText",{beforeExpr:!0}),h.jsxTagStart=new a("jsxTagStart",{startsExpr:!0}),h.jsxTagEnd=new a("jsxTagEnd"),h.jsxTagStart.updateContext=function(){this.state.context.push(D.j_expr),this.state.context.push(D.j_oTag),this.state.exprAllowed=!1},h.jsxTagEnd.updateContext=function(t){var e=this.state.context.pop();e===D.j_oTag&&t===h.slash||e===D.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===D.j_expr):this.state.exprAllowed=!0};var B={sourceType:"script",sourceFilename:void 0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1};var q=function(t,e){this.line=t,this.column=e},U=function(t,e){this.start=t,this.end=e};function V(t){return t[t.length-1]}var K=function(t){function e(){return t.apply(this,arguments)||this}return i(e,t),e.prototype.raise=function(t,e,s){var i=void 0===s?{}:s,r=i.missingPluginNames,a=i.code,n=function(t,e){for(var s=1,i=0;;){I.lastIndex=i;var r=I.exec(t);if(!(r&&r.index0)){var e,s,i,r,a,n=this.state.commentStack;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=t.end?(i=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else if(n.length>0){var o=V(n);o.trailingComments&&o.trailingComments[0].start>=t.end&&(i=o.trailingComments,delete o.trailingComments)}for(n.length>0&&V(n).start>=t.start&&(e=n.pop());n.length>0&&V(n).start>=t.start;)s=n.pop();if(!s&&e&&(s=e),e&&this.state.leadingComments.length>0){var h=V(this.state.leadingComments);if("ObjectProperty"===e.type){if(h.start>=t.start&&this.state.commentPreviousNode){for(a=0;a0&&(e.trailingComments=this.state.leadingComments,this.state.leadingComments=[])}}else if("CallExpression"===t.type&&t.arguments&&t.arguments.length){var p=V(t.arguments);p&&h.start>=p.start&&h.end<=t.end&&this.state.commentPreviousNode&&this.state.leadingComments.length>0&&(p.trailingComments=this.state.leadingComments,this.state.leadingComments=[])}}if(s){if(s.leadingComments)if(s!==t&&s.leadingComments.length>0&&V(s.leadingComments).end<=t.start)t.leadingComments=s.leadingComments,delete s.leadingComments;else for(r=s.leadingComments.length-2;r>=0;--r)if(s.leadingComments[r].end<=t.start){t.leadingComments=s.leadingComments.splice(0,r+1);break}}else if(this.state.leadingComments.length>0)if(V(this.state.leadingComments).end<=t.start){if(this.state.commentPreviousNode)for(a=0;a0&&(t.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(r=0;rt.start);r++);var c=this.state.leadingComments.slice(0,r);c.length&&(t.leadingComments=c),0===(i=this.state.leadingComments.slice(r)).length&&(i=null)}this.state.commentPreviousNode=t,i&&(i.length&&i[0].start>=t.start&&V(i).end<=t.end?t.innerComments=i:t.trailingComments=i),n.push(t)}},e}(function(){function t(){this.sawUnambiguousESM=!1}var e=t.prototype;return e.isReservedWord=function(t){return"await"===t?this.inModule:u[6](t)},e.hasPlugin=function(t){return Object.hasOwnProperty.call(this.plugins,t)},e.getPluginOption=function(t,e){if(this.hasPlugin(t))return this.plugins[t][e]},t}())),W=function(){function t(){}var e=t.prototype;return e.init=function(t,e){this.strict=!1!==t.strictMode&&"module"===t.sourceType,this.input=e,this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.inMethod=!1,this.inFunction=!1,this.inParameters=!1,this.maybeInArrowParameters=!1,this.inGenerator=!1,this.inAsync=!1,this.inPropertyName=!1,this.inType=!1,this.inClassProperty=!1,this.noAnonFunctionType=!1,this.hasFlowComment=!1,this.isIterator=!1,this.classLevel=0,this.labels=[],this.decoratorStack=[[]],this.yieldInPossibleArrowParameters=null,this.tokens=[],this.comments=[],this.trailingComments=[],this.leadingComments=[],this.commentStack=[],this.commentPreviousNode=null,this.pos=this.lineStart=0,this.curLine=t.startLine,this.type=h.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=[D.braceStatement],this.exprAllowed=!0,this.containsEsc=this.containsOctal=!1,this.octalPosition=null,this.invalidTemplateEscapePosition=null,this.exportedIdentifiers=[]},e.curPosition=function(){return new q(this.curLine,this.pos-this.lineStart)},e.clone=function(e){var s=this,i=new t;return Object.keys(this).forEach(function(t){var r=s[t];e&&"context"!==t||!Array.isArray(r)||(r=r.slice()),i[t]=r}),i},t}(),G=function(t){return t>=48&&t<=57},X={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},J={bin:[48,49]};J.oct=J.bin.concat([50,51,52,53,54,55]),J.dec=J.oct.concat([56,57]),J.hex=J.dec.concat([65,66,67,68,69,70,97,98,99,100,101,102]);function H(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}var z=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var s=e.prototype;return s.addExtra=function(t,e,s){t&&((t.extra=t.extra||{})[e]=s)},s.isRelational=function(t){return this.match(h.relational)&&this.state.value===t},s.isLookaheadRelational=function(t){var e=this.lookahead();return e.type==h.relational&&e.value==t},s.expectRelational=function(t){this.isRelational(t)?this.next():this.unexpected(null,h.relational)},s.eatRelational=function(t){return!!this.isRelational(t)&&(this.next(),!0)},s.isContextual=function(t){return this.match(h.name)&&this.state.value===t&&!this.state.containsEsc},s.isLookaheadContextual=function(t){var e=this.lookahead();return e.type===h.name&&e.value===t},s.eatContextual=function(t){return this.isContextual(t)&&this.eat(h.name)},s.expectContextual=function(t,e){this.eatContextual(t)||this.unexpected(null,e)},s.canInsertSemicolon=function(){return this.match(h.eof)||this.match(h.braceR)||this.hasPrecedingLineBreak()},s.hasPrecedingLineBreak=function(){return S.test(this.input.slice(this.state.lastTokEnd,this.state.start))},s.isLineTerminator=function(){return this.eat(h.semi)||this.canInsertSemicolon()},s.semicolon=function(){this.isLineTerminator()||this.unexpected(null,h.semi)},s.expect=function(t,e){this.eat(t)||this.unexpected(e,t)},s.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)},s.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+"'",{missingPluginNames:[t]});return!0},s.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(", ")+"'",{missingPluginNames:t})},e}(function(t){function e(e,s){var i;return(i=t.call(this)||this).state=new W,i.state.init(e,s),i.isLookahead=!1,i}i(e,t);var s=e.prototype;return s.next=function(){this.options.tokens&&!this.isLookahead&&this.state.tokens.push(new function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new U(t.startLoc,t.endLoc)}(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()},s.eat=function(t){return!!this.match(t)&&(this.next(),!0)},s.match=function(t){return this.state.type===t},s.isKeyword=function(t){return d(t)},s.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},s.setStrict=function(t){if(this.state.strict=t,this.match(h.num)||this.match(h.string)){for(this.state.pos=this.state.start;this.state.pos=this.input.length?this.finishToken(h.eof):t.override?t.override(this):this.readToken(this.fullCharCodeAtPos())},s.readToken=function(t){b(t)||92===t?this.readWord():this.getTokenFromCode(t)},s.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},s.pushComment=function(t,e,s,i,r,a){var n={type:t?"CommentBlock":"CommentLine",value:e,start:s,end:i,loc:new U(r,a)};this.isLookahead||(this.options.tokens&&this.state.tokens.push(n),this.state.comments.push(n),this.addComment(n))},s.skipBlockComment=function(){var t,e=this.state.curPosition(),s=this.state.pos,i=this.input.indexOf("*/",this.state.pos+=2);for(-1===i&&this.raise(this.state.pos-2,"Unterminated comment"),this.state.pos=i+2,I.lastIndex=s;(t=I.exec(this.input))&&t.index8&&t<14||t>=5760&&O.test(String.fromCharCode(t))))break t;++this.state.pos}}},s.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)},s.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(h.ellipsis)):(++this.state.pos,this.finishToken(h.dot))}},s.readToken_slash=function(){if(this.state.exprAllowed)return++this.state.pos,void this.readRegexp();61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(h.assign,2):this.finishOp(h.slash,1)},s.readToken_interpreter=function(){if(0!==this.state.pos||this.state.input.length<2)return!1;var t=this.state.pos;this.state.pos+=1;var e=this.input.charCodeAt(this.state.pos);if(33!==e)return!1;for(;10!==e&&13!==e&&8232!==e&&8233!==e&&++this.state.pos=48&&e<=57?(++this.state.pos,this.finishToken(h.question)):(this.state.pos+=2,this.finishToken(h.questionDot))},s.getTokenFromCode=function(t){switch(t){case 35:if(0===this.state.pos&&this.readToken_interpreter())return;if((this.hasPlugin("classPrivateProperties")||this.hasPlugin("classPrivateMethods"))&&this.state.classLevel>0)return++this.state.pos,void this.finishToken(h.hash);this.raise(this.state.pos,"Unexpected character '"+H(t)+"'");case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(h.parenL);case 41:return++this.state.pos,void this.finishToken(h.parenR);case 59:return++this.state.pos,void this.finishToken(h.semi);case 44:return++this.state.pos,void this.finishToken(h.comma);case 91:return++this.state.pos,void this.finishToken(h.bracketL);case 93:return++this.state.pos,void this.finishToken(h.bracketR);case 123:return void(this.hasPlugin("flow")&&124===this.input.charCodeAt(this.state.pos+1)?this.finishOp(h.braceBarL,2):(++this.state.pos,this.finishToken(h.braceL)));case 125:return++this.state.pos,void this.finishToken(h.braceR);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(h.doubleColon,2):(++this.state.pos,this.finishToken(h.colon)));case 63:return void this.readToken_question();case 64:return++this.state.pos,void this.finishToken(h.at);case 96:return++this.state.pos,void this.finishToken(h.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(h.tilde,1)}this.raise(this.state.pos,"Unexpected character '"+H(t)+"'")},s.finishOp=function(t,e){var s=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,s)},s.readRegexp=function(){for(var t,e,s=this.state.pos;;){this.state.pos>=this.input.length&&this.raise(s,"Unterminated regular expression");var i=this.input.charAt(this.state.pos);if(S.test(i)&&this.raise(s,"Unterminated regular expression"),t)t=!1;else{if("["===i)e=!0;else if("]"===i&&e)e=!1;else if("/"===i&&!e)break;t="\\"===i}++this.state.pos}var r=this.input.slice(s,this.state.pos);++this.state.pos;for(var a="";this.state.pos-1)a.indexOf(n)>-1&&this.raise(this.state.pos+1,"Duplicate regular expression flag"),++this.state.pos,a+=n;else{if(!T(o)&&92!==o)break;this.raise(this.state.pos+1,"Invalid regular expression flag")}}this.finishToken(h.regexp,{pattern:r,flags:a})},s.readInt=function(t,e){for(var s=this.state.pos,i=16===t?X.hex:X.decBinOct,r=16===t?J.hex:10===t?J.dec:8===t?J.oct:J.bin,a=0,n=0,o=null==e?1/0:e;n-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:G(h)?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},s.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),b(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(h.bigint,r)}else this.finishToken(h.num,i)},s.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 a=this.input.charCodeAt(this.state.pos);46!==a||s||(++this.state.pos,this.readInt(10),i=!0,a=this.input.charCodeAt(this.state.pos)),69!==a&&101!==a||s||(43!==(a=this.input.charCodeAt(++this.state.pos))&&45!==a||++this.state.pos,null===this.readInt(10)&&this.raise(e,"Invalid number"),i=!0,a=this.input.charCodeAt(this.state.pos)),this.hasPlugin("bigInt")&&110===a&&((i||s)&&this.raise(e,"Invalid BigIntLiteral"),++this.state.pos,r=!0),b(this.fullCharCodeAtPos())&&this.raise(this.state.pos,"Identifier directly after number");var n,o=this.input.slice(e,this.state.pos).replace(/[_n]/g,"");r?this.finishToken(h.bigint,o):(i?n=parseFloat(o):s&&1!==o.length?this.state.strict?this.raise(e,"Invalid number"):n=/[89]/.test(o)?parseInt(o,10):parseInt(o,8):n=parseInt(o,10),this.finishToken(h.num,n))},s.readCodePoint=function(t){var e;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},s.readString=function(t){for(var e="",s=++this.state.pos,i=this.hasPlugin("jsonStrings");;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated string constant");var r=this.input.charCodeAt(this.state.pos);if(r===t)break;92===r?(e+=this.input.slice(s,this.state.pos),e+=this.readEscapedChar(!1),s=this.state.pos):(!i||8232!==r&&8233!==r)&&L(r)?this.raise(this.state.start,"Unterminated string constant"):++this.state.pos}e+=this.input.slice(s,this.state.pos++),this.finishToken(h.string,e)},s.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(h.template)?36===i?(this.state.pos+=2,void this.finishToken(h.dollarBraceL)):(++this.state.pos,void this.finishToken(h.backQuote)):(t+=this.input.slice(e,this.state.pos),void this.finishToken(h.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(L(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}},s.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:H(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)}},s.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},s.readWord1=function(){this.state.containsEsc=!1;for(var t="",e=!0,s=this.state.pos;this.state.pos=0;n--){var o=this.state.labels[n];if(o.statementStart!==t.start)break;o.statementStart=this.state.start,o.kind=a}return this.state.labels.push({name:e,kind:a,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")},s.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},s.parseBlock=function(t){var e=this.startNode();return this.expect(h.braceL),this.parseBlockBody(e,t,!1,h.braceR),this.finishNode(e,"BlockStatement")},s.isValidDirective=function(t){return"ExpressionStatement"===t.type&&"StringLiteral"===t.expression.type&&!t.expression.extra.parenthesized},s.parseBlockBody=function(t,e,s,i){var r=t.body=[],a=t.directives=[];this.parseBlockOrModuleBlockBody(r,e?a:void 0,s,i)},s.parseBlockOrModuleBlockBody=function(t,e,s,i){for(var r,a,n=!1;!this.eat(i);){n||!this.state.containsOctal||a||(a=this.state.octalPosition);var o=this.parseStatement(!0,s);if(e&&!n&&this.isValidDirective(o)){var h=this.stmtToDirective(o);e.push(h),void 0===r&&"use strict"===h.value.value&&(r=this.state.strict,this.setStrict(!0),a&&this.raise(a,"Octal literal in strict mode"))}else n=!0,t.push(o)}!1===r&&this.setStrict(!1)},s.parseFor=function(t,e){return t.init=e,this.expect(h.semi),t.test=this.match(h.semi)?null:this.parseExpression(),this.expect(h.semi),t.update=this.match(h.parenR)?null:this.parseExpression(),this.expect(h.parenR),t.body=this.parseStatement(!1),this.state.labels.pop(),this.finishNode(t,"ForStatement")},s.parseForIn=function(t,e,s){var i=this.match(h._in)?"ForInStatement":"ForOfStatement";return s?this.eatContextual("of"):this.next(),"ForOfStatement"===i&&(t.await=!!s),t.left=e,t.right=this.parseExpression(),this.expect(h.parenR),t.body=this.parseStatement(!1),this.state.labels.pop(),this.finishNode(t,i)},s.parseVar=function(t,e,s){var i=t.declarations=[];for(t.kind=s.keyword;;){var r=this.startNode();if(this.parseVarHead(r),this.eat(h.eq)?r.init=this.parseMaybeAssign(e):(s!==h._const||this.match(h._in)||this.isContextual("of")?"Identifier"===r.id.type||e&&(this.match(h._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(h.comma))break}return t},s.parseVarHead=function(t){t.id=this.parseBindingAtom(),this.checkLVal(t.id,!0,void 0,"variable declaration")},s.parseFunction=function(t,e,s,i,r){var a=this.state.inFunction,n=this.state.inMethod,o=this.state.inGenerator,p=this.state.inClassProperty;return this.state.inFunction=!0,this.state.inMethod=!1,this.state.inClassProperty=!1,this.initFunction(t,i),this.match(h.star)&&(t.async&&this.expectPlugin("asyncGenerators"),t.generator=!0,this.next()),!e||r||this.match(h.name)||this.match(h._yield)||this.unexpected(),e||(this.state.inGenerator=t.generator),(this.match(h.name)||this.match(h._yield))&&(t.id=this.parseBindingIdentifier()),e&&(this.state.inGenerator=t.generator),this.parseFunctionParams(t),this.parseFunctionBodyAndFinish(t,e?"FunctionDeclaration":"FunctionExpression",s),this.state.inFunction=a,this.state.inMethod=n,this.state.inGenerator=o,this.state.inClassProperty=p,t},s.parseFunctionParams=function(t,e){var s=this.state.inParameters;this.state.inParameters=!0,this.expect(h.parenL),t.params=this.parseBindingList(h.parenR,!1,e),this.state.inParameters=s},s.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")},s.isClassProperty=function(){return this.match(h.eq)||this.match(h.semi)||this.match(h.braceR)},s.isClassMethod=function(){return this.match(h.parenL)},s.isNonstaticConstructor=function(t){return!(t.computed||t.static||"constructor"!==t.key.name&&"constructor"!==t.key.value)},s.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(h.braceL);!this.eat(h.braceR);)if(this.eat(h.semi))i.length>0&&this.raise(this.state.lastTokEnd,"Decorators must not be followed by a semicolon");else if(this.match(h.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),"constructor"===a.kind&&a.decorators&&a.decorators.length>0&&this.raise(a.start,"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")}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},s.parseClassMember=function(t,e,s){var i=!1,r=this.state.containsEsc;if(this.match(h.name)&&"static"===this.state.value){var a=this.parseIdentifier(!0);if(this.isClassMethod()){var n=e;return n.kind="method",n.computed=!1,n.key=a,n.static=!1,void this.pushClassMethod(t,n,!1,!1,!1)}if(this.isClassProperty()){var o=e;return o.computed=!1,o.key=a,o.static=!1,void t.body.push(this.parseClassProperty(o))}if(r)throw this.unexpected();i=!0}this.parseClassMemberWithIsStatic(t,e,s,i)},s.parseClassMemberWithIsStatic=function(t,e,s,i){var r=e,a=e,n=e,o=e,p=r,c=r;if(e.static=i,this.eat(h.star))return p.kind="method",this.parseClassPropertyName(p),"PrivateName"===p.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 l=this.parseClassPropertyName(e),u="PrivateName"===l.type,d="Identifier"===l.type;if(this.parsePostMemberNameModifiers(c),this.isClassMethod()){if(p.kind="method",u)return void this.pushClassPrivateMethod(t,a,!1,!1);var f=this.isNonstaticConstructor(r);f&&(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(l.start,"Duplicate constructor in the same class"),s.hadConstructor=!0),this.pushClassMethod(t,r,!1,!1,f)}else if(this.isClassProperty())u?this.pushClassPrivateProperty(t,o):this.pushClassProperty(t,n);else if(d&&"async"===l.name&&!this.isLineTerminator()){var m=this.match(h.star);m&&(this.expectPlugin("asyncGenerators"),this.next()),p.kind="method",this.parseClassPropertyName(p),"PrivateName"===p.key.type?this.pushClassPrivateMethod(t,a,m,!0):(this.isNonstaticConstructor(r)&&this.raise(r.key.start,"Constructor can't be an async function"),this.pushClassMethod(t,r,m,!0,!1))}else!d||"get"!==l.name&&"set"!==l.name||this.isLineTerminator()&&this.match(h.star)?this.isLineTerminator()?u?this.pushClassPrivateProperty(t,o):this.pushClassProperty(t,n):this.unexpected():(p.kind=l.name,this.parseClassPropertyName(r),"PrivateName"===p.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.checkGetterSetterParams(r))},s.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},s.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))},s.pushClassPrivateProperty=function(t,e){this.expectPlugin("classPrivateProperties",e.key.start),t.body.push(this.parseClassPrivateProperty(e))},s.pushClassMethod=function(t,e,s,i,r){t.body.push(this.parseMethod(e,s,i,r,"ClassMethod"))},s.pushClassPrivateMethod=function(t,e,s,i){this.expectPlugin("classPrivateMethods",e.key.start),t.body.push(this.parseMethod(e,s,i,!1,"ClassPrivateMethod"))},s.parsePostMemberNameModifiers=function(t){},s.parseAccessModifier=function(){},s.parseClassPrivateProperty=function(t){var e=this.state.inMethod;return this.state.inMethod=!1,this.state.inClassProperty=!0,t.value=this.eat(h.eq)?this.parseMaybeAssign():null,this.semicolon(),this.state.inClassProperty=!1,this.state.inMethod=e,this.finishNode(t,"ClassPrivateProperty")},s.parseClassProperty=function(t){t.typeAnnotation||this.expectPlugin("classProperties");var e=this.state.inMethod;return this.state.inMethod=!1,this.state.inClassProperty=!0,this.match(h.eq)?(this.expectPlugin("classProperties"),this.next(),t.value=this.parseMaybeAssign()):t.value=null,this.semicolon(),this.state.inClassProperty=!1,this.state.inMethod=e,this.finishNode(t,"ClassProperty")},s.parseClassId=function(t,e,s){this.match(h.name)?t.id=this.parseIdentifier():s||!e?t.id=null:this.unexpected(null,"A class name is required")},s.parseClassSuper=function(t){t.superClass=this.eat(h._extends)?this.parseExprSubscripts():null},s.parseExport=function(t){if(this.shouldParseExportStar()){if(this.parseExportStar(t),"ExportAllDeclaration"===t.type)return t}else if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");var e=this.startNode();e.exported=this.parseIdentifier(!0);var s=[this.finishNode(e,"ExportDefaultSpecifier")];if(t.specifiers=s,this.match(h.comma)&&this.lookahead().type===h.star){this.expect(h.comma);var i=this.startNode();this.expect(h.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(h._default))return t.declaration=this.parseExportDefaultExpression(),this.checkExport(t,!0,!0),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportDeclaration()){if(this.isContextual("async")){var r=this.lookahead();r.type!==h._function&&this.unexpected(r.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")},s.parseExportDefaultExpression=function(){var t=this.startNode();if(this.eat(h._function))return this.parseFunction(t,!0,!1,!1,!0);if(this.isContextual("async")&&this.lookahead().type===h._function)return this.eatContextual("async"),this.eat(h._function),this.parseFunction(t,!0,!1,!0,!0);if(this.match(h._class))return this.parseClass(t,!0,!0);if(this.match(h.at))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.unexpected(this.state.start,"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax"),this.parseDecorators(!1),this.parseClass(t,!0,!0);if(this.match(h._let)||this.match(h._const)||this.match(h._var))return this.raise(this.state.start,"Only expressions, functions or classes are allowed as the `default` export.");var e=this.parseMaybeAssign();return this.semicolon(),e},s.parseExportDeclaration=function(t){return this.parseStatement(!0)},s.isExportDefaultSpecifier=function(){if(this.match(h.name))return"async"!==this.state.value;if(!this.match(h._default))return!1;var t=this.lookahead();return t.type===h.comma||t.type===h.name&&"from"===t.value},s.parseExportSpecifiersMaybe=function(t){this.eat(h.comma)&&(t.specifiers=t.specifiers.concat(this.parseExportSpecifiers()))},s.parseExportFrom=function(t,e){this.eatContextual("from")?(t.source=this.match(h.string)?this.parseExprAtom():this.unexpected(),this.checkExport(t)):e?this.unexpected():t.source=null,this.semicolon()},s.shouldParseExportStar=function(){return this.match(h.star)},s.parseExportStar=function(t){this.expect(h.star),this.isContextual("as")?this.parseExportNamespace(t):(this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration"))},s.parseExportNamespace=function(t){this.expectPlugin("exportNamespaceFrom");var e=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);this.next(),e.exported=this.parseIdentifier(!0),t.specifiers=[this.finishNode(e,"ExportNamespaceSpecifier")],this.parseExportSpecifiersMaybe(t),this.parseExportFrom(t,!0)},s.shouldParseExportDeclaration=function(){if(this.match(h.at)&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(!this.getPluginOption("decorators","decoratorsBeforeExport"))return!0;this.unexpected(this.state.start,"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax")}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")},s.checkExport=function(t,e,s){if(e)if(s)this.checkDuplicateExports(t,"default");else if(t.specifiers&&t.specifiers.length)for(var i=0,r=t.specifiers;i-1&&this.raiseDuplicateExportError(t,e),this.state.exportedIdentifiers.push(e)},s.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.")},s.parseExportSpecifiers=function(){var t,e=[],s=!0;for(this.expect(h.braceL);!this.eat(h.braceR);){if(s)s=!1;else if(this.expect(h.comma),this.eat(h.braceR))break;var i=this.match(h._default);i&&!t&&(t=!0);var r=this.startNode();r.local=this.parseIdentifier(i),r.exported=this.eatContextual("as")?this.parseIdentifier(!0):r.local.__clone(),e.push(this.finishNode(r,"ExportSpecifier"))}return t&&!this.isContextual("from")&&this.unexpected(),e},s.parseImport=function(t){return this.match(h.string)?(t.specifiers=[],t.source=this.parseExprAtom()):(t.specifiers=[],this.parseImportSpecifiers(t),this.expectContextual("from"),t.source=this.match(h.string)?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},s.shouldParseDefaultImport=function(t){return this.match(h.name)},s.parseImportSpecifierLocal=function(t,e,s,i){e.local=this.parseIdentifier(),this.checkLVal(e.local,!0,void 0,i),t.specifiers.push(this.finishNode(e,s))},s.parseImportSpecifiers=function(t){var e=!0;if(!this.shouldParseDefaultImport(t)||(this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier","default import specifier"),this.eat(h.comma))){if(this.match(h.star)){var s=this.startNode();return this.next(),this.expectContextual("as"),void this.parseImportSpecifierLocal(t,s,"ImportNamespaceSpecifier","import namespace specifier")}for(this.expect(h.braceL);!this.eat(h.braceR);){if(e)e=!1;else if(this.eat(h.colon)&&this.unexpected(null,"ES2015 named imports do not destructure. Use another statement for destructuring after the import."),this.expect(h.comma),this.eat(h.braceR))break;this.parseImportSpecifier(t)}}},s.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}(function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var s=e.prototype;return s.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)}},s.getExpression=function(){this.nextToken();var t=this.parseExpression();return this.match(h.eof)||this.unexpected(),t.comments=this.state.comments,t},s.parseExpression=function(t,e){var s=this.state.start,i=this.state.startLoc,r=this.parseMaybeAssign(t,e);if(this.match(h.comma)){var a=this.startNodeAt(s,i);for(a.expressions=[r];this.eat(h.comma);)a.expressions.push(this.parseMaybeAssign(t,e));return this.toReferencedList(a.expressions),this.finishNode(a,"SequenceExpression")}return r},s.parseMaybeAssign=function(t,e,s,i){var r,a=this.state.start,n=this.state.startLoc;if(this.match(h._yield)&&this.state.inGenerator){var o=this.parseYield();return s&&(o=s.call(this,o,a,n)),o}e?r=!1:(e={start:0},r=!0),(this.match(h.parenL)||this.match(h.name)||this.match(h._yield))&&(this.state.potentialArrowAt=this.state.start);var p=this.parseMaybeConditional(t,e,i);if(s&&(p=s.call(this,p,a,n)),this.state.type.isAssign){var c,l=this.startNodeAt(a,n),u=this.state.value;if(l.operator=u,"??="===u&&(this.expectPlugin("nullishCoalescingOperator"),this.expectPlugin("logicalAssignment")),"||="!==u&&"&&="!==u||this.expectPlugin("logicalAssignment"),l.left=this.match(h.eq)?this.toAssignable(p,void 0,"assignment expression"):p,e.start=0,this.checkLVal(p,void 0,void 0,"assignment expression"),p.extra&&p.extra.parenthesized)"ObjectPattern"===p.type?c="`({a}) = 0` use `({a} = 0)`":"ArrayPattern"===p.type&&(c="`([a]) = 0` use `([a] = 0)`"),c&&this.raise(p.start,"You're trying to assign to a parenthesized expression, eg. instead of "+c);return this.next(),l.right=this.parseMaybeAssign(t),this.finishNode(l,"AssignmentExpression")}return r&&e.start&&this.unexpected(e.start),p},s.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)},s.parseConditional=function(t,e,s,i,r){if(this.eat(h.question)){var a=this.startNodeAt(s,i);return a.test=t,a.consequent=this.parseMaybeAssign(),this.expect(h.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return t},s.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)},s.parseExprOp=function(t,e,s,i,r){var a=this.state.type.binop;if(!(null==a||r&&this.match(h._in))&&a>i){var n=this.startNodeAt(e,s),o=this.state.value;n.left=t,n.operator=o,"**"!==o||"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 p=this.state.type;p===h.nullishCoalescing?this.expectPlugin("nullishCoalescingOperator"):p===h.pipeline&&this.expectPlugin("pipelineOperator"),this.next();var c=this.state.start,l=this.state.startLoc;if(p===h.pipeline&&this.match(h.name)&&"await"===this.state.value&&this.state.inAsync)throw this.raise(this.state.start,'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal');return n.right=this.parseExprOp(this.parseMaybeUnary(),c,l,p.rightAssociative?a-1:a,r),this.finishNode(n,p===h.logicalOR||p===h.logicalAND||p===h.nullishCoalescing?"LogicalExpression":"BinaryExpression"),this.parseExprOp(n,e,s,i,r)}return t},s.parseMaybeUnary=function(t){if(this.state.type.prefix){var e=this.startNode(),s=this.match(h.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!==h.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 p=this.startNodeAt(a,n);p.operator=this.state.value,p.prefix=!1,p.argument=o,this.checkLVal(o,void 0,void 0,"postfix operation"),this.next(),o=this.finishNode(p,"UpdateExpression")}return o},s.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)},s.parseSubscripts=function(t,e,s,i){var r={optionalChainMember:!1,stop:!1};do{t=this.parseSubscript(t,e,s,i,r)}while(!r.stop);return t},s.parseSubscript=function(t,e,s,i,r){if(!i&&this.eat(h.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(h.questionDot)){if(this.expectPlugin("optionalChaining"),r.optionalChainMember=!0,i&&this.lookahead().type==h.parenL)return r.stop=!0,t;this.next();var n=this.startNodeAt(e,s);if(this.eat(h.bracketL))return n.object=t,n.property=this.parseExpression(),n.computed=!0,n.optional=!0,this.expect(h.bracketR),this.finishNode(n,"OptionalMemberExpression");if(this.eat(h.parenL)){var o=this.atPossibleAsync(t);return n.callee=t,n.arguments=this.parseCallExpressionArguments(h.parenR,o),n.optional=!0,this.finishNode(n,"OptionalCallExpression")}return n.object=t,n.property=this.parseIdentifier(!0),n.computed=!1,n.optional=!0,this.finishNode(n,"OptionalMemberExpression")}if(this.eat(h.dot)){var p=this.startNodeAt(e,s);return p.object=t,p.property=this.parseMaybePrivateName(),p.computed=!1,r.optionalChainMember?(p.optional=!1,this.finishNode(p,"OptionalMemberExpression")):this.finishNode(p,"MemberExpression")}if(this.eat(h.bracketL)){var c=this.startNodeAt(e,s);return c.object=t,c.property=this.parseExpression(),c.computed=!0,this.expect(h.bracketR),r.optionalChainMember?(c.optional=!1,this.finishNode(c,"OptionalMemberExpression")):this.finishNode(c,"MemberExpression")}if(!i&&this.match(h.parenL)){var l=this.atPossibleAsync(t);this.next();var u=this.startNodeAt(e,s);u.callee=t;var d={start:-1};return u.arguments=this.parseCallExpressionArguments(h.parenR,l,d),r.optionalChainMember?this.finishOptionalCallExpression(u):this.finishCallExpression(u),l&&this.shouldParseAsyncArrow()?(r.stop=!0,d.start>-1&&this.raise(d.start,"A trailing comma is not permitted after the rest element"),this.parseAsyncArrowFromCallExpression(this.startNodeAt(e,s),u)):(this.toReferencedList(u.arguments),u)}if(this.match(h.backQuote)){var f=this.startNodeAt(e,s);return f.tag=t,f.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(e,"Tagged Template Literals are not allowed in optionalChain"),this.finishNode(f,"TaggedTemplateExpression")}return r.stop=!0,t},s.atPossibleAsync=function(t){return!this.state.containsEsc&&this.state.potentialArrowAt===t.start&&"Identifier"===t.type&&"async"===t.name&&!this.canInsertSemicolon()},s.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")},s.finishOptionalCallExpression=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,"OptionalCallExpression")},s.parseCallExpressionArguments=function(t,e,s){for(var i,r=[],a=!0;!this.eat(t);){if(a)a=!1;else if(this.expect(h.comma),this.eat(t))break;this.match(h.parenL)&&!i&&(i=this.state.start),r.push(this.parseExprListItem(!1,e?{start:0}:void 0,e?{start:0}:void 0,e?s:void 0))}return e&&i&&this.shouldParseAsyncArrow()&&this.unexpected(),r},s.shouldParseAsyncArrow=function(){return this.match(h.arrow)},s.parseAsyncArrowFromCallExpression=function(t,e){var s=this.state.yieldInPossibleArrowParameters;return this.state.yieldInPossibleArrowParameters=null,this.expect(h.arrow),this.parseArrowExpression(t,e.arguments,!0),this.state.yieldInPossibleArrowParameters=s,t},s.parseNoCallExpr=function(){var t=this.state.start,e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,e,!0)},s.parseExprAtom=function(t){var e,s=this.state.potentialArrowAt===this.state.start;switch(this.state.type){case h._super:return this.state.inMethod||this.state.inClassProperty||this.options.allowSuperOutsideMethod||this.raise(this.state.start,"super is only allowed in object methods and classes"),e=this.startNode(),this.next(),this.match(h.parenL)||this.match(h.bracketL)||this.match(h.dot)||this.unexpected(),this.match(h.parenL)&&"constructor"!==this.state.inMethod&&!this.options.allowSuperOutsideMethod&&this.raise(e.start,"super() is only valid inside a class constructor. Make sure the method name is spelled exactly as 'constructor'."),this.finishNode(e,"Super");case h._import:return this.lookahead().type===h.dot?this.parseImportMetaProperty():(this.expectPlugin("dynamicImport"),e=this.startNode(),this.next(),this.match(h.parenL)||this.unexpected(null,h.parenL),this.finishNode(e,"Import"));case h._this:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case h._yield:this.state.inGenerator&&this.unexpected();case h.name:e=this.startNode();var i="await"===this.state.value&&(this.state.inAsync||!this.state.inFunction&&this.options.allowAwaitOutsideFunction),r=this.state.containsEsc,a=this.shouldAllowYieldIdentifier(),n=this.parseIdentifier(i||a);if("await"===n.name){if(this.state.inAsync||this.inModule||!this.state.inFunction&&this.options.allowAwaitOutsideFunction)return this.parseAwait(e)}else{if(!r&&"async"===n.name&&this.match(h._function)&&!this.canInsertSemicolon())return this.next(),this.parseFunction(e,!1,!1,!0);if(s&&"async"===n.name&&this.match(h.name)){var o=this.state.yieldInPossibleArrowParameters;this.state.yieldInPossibleArrowParameters=null;var p=[this.parseIdentifier()];return this.expect(h.arrow),this.parseArrowExpression(e,p,!0),this.state.yieldInPossibleArrowParameters=o,e}}if(s&&!this.canInsertSemicolon()&&this.eat(h.arrow)){var c=this.state.yieldInPossibleArrowParameters;return this.state.yieldInPossibleArrowParameters=null,this.parseArrowExpression(e,[n]),this.state.yieldInPossibleArrowParameters=c,e}return n;case h._do:this.expectPlugin("doExpressions");var l=this.startNode();this.next();var u=this.state.inFunction,d=this.state.labels;return this.state.labels=[],this.state.inFunction=!1,l.body=this.parseBlock(!1),this.state.inFunction=u,this.state.labels=d,this.finishNode(l,"DoExpression");case h.regexp:var f=this.state.value;return(e=this.parseLiteral(f.value,"RegExpLiteral")).pattern=f.pattern,e.flags=f.flags,e;case h.num:return this.parseLiteral(this.state.value,"NumericLiteral");case h.bigint:return this.parseLiteral(this.state.value,"BigIntLiteral");case h.string:return this.parseLiteral(this.state.value,"StringLiteral");case h._null:return e=this.startNode(),this.next(),this.finishNode(e,"NullLiteral");case h._true:case h._false:return this.parseBooleanLiteral();case h.parenL:return this.parseParenAndDistinguishExpression(s);case h.bracketL:return e=this.startNode(),this.next(),e.elements=this.parseExprList(h.bracketR,!0,t),this.toReferencedList(e.elements),this.finishNode(e,"ArrayExpression");case h.braceL:return this.parseObj(!1,t);case h._function:return this.parseFunctionExpression();case h.at:this.parseDecorators();case h._class:return e=this.startNode(),this.takeDecorators(e),this.parseClass(e,!1);case h._new:return this.parseNew();case h.backQuote:return this.parseTemplate(!1);case h.doubleColon:e=this.startNode(),this.next(),e.object=null;var m=e.callee=this.parseNoCallExpr();if("MemberExpression"===m.type)return this.finishNode(e,"BindExpression");throw this.raise(m.start,"Binding should be performed on object property.");default:throw this.unexpected()}},s.parseBooleanLiteral=function(){var t=this.startNode();return t.value=this.match(h._true),this.next(),this.finishNode(t,"BooleanLiteral")},s.parseMaybePrivateName=function(){if(this.match(h.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)},s.parseFunctionExpression=function(){var t=this.startNode(),e=this.parseIdentifier(!0);return this.state.inGenerator&&this.eat(h.dot)?this.parseMetaProperty(t,e,"sent"):this.parseFunction(t,!1)},s.parseMetaProperty=function(t,e,s){t.meta=e,"function"===e.name&&"sent"===s&&(this.isContextual(s)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected());var i=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==s||i)&&this.raise(t.property.start,"The only valid meta property for "+e.name+" is "+e.name+"."+s),this.finishNode(t,"MetaProperty")},s.parseImportMetaProperty=function(){var t=this.startNode(),e=this.parseIdentifier(!0);return this.expect(h.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\"'",{code:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"}),this.sawUnambiguousESM=!0,this.parseMetaProperty(t,e,"meta")},s.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)},s.parseParenExpression=function(){this.expect(h.parenL);var t=this.parseExpression();return this.expect(h.parenR),t},s.parseParenAndDistinguishExpression=function(t){var e,s=this.state.start,i=this.state.startLoc;this.expect(h.parenL);var r=this.state.maybeInArrowParameters,a=this.state.yieldInPossibleArrowParameters;this.state.maybeInArrowParameters=!0,this.state.yieldInPossibleArrowParameters=null;for(var n,o,p=this.state.start,c=this.state.startLoc,l=[],u={start:0},d={start:0},f=!0;!this.match(h.parenR);){if(f)f=!1;else if(this.expect(h.comma,d.start||null),this.match(h.parenR)){o=this.state.start;break}if(this.match(h.ellipsis)){var m=this.state.start,y=this.state.startLoc;n=this.state.start,l.push(this.parseParenItem(this.parseRest(),m,y)),this.match(h.comma)&&this.lookahead().type===h.parenR&&this.raise(this.state.start,"A trailing comma is not permitted after the rest element");break}l.push(this.parseMaybeAssign(!1,u,this.parseParenItem,d))}var x=this.state.start,v=this.state.startLoc;this.expect(h.parenR),this.state.maybeInArrowParameters=r;var P=this.startNodeAt(s,i);if(t&&this.shouldParseArrow()&&(P=this.parseArrow(P))){for(var g=0;g1?((e=this.startNodeAt(p,c)).expressions=l,this.toReferencedList(e.expressions),this.finishNodeAt(e,"SequenceExpression",x,v)):e=l[0],this.addExtra(e,"parenthesized",!0),this.addExtra(e,"parenStart",s),e},s.shouldParseArrow=function(){return!this.canInsertSemicolon()},s.parseArrow=function(t){if(this.eat(h.arrow))return t},s.parseParenItem=function(t,e,s){return t},s.parseNew=function(){var t=this.startNode(),e=this.parseIdentifier(!0);if(this.eat(h.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(),"OptionalMemberExpression"!==t.callee.type&&"OptionalCallExpression"!==t.callee.type||this.raise(this.state.lastTokEnd,"constructors in/after an Optional Chain are not allowed"),this.eat(h.questionDot)&&this.raise(this.state.start,"constructors in/after an Optional Chain are not allowed"),this.parseNewArguments(t),this.finishNode(t,"NewExpression")},s.parseNewArguments=function(t){if(this.eat(h.parenL)){var e=this.parseExprList(h.parenR);this.toReferencedList(e),t.arguments=e}else t.arguments=[]},s.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(h.backQuote),this.finishNode(e,"TemplateElement")},s.parseTemplate=function(t){var e=this.startNode();this.next(),e.expressions=[];var s=this.parseTemplateElement(t);for(e.quasis=[s];!s.tail;)this.expect(h.dollarBraceL),e.expressions.push(this.parseExpression()),this.expect(h.braceR),e.quasis.push(s=this.parseTemplateElement(t));return this.next(),this.finishNode(e,"TemplateLiteral")},s.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(h.braceR);){if(r)r=!1;else if(this.expect(h.comma),this.eat(h.braceR))break;if(this.match(h.at))if(this.hasPlugin("decorators"))this.raise(this.state.start,"Stage 2 decorators disallow object literal property decorators");else for(;this.match(h.at);)s.push(this.parseDecorator());var o=this.startNode(),p=!1,c=!1,l=void 0,u=void 0;if(s.length&&(o.decorators=s,s=[]),this.match(h.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 d=this.state.start;if(null!==n)this.unexpected(n,"Cannot have multiple rest elements when destructuring");else{if(this.eat(h.braceR))break;if(!this.match(h.comma)||this.lookahead().type!==h.braceR){n=d;continue}this.unexpected(d,"A trailing comma is not permitted after the rest element")}}o.method=!1,(t||e)&&(l=this.state.start,u=this.state.startLoc),t||(p=this.eat(h.star));var f=this.state.containsEsc;if(!t&&this.isContextual("async")){p&&this.unexpected();var m=this.parseIdentifier();this.match(h.colon)||this.match(h.parenL)||this.match(h.braceR)||this.match(h.eq)||this.match(h.comma)?(o.key=m,o.computed=!1):(c=!0,this.match(h.star)&&(this.expectPlugin("asyncGenerators"),this.next(),p=!0),this.parsePropertyName(o))}else this.parsePropertyName(o);this.parseObjPropValue(o,l,u,p,c,t,e,f),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")},s.isGetterOrSetterMethod=function(t,e){return!e&&!t.computed&&"Identifier"===t.key.type&&("get"===t.key.name||"set"===t.key.name)&&(this.match(h.string)||this.match(h.num)||this.match(h.bracketL)||this.match(h.name)||!!this.state.type.keyword)},s.checkGetterSetterParams=function(t){var e="get"===t.kind?0:1,s=t.start;t.params.length!==e&&("get"===t.kind?this.raise(s,"getter must not have any formal parameters"):this.raise(s,"setter must have exactly one formal parameter")),"set"===t.kind&&"RestElement"===t.params[0].type&&this.raise(s,"setter function argument must not be a rest parameter")},s.parseObjectMethod=function(t,e,s,i,r){return s||e||this.match(h.parenL)?(i&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,s,!1,"ObjectMethod")):!r&&this.isGetterOrSetterMethod(t,i)?((e||s)&&this.unexpected(),t.kind=t.key.name,this.parsePropertyName(t),this.parseMethod(t,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(t),t):void 0},s.parseObjectProperty=function(t,e,s,i,r){return t.shorthand=!1,this.eat(h.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(h.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"))},s.parseObjPropValue=function(t,e,s,i,r,a,n,o){var h=this.parseObjectMethod(t,i,r,a,o)||this.parseObjectProperty(t,e,s,a,n);return h||this.unexpected(),h},s.parsePropertyName=function(t){if(this.eat(h.bracketL))t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(h.bracketR);else{var e=this.state.inPropertyName;this.state.inPropertyName=!0,t.key=this.match(h.num)||this.match(h.string)?this.parseExprAtom():this.parseMaybePrivateName(),"PrivateName"!==t.key.type&&(t.computed=!1),this.state.inPropertyName=e}return t.key},s.initFunction=function(t,e){t.id=null,t.generator=!1,t.async=!!e},s.parseMethod=function(t,e,s,i,r){var a=this.state.inFunction,n=this.state.inMethod,o=this.state.inGenerator;this.state.inFunction=!0,this.state.inMethod=t.kind||!0,this.state.inGenerator=e,this.initFunction(t,s),t.generator=!!e;var h=i;return this.parseFunctionParams(t,h),this.parseFunctionBodyAndFinish(t,r),this.state.inFunction=a,this.state.inMethod=n,this.state.inGenerator=o,t},s.parseArrowExpression=function(t,e,s){this.state.yieldInPossibleArrowParameters&&this.raise(this.state.yieldInPossibleArrowParameters.start,"yield is not allowed in the parameters of an arrow function inside a generator");var i=this.state.inFunction;this.state.inFunction=!0,this.initFunction(t,s),e&&this.setArrowFunctionParameters(t,e);var r=this.state.inGenerator,a=this.state.maybeInArrowParameters;return this.state.inGenerator=!1,this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.state.inGenerator=r,this.state.inFunction=i,this.state.maybeInArrowParameters=a,this.finishNode(t,"ArrowFunctionExpression")},s.setArrowFunctionParameters=function(t,e){t.params=this.toAssignableList(e,!0,"arrow function parameters")},s.isStrictBody=function(t){if("BlockStatement"===t.body.type&&t.body.directives.length)for(var e=0,s=t.body.directives;e0)for(var e=0,s=t.body.body;e=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(h.jsxTagStart)):this.getTokenFromCode(s):(t+=this.input.slice(e,this.state.pos),this.finishToken(h.jsxText,t));case 38:t+=this.input.slice(e,this.state.pos),t+=this.jsxReadEntity(),e=this.state.pos;break;default:L(s)?(t+=this.input.slice(e,this.state.pos),t+=this.jsxReadNewLine(!0),e=this.state.pos):++this.state.pos}}},s.jsxReadNewLine=function(t){var e,s=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===s&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,e=t?"\n":"\r\n"):e=String.fromCharCode(s),++this.state.curLine,this.state.lineStart=this.state.pos,e},s.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):L(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(h.string,e)},s.jsxReadEntity=function(){for(var t,e="",s=0,i=this.input[this.state.pos],r=++this.state.pos;this.state.pos"):!j(r)&&j(a)?this.raise(a.start,"Expected corresponding JSX closing tag for <"+F(r.name)+">"):j(r)||j(a)||F(a.name)!==F(r.name)&&this.raise(a.start,"Expected corresponding JSX closing tag for <"+F(r.name)+">")}return j(r)?(s.openingFragment=r,s.closingFragment=a):(s.openingElement=r,s.closingElement=a),s.children=i,this.match(h.relational)&&"<"===this.state.value&&this.raise(this.state.start,"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"),j(r)?this.finishNode(s,"JSXFragment"):this.finishNode(s,"JSXElement")},s.jsxParseElement=function(){var t=this.state.start,e=this.state.startLoc;return this.next(),this.jsxParseElementAt(t,e)},s.parseExprAtom=function(e){return this.match(h.jsxText)?this.parseLiteral(this.state.value,"JSXText"):this.match(h.jsxTagStart)?this.jsxParseElement():t.prototype.parseExprAtom.call(this,e)},s.readToken=function(e){if(this.state.inPropertyName)return t.prototype.readToken.call(this,e);var s=this.curContext();if(s===D.j_expr)return this.jsxReadToken();if(s===D.j_oTag||s===D.j_cTag){if(b(e))return this.jsxReadWord();if(62===e)return++this.state.pos,this.finishToken(h.jsxTagEnd);if((34===e||39===e)&&s===D.j_oTag)return this.jsxReadString(e)}return 60===e&&this.state.exprAllowed?(++this.state.pos,this.finishToken(h.jsxTagStart)):t.prototype.readToken.call(this,e)},s.updateContext=function(e){if(this.match(h.braceL)){var s=this.curContext();s===D.j_oTag?this.state.context.push(D.braceExpression):s===D.j_expr?this.state.context.push(D.templateQuasi):t.prototype.updateContext.call(this,e),this.state.exprAllowed=!0}else{if(!this.match(h.slash)||e!==h.jsxTagStart)return t.prototype.updateContext.call(this,e);this.state.context.length-=2,this.state.context.push(D.j_cTag),this.state.exprAllowed=!1}},e}(t)},flow:function(t){return function(t){function e(e,s){var i;return(i=t.call(this,e,s)||this).flowPragma=void 0,i}i(e,t);var s=e.prototype;return s.shouldParseTypes=function(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma},s.addComment=function(e){if(void 0===this.flowPragma){var s=N.exec(e.value);if(s)if("flow"===s[1])this.flowPragma="flow";else{if("noflow"!==s[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}else this.flowPragma=null}return t.prototype.addComment.call(this,e)},s.flowParseTypeInitialiser=function(t){var e=this.state.inType;this.state.inType=!0,this.expect(t||h.colon);var s=this.flowParseType();return this.state.inType=e,s},s.flowParsePredicate=function(){var t=this.startNode(),e=this.state.startLoc,s=this.state.start;this.expect(h.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(h.parenL)?(t.value=this.parseExpression(),this.expect(h.parenR),this.finishNode(t,"DeclaredPredicate")):this.finishNode(t,"InferredPredicate")},s.flowParseTypeAndPredicateInitialiser=function(){var t=this.state.inType;this.state.inType=!0,this.expect(h.colon);var e=null,s=null;return this.match(h.modulo)?(this.state.inType=t,s=this.flowParsePredicate()):(e=this.flowParseType(),this.state.inType=t,this.match(h.modulo)&&(s=this.flowParsePredicate())),[e,s]},s.flowParseDeclareClass=function(t){return this.next(),this.flowParseInterfaceish(t,!0),this.finishNode(t,"DeclareClass")},s.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(h.parenL);var r=this.flowParseFunctionTypeParams();s.params=r.params,s.rest=r.rest,this.expect(h.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")},s.flowParseDeclare=function(t,e){if(this.match(h._class))return this.flowParseDeclareClass(t);if(this.match(h._function))return this.flowParseDeclareFunction(t);if(this.match(h._var))return this.flowParseDeclareVariable(t);if(this.isContextual("module"))return this.lookahead().type===h.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(h._export))return this.flowParseDeclareExportDeclaration(t,e);throw this.unexpected()},s.flowParseDeclareVariable=function(t){return this.next(),t.id=this.flowParseTypeAnnotatableIdentifier(!0),this.semicolon(),this.finishNode(t,"DeclareVariable")},s.flowParseDeclareModule=function(t){var e=this;this.next(),this.match(h.string)?t.id=this.parseExprAtom():t.id=this.parseIdentifier();var s=t.body=this.startNode(),i=s.body=[];for(this.expect(h.braceL);!this.match(h.braceR);){var r=this.startNode();if(this.match(h._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(h.braceR),this.finishNode(s,"BlockStatement");var n=null,o=!1,p="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){!function(t){return"DeclareExportAllDeclaration"===t.type||"DeclareExportDeclaration"===t.type&&(!t.declaration||"TypeAlias"!==t.declaration.type&&"InterfaceDeclaration"!==t.declaration.type)}(t)?"DeclareModuleExports"===t.type&&(o&&e.unexpected(t.start,"Duplicate `declare module.exports` statement"),"ES"===n&&e.unexpected(t.start,p),n="CommonJS",o=!0):("CommonJS"===n&&e.unexpected(t.start,p),n="ES")}),t.kind=n||"CommonJS",this.finishNode(t,"DeclareModule")},s.flowParseDeclareExportDeclaration=function(t,e){if(this.expect(h._export),this.eat(h._default))return this.match(h._function)||this.match(h._class)?t.declaration=this.flowParseDeclare(this.startNode()):(t.declaration=this.flowParseType(),this.semicolon()),t.default=!0,this.finishNode(t,"DeclareExportDeclaration");if(this.match(h._const)||this.match(h._let)||(this.isContextual("type")||this.isContextual("interface"))&&!e){var s=this.state.value,i=C[s];this.unexpected(this.state.start,"`declare export "+s+"` is not supported. Use `"+i+"` instead")}if(this.match(h._var)||this.match(h._function)||this.match(h._class)||this.isContextual("opaque"))return t.declaration=this.flowParseDeclare(this.startNode()),t.default=!1,this.finishNode(t,"DeclareExportDeclaration");if(this.match(h.star)||this.match(h.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()},s.flowParseDeclareModuleExports=function(t){return this.expectContextual("module"),this.expect(h.dot),this.expectContextual("exports"),t.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(t,"DeclareModuleExports")},s.flowParseDeclareTypeAlias=function(t){return this.next(),this.flowParseTypeAlias(t),this.finishNode(t,"DeclareTypeAlias")},s.flowParseDeclareOpaqueType=function(t){return this.next(),this.flowParseOpaqueType(t,!0),this.finishNode(t,"DeclareOpaqueType")},s.flowParseDeclareInterface=function(t){return this.next(),this.flowParseInterfaceish(t),this.finishNode(t,"DeclareInterface")},s.flowParseInterfaceish=function(t,e){if(t.id=this.flowParseRestrictedIdentifier(!e),this.isRelational("<")?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.extends=[],t.implements=[],t.mixins=[],this.eat(h._extends))do{t.extends.push(this.flowParseInterfaceExtends())}while(!e&&this.eat(h.comma));if(this.isContextual("mixins")){this.next();do{t.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(h.comma))}if(this.isContextual("implements")){this.next();do{t.implements.push(this.flowParseInterfaceExtends())}while(this.eat(h.comma))}t.body=this.flowParseObjectType(!0,!1,!1)},s.flowParseInterfaceExtends=function(){var t=this.startNode();return t.id=this.flowParseQualifiedTypeIdentifier(),this.isRelational("<")?t.typeParameters=this.flowParseTypeParameterInstantiation():t.typeParameters=null,this.finishNode(t,"InterfaceExtends")},s.flowParseInterface=function(t){return this.flowParseInterfaceish(t),this.finishNode(t,"InterfaceDeclaration")},s.checkReservedType=function(t,e){w.indexOf(t)>-1&&this.raise(e,"Cannot overwrite primitive type "+t)},s.flowParseRestrictedIdentifier=function(t){return this.checkReservedType(this.state.value,this.state.start),this.parseIdentifier(t)},s.flowParseTypeAlias=function(t){return t.id=this.flowParseRestrictedIdentifier(),this.isRelational("<")?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.right=this.flowParseTypeInitialiser(h.eq),this.semicolon(),this.finishNode(t,"TypeAlias")},s.flowParseOpaqueType=function(t,e){return this.expectContextual("type"),t.id=this.flowParseRestrictedIdentifier(!0),this.isRelational("<")?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.supertype=null,this.match(h.colon)&&(t.supertype=this.flowParseTypeInitialiser(h.colon)),t.impltype=null,e||(t.impltype=this.flowParseTypeInitialiser(h.eq)),this.semicolon(),this.finishNode(t,"OpaqueType")},s.flowParseTypeParameter=function(t,e){if(void 0===t&&(t=!0),void 0===e&&(e=!1),!t&&e)throw new Error("Cannot disallow a default value (`allowDefault`) while also requiring it (`requireDefault`).");var s=this.state.start,i=this.startNode(),r=this.flowParseVariance(),a=this.flowParseTypeAnnotatableIdentifier();return i.name=a.name,i.variance=r,i.bound=a.typeAnnotation,this.match(h.eq)?t?(this.eat(h.eq),i.default=this.flowParseType()):this.unexpected():e&&this.unexpected(s,"Type parameter declaration needs a default, since a preceding type parameter declaration has a default."),this.finishNode(i,"TypeParameter")},s.flowParseTypeParameterDeclaration=function(t){void 0===t&&(t=!0);var e=this.state.inType,s=this.startNode();s.params=[],this.state.inType=!0,this.isRelational("<")||this.match(h.jsxTagStart)?this.next():this.unexpected();var i=!1;do{var r=this.flowParseTypeParameter(t,i);s.params.push(r),r.default&&(i=!0),this.isRelational(">")||this.expect(h.comma)}while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=e,this.finishNode(s,"TypeParameterDeclaration")},s.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(h.comma);return this.expectRelational(">"),this.state.inType=e,this.finishNode(t,"TypeParameterInstantiation")},s.flowParseInterfaceType=function(){var t=this.startNode();if(this.expectContextual("interface"),t.extends=[],this.eat(h._extends))do{t.extends.push(this.flowParseInterfaceExtends())}while(this.eat(h.comma));return t.body=this.flowParseObjectType(!0,!1,!1),this.finishNode(t,"InterfaceTypeAnnotation")},s.flowParseObjectPropertyKey=function(){return this.match(h.num)||this.match(h.string)?this.parseExprAtom():this.parseIdentifier(!0)},s.flowParseObjectTypeIndexer=function(t,e,s){return t.static=e,this.lookahead().type===h.colon?(t.id=this.flowParseObjectPropertyKey(),t.key=this.flowParseTypeInitialiser()):(t.id=null,t.key=this.flowParseType()),this.expect(h.bracketR),t.value=this.flowParseTypeInitialiser(),t.variance=s,this.finishNode(t,"ObjectTypeIndexer")},s.flowParseObjectTypeInternalSlot=function(t,e){return t.static=e,t.id=this.flowParseObjectPropertyKey(),this.expect(h.bracketR),this.expect(h.bracketR),this.isRelational("<")||this.match(h.parenL)?(t.method=!0,t.optional=!1,t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.start,t.loc.start))):(t.method=!1,this.eat(h.question)&&(t.optional=!0),t.value=this.flowParseTypeInitialiser()),this.finishNode(t,"ObjectTypeInternalSlot")},s.flowParseObjectTypeMethodish=function(t){for(t.params=[],t.rest=null,t.typeParameters=null,this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration(!1)),this.expect(h.parenL);!this.match(h.parenR)&&!this.match(h.ellipsis);)t.params.push(this.flowParseFunctionTypeParam()),this.match(h.parenR)||this.expect(h.comma);return this.eat(h.ellipsis)&&(t.rest=this.flowParseFunctionTypeParam()),this.expect(h.parenR),t.returnType=this.flowParseTypeInitialiser(),this.finishNode(t,"FunctionTypeAnnotation")},s.flowParseObjectTypeCallProperty=function(t,e){var s=this.startNode();return t.static=e,t.value=this.flowParseObjectTypeMethodish(s),this.finishNode(t,"ObjectTypeCallProperty")},s.flowParseObjectType=function(t,e,s){var i=this.state.inType;this.state.inType=!0;var r,a,n=this.startNode();for(n.callProperties=[],n.properties=[],n.indexers=[],n.internalSlots=[],e&&this.match(h.braceBarL)?(this.expect(h.braceBarL),r=h.braceBarR,a=!0):(this.expect(h.braceL),r=h.braceR,a=!1),n.exact=a;!this.match(r);){var o=!1,p=this.startNode();if(t&&this.isContextual("static")){var c=this.lookahead();c.type!==h.colon&&c.type!==h.question&&(this.next(),o=!0)}var l=this.flowParseVariance();if(this.eat(h.bracketL))this.eat(h.bracketL)?(l&&this.unexpected(l.start),n.internalSlots.push(this.flowParseObjectTypeInternalSlot(p,o))):n.indexers.push(this.flowParseObjectTypeIndexer(p,o,l));else if(this.match(h.parenL)||this.isRelational("<"))l&&this.unexpected(l.start),n.callProperties.push(this.flowParseObjectTypeCallProperty(p,o));else{var u="init";if(this.isContextual("get")||this.isContextual("set")){var d=this.lookahead();d.type!==h.name&&d.type!==h.string&&d.type!==h.num||(u=this.state.value,this.next())}n.properties.push(this.flowParseObjectTypeProperty(p,o,l,u,s))}this.flowObjectTypeSemicolon()}this.expect(r);var f=this.finishNode(n,"ObjectTypeAnnotation");return this.state.inType=i,f},s.flowParseObjectTypeProperty=function(t,e,s,i,r){if(this.match(h.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(h.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(h.parenL)?(t.method=!0,s&&this.unexpected(s.start),t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.start,t.loc.start)),"get"!==i&&"set"!==i||this.flowCheckGetterSetterParams(t)):("init"!==i&&this.unexpected(),t.method=!1,this.eat(h.question)&&(a=!0),t.value=this.flowParseTypeInitialiser(),t.variance=s),t.optional=a,this.finishNode(t,"ObjectTypeProperty")},s.flowCheckGetterSetterParams=function(t){var e="get"===t.kind?0:1,s=t.start;t.value.params.length+(t.value.rest?1:0)!==e&&("get"===t.kind?this.raise(s,"getter must not have any formal parameters"):this.raise(s,"setter must have exactly one formal parameter")),"set"===t.kind&&t.value.rest&&this.raise(s,"setter function argument must not be a rest parameter")},s.flowObjectTypeSemicolon=function(){this.eat(h.semi)||this.eat(h.comma)||this.match(h.braceR)||this.match(h.braceBarR)||this.unexpected()},s.flowParseQualifiedTypeIdentifier=function(t,e,s){t=t||this.state.start,e=e||this.state.startLoc;for(var i=s||this.parseIdentifier();this.eat(h.dot);){var r=this.startNodeAt(t,e);r.qualification=i,r.id=this.parseIdentifier(),i=this.finishNode(r,"QualifiedTypeIdentifier")}return i},s.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")},s.flowParseTypeofType=function(){var t=this.startNode();return this.expect(h._typeof),t.argument=this.flowParsePrimaryType(),this.finishNode(t,"TypeofTypeAnnotation")},s.flowParseTupleType=function(){var t=this.startNode();for(t.types=[],this.expect(h.bracketL);this.state.pos0){var v=c.concat();if(x.length>0){this.state=p,this.state.noArrowAt=v;for(var P=0;P1&&this.raise(p.start,"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate."),f&&1===y.length){this.state=p,this.state.noArrowAt=v.concat(y[0].start);var T=this.tryParseConditionalConsequent();d=T.consequent,f=T.failed}this.getArrowLikeExpressions(d,!0)}return this.state.noArrowAt=c,this.expect(h.colon),l.test=e,l.consequent=d,l.alternate=this.forwardNoArrowParamsConversionAt(l,function(){return n.parseMaybeAssign(s,void 0,void 0,void 0)}),this.finishNode(l,"ConditionalExpression")},s.tryParseConditionalConsequent=function(){this.state.noArrowParamsConversionAt.push(this.state.start);var t=this.parseMaybeAssign(),e=!this.match(h.colon);return this.state.noArrowParamsConversionAt.pop(),{consequent:t,failed:e}},s.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")}throw new Error("Unreachable")},s.tsParseList=function(t,e){for(var s=[];!this.tsIsListTerminator(t);)s.push(e());return s},s.tsParseDelimitedList=function(t,e){return st(this.tsParseDelimitedListWorker(t,e,!0))},s.tsTryParseDelimitedList=function(t,e){return this.tsParseDelimitedListWorker(t,e,!1)},s.tsParseDelimitedListWorker=function(t,e,s){for(var i=[];!this.tsIsListTerminator(t);){var r=e();if(null==r)return;if(i.push(r),!this.eat(h.comma)){if(this.tsIsListTerminator(t))break;return void(s&&this.expect(h.comma))}}return i},s.tsParseBracketedList=function(t,e,s,i){i||(s?this.expect(h.bracketL):this.expectRelational("<"));var r=this.tsParseDelimitedList(t,e);return s?this.expect(h.bracketR):this.expectRelational(">"),r},s.tsParseEntityName=function(t){for(var e=this.parseIdentifier();this.eat(h.dot);){var s=this.startNodeAtNode(e);s.left=e,s.right=this.parseIdentifier(t),e=this.finishNode(s,"TSQualifiedName")}return e},s.tsParseTypeReference=function(){var t=this.startNode();return t.typeName=this.tsParseEntityName(!1),!this.hasPrecedingLineBreak()&&this.isRelational("<")&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeReference")},s.tsParseThisTypePredicate=function(t){this.next();var e=this.startNode();return e.parameterName=t,e.typeAnnotation=this.tsParseTypeAnnotation(!1),this.finishNode(e,"TSTypePredicate")},s.tsParseThisTypeNode=function(){var t=this.startNode();return this.next(),this.finishNode(t,"TSThisType")},s.tsParseTypeQuery=function(){var t=this.startNode();return this.expect(h._typeof),t.exprName=this.tsParseEntityName(!0),this.finishNode(t,"TSTypeQuery")},s.tsParseTypeParameter=function(){var t=this.startNode();return t.name=this.parseIdentifierName(t.start),t.constraint=this.tsEatThenParseType(h._extends),t.default=this.tsEatThenParseType(h.eq),this.finishNode(t,"TSTypeParameter")},s.tsTryParseTypeParameters=function(){if(this.isRelational("<"))return this.tsParseTypeParameters()},s.tsParseTypeParameters=function(){var t=this.startNode();return this.isRelational("<")||this.match(h.jsxTagStart)?this.next():this.unexpected(),t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0),this.finishNode(t,"TSTypeParameterDeclaration")},s.tsFillSignature=function(t,e){var s=t===h.arrow;e.typeParameters=this.tsTryParseTypeParameters(),this.expect(h.parenL),e.parameters=this.tsParseBindingListForSignature(),s?e.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(t):this.match(t)&&(e.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(t))},s.tsParseBindingListForSignature=function(){var t=this;return this.parseBindingList(h.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})},s.tsParseTypeMemberSemicolon=function(){this.eat(h.comma)||this.semicolon()},s.tsParseSignatureMember=function(t){var e=this.startNode();return"TSConstructSignatureDeclaration"===t&&this.expect(h._new),this.tsFillSignature(h.colon,e),this.tsParseTypeMemberSemicolon(),this.finishNode(e,t)},s.tsIsUnambiguouslyIndexSignature=function(){return this.next(),this.eat(h.name)&&this.match(h.colon)},s.tsTryParseIndexSignature=function(t){if(this.match(h.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(h.bracketL);var e=this.parseIdentifier();this.expect(h.colon),e.typeAnnotation=this.tsParseTypeAnnotation(!1),this.expect(h.bracketR),t.parameters=[e];var s=this.tsTryParseTypeAnnotation();return s&&(t.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSIndexSignature")}},s.tsParsePropertyOrMethodSignature=function(t,e){this.parsePropertyName(t),this.eat(h.question)&&(t.optional=!0);var s=t;if(e||!this.match(h.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(h.colon,a),this.tsParseTypeMemberSemicolon(),this.finishNode(a,"TSMethodSignature")},s.tsParseTypeMember=function(){if(this.match(h.parenL)||this.isRelational("<"))return this.tsParseSignatureMember("TSCallSignatureDeclaration");if(this.match(h._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)},s.tsIsStartOfConstructSignature=function(){return this.next(),this.match(h.parenL)||this.isRelational("<")},s.tsParseTypeLiteral=function(){var t=this.startNode();return t.members=this.tsParseObjectTypeMembers(),this.finishNode(t,"TSTypeLiteral")},s.tsParseObjectTypeMembers=function(){this.expect(h.braceL);var t=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(h.braceR),t},s.tsIsStartOfMappedType=function(){return this.next(),this.eat(h.plusMin)?this.isContextual("readonly"):(this.isContextual("readonly")&&this.next(),!!this.match(h.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(h._in))))},s.tsParseMappedTypeParameter=function(){var t=this.startNode();return t.name=this.parseIdentifierName(t.start),t.constraint=this.tsExpectThenParseType(h._in),this.finishNode(t,"TSTypeParameter")},s.tsParseMappedType=function(){var t=this.startNode();return this.expect(h.braceL),this.match(h.plusMin)?(t.readonly=this.state.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(t.readonly=!0),this.expect(h.bracketL),t.typeParameter=this.tsParseMappedTypeParameter(),this.expect(h.bracketR),this.match(h.plusMin)?(t.optional=this.state.value,this.next(),this.expect(h.question)):this.eat(h.question)&&(t.optional=!0),t.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(h.braceR),this.finishNode(t,"TSMappedType")},s.tsParseTupleType=function(){var t=this.startNode();return t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseType.bind(this),!0,!1),this.finishNode(t,"TSTupleType")},s.tsParseParenthesizedType=function(){var t=this.startNode();return this.expect(h.parenL),t.typeAnnotation=this.tsParseType(),this.expect(h.parenR),this.finishNode(t,"TSParenthesizedType")},s.tsParseFunctionOrConstructorType=function(t){var e=this.startNode();return"TSConstructorType"===t&&this.expect(h._new),this.tsFillSignature(h.arrow,e),this.finishNode(e,t)},s.tsParseLiteralTypeNode=function(){var t=this,e=this.startNode();return e.literal=function(){switch(t.state.type){case h.num:return t.parseLiteral(t.state.value,"NumericLiteral");case h.string:return t.parseLiteral(t.state.value,"StringLiteral");case h._true:case h._false:return t.parseBooleanLiteral();default:throw t.unexpected()}}(),this.finishNode(e,"TSLiteralType")},s.tsParseNonArrayType=function(){switch(this.state.type){case h.name:case h._void:case h._null:var t=this.match(h._void)?"TSVoidKeyword":this.match(h._null)?"TSNullKeyword":function(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}}(this.state.value);if(void 0!==t&&this.lookahead().type!==h.dot){var e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference();case h.string:case h.num:case h._true:case h._false:return this.tsParseLiteralTypeNode();case h.plusMin:if("-"===this.state.value){var s=this.startNode();if(this.next(),!this.match(h.num))throw this.unexpected();return s.literal=this.parseLiteral(-this.state.value,"NumericLiteral",s.start,s.loc.start),this.finishNode(s,"TSLiteralType")}break;case h._this:var i=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(i):i;case h._typeof:return this.tsParseTypeQuery();case h.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case h.bracketL:return this.tsParseTupleType();case h.parenL:return this.tsParseParenthesizedType()}throw this.unexpected()},s.tsParseArrayTypeOrHigher=function(){for(var t=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(h.bracketL);)if(this.match(h.bracketR)){var e=this.startNodeAtNode(t);e.elementType=t,this.expect(h.bracketR),t=this.finishNode(e,"TSArrayType")}else{var s=this.startNodeAtNode(t);s.objectType=t,s.indexType=this.tsParseType(),this.expect(h.bracketR),t=this.finishNode(s,"TSIndexedAccessType")}return t},s.tsParseTypeOperator=function(t){var e=this.startNode();return this.expectContextual(t),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),this.finishNode(e,"TSTypeOperator")},s.tsParseInferType=function(){var t=this.startNode();this.expectContextual("infer");var e=this.startNode();return e.name=this.parseIdentifierName(e.start),t.typeParameter=this.finishNode(e,"TSTypeParameter"),this.finishNode(t,"TSInferType")},s.tsParseTypeOperatorOrHigher=function(){var t=this,e=["keyof","unique"].find(function(e){return t.isContextual(e)});return e?this.tsParseTypeOperator(e):this.isContextual("infer")?this.tsParseInferType():this.tsParseArrayTypeOrHigher()},s.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},s.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),h.bitwiseAND)},s.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),h.bitwiseOR)},s.tsIsStartOfFunctionType=function(){return!!this.isRelational("<")||this.match(h.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))},s.tsSkipParameterStart=function(){return!(!this.match(h.name)&&!this.match(h._this)||(this.next(),0))},s.tsIsUnambiguouslyStartOfFunctionType=function(){if(this.next(),this.match(h.parenR)||this.match(h.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(h.colon)||this.match(h.comma)||this.match(h.question)||this.match(h.eq))return!0;if(this.match(h.parenR)&&(this.next(),this.match(h.arrow)))return!0}return!1},s.tsParseTypeOrTypePredicateAnnotation=function(t){var e=this;return this.tsInType(function(){var s=e.startNode();e.expect(t);var i=e.tsIsIdentifier()&&e.tsTryParse(e.tsParseTypePredicatePrefix.bind(e));if(!i)return e.tsParseTypeAnnotation(!1,s);var r=e.tsParseTypeAnnotation(!1),a=e.startNodeAtNode(i);return a.parameterName=i,a.typeAnnotation=r,s.typeAnnotation=e.finishNode(a,"TSTypePredicate"),e.finishNode(s,"TSTypeAnnotation")})},s.tsTryParseTypeOrTypePredicateAnnotation=function(){return this.match(h.colon)?this.tsParseTypeOrTypePredicateAnnotation(h.colon):void 0},s.tsTryParseTypeAnnotation=function(){return this.match(h.colon)?this.tsParseTypeAnnotation():void 0},s.tsTryParseType=function(){return this.tsEatThenParseType(h.colon)},s.tsParseTypePredicatePrefix=function(){var t=this.parseIdentifier();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),t},s.tsParseTypeAnnotation=function(t,e){var s=this;return void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),this.tsInType(function(){t&&s.expect(h.colon),e.typeAnnotation=s.tsParseType()}),this.finishNode(e,"TSTypeAnnotation")},s.tsParseType=function(){it(this.state.inType);var t=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(h._extends))return t;var e=this.startNodeAtNode(t);return e.checkType=t,e.extendsType=this.tsParseNonConditionalType(),this.expect(h.question),e.trueType=this.tsParseType(),this.expect(h.colon),e.falseType=this.tsParseType(),this.finishNode(e,"TSConditionalType")},s.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(h._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.tsParseUnionTypeOrHigher()},s.tsParseTypeAssertion=function(){var t=this,e=this.startNode();return e.typeAnnotation=this.tsInType(function(){return t.tsParseType()}),this.expectRelational(">"),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")},s.tsTryParseTypeArgumentsInExpression=function(){var t=this;return this.tsTryParseAndCatch(function(){var e=t.tsParseTypeArguments();return t.expect(h.parenL),e})},s.tsParseHeritageClause=function(){return this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this))},s.tsParseExpressionWithTypeArguments=function(){var t=this.startNode();return t.expression=this.tsParseEntityName(!1),this.isRelational("<")&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSExpressionWithTypeArguments")},s.tsParseInterfaceDeclaration=function(t){t.id=this.parseIdentifier(),t.typeParameters=this.tsTryParseTypeParameters(),this.eat(h._extends)&&(t.extends=this.tsParseHeritageClause());var e=this.startNode();return e.body=this.tsParseObjectTypeMembers(),t.body=this.finishNode(e,"TSInterfaceBody"),this.finishNode(t,"TSInterfaceDeclaration")},s.tsParseTypeAliasDeclaration=function(t){return t.id=this.parseIdentifier(),t.typeParameters=this.tsTryParseTypeParameters(),t.typeAnnotation=this.tsExpectThenParseType(h.eq),this.semicolon(),this.finishNode(t,"TSTypeAliasDeclaration")},s.tsInType=function(t){var e=this.state.inType;this.state.inType=!0;try{return t()}finally{this.state.inType=e}},s.tsEatThenParseType=function(t){return this.match(t)?this.tsNextThenParseType():void 0},s.tsExpectThenParseType=function(t){var e=this;return this.tsDoThenParseType(function(){return e.expect(t)})},s.tsNextThenParseType=function(){var t=this;return this.tsDoThenParseType(function(){return t.next()})},s.tsDoThenParseType=function(t){var e=this;return this.tsInType(function(){return t(),e.tsParseType()})},s.tsParseEnumMember=function(){var t=this.startNode();return t.id=this.match(h.string)?this.parseLiteral(this.state.value,"StringLiteral"):this.parseIdentifier(!0),this.eat(h.eq)&&(t.initializer=this.parseMaybeAssign()),this.finishNode(t,"TSEnumMember")},s.tsParseEnumDeclaration=function(t,e){return e&&(t.const=!0),t.id=this.parseIdentifier(),this.expect(h.braceL),t.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(h.braceR),this.finishNode(t,"TSEnumDeclaration")},s.tsParseModuleBlock=function(){var t=this.startNode();return this.expect(h.braceL),this.parseBlockOrModuleBlockBody(t.body=[],void 0,!0,h.braceR),this.finishNode(t,"TSModuleBlock")},s.tsParseModuleOrNamespaceDeclaration=function(t){if(t.id=this.parseIdentifier(),this.eat(h.dot)){var e=this.startNode();this.tsParseModuleOrNamespaceDeclaration(e),t.body=e}else t.body=this.tsParseModuleBlock();return this.finishNode(t,"TSModuleDeclaration")},s.tsParseAmbientExternalModuleDeclaration=function(t){return this.isContextual("global")?(t.global=!0,t.id=this.parseIdentifier()):this.match(h.string)?t.id=this.parseExprAtom():this.unexpected(),this.match(h.braceL)?t.body=this.tsParseModuleBlock():this.semicolon(),this.finishNode(t,"TSModuleDeclaration")},s.tsParseImportEqualsDeclaration=function(t,e){return t.isExport=e||!1,t.id=this.parseIdentifier(),this.expect(h.eq),t.moduleReference=this.tsParseModuleReference(),this.semicolon(),this.finishNode(t,"TSImportEqualsDeclaration")},s.tsIsExternalModuleReference=function(){return this.isContextual("require")&&this.lookahead().type===h.parenL},s.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},s.tsParseExternalModuleReference=function(){var t=this.startNode();if(this.expectContextual("require"),this.expect(h.parenL),!this.match(h.string))throw this.unexpected();return t.expression=this.parseLiteral(this.state.value,"StringLiteral"),this.expect(h.parenR),this.finishNode(t,"TSExternalModuleReference")},s.tsLookAhead=function(t){var e=this.state.clone(),s=t();return this.state=e,s},s.tsTryParseAndCatch=function(t){var e=this.state.clone();try{return t()}catch(t){if(t instanceof SyntaxError)return void(this.state=e);throw t}},s.tsTryParse=function(t){var e=this.state.clone(),s=t();return void 0!==s&&!1!==s?s:void(this.state=e)},s.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},s.tsTryParseDeclare=function(t){switch(this.state.type){case h._function:return this.next(),this.parseFunction(t,!0);case h._class:return this.parseClass(t,!0,!1);case h._const:if(this.match(h._const)&&this.isLookaheadContextual("enum"))return this.expect(h._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(t,!0);case h._var:case h._let:return this.parseVarStatement(t,this.state.type);case h.name:var e=this.state.value;return"global"===e?this.tsParseAmbientExternalModuleDeclaration(t):this.tsParseDeclaration(t,e,!0)}},s.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)},s.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(h.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)}},s.tsParseDeclaration=function(t,e,s){switch(e){case"abstract":if(s||this.match(h._class)){var i=t;return i.abstract=!0,s&&this.next(),this.parseClass(i,!0,!1)}break;case"enum":if(s||this.match(h.name))return s&&this.next(),this.tsParseEnumDeclaration(t,!1);break;case"interface":if(s||this.match(h.name))return s&&this.next(),this.tsParseInterfaceDeclaration(t);break;case"module":if(s&&this.next(),this.match(h.string))return this.tsParseAmbientExternalModuleDeclaration(t);if(s||this.match(h.name))return this.tsParseModuleOrNamespaceDeclaration(t);break;case"namespace":if(s||this.match(h.name))return s&&this.next(),this.tsParseModuleOrNamespaceDeclaration(t);break;case"type":if(s||this.match(h.name))return s&&this.next(),this.tsParseTypeAliasDeclaration(t)}},s.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(h.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")},s.tsParseTypeArguments=function(){var t=this,e=this.startNode();return e.params=this.tsInType(function(){return t.expectRelational("<"),t.tsParseDelimitedList("TypeParametersOrArguments",t.tsParseType.bind(t))}),this.expectRelational(">"),this.finishNode(e,"TSTypeParameterInstantiation")},s.tsIsDeclarationStart=function(){if(this.match(h.name))switch(this.state.value){case"abstract":case"declare":case"enum":case"interface":case"module":case"namespace":case"type":return!0}return!1},s.isExportDefaultSpecifier=function(){return!this.tsIsDeclarationStart()&&t.prototype.isExportDefaultSpecifier.call(this)},s.parseAssignableListItem=function(t,e){var s,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},s.parseFunctionBodyAndFinish=function(e,s,i){!i&&this.match(h.colon)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(h.colon));var r="FunctionDeclaration"===s?"TSDeclareFunction":"ClassMethod"===s?"TSDeclareMethod":void 0;r&&!this.match(h.braceL)&&this.isLineTerminator()?this.finishNode(e,r):t.prototype.parseFunctionBodyAndFinish.call(this,e,s,i)},s.parseSubscript=function(e,s,i,r,a){if(!this.hasPrecedingLineBreak()&&this.match(h.bang)){this.state.exprAllowed=!1,this.next();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 p=this.startNodeAt(s,i);p.callee=e;var c=this.tsTryParseTypeArgumentsInExpression();if(c)return p.arguments=this.parseCallExpressionArguments(h.parenR,!1),p.typeParameters=c,this.finishCallExpression(p)}return t.prototype.parseSubscript.call(this,e,s,i,r,a)},s.parseNewArguments=function(e){var s=this;if(this.isRelational("<")){var i=this.tsTryParseAndCatch(function(){var t=s.tsParseTypeArguments();return s.match(h.parenL)||s.unexpected(),t});i&&(e.typeParameters=i)}t.prototype.parseNewArguments.call(this,e)},s.parseExprOp=function(e,s,i,r,a){if(st(h._in.binop)>r&&!this.hasPrecedingLineBreak()&&this.isContextual("as")){var n=this.startNodeAt(s,i);return n.expression=e,n.typeAnnotation=this.tsNextThenParseType(),this.finishNode(n,"TSAsExpression"),this.parseExprOp(n,s,i,r,a)}return t.prototype.parseExprOp.call(this,e,s,i,r,a)},s.checkReservedWord=function(t,e,s,i){},s.checkDuplicateExports=function(){},s.parseImport=function(e){return this.match(h.name)&&this.lookahead().type===h.eq?this.tsParseImportEqualsDeclaration(e):t.prototype.parseImport.call(this,e)},s.parseExport=function(e){if(this.match(h._import))return this.expect(h._import),this.tsParseImportEqualsDeclaration(e,!0);if(this.eat(h.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)},s.isAbstractClass=function(){return this.isContextual("abstract")&&this.lookahead().type===h._class},s.parseExportDefaultExpression=function(){if(this.isAbstractClass()){var e=this.startNode();return this.next(),this.parseClass(e,!0,!0),e.abstract=!0,e}return t.prototype.parseExportDefaultExpression.call(this)},s.parseStatementContent=function(e,s){if(this.state.type===h._const){var i=this.lookahead();if(i.type===h.name&&"enum"===i.value){var r=this.startNode();return this.expect(h._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(r,!0)}}return t.prototype.parseStatementContent.call(this,e,s)},s.parseAccessModifier=function(){return this.tsParseModifier(["public","protected","private"])},s.parseClassMember=function(e,s,i){var r=this.parseAccessModifier();r&&(s.accessibility=r),t.prototype.parseClassMember.call(this,e,s,i)},s.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)},s.parsePostMemberNameModifiers=function(t){this.eat(h.question)&&(t.optional=!0)},s.parseExpressionStatement=function(e,s){return("Identifier"===s.type?this.tsParseExpressionStatement(e,s):void 0)||t.prototype.parseExpressionStatement.call(this,e,s)},s.shouldParseExportDeclaration=function(){return!!this.tsIsDeclarationStart()||t.prototype.shouldParseExportDeclaration.call(this)},s.parseConditional=function(e,s,i,r,a){if(!a||!this.match(h.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}},s.parseParenItem=function(e,s,i){if(e=t.prototype.parseParenItem.call(this,e,s,i),this.eat(h.question)&&(e.optional=!0),this.match(h.colon)){var r=this.startNodeAt(s,i);return r.expression=e,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return e},s.parseExportDeclaration=function(e){var s,i=this.eatContextual("declare");return this.match(h.name)&&(s=this.tsTryParseExportDeclaration()),s||(s=t.prototype.parseExportDeclaration.call(this,e)),s&&i&&(s.declare=!0),s},s.parseClassId=function(e,s,i){if(s&&!i||!this.isContextual("implements")){t.prototype.parseClassId.apply(this,arguments);var r=this.tsTryParseTypeParameters();r&&(e.typeParameters=r)}},s.parseClassProperty=function(e){!e.optional&&this.eat(h.bang)&&(e.definite=!0);var s=this.tsTryParseTypeAnnotation();return s&&(e.typeAnnotation=s),t.prototype.parseClassProperty.call(this,e)},s.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)},s.pushClassPrivateMethod=function(e,s,i,r){var a=this.tsTryParseTypeParameters();a&&(s.typeParameters=a),t.prototype.pushClassPrivateMethod.call(this,e,s,i,r)},s.parseClassSuper=function(e){t.prototype.parseClassSuper.call(this,e),e.superClass&&this.isRelational("<")&&(e.superTypeParameters=this.tsParseTypeArguments()),this.eatContextual("implements")&&(e.implements=this.tsParseHeritageClause())},s.parseObjPropValue=function(e){var s;if(this.isRelational("<"))throw new Error("TODO");for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a{let result=callback(child,i);return!1!==result&&child.walk&&(result=child.walk(callback)),result})}walkType(type,callback){if(!type||!callback)throw new Error('Parameters {type} and {callback} are required.');return type=type.name&&type.prototype?type.name:type,this.walk((node,index)=>{if(node.type===type)return callback.call(this,node,index)})}append(node){return node.parent=this,this.nodes.push(node),this}prepend(node){return node.parent=this,this.nodes.unshift(node),this}cleanRaws(keepBetween){if(super.cleanRaws(keepBetween),this.nodes)for(let node of this.nodes)node.cleanRaws(keepBetween)}insertAfter(oldNode,newNode){let oldIndex=this.index(oldNode),index;for(let id in this.nodes.splice(oldIndex+1,0,newNode),this.indexes)index=this.indexes[id],oldIndex<=index&&(this.indexes[id]=index+this.nodes.length);return this}insertBefore(oldNode,newNode){let oldIndex=this.index(oldNode),index;for(let id in this.nodes.splice(oldIndex,0,newNode),this.indexes)index=this.indexes[id],oldIndex<=index&&(this.indexes[id]=index+this.nodes.length);return this}removeChild(child){child=this.index(child),this.nodes[child].parent=void 0,this.nodes.splice(child,1);let index;for(let id in this.indexes)index=this.indexes[id],index>=child&&(this.indexes[id]=index-1);return this}removeAll(){for(let node of this.nodes)node.parent=void 0;return this.nodes=[],this}every(condition){return this.nodes.every(condition)}some(condition){return this.nodes.some(condition)}index(child){return'number'==typeof child?child:this.nodes.indexOf(child)}get first(){return this.nodes?this.nodes[0]:void 0}get last(){return this.nodes?this.nodes[this.nodes.length-1]:void 0}toString(){let result=this.nodes.map(String).join('');return this.value&&(result=this.value+result),this.raws.before&&(result=this.raws.before+result),this.raws.after&&(result+=this.raws.after),result}}Container.registerWalker=constructor=>{let walkerName='walk'+constructor.name;walkerName.lastIndexOf('s')!==walkerName.length-1&&(walkerName+='s');Container.prototype[walkerName]||(Container.prototype[walkerName]=function(callback){return this.walkType(constructor,callback)})},module.exports=Container},function(module,exports){'use strict';Object.defineProperty(exports,'__esModule',{value:!0});var singleQuote=exports.singleQuote=39,doubleQuote=exports.doubleQuote=34,backslash=exports.backslash=92,backTick=exports.backTick=96,slash=exports.slash=47,newline=exports.newline=10,space=exports.space=32,feed=exports.feed=12,tab=exports.tab=9,carriageReturn=exports.carriageReturn=13,openedParenthesis=exports.openedParenthesis=40,closedParenthesis=exports.closedParenthesis=41,openedCurlyBracket=exports.openedCurlyBracket=123,closedCurlyBracket=exports.closedCurlyBracket=125,openSquareBracket=exports.openSquareBracket=91,closeSquareBracket=exports.closeSquareBracket=93,semicolon=exports.semicolon=59,asterisk=exports.asterisk=42,colon=exports.colon=58,comma=exports.comma=44,dot=exports.dot=46,atRule=exports.atRule=64,tilde=exports.tilde=126,hash=exports.hash=35,atEndPattern=exports.atEndPattern=/[ \n\t\r\f\{\(\)'"\\;/\[\]#]/g,wordEndPattern=exports.wordEndPattern=/[ \n\t\r\f\(\)\{\}:,;@!'"\\\]\[#]|\/(?=\*)/g,badBracketPattern=exports.badBracketPattern=/.[\\\/\("'\n]/,variablePattern=exports.variablePattern=/^@[^:\(\{]+:/,hashColorPattern=exports.hashColorPattern=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/},function(module){'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;'parent'==i&&'object'==type?parent&&(cloned[i]=parent):'source'==i?cloned[i]=value:value instanceof Array?cloned[i]=value.map(j=>cloneNode(j,cloned)):'before'!=i&&'after'!=i&&'between'!=i&&'semicolon'!=i&&('object'==type&&null!==value&&(value=cloneNode(value)),cloned[i]=value)}return cloned};module.exports=class{constructor(defaults){for(let name in defaults=defaults||{},this.raws={before:'',after:''},defaults)this[name]=defaults[name]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,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);return this.parent.insertBefore(this,cloned),cloned}cloneAfter(overrides){overrides=overrides||{};let cloned=this.clone(overrides);return this.parent.insertAfter(this,cloned),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){return this.cleanRaws(this.root()===container.root()),this.remove(),container.append(this),this}moveBefore(node){return this.cleanRaws(this.root()===node.root()),this.remove(),node.parent.insertBefore(node,this),this}moveAfter(node){return this.cleanRaws(this.root()===node.root()),this.remove(),node.parent.insertAfter(node,this),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('parent'==name)continue;let value=this[name];fixed[name]=value instanceof Array?value.map(i=>'object'==typeof i&&i.toJSON?i.toJSON():i):'object'==typeof value&&value.toJSON?value.toJSON():value}return fixed}root(){let result=this;for(;result.parent;)result=result.parent;return result}cleanRaws(keepBetween){delete this.raws.before,delete this.raws.after,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;iend?[]:arr.slice(start,end-start+1)}from=exports.resolve(from).substr(1),to=exports.resolve(to).substr(1);for(var fromParts=trim(from.split('/')),toParts=trim(to.split('/')),length=_Mathmin(fromParts.length,toParts.length),samePartsLength=length,i=0;ilength)return!1;if(95!==s.charCodeAt(length-1)||95!==s.charCodeAt(length-2)||111!==s.charCodeAt(length-3)||116!==s.charCodeAt(length-4)||111!==s.charCodeAt(length-5)||114!==s.charCodeAt(length-6)||112!==s.charCodeAt(length-7)||95!==s.charCodeAt(length-8)||95!==s.charCodeAt(length-9))return!1;for(var i=length-10;0<=i;i--)if(36!==s.charCodeAt(i))return!1;return!0}function strcmp(aStr1,aStr2){return aStr1===aStr2?0:null===aStr1?1:null===aStr2?-1:aStr1>aStr2?1:-1}exports.getArg=function(aArgs,aName,aDefaultValue){if(aName in aArgs)return aArgs[aName];if(3===arguments.length)return aDefaultValue;throw new Error('"'+aName+'" is a required argument.')};var urlRegexp=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,dataUrlRegexp=/^data:.+\,.+$/;exports.urlParse=urlParse,exports.urlGenerate=urlGenerate,exports.normalize=normalize,exports.join=join,exports.isAbsolute=function(aPath){return'/'===aPath.charAt(0)||urlRegexp.test(aPath)},exports.relative=function(aRoot,aPath){''===aRoot&&(aRoot='.'),aRoot=aRoot.replace(/\/$/,'');for(var level=0,index;0!==aPath.indexOf(aRoot+'/');){if(index=aRoot.lastIndexOf('/'),0>index)return aPath;if(aRoot=aRoot.slice(0,index),aRoot.match(/^([^\/]+:\/)?\/*$/))return aPath;++level}return Array(level+1).join('../')+aPath.substr(aRoot.length+1)};var supportsNullProto=function(){var obj=Object.create(null);return!('__proto__'in obj)}();exports.toSetString=supportsNullProto?identity:function(aStr){return isProtoString(aStr)?'$'+aStr:aStr},exports.fromSetString=supportsNullProto?identity:function(aStr){return isProtoString(aStr)?aStr.slice(1):aStr},exports.compareByOriginalPositions=function(mappingA,mappingB,onlyCompareOriginal){var cmp=strcmp(mappingA.source,mappingB.source);return 0===cmp?(cmp=mappingA.originalLine-mappingB.originalLine,0!==cmp)?cmp:(cmp=mappingA.originalColumn-mappingB.originalColumn,0!==cmp||onlyCompareOriginal)?cmp:(cmp=mappingA.generatedColumn-mappingB.generatedColumn,0!==cmp)?cmp:(cmp=mappingA.generatedLine-mappingB.generatedLine,0===cmp?strcmp(mappingA.name,mappingB.name):cmp):cmp},exports.compareByGeneratedPositionsDeflated=function(mappingA,mappingB,onlyCompareGenerated){var cmp=mappingA.generatedLine-mappingB.generatedLine;return 0==cmp?(cmp=mappingA.generatedColumn-mappingB.generatedColumn,0!=cmp||onlyCompareGenerated)?cmp:(cmp=strcmp(mappingA.source,mappingB.source),0!==cmp)?cmp:(cmp=mappingA.originalLine-mappingB.originalLine,0!==cmp)?cmp:(cmp=mappingA.originalColumn-mappingB.originalColumn,0===cmp?strcmp(mappingA.name,mappingB.name):cmp):cmp},exports.compareByGeneratedPositionsInflated=function(mappingA,mappingB){var cmp=mappingA.generatedLine-mappingB.generatedLine;return 0==cmp?(cmp=mappingA.generatedColumn-mappingB.generatedColumn,0!=cmp)?cmp:(cmp=strcmp(mappingA.source,mappingB.source),0!==cmp)?cmp:(cmp=mappingA.originalLine-mappingB.originalLine,0!==cmp)?cmp:(cmp=mappingA.originalColumn-mappingB.originalColumn,0===cmp?strcmp(mappingA.name,mappingB.name):cmp):cmp},exports.parseSourceMapInput=function(str){return JSON.parse(str.replace(/^\)]}'[^\n]*\n/,''))},exports.computeSourceURL=function(sourceRoot,sourceURL,sourceMapURL){if(sourceURL=sourceURL||'',sourceRoot&&('/'!==sourceRoot[sourceRoot.length-1]&&'/'!==sourceURL[0]&&(sourceRoot+='/'),sourceURL=sourceRoot+sourceURL),sourceMapURL){var parsed=urlParse(sourceMapURL);if(!parsed)throw new Error('sourceMapURL could not be parsed');if(parsed.path){var index=parsed.path.lastIndexOf('/');0<=index&&(parsed.path=parsed.path.substring(0,index+1))}sourceURL=join(urlGenerate(parsed),sourceURL)}return normalize(sourceURL)}},function(module,exports,__webpack_require__){'use strict';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&&('object'==typeof call||'function'==typeof call)?call:self}function _inherits(subClass,superClass){if('function'!=typeof superClass&&null!==superClass)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:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}exports.__esModule=!0;var _createClass=function(){function defineProperties(target,props){for(var i=0,descriptor;ilength)return!1;if(95!==s.charCodeAt(length-1)||95!==s.charCodeAt(length-2)||111!==s.charCodeAt(length-3)||116!==s.charCodeAt(length-4)||111!==s.charCodeAt(length-5)||114!==s.charCodeAt(length-6)||112!==s.charCodeAt(length-7)||95!==s.charCodeAt(length-8)||95!==s.charCodeAt(length-9))return!1;for(var i=length-10;0<=i;i--)if(36!==s.charCodeAt(i))return!1;return!0}function strcmp(aStr1,aStr2){return aStr1===aStr2?0:aStr1>aStr2?1:-1}exports.getArg=function(aArgs,aName,aDefaultValue){if(aName in aArgs)return aArgs[aName];if(3===arguments.length)return aDefaultValue;throw new Error('"'+aName+'" is a required argument.')};var urlRegexp=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,dataUrlRegexp=/^data:.+\,.+$/;exports.urlParse=urlParse,exports.urlGenerate=urlGenerate,exports.normalize=normalize,exports.join=function(aRoot,aPath){''===aRoot&&(aRoot='.'),''===aPath&&(aPath='.');var aPathUrl=urlParse(aPath),aRootUrl=urlParse(aRoot);if(aRootUrl&&(aRoot=aRootUrl.path||'/'),aPathUrl&&!aPathUrl.scheme)return aRootUrl&&(aPathUrl.scheme=aRootUrl.scheme),urlGenerate(aPathUrl);if(aPathUrl||aPath.match(dataUrlRegexp))return aPath;if(aRootUrl&&!aRootUrl.host&&!aRootUrl.path)return aRootUrl.host=aPath,urlGenerate(aRootUrl);var joined='/'===aPath.charAt(0)?aPath:normalize(aRoot.replace(/\/+$/,'')+'/'+aPath);return aRootUrl?(aRootUrl.path=joined,urlGenerate(aRootUrl)):joined},exports.isAbsolute=function(aPath){return'/'===aPath.charAt(0)||!!aPath.match(urlRegexp)},exports.relative=function(aRoot,aPath){''===aRoot&&(aRoot='.'),aRoot=aRoot.replace(/\/$/,'');for(var level=0,index;0!==aPath.indexOf(aRoot+'/');){if(index=aRoot.lastIndexOf('/'),0>index)return aPath;if(aRoot=aRoot.slice(0,index),aRoot.match(/^([^\/]+:\/)?\/*$/))return aPath;++level}return Array(level+1).join('../')+aPath.substr(aRoot.length+1)};var supportsNullProto=function(){var obj=Object.create(null);return!('__proto__'in obj)}();exports.toSetString=supportsNullProto?identity:function(aStr){return isProtoString(aStr)?'$'+aStr:aStr},exports.fromSetString=supportsNullProto?identity:function(aStr){return isProtoString(aStr)?aStr.slice(1):aStr},exports.compareByOriginalPositions=function(mappingA,mappingB,onlyCompareOriginal){var cmp=mappingA.source-mappingB.source;return 0==cmp?(cmp=mappingA.originalLine-mappingB.originalLine,0!=cmp)?cmp:(cmp=mappingA.originalColumn-mappingB.originalColumn,0!=cmp||onlyCompareOriginal)?cmp:(cmp=mappingA.generatedColumn-mappingB.generatedColumn,0!=cmp)?cmp:(cmp=mappingA.generatedLine-mappingB.generatedLine,0==cmp?mappingA.name-mappingB.name:cmp):cmp},exports.compareByGeneratedPositionsDeflated=function(mappingA,mappingB,onlyCompareGenerated){var cmp=mappingA.generatedLine-mappingB.generatedLine;return 0==cmp?(cmp=mappingA.generatedColumn-mappingB.generatedColumn,0!=cmp||onlyCompareGenerated)?cmp:(cmp=mappingA.source-mappingB.source,0!=cmp)?cmp:(cmp=mappingA.originalLine-mappingB.originalLine,0!=cmp)?cmp:(cmp=mappingA.originalColumn-mappingB.originalColumn,0==cmp?mappingA.name-mappingB.name:cmp):cmp},exports.compareByGeneratedPositionsInflated=function(mappingA,mappingB){var cmp=mappingA.generatedLine-mappingB.generatedLine;return 0==cmp?(cmp=mappingA.generatedColumn-mappingB.generatedColumn,0!=cmp)?cmp:(cmp=strcmp(mappingA.source,mappingB.source),0!==cmp)?cmp:(cmp=mappingA.originalLine-mappingB.originalLine,0!==cmp)?cmp:(cmp=mappingA.originalColumn-mappingB.originalColumn,0===cmp?strcmp(mappingA.name,mappingB.name):cmp):cmp}},function(module,exports,__webpack_require__){'use strict';Object.defineProperty(exports,'__esModule',{value:!0}),exports.default=function(node,builder){var str=new _lessStringifier2.default(builder);str.stringify(node)};var _lessStringifier=__webpack_require__(108),_lessStringifier2=function(obj){return obj&&obj.__esModule?obj:{default:obj}}(_lessStringifier);module.exports=exports['default']},function(module,exports,__webpack_require__){'use strict';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&&('object'==typeof call||'function'==typeof call)?call:self}function _inherits(subClass,superClass){if('function'!=typeof superClass&&null!==superClass)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:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}function cleanSource(nodes){return nodes.map(function(i){return i.nodes&&(i.nodes=cleanSource(i.nodes)),delete i.source,i})}exports.__esModule=!0;var _createClass=function(){function defineProperties(target,props){for(var i=0,descriptor;i=_iterator.length)break;_ref=_iterator[_i++]}else{if(_i=_iterator.next(),_i.done)break;_ref=_i.value}for(var child=_ref,nodes=this.normalize(child,this.last),_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{if(_i2=_iterator2.next(),_i2.done)break;_ref2=_i2.value}var node=_ref2;this.nodes.push(node)}}return this},Container.prototype.prepend=function(){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{if(_i3=_iterator3.next(),_i3.done)break;_ref3=_i3.value}for(var child=_ref3,nodes=this.normalize(child,this.first,'prepend').reverse(),_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{if(_i4=_iterator4.next(),_i4.done)break;_ref4=_i4.value}var node=_ref4;this.nodes.unshift(node)}for(var id in this.indexes)this.indexes[id]+=nodes.length}return this},Container.prototype.cleanRaws=function(keepBetween){if(_Node.prototype.cleanRaws.call(this,keepBetween),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{if(_i5=_iterator5.next(),_i5.done)break;_ref5=_i5.value}var node=_ref5;node.cleanRaws(keepBetween)}},Container.prototype.insertBefore=function(exist,add){exist=this.index(exist);for(var type=0===exist&&'prepend',nodes=this.normalize(add,this.nodes[exist],type).reverse(),_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{if(_i6=_iterator6.next(),_i6.done)break;_ref6=_i6.value}var node=_ref6;this.nodes.splice(exist,0,node)}var index;for(var id in this.indexes)index=this.indexes[id],exist<=index&&(this.indexes[id]=index+nodes.length);return this},Container.prototype.insertAfter=function(exist,add){exist=this.index(exist);for(var nodes=this.normalize(add,this.nodes[exist]).reverse(),_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{if(_i7=_iterator7.next(),_i7.done)break;_ref7=_i7.value}var node=_ref7;this.nodes.splice(exist+1,0,node)}var index;for(var id in this.indexes)index=this.indexes[id],exist=child&&(this.indexes[id]=index-1);return this},Container.prototype.removeAll=function(){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{if(_i8=_iterator8.next(),_i8.done)break;_ref8=_i8.value}var node=_ref8;node.parent=void 0}return this.nodes=[],this},Container.prototype.replaceValues=function(pattern,opts,callback){return callback||(callback=opts,opts={}),this.walkDecls(function(decl){opts.props&&-1===opts.props.indexOf(decl.prop)||opts.fast&&-1===decl.value.indexOf(opts.fast)||(decl.value=decl.value.replace(pattern,callback))}),this},Container.prototype.every=function(condition){return this.nodes.every(condition)},Container.prototype.some=function(condition){return this.nodes.some(condition)},Container.prototype.index=function(child){return'number'==typeof child?child:this.nodes.indexOf(child)},Container.prototype.normalize=function(nodes,sample){var _this2=this;if('string'==typeof nodes){var parse=__webpack_require__(41);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{if(_i9=_iterator9.next(),_i9.done)break;_ref9=_i9.value}var i=_ref9;i.parent&&i.parent.removeChild(i,'ignore')}}else if('root'===nodes.type){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{if(_i11=_iterator10.next(),_i11.done)break;_ref10=_i11.value}var _i10=_ref10;_i10.parent&&_i10.parent.removeChild(_i10,'ignore')}}else if(nodes.type)nodes=[nodes];else if(nodes.prop){if('undefined'==typeof nodes.value)throw new Error('Value field is missed in node creation');else'string'!=typeof nodes.value&&(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){return'function'!=typeof i.before&&(i=_this2.rebuild(i)),i.parent&&i.parent.removeChild(i),'undefined'==typeof i.raws.before&&sample&&'undefined'!=typeof sample.raws.before&&(i.raws.before=sample.raws.before.replace(/[^\s]/g,'')),i.parent=_this2,i});return processed},Container.prototype.rebuild=function(node,parent){var _this3=this,fix=void 0;if('root'===node.type){var Root=__webpack_require__(43);fix=new Root}else if('atrule'===node.type){var AtRule=__webpack_require__(16);fix=new AtRule}else if('rule'===node.type){var Rule=__webpack_require__(20);fix=new Rule}else'decl'===node.type?fix=new _declaration2.default:'comment'===node.type&&(fix=new _comment2.default);for(var i in node)'nodes'==i?fix.nodes=node.nodes.map(function(j){return _this3.rebuild(j,fix)}):'parent'==i&&parent?fix.parent=parent:node.hasOwnProperty(i)&&(fix[i]=node[i]);return fix},_createClass(Container,[{key:'first',get:function(){return this.nodes?this.nodes[0]:void 0}},{key:'last',get:function(){return this.nodes?this.nodes[this.nodes.length-1]:void 0}}]),Container}(_node2.default);exports.default=Container,module.exports=exports['default']},function(module){function defaultSetTimout(){throw new Error('setTimeout has not been defined')}function defaultClearTimeout(){throw new Error('clearTimeout has not been defined')}function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout)return clearTimeout(marker);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(marker);try{return cachedClearTimeout(marker)}catch(e){try{return cachedClearTimeout.call(null,marker)}catch(e){return cachedClearTimeout.call(this,marker)}}}function cleanUpNextTick(){draining&¤tQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndexsize)throw new RangeError('"size" argument must not be negative')}function alloc(that,size,fill,encoding){return assertSize(size),0>=size?createBuffer(that,size):void 0===fill?createBuffer(that,size):'string'==typeof encoding?createBuffer(that,size).fill(fill,encoding):createBuffer(that,size).fill(fill)}function allocUnsafe(that,size){if(assertSize(size),that=createBuffer(that,0>size?0:0|checked(size)),!Buffer.TYPED_ARRAY_SUPPORT)for(var i=0;iarray.length?0:0|checked(array.length);that=createBuffer(that,length);for(var i=0;ibyteOffset||array.byteLength=kMaxLength())throw new RangeError('Attempt to allocate Buffer larger than maximum size: 0x'+kMaxLength().toString(16)+' bytes');return 0|length}function byteLength(string,encoding){if(Buffer.isBuffer(string))return string.length;if('undefined'!=typeof ArrayBuffer&&'function'==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(string)||string instanceof ArrayBuffer))return string.byteLength;'string'!=typeof string&&(string=''+string);var len=string.length;if(0===len)return 0;for(var loweredCase=!1;;)switch(encoding){case'ascii':case'latin1':case'binary':return len;case'utf8':case'utf-8':case void 0:return utf8ToBytes(string).length;case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return 2*len;case'hex':return len>>>1;case'base64':return base64ToBytes(string).length;default:if(loweredCase)return utf8ToBytes(string).length;encoding=(''+encoding).toLowerCase(),loweredCase=!0;}}function slowToString(encoding,start,end){var loweredCase=!1;if((void 0===start||0>start)&&(start=0),start>this.length)return'';if((void 0===end||end>this.length)&&(end=this.length),0>=end)return'';if(end>>>=0,start>>>=0,end<=start)return'';for(encoding||(encoding='utf8');;)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=!0;}}function swap(b,n,m){var i=b[n];b[n]=b[m],b[m]=i}function bidirectionalIndexOf(buffer,val,byteOffset,encoding,dir){if(0===buffer.length)return-1;if('string'==typeof byteOffset?(encoding=byteOffset,byteOffset=0):2147483647byteOffset&&(byteOffset=-2147483648),byteOffset=+byteOffset,isNaN(byteOffset)&&(byteOffset=dir?0:buffer.length-1),0>byteOffset&&(byteOffset=buffer.length+byteOffset),byteOffset>=buffer.length){if(dir)return-1;byteOffset=buffer.length-1}else if(0>byteOffset)if(dir)byteOffset=0;else return-1;if('string'==typeof val&&(val=Buffer.from(val,encoding)),Buffer.isBuffer(val))return 0===val.length?-1:arrayIndexOf(buffer,val,byteOffset,encoding,dir);if('number'==typeof val)return val&=255,Buffer.TYPED_ARRAY_SUPPORT&&'function'==typeof Uint8Array.prototype.indexOf?dir?Uint8Array.prototype.indexOf.call(buffer,val,byteOffset):Uint8Array.prototype.lastIndexOf.call(buffer,val,byteOffset):arrayIndexOf(buffer,[val],byteOffset,encoding,dir);throw new TypeError('val must be string, number or Buffer')}function arrayIndexOf(arr,val,byteOffset,encoding,dir){function read(buf,i){return 1==indexSize?buf[i]:buf.readUInt16BE(i*indexSize)}var indexSize=1,arrLength=arr.length,valLength=val.length;if(void 0!==encoding&&(encoding=(encoding+'').toLowerCase(),'ucs2'===encoding||'ucs-2'===encoding||'utf16le'===encoding||'utf-16le'===encoding)){if(2>arr.length||2>val.length)return-1;indexSize=2,arrLength/=2,valLength/=2,byteOffset/=2}var i;if(dir){var foundIndex=-1;for(i=byteOffset;iarrLength&&(byteOffset=arrLength-valLength),i=byteOffset;0<=i;i--){for(var found=!0,j=0;jremaining&&(length=remaining)):length=remaining;var strLen=string.length;if(0!=strLen%2)throw new TypeError('Invalid hex string');length>strLen/2&&(length=strLen/2);for(var i=0,parsed;ifirstByte&&(codePoint=firstByte):2==bytesPerSequence?(secondByte=buf[i+1],128==(192&secondByte)&&(tempCodePoint=(31&firstByte)<<6|63&secondByte,127tempCodePoint||57343tempCodePoint&&(codePoint=tempCodePoint))):void 0}null===codePoint?(codePoint=65533,bytesPerSequence=1):65535>>10),codePoint=56320|1023&codePoint),res.push(codePoint),i+=bytesPerSequence}return decodeCodePointsArray(res)}function decodeCodePointsArray(codePoints){var len=codePoints.length;if(len<=MAX_ARGUMENTS_LENGTH)return _StringfromCharCode.apply(String,codePoints);for(var res='',i=0;istart)&&(start=0),(!end||0>end||end>len)&&(end=len);for(var out='',i=start;ioffset)throw new RangeError('offset is not uint');if(offset+ext>length)throw new RangeError('Trying to access beyond buffer length')}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||valuebuf.length)throw new RangeError('Index out of range')}function objectWriteUInt16(buf,value,offset,littleEndian){0>value&&(value=65535+value+1);for(var i=0,j=_Mathmin(buf.length-offset,2);i>>8*(littleEndian?i:1-i)}function objectWriteUInt32(buf,value,offset,littleEndian){0>value&&(value=4294967295+value+1);for(var i=0,j=_Mathmin(buf.length-offset,4);i>>8*(littleEndian?i:3-i)}function checkIEEE754(buf,value,offset,ext){if(offset+ext>buf.length)throw new RangeError('Index out of range');if(0>offset)throw new RangeError('Index out of range')}function writeFloat(buf,value,offset,littleEndian,noAssert){return noAssert||checkIEEE754(buf,value,offset,4,3.4028234663852886e38,-3.4028234663852886e38),ieee754.write(buf,value,offset,littleEndian,23,4),offset+4}function writeDouble(buf,value,offset,littleEndian,noAssert){return noAssert||checkIEEE754(buf,value,offset,8,1.7976931348623157e308,-1.7976931348623157e308),ieee754.write(buf,value,offset,littleEndian,52,8),offset+8}function base64clean(str){if(str=stringtrim(str).replace(INVALID_BASE64_RE,''),2>str.length)return'';for(;0!=str.length%4;)str+='=';return str}function stringtrim(str){return str.trim?str.trim():str.replace(/^\s+|\s+$/g,'')}function toHex(n){return 16>n?'0'+n.toString(16):n.toString(16)}function utf8ToBytes(string,units){units=units||Infinity;for(var length=string.length,leadSurrogate=null,bytes=[],i=0,codePoint;icodePoint){if(!leadSurrogate){if(56319codePoint){-1<(units-=3)&&bytes.push(239,191,189),leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else leadSurrogate&&-1<(units-=3)&&bytes.push(239,191,189);if(leadSurrogate=null,128>codePoint){if(0>(units-=1))break;bytes.push(codePoint)}else if(2048>codePoint){if(0>(units-=2))break;bytes.push(192|codePoint>>6,128|63&codePoint)}else if(65536>codePoint){if(0>(units-=3))break;bytes.push(224|codePoint>>12,128|63&codePoint>>6,128|63&codePoint)}else if(1114112>codePoint){if(0>(units-=4))break;bytes.push(240|codePoint>>18,128|63&codePoint>>12,128|63&codePoint>>6,128|63&codePoint)}else throw new Error('Invalid code point')}return bytes}function asciiToBytes(str){for(var byteArray=[],i=0;i(units-=2));++i)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=dst.length||i>=src.length);++i)dst[i+offset]=src[i];return i}function isnan(val){return val!==val}var base64=__webpack_require__(98),ieee754=__webpack_require__(102),isArray=__webpack_require__(103);exports.Buffer=Buffer,exports.SlowBuffer=function(length){return+length!=length&&(length=0),Buffer.alloc(+length)},exports.INSPECT_MAX_BYTES=50,Buffer.TYPED_ARRAY_SUPPORT=global.TYPED_ARRAY_SUPPORT===void 0?function(){try{var arr=new Uint8Array(1);return arr.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===arr.foo()&&'function'==typeof arr.subarray&&0===arr.subarray(1,1).byteLength}catch(e){return!1}}():global.TYPED_ARRAY_SUPPORT,exports.kMaxLength=kMaxLength(),Buffer.poolSize=8192,Buffer._augment=function(arr){return arr.__proto__=Buffer.prototype,arr},Buffer.from=function(value,encodingOrOffset,length){return from(null,value,encodingOrOffset,length)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,'undefined'!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(size,fill,encoding){return alloc(null,size,fill,encoding)},Buffer.allocUnsafe=function(size){return allocUnsafe(null,size)},Buffer.allocUnsafeSlow=function(size){return allocUnsafe(null,size)},Buffer.isBuffer=function(b){return!!(null!=b&&b._isBuffer)},Buffer.compare=function(a,b){if(!Buffer.isBuffer(a)||!Buffer.isBuffer(b))throw new TypeError('Arguments must be Buffers');if(a===b)return 0;for(var x=a.length,y=b.length,i=0,len=_Mathmin(x,y);imax&&(str+=' ... ')),''},Buffer.prototype.compare=function(target,start,end,thisStart,thisEnd){if(!Buffer.isBuffer(target))throw new TypeError('Argument must be a Buffer');if(void 0===start&&(start=0),void 0===end&&(end=target?target.length:0),void 0===thisStart&&(thisStart=0),void 0===thisEnd&&(thisEnd=this.length),0>start||end>target.length||0>thisStart||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;if(start>>>=0,end>>>=0,thisStart>>>=0,thisEnd>>>=0,this===target)return 0;for(var x=thisEnd-thisStart,y=end-start,len=_Mathmin(x,y),thisCopy=this.slice(thisStart,thisEnd),targetCopy=target.slice(start,end),i=0;iremaining)&&(length=remaining),0length||0>offset)||offset>this.length)throw new RangeError('Attempt to write outside buffer bounds');encoding||(encoding='utf8');for(var loweredCase=!1;;)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':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=!0;}},Buffer.prototype.toJSON=function(){return{type:'Buffer',data:Array.prototype.slice.call(this._arr||this,0)}};var MAX_ARGUMENTS_LENGTH=4096;Buffer.prototype.slice=function(start,end){var len=this.length;start=~~start,end=end===void 0?len:~~end,0>start?(start+=len,0>start&&(start=0)):start>len&&(start=len),0>end?(end+=len,0>end&&(end=0)):end>len&&(end=len),end=mul&&(val-=_Mathpow(2,8*byteLength)),val},Buffer.prototype.readIntBE=function(offset,byteLength,noAssert){offset|=0,byteLength|=0,noAssert||checkOffset(offset,byteLength,this.length);for(var i=byteLength,mul=1,val=this[offset+--i];0=mul&&(val-=_Mathpow(2,8*byteLength)),val},Buffer.prototype.readInt8=function(offset,noAssert){return noAssert||checkOffset(offset,1,this.length),128&this[offset]?-1*(255-this[offset]+1):this[offset]},Buffer.prototype.readInt16LE=function(offset,noAssert){noAssert||checkOffset(offset,2,this.length);var val=this[offset]|this[offset+1]<<8;return 32768&val?4294901760|val:val},Buffer.prototype.readInt16BE=function(offset,noAssert){noAssert||checkOffset(offset,2,this.length);var val=this[offset+1]|this[offset]<<8;return 32768&val?4294901760|val:val},Buffer.prototype.readInt32LE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24},Buffer.prototype.readInt32BE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3]},Buffer.prototype.readFloatLE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),ieee754.read(this,offset,!0,23,4)},Buffer.prototype.readFloatBE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),ieee754.read(this,offset,!1,23,4)},Buffer.prototype.readDoubleLE=function(offset,noAssert){return noAssert||checkOffset(offset,8,this.length),ieee754.read(this,offset,!0,52,8)},Buffer.prototype.readDoubleBE=function(offset,noAssert){return noAssert||checkOffset(offset,8,this.length),ieee754.read(this,offset,!1,52,8)},Buffer.prototype.writeUIntLE=function(value,offset,byteLength,noAssert){if(value=+value,offset|=0,byteLength|=0,!noAssert){var maxBytes=_Mathpow(2,8*byteLength)-1;checkInt(this,value,offset,byteLength,maxBytes,0)}var mul=1,i=0;for(this[offset]=255&value;++i>>8):objectWriteUInt16(this,value,offset,!0),offset+2},Buffer.prototype.writeUInt16BE=function(value,offset,noAssert){return value=+value,offset|=0,noAssert||checkInt(this,value,offset,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>8,this[offset+1]=255&value):objectWriteUInt16(this,value,offset,!1),offset+2},Buffer.prototype.writeUInt32LE=function(value,offset,noAssert){return value=+value,offset|=0,noAssert||checkInt(this,value,offset,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset+3]=value>>>24,this[offset+2]=value>>>16,this[offset+1]=value>>>8,this[offset]=255&value):objectWriteUInt32(this,value,offset,!0),offset+4},Buffer.prototype.writeUInt32BE=function(value,offset,noAssert){return value=+value,offset|=0,noAssert||checkInt(this,value,offset,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=255&value):objectWriteUInt32(this,value,offset,!1),offset+4},Buffer.prototype.writeIntLE=function(value,offset,byteLength,noAssert){if(value=+value,offset|=0,!noAssert){var limit=_Mathpow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit)}var i=0,mul=1,sub=0;for(this[offset]=255&value;++ivalue&&0==sub&&0!==this[offset+i-1]&&(sub=1),this[offset+i]=255&(value/mul>>0)-sub;return offset+byteLength},Buffer.prototype.writeIntBE=function(value,offset,byteLength,noAssert){if(value=+value,offset|=0,!noAssert){var limit=_Mathpow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit)}var i=byteLength-1,mul=1,sub=0;for(this[offset+i]=255&value;0<=--i&&(mul*=256);)0>value&&0==sub&&0!==this[offset+i+1]&&(sub=1),this[offset+i]=255&(value/mul>>0)-sub;return offset+byteLength},Buffer.prototype.writeInt8=function(value,offset,noAssert){return value=+value,offset|=0,noAssert||checkInt(this,value,offset,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(value=_Mathfloor(value)),0>value&&(value=255+value+1),this[offset]=255&value,offset+1},Buffer.prototype.writeInt16LE=function(value,offset,noAssert){return value=+value,offset|=0,noAssert||checkInt(this,value,offset,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=255&value,this[offset+1]=value>>>8):objectWriteUInt16(this,value,offset,!0),offset+2},Buffer.prototype.writeInt16BE=function(value,offset,noAssert){return value=+value,offset|=0,noAssert||checkInt(this,value,offset,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>8,this[offset+1]=255&value):objectWriteUInt16(this,value,offset,!1),offset+2},Buffer.prototype.writeInt32LE=function(value,offset,noAssert){return value=+value,offset|=0,noAssert||checkInt(this,value,offset,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=255&value,this[offset+1]=value>>>8,this[offset+2]=value>>>16,this[offset+3]=value>>>24):objectWriteUInt32(this,value,offset,!0),offset+4},Buffer.prototype.writeInt32BE=function(value,offset,noAssert){return value=+value,offset|=0,noAssert||checkInt(this,value,offset,4,2147483647,-2147483648),0>value&&(value=4294967295+value+1),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=255&value):objectWriteUInt32(this,value,offset,!1),offset+4},Buffer.prototype.writeFloatLE=function(value,offset,noAssert){return writeFloat(this,value,offset,!0,noAssert)},Buffer.prototype.writeFloatBE=function(value,offset,noAssert){return writeFloat(this,value,offset,!1,noAssert)},Buffer.prototype.writeDoubleLE=function(value,offset,noAssert){return writeDouble(this,value,offset,!0,noAssert)},Buffer.prototype.writeDoubleBE=function(value,offset,noAssert){return writeDouble(this,value,offset,!1,noAssert)},Buffer.prototype.copy=function(target,targetStart,start,end){if(start||(start=0),end||0===end||(end=this.length),targetStart>=target.length&&(targetStart=target.length),targetStart||(targetStart=0),0targetStart)throw new RangeError('targetStart out of bounds');if(0>start||start>=this.length)throw new RangeError('sourceStart out of bounds');if(0>end)throw new RangeError('sourceEnd out of bounds');end>this.length&&(end=this.length),target.length-targetStartlen||!Buffer.TYPED_ARRAY_SUPPORT)for(i=0;icode&&(val=code)}if(void 0!==encoding&&'string'!=typeof encoding)throw new TypeError('encoding must be a string');if('string'==typeof encoding&&!Buffer.isEncoding(encoding))throw new TypeError('Unknown encoding: '+encoding)}else'number'==typeof val&&(val&=255);if(0>start||this.length>>=0,end=end===void 0?this.length:end>>>0,val||(val=0);var i;if('number'==typeof val)for(i=start;i'),this.map&&(this.map.file=this.from)}return Input.prototype.error=function(message,line,column){var opts=3=_iterator.length)break;_ref=_iterator[_i++]}else{if(_i=_iterator.next(),_i.done)break;_ref=_i.value}var node=_ref;this.parent.insertBefore(this,node)}this.remove()}return this},Node.prototype.moveTo=function(newParent){return(0,_warnOnce2.default)('Node#moveTo was deprecated. Use Container#append.'),this.cleanRaws(this.root()===newParent.root()),this.remove(),newParent.append(this),this},Node.prototype.moveBefore=function(otherNode){return(0,_warnOnce2.default)('Node#moveBefore was deprecated. Use Node#before.'),this.cleanRaws(this.root()===otherNode.root()),this.remove(),otherNode.parent.insertBefore(otherNode,this),this},Node.prototype.moveAfter=function(otherNode){return(0,_warnOnce2.default)('Node#moveAfter was deprecated. Use Node#after.'),this.cleanRaws(this.root()===otherNode.root()),this.remove(),otherNode.parent.insertAfter(otherNode,this),this},Node.prototype.next=function(){var index=this.parent.index(this);return this.parent.nodes[index+1]},Node.prototype.prev=function(){var index=this.parent.index(this);return this.parent.nodes[index-1]},Node.prototype.before=function(add){return this.parent.insertBefore(this,add),this},Node.prototype.after=function(add){return this.parent.insertAfter(this,add),this},Node.prototype.toJSON=function(){var fixed={};for(var name in this)if(this.hasOwnProperty(name)&&'parent'!=name){var value=this[name];fixed[name]=value instanceof Array?value.map(function(i){return'object'===('undefined'==typeof i?'undefined':_typeof(i))&&i.toJSON?i.toJSON():i}):'object'===('undefined'==typeof value?'undefined':_typeof(value))&&value.toJSON?value.toJSON():value}return fixed},Node.prototype.raw=function(prop,defaultType){var str=new _stringifier2.default;return str.raw(this,prop,defaultType)},Node.prototype.root=function(){for(var result=this;result.parent;)result=result.parent;return result},Node.prototype.cleanRaws=function(keepBetween){delete this.raws.before,delete this.raws.after,keepBetween||delete this.raws.between},Node.prototype.positionInside=function(index){for(var string=this.toString(),column=this.source.start.column,line=this.source.start.line,i=0;i=child&&(this.indexes[id]=index-1);return this},Container.prototype.removeAll=function(){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{if(_i=_iterator.next(),_i.done)break;_ref=_i.value}var node=_ref;node.parent=void 0}return this.nodes=[],this},Container.prototype.empty=function(){return this.removeAll()},Container.prototype.insertAfter=function(oldNode,newNode){var oldIndex=this.index(oldNode);this.nodes.splice(oldIndex+1,0,newNode);var index;for(var id in this.indexes)index=this.indexes[id],oldIndex<=index&&(this.indexes[id]=index+this.nodes.length);return this},Container.prototype.insertBefore=function(oldNode,newNode){var oldIndex=this.index(oldNode);this.nodes.splice(oldIndex,0,newNode);var index;for(var id in this.indexes)index=this.indexes[id],oldIndex<=index&&(this.indexes[id]=index+this.nodes.length);return this},Container.prototype.each=function(callback){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var id=this.lastEach;if(this.indexes[id]=0,!!this.length){for(var index,result;this.indexes[id]=_iterator.length)break;_ref=_iterator[_i++]}else{if(_i=_iterator.next(),_i.done)break;_ref=_i.value}for(var child=_ref,nodes=this.normalize(child,this.last),_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{if(_i2=_iterator2.next(),_i2.done)break;_ref2=_i2.value}var node=_ref2;this.nodes.push(node)}}return this},Container.prototype.prepend=function(){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{if(_i3=_iterator3.next(),_i3.done)break;_ref3=_i3.value}for(var child=_ref3,nodes=this.normalize(child,this.first,'prepend').reverse(),_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{if(_i4=_iterator4.next(),_i4.done)break;_ref4=_i4.value}var node=_ref4;this.nodes.unshift(node)}for(var id in this.indexes)this.indexes[id]+=nodes.length}return this},Container.prototype.cleanRaws=function(keepBetween){if(_Node.prototype.cleanRaws.call(this,keepBetween),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{if(_i5=_iterator5.next(),_i5.done)break;_ref5=_i5.value}var node=_ref5;node.cleanRaws(keepBetween)}},Container.prototype.insertBefore=function(exist,add){exist=this.index(exist);for(var type=0===exist&&'prepend',nodes=this.normalize(add,this.nodes[exist],type).reverse(),_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{if(_i6=_iterator6.next(),_i6.done)break;_ref6=_i6.value}var node=_ref6;this.nodes.splice(exist,0,node)}var index;for(var id in this.indexes)index=this.indexes[id],exist<=index&&(this.indexes[id]=index+nodes.length);return this},Container.prototype.insertAfter=function(exist,add){exist=this.index(exist);for(var nodes=this.normalize(add,this.nodes[exist]).reverse(),_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{if(_i7=_iterator7.next(),_i7.done)break;_ref7=_i7.value}var node=_ref7;this.nodes.splice(exist+1,0,node)}var index;for(var id in this.indexes)index=this.indexes[id],exist=child&&(this.indexes[id]=index-1);return this},Container.prototype.removeAll=function(){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{if(_i8=_iterator8.next(),_i8.done)break;_ref8=_i8.value}var node=_ref8;node.parent=void 0}return this.nodes=[],this},Container.prototype.replaceValues=function(pattern,opts,callback){return callback||(callback=opts,opts={}),this.walkDecls(function(decl){opts.props&&-1===opts.props.indexOf(decl.prop)||opts.fast&&-1===decl.value.indexOf(opts.fast)||(decl.value=decl.value.replace(pattern,callback))}),this},Container.prototype.every=function(condition){return this.nodes.every(condition)},Container.prototype.some=function(condition){return this.nodes.some(condition)},Container.prototype.index=function(child){return'number'==typeof child?child:this.nodes.indexOf(child)},Container.prototype.normalize=function(nodes,sample){var _this2=this;if('string'==typeof nodes){var parse=__webpack_require__(78);nodes=cleanSource(parse(nodes).nodes)}else if(!Array.isArray(nodes))if('root'===nodes.type)nodes=nodes.nodes;else if(nodes.type)nodes=[nodes];else if(nodes.prop){if('undefined'==typeof nodes.value)throw new Error('Value field is missed in node creation');else'string'!=typeof nodes.value&&(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){return'undefined'==typeof i.raws&&(i=_this2.rebuild(i)),i.parent&&(i=i.clone()),'undefined'==typeof i.raws.before&&sample&&'undefined'!=typeof sample.raws.before&&(i.raws.before=sample.raws.before.replace(/[^\s]/g,'')),i.parent=_this2,i});return processed},Container.prototype.rebuild=function(node,parent){var _this3=this,fix=void 0;if('root'===node.type){var Root=__webpack_require__(28);fix=new Root}else if('atrule'===node.type){var AtRule=__webpack_require__(23);fix=new AtRule}else if('rule'===node.type){var Rule=__webpack_require__(10);fix=new Rule}else'decl'===node.type?fix=new _declaration2.default:'comment'===node.type&&(fix=new _comment2.default);for(var i in node)'nodes'==i?fix.nodes=node.nodes.map(function(j){return _this3.rebuild(j,fix)}):'parent'==i&&parent?fix.parent=parent:node.hasOwnProperty(i)&&(fix[i]=node[i]);return fix},Container.prototype.eachInside=function(callback){return(0,_warnOnce2.default)('Container#eachInside is deprecated. Use Container#walk instead.'),this.walk(callback)},Container.prototype.eachDecl=function(prop,callback){return(0,_warnOnce2.default)('Container#eachDecl is deprecated. Use Container#walkDecls instead.'),this.walkDecls(prop,callback)},Container.prototype.eachRule=function(selector,callback){return(0,_warnOnce2.default)('Container#eachRule is deprecated. Use Container#walkRules instead.'),this.walkRules(selector,callback)},Container.prototype.eachAtRule=function(name,callback){return(0,_warnOnce2.default)('Container#eachAtRule is deprecated. Use Container#walkAtRules instead.'),this.walkAtRules(name,callback)},Container.prototype.eachComment=function(callback){return(0,_warnOnce2.default)('Container#eachComment is deprecated. Use Container#walkComments instead.'),this.walkComments(callback)},_createClass(Container,[{key:'first',get:function(){return this.nodes?this.nodes[0]:void 0}},{key:'last',get:function(){return this.nodes?this.nodes[this.nodes.length-1]:void 0}},{key:'semicolon',get:function(){return(0,_warnOnce2.default)('Node#semicolon is deprecated. Use Node#raws.semicolon'),this.raws.semicolon},set:function(val){(0,_warnOnce2.default)('Node#semicolon is deprecated. Use Node#raws.semicolon'),this.raws.semicolon=val}},{key:'after',get:function(){return(0,_warnOnce2.default)('Node#after is deprecated. Use Node#raws.after'),this.raws.after},set:function(val){(0,_warnOnce2.default)('Node#after is deprecated. Use Node#raws.after'),this.raws.after=val}}]),Container}(_node2.default);exports.default=Container,module.exports=exports['default']},function(module,exports,__webpack_require__){'use strict';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')}exports.__esModule=!0;var _createClass=function(){function defineProperties(target,props){for(var i=0,descriptor;i'),this.map&&(this.map.file=this.from)}return Input.prototype.error=function(message,line,column){var opts=3=_iterator.length)break;_ref=_iterator[_i++]}else{if(_i=_iterator.next(),_i.done)break;_ref=_i.value}var node=_ref;this.parent.insertBefore(this,node)}this.remove()}return this},Node.prototype.moveTo=function(newParent){return this.cleanRaws(this.root()===newParent.root()),this.remove(),newParent.append(this),this},Node.prototype.moveBefore=function(otherNode){return this.cleanRaws(this.root()===otherNode.root()),this.remove(),otherNode.parent.insertBefore(otherNode,this),this},Node.prototype.moveAfter=function(otherNode){return this.cleanRaws(this.root()===otherNode.root()),this.remove(),otherNode.parent.insertAfter(otherNode,this),this},Node.prototype.next=function(){var index=this.parent.index(this);return this.parent.nodes[index+1]},Node.prototype.prev=function(){var index=this.parent.index(this);return this.parent.nodes[index-1]},Node.prototype.toJSON=function(){var fixed={};for(var name in this)if(this.hasOwnProperty(name)&&'parent'!=name){var value=this[name];fixed[name]=value instanceof Array?value.map(function(i){return'object'===('undefined'==typeof i?'undefined':_typeof(i))&&i.toJSON?i.toJSON():i}):'object'===('undefined'==typeof value?'undefined':_typeof(value))&&value.toJSON?value.toJSON():value}return fixed},Node.prototype.raw=function(prop,defaultType){var str=new _stringifier2.default;return str.raw(this,prop,defaultType)},Node.prototype.root=function(){for(var result=this;result.parent;)result=result.parent;return result},Node.prototype.cleanRaws=function(keepBetween){delete this.raws.before,delete this.raws.after,keepBetween||delete this.raws.between},Node.prototype.positionInside=function(index){for(var string=this.toString(),column=this.source.start.column,line=this.source.start.line,i=0;i=_iterator.length)break;_ref=_iterator[_i++]}else{if(_i=_iterator.next(),_i.done)break;_ref=_i.value}var node=_ref;node.raws.before=sample.raws.before}return nodes},Root.prototype.toResult=function(){var opts=0start;){var token=this.tokens[this.pos][0];if('space'!==token&&'comment'!==token)break;this.pos-=1}return this.createDeclaration({start:start}),!0}return!1}},{key:'tokenize',value:function(){this.tokens=(0,_lessTokenize2.default)(this.input)}}]),LessParser}(_parser2.default);exports.default=LessParser,module.exports=exports['default']},function(module){'use strict';module.exports=function(){return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g}},function(module){module.exports=function(list,depth){function _flatten(list,d){return list.reduce(function(acc,item){return Array.isArray(item)&&dc.length){var cc=c.charCodeAt(0);return 128>cc?c:2048>cc?fromCharCode(192|cc>>>6)+fromCharCode(128|63&cc):fromCharCode(224|15&cc>>>12)+fromCharCode(128|63&cc>>>6)+fromCharCode(128|63&cc)}var cc=65536+1024*(c.charCodeAt(0)-55296)+(c.charCodeAt(1)-56320);return fromCharCode(240|7&cc>>>18)+fromCharCode(128|63&cc>>>12)+fromCharCode(128|63&cc>>>6)+fromCharCode(128|63&cc)},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(u){return u.replace(re_utob,cb_utob)},cb_encode=function(ccc){var padlen=[0,2,1][ccc.length%3],ord=ccc.charCodeAt(0)<<16|(1>>18),b64chars.charAt(63&ord>>>12),2<=padlen?'=':b64chars.charAt(63&ord>>>6),1<=padlen?'=':b64chars.charAt(63&ord)];return chars.join('')},btoa=global.btoa?function(b){return global.btoa(b)}:function(b){return b.replace(/[\s\S]{1,3}/g,cb_encode)},_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))},encode=function(u,urisafe){return urisafe?_encode(u+'').replace(/[+\/]/g,function(m0){return'+'==m0?'-':'_'}).replace(/=/g,''):_encode(u+'')},re_btou=/[À-ß][€-¿]|[à-ï][€-¿]{2}|[ð-÷][€-¿]{3}/g,cb_btou=function(cccc){switch(cccc.length){case 4:var cp=(7&cccc.charCodeAt(0))<<18|(63&cccc.charCodeAt(1))<<12|(63&cccc.charCodeAt(2))<<6|63&cccc.charCodeAt(3),offset=cp-65536;return fromCharCode((offset>>>10)+55296)+fromCharCode((1023&offset)+56320);case 3:return fromCharCode((15&cccc.charCodeAt(0))<<12|(63&cccc.charCodeAt(1))<<6|63&cccc.charCodeAt(2));default:return fromCharCode((31&cccc.charCodeAt(0))<<6|63&cccc.charCodeAt(1));}},btou=function(b){return b.replace(re_btou,cb_btou)},cb_decode=function(cccc){var len=cccc.length,n=(0>>16),fromCharCode(255&n>>>8),fromCharCode(255&n)];return chars.length-=[0,0,2,1][len%4],chars.join('')},atob=global.atob?function(a){return global.atob(a)}:function(a){return a.replace(/[\s\S]{1,4}/g,cb_decode)},_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))},decode=function(a){return _decode((a+'').replace(/[-_]/g,function(m0){return'-'==m0?'+':'/'}).replace(/[^A-Za-z0-9\+\/]/g,''))};if(global.Base64={VERSION:'2.3.2',atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:function(u){return encode(u,!0)},btou:btou,decode:decode,noConflict:function(){var Base64=global.Base64;return global.Base64=_Base64,Base64}},'function'==typeof Object.defineProperty){var noEnum=function(v){return{value:v,enumerable:!1,writable:!0,configurable:!0}};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,!0)}))}}global.Meteor&&(Base64=global.Base64),'undefined'!=typeof module&&module.exports?module.exports.Base64=global.Base64:(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return global.Base64}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),!(void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})('undefined'==typeof self?'undefined'==typeof window?'undefined'==typeof global?this:global:window:self)}).call(exports,__webpack_require__(30))},function(module,exports,__webpack_require__){'use strict';function Container(opts){var _this=this;this.constructor(opts),this.nodes=opts.nodes,this.after===void 0&&(this.after=0=arguments.length||void 0===arguments[0]?function(){}:arguments[0],i=0,node;i','undefined'!=typeof this.line&&(this.message+=':'+this.line+':'+this.column),this.message+=': '+this.reason},CssSyntaxError.prototype.showSourceCode=function(color){function mark(text){return color&&_chalk2.default.red?_chalk2.default.red.bold(text):text}function aside(text){return color&&_chalk2.default.gray?_chalk2.default.gray(text):text}var _this=this;if(!this.source)return'';var css=this.source;'undefined'==typeof color&&(color=_supportsColor2.default.stdout),color&&(css=(0,_terminalHighlight2.default)(css));var lines=css.split(/\r?\n/),start=_Mathmax(this.line-3,0),end=_Mathmin(this.line+2,lines.length),maxWidth=(end+'').length;return lines.slice(start,end).map(function(line,index){var number=start+1+index,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('^')}return' '+aside(gutter)+line}).join('\n')},CssSyntaxError.prototype.toString=function(){var code=this.showSourceCode();return code&&(code='\n\n'+code+'\n'),this.name+': '+this.message+code},CssSyntaxError}();exports.default=CssSyntaxError,module.exports=exports['default']},function(module,exports,__webpack_require__){'use strict';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&&('object'==typeof call||'function'==typeof call)?call:self}function _inherits(subClass,superClass){if('function'!=typeof superClass&&null!==superClass)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:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}exports.__esModule=!0;var _node=__webpack_require__(19),_node2=function(obj){return obj&&obj.__esModule?obj:{default:obj}}(_node),Declaration=function(_Node){function Declaration(defaults){_classCallCheck(this,Declaration);var _this=_possibleConstructorReturn(this,_Node.call(this,defaults));return _this.type='decl',_this}return _inherits(Declaration,_Node),Declaration}(_node2.default);exports.default=Declaration,module.exports=exports['default']},function(module,exports,__webpack_require__){'use strict';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'object'===('undefined'==typeof obj?'undefined':_typeof(obj))&&'function'==typeof obj.then}exports.__esModule=!0;var _createClass=function(){function defineProperties(target,props){for(var i=0,descriptor;iparseInt(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){console&&console.error&&console.error(err)}},LazyResult.prototype.asyncTick=function(resolve,reject){var _this=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,resolve();try{var plugin=this.processor.plugins[this.plugin],promise=this.run(plugin);this.plugin+=1,isPromise(promise)?promise.then(function(){_this.asyncTick(resolve,reject)}).catch(function(error){_this.handleError(error,plugin),_this.processed=!0,reject(error)}):this.asyncTick(resolve,reject)}catch(error){this.processed=!0,reject(error)}},LazyResult.prototype.async=function(){var _this2=this;return this.processed?new Promise(function(resolve,reject){_this2.error?reject(_this2.error):resolve(_this2.stringify())}):this.processing?this.processing:(this.processing=new Promise(function(resolve,reject){return _this2.error?reject(_this2.error):void(_this2.plugin=0,_this2.asyncTick(resolve,reject))}).then(function(){return _this2.processed=!0,_this2.stringify()}),this.processing)},LazyResult.prototype.sync=function(){if(this.processed)return this.result;if(this.processed=!0,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{if(_i=_iterator.next(),_i.done)break;_ref=_i.value}var plugin=_ref,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(plugin){this.result.lastPlugin=plugin;try{return plugin(this.result.root,this.result)}catch(error){throw this.handleError(error,plugin),error}},LazyResult.prototype.stringify=function(){if(this.stringified)return this.result;this.stringified=!0,this.sync();var opts=this.result.opts,str=_stringify3.default;opts.syntax&&(str=opts.syntax.stringify),opts.stringifier&&(str=opts.stringifier),str.stringify&&(str=str.stringify);var map=new _mapGenerator2.default(str,this.result.root,this.result.opts),data=map.generate();return this.result.css=data[0],this.result.map=data[1],this.result},_createClass(LazyResult,[{key:'processor',get:function(){return this.result.processor}},{key:'opts',get:function(){return this.result.opts}},{key:'css',get:function(){return this.stringify().css}},{key:'content',get:function(){return this.stringify().content}},{key:'map',get:function(){return this.stringify().map}},{key:'root',get:function(){return this.sync().root}},{key:'messages',get:function(){return this.sync().messages}}]),LazyResult}();exports.default=LazyResult,module.exports=exports['default']},function(module,exports,__webpack_require__){'use strict';function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.__esModule=!0,exports.default=function(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),parser=new _parser2.default(input);try{parser.parse()}catch(e){throw'CssSyntaxError'===e.name&&opts&&opts.from&&(/\.scss$/i.test(opts.from)?e.message+='\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser':/\.sass/i.test(opts.from)?e.message+='\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser':/\.less$/i.test(opts.from)&&(e.message+='\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser')),e}return parser.root};var _parser=__webpack_require__(42),_parser2=_interopRequireDefault(_parser),_input=__webpack_require__(18),_input2=_interopRequireDefault(_input);module.exports=exports['default']},function(module,exports,__webpack_require__){'use strict';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')}exports.__esModule=!0;var _declaration=__webpack_require__(39),_declaration2=_interopRequireDefault(_declaration),_tokenize=__webpack_require__(45),_tokenize2=_interopRequireDefault(_tokenize),_comment=__webpack_require__(17),_comment2=_interopRequireDefault(_comment),_atRule=__webpack_require__(16),_atRule2=_interopRequireDefault(_atRule),_root=__webpack_require__(43),_root2=_interopRequireDefault(_root),_rule=__webpack_require__(20),_rule2=_interopRequireDefault(_rule),Parser=function(){function Parser(input){_classCallCheck(this,Parser),this.input=input,this.root=new _root2.default,this.current=this.root,this.spaces='',this.semicolon=!1,this.createTokenizer(),this.root.source={input:input,start:{line:1,column:1}}}return Parser.prototype.createTokenizer=function(){this.tokenizer=(0,_tokenize2.default)(this.input)},Parser.prototype.parse=function(){for(var token;!this.tokenizer.endOfFile();)switch(token=this.tokenizer.nextToken(),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);}this.endFile()},Parser.prototype.comment=function(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(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(start){for(var end=!1,type=null,colon=!1,bracket=null,brackets=[],tokens=[],token=start;token;){if(type=token[0],tokens.push(token),'('===type||'['===type)bracket||(bracket=token),brackets.push('('===type?')':']');else if(0!==brackets.length)type===brackets[brackets.length-1]&&(brackets.pop(),0===brackets.length&&(bracket=null));else if(';'===type){if(colon)return void this.decl(tokens);break}else{if('{'===type)return void this.rule(tokens);if('}'===type){this.tokenizer.back(tokens.pop()),end=!0;break}else':'===type&&(colon=!0)}token=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(end=!0),0=_iterator.length)break;_ref=_iterator[_i++]}else{if(_i=_iterator.next(),_i.done)break;_ref=_i.value}var node=_ref;node.raws.before=sample.raws.before}return nodes},Root.prototype.toResult=function(){var opts=0=length)){switch(code=css.charCodeAt(pos),(code===NEWLINE||code===FEED||code===CR&&css.charCodeAt(pos+1)!==NEWLINE)&&(offset=pos,line+=1),code){case NEWLINE:case SPACE:case TAB:case CR:case FEED:next=pos;do next+=1,code=css.charCodeAt(next),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:if(prev=buffer.length?buffer.pop()[1]:'',n=css.charCodeAt(pos+1),'url'===prev&&n!==SINGLE_QUOTE&&n!==DOUBLE_QUOTE&&n!==SPACE&&n!==NEWLINE&&n!==TAB&&n!==FEED&&n!==CR){next=pos;do{if(escaped=!1,next=css.indexOf(')',next+1),-1===next)if(ignore){next=pos;break}else unclosed('bracket');for(escapePos=next;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),-1===next||RE_BAD_BRACKET.test(content)?currentToken=['(','(',line,pos-offset]:(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{if(escaped=!1,next=css.indexOf(quote,next+1),-1===next)if(ignore){next=pos+1;break}else unclosed('string');for(escapePos=next;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,0=length}}};var SINGLE_QUOTE=39,DOUBLE_QUOTE=34,BACKSLASH=92,SLASH=47,NEWLINE=10,SPACE=32,FEED=12,TAB=9,CR=13,OPEN_SQUARE=91,CLOSE_SQUARE=93,OPEN_PARENTHESES=40,CLOSE_PARENTHESES=41,OPEN_CURLY=123,CLOSE_CURLY=125,SEMICOLON=59,ASTERISK=42,COLON=58,AT=64,RE_AT_END=/[ \n\t\r\f\{\(\)'"\\;/\[\]#]/g,RE_WORD_END=/[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g,RE_BAD_BRACKET=/.[\\\/\("'\n]/,RE_HEX_ESCAPE=/[a-f0-9]/i;module.exports=exports['default']},function(module,exports){'use strict';exports.__esModule=!0,exports.default=function(message){printed[message]||(printed[message]=!0,'undefined'!=typeof console&&console.warn&&console.warn(message))};var printed={};module.exports=exports['default']},function(module,exports,__webpack_require__){function ArraySet(){this._array=[],this._set=hasNativeMap?new Map:Object.create(null)}var util=__webpack_require__(8),has=Object.prototype.hasOwnProperty,hasNativeMap='undefined'!=typeof Map;ArraySet.fromArray=function(aArray,aAllowDuplicates){for(var set=new ArraySet,i=0,len=aArray.length;iaValue?(-aValue<<1)+1:(aValue<<1)+0}function fromVLQSigned(aValue){var shifted=aValue>>1;return 1==(1&aValue)?-shifted:shifted}var base64=__webpack_require__(139),VLQ_BASE_SHIFT=5,VLQ_BASE=1<>>=VLQ_BASE_SHIFT,0=strLen)throw new Error('Expected more digits in base 64 VLQ value.');if(digit=base64.decode(aStr.charCodeAt(aIndex++)),-1===digit)throw new Error('Invalid base64 digit: '+aStr.charAt(aIndex-1));continuation=!!(digit&VLQ_CONTINUATION_BIT),digit&=VLQ_BASE_MASK,result+=digit<','undefined'!=typeof this.line&&(this.message+=':'+this.line+':'+this.column),this.message+=': '+this.reason},CssSyntaxError.prototype.showSourceCode=function(color){function mark(text){return color?colors.red.bold(text):text}function aside(text){return color?colors.gray(text):text}var _this=this;if(!this.source)return'';var css=this.source;'undefined'==typeof color&&(color=_supportsColor2.default),color&&(css=(0,_terminalHighlight2.default)(css));var lines=css.split(/\r?\n/),start=_Mathmax(this.line-3,0),end=_Mathmin(this.line+2,lines.length),maxWidth=(end+'').length,colors=new _chalk2.default.constructor({enabled:!0});return lines.slice(start,end).map(function(line,index){var number=start+1+index,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('^')}return' '+aside(gutter)+line}).join('\n')},CssSyntaxError.prototype.toString=function(){var code=this.showSourceCode();return code&&(code='\n\n'+code+'\n'),this.name+': '+this.message+code},_createClass(CssSyntaxError,[{key:'generated',get:function(){return(0,_warnOnce2.default)('CssSyntaxError#generated is deprecated. Use input instead.'),this.input}}]),CssSyntaxError}();exports.default=CssSyntaxError,module.exports=exports['default']},function(module,exports,__webpack_require__){'use strict';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&&('object'==typeof call||'function'==typeof call)?call:self}function _inherits(subClass,superClass){if('function'!=typeof superClass&&null!==superClass)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:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}exports.__esModule=!0;var _createClass=function(){function defineProperties(target,props){for(var i=0,descriptor;iparseInt(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){console&&console.error&&console.error(err)}},LazyResult.prototype.asyncTick=function(resolve,reject){var _this=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,resolve();try{var plugin=this.processor.plugins[this.plugin],promise=this.run(plugin);this.plugin+=1,isPromise(promise)?promise.then(function(){_this.asyncTick(resolve,reject)}).catch(function(error){_this.handleError(error,plugin),_this.processed=!0,reject(error)}):this.asyncTick(resolve,reject)}catch(error){this.processed=!0,reject(error)}},LazyResult.prototype.async=function(){var _this2=this;return this.processed?new Promise(function(resolve,reject){_this2.error?reject(_this2.error):resolve(_this2.stringify())}):this.processing?this.processing:(this.processing=new Promise(function(resolve,reject){return _this2.error?reject(_this2.error):void(_this2.plugin=0,_this2.asyncTick(resolve,reject))}).then(function(){return _this2.processed=!0,_this2.stringify()}),this.processing)},LazyResult.prototype.sync=function(){if(this.processed)return this.result;if(this.processed=!0,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{if(_i=_iterator.next(),_i.done)break;_ref=_i.value}var plugin=_ref,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(plugin){this.result.lastPlugin=plugin;try{return plugin(this.result.root,this.result)}catch(error){throw this.handleError(error,plugin),error}},LazyResult.prototype.stringify=function(){if(this.stringified)return this.result;this.stringified=!0,this.sync();var opts=this.result.opts,str=_stringify3.default;opts.syntax&&(str=opts.syntax.stringify),opts.stringifier&&(str=opts.stringifier),str.stringify&&(str=str.stringify);var map=new _mapGenerator2.default(str,this.result.root,this.result.opts),data=map.generate();return this.result.css=data[0],this.result.map=data[1],this.result},_createClass(LazyResult,[{key:'processor',get:function(){return this.result.processor}},{key:'opts',get:function(){return this.result.opts}},{key:'css',get:function(){return this.stringify().css}},{key:'content',get:function(){return this.stringify().content}},{key:'map',get:function(){return this.stringify().map}},{key:'root',get:function(){return this.sync().root}},{key:'messages',get:function(){return this.sync().messages}}]),LazyResult}();exports.default=LazyResult,module.exports=exports['default']},function(module,exports,__webpack_require__){'use strict';function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.__esModule=!0,exports.default=function(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),parser=new _parser2.default(input);try{parser.tokenize(),parser.loop()}catch(e){throw'CssSyntaxError'===e.name&&opts&&opts.from&&(/\.scss$/i.test(opts.from)?e.message+='\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser':/\.sass/i.test(opts.from)?e.message+='\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser':/\.less$/i.test(opts.from)&&(e.message+='\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser')),e}return parser.root};var _parser=__webpack_require__(79),_parser2=_interopRequireDefault(_parser),_input=__webpack_require__(26),_input2=_interopRequireDefault(_input);module.exports=exports['default']},function(module,exports,__webpack_require__){'use strict';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')}exports.__esModule=!0;var _declaration=__webpack_require__(76),_declaration2=_interopRequireDefault(_declaration),_tokenize=__webpack_require__(81),_tokenize2=_interopRequireDefault(_tokenize),_comment=__webpack_require__(24),_comment2=_interopRequireDefault(_comment),_atRule=__webpack_require__(23),_atRule2=_interopRequireDefault(_atRule),_root=__webpack_require__(28),_root2=_interopRequireDefault(_root),_rule=__webpack_require__(10),_rule2=_interopRequireDefault(_rule),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=!1,this.root.source={input:input,start:{line:1,column:1}}}return Parser.prototype.tokenize=function(){this.tokens=(0,_tokenize2.default)(this.input)},Parser.prototype.loop=function(){for(var token;this.posstart&&(token=this.tokens[this.pos][0],'space'===token||'comment'===token);)this.pos-=1;return void this.decl(this.tokens.slice(start,this.pos+1))}this.unknownWord(start)},Parser.prototype.rule=function(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(tokens){var node=new _declaration2.default;this.init(node);var last=tokens[tokens.length-1];for(';'===last[0]&&(this.semicolon=!0,tokens.pop()),node.source.end=last[4]?{line:last[4],column:last[5]}:{line:last[2],column:last[3]};'word'!==tokens[0][0];)node.raws.before+=tokens.shift()[1];for(node.source.start={line:tokens[0][2],column:tokens[0][3]},node.prop='';tokens.length;){var type=tokens[0][0];if(':'===type||'space'===type||'comment'===type)break;node.prop+=tokens.shift()[1]}node.raws.between='';for(var token;tokens.length;)if(token=tokens.shift(),':'===token[0]){node.raws.between+=token[1];break}else node.raws.between+=token[1];('_'===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;0aValue?(-aValue<<1)+1:(aValue<<1)+0}function fromVLQSigned(aValue){var shifted=aValue>>1;return 1==(1&aValue)?-shifted:shifted}var base64=__webpack_require__(164),VLQ_BASE_SHIFT=5,VLQ_BASE=1<>>=VLQ_BASE_SHIFT,0=strLen)throw new Error('Expected more digits in base 64 VLQ value.');if(digit=base64.decode(aStr.charCodeAt(aIndex++)),-1===digit)throw new Error('Invalid base64 digit: '+aStr.charAt(aIndex-1));continuation=!!(digit&VLQ_CONTINUATION_BIT),digit&=VLQ_BASE_MASK,result+=digit<','<=','>='].indexOf(node.value)},isEqualityOperatorNode:function(node){return'value-word'===node.type&&-1!==['==','!='].indexOf(node.value)},isMultiplicationNode,isDivisionNode,isAdditionNode,isSubtractionNode,isModuloNode,isMathOperatorNode:function(node){return isMultiplicationNode(node)||isDivisionNode(node)||isAdditionNode(node)||isSubtractionNode(node)||isModuloNode(node)},isEachKeywordNode:function(node){return'value-word'===node.type&&'in'===node.value},isForKeywordNode:function(node){return'value-word'===node.type&&-1!==['from','through','end'].indexOf(node.value)},isURLFunctionNode:function(node){return'value-func'===node.type&&'url'===node.value.toLowerCase()},isIfElseKeywordNode:function(node){return'value-word'===node.type&&-1!==['and','or','not'].indexOf(node.value)},hasComposesNode:function(node){return node.value&&'value-root'===node.value.type&&node.value.group&&'value-value'===node.value.group.type&&'composes'===node.prop.toLowerCase()},hasParensAroundNode:function(node){return node.value&&node.value.group&&node.value.group.group&&'value-paren_group'===node.value.group.group.type&&null!==node.value.group.group.open&&null!==node.value.group.group.close},hasEmptyRawBefore:function(node){return node.raws&&''===node.raws.before},isSCSSNestedPropertyNode:function(node){return!!node.selector&&node.selector.replace(/\/\*.*?\*\//,'').replace(/\/\/.*?\n/,'').trim().endsWith(':')},isDetachedRulesetCallNode:function(node){return node.raws&&node.raws.params&&/^\(\s*\)$/.test(node.raws.params)},isPostcssSimpleVarNode:function(currentNode,nextNode){return'$$'===currentNode.value&&'value-func'===currentNode.type&&nextNode&&'value-word'===nextNode.type&&!nextNode.raws.before},isKeyValuePairNode,isKeyValuePairInParenGroupNode,isSCSSMapItemNode:function(path){const node=path.getValue();if(0===node.groups.length)return!1;const parentParentNode=path.getParentNode(1);if(!isKeyValuePairInParenGroupNode(node)&&!(parentParentNode&&isKeyValuePairInParenGroupNode(parentParentNode)))return!1;const declNode=getAncestorNode(path,'css-decl');return declNode&&declNode.prop&&declNode.prop.startsWith('$')||!!isKeyValuePairInParenGroupNode(parentParentNode)||!('value-func'!==parentParentNode.type)},isInlineValueCommentNode:function(node){return'value-comment'===node.type&&node.inline},isHashNode:function(node){return'value-word'===node.type&&'#'===node.value},isLeftCurlyBraceNode:function(node){return'value-word'===node.type&&'{'===node.value},isRightCurlyBraceNode:function(node){return'value-word'===node.type&&'}'===node.value},isWordNode:function(node){return-1!==['value-word','value-atword'].indexOf(node.type)},isColonNode:function(node){return'value-colon'===node.type},isMediaAndSupportsKeywords:function(node){return node.value&&-1!==['not','and','or'].indexOf(node.value.toLowerCase())},isColorAdjusterFuncNode:function(node){return!('value-func'!==node.type)&&-1!==colorAdjusterFunctions.indexOf(node.value.toLowerCase())}}},function(module){'use strict';module.exports=function(text){let delimiter;0===text.indexOf('---')?delimiter='---':0===text.indexOf('+++')&&(delimiter='+++');let end=-1;return delimiter&&-1!==(end=text.indexOf(`\n${delimiter}`,3))?(end+=4,{frontMatter:text.slice(0,end),content:text.slice(end)}):{frontMatter:null,content:text}}},function(module){'use strict';module.exports=function(lineColumn,text){let index=0;for(let i=0;i>18]+lookup[63&num>>12]+lookup[63&num>>6]+lookup[63&num]}function encodeChunk(uint8,start,end){for(var output=[],i=start,tmp;i>16,arr[L++]=255&tmp>>8,arr[L++]=255&tmp;return 2===placeHolders?(tmp=revLookup[b64.charCodeAt(i)]<<2|revLookup[b64.charCodeAt(i+1)]>>4,arr[L++]=255&tmp):1===placeHolders&&(tmp=revLookup[b64.charCodeAt(i)]<<10|revLookup[b64.charCodeAt(i+1)]<<4|revLookup[b64.charCodeAt(i+2)]>>2,arr[L++]=255&tmp>>8,arr[L++]=255&tmp),arr},exports.fromByteArray=function(uint8){for(var len=uint8.length,extraBytes=len%3,output='',parts=[],maxChunkLength=16383,i=0,len2=len-extraBytes,tmp;ilen2?len2:i+maxChunkLength));return 1==extraBytes?(tmp=uint8[len-1],output+=lookup[tmp>>2],output+=lookup[63&tmp<<4],output+='=='):2==extraBytes&&(tmp=(uint8[len-2]<<8)+uint8[len-1],output+=lookup[tmp>>10],output+=lookup[63&tmp>>4],output+=lookup[63&tmp<<2],output+='='),parts.push(output),parts.join('')};for(var lookup=[],revLookup=[],Arr='undefined'==typeof Uint8Array?Array:Uint8Array,code='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',i=0,len=code.length;i>1,nBits=-7,i=isLE?nBytes-1:0,d=isLE?-1:1,s=buffer[offset+i],e,m;for(i+=d,e=s&(1<<-nBits)-1,s>>=-nBits,nBits+=eLen;0>=-nBits,nBits+=mLen;0>1,rt=23===mLen?5.960464477539063e-8-6.617444900424222e-24:0,i=isLE?0:nBytes-1,d=isLE?1:-1,s=0>value||0===value&&0>1/value?1:0,e,m,c;for(value=Math.abs(value),isNaN(value)||value===Infinity?(m=isNaN(value)?1:0,e=eMax):(e=_Mathfloor(Math.log(value)/Math.LN2),1>value*(c=_Mathpow(2,-e))&&(e--,c*=2),value+=1<=e+eBias?rt/c:rt*_Mathpow(2,1-eBias),2<=value*c&&(e++,c/=2),e+eBias>=eMax?(m=0,e=eMax):1<=e+eBias?(m=(value*c-1)*_Mathpow(2,mLen),e+=eBias):(m=value*_Mathpow(2,eBias-1)*_Mathpow(2,mLen),e=0));8<=mLen;buffer[offset+i]=255&m,i+=d,m/=256,mLen-=8);for(e=e<pos?(0,_unclosed2.default)(state,'escaping'):state.nextPos=pos}else _globals.wordEndPattern.lastIndex=state.pos+1,_globals.wordEndPattern.test(state.css),state.nextPos=0===_globals.wordEndPattern.lastIndex?state.css.length-1:_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}};var _globals=__webpack_require__(2),_findEndOfEscaping=__webpack_require__(112),_findEndOfEscaping2=_interopRequireDefault(_findEndOfEscaping),_isEscaping=__webpack_require__(113),_isEscaping2=_interopRequireDefault(_isEscaping),_tokenizeInlineComment=__webpack_require__(119),_tokenizeInlineComment2=_interopRequireDefault(_tokenizeInlineComment),_tokenizeMultilineComment=__webpack_require__(120),_tokenizeMultilineComment2=_interopRequireDefault(_tokenizeMultilineComment),_unclosed=__webpack_require__(7),_unclosed2=_interopRequireDefault(_unclosed);module.exports=exports['default']},function(module,exports){'use strict';Object.defineProperty(exports,'__esModule',{value:!0}),exports.default=function(state){state.nextPos=state.css.indexOf('\n',state.pos+2)-1,-2===state.nextPos&&(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']},function(module,exports,__webpack_require__){'use strict';Object.defineProperty(exports,'__esModule',{value:!0}),exports.default=function(state){state.nextPos=state.css.indexOf('*/',state.pos+2)+1,0===state.nextPos&&(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,0=arguments.length||void 0===arguments[1]?0:arguments[1],modesEntered=[{mode:'normal',character:null}],result=[],lastModeIndex=0,mediaFeature='',colon=null,mediaFeatureValue=null,indexLocal=index,stringNormalized=string;'('===string[0]&&')'===string[string.length-1]&&(stringNormalized=string.substring(1,string.length-1),indexLocal++);for(var i=0,character;i=arguments.length||arguments[1]===void 0?0:arguments[1],result=[],localLevel=0,insideSomeValue=!1,node=void 0;node=resetNode();for(var i=0,character;i=_iterator.length)break;_ref=_iterator[_i++]}else{if(_i=_iterator.next(),_i.done)break;_ref=_i.value}var i=_ref;if(withColon)'comment'!==i[0]&&'{'!==i[0]&&(value+=i[1]);else if('space'===i[0]&&-1!==i[1].indexOf('\n'))break;else'('===i[0]?brackets+=1:')'===i[0]?brackets-=1:0==brackets&&':'===i[0]&&(withColon=!0)}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];for(node.source.end=last[4]?{line:last[4],column:last[5]}:{line:last[2],column:last[3]};'word'!==tokens[0][0];)node.raws.before+=tokens.shift()[1];for(node.source.start={line:tokens[0][2],column:tokens[0][3]},node.prop='';tokens.length;){var type=tokens[0][0];if(':'===type||'space'===type||'comment'===type)break;node.prop+=tokens.shift()[1]}node.raws.between='';for(var token;tokens.length;)if(token=tokens.shift(),':'===token[0]){node.raws.between+=token[1];break}else node.raws.between+=token[1];('_'===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;0<_i2;_i2--){if(token=tokens[_i2],'!important'===token[1]){node.important=!0;var string=this.stringFrom(tokens,_i2);string=this.spacesFromEnd(tokens)+string,' !important'!==string&&(node.raws.important=string);break}else if('important'===token[1]){for(var cache=tokens.slice(0),str='',j=_i2,_type;0=length)){switch(code=css.charCodeAt(pos),(code===NEWLINE||code===FEED||code===CR&&css.charCodeAt(pos+1)!==NEWLINE)&&(offset=pos,line+=1),code){case NEWLINE:case SPACE:case TAB:case CR:case FEED:next=pos;do next+=1,code=css.charCodeAt(next),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 COMMA:currentToken=['word',',',line,pos-offset,line,pos-offset+1];break;case COLON:currentToken=[':',':',line,pos-offset];break;case SEMICOLON:currentToken=[';',';',line,pos-offset];break;case OPEN_PARENTHESES:if(prev=buffer.length?buffer.pop()[1]:'',n=css.charCodeAt(pos+1),'url'===prev&&n!==SINGLE_QUOTE&&n!==DOUBLE_QUOTE){for(brackets=1,escaped=!1,next=pos+1;next<=css.length-1;){if(n=css.charCodeAt(next),n===BACKSLASH)escaped=!escaped;else if(n===OPEN_PARENTHESES)brackets+=1;else if(n===CLOSE_PARENTHESES&&(brackets-=1,0===brackets))break;next+=1}content=css.slice(pos,next+1),lines=content.split('\n'),last=lines.length-1,0=length}}};var SINGLE_QUOTE=39,DOUBLE_QUOTE=34,BACKSLASH=92,SLASH=47,NEWLINE=10,SPACE=32,FEED=12,TAB=9,CR=13,OPEN_SQUARE=91,CLOSE_SQUARE=93,OPEN_PARENTHESES=40,CLOSE_PARENTHESES=41,OPEN_CURLY=123,CLOSE_CURLY=125,SEMICOLON=59,ASTERISK=42,COLON=58,AT=64,COMMA=44,HASH=35,RE_AT_END=/[ \n\t\r\f\{\(\)'"\\;/\[\]#]/g,RE_WORD_END=/[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g,RE_BAD_BRACKET=/.[\\\/\("'\n]/,RE_HEX_ESCAPE=/[a-f0-9]/i,RE_NEW_LINE=/[\r\f\n]/g;module.exports=exports['default']},function(module,exports){'use strict';exports.__esModule=!0;var list={split:function(string,separators,last){for(var array=[],current='',split=!1,func=0,quote=!1,escape=!1,i=0,letter;i',original:{line:1,column:0},generated:{line:line,column:column-1}})),lines=str.match(/\n/g),lines?(line+=lines.length,last=str.lastIndexOf('\n'),column=str.length-last):column+=str.length,node&&'start'!==type&&(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}}):_this3.map.addMapping({source:'',original:{line:1,column:0},generated:{line:line,column:column-1}}))})},MapGenerator.prototype.generate=function(){if(this.clearAnnotation(),this.isMap())return this.generateMap();var result='';return this.stringify(this.root,function(i){result+=i}),[result]},MapGenerator}();exports.default=MapGenerator,module.exports=exports['default']}).call(exports,__webpack_require__(15).Buffer)},function(module,exports,__webpack_require__){'use strict';(function(Buffer){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){return Buffer?Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from(str,'base64').toString():new Buffer(str,'base64').toString():window.atob(str)}exports.__esModule=!0;var _typeof='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&'function'==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?'symbol':typeof obj},_sourceMap=__webpack_require__(50),_sourceMap2=_interopRequireDefault(_sourceMap),_path=__webpack_require__(5),_path2=_interopRequireDefault(_path),_fs=__webpack_require__(176),_fs2=_interopRequireDefault(_fs),PreviousMap=function(){function PreviousMap(css,opts){_classCallCheck(this,PreviousMap),this.loadAnnotation(css),this.inline=this.startWith(this.annotation,'data:');var prev=opts.map?opts.map.prev:void 0,text=this.loadMap(opts.from,prev);text&&(this.text=text)}return PreviousMap.prototype.consumer=function(){return this.consumerCache||(this.consumerCache=new _sourceMap2.default.SourceMapConsumer(this.text)),this.consumerCache},PreviousMap.prototype.withContent=function(){return!!(this.consumer().sourcesContent&&0=_iterator.length)break;_ref=_iterator[_i++]}else{if(_i=_iterator.next(),_i.done)break;_ref=_i.value}var i=_ref;if(i.postcss&&(i=i.postcss),'object'===('undefined'==typeof i?'undefined':_typeof(i))&&Array.isArray(i.plugins))normalized=normalized.concat(i.plugins);else if('function'==typeof i)normalized.push(i);else if('object'===('undefined'==typeof i?'undefined':_typeof(i))&&(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},Processor}();exports.default=Processor,module.exports=exports['default']},function(module,exports,__webpack_require__){'use strict';function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError('Cannot call a class as a function')}exports.__esModule=!0;var _createClass=function(){function defineProperties(target,props){for(var i=0,descriptor;iaLow?-1:aLow}exports.GREATEST_LOWER_BOUND=1,exports.LEAST_UPPER_BOUND=2,exports.search=function(aNeedle,aHaystack,aCompare,aBias){if(0===aHaystack.length)return-1;var index=recursiveSearch(-1,aHaystack.length,aNeedle,aHaystack,aCompare,aBias||exports.GREATEST_LOWER_BOUND);if(0>index)return-1;for(;0<=index-1&&!(0!==aCompare(aHaystack[index],aHaystack[index-1],!0));)--index;return index}},function(module,exports,__webpack_require__){function generatedPositionAfter(mappingA,mappingB){var lineA=mappingA.generatedLine,lineB=mappingB.generatedLine,columnA=mappingA.generatedColumn,columnB=mappingB.generatedColumn;return lineB>lineA||lineB==lineA&&columnB>=columnA||0>=util.compareByGeneratedPositionsInflated(mappingA,mappingB)}function MappingList(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var util=__webpack_require__(8);MappingList.prototype.unsortedForEach=function(aCallback,aThisArg){this._array.forEach(aCallback,aThisArg)},MappingList.prototype.add=function(aMapping){generatedPositionAfter(this._last,aMapping)?(this._last=aMapping,this._array.push(aMapping)):(this._sorted=!1,this._array.push(aMapping))},MappingList.prototype.toArray=function(){return this._sorted||(this._array.sort(util.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},exports.MappingList=MappingList},function(module,exports){function swap(ary,x,y){var temp=ary[x];ary[x]=ary[y],ary[y]=temp}function randomIntInRange(low,high){return _Mathround(low+Math.random()*(high-low))}function doQuickSort(ary,comparator,p,r){if(p=comparator(ary[j],pivot)&&(i+=1,swap(ary,i,j));swap(ary,i+1,j);var q=i+1;doQuickSort(ary,comparator,p,q-1),doQuickSort(ary,comparator,q+1,r)}}exports.quickSort=function(ary,comparator){doQuickSort(ary,comparator,0,ary.length-1)}},function(module,exports,__webpack_require__){function SourceMapConsumer(aSourceMap,aSourceMapURL){var sourceMap=aSourceMap;return'string'==typeof aSourceMap&&(sourceMap=util.parseSourceMapInput(aSourceMap)),null==sourceMap.sections?new BasicSourceMapConsumer(sourceMap,aSourceMapURL):new IndexedSourceMapConsumer(sourceMap,aSourceMapURL)}function BasicSourceMapConsumer(aSourceMap,aSourceMapURL){var sourceMap=aSourceMap;'string'==typeof aSourceMap&&(sourceMap=util.parseSourceMapInput(aSourceMap));var version=util.getArg(sourceMap,'version'),sources=util.getArg(sourceMap,'sources'),names=util.getArg(sourceMap,'names',[]),sourceRoot=util.getArg(sourceMap,'sourceRoot',null),sourcesContent=util.getArg(sourceMap,'sourcesContent',null),mappings=util.getArg(sourceMap,'mappings'),file=util.getArg(sourceMap,'file',null);if(version!=this._version)throw new Error('Unsupported version: '+version);sourceRoot&&(sourceRoot=util.normalize(sourceRoot)),sources=sources.map(String).map(util.normalize).map(function(source){return sourceRoot&&util.isAbsolute(sourceRoot)&&util.isAbsolute(source)?util.relative(sourceRoot,source):source}),this._names=ArraySet.fromArray(names.map(String),!0),this._sources=ArraySet.fromArray(sources,!0),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}function Mapping(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function IndexedSourceMapConsumer(aSourceMap,aSourceMapURL){var sourceMap=aSourceMap;'string'==typeof aSourceMap&&(sourceMap=util.parseSourceMapInput(aSourceMap));var version=util.getArg(sourceMap,'version'),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)throw new Error('Support for url field in sections not implemented.');var offset=util.getArg(s,'offset'),offsetLine=util.getArg(offset,'line'),offsetColumn=util.getArg(offset,'column');if(offsetLineneedle.source)return[];var mappings=[],index=this._findMapping(needle,this._originalMappings,'originalLine','originalColumn',util.compareByOriginalPositions,binarySearch.LEAST_UPPER_BOUND);if(0<=index){var mapping=this._originalMappings[index];if(void 0===aArgs.column)for(var originalLine=mapping.originalLine;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 for(var originalColumn=mapping.originalColumn;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,BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype),BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer,BasicSourceMapConsumer.prototype._findSourceIndex=function(aSource){var relativeSource=aSource;if(null!=this.sourceRoot&&(relativeSource=util.relative(this.sourceRoot,relativeSource)),this._sources.has(relativeSource))return this._sources.indexOf(relativeSource);var i;for(i=0;i=aNeedle[aLineName])throw new TypeError('Line must be greater than or equal to 1, got '+aNeedle[aLineName]);if(0>aNeedle[aColumnName])throw new TypeError('Column must be greater than or equal to 0, got '+aNeedle[aColumnName]);return binarySearch.search(aNeedle,aMappings,aComparator,aBias)},BasicSourceMapConsumer.prototype.computeColumnSpans=function(){for(var index=0,mapping;index=this._sources.size()&&!this.sourcesContent.some(function(sc){return null==sc})},BasicSourceMapConsumer.prototype.sourceContentFor=function(aSource,nullOnMissing){if(!this.sourcesContent)return null;var index=this._findSourceIndex(aSource);if(0<=index)return this.sourcesContent[index];var relativeSource=aSource;null!=this.sourceRoot&&(relativeSource=util.relative(this.sourceRoot,relativeSource));var url;if(null!=this.sourceRoot&&(url=util.urlParse(this.sourceRoot))){var fileUriAbsPath=relativeSource.replace(/^file:\/\//,'');if('file'==url.scheme&&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)]}if(nullOnMissing)return null;throw new Error('"'+relativeSource+'" is not in the SourceMap.')},BasicSourceMapConsumer.prototype.generatedPositionFor=function(aArgs){var source=util.getArg(aArgs,'source');if(source=this._findSourceIndex(source),0>source)return{line:null,column:null,lastColumn:null};var needle={source:source,originalLine:util.getArg(aArgs,'line'),originalColumn:util.getArg(aArgs,'column')},index=this._findMapping(needle,this._originalMappings,'originalLine','originalColumn',util.compareByOriginalPositions,util.getArg(aArgs,'bias',SourceMapConsumer.GREATEST_LOWER_BOUND));if(0<=index){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,IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype),IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer,IndexedSourceMapConsumer.prototype._version=3,Object.defineProperty(IndexedSourceMapConsumer.prototype,'sources',{get:function(){for(var sources=[],i=0;i,\[\]\\]|\/(?=\*)/g;module.exports=exports['default']},function(module){'use strict';class ParserError extends Error{constructor(message){super(message),this.name=this.constructor.name,this.message=message||'An error ocurred while parsing.','function'==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(message).stack}}module.exports=ParserError},function(module){'use strict';class TokenizeError extends Error{constructor(message){super(message),this.name=this.constructor.name,this.message=message||'An error ocurred while tokzenizing.','function'==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(message).stack}}module.exports=TokenizeError},function(module,exports,__webpack_require__){'use strict';function sortAscending(list){return list.sort((a,b)=>a-b)}const Root=__webpack_require__(152),Value=__webpack_require__(73),AtWord=__webpack_require__(63),Colon=__webpack_require__(64),Comma=__webpack_require__(65),Comment=__webpack_require__(66),Func=__webpack_require__(67),Numbr=__webpack_require__(68),Operator=__webpack_require__(69),Paren=__webpack_require__(70),Str=__webpack_require__(71),Word=__webpack_require__(74),UnicodeRange=__webpack_require__(72),tokenize=__webpack_require__(153),flatten=__webpack_require__(33),indexesOf=__webpack_require__(34),uniq=__webpack_require__(87),ParserError=__webpack_require__(149);module.exports=class{constructor(input,options){this.cache=[],this.input=input,this.options=Object.assign({},{loose:!1},options),this.position=0,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 inline=!1,value=this.currToken[1].replace(/\/\*|\*\//g,''),node;this.options.loose&&value.startsWith('//')&&(value=value.substring(2),inline=!0),node=new Comment({value:value,inline:inline,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(){for(;this.positionlast.unbalanced&&(last.unbalanced=0,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++,'func'===this.current.type&&this.current.unbalanced&&'url'===this.current.value&&'string'!==this.currToken[0]&&')'!==this.currToken[0]&&!this.options.loose){let nextToken=this.nextToken,value=this.currToken[1],start={line:this.currToken[2],column:this.currToken[3]};for(;nextToken&&')'!==nextToken[0]&&this.current.unbalanced;)this.position++,value+=this.currToken[1],nextToken=this.nextToken;this.position!==this.tokens.length-1&&(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++;this.position>=this.tokens.length-1&&!this.current.unbalanced||(this.current.unbalanced--,0>this.current.unbalanced&&this.error('Expected opening parenthesis',token),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let token=this.currToken;this.position===this.tokens.length-1||','===this.nextToken[0]||')'===this.nextToken[0]?(this.current.last.raws.after+=token[1],this.position++):(this.spaces=token[1],this.position++)}unicodeRange(){let token=this.currToken;this.newNode(new UnicodeRange({value:token[1],source:{start:{line:token[2],column:token[3]},end:{line:token[4],column:token[5]}},sourceIndex:token[6]})),this.position++}splitWord(){let nextToken=this.nextToken,word=this.currToken[1],rNumber=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,rNoFollow=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,hasAt,indices;if(!rNoFollow.test(word))for(;nextToken&&'word'===nextToken[0];){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]}),'Word'===node.constructor.name?(node.isHex=/^#(.+)/.test(value),node.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(value)):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;quoted&&(quote=value.match(rQuote)[0],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){return this.spaces&&(node.raws.before+=this.spaces,this.spaces=''),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]}}},function(module,exports,__webpack_require__){'use strict';const Container=__webpack_require__(1);module.exports=class extends Container{constructor(opts){super(opts),this.type='root'}}},function(module,exports,__webpack_require__){'use strict';const singleQuote=39,backslash=92,slash=47,asterisk=42,minus=45,plus=43,newline=10,space=32,feed=12,tab=9,cr=13,digit0=48,digit9=57,atEnd=/[ \n\t\r\{\(\)'"\\;,/]/g,wordEnd=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,wordEndNum=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,alphaNum=/^[a-z0-9]/i,unicodeRange=/^[a-f0-9?\-]/i,util=__webpack_require__(173),TokenizeError=__webpack_require__(150);module.exports=function(input,options){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)}options=options||{};let tokens=[],css=input.valueOf(),length=css.length,offset=-1,line=1,pos=0,parentCount=0,isURLArg=null,code,next,quote,lines,last,content,escape,nextLine,nextOffset,escaped,escapePos,nextChar;for(;pos=digit0&&code<=digit9&&(regex=wordEndNum),regex.lastIndex=pos+1,regex.test(css),next=0===regex.lastIndex?css.length-1:regex.lastIndex-2,regex===wordEndNum||code===46){let ncode=css.charCodeAt(next),ncode1=css.charCodeAt(next+1),ncode2=css.charCodeAt(next+2);(ncode===101||ncode===69)&&(ncode1===minus||ncode1===plus)&&ncode2>=digit0&&ncode2<=digit9&&(wordEndNum.lastIndex=next+2,wordEndNum.test(css),next=0===wordEndNum.lastIndex?css.length-1:wordEndNum.lastIndex-2)}tokens.push(['word',css.slice(pos,next+1),line,pos-offset,line,next-offset,pos]),pos=next}}pos++}return tokens}},function(module,exports){'use strict';exports.__esModule=!0;var list={split:function(string,separators,last){for(var array=[],current='',split=!1,func=0,quote=!1,escape=!1,i=0,letter;i',original:{line:1,column:0},generated:{line:line,column:column-1}})),lines=str.match(/\n/g),lines?(line+=lines.length,last=str.lastIndexOf('\n'),column=str.length-last):column+=str.length,node&&'start'!==type&&(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}}):_this3.map.addMapping({source:'',original:{line:1,column:0},generated:{line:line,column:column-1}}))})},MapGenerator.prototype.generate=function(){if(this.clearAnnotation(),this.isMap())return this.generateMap();var result='';return this.stringify(this.root,function(i){result+=i}),[result]},MapGenerator}();exports.default=MapGenerator,module.exports=exports['default']},function(module,exports,__webpack_require__){'use strict';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')}exports.__esModule=!0;var _typeof='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&'function'==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?'symbol':typeof obj},_jsBase=__webpack_require__(35),_sourceMap=__webpack_require__(86),_sourceMap2=_interopRequireDefault(_sourceMap),_path=__webpack_require__(5),_path2=_interopRequireDefault(_path),_fs=__webpack_require__(178),_fs2=_interopRequireDefault(_fs),PreviousMap=function(){function PreviousMap(css,opts){_classCallCheck(this,PreviousMap),this.loadAnnotation(css),this.inline=this.startWith(this.annotation,'data:');var prev=opts.map?opts.map.prev:void 0,text=this.loadMap(opts.from,prev);text&&(this.text=text)}return PreviousMap.prototype.consumer=function(){return this.consumerCache||(this.consumerCache=new _sourceMap2.default.SourceMapConsumer(this.text)),this.consumerCache},PreviousMap.prototype.withContent=function(){return!!(this.consumer().sourcesContent&&0=_iterator.length)break;_ref=_iterator[_i++]}else{if(_i=_iterator.next(),_i.done)break;_ref=_i.value}var i=_ref;if(i.postcss&&(i=i.postcss),'object'===('undefined'==typeof i?'undefined':_typeof(i))&&Array.isArray(i.plugins))normalized=normalized.concat(i.plugins);else if('function'==typeof i)normalized.push(i);else if('object'===('undefined'==typeof i?'undefined':_typeof(i))&&(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},Processor}();exports.default=Processor,module.exports=exports['default']},function(module,exports,__webpack_require__){'use strict';function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError('Cannot call a class as a function')}exports.__esModule=!0;var _createClass=function(){function defineProperties(target,props){for(var i=0,descriptor;iaLow?-1:aLow}exports.GREATEST_LOWER_BOUND=1,exports.LEAST_UPPER_BOUND=2,exports.search=function(aNeedle,aHaystack,aCompare,aBias){if(0===aHaystack.length)return-1;var index=recursiveSearch(-1,aHaystack.length,aNeedle,aHaystack,aCompare,aBias||exports.GREATEST_LOWER_BOUND);if(0>index)return-1;for(;0<=index-1&&!(0!==aCompare(aHaystack[index],aHaystack[index-1],!0));)--index;return index}},function(module,exports,__webpack_require__){function generatedPositionAfter(mappingA,mappingB){var lineA=mappingA.generatedLine,lineB=mappingB.generatedLine,columnA=mappingA.generatedColumn,columnB=mappingB.generatedColumn;return lineB>lineA||lineB==lineA&&columnB>=columnA||0>=util.compareByGeneratedPositionsInflated(mappingA,mappingB)}function MappingList(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var util=__webpack_require__(11);MappingList.prototype.unsortedForEach=function(aCallback,aThisArg){this._array.forEach(aCallback,aThisArg)},MappingList.prototype.add=function(aMapping){generatedPositionAfter(this._last,aMapping)?(this._last=aMapping,this._array.push(aMapping)):(this._sorted=!1,this._array.push(aMapping))},MappingList.prototype.toArray=function(){return this._sorted||(this._array.sort(util.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},exports.MappingList=MappingList},function(module,exports){function swap(ary,x,y){var temp=ary[x];ary[x]=ary[y],ary[y]=temp}function randomIntInRange(low,high){return _Mathround(low+Math.random()*(high-low))}function doQuickSort(ary,comparator,p,r){if(p=comparator(ary[j],pivot)&&(i+=1,swap(ary,i,j));swap(ary,i+1,j);var q=i+1;doQuickSort(ary,comparator,p,q-1),doQuickSort(ary,comparator,q+1,r)}}exports.quickSort=function(ary,comparator){doQuickSort(ary,comparator,0,ary.length-1)}},function(module,exports,__webpack_require__){function SourceMapConsumer(aSourceMap){var sourceMap=aSourceMap;return'string'==typeof aSourceMap&&(sourceMap=JSON.parse(aSourceMap.replace(/^\)\]\}'/,''))),null==sourceMap.sections?new BasicSourceMapConsumer(sourceMap):new IndexedSourceMapConsumer(sourceMap)}function BasicSourceMapConsumer(aSourceMap){var sourceMap=aSourceMap;'string'==typeof aSourceMap&&(sourceMap=JSON.parse(aSourceMap.replace(/^\)\]\}'/,'')));var version=util.getArg(sourceMap,'version'),sources=util.getArg(sourceMap,'sources'),names=util.getArg(sourceMap,'names',[]),sourceRoot=util.getArg(sourceMap,'sourceRoot',null),sourcesContent=util.getArg(sourceMap,'sourcesContent',null),mappings=util.getArg(sourceMap,'mappings'),file=util.getArg(sourceMap,'file',null);if(version!=this._version)throw new Error('Unsupported version: '+version);sources=sources.map(String).map(util.normalize).map(function(source){return sourceRoot&&util.isAbsolute(sourceRoot)&&util.isAbsolute(source)?util.relative(sourceRoot,source):source}),this._names=ArraySet.fromArray(names.map(String),!0),this._sources=ArraySet.fromArray(sources,!0),this.sourceRoot=sourceRoot,this.sourcesContent=sourcesContent,this._mappings=mappings,this.file=file}function Mapping(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function IndexedSourceMapConsumer(aSourceMap){var sourceMap=aSourceMap;'string'==typeof aSourceMap&&(sourceMap=JSON.parse(aSourceMap.replace(/^\)\]\}'/,'')));var version=util.getArg(sourceMap,'version'),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)throw new Error('Support for url field in sections not implemented.');var offset=util.getArg(s,'offset'),offsetLine=util.getArg(offset,'line'),offsetColumn=util.getArg(offset,'column');if(offsetLine=aNeedle[aLineName])throw new TypeError('Line must be greater than or equal to 1, got '+aNeedle[aLineName]);if(0>aNeedle[aColumnName])throw new TypeError('Column must be greater than or equal to 0, got '+aNeedle[aColumnName]);return binarySearch.search(aNeedle,aMappings,aComparator,aBias)},BasicSourceMapConsumer.prototype.computeColumnSpans=function(){for(var index=0,mapping;index=this._sources.size()&&!this.sourcesContent.some(function(sc){return null==sc})},BasicSourceMapConsumer.prototype.sourceContentFor=function(aSource,nullOnMissing){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(aSource=util.relative(this.sourceRoot,aSource)),this._sources.has(aSource))return this.sourcesContent[this._sources.indexOf(aSource)];var url;if(null!=this.sourceRoot&&(url=util.urlParse(this.sourceRoot))){var fileUriAbsPath=aSource.replace(/^file:\/\//,'');if('file'==url.scheme&&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)]}if(nullOnMissing)return null;throw new Error('"'+aSource+'" is not in the SourceMap.')},BasicSourceMapConsumer.prototype.generatedPositionFor=function(aArgs){var source=util.getArg(aArgs,'source');if(null!=this.sourceRoot&&(source=util.relative(this.sourceRoot,source)),!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')},index=this._findMapping(needle,this._originalMappings,'originalLine','originalColumn',util.compareByOriginalPositions,util.getArg(aArgs,'bias',SourceMapConsumer.GREATEST_LOWER_BOUND));if(0<=index){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,IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype),IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer,IndexedSourceMapConsumer.prototype._version=3,Object.defineProperty(IndexedSourceMapConsumer.prototype,'sources',{get:function(){for(var sources=[],i=0;irecurseTimes)return isRegExp(value)?ctx.stylize(RegExp.prototype.toString.call(value),'regexp'):ctx.stylize('[Object]','special');ctx.seen.push(value);var output;return output=array?formatArray(ctx,value,recurseTimes,visibleKeys,keys):keys.map(function(key){return formatProperty(ctx,value,recurseTimes,visibleKeys,key,array)}),ctx.seen.pop(),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')}return isNumber(value)?ctx.stylize(''+value,'number'):isBoolean(value)?ctx.stylize(''+value,'boolean'):isNull(value)?ctx.stylize('null','null'):void 0}function formatError(value){return'['+Error.prototype.toString.call(value)+']'}function formatArray(ctx,value,recurseTimes,visibleKeys,keys){for(var output=[],i=0,l=value.length;ictx.seen.indexOf(desc.value)?(str=isNull(recurseTimes)?formatValue(ctx,desc.value,null):formatValue(ctx,desc.value,recurseTimes-1),-1n?'0'+n.toString(10):n.toString(10)}function timestamp(){var d=new Date,time=[pad(d.getHours()),pad(d.getMinutes()),pad(d.getSeconds())].join(':');return[d.getDate(),months[d.getMonth()],time].join(' ')}function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}var formatRegExp=/%[sdj%]/g;exports.format=function(f){if(!isString(f)){for(var objects=[],i=0;i=len)return x;switch(x){case'%s':return args[i++]+'';case'%d':return+args[i++];case'%j':try{return JSON.stringify(args[i++])}catch(_){return'[Circular]'}default:return x;}}),x=args[i];ipreviousValue+stringifyGroup(currentValue)+('comma_group'===currentValue.type&&index!==node.groups.length-1?',':''),'');const before=node.raws&&node.raws.before?node.raws.before:'',value=node.value?node.value:'',unit=node.unit?node.unit:'',after=node.raws&&node.raws.after?node.raws.after:'';return before+value+unit+after}function flattenGroups(node){return'paren_group'!==node.type||node.open||node.close||1!==node.groups.length?'comma_group'===node.type&&1===node.groups.length?flattenGroups(node.groups[0]):'paren_group'===node.type||'comma_group'===node.type?Object.assign({},node,{groups:node.groups.map(flattenGroups)}):node:flattenGroups(node.groups[0])}function addTypePrefix(node,prefix){if(node&&'object'==typeof node)for(const key in delete node.parent,node)addTypePrefix(node[key],prefix),'type'!=key||'string'!=typeof node[key]||node[key].startsWith(prefix)||(node[key]=prefix+node[key]);return node}function addMissingType(node){if(node&&'object'==typeof node){for(const key in delete node.parent,node)addMissingType(node[key]);Array.isArray(node)||!node.value||node.type||(node.type='unknown')}return node}function parseNestedValue(node){if(node&&'object'==typeof node)for(const key in delete node.parent,node)parseNestedValue(node[key]),'nodes'==key&&(node.group=flattenGroups(parseValueNodes(node[key])),delete node[key]);return node}function parseValue(value){const valueParser=__webpack_require__(93);let result=null;try{result=valueParser(value,{loose:!0}).parse()}catch(e){return{type:'value-unknown',value:value}}const parsedResult=parseNestedValue(result);return addTypePrefix(parsedResult,'value-')}function parseSelector(selector){if(selector.match(/\/\/|\/\*/))return{type:'selector-unknown',value:selector.replace(/^ +/,'').replace(/ +$/,'')};const selectorParser=__webpack_require__(92);let result=null;try{selectorParser(result_=>{result=result_}).process(selector)}catch(e){return{type:'selector-unknown',value:selector}}return addTypePrefix(result,'selector-')}function parseMediaQuery(params){const mediaParser=__webpack_require__(90).default;let result=null;try{result=mediaParser(params)}catch(e){return{type:'selector-unknown',value:params}}return addTypePrefix(addMissingType(result),'media-')}function parseNestedCSS(node){if(node&&'object'==typeof node){for(const key in delete node.parent,node)parseNestedCSS(node[key]);if(!node.type)return node;node.raws||(node.raws={});let selector='';'string'==typeof node.selector&&(selector=node.raws.selector?node.raws.selector.scss?node.raws.selector.scss:node.raws.selector.raw:node.selector,node.raws.between&&0a&&(n--,a+=1e9)),[n,a]}function D(){var e=new Date;return(e-Ui)/1e3}function L(){var e=m(['\n Require either \'@prettier\' or \'@format\' to be present in the file\'s first docblock comment\n in order for it to be formatted.\n ']);return L=function(){return e},e}function j(){var e=m(['\n Format code starting at a given character offset.\n The range will extend backwards to the start of the first line containing the selected statement.\n This option cannot be used with --cursor-offset.\n ']);return j=function(){return e},e}function R(){var e=m(['\n Format code ending at a given character offset (exclusive).\n The range will extend forwards to the end of the selected statement.\n This option cannot be used with --cursor-offset.\n ']);return R=function(){return e},e}function M(){var e=m(['\n Custom directory that contains prettier plugins in node_modules subdirectory.\n Overrides default behavior when plugins are searched relatively to the location of Prettier.\n Multiple values are accepted.\n ']);return M=function(){return e},e}function F(){var e=m(['\n Print (to stderr) where a cursor at the given position would move to after formatting.\n This option cannot be used with --range-start and --range-end.\n ']);return F=function(){return e},e}function _(e,t){function n(n){return t.showUnreleased||!('since'in n)||n.since&&Gi.gte(e,n.since)}function a(n){return t.showDeprecated||!('deprecated'in n)||n.deprecated&&Gi.lt(e,n.deprecated)}function r(e){if(!e.deprecated||t.showDeprecated)return e;var n=Object.assign({},e);return delete n.deprecated,delete n.redirect,n}t=Object.assign({plugins:[],showUnreleased:!1,showDeprecated:!1,showInternal:!1},t),e||(e=ol);var o=t.plugins,s=zi(Object.assign(o.reduce(function(e,t){return Object.assign(e,t.options)},{}),sl),'name').sort(function(e,t){return e.name===t.name?0:e.namecl(t.name,e)});return o&&r.push('Did you mean '.concat(JSON.stringify(o.name),'?')),r.join(' ')}function $(e,t){return''.concat(t(e.name),' is deprecated. Prettier now treats it as ').concat('string'==typeof e.redirect?t(e.redirect):t(e.redirect.option,e.redirect.value),'.')}function H(e,t,n){return''.concat(n(e.name,t.value),' is deprecated. Prettier now treats it as ').concat(n(e.name,t.redirect),'.')}function Y(e,t,n){return G(e,t,Object.assign({descriptor:dl.apiDescriptor},n))}function Q(e,t,n){var r=e._||[],o=G(Object.keys(e).reduce(function(t,n){return Object.assign(t,1===n.length?null:a({},n,e[n]))},{}),t,Object.assign({descriptor:dl.cliDescriptor},n));return o._=r,o}function Z(e){return e.declaration&&e.declaration.decorators&&0d}else p=!0;var u='json'===t.parser?r.quote:l?i.quote:s.quote;return n?p?u+a+u:e:rt(a,u,'css'!==t.parser&&'less'!==t.parser&&'scss'!==t.parser)}function rt(e,t,n){var a='"'===t?'\'':'"',r=/\\([\s\S])|(['"])/g,o=e.replace(r,function(e,r,o){return r===a?r:o===t?'\\'+o:o?o:n&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(r)?r:'\\'+r});return t+o+t}function ot(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,'$1$2$3').replace(/^([+-]?[\d.]+)e[+-]?0+$/,'$1').replace(/^([+-])?\./,'$10.').replace(/(\.\d+?)0+(?=e|$)/,'$1').replace(/\.(?=e|$)/,'')}function st(e,t){var n=e.match(new RegExp('('.concat(Tl(t),')+'),'g'));return null===n?0:n.reduce(function(e,n){return js(e,n.length/t.length)},0)}function it(e,t){function n(e){var t=Re(s);t&&'word'===t.type&&((t.kind!==a||e.kind!==r||t.hasTrailingPunctuation)&&(t.kind!==r||e.kind!==a||e.hasLeadingPunctuation)?!function(n,a){return t.kind===n&&e.kind===a||t.kind===a&&e.kind===n}(a,o)&&![t.value,e.value].some(function(e){return /\u3000/.test(e)})&&s.push({type:'whitespace',value:''}):s.push({type:'whitespace',value:' '})),s.push(e)}var a='non-cjk',r='cjk-character',o='cjk-punctuation',s=[];return('preserve'===t.proseWrap?e:e.replace(new RegExp('('.concat(Cp,')\n(').concat(Cp,')'),'g'),'$1$2')).split(/([ \t\n]+)/).forEach(function(e,t,i){return 1==t%2?void s.push({type:'whitespace',value:/\n/.test(e)?'\n':' '}):void((0===t||t===i.length-1)&&''===e||e.split(new RegExp('('.concat(Cp,')'))).forEach(function(e,t,s){return(0===t||t===s.length-1)&&''===e?void 0:0==t%2?void(''!==e&&n({type:'word',value:e,kind:a,hasLeadingPunctuation:Pp.test(e[0]),hasTrailingPunctuation:Pp.test(Re(e))})):void n(Pp.test(e)?{type:'word',value:e,kind:o,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:'word',value:e,kind:r,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}))}),s}function lt(e){return e?hp(e.replace(Np,' ')):0}function pt(e){var t=e.getValue();return ct(t)}function ct(e){return e&&e.comments&&0t?xt(e,{type:'dedent'},a):t?'root'===t.type?Object.assign({},e,{root:e}):'string'==typeof t?xt(e,{type:'stringAlign',n:t},a):xt(e,{type:'numberAlign',n:t},a):e}function xt(e,t,n){function a(e){c+='\t'.repeat(e),d+=n.tabWidth*e}function r(e){c+=' '.repeat(e),d+=e}function o(){n.useTabs?s():i()}function s(){0=m.expandedStates.length){o.push([d,Wp,h]);break}else{var x=m.expandedStates[f],E=[d,Jp,x];if(Et(E,o,g,t)){o.push(E);break}}}else o.push([d,Wp,m.contents]);break}}break;case'fill':{var b=n-r,S=m.parts;if(0===S.length)break;var T=S[0],v=[d,Jp,T],N=[d,Wp,T],C=Et(v,[],b,t,!0);if(1===S.length){C?o.push(v):o.push(N);break}var A=S[1],w=[d,Jp,A],P=[d,Wp,A];if(2===S.length){C?(o.push(w),o.push(v)):(o.push(P),o.push(N));break}S.splice(0,2);var k=[d,u,qp(S)],I=S[0],O=[d,Jp,Vp([T,A,I])],D=Et(O,[],b,t,!0);D?(o.push(k),o.push(w),o.push(v)):C?(o.push(k),o.push(P),o.push(v)):(o.push(k),o.push(P),o.push(N));break}case'if-break':u===Wp&&m.breakContents&&o.push([d,u,m.breakContents]),u===Jp&&m.flatContents&&o.push([d,u,m.flatContents]);break;case'line-suffix':p.push([d,u,m.contents]);break;case'line-suffix-boundary':0e.n?'dedent('+Dt(e.contents)+')':'root'===e.n.type?'markAsRoot('+Dt(e.contents)+')':'align('+JSON.stringify(e.n)+', '+Dt(e.contents)+')';if('if-break'===e.type)return'ifBreak('+Dt(e.breakContents)+(e.flatContents?', '+Dt(e.flatContents):'')+')';if('group'===e.type)return e.expandedStates?'conditionalGroup(['+e.expandedStates.map(Dt).join(',')+'])':(e.break?'wrappedGroup':'group')+'('+Dt(e.contents)+')';if('fill'===e.type)return'fill('+e.parts.map(Dt).join(', ')+')';if('line-suffix'===e.type)return'lineSuffix('+Dt(e.contents)+')';if('line-suffix-boundary'===e.type)return'lineSuffixBoundary';throw new Error('Unknown doc type '+e.type)}function Lt(e,t,n){return _p.isNextLineEmpty(e,t,n.locEnd)}function jt(e,t,n){return _p.getNextNonSpaceNonCommentCharacterIndex(e,t,n.locEnd)}function Rt(e,t,n){if(e){var a=t.printer,o=t.locStart,s=t.locEnd;if(n){if(e&&a.canAttachComment&&a.canAttachComment(e)){var l;for(l=n.length-1;0<=l&&!(o(n[l])<=o(e)&&s(n[l])<=s(e));--l);return void n.splice(l+1,0,e)}}else if(e[cc])return e[cc];var i;if(a.getCommentChildNodes?i=a.getCommentChildNodes(e):e&&'object'===r(e)&&(i=Object.keys(e).filter(function(e){return'enclosingNode'!==e&&'precedingNode'!==e&&'followingNode'!==e}).map(function(t){return e[t]})),!!i)return n||Object.defineProperty(e,cc,{value:n=[],enumerable:!1}),i.forEach(function(e){Rt(e,t,n)}),n}}function Mt(e,t,n){for(var a=n.locStart,r=n.locEnd,o=Rt(e,n),s=0,i=o.length,l,p;s>1,d=o[c];if(0>=a(d)-a(t)&&0>=r(t)-r(d))return t.enclosingNode=d,void Mt(d,t,n);if(0>=r(d)-a(t)){l=d,s=c+1;continue}if(0>=r(t)-a(d)){p=d,i=c;continue}throw new Error('Comment location overlaps with node location')}if(t.enclosingNode&&'TemplateLiteral'===t.enclosingNode.type){var u=t.enclosingNode.quasis,m=qt(u,t,n);l&&qt(u,l,n)!==m&&(l=null),p&&qt(u,p,n)!==m&&(p=null)}l&&(t.precedingNode=l),p&&(t.followingNode=p)}function Ft(e,t,n,a){if(Array.isArray(e)){var r=[],o=a.locStart,s=a.locEnd;e.forEach(function(l,p){if(('json'===a.parser||'json5'===a.parser)&&0>=o(l)-o(t))return void ic(t,l);Mt(t,l,a);var i=l.precedingNode,c=l.enclosingNode,d=l.followingNode,u=a.printer.handleComments&&a.printer.handleComments.ownLine?a.printer.handleComments.ownLine:function(){return!1},m=a.printer.handleComments&&a.printer.handleComments.endOfLine?a.printer.handleComments.endOfLine:function(){return!1},y=a.printer.handleComments&&a.printer.handleComments.remaining?a.printer.handleComments.remaining:function(){return!1},g=e.length-1===p;if(rc(n,o(l),{backwards:!0}))u(l,n,a,t,g)||(d?ic(d,l):i?pc(i,l):c?lc(c,l):lc(t,l));else if(rc(n,s(l)))m(l,n,a,t,g)||(i?pc(i,l):d?ic(d,l):c?lc(c,l):lc(t,l));else if(y(l,n,a,t,g));else if(i&&d){var h=r.length;if(0--t)return r;return null}function $t(e,t,n,a){if(n.printer.embed)return n.printer.embed(e,t,function(e,t){return Ht(e,t,n,a)},n)}function Ht(e,t,n,a){var r=mc(Object.assign({},n,t,{parentParser:n.parser,originalText:e}),{passThrough:!0}),o=Kl.parse(e,r),s=o.ast;e=o.text;var i=s.comments;return delete s.comments,dc.attach(i,s,e,r),a(s,r)}function Yt(e,t,n){function a(e,n){var i=e.getValue(),l=i&&'object'===r(i)&&void 0===n;if(l&&s.has(i))return s.get(i);var p;return p=o.willPrintOwnComments&&o.willPrintOwnComments(e)?Qt(e,t,a,n):dc.printComments(e,function(e){return Qt(e,t,a,n)},t,n&&n.needsSemi),l&&s.set(i,p),p}n=n||0;var o=t.printer,s=new Map,i=a(new uc(e));return 0=n.locStart(e.node));o=!0)r=c}catch(e){s=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(s)throw i}}var d=!0,u=!1,m=void 0;try{for(var y=e.parentNodes[Symbol.iterator](),g,h;!(d=(g=y.next()).done)&&(h=g.value,'Program'!==h.type&&'File'!==h.type&&n.locEnd(h)<=n.locEnd(t.node));d=!0)a=h}catch(e){u=!0,m=e}finally{try{d||null==y.return||y.return()}finally{if(u)throw m}}return{startNode:a,endNode:r}}function en(e,t,n,a,r){a=a||function(){return!0},r=r||[];var o=n.locStart(e,n.locStart),s=n.locEnd(e,n.locEnd);if(o<=t&&t<=s){var i=!0,l=!1,p=void 0;try{for(var c=dc.getSortedChildNodes(e,n)[Symbol.iterator](),d;!(i=(d=c.next()).done);i=!0){var u=d.value,m=en(u,t,n,a,[e].concat(r));if(m)return m}}catch(e){l=!0,p=e}finally{try{i||null==c.return||c.return()}finally{if(l)throw p}}if(a(e))return{node:e,parentNodes:r}}}function tn(e,t){if(null==t)return!1;switch(e.parser){case'flow':case'babylon':case'typescript':return-1<['FunctionDeclaration','BlockStatement','BreakStatement','ContinueStatement','DebuggerStatement','DoWhileStatement','EmptyStatement','ExpressionStatement','ForInStatement','ForStatement','IfStatement','LabeledStatement','ReturnStatement','SwitchStatement','ThrowStatement','TryStatement','VariableDeclaration','WhileStatement','WithStatement','ClassDeclaration','ImportDeclaration','ExportDefaultDeclaration','ExportNamedDeclaration','ExportAllDeclaration','TypeAlias','InterfaceDeclaration','TypeAliasDeclaration','ExportAssignment','ExportDeclaration'].indexOf(t.type);case'json':return-1<['ObjectExpression','ArrayExpression','StringLiteral','NumericLiteral','BooleanLiteral','NullLiteral'].indexOf(t.type);case'graphql':return-1<['OperationDefinition','FragmentDefinition','VariableDefinition','TypeExtensionDefinition','ObjectTypeDefinition','FieldDefinition','DirectiveDefinition','EnumTypeDefinition','EnumValueDefinition','InputValueDefinition','InputObjectTypeDefinition','SchemaDefinition','OperationTypeDefinition','InterfaceTypeDefinition','UnionTypeDefinition','ScalarTypeDefinition'].indexOf(t.kind);}return!1}function nn(e,t,n){var a=e.slice(t.rangeStart,t.rangeEnd),r=js(t.rangeStart+a.search(/\S/),t.rangeStart),o;for(o=t.rangeEnd;o>t.rangeStart&&!e[o-1].match(/\S/);--o);var s=en(n,r,t,function(e){return tn(t,e)}),i=en(n,o,t,function(e){return tn(t,e)});if(!s||!i)return{rangeStart:0,rangeEnd:0};var l=Zt(s,i,t),p=l.startNode,c=l.endNode,d=Ms(t.locStart(p,t.locStart),t.locStart(c,t.locStart)),u=js(t.locEnd(p,t.locEnd),t.locEnd(c,t.locEnd));return{rangeStart:d,rangeEnd:u}}function an(e){var t=e.indexOf('\n');return 0<=t&&'\r'===e.charAt(t-1)?'\r\n':'\n'}function rn(e){if(e){for(var t=0;t=o&&t.cursorOffset=s?y=t.cursorOffset-s+(o+u.length):void 0!==d.cursorOffset&&(y=d.cursorOffset+o),{formatted:m,cursorOffset:y}}function cn(e,t){var n=Kl.resolveParser(t),a=!n.hasPragma||n.hasPragma(e);if(t.requirePragma&&!a)return{formatted:e};if(0'!==e.substr(r,2))&&(Hc(t,n),!0)}function Wn(e,t,n,a){return!(')'!==_p.getNextNonSpaceNonCommentCharacter(e,n,a.locEnd))&&(t&&(('FunctionDeclaration'===t.type||'FunctionExpression'===t.type||'ArrowFunctionExpression'===t.type&&('CallExpression'!==t.body.type||0===t.body.arguments.length)||'ClassMethod'===t.type||'ObjectMethod'===t.type)&&0===t.params.length||'CallExpression'===t.type&&0===t.arguments.length)?(Hc(t,n),!0):t&&'MethodDefinition'===t.type&&0===t.value.params.length&&(Hc(t.value,n),!0))}function Jn(e,t,n,a,r,o){return t&&'FunctionTypeParam'===t.type&&n&&'FunctionTypeAnnotation'===n.type&&a&&'FunctionTypeParam'!==a.type?($c(t,r),!0):t&&('Identifier'===t.type||'AssignmentPattern'===t.type)&&n&&('ArrowFunctionExpression'===n.type||'FunctionExpression'===n.type||'FunctionDeclaration'===n.type||'ObjectMethod'===n.type||'ClassMethod'===n.type)&&')'===_p.getNextNonSpaceNonCommentCharacter(e,r,o.locEnd)&&($c(t,r),!0)}function Un(e,t){return e&&'ImportSpecifier'===e.type&&(Kc(e,t),!0)}function Xn(e,t){return e&&'LabeledStatement'===e.type&&(Kc(e,t),!0)}function Gn(e,t){return e&&('ContinueStatement'===e.type||'BreakStatement'===e.type)&&!e.label&&($c(e,t),!0)}function zn(e,t,n){return t&&'CallExpression'===t.type&&e&&t.callee===e&&0d)||('||'===l||'??'===l)&&'&&'===c||(p===d&&'right'===a?(rp.strictEqual(n.right,r),!0):p!==d||_p.shouldFlatten(l,c)?p'])),b=Sd([Dd('('),Pd(Sd([Cd,e.call(a,'expression')])),Cd,Dd(')')]);return x?Id([Sd([E,e.call(a,'expression')]),Sd([E,wd(b,{shouldBreak:!0})]),Sd([E,e.call(a,'expression')])]):wd(Sd([E,e.call(a,'expression')]))}case'OptionalMemberExpression':case'MemberExpression':{var S=e.getParentNode(),T=0,i;do i=e.getParentNode(T),T++;while(i&&('MemberExpression'===i.type||'OptionalMemberExpression'===i.type||'TSNonNullExpression'===i.type));var v=i&&('NewExpression'===i.type||'BindExpression'===i.type||'VariableDeclarator'===i.type&&'Identifier'!==i.id.type||'AssignmentExpression'===i.type&&'Identifier'!==i.left.type)||s.computed||'Identifier'===s.object.type&&'Identifier'===s.property.type&&'MemberExpression'!==S.type&&'OptionalMemberExpression'!==S.type;return Sd([e.call(a,'object'),v?Fa(e,t,a):wd(Pd(Sd([Cd,Fa(e,t,a)])))])}case'MetaProperty':return Sd([e.call(a,'meta'),'.',e.call(a,'property')]);case'BindExpression':return s.object&&p.push(e.call(a,'object')),p.push(wd(Pd(Sd([Cd,_a(e,t,a)])))),Sd(p);case'Identifier':return Sd([s.name,Ma(e),Ta(e,t,a)]);case'SpreadElement':case'SpreadElementPattern':case'RestProperty':case'ExperimentalRestProperty':case'ExperimentalSpreadProperty':case'SpreadProperty':case'SpreadPropertyPattern':case'RestElement':case'ObjectTypeSpreadProperty':return Sd(['...',e.call(a,'argument'),Ta(e,t,a)]);case'FunctionDeclaration':case'FunctionExpression':return vr(s,t)&&p.push('declare '),p.push(wa(e,a,t)),s.body||p.push(l),Sd(p);case'ArrowFunctionExpression':{s.async&&p.push('async '),Ca(e,t)?p.push(e.call(a,'params',0)):p.push(wd(Sd([Na(e,a,t,o&&(o.expandLastArg||o.expandFirstArg),!0),ka(e,a,t)])));var N=dc.printDanglingComments(e,t,!0,function(e){var n=fd(t.originalText,e,t);return'=>'===t.originalText.substr(n,2)});N&&p.push(' ',N),p.push(' =>');var C=e.call(function(e){return a(e,o)},'body');if(!ir(t.originalText,s.body,t)&&('ArrayExpression'===s.body.type||'ObjectExpression'===s.body.type||'BlockStatement'===s.body.type||qa(s.body)||wr(s.body,t.originalText,t)||'ArrowFunctionExpression'===s.body.type||'DoExpression'===s.body.type))return wd(Sd([Sd(p),' ',C]));if('SequenceExpression'===s.body.type)return wd(Sd([Sd(p),wd(Sd([' (',Pd(Sd([Cd,C])),Cd,')']))]));var A=(o&&o.expandLastArg||'JSXExpressionContainer'===e.getParentNode().type)&&!(s.comments&&s.comments.length),w=o&&o.expandLastArg&&ia(t,'all'),P='ConditionalExpression'===s.body.type&&!md(s.body,!1);return wd(Sd([Sd(p),wd(Sd([Pd(Sd([vd,P?Dd('','('):'',C,P?Dd('',')'):''])),A?Sd([Dd(w?',':''),Cd]):'']))]))}case'MethodDefinition':case'TSAbstractMethodDefinition':return s.accessibility&&p.push(s.accessibility+' '),s.static&&p.push('static '),'TSAbstractMethodDefinition'===s.type&&p.push('abstract '),p.push(ha(e,t,a)),Sd(p);case'YieldExpression':return p.push('yield'),s.delegate&&p.push('*'),s.argument&&p.push(' ',e.call(a,'argument')),Sd(p);case'AwaitExpression':return Sd(['await ',e.call(a,'argument')]);case'ImportSpecifier':return s.importKind&&p.push(e.call(a,'importKind'),' '),p.push(e.call(a,'imported')),s.local&&s.local.name!==s.imported.name&&p.push(' as ',e.call(a,'local')),Sd(p);case'ExportSpecifier':return p.push(e.call(a,'local')),s.exported&&s.exported.name!==s.local.name&&p.push(' as ',e.call(a,'exported')),Sd(p);case'ImportNamespaceSpecifier':return p.push('* as '),s.local?p.push(e.call(a,'local')):s.id&&p.push(e.call(a,'id')),Sd(p);case'ImportDefaultSpecifier':return s.local?e.call(a,'local'):e.call(a,'id');case'TSExportAssignment':return Sd(['export = ',e.call(a,'expression'),l]);case'ExportDefaultDeclaration':case'ExportNamedDeclaration':return Ia(e,t,a);case'ExportAllDeclaration':return p.push('export '),'type'===s.exportKind&&p.push('type '),p.push('* from ',e.call(a,'source'),l),Sd(p);case'ExportNamespaceSpecifier':case'ExportDefaultSpecifier':return e.call(a,'exported');case'ImportDeclaration':{p.push('import '),s.importKind&&'value'!==s.importKind&&p.push(s.importKind+' ');var k=[],I=[];return s.specifiers&&0']);if(Oe.attributes&&1===Oe.attributes.length&&Oe.attributes[0].value&&Lr(Oe.attributes[0].value)&&!Oe.attributes[0].value.value.includes('\n')&&!De&&(!Oe.attributes[0].comments||!Oe.attributes[0].comments.length))return wd(Sd(['<',e.call(a,'name'),e.call(a,'typeParameters'),' ',Sd(e.map(a,'attributes')),Oe.selfClosing?' />':'>']));var Le=Oe.attributes.length&&sr(od(Oe.attributes)),je=t.jsxBracketSameLine&&(!De||Oe.attributes.length)&&!Le,Re=Oe.attributes&&Oe.attributes.some(function(e){return e.value&&Lr(e.value)&&e.value.value.includes('\n')});return wd(Sd(['<',e.call(a,'name'),e.call(a,'typeParameters'),Sd([Pd(Sd(e.map(function(e){return Sd([vd,a(e)])},'attributes'))),Oe.selfClosing?vd:je?'>':Cd]),Oe.selfClosing?'/>':je?'':'>']),{shouldBreak:Re})}case'JSXClosingElement':return Sd(['']);case'JSXOpeningFragment':case'JSXClosingFragment':case'TSJsxOpeningFragment':case'TSJsxClosingFragment':{var Me=s.comments&&s.comments.length,Fe=Me&&!s.comments.every(Yc.isBlockComment),_e='JSXOpeningFragment'===s.type||'TSJsxOpeningFragment'===s.type;return Sd([_e?'<':''])}case'JSXText':throw new Error('JSXTest should be handled by JSXElement');case'JSXEmptyExpression':{var Ve=s.comments&&!s.comments.every(Yc.isBlockComment);return Sd([dc.printDanglingComments(e,t,!Ve),Ve?Nd:''])}case'ClassBody':return s.comments||0!==s.body.length?Sd(['{',0 ':': ',e.call(a,'returnType'),e.call(a,'predicate'),e.call(a,'typeAnnotation')),ot&&p.push(')'),wd(Sd(p))}case'FunctionTypeParam':return Sd([e.call(a,'name'),Ma(e),s.name?': ':'',e.call(a,'typeAnnotation')]);case'GenericTypeAnnotation':return Sd([e.call(a,'id'),e.call(a,'typeParameters')]);case'DeclareInterface':case'InterfaceDeclaration':case'InterfaceType':case'InterfaceTypeAnnotation':return('DeclareInterface'===s.type||vr(s,t))&&p.push('declare '),p.push('interface'),('DeclareInterface'===s.type||'InterfaceDeclaration'===s.type)&&p.push(' ',e.call(a,'id'),e.call(a,'typeParameters')),0 ':': ',e.call(a,'typeAnnotation'))}return Sd(p)}case'TSTypeOperator':return Sd([s.operator,' ',e.call(a,'typeAnnotation')]);case'TSMappedType':return wd(Sd(['{',Pd(Sd([t.bracketSpacing?vd:Cd,s.readonlyToken?Sd([ua(s.readonlyToken,'readonly'),' ']):'',La(e,t,a),e.call(a,'typeParameter'),s.questionToken?ua(s.questionToken,'?'):'',': ',e.call(a,'typeAnnotation')])),dc.printDanglingComments(e,t,!0),t.bracketSpacing?vd:Cd,'}']));case'TSMethodSignature':return p.push(s.accessibility?Sd([s.accessibility,' ']):'',s.export?'export ':'',s.static?'static ':'',s.readonly?'readonly ':'',s.computed?'[':'',e.call(a,'key'),s.computed?']':'',Ma(e),Na(e,a,t,!1,!0)),s.typeAnnotation&&p.push(': ',e.call(a,'typeAnnotation')),wd(Sd(p));case'TSNamespaceExportDeclaration':return p.push('export as namespace ',e.call(a,'name')),t.semi&&p.push(';'),wd(Sd(p));case'TSEnumDeclaration':return vr(s,t)&&p.push('declare '),s.modifiers&&p.push(La(e,t,a)),s.const&&p.push('const '),p.push('enum ',e.call(a,'id'),' '),0===s.members.length?p.push(wd(Sd(['{',dc.printDanglingComments(e,t),Cd,'}']))):p.push(wd(Sd(['{',Pd(Sd([Nd,Pr(e,t,'members',a),ia(t,'es5')?',':''])),dc.printDanglingComments(e,t,!0),Nd,'}']))),Sd(p);case'TSEnumMember':return p.push(e.call(a,'id')),s.initializer&&p.push(' = ',e.call(a,'initializer')),Sd(p);case'TSImportEqualsDeclaration':return p.push(La(e,t,a),'import ',e.call(a,'name'),' = ',e.call(a,'moduleReference')),t.semi&&p.push(';'),wd(Sd(p));case'TSExternalModuleReference':return Sd(['require(',e.call(a,'expression'),')']);case'TSModuleDeclaration':{var wt=e.getParentNode(),Pt=Or(s.id),kt='TSModuleDeclaration'===wt.type,It=s.body&&'TSModuleDeclaration'===s.body.type;if(kt)p.push('.');else{!0===s.declare&&p.push('declare '),p.push(La(e,t,a));var Ot='Identifier'===s.id.type&&'global'===s.id.name&&!/namespace|module/.test(t.originalText.slice(t.locStart(s),t.locStart(s.id)));Ot||p.push(Pt?'module ':'namespace ')}return p.push(e.call(a,'id')),It?p.push(e.call(a,'body')):s.body?p.push(' {',Pd(Sd([vd,e.call(function(e){return dc.printDanglingComments(e,t,!0)},'body'),wd(e.call(a,'body'))])),vd,'}'):p.push(l),Sd(p)}case'TSModuleBlock':return e.call(function(e){return ya(e,t,a)},'body');case'PrivateName':return Sd(['#',e.call(a,'id')]);case'TSConditionalType':return da(e,t,a,{beforeParts:function(){return[e.call(a,'checkType'),' ','extends',' ',e.call(a,'extendsType')]},shouldCheckJsx:!1,operatorName:'TSConditionalType',consequentNode:'trueType',alternateNode:'falseType',testNode:'checkType',breakNested:!1});case'TSInferType':return Sd(['infer',' ',e.call(a,'typeParameter')]);case'InterpreterDirective':return p.push('#!',s.value,Nd),gd(t.originalText,s,t)&&p.push(Nd),Sd(p);default:throw new Error('unknown type: '+JSON.stringify(s.type));}}function ya(e,t,n){var a=[],r=e.getNode(),o='ClassBody'===r.type;return e.map(function(e,s){var i=e.getValue();if(i&&'EmptyStatement'!==i.type){var l=n(e),p=t.originalText,c=[];if(t.semi||o||Br(t,e)||!mr(e,t)?c.push(l):i.comments&&i.comments.some(function(e){return e.leading})?c.push(n(e,{needsSemi:!0})):c.push(';',l),!t.semi&&o)if(yr(e))c.push(';');else if('ClassProperty'===i.type){var d=r.body[s+1];gr(d)&&c.push(';')}gd(p,i,t)&&!rr(e)&&c.push(Nd),a.push(Sd(c))}}),Td(Nd,a)}function ga(e,t,n){var a=e.getNode(),r=a.key;return'Identifier'!==r.type||a.computed||'json'!==t.parser?Lr(r)&&xd(r.value)&&!a.computed&&'json'!==t.parser&&('typescript'!==t.parser||'ClassProperty'!==a.type)?e.call(function(e){return dc.printComments(e,function(){return r.value},t)},'key'):e.call(n,'key'):e.call(function(e){return dc.printComments(e,function(){return JSON.stringify(r.name)},t)},'key')}function ha(e,t,n){var a=e.getNode(),r=t.semi?';':'',o=a.kind,s=[];('ObjectMethod'===a.type||'ClassMethod'===a.type)&&(a.value=a),a.value.async&&s.push('async '),o&&'init'!==o&&'method'!==o&&'constructor'!==o?(rp.ok('get'===o||'set'===o),s.push(o,' ')):a.value.generator&&s.push('*');var i=ga(e,t,n);return a.computed&&(i=Sd(['[',i,']'])),s.push(i,Sd(e.call(function(e){return[va(e,t,n),wd(Sd([Na(e,n,t),ka(e,n,t)]))]},'value'))),a.value.body&&0!==a.value.body.length?s.push(' ',e.call(n,'value','body')):s.push(r),Sd(s)}function fa(e){return'ObjectExpression'===e.type&&(0']):wd(Sd(['<',Pd(Sd([Cd,Td(Sd([',',vd]),e.map(a,r))])),Dd('typescript'!==t.parser&&ia(t,'all')?',':''),Cd,'>']))}function Ra(e,t,a){var r=e.getValue(),n=[];'TSAbstractClassDeclaration'===r.type&&n.push('abstract '),n.push('class'),r.id&&n.push(' ',e.call(a,'id')),n.push(e.call(a,'typeParameters'));var o=[];if(r.superClass){var s=Sd(['extends ',e.call(a,'superClass'),e.call(a,'superTypeParameters')]);r.implements&&0!==r.implements.length||r.superClass.comments&&0!==r.superClass.comments.length?o.push(wd(Sd([vd,e.call(function(e){return dc.printComments(e,function(){return s},t)},'superClass')]))):n.push(Sd([' ',e.call(function(e){return dc.printComments(e,function(){return s},t)},'superClass')]))}else r.extends&&0'===s.operator,p=i?Sd([s.operator,' ',e.call(t,'right')]):Sd([l?Cd:'',s.operator,l?' ':vd,e.call(t,'right')]),c=e.getParentNode(),d=!(r&&'LogicalExpression'===s.type)&&c.type!==s.type&&s.left.type!==s.type&&s.right.type!==s.type;o.push(' ',d?wd(p):p),a&&s.comments&&(o=dc.printComments(e,function(){return Sd(o)},n))}else o.push(e.call(t));return o}function Za(e,t,n,a){if(ir(a.originalText,t,a))return Pd(Sd([Nd,n]));var r=$a(t)&&!Ya(t)||'ConditionalExpression'===t.type&&$a(t.test)&&!Ya(t.test)||'StringLiteralTypeAnnotation'===t.type||('Identifier'===e.type||Lr(e)||'MemberExpression'===e.type)&&(Lr(t)||fr(t));return r?Pd(Sd([vd,n])):Sd([' ',n])}function er(e,t,n,a,r,o){if(!a)return t;var s=Za(e,a,r,o);return wd(Sd([t,n,s]))}function tr(e,t,n){return'EmptyStatement'===e.type?';':'BlockStatement'===e.type||n?Sd([' ',t]):Pd(Sd([vd,t]))}function nr(e,t,n){var a=zr(e),r=n||'DirectiveLiteral'===e.type;return id(a,t,r)}function ar(e){var t=e.flags.split('').sort().join('');return'/'.concat(e.pattern,'/').concat(t)}function rr(e){var t=e.getParentNode();if(!t)return!0;var n=e.getValue(),a=(t.body||t.consequent).filter(function(e){return'EmptyStatement'!==e.type});return a&&a[a.length-1]===n}function or(e){return e.comments&&e.comments.some(function(e){return e.leading})}function sr(e){return e.comments&&e.comments.some(function(e){return e.trailing})}function ir(e,t,n){if(qa(t))return dd(t);var a=t.comments&&t.comments.some(function(t){return t.leading&&ad(e,n.locEnd(t))});return a}function lr(e){return'AssignmentExpression'===e.type||'BinaryExpression'===e.type||'LogicalExpression'===e.type||'ConditionalExpression'===e.type||'CallExpression'===e.type||'OptionalCallExpression'===e.type||'MemberExpression'===e.type||'OptionalMemberExpression'===e.type||'SequenceExpression'===e.type||'TaggedTemplateExpression'===e.type||'BindExpression'===e.type&&!e.object||'UpdateExpression'===e.type&&!e.prefix}function pr(e,t,n){var a=n.locStart(t),r=cd(e,n.locEnd(t));return'/*'===e.substr(a,2)&&'*/'===e.substr(r,2)}function cr(e){return e.expressions?e.expressions[0]:e.left||e.test||e.callee||e.object||e.tag||e.argument||e.expression}function dr(e,t){if(t.expressions)return['expressions',0];if(t.left)return['left'];if(t.test)return['test'];if(t.callee)return['callee'];if(t.object)return['object'];if(t.tag)return['tag'];if(t.argument)return['argument'];if(t.expression)return['expression'];throw new Error('Unexpected node has no left side',t)}function ur(e,t){var n=e.getValue(),a=Qc(e,t)||'ParenthesizedExpression'===n.type||'TypeCastExpression'===n.type||'ArrowFunctionExpression'===n.type&&!Ca(e,t)||'ArrayExpression'===n.type||'ArrayPattern'===n.type||'UnaryExpression'===n.type&&n.prefix&&('+'===n.operator||'-'===n.operator)||'TemplateLiteral'===n.type||'TemplateElement'===n.type||qa(n)||'BindExpression'===n.type||'RegExpLiteral'===n.type||'Literal'===n.type&&n.pattern||'Literal'===n.type&&n.regex;return!!a||!!lr(n)&&e.call.apply(e,[function(e){return ur(e,t)}].concat(dr(e,n)))}function mr(e,t){var n=e.getNode();return!('ExpressionStatement'!==n.type)&&e.call(function(e){return ur(e,t)},'expression')}function yr(e){var t=e.getNode();if('ClassProperty'!==t.type)return!1;var n=t.key&&t.key.name;if(('static'===n||'get'===n||'set'===n)&&!t.value&&!t.typeAnnotation)return!0}function gr(e){if(e){if(!e.computed){var t=e.key&&e.key.name;if('in'===t||'instanceof'===t)return!0}switch(e.type){case'ClassProperty':case'TSAbstractClassProperty':return e.computed;case'MethodDefinition':case'TSAbstractMethodDefinition':case'ClassMethod':{var n=e.value?e.value.async:e.async,a=e.value?e.value.generator:e.generator;return n||e.static||'get'===e.kind||'set'===e.kind?!1:e.computed||a}default:return!1;}}}function hr(e,t){if(ir(e.originalText,t,e))return!0;if(lr(t))for(var n=t,a;a=cr(n);)if(n=a,ir(e.originalText,n,e))return!0;return!1}function fr(e){return'MemberExpression'!==e.type&&'OptionalMemberExpression'!==e.type?!1:!('Identifier'!==e.object.type)||fr(e.object)}function xr(e,t){return'ObjectTypeProperty'===e.type&&'FunctionTypeAnnotation'===e.value.type&&!e.static&&!Er(e,t)}function Er(e,t){return br(e)||Sr(e,e.value,t)}function br(e){return'get'===e.kind||'set'===e.kind}function Sr(e,t,n){return n.locStart(e)===n.locStart(t)}function Tr(e,t){return('TypeAnnotation'===e.type||'TSTypeAnnotation'===e.type)&&'FunctionTypeAnnotation'===e.typeAnnotation.type&&!e.static&&!Sr(e,e.typeAnnotation,t)}function vr(e,t){return'flow'!==t.parser&&'typescript'!==t.parser?!1:t.originalText.slice(0,t.locStart(e)).match(/declare[ \t]*$/)||t.originalText.slice(e.range[0],e.range[1]).startsWith('declare ')}function Nr(e){if(jr(e))return!0;if('UnionTypeAnnotation'===e.type||'TSUnionType'===e.type){var t=e.types.filter(function(e){return'VoidTypeAnnotation'===e.type||'TSVoidKeyword'===e.type||'NullLiteralTypeAnnotation'===e.type||'TSNullKeyword'===e.type}).length,n=e.types.filter(function(e){return'ObjectTypeAnnotation'===e.type||'TSTypeLiteral'===e.type||'GenericTypeAnnotation'===e.type||'TSTypeReference'===e.type}).length;if(e.types.length-1===t&&0=e.arguments[1].params.length||_r(e.arguments[1]);return!1}function Mr(e){return('MemberExpression'===e.callee.type||'OptionalMemberExpression'===e.callee.type)&&'Identifier'===e.callee.object.type&&'Identifier'===e.callee.property.type&&zd.test(e.callee.object.name)&&('only'===e.callee.property.name||'skip'===e.callee.property.name)}function Fr(e){return'TemplateLiteral'===e.type}function _r(e){return('CallExpression'===e.type||'OptionalCallExpression'===e.type)&&'Identifier'===e.callee.type&&('async'===e.callee.name||'inject'===e.callee.name)}function Vr(e){return'FunctionExpression'===e||'ArrowFunctionExpression'===e}function qr(e){var t=/^(before|after)(Each|All)$/;return'Identifier'===e.callee.type&&t.test(e.callee.name)&&1===e.arguments.length}function Br(e,t){if('markdown'!==e.parentParser)return!1;var n=t.getNode();if(!n.expression||!qa(n.expression))return!1;var a=t.getParentNode();return'Program'===a.type&&1==a.body.length}function Wr(e){var t=e.getValue(),n=e.getParentNode();return(t&&qa(t)||n&&('JSXSpreadAttribute'===n.type||'JSXSpreadChild'===n.type||'UnionTypeAnnotation'===n.type||'TSUnionType'===n.type||('ClassDeclaration'===n.type||'ClassExpression'===n.type)&&n.superClass===t))&&!pd(e)}function Jr(e){return e.type&&'CommentBlock'!==e.type&&'CommentLine'!==e.type&&'Line'!==e.type&&'Block'!==e.type&&'EmptyStatement'!==e.type&&'TemplateElement'!==e.type&&'Import'!==e.type&&!(e.callee&&'Import'===e.callee.type)}function Ur(e,t){var n=e.getValue();switch(n.type){case'CommentBlock':case'Block':{if(Xr(n)){var a=Gr(n);return n.trailing&&!ad(t.originalText,t.locStart(n),{backwards:!0})?Sd([Nd,a]):a}var r='*-/'===t.originalText.substr(t.locEnd(n)-3,3);return'/*'+n.value+(r?'*-/':'*/')}case'CommentLine':case'Line':return t.originalText.slice(t.locStart(n)).startsWith('#!')?'#!'+n.value.trimRight():'//'+n.value.trimRight();default:throw new Error('Not a comment: '+JSON.stringify(n));}}function Xr(e){var t=e.value.split('\n');return 1','<=','>='].indexOf(e.value)}function Co(e){return'css-atrule'===e.type&&-1!==['if','else','for','each','while'].indexOf(e.name)}function Ao(e){return!!e.selector&&e.selector.replace(/\/\*.*?\*\//,'').replace(/\/\/.*?\n/,'').trim().endsWith(':')}function wo(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)}function Po(e,t){return'$$'===e.value&&'value-func'===e.type&&t&&'value-word'===t.type&&!t.raws.before}function ko(e){return e.value&&'value-root'===e.value.type&&e.value.group&&'value-value'===e.value.group.type&&'composes'===e.prop.toLowerCase()}function Io(e){return e.value&&e.value.group&&e.value.group.group&&'value-paren_group'===e.value.group.group.type&&null!==e.value.group.group.open&&null!==e.value.group.group.close}function Oo(e){return e.raws&&''===e.raws.before}function Do(e){return'value-comma_group'===e.type&&e.groups&&e.groups[1]&&'value-colon'===e.groups[1].type}function Lo(e){return'value-paren_group'===e.type&&e.groups&&e.groups[0]&&Do(e.groups[0])}function jo(e){var t=e.getValue();if(0===t.groups.length)return!1;var n=e.getParentNode(1);if(!Lo(t)&&!(n&&Lo(n)))return!1;var a=Zr(e,'css-decl');return a&&a.prop&&a.prop.startsWith('$')||!!Lo(n)||!('value-func'!==n.type)}function Ro(e){return'value-comment'===e.type&&e.inline}function Mo(e){return'value-word'===e.type&&'#'===e.value}function Fo(e){return'value-word'===e.type&&'{'===e.value}function _o(e){return'value-word'===e.type&&'}'===e.value}function Vo(e){return-1!==['value-word','value-atword'].indexOf(e.type)}function qo(e){return'value-colon'===e.type}function Bo(e){return e.value&&-1!==['not','and','or'].indexOf(e.value.toLowerCase())}function Wo(e){return!('value-func'!==e.type)&&-1!==uu.indexOf(e.value.toLowerCase())}function Jo(e){switch(e.trailingComma){case'all':case'es5':return!0;case'none':default:return!1;}}function Uo(e,t,n){var a=e.getValue();if(!a)return'';if('string'==typeof a)return a;switch(a.type){case'front-matter':return bu([a.value,vu]);case'css-root':{var r=Xo(e,t,n);return r.parts.length?bu([r,vu]):r}case'css-comment':{if(a.raws.content)return a.raws.content;var o=t.originalText.slice(t.locStart(a),t.locEnd(a)),s=a.raws.text||a.text;return-1===o.indexOf(s)?a.raws.inline?bu(['// ',s]):bu(['/* ',s,' */']):o}case'css-rule':return bu([e.call(n,'selector'),a.important?' !important':'',a.nodes?bu([' {',0'===a.value||'~'===a.value||'>>>'===a.value){var u=e.getParentNode(),m='selector-selector'===u.type&&u.nodes[0]===a?'':Tu;return bu([m,a.value,Wu(e,a)?'':' '])}var y=a.value.trim().startsWith('(')?Tu:'',g=Ko(Go(a.value.trim(),t))||Tu;return bu([y,g])}case'selector-universal':return bu([a.namespace?bu([!0===a.namespace?'':a.namespace.trim(),'|']):'',Ko(a.value)]);case'selector-pseudo':return bu([Lu(a.value),a.nodes&&0|^([-+*]|#{1,6}|[0-9]+[.)])$/.test(s.value)?'never':t.proseWrap;return ms(e,a.value,{proseWrap:i})}case'emphasis':{var l=e.getParentNode(),p=l.children.indexOf(a),c=l.children[p-1],d=l.children[p+1],u=c&&'sentence'===c.type&&0']);case'[':return Zm(['[',hs(e,t,n),'](',vs(a.url,')'),Ns(a.title,t),')']);default:return t.originalText.slice(a.position.start.offset,a.position.end.offset);}case'image':return Zm(['![',a.alt||'','](',vs(a.url,')'),Ns(a.title,t),')']);case'blockquote':return Zm(['> ',iy('> ',hs(e,t,n))]);case'heading':return Zm(['#'.repeat(a.depth)+' ',hs(e,t,n)]);case'code':{if(/^\n?( {4,}|\t)/.test(t.originalText.slice(a.position.start.offset,a.position.end.offset))){var f=' '.repeat(4);return iy(f,Zm([f,ey(ry,a.value.split('\n'))]))}var x=t.__inJsTemplate?'~':'`',E=x.repeat(js(3,_p.getMaxContinuousCount(a.value,x)+1));return Zm([E,a.lang||'',ry,ey(ry,a.value.split('\n')),ry,E])}case'front-matter':return a.value;case'html':{var b=e.getParentNode(),S='root'===b.type&&_p.getLast(b.children)===a?a.value.trimRight():a.value,T=/^$/.test(S);return ps(S,T?ry:ay(ny))}case'list':{var v=ls(a,e.getParentNode()),N=a.ordered&&1$/);return null!==t&&(t[1]?t[1]:'next')}function xs(e,t){var n=0===t.parts.length,a=-1!==yy.indexOf(e.type),r='html'===e.type&&-1!==gy.indexOf(t.parentNode.type);return n||a||r}function Es(e,t){var n=(t.prevNode&&t.prevNode.type)===e.type,a=n&&-1!==my.indexOf(e.type),r='listItem'===t.parentNode.type&&!t.parentNode.loose,o=t.prevNode&&'listItem'===t.prevNode.type&&t.prevNode.loose,s='next'===fs(t.prevNode),i='html'===e.type&&t.prevNode&&'html'===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line;return o||!(a||r||s||i)}function bs(e,t){var n=t.prevNode&&'list'===t.prevNode.type,a='code'===e.type&&/\s/.test(t.options.originalText[e.position.start.offset]);return n&&a}function Ss(e){var t=us(e,['linkReference','imageReference']);return t&&('linkReference'!==t.type||'full'!==t.referenceType)}function Ts(e){return cy(e,function(e){if(!e.parts)return e;if('concat'===e.type&&1===e.parts.length)return e.parts[0];var t=[];return e.parts.forEach(function(e){'concat'===e.type?t.push.apply(t,e.parts):''!==e&&t.push(e)}),Object.assign({},e,{parts:Cs(t)})})}function vs(e,t){var n=[' '].concat(t||[]);return new RegExp(n.map(function(e){return'\\'.concat(e)}).join('|')).test(e)?'<'.concat(e,'>'):e}function Ns(e,t,n){if(null==n&&(n=!0),!e)return'';if(n)return' '+Ns(e,t,!1);if(e.includes('"')&&e.includes('\'')&&!e.includes(')'))return'('.concat(e,')');var a=e.split('\'').length-1,r=e.split('"').length-1,o=a>r?'"':r>a?'\'':t.singleQuote?'\'':'"';return e=e.replace(new RegExp('('.concat(o,')'),'g'),'\\$1'),''.concat(o).concat(e).concat(o)}function Cs(e){return e.reduce(function(e,t){var n=_p.getLast(e);return'string'==typeof n&&'string'==typeof t?e.splice(-1,1,n+t):e.push(t),e},[])}function As(e,t,n){return en?n:e}function ws(e,t,n){if(delete t.position,'code'===e.type&&delete t.value,'whitespace'===e.type&&'\n'===e.value&&(t.value=' '),n&&'root'===n.type&&0=6'},zs={"@babel/code-frame":'7.0.0-beta.49',"@babel/parser":'7.0.0-beta.49',"@glimmer/syntax":'0.30.3',camelcase:'4.1.0',chalk:'2.1.0',"cjk-regex":'1.0.2',cosmiconfig:'3.1.0',dashify:'0.2.2',dedent:'0.7.0',diff:'3.2.0',editorconfig:'0.15.0',"editorconfig-to-prettier":'0.0.6',"emoji-regex":'6.5.1',"escape-string-regexp":'1.0.5',esutils:'2.0.2',"find-parent-dir":'0.3.0',"find-project-root":'1.1.1',"flow-parser":'0.73.0',"get-stream":'3.0.0',globby:'6.1.0',graphql:'0.13.2',"html-tag-names":'1.1.2',ignore:'3.3.7',"jest-docblock":'22.2.2',"json-stable-stringify":'1.0.1',leven:'2.1.0',"lodash.uniqby":'4.7.0',mem:'1.1.0',minimatch:'3.0.4',minimist:'1.2.0',parse5:'3.0.3',"postcss-less":'1.1.5',"postcss-media-query-parser":'0.2.3',"postcss-scss":'1.0.5',"postcss-selector-parser":'2.2.3',"postcss-values-parser":'1.5.0',"remark-parse":'5.0.0',resolve:'1.5.0',semver:'5.4.1',"string-width":'2.1.1',typescript:'2.9.0-dev.20180421',"typescript-eslint-parser":'16.0.0',"unicode-regex":'1.0.1',unified:'6.1.6'},Ks={"@babel/cli":'7.0.0-beta.49',"@babel/core":'7.0.0-beta.49',"@babel/preset-env":'7.0.0-beta.49',"builtin-modules":'2.0.0',codecov:'2.2.0',"cross-env":'5.0.5',eslint:'4.18.2',"eslint-config-prettier":'2.9.0',"eslint-friendly-formatter":'3.0.0',"eslint-plugin-import":'2.9.0',"eslint-plugin-prettier":'2.6.0',"eslint-plugin-react":'7.7.0',jest:'21.1.0',mkdirp:'0.5.1',prettier:'1.13.4',prettylint:'1.0.0',rimraf:'2.6.2',rollup:'0.47.6',"rollup-plugin-babel":'4.0.0-beta.4',"rollup-plugin-commonjs":'8.2.6',"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.2.1',"rollup-plugin-uglify":'3.0.0',shelljs:'0.8.1',"snapshot-diff":'0.2.2',"strip-ansi":'4.0.0',tempy:'0.2.1',webpack:'2.6.1'},$s={prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":'yarn && yarn build && yarn test:dist',test:'jest',"test:dist":'node ./scripts/test-dist.js',"test-integration":'jest tests_integration',lint:'cross-env EFF_NO_LINK_RULES=true eslint . --format node_modules/eslint-friendly-formatter',"lint-docs":'prettylint {.,docs,website,website/blog}/*.md',build:'node ./scripts/build/build.js',"build-docs":'node ./scripts/build-docs.js',"check-deps":'node ./scripts/check-deps.js'},Hs={name:Fs,version:_s,description:Vs,bin:qs,repository:Bs,homepage:Ws,author:Js,license:Us,main:Xs,engines:Gs,dependencies:zs,devDependencies:Ks,scripts:$s},Ys=Object.freeze({name:Fs,version:_s,description:Vs,bin:qs,repository:Bs,homepage:Ws,author:Js,license:Us,main:Xs,engines:Gs,dependencies:zs,devDependencies:Ks,scripts:$s,default:Hs}),Qs='undefined'==typeof window?'undefined'==typeof global?'undefined'==typeof self?{}:self:global:window,Zs=t(function(e,t){function n(){}function a(e,t,n,a,r){for(var o=0,s=t.length,i=0,l=0,p;oe.length?n:e}),p.value=e.join(c)}else p.value=e.join(n.slice(i,i+p.count));i+=p.count,p.added||(l+=p.count)}else if(p.value=e.join(a.slice(l,l+p.count)),l+=p.count,o&&t[o-1].added){var d=t[o-1];t[o-1]=t[o],t[o]=d}var u=t[s-1];return 1=p&&y+1>=c)return n(a(l,s.components,t,e,l.useLongestToken));m[o]=s}d++}var s=2>=arguments.length||void 0===arguments[2]?{}:arguments[2],i=s.callback;'function'==typeof s&&(i=s,s={}),this.options=s;var l=this;e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var p=t.length,c=e.length,d=1,u=p+c,m=[{newPos:-1,components:[]}],y=this.extractCommon(m[0],t,e,0);if(m[0].newPos+1>=p&&y+1>=c)return n([{value:this.join(t),count:t.length}]);if(i)(function e(){setTimeout(function(){return d>u?i():void(!o()&&e())},0)})();else for(;d<=u;){var g=o();if(g)return g}},pushComponent:function(e,t,n){var a=e[e.length-1];a&&a.added===t&&a.removed===n?e[e.length-1]={count:a.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,a){for(var r=t.length,o=n.length,s=e.newPos,i=s-a,l=0;s+1=arguments.length||void 0===arguments[1]?{}:arguments[1],o=e.split(/\r\n|[\n\v\f\r\x85]/),s=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],l=[],p=0;pd))return!1;t++}}return!0}var r=2>=arguments.length||void 0===arguments[2]?{}:arguments[2];if('string'==typeof t&&(t=(0,li.parsePatch)(t)),Array.isArray(t)){if(1=c.length-2&&o.length<=l.context){var S=/\n$/.test(a),T=/\n$/.test(r);0!=o.length||S?(!S||!T)&&y.push('\\ No newline at end of file'):y.splice(b.oldLines,0,'\\ No newline at end of file')}d.push(b),u=0,m=0,y=[]}g+=o.length,h+=o.length}},x=0;x/g,'>'),t=t.replace(/"/g,'"'),t}t.__esModule=!0,t.convertChangesToXML=function(e){for(var t=[],a=0,r;a'):r.removed&&t.push(''),t.push(n(r.value)),r.added?t.push(''):r.removed&&t.push('');return t.join('')}});e(mi);var yi=t(function(e,t){t.__esModule=!0,t.canonicalize=t.convertChangesToXML=t.convertChangesToDMP=t.parsePatch=t.applyPatches=t.applyPatch=t.createPatch=t.createTwoFilesPatch=t.structuredPatch=t.diffArrays=t.diffJson=t.diffCss=t.diffSentences=t.diffTrimmedLines=t.diffLines=t.diffWordsWithSpace=t.diffWords=t.diffChars=t.Diff=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(Zs);t.Diff=n['default'],t.diffChars=ei.diffChars,t.diffWords=ni.diffWords,t.diffWordsWithSpace=ni.diffWordsWithSpace,t.diffLines=ai.diffLines,t.diffTrimmedLines=ai.diffTrimmedLines,t.diffSentences=ri.diffSentences,t.diffCss=oi.diffCss,t.diffJson=si.diffJson,t.diffArrays=ii.diffArrays,t.structuredPatch=di.structuredPatch,t.createTwoFilesPatch=di.createTwoFilesPatch,t.createPatch=di.createPatch,t.applyPatch=ci.applyPatch,t.applyPatches=ci.applyPatches,t.parsePatch=li.parsePatch,t.convertChangesToDMP=ui.convertChangesToDMP,t.convertChangesToXML=mi.convertChangesToXML,t.canonicalize=si.canonicalize});e(yi);var gi=function(e){function t(){return n(this,t),u(this,s(t).apply(this,arguments))}return o(t,e),t}(c(Error)),hi=function(e){function t(){return n(this,t),u(this,s(t).apply(this,arguments))}return o(t,e),t}(c(Error)),fi=function(e){function t(){return n(this,t),u(this,s(t).apply(this,arguments))}return o(t,e),t}(c(Error)),xi={ConfigError:gi,DebugError:hi,UndefinedParserError:fi},Ei='undefined'==typeof global?'undefined'==typeof self?'undefined'==typeof window?{}:window:self:global,bi=x,Si=E;'function'==typeof Ei.setTimeout&&(bi=setTimeout),'function'==typeof Ei.clearTimeout&&(Si=clearTimeout);var Ti=[],vi=!1,Ni=-1,Ci;C.prototype.run=function(){this.fun.apply(null,this.array)};var Ai='browser',wi='browser',Pi=!0,ki={},Ii=[],Oi='',Di={},Li={},ji={},Ri=A,Mi=A,Fi=A,_i=A,Vi=A,qi=A,Bi=A,Wi=Ei.performance||{},Ji=Wi.now||Wi.mozNow||Wi.msNow||Wi.oNow||Wi.webkitNow||function(){return new Date().getTime()},Ui=new Date,Xi={nextTick:N,title:Ai,browser:Pi,env:ki,argv:Ii,version:Oi,versions:Di,on:Ri,addListener:Mi,once:Fi,off:_i,removeListener:Vi,removeAllListeners:qi,emit:Bi,binding:w,cwd:P,chdir:k,umask:I,hrtime:O,platform:wi,release:Li,config:ji,uptime:D},Gi=t(function(e,t){function n(e,t){if(e instanceof o)return e;if('string'!=typeof e)return null;if(e.length>O)return null;var n=t?L[H]:L[z];if(!n.test(e))return null;try{return new o(e,t)}catch(e){return null}}function o(e,t){if(e instanceof o){if(e.loose===t)return e;e=e.version}else if('string'!=typeof e)throw new TypeError('Invalid Version: '+e);if(e.length>O)throw new TypeError('version is longer than '+O+' characters');if(!(this instanceof o))return new o(e,t);I('SemVer',e,t),this.loose=t;var n=e.trim().match(t?L[H]:L[z]);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>D||0>this.major)throw new TypeError('Invalid major version');if(this.minor>D||0>this.minor)throw new TypeError('Invalid minor version');if(this.patch>D||0>this.patch)throw new TypeError('Invalid patch version');this.prerelease=n[4]?n[4].split('.').map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(0<=t&&tt?1:0}function l(e,t,n){return new o(e,n).compare(new o(t,n))}function p(e,t,n){return 0l(e,t,n)}function d(e,t,n){return 0===l(e,t,n)}function u(e,t,n){return 0!==l(e,t,n)}function m(e,t,n){return 0<=l(e,t,n)}function y(e,t,n){return 0>=l(e,t,n)}function a(e,t,n,a){var o;switch(t){case'===':'object'===r(e)&&(e=e.version),'object'===r(n)&&(n=n.version),o=e===n;break;case'!==':'object'===r(e)&&(e=e.version),'object'===r(n)&&(n=n.version),o=e!==n;break;case'':case'=':case'==':o=d(e,n,a);break;case'!=':o=u(e,n,a);break;case'>':o=p(e,n,a);break;case'>=':o=m(e,n,a);break;case'<':o=c(e,n,a);break;case'<=':o=y(e,n,a);break;default:throw new TypeError('Invalid operator: '+t);}return o}function g(e,t){if(e instanceof g){if(e.loose===t)return e;e=e.value}return this instanceof g?void(I('comparator',e,t),this.loose=t,this.parse(e),this.value=this.semver===Ee?'':this.operator+this.semver.version,I('comp',this)):new g(e,t)}function h(e,t){if(e instanceof h)return e.loose===t?e:new h(e.raw,t);if(e instanceof g)return new h(e.value,t);if(!(this instanceof h))return new h(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 f(e,t){return I('comp',e),e=S(e,t),I('caret',e),e=E(e,t),I('tildes',e),e=v(e,t),I('xrange',e),e=C(e,t),I('stars',e),e}function x(e){return!e||'x'===e.toLowerCase()||'*'===e}function E(e,t){return e.trim().split(/\s+/).map(function(e){return b(e,t)}).join(' ')}function b(e,t){var n=t?L[ie]:L[se];return e.replace(n,function(t,n,a,r,o){I('tilde',e,t,n,a,r,o);var s;return x(n)?s='':x(a)?s='>='+n+'.0.0 <'+(+n+1)+'.0.0':x(r)?s='>='+n+'.'+a+'.0 <'+n+'.'+(+a+1)+'.0':o?(I('replaceTilde pr',o),'-'!==o.charAt(0)&&(o='-'+o),s='>='+n+'.'+a+'.'+r+o+' <'+n+'.'+(+a+1)+'.0'):s='>='+n+'.'+a+'.'+r+' <'+n+'.'+(+a+1)+'.0',I('tilde return',s),s})}function S(e,t){return e.trim().split(/\s+/).map(function(e){return T(e,t)}).join(' ')}function T(e,t){I('caret',e,t);var n=t?L[de]:L[ce];return e.replace(n,function(t,n,a,r,o){I('caret',e,t,n,a,r,o);var s;return x(n)?s='':x(a)?s='>='+n+'.0.0 <'+(+n+1)+'.0.0':x(r)?'0'===n?s='>='+n+'.'+a+'.0 <'+n+'.'+(+a+1)+'.0':s='>='+n+'.'+a+'.0 <'+(+n+1)+'.0.0':o?(I('replaceCaret pr',o),'-'!==o.charAt(0)&&(o='-'+o),s='0'===n?'0'===a?'>='+n+'.'+a+'.'+r+o+' <'+n+'.'+a+'.'+(+r+1):'>='+n+'.'+a+'.'+r+o+' <'+n+'.'+(+a+1)+'.0':'>='+n+'.'+a+'.'+r+o+' <'+(+n+1)+'.0.0'):(I('no pr'),s='0'===n?'0'===a?'>='+n+'.'+a+'.'+r+' <'+n+'.'+a+'.'+(+r+1):'>='+n+'.'+a+'.'+r+' <'+n+'.'+(+a+1)+'.0':'>='+n+'.'+a+'.'+r+' <'+(+n+1)+'.0.0'),I('caret return',s),s})}function v(e,t){return I('replaceXRanges',e,t),e.split(/\s+/).map(function(e){return N(e,t)}).join(' ')}function N(e,t){e=e.trim();var n=t?L[ae]:L[ne];return e.replace(n,function(t,n,a,r,o,s){I('xRange',e,t,n,a,r,o,s);var i=x(a),l=i||x(r),p=l||x(o),c=p;return'='===n&&c&&(n=''),i?'>'===n||'<'===n?t='<0.0.0':t='*':n&&c?(l&&(r=0),p&&(o=0),'>'===n?(n='>=',l?(a=+a+1,r=0,o=0):p&&(r=+r+1,o=0)):'<='===n&&(n='<',l?a=+a+1:r=+r+1),t=n+a+'.'+r+'.'+o):l?t='>='+a+'.0.0 <'+(+a+1)+'.0.0':p&&(t='>='+a+'.'+r+'.0 <'+a+'.'+(+r+1)+'.0'),I('xRange return',t),t})}function C(e,t){return I('replaceStars',e,t),e.trim().replace(L[fe],'')}function A(e,t,n,a,r,o,s,i,l,p,c,d){return t=x(n)?'':x(a)?'>='+n+'.0.0':x(r)?'>='+n+'.'+a+'.0':'>='+t,i=x(l)?'':x(p)?'<'+(+l+1)+'.0.0':x(c)?'<'+l+'.'+(+p+1)+'.0':d?'<='+l+'.'+p+'.'+c+'-'+d:'<='+i,(t+' '+i).trim()}function w(e,t){for(var n=0;n':r=p,s=y,l=c,d='>',u='>=';break;case'<':r=c,s=m,l=p,d='<',u='<=';break;default:throw new TypeError('Must provide a hilo val of "<" or ">"');}if(P(e,t,a))return!1;for(var f=0;f=0.0.0')),x=x||e,E=E||e,r(e.semver,x.semver,a)?x=e:l(e.semver,E.semver,a)&&(E=e)}),x.operator===d||x.operator===u)return!1;if((!E.operator||E.operator===d)&&s(e,E.semver))return!1;if(E.operator===u&&l(e,E.semver))return!1}return!0}t=e.exports=o;var I;I='object'===r(Xi)&&Xi.env&&Xi.env.NODE_DEBUG&&/\bsemver\b/i.test(Xi.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 O=256,D=Number.MAX_SAFE_INTEGER||9007199254740991,L=t.re=[],j=t.src=[],M=0,R=M++;j[R]='0|[1-9]\\d*';var F=M++;j[F]='[0-9]+';var _=M++;j[_]='\\d*[a-zA-Z-][a-zA-Z0-9-]*';var V=M++;j[V]='('+j[R]+')\\.('+j[R]+')\\.('+j[R]+')';var q=M++;j[q]='('+j[F]+')\\.('+j[F]+')\\.('+j[F]+')';var B=M++;j[B]='(?:'+j[R]+'|'+j[_]+')';var W=M++;j[W]='(?:'+j[F]+'|'+j[_]+')';var J=M++;j[J]='(?:-('+j[B]+'(?:\\.'+j[B]+')*))';var U=M++;j[U]='(?:-?('+j[W]+'(?:\\.'+j[W]+')*))';var X=M++;j[X]='[0-9A-Za-z-]+';var G=M++;j[G]='(?:\\+('+j[X]+'(?:\\.'+j[X]+')*))';var z=M++,K='v?'+j[V]+j[J]+'?'+j[G]+'?';j[z]='^'+K+'$';var $='[v=\\s]*'+j[q]+j[U]+'?'+j[G]+'?',H=M++;j[H]='^'+$+'$';var Y=M++;j[Y]='((?:<|>)?=?)';var Q=M++;j[Q]=j[F]+'|x|X|\\*';var Z=M++;j[Z]=j[R]+'|x|X|\\*';var ee=M++;j[ee]='[v=\\s]*('+j[Z]+')(?:\\.('+j[Z]+')(?:\\.('+j[Z]+')(?:'+j[J]+')?'+j[G]+'?)?)?';var te=M++;j[te]='[v=\\s]*('+j[Q]+')(?:\\.('+j[Q]+')(?:\\.('+j[Q]+')(?:'+j[U]+')?'+j[G]+'?)?)?';var ne=M++;j[ne]='^'+j[Y]+'\\s*'+j[ee]+'$';var ae=M++;j[ae]='^'+j[Y]+'\\s*'+j[te]+'$';var re=M++;j[re]='(?:~>?)';var oe=M++;j[oe]='(\\s*)'+j[re]+'\\s+',L[oe]=new RegExp(j[oe],'g');var se=M++;j[se]='^'+j[re]+j[ee]+'$';var ie=M++;j[ie]='^'+j[re]+j[te]+'$';var le=M++;j[le]='(?:\\^)';var pe=M++;j[pe]='(\\s*)'+j[le]+'\\s+',L[pe]=new RegExp(j[pe],'g');var ce=M++;j[ce]='^'+j[le]+j[ee]+'$';var de=M++;j[de]='^'+j[le]+j[te]+'$';var ue=M++;j[ue]='^'+j[Y]+'\\s*('+$+')$|^$';var me=M++;j[me]='^'+j[Y]+'\\s*('+K+')$|^$';var ye=M++;j[ye]='(\\s*)'+j[Y]+'\\s*('+$+'|'+j[ee]+')',L[ye]=new RegExp(j[ye],'g');var ge=M++;j[ge]='^\\s*('+j[ee]+')\\s+-\\s+('+j[ee]+')\\s*$';var he=M++;j[he]='^\\s*('+j[te]+')\\s+-\\s+('+j[te]+')\\s*$';var fe=M++;j[fe]='(<|>)?=?\\s*\\*';for(var xe=0;xe='===this.operator||'>'===this.operator)&&('>='===e.operator||'>'===e.operator),o=('<='===this.operator||'<'===this.operator)&&('<='===e.operator||'<'===e.operator),s=this.semver.version===e.semver.version,i=('>='===this.operator||'<='===this.operator)&&('>='===e.operator||'<='===e.operator),l=a(this.semver,'<',e.semver,t)&&('>='===this.operator||'>'===this.operator)&&('<='===e.operator||'<'===e.operator),p=a(this.semver,'>',e.semver,t)&&('<='===this.operator||'<'===this.operator)&&('>='===e.operator||'>'===e.operator);return r||o||s&&i||l||p},t.Range=h,h.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(' ').trim()}).join('||').trim(),this.range},h.prototype.toString=function(){return this.range},h.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),I('range',e,t);var n=t?L[he]:L[ge];e=e.replace(n,A),I('hyphen replace',e),e=e.replace(L[ye],'$1$2$3'),I('comparator trim',e,L[ye]),e=e.replace(L[oe],'$1~'),e=e.replace(L[pe],'$1^'),e=e.split(/\s+/).join(' ');var a=t?L[ue]:L[me],r=e.split(' ').map(function(e){return f(e,t)}).join(' ').split(/\s+/);return this.loose&&(r=r.filter(function(e){return!!e.match(a)})),r=r.map(function(e){return new g(e,t)}),r},h.prototype.intersects=function(e,t){if(!(e instanceof h))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 h(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(' ').trim().split(' ')})},h.prototype.test=function(e){if(!e)return!1;'string'==typeof e&&(e=new o(e,this.loose));for(var t=0;t',n)},t.outside=k,t.prerelease=function(e,t){var a=n(e,t);return a&&a.prerelease.length?a.prerelease:null},t.intersects=function(e,t,n){return e=new h(e,n),t=new h(t,n),e.intersects(t)}}),zi=function(e,t){return Object.keys(e).reduce(function(n,r){return n.concat(Object.assign(a({},t,r),e[r]))},[])},Ki=t(function(e){e.exports=function(e){var t='string'==typeof e?[e]:e.raw;for(var n='',a=0;a=arguments.length?0:arguments.length-1)&&(n+=arguments.length<=a+1?void 0:arguments[a+1]);var r=n.split('\n'),o=null;return r.forEach(function(e){var t=e.match(/^(\s+)\S+/);if(t){var n=t[1].length;o=o?Ms(o,n):n}}),null!==o&&(n=r.map(function(e){return' '===e[0]?e.slice(o):e}).join('\n')),n=n.trim(),n.replace(/\\n/g,'\n')}}),$i='Config',Hi='Editor',Yi='Format',Qi='Other',Zi='Output',el='Global',tl='Special',nl={cursorOffset:{since:'1.4.0',category:tl,type:'int',default:-1,range:{start:-1,end:Infinity,step:1},description:Ki(F()),cliCategory:Hi},filepath:{since:'1.4.0',category:tl,type:'path',default:void 0,description:'Specify the input filepath. This will be used to do parser inference.',cliName:'stdin-filepath',cliCategory:Qi,cliDescription:'Path to the file to pretend that stdin comes from.'},insertPragma:{since:'1.8.0',category:tl,type:'boolean',default:!1,description:'Insert @format pragma into file\'s first docblock comment.',cliCategory:Qi},parser:{since:'0.0.10',category:el,type:'choice',default:[{since:'0.0.10',value:'babylon'},{since:'1.13.0',value:void 0}],description:'Which parser to use.',exception:function(e){return'string'==typeof e||'function'==typeof e},choices:[{value:'flow',description:'Flow'},{value:'babylon',description:'JavaScript'},{value:'typescript',since:'1.4.0',description:'TypeScript'},{value:'css',since:'1.7.1',description:'CSS'},{value:'postcss',since:'1.4.0',description:'CSS/Less/SCSS',deprecated:'1.7.1',redirect:'css'},{value:'less',since:'1.7.1',description:'Less'},{value:'scss',since:'1.7.1',description:'SCSS'},{value:'json',since:'1.5.0',description:'JSON'},{value:'json5',since:'1.13.0',description:'JSON5'},{value:'json-stringify',since:'1.13.0',description:'JSON.stringify'},{value:'graphql',since:'1.5.0',description:'GraphQL'},{value:'markdown',since:'1.8.0',description:'Markdown'},{value:'vue',since:'1.10.0',description:'Vue'}]},plugins:{since:'1.10.0',type:'path',array:!0,default:[{value:[]}],category:el,description:'Add a plugin. Multiple plugins can be passed as separate `--plugin`s.',exception:function(e){return'string'==typeof e||'object'===r(e)},cliName:'plugin',cliCategory:$i},pluginSearchDirs:{since:'1.13.0',type:'path',array:!0,default:[{value:[]}],category:el,description:Ki(M()),exception:function(e){return'string'==typeof e||'object'===r(e)},cliName:'plugin-search-dir',cliCategory:$i},printWidth:{since:'0.0.0',category:el,type:'int',default:80,description:'The line length where Prettier will try wrap.',range:{start:0,end:Infinity,step:1}},rangeEnd:{since:'1.4.0',category:tl,type:'int',default:Infinity,range:{start:0,end:Infinity,step:1},description:Ki(R()),cliCategory:Hi},rangeStart:{since:'1.4.0',category:tl,type:'int',default:0,range:{start:0,end:Infinity,step:1},description:Ki(j()),cliCategory:Hi},requirePragma:{since:'1.7.0',category:tl,type:'boolean',default:!1,description:Ki(L()),cliCategory:Qi},tabWidth:{type:'int',category:el,default:2,description:'Number of spaces per indentation level.',range:{start:0,end:Infinity,step:1}},useFlowParser:{since:'0.0.0',category:el,type:'boolean',default:!1,deprecated:'0.0.10',description:'Use flow parser.',redirect:{option:'parser',value:'flow'},cliName:'flow-parser'},useTabs:{since:'1.0.0',category:el,type:'boolean',default:!1,description:'Indent with tabs instead of spaces.'}},al={CATEGORY_CONFIG:$i,CATEGORY_EDITOR:Hi,CATEGORY_FORMAT:Yi,CATEGORY_OTHER:Qi,CATEGORY_OUTPUT:Zi,CATEGORY_GLOBAL:el,CATEGORY_SPECIAL:tl,options:nl},rl=Ys&&Hs||Ys,ol=rl.version,sl=al.options,il={getSupportInfo:_},ll=[],pl=[],cl=function(e,t){if(e===t)return 0;var n=e;e.length>t.length&&(e=t,t=n);var a=e.length,r=t.length;if(0===a)return r;if(0===r)return a;for(;0p?d>p?p+1:d:d>c?c+1:d;return p},dl={apiDescriptor:V,cliDescriptor:q},ul={validateOption:B},ml={normalizeApiOptions:Y,normalizeCliOptions:Q},yl=function(e){return 0!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:'invalid',value:e[0]};return e[1]?(t.type='string',t.closed=!!(e[3]||e[4])):e[5]?t.type='comment':e[6]?(t.type='comment',t.closed=!!e[7]):e[8]?t.type='regex':e[9]?t.type='number':e[10]?t.type='name':e[11]?t.type='punctuator':e[12]&&(t.type='whitespace'),t}});e(hl);var fl=t(function(e){(function(){function t(e){if(null==e)return!1;switch(e.type){case'BlockStatement':case'BreakStatement':case'ContinueStatement':case'DebuggerStatement':case'DoWhileStatement':case'EmptyStatement':case'ExpressionStatement':case'ForInStatement':case'ForStatement':case'IfStatement':case'LabeledStatement':case'ReturnStatement':case'SwitchStatement':case'ThrowStatement':case'TryStatement':case'VariableDeclaration':case'WhileStatement':case'WithStatement':return!0;}return!1}function n(e){switch(e.type){case'IfStatement':return null==e.alternate?e.consequent:e.alternate;case'LabeledStatement':case'ForStatement':case'ForInStatement':case'WhileStatement':case'WithStatement':return e.body;}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.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!0;}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case'DoWhileStatement':case'ForInStatement':case'ForStatement':case'WhileStatement':return!0;}return!1},isSourceElement:function(e){return t(e)||null!=e&&'FunctionDeclaration'===e.type},isProblematicIfStatement:function(e){var t;if('IfStatement'!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if('IfStatement'===t.type&&null==t.alternate)return!0;t=n(t)}while(t);return!1},trailingStatement:n}})()}),xl=t(function(e){(function(){function t(e){if(65535>=e)return Ls(e);var t=Ls(Rs((e-65536)/1024)+55296),n=Ls((e-65536)%1024+56320);return t+n}var n,a,r,o,s,i;for(a={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]/,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]/},n={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]/,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]/},r=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],o=Array(128),i=0;128>i;++i)o[i]=97<=i&&122>=i||65<=i&&90>=i||36===i||95===i;for(s=Array(128),i=0;128>i;++i)s[i]=97<=i&&122>=i||65<=i&&90>=i||48<=i&&57>=i||36===i||95===i;e.exports={isDecimalDigit:function(e){return 48<=e&&57>=e},isHexDigit:function(e){return 48<=e&&57>=e||97<=e&&102>=e||65<=e&&70>=e},isOctalDigit:function(e){return 48<=e&&55>=e},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||5760<=e&&0<=r.indexOf(e)},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return 128>e?o[e]:a.NonAsciiIdentifierStart.test(t(e))},isIdentifierPartES5:function(e){return 128>e?s[e]:a.NonAsciiIdentifierPart.test(t(e))},isIdentifierStartES6:function(e){return 128>e?o[e]:n.NonAsciiIdentifierStart.test(t(e))},isIdentifierPartES6:function(e){return 128>e?s[e]:n.NonAsciiIdentifierPart.test(t(e))}}})()}),El=t(function(e){(function(){function t(e){return'implements'===e||'interface'===e||'package'===e||'private'===e||'protected'===e||'public'===e||'static'===e||'let'===e}function n(e,t){return(t||'yield'!==e)&&a(e,t)}function a(e,n){if(n&&t(e))return!0;switch(e.length){case 2:return'if'===e||'in'===e||'do'===e;case 3:return'var'===e||'for'===e||'new'===e||'try'===e;case 4:return'this'===e||'else'===e||'case'===e||'void'===e||'with'===e||'enum'===e;case 5:return'while'===e||'break'===e||'catch'===e||'throw'===e||'const'===e||'yield'===e||'class'===e||'super'===e;case 6:return'return'===e||'typeof'===e||'delete'===e||'switch'===e||'export'===e||'import'===e;case 7:return'default'===e||'finally'===e||'extends'===e;case 8:return'function'===e||'continue'===e||'debugger'===e;case 10:return'instanceof'===e;default:return!1;}}function r(e,t){return'null'===e||'true'===e||'false'===e||n(e,t)}function o(e,t){return'null'===e||'true'===e||'false'===e||a(e,t)}function s(e){var t,n,a;if(0===e.length)return!1;if(a=e.charCodeAt(0),!p.isIdentifierStartES5(a))return!1;for(t=1,n=e.length;t=a){if(++t,t>=n)return!1;if(r=e.charCodeAt(t),!(56320<=r&&57343>=r))return!1;a=l(a,r)}if(!o(a))return!1;o=p.isIdentifierPartES6}return!0}var p=xl;e.exports={isKeywordES5:n,isKeywordES6:a,isReservedWordES5:r,isReservedWordES6:o,isRestrictedWord:function(e){return'eval'===e||'arguments'===e},isIdentifierNameES5:s,isIdentifierNameES6:i,isIdentifierES5:function(e,t){return s(e)&&!r(e,t)},isIdentifierES6:function(e,t){return i(e)&&!o(e,t)}}})()}),bl=t(function(e,t){(function(){t.ast=fl,t.code=xl,t.keyword=El})()}),Sl=/[|\\{}()[\]^$+*?.]/g,Tl=function(e){if('string'!=typeof e)throw new TypeError('Expected a string');return e.replace(Sl,'\\$&')},vl={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]},Nl=t(function(e){function t(e,t){return o(e[0]-t[0],2)+o(e[1]-t[1],2)+o(e[2]-t[2],2)}var n=Math.PI,o=Math.pow,a={};for(var r in vl)vl.hasOwnProperty(r)&&(a[vl[r]]=r);var s=e.exports={rgb:{channels:3,labels:'rgb'},hsl:{channels:3,labels:'hsl'},hsv:{channels:3,labels:'hsv'},hwb:{channels:3,labels:'hwb'},cmyk:{channels:4,labels:'cmyk'},xyz:{channels:3,labels:'xyz'},lab:{channels:3,labels:'lab'},lch:{channels:3,labels:'lch'},hex:{channels:1,labels:['hex']},keyword:{channels:1,labels:['keyword']},ansi16:{channels:1,labels:['ansi16']},ansi256:{channels:1,labels:['ansi256']},hcg:{channels:3,labels:['h','c','g']},apple:{channels:3,labels:['r16','g16','b16']},gray:{channels:1,labels:['gray']}};for(var i in s)if(s.hasOwnProperty(i)){if(!('channels'in s[i]))throw new Error('missing channels property: '+i);if(!('labels'in s[i]))throw new Error('missing channel labels property: '+i);if(s[i].labels.length!==s[i].channels)throw new Error('channel and label counts mismatch: '+i);var l=s[i].channels,p=s[i].labels;delete s[i].channels,delete s[i].labels,Object.defineProperty(s[i],'channels',{value:l}),Object.defineProperty(s[i],'labels',{value:p})}s.rgb.hsl=function(e){var t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Ms(t,n,a),o=js(t,n,a),i=o-r,p,c,s;return o===r?p=0:t===o?p=(n-a)/i:n===o?p=2+(a-t)/i:a===o&&(p=4+(t-n)/i),p=Ms(60*p,360),0>p&&(p+=360),s=(r+o)/2,c=o===r?0:0.5>=s?i/(o+r):i/(2-o-r),[p,100*c,100*s]},s.rgb.hsv=function(e){var t=e[0],n=e[1],a=e[2],r=Ms(t,n,a),o=js(t,n,a),i=o-r,l,p,s;return p=0===o?0:1e3*(i/o)/10,o===r?l=0:t===o?l=(n-a)/i:n===o?l=2+(a-t)/i:a===o&&(l=4+(t-n)/i),l=Ms(60*l,360),0>l&&(l+=360),s=1e3*(o/255)/10,[l,p,s]},s.rgb.hwb=function(e){var t=e[0],n=e[1],a=e[2],r=s.rgb.hsl(e)[0],o=1/255*Ms(t,Ms(n,a));return a=1-1/255*js(t,js(n,a)),[r,100*o,100*a]},s.rgb.cmyk=function(e){var t=e[0]/255,n=e[1]/255,a=e[2]/255,r,o,s,i;return i=Ms(1-t,1-n,1-a),r=(1-t-i)/(1-i)||0,o=(1-n-i)/(1-i)||0,s=(1-a-i)/(1-i)||0,[100*r,100*o,100*s,100*i]},s.rgb.keyword=function(e){var n=a[e];if(n)return n;var r=Infinity,o;for(var s in vl)if(vl.hasOwnProperty(s)){var i=vl[s],l=t(e,i);la?a*(1+n):a+n-a*n,r=2*a-o,l=[0,0,0];for(var c=0;3>c;c++)s=t+1/3*-(c-1),0>s&&s++,16*s?r+6*(o-r)*s:1>2*s?o:2>3*s?r+6*((o-r)*(2/3-s)):r,l[c]=255*p;return l},s.hsl.hsv=function(e){var t=e[0],n=e[1]/100,a=e[2]/100,r=n,o=js(a,0.01),s,i;return a*=2,n*=1>=a?a:2-a,r*=1>=o?o:2-o,i=(a+n)/2,s=0==a?2*r/(o+r):2*n/(a+n),[t,100*s,100*i]},s.hsv.rgb=function(e){var n=e[0]/60,a=e[1]/100,r=e[2]/100,o=Rs(n)%6,s=n-Rs(n),i=255*r*(1-a),l=255*r*(1-a*s),p=255*r*(1-a*(1-s));return r*=255,0==o?[r,p,i]:1==o?[l,r,i]:2==o?[i,r,p]:3==o?[i,l,r]:4==o?[p,i,r]:5==o?[r,i,l]:void 0},s.hsv.hsl=function(e){var t=e[0],n=e[1]/100,a=e[2]/100,r=js(a,0.01),o,s,i;return i=(2-n)*a,o=(2-n)*r,s=n*r,s/=1>=o?o:2-o,s=s||0,i/=2,[t,100*s,100*i]},s.hwb.rgb=function(e){var t=e[0]/360,a=e[1]/100,o=e[2]/100,s=a+o,l,i,p,c;1s&&(s+=360),i=Math.sqrt(r*r+a*a),[t,i,s]},s.lch.lab=function(e){var t=e[0],r=e[1],o=e[2],s,a,i;return i=2*(o/360)*n,s=r*Math.cos(i),a=r*Math.sin(i),[t,s,a]},s.rgb.ansi16=function(e){var t=e[0],n=e[1],a=e[2],r=1 in arguments?arguments[1]:s.rgb.hsv(e)[2];if(r=Ds(r/50),0===r)return 30;var o=30+(Ds(a/255)<<2|Ds(n/255)<<1|Ds(t/255));return 2===r&&(o+=60),o},s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){var t=e[0],n=e[1],a=e[2];if(t===n&&n===a)return 8>t?16:248>1)*n),o=255*((1&t>>2)*n);return[a,r,o]},s.ansi256.rgb=function(e){if(232<=e){var t=10*(e-232)+8;return[t,t,t]}e-=16;var n=255*(Rs(e/36)/5),a=255*(Rs((o=e%36)/6)/5),r=255*(o%6/5),o;return[n,a,r]},s.rgb.hex=function(e){var t=((255&Ds(e[0]))<<16)+((255&Ds(e[1]))<<8)+(255&Ds(e[2])),n=t.toString(16).toUpperCase();return'000000'.substring(n.length)+n},s.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split('').map(function(e){return e+e}).join(''));var a=parseInt(n,16);return[255&a>>16,255&a>>8,255&a]},s.rgb.hcg=function(e){var t=e[0]/255,n=e[1]/255,a=e[2]/255,r=js(js(t,n),a),o=Ms(Ms(t,n),a),s=r-o,i,l;return i=1>s?o/(1-s):0,l=0>=s?0:r===t?(n-a)/s%6:r===n?2+(a-t)/s:4+(t-n)/s+4,l/=6,l%=1,[360*l,100*s,100*i]},s.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,a=1,r=0;return a=0.5>n?2*t*n:2*t*(1-n),1>a&&(r=(n-0.5*a)/(1-a)),[e[0],100*a,100*r]},s.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,a=t*n,r=0;return 1>a&&(r=(n-a)/(1-a)),[e[0],100*a,100*r]},s.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,a=e[2]/100;if(0==n)return[255*a,255*a,255*a];var r=[0,0,0],o=6*(t%1),s=o%1,i=1-s,l=0;switch(Rs(o)){case 0:r[0]=1,r[1]=s,r[2]=0;break;case 1:r[0]=i,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=s;break;case 3:r[0]=0,r[1]=i,r[2]=1;break;case 4:r[0]=s,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=i;}return l=(1-n)*a,[255*(n*r[0]+l),255*(n*r[1]+l),255*(n*r[2]+l)]},s.hcg.hsv=function(e){var t=e[1]/100,n=e[2]/100,a=t+n*(1-t),r=0;return 0a?r=t/(2*a):0.5<=a&&1>a&&(r=t/(2*(1-a))),[e[0],100*r,100*a]},s.hcg.hwb=function(e){var t=e[1]/100,n=e[2]/100,a=t+n*(1-t);return[e[0],100*(a-t),100*(1-a)]},s.hwb.hcg=function(e){var t=e[1]/100,n=e[2]/100,a=1-n,r=a-t,o=0;return 1>r&&(o=(a-r)/(1-r)),[e[0],100*r,100*o]},s.apple.rgb=function(e){return[255*(e[0]/65535),255*(e[1]/65535),255*(e[2]/65535)]},s.rgb.apple=function(e){return[65535*(e[0]/255),65535*(e[1]/255),65535*(e[2]/255)]},s.gray.rgb=function(e){return[255*(e[0]/100),255*(e[0]/100),255*(e[0]/100)]},s.gray.hsl=s.gray.hsv=function(e){return[0,0,e[0]]},s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){var t=255&Ds(255*(e[0]/100)),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return'000000'.substring(n.length)+n},s.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[100*(t/255)]}}),Cl=Object.keys(Nl),Al=function(e){for(var t=ne(e),n={},a=Object.keys(t),r=a.length,o=0;o=this.level||!n)return this._empty?'':n;var a=Il.dim.open;s&&this.hasGrey&&(Il.dim.open='');var o=!0,i=!1,l=void 0;try{for(var p=this._styles.slice().reverse()[Symbol.iterator](),c,d;!(o=(c=p.next()).done);o=!0)d=c.value,n=d.open+n.replace(d.closeRe,d.open)+d.close,n=n.replace(/\r?\n/g,''.concat(d.close,'$&').concat(d.open))}catch(e){i=!0,l=e}finally{try{o||null==p.return||p.return()}finally{if(i)throw l}}return Il.dim.open=a,n}function o(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(' ');for(var n=[].slice.call(arguments,2),a=[t.raw[0]],r=1;r'),c(p.gutter,o),e,l].join('')}return' '.concat(c(p.gutter,o)).concat(e)}).join('\n');return a.message&&!h&&(x=''.concat(' '.repeat(f+1)).concat(a.message,'\n').concat(x)),s?i.reset(x):x}Object.defineProperty(t,'__esModule',{value:!0}),t.codeFrameColumns=s,t.default=function(e,t,n){var a=3<~]))/g}}),yp=function(e){return'string'==typeof e?e.replace(mp(),''):e},gp=t(function(e){e.exports=function(e){return!Number.isNaN(e)&&4352<=e&&(4447>=e||9001===e||9002===e||11904<=e&&12871>=e&&12351!==e||12880<=e&&19903>=e||19968<=e&&42182>=e||43360<=e&&43388>=e||44032<=e&&55203>=e||63744<=e&&64255>=e||65040<=e&&65049>=e||65072<=e&&65131>=e||65281<=e&&65376>=e||65504<=e&&65510>=e||110592<=e&&110593>=e||127488<=e&&127569>=e||131072<=e&&262141>=e)}}),hp=t(function(e){e.exports=function(e){if('string'!=typeof e||0===e.length)return 0;e=yp(e);for(var t=0,n=0,a;n=a||127<=a&&159>=a))&&(768<=a&&879>=a||(65535t.length;)t='0'+t;return t}t.__esModule=!0,t.normalize_ranges=function(e){return e.sort(function(e,t){var n=e[0],a=t[0];return n-a}).reduce(function(e,t,n){if(0===n)return[t];var a=e[e.length-1],r=a[0],o=a[1],s=t[0],i=t[1];return o+1===s?e.slice(0,-1).concat([[r,i]]):e.concat([t])},[])},t.build_regex=function(e,t){var a=e.map(function(e){var t=e[0],a=e[1];return t===a?'\\u'+n(t):'\\u'+n(t)+'-\\u'+n(a)}).join('');return new RegExp('['+a+']',t)}});e(Tp);var vp=function(e,t){var n=Sp.get_data(),a=e.reduce(function(e,t){return e.concat(n[t])},[]);return Tp.build_regex(Tp.normalize_ranges(a),t)},Np=fp(),Cp=bp().source,Ap=Tl('!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~'),wp=''.concat(Ap).concat(vp(['Pc','Pd','Pe','Pf','Pi','Po','Ps']).source.slice(1,-1)),Pp=new RegExp('['.concat(wp,']')),kp=Me(/\s/),Ip=Me(' \t'),Op=Me(',; \t'),Dp=Me(/[^\r\n]/),Lp={};[['|>'],['||','??'],['&&'],['|'],['^'],['&'],['==','===','!=','!=='],['<','>','<=','>=','in','instanceof'],['>>','<<','>>>'],['+','-'],['*','/','%'],['**']].forEach(function(e,t){e.forEach(function(e){Lp[e]=t})});var jp={"==":!0,"!=":!0,"===":!0,"!==":!0},Rp={"+":!0,"-":!0},Mp={"*":!0,"/":!0,"%":!0},Fp={">>":!0,">>>":!0,"<<":!0},_p={punctuationRegex:Pp,punctuationCharRange:wp,getStringWidth:lt,splitText:it,getMaxContinuousCount:st,getPrecedence:He,shouldFlatten:Ye,isBitwiseOperator:Qe,isExportDeclaration:De,getParentExportDeclaration:Le,getPenultimate:je,getLast:Re,getNextNonSpaceNonCommentCharacterIndex:Xe,getNextNonSpaceNonCommentCharacter:Ge,skipWhitespace:kp,skipSpaces:Ip,skipNewline:Ve,isNextLineEmptyAfterIndex:Je,isNextLineEmpty:Ue,isPreviousLineEmpty:We,hasNewline:qe,hasNewlineInRange:Be,hasSpaces:ze,setLocStart:Ke,setLocEnd:$e,startsWithNoLookaheadToken:Ze,getAlignmentSize:tt,getIndentSize:nt,printString:at,printNumber:ot,hasIgnoreComment:pt,hasNodeIgnoreComment:ct,makeString:rt,addLeadingComment:ut,addDanglingComment:mt,addTrailingComment:yt},Vp=up.concat,qp=up.fill,Bp=up.cursor,Wp=1,Jp=2,Up={printDocToString:bt},Xp={isEmpty:Nt,willBreak:At,isLineNext:Ct,traverseDoc:St,mapDoc:Tt,propagateBreaks:Pt,removeLines:kt,stripTrailingHardline:It},Gp={printDocToDebug:function(e){return Dt(Ot(e))}},zp={builders:up,printer:Up,utils:Xp,debug:Gp},Kp=zp.utils.mapDoc,$p={isNextLineEmpty:Lt,isNextLineEmptyAfterIndex:_p.isNextLineEmptyAfterIndex,getNextNonSpaceNonCommentCharacterIndex:jt,mapDoc:Kp,makeString:_p.makeString,addLeadingComment:_p.addLeadingComment,addDanglingComment:_p.addDanglingComment,addTrailingComment:_p.addTrailingComment},Hp=zp.builders,Yp=Hp.concat,Qp=Hp.hardline,Zp=Hp.breakParent,ec=Hp.indent,tc=Hp.lineSuffix,nc=Hp.join,ac=Hp.cursor,rc=_p.hasNewline,oc=_p.skipNewline,sc=_p.isPreviousLineEmpty,ic=$p.addLeadingComment,lc=$p.addDanglingComment,pc=$p.addTrailingComment,cc=Symbol('child-nodes'),dc={attach:Ft,printComments:Gt,printDanglingComments:Ut,getSortedChildNodes:Rt};zt.prototype.getName=function(){var e=this.stack,t=e.length;return 1a?'\r\n':'\n'},e.exports.graceful=function(t){return e.exports(t)||'\n'}}),Jc={},Uc=Object.freeze({default:Jc,__moduleExports:Jc}),Xc=Uc&&Jc||Uc,Gc=t(function(e,t){function n(){return f=r(Wc)}function a(){return x=Xc}function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=(0,(f||n()).default)(e)||(x||a()).EOL;e=e.replace(l,'').replace(i,'').replace(h,'$1');for(var r='';r!==e;)r=e,e=e.replace(y,''.concat(t,'$1 $2').concat(t));e=e.replace(m,'').replace(u,'');for(var o=Object.create(null),s=e.replace(g,'').replace(m,'').replace(u,''),p;p=g.exec(e);){var d=p[2].replace(c,'');o[p[1]]='string'==typeof o[p[1]]||Array.isArray(o[p[1]])?[].concat(o[p[1]],d):d}return{comments:s,pragmas:o}}function s(e,t){return[].concat(t).map(function(t){return'@'.concat(e,' ').concat(t).trim()})}Object.defineProperty(t,'__esModule',{value:!0}),t.extract=function(e){var t=e.match(p);return t?t[0].replace(d,'')||'':''},t.strip=function(e){var t=e.match(p);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return o(e).pragmas},t.parseWithComments=o,t.print=function(e){var t=e.comments,r=t===void 0?'':t,o=e.pragmas,i=o===void 0?{}:o,l=(0,(f||n()).default)(r)||(x||a()).EOL,p='/**',c=' *',d=' */',u=Object.keys(i),m=u.map(function(e){return s(e,i[e])}).reduce(function(e,t){return e.concat(t)},[]).map(function(e){return c+' '+e+l}).join('');if(!r){if(0===u.length)return'';if(1===u.length&&!Array.isArray(i[u[0]])){var y=i[u[0]];return''.concat(p,' ').concat(s(u[0],y)[0]).concat(d)}}var g=r.split(l).map(function(e){return''.concat(c,' ').concat(e)}).join(l)+l;return p+l+(r?g:'')+(r&&u.length?c+l:'')+m+d};var i=/\*\/$/,l=/^\/\*\*/,p=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,c=/(^|\s+)\/\/([^\r\n]*)/g,d=/^\s*/,u=/\s*$/,m=/^(\r?\n)+/,y=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,g=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,h=/(\r?\n|^) *\* ?/g,f,x});e(Gc);var zc={hasPragma:An,insertPragma:wn},Kc=$p.addLeadingComment,$c=$p.addTrailingComment,Hc=$p.addDanglingComment,Yc={handleOwnLineComment:Pn,handleEndOfLineComment:kn,handleRemainingComment:In,isBlockComment:aa},Qc=oa,Zc=_p.getParentExportDeclaration,ed=_p.isExportDeclaration,td=_p.shouldFlatten,nd=_p.getNextNonSpaceNonCommentCharacter,ad=_p.hasNewline,rd=_p.hasNewlineInRange,od=_p.getLast,sd=_p.getStringWidth,id=_p.printString,ld=_p.printNumber,pd=_p.hasIgnoreComment,cd=_p.skipWhitespace,dd=_p.hasNodeIgnoreComment,ud=_p.getPenultimate,md=_p.startsWithNoLookaheadToken,yd=_p.getIndentSize,gd=$p.isNextLineEmpty,hd=$p.isNextLineEmptyAfterIndex,fd=$p.getNextNonSpaceNonCommentCharacterIndex,xd=bl.keyword.isIdentifierNameES6,Ed=zc.insertPragma,bd=zp.builders,Sd=bd.concat,Td=bd.join,vd=bd.line,Nd=bd.hardline,Cd=bd.softline,Ad=bd.literalline,wd=bd.group,Pd=bd.indent,kd=bd.align,Id=bd.conditionalGroup,Od=bd.fill,Dd=bd.ifBreak,Ld=bd.breakParent,jd=bd.lineSuffixBoundary,Rd=bd.addAlignmentToDoc,Md=bd.dedent,Fd=zp.utils,_d=Fd.willBreak,Vd=Fd.isLineNext,qd=Fd.isEmpty,Bd=Fd.removeLines,Wd=zp.printer.printDocToString,Jd=new Set(['pipe','pipeP','pipeK','compose','composeFlipped','composeP','composeK','flow','flowRight','connect']),Ud=' \n\r\t',Xd=/[^ \n\r ]/,Gd=/([ \n\r ]+)/,zd=/^(skip|[fx]?(it|describe|test))$/,Kd={print:la,embed:qc,insertPragma:Ed,massageAstNode:Bc,hasPrettierIgnore:pa,willPrintOwnComments:Wr,canAttachComment:Jr,printComment:Ur,isBlockComment:Yc.isBlockComment,handleComments:{ownLine:Yc.handleOwnLineComment,endOfLine:Yc.handleEndOfLineComment,remaining:Yc.handleRemainingComment}},$d=zp.builders,Hd=$d.concat,Yd=$d.hardline,Qd=$d.indent,Zd=$d.join,eu={print:Kr,massageAstNode:$r},tu='Common',nu={bracketSpacing:{since:'0.0.0',category:tu,type:'boolean',default:!0,description:'Print spaces between brackets.',oppositeDescription:'Do not print spaces between brackets.'},singleQuote:{since:'0.0.0',category:tu,type:'boolean',default:!1,description:'Use single quotes instead of double quotes.'}},au='JavaScript',ru={arrowParens:{since:'1.9.0',category:au,type:'choice',default:'avoid',description:'Include parentheses around a sole arrow function parameter.',choices:[{value:'avoid',description:'Omit parens when possible. Example: `x => x`'},{value:'always',description:'Always include parens. Example: `(x) => x`'}]},bracketSpacing:nu.bracketSpacing,jsxBracketSameLine:{since:'0.17.0',category:au,type:'boolean',default:!1,description:'Put > on the last line instead of at a new line.'},semi:{since:'1.0.0',category:au,type:'boolean',default:!0,description:'Print semicolons.',oppositeDescription:'Do not print semicolons, except at the beginning of lines which may need them.'},singleQuote:nu.singleQuote,trailingComma:{since:'0.0.0',category:au,type:'choice',default:[{since:'0.0.0',value:!1},{since:'0.19.0',value:'none'}],description:'Print trailing commas wherever possible when multi-line.',choices:[{value:'none',description:'No trailing commas.'},{value:'es5',description:'Trailing commas where valid in ES5 (objects, arrays, etc.)'},{value:'all',description:'Trailing commas wherever possible (including function arguments).'},{value:!0,deprecated:'0.19.0',redirect:'es5'},{value:!1,deprecated:'0.19.0',redirect:'none'}]}},ou=[{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-eslint'],group:'JavaScript',aliases:['ts'],extensions:['.ts','.tsx'],tmScope:'source.ts',aceMode:'typescript',codemirrorMode:'javascript',codemirrorMimeType:'application/typescript',liguistLanguageId:378,vscodeLanguageIds:['typescript','typescriptreact']},{name:'JSON.stringify',since:'1.13.0',parsers:['json-stringify'],group:'JavaScript',tmScope:'source.json',aceMode:'json',codemirrorMode:'javascript',codemirrorMimeType:'application/json',extensions:[],filenames:['package.json','package-lock.json','composer.json'],linguistLanguageId:174,vscodeLanguageIds:['json']},{name:'JSON',since:'1.5.0',parsers:['json'],group:'JavaScript',tmScope:'source.json',aceMode:'json',codemirrorMode:'javascript',codemirrorMimeType:'application/json',extensions:['.json','.geojson','.JSON-tmLanguage','.topojson'],filenames:['.arcconfig','.jshintrc','.eslintrc','.prettierrc','composer.lock','mcmod.info'],linguistLanguageId:174,vscodeLanguageIds:['json','jsonc']},{name:'JSON5',since:'1.13.0',parsers:['json5'],group:'JavaScript',tmScope:'source.json',aceMode:'json',codemirrorMode:'javascript',codemirrorMimeType:'application/json',extensions:['.json5'],filenames:['.babelrc'],linguistLanguageId:175,vscodeLanguageIds:['json5']}],su={estree:Kd,"estree-json":eu},iu={languages:ou,options:ru,printers:su},lu=['a','abbr','acronym','address','applet','area','article','aside','audio','b','base','basefont','bdi','bdo','bgsound','big','blink','blockquote','body','br','button','canvas','caption','center','cite','code','col','colgroup','command','content','data','datalist','dd','del','details','dfn','dialog','dir','div','dl','dt','element','em','embed','fieldset','figcaption','figure','font','footer','form','frame','frameset','h1','h2','h3','h4','h5','h6','head','header','hgroup','hr','html','i','iframe','image','img','input','ins','isindex','kbd','keygen','label','legend','li','link','listing','main','map','mark','marquee','math','menu','menuitem','meta','meter','multicol','nav','nextid','nobr','noembed','noframes','noscript','object','ol','optgroup','option','output','p','param','picture','plaintext','pre','progress','q','rb','rbc','rp','rt','rtc','ruby','s','samp','script','section','select','shadow','slot','small','source','spacer','span','strike','strong','style','sub','summary','sup','svg','table','tbody','td','template','textarea','tfoot','th','thead','time','title','tr','track','tt','u','ul','var','video','wbr','xmp'],pu=Object.freeze({default:lu}),cu=pu&&lu||pu,du=Hr,uu=['red','green','blue','alpha','a','rgb','hue','h','saturation','s','lightness','l','whiteness','w','blackness','b','tint','shade','blend','blenda','contrast','hsl','hsla','hwb','hwba'],mu={getAncestorCounter:Qr,getAncestorNode:Zr,getPropOfDeclNode:eo,maybeToLowerCase:ro,insideValueFunctionNode:oo,insideICSSRuleNode:so,insideAtRuleNode:io,insideURLFunctionInImportAtRuleNode:lo,isKeyframeAtRuleKeywords:ao,isHTMLTag:uo,isWideKeywords:no,isSCSS:to,isLastNode:co,isSCSSControlDirectiveNode:Co,isDetachedRulesetDeclarationNode:mo,isRelationalOperatorNode:No,isEqualityOperatorNode:vo,isMultiplicationNode:fo,isDivisionNode:xo,isAdditionNode:Eo,isSubtractionNode:bo,isModuloNode:So,isMathOperatorNode:To,isEachKeywordNode:ho,isForKeywordNode:yo,isURLFunctionNode:po,isIfElseKeywordNode:go,hasComposesNode:ko,hasParensAroundNode:Io,hasEmptyRawBefore:Oo,isSCSSNestedPropertyNode:Ao,isDetachedRulesetCallNode:wo,isPostcssSimpleVarNode:Po,isKeyValuePairNode:Do,isKeyValuePairInParenGroupNode:Lo,isSCSSMapItemNode:jo,isInlineValueCommentNode:Ro,isHashNode:Mo,isLeftCurlyBraceNode:Fo,isRightCurlyBraceNode:_o,isWordNode:Vo,isColonNode:qo,isMediaAndSupportsKeywords:Bo,isColorAdjusterFuncNode:Wo},yu=_p.printNumber,gu=_p.printString,hu=_p.hasIgnoreComment,fu=_p.hasNewline,xu=$p.isNextLineEmpty,Eu=zp.builders,bu=Eu.concat,Su=Eu.join,Tu=Eu.line,vu=Eu.hardline,Nu=Eu.softline,Cu=Eu.group,Au=Eu.fill,wu=Eu.indent,Pu=Eu.dedent,ku=Eu.ifBreak,Iu=zp.utils.removeLines,Ou=mu.getAncestorNode,Du=mu.getPropOfDeclNode,Lu=mu.maybeToLowerCase,ju=mu.insideValueFunctionNode,Ru=mu.insideICSSRuleNode,Mu=mu.insideAtRuleNode,Fu=mu.insideURLFunctionInImportAtRuleNode,_u=mu.isKeyframeAtRuleKeywords,Vu=mu.isHTMLTag,qu=mu.isWideKeywords,Bu=mu.isSCSS,Wu=mu.isLastNode,Ju=mu.isSCSSControlDirectiveNode,Uu=mu.isDetachedRulesetDeclarationNode,Xu=mu.isRelationalOperatorNode,Gu=mu.isEqualityOperatorNode,zu=mu.isMultiplicationNode,Ku=mu.isDivisionNode,$u=mu.isAdditionNode,Hu=mu.isSubtractionNode,Yu=mu.isMathOperatorNode,Qu=mu.isEachKeywordNode,Zu=mu.isForKeywordNode,em=mu.isURLFunctionNode,tm=mu.isIfElseKeywordNode,nm=mu.hasComposesNode,am=mu.hasParensAroundNode,rm=mu.hasEmptyRawBefore,om=mu.isKeyValuePairNode,sm=mu.isDetachedRulesetCallNode,im=mu.isPostcssSimpleVarNode,lm=mu.isSCSSMapItemNode,pm=mu.isInlineValueCommentNode,cm=mu.isHashNode,dm=mu.isLeftCurlyBraceNode,um=mu.isRightCurlyBraceNode,mm=mu.isWordNode,ym=mu.isColonNode,gm=mu.isMediaAndSupportsKeywords,hm=mu.isColorAdjusterFuncNode,fm=/(['"])(?:(?!\1)[^\\]|\\[\s\S])*\1/g,xm=/(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g,Em=/[a-zA-Z]+/g,bm=/[$@]?[a-zA-Z_\u0080-\uFFFF][\w\-\u0080-\uFFFF]*/g,Sm=RegExp(fm.source+'|'+'('.concat(bm.source,')?')+'('.concat(xm.source,')')+'('.concat(Em.source,')?'),'g'),Tm={print:Uo,hasPrettierIgnore:hu,massageAstNode:du},vm={singleQuote:nu.singleQuote},Nm=[{name:'CSS',since:'1.4.0',parsers:['css'],group:'CSS',tmScope:'source.css',aceMode:'css',codemirrorMode:'css',codemirrorMimeType:'text/css',extensions:['.css','.pcss','.postcss'],liguistLanguageId:50,vscodeLanguageIds:['css','postcss']},{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']}],Cm={postcss:Tm},Am={languages:Nm,options:vm,printers:Cm},wm=zp.builders,Pm=wm.concat,km=wm.join,Im=wm.hardline,Om=wm.line,Dm=wm.softline,Lm=wm.group,jm=wm.indent,Rm=wm.ifBreak,Mm=_p.hasIgnoreComment,Fm=$p.isNextLineEmpty,_m={print:Ho,massageAstNode:ns,hasPrettierIgnore:Mm,printComment:es,canAttachComment:Zo},Vm={bracketSpacing:nu.bracketSpacing},qm=[{name:'GraphQL',since:'1.5.0',parsers:['graphql'],extensions:['.graphql','.gql'],tmScope:'source.graphql',aceMode:'text',liguistLanguageId:139,vscodeLanguageIds:['graphql']}],Bm={graphql:_m},Wm={languages:qm,options:Vm,printers:Bm},Jm=zp.builders,Um=Jm.hardline,Xm=Jm.literalline,Gm=Jm.concat,zm=Jm.markAsRoot,Km=zp.utils.mapDoc,$m=as,Hm=rs,Ym=t(function(e){function t(e){var t='@('.concat(n.join('|'),')'),a=new RegExp([''),'')].join('|'),'m'),r=e.match(a);return r&&0===r.index}var n=['format','prettier'];e.exports={startWithPragma:t,hasPragma:function(e){return t(Hm(e).content.trimLeft())},insertPragma:function(e){var t=Hm(e),a='');return t.frontMatter?''.concat(t.frontMatter,'\n\n').concat(a,'\n\n').concat(t.content):''.concat(a,'\n\n').concat(t.content)}}}),Qm=zp.builders,Zm=Qm.concat,ey=Qm.join,ty=Qm.line,ny=Qm.literalline,ay=Qm.markAsRoot,ry=Qm.hardline,oy=Qm.softline,sy=Qm.fill,iy=Qm.align,ly=Qm.indent,py=Qm.group,cy=zp.utils.mapDoc,dy=zp.printer.printDocToString,uy=['heading','tableCell','link'],my=['listItem','definition','footnoteDefinition'],yy=['liquidNode','inlineCode','emphasis','strong','delete','link','linkReference','image','imageReference','footnote','footnoteReference','sentence','whitespace','word','break'],gy=yy.concat(['tableCell','paragraph','heading']),hy={print:os,embed:$m,massageAstNode:ws,hasPrettierIgnore:Ps,insertPragma:Ym.insertPragma},fy='Markdown',xy={proseWrap:{since:'1.8.2',category:fy,type:'choice',default:[{since:'1.8.2',value:!0},{since:'1.9.0',value:'preserve'}],description:'How to wrap prose. (markdown)',choices:[{since:'1.9.0',value:'always',description:'Wrap prose if it exceeds the print width.'},{since:'1.9.0',value:'never',description:'Do not wrap prose.'},{since:'1.9.0',value:'preserve',description:'Wrap prose as-is.'},{value:!1,deprecated:'1.9.0',redirect:'never'},{value:!0,deprecated:'1.9.0',redirect:'always'}]},singleQuote:nu.singleQuote},Ey=[{name:'Markdown',since:'1.8.0',parsers:['remark'],aliases:['pandoc'],aceMode:'markdown',codemirrorMode:'gfm',codemirrorMimeType:'text/x-gfm',wrap:!0,extensions:['.md','.markdown','.mdown','.mdwn','.mkd','.mkdn','.mkdown','.ron','.workbook'],filenames:['README'],tmScope:'source.gfm',linguistLanguageId:222,vscodeLanguageIds:['markdown']}],by={mdast:hy},Sy={languages:Ey,options:xy,printers:by},Ty=zp.builders,vy=Ty.concat,Ny=Ty.hardline,Cy=ks,Ay=zp.builders,wy=Ay.concat,Py=Ay.hardline,ky=function(e,t){delete t.start,delete t.end,delete t.contentStart,delete t.contentEnd},Iy={print:Is,embed:Cy,massageAstNode:ky},Oy=[{name:'Vue',since:'1.10.0',parsers:['vue'],group:'HTML',tmScope:'text.html.vue',aceMode:'html',codemirrorMode:'htmlmixed',codemirrorMimeType:'text/html',extensions:['.vue'],linguistLanguageId:146,vscodeLanguageIds:['vue']}],Dy={vue:Iy},Ly={languages:Oy,printers:Dy},jy=rl.version,Ry=il.getSupportInfo,My=[iu,Am,Wm,Sy,Ly],Fy=Array.isArray||function(e){return'[object Array]'===Object.prototype.toString.call(e)},_y=Os(Pc.formatWithCursor),Vy={formatWithCursor:_y,format:function(e,t){return _y(e,t).formatted},check:function(e,t){var n=_y(e,t).formatted;return n===e},doc:zp,getSupportInfo:Os(Ry),version:jy,util:$p,__debug:{parse:Os(Pc.parse),formatAST:Os(Pc.formatAST),formatDoc:Os(Pc.formatDoc),printToDoc:Os(Pc.printToDoc),printDocToString:Os(Pc.printDocToString)}};return Vy}); \ No newline at end of file diff --git a/src/utils.js b/src/utils.js index f3e4640..33216cb 100644 --- a/src/utils.js +++ b/src/utils.js @@ -461,24 +461,14 @@ export function getFilenameFromUrl(url) { } export function prettify(content, type = 'js') { - const prettier = require('prettier/standalone'); - let plugins, parser; - if (type === 'js') { - parser = 'babylon'; - plugins = [require('prettier/parser-babylon')]; - } else if (type === 'css') { - parser = 'css'; - plugins = [require('prettier/parser-postcss')]; - } - - if (!parser) { - return content; - } - const formattedContent = prettier.format(content, { - parser, - plugins + const d = deferred(); + const worker = new Worker('/lib/prettier-worker.js'); + worker.postMessage({ content, type }); + worker.addEventListener('message', e => { + d.resolve(e.data); + worker.terminate(); }); - return formattedContent || content; + return d.promise; } if (window.IS_EXTENSION) {