evaljs
Version:
A JavaScript interpreter written in JavaScript
2 lines • 106 kB
JavaScript
require=function t(e,r,n){function i(a,o){if(!r[a]){if(!e[a]){var c="function"==typeof require&&require;if(!o&&c)return c(a,!0);if(s)return s(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var h=r[a]={exports:{}};e[a][0].call(h.exports,function(t){var r=e[a][1][t];return i(r?r:t)},h,h.exports,t,e,r,n)}return r[a].exports}for(var s="function"==typeof require&&require,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(t,e,r){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return"function"==typeof t}function s(t){return"number"==typeof t}function a(t){return"object"==typeof t&&null!==t}function o(t){return void 0===t}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!s(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,r,n,s,c,u;if(this._events||(this._events={}),"error"===t&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;var h=new Error('Uncaught, unspecified "error" event. ('+e+")");throw h.context=e,h}if(r=this._events[t],o(r))return!1;if(i(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),r.apply(this,s)}else if(a(r))for(s=Array.prototype.slice.call(arguments,1),u=r.slice(),n=u.length,c=0;c<n;c++)u[c].apply(this,s);return!0},n.prototype.addListener=function(t,e){var r;if(!i(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,i(e.listener)?e.listener:e),this._events[t]?a(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,a(this._events[t])&&!this._events[t].warned&&(r=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,r&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function r(){this.removeListener(t,r),n||(n=!0,e.apply(this,arguments))}if(!i(e))throw TypeError("listener must be a function");var n=!1;return r.listener=e,this.on(t,r),this},n.prototype.removeListener=function(t,e){var r,n,s,o;if(!i(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(r=this._events[t],s=r.length,n=-1,r===e||i(r.listener)&&r.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(a(r)){for(o=s;o-- >0;)if(r[o]===e||r[o].listener&&r[o].listener===e){n=o;break}if(n<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],i(r))this.removeListener(t,r);else if(r)for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){var e;return e=this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},{}],2:[function(t,e,r){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(p===setTimeout)return setTimeout(t,0);if((p===n||!p)&&setTimeout)return p=setTimeout,setTimeout(t,0);try{return p(t,0)}catch(e){try{return p.call(null,t,0)}catch(e){return p.call(this,t,0)}}}function a(t){if(l===clearTimeout)return clearTimeout(t);if((l===i||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function o(){g&&d&&(g=!1,d.length?m=d.concat(m):y=-1,m.length&&c())}function c(){if(!g){var t=s(o);g=!0;for(var e=m.length;e;){for(d=m,m=[];++y<e;)d&&d[y].run();y=-1,e=m.length}d=null,g=!1,a(t)}}function u(t,e){this.fun=t,this.array=e}function h(){}var p,l,f=e.exports={};!function(){try{p="function"==typeof setTimeout?setTimeout:n}catch(t){p=n}try{l="function"==typeof clearTimeout?clearTimeout:i}catch(t){l=i}}();var d,m=[],g=!1,y=-1;f.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];m.push(new u(t,e)),1!==m.length||g||s(c)},u.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=h,f.addListener=h,f.once=h,f.off=h,f.removeListener=h,f.removeAllListeners=h,f.emit=h,f.binding=function(t){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(t){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},{}],3:[function(t,e,r){"function"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],4:[function(t,e,r){e.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},{}],5:[function(t,e,r){(function(e,n){function i(t,e){var n={seen:[],stylize:a};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(e)?n.showHidden=e:e&&r._extend(n,e),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=s),c(n,t,n.depth)}function s(t,e){var r=i.styles[e];return r?"["+i.colors[r][0]+"m"+t+"["+i.colors[r][1]+"m":t}function a(t,e){return t}function o(t){var e={};return t.forEach(function(t,r){e[t]=!0}),e}function c(t,e,n){if(t.customInspect&&e&&A(e.inspect)&&e.inspect!==r.inspect&&(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(n,t);return x(i)||(i=c(t,i,n)),i}var s=u(t,e);if(s)return s;var a=Object.keys(e),m=o(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),S(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(e);if(0===a.length){if(A(e)){var g=e.name?": "+e.name:"";return t.stylize("[Function"+g+"]","special")}if(k(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(E(e))return t.stylize(Date.prototype.toString.call(e),"date");if(S(e))return h(e)}var y="",v=!1,b=["{","}"];if(d(e)&&(v=!0,b=["[","]"]),A(e)){var w=e.name?": "+e.name:"";y=" [Function"+w+"]"}if(k(e)&&(y=" "+RegExp.prototype.toString.call(e)),E(e)&&(y=" "+Date.prototype.toUTCString.call(e)),S(e)&&(y=" "+h(e)),0===a.length&&(!v||0==e.length))return b[0]+y+b[1];if(n<0)return k(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var _;return _=v?p(t,e,n,m,a):a.map(function(r){return l(t,e,n,m,r,v)}),t.seen.pop(),f(_,y,b)}function u(t,e){if(w(e))return t.stylize("undefined","undefined");if(x(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return v(e)?t.stylize(""+e,"number"):m(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0}function h(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,r,n,i){for(var s=[],a=0,o=e.length;a<o;++a)P(e,String(a))?s.push(l(t,e,r,n,String(a),!0)):s.push("");return i.forEach(function(i){i.match(/^\d+$/)||s.push(l(t,e,r,n,i,!0))}),s}function l(t,e,r,n,i,s){var a,o,u;if(u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]},u.get?o=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(o=t.stylize("[Setter]","special")),P(n,i)||(a="["+i+"]"),o||(t.seen.indexOf(u.value)<0?(o=g(r)?c(t,u.value,null):c(t,u.value,r-1),o.indexOf("\n")>-1&&(o=s?o.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+o.split("\n").map(function(t){return" "+t}).join("\n"))):o=t.stylize("[Circular]","special")),w(a)){if(s&&i.match(/^\d+$/))return o;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+o}function f(t,e,r){var n=0,i=t.reduce(function(t,e){return n++,e.indexOf("\n")>=0&&n++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}function d(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function g(t){return null===t}function y(t){return null==t}function v(t){return"number"==typeof t}function x(t){return"string"==typeof t}function b(t){return"symbol"==typeof t}function w(t){return void 0===t}function k(t){return _(t)&&"[object RegExp]"===C(t)}function _(t){return"object"==typeof t&&null!==t}function E(t){return _(t)&&"[object Date]"===C(t)}function S(t){return _(t)&&("[object Error]"===C(t)||t instanceof Error)}function A(t){return"function"==typeof t}function L(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function C(t){return Object.prototype.toString.call(t)}function R(t){return t<10?"0"+t.toString(10):t.toString(10)}function N(){var t=new Date,e=[R(t.getHours()),R(t.getMinutes()),R(t.getSeconds())].join(":");return[t.getDate(),V[t.getMonth()],e].join(" ")}function P(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var T=/%[sdj%]/g;r.format=function(t){if(!x(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(i(arguments[r]));return e.join(" ")}for(var r=1,n=arguments,s=n.length,a=String(t).replace(T,function(t){if("%%"===t)return"%";if(r>=s)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}}),o=n[r];r<s;o=n[++r])a+=g(o)||!_(o)?" "+o:" "+i(o);return a},r.deprecate=function(t,i){function s(){if(!a){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),a=!0}return t.apply(this,arguments)}if(w(n.process))return function(){return r.deprecate(t,i).apply(this,arguments)};if(e.noDeprecation===!0)return t;var a=!1;return s};var I,O={};r.debuglog=function(t){if(w(I)&&(I=e.env.NODE_DEBUG||""),t=t.toUpperCase(),!O[t])if(new RegExp("\\b"+t+"\\b","i").test(I)){var n=e.pid;O[t]=function(){var e=r.format.apply(r,arguments);console.error("%s %d: %s",t,n,e)}}else O[t]=function(){};return O[t]},r.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=d,r.isBoolean=m,r.isNull=g,r.isNullOrUndefined=y,r.isNumber=v,r.isString=x,r.isSymbol=b,r.isUndefined=w,r.isRegExp=k,r.isObject=_,r.isDate=E,r.isError=S,r.isFunction=A,r.isPrimitive=L,r.isBuffer=t("./support/isBuffer");var V=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];r.log=function(){console.log("%s - %s",N(),r.format.apply(r,arguments))},r.inherits=t("inherits"),r._extend=function(t,e){if(!e||!_(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":4,_process:2,inherits:3}],acorn:[function(t,e,r){!function(t,n){"object"==typeof r&&"undefined"!=typeof e?n(r):"function"==typeof define&&define.amd?define(["exports"],n):n(t.acorn=t.acorn||{})}(this,function(t){"use strict";function e(t,e){for(var r=65536,n=0;n<e.length;n+=2){if(r+=e[n],r>t)return!1;if(r+=e[n+1],r>=t)return!0}}function r(t,r){return t<65?36===t:t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&S.test(String.fromCharCode(t)):r!==!1&&e(t,L)))}function n(t,r){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&A.test(String.fromCharCode(t)):r!==!1&&(e(t,L)||e(t,C)))))}function i(t,e){return new R(t,{beforeExpr:!0,binop:e})}function s(t,e){return void 0===e&&(e={}),e.keyword=t,T[t]=new R(t,e)}function a(t){return 10===t||13===t||8232===t||8233===t}function o(t){return"[object Array]"===Object.prototype.toString.call(t)}function c(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t,e){for(var r=1,n=0;;){V.lastIndex=n;var i=V.exec(t);if(!(i&&i.index<e))return new j(r,e-n);++r,n=i.index+i[0].length}}function h(t){var e={};for(var r in B)e[r]=t&&c(t,r)?t[r]:B[r];if(e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),null==e.allowReserved&&(e.allowReserved=e.ecmaVersion<5),o(e.onToken)){var n=e.onToken;e.onToken=function(t){return n.push(t)}}return o(e.onComment)&&(e.onComment=p(e,e.onComment)),e}function p(t,e){return function(r,n,i,s,a,o){var c={type:r?"Block":"Line",value:n,start:i,end:s};t.locations&&(c.loc=new Y(this,a,o)),t.ranges&&(c.range=[i,s]),e.push(c)}}function l(t){return new RegExp("^("+t.replace(/ /g,"|")+")$")}function f(t,e,r,n){return t.type=e,t.end=r,this.options.locations&&(t.loc.end=n),this.options.ranges&&(t.range[1]=r),t}function d(t,e,r,n){try{return new RegExp(t,e)}catch(t){if(void 0!==r)throw t instanceof SyntaxError&&n.raise(r,"Error parsing regular expression: "+t.message),t}}function m(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(1023&t)+56320))}function g(t,e){return new U(e,t).parse()}function y(t,e,r){var n=new U(r,t,e);return n.nextToken(),n.parseExpression()}function v(t,e){return new U(e,t)}function x(e,r,n){t.parse_dammit=e,t.LooseParser=r,t.pluginsLoose=n}var b={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},w="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",k={5:w,6:w+" const class extends export import super"},_="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞮꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",E="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣔ-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",S=new RegExp("["+_+"]"),A=new RegExp("["+_+E+"]");_=E=null;var L=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,17,26,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,26,45,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,785,52,76,44,33,24,27,35,42,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,54,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,86,25,391,63,32,0,449,56,264,8,2,36,18,0,50,29,881,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,881,68,12,0,67,12,65,0,32,6124,20,754,9486,1,3071,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,60,67,1213,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,10591,541],C=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,1306,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,52,0,13,2,49,13,10,2,4,9,83,11,7,0,161,11,6,9,7,3,57,0,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,87,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,423,9,838,7,2,7,17,9,57,21,2,13,19882,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,2214,6,110,6,6,9,792487,239],R=function(t,e){void 0===e&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null},N={beforeExpr:!0},P={startsExpr:!0},T={},I={num:new R("num",P),regexp:new R("regexp",P),string:new R("string",P),name:new R("name",P),eof:new R("eof"),bracketL:new R("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new R("]"),braceL:new R("{",{beforeExpr:!0,startsExpr:!0}),braceR:new R("}"),parenL:new R("(",{beforeExpr:!0,startsExpr:!0}),parenR:new R(")"),comma:new R(",",N),semi:new R(";",N),colon:new R(":",N),dot:new R("."),question:new R("?",N),arrow:new R("=>",N),template:new R("template"),ellipsis:new R("...",N),backQuote:new R("`",P),dollarBraceL:new R("${",{beforeExpr:!0,startsExpr:!0}),eq:new R("=",{beforeExpr:!0,isAssign:!0}),assign:new R("_=",{beforeExpr:!0,isAssign:!0}),incDec:new R("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new R("prefix",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:i("||",1),logicalAND:i("&&",2),bitwiseOR:i("|",3),bitwiseXOR:i("^",4),bitwiseAND:i("&",5),equality:i("==/!=",6),relational:i("</>",7),bitShift:i("<</>>",8),plusMin:new R("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:i("%",10),star:i("*",10),slash:i("/",10),starstar:new R("**",{beforeExpr:!0}),_break:s("break"),_case:s("case",N),_catch:s("catch"),_continue:s("continue"),_debugger:s("debugger"),_default:s("default",N),_do:s("do",{isLoop:!0,beforeExpr:!0}),_else:s("else",N),_finally:s("finally"),_for:s("for",{isLoop:!0}),_function:s("function",P),_if:s("if"),_return:s("return",N),_switch:s("switch"),_throw:s("throw",N),_try:s("try"),_var:s("var"),_const:s("const"),_while:s("while",{isLoop:!0}),_with:s("with"),_new:s("new",{beforeExpr:!0,startsExpr:!0}),_this:s("this",P),_super:s("super",P),_class:s("class"),_extends:s("extends",N),_export:s("export"),_import:s("import"),_null:s("null",P),_true:s("true",P),_false:s("false",P),_in:s("in",{beforeExpr:!0,binop:7}),_instanceof:s("instanceof",{beforeExpr:!0,binop:7}),_typeof:s("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:s("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:s("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},O=/\r\n?|\n|\u2028|\u2029/,V=new RegExp(O.source,"g"),F=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,D=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,j=function(t,e){this.line=t,this.column=e};j.prototype.offset=function(t){return new j(this.line,this.column+t)};var Y=function(t,e,r){this.start=e,this.end=r,null!==t.sourceFile&&(this.source=t.sourceFile)},B={ecmaVersion:7,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1,plugins:{}},M={},U=function(t,e,r){this.options=t=h(t),this.sourceFile=t.sourceFile,this.keywords=l(k[t.ecmaVersion>=6?6:5]);var n="";if(!t.allowReserved){for(var i=t.ecmaVersion;!(n=b[i]);i--);"module"==t.sourceType&&(n+=" await")}this.reservedWords=l(n);var s=(n?n+" ":"")+b.strict;this.reservedWordsStrict=l(s),this.reservedWordsStrictBind=l(s+" "+b.strictBind),this.input=String(e),this.containsEsc=!1,this.loadPlugins(t.plugins),r?(this.pos=r,this.lineStart=this.input.lastIndexOf("\n",r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(O).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=I.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.strict=this.inModule="module"===t.sourceType,this.potentialArrowAt=-1,this.inFunction=this.inGenerator=this.inAsync=!1,this.yieldPos=this.awaitPos=0,this.labels=[],0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2)};U.prototype.isKeyword=function(t){return this.keywords.test(t)},U.prototype.isReservedWord=function(t){return this.reservedWords.test(t)},U.prototype.extend=function(t,e){this[t]=e(this[t])},U.prototype.loadPlugins=function(t){var e=this;for(var r in t){var n=M[r];if(!n)throw new Error("Plugin '"+r+"' not found");n(e,t[r])}},U.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};var q=U.prototype;q.isUseStrict=function(t){return this.options.ecmaVersion>=5&&"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"use strict"===t.expression.raw.slice(1,-1)},q.eat=function(t){return this.type===t&&(this.next(),!0)},q.isContextual=function(t){return this.type===I.name&&this.value===t},q.eatContextual=function(t){return this.value===t&&this.eat(I.name)},q.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},q.canInsertSemicolon=function(){return this.type===I.eof||this.type===I.braceR||O.test(this.input.slice(this.lastTokEnd,this.start))},q.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},q.semicolon=function(){this.eat(I.semi)||this.insertSemicolon()||this.unexpected()},q.afterTrailingComma=function(t,e){if(this.type==t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},q.expect=function(t){this.eat(t)||this.unexpected()},q.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")};var G=function(){this.shorthandAssign=0,this.trailingComma=0};q.checkPatternErrors=function(t,e){var r=t&&t.trailingComma;return e?void(r&&this.raise(r,"Comma is not permitted after the rest element")):!!r},q.checkExpressionErrors=function(t,e){var r=t&&t.shorthandAssign;return e?void(r&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns")):!!r},q.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};var z=U.prototype;z.parseTopLevel=function(t){var e=this,r=!0,n={};for(t.body||(t.body=[]);this.type!==I.eof;){var i=e.parseStatement(!0,!0,n);t.body.push(i),r&&(e.isUseStrict(i)&&e.setStrict(!0),r=!1)}return this.next(),this.options.ecmaVersion>=6&&(t.sourceType=this.options.sourceType),this.finishNode(t,"Program")};var W={kind:"loop"},H={kind:"switch"};z.isLet=function(){if(this.type!==I.name||this.options.ecmaVersion<6||"let"!=this.value)return!1;D.lastIndex=this.pos;var t=D.exec(this.input),e=this.pos+t[0].length,i=this.input.charCodeAt(e);if(91===i||123==i)return!0;if(r(i,!0)){for(var s=e+1;n(this.input.charCodeAt(s),!0);++s);var a=this.input.slice(e,s);if(!this.isKeyword(a))return!0}return!1},z.isAsyncFunction=function(){if(this.type!==I.name||this.options.ecmaVersion<8||"async"!=this.value)return!1;D.lastIndex=this.pos;var t=D.exec(this.input),e=this.pos+t[0].length;return!(O.test(this.input.slice(this.pos,e))||"function"!==this.input.slice(e,e+8)||e+8!=this.input.length&&n(this.input.charAt(e+8)))},z.parseStatement=function(t,e,r){var n,i=this.type,s=this.startNode();switch(this.isLet()&&(i=I._var,n="let"),i){case I._break:case I._continue:return this.parseBreakContinueStatement(s,i.keyword);case I._debugger:return this.parseDebuggerStatement(s);case I._do:return this.parseDoStatement(s);case I._for:return this.parseForStatement(s);case I._function:return!t&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1);case I._class:return t||this.unexpected(),this.parseClass(s,!0);case I._if:return this.parseIfStatement(s);case I._return:return this.parseReturnStatement(s);case I._switch:return this.parseSwitchStatement(s);case I._throw:return this.parseThrowStatement(s);case I._try:return this.parseTryStatement(s);case I._const:case I._var:return n=n||this.value,t||"var"==n||this.unexpected(),this.parseVarStatement(s,n);case I._while:return this.parseWhileStatement(s);case I._with:return this.parseWithStatement(s);case I.braceL:return this.parseBlock();case I.semi:return this.parseEmptyStatement(s);case I._export:case I._import:return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===I._import?this.parseImport(s):this.parseExport(s,r);default:if(this.isAsyncFunction()&&t)return this.next(),this.parseFunctionStatement(s,!0);var a=this.value,o=this.parseExpression();return i===I.name&&"Identifier"===o.type&&this.eat(I.colon)?this.parseLabeledStatement(s,a,o):this.parseExpressionStatement(s,o)}},z.parseBreakContinueStatement=function(t,e){var r=this,n="break"==e;this.next(),this.eat(I.semi)||this.insertSemicolon()?t.label=null:this.type!==I.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var s=r.labels[i];if(null==t.label||s.name===t.label.name){if(null!=s.kind&&(n||"loop"===s.kind))break;if(t.label&&n)break}}return i===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,n?"BreakStatement":"ContinueStatement")},z.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},z.parseDoStatement=function(t){return this.next(),this.labels.push(W),t.body=this.parseStatement(!1),this.labels.pop(),this.expect(I._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(I.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},z.parseForStatement=function(t){if(this.next(),this.labels.push(W),this.expect(I.parenL),this.type===I.semi)return this.parseFor(t,null);var e=this.isLet();if(this.type===I._var||this.type===I._const||e){var r=this.startNode(),n=e?"let":this.value;return this.next(),this.parseVar(r,!0,n),this.finishNode(r,"VariableDeclaration"),!(this.type===I._in||this.options.ecmaVersion>=6&&this.isContextual("of"))||1!==r.declarations.length||"var"!==n&&r.declarations[0].init?this.parseFor(t,r):this.parseForIn(t,r)}var i=new G,s=this.parseExpression(!0,i);return this.type===I._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.checkPatternErrors(i,!0),this.toAssignable(s),this.checkLVal(s),this.parseForIn(t,s)):(this.checkExpressionErrors(i,!0),this.parseFor(t,s))},z.parseFunctionStatement=function(t,e){return this.next(),this.parseFunction(t,!0,!1,e)},z.isFunction=function(){return this.type===I._function||this.isAsyncFunction()},z.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement(!this.strict&&this.isFunction()),t.alternate=this.eat(I._else)?this.parseStatement(!this.strict&&this.isFunction()):null,this.finishNode(t,"IfStatement")},z.parseReturnStatement=function(t){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(I.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},z.parseSwitchStatement=function(t){var e=this;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(I.braceL),this.labels.push(H);for(var r,n=!1;this.type!=I.braceR;)if(e.type===I._case||e.type===I._default){var i=e.type===I._case;r&&e.finishNode(r,"SwitchCase"),t.cases.push(r=e.startNode()),r.consequent=[],e.next(),i?r.test=e.parseExpression():(n&&e.raiseRecoverable(e.lastTokStart,"Multiple default clauses"),n=!0,r.test=null),e.expect(I.colon)}else r||e.unexpected(),r.consequent.push(e.parseStatement(!0));return r&&this.finishNode(r,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},z.parseThrowStatement=function(t){return this.next(),O.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var $=[];z.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===I._catch){var e=this.startNode();this.next(),this.expect(I.parenL),e.param=this.parseBindingAtom(),this.checkLVal(e.param,!0),this.expect(I.parenR),e.body=this.parseBlock(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(I._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},z.parseVarStatement=function(t,e){return this.next(),this.parseVar(t,!1,e),this.semicolon(),this.finishNode(t,"VariableDeclaration")},z.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(W),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,"WhileStatement")},z.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement(!1),this.finishNode(t,"WithStatement")},z.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},z.parseLabeledStatement=function(t,e,r){for(var n=this,i=0;i<this.labels.length;++i)n.labels[i].name===e&&n.raise(r.start,"Label '"+e+"' is already declared");for(var s=this.type.isLoop?"loop":this.type===I._switch?"switch":null,a=this.labels.length-1;a>=0;a--){var o=n.labels[a];if(o.statementStart!=t.start)break;o.statementStart=n.start,
o.kind=s}return this.labels.push({name:e,kind:s,statementStart:this.start}),t.body=this.parseStatement(!0),this.labels.pop(),t.label=r,this.finishNode(t,"LabeledStatement")},z.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},z.parseBlock=function(t){var e,r=this,n=this.startNode(),i=!0;for(n.body=[],this.expect(I.braceL);!this.eat(I.braceR);){var s=r.parseStatement(!0);n.body.push(s),i&&t&&r.isUseStrict(s)&&(e=r.strict,r.setStrict(r.strict=!0)),i=!1}return e===!1&&this.setStrict(!1),this.finishNode(n,"BlockStatement")},z.parseFor=function(t,e){return t.init=e,this.expect(I.semi),t.test=this.type===I.semi?null:this.parseExpression(),this.expect(I.semi),t.update=this.type===I.parenR?null:this.parseExpression(),this.expect(I.parenR),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,"ForStatement")},z.parseForIn=function(t,e){var r=this.type===I._in?"ForInStatement":"ForOfStatement";return this.next(),t.left=e,t.right=this.parseExpression(),this.expect(I.parenR),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,r)},z.parseVar=function(t,e,r){var n=this;for(t.declarations=[],t.kind=r;;){var i=n.startNode();if(n.parseVarId(i),n.eat(I.eq)?i.init=n.parseMaybeAssign(e):"const"!==r||n.type===I._in||n.options.ecmaVersion>=6&&n.isContextual("of")?"Identifier"==i.id.type||e&&(n.type===I._in||n.isContextual("of"))?i.init=null:n.raise(n.lastTokEnd,"Complex binding patterns require an initialization value"):n.unexpected(),t.declarations.push(n.finishNode(i,"VariableDeclarator")),!n.eat(I.comma))break}return t},z.parseVarId=function(t){t.id=this.parseBindingAtom(),this.checkLVal(t.id,!0)},z.parseFunction=function(t,e,r,n){this.initFunction(t),this.options.ecmaVersion>=6&&!n&&(t.generator=this.eat(I.star)),this.options.ecmaVersion>=8&&(t.async=!!n),e&&(t.id=this.parseIdent());var i=this.inGenerator,s=this.inAsync,a=this.yieldPos,o=this.awaitPos;return this.inGenerator=t.generator,this.inAsync=t.async,this.yieldPos=0,this.awaitPos=0,e||this.type!==I.name||(t.id=this.parseIdent()),this.parseFunctionParams(t),this.parseFunctionBody(t,r),this.inGenerator=i,this.inAsync=s,this.yieldPos=a,this.awaitPos=o,this.finishNode(t,e?"FunctionDeclaration":"FunctionExpression")},z.parseFunctionParams=function(t){this.expect(I.parenL),t.params=this.parseBindingList(I.parenR,!1,this.options.ecmaVersion>=8,!0),this.checkYieldAwaitInDefaultParams()},z.parseClass=function(t,e){var r=this;this.next(),this.parseClassId(t,e),this.parseClassSuper(t);var n=this.startNode(),i=!1;for(n.body=[],this.expect(I.braceL);!this.eat(I.braceR);)if(!r.eat(I.semi)){var s=r.startNode(),a=r.eat(I.star),o=!1,c=r.type===I.name&&"static"===r.value;r.parsePropertyName(s),s.static=c&&r.type!==I.parenL,s.static&&(a&&r.unexpected(),a=r.eat(I.star),r.parsePropertyName(s)),r.options.ecmaVersion>=8&&!a&&!s.computed&&"Identifier"===s.key.type&&"async"===s.key.name&&r.type!==I.parenL&&!r.canInsertSemicolon()&&(o=!0,r.parsePropertyName(s)),s.kind="method";var u=!1;if(!s.computed){var h=s.key;a||o||"Identifier"!==h.type||r.type===I.parenL||"get"!==h.name&&"set"!==h.name||(u=!0,s.kind=h.name,h=r.parsePropertyName(s)),!s.static&&("Identifier"===h.type&&"constructor"===h.name||"Literal"===h.type&&"constructor"===h.value)&&(i&&r.raise(h.start,"Duplicate constructor in the same class"),u&&r.raise(h.start,"Constructor can't have get/set modifier"),a&&r.raise(h.start,"Constructor can't be a generator"),o&&r.raise(h.start,"Constructor can't be an async method"),s.kind="constructor",i=!0)}if(r.parseClassMethod(n,s,a,o),u){var p="get"===s.kind?0:1;if(s.value.params.length!==p){var l=s.value.start;"get"===s.kind?r.raiseRecoverable(l,"getter should have no params"):r.raiseRecoverable(l,"setter should have exactly one param")}else"set"===s.kind&&"RestElement"===s.value.params[0].type&&r.raiseRecoverable(s.value.params[0].start,"Setter cannot use rest params")}}return t.body=this.finishNode(n,"ClassBody"),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},z.parseClassMethod=function(t,e,r,n){e.value=this.parseMethod(r,n),t.body.push(this.finishNode(e,"MethodDefinition"))},z.parseClassId=function(t,e){t.id=this.type===I.name?this.parseIdent():e?this.unexpected():null},z.parseClassSuper=function(t){t.superClass=this.eat(I._extends)?this.parseExprSubscripts():null},z.parseExport=function(t,e){var r=this;if(this.next(),this.eat(I.star))return this.expectContextual("from"),t.source=this.type===I.string?this.parseExprAtom():this.unexpected(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration");if(this.eat(I._default)){this.checkExport(e,"default",this.lastTokStart);var n=this.type==I.parenL,i=this.parseMaybeAssign(),s=!0;return n||"FunctionExpression"!=i.type&&"ClassExpression"!=i.type||(s=!1,i.id&&(i.type="FunctionExpression"==i.type?"FunctionDeclaration":"ClassDeclaration")),t.declaration=i,s&&this.semicolon(),this.finishNode(t,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())t.declaration=this.parseStatement(!0),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id.name,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))t.source=this.type===I.string?this.parseExprAtom():this.unexpected();else{for(var a=0;a<t.specifiers.length;a++)(r.keywords.test(t.specifiers[a].local.name)||r.reservedWords.test(t.specifiers[a].local.name))&&r.unexpected(t.specifiers[a].local.start);t.source=null}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")},z.checkExport=function(t,e,r){t&&(Object.prototype.hasOwnProperty.call(t,e)&&this.raiseRecoverable(r,"Duplicate export '"+e+"'"),t[e]=!0)},z.checkPatternExport=function(t,e){var r=this,n=e.type;if("Identifier"==n)this.checkExport(t,e.name,e.start);else if("ObjectPattern"==n)for(var i=0;i<e.properties.length;++i)r.checkPatternExport(t,e.properties[i].value);else if("ArrayPattern"==n)for(var s=0;s<e.elements.length;++s){var a=e.elements[s];a&&r.checkPatternExport(t,a)}else"AssignmentPattern"==n?this.checkPatternExport(t,e.left):"ParenthesizedExpression"==n&&this.checkPatternExport(t,e.expression)},z.checkVariableExport=function(t,e){var r=this;if(t)for(var n=0;n<e.length;n++)r.checkPatternExport(t,e[n].id)},z.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},z.parseExportSpecifiers=function(t){var e=this,r=[],n=!0;for(this.expect(I.braceL);!this.eat(I.braceR);){if(n)n=!1;else if(e.expect(I.comma),e.afterTrailingComma(I.braceR))break;var i=e.startNode();i.local=e.parseIdent(e.type===I._default),i.exported=e.eatContextual("as")?e.parseIdent(!0):i.local,e.checkExport(t,i.exported.name,i.exported.start),r.push(e.finishNode(i,"ExportSpecifier"))}return r},z.parseImport=function(t){return this.next(),this.type===I.string?(t.specifiers=$,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===I.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},z.parseImportSpecifiers=function(){var t=this,e=[],r=!0;if(this.type===I.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLVal(n.local,!0),e.push(this.finishNode(n,"ImportDefaultSpecifier")),!this.eat(I.comma))return e}if(this.type===I.star){var i=this.startNode();return this.next(),this.expectContextual("as"),i.local=this.parseIdent(),this.checkLVal(i.local,!0),e.push(this.finishNode(i,"ImportNamespaceSpecifier")),e}for(this.expect(I.braceL);!this.eat(I.braceR);){if(r)r=!1;else if(t.expect(I.comma),t.afterTrailingComma(I.braceR))break;var s=t.startNode();s.imported=t.parseIdent(!0),t.eatContextual("as")?s.local=t.parseIdent():(s.local=s.imported,t.isKeyword(s.local.name)&&t.unexpected(s.local.start),t.reservedWordsStrict.test(s.local.name)&&t.raiseRecoverable(s.local.start,"The keyword '"+s.local.name+"' is reserved")),t.checkLVal(s.local,!0),e.push(t.finishNode(s,"ImportSpecifier"))}return e};var J=U.prototype;J.toAssignable=function(t,e){var r=this;if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&"await"===t.name&&this.raise(t.start,"Can not use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":break;case"ObjectExpression":t.type="ObjectPattern";for(var n=0;n<t.properties.length;n++){var i=t.properties[n];"init"!==i.kind&&r.raise(i.key.start,"Object pattern can't contain getter or setter"),r.toAssignable(i.value,e)}break;case"ArrayExpression":t.type="ArrayPattern",this.toAssignableList(t.elements,e);break;case"AssignmentExpression":if("="!==t.operator){this.raise(t.left.end,"Only '=' operator can be used for specifying default value.");break}t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);case"AssignmentPattern":break;case"ParenthesizedExpression":t.expression=this.toAssignable(t.expression,e);break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}return t},J.toAssignableList=function(t,e){var r=this,n=t.length;if(n){var i=t[n-1];if(i&&"RestElement"==i.type)--n;else if(i&&"SpreadElement"==i.type){i.type="RestElement";var s=i.argument;this.toAssignable(s,e),"Identifier"!==s.type&&"MemberExpression"!==s.type&&"ArrayPattern"!==s.type&&this.unexpected(s.start),--n}e&&i&&"RestElement"===i.type&&"Identifier"!==i.argument.type&&this.unexpected(i.argument.start)}for(var a=0;a<n;a++){var o=t[a];o&&r.toAssignable(o,e)}return t},J.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")},J.parseRest=function(t){var e=this.startNode();return this.next(),t?e.argument=this.type===I.name?this.parseIdent():this.unexpected():e.argument=this.type===I.name||this.type===I.bracketL?this.parseBindingAtom():this.unexpected(),this.finishNode(e,"RestElement")},J.parseBindingAtom=function(){if(this.options.ecmaVersion<6)return this.parseIdent();switch(this.type){case I.name:return this.parseIdent();case I.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(I.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case I.braceL:return this.parseObj(!0);default:this.unexpected()}},J.parseBindingList=function(t,e,r,n){for(var i=this,s=[],a=!0;!this.eat(t);)if(a?a=!1:i.expect(I.comma),e&&i.type===I.comma)s.push(null);else{if(r&&i.afterTrailingComma(t))break;if(i.type===I.ellipsis){var o=i.parseRest(n);i.parseBindingListItem(o),s.push(o),i.type===I.comma&&i.raise(i.start,"Comma is not permitted after the rest element"),i.expect(t);break}var c=i.parseMaybeDefault(i.start,i.startLoc);i.parseBindingListItem(c),s.push(c)}return s},J.parseBindingListItem=function(t){return t},J.parseMaybeDefault=function(t,e,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(I.eq))return r;var n=this.startNodeAt(t,e);return n.left=r,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")},J.checkLVal=function(t,e,r){var n=this;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(e?"Binding ":"Assigning to ")+t.name+" in strict mode"),r&&(c(r,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),r[t.name]=!0);break;case"MemberExpression":e&&this.raiseRecoverable(t.start,(e?"Binding":"Assigning to")+" member expression");break;case"ObjectPattern":for(var i=0;i<t.properties.length;i++)n.checkLVal(t.properties[i].value,e,r);break;case"ArrayPattern":for(var s=0;s<t.elements.length;s++){var a=t.elements[s];a&&n.checkLVal(a,e,r)}break;case"AssignmentPattern":this.checkLVal(t.left,e,r);break;case"RestElement":this.checkLVal(t.argument,e,r);break;case"ParenthesizedExpression":this.checkLVal(t.expression,e,r);break;default:this.raise(t.start,(e?"Binding":"Assigning to")+" rvalue")}};var Q=U.prototype;Q.checkPropClash=function(t,e){if(!(this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var r,n=t.key;switch(n.type){case"Identifier":r=n.name;break;case"Literal":r=String(n.value);break;default:return}var i=t.kind;if(this.options.ecmaVersion>=6)return void("__proto__"===r&&"init"===i&&(e.proto&&this.raiseRecoverable(n.start,"Redefinition of __proto__ property"),e.proto=!0));r="$"+r;var s=e[r];if(s){var a="init"!==i;(!this.strict&&!a||!s[i])&&a^s.init||this.raiseRecoverable(n.start,"Redefinition of property")}else s=e[r]={init:!1,get:!1,set:!1};s[i]=!0}},Q.parseExpression=function(t,e){var r=this,n=this.start,i=this.startLoc,s=this.parseMaybeAssign(t,e);if(this.type===I.comma){var a=this.startNodeAt(n,i);for(a.expressions=[s];this.eat(I.comma);)a.expressions.push(r.parseMaybeAssign(t,e));return this.finishNode(a,"SequenceExpression")}return s},Q.parseMaybeAssign=function(t,e,r){if(this.inGenerator&&this.isContextual("yield"))return this.parseYield();var n=!1;e||(e=new G,n=!0);var i=this.start,s=this.startLoc;this.type!=I.parenL&&this.type!=I.name||(this.potentialArrowAt=this.start);var a=this.parseMaybeConditional(t,e);if(r&&(a=r.call(this,a,i,s)),this.type.isAssign){this.checkPatternErrors(e,!0),n||G.call(e);var o=this.startNodeAt(i,s);return o.operator=this.value,o.left=this.type===I.eq?this.toAssignable(a):a,e.shorthandAssign=0,this.checkLVal(a),this.next(),o.right=this.parseMaybeAssign(t),this.finishNode(o,"AssignmentExpression")}return n&&this.checkExpressionErrors(e,!0),a},Q.parseMaybeConditional=function(t,e){var r=this.start,n=this.startLoc,i=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return i;if(this.eat(I.question)){var s=this.startNodeAt(r,n);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(I.colon),s.alternate=this.parseMaybeAssign(t),this.finishNode(s,"ConditionalExpression")}return i},Q.parseExprOps=function(t,e){var r=this.start,n=this.startLoc,i=this.parseMaybeUnary(e,!1);return this.checkExpressionErrors(e)?i:this.parseExprOp(i,r,n,-1,t)},Q.parseExprOp=function(t,e,r,n,i){var s=this.type.binop;if(null!=s&&(!i||this.type!==I._in)&&s>n){var a=this.type===I.logicalOR||this.type===I.logicalAND,o=this.value;this.next();var c=this.start,u=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1),c,u,s,i),p=this.buildBinary(e,r,t,h,o,a);return this.parseExprOp(p,e,r,n,i)}return t},Q.buildBinary=function(t,e,r,n,i,s){var a=this.startNodeAt(t,e);return a.left=r,a.operator=i,a.right=n,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")},Q.parseMaybeUnary=function(t,e){var r,n=this,i=this.start,s=this.startLoc;if(this.inAsync&&this.isContextual("await"))r=this.parseAwait(t),e=!0;else if(this.type.prefix){var a=this.startNode(),o=this.type===I.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),o?this.checkLVal(a.argument):this.strict&&"delete"===a.operator&&"Identifier"===a.argument.type?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):e=!0,r=this.finishNode(a,o?"UpdateExpression":"UnaryExpression")}else{if(r=this.parseExprSubscripts(t),this.checkExpressionErrors(t))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=n.startNodeAt(i,s);c.operator=n.value,c.prefix=!1,c.argument=r,n.checkLVal(r),n.next(),r=n.finishNode(c,"UpdateExpression")}}return!e&&this.eat(I.starstar)?this.buildBinary(i,s,r,this.parseMaybeUnary(null,!1),"**",!1):r},Q.parseExprSubscripts=function(t){var e=this.start,r=this.startLoc,n=this.parseExprAtom(t),i="ArrowFunctionExpression"===n.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);return this.checkExpressionErrors(t)||i?n:this.parseSubscripts(n,e,r)},Q.parseSubscripts=function(t,e,r,n){for(var i=this;;){var s=i.options.ecmaVersion>=8&&"Identifier"===t.type&&"async"===t.name&&!i.canInsertSemicolon();if(i.eat(I.dot)){var a=i.startNodeAt(e,r);a.object=t,a.property=i.parseIdent(!0),a.computed=!1,t=i.finishNode(a,"MemberExpression")}else if(i.eat(I.bracketL)){var o=i.startNodeAt(e,r);o.object=t,o.property=i.parseExpression(),o.computed=!0,i.expect(I.bracketR),t=i.finishNode(o,"MemberExpression")}else if(!n&&i.eat(I.parenL)){var c=new G,u=i.yieldPos,h=i.awaitPos;i.yieldPos=0,i.awaitPos=0;var p=i.parseExprList(I.parenR,i.options.ecmaVersion>=8,!1,c);if(s&&!i.canInsertSemicolon()&&i.eat(I.arrow))return i.checkPatternErrors(c,!0),i.checkYieldAwaitInDefaultParams(),i.yieldPos=u,i.awaitPos=h,i.parseArrowExpression(i.startNodeAt(e,r),p,!0);i.checkExpressionErrors(c,!0),i.yieldPos=u||i.yieldPos,i.awaitPos=h||i.awaitPos;var l=i.startNodeAt(e,r);l.callee=t,l.arguments=p,t=i.finishNode(l,"CallExpression")}else{if(i.type!==I.backQuote)return t;var f=i.startNodeAt(e,r);f.tag=t,f.quasi=i.parseTemplate(),t=i.finishNode(f,"TaggedTemplateExpression")}}},Q.parseExprAtom=function(t){var e,r=this.potentialArrowAt==this.start;switch(this.type){case I._super:this.inFunction||this.raise(this.start,"'super' outside of function or class");case I._this:var n=this.type===I._this?"ThisExpression":"Super";return e=this.startNode(),this.next(),this.finishNode(e,n);case I.name:var i=this.start,s=this.startLoc,a=this.parseIdent(this.type!==I.name);if(this.options.ecmaVersion>=8&&"async"===a.name&&!this.canInsertSemicolon()&&this.eat(I._function))return this.parseFunction(this.startNodeAt(i,s),!1,!1,!0);if(r&&!this.canInsertSemicolon()){if(this.eat(I.arrow))return this.parseArrowExpression(this.startNodeAt(i,s),[a],!1);if(this.options.ecmaVersion>=8&&"async"===a.name&&this.type===I.name)return a=this.parseIdent(),!this.canInsertSemicolon()&&this.eat(I.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,s),[a],!0)}return a;case I.regexp:var o=this.value;return e=this.parseLiteral(o.value),e.regex={pattern:o.pattern,flags:o.flags},e;case I.num:case I.string:return this.parse